@xplortech/apollo-core 1.0.0-beta.7 → 1.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (571) hide show
  1. package/dist/apollo-core/apollo-core.css +5841 -9
  2. package/dist/apollo-core/apollo-core.esm.js +163 -1
  3. package/dist/apollo-core/apollo-core.esm.js.map +1 -0
  4. package/dist/apollo-core/app-globals-0f993ce5.js +5 -0
  5. package/dist/apollo-core/app-globals-0f993ce5.js.map +1 -0
  6. package/dist/apollo-core/css-shim-6210ce77.js +6 -0
  7. package/dist/apollo-core/css-shim-6210ce77.js.map +1 -0
  8. package/dist/apollo-core/dom-423bdd70.js +75 -0
  9. package/dist/apollo-core/dom-423bdd70.js.map +1 -0
  10. package/dist/apollo-core/index-307c7018.js +3397 -0
  11. package/dist/apollo-core/index-307c7018.js.map +1 -0
  12. package/dist/apollo-core/index-912d1a21.js +586 -0
  13. package/dist/apollo-core/index-912d1a21.js.map +1 -0
  14. package/dist/apollo-core/index.esm.js +3 -0
  15. package/dist/apollo-core/index.esm.js.map +1 -0
  16. package/dist/apollo-core/p-08abab41.entry.js +2 -0
  17. package/dist/apollo-core/p-08abab41.entry.js.map +1 -0
  18. package/dist/apollo-core/p-16654189.entry.js +2 -0
  19. package/dist/apollo-core/p-16654189.entry.js.map +1 -0
  20. package/dist/apollo-core/p-2f90296c.js +3 -3
  21. package/dist/apollo-core/p-2f90296c.js.map +1 -0
  22. package/dist/apollo-core/p-315920cd.entry.js +2 -0
  23. package/dist/apollo-core/p-315920cd.entry.js.map +1 -0
  24. package/dist/apollo-core/p-3c934536.entry.js +2 -0
  25. package/dist/apollo-core/p-3c934536.entry.js.map +1 -0
  26. package/dist/apollo-core/p-47a55fa9.entry.js +2 -0
  27. package/dist/apollo-core/p-47a55fa9.entry.js.map +1 -0
  28. package/dist/apollo-core/p-485d0c40.entry.js +2 -0
  29. package/dist/apollo-core/p-485d0c40.entry.js.map +1 -0
  30. package/dist/apollo-core/p-5a038a8e.entry.js +2 -0
  31. package/dist/apollo-core/p-5a038a8e.entry.js.map +1 -0
  32. package/dist/apollo-core/p-88135928.entry.js +2 -0
  33. package/dist/apollo-core/p-88135928.entry.js.map +1 -0
  34. package/dist/apollo-core/p-91d6572c.entry.js +2 -0
  35. package/dist/apollo-core/p-91d6572c.entry.js.map +1 -0
  36. package/dist/apollo-core/p-ad90fe4d.js +2 -1
  37. package/dist/apollo-core/p-ad90fe4d.js.map +1 -0
  38. package/dist/apollo-core/p-ae99c266.entry.js +2 -0
  39. package/dist/apollo-core/p-ae99c266.entry.js.map +1 -0
  40. package/dist/apollo-core/p-aeef61dd.entry.js +2 -0
  41. package/dist/apollo-core/p-aeef61dd.entry.js.map +1 -0
  42. package/dist/apollo-core/p-c1b28f32.entry.js +2 -0
  43. package/dist/apollo-core/p-c1b28f32.entry.js.map +1 -0
  44. package/dist/apollo-core/p-ce6cb219.entry.js +2 -0
  45. package/dist/apollo-core/p-ce6cb219.entry.js.map +1 -0
  46. package/dist/apollo-core/p-cf2e6132.js +3 -0
  47. package/dist/apollo-core/p-cf2e6132.js.map +1 -0
  48. package/dist/apollo-core/p-e9cd309e.entry.js +2 -0
  49. package/dist/apollo-core/p-e9cd309e.entry.js.map +1 -0
  50. package/dist/apollo-core/p-f5561238.entry.js +2 -0
  51. package/dist/apollo-core/p-f5561238.entry.js.map +1 -0
  52. package/dist/apollo-core/p-ff46d20f.entry.js +2 -0
  53. package/dist/apollo-core/p-ff46d20f.entry.js.map +1 -0
  54. package/dist/{custom-elements/index.js → apollo-core/regular-133c23b5.js} +13 -4197
  55. package/dist/apollo-core/regular-133c23b5.js.map +1 -0
  56. package/dist/apollo-core/shadow-css-f0279020.js +389 -0
  57. package/dist/apollo-core/shadow-css-f0279020.js.map +1 -0
  58. package/dist/apollo-core/xpl-application-shell.entry.js +51 -0
  59. package/dist/apollo-core/xpl-application-shell.entry.js.map +1 -0
  60. package/dist/apollo-core/xpl-avatar.entry.js +28 -0
  61. package/dist/apollo-core/xpl-avatar.entry.js.map +1 -0
  62. package/dist/apollo-core/xpl-backdrop.entry.js +19 -0
  63. package/dist/apollo-core/xpl-backdrop.entry.js.map +1 -0
  64. package/dist/apollo-core/xpl-badge.entry.js +21 -0
  65. package/dist/apollo-core/xpl-badge.entry.js.map +1 -0
  66. package/dist/apollo-core/xpl-breadcrumb-item.entry.js +19 -0
  67. package/dist/apollo-core/xpl-breadcrumb-item.entry.js.map +1 -0
  68. package/dist/apollo-core/xpl-breadcrumbs.entry.js +14 -0
  69. package/dist/apollo-core/xpl-breadcrumbs.entry.js.map +1 -0
  70. package/dist/apollo-core/xpl-button-row.entry.js +23 -0
  71. package/dist/apollo-core/xpl-button-row.entry.js.map +1 -0
  72. package/dist/apollo-core/xpl-button.entry.js +60 -0
  73. package/dist/apollo-core/xpl-button.entry.js.map +1 -0
  74. package/dist/apollo-core/xpl-checkbox.entry.js +35 -0
  75. package/dist/apollo-core/xpl-checkbox.entry.js.map +1 -0
  76. package/dist/apollo-core/xpl-choicelist.entry.js +48 -0
  77. package/dist/apollo-core/xpl-choicelist.entry.js.map +1 -0
  78. package/dist/apollo-core/xpl-content-area.entry.js +15 -0
  79. package/dist/apollo-core/xpl-content-area.entry.js.map +1 -0
  80. package/dist/apollo-core/xpl-divider.entry.js +17 -0
  81. package/dist/apollo-core/xpl-divider.entry.js.map +1 -0
  82. package/dist/apollo-core/xpl-dropdown-group.entry.js +35 -0
  83. package/dist/apollo-core/xpl-dropdown-group.entry.js.map +1 -0
  84. package/dist/apollo-core/xpl-dropdown-heading.entry.js +15 -0
  85. package/dist/apollo-core/xpl-dropdown-heading.entry.js.map +1 -0
  86. package/dist/apollo-core/xpl-dropdown-option.entry.js +70 -0
  87. package/dist/apollo-core/xpl-dropdown-option.entry.js.map +1 -0
  88. package/dist/apollo-core/xpl-dropdown.entry.js +106 -0
  89. package/dist/apollo-core/xpl-dropdown.entry.js.map +1 -0
  90. package/dist/apollo-core/xpl-grid-item.entry.js +23 -0
  91. package/dist/apollo-core/xpl-grid-item.entry.js.map +1 -0
  92. package/dist/apollo-core/xpl-grid.entry.js +33 -0
  93. package/dist/apollo-core/xpl-grid.entry.js.map +1 -0
  94. package/dist/apollo-core/xpl-input.entry.js +2553 -0
  95. package/dist/apollo-core/xpl-input.entry.js.map +1 -0
  96. package/dist/apollo-core/xpl-list.entry.js +37 -0
  97. package/dist/apollo-core/xpl-list.entry.js.map +1 -0
  98. package/dist/apollo-core/xpl-main-nav.entry.js +25 -0
  99. package/dist/apollo-core/xpl-main-nav.entry.js.map +1 -0
  100. package/dist/apollo-core/xpl-nav-item.entry.js +25 -0
  101. package/dist/apollo-core/xpl-nav-item.entry.js.map +1 -0
  102. package/dist/apollo-core/xpl-pagination.entry.js +77 -0
  103. package/dist/apollo-core/xpl-pagination.entry.js.map +1 -0
  104. package/dist/apollo-core/xpl-radio.entry.js +34 -0
  105. package/dist/apollo-core/xpl-radio.entry.js.map +1 -0
  106. package/dist/apollo-core/xpl-secondary-nav.entry.js +14 -0
  107. package/dist/apollo-core/xpl-secondary-nav.entry.js.map +1 -0
  108. package/dist/apollo-core/xpl-select.entry.js +680 -0
  109. package/dist/apollo-core/xpl-select.entry.js.map +1 -0
  110. package/dist/apollo-core/xpl-table.entry.js +109 -0
  111. package/dist/apollo-core/xpl-table.entry.js.map +1 -0
  112. package/dist/apollo-core/xpl-tag.entry.js +19 -0
  113. package/dist/apollo-core/xpl-tag.entry.js.map +1 -0
  114. package/dist/apollo-core/xpl-toggle.entry.js +35 -0
  115. package/dist/apollo-core/xpl-toggle.entry.js.map +1 -0
  116. package/dist/apollo-core/xpl-utility-bar.entry.js +31 -0
  117. package/dist/apollo-core/xpl-utility-bar.entry.js.map +1 -0
  118. package/dist/cjs/apollo-core.cjs.js +154 -5
  119. package/dist/cjs/apollo-core.cjs.js.map +1 -0
  120. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  121. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  122. package/dist/cjs/css-shim-0a6fd78d.js +8 -0
  123. package/dist/cjs/css-shim-0a6fd78d.js.map +1 -0
  124. package/dist/cjs/dom-2c6adc90.js +77 -0
  125. package/dist/cjs/dom-2c6adc90.js.map +1 -0
  126. package/dist/cjs/index-0fdb260e.js +3564 -0
  127. package/dist/cjs/index-0fdb260e.js.map +1 -0
  128. package/dist/cjs/index-318d5fc7.js +588 -0
  129. package/dist/cjs/index-318d5fc7.js.map +1 -0
  130. package/dist/cjs/{index-acf3dd7a.js → index-e53b018b.js} +675 -215
  131. package/dist/cjs/index-e53b018b.js.map +1 -0
  132. package/dist/cjs/index.cjs.js +3 -0
  133. package/dist/cjs/index.cjs.js.map +1 -0
  134. package/dist/cjs/loader.cjs.js +24 -3
  135. package/dist/cjs/loader.cjs.js.map +1 -0
  136. package/dist/cjs/regular-503465f4.js +16056 -0
  137. package/dist/cjs/regular-503465f4.js.map +1 -0
  138. package/dist/cjs/regular-872f5226.js +2 -0
  139. package/dist/cjs/regular-872f5226.js.map +1 -0
  140. package/dist/cjs/shadow-css-39dfcfae.js +391 -0
  141. package/dist/cjs/shadow-css-39dfcfae.js.map +1 -0
  142. package/dist/cjs/v4-14140ff3.js +2 -0
  143. package/dist/cjs/v4-14140ff3.js.map +1 -0
  144. package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -13
  145. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +1 -0
  146. package/dist/cjs/xpl-avatar.cjs.entry.js +32 -0
  147. package/dist/cjs/xpl-avatar.cjs.entry.js.map +1 -0
  148. package/dist/cjs/xpl-avatar_12.cjs.entry.js +74 -38
  149. package/dist/cjs/xpl-avatar_12.cjs.entry.js.map +1 -0
  150. package/dist/cjs/xpl-backdrop.cjs.entry.js +3 -5
  151. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +1 -0
  152. package/dist/cjs/xpl-badge.cjs.entry.js +25 -0
  153. package/dist/cjs/xpl-badge.cjs.entry.js.map +1 -0
  154. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +23 -0
  155. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js.map +1 -0
  156. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +18 -0
  157. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js.map +1 -0
  158. package/dist/cjs/xpl-button-row.cjs.entry.js +6 -1
  159. package/dist/cjs/xpl-button-row.cjs.entry.js.map +1 -0
  160. package/dist/cjs/xpl-button.cjs.entry.js +64 -0
  161. package/dist/cjs/xpl-button.cjs.entry.js.map +1 -0
  162. package/dist/cjs/xpl-checkbox.cjs.entry.js +39 -0
  163. package/dist/cjs/xpl-checkbox.cjs.entry.js.map +1 -0
  164. package/dist/cjs/xpl-choicelist.cjs.entry.js +10 -1
  165. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +1 -0
  166. package/dist/cjs/xpl-content-area.cjs.entry.js +19 -0
  167. package/dist/cjs/xpl-content-area.cjs.entry.js.map +1 -0
  168. package/dist/cjs/xpl-divider.cjs.entry.js +4 -1
  169. package/dist/cjs/xpl-divider.cjs.entry.js.map +1 -0
  170. package/dist/cjs/xpl-dropdown-group.cjs.entry.js +39 -0
  171. package/dist/cjs/xpl-dropdown-group.cjs.entry.js.map +1 -0
  172. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +12 -3
  173. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +1 -0
  174. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +19 -0
  175. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js.map +1 -0
  176. package/dist/cjs/xpl-dropdown-option.cjs.entry.js +74 -0
  177. package/dist/cjs/xpl-dropdown-option.cjs.entry.js.map +1 -0
  178. package/dist/cjs/xpl-dropdown.cjs.entry.js +110 -0
  179. package/dist/cjs/xpl-dropdown.cjs.entry.js.map +1 -0
  180. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +13 -10
  181. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +1 -0
  182. package/dist/cjs/xpl-grid-item.cjs.entry.js +3 -1
  183. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +1 -0
  184. package/dist/cjs/xpl-grid.cjs.entry.js +3 -1
  185. package/dist/cjs/xpl-grid.cjs.entry.js.map +1 -0
  186. package/dist/cjs/xpl-input.cjs.entry.js +40 -17
  187. package/dist/cjs/xpl-input.cjs.entry.js.map +1 -0
  188. package/dist/cjs/xpl-list.cjs.entry.js +4 -24
  189. package/dist/cjs/xpl-list.cjs.entry.js.map +1 -0
  190. package/dist/cjs/xpl-main-nav.cjs.entry.js +3 -4
  191. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +1 -0
  192. package/dist/cjs/xpl-nav-item.cjs.entry.js +29 -0
  193. package/dist/cjs/xpl-nav-item.cjs.entry.js.map +1 -0
  194. package/dist/cjs/xpl-pagination.cjs.entry.js +7 -2
  195. package/dist/cjs/xpl-pagination.cjs.entry.js.map +1 -0
  196. package/dist/cjs/xpl-radio.cjs.entry.js +38 -0
  197. package/dist/cjs/xpl-radio.cjs.entry.js.map +1 -0
  198. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +18 -0
  199. package/dist/cjs/xpl-secondary-nav.cjs.entry.js.map +1 -0
  200. package/dist/cjs/xpl-select.cjs.entry.js +86 -27
  201. package/dist/cjs/xpl-select.cjs.entry.js.map +1 -0
  202. package/dist/cjs/xpl-table.cjs.entry.js +113 -0
  203. package/dist/cjs/xpl-table.cjs.entry.js.map +1 -0
  204. package/dist/cjs/xpl-tag.cjs.entry.js +23 -0
  205. package/dist/cjs/xpl-tag.cjs.entry.js.map +1 -0
  206. package/dist/cjs/xpl-toggle.cjs.entry.js +11 -6
  207. package/dist/cjs/xpl-toggle.cjs.entry.js.map +1 -0
  208. package/dist/cjs/xpl-utility-bar.cjs.entry.js +35 -0
  209. package/dist/cjs/xpl-utility-bar.cjs.entry.js.map +1 -0
  210. package/dist/collection/collection-manifest.json +2 -2
  211. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +119 -132
  212. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +1 -0
  213. package/dist/collection/components/xpl-avatar/xpl-avatar.js +151 -144
  214. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +1 -0
  215. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +27 -28
  216. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +1 -0
  217. package/dist/collection/components/xpl-badge/xpl-badge.js +44 -39
  218. package/dist/collection/components/xpl-badge/xpl-badge.js.map +1 -0
  219. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +3 -5
  220. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +1 -0
  221. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +3 -5
  222. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +1 -0
  223. package/dist/collection/components/xpl-button/xpl-button.js +205 -205
  224. package/dist/collection/components/xpl-button/xpl-button.js.map +1 -0
  225. package/dist/collection/components/xpl-button-row/xpl-button-row.js +106 -104
  226. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +1 -0
  227. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +182 -171
  228. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +1 -0
  229. package/dist/collection/components/xpl-choicelist/choice.js +1 -0
  230. package/dist/collection/components/xpl-choicelist/choice.js.map +1 -0
  231. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +134 -126
  232. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +1 -0
  233. package/dist/collection/components/xpl-content-area/xpl-content-area.js +28 -31
  234. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +1 -0
  235. package/dist/collection/components/xpl-divider/xpl-divider.js +27 -23
  236. package/dist/collection/components/xpl-divider/xpl-divider.js.map +1 -0
  237. package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
  238. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +1 -0
  239. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +47 -42
  240. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +1 -0
  241. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +27 -22
  242. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +1 -0
  243. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +79 -54
  244. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +1 -0
  245. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +168 -168
  246. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +1 -0
  247. package/dist/collection/components/xpl-grid/xpl-grid.js +2 -1
  248. package/dist/collection/components/xpl-grid/xpl-grid.js.map +1 -0
  249. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +76 -74
  250. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +1 -0
  251. package/dist/collection/components/xpl-input/xpl-input.js +405 -417
  252. package/dist/collection/components/xpl-input/xpl-input.js.map +1 -0
  253. package/dist/collection/components/xpl-list/listitem.js +1 -0
  254. package/dist/collection/components/xpl-list/listitem.js.map +1 -0
  255. package/dist/collection/components/xpl-list/xpl-list.js +43 -75
  256. package/dist/collection/components/xpl-list/xpl-list.js.map +1 -0
  257. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +48 -54
  258. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +1 -0
  259. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +48 -49
  260. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +1 -0
  261. package/dist/collection/components/xpl-pagination/xpl-pagination.js +117 -128
  262. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +1 -0
  263. package/dist/collection/components/xpl-radio/xpl-radio.js +158 -148
  264. package/dist/collection/components/xpl-radio/xpl-radio.js.map +1 -0
  265. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +3 -4
  266. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +1 -0
  267. package/dist/collection/components/xpl-select/xpl-select.js +296 -236
  268. package/dist/collection/components/xpl-select/xpl-select.js.map +1 -0
  269. package/dist/collection/components/xpl-table/xpl-table.js +169 -151
  270. package/dist/collection/components/xpl-table/xpl-table.js.map +1 -0
  271. package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
  272. package/dist/collection/components/xpl-tag/xpl-tag.js.map +1 -0
  273. package/dist/collection/components/xpl-toggle/xpl-toggle.js +138 -135
  274. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +1 -0
  275. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +74 -70
  276. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +1 -0
  277. package/dist/components/index.d.ts +39 -0
  278. package/dist/components/index.js +81 -0
  279. package/dist/components/index.js.map +1 -0
  280. package/dist/components/index2.js +586 -0
  281. package/dist/components/index2.js.map +1 -0
  282. package/dist/components/regular.js +16054 -0
  283. package/dist/components/regular.js.map +1 -0
  284. package/dist/components/v4.js +77 -0
  285. package/dist/components/v4.js.map +1 -0
  286. package/dist/components/xpl-application-shell.d.ts +11 -0
  287. package/dist/components/xpl-application-shell.js +80 -0
  288. package/dist/components/xpl-application-shell.js.map +1 -0
  289. package/dist/components/xpl-avatar.d.ts +11 -0
  290. package/dist/components/xpl-avatar.js +8 -0
  291. package/dist/components/xpl-avatar.js.map +1 -0
  292. package/dist/components/xpl-avatar2.js +51 -0
  293. package/dist/components/xpl-avatar2.js.map +1 -0
  294. package/dist/components/xpl-backdrop.d.ts +11 -0
  295. package/dist/components/xpl-backdrop.js +8 -0
  296. package/dist/components/xpl-backdrop.js.map +1 -0
  297. package/dist/components/xpl-backdrop2.js +35 -0
  298. package/dist/components/xpl-backdrop2.js.map +1 -0
  299. package/dist/components/xpl-badge.d.ts +11 -0
  300. package/dist/components/xpl-badge.js +8 -0
  301. package/dist/components/xpl-badge.js.map +1 -0
  302. package/dist/components/xpl-badge2.js +38 -0
  303. package/dist/components/xpl-badge2.js.map +1 -0
  304. package/dist/components/xpl-breadcrumb-item.d.ts +11 -0
  305. package/dist/components/xpl-breadcrumb-item.js +36 -0
  306. package/dist/components/xpl-breadcrumb-item.js.map +1 -0
  307. package/dist/components/xpl-breadcrumbs.d.ts +11 -0
  308. package/dist/components/xpl-breadcrumbs.js +31 -0
  309. package/dist/components/xpl-breadcrumbs.js.map +1 -0
  310. package/dist/components/xpl-button-row.d.ts +11 -0
  311. package/dist/components/xpl-button-row.js +50 -0
  312. package/dist/components/xpl-button-row.js.map +1 -0
  313. package/dist/components/xpl-button.d.ts +11 -0
  314. package/dist/components/xpl-button.js +8 -0
  315. package/dist/components/xpl-button.js.map +1 -0
  316. package/dist/components/xpl-button2.js +85 -0
  317. package/dist/components/xpl-button2.js.map +1 -0
  318. package/dist/components/xpl-checkbox.d.ts +11 -0
  319. package/dist/components/xpl-checkbox.js +8 -0
  320. package/dist/components/xpl-checkbox.js.map +1 -0
  321. package/dist/components/xpl-checkbox2.js +59 -0
  322. package/dist/components/xpl-checkbox2.js.map +1 -0
  323. package/dist/components/xpl-choicelist.d.ts +11 -0
  324. package/dist/components/xpl-choicelist.js +85 -0
  325. package/dist/components/xpl-choicelist.js.map +1 -0
  326. package/dist/components/xpl-content-area.d.ts +11 -0
  327. package/dist/components/xpl-content-area.js +34 -0
  328. package/dist/components/xpl-content-area.js.map +1 -0
  329. package/dist/components/xpl-divider.d.ts +11 -0
  330. package/dist/components/xpl-divider.js +36 -0
  331. package/dist/components/xpl-divider.js.map +1 -0
  332. package/dist/components/xpl-dropdown-group.d.ts +11 -0
  333. package/dist/components/xpl-dropdown-group.js +8 -0
  334. package/dist/components/xpl-dropdown-group.js.map +1 -0
  335. package/dist/components/xpl-dropdown-group2.js +69 -0
  336. package/dist/components/xpl-dropdown-group2.js.map +1 -0
  337. package/dist/components/xpl-dropdown-heading.d.ts +11 -0
  338. package/dist/components/xpl-dropdown-heading.js +8 -0
  339. package/dist/components/xpl-dropdown-heading.js.map +1 -0
  340. package/dist/components/xpl-dropdown-heading2.js +31 -0
  341. package/dist/components/xpl-dropdown-heading2.js.map +1 -0
  342. package/dist/components/xpl-dropdown-option.d.ts +11 -0
  343. package/dist/components/xpl-dropdown-option.js +8 -0
  344. package/dist/components/xpl-dropdown-option.js.map +1 -0
  345. package/dist/components/xpl-dropdown-option2.js +89 -0
  346. package/dist/components/xpl-dropdown-option2.js.map +1 -0
  347. package/dist/components/xpl-dropdown.d.ts +11 -0
  348. package/dist/components/xpl-dropdown.js +8 -0
  349. package/dist/components/xpl-dropdown.js.map +1 -0
  350. package/dist/components/xpl-dropdown2.js +147 -0
  351. package/dist/components/xpl-dropdown2.js.map +1 -0
  352. package/dist/components/xpl-grid-item.d.ts +11 -0
  353. package/dist/components/xpl-grid-item.js +45 -0
  354. package/dist/components/xpl-grid-item.js.map +1 -0
  355. package/dist/components/xpl-grid.d.ts +11 -0
  356. package/dist/components/xpl-grid.js +50 -0
  357. package/dist/components/xpl-grid.js.map +1 -0
  358. package/dist/components/xpl-input.d.ts +11 -0
  359. package/dist/components/xpl-input.js +2594 -0
  360. package/dist/components/xpl-input.js.map +1 -0
  361. package/dist/components/xpl-list.d.ts +11 -0
  362. package/dist/components/xpl-list.js +68 -0
  363. package/dist/components/xpl-list.js.map +1 -0
  364. package/dist/components/xpl-main-nav.d.ts +11 -0
  365. package/dist/components/xpl-main-nav.js +44 -0
  366. package/dist/components/xpl-main-nav.js.map +1 -0
  367. package/dist/components/xpl-nav-item.d.ts +11 -0
  368. package/dist/components/xpl-nav-item.js +44 -0
  369. package/dist/components/xpl-nav-item.js.map +1 -0
  370. package/dist/components/xpl-pagination.d.ts +11 -0
  371. package/dist/components/xpl-pagination.js +100 -0
  372. package/dist/components/xpl-pagination.js.map +1 -0
  373. package/dist/components/xpl-radio.d.ts +11 -0
  374. package/dist/components/xpl-radio.js +8 -0
  375. package/dist/components/xpl-radio.js.map +1 -0
  376. package/dist/components/xpl-radio2.js +57 -0
  377. package/dist/components/xpl-radio2.js.map +1 -0
  378. package/dist/components/xpl-secondary-nav.d.ts +11 -0
  379. package/dist/components/xpl-secondary-nav.js +31 -0
  380. package/dist/components/xpl-secondary-nav.js.map +1 -0
  381. package/dist/components/xpl-select.d.ts +11 -0
  382. package/dist/components/xpl-select.js +745 -0
  383. package/dist/components/xpl-select.js.map +1 -0
  384. package/dist/components/xpl-table.d.ts +11 -0
  385. package/dist/components/xpl-table.js +136 -0
  386. package/dist/components/xpl-table.js.map +1 -0
  387. package/dist/components/xpl-tag.d.ts +11 -0
  388. package/dist/components/xpl-tag.js +8 -0
  389. package/dist/components/xpl-tag.js.map +1 -0
  390. package/dist/components/xpl-tag2.js +33 -0
  391. package/dist/components/xpl-tag2.js.map +1 -0
  392. package/dist/components/xpl-toggle.d.ts +11 -0
  393. package/dist/components/xpl-toggle.js +61 -0
  394. package/dist/components/xpl-toggle.js.map +1 -0
  395. package/dist/components/xpl-utility-bar.d.ts +11 -0
  396. package/dist/components/xpl-utility-bar.js +52 -0
  397. package/dist/components/xpl-utility-bar.js.map +1 -0
  398. package/dist/esm/apollo-core.js +151 -5
  399. package/dist/esm/apollo-core.js.map +1 -0
  400. package/dist/esm/app-globals-0f993ce5.js +5 -0
  401. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  402. package/dist/esm/css-shim-6210ce77.js +6 -0
  403. package/dist/esm/css-shim-6210ce77.js.map +1 -0
  404. package/dist/esm/dom-423bdd70.js +75 -0
  405. package/dist/esm/dom-423bdd70.js.map +1 -0
  406. package/dist/esm/index-307c7018.js +3526 -0
  407. package/dist/esm/index-307c7018.js.map +1 -0
  408. package/dist/esm/index-912d1a21.js +586 -0
  409. package/dist/esm/index-912d1a21.js.map +1 -0
  410. package/dist/esm/{index-e3c4bb97.js → index-df9b48b4.js} +675 -216
  411. package/dist/esm/index-df9b48b4.js.map +1 -0
  412. package/dist/esm/index.js +2 -0
  413. package/dist/esm/index.js.map +1 -0
  414. package/dist/esm/loader.js +24 -3
  415. package/dist/esm/loader.js.map +1 -0
  416. package/dist/esm/polyfills/css-shim.js +1 -1
  417. package/dist/esm/regular-133c23b5.js +16054 -0
  418. package/dist/esm/regular-133c23b5.js.map +1 -0
  419. package/dist/esm/regular-86225e9d.js +2 -0
  420. package/dist/esm/regular-86225e9d.js.map +1 -0
  421. package/dist/esm/shadow-css-f0279020.js +389 -0
  422. package/dist/esm/shadow-css-f0279020.js.map +1 -0
  423. package/dist/esm/v4-929670b7.js +2 -0
  424. package/dist/esm/v4-929670b7.js.map +1 -0
  425. package/dist/esm/xpl-application-shell.entry.js +4 -13
  426. package/dist/esm/xpl-application-shell.entry.js.map +1 -0
  427. package/dist/esm/xpl-avatar.entry.js +28 -0
  428. package/dist/esm/xpl-avatar.entry.js.map +1 -0
  429. package/dist/esm/xpl-avatar_12.entry.js +74 -38
  430. package/dist/esm/xpl-avatar_12.entry.js.map +1 -0
  431. package/dist/esm/xpl-backdrop.entry.js +3 -5
  432. package/dist/esm/xpl-backdrop.entry.js.map +1 -0
  433. package/dist/esm/xpl-badge.entry.js +21 -0
  434. package/dist/esm/xpl-badge.entry.js.map +1 -0
  435. package/dist/esm/xpl-breadcrumb-item.entry.js +19 -0
  436. package/dist/esm/xpl-breadcrumb-item.entry.js.map +1 -0
  437. package/dist/esm/xpl-breadcrumbs.entry.js +14 -0
  438. package/dist/esm/xpl-breadcrumbs.entry.js.map +1 -0
  439. package/dist/esm/xpl-button-row.entry.js +6 -1
  440. package/dist/esm/xpl-button-row.entry.js.map +1 -0
  441. package/dist/esm/xpl-button.entry.js +60 -0
  442. package/dist/esm/xpl-button.entry.js.map +1 -0
  443. package/dist/esm/xpl-checkbox.entry.js +35 -0
  444. package/dist/esm/xpl-checkbox.entry.js.map +1 -0
  445. package/dist/esm/xpl-choicelist.entry.js +10 -1
  446. package/dist/esm/xpl-choicelist.entry.js.map +1 -0
  447. package/dist/esm/xpl-content-area.entry.js +15 -0
  448. package/dist/esm/xpl-content-area.entry.js.map +1 -0
  449. package/dist/esm/xpl-divider.entry.js +4 -1
  450. package/dist/esm/xpl-divider.entry.js.map +1 -0
  451. package/dist/esm/xpl-dropdown-group.entry.js +35 -0
  452. package/dist/esm/xpl-dropdown-group.entry.js.map +1 -0
  453. package/dist/esm/xpl-dropdown-group_3.entry.js +12 -3
  454. package/dist/esm/xpl-dropdown-group_3.entry.js.map +1 -0
  455. package/dist/esm/xpl-dropdown-heading.entry.js +15 -0
  456. package/dist/esm/xpl-dropdown-heading.entry.js.map +1 -0
  457. package/dist/esm/xpl-dropdown-option.entry.js +70 -0
  458. package/dist/esm/xpl-dropdown-option.entry.js.map +1 -0
  459. package/dist/esm/xpl-dropdown.entry.js +106 -0
  460. package/dist/esm/xpl-dropdown.entry.js.map +1 -0
  461. package/dist/esm/xpl-dropdown_2.entry.js +13 -10
  462. package/dist/esm/xpl-dropdown_2.entry.js.map +1 -0
  463. package/dist/esm/xpl-grid-item.entry.js +3 -1
  464. package/dist/esm/xpl-grid-item.entry.js.map +1 -0
  465. package/dist/esm/xpl-grid.entry.js +3 -1
  466. package/dist/esm/xpl-grid.entry.js.map +1 -0
  467. package/dist/esm/xpl-input.entry.js +39 -16
  468. package/dist/esm/xpl-input.entry.js.map +1 -0
  469. package/dist/esm/xpl-list.entry.js +4 -24
  470. package/dist/esm/xpl-list.entry.js.map +1 -0
  471. package/dist/esm/xpl-main-nav.entry.js +3 -4
  472. package/dist/esm/xpl-main-nav.entry.js.map +1 -0
  473. package/dist/esm/xpl-nav-item.entry.js +25 -0
  474. package/dist/esm/xpl-nav-item.entry.js.map +1 -0
  475. package/dist/esm/xpl-pagination.entry.js +7 -2
  476. package/dist/esm/xpl-pagination.entry.js.map +1 -0
  477. package/dist/esm/xpl-radio.entry.js +34 -0
  478. package/dist/esm/xpl-radio.entry.js.map +1 -0
  479. package/dist/esm/xpl-secondary-nav.entry.js +14 -0
  480. package/dist/esm/xpl-secondary-nav.entry.js.map +1 -0
  481. package/dist/esm/xpl-select.entry.js +85 -26
  482. package/dist/esm/xpl-select.entry.js.map +1 -0
  483. package/dist/esm/xpl-table.entry.js +109 -0
  484. package/dist/esm/xpl-table.entry.js.map +1 -0
  485. package/dist/esm/xpl-tag.entry.js +19 -0
  486. package/dist/esm/xpl-tag.entry.js.map +1 -0
  487. package/dist/esm/xpl-toggle.entry.js +10 -5
  488. package/dist/esm/xpl-toggle.entry.js.map +1 -0
  489. package/dist/esm/xpl-utility-bar.entry.js +31 -0
  490. package/dist/esm/xpl-utility-bar.entry.js.map +1 -0
  491. package/dist/stories/application-shell.stories.js +1 -0
  492. package/dist/stories/application-shell.stories.js.map +1 -0
  493. package/dist/stories/avatar.stories.js +1 -0
  494. package/dist/stories/avatar.stories.js.map +1 -0
  495. package/dist/stories/backdrop.stories.js +1 -0
  496. package/dist/stories/backdrop.stories.js.map +1 -0
  497. package/dist/stories/badge.stories.js +1 -0
  498. package/dist/stories/badge.stories.js.map +1 -0
  499. package/dist/stories/breadcrumbs.stories.js +1 -0
  500. package/dist/stories/breadcrumbs.stories.js.map +1 -0
  501. package/dist/stories/button-row.stories.js +1 -0
  502. package/dist/stories/button-row.stories.js.map +1 -0
  503. package/dist/stories/button.stories.js +1 -0
  504. package/dist/stories/button.stories.js.map +1 -0
  505. package/dist/stories/checkbox.stories.js +1 -0
  506. package/dist/stories/checkbox.stories.js.map +1 -0
  507. package/dist/stories/choicelist.stories.js +1 -0
  508. package/dist/stories/choicelist.stories.js.map +1 -0
  509. package/dist/stories/content-area.stories.js +1 -0
  510. package/dist/stories/content-area.stories.js.map +1 -0
  511. package/dist/stories/divider.stories.js +1 -0
  512. package/dist/stories/divider.stories.js.map +1 -0
  513. package/dist/stories/dropdown.stories.js +74 -65
  514. package/dist/stories/dropdown.stories.js.map +1 -0
  515. package/dist/stories/grid.stories.js +1 -0
  516. package/dist/stories/grid.stories.js.map +1 -0
  517. package/dist/stories/input.stories.js +1 -0
  518. package/dist/stories/input.stories.js.map +1 -0
  519. package/dist/stories/list.stories.js +1 -0
  520. package/dist/stories/list.stories.js.map +1 -0
  521. package/dist/stories/main-nav.stories.js +1 -0
  522. package/dist/stories/main-nav.stories.js.map +1 -0
  523. package/dist/stories/pagination.stories.js +1 -0
  524. package/dist/stories/pagination.stories.js.map +1 -0
  525. package/dist/stories/radio.stories.js +1 -0
  526. package/dist/stories/radio.stories.js.map +1 -0
  527. package/dist/stories/secondary-nav.stories.js +1 -0
  528. package/dist/stories/secondary-nav.stories.js.map +1 -0
  529. package/dist/stories/select.stories.js +109 -32
  530. package/dist/stories/select.stories.js.map +1 -0
  531. package/dist/stories/table.stories.js +1 -0
  532. package/dist/stories/table.stories.js.map +1 -0
  533. package/dist/stories/tabs.stories.js +1 -0
  534. package/dist/stories/tabs.stories.js.map +1 -0
  535. package/dist/stories/toggle.stories.js +1 -0
  536. package/dist/stories/toggle.stories.js.map +1 -0
  537. package/dist/stories/utility-bar.stories.js +1 -0
  538. package/dist/stories/utility-bar.stories.js.map +1 -0
  539. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dropdown.stories.d.ts +17 -1
  540. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +60 -0
  541. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +2 -1
  542. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +7 -1
  543. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +2 -2
  544. package/dist/types/components/xpl-select/xpl-select.d.ts +16 -2
  545. package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
  546. package/dist/types/components.d.ts +88 -23
  547. package/dist/types/stencil-public-runtime.d.ts +97 -23
  548. package/loader/index.d.ts +9 -1
  549. package/loader/package.json +1 -0
  550. package/package.json +7 -6
  551. package/CHANGELOG.md +0 -106
  552. package/dist/apollo-core/p-25f84d39.entry.js +0 -1
  553. package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
  554. package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
  555. package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
  556. package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
  557. package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
  558. package/dist/apollo-core/p-918b0731.entry.js +0 -1
  559. package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
  560. package/dist/apollo-core/p-a7cc4114.entry.js +0 -1
  561. package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
  562. package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
  563. package/dist/apollo-core/p-c8af4ed6.entry.js +0 -1
  564. package/dist/apollo-core/p-d4aa2fa9.js +0 -1
  565. package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
  566. package/dist/apollo-core/p-dad11011.entry.js +0 -1
  567. package/dist/apollo-core/p-db74c99c.entry.js +0 -1
  568. package/dist/apollo-core/p-ee16942f.entry.js +0 -1
  569. package/dist/collection/components/xpl-select/selectchoice.js +0 -1
  570. package/dist/custom-elements/index.d.ts +0 -219
  571. package/dist/types/components/xpl-select/selectchoice.d.ts +0 -4
