bromcom-ui 2.11.1-rc.7 → 2.11.1-rc.9-0

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 (411) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/p-022a9123.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-c33b5077.entry.js → p-0a5d0dad.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-f3b2149d.entry.js → p-0e530449.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-fb529ec0.entry.js → p-1345d51b.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-52a452ed.entry.js → p-144bd7f3.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
  9. package/dist/bromcom-ui/{p-dc861002.entry.js → p-1a6a917c.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-1b558b0f.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-aa41988b.entry.js → p-1f123f35.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-1f4f8e4f.entry.js +5 -0
  13. package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-270e1b24.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-1cac8ccc.js → p-2cd6cdee.js} +1 -1
  16. package/dist/bromcom-ui/{p-63138ee5.entry.js → p-32c55505.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-9551e2a4.js → p-3616f96d.js} +1 -1
  18. package/dist/bromcom-ui/p-376a20ed.js +5 -0
  19. package/dist/bromcom-ui/{p-323814c5.entry.js → p-38686733.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-034bbcdd.js → p-3a43bf45.js} +1 -1
  21. package/dist/bromcom-ui/{p-4438d629.entry.js → p-4393b33e.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-4a1c1566.entry.js +5 -0
  23. package/dist/bromcom-ui/p-52145717.js +5 -0
  24. package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-59f7fa84.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-4798d827.js → p-61753299.js} +1 -1
  26. package/dist/bromcom-ui/{p-6463a5c6.entry.js → p-641d81c9.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-e45c1546.js → p-6657830f.js} +1 -1
  28. package/dist/bromcom-ui/{p-3b079331.entry.js → p-67343ad8.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  30. package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
  31. package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-77b1dbdd.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-95a2c489.entry.js → p-77ef609e.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-09a93e61.entry.js → p-79596f30.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  36. package/dist/bromcom-ui/p-82fb073c.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-476c4395.entry.js → p-847e7a75.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-d2f863d9.js → p-8b6d3a37.js} +1 -1
  39. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  40. package/dist/bromcom-ui/p-8da487f0.entry.js +5 -0
  41. package/dist/bromcom-ui/p-8e11a26b.entry.js +20 -0
  42. package/dist/bromcom-ui/{p-86bbaeb1.entry.js → p-8eb45b0e.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-c573de57.entry.js → p-95104e4f.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-468157a0.entry.js → p-9589f69c.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-866d1d29.js → p-9610bd2d.js} +1 -1
  46. package/dist/bromcom-ui/p-974c5210.entry.js +5 -0
  47. package/dist/bromcom-ui/{p-5da5c711.entry.js → p-9797db90.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
  49. package/dist/bromcom-ui/{p-85f028bf.js → p-98cf4aa5.js} +1 -1
  50. package/dist/bromcom-ui/{p-0efc9196.entry.js → p-9b59c689.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-51f2ada5.entry.js → p-9b8b692a.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-a0d6d680.js} +1 -1
  53. package/dist/bromcom-ui/p-a0f44b56.entry.js +5 -0
  54. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  55. package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-a486613b.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-7a89243a.entry.js → p-a6aa173f.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-9107380e.js → p-aed4d33b.js} +1 -1
  59. package/dist/bromcom-ui/{p-86f1302f.entry.js → p-b8e7d8ea.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-72da77b1.entry.js → p-bafe6f14.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-bb47062a.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-fcc6f71e.js → p-beaec5b8.js} +1 -1
  63. package/dist/bromcom-ui/{p-6ba235c9.entry.js → p-c00d26c1.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-c49b6287.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-540b3968.entry.js → p-cb4c07af.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-697a733d.entry.js → p-d25d4c40.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-188b9079.entry.js → p-d59d9687.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-dcb48e92.entry.js +5 -0
  70. package/dist/bromcom-ui/p-de0b0192.entry.js +5 -0
  71. package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
  72. package/dist/bromcom-ui/{p-360a2521.entry.js → p-e5212c52.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-e8eaa3bb.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-7d397485.entry.js → p-ec5fe536.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-eca0acda.js +5 -0
  76. package/dist/bromcom-ui/{p-d1b3d238.entry.js → p-f2bc61dd.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-08159d00.entry.js → p-f9b59bcc.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-f9119bec.entry.js → p-fc787048.entry.js} +1 -1
  79. package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
  80. package/dist/cjs/bcm-accordion_45.cjs.entry.js +23947 -0
  81. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  82. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  83. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  84. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
  86. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  87. package/dist/cjs/{bcm-checkbox-lite_9.cjs.entry.js → bcm-checkbox-lite_8.cjs.entry.js} +6 -26
  88. package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
  89. package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
  90. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  91. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  92. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  95. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
  97. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  98. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  99. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  100. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  101. package/dist/cjs/bcm-modal.cjs.entry.js +7 -7
  102. package/dist/cjs/bcm-number-input.cjs.entry.js +9 -9
  103. package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
  104. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  105. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  106. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  108. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  109. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  110. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  111. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  112. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  113. package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
  114. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
  115. package/dist/cjs/{generate-c2e5f662.js → generate-cb6d728f.js} +1 -1
  116. package/dist/cjs/{global-6ed75a57.js → global-9a7fa11d.js} +1 -1
  117. package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
  118. package/dist/cjs/loader.cjs.js +3 -3
  119. package/dist/cjs/{number-helper-28a25c38.js → number-helper-7cda3b8d.js} +1 -1
  120. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  121. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  122. package/dist/cjs/{package-c3fb44cd.js → package-417ad2df.js} +1 -1
  123. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
  124. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
  125. package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
  126. package/dist/cjs/{validators-d71e2d41.js → validators-5201d427.js} +1 -1
  127. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  128. package/dist/collection/components/atoms/badge/badge.js +1 -1
  129. package/dist/collection/components/atoms/badge/badge.style.js +1 -1
  130. package/dist/collection/components/atoms/button/button.css +13 -13
  131. package/dist/collection/components/atoms/button/button.js +14 -14
  132. package/dist/collection/components/atoms/chip/chip.css +4 -4
  133. package/dist/collection/components/atoms/chip/chip.js +3 -3
  134. package/dist/collection/components/molecules/checkbox/group.css +2 -2
  135. package/dist/collection/components/molecules/checkbox/group.js +1 -1
  136. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  137. package/dist/collection/components/molecules/empty/empty.js +1 -1
  138. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  139. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  140. package/dist/collection/components/molecules/input/input.js +1 -1
  141. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  142. package/dist/collection/components/molecules/menu/menu.css +4 -4
  143. package/dist/collection/components/molecules/radio/radio-group.js +1 -1
  144. package/dist/collection/components/molecules/radio/radio.js +1 -1
  145. package/dist/collection/components/molecules/range/range.js +1 -1
  146. package/dist/collection/components/molecules/switch/switch.css +2 -2
  147. package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
  148. package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
  149. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  150. package/dist/collection/components/organism/list/list.css +15 -20
  151. package/dist/collection/components/organism/list/list.js +2 -2
  152. package/dist/collection/components/other/attendance/attendance.js +1 -1
  153. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
  154. package/dist/collection/templates/button-template.js +1 -1
  155. package/dist/collection/templates/caption-template.js +2 -2
  156. package/dist/collection/templates/input-template.js +1 -1
  157. package/dist/collection/templates/label-template.js +1 -1
  158. package/dist/collection/templates/list-item-template.js +8 -8
  159. package/dist/collection/templates/list-template.js +3 -9
  160. package/dist/components/avatar.js +1 -1
  161. package/dist/components/badge.js +2 -2
  162. package/dist/components/bcm-attendance.js +1 -1
  163. package/dist/components/bcm-checkbox-group.js +2 -2
  164. package/dist/components/bcm-color-input.js +1 -1
  165. package/dist/components/bcm-error-layout.js +1 -1
  166. package/dist/components/bcm-expansion-panel.js +1 -1
  167. package/dist/components/bcm-input-dropdown.js +1 -1
  168. package/dist/components/bcm-radio-group.js +1 -1
  169. package/dist/components/bcm-range.js +1 -1
  170. package/dist/components/bcm-switch.js +1 -1
  171. package/dist/components/bcm-tab-group.js +2 -2
  172. package/dist/components/bcm-tab-item-header.js +5 -5
  173. package/dist/components/button.js +16 -16
  174. package/dist/components/caption-template.js +2 -2
  175. package/dist/components/chip.js +4 -4
  176. package/dist/components/empty.js +1 -1
  177. package/dist/components/generate.js +1 -1
  178. package/dist/components/input-template.js +1 -1
  179. package/dist/components/input.js +1 -1
  180. package/dist/components/label.js +1 -1
  181. package/dist/components/list.js +14 -20
  182. package/dist/components/menu.js +1 -1
  183. package/dist/components/radio.js +1 -1
  184. package/dist/components/tooltip.js +1 -1
  185. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-82aa9212.js} +1 -1
  186. package/dist/esm/bcm-a50d55ba.js +1 -1
  187. package/dist/esm/bcm-accordion_45.entry.js +23899 -0
  188. package/dist/esm/bcm-alert.entry.js +8 -8
  189. package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
  190. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
  191. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  192. package/dist/esm/bcm-box.entry.js +1 -1
  193. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  194. package/dist/esm/bcm-caption.entry.js +14 -14
  195. package/dist/esm/bcm-card.entry.js +10 -10
  196. package/dist/esm/{bcm-checkbox-lite_9.entry.js → bcm-checkbox-lite_8.entry.js} +10 -29
  197. package/dist/esm/bcm-chip-group.entry.js +15 -15
  198. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  199. package/dist/esm/bcm-collapse.entry.js +58 -0
  200. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  201. package/dist/esm/bcm-content.entry.js +1 -1
  202. package/dist/esm/bcm-date-picker.entry.js +9 -9
  203. package/dist/esm/bcm-datetime-picker.entry.js +13 -13
  204. package/dist/esm/bcm-default.entry.js +5 -5
  205. package/dist/esm/bcm-error-layout.entry.js +4 -4
  206. package/dist/esm/bcm-form-2.entry.js +8 -8
  207. package/dist/esm/bcm-form-group.entry.js +1 -1
  208. package/dist/esm/bcm-input-custom.entry.js +6 -6
  209. package/dist/esm/bcm-input-dropdown.entry.js +15 -15
  210. package/dist/esm/bcm-link.entry.js +4 -4
  211. package/dist/esm/bcm-message.entry.js +3 -3
  212. package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
  213. package/dist/esm/bcm-modal-2-header.entry.js +11 -11
  214. package/dist/esm/bcm-modal-2.entry.js +13 -13
  215. package/dist/esm/bcm-modal.entry.js +9 -9
  216. package/dist/esm/bcm-notification.entry.js +3 -3
  217. package/dist/esm/bcm-number-input.entry.js +14 -14
  218. package/dist/esm/bcm-old-input.entry.js +5 -5
  219. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  220. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  221. package/dist/esm/bcm-popover.entry.js +12 -12
  222. package/dist/esm/bcm-range.entry.js +9 -9
  223. package/dist/esm/bcm-result.entry.js +3 -3
  224. package/dist/esm/bcm-select-group.entry.js +3 -3
  225. package/dist/esm/bcm-select-option.entry.js +3 -3
  226. package/dist/esm/bcm-select.entry.js +5 -5
  227. package/dist/esm/bcm-skeleton.entry.js +11 -11
  228. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  229. package/dist/esm/bcm-tab.entry.js +3 -3
  230. package/dist/esm/bcm-table.entry.js +12 -12
  231. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  232. package/dist/esm/bcm-tabs.entry.js +4 -4
  233. package/dist/esm/bcm-tag.entry.js +9 -9
  234. package/dist/esm/bcm-time-picker.entry.js +9 -9
  235. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  236. package/dist/esm/bcm-timeline.entry.js +3 -3
  237. package/dist/esm/bcm-toast.entry.js +9 -9
  238. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  239. package/dist/esm/bromcom-ui.js +5 -5
  240. package/dist/esm/{caption-template-caa3bc94.js → caption-template-d7953d13.js} +4 -4
  241. package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-3b528349.js} +2 -2
  242. package/dist/esm/{colors-e1c31f79.js → colors-c530a5b8.js} +1 -1
  243. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  244. package/dist/esm/floating-ui-3f4394da.js +1 -1
  245. package/dist/esm/{generate-aa296c81.js → generate-6502409d.js} +2 -2
  246. package/dist/esm/{global-563ca119.js → global-030f848d.js} +2 -2
  247. package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
  248. package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
  249. package/dist/esm/{index-b84bc8c9.js → index-f549811f.js} +1 -1
  250. package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
  251. package/dist/esm/{label-template-737576c4.js → label-template-a26f76c0.js} +4 -4
  252. package/dist/esm/loader.js +5 -5
  253. package/dist/esm/{lodash-0a4396a7.js → lodash-4197be99.js} +1 -1
  254. package/dist/esm/{number-helper-e8247918.js → number-helper-f5777f14.js} +1 -1
  255. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  256. package/dist/esm/old-bcm-popover.entry.js +7 -7
  257. package/dist/esm/{package-c562e2bc.js → package-e3b09e0c.js} +1 -1
  258. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-d12fec40.js} +1 -1
  259. package/dist/esm/{slot-template-08ed1fe4.js → slot-template-2a19b2db.js} +2 -2
  260. package/dist/esm/{string-helper-85990695.js → string-helper-3592bdc2.js} +2 -2
  261. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  262. package/dist/esm/{validators-e59b7cea.js → validators-f574d105.js} +1 -1
  263. package/dist/types/templates/list-template.d.ts +1 -0
  264. package/package.json +1 -1
  265. package/dist/bromcom-ui/p-141262d7.entry.js +0 -5
  266. package/dist/bromcom-ui/p-176fa507.entry.js +0 -5
  267. package/dist/bromcom-ui/p-1a33d7a3.entry.js +0 -5
  268. package/dist/bromcom-ui/p-1efcd950.entry.js +0 -5
  269. package/dist/bromcom-ui/p-2611874e.entry.js +0 -5
  270. package/dist/bromcom-ui/p-2dd1f11a.entry.js +0 -5
  271. package/dist/bromcom-ui/p-3089e9c7.js +0 -5
  272. package/dist/bromcom-ui/p-3182df7e.js +0 -10
  273. package/dist/bromcom-ui/p-3637c5db.entry.js +0 -5
  274. package/dist/bromcom-ui/p-37ab344d.entry.js +0 -5
  275. package/dist/bromcom-ui/p-3945c3e7.entry.js +0 -5
  276. package/dist/bromcom-ui/p-3ec0b26c.entry.js +0 -5
  277. package/dist/bromcom-ui/p-4213ba24.js +0 -5
  278. package/dist/bromcom-ui/p-4691bf0f.entry.js +0 -5
  279. package/dist/bromcom-ui/p-4d8067b9.entry.js +0 -5
  280. package/dist/bromcom-ui/p-51383c50.js +0 -5
  281. package/dist/bromcom-ui/p-5199f537.entry.js +0 -5
  282. package/dist/bromcom-ui/p-585d341b.entry.js +0 -5
  283. package/dist/bromcom-ui/p-5cea31a3.entry.js +0 -5
  284. package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
  285. package/dist/bromcom-ui/p-67ed466a.entry.js +0 -5
  286. package/dist/bromcom-ui/p-695e5871.entry.js +0 -5
  287. package/dist/bromcom-ui/p-69e3c566.entry.js +0 -5
  288. package/dist/bromcom-ui/p-6a4a490b.entry.js +0 -5
  289. package/dist/bromcom-ui/p-6cfffdc8.entry.js +0 -5
  290. package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
  291. package/dist/bromcom-ui/p-726b628d.entry.js +0 -5
  292. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  293. package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
  294. package/dist/bromcom-ui/p-7e3209a0.js +0 -14
  295. package/dist/bromcom-ui/p-8a645ca2.entry.js +0 -5
  296. package/dist/bromcom-ui/p-8ba86cba.js +0 -5
  297. package/dist/bromcom-ui/p-8c0b82e1.entry.js +0 -5
  298. package/dist/bromcom-ui/p-93063026.js +0 -5
  299. package/dist/bromcom-ui/p-9bbafbfe.js +0 -5
  300. package/dist/bromcom-ui/p-9c274c1f.entry.js +0 -5
  301. package/dist/bromcom-ui/p-9f03e075.entry.js +0 -5
  302. package/dist/bromcom-ui/p-a20f2ff9.entry.js +0 -5
  303. package/dist/bromcom-ui/p-a22836ef.entry.js +0 -5
  304. package/dist/bromcom-ui/p-aeba90b4.entry.js +0 -5
  305. package/dist/bromcom-ui/p-b5986380.entry.js +0 -5
  306. package/dist/bromcom-ui/p-be6595a2.entry.js +0 -5
  307. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  308. package/dist/bromcom-ui/p-c4df05e3.entry.js +0 -5
  309. package/dist/bromcom-ui/p-c92ac41f.entry.js +0 -5
  310. package/dist/bromcom-ui/p-c9efd0e2.entry.js +0 -5
  311. package/dist/bromcom-ui/p-dd839e25.entry.js +0 -5
  312. package/dist/bromcom-ui/p-ddd60d87.entry.js +0 -5
  313. package/dist/bromcom-ui/p-e3acd567.entry.js +0 -5
  314. package/dist/bromcom-ui/p-e8c633dd.js +0 -5
  315. package/dist/bromcom-ui/p-eb1e9f42.entry.js +0 -5
  316. package/dist/bromcom-ui/p-ed8396f0.entry.js +0 -5
  317. package/dist/bromcom-ui/p-f04265d7.entry.js +0 -5
  318. package/dist/bromcom-ui/p-f2ea82b7.entry.js +0 -5
  319. package/dist/bromcom-ui/p-f81d9313.entry.js +0 -5
  320. package/dist/bromcom-ui/p-f9445308.entry.js +0 -5
  321. package/dist/bromcom-ui/p-f9688a5c.entry.js +0 -5
  322. package/dist/bromcom-ui/p-fc9f35cb.entry.js +0 -5
  323. package/dist/bromcom-ui/p-fff23008.entry.js +0 -5
  324. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  325. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  326. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  327. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  328. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  329. package/dist/cjs/bcm-button_2.cjs.entry.js +0 -419
  330. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  331. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  332. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  333. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  334. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
  335. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  336. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  337. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  338. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  339. package/dist/cjs/bcm-form.cjs.entry.js +0 -492
  340. package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
  341. package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
  342. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  343. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  344. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -135
  345. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2563
  346. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  347. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  348. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  349. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  350. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  351. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  352. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9391
  353. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  354. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  355. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  356. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  357. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  358. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
  359. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  360. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  361. package/dist/cjs/index-3d67f613.js +0 -1610
  362. package/dist/cjs/index-e05a7c6f.js +0 -545
  363. package/dist/cjs/input-template-00dccb71.js +0 -92
  364. package/dist/cjs/json-parse-decarator-125db4bc.js +0 -40
  365. package/dist/cjs/moment-d06b012f.js +0 -4601
  366. package/dist/cjs/stepper-states-e9ac0c74.js +0 -85
  367. package/dist/cjs/tooltip-helper-3b1aafc6.js +0 -158
  368. package/dist/esm/bcm-accordion.entry.js +0 -70
  369. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  370. package/dist/esm/bcm-attendance.entry.js +0 -31
  371. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  372. package/dist/esm/bcm-button-group.entry.js +0 -88
  373. package/dist/esm/bcm-button_2.entry.js +0 -414
  374. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  375. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  376. package/dist/esm/bcm-chip.entry.js +0 -87
  377. package/dist/esm/bcm-color-input.entry.js +0 -73
  378. package/dist/esm/bcm-colorful_2.entry.js +0 -246
  379. package/dist/esm/bcm-date.entry.js +0 -178
  380. package/dist/esm/bcm-drawer.entry.js +0 -92
  381. package/dist/esm/bcm-dropdown.entry.js +0 -115
  382. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  383. package/dist/esm/bcm-form.entry.js +0 -488
  384. package/dist/esm/bcm-icon.entry.js +0 -35
  385. package/dist/esm/bcm-input_2.entry.js +0 -545
  386. package/dist/esm/bcm-item.entry.js +0 -68
  387. package/dist/esm/bcm-items.entry.js +0 -45
  388. package/dist/esm/bcm-label_2.entry.js +0 -130
  389. package/dist/esm/bcm-list_3.entry.js +0 -2557
  390. package/dist/esm/bcm-menu.entry.js +0 -147
  391. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  392. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  393. package/dist/esm/bcm-progress.entry.js +0 -158
  394. package/dist/esm/bcm-radio-group.entry.js +0 -157
  395. package/dist/esm/bcm-radio.entry.js +0 -61
  396. package/dist/esm/bcm-rc-picker.entry.js +0 -9387
  397. package/dist/esm/bcm-shortcut.entry.js +0 -61
  398. package/dist/esm/bcm-step.entry.js +0 -85
  399. package/dist/esm/bcm-stepper.entry.js +0 -236
  400. package/dist/esm/bcm-switch.entry.js +0 -147
  401. package/dist/esm/bcm-tab-group.entry.js +0 -206
  402. package/dist/esm/bcm-tab-item-header.entry.js +0 -55
  403. package/dist/esm/bcm-tab-item.entry.js +0 -87
  404. package/dist/esm/bcm-text.entry.js +0 -45
  405. package/dist/esm/index-a6d9d0af.js +0 -541
  406. package/dist/esm/index-c4568336.js +0 -1594
  407. package/dist/esm/input-template-bb622a20.js +0 -90
  408. package/dist/esm/json-parse-decarator-42f19daf.js +0 -38
  409. package/dist/esm/moment-15cd9198.js +0 -4598
  410. package/dist/esm/stepper-states-97d80ddf.js +0 -83
  411. package/dist/esm/tooltip-helper-202b042a.js +0 -156
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{h as e,r as t,c as i,H as c,g as o}from"./p-e037ee2b.js";import{I as n}from"./p-8e5e362a.js";import{J as s}from"./p-9bbafbfe.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as l,s as r}from"./p-866d1d29.js";import{N as a}from"./p-9551e2a4.js";import{S as h}from"./p-6b5ed4d8.js";import{V as m}from"./p-85f028bf.js";import"./p-5ae0a59b.js";import{g as b,s as d}from"./p-fcc6f71e.js";import{p,d as u}from"./p-3c7a0345.js";import{B as _,a as x}from"./p-a313fba6.js";import{C as g}from"./p-1cac8ccc.js";import{c as v}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as f}from"./p-197aba37.js";import{r as k,a as w}from"./p-3182df7e.js";import{R as y,c as z,u as j,d as I}from"./p-7e3209a0.js";import{I as C}from"./p-8ba86cba.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9107380e.js";const O=({disabled:t,checked:i,readonly:c,required:o,indeterminate:n,hidden:s,captionType:l,_id:r})=>{const a=v("bcm-checkbox","bcm-checkbox__type-default","bcm-checkbox-size-medium",{error:l==_.Status.error,hidden:s,checked:i,disabled:t,required:o,readonly:c}),h=v("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+n,{"bcm-checkbox__label-icon-checked":i}),m=v("bcm-checkbox__label");return e("div",{class:a},e("input",{tabindex:"-1",id:r,type:"checkbox",checked:i,disabled:t,required:o,readonly:c}),e("label",{class:m,htmlFor:r},e("span",{class:h},e("bcm-icon",{icon:"far fa-check"}))))},S=({selected:t,total:i,found:c,multiple:o,variableText:n})=>(i=i||0,n=n?p(n,i):"items",e("footer",{class:"bcm-info-footer"},e("bcm-text",{scale:"size-1",color:"grey-8"},o&&t>0&&` ( ${t} selected ) `,` Total ${i} `,null!=c&&` / ${c} `,` ${n} found. `))),$=({item:t,treeview:i,highlight:c,checkboxes:o,size:n,selectedItem:s,openGroup:r,checkedItem:a,focusItem:m,searchIsOnlyChilds:b})=>{const d=t.items&&t.items.length>0;var p=h.htmlEntities(t.text);let u=[];if(c&&h.slugify(p).includes(h.slugify(c))&&(b&&(!b||d&&(i||"group"==t.type))||(p=h.highlight(p,c))),"group"!=t.type&&t.template){const e=t.template.replace(/\s/g,"").match(/\{{[^}}]+\}/g).map((e=>e.replace(/[{}]/g,""))),i=Object.keys(t.itemObject);u=e.filter((e=>i.includes(e)))}p=t.isHtmlContent?t.isHtmlContent:t.template&&u.length>0?h.templateParser(t.template,Object.assign(Object.assign({},t.itemObject),{text:p})):p;const _=t.template?p:l.domParser(p),x=!i&&"group"==t.type&&!t.clickable,g=t.disabled,f=t.readonly,k=()=>{g||(t.open=t.isSearching,r(t.id))};return e("div",{id:t.id,hidden:t.hidden,"on-focus":e=>!x&&!g&&m(e),class:v("bcm-list__item","bcm-list__item-"+n,{"bcm-list__item--group":!i&&"group"==t.type,"bcm-list__item--readonly":f})},e("div",{class:v("bcm-list__item-content",!o&&t.selected&&"selected",{disabled:g})},i&&e("div",{class:"bcm-list__item-content-collapse-icon",onClick:()=>k()},d&&e("bcm-icon",{icon:v("fas fa-caret-"+(t.isSearching||t.open?"down":"right"))})),e("div",{class:v("bcm-list__item-content-text",{treeview:i}),onClick:e=>{var i;((i=e).path||i.composedPath()).filter((e=>e.attributes&&e.attributes.getNamedItem("unlinked")))[0]||(f&&k(),!x&&!g&&!f&&(o?a(t.id):s(t.id)))}},o&&(i||!i&&"group"!=t.type)&&e("div",{class:"bcm-list__item-content-text-checkbox"},e(O,{indeterminate:t.indeterminate,checked:t.checked,disabled:t.disabled})),e("span",Object.assign({class:"bcm-list__item-content-text-inner"},t.title&&{title:t.title},{innerHTML:_})))),(i||!i&&"group"==t.type)&&d&&e("div",{class:"bcm-list__item-childs"},(t.isSearching||t.open||!i&&"group"==t.type)&&t.items.map((t=>e($,{highlight:c,item:t,searchIsOnlyChilds:b,treeview:i,checkboxes:o,size:n,selectedItem:s,checkedItem:a,openGroup:e=>r(e),focusItem:e=>m(e)})))))},E=({highlight:t,selectAllItem:i,bcmListContainer:c,treeview:o,checkboxes:n,checkAll:s,infoFooter:l,value:r,totalData:a,searchFound:h,variableText:m,_id:b,tempId:d,data:p,width:u,height:_,size:x,searchPlaceholder:g,minSearchLength:v,selectedItem:f,openGroup:k,checkedItem:w,onScrollEvent:y,focusItem:z,items:j,searchable:I,searchIsOnlyChilds:C,emptyText:O,emptyIcon:E,handleTransitionEnd:T})=>{const R=!(o&&h>0||h>0);return e("div",{id:`bcm-list-${b}`,class:c,"temp-id":`bcm-list-${d}`,style:{"--height":_,"--width":u},onTransitionEnd:e=>T(e)},p&&I&&e("section",{class:"bcm-list__container-search"},e("bcm-search",{size:x,id:`bcm-list-${b}-search`,data:p,clearable:!0,placeholder:g,"min-search-length":v,searchIsOnlyChilds:C})),e("main",{onScroll:e=>y(e),class:"scrolling",style:{"overscroll-behavior":"none"}},e("div",{style:{"min-height":`${(null==h?o?j.length:a:h)*("small"===x?28:"medium"===x?36:48)||0}px`,"overscroll-behavior":"none",height:"100%",display:"flex","flex-direction":"column"}},s&&0!=h&&j&&j.length>0&&n&&R&&e("section",{class:"bcm-list__container-select-all"},e($,{size:x,item:i,treeview:!1,checkboxes:!0,selectedItem:e=>f(e),checkedItem:e=>w(e),openGroup:e=>k(e),focusItem:e=>z(e)})),j.map((i=>e($,{highlight:t,size:x,item:i,searchIsOnlyChilds:C,treeview:o,checkboxes:n,selectedItem:e=>f(e),checkedItem:e=>w(e),openGroup:e=>k(e),focusItem:e=>z(e)}))),(!j||0===j.length)&&0!=h&&e("section",{class:"bcm-list__container-no-data"},e("bcm-empty",{style:{height:"auto"},icon:E},e("span",{innerHTML:O||"No data"}))),0==h&&e("section",{class:"bcm-list__container-no-data"},e("bcm-empty",{style:{height:"auto"},icon:E},e("span",{innerHTML:O||"No Data Found"}))))),l&&p&&p.length>0&&e(S,{selected:null==r?void 0:r.length,total:a,found:h,multiple:n,variableText:m}))},{state:T}=f({value:new Map}),R=(e,t,i,c="0.")=>{let o=[];return e&&e.length>0&&(o=e.map(((e,o)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({itemObject:e},e),t),{parentId:r((()=>i),null),open:t.allOpen||e.open||!1}),(t.treeview||!t.treeview&&"group"==e.type)&&e.items&&e.items.length>0?{items:r((()=>R(e.items,t,e.id,`${c}${o}`)),[])}:{items:[]}),{ct:`${c}${o}`})))),o},N=e=>r((()=>T.value.get(e)),{}),D=(e,t)=>{let i=0;return e.forEach((e=>{(t||!t&&"group"!=e.type)&&(i+=1),(t||!t&&"group"==e.type)&&e.items&&(i+=D(e.items,t))})),i},F=(e,t,i,c)=>{let o;o=i||N(e).dataSource,o&&o.forEach((i=>{null!=c?i.open=c:i.id==t?(i.open=!i.open,i.isSearching=i.open,!i.open&&i.items&&F(e,t,i.items,!1)):i.items&&F(e,t,i.items)}))},P=(e,t,i)=>{i&&i.forEach((i=>{i.id==t?(i.checked=!1,i.itemObject.checked=!1,V(e,i.parentId)):i.items&&P(e,t,i.items)}))},A=(e,t)=>{L(e,t)},L=(e,t,i)=>{let c;t=Array.isArray(t)?t:[t],c=i||N(e).dataSource,c&&c.forEach((i=>{t.includes(i.id)?(M(e,i),i.parentId&&V(e,i.parentId)):i.items&&L(e,t,i.items)}))},M=(e,t,i)=>{const c=N(e);if(c){const o=c.options.treeview;t&&((o||!o&&"group"!=t.type)&&(t.disabled||(t.checked=null!=i?i:!t.checked,t.itemObject.checked=t.checked,t.indeterminate=t.checked?"determinate":"uncheck")),t.items&&t.items.forEach((c=>{M(e,c,null==i?t.checked:i)})))}},V=(e,t,i)=>{let c;c=i||N(e).dataSource,c&&c.forEach((i=>{if(i.id==t){let t=!0,c=!0;i.items&&i.items.map((e=>{(e.checked||"indeterminate"===e.indeterminate)&&(c=!1),!e.checked&&(t=!1)}));const o=t||c?t?"determinate":"uncheck":"indeterminate";i.indeterminate=o,i.checked="determinate"==o,i.itemObject.checked=i.checked,i.parentId&&V(e,i.parentId)}else i.items&&V(e,t,i.items)}))},G=(e,t,i,c)=>{let o,n=[],s=[];return N(e).isSearchOtherTag=c,o=i||N(e).dataSource,o&&o.forEach((i=>{if(t){var o;i.hidden=!0;for(let e=0;e<t.length;e++)if(t[e].id===i.id){o=t[e];break}if(o&&(i.hidden=!1,N(e).isSearchOtherTag||(i.isSearching=!0),s.push(i),i.checked&&n.push(i),o.items)){const{checkedItems:t,visibledItems:l}=G(e,o.items,i.items,c);t&&(n=[...new Set([...n,...t])]),l&&(s=[...new Set([...s,...l])])}}else i.hidden=!1,i.items&&G(e,null,i.items),s.push(i),i.isSearching=!1})),{checkedItems:null!=n?n:[],visibledItems:null!=s?s:[]}},B=(e,t)=>{let i,c=null;return i=t||N(e).dataSource,i&&i.forEach((t=>{if(t.selected)c=t.itemObject;else if(t.items){const i=B(e,t.items);i&&(c=i)}})),c},H=(e,t)=>{let i,c=[],o=[];return i=t||N(e).dataSource,i&&i.forEach((t=>{var i;const n=Object.assign(Object.assign({},t.itemObject),{ct:t.ct});let s=[],l=[];if(t.checked&&(c.push(n),l.push(Object.assign(Object.assign({},n),{items:[]}))),t.items){const o=H(e,t.items);(null===(i=null==o?void 0:o.checkedList)||void 0===i?void 0:i.length)>0&&(c=[...c,...o.checkedList]),o.nestedResult.length>0&&(s=o.nestedResult)}s.length>0?(0==l.length&&l.push(Object.assign(Object.assign({},n),{items:[]})),l[0].items=s,o.push(l[0])):l.length>0&&(l[0].items=s,o.push(l[0]))})),{checkedList:(null==c?void 0:c.length)>0?c:null,nestedResult:o}},W=(e,t,i)=>{let c,o=[];return c=i||N(e).dataSource,c&&c.forEach((i=>{if(t&&(i.id==t?(i.selected=!0,i.itemObject.selected=i.selected):i.selected&&(i.selected=!1,i.itemObject.selected=i.selected)),i.items){const c=W(e,t,i.items);(null==c?void 0:c.length)>0&&(o=[...o,...c])}i.selected&&o.push(i.itemObject)})),o&&o.length>0?o:null},q=(e,t)=>{let i;i=t||N(e).dataSource,i&&i.forEach((t=>{var i,c,o;t.checked&&(t.checked=!1),t.selected&&(t.selected=!1),t.indeterminate&&(t.indeterminate="uncheck"),(null===(i=t.itemObject)||void 0===i?void 0:i.checked)&&(t.itemObject.checked=!1),(null===(c=t.itemObject)||void 0===c?void 0:c.selected)&&(t.itemObject.selected=!1),(null===(o=t.itemObject)||void 0===o?void 0:o.indeterminate)&&(t.itemObject.indeterminate="uncheck"),t.items&&q(e,t.items)}))},K={setValue:e=>{const{id:t,dataSource:i,options:c}=e,{type:o,treeview:n,checkboxes:s,searchable:a,value:h,name:m,label:b,size:d,disabled:p,readonly:u,highlight:_,required:x,hidden:g,fullWidth:v,height:f,maxHeight:k,minHeight:w,width:y,infoFooter:z,variableText:j,template:I,allOpen:C,keyControl:O,checkAll:S,linkedComponent:$,placeholder:E,searchPlaceholder:N,searchIsOnlyChilds:F,clearable:P,caption:A,noCaption:L,captionType:M,captionError:V,placement:G}=c,B={size:d,checkboxes:s,template:I,allOpen:C,highlight:_,treeview:n},H={id:r((()=>t),l.UID),dataSource:i&&i.length>0&&R(i,B),options:{type:o,treeview:n,checkboxes:s,searchable:a,value:h,name:m,label:b,size:d,disabled:p,readonly:u,highlight:_,required:x,hidden:g,fullWidth:v,height:f,maxHeight:k,minHeight:w,width:y,infoFooter:z,variableText:j,template:I,allOpen:C,keyControl:O,checkAll:S,linkedComponent:$,placeholder:E,searchPlaceholder:N,searchIsOnlyChilds:F,clearable:P,caption:A,noCaption:L,captionType:M,captionError:V,placement:G},totalItems:(null==i?void 0:i.length)>0&&D(i,c.treeview),totalRoots:null==i?void 0:i.length};T.value.set(H.id,H)},removeValue:e=>{T.value.delete(e)},getValue:N,getData:e=>{let t=[];const i=N(e);if(i){const{dataSource:e}=i;t=e}return t},getDataPagination:(e,t=3,i)=>{let c=[];const o=N(e);if(o){const{dataSource:e}=o;c=i?e.filter((e=>i.indexOf(e.id)>-1)).slice(0,t):e.slice(0,t)}return c},openGroup:F,checkedItem:A,filterData:G,getSelected:B,getCheckedList:H,selectedItem:W,addChecked:(e,t)=>{N(e)&&t.forEach((t=>{A(e,t)}))},setClear:q,selectAll:(e,t)=>{const i=N(e).dataSource;i&&i.forEach((i=>{M(e,i,t)}))},removeOtherTags:(e,t,i)=>{let c;if(t=Array.isArray(t)?t:[t],i)c=i;else{const t=N(e);c=t.dataSource}c&&t.forEach((t=>{c.forEach((i=>{i.id==t?(i.checked=!1,i.itemObject.checked=!1):i.items&&P(e,t,i.items)}))}))},onRemoveItems:P,updateOptions:(e,t)=>{Object.keys(N(e).options).forEach((i=>{N(e).options[i]=t[i]}))},removeState:e=>Promise.resolve(T.value.delete(e))};class U{constructor(e,t,i,c){this.elementName="",this.childElementName="",this.keyCode=e,this.element=t,this.elementName=i,this.childElementName=c}getKeyCode(){return this.keyCode}getElementName(){return this.elementName}getChildElementName(){return this.childElementName}getFocusedElementName(){return this.getElementName()+".focused"}getFocusedElement(){return this.element.querySelectorAll(this.getFocusedElementName())[0]||null}getFirstElement(){return this.element.querySelectorAll(this.getElementName())[0]||null}getNextElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.nextElementSibling)||this.getFirstElement()}getPreviousElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.previousElementSibling)||this.getFirstElement()}getChildElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.querySelectorAll(this.getChildElementName())[0])||null}getParentElement(e){if(e&&e)return e&&e.attributes["data-isroot"]?e:this.getParentElement(e.parentNode)}focusElementIsOpen(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.classList.contains("bcm-list__item--open"))||!1}isRootElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.querySelectorAll(this.getChildElementName()).length)>0}isRootElementIsOpen(){return this.getFocusedElement().classList.contains("bcm-list__item--open")}getFocusedChildElement(){var e;return(null===(e=this.getChildElement())||void 0===e?void 0:e.querySelectorAll(".focused")[0])||null}isLastElement(){var e;return null===(null===(e=this.getFocusedElement())||void 0===e?void 0:e.nextElementSibling)}focusParentElementFirstChild(){var e,t;return this.setFocus(null===(t=null===(e=this.getFocusedElement())||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.firstChild)}isFirstElement(){var e;return null===(null===(e=this.getFocusedElement())||void 0===e?void 0:e.previousElementSibling)}focusRootElement(){var e,t,i;return this.setFocus(null===(i=null===(t=null===(e=this.getFocusedElement())||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.firstChild)}nextRootElement(){var e,t,i;return this.setFocus(null===(i=null===(t=null===(e=this.getFocusedElement())||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.nextElementSibling)}findFocusElementParent(){return this.getFocusedElement().parentNode.querySelectorAll(".bcm-list__item--open")}getLastElement(){return this.element.querySelectorAll(this.getElementName())[this.element.querySelectorAll(this.getElementName()).length-1]||null}setFocus(e){e.focus()}}class Y extends U{constructor(e,t,i,c){super(e,t,".bcm-list__item",".bcm-list__item-childs"),this.isTreeview=!1,this.isCheckBoxes=!1,this.isTreeview=i,this.isCheckBoxes=c}keyUpControl(){this.isTreeview?this.keyUpTreeview():this.isFirstElement()?this.setFocus(this.getLastElement()):this.setFocus(this.getPreviousElement())}keyDownTreeView(){var e;if(this.isTreeview)if(this.isRootElement()&&this.isRootElementIsOpen()){const e=this.getChildElement();e&&this.setFocus(e.firstChild)}else this.isLastElement()&&this.getParentElement(this.getFocusedElement())?this.setFocus(null===(e=this.getParentElement(this.getFocusedElement()))||void 0===e?void 0:e.nextElementSibling):this.setFocus(this.getNextElement())}keyUpTreeview(){if(this.isFirstElement()){const e=this.getParentElement(this.getFocusedElement());this.setFocus(e)}else{const e=this.getPreviousElement();if(e)if(e.classList.contains("bcm-list__item--open")){const t=e.querySelectorAll(this.getChildElementName())[0];console.log({getChildElement:t}),this.setFocus(t.lastChild)}else this.setFocus(e)}}keyDownControl(){this.isTreeview?this.keyDownTreeView():this.isLastElement()?this.setFocus(this.getFirstElement()):this.setFocus(this.getNextElement())}keyRightControl(){if(this.isTreeview&&!this.isRootElementIsOpen()&&this.isRootElement()){const{id:e}=this.getFocusedElement();this.openGroup(e)}}keyLeftControl(){if(this.isTreeview&&this.isRootElementIsOpen()&&this.isRootElement()){const{id:e}=this.getFocusedElement();this.openGroup(e)}}keyEnterControl(){}keySpaceControl(){if(this.isCheckBoxes){const{id:e}=this.getFocusedElement();this.checkedItem(e)}}keyDown(){switch(this.getKeyCode()){case _.KeyCode.up:this.keyUpControl();break;case _.KeyCode.down:this.keyDownControl();break;case _.KeyCode.left:this.keyLeftControl();break;case _.KeyCode.right:this.keyRightControl();break;case _.KeyCode.enter:this.keyEnterControl();break;case _.KeyCode.space:this.keySpaceControl()}}keyUp(){}}var J=function(e,t,i,c){var o,n=arguments.length,s=n<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,i):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,c);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};const Q=class{constructor(e){t(this,e),this.bcmChecklist=i(this,"bcm-checklist",7),this.bcmSelected=i(this,"bcm-selected",7),this.change=i(this,"bcm-change",7),this.open=i(this,"bcm-open",3),this.close=i(this,"bcm-close",3),this.listClose=i(this,"bcm-list-close",7),this.listOpen=i(this,"bcm-list-open",7),this.debounce=null,this.debounceHandler=l.debounceInput((()=>this.listenResize()),300,!1),this._id=l.UID(),this.tempId=l.UID(),this.type=x.ListType.listbox,this.treeview=!1,this.checkboxes=!1,this.searchable=!1,this.value=null,this.inputText=void 0,this.name=void 0,this.label=void 0,this.size=x.Size.medium,this.disabled=!1,this.readonly=!1,this.highlight=!1,this.highlightText=void 0,this.required=!1,this.hidden=!1,this.fullWidth=!1,this.height="256px",this.maxHeight="500px",this.minHeight="150px",this.width="256px",this.tooltip=void 0,this.infoFooter=!1,this.variableText="item",this.template=void 0,this.allOpen=!1,this.keyControl=!1,this.checkAll=!0,this.stopDeepClean=!1,this.openIntersecting=!1,this.linkedComponent=void 0,this.isOpen=!1,this.isOpenAnimation=!1,this.calculatedViewport=!1,this.isSelectedOther=!1,this.isHaveOtherTag=!1,this.placeholder="Choose an option",this.searchPlaceholder="Search",this.searchIsOnlyChilds=!1,this.minSearchLength=2,this.clearable=!1,this.caption=void 0,this.noCaption=!1,this.captionType=x.Status.default,this.captionError=void 0,this.emptyText=void 0,this.emptyIcon="fad fa-folder-open",this.captionCache=void 0,this.captionTypeCache=void 0,this.tick={},this.totalData=0,this.totalRootData=0,this.limit=20,this.searchGetParents=void 0,this.searchResultLimit=20,this.searchFound=null,this.returnFilterData={},this.returnOtherData={},this.options={rootMargin:"30px"},this.tagContainerWidth=0,this.selectAllItem={id:"select-all",text:"Select All",value:"select-all",checked:!1,disabled:!1,icon:"",status:x.Status.default,indeterminate:"uncheck"},this.shouldTriggerChange=void 0,this.placement=x.Placement["bottom-start"],this.disableChangeEvent=!1,this.data=[],window.addEventListener("scroll",this.handleWheel.bind(this),!0),window.addEventListener("wheel",this.handleWheel.bind(this),!0),window.addEventListener("resize",this.handleResize.bind(this),!0)}connectedCallback(){"256px"!=this.height&&(this.limit=this.height.indexOf("px")>-1?Math.floor(+this.height.replace("px","")/10):Math.floor(+window.innerHeight/10),this.searchResultLimit=this.limit,this.markForCheck());const e=document.querySelectorAll(`#bcm-list-${this._id}`);(null==e?void 0:e.length)>1&&e.forEach(((e,t)=>t>0&&e.remove()))}componentWillRender(){this.calculateLocation()}componentShouldUpdate(e,t,i){Object.keys(this.getOptions()).indexOf(i)>-1&&e!==t&&this.updateOptions()}get containerWidth(){var e,t;return null===(t=null===(e=this.el)||void 0===e?void 0:e.getBoundingClientRect())||void 0===t?void 0:t.width}get tagCount(){return this.containerWidth>0?Math.floor(+(this.containerWidth-100)/85):0}get tagData(){return r((()=>{var e;return null===(e=this.value)||void 0===e?void 0:e.map((e=>({value:e.id,label:h.textLimitter(e.text,7),text:e.tooltipMessage||e.tagTitle||l.domParser(e.text)})))}),[])}async componentDidLoad(){await this.initState()}disconnectedCallback(){if(this.isOpen=!1,!this.stopDeepClean&&(K.removeState(this._id),this.el.innerHTML="","select"==this.type||"autocomplete"==this.type||this.linkedComponent)){const e=document.querySelectorAll(`#bcm-list-${this._id}`);(null==e?void 0:e.length)&&(e.forEach((e=>e.remove())),this.el.remove())}}watchId(e,t){K.removeState(t),this.initState()}handleValueChange(e,t){var i,c;if(l.objectIsEmpty(this.returnFilterData)&&this.handleIndeterminate((null===(i=this.value)||void 0===i?void 0:i.length)||0,this.totalData),this.checkboxes){if(!m.compareTwoArrayIsSame(e,t)&&(this.bcmChecklist.emit(this.value),!this.disableChangeEvent))if(this.shouldTriggerChange){const e=(null===(c=this.value)||void 0===c?void 0:c.length)?[...this.value].map((e=>Object.assign(Object.assign({},e),this.shouldTriggerChange&&{shouldTriggerChange:this.shouldTriggerChange}))):null;this.change.emit(e)}else this.change.emit(this.value)}else(null==e?void 0:e.id)!=(null==t?void 0:t.id)&&!this.disableChangeEvent&&this.change.emit(this.value?Object.assign(Object.assign({},this.value),this.shouldTriggerChange&&{shouldTriggerChange:this.shouldTriggerChange}):null)}watchReturnFilterData(e){var t;const{checkedItems:i,visibledItems:c}=e;i&&c?this.handleIndeterminate(i.length,c.length):this.handleIndeterminate((null===(t=this.value)||void 0===t?void 0:t.length)||0,this.totalData)}async handleOpen(){if(this.isOpen){if(this.detectClone(),"select"==this.type||"autocomplete"==this.type||this.linkedComponent){const e=this.el.querySelector(`#bcm-list-${this._id}`);e&&document.querySelector("#bcm-overlay-container").appendChild(e)}this.open.emit(),this.calculateLocation(),this.onSelectSearch(),await u(50),this.isOpenAnimation=!0}else this.isOpenAnimation=!1,this.listScrollToTop(),this.close.emit(),this.listClose.emit(),await u(100),this.unSelectOther()}listScrollToTop(){const e=document.querySelector(`#bcm-list-${this._id}`);e&&(e.querySelector(".scrolling").scrollTop=0)}async dataChanged(e,t){m.compareTwoArrayIsSame(e,t)||await this.initState()}isIntersecting(e){const t=null==e?void 0:e.target;t&&t.id===this._id&&this.listenResize()}handleSlotItems(e){var t;(null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.length)>0&&(this.data=e.detail)}handleChange(e){e.target.id==`bcm-list-input-tag-container-${this._id}-autocomplete-input`&&e.stopImmediatePropagation()}handleResize(){this.calculateLocation(),this.debounceHandler()}handleWheel(e){if(this.isOpen){const t=document.querySelector(`#bcm-list-${this._id}`);t&&l.findEventPath(e,t)?("select"==this.type||"autocomplete"==this.type||this.linkedComponent)&&this.calculateLocation():this.hide()}}clearAutocomplete(){if("autocomplete"==this.type){const e=this.getAutoCompleteInput();e&&e.handleClear(!1)}}async handleSelectOtherTag(e){if(this.disabled)return;const{id:t,checked:i}=e.detail;this.isSelectedOther=i,t&&(i?this.filterOtherList(t):this.unSelectOther(),this.isOpen=!0)}async handleDeleteTag(e){var t;if(this.disabled)return;const{id:i}=e.detail;this.isSelectedOther&&this.unSelectOther(),Array.isArray(i)?K.removeOtherTags(this._id,i):K.checkedItem(this._id,i),this.value=(await this.getCheckedList()).checkedList,this.handleIndeterminate((null===(t=this.value)||void 0===t?void 0:t.length)||0,this.totalData)}async handleSelectTag(e){this.disabled||(this.clearAutocomplete(),this.onSelectSearch(),this.unSelectOther())}handleClick(e){var t;if(this.disabled)return;const i=document.querySelector(`#bcm-list-${this._id}`),c=l.findEventPath(e,this.el)||i&&l.findEventPath(e,i);if(c&&(null!==this.debounce&&(e.preventDefault(),e.stopPropagation(),clearTimeout(this.debounce),this.debounce=null),this.debounce=setTimeout((()=>{this.debounce=null}),300)),!c&&"autocomplete"==this.type){const e=this.getAutoCompleteInput();e&&e.setValue(this.checkboxes?"":(null===(t=this.value)||void 0===t?void 0:t.text)||"")}const o=l.findEventPathWithKey(e,"className",["bcm-tag"]),n=l.findEventPathWithKey(e,"className",["bcm-tag bcm-tag--other"]),s=l.findEventPathWithKey(e,"id",[`bcm-list-input-${this._id}`,`bcm-list-label-${this._id}`]),r=l.findEventPathWithKey(e,"className",["right close-button"]);s&&!r&&"autocomplete"!=this.type&&(this.isOpen=!(!o&&!n&&this.isOpen)),i&&this.isOpen&&(i.contains(e.target)||this.el.contains(e.target)||(this.isOpen=!1))}bcmOnSearchClear(e){var t,i;"autocomplete"==this.type&&((null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.id)!==`bcm-list-${this._id}-search`&&(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||e.detail&&this.setClear())}bcmOnSearch(e){var t,i,c,o,n,s;(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.id)!==`bcm-list-${this._id}-search`&&(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||(this.searchGetParents=r((()=>{var t;return null===(t=e.detail)||void 0===t?void 0:t.parentIndex}),null),this.searchResultLimit=10,this.searchFound=null!=(null===(c=e.detail)||void 0===c?void 0:c.matching)?null===(o=e.detail)||void 0===o?void 0:o.matching.length:null,this.returnFilterData=K.filterData(this._id,null===(n=e.detail)||void 0===n?void 0:n.nestedResult),this.searchFound>0&&this.highlight&&(this.highlightText=null===(s=e.detail)||void 0===s?void 0:s.value),"autocomplete"==this.type&&(this.isOpen=!0),e.detail.result||("autocomplete"==this.type?this.isOpen=!1:(this.returnFilterData={},K.filterData(this._id,null)),this.searchResultLimit=null,this.highlightText=null),this.markForCheck())}handleKeyDown(e){const t=e.keyCode||e.which;if(t===x.KeyCode.escape&&this.isOpen&&(this.isOpen=!1,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),this.keyControl){const e=new Y(t,this.el,this.treeview,this.checkboxes);e.openGroup=e=>{this.openGroup(e)},e.checkedItem=e=>{this.checkedItem(e)},e.keyDown()}}handleKeyUp(e){if(this.keyControl&&l.findEventPath(e,this.el)){const e=document.getElementById(`bcm-list-${this._id}`);if(e){const t=e.querySelectorAll(".bcm-list__item.focused");if(t.length>0){const i=e.querySelector("main"),c=t[0].offsetHeight,o=i.offsetHeight,n=t[0].offsetTop;n>o&&(i.scrollTop=n-o/2+c/2),n<o&&(i.scrollTop=n-o/2-c/2)}}}}async set(e,t=!0){e?(this.shouldTriggerChange=t,Array.isArray(e)&&this.addChecked(e),"string"!=typeof e&&"number"!=typeof e||this.selectedItem(e)):this.setClear()}async get(){var e,t;return this.value?this.checkboxes?null===(t=null===(e=await this.getCheckedList())||void 0===e?void 0:e.checkedList)||void 0===t?void 0:t.map((e=>e.id)):this.value.id:null}async getCheckedList(){return Promise.resolve(K.getCheckedList(this._id))}async getSelected(){return Promise.resolve(K.getSelected(this._id))}async getValue(){return Promise.resolve(this.value)}async triggerChange(e){this.shouldTriggerChange=e}async addChecked(e=[],t=!1,i=!0){return e&&e.length>0&&(t||(K.setClear(this._id),await u(10)),await K.addChecked(this._id,e),await u(10),i&&(this.value=(await this.getCheckedList()).checkedList),this.markForCheck()),Promise.resolve(this.value)}async selected(e){return!!e&&Promise.resolve(await this.selectedItem(e))}async setClear(e){return K.setClear(this._id),this.value=null,this.inputText="",this.isOpen=!1,this.selectAllItem.indeterminate="uncheck",this.markForCheck(),e&&(e.stopPropagation(),e.preventDefault()),await u(10),Promise.resolve()}async resetCaption(){return await u(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await u(10),Promise.resolve()}detectClone(){const e=document.querySelectorAll(`#bcm-list-${this._id}`);e.length>0&&e.forEach((e=>{const t=e.getAttribute("temp-id");t!==`bcm-list-${this.tempId}`&&(console.warn(`[bcm-list] - Detected duplicate temp-id="${t}"`),e.remove())}))}async show(){return this.isOpen=!0,Promise.resolve()}async hide(){return this.isOpen=!1,Promise.resolve()}updateOptions(){K.updateOptions(this._id,this)}handleIndeterminate(e,t){this.selectAllItem=Object.assign(Object.assign({},this.selectAllItem),{indeterminate:this.checkboxes&&e>0?e===t?"check":"indeterminate":"uncheck",checked:!!(this.checkboxes&&e>0)&&e===t})}listenResize(){this.calculateLocation(),this.markForCheck()}async unSelectOther(){return await this.onClearSearch(),this.isSelectedOther=!1,this.searchFound=null,this.returnFilterData={},K.filterData(this._id,null),await u(10),Promise.resolve()}async onClearSearch(){const e=document.getElementById(`bcm-list-${this._id}-search`);return e&&await e.handleClear(),Promise.resolve()}async onSelectSearch(){const e=document.getElementById(`bcm-list-${this._id}-search`);e&&(await u(100),e.onBcmFocus(),e.onBcmSelect())}async filterOtherList(e){const t=(await this.getCheckedList()).nestedResult,i=l.convertIdsToNestedData(e,t);this.returnFilterData=await K.filterData(this._id,i,null,!0),this.searchFound=(null==e?void 0:e.length)||0,this.limit=500,this.searchGetParents=null,await u(1e3),this.markForCheck()}async initState(){var e,t,i;this.onClearSearch(),await K.setValue({id:this._id,dataSource:this.data&&r((()=>"string"==typeof this.data?JSON.parse(this.data):this.data),[]),options:this});const{totalRoots:c,totalItems:o}=K.getValue(this._id);if(this.totalData=o,this.totalRootData=c,this.value=this.checkboxes?(await this.getCheckedList()).checkedList:K.selectedItem(this._id)?K.selectedItem(this._id)[0]:null,this.checkboxes||(this.inputText=l.domParser(null===(e=this.value)||void 0===e?void 0:e.text)||null),this.checkboxes&&(null===(t=this.value)||void 0===t?void 0:t.length)>0){const e=[];this.value.forEach((t=>{t.items&&0!==t.items.length||e.push(t.id)})),await this.addChecked(e,!1,!1)}await this.handleIndeterminate(null===(i=this.value)||void 0===i?void 0:i.length,this.totalData),await this.markForCheck()}async markForCheck(){await u(10),this.tick=l.UID()}getOptions(){return r((()=>K.getValue(this._id).options),{})}getItems(){return this.isSelectedOther?this.returnFilterData.checkedItems:r((()=>K.getData(this._id)),[])}getLimitedItems(e){return r((()=>K.getDataPagination(this._id,this.searchResultLimit||this.limit,e)),[])}openGroup(e){K.openGroup(this._id,e),this.markForCheck()}focusItem(e){if(e.target.classList.contains("bcm-list__item")){const t=e.target,i=document.getElementById(`bcm-list-${this._id}`);if(i&&i.querySelectorAll(".bcm-list__item").length>0){const e=i.querySelector(".bcm-list__item.focused");e&&e.classList.remove("focused"),t.classList.add("focused")}}}async selectedItem(e){var t;if(!this.checkboxes&&(this.value=K.selectedItem(this._id,e)?K.selectedItem(this._id,e)[0]:null,this.inputText=l.domParser(null===(t=this.value)||void 0===t?void 0:t.text)||null,this.isOpen=!1,this.markForCheck(),"autocomplete"==this.type&&this.value)){const e=this.getAutoCompleteInput();e&&setTimeout((()=>{var t;e.setValue((null===(t=this.value)||void 0===t?void 0:t.text)||""),this.isOpen=!1}),100)}return Promise.resolve(this.value)}async checkedItem(e){"select-all"===e?K.selectAll(this._id,!this.selectAllItem.checked):K.checkedItem(this._id,e),this.value=(await this.getCheckedList()).checkedList,this.changeVisibleCheckeds(),this.markForCheck()}changeVisibleCheckeds(){const{visibledItems:e}=this.returnFilterData;this.returnFilterData={visibledItems:e,checkedItems:e&&e.filter((e=>e.checked))||[]}}getAutoCompleteInput(){return document.getElementById(`bcm-list-input-tag-container-${this._id}-autocomplete-input`)}dataScrollEvent(e){let t=0,i=new IntersectionObserver((e=>{0===t&&(t++,e[0].isIntersecting&&(this.limit+=15,this.searchResultLimit+=15,i.disconnect(),i=null))}),this.options);i.observe(e.target.lastElementChild)}async calculateLocation(){var e,t;if("select"==this.type||"autocomplete"==this.type||this.linkedComponent){const c=document.getElementById(`bcm-list-${this._id}`);var i=this.placement;const o=document.getElementById(this.linkedComponent?this.linkedComponent:`bcm-list-input-${this._id}`);if(c&&o){b(c,o,i,(e=>i=e)),await u(10);let n=d(i,o),s=0,l=0;if(this.linkedComponent){const i=document.getElementById(this.linkedComponent);if(i){if(!i.noCaption){const t=(null===(e=i.shadowRoot)||void 0===e?void 0:e.querySelector(".bcm-caption-area"))||i.querySelector(".bcm-caption-area");t&&(s=t.offsetHeight||t.clientHeight)}const c=(null===(t=i.shadowRoot)||void 0===t?void 0:t.querySelector(".bcm-label"))||i.querySelector(".bcm-label");c&&(l=c.offsetHeight||c.clientHeight)}}c.style.width=this.fullWidth?o.offsetWidth+"px":this.width||"auto",c.style.height=this.height.indexOf("%")>-1?.01*a.toNumber(this.height)*window.innerHeight-n[0]-50+"px":this.height,c.style.minHeight=this.minHeight;const r="top"==i.split("-")[0]?window.innerHeight-(window.innerHeight-n[0])-50:window.innerHeight-n[0]-50;c.style.maxHeight=this.maxHeight.indexOf("%")>-1?.01*a.toNumber(this.maxHeight)*r+"px":a.toNumber(this.maxHeight)<r?this.maxHeight:r+"px",b(c,o,i,(e=>i=e)),await u(10),n=d(i,o),c.style.top=("top"==i.split("-")[0]?n[0]-c.offsetHeight+l:n[0]-s)+"px",c.style.left="end"==i.split("-")[1]?n[1]-c.offsetWidth+"px":n[1]+"px",c.classList.toggle("bcm-list--top","top"==i.split("-")[0]),this.calculatedViewport=!0}}}handleTransitionEnd(e){const{isOpen:t,type:i}=this;t&&"select"==i&&"transform"==(null==e?void 0:e.propertyName)&&this.listOpen.emit()}render(){const{checkboxes:t,treeview:i,label:o,size:n,disabled:s,readonly:l,required:r,hidden:a,fullWidth:h,searchable:m}=this.getOptions(),b=v("bcm-list",`bcm-list__size-${n}`,`bcm-list__${this.type}`,"large"===n?"size-3":"size-2",{error:this.captionType==x.Status.error,"full-width":h,"bcm-list__linked":this.linkedComponent,hidden:a,readonly:l,disabled:s}),d=v("bcm-list__container",this.linkedComponent?"bcm-list__type-linked-component":`bcm-list__type-${this.type}`,{"is-open":this.isOpen&&this.calculatedViewport,"is-open-animation":this.isOpenAnimation,error:this.captionType==x.Status.error,"full-width":h,hidden:a,readonly:l,disabled:s}),p=v("bcm-list__input"),u="select"==this.type||"autocomplete"==this.type||this.linkedComponent;return e(c,{class:b,tabindex:"0",style:{"--width":h?"100%":this.width,"--height":u?"100%":this.height,"--max-height":u?"inherit":this.maxHeight,"--min-height":u?"inherit":this.minHeight}},e("div",{id:`bcm-list-label-${this._id}`,class:"bcm-list__label"},o&&e("div",null,e("bcm-label",{tooltip:this.tooltip,size:this.size,type:this.captionType,value:o,required:r,htmlFor:this._id}))),"select"==this.type&&e("div",{id:`bcm-list-input-${this._id}`,class:p},e("span",{class:v("bcm-list__input-container",{"type-single":!t,"value-empty":!this.value})},this.checkboxes?this.value&&this.value.length>0?e("bcm-rc-overflow",{data:this.tagData,maxCount:this.tagCount}):e("span",{class:"bcm-list__input-placeholder"},this.placeholder):this.value?this.inputText:e("span",{class:"bcm-list__input-placeholder"},this.placeholder)),e("span",{class:v("bcm-list__input-buttons",{disabled:s})},this.clearable&&this.value&&e("div",{class:"bcm-list__input-buttons-button"},e("bcm-icon",{icon:"fal fa-times",onClick:e=>!s&&this.setClear(e)})),e("div",{class:`bcm-list__input-buttons-button caret-is ${this.isOpen&&this.calculatedViewport&&"caret-is-open"}`},e("bcm-icon",{icon:"far fa-angle-down"})))),"autocomplete"===this.type&&e("div",{id:`bcm-list-input-${this._id}`,class:v(p,{"bcm-list__input-autocomplete":"autocomplete"==this.type})},e("span",{class:"bcm-list__input-container",id:`bcm-list-input-tag-container-${this._id}`},this.checkboxes&&e("span",{class:"bcm-list__input-tag-container",id:`bcm-list-input-tag-container-${this._id}-autocomplete`}),e("bcm-search",{id:`bcm-list-input-tag-container-${this._id}-autocomplete-input`,class:"bcm-list__autocomplete",data:this.data,clearable:!0,"full-width":!0,"no-caption":!0,placeholder:this.placeholder}))),e(E,{highlight:this.highlightText,searchable:"autocomplete"!=this.type&&m,bcmListContainer:d,checkboxes:t,treeview:i,infoFooter:this.infoFooter,value:this.value,totalData:this.totalData,searchFound:this.searchFound,variableText:this.variableText,searchPlaceholder:this.searchPlaceholder,minSearchLength:this.minSearchLength,searchIsOnlyChilds:this.searchIsOnlyChilds,_id:this._id,tempId:this.tempId,checkAll:this.checkAll,data:this.getItems(),width:this.width,height:this.height,size:this.size,selectAllItem:this.selectAllItem,onScrollEvent:e=>this.dataScrollEvent(e),items:this.getLimitedItems(this.searchGetParents),selectedItem:e=>this.selectedItem(e),checkedItem:e=>this.checkedItem(e),openGroup:e=>this.openGroup(e),focusItem:e=>this.focusItem(e),emptyText:this.emptyText,emptyIcon:this.emptyIcon,handleTransitionEnd:e=>this.handleTransitionEnd(e)}),e(g,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return o(this)}static get watchers(){return{_id:["watchId"],value:["handleValueChange"],returnFilterData:["watchReturnFilterData"],isOpen:["handleOpen"],data:["dataChanged"]}}};function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c])}return e},X.apply(this,arguments)}function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function ee(e,t,i){return(t=function(e){var t=function(e){if("object"!==Z(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==Z(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Z(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function te(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,c)}return i}function ie(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?te(Object(i),!0).forEach((function(t){ee(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):te(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,c=new Array(t);i<t;i++)c[i]=e[i];return c}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var c,o,n,s,l=[],r=!0,a=!1;try{if(n=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;r=!1}else for(;!(r=(c=n.call(i)).done)&&(l.push(c.value),l.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{if(!r&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(a)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ce(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){if(null==e)return{};var i,c,o=function(e,t){if(null==e)return{};var i,c,o={},n=Object.keys(e);for(c=0;c<n.length;c++)t.indexOf(i=n[c])>=0||(o[i]=e[i]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(c=0;c<n.length;c++)t.indexOf(i=n[c])>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}J([n()],Q.prototype,"el",void 0),J([s("data",!0)],Q.prototype,"dataChanged",null),Q.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}.bcm-list{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:14px;line-height:calc(14px + 8px)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:16px;line-height:calc(16px + 8px)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);background-color:var(--bcm-new-ds-color-white)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;padding-top:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{scroll-behavior:smooth;padding:0 8px;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-color-red-6)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{display:none;opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{transition:transform 50ms;display:flex}.bcm-list__container.bcm-list__type-linked-component.is-open-animation,.bcm-list__container.bcm-list__type-select.is-open-animation,.bcm-list__container.bcm-list__type-autocomplete.is-open-animation{opacity:1;transform:translateY(0);visibility:visible}.bcm-list__container.bcm-list__type-linked-component{margin-top:2px}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-white);user-select:none;cursor:pointer;padding:0 8px;height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{flex:1;display:block;overflow:hidden}.bcm-list__input-container.value-empty{color:var(--bcm-color-grey-6)}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:var(--bcm-color-grey-6)}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 4px 0 4px;font-size:16px;color:var(--bcm-new-ds-color-slate-500)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-color-red-6)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-new-ds-color-blue-500);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item{padding:2px 0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;border-radius:4px;padding:0;padding-left:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-50);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);user-select:none;cursor:not-allowed}.bcm-list__item-content.selected{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item-content.selected:hover:not(.disabled){color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item-content:hover:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item-content:active:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item-content-collapse-icon{width:16px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:16px}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text.treeview{padding:8px 0}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{padding:2px 0 2px 8px;font-size:10px;line-height:calc(10px + 8px)}.bcm-list__item-small .bcm-list__item-content-text{padding:3px 4px}.bcm-list__item-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__item-medium .bcm-list__item-content-text{padding:6px 4px}.bcm-list__item-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-list__item-large .bcm-list__item-content-text{padding:9px 4px}.bcm-list__item--readonly:focus>.bcm-list__item-content:not(.disabled),.bcm-list__item--readonly.focused>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-500)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-new-ds-color-slate-500)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--readonly .bcm-list__item-content-collapse-icon{color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-new-ds-color-slate-100);color:var(--bcm-new-ds-color-slate-600);border-radius:0 0 4px 4px}';var se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],le=void 0;function re(e,t){var i=e.prefixCls,c=e.invalidate,o=e.item,n=e.renderItem,s=e.responsive,l=e.responsiveDisabled,r=e.registerSize,a=e.itemKey,h=e.className,m=e.style,b=e.children,d=e.display,p=e.order,u=e.component,_=void 0===u?"div":u,x=ne(e,se),g=s&&!d;function f(e){r(a,e)}k.useEffect((function(){return function(){f(null)}}),[]);var w,z=n&&o!==le?n(o):b;c||(w={opacity:g?0:1,height:g?0:le,overflowY:g?"hidden":le,order:s?p:le,pointerEvents:g?"none":le,position:g?"absolute":le});var j={};g&&(j["aria-hidden"]=!0);var I=k.createElement(_,X({className:v(!c&&i,h),style:ie(ie({},w),m)},j,x,{ref:t}),z);return s&&(I=k.createElement(y,{onResize:function(e){f(e.offsetWidth)},disabled:l},I)),I}var ae=k.forwardRef(re);function he(e,t){var i=oe(k.useState(t),2),c=i[1];return[i[0],j((function(t){e((function(){c(t)}))}))]}ae.displayName="Item";var me=k.createContext(null),be=["component"],de=["className"],pe=["className"],ue=function(e,t){var i=k.useContext(me);if(!i){var c=e.component,o=void 0===c?"div":c,n=ne(e,be);return k.createElement(o,X({},n,{ref:t}))}var s=i.className,l=ne(i,de),r=e.className,a=ne(e,pe);return k.createElement(me.Provider,{value:null},k.createElement(ae,X({ref:t,className:v(s,r)},l,a)))},_e=k.forwardRef(ue);_e.displayName="RawItem";var xe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ge="responsive",ve="invalidate";function fe(e){return"+ ".concat(e.length," ...")}function ke(e,t){var i,c=e.prefixCls,o=void 0===c?"rc-overflow":c,n=e.data,s=void 0===n?[]:n,l=e.renderItem,r=e.renderRawItem,a=e.itemKey,h=e.itemWidth,m=void 0===h?10:h,b=e.ssr,d=e.style,p=e.className,u=e.maxCount,_=e.renderRest,x=e.renderRawRest,g=e.suffix,f=e.component,j=void 0===f?"div":f,C=e.itemComponent,O=e.onVisibleChange,S=ne(e,xe),$="full"===b,E=(i=k.useRef(null),function(e){i.current||(i.current=[],function(e){if("undefined"==typeof MessageChannel)z(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){w.unstable_batchedUpdates((function(){i.current.forEach((function(e){e()})),i.current=null}))}))),i.current.push(e)}),T=oe(he(E,null),2),R=T[0],N=T[1],D=R||0,F=oe(he(E,new Map),2),P=F[0],A=F[1],L=oe(he(E,0),2),M=L[0],V=L[1],G=oe(he(E,0),2),B=G[0],H=G[1],W=oe(he(E,0),2),q=W[0],K=W[1],U=oe(k.useState(null),2),Y=U[0],J=U[1],Q=oe(k.useState(null),2),Z=Q[0],ee=Q[1],te=k.useMemo((function(){return null===Z&&$?Number.MAX_SAFE_INTEGER:Z||0}),[Z,R]),ce=oe(k.useState(!1),2),se=ce[0],le=ce[1],re="".concat(o,"-item"),be=Math.max(M,B),de=u===ge,pe=s.length&&de,ue=u===ve,_e=pe||"number"==typeof u&&s.length>u,ke=k.useMemo((function(){var e=s;return pe?e=null===R&&$?s:s.slice(0,Math.min(s.length,D/m)):"number"==typeof u&&(e=s.slice(0,u)),e}),[s,m,R,u,pe]),we=k.useMemo((function(){return s.slice(pe?te+1:ke.length)}),[s,ke,pe,te]),ye=k.useCallback((function(e,t){var i;return"function"==typeof a?a(e):null!==(i=a&&(null==e?void 0:e[a]))&&void 0!==i?i:t}),[a]),ze=k.useCallback(l||function(e){return e},[l]);function je(e,t,i){(Z!==e||void 0!==t&&t!==Y)&&(ee(e),i||(le(e<s.length-1),null==O||O(e)),void 0!==t&&J(t))}function Ie(e,t){A((function(i){var c=new Map(i);return null===t?c.delete(e):c.set(e,t),c}))}function Ce(e){return P.get(ye(ke[e],e))}I((function(){if(D&&"number"==typeof be&&ke){var e=q,t=ke.length,i=t-1;if(!t)return void je(0,null);for(var c=0;c<t;c+=1){var o=Ce(c);if($&&(o=o||0),void 0===o){je(c-1,void 0,!0);break}if(e+=o,0===i&&e<=D||c===i-1&&e+Ce(i)<=D){je(i,null);break}if(e+be>D){je(c-1,e-o-q+B);break}}g&&Ce(0)+q>D&&J(null)}}),[D,P,B,q,ye,ke]);var Oe=se&&!!we.length,Se={};null!==Y&&pe&&(Se={position:"absolute",left:Y,top:0});var $e,Ee={prefixCls:re,responsive:pe,component:C,invalidate:ue},Te=r?function(e,t){var i=ye(e,t);return k.createElement(me.Provider,{key:i,value:ie(ie({},Ee),{},{order:t,item:e,itemKey:i,registerSize:Ie,display:t<=te})},r(e,t))}:function(e,t){var i=ye(e,t);return k.createElement(ae,X({},Ee,{order:t,key:i,item:e,renderItem:ze,itemKey:i,registerSize:Ie,display:t<=te}))},Re={order:Oe?te:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){H(t),V(B)},display:Oe};if(x)x&&($e=k.createElement(me.Provider,{value:ie(ie({},Ee),Re)},x(we)));else{var Ne=_||fe;$e=k.createElement(ae,X({},Ee,Re),"function"==typeof Ne?Ne(we):Ne)}var De=k.createElement(j,X({className:v(!ue&&o,p),style:d,ref:t},S),ke.map(Te),_e?$e:null,g&&k.createElement(ae,X({},Ee,{responsive:de,responsiveDisabled:!pe,order:te,className:"".concat(re,"-suffix"),registerSize:function(e,t){K(t)},display:!0,style:Se}),g));return de&&(De=k.createElement(y,{onResize:function(e,t){N(t.clientWidth)},disabled:!pe},De)),De}var we=k.forwardRef(ke);we.displayName="Overflow",we.Item=_e,we.RESPONSIVE=ge,we.INVALIDATE=ve;const ye=class{constructor(e){t(this,e),this.selectOtherTag=i(this,"bcm-select-other-tag",7),this.selectTag=i(this,"bcm-select-tag",7),this.deleteTag=i(this,"bcm-delete-tag",7),this.renderItem=e=>k.createElement("bcm-tooltip",{placement:"bottom",message:e.text,trigger:"hover"},k.createElement("div",{id:e.value+"-tag",className:"bcm-tag",onClick:({target:t})=>this.onClickControl(t,e,!1)},k.createElement("span",{className:"bcm-tag__content dismissable"},k.createElement("div",{className:"value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap"},e.text),k.createElement("span",{className:"right close-button"},k.createElement("bcm-icon",{icon:"fa fa-times"}))))),this.renderRest=e=>{const t=(null==e?void 0:e.sort(((e,t)=>+e.ct-+t.ct)).slice(0,15).map((e=>h.textLimitter(e.text,40,!0))).toString().split(",").join("\r\n"))+(e.length>15?"\r\n...":"");return k.createElement("bcm-tooltip",{placement:"bottom",message:t,trigger:"hover"},k.createElement("div",{className:"bcm-tag bcm-tag--other",onClick:({target:t})=>this.onClickControl(t,e,!0)},k.createElement("span",{className:"bcm-tag__content dismissable "+(this.checked?"checkable checked":"")},k.createElement("span",{className:"value"},`+${null==e?void 0:e.length}`),k.createElement("span",{className:"right close-button"},k.createElement("bcm-icon",{icon:"fa fa-times"})))))},this._id=l.UID(),this.maxCount=1,this.data=[],this.checked=!1}isClickDismiss(e){return"BCM-ICON"===e["s-hn"]}onClickControl(e,t,i=!1){const c=this.isClickDismiss(e);c&&this.deleteTag.emit({id:Array.isArray(t)?t.map((e=>e.value)):t.value})&&this.checked&&(this.checked=!1),!i&&this.selectTag.emit({id:t.value})&&this.checked&&(this.checked=!1),i&&!c&&(this.checked=!this.checked,this.selectOtherTag.emit({id:null==t?void 0:t.map((e=>e.value)),checked:this.checked}))}componentWillRender(){const{data:e,renderItem:t,renderRest:i,maxCount:c}=this;this.overflowInstance=k.createElement(we,{data:e,renderItem:t,renderRest:i,maxCount:c}),w.render(this.overflowInstance,this.el)}get el(){return o(this)}};ye.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.rc-overflow{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%}.rc-overflow-item{transition:all 0.3s ease;padding:0 2px;display:flex;align-items:center;justify-content:center}';const{state:ze}=f({value:new Map}),je=(e,t)=>{let i=[];return e&&(i=e.map((e=>Object.assign(Object.assign(Object.assign({},e),{parentId:r((()=>t),null)}),e.items&&e.items.length>0&&{items:r((()=>je(e.items,e.id)),[])})))),i},Ie=e=>r((()=>ze.value.get(e)),{}),Ce=(e,t,i)=>{let c=[],o=[],n=[],s=[];const{searchIsOnlyChilds:l}=Ie(e);return t&&t.length>0&&t.forEach((t=>{let r=l&&null!==t.parentId;if((t.text&&h.slugify(t.text).includes(h.slugify(i))||t.keywords&&h.slugify(t.keywords).includes(h.slugify(i)))&&(!l||l&&r)){if(n.push(t.id),c.push(t.id),o.push(t.id),s.push({id:t.id,text:t.text,parentId:t.parentId}),t.items&&t.items.length>0){const o=Ce(e,t.items,i);o.matching.length>0&&o.matching.forEach((e=>{c.push(e)}))}}else if(t.items&&t.items.length>0){const l=Ce(e,t.items,i);l.result.length>0&&(l.result.forEach((e=>{n.push(e)})),n.push(t.id),o.push(t.id),s.push({id:t.id,text:t.text,parentId:t.parentId,items:l.nestedResult})),l.matching.length>0&&c.push(...l.matching)}})),{result:n,matching:c,parentIndex:o,nestedResult:s}},Oe=(e,t,i)=>{let c;c=i&&i.length>0?i:Ie(e).dataSource;let o=[];return c&&o.push(Ce(e,c,t)),{result:r((()=>l.flatArray(o[0].result)),[]),matching:r((()=>o[0].matching),[]),parentIndex:r((()=>o[0].parentIndex),[]),nestedResult:r((()=>o[0].nestedResult),[])}},Se=class{constructor(e){t(this,e),this.bcmOnSearch=i(this,"bcm-on-search",7),this.bcmOnSearchClear=i(this,"bcm-on-search-clear",7),this.debounceHandler=l.debounceInput((e=>this.onSearchValue(e,this)),300,!1,(()=>{var e,t;this.isActiveClearable=(null===(t=null===(e=this.inputElement)||void 0===e?void 0:e.value)||void 0===t?void 0:t.length)>0&&this.clearable})),this._id=l.UID(),this.placeholder="Search",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.size=_.Size.medium,this.limit=10,this.searchIsOnlyChilds=!1,this.minSearchLength=2,this.data=[],this.tick={},this.isActiveClearable=!1}async componentDidLoad(){await this.initState()}async dataChanged(e,t){e!==t&&await this.initState()}async initState(){await(e=>{const{id:t,dataSource:i}=e,c={id:r((()=>t),l.UID),dataSource:i&&i.length>0&&je(i),searchIsOnlyChilds:e.searchIsOnlyChilds};ze.value.set(c.id,c)})({id:this._id+"-input",dataSource:this.data,searchIsOnlyChilds:this.searchIsOnlyChilds}),await this.markForCheck()}markForCheck(){this.tick=l.UID()}handleInput(){}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async setValue(e){this.inputElement.value=e}handleFocus(){}handleBlur(){}handleChange(){}async handleClear(e=!0){this.inputElement.value="";const{value:t,id:i}=this.inputElement;return Oe(i,t),this.isActiveClearable=!1,this.bcmOnSearch.emit({result:null,value:null,matching:null,parentIndex:null}),this.bcmOnSearchClear.emit(e),await u(10),Promise.resolve()}onSearchValue(e,t){const{value:i,id:c}=e.target,o=(null==i?void 0:i.length)>=this.minSearchLength?Oe(c,i,null):null,{bcmOnSearch:n,inputElement:s}=t;n.emit({result:null==o?void 0:o.result,value:null==s?void 0:s.value,matching:null==o?void 0:o.matching,parentIndex:null==o?void 0:o.parentIndex,nestedResult:null==o?void 0:o.nestedResult})}render(){const{_id:t,placeholder:i,disabled:o,readonly:n}=this;return e(c,{onClick:()=>{this.onBcmFocus(),this.onBcmSelect()}},e(C,{size:this.size,id:t,type:"search",placeholder:i,disabled:o,"full-width":!0,readonly:n,clearable:this.isActiveClearable,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleClear:()=>this.handleClear(),handleInput:this.debounceHandler,ref:e=>this.inputElement=e}))}get el(){return o(this)}static get watchers(){return{data:["dataChanged"]}}};Se.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';export{Q as bcm_list,ye as bcm_rc_overflow,Se as bcm_search}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,c as i,h as s,H as e,g as a}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-866d1d29.js";import"./p-9551e2a4.js";import"./p-6b5ed4d8.js";import"./p-85f028bf.js";import"./p-5ae0a59b.js";import{d as r}from"./p-3c7a0345.js";import{a as l}from"./p-a313fba6.js";import{C as h}from"./p-1cac8ccc.js";import{c}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{I as d}from"./p-8e5e362a.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9107380e.js";const p=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this._id=o.UID(),this.label=void 0,this.name=void 0,this.value=null,this.defaultValue=void 0,this.size=l.Size.medium,this.disabled=void 0,this.hidden=!1,this.required=!1,this.gap=void 0,this.direction=l.Direction.horizontal,this.fullWidth=!1,this.items=[],this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=l.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}get radios(){return Array.from(this.el.querySelectorAll("bcm-radio"))}get Items(){return this.items}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}updateValue(){var t,i,s;this.value=null!==(s=null===(i=null===(t=this.radios)||void 0===t?void 0:t.find((t=>t.checked)))||void 0===i?void 0:i.value)&&void 0!==s?s:null}setRadioUpdate(){var t;null===(t=this.radios)||void 0===t||t.forEach((t=>{t.disabled=this.disabled||t.disabled,t.size=this.size,this.defaultValue&&(t.checked=t.value==this.defaultValue)}))}watchDisabled(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.disabled=t))}watchDefaultValue(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.checked=i.value==t)),this.updateValue(),this.change.emit(this.value)}componentWillLoad(){this.setRadioUpdate(),this.updateValue()}handleChange(t){var i,s;t.stopPropagation(),t.preventDefault();const e=null!==(i=t.target.checked)&&void 0!==i&&i;null===(s=this.radios)||void 0===s||s.forEach((i=>{i.checked=i.id==t.target.id&&!e})),this.updateValue(),this.change.emit(this.value)}async setClear(){var t;this.value=null,null===(t=this.radios)||void 0===t||t.forEach((t=>{t.checked=!1}))}async resetCaption(){return await r(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await r(10),Promise.resolve()}async check(t,i=!0){var s;null===(s=this.radios)||void 0===s||s.forEach((s=>{s.checked=(s.id==t||s.value==t)&&i})),this.updateValue(),this.change.emit(this.value)}async get(){return this.value}async set(t){await this.check(t)}async getValue(){return this.value}render(){var t,i;const{direction:a,fullWidth:o,gap:r,label:d,size:p,required:n,disabled:u,caption:v,captionError:m,captionType:f,noCaption:b}=this;return s(e,{role:"radio-group",class:"tw-mb-2 tw-flex tw-flex-col"},d&&s("bcm-label",{type:f,value:d,required:n}),s("div",{class:c("tw-flex tw-flex-wrap",a==l.Direction.horizontal?"tw-flex-row":"tw-flex-col",o&&"tw-w-full"),style:{gap:r}},s("slot",null),(null===(t=this.Items)||void 0===t?void 0:t.length)>0&&(null===(i=this.Items)||void 0===i?void 0:i.map((t=>s("bcm-radio",{id:t.id,value:t.value,disabled:u||t.disabled,checked:t.checked,color:t.color,size:p},t.label))))),s(h,{noCaption:b,captionType:f,captionError:m,caption:v}))}get el(){return a(this)}static get watchers(){return{disabled:["watchDisabled"],defaultValue:["watchDefaultValue"]}}};!function(t,i,s,e){var a,o=arguments.length,r=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(i,s,r):a(i,s))||r);o>3&&r&&Object.defineProperty(i,s,r)}([d()],p.prototype,"el",void 0);export{p as bcm_radio_group}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,c as i,h as s,H as e,g as h}from"./p-e037ee2b.js";import{I as r}from"./p-8e5e362a.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-866d1d29.js";import"./p-9551e2a4.js";import"./p-6b5ed4d8.js";import"./p-85f028bf.js";import"./p-5ae0a59b.js";import{a as o}from"./p-a313fba6.js";import{C as c}from"./p-1cac8ccc.js";import{c as n}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{h as p}from"./p-76edf59f.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9107380e.js";const m=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.onChange=t=>{this.value=this.getValueObject(t.detail),this.change.emit(this.value)},this.getFormat=()=>{if(!this.format){const t=this.use12Hours?"hh":"HH",i=`${this.showSecond?`${t}:mm:ss`:this.showMinute?`${t}:mm`:`${t}`}${this.use12Hours?" a":""}`;switch(this.type){case"time":return`${i}`;case"date":default:return"DD/MM/YYYY";case"datetime":return`DD/MM/YYYY ${i}`;case"week":return"YYYY-wo";case"month":return"MM/YYYY";case"year":return"YYYY"}}return this.format},this.getValueObject=t=>this.range?this.getRangeValueObject(t):this.createValueObject(t),this.getRangeValueObject=t=>{const[i,s]=t._i||[],e=this.createValueObject(i),h=this.createValueObject(s);return Object.assign({isValid:e.isValid&&h.isValid,start:e,end:h,date:[e.date,h.date],timestamp:[e.timestamp,h.timestamp],value:`${e.value} - ${h.value}`},"time"===this.type&&{time:`${e.time} - ${h.time}`})},this.createValueObject=t=>t&&p(t).isValid()?Object.assign({isValid:p(t).isValid(),date:p(t).toDate(),timestamp:p(t).valueOf(),dateObject:{year:p(t).year(),day:p(t).date(),month:p(t).month(),dayOfWeek:p(t).day(),monthFirstDay:p(t).startOf("month").day()},value:p(t).format(this.getFormat())},"time"===this.type&&{time:p(t).format(this.getFormat()),timeObject:{hour:p(t).hour(),minute:p(t).minute(),second:p(t).second()}}):null,this._id=a.UID(),this.label=void 0,this.placeholder=void 0,this.size=o.Size.medium,this.fullWidth=!1,this.required=!1,this.clearable=!1,this.disabled=!1,this.noMargin=!1,this.caption=void 0,this.noCaption=!1,this.captionType=o.Status.default,this.captionError=void 0,this.name=void 0,this.value=void 0,this.type="date",this.format=void 0,this.range=!1,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.showToday=!0,this.disabledDates=void 0}async getValue(){return this.value}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async set(t){this.getPickerElement().set(t)}async setClear(){this.getPickerElement().set(null)}async resetCaption(){this.captionType="default",this.captionError=null}async getInput(){return this.el.querySelector("input")}async isValid(){var t;return(null===(t=this.getValueObject(this.value))||void 0===t?void 0:t.isValid)||!1}getPickerElement(){return this.el.querySelector("bcm-rc-picker")}render(){const{label:t,size:i,captionType:h,required:r,_id:a}=this;return s(e,{class:n("bcm-ui-element bcm-ui-input","tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col",{"tw-max-w-[256px]":!this.fullWidth,"tw-mb-2":!this.noMargin})},t&&s("bcm-label",{size:i,type:h,value:t,required:r,htmlFor:a}),s("bcm-rc-picker",{id:a+"-picker",class:n("w-full tw-flex"),onBcmRCPickerChange:t=>this.onChange(t),disabled:this.disabled,clearable:this.clearable,size:i,placeholder:this.placeholder,error:"error"===this.captionType,type:this.type,format:this.getFormat(),range:this.range,showToday:this.showToday,disabledDates:this.disabledDates,showTime:this.showTime,showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:this.disabledTime}),s(c,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return h(this)}};!function(t,i,s,e){var h,r=arguments.length,a=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(h=t[o])&&(a=(r<3?h(a):r>3?h(i,s,a):h(i,s))||a);r>3&&a&&Object.defineProperty(i,s,a)}([r()],m.prototype,"el",void 0);export{m as bcm_date}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,c as e,h as i,H as s,g as n}from"./p-e037ee2b.js";import{c as r}from"./p-bed627ab.js";import{G as a}from"./p-866d1d29.js";import{B as o}from"./p-a313fba6.js";import{d as h}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-9107380e.js";import"./p-034bbcdd.js";const c=class{constructor(i){t(this,i),this.change=e(this,"bcm-change",7),this._id=a.UID(),this.min=0,this.max=10,this.step=1,this.value=0,this.height="326px",this.name=void 0,this.direction=o.Direction.horizontal,this._prefix=void 0,this._suffix=void 0,this.multiple=!1,this.leftValue=void 0,this.rightValue=void 0,this.leftMin=void 0}connectedCallback(){const t=JSON.parse(this.value);this.value="number"==typeof t?[t]:t,this.value.length>1?(this.leftValue=this.value[0],this.rightValue=this.value[1],this.leftMin=this.min,this.multiple=!0):(this.rightValue=this.value,this.leftMin=this.min-this.step,this.leftValue=this.leftMin,this.multiple=!1),a.createComponent("bcm-tooltip-box",{id:"box-"+this._id,placement:this.direction===o.Direction.horizontal?o.Placement.top:o.Placement.left,color:"blue"})}componentDidLoad(){this.setThumbPosition("right"),this.setThumbPosition("left"),this.multiple||this.hiddenLeftThumb()}async setValue(t){return this.value=t,this.handleChange(),t}async setClear(){return this.value=this.multiple?[this.min,this.max]:this.min,await h(10),Promise.resolve()}async resetCaption(){return await h(10),await h(10),Promise.resolve()}async getValue(){return this.value}syncValues(t,e){const i=e.target.valueAsNumber,s="left"===t?this.rightValue:this.leftValue;"left"===t?(this.leftValue=i>=s?s-1:i,this.getInput(t).valueAsNumber=this.leftValue,this.setThumbPosition("left")):(this.rightValue=i<=s?s+1:i,this.getInput(t).valueAsNumber=this.rightValue,this.setThumbPosition("right"))}handleChange(){this.multiple?(this.getInput("left").valueAsNumber=this.leftValue,this.getInput("right").valueAsNumber=this.rightValue,this.value=[this.leftValue,this.rightValue]):(this.getInput("right").valueAsNumber=this.rightValue,this.value=this.rightValue),this.change.emit(this.value)}setThumbPosition(t){const{min:e,max:i}=this,s=this.el.querySelector("#bcm-range__thumb-range");let n;n=(this.getInput(t).valueAsNumber-e)/(i-e)*100,n=("left"===t?n:100-n)+"%",this.getThumb(t).style[t]=n,s.style[t]=n}hiddenLeftThumb(){const t=this.getThumb("left"),e=this.el.querySelector("#bcm-range__thumb-range");t.classList.add("hidden"),e.style.left=0}getTooltip(t){const e=document.querySelector(`bcm-tooltip-box[id="box-${this._id}"]`);return e.setAttribute("target-id","bcm-range__thumb-"+t+"-"+this._id),e.setAttribute("message",this.getInput(t).valueAsNumber),e}getThumb(t){return this.el.querySelector("#bcm-range__thumb-"+t+"-"+this._id)}getInput(t){return this.el.querySelector("#input-"+t+"-"+this._id)}touchToMove(t){const e=this.multiple&&Math.abs(t-this.leftValue)<Math.abs(t-this.rightValue)?"left":"right";this.getInput(e).valueAsNumber=t,this.syncValues(e,{target:{valueAsNumber:t}}),this.handleChange()}hoverTick(t,e){this.el.querySelector(`#tick-${t}`).classList.toggle("hover",e)}render(){const{min:t,max:e,step:n,leftMin:a,direction:h,height:c}=this,p=r("bcm-range",h);return i(s,{class:p,style:h==o.Direction.vertical&&{height:c}},i("div",{class:"bcm-range__container",style:h==o.Direction.vertical&&{height:"100%",width:c}},i("input",{type:"range",id:`input-left-${this._id}`,min:a,max:e,step:n,onChange:t=>{this.syncValues("left",t),this.handleChange()},onInput:t=>{this.syncValues("left",t),this.getTooltip("left").hide(),this.getTooltip("left").show()},onMouseOver:()=>{this.getThumb("left").classList.add("hover"),this.getTooltip("left").show()},onMouseOut:()=>{this.getThumb("left").classList.remove("hover"),this.getTooltip("left").hide()},value:this.leftValue,class:{single:!this.multiple}}),i("input",{type:"range",id:`input-right-${this._id}`,min:t,max:e,onChange:t=>{this.syncValues("right",t),this.handleChange()},onInput:t=>{this.syncValues("right",t),this.getTooltip("right").hide(),this.getTooltip("right").show()},onMouseOver:()=>{this.getThumb("right").classList.add("hover"),this.getTooltip("right").show()},onMouseOut:()=>{this.getThumb("right").classList.remove("hover"),this.getTooltip("right").hide()},step:n,value:this.rightValue}),i("div",{class:"bcm-range__container-bar"},i("div",{class:"ticks"},i((()=>{const{min:t,max:e,step:s,_prefix:n,_suffix:r}=this,a=[];for(let o=t;o<=e;o+=s)a.push(i("span",{id:"tick-"+o,class:"tick size-1"},i("span",{class:"tick-text",onMouseOver:()=>this.hoverTick(o,!0),onMouseOut:()=>this.hoverTick(o,!1),onClick:()=>this.touchToMove(o)},n,o,r)));return a}),null)),i("div",{class:"bcm-range__container-bar-track"}),i("div",{class:"bcm-range__container-bar-range",id:"bcm-range__thumb-range"}),i("div",{class:"bcm-range__container-bar-thumb left",id:`bcm-range__thumb-left-${this._id}`},i("span",null)),i("div",{class:"bcm-range__container-bar-thumb right",id:`bcm-range__thumb-right-${this._id}`},i("span",null))),i("div",{class:"touch"},i((()=>{const{min:t,max:e,step:s}=this,n=[];for(let r=t;r<=e;r+=s)n.push(i("span",{onMouseOver:()=>this.hoverTick(r,!0),onMouseOut:()=>this.hoverTick(r,!1),onClick:()=>this.touchToMove(r),class:"touch-point"}));return n}),null))))}get el(){return n(this)}};c.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-range{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;width:100%;position:relative;display:block;margin:16px 0}.bcm-range input[type=range]{position:absolute;pointer-events:none;-webkit-appearance:none;z-index:4;height:30px;width:100%;top:-17px;opacity:0}.bcm-range input[type=range].single{display:none}.bcm-range input[type=range]::-webkit-slider-thumb{pointer-events:all;width:30px;height:30px;border-radius:0;border:0 none;background-color:red;-webkit-appearance:none;cursor:pointer}.bcm-range__container-bar{width:calc(100% - 24px);left:12px;position:relative}.bcm-range__container-bar-track{position:absolute;top:-2px;width:100%;height:4px;background-color:var(--bcm-new-ds-color-slate-300);z-index:1}.bcm-range__container-bar-range{position:absolute;top:-2px;left:22.22%;right:22.22%;height:4px;background-color:var(--bcm-new-ds-color-blue-500);z-index:2}.bcm-range__container-bar-thumb{position:absolute;top:0;width:16px;height:16px;background-color:var(--bcm-new-ds-color-blue-500);border-radius:50%;z-index:3;transition:box-shadow 0.2s ease-in-out;display:flex;align-items:center;justify-content:center}.bcm-range__container-bar-thumb>span{display:flex;width:100%;height:100%}.bcm-range__container-bar-thumb.hover{box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1);cursor:pointer}.bcm-range__container-bar-thumb.hidden{display:none}.bcm-range__container-bar-thumb.left{left:22.22222%;transform:translate(-8px, -8px)}.bcm-range__container-bar-thumb.right{right:0%;transform:translate(8px, -8px)}.bcm-range .ticks{position:absolute;z-index:0;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:4px 0;user-select:none}.bcm-range .tick{position:relative;display:flex;justify-content:center;width:1px;color:var(--bcm-new-ds-color-slate-300);cursor:pointer;height:8px;line-height:32px;margin-bottom:8px;z-index:-1;transition:color 0.1s ease-in-out}.bcm-range .tick::before,.bcm-range .tick::after{content:" ";position:absolute;width:1px;height:8px;background-color:var(--bcm-new-ds-color-slate-300);z-index:-1;transition:background-color 0.1s ease-in-out}.bcm-range .tick::before{top:-16px}.bcm-range .tick::after{top:0}.bcm-range .tick.hover{color:var(--bcm-new-ds-color-slate-400)}.bcm-range .tick.hover::before,.bcm-range .tick.hover::after{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-range .touch{position:absolute;width:calc(100% + 48px);left:-24px;top:-17px;opacity:0;height:45px;z-index:2;background-color:transparent;display:flex;flex-direction:row;justify-content:space-between}.bcm-range .touch-point{cursor:pointer;flex:1;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box;background-color:var(--bcm-new-ds-color-slate-300)}.bcm-range .touch-point:hover{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-range .touch::after,.bcm-range .touch::before{content:"";position:absolute;width:24px;height:100%;top:0}.bcm-range .touch::before{left:0}.bcm-range .touch::after{right:0}.bcm-range.vertical{margin:0 16px;padding:12px 0}.bcm-range.vertical .touch{width:calc(100% + 12px);left:-6px;top:-17px}.bcm-range.vertical .touch::after,.bcm-range.vertical .touch::before{width:12px}.bcm-range.vertical .bcm-range__container{transform:rotate(270deg)}.bcm-range.vertical .bcm-range__container .ticks .tick-text{position:absolute;top:0px;width:100%;transform:rotate(90deg)}';export{c as bcm_range}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{h as e,r as t,c as i,H as n,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{G as o,s as c}from"./p-866d1d29.js";import{B as h}from"./p-a313fba6.js";import{d as r,a as l}from"./p-3c7a0345.js";import{c as p}from"./p-197aba37.js";import{L as d}from"./p-3089e9c7.js";import{I as m}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-9107380e.js";import"./p-034bbcdd.js";const u=({customStyle:t,groupContainerClasses:i,onBcmSelect:n,items:a})=>e("div",{class:i,style:t},a.childs&&a.childs.map((t=>e("bcm-checkbox",{id:t.id,name:t.name,color:t.color,checked:t.checked,disabled:t.disabled,readonly:t.readonly,required:t.required,noCaption:t.noCaption,"no-margin":!0,size:t.size,"full-width":t.fullWidth,onClick:e=>{!t.disabled&&!t.readonly&&(n(t.id),e.preventDefault())}},t.slot||t.label)))),{state:x}=p({group:new Map,allChecked:!0,allUnchecked:!0,changeInderminate:{}}),g=e=>c((()=>x.group.get(e)),{}),b=e=>{var t;const i=g(e);let n=!0,a=!0;null===(t=i.childs)||void 0===t||t.map((e=>{e.checked&&(a=!1),!e.checked&&(n=!1)})),i.indeterminateState=n||a?n?"determinate":"uncheck":"indeterminate"},f=g;const y=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.groupCheckedList=i(this,"bcm-group-checked-list",7),this._id=o.UID(),this.direction=h.Direction.horizontal,this.items=[],this.indeterminate=!1,this.name=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.gap=void 0,this.defaultValue=void 0,this.fullWidth=!1,this.optionType="default",this.buttonStyle="solid",this.size=h.Size.medium,this.caption=void 0,this.noCaption=!1,this.captionType=h.Status.default,this.tick={}}componentDidLoad(){this.initState()}disconnectedCallback(){Promise.resolve(x.group.delete(this._id))}componentShouldUpdate(e,t,i){"tick"==i&&e!==t&&c((()=>f(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e)),this.getOptions().indexOf(i)>-1&&e!==t&&this.initState()}getOptions(){return c((()=>Object.keys(x.group.get(this._id))),[])}async initState(){const{fullWidth:e,optionType:t,buttonStyle:i,size:n,noCaption:a,defaultValue:s,label:h,required:r,captionType:l,hidden:p,direction:d,indeterminate:m,gap:u,items:g}=this,b=s&&("string"==typeof s?JSON.parse(s):s),f=g.length>0?g:await this.getCheckboxes();await(async({fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,el:s,id:h,label:r,required:l,captionType:p,hidden:d,direction:m,childs:u,indeterminate:g,gap:b,noCaption:f})=>{s&&x.group.set(h,{fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,label:r,required:l,captionType:p,hidden:d,direction:m,indeterminate:g,gap:b,noCaption:f,childs:null==u?void 0:u.map((e=>(e.checked&&(x.allUnchecked=!1),!e.checked&&(x.allChecked=!1),t&&(e.optionType=t),i&&(e.buttonStyle=i),n&&(e.size=n),a&&a.find((t=>t===e.name))&&(e.checked=!0),e.noCaption=f,{id:e.id||o.UID(),checked:e.checked||!1,name:e.name,size:e.size,buttonStyle:e.buttonStyle,optionType:e.optionType,style:e.style,noCaption:e.noCaption,color:e.color,disabled:e.disabled,readonly:e.readonly,label:e.label||e.name,slot:e.slot||c((()=>e.querySelector(".slot").textContent),e.textContent),required:e.required||l,el:e,captionType:p,hidden:d}))),indeterminateState:x.allChecked||x.allUnchecked?x.allChecked?"determinate":"uncheck":"indeterminate"})})({id:this._id,el:this.el,indeterminate:m,fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:b,label:h,noCaption:a,required:r,captionType:l,hidden:p,gap:u,direction:d,childs:f});const y=this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);y&&y.innerHTML&&(y.innerHTML=""),this.value=await this.getValue()}async markForCheck(){await r(10),this.tick=o.UID()}async onBcmFocus(){const e=this.getCheckboxes();e.length>0&&e[0].onBcmFocus()}async onBcmBlur(){this.el.blur()}async setClear(){return null===(t=g(e=this._id).childs)||void 0===t||t.forEach((e=>{e.checked=!1})),b(e),await r(10),this.getCheckboxes().forEach((e=>{e.setClear()})),this.markForCheck(),await r(10),Promise.resolve();var e,t}async resetCaption(){return await r(10),this.getCheckboxes().forEach((e=>{e.resetCaption()})),await r(10),Promise.resolve()}async set(e){Array.isArray(e)&&await this.check(e,!0,!0)}async get(){const e=await this.getCheckedList()&&Object.keys(await this.getCheckedList());return e.length>0?e:[]}async check(e,t=!0,i=!1){((e,t,i,n)=>{var a;const s=t&&("string"==typeof t?JSON.parse(t):t);null===(a=g(e).childs)||void 0===a||a.forEach((e=>{if(s){const t=s.find((t=>t===e.name||t.name===e.name));t?"object"==typeof t?Object.keys(t).map((n=>{e.checked="checked"===n?t[n]:i})):e.checked=i:n&&(e.checked=!1)}else e.checked=!1})),b(e)})(this._id,e,t,i),this.markForCheck()}async getValue(e){return Promise.resolve(((e,t)=>{var i;const n=g(e);let a={};return null===(i=n.childs)||void 0===i||i.map((e=>{t?e.name===t&&(a[e.name]={value:!!e.checked,name:e.name}):a[e.name]={value:!!e.checked,name:e.name}})),a})(this._id,e))}async getCheckedList(){return(e=>{var t;const i=g(e);let n={};return null===(t=i.childs)||void 0===t||t.map((e=>{!0===e.checked&&(n[e.name]={value:!!e.checked,name:e.name})})),n})(this._id)}handleItemsChange(){this.initState()}getCheckboxes(){return l(this.el,"bcm-checkbox:not(#bcm-indeterminate-element)")}async getCheckbox(e){const t=this.el.querySelector(`bcm-checkbox[id="${e}"]`);if(t){const e=t.name,i=await this.getValue(e);return{element:t,event:c((()=>i[e]),null)}}return{}}async indeterminateClick(){(e=>{var t;const i=g(e);if(!i.disabled){let n=!0;"determinate"===i.indeterminateState&&(n=!1),null===(t=g(e).childs)||void 0===t||t.map((e=>{e.checked=n})),b(e)}})(this._id),this.markForCheck()}async changeCheckBox(e){var t,i;null===(i=g((t={id:this._id,childId:e}).id).childs)||void 0===i||i.map((e=>{e.checked=e.id===t.childId?!e.checked:e.checked})),b(t.id),this.markForCheck(),await r(10),this.value=await this.getValue(),this.change.emit({value:this.value,changed:Object.assign({},await this.getCheckbox(e))}),this.groupCheckedList.emit(await this.getCheckedList())}getItems(){return f(this._id)}render(){const t=this.getItems(),{disabled:i,captionType:a,label:o,indeterminate:c,indeterminateState:h,required:r,direction:l,optionType:p,hidden:m,fullWidth:x,gap:g}=t,b=s("bcm-checkbox-group",l,p,{hidden:m,"full-width":x}),f=s("bcm-checkbox-group__container",p,{[l]:"default"===p,indeterminate:c,hidden:m,"full-width":x});return e(n,{class:b},e("span",{hidden:!0,id:`bcm-checkbox-group__items-${this._id}`},e("slot",null)),e("div",{class:"bcm-checkbox-group__label"},o&&e("div",null,e(d,{size:this.size,type:a,value:o,required:r}))),c&&e("bcm-checkbox",{onClick:e=>{this.indeterminateClick(),e.preventDefault()},"no-caption":!0,id:"bcm-indeterminate-element",indeterminate:h,disabled:i},"Check All"),e(u,{items:t,groupContainerClasses:f,customStyle:g&&{gap:g},onBcmSelect:e=>this.changeCheckBox(e)}))}get el(){return a(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);s>3&&o&&Object.defineProperty(t,i,o)})([m()],y.prototype,"el",void 0),y.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}';export{y as bcm_checkbox_group}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r,h as e}from"./p-e037ee2b.js";const s=class{constructor(e){r(this,e)}render(){return e("slot",null)}};s.style="";export{s as bcm_treeview_group}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,f as e,h as s,H as r,g as i}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-866d1d29.js";import"./p-9551e2a4.js";import"./p-6b5ed4d8.js";import"./p-85f028bf.js";import"./p-5ae0a59b.js";import"./p-a313fba6.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9107380e.js";const p=class{constructor(e){t(this,e),this._id=o.UID(),this.label="",this.placeholder="",this.value="",this.required=!1,this.disabled=!1,this.readonly=!1,this.fullWidth=!1}handleChange(t){this.value=t,this.getInputElement().setValue(t),e(this.el)}getInputElement(){return this.el.querySelector("bcm-input")}getPickerElement(){return document.querySelector("#"+this._id+"-picker")}handleInputChanged(t){this.getPickerElement().color=t.detail}eyeDropper(){(new window.EyeDropper).open().then((t=>{this.handleChange(t.sRGBHex)})).catch((t=>{"NotAllowedError"===t.name?console.log("Permission to access sensor was denied."):"NotSupportedError"===t.name&&console.log("Sensor not supported.")}))}isEyeDropperSupported(){return"undefined"!=typeof window&&"EyeDropper"in window}render(){return s(r,{class:"tw-block"},s("bcm-input",{id:this._id+"-color",fullWidth:this.fullWidth,label:this.label,placeholder:this.placeholder,type:"text","onBcm-change":t=>this.handleInputChanged(t)},s("i",{slot:"prefix",class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100",style:{backgroundColor:this.value}}),this.isEyeDropperSupported()&&s("i",{slot:"suffix",class:"far fa-eye-dropper",onClick:()=>this.eyeDropper()})),s("bcm-linked",{targetId:this._id+"-color-container"},s("bcm-colorful",{id:this._id+"-picker",color:this.value,onBcmChange:t=>this.handleChange(t.detail)})))}get el(){return i(this)}};export{p as bcm_color_input}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- var t,n;function i(){return t.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function o(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,n){var i,e=[];for(i=0;i<t.length;++i)e.push(n(t[i],i));return e}function a(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function f(t,n){for(var i in n)a(n,i)&&(t[i]=n[i]);return a(n,"toString")&&(t.toString=n.toString),a(n,"valueOf")&&(t.valueOf=n.valueOf),t}function d(t,n,i,e){return wn(t,n,i,e,!0).utc()}function c(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function l(t){if(null==t._isValid){var i=c(t),e=n.call(i.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);if(t._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var n=d(NaN);return null!=t?f(c(n),t):c(n).userInvalidated=!0,n}n=Array.prototype.some?Array.prototype.some:function(t){for(var n=Object(this),i=n.length>>>0,e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var v=i.momentProperties=[];function Y(t,n){var i,e,r;if(s(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),s(n._i)||(t._i=n._i),s(n._f)||(t._f=n._f),s(n._l)||(t._l=n._l),s(n._strict)||(t._strict=n._strict),s(n._tzm)||(t._tzm=n._tzm),s(n._isUTC)||(t._isUTC=n._isUTC),s(n._offset)||(t._offset=n._offset),s(n._pf)||(t._pf=c(n)),s(n._locale)||(t._locale=n._locale),v.length>0)for(i=0;i<v.length;i++)s(r=n[e=v[i]])||(t[e]=r);return t}var M=!1;function D(t){Y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,i.updateOffset(this),M=!1)}function S(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function g(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function y(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=g(n)),i}function w(t,n,i){var e,r=Math.min(t.length,n.length),s=Math.abs(t.length-n.length),u=0;for(e=0;e<r;e++)(i&&t[e]!==n[e]||!i&&y(t[e])!==y(n[e]))&&u++;return u+s}function p(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,n){var e=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),e){for(var r,s=[],u=0;u<arguments.length;u++){if(r="","object"==typeof arguments[u]){for(var o in r+="\n["+u+"] ",arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[u];s.push(r)}p(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),e=!1}return n.apply(this,arguments)}),n)}var b,T={};function _(t,n){null!=i.deprecationHandler&&i.deprecationHandler(t,n),T[t]||(p(n),T[t]=!0)}function H(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function G(t,n){var i,e=f({},t);for(i in n)a(n,i)&&(r(t[i])&&r(n[i])?(e[i]={},f(e[i],t[i]),f(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)a(t,i)&&!a(n,i)&&r(t[i])&&(e[i]=f({},e[i]));return e}function N(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,b=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)a(t,n)&&i.push(n);return i};var W={};function E(t,n){var i=t.toLowerCase();W[i]=W[i+"s"]=W[n]=t}function x(t){return"string"==typeof t?W[t]||W[t.toLowerCase()]:void 0}function F(t){var n,i,e={};for(i in t)a(t,i)&&(n=x(i))&&(e[n]=t[i]);return e}var O={};function L(t,n){O[t]=n}function A(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},I={};function C(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(I[t]=r),n&&(I[n[0]]=function(){return A(r.apply(this,arguments),n[1],n[2])}),i&&(I[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,n){return t.isValid()?(n=$(n,t.localeData()),R[n]=R[n]||function(t){var n,i,e,r=t.match(j);for(n=0,i=r.length;n<i;n++)r[n]=I[r[n]]?I[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=H(r[e])?r[e].call(n,t):r[e];return s}}(n),R[n](t)):t.localeData().invalidDate()}function $(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(Z.lastIndex=0;i>=0&&Z.test(t);)t=t.replace(Z,e),Z.lastIndex=0,i-=1;return t}var P=/\d/,z=/\d\d/,q=/\d{3}/,J=/\d{4}/,Q=/[+-]?\d{6}/,X=/\d\d?/,B=/\d\d\d\d?/,K=/\d\d\d\d\d\d?/,V=/\d{1,3}/,tt=/\d{1,4}/,nt=/[+-]?\d{1,6}/,it=/\d+/,et=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot={};function ht(t,n,i){ot[t]=H(n)?n:function(t){return t&&i?i:n}}function at(t,n){return a(ot,t)?ot[t](n._strict,n._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function ct(t,n){var i,e=n;for("string"==typeof t&&(t=[t]),u(n)&&(e=function(t,i){i[n]=y(t)}),i=0;i<t.length;i++)dt[t[i]]=e}function lt(t,n){ct(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function mt(t,n,i){null!=n&&a(dt,t)&&dt[t](n,i._a,i,t)}function vt(t){return Yt(t)?366:365}function Yt(t){return t%4==0&&t%100!=0||t%400==0}C("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),C(0,["YY",2],0,(function(){return this.year()%100})),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),E("year","y"),L("year",1),ht("Y",et),ht("YY",X,z),ht("YYYY",tt,J),ht("YYYYY",nt,Q),ht("YYYYYY",nt,Q),ct(["YYYYY","YYYYYY"],0),ct("YYYY",(function(t,n){n[0]=2===t.length?i.parseTwoDigitYear(t):y(t)})),ct("YY",(function(t,n){n[0]=i.parseTwoDigitYear(t)})),ct("Y",(function(t,n){n[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var Mt,Dt=St("FullYear",!0);function St(t,n){return function(e){return null!=e?(yt(this,t,e),i.updateOffset(this,n),this):gt(this,t)}}function gt(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function yt(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&Yt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),wt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+n](i))}function wt(t,n){if(isNaN(t)||isNaN(n))return NaN;var i=(n%12+12)%12;return t+=(n-i)/12,1===i?Yt(t)?29:28:31-i%7%2}Mt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},C("M",["MM",2],"Mo",(function(){return this.month()+1})),C("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),C("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),E("month","M"),L("month",8),ht("M",X),ht("MM",X,z),ht("MMM",(function(t,n){return n.monthsShortRegex(t)})),ht("MMMM",(function(t,n){return n.monthsRegex(t)})),ct(["M","MM"],(function(t,n){n[1]=y(t)-1})),ct(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[1]=r:c(i).invalidMonth=t}));var pt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Tt(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=d([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=Mt.call(this._shortMonthsParse,u))?r:null:-1!==(r=Mt.call(this._longMonthsParse,u))?r:null:"MMM"===n?-1!==(r=Mt.call(this._shortMonthsParse,u))||-1!==(r=Mt.call(this._longMonthsParse,u))?r:null:-1!==(r=Mt.call(this._longMonthsParse,u))||-1!==(r=Mt.call(this._shortMonthsParse,u))?r:null}function _t(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=y(n);else if(!u(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),wt(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function Ht(t){return null!=t?(_t(this,t),i.updateOffset(this,!0),this):gt(this,"Month")}var Gt=ut,Nt=ut;function Wt(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=d([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=ft(e[n]),r[n]=ft(r[n]);for(n=0;n<24;n++)s[n]=ft(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Et(t,n,i,e,r,s,u){var o;return t<100&&t>=0?(o=new Date(t+400,n,i,e,r,s,u),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,n,i,e,r,s,u),o}function xt(t){var n;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)}else n=new Date(Date.UTC.apply(null,arguments));return n}function Ft(t,n,i){var e=7+n-i;return-(7+xt(t,0,e).getUTCDay()-n)%7+e-1}function Ot(t,n,i,e,r){var s,u,o=1+7*(n-1)+(7+i-e)%7+Ft(t,e,r);return o<=0?u=vt(s=t-1)+o:o>vt(t)?(s=t+1,u=o-vt(t)):(s=t,u=o),{year:s,dayOfYear:u}}function Lt(t,n,i){var e,r,s=Ft(t.year(),n,i),u=Math.floor((t.dayOfYear()-s-1)/7)+1;return u<1?e=u+At(r=t.year()-1,n,i):u>At(t.year(),n,i)?(e=u-At(t.year(),n,i),r=t.year()+1):(r=t.year(),e=u),{week:e,year:r}}function At(t,n,i){var e=Ft(t,n,i),r=Ft(t+1,n,i);return(vt(t)-e+r)/7}function jt(t,n){return t.slice(n,7).concat(t.slice(0,n))}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),L("week",5),L("isoWeek",5),ht("w",X),ht("ww",X,z),ht("W",X),ht("WW",X,z),lt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=y(t)})),C("d",0,"do","day"),C("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),C("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),C("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ht("d",X),ht("e",X),ht("E",X),ht("dd",(function(t,n){return n.weekdaysMinRegex(t)})),ht("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),ht("dddd",(function(t,n){return n.weekdaysRegex(t)})),lt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:c(i).invalidWeekday=t})),lt(["d","e","E"],(function(t,n,i,e){n[e]=y(t)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ct(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=d([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=Mt.call(this._weekdaysParse,u))?r:null:"ddd"===n?-1!==(r=Mt.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=Mt.call(this._minWeekdaysParse,u))?r:null:"dddd"===n?-1!==(r=Mt.call(this._weekdaysParse,u))||-1!==(r=Mt.call(this._shortWeekdaysParse,u))||-1!==(r=Mt.call(this._minWeekdaysParse,u))?r:null:"ddd"===n?-1!==(r=Mt.call(this._shortWeekdaysParse,u))||-1!==(r=Mt.call(this._weekdaysParse,u))||-1!==(r=Mt.call(this._minWeekdaysParse,u))?r:null:-1!==(r=Mt.call(this._minWeekdaysParse,u))||-1!==(r=Mt.call(this._weekdaysParse,u))||-1!==(r=Mt.call(this._shortWeekdaysParse,u))?r:null}var Ut=ut,$t=ut,Pt=ut;function zt(){function t(t,n){return n.length-t.length}var n,i,e,r,s,u=[],o=[],h=[],a=[];for(n=0;n<7;n++)i=d([2e3,1]).day(n),e=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),s=this.weekdays(i,""),u.push(e),o.push(r),h.push(s),a.push(e),a.push(r),a.push(s);for(u.sort(t),o.sort(t),h.sort(t),a.sort(t),n=0;n<7;n++)o[n]=ft(o[n]),h[n]=ft(h[n]),a[n]=ft(a[n]);this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function qt(){return this.hours()%12||12}function Jt(t,n){C(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function Qt(t,n){return n._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,qt),C("k",["kk",2],0,(function(){return this.hours()||24})),C("hmm",0,0,(function(){return""+qt.apply(this)+A(this.minutes(),2)})),C("hmmss",0,0,(function(){return""+qt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),C("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),C("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),E("hour","h"),L("hour",13),ht("a",Qt),ht("A",Qt),ht("H",X),ht("h",X),ht("k",X),ht("HH",X,z),ht("hh",X,z),ht("kk",X,z),ht("hmm",B),ht("hmmss",K),ht("Hmm",B),ht("Hmmss",K),ct(["H","HH"],3),ct(["k","kk"],(function(t,n){var i=y(t);n[3]=24===i?0:i})),ct(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),ct(["h","hh"],(function(t,n,i){n[3]=y(t),c(i).bigHour=!0})),ct("hmm",(function(t,n,i){var e=t.length-2;n[3]=y(t.substr(0,e)),n[4]=y(t.substr(e)),c(i).bigHour=!0})),ct("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[3]=y(t.substr(0,e)),n[4]=y(t.substr(e,2)),n[5]=y(t.substr(r)),c(i).bigHour=!0})),ct("Hmm",(function(t,n){var i=t.length-2;n[3]=y(t.substr(0,i)),n[4]=y(t.substr(i))})),ct("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[3]=y(t.substr(0,i)),n[4]=y(t.substr(i,2)),n[5]=y(t.substr(e))}));var Xt,Bt=St("Hours",!0),Kt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:kt,monthsShort:bt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:It,weekdaysShort:Rt,meridiemParse:/[ap]\.?m?\.?/i},Vt={},tn={};function nn(t){return t?t.toLowerCase().replace("_","-"):t}function en(t){var n=null;if(!Vt[t]&&"undefined"!=typeof module&&module&&module.exports)try{n=Xt._abbr,require("./locale/"+t),rn(n)}catch(t){}return Vt[t]}function rn(t,n){var i;return t&&((i=s(n)?un(t):sn(t,n))?Xt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Xt._abbr}function sn(t,n){if(null!==n){var i,e=Kt;if(n.abbr=t,null!=Vt[t])_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=Vt[t]._config;else if(null!=n.parentLocale)if(null!=Vt[n.parentLocale])e=Vt[n.parentLocale]._config;else{if(null==(i=en(n.parentLocale)))return tn[n.parentLocale]||(tn[n.parentLocale]=[]),tn[n.parentLocale].push({name:t,config:n}),null;e=i._config}return Vt[t]=new N(G(e,n)),tn[t]&&tn[t].forEach((function(t){sn(t.name,t.config)})),rn(t),Vt[t]}return delete Vt[t],null}function un(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Xt;if(!e(t)){if(n=en(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=nn(t[s]).split("-")).length,i=(i=nn(t[s+1]))?i.split("-"):null;n>0;){if(e=en(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&w(r,i,!0)>=n-1)break;n--}s++}return Xt}(t)}function on(t){var n,i=t._a;return i&&-2===c(t).overflow&&(n=i[1]<0||i[1]>11?1:i[2]<1||i[2]>wt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,c(t)._overflowDayOfYear&&(n<0||n>2)&&(n=2),c(t)._overflowWeeks&&-1===n&&(n=7),c(t)._overflowWeekday&&-1===n&&(n=8),c(t).overflow=n),t}function hn(t,n,i){return null!=t?t:null!=n?n:i}function an(t){var n,e,r,s,u,o=[];if(!t._d){for(r=function(t){var n=new Date(i.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var n,i,e,r,s,u,o,h;if(null!=(n=t._w).GG||null!=n.W||null!=n.E)s=1,u=4,i=hn(n.GG,t._a[0],Lt(pn(),1,4).year),e=hn(n.W,1),((r=hn(n.E,1))<1||r>7)&&(h=!0);else{s=t._locale._week.dow,u=t._locale._week.doy;var a=Lt(pn(),s,u);i=hn(n.gg,t._a[0],a.year),e=hn(n.w,a.week),null!=n.d?((r=n.d)<0||r>6)&&(h=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(h=!0)):r=s}e<1||e>At(i,s,u)?c(t)._overflowWeeks=!0:null!=h?c(t)._overflowWeekday=!0:(o=Ot(i,e,r,s,u),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(u=hn(t._a[0],r[0]),(t._dayOfYear>vt(u)||0===t._dayOfYear)&&(c(t)._overflowDayOfYear=!0),e=xt(u,0,t._dayOfYear),t._a[1]=e.getUTCMonth(),t._a[2]=e.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=r[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?xt:Et).apply(null,o),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(c(t).weekdayMismatch=!0)}}var fn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cn=/Z|[+-]\d\d(?::?\d\d)?/,ln=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vn=/^\/?Date\((\-?\d+)/i;function Yn(t){var n,i,e,r,s,u,o=t._i,h=fn.exec(o)||dn.exec(o);if(h){for(c(t).iso=!0,n=0,i=ln.length;n<i;n++)if(ln[n][1].exec(h[1])){r=ln[n][0],e=!1!==ln[n][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(n=0,i=mn.length;n<i;n++)if(mn[n][1].exec(h[3])){s=(h[2]||" ")+mn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(h[4]){if(!cn.exec(h[4]))return void(t._isValid=!1);u="Z"}t._f=r+(s||"")+(u||""),gn(t)}else t._isValid=!1}var Mn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Sn(t){var n,i,e,r,s,u,o,h,a=Mn.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(a){var f=(n=a[3],i=a[2],e=a[5],r=a[6],s=a[7],u=[(o=a[4],h=parseInt(o,10),h<=49?2e3+h:h<=999?1900+h:h),bt.indexOf(n),parseInt(i,10),parseInt(e,10),parseInt(r,10)],s&&u.push(parseInt(s,10)),u);if(!function(t,n,i){return!t||Rt.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(c(i).weekdayMismatch=!0,i._isValid=!1,!1)}(a[1],f,t))return;t._a=f,t._tzm=function(t,n,i){if(t)return Dn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(a[8],a[9],a[10]),t._d=xt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),c(t).rfc2822=!0}else t._isValid=!1}function gn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],c(t).empty=!0;var n,e,r,s,u,o=""+t._i,h=o.length,a=0;for(r=$(t._f,t._locale).match(j)||[],n=0;n<r.length;n++)(e=(o.match(at(s=r[n],t))||[])[0])&&((u=o.substr(0,o.indexOf(e))).length>0&&c(t).unusedInput.push(u),o=o.slice(o.indexOf(e)+e.length),a+=e.length),I[s]?(e?c(t).empty=!1:c(t).unusedTokens.push(s),mt(s,e,t)):t._strict&&!e&&c(t).unusedTokens.push(s);c(t).charsLeftOver=h-a,o.length>0&&c(t).unusedInput.push(o),t._a[3]<=12&&!0===c(t).bigHour&&t._a[3]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[3]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[3],t._meridiem),an(t),on(t)}else Sn(t);else Yn(t)}function yn(t){var n=t._i,a=t._f;return t._locale=t._locale||un(t._l),null===n||void 0===a&&""===n?m({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),S(n)?new D(on(n)):(o(n)?t._d=n:e(a)?function(t){var n,i,e,r,s;if(0===t._f.length)return c(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)s=0,n=Y({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],gn(n),l(n)&&(s+=c(n).charsLeftOver,s+=10*c(n).unusedTokens.length,c(n).score=s,(null==e||s<e)&&(e=s,i=n));f(t,i||n)}(t):a?gn(t):function(t){var n=t._i;s(n)?t._d=new Date(i.now()):o(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=vn.exec(t._i);null===n?(Yn(t),!1===t._isValid&&(delete t._isValid,Sn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):e(n)?(t._a=h(n.slice(0),(function(t){return parseInt(t,10)})),an(t)):r(n)?function(t){if(!t._d){var n=F(t._i);t._a=h([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),an(t)}}(t):u(n)?t._d=new Date(n):i.createFromInputFallback(t)}(t),l(t)||(t._d=null),t))}function wn(t,n,i,s,u){var o,h={};return!0!==i&&!1!==i||(s=i,i=void 0),(r(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(t.hasOwnProperty(n))return!1;return!0}(t)||e(t)&&0===t.length)&&(t=void 0),h._isAMomentObject=!0,h._useUTC=h._isUTC=u,h._l=i,h._i=t,h._f=n,h._strict=s,(o=new D(on(yn(h))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function pn(t,n,i,e){return wn(t,n,i,e,!1)}i.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var kn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=pn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),bn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=pn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Tn(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return pn();for(i=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][t](i)||(i=n[r]);return i}var _n=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Hn(t){var n=F(t),i=n.year||0,e=n.quarter||0,r=n.month||0,s=n.week||n.isoWeek||0,u=n.day||0,o=n.hour||0,h=n.minute||0,a=n.second||0,f=n.millisecond||0;this._isValid=function(t){for(var n in t)if(-1===Mt.call(_n,n)||null!=t[n]&&isNaN(t[n]))return!1;for(var i=!1,e=0;e<_n.length;++e)if(t[_n[e]]){if(i)return!1;parseFloat(t[_n[e]])!==y(t[_n[e]])&&(i=!0)}return!0}(n),this._milliseconds=+f+1e3*a+6e4*h+1e3*o*60*60,this._days=+u+7*s,this._months=+r+3*e+12*i,this._data={},this._locale=un(),this._bubble()}function Gn(t){return t instanceof Hn}function Nn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Wn(t,n){C(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+A(~~(t/60),2)+n+A(~~t%60,2)}))}Wn("Z",":"),Wn("ZZ",""),ht("Z",st),ht("ZZ",st),ct(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=xn(st,t)}));var En=/([\+\-]|\d\d)/gi;function xn(t,n){var i=(n||"").match(t);if(null===i)return null;var e=((i[i.length-1]||[])+"").match(En)||["-",0,0],r=60*e[1]+y(e[2]);return 0===r?0:"+"===e[0]?r:-r}function Fn(t,n){var e,r;return n._isUTC?(e=n.clone(),r=(S(t)||o(t)?t.valueOf():pn(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+r),i.updateOffset(e,!1),e):pn(t).local()}function On(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ln(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var An=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,jn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zn(t,n){var i,e,r,s,o,h,f=t,d=null;return Gn(t)?f={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(f={},n?f[n]=t:f.milliseconds=t):(d=An.exec(t))?(i="-"===d[1]?-1:1,f={y:0,d:y(d[2])*i,h:y(d[3])*i,m:y(d[4])*i,s:y(d[5])*i,ms:y(Nn(1e3*d[6]))*i}):(d=jn.exec(t))?f={y:Rn(d[2],i="-"===d[1]?-1:1),M:Rn(d[3],i),w:Rn(d[4],i),d:Rn(d[5],i),h:Rn(d[6],i),m:Rn(d[7],i),s:Rn(d[8],i)}:null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(s=pn(f.from),o=pn(f.to),r=s.isValid()&&o.isValid()?(o=Fn(o,s),s.isBefore(o)?h=In(s,o):((h=In(o,s)).milliseconds=-h.milliseconds,h.months=-h.months),h):{milliseconds:0,months:0},(f={}).ms=r.milliseconds,f.M=r.months),e=new Hn(f),Gn(t)&&a(t,"_locale")&&(e._locale=t._locale),e}function Rn(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function In(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function Cn(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(_(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),Un(this,Zn(i="string"==typeof i?+i:i,e),t),this}}function Un(t,n,e,r){var s=n._milliseconds,u=Nn(n._days),o=Nn(n._months);t.isValid()&&(r=null==r||r,o&&_t(t,gt(t,"Month")+o*e),u&&yt(t,"Date",gt(t,"Date")+u*e),s&&t._d.setTime(t._d.valueOf()+s*e),r&&i.updateOffset(t,u||o))}Zn.fn=Hn.prototype,Zn.invalid=function(){return Zn(NaN)};var $n=Cn(1,"add"),Pn=Cn(-1,"subtract");function zn(t,n){var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function qn(t){var n;return void 0===t?this._locale._abbr:(null!=(n=un(t))&&(this._locale=n),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jn=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Qn(){return this._locale}var Xn=1e3,Bn=6e4,Kn=36e5,Vn=126227808e5;function ti(t,n){return(t%n+n)%n}function ni(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-Vn:new Date(t,n,i).valueOf()}function ii(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-Vn:Date.UTC(t,n,i)}function ei(t,n){C(0,[t,t.length],0,n)}function ri(t,n,i,e,r){var s;return null==t?Lt(this,e,r).year:(n>(s=At(t,e,r))&&(n=s),si.call(this,t,n,i,e,r))}function si(t,n,i,e,r){var s=Ot(t,n,i,e,r),u=xt(s.year,0,s.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}C(0,["gg",2],0,(function(){return this.weekYear()%100})),C(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ht("G",et),ht("g",et),ht("GG",X,z),ht("gg",X,z),ht("GGGG",tt,J),ht("gggg",tt,J),ht("GGGGG",nt,Q),ht("ggggg",nt,Q),lt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=y(t)})),lt(["gg","GG"],(function(t,n,e,r){n[r]=i.parseTwoDigitYear(t)})),C("Q",0,"Qo","quarter"),E("quarter","Q"),L("quarter",7),ht("Q",P),ct("Q",(function(t,n){n[1]=3*(y(t)-1)})),C("D",["DD",2],"Do","date"),E("date","D"),L("date",9),ht("D",X),ht("DD",X,z),ht("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),ct(["D","DD"],2),ct("Do",(function(t,n){n[2]=y(t.match(X)[0])}));var ui=St("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),L("dayOfYear",4),ht("DDD",V),ht("DDDD",q),ct(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=y(t)})),C("m",["mm",2],0,"minute"),E("minute","m"),L("minute",14),ht("m",X),ht("mm",X,z),ct(["m","mm"],4);var oi=St("Minutes",!1);C("s",["ss",2],0,"second"),E("second","s"),L("second",15),ht("s",X),ht("ss",X,z),ct(["s","ss"],5);var hi,ai=St("Seconds",!1);for(C("S",0,0,(function(){return~~(this.millisecond()/100)})),C(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),C(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),C(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),C(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),C(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),C(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),E("millisecond","ms"),L("millisecond",16),ht("S",V,P),ht("SS",V,z),ht("SSS",V,q),hi="SSSS";hi.length<=9;hi+="S")ht(hi,it);function fi(t,n){n[6]=y(1e3*("0."+t))}for(hi="S";hi.length<=9;hi+="S")ct(hi,fi);var di=St("Milliseconds",!1);C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var ci=D.prototype;function li(t){return t}ci.add=$n,ci.calendar=function(t,n){var e=t||pn(),r=Fn(e,this).startOf("day"),s=i.calendarFormat(this,r)||"sameElse",u=n&&(H(n[s])?n[s].call(this,e):n[s]);return this.format(u||this.localeData().calendar(s,this,pn(e)))},ci.clone=function(){return new D(this)},ci.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=Fn(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=x(n)){case"year":s=zn(this,e)/12;break;case"month":s=zn(this,e);break;case"quarter":s=zn(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:g(s)},ci.endOf=function(t){var n;if(void 0===(t=x(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?ii:ni;switch(t){case"year":n=e(this.year()+1,0,1)-1;break;case"quarter":n=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=e(this.year(),this.month()+1,1)-1;break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=Kn-ti(n+(this._isUTC?0:this.utcOffset()*Bn),Kn)-1;break;case"minute":n=this._d.valueOf(),n+=Bn-ti(n,Bn)-1;break;case"second":n=this._d.valueOf(),n+=Xn-ti(n,Xn)-1}return this._d.setTime(n),i.updateOffset(this,!0),this},ci.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var n=U(this,t);return this.localeData().postformat(n)},ci.from=function(t,n){return this.isValid()&&(S(t)&&t.isValid()||pn(t).isValid())?Zn({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},ci.fromNow=function(t){return this.from(pn(),t)},ci.to=function(t,n){return this.isValid()&&(S(t)&&t.isValid()||pn(t).isValid())?Zn({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},ci.toNow=function(t){return this.to(pn(),t)},ci.get=function(t){return H(this[t=x(t)])?this[t]():this},ci.invalidAt=function(){return c(this).overflow},ci.isAfter=function(t,n){var i=S(t)?t:pn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=x(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},ci.isBefore=function(t,n){var i=S(t)?t:pn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=x(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},ci.isBetween=function(t,n,i,e){var r=S(t)?t:pn(t),s=S(n)?n:pn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},ci.isSame=function(t,n){var i,e=S(t)?t:pn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=x(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},ci.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},ci.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},ci.isValid=function(){return l(this)},ci.lang=Jn,ci.locale=qn,ci.localeData=Qn,ci.max=bn,ci.min=kn,ci.parsingFlags=function(){return f({},c(this))},ci.set=function(t,n){if("object"==typeof t)for(var i=function(t){var n=[];for(var i in t)n.push({unit:i,priority:O[i]});return n.sort((function(t,n){return t.priority-n.priority})),n}(t=F(t)),e=0;e<i.length;e++)this[i[e].unit](t[i[e].unit]);else if(H(this[t=x(t)]))return this[t](n);return this},ci.startOf=function(t){var n;if(void 0===(t=x(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?ii:ni;switch(t){case"year":n=e(this.year(),0,1);break;case"quarter":n=e(this.year(),this.month()-this.month()%3,1);break;case"month":n=e(this.year(),this.month(),1);break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=e(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=ti(n+(this._isUTC?0:this.utcOffset()*Bn),Kn);break;case"minute":n=this._d.valueOf(),n-=ti(n,Bn);break;case"second":n=this._d.valueOf(),n-=ti(n,Xn)}return this._d.setTime(n),i.updateOffset(this,!0),this},ci.subtract=Pn,ci.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ci.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ci.toDate=function(){return new Date(this.valueOf())},ci.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ci.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",n="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z");var i="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},ci.toJSON=function(){return this.isValid()?this.toISOString():null},ci.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ci.unix=function(){return Math.floor(this.valueOf()/1e3)},ci.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ci.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ci.year=Dt,ci.isLeapYear=function(){return Yt(this.year())},ci.weekYear=function(t){return ri.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ci.isoWeekYear=function(t){return ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ci.quarter=ci.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ci.month=Ht,ci.daysInMonth=function(){return wt(this.year(),this.month())},ci.week=ci.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},ci.isoWeek=ci.isoWeeks=function(t){var n=Lt(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},ci.weeksInYear=function(){var t=this.localeData()._week;return At(this.year(),t.dow,t.doy)},ci.isoWeeksInYear=function(){return At(this.year(),1,4)},ci.date=ui,ci.day=ci.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},ci.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},ci.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},ci.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},ci.hour=ci.hours=Bt,ci.minute=ci.minutes=oi,ci.second=ci.seconds=ai,ci.millisecond=ci.milliseconds=di,ci.utcOffset=function(t,n,e){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=xn(st,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&n&&(r=On(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!n||this._changeInProgress?Un(this,Zn(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:On(this)},ci.utc=function(t){return this.utcOffset(0,t)},ci.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(On(this),"m")),this},ci.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=xn(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ci.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?pn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ci.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ci.isLocal=function(){return!!this.isValid()&&!this._isUTC},ci.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ci.isUtc=Ln,ci.isUTC=Ln,ci.zoneAbbr=function(){return this._isUTC?"UTC":""},ci.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ci.dates=k("dates accessor is deprecated. Use date instead.",ui),ci.months=k("months accessor is deprecated. Use month instead",Ht),ci.years=k("years accessor is deprecated. Use year instead",Dt),ci.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),ci.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(Y(t,this),(t=yn(t))._a){var n=t._isUTC?d(t._a):pn(t._a);this._isDSTShifted=this.isValid()&&w(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var mi=N.prototype;function vi(t,n,i,e){var r=un(),s=d().set(e,n);return r[i](s,t)}function Yi(t,n,i){if(u(t)&&(n=t,t=void 0),t=t||"",null!=n)return vi(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=vi(t,e,i,"month");return r}function Mi(t,n,i,e){"boolean"==typeof t?(u(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,u(n)&&(i=n,n=void 0),n=n||"");var r,s=un(),o=t?s._week.dow:0;if(null!=i)return vi(n,(i+o)%7,e,"day");var h=[];for(r=0;r<7;r++)h[r]=vi(n,(r+o)%7,e,"day");return h}mi.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return H(e)?e.call(n,i):e},mi.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},mi.invalidDate=function(){return this._invalidDate},mi.ordinal=function(t){return this._ordinal.replace("%d",t)},mi.preparse=li,mi.postformat=li,mi.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return H(r)?r(t,n,i,e):r.replace(/%d/i,t)},mi.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return H(i)?i(n):i.replace(/%s/i,n)},mi.set=function(t){var n,i;for(i in t)H(n=t[i])?this[i]=n:this["_"+i]=n;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mi.months=function(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||pt).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},mi.monthsShort=function(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[pt.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mi.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return Tt.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=d([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},mi.monthsRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||Wt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Nt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},mi.monthsShortRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||Wt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Gt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},mi.week=function(t){return Lt(t,this._week.dow,this._week.doy).week},mi.firstDayOfYear=function(){return this._week.doy},mi.firstDayOfWeek=function(){return this._week.dow},mi.weekdays=function(t,n){var i=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?jt(i,this._week.dow):t?i[t.day()]:i},mi.weekdaysMin=function(t){return!0===t?jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},mi.weekdaysShort=function(t){return!0===t?jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},mi.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return Ct.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=d([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},mi.weekdaysRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},mi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},mi.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},rn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===y(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",rn),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",un);var Di=Math.abs;function Si(t,n,i,e){var r=Zn(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function gi(t){return t<0?Math.floor(t):Math.ceil(t)}function yi(t){return 4800*t/146097}function wi(t){return 146097*t/4800}function pi(t){return function(){return this.as(t)}}var ki=pi("ms"),bi=pi("s"),Ti=pi("m"),_i=pi("h"),Hi=pi("d"),Gi=pi("w"),Ni=pi("M"),Wi=pi("Q"),Ei=pi("y");function xi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Fi=xi("milliseconds"),Oi=xi("seconds"),Li=xi("minutes"),Ai=xi("hours"),ji=xi("days"),Zi=xi("months"),Ri=xi("years"),Ii=Math.round,Ci={ss:44,s:45,m:45,h:22,d:26,M:11};function Ui(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var $i=Math.abs;function Pi(t){return(t>0)-(t<0)||+t}function zi(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i=$i(this._milliseconds)/1e3,e=$i(this._days),r=$i(this._months);t=g(i/60),n=g(t/60),i%=60,t%=60;var s=g(r/12),u=r%=12,o=e,h=n,a=t,f=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",l=Pi(this._months)!==Pi(d)?"-":"",m=Pi(this._days)!==Pi(d)?"-":"",v=Pi(this._milliseconds)!==Pi(d)?"-":"";return c+"P"+(s?l+s+"Y":"")+(u?l+u+"M":"")+(o?m+o+"D":"")+(h||a||f?"T":"")+(h?v+h+"H":"")+(a?v+a+"M":"")+(f?v+f+"S":"")}var qi=Hn.prototype;qi.isValid=function(){return this._isValid},qi.abs=function(){var t=this._data;return this._milliseconds=Di(this._milliseconds),this._days=Di(this._days),this._months=Di(this._months),t.milliseconds=Di(t.milliseconds),t.seconds=Di(t.seconds),t.minutes=Di(t.minutes),t.hours=Di(t.hours),t.months=Di(t.months),t.years=Di(t.years),this},qi.add=function(t,n){return Si(this,t,n,1)},qi.subtract=function(t,n){return Si(this,t,n,-1)},qi.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=x(t))||"quarter"===t||"year"===t)switch(i=this._months+yi(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(wi(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},qi.asMilliseconds=ki,qi.asSeconds=bi,qi.asMinutes=Ti,qi.asHours=_i,qi.asDays=Hi,qi.asWeeks=Gi,qi.asMonths=Ni,qi.asQuarters=Wi,qi.asYears=Ei,qi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN},qi._bubble=function(){var t,n,i,e,r,s=this._milliseconds,u=this._days,o=this._months,h=this._data;return s>=0&&u>=0&&o>=0||s<=0&&u<=0&&o<=0||(s+=864e5*gi(wi(o)+u),u=0,o=0),h.milliseconds=s%1e3,t=g(s/1e3),h.seconds=t%60,n=g(t/60),h.minutes=n%60,i=g(n/60),h.hours=i%24,u+=g(i/24),o+=r=g(yi(u)),u-=gi(wi(r)),e=g(o/12),o%=12,h.days=u,h.months=o,h.years=e,this},qi.clone=function(){return Zn(this)},qi.get=function(t){return t=x(t),this.isValid()?this[t+"s"]():NaN},qi.milliseconds=Fi,qi.seconds=Oi,qi.minutes=Li,qi.hours=Ai,qi.days=ji,qi.weeks=function(){return g(this.days()/7)},qi.months=Zi,qi.years=Ri,qi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var n=this.localeData(),i=function(t,n,i){var e=Zn(t).abs(),r=Ii(e.as("s")),s=Ii(e.as("m")),u=Ii(e.as("h")),o=Ii(e.as("d")),h=Ii(e.as("M")),a=Ii(e.as("y")),f=r<=Ci.ss&&["s",r]||r<Ci.s&&["ss",r]||s<=1&&["m"]||s<Ci.m&&["mm",s]||u<=1&&["h"]||u<Ci.h&&["hh",u]||o<=1&&["d"]||o<Ci.d&&["dd",o]||h<=1&&["M"]||h<Ci.M&&["MM",h]||a<=1&&["y"]||["yy",a];return f[2]=n,f[3]=+t>0,f[4]=i,Ui.apply(null,f)}(this,!t,n);return t&&(i=n.pastFuture(+this,i)),n.postformat(i)},qi.toISOString=zi,qi.toString=zi,qi.toJSON=zi,qi.locale=qn,qi.localeData=Qn,qi.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zi),qi.lang=Jn,C("X",0,0,"unix"),C("x",0,0,"valueOf"),ht("x",et),ht("X",/[+-]?\d+(\.\d{1,3})?/),ct("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t,10))})),ct("x",(function(t,n,i){i._d=new Date(y(t))})),
6
- //! moment.js
7
- i.version="2.24.0",t=pn,i.fn=ci,i.min=function(){var t=[].slice.call(arguments,0);return Tn("isBefore",t)},i.max=function(){var t=[].slice.call(arguments,0);return Tn("isAfter",t)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=d,i.unix=function(t){return pn(1e3*t)},i.months=function(t,n){return Yi(t,n,"months")},i.isDate=o,i.locale=rn,i.invalid=m,i.duration=Zn,i.isMoment=S,i.weekdays=function(t,n,i){return Mi(t,n,i,"weekdays")},i.parseZone=function(){return pn.apply(null,arguments).parseZone()},i.localeData=un,i.isDuration=Gn,i.monthsShort=function(t,n){return Yi(t,n,"monthsShort")},i.weekdaysMin=function(t,n,i){return Mi(t,n,i,"weekdaysMin")},i.defineLocale=sn,i.updateLocale=function(t,n){if(null!=n){var i,e,r=Kt;null!=(e=en(t))&&(r=e._config),(i=new N(n=G(r,n))).parentLocale=Vt[t],Vt[t]=i,rn(t)}else null!=Vt[t]&&(null!=Vt[t].parentLocale?Vt[t]=Vt[t].parentLocale:null!=Vt[t]&&delete Vt[t]);return Vt[t]},i.locales=function(){return b(Vt)},i.weekdaysShort=function(t,n,i){return Mi(t,n,i,"weekdaysShort")},i.normalizeUnits=x,i.relativeTimeRounding=function(t){return void 0===t?Ii:"function"==typeof t&&(Ii=t,!0)},i.relativeTimeThreshold=function(t,n){return void 0!==Ci[t]&&(void 0===n?Ci[t]:(Ci[t]=n,"s"===t&&(Ci.ss=n-1),!0))},i.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=ci,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ji=Object.freeze({__proto__:null,default:i});export{i as h,Ji as m}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as e,d as t,h as i,H as s,g as n}from"./p-e037ee2b.js";const a={"message-bot":"message-bot.svg"},p=class{constructor(t){e(this,t),this.hidden=!1,this.icon=void 0}getIcon(){const{icon:e}=this;if(e in a){const s=t("./static/"+a[e]);return i("div",{class:"tw-flex tw-h-fit tw-w-fit tw-items-center tw-justify-center"},i("img",{src:`${s}`,alt:e,class:"tw-h-fit tw-w-fit"}))}return i("i",{class:`${e}`})}render(){const{hidden:e}=this;return i(s,{class:"bcm-icon fa "+(e?"hidden":"")},this.getIcon())}static get assetsDirs(){return["static"]}get el(){return n(this)}};p.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-icon.hidden{display:none}';export{p as bcm_icon}
@@ -1,14 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,a as n}from"./p-3182df7e.js";import{c as e}from"./p-e45c1546.js";function r(n){var e=t.useRef();e.current=n;var r=t.useCallback((function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(r))}),[]);return r}function i(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var o=i()?t.useLayoutEffect:t.useEffect,u=function(n,e){var r=t.useRef(!0);o((function(){return n(r.current)}),e),o((function(){return r.current=!1,function(){r.current=!0}}),[])},f=function(t,n){u((function(n){if(!n)return t()}),n)},c={};function a(){}function s(){}function l(t,n,e){n||c[e]||(t(!1,e),c[e]=!0)}function h(t,n){l(a,t,n)}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function v(n,e,r){var i=t.useRef({});return"value"in i.current&&!r(i.current.condition,e)||(i.current.value=n(),i.current.condition=e),i.current.value}h.preMessage=function(){},h.resetWarned=function(){c={}},h.noteOnce=function(t,n){l(s,t,n)};var y=function(t){return+setTimeout(t,16)},b=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(y=function(t){return window.requestAnimationFrame(t)},b=function(t){return window.cancelAnimationFrame(t)});var m=0,p=new Map;function w(t){p.delete(t)}var S=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=m+=1;function r(n){if(0===n)w(e),t();else{var i=y((function(){r(n-1)}));p.set(e,i)}}return r(n),e};S.cancel=function(t){var n=p.get(t);return w(n),b(n)};
6
- /** @license React v16.13.1
7
- * react-is.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var j="function"==typeof Symbol&&Symbol.for,O=j?Symbol.for("react.element"):60103,M=j?Symbol.for("react.portal"):60106,g=j?Symbol.for("react.fragment"):60107,E=j?Symbol.for("react.strict_mode"):60108,T=j?Symbol.for("react.profiler"):60114,R=j?Symbol.for("react.provider"):60109,x=j?Symbol.for("react.context"):60110,C=j?Symbol.for("react.async_mode"):60111,P=j?Symbol.for("react.concurrent_mode"):60111,A=j?Symbol.for("react.forward_ref"):60112,F=j?Symbol.for("react.suspense"):60113,z=j?Symbol.for("react.suspense_list"):60120,D=j?Symbol.for("react.memo"):60115,k=j?Symbol.for("react.lazy"):60116,q=j?Symbol.for("react.block"):60121,_=j?Symbol.for("react.fundamental"):60117,W=j?Symbol.for("react.responder"):60118,H=j?Symbol.for("react.scope"):60119;function L(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case O:switch(t=t.type){case C:case P:case g:case T:case E:case F:return t;default:switch(t=t&&t.$$typeof){case x:case A:case k:case D:case R:return t;default:return n}}case M:return n}}}function G(t){return L(t)===P}var V={AsyncMode:C,ConcurrentMode:P,ContextConsumer:x,ContextProvider:R,Element:O,ForwardRef:A,Fragment:g,Lazy:k,Memo:D,Portal:M,Profiler:T,StrictMode:E,Suspense:F,isAsyncMode:function(t){return G(t)||L(t)===C},isConcurrentMode:G,isContextConsumer:function(t){return L(t)===x},isContextProvider:function(t){return L(t)===R},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===O},isForwardRef:function(t){return L(t)===A},isFragment:function(t){return L(t)===g},isLazy:function(t){return L(t)===k},isMemo:function(t){return L(t)===D},isPortal:function(t){return L(t)===M},isProfiler:function(t){return L(t)===T},isStrictMode:function(t){return L(t)===E},isSuspense:function(t){return L(t)===F},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===g||t===P||t===T||t===E||t===F||t===z||"object"==typeof t&&null!==t&&(t.$$typeof===k||t.$$typeof===D||t.$$typeof===R||t.$$typeof===x||t.$$typeof===A||t.$$typeof===_||t.$$typeof===W||t.$$typeof===H||t.$$typeof===q)},typeOf:L};e((function(){}));var B=e((function(t){t.exports=V}));function I(t,n){"function"==typeof t?t(n):"object"===d(t)&&t&&"current"in t&&(t.current=n)}function J(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];var r=n.filter((function(t){return t}));return r.length<=1?r[0]:function(t){n.forEach((function(n){I(n,t)}))}}function K(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return v((function(){return J.apply(void 0,n)}),n,(function(t,n){return t.length===n.length&&t.every((function(t,e){return t===n[e]}))}))}function N(t){var n,e,r=B.isMemo(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(n=r.prototype)&&void 0!==n&&n.render)&&!!("function"!=typeof t||null!==(e=t.prototype)&&void 0!==e&&e.render)}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Q.apply(this,arguments)}function U(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(n,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?r=r.concat(U(t)):B.isFragment(t)&&t.props?r=r.concat(U(t.props.children,e)):r.push(t))})),r}function X(t){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(t)}function Y(t){var n=function(t){if("object"!==X(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==X(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===X(n)?n:String(n)}function Z(t,n,e){return(n=Y(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function $(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function tt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?$(Object(e),!0).forEach((function(n){Z(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function nt(t){return t instanceof HTMLElement||t instanceof SVGElement}function et(e){return nt(e)?e:e instanceof t.Component?n.findDOMNode(e):null}var rt=function(){if("undefined"!=typeof Map)return Map;function t(t,n){var e=-1;return t.some((function(t,r){return t[0]===n&&(e=r,!0)})),e}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var e=t(this.__entries__,n),r=this.__entries__[e];return r&&r[1]},n.prototype.set=function(n,e){var r=t(this.__entries__,n);~r?this.__entries__[r][1]=e:this.__entries__.push([n,e])},n.prototype.delete=function(n){var e=this.__entries__,r=t(e,n);~r&&e.splice(r,1)},n.prototype.has=function(n){return!!~t(this.__entries__,n)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var e=0,r=this.__entries__;e<r.length;e++){var i=r[e];t.call(n,i[1],i[0])}},n}()}(),it="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ot="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ut="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ot):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},ft=["top","right","bottom","left","width","height","size","weight"],ct="undefined"!=typeof MutationObserver,at=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t){var n=!1,e=!1,r=0;function i(){n&&(n=!1,t()),e&&u()}function o(){ut(i)}function u(){var t=Date.now();if(n){if(t-r<2)return;e=!0}else n=!0,e=!1,setTimeout(o,20);r=t}return u}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var n=this.observers_,e=n.indexOf(t);~e&&n.splice(e,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){it&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ct?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){it&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var n=t.propertyName,e=void 0===n?"":n;ft.some((function(t){return!!~e.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),st=function(t,n){for(var e=0,r=Object.keys(n);e<r.length;e++){var i=r[e];Object.defineProperty(t,i,{value:n[i],enumerable:!1,writable:!1,configurable:!0})}return t},lt=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ot},ht=mt(0,0,0,0);function dt(t){return parseFloat(t)||0}function vt(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return n.reduce((function(n,e){return n+dt(t["border-"+e+"-width"])}),0)}var yt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof lt(t).SVGGraphicsElement}:function(t){return t instanceof lt(t).SVGElement&&"function"==typeof t.getBBox};function bt(t){return it?yt(t)?function(t){var n=t.getBBox();return mt(0,0,n.width,n.height)}(t):function(t){var n=t.clientWidth,e=t.clientHeight;if(!n&&!e)return ht;var r=lt(t).getComputedStyle(t),i=function(t){for(var n={},e=0,r=["top","right","bottom","left"];e<r.length;e++){var i=r[e];n[i]=dt(t["padding-"+i])}return n}(r),o=i.left+i.right,u=i.top+i.bottom,f=dt(r.width),c=dt(r.height);if("border-box"===r.boxSizing&&(Math.round(f+o)!==n&&(f-=vt(r,"left","right")+o),Math.round(c+u)!==e&&(c-=vt(r,"top","bottom")+u)),!function(t){return t===lt(t).document.documentElement}(t)){var a=Math.round(f+o)-n,s=Math.round(c+u)-e;1!==Math.abs(a)&&(f-=a),1!==Math.abs(s)&&(c-=s)}return mt(i.left,i.top,f,c)}(t):ht}function mt(t,n,e,r){return{x:t,y:n,width:e,height:r}}var pt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=mt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=bt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),wt=function(t,n){var e=function(t){var n=t.x,e=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return st(u,{x:n,y:e,width:r,height:i,top:e,right:n+r,bottom:i+e,left:n}),u}(n);st(this,{target:t,contentRect:e})},St=function(){function t(t,n,e){if(this.activeObservations_=[],this.observations_=new rt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=e}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof lt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new pt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof lt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(n){n.isActive()&&t.activeObservations_.push(n)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map((function(t){return new wt(t.target,t.broadcastRect())}));this.callback_.call(t,n,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),jt="undefined"!=typeof WeakMap?new WeakMap:new rt,Ot=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=at.getInstance(),r=new St(n,e,this);jt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){Ot.prototype[t]=function(){var n;return(n=jt.get(this))[t].apply(n,arguments)}}));var Mt=void 0!==ot.ResizeObserver?ot.ResizeObserver:Ot,gt=new Map,Et=new Mt((function(t){t.forEach((function(t){var n,e=t.target;null===(n=gt.get(e))||void 0===n||n.forEach((function(t){return t(e)}))}))}));function Tt(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Rt(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Y(r.key),r)}}function xt(t,n){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},xt(t,n)}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}function Pt(t,n){if(n&&("object"===X(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var At=function(){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&xt(t,n)}(u,t.Component);var n,e,r,i,o=(r=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Ct(r);if(i){var e=Ct(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return Pt(this,t)});function u(){return Tt(this,u),o.apply(this,arguments)}return n=u,(e=[{key:"render",value:function(){return this.props.children}}])&&Rt(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),u}(),Ft=t.createContext(null);function zt(n,e){var r=n.children,i=n.disabled,o=t.useRef(null),u=t.useRef(null),f=t.useContext(Ft),c="function"==typeof r,a=c?r(o):r,s=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=!c&&t.isValidElement(a)&&N(a),h=l?a.ref:null,d=t.useMemo((function(){return J(h,o)}),[h,o]),v=function(){return et(o.current)||et(u.current)};t.useImperativeHandle(e,(function(){return v()}));var y=t.useRef(n);y.current=n;var b=t.useCallback((function(t){var n=y.current,e=n.onResize,r=n.data,i=t.getBoundingClientRect(),o=i.width,u=i.height,c=t.offsetWidth,a=t.offsetHeight,l=Math.floor(o),h=Math.floor(u);if(s.current.width!==l||s.current.height!==h||s.current.offsetWidth!==c||s.current.offsetHeight!==a){var d={width:l,height:h,offsetWidth:c,offsetHeight:a};s.current=d;var v=c===Math.round(o)?o:c,b=a===Math.round(u)?u:a,m=tt(tt({},d),{},{offsetWidth:v,offsetHeight:b});null==f||f(m,t,r),e&&Promise.resolve().then((function(){e(m,t)}))}}),[]);return t.useEffect((function(){var t,n,e=v();return e&&!i&&(n=b,gt.has(t=e)||(gt.set(t,new Set),Et.observe(t)),gt.get(t).add(n)),function(){return function(t,n){gt.has(t)&&(gt.get(t).delete(n),gt.get(t).size||(Et.unobserve(t),gt.delete(t)))}(e,b)}}),[o.current,i]),t.createElement(At,{ref:u},l?t.cloneElement(a,{ref:d}):a)}var Dt=t.forwardRef(zt);function kt(n,e){var r=n.children;return("function"==typeof r?[r]:U(r)).map((function(r,i){var o=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(i);return t.createElement(Dt,Q({},n,{key:o,ref:0===i?e:void 0}),r)}))}var qt=t.forwardRef(kt);qt.Collection=function(n){var e=n.children,r=n.onBatchResize,i=t.useRef(0),o=t.useRef([]),u=t.useContext(Ft),f=t.useCallback((function(t,n,e){i.current+=1;var f=i.current;o.current.push({size:t,element:n,data:e}),Promise.resolve().then((function(){f===i.current&&(null==r||r(o.current),o.current=[])})),null==u||u(t,n,e)}),[r,u]);return t.createElement(Ft.Provider,{value:f},e)};export{qt as R,d as _,f as a,v as b,S as c,u as d,i as e,K as f,I as g,et as h,nt as i,J as j,N as s,r as u,h as w}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,h as e,H as s,g as a}from"./p-e037ee2b.js";import{C as i}from"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-866d1d29.js";import"./p-9551e2a4.js";import"./p-6b5ed4d8.js";import"./p-85f028bf.js";import"./p-5ae0a59b.js";import{a as l}from"./p-a313fba6.js";import{c as o}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9107380e.js";const b=o({slots:{base:"bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",image:"tw-w-full tw-h-full",badge:""},variants:{size:{small:"bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",medium:"bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",large:"bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10"},shape:{ellipse:{base:"bcm-avatar__shape-ellipse tw-rounded-full",image:"tw-rounded-full",badge:"tw-top-0 tw-right-0"},square:{base:"bcm-avatar__shape-square tw-rounded",image:"tw-rounded",badge:"tw--top-0.5 tw--right-0.5"}},status:{true:{base:"bcm-avatar__status tw-relative",badge:"tw-absolute"}}},defaultVariants:{size:"medium",shape:"ellipse",status:!1}}),w=class{constructor(e){t(this,e),this._id=r.UID(),this.image=void 0,this.name=void 0,this.alt=void 0,this.shape=l.Shape.ellipse,this.size=l.Size.medium,this.color=void 0,this.icon="fas fa-user",this.status=void 0,this.blink=!1,this.isFallback=!1}getFirstLetters(t){return t.split(" ").map((t=>t.charAt(0).toUpperCase())).join("").substring(0,2)}renderDefaultIcon(){return e("bcm-icon",{icon:this.icon})}render(){const{shape:t,size:a,status:i,color:o,blink:w}=this,{base:m,badge:n,image:c}=b({size:a,shape:t,status:!!i}),d=r.getTwColor({color:o,tones:{200:["bg"],700:["text"]},variable:"--bcm-avatar"}),h=Object.keys(l.BaseSize).includes(a)?{}:{width:`${a}px`,height:`${a}px`,fontSize:+a/3+"px"};return e(s,{role:"img","aria-label":this.alt||this.name||"Avatar",class:m(),style:Object.assign(Object.assign({},d),h)},e((()=>this.isFallback?this.name?this.getFirstLetters(this.name):this.renderDefaultIcon():this.image?e("img",{class:c(),onError:()=>this.isFallback=!0,src:this.image,alt:this.alt}):this.name?this.getFirstLetters(this.name):this.renderDefaultIcon()),null),i&&e("bcm-badge",{class:n(),status:i,blink:w,"aria-hidden":"true"}),e("slot",null))}get el(){return a(this)}},m=o({slots:{host:"bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",base:["bcm-badge__dot","tw-flex tw-items-center tw-justify-center tw-flex-row","tw-rounded-full tw-text-center","tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]","tw-whitespace-nowrap"],dotText:"empty:tw-hidden"},variants:{size:{small:{host:"tw-text-2 tw-gap-1",base:"bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",dotText:"tw-px-1.5 tw-min-w-4"},medium:{host:"tw-text-3 tw-gap-1.5",base:"bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",dotText:"tw-px-1.5 tw-min-w-5"},large:{host:"tw-text-4 tw-gap-2",base:"bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",dotText:"tw-px-2 tw-min-w-6"}},blink:{true:{base:["bcm-badge__dot-blink tw-relative","after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]","after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full","after:tw-animate-blink after:tw-pointer-events-none"]}}},defaultVariants:{size:"medium",blink:!1}}),n=class{constructor(e){t(this,e),this.statusColors={info:"blue",error:"red",warning:"amber",success:"emerald"},this._id=r.UID(),this.blink=!1,this.value=void 0,this.color=void 0,this.size=l.Size.medium,this.status=void 0}render(){const{blink:t,value:a,size:l,color:o,status:b}=this,w=this.statusColors[b]||o,{tone:n,colorName:c}=i.parseColor(w),d=r.getTwColor({color:c,tones:{[n]:["bg"]},variable:"--bcm-badge"}),h=Object.assign(Object.assign({},d),d["--bcm-badge-bg"]&&{"--bcm-badge-text":i.reverseColor(d["--bcm-badge-bg"])}),{base:p,dotText:u,host:g}=m({size:l,blink:t});return e(s,{class:g(),role:"status","aria-live":"polite"},e("div",{class:p(),style:h},e("span",{class:u(),role:"presentation","aria-hidden":"true"},a),e("span",{class:"tw-sr-only"},a)),e("slot",null))}get el(){return a(this)}};export{w as bcm_avatar,n as bcm_badge}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{h as n}from"./p-e037ee2b.js";import{d as e}from"./p-3fac58f7.js";import{B as s}from"./p-a313fba6.js";import{c as a}from"./p-bed627ab.js";import{s as t}from"./p-866d1d29.js";const i=({elementType:i,rows:o,id:r,internalId:c,type:l,placeholder:p,value:u,size:f,pattern:d,unit:b,unitPrefix:m,maxLength:x,disabled:w,clearable:h,focused:y,readonly:v,isPasswordVisible:C,passwordToggle:g,noDefaultIcon:j,inValid:_,captionType:k,resize:z,autocomplete:I,_suffix:T,_prefix:L,changePasswordVisibility:B,handleClear:D,steps:O,ref:P,handleBlur:V,handleFocus:F,handleInput:H,handleChange:M,isEyeDropperSupported:E,eyeDropper:S})=>{const q=s.HtmlElementType[i]||s.HtmlElementType.input;l="password"===l&&C?"text":l,u=t((()=>u),""),u=y?u:u+(u&&(null==b?void 0:b.length)>0?" "+b:"");const A="color"===(l=(null==b?void 0:b.length)>0&&!y?"text":l);l="color"===l?"text":l;var G=a("bcm-input__container",q===s.HtmlElementType.textarea&&a("bcm-input__textarea","textarea-size-"+s.Size[f],"resize-"+z,"textarea-"+f),q===s.HtmlElementType.input&&a("input-size-"+s.Size[f]),{focused:y,clearable:h,disabled:w,readonly:v,invalid:_,unit:(null==b?void 0:b.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==b?void 0:b.length)>0,disabled:w||v||_}),K="bcm-input__container--"+f,N=a(K,"unit-prefix");return n("div",{class:G,id:r+"-container"},n("span",{hidden:!0},n("slot",null)),n("span",{class:"input-prefix"},n("slot",{name:"prefix"}),L&&L.length>0&&n("span",{innerHTML:L}),m&&n("span",{class:N},m),A&&n("i",{class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300",style:{backgroundColor:u}})),n(q,Object.assign({tabindex:"0",id:r+"-input","bcm-internal-id":c,class:"bcm-input-element "+K},q===s.HtmlElementType.input&&{type:l,autocomplete:I?"on":"off",pattern:d},q===s.HtmlElementType.textarea&&{rows:o,resize:z},{value:u,maxLength:x,placeholder:p,disabled:w,readOnly:v,ref:n=>P(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),V(n)})(n),onFocus:n=>(n=>{n.target.parentElement.classList.add("focused"),F(n)})(n),onInput:n=>H(n),onChange:n=>M(n)})),n("span",{class:"input-suffix-content"},h&&!w&&!v&&n("span",{class:"input-suffix input-suffix-button input-clear-button",onClick:n=>D(n)},n("bcm-icon",{icon:"far fa-times"}))),n("span",{class:"input-suffix-content"},("password"===l||"text"===l)&&g&&n("span",{class:"input-suffix input-suffix-button",onClick:()=>B()},n("bcm-icon",{icon:C?"far fa-eye-slash":"far fa-eye"}))),n("span",{class:"input-suffix-content"},Object.keys(e).includes(l)&&!j&&n("span",{class:"input-suffix"},n("bcm-icon",{icon:e[l]}))),n("span",{class:"input-suffix-content"},"number"===l&&n("div",{class:J},n("span",{class:"bcm-input-caret",onClick:()=>O("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>O("down")},n("bcm-icon",{icon:"fas fa-caret-down"})))),n("span",{class:"input-suffix-content"},"number"!==l&&n("span",{class:"input-suffix"},n("slot",{name:"suffix"}),T&&T.length>0&&n("span",{innerHTML:T})),A&&E()&&n("span",{class:"input-suffix"},n("span",null,n("i",{class:"far fa-eye-dropper",onClick:()=>S()})))))};export{i as I}