@ncino/web-components 5.0.0-preview.2 → 5.0.0-preview.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +1 -1
  2. package/dist/_virtual/index_html.js +1 -1
  3. package/dist/_virtual/index_react.js +1 -1
  4. package/dist/_virtual/preload-helper.js +1 -1
  5. package/dist/assets/node_modules/.pnpm/ckeditor5@45.2.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
  6. package/dist/components/accordion/gator/base/accordion.gator.js +6 -6
  7. package/dist/components/avatar/gator/avatar.gator.js +2 -2
  8. package/dist/components/badge/gator/badge.gator.js +2 -2
  9. package/dist/components/boolean/boolean.gator.js +6 -6
  10. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
  11. package/dist/components/button/gator/button.gator.js +4 -4
  12. package/dist/components/button-group/gator/button-group.gator.js +2 -2
  13. package/dist/components/checkbox/checkbox.gator.js +5 -5
  14. package/dist/components/checkbox-group/checkbox-group.gator.js +8 -8
  15. package/dist/components/combobox/base/combobox.js +1 -1
  16. package/dist/components/combobox/base/combobox.slds.js +13 -13
  17. package/dist/components/date-picker/base/gator/datepicker.gator.js +18 -18
  18. package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
  19. package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
  20. package/dist/components/icon/gator/icon.gator.js +2 -2
  21. package/dist/components/illustration/gator/illustration.gator.js +2 -2
  22. package/dist/components/input/base/input-base.gator.js +1 -1
  23. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +11 -11
  24. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  25. package/dist/components/input/gator/input-date/input-date.gator.js +15 -15
  26. package/dist/components/input/gator/input-file/input-file.gator.js +3 -3
  27. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  28. package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
  29. package/dist/components/input/gator/input-search/input-search.gator.js +2 -2
  30. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  31. package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
  32. package/dist/components/list/gator/list/list.gator.js +2 -2
  33. package/dist/components/list/gator/list-item/list-item.gator.js +6 -6
  34. package/dist/components/menu/base/gator/menu.gator.js +3 -3
  35. package/dist/components/menu/base/slds/menu.slds.js +2 -2
  36. package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
  37. package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
  38. package/dist/components/modal/gator/modal.gator.js +38 -39
  39. package/dist/components/page-header/gator/page-header.gator.js +2 -2
  40. package/dist/components/panel/gator/panel.gator.js +13 -13
  41. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  42. package/dist/components/pill/pill.slds.js +3 -3
  43. package/dist/components/popover/gator/popover.gator.js +10 -10
  44. package/dist/components/popover/popover.js +1 -1
  45. package/dist/components/radio/radio.gator.js +2 -2
  46. package/dist/components/radio-group/radio-group.gator.js +2 -2
  47. package/dist/components/selection-box-group/selection-box-group.gator.js +5 -5
  48. package/dist/components/selector/gator/selector.gator.js +2 -2
  49. package/dist/components/switch/gator/switch.gator.js +2 -2
  50. package/dist/components/tabs/gator/tabset/tabset.gator.js +3 -3
  51. package/dist/components/text-detail/gator/text-detail.gator.js +17 -18
  52. package/dist/components/time-picker/gator/time-picker.gator.js +19 -19
  53. package/dist/components/tooltip/tooltip.js +1 -1
  54. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.2.1/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +2 -2
  55. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.2.1/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +2 -2
  56. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +10 -10
  57. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.2.1/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
  58. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.2.1/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
  59. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2 -2
  60. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.2.1/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +2 -2
  61. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +12 -12
  62. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.2.1/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +3 -3
  63. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.2.1/node_modules/@ckeditor/ckeditor5-font/dist/index.js +3 -3
  64. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.2.1/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +3 -3
  65. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.2.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +2 -2
  66. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.2.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +6 -6
  67. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.2.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +4 -4
  68. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.2.1/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +4 -4
  69. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.2.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
  70. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.2.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +5 -5
  71. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.2.1/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +4 -4
  72. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.2.1/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +2 -2
  73. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.2.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
  74. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +9 -9
  75. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +2 -2
  76. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.2.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +2 -2
  77. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@45.2.1/node_modules/@ckeditor/ckeditor5-style/dist/index.js +2 -2
  78. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.2.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +6 -6
  79. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +4 -4
  80. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +10 -10
  81. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
  82. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.2.1/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +2 -2
  83. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +38 -38
  84. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.2.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +3 -3
  85. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +2 -2
  86. package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +1 -1
  87. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +1 -1
  88. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/common/fetch.js +1 -0
  89. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +1 -0
  90. package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
  91. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/package.json.js +1 -0
  92. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  93. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +2 -2
  94. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/channels/index.js +9 -9
  95. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/csf/index.js +1 -1
  96. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js +22 -22
  97. package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +36 -36
  98. package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +111 -111
  99. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js +1 -0
  100. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +8 -8
  101. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +2 -2
  102. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -5
  103. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +11 -11
  104. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +21 -21
  105. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -2
  106. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +4 -4
  107. package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +3 -3
  108. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -1
  109. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -1
  110. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -1
  111. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -1
  112. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -1
  113. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -1
  114. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -1
  115. package/dist/node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js +2 -2
  116. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/async-directive.js +1 -1
  117. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +2 -2
  118. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js +2 -2
  119. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +3 -3
  120. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -1
  121. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +1 -1
  122. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +1 -1
  123. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +1 -1
  124. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +1 -1
  125. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -1
  126. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +1 -1
  127. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +1 -1
  128. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +1 -1
  129. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +2 -2
  130. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +1 -1
  131. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +1 -1
  132. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +1 -1
  133. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +1 -1
  134. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +1 -1
  135. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +1 -1
  136. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +1 -1
  137. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  138. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +8 -8
  139. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
  140. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  141. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
  142. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  143. package/dist/packages/web-components/src/index.slds.scss.js +1 -1
  144. package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
  145. package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +4 -2
  146. package/dist/utils/accessibility-utils.js +1 -1
  147. package/dist/utils/datatestid-utils.js +1 -1
  148. package/dist/utils/lightdom-utils.js +1 -1
  149. package/dist/utils/vitest-a11y-utils.js +1 -1
  150. package/dist/utils/vitest-utils.js +1 -1
  151. package/package.json +10 -10
  152. package/web-types.json +2 -3
  153. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
  154. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
  155. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +0 -1
  156. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.1_5fd2997ee9a97429a51e07bc2023c338/node_modules/@vitest/browser/context.js +0 -1
  157. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
  158. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
  159. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
  160. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
  161. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
  162. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
  163. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
  164. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
  165. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
  166. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/external.js +0 -0
  167. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/index_react.js +0 -0