@@ -133,7 +133,7 @@ export interface ListenOptions {
133
133
  */
134
134
  passive?: boolean;
135
135
  }
136
- export declare type ListenTargetOptions = 'body' | 'document' | 'window';
136
+ export type ListenTargetOptions = 'body' | 'document' | 'window';
137
137
  export interface StateDecorator {
138
138
  (): PropertyDecorator;
139
139
  }
@@ -214,14 +214,16 @@ export declare const State: StateDecorator;
214
214
  * https://stenciljs.com/docs/reactive-data#watch-decorator
215
215
  */
216
216
  export declare const Watch: WatchDecorator;
217
- export declare type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
218
- export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
217
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
218
+ export type ErrorHandler = (err: any, element?: HTMLElement) => void;
219
219
  /**
220
220
  * `setMode()` is used for libraries which provide multiple "modes" for styles.
221
221
  */
222
222
  export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
- * getMode
224
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
+ * @param ref a reference to the node to get styles for
226
+ * @returns the current mode or undefined, if not found
225
227
  */
226
228
  export declare function getMode<T = string | undefined>(ref: any): T;
227
229
  export declare function setPlatformHelpers(helpers: {
@@ -234,6 +236,9 @@ export declare function setPlatformHelpers(helpers: {
234
236
  /**
235
237
  * Get the base path to where the assets can be found. Use `setAssetPath(path)`
236
238
  * if the path needs to be customized.
239
+ * @param path the path to use in calculating the asset path. this value will be
240
+ * used in conjunction with the base asset path
241
+ * @returns the base path
237
242
  */
238
243
  export declare function getAssetPath(path: string): string;
239
244
  /**
@@ -246,22 +251,38 @@ export declare function getAssetPath(path: string): string;
246
251
  * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
247
252
  * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
248
253
  * But do note that this configuration depends on how your script is bundled, or lack of
249
- * bunding, and where your assets can be loaded from. Additionally custom bundling
254
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
250
255
  * will have to ensure the static assets are copied to its build directory.
256
+ * @param path the asset path to set
257
+ * @returns the set path
251
258
  */
252
259
  export declare function setAssetPath(path: string): string;
253
260
  /**
254
- * getElement
261
+ * Used to specify a nonce value that corresponds with an application's
262
+ * [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
263
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
264
+ * Alternatively, the nonce value can be set on a `meta` tag in the DOM head
265
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
266
+ * @param nonce The value to be used for the nonce attribute.
267
+ */
268
+ export declare function setNonce(nonce: string): void;
269
+ /**
270
+ * Retrieve a Stencil element for a given reference
271
+ * @param ref the ref to get the Stencil element for
272
+ * @returns a reference to the element
255
273
  */
256
274
  export declare function getElement(ref: any): HTMLStencilElement;
257
275
  /**
258
276
  * Schedules a new render of the given instance or element even if no state changed.
259
277
  *
260
- * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
278
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
279
+ *
280
+ * @param ref the node/element to force the re-render of
261
281
  */
262
282
  export declare function forceUpdate(ref: any): void;
263
283
  /**
264
284
  * getRenderingRef
285
+ * @returns the rendering ref
265
286
  */
266
287
  export declare function getRenderingRef(): any;
267
288
  export interface HTMLStencilElement extends HTMLElement {
@@ -272,6 +293,8 @@ export interface HTMLStencilElement extends HTMLElement {
272
293
  * in the best moment to perform DOM mutation without causing layout thrashing.
273
294
  *
274
295
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
296
+ *
297
+ * @param task the DOM-write to schedule
275
298
  */
276
299
  export declare function writeTask(task: RafCallback): void;
277
300
  /**
@@ -279,6 +302,8 @@ export declare function writeTask(task: RafCallback): void;
279
302
  * in the best moment to perform DOM reads without causing layout thrashing.
280
303
  *
281
304
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
305
+ *
306
+ * @param task the DOM-read to schedule
282
307
  */
283
308
  export declare function readTask(task: RafCallback): void;
284
309
  /**
@@ -417,13 +442,57 @@ interface HostAttributes {
417
442
  ref?: (el: HTMLElement | null) => void;
418
443
  [prop: string]: any;
419
444
  }
445
+ /**
446
+ * Utilities for working with functional Stencil components. An object
447
+ * conforming to this interface is passed by the Stencil runtime as the third
448
+ * argument to a functional component, allowing component authors to work with
449
+ * features like children.
450
+ *
451
+ * The children of a functional component will be passed as the second
452
+ * argument, so a functional component which uses these utils to transform its
453
+ * children might look like the following:
454
+ *
455
+ * ```ts
456
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
457
+ * utils.map(children, child => ({
458
+ * ...child,
459
+ * vattrs: {
460
+ * ...child.vattrs,
461
+ * class: `${child.vattrs.class} add-class`
462
+ * }
463
+ * }))
464
+ * );
465
+ * ```
466
+ *
467
+ * For more see the Stencil documentation, here:
468
+ * https://stenciljs.com/docs/functional-components
469
+ */
420
470
  export interface FunctionalUtilities {
471
+ /**
472
+ * Utility for reading the children of a functional component at runtime.
473
+ * Since the Stencil runtime uses a different interface for children it is
474
+ * not recommendeded to read the children directly, and is preferable to use
475
+ * this utility to, for instance, perform a side effect for each child.
476
+ */
421
477
  forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
478
+ /**
479
+ * Utility for transforming the children of a functional component. Given an
480
+ * array of children and a callback this will return a list of the results of
481
+ * passing each child to the supplied callback.
482
+ */
422
483
  map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
423
484
  }
424
485
  export interface FunctionalComponent<T = {}> {
425
486
  (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
426
487
  }
488
+ /**
489
+ * A Child VDOM node
490
+ *
491
+ * This has most of the same properties as {@link VNode} but friendlier names
492
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
493
+ * order to provide a friendlier public interface for users of the
494
+ * {@link FunctionalUtilities}).
495
+ */
427
496
  export interface ChildNode {
428
497
  vtag?: string | number | Function;
429
498
  vkey?: string | number;
@@ -470,6 +539,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
470
539
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
471
540
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
472
541
  export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
542
+ /**
543
+ * A virtual DOM node
544
+ */
473
545
  export interface VNode {
474
546
  $flags$: number;
475
547
  $tag$: string | number | Function;
@@ -666,7 +738,7 @@ export declare namespace JSXBase {
666
738
  use: JSXBase.SVGAttributes;
667
739
  view: JSXBase.SVGAttributes;
668
740
  }
669
- interface SlotAttributes {
741
+ interface SlotAttributes extends JSXAttributes {
670
742
  name?: string;
671
743
  slot?: string;
672
744
  onSlotchange?: (event: Event) => void;
@@ -820,8 +892,8 @@ export declare namespace JSXBase {
820
892
  accept?: string;
821
893
  allowdirs?: boolean;
822
894
  alt?: string;
823
- autoCapitalize?: any;
824
- autocapitalize?: any;
895
+ autoCapitalize?: string;
896
+ autocapitalize?: string;
825
897
  autoComplete?: string;
826
898
  autocomplete?: string;
827
899
  autoFocus?: boolean;
@@ -1145,8 +1217,8 @@ export declare namespace JSXBase {
1145
1217
  resource?: string;
1146
1218
  typeof?: string;
1147
1219
  vocab?: string;
1148
- autoCapitalize?: any;
1149
- autocapitalize?: any;
1220
+ autoCapitalize?: string;
1221
+ autocapitalize?: string;
1150
1222
  autoCorrect?: string;
1151
1223
  autocorrect?: string;
1152
1224
  autoSave?: string;
@@ -1427,9 +1499,7 @@ export declare namespace JSXBase {
1427
1499
  z?: number | string;
1428
1500
  zoomAndPan?: string;
1429
1501
  }
1430
- interface DOMAttributes<T = Element> {
1431
- key?: string | number;
1432
- ref?: (elm?: T) => void;
1502
+ interface DOMAttributes<T> extends JSXAttributes<T> {
1433
1503
  slot?: string;
1434
1504
  part?: string;
1435
1505
  exportparts?: string;
@@ -1439,12 +1509,12 @@ export declare namespace JSXBase {
1439
1509
  onCutCapture?: (event: ClipboardEvent) => void;
1440
1510
  onPaste?: (event: ClipboardEvent) => void;
1441
1511
  onPasteCapture?: (event: ClipboardEvent) => void;
1442
- onCompositionEnd?: (event: CompositionEvent) => void;
1443
- onCompositionEndCapture?: (event: CompositionEvent) => void;
1444
- onCompositionStart?: (event: CompositionEvent) => void;
1445
- onCompositionStartCapture?: (event: CompositionEvent) => void;
1446
- onCompositionUpdate?: (event: CompositionEvent) => void;
1447
- onCompositionUpdateCapture?: (event: CompositionEvent) => void;
1512
+ onCompositionend?: (event: CompositionEvent) => void;
1513
+ onCompositionendCapture?: (event: CompositionEvent) => void;
1514
+ onCompositionstart?: (event: CompositionEvent) => void;
1515
+ onCompositionstartCapture?: (event: CompositionEvent) => void;
1516
+ onCompositionupdate?: (event: CompositionEvent) => void;
1517
+ onCompositionupdateCapture?: (event: CompositionEvent) => void;
1448
1518
  onFocus?: (event: FocusEvent) => void;
1449
1519
  onFocusCapture?: (event: FocusEvent) => void;
1450
1520
  onFocusin?: (event: FocusEvent) => void;
@@ -1455,8 +1525,8 @@ export declare namespace JSXBase {
1455
1525
  onBlurCapture?: (event: FocusEvent) => void;
1456
1526
  onChange?: (event: Event) => void;
1457
1527
  onChangeCapture?: (event: Event) => void;
1458
- onInput?: (event: Event) => void;
1459
- onInputCapture?: (event: Event) => void;
1528
+ onInput?: (event: InputEvent) => void;
1529
+ onInputCapture?: (event: InputEvent) => void;
1460
1530
  onReset?: (event: Event) => void;
1461
1531
  onResetCapture?: (event: Event) => void;
1462
1532
  onSubmit?: (event: Event) => void;
@@ -1550,6 +1620,10 @@ export declare namespace JSXBase {
1550
1620
  onTransitionEndCapture?: (event: TransitionEvent) => void;
1551
1621
  }
1552
1622
  }
1623
+ export interface JSXAttributes<T = Element> {
1624
+ key?: string | number;
1625
+ ref?: (elm?: T) => void;
1626
+ }
1553
1627
  export interface CustomElementsDefineOptions {
1554
1628
  exclude?: string[];
1555
1629
  resourcesUrl?: string;
package/loader/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  export * from '../dist/types/components';
3
2
  export interface CustomElementsDefineOptions {
4
3
  exclude?: string[];
@@ -11,3 +10,12 @@ export interface CustomElementsDefineOptions {
11
10
  }
12
11
  export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
13
12
  export declare function applyPolyfills(): Promise<void>;
13
+
14
+ /**
15
+ * Used to specify a nonce value that corresponds with an application's CSP.
16
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
17
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
18
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
19
+ * will result in the same behavior.
20
+ */
21
+ export declare function setNonce(nonce: string): void;
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "apollo-core-loader",
3
+ "private": true,
3
4
  "typings": "./index.d.ts",
4
5
  "module": "./index.js",
5
6
  "main": "./index.cjs.js",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@xplortech/apollo-core",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.9",
4
4
  "main": "dist/index.cjs.js",
5
- "module": "dist/custom-elements/index.js",
6
- "types": "dist/custom-elements/index.d.ts",
5
+ "module": "dist/index.js",
6
+ "types": "dist/types/components.d.ts",
7
7
  "collection": "dist/collection/collection-manifest.json",
8
8
  "collection:main": "dist/collection/index.js",
9
9
  "scripts": {
@@ -40,9 +40,9 @@
40
40
  "devDependencies": {
41
41
  "@babel/core": "^7.14.5",
42
42
  "@fortawesome/fontawesome-free": "^5.15.3",
43
- "@stencil/core": "^2.6.0",
44
- "@stencil/eslint-plugin": "^0.3.1",
45
- "@stencil/react-output-target": "0.0.9",
43
+ "@stencil/core": "^3.1.0",
44
+ "@stencil/eslint-plugin": "^0.4.0",
45
+ "@stencil/react-output-target": "0.4.0",
46
46
  "@storybook/addon-a11y": "^6.3.4",
47
47
  "@storybook/addon-actions": "^6.3.4",
48
48
  "@storybook/addon-essentials": "^6.3.4",
@@ -55,6 +55,7 @@
55
55
  "@typescript-eslint/parser": "^4.30.0",
56
56
  "@whitespace/storybook-addon-html": "^5.0.0",
57
57
  "@xplortech/apollo-foundation": "0.0.3",
58
+ "@xplortech/apollo-icons": "^1.0.0-beta.0",
58
59
  "auto-changelog": "^2.3.0",
59
60
  "autoprefixer": "^10.2.6",
60
61
  "babel-loader": "^8.2.2",
package/CHANGELOG.md DELETED
@@ -1,106 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- ---
6
-
7
- ## [0.5.2] - 2022-02-08
8
-
9
- ## Added
10
-
11
- - Navigation Items now also style buttons. ([#80](https://github.com/xplor/apollo/pull/80))
12
-
13
- ## Changed
14
-
15
- - Update css for some application shell related components. ([#80](https://github.com/xplor/apollo/pull/80))
16
-
17
- ## Fixed
18
-
19
- - Secondary navigation items had pointer-events: none preventing them from working. ([#80](https://github.com/xplor/apollo/pull/80))
20
-
21
- ## Removed
22
-
23
- - with-subnav prop from Application Shell. ([#80](https://github.com/xplor/apollo/pull/80))
24
-
25
- ## [0.5.1] - 2022-02-02
26
-
27
- ### Changed
28
-
29
- - Color variables in Main Nav, Utility Bar, Content Area and Application Shell to allow for colors to be overwritten ([#79](https://github.com/xplor/apollo/pull/79))
30
- - Add role="button" to xpl-button ([#79](https://github.com/xplor/apollo/pull/79))
31
-
32
- ## [0.5.0] - 2022-01-31
33
-
34
- ### Added
35
-
36
- - Application Shell component ([#78](https://github.com/xplor/apollo/pull/78))
37
- - Event Emitters to Main Nav and Utility Bar to control state of Application Shell ([#78](https://github.com/xplor/apollo/pull/78))
38
- - Prop to Backdrop to set position relative/fixed ([#78](https://github.com/xplor/apollo/pull/78))
39
-
40
- ## [0.2.2] - 2021-12-18
41
-
42
- ### Added
43
-
44
- - Grid ([#63](https://github.com/xplor/apollo/pull/63))
45
- - List ([#62](https://github.com/xplor/apollo/pull/62))
46
- - Button Row ([#60](https://github.com/xplor/apollo/pull/60))
47
- - Select ([#61](https://github.com/xplor/apollo/pull/61))
48
-
49
- ## [0.2.1] - 2021-12-17
50
-
51
- ### Added
52
-
53
- - Inputs (Text, Textarea, Password, Datepicker) ([#50](https://github.com/xplor/apollo/pull/50))
54
- - Choicelist (includes Checkbox and Radio) ([#50](https://github.com/xplor/apollo/pull/50))
55
- - Toggle ([#48](https://github.com/xplor/apollo/pull/48))
56
- - Button Row ([#60](https://github.com/xplor/apollo/pull/60))
57
- - Dividers ([#68](https://github.com/xplor/apollo/pull/68))
58
-
59
- ## [Unreleased] - 2021-12-03
60
-
61
- - Secondary Navigation ([#55](https://github.com/xplor/apollo/pull/55))
62
-
63
- ## [0.1.2] - 2021-11-18
64
-
65
- ### Added
66
-
67
- - Use design tokens from Apollo Foundation instead of coding variables in this library ([#46](https://github.com/xplor/apollo/pull/46))
68
- - Main Navigation (Sidebar) ([#51](https://github.com/xplor/apollo/pull/51))
69
- - Backdrop component and story ([#45](https://github.com/xplor/apollo/pull/45))
70
- - Breadcrumbs and Breadcrumb Item Components ([#43](https://github.com/xplor/apollo/pull/43))
71
- - Content Area component ([#49](https://github.com/xplor/apollo/pull/49))
72
-
73
- ## [0.1.0] - 2021-11-03
74
-
75
- ### Added
76
-
77
- - Utility Bar Component ([#29](https://github.com/xplor/apollo/pull/29))
78
- - Contribution Guidelines and other community health files ([#28](https://github.com/xplor/apollo/pull/28))
79
-
80
- ### Changed
81
-
82
- - Storybook stories to typescript
83
-
84
- ### Fixed
85
-
86
- - Default button height (40px).
87
-
88
- ## [0.0.7] - 2021-10-07
89
-
90
- ### Added
91
-
92
- - Changelog file ([#27](https://github.com/xplor/apollo/pull/27))
93
- - PostCSS plugins `nested` and `pxtorem` ([#26](https://github.com/xplor/apollo/pull/26))
94
- - `stylelint`, `eslint`, and `editorconfig` ([#24](https://github.com/xplor/apollo/pull/24))
95
- - Tests and GitHub Action for tests ([#23](https://github.com/xplor/apollo/pull/23))
96
- - `release-it` and GitHub actions ([#22](https://github.com/xplor/apollo/pull/22))
97
- - ChoiceList and Radio components, `xpl-choicelist` and `xpl-radio` ([#20](https://github.com/xplor/apollo/pull/20), [#21](https://github.com/xplor/apollo/pull/21))
98
- - Avatar Component, `xpl-avatar` ([#6](https://github.com/xplor/apollo/pull/6), [#16](https://github.com/xplor/apollo/pull/16), [#18](https://github.com/xplor/apollo/pull/18), [#19](https://github.com/xplor/apollo/pull/19))
99
- - Markup panel (testing with button) ([#14](https://github.com/xplor/apollo/pull/14))
100
- - Badge component, `xpl-badge` ([#13](https://github.com/xplor/apollo/pull/13))
101
- - Table component, `xpl-table` ([#2](https://github.com/xplor/apollo/pull/2), [#10](https://github.com/xplor/apollo/pull/10), [#11](https://github.com/xplor/apollo/pull/11), [#12](https://github.com/xplor/apollo/pull/12), [#15](https://github.com/xplor/apollo/pull/15))
102
- - Button and Pagination components, `xpl-button` and `xpl-pagination` ([#8](https://github.com/xplor/apollo/pull/8), [#9](https://github.com/xplor/apollo/pull/9), [#17](https://github.com/xplor/apollo/pull/17))
103
- - Stencil ([#7](https://github.com/xplor/apollo/pull/7))
104
- - Font tokens in tailwind theme ([#5](https://github.com/xplor/apollo/pull/5))
105
- - Color tokens in tailwind theme ([#4](https://github.com/xplor/apollo/pull/4))
106
- - Tabs component, `xpl-tabs` ([#3](https://github.com/xplor/apollo/pull/3))
@@ -1 +0,0 @@
1
- import{r as l,h as i,H as s}from"./p-d4aa2fa9.js";const t=class{constructor(i){l(this,i),this.withSubnav=!1,this.withUtility=!0,this.navWidth="default",this.navOpen=!0}closeNavOnMobile(){window.innerWidth<=640&&(this.navOpen=!1)}navToggleHandler(){this.navOpen=!this.navOpen}navWithHandler(l){this.navWidth=l.detail}onWindowResize(){this.closeNavOnMobile()}connectedCallback(){this.closeNavOnMobile()}componentWillLoad(){this.navOpen=void 0!==this.isNavOpenAtStartup?this.isNavOpenAtStartup:this.navOpen}render(){let l="xpl-application-shell";this.withUtility&&(l+=" xpl-application-shell--with_utility");let t="xpl-application-shell__nav";return t+=this.navOpen?` xpl-application-shell__nav--${this.navWidth}--open`:` xpl-application-shell__nav--${this.navWidth}`,i(s,{class:l},i("div",{class:t},i("slot",{name:"nav"})),i("div",{class:"xpl-application-shell__subnav"},i("slot",{name:"subnav"})),i("div",{class:"xpl-application-shell__utility"},i("slot",{name:"utility"})),i("div",{class:"xpl-application-shell__content"},i("slot",{name:"content"})),i("xpl-backdrop",{onClick:()=>this.navToggleHandler(),class:{"xpl-application-shell__backdrop--open":this.navOpen},relative:!0}))}};export{t as xpl_application_shell}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,H as o}from"./p-d4aa2fa9.js";const r=class{constructor(i){t(this,i),this.clickPrimary=s(this,"clickPrimary",7),this.clickSecondary=s(this,"clickSecondary",7),this.clickTertiary=s(this,"clickTertiary",7),this.onPrimary=()=>this.clickPrimary.emit(),this.onSecondary=()=>this.clickSecondary.emit(),this.onTertiary=()=>this.clickTertiary.emit()}render(){return i(o,{class:"xpl-button-row"},i("div",{class:"xpl-button-row-inner"},i("div",{class:"xpl-button-row__left"},this.secondary&&i("xpl-button",{variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary)),i("div",{class:"xpl-button-row__right"},this.tertiary&&i("xpl-button",{variant:"subtle",type:"button",onClick:this.onTertiary},this.tertiary),this.secondary&&i("xpl-button",{variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary),this.primary&&i("xpl-button",{class:"xpl-button-row__primary",onClick:this.onPrimary},this.primary))))}};export{r as xpl_button_row}
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as l}from"./p-d4aa2fa9.js";import{v as i}from"./p-ad90fe4d.js";const e=class{constructor(t){s(this,t),this.variant="default",this.id=i()}render(){let s="xpl-toggle-container";this.disabled&&(s+=" xpl-toggle-container--disabled");let i="xpl-toggle";return"small"===this.variant&&(i+=" xpl-toggle--small"),t(l,{class:s},(this.heading||this.description)&&t("label",{class:{"xpl-label":!0,"xpl-label--disabled":this.disabled},htmlFor:this.id},this.heading,this.description&&t("small",{class:{"xpl-description":!0,"xpl-description--disabled":this.disabled}},this.description)),t("input",{class:i,type:"checkbox",checked:this.checked,disabled:this.disabled,id:this.id,name:this.name}),this.label&&t("label",{htmlFor:this.id},this.label))}};export{e as xpl_toggle}
@@ -1 +0,0 @@
1
- import{r as t,h as n,H as e}from"./p-d4aa2fa9.js";import"./p-2f90296c.js";import{v as o}from"./p-ad90fe4d.js";const i=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:t=>"undefined"!=typeof console&&console.warn(t),getWeek:t=>{const n=new Date(t.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var e=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:t=>{const n=t%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},s=(t,n=2)=>`000${t}`.slice(-1*n),c=t=>!0===t?1:0;function d(t,n){let e;return function(){clearTimeout(e),e=setTimeout((()=>t.apply(this,arguments)),n)}}const l=t=>t instanceof Array?t:[t];function u(t,n,e){if(!0===e)return t.classList.add(n);t.classList.remove(n)}function f(t,n,e){const o=window.document.createElement(t);return e=e||"",o.className=n=n||"",void 0!==e&&(o.textContent=e),o}function p(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function h(t,n){return n(t)?t:t.parentNode?h(t.parentNode,n):void 0}function v(t,n){const e=f("div","numInputWrapper"),o=f("input","numInput "+t),i=f("span","arrowUp"),a=f("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?o.type="number":(o.type="text",o.pattern="\\d*"),void 0!==n)for(const t in n)o.setAttribute(t,n[t]);return e.appendChild(o),e.appendChild(i),e.appendChild(a),e}function w(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(n){return t.target}}const m=()=>{},g=(t,n,e)=>e.months[n?"shorthand":"longhand"][t],y={D:m,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:(t,n)=>{t.setHours(parseFloat(n))},H:(t,n)=>{t.setHours(parseFloat(n))},J:(t,n)=>{t.setDate(parseFloat(n))},K:(t,n,e)=>{t.setHours(t.getHours()%12+12*c(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:(t,n)=>{t.setSeconds(parseFloat(n))},U:(t,n)=>new Date(1e3*parseFloat(n)),W:function(t,n,e){const o=parseInt(n),i=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+e.firstDayOfWeek),i},Y:(t,n)=>{t.setFullYear(parseFloat(n))},Z:(t,n)=>new Date(n),d:(t,n)=>{t.setDate(parseFloat(n))},h:(t,n)=>{t.setHours(parseFloat(n))},i:(t,n)=>{t.setMinutes(parseFloat(n))},j:(t,n)=>{t.setDate(parseFloat(n))},l:m,m:(t,n)=>{t.setMonth(parseFloat(n)-1)},n:(t,n)=>{t.setMonth(parseFloat(n)-1)},s:(t,n)=>{t.setSeconds(parseFloat(n))},u:(t,n)=>new Date(parseFloat(n)),w:m,y:(t,n)=>{t.setFullYear(2e3+parseFloat(n))}},b={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},k={Z:t=>t.toISOString(),D:function(t,n,e){return n.weekdays.shorthand[k.w(t,n,e)]},F:function(t,n,e){return g(k.n(t,n,e)-1,!1,n)},G:function(t,n,e){return s(k.h(t,n,e))},H:t=>s(t.getHours()),J:function(t,n){return void 0!==n.ordinal?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:(t,n)=>n.amPM[c(t.getHours()>11)],M:function(t,n){return g(t.getMonth(),!0,n)},S:t=>s(t.getSeconds()),U:t=>t.getTime()/1e3,W:function(t,n,e){return e.getWeek(t)},Y:t=>s(t.getFullYear(),4),d:t=>s(t.getDate()),h:t=>t.getHours()%12?t.getHours()%12:12,i:t=>s(t.getMinutes()),j:t=>t.getDate(),l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:t=>s(t.getMonth()+1),n:t=>t.getMonth()+1,s:t=>t.getSeconds(),u:t=>t.getTime(),w:t=>t.getDay(),y:t=>String(t.getFullYear()).substring(2)},M=({config:t=a,l10n:n=r,isMobile:e=!1})=>(o,i,a)=>{const r=a||n;return void 0===t.formatDate||e?i.split("").map(((n,e,i)=>k[n]&&"\\"!==i[e-1]?k[n](o,r,t):"\\"!==n?n:"")).join(""):t.formatDate(o,i,r)},D=({config:t=a,l10n:n=r})=>(e,o,i,r)=>{if(0!==e&&!e)return;const s=r||n;let c;const d=e;if(e instanceof Date)c=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)c=new Date(e);else if("string"==typeof e){const n=o||(t||a).dateFormat,r=String(e).trim();if("today"===r)c=new Date,i=!0;else if(/Z$/.test(r)||/GMT$/.test(r))c=new Date(e);else if(t&&t.parseDate)c=t.parseDate(e,n);else{c=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let o,i=[];for(let t=0,a=0,r="";t<n.length;t++){const d=n[t],l="\\"===d,u="\\"===n[t-1]||l;if(b[d]&&!u){r+=b[d];const t=new RegExp(r).exec(e);t&&(o=!0)&&i["Y"!==d?"push":"unshift"]({fn:y[d],val:t[++a]})}else l||(r+=".");i.forEach((({fn:t,val:n})=>c=t(c,n,s)||c))}c=o?c:void 0}}if(c instanceof Date&&!isNaN(c.getTime()))return!0===i&&c.setHours(0,0,0,0),c;t.errorHandler(new Error(`Invalid date provided: ${d}`))};function C(t,n,e=!0){return!1!==e?new Date(t.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):t.getTime()-n.getTime()}function x(t){let n=t.defaultHour,e=t.defaultMinute,o=t.defaultSeconds;if(void 0!==t.minDate){const i=t.minDate.getHours(),a=t.minDate.getMinutes(),r=t.minDate.getSeconds();n<i&&(n=i),n===i&&e<a&&(e=a),n===i&&e===a&&o<r&&(o=t.minDate.getSeconds())}if(void 0!==t.maxDate){const i=t.maxDate.getHours(),a=t.maxDate.getMinutes();n=Math.min(n,i),n===i&&(e=Math.min(a,e)),n===i&&e===a&&(o=t.maxDate.getSeconds())}return{hours:n,minutes:e,seconds:o}}function j(t,n){const e={config:Object.assign(Object.assign({},a),F.defaultConfig),l10n:r};function o(t){return t.bind(e)}function m(){const t=e.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==e.calendarContainer&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),void 0!==e.daysContainer){const n=(e.days.offsetWidth+1)*t.showMonths;e.daysContainer.style.width=n+"px",e.calendarContainer.style.width=n+(void 0!==e.weekWrapper?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}}))}function y(t){if(0===e.selectedDates.length){const t=void 0===e.config.minDate||C(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),n=x(e.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),e.selectedDates=[t],e.latestSelectedDateObj=t}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();const n="keydown"===t.type,o=w(t),i=o;void 0!==e.amPM&&o===e.amPM&&(e.amPM.textContent=e.l10n.amPM[c(e.amPM.textContent===e.l10n.amPM[0])]);const a=parseFloat(i.getAttribute("min")),r=parseFloat(i.getAttribute("max")),d=parseFloat(i.getAttribute("step")),l=parseInt(i.value,10);let u=l+d*(t.delta||(n?38===t.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){const t=i===e.hourElement,n=i===e.minuteElement;u<a?(u=r+u+c(!t)+(c(t)&&c(!e.amPM)),n&&L(void 0,-1,e.hourElement)):u>r&&(u=i===e.hourElement?u-r-c(!e.amPM):a,n&&L(void 0,1,e.hourElement)),e.amPM&&t&&(1===d?u+l===23:Math.abs(u-l)>d)&&(e.amPM.textContent=e.l10n.amPM[c(e.amPM.textContent===e.l10n.amPM[0])]),i.value=s(u)}}(t);const n=e._input.value;k(),mt(),e._input.value!==n&&e._debouncedChange()}function k(){if(void 0===e.hourElement||void 0===e.minuteElement)return;let t=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(e.minuteElement.value,10)||0)%60,o=void 0!==e.secondElement?(parseInt(e.secondElement.value,10)||0)%60:0;void 0!==e.amPM&&(t=t%12+12*c(e.amPM.textContent===e.l10n.amPM[1]));const i=void 0!==e.config.minTime||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&0===C(e.latestSelectedDateObj,e.config.minDate,!0);if(void 0!==e.config.maxTime||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&0===C(e.latestSelectedDateObj,e.config.maxDate,!0)){const i=void 0!==e.config.maxTime?e.config.maxTime:e.config.maxDate;t=Math.min(t,i.getHours()),t===i.getHours()&&(n=Math.min(n,i.getMinutes())),n===i.getMinutes()&&(o=Math.min(o,i.getSeconds()))}if(i){const i=void 0!==e.config.minTime?e.config.minTime:e.config.minDate;t=Math.max(t,i.getHours()),t===i.getHours()&&n<i.getMinutes()&&(n=i.getMinutes()),n===i.getMinutes()&&(o=Math.max(o,i.getSeconds()))}O(t,n,o)}function j(t){const n=t||e.latestSelectedDateObj;n&&O(n.getHours(),n.getMinutes(),n.getSeconds())}function O(t,n,o){void 0!==e.latestSelectedDateObj&&e.latestSelectedDateObj.setHours(t%24,n,o||0,0),e.hourElement&&e.minuteElement&&!e.isMobile&&(e.hourElement.value=s(e.config.time_24hr?t:(12+t)%12+12*c(t%12==0)),e.minuteElement.value=s(n),void 0!==e.amPM&&(e.amPM.textContent=e.l10n.amPM[c(t>=12)]),void 0!==e.secondElement&&(e.secondElement.value=s(o)))}function S(t){const n=w(t),e=parseInt(n.value)+(t.delta||0);(e/1e3>1||"Enter"===t.key&&!/[^\d]/.test(e.toString()))&&z(e)}function A(t,n,o,i){return n instanceof Array?n.forEach((n=>A(t,n,o,i))):t instanceof Array?t.forEach((t=>A(t,n,o,i))):(t.addEventListener(n,o,i),void e._handlers.push({remove:()=>t.removeEventListener(n,o)}))}function I(){ft("onChange")}function T(t,n){const o=void 0!==t?e.parseDate(t):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),i=e.currentYear,a=e.currentMonth;try{void 0!==o&&(e.currentYear=o.getFullYear(),e.currentMonth=o.getMonth())}catch(t){t.message="Invalid date supplied: "+o,e.config.errorHandler(t)}n&&e.currentYear!==i&&(ft("onYearChange"),_()),!n||e.currentYear===i&&e.currentMonth===a||ft("onMonthChange"),e.redraw()}function E(t){const n=w(t);~n.className.indexOf("arrow")&&L(t,n.classList.contains("arrowUp")?1:-1)}function L(t,n,e){const o=t&&w(t),i=e||o&&o.parentNode&&o.parentNode.firstChild,a=pt("increment");a.delta=n,i&&i.dispatchEvent(a)}function $(t,n,o,i){const a=Q(n,!0),r=f("span","flatpickr-day "+t,n.getDate().toString());return r.dateObj=n,r.$i=i,r.setAttribute("aria-label",e.formatDate(n,e.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===C(n,e.now)&&(e.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),a?(r.tabIndex=-1,ht(n)&&(r.classList.add("selected"),e.selectedDateElem=r,"range"===e.config.mode&&(u(r,"startRange",e.selectedDates[0]&&0===C(n,e.selectedDates[0],!0)),u(r,"endRange",e.selectedDates[1]&&0===C(n,e.selectedDates[1],!0)),"nextMonthDay"===t&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===e.config.mode&&function(t){return!("range"!==e.config.mode||e.selectedDates.length<2)&&C(t,e.selectedDates[0])>=0&&C(t,e.selectedDates[1])<=0}(n)&&!ht(n)&&r.classList.add("inRange"),e.weekNumbers&&1===e.config.showMonths&&"prevMonthDay"!==t&&o%7==1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(n)+"</span>"),ft("onDayCreate",r),r}function H(t){t.focus(),"range"===e.config.mode&&tt(t)}function N(t){const n=t>0?e.config.showMonths:-1;for(let o=t>0?0:e.config.showMonths-1;o!=n;o+=t){const n=e.daysContainer.children[o],i=t>0?n.children.length:-1;for(let e=t>0?0:n.children.length-1;e!=i;e+=t){const t=n.children[e];if(-1===t.className.indexOf("hidden")&&Q(t.dateObj))return t}}}function P(t,n){const o=V(document.activeElement||document.body),i=void 0!==t?t:o?document.activeElement:void 0!==e.selectedDateElem&&V(e.selectedDateElem)?e.selectedDateElem:void 0!==e.todayDateElem&&V(e.todayDateElem)?e.todayDateElem:N(n>0?1:-1);void 0===i?e._input.focus():o?function(t,n){const o=-1===t.className.indexOf("Month")?t.dateObj.getMonth():e.currentMonth,i=n>0?e.config.showMonths:-1,a=n>0?1:-1;for(let r=o-e.currentMonth;r!=i;r+=a){const i=e.daysContainer.children[r],s=i.children.length;for(let c=o-e.currentMonth===r?t.$i+n:n<0?i.children.length-1:0;c>=0&&c<s&&c!=(n>0?s:-1);c+=a){const e=i.children[c];if(-1===e.className.indexOf("hidden")&&Q(e.dateObj)&&Math.abs(t.$i-c)>=Math.abs(n))return H(e)}}e.changeMonth(a),P(N(a),0)}(i,n):H(i)}function R(t,n){const o=(new Date(t,n,1).getDay()-e.l10n.firstDayOfWeek+7)%7,i=e.utils.getDaysInMonth((n-1+12)%12,t),a=e.utils.getDaysInMonth(n,t),r=window.document.createDocumentFragment(),s=e.config.showMonths>1,c=s?"prevMonthDay hidden":"prevMonthDay",d=s?"nextMonthDay hidden":"nextMonthDay";let l=i+1-o,u=0;for(;l<=i;l++,u++)r.appendChild($(c,new Date(t,n-1,l),l,u));for(l=1;l<=a;l++,u++)r.appendChild($("",new Date(t,n,l),l,u));for(let i=a+1;i<=42-o&&(1===e.config.showMonths||u%7!=0);i++,u++)r.appendChild($(d,new Date(t,n+1,i%a),i,u));const p=f("div","dayContainer");return p.appendChild(r),p}function Y(){if(void 0===e.daysContainer)return;p(e.daysContainer),e.weekNumbers&&p(e.weekNumbers);const t=document.createDocumentFragment();for(let n=0;n<e.config.showMonths;n++){const o=new Date(e.currentYear,e.currentMonth,1);o.setMonth(e.currentMonth+n),t.appendChild(R(o.getFullYear(),o.getMonth()))}e.daysContainer.appendChild(t),e.days=e.daysContainer.firstChild,"range"===e.config.mode&&1===e.selectedDates.length&&tt()}function _(){if(e.config.showMonths>1||"dropdown"!==e.config.monthSelectorType)return;const t=function(t){return!(void 0!==e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&t<e.config.minDate.getMonth()||void 0!==e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()&&t>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let n=0;n<12;n++){if(!t(n))continue;const o=f("option","flatpickr-monthDropdown-month");o.value=new Date(e.currentYear,n).getMonth().toString(),o.textContent=g(n,e.config.shorthandCurrentMonth,e.l10n),o.tabIndex=-1,e.currentMonth===n&&(o.selected=!0),e.monthsDropdownContainer.appendChild(o)}}function J(){const t=f("div","flatpickr-month"),n=window.document.createDocumentFragment();let o;e.config.showMonths>1||"static"===e.config.monthSelectorType?o=f("span","cur-month"):(e.monthsDropdownContainer=f("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),A(e.monthsDropdownContainer,"change",(t=>{const n=w(t),o=parseInt(n.value,10);e.changeMonth(o-e.currentMonth),ft("onMonthChange")})),_(),o=e.monthsDropdownContainer);const i=v("cur-year",{tabindex:"-1"}),a=i.getElementsByTagName("input")[0];a.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&a.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(a.setAttribute("max",e.config.maxDate.getFullYear().toString()),a.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const r=f("div","flatpickr-current-month");return r.appendChild(o),r.appendChild(i),n.appendChild(r),t.appendChild(n),{container:t,yearElement:a,monthElement:o}}function W(){p(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let t=e.config.showMonths;t--;){const t=J();e.yearElements.push(t.yearElement),e.monthElements.push(t.monthElement),e.monthNav.appendChild(t.container)}e.monthNav.appendChild(e.nextMonthNav)}function U(){e.weekdayContainer?p(e.weekdayContainer):e.weekdayContainer=f("div","flatpickr-weekdays");for(let t=e.config.showMonths;t--;){const t=f("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(t)}return K(),e.weekdayContainer}function K(){if(!e.weekdayContainer)return;const t=e.l10n.firstDayOfWeek;let n=[...e.l10n.weekdays.shorthand];t>0&&t<n.length&&(n=[...n.splice(t,n.length),...n.splice(0,t)]);for(let t=e.config.showMonths;t--;)e.weekdayContainer.children[t].innerHTML=`\n <span class='flatpickr-weekday'>\n ${n.join("</span><span class='flatpickr-weekday'>")}\n </span>\n `}function Z(t,n=!0){const o=n?t:t-e.currentMonth;o<0&&!0===e._hidePrevMonthArrow||o>0&&!0===e._hideNextMonthArrow||(e.currentMonth+=o,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,ft("onYearChange"),_()),Y(),ft("onMonthChange"),vt())}function B(t){return!(!e.config.appendTo||!e.config.appendTo.contains(t))||e.calendarContainer.contains(t)}function G(t){if(e.isOpen&&!e.config.inline){const n=w(t),o=B(n),i=n===e.input||n===e.altInput||e.element.contains(n)||t.path&&t.path.indexOf&&(~t.path.indexOf(e.input)||~t.path.indexOf(e.altInput)),a="blur"===t.type?i&&t.relatedTarget&&!B(t.relatedTarget):!i&&!o&&!B(t.relatedTarget),r=!e.config.ignoredFocusElements.some((t=>t.contains(n)));a&&r&&(void 0!==e.timeContainer&&void 0!==e.minuteElement&&void 0!==e.hourElement&&""!==e.input.value&&void 0!==e.input.value&&y(),e.close(),e.config&&"range"===e.config.mode&&1===e.selectedDates.length&&(e.clear(!1),e.redraw()))}}function z(t){if(!t||e.config.minDate&&t<e.config.minDate.getFullYear()||e.config.maxDate&&t>e.config.maxDate.getFullYear())return;const n=e.currentYear!==t;e.currentYear=t||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),n&&(e.redraw(),ft("onYearChange"),_())}function Q(t,n=!0){var o;const i=e.parseDate(t,void 0,n);if(e.config.minDate&&i&&C(i,e.config.minDate,void 0!==n?n:!e.minDateHasTime)<0||e.config.maxDate&&i&&C(i,e.config.maxDate,void 0!==n?n:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&0===e.config.disable.length)return!0;if(void 0===i)return!1;const a=!!e.config.enable,r=null!==(o=e.config.enable)&&void 0!==o?o:e.config.disable;for(let t,n=0;n<r.length;n++){if(t=r[n],"function"==typeof t&&t(i))return a;if(t instanceof Date&&void 0!==i&&t.getTime()===i.getTime())return a;if("string"==typeof t){const n=e.parseDate(t,void 0,!0);return n&&n.getTime()===i.getTime()?a:!a}if("object"==typeof t&&void 0!==i&&t.from&&t.to&&i.getTime()>=t.from.getTime()&&i.getTime()<=t.to.getTime())return a}return!a}function V(t){return void 0!==e.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&e.daysContainer.contains(t)}function q(t){t.target!==e._input||!(e.selectedDates.length>0||e._input.value.length>0)||t.relatedTarget&&B(t.relatedTarget)||e.setDate(e._input.value,!0,t.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function X(n){const o=w(n),i=e.config.wrap?t.contains(o):o===e._input,a=e.config.allowInput,r=e.isOpen&&(!a||!i),s=e.config.inline&&i&&!a;if(13===n.keyCode&&i){if(a)return e.setDate(e._input.value,!0,o===e.altInput?e.config.altFormat:e.config.dateFormat),o.blur();e.open()}else if(B(o)||r||s){const t=!!e.timeContainer&&e.timeContainer.contains(o);switch(n.keyCode){case 13:t?(n.preventDefault(),y(),st()):ct(n);break;case 27:n.preventDefault(),st();break;case 8:case 46:i&&!e.config.allowInput&&(n.preventDefault(),e.clear());break;case 37:case 39:if(t||i)e.hourElement&&e.hourElement.focus();else if(n.preventDefault(),void 0!==e.daysContainer&&(!1===a||document.activeElement&&V(document.activeElement))){const t=39===n.keyCode?1:-1;n.ctrlKey?(n.stopPropagation(),Z(t),P(N(1),0)):P(void 0,t)}break;case 38:case 40:n.preventDefault();const r=40===n.keyCode?1:-1;e.daysContainer&&void 0!==o.$i||o===e.input||o===e.altInput?n.ctrlKey?(n.stopPropagation(),z(e.currentYear-r),P(N(1),0)):t||P(void 0,7*r):o===e.currentYearElement?z(e.currentYear-r):e.config.enableTime&&(!t&&e.hourElement&&e.hourElement.focus(),y(n),e._debouncedChange());break;case 9:if(t){const t=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter((t=>t)),i=t.indexOf(o);if(-1!==i){const o=t[i+(n.shiftKey?-1:1)];n.preventDefault(),(o||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(o)&&n.shiftKey&&(n.preventDefault(),e._input.focus())}}if(void 0!==e.amPM&&o===e.amPM)switch(n.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],k(),mt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],k(),mt()}(i||B(o))&&ft("onKeyDown",n)}function tt(t){if(1!==e.selectedDates.length||t&&(!t.classList.contains("flatpickr-day")||t.classList.contains("flatpickr-disabled")))return;const n=t?t.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),o=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,e.selectedDates[0].getTime()),a=Math.max(n,e.selectedDates[0].getTime());let r=!1,s=0,c=0;for(let t=i;t<a;t+=864e5)Q(new Date(t),!0)||(r=r||t>i&&t<a,t<o&&(!s||t>s)?s=t:t>o&&(!c||t<c)&&(c=t));for(let i=0;i<e.config.showMonths;i++){const a=e.daysContainer.children[i];for(let i=0,f=a.children.length;i<f;i++){const f=a.children[i],p=f.dateObj.getTime(),h=s>0&&p<s||c>0&&p>c;h?(f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((t=>{f.classList.remove(t)}))):r&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((t=>{f.classList.remove(t)})),void 0!==t&&(t.classList.add(n<=e.selectedDates[0].getTime()?"startRange":"endRange"),o<n&&p===o?f.classList.add("startRange"):o>n&&p===o&&f.classList.add("endRange"),p>=s&&(0===c||p<=c)&&(l=o,u=n,(d=p)>Math.min(l,u)&&d<Math.max(l,u))&&f.classList.add("inRange")))}}var d,l,u}function nt(){!e.isOpen||e.config.static||e.config.inline||at()}function et(t){return n=>{const o=e.config[`_${t}Date`]=e.parseDate(n,e.config.dateFormat),i=e.config[`_${"min"===t?"max":"min"}Date`];void 0!==o&&(e["min"===t?"minDateHasTime":"maxDateHasTime"]=o.getHours()>0||o.getMinutes()>0||o.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter((t=>Q(t))),e.selectedDates.length||"min"!==t||j(o),mt()),e.daysContainer&&(rt(),void 0!==o?e.currentYearElement[t]=o.getFullYear().toString():e.currentYearElement.removeAttribute(t),e.currentYearElement.disabled=!!i&&void 0!==o&&i.getFullYear()===o.getFullYear())}}function ot(){return e.config.wrap?t.querySelector("[data-input]"):t}function it(){"object"!=typeof e.config.locale&&void 0===F.l10ns[e.config.locale]&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},F.l10ns.default),"object"==typeof e.config.locale?e.config.locale:"default"!==e.config.locale?F.l10ns[e.config.locale]:void 0),b.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,void 0===Object.assign(Object.assign({},n),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===F.defaultConfig.time_24hr&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=M(e),e.parseDate=D({config:e.config,l10n:e.l10n})}function at(t){if("function"==typeof e.config.position)return void e.config.position(e,t);if(void 0===e.calendarContainer)return;ft("onPreCalendarPosition");const n=t||e._positionElement,o=Array.prototype.reduce.call(e.calendarContainer.children,((t,n)=>t+n.offsetHeight),0),i=e.calendarContainer.offsetWidth,a=e.config.position.split(" "),r=a[0],s=a.length>1?a[1]:null,c=n.getBoundingClientRect(),d=window.innerHeight-c.bottom,l="above"===r||"below"!==r&&d<o&&c.top>o,f=window.pageYOffset+c.top+(l?-o-2:n.offsetHeight+2);if(u(e.calendarContainer,"arrowTop",!l),u(e.calendarContainer,"arrowBottom",l),e.config.inline)return;let p=window.pageXOffset+c.left,h=!1,v=!1;"center"===s?(p-=(i-c.width)/2,h=!0):"right"===s&&(p-=i-c.width,v=!0),u(e.calendarContainer,"arrowLeft",!h&&!v),u(e.calendarContainer,"arrowCenter",h),u(e.calendarContainer,"arrowRight",v);const w=window.document.body.offsetWidth-(window.pageXOffset+c.right),m=p+i>window.document.body.offsetWidth,g=w+i>window.document.body.offsetWidth;if(u(e.calendarContainer,"rightMost",m),!e.config.static)if(e.calendarContainer.style.top=`${f}px`,m)if(g){const t=function(){let t=null;for(let n=0;n<document.styleSheets.length;n++){t=document.styleSheets[n];break}return null!=t?t:function(){const t=document.createElement("style");return document.head.appendChild(t),t.sheet}()}();if(void 0===t)return;const n=window.document.body.offsetWidth,o=Math.max(0,n/2-i/2),a=".flatpickr-calendar.centerMost:before",r=".flatpickr-calendar.centerMost:after",s=t.cssRules.length,d=`{left:${c.left}px;right:auto;}`;u(e.calendarContainer,"rightMost",!1),u(e.calendarContainer,"centerMost",!0),t.insertRule(`${a},${r}${d}`,s),e.calendarContainer.style.left=`${o}px`,e.calendarContainer.style.right="auto"}else e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${w}px`;else e.calendarContainer.style.left=`${p}px`,e.calendarContainer.style.right="auto"}function rt(){e.config.noCalendar||e.isMobile||(_(),vt(),Y())}function st(){e._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(e.close,0):e.close()}function ct(t){t.preventDefault(),t.stopPropagation();const n=h(w(t),(t=>t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")));if(void 0===n)return;const o=n,i=e.latestSelectedDateObj=new Date(o.dateObj.getTime()),a=(i.getMonth()<e.currentMonth||i.getMonth()>e.currentMonth+e.config.showMonths-1)&&"range"!==e.config.mode;if(e.selectedDateElem=o,"single"===e.config.mode)e.selectedDates=[i];else if("multiple"===e.config.mode){const t=ht(i);t?e.selectedDates.splice(parseInt(t),1):e.selectedDates.push(i)}else"range"===e.config.mode&&(2===e.selectedDates.length&&e.clear(!1,!1),e.latestSelectedDateObj=i,e.selectedDates.push(i),0!==C(i,e.selectedDates[0],!0)&&e.selectedDates.sort(((t,n)=>t.getTime()-n.getTime())));if(k(),a){const t=e.currentYear!==i.getFullYear();e.currentYear=i.getFullYear(),e.currentMonth=i.getMonth(),t&&(ft("onYearChange"),_()),ft("onMonthChange")}if(vt(),Y(),mt(),a||"range"===e.config.mode||1!==e.config.showMonths?void 0!==e.selectedDateElem&&void 0===e.hourElement&&e.selectedDateElem&&e.selectedDateElem.focus():H(o),void 0!==e.hourElement&&void 0!==e.hourElement&&e.hourElement.focus(),e.config.closeOnSelect){const t="range"===e.config.mode&&2===e.selectedDates.length&&!e.config.enableTime;("single"===e.config.mode&&!e.config.enableTime||t)&&st()}I()}e.parseDate=D({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=A,e._setHoursFromDate=j,e._positionCalendar=at,e.changeMonth=Z,e.changeYear=z,e.clear=function(t=!0,n=!0){if(e.input.value="",void 0!==e.altInput&&(e.altInput.value=""),void 0!==e.mobileInput&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,!0===n&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),!0===e.config.enableTime){const{hours:t,minutes:n,seconds:o}=x(e.config);O(t,n,o)}e.redraw(),t&&ft("onChange")},e.close=function(){e.isOpen=!1,e.isMobile||(void 0!==e.calendarContainer&&e.calendarContainer.classList.remove("open"),void 0!==e._input&&e._input.classList.remove("active")),ft("onClose")},e._createElement=f,e.destroy=function(){void 0!==e.config&&ft("onDestroy");for(let t=e._handlers.length;t--;)e._handlers[t].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const t=e.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((t=>{try{delete e[t]}catch(t){}}))},e.isEnabled=Q,e.jumpToDate=T,e.open=function(t,n=e._positionElement){if(!0===e.isMobile){if(t){t.preventDefault();const n=w(t);n&&n.blur()}return void 0!==e.mobileInput&&(e.mobileInput.focus(),e.mobileInput.click()),void ft("onOpen")}if(e._input.disabled||e.config.inline)return;const o=e.isOpen;e.isOpen=!0,o||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),ft("onOpen"),at(n)),!0===e.config.enableTime&&!0===e.config.noCalendar&&(!1!==e.config.allowInput||void 0!==t&&e.timeContainer.contains(t.relatedTarget)||setTimeout((()=>e.hourElement.select()),50))},e.redraw=rt,e.set=function(t,n){if(null!==t&&"object"==typeof t){Object.assign(e.config,t);for(const n in t)void 0!==dt[n]&&dt[n].forEach((t=>t()))}else e.config[t]=n,void 0!==dt[t]?dt[t].forEach((t=>t())):i.indexOf(t)>-1&&(e.config[t]=l(n));e.redraw(),mt(!0)},e.setDate=function(t,n=!1,o=e.config.dateFormat){if(0!==t&&!t||t instanceof Array&&0===t.length)return e.clear(n);lt(t,o),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),T(void 0,n),j(),0===e.selectedDates.length&&e.clear(!1),mt(n),n&&ft("onChange")},e.toggle=function(t){if(!0===e.isOpen)return e.close();e.open(t)};const dt={locale:[it,K],showMonths:[W,m,U],minDate:[T],maxDate:[T],clickOpens:[()=>{!0===e.config.clickOpens?(A(e._input,"focus",e.open),A(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function lt(t,n){let o=[];if(t instanceof Array)o=t.map((t=>e.parseDate(t,n)));else if(t instanceof Date||"number"==typeof t)o=[e.parseDate(t,n)];else if("string"==typeof t)switch(e.config.mode){case"single":case"time":o=[e.parseDate(t,n)];break;case"multiple":o=t.split(e.config.conjunction).map((t=>e.parseDate(t,n)));break;case"range":o=t.split(e.l10n.rangeSeparator).map((t=>e.parseDate(t,n)))}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(t)}`));e.selectedDates=e.config.allowInvalidPreload?o:o.filter((t=>t instanceof Date&&Q(t,!1))),"range"===e.config.mode&&e.selectedDates.sort(((t,n)=>t.getTime()-n.getTime()))}function ut(t){return t.slice().map((t=>"string"==typeof t||"number"==typeof t||t instanceof Date?e.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:e.parseDate(t.from,void 0),to:e.parseDate(t.to,void 0)}:t)).filter((t=>t))}function ft(t,n){if(void 0===e.config)return;const o=e.config[t];if(void 0!==o&&o.length>0)for(let t=0;o[t]&&t<o.length;t++)o[t](e.selectedDates,e.input.value,e,n);"onChange"===t&&(e.input.dispatchEvent(pt("change")),e.input.dispatchEvent(pt("input")))}function pt(t){const n=document.createEvent("Event");return n.initEvent(t,!0,!0),n}function ht(t){for(let n=0;n<e.selectedDates.length;n++)if(0===C(e.selectedDates[n],t))return""+n;return!1}function vt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(((t,n)=>{const o=new Date(e.currentYear,e.currentMonth,1);o.setMonth(e.currentMonth+n),e.config.showMonths>1||"static"===e.config.monthSelectorType?e.monthElements[n].textContent=g(o.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=o.getMonth().toString(),t.value=o.getFullYear().toString()})),e._hidePrevMonthArrow=void 0!==e.config.minDate&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=void 0!==e.config.maxDate&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function wt(t){return e.selectedDates.map((n=>e.formatDate(n,t))).filter(((t,n,o)=>"range"!==e.config.mode||e.config.enableTime||o.indexOf(t)===n)).join("range"!==e.config.mode?e.config.conjunction:e.l10n.rangeSeparator)}function mt(t=!0){void 0!==e.mobileInput&&e.mobileFormatStr&&(e.mobileInput.value=void 0!==e.latestSelectedDateObj?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=wt(e.config.dateFormat),void 0!==e.altInput&&(e.altInput.value=wt(e.config.altFormat)),!1!==t&&ft("onValueUpdate")}function gt(t){const n=w(t),o=e.prevMonthNav.contains(n),i=e.nextMonthNav.contains(n);o||i?Z(o?-1:1):e.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):n.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}return function(){e.element=e.input=t,e.isOpen=!1,function(){const r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],s=Object.assign(Object.assign({},JSON.parse(JSON.stringify(t.dataset||{}))),n),c={};e.config.parseDate=s.parseDate,e.config.formatDate=s.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:t=>{e.config._enable=ut(t)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:t=>{e.config._disable=ut(t)}});const d="time"===s.mode;if(!s.dateFormat&&(s.enableTime||d)){const t=F.defaultConfig.dateFormat||a.dateFormat;c.dateFormat=s.noCalendar||d?"H:i"+(s.enableSeconds?":S":""):t+" H:i"+(s.enableSeconds?":S":"")}if(s.altInput&&(s.enableTime||d)&&!s.altFormat){const t=F.defaultConfig.altFormat||a.altFormat;c.altFormat=s.noCalendar||d?"h:i"+(s.enableSeconds?":S K":" K"):t+` h:i${s.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:et("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:et("max")});const u=t=>n=>{e.config["min"===t?"_minTime":"_maxTime"]=e.parseDate(n,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:u("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:u("max")}),"time"===s.mode&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,c,s);for(let t=0;t<r.length;t++)e.config[r[t]]=!0===e.config[r[t]]||"true"===e.config[r[t]];i.filter((t=>void 0!==e.config[t])).forEach((t=>{e.config[t]=l(e.config[t]||[]).map(o)})),e.isMobile=!e.config.disableMobile&&!e.config.inline&&"single"===e.config.mode&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let t=0;t<e.config.plugins.length;t++){const n=e.config.plugins[t](e)||{};for(const t in n)i.indexOf(t)>-1?e.config[t]=l(n[t]).map(o).concat(e.config[t]):void 0===s[t]&&(e.config[t]=n[t])}s.altInputClass||(e.config.altInputClass=ot().className+" "+e.config.altInputClass),ft("onParseConfig")}(),it(),e.input=ot(),e.input?(e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=f(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input):e.config.errorHandler(new Error("Invalid input element specified")),function(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const t=e.config.defaultDate||("INPUT"!==e.input.nodeName&&"TEXTAREA"!==e.input.nodeName||!e.input.placeholder||e.input.value!==e.input.placeholder?e.input.value:null);t&&lt(t,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),void 0!==e.config.minTime&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),void 0!==e.config.maxTime&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}(),e.utils={getDaysInMonth:(t=e.currentMonth,n=e.currentYear)=>1===t&&(n%4==0&&n%100!=0||n%400==0)?29:e.l10n.daysInMonth[t]},e.isMobile||function(){const t=window.document.createDocumentFragment();if(e.calendarContainer=f("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(t.appendChild((e.monthNav=f("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=f("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=f("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,W(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(t){e.__hidePrevMonthArrow!==t&&(u(e.prevMonthNav,"flatpickr-disabled",t),e.__hidePrevMonthArrow=t)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(t){e.__hideNextMonthArrow!==t&&(u(e.nextMonthNav,"flatpickr-disabled",t),e.__hideNextMonthArrow=t)}}),e.currentYearElement=e.yearElements[0],vt(),e.monthNav)),e.innerContainer=f("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:t,weekNumbers:n}=function(){e.calendarContainer.classList.add("hasWeeks");const t=f("div","flatpickr-weekwrapper");t.appendChild(f("span","flatpickr-weekday",e.l10n.weekAbbreviation));const n=f("div","flatpickr-weeks");return t.appendChild(n),{weekWrapper:t,weekNumbers:n}}();e.innerContainer.appendChild(t),e.weekNumbers=n,e.weekWrapper=t}e.rContainer=f("div","flatpickr-rContainer"),e.rContainer.appendChild(U()),e.daysContainer||(e.daysContainer=f("div","flatpickr-days"),e.daysContainer.tabIndex=-1),Y(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),t.appendChild(e.innerContainer)}e.config.enableTime&&t.appendChild(function(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const t=x(e.config);e.timeContainer=f("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const n=f("span","flatpickr-time-separator",":"),o=v("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=o.getElementsByTagName("input")[0];const i=v("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=i.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=s(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),e.minuteElement.value=s(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():t.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(o),e.timeContainer.appendChild(n),e.timeContainer.appendChild(i),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const n=v("flatpickr-second");e.secondElement=n.getElementsByTagName("input")[0],e.secondElement.value=s(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():t.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(f("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(n)}return e.config.time_24hr||(e.amPM=f("span","flatpickr-am-pm",e.l10n.amPM[c((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}()),u(e.calendarContainer,"rangeMode","range"===e.config.mode),u(e.calendarContainer,"animate",!0===e.config.animate),u(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(t);const n=void 0!==e.config.appendTo&&void 0!==e.config.appendTo.nodeType;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!n&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):void 0!==e.config.appendTo&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const t=f("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(t,e.element),t.appendChild(e.element),e.altInput&&t.appendChild(e.altInput),t.appendChild(e.calendarContainer)}e.config.static||e.config.inline||(void 0!==e.config.appendTo?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}(),function(){if(e.config.wrap&&["open","close","toggle","clear"].forEach((t=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${t}]`),(n=>A(n,"click",e[t])))})),e.isMobile)return void function(){const t=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=f("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=t,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",void 0!==e.altInput&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch(t){}A(e.mobileInput,"change",(t=>{e.setDate(w(t).value,!1,e.mobileFormatStr),ft("onChange"),ft("onClose")}))}();const t=d(nt,50);if(e._debouncedChange=d(I,300),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&A(e.daysContainer,"mouseover",(t=>{"range"===e.config.mode&&tt(w(t))})),A(window.document.body,"keydown",X),e.config.inline||e.config.static||A(window,"resize",t),void 0!==window.ontouchstart?A(window.document,"touchstart",G):A(window.document,"mousedown",G),A(window.document,"focus",G,{capture:!0}),!0===e.config.clickOpens&&(A(e._input,"focus",e.open),A(e._input,"click",e.open)),void 0!==e.daysContainer&&(A(e.monthNav,"click",gt),A(e.monthNav,["keyup","increment"],S),A(e.daysContainer,"click",ct)),void 0!==e.timeContainer&&void 0!==e.minuteElement&&void 0!==e.hourElement){const t=t=>w(t).select();A(e.timeContainer,["increment"],y),A(e.timeContainer,"blur",y,{capture:!0}),A(e.timeContainer,"click",E),A([e.hourElement,e.minuteElement],["focus","click"],t),void 0!==e.secondElement&&A(e.secondElement,"focus",(()=>e.secondElement&&e.secondElement.select())),void 0!==e.amPM&&A(e.amPM,"click",(t=>{y(t),I()}))}e.config.allowInput&&A(e._input,"blur",q)}(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&j(e.config.noCalendar?e.latestSelectedDateObj:void 0),mt(!1)),m();const r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&r&&at(),ft("onReady")}(),e}function O(t,n){const e=Array.prototype.slice.call(t).filter((t=>t instanceof HTMLElement)),o=[];for(let t=0;t<e.length;t++){const i=e[t];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=j(i,n||{}),o.push(i._flatpickr)}catch(t){console.error(t)}}return 1===o.length?o[0]:o}"function"!=typeof Object.assign&&(Object.assign=function(t,...n){if(!t)throw TypeError("Cannot convert undefined or null to object");for(const e of n)e&&Object.keys(e).forEach((n=>t[n]=e[n]));return t}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return O(this,t)},HTMLElement.prototype.flatpickr=function(t){return O([this],t)});var F=function(t,n){return"string"==typeof t?O(window.document.querySelectorAll(t),n):t instanceof Node?O([t],n):O(t,n)};F.defaultConfig={},F.l10ns={en:Object.assign({},r),default:Object.assign({},r)},F.localize=t=>{F.l10ns.default=Object.assign(Object.assign({},F.l10ns.default),t)},F.setDefaults=t=>{F.defaultConfig=Object.assign(Object.assign({},F.defaultConfig),t)},F.parseDate=D({}),F.formatDate=M({}),F.compareDates=C,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return O(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=F);const S=(t=!1)=>`<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="${t?"M0.557948 5.6813L6.06209 0.132167C6.23831 -0.0440556 6.52327 -0.0440556 6.69949 0.132167L7.44187 0.874551C7.61809 1.05077 7.61809 1.33573 7.44187 1.51195L2.99882 6L7.44187 10.488C7.61809 10.6643 7.61809 10.9492 7.44187 11.1254L6.69949 11.8678C6.52327 12.0441 6.23831 12.0441 6.06209 11.8678L0.557948 6.3187C0.381726 6.14248 0.381726 5.85752 0.557948 5.6813Z":"M7.44187 6.3187L1.93773 11.8678C1.76151 12.0441 1.47655 12.0441 1.30033 11.8678L0.557948 11.1254C0.381726 10.9492 0.381726 10.6643 0.557948 10.488L5.001 6L0.557948 1.51195C0.381726 1.33573 0.381726 1.05077 0.557948 0.874551L1.30033 0.132167C1.47655 -0.0440556 1.76151 -0.0440556 1.93773 0.132167L7.44187 5.6813C7.6181 5.85752 7.6181 6.14248 7.44187 6.3187Z"}" /></svg>`,A=class{constructor(n){t(this,n),this.dateFormat="Y-m-d",this.mode="single",this.multiline=!1,this.type="text",this.characterCount=0,this.passwordVisible=!1}updateCharacterCount(){this.characterCount=this.input.value.length}componentWillLoad(){null!=this._id&&""!==this._id||(this._id=o()),this.multiline&&void 0!==this.maxCharacterCount&&(this.characterCount=void 0!==this.value?this.value.length:0)}componentDidLoad(){"date"===this.type&&F(this.input,{allowInput:!0,dateFormat:this.dateFormat,defaultDate:this.value,maxDate:this.max,minDate:this.min,mode:this.mode,nextArrow:S(),prevArrow:S(!0)})}render(){let t="xpl-input";this.disabled&&(t+=" xpl-input--disabled");let o=!1;void 0!==this.error&&(o=!0),this.multiline&&void 0!==this.maxCharacterCount&&this.characterCount>this.maxCharacterCount&&(o=!0),o&&(t+=" xpl-input--error");let i=this.type;return"password"===i&&this.passwordVisible&&(i="text"),n(e,{class:t},n("label",{class:"xpl-input-label",htmlFor:this._id},this.label,this.description&&n("small",null,this.description)),n("div",{class:"xpl-input-wrapper"},this.pre&&!this.multiline&&n("label",{class:"xpl-input-pre",htmlFor:this._id},this.pre),this.multiline?n("textarea",{disabled:this.disabled,id:this._id,name:this.name,onInput:()=>this.updateCharacterCount(),placeholder:this.placeholder,readonly:this.readonly,ref:t=>{this.input=t},required:this.required},this.value):n("input",{autocomplete:"date"===this.type?"off":this.autocomplete,disabled:this.disabled,id:this._id,max:this.max,min:this.min,name:this.name,placeholder:this.placeholder,readonly:this.readonly,ref:t=>{this.input=t},required:this.required,step:this.step,type:i,value:this.value}),"date"===this.type&&n("span",{class:"xpl-input-calendar"},n("i",{class:"far fa-calendar-alt"})),"password"===this.type&&n("button",{class:"xpl-input-password",onClick:()=>{this.passwordVisible=!this.passwordVisible},role:"presentation"},n("span",{class:"sr-only"},"Toggle password visibility"),n("i",{class:"far fa-eye",style:{display:this.passwordVisible?"none":"block"}}),n("i",{class:"far fa-eye-slash",style:{display:this.passwordVisible?"block":"none"}})),this.post&&!this.multiline&&n("label",{class:"xpl-input-post",htmlFor:this._id},this.post),this.multiline&&void 0!==this.maxCharacterCount&&n("span",{class:"xpl-input-characters"},this.characterCount,"/",this.maxCharacterCount)),void 0!==this.error&&this.error.length>0&&n("label",{class:"xpl-input-error",htmlFor:this._id},n("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z"})),this.error))}};export{A as xpl_input}
@@ -1 +0,0 @@
1
- import{r as o,h as t,H as e,g as s}from"./p-d4aa2fa9.js";const n=class{constructor(t){o(this,t)}render(){const{groupName:o,options:s}=this,n=s&&s.length&&s.map((o=>{var{groupName:e}=o,s=function(o,t){var e={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&t.indexOf(s)<0&&(e[s]=o[s]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(o);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(o,s[n])&&(e[s[n]]=o[s[n]])}return e}(o,["groupName"]);return e?t("xpl-dropdown-group",Object.assign({label:e},s)):t("xpl-dropdown-option",Object.assign({},s))}));return t(e,{role:"group","aria-label":o},t("li",{class:"xpl-dropdown-list-item"},t("xpl-dropdown-heading",{label:o}),t("ul",{class:"xpl-dropdown-list"},n||t("slot",{name:"options"}))))}},i=class{constructor(t){o(this,t)}render(){return t(e,{class:{"xpl-dropdown-heading":!0},role:"presentation"},t("span",null,this.label||t("slot",{name:"heading"})))}},r=class{constructor(t){o(this,t)}componentWillLoad(){this.dropdown=this.hostElement.closest("xpl-dropdown")}handleClick(o){const{closeOnSelect:t,mode:e}=this.dropdown;Boolean(o.x&&o.y)&&(this.dropdown.handleSelect(o,{component:this}),"single"===e&&t&&(this.dropdown.isOpen=!1))}handleKeyup(o){const{dropdown:t}=this,{closeOnSelect:e,mode:s,selectOnFocus:n}=this.dropdown;if(n&&["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Tab"].includes(o.key)){const n=document.activeElement.closest("xpl-dropdown-option");return t.handleSelect(o,{component:{hostElement:n}}),void("single"===s&&e&&(this.dropdown.isOpen=!1))}["Escape","Enter"].includes(o.key)&&(t.handleSelect(o,{component:this}),this.dropdown.closeOnSelect&&(this.dropdown.isOpen=!1))}connectedCallback(){this.hostElement.addEventListener("click",this.handleClick.bind(this)),this.hostElement.addEventListener("keyup",this.handleKeyup.bind(this))}disconnectedCallback(){this.hostElement.removeEventListener("click",this.handleClick),this.hostElement.removeEventListener("keyup",this.handleKeyup)}render(){const{label:o,isSelected:s,isDisabled:n}=this;return t(e,{class:{"xpl-dropdown-option":!0,"xpl-dropdown-option--disabled":n,"xpl-dropdown-option--selected":s},role:"option","aria-checked":s,"aria-disabled":n,"aria-selected":s},t("li",{class:"xpl-dropdown-list-item"},o||t("slot",{name:"option"})))}get hostElement(){return s(this)}};export{n as xpl_dropdown_group,i as xpl_dropdown_heading,r as xpl_dropdown_option}
@@ -1 +0,0 @@
1
- import{r,h as a,H as s}from"./p-d4aa2fa9.js";const t=class{constructor(a){r(this,a),this.relative=!1}render(){return a(s,{class:{"xpl-backdrop":!0,"xpl-backdrop--fixed":!this.relative,"xpl-backdrop--relative":this.relative},"aria-hidden":"true"})}};export{t as xpl_backdrop}
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as l,F as s}from"./p-d4aa2fa9.js";import"./p-2f90296c.js";const i=({avatar:t,avatars:l,badges:i,href:r,title:e,subtext:p,metadata:n})=>{const c=l||i||p,x=a(s,null,t&&("/"===t.slice(0,1)||"http"===t.slice(0,4)?a("xpl-avatar",{src:t,name:e}):a("xpl-avatar",{name:e},t)),a("div",{class:"xpl-list-item-content"},a("div",{class:"xpl-list-left"},a("div",null,a("h4",null,e),n&&a("ul",{class:"xpl-list-item-metadata"},n.map((t=>"string"==typeof t?a("li",null,t):a("li",null,a("span",{class:`far fa-${t.icon}`})," ",t.text)))))),c&&a("div",{class:"xpl-list-right"},p&&a("div",{class:"xpl-list-item-subtext"},p),l&&a("div",{class:"xpl-avatar-group xpl-avatar-group--s"},l.map((t=>a("img",{src:t,alt:""})))),i&&i.map((t=>"string"==typeof t?a("xpl-badge",null,t):a("xpl-badge",{dot:t.dot,variant:t.variant},t.text))))));return r?a("a",{class:"xpl-list-item",href:r},x):a("div",{class:"xpl-list-item"},x)},r=class{constructor(a){t(this,a),this.items=[]}render(){return a(l,null,this.items.map((t=>a(i,Object.assign({},t)))))}};export{r as xpl_list}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s,H as a}from"./p-d4aa2fa9.js";const l=class{constructor(s){i(this,s),this.page=t(this,"page",7),this.current=1,this._goto=i=>{this.page.emit(i),this.waitForCallback||(this.current=i)},this.goPrev=()=>{this.current>1&&this._goto(this.current-1)},this.goNext=()=>{const i=Math.ceil(this.total/this.perPage);this.current<i&&this._goto(this.current+1)}}async goto(i){this.current=i}render(){const i=Math.ceil(this.total/this.perPage);let t=[1];i<7&&(t=[1,2,3,4,5,6]),t=this.current<=3||this.current>=i-2?[1,2,3,"...",i-2,i-1,i]:[1,"...",this.current-1,this.current,this.current+1,"...",i];const l=(this.current-1)*this.perPage+1,n=Math.min(l+this.perPage-1,this.total);return s(a,null,s("div",{class:"xpl-pagination"},s("div",null,s("p",null,"Showing ",s("span",null,l)," to"," ",s("span",null,n)," of"," ",s("span",null,this.total)," results")),s("div",null,s("nav",{"aria-label":"Pagination"},s("button",{onClick:this.goPrev,class:"xpl-pagination-prev"},s("span",null,"Previous"),s("svg",{viewBox:"0 0 20 20","aria-hidden":"true"},s("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"}))),t.map((i=>"..."===i?s("span",{class:"xpl-pagination-ellipsis"},"..."):s("button",i===this.current?{"aria-current":"page",class:"xpl-pagination-current"}:{onClick:()=>this._goto(i)},i))),s("button",{onClick:this.goNext,class:"xpl-pagination-next"},s("span",null,"Next"),s("svg",{viewBox:"0 0 20 20","aria-hidden":"true"},s("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})))))))}};export{l as xpl_pagination}
@@ -1 +0,0 @@
1
- import{r as a,c as n,h as t,H as e}from"./p-d4aa2fa9.js";const i=class{constructor(t){a(this,t),this.navWidth=n(this,"navWidth",7),this.width="default"}navWidthHandler(){this.navWidth.emit(this.width)}connectedCallback(){this.navWidthHandler()}componentDidUpdate(){this.navWidthHandler()}render(){return t(e,{class:`xpl-main-nav xpl-main-nav--${this.width}`,"aria-label":"Sidebar"},t("nav",null,t("header",{"aria-label":"Sidebar Header"},t("slot",{name:"logo"}),t("slot",{name:"brand-name"})),t("div",{class:"xpl-main-nav__main_section"},t("slot",{name:"navigation"})),t("footer",{class:"xpl-main-nav__footer","aria-label":"Sidebar Footer"},t("slot",{name:"footer"}))))}};export{i as xpl_main_nav}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as s,g as n,c as e}from"./p-d4aa2fa9.js";const i=class{constructor(o){t(this,o),this.isOpen=!1,this.closeOnSelect=!0,this.mode="single",this.selectOnFocus=!1,this.handleClickOutside=({target:t})=>{const{triggerId:o}=this,s=o&&t.id===o;this.hostElement.contains(t)||s||(this.isOpen=!1)}}async handleSelect(t,{component:o}){const{hostElement:s,mode:n,options:e,update:i}=this,l="single"===n,r="multi"===n;if(Boolean(e)){e.reduce(((t,o)=>[...t,...o.groupName?o.options:[o]]),[]).forEach((t=>{const s=t.label===o.hostElement.label;l?(t.isSelected=s,o.hostElement.isSelected=t.isSelected):r&&s&&(t.isSelected=!t.isSelected,o.hostElement.isSelected=t.isSelected)}));const t=o=>(o.options=o.groupName?o.options.map(t):void 0,o);this.options=e.map(t)}else l?Array.from(s.querySelectorAll("xpl-dropdown-option")).forEach((t=>t.isSelected=t===o.hostElement)):r&&(o.isSelected=!o.isSelected);Boolean(i)&&i(t,{component:this})}componentWillLoad(){this.handleSelect=this.handleSelect.bind(this)}connectedCallback(){document.addEventListener("mousedown",this.handleClickOutside.bind(this))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside)}render(){let{isOpen:t}=this;const{mode:n,options:e}=this,i=e&&e.length&&e.map((t=>{var{groupName:s,options:n}=t,e=function(t,o){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(s[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(n=Object.getOwnPropertySymbols(t);e<n.length;e++)o.indexOf(n[e])<0&&Object.prototype.propertyIsEnumerable.call(t,n[e])&&(s[n[e]]=t[n[e]])}return s}(t,["groupName","options"]);return s?o("xpl-dropdown-group",Object.assign({groupName:s,options:n},e)):o("xpl-dropdown-option",Object.assign({},e))}));return o(s,{"aria-expanded":t,class:{"xpl-dropdown":!0,"xpl-dropdown--multi":"multi"===n,"xpl-dropdown--open":t},role:"listbox"},o("ul",{class:"xpl-dropdown-list"},i||o("slot",{name:"options"})))}get hostElement(){return n(this)}},l=class{constructor(o){t(this,o),this.close=e(this,"close",7)}render(){return o(s,{class:"xpl-tag-container"},o("button",{class:"xpl-tag",onClick:()=>{this.close.emit()}},o("slot",null)),o("button",{class:"xpl-tag__close",onClick:()=>{this.close.emit()}},"×"))}};export{i as xpl_dropdown,l as xpl_tag}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s}from"./p-d4aa2fa9.js";import{v as e}from"./p-ad90fe4d.js";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,h=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof self&&self&&self.Object===Object&&self,c="object"==typeof n&&n&&n.Object===Object&&n||u||Function("return this")(),f=Object.prototype.toString,p=Math.max,d=Math.min,v=function(){return c.Date.now()};function b(t){var i=typeof t;return!!t&&("object"==i||"function"==i)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(b(t)){var i="function"==typeof t.valueOf?t.valueOf():t;t=b(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var s=l.test(t);return s||h.test(t)?a(t.slice(2),s?2:8):r.test(t)?NaN:+t}var x=function(t,i,s){var e=!0,n=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return b(s)&&(e="leading"in s?!!s.leading:e,n="trailing"in s?!!s.trailing:n),function(t,i,s){var e,n,o,r,l,h,a=0,u=!1,c=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(i){var s=e,o=n;return e=n=void 0,a=i,r=t.apply(o,s)}function g(t){return a=t,l=setTimeout(w,i),u?x(t):r}function y(t){var s=t-h;return void 0===h||s>=i||s<0||c&&t-a>=o}function w(){var t=v();if(y(t))return C(t);l=setTimeout(w,function(t){var s=i-(t-h);return c?d(s,o-(t-a)):s}(t))}function C(t){return l=void 0,f&&e?x(t):(e=n=void 0,r)}function T(){var t=v(),s=y(t);if(e=arguments,n=this,h=t,s){if(void 0===l)return g(h);if(c)return l=setTimeout(w,i),x(h)}return void 0===l&&(l=setTimeout(w,i)),r}return i=m(i)||0,b(s)&&(u=!!s.leading,o=(c="maxWait"in s)?p(m(s.maxWait)||0,i):o,f="trailing"in s?!!s.trailing:f),T.cancel=function(){void 0!==l&&clearTimeout(l),a=0,e=h=n=l=void 0},T.flush=function(){return void 0===l?r:C(v())},T}(t,i,{leading:e,maxWait:i,trailing:n})};function g(t){const i=document.createElement("canvas").getContext("2d");return i.font="14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif",i.measureText(t).width+44}const y=class{constructor(i){t(this,i),this.choices=[],this.mode="single",this.truncate=!0,this.active=!1,this.id=e(),this.keepFocus=!1,this.value="",this.displayValue="",this.visibleChoices=1/0}componentWillLoad(){this.selected=this.choices&&this.choices.length>0?this.choices.map((()=>!1)):[],window.addEventListener("click",(t=>{const i=t.target.closest(".xpl-select");null!==i&&i===this.container||(this.active=!1)})),window.addEventListener("resize",x((()=>{this.maybeTruncateChoices()}),250))}componentDidLoad(){this.dropdown=this.container.querySelector("xpl-dropdown")}maybeTruncateChoices(){if("single"===this.mode||!this.truncate)return;const t=this.container.getBoundingClientRect().width;let i=0,s=0;const e=this.selected.filter((t=>t)).length;for(let n=0;n<e&&(s+=g(this.getDisplayValue(n)),!(s>t-140));n++)i++;i>=e&&(i=1/0),i<1&&(i=1),this.visibleChoices=i}flattenChoices(){return this.choices.reduce(((t,i)=>[...t,...i.groupName?i.options:[i]]),[])}getDisplayValue(t){return this.flattenChoices()[t].label||this.flattenChoices()[t].value}getActualValue(t){return this.flattenChoices()[t].value||this.flattenChoices()[t].label}update(){if(this.selected=this.flattenChoices().map((({isSelected:t})=>t)),"single"===this.mode){const t=this.selected.findIndex((t=>t));this.value=t>=0?this.getActualValue(t):"",this.displayValue=t>=0?this.getDisplayValue(t):""}else"multi"===this.mode&&(this.value=this.selected.map(((t,i)=>t?this.getActualValue(i):"")).filter((t=>t.length>0)).join("|"))}render(){let t=0;return i(s,{class:{"xpl-select":!0,"xpl-select--disabled":this.disabled,"xpl-select--no-truncate":!this.truncate},onKeyDown:t=>{"Escape"===t.key&&(this.active=!1)},ref:t=>this.container=t},this.label||this.description?i("label",{class:{"xpl-label":!0,"xpl-label--disabled":this.disabled},htmlFor:this.id},this.label,this.description&&i("small",{class:{"xpl-description":!0,"xpl-description--disabled":this.disabled}},this.description)):null,i("div",{class:{"xpl-input":!0,"xpl-input--disabled":this.disabled,"xpl-input--error":void 0!==this.error}},i("div",{class:"xpl-input-wrapper"},i("div",{class:{"xpl-select-value":!0,"xpl-select-value--active":"multi"===this.mode&&this.value.length>0,"has-value":this.value.length>0}},"single"===this.mode?this.displayValue||this.placeholder:this.value.length>0?this.selected.map(((s,e)=>s?t>=this.visibleChoices?null:(t++,i("xpl-tag",{onClose:()=>{this.flattenChoices().forEach(((t,i)=>{e===i&&(t.isSelected=!1)}));const t=i=>(i.options=i.groupName?i.options.map(t):void 0,i);this.choices=this.choices.map(t),this.update(),this.maybeTruncateChoices()}},this.getDisplayValue(e))):null)):this.placeholder,this.visibleChoices<1/0&&`+ ${this.selected.filter((t=>t)).length-this.visibleChoices} more`),i("button",{disabled:this.disabled,id:this.id,onKeyDown:t=>{"Tab"===t.key&&(this.keepFocus=!0)},onClick:()=>{const{dropdown:t}=this;this.disabled||(t.isOpen=!t.isOpen)}})),!this.disabled&&i("xpl-dropdown",{options:this.choices,mode:this.mode,triggerId:this.id,update:()=>{this.update(),this.maybeTruncateChoices()}}),void 0!==this.error&&this.error.length>0&&i("label",{class:"xpl-input-error",htmlFor:this.id},i("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z"})),this.error)),i("input",{type:"hidden",value:this.value}))}};export{y as xpl_select}