@esri/solutions-components 0.8.63 → 0.8.65
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ExpandToggle-1ff416a1.js → ExpandToggle-08ea7a69.js} +1 -1
- package/dist/cjs/{FloatingArrow-ba8caba2.js → FloatingArrow-e430eec3.js} +1 -1
- package/dist/cjs/{Heading-f1f9e2dd.js → Heading-15954ee0.js} +1 -1
- package/dist/cjs/{Validation-425b2de4.js → Validation-0ed2f4a3.js} +1 -1
- package/dist/cjs/{ar-a2f57db2.js → ar-10894ca2.js} +12 -12
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/{bg-cb903045.js → bg-0e9f4e64.js} +12 -12
- package/dist/cjs/{browser-d12b6cd5.js → browser-6137dfdf.js} +1 -1
- package/dist/cjs/{bs-3690f22d.js → bs-c3be214f.js} +12 -12
- package/dist/cjs/buffer-tools_3.cjs.entry.js +4 -4
- package/dist/cjs/{ca-fec18921.js → ca-b9c955ff.js} +12 -12
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-accordion.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-alert_4.cjs.entry.js +10 -10
- package/dist/cjs/calcite-avatar_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_5.cjs.entry.js +14 -14
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/calcite-carousel.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
- package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow_6.cjs.entry.js +9 -9
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/{calcite-input-time-picker-686f45e7.js → calcite-input-time-picker-99b4a577.js} +58 -58
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +4 -4
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu-item.cjs.entry.js +5 -5
- package/dist/cjs/calcite-menu.cjs.entry.js +5 -5
- package/dist/cjs/calcite-meter.cjs.entry.js +5 -5
- package/dist/cjs/calcite-modal.cjs.entry.js +7 -7
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +2 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pick-list.cjs.entry.js +6 -6
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sheet.cjs.entry.js +4 -4
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +13 -13
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-stepper.cjs.entry.js +4 -4
- package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-table-row.cjs.entry.js +3 -3
- package/dist/cjs/calcite-table.cjs.entry.js +6 -6
- package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tile-select.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
- package/dist/cjs/calcite-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
- package/dist/cjs/{conditionalSlot-349d1b3a.js → conditionalSlot-99fb1621.js} +2 -2
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +5 -4
- package/dist/cjs/{cs-b061b441.js → cs-3aaff343.js} +12 -12
- package/dist/cjs/{da-e3c379ae.js → da-258fbd9d.js} +12 -12
- package/dist/cjs/{date-874bf94e.js → date-00fc3e5c.js} +1 -1
- package/dist/cjs/{de-65d2876f.js → de-2aebcdd2.js} +12 -12
- package/dist/cjs/{de-at-16b7b50e.js → de-at-49139550.js} +12 -12
- package/dist/cjs/{de-ch-11dcd113.js → de-ch-cfb5727e.js} +12 -12
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-08f9ebbd.js → downloadUtils-0d728477.js} +4 -4
- package/dist/cjs/{el-321d43b5.js → el-b393b949.js} +12 -12
- package/dist/cjs/{en-au-c48e6b73.js → en-au-0bce695e.js} +12 -12
- package/dist/cjs/{en-ca-9cc0e8f7.js → en-ca-da691553.js} +12 -12
- package/dist/cjs/{en-gb-8ced841b.js → en-gb-1fcd6d59.js} +12 -12
- package/dist/cjs/{es-aca5e6b4.js → es-2509530d.js} +12 -12
- package/dist/cjs/{es-mx-b69f0ebb.js → es-mx-634125ce.js} +12 -12
- package/dist/cjs/{et-7e29340d.js → et-73fb1be6.js} +12 -12
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +5 -5
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{fi-f215f4d1.js → fi-882d0bd9.js} +12 -12
- package/dist/cjs/{floating-ui-beb70d3c.js → floating-ui-d90077fa.js} +1 -1
- package/dist/cjs/{form-71a108a7.js → form-eea3b222.js} +1 -1
- package/dist/cjs/{fr-ch-76f752e9.js → fr-ch-8dfbc6b7.js} +12 -12
- package/dist/cjs/{fr-0daba4be.js → fr-f71b2679.js} +12 -12
- package/dist/cjs/{he-32860a76.js → he-b04d3082.js} +12 -12
- package/dist/cjs/{helpers-0104985c.js → helpers-3cad996e.js} +1 -1
- package/dist/cjs/{hi-c5639f76.js → hi-eeb6d951.js} +12 -12
- package/dist/cjs/{hr-eb700fd5.js → hr-4cbb9ab9.js} +12 -12
- package/dist/cjs/{hu-e30e3d3a.js → hu-2f0ecbc7.js} +12 -12
- package/dist/cjs/{id-a3e96e5b.js → id-4ed2d454.js} +12 -12
- package/dist/cjs/{index-ff18be0d.js → index-696e53e6.js} +162 -145
- package/dist/cjs/{index-97020c9d.js → index-a0cca96e.js} +1 -1
- package/dist/cjs/{index.es-ca867656.js → index.es-5402d486.js} +4 -4
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/{interactive-7e5c7df4.js → interactive-34bc91a0.js} +2 -2
- package/dist/cjs/{it-ch-c78435e7.js → it-ch-82d7d9c4.js} +12 -12
- package/dist/cjs/{it-acd3cf54.js → it-fc446914.js} +12 -12
- package/dist/cjs/{ja-ede2132a.js → ja-d4a86ac4.js} +12 -12
- package/dist/cjs/{ko-fcd96551.js → ko-78c281da.js} +12 -12
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{loadable-5d538ba2.js → loadable-53f1d561.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-31289fc5.js → locale-0998a9f9.js} +1 -1
- package/dist/cjs/{locale-d2a1066a.js → locale-73a540a5.js} +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{lt-a30330ef.js → lt-81d0a34a.js} +12 -12
- package/dist/cjs/{lv-ac3b6560.js → lv-07db6759.js} +12 -12
- package/dist/cjs/map-select-tools_3.cjs.entry.js +7 -8
- package/dist/cjs/{mk-a3053dea.js → mk-cbbc8b51.js} +12 -12
- package/dist/cjs/{nb-7ab0bac1.js → nb-7ed8a253.js} +12 -12
- package/dist/cjs/{nl-7fa437ef.js → nl-e4e2b298.js} +12 -12
- package/dist/cjs/{observers-2a59d471.js → observers-a2648fc8.js} +1 -1
- package/dist/cjs/{openCloseComponent-e752f2a5.js → openCloseComponent-b85eabb5.js} +1 -1
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{pl-ea95b104.js → pl-770f8f68.js} +12 -12
- package/dist/cjs/{popupUtils-50b3c196.js → popupUtils-79328fc3.js} +2 -2
- package/dist/cjs/{pt-472083c2.js → pt-35056b6f.js} +12 -12
- package/dist/cjs/{pt-br-5f18543e.js → pt-br-a9159df1.js} +12 -12
- package/dist/cjs/public-notification.cjs.entry.js +6 -6
- package/dist/cjs/{publicNotificationStore-691f6f30.js → publicNotificationStore-42c4caaa.js} +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{restHelpersGet-be451f4a.js → restHelpersGet-d99cf121.js} +15 -0
- package/dist/cjs/{ro-e8b3d65c.js → ro-6a07a288.js} +12 -12
- package/dist/cjs/{ru-becefd01.js → ru-2d8f6f5f.js} +12 -12
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/{shared-list-render-6491aae1.js → shared-list-render-e0486f17.js} +2 -2
- package/dist/cjs/{sk-2f5fd4e0.js → sk-2bdec5ac.js} +12 -12
- package/dist/cjs/{sl-3ae17da6.js → sl-4aebcd29.js} +12 -12
- package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
- package/dist/cjs/solution-contents_3.cjs.entry.js +5 -5
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/{solution-store-4e35404b.js → solution-store-3edab9b1.js} +2 -2
- package/dist/cjs/solutions-components.cjs.js +2 -2
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/{sr-7d6b8d1b.js → sr-9b46b071.js} +12 -12
- package/dist/cjs/store-manager.cjs.entry.js +5 -5
- package/dist/cjs/{sv-9c51da5c.js → sv-6d8df3c4.js} +12 -12
- package/dist/cjs/{t9n-ef615628.js → t9n-d347df79.js} +2 -2
- package/dist/cjs/{templates-f7a3bf48.js → templates-ff543f5f.js} +1 -1
- package/dist/cjs/{th-fec0a074.js → th-bc1b390c.js} +12 -12
- package/dist/cjs/{time-089ab043.js → time-882a0f77.js} +1 -1
- package/dist/cjs/{tr-8d7c18a1.js → tr-cae9cd45.js} +12 -12
- package/dist/cjs/{uk-46a61312.js → uk-b66bf799.js} +12 -12
- package/dist/cjs/{utils-d237cb85.js → utils-44b3a80e.js} +1 -1
- package/dist/cjs/{utils-0ab15745.js → utils-8d9c798c.js} +1 -1
- package/dist/cjs/{vi-4114aa90.js → vi-c4217d0b.js} +12 -12
- package/dist/cjs/{zh-cn-30aca6fe.js → zh-cn-8641645c.js} +12 -12
- package/dist/cjs/{zh-hk-5971eb67.js → zh-hk-7d2fa590.js} +12 -12
- package/dist/cjs/{zh-tw-5fb5e7a9.js → zh-tw-2660bf33.js} +12 -12
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +3 -2
- package/dist/collection/components/feature-details/feature-details.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/store-manager/store-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +3 -2
- package/dist/components/feature-details2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -2
- package/dist/components/restHelpersGet.js +15 -0
- package/dist/esm/{ExpandToggle-12c73c9f.js → ExpandToggle-0efa470f.js} +1 -1
- package/dist/esm/{FloatingArrow-5585c8f7.js → FloatingArrow-c549da32.js} +1 -1
- package/dist/esm/{Heading-63031c74.js → Heading-2104570d.js} +1 -1
- package/dist/esm/{Validation-6712b322.js → Validation-cc8dc911.js} +1 -1
- package/dist/esm/{ar-19d4f5c7.js → ar-c705a441.js} +12 -12
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/{bg-63235b1a.js → bg-48ed25da.js} +12 -12
- package/dist/esm/{browser-e76c94f7.js → browser-7fe78178.js} +1 -1
- package/dist/esm/{bs-a1b74ac8.js → bs-67c8cc20.js} +12 -12
- package/dist/esm/buffer-tools_3.entry.js +4 -4
- package/dist/esm/{ca-b29c38ed.js → ca-26cc0a78.js} +12 -12
- package/dist/esm/calcite-accordion-item.entry.js +3 -3
- package/dist/esm/calcite-accordion.entry.js +2 -2
- package/dist/esm/calcite-action-bar.entry.js +7 -7
- package/dist/esm/calcite-action-group.entry.js +6 -6
- package/dist/esm/calcite-action-menu_3.entry.js +9 -9
- package/dist/esm/calcite-action-pad_2.entry.js +7 -7
- package/dist/esm/calcite-action_2.entry.js +7 -7
- package/dist/esm/calcite-alert_4.entry.js +10 -10
- package/dist/esm/calcite-avatar_2.entry.js +2 -2
- package/dist/esm/calcite-block-section.entry.js +5 -5
- package/dist/esm/calcite-block_5.entry.js +14 -14
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card-group.entry.js +4 -4
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-carousel-item.entry.js +1 -1
- package/dist/esm/calcite-carousel.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +5 -5
- package/dist/esm/calcite-chip-group.entry.js +4 -4
- package/dist/esm/calcite-chip_2.entry.js +9 -9
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
- package/dist/esm/calcite-color-picker.entry.js +7 -7
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
- package/dist/esm/calcite-combobox_3.entry.js +12 -12
- package/dist/esm/calcite-date-picker-day_3.entry.js +8 -8
- package/dist/esm/calcite-dropdown-group_2.entry.js +5 -5
- package/dist/esm/calcite-dropdown_2.entry.js +7 -7
- package/dist/esm/calcite-fab.entry.js +4 -4
- package/dist/esm/calcite-filter_5.entry.js +7 -7
- package/dist/esm/calcite-flow_6.entry.js +9 -9
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-number.entry.js +9 -9
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/{calcite-input-time-picker-7d1c6e48.js → calcite-input-time-picker-338cf509.js} +58 -58
- package/dist/esm/calcite-input-time-picker.entry.js +12 -12
- package/dist/esm/calcite-input-time-zone.entry.js +8 -8
- package/dist/esm/calcite-input_2.entry.js +9 -9
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +4 -4
- package/dist/esm/calcite-list-item-group.entry.js +3 -3
- package/dist/esm/calcite-menu-item.entry.js +5 -5
- package/dist/esm/calcite-menu.entry.js +5 -5
- package/dist/esm/calcite-meter.entry.js +5 -5
- package/dist/esm/calcite-modal.entry.js +7 -7
- package/dist/esm/calcite-navigation-logo.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +2 -2
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +7 -7
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel_2.entry.js +9 -9
- package/dist/esm/calcite-pick-list-group.entry.js +4 -4
- package/dist/esm/calcite-pick-list-item.entry.js +8 -8
- package/dist/esm/calcite-pick-list.entry.js +6 -6
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +5 -5
- package/dist/esm/calcite-rating.entry.js +8 -8
- package/dist/esm/calcite-segmented-control_2.entry.js +7 -7
- package/dist/esm/calcite-sheet.entry.js +4 -4
- package/dist/esm/calcite-shell-center-row.entry.js +3 -3
- package/dist/esm/calcite-shell-panel_14.entry.js +13 -13
- package/dist/esm/calcite-sortable-list.entry.js +4 -4
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +7 -7
- package/dist/esm/calcite-stepper.entry.js +4 -4
- package/dist/esm/calcite-switch.entry.js +5 -5
- package/dist/esm/calcite-table-cell_2.entry.js +7 -7
- package/dist/esm/calcite-table-row.entry.js +3 -3
- package/dist/esm/calcite-table.entry.js +6 -6
- package/dist/esm/calcite-text-area.entry.js +9 -9
- package/dist/esm/calcite-tile-group.entry.js +4 -4
- package/dist/esm/calcite-tile-select-group.entry.js +3 -3
- package/dist/esm/calcite-tile-select.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +4 -4
- package/dist/esm/calcite-time-picker.entry.js +6 -6
- package/dist/esm/calcite-tip-group.entry.js +1 -1
- package/dist/esm/calcite-tip-manager.entry.js +5 -5
- package/dist/esm/calcite-tip.entry.js +6 -6
- package/dist/esm/calcite-tooltip.entry.js +4 -4
- package/dist/esm/calcite-tree_2.entry.js +5 -5
- package/dist/esm/card-manager_3.entry.js +4 -4
- package/dist/esm/{conditionalSlot-56bdb202.js → conditionalSlot-850652b1.js} +2 -2
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +2 -2
- package/dist/esm/crowdsource-reporter.entry.js +5 -4
- package/dist/esm/{cs-da7231d6.js → cs-3904d9c5.js} +12 -12
- package/dist/esm/{da-7e105037.js → da-6631bc66.js} +12 -12
- package/dist/esm/{date-93ae46b9.js → date-118148f9.js} +1 -1
- package/dist/esm/{de-b5646b5d.js → de-68e0ccb3.js} +12 -12
- package/dist/esm/{de-at-1d9434bb.js → de-at-d05edf69.js} +12 -12
- package/dist/esm/{de-ch-7beada93.js → de-ch-d7d9f8b9.js} +12 -12
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/{downloadUtils-f6e2a736.js → downloadUtils-de5ccf30.js} +4 -4
- package/dist/esm/{el-0f4bf89b.js → el-fed50b65.js} +12 -12
- package/dist/esm/{en-au-5c144cef.js → en-au-5a92bd2f.js} +12 -12
- package/dist/esm/{en-ca-1160089a.js → en-ca-4cb5380c.js} +12 -12
- package/dist/esm/{en-gb-ae98fc58.js → en-gb-95bbea85.js} +12 -12
- package/dist/esm/{es-88e1743a.js → es-88df3c8f.js} +12 -12
- package/dist/esm/{es-mx-020dfaaa.js → es-mx-55caef32.js} +12 -12
- package/dist/esm/{et-84f63ef8.js → et-57bffe46.js} +12 -12
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +5 -5
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/{fi-1016ee6e.js → fi-d8584bb7.js} +12 -12
- package/dist/esm/{floating-ui-f086572c.js → floating-ui-3e149d85.js} +1 -1
- package/dist/esm/{form-8fd73cbd.js → form-8b2f6210.js} +1 -1
- package/dist/esm/{fr-0e7ffd73.js → fr-8e4f3326.js} +12 -12
- package/dist/esm/{fr-ch-e18bae2c.js → fr-ch-6f2764a9.js} +12 -12
- package/dist/esm/{he-0cebe004.js → he-1e8dacc2.js} +12 -12
- package/dist/esm/{helpers-3407a4b6.js → helpers-ca6fa5a6.js} +1 -1
- package/dist/esm/{hi-cded031d.js → hi-c786d0be.js} +12 -12
- package/dist/esm/{hr-5643b2ab.js → hr-6c59640e.js} +12 -12
- package/dist/esm/{hu-6d605858.js → hu-bc712f59.js} +12 -12
- package/dist/esm/{id-7d804c46.js → id-e11a4447.js} +12 -12
- package/dist/esm/{index-d97f4f15.js → index-1dc14abf.js} +1 -1
- package/dist/esm/{index-83b693bc.js → index-e3f04fa1.js} +162 -145
- package/dist/esm/{index.es-89f753c1.js → index.es-c1c29b61.js} +4 -4
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +3 -3
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
- package/dist/esm/instant-apps-language-translator.entry.js +3 -3
- package/dist/esm/instant-apps-measurement.entry.js +1 -1
- package/dist/esm/instant-apps-popover.entry.js +1 -1
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/{interactive-3b9600a6.js → interactive-2e2d102f.js} +2 -2
- package/dist/esm/{it-849be361.js → it-4e97c5c6.js} +12 -12
- package/dist/esm/{it-ch-453fa26d.js → it-ch-e80d2f46.js} +12 -12
- package/dist/esm/{ja-edff1441.js → ja-e3822be4.js} +12 -12
- package/dist/esm/{ko-dc103450.js → ko-d6df4c1f.js} +12 -12
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/{loadable-b765a6f6.js → loadable-01033497.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{locale-4adfc8cf.js → locale-0f1cdb1f.js} +1 -1
- package/dist/esm/{locale-a4cbae12.js → locale-60861d67.js} +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/{lt-270cc811.js → lt-9d03bfa7.js} +12 -12
- package/dist/esm/{lv-c877043c.js → lv-fff7ca43.js} +12 -12
- package/dist/esm/map-select-tools_3.entry.js +7 -8
- package/dist/esm/{mk-a816a702.js → mk-3d27ae0d.js} +12 -12
- package/dist/esm/{nb-e9c09b70.js → nb-3e1284dc.js} +12 -12
- package/dist/esm/{nl-56e70f3b.js → nl-45346a3c.js} +12 -12
- package/dist/esm/{observers-fcb1c07b.js → observers-fdb7a374.js} +1 -1
- package/dist/esm/{openCloseComponent-bbe76c58.js → openCloseComponent-1fbfcd2f.js} +1 -1
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/{pl-687b559a.js → pl-851e041f.js} +12 -12
- package/dist/esm/{popupUtils-ecec5e6d.js → popupUtils-2c4baa5d.js} +2 -2
- package/dist/esm/{pt-8b05fed2.js → pt-8899042f.js} +12 -12
- package/dist/esm/{pt-br-85bdf812.js → pt-br-a43d0201.js} +12 -12
- package/dist/esm/public-notification.entry.js +6 -6
- package/dist/esm/{publicNotificationStore-08faccff.js → publicNotificationStore-c17ad008.js} +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/{restHelpersGet-5c822bcd.js → restHelpersGet-eb33e6e1.js} +15 -0
- package/dist/esm/{ro-0975d6bb.js → ro-58f14d8f.js} +12 -12
- package/dist/esm/{ru-24b83704.js → ru-4688c237.js} +12 -12
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/{shared-list-render-07a20fc5.js → shared-list-render-b7b0f245.js} +2 -2
- package/dist/esm/{sk-8179af4d.js → sk-cc16b6af.js} +12 -12
- package/dist/esm/{sl-e6922692.js → sl-809eaa2e.js} +12 -12
- package/dist/esm/solution-configuration.entry.js +6 -6
- package/dist/esm/solution-contents_3.entry.js +5 -5
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/{solution-store-840c5489.js → solution-store-010d2027.js} +2 -2
- package/dist/esm/solutions-components.js +3 -3
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/{sr-1d30e69e.js → sr-48ddceba.js} +12 -12
- package/dist/esm/store-manager.entry.js +5 -5
- package/dist/esm/{sv-ea3c4b80.js → sv-2f138f0f.js} +12 -12
- package/dist/esm/{t9n-dd2a98fc.js → t9n-5800da82.js} +2 -2
- package/dist/esm/{templates-824ea028.js → templates-3bc0b4de.js} +1 -1
- package/dist/esm/{th-0f1b35bc.js → th-b3474642.js} +12 -12
- package/dist/esm/{time-bc97792f.js → time-7837ffad.js} +1 -1
- package/dist/esm/{tr-eb4e860e.js → tr-52b937e8.js} +12 -12
- package/dist/esm/{uk-f3ebd952.js → uk-e0460e9b.js} +12 -12
- package/dist/esm/{utils-efd425d4.js → utils-8519a5f7.js} +1 -1
- package/dist/esm/{utils-bf012a3f.js → utils-e4ed10d3.js} +1 -1
- package/dist/esm/{vi-872e449d.js → vi-1b5fccc2.js} +12 -12
- package/dist/esm/{zh-cn-8c5a3222.js → zh-cn-559b2148.js} +12 -12
- package/dist/esm/{zh-hk-247683c2.js → zh-hk-beb2d45d.js} +12 -12
- package/dist/esm/{zh-tw-76a429e9.js → zh-tw-a9743012.js} +12 -12
- package/dist/loader/index.d.ts +3 -0
- package/dist/solutions-components/{p-15e08453.js → p-0029318e.js} +1 -1
- package/dist/solutions-components/{p-7638ce3d.js → p-05c1fa62.js} +1 -1
- package/dist/solutions-components/{p-11094d76.entry.js → p-065a0712.entry.js} +1 -1
- package/dist/solutions-components/{p-8008449b.entry.js → p-065b269e.entry.js} +2 -2
- package/dist/solutions-components/{p-0e8ad7d1.entry.js → p-07aae6af.entry.js} +1 -1
- package/dist/solutions-components/{p-9c6c056a.js → p-07ffc0dc.js} +2 -2
- package/dist/solutions-components/{p-2d99bd61.js → p-08ea3025.js} +1 -1
- package/dist/solutions-components/{p-cc07069d.entry.js → p-0973f502.entry.js} +2 -2
- package/dist/solutions-components/{p-4691b6ad.entry.js → p-098ae31a.entry.js} +1 -1
- package/dist/solutions-components/p-0a136490.entry.js +6 -0
- package/dist/solutions-components/{p-c27bb7cf.entry.js → p-0abfcd37.entry.js} +1 -1
- package/dist/solutions-components/{p-a204dcff.entry.js → p-0b592d22.entry.js} +1 -1
- package/dist/solutions-components/{p-97421bb9.js → p-0c9b771a.js} +1 -1
- package/dist/solutions-components/{p-3b1f45b4.entry.js → p-0d9d1e08.entry.js} +1 -1
- package/dist/solutions-components/{p-8dcc5305.entry.js → p-0f02c25c.entry.js} +1 -1
- package/dist/solutions-components/{p-f163a137.js → p-103bb44d.js} +1 -1
- package/dist/solutions-components/p-14ca9076.entry.js +6 -0
- package/dist/solutions-components/{p-1412173c.entry.js → p-15a81116.entry.js} +1 -1
- package/dist/solutions-components/{p-62e5aea4.entry.js → p-16aa396b.entry.js} +1 -1
- package/dist/solutions-components/{p-6bf91f6e.js → p-16f0f2b8.js} +1 -1
- package/dist/solutions-components/{p-8a4f9e8d.entry.js → p-1901d180.entry.js} +1 -1
- package/dist/solutions-components/{p-b1a4c444.entry.js → p-1996cf43.entry.js} +1 -1
- package/dist/solutions-components/{p-7822e93b.js → p-1aa72bda.js} +1 -1
- package/dist/solutions-components/{p-b442aa02.entry.js → p-1abdcee8.entry.js} +3 -3
- package/dist/solutions-components/{p-aa967a48.entry.js → p-1c429493.entry.js} +1 -1
- package/dist/solutions-components/{p-716a0878.js → p-1c7fa861.js} +1 -1
- package/dist/solutions-components/{p-ab8039f5.js → p-1cf65b78.js} +1 -1
- package/dist/solutions-components/{p-8241b179.entry.js → p-1f4d9fc9.entry.js} +1 -1
- package/dist/solutions-components/{p-ef54f211.js → p-1f58427a.js} +1 -1
- package/dist/solutions-components/p-2222c738.entry.js +6 -0
- package/dist/solutions-components/p-259e6f21.entry.js +6 -0
- package/dist/solutions-components/{p-df0a1d4b.js → p-260d655c.js} +1 -1
- package/dist/solutions-components/{p-acef743f.entry.js → p-2670fe22.entry.js} +1 -1
- package/dist/solutions-components/{p-ada34f83.js → p-2733d390.js} +1 -1
- package/dist/solutions-components/{p-7fea6d8a.js → p-277e0b1d.js} +1 -1
- package/dist/solutions-components/{p-ee7f7c24.js → p-27ef34f6.js} +1 -1
- package/dist/solutions-components/{p-b592fbc6.entry.js → p-2e4d5103.entry.js} +1 -1
- package/dist/solutions-components/{p-4c8fdf0b.entry.js → p-2fc602fd.entry.js} +1 -1
- package/dist/solutions-components/{p-30f0687e.entry.js → p-301feae7.entry.js} +1 -1
- package/dist/solutions-components/{p-2305749d.entry.js → p-30b43168.entry.js} +1 -1
- package/dist/solutions-components/{p-9e77f5c7.js → p-32ddd33b.js} +1 -1
- package/dist/solutions-components/{p-5ed825c4.js → p-3309fa6c.js} +1 -1
- package/dist/solutions-components/{p-cb6165e9.entry.js → p-335308e3.entry.js} +2 -2
- package/dist/solutions-components/{p-2e401f51.js → p-338f1f04.js} +1 -1
- package/dist/solutions-components/{p-813d004f.js → p-33ec544d.js} +1 -1
- package/dist/solutions-components/{p-e528c321.js → p-342187a4.js} +1 -1
- package/dist/solutions-components/{p-75ecff1b.entry.js → p-34d813e1.entry.js} +1 -1
- package/dist/solutions-components/{p-34722455.entry.js → p-367fb486.entry.js} +1 -1
- package/dist/solutions-components/{p-f539a342.entry.js → p-3f81c301.entry.js} +1 -1
- package/dist/solutions-components/{p-4bfec58a.entry.js → p-3fae55fd.entry.js} +1 -1
- package/dist/solutions-components/{p-d9e190a4.entry.js → p-40d2e45b.entry.js} +1 -1
- package/dist/solutions-components/{p-44043ef6.entry.js → p-41c7d2fa.entry.js} +1 -1
- package/dist/solutions-components/{p-b2ba3c28.entry.js → p-429ed200.entry.js} +1 -1
- package/dist/solutions-components/{p-bf0bb8c2.entry.js → p-437e64c0.entry.js} +1 -1
- package/dist/solutions-components/p-4541ad8e.js +11 -0
- package/dist/solutions-components/{p-398ff315.js → p-4845071a.js} +1 -1
- package/dist/solutions-components/{p-bc8b4f68.entry.js → p-48651582.entry.js} +2 -2
- package/dist/solutions-components/{p-5443995c.entry.js → p-4a398b55.entry.js} +1 -1
- package/dist/solutions-components/{p-21965dcd.entry.js → p-4b6c957d.entry.js} +1 -1
- package/dist/solutions-components/{p-1fd9cd5f.entry.js → p-4f01d375.entry.js} +1 -1
- package/dist/solutions-components/{p-6d51c6bf.js → p-501c2126.js} +1 -1
- package/dist/solutions-components/{p-55730588.js → p-508686ba.js} +1 -1
- package/dist/solutions-components/{p-5f1fdaf9.js → p-51ed7835.js} +1 -1
- package/dist/solutions-components/{p-5eb6219c.js → p-54ec7548.js} +1 -1
- package/dist/solutions-components/{p-4b85c3dc.js → p-550cf063.js} +1 -1
- package/dist/solutions-components/{p-ed71dfdc.entry.js → p-57d81d7d.entry.js} +1 -1
- package/dist/solutions-components/{p-3ac77bd5.entry.js → p-5b72f4eb.entry.js} +1 -1
- package/dist/solutions-components/{p-17feaae0.entry.js → p-5bfbb6cf.entry.js} +1 -1
- package/dist/solutions-components/{p-1ceaab98.entry.js → p-5e6de74b.entry.js} +2 -2
- package/dist/solutions-components/{p-52bdaec9.entry.js → p-5f6807ca.entry.js} +1 -1
- package/dist/solutions-components/{p-de4cf79a.entry.js → p-5fb0f8a0.entry.js} +1 -1
- package/dist/solutions-components/{p-37e2754a.js → p-602b034e.js} +1 -1
- package/dist/solutions-components/{p-a0300d31.js → p-628537e6.js} +1 -1
- package/dist/solutions-components/{p-f82d09d2.js → p-658ffb44.js} +1 -1
- package/dist/solutions-components/{p-7a646a97.js → p-682354e6.js} +1 -1
- package/dist/solutions-components/{p-27c68097.js → p-6a425011.js} +1 -1
- package/dist/solutions-components/{p-3ec70ff5.entry.js → p-6aec5175.entry.js} +1 -1
- package/dist/solutions-components/{p-2a990146.entry.js → p-6e814f44.entry.js} +1 -1
- package/dist/solutions-components/{p-a89e61f4.js → p-6fde2784.js} +1 -1
- package/dist/solutions-components/{p-6df9b158.entry.js → p-7011f9fd.entry.js} +1 -1
- package/dist/solutions-components/{p-3137377f.entry.js → p-72192d9e.entry.js} +1 -1
- package/dist/solutions-components/{p-de279d51.entry.js → p-7253126e.entry.js} +1 -1
- package/dist/solutions-components/{p-a146dcbe.entry.js → p-729b22fb.entry.js} +1 -1
- package/dist/solutions-components/{p-79c7ff2b.entry.js → p-72af5235.entry.js} +1 -1
- package/dist/solutions-components/{p-fc9a49db.js → p-7683f32f.js} +1 -1
- package/dist/solutions-components/{p-48ab80c3.entry.js → p-76dd1422.entry.js} +1 -1
- package/dist/solutions-components/{p-ec0c2611.entry.js → p-76ffa42b.entry.js} +1 -1
- package/dist/solutions-components/{p-b64cc55e.js → p-7c057019.js} +2 -2
- package/dist/solutions-components/{p-28fd26ed.js → p-7c4acfd9.js} +1 -1
- package/dist/solutions-components/{p-f629ed65.entry.js → p-7ceba956.entry.js} +1 -1
- package/dist/solutions-components/{p-2e64dc3b.entry.js → p-7d6c1a52.entry.js} +1 -1
- package/dist/solutions-components/{p-2e2e975a.entry.js → p-7ed8ce64.entry.js} +1 -1
- package/dist/solutions-components/{p-d72b4031.entry.js → p-81e5a65e.entry.js} +1 -1
- package/dist/solutions-components/{p-ddd9d50f.entry.js → p-82855118.entry.js} +1 -1
- package/dist/solutions-components/{p-2b4e50ed.js → p-832a3fc3.js} +1 -1
- package/dist/solutions-components/{p-f480b275.js → p-83a13261.js} +1 -1
- package/dist/solutions-components/{p-c32d79e2.entry.js → p-83d0b202.entry.js} +3 -3
- package/dist/solutions-components/{p-4b80b699.entry.js → p-86694085.entry.js} +1 -1
- package/dist/solutions-components/{p-3a50fe57.entry.js → p-8891e4a1.entry.js} +1 -1
- package/dist/solutions-components/{p-b8d4452e.entry.js → p-8c34de9a.entry.js} +2 -2
- package/dist/solutions-components/{p-b5c88983.js → p-8db761a9.js} +1 -1
- package/dist/solutions-components/{p-1b4149b8.entry.js → p-8dcf7aa5.entry.js} +2 -2
- package/dist/solutions-components/p-8e5cfdef.entry.js +6 -0
- package/dist/solutions-components/{p-9377260c.js → p-91866b70.js} +1 -1
- package/dist/solutions-components/{p-c63a8225.entry.js → p-91e22963.entry.js} +1 -1
- package/dist/solutions-components/{p-83fdb1d4.entry.js → p-920af5d4.entry.js} +1 -1
- package/dist/solutions-components/{p-1983d6e8.js → p-92980001.js} +1 -1
- package/dist/solutions-components/{p-9088fa3a.js → p-93e4bac5.js} +1 -1
- package/dist/solutions-components/{p-2a8b04de.entry.js → p-97014acc.entry.js} +1 -1
- package/dist/solutions-components/{p-6067b27a.entry.js → p-977cece9.entry.js} +1 -1
- package/dist/solutions-components/{p-e6e4071e.entry.js → p-97bebac7.entry.js} +3 -3
- package/dist/solutions-components/{p-465fbfc2.js → p-98e135f6.js} +1 -1
- package/dist/solutions-components/{p-bba41eec.entry.js → p-9902916a.entry.js} +1 -1
- package/dist/solutions-components/{p-45db29e2.js → p-9946999d.js} +1 -1
- package/dist/solutions-components/{p-cc9fdd5f.entry.js → p-9a46618c.entry.js} +1 -1
- package/dist/solutions-components/{p-69db1e2c.js → p-9b96afaf.js} +1 -1
- package/dist/solutions-components/{p-293d376c.js → p-9c55d3a2.js} +1 -1
- package/dist/solutions-components/{p-e7ed87eb.entry.js → p-9dbf1881.entry.js} +1 -1
- package/dist/solutions-components/{p-841863b8.js → p-9f2a0621.js} +1 -1
- package/dist/solutions-components/{p-6809e050.entry.js → p-9fac2e9d.entry.js} +2 -2
- package/dist/solutions-components/{p-9808250d.entry.js → p-a14f24f2.entry.js} +1 -1
- package/dist/solutions-components/{p-e6c9e6af.js → p-a1f034be.js} +1 -1
- package/dist/solutions-components/p-a24530e2.entry.js +6 -0
- package/dist/solutions-components/{p-7058b4fa.entry.js → p-a26763d2.entry.js} +1 -1
- package/dist/solutions-components/{p-5db64297.entry.js → p-a3ca129b.entry.js} +1 -1
- package/dist/solutions-components/{p-42c2d9d8.entry.js → p-a3f8159e.entry.js} +1 -1
- package/dist/solutions-components/{p-4b27da06.entry.js → p-a4193e0c.entry.js} +1 -1
- package/dist/solutions-components/{p-7efcfb47.js → p-a60f5c84.js} +1 -1
- package/dist/solutions-components/{p-c4ddb206.js → p-a7ba825a.js} +2 -2
- package/dist/solutions-components/{p-09de2308.entry.js → p-a800dcb5.entry.js} +1 -1
- package/dist/solutions-components/{p-b0985f9d.entry.js → p-a80c076e.entry.js} +1 -1
- package/dist/solutions-components/{p-c1936856.js → p-a8b37ac8.js} +4 -4
- package/dist/solutions-components/{p-90e3ce7f.js → p-a8f981c6.js} +1 -1
- package/dist/solutions-components/{p-27e4dc8a.entry.js → p-ab148739.entry.js} +1 -1
- package/dist/solutions-components/{p-7773d8ea.js → p-ac124ef3.js} +1 -1
- package/dist/solutions-components/{p-b77b6c26.js → p-ac8990dd.js} +1 -1
- package/dist/solutions-components/{p-2599399f.entry.js → p-ad3b05c5.entry.js} +1 -1
- package/dist/solutions-components/{p-3102119d.entry.js → p-ae801fd5.entry.js} +1 -1
- package/dist/solutions-components/{p-64ee17c6.entry.js → p-af4bccdf.entry.js} +1 -1
- package/dist/solutions-components/{p-71ed8170.entry.js → p-b0fbdbe8.entry.js} +2 -2
- package/dist/solutions-components/{p-9271710d.js → p-b35a040e.js} +1 -1
- package/dist/solutions-components/{p-50aa0e5a.js → p-b4de6baf.js} +1 -1
- package/dist/solutions-components/{p-0a053ed7.js → p-b6aed9ca.js} +1 -1
- package/dist/solutions-components/{p-5ed5626f.entry.js → p-b6dffb89.entry.js} +1 -1
- package/dist/solutions-components/{p-3b931fc5.entry.js → p-b789b4dc.entry.js} +1 -1
- package/dist/solutions-components/{p-2671a80b.entry.js → p-ba846354.entry.js} +2 -2
- package/dist/solutions-components/{p-80e42752.entry.js → p-bb036a86.entry.js} +1 -1
- package/dist/solutions-components/{p-1cc7fcd0.entry.js → p-bec3dd2e.entry.js} +1 -1
- package/dist/solutions-components/{p-57a03a95.js → p-c1651f9c.js} +3 -3
- package/dist/solutions-components/{p-29c60f3d.entry.js → p-c324cac8.entry.js} +1 -1
- package/dist/solutions-components/p-c3896efd.entry.js +6 -0
- package/dist/solutions-components/{p-e900ec51.entry.js → p-c52d4a45.entry.js} +1 -1
- package/dist/solutions-components/{p-4250f852.entry.js → p-c6e13140.entry.js} +1 -1
- package/dist/solutions-components/{p-d11d941c.js → p-cc4f574b.js} +1 -1
- package/dist/solutions-components/{p-c0bf1d9f.js → p-cc69b971.js} +3 -3
- package/dist/solutions-components/{p-dff78ae3.entry.js → p-cf3e20c5.entry.js} +1 -1
- package/dist/solutions-components/{p-24634430.entry.js → p-d0d1c59e.entry.js} +2 -2
- package/dist/solutions-components/{p-01ba6099.js → p-d36d12b2.js} +1 -1
- package/dist/solutions-components/{p-12f9f81d.js → p-d36fae45.js} +1 -1
- package/dist/solutions-components/{p-74dbad36.js → p-d67f3c47.js} +1 -1
- package/dist/solutions-components/{p-d31a139f.entry.js → p-d7a6aa4e.entry.js} +1 -1
- package/dist/solutions-components/{p-ee62f91c.entry.js → p-d85d49cf.entry.js} +1 -1
- package/dist/solutions-components/{p-9dd1049f.entry.js → p-d8c3d175.entry.js} +1 -1
- package/dist/solutions-components/{p-03178c37.js → p-d8e74adf.js} +1 -1
- package/dist/solutions-components/{p-967411c5.entry.js → p-d8f02b2b.entry.js} +1 -1
- package/dist/solutions-components/{p-d6f3fc2c.entry.js → p-dbf6c7d5.entry.js} +1 -1
- package/dist/solutions-components/{p-8c6d9b5a.js → p-dcc35070.js} +1 -1
- package/dist/solutions-components/p-de1548dd.entry.js +6 -0
- package/dist/solutions-components/{p-4fbd1a02.js → p-dea4bc23.js} +1 -1
- package/dist/solutions-components/{p-bac8a4cd.js → p-dfe42b3e.js} +1 -1
- package/dist/solutions-components/{p-c554abce.entry.js → p-e042889e.entry.js} +2 -2
- package/dist/solutions-components/{p-83640661.entry.js → p-e13a02f1.entry.js} +1 -1
- package/dist/solutions-components/{p-0ab0b1ad.entry.js → p-e1a972b3.entry.js} +1 -1
- package/dist/solutions-components/{p-727b8bf8.entry.js → p-e3db2eda.entry.js} +2 -2
- package/dist/solutions-components/{p-ef930f76.entry.js → p-e468b193.entry.js} +1 -1
- package/dist/solutions-components/{p-ba569f8b.js → p-e6587ec3.js} +2 -2
- package/dist/solutions-components/{p-318eac43.entry.js → p-e7268b06.entry.js} +1 -1
- package/dist/solutions-components/{p-76f51550.entry.js → p-e8308ed8.entry.js} +1 -1
- package/dist/solutions-components/{p-c8935707.entry.js → p-e86aeefa.entry.js} +1 -1
- package/dist/solutions-components/{p-fdd93685.js → p-ea665c43.js} +2 -2
- package/dist/solutions-components/{p-13b513ed.entry.js → p-eb08c260.entry.js} +1 -1
- package/dist/solutions-components/{p-7f4bc6d2.entry.js → p-ed1c4c06.entry.js} +1 -1
- package/dist/solutions-components/{p-d61bbc4c.entry.js → p-edd08170.entry.js} +1 -1
- package/dist/solutions-components/{p-6e65d93b.entry.js → p-edead891.entry.js} +1 -1
- package/dist/solutions-components/{p-593036f3.js → p-ef375216.js} +2 -2
- package/dist/solutions-components/{p-7388563d.js → p-f0324500.js} +1 -1
- package/dist/solutions-components/{p-d36fb1b5.entry.js → p-f0981633.entry.js} +1 -1
- package/dist/solutions-components/{p-b25e8339.js → p-f0c7d4ee.js} +1 -1
- package/dist/solutions-components/{p-9a7e00b8.js → p-f0eb1595.js} +1 -1
- package/dist/solutions-components/{p-df2fc967.entry.js → p-f36bd937.entry.js} +1 -1
- package/dist/solutions-components/{p-cc388a08.js → p-f3f7638d.js} +2 -2
- package/dist/solutions-components/{p-c96bde1d.js → p-f480323e.js} +1 -1
- package/dist/solutions-components/p-f4c4a2b7.js +7 -0
- package/dist/solutions-components/{p-f8c45269.entry.js → p-f54e4700.entry.js} +1 -1
- package/dist/solutions-components/{p-b9e32214.entry.js → p-f9423c07.entry.js} +1 -1
- package/dist/solutions-components/{p-8babc507.entry.js → p-f9b71d4f.entry.js} +1 -1
- package/dist/solutions-components/{p-8ed6ce4d.js → p-fa214d6f.js} +1 -1
- package/dist/solutions-components/{p-09f79715.js → p-fa6dfea8.js} +1 -1
- package/dist/solutions-components/{p-61dcdc62.js → p-fc0d199c.js} +1 -1
- package/dist/solutions-components/{p-ee309d0b.js → p-fc3a9a40.js} +1 -1
- package/dist/solutions-components/{p-d3a2d182.entry.js → p-fc719dff.entry.js} +1 -1
- package/dist/solutions-components/{p-0534b446.entry.js → p-fe794766.entry.js} +1 -1
- package/dist/solutions-components/p-feaaf637.entry.js +6 -0
- package/dist/solutions-components/{p-b4230022.entry.js → p-ff34397d.entry.js} +2 -2
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/package.json +6 -6
- package/dist/collection/components/arcgis-login/test/arcgis-login.e2e.js +0 -29
- package/dist/collection/components/arcgis-login/test/arcgis-login.spec.js +0 -37
- package/dist/collection/components/consent-manager/test/consent-manager.e2e.js +0 -29
- package/dist/collection/components/consent-manager/test/consent-manager.spec.js +0 -37
- package/dist/collection/components/create-related-feature/test/create-related-feature.e2e.js +0 -14
- package/dist/collection/components/create-related-feature/test/create-related-feature.spec.js +0 -22
- package/dist/collection/components/delete-button/test/delete-button.e2e.js +0 -29
- package/dist/collection/components/delete-button/test/delete-button.spec.js +0 -37
- package/dist/collection/components/feature-comments/test/feature-comments.e2e.js +0 -29
- package/dist/collection/components/feature-comments/test/feature-comments.spec.js +0 -37
- package/dist/collection/components/feature-details/test/feature-details.e2e.js +0 -14
- package/dist/collection/components/feature-details/test/feature-details.spec.js +0 -22
- package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.e2e.js +0 -29
- package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.spec.js +0 -37
- package/dist/collection/components/features-flow-item/test/features-flow-item.e2e.js +0 -29
- package/dist/collection/components/features-flow-item/test/features-flow-item.spec.js +0 -37
- package/dist/collection/components/list-flow-item/test/list-flow-item.e2e.js +0 -29
- package/dist/collection/components/list-flow-item/test/list-flow-item.spec.js +0 -37
- package/dist/collection/components/location-flow-item/test/location-flow-item.e2e.js +0 -29
- package/dist/collection/components/location-flow-item/test/location-flow-item.spec.js +0 -37
- package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.e2e.js +0 -29
- package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.spec.js +0 -37
- package/dist/collection/components/share-item/test/share-item.e2e.js +0 -29
- package/dist/collection/components/share-item/test/share-item.spec.js +0 -37
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +0 -45
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +0 -80
- package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +0 -71
- package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +0 -158
- package/dist/collection/utils/test/csvUtils.spec.js +0 -51
- package/dist/collection/utils/test/downloadUtils.spec.js +0 -1003
- package/dist/collection/utils/test/pciUtils.spec.js +0 -302
- package/dist/collection/utils/test/solution-store.spec.js +0 -444
- package/dist/collection/utils/test/templates.e2e.js +0 -30
- package/dist/solutions-components/p-046acd6b.entry.js +0 -6
- package/dist/solutions-components/p-20a567b0.entry.js +0 -6
- package/dist/solutions-components/p-2a2e4578.entry.js +0 -6
- package/dist/solutions-components/p-3acc8a71.entry.js +0 -6
- package/dist/solutions-components/p-44bfa87d.js +0 -11
- package/dist/solutions-components/p-69cfc738.entry.js +0 -6
- package/dist/solutions-components/p-7249cfd8.entry.js +0 -6
- package/dist/solutions-components/p-853d952d.entry.js +0 -6
- package/dist/solutions-components/p-cf0eeb0a.entry.js +0 -6
- package/dist/solutions-components/p-fa1ceaf9.js +0 -7
- package/dist/solutions-components/p-fb7b9bd3.entry.js +0 -6
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,h as o}from"./p-
|
6
|
+
import{r as e,h as o}from"./p-f4c4a2b7.js";const c=class{constructor(o){e(this,o),this.groupTitle=void 0}render(){return o("slot",{key:"1c37ce2b89bdd6c4e386dcaefbfd9aebcf91bd4c"})}};c.style=":host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}::slotted(calcite-tip){margin:0px;border-style:none;max-inline-size:var(--calcite-tip-max-width)}:host([hidden]){display:none}[hidden]{display:none}";export{c as calcite_tip_group}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{f as n}from"./p-
|
6
|
+
import{f as n}from"./p-f4c4a2b7.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{_ as t}from"./p-
|
6
|
+
import{_ as t}from"./p-ef375216.js";import{l as i}from"./p-cc69b971.js";
|
7
7
|
/** @license
|
8
8
|
* Copyright 2022 Esri
|
9
9
|
*
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as e}from"./p-
|
6
|
+
import{d as e}from"./p-501c2126.js";import"./p-f4c4a2b7.js";import"./p-1c7fa861.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-07ffc0dc.js";import"./p-7c057019.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-fa214d6f.js";import"./p-33ec544d.js";import"./p-a1f034be.js";import"./p-97f0e1b6.js";import"./p-6fde2784.js";import"./p-ebf59857.js";import"./p-4541ad8e.js";import"./p-e6587ec3.js";import"./p-51ed7835.js";var r={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};e.locale(r,null,!0);export{r as default}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as e}from"./p-
|
6
|
+
import{d as e}from"./p-501c2126.js";import"./p-f4c4a2b7.js";import"./p-1c7fa861.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-07ffc0dc.js";import"./p-7c057019.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-fa214d6f.js";import"./p-33ec544d.js";import"./p-a1f034be.js";import"./p-97f0e1b6.js";import"./p-6fde2784.js";import"./p-ebf59857.js";import"./p-4541ad8e.js";import"./p-e6587ec3.js";import"./p-51ed7835.js";var m={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};e.locale(m,null,!0);export{m as default}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as s,H as e,F as a,g as h}from"./p-fa1ceaf9.js";import{l as o,g as l}from"./p-c0bf1d9f.js";import{g as c,a as n,b as r,c as d,h as u,d as p,q as f}from"./p-996c1ac5.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-c1cf3ebc.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.theme="light",this.zoomToScale=void 0,this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._filterOpen=!1,this._flowItems=[],this._hasValidLayers=!1,this._loadingFeatureDetails=void 0,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=.25,this._updatedSorting=void 0,this._updatedSortOption="sortNewest",this._commentSubmitted=!1,this._addingCommentFailed=!1}async isMobileWatchHandler(){this._sidePanelCollapsed=!1}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.setMapView()}))}async componentWillLoad(){var t;this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(null===(t=this.mapView)||void 0===t?void 0:t.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],await this.setMapView()})))}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return s(e,{key:"e512e2693a586f8a6da7bcfa171feb60da26aee3"},this._reportSubmitted&&s("calcite-alert",{key:"e5805ba948f1dc43eba2a78716af452cf71a8222","auto-close":!0,class:t+" report-submitted-msg",icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._reportSubmitted=!1},open:!0,placement:"top"},s("div",{key:"95b9accf1f09186c09c81cfb02a8939c4869ae8d",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&s("calcite-alert",{key:"cab7f0e0f0d882612b4fa6f00799be9870aea6c5","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},s("div",{key:"b9453672d85e26cf7bdeae0923cd36020d259d49",slot:"title"},this._translations.error),s("div",{key:"5084315857bc88b8f80aaa411ac3fd5e4493e918",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&s("calcite-alert",{key:"62b7d9818913c3331ca9c8e4ed23c7f0c48a7946","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},s("div",{key:"5f18444fd375657db0c2a403cb453ead75536181",slot:"message"},this._translations.commentSubmittedMsg)),this._addingCommentFailed&&s("calcite-alert",{key:"732f08960095fc9fefcc79fc8df387a5a4c3f781","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},s("div",{key:"16415430cf33ce53c0d49cab19dce2c3e34257d6",slot:"title"},this._translations.error),s("div",{key:"83e5918e00902bd49512165f4aa62813cecb4619",slot:"message"},this._translations.addingCommentFailedMsg)),s("div",{key:"3e9dadd880319708e64e717ba7e7adaddf97b935"},s("calcite-shell",{key:"c72664d361b3904bc191668207c3ad31ff1f98c9","content-behind":!0},this._getReporter())),this.filterModal())}async _initModules(){const[t]=await o(["esri/core/reactiveUtils"]);this.reactiveUtils=t}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await c(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),s("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?s("calcite-flow",null,(null==t?void 0:t.length)>0&&t):s("calcite-loader",{label:"",scale:"m"}))}filterModal(){var t,i;const e=this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[];return e.length>0&&s("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},s("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},null===(i=null===(t=this._translations)||void 0===t?void 0:t.filterLayerTitle)||void 0===i?void 0:i.replace("{{title}}",this._selectedLayerName)),s("div",{slot:"content"},s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:e,onFilterListReset:()=>this._handleFilterListReset(),onFilterUpdate:()=>this._handleFilterUpdate(),ref:t=>this._filterList=t,view:this.mapView,zoomBtn:!1})))}_closeFilter(){this._filterOpen&&(this._filterOpen=!1)}_toggleFilter(){this._filterOpen=!this._filterOpen}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return s("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"auto",pointerDisabled:!0,referenceElement:"sort-popover"},s("calcite-list",{"selection-mode":"single"},s("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","sortNewest")},selected:"sortNewest"===this._updatedSortOption,value:"sortNewest"}),s("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","sortOldest")},selected:"sortOldest"===this._updatedSortOption,value:"sortOldest"}),t&&s(a,null,s("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","sortHighestVoted")},selected:"sortHighestVoted"===this._updatedSortOption,value:"sortHighestVoted"}),s("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","sortLowestVoted")},selected:"sortLowestVoted"===this._updatedSortOption,value:"sortLowestVoted"}))))}_handleFilterListReset(){this._filterActive=!1,this._featureList.refresh()}_handleFilterUpdate(){this._filterActive=this._filterList.urlParams.getAll("filter").length>0,this._featureList.refresh()}getLayerListFlowItem(){var t;return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&s("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),s("calcite-panel",{"full-height":!0,"full-width":!0},s("layer-list",{class:"height-full",layers:(null===(t=this._editableLayerIds)||void 0===t?void 0:t.length)>0?this._editableLayerIds:this._layers,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("calcite-panel",{"full-height":!0,"full-width":!0},s("div",{class:"progress-bar"},s("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),s("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},s("div",{slot:"message"},this._translations.chooseCategoryMsg)),s("layer-list",{class:"height-full",layers:t,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),this._showSubmitCancelButton&&s("div",{class:"width-full",slot:"footer"},s("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),s("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),s("calcite-panel",{"full-height":!0,"full-width":!0},s("div",{class:"progress-bar"},s("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),s("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},s("div",{slot:"message"},this._translations.featureEditFormInfoMsg)),s("create-feature",{customizeSubmit:!0,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this.updateFormState(!0),this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this._createFeature.close(),this.isFormOpen&&this.updateFormState(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._createRelatedFeature.close(),this._showSubmitCancelButton=!1),this.isFormOpen&&this.updateFormState(!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}onReportSubmitted(){this.isFormOpen&&this.updateFormState(!1),this._reportSubmitted=!0,this.navigateToHomePage()}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){this._createFeature&&this._createFeature.close(),this._layerList&&this._layerList.refresh(),await this.setSelectedFeatures([]),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this._showSubmitCancelButton=!1,this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this._flowItems=[...this._flowItems,"reporting-layer-list"]}async layerListLoaded(t){const i=t.detail,s=await n(this.mapView),e=[];this._validLayers=[],s.forEach((t=>{var s;i.includes(t.id)&&(this._validLayers.push(t),(null===(s=this._getLayersConfig(t.id))||void 0===s?void 0:s.reporting)&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}displayFeaturesList(t){this._updatedSorting={field:"",order:"desc"},this._filterActive=!1,this._updatedSortOption="sortNewest",this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this._flowItems=[...this._flowItems,"feature-list"]}backFromSelectedPanel(){this._updatedProgressBarStatus=.25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this.isFormOpen})}updateFormState(t){this.isFormOpen=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this.isFormOpen})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer.relationships[0].relatedTableId,i=(await r(this.mapView)).filter((i=>t===i.layerId));this._relatedTable=i[0]}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){var e,a;const h=null===(e=this.layerExpressions)||void 0===e?void 0:e.filter((t=>t.id===this._selectedLayerId)),o=(null===(a=this._getLayersConfig(this._selectedLayerId))||void 0===a?void 0:a.reporting)&&this._layerItemsHash[this._selectedLayerId].supportsAdd,l=(null==h?void 0:h.length)>0;return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this._toggleSort(),s("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),l&&s("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:this._toggleFilter.bind(this),slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&o&&s("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),s("calcite-panel",{"full-height":!0},s("feature-list",{class:"height-full",highlightOnHover:!0,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,selectedLayerId:t,sortingInfo:this._updatedSorting})))}getFeatureDetailsFlowItem(){var t;const i=(null===(t=this._getLayersConfig(this._selectedLayerId))||void 0===t?void 0:t.comment)&&this._selectedLayer.relationships.length>0;return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),s("calcite-panel",null,s("feature-details",{class:"full-height",graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,mapView:this.mapView,onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions}),i&&s("calcite-button",{appearance:"solid",onClick:()=>this._flowItems=[...this._flowItems,"add-comment"],slot:"footer",width:"full"},this._translations.comment)))}getFeaturesPagination(){return s("div",{class:"feature-pagination"},s("div",null,s("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),s("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},s("span",null,this._translations.back))),s("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},s("span",{class:"pagination-count"},this._getCount())),s("div",null,s("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),s("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},s("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("calcite-panel",{"full-height":!0},s("info-card",{allowEditing:!1,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&s("div",{class:"width-full",slot:"footer"},s("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),s("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),s("calcite-panel",null,s("create-related-feature",{customizeSubmit:!0,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){var i;if(this._currentFeature=t,t&&t.layer){const s=t.layer;this.setSelectedLayer(s.id,s.title),this._currentFeatureId=t.attributes[s.objectIdField],(null===(i=this._getLayersConfig(s.id))||void 0===i?void 0:i.comment)&&s.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&this.setSelectedLayer("",""),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return s("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){var t;await this.getLayersToShowInList(),1===(null===(t=this._editableLayerIds)||void 0===t?void 0:t.length)?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>{var i;return!this._validLayers.includes(t.layer)&&(null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id)}));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}reduceToConfiguredLayers(t){return Object.keys(t).reduce(((i,s)=>{var e;return(this.reportingOptions?null===(e=this._getLayersConfig(s))||void 0===e?void 0:e.visible:t[s].supportsAdd)&&i.push(s),i}),[])}async getLayersToShowInList(){const t=await p(this.mapView,!0);(await n(this.mapView)).forEach((i=>{var s,e;"feature"===(null==i?void 0:i.type)&&(null==i?void 0:i.editingEnabled)&&(null===(e=null===(s=null==i?void 0:i.capabilities)||void 0===s?void 0:s.operations)||void 0===e?void 0:e.supportsAdd)&&(t[i.id].supportsAdd=!0)})),this._editableLayerIds=this.reduceToConfiguredLayers(t),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title)}_updateShareURL(){var t,i;const s=null===(t=this._shareNode)||void 0===t?void 0:t.shareUrl;if(!s)return;const e=new URL(s);this._selectedLayerId?e.searchParams.set("layerid",this._selectedLayerId):e.searchParams.delete("layerid"),(null===(i=this._selectedFeature)||void 0===i?void 0:i.length)?e.searchParams.set("oid",this._currentFeatureId):e.searchParams.delete("oid"),this._shareNode.shareUrl=e.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await c(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}get el(){return h(this)}static get watchers(){return{isMobile:["isMobileWatchHandler"],mapView:["mapViewWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}
|
6
|
+
import{r as t,c as i,h as s,H as e,F as a,g as h}from"./p-f4c4a2b7.js";import{l as o,g as l}from"./p-cc69b971.js";import{g as c,a as n,b as r,c as d,h as u,d as p,q as f}from"./p-996c1ac5.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-c1cf3ebc.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.theme="light",this.zoomToScale=void 0,this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._filterOpen=!1,this._flowItems=[],this._hasValidLayers=!1,this._loadingFeatureDetails=void 0,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=.25,this._updatedSorting=void 0,this._updatedSortOption="sortNewest",this._commentSubmitted=!1,this._addingCommentFailed=!1}async isMobileWatchHandler(){this._sidePanelCollapsed=!1}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.setMapView()}))}async componentWillLoad(){var t;this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(null===(t=this.mapView)||void 0===t?void 0:t.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],await this.setMapView()})))}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return s(e,{key:"e512e2693a586f8a6da7bcfa171feb60da26aee3"},this._reportSubmitted&&s("calcite-alert",{key:"e5805ba948f1dc43eba2a78716af452cf71a8222","auto-close":!0,class:t+" report-submitted-msg",icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._reportSubmitted=!1},open:!0,placement:"top"},s("div",{key:"95b9accf1f09186c09c81cfb02a8939c4869ae8d",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&s("calcite-alert",{key:"cab7f0e0f0d882612b4fa6f00799be9870aea6c5","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},s("div",{key:"b9453672d85e26cf7bdeae0923cd36020d259d49",slot:"title"},this._translations.error),s("div",{key:"5084315857bc88b8f80aaa411ac3fd5e4493e918",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&s("calcite-alert",{key:"62b7d9818913c3331ca9c8e4ed23c7f0c48a7946","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},s("div",{key:"5f18444fd375657db0c2a403cb453ead75536181",slot:"message"},this._translations.commentSubmittedMsg)),this._addingCommentFailed&&s("calcite-alert",{key:"732f08960095fc9fefcc79fc8df387a5a4c3f781","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},s("div",{key:"16415430cf33ce53c0d49cab19dce2c3e34257d6",slot:"title"},this._translations.error),s("div",{key:"83e5918e00902bd49512165f4aa62813cecb4619",slot:"message"},this._translations.addingCommentFailedMsg)),s("div",{key:"3e9dadd880319708e64e717ba7e7adaddf97b935"},s("calcite-shell",{key:"c72664d361b3904bc191668207c3ad31ff1f98c9","content-behind":!0},this._getReporter())),this.filterModal())}async _initModules(){const[t]=await o(["esri/core/reactiveUtils"]);this.reactiveUtils=t}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await c(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),s("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?s("calcite-flow",null,(null==t?void 0:t.length)>0&&t):s("calcite-loader",{label:"",scale:"m"}))}filterModal(){var t,i;const e=this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[];return e.length>0&&s("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},s("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},null===(i=null===(t=this._translations)||void 0===t?void 0:t.filterLayerTitle)||void 0===i?void 0:i.replace("{{title}}",this._selectedLayerName)),s("div",{slot:"content"},s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:e,onFilterListReset:()=>this._handleFilterListReset(),onFilterUpdate:()=>this._handleFilterUpdate(),ref:t=>this._filterList=t,view:this.mapView,zoomBtn:!1})))}_closeFilter(){this._filterOpen&&(this._filterOpen=!1)}_toggleFilter(){this._filterOpen=!this._filterOpen}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return s("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"auto",pointerDisabled:!0,referenceElement:"sort-popover"},s("calcite-list",{"selection-mode":"single"},s("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","sortNewest")},selected:"sortNewest"===this._updatedSortOption,value:"sortNewest"}),s("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","sortOldest")},selected:"sortOldest"===this._updatedSortOption,value:"sortOldest"}),t&&s(a,null,s("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","sortHighestVoted")},selected:"sortHighestVoted"===this._updatedSortOption,value:"sortHighestVoted"}),s("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","sortLowestVoted")},selected:"sortLowestVoted"===this._updatedSortOption,value:"sortLowestVoted"}))))}_handleFilterListReset(){this._filterActive=!1,this._featureList.refresh()}_handleFilterUpdate(){this._filterActive=this._filterList.urlParams.getAll("filter").length>0,this._featureList.refresh()}getLayerListFlowItem(){var t;return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&s("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),s("calcite-panel",{"full-height":!0,"full-width":!0},s("layer-list",{class:"height-full",layers:(null===(t=this._editableLayerIds)||void 0===t?void 0:t.length)>0?this._editableLayerIds:this._layers,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("calcite-panel",{"full-height":!0,"full-width":!0},s("div",{class:"progress-bar"},s("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),s("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},s("div",{slot:"message"},this._translations.chooseCategoryMsg)),s("layer-list",{class:"height-full",layers:t,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),this._showSubmitCancelButton&&s("div",{class:"width-full",slot:"footer"},s("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),s("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),s("calcite-panel",{"full-height":!0,"full-width":!0},s("div",{class:"progress-bar"},s("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),s("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},s("div",{slot:"message"},this._translations.featureEditFormInfoMsg)),s("create-feature",{customizeSubmit:!0,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this.updateFormState(!0),this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this._createFeature.close(),this.isFormOpen&&this.updateFormState(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._createRelatedFeature.close(),this._showSubmitCancelButton=!1),this.isFormOpen&&this.updateFormState(!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}onReportSubmitted(){this.isFormOpen&&this.updateFormState(!1),this._reportSubmitted=!0,this.navigateToHomePage()}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){this._createFeature&&this._createFeature.close(),this._layerList&&this._layerList.refresh(),await this.setSelectedFeatures([]),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this._showSubmitCancelButton=!1,this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this._flowItems=[...this._flowItems,"reporting-layer-list"]}async layerListLoaded(t){const i=t.detail,s=await n(this.mapView),e=[];this._validLayers=[],s.forEach((t=>{var s;i.includes(t.id)&&(this._validLayers.push(t),(null===(s=this._getLayersConfig(t.id))||void 0===s?void 0:s.reporting)&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}displayFeaturesList(t){this._updatedSorting={field:"",order:"desc"},this._filterActive=!1,this._updatedSortOption="sortNewest",this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this._flowItems=[...this._flowItems,"feature-list"]}backFromSelectedPanel(){this._updatedProgressBarStatus=.25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this.isFormOpen})}updateFormState(t){this.isFormOpen=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this.isFormOpen})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer,i=t.relationships[0].relatedTableId,s=(await r(this.mapView)).filter((s=>t.url===s.url&&i===s.layerId));this._relatedTable=s[0]}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){var e,a;const h=null===(e=this.layerExpressions)||void 0===e?void 0:e.filter((t=>t.id===this._selectedLayerId)),o=(null===(a=this._getLayersConfig(this._selectedLayerId))||void 0===a?void 0:a.reporting)&&this._layerItemsHash[this._selectedLayerId].supportsAdd,l=(null==h?void 0:h.length)>0;return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this._toggleSort(),s("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),l&&s("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:this._toggleFilter.bind(this),slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&o&&s("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),s("calcite-panel",{"full-height":!0},s("feature-list",{class:"height-full",highlightOnHover:!0,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,selectedLayerId:t,sortingInfo:this._updatedSorting})))}getFeatureDetailsFlowItem(){var t;const i=(null===(t=this._getLayersConfig(this._selectedLayerId))||void 0===t?void 0:t.comment)&&this._selectedLayer.relationships.length>0;return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),s("calcite-panel",null,s("feature-details",{class:"full-height",graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,mapView:this.mapView,onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions}),i&&s("calcite-button",{appearance:"solid",onClick:()=>this._flowItems=[...this._flowItems,"add-comment"],slot:"footer",width:"full"},this._translations.comment)))}getFeaturesPagination(){return s("div",{class:"feature-pagination"},s("div",null,s("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),s("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},s("span",null,this._translations.back))),s("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},s("span",{class:"pagination-count"},this._getCount())),s("div",null,s("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),s("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},s("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("calcite-panel",{"full-height":!0},s("info-card",{allowEditing:!1,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return s("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),s("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&s("div",{class:"width-full",slot:"footer"},s("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),s("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),s("calcite-panel",null,s("create-related-feature",{customizeSubmit:!0,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){var i;if(this._currentFeature=t,t&&t.layer){const s=t.layer;this.setSelectedLayer(s.id,s.title),this._currentFeatureId=t.attributes[s.objectIdField],(null===(i=this._getLayersConfig(s.id))||void 0===i?void 0:i.comment)&&s.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&this.setSelectedLayer("",""),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return s("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){var t;await this.getLayersToShowInList(),1===(null===(t=this._editableLayerIds)||void 0===t?void 0:t.length)?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>{var i;return!this._validLayers.includes(t.layer)&&(null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id)}));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}reduceToConfiguredLayers(t){return Object.keys(t).reduce(((i,s)=>{var e;return(this.reportingOptions?null===(e=this._getLayersConfig(s))||void 0===e?void 0:e.visible:t[s].supportsAdd)&&i.push(s),i}),[])}async getLayersToShowInList(){const t=await p(this.mapView,!0);(await n(this.mapView)).forEach((i=>{var s,e;"feature"===(null==i?void 0:i.type)&&(null==i?void 0:i.editingEnabled)&&(null===(e=null===(s=null==i?void 0:i.capabilities)||void 0===s?void 0:s.operations)||void 0===e?void 0:e.supportsAdd)&&(t[i.id].supportsAdd=!0)})),this._editableLayerIds=this.reduceToConfiguredLayers(t),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title)}_updateShareURL(){var t,i;const s=null===(t=this._shareNode)||void 0===t?void 0:t.shareUrl;if(!s)return;const e=new URL(s);this._selectedLayerId?e.searchParams.set("layerid",this._selectedLayerId):e.searchParams.delete("layerid"),(null===(i=this._selectedFeature)||void 0===i?void 0:i.length)?e.searchParams.set("oid",this._currentFeatureId):e.searchParams.delete("oid"),this._shareNode.shareUrl=e.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await c(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}get el(){return h(this)}static get watchers(){return{isMobile:["isMobileWatchHandler"],mapView:["mapViewWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as a,h as n,H as s,g as e,F as i}from"./p-fa1ceaf9.js";import{d as r,i as o,e as l,s as c,f as p,E as u,l as g,h as d,c as h}from"./p-12f9f81d.js";import"./p-1c64264d.js";import"./p-4cd4cb85.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";import"./p-8c6d9b5a.js";const m="instant-apps-components__ckeditor-wrapper",v=class{constructor(n){t(this,n),this.isFocused=a(this,"isFocused",7),this.dataChanged=a(this,"dataChanged",7),this.value=void 0,this.editorInstance=void 0,this.config=void 0}updateValue(){this.value&&this.editorInstance.setData(this.value)}async componentDidLoad(){this.init()}componentDidUpdate(){this.editorInstance.setData(this.value)}render(){return n(s,{key:"a03e92def2da63461424d4487ee8a12cd8e0da81"},n("div",{key:"fee2876736ecbf3a231fd2c2bff3b7b382ba1341"}))}init(){this.applyStyles(),this.initEditor()}applyStyles(){if(document.getElementById(m))return;const t=document.createElement("style");t.id=m,t.innerHTML="\n .ck.ck-reset.ck-editor.ck-rounded-corners {\n margin-top: 10px !important;\n margin-left: 55px !important;\n }\n .ck-editor__editable {\n height: 70px !important;\n font-size: 0.875rem !important;\n line-height: \t1.375 !important;\n color: var(--calcite-color-text-1) !important;\n }\n\n .ck.ck-editor__editable_inline>:first-child,\n .ck.ck-editor__editable_inline>:last-child {\n --ck-spacing-large: 0.5rem !important;\n }\n\n .ck.ck-balloon-panel.ck-powered-by-balloon {\n --ck-z-modal: 700;\n z-index: 700;\n }\n\n .calcite-mode-dark .ck-editor__editable {\n color: var(--calcite-color-text-inverse) !important;\n }\n",document.head.prepend(t)}async initEditor(){const t=await this.createEditor();t&&(this.editorInstance=t,(this.value||""===this.value)&&t.setData(this.value),t.editing.view.document.on("change:isFocused",this.getEditorFocusedCallback(t)))}async createEditor(){try{let t;return t=this.config?await ClassicEditor.create(this.el,this.config):await ClassicEditor.create(this.el),this.editorInstance=t,Promise.resolve(t)}catch(t){return console.error(t),Promise.reject(null)}}getEditorFocusedCallback(t){return(a,n,s)=>{if(s)this.isFocused.emit();else{const a=t.getData();this.value!==a&&(this.value=a,this.dataChanged.emit(a))}}}get el(){return e(this)}static get watchers(){return{value:["updateValue"]}}};v.style=":host{display:block}";const _="instant-apps-language-translator-item",f={section:`${_}__section`,selected:`${_}__section--selected`,collapsed:`${_}__section--collapsed`,topRow:`${_}__top-row`,labelContainer:`${_}__label-container`,label:`${_}__label`,uiLocationPopoverContent:`${_}__ui-location-popover-content`,uiLocationItems:`${_}__ui-location-items`,uiLocationItem:`${_}__ui-location-item`,infoIcon:`${_}__info-icon`,infoButton:`${_}__info-button`,tip:`${_}__tip`,nestedInput:`${_}__nested-input`},b=class{constructor(n){t(this,n),this.translatorItemDataUpdated=a(this,"translatorItemDataUpdated",7),this.userInputs={},this.translatedInputs={},this.fieldName=void 0,this.translatedLanguageLabels=void 0,this.setting=void 0,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0}get isTextEditor(){return this.setting.type===r.TextEditor}get calciteMode(){return o()?l.Dark:l.Light}get hasNestedContent(){var t;return!!(null===(t=this.setting)||void 0===t?void 0:t.content)}get tipID(){return`${this.fieldName}goTo`}componentDidLoad(){this.isTextEditor&&c.onChange("uiData",(()=>this.handleEditorCollapse()))}render(){var t;return"content"in this.setting&&(null===(t=this.setting.content)||void 0===t?void 0:t.every((t=>{var a;return 0===(null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.length)})))?n(i,null):n(s,{class:this.calciteMode},this.renderBase(),this.renderPopover())}renderBase(){return n("div",{class:_},this.renderUserLocaleSection(),this.renderTranslatedLanguageSection())}renderPopover(){const t=this.getTip();return n("calcite-popover",{referenceElement:this.tipID,label:"","auto-close":"true",placement:"trailing",closable:!0},n("span",{class:f.uiLocationPopoverContent},n("span",{class:f.uiLocationItems},this.getUILocation()),t?n("span",{class:f.tip},t):null))}renderUserLocaleSection(){const t=this.getUIDataItem(),a=null==t?void 0:t.userLocaleData,s=null==a?void 0:a.value,e=this.setting.id;return n("div",{class:`${f.section}${(null==t?void 0:t.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.User,null==a?void 0:a.label,e),this.handleInputRender(p.User,s,e))}renderTranslatedLanguageSection(){var t,a;const s=this.getUIDataItem(),e=this.setting.id,i=c.get("currentLanguage"),r=c.get("portalItemResourceT9n"),o=null===(t=this.translatedLanguageLabels)||void 0===t?void 0:t[this.fieldName],l=null===(a=null==r?void 0:r[i])||void 0===a?void 0:a[e];return n("div",{class:`${f.section}${(null==s?void 0:s.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.Translation,o,e),this.handleInputRender(p.Translation,l,e))}handleInputRender(t,a,n){const s=this.getUIDataItem();return(null==s?void 0:s.expanded)?this.hasNestedContent?this.renderNestedInputs(t):this.renderInput(t,a,n):null}renderNestedInputs(t,a){const n=null!=a?a:this.setting,{content:s}=n;return null==s?void 0:s.map((a=>a.hasOwnProperty("content")?this.renderNestedInputs(t,a):this.renderNestedInput(t,a)))}renderNestedInput(t,a){var s;const e=c.get("currentLanguage"),i=c.get("portalItemResourceT9n"),r=null==a?void 0:a.id,o=null==i?void 0:i[e],l=null==o?void 0:o[r],{label:u,value:g,id:d}=a,h=t===p.Translation?null===(s=this.translatedLanguageLabels)||void 0===s?void 0:s[d]:u,m=t===p.User?g:l;return n("div",{class:f.nestedInput},this.renderItemHeader(t,h,r,a),this.renderInput(t,m,r,a))}renderItemHeader(t,a,s,e){const i=!this.hasNestedContent||!!e;return n("div",{class:f.topRow},this.renderItemHeaderLabel(t,a,e),i?this.renderCopyButton(t,s):null)}renderItemHeaderLabel(t,a,s){const e=t===p.User&&!s;return n("div",{class:f.labelContainer},s?null:this.renderExpandCollapseButton(),n("calcite-icon",{icon:this.getIcon(s),scale:"s"}),n("span",{class:f.label},a),e?this.renderInfoButton():null)}renderExpandCollapseButton(){const t=this.getUIDataItem(),a=(null==t?void 0:t.expanded)?u.Expanded:u.Collapsed;return n("calcite-action",{onClick:this.handleExpand.bind(this,t),icon:a,scale:"s",appearance:"transparent",text:""})}renderInfoButton(){return n("button",{id:this.tipID,class:f.infoButton},n("calcite-icon",{class:f.infoIcon,icon:u.Popover,scale:"s"}))}renderCopyButton(t,a){return n("calcite-action",{class:this.calciteMode,onClick:this.copySelection.bind(this,t,a),slot:"action",icon:u.Copy,appearance:"transparent",text:""})}renderInput(t,a,n,s){const e=null!=s?s:this.setting;return"string"===e.type||"textarea"===e.type?t===p.User?this.renderUserLocaleInput(a,n):this.renderTranslatedLanguageInput(a,n):this.renderTextEditor(a,t,n)}renderUserLocaleInput(t,a){return n("calcite-input",{ref:t=>this.userInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleUserInputChange.bind(this)})}renderTranslatedLanguageInput(t,a){return n("calcite-input",{ref:t=>this.translatedInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleTranslatedInputChange.bind(this)})}renderTextEditor(t,a,s){return n("instant-apps-ckeditor-wrapper",{id:s,ref:this.setEditor.bind(this,a),onDataChanged:this.handleTextEditorDataChange.bind(this,a),onIsFocused:this.handleSelection,value:null!=t?t:"","data-field-name":this.fieldName,config:{toolbar:[]}})}getUIDataItem(){if(g.uiData)return g.uiData.get(this.fieldName)}updateT9nStore(t,a){const n=c.get("currentLanguage"),s=d(n,{[t]:a});c.set("portalItemResourceT9n",s)}handleExpand(){const t=this.getUIDataItem();t.expanded=!t.expanded;const a=new Map(g.uiData);a.set(this.fieldName,t),c.set("uiData",a)}handleEditorCollapse(){var t,a;const n=c.get("uiData"),s=null==n?void 0:n.get(this.fieldName);if(!(null==s?void 0:s.expanded)&&(null===(t=this.userEditorWrapper)||void 0===t?void 0:t.editorInstance)&&(null===(a=this.translatedEditorWrapper)||void 0===a?void 0:a.editorInstance)){const{userEditorWrapper:t,translatedEditorWrapper:a}=this,n=t.editorInstance.getData();t.value=n;const s=a.editorInstance.getData();a.value=s,t.editorInstance.destroy(),a.editorInstance.destroy()}}handleSelection(t){const a=new Map(g.uiData),n=h();n.forEach((t=>{(null==a?void 0:a.get(t)).selected=!1})),n.forEach((n=>{const s=null==t?void 0:t.target;n===(null==s?void 0:s.getAttribute("data-field-name"))&&((null==a?void 0:a.get(n)).selected=!0)})),c.set("uiData",a)}getUILocation(){const t=this.getUIDataItem(),{uiLocation:a,userLocaleData:s}=t,{section:e,subsection:i}=a,r=[e.label,i.label,s.label].filter((t=>!!t));return r.map(((t,a)=>n("span",{class:f.uiLocationItem},n("span",null,t),a!==r.length-1?n("calcite-icon",{icon:"chevron-right",scale:"s"}):null)))}getTip(){const t=this.getUIDataItem(),{tip:a}=t;return a}copySelection(t,a){this.setting.type===r.TextEditor?this.copyTextEditorContent(t):this.copyCalciteInputContent(a,t)}copyTextEditorContent(t){var a,n;const s=t===p.User?null===(a=this.userEditorWrapper)||void 0===a?void 0:a.editorInstance:null===(n=this.translatedEditorWrapper)||void 0===n?void 0:n.editorInstance;setTimeout((()=>{this.selectContent(s),setTimeout((()=>this.selectContent(s)),50)}),50),this.copyContent(s)}selectContent(t){t.editing.view.focus();const{model:a}=t,n=a.createRangeIn(a.document.getRoot());a.change((t=>t.setSelection(n)))}copyContent(t){const a=t.getData(),n=document.createElement("div");n.contentEditable="true",n.innerHTML=a,document.body.appendChild(n);const s=document.createRange();s.selectNodeContents(n);const e=window.getSelection();null==e||e.removeAllRanges(),null==e||e.addRange(s),document.execCommand("copy"),document.body.removeChild(n)}copyCalciteInputContent(t,a){const n=a===p.User?this.userInputs[t]:this.translatedInputs[t];n&&(n.selectText(),navigator.clipboard.writeText(n.value))}setEditor(t,a){t===p.User?this.userEditorWrapper=a:this.translatedEditorWrapper=a}async handleUserInputChange(t){c.set("saving",!0);try{const a=t.target,n=a.id,s=a.value;this.getUIDataItem().userLocaleData.value=s,await this.userLocaleInputOnChangeCallback(n,s),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleUserTextEditorChange(t){c.set("saving",!0);try{const a=t.detail;this.getUIDataItem().userLocaleData.value=a,await this.userLocaleInputOnChangeCallback(this.fieldName,a),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleTranslatedInputChange(t){c.set("saving",!0);try{const a=t.composedPath()[0],n=a.id;this.updateT9nStore(n,a.value);const{locale:s,resource:e}=this.getTranslatedLocaleCallbackData(),i=t.target.value;await this.translatedLocaleInputOnChangeCallback(n,i,s,e),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}async handleTranslatedTextEditorChange(t){c.set("saving",!0);try{const a=t.target.id;this.updateT9nStore(a,t.detail);const{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),e=t.detail;await this.translatedLocaleInputOnChangeCallback(a,e,n,s),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}handleTextEditorDataChange(t,a){t===p.User?this.handleUserTextEditorChange(a):this.handleTranslatedTextEditorChange(a)}getTranslatedLocaleCallbackData(){return{locale:c.get("currentLanguage"),resource:c.get("portalItemResource")}}getIcon(t){switch((null!=t?t:this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}};b.style=".sc-instant-apps-language-translator-item-h{display:block}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__top-row.sc-instant-apps-language-translator-item{display:flex;align-items:center;justify-content:space-between}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label-container.sc-instant-apps-language-translator-item{display:flex;align-items:center}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label.sc-instant-apps-language-translator-item{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-top:10px;margin-left:55px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--last-item.sc-instant-apps-language-translator-item{border-bottom:none}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item:first-child{margin-right:1%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-popover-content.sc-instant-apps-language-translator-item{display:inline-block;padding:10px;max-width:400px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-items.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-item.sc-instant-apps-language-translator-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__tip.sc-instant-apps-language-translator-item{display:inline-block;font-size:14px;line-height:22px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-button.sc-instant-apps-language-translator-item{border:0;background-color:transparent;cursor:pointer}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item{margin-left:60px;margin-top:8px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-left:30px}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-action.sc-instant-apps-language-translator-item{--calcite-ui-icon-color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{border-bottom:none}";const x="instant-apps-language-translator-search",k={base:x,input:`${x}__input`,suggestionList:`${x}__suggestion-list`,suggestionListItem:`${x}__suggestion-list-item`},y=class{constructor(n){t(this,n),this.suggestionSelected=a(this,"suggestionSelected",7),this.t9nPlaceholder=void 0,this.results=[]}render(){return n(s,{key:"b614ff54a5c434522e865a457dff001572588b01"},this.renderSearchInput(),this.renderSuggestions())}renderSearchInput(){return n("calcite-input",{ref:t=>this.searchInput=t,class:k.input,onCalciteInputInput:this.handleSearch.bind(this),type:"search",placeholder:this.t9nPlaceholder,icon:"search"})}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return n("ul",{class:k.suggestionList},this.results.map((t=>this.renderSuggestionListItem(t))))}renderSuggestionListItem(t){return n("li",{onClick:this.selectSuggestion.bind(this),class:k.suggestionListItem,"data-field-name":t.fieldName},t.userLocaleData.label)}handleSearch(t){var a,n;const s=null===(n=null===(a=t.target.value)||void 0===a?void 0:a.toLowerCase())||void 0===n?void 0:n.trim(),e=c.get("uiData"),i=h(),r=c.get("portalItemResourceT9n"),o=c.get("currentLanguage"),l=r[o],p=this.getSettingDataItems(i).filter(this.matchedResultsCallback(e,l,s,o));this.results=[...p.map((t=>Object.assign({fieldName:t},e.get(t))))]}matchedResultsCallback(t,a,n,s){return e=>{var i;const r=t.get(e),{label:o}=r.userLocaleData,{value:l}=r.userLocaleData,c=t.get("translatedLanguageLabels"),p=null===(i=null==c?void 0:c[s])||void 0===i?void 0:i[e],u=null==a?void 0:a[e],g=this.testUserInput(o,n),d=this.testUserInput(l,n),h=this.testUserInput(p,n),m=this.testUserInput(u,n);return g||d||h||m}}getSettingDataItems(t){return t.filter((t=>"locales"!==t&&"translatedLanguageLabels"!==t))}testUserInput(t,a){var n;return!!(null==t?void 0:t.trim())&&!!(null==a?void 0:a.trim())&&-1!==(null===(n=null==t?void 0:t.toLowerCase())||void 0===n?void 0:n.search(a))}selectSuggestion(t){const a=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(a),this.resetSearchInput()}resetSearchInput(){this.searchInput.value="",this.results=[]}};y.style=".sc-instant-apps-language-translator-search-h{display:block;position:relative}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__input.sc-instant-apps-language-translator-search{width:235.5px}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list.sc-instant-apps-language-translator-search{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:first-child{border:none}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search{margin-top:0;padding:0.8em 1em;border-top:solid 1px rgba(110, 110, 110, 0.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:hover{background-color:var(--calcite-color-foreground-2)}";export{v as instant_apps_ckeditor_wrapper,b as instant_apps_language_translator_item,y as instant_apps_language_translator_search}
|
6
|
+
import{r as t,c as a,h as n,H as s,g as e,F as i}from"./p-f4c4a2b7.js";import{d as r,i as o,e as l,s as c,f as p,E as u,l as g,h as d,c as h}from"./p-d36fae45.js";import"./p-1c64264d.js";import"./p-4cd4cb85.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";import"./p-dcc35070.js";const m="instant-apps-components__ckeditor-wrapper",v=class{constructor(n){t(this,n),this.isFocused=a(this,"isFocused",7),this.dataChanged=a(this,"dataChanged",7),this.value=void 0,this.editorInstance=void 0,this.config=void 0}updateValue(){this.value&&this.editorInstance.setData(this.value)}async componentDidLoad(){this.init()}componentDidUpdate(){this.editorInstance.setData(this.value)}render(){return n(s,{key:"a03e92def2da63461424d4487ee8a12cd8e0da81"},n("div",{key:"fee2876736ecbf3a231fd2c2bff3b7b382ba1341"}))}init(){this.applyStyles(),this.initEditor()}applyStyles(){if(document.getElementById(m))return;const t=document.createElement("style");t.id=m,t.innerHTML="\n .ck.ck-reset.ck-editor.ck-rounded-corners {\n margin-top: 10px !important;\n margin-left: 55px !important;\n }\n .ck-editor__editable {\n height: 70px !important;\n font-size: 0.875rem !important;\n line-height: \t1.375 !important;\n color: var(--calcite-color-text-1) !important;\n }\n\n .ck.ck-editor__editable_inline>:first-child,\n .ck.ck-editor__editable_inline>:last-child {\n --ck-spacing-large: 0.5rem !important;\n }\n\n .ck.ck-balloon-panel.ck-powered-by-balloon {\n --ck-z-modal: 700;\n z-index: 700;\n }\n\n .calcite-mode-dark .ck-editor__editable {\n color: var(--calcite-color-text-inverse) !important;\n }\n",document.head.prepend(t)}async initEditor(){const t=await this.createEditor();t&&(this.editorInstance=t,(this.value||""===this.value)&&t.setData(this.value),t.editing.view.document.on("change:isFocused",this.getEditorFocusedCallback(t)))}async createEditor(){try{let t;return t=this.config?await ClassicEditor.create(this.el,this.config):await ClassicEditor.create(this.el),this.editorInstance=t,Promise.resolve(t)}catch(t){return console.error(t),Promise.reject(null)}}getEditorFocusedCallback(t){return(a,n,s)=>{if(s)this.isFocused.emit();else{const a=t.getData();this.value!==a&&(this.value=a,this.dataChanged.emit(a))}}}get el(){return e(this)}static get watchers(){return{value:["updateValue"]}}};v.style=":host{display:block}";const _="instant-apps-language-translator-item",f={section:`${_}__section`,selected:`${_}__section--selected`,collapsed:`${_}__section--collapsed`,topRow:`${_}__top-row`,labelContainer:`${_}__label-container`,label:`${_}__label`,uiLocationPopoverContent:`${_}__ui-location-popover-content`,uiLocationItems:`${_}__ui-location-items`,uiLocationItem:`${_}__ui-location-item`,infoIcon:`${_}__info-icon`,infoButton:`${_}__info-button`,tip:`${_}__tip`,nestedInput:`${_}__nested-input`},b=class{constructor(n){t(this,n),this.translatorItemDataUpdated=a(this,"translatorItemDataUpdated",7),this.userInputs={},this.translatedInputs={},this.fieldName=void 0,this.translatedLanguageLabels=void 0,this.setting=void 0,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0}get isTextEditor(){return this.setting.type===r.TextEditor}get calciteMode(){return o()?l.Dark:l.Light}get hasNestedContent(){var t;return!!(null===(t=this.setting)||void 0===t?void 0:t.content)}get tipID(){return`${this.fieldName}goTo`}componentDidLoad(){this.isTextEditor&&c.onChange("uiData",(()=>this.handleEditorCollapse()))}render(){var t;return"content"in this.setting&&(null===(t=this.setting.content)||void 0===t?void 0:t.every((t=>{var a;return 0===(null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.length)})))?n(i,null):n(s,{class:this.calciteMode},this.renderBase(),this.renderPopover())}renderBase(){return n("div",{class:_},this.renderUserLocaleSection(),this.renderTranslatedLanguageSection())}renderPopover(){const t=this.getTip();return n("calcite-popover",{referenceElement:this.tipID,label:"","auto-close":"true",placement:"trailing",closable:!0},n("span",{class:f.uiLocationPopoverContent},n("span",{class:f.uiLocationItems},this.getUILocation()),t?n("span",{class:f.tip},t):null))}renderUserLocaleSection(){const t=this.getUIDataItem(),a=null==t?void 0:t.userLocaleData,s=null==a?void 0:a.value,e=this.setting.id;return n("div",{class:`${f.section}${(null==t?void 0:t.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.User,null==a?void 0:a.label,e),this.handleInputRender(p.User,s,e))}renderTranslatedLanguageSection(){var t,a;const s=this.getUIDataItem(),e=this.setting.id,i=c.get("currentLanguage"),r=c.get("portalItemResourceT9n"),o=null===(t=this.translatedLanguageLabels)||void 0===t?void 0:t[this.fieldName],l=null===(a=null==r?void 0:r[i])||void 0===a?void 0:a[e];return n("div",{class:`${f.section}${(null==s?void 0:s.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.Translation,o,e),this.handleInputRender(p.Translation,l,e))}handleInputRender(t,a,n){const s=this.getUIDataItem();return(null==s?void 0:s.expanded)?this.hasNestedContent?this.renderNestedInputs(t):this.renderInput(t,a,n):null}renderNestedInputs(t,a){const n=null!=a?a:this.setting,{content:s}=n;return null==s?void 0:s.map((a=>a.hasOwnProperty("content")?this.renderNestedInputs(t,a):this.renderNestedInput(t,a)))}renderNestedInput(t,a){var s;const e=c.get("currentLanguage"),i=c.get("portalItemResourceT9n"),r=null==a?void 0:a.id,o=null==i?void 0:i[e],l=null==o?void 0:o[r],{label:u,value:g,id:d}=a,h=t===p.Translation?null===(s=this.translatedLanguageLabels)||void 0===s?void 0:s[d]:u,m=t===p.User?g:l;return n("div",{class:f.nestedInput},this.renderItemHeader(t,h,r,a),this.renderInput(t,m,r,a))}renderItemHeader(t,a,s,e){const i=!this.hasNestedContent||!!e;return n("div",{class:f.topRow},this.renderItemHeaderLabel(t,a,e),i?this.renderCopyButton(t,s):null)}renderItemHeaderLabel(t,a,s){const e=t===p.User&&!s;return n("div",{class:f.labelContainer},s?null:this.renderExpandCollapseButton(),n("calcite-icon",{icon:this.getIcon(s),scale:"s"}),n("span",{class:f.label},a),e?this.renderInfoButton():null)}renderExpandCollapseButton(){const t=this.getUIDataItem(),a=(null==t?void 0:t.expanded)?u.Expanded:u.Collapsed;return n("calcite-action",{onClick:this.handleExpand.bind(this,t),icon:a,scale:"s",appearance:"transparent",text:""})}renderInfoButton(){return n("button",{id:this.tipID,class:f.infoButton},n("calcite-icon",{class:f.infoIcon,icon:u.Popover,scale:"s"}))}renderCopyButton(t,a){return n("calcite-action",{class:this.calciteMode,onClick:this.copySelection.bind(this,t,a),slot:"action",icon:u.Copy,appearance:"transparent",text:""})}renderInput(t,a,n,s){const e=null!=s?s:this.setting;return"string"===e.type||"textarea"===e.type?t===p.User?this.renderUserLocaleInput(a,n):this.renderTranslatedLanguageInput(a,n):this.renderTextEditor(a,t,n)}renderUserLocaleInput(t,a){return n("calcite-input",{ref:t=>this.userInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleUserInputChange.bind(this)})}renderTranslatedLanguageInput(t,a){return n("calcite-input",{ref:t=>this.translatedInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleTranslatedInputChange.bind(this)})}renderTextEditor(t,a,s){return n("instant-apps-ckeditor-wrapper",{id:s,ref:this.setEditor.bind(this,a),onDataChanged:this.handleTextEditorDataChange.bind(this,a),onIsFocused:this.handleSelection,value:null!=t?t:"","data-field-name":this.fieldName,config:{toolbar:[]}})}getUIDataItem(){if(g.uiData)return g.uiData.get(this.fieldName)}updateT9nStore(t,a){const n=c.get("currentLanguage"),s=d(n,{[t]:a});c.set("portalItemResourceT9n",s)}handleExpand(){const t=this.getUIDataItem();t.expanded=!t.expanded;const a=new Map(g.uiData);a.set(this.fieldName,t),c.set("uiData",a)}handleEditorCollapse(){var t,a;const n=c.get("uiData"),s=null==n?void 0:n.get(this.fieldName);if(!(null==s?void 0:s.expanded)&&(null===(t=this.userEditorWrapper)||void 0===t?void 0:t.editorInstance)&&(null===(a=this.translatedEditorWrapper)||void 0===a?void 0:a.editorInstance)){const{userEditorWrapper:t,translatedEditorWrapper:a}=this,n=t.editorInstance.getData();t.value=n;const s=a.editorInstance.getData();a.value=s,t.editorInstance.destroy(),a.editorInstance.destroy()}}handleSelection(t){const a=new Map(g.uiData),n=h();n.forEach((t=>{(null==a?void 0:a.get(t)).selected=!1})),n.forEach((n=>{const s=null==t?void 0:t.target;n===(null==s?void 0:s.getAttribute("data-field-name"))&&((null==a?void 0:a.get(n)).selected=!0)})),c.set("uiData",a)}getUILocation(){const t=this.getUIDataItem(),{uiLocation:a,userLocaleData:s}=t,{section:e,subsection:i}=a,r=[e.label,i.label,s.label].filter((t=>!!t));return r.map(((t,a)=>n("span",{class:f.uiLocationItem},n("span",null,t),a!==r.length-1?n("calcite-icon",{icon:"chevron-right",scale:"s"}):null)))}getTip(){const t=this.getUIDataItem(),{tip:a}=t;return a}copySelection(t,a){this.setting.type===r.TextEditor?this.copyTextEditorContent(t):this.copyCalciteInputContent(a,t)}copyTextEditorContent(t){var a,n;const s=t===p.User?null===(a=this.userEditorWrapper)||void 0===a?void 0:a.editorInstance:null===(n=this.translatedEditorWrapper)||void 0===n?void 0:n.editorInstance;setTimeout((()=>{this.selectContent(s),setTimeout((()=>this.selectContent(s)),50)}),50),this.copyContent(s)}selectContent(t){t.editing.view.focus();const{model:a}=t,n=a.createRangeIn(a.document.getRoot());a.change((t=>t.setSelection(n)))}copyContent(t){const a=t.getData(),n=document.createElement("div");n.contentEditable="true",n.innerHTML=a,document.body.appendChild(n);const s=document.createRange();s.selectNodeContents(n);const e=window.getSelection();null==e||e.removeAllRanges(),null==e||e.addRange(s),document.execCommand("copy"),document.body.removeChild(n)}copyCalciteInputContent(t,a){const n=a===p.User?this.userInputs[t]:this.translatedInputs[t];n&&(n.selectText(),navigator.clipboard.writeText(n.value))}setEditor(t,a){t===p.User?this.userEditorWrapper=a:this.translatedEditorWrapper=a}async handleUserInputChange(t){c.set("saving",!0);try{const a=t.target,n=a.id,s=a.value;this.getUIDataItem().userLocaleData.value=s,await this.userLocaleInputOnChangeCallback(n,s),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleUserTextEditorChange(t){c.set("saving",!0);try{const a=t.detail;this.getUIDataItem().userLocaleData.value=a,await this.userLocaleInputOnChangeCallback(this.fieldName,a),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleTranslatedInputChange(t){c.set("saving",!0);try{const a=t.composedPath()[0],n=a.id;this.updateT9nStore(n,a.value);const{locale:s,resource:e}=this.getTranslatedLocaleCallbackData(),i=t.target.value;await this.translatedLocaleInputOnChangeCallback(n,i,s,e),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}async handleTranslatedTextEditorChange(t){c.set("saving",!0);try{const a=t.target.id;this.updateT9nStore(a,t.detail);const{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),e=t.detail;await this.translatedLocaleInputOnChangeCallback(a,e,n,s),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}handleTextEditorDataChange(t,a){t===p.User?this.handleUserTextEditorChange(a):this.handleTranslatedTextEditorChange(a)}getTranslatedLocaleCallbackData(){return{locale:c.get("currentLanguage"),resource:c.get("portalItemResource")}}getIcon(t){switch((null!=t?t:this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}};b.style=".sc-instant-apps-language-translator-item-h{display:block}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__top-row.sc-instant-apps-language-translator-item{display:flex;align-items:center;justify-content:space-between}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label-container.sc-instant-apps-language-translator-item{display:flex;align-items:center}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label.sc-instant-apps-language-translator-item{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-top:10px;margin-left:55px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--last-item.sc-instant-apps-language-translator-item{border-bottom:none}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item:first-child{margin-right:1%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-popover-content.sc-instant-apps-language-translator-item{display:inline-block;padding:10px;max-width:400px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-items.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-item.sc-instant-apps-language-translator-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__tip.sc-instant-apps-language-translator-item{display:inline-block;font-size:14px;line-height:22px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-button.sc-instant-apps-language-translator-item{border:0;background-color:transparent;cursor:pointer}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item{margin-left:60px;margin-top:8px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-left:30px}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-action.sc-instant-apps-language-translator-item{--calcite-ui-icon-color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{border-bottom:none}";const x="instant-apps-language-translator-search",k={base:x,input:`${x}__input`,suggestionList:`${x}__suggestion-list`,suggestionListItem:`${x}__suggestion-list-item`},y=class{constructor(n){t(this,n),this.suggestionSelected=a(this,"suggestionSelected",7),this.t9nPlaceholder=void 0,this.results=[]}render(){return n(s,{key:"b614ff54a5c434522e865a457dff001572588b01"},this.renderSearchInput(),this.renderSuggestions())}renderSearchInput(){return n("calcite-input",{ref:t=>this.searchInput=t,class:k.input,onCalciteInputInput:this.handleSearch.bind(this),type:"search",placeholder:this.t9nPlaceholder,icon:"search"})}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return n("ul",{class:k.suggestionList},this.results.map((t=>this.renderSuggestionListItem(t))))}renderSuggestionListItem(t){return n("li",{onClick:this.selectSuggestion.bind(this),class:k.suggestionListItem,"data-field-name":t.fieldName},t.userLocaleData.label)}handleSearch(t){var a,n;const s=null===(n=null===(a=t.target.value)||void 0===a?void 0:a.toLowerCase())||void 0===n?void 0:n.trim(),e=c.get("uiData"),i=h(),r=c.get("portalItemResourceT9n"),o=c.get("currentLanguage"),l=r[o],p=this.getSettingDataItems(i).filter(this.matchedResultsCallback(e,l,s,o));this.results=[...p.map((t=>Object.assign({fieldName:t},e.get(t))))]}matchedResultsCallback(t,a,n,s){return e=>{var i;const r=t.get(e),{label:o}=r.userLocaleData,{value:l}=r.userLocaleData,c=t.get("translatedLanguageLabels"),p=null===(i=null==c?void 0:c[s])||void 0===i?void 0:i[e],u=null==a?void 0:a[e],g=this.testUserInput(o,n),d=this.testUserInput(l,n),h=this.testUserInput(p,n),m=this.testUserInput(u,n);return g||d||h||m}}getSettingDataItems(t){return t.filter((t=>"locales"!==t&&"translatedLanguageLabels"!==t))}testUserInput(t,a){var n;return!!(null==t?void 0:t.trim())&&!!(null==a?void 0:a.trim())&&-1!==(null===(n=null==t?void 0:t.toLowerCase())||void 0===n?void 0:n.search(a))}selectSuggestion(t){const a=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(a),this.resetSearchInput()}resetSearchInput(){this.searchInput.value="",this.results=[]}};y.style=".sc-instant-apps-language-translator-search-h{display:block;position:relative}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__input.sc-instant-apps-language-translator-search{width:235.5px}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list.sc-instant-apps-language-translator-search{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:first-child{border:none}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search{margin-top:0;padding:0.8em 1em;border-top:solid 1px rgba(110, 110, 110, 0.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:hover{background-color:var(--calcite-color-foreground-2)}";export{v as instant_apps_ckeditor_wrapper,b as instant_apps_language_translator_item,y as instant_apps_language_translator_search}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as c,h as s,H as t,g as a}from"./p-f4c4a2b7.js";const e=class{constructor(s){c(this,s)}render(){return s(t,{key:"4338ca2001ca75d9994cc468c3d4216724e18a36"},s("slot",{key:"fc9dbfade945c848e3b3c259250d7a1c02f7431d"}))}get el(){return a(this)}};e.style=":host{display:block}";export{e as location_flow_item}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
6
|
+
import{r as t,c as i,h as e,g as s}from"./p-f4c4a2b7.js";import{n as a}from"./p-f50a294b.js";import{i as c,c as o,d as h}from"./p-33ec544d.js";import{u as n,c as r,s as l,d}from"./p-4541ad8e.js";import{a as u,p as b,i as p,b as f,g as m,c as k,d as v,e as w,h as g,j as y,m as x}from"./p-6fde2784.js";import{g as S}from"./p-e6e50975.js";import{c as D,s as $,a as I}from"./p-fa214d6f.js";import{d as z,g as A}from"./p-ebf59857.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-a1f034be.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
10
10
|
* v2.8.2
|
11
|
-
*/const M={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonFractionalSecondDown:"button--fractionalSecond-down",buttonFractionalSecondUp:"button--fractionalSecond-up",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",fractionalSecond:"fractionalSecond",hour:"hour",input:"input",inputFocus:"inputFocus",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},C=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",6),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",6),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",6),this.pointerActivated=!1,this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(c(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.pointerActivated||(this.activeEl=t.currentTarget)},this.fractionalSecondKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=z(this.step),e=parseInt(this.fractionalSecond),s=e.toString().length;let a;s>=t?a=i.padStart(t,"0"):s<t&&(a=`${e}${i}`.padStart(t,"0")),this.setValuePart("fractionalSecond",parseFloat(`0.${a}`))}else switch(i){case"Backspace":case"Delete":this.setValuePart("fractionalSecond",null);break;case"ArrowDown":t.preventDefault(),this.nudgeFractionalSecond("down");break;case"ArrowUp":t.preventDefault(),this.nudgeFractionalSecond("up");break;case" ":t.preventDefault()}},this.fractionalSecondDownClickHandler=()=>{this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("down")},this.fractionalSecondUpClickHandler=()=>{this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("up")},this.hourDownClickHandler=()=>{this.activeEl=this.hourEl,this.hourEl.focus(),this.decrementHour()},this.hourKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=parseInt(i);let e;if(c(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":t.preventDefault()}},this.hourUpClickHandler=()=>{this.activeEl=this.hourEl,this.hourEl.focus(),this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=c(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=c(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.inputClickHandler=t=>{this.activeEl=t.target},this.meridiemUpClickHandler=()=>{this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.incrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":t.preventDefault()}},this.meridiemDownClickHandler=()=>{this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.decrementMeridiem()},this.minuteDownClickHandler=()=>{this.activeEl=this.minuteEl,this.minuteEl.focus(),this.decrementMinute()},this.minuteUpClickHandler=()=>{this.activeEl=this.minuteEl,this.minuteEl.focus(),this.incrementMinute()},this.minuteKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=parseInt(i);let e;if(c(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>x?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":t.preventDefault()}},this.nudgeFractionalSecond=t=>{const i=A(this.step),e=z(this.step),s=parseInt(this.fractionalSecond),a=parseFloat(`0.${this.fractionalSecond}`);let c,o,h,n;"up"===t&&(c=isNaN(s)?0:a+i,o=parseFloat(c.toFixed(e)),h=A(o),n=o<1&&z(h)>0?u(h,e):"".padStart(e,"0")),"down"===t&&(c=isNaN(s)||0===s?1-i:a-i,o=parseFloat(c.toFixed(e)),h=A(o),n=o<1&&z(h)>0&&1===Math.sign(h)?u(h,e):"".padStart(e,"0")),this.setValuePart("fractionalSecond",n)},this.sanitizeValue=t=>{const{hour:i,minute:e,second:s,fractionalSecond:a}=b(t);return a?`${i}:${e}:${s}.${this.sanitizeFractionalSecond(a)}`:f(t)&&t},this.sanitizeFractionalSecond=t=>t&&z(this.step)!==t.length?parseFloat(`0.${t}`).toFixed(z(this.step)).replace("0.",""):t,this.secondKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=parseInt(i);let e;if(c(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>x?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":t.preventDefault()}},this.secondDownClickHandler=()=>{this.activeEl=this.secondEl,this.secondEl.focus(),this.decrementSecond()},this.secondUpClickHandler=()=>{this.activeEl=this.secondEl,this.secondEl.focus(),this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setFractionalSecondEl=t=>this.fractionalSecondEl=t,this.setValue=t=>{if(f(t)){const{hour:i,minute:e,second:s,fractionalSecond:a}=b(t),{effectiveLocale:c,numberingSystem:o}=this,{localizedHour:h,localizedHourSuffix:n,localizedMinute:r,localizedMinuteSuffix:l,localizedSecond:d,localizedDecimalSeparator:u,localizedFractionalSecond:f,localizedSecondSuffix:v,localizedMeridiem:w}=p({value:t,locale:c,numberingSystem:o});if(this.hour=i,this.minute=e,this.second=s,this.fractionalSecond=this.sanitizeFractionalSecond(a),this.localizedHour=h,this.localizedHourSuffix=n,this.localizedMinute=r,this.localizedMinuteSuffix=l,this.localizedSecond=d,this.localizedDecimalSeparator=u,this.localizedFractionalSecond=f,this.localizedSecondSuffix=v,w){this.localizedMeridiem=w,this.meridiem=m(this.hour);const i=k({value:t,locale:c,numberingSystem:o});this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.fractionalSecond=null,this.localizedHour=null,this.localizedHourSuffix=v("hour",this.effectiveLocale,this.numberingSystem),this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=v("minute",this.effectiveLocale,this.numberingSystem),this.localizedSecond=null,this.localizedDecimalSeparator=w(this.effectiveLocale,this.numberingSystem),this.localizedFractionalSecond=null,this.localizedSecondSuffix=v("second",this.effectiveLocale,this.numberingSystem),this.meridiem=null,this.minute=null,this.second=null,this.value=null},this.setValuePart=(t,i)=>{var e,s;const{effectiveLocale:a,numberingSystem:o}=this;if("meridiem"===t){if(this.meridiem=i,c(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=u(t-12));break;case"PM":t<12&&(this.hour=u(t+12))}this.localizedHour=g({value:this.hour,part:"hour",locale:a,numberingSystem:o})}}else if("fractionalSecond"===t){const t=z(this.step);this.fractionalSecond="number"==typeof i?0===i?"".padStart(t,"0"):u(i,t):i,this.localizedFractionalSecond=g({value:this.fractionalSecond,part:"fractionalSecond",locale:a,numberingSystem:o})}else this[t]="number"==typeof i?u(i):i,this[`localized${h=t,h.charAt(0).toUpperCase()+h.slice(1)}`]=g({value:this[t],part:t,locale:a,numberingSystem:o});var h;let n,r=!1;this.hour&&this.minute?(n=`${this.hour}:${this.minute}`,this.showSecond&&(n=`${n}:${null!==(e=this.second)&&void 0!==e?e:"00"}`,this.showFractionalSecond&&this.fractionalSecond&&(n=`${n}.${this.fractionalSecond}`))):n=null,this.value!==n&&(r=!0),this.value=n,this.localizedMeridiem=this.value?(null===(s=p({value:this.value,locale:a,numberingSystem:o}))||void 0===s?void 0:s.localizedMeridiem)||null:g({value:this.meridiem,part:"meridiem",locale:a,numberingSystem:o}),r&&this.calciteInternalTimePickerChange.emit()},this.scale="m",this.step=60,this.numberingSystem=void 0,this.value=null,this.messages=void 0,this.messageOverrides=void 0,this.activeEl=void 0,this.effectiveLocale="",this.fractionalSecond=void 0,this.hour=void 0,this.hourCycle=void 0,this.localizedDecimalSeparator=".",this.localizedHour=void 0,this.localizedHourSuffix=void 0,this.localizedMeridiem=void 0,this.localizedFractionalSecond=void 0,this.localizedMinute=void 0,this.localizedMinuteSuffix=void 0,this.localizedSecond=void 0,this.localizedSecondSuffix=void 0,this.meridiem=void 0,this.minute=void 0,this.second=void 0,this.showFractionalSecond=void 0,this.showSecond=void 0,this.defaultMessages=void 0}stepChange(){this.toggleSecond()}valueWatcher(t){this.setValue(t)}onMessagesChange(){}effectiveLocaleWatcher(){this.updateLocale()}blurHandler(){this.activeEl=void 0,this.pointerActivated=!1,this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){this.pointerActivated=!1;const{defaultPrevented:i,key:e}=t;if(!i)switch(this.activeEl){case this.hourEl:"ArrowRight"===e&&(this.focusPart("minute"),t.preventDefault());break;case this.minuteEl:switch(e){case"ArrowLeft":this.focusPart("hour"),t.preventDefault();break;case"ArrowRight":60!==this.step?(this.focusPart("second"),t.preventDefault()):"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.secondEl:switch(e){case"ArrowLeft":this.focusPart("minute"),t.preventDefault();break;case"ArrowRight":this.showFractionalSecond?this.focusPart("fractionalSecond"):"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.fractionalSecondEl:switch(e){case"ArrowLeft":this.focusPart("second"),t.preventDefault();break;case"ArrowRight":"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.meridiemEl:"ArrowLeft"===e&&(this.showFractionalSecond?this.focusPart("fractionalSecond"):60!==this.step?(this.focusPart("second"),t.preventDefault()):(this.focusPart("minute"),t.preventDefault()))}}pointerDownHandler(){this.pointerActivated=!0}async setFocus(){var t;await D(this),null===(t=this.el)||void 0===t||t.focus()}async focusPart(t){var i;await D(this),null===(i=this[`${t||"hour"}El`])||void 0===i||i.focus()}toggleSecond(){this.showSecond=this.step<60,this.showFractionalSecond=z(this.step)>0}getMeridiemOrder(t){const i=this.effectiveLocale;return t&&"ar"!==i&&"he"!==i?t.findIndex((t=>t.value===this.localizedMeridiem)):0}updateLocale(){n(this,this.effectiveLocale),this.hourCycle=y(this.effectiveLocale,this.numberingSystem),this.localizedDecimalSeparator=w(this.effectiveLocale,this.numberingSystem),this.setValue(this.sanitizeValue(this.value))}connectedCallback(){o(this),this.updateLocale(),r(this),this.toggleSecond(),this.meridiemOrder=this.getMeridiemOrder(k({value:"0:00:00",locale:this.effectiveLocale,numberingSystem:this.numberingSystem}))}async componentWillLoad(){$(this),await l(this)}componentDidLoad(){I(this)}disconnectedCallback(){h(this),d(this)}render(){const t=c(this.hour),i=S(this.scale),s=c(this.minute),a=c(this.second),o=c(this.fractionalSecond),h="12"===this.hourCycle;return e("div",{key:"a14cbeb1861fce5acdb6c06210c62d1a60e2c7e7",class:{[M.timePicker]:!0,[M.showMeridiem]:h,[M.showSecond]:this.showSecond,[M[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{key:"a53db9fc5411776df398bdf4df8a2521cc16c938",class:M.column,role:"group"},e("span",{key:"117e2b1eca1cd8ee8b5f79a9cfc0b003e165967d","aria-label":this.messages.hourUp,class:{[M.button]:!0,[M.buttonHourUp]:!0,[M.buttonTopLeft]:!0},onClick:this.hourUpClickHandler,role:"button"},e("calcite-icon",{key:"d1dfd48891fb26a56873ec597ec9822b2ae9cf5e",icon:"chevron-up",scale:i})),e("span",{key:"2f299ba278f86107a2ef4a34fbe8fb5d9ec05f51","aria-label":this.messages.hour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[M.input]:!0,[M.hour]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.hourEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setHourEl},this.localizedHour||"--"),e("span",{key:"72bf35a4c3152282cdac87a9bb636dbed52652b4","aria-label":this.messages.hourDown,class:{[M.button]:!0,[M.buttonHourDown]:!0,[M.buttonBottomLeft]:!0},onClick:this.hourDownClickHandler,role:"button"},e("calcite-icon",{key:"70f55cec6f85950079520f710f4bb1a76589bd90",icon:"chevron-down",scale:i}))),e("span",{key:"93641650ddbbe9a0c8753034e4b4418a4dd6f33b",class:M.delimiter},this.localizedHourSuffix),e("div",{key:"197cebdb724341cd763ed0a58f7c10090621fac0",class:M.column,role:"group"},e("span",{key:"10a3705875f07b57c4f494af7ef2d81581985242","aria-label":this.messages.minuteUp,class:{[M.button]:!0,[M.buttonMinuteUp]:!0},onClick:this.minuteUpClickHandler,role:"button"},e("calcite-icon",{key:"601b4929b942735034e37b634aac614a6640c209",icon:"chevron-up",scale:i})),e("span",{key:"7ef20135cd182c3794c1ce9f7309b09804903171","aria-label":this.messages.minute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":s&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[M.input]:!0,[M.minute]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.minuteEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMinuteEl},this.localizedMinute||"--"),e("span",{key:"5c9f8d832d0e1e06b8f637fceaac7209aab6d58d","aria-label":this.messages.minuteDown,class:{[M.button]:!0,[M.buttonMinuteDown]:!0},onClick:this.minuteDownClickHandler,role:"button"},e("calcite-icon",{key:"ca3672e19d9dc9b9c4105144c5232d84b7489711",icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{key:"5f484d639db6288275e213ceb5f0690a2752f618",class:M.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{key:"d52bb3a7fdfa867bbccbe78d3279fb0ceb76a88b",class:M.column,role:"group"},e("span",{key:"28436193da89813ac7f018e9455241bf4e2d07d0","aria-label":this.messages.secondUp,class:{[M.button]:!0,[M.buttonSecondUp]:!0},onClick:this.secondUpClickHandler,role:"button"},e("calcite-icon",{key:"839450a3d5330ba189d2d9e7ba66cf2618e632f2",icon:"chevron-up",scale:i})),e("span",{key:"433feb864cc9f44ff7f6ffcaaef128f974a0634b","aria-label":this.messages.second,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":a&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[M.input]:!0,[M.second]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.secondEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setSecondEl},this.localizedSecond||"--"),e("span",{key:"808c3402b58419dd68e34274e560b670fdd1d1f0","aria-label":this.messages.secondDown,class:{[M.button]:!0,[M.buttonSecondDown]:!0},onClick:this.secondDownClickHandler,role:"button"},e("calcite-icon",{key:"f09e4ac46e13232647e49f9038475f797e215497",icon:"chevron-down",scale:i}))),this.showFractionalSecond&&e("span",{key:"f1043c1c34a7c9296994ff2cb63fb5b8f00a14b8",class:M.delimiter},this.localizedDecimalSeparator),this.showFractionalSecond&&e("div",{key:"9c19c935c10e46b54c60c02e701952bd398c7e33",class:M.column,role:"group"},e("span",{key:"0f59c173041cfdf3820982e8d7dd8ed829a543ce","aria-label":this.messages.fractionalSecondUp,class:{[M.button]:!0,[M.buttonFractionalSecondUp]:!0},onClick:this.fractionalSecondUpClickHandler,role:"button"},e("calcite-icon",{key:"cd94cfecf478a52536c58252ead83ed41d65bb69",icon:"chevron-up",scale:i})),e("span",{key:"0d494152f7b11714127f811e41c33d77010b2bbb","aria-label":this.messages.fractionalSecond,"aria-valuemax":"999","aria-valuemin":"1","aria-valuenow":o&&parseInt(this.fractionalSecond)||"0","aria-valuetext":this.localizedFractionalSecond,class:{[M.input]:!0,[M.fractionalSecond]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.fractionalSecondEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.fractionalSecondKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setFractionalSecondEl},this.localizedFractionalSecond||"--"),e("span",{key:"424ee367ab5ee7c6715d32cff9edbc47e6c964a6","aria-label":this.messages.fractionalSecondDown,class:{[M.button]:!0,[M.buttonFractionalSecondDown]:!0},onClick:this.fractionalSecondDownClickHandler,role:"button"},e("calcite-icon",{key:"91c71ca8891cb44a07a38cef3b144f170d1dc264",icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{key:"43066eb805fff853f88210ee4f17e2fbf5f9fb97",class:M.delimiter},this.localizedSecondSuffix),h&&e("div",{key:"866b964e1e08c9b46d4e5a943a1471c767394ca9",class:{[M.column]:!0,[M.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{key:"2b0046366a6784fa6ff99be3a3c5370b6a5c01d9","aria-label":this.messages.meridiemUp,class:{[M.button]:!0,[M.buttonMeridiemUp]:!0,[M.buttonTopRight]:!0},onClick:this.meridiemUpClickHandler,role:"button"},e("calcite-icon",{key:"0c5fae03afd08adc4a3065ce595195610d23f96d",icon:"chevron-up",scale:i})),e("span",{key:"148c4d7b777999d1fe2ca5937f16dfca61fcfd8c","aria-label":this.messages.meridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[M.input]:!0,[M.meridiem]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.meridiemEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMeridiemEl},this.localizedMeridiem||"--"),e("span",{key:"ee470559d0034555ba1f2a26199e54326d728b6a","aria-label":this.messages.meridiemDown,class:{[M.button]:!0,[M.buttonMeridiemDown]:!0,[M.buttonBottomRight]:!0},onClick:this.meridiemDownClickHandler,role:"button"},e("calcite-icon",{key:"093408bb889d14238bfb2987db200e7d223addfa",icon:"chevron-down",scale:i}))))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{step:["stepChange"],value:["valueWatcher"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleWatcher"]}}};C.style=":host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-color-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:var(--calcite-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-color-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-color-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-2);z-index:var(--calcite-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;outline-offset:0}.time-picker .input.inputFocus,.time-picker .input:hover.inputFocus{box-shadow:inset 0 0 0 2px var(--calcite-color-brand);z-index:var(--calcite-z-index-header)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}";export{C as calcite_time_picker}
|
11
|
+
*/const M={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonFractionalSecondDown:"button--fractionalSecond-down",buttonFractionalSecondUp:"button--fractionalSecond-up",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",fractionalSecond:"fractionalSecond",hour:"hour",input:"input",inputFocus:"inputFocus",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},C=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",6),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",6),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",6),this.pointerActivated=!1,this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(c(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.pointerActivated||(this.activeEl=t.currentTarget)},this.fractionalSecondKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=z(this.step),e=parseInt(this.fractionalSecond),s=e.toString().length;let a;s>=t?a=i.padStart(t,"0"):s<t&&(a=`${e}${i}`.padStart(t,"0")),this.setValuePart("fractionalSecond",parseFloat(`0.${a}`))}else switch(i){case"Backspace":case"Delete":this.setValuePart("fractionalSecond",null);break;case"ArrowDown":t.preventDefault(),this.nudgeFractionalSecond("down");break;case"ArrowUp":t.preventDefault(),this.nudgeFractionalSecond("up");break;case" ":t.preventDefault()}},this.fractionalSecondDownClickHandler=()=>{this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("down")},this.fractionalSecondUpClickHandler=()=>{this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("up")},this.hourDownClickHandler=()=>{this.activeEl=this.hourEl,this.hourEl.focus(),this.decrementHour()},this.hourKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=parseInt(i);let e;if(c(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":t.preventDefault()}},this.hourUpClickHandler=()=>{this.activeEl=this.hourEl,this.hourEl.focus(),this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=c(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=c(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.inputClickHandler=t=>{this.activeEl=t.target},this.meridiemUpClickHandler=()=>{this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.incrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":t.preventDefault()}},this.meridiemDownClickHandler=()=>{this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.decrementMeridiem()},this.minuteDownClickHandler=()=>{this.activeEl=this.minuteEl,this.minuteEl.focus(),this.decrementMinute()},this.minuteUpClickHandler=()=>{this.activeEl=this.minuteEl,this.minuteEl.focus(),this.incrementMinute()},this.minuteKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=parseInt(i);let e;if(c(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>x?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":t.preventDefault()}},this.nudgeFractionalSecond=t=>{const i=A(this.step),e=z(this.step),s=parseInt(this.fractionalSecond),a=parseFloat(`0.${this.fractionalSecond}`);let c,o,h,n;"up"===t&&(c=isNaN(s)?0:a+i,o=parseFloat(c.toFixed(e)),h=A(o),n=o<1&&z(h)>0?u(h,e):"".padStart(e,"0")),"down"===t&&(c=isNaN(s)||0===s?1-i:a-i,o=parseFloat(c.toFixed(e)),h=A(o),n=o<1&&z(h)>0&&1===Math.sign(h)?u(h,e):"".padStart(e,"0")),this.setValuePart("fractionalSecond",n)},this.sanitizeValue=t=>{const{hour:i,minute:e,second:s,fractionalSecond:a}=b(t);return a?`${i}:${e}:${s}.${this.sanitizeFractionalSecond(a)}`:p(t)&&t},this.sanitizeFractionalSecond=t=>t&&z(this.step)!==t.length?parseFloat(`0.${t}`).toFixed(z(this.step)).replace("0.",""):t,this.secondKeyDownHandler=t=>{const{key:i}=t;if(a.includes(i)){const t=parseInt(i);let e;if(c(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>x?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":t.preventDefault()}},this.secondDownClickHandler=()=>{this.activeEl=this.secondEl,this.secondEl.focus(),this.decrementSecond()},this.secondUpClickHandler=()=>{this.activeEl=this.secondEl,this.secondEl.focus(),this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setFractionalSecondEl=t=>this.fractionalSecondEl=t,this.setValue=t=>{if(p(t)){const{hour:i,minute:e,second:s,fractionalSecond:a}=b(t),{effectiveLocale:c,numberingSystem:o}=this,{localizedHour:h,localizedHourSuffix:n,localizedMinute:r,localizedMinuteSuffix:l,localizedSecond:d,localizedDecimalSeparator:u,localizedFractionalSecond:p,localizedSecondSuffix:v,localizedMeridiem:w}=f({value:t,locale:c,numberingSystem:o});if(this.hour=i,this.minute=e,this.second=s,this.fractionalSecond=this.sanitizeFractionalSecond(a),this.localizedHour=h,this.localizedHourSuffix=n,this.localizedMinute=r,this.localizedMinuteSuffix=l,this.localizedSecond=d,this.localizedDecimalSeparator=u,this.localizedFractionalSecond=p,this.localizedSecondSuffix=v,w){this.localizedMeridiem=w,this.meridiem=m(this.hour);const i=k({value:t,locale:c,numberingSystem:o});this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.fractionalSecond=null,this.localizedHour=null,this.localizedHourSuffix=v("hour",this.effectiveLocale,this.numberingSystem),this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=v("minute",this.effectiveLocale,this.numberingSystem),this.localizedSecond=null,this.localizedDecimalSeparator=w(this.effectiveLocale,this.numberingSystem),this.localizedFractionalSecond=null,this.localizedSecondSuffix=v("second",this.effectiveLocale,this.numberingSystem),this.meridiem=null,this.minute=null,this.second=null,this.value=null},this.setValuePart=(t,i)=>{var e,s;const{effectiveLocale:a,numberingSystem:o}=this;if("meridiem"===t){if(this.meridiem=i,c(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=u(t-12));break;case"PM":t<12&&(this.hour=u(t+12))}this.localizedHour=g({value:this.hour,part:"hour",locale:a,numberingSystem:o})}}else if("fractionalSecond"===t){const t=z(this.step);this.fractionalSecond="number"==typeof i?0===i?"".padStart(t,"0"):u(i,t):i,this.localizedFractionalSecond=g({value:this.fractionalSecond,part:"fractionalSecond",locale:a,numberingSystem:o})}else this[t]="number"==typeof i?u(i):i,this[`localized${h=t,h.charAt(0).toUpperCase()+h.slice(1)}`]=g({value:this[t],part:t,locale:a,numberingSystem:o});var h;let n,r=!1;this.hour&&this.minute?(n=`${this.hour}:${this.minute}`,this.showSecond&&(n=`${n}:${null!==(e=this.second)&&void 0!==e?e:"00"}`,this.showFractionalSecond&&this.fractionalSecond&&(n=`${n}.${this.fractionalSecond}`))):n=null,this.value!==n&&(r=!0),this.value=n,this.localizedMeridiem=this.value?(null===(s=f({value:this.value,locale:a,numberingSystem:o}))||void 0===s?void 0:s.localizedMeridiem)||null:g({value:this.meridiem,part:"meridiem",locale:a,numberingSystem:o}),r&&this.calciteInternalTimePickerChange.emit()},this.scale="m",this.step=60,this.numberingSystem=void 0,this.value=null,this.messages=void 0,this.messageOverrides=void 0,this.activeEl=void 0,this.effectiveLocale="",this.fractionalSecond=void 0,this.hour=void 0,this.hourCycle=void 0,this.localizedDecimalSeparator=".",this.localizedHour=void 0,this.localizedHourSuffix=void 0,this.localizedMeridiem=void 0,this.localizedFractionalSecond=void 0,this.localizedMinute=void 0,this.localizedMinuteSuffix=void 0,this.localizedSecond=void 0,this.localizedSecondSuffix=void 0,this.meridiem=void 0,this.minute=void 0,this.second=void 0,this.showFractionalSecond=void 0,this.showSecond=void 0,this.defaultMessages=void 0}stepChange(){this.toggleSecond()}valueWatcher(t){this.setValue(t)}onMessagesChange(){}effectiveLocaleWatcher(){this.updateLocale()}blurHandler(){this.activeEl=void 0,this.pointerActivated=!1,this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){this.pointerActivated=!1;const{defaultPrevented:i,key:e}=t;if(!i)switch(this.activeEl){case this.hourEl:"ArrowRight"===e&&(this.focusPart("minute"),t.preventDefault());break;case this.minuteEl:switch(e){case"ArrowLeft":this.focusPart("hour"),t.preventDefault();break;case"ArrowRight":60!==this.step?(this.focusPart("second"),t.preventDefault()):"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.secondEl:switch(e){case"ArrowLeft":this.focusPart("minute"),t.preventDefault();break;case"ArrowRight":this.showFractionalSecond?this.focusPart("fractionalSecond"):"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.fractionalSecondEl:switch(e){case"ArrowLeft":this.focusPart("second"),t.preventDefault();break;case"ArrowRight":"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.meridiemEl:"ArrowLeft"===e&&(this.showFractionalSecond?this.focusPart("fractionalSecond"):60!==this.step?(this.focusPart("second"),t.preventDefault()):(this.focusPart("minute"),t.preventDefault()))}}pointerDownHandler(){this.pointerActivated=!0}async setFocus(){var t;await D(this),null===(t=this.el)||void 0===t||t.focus()}async focusPart(t){var i;await D(this),null===(i=this[`${t||"hour"}El`])||void 0===i||i.focus()}toggleSecond(){this.showSecond=this.step<60,this.showFractionalSecond=z(this.step)>0}getMeridiemOrder(t){const i=this.effectiveLocale;return t&&"ar"!==i&&"he"!==i?t.findIndex((t=>t.value===this.localizedMeridiem)):0}updateLocale(){n(this,this.effectiveLocale),this.hourCycle=y(this.effectiveLocale,this.numberingSystem),this.localizedDecimalSeparator=w(this.effectiveLocale,this.numberingSystem),this.setValue(this.sanitizeValue(this.value))}connectedCallback(){o(this),this.updateLocale(),r(this),this.toggleSecond(),this.meridiemOrder=this.getMeridiemOrder(k({value:"0:00:00",locale:this.effectiveLocale,numberingSystem:this.numberingSystem}))}async componentWillLoad(){$(this),await l(this)}componentDidLoad(){I(this)}disconnectedCallback(){h(this),d(this)}render(){const t=c(this.hour),i=S(this.scale),s=c(this.minute),a=c(this.second),o=c(this.fractionalSecond),h="12"===this.hourCycle;return e("div",{key:"a14cbeb1861fce5acdb6c06210c62d1a60e2c7e7",class:{[M.timePicker]:!0,[M.showMeridiem]:h,[M.showSecond]:this.showSecond,[M[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{key:"a53db9fc5411776df398bdf4df8a2521cc16c938",class:M.column,role:"group"},e("span",{key:"117e2b1eca1cd8ee8b5f79a9cfc0b003e165967d","aria-label":this.messages.hourUp,class:{[M.button]:!0,[M.buttonHourUp]:!0,[M.buttonTopLeft]:!0},onClick:this.hourUpClickHandler,role:"button"},e("calcite-icon",{key:"d1dfd48891fb26a56873ec597ec9822b2ae9cf5e",icon:"chevron-up",scale:i})),e("span",{key:"2f299ba278f86107a2ef4a34fbe8fb5d9ec05f51","aria-label":this.messages.hour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[M.input]:!0,[M.hour]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.hourEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setHourEl},this.localizedHour||"--"),e("span",{key:"72bf35a4c3152282cdac87a9bb636dbed52652b4","aria-label":this.messages.hourDown,class:{[M.button]:!0,[M.buttonHourDown]:!0,[M.buttonBottomLeft]:!0},onClick:this.hourDownClickHandler,role:"button"},e("calcite-icon",{key:"70f55cec6f85950079520f710f4bb1a76589bd90",icon:"chevron-down",scale:i}))),e("span",{key:"93641650ddbbe9a0c8753034e4b4418a4dd6f33b",class:M.delimiter},this.localizedHourSuffix),e("div",{key:"197cebdb724341cd763ed0a58f7c10090621fac0",class:M.column,role:"group"},e("span",{key:"10a3705875f07b57c4f494af7ef2d81581985242","aria-label":this.messages.minuteUp,class:{[M.button]:!0,[M.buttonMinuteUp]:!0},onClick:this.minuteUpClickHandler,role:"button"},e("calcite-icon",{key:"601b4929b942735034e37b634aac614a6640c209",icon:"chevron-up",scale:i})),e("span",{key:"7ef20135cd182c3794c1ce9f7309b09804903171","aria-label":this.messages.minute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":s&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[M.input]:!0,[M.minute]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.minuteEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMinuteEl},this.localizedMinute||"--"),e("span",{key:"5c9f8d832d0e1e06b8f637fceaac7209aab6d58d","aria-label":this.messages.minuteDown,class:{[M.button]:!0,[M.buttonMinuteDown]:!0},onClick:this.minuteDownClickHandler,role:"button"},e("calcite-icon",{key:"ca3672e19d9dc9b9c4105144c5232d84b7489711",icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{key:"5f484d639db6288275e213ceb5f0690a2752f618",class:M.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{key:"d52bb3a7fdfa867bbccbe78d3279fb0ceb76a88b",class:M.column,role:"group"},e("span",{key:"28436193da89813ac7f018e9455241bf4e2d07d0","aria-label":this.messages.secondUp,class:{[M.button]:!0,[M.buttonSecondUp]:!0},onClick:this.secondUpClickHandler,role:"button"},e("calcite-icon",{key:"839450a3d5330ba189d2d9e7ba66cf2618e632f2",icon:"chevron-up",scale:i})),e("span",{key:"433feb864cc9f44ff7f6ffcaaef128f974a0634b","aria-label":this.messages.second,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":a&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[M.input]:!0,[M.second]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.secondEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setSecondEl},this.localizedSecond||"--"),e("span",{key:"808c3402b58419dd68e34274e560b670fdd1d1f0","aria-label":this.messages.secondDown,class:{[M.button]:!0,[M.buttonSecondDown]:!0},onClick:this.secondDownClickHandler,role:"button"},e("calcite-icon",{key:"f09e4ac46e13232647e49f9038475f797e215497",icon:"chevron-down",scale:i}))),this.showFractionalSecond&&e("span",{key:"f1043c1c34a7c9296994ff2cb63fb5b8f00a14b8",class:M.delimiter},this.localizedDecimalSeparator),this.showFractionalSecond&&e("div",{key:"9c19c935c10e46b54c60c02e701952bd398c7e33",class:M.column,role:"group"},e("span",{key:"0f59c173041cfdf3820982e8d7dd8ed829a543ce","aria-label":this.messages.fractionalSecondUp,class:{[M.button]:!0,[M.buttonFractionalSecondUp]:!0},onClick:this.fractionalSecondUpClickHandler,role:"button"},e("calcite-icon",{key:"cd94cfecf478a52536c58252ead83ed41d65bb69",icon:"chevron-up",scale:i})),e("span",{key:"0d494152f7b11714127f811e41c33d77010b2bbb","aria-label":this.messages.fractionalSecond,"aria-valuemax":"999","aria-valuemin":"1","aria-valuenow":o&&parseInt(this.fractionalSecond)||"0","aria-valuetext":this.localizedFractionalSecond,class:{[M.input]:!0,[M.fractionalSecond]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.fractionalSecondEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.fractionalSecondKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setFractionalSecondEl},this.localizedFractionalSecond||"--"),e("span",{key:"424ee367ab5ee7c6715d32cff9edbc47e6c964a6","aria-label":this.messages.fractionalSecondDown,class:{[M.button]:!0,[M.buttonFractionalSecondDown]:!0},onClick:this.fractionalSecondDownClickHandler,role:"button"},e("calcite-icon",{key:"91c71ca8891cb44a07a38cef3b144f170d1dc264",icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{key:"43066eb805fff853f88210ee4f17e2fbf5f9fb97",class:M.delimiter},this.localizedSecondSuffix),h&&e("div",{key:"866b964e1e08c9b46d4e5a943a1471c767394ca9",class:{[M.column]:!0,[M.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{key:"2b0046366a6784fa6ff99be3a3c5370b6a5c01d9","aria-label":this.messages.meridiemUp,class:{[M.button]:!0,[M.buttonMeridiemUp]:!0,[M.buttonTopRight]:!0},onClick:this.meridiemUpClickHandler,role:"button"},e("calcite-icon",{key:"0c5fae03afd08adc4a3065ce595195610d23f96d",icon:"chevron-up",scale:i})),e("span",{key:"148c4d7b777999d1fe2ca5937f16dfca61fcfd8c","aria-label":this.messages.meridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[M.input]:!0,[M.meridiem]:!0,[M.inputFocus]:this.activeEl&&this.activeEl===this.meridiemEl},onClick:this.inputClickHandler,onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMeridiemEl},this.localizedMeridiem||"--"),e("span",{key:"ee470559d0034555ba1f2a26199e54326d728b6a","aria-label":this.messages.meridiemDown,class:{[M.button]:!0,[M.buttonMeridiemDown]:!0,[M.buttonBottomRight]:!0},onClick:this.meridiemDownClickHandler,role:"button"},e("calcite-icon",{key:"093408bb889d14238bfb2987db200e7d223addfa",icon:"chevron-down",scale:i}))))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{step:["stepChange"],value:["valueWatcher"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleWatcher"]}}};C.style=":host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-color-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:var(--calcite-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-color-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-color-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-2);z-index:var(--calcite-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;outline-offset:0}.time-picker .input.inputFocus,.time-picker .input:hover.inputFocus{box-shadow:inset 0 0 0 2px var(--calcite-color-brand);z-index:var(--calcite-z-index-header)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}";export{C as calcite_time_picker}
|