@@ -1,4 +1,4 @@
1
- import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as a,nothing as v}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/add-link.js";import"../../../icon/gator/templates/airplane.js";import"../../../icon/gator/templates/alarm.js";import"../../../icon/gator/templates/apartment.js";import"../../../icon/gator/templates/arrow-around.js";import"../../../icon/gator/templates/arrow-down.js";import"../../../icon/gator/templates/arrow-left.js";import"../../../icon/gator/templates/arrow-line-left.js";import"../../../icon/gator/templates/arrow-line-right.js";import"../../../icon/gator/templates/arrow-right.js";import"../../../icon/gator/templates/arrow-up.js";import"../../../icon/gator/templates/bank.js";import"../../../icon/gator/templates/bell-disabled.js";import"../../../icon/gator/templates/bell.js";import"../../../icon/gator/templates/binoculars.js";import"../../../icon/gator/templates/book.js";import"../../../icon/gator/templates/box.js";import"../../../icon/gator/templates/cake.js";import"../../../icon/gator/templates/calculator.js";import"../../../icon/gator/templates/calendar.js";import"../../../icon/gator/templates/camera.js";import"../../../icon/gator/templates/caret-up-down.js";import"../../../icon/gator/templates/case.js";import"../../../icon/gator/templates/chart-bar-horizontal.js";import"../../../icon/gator/templates/chart-bar.js";import"../../../icon/gator/templates/chart-donut.js";import"../../../icon/gator/templates/chart-line.js";import"../../../icon/gator/templates/chart-pie.js";import"../../../icon/gator/templates/chart-rise.js";import"../../../icon/gator/templates/chart-scatter.js";import"../../../icon/gator/templates/chat.js";import"../../../icon/gator/templates/check-circle.js";import"../../../icon/gator/templates/check.js";import"../../../icon/gator/templates/checkbox-selected.js";import"../../../icon/gator/templates/checkbox.js";import"../../../icon/gator/templates/checkerboard.js";import"../../../icon/gator/templates/chevron-down.js";import"../../../icon/gator/templates/chevron-left.js";import"../../../icon/gator/templates/chevron-right.js";import"../../../icon/gator/templates/chevron-up.js";import"../../../icon/gator/templates/circle-arrow-down.js";import"../../../icon/gator/templates/circle-arrow-left.js";import"../../../icon/gator/templates/circle-arrow-right.js";import"../../../icon/gator/templates/circle-arrow-up.js";import"../../../icon/gator/templates/circle-dashed.js";import"../../../icon/gator/templates/circle-filled.js";import"../../../icon/gator/templates/circle.js";import"../../../icon/gator/templates/city.js";import"../../../icon/gator/templates/clipboard.js";import"../../../icon/gator/templates/clock-clockwise.js";import"../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../icon/gator/templates/clock.js";import"../../../icon/gator/templates/collapse.js";import"../../../icon/gator/templates/cone.js";import"../../../icon/gator/templates/contact-info.js";import"../../../icon/gator/templates/copy.js";import"../../../icon/gator/templates/credit-card.js";import"../../../icon/gator/templates/crop.js";import"../../../icon/gator/templates/crosshairs.js";import"../../../icon/gator/templates/currency-dollar-simple.js";import"../../../icon/gator/templates/currency-eur.js";import"../../../icon/gator/templates/currency-gbp.js";import"../../../icon/gator/templates/currency-inr.js";import"../../../icon/gator/templates/currency-jpy.js";import"../../../icon/gator/templates/currency-krw.js";import"../../../icon/gator/templates/currency-kzt.js";import"../../../icon/gator/templates/currency-ngn.js";import"../../../icon/gator/templates/currency-rub.js";import"../../../icon/gator/templates/cursor-arrow.js";import"../../../icon/gator/templates/cursor-hand.js";import"../../../icon/gator/templates/cursor.js";import"../../../icon/gator/templates/dashboard.js";import"../../../icon/gator/templates/delete.js";import"../../../icon/gator/templates/dna.js";import"../../../icon/gator/templates/document-add.js";import"../../../icon/gator/templates/document-check.js";import"../../../icon/gator/templates/document-e-sign.js";import"../../../icon/gator/templates/document-image.js";import"../../../icon/gator/templates/document-pdf.js";import"../../../icon/gator/templates/document-sign.js";import"../../../icon/gator/templates/document-zip.js";import"../../../icon/gator/templates/document.js";import"../../../icon/gator/templates/dollar-bills.js";import"../../../icon/gator/templates/dollar-house.js";import"../../../icon/gator/templates/down-payment.js";import"../../../icon/gator/templates/download.js";import"../../../icon/gator/templates/drag-drop.js";import"../../../icon/gator/templates/earth.js";import"../../../icon/gator/templates/exclude-square.js";import"../../../icon/gator/templates/exit-circle.js";import"../../../icon/gator/templates/exit-left.js";import"../../../icon/gator/templates/exit.js";import"../../../icon/gator/templates/expand-arrows.js";import"../../../icon/gator/templates/expand.js";import"../../../icon/gator/templates/export.js";import"../../../icon/gator/templates/eye-closed.js";import"../../../icon/gator/templates/eye-crossed.js";import"../../../icon/gator/templates/eye.js";import"../../../icon/gator/templates/facebook-logo.js";import"../../../icon/gator/templates/file-code.js";import"../../../icon/gator/templates/files.js";import"../../../icon/gator/templates/filter-funnel.js";import"../../../icon/gator/templates/filters-2.js";import"../../../icon/gator/templates/filters.js";import"../../../icon/gator/templates/flags/flag-ad-andorra.js";import"../../../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../../../icon/gator/templates/flags/flag-af-afghanistan.js";import"../../../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../../../icon/gator/templates/flags/flag-ai-anguilla.js";import"../../../icon/gator/templates/flags/flag-al-albania.js";import"../../../icon/gator/templates/flags/flag-am-armenia.js";import"../../../icon/gator/templates/flags/flag-ao-angola.js";import"../../../icon/gator/templates/flags/flag-aq-antarctica.js";import"../../../icon/gator/templates/flags/flag-ar-argentina.js";import"../../../icon/gator/templates/flags/flag-as-american-smoa.js";import"../../../icon/gator/templates/flags/flag-at-austria.js";import"../../../icon/gator/templates/flags/flag-au-australia.js";import"../../../icon/gator/templates/flags/flag-aw-aruba.js";import"../../../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../../../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../../../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../../../icon/gator/templates/flags/flag-bb-barbados.js";import"../../../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../../../icon/gator/templates/flags/flag-be-belgium.js";import"../../../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../../../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../../../icon/gator/templates/flags/flag-bh-bahrain.js";import"../../../icon/gator/templates/flags/flag-bi-burundi.js";import"../../../icon/gator/templates/flags/flag-bj-benin.js";import"../../../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../../../icon/gator/templates/flags/flag-bm-bermuda.js";import"../../../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../../../icon/gator/templates/flags/flag-bo-bolivia.js";import"../../../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../../../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../../../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../../../icon/gator/templates/flags/flag-br-brazil.js";import"../../../icon/gator/templates/flags/flag-bs-bahamas.js";import"../../../icon/gator/templates/flags/flag-bt-bhutan.js";import"../../../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../../../icon/gator/templates/flags/flag-bw-botswana.js";import"../../../icon/gator/templates/flags/flag-by-belarus.js";import"../../../icon/gator/templates/flags/flag-bz-belize.js";import"../../../icon/gator/templates/flags/flag-ca-canada.js";import"../../../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../../../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../../../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-ch-switzerland.js";import"../../../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../../../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../../../icon/gator/templates/flags/flag-cl-chile.js";import"../../../icon/gator/templates/flags/flag-cm-cameroon.js";import"../../../icon/gator/templates/flags/flag-cn-china.js";import"../../../icon/gator/templates/flags/flag-co-colombia.js";import"../../../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../../../icon/gator/templates/flags/flag-cu-cuba.js";import"../../../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../../../icon/gator/templates/flags/flag-cw-curaçao.js";import"../../../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../../../icon/gator/templates/flags/flag-cy-cyprus.js";import"../../../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../../../icon/gator/templates/flags/flag-de-germany.js";import"../../../icon/gator/templates/flags/flag-dj-djibouti.js";import"../../../icon/gator/templates/flags/flag-dk-denmark.js";import"../../../icon/gator/templates/flags/flag-dm-dominica.js";import"../../../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../../../icon/gator/templates/flags/flag-dz-algeria.js";import"../../../icon/gator/templates/flags/flag-ec-ecuador.js";import"../../../icon/gator/templates/flags/flag-ee-estonia.js";import"../../../icon/gator/templates/flags/flag-eg-egypt.js";import"../../../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../../../icon/gator/templates/flags/flag-er-eritrea.js";import"../../../icon/gator/templates/flags/flag-es-sain.js";import"../../../icon/gator/templates/flags/flag-et-ethiopia.js";import"../../../icon/gator/templates/flags/flag-fi-finland.js";import"../../../icon/gator/templates/flags/flag-fj-fiji.js";import"../../../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../../../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../../../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../../../icon/gator/templates/flags/flag-fr-france.js";import"../../../icon/gator/templates/flags/flag-ga-gabon.js";import"../../../icon/gator/templates/flags/flag-gb-eng-england.js";import"../../../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../../../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../../../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../../../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../../../icon/gator/templates/flags/flag-gd-grenada.js";import"../../../icon/gator/templates/flags/flag-ge-georgia.js";import"../../../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../../../icon/gator/templates/flags/flag-gg-guernsey.js";import"../../../icon/gator/templates/flags/flag-gh-ghana.js";import"../../../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../../../icon/gator/templates/flags/flag-gl-greenland.js";import"../../../icon/gator/templates/flags/flag-gm-gambia.js";import"../../../icon/gator/templates/flags/flag-gn-guinea.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../../../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../../../icon/gator/templates/flags/flag-gr-greece.js";import"../../../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../../../icon/gator/templates/flags/flag-gt-guatemala.js";import"../../../icon/gator/templates/flags/flag-gu-guam.js";import"../../../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../../../icon/gator/templates/flags/flag-gy-guyana.js";import"../../../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../../../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../../../icon/gator/templates/flags/flag-hn-honduras.js";import"../../../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../../../icon/gator/templates/flags/flag-ht-haiti.js";import"../../../icon/gator/templates/flags/flag-hu-hungary.js";import"../../../icon/gator/templates/flags/flag-id-indonesia.js";import"../../../icon/gator/templates/flags/flag-ie-ireland.js";import"../../../icon/gator/templates/flags/flag-il-isreal.js";import"../../../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../../../icon/gator/templates/flags/flag-in-india.js";import"../../../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../../../icon/gator/templates/flags/flag-iq-iraq.js";import"../../../icon/gator/templates/flags/flag-ir-iran.js";import"../../../icon/gator/templates/flags/flag-is-iceland.js";import"../../../icon/gator/templates/flags/flag-it-italy.js";import"../../../icon/gator/templates/flags/flag-je-jersey.js";import"../../../icon/gator/templates/flags/flag-jm-jamaica.js";import"../../../icon/gator/templates/flags/flag-jo-jordan.js";import"../../../icon/gator/templates/flags/flag-jp-japan.js";import"../../../icon/gator/templates/flags/flag-ke-kenia.js";import"../../../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../../../icon/gator/templates/flags/flag-kh-cambodia.js";import"../../../icon/gator/templates/flags/flag-ki--kiribati.js";import"../../../icon/gator/templates/flags/flag-km-comoros.js";import"../../../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../../../icon/gator/templates/flags/flag-kp-korea-north.js";import"../../../icon/gator/templates/flags/flag-kr-korea-south.js";import"../../../icon/gator/templates/flags/flag-kw-kuwait.js";import"../../../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../../../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../../../icon/gator/templates/flags/flag-la-laos.js";import"../../../icon/gator/templates/flags/flag-lb-lebanon.js";import"../../../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../../../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../../../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../../../icon/gator/templates/flags/flag-lr-liberia.js";import"../../../icon/gator/templates/flags/flag-ls-lesotho.js";import"../../../icon/gator/templates/flags/flag-lt-lithuania.js";import"../../../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../../../icon/gator/templates/flags/flag-lv-latvia.js";import"../../../icon/gator/templates/flags/flag-ly-libya.js";import"../../../icon/gator/templates/flags/flag-ma-morocco.js";import"../../../icon/gator/templates/flags/flag-mc-monaco.js";import"../../../icon/gator/templates/flags/flag-md-moldova.js";import"../../../icon/gator/templates/flags/flag-me-montenegro.js";import"../../../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../../../icon/gator/templates/flags/flag-mg-madagascar.js";import"../../../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../../../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../../../icon/gator/templates/flags/flag-ml-mali.js";import"../../../icon/gator/templates/flags/flag-mm-myanmar.js";import"../../../icon/gator/templates/flags/flag-mn-mongolia.js";import"../../../icon/gator/templates/flags/flag-mo-macao.js";import"../../../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../../../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../../../icon/gator/templates/flags/flag-mq-martinique.js";import"../../../icon/gator/templates/flags/flag-mr-mauritania.js";import"../../../icon/gator/templates/flags/flag-ms-montserrat.js";import"../../../icon/gator/templates/flags/flag-mt-malta.js";import"../../../icon/gator/templates/flags/flag-mu-mauritius.js";import"../../../icon/gator/templates/flags/flag-mv-maldives.js";import"../../../icon/gator/templates/flags/flag-mw-malawi.js";import"../../../icon/gator/templates/flags/flag-mx-mexico.js";import"../../../icon/gator/templates/flags/flag-my-malaysia.js";import"../../../icon/gator/templates/flags/flag-mz-mozambique.js";import"../../../icon/gator/templates/flags/flag-na-namibia.js";import"../../../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../../../icon/gator/templates/flags/flag-ne-niger.js";import"../../../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../../../icon/gator/templates/flags/flag-ng-nigeria.js";import"../../../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../../../icon/gator/templates/flags/flag-nl-netherlands.js";import"../../../icon/gator/templates/flags/flag-no-norway.js";import"../../../icon/gator/templates/flags/flag-np-nepal.js";import"../../../icon/gator/templates/flags/flag-nr-nauru.js";import"../../../icon/gator/templates/flags/flag-nu-niue.js";import"../../../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../../../icon/gator/templates/flags/flag-om-oman.js";import"../../../icon/gator/templates/flags/flag-pa-panama.js";import"../../../icon/gator/templates/flags/flag-pe-peru.js";import"../../../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../../../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../../../icon/gator/templates/flags/flag-ph-philippines.js";import"../../../icon/gator/templates/flags/flag-pk-pakistan.js";import"../../../icon/gator/templates/flags/flag-pl-poland.js";import"../../../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../../../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../../../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../../../icon/gator/templates/flags/flag-pt-portugal.js";import"../../../icon/gator/templates/flags/flag-pw-palau.js";import"../../../icon/gator/templates/flags/flag-py-paraguay.js";import"../../../icon/gator/templates/flags/flag-qa-qatar.js";import"../../../icon/gator/templates/flags/flag-re-reunion.js";import"../../../icon/gator/templates/flags/flag-ro-romania.js";import"../../../icon/gator/templates/flags/flag-rs-srbia.js";import"../../../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../../../icon/gator/templates/flags/flag-rw-rwanda.js";import"../../../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../../../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../../../icon/gator/templates/flags/flag-sc-sychelles.js";import"../../../icon/gator/templates/flags/flag-sd-sdan.js";import"../../../icon/gator/templates/flags/flag-se-seden.js";import"../../../icon/gator/templates/flags/flag-sg-sngapore.js";import"../../../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../../../icon/gator/templates/flags/flag-si-sovenia.js";import"../../../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../../../icon/gator/templates/flags/flag-sk-sovakia.js";import"../../../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../../../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../../../icon/gator/templates/flags/flag-sn-snegal.js";import"../../../icon/gator/templates/flags/flag-so-smalia.js";import"../../../icon/gator/templates/flags/flag-sr-sriname.js";import"../../../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../../../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../../../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../../../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../../../icon/gator/templates/flags/flag-sy-sria.js";import"../../../icon/gator/templates/flags/flag-sz-saziland.js";import"../../../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../../../icon/gator/templates/flags/flag-td-chad.js";import"../../../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../../../icon/gator/templates/flags/flag-tg-togo.js";import"../../../icon/gator/templates/flags/flag-th-thailand.js";import"../../../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../../../icon/gator/templates/flags/flag-tk-tokelau.js";import"../../../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../../../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../../../icon/gator/templates/flags/flag-tn-tunisia.js";import"../../../icon/gator/templates/flags/flag-to-tonga.js";import"../../../icon/gator/templates/flags/flag-tr-turkey.js";import"../../../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../../../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../../../icon/gator/templates/flags/flag-tw-taiwan.js";import"../../../icon/gator/templates/flags/flag-tz-tanzania.js";import"../../../icon/gator/templates/flags/flag-ua-ukraine.js";import"../../../icon/gator/templates/flags/flag-ug-uganda.js";import"../../../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../../../icon/gator/templates/flags/flag-us-united-states.js";import"../../../icon/gator/templates/flags/flag-uy-uruguay.js";import"../../../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../../../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../../../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../../../icon/gator/templates/flags/flag-ve-venezuela.js";import"../../../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../../../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../../../icon/gator/templates/flags/flag-vn-vietnam.js";import"../../../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../../../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../../../icon/gator/templates/flags/flag-ws-smoa.js";import"../../../icon/gator/templates/flags/flag-ye-yemen.js";import"../../../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../../../icon/gator/templates/flags/flag-za-south-africa.js";import"../../../icon/gator/templates/flags/flag-zm-zambia.js";import"../../../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../../../icon/gator/templates/flame.js";import"../../../icon/gator/templates/flash-off.js";import"../../../icon/gator/templates/flash-on.js";import"../../../icon/gator/templates/folder.js";import"../../../icon/gator/templates/gauge.js";import"../../../icon/gator/templates/grid-four.js";import"../../../icon/gator/templates/grid-nine.js";import"../../../icon/gator/templates/hammer.js";import"../../../icon/gator/templates/hand-pointing.js";import"../../../icon/gator/templates/heart.js";import"../../../icon/gator/templates/home-door.js";import"../../../icon/gator/templates/home-finance-arrow.js";import"../../../icon/gator/templates/home-finance.js";import"../../../icon/gator/templates/home-search.js";import"../../../icon/gator/templates/house-simple.js";import"../../../icon/gator/templates/house.js";import"../../../icon/gator/templates/inbox.js";import"../../../icon/gator/templates/info.js";import"../../../icon/gator/templates/instagram-logo.js";import"../../../icon/gator/templates/interest-rate.js";import"../../../icon/gator/templates/invoice.js";import"../../../icon/gator/templates/kanban.js";import"../../../icon/gator/templates/label.js";import"../../../icon/gator/templates/laptop.js";import"../../../icon/gator/templates/layout.js";import"../../../icon/gator/templates/lightbulb-filament.js";import"../../../icon/gator/templates/lightbulb.js";import"../../../icon/gator/templates/link.js";import"../../../icon/gator/templates/linkedin-logo.js";import"../../../icon/gator/templates/list-star.js";import"../../../icon/gator/templates/list.js";import"../../../icon/gator/templates/loading-spinner-gif.js";import"../../../icon/gator/templates/loading.js";import"../../../icon/gator/templates/lock.js";import"../../../icon/gator/templates/magic-wand.js";import"../../../icon/gator/templates/mail-open.js";import"../../../icon/gator/templates/mail.js";import"../../../icon/gator/templates/mailbox.js";import"../../../icon/gator/templates/map.js";import"../../../icon/gator/templates/menu-hamburger.js";import"../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../icon/gator/templates/microsoft-word-logo.js";import"../../../icon/gator/templates/minus-circle.js";import"../../../icon/gator/templates/minus-square.js";import"../../../icon/gator/templates/minus.js";import"../../../icon/gator/templates/mobile-phone-2.js";import"../../../icon/gator/templates/monitor.js";import"../../../icon/gator/templates/move-doc.js";import"../../../icon/gator/templates/move.js";import"../../../icon/gator/templates/music.js";import"../../../icon/gator/templates/number-1.js";import"../../../icon/gator/templates/number-2.js";import"../../../icon/gator/templates/number-3.js";import"../../../icon/gator/templates/overflow-menu.js";import"../../../icon/gator/templates/paper-airplane.js";import"../../../icon/gator/templates/paperclip.js";import"../../../icon/gator/templates/payments/payment-amazon-pay.js";import"../../../icon/gator/templates/payments/payment-amex.js";import"../../../icon/gator/templates/payments/payment-apple-pay.js";import"../../../icon/gator/templates/payments/payment-discover.js";import"../../../icon/gator/templates/payments/payment-google-pay.js";import"../../../icon/gator/templates/payments/payment-mastercard.js";import"../../../icon/gator/templates/payments/payment-visa.js";import"../../../icon/gator/templates/pen.js";import"../../../icon/gator/templates/pencil-paper.js";import"../../../icon/gator/templates/pencil.js";import"../../../icon/gator/templates/people-multiple.js";import"../../../icon/gator/templates/people-share.js";import"../../../icon/gator/templates/percent.js";import"../../../icon/gator/templates/person-add.js";import"../../../icon/gator/templates/person-check.js";import"../../../icon/gator/templates/person-lock.js";import"../../../icon/gator/templates/person.js";import"../../../icon/gator/templates/phone-alert.js";import"../../../icon/gator/templates/phone-mobile.js";import"../../../icon/gator/templates/phone.js";import"../../../icon/gator/templates/picture.js";import"../../../icon/gator/templates/pin.js";import"../../../icon/gator/templates/pinterest-logo.js";import"../../../icon/gator/templates/plus-circle.js";import"../../../icon/gator/templates/plus.js";import"../../../icon/gator/templates/printer.js";import"../../../icon/gator/templates/question-chat-bubble.js";import"../../../icon/gator/templates/question-circle.js";import"../../../icon/gator/templates/question-mark.js";import"../../../icon/gator/templates/radio-selected.js";import"../../../icon/gator/templates/radio.js";import"../../../icon/gator/templates/receipt.js";import"../../../icon/gator/templates/restricted.js";import"../../../icon/gator/templates/sandals.js";import"../../../icon/gator/templates/save.js";import"../../../icon/gator/templates/screen.js";import"../../../icon/gator/templates/search.js";import"../../../icon/gator/templates/selection.js";import"../../../icon/gator/templates/settings.js";import"../../../icon/gator/templates/share-1.js";import"../../../icon/gator/templates/share-2.js";import"../../../icon/gator/templates/shield-lock.js";import"../../../icon/gator/templates/shield-warning.js";import"../../../icon/gator/templates/sidebar-simple.js";import"../../../icon/gator/templates/sidebar.js";import"../../../icon/gator/templates/smart-home.js";import"../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../icon/gator/templates/sort-reverse-variant.js";import"../../../icon/gator/templates/sort-variant.js";import"../../../icon/gator/templates/sparkle-filled.js";import"../../../icon/gator/templates/sparkle.js";import"../../../icon/gator/templates/speech-bubble.js";import"../../../icon/gator/templates/square-split-horizontal.js";import"../../../icon/gator/templates/square-split-vertical.js";import"../../../icon/gator/templates/square.js";import"../../../icon/gator/templates/stack.js";import"../../../icon/gator/templates/stamp.js";import"../../../icon/gator/templates/star-four-filled.js";import"../../../icon/gator/templates/star-four.js";import"../../../icon/gator/templates/star.js";import"../../../icon/gator/templates/stopwatch.js";import"../../../icon/gator/templates/sun.js";import"../../../icon/gator/templates/sync.js";import"../../../icon/gator/templates/tab-arrows.js";import"../../../icon/gator/templates/table.js";import"../../../icon/gator/templates/target.js";import"../../../icon/gator/templates/text-aa.js";import"../../../icon/gator/templates/thumbs-down.js";import"../../../icon/gator/templates/thumbs-up.js";import"../../../icon/gator/templates/tools.js";import"../../../icon/gator/templates/touch-id.js";import"../../../icon/gator/templates/trash.js";import"../../../icon/gator/templates/trend-up.js";import"../../../icon/gator/templates/twitter-logo.js";import"../../../icon/gator/templates/unlink.js";import"../../../icon/gator/templates/unlock.js";import"../../../icon/gator/templates/upload.js";import"../../../icon/gator/templates/video.js";import"../../../icon/gator/templates/waffle.js";import"../../../icon/gator/templates/warning-circle.js";import"../../../icon/gator/templates/warning-diamond.js";import"../../../icon/gator/templates/warning-octagon.js";import"../../../icon/gator/templates/warning.js";import"../../../icon/gator/templates/wet-sign.js";import"../../../icon/gator/templates/wifi-off.js";import"../../../icon/gator/templates/wifi.js";import"../../../icon/gator/templates/x-logo.js";import"../../../icon/gator/templates/yelp-logo.js";import"../../../icon/gator/templates/youtube-logo.js";import"../../../icon/gator/templates/zillow-logo.js";import"../../../list/gator/list/list.gator.js";import"../../../list/gator/list-item/list-item.gator.js";import"../../../icon-button/gator/icon-button.gator.js";import{customElement as b}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{createRef as u,ref as n}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import y from"../../../../packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js";import{autoUpdate as x,computePosition as g,flip as R}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{KEY_CONSTANTS as e}from"../../../../consts/key-constants.js";import{NgcInputBase as $}from"../../base/input-base.gator.js";import{formattedCountriesForDropdown as E,formattedStatesForDropdown as _}from"../../../../utils/places-utils.js";import{formattedNaicsCodes as D}from"../../../../utils/industry-utils.js";import{formattedPhoneCountryCodes as A}from"../../../../utils/phone-utils.js";import{ifDefined as C}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{msg as f}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as M}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{classMap as w}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js";import{unsafeCSS as O}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var B=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getPrototypeOf,L=Reflect.get,s=(t,i,o,p)=>{for(var m=p>1?void 0:p?I(i,o):i,d=t.length-1,h;d>=0;d--)(h=t[d])&&(m=(p?h(i,o,m):h(m))||m);return p&&m&&B(i,o,m),m},P=(t,i,o)=>L(k(t),o,i);let r=class extends ${constructor(){super(...arguments),this.options=[],this.autocomplete=!1,this.valueDisplayed=!1,this.maxAutocompleteResults=250,this._expanded=!1,this._searchValue="",this.listboxRef=u(),this.listRef=u(),this.inputRef=u(),this.listboxMessageRef=u()}render(){return a`
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as a,nothing as v}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/add-link.js";import"../../../icon/gator/templates/airplane.js";import"../../../icon/gator/templates/alarm.js";import"../../../icon/gator/templates/apartment.js";import"../../../icon/gator/templates/arrow-around.js";import"../../../icon/gator/templates/arrow-down.js";import"../../../icon/gator/templates/arrow-left.js";import"../../../icon/gator/templates/arrow-line-left.js";import"../../../icon/gator/templates/arrow-line-right.js";import"../../../icon/gator/templates/arrow-right.js";import"../../../icon/gator/templates/arrow-up.js";import"../../../icon/gator/templates/bank.js";import"../../../icon/gator/templates/bell-disabled.js";import"../../../icon/gator/templates/bell.js";import"../../../icon/gator/templates/binoculars.js";import"../../../icon/gator/templates/book.js";import"../../../icon/gator/templates/box.js";import"../../../icon/gator/templates/cake.js";import"../../../icon/gator/templates/calculator.js";import"../../../icon/gator/templates/calendar.js";import"../../../icon/gator/templates/camera.js";import"../../../icon/gator/templates/caret-up-down.js";import"../../../icon/gator/templates/case.js";import"../../../icon/gator/templates/chart-bar-horizontal.js";import"../../../icon/gator/templates/chart-bar.js";import"../../../icon/gator/templates/chart-donut.js";import"../../../icon/gator/templates/chart-line.js";import"../../../icon/gator/templates/chart-pie.js";import"../../../icon/gator/templates/chart-rise.js";import"../../../icon/gator/templates/chart-scatter.js";import"../../../icon/gator/templates/chat.js";import"../../../icon/gator/templates/check-circle.js";import"../../../icon/gator/templates/check.js";import"../../../icon/gator/templates/checkbox-selected.js";import"../../../icon/gator/templates/checkbox.js";import"../../../icon/gator/templates/checkerboard.js";import"../../../icon/gator/templates/chevron-down.js";import"../../../icon/gator/templates/chevron-left.js";import"../../../icon/gator/templates/chevron-right.js";import"../../../icon/gator/templates/chevron-up.js";import"../../../icon/gator/templates/circle-arrow-down.js";import"../../../icon/gator/templates/circle-arrow-left.js";import"../../../icon/gator/templates/circle-arrow-right.js";import"../../../icon/gator/templates/circle-arrow-up.js";import"../../../icon/gator/templates/circle-dashed.js";import"../../../icon/gator/templates/circle-filled.js";import"../../../icon/gator/templates/circle.js";import"../../../icon/gator/templates/city.js";import"../../../icon/gator/templates/clipboard.js";import"../../../icon/gator/templates/clock-clockwise.js";import"../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../icon/gator/templates/clock.js";import"../../../icon/gator/templates/collapse.js";import"../../../icon/gator/templates/cone.js";import"../../../icon/gator/templates/contact-info.js";import"../../../icon/gator/templates/copy.js";import"../../../icon/gator/templates/credit-card.js";import"../../../icon/gator/templates/crop.js";import"../../../icon/gator/templates/crosshairs.js";import"../../../icon/gator/templates/currency-dollar-simple.js";import"../../../icon/gator/templates/currency-eur.js";import"../../../icon/gator/templates/currency-gbp.js";import"../../../icon/gator/templates/currency-inr.js";import"../../../icon/gator/templates/currency-jpy.js";import"../../../icon/gator/templates/currency-krw.js";import"../../../icon/gator/templates/currency-kzt.js";import"../../../icon/gator/templates/currency-ngn.js";import"../../../icon/gator/templates/currency-rub.js";import"../../../icon/gator/templates/cursor-arrow.js";import"../../../icon/gator/templates/cursor-hand.js";import"../../../icon/gator/templates/cursor.js";import"../../../icon/gator/templates/dashboard.js";import"../../../icon/gator/templates/delete.js";import"../../../icon/gator/templates/dna.js";import"../../../icon/gator/templates/document-add.js";import"../../../icon/gator/templates/document-check.js";import"../../../icon/gator/templates/document-e-sign.js";import"../../../icon/gator/templates/document-image.js";import"../../../icon/gator/templates/document-pdf.js";import"../../../icon/gator/templates/document-sign.js";import"../../../icon/gator/templates/document-zip.js";import"../../../icon/gator/templates/document.js";import"../../../icon/gator/templates/dollar-bills.js";import"../../../icon/gator/templates/dollar-house.js";import"../../../icon/gator/templates/down-payment.js";import"../../../icon/gator/templates/download.js";import"../../../icon/gator/templates/drag-drop.js";import"../../../icon/gator/templates/earth.js";import"../../../icon/gator/templates/exclude-square.js";import"../../../icon/gator/templates/exit-circle.js";import"../../../icon/gator/templates/exit-left.js";import"../../../icon/gator/templates/exit.js";import"../../../icon/gator/templates/expand-arrows.js";import"../../../icon/gator/templates/expand.js";import"../../../icon/gator/templates/export.js";import"../../../icon/gator/templates/eye-closed.js";import"../../../icon/gator/templates/eye-crossed.js";import"../../../icon/gator/templates/eye.js";import"../../../icon/gator/templates/facebook-logo.js";import"../../../icon/gator/templates/file-code.js";import"../../../icon/gator/templates/files.js";import"../../../icon/gator/templates/filter-funnel.js";import"../../../icon/gator/templates/filters-2.js";import"../../../icon/gator/templates/filters.js";import"../../../icon/gator/templates/flags/flag-ad-andorra.js";import"../../../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../../../icon/gator/templates/flags/flag-af-afghanistan.js";import"../../../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../../../icon/gator/templates/flags/flag-ai-anguilla.js";import"../../../icon/gator/templates/flags/flag-al-albania.js";import"../../../icon/gator/templates/flags/flag-am-armenia.js";import"../../../icon/gator/templates/flags/flag-ao-angola.js";import"../../../icon/gator/templates/flags/flag-aq-antarctica.js";import"../../../icon/gator/templates/flags/flag-ar-argentina.js";import"../../../icon/gator/templates/flags/flag-as-american-smoa.js";import"../../../icon/gator/templates/flags/flag-at-austria.js";import"../../../icon/gator/templates/flags/flag-au-australia.js";import"../../../icon/gator/templates/flags/flag-aw-aruba.js";import"../../../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../../../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../../../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../../../icon/gator/templates/flags/flag-bb-barbados.js";import"../../../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../../../icon/gator/templates/flags/flag-be-belgium.js";import"../../../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../../../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../../../icon/gator/templates/flags/flag-bh-bahrain.js";import"../../../icon/gator/templates/flags/flag-bi-burundi.js";import"../../../icon/gator/templates/flags/flag-bj-benin.js";import"../../../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../../../icon/gator/templates/flags/flag-bm-bermuda.js";import"../../../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../../../icon/gator/templates/flags/flag-bo-bolivia.js";import"../../../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../../../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../../../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../../../icon/gator/templates/flags/flag-br-brazil.js";import"../../../icon/gator/templates/flags/flag-bs-bahamas.js";import"../../../icon/gator/templates/flags/flag-bt-bhutan.js";import"../../../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../../../icon/gator/templates/flags/flag-bw-botswana.js";import"../../../icon/gator/templates/flags/flag-by-belarus.js";import"../../../icon/gator/templates/flags/flag-bz-belize.js";import"../../../icon/gator/templates/flags/flag-ca-canada.js";import"../../../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../../../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../../../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-ch-switzerland.js";import"../../../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../../../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../../../icon/gator/templates/flags/flag-cl-chile.js";import"../../../icon/gator/templates/flags/flag-cm-cameroon.js";import"../../../icon/gator/templates/flags/flag-cn-china.js";import"../../../icon/gator/templates/flags/flag-co-colombia.js";import"../../../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../../../icon/gator/templates/flags/flag-cu-cuba.js";import"../../../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../../../icon/gator/templates/flags/flag-cw-curaçao.js";import"../../../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../../../icon/gator/templates/flags/flag-cy-cyprus.js";import"../../../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../../../icon/gator/templates/flags/flag-de-germany.js";import"../../../icon/gator/templates/flags/flag-dj-djibouti.js";import"../../../icon/gator/templates/flags/flag-dk-denmark.js";import"../../../icon/gator/templates/flags/flag-dm-dominica.js";import"../../../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../../../icon/gator/templates/flags/flag-dz-algeria.js";import"../../../icon/gator/templates/flags/flag-ec-ecuador.js";import"../../../icon/gator/templates/flags/flag-ee-estonia.js";import"../../../icon/gator/templates/flags/flag-eg-egypt.js";import"../../../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../../../icon/gator/templates/flags/flag-er-eritrea.js";import"../../../icon/gator/templates/flags/flag-es-sain.js";import"../../../icon/gator/templates/flags/flag-et-ethiopia.js";import"../../../icon/gator/templates/flags/flag-fi-finland.js";import"../../../icon/gator/templates/flags/flag-fj-fiji.js";import"../../../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../../../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../../../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../../../icon/gator/templates/flags/flag-fr-france.js";import"../../../icon/gator/templates/flags/flag-ga-gabon.js";import"../../../icon/gator/templates/flags/flag-gb-eng-england.js";import"../../../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../../../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../../../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../../../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../../../icon/gator/templates/flags/flag-gd-grenada.js";import"../../../icon/gator/templates/flags/flag-ge-georgia.js";import"../../../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../../../icon/gator/templates/flags/flag-gg-guernsey.js";import"../../../icon/gator/templates/flags/flag-gh-ghana.js";import"../../../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../../../icon/gator/templates/flags/flag-gl-greenland.js";import"../../../icon/gator/templates/flags/flag-gm-gambia.js";import"../../../icon/gator/templates/flags/flag-gn-guinea.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../../../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../../../icon/gator/templates/flags/flag-gr-greece.js";import"../../../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../../../icon/gator/templates/flags/flag-gt-guatemala.js";import"../../../icon/gator/templates/flags/flag-gu-guam.js";import"../../../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../../../icon/gator/templates/flags/flag-gy-guyana.js";import"../../../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../../../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../../../icon/gator/templates/flags/flag-hn-honduras.js";import"../../../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../../../icon/gator/templates/flags/flag-ht-haiti.js";import"../../../icon/gator/templates/flags/flag-hu-hungary.js";import"../../../icon/gator/templates/flags/flag-id-indonesia.js";import"../../../icon/gator/templates/flags/flag-ie-ireland.js";import"../../../icon/gator/templates/flags/flag-il-isreal.js";import"../../../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../../../icon/gator/templates/flags/flag-in-india.js";import"../../../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../../../icon/gator/templates/flags/flag-iq-iraq.js";import"../../../icon/gator/templates/flags/flag-ir-iran.js";import"../../../icon/gator/templates/flags/flag-is-iceland.js";import"../../../icon/gator/templates/flags/flag-it-italy.js";import"../../../icon/gator/templates/flags/flag-je-jersey.js";import"../../../icon/gator/templates/flags/flag-jm-jamaica.js";import"../../../icon/gator/templates/flags/flag-jo-jordan.js";import"../../../icon/gator/templates/flags/flag-jp-japan.js";import"../../../icon/gator/templates/flags/flag-ke-kenia.js";import"../../../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../../../icon/gator/templates/flags/flag-kh-cambodia.js";import"../../../icon/gator/templates/flags/flag-ki--kiribati.js";import"../../../icon/gator/templates/flags/flag-km-comoros.js";import"../../../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../../../icon/gator/templates/flags/flag-kp-korea-north.js";import"../../../icon/gator/templates/flags/flag-kr-korea-south.js";import"../../../icon/gator/templates/flags/flag-kw-kuwait.js";import"../../../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../../../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../../../icon/gator/templates/flags/flag-la-laos.js";import"../../../icon/gator/templates/flags/flag-lb-lebanon.js";import"../../../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../../../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../../../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../../../icon/gator/templates/flags/flag-lr-liberia.js";import"../../../icon/gator/templates/flags/flag-ls-lesotho.js";import"../../../icon/gator/templates/flags/flag-lt-lithuania.js";import"../../../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../../../icon/gator/templates/flags/flag-lv-latvia.js";import"../../../icon/gator/templates/flags/flag-ly-libya.js";import"../../../icon/gator/templates/flags/flag-ma-morocco.js";import"../../../icon/gator/templates/flags/flag-mc-monaco.js";import"../../../icon/gator/templates/flags/flag-md-moldova.js";import"../../../icon/gator/templates/flags/flag-me-montenegro.js";import"../../../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../../../icon/gator/templates/flags/flag-mg-madagascar.js";import"../../../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../../../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../../../icon/gator/templates/flags/flag-ml-mali.js";import"../../../icon/gator/templates/flags/flag-mm-myanmar.js";import"../../../icon/gator/templates/flags/flag-mn-mongolia.js";import"../../../icon/gator/templates/flags/flag-mo-macao.js";import"../../../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../../../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../../../icon/gator/templates/flags/flag-mq-martinique.js";import"../../../icon/gator/templates/flags/flag-mr-mauritania.js";import"../../../icon/gator/templates/flags/flag-ms-montserrat.js";import"../../../icon/gator/templates/flags/flag-mt-malta.js";import"../../../icon/gator/templates/flags/flag-mu-mauritius.js";import"../../../icon/gator/templates/flags/flag-mv-maldives.js";import"../../../icon/gator/templates/flags/flag-mw-malawi.js";import"../../../icon/gator/templates/flags/flag-mx-mexico.js";import"../../../icon/gator/templates/flags/flag-my-malaysia.js";import"../../../icon/gator/templates/flags/flag-mz-mozambique.js";import"../../../icon/gator/templates/flags/flag-na-namibia.js";import"../../../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../../../icon/gator/templates/flags/flag-ne-niger.js";import"../../../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../../../icon/gator/templates/flags/flag-ng-nigeria.js";import"../../../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../../../icon/gator/templates/flags/flag-nl-netherlands.js";import"../../../icon/gator/templates/flags/flag-no-norway.js";import"../../../icon/gator/templates/flags/flag-np-nepal.js";import"../../../icon/gator/templates/flags/flag-nr-nauru.js";import"../../../icon/gator/templates/flags/flag-nu-niue.js";import"../../../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../../../icon/gator/templates/flags/flag-om-oman.js";import"../../../icon/gator/templates/flags/flag-pa-panama.js";import"../../../icon/gator/templates/flags/flag-pe-peru.js";import"../../../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../../../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../../../icon/gator/templates/flags/flag-ph-philippines.js";import"../../../icon/gator/templates/flags/flag-pk-pakistan.js";import"../../../icon/gator/templates/flags/flag-pl-poland.js";import"../../../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../../../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../../../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../../../icon/gator/templates/flags/flag-pt-portugal.js";import"../../../icon/gator/templates/flags/flag-pw-palau.js";import"../../../icon/gator/templates/flags/flag-py-paraguay.js";import"../../../icon/gator/templates/flags/flag-qa-qatar.js";import"../../../icon/gator/templates/flags/flag-re-reunion.js";import"../../../icon/gator/templates/flags/flag-ro-romania.js";import"../../../icon/gator/templates/flags/flag-rs-srbia.js";import"../../../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../../../icon/gator/templates/flags/flag-rw-rwanda.js";import"../../../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../../../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../../../icon/gator/templates/flags/flag-sc-sychelles.js";import"../../../icon/gator/templates/flags/flag-sd-sdan.js";import"../../../icon/gator/templates/flags/flag-se-seden.js";import"../../../icon/gator/templates/flags/flag-sg-sngapore.js";import"../../../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../../../icon/gator/templates/flags/flag-si-sovenia.js";import"../../../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../../../icon/gator/templates/flags/flag-sk-sovakia.js";import"../../../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../../../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../../../icon/gator/templates/flags/flag-sn-snegal.js";import"../../../icon/gator/templates/flags/flag-so-smalia.js";import"../../../icon/gator/templates/flags/flag-sr-sriname.js";import"../../../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../../../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../../../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../../../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../../../icon/gator/templates/flags/flag-sy-sria.js";import"../../../icon/gator/templates/flags/flag-sz-saziland.js";import"../../../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../../../icon/gator/templates/flags/flag-td-chad.js";import"../../../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../../../icon/gator/templates/flags/flag-tg-togo.js";import"../../../icon/gator/templates/flags/flag-th-thailand.js";import"../../../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../../../icon/gator/templates/flags/flag-tk-tokelau.js";import"../../../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../../../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../../../icon/gator/templates/flags/flag-tn-tunisia.js";import"../../../icon/gator/templates/flags/flag-to-tonga.js";import"../../../icon/gator/templates/flags/flag-tr-turkey.js";import"../../../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../../../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../../../icon/gator/templates/flags/flag-tw-taiwan.js";import"../../../icon/gator/templates/flags/flag-tz-tanzania.js";import"../../../icon/gator/templates/flags/flag-ua-ukraine.js";import"../../../icon/gator/templates/flags/flag-ug-uganda.js";import"../../../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../../../icon/gator/templates/flags/flag-us-united-states.js";import"../../../icon/gator/templates/flags/flag-uy-uruguay.js";import"../../../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../../../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../../../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../../../icon/gator/templates/flags/flag-ve-venezuela.js";import"../../../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../../../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../../../icon/gator/templates/flags/flag-vn-vietnam.js";import"../../../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../../../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../../../icon/gator/templates/flags/flag-ws-smoa.js";import"../../../icon/gator/templates/flags/flag-ye-yemen.js";import"../../../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../../../icon/gator/templates/flags/flag-za-south-africa.js";import"../../../icon/gator/templates/flags/flag-zm-zambia.js";import"../../../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../../../icon/gator/templates/flame.js";import"../../../icon/gator/templates/flash-off.js";import"../../../icon/gator/templates/flash-on.js";import"../../../icon/gator/templates/folder.js";import"../../../icon/gator/templates/gauge.js";import"../../../icon/gator/templates/grid-four.js";import"../../../icon/gator/templates/grid-nine.js";import"../../../icon/gator/templates/hammer.js";import"../../../icon/gator/templates/hand-pointing.js";import"../../../icon/gator/templates/heart.js";import"../../../icon/gator/templates/home-door.js";import"../../../icon/gator/templates/home-finance-arrow.js";import"../../../icon/gator/templates/home-finance.js";import"../../../icon/gator/templates/home-search.js";import"../../../icon/gator/templates/house-simple.js";import"../../../icon/gator/templates/house.js";import"../../../icon/gator/templates/inbox.js";import"../../../icon/gator/templates/info.js";import"../../../icon/gator/templates/instagram-logo.js";import"../../../icon/gator/templates/interest-rate.js";import"../../../icon/gator/templates/invoice.js";import"../../../icon/gator/templates/kanban.js";import"../../../icon/gator/templates/label.js";import"../../../icon/gator/templates/laptop.js";import"../../../icon/gator/templates/layout.js";import"../../../icon/gator/templates/lightbulb-filament.js";import"../../../icon/gator/templates/lightbulb.js";import"../../../icon/gator/templates/link.js";import"../../../icon/gator/templates/linkedin-logo.js";import"../../../icon/gator/templates/list-star.js";import"../../../icon/gator/templates/list.js";import"../../../icon/gator/templates/loading-spinner-gif.js";import"../../../icon/gator/templates/loading.js";import"../../../icon/gator/templates/lock.js";import"../../../icon/gator/templates/magic-wand.js";import"../../../icon/gator/templates/mail-open.js";import"../../../icon/gator/templates/mail.js";import"../../../icon/gator/templates/mailbox.js";import"../../../icon/gator/templates/map.js";import"../../../icon/gator/templates/menu-hamburger.js";import"../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../icon/gator/templates/microsoft-word-logo.js";import"../../../icon/gator/templates/minus-circle.js";import"../../../icon/gator/templates/minus-square.js";import"../../../icon/gator/templates/minus.js";import"../../../icon/gator/templates/mobile-phone-2.js";import"../../../icon/gator/templates/monitor.js";import"../../../icon/gator/templates/move-doc.js";import"../../../icon/gator/templates/move.js";import"../../../icon/gator/templates/music.js";import"../../../icon/gator/templates/number-1.js";import"../../../icon/gator/templates/number-2.js";import"../../../icon/gator/templates/number-3.js";import"../../../icon/gator/templates/overflow-menu.js";import"../../../icon/gator/templates/paper-airplane.js";import"../../../icon/gator/templates/paperclip.js";import"../../../icon/gator/templates/payments/payment-amazon-pay.js";import"../../../icon/gator/templates/payments/payment-amex.js";import"../../../icon/gator/templates/payments/payment-apple-pay.js";import"../../../icon/gator/templates/payments/payment-discover.js";import"../../../icon/gator/templates/payments/payment-google-pay.js";import"../../../icon/gator/templates/payments/payment-mastercard.js";import"../../../icon/gator/templates/payments/payment-visa.js";import"../../../icon/gator/templates/pen.js";import"../../../icon/gator/templates/pencil-paper.js";import"../../../icon/gator/templates/pencil.js";import"../../../icon/gator/templates/people-multiple.js";import"../../../icon/gator/templates/people-share.js";import"../../../icon/gator/templates/percent.js";import"../../../icon/gator/templates/person-add.js";import"../../../icon/gator/templates/person-check.js";import"../../../icon/gator/templates/person-lock.js";import"../../../icon/gator/templates/person.js";import"../../../icon/gator/templates/phone-alert.js";import"../../../icon/gator/templates/phone-mobile.js";import"../../../icon/gator/templates/phone.js";import"../../../icon/gator/templates/picture.js";import"../../../icon/gator/templates/pin.js";import"../../../icon/gator/templates/pinterest-logo.js";import"../../../icon/gator/templates/plus-circle.js";import"../../../icon/gator/templates/plus.js";import"../../../icon/gator/templates/printer.js";import"../../../icon/gator/templates/question-chat-bubble.js";import"../../../icon/gator/templates/question-circle.js";import"../../../icon/gator/templates/question-mark.js";import"../../../icon/gator/templates/radio-selected.js";import"../../../icon/gator/templates/radio.js";import"../../../icon/gator/templates/receipt.js";import"../../../icon/gator/templates/restricted.js";import"../../../icon/gator/templates/sandals.js";import"../../../icon/gator/templates/save.js";import"../../../icon/gator/templates/screen.js";import"../../../icon/gator/templates/search.js";import"../../../icon/gator/templates/selection.js";import"../../../icon/gator/templates/settings.js";import"../../../icon/gator/templates/share-1.js";import"../../../icon/gator/templates/share-2.js";import"../../../icon/gator/templates/shield-lock.js";import"../../../icon/gator/templates/shield-warning.js";import"../../../icon/gator/templates/sidebar-simple.js";import"../../../icon/gator/templates/sidebar.js";import"../../../icon/gator/templates/smart-home.js";import"../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../icon/gator/templates/sort-reverse-variant.js";import"../../../icon/gator/templates/sort-variant.js";import"../../../icon/gator/templates/sparkle-filled.js";import"../../../icon/gator/templates/sparkle.js";import"../../../icon/gator/templates/speech-bubble.js";import"../../../icon/gator/templates/square-split-horizontal.js";import"../../../icon/gator/templates/square-split-vertical.js";import"../../../icon/gator/templates/square.js";import"../../../icon/gator/templates/stack.js";import"../../../icon/gator/templates/stamp.js";import"../../../icon/gator/templates/star-four-filled.js";import"../../../icon/gator/templates/star-four.js";import"../../../icon/gator/templates/star.js";import"../../../icon/gator/templates/stopwatch.js";import"../../../icon/gator/templates/sun.js";import"../../../icon/gator/templates/sync.js";import"../../../icon/gator/templates/tab-arrows.js";import"../../../icon/gator/templates/table.js";import"../../../icon/gator/templates/target.js";import"../../../icon/gator/templates/text-aa.js";import"../../../icon/gator/templates/thumbs-down.js";import"../../../icon/gator/templates/thumbs-up.js";import"../../../icon/gator/templates/tools.js";import"../../../icon/gator/templates/touch-id.js";import"../../../icon/gator/templates/trash.js";import"../../../icon/gator/templates/trend-up.js";import"../../../icon/gator/templates/twitter-logo.js";import"../../../icon/gator/templates/unlink.js";import"../../../icon/gator/templates/unlock.js";import"../../../icon/gator/templates/upload.js";import"../../../icon/gator/templates/video.js";import"../../../icon/gator/templates/waffle.js";import"../../../icon/gator/templates/warning-circle.js";import"../../../icon/gator/templates/warning-diamond.js";import"../../../icon/gator/templates/warning-octagon.js";import"../../../icon/gator/templates/warning.js";import"../../../icon/gator/templates/wet-sign.js";import"../../../icon/gator/templates/wifi-off.js";import"../../../icon/gator/templates/wifi.js";import"../../../icon/gator/templates/x-logo.js";import"../../../icon/gator/templates/yelp-logo.js";import"../../../icon/gator/templates/youtube-logo.js";import"../../../icon/gator/templates/zillow-logo.js";import"../../../list/gator/list/list.gator.js";import"../../../list/gator/list-item/list-item.gator.js";import"../../../icon-button/gator/icon-button.gator.js";import{customElement as b}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{createRef as u,ref as n}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import y from"../../../../packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js";import{autoUpdate as x,computePosition as g,flip as R}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{KEY_CONSTANTS as e}from"../../../../consts/key-constants.js";import{NgcInputBase as $}from"../../base/input-base.gator.js";import{formattedCountriesForDropdown as E,formattedStatesForDropdown as _}from"../../../../utils/places-utils.js";import{formattedNaicsCodes as A}from"../../../../utils/industry-utils.js";import{formattedPhoneCountryCodes as D}from"../../../../utils/phone-utils.js";import{ifDefined as C}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{msg as f}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as M}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{classMap as w}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js";import{unsafeCSS as O}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var B=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getPrototypeOf,L=Reflect.get,s=(t,i,o,p)=>{for(var m=p>1?void 0:p?I(i,o):i,d=t.length-1,h;d>=0;d--)(h=t[d])&&(m=(p?h(i,o,m):h(m))||m);return p&&m&&B(i,o,m),m},T=(t,i,o)=>L(k(t),o,i);let r=class extends ${constructor(){super(...arguments),this.options=[],this.autocomplete=!1,this.valueDisplayed=!1,this.maxAutocompleteResults=250,this._expanded=!1,this._searchValue="",this.listboxRef=u(),this.listRef=u(),this.inputRef=u(),this.listboxMessageRef=u()}render(){return a`
2
2
  <div class="gator-form-element">
3
3
  <slot name="label">
4
4
  ${this.label?this.labelMarkup:null}
@@ -50,11 +50,11 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
50
50
 
51
51
  ${this.listboxMarkup}
52
52
  </div>
53
- `}get controlClasses(){return{...super.controlClasses,"gator-cursor-pointer":!this.disabled&&!this.readonly}}_topLevelFocusOut(t){const i=t.relatedTarget;(!i||!this.contains(i))&&(this._expanded=!1)}get tabIndexForControl(){return this.disabled||this.autocomplete?"-1":"0"}firstUpdated(){this._expanded&&this.toggleListbox(e.ENTER,!0)}updated(t){var i;this.setComboboxAriaAttributes(),this._expanded&&this.setAriaActiveDescendant(),t.has("ariaLabelledByElements")&&this.ariaLabelledByElements&&(this.controlRef.value.ariaLabelledByElements=this.ariaLabelledByElements,this.listRef.value.ariaLabelledByElements=this.ariaLabelledByElements),t.has("label")&&this.label&&(this.listRef.value.ariaLabelledByElements=[(i=this.shadowRoot)==null?void 0:i.getElementById(this.labelId)])}setComboboxAriaAttributes(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value,i=this.autocomplete?this.controlRef.value:this.inputRef.value,o={role:"combobox","aria-autocomplete":"list","aria-expanded":`${this._expanded}`,"aria-labelledby":this.ariaLabelledbyValue,"aria-describedby":this.ariaDescribedby,"aria-required":`${this.required}`,"aria-readonly":`${this.readonly}`};Object.entries(o).forEach(([p,m])=>{t==null||t.setAttribute(p,m),i==null||i.removeAttribute(p)}),this.ariaLabelledByElements&&(t.ariaLabelledByElements=this.ariaLabelledByElements,i.ariaLabelledByElements=void 0),t&&(t.ariaControlsElements=[this.listRef.value]),i&&(i.ariaControlsElements=void 0)}setAriaActiveDescendant(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value;t&&(t.ariaActiveDescendantElement=this._activeDescendant)}clearAriaActiveDescendant(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value;t&&(t.ariaActiveDescendantElement=void 0)}get fauxInputMarkup(){return a`
53
+ `}get controlClasses(){return{...super.controlClasses,"gator-cursor-pointer":!this.disabled&&!this.readonly}}_topLevelFocusOut(t){const i=t.relatedTarget;(!i||!this.contains(i))&&(this._expanded=!1)}get tabIndexForControl(){return this.disabled||this.autocomplete?"-1":"0"}firstUpdated(){this._expanded&&this.toggleListbox(e.ENTER,!0)}updated(t){this.setComboboxAriaAttributes(),this._expanded&&this.setAriaActiveDescendant(),t.has("ariaLabelledByElements")&&this.ariaLabelledByElements&&(this.controlRef.value.ariaLabelledByElements=this.ariaLabelledByElements,this.listRef.value.ariaLabelledByElements=this.ariaLabelledByElements),t.has("label")&&this.label&&(this.listRef.value.ariaLabelledByElements=[this.shadowRoot?.getElementById(this.labelId)])}setComboboxAriaAttributes(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value,i=this.autocomplete?this.controlRef.value:this.inputRef.value,o={role:"combobox","aria-autocomplete":"list","aria-expanded":`${this._expanded}`,"aria-labelledby":this.ariaLabelledbyValue,"aria-describedby":this.ariaDescribedby,"aria-required":`${this.required}`,"aria-readonly":`${this.readonly}`};Object.entries(o).forEach(([p,m])=>{t?.setAttribute(p,m),i?.removeAttribute(p)}),this.ariaLabelledByElements&&(t.ariaLabelledByElements=this.ariaLabelledByElements,i.ariaLabelledByElements=void 0),t&&(t.ariaControlsElements=[this.listRef.value]),i&&(i.ariaControlsElements=void 0)}setAriaActiveDescendant(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value;t&&(t.ariaActiveDescendantElement=this._activeDescendant)}clearAriaActiveDescendant(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value;t&&(t.ariaActiveDescendantElement=void 0)}get fauxInputMarkup(){return a`
54
54
  <div class="gator-faux-input ${this.showPlaceholder?"gator-faux-input-placeholder":null}">
55
55
  ${this.displayedValue||this.placeholder}
56
56
  </div>
57
- `}get displayedValue(){var t;return this.value?this.valueDisplayed?this.value:((t=this.displayedOptions.find(i=>i.value===this.value))==null?void 0:t.label)??this.value:""}get showPlaceholder(){return this.placeholder&&!this.value}get listboxMarkup(){var t;return a`
57
+ `}get displayedValue(){return this.value?this.valueDisplayed?this.value:this.displayedOptions.find(t=>t.value===this.value)?.label??this.value:""}get showPlaceholder(){return this.placeholder&&!this.value}get listboxMarkup(){return a`
58
58
  <div
59
59
  ${n(this.listboxRef)}
60
60
  class="gator-dropdown-listbox ${this._expanded?"gator-dropdown-listbox_expanded":""}"
@@ -68,15 +68,15 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
68
68
  .title="${this.label||this.placeholder} List"
69
69
  @selected="${this.handleSelected}"
70
70
  >
71
- ${((t=this.displayedOptions)==null?void 0:t.map(i=>a`
71
+ ${this.displayedOptions?.map(t=>a`
72
72
  <ngc-list-item
73
- text="${i.label}"
74
- value="${i.value}"
75
- ?selected="${i.value===this.value}"
76
- id="${this.id}-${i.value}"
73
+ text="${t.label}"
74
+ value="${t.value}"
75
+ ?selected="${t.value===this.value}"
76
+ id="${this.id}-${t.value}"
77
77
  faux-focus
78
78
  ></ngc-list-item>
79
- `))??v}
79
+ `)??v}
80
80
  </ngc-list>
81
81
  </div>
82
82
  `}get listboxMessageMarkup(){if(!this.autocomplete)return null;let t;return this.displayedOptions.length===0&&(t=this.noResultsMessage),this.resultsExceedMax&&(t=this.resultsExceedMaxMessage),this.setListboxMessageAriaDescribedByElements(),t?a`
@@ -88,7 +88,7 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
88
88
  >
89
89
  ${t}
90
90
  </div>
91
- `:null}setListboxMessageAriaDescribedByElements(){requestAnimationFrame(()=>{const t=this.listboxMessageRef.value;if(!this.inputRef.value)return;const i=this.inputRef.value.ariaDescribedByElements||[],o=this.listRef.value.ariaDescribedByElements||[];if(t){i.includes(t)||(this.inputRef.value.ariaDescribedByElements=[t,...i]),o.includes(t)||(this.listRef.value.ariaDescribedByElements=[t,...o]);return}this.inputRef.value.ariaDescribedByElements=i.filter(p=>p.id!==`listbox-message-${this.id}`),this.listRef.value.ariaDescribedByElements=o.filter(p=>p.id!==`listbox-message-${this.id}`)})}get resultsExceedMaxMessage(){return f(a`Showing ${this.maxAutocompleteResults} results. Refine your search to see more.`)}get noResultsMessage(){return f("No results found. Refine your search.")}get displayedOptions(){return this.autocomplete?this.limitedOptions:this.filteredOptions}get filteredOptions(){let t=this.options??[];return this.dataType==="country"?t=E():this.dataType==="state"&&this.countryCode?t=_(this.countryCode):this.dataType==="naics"?t=D():this.dataType==="phoneCodes"&&(t=A()),this._searchValue?[...t.filter(o=>o.label.toLowerCase().includes(this._searchValue.toLowerCase()))]:t}get limitedOptions(){return this.filteredOptions.slice(0,this.maxAutocompleteResults)}get resultsExceedMax(){return!this.autocomplete||!this.maxAutocompleteResults?!1:this.filteredOptions.length>this.maxAutocompleteResults}handleSelected(t){t.stopImmediatePropagation(),this.clearAriaActiveDescendant(),this.emitChangeEvent(t.detail.value),this._activeDescendant=void 0,this._expanded=!1}handleComboboxKeydown(t){!this._expanded&&(t.key===e.ENTER||t.key===e.SPACE||t.key===e.DOWN)?this.toggleListbox(t.key,!1):this._expanded&&this.listRef.value&&((t.key===e.ENTER||t.key===e.SPACE)&&this.listRef.value.selectFalseFocusedItem(),t.key===e.DOWN&&(t.preventDefault(),this._activeDescendant=this.listRef.value.falseFocusNextItem(),this.setAriaActiveDescendant()),t.key===e.UP&&(t.preventDefault(),this._activeDescendant=this.listRef.value.falseFocusPreviousItem(),this.setAriaActiveDescendant())),(t.key===e.ESCAPE||t.key===e.TAB)&&(this._expanded=!1)}toggleListbox(t,i){this.disabled||this.readonly||(i||(this._expanded=!this._expanded),this.assignPosition(),this.listRef.value&&(t==e.DOWN||!this.value)?this._activeDescendant=this.listRef.value.falseFocusFirstItem():this.value&&this.listRef.value&&(this._activeDescendant=this.listRef.value.setFalseFocusToValue(this.value)),this._expanded&&this.setAriaActiveDescendant(),this._expanded||(this._activeDescendant=void 0,this.clearAriaActiveDescendant()))}get endIconMarkup(){return a`<ngc-icon class="gator-dropdown-chevron" .name="${this.endIcon||"chevron-down"}"></ngc-icon>`}get clearIconButtonMarkup(){var t;return!this.autocomplete||!this.value&&!((t=this.inputRef.value)!=null&&t.value)?null:a`
91
+ `:null}setListboxMessageAriaDescribedByElements(){requestAnimationFrame(()=>{const t=this.listboxMessageRef.value;if(!this.inputRef.value)return;const i=this.inputRef.value.ariaDescribedByElements||[],o=this.listRef.value.ariaDescribedByElements||[];if(t){i.includes(t)||(this.inputRef.value.ariaDescribedByElements=[t,...i]),o.includes(t)||(this.listRef.value.ariaDescribedByElements=[t,...o]);return}this.inputRef.value.ariaDescribedByElements=i.filter(p=>p.id!==`listbox-message-${this.id}`),this.listRef.value.ariaDescribedByElements=o.filter(p=>p.id!==`listbox-message-${this.id}`)})}get resultsExceedMaxMessage(){return f(a`Showing ${this.maxAutocompleteResults} results. Refine your search to see more.`)}get noResultsMessage(){return f("No results found. Refine your search.")}get displayedOptions(){return this.autocomplete?this.limitedOptions:this.filteredOptions}get filteredOptions(){let t=this.options??[];return this.dataType==="country"?t=E():this.dataType==="state"&&this.countryCode?t=_(this.countryCode):this.dataType==="naics"?t=A():this.dataType==="phoneCodes"&&(t=D()),this._searchValue?[...t.filter(o=>o.label.toLowerCase().includes(this._searchValue.toLowerCase()))]:t}get limitedOptions(){return this.filteredOptions.slice(0,this.maxAutocompleteResults)}get resultsExceedMax(){return!this.autocomplete||!this.maxAutocompleteResults?!1:this.filteredOptions.length>this.maxAutocompleteResults}handleSelected(t){t.stopImmediatePropagation(),this.clearAriaActiveDescendant(),this.emitChangeEvent(t.detail.value),this._activeDescendant=void 0,this._expanded=!1}handleComboboxKeydown(t){!this._expanded&&(t.key===e.ENTER||t.key===e.SPACE||t.key===e.DOWN)?this.toggleListbox(t.key,!1):this._expanded&&this.listRef.value&&((t.key===e.ENTER||t.key===e.SPACE)&&this.listRef.value.selectFalseFocusedItem(),t.key===e.DOWN&&(t.preventDefault(),this._activeDescendant=this.listRef.value.falseFocusNextItem(),this.setAriaActiveDescendant()),t.key===e.UP&&(t.preventDefault(),this._activeDescendant=this.listRef.value.falseFocusPreviousItem(),this.setAriaActiveDescendant())),(t.key===e.ESCAPE||t.key===e.TAB)&&(this._expanded=!1)}toggleListbox(t,i){this.disabled||this.readonly||(i||(this._expanded=!this._expanded),this.assignPosition(),this.listRef.value&&(t==e.DOWN||!this.value)?this._activeDescendant=this.listRef.value.falseFocusFirstItem():this.value&&this.listRef.value&&(this._activeDescendant=this.listRef.value.setFalseFocusToValue(this.value)),this._expanded&&this.setAriaActiveDescendant(),this._expanded||(this._activeDescendant=void 0,this.clearAriaActiveDescendant()))}get endIconMarkup(){return a`<ngc-icon class="gator-dropdown-chevron" .name="${this.endIcon||"chevron-down"}"></ngc-icon>`}get clearIconButtonMarkup(){return!this.autocomplete||!this.value&&!this.inputRef.value?.value?null:a`
92
92
  <ngc-icon-button
93
93
  data-testid="${this.dataTestid}-clear-button"
94
94
  icon-name="exit"
@@ -96,4 +96,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
96
96
  size="medium"
97
97
  @click="${this.clearValue}"
98
98
  ></ngc-icon-button>
99
- `}clearValue(){var t;this.inputRef.value&&(this.inputRef.value.value=""),this._searchValue="",(t=this.inputRef.value)==null||t.focus(),this.emitChangeEvent("")}assignPosition(){const t=this.controlRef.value;!this.listboxRef||!this.listboxRef.value||!t||(this._cleanup=x(t,this.listboxRef.value,async()=>{if(!this.listboxRef||!this.listboxRef.value||!t)return;const{x:i,y:o,placement:p}=await g(t,this.listboxRef.value,{placement:"bottom-start",middleware:[R()]});let m=p==="bottom-start"?4:-4;Object.assign(this.listboxRef.value.style,{left:`${i}px`,top:`${o+m}px`,width:`${this.listWidth??t.clientWidth}px`})}))}handleInput(t){t.preventDefault(),t.stopPropagation();let i=t.target;i.value.length===0&&this.emitChangeEvent(""),this._searchValue=i.value,this._expanded=!0,this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:i.value}}))}handleInputKeydown(t){if((t.key===e.DOWN||t.key===e.UP)&&t.preventDefault(),t.key===e.SPACE){t.stopPropagation();return}}emitChangeEvent(t){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:t}}))}};r.styles=[...P(r,r,"styles"),O(y)];s([l({type:Array})],r.prototype,"options",2);s([l({type:Boolean})],r.prototype,"autocomplete",2);s([l({type:String,attribute:"data-type"})],r.prototype,"dataType",2);s([l({type:String,attribute:"country-code"})],r.prototype,"countryCode",2);s([l({type:String,attribute:"list-width"})],r.prototype,"listWidth",2);s([l({type:Boolean,attribute:"value-displayed"})],r.prototype,"valueDisplayed",2);s([l({type:Number,attribute:"max-autocomplete-results"})],r.prototype,"maxAutocompleteResults",2);s([c()],r.prototype,"_activeDescendant",2);s([c()],r.prototype,"_expanded",2);s([c()],r.prototype,"_searchValue",2);r=s([b("ngc-input-dropdown"),M()],r);export{r as NgcInputDropdown};
99
+ `}clearValue(){this.inputRef.value&&(this.inputRef.value.value=""),this._searchValue="",this.inputRef.value?.focus(),this.emitChangeEvent("")}assignPosition(){const t=this.controlRef.value;!this.listboxRef||!this.listboxRef.value||!t||(this._cleanup=x(t,this.listboxRef.value,async()=>{if(!this.listboxRef||!this.listboxRef.value||!t)return;const{x:i,y:o,placement:p}=await g(t,this.listboxRef.value,{placement:"bottom-start",middleware:[R()]});let m=p==="bottom-start"?4:-4;Object.assign(this.listboxRef.value.style,{left:`${i}px`,top:`${o+m}px`,width:`${this.listWidth??t.clientWidth}px`})}))}handleInput(t){t.preventDefault(),t.stopPropagation();let i=t.target;i.value.length===0&&this.emitChangeEvent(""),this._searchValue=i.value,this._expanded=!0,this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:i.value}}))}handleInputKeydown(t){if((t.key===e.DOWN||t.key===e.UP)&&t.preventDefault(),t.key===e.SPACE){t.stopPropagation();return}}emitChangeEvent(t){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:t}}))}};r.styles=[...T(r,r,"styles"),O(y)];s([l({type:Array})],r.prototype,"options",2);s([l({type:Boolean})],r.prototype,"autocomplete",2);s([l({type:String,attribute:"data-type"})],r.prototype,"dataType",2);s([l({type:String,attribute:"country-code"})],r.prototype,"countryCode",2);s([l({type:String,attribute:"list-width"})],r.prototype,"listWidth",2);s([l({type:Boolean,attribute:"value-displayed"})],r.prototype,"valueDisplayed",2);s([l({type:Number,attribute:"max-autocomplete-results"})],r.prototype,"maxAutocompleteResults",2);s([c()],r.prototype,"_activeDescendant",2);s([c()],r.prototype,"_expanded",2);s([c()],r.prototype,"_searchValue",2);r=s([b("ngc-input-dropdown"),M()],r);export{r as NgcInputDropdown};
@@ -1,4 +1,4 @@
1
- import{customElement as m}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as u}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcInputText as h}from"../input-text/input-text.gator.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import d from"../../../../packages/web-components/src/components/input/gator/input-currency/input-currency.gator.scss.js";import{str as y}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as c}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as f}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,_=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,C=Reflect.get,o=(e,r,t,i)=>{for(var a=i>1?void 0:i?_(r,t):r,n=e.length-1,l;n>=0;n--)(l=e[n])&&(a=(i?l(r,t,a):l(a))||a);return i&&a&&g(r,t,a),a},D=(e,r,t)=>C(b(e),t,r);let s=class extends h{constructor(){super(...arguments),this.value="",this._value="",this.type="text",this.currencyIsoCode="USD"}render(){return p`
1
+ import{customElement as m}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as u}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcInputText as h}from"../input-text/input-text.gator.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as d}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import p from"../../../../packages/web-components/src/components/input/gator/input-currency/input-currency.gator.scss.js";import{str as y}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as c}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as f}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,_=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,C=Reflect.get,o=(e,r,t,i)=>{for(var a=i>1?void 0:i?_(r,t):r,n=e.length-1,l;n>=0;n--)(l=e[n])&&(a=(i?l(r,t,a):l(a))||a);return i&&a&&g(r,t,a),a},D=(e,r,t)=>C(b(e),t,r);let s=class extends h{constructor(){super(...arguments),this.value="",this._value="",this.type="text",this.currencyIsoCode="USD"}render(){return d`
2
2
  ${super.render()}
3
3
  <div id="ngc-input-currency-descriptor">${this.currencyIsoCode}</div>
4
- `}connectedCallback(){super.connectedCallback(),this.startIcon="",this._startIconAsText=this.currencySymbol,this._value=this.format(this.value),this._inputMode="numeric",this._placeholder=this.placeholder||this.format("0"),this._ariaDescribedBy="ngc-input-currency-descriptor"}updated(e){if(super.updated(e),e.has("value")&&e.get("value")&&(this._value=this.value),e.has("currencyIsoCode")&&(this._startIconAsText=this.currencySymbol,this._placeholder=this.placeholder||this.format("0")),e.has("locale")){const r=this.isPeriodAsDecimalCurrency?".":",",t=this.isPeriodAsDecimalCurrency?",":".";this._value&&(this._value=this.format(this._value.replaceAll(t,r)));const i=new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this._value}});this.dispatchEvent(i),this._placeholder=this.placeholder||this.format("0")}this.validateInput(this._value)}validateInput(e){if(/.*[^,\d.].*/.test(e))return this._internalValidationError=c("Invalid input. Only numbers, commas or periods are allowed."),!1;const t=this.isPeriodAsDecimalCurrency?".":",",i=(this._value.match(new RegExp("\\"+t,"g"))??[]).length;if(!(this.numDecimalPlaces>0)&&i>0)return this._internalValidationError=c("Invalid input. No decimals are allowed for this currency."),!1;if(i>1)return this._internalValidationError=c("Invalid input. Only one decimal character is allowed."),!1;const n=new RegExp("^[\\d,]+\\.\\d{"+(this.numDecimalPlaces+1)+",}$"),l=new RegExp("^[\\d.]+,\\d{"+(this.numDecimalPlaces+1)+",}$");return(this.isPeriodAsDecimalCurrency?n:l).test(e)?(this._internalValidationError=c(y`Invalid input. Only ${this.numDecimalPlaces} decimal places are allowed.`),!1):this._value===t?(this._internalValidationError=c("Invalid input. Please enter a valid number value."),!1):(this._internalValidationError="",!0)}handleChange(){var a;if(this.displayedErrorText)return;let r=(a=this.inputRef.value)==null?void 0:a.value.replaceAll(this.currencyThousandsSeparator,"");this.isPeriodAsDecimalCurrency||(r=r==null?void 0:r.replaceAll(",","."));const t=this.format(r??"0.00"),i=new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:t}});this.dispatchEvent(i)}currencyNumberFormater(e={}){return new Intl.NumberFormat(this.locale||navigator.language,{style:"currency",currency:this.currencyIsoCode||"USD",currencyDisplay:"narrowSymbol",...e})}format(e){return e?this.currencyNumberFormater({useGrouping:!1}).format(parseFloat(e)).replaceAll(this.currencySymbol,"").trim():""}get currencySymbol(){var e;return((e=this.currencyNumberFormater({currencyDisplay:"narrowSymbol"}).formatToParts(1).find(r=>r.type==="currency"))==null?void 0:e.value)??"$"}get currencyThousandsSeparator(){var e;return((e=this.currencyNumberFormater().formatToParts(1e3).find(r=>r.type==="group"))==null?void 0:e.value)??","}get numDecimalPlaces(){return(this.currencyNumberFormater().format(1).match(/0/g)||[]).length}get isPeriodAsDecimalCurrency(){return this.currencyThousandsSeparator===","}};s.styles=[...D(s,s,"styles"),v(d)];o([u({attribute:"currency-iso-code"})],s.prototype,"currencyIsoCode",2);o([u()],s.prototype,"locale",2);s=o([f(),m("ngc-input-currency")],s);export{s as NgcInputCurrency};
4
+ `}connectedCallback(){super.connectedCallback(),this.startIcon="",this._startIconAsText=this.currencySymbol,this._value=this.format(this.value),this._inputMode="numeric",this._placeholder=this.placeholder||this.format("0"),this._ariaDescribedBy="ngc-input-currency-descriptor"}updated(e){if(super.updated(e),e.has("value")&&e.get("value")&&(this._value=this.value),e.has("currencyIsoCode")&&(this._startIconAsText=this.currencySymbol,this._placeholder=this.placeholder||this.format("0")),e.has("locale")){const r=this.isPeriodAsDecimalCurrency?".":",",t=this.isPeriodAsDecimalCurrency?",":".";this._value&&(this._value=this.format(this._value.replaceAll(t,r)));const i=new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this._value}});this.dispatchEvent(i),this._placeholder=this.placeholder||this.format("0")}this.validateInput(this._value)}validateInput(e){if(/.*[^,\d.].*/.test(e))return this._internalValidationError=c("Invalid input. Only numbers, commas or periods are allowed."),!1;const t=this.isPeriodAsDecimalCurrency?".":",",i=(this._value.match(new RegExp("\\"+t,"g"))??[]).length;if(!(this.numDecimalPlaces>0)&&i>0)return this._internalValidationError=c("Invalid input. No decimals are allowed for this currency."),!1;if(i>1)return this._internalValidationError=c("Invalid input. Only one decimal character is allowed."),!1;const n=new RegExp("^[\\d,]+\\.\\d{"+(this.numDecimalPlaces+1)+",}$"),l=new RegExp("^[\\d.]+,\\d{"+(this.numDecimalPlaces+1)+",}$");return(this.isPeriodAsDecimalCurrency?n:l).test(e)?(this._internalValidationError=c(y`Invalid input. Only ${this.numDecimalPlaces} decimal places are allowed.`),!1):this._value===t?(this._internalValidationError=c("Invalid input. Please enter a valid number value."),!1):(this._internalValidationError="",!0)}handleChange(){if(this.displayedErrorText)return;let r=this.inputRef.value?.value.replaceAll(this.currencyThousandsSeparator,"");this.isPeriodAsDecimalCurrency||(r=r?.replaceAll(",","."));const t=this.format(r??"0.00"),i=new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:t}});this.dispatchEvent(i)}currencyNumberFormater(e={}){return new Intl.NumberFormat(this.locale||navigator.language,{style:"currency",currency:this.currencyIsoCode||"USD",currencyDisplay:"narrowSymbol",...e})}format(e){return e?this.currencyNumberFormater({useGrouping:!1}).format(parseFloat(e)).replaceAll(this.currencySymbol,"").trim():""}get currencySymbol(){return this.currencyNumberFormater({currencyDisplay:"narrowSymbol"}).formatToParts(1).find(e=>e.type==="currency")?.value??"$"}get currencyThousandsSeparator(){return this.currencyNumberFormater().formatToParts(1e3).find(e=>e.type==="group")?.value??","}get numDecimalPlaces(){return(this.currencyNumberFormater().format(1).match(/0/g)||[]).length}get isPeriodAsDecimalCurrency(){return this.currencyThousandsSeparator===","}};s.styles=[...D(s,s,"styles"),v(p)];o([u({attribute:"currency-iso-code"})],s.prototype,"currencyIsoCode",2);o([u()],s.prototype,"locale",2);s=o([f(),m("ngc-input-currency")],s);export{s as NgcInputCurrency};
@@ -1,19 +1,19 @@
1
- import"../../../icon-button/gator/icon-button.gator.js";import"../../../date-picker/base/gator/datepicker.gator.js";import{customElement as _}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as u}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{NgcInputText as y}from"../input-text/input-text.gator.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as f}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{createRef as D,ref as m}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{autoUpdate as b,computePosition as I}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import E from"../../../../packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js";import{NgcErrorEvent as R,NgcErrorReason as x}from"../../../../utils/error-utils.js";import{msg as k}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as $}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{ifDefined as g}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as T}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var V=Object.defineProperty,S=Object.getOwnPropertyDescriptor,L=Object.getPrototypeOf,N=Reflect.get,n=(t,a,e,i)=>{for(var r=i>1?void 0:i?S(a,e):a,l=t.length-1,h;l>=0;l--)(h=t[l])&&(r=(i?h(a,e,r):h(r))||r);return i&&r&&V(a,e,r),r},w=(t,a,e)=>N(L(t),e,a),C=(t=>(t.INVALID_FORMAT="invalid-format",t.LESS_THAN_MIN_DATE="less-than-min-date",t.GREATER_THAN_MAX_DATE="greater-than-max-date",t.OUTSIDE_RANGE="outside-range",t.INVALID_START_DATE="invalid-start-date",t.INVALID_END_DATE="invalid-end-date",t))(C||{});let s=class extends y{constructor(){super(...arguments),this.locale=navigator.language,this.sundayStart=!1,this.range=!1,this.startDateLabel="Start Date",this.endDateLabel="End Date",this.datepickerRef=D(),this.datepickerTriggerRef=D(),this.startInputRef=D(),this.endInputRef=D(),this.groupRef=D(),this.dateValue=null,this._dateSeparator="/",this._messageInvalidFormat="Invalid date. Please provide a valid date with format {0}.",this._messageLessThanMinDate="Date must be after {0}.",this._messageGreaterThanMaxDate="Date must be before {0}.",this._messageOutsideRange="Date must be between {0} and {1}.",this._messageInvalidStartDate="{0} must come before {1}: {2}.",this._messageInvalidEndDate="{0} must come after {1}: {2}.",this._datePickerVisible=!1,this._startDate=null,this._endDate=null}connectedCallback(){super.connectedCallback(),this.endIcon="calendar"}updated(t){super.updated(t),t.has("locale")&&((this.locale===void 0||this.locale==="")&&(this.locale=navigator.language),this.setLocaleDateFormat(),this._value=this.value?this.value.toLocaleDateString(this.locale):""),t.has("value")&&(this.value&&this.value instanceof Date&&!isNaN(this.value.getTime())?(this.dateValue=this.value,this._value=this.value.toLocaleDateString(this.locale)):(this.dateValue=null,this._value="")),t.has("startDate")&&(this.startDate&&this.startDate instanceof Date&&!isNaN(this.startDate.getTime())?(this._startDate=this.startDate,this._startDateInputValue=this.startDate.toLocaleDateString(this.locale)):(this._startDate=null,this._startDateInputValue="")),t.has("endDate")&&(this.endDate&&this.endDate instanceof Date&&!isNaN(this.endDate.getTime())?(this._endDate=this.endDate,this._endDateInputValue=this.endDate.toLocaleDateString(this.locale)):(this._endDate=null,this._endDateInputValue=""))}render(){return f`
1
+ import"../../../icon-button/gator/icon-button.gator.js";import"../../../date-picker/base/gator/datepicker.gator.js";import{customElement as g}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{NgcInputText as v}from"../input-text/input-text.gator.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as m}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{createRef as c,ref as D}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{autoUpdate as _,computePosition as y}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import b from"../../../../packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js";import{NgcErrorEvent as I,NgcErrorReason as E}from"../../../../utils/error-utils.js";import{msg as R}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as x}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{ifDefined as f}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as k}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var $=Object.defineProperty,T=Object.getOwnPropertyDescriptor,V=Object.getPrototypeOf,S=Reflect.get,r=(t,a,e,i)=>{for(var n=i>1?void 0:i?T(a,e):a,h=t.length-1,l;h>=0;h--)(l=t[h])&&(n=(i?l(a,e,n):l(n))||n);return i&&n&&$(a,e,n),n},L=(t,a,e)=>S(V(t),e,a),N=(t=>(t.INVALID_FORMAT="invalid-format",t.LESS_THAN_MIN_DATE="less-than-min-date",t.GREATER_THAN_MAX_DATE="greater-than-max-date",t.OUTSIDE_RANGE="outside-range",t.INVALID_START_DATE="invalid-start-date",t.INVALID_END_DATE="invalid-end-date",t))(N||{});let s=class extends v{constructor(){super(...arguments),this.locale=navigator.language,this.sundayStart=!1,this.range=!1,this.startDateLabel="Start Date",this.endDateLabel="End Date",this.datepickerRef=c(),this.datepickerTriggerRef=c(),this.startInputRef=c(),this.endInputRef=c(),this.groupRef=c(),this.dateValue=null,this._dateSeparator="/",this._messageInvalidFormat="Invalid date. Please provide a valid date with format {0}.",this._messageLessThanMinDate="Date must be after {0}.",this._messageGreaterThanMaxDate="Date must be before {0}.",this._messageOutsideRange="Date must be between {0} and {1}.",this._messageInvalidStartDate="{0} must come before {1}: {2}.",this._messageInvalidEndDate="{0} must come after {1}: {2}.",this._datePickerVisible=!1,this._startDate=null,this._endDate=null}connectedCallback(){super.connectedCallback(),this.endIcon="calendar"}updated(t){super.updated(t),t.has("locale")&&((this.locale===void 0||this.locale==="")&&(this.locale=navigator.language),this.setLocaleDateFormat(),this._value=this.value?this.value.toLocaleDateString(this.locale):""),t.has("value")&&(this.value&&this.value instanceof Date&&!isNaN(this.value.getTime())?(this.dateValue=this.value,this._value=this.value.toLocaleDateString(this.locale)):(this.dateValue=null,this._value="")),t.has("startDate")&&(this.startDate&&this.startDate instanceof Date&&!isNaN(this.startDate.getTime())?(this._startDate=this.startDate,this._startDateInputValue=this.startDate.toLocaleDateString(this.locale)):(this._startDate=null,this._startDateInputValue="")),t.has("endDate")&&(this.endDate&&this.endDate instanceof Date&&!isNaN(this.endDate.getTime())?(this._endDate=this.endDate,this._endDateInputValue=this.endDate.toLocaleDateString(this.locale)):(this._endDate=null,this._endDateInputValue=""))}render(){return m`
2
2
  ${this.range?this.rangeMarkup:super.render()}
3
3
  ${this.datepickerMarkup}
4
- `}get endIconMarkup(){return this.calendarIconMarkup}get calendarIconMarkup(){return f`
4
+ `}get endIconMarkup(){return this.calendarIconMarkup}get calendarIconMarkup(){return m`
5
5
  <ngc-icon-button
6
6
  slot="end-slot"
7
- ${m(this.datepickerTriggerRef)}
7
+ ${D(this.datepickerTriggerRef)}
8
8
  ?disabled=${this.disabled||this.readonly}
9
9
  size="medium"
10
10
  icon-name="calendar"
11
- .ariaLabel="${k("Open date picker")}"
11
+ .ariaLabel="${R("Open date picker")}"
12
12
  @click=${this.toggleVisibility}
13
13
  ></ngc-icon-button>
14
- `}get datepickerMarkup(){return f`
14
+ `}get datepickerMarkup(){return m`
15
15
  <ngc-datepicker
16
- ${m(this.datepickerRef)}
16
+ ${D(this.datepickerRef)}
17
17
  class="datepicker ${this._datePickerVisible?"datepicker-visible":""}"
18
18
  locale=${this.locale}
19
19
  .min=${this.minDate}
@@ -29,16 +29,16 @@ import"../../../icon-button/gator/icon-button.gator.js";import"../../../date-pic
29
29
  @done=${this.closeDatepicker}
30
30
  @keydown=${t=>{t.key==="Escape"&&this.closeDatepicker()}}
31
31
  ></ngc-datepicker>
32
- `}handleDatepickerFocusOut(t){t.relatedTarget!==this.datepickerTriggerRef.value&&(this._datePickerVisible=!1)}closeDatepicker(){var t,a,e;(t=this.datepickerRef.value)==null||t.handleClose(),this._datePickerVisible=!1,this.range?(a=this.startInputRef.value)==null||a.focus():(e=this.inputRef.value)==null||e.focus()}get datepickerSelectedDate(){return this.dateValue instanceof Date&&!isNaN(this.dateValue.getTime())?this.dateValue:null}handleChange(t){t.preventDefault(),t.stopPropagation();const a=t.target;this._value=a.value,this.validateDate((e,i)=>this.setDateValue(e,i),a.value),this.dispatchEvent(new CustomEvent("change",this.dateEventData))}handleInputEvent(t){t.preventDefault(),t.stopPropagation();const a=t.target;this._value=a.value,this.validateDate((e,i)=>this.setDateValue(e,i),a.value),this.dispatchEvent(new CustomEvent("input",this.dateEventData))}setDateValue(t,a){a?this._internalValidationError=a:this._internalValidationError="",this.dateValue=t}handleDatepickerChange(t){t.detail.date?this._value=new Intl.DateTimeFormat(this.locale).format(t.detail.date):this._value="",this.dateValue=t.detail.date,this._internalValidationError="",this.dispatchEvent(new CustomEvent("change",this.dateEventData))}get dateEventData(){return{bubbles:!0,composed:!0,detail:{value:this._value,valueAsDate:this.dateValue}}}get rangeMarkup(){return requestAnimationFrame(()=>{var e,i;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("ngc-input-label"),a=(i=this.shadowRoot)==null?void 0:i.querySelectorAll("ngc-help-text");t&&this.groupRef.value&&(this.groupRef.value.ariaLabelledByElements=[t]),a&&this.groupRef.value&&(this.groupRef.value.ariaDescribedByElements=Array.from(a))}),f`
33
- <div ${m(this.groupRef)} role="group">
32
+ `}handleDatepickerFocusOut(t){t.relatedTarget!==this.datepickerTriggerRef.value&&(this._datePickerVisible=!1)}closeDatepicker(){this.datepickerRef.value?.handleClose(),this._datePickerVisible=!1,this.range?this.startInputRef.value?.focus():this.inputRef.value?.focus()}get datepickerSelectedDate(){return this.dateValue instanceof Date&&!isNaN(this.dateValue.getTime())?this.dateValue:null}handleChange(t){t.preventDefault(),t.stopPropagation();const a=t.target;this._value=a.value,this.validateDate((e,i)=>this.setDateValue(e,i),a.value),this.dispatchEvent(new CustomEvent("change",this.dateEventData))}handleInputEvent(t){t.preventDefault(),t.stopPropagation();const a=t.target;this._value=a.value,this.validateDate((e,i)=>this.setDateValue(e,i),a.value),this.dispatchEvent(new CustomEvent("input",this.dateEventData))}setDateValue(t,a){a?this._internalValidationError=a:this._internalValidationError="",this.dateValue=t}handleDatepickerChange(t){t.detail.date?this._value=new Intl.DateTimeFormat(this.locale).format(t.detail.date):this._value="",this.dateValue=t.detail.date,this._internalValidationError="",this.dispatchEvent(new CustomEvent("change",this.dateEventData))}get dateEventData(){return{bubbles:!0,composed:!0,detail:{value:this._value,valueAsDate:this.dateValue}}}get rangeMarkup(){return requestAnimationFrame(()=>{const t=this.shadowRoot?.querySelector("ngc-input-label"),a=this.shadowRoot?.querySelectorAll("ngc-help-text");t&&this.groupRef.value&&(this.groupRef.value.ariaLabelledByElements=[t]),a&&this.groupRef.value&&(this.groupRef.value.ariaDescribedByElements=Array.from(a))}),m`
33
+ <div ${D(this.groupRef)} role="group">
34
34
  ${this.labelMarkup}
