@gov-design-system-ce/components 4.1.0-rc02 → 4.1.0-rc04
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/gov-accordion-item.cjs.entry.js +8 -5
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +6 -6
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +4 -4
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +4 -4
- package/dist/cjs/gov-button.cjs.entry.js +6 -6
- package/dist/cjs/gov-card.cjs.entry.js +4 -4
- package/dist/cjs/gov-chip.cjs.entry.js +4 -4
- package/dist/cjs/gov-container.cjs.entry.js +2 -2
- package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/gov-dialog.cjs.entry.js +4 -4
- package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/gov-empty.cjs.entry.js +2 -2
- package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
- package/dist/cjs/gov-flex.cjs.entry.js +31 -0
- package/dist/cjs/gov-flex.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-file.cjs.entry.js +8 -3
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
- package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +7 -22
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
- package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-grid.cjs.entry.js +2 -2
- package/dist/cjs/gov-icon.cjs.entry.js +2 -2
- package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
- package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
- package/dist/cjs/gov-layout.cjs.entry.js +2 -2
- package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
- package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-loading.cjs.entry.js +2 -2
- package/dist/cjs/gov-message.cjs.entry.js +2 -2
- package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
- package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gov-tag.cjs.entry.js +2 -2
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-theme-switch.cjs.entry.js +73 -0
- package/dist/cjs/gov-theme-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tile.cjs.entry.js +2 -2
- package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
- package/dist/cjs/gov-toast.cjs.entry.js +5 -6
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
- package/dist/cjs/gov-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
- package/dist/cjs/gov-wizard.cjs.entry.js +4 -4
- package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -4
- package/dist/cjs/index-7ff4447c.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
- package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
- package/dist/cjs/{wcag-31089f70.js → wcag-b8d80c7d.js} +2 -2
- package/dist/cjs/{wcag-31089f70.js.map → wcag-b8d80c7d.js.map} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
- package/dist/collection/components/gov-button/button/gov-button.js +3 -3
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
- package/dist/collection/components/gov-card/gov-card.js +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +2 -2
- package/dist/collection/components/gov-container/gov-container.js +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
- package/dist/collection/components/gov-flex/constants.js +4 -0
- package/dist/collection/components/gov-flex/constants.js.map +1 -0
- package/dist/collection/components/gov-flex/gov-flex.js +127 -0
- package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +6 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +3 -3
- package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -28
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
- package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
- package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +3 -4
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
- package/dist/collection/pages/Forms.js +159 -159
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Grid.js +1 -1
- package/dist/collection/pages/Grid.js.map +1 -1
- package/dist/collection/pages/Spacer.js +1 -1
- package/dist/collection/pages/Spacer.js.map +1 -1
- package/dist/collection/pages/Tag.js +135 -160
- package/dist/collection/pages/Tag.js.map +1 -1
- package/dist/collection/pages/Wizard.js +1 -1
- package/dist/collection/pages/Wizard.js.map +1 -1
- package/dist/collection/utils/string.utils.js +1 -1
- package/dist/collection/utils/string.utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-dialog.js.map +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-dropdown.js.map +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
- package/dist/components/gov-flex.js +2 -0
- package/dist/components/gov-flex.js.map +1 -0
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-infobar.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.d.ts +11 -0
- package/dist/components/gov-lifecycle.js +2 -0
- package/dist/components/gov-lifecycle.js.map +1 -0
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-tag.js.map +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tiles.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-02da2aee.js +2 -0
- package/dist/components/{p-e9b35956.js.map → p-02da2aee.js.map} +1 -1
- package/dist/components/p-1d3019f3.js +2 -0
- package/dist/components/{p-e183a7c7.js → p-1f3bb41d.js} +2 -2
- package/dist/components/{p-6e19816b.js → p-23b7e680.js} +2 -2
- package/dist/components/{p-5caf1fe1.js → p-387052e1.js} +2 -2
- package/dist/components/{p-c9a15c52.js → p-3b807239.js} +2 -2
- package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
- package/dist/components/p-42200001.js.map +1 -0
- package/dist/components/{p-ff0cf148.js → p-5cc316bc.js} +2 -2
- package/dist/components/{p-e20bb5dc.js → p-6ea84137.js} +2 -2
- package/dist/components/p-820b66c0.js +2 -0
- package/dist/components/{p-fe1842da.js.map → p-820b66c0.js.map} +1 -1
- package/dist/components/p-880743a5.js.map +1 -1
- package/dist/components/{p-736e4917.js → p-bd22e21d.js} +2 -2
- package/dist/components/{p-2da35aa8.js → p-c211c3e1.js} +2 -2
- package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
- package/dist/components/p-cd6c2938.js.map +1 -0
- package/dist/components/{p-9a93146e.js → p-dcee21ca.js} +2 -2
- package/dist/core/core.css +158 -29
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0a24806a.entry.js +2 -0
- package/dist/core/{p-9d0f20ec.entry.js.map → p-0a24806a.entry.js.map} +1 -1
- package/dist/core/{p-9ff8f059.entry.js → p-0d2c4d31.entry.js} +2 -2
- package/dist/core/p-10f9bf55.entry.js +2 -0
- package/dist/core/{p-17015e36.entry.js.map → p-10f9bf55.entry.js.map} +1 -1
- package/dist/core/{p-0a952b3c.entry.js → p-12680890.entry.js} +2 -2
- package/dist/core/p-1600c1fb.entry.js +2 -0
- package/dist/core/p-18025823.entry.js +2 -0
- package/dist/core/p-18025823.entry.js.map +1 -0
- package/dist/core/p-18dbe177.entry.js +2 -0
- package/dist/core/p-18dbe177.entry.js.map +1 -0
- package/dist/core/{p-74e9ad9d.entry.js → p-1a550eee.entry.js} +2 -2
- package/dist/core/{p-9b41ac88.entry.js → p-1f1895c0.entry.js} +2 -2
- package/dist/core/p-1fdc2457.entry.js +2 -0
- package/dist/core/p-212759be.entry.js +2 -0
- package/dist/core/{p-db940455.entry.js.map → p-212759be.entry.js.map} +1 -1
- package/dist/core/p-215504c1.entry.js +2 -0
- package/dist/core/p-2c3ddc57.entry.js +2 -0
- package/dist/core/{p-83039b10.entry.js.map → p-2c3ddc57.entry.js.map} +1 -1
- package/dist/core/p-31e7d262.entry.js +2 -0
- package/dist/core/p-31e7d262.entry.js.map +1 -0
- package/dist/core/{p-b3acb156.entry.js → p-32bba4e7.entry.js} +2 -2
- package/dist/core/{p-fa7caad6.entry.js → p-378e0723.entry.js} +2 -2
- package/dist/core/{p-0ebc8365.entry.js → p-3844a27d.entry.js} +2 -2
- package/dist/core/p-4cb4de7b.entry.js +2 -0
- package/dist/core/{p-aa8adc45.entry.js.map → p-4cb4de7b.entry.js.map} +1 -1
- package/dist/core/p-56f9e026.entry.js +2 -0
- package/dist/core/p-57b0e670.entry.js +2 -0
- package/dist/core/{p-b55fc943.entry.js.map → p-57b0e670.entry.js.map} +1 -1
- package/dist/core/p-58dc3ec3.entry.js +2 -0
- package/dist/core/p-58dc3ec3.entry.js.map +1 -0
- package/dist/core/p-5ad3097c.entry.js +2 -0
- package/dist/core/{p-a5489b0e.entry.js.map → p-5ad3097c.entry.js.map} +1 -1
- package/dist/core/p-668ca722.entry.js +2 -0
- package/dist/core/{p-f1be099b.entry.js → p-67200095.entry.js} +2 -2
- package/dist/core/p-731fe7d8.entry.js +2 -0
- package/dist/core/{p-5c88f415.entry.js.map → p-731fe7d8.entry.js.map} +1 -1
- package/dist/core/p-7591976a.entry.js +2 -0
- package/dist/core/p-75ea368b.entry.js +2 -0
- package/dist/core/{p-ab9ae7ba.entry.js → p-7b48b1b8.entry.js} +2 -2
- package/dist/core/p-7de47344.entry.js +2 -0
- package/dist/core/p-7de47344.entry.js.map +1 -0
- package/dist/core/p-83aa4327.entry.js +2 -0
- package/dist/core/{p-28a7d3f7.js → p-842cb87f.js} +2 -2
- package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
- package/dist/core/p-8506b611.js.map +1 -0
- package/dist/core/p-880743a5.js.map +1 -1
- package/dist/core/p-89b69743.entry.js +2 -0
- package/dist/core/p-8a796fbe.entry.js +2 -0
- package/dist/core/p-8f10919c.entry.js +2 -0
- package/dist/core/{p-f456bd71.entry.js.map → p-8f10919c.entry.js.map} +1 -1
- package/dist/core/p-8fe36a5b.entry.js +2 -0
- package/dist/core/p-915e53ac.entry.js +2 -0
- package/dist/core/{p-47e364bb.entry.js.map → p-915e53ac.entry.js.map} +1 -1
- package/dist/core/p-92e13f9d.entry.js +2 -0
- package/dist/core/p-a274cdaa.entry.js +2 -0
- package/dist/core/p-a274cdaa.entry.js.map +1 -0
- package/dist/core/p-a9a095c2.entry.js +2 -0
- package/dist/core/p-a9a095c2.entry.js.map +1 -0
- package/dist/core/{p-81b0848c.entry.js → p-ab68c0b7.entry.js} +2 -2
- package/dist/core/p-b50ffab3.entry.js +2 -0
- package/dist/core/p-b70cc248.entry.js +2 -0
- package/dist/core/p-b822b9ff.entry.js +2 -0
- package/dist/core/p-c0a5a3f7.entry.js +2 -0
- package/dist/core/p-c5b5fd69.entry.js +2 -0
- package/dist/core/{p-6d772ff9.entry.js.map → p-c5b5fd69.entry.js.map} +1 -1
- package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
- package/dist/core/p-cd6c2938.js.map +1 -0
- package/dist/core/{p-3f2b803c.entry.js → p-d1c4eb91.entry.js} +2 -2
- package/dist/core/{p-d2351924.entry.js → p-d3963396.entry.js} +2 -2
- package/dist/core/p-d4fbc249.entry.js +2 -0
- package/dist/core/{p-5dc0af54.entry.js.map → p-d4fbc249.entry.js.map} +1 -1
- package/dist/core/{p-fc90bf06.entry.js → p-d949aac7.entry.js} +2 -2
- package/dist/core/p-e6af4c58.entry.js +2 -0
- package/dist/core/p-ede7af0a.entry.js +2 -0
- package/dist/core/p-ede7af0a.entry.js.map +1 -0
- package/dist/core/p-eebc9e71.entry.js +2 -0
- package/dist/core/{p-2ed3afef.entry.js → p-eebf7ad8.entry.js} +2 -2
- package/dist/core/{p-dc3fab19.entry.js → p-f1c8a96b.entry.js} +2 -2
- package/dist/core/{p-dc3fab19.entry.js.map → p-f1c8a96b.entry.js.map} +1 -1
- package/dist/core/{p-35e66bef.entry.js → p-f963bb2f.entry.js} +2 -2
- package/dist/core/p-fb0df3a5.entry.js +2 -0
- package/dist/core/{p-7cf554e6.entry.js.map → p-fb0df3a5.entry.js.map} +1 -1
- package/dist/esm/core.js +3 -3
- package/dist/esm/gov-accordion-item.entry.js +8 -5
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +1 -1
- package/dist/esm/gov-attachments_3.entry.js +6 -6
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +4 -4
- package/dist/esm/gov-breadcrumbs.entry.js +4 -4
- package/dist/esm/gov-button.entry.js +6 -6
- package/dist/esm/gov-card.entry.js +4 -4
- package/dist/esm/gov-chip.entry.js +4 -4
- package/dist/esm/gov-container.entry.js +2 -2
- package/dist/esm/gov-control-group.entry.js +2 -2
- package/dist/esm/gov-cookiebar.entry.js +2 -2
- package/dist/esm/gov-dialog.entry.js +4 -4
- package/dist/esm/gov-dialog.entry.js.map +1 -1
- package/dist/esm/gov-dropdown.entry.js +3 -3
- package/dist/esm/gov-empty.entry.js +2 -2
- package/dist/esm/gov-error-code.entry.js +2 -2
- package/dist/esm/gov-flex.entry.js +27 -0
- package/dist/esm/gov-flex.entry.js.map +1 -0
- package/dist/esm/gov-form-autocomplete.entry.js +3 -3
- package/dist/esm/gov-form-checkbox-group.entry.js +2 -2
- package/dist/esm/gov-form-checkbox.entry.js +2 -2
- package/dist/esm/gov-form-control.entry.js +3 -3
- package/dist/esm/gov-form-file.entry.js +8 -3
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-group.entry.js +2 -2
- package/dist/esm/gov-form-input_2.entry.js +6 -6
- package/dist/esm/gov-form-label.entry.js +2 -2
- package/dist/esm/gov-form-multi-select.entry.js +7 -22
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-password-power.entry.js +2 -2
- package/dist/esm/gov-form-radio-group.entry.js +2 -2
- package/dist/esm/gov-form-radio.entry.js +2 -2
- package/dist/esm/gov-form-search.entry.js +2 -2
- package/dist/esm/gov-form-select.entry.js +4 -4
- package/dist/esm/gov-form-switch.entry.js +2 -2
- package/dist/esm/gov-grid-item.entry.js +2 -2
- package/dist/esm/gov-grid.entry.js +2 -2
- package/dist/esm/gov-icon.entry.js +2 -2
- package/dist/esm/gov-infobar.entry.js +3 -3
- package/dist/esm/gov-infobar.entry.js.map +1 -1
- package/dist/esm/gov-layout-column.entry.js +2 -2
- package/dist/esm/gov-layout.entry.js +2 -2
- package/dist/esm/gov-lifecycle.entry.js +43 -0
- package/dist/esm/gov-lifecycle.entry.js.map +1 -0
- package/dist/esm/gov-loading.entry.js +2 -2
- package/dist/esm/gov-message.entry.js +2 -2
- package/dist/esm/gov-pagination.entry.js +3 -3
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +2 -2
- package/dist/esm/gov-stepper-item.entry.js +3 -3
- package/dist/esm/gov-stepper.entry.js +2 -2
- package/dist/esm/gov-tabs-item.entry.js +3 -3
- package/dist/esm/gov-tabs.entry.js +2 -2
- package/dist/esm/gov-tag.entry.js +2 -2
- package/dist/esm/gov-tag.entry.js.map +1 -1
- package/dist/esm/gov-theme-switch.entry.js +69 -0
- package/dist/esm/gov-theme-switch.entry.js.map +1 -0
- package/dist/esm/gov-tile.entry.js +2 -2
- package/dist/esm/gov-tiles.entry.js +2 -2
- package/dist/esm/gov-toast.entry.js +5 -6
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +2 -2
- package/dist/esm/gov-tooltip.entry.js +4 -4
- package/dist/esm/gov-wizard-item.entry.js +4 -4
- package/dist/esm/gov-wizard.entry.js +4 -4
- package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -4
- package/dist/esm/index-c263e031.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
- package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
- package/dist/esm/{wcag-fa5ce56c.js → wcag-d7c6c252.js} +2 -2
- package/dist/esm/{wcag-fa5ce56c.js.map → wcag-d7c6c252.js.map} +1 -1
- package/dist/hydrate/index.js +277 -10021
- package/dist/hydrate/index.mjs +277 -10021
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
- package/dist/types/components/gov-flex/constants.d.ts +3 -0
- package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
- package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
- package/dist/types/components.d.ts +74 -13
- package/dist/types/utils/string.utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
- package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
- package/dist/cjs/index-1af4880c.js.map +0 -1
- package/dist/cjs/string.utils-2335838f.js.map +0 -1
- package/dist/collection/components/gov-app/gov-app.css +0 -68
- package/dist/collection/components/gov-app/gov-app.js +0 -93
- package/dist/collection/components/gov-app/gov-app.js.map +0 -1
- package/dist/components/gov-app.js +0 -2
- package/dist/components/gov-app.js.map +0 -1
- package/dist/components/p-95d41a3b.js.map +0 -1
- package/dist/components/p-ae3dada7.js.map +0 -1
- package/dist/components/p-ae7e6127.js +0 -2
- package/dist/components/p-e9b35956.js +0 -2
- package/dist/components/p-fe1842da.js +0 -2
- package/dist/core/p-006e52f1.entry.js +0 -2
- package/dist/core/p-023787b3.entry.js +0 -2
- package/dist/core/p-023787b3.entry.js.map +0 -1
- package/dist/core/p-17015e36.entry.js +0 -2
- package/dist/core/p-182189d2.entry.js +0 -2
- package/dist/core/p-2effdd60.entry.js +0 -2
- package/dist/core/p-2effdd60.entry.js.map +0 -1
- package/dist/core/p-477a5027.entry.js +0 -2
- package/dist/core/p-477a5027.entry.js.map +0 -1
- package/dist/core/p-47e364bb.entry.js +0 -2
- package/dist/core/p-5c88f415.entry.js +0 -2
- package/dist/core/p-5dc0af54.entry.js +0 -2
- package/dist/core/p-5dcbfca3.entry.js +0 -2
- package/dist/core/p-663d3db2.entry.js +0 -2
- package/dist/core/p-6b42a387.entry.js +0 -2
- package/dist/core/p-6d772ff9.entry.js +0 -2
- package/dist/core/p-6ed147a6.entry.js +0 -2
- package/dist/core/p-6ed147a6.entry.js.map +0 -1
- package/dist/core/p-7cf554e6.entry.js +0 -2
- package/dist/core/p-83039b10.entry.js +0 -2
- package/dist/core/p-904de5e6.entry.js +0 -2
- package/dist/core/p-91a9cd24.entry.js +0 -2
- package/dist/core/p-95d41a3b.js.map +0 -1
- package/dist/core/p-963f9fcd.entry.js +0 -2
- package/dist/core/p-9d0f20ec.entry.js +0 -2
- package/dist/core/p-9dde00d8.entry.js +0 -2
- package/dist/core/p-a1e95a5f.js.map +0 -1
- package/dist/core/p-a1ebb4da.entry.js +0 -2
- package/dist/core/p-a53a277a.entry.js +0 -2
- package/dist/core/p-a5489b0e.entry.js +0 -2
- package/dist/core/p-a54f1db9.entry.js +0 -2
- package/dist/core/p-aa8adc45.entry.js +0 -2
- package/dist/core/p-b55fc943.entry.js +0 -2
- package/dist/core/p-b838bb27.entry.js +0 -2
- package/dist/core/p-c214c202.entry.js +0 -2
- package/dist/core/p-c214c202.entry.js.map +0 -1
- package/dist/core/p-c4c7cb24.entry.js +0 -2
- package/dist/core/p-db940455.entry.js +0 -2
- package/dist/core/p-e134b123.entry.js +0 -2
- package/dist/core/p-e4978aab.entry.js +0 -2
- package/dist/core/p-edc05eff.entry.js +0 -2
- package/dist/core/p-edc05eff.entry.js.map +0 -1
- package/dist/core/p-eeb9cb73.entry.js +0 -2
- package/dist/core/p-f141ad5e.entry.js +0 -2
- package/dist/core/p-f456bd71.entry.js +0 -2
- package/dist/esm/gov-app_2.entry.js +0 -9886
- package/dist/esm/gov-app_2.entry.js.map +0 -1
- package/dist/esm/index-d8b4eb6c.js.map +0 -1
- package/dist/esm/string.utils-5ce3f551.js.map +0 -1
- package/dist/types/components/gov-app/gov-app.d.ts +0 -37
- /package/dist/components/{p-ae7e6127.js.map → p-1d3019f3.js.map} +0 -0
- /package/dist/components/{p-e183a7c7.js.map → p-1f3bb41d.js.map} +0 -0
- /package/dist/components/{p-6e19816b.js.map → p-23b7e680.js.map} +0 -0
- /package/dist/components/{p-5caf1fe1.js.map → p-387052e1.js.map} +0 -0
- /package/dist/components/{p-c9a15c52.js.map → p-3b807239.js.map} +0 -0
- /package/dist/components/{p-ff0cf148.js.map → p-5cc316bc.js.map} +0 -0
- /package/dist/components/{p-e20bb5dc.js.map → p-6ea84137.js.map} +0 -0
- /package/dist/components/{p-736e4917.js.map → p-bd22e21d.js.map} +0 -0
- /package/dist/components/{p-2da35aa8.js.map → p-c211c3e1.js.map} +0 -0
- /package/dist/components/{p-9a93146e.js.map → p-dcee21ca.js.map} +0 -0
- /package/dist/core/{p-9ff8f059.entry.js.map → p-0d2c4d31.entry.js.map} +0 -0
- /package/dist/core/{p-0a952b3c.entry.js.map → p-12680890.entry.js.map} +0 -0
- /package/dist/core/{p-e4978aab.entry.js.map → p-1600c1fb.entry.js.map} +0 -0
- /package/dist/core/{p-74e9ad9d.entry.js.map → p-1a550eee.entry.js.map} +0 -0
- /package/dist/core/{p-9b41ac88.entry.js.map → p-1f1895c0.entry.js.map} +0 -0
- /package/dist/core/{p-5dcbfca3.entry.js.map → p-1fdc2457.entry.js.map} +0 -0
- /package/dist/core/{p-f141ad5e.entry.js.map → p-215504c1.entry.js.map} +0 -0
- /package/dist/core/{p-b3acb156.entry.js.map → p-32bba4e7.entry.js.map} +0 -0
- /package/dist/core/{p-fa7caad6.entry.js.map → p-378e0723.entry.js.map} +0 -0
- /package/dist/core/{p-0ebc8365.entry.js.map → p-3844a27d.entry.js.map} +0 -0
- /package/dist/core/{p-182189d2.entry.js.map → p-56f9e026.entry.js.map} +0 -0
- /package/dist/core/{p-b838bb27.entry.js.map → p-668ca722.entry.js.map} +0 -0
- /package/dist/core/{p-f1be099b.entry.js.map → p-67200095.entry.js.map} +0 -0
- /package/dist/core/{p-6b42a387.entry.js.map → p-7591976a.entry.js.map} +0 -0
- /package/dist/core/{p-963f9fcd.entry.js.map → p-75ea368b.entry.js.map} +0 -0
- /package/dist/core/{p-ab9ae7ba.entry.js.map → p-7b48b1b8.entry.js.map} +0 -0
- /package/dist/core/{p-eeb9cb73.entry.js.map → p-83aa4327.entry.js.map} +0 -0
- /package/dist/core/{p-28a7d3f7.js.map → p-842cb87f.js.map} +0 -0
- /package/dist/core/{p-904de5e6.entry.js.map → p-89b69743.entry.js.map} +0 -0
- /package/dist/core/{p-e134b123.entry.js.map → p-8a796fbe.entry.js.map} +0 -0
- /package/dist/core/{p-663d3db2.entry.js.map → p-8fe36a5b.entry.js.map} +0 -0
- /package/dist/core/{p-a53a277a.entry.js.map → p-92e13f9d.entry.js.map} +0 -0
- /package/dist/core/{p-81b0848c.entry.js.map → p-ab68c0b7.entry.js.map} +0 -0
- /package/dist/core/{p-a54f1db9.entry.js.map → p-b50ffab3.entry.js.map} +0 -0
- /package/dist/core/{p-c4c7cb24.entry.js.map → p-b70cc248.entry.js.map} +0 -0
- /package/dist/core/{p-91a9cd24.entry.js.map → p-b822b9ff.entry.js.map} +0 -0
- /package/dist/core/{p-a1ebb4da.entry.js.map → p-c0a5a3f7.entry.js.map} +0 -0
- /package/dist/core/{p-3f2b803c.entry.js.map → p-d1c4eb91.entry.js.map} +0 -0
- /package/dist/core/{p-d2351924.entry.js.map → p-d3963396.entry.js.map} +0 -0
- /package/dist/core/{p-fc90bf06.entry.js.map → p-d949aac7.entry.js.map} +0 -0
- /package/dist/core/{p-006e52f1.entry.js.map → p-e6af4c58.entry.js.map} +0 -0
- /package/dist/core/{p-9dde00d8.entry.js.map → p-eebc9e71.entry.js.map} +0 -0
- /package/dist/core/{p-2ed3afef.entry.js.map → p-eebf7ad8.entry.js.map} +0 -0
- /package/dist/core/{p-35e66bef.entry.js.map → p-f963bb2f.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,F as i,d as o}from"./p-
|
|
1
|
+
import{p as e,H as t,h as s,F as i,d as o}from"./p-42200001.js";import{p as c}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{g as a}from"./p-0075138f.js";import{d as r}from"./p-387052e1.js";c(n,["_S","_M","_L"]);const d={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.orientation=undefined;this.noBorder=false;this.href=undefined;this.target=undefined;this.h=a(this.host)}render(){return s(o,{key:"423d9bc7b52a7408c4b9513612cdbac6c5a7df9c",class:this.h.classes(d.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"b56ff3ed2dc8fd6f4de661e7892fe1513202da5e",name:"icon"}),s("div",{key:"e35827cda3520c1532de79be0a2d8fca8b952617",class:d.content},s("div",{key:"79c97706744f088c671b0cebf6969425226341d0",class:d.text},s("div",{key:"f5799184ba8a0040a74638fa4a37759c35a4cdec",class:d.title},this.href?s(i,null,s("a",{href:this.href,target:this.target,class:d.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:d.icon},s("gov-icon",{name:"chevron-right"}))):s("slot",{name:"title"})),s("div",{key:"eba9d4e70c1a295834adf26577ee965db054fbb2",class:`${d.annotation} ${this.href?`${d.annotation}--padding`:""}`},s("slot",{key:"ce4b626ae9551d82c3ff614f50379e6c1100dd07"}))),s("slot",{key:"c5ac0203d657d60469c64ea2afc1469f08cc867f",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-tile","gov-icon"];e.forEach((e=>{switch(e){case"gov-tile":if(!customElements.get(e)){customElements.define(e,f)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}l();const g=f;const h=l;export{g as GovTile,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tile.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as
|
|
1
|
+
import{p as s,H as e,h as t,d as o}from"./p-42200001.js";import{g as c}from"./p-0075138f.js";const n={root:"gov-tiles"};const r=s(class s extends e{constructor(){super();this.__registerHost();this.columns=4;this.h=c(this.host)}render(){return t(o,{key:"98fc98abea209d53790a2a06b1ce6e1feda7c53d",class:this.h.classes(n.root)},t("slot",{key:"e074660d6ed9b773e68ef5f0523ab7b8bd57ea9e"}))}get host(){return this}},[4,"gov-tiles",{columns:[514]}]);function i(){if(typeof customElements==="undefined"){return}const s=["gov-tiles"];s.forEach((s=>{switch(s){case"gov-tiles":if(!customElements.get(s)){customElements.define(s,r)}break}}))}i();const a=r;const f=i;export{a as GovTiles,f as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tiles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as i,d as o}from"./p-
|
|
1
|
+
import{p as t,H as s,c as e,h as i,d as o}from"./p-42200001.js";import{v as a}from"./p-19c681a3.js";import{C as c}from"./p-e3aeaca0.js";import{p as r}from"./p-e0e2e9c1.js";import{g as n}from"./p-0075138f.js";import{c as h}from"./p-cd6c2938.js";import{A as l,a as d,i as m}from"./p-33d5d1ed.js";import{d as b}from"./p-6ea84137.js";import{d as f}from"./p-387052e1.js";const u=r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var p;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(p||(p={}));const v={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",close:"gov-toast__close",timer:"gov-toast__timer"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=e(this,"gov-close",7);this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.closeLabel=undefined;this.accessibleCloseLabel=undefined;this.inheritedAttributes={};this.h=n(this.host);this.toastId=h("GovToast")}validateColor(t){a(u,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=m(this.host)}disconnectedCallback(){clearTimeout(this.timeout);this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(v.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return i(o,{key:"595478e5b0bc6df5256332f59eb1fb8c5a186d47",class:this.h.classes(v.root),"data-toast-id":this.toastId,gravity:this.gravity,position:this.position,color:this.color,type:this.type,style:{"--toast-duration":this.time+"ms"}},this.h.hasSlot("icon")&&i("slot",{key:"d515d7be4fcad971f825b953a7ee6354cb7a36c8",name:"icon"}),i("div",Object.assign({key:"9e9e2895921e6309de75acba2c8340a1073ae243",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),i("slot",{key:"d373fbf45bd63a84e116614971b8d6ccacc041e5"})),i("gov-button",{key:"0e3cc61c61632f5e3f2a9056299e86453a4cac3f",size:"s","aria-label":this.accessibleCloseLabel,color:this.isBold?this.color:"neutral",type:"base","on-gov-click":this.onCloseHandler.bind(this),class:v.close},this.closeLabel?this.closeLabel:i("gov-icon",{name:"x-lg"})),i("div",{key:"90ff65de7a67d968bbfb2726a5642052d7c125ce",class:v.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(v.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-toast",{color:[1],gravity:[1],position:[1],type:[1],time:[2],closeLabel:[1,"close-label"],accessibleCloseLabel:[1,"accessible-close-label"],inheritedAttributes:[32],destroy:[64]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-toast","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-toast":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-icon":if(!customElements.get(t)){f()}break}}))}y();const j=g;const k=y;export{j as GovToast,k as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ToastColors","pick","Colors","ToastType","ToastClass","root","hidden","content","close","timer","GovToast","proxyCustomElement","H","constructor","this","h","govHost","host","toastId","createID","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","runTimer","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","clearTimeout","timeout","stopObserving","removeAttribute","Object","assign","isTimer","setTimeout","classList","add","destroy","catch","govClose","emit","time","render","Host","key","class","classes","gravity","position","type","style","hasSlot","name","role","size","accessibleCloseLabel","isBold","onCloseHandler","bind","closeLabel","
|
|
1
|
+
{"version":3,"names":["ToastColors","pick","Colors","ToastType","ToastClass","root","hidden","content","close","timer","GovToast","proxyCustomElement","H","constructor","this","h","govHost","host","toastId","createID","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","runTimer","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","clearTimeout","timeout","stopObserving","removeAttribute","Object","assign","isTimer","setTimeout","classList","add","destroy","catch","govClose","emit","time","render","Host","key","class","classes","gravity","position","type","style","hasSlot","name","role","size","accessibleCloseLabel","isBold","onCloseHandler","bind","closeLabel","Number","isInteger","toast","document","querySelector","remove"],"sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\n\nexport enum ToastType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\n\nexport const ToastClass = {\n\troot: 'gov-toast',\n\thidden: 'gov-toast--hidden',\n\tcontent: 'gov-toast__content',\n\tclose: 'gov-toast__close',\n\ttimer: 'gov-toast__timer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createID} from \"../../utils/string.utils\"\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-toast\",\n})\nexport class GovToast {\n\tprivate h: GovHost\n\tprivate timeout\n\tprivate readonly toastId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.toastId = createID(\"GovToast\")\n\t}\n\n\t@Element() host: HTMLGovToastElement\n\t/**\n\t * Style variation of the toast message.\n\t */\n\t@Prop() readonly color?: ToastColorType = \"primary\"\n\n\t/**\n\t * Toast’s gravity\n\t */\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\n\t/**\n\t * Toast’s position\n\t */\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\n\t/**\n\t * Toast type\n\t */\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\n\t/**\n\t * Number of milliseconds to wait before Toast disappear\n\t */\n\t@Prop() readonly time: number = 0\n\t/**\n\t * Closing button texting instead of icons\n\t */\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\n\t/**\n\t * Aria label for the closing button. It is mandatory if the alert is closable\n\t */\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: \"gov-close\"}) govClose: EventEmitter<string>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.runTimer()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\n\tdisconnectedCallback() {\n\t\tclearTimeout(this.timeout)\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate runTimer() {\n\t\tif (this.isTimer) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.destroy().catch()\n\t\t\t\t\tthis.govClose.emit(this.toastId)\n\t\t\t\t}, 600)\n\t\t\t}, this.time)\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\n\t\t\t\tdata-toast-id={this.toastId}\n\t\t\t\tgravity={this.gravity}\n\t\t\t\tposition={this.position}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\n\t\t\t>\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t)}\n\n\t\t\t\t<div class={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\n\t\t\t\t\t<slot/>\n\t\t\t\t</div>\n\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\tclass={ToastClass.close}\n\t\t\t\t>\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\"></gov-icon>}\n\t\t\t\t</gov-button>\n\n\t\t\t\t<div class={ToastClass.timer}></div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(): void {\n\t\tthis.govClose.emit(this.toastId)\n\t\tthis.destroy().catch()\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n\n\tget isTimer(): boolean {\n\t\treturn Number.isInteger(this.time) && this.time > 0\n\t}\n\n\t/**\n\t * Remove toast from dom\n\t */\n\t@Method()\n\tasync destroy(): Promise<void> {\n\t\tclearTimeout(this.timeout)\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\n\t\tif (toast) {\n\t\t\ttoast.classList.add(ToastClass.hidden)\n\t\t\tif (typeof toast.remove === \"function\") {\n\t\t\t\ttoast.remove()\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,h as e,d as i}from"./p-
|
|
1
|
+
import{p as t,H as s,h as e,d as i}from"./p-42200001.js";import{T as o,a as n,b as a}from"./p-565120d5.js";import{c}from"./p-0075138f.js";import{d as l}from"./p-6ea84137.js";import{d as r}from"./p-387052e1.js";const h=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"f57a1f6fb8d74271b6fc993838115ab419d9b429",class:a.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!c(this.isVisible),"is-visible":this.isVisible},e("slot",{key:"921baaaaa6286be7365cefaaaea8ecc20c16bebf"}),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"left-icon",name:"x-lg",type:"basic"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[4,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"]},undefined,{isVisible:["visibleContent"]}]);function f(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,h)}break;case"gov-button":if(!customElements.get(t)){l()}break;case"gov-icon":if(!customElements.get(t)){r()}break}}))}f();const b=h;const m=f;export{b as GovTooltipContent,m as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tooltip-content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GovTooltipContent","proxyCustomElement","H","TooltipColors","PRIMARY","TooltipSize","_M","visibleContent","newValue","clearTimeout","this","timeout","setTimeout","host","style","visibility","hideContent","isVisible","persist","parentEl","document","getElementById","parentId","hide","catch","render","h","Host","key","class","TooltipContentClass","root","role","hidden","toBoolAttr","bind","color","size","type","slot","name"],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}>\n\t\t\t\t\t\t<gov-icon slot={\"left-icon\"} name={\"x-lg\"} type={\"basic\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["GovTooltipContent","proxyCustomElement","H","TooltipColors","PRIMARY","TooltipSize","_M","visibleContent","newValue","clearTimeout","this","timeout","setTimeout","host","style","visibility","hideContent","isVisible","persist","parentEl","document","getElementById","parentId","hide","catch","render","h","Host","key","class","TooltipContentClass","root","role","hidden","toBoolAttr","bind","color","size","type","slot","name"],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}>\n\t\t\t\t\t\t<gov-icon slot={\"left-icon\"} name={\"x-lg\"} type={\"basic\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"wNAOaA,EAAiBC,EAAA,MAAAD,UAAAE,E,uDAOeC,EAAcC,Q,UAIhBC,EAAYC,G,aAI1B,M,eAIkC,M,cAIT,I,CAGrD,cAAAC,CAAeC,GACdC,aAAaC,KAAKC,SAClB,GAAIH,IAAa,MAAO,CACvBE,KAAKC,QAAUC,YAAW,KACzBF,KAAKG,KAAKC,MAAMC,WAAa,QAAQ,GACnC,I,KACG,CACNL,KAAKG,KAAKC,MAAMC,WAAa,S,EAI/B,WAAAC,GACCN,KAAKO,UAAY,MACjBP,KAAKQ,QAAU,MACf,MAAMC,EAAWC,SAASC,eAAeX,KAAKY,UAC9C,GAAIH,EAAU,CACbA,EAASI,OAAOC,O,EAIlB,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CACJC,MAAOC,EAAoBC,KAC3BC,KAAM,UACNC,QAASvB,KAAKO,UAAS,eACTiB,EAAWxB,KAAKO,WAAU,aAC5BP,KAAKO,WACjBS,EAAA,QAAAE,IAAA,6CACClB,KAAKQ,QACLQ,EAAA,6BACehB,KAAKM,YAAYmB,KAAKzB,MACpC0B,MAAO1B,KAAK0B,MACZC,KAAM3B,KAAK2B,KACXC,KAAM,QACNZ,EAAA,YAAUa,KAAM,YAAaC,KAAM,OAAQF,KAAM,WAE/C,K","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,d as e}from"./p-
|
|
1
|
+
import{p as t,H as i,h as s,d as e}from"./p-42200001.js";import{v as o}from"./p-19c681a3.js";import{T as h,a as n,b as a,c as r,d as c}from"./p-565120d5.js";import{c as l}from"./p-cd6c2938.js";import{g as d}from"./p-0075138f.js";import{e as f}from"./p-7501abe8.js";import{t as p}from"./p-26618322.js";const u=t(class t extends i{constructor(){super();this.__registerHost();this.tooltipContentId=undefined;this.tooltipId=undefined;this.color=h.PRIMARY;this.size=n._M;this.position="right";this.message=undefined;this.identifier=undefined;this.icon=undefined;this.persist=false;this.h=d(this.host);this.tooltipId=l("GovTooltip");this.tooltipContentId=l("GovContentTooltip")}validateColor(t){o(h,t,c.root)}validateSize(t){o(n,t,c.root)}validatePosition(t){o(r,t,c.root)}rerenderMessage(){this.createContentWrapper()}connectedCallback(){this.createContentWrapper();this.registerListeners()}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.validatePosition(this.position)}componentDidUpdate(){this.createContentWrapper()}disconnectedCallback(){this.removeContent()}createContentWrapper(){var t;if(this.tooltipContent){if(this.message){this.tooltipContent.innerHTML=this.message}else if(this.insideContent){this.tooltipContent.innerHTML=this.insideContent.innerHTML}return}let i;if(this.insideContent){i=this.insideContent}else{i=f().createElement(a.root);i.innerHTML=this.message}i.setAttribute("id",(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId);i.setAttribute("parent-id",this.tooltipId);i.setAttribute("color",this.color);i.setAttribute("size",this.size);f().body.appendChild(i)}get tooltipContent(){var t;return f().body.querySelector(`#${(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId}`)}get insideContent(){return this.host.querySelector(a.root)}registerListeners(){this.host.addEventListener("click",(t=>{t.preventDefault();this.persist=true;if(this.tooltipContent){this.tooltipContent.setAttribute("persist","true")}this.showTooltip()}));this.host.addEventListener("mouseenter",(t=>{t.preventDefault();this.showTooltip()}));this.host.addEventListener("mouseleave",(t=>{t.preventDefault();if(this.persist===false){this.hideTooltip()}}))}verifyPositionSpace(){const t=12;const i=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);const s=this.host.getBoundingClientRect();const e=this.host.offsetWidth;const o=this.host.offsetHeight;const h=this.tooltipContent.offsetWidth;const n=this.tooltipContent.offsetHeight;const a={left:s.left+document.documentElement.scrollLeft,top:s.top+document.documentElement.scrollTop};const c=a.left+t+s.width+h<=i;const l=a.left>h;if(this.position===r.LEFT||this.position===r.RIGHT){this.tooltipContent.style.top=a.top-(n-o)/2+"px";if(c===false&&l===false){this.position=r.TOP;this.tooltipContent.setAttribute("position",r.TOP)}if(l&&c===false&&this.position===r.RIGHT){this.position=r.LEFT}if(c&&l===false&&this.position===r.LEFT){this.position=r.RIGHT}}if(this.position===r.RIGHT){this.tooltipContent.setAttribute("position",r.RIGHT);this.tooltipContent.style.left=a.left+t+s.width+"px"}if(this.position===r.LEFT){this.tooltipContent.setAttribute("position",r.LEFT);this.tooltipContent.style.left=a.left-(h+t)+"px"}if(this.position===r.TOP||this.position===r.BOTTOM){if(h>e){let s=a.left-(h-e)/2;const o=s<0;const n=s+h>i;if(o&&n){this.tooltipContent.style.width="auto";this.tooltipContent.style.left=t+"px";this.tooltipContent.style.right=t+"px"}else{if(o){s=t}if(n){s=s-(i-(s+h+t))*-1}this.tooltipContent.style.left=s+"px"}}else{const t=a.left+(e-h)/2;this.tooltipContent.style.left=t+"px"}}if(this.position===r.TOP){this.tooltipContent.setAttribute("position",r.TOP);this.tooltipContent.style.top=a.top-(n+t)+"px"}if(this.position===r.BOTTOM){this.tooltipContent.setAttribute("position",r.BOTTOM);this.tooltipContent.style.top=a.top+(o+t)+"px"}this.tooltipContent.style.opacity="1"}showTooltip(){if(this.tooltipContent){this.tooltipContent.style.opacity="0";this.tooltipContent.hidden=false;this.tooltipContent.setAttribute("is-visible","true");p((()=>{this.verifyPositionSpace()}))}}hideTooltip(){if(this.tooltipContent){this.tooltipContent.setAttribute("is-visible","false");this.tooltipContent.setAttribute("persist","false");this.tooltipContent.removeAttribute("style")}}removeContent(){const t=document.getElementById(this.tooltipContentId);if(t){t.remove()}}render(){var t;return s(e,{key:"062963ab589de44e81d5b8c99e60e52caed85373",id:this.tooltipId,class:this.h.classes(c.root),position:this.position},s("span",{key:"2e9be2bc7a907ff709b4e7468f590d44a2936352",role:"button",tabindex:0,onKeyPress:()=>this.showTooltip(),onBlur:()=>{if(this.persist===false){this.hideTooltip()}},"aria-describedby":(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId},s("slot",{key:"e8c852804d1e84f31ca4bc6a8f9454c8ce98e6a6"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}},[4,"gov-tooltip",{color:[1],size:[1],position:[1025],message:[1],identifier:[1],icon:[516],persist:[32],show:[64],hide:[64]},undefined,{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}]);function m(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip"];t.forEach((t=>{switch(t){case"gov-tooltip":if(!customElements.get(t)){customElements.define(t,u)}break}}))}m();const v=u;const b=m;export{v as GovTooltip,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tooltip.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as t,c as i,h as e,d as a}from"./p-
|
|
1
|
+
import{p as s,H as t,c as i,h as e,d as a}from"./p-42200001.js";import{v as o}from"./p-19c681a3.js";import{W as n,c as d}from"./p-0c93dd39.js";import{c}from"./p-cd6c2938.js";import{g as h,b as l,t as r}from"./p-0075138f.js";import{d as m}from"./p-387052e1.js";var f;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(f||(f={}));const p=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=h(this.host);this.triggerId=c("GovWizardItem");this.contentId=c("GovWizardContent")}validateColor(s){o(d,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?f.BUTTON:f.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"89a426f07ecb1d1b32fbdb39052a2ac7d8049c2a",class:n.prefix},e("slot",{key:"26e071baf3858a37ce9bda6cf9f09947abd21db0",name:"prefix"}));return e(a,{key:"e8e377730b03812ee75737606565ddd968e209fd",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},e("div",{key:"4ea2d580649e6183df0aafdef2de7262bffbe7c0",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":l(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":r(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down"})),e("slot",{name:"annotation"})):e(t,{class:this.h.classes(n.label)},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down"})),e("slot",{name:"annotation"}))),this.collapsible?e("div",{class:n.content,id:this.contentId,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded},e("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-wizard-item",{color:[1],size:[1],identifier:[1],collapsible:[4],disabled:[4],isExpanded:[1028,"is-expanded"],open:[64],close:[64],toggle:[64],currentState:[64]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-wizard-item","gov-icon"];s.forEach((s=>{switch(s){case"gov-wizard-item":if(!customElements.get(s)){customElements.define(s,p)}break;case"gov-icon":if(!customElements.get(s)){m()}break}}))}b();const u=p;const v=b;export{u as GovWizardItem,v as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-wizard-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as a,d as i}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as a,d as i}from"./p-42200001.js";import{v as c}from"./p-19c681a3.js";import{W as o,a as d,b as r}from"./p-0c93dd39.js";import{g as n}from"./p-0075138f.js";import{a as h}from"./p-dcee21ca.js";import{d as l}from"./p-7501abe8.js";import{d as m}from"./p-e0e2e9c1.js";const f=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=n(this.host)}validateSize(e){c(r,e,d.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(o.root).forEach((e=>{e.setAttribute("size",this.size)}))}async componentDidRender(){if(l()){await m(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){return a(i,{key:"b31f7b2d27605da982cb379036be995ec9ef98ab",class:this.h.classes(d.root),role:"list",size:this.size,hydrated:this.hydrated},a("slot",{key:"4ccb835a27be7fed0be15809854bf33dbc7e48a3"}))}async validateWcag(){h(this.wcagLabel,this.wcagLabelledBy,d.root)}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-wizard",{size:[1],wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelled-by"],validateWcag:[64]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const e=["gov-wizard"];e.forEach((e=>{switch(e){case"gov-wizard":if(!customElements.get(e)){customElements.define(e,f)}break}}))}p();const b=f;const u=p;export{b as GovWizard,u as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-wizard.js.map
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{g as getAssetPath,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-42200001.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as t,H as s,c as i,h as e,d as n}from"./p-42200001.js";import{g as a,b as h,c as o}from"./p-255d0471.js";import{g as d,c,t as r,d as l}from"./p-0075138f.js";import{v as u}from"./p-19c681a3.js";import{c as f}from"./p-cd6c2938.js";import{A as p,a as m,i as b}from"./p-33d5d1ed.js";import{d as v}from"./p-6ea84137.js";import{d as g}from"./p-387052e1.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.govKeyUp=i(this,"gov-keyup",7);this.govHydrated=i(this,"gov-hydrated",7);this.govKeyDown=i(this,"gov-keydown",7);this.value=undefined;this.identifier=undefined;this.success=undefined;this.size="m";this.name=undefined;this.multiline=undefined;this.rows=undefined;this.cols=undefined;this.required=false;this.disabled=false;this.placeholder=undefined;this.readonly=undefined;this.minlength=undefined;this.maxlength=undefined;this.min=undefined;this.max=undefined;this.autocomplete=undefined;this.autocorrect=undefined;this.spellcheck=undefined;this.inputLang=undefined;this.type=undefined;this.inputType="text";this.role=undefined;this.invalid=undefined;this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.focused=undefined;this.showPassword=false;this.inheritedAttributes={};this.h=d(this.host);this.inputId=f("GovInput");this.f=a(this.h)}validateSize(t){u(o,t,h.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",c(this.success));this.f.passAttrToControl("disabled",c(this.disabled));this.f.passAttrToControl("invalid",c(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){this.attributeObserver.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(n,{key:"940cdf78dbeff2e66654d5b79ebe6c88cca4d767",class:h.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"68158bacaf2d4a63c9c5b87ab734b1aed58bc5c7",name:"prefix"}),e("span",{key:"9677512f5d6c3410443d2a9f958bdfda78ee590c",class:"element"},this.h.hasSlot("left-icon")&&e("slot",{key:"ff9434b0680ba90e27578db2f2ffecdfd6e1a511",name:"left-icon"}),this.h.hasSlot("right-icon")&&this.inputType!=="password"&&e("slot",{key:"92a3d61e8f92c0218e93a8e97ad15d0c532c9cd2",name:"right-icon"}),this.success&&!this.multiline&&e("gov-icon",{key:"822e179c3c97491ad64d95d54dc366e66f557ff1",slot:"validation-icon",class:"icon-validation",name:"check-lg"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"7583571aef50ff442c529a882a9518b41e4d11b9",slot:"validation-icon",class:"icon-validation",name:"exclamation-lg"}),e(t,Object.assign({key:"bf1826c520a0f3032b51e8d069cdf3fe953c700e",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:r(this.spellcheck),lang:this.inputLang,readonly:r(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":r(this.required),"aria-invalid":r(this.invalid),"aria-disabled":r(this.disabled)})),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"left-icon",name:"eye",type:"basic"})):null),this.h.hasSlot("sufix")&&e("slot",{key:"33b38abd971a46a31177035da5f8b42df16c09c2",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:h.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:h.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:h.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:h.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:h.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
|
|
2
|
+
//# sourceMappingURL=p-02da2aee.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Tags","GovFormInput","proxyCustomElement","H","constructor","this","h","govHost","host","inputId","createID","f","govForm","validateSize","newValue","validateProp","FormInputSizes","FormInputClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","success","disabled","invalid","multiline","TEXTAREA","INPUT","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","govHydrated","emit","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","required","removeAttribute","Object","assign","disconnectedCallback","stopObserving","render","Tag","Host","key","class","type","hasSlot","name","inputType","slot","showPassword","id","identifier","onFocus","onFocusHandler","bind","onInput","onInputHandler","onBlur","onBlurHandler","onKeyUp","onKeyUpHandler","onKeyDown","onKeyDownHandler","ref","el","inputRef","placeholder","spellcheck","toBoolAttrIfDefined","lang","inputLang","readonly","autocomplete","toOnOffAttrIfDefined","autocorrect","minlength","maxlength","min","max","rows","cols","role","value","color","accessibleHidePasswordLabel","accessibleShowPasswordLabel","e","stopPropagation","focused","govFocus","component","originalEvent","govBlur","govKeyUp","govKeyDown","target","govInput","setFocus","options","focus","setValue","clearValue","getRef"],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\nimport {FormInputEvent} from \"./gov-form-input.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop({reflect:true}) readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t */\n\t@Prop({reflect:true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\n\t */\n\t@Prop() readonly spellcheck: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\n\t */\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\n\t/**\n\t * Defined the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Accessible text for password display\n\t */\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\n\t/**\n\t * Accessible text to hide the password\n\t */\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\t@State() showPassword: boolean = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.govHydrated.emit();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"/>}\n\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && this.inputType !== 'password' && <slot name=\"right-icon\"/>}\n\n\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\n\t\t\t\t\t\tlang={this.inputLang}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.inputType === 'password' ? (\n\t\t\t\t\t\t<gov-button color={'primary'}\n\t\t\t\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\n\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\n\t\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"eye\" type=\"basic\"></gov-icon>\n\t\t\t\t\t\t</gov-button>) : null}\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Tags","GovFormInput","proxyCustomElement","H","constructor","this","h","govHost","host","inputId","createID","f","govForm","validateSize","newValue","validateProp","FormInputSizes","FormInputClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","success","disabled","invalid","multiline","TEXTAREA","INPUT","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","govHydrated","emit","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","required","removeAttribute","Object","assign","disconnectedCallback","stopObserving","render","Tag","Host","key","class","type","hasSlot","name","inputType","slot","showPassword","id","identifier","onFocus","onFocusHandler","bind","onInput","onInputHandler","onBlur","onBlurHandler","onKeyUp","onKeyUpHandler","onKeyDown","onKeyDownHandler","ref","el","inputRef","placeholder","spellcheck","toBoolAttrIfDefined","lang","inputLang","readonly","autocomplete","toOnOffAttrIfDefined","autocorrect","minlength","maxlength","min","max","rows","cols","role","value","color","accessibleHidePasswordLabel","accessibleShowPasswordLabel","e","stopPropagation","focused","govFocus","component","originalEvent","govBlur","govKeyUp","govKeyDown","target","govInput","setFocus","options","focus","setValue","clearValue","getRef"],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\nimport {FormInputEvent} from \"./gov-form-input.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop({reflect:true}) readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t */\n\t@Prop({reflect:true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\n\t */\n\t@Prop() readonly spellcheck: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\n\t */\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\n\t/**\n\t * Defined the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Accessible text for password display\n\t */\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\n\t/**\n\t * Accessible text to hide the password\n\t */\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\t@State() showPassword: boolean = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.govHydrated.emit();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"/>}\n\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && this.inputType !== 'password' && <slot name=\"right-icon\"/>}\n\n\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\n\t\t\t\t\t\tlang={this.inputLang}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.inputType === 'password' ? (\n\t\t\t\t\t\t<gov-button color={'primary'}\n\t\t\t\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\n\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\n\t\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"eye\" type=\"basic\"></gov-icon>\n\t\t\t\t\t\t</gov-button>) : null}\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as s,H as e,h as t,d as o}from"./p-42200001.js";import{F as c,a as i}from"./p-edd1417b.js";import{g as r}from"./p-0075138f.js";import{v as a}from"./p-19c681a3.js";import{c as n}from"./p-cd6c2938.js";const d=s(class s extends e{constructor(){super();this.__registerHost();this.color="neutral";this.size="m";this.h=r(this.host);this.messageId=n("GovFormMessage")}validateColor(s){a(i,s,c.root)}componentWillLoad(){this.validateColor(this.color)}render(){return t(o,{key:"4fcfd955e1c76eb390db59b2894cd3b08ac47c1c",class:this.h.classes(c.root),color:this.color,size:this.size},this.h.hasSlot("icon")&&t("slot",{key:"549c4073e26a05492212b546c92789bdf9f25575",name:"icon"}),t("span",{key:"9758bf8ce3f0c48ddca72b57eadc1f4e38da5d93",id:this.messageId,class:c.content},t("slot",{key:"6e3be2fbc214c31be072fd09c81bbf5bf7c24564"})))}async identifier(){return this.messageId}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-form-message",{color:[1],size:[1],identifier:[64]},undefined,{color:["validateColor"]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-form-message"];s.forEach((s=>{switch(s){case"gov-form-message":if(!customElements.get(s)){customElements.define(s,d)}break}}))}f();export{d as G,f as d};
|
|
2
|
+
//# sourceMappingURL=p-1d3019f3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as e,c as i,h as t,d as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as s,H as e,c as i,h as t,d as a}from"./p-42200001.js";import{a as c}from"./p-dcee21ca.js";import{d as o}from"./p-7501abe8.js";import{g as r}from"./p-0075138f.js";import{t as l}from"./p-26618322.js";const d={root:"gov-backdrop",bg:"gov-backdrop__background"};const n=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click",7);this.inverse=false;this.disabled=false;this.accessibleLabel=undefined;this.accessibleLabelledBy=undefined;this.h=r(this.host)}async componentDidRender(){if(o()){l((()=>this.validateAccessibility()))}}render(){return t(a,{key:"ee25a6a3443604253f1fa10676007aad3838f4d9",class:this.h.classes(d.root),inverse:this.inverse},t("div",{key:"fd733ec0c2f6599ce7fe360092990f4c7f0973a1",role:"button","aria-disabled":this.disabled,"aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,onClick:s=>{if(!this.disabled){this.govClick.emit(s)}},class:d.bg}))}async validateAccessibility(){c(this.accessibleLabel,this.accessibleLabelledBy,d.root,this.host)}get host(){return this}},[0,"gov-backdrop",{inverse:[4],disabled:[1540],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-backdrop"];s.forEach((s=>{switch(s){case"gov-backdrop":if(!customElements.get(s)){customElements.define(s,n)}break}}))}b();export{n as G,b as d};
|
|
2
|
+
//# sourceMappingURL=p-1f3bb41d.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,d as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as i,h as s,d as e}from"./p-42200001.js";import{p as a}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{C as o}from"./p-e3aeaca0.js";import{g as r}from"./p-0075138f.js";import{v as h}from"./p-19c681a3.js";import{A as l,a as c,i as p}from"./p-33d5d1ed.js";const d=a(n,["_XS","_S","_M","_L","_XL"]);a(o,["PRIMARY","NEUTRAL"]);var m;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(m||(m={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const f={root:"gov-skeleton"};const v=t(class t extends i{constructor(){super();this.__registerHost();this.items=[];this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(d,t,f.root)}validateShape(t){h(m,t,f.root)}validateAnimation(t){h(u,t,f.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}get style(){const t={width:null,height:null};if(this.width){t.width=this.width}if(this.height){t.height=this.height}return Object.assign({},t)}render(){return s(e,Object.assign({key:"6927d3fcc9546be5b4934f4f04d41049847d04f2",size:this.size,color:this.color,class:{[f.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:this.style}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[0,"gov-skeleton",{size:[1],color:[1],shape:[1],width:[1],height:[1],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,v)}break}}))}g();export{v as G,g as d};
|
|
2
|
+
//# sourceMappingURL=p-23b7e680.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,h as i,d as o}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as s,h as i,d as o}from"./p-42200001.js";import{p as e}from"./p-e0e2e9c1.js";import{C as n}from"./p-e3aeaca0.js";import{g as a}from"./p-bfce6f99.js";import{i as r,c}from"./p-7501abe8.js";import{g as h}from"./p-0075138f.js";import{i as l}from"./p-2aedc81e.js";import{v as f}from"./p-19c681a3.js";const u=e(n,["DEFAULT","DISABLED","ERROR","NEUTRAL","SECONDARY","SUCCESS","WARNING","ON_BOLD_WHITE","ON_BOLD_BLACK","ON_SUBTLE","WHITE_FIXED"]);var m;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(m||(m={}));const p={root:"gov-icon",holder:"gov-icon__holder"};const d="4.1.0-rc04";const v=()=>d;const w={};const g={};const E=t=>t.startsWith("http://")||t.startsWith("https://");const y=(t,s,i)=>{if(E(t)){return`${t}/${i}/${s}.svg?v=${v()}`}return a(`${t}/${i}/${s}.svg`)+`?v=${v()}`};async function b({name:t,type:s}){const i=s+"-"+t;if(w[i]){return w[i]}if(!g[i]){g[i]=fetch(y(r(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const o=await g[i];w[i]=o;return o}const D=t(class t extends s{constructor(){super();this.__registerHost();this.color=undefined;this.name=null;this.type="basic";this.visible=false;this.error=false;this.h=h(this.host)}validateColor(t){f(u,t,p.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(c()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const i=await b({name:t,type:s});const o=l(i)&&i.indexOf("svg")>-1;this.host.innerHTML=o?i:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return i(o,{class:this.h.classes(p.root),color:this.color})}static get assetsDirs(){return["assets"]}get host(){return this}static get watchers(){return{color:["validateColor"],name:["loadIconPathData"]}}},[0,"gov-icon",{color:[513],name:[513],type:[513],visible:[32],error:[32]},undefined,{color:["validateColor"],name:["loadIconPathData"]}]);function I(){if(typeof customElements==="undefined"){return}const t=["gov-icon"];t.forEach((t=>{switch(t){case"gov-icon":if(!customElements.get(t)){customElements.define(t,D)}break}}))}I();export{D as G,I as d};
|
|
2
|
+
//# sourceMappingURL=p-387052e1.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as i,d as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as s,c as e,h as i,d as a}from"./p-42200001.js";import{g as o,l as n,m as h}from"./p-255d0471.js";import{g as c,c as r,t as d}from"./p-0075138f.js";import{v as l}from"./p-19c681a3.js";import{c as f}from"./p-cd6c2938.js";import{p as u}from"./p-ded281e6.js";import{t as m}from"./p-26618322.js";import{A as p,a as v,i as b}from"./p-33d5d1ed.js";import{d as g}from"./p-387052e1.js";const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus",7);this.govBlur=e(this,"gov-blur",7);this.govChange=e(this,"gov-change",7);this.value=undefined;this.options=undefined;this.identifier=undefined;this.size="m";this.name=undefined;this.required=false;this.success=undefined;this.disabled=false;this.invalid=undefined;this.focused=undefined;this.optionsState=[];this.inheritedAttributes={};this.h=c(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(h,t,n.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}disconnectedCallback(){this.attributeObserver.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=u(this.options);this.inheritedAttributes=b(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));m((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(a,{key:"c0ecdadf5c1d3e4782078250d57e5fa08c44c3ad",class:n.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"c71e30f520a8416e9e7919cfb88cfaaae968de53",name:"prefix"}),i("span",{key:"65d66fb26ba9fb6b81f05bde3e3aa2ca3f556206",class:"element"},i("gov-icon",{key:"e70a2a24f8e6cec8547b563265d9cbef115e3c49",slot:"right-icon",name:"chevron-down",class:"icon-arrow"}),this.h.hasSlot("right-icon")&&!(this.success||this.invalid)&&i("slot",{key:"efdf84d1516056398cf910e0a67c974aec91afa6",name:"right-icon"}),this.success&&i("gov-icon",{key:"1400a24fce62f26c5e654a3765642f0486d67773",slot:"validation-icon",name:"check-lg"}),this.invalid&&i("gov-icon",{key:"c45ff7215faf1c50da2b07a2d5544f16fb9cd0c9",slot:"validation-icon",name:"exclamation-lg"}),i("select",Object.assign({key:"69dfdb382acb18345b8d5dd2f69428a5a976b7ce",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"9eaea24e76a03a7a627df7de2ce9938c50615a5b"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)})))),this.h.hasSlot("sufix")&&i("slot",{key:"6587428974991c9caeb14913a0f08fa17367e3df",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:n.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[4,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[4],disabled:[4],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}y();export{w as G,y as d};
|
|
2
|
+
//# sourceMappingURL=p-3b807239.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const e="core";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${n}.entry.js${""}`).then((e=>{{f.set(n,e)}return e[l]}),a)};var c=new Map;var v="r";var d="o";var p="s";var $="t";var h="s-id";var m="sty-id";var y="c-id";var b="slot-fb{display:contents}slot-fb[hidden]{display:none}";var w="http://www.w3.org/1999/xlink";var g=typeof window!=="undefined"?window:{};var S=g.document||{head:{}};var k=g.HTMLElement||class{};var C={t:0,$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,l)=>e.addEventListener(t,r,l),rel:(e,t,r,l)=>e.removeEventListener(t,r,l),ce:(e,t)=>new CustomEvent(e,t)};var x=t.shadowDom;var j=e=>Promise.resolve(e);var O=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var D=false;var R=[];var L=[];var A=(e,t)=>r=>{e.push(r);if(!D){D=true;if(t&&C.t&4){M(E)}else{C.raf(E)}}};var F=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var E=()=>{F(R);{F(L);if(D=R.length>0){C.raf(E)}}};var M=e=>j().then(e);var T=A(L,true);var U=e=>{const t=new URL(e,C.$);return t.origin!==g.location.origin?t.href:t.pathname};var P=e=>C.$=e;var N={};var W=e=>e!=null;var I=e=>{e=typeof e;return e==="object"||e==="function"};function _(e){var t,r,l;return(l=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?l:void 0}var B={};l(B,{err:()=>Q,map:()=>q,ok:()=>H,unwrap:()=>z,unwrapErr:()=>K});var H=e=>({isOk:true,isErr:false,value:e});var Q=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const r=t(e.value);if(r instanceof Promise){return r.then((e=>H(e)))}else{return H(r)}}if(e.isErr){const t=e.value;return Q(t)}throw"should never get here"}var z=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};var V=(e,t="")=>{{return()=>{}}};var X=(e,t)=>{{return()=>{}}};var G=(e,t,...r)=>{let l=null;let n=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let r=0;r<t.length;r++){l=t[r];if(Array.isArray(l)){f(l)}else if(l!=null&&typeof l!=="boolean"){if(i=typeof e!=="function"&&!I(l)){l=String(l)}if(i&&o){a[a.length-1].h+=l}else{a.push(i?J(null,l):l)}o=i}}};f(r);if(t){if(t.key){n=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,ee)}const u=J(e,null);u.m=t;if(a.length>0){u.S=a}{u.k=n}{u.C=s}return u};var J=(e,t)=>{const r={t:0,j:e,h:t,O:null,S:null};{r.m=null}{r.k=null}{r.C=null}return r};var Y={};var Z=e=>e&&e.j===Y;var ee={forEach:(e,t)=>e.map(te).forEach(t),map:(e,t)=>e.map(te).map(t).map(re)};var te=e=>({vattrs:e.m,vchildren:e.S,vkey:e.k,vname:e.C,vtag:e.j,vtext:e.h});var re=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return G(e.vtag,t,...e.vchildren||[])}const t=J(e.vtag,e.vtext);t.m=e.vattrs;t.S=e.vchildren;t.k=e.vkey;t.C=e.vname;return t};var le=(e,t,r,l)=>{const n=V("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=null;const f=l.D=J(t,null);if(!C.R){se(S.body,C.R=new Map)}e[h]=r;e.removeAttribute(h);ne(f,i,o,a,e,e,r);i.map((e=>{const r=e.L+"."+e.A;const l=C.R.get(r);const n=e.O;if(l&&x&&l["s-en"]===""){l.parentNode.insertBefore(n,l.nextSibling)}if(!s){n["s-hn"]=t;if(l){n["s-ol"]=l;n["s-ol"]["s-nr"]=n}}C.R.delete(r)}));n()};var ne=(e,t,r,l,n,s,i)=>{let o;let a;let f;let u;if(s.nodeType===1){o=s.getAttribute(y);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={t:0,L:a[0],A:a[1],F:a[2],M:a[3],j:s.tagName.toLowerCase(),O:s,m:null,S:null,k:null,C:null,h:null};t.push(f);s.removeAttribute(y);if(!e.S){e.S=[]}e.S[f.M]=f;e=f;if(l&&f.F==="0"){l[f.M]=f.O}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){ne(e,t,r,l,n,s.shadowRoot.childNodes[u],i)}}for(u=s.childNodes.length-1;u>=0;u--){ne(e,t,r,l,n,s.childNodes[u],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={t:0,L:a[1],A:a[2],F:a[3],M:a[4],O:s,m:null,S:null,k:null,C:null,j:null,h:null};if(o===$){f.O=s.nextSibling;if(f.O&&f.O.nodeType===3){f.h=f.O.textContent;t.push(f);s.remove();if(!e.S){e.S=[]}e.S[f.M]=f;if(l&&f.F==="0"){l[f.M]=f.O}}}else if(f.L===i){if(o===p){f.j="slot";if(a[5]){s["s-sn"]=f.C=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;r.push(f);if(!e.S){e.S=[]}e.S[f.M]=f}else if(o===v){{n["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.j==="style"){const t=J(null,s.textContent);t.O=s;t.M="0";e.S=[t]}};var se=(e,t)=>{if(e.nodeType===1){let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){se(e.shadowRoot.childNodes[r],t)}}for(r=0;r<e.childNodes.length;r++){se(e.childNodes[r],t)}}else if(e.nodeType===8){const r=e.nodeValue.split(".");if(r[0]===d){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var ie=(e,t)=>{if(e!=null&&!I(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=e=>e;var ae=(e,t,r)=>{const l=oe(e);return{emit:e=>fe(l,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}};var fe=(e,t,r)=>{const l=C.ce(t,r);e.dispatchEvent(l);return l};var ue=new WeakMap;var ce=(e,t,r)=>{let l=c.get(e);if(O&&r){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}c.set(e,l)};var ve=(e,t,r)=>{var l;const n=pe(t);const s=c.get(n);e=e.nodeType===11?e:S;if(s){if(typeof s==="string"){e=e.head||e;let r=ue.get(e);let i;if(!r){ue.set(e,r=new Set)}if(!r.has(n)){if(e.host&&(i=e.querySelector(`[${m}="${n}"]`))){i.innerHTML=s}else{i=S.createElement("style");i.innerHTML=s;const r=(l=C.T)!=null?l:_(S);if(r!=null){i.setAttribute("nonce",r)}const n=!(t.t&1)||t.t&1&&e.nodeName!=="HEAD";if(n){e.insertBefore(i,e.querySelector("link"))}}if(t.t&4){i.innerHTML+=b}if(r){r.add(n)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return n};var de=e=>{const t=e.l;const r=e.$hostElement$;const l=V("attachStyles",t.v);ve(r.getRootNode(),t);l()};var pe=(e,t)=>"sc-"+e.v;var $e=(e,t,r,l,n,s)=>{if(r!==l){let i=o(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const n=me(r);const s=me(l);t.remove(...n.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!n.includes(e))))}else if(t==="style"){{for(const t in r){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!r||l[t]!==r[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(o(g,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(r||l){const n=t.endsWith(ye);t=t.replace(be,"");if(r){C.rel(e,t,r,n)}if(l){C.ael(e,t,l,n)}}}else{const o=I(l);if((i||o&&l!==null)&&!n){try{if(!e.tagName.includes("-")){const n=l==null?"":l;if(t==="list"){i=false}else if(r==null||e[t]!=n){e[t]=n}}else{e[t]=l}}catch(e){}}let f=false;{if(a!==(a=a.replace(/^xlink\:?/,""))){t=a;f=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(w,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||n)&&!o){l=l===true?"":l;if(f){e.setAttributeNS(w,t,l)}else{e.setAttribute(t,l)}}}}};var he=/\s/;var me=e=>!e?[]:e.split(he);var ye="Capture";var be=new RegExp(ye+"$");var we=(e,t,r)=>{const l=t.O.nodeType===11&&t.O.host?t.O.host:t.O;const n=e&&e.m||N;const s=t.m||N;{for(const e of ge(Object.keys(n))){if(!(e in s)){$e(l,e,n[e],void 0,r,t.t)}}}for(const e of ge(Object.keys(s))){$e(l,e,n[e],s[e],r,t.t)}};function ge(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Se;var ke;var Ce;var xe=false;var je=false;var Oe=false;var De=false;var Re=(e,r,l,n)=>{var s;const i=r.S[l];let o=0;let a;let f;let u;if(!xe){Oe=true;if(i.j==="slot"){i.t|=i.S?2:1}}if(i.h!==null){a=i.O=S.createTextNode(i.h)}else if(i.t&1){a=i.O=S.createTextNode("")}else{a=i.O=S.createElement(!xe&&t.slotRelocation&&i.t&2?"slot-fb":i.j);{we(null,i,De)}const r=a.getRootNode();const l=!r.querySelector("body");if(!l&&t.scoped&&W(Se)&&a["s-si"]!==Se){a.classList.add(a["s-si"]=Se)}if(i.S){for(o=0;o<i.S.length;++o){f=Re(e,i,o);if(f){a.appendChild(f)}}}}a["s-hn"]=Ce;{if(i.t&(2|1)){a["s-sr"]=true;a["s-cr"]=ke;a["s-sn"]=i.C||"";a["s-rf"]=(s=i.m)==null?void 0:s.ref;u=e&&e.S&&e.S[l];if(u&&u.j===i.j&&e.O){{Le(e.O)}}}}return a};var Le=e=>{C.t|=1;const t=e.closest(Ce.toLowerCase());if(t!=null){const r=Array.from(t.childNodes).find((e=>e["s-cr"]));const l=Array.from(e.childNodes);for(const e of r?l.reverse():l){if(e["s-sh"]!=null){Qe(t,e,r!=null?r:null);e["s-sh"]=void 0;Oe=true}}}C.t&=~1};var Ae=(e,r)=>{C.t|=1;const l=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===Ce){l.push(t)}}}for(let e=l.length-1;e>=0;e--){const t=l[e];if(t["s-hn"]!==Ce&&t["s-ol"]){Qe(Pe(t),t,Ue(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;Oe=true}if(r){Ae(t,r)}}C.t&=~1};var Fe=(e,t,r,l,n,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;n<=s;++n){if(l[n]){o=Re(null,r,n);if(o){l[n].O=o;Qe(i,o,Ue(t))}}}};var Ee=(e,t,r)=>{for(let l=t;l<=r;++l){const t=e[l];if(t){const e=t.O;He(t);if(e){{je=true;if(e["s-ol"]){e["s-ol"].remove()}else{Ae(e,true)}}e.remove()}}}};var Me=(e,t,r,l,n=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let u=t[0];let c=t[f];let v=l.length-1;let d=l[0];let p=l[v];let $;let h;while(s<=f&&i<=v){if(u==null){u=t[++s]}else if(c==null){c=t[--f]}else if(d==null){d=l[++i]}else if(p==null){p=l[--v]}else if(Te(u,d,n)){Ne(u,d,n);u=t[++s];d=l[++i]}else if(Te(c,p,n)){Ne(c,p,n);c=t[--f];p=l[--v]}else if(Te(u,p,n)){if(u.j==="slot"||p.j==="slot"){Ae(u.O.parentNode,false)}Ne(u,p,n);Qe(e,u.O,c.O.nextSibling);u=t[++s];p=l[--v]}else if(Te(c,d,n)){if(u.j==="slot"||p.j==="slot"){Ae(c.O.parentNode,false)}Ne(c,d,n);Qe(e,c.O,u.O);c=t[--f];d=l[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].k!==null&&t[a].k===d.k){o=a;break}}}if(o>=0){h=t[o];if(h.j!==d.j){$=Re(t&&t[i],r,o)}else{Ne(h,d,n);t[o]=void 0;$=h.O}d=l[++i]}else{$=Re(t&&t[i],r,i);d=l[++i]}if($){{Qe(Pe(u.O),$,Ue(u.O))}}}}if(s>f){Fe(e,l[v+1]==null?null:l[v+1].O,r,l,i,v)}else if(i>v){Ee(t,s,f)}};var Te=(e,t,r=false)=>{if(e.j===t.j){if(e.j==="slot"){if("A"in e&&r&&e.O.nodeType!==8){return false}return e.C===t.C}if(!r){return e.k===t.k}return true}return false};var Ue=e=>e&&e["s-ol"]||e;var Pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var Ne=(e,r,l=false)=>{const n=r.O=e.O;const s=e.S;const i=r.S;const o=r.j;const a=r.h;let f;if(a===null){{if(o==="slot"&&!xe){if(e.C!==r.C){r.O["s-sn"]=r.C||"";Le(r.O.parentElement)}}else{we(e,r,De)}}if(s!==null&&i!==null){Me(n,s,r,i,l)}else if(i!==null){if(e.h!==null){n.textContent=""}Fe(n,null,r,i,0,i.length-1)}else if(!l&&t.updatable&&s!==null){Ee(s,0,s.length-1)}}else if(f=n["s-cr"]){f.parentNode.textContent=a}else if(e.h!==a){n.data=a}};var We=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const r=e["s-sn"];e.hidden=false;for(const l of t){if(l!==e){if(l["s-hn"]!==e["s-hn"]||r!==""){if(l.nodeType===1&&(r===l.getAttribute("slot")||r===l["s-sn"])||l.nodeType===3&&r===l["s-sn"]){e.hidden=true;break}}else{if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){e.hidden=true;break}}}}}We(e)}}};var Ie=[];var _e=e=>{let t;let r;let l;for(const n of e.childNodes){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;const e=n["s-sn"];for(l=r.length-1;l>=0;l--){t=r[l];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==n["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==n["s-hn"])){if(Be(t,e)){let r=Ie.find((e=>e.U===t));je=true;t["s-sn"]=t["s-sn"]||e;if(r){r.U["s-sh"]=n["s-hn"];r.P=n}else{t["s-sh"]=n["s-hn"];Ie.push({P:n,U:t})}if(t["s-sr"]){Ie.map((e=>{if(Be(e.U,t["s-sn"])){r=Ie.find((e=>e.U===t));if(r&&!e.P){e.P=r.P}}}))}}else if(!Ie.some((e=>e.U===t))){Ie.push({U:t})}}}}if(n.nodeType===1){_e(n)}}};var Be=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var He=e=>{{e.m&&e.m.ref&&e.m.ref(null);e.S&&e.S.map(He)}};var Qe=(e,t,r)=>{const l=e==null?void 0:e.insertBefore(t,r);return l};var qe=(e,t,r=false)=>{var l,n,s,i;const o=e.$hostElement$;const a=e.l;const f=e.D||J(null,null);const u=Z(t)?t:G(null,null,t);Ce=o.tagName;if(a.N){u.m=u.m||{};a.N.map((([e,t])=>u.m[t]=o[e]))}if(r&&u.m){for(const e of Object.keys(u.m)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.m[e]=o[e]}}}u.j=null;u.t|=4;e.D=u;u.O=f.O=o;xe=x;{ke=o["s-cr"];je=false}Ne(f,u,r);{C.t|=1;if(Oe){_e(u.O);for(const e of Ie){const t=e.U;if(!t["s-ol"]){const e=S.createTextNode("");e["s-nr"]=t;Qe(t.parentNode,t["s-ol"]=e,t)}}for(const e of Ie){const t=e.U;const o=e.P;if(o){const e=o.parentNode;let r=o.nextSibling;if(r&&r.nodeType===1){let s=(l=t["s-ol"])==null?void 0:l.previousSibling;while(s){let l=(n=s["s-nr"])!=null?n:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;while(l===t||(l==null?void 0:l["s-sr"])){l=l==null?void 0:l.nextSibling}if(!l||!l["s-nr"]){r=l;break}}s=s.previousSibling}}if(!r&&e!==t.parentNode||t.nextSibling!==r){if(t!==r){Qe(e,t,r);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(r){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(je){We(u.O)}C.t&=~1;Ie.length=0}ke=void 0};var ze=(e,t)=>{if(t&&!e.W&&t["s-p"]){t["s-p"].push(new Promise((t=>e.W=t)))}};var Ke=(e,t)=>{{e.t|=16}if(e.t&4){e.t|=512;return}ze(e,e.I);const r=()=>Ve(e,t);return T(r)};var Ve=(e,t)=>{const r=e.$hostElement$;const l=V("scheduleUpdate",e.l.v);const n=r;if(!n){throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=tt(n,"componentWillLoad")}}else{{s=tt(n,"componentWillUpdate")}}l();return Xe(s,(()=>Je(e,n,t)))};var Xe=(e,t)=>Ge(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Je=async(e,t,r)=>{var l;const n=e.$hostElement$;const s=V("update",e.l.v);const i=n["s-rc"];if(r){de(e)}const o=V("render",e.l.v);{Ye(e,t,n,r)}if(i){i.map((e=>e()));n["s-rc"]=void 0}o();s();{const t=(l=n["s-p"])!=null?l:[];const r=()=>Ze(e);if(t.length===0){r()}else{Promise.all(t).then(r);e.t|=4;t.length=0}}};var Ye=(e,t,r,l)=>{try{t=t.render();{e.t&=~16}{e.t|=2}{{{qe(e,t,l)}}}}catch(t){a(t,e.$hostElement$)}return null};var Ze=e=>{const t=e.l.v;const r=e.$hostElement$;const l=V("postUpdate",t);const n=r;const s=e.I;{tt(n,"componentDidRender")}if(!(e.t&64)){e.t|=64;{rt(r)}{tt(n,"componentDidLoad")}l();{e.u(r);if(!s){et()}}}else{{tt(n,"componentDidUpdate")}l()}{if(e.W){e.W();e.W=void 0}if(e.t&512){M((()=>Ke(e,false)))}e.t&=~(4|512)}};var et=t=>{{rt(S.documentElement)}M((()=>fe(g,"appload",{detail:{namespace:e}})))};var tt=(e,t,r)=>{if(e&&e[t]){try{return e[t](r)}catch(e){a(e)}}return void 0};var rt=e=>{var r;return e.classList.add((r=t.hydratedSelectorName)!=null?r:"hydrated")};var lt=(e,t)=>s(e).i.get(t);var nt=(e,t,r,l)=>{const n=s(e);const i=e;const o=n.i.get(t);const f=n.t;const u=i;r=ie(r,l._[t][0]);const c=Number.isNaN(o)&&Number.isNaN(r);const v=r!==o&&!c;if(v){n.i.set(t,r);{if(l.B&&f&128){const e=l.B[t];if(e){e.map((e=>{try{u[e](r,o,t)}catch(e){a(e,i)}}))}}if((f&(2|16))===2){Ke(n,false)}}}};var st=(e,t,r)=>{var l,n;const i=e.prototype;if(t._||(t.B||e.watchers)){if(e.watchers&&!t.B){t.B=e.watchers}const r=Object.entries((l=t._)!=null?l:{});r.map((([e,[r]])=>{if(r&31||r&32){Object.defineProperty(i,e,{get(){return lt(this,e)},set(r){nt(this,e,r,t)},configurable:true,enumerable:true})}}));{const l=new Map;i.attributeChangedCallback=function(e,r,n){C.jmp((()=>{var o;const a=l.get(e);if(this.hasOwnProperty(a)){n=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==n){return}else if(a==null){const l=s(this);const i=l==null?void 0:l.t;if(i&&!(i&8)&&i&128&&n!==r){const l=this;const s=l;const i=(o=t.B)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,n,r,e)}}))}return}this[a]=n===null&&typeof this[a]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set([...Object.keys((n=t.B)!=null?n:{}),...r.filter((([e,t])=>t[0]&15)).map((([e,r])=>{var n;const s=r[1]||e;l.set(s,e);if(r[0]&512){(n=t.N)==null?void 0:n.push([e,s])}return s}))]))}}return e};var it=async(e,t,r,l)=>{let n;if((t.t&32)===0){t.t|=32;const l=r.p;if(l){const e=u(r);if(e&&"then"in e){const t=X();n=await e;t()}else{n=e}if(!n){throw new Error(`Constructor for "${r.v}#${t.H}" was not found`)}if(!n.isProxied){{r.B=n.watchers}st(n,r);n.isProxied=true}const l=V("createInstance",r.v);{t.t|=8}try{new n(t)}catch(e){a(e)}{t.t&=~8}{t.t|=128}l()}else{n=e.constructor;const r=e.localName;customElements.whenDefined(r).then((()=>t.t|=128))}if(n&&n.style){let e;if(typeof n.style==="string"){e=n.style}const t=pe(r);if(!c.has(t)){const l=V("registerStyles",r.v);ce(t,e,!!(r.t&1));l()}}}const s=t.I;const i=()=>Ke(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var ot=e=>{};var at=e=>{if((C.t&1)===0){const t=s(e);const r=t.l;const l=V("connectedCallback",r.v);if(!(t.t&1)){t.t|=1;let l;{l=e.getAttribute(h);if(l){le(e,r.v,l,t)}}if(!l){if(r.t&(4|8)){ft(e)}}{let r=e;while(r=r.parentNode||r.host){if(r.nodeType===1&&r.hasAttribute("s-id")&&r["s-p"]||r["s-p"]){ze(t,t.I=r);break}}}if(r._){Object.entries(r._).map((([t,[r]])=>{if(r&31&&e.hasOwnProperty(t)){const r=e[t];delete e[t];e[t]=r}}))}{it(e,t,r)}}else{if(t==null?void 0:t.q);else if(t==null?void 0:t.o){t.o.then((()=>ot()))}}l()}};var ft=e=>{const t=e["s-cr"]=S.createComment("");t["s-cn"]=true;Qe(e,t,e.firstChild)};var ut=async e=>{if((C.t&1)===0){s(e)}};var ct=(e,t)=>{const r={t:t[0],v:t[1]};{r._=t[2]}{r.B=e.B}{r.N=[]}const l=e.prototype.connectedCallback;const n=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost(){i(this,r)},connectedCallback(){s(this);at(this);if(l){l.call(this)}},disconnectedCallback(){ut(this);if(n){n.call(this)}},__attachShadow(){{this.shadowRoot=this}}});e.is=r.v;return st(e,r)};var vt=(e,t)=>t;var dt=e=>C.T=e;var pt=e=>Object.assign(C,e);export{vt as F,k as H,dt as a,pt as b,ae as c,Y as d,U as g,G as h,ct as p,P as s};
|
|
3
|
-
//# sourceMappingURL=p-
|
|
1
|
+
const e="core";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:true,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:true,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:false,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var r=Object.defineProperty;var l=(e,t)=>{for(var l in t)r(e,l,{get:t[l],enumerable:true})};var n=new WeakMap;var s=e=>n.get(e);var i=(e,t)=>{const r={t:0,$hostElement$:e,l:t,i:new Map};{r.o=new Promise((e=>r.u=e));e["s-p"]=[];e["s-rc"]=[]}return n.set(e,r)};var o=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var f=new Map;var u=(e,t,r)=>{const l=e.v.replace(/-/g,"_");const n=e.p;if(!n){return void 0}const s=f.get(n);if(s){return s[l]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${n}.entry.js${""}`).then((e=>{{f.set(n,e)}return e[l]}),a)};var c=new Map;var v="r";var d="o";var p="s";var $="t";var h="s-id";var m="sty-id";var y="c-id";var b="slot-fb{display:contents}slot-fb[hidden]{display:none}";var w="http://www.w3.org/1999/xlink";var g=typeof window!=="undefined"?window:{};var S=g.document||{head:{}};var k=g.HTMLElement||class{};var C={t:0,$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,l)=>e.addEventListener(t,r,l),rel:(e,t,r,l)=>e.removeEventListener(t,r,l),ce:(e,t)=>new CustomEvent(e,t)};var x=t.shadowDom;var j=e=>Promise.resolve(e);var O=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var R=false;var D=[];var L=[];var A=(e,t)=>r=>{e.push(r);if(!R){R=true;if(t&&C.t&4){M(E)}else{C.raf(E)}}};var F=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var E=()=>{F(D);{F(L);if(R=D.length>0){C.raf(E)}}};var M=e=>j().then(e);var T=A(L,true);var U=e=>{const t=new URL(e,C.$);return t.origin!==g.location.origin?t.href:t.pathname};var P=e=>C.$=e;var W={};var N=e=>e!=null;var I=e=>{e=typeof e;return e==="object"||e==="function"};function _(e){var t,r,l;return(l=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?l:void 0}var B={};l(B,{err:()=>Q,map:()=>q,ok:()=>H,unwrap:()=>z,unwrapErr:()=>K});var H=e=>({isOk:true,isErr:false,value:e});var Q=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const r=t(e.value);if(r instanceof Promise){return r.then((e=>H(e)))}else{return H(r)}}if(e.isErr){const t=e.value;return Q(t)}throw"should never get here"}var z=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};var V=(e,t="")=>{{return()=>{}}};var X=(e,t)=>{{return()=>{}}};var G=(e,t,...r)=>{let l=null;let n=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let r=0;r<t.length;r++){l=t[r];if(Array.isArray(l)){f(l)}else if(l!=null&&typeof l!=="boolean"){if(i=typeof e!=="function"&&!I(l)){l=String(l)}if(i&&o){a[a.length-1].h+=l}else{a.push(i?J(null,l):l)}o=i}}};f(r);if(t){if(t.key){n=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,ee)}const u=J(e,null);u.m=t;if(a.length>0){u.S=a}{u.k=n}{u.C=s}return u};var J=(e,t)=>{const r={t:0,j:e,h:t,O:null,S:null};{r.m=null}{r.k=null}{r.C=null}return r};var Y={};var Z=e=>e&&e.j===Y;var ee={forEach:(e,t)=>e.map(te).forEach(t),map:(e,t)=>e.map(te).map(t).map(re)};var te=e=>({vattrs:e.m,vchildren:e.S,vkey:e.k,vname:e.C,vtag:e.j,vtext:e.h});var re=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return G(e.vtag,t,...e.vchildren||[])}const t=J(e.vtag,e.vtext);t.m=e.vattrs;t.S=e.vchildren;t.k=e.vkey;t.C=e.vname;return t};var le=(e,t,r,l)=>{const n=V("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=null;const f=l.R=J(t,null);if(!C.D){se(S.body,C.D=new Map)}e[h]=r;e.removeAttribute(h);ne(f,i,o,a,e,e,r);i.map((e=>{const r=e.L+"."+e.A;const l=C.D.get(r);const n=e.O;if(l&&x&&l["s-en"]===""){l.parentNode.insertBefore(n,l.nextSibling)}if(!s){n["s-hn"]=t;if(l){n["s-ol"]=l;n["s-ol"]["s-nr"]=n}}C.D.delete(r)}));n()};var ne=(e,t,r,l,n,s,i)=>{let o;let a;let f;let u;if(s.nodeType===1){o=s.getAttribute(y);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={t:0,L:a[0],A:a[1],F:a[2],M:a[3],j:s.tagName.toLowerCase(),O:s,m:null,S:null,k:null,C:null,h:null};t.push(f);s.removeAttribute(y);if(!e.S){e.S=[]}e.S[f.M]=f;e=f;if(l&&f.F==="0"){l[f.M]=f.O}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){ne(e,t,r,l,n,s.shadowRoot.childNodes[u],i)}}for(u=s.childNodes.length-1;u>=0;u--){ne(e,t,r,l,n,s.childNodes[u],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={t:0,L:a[1],A:a[2],F:a[3],M:a[4],O:s,m:null,S:null,k:null,C:null,j:null,h:null};if(o===$){f.O=s.nextSibling;if(f.O&&f.O.nodeType===3){f.h=f.O.textContent;t.push(f);s.remove();if(!e.S){e.S=[]}e.S[f.M]=f;if(l&&f.F==="0"){l[f.M]=f.O}}}else if(f.L===i){if(o===p){f.j="slot";if(a[5]){s["s-sn"]=f.C=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;r.push(f);if(!e.S){e.S=[]}e.S[f.M]=f}else if(o===v){{n["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.j==="style"){const t=J(null,s.textContent);t.O=s;t.M="0";e.S=[t]}};var se=(e,t)=>{if(e.nodeType===1){let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){se(e.shadowRoot.childNodes[r],t)}}for(r=0;r<e.childNodes.length;r++){se(e.childNodes[r],t)}}else if(e.nodeType===8){const r=e.nodeValue.split(".");if(r[0]===d){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var ie=(e,t)=>{if(e!=null&&!I(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=e=>e;var ae=(e,t,r)=>{const l=oe(e);return{emit:e=>fe(l,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}};var fe=(e,t,r)=>{const l=C.ce(t,r);e.dispatchEvent(l);return l};var ue=new WeakMap;var ce=(e,t,r)=>{let l=c.get(e);if(O&&r){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}c.set(e,l)};var ve=(e,t,r)=>{var l;const n=pe(t);const s=c.get(n);e=e.nodeType===11?e:S;if(s){if(typeof s==="string"){e=e.head||e;let r=ue.get(e);let i;if(!r){ue.set(e,r=new Set)}if(!r.has(n)){if(e.host&&(i=e.querySelector(`[${m}="${n}"]`))){i.innerHTML=s}else{i=S.createElement("style");i.innerHTML=s;const r=(l=C.T)!=null?l:_(S);if(r!=null){i.setAttribute("nonce",r)}const n=!(t.t&1)||t.t&1&&e.nodeName!=="HEAD";if(n){e.insertBefore(i,e.querySelector("link"))}}if(t.t&4){i.innerHTML+=b}if(r){r.add(n)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return n};var de=e=>{const t=e.l;const r=e.$hostElement$;const l=V("attachStyles",t.v);ve(r.getRootNode(),t);l()};var pe=(e,t)=>"sc-"+e.v;var $e=(e,t,r,l,n,s)=>{if(r!==l){let i=o(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const n=me(r);const s=me(l);t.remove(...n.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!n.includes(e))))}else if(t==="style"){{for(const t in r){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!r||l[t]!==r[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(o(g,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(r||l){const n=t.endsWith(ye);t=t.replace(be,"");if(r){C.rel(e,t,r,n)}if(l){C.ael(e,t,l,n)}}}else{const o=I(l);if((i||o&&l!==null)&&!n){try{if(!e.tagName.includes("-")){const n=l==null?"":l;if(t==="list"){i=false}else if(r==null||e[t]!=n){e[t]=n}}else{e[t]=l}}catch(e){}}let f=false;{if(a!==(a=a.replace(/^xlink\:?/,""))){t=a;f=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(w,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||n)&&!o){l=l===true?"":l;if(f){e.setAttributeNS(w,t,l)}else{e.setAttribute(t,l)}}}}};var he=/\s/;var me=e=>!e?[]:e.split(he);var ye="Capture";var be=new RegExp(ye+"$");var we=(e,t,r)=>{const l=t.O.nodeType===11&&t.O.host?t.O.host:t.O;const n=e&&e.m||W;const s=t.m||W;{for(const e of ge(Object.keys(n))){if(!(e in s)){$e(l,e,n[e],void 0,r,t.t)}}}for(const e of ge(Object.keys(s))){$e(l,e,n[e],s[e],r,t.t)}};function ge(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Se;var ke;var Ce;var xe=false;var je=false;var Oe=false;var Re=false;var De=(e,r,l,n)=>{var s;const i=r.S[l];let o=0;let a;let f;let u;if(!xe){Oe=true;if(i.j==="slot"){i.t|=i.S?2:1}}if(i.h!==null){a=i.O=S.createTextNode(i.h)}else if(i.t&1){a=i.O=S.createTextNode("")}else{a=i.O=S.createElement(!xe&&t.slotRelocation&&i.t&2?"slot-fb":i.j);{we(null,i,Re)}const r=a.getRootNode();const l=!r.querySelector("body");if(!l&&t.scoped&&N(Se)&&a["s-si"]!==Se){a.classList.add(a["s-si"]=Se)}if(i.S){for(o=0;o<i.S.length;++o){f=De(e,i,o);if(f){a.appendChild(f)}}}}a["s-hn"]=Ce;{if(i.t&(2|1)){a["s-sr"]=true;a["s-cr"]=ke;a["s-sn"]=i.C||"";a["s-rf"]=(s=i.m)==null?void 0:s.ref;u=e&&e.S&&e.S[l];if(u&&u.j===i.j&&e.O){{Le(e.O)}}}}return a};var Le=e=>{C.t|=1;const t=e.closest(Ce.toLowerCase());if(t!=null){const r=Array.from(t.childNodes).find((e=>e["s-cr"]));const l=Array.from(e.childNodes);for(const e of r?l.reverse():l){if(e["s-sh"]!=null){Qe(t,e,r!=null?r:null);e["s-sh"]=void 0;Oe=true}}}C.t&=~1};var Ae=(e,r)=>{C.t|=1;const l=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===Ce){l.push(t)}}}for(let e=l.length-1;e>=0;e--){const t=l[e];if(t["s-hn"]!==Ce&&t["s-ol"]){Qe(Pe(t),t,Ue(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;Oe=true}if(r){Ae(t,r)}}C.t&=~1};var Fe=(e,t,r,l,n,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;n<=s;++n){if(l[n]){o=De(null,r,n);if(o){l[n].O=o;Qe(i,o,Ue(t))}}}};var Ee=(e,t,r)=>{for(let l=t;l<=r;++l){const t=e[l];if(t){const e=t.O;He(t);if(e){{je=true;if(e["s-ol"]){e["s-ol"].remove()}else{Ae(e,true)}}e.remove()}}}};var Me=(e,t,r,l,n=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let u=t[0];let c=t[f];let v=l.length-1;let d=l[0];let p=l[v];let $;let h;while(s<=f&&i<=v){if(u==null){u=t[++s]}else if(c==null){c=t[--f]}else if(d==null){d=l[++i]}else if(p==null){p=l[--v]}else if(Te(u,d,n)){We(u,d,n);u=t[++s];d=l[++i]}else if(Te(c,p,n)){We(c,p,n);c=t[--f];p=l[--v]}else if(Te(u,p,n)){if(u.j==="slot"||p.j==="slot"){Ae(u.O.parentNode,false)}We(u,p,n);Qe(e,u.O,c.O.nextSibling);u=t[++s];p=l[--v]}else if(Te(c,d,n)){if(u.j==="slot"||p.j==="slot"){Ae(c.O.parentNode,false)}We(c,d,n);Qe(e,c.O,u.O);c=t[--f];d=l[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].k!==null&&t[a].k===d.k){o=a;break}}}if(o>=0){h=t[o];if(h.j!==d.j){$=De(t&&t[i],r,o)}else{We(h,d,n);t[o]=void 0;$=h.O}d=l[++i]}else{$=De(t&&t[i],r,i);d=l[++i]}if($){{Qe(Pe(u.O),$,Ue(u.O))}}}}if(s>f){Fe(e,l[v+1]==null?null:l[v+1].O,r,l,i,v)}else if(i>v){Ee(t,s,f)}};var Te=(e,t,r=false)=>{if(e.j===t.j){if(e.j==="slot"){if("A"in e&&r&&e.O.nodeType!==8){return false}return e.C===t.C}if(!r){return e.k===t.k}return true}return false};var Ue=e=>e&&e["s-ol"]||e;var Pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var We=(e,r,l=false)=>{const n=r.O=e.O;const s=e.S;const i=r.S;const o=r.j;const a=r.h;let f;if(a===null){{if(o==="slot"&&!xe){if(e.C!==r.C){r.O["s-sn"]=r.C||"";Le(r.O.parentElement)}}else{we(e,r,Re)}}if(s!==null&&i!==null){Me(n,s,r,i,l)}else if(i!==null){if(e.h!==null){n.textContent=""}Fe(n,null,r,i,0,i.length-1)}else if(!l&&t.updatable&&s!==null){Ee(s,0,s.length-1)}}else if(f=n["s-cr"]){f.parentNode.textContent=a}else if(e.h!==a){n.data=a}};var Ne=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const r=e["s-sn"];e.hidden=false;for(const l of t){if(l!==e){if(l["s-hn"]!==e["s-hn"]||r!==""){if(l.nodeType===1&&(r===l.getAttribute("slot")||r===l["s-sn"])||l.nodeType===3&&r===l["s-sn"]){e.hidden=true;break}}else{if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){e.hidden=true;break}}}}}Ne(e)}}};var Ie=[];var _e=e=>{let t;let r;let l;for(const n of e.childNodes){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;const e=n["s-sn"];for(l=r.length-1;l>=0;l--){t=r[l];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==n["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==n["s-hn"])){if(Be(t,e)){let r=Ie.find((e=>e.U===t));je=true;t["s-sn"]=t["s-sn"]||e;if(r){r.U["s-sh"]=n["s-hn"];r.P=n}else{t["s-sh"]=n["s-hn"];Ie.push({P:n,U:t})}if(t["s-sr"]){Ie.map((e=>{if(Be(e.U,t["s-sn"])){r=Ie.find((e=>e.U===t));if(r&&!e.P){e.P=r.P}}}))}}else if(!Ie.some((e=>e.U===t))){Ie.push({U:t})}}}}if(n.nodeType===1){_e(n)}}};var Be=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var He=e=>{{e.m&&e.m.ref&&e.m.ref(null);e.S&&e.S.map(He)}};var Qe=(e,t,r)=>{const l=e==null?void 0:e.insertBefore(t,r);return l};var qe=(e,t,r=false)=>{var l,n,s,i;const o=e.$hostElement$;const a=e.l;const f=e.R||J(null,null);const u=Z(t)?t:G(null,null,t);Ce=o.tagName;if(a.W){u.m=u.m||{};a.W.map((([e,t])=>u.m[t]=o[e]))}if(r&&u.m){for(const e of Object.keys(u.m)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.m[e]=o[e]}}}u.j=null;u.t|=4;e.R=u;u.O=f.O=o;xe=x;{ke=o["s-cr"];je=false}We(f,u,r);{C.t|=1;if(Oe){_e(u.O);for(const e of Ie){const t=e.U;if(!t["s-ol"]){const e=S.createTextNode("");e["s-nr"]=t;Qe(t.parentNode,t["s-ol"]=e,t)}}for(const e of Ie){const t=e.U;const o=e.P;if(o){const e=o.parentNode;let r=o.nextSibling;if(r&&r.nodeType===1){let s=(l=t["s-ol"])==null?void 0:l.previousSibling;while(s){let l=(n=s["s-nr"])!=null?n:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;while(l===t||(l==null?void 0:l["s-sr"])){l=l==null?void 0:l.nextSibling}if(!l||!l["s-nr"]){r=l;break}}s=s.previousSibling}}if(!r&&e!==t.parentNode||t.nextSibling!==r){if(t!==r){Qe(e,t,r);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(r){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(je){Ne(u.O)}C.t&=~1;Ie.length=0}ke=void 0};var ze=(e,t)=>{if(t&&!e.N&&t["s-p"]){t["s-p"].push(new Promise((t=>e.N=t)))}};var Ke=(e,t)=>{{e.t|=16}if(e.t&4){e.t|=512;return}ze(e,e.I);const r=()=>Ve(e,t);return T(r)};var Ve=(e,t)=>{const r=e.$hostElement$;const l=V("scheduleUpdate",e.l.v);const n=r;if(!n){throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=tt(n,"componentWillLoad")}}else{{s=tt(n,"componentWillUpdate")}}{s=Xe(s,(()=>tt(n,"componentWillRender")))}l();return Xe(s,(()=>Je(e,n,t)))};var Xe=(e,t)=>Ge(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Je=async(e,t,r)=>{var l;const n=e.$hostElement$;const s=V("update",e.l.v);const i=n["s-rc"];if(r){de(e)}const o=V("render",e.l.v);{Ye(e,t,n,r)}if(i){i.map((e=>e()));n["s-rc"]=void 0}o();s();{const t=(l=n["s-p"])!=null?l:[];const r=()=>Ze(e);if(t.length===0){r()}else{Promise.all(t).then(r);e.t|=4;t.length=0}}};var Ye=(e,t,r,l)=>{try{t=t.render();{e.t&=~16}{e.t|=2}{{{qe(e,t,l)}}}}catch(t){a(t,e.$hostElement$)}return null};var Ze=e=>{const t=e.l.v;const r=e.$hostElement$;const l=V("postUpdate",t);const n=r;const s=e.I;{tt(n,"componentDidRender")}if(!(e.t&64)){e.t|=64;{rt(r)}{tt(n,"componentDidLoad")}l();{e.u(r);if(!s){et()}}}else{{tt(n,"componentDidUpdate")}l()}{if(e.N){e.N();e.N=void 0}if(e.t&512){M((()=>Ke(e,false)))}e.t&=~(4|512)}};var et=t=>{{rt(S.documentElement)}M((()=>fe(g,"appload",{detail:{namespace:e}})))};var tt=(e,t,r)=>{if(e&&e[t]){try{return e[t](r)}catch(e){a(e)}}return void 0};var rt=e=>{var r;return e.classList.add((r=t.hydratedSelectorName)!=null?r:"hydrated")};var lt=(e,t)=>s(e).i.get(t);var nt=(e,t,r,l)=>{const n=s(e);const i=e;const o=n.i.get(t);const f=n.t;const u=i;r=ie(r,l._[t][0]);const c=Number.isNaN(o)&&Number.isNaN(r);const v=r!==o&&!c;if(v){n.i.set(t,r);{if(l.B&&f&128){const e=l.B[t];if(e){e.map((e=>{try{u[e](r,o,t)}catch(e){a(e,i)}}))}}if((f&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(r,o,t)===false){return}}Ke(n,false)}}}};var st=(e,t,r)=>{var l,n;const i=e.prototype;if(t._||(t.B||e.watchers)){if(e.watchers&&!t.B){t.B=e.watchers}const r=Object.entries((l=t._)!=null?l:{});r.map((([e,[r]])=>{if(r&31||r&32){Object.defineProperty(i,e,{get(){return lt(this,e)},set(r){nt(this,e,r,t)},configurable:true,enumerable:true})}}));{const l=new Map;i.attributeChangedCallback=function(e,r,n){C.jmp((()=>{var o;const a=l.get(e);if(this.hasOwnProperty(a)){n=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==n){return}else if(a==null){const l=s(this);const i=l==null?void 0:l.t;if(i&&!(i&8)&&i&128&&n!==r){const l=this;const s=l;const i=(o=t.B)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,n,r,e)}}))}return}this[a]=n===null&&typeof this[a]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set([...Object.keys((n=t.B)!=null?n:{}),...r.filter((([e,t])=>t[0]&15)).map((([e,r])=>{var n;const s=r[1]||e;l.set(s,e);if(r[0]&512){(n=t.W)==null?void 0:n.push([e,s])}return s}))]))}}return e};var it=async(e,t,r,l)=>{let n;if((t.t&32)===0){t.t|=32;const l=r.p;if(l){const e=u(r);if(e&&"then"in e){const t=X();n=await e;t()}else{n=e}if(!n){throw new Error(`Constructor for "${r.v}#${t.H}" was not found`)}if(!n.isProxied){{r.B=n.watchers}st(n,r);n.isProxied=true}const l=V("createInstance",r.v);{t.t|=8}try{new n(t)}catch(e){a(e)}{t.t&=~8}{t.t|=128}l()}else{n=e.constructor;const r=e.localName;customElements.whenDefined(r).then((()=>t.t|=128))}if(n&&n.style){let e;if(typeof n.style==="string"){e=n.style}const t=pe(r);if(!c.has(t)){const l=V("registerStyles",r.v);ce(t,e,!!(r.t&1));l()}}}const s=t.I;const i=()=>Ke(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var ot=e=>{};var at=e=>{if((C.t&1)===0){const t=s(e);const r=t.l;const l=V("connectedCallback",r.v);if(!(t.t&1)){t.t|=1;let l;{l=e.getAttribute(h);if(l){le(e,r.v,l,t)}}if(!l){if(r.t&(4|8)){ft(e)}}{let r=e;while(r=r.parentNode||r.host){if(r.nodeType===1&&r.hasAttribute("s-id")&&r["s-p"]||r["s-p"]){ze(t,t.I=r);break}}}if(r._){Object.entries(r._).map((([t,[r]])=>{if(r&31&&e.hasOwnProperty(t)){const r=e[t];delete e[t];e[t]=r}}))}{it(e,t,r)}}else{if(t==null?void 0:t.q);else if(t==null?void 0:t.o){t.o.then((()=>ot()))}}l()}};var ft=e=>{const t=e["s-cr"]=S.createComment("");t["s-cn"]=true;Qe(e,t,e.firstChild)};var ut=async e=>{if((C.t&1)===0){s(e)}};var ct=(e,t)=>{const r={t:t[0],v:t[1]};{r._=t[2]}{r.B=e.B}{r.W=[]}const l=e.prototype.connectedCallback;const n=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost(){i(this,r)},connectedCallback(){s(this);at(this);if(l){l.call(this)}},disconnectedCallback(){ut(this);if(n){n.call(this)}},__attachShadow(){{this.shadowRoot=this}}});e.is=r.v;return st(e,r)};var vt=(e,t)=>t;var dt=e=>C.T=e;var pt=e=>Object.assign(C,e);export{vt as F,k as H,dt as a,pt as b,ae as c,Y as d,U as g,G as h,ct as p,P as s};
|
|
3
|
+
//# sourceMappingURL=p-42200001.js.map
|