@ukic/canary-web-components 2.0.0-canary.26 → 2.0.0-canary.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-6817cfbb.js → helpers-1a85e860.js} +15 -1
  3. package/dist/{esm/helpers-5bd2012a.js.map → cjs/helpers-1a85e860.js.map} +1 -1
  4. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +43 -20
  7. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-checkbox.cjs.entry.js +2 -2
  10. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-data-table.cjs.entry.js +28 -5
  13. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-date-input.cjs.entry.js +10 -9
  15. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-date-picker.cjs.entry.js +3 -1
  17. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-empty-state_2.cjs.entry.js +23 -16
  19. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +5 -4
  21. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +1 -1
  23. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  24. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-page-header.cjs.entry.js +4 -4
  26. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-pagination_4.cjs.entry.js +8 -8
  28. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-popover-menu.cjs.entry.js +20 -18
  30. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-search-bar.cjs.entry.js +15 -28
  34. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-select-with-multi.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-tab-context.cjs.entry.js +68 -145
  39. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-tab-panel.cjs.entry.js +5 -13
  41. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-tab.cjs.entry.js +9 -10
  43. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-tree-view.cjs.entry.js +2 -2
  47. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-typography.cjs.entry.js +3 -1
  49. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  50. package/dist/cjs/loader.cjs.js +1 -1
  51. package/dist/collection/components/ic-data-table/ic-data-table.css +5 -1
  52. package/dist/collection/components/ic-data-table/ic-data-table.js +28 -5
  53. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  54. package/dist/collection/components/ic-data-table/story-data.js +46 -5
  55. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  56. package/dist/collection/components/ic-date-input/ic-date-input.js +27 -8
  57. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  58. package/dist/collection/components/ic-date-picker/ic-date-picker.js +20 -0
  59. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  60. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +72 -21
  61. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  62. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
  63. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
  64. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +20 -2
  65. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  66. package/dist/collection/components/ic-tree-item/ic-tree-item.js +2 -5
  67. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  68. package/dist/collection/components/ic-tree-view/ic-tree-view.js +1 -1
  69. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  70. package/dist/collection/utils/types.js.map +1 -1
  71. package/dist/components/helpers2.js +14 -1
  72. package/dist/components/helpers2.js.map +1 -1
  73. package/dist/components/ic-alert2.js +1 -1
  74. package/dist/components/ic-alert2.js.map +1 -1
  75. package/dist/components/ic-breadcrumb-group.js +45 -21
  76. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  77. package/dist/components/ic-checkbox.js +2 -2
  78. package/dist/components/ic-checkbox.js.map +1 -1
  79. package/dist/components/ic-data-table.js +28 -5
  80. package/dist/components/ic-data-table.js.map +1 -1
  81. package/dist/components/ic-date-input2.js +11 -9
  82. package/dist/components/ic-date-input2.js.map +1 -1
  83. package/dist/components/ic-date-picker.js +4 -1
  84. package/dist/components/ic-date-picker.js.map +1 -1
  85. package/dist/components/ic-input-label2.js +6 -4
  86. package/dist/components/ic-input-label2.js.map +1 -1
  87. package/dist/components/ic-menu3.js +1 -1
  88. package/dist/components/ic-navigation-group.js +1 -1
  89. package/dist/components/ic-navigation-group.js.map +1 -1
  90. package/dist/components/ic-page-header.js +4 -4
  91. package/dist/components/ic-page-header.js.map +1 -1
  92. package/dist/components/ic-pagination-bar2.js +27 -17
  93. package/dist/components/ic-pagination-bar2.js.map +1 -1
  94. package/dist/components/ic-popover-menu.js +22 -19
  95. package/dist/components/ic-popover-menu.js.map +1 -1
  96. package/dist/components/ic-radio-group.js +1 -1
  97. package/dist/components/ic-radio-group.js.map +1 -1
  98. package/dist/components/ic-search-bar.js +15 -28
  99. package/dist/components/ic-search-bar.js.map +1 -1
  100. package/dist/components/ic-select-with-multi.js +1 -1
  101. package/dist/components/ic-select2.js +6 -6
  102. package/dist/components/ic-select2.js.map +1 -1
  103. package/dist/components/ic-switch.js +1 -1
  104. package/dist/components/ic-switch.js.map +1 -1
  105. package/dist/components/ic-tab-context.js +68 -145
  106. package/dist/components/ic-tab-context.js.map +1 -1
  107. package/dist/components/ic-tab-panel.js +6 -17
  108. package/dist/components/ic-tab-panel.js.map +1 -1
  109. package/dist/components/ic-tab.js +9 -10
  110. package/dist/components/ic-tab.js.map +1 -1
  111. package/dist/components/ic-text-field2.js +2 -2
  112. package/dist/components/ic-text-field2.js.map +1 -1
  113. package/dist/components/ic-tree-item.js.map +1 -1
  114. package/dist/components/ic-tree-view.js +2 -2
  115. package/dist/components/ic-tree-view.js.map +1 -1
  116. package/dist/components/ic-typography2.js +3 -1
  117. package/dist/components/ic-typography2.js.map +1 -1
  118. package/dist/core/core.esm.js +1 -1
  119. package/dist/core/core.esm.js.map +1 -1
  120. package/dist/core/p-05ae9a59.entry.js +2 -0
  121. package/dist/core/p-05ae9a59.entry.js.map +1 -0
  122. package/dist/core/{p-9b34989b.entry.js → p-07e4b89b.entry.js} +2 -2
  123. package/dist/core/p-0fc36045.entry.js +2 -0
  124. package/dist/core/p-0fc36045.entry.js.map +1 -0
  125. package/dist/core/p-21d0dea6.entry.js +2 -0
  126. package/dist/core/p-21d0dea6.entry.js.map +1 -0
  127. package/dist/core/p-2ecedbe5.entry.js +2 -0
  128. package/dist/core/p-2ecedbe5.entry.js.map +1 -0
  129. package/dist/core/{p-6b1fcf87.entry.js → p-383ba7e8.entry.js} +2 -2
  130. package/dist/core/p-383ba7e8.entry.js.map +1 -0
  131. package/dist/core/{p-ee8a3de6.entry.js → p-3ce541df.entry.js} +2 -2
  132. package/dist/core/p-3ce541df.entry.js.map +1 -0
  133. package/dist/core/p-3ef5017d.entry.js +2 -0
  134. package/dist/core/p-3ef5017d.entry.js.map +1 -0
  135. package/dist/core/{p-bee3fdb0.entry.js → p-438abe40.entry.js} +2 -2
  136. package/dist/core/p-438abe40.entry.js.map +1 -0
  137. package/dist/core/{p-f1044e4d.entry.js → p-5334bc96.entry.js} +2 -2
  138. package/dist/core/p-5334bc96.entry.js.map +1 -0
  139. package/dist/core/p-5741a8bf.entry.js +2 -0
  140. package/dist/core/p-5741a8bf.entry.js.map +1 -0
  141. package/dist/core/p-6ca98c5d.entry.js +2 -0
  142. package/dist/core/p-6ca98c5d.entry.js.map +1 -0
  143. package/dist/core/p-7435de65.js +2 -0
  144. package/dist/core/p-7435de65.js.map +1 -0
  145. package/dist/core/p-7e5da5eb.entry.js +2 -0
  146. package/dist/core/p-7e5da5eb.entry.js.map +1 -0
  147. package/dist/core/p-7ee62798.entry.js +2 -0
  148. package/dist/core/{p-80d6a6b5.entry.js.map → p-7ee62798.entry.js.map} +1 -1
  149. package/dist/core/p-8f0660ec.entry.js +2 -0
  150. package/dist/core/p-8f0660ec.entry.js.map +1 -0
  151. package/dist/core/p-924548ec.entry.js +2 -0
  152. package/dist/core/p-924548ec.entry.js.map +1 -0
  153. package/dist/core/{p-bfc5f3f4.entry.js → p-9e5c8813.entry.js} +2 -2
  154. package/dist/core/p-9e5c8813.entry.js.map +1 -0
  155. package/dist/core/{p-0ec04c16.entry.js → p-a7331e7c.entry.js} +2 -2
  156. package/dist/core/p-a7331e7c.entry.js.map +1 -0
  157. package/dist/core/{p-20997691.entry.js → p-a7794aa9.entry.js} +2 -2
  158. package/dist/core/p-a7794aa9.entry.js.map +1 -0
  159. package/dist/core/{p-d362992d.entry.js → p-ac591209.entry.js} +2 -2
  160. package/dist/core/{p-92f701e7.entry.js → p-b03d14fc.entry.js} +2 -2
  161. package/dist/core/p-bdb5addb.entry.js +2 -0
  162. package/dist/core/p-bdb5addb.entry.js.map +1 -0
  163. package/dist/core/{p-2ee5d3fb.entry.js → p-d10e81f3.entry.js} +2 -2
  164. package/dist/core/p-d10e81f3.entry.js.map +1 -0
  165. package/dist/core/p-e210f51a.entry.js +2 -0
  166. package/dist/core/p-e210f51a.entry.js.map +1 -0
  167. package/dist/core/{p-c6bdbe69.entry.js → p-fc76d510.entry.js} +2 -2
  168. package/dist/esm/core.js +1 -1
  169. package/dist/esm/{helpers-5bd2012a.js → helpers-c24d4455.js} +15 -2
  170. package/dist/esm/helpers-c24d4455.js.map +1 -0
  171. package/dist/esm/ic-alert.entry.js +1 -1
  172. package/dist/esm/ic-alert.entry.js.map +1 -1
  173. package/dist/esm/ic-breadcrumb-group.entry.js +43 -20
  174. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  175. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  176. package/dist/esm/ic-checkbox.entry.js +2 -2
  177. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  178. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  179. package/dist/esm/ic-data-table.entry.js +28 -5
  180. package/dist/esm/ic-data-table.entry.js.map +1 -1
  181. package/dist/esm/ic-date-input.entry.js +10 -9
  182. package/dist/esm/ic-date-input.entry.js.map +1 -1
  183. package/dist/esm/ic-date-picker.entry.js +3 -1
  184. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  185. package/dist/esm/ic-empty-state_2.entry.js +23 -16
  186. package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
  187. package/dist/esm/ic-input-component-container_4.entry.js +5 -4
  188. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
  189. package/dist/esm/ic-menu-with-multi.entry.js +1 -1
  190. package/dist/esm/ic-navigation-group.entry.js +1 -1
  191. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  192. package/dist/esm/ic-page-header.entry.js +4 -4
  193. package/dist/esm/ic-page-header.entry.js.map +1 -1
  194. package/dist/esm/ic-pagination_4.entry.js +8 -8
  195. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  196. package/dist/esm/ic-popover-menu.entry.js +20 -18
  197. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  198. package/dist/esm/ic-radio-group.entry.js +1 -1
  199. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  200. package/dist/esm/ic-search-bar.entry.js +15 -28
  201. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  202. package/dist/esm/ic-select-with-multi.entry.js +1 -1
  203. package/dist/esm/ic-switch.entry.js +1 -1
  204. package/dist/esm/ic-switch.entry.js.map +1 -1
  205. package/dist/esm/ic-tab-context.entry.js +68 -145
  206. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  207. package/dist/esm/ic-tab-panel.entry.js +5 -13
  208. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  209. package/dist/esm/ic-tab.entry.js +9 -10
  210. package/dist/esm/ic-tab.entry.js.map +1 -1
  211. package/dist/esm/ic-tree-item.entry.js +1 -1
  212. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  213. package/dist/esm/ic-tree-view.entry.js +2 -2
  214. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  215. package/dist/esm/ic-typography.entry.js +3 -1
  216. package/dist/esm/ic-typography.entry.js.map +1 -1
  217. package/dist/esm/loader.js +1 -1
  218. package/dist/types/components/ic-data-table/ic-data-table.d.ts +2 -0
  219. package/dist/types/components/ic-data-table/story-data.d.ts +15 -0
  220. package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
  221. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
  222. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +14 -5
  223. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
  224. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +1 -1
  225. package/dist/types/components.d.ts +46 -5
  226. package/dist/types/utils/types.d.ts +1 -0
  227. package/hydrate/index.js +275 -296
  228. package/package.json +3 -3
  229. package/dist/cjs/helpers-6817cfbb.js.map +0 -1
  230. package/dist/core/p-046f4de6.entry.js +0 -2
  231. package/dist/core/p-046f4de6.entry.js.map +0 -1
  232. package/dist/core/p-0ec04c16.entry.js.map +0 -1
  233. package/dist/core/p-20997691.entry.js.map +0 -1
  234. package/dist/core/p-216fbd5e.entry.js +0 -2
  235. package/dist/core/p-216fbd5e.entry.js.map +0 -1
  236. package/dist/core/p-297e99cf.js +0 -2
  237. package/dist/core/p-297e99cf.js.map +0 -1
  238. package/dist/core/p-2ee5d3fb.entry.js.map +0 -1
  239. package/dist/core/p-3ba4335c.entry.js +0 -2
  240. package/dist/core/p-3ba4335c.entry.js.map +0 -1
  241. package/dist/core/p-40e5fa80.entry.js +0 -2
  242. package/dist/core/p-40e5fa80.entry.js.map +0 -1
  243. package/dist/core/p-6af080d3.entry.js +0 -2
  244. package/dist/core/p-6af080d3.entry.js.map +0 -1
  245. package/dist/core/p-6b1fcf87.entry.js.map +0 -1
  246. package/dist/core/p-80d6a6b5.entry.js +0 -2
  247. package/dist/core/p-989310a8.entry.js +0 -2
  248. package/dist/core/p-989310a8.entry.js.map +0 -1
  249. package/dist/core/p-aa72f551.entry.js +0 -2
  250. package/dist/core/p-aa72f551.entry.js.map +0 -1
  251. package/dist/core/p-aaaa9261.entry.js +0 -2
  252. package/dist/core/p-aaaa9261.entry.js.map +0 -1
  253. package/dist/core/p-bd1f8741.entry.js +0 -2
  254. package/dist/core/p-bd1f8741.entry.js.map +0 -1
  255. package/dist/core/p-bee3fdb0.entry.js.map +0 -1
  256. package/dist/core/p-bfc5f3f4.entry.js.map +0 -1
  257. package/dist/core/p-c98ce508.entry.js +0 -2
  258. package/dist/core/p-c98ce508.entry.js.map +0 -1
  259. package/dist/core/p-da8255b8.entry.js +0 -2
  260. package/dist/core/p-da8255b8.entry.js.map +0 -1
  261. package/dist/core/p-ee8a3de6.entry.js.map +0 -1
  262. package/dist/core/p-f1044e4d.entry.js.map +0 -1
  263. package/dist/core/p-fa77211d.entry.js +0 -2
  264. package/dist/core/p-fa77211d.entry.js.map +0 -1
  265. /package/dist/core/{p-9b34989b.entry.js.map → p-07e4b89b.entry.js.map} +0 -0
  266. /package/dist/core/{p-d362992d.entry.js.map → p-ac591209.entry.js.map} +0 -0
  267. /package/dist/core/{p-92f701e7.entry.js.map → p-b03d14fc.entry.js.map} +0 -0
  268. /package/dist/core/{p-c6bdbe69.entry.js.map → p-fc76d510.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["icTypographyCss","Typography","constructor","hostRef","this","focusBtnFromKeyboard","inAGGrid","lastMarkerTop","lastWidth","resizeObserver","truncatedHeight","toggleExpanded","ev","stopPropagation","expanded","typographyTruncationExpandToggle","emit","typographyEl","el","checkMarkerPosition","elTop","markerTop","truncated","getElementTop","getClientRects","top","runResizeObserver","ResizeObserver","clearTimeout","resizeInterval","window","setTimeout","resizeObserverCallback","observe","truncWrapperEl","clientWidth","checkMaxLines","clientHeight","marker","truncButtonFocus","truncButtonFocussed","truncButtonBlur","truncButtonFocusFromMouse","applyVerticalMargins","bold","italic","maxLines","undefined","strikethrough","underline","variant","watchExpandedHandler","setAttribute","disconnectedCallback","disconnect","resetTruncation","removeAttribute","componentDidLoad","_a","_b","getRootNode","host","tagName","document","createElement","style","visibility","appendChild","checkResizeObserver","componentWillRender","isElInAGGrid","height","numLines","Math","floor","setShowHideExpanded","render","h","Host","class","ref","focus","onFocus","onBlur","onMouseDown","onClick"],"sources":["../web-components/dist/collection/components/ic-typography/ic-typography.css?tag=ic-typography&encapsulation=shadow","../web-components/dist/collection/components/ic-typography/ic-typography.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: block;\n position: relative;\n}\n\n:host(.ic-typography-vertical-margins-h1) {\n margin: 0 0 var(--ic-space-xl);\n}\n\n:host(.ic-typography-vertical-margins-h2) {\n margin: var(--ic-space-xxl) 0 var(--ic-space-lg);\n}\n\n:host(.ic-typography-vertical-margins-h3) {\n margin: var(--ic-space-xl) 0 var(--ic-space-md);\n}\n\n:host(.ic-typography-vertical-margins-h4) {\n margin: var(--ic-space-lg) 0 var(--ic-space-md);\n}\n\n:host(.ic-typography-vertical-margins-subtitle-large),\n:host(.ic-typography-vertical-margins-subtitle-small),\n:host(.ic-typography-vertical-margins-body),\n:host(.ic-typography-vertical-margins-code-large),\n:host(.ic-typography-vertical-margins-code-small),\n:host(.ic-typography-vertical-margins-code-extra-small) {\n margin: 0 0 var(--ic-space-md);\n}\n\n:host(.ic-typography-vertical-margins-caption),\n:host(.ic-typography-vertical-margins-caption-uppercase) {\n margin: 0 0 var(--ic-space-xs);\n}\n\n:host(.ic-typography-vertical-margins-h2:first-child),\n:host(.ic-typography-vertical-margins-h3:first-child),\n:host(.ic-typography-vertical-margins-h4:first-child) {\n margin-top: 0;\n}\n\n:host(.ic-typography-h1) {\n font: var(--ic-font-h1) !important;\n}\n\n:host(.ic-typography-h2) {\n font: var(--ic-font-h2);\n letter-spacing: var(--ic-font-letter-spacing-0pt0025);\n}\n\n:host(.ic-typography-h3) {\n font: var(--ic-font-h3);\n}\n\n:host(.ic-typography-h4) {\n font: var(--ic-font-h4);\n letter-spacing: var(--ic-font-letter-spacing-0pt0015);\n}\n\n:host(.ic-typography-subtitle-large) {\n font: var(--ic-font-subtitle-large);\n letter-spacing: var(--ic-font-letter-spacing-0pt0015);\n}\n\n:host(.ic-typography-subtitle-small) {\n font: var(--ic-font-subtitle-small);\n letter-spacing: var(--ic-font-letter-spacing-0pt0015);\n}\n\n:host(.ic-typography-body) {\n font: var(--ic-font-body);\n letter-spacing: var(--ic-font-letter-spacing-0pt005);\n}\n\n:host(.ic-typography-caption) {\n font: var(--ic-font-caption);\n letter-spacing: var(--ic-font-letter-spacing-0pt0025);\n}\n\n:host(.ic-typography-caption-uppercase) {\n font: var(--ic-font-caption);\n letter-spacing: var(--ic-font-letter-spacing-0pt0025);\n text-transform: uppercase;\n}\n\n:host(.ic-typography-label) {\n font: var(--ic-font-label);\n letter-spacing: var(--ic-font-letter-spacing-0pt025);\n}\n\n:host(.ic-typography-label-uppercase) {\n font: var(--ic-font-label);\n letter-spacing: var(--ic-font-letter-spacing-0pt025);\n text-transform: uppercase;\n}\n\n:host(.ic-typography-code-large) {\n font: var(--ic-font-code-large);\n letter-spacing: var(--ic-font-letter-spacing-0pt025);\n}\n\n:host(.ic-typography-code-small) {\n font: var(--ic-font-code-small);\n letter-spacing: var(--ic-font-letter-spacing-0pt005);\n}\n\n:host(.ic-typography-code-extra-small) {\n font: var(--ic-font-code-extra-small);\n letter-spacing: var(--ic-font-letter-spacing-0pt025);\n}\n\n:host(.ic-typography-badge) {\n font: var(--ic-font-badge);\n letter-spacing: var(--ic-font-letter-spacing-0pt0025);\n}\n\n:host(.ic-typography-badge-small) {\n font: var(--ic-font-badge-small);\n letter-spacing: var(--ic-font-letter-spacing-0pt0025);\n}\n\n:host(.ic-typography-no-wrap) {\n white-space: nowrap;\n}\n\n:host ::slotted(h1),\n:host ::slotted(h2),\n:host ::slotted(h3),\n:host ::slotted(h4),\n:host ::slotted(h5),\n:host ::slotted(h6),\n:host ::slotted(p),\n:host ::slotted(label) {\n font: inherit;\n letter-spacing: inherit;\n}\n\n.trunc-wrapper {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n line-clamp: var(--truncation-max-lines, initial);\n -webkit-line-clamp: var(--truncation-max-lines, initial);\n overflow: hidden;\n padding-right: var(--ellipsis-padding-right, 0);\n}\n\n.trunc-btn {\n border: none;\n background: none;\n padding: 0;\n color: var(--ic-color-primary-text);\n text-decoration: underline;\n font-weight: var(--ic-font-weight-bold);\n transition: var(--ic-easing-transition-fast);\n}\n\n.trunc-btn:hover,\n.trunc-btn.focus {\n outline: none;\n border-bottom: 0.25rem solid !important;\n margin-bottom: -0.25rem !important;\n text-decoration: none;\n cursor: pointer;\n}\n\n:host(.strikethrough) {\n text-decoration: line-through;\n}\n\n:host(.underline) {\n text-decoration: underline;\n}\n\n:host(.underline.strikethrough) {\n text-decoration: line-through underline;\n}\n\n:host(.italic) {\n font-style: italic !important;\n}\n\n:host(.bold) {\n font-weight: var(--ic-font-weight-bold);\n}\n\n:host(.in-ag-grid),\n:host(.in-ag-grid) ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n@supports (text-underline-offset: 25%) {\n .trunc-btn:hover,\n .trunc-btn.focus {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 25%;\n border-bottom: 0 !important;\n margin-bottom: 0 !important;\n }\n}\n\n/* Add back in after storybook has the `color-scheme: light dark` code */\n\n/* @media (prefers-color-scheme: dark) and (not (forced-colors: active)) {\n :host,\n .trunc-btn {\n color: var(--ic-architectural-white);\n }\n} */\n","import { h, Host, } from \"@stencil/core\";\nimport { checkResizeObserver, isElInAGGrid } from \"../../utils/helpers\";\nexport class Typography {\n constructor() {\n this.focusBtnFromKeyboard = true;\n this.inAGGrid = false;\n this.lastMarkerTop = 0;\n this.lastWidth = 0;\n this.resizeObserver = null;\n this.truncatedHeight = 0;\n this.toggleExpanded = (ev) => {\n ev.stopPropagation();\n this.expanded = !this.expanded;\n this.typographyTruncationExpandToggle.emit({\n expanded: this.expanded,\n typographyEl: this.el,\n });\n };\n this.checkMarkerPosition = (elTop, markerTop) => {\n if (markerTop - elTop < this.truncatedHeight) {\n this.truncated = false;\n this.expanded = false;\n }\n else {\n this.truncated = true;\n }\n };\n this.getElementTop = (el) => {\n return el.getClientRects && el.getClientRects()[0]\n ? el.getClientRects()[0].top\n : 0;\n };\n this.runResizeObserver = () => {\n this.resizeObserver = new ResizeObserver(() => {\n clearTimeout(this.resizeInterval);\n this.resizeInterval = window.setTimeout(this.resizeObserverCallback, 50);\n });\n this.resizeObserver.observe(this.truncWrapperEl);\n };\n this.resizeObserverCallback = () => {\n if (this.lastWidth === this.el.clientWidth) {\n return;\n }\n if (this.truncatedHeight === 0) {\n this.checkMaxLines(this.el.clientHeight);\n return;\n }\n const markerTop = this.getElementTop(this.marker);\n if (markerTop === this.lastMarkerTop) {\n return;\n }\n this.checkMarkerPosition(this.getElementTop(this.el), markerTop);\n this.lastMarkerTop = markerTop;\n this.lastWidth = this.el.clientWidth;\n };\n this.truncButtonFocus = () => {\n if (this.focusBtnFromKeyboard) {\n this.truncButtonFocussed = true;\n }\n };\n this.truncButtonBlur = () => {\n this.focusBtnFromKeyboard = true;\n this.truncButtonFocussed = false;\n };\n this.truncButtonFocusFromMouse = () => {\n this.focusBtnFromKeyboard = false;\n };\n this.truncated = false;\n this.truncButtonFocussed = false;\n this.applyVerticalMargins = false;\n this.bold = false;\n this.italic = false;\n this.maxLines = undefined;\n this.strikethrough = false;\n this.underline = false;\n this.variant = \"body\";\n this.expanded = false;\n }\n watchExpandedHandler() {\n this.el.setAttribute(\"style\", `--truncation-max-lines: ${this.expanded ? \"initial\" : this.maxLines}`);\n }\n disconnectedCallback() {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n /**\n * @internal This is used by data table to remove all truncation in certain events\n */\n async resetTruncation() {\n if (this.truncated) {\n this.truncated = false;\n this.maxLines = 0;\n this.el.removeAttribute(\"max-lines\");\n this.expanded = false;\n this.el.removeAttribute(\"style\");\n }\n }\n componentDidLoad() {\n var _a, _b;\n if ((this.variant === \"body\" ||\n ((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===\n \"IC-TOOLTIP\") &&\n this.maxLines > 0) {\n const marker = document.createElement(\"span\");\n marker.style.visibility = \"hidden\";\n this.el.appendChild(marker);\n this.marker = marker;\n this.lastWidth = this.el.clientWidth;\n this.checkMaxLines(this.el.clientHeight);\n checkResizeObserver(this.runResizeObserver);\n }\n }\n componentWillRender() {\n if (isElInAGGrid(this.el)) {\n this.inAGGrid = true;\n }\n }\n /**\n * @internal This checks if the number of lines of text exceeds the maxLines prop. If so, set the line clamp CSS to the max lines\n * @param height - text container height\n */\n async checkMaxLines(height) {\n //24 is the height of a single line\n const numLines = Math.floor(height / 24);\n if (numLines > this.maxLines) {\n this.el.setAttribute(\"style\", `--truncation-max-lines: ${this.maxLines}`);\n this.truncatedHeight = this.el.clientHeight;\n this.truncated = true;\n }\n }\n /**\n * @internal This method makes it possible to set the expanded status of truncated text outside of ic-typography component\n */\n async setShowHideExpanded(expanded) {\n this.expanded = expanded;\n }\n render() {\n var _a, _b;\n const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, } = this;\n return (h(Host, { class: {\n [`ic-typography-${variant}`]: true,\n [`ic-typography-vertical-margins-${variant}`]: applyVerticalMargins,\n [\"bold\"]: bold,\n [\"italic\"]: italic,\n [\"strikethrough\"]: strikethrough,\n [\"underline\"]: underline,\n [\"in-ag-grid\"]: this.inAGGrid,\n } }, (variant === \"body\" ||\n ((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===\n \"IC-TOOLTIP\") &&\n maxLines > 0 ? (h(\"div\", { class: \"trunc-wrapper\", ref: (el) => (this.truncWrapperEl = el) }, h(\"slot\", null))) : (h(\"slot\", null)), variant === \"body\" && maxLines > 0 && truncated && (h(\"button\", { class: { \"trunc-btn\": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? \"See less\" : \"See more\"))));\n }\n static get is() { return \"ic-typography\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-typography.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-typography.css\"]\n };\n }\n static get properties() {\n return {\n \"applyVerticalMargins\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, appropriate top and bottom margins will be applied to the typography.\"\n },\n \"attribute\": \"apply-vertical-margins\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"bold\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the typography will have a bold font weight.\\nNote: This will have no impact on variants that already use an equivalent or higher font weight (h1, h2, and subtitle-large).\"\n },\n \"attribute\": \"bold\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"italic\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the typography will have an italic font style.\"\n },\n \"attribute\": \"italic\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"maxLines\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The number of lines to display before truncating the text, only used for the 'body' variant.\"\n },\n \"attribute\": \"max-lines\",\n \"reflect\": false\n },\n \"strikethrough\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the typography will have a line through it.\"\n },\n \"attribute\": \"strikethrough\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"underline\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the typography will have a line under it.\"\n },\n \"attribute\": \"underline\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcTypographyVariants\",\n \"resolved\": \"\\\"badge\\\" | \\\"badge-small\\\" | \\\"body\\\" | \\\"caption\\\" | \\\"caption-uppercase\\\" | \\\"code-extra-small\\\" | \\\"code-large\\\" | \\\"code-small\\\" | \\\"h1\\\" | \\\"h2\\\" | \\\"h3\\\" | \\\"h4\\\" | \\\"label\\\" | \\\"label-uppercase\\\" | \\\"subtitle-large\\\" | \\\"subtitle-small\\\"\",\n \"references\": {\n \"IcTypographyVariants\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcTypographyVariants\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ICDS typography style to use.\"\n },\n \"attribute\": \"variant\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"body\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"truncated\": {},\n \"truncButtonFocussed\": {},\n \"expanded\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"typographyTruncationExpandToggle\",\n \"name\": \"typographyTruncationExpandToggle\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Emits and event when the typography truncation button has been clicked.\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"{\\n expanded: boolean;\\n typographyEl: HTMLIcTypographyElement;\\n }\",\n \"resolved\": \"{ expanded: boolean; typographyEl: HTMLIcTypographyElement; }\",\n \"references\": {\n \"HTMLIcTypographyElement\": {\n \"location\": \"global\",\n \"id\": \"global::HTMLIcTypographyElement\"\n }\n }\n }\n }];\n }\n static get methods() {\n return {\n \"resetTruncation\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"This is used by data table to remove all truncation in certain events\"\n }]\n }\n },\n \"checkMaxLines\": {\n \"complexType\": {\n \"signature\": \"(height: number) => Promise<void>\",\n \"parameters\": [{\n \"name\": \"height\",\n \"type\": \"number\",\n \"docs\": \"- text container height\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"This checks if the number of lines of text exceeds the maxLines prop. If so, set the line clamp CSS to the max lines\"\n }, {\n \"name\": \"param\",\n \"text\": \"height - text container height\"\n }]\n }\n },\n \"setShowHideExpanded\": {\n \"complexType\": {\n \"signature\": \"(expanded: boolean) => Promise<void>\",\n \"parameters\": [{\n \"name\": \"expanded\",\n \"type\": \"boolean\",\n \"docs\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"This method makes it possible to set the expanded status of truncated text outside of ic-typography component\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"expanded\",\n \"methodName\": \"watchExpandedHandler\"\n }];\n }\n}\n//# sourceMappingURL=ic-typography.js.map\n"],"mappings":"mIAAA,MAAMA,EAAkB,k8M,MCEXC,EAAU,MACnB,WAAAC,CAAAC,G,6FACIC,KAAKC,qBAAuB,KAC5BD,KAAKE,SAAW,MAChBF,KAAKG,cAAgB,EACrBH,KAAKI,UAAY,EACjBJ,KAAKK,eAAiB,KACtBL,KAAKM,gBAAkB,EACvBN,KAAKO,eAAkBC,IACnBA,EAAGC,kBACHT,KAAKU,UAAYV,KAAKU,SACtBV,KAAKW,iCAAiCC,KAAK,CACvCF,SAAUV,KAAKU,SACfG,aAAcb,KAAKc,IACrB,EAENd,KAAKe,oBAAsB,CAACC,EAAOC,KAC/B,GAAIA,EAAYD,EAAQhB,KAAKM,gBAAiB,CAC1CN,KAAKkB,UAAY,MACjBlB,KAAKU,SAAW,K,KAEf,CACDV,KAAKkB,UAAY,I,GAGzBlB,KAAKmB,cAAiBL,GACXA,EAAGM,gBAAkBN,EAAGM,iBAAiB,GAC1CN,EAAGM,iBAAiB,GAAGC,IACvB,EAEVrB,KAAKsB,kBAAoB,KACrBtB,KAAKK,eAAiB,IAAIkB,gBAAe,KACrCC,aAAaxB,KAAKyB,gBAClBzB,KAAKyB,eAAiBC,OAAOC,WAAW3B,KAAK4B,uBAAwB,GAAG,IAE5E5B,KAAKK,eAAewB,QAAQ7B,KAAK8B,eAAe,EAEpD9B,KAAK4B,uBAAyB,KAC1B,GAAI5B,KAAKI,YAAcJ,KAAKc,GAAGiB,YAAa,CACxC,M,CAEJ,GAAI/B,KAAKM,kBAAoB,EAAG,CAC5BN,KAAKgC,cAAchC,KAAKc,GAAGmB,cAC3B,M,CAEJ,MAAMhB,EAAYjB,KAAKmB,cAAcnB,KAAKkC,QAC1C,GAAIjB,IAAcjB,KAAKG,cAAe,CAClC,M,CAEJH,KAAKe,oBAAoBf,KAAKmB,cAAcnB,KAAKc,IAAKG,GACtDjB,KAAKG,cAAgBc,EACrBjB,KAAKI,UAAYJ,KAAKc,GAAGiB,WAAW,EAExC/B,KAAKmC,iBAAmB,KACpB,GAAInC,KAAKC,qBAAsB,CAC3BD,KAAKoC,oBAAsB,I,GAGnCpC,KAAKqC,gBAAkB,KACnBrC,KAAKC,qBAAuB,KAC5BD,KAAKoC,oBAAsB,KAAK,EAEpCpC,KAAKsC,0BAA4B,KAC7BtC,KAAKC,qBAAuB,KAAK,EAErCD,KAAKkB,UAAY,MACjBlB,KAAKoC,oBAAsB,MAC3BpC,KAAKuC,qBAAuB,MAC5BvC,KAAKwC,KAAO,MACZxC,KAAKyC,OAAS,MACdzC,KAAK0C,SAAWC,UAChB3C,KAAK4C,cAAgB,MACrB5C,KAAK6C,UAAY,MACjB7C,KAAK8C,QAAU,OACf9C,KAAKU,SAAW,K,CAEpB,oBAAAqC,GACI/C,KAAKc,GAAGkC,aAAa,QAAS,2BAA2BhD,KAAKU,SAAW,UAAYV,KAAK0C,W,CAE9F,oBAAAO,GACI,GAAIjD,KAAKK,iBAAmB,KAAM,CAC9BL,KAAKK,eAAe6C,Y,EAM5B,qBAAMC,GACF,GAAInD,KAAKkB,UAAW,CAChBlB,KAAKkB,UAAY,MACjBlB,KAAK0C,SAAW,EAChB1C,KAAKc,GAAGsC,gBAAgB,aACxBpD,KAAKU,SAAW,MAChBV,KAAKc,GAAGsC,gBAAgB,Q,EAGhC,gBAAAC,GACI,IAAIC,EAAIC,EACR,IAAKvD,KAAK8C,UAAY,UAChBS,GAAMD,EAAKtD,KAAKc,GAAG0C,iBAAmB,MAAQF,SAAY,OAAS,EAAIA,EAAGG,QAAU,MAAQF,SAAY,OAAS,EAAIA,EAAGG,WACtH,eACJ1D,KAAK0C,SAAW,EAAG,CACnB,MAAMR,EAASyB,SAASC,cAAc,QACtC1B,EAAO2B,MAAMC,WAAa,SAC1B9D,KAAKc,GAAGiD,YAAY7B,GACpBlC,KAAKkC,OAASA,EACdlC,KAAKI,UAAYJ,KAAKc,GAAGiB,YACzB/B,KAAKgC,cAAchC,KAAKc,GAAGmB,cAC3B+B,EAAoBhE,KAAKsB,kB,EAGjC,mBAAA2C,GACI,GAAIC,EAAalE,KAAKc,IAAK,CACvBd,KAAKE,SAAW,I,EAOxB,mBAAM8B,CAAcmC,GAEhB,MAAMC,EAAWC,KAAKC,MAAMH,EAAS,IACrC,GAAIC,EAAWpE,KAAK0C,SAAU,CAC1B1C,KAAKc,GAAGkC,aAAa,QAAS,2BAA2BhD,KAAK0C,YAC9D1C,KAAKM,gBAAkBN,KAAKc,GAAGmB,aAC/BjC,KAAKkB,UAAY,I,EAMzB,yBAAMqD,CAAoB7D,GACtBV,KAAKU,SAAWA,C,CAEpB,MAAA8D,GACI,IAAIlB,EAAIC,EACR,MAAMT,QAAEA,EAAOP,qBAAEA,EAAoBG,SAAEA,EAAQxB,UAAEA,EAASR,SAAEA,EAAQkC,cAAEA,EAAaC,UAAEA,EAASJ,OAAEA,EAAMD,KAAEA,GAAUxC,KAClH,OAAQyE,EAAEC,EAAM,CAAEC,MAAO,CACjB,CAAC,iBAAiB7B,KAAY,KAC9B,CAAC,kCAAkCA,KAAYP,EAC/C,CAAC,QAASC,EACV,CAAC,UAAWC,EACZ,CAAC,iBAAkBG,EACnB,CAAC,aAAcC,EACf,CAAC,cAAe7C,KAAKE,YACnB4C,IAAY,UAChBS,GAAMD,EAAKtD,KAAKc,GAAG0C,iBAAmB,MAAQF,SAAY,OAAS,EAAIA,EAAGG,QAAU,MAAQF,SAAY,OAAS,EAAIA,EAAGG,WACtH,eACJhB,EAAW,EAAK+B,EAAE,MAAO,CAAEE,MAAO,gBAAiBC,IAAM9D,GAAQd,KAAK8B,eAAiBhB,GAAO2D,EAAE,OAAQ,OAAWA,EAAE,OAAQ,MAAQ3B,IAAY,QAAUJ,EAAW,GAAKxB,GAAcuD,EAAE,SAAU,CAAEE,MAAO,CAAE,YAAa,KAAME,MAAO7E,KAAKoC,qBAAuB0C,QAAS9E,KAAKmC,iBAAkB4C,OAAQ/E,KAAKqC,gBAAiB2C,YAAahF,KAAKsC,0BAA2B2C,QAASjF,KAAKO,gBAAkBG,EAAW,WAAa,Y"}
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,f as i,h as s,H as r,g as o}from"./p-8455d1bb.js";import{c as a,i as c,o as l}from"./p-297e99cf.js";const n=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>\n</svg>`;const h=':host{display:block;border:none;position:relative}:host .tree-item-content{display:flex;align-items:center;height:calc(var(--ic-space-xl) + var(--ic-space-xs));padding:0 var(--ic-space-xs);text-decoration:none;color:var(--ic-primary-text)}::slotted([slot="router-item"]){display:flex;align-items:center;height:calc(var(--ic-space-xl) + var(--ic-space-xs));text-decoration:none;font-family:var(--ic-font-body-family);color:var(--ic-primary-text);padding:0 var(--ic-space-xs) !important}::slotted([slot="router-item"].ic-tree-item-single){padding-left:calc(var(--ic-space-xl) + var(--ic-space-xs)) !important}:host .tree-item-content:focus,::slotted([slot="router-item"]:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}:host .tree-item-content:hover,::slotted([slot="router-item"]:hover){background-color:var(--ic-action-dark-bg-hover) !important;cursor:pointer}:host .tree-item-content:active,::slotted([slot="router-item"]:active){background-color:var(--ic-action-dark-bg-active) !important}:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot="router-item"]){background-color:var(--ic-action-default-bg-hover) !important}:host(.ic-tree-item-small) .tree-item-content,:host(.ic-tree-item-small) ::slotted([slot="router-item"]){height:var(--ic-space-xl)}:host(.ic-tree-item-large) .tree-item-content,:host(.ic-tree-item-large) ::slotted([slot="router-item"]){height:var(--ic-space-xxl)}:host(.ic-tree-item-disabled){pointer-events:none}:host(.ic-tree-item-disabled) .tree-item-content,:host(.ic-tree-item-disabled) .arrow-dropdown,:host(.ic-tree-item-disabled) ::slotted([slot="icon"]),:host(.ic-tree-item-disabled) ::slotted([slot="router-item"]){color:var(--ic-architectural-200) !important;fill:var(--ic-architectural-200);pointer-events:none}:host(.ic-tree-item-light) .tree-item-content,:host(.ic-tree-item-light) .arrow-dropdown,:host(.ic-tree-item-light) ::slotted([slot="icon"]),:host(.ic-tree-item-light) ::slotted([slot="router-item"]){color:var(--ic-architectural-white);fill:var(--ic-architectural-white)}:host .arrow-dropdown{color:var(--ic-action-default);margin-right:var(--ic-space-xs)}:host(.ic-tree-item-small) .arrow-dropdown{margin-right:var(--ic-space-xxs)}:host .tree-item-expanded{transform:rotate(180deg);margin-top:calc(-1 * var(--ic-space-xxs))}:host .ic-tree-item-single{padding-left:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-tree-item-small) .ic-tree-item-single{padding-left:calc(var(--ic-space-xl) + var(--ic-space-xxs))}.icon-container{width:var(--ic-space-lg);height:var(--ic-space-lg);margin:0 var(--ic-space-xs) 0 0}:host(.ic-tree-item-small) .icon-container{margin:0 var(--ic-space-xxs) 0 0}.ic-text-overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ic-tooltip-overflow{overflow:hidden}@media (forced-colors: active){::slotted([slot="icon"]){fill:currentcolor}:host(.ic-tree-item-disabled) .tree-item-content,:host(.ic-tree-item-disabled) .arrow-dropdown,:host(.ic-tree-item-disabled) ::slotted([slot="icon"]),:host(.ic-tree-item-disabled) ::slotted([slot="router-item"]){color:GrayText !important;fill:GrayText !important}:host .tree-item-content:focus,::slotted([slot="router-item"]:focus){border:var(--ic-hc-border) !important}:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot="router-item"]){color:Highlight !important}}';let d=0;const m=class{constructor(s){t(this,s);this.icTreeItemSelected=e(this,"icTreeItemSelected",7);this.treeItemId=`ic-tree-item-${d++}`;this.treeItemTag="IC-TREE-ITEM";this.hostMutationObserver=null;this.TOOLTIP="ic-tooltip";this.handleTreeItemClicked=()=>{if(this.isParent){this.expanded=!this.expanded;this.hasParentExpanded=true}this.updateAriaLabel();this.selected=true;this.watchSelectedHandler()};this.setTreeItemPadding=()=>{let t=1;let e=this.el.parentElement;const i=this.el.shadowRoot.querySelector(".tree-item-content");const s=Array.from(e.children).map((t=>{if(t!==this.el&&!t.querySelector('[slot="router-item"]')&&!t.querySelector('[slot="label"]')){return t.children.length>0}else{return false}})).includes(true);const r=e.tagName===this.treeItemTag;const o=this.hasRouterSlot();if(s&&!this.el.isParent||r&&!this.el.isParent){if(o){this.routerSlot.classList.add("ic-tree-item-single")}else{i.classList.add("ic-tree-item-single")}}while(e){if(e.tagName===this.treeItemTag){t++;if(!this.el.isParent&&s){i.style.paddingLeft=`calc(var(--ic-space-xl) + ${t*16}px)`}else if(!this.el.isParent){i.style.paddingLeft=`calc(var(--ic-space-xs) + ${t*24}px`}else{i.style.paddingLeft=`${t*16}px`}}e=e.parentElement}};this.truncateTreeItemLabel=t=>{const e=t.shadowRoot.querySelector(".tree-item-label");const i=e===null||e===void 0?void 0:e.closest(this.TOOLTIP);const s=t.shadowRoot.querySelector(".tree-item-content");if((e===null||e===void 0?void 0:e.scrollHeight)>(s===null||s===void 0?void 0:s.clientHeight)){e.classList.add("ic-text-overflow");if(!i){const t=document.createElement("ic-tooltip");t.setAttribute("target",this.el.id);t.setAttribute("label",e.textContent);t.classList.add("ic-tooltip-overflow");t.setAttribute("placement","right");s.appendChild(t);t.appendChild(e)}}};this.hostMutationCallback=t=>{if(t.some((({type:t,addedNodes:e,removedNodes:i})=>t==="childList"?a(e,i,"icon"):false))){i(this)}};this.handleDisplayTooltip=t=>{const e=this.el.shadowRoot.querySelector(".tree-item-label");const i=e===null||e===void 0?void 0:e.closest(this.TOOLTIP);i===null||i===void 0?void 0:i.displayTooltip(t)};this.childTreeItems=undefined;this.appearance="dark";this.disabled=false;this.expanded=false;this.hasParentExpanded=false;this.href=undefined;this.hreflang="";this.isParent=false;this.label="";this.referrerpolicy=undefined;this.rel=undefined;this.selected=false;this.size="default";this.target=undefined}watchSelectedHandler(){if(this.selected){this.icTreeItemSelected.emit({id:this.el.id})}this.updateAriaLabel()}disconnectedCallback(){var t;(t=this.hostMutationObserver)===null||t===void 0?void 0:t.disconnect()}componentDidLoad(){this.childTreeItems=Array.from(this.el.children).filter((t=>t.tagName===this.treeItemTag));if(this.childTreeItems.length>0){this.isParent=true}this.setTreeItemPadding();this.updateAriaLabel();this.truncateTreeItemLabel(this.el);!c(this.el,"label")&&l([{prop:this.label,propName:"label"}],"Tree item");this.hostMutationObserver=new MutationObserver(this.hostMutationCallback);this.hostMutationObserver.observe(this.el,{childList:true})}componentDidUpdate(){if(this.hasParentExpanded){this.childTreeItems.forEach((t=>{this.truncateTreeItemLabel(t)}));this.hasParentExpanded=false}}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){t.stopImmediatePropagation();this.handleTreeItemClicked()}}async setFocus(){var t,e;if(this.hasRouterSlot()){(t=this.routerSlot)===null||t===void 0?void 0:t.focus()}else{(e=this.treeItemElement)===null||e===void 0?void 0:e.focus()}}async updateAriaLabel(){let t;if(this.hasRouterSlot()){t=this.routerSlot.textContent}else if(c(this.el,"label")){t=this.el.querySelector('[slot="label"]').textContent}else{t=this.label}if(this.isParent){t=`${t}, triggers submenu, ${this.expanded?"expanded":"collapsed"}`}if(this.el.parentElement){const e=Array.from(this.el.parentElement.children).filter((t=>t.tagName===this.treeItemTag));const i=e.indexOf(this.el)+1;const s=e.length;t=`${t}, ${i} of ${s}`}if(this.selected){t=`${t}, active`}if(this.disabled){t=`${t}, dimmed`}if(this.hasRouterSlot()){this.routerSlot.ariaLabel=t}else{this.treeItemElement.ariaLabel=t}}hasRouterSlot(){this.routerSlot=this.el.querySelector('[slot="router-item"]');return!!this.routerSlot}render(){const{appearance:t,disabled:e,label:i,selected:o,size:a,expanded:l}=this;const h=this.href&&!this.disabled?"a":"div";const d=h=="a"&&{href:this.href,hrefLang:this.hreflang,referrerPolicy:this.referrerpolicy,rel:this.rel,target:this.target};return s(r,{class:{[`ic-tree-item-${t}`]:true,"ic-tree-item-disabled":e,"ic-tree-item-selected":!e&&o,[`ic-tree-item-${a}`]:a!=="default"},id:this.treeItemId},this.hasRouterSlot()?s("slot",{name:"router-item"}):s(h,Object.assign({class:{"tree-item-content":true},tabIndex:e?-1:0,onClick:this.handleTreeItemClicked,ref:t=>this.treeItemElement=t,"aria-disabled":e?"true":"false","aria-live":"polite"},d,{onFocus:()=>this.handleDisplayTooltip(true),onBlur:()=>this.handleDisplayTooltip(false)}),this.isParent&&s("span",{class:{["arrow-dropdown"]:true,["tree-item-expanded"]:l},"aria-hidden":"true",innerHTML:n}),c(this.el,"icon")&&s("div",{class:"icon-container"},s("slot",{name:"icon"})),s("ic-typography",{class:"tree-item-label"},c(this.el,"label")?s("slot",{name:"label"}):i)),l&&s("div",{"aria-hidden":`${!l}`},s("slot",null)))}get el(){return o(this)}static get watchers(){return{selected:["watchSelectedHandler"]}}};m.style=h;export{m as ic_tree_item};
2
- //# sourceMappingURL=p-20997691.entry.js.map
1
+ import{r as t,c as e,f as i,h as s,H as r,g as o}from"./p-8455d1bb.js";import{c as a,i as l,o as c}from"./p-7435de65.js";const n=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>\n</svg>`;const h=':host{display:block;border:none;position:relative}:host .tree-item-content{display:flex;align-items:center;height:calc(var(--ic-space-xl) + var(--ic-space-xs));padding:0 var(--ic-space-xs);text-decoration:none;color:var(--ic-primary-text)}::slotted([slot="router-item"]){display:flex;align-items:center;height:calc(var(--ic-space-xl) + var(--ic-space-xs));text-decoration:none;font-family:var(--ic-font-body-family);color:var(--ic-primary-text);padding:0 var(--ic-space-xs) !important}::slotted([slot="router-item"].ic-tree-item-single){padding-left:calc(var(--ic-space-xl) + var(--ic-space-xs)) !important}:host .tree-item-content:focus,::slotted([slot="router-item"]:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}:host .tree-item-content:hover,::slotted([slot="router-item"]:hover){background-color:var(--ic-action-dark-bg-hover) !important;cursor:pointer}:host .tree-item-content:active,::slotted([slot="router-item"]:active){background-color:var(--ic-action-dark-bg-active) !important}:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot="router-item"]){background-color:var(--ic-action-default-bg-hover) !important}:host(.ic-tree-item-small) .tree-item-content,:host(.ic-tree-item-small) ::slotted([slot="router-item"]){height:var(--ic-space-xl)}:host(.ic-tree-item-large) .tree-item-content,:host(.ic-tree-item-large) ::slotted([slot="router-item"]){height:var(--ic-space-xxl)}:host(.ic-tree-item-disabled){pointer-events:none}:host(.ic-tree-item-disabled) .tree-item-content,:host(.ic-tree-item-disabled) .arrow-dropdown,:host(.ic-tree-item-disabled) ::slotted([slot="icon"]),:host(.ic-tree-item-disabled) ::slotted([slot="router-item"]){color:var(--ic-architectural-200) !important;fill:var(--ic-architectural-200);pointer-events:none}:host(.ic-tree-item-light) .tree-item-content,:host(.ic-tree-item-light) .arrow-dropdown,:host(.ic-tree-item-light) ::slotted([slot="icon"]),:host(.ic-tree-item-light) ::slotted([slot="router-item"]){color:var(--ic-architectural-white);fill:var(--ic-architectural-white)}:host .arrow-dropdown{color:var(--ic-action-default);margin-right:var(--ic-space-xs)}:host(.ic-tree-item-small) .arrow-dropdown{margin-right:var(--ic-space-xxs)}:host .tree-item-expanded{transform:rotate(180deg);margin-top:calc(-1 * var(--ic-space-xxs))}:host .ic-tree-item-single{padding-left:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-tree-item-small) .ic-tree-item-single{padding-left:calc(var(--ic-space-xl) + var(--ic-space-xxs))}.icon-container{width:var(--ic-space-lg);height:var(--ic-space-lg);margin:0 var(--ic-space-xs) 0 0}:host(.ic-tree-item-small) .icon-container{margin:0 var(--ic-space-xxs) 0 0}.ic-text-overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ic-tooltip-overflow{overflow:hidden}@media (forced-colors: active){::slotted([slot="icon"]){fill:currentcolor}:host(.ic-tree-item-disabled) .tree-item-content,:host(.ic-tree-item-disabled) .arrow-dropdown,:host(.ic-tree-item-disabled) ::slotted([slot="icon"]),:host(.ic-tree-item-disabled) ::slotted([slot="router-item"]){color:GrayText !important;fill:GrayText !important}:host .tree-item-content:focus,::slotted([slot="router-item"]:focus){border:var(--ic-hc-border) !important}:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot="router-item"]){color:Highlight !important}}';let d=0;const m=class{constructor(s){t(this,s);this.icTreeItemSelected=e(this,"icTreeItemSelected",7);this.treeItemId=`ic-tree-item-${d++}`;this.treeItemTag="IC-TREE-ITEM";this.hostMutationObserver=null;this.TOOLTIP="ic-tooltip";this.handleTreeItemClicked=()=>{if(this.isParent){this.expanded=!this.expanded;this.hasParentExpanded=true}this.updateAriaLabel();this.selected=true;this.watchSelectedHandler()};this.setTreeItemPadding=()=>{let t=1;let e=this.el.parentElement;const i=this.el.shadowRoot.querySelector(".tree-item-content");const s=Array.from(e.children).map((t=>{if(t!==this.el&&!t.querySelector('[slot="router-item"]')&&!t.querySelector('[slot="label"]')){return t.children.length>0}else{return false}})).includes(true);const r=e.tagName===this.treeItemTag;const o=this.hasRouterSlot();if(s&&!this.el.isParent||r&&!this.el.isParent){if(o){this.routerSlot.classList.add("ic-tree-item-single")}else{i.classList.add("ic-tree-item-single")}}while(e){if(e.tagName===this.treeItemTag){t++;if(!this.el.isParent&&s){i.style.paddingLeft=`calc(var(--ic-space-xl) + ${t*16}px)`}else if(!this.el.isParent){i.style.paddingLeft=`calc(var(--ic-space-xs) + ${t*24}px`}else{i.style.paddingLeft=`${t*16}px`}}e=e.parentElement}};this.truncateTreeItemLabel=t=>{const e=t.shadowRoot.querySelector(".tree-item-label");const i=e===null||e===void 0?void 0:e.closest(this.TOOLTIP);const s=t.shadowRoot.querySelector(".tree-item-content");if((e===null||e===void 0?void 0:e.scrollHeight)>(s===null||s===void 0?void 0:s.clientHeight)){e.classList.add("ic-text-overflow");if(!i){const t=document.createElement("ic-tooltip");t.setAttribute("target",this.el.id);t.setAttribute("label",e.textContent);t.classList.add("ic-tooltip-overflow");t.setAttribute("placement","right");s.appendChild(t);t.appendChild(e)}}};this.hostMutationCallback=t=>{if(t.some((({type:t,addedNodes:e,removedNodes:i})=>t==="childList"?a(e,i,"icon"):false))){i(this)}};this.handleDisplayTooltip=t=>{const e=this.el.shadowRoot.querySelector(".tree-item-label");const i=e===null||e===void 0?void 0:e.closest(this.TOOLTIP);i===null||i===void 0?void 0:i.displayTooltip(t)};this.childTreeItems=undefined;this.appearance="dark";this.disabled=false;this.expanded=false;this.hasParentExpanded=false;this.href=undefined;this.hreflang="";this.isParent=false;this.label="";this.referrerpolicy=undefined;this.rel=undefined;this.selected=false;this.size="default";this.target=undefined}watchSelectedHandler(){if(this.selected){this.icTreeItemSelected.emit({id:this.el.id})}this.updateAriaLabel()}disconnectedCallback(){var t;(t=this.hostMutationObserver)===null||t===void 0?void 0:t.disconnect()}componentDidLoad(){this.childTreeItems=Array.from(this.el.children).filter((t=>t.tagName===this.treeItemTag));if(this.childTreeItems.length>0){this.isParent=true}this.setTreeItemPadding();this.updateAriaLabel();this.truncateTreeItemLabel(this.el);!l(this.el,"label")&&c([{prop:this.label,propName:"label"}],"Tree item");this.hostMutationObserver=new MutationObserver(this.hostMutationCallback);this.hostMutationObserver.observe(this.el,{childList:true})}componentDidUpdate(){if(this.hasParentExpanded){this.childTreeItems.forEach((t=>{this.truncateTreeItemLabel(t)}));this.hasParentExpanded=false}}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){t.stopImmediatePropagation();this.handleTreeItemClicked()}}async setFocus(){var t,e;if(this.hasRouterSlot()){(t=this.routerSlot)===null||t===void 0?void 0:t.focus()}else{(e=this.treeItemElement)===null||e===void 0?void 0:e.focus()}}async updateAriaLabel(){let t;if(this.hasRouterSlot()){t=this.routerSlot.textContent}else if(l(this.el,"label")){t=this.el.querySelector('[slot="label"]').textContent}else{t=this.label}if(this.isParent){t=`${t}, triggers submenu, ${this.expanded?"expanded":"collapsed"}`}if(this.el.parentElement){const e=Array.from(this.el.parentElement.children).filter((t=>t.tagName===this.treeItemTag));const i=e.indexOf(this.el)+1;const s=e.length;t=`${t}, ${i} of ${s}`}if(this.selected){t=`${t}, active`}if(this.disabled){t=`${t}, dimmed`}if(this.hasRouterSlot()){this.routerSlot.ariaLabel=t}else{this.treeItemElement.ariaLabel=t}}hasRouterSlot(){this.routerSlot=this.el.querySelector('[slot="router-item"]');return!!this.routerSlot}render(){const{appearance:t,disabled:e,label:i,selected:o,size:a,expanded:c}=this;const h=this.href&&!this.disabled?"a":"div";const d=h=="a"&&{href:this.href,hrefLang:this.hreflang,referrerPolicy:this.referrerpolicy,rel:this.rel,target:this.target};return s(r,{class:{[`ic-tree-item-${t}`]:true,"ic-tree-item-disabled":e,"ic-tree-item-selected":!e&&o,[`ic-tree-item-${a}`]:a!=="default"},id:this.treeItemId},this.hasRouterSlot()?s("slot",{name:"router-item"}):s(h,Object.assign({class:{"tree-item-content":true},tabIndex:e?-1:0,onClick:this.handleTreeItemClicked,ref:t=>this.treeItemElement=t,"aria-disabled":e?"true":"false","aria-live":"polite"},d,{onFocus:()=>this.handleDisplayTooltip(true),onBlur:()=>this.handleDisplayTooltip(false)}),this.isParent&&s("span",{class:{["arrow-dropdown"]:true,["tree-item-expanded"]:c},"aria-hidden":"true",innerHTML:n}),l(this.el,"icon")&&s("div",{class:"icon-container"},s("slot",{name:"icon"})),s("ic-typography",{class:"tree-item-label"},l(this.el,"label")?s("slot",{name:"label"}):i)),c&&s("div",{"aria-hidden":`${!c}`},s("slot",null)))}get el(){return o(this)}static get watchers(){return{selected:["watchSelectedHandler"]}}};m.style=h;export{m as ic_tree_item};
2
+ //# sourceMappingURL=p-a7794aa9.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["icTreeItemCss","treeItemIds","TreeItem","this","treeItemId","treeItemTag","hostMutationObserver","TOOLTIP","handleTreeItemClicked","isParent","expanded","hasParentExpanded","updateAriaLabel","selected","watchSelectedHandler","setTreeItemPadding","level","parentElement","el","treeItemContent","shadowRoot","querySelector","isSiblingOfParent","Array","from","children","map","sibling","length","includes","isChild","tagName","isRouterItem","hasRouterSlot","routerSlot","classList","add","style","paddingLeft","truncateTreeItemLabel","treeItem","typographyEl","tooltip","closest","treeContent","scrollHeight","clientHeight","tooltipEl","document","createElement","setAttribute","id","textContent","appendChild","hostMutationCallback","mutationList","some","type","addedNodes","removedNodes","checkSlotInChildMutations","forceUpdate","handleDisplayTooltip","display","displayTooltip","icTreeItemSelected","emit","disconnectedCallback","_a","disconnect","componentDidLoad","childTreeItems","filter","child","isSlotUsed","onComponentRequiredPropUndefined","prop","label","propName","MutationObserver","observe","childList","componentDidUpdate","forEach","handleKeyDown","ev","key","stopImmediatePropagation","setFocus","focus","_b","treeItemElement","ariaLabel","treeItems","index","indexOf","parentChildren","disabled","render","appearance","size","Component","href","attrs","hrefLang","hreflang","referrerPolicy","referrerpolicy","rel","target","h","Host","class","name","Object","assign","tabIndex","onClick","ref","onFocus","onBlur","innerHTML","arrowDropdown"],"sources":["src/components/ic-tree-item/ic-tree-item.css?tag=ic-tree-item&encapsulation=shadow","src/components/ic-tree-item/ic-tree-item.tsx"],"sourcesContent":[":host {\n display: block;\n border: none;\n position: relative;\n}\n\n:host .tree-item-content {\n display: flex;\n align-items: center;\n height: calc(var(--ic-space-xl) + var(--ic-space-xs));\n padding: 0 var(--ic-space-xs);\n text-decoration: none;\n color: var(--ic-primary-text);\n}\n\n::slotted([slot=\"router-item\"]) {\n display: flex;\n align-items: center;\n height: calc(var(--ic-space-xl) + var(--ic-space-xs));\n text-decoration: none;\n font-family: var(--ic-font-body-family);\n color: var(--ic-primary-text);\n padding: 0 var(--ic-space-xs) !important;\n}\n\n::slotted([slot=\"router-item\"].ic-tree-item-single) {\n padding-left: calc(var(--ic-space-xl) + var(--ic-space-xs)) !important;\n}\n\n:host .tree-item-content:focus,\n::slotted([slot=\"router-item\"]:focus) {\n box-shadow: var(--ic-border-focus);\n border-radius: var(--ic-border-radius);\n transition: var(--ic-transition-duration-fast);\n outline: none;\n}\n\n:host .tree-item-content:hover,\n::slotted([slot=\"router-item\"]:hover) {\n background-color: var(--ic-action-dark-bg-hover) !important;\n cursor: pointer;\n}\n\n:host .tree-item-content:active,\n::slotted([slot=\"router-item\"]:active) {\n background-color: var(--ic-action-dark-bg-active) !important;\n}\n\n:host(.ic-tree-item-selected) .tree-item-content,\n:host(.ic-tree-item-selected) ::slotted([slot=\"router-item\"]) {\n background-color: var(--ic-action-default-bg-hover) !important;\n}\n\n:host(.ic-tree-item-small) .tree-item-content,\n:host(.ic-tree-item-small) ::slotted([slot=\"router-item\"]) {\n height: var(--ic-space-xl);\n}\n\n:host(.ic-tree-item-large) .tree-item-content,\n:host(.ic-tree-item-large) ::slotted([slot=\"router-item\"]) {\n height: var(--ic-space-xxl);\n}\n\n:host(.ic-tree-item-disabled) {\n pointer-events: none;\n}\n\n:host(.ic-tree-item-disabled) .tree-item-content,\n:host(.ic-tree-item-disabled) .arrow-dropdown,\n:host(.ic-tree-item-disabled) ::slotted([slot=\"icon\"]),\n:host(.ic-tree-item-disabled) ::slotted([slot=\"router-item\"]) {\n color: var(--ic-architectural-200) !important;\n fill: var(--ic-architectural-200);\n pointer-events: none;\n}\n\n:host(.ic-tree-item-light) .tree-item-content,\n:host(.ic-tree-item-light) .arrow-dropdown,\n:host(.ic-tree-item-light) ::slotted([slot=\"icon\"]),\n:host(.ic-tree-item-light) ::slotted([slot=\"router-item\"]) {\n color: var(--ic-architectural-white);\n fill: var(--ic-architectural-white);\n}\n\n:host .arrow-dropdown {\n color: var(--ic-action-default);\n margin-right: var(--ic-space-xs);\n}\n\n:host(.ic-tree-item-small) .arrow-dropdown {\n margin-right: var(--ic-space-xxs);\n}\n\n:host .tree-item-expanded {\n transform: rotate(180deg);\n margin-top: calc(-1 * var(--ic-space-xxs));\n}\n\n:host .ic-tree-item-single {\n padding-left: calc(var(--ic-space-xl) + var(--ic-space-xs));\n}\n\n:host(.ic-tree-item-small) .ic-tree-item-single {\n padding-left: calc(var(--ic-space-xl) + var(--ic-space-xxs));\n}\n\n.icon-container {\n width: var(--ic-space-lg);\n height: var(--ic-space-lg);\n margin: 0 var(--ic-space-xs) 0 0;\n}\n\n:host(.ic-tree-item-small) .icon-container {\n margin: 0 var(--ic-space-xxs) 0 0;\n}\n\n.ic-text-overflow {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.ic-tooltip-overflow {\n overflow: hidden;\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n ::slotted([slot=\"icon\"]) {\n fill: currentcolor;\n }\n\n :host(.ic-tree-item-disabled) .tree-item-content,\n :host(.ic-tree-item-disabled) .arrow-dropdown,\n :host(.ic-tree-item-disabled) ::slotted([slot=\"icon\"]),\n :host(.ic-tree-item-disabled) ::slotted([slot=\"router-item\"]) {\n color: GrayText !important;\n fill: GrayText !important;\n }\n\n :host .tree-item-content:focus,\n ::slotted([slot=\"router-item\"]:focus) {\n border: var(--ic-hc-border) !important;\n }\n\n :host(.ic-tree-item-selected) .tree-item-content,\n :host(.ic-tree-item-selected) ::slotted([slot=\"router-item\"]) {\n color: Highlight !important;\n }\n}\n","import {\n Component,\n h,\n Prop,\n Element,\n Event,\n EventEmitter,\n Host,\n Watch,\n State,\n Listen,\n forceUpdate,\n Method,\n} from \"@stencil/core\";\nimport { IcSizes, IcThemeForegroundNoDefault } from \"../../utils/types\";\nimport {\n isSlotUsed,\n onComponentRequiredPropUndefined,\n checkSlotInChildMutations,\n} from \"../../utils/helpers\";\nimport arrowDropdown from \"../../assets/arrow-dropdown.svg\";\n\nlet treeItemIds = 0;\n\n/**\n * @slot label - Content is set as the tree item label.\n * @slot icon - Content is placed to the left of the label.\n * @slot router-item - Handle routing by nesting your routes in this slot.\n */\n@Component({\n tag: \"ic-tree-item\",\n styleUrl: \"ic-tree-item.css\",\n shadow: true,\n})\nexport class TreeItem {\n private treeItemId = `ic-tree-item-${treeItemIds++}`;\n private treeItemElement: HTMLElement;\n private treeItemTag = \"IC-TREE-ITEM\";\n private routerSlot: HTMLElement;\n private hostMutationObserver: MutationObserver = null;\n private TOOLTIP = \"ic-tooltip\";\n\n @Element() el: HTMLIcTreeItemElement;\n\n @State() childTreeItems: HTMLIcTreeItemElement[];\n\n /**\n * @internal Determines whether the light or dark variant of the tree item should be displayed.\n */\n @Prop() appearance?: IcThemeForegroundNoDefault = \"dark\";\n\n /**\n * If `true`, the tree item appears in the disabled state.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * If `true`, the tree item appears in the expanded state.\n */\n @Prop({ mutable: true }) expanded: boolean = false;\n\n /**\n * @internal Determines if the parent tree item has been expanded.\n */\n @Prop({ mutable: true }) hasParentExpanded: boolean = false;\n\n /**\n * The URL that the tree item link points to. If set, the tree item will render as an \"a\" tag, otherwise it will render as a div.\n */\n @Prop() href?: string | undefined;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string = \"\";\n\n /**\n * @internal If `true`, the tree item is a parent of other tree items.\n */\n @Prop({ mutable: true }) isParent: boolean = false;\n\n /**\n * The label of the tree item.\n */\n @Prop() label: string = \"\";\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * If `true`, the tree item appears in the selected state.\n */\n @Prop({ mutable: true }) selected: boolean = false;\n @Watch(\"selected\")\n watchSelectedHandler() {\n if (this.selected) {\n this.icTreeItemSelected.emit({ id: this.el.id });\n }\n this.updateAriaLabel();\n }\n\n /**\n * @internal Determines the size of the tree item.\n */\n @Prop() size?: IcSizes = \"default\";\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n /**\n * Emitted when tree item is selected.\n */\n @Event() icTreeItemSelected: EventEmitter<{ id: string }>;\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n componentDidLoad(): void {\n this.childTreeItems = Array.from((this.el as HTMLElement).children).filter(\n (child) => child.tagName === this.treeItemTag\n ) as HTMLIcTreeItemElement[];\n\n if (this.childTreeItems.length > 0) {\n this.isParent = true;\n }\n\n this.setTreeItemPadding();\n\n this.updateAriaLabel();\n\n this.truncateTreeItemLabel(this.el);\n\n !isSlotUsed(this.el, \"label\") &&\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Tree item\"\n );\n\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n componentDidUpdate(): void {\n if (this.hasParentExpanded) {\n this.childTreeItems.forEach((child) => {\n this.truncateTreeItemLabel(child);\n });\n this.hasParentExpanded = false;\n }\n }\n\n @Listen(\"keydown\", {})\n handleKeyDown(ev: KeyboardEvent): void {\n if (ev.key === \"Enter\" || ev.key === \" \") {\n ev.stopImmediatePropagation();\n this.handleTreeItemClicked();\n }\n }\n\n /**\n * Sets focus on the native `input`.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.hasRouterSlot()) {\n this.routerSlot?.focus();\n } else {\n this.treeItemElement?.focus();\n }\n }\n\n private handleTreeItemClicked = (): void => {\n if (this.isParent) {\n this.expanded = !this.expanded;\n this.hasParentExpanded = true;\n }\n\n this.updateAriaLabel();\n this.selected = true;\n this.watchSelectedHandler();\n };\n\n /**\n * @internal Updates the aria-label of the tree item.\n */\n @Method()\n async updateAriaLabel(): Promise<void> {\n let ariaLabel;\n\n if (this.hasRouterSlot()) {\n ariaLabel = this.routerSlot.textContent;\n } else if (isSlotUsed(this.el, \"label\")) {\n ariaLabel = this.el.querySelector('[slot=\"label\"]').textContent;\n } else {\n ariaLabel = this.label;\n }\n\n if (this.isParent) {\n ariaLabel = `${ariaLabel}, triggers submenu, ${\n this.expanded ? \"expanded\" : \"collapsed\"\n }`;\n }\n\n if (this.el.parentElement) {\n const treeItems = Array.from(\n (this.el.parentElement as HTMLElement).children\n ).filter(\n (child) => child.tagName === this.treeItemTag\n ) as HTMLIcTreeItemElement[];\n\n const index = treeItems.indexOf(this.el) + 1;\n const parentChildren = treeItems.length;\n\n ariaLabel = `${ariaLabel}, ${index} of ${parentChildren}`;\n }\n\n if (this.selected) {\n ariaLabel = `${ariaLabel}, active`;\n }\n\n if (this.disabled) {\n ariaLabel = `${ariaLabel}, dimmed`;\n }\n\n if (this.hasRouterSlot()) {\n this.routerSlot.ariaLabel = ariaLabel;\n } else {\n this.treeItemElement.ariaLabel = ariaLabel;\n }\n }\n\n private setTreeItemPadding = () => {\n let level = 1;\n let parentElement = this.el.parentElement;\n const treeItemContent = this.el.shadowRoot.querySelector(\n \".tree-item-content\"\n ) as HTMLElement;\n\n const isSiblingOfParent = Array.from(parentElement.children)\n .map((sibling) => {\n if (\n sibling !== this.el &&\n !sibling.querySelector('[slot=\"router-item\"]') &&\n !sibling.querySelector('[slot=\"label\"]')\n ) {\n return sibling.children.length > 0;\n } else {\n return false;\n }\n })\n .includes(true);\n\n const isChild = parentElement.tagName === this.treeItemTag;\n\n const isRouterItem = this.hasRouterSlot();\n\n if (\n (isSiblingOfParent && !this.el.isParent) ||\n (isChild && !this.el.isParent)\n ) {\n if (isRouterItem) {\n this.routerSlot.classList.add(\"ic-tree-item-single\");\n } else {\n treeItemContent.classList.add(\"ic-tree-item-single\");\n }\n }\n\n while (parentElement) {\n if (parentElement.tagName === this.treeItemTag) {\n level++;\n if (!this.el.isParent && isSiblingOfParent) {\n treeItemContent.style.paddingLeft = `calc(var(--ic-space-xl) + ${\n level * 16\n }px)`;\n } else if (!this.el.isParent) {\n treeItemContent.style.paddingLeft = `calc(var(--ic-space-xs) + ${\n level * 24\n }px`;\n } else {\n treeItemContent.style.paddingLeft = `${level * 16}px`;\n }\n }\n parentElement = parentElement.parentElement;\n }\n };\n\n private truncateTreeItemLabel = (treeItem: HTMLIcTreeItemElement) => {\n const typographyEl: HTMLIcTypographyElement =\n treeItem.shadowRoot.querySelector(\".tree-item-label\");\n const tooltip = typographyEl?.closest(this.TOOLTIP);\n const treeContent: HTMLElement =\n treeItem.shadowRoot.querySelector(\".tree-item-content\");\n\n if (typographyEl?.scrollHeight > treeContent?.clientHeight) {\n typographyEl.classList.add(\"ic-text-overflow\");\n\n if (!tooltip) {\n const tooltipEl = document.createElement(\"ic-tooltip\");\n tooltipEl.setAttribute(\"target\", this.el.id);\n tooltipEl.setAttribute(\"label\", typographyEl.textContent);\n tooltipEl.classList.add(\"ic-tooltip-overflow\");\n tooltipEl.setAttribute(\"placement\", \"right\");\n treeContent.appendChild(tooltipEl);\n tooltipEl.appendChild(typographyEl);\n }\n }\n };\n\n private hasRouterSlot(): boolean {\n this.routerSlot = this.el.querySelector('[slot=\"router-item\"]');\n return !!this.routerSlot;\n }\n\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n if (\n mutationList.some(({ type, addedNodes, removedNodes }) =>\n type === \"childList\"\n ? checkSlotInChildMutations(addedNodes, removedNodes, \"icon\")\n : false\n )\n ) {\n forceUpdate(this);\n }\n };\n\n private handleDisplayTooltip = (display: boolean) => {\n const typographyEl: HTMLIcTypographyElement =\n this.el.shadowRoot.querySelector(\".tree-item-label\");\n const tooltip: HTMLIcTooltipElement = typographyEl?.closest(this.TOOLTIP);\n\n tooltip?.displayTooltip(display);\n };\n\n render() {\n const { appearance, disabled, label, selected, size, expanded } = this;\n\n const Component = this.href && !this.disabled ? \"a\" : \"div\";\n\n const attrs = Component == \"a\" && {\n href: this.href,\n hrefLang: this.hreflang,\n referrerPolicy: this.referrerpolicy,\n rel: this.rel,\n target: this.target,\n };\n\n return (\n <Host\n class={{\n [`ic-tree-item-${appearance}`]: true,\n \"ic-tree-item-disabled\": disabled,\n \"ic-tree-item-selected\": !disabled && selected,\n [`ic-tree-item-${size}`]: size !== \"default\",\n }}\n id={this.treeItemId}\n >\n {this.hasRouterSlot() ? (\n <slot name=\"router-item\" />\n ) : (\n <Component\n class={{\n \"tree-item-content\": true,\n }}\n tabIndex={disabled ? -1 : 0}\n onClick={this.handleTreeItemClicked}\n ref={(el) => (this.treeItemElement = el)}\n aria-disabled={disabled ? \"true\" : \"false\"}\n aria-live=\"polite\"\n {...attrs}\n onFocus={() => this.handleDisplayTooltip(true)}\n onBlur={() => this.handleDisplayTooltip(false)}\n >\n {this.isParent && (\n <span\n class={{\n [\"arrow-dropdown\"]: true,\n [\"tree-item-expanded\"]: expanded,\n }}\n aria-hidden=\"true\"\n innerHTML={arrowDropdown}\n />\n )}\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon-container\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography class=\"tree-item-label\">\n {isSlotUsed(this.el, \"label\") ? <slot name=\"label\" /> : label}\n </ic-typography>\n </Component>\n )}\n {expanded && (\n <div aria-hidden={`${!expanded}`}>\n <slot />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"ySAAA,MAAMA,EAAgB,84GCsBtB,IAAIC,EAAc,E,MAYLC,EAAQ,M,gFACXC,KAAAC,WAAa,gBAAgBH,MAE7BE,KAAAE,YAAc,eAEdF,KAAAG,qBAAyC,KACzCH,KAAAI,QAAU,aA+IVJ,KAAAK,sBAAwB,KAC9B,GAAIL,KAAKM,SAAU,CACjBN,KAAKO,UAAYP,KAAKO,SACtBP,KAAKQ,kBAAoB,I,CAG3BR,KAAKS,kBACLT,KAAKU,SAAW,KAChBV,KAAKW,sBAAsB,EAoDrBX,KAAAY,mBAAqB,KAC3B,IAAIC,EAAQ,EACZ,IAAIC,EAAgBd,KAAKe,GAAGD,cAC5B,MAAME,EAAkBhB,KAAKe,GAAGE,WAAWC,cACzC,sBAGF,MAAMC,EAAoBC,MAAMC,KAAKP,EAAcQ,UAChDC,KAAKC,IACJ,GACEA,IAAYxB,KAAKe,KAChBS,EAAQN,cAAc,0BACtBM,EAAQN,cAAc,kBACvB,CACA,OAAOM,EAAQF,SAASG,OAAS,C,KAC5B,CACL,OAAO,K,KAGVC,SAAS,MAEZ,MAAMC,EAAUb,EAAcc,UAAY5B,KAAKE,YAE/C,MAAM2B,EAAe7B,KAAK8B,gBAE1B,GACGX,IAAsBnB,KAAKe,GAAGT,UAC9BqB,IAAY3B,KAAKe,GAAGT,SACrB,CACA,GAAIuB,EAAc,CAChB7B,KAAK+B,WAAWC,UAAUC,IAAI,sB,KACzB,CACLjB,EAAgBgB,UAAUC,IAAI,sB,EAIlC,MAAOnB,EAAe,CACpB,GAAIA,EAAcc,UAAY5B,KAAKE,YAAa,CAC9CW,IACA,IAAKb,KAAKe,GAAGT,UAAYa,EAAmB,CAC1CH,EAAgBkB,MAAMC,YAAc,6BAClCtB,EAAQ,O,MAEL,IAAKb,KAAKe,GAAGT,SAAU,CAC5BU,EAAgBkB,MAAMC,YAAc,6BAClCtB,EAAQ,M,KAEL,CACLG,EAAgBkB,MAAMC,YAAc,GAAGtB,EAAQ,M,EAGnDC,EAAgBA,EAAcA,a,GAI1Bd,KAAAoC,sBAAyBC,IAC/B,MAAMC,EACJD,EAASpB,WAAWC,cAAc,oBACpC,MAAMqB,EAAUD,IAAY,MAAZA,SAAY,SAAZA,EAAcE,QAAQxC,KAAKI,SAC3C,MAAMqC,EACJJ,EAASpB,WAAWC,cAAc,sBAEpC,IAAIoB,IAAY,MAAZA,SAAY,SAAZA,EAAcI,eAAeD,IAAW,MAAXA,SAAW,SAAXA,EAAaE,cAAc,CAC1DL,EAAaN,UAAUC,IAAI,oBAE3B,IAAKM,EAAS,CACZ,MAAMK,EAAYC,SAASC,cAAc,cACzCF,EAAUG,aAAa,SAAU/C,KAAKe,GAAGiC,IACzCJ,EAAUG,aAAa,QAAST,EAAaW,aAC7CL,EAAUZ,UAAUC,IAAI,uBACxBW,EAAUG,aAAa,YAAa,SACpCN,EAAYS,YAAYN,GACxBA,EAAUM,YAAYZ,E,IAUpBtC,KAAAmD,qBAAwBC,IAC9B,GACEA,EAAaC,MAAK,EAAGC,OAAMC,aAAYC,kBACrCF,IAAS,YACLG,EAA0BF,EAAYC,EAAc,QACpD,QAEN,CACAE,EAAY1D,K,GAIRA,KAAA2D,qBAAwBC,IAC9B,MAAMtB,EACJtC,KAAKe,GAAGE,WAAWC,cAAc,oBACnC,MAAMqB,EAAgCD,IAAY,MAAZA,SAAY,SAAZA,EAAcE,QAAQxC,KAAKI,SAEjEmC,IAAO,MAAPA,SAAO,SAAPA,EAASsB,eAAeD,EAAQ,E,8CArSgB,O,cAKrB,M,cAKgB,M,uBAKS,M,kCAU1B,G,cAKiB,M,WAKrB,G,+DAeqB,M,UAYpB,U,sBAVzB,oBAAAjD,GACE,GAAIX,KAAKU,SAAU,CACjBV,KAAK8D,mBAAmBC,KAAK,CAAEf,GAAIhD,KAAKe,GAAGiC,I,CAE7ChD,KAAKS,iB,CAkBP,oBAAAuD,G,OACEC,EAAAjE,KAAKG,wBAAoB,MAAA8D,SAAA,SAAAA,EAAEC,Y,CAG7B,gBAAAC,GACEnE,KAAKoE,eAAiBhD,MAAMC,KAAMrB,KAAKe,GAAmBO,UAAU+C,QACjEC,GAAUA,EAAM1C,UAAY5B,KAAKE,cAGpC,GAAIF,KAAKoE,eAAe3C,OAAS,EAAG,CAClCzB,KAAKM,SAAW,I,CAGlBN,KAAKY,qBAELZ,KAAKS,kBAELT,KAAKoC,sBAAsBpC,KAAKe,KAE/BwD,EAAWvE,KAAKe,GAAI,UACnByD,EACE,CAAC,CAAEC,KAAMzE,KAAK0E,MAAOC,SAAU,UAC/B,aAGJ3E,KAAKG,qBAAuB,IAAIyE,iBAAiB5E,KAAKmD,sBACtDnD,KAAKG,qBAAqB0E,QAAQ7E,KAAKe,GAAI,CACzC+D,UAAW,M,CAIf,kBAAAC,GACE,GAAI/E,KAAKQ,kBAAmB,CAC1BR,KAAKoE,eAAeY,SAASV,IAC3BtE,KAAKoC,sBAAsBkC,EAAM,IAEnCtE,KAAKQ,kBAAoB,K,EAK7B,aAAAyE,CAAcC,GACZ,GAAIA,EAAGC,MAAQ,SAAWD,EAAGC,MAAQ,IAAK,CACxCD,EAAGE,2BACHpF,KAAKK,uB,EAQT,cAAMgF,G,QACJ,GAAIrF,KAAK8B,gBAAiB,EACxBmC,EAAAjE,KAAK+B,cAAU,MAAAkC,SAAA,SAAAA,EAAEqB,O,KACZ,EACLC,EAAAvF,KAAKwF,mBAAe,MAAAD,SAAA,SAAAA,EAAED,O,EAmB1B,qBAAM7E,GACJ,IAAIgF,EAEJ,GAAIzF,KAAK8B,gBAAiB,CACxB2D,EAAYzF,KAAK+B,WAAWkB,W,MACvB,GAAIsB,EAAWvE,KAAKe,GAAI,SAAU,CACvC0E,EAAYzF,KAAKe,GAAGG,cAAc,kBAAkB+B,W,KAC/C,CACLwC,EAAYzF,KAAK0E,K,CAGnB,GAAI1E,KAAKM,SAAU,CACjBmF,EAAY,GAAGA,wBACbzF,KAAKO,SAAW,WAAa,a,CAIjC,GAAIP,KAAKe,GAAGD,cAAe,CACzB,MAAM4E,EAAYtE,MAAMC,KACrBrB,KAAKe,GAAGD,cAA8BQ,UACvC+C,QACCC,GAAUA,EAAM1C,UAAY5B,KAAKE,cAGpC,MAAMyF,EAAQD,EAAUE,QAAQ5F,KAAKe,IAAM,EAC3C,MAAM8E,EAAiBH,EAAUjE,OAEjCgE,EAAY,GAAGA,MAAcE,QAAYE,G,CAG3C,GAAI7F,KAAKU,SAAU,CACjB+E,EAAY,GAAGA,W,CAGjB,GAAIzF,KAAK8F,SAAU,CACjBL,EAAY,GAAGA,W,CAGjB,GAAIzF,KAAK8B,gBAAiB,CACxB9B,KAAK+B,WAAW0D,UAAYA,C,KACvB,CACLzF,KAAKwF,gBAAgBC,UAAYA,C,EAiF7B,aAAA3D,GACN9B,KAAK+B,WAAa/B,KAAKe,GAAGG,cAAc,wBACxC,QAASlB,KAAK+B,U,CAuBhB,MAAAgE,GACE,MAAMC,WAAEA,EAAUF,SAAEA,EAAQpB,MAAEA,EAAKhE,SAAEA,EAAQuF,KAAEA,EAAI1F,SAAEA,GAAaP,KAElE,MAAMkG,EAAYlG,KAAKmG,OAASnG,KAAK8F,SAAW,IAAM,MAEtD,MAAMM,EAAQF,GAAa,KAAO,CAChCC,KAAMnG,KAAKmG,KACXE,SAAUrG,KAAKsG,SACfC,eAAgBvG,KAAKwG,eACrBC,IAAKzG,KAAKyG,IACVC,OAAQ1G,KAAK0G,QAGf,OACEC,EAACC,EAAI,CACHC,MAAO,CACL,CAAC,gBAAgBb,KAAe,KAChC,wBAAyBF,EACzB,yBAA0BA,GAAYpF,EACtC,CAAC,gBAAgBuF,KAASA,IAAS,WAErCjD,GAAIhD,KAAKC,YAERD,KAAK8B,gBACJ6E,EAAA,QAAMG,KAAK,gBAEXH,EAACT,EAASa,OAAAC,OAAA,CACRH,MAAO,CACL,oBAAqB,MAEvBI,SAAUnB,GAAY,EAAI,EAC1BoB,QAASlH,KAAKK,sBACd8G,IAAMpG,GAAQf,KAAKwF,gBAAkBzE,EAAG,gBACzB+E,EAAW,OAAS,QAAO,YAChC,UACNM,EAAK,CACTgB,QAAS,IAAMpH,KAAK2D,qBAAqB,MACzC0D,OAAQ,IAAMrH,KAAK2D,qBAAqB,SAEvC3D,KAAKM,UACJqG,EAAA,QACEE,MAAO,CACL,CAAC,kBAAmB,KACpB,CAAC,sBAAuBtG,GACzB,cACW,OACZ+G,UAAWC,IAGdhD,EAAWvE,KAAKe,GAAI,SACnB4F,EAAA,OAAKE,MAAM,kBACTF,EAAA,QAAMG,KAAK,UAGfH,EAAA,iBAAeE,MAAM,mBAClBtC,EAAWvE,KAAKe,GAAI,SAAW4F,EAAA,QAAMG,KAAK,UAAapC,IAI7DnE,GACCoG,EAAA,qBAAkB,IAAIpG,KACpBoG,EAAA,c"}
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,h as e,F as n,H as s,g as r}from"./p-8455d1bb.js";import{E as a,o as c,m as u}from"./p-297e99cf.js";var o="top";var h="bottom";var l="right";var m="left";var f="auto";var v=[o,h,l,m];var d="start";var p="end";var w="clippingParents";var b="viewport";var g="popper";var y="reference";var x=v.reduce((function(i,t){return i.concat([t+"-"+d,t+"-"+p])}),[]);var k=[].concat(v,[f]).reduce((function(i,t){return i.concat([t,t+"-"+d,t+"-"+p])}),[]);var O="beforeRead";var j="read";var L="afterRead";var I="beforeMain";var z="main";var E="afterMain";var M="beforeWrite";var S="write";var T="afterWrite";var C=[O,j,L,I,z,E,M,S,T];function B(i){return i?(i.nodeName||"").toLowerCase():null}function A(i){if(i==null){return window}if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t?t.defaultView||window:window}return i}function H(i){var t=A(i).Element;return i instanceof t||i instanceof Element}function $(i){var t=A(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function P(i){if(typeof ShadowRoot==="undefined"){return false}var t=A(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function R(i){var t=i.state;Object.keys(t.elements).forEach((function(i){var e=t.styles[i]||{};var n=t.attributes[i]||{};var s=t.elements[i];if(!$(s)||!B(s)){return}Object.assign(s.style,e);Object.keys(n).forEach((function(i){var t=n[i];if(t===false){s.removeAttribute(i)}else{s.setAttribute(i,t===true?"":t)}}))}))}function D(i){var t=i.state;var e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper);t.styles=e;if(t.elements.arrow){Object.assign(t.elements.arrow.style,e.arrow)}return function(){Object.keys(t.elements).forEach((function(i){var n=t.elements[i];var s=t.attributes[i]||{};var r=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]);var a=r.reduce((function(i,t){i[t]="";return i}),{});if(!$(n)||!B(n)){return}Object.assign(n.style,a);Object.keys(s).forEach((function(i){n.removeAttribute(i)}))}))}}const N={name:"applyStyles",enabled:true,phase:"write",fn:R,effect:D,requires:["computeStyles"]};function U(i){return i.split("-")[0]}var q=Math.max;var W=Math.min;var K=Math.round;function F(){var i=navigator.userAgentData;if(i!=null&&i.brands&&Array.isArray(i.brands)){return i.brands.map((function(i){return i.brand+"/"+i.version})).join(" ")}return navigator.userAgent}function V(){return!/^((?!chrome|android).)*safari/i.test(F())}function _(i,t,e){if(t===void 0){t=false}if(e===void 0){e=false}var n=i.getBoundingClientRect();var s=1;var r=1;if(t&&$(i)){s=i.offsetWidth>0?K(n.width)/i.offsetWidth||1:1;r=i.offsetHeight>0?K(n.height)/i.offsetHeight||1:1}var a=H(i)?A(i):window,c=a.visualViewport;var u=!V()&&e;var o=(n.left+(u&&c?c.offsetLeft:0))/s;var h=(n.top+(u&&c?c.offsetTop:0))/r;var l=n.width/s;var m=n.height/r;return{width:l,height:m,top:h,right:o+l,bottom:h+m,left:o,x:o,y:h}}function J(i){var t=_(i);var e=i.offsetWidth;var n=i.offsetHeight;if(Math.abs(t.width-e)<=1){e=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function X(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t)){return true}else if(e&&P(e)){var n=t;do{if(n&&i.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function Z(i){return A(i).getComputedStyle(i)}function G(i){return["table","td","th"].indexOf(B(i))>=0}function Q(i){return((H(i)?i.ownerDocument:i.document)||window.document).documentElement}function Y(i){if(B(i)==="html"){return i}return i.assignedSlot||i.parentNode||(P(i)?i.host:null)||Q(i)}function ii(i){if(!$(i)||Z(i).position==="fixed"){return null}return i.offsetParent}function ti(i){var t=/firefox/i.test(F());var e=/Trident/i.test(F());if(e&&$(i)){var n=Z(i);if(n.position==="fixed"){return null}}var s=Y(i);if(P(s)){s=s.host}while($(s)&&["html","body"].indexOf(B(s))<0){var r=Z(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none"){return s}else{s=s.parentNode}}return null}function ei(i){var t=A(i);var e=ii(i);while(e&&G(e)&&Z(e).position==="static"){e=ii(e)}if(e&&(B(e)==="html"||B(e)==="body"&&Z(e).position==="static")){return t}return e||ti(i)||t}function ni(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function si(i,t,e){return q(i,W(t,e))}function ri(i,t,e){var n=si(i,t,e);return n>e?e:n}function ai(){return{top:0,right:0,bottom:0,left:0}}function ci(i){return Object.assign({},ai(),i)}function ui(i,t){return t.reduce((function(t,e){t[e]=i;return t}),{})}var oi=function i(t,e){t=typeof t==="function"?t(Object.assign({},e.rects,{placement:e.placement})):t;return ci(typeof t!=="number"?t:ui(t,v))};function hi(i){var t;var e=i.state,n=i.name,s=i.options;var r=e.elements.arrow;var a=e.modifiersData.popperOffsets;var c=U(e.placement);var u=ni(c);var f=[m,l].indexOf(c)>=0;var v=f?"height":"width";if(!r||!a){return}var d=oi(s.padding,e);var p=J(r);var w=u==="y"?o:m;var b=u==="y"?h:l;var g=e.rects.reference[v]+e.rects.reference[u]-a[u]-e.rects.popper[v];var y=a[u]-e.rects.reference[u];var x=ei(r);var k=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0;var O=g/2-y/2;var j=d[w];var L=k-p[v]-d[b];var I=k/2-p[v]/2+O;var z=si(j,I,L);var E=u;e.modifiersData[n]=(t={},t[E]=z,t.centerOffset=z-I,t)}function li(i){var t=i.state,e=i.options;var n=e.element,s=n===void 0?"[data-popper-arrow]":n;if(s==null){return}if(typeof s==="string"){s=t.elements.popper.querySelector(s);if(!s){return}}if(!X(t.elements.popper,s)){return}t.elements.arrow=s}const mi={name:"arrow",enabled:true,phase:"main",fn:hi,effect:li,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fi(i){return i.split("-")[1]}var vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function di(i,t){var e=i.x,n=i.y;var s=t.devicePixelRatio||1;return{x:K(e*s)/s||0,y:K(n*s)/s||0}}function pi(i){var t;var e=i.popper,n=i.popperRect,s=i.placement,r=i.variation,a=i.offsets,c=i.position,u=i.gpuAcceleration,f=i.adaptive,v=i.roundOffsets,d=i.isFixed;var w=a.x,b=w===void 0?0:w,g=a.y,y=g===void 0?0:g;var x=typeof v==="function"?v({x:b,y}):{x:b,y};b=x.x;y=x.y;var k=a.hasOwnProperty("x");var O=a.hasOwnProperty("y");var j=m;var L=o;var I=window;if(f){var z=ei(e);var E="clientHeight";var M="clientWidth";if(z===A(e)){z=Q(e);if(Z(z).position!=="static"&&c==="absolute"){E="scrollHeight";M="scrollWidth"}}z=z;if(s===o||(s===m||s===l)&&r===p){L=h;var S=d&&z===I&&I.visualViewport?I.visualViewport.height:z[E];y-=S-n.height;y*=u?1:-1}if(s===m||(s===o||s===h)&&r===p){j=l;var T=d&&z===I&&I.visualViewport?I.visualViewport.width:z[M];b-=T-n.width;b*=u?1:-1}}var C=Object.assign({position:c},f&&vi);var B=v===true?di({x:b,y},A(e)):{x:b,y};b=B.x;y=B.y;if(u){var H;return Object.assign({},C,(H={},H[L]=O?"0":"",H[j]=k?"0":"",H.transform=(I.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",H))}return Object.assign({},C,(t={},t[L]=O?y+"px":"",t[j]=k?b+"px":"",t.transform="",t))}function wi(i){var t=i.state,e=i.options;var n=e.gpuAcceleration,s=n===void 0?true:n,r=e.adaptive,a=r===void 0?true:r,c=e.roundOffsets,u=c===void 0?true:c;var o={placement:U(t.placement),variation:fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,pi(Object.assign({},o,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,pi(Object.assign({},o,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bi={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:wi,data:{}};var gi={passive:true};function yi(i){var t=i.state,e=i.instance,n=i.options;var s=n.scroll,r=s===void 0?true:s,a=n.resize,c=a===void 0?true:a;var u=A(t.elements.popper);var o=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(r){o.forEach((function(i){i.addEventListener("scroll",e.update,gi)}))}if(c){u.addEventListener("resize",e.update,gi)}return function(){if(r){o.forEach((function(i){i.removeEventListener("scroll",e.update,gi)}))}if(c){u.removeEventListener("resize",e.update,gi)}}}const xi={name:"eventListeners",enabled:true,phase:"write",fn:function i(){},effect:yi,data:{}};var ki={left:"right",right:"left",bottom:"top",top:"bottom"};function Oi(i){return i.replace(/left|right|bottom|top/g,(function(i){return ki[i]}))}var ji={start:"end",end:"start"};function Li(i){return i.replace(/start|end/g,(function(i){return ji[i]}))}function Ii(i){var t=A(i);var e=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function zi(i){return _(Q(i)).left+Ii(i).scrollLeft}function Ei(i,t){var e=A(i);var n=Q(i);var s=e.visualViewport;var r=n.clientWidth;var a=n.clientHeight;var c=0;var u=0;if(s){r=s.width;a=s.height;var o=V();if(o||!o&&t==="fixed"){c=s.offsetLeft;u=s.offsetTop}}return{width:r,height:a,x:c+zi(i),y:u}}function Mi(i){var t;var e=Q(i);var n=Ii(i);var s=(t=i.ownerDocument)==null?void 0:t.body;var r=q(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0);var a=q(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);var c=-n.scrollLeft+zi(i);var u=-n.scrollTop;if(Z(s||e).direction==="rtl"){c+=q(e.clientWidth,s?s.clientWidth:0)-r}return{width:r,height:a,x:c,y:u}}function Si(i){var t=Z(i),e=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+n)}function Ti(i){if(["html","body","#document"].indexOf(B(i))>=0){return i.ownerDocument.body}if($(i)&&Si(i)){return i}return Ti(Y(i))}function Ci(i,t){var e;if(t===void 0){t=[]}var n=Ti(i);var s=n===((e=i.ownerDocument)==null?void 0:e.body);var r=A(n);var a=s?[r].concat(r.visualViewport||[],Si(n)?n:[]):n;var c=t.concat(a);return s?c:c.concat(Ci(Y(a)))}function Bi(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Ai(i,t){var e=_(i,false,t==="fixed");e.top=e.top+i.clientTop;e.left=e.left+i.clientLeft;e.bottom=e.top+i.clientHeight;e.right=e.left+i.clientWidth;e.width=i.clientWidth;e.height=i.clientHeight;e.x=e.left;e.y=e.top;return e}function Hi(i,t,e){return t===b?Bi(Ei(i,e)):H(t)?Ai(t,e):Bi(Mi(Q(i)))}function $i(i){var t=Ci(Y(i));var e=["absolute","fixed"].indexOf(Z(i).position)>=0;var n=e&&$(i)?ei(i):i;if(!H(n)){return[]}return t.filter((function(i){return H(i)&&X(i,n)&&B(i)!=="body"}))}function Pi(i,t,e,n){var s=t==="clippingParents"?$i(i):[].concat(t);var r=[].concat(s,[e]);var a=r[0];var c=r.reduce((function(t,e){var s=Hi(i,e,n);t.top=q(s.top,t.top);t.right=W(s.right,t.right);t.bottom=W(s.bottom,t.bottom);t.left=q(s.left,t.left);return t}),Hi(i,a,n));c.width=c.right-c.left;c.height=c.bottom-c.top;c.x=c.left;c.y=c.top;return c}function Ri(i){var t=i.reference,e=i.element,n=i.placement;var s=n?U(n):null;var r=n?fi(n):null;var a=t.x+t.width/2-e.width/2;var c=t.y+t.height/2-e.height/2;var u;switch(s){case o:u={x:a,y:t.y-e.height};break;case h:u={x:a,y:t.y+t.height};break;case l:u={x:t.x+t.width,y:c};break;case m:u={x:t.x-e.width,y:c};break;default:u={x:t.x,y:t.y}}var f=s?ni(s):null;if(f!=null){var v=f==="y"?"height":"width";switch(r){case d:u[f]=u[f]-(t[v]/2-e[v]/2);break;case p:u[f]=u[f]+(t[v]/2-e[v]/2);break}}return u}function Di(i,t){if(t===void 0){t={}}var e=t,n=e.placement,s=n===void 0?i.placement:n,r=e.strategy,a=r===void 0?i.strategy:r,c=e.boundary,u=c===void 0?w:c,m=e.rootBoundary,f=m===void 0?b:m,d=e.elementContext,p=d===void 0?g:d,x=e.altBoundary,k=x===void 0?false:x,O=e.padding,j=O===void 0?0:O;var L=ci(typeof j!=="number"?j:ui(j,v));var I=p===g?y:g;var z=i.rects.popper;var E=i.elements[k?I:p];var M=Pi(H(E)?E:E.contextElement||Q(i.elements.popper),u,f,a);var S=_(i.elements.reference);var T=Ri({reference:S,element:z,strategy:"absolute",placement:s});var C=Bi(Object.assign({},z,T));var B=p===g?C:S;var A={top:M.top-B.top+L.top,bottom:B.bottom-M.bottom+L.bottom,left:M.left-B.left+L.left,right:B.right-M.right+L.right};var $=i.modifiersData.offset;if(p===g&&$){var P=$[s];Object.keys(A).forEach((function(i){var t=[l,h].indexOf(i)>=0?1:-1;var e=[o,h].indexOf(i)>=0?"y":"x";A[i]+=P[e]*t}))}return A}function Ni(i,t){if(t===void 0){t={}}var e=t,n=e.placement,s=e.boundary,r=e.rootBoundary,a=e.padding,c=e.flipVariations,u=e.allowedAutoPlacements,o=u===void 0?k:u;var h=fi(n);var l=h?c?x:x.filter((function(i){return fi(i)===h})):v;var m=l.filter((function(i){return o.indexOf(i)>=0}));if(m.length===0){m=l}var f=m.reduce((function(t,e){t[e]=Di(i,{placement:e,boundary:s,rootBoundary:r,padding:a})[U(e)];return t}),{});return Object.keys(f).sort((function(i,t){return f[i]-f[t]}))}function Ui(i){if(U(i)===f){return[]}var t=Oi(i);return[Li(i),t,Li(t)]}function qi(i){var t=i.state,e=i.options,n=i.name;if(t.modifiersData[n]._skip){return}var s=e.mainAxis,r=s===void 0?true:s,a=e.altAxis,c=a===void 0?true:a,u=e.fallbackPlacements,v=e.padding,p=e.boundary,w=e.rootBoundary,b=e.altBoundary,g=e.flipVariations,y=g===void 0?true:g,x=e.allowedAutoPlacements;var k=t.options.placement;var O=U(k);var j=O===k;var L=u||(j||!y?[Oi(k)]:Ui(k));var I=[k].concat(L).reduce((function(i,e){return i.concat(U(e)===f?Ni(t,{placement:e,boundary:p,rootBoundary:w,padding:v,flipVariations:y,allowedAutoPlacements:x}):e)}),[]);var z=t.rects.reference;var E=t.rects.popper;var M=new Map;var S=true;var T=I[0];for(var C=0;C<I.length;C++){var B=I[C];var A=U(B);var H=fi(B)===d;var $=[o,h].indexOf(A)>=0;var P=$?"width":"height";var R=Di(t,{placement:B,boundary:p,rootBoundary:w,altBoundary:b,padding:v});var D=$?H?l:m:H?h:o;if(z[P]>E[P]){D=Oi(D)}var N=Oi(D);var q=[];if(r){q.push(R[A]<=0)}if(c){q.push(R[D]<=0,R[N]<=0)}if(q.every((function(i){return i}))){T=B;S=false;break}M.set(B,q)}if(S){var W=y?3:1;var K=function i(t){var e=I.find((function(i){var e=M.get(i);if(e){return e.slice(0,t).every((function(i){return i}))}}));if(e){T=e;return"break"}};for(var F=W;F>0;F--){var V=K(F);if(V==="break")break}}if(t.placement!==T){t.modifiersData[n]._skip=true;t.placement=T;t.reset=true}}const Wi={name:"flip",enabled:true,phase:"main",fn:qi,requiresIfExists:["offset"],data:{_skip:false}};function Ki(i,t,e){if(e===void 0){e={x:0,y:0}}return{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function Fi(i){return[o,l,h,m].some((function(t){return i[t]>=0}))}function Vi(i){var t=i.state,e=i.name;var n=t.rects.reference;var s=t.rects.popper;var r=t.modifiersData.preventOverflow;var a=Di(t,{elementContext:"reference"});var c=Di(t,{altBoundary:true});var u=Ki(a,n);var o=Ki(c,s,r);var h=Fi(u);var l=Fi(o);t.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:o,isReferenceHidden:h,hasPopperEscaped:l};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":l})}const _i={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Vi};function Ji(i,t,e){var n=U(i);var s=[m,o].indexOf(n)>=0?-1:1;var r=typeof e==="function"?e(Object.assign({},t,{placement:i})):e,a=r[0],c=r[1];a=a||0;c=(c||0)*s;return[m,l].indexOf(n)>=0?{x:c,y:a}:{x:a,y:c}}function Xi(i){var t=i.state,e=i.options,n=i.name;var s=e.offset,r=s===void 0?[0,0]:s;var a=k.reduce((function(i,e){i[e]=Ji(e,t.rects,r);return i}),{});var c=a[t.placement],u=c.x,o=c.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=u;t.modifiersData.popperOffsets.y+=o}t.modifiersData[n]=a}const Zi={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:Xi};function Gi(i){var t=i.state,e=i.name;t.modifiersData[e]=Ri({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Qi={name:"popperOffsets",enabled:true,phase:"read",fn:Gi,data:{}};function Yi(i){return i==="x"?"y":"x"}function it(i){var t=i.state,e=i.options,n=i.name;var s=e.mainAxis,r=s===void 0?true:s,a=e.altAxis,c=a===void 0?false:a,u=e.boundary,f=e.rootBoundary,v=e.altBoundary,p=e.padding,w=e.tether,b=w===void 0?true:w,g=e.tetherOffset,y=g===void 0?0:g;var x=Di(t,{boundary:u,rootBoundary:f,padding:p,altBoundary:v});var k=U(t.placement);var O=fi(t.placement);var j=!O;var L=ni(k);var I=Yi(L);var z=t.modifiersData.popperOffsets;var E=t.rects.reference;var M=t.rects.popper;var S=typeof y==="function"?y(Object.assign({},t.rects,{placement:t.placement})):y;var T=typeof S==="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S);var C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var B={x:0,y:0};if(!z){return}if(r){var A;var H=L==="y"?o:m;var $=L==="y"?h:l;var P=L==="y"?"height":"width";var R=z[L];var D=R+x[H];var N=R-x[$];var K=b?-M[P]/2:0;var F=O===d?E[P]:M[P];var V=O===d?-M[P]:-E[P];var _=t.elements.arrow;var X=b&&_?J(_):{width:0,height:0};var Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ai();var G=Z[H];var Q=Z[$];var Y=si(0,E[P],X[P]);var ii=j?E[P]/2-K-Y-G-T.mainAxis:F-Y-G-T.mainAxis;var ti=j?-E[P]/2+K+Y+Q+T.mainAxis:V+Y+Q+T.mainAxis;var ci=t.elements.arrow&&ei(t.elements.arrow);var ui=ci?L==="y"?ci.clientTop||0:ci.clientLeft||0:0;var oi=(A=C==null?void 0:C[L])!=null?A:0;var hi=R+ii-oi-ui;var li=R+ti-oi;var mi=si(b?W(D,hi):D,R,b?q(N,li):N);z[L]=mi;B[L]=mi-R}if(c){var vi;var di=L==="x"?o:m;var pi=L==="x"?h:l;var wi=z[I];var bi=I==="y"?"height":"width";var gi=wi+x[di];var yi=wi-x[pi];var xi=[o,m].indexOf(k)!==-1;var ki=(vi=C==null?void 0:C[I])!=null?vi:0;var Oi=xi?gi:wi-E[bi]-M[bi]-ki+T.altAxis;var ji=xi?wi+E[bi]+M[bi]-ki-T.altAxis:yi;var Li=b&&xi?ri(Oi,wi,ji):si(b?Oi:gi,wi,b?ji:yi);z[I]=Li;B[I]=Li-wi}t.modifiersData[n]=B}const tt={name:"preventOverflow",enabled:true,phase:"main",fn:it,requiresIfExists:["offset"]};function et(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function nt(i){if(i===A(i)||!$(i)){return Ii(i)}else{return et(i)}}function st(i){var t=i.getBoundingClientRect();var e=K(t.width)/i.offsetWidth||1;var n=K(t.height)/i.offsetHeight||1;return e!==1||n!==1}function rt(i,t,e){if(e===void 0){e=false}var n=$(t);var s=$(t)&&st(t);var r=Q(t);var a=_(i,s,e);var c={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(n||!n&&!e){if(B(t)!=="body"||Si(r)){c=nt(t)}if($(t)){u=_(t,true);u.x+=t.clientLeft;u.y+=t.clientTop}else if(r){u.x=zi(r)}}return{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function at(i){var t=new Map;var e=new Set;var n=[];i.forEach((function(i){t.set(i.name,i)}));function s(i){e.add(i.name);var r=[].concat(i.requires||[],i.requiresIfExists||[]);r.forEach((function(i){if(!e.has(i)){var n=t.get(i);if(n){s(n)}}}));n.push(i)}i.forEach((function(i){if(!e.has(i.name)){s(i)}}));return n}function ct(i){var t=at(i);return C.reduce((function(i,e){return i.concat(t.filter((function(i){return i.phase===e})))}),[])}function ut(i){var t;return function(){if(!t){t=new Promise((function(e){Promise.resolve().then((function(){t=undefined;e(i())}))}))}return t}}function ot(i){var t=i.reduce((function(i,t){var e=i[t.name];i[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t;return i}),{});return Object.keys(t).map((function(i){return t[i]}))}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function lt(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++){t[e]=arguments[e]}return!t.some((function(i){return!(i&&typeof i.getBoundingClientRect==="function")}))}function mt(i){if(i===void 0){i={}}var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,s=t.defaultOptions,r=s===void 0?ht:s;return function i(t,e,s){if(s===void 0){s=r}var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ht,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}};var c=[];var u=false;var o={state:a,setOptions:function i(s){var c=typeof s==="function"?s(a.options):s;l();a.options=Object.assign({},r,a.options,c);a.scrollParents={reference:H(t)?Ci(t):t.contextElement?Ci(t.contextElement):[],popper:Ci(e)};var u=ct(ot([].concat(n,a.options.modifiers)));a.orderedModifiers=u.filter((function(i){return i.enabled}));h();return o.update()},forceUpdate:function i(){if(u){return}var t=a.elements,e=t.reference,n=t.popper;if(!lt(e,n)){return}a.rects={reference:rt(e,ei(n),a.options.strategy==="fixed"),popper:J(n)};a.reset=false;a.placement=a.options.placement;a.orderedModifiers.forEach((function(i){return a.modifiersData[i.name]=Object.assign({},i.data)}));for(var s=0;s<a.orderedModifiers.length;s++){if(a.reset===true){a.reset=false;s=-1;continue}var r=a.orderedModifiers[s],c=r.fn,h=r.options,l=h===void 0?{}:h,m=r.name;if(typeof c==="function"){a=c({state:a,options:l,name:m,instance:o})||a}}},update:ut((function(){return new Promise((function(i){o.forceUpdate();i(a)}))})),destroy:function i(){l();u=true}};if(!lt(t,e)){return o}o.setOptions(s).then((function(i){if(!u&&s.onFirstUpdate){s.onFirstUpdate(i)}}));function h(){a.orderedModifiers.forEach((function(i){var t=i.name,e=i.options,n=e===void 0?{}:e,s=i.effect;if(typeof s==="function"){var r=s({state:a,name:t,instance:o,options:n});var u=function i(){};c.push(r||u)}}))}function l(){c.forEach((function(i){return i()}));c=[]}return o}}var ft=[xi,Qi,bi,N,Zi,Wi,tt,mi,_i];var vt=mt({defaultModifiers:ft});const dt=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8.79502 15.875L4.62502 11.705L3.20502 13.115L8.79502 18.705L20.795 6.70501L19.385 5.29501L8.79502 15.875Z" fill="currentColor"/>\n</svg>\n`;const pt='html.sc-ic-menu-with-multi{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu-with-multi{margin:0}main.sc-ic-menu-with-multi{display:block}h1.sc-ic-menu-with-multi{font-size:2em;margin:0.67em 0}hr.sc-ic-menu-with-multi{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu-with-multi{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu-with-multi{background-color:transparent}abbr[title].sc-ic-menu-with-multi{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu-with-multi,strong.sc-ic-menu-with-multi{font-weight:bolder}code.sc-ic-menu-with-multi,kbd.sc-ic-menu-with-multi,samp.sc-ic-menu-with-multi{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu-with-multi{font-size:80%}sub.sc-ic-menu-with-multi,sup.sc-ic-menu-with-multi{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu-with-multi{bottom:-0.25em}sup.sc-ic-menu-with-multi{top:-0.5em}img.sc-ic-menu-with-multi{border-style:none}button.sc-ic-menu-with-multi,input.sc-ic-menu-with-multi,optgroup.sc-ic-menu-with-multi,select.sc-ic-menu-with-multi,textarea.sc-ic-menu-with-multi{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu-with-multi,input.sc-ic-menu-with-multi{overflow:visible}button.sc-ic-menu-with-multi,select.sc-ic-menu-with-multi{text-transform:none}button.sc-ic-menu-with-multi,[type="button"].sc-ic-menu-with-multi,[type="reset"].sc-ic-menu-with-multi,[type="submit"].sc-ic-menu-with-multi{-webkit-appearance:button}button.sc-ic-menu-with-multi::-moz-focus-inner,[type="button"].sc-ic-menu-with-multi::-moz-focus-inner,[type="reset"].sc-ic-menu-with-multi::-moz-focus-inner,[type="submit"].sc-ic-menu-with-multi::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu-with-multi:-moz-focusring,[type="button"].sc-ic-menu-with-multi:-moz-focusring,[type="reset"].sc-ic-menu-with-multi:-moz-focusring,[type="submit"].sc-ic-menu-with-multi:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu-with-multi{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu-with-multi{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu-with-multi{vertical-align:baseline}textarea.sc-ic-menu-with-multi{overflow:auto}[type="checkbox"].sc-ic-menu-with-multi,[type="radio"].sc-ic-menu-with-multi{box-sizing:border-box;padding:0}[type="number"].sc-ic-menu-with-multi::-webkit-inner-spin-button,[type="number"].sc-ic-menu-with-multi::-webkit-outer-spin-button{height:auto}[type="search"].sc-ic-menu-with-multi{-webkit-appearance:textfield;outline-offset:-2px}[type="search"].sc-ic-menu-with-multi::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu-with-multi::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu-with-multi{display:block}summary.sc-ic-menu-with-multi{display:list-item}template.sc-ic-menu-with-multi{display:none}[hidden].sc-ic-menu-with-multi{display:none}html.sc-ic-menu-with-multi,body.sc-ic-menu-with-multi,div.sc-ic-menu-with-multi,span.sc-ic-menu-with-multi,applet.sc-ic-menu-with-multi,object.sc-ic-menu-with-multi,iframe.sc-ic-menu-with-multi,h1.sc-ic-menu-with-multi,h2.sc-ic-menu-with-multi,h3.sc-ic-menu-with-multi,h4.sc-ic-menu-with-multi,h5.sc-ic-menu-with-multi,h6.sc-ic-menu-with-multi,p.sc-ic-menu-with-multi,blockquote.sc-ic-menu-with-multi,pre.sc-ic-menu-with-multi,a.sc-ic-menu-with-multi,abbr.sc-ic-menu-with-multi,acronym.sc-ic-menu-with-multi,address.sc-ic-menu-with-multi,big.sc-ic-menu-with-multi,cite.sc-ic-menu-with-multi,code.sc-ic-menu-with-multi,del.sc-ic-menu-with-multi,dfn.sc-ic-menu-with-multi,em.sc-ic-menu-with-multi,img.sc-ic-menu-with-multi,ins.sc-ic-menu-with-multi,kbd.sc-ic-menu-with-multi,q.sc-ic-menu-with-multi,s.sc-ic-menu-with-multi,samp.sc-ic-menu-with-multi,small.sc-ic-menu-with-multi,strike.sc-ic-menu-with-multi,strong.sc-ic-menu-with-multi,sub.sc-ic-menu-with-multi,sup.sc-ic-menu-with-multi,tt.sc-ic-menu-with-multi,var.sc-ic-menu-with-multi,b.sc-ic-menu-with-multi,u.sc-ic-menu-with-multi,i.sc-ic-menu-with-multi,center.sc-ic-menu-with-multi,dl.sc-ic-menu-with-multi,dt.sc-ic-menu-with-multi,dd.sc-ic-menu-with-multi,ol.sc-ic-menu-with-multi,ul.sc-ic-menu-with-multi,li.sc-ic-menu-with-multi,fieldset.sc-ic-menu-with-multi,form.sc-ic-menu-with-multi,label.sc-ic-menu-with-multi,legend.sc-ic-menu-with-multi,table.sc-ic-menu-with-multi,caption.sc-ic-menu-with-multi,tbody.sc-ic-menu-with-multi,tfoot.sc-ic-menu-with-multi,thead.sc-ic-menu-with-multi,tr.sc-ic-menu-with-multi,th.sc-ic-menu-with-multi,td.sc-ic-menu-with-multi,article.sc-ic-menu-with-multi,aside.sc-ic-menu-with-multi,canvas.sc-ic-menu-with-multi,details.sc-ic-menu-with-multi,embed.sc-ic-menu-with-multi,figure.sc-ic-menu-with-multi,figcaption.sc-ic-menu-with-multi,footer.sc-ic-menu-with-multi,header.sc-ic-menu-with-multi,hgroup.sc-ic-menu-with-multi,menu.sc-ic-menu-with-multi,nav.sc-ic-menu-with-multi,output.sc-ic-menu-with-multi,ruby.sc-ic-menu-with-multi,section.sc-ic-menu-with-multi,summary.sc-ic-menu-with-multi,time.sc-ic-menu-with-multi,mark.sc-ic-menu-with-multi,audio.sc-ic-menu-with-multi,video.sc-ic-menu-with-multi{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.open.sc-ic-menu-with-multi-h .menu.sc-ic-menu-with-multi{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-with-multi-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));min-width:20rem;color:var(--ic-color-primary-text);background-color:var(--ic-architectural-white);position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.open.sc-ic-menu-with-multi-h:not(.no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.select-all-focused.sc-ic-menu-with-multi-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu-with-multi::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu-with-multi #retry-button.sc-ic-menu-with-multi::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-with-multi-h{inset:auto !important}.menu.sc-ic-menu-with-multi{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(--ic-architectural-white);visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu-with-multi:has(+.option-bar).sc-ic-menu-with-multi{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu-with-multi{overflow-y:auto}.menu.sc-ic-menu-with-multi:focus-visible{outline:none}.open.sc-ic-menu-with-multi-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid var(--ic-architectural-400);transition:box-shadow var(--ic-easing-transition-fast)}.open.sc-ic-menu-with-multi-h .menu.sc-ic-menu-with-multi{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.open.sc-ic-menu-with-multi-h .option-bar.sc-ic-menu-with-multi{visibility:visible}.open.sc-ic-menu-with-multi-h .select-all-button.sc-ic-menu-with-multi{display:block}.full-width.sc-ic-menu-with-multi-h{width:100%}.option.sc-ic-menu-with-multi{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center}.loading-option.sc-ic-menu-with-multi p.sc-ic-menu-with-multi{margin-bottom:0 !important}.option.sc-ic-menu-with-multi:not(.loading-option){justify-content:space-between}.small.sc-ic-menu-with-multi-h .option.sc-ic-menu-with-multi{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.large.sc-ic-menu-with-multi-h .option.sc-ic-menu-with-multi{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu-with-multi:last-child{border-radius:0 0 1px 1px}.sc-ic-menu-with-multi:not(.menu:has(+.option-bar)).sc-ic-menu-with-multi .option.sc-ic-menu-with-multi:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu-with-multi:not(.disabled-option):hover{background-color:var(--ic-action-dark-bg-hover)}.option.sc-ic-menu-with-multi:not(.disabled-option):active{background-color:var(--ic-action-dark-bg-active)}.option.sc-ic-menu-with-multi:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu-with-multi:not(.disabled-option) .option-description.sc-ic-menu-with-multi{color:var(--ic-color-secondary-text)}.option.sc-ic-menu-with-multi .option-label.sc-ic-menu-with-multi{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu-with-multi .option-element.sc-ic-menu-with-multi{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu-with-multi .option-icon.sc-ic-menu-with-multi{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu-with-multi{pointer-events:none;max-width:calc(var(--ic-space-lg) * 10 + var(--ic-space-xl))}.option.loading-option.sc-ic-menu-with-multi .option-text-container.sc-ic-menu-with-multi{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-color-secondary-text)}.error-icon-svg.sc-ic-menu-with-multi{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-status-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu-with-multi{display:flex}.check-icon.sc-ic-menu-with-multi{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-xs);pointer-events:none}.focused-option.sc-ic-menu-with-multi .check-icon.sc-ic-menu-with-multi *.sc-ic-menu-with-multi{fill:currentcolor}.option-group-title.sc-ic-menu-with-multi{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);color:var(--ic-color-tertiary-text)}.small.sc-ic-menu-with-multi-h .option-group-title.sc-ic-menu-with-multi{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu-with-multi{border-bottom:var(--ic-border-default)}.disabled-option.sc-ic-menu-with-multi{color:var(--ic-architectural-200);cursor:default;pointer-events:none}.focused-option.sc-ic-menu-with-multi,.focused-option.sc-ic-menu-with-multi .option-description.sc-ic-menu-with-multi{background-color:var(--ic-focus-blue) !important;color:var(--ic-color-white-text) !important}.no-results.sc-ic-menu-with-multi-h li.sc-ic-menu-with-multi{cursor:no-drop}.no-results.sc-ic-menu-with-multi-h li.sc-ic-menu-with-multi:hover{background-color:transparent}.option-bar.sc-ic-menu-with-multi{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-architectural-40);visibility:hidden;border-bottom:var(--ic-border-width) solid var(--ic-architectural-400);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu-with-multi p.sc-ic-menu-with-multi{margin-bottom:0 !important}.large.sc-ic-menu-with-multi-h .option-bar.sc-ic-menu-with-multi{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu-with-multi{display:none}.select-all-button.sc-ic-menu-with-multi:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu-with-multi:focus{outline:none;border:0.125rem solid transparent}}';const wt=class{constructor(s){i(this,s);this.menuKeyPress=t(this,"menuKeyPress",7);this.menuOptionId=t(this,"menuOptionId",7);this.menuOptionSelect=t(this,"menuOptionSelect",7);this.menuOptionSelectAll=t(this,"menuOptionSelectAll",7);this.menuStateChange=t(this,"menuStateChange",7);this.retryButtonClicked=t(this,"retryButtonClicked",7);this.timeoutBlur=t(this,"timeoutBlur",7);this.ungroupedOptionsSet=t(this,"ungroupedOptionsSet",7);this.activeDescendantAttr="aria-activedescendant";this.clearButtonId="clear-button";this.disabledOptionSelected=false;this.hasPreviouslyBlurred=false;this.hasTimedOut=false;this.isLoading=false;this.isMultiSelect=false;this.isSearchBar=false;this.isSearchableSelect=false;this.lastOptionSelected=null;this.lastOptionFocused=null;this.multiOptionClicked=null;this.preventClickOpen=false;this.preventMenuFocus=false;this.shiftPressed=false;this.ungroupedOptions=[];this.handleClearListener=()=>{this.optionHighlighted=""};this.handleSubmitSearch=()=>{const i=this.options.findIndex((i=>i[this.valueField]===this.optionHighlighted));this.setInputValue(i)};this.handleMenuChange=(i,t)=>{this.menuStateChange.emit({open:i,focusInput:t});if(!i){if(t!==false){this.inputEl.focus();this.preventClickOpen=false}if(this.isMultiSelect){this.optionHighlighted=undefined;this.multiOptionClicked=null}}};this.setNextOptionValue=i=>{if(this.ungroupedOptions[i+1]){this.menuOptionSelect.emit({value:this.ungroupedOptions[i+1][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[i+1][this.valueField])})}else{this.menuOptionSelect.emit({value:this.ungroupedOptions[0][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[0][this.valueField])})}};this.setPreviousOptionValue=i=>{if(this.ungroupedOptions[i-1]){this.menuOptionSelect.emit({value:this.ungroupedOptions[i-1][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[i-1][this.valueField])})}else{this.menuOptionSelect.emit({value:this.ungroupedOptions[this.ungroupedOptions.length-1][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[this.ungroupedOptions.length-1][this.valueField])})}};this.getParentEl=i=>{if(i.tagName==="IC-SEARCH-BAR"){this.isSearchBar=true}else if(i.tagName==="IC-SELECT"||i.tagName==="IC-SELECT-WITH-MULTI"){if(i.getAttribute("searchable")!==null&&i.getAttribute("searchable")!==undefined){this.isSearchableSelect=true}else if(i.getAttribute("multiple")!==null&&i.getAttribute("multiple")!==undefined){this.isMultiSelect=true}}};this.arrowBehaviour=i=>{i.preventDefault();this.handleMenuChange(true)};this.getMenuOptions=()=>this.isSearchBar?this.options:this.ungroupedOptions;this.setHighlightedOption=i=>{const t=this.getMenuOptions();t[i]&&!t[i].timedOut&&(this.optionHighlighted=t[i][this.valueField]||undefined)};this.autoSetInputValueKeyboardOpen=i=>{const t=this.ungroupedOptions.findIndex((i=>i[this.valueField]===this.value));this.keyboardNav=false;switch(i.key){case"ArrowDown":this.keyboardNav=true;this.arrowBehaviour(i);this.setNextOptionValue(t);break;case"ArrowUp":this.keyboardNav=true;this.arrowBehaviour(i);this.setPreviousOptionValue(t);break;case" ":case"Enter":if(i.target.id!==this.clearButtonId){this.handleMenuChange(true)}break}};this.selectHighlightedOption=(i,t,e)=>{if(!this.isLoading&&!this.hasTimedOut){this.keyboardNav=true}const n=this.isSearchBar||this.isSearchableSelect||this.open;if(n){if(e>=0){if(t[e]!==undefined){if(this.isSearchBar&&t[e].disabled===true){this.disabledOptionSelected=true}else{this.setInputValue(e)}}}else{this.setInputValue(e)}}else if(i.id!==this.clearButtonId&&this.isMultiSelect){this.handleMenuChange(true)}};this.isOptionSelected=i=>{const t=this.getMenuOptions();return this.value?this.value.includes(t[i][this.valueField]):false};this.deselectSelectedOptions=i=>{const t=this.getMenuOptions();if(this.value){const e=this.value.map((i=>t.findIndex((t=>t[this.valueField]===i))));e.forEach((t=>!i.includes(t)&&this.setInputValue(t)))}};this.manualSetInputValueKeyboardOpen=i=>{const t=this.getMenuOptions();if(!(i.shiftKey||i.metaKey||i.ctrlKey)){this.keyboardNav=false}const e=this.getOptionHighlightedIndex();const n=t.findIndex((i=>i[this.valueField]===this.multiOptionClicked));const s=i=>{var t;return(t=Array.from(this.el.querySelectorAll("li"))[i])===null||t===void 0?void 0:t.id};if(i.key===" "&&this.isMultiSelect){this.handleOptionSelect(i,e)}else{switch(i.key){case"ArrowDown":this.keyboardNav=true;this.arrowBehaviour(i);if(this.multiOptionClicked){this.setHighlightedOption(n);this.multiOptionClicked=null}else{this.handleSingleShiftSelect(i,e,t);if(e<t.length-1){this.setHighlightedOption(e+1);this.menuOptionId.emit({optionId:s(e+1)});this.handleSingleShiftSelect(i,e+1,t)}else{this.setHighlightedOption(0);this.menuOptionId.emit({optionId:s(0)});this.handleSingleShiftSelect(i,0,t)}if(this.isMultiSelect&&this.shiftPressed){this.deselectSelectedOptions([e,this.getOptionHighlightedIndex()]);this.shiftPressed=false}}this.lastOptionFocused=this.getOptionHighlightedIndex();this.preventIncorrectTabOrder=false;this.focusFromSearchKeypress=false;break;case"ArrowUp":this.keyboardNav=true;this.arrowBehaviour(i);if(this.multiOptionClicked){this.setHighlightedOption(n);this.multiOptionClicked=null}else{this.handleSingleShiftSelect(i,e,t);if(e<=0||e>t.length+1){this.setHighlightedOption(t.length-1);this.menuOptionId.emit({optionId:s(t.length-1)});this.handleSingleShiftSelect(i,t.length-1,t)}else{this.setHighlightedOption(e-1);this.menuOptionId.emit({optionId:s(e-1)});this.handleSingleShiftSelect(i,e-1,t)}if(this.isMultiSelect&&this.shiftPressed){this.deselectSelectedOptions([e,this.getOptionHighlightedIndex()]);this.shiftPressed=false}}this.lastOptionFocused=this.getOptionHighlightedIndex();this.preventIncorrectTabOrder=false;this.focusFromSearchKeypress=false;break;case"Home":{const t=0;this.keyboardNav=true;i.preventDefault();this.arrowBehaviour(i);this.setHighlightedOption(t);this.menuOptionId.emit({optionId:s(t)});if(i.shiftKey&&i.ctrlKey){this.handleMultipleShiftSelect(t)}this.lastOptionFocused=t;this.lastOptionSelected=t;break}case"End":{const e=t.length-1;this.keyboardNav=true;i.preventDefault();this.arrowBehaviour(i);this.setHighlightedOption(e);this.menuOptionId.emit({optionId:s(e)});if(i.shiftKey&&i.ctrlKey){this.handleMultipleShiftSelect(e)}this.lastOptionFocused=e;this.lastOptionSelected=e;break}case" ":if(this.isSearchBar||this.isSearchableSelect){break}else{if(i.target.id!==this.clearButtonId){this.handleMenuChange(true)}}break;case"Enter":i.preventDefault();this.handleOptionSelect(i,e);break;case"Escape":if(this.open){i.stopImmediatePropagation()}this.handleMenuChange(false);this.menuOptionId.emit({optionId:undefined});break;case"a":if(a()&&i.metaKey||!a()&&i.ctrlKey){this.emitSelectAll();this.lastOptionFocused=null;this.lastOptionSelected=null}break;case"Shift":case"Tab":if(i.key==="Shift"){this.shiftPressed=true}if(this.isSearchBar){this.keyboardNav=true}if(this.isMultiSelect){if(this.open&&!i.shiftKey&&this.selectAllButton){i.preventDefault();this.selectAllButton.focus();this.preventMenuFocus=true;this.preventClickOpen=true;this.optionHighlighted=undefined}}else{this.preventIncorrectTabOrder=true}break;case"Backspace":if(this.isSearchBar){this.parentEl.setFocus();if(this.searchMode==="navigation")this.setHighlightedOption(0)}else if(this.isSearchableSelect){this.parentEl.setFocus()}this.focusFromSearchKeypress=true;break;default:if(i.key!=="Tab"){if(this.isSearchBar){this.parentEl.setFocus();if(this.searchMode==="navigation")this.setHighlightedOption(0)}else if(this.isSearchableSelect){this.parentEl.setFocus()}this.focusFromSearchKeypress=true;break}}}};this.setInputValue=i=>{const t=this.getMenuOptions();if(t[i]!==undefined){this.menuOptionSelect.emit({value:t[i][this.valueField]});if(this.closeOnSelect){this.optionHighlighted=undefined;this.menuOptionId.emit({optionId:undefined})}}if(this.closeOnSelect){if(!this.hasTimedOut){this.handleMenuChange(false)}else{this.parentEl.setFocus()}}};this.handleOptionClick=i=>{const{value:t,label:e}=i.target.dataset;if(this.isMultiSelect){const e=this.getMenuOptions();const n=e.findIndex((i=>i.value===t));this.handleOptionSelect(i,n,true);this.multiOptionClicked=t}else{this.menuOptionSelect.emit({value:t,label:e});this.handleMenuChange(false)}this.optionHighlighted=undefined};this.handleRetry=()=>{this.retryButtonClicked.emit({value:this.value})};this.handleRetryKeyDown=i=>{if(i.key==="Enter"||i.key===" "){i.preventDefault();this.retryButtonClicked.emit({value:this.value,keyPressed:i.key})}};this.handleBlur=i=>{if(i.relatedTarget!==this.inputEl){if(i.relatedTarget===this.selectAllButton){this.menu.removeAttribute(this.activeDescendantAttr)}if(!(this.menu.contains(i.relatedTarget)||i.relatedTarget===this.selectAllButton)){this.handleMenuChange(false,this.hasPreviouslyBlurred);this.menu.removeAttribute(this.activeDescendantAttr);this.lastOptionFocused=null;this.lastOptionSelected=null}}else{this.handleMenuChange(false);this.preventClickOpen=true;this.menu.removeAttribute(this.activeDescendantAttr);this.lastOptionFocused=null;this.lastOptionSelected=null}if(!this.isSearchBar)this.hasPreviouslyBlurred=!!i.relatedTarget};this.handleMouseDown=i=>{i.preventDefault()};this.handleMenuKeyDown=i=>{if(this.activationType==="automatic"){this.autoSetValueOnMenuKeyDown(i)}else if(this.activationType==="manual"&&!this.isSearchBar){this.manualSetInputValueKeyboardOpen(i)}};this.handleMenuKeyUp=i=>{if(i.key==="Tab"&&i.shiftKey){this.preventClickOpen=false}if(i.key==="Enter"&&this.disabledOptionSelected){this.disabledOptionSelected=false;i.stopImmediatePropagation()}if(i.key==="Shift"){this.shiftPressed=false}};this.handleSelectAllClick=()=>{this.keyboardNav=false;this.menu.focus();this.emitSelectAll();this.lastOptionFocused=null;this.lastOptionSelected=null};this.handleSelectAllBlur=i=>{this.el.classList.remove("select-all-focused");if(!this.menu.contains(i.relatedTarget)){this.handleMenuChange(false,false)}};this.handleSelectAllFocus=()=>{this.el.classList.add("select-all-focused");this.lastOptionFocused=null;this.lastOptionSelected=null};this.handleSelectAllMouseDown=i=>{i.preventDefault()};this.handleSingleShiftSelect=(i,t,e)=>{if(this.isMultiSelect&&i.shiftKey&&!this.isOptionSelected(t)){this.selectHighlightedOption(i.target,e,t);this.lastOptionSelected=t}};this.handleMultipleShiftSelect=(i,t=false,e=null)=>{this.shiftPressed=false;const n=e===null?this.getFirstOptionInSelection(t):e;if(n!==null){const t=[];if(n<i){for(let e=n;e<i+1;e++){t.push(e)}}else{for(let e=n;e>i-1;e--){t.push(e)}}t.forEach((i=>!this.isOptionSelected(i)&&this.setInputValue(i)));this.deselectSelectedOptions(t)}};this.handleOptionSelect=(i,t,e=false)=>{const n=this.getMenuOptions();const s=this.getFirstOptionInSelection(e);if(i.shiftKey&&s!==null){this.handleMultipleShiftSelect(t,e,s)}else{this.selectHighlightedOption(i.target,n,t)}this.lastOptionFocused=t;this.lastOptionSelected=t};this.getFirstOptionInSelection=i=>i&&this.lastOptionFocused!==null?this.lastOptionFocused:this.lastOptionSelected!==null?this.lastOptionSelected:null;this.emitSelectAll=()=>{var i;this.menuOptionSelectAll.emit({select:!this.value||!(((i=this.value)===null||i===void 0?void 0:i.length)===this.ungroupedOptions.length)})};this.emitMenuKeyPress=(i,t)=>{this.menuKeyPress.emit({isNavKey:i,key:t})};this.autoSetValueOnMenuKeyDown=i=>{i.cancelBubble=true;const t=this.ungroupedOptions.findIndex((i=>i[this.valueField]===this.value));const e=this.inputEl.tagName==="INPUT";this.keyboardNav=false;switch(i.key){case" ":i.preventDefault();break;case"ArrowUp":if(!this.hasTimedOut){i.preventDefault();this.setPreviousOptionValue(t);this.keyboardNav=true}break;case"ArrowDown":if(!this.hasTimedOut){i.preventDefault();this.setNextOptionValue(t);this.keyboardNav=true}break;case"Home":this.menuOptionSelect.emit({value:this.ungroupedOptions[0][this.valueField]});this.keyboardNav=true;break;case"End":this.menuOptionSelect.emit({value:this.ungroupedOptions[this.ungroupedOptions.length-1][this.valueField]});this.keyboardNav=true;break;case"Enter":!this.hasTimedOut&&this.handleMenuChange(false);break;case"Escape":this.handleMenuChange(false);break;case"Backspace":if(e){this.inputEl.focus()}break;case"Shift":break;default:if(e&&i.key!=="Tab"&&!this.hasTimedOut){this.inputEl.focus()}if(i.key.length===1){this.keyboardNav=true}break}this.emitMenuKeyPress(this.keyboardNav,i.key)};this.getOptionId=i=>`${this.menuId}-${i}`;this.getOptionAriaLabel=(i,t)=>{let e=i[this.labelField];if(i.description){e=`${e}, ${i.description}`}if(i.element){e=`${e}, ${i.element.ariaLabel}`}if(t){return`${e}, ${t[this.labelField]} group`}else{return e}};this.getSortedOptions=i=>{let t=[];if(i.sort){t=i.sort(((i,t)=>i.recommended&&!t.recommended?-1:0))}return t};this.getOptionHighlightedIndex=()=>{const i=this.getMenuOptions();return i.findIndex((i=>i[this.valueField]===this.optionHighlighted))};this.isManualMode=this.activationType==="manual";this.scrollToSelected=i=>{const t=this.selectOnEnter?this.el.querySelector(`li[data-value="${this.optionHighlighted}"]`):i.querySelector(".option[aria-selected='true']");if(t){const e=t.offsetTop+t.offsetHeight;if(e>i.scrollTop+i.offsetHeight||e<i.scrollTop+i.offsetHeight){i.scrollTop=t.offsetTop}this.menu.setAttribute(this.activeDescendantAttr,t.id);t.focus()}};this.loadUngroupedOptions=()=>{if(this.options.length>0&&this.options.map){this.options.map((i=>{if(i.children){i.children.map((i=>!i.disabled&&this.ungroupedOptions.push(i)))}else if(!i.disabled){this.ungroupedOptions.push(i)}}))}this.ungroupedOptions=this.getSortedOptions(this.ungroupedOptions);this.ungroupedOptionsSet.emit({options:this.ungroupedOptions})};this.setMenuScrollbar=()=>{let i=0;this.el.querySelectorAll(".option").forEach((t=>i+=t.clientHeight));if(i>=320){this.menu.classList.add("menu-scroll")}};this.handleTimeoutBlur=i=>{this.timeoutBlur.emit({ev:i})};this.optionContent=(i,t)=>e(n,null,i.loading&&e("ic-loading-indicator",{size:"icon"}),e("div",{class:"option-text-container"},e("div",{class:"option-label"},i.icon&&e("div",{class:"option-icon",innerHTML:i.icon,"aria-hidden":"true"}),e("ic-typography",{variant:"body","aria-hidden":"true"},e("p",null,i[this.labelField]))),i.description&&e("ic-typography",{id:`${this.getOptionId(i[this.valueField])}-description`,class:"option-description",variant:"caption","aria-hidden":"true"},e("p",null,i.description)),i.element&&e("div",{class:"option-element",innerHTML:i.element.component,"aria-hidden":"true"})),!!i[this.valueField]&&!!this.value&&t&&this.parentEl.tagName!=="IC-SEARCH-BAR"&&e("span",{class:"check-icon",innerHTML:dt}));this.displayOption=(i,t,s,r)=>{const{open:a,keyboardNav:c,isManualMode:u,initialOptionsListRender:o,optionHighlighted:h,options:l}=this;return e("li",{id:this.getOptionId(i[this.valueField]),class:{option:true,"focused-option":u?(c||o)&&i[this.valueField]===h:c&&t,"last-recommended-option":i.recommended&&l[s+1]&&!l[s+1].recommended,"disabled-option":i.disabled,"loading-option":i.loading,timeout:i.timedOut},role:"option",tabindex:a&&(t||i[this.valueField]===h)&&c?"0":"-1","aria-label":this.getOptionAriaLabel(i,r),"aria-selected":t?"true":"false","aria-disabled":i.disabled?"true":"false",onClick:!i.timedOut&&!i.loading&&this.handleOptionClick,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,"data-value":i[this.valueField],"data-label":i[this.labelField]},i.timedOut?e(n,null,e("div",{class:"loading-error-info"},e("svg",{class:"error-icon-svg","aria-labelledby":"error-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#000000"},e("title",{id:"error-title"},"Error"),e("g",{id:"close-octagon"},e("path",{id:"Vector",d:"M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41"}))),e("ic-typography",{variant:"label"},i[this.labelField])),e("ic-button",{size:"small",variant:"tertiary",onClick:this.handleRetry,onKeyDown:this.handleRetryKeyDown,onBlur:this.handleTimeoutBlur,id:"retry-button"},"Retry")):this.optionContent(i,t))};this.focusFromSearchKeypress=false;this.initialOptionsListRender=false;this.keyboardNav=false;this.optionHighlighted=undefined;this.preventIncorrectTabOrder=false;this.menuOptions=undefined;this.activationType="automatic";this.anchorEl=undefined;this.autoFocusOnSelected=true;this.closeOnSelect=true;this.fullWidth=false;this.inputEl=undefined;this.inputLabel=undefined;this.labelField="label";this.menuId=undefined;this.open=undefined;this.parentEl=undefined;this.searchMode="navigation";this.selectOnEnter=false;this.size="default";this.small=false;this.options=undefined;this.value=undefined;this.valueField="value"}watchOpenHandler(){if(!this.open&&this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}}watchOptionsHandler(i){this.hasTimedOut=i.some((i=>i.timedOut));this.isLoading=i.some((i=>i.loading));this.ungroupedOptions=[];this.loadUngroupedOptions()}connectedCallback(){this.getParentEl(this.parentEl);if(this.isSearchBar){if(this.searchMode==="navigation")this.setHighlightedOption(0);this.initialOptionsListRender=true}}disconnectedCallback(){if(this.popperInstance){this.popperInstance.destroy()}this.parentEl.removeEventListener("icClear",this.handleClearListener);this.parentEl.removeEventListener("icSubmitSearch",this.handleSubmitSearch)}componentWillLoad(){var i,t;this.loadUngroupedOptions();this.parentEl.addEventListener("icClear",this.handleClearListener);this.parentEl.addEventListener("icSubmitSearch",this.handleSubmitSearch);this.hasTimedOut=(i=this.options)===null||i===void 0?void 0:i.some((i=>i.timedOut));this.isLoading=(t=this.options)===null||t===void 0?void 0:t.some((i=>i.loading))}componentDidLoad(){if(this.isSearchBar&&this.parentEl.disableFilter){this.focusFromSearchKeypress=true}c([{prop:this.open,propName:"open"},{prop:this.options,propName:"options"},{prop:this.menuId,propName:"menu-id"},{prop:this.inputLabel,propName:"input-label"}],"Menu")}componentDidUpdate(){const i=this.options.some((i=>i[this.valueField]===this.value));const t=this.optionHighlighted!==null&&this.optionHighlighted!==undefined&&this.optionHighlighted!=="";if(this.open&&this.options.length!==0&&!this.preventMenuFocus){if(this.value&&this.keyboardNav&&i&&this.autoFocusOnSelected&&!this.isSearchableSelect){this.scrollToSelected(this.menu)}else if(t&&!this.focusFromSearchKeypress&&!this.preventIncorrectTabOrder){const i=this.el.querySelector(`li[data-value="${this.optionHighlighted}"]`);if(i){this.menu.setAttribute(this.activeDescendantAttr,i.id);i.focus()}}else if(this.inputEl.tagName!=="IC-TEXT-FIELD"&&this.inputEl.tagName!=="INPUT"){this.menu.focus()}}if(this.open&&!this.value&&this.selectOnEnter){this.scrollToSelected(this.menu)}this.preventMenuFocus=false}componentDidRender(){if(this.open&&!this.popperInstance&&this.anchorEl){this.initPopperJs(this.anchorEl)}if(this.open&&!!this.options.length){this.setMenuScrollbar()}}async handleClickOpen(){if(!this.preventClickOpen){this.menuStateChange.emit({open:!this.open});this.keyboardNav=false}this.preventClickOpen=false}async handleKeyboardOpen(i){this.keyboardNav=false;if(this.activationType==="automatic"){this.autoSetInputValueKeyboardOpen(i)}else{this.manualSetInputValueKeyboardOpen(i)}}async handleSetFirstOption(){this.setHighlightedOption(0)}async initPopperJs(i){this.popperInstance=vt(i,this.el,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,7]}},{name:"flip",options:{fallbackPlacements:["top-start"],rootBoundary:"viewport"}}]})}render(){const{inputLabel:i,options:t,menuId:n,value:r,fullWidth:a,hasTimedOut:c,isLoading:o,size:h,small:l,open:m,inputEl:f,keyboardNav:v}=this;const d=`${(r===null||r===void 0?void 0:r.length)===this.ungroupedOptions.length?"Clear":"Select"} all`;const p=this.el.classList.contains("no-results");return e(s,{class:{"full-width":a,"no-focus":(f===null||f===void 0?void 0:f.tagName)==="INPUT"||c||o||p,small:l,[h]:true,open:m&&t.length!==0,multiple:this.isMultiSelect}},t.length!==0&&e("ul",{id:n,class:"menu",role:"listbox","aria-label":`${i} pop-up`,"aria-multiselectable":this.isMultiSelect?"true":"false",tabindex:m&&!v&&(f===null||f===void 0?void 0:f.tagName)!=="INPUT"?"0":"-1",ref:i=>this.menu=i,onKeyDown:this.handleMenuKeyDown,onKeyUp:this.handleMenuKeyUp,onBlur:this.handleBlur},this.getSortedOptions(t).map(((i,t)=>{if(i.children){if(i.children.length>0){return e("div",null,e("ic-typography",{class:"option-group-title",role:"presentation",variant:"subtitle-small"},e("p",null,i[this.labelField])),i.children.map((e=>e.label&&this.displayOption(e,this.isMultiSelect?r===null||r===void 0?void 0:r.includes(e[this.valueField]):e[this.valueField]===r,t,i))))}else{return null}}else{return i.label&&this.displayOption(i,this.isMultiSelect?r===null||r===void 0?void 0:r.includes(i[this.valueField]):i[this.valueField]===r,t)}}))),t.length!==0&&this.isMultiSelect&&!o&&!c&&!p&&e("div",{class:"option-bar"},e("ic-typography",null,e("p",null,`${r?r.length:0}/${u(this.options)} selected`)),e("ic-button",{class:"select-all-button","aria-label":`${d} options for ${i}`,ref:i=>this.selectAllButton=i,variant:"tertiary",onClick:this.handleSelectAllClick,onMouseDown:this.handleSelectAllMouseDown,onBlur:this.handleSelectAllBlur,onFocus:this.handleSelectAllFocus,size:h==="small"?"small":"default"},d)))}get el(){return r(this)}static get watchers(){return{open:["watchOpenHandler"],options:["watchOptionsHandler"]}}};wt.style=pt;export{wt as ic_menu_with_multi};
2
- //# sourceMappingURL=p-d362992d.entry.js.map
1
+ import{r as i,c as t,h as e,F as n,H as s,g as r}from"./p-8455d1bb.js";import{F as a,o as u,n as c}from"./p-7435de65.js";var o="top";var h="bottom";var l="right";var m="left";var f="auto";var v=[o,h,l,m];var d="start";var p="end";var w="clippingParents";var b="viewport";var g="popper";var y="reference";var x=v.reduce((function(i,t){return i.concat([t+"-"+d,t+"-"+p])}),[]);var k=[].concat(v,[f]).reduce((function(i,t){return i.concat([t,t+"-"+d,t+"-"+p])}),[]);var O="beforeRead";var j="read";var L="afterRead";var I="beforeMain";var z="main";var E="afterMain";var M="beforeWrite";var S="write";var T="afterWrite";var C=[O,j,L,I,z,E,M,S,T];function B(i){return i?(i.nodeName||"").toLowerCase():null}function A(i){if(i==null){return window}if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t?t.defaultView||window:window}return i}function H(i){var t=A(i).Element;return i instanceof t||i instanceof Element}function $(i){var t=A(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function P(i){if(typeof ShadowRoot==="undefined"){return false}var t=A(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function R(i){var t=i.state;Object.keys(t.elements).forEach((function(i){var e=t.styles[i]||{};var n=t.attributes[i]||{};var s=t.elements[i];if(!$(s)||!B(s)){return}Object.assign(s.style,e);Object.keys(n).forEach((function(i){var t=n[i];if(t===false){s.removeAttribute(i)}else{s.setAttribute(i,t===true?"":t)}}))}))}function D(i){var t=i.state;var e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper);t.styles=e;if(t.elements.arrow){Object.assign(t.elements.arrow.style,e.arrow)}return function(){Object.keys(t.elements).forEach((function(i){var n=t.elements[i];var s=t.attributes[i]||{};var r=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]);var a=r.reduce((function(i,t){i[t]="";return i}),{});if(!$(n)||!B(n)){return}Object.assign(n.style,a);Object.keys(s).forEach((function(i){n.removeAttribute(i)}))}))}}const N={name:"applyStyles",enabled:true,phase:"write",fn:R,effect:D,requires:["computeStyles"]};function U(i){return i.split("-")[0]}var q=Math.max;var W=Math.min;var F=Math.round;function K(){var i=navigator.userAgentData;if(i!=null&&i.brands&&Array.isArray(i.brands)){return i.brands.map((function(i){return i.brand+"/"+i.version})).join(" ")}return navigator.userAgent}function V(){return!/^((?!chrome|android).)*safari/i.test(K())}function _(i,t,e){if(t===void 0){t=false}if(e===void 0){e=false}var n=i.getBoundingClientRect();var s=1;var r=1;if(t&&$(i)){s=i.offsetWidth>0?F(n.width)/i.offsetWidth||1:1;r=i.offsetHeight>0?F(n.height)/i.offsetHeight||1:1}var a=H(i)?A(i):window,u=a.visualViewport;var c=!V()&&e;var o=(n.left+(c&&u?u.offsetLeft:0))/s;var h=(n.top+(c&&u?u.offsetTop:0))/r;var l=n.width/s;var m=n.height/r;return{width:l,height:m,top:h,right:o+l,bottom:h+m,left:o,x:o,y:h}}function J(i){var t=_(i);var e=i.offsetWidth;var n=i.offsetHeight;if(Math.abs(t.width-e)<=1){e=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function X(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t)){return true}else if(e&&P(e)){var n=t;do{if(n&&i.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function Z(i){return A(i).getComputedStyle(i)}function G(i){return["table","td","th"].indexOf(B(i))>=0}function Q(i){return((H(i)?i.ownerDocument:i.document)||window.document).documentElement}function Y(i){if(B(i)==="html"){return i}return i.assignedSlot||i.parentNode||(P(i)?i.host:null)||Q(i)}function ii(i){if(!$(i)||Z(i).position==="fixed"){return null}return i.offsetParent}function ti(i){var t=/firefox/i.test(K());var e=/Trident/i.test(K());if(e&&$(i)){var n=Z(i);if(n.position==="fixed"){return null}}var s=Y(i);if(P(s)){s=s.host}while($(s)&&["html","body"].indexOf(B(s))<0){var r=Z(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none"){return s}else{s=s.parentNode}}return null}function ei(i){var t=A(i);var e=ii(i);while(e&&G(e)&&Z(e).position==="static"){e=ii(e)}if(e&&(B(e)==="html"||B(e)==="body"&&Z(e).position==="static")){return t}return e||ti(i)||t}function ni(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function si(i,t,e){return q(i,W(t,e))}function ri(i,t,e){var n=si(i,t,e);return n>e?e:n}function ai(){return{top:0,right:0,bottom:0,left:0}}function ui(i){return Object.assign({},ai(),i)}function ci(i,t){return t.reduce((function(t,e){t[e]=i;return t}),{})}var oi=function i(t,e){t=typeof t==="function"?t(Object.assign({},e.rects,{placement:e.placement})):t;return ui(typeof t!=="number"?t:ci(t,v))};function hi(i){var t;var e=i.state,n=i.name,s=i.options;var r=e.elements.arrow;var a=e.modifiersData.popperOffsets;var u=U(e.placement);var c=ni(u);var f=[m,l].indexOf(u)>=0;var v=f?"height":"width";if(!r||!a){return}var d=oi(s.padding,e);var p=J(r);var w=c==="y"?o:m;var b=c==="y"?h:l;var g=e.rects.reference[v]+e.rects.reference[c]-a[c]-e.rects.popper[v];var y=a[c]-e.rects.reference[c];var x=ei(r);var k=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0;var O=g/2-y/2;var j=d[w];var L=k-p[v]-d[b];var I=k/2-p[v]/2+O;var z=si(j,I,L);var E=c;e.modifiersData[n]=(t={},t[E]=z,t.centerOffset=z-I,t)}function li(i){var t=i.state,e=i.options;var n=e.element,s=n===void 0?"[data-popper-arrow]":n;if(s==null){return}if(typeof s==="string"){s=t.elements.popper.querySelector(s);if(!s){return}}if(!X(t.elements.popper,s)){return}t.elements.arrow=s}const mi={name:"arrow",enabled:true,phase:"main",fn:hi,effect:li,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fi(i){return i.split("-")[1]}var vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function di(i,t){var e=i.x,n=i.y;var s=t.devicePixelRatio||1;return{x:F(e*s)/s||0,y:F(n*s)/s||0}}function pi(i){var t;var e=i.popper,n=i.popperRect,s=i.placement,r=i.variation,a=i.offsets,u=i.position,c=i.gpuAcceleration,f=i.adaptive,v=i.roundOffsets,d=i.isFixed;var w=a.x,b=w===void 0?0:w,g=a.y,y=g===void 0?0:g;var x=typeof v==="function"?v({x:b,y}):{x:b,y};b=x.x;y=x.y;var k=a.hasOwnProperty("x");var O=a.hasOwnProperty("y");var j=m;var L=o;var I=window;if(f){var z=ei(e);var E="clientHeight";var M="clientWidth";if(z===A(e)){z=Q(e);if(Z(z).position!=="static"&&u==="absolute"){E="scrollHeight";M="scrollWidth"}}z=z;if(s===o||(s===m||s===l)&&r===p){L=h;var S=d&&z===I&&I.visualViewport?I.visualViewport.height:z[E];y-=S-n.height;y*=c?1:-1}if(s===m||(s===o||s===h)&&r===p){j=l;var T=d&&z===I&&I.visualViewport?I.visualViewport.width:z[M];b-=T-n.width;b*=c?1:-1}}var C=Object.assign({position:u},f&&vi);var B=v===true?di({x:b,y},A(e)):{x:b,y};b=B.x;y=B.y;if(c){var H;return Object.assign({},C,(H={},H[L]=O?"0":"",H[j]=k?"0":"",H.transform=(I.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",H))}return Object.assign({},C,(t={},t[L]=O?y+"px":"",t[j]=k?b+"px":"",t.transform="",t))}function wi(i){var t=i.state,e=i.options;var n=e.gpuAcceleration,s=n===void 0?true:n,r=e.adaptive,a=r===void 0?true:r,u=e.roundOffsets,c=u===void 0?true:u;var o={placement:U(t.placement),variation:fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,pi(Object.assign({},o,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,pi(Object.assign({},o,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:c})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bi={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:wi,data:{}};var gi={passive:true};function yi(i){var t=i.state,e=i.instance,n=i.options;var s=n.scroll,r=s===void 0?true:s,a=n.resize,u=a===void 0?true:a;var c=A(t.elements.popper);var o=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(r){o.forEach((function(i){i.addEventListener("scroll",e.update,gi)}))}if(u){c.addEventListener("resize",e.update,gi)}return function(){if(r){o.forEach((function(i){i.removeEventListener("scroll",e.update,gi)}))}if(u){c.removeEventListener("resize",e.update,gi)}}}const xi={name:"eventListeners",enabled:true,phase:"write",fn:function i(){},effect:yi,data:{}};var ki={left:"right",right:"left",bottom:"top",top:"bottom"};function Oi(i){return i.replace(/left|right|bottom|top/g,(function(i){return ki[i]}))}var ji={start:"end",end:"start"};function Li(i){return i.replace(/start|end/g,(function(i){return ji[i]}))}function Ii(i){var t=A(i);var e=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function zi(i){return _(Q(i)).left+Ii(i).scrollLeft}function Ei(i,t){var e=A(i);var n=Q(i);var s=e.visualViewport;var r=n.clientWidth;var a=n.clientHeight;var u=0;var c=0;if(s){r=s.width;a=s.height;var o=V();if(o||!o&&t==="fixed"){u=s.offsetLeft;c=s.offsetTop}}return{width:r,height:a,x:u+zi(i),y:c}}function Mi(i){var t;var e=Q(i);var n=Ii(i);var s=(t=i.ownerDocument)==null?void 0:t.body;var r=q(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0);var a=q(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);var u=-n.scrollLeft+zi(i);var c=-n.scrollTop;if(Z(s||e).direction==="rtl"){u+=q(e.clientWidth,s?s.clientWidth:0)-r}return{width:r,height:a,x:u,y:c}}function Si(i){var t=Z(i),e=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+n)}function Ti(i){if(["html","body","#document"].indexOf(B(i))>=0){return i.ownerDocument.body}if($(i)&&Si(i)){return i}return Ti(Y(i))}function Ci(i,t){var e;if(t===void 0){t=[]}var n=Ti(i);var s=n===((e=i.ownerDocument)==null?void 0:e.body);var r=A(n);var a=s?[r].concat(r.visualViewport||[],Si(n)?n:[]):n;var u=t.concat(a);return s?u:u.concat(Ci(Y(a)))}function Bi(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Ai(i,t){var e=_(i,false,t==="fixed");e.top=e.top+i.clientTop;e.left=e.left+i.clientLeft;e.bottom=e.top+i.clientHeight;e.right=e.left+i.clientWidth;e.width=i.clientWidth;e.height=i.clientHeight;e.x=e.left;e.y=e.top;return e}function Hi(i,t,e){return t===b?Bi(Ei(i,e)):H(t)?Ai(t,e):Bi(Mi(Q(i)))}function $i(i){var t=Ci(Y(i));var e=["absolute","fixed"].indexOf(Z(i).position)>=0;var n=e&&$(i)?ei(i):i;if(!H(n)){return[]}return t.filter((function(i){return H(i)&&X(i,n)&&B(i)!=="body"}))}function Pi(i,t,e,n){var s=t==="clippingParents"?$i(i):[].concat(t);var r=[].concat(s,[e]);var a=r[0];var u=r.reduce((function(t,e){var s=Hi(i,e,n);t.top=q(s.top,t.top);t.right=W(s.right,t.right);t.bottom=W(s.bottom,t.bottom);t.left=q(s.left,t.left);return t}),Hi(i,a,n));u.width=u.right-u.left;u.height=u.bottom-u.top;u.x=u.left;u.y=u.top;return u}function Ri(i){var t=i.reference,e=i.element,n=i.placement;var s=n?U(n):null;var r=n?fi(n):null;var a=t.x+t.width/2-e.width/2;var u=t.y+t.height/2-e.height/2;var c;switch(s){case o:c={x:a,y:t.y-e.height};break;case h:c={x:a,y:t.y+t.height};break;case l:c={x:t.x+t.width,y:u};break;case m:c={x:t.x-e.width,y:u};break;default:c={x:t.x,y:t.y}}var f=s?ni(s):null;if(f!=null){var v=f==="y"?"height":"width";switch(r){case d:c[f]=c[f]-(t[v]/2-e[v]/2);break;case p:c[f]=c[f]+(t[v]/2-e[v]/2);break}}return c}function Di(i,t){if(t===void 0){t={}}var e=t,n=e.placement,s=n===void 0?i.placement:n,r=e.strategy,a=r===void 0?i.strategy:r,u=e.boundary,c=u===void 0?w:u,m=e.rootBoundary,f=m===void 0?b:m,d=e.elementContext,p=d===void 0?g:d,x=e.altBoundary,k=x===void 0?false:x,O=e.padding,j=O===void 0?0:O;var L=ui(typeof j!=="number"?j:ci(j,v));var I=p===g?y:g;var z=i.rects.popper;var E=i.elements[k?I:p];var M=Pi(H(E)?E:E.contextElement||Q(i.elements.popper),c,f,a);var S=_(i.elements.reference);var T=Ri({reference:S,element:z,strategy:"absolute",placement:s});var C=Bi(Object.assign({},z,T));var B=p===g?C:S;var A={top:M.top-B.top+L.top,bottom:B.bottom-M.bottom+L.bottom,left:M.left-B.left+L.left,right:B.right-M.right+L.right};var $=i.modifiersData.offset;if(p===g&&$){var P=$[s];Object.keys(A).forEach((function(i){var t=[l,h].indexOf(i)>=0?1:-1;var e=[o,h].indexOf(i)>=0?"y":"x";A[i]+=P[e]*t}))}return A}function Ni(i,t){if(t===void 0){t={}}var e=t,n=e.placement,s=e.boundary,r=e.rootBoundary,a=e.padding,u=e.flipVariations,c=e.allowedAutoPlacements,o=c===void 0?k:c;var h=fi(n);var l=h?u?x:x.filter((function(i){return fi(i)===h})):v;var m=l.filter((function(i){return o.indexOf(i)>=0}));if(m.length===0){m=l}var f=m.reduce((function(t,e){t[e]=Di(i,{placement:e,boundary:s,rootBoundary:r,padding:a})[U(e)];return t}),{});return Object.keys(f).sort((function(i,t){return f[i]-f[t]}))}function Ui(i){if(U(i)===f){return[]}var t=Oi(i);return[Li(i),t,Li(t)]}function qi(i){var t=i.state,e=i.options,n=i.name;if(t.modifiersData[n]._skip){return}var s=e.mainAxis,r=s===void 0?true:s,a=e.altAxis,u=a===void 0?true:a,c=e.fallbackPlacements,v=e.padding,p=e.boundary,w=e.rootBoundary,b=e.altBoundary,g=e.flipVariations,y=g===void 0?true:g,x=e.allowedAutoPlacements;var k=t.options.placement;var O=U(k);var j=O===k;var L=c||(j||!y?[Oi(k)]:Ui(k));var I=[k].concat(L).reduce((function(i,e){return i.concat(U(e)===f?Ni(t,{placement:e,boundary:p,rootBoundary:w,padding:v,flipVariations:y,allowedAutoPlacements:x}):e)}),[]);var z=t.rects.reference;var E=t.rects.popper;var M=new Map;var S=true;var T=I[0];for(var C=0;C<I.length;C++){var B=I[C];var A=U(B);var H=fi(B)===d;var $=[o,h].indexOf(A)>=0;var P=$?"width":"height";var R=Di(t,{placement:B,boundary:p,rootBoundary:w,altBoundary:b,padding:v});var D=$?H?l:m:H?h:o;if(z[P]>E[P]){D=Oi(D)}var N=Oi(D);var q=[];if(r){q.push(R[A]<=0)}if(u){q.push(R[D]<=0,R[N]<=0)}if(q.every((function(i){return i}))){T=B;S=false;break}M.set(B,q)}if(S){var W=y?3:1;var F=function i(t){var e=I.find((function(i){var e=M.get(i);if(e){return e.slice(0,t).every((function(i){return i}))}}));if(e){T=e;return"break"}};for(var K=W;K>0;K--){var V=F(K);if(V==="break")break}}if(t.placement!==T){t.modifiersData[n]._skip=true;t.placement=T;t.reset=true}}const Wi={name:"flip",enabled:true,phase:"main",fn:qi,requiresIfExists:["offset"],data:{_skip:false}};function Fi(i,t,e){if(e===void 0){e={x:0,y:0}}return{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function Ki(i){return[o,l,h,m].some((function(t){return i[t]>=0}))}function Vi(i){var t=i.state,e=i.name;var n=t.rects.reference;var s=t.rects.popper;var r=t.modifiersData.preventOverflow;var a=Di(t,{elementContext:"reference"});var u=Di(t,{altBoundary:true});var c=Fi(a,n);var o=Fi(u,s,r);var h=Ki(c);var l=Ki(o);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:o,isReferenceHidden:h,hasPopperEscaped:l};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":l})}const _i={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Vi};function Ji(i,t,e){var n=U(i);var s=[m,o].indexOf(n)>=0?-1:1;var r=typeof e==="function"?e(Object.assign({},t,{placement:i})):e,a=r[0],u=r[1];a=a||0;u=(u||0)*s;return[m,l].indexOf(n)>=0?{x:u,y:a}:{x:a,y:u}}function Xi(i){var t=i.state,e=i.options,n=i.name;var s=e.offset,r=s===void 0?[0,0]:s;var a=k.reduce((function(i,e){i[e]=Ji(e,t.rects,r);return i}),{});var u=a[t.placement],c=u.x,o=u.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=c;t.modifiersData.popperOffsets.y+=o}t.modifiersData[n]=a}const Zi={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:Xi};function Gi(i){var t=i.state,e=i.name;t.modifiersData[e]=Ri({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Qi={name:"popperOffsets",enabled:true,phase:"read",fn:Gi,data:{}};function Yi(i){return i==="x"?"y":"x"}function it(i){var t=i.state,e=i.options,n=i.name;var s=e.mainAxis,r=s===void 0?true:s,a=e.altAxis,u=a===void 0?false:a,c=e.boundary,f=e.rootBoundary,v=e.altBoundary,p=e.padding,w=e.tether,b=w===void 0?true:w,g=e.tetherOffset,y=g===void 0?0:g;var x=Di(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:v});var k=U(t.placement);var O=fi(t.placement);var j=!O;var L=ni(k);var I=Yi(L);var z=t.modifiersData.popperOffsets;var E=t.rects.reference;var M=t.rects.popper;var S=typeof y==="function"?y(Object.assign({},t.rects,{placement:t.placement})):y;var T=typeof S==="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S);var C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var B={x:0,y:0};if(!z){return}if(r){var A;var H=L==="y"?o:m;var $=L==="y"?h:l;var P=L==="y"?"height":"width";var R=z[L];var D=R+x[H];var N=R-x[$];var F=b?-M[P]/2:0;var K=O===d?E[P]:M[P];var V=O===d?-M[P]:-E[P];var _=t.elements.arrow;var X=b&&_?J(_):{width:0,height:0};var Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ai();var G=Z[H];var Q=Z[$];var Y=si(0,E[P],X[P]);var ii=j?E[P]/2-F-Y-G-T.mainAxis:K-Y-G-T.mainAxis;var ti=j?-E[P]/2+F+Y+Q+T.mainAxis:V+Y+Q+T.mainAxis;var ui=t.elements.arrow&&ei(t.elements.arrow);var ci=ui?L==="y"?ui.clientTop||0:ui.clientLeft||0:0;var oi=(A=C==null?void 0:C[L])!=null?A:0;var hi=R+ii-oi-ci;var li=R+ti-oi;var mi=si(b?W(D,hi):D,R,b?q(N,li):N);z[L]=mi;B[L]=mi-R}if(u){var vi;var di=L==="x"?o:m;var pi=L==="x"?h:l;var wi=z[I];var bi=I==="y"?"height":"width";var gi=wi+x[di];var yi=wi-x[pi];var xi=[o,m].indexOf(k)!==-1;var ki=(vi=C==null?void 0:C[I])!=null?vi:0;var Oi=xi?gi:wi-E[bi]-M[bi]-ki+T.altAxis;var ji=xi?wi+E[bi]+M[bi]-ki-T.altAxis:yi;var Li=b&&xi?ri(Oi,wi,ji):si(b?Oi:gi,wi,b?ji:yi);z[I]=Li;B[I]=Li-wi}t.modifiersData[n]=B}const tt={name:"preventOverflow",enabled:true,phase:"main",fn:it,requiresIfExists:["offset"]};function et(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function nt(i){if(i===A(i)||!$(i)){return Ii(i)}else{return et(i)}}function st(i){var t=i.getBoundingClientRect();var e=F(t.width)/i.offsetWidth||1;var n=F(t.height)/i.offsetHeight||1;return e!==1||n!==1}function rt(i,t,e){if(e===void 0){e=false}var n=$(t);var s=$(t)&&st(t);var r=Q(t);var a=_(i,s,e);var u={scrollLeft:0,scrollTop:0};var c={x:0,y:0};if(n||!n&&!e){if(B(t)!=="body"||Si(r)){u=nt(t)}if($(t)){c=_(t,true);c.x+=t.clientLeft;c.y+=t.clientTop}else if(r){c.x=zi(r)}}return{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function at(i){var t=new Map;var e=new Set;var n=[];i.forEach((function(i){t.set(i.name,i)}));function s(i){e.add(i.name);var r=[].concat(i.requires||[],i.requiresIfExists||[]);r.forEach((function(i){if(!e.has(i)){var n=t.get(i);if(n){s(n)}}}));n.push(i)}i.forEach((function(i){if(!e.has(i.name)){s(i)}}));return n}function ut(i){var t=at(i);return C.reduce((function(i,e){return i.concat(t.filter((function(i){return i.phase===e})))}),[])}function ct(i){var t;return function(){if(!t){t=new Promise((function(e){Promise.resolve().then((function(){t=undefined;e(i())}))}))}return t}}function ot(i){var t=i.reduce((function(i,t){var e=i[t.name];i[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t;return i}),{});return Object.keys(t).map((function(i){return t[i]}))}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function lt(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++){t[e]=arguments[e]}return!t.some((function(i){return!(i&&typeof i.getBoundingClientRect==="function")}))}function mt(i){if(i===void 0){i={}}var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,s=t.defaultOptions,r=s===void 0?ht:s;return function i(t,e,s){if(s===void 0){s=r}var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ht,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}};var u=[];var c=false;var o={state:a,setOptions:function i(s){var u=typeof s==="function"?s(a.options):s;l();a.options=Object.assign({},r,a.options,u);a.scrollParents={reference:H(t)?Ci(t):t.contextElement?Ci(t.contextElement):[],popper:Ci(e)};var c=ut(ot([].concat(n,a.options.modifiers)));a.orderedModifiers=c.filter((function(i){return i.enabled}));h();return o.update()},forceUpdate:function i(){if(c){return}var t=a.elements,e=t.reference,n=t.popper;if(!lt(e,n)){return}a.rects={reference:rt(e,ei(n),a.options.strategy==="fixed"),popper:J(n)};a.reset=false;a.placement=a.options.placement;a.orderedModifiers.forEach((function(i){return a.modifiersData[i.name]=Object.assign({},i.data)}));for(var s=0;s<a.orderedModifiers.length;s++){if(a.reset===true){a.reset=false;s=-1;continue}var r=a.orderedModifiers[s],u=r.fn,h=r.options,l=h===void 0?{}:h,m=r.name;if(typeof u==="function"){a=u({state:a,options:l,name:m,instance:o})||a}}},update:ct((function(){return new Promise((function(i){o.forceUpdate();i(a)}))})),destroy:function i(){l();c=true}};if(!lt(t,e)){return o}o.setOptions(s).then((function(i){if(!c&&s.onFirstUpdate){s.onFirstUpdate(i)}}));function h(){a.orderedModifiers.forEach((function(i){var t=i.name,e=i.options,n=e===void 0?{}:e,s=i.effect;if(typeof s==="function"){var r=s({state:a,name:t,instance:o,options:n});var c=function i(){};u.push(r||c)}}))}function l(){u.forEach((function(i){return i()}));u=[]}return o}}var ft=[xi,Qi,bi,N,Zi,Wi,tt,mi,_i];var vt=mt({defaultModifiers:ft});const dt=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8.79502 15.875L4.62502 11.705L3.20502 13.115L8.79502 18.705L20.795 6.70501L19.385 5.29501L8.79502 15.875Z" fill="currentColor"/>\n</svg>\n`;const pt='html.sc-ic-menu-with-multi{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu-with-multi{margin:0}main.sc-ic-menu-with-multi{display:block}h1.sc-ic-menu-with-multi{font-size:2em;margin:0.67em 0}hr.sc-ic-menu-with-multi{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu-with-multi{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu-with-multi{background-color:transparent}abbr[title].sc-ic-menu-with-multi{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu-with-multi,strong.sc-ic-menu-with-multi{font-weight:bolder}code.sc-ic-menu-with-multi,kbd.sc-ic-menu-with-multi,samp.sc-ic-menu-with-multi{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu-with-multi{font-size:80%}sub.sc-ic-menu-with-multi,sup.sc-ic-menu-with-multi{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu-with-multi{bottom:-0.25em}sup.sc-ic-menu-with-multi{top:-0.5em}img.sc-ic-menu-with-multi{border-style:none}button.sc-ic-menu-with-multi,input.sc-ic-menu-with-multi,optgroup.sc-ic-menu-with-multi,select.sc-ic-menu-with-multi,textarea.sc-ic-menu-with-multi{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu-with-multi,input.sc-ic-menu-with-multi{overflow:visible}button.sc-ic-menu-with-multi,select.sc-ic-menu-with-multi{text-transform:none}button.sc-ic-menu-with-multi,[type="button"].sc-ic-menu-with-multi,[type="reset"].sc-ic-menu-with-multi,[type="submit"].sc-ic-menu-with-multi{-webkit-appearance:button}button.sc-ic-menu-with-multi::-moz-focus-inner,[type="button"].sc-ic-menu-with-multi::-moz-focus-inner,[type="reset"].sc-ic-menu-with-multi::-moz-focus-inner,[type="submit"].sc-ic-menu-with-multi::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu-with-multi:-moz-focusring,[type="button"].sc-ic-menu-with-multi:-moz-focusring,[type="reset"].sc-ic-menu-with-multi:-moz-focusring,[type="submit"].sc-ic-menu-with-multi:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu-with-multi{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu-with-multi{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu-with-multi{vertical-align:baseline}textarea.sc-ic-menu-with-multi{overflow:auto}[type="checkbox"].sc-ic-menu-with-multi,[type="radio"].sc-ic-menu-with-multi{box-sizing:border-box;padding:0}[type="number"].sc-ic-menu-with-multi::-webkit-inner-spin-button,[type="number"].sc-ic-menu-with-multi::-webkit-outer-spin-button{height:auto}[type="search"].sc-ic-menu-with-multi{-webkit-appearance:textfield;outline-offset:-2px}[type="search"].sc-ic-menu-with-multi::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu-with-multi::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu-with-multi{display:block}summary.sc-ic-menu-with-multi{display:list-item}template.sc-ic-menu-with-multi{display:none}[hidden].sc-ic-menu-with-multi{display:none}html.sc-ic-menu-with-multi,body.sc-ic-menu-with-multi,div.sc-ic-menu-with-multi,span.sc-ic-menu-with-multi,applet.sc-ic-menu-with-multi,object.sc-ic-menu-with-multi,iframe.sc-ic-menu-with-multi,h1.sc-ic-menu-with-multi,h2.sc-ic-menu-with-multi,h3.sc-ic-menu-with-multi,h4.sc-ic-menu-with-multi,h5.sc-ic-menu-with-multi,h6.sc-ic-menu-with-multi,p.sc-ic-menu-with-multi,blockquote.sc-ic-menu-with-multi,pre.sc-ic-menu-with-multi,a.sc-ic-menu-with-multi,abbr.sc-ic-menu-with-multi,acronym.sc-ic-menu-with-multi,address.sc-ic-menu-with-multi,big.sc-ic-menu-with-multi,cite.sc-ic-menu-with-multi,code.sc-ic-menu-with-multi,del.sc-ic-menu-with-multi,dfn.sc-ic-menu-with-multi,em.sc-ic-menu-with-multi,img.sc-ic-menu-with-multi,ins.sc-ic-menu-with-multi,kbd.sc-ic-menu-with-multi,q.sc-ic-menu-with-multi,s.sc-ic-menu-with-multi,samp.sc-ic-menu-with-multi,small.sc-ic-menu-with-multi,strike.sc-ic-menu-with-multi,strong.sc-ic-menu-with-multi,sub.sc-ic-menu-with-multi,sup.sc-ic-menu-with-multi,tt.sc-ic-menu-with-multi,var.sc-ic-menu-with-multi,b.sc-ic-menu-with-multi,u.sc-ic-menu-with-multi,i.sc-ic-menu-with-multi,center.sc-ic-menu-with-multi,dl.sc-ic-menu-with-multi,dt.sc-ic-menu-with-multi,dd.sc-ic-menu-with-multi,ol.sc-ic-menu-with-multi,ul.sc-ic-menu-with-multi,li.sc-ic-menu-with-multi,fieldset.sc-ic-menu-with-multi,form.sc-ic-menu-with-multi,label.sc-ic-menu-with-multi,legend.sc-ic-menu-with-multi,table.sc-ic-menu-with-multi,caption.sc-ic-menu-with-multi,tbody.sc-ic-menu-with-multi,tfoot.sc-ic-menu-with-multi,thead.sc-ic-menu-with-multi,tr.sc-ic-menu-with-multi,th.sc-ic-menu-with-multi,td.sc-ic-menu-with-multi,article.sc-ic-menu-with-multi,aside.sc-ic-menu-with-multi,canvas.sc-ic-menu-with-multi,details.sc-ic-menu-with-multi,embed.sc-ic-menu-with-multi,figure.sc-ic-menu-with-multi,figcaption.sc-ic-menu-with-multi,footer.sc-ic-menu-with-multi,header.sc-ic-menu-with-multi,hgroup.sc-ic-menu-with-multi,menu.sc-ic-menu-with-multi,nav.sc-ic-menu-with-multi,output.sc-ic-menu-with-multi,ruby.sc-ic-menu-with-multi,section.sc-ic-menu-with-multi,summary.sc-ic-menu-with-multi,time.sc-ic-menu-with-multi,mark.sc-ic-menu-with-multi,audio.sc-ic-menu-with-multi,video.sc-ic-menu-with-multi{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.open.sc-ic-menu-with-multi-h .menu.sc-ic-menu-with-multi{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-with-multi-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));min-width:20rem;color:var(--ic-color-primary-text);background-color:var(--ic-architectural-white);position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.open.sc-ic-menu-with-multi-h:not(.no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.select-all-focused.sc-ic-menu-with-multi-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu-with-multi::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu-with-multi #retry-button.sc-ic-menu-with-multi::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-with-multi-h{inset:auto !important}.menu.sc-ic-menu-with-multi{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(--ic-architectural-white);visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu-with-multi:has(+.option-bar).sc-ic-menu-with-multi{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu-with-multi{overflow-y:auto}.menu.sc-ic-menu-with-multi:focus-visible{outline:none}.open.sc-ic-menu-with-multi-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid var(--ic-architectural-400);transition:box-shadow var(--ic-easing-transition-fast)}.open.sc-ic-menu-with-multi-h .menu.sc-ic-menu-with-multi{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.open.sc-ic-menu-with-multi-h .option-bar.sc-ic-menu-with-multi{visibility:visible}.open.sc-ic-menu-with-multi-h .select-all-button.sc-ic-menu-with-multi{display:block}.full-width.sc-ic-menu-with-multi-h{width:100%}.option.sc-ic-menu-with-multi{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center}.loading-option.sc-ic-menu-with-multi p.sc-ic-menu-with-multi{margin-bottom:0 !important}.option.sc-ic-menu-with-multi:not(.loading-option){justify-content:space-between}.small.sc-ic-menu-with-multi-h .option.sc-ic-menu-with-multi{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.large.sc-ic-menu-with-multi-h .option.sc-ic-menu-with-multi{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu-with-multi:last-child{border-radius:0 0 1px 1px}.sc-ic-menu-with-multi:not(.menu:has(+.option-bar)).sc-ic-menu-with-multi .option.sc-ic-menu-with-multi:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu-with-multi:not(.disabled-option):hover{background-color:var(--ic-action-dark-bg-hover)}.option.sc-ic-menu-with-multi:not(.disabled-option):active{background-color:var(--ic-action-dark-bg-active)}.option.sc-ic-menu-with-multi:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu-with-multi:not(.disabled-option) .option-description.sc-ic-menu-with-multi{color:var(--ic-color-secondary-text)}.option.sc-ic-menu-with-multi .option-label.sc-ic-menu-with-multi{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu-with-multi .option-element.sc-ic-menu-with-multi{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu-with-multi .option-icon.sc-ic-menu-with-multi{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu-with-multi{pointer-events:none;max-width:calc(var(--ic-space-lg) * 10 + var(--ic-space-xl))}.option.loading-option.sc-ic-menu-with-multi .option-text-container.sc-ic-menu-with-multi{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-color-secondary-text)}.error-icon-svg.sc-ic-menu-with-multi{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-status-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu-with-multi{display:flex}.check-icon.sc-ic-menu-with-multi{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-xs);pointer-events:none}.focused-option.sc-ic-menu-with-multi .check-icon.sc-ic-menu-with-multi *.sc-ic-menu-with-multi{fill:currentcolor}.option-group-title.sc-ic-menu-with-multi{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);color:var(--ic-color-tertiary-text)}.small.sc-ic-menu-with-multi-h .option-group-title.sc-ic-menu-with-multi{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu-with-multi{border-bottom:var(--ic-border-default)}.disabled-option.sc-ic-menu-with-multi{color:var(--ic-architectural-200);cursor:default;pointer-events:none}.focused-option.sc-ic-menu-with-multi,.focused-option.sc-ic-menu-with-multi .option-description.sc-ic-menu-with-multi{background-color:var(--ic-focus-blue) !important;color:var(--ic-color-white-text) !important}.no-results.sc-ic-menu-with-multi-h li.sc-ic-menu-with-multi{cursor:no-drop}.no-results.sc-ic-menu-with-multi-h li.sc-ic-menu-with-multi:hover{background-color:transparent}.option-bar.sc-ic-menu-with-multi{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-architectural-40);visibility:hidden;border-bottom:var(--ic-border-width) solid var(--ic-architectural-400);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu-with-multi p.sc-ic-menu-with-multi{margin-bottom:0 !important}.large.sc-ic-menu-with-multi-h .option-bar.sc-ic-menu-with-multi{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu-with-multi{display:none}.select-all-button.sc-ic-menu-with-multi:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu-with-multi:focus{outline:none;border:0.125rem solid transparent}}';const wt=class{constructor(s){i(this,s);this.menuKeyPress=t(this,"menuKeyPress",7);this.menuOptionId=t(this,"menuOptionId",7);this.menuOptionSelect=t(this,"menuOptionSelect",7);this.menuOptionSelectAll=t(this,"menuOptionSelectAll",7);this.menuStateChange=t(this,"menuStateChange",7);this.retryButtonClicked=t(this,"retryButtonClicked",7);this.timeoutBlur=t(this,"timeoutBlur",7);this.ungroupedOptionsSet=t(this,"ungroupedOptionsSet",7);this.activeDescendantAttr="aria-activedescendant";this.clearButtonId="clear-button";this.disabledOptionSelected=false;this.hasPreviouslyBlurred=false;this.hasTimedOut=false;this.isLoading=false;this.isMultiSelect=false;this.isSearchBar=false;this.isSearchableSelect=false;this.lastOptionSelected=null;this.lastOptionFocused=null;this.multiOptionClicked=null;this.preventClickOpen=false;this.preventMenuFocus=false;this.shiftPressed=false;this.ungroupedOptions=[];this.handleClearListener=()=>{this.optionHighlighted=""};this.handleSubmitSearch=()=>{const i=this.options.findIndex((i=>i[this.valueField]===this.optionHighlighted));this.setInputValue(i)};this.handleMenuChange=(i,t)=>{this.menuStateChange.emit({open:i,focusInput:t});if(!i){if(t!==false){this.inputEl.focus();this.preventClickOpen=false}if(this.isMultiSelect){this.optionHighlighted=undefined;this.multiOptionClicked=null}}};this.setNextOptionValue=i=>{if(this.ungroupedOptions[i+1]){this.menuOptionSelect.emit({value:this.ungroupedOptions[i+1][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[i+1][this.valueField])})}else{this.menuOptionSelect.emit({value:this.ungroupedOptions[0][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[0][this.valueField])})}};this.setPreviousOptionValue=i=>{if(this.ungroupedOptions[i-1]){this.menuOptionSelect.emit({value:this.ungroupedOptions[i-1][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[i-1][this.valueField])})}else{this.menuOptionSelect.emit({value:this.ungroupedOptions[this.ungroupedOptions.length-1][this.valueField],optionId:this.getOptionId(this.ungroupedOptions[this.ungroupedOptions.length-1][this.valueField])})}};this.getParentEl=i=>{if(i.tagName==="IC-SEARCH-BAR"){this.isSearchBar=true}else if(i.tagName==="IC-SELECT"||i.tagName==="IC-SELECT-WITH-MULTI"){if(i.getAttribute("searchable")!==null&&i.getAttribute("searchable")!==undefined){this.isSearchableSelect=true}else if(i.getAttribute("multiple")!==null&&i.getAttribute("multiple")!==undefined){this.isMultiSelect=true}}};this.arrowBehaviour=i=>{i.preventDefault();this.handleMenuChange(true)};this.getMenuOptions=()=>this.isSearchBar?this.options:this.ungroupedOptions;this.setHighlightedOption=i=>{const t=this.getMenuOptions();t[i]&&!t[i].timedOut&&(this.optionHighlighted=t[i][this.valueField]||undefined)};this.autoSetInputValueKeyboardOpen=i=>{const t=this.ungroupedOptions.findIndex((i=>i[this.valueField]===this.value));this.keyboardNav=false;switch(i.key){case"ArrowDown":this.keyboardNav=true;this.arrowBehaviour(i);this.setNextOptionValue(t);break;case"ArrowUp":this.keyboardNav=true;this.arrowBehaviour(i);this.setPreviousOptionValue(t);break;case" ":case"Enter":if(i.target.id!==this.clearButtonId){this.handleMenuChange(true)}break}};this.selectHighlightedOption=(i,t,e)=>{if(!this.isLoading&&!this.hasTimedOut){this.keyboardNav=true}const n=this.isSearchBar||this.isSearchableSelect||this.open;if(n){if(e>=0){if(t[e]!==undefined){if(this.isSearchBar&&t[e].disabled===true){this.disabledOptionSelected=true}else{this.setInputValue(e)}}}else{this.setInputValue(e)}}else if(i.id!==this.clearButtonId&&this.isMultiSelect){this.handleMenuChange(true)}};this.isOptionSelected=i=>{const t=this.getMenuOptions();return this.value?this.value.includes(t[i][this.valueField]):false};this.deselectSelectedOptions=i=>{const t=this.getMenuOptions();if(this.value){const e=this.value.map((i=>t.findIndex((t=>t[this.valueField]===i))));e.forEach((t=>!i.includes(t)&&this.setInputValue(t)))}};this.manualSetInputValueKeyboardOpen=i=>{const t=this.getMenuOptions();if(!(i.shiftKey||i.metaKey||i.ctrlKey)){this.keyboardNav=false}const e=this.getOptionHighlightedIndex();const n=t.findIndex((i=>i[this.valueField]===this.multiOptionClicked));const s=i=>{var t;return(t=Array.from(this.el.querySelectorAll("li"))[i])===null||t===void 0?void 0:t.id};if(i.key===" "&&this.isMultiSelect){this.handleOptionSelect(i,e)}else{switch(i.key){case"ArrowDown":this.keyboardNav=true;this.arrowBehaviour(i);if(this.multiOptionClicked){this.setHighlightedOption(n);this.multiOptionClicked=null}else{this.handleSingleShiftSelect(i,e,t);if(e<t.length-1){this.setHighlightedOption(e+1);this.menuOptionId.emit({optionId:s(e+1)});this.handleSingleShiftSelect(i,e+1,t)}else{this.setHighlightedOption(0);this.menuOptionId.emit({optionId:s(0)});this.handleSingleShiftSelect(i,0,t)}if(this.isMultiSelect&&this.shiftPressed){this.deselectSelectedOptions([e,this.getOptionHighlightedIndex()]);this.shiftPressed=false}}this.lastOptionFocused=this.getOptionHighlightedIndex();this.preventIncorrectTabOrder=false;this.focusFromSearchKeypress=false;break;case"ArrowUp":this.keyboardNav=true;this.arrowBehaviour(i);if(this.multiOptionClicked){this.setHighlightedOption(n);this.multiOptionClicked=null}else{this.handleSingleShiftSelect(i,e,t);if(e<=0||e>t.length+1){this.setHighlightedOption(t.length-1);this.menuOptionId.emit({optionId:s(t.length-1)});this.handleSingleShiftSelect(i,t.length-1,t)}else{this.setHighlightedOption(e-1);this.menuOptionId.emit({optionId:s(e-1)});this.handleSingleShiftSelect(i,e-1,t)}if(this.isMultiSelect&&this.shiftPressed){this.deselectSelectedOptions([e,this.getOptionHighlightedIndex()]);this.shiftPressed=false}}this.lastOptionFocused=this.getOptionHighlightedIndex();this.preventIncorrectTabOrder=false;this.focusFromSearchKeypress=false;break;case"Home":{const t=0;this.keyboardNav=true;i.preventDefault();this.arrowBehaviour(i);this.setHighlightedOption(t);this.menuOptionId.emit({optionId:s(t)});if(i.shiftKey&&i.ctrlKey){this.handleMultipleShiftSelect(t)}this.lastOptionFocused=t;this.lastOptionSelected=t;break}case"End":{const e=t.length-1;this.keyboardNav=true;i.preventDefault();this.arrowBehaviour(i);this.setHighlightedOption(e);this.menuOptionId.emit({optionId:s(e)});if(i.shiftKey&&i.ctrlKey){this.handleMultipleShiftSelect(e)}this.lastOptionFocused=e;this.lastOptionSelected=e;break}case" ":if(this.isSearchBar||this.isSearchableSelect){break}else{if(i.target.id!==this.clearButtonId){this.handleMenuChange(true)}}break;case"Enter":i.preventDefault();this.handleOptionSelect(i,e);break;case"Escape":if(this.open){i.stopImmediatePropagation()}this.handleMenuChange(false);this.menuOptionId.emit({optionId:undefined});break;case"a":if(a()&&i.metaKey||!a()&&i.ctrlKey){this.emitSelectAll();this.lastOptionFocused=null;this.lastOptionSelected=null}break;case"Shift":case"Tab":if(i.key==="Shift"){this.shiftPressed=true}if(this.isSearchBar){this.keyboardNav=true}if(this.isMultiSelect){if(this.open&&!i.shiftKey&&this.selectAllButton){i.preventDefault();this.selectAllButton.focus();this.preventMenuFocus=true;this.preventClickOpen=true;this.optionHighlighted=undefined}}else{this.preventIncorrectTabOrder=true}break;case"Backspace":if(this.isSearchBar){this.parentEl.setFocus();if(this.searchMode==="navigation")this.setHighlightedOption(0)}else if(this.isSearchableSelect){this.parentEl.setFocus()}this.focusFromSearchKeypress=true;break;default:if(i.key!=="Tab"){if(this.isSearchBar){this.parentEl.setFocus();if(this.searchMode==="navigation")this.setHighlightedOption(0)}else if(this.isSearchableSelect){this.parentEl.setFocus()}this.focusFromSearchKeypress=true;break}}}};this.setInputValue=i=>{const t=this.getMenuOptions();if(t[i]!==undefined){this.menuOptionSelect.emit({value:t[i][this.valueField]});if(this.closeOnSelect){this.optionHighlighted=undefined;this.menuOptionId.emit({optionId:undefined})}}if(this.closeOnSelect){if(!this.hasTimedOut){this.handleMenuChange(false)}else{this.parentEl.setFocus()}}};this.handleOptionClick=i=>{const{value:t,label:e}=i.target.dataset;if(this.isMultiSelect){const e=this.getMenuOptions();const n=e.findIndex((i=>i.value===t));this.handleOptionSelect(i,n,true);this.multiOptionClicked=t}else{this.menuOptionSelect.emit({value:t,label:e});this.handleMenuChange(false)}this.optionHighlighted=undefined};this.handleRetry=()=>{this.retryButtonClicked.emit({value:this.value})};this.handleRetryKeyDown=i=>{if(i.key==="Enter"||i.key===" "){i.preventDefault();this.retryButtonClicked.emit({value:this.value,keyPressed:i.key})}};this.handleBlur=i=>{if(i.relatedTarget!==this.inputEl){if(i.relatedTarget===this.selectAllButton){this.menu.removeAttribute(this.activeDescendantAttr)}if(!(this.menu.contains(i.relatedTarget)||i.relatedTarget===this.selectAllButton)){this.handleMenuChange(false,this.hasPreviouslyBlurred);this.menu.removeAttribute(this.activeDescendantAttr);this.lastOptionFocused=null;this.lastOptionSelected=null}}else{this.handleMenuChange(false);this.preventClickOpen=true;this.menu.removeAttribute(this.activeDescendantAttr);this.lastOptionFocused=null;this.lastOptionSelected=null}if(!this.isSearchBar)this.hasPreviouslyBlurred=!!i.relatedTarget};this.handleMouseDown=i=>{i.preventDefault()};this.handleMenuKeyDown=i=>{if(this.activationType==="automatic"){this.autoSetValueOnMenuKeyDown(i)}else if(this.activationType==="manual"&&!this.isSearchBar){this.manualSetInputValueKeyboardOpen(i)}};this.handleMenuKeyUp=i=>{if(i.key==="Tab"&&i.shiftKey){this.preventClickOpen=false}if(i.key==="Enter"&&this.disabledOptionSelected){this.disabledOptionSelected=false;i.stopImmediatePropagation()}if(i.key==="Shift"){this.shiftPressed=false}};this.handleSelectAllClick=()=>{this.keyboardNav=false;this.menu.focus();this.emitSelectAll();this.lastOptionFocused=null;this.lastOptionSelected=null};this.handleSelectAllBlur=i=>{this.el.classList.remove("select-all-focused");if(!this.menu.contains(i.relatedTarget)){this.handleMenuChange(false,false)}};this.handleSelectAllFocus=()=>{this.el.classList.add("select-all-focused");this.lastOptionFocused=null;this.lastOptionSelected=null};this.handleSelectAllMouseDown=i=>{i.preventDefault()};this.handleSingleShiftSelect=(i,t,e)=>{if(this.isMultiSelect&&i.shiftKey&&!this.isOptionSelected(t)){this.selectHighlightedOption(i.target,e,t);this.lastOptionSelected=t}};this.handleMultipleShiftSelect=(i,t=false,e=null)=>{this.shiftPressed=false;const n=e===null?this.getFirstOptionInSelection(t):e;if(n!==null){const t=[];if(n<i){for(let e=n;e<i+1;e++){t.push(e)}}else{for(let e=n;e>i-1;e--){t.push(e)}}t.forEach((i=>!this.isOptionSelected(i)&&this.setInputValue(i)));this.deselectSelectedOptions(t)}};this.handleOptionSelect=(i,t,e=false)=>{const n=this.getMenuOptions();const s=this.getFirstOptionInSelection(e);if(i.shiftKey&&s!==null){this.handleMultipleShiftSelect(t,e,s)}else{this.selectHighlightedOption(i.target,n,t)}this.lastOptionFocused=t;this.lastOptionSelected=t};this.getFirstOptionInSelection=i=>i&&this.lastOptionFocused!==null?this.lastOptionFocused:this.lastOptionSelected!==null?this.lastOptionSelected:null;this.emitSelectAll=()=>{var i;this.menuOptionSelectAll.emit({select:!this.value||!(((i=this.value)===null||i===void 0?void 0:i.length)===this.ungroupedOptions.length)})};this.emitMenuKeyPress=(i,t)=>{this.menuKeyPress.emit({isNavKey:i,key:t})};this.autoSetValueOnMenuKeyDown=i=>{i.cancelBubble=true;const t=this.ungroupedOptions.findIndex((i=>i[this.valueField]===this.value));const e=this.inputEl.tagName==="INPUT";this.keyboardNav=false;switch(i.key){case" ":i.preventDefault();break;case"ArrowUp":if(!this.hasTimedOut){i.preventDefault();this.setPreviousOptionValue(t);this.keyboardNav=true}break;case"ArrowDown":if(!this.hasTimedOut){i.preventDefault();this.setNextOptionValue(t);this.keyboardNav=true}break;case"Home":this.menuOptionSelect.emit({value:this.ungroupedOptions[0][this.valueField]});this.keyboardNav=true;break;case"End":this.menuOptionSelect.emit({value:this.ungroupedOptions[this.ungroupedOptions.length-1][this.valueField]});this.keyboardNav=true;break;case"Enter":!this.hasTimedOut&&this.handleMenuChange(false);break;case"Escape":this.handleMenuChange(false);break;case"Backspace":if(e){this.inputEl.focus()}break;case"Shift":break;default:if(e&&i.key!=="Tab"&&!this.hasTimedOut){this.inputEl.focus()}if(i.key.length===1){this.keyboardNav=true}break}this.emitMenuKeyPress(this.keyboardNav,i.key)};this.getOptionId=i=>`${this.menuId}-${i}`;this.getOptionAriaLabel=(i,t)=>{let e=i[this.labelField];if(i.description){e=`${e}, ${i.description}`}if(i.element){e=`${e}, ${i.element.ariaLabel}`}if(t){return`${e}, ${t[this.labelField]} group`}else{return e}};this.getSortedOptions=i=>{let t=[];if(i.sort){t=i.sort(((i,t)=>i.recommended&&!t.recommended?-1:0))}return t};this.getOptionHighlightedIndex=()=>{const i=this.getMenuOptions();return i.findIndex((i=>i[this.valueField]===this.optionHighlighted))};this.isManualMode=this.activationType==="manual";this.scrollToSelected=i=>{const t=this.selectOnEnter?this.el.querySelector(`li[data-value="${this.optionHighlighted}"]`):i.querySelector(".option[aria-selected='true']");if(t){const e=t.offsetTop+t.offsetHeight;if(e>i.scrollTop+i.offsetHeight||e<i.scrollTop+i.offsetHeight){i.scrollTop=t.offsetTop}this.menu.setAttribute(this.activeDescendantAttr,t.id);t.focus()}};this.loadUngroupedOptions=()=>{if(this.options.length>0&&this.options.map){this.options.map((i=>{if(i.children){i.children.map((i=>!i.disabled&&this.ungroupedOptions.push(i)))}else if(!i.disabled){this.ungroupedOptions.push(i)}}))}this.ungroupedOptions=this.getSortedOptions(this.ungroupedOptions);this.ungroupedOptionsSet.emit({options:this.ungroupedOptions})};this.setMenuScrollbar=()=>{let i=0;this.el.querySelectorAll(".option").forEach((t=>i+=t.clientHeight));if(i>=320){this.menu.classList.add("menu-scroll")}};this.handleTimeoutBlur=i=>{this.timeoutBlur.emit({ev:i})};this.optionContent=(i,t)=>e(n,null,i.loading&&e("ic-loading-indicator",{size:"icon"}),e("div",{class:"option-text-container"},e("div",{class:"option-label"},i.icon&&e("div",{class:"option-icon",innerHTML:i.icon,"aria-hidden":"true"}),e("ic-typography",{variant:"body","aria-hidden":"true"},e("p",null,i[this.labelField]))),i.description&&e("ic-typography",{id:`${this.getOptionId(i[this.valueField])}-description`,class:"option-description",variant:"caption","aria-hidden":"true"},e("p",null,i.description)),i.element&&e("div",{class:"option-element",innerHTML:i.element.component,"aria-hidden":"true"})),!!i[this.valueField]&&!!this.value&&t&&this.parentEl.tagName!=="IC-SEARCH-BAR"&&e("span",{class:"check-icon",innerHTML:dt}));this.displayOption=(i,t,s,r)=>{const{open:a,keyboardNav:u,isManualMode:c,initialOptionsListRender:o,optionHighlighted:h,options:l}=this;return e("li",{id:this.getOptionId(i[this.valueField]),class:{option:true,"focused-option":c?(u||o)&&i[this.valueField]===h:u&&t,"last-recommended-option":i.recommended&&l[s+1]&&!l[s+1].recommended,"disabled-option":i.disabled,"loading-option":i.loading,timeout:i.timedOut},role:"option",tabindex:a&&(t||i[this.valueField]===h)&&u?"0":"-1","aria-label":this.getOptionAriaLabel(i,r),"aria-selected":t?"true":"false","aria-disabled":i.disabled?"true":"false",onClick:!i.timedOut&&!i.loading&&this.handleOptionClick,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,"data-value":i[this.valueField],"data-label":i[this.labelField]},i.timedOut?e(n,null,e("div",{class:"loading-error-info"},e("svg",{class:"error-icon-svg","aria-labelledby":"error-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#000000"},e("title",{id:"error-title"},"Error"),e("g",{id:"close-octagon"},e("path",{id:"Vector",d:"M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41"}))),e("ic-typography",{variant:"label"},i[this.labelField])),e("ic-button",{size:"small",variant:"tertiary",onClick:this.handleRetry,onKeyDown:this.handleRetryKeyDown,onBlur:this.handleTimeoutBlur,id:"retry-button"},"Retry")):this.optionContent(i,t))};this.focusFromSearchKeypress=false;this.initialOptionsListRender=false;this.keyboardNav=false;this.optionHighlighted=undefined;this.preventIncorrectTabOrder=false;this.menuOptions=undefined;this.activationType="automatic";this.anchorEl=undefined;this.autoFocusOnSelected=true;this.closeOnSelect=true;this.fullWidth=false;this.inputEl=undefined;this.inputLabel=undefined;this.labelField="label";this.menuId=undefined;this.open=undefined;this.parentEl=undefined;this.searchMode="navigation";this.selectOnEnter=false;this.size="default";this.small=false;this.options=undefined;this.value=undefined;this.valueField="value"}watchOpenHandler(){if(!this.open&&this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}}watchOptionsHandler(i){this.hasTimedOut=i.some((i=>i.timedOut));this.isLoading=i.some((i=>i.loading));this.ungroupedOptions=[];this.loadUngroupedOptions()}connectedCallback(){this.getParentEl(this.parentEl);if(this.isSearchBar){if(this.searchMode==="navigation")this.setHighlightedOption(0);this.initialOptionsListRender=true}}disconnectedCallback(){if(this.popperInstance){this.popperInstance.destroy()}this.parentEl.removeEventListener("icClear",this.handleClearListener);this.parentEl.removeEventListener("icSubmitSearch",this.handleSubmitSearch)}componentWillLoad(){var i,t;this.loadUngroupedOptions();this.parentEl.addEventListener("icClear",this.handleClearListener);this.parentEl.addEventListener("icSubmitSearch",this.handleSubmitSearch);this.hasTimedOut=(i=this.options)===null||i===void 0?void 0:i.some((i=>i.timedOut));this.isLoading=(t=this.options)===null||t===void 0?void 0:t.some((i=>i.loading))}componentDidLoad(){if(this.isSearchBar&&this.parentEl.disableFilter){this.focusFromSearchKeypress=true}u([{prop:this.open,propName:"open"},{prop:this.options,propName:"options"},{prop:this.menuId,propName:"menu-id"},{prop:this.inputLabel,propName:"input-label"}],"Menu")}componentDidUpdate(){const i=this.options.some((i=>i[this.valueField]===this.value));const t=this.optionHighlighted!==null&&this.optionHighlighted!==undefined&&this.optionHighlighted!=="";if(this.open&&this.options.length!==0&&!this.preventMenuFocus){if(this.value&&this.keyboardNav&&i&&this.autoFocusOnSelected&&!this.isSearchableSelect){this.scrollToSelected(this.menu)}else if(t&&!this.focusFromSearchKeypress&&!this.preventIncorrectTabOrder){const i=this.el.querySelector(`li[data-value="${this.optionHighlighted}"]`);if(i){this.menu.setAttribute(this.activeDescendantAttr,i.id);i.focus()}}else if(this.inputEl.tagName!=="IC-TEXT-FIELD"&&this.inputEl.tagName!=="INPUT"){this.menu.focus()}}if(this.open&&!this.value&&this.selectOnEnter){this.scrollToSelected(this.menu)}this.preventMenuFocus=false}componentDidRender(){if(this.open&&!this.popperInstance&&this.anchorEl){this.initPopperJs(this.anchorEl)}if(this.open&&!!this.options.length){this.setMenuScrollbar()}}async handleClickOpen(){if(!this.preventClickOpen){this.menuStateChange.emit({open:!this.open});this.keyboardNav=false}this.preventClickOpen=false}async handleKeyboardOpen(i){this.keyboardNav=false;if(this.activationType==="automatic"){this.autoSetInputValueKeyboardOpen(i)}else{this.manualSetInputValueKeyboardOpen(i)}}async handleSetFirstOption(){this.setHighlightedOption(0)}async initPopperJs(i){this.popperInstance=vt(i,this.el,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,7]}},{name:"flip",options:{fallbackPlacements:["top-start"],rootBoundary:"viewport"}}]})}render(){const{inputLabel:i,options:t,menuId:n,value:r,fullWidth:a,hasTimedOut:u,isLoading:o,size:h,small:l,open:m,inputEl:f,keyboardNav:v}=this;const d=`${(r===null||r===void 0?void 0:r.length)===this.ungroupedOptions.length?"Clear":"Select"} all`;const p=this.el.classList.contains("no-results");return e(s,{class:{"full-width":a,"no-focus":(f===null||f===void 0?void 0:f.tagName)==="INPUT"||u||o||p,small:l,[h]:true,open:m&&t.length!==0,multiple:this.isMultiSelect}},t.length!==0&&e("ul",{id:n,class:"menu",role:"listbox","aria-label":`${i} pop-up`,"aria-multiselectable":this.isMultiSelect?"true":"false",tabindex:m&&!v&&(f===null||f===void 0?void 0:f.tagName)!=="INPUT"?"0":"-1",ref:i=>this.menu=i,onKeyDown:this.handleMenuKeyDown,onKeyUp:this.handleMenuKeyUp,onBlur:this.handleBlur},this.getSortedOptions(t).map(((i,t)=>{if(i.children){if(i.children.length>0){return e("div",null,e("ic-typography",{class:"option-group-title",role:"presentation",variant:"subtitle-small"},e("p",null,i[this.labelField])),i.children.map((e=>e.label&&this.displayOption(e,this.isMultiSelect?r===null||r===void 0?void 0:r.includes(e[this.valueField]):e[this.valueField]===r,t,i))))}else{return null}}else{return i.label&&this.displayOption(i,this.isMultiSelect?r===null||r===void 0?void 0:r.includes(i[this.valueField]):i[this.valueField]===r,t)}}))),t.length!==0&&this.isMultiSelect&&!o&&!u&&!p&&e("div",{class:"option-bar"},e("ic-typography",null,e("p",null,`${r?r.length:0}/${c(this.options)} selected`)),e("ic-button",{class:"select-all-button","aria-label":`${d} options for ${i}`,ref:i=>this.selectAllButton=i,variant:"tertiary",onClick:this.handleSelectAllClick,onMouseDown:this.handleSelectAllMouseDown,onBlur:this.handleSelectAllBlur,onFocus:this.handleSelectAllFocus,size:h==="small"?"small":"default"},d)))}get el(){return r(this)}static get watchers(){return{open:["watchOpenHandler"],options:["watchOptionsHandler"]}}};wt.style=pt;export{wt as ic_menu_with_multi};
2
+ //# sourceMappingURL=p-ac591209.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as a,h as i,g as e}from"./p-8455d1bb.js";import{i as s}from"./p-297e99cf.js";const c='.title-bar-wrapper,.header-container,.description-actions,.action-area,.custom-actions-wrapper{display:flex}.title-bar-wrapper,.action-area,.custom-actions-wrapper{gap:var(--ic-space-xs)}.title-bar-wrapper{flex-direction:column;padding:var(--ic-space-sm) var(--ic-space-xs);border-bottom:var(--ic-space-1px) solid var(--ic-architectural-300)}.full-width{padding:var(--ic-space-sm) 0;border-bottom:none}ic-typography.heading h3{margin:0}ic-typography.ic-typography-subtitle-small{color:var(--ic-color-tertiary-text)}ic-typography.ic-typography-h3,::slotted([slot="header"]){max-width:50rem}ic-typography.ic-typography-body,::slotted([slot="description"]){color:var(--ic-color-secondary-text)}ic-typography.ic-typography-body,ic-typography.ic-typography-subtitle-small,::slotted([slot="description"]){max-width:40rem}.density-input{--input-width:7.625rem}@media screen and (max-width: 1200px){.header-container{flex-direction:column}}@media screen and (min-width: 1201px){.header-container{gap:var(--ic-space-xs);align-items:baseline}}@media screen and (min-width: 769px){.description-actions{justify-content:space-between}}@media screen and (max-width: 768px){.description-actions{flex-direction:column;align-items:flex-start;gap:var(--ic-space-xs)}}@media screen and (min-width: 577px){.action-area{align-items:center}}@media screen and (max-width: 576px){.action-area{flex-direction:column}}';const r="Title Bar";const n=class{constructor(i){t(this,i);this.icTableDensityUpdate=a(this,"icTableDensityUpdate",7);this.initialDensitySelectOption="default";this.isEmbedded=false;this.changeDensity=t=>{this.icTableDensityUpdate.emit({value:t.detail.value})};this.description=undefined;this.heading=r;this.hideDensitySelect=false;this.metadata=undefined}componentWillLoad(){const t=this.el.parentElement;if(t.tagName==="IC-DATA-TABLE"){const a=t;this.initialDensitySelectOption=a.density;this.isEmbedded=a.embedded;if(this.heading===r){this.heading=a.caption}}}render(){const{changeDensity:t,description:a,el:e,heading:c,hideDensitySelect:r,initialDensitySelectOption:n,isEmbedded:o,metadata:l}=this;const p=s(e,"primary-action")||s(e,"custom-actions")||!r;const d=s(e,"description")||a;return i("div",{class:{"title-bar-wrapper":true,"full-width":o}},i("div",{class:"header-container"},i("slot",{name:"heading"},i("ic-typography",{variant:"h3",className:"heading"},i("h3",null,c))),l&&i("ic-typography",{variant:"subtitle-small"},l)),(p||d)&&i("div",{class:"description-actions"},i("slot",{name:"description"},a&&i("ic-typography",{variant:"body"},a)),p&&i("div",{class:"action-area"},s(e,"custom-actions")&&i("div",{class:"custom-actions-wrapper"},i("slot",{name:"custom-actions"})),!r&&i("ic-select",{small:true,label:"Change density",class:"density-input",hideLabel:true,options:[{label:"Default",value:"default"},{label:"Dense",value:"dense"},{label:"Spacious",value:"spacious"}],value:n,onIcChange:t}),s(e,"primary-action")&&i("slot",{name:"primary-action"}))))}get el(){return e(this)}};n.style=c;export{n as ic_data_table_title_bar};
2
- //# sourceMappingURL=p-92f701e7.entry.js.map
1
+ import{r as t,c as a,h as i,g as e}from"./p-8455d1bb.js";import{i as s}from"./p-7435de65.js";const c='.title-bar-wrapper,.header-container,.description-actions,.action-area,.custom-actions-wrapper{display:flex}.title-bar-wrapper,.action-area,.custom-actions-wrapper{gap:var(--ic-space-xs)}.title-bar-wrapper{flex-direction:column;padding:var(--ic-space-sm) var(--ic-space-xs);border-bottom:var(--ic-space-1px) solid var(--ic-architectural-300)}.full-width{padding:var(--ic-space-sm) 0;border-bottom:none}ic-typography.heading h3{margin:0}ic-typography.ic-typography-subtitle-small{color:var(--ic-color-tertiary-text)}ic-typography.ic-typography-h3,::slotted([slot="header"]){max-width:50rem}ic-typography.ic-typography-body,::slotted([slot="description"]){color:var(--ic-color-secondary-text)}ic-typography.ic-typography-body,ic-typography.ic-typography-subtitle-small,::slotted([slot="description"]){max-width:40rem}.density-input{--input-width:7.625rem}@media screen and (max-width: 1200px){.header-container{flex-direction:column}}@media screen and (min-width: 1201px){.header-container{gap:var(--ic-space-xs);align-items:baseline}}@media screen and (min-width: 769px){.description-actions{justify-content:space-between}}@media screen and (max-width: 768px){.description-actions{flex-direction:column;align-items:flex-start;gap:var(--ic-space-xs)}}@media screen and (min-width: 577px){.action-area{align-items:center}}@media screen and (max-width: 576px){.action-area{flex-direction:column}}';const r="Title Bar";const n=class{constructor(i){t(this,i);this.icTableDensityUpdate=a(this,"icTableDensityUpdate",7);this.initialDensitySelectOption="default";this.isEmbedded=false;this.changeDensity=t=>{this.icTableDensityUpdate.emit({value:t.detail.value})};this.description=undefined;this.heading=r;this.hideDensitySelect=false;this.metadata=undefined}componentWillLoad(){const t=this.el.parentElement;if(t.tagName==="IC-DATA-TABLE"){const a=t;this.initialDensitySelectOption=a.density;this.isEmbedded=a.embedded;if(this.heading===r){this.heading=a.caption}}}render(){const{changeDensity:t,description:a,el:e,heading:c,hideDensitySelect:r,initialDensitySelectOption:n,isEmbedded:o,metadata:l}=this;const p=s(e,"primary-action")||s(e,"custom-actions")||!r;const d=s(e,"description")||a;return i("div",{class:{"title-bar-wrapper":true,"full-width":o}},i("div",{class:"header-container"},i("slot",{name:"heading"},i("ic-typography",{variant:"h3",className:"heading"},i("h3",null,c))),l&&i("ic-typography",{variant:"subtitle-small"},l)),(p||d)&&i("div",{class:"description-actions"},i("slot",{name:"description"},a&&i("ic-typography",{variant:"body"},a)),p&&i("div",{class:"action-area"},s(e,"custom-actions")&&i("div",{class:"custom-actions-wrapper"},i("slot",{name:"custom-actions"})),!r&&i("ic-select",{small:true,label:"Change density",class:"density-input",hideLabel:true,options:[{label:"Default",value:"default"},{label:"Dense",value:"dense"},{label:"Spacious",value:"spacious"}],value:n,onIcChange:t}),s(e,"primary-action")&&i("slot",{name:"primary-action"}))))}get el(){return e(this)}};n.style=c;export{n as ic_data_table_title_bar};
2
+ //# sourceMappingURL=p-b03d14fc.entry.js.map