35
35
  <div class="gator-input-date-range">
36
36
  <ngc-input-text
37
- ${m(this.startInputRef)}
37
+ ${D(this.startInputRef)}
38
38
  label=${this.startDateLabel}
39
39
  .value=${this._startDateInputValue||""}
40
- placeholder=${g(this._placeholder)}
41
- error-text=${g(this.errorText||void 0)}
40
+ placeholder=${f(this._placeholder)}
41
+ error-text=${f(this.errorText||void 0)}
42
42
  ?disabled=${this.disabled}
43
43
  ?required=${this.required}
44
44
  ?readonly=${this.readonly}
@@ -48,11 +48,11 @@ import"../../../icon-button/gator/icon-button.gator.js";import"../../../date-pic
48
48
  ${this.calendarIconMarkup}
49
49
  </ngc-input-text>
50
50
  <ngc-input-text
51
- ${m(this.endInputRef)}
51
+ ${D(this.endInputRef)}
52
52
  label=${this.endDateLabel}
53
53
  .value="${this._endDateInputValue||""}"
54
- placeholder=${g(this._placeholder)}
55
- error-text=${g(this.errorText||void 0)}
54
+ placeholder=${f(this._placeholder)}
55
+ error-text=${f(this.errorText||void 0)}
56
56
  ?disabled=${this.disabled}
57
57
  ?required=${this.required}
58
58
  ?readonly=${this.readonly}
@@ -64,4 +64,4 @@ import"../../../icon-button/gator/icon-button.gator.js";import"../../../date-pic
64
64
  </div>
65
65
  ${this.bottomText}
66
66
  </div>
67
- `}setStartDate(t,a,e){this.errorText||(e?this.startInputRef.value.errorText=e:this.startInputRef.value.errorText=""),this._startDate=t,this._startDateInputValue=a}setEndDate(t,a,e){this.errorText||(e?this.endInputRef.value.errorText=e:this.endInputRef.value.errorText=""),this._endDate=t,this._endDateInputValue=a}get datepickerStartDate(){if(this._startDate instanceof Date&&!isNaN(this._startDate.getTime()))return this._startDate}get datepickerEndDate(){if(this._endDate instanceof Date&&!isNaN(this._endDate.getTime()))return this._endDate}handleRangeInputEvent(t,a){t.preventDefault(),t.stopPropagation();const e=t.detail.value;this.validateDate(a,e),this.dispatchEvent(new CustomEvent("input",this.rangeEventData))}handleRangeChangeEvent(t,a){t.preventDefault(),t.stopPropagation();const e=t.detail.value;this.validateDate(a,e),this.dispatchEvent(new CustomEvent("change",this.rangeEventData))}get rangeEventData(){return{bubbles:!0,composed:!0,detail:{startDate:this._startDate,endDate:this._endDate,value:this.dateRangeTextValue}}}get dateRangeTextValue(){const t=this._startDate instanceof Date?this._startDate.toLocaleDateString(this.locale):"",a=this._endDate instanceof Date?this._endDate.toLocaleDateString(this.locale):"";return`${t} - ${a}`}handleDatepickerRangeChange(t){!t.detail.startDate&&!t.detail.endDate&&this.closeDatepicker(),t.detail.startDate!==this._startDate&&(this._startDate=t.detail.startDate,this._startDateInputValue=t.detail.startDate?new Intl.DateTimeFormat(this.locale).format(t.detail.startDate):""),t.detail.endDate!==this.endDate&&(this._endDate=t.detail.endDate,this._endDateInputValue=t.detail.endDate?new Intl.DateTimeFormat(this.locale).format(t.detail.endDate):""),this.errorText||(this.endInputRef.value.errorText="",this.startInputRef.value.errorText=""),this.dispatchEvent(new CustomEvent("change",this.rangeEventData))}validateDate(t,a){let e=this.getDateValueFromLocalizedDateString(a),i=null;typeof e=="number"&&isNaN(e)&&(i=this.handleError("invalid-format")),e&&typeof e=="object"&&(this.minDate&&e<this.minDate&&(i=this.handleError("less-than-min-date")),this.maxDate&&e>this.maxDate&&(i=this.handleError("greater-than-max-date")),this.minDate&&this.maxDate&&(e<this.minDate||e>this.maxDate)&&(i=this.handleError("outside-range")),this.range&&(this._startDate&&e<this._startDate&&(i=this.handleError("invalid-end-date")),this._endDate&&e>this._endDate&&(i=this.handleError("invalid-start-date")))),t(e,i)}setLocaleDateFormat(){var h;const t=new Intl.DateTimeFormat(this.locale).formatToParts(new Date("12/31/1999")),a=(h=t.find(d=>d.type==="literal"))==null?void 0:h.value,e={day:"dd",month:"mm",year:"yyyy"},i={day:"([1-9]|0[1-9]|[12][0-9]|3[01])",month:"([1-9]|0[1-9]|1[0-2])",year:"\\d{4}"},r=new Map,l=new Map;t.forEach((d,p)=>{e[d.type]&&(r.set(p,e[d.type]),l.set(p,i[d.type]))}),this._dateSeparator=a||"/",this._localizedDateRegex=new RegExp(`^${Array.from(l.values()).join(this._dateSeparator)}$`),this.localizedExpectedDateFormat=Array.from(r.values()).join(this._dateSeparator),this._placeholder=this.localizedExpectedDateFormat}getDateValueFromLocalizedDateString(t){var p,v;if(!t||t==="")return null;if(!((p=this._localizedDateRegex)==null?void 0:p.test(t)))return NaN;const e=t.split(this._dateSeparator),i=((v=this.localizedExpectedDateFormat)==null?void 0:v.split(this._dateSeparator))||[],r=i.findIndex(c=>c.toLowerCase().includes("y")),l=i.findIndex(c=>c.toLowerCase().includes("m")),h=i.findIndex(c=>c.toLowerCase().includes("d")),d=new Date(parseInt(e[r]),parseInt(e[l])-1,parseInt(e[h]));return isNaN(d.getTime())?NaN:d}toggleVisibility(){var t;this._datePickerVisible=!this._datePickerVisible,this._datePickerVisible&&(this.assignPosition(),(t=this.datepickerRef.value)==null||t.shiftFocusToCalendarGrid())}assignPosition(){var a;const t=this.range?(a=this.endInputRef.value)==null?void 0:a.controlRef.value:this.controlRef.value;!this.datepickerRef||!this.datepickerRef.value||!t||(this._cleanup=b(t,this.datepickerRef.value,async()=>{if(!this.datepickerRef||!this.datepickerRef.value||!t)return;const{x:e,y:i,placement:r}=await I(t,this.datepickerRef.value,{placement:"bottom-end"});let l=r.includes("bottom")?4:-4;Object.assign(this.datepickerRef.value.style,{left:`${e}px`,top:`${i+l}px`})}))}handleError(t){var a,e,i,r;switch(this.dispatchEvent(new R({errorReason:x.VALIDATION,component:{errorReason:t}})),t){case"invalid-format":return this._messageInvalidFormat.replace("{0}",this.localizedExpectedDateFormat);case"less-than-min-date":return this._messageLessThanMinDate.replace("{0}",((a=this.minDate)==null?void 0:a.toLocaleDateString(this.locale))||"");case"greater-than-max-date":return this._messageGreaterThanMaxDate.replace("{0}",((e=this.maxDate)==null?void 0:e.toLocaleDateString(this.locale))||"");case"outside-range":return this._messageOutsideRange.replace("{0}",((i=this.minDate)==null?void 0:i.toLocaleDateString(this.locale))||"").replace("{1}",((r=this.maxDate)==null?void 0:r.toLocaleDateString(this.locale))||"");case"invalid-start-date":return this._messageInvalidStartDate.replace("{0}",this.startDateLabel||"").replace("{1}",this.endDateLabel||"").replace("{2}",this._endDateInputValue||"");case"invalid-end-date":return this._messageInvalidEndDate.replace("{0}",this.endDateLabel||"").replace("{1}",this.startDateLabel||"").replace("{2}",this._startDateInputValue||"");default:return null}}};s.styles=[...w(s,s,"styles"),T(E)];n([o({type:Date})],s.prototype,"value",2);n([o({type:String,attribute:"locale"})],s.prototype,"locale",2);n([o({type:Date,attribute:"min-date"})],s.prototype,"minDate",2);n([o({type:Date,attribute:"max-date"})],s.prototype,"maxDate",2);n([o({type:Boolean,attribute:"sunday-start"})],s.prototype,"sundayStart",2);n([o({type:Boolean,attribute:"range"})],s.prototype,"range",2);n([o({type:Date,attribute:"start-date"})],s.prototype,"startDate",2);n([o({type:Date,attribute:"end-date"})],s.prototype,"endDate",2);n([o({type:String,attribute:"start-date-label"})],s.prototype,"startDateLabel",2);n([o({type:String,attribute:"end-date-label"})],s.prototype,"endDateLabel",2);n([u()],s.prototype,"dateValue",2);n([u()],s.prototype,"_datePickerVisible",2);n([u()],s.prototype,"_startDate",2);n([u()],s.prototype,"_endDate",2);n([u()],s.prototype,"_startDateInputValue",2);n([u()],s.prototype,"_endDateInputValue",2);s=n([_("ngc-input-date"),$()],s);export{C as DateValidationError,s as NgcInputDate};
67
+ `}setStartDate(t,a,e){this.errorText||(e?this.startInputRef.value.errorText=e:this.startInputRef.value.errorText=""),this._startDate=t,this._startDateInputValue=a}setEndDate(t,a,e){this.errorText||(e?this.endInputRef.value.errorText=e:this.endInputRef.value.errorText=""),this._endDate=t,this._endDateInputValue=a}get datepickerStartDate(){if(this._startDate instanceof Date&&!isNaN(this._startDate.getTime()))return this._startDate}get datepickerEndDate(){if(this._endDate instanceof Date&&!isNaN(this._endDate.getTime()))return this._endDate}handleRangeInputEvent(t,a){t.preventDefault(),t.stopPropagation();const e=t.detail.value;this.validateDate(a,e),this.dispatchEvent(new CustomEvent("input",this.rangeEventData))}handleRangeChangeEvent(t,a){t.preventDefault(),t.stopPropagation();const e=t.detail.value;this.validateDate(a,e),this.dispatchEvent(new CustomEvent("change",this.rangeEventData))}get rangeEventData(){return{bubbles:!0,composed:!0,detail:{startDate:this._startDate,endDate:this._endDate,value:this.dateRangeTextValue}}}get dateRangeTextValue(){const t=this._startDate instanceof Date?this._startDate.toLocaleDateString(this.locale):"",a=this._endDate instanceof Date?this._endDate.toLocaleDateString(this.locale):"";return`${t} - ${a}`}handleDatepickerRangeChange(t){!t.detail.startDate&&!t.detail.endDate&&this.closeDatepicker(),t.detail.startDate!==this._startDate&&(this._startDate=t.detail.startDate,this._startDateInputValue=t.detail.startDate?new Intl.DateTimeFormat(this.locale).format(t.detail.startDate):""),t.detail.endDate!==this.endDate&&(this._endDate=t.detail.endDate,this._endDateInputValue=t.detail.endDate?new Intl.DateTimeFormat(this.locale).format(t.detail.endDate):""),this.errorText||(this.endInputRef.value.errorText="",this.startInputRef.value.errorText=""),this.dispatchEvent(new CustomEvent("change",this.rangeEventData))}validateDate(t,a){let e=this.getDateValueFromLocalizedDateString(a),i=null;typeof e=="number"&&isNaN(e)&&(i=this.handleError("invalid-format")),e&&typeof e=="object"&&(this.minDate&&e<this.minDate&&(i=this.handleError("less-than-min-date")),this.maxDate&&e>this.maxDate&&(i=this.handleError("greater-than-max-date")),this.minDate&&this.maxDate&&(e<this.minDate||e>this.maxDate)&&(i=this.handleError("outside-range")),this.range&&(this._startDate&&e<this._startDate&&(i=this.handleError("invalid-end-date")),this._endDate&&e>this._endDate&&(i=this.handleError("invalid-start-date")))),t(e,i)}setLocaleDateFormat(){const t=new Intl.DateTimeFormat(this.locale).formatToParts(new Date("12/31/1999")),a=t.find(l=>l.type==="literal")?.value,e={day:"dd",month:"mm",year:"yyyy"},i={day:"([1-9]|0[1-9]|[12][0-9]|3[01])",month:"([1-9]|0[1-9]|1[0-2])",year:"\\d{4}"},n=new Map,h=new Map;t.forEach((l,u)=>{e[l.type]&&(n.set(u,e[l.type]),h.set(u,i[l.type]))}),this._dateSeparator=a||"/",this._localizedDateRegex=new RegExp(`^${Array.from(h.values()).join(this._dateSeparator)}$`),this.localizedExpectedDateFormat=Array.from(n.values()).join(this._dateSeparator),this._placeholder=this.localizedExpectedDateFormat}getDateValueFromLocalizedDateString(t){if(!t||t==="")return null;if(!this._localizedDateRegex?.test(t))return NaN;const e=t.split(this._dateSeparator),i=this.localizedExpectedDateFormat?.split(this._dateSeparator)||[],n=i.findIndex(p=>p.toLowerCase().includes("y")),h=i.findIndex(p=>p.toLowerCase().includes("m")),l=i.findIndex(p=>p.toLowerCase().includes("d")),u=new Date(parseInt(e[n]),parseInt(e[h])-1,parseInt(e[l]));return isNaN(u.getTime())?NaN:u}toggleVisibility(){this._datePickerVisible=!this._datePickerVisible,this._datePickerVisible&&(this.assignPosition(),this.datepickerRef.value?.shiftFocusToCalendarGrid())}assignPosition(){const t=this.range?this.endInputRef.value?.controlRef.value:this.controlRef.value;!this.datepickerRef||!this.datepickerRef.value||!t||(this._cleanup=_(t,this.datepickerRef.value,async()=>{if(!this.datepickerRef||!this.datepickerRef.value||!t)return;const{x:a,y:e,placement:i}=await y(t,this.datepickerRef.value,{placement:"bottom-end"});let n=i.includes("bottom")?4:-4;Object.assign(this.datepickerRef.value.style,{left:`${a}px`,top:`${e+n}px`})}))}handleError(t){switch(this.dispatchEvent(new I({errorReason:E.VALIDATION,component:{errorReason:t}})),t){case"invalid-format":return this._messageInvalidFormat.replace("{0}",this.localizedExpectedDateFormat);case"less-than-min-date":return this._messageLessThanMinDate.replace("{0}",this.minDate?.toLocaleDateString(this.locale)||"");case"greater-than-max-date":return this._messageGreaterThanMaxDate.replace("{0}",this.maxDate?.toLocaleDateString(this.locale)||"");case"outside-range":return this._messageOutsideRange.replace("{0}",this.minDate?.toLocaleDateString(this.locale)||"").replace("{1}",this.maxDate?.toLocaleDateString(this.locale)||"");case"invalid-start-date":return this._messageInvalidStartDate.replace("{0}",this.startDateLabel||"").replace("{1}",this.endDateLabel||"").replace("{2}",this._endDateInputValue||"");case"invalid-end-date":return this._messageInvalidEndDate.replace("{0}",this.endDateLabel||"").replace("{1}",this.startDateLabel||"").replace("{2}",this._startDateInputValue||"");default:return null}}};s.styles=[...L(s,s,"styles"),k(b)];r([o({type:Date})],s.prototype,"value",2);r([o({type:String,attribute:"locale"})],s.prototype,"locale",2);r([o({type:Date,attribute:"min-date"})],s.prototype,"minDate",2);r([o({type:Date,attribute:"max-date"})],s.prototype,"maxDate",2);r([o({type:Boolean,attribute:"sunday-start"})],s.prototype,"sundayStart",2);r([o({type:Boolean,attribute:"range"})],s.prototype,"range",2);r([o({type:Date,attribute:"start-date"})],s.prototype,"startDate",2);r([o({type:Date,attribute:"end-date"})],s.prototype,"endDate",2);r([o({type:String,attribute:"start-date-label"})],s.prototype,"startDateLabel",2);r([o({type:String,attribute:"end-date-label"})],s.prototype,"endDateLabel",2);r([d()],s.prototype,"dateValue",2);r([d()],s.prototype,"_datePickerVisible",2);r([d()],s.prototype,"_startDate",2);r([d()],s.prototype,"_endDate",2);r([d()],s.prototype,"_startDateInputValue",2);r([d()],s.prototype,"_endDateInputValue",2);s=r([g("ngc-input-date"),x()],s);export{N as DateValidationError,s as NgcInputDate};