bromcom-ui 2.9.0-rc.6 → 2.9.0-rc.7-hf

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 (225) 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/global/global.js +13 -5
  4. package/dist/bromcom-ui/p-0109ad48.entry.js +5 -0
  5. package/dist/bromcom-ui/p-0b368173.entry.js +5 -0
  6. package/dist/bromcom-ui/p-164f7e6c.entry.js +5 -0
  7. package/dist/bromcom-ui/p-1818438c.entry.js +5 -0
  8. package/dist/bromcom-ui/p-195a0cdb.entry.js +5 -0
  9. package/dist/bromcom-ui/p-1bcaf3e8.entry.js +5 -0
  10. package/dist/bromcom-ui/p-1d1832ee.entry.js +5 -0
  11. package/dist/bromcom-ui/{p-dbdb10d5.js → p-1dbebb3b.js} +1 -1
  12. package/dist/bromcom-ui/p-225f0cd4.entry.js +5 -0
  13. package/dist/bromcom-ui/p-2694ba78.entry.js +5 -0
  14. package/dist/bromcom-ui/p-2ba1622e.entry.js +5 -0
  15. package/dist/bromcom-ui/p-2e4da4ab.entry.js +5 -0
  16. package/dist/bromcom-ui/p-2e6a7b7f.entry.js +5 -0
  17. package/dist/bromcom-ui/p-3611ab58.entry.js +5 -0
  18. package/dist/bromcom-ui/p-36c2b826.entry.js +5 -0
  19. package/dist/bromcom-ui/p-3806c36a.js +5 -0
  20. package/dist/bromcom-ui/p-39018124.entry.js +5 -0
  21. package/dist/bromcom-ui/p-471eb470.entry.js +5 -0
  22. package/dist/bromcom-ui/p-50ea4b0f.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-3215d598.js → p-5149dc93.js} +1 -1
  24. package/dist/bromcom-ui/p-5eac3588.entry.js +5 -0
  25. package/dist/bromcom-ui/p-5fa9e59c.entry.js +5 -0
  26. package/dist/bromcom-ui/p-5fd4c014.entry.js +5 -0
  27. package/dist/bromcom-ui/p-686641a5.js +5 -0
  28. package/dist/bromcom-ui/p-68f3ec39.entry.js +5 -0
  29. package/dist/bromcom-ui/p-73ccddab.entry.js +5 -0
  30. package/dist/bromcom-ui/p-798919b4.entry.js +5 -0
  31. package/dist/bromcom-ui/p-79d7bfd5.entry.js +5 -0
  32. package/dist/bromcom-ui/p-8290bbe4.entry.js +5 -0
  33. package/dist/bromcom-ui/p-86becfa1.entry.js +5 -0
  34. package/dist/bromcom-ui/{p-6a5ac874.entry.js → p-87fcb394.entry.js} +2 -2
  35. package/dist/bromcom-ui/p-a44f36ac.entry.js +5 -0
  36. package/dist/bromcom-ui/p-a5ac91fb.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-2b13dd48.js → p-b2cc2a67.js} +1 -1
  38. package/dist/bromcom-ui/p-b3ac0575.entry.js +5 -0
  39. package/dist/bromcom-ui/p-b7b44f3a.entry.js +5 -0
  40. package/dist/bromcom-ui/p-b7fddf92.entry.js +5 -0
  41. package/dist/bromcom-ui/p-be02416d.js +5 -0
  42. package/dist/bromcom-ui/p-c3de3c95.entry.js +5 -0
  43. package/dist/bromcom-ui/p-cdc95b9c.entry.js +5 -0
  44. package/dist/bromcom-ui/p-ce34205d.entry.js +5 -0
  45. package/dist/bromcom-ui/p-d60209e8.entry.js +5 -0
  46. package/dist/bromcom-ui/p-d76df1c2.js +5 -0
  47. package/dist/bromcom-ui/p-d7be7217.entry.js +5 -0
  48. package/dist/bromcom-ui/p-d80706bd.entry.js +5 -0
  49. package/dist/bromcom-ui/p-e33e66e8.entry.js +5 -0
  50. package/dist/bromcom-ui/p-e61065fd.entry.js +5 -0
  51. package/dist/bromcom-ui/{p-184b7d3b.js → p-f3c6b8c8.js} +1 -1
  52. package/dist/bromcom-ui/p-f44ae634.entry.js +5 -0
  53. package/dist/bromcom-ui/p-f4d50cb8.entry.js +5 -0
  54. package/dist/bromcom-ui/p-f7d5575b.entry.js +5 -0
  55. package/dist/bromcom-ui/p-fdf19311.entry.js +5 -0
  56. package/dist/bromcom-ui/p-fe3961cf.entry.js +5 -0
  57. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -1
  58. package/dist/cjs/bcm-alert.cjs.entry.js +2 -1
  59. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -1
  60. package/dist/cjs/bcm-avatar.cjs.entry.js +4 -3
  61. package/dist/cjs/bcm-badge_15.cjs.entry.js +5 -4
  62. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -1
  63. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -1
  64. package/dist/cjs/bcm-card.cjs.entry.js +2 -1
  65. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +2 -1
  66. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -1
  67. package/dist/cjs/bcm-checkbox.cjs.entry.js +2 -1
  68. package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -3
  69. package/dist/cjs/bcm-chip.cjs.entry.js +2 -1
  70. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -1
  71. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -3
  72. package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -1
  73. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -1
  74. package/dist/cjs/bcm-default.cjs.entry.js +2 -1
  75. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -3
  76. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -1
  77. package/dist/cjs/bcm-form-2.cjs.entry.js +2 -1
  78. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -1
  79. package/dist/cjs/bcm-input.cjs.entry.js +5 -4
  80. package/dist/cjs/bcm-label.cjs.entry.js +2 -1
  81. package/dist/cjs/bcm-list_3.cjs.entry.js +36 -14
  82. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -3
  83. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -3
  84. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -3
  85. package/dist/cjs/bcm-modal.cjs.entry.js +2 -1
  86. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -1
  87. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -1
  88. package/dist/cjs/bcm-progress.cjs.entry.js +2 -1
  89. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -3
  90. package/dist/cjs/bcm-radio.cjs.entry.js +4 -3
  91. package/dist/cjs/bcm-range.cjs.entry.js +2 -1
  92. package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -1
  93. package/dist/cjs/bcm-step.cjs.entry.js +3 -2
  94. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -4
  95. package/dist/cjs/bcm-switch.cjs.entry.js +2 -1
  96. package/dist/cjs/bcm-tag.cjs.entry.js +3 -2
  97. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -2
  98. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -1
  99. package/dist/cjs/bcm-toast.cjs.entry.js +2 -1
  100. package/dist/cjs/bromcom-ui.cjs.js +3 -2
  101. package/dist/cjs/{generate-d3f8c970.js → generate-6ba66e0c.js} +2 -3
  102. package/dist/cjs/global-3af814f1.js +22 -0
  103. package/dist/cjs/{input-template-22725c68.js → input-template-86d964e9.js} +1 -1
  104. package/dist/cjs/{json-parse-decarator-22c236ad.js → json-parse-decarator-c457d0c0.js} +1 -1
  105. package/dist/cjs/loader.cjs.js +3 -2
  106. package/dist/cjs/{number-helper-66fe9479.js → number-helper-b1fb2bca.js} +1 -1
  107. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -2
  108. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -1
  109. package/dist/cjs/package-52850689.js +9 -0
  110. package/dist/cjs/{stepper-states-43daae37.js → stepper-states-71bc5cba.js} +1 -1
  111. package/dist/cjs/{validators-aa39e3ec.js → validators-36302621.js} +1 -1
  112. package/dist/collection/components/organism/list/list.js +46 -7
  113. package/dist/collection/global/global.js +13 -5
  114. package/dist/collection/templates/list-template.js +2 -2
  115. package/dist/components/generate.js +3 -3
  116. package/dist/components/index.js +8 -2
  117. package/dist/components/list.js +31 -9
  118. package/dist/esm/bcm-accordion.entry.js +2 -1
  119. package/dist/esm/bcm-alert.entry.js +2 -1
  120. package/dist/esm/bcm-attendance.entry.js +2 -1
  121. package/dist/esm/bcm-avatar.entry.js +4 -3
  122. package/dist/esm/bcm-badge_15.entry.js +5 -4
  123. package/dist/esm/bcm-breadcrumb.entry.js +2 -1
  124. package/dist/esm/bcm-button-group.entry.js +2 -1
  125. package/dist/esm/bcm-card.entry.js +2 -1
  126. package/dist/esm/bcm-checkbox-group.entry.js +2 -1
  127. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -1
  128. package/dist/esm/bcm-checkbox.entry.js +2 -1
  129. package/dist/esm/bcm-chip-group.entry.js +4 -3
  130. package/dist/esm/bcm-chip.entry.js +2 -1
  131. package/dist/esm/bcm-collapse.entry.js +2 -1
  132. package/dist/esm/bcm-color-input.entry.js +4 -3
  133. package/dist/esm/bcm-date-picker.entry.js +2 -1
  134. package/dist/esm/bcm-datetime-picker.entry.js +2 -1
  135. package/dist/esm/bcm-default.entry.js +2 -1
  136. package/dist/esm/bcm-drawer.entry.js +4 -3
  137. package/dist/esm/bcm-expansion-panel.entry.js +2 -1
  138. package/dist/esm/bcm-form-2.entry.js +2 -1
  139. package/dist/esm/bcm-input-custom.entry.js +2 -1
  140. package/dist/esm/bcm-input.entry.js +5 -4
  141. package/dist/esm/bcm-label.entry.js +2 -1
  142. package/dist/esm/bcm-list_3.entry.js +36 -14
  143. package/dist/esm/bcm-modal-2-footer.entry.js +4 -3
  144. package/dist/esm/bcm-modal-2-header.entry.js +4 -3
  145. package/dist/esm/bcm-modal-2.entry.js +4 -3
  146. package/dist/esm/bcm-modal.entry.js +2 -1
  147. package/dist/esm/bcm-popconfirm-box.entry.js +2 -1
  148. package/dist/esm/bcm-popconfirm.entry.js +2 -1
  149. package/dist/esm/bcm-progress.entry.js +2 -1
  150. package/dist/esm/bcm-radio-group.entry.js +4 -3
  151. package/dist/esm/bcm-radio.entry.js +4 -3
  152. package/dist/esm/bcm-range.entry.js +2 -1
  153. package/dist/esm/bcm-skeleton.entry.js +2 -1
  154. package/dist/esm/bcm-step.entry.js +3 -2
  155. package/dist/esm/bcm-stepper.entry.js +5 -4
  156. package/dist/esm/bcm-switch.entry.js +2 -1
  157. package/dist/esm/bcm-tag.entry.js +3 -2
  158. package/dist/esm/bcm-textarea.entry.js +3 -2
  159. package/dist/esm/bcm-time-picker.entry.js +2 -1
  160. package/dist/esm/bcm-toast.entry.js +2 -1
  161. package/dist/esm/bromcom-ui.js +3 -2
  162. package/dist/esm/{generate-786bd626.js → generate-9429fc3d.js} +1 -2
  163. package/dist/esm/global-33d0dd4f.js +20 -0
  164. package/dist/esm/{input-template-88fba8d7.js → input-template-5ba0fabd.js} +1 -1
  165. package/dist/esm/{json-parse-decarator-e85e0fea.js → json-parse-decarator-078398ea.js} +1 -1
  166. package/dist/esm/loader.js +3 -2
  167. package/dist/esm/{number-helper-d9b73e76.js → number-helper-b8713a64.js} +1 -1
  168. package/dist/esm/old-bcm-popover-box.entry.js +3 -2
  169. package/dist/esm/old-bcm-popover.entry.js +2 -1
  170. package/dist/esm/package-3dca711e.js +7 -0
  171. package/dist/esm/{stepper-states-026cdd66.js → stepper-states-8f335ee6.js} +1 -1
  172. package/dist/esm/{validators-0b019b63.js → validators-4aa9f0a8.js} +1 -1
  173. package/dist/types/components/organism/list/list.d.ts +2 -0
  174. package/dist/types/components.d.ts +2 -0
  175. package/dist/types/templates/list-template.d.ts +1 -0
  176. package/package.json +2 -2
  177. package/dist/bromcom-ui/p-0641597e.entry.js +0 -5
  178. package/dist/bromcom-ui/p-16dd7db9.entry.js +0 -5
  179. package/dist/bromcom-ui/p-17264523.js +0 -5
  180. package/dist/bromcom-ui/p-17af6738.js +0 -5
  181. package/dist/bromcom-ui/p-1fbd8af5.entry.js +0 -5
  182. package/dist/bromcom-ui/p-24b8154c.entry.js +0 -5
  183. package/dist/bromcom-ui/p-24d8e9d6.entry.js +0 -5
  184. package/dist/bromcom-ui/p-2afdec61.entry.js +0 -5
  185. package/dist/bromcom-ui/p-2b88c7bb.entry.js +0 -5
  186. package/dist/bromcom-ui/p-31eabaf3.entry.js +0 -5
  187. package/dist/bromcom-ui/p-3baf677c.entry.js +0 -5
  188. package/dist/bromcom-ui/p-459212eb.entry.js +0 -5
  189. package/dist/bromcom-ui/p-57f8802e.entry.js +0 -5
  190. package/dist/bromcom-ui/p-5c468c5b.entry.js +0 -5
  191. package/dist/bromcom-ui/p-6272ecb4.entry.js +0 -5
  192. package/dist/bromcom-ui/p-6b861832.entry.js +0 -5
  193. package/dist/bromcom-ui/p-772a214f.js +0 -5
  194. package/dist/bromcom-ui/p-7a394115.entry.js +0 -5
  195. package/dist/bromcom-ui/p-81b2dffb.entry.js +0 -5
  196. package/dist/bromcom-ui/p-891de348.entry.js +0 -5
  197. package/dist/bromcom-ui/p-8d7bbe30.entry.js +0 -5
  198. package/dist/bromcom-ui/p-8de9d6b6.entry.js +0 -5
  199. package/dist/bromcom-ui/p-8fc8b4ff.entry.js +0 -5
  200. package/dist/bromcom-ui/p-9099a1bf.entry.js +0 -5
  201. package/dist/bromcom-ui/p-9773e744.entry.js +0 -5
  202. package/dist/bromcom-ui/p-a512ca45.entry.js +0 -5
  203. package/dist/bromcom-ui/p-b10265d7.entry.js +0 -5
  204. package/dist/bromcom-ui/p-b26ded9b.entry.js +0 -5
  205. package/dist/bromcom-ui/p-b45b54b5.entry.js +0 -5
  206. package/dist/bromcom-ui/p-b47e4417.entry.js +0 -5
  207. package/dist/bromcom-ui/p-c2cbb810.entry.js +0 -5
  208. package/dist/bromcom-ui/p-c387f0fb.entry.js +0 -5
  209. package/dist/bromcom-ui/p-c3a91954.entry.js +0 -5
  210. package/dist/bromcom-ui/p-ca6cd989.entry.js +0 -5
  211. package/dist/bromcom-ui/p-ccaabc2e.entry.js +0 -5
  212. package/dist/bromcom-ui/p-d37502f9.entry.js +0 -5
  213. package/dist/bromcom-ui/p-dd43bcd9.entry.js +0 -5
  214. package/dist/bromcom-ui/p-de850d57.entry.js +0 -5
  215. package/dist/bromcom-ui/p-e0c60c5d.entry.js +0 -5
  216. package/dist/bromcom-ui/p-e520d2a2.entry.js +0 -5
  217. package/dist/bromcom-ui/p-e86e4968.entry.js +0 -5
  218. package/dist/bromcom-ui/p-eaad2239.entry.js +0 -5
  219. package/dist/bromcom-ui/p-ee4b8753.entry.js +0 -5
  220. package/dist/bromcom-ui/p-ee50f5e2.entry.js +0 -5
  221. package/dist/bromcom-ui/p-ee5da693.entry.js +0 -5
  222. package/dist/bromcom-ui/p-f0fa1c29.entry.js +0 -5
  223. package/dist/bromcom-ui/p-fe37e88f.entry.js +0 -5
  224. package/dist/cjs/global-b0d21446.js +0 -15
  225. package/dist/esm/global-4fad925b.js +0 -13
@@ -2,7 +2,7 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as t,r as e,c as i,H as n,g as c}from"./p-6d7fe687.js";import{I as o}from"./p-54c0916c.js";import{J as r}from"./p-184b7d3b.js";import"./p-2fc584c4.js";import"./p-626a65e9.js";import{s,G as l}from"./p-17af6738.js";import{N as a}from"./p-17264523.js";import{S as h}from"./p-8d0ca8c2.js";import{V as m}from"./p-dbdb10d5.js";import"./p-5ae0a59b.js";import{g as b,s as d}from"./p-dbc4c30c.js";import{p as u,d as p}from"./p-3c7a0345.js";import{a as f,B as x}from"./p-a429e85b.js";import{C as _}from"./p-a56e8c98.js";import{c as v}from"./p-d65a1e21.js";import"./p-3fac58f7.js";import{L as g}from"./p-c49d038e.js";import"./p-2e73d572.js";import{c as y}from"./p-3cde7f38.js";import{r as w,a as k}from"./p-1eabd5dc.js";import{c as z}from"./p-6f56f8ca.js";import{I as j}from"./p-2b13dd48.js";import"./p-436364c8.js";import"./p-4aa0e6b1.js";import"./p-74b2d896.js";const O=({disabled:e,checked:i,readonly:n,required:c,indeterminate:o,hidden:r,captionType:s,_id:l})=>{const a=v("bcm-checkbox","bcm-checkbox__type-default","bcm-checkbox-size-medium",{error:s==f.Status.error,hidden:r,checked:i,disabled:e,required:c,readonly:n}),h=v("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+o,{"bcm-checkbox__label-icon-checked":i}),m=v("bcm-checkbox__label");return t("div",{class:a},t("input",{tabindex:"-1",id:l,type:"checkbox",checked:i,disabled:e,required:c,readonly:n}),t("label",{class:m,htmlFor:l},t("span",{class:h},t("bcm-icon",{icon:"far fa-check"}))))},I=({selected:e,total:i,found:n,multiple:c,variableText:o})=>(i=i||0,o=o?u(o,i):"items",t("footer",{class:"bcm-info-footer"},t("bcm-text",{scale:"size-1",color:"grey-8"},c&&e>0&&` ( ${e} selected ) `,` Total ${i} `,null!=n&&` / ${n} `,` ${o} found. `))),S=({item:e,treeview:i,highlight:n,checkboxes:c,size:o,selectedItem:r,openGroup:s,checkedItem:l,focusItem:a,searchIsOnlyChilds:m})=>{const b=e.items&&e.items.length>0;var d=h.htmlEntities(e.text);let u=[];if(n&&h.slugify(d).includes(h.slugify(n))&&(m&&(!m||b&&(i||"group"==e.type))||(d=h.highlight(d,n))),"group"!=e.type&&e.template){const t=e.template.replace(/\s/g,"").match(/\{{[^}}]+\}/g).map((t=>t.replace(/[{}]/g,""))),i=Object.keys(e.itemObject);u=t.filter((t=>i.includes(t)))}d=e.isHtmlContent?e.isHtmlContent:e.template&&u.length>0?h.templateParser(e.template,Object.assign(Object.assign({},e.itemObject),{text:d})):d;const p=!i&&"group"==e.type&&!e.clickable,f=e.disabled,x=e.readonly,_=()=>{e.open=e.isSearching,s(e.id)};return t("div",{id:e.id,hidden:e.hidden,"on-focus":t=>!p&&!f&&a(t),class:v("bcm-list__item","bcm-list__item-"+o,{"bcm-list__item--group":!i&&"group"==e.type,"bcm-list__item--readonly":x})},t("div",{class:v("bcm-list__item-content",!c&&e.selected&&"selected",{disabled:f})},i&&t("div",{class:"bcm-list__item-content-collapse-icon",onClick:()=>_()},b&&t("bcm-icon",{icon:v("fas fa-caret-"+(e.isSearching||e.open?"down":"right"))})),t("div",{class:v("bcm-list__item-content-text",{treeview:i}),onClick:t=>{var i;((i=t).path||i.composedPath()).filter((t=>t.attributes&&t.attributes.getNamedItem("unlinked")))[0]||(x&&_(),!p&&!f&&!x&&(c?l(e.id):r(e.id)))}},c&&(i||!i&&"group"!=e.type)&&t("div",{class:"bcm-list__item-content-text-checkbox"},t(O,{indeterminate:e.indeterminate,checked:e.checked,disabled:e.disabled})),t("span",Object.assign({class:"bcm-list__item-content-text-inner"},e.title&&{title:e.title},{innerHTML:d})))),(i||!i&&"group"==e.type)&&b&&t("div",{class:"bcm-list__item-childs"},(e.isSearching||e.open||!i&&"group"==e.type)&&e.items.map((e=>t(S,{highlight:n,item:e,searchIsOnlyChilds:m,treeview:i,checkboxes:c,size:o,selectedItem:r,checkedItem:l,openGroup:t=>s(t),focusItem:t=>a(t)})))))},C=({highlight:e,selectAllItem:i,bcmListContainer:n,treeview:c,checkboxes:o,checkAll:r,infoFooter:s,value:l,totalData:a,searchFound:h,variableText:m,_id:b,data:d,width:u,height:p,size:f,searchPlaceholder:x,minSearchLength:_,selectedItem:v,openGroup:g,checkedItem:y,onScrollEvent:w,focusItem:k,items:z,searchable:j,searchIsOnlyChilds:O,emptyText:C,emptyIcon:E})=>{const M=!(c&&h>0||h>0);return t("div",{id:`bcm-list-${b}`,class:n,style:{"--height":p,"--width":u}},d&&j&&t("section",{class:"bcm-list__container-search"},t("bcm-search",{size:f,id:`bcm-list-${b}-search`,data:d,clearable:!0,placeholder:x,"min-search-length":_,searchIsOnlyChilds:O})),t("main",{onScroll:t=>w(t),class:"scrolling",style:{"overscroll-behavior":"none"}},t("div",{style:{"min-height":`${(null==h?c?z.length:a:h)*("small"===f?28:"medium"===f?36:48)||0}px`,"overscroll-behavior":"none",height:"100%",display:"flex","flex-direction":"column"}},r&&0!=h&&z&&z.length>0&&o&&M&&t("section",{class:"bcm-list__container-select-all"},t(S,{size:f,item:i,treeview:!1,checkboxes:!0,selectedItem:t=>v(t),checkedItem:t=>y(t),openGroup:t=>g(t),focusItem:t=>k(t)})),z.map((i=>t(S,{highlight:e,size:f,item:i,searchIsOnlyChilds:O,treeview:c,checkboxes:o,selectedItem:t=>v(t),checkedItem:t=>y(t),openGroup:t=>g(t),focusItem:t=>k(t)}))),(!z||0===z.length)&&0!=h&&t("section",{class:"bcm-list__container-no-data"},t("bcm-empty",{style:{height:"auto"},icon:E},t("span",{innerHTML:C||"No data"}))),0==h&&t("section",{class:"bcm-list__container-no-data"},t("bcm-empty",{style:{height:"auto"},icon:E},t("span",{innerHTML:C||"No Data Found"}))))),s&&d&&d.length>0&&t(I,{selected:null==l?void 0:l.length,total:a,found:h,multiple:o,variableText:m}))},{state:E}=y({value:new Map}),M=(t,e,i,n="0.")=>{let c=[];return t&&t.length>0&&(c=t.map(((t,c)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({itemObject:t},t),e),{parentId:s((()=>i),null),open:e.allOpen||t.open||!1}),(e.treeview||!e.treeview&&"group"==t.type)&&t.items&&t.items.length>0?{items:s((()=>M(t.items,e,t.id,`${n}${c}`)),[])}:{items:[]}),{ct:`${n}${c}`})))),c},T=t=>s((()=>E.value.get(t)),{}),R=(t,e)=>{let i=0;return t.forEach((t=>{(e||!e&&"group"!=t.type)&&(i+=1),(e||!e&&"group"==t.type)&&t.items&&(i+=R(t.items,e))})),i},$=(t,e,i,n)=>{let c;c=i||T(t).dataSource,c&&c.forEach((i=>{null!=n?i.open=n:i.id==e?(i.open=!i.open,i.isSearching=i.open,!i.open&&i.items&&$(t,e,i.items,!1)):i.items&&$(t,e,i.items)}))},D=(t,e,i)=>{i&&i.forEach((i=>{i.id==e?(i.checked=!1,i.itemObject.checked=!1,A(t,i.parentId)):i.items&&D(t,e,i.items)}))},F=(t,e)=>{P(t,e)},P=(t,e,i)=>{let n;e=Array.isArray(e)?e:[e],n=i||T(t).dataSource,n&&n.forEach((i=>{e.includes(i.id)?(N(t,i),i.parentId&&A(t,i.parentId)):i.items&&P(t,e,i.items)}))},N=(t,e,i)=>{const n=T(t);if(n){const c=n.options.treeview;e&&((c||!c&&"group"!=e.type)&&(e.disabled||(e.checked=null!=i?i:!e.checked,e.itemObject.checked=e.checked,e.indeterminate=e.checked?"determinate":"uncheck")),e.items&&e.items.forEach((n=>{N(t,n,null==i?e.checked:i)})))}},A=(t,e,i)=>{let n;n=i||T(t).dataSource,n&&n.forEach((i=>{if(i.id==e){let e=!0,n=!0;i.items&&i.items.map((t=>{(t.checked||"indeterminate"===t.indeterminate)&&(n=!1),!t.checked&&(e=!1)}));const c=e||n?e?"determinate":"uncheck":"indeterminate";i.indeterminate=c,i.checked="determinate"==c,i.itemObject.checked=i.checked,i.parentId&&A(t,i.parentId)}else i.items&&A(t,e,i.items)}))},L=(t,e,i,n)=>{let c,o=[],r=[];return T(t).isSearchOtherTag=n,c=i||T(t).dataSource,c&&c.forEach((i=>{if(e){var c;i.hidden=!0;for(let t=0;t<e.length;t++)if(e[t].id===i.id){c=e[t];break}if(c&&(i.hidden=!1,T(t).isSearchOtherTag||(i.isSearching=!0),r.push(i),i.checked&&o.push(i),c.items)){const{checkedItems:e,visibledItems:s}=L(t,c.items,i.items,n);e&&(o=[...new Set([...o,...e])]),s&&(r=[...new Set([...r,...s])])}}else i.hidden=!1,i.items&&L(t,null,i.items),r.push(i),i.isSearching=!1})),{checkedItems:null!=o?o:[],visibledItems:null!=r?r:[]}},V=(t,e)=>{let i,n=null;return i=e||T(t).dataSource,i&&i.forEach((e=>{if(e.selected)n=e.itemObject;else if(e.items){const i=V(t,e.items);i&&(n=i)}})),n},q=(t,e)=>{let i,n=[],c=[];return i=e||T(t).dataSource,i&&i.forEach((e=>{var i;const o=Object.assign(Object.assign({},e.itemObject),{ct:e.ct});let r=[],s=[];if(e.checked&&(n.push(o),s.push(Object.assign(Object.assign({},o),{items:[]}))),e.items){const c=q(t,e.items);(null===(i=null==c?void 0:c.checkedList)||void 0===i?void 0:i.length)>0&&(n=[...n,...c.checkedList]),c.nestedResult.length>0&&(r=c.nestedResult)}r.length>0?(0==s.length&&s.push(Object.assign(Object.assign({},o),{items:[]})),s[0].items=r,c.push(s[0])):s.length>0&&(s[0].items=r,c.push(s[0]))})),{checkedList:(null==n?void 0:n.length)>0?n:null,nestedResult:c}},W=(t,e,i)=>{let n,c=[];return n=i||T(t).dataSource,n&&n.forEach((i=>{if(e&&(i.id==e?(i.selected=!0,i.itemObject.selected=i.selected):i.selected&&(i.selected=!1,i.itemObject.selected=i.selected)),i.items){const n=W(t,e,i.items);(null==n?void 0:n.length)>0&&(c=[...c,...n])}i.selected&&c.push(i.itemObject)})),c&&c.length>0?c:null},G=(t,e)=>{let i;i=e||T(t).dataSource,i&&i.forEach((e=>{var i,n,c;e.checked&&(e.checked=!1),e.selected&&(e.selected=!1),e.indeterminate&&(e.indeterminate="uncheck"),(null===(i=e.itemObject)||void 0===i?void 0:i.checked)&&(e.itemObject.checked=!1),(null===(n=e.itemObject)||void 0===n?void 0:n.selected)&&(e.itemObject.selected=!1),(null===(c=e.itemObject)||void 0===c?void 0:c.indeterminate)&&(e.itemObject.indeterminate="uncheck"),e.items&&G(t,e.items)}))},H={setValue:t=>{const{id:e,dataSource:i,options:n}=t,{type:c,treeview:o,checkboxes:r,searchable:a,value:h,name:m,label:b,size:d,disabled:u,readonly:p,highlight:f,required:x,hidden:_,fullWidth:v,height:g,maxHeight:y,minHeight:w,width:k,infoFooter:z,variableText:j,template:O,allOpen:I,keyControl:S,checkAll:C,linkedComponent:T,placeholder:$,searchPlaceholder:D,searchIsOnlyChilds:F,clearable:P,caption:N,noCaption:A,captionType:L,captionError:V,placement:q}=n,W={size:d,checkboxes:r,template:O,allOpen:I,highlight:f,treeview:o},G={id:s((()=>e),l.UID),dataSource:i&&i.length>0&&M(i,W),options:{type:c,treeview:o,checkboxes:r,searchable:a,value:h,name:m,label:b,size:d,disabled:u,readonly:p,highlight:f,required:x,hidden:_,fullWidth:v,height:g,maxHeight:y,minHeight:w,width:k,infoFooter:z,variableText:j,template:O,allOpen:I,keyControl:S,checkAll:C,linkedComponent:T,placeholder:$,searchPlaceholder:D,searchIsOnlyChilds:F,clearable:P,caption:N,noCaption:A,captionType:L,captionError:V,placement:q},totalItems:(null==i?void 0:i.length)>0&&R(i,n.treeview),totalRoots:null==i?void 0:i.length};E.value.set(G.id,G)},removeValue:t=>{E.value.delete(t)},getValue:T,getData:t=>{let e=[];const i=T(t);if(i){const{dataSource:t}=i;e=t}return e},getDataPagination:(t,e=3,i)=>{let n=[];const c=T(t);if(c){const{dataSource:t}=c;n=i?t.filter((t=>i.indexOf(t.id)>-1)).slice(0,e):t.slice(0,e)}return n},openGroup:$,checkedItem:F,filterData:L,getSelected:V,getCheckedList:q,selectedItem:W,addChecked:(t,e)=>{T(t)&&e.forEach((e=>{F(t,e)}))},setClear:G,selectAll:(t,e)=>{const i=T(t).dataSource;i&&i.forEach((i=>{N(t,i,e)}))},removeOtherTags:(t,e,i)=>{let n;if(e=Array.isArray(e)?e:[e],i)n=i;else{const e=T(t);n=e.dataSource}n&&e.forEach((e=>{n.forEach((i=>{i.id==e?(i.checked=!1,i.itemObject.checked=!1):i.items&&D(t,e,i.items)}))}))},onRemoveItems:D,updateOptions:(t,e)=>{Object.keys(T(t).options).forEach((i=>{T(t).options[i]=e[i]}))},removeState:t=>Promise.resolve(E.value.delete(t))};class B{constructor(t,e,i,n){this.elementName="",this.childElementName="",this.keyCode=t,this.element=e,this.elementName=i,this.childElementName=n}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 t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.nextElementSibling)||this.getFirstElement()}getPreviousElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.previousElementSibling)||this.getFirstElement()}getChildElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.querySelectorAll(this.getChildElementName())[0])||null}getParentElement(t){if(t&&t)return t&&t.attributes["data-isroot"]?t:this.getParentElement(t.parentNode)}focusElementIsOpen(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.classList.contains("bcm-list__item--open"))||!1}isRootElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.querySelectorAll(this.getChildElementName()).length)>0}isRootElementIsOpen(){return this.getFocusedElement().classList.contains("bcm-list__item--open")}getFocusedChildElement(){var t;return(null===(t=this.getChildElement())||void 0===t?void 0:t.querySelectorAll(".focused")[0])||null}isLastElement(){var t;return null===(null===(t=this.getFocusedElement())||void 0===t?void 0:t.nextElementSibling)}focusParentElementFirstChild(){var t,e;return this.setFocus(null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.firstChild)}isFirstElement(){var t;return null===(null===(t=this.getFocusedElement())||void 0===t?void 0:t.previousElementSibling)}focusRootElement(){var t,e,i;return this.setFocus(null===(i=null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.firstChild)}nextRootElement(){var t,e,i;return this.setFocus(null===(i=null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.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(t){t.focus()}}class K extends B{constructor(t,e,i,n){super(t,e,".bcm-list__item",".bcm-list__item-childs"),this.isTreeview=!1,this.isCheckBoxes=!1,this.isTreeview=i,this.isCheckBoxes=n}keyUpControl(){this.isTreeview?this.keyUpTreeview():this.isFirstElement()?this.setFocus(this.getLastElement()):this.setFocus(this.getPreviousElement())}keyDownTreeView(){var t;if(this.isTreeview)if(this.isRootElement()&&this.isRootElementIsOpen()){const t=this.getChildElement();t&&this.setFocus(t.firstChild)}else this.isLastElement()&&this.getParentElement(this.getFocusedElement())?this.setFocus(null===(t=this.getParentElement(this.getFocusedElement()))||void 0===t?void 0:t.nextElementSibling):this.setFocus(this.getNextElement())}keyUpTreeview(){if(this.isFirstElement()){const t=this.getParentElement(this.getFocusedElement());this.setFocus(t)}else{const t=this.getPreviousElement();if(t)if(t.classList.contains("bcm-list__item--open")){const e=t.querySelectorAll(this.getChildElementName())[0];console.log({getChildElement:e}),this.setFocus(e.lastChild)}else this.setFocus(t)}}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:t}=this.getFocusedElement();this.openGroup(t)}}keyLeftControl(){if(this.isTreeview&&this.isRootElementIsOpen()&&this.isRootElement()){const{id:t}=this.getFocusedElement();this.openGroup(t)}}keyEnterControl(){}keySpaceControl(){if(this.isCheckBoxes){const{id:t}=this.getFocusedElement();this.checkedItem(t)}}keyDown(){switch(this.getKeyCode()){case f.KeyCode.up:this.keyUpControl();break;case f.KeyCode.down:this.keyDownControl();break;case f.KeyCode.left:this.keyLeftControl();break;case f.KeyCode.right:this.keyRightControl();break;case f.KeyCode.enter:this.keyEnterControl();break;case f.KeyCode.space:this.keySpaceControl()}}keyUp(){}}var U=function(t,e,i,n){var c,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(r=(o<3?c(r):o>3?c(e,i,r):c(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const Y=class{constructor(t){e(this,t),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",7),this.close=i(this,"bcm-close",7),this.debounce=null,this.debounceHandler=l.debounceInput((()=>this.listenResize()),300,!1),this._id=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.infoFooter=!1,this.variableText="item",this.template=void 0,this.allOpen=!1,this.keyControl=!1,this.checkAll=!0,this.stopDeepClean=!1,this.linkedComponent=void 0,this.isOpen=!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.placement=x.Placement["bottom-start"],this.data=[]}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 t=document.querySelectorAll(`#bcm-list-${this._id}`);(null==t?void 0:t.length)>1&&t.forEach(((t,e)=>e>0&&t.remove()))}componentWillRender(){this.calculateLocation()}componentShouldUpdate(t,e,i){Object.keys(this.getOptions()).indexOf(i)>-1&&t!==e&&this.updateOptions()}get containerWidth(){var t,e;return null===(e=null===(t=this.el)||void 0===t?void 0:t.getBoundingClientRect())||void 0===e?void 0:e.width}get tagCount(){return this.containerWidth>0?Math.floor(+(this.containerWidth-100)/85):0}get tagData(){return s((()=>{var t;return null===(t=this.value)||void 0===t?void 0:t.map((t=>({value:t.id,label:h.textLimitter(t.text,7),text:t.tooltipMessage||t.tagTitle||t.text})))}),[])}async componentDidLoad(){if(await this.initState(),"select"==this.type||"autocomplete"==this.type||this.linkedComponent){const t=this.el.querySelector(`#bcm-list-${this._id}`);t&&document.body.appendChild(t)}}disconnectedCallback(){if(this.isOpen=!1,!this.stopDeepClean&&(H.removeState(this._id),this.el.innerHTML="","select"==this.type||"autocomplete"==this.type||this.linkedComponent)){const t=document.querySelectorAll(`#bcm-list-${this._id}`);(null==t?void 0:t.length)&&(t.forEach((t=>t.remove())),this.el.remove())}}watchId(t,e){H.removeState(e),this.initState()}handleValueChange(t,e){var i;l.objectIsEmpty(this.returnFilterData)&&this.handleIndeterminate((null===(i=this.value)||void 0===i?void 0:i.length)||0,this.totalData),this.checkboxes?m.compareTwoArrayIsSame(t,e)||(this.bcmChecklist.emit(this.value),this.change.emit(this.value)):(null==t?void 0:t.id)!=(null==e?void 0:e.id)&&this.change.emit(this.value)}watchReturnFilterData(t){var e;const{checkedItems:i,visibledItems:n}=t;i&&n?this.handleIndeterminate(i.length,n.length):this.handleIndeterminate((null===(e=this.value)||void 0===e?void 0:e.length)||0,this.totalData)}async handleOpen(){this.isOpen?(this.open.emit(),this.calculateLocation(),this.onSelectSearch()):(this.listScrollToTop(),this.close.emit(),await p(100),this.unSelectOther())}listScrollToTop(){const t=document.querySelector(`#bcm-list-${this._id}`);t&&(t.querySelector(".scrolling").scrollTop=0)}async dataChanged(t,e){m.compareTwoArrayIsSame(t,e)||await this.initState()}isIntersecting(t){const e=null==t?void 0:t.target;e&&e.id===this._id&&this.listenResize()}handleSlotItems(t){var e;(null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.length)>0&&(this.data=t.detail)}handleChange(t){t.target.id==`bcm-list-input-tag-container-${this._id}-autocomplete-input`&&t.stopImmediatePropagation()}handleResize(){this.calculateLocation(),this.debounceHandler()}handleWheel(t){if(this.isOpen){const e=document.querySelector(`#bcm-list-${this._id}`);e&&l.findEventPath(t,e)?("select"==this.type||"autocomplete"==this.type||this.linkedComponent)&&this.calculateLocation():this.hide()}}clearAutocomplete(){if("autocomplete"==this.type){const t=this.getAutoCompleteInput();t&&t.handleClear(!1)}}async handleSelectOtherTag(t){if(this.disabled)return;const{id:e,checked:i}=t.detail;this.isSelectedOther=i,e&&(i?this.filterOtherList(e):this.unSelectOther(),this.isOpen=!0)}async handleDeleteTag(t){var e;if(this.disabled)return;const{id:i}=t.detail;this.isSelectedOther&&this.unSelectOther(),Array.isArray(i)?H.removeOtherTags(this._id,i):H.checkedItem(this._id,i),this.value=(await this.getCheckedList()).checkedList,this.handleIndeterminate((null===(e=this.value)||void 0===e?void 0:e.length)||0,this.totalData)}async handleSelectTag(t){this.disabled||(this.clearAutocomplete(),this.onSelectSearch(),this.unSelectOther())}handleClick(t){var e;if(this.disabled)return;const i=document.querySelector(`#bcm-list-${this._id}`),n=l.findEventPath(t,this.el)||i&&l.findEventPath(t,i);if(n&&(null!==this.debounce&&(t.preventDefault(),t.stopPropagation(),clearTimeout(this.debounce),this.debounce=null),this.debounce=setTimeout((()=>{this.debounce=null}),300)),!n&&"autocomplete"==this.type){const t=this.getAutoCompleteInput();t&&t.setValue(this.checkboxes?"":(null===(e=this.value)||void 0===e?void 0:e.text)||"")}const c=l.findEventPathWithKey(t,"className",["bcm-tag"]),o=l.findEventPathWithKey(t,"className",["bcm-tag bcm-tag--other"]),r=l.findEventPathWithKey(t,"id",[`bcm-list-input-${this._id}`,`bcm-list-label-${this._id}`]),s=l.findEventPathWithKey(t,"className",["right close-button"]);r&&!s&&"autocomplete"!=this.type&&(this.isOpen=!(!c&&!o&&this.isOpen)),i&&this.isOpen&&(i.contains(t.target)||this.el.contains(t.target)||(this.isOpen=!1))}bcmOnSearchClear(t){var e,i;"autocomplete"==this.type&&((null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.id)!==`bcm-list-${this._id}-search`&&(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||t.detail&&this.setClear())}bcmOnSearch(t){var e,i,n,c,o,r;(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.id)!==`bcm-list-${this._id}-search`&&(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||(this.searchGetParents=s((()=>{var e;return null===(e=t.detail)||void 0===e?void 0:e.parentIndex}),null),this.searchResultLimit=10,this.searchFound=null!=(null===(n=t.detail)||void 0===n?void 0:n.matching)?null===(c=t.detail)||void 0===c?void 0:c.matching.length:null,this.returnFilterData=H.filterData(this._id,null===(o=t.detail)||void 0===o?void 0:o.nestedResult),this.searchFound>0&&this.highlight&&(this.highlightText=null===(r=t.detail)||void 0===r?void 0:r.value),"autocomplete"==this.type&&(this.isOpen=!0),t.detail.result||("autocomplete"==this.type?this.isOpen=!1:(this.returnFilterData={},H.filterData(this._id,null)),this.searchResultLimit=null,this.highlightText=null),this.markForCheck())}handleKeyDown(t){const e=t.keyCode||t.which;if(e===x.KeyCode.escape&&this.isOpen&&(this.isOpen=!1,t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),this.keyControl){const t=new K(e,this.el,this.treeview,this.checkboxes);t.openGroup=t=>{this.openGroup(t)},t.checkedItem=t=>{this.checkedItem(t)},t.keyDown()}}handleKeyUp(t){if(this.keyControl&&l.findEventPath(t,this.el)){const t=document.getElementById(`bcm-list-${this._id}`);if(t){const e=t.querySelectorAll(".bcm-list__item.focused");if(e.length>0){const i=t.querySelector("main"),n=e[0].offsetHeight,c=i.offsetHeight,o=e[0].offsetTop;o>c&&(i.scrollTop=o-c/2+n/2),o<c&&(i.scrollTop=o-c/2-n/2)}}}}async set(t){t?(Array.isArray(t)&&this.addChecked(t),"string"!=typeof t&&"number"!=typeof t||this.selectedItem(t)):this.setClear()}async get(){var t,e;return this.value?this.checkboxes?null===(e=null===(t=await this.getCheckedList())||void 0===t?void 0:t.checkedList)||void 0===e?void 0:e.map((t=>t.id)):this.value.id:null}async getCheckedList(){return Promise.resolve(H.getCheckedList(this._id))}async getSelected(){return Promise.resolve(H.getSelected(this._id))}async getValue(){return Promise.resolve(this.value)}async addChecked(t=[],e=!1,i=!0){return t&&t.length>0&&(e||(H.setClear(this._id),await p(10)),await H.addChecked(this._id,t),await p(10),i&&(this.value=(await this.getCheckedList()).checkedList),this.markForCheck()),Promise.resolve(this.value)}async selected(t){return!!t&&Promise.resolve(await this.selectedItem(t))}async setClear(t){return H.setClear(this._id),this.value=null,this.inputText="",this.isOpen=!1,this.selectAllItem.indeterminate="uncheck",this.markForCheck(),t&&(t.stopPropagation(),t.preventDefault()),await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await p(10),Promise.resolve()}async show(){return this.isOpen=!0,Promise.resolve()}async hide(){return this.isOpen=!1,Promise.resolve()}updateOptions(){H.updateOptions(this._id,this)}handleIndeterminate(t,e){this.selectAllItem=Object.assign(Object.assign({},this.selectAllItem),{indeterminate:this.checkboxes&&t>0?t===e?"check":"indeterminate":"uncheck",checked:!!(this.checkboxes&&t>0)&&t===e})}listenResize(){this.calculateLocation(),this.markForCheck()}async unSelectOther(){return await this.onClearSearch(),this.isSelectedOther=!1,this.searchFound=null,this.returnFilterData={},H.filterData(this._id,null),await p(10),Promise.resolve()}async onClearSearch(){const t=document.getElementById(`bcm-list-${this._id}-search`);return t&&await t.handleClear(),Promise.resolve()}async onSelectSearch(){const t=document.getElementById(`bcm-list-${this._id}-search`);t&&(await p(100),t.onBcmFocus(),t.onBcmSelect())}async filterOtherList(t){const e=(await this.getCheckedList()).nestedResult,i=l.convertIdsToNestedData(t,e);this.returnFilterData=await H.filterData(this._id,i,null,!0),this.searchFound=(null==t?void 0:t.length)||0,this.limit=500,this.searchGetParents=null,await p(1e3),this.markForCheck()}async initState(){var t,e,i;this.onClearSearch(),await H.setValue({id:this._id,dataSource:this.data&&s((()=>"string"==typeof this.data?JSON.parse(this.data):this.data),[]),options:this});const{totalRoots:n,totalItems:c}=H.getValue(this._id);if(this.totalData=c,this.totalRootData=n,this.value=this.checkboxes?(await this.getCheckedList()).checkedList:H.selectedItem(this._id)?H.selectedItem(this._id)[0]:null,this.checkboxes||(this.inputText=(null===(t=this.value)||void 0===t?void 0:t.text)||null),this.checkboxes&&(null===(e=this.value)||void 0===e?void 0:e.length)>0){const t=[];this.value.forEach((e=>{e.items&&0!==e.items.length||t.push(e.id)})),await this.addChecked(t,!1,!1)}await this.handleIndeterminate(null===(i=this.value)||void 0===i?void 0:i.length,this.totalData),await this.markForCheck()}async markForCheck(){await p(10),this.tick=l.UID()}getOptions(){return s((()=>H.getValue(this._id).options),{})}getItems(){return this.isSelectedOther?this.returnFilterData.checkedItems:s((()=>H.getData(this._id)),[])}getLimitedItems(t){return s((()=>H.getDataPagination(this._id,this.searchResultLimit||this.limit,t)),[])}openGroup(t){H.openGroup(this._id,t),this.markForCheck()}focusItem(t){if(t.target.classList.contains("bcm-list__item")){const e=t.target,i=document.getElementById(`bcm-list-${this._id}`);if(i&&i.querySelectorAll(".bcm-list__item").length>0){const t=i.querySelector(".bcm-list__item.focused");t&&t.classList.remove("focused"),e.classList.add("focused")}}}async selectedItem(t){var e;if(!this.checkboxes&&(this.value=H.selectedItem(this._id,t)?H.selectedItem(this._id,t)[0]:null,this.inputText=(null===(e=this.value)||void 0===e?void 0:e.text)||null,this.isOpen=!1,this.markForCheck(),"autocomplete"==this.type&&this.value)){const t=this.getAutoCompleteInput();t&&setTimeout((()=>{var e;t.setValue((null===(e=this.value)||void 0===e?void 0:e.text)||""),this.isOpen=!1}),100)}return Promise.resolve(this.value)}async checkedItem(t){"select-all"===t?H.selectAll(this._id,!this.selectAllItem.checked):H.checkedItem(this._id,t),this.value=(await this.getCheckedList()).checkedList,this.changeVisibleCheckeds(),this.markForCheck()}changeVisibleCheckeds(){const{visibledItems:t}=this.returnFilterData;this.returnFilterData={visibledItems:t,checkedItems:t&&t.filter((t=>t.checked))||[]}}getAutoCompleteInput(){return document.getElementById(`bcm-list-input-tag-container-${this._id}-autocomplete-input`)}dataScrollEvent(t){let e=0,i=new IntersectionObserver((t=>{0===e&&(e++,t[0].isIntersecting&&(this.limit+=15,this.searchResultLimit+=15,i.disconnect(),i=null))}),this.options);i.observe(t.target.lastElementChild)}async calculateLocation(){var t,e;if("select"==this.type||"autocomplete"==this.type||this.linkedComponent){const n=document.getElementById(`bcm-list-${this._id}`);var i=this.placement;const c=document.getElementById(this.linkedComponent?this.linkedComponent:`bcm-list-input-${this._id}`);if(n&&c){b(n,c,i,(t=>i=t)),await p(10);let o=d(i,c),r=0,s=0;if(this.linkedComponent){const i=document.getElementById(this.linkedComponent);if(i){if(!i.noCaption){const e=(null===(t=i.shadowRoot)||void 0===t?void 0:t.querySelector(".bcm-caption-area"))||i.querySelector(".bcm-caption-area");e&&(r=e.offsetHeight||e.clientHeight)}const n=(null===(e=i.shadowRoot)||void 0===e?void 0:e.querySelector(".bcm-label"))||i.querySelector(".bcm-label");n&&(s=n.offsetHeight||n.clientHeight)}}n.style.width=this.fullWidth?c.offsetWidth+"px":this.width||"auto",n.style.height=this.height.indexOf("%")>-1?.01*a.toNumber(this.height)*window.innerHeight-o[0]-50+"px":this.height,n.style.minHeight=this.minHeight;const l="top"==i.split("-")[0]?window.innerHeight-(window.innerHeight-o[0])-50:window.innerHeight-o[0]-50;n.style.maxHeight=this.maxHeight.indexOf("%")>-1?.01*a.toNumber(this.maxHeight)*l+"px":a.toNumber(this.maxHeight)<l?this.maxHeight:l+"px",b(n,c,i,(t=>i=t)),await p(10),o=d(i,c),n.style.top=("top"==i.split("-")[0]?o[0]-n.offsetHeight+s:o[0]-r)+"px",n.style.left="end"==i.split("-")[1]?o[1]-n.offsetWidth+"px":o[1]+"px",n.classList.toggle("bcm-list--top","top"==i.split("-")[0]),this.calculatedViewport=!0}}}render(){const{checkboxes:e,treeview:i,label:c,size:o,disabled:r,readonly:s,required:l,hidden:a,fullWidth:h,searchable:m}=this.getOptions(),b=v("bcm-list",`bcm-list__size-${o}`,`bcm-list__${this.type}`,"large"===o?"size-3":"size-2",{error:this.captionType==x.Status.error,"full-width":h,"bcm-list__linked":this.linkedComponent,hidden:a,readonly:s,disabled:r}),d=v("bcm-list__container",this.linkedComponent?"bcm-list__type-linked-component":`bcm-list__type-${this.type}`,{"is-open":this.isOpen&&this.calculatedViewport,error:this.captionType==x.Status.error,"full-width":h,hidden:a,readonly:s,disabled:r}),u=v("bcm-list__input"),p="select"==this.type||"autocomplete"==this.type||this.linkedComponent;return t(n,{class:b,tabindex:"0",style:{"--width":h?"100%":this.width,"--height":p?"100%":this.height,"--max-height":p?"inherit":this.maxHeight,"--min-height":p?"inherit":this.minHeight}},t("div",{id:`bcm-list-label-${this._id}`,class:"bcm-list__label"},c&&t("div",null,t(g,{size:this.size,type:this.captionType,value:c,required:l,htmlFor:this._id}))),"select"==this.type&&t("div",{id:`bcm-list-input-${this._id}`,class:u},t("span",{class:v("bcm-list__input-container",{"type-single":!e,"value-empty":!this.value})},this.checkboxes?this.value&&this.value.length>0?t("bcm-rc-overflow",{data:this.tagData,maxCount:this.tagCount}):t("span",{class:"bcm-list__input-placeholder"},this.placeholder):this.value?this.inputText:t("span",{class:"bcm-list__input-placeholder"},this.placeholder)),t("span",{class:v("bcm-list__input-buttons",{disabled:r})},this.clearable&&this.value&&t("div",{class:"bcm-list__input-buttons-button"},t("bcm-icon",{icon:"fal fa-times",onClick:t=>!r&&this.setClear(t)})),t("div",{class:`bcm-list__input-buttons-button caret-is ${this.isOpen&&this.calculatedViewport&&"caret-is-open"}`},t("bcm-icon",{icon:"far fa-angle-down"})))),"autocomplete"===this.type&&t("div",{id:`bcm-list-input-${this._id}`,class:v(u,{"bcm-list__input-autocomplete":"autocomplete"==this.type})},t("span",{class:"bcm-list__input-container",id:`bcm-list-input-tag-container-${this._id}`},this.checkboxes&&t("span",{class:"bcm-list__input-tag-container",id:`bcm-list-input-tag-container-${this._id}-autocomplete`}),t("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}))),t(C,{highlight:this.highlightText,searchable:"autocomplete"!=this.type&&m,bcmListContainer:d,checkboxes:e,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,checkAll:this.checkAll,data:this.getItems(),width:this.width,height:this.height,size:this.size,selectAllItem:this.selectAllItem,onScrollEvent:t=>this.dataScrollEvent(t),items:this.getLimitedItems(this.searchGetParents),selectedItem:t=>this.selectedItem(t),checkedItem:t=>this.checkedItem(t),openGroup:t=>this.openGroup(t),focusItem:t=>this.focusItem(t),emptyText:this.emptyText,emptyIcon:this.emptyIcon}),t(_,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return c(this)}static get watchers(){return{_id:["watchId"],value:["handleValueChange"],returnFilterData:["watchReturnFilterData"],isOpen:["handleOpen"],data:["dataChanged"]}}};function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},J.apply(this,arguments)}function Q(t){return Q="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},Q(t)}function X(t,e,i){return(e=function(t){var e=function(t){if("object"!==Q(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==Q(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Q(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Z(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function tt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(i),!0).forEach((function(e){X(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Z(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,c,o,r,s=[],l=!0,a=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){a=!0,c=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(a)throw c}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return et(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?et(t,e):void 0}}(t,e)||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 nt(t,e){if(null==t)return{};var i,n,c=function(t,e){if(null==t)return{};var i,n,c={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(i=o[n])>=0||(c[i]=t[i]);return c}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e.indexOf(i=o[n])>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(c[i]=t[i])}return c}function ct(){return ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ct.apply(this,arguments)}
5
+ import{h as t,r as e,c as i,H as n,g as c}from"./p-6d7fe687.js";import{I as o}from"./p-54c0916c.js";import{J as r}from"./p-f3c6b8c8.js";import"./p-2fc584c4.js";import"./p-626a65e9.js";import{s,G as l}from"./p-be02416d.js";import{N as a}from"./p-3806c36a.js";import{S as h}from"./p-8d0ca8c2.js";import{V as m}from"./p-1dbebb3b.js";import"./p-5ae0a59b.js";import{g as b,s as d}from"./p-dbc4c30c.js";import{p as u,d as p}from"./p-3c7a0345.js";import{a as f,B as x}from"./p-a429e85b.js";import{C as _}from"./p-a56e8c98.js";import{c as v}from"./p-d65a1e21.js";import"./p-3fac58f7.js";import{L as g}from"./p-c49d038e.js";import"./p-2e73d572.js";import{c as y}from"./p-3cde7f38.js";import{r as w,a as k}from"./p-1eabd5dc.js";import{c as z}from"./p-6f56f8ca.js";import{I as j}from"./p-b2cc2a67.js";import"./p-436364c8.js";import"./p-4aa0e6b1.js";import"./p-686641a5.js";import"./p-74b2d896.js";const O=({disabled:e,checked:i,readonly:n,required:c,indeterminate:o,hidden:r,captionType:s,_id:l})=>{const a=v("bcm-checkbox","bcm-checkbox__type-default","bcm-checkbox-size-medium",{error:s==f.Status.error,hidden:r,checked:i,disabled:e,required:c,readonly:n}),h=v("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+o,{"bcm-checkbox__label-icon-checked":i}),m=v("bcm-checkbox__label");return t("div",{class:a},t("input",{tabindex:"-1",id:l,type:"checkbox",checked:i,disabled:e,required:c,readonly:n}),t("label",{class:m,htmlFor:l},t("span",{class:h},t("bcm-icon",{icon:"far fa-check"}))))},I=({selected:e,total:i,found:n,multiple:c,variableText:o})=>(i=i||0,o=o?u(o,i):"items",t("footer",{class:"bcm-info-footer"},t("bcm-text",{scale:"size-1",color:"grey-8"},c&&e>0&&` ( ${e} selected ) `,` Total ${i} `,null!=n&&` / ${n} `,` ${o} found. `))),S=({item:e,treeview:i,highlight:n,checkboxes:c,size:o,selectedItem:r,openGroup:s,checkedItem:l,focusItem:a,searchIsOnlyChilds:m})=>{const b=e.items&&e.items.length>0;var d=h.htmlEntities(e.text);let u=[];if(n&&h.slugify(d).includes(h.slugify(n))&&(m&&(!m||b&&(i||"group"==e.type))||(d=h.highlight(d,n))),"group"!=e.type&&e.template){const t=e.template.replace(/\s/g,"").match(/\{{[^}}]+\}/g).map((t=>t.replace(/[{}]/g,""))),i=Object.keys(e.itemObject);u=t.filter((t=>i.includes(t)))}d=e.isHtmlContent?e.isHtmlContent:e.template&&u.length>0?h.templateParser(e.template,Object.assign(Object.assign({},e.itemObject),{text:d})):d;const p=!i&&"group"==e.type&&!e.clickable,f=e.disabled,x=e.readonly,_=()=>{e.open=e.isSearching,s(e.id)};return t("div",{id:e.id,hidden:e.hidden,"on-focus":t=>!p&&!f&&a(t),class:v("bcm-list__item","bcm-list__item-"+o,{"bcm-list__item--group":!i&&"group"==e.type,"bcm-list__item--readonly":x})},t("div",{class:v("bcm-list__item-content",!c&&e.selected&&"selected",{disabled:f})},i&&t("div",{class:"bcm-list__item-content-collapse-icon",onClick:()=>_()},b&&t("bcm-icon",{icon:v("fas fa-caret-"+(e.isSearching||e.open?"down":"right"))})),t("div",{class:v("bcm-list__item-content-text",{treeview:i}),onClick:t=>{var i;((i=t).path||i.composedPath()).filter((t=>t.attributes&&t.attributes.getNamedItem("unlinked")))[0]||(x&&_(),!p&&!f&&!x&&(c?l(e.id):r(e.id)))}},c&&(i||!i&&"group"!=e.type)&&t("div",{class:"bcm-list__item-content-text-checkbox"},t(O,{indeterminate:e.indeterminate,checked:e.checked,disabled:e.disabled})),t("span",Object.assign({class:"bcm-list__item-content-text-inner"},e.title&&{title:e.title},{innerHTML:d})))),(i||!i&&"group"==e.type)&&b&&t("div",{class:"bcm-list__item-childs"},(e.isSearching||e.open||!i&&"group"==e.type)&&e.items.map((e=>t(S,{highlight:n,item:e,searchIsOnlyChilds:m,treeview:i,checkboxes:c,size:o,selectedItem:r,checkedItem:l,openGroup:t=>s(t),focusItem:t=>a(t)})))))},C=({highlight:e,selectAllItem:i,bcmListContainer:n,treeview:c,checkboxes:o,checkAll:r,infoFooter:s,value:l,totalData:a,searchFound:h,variableText:m,_id:b,tempId:d,data:u,width:p,height:f,size:x,searchPlaceholder:_,minSearchLength:v,selectedItem:g,openGroup:y,checkedItem:w,onScrollEvent:k,focusItem:z,items:j,searchable:O,searchIsOnlyChilds:C,emptyText:E,emptyIcon:M})=>{const T=!(c&&h>0||h>0);return t("div",{id:`bcm-list-${b}`,class:n,"temp-id":`bcm-list-${d}`,style:{"--height":f,"--width":p}},u&&O&&t("section",{class:"bcm-list__container-search"},t("bcm-search",{size:x,id:`bcm-list-${b}-search`,data:u,clearable:!0,placeholder:_,"min-search-length":v,searchIsOnlyChilds:C})),t("main",{onScroll:t=>k(t),class:"scrolling",style:{"overscroll-behavior":"none"}},t("div",{style:{"min-height":`${(null==h?c?j.length:a:h)*("small"===x?28:"medium"===x?36:48)||0}px`,"overscroll-behavior":"none",height:"100%",display:"flex","flex-direction":"column"}},r&&0!=h&&j&&j.length>0&&o&&T&&t("section",{class:"bcm-list__container-select-all"},t(S,{size:x,item:i,treeview:!1,checkboxes:!0,selectedItem:t=>g(t),checkedItem:t=>w(t),openGroup:t=>y(t),focusItem:t=>z(t)})),j.map((i=>t(S,{highlight:e,size:x,item:i,searchIsOnlyChilds:C,treeview:c,checkboxes:o,selectedItem:t=>g(t),checkedItem:t=>w(t),openGroup:t=>y(t),focusItem:t=>z(t)}))),(!j||0===j.length)&&0!=h&&t("section",{class:"bcm-list__container-no-data"},t("bcm-empty",{style:{height:"auto"},icon:M},t("span",{innerHTML:E||"No data"}))),0==h&&t("section",{class:"bcm-list__container-no-data"},t("bcm-empty",{style:{height:"auto"},icon:M},t("span",{innerHTML:E||"No Data Found"}))))),s&&u&&u.length>0&&t(I,{selected:null==l?void 0:l.length,total:a,found:h,multiple:o,variableText:m}))},{state:E}=y({value:new Map}),M=(t,e,i,n="0.")=>{let c=[];return t&&t.length>0&&(c=t.map(((t,c)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({itemObject:t},t),e),{parentId:s((()=>i),null),open:e.allOpen||t.open||!1}),(e.treeview||!e.treeview&&"group"==t.type)&&t.items&&t.items.length>0?{items:s((()=>M(t.items,e,t.id,`${n}${c}`)),[])}:{items:[]}),{ct:`${n}${c}`})))),c},T=t=>s((()=>E.value.get(t)),{}),$=(t,e)=>{let i=0;return t.forEach((t=>{(e||!e&&"group"!=t.type)&&(i+=1),(e||!e&&"group"==t.type)&&t.items&&(i+=$(t.items,e))})),i},R=(t,e,i,n)=>{let c;c=i||T(t).dataSource,c&&c.forEach((i=>{null!=n?i.open=n:i.id==e?(i.open=!i.open,i.isSearching=i.open,!i.open&&i.items&&R(t,e,i.items,!1)):i.items&&R(t,e,i.items)}))},D=(t,e,i)=>{i&&i.forEach((i=>{i.id==e?(i.checked=!1,i.itemObject.checked=!1,A(t,i.parentId)):i.items&&D(t,e,i.items)}))},F=(t,e)=>{P(t,e)},P=(t,e,i)=>{let n;e=Array.isArray(e)?e:[e],n=i||T(t).dataSource,n&&n.forEach((i=>{e.includes(i.id)?(N(t,i),i.parentId&&A(t,i.parentId)):i.items&&P(t,e,i.items)}))},N=(t,e,i)=>{const n=T(t);if(n){const c=n.options.treeview;e&&((c||!c&&"group"!=e.type)&&(e.disabled||(e.checked=null!=i?i:!e.checked,e.itemObject.checked=e.checked,e.indeterminate=e.checked?"determinate":"uncheck")),e.items&&e.items.forEach((n=>{N(t,n,null==i?e.checked:i)})))}},A=(t,e,i)=>{let n;n=i||T(t).dataSource,n&&n.forEach((i=>{if(i.id==e){let e=!0,n=!0;i.items&&i.items.map((t=>{(t.checked||"indeterminate"===t.indeterminate)&&(n=!1),!t.checked&&(e=!1)}));const c=e||n?e?"determinate":"uncheck":"indeterminate";i.indeterminate=c,i.checked="determinate"==c,i.itemObject.checked=i.checked,i.parentId&&A(t,i.parentId)}else i.items&&A(t,e,i.items)}))},L=(t,e,i,n)=>{let c,o=[],r=[];return T(t).isSearchOtherTag=n,c=i||T(t).dataSource,c&&c.forEach((i=>{if(e){var c;i.hidden=!0;for(let t=0;t<e.length;t++)if(e[t].id===i.id){c=e[t];break}if(c&&(i.hidden=!1,T(t).isSearchOtherTag||(i.isSearching=!0),r.push(i),i.checked&&o.push(i),c.items)){const{checkedItems:e,visibledItems:s}=L(t,c.items,i.items,n);e&&(o=[...new Set([...o,...e])]),s&&(r=[...new Set([...r,...s])])}}else i.hidden=!1,i.items&&L(t,null,i.items),r.push(i),i.isSearching=!1})),{checkedItems:null!=o?o:[],visibledItems:null!=r?r:[]}},V=(t,e)=>{let i,n=null;return i=e||T(t).dataSource,i&&i.forEach((e=>{if(e.selected)n=e.itemObject;else if(e.items){const i=V(t,e.items);i&&(n=i)}})),n},q=(t,e)=>{let i,n=[],c=[];return i=e||T(t).dataSource,i&&i.forEach((e=>{var i;const o=Object.assign(Object.assign({},e.itemObject),{ct:e.ct});let r=[],s=[];if(e.checked&&(n.push(o),s.push(Object.assign(Object.assign({},o),{items:[]}))),e.items){const c=q(t,e.items);(null===(i=null==c?void 0:c.checkedList)||void 0===i?void 0:i.length)>0&&(n=[...n,...c.checkedList]),c.nestedResult.length>0&&(r=c.nestedResult)}r.length>0?(0==s.length&&s.push(Object.assign(Object.assign({},o),{items:[]})),s[0].items=r,c.push(s[0])):s.length>0&&(s[0].items=r,c.push(s[0]))})),{checkedList:(null==n?void 0:n.length)>0?n:null,nestedResult:c}},W=(t,e,i)=>{let n,c=[];return n=i||T(t).dataSource,n&&n.forEach((i=>{if(e&&(i.id==e?(i.selected=!0,i.itemObject.selected=i.selected):i.selected&&(i.selected=!1,i.itemObject.selected=i.selected)),i.items){const n=W(t,e,i.items);(null==n?void 0:n.length)>0&&(c=[...c,...n])}i.selected&&c.push(i.itemObject)})),c&&c.length>0?c:null},G=(t,e)=>{let i;i=e||T(t).dataSource,i&&i.forEach((e=>{var i,n,c;e.checked&&(e.checked=!1),e.selected&&(e.selected=!1),e.indeterminate&&(e.indeterminate="uncheck"),(null===(i=e.itemObject)||void 0===i?void 0:i.checked)&&(e.itemObject.checked=!1),(null===(n=e.itemObject)||void 0===n?void 0:n.selected)&&(e.itemObject.selected=!1),(null===(c=e.itemObject)||void 0===c?void 0:c.indeterminate)&&(e.itemObject.indeterminate="uncheck"),e.items&&G(t,e.items)}))},H={setValue:t=>{const{id:e,dataSource:i,options:n}=t,{type:c,treeview:o,checkboxes:r,searchable:a,value:h,name:m,label:b,size:d,disabled:u,readonly:p,highlight:f,required:x,hidden:_,fullWidth:v,height:g,maxHeight:y,minHeight:w,width:k,infoFooter:z,variableText:j,template:O,allOpen:I,keyControl:S,checkAll:C,linkedComponent:T,placeholder:R,searchPlaceholder:D,searchIsOnlyChilds:F,clearable:P,caption:N,noCaption:A,captionType:L,captionError:V,placement:q}=n,W={size:d,checkboxes:r,template:O,allOpen:I,highlight:f,treeview:o},G={id:s((()=>e),l.UID),dataSource:i&&i.length>0&&M(i,W),options:{type:c,treeview:o,checkboxes:r,searchable:a,value:h,name:m,label:b,size:d,disabled:u,readonly:p,highlight:f,required:x,hidden:_,fullWidth:v,height:g,maxHeight:y,minHeight:w,width:k,infoFooter:z,variableText:j,template:O,allOpen:I,keyControl:S,checkAll:C,linkedComponent:T,placeholder:R,searchPlaceholder:D,searchIsOnlyChilds:F,clearable:P,caption:N,noCaption:A,captionType:L,captionError:V,placement:q},totalItems:(null==i?void 0:i.length)>0&&$(i,n.treeview),totalRoots:null==i?void 0:i.length};E.value.set(G.id,G)},removeValue:t=>{E.value.delete(t)},getValue:T,getData:t=>{let e=[];const i=T(t);if(i){const{dataSource:t}=i;e=t}return e},getDataPagination:(t,e=3,i)=>{let n=[];const c=T(t);if(c){const{dataSource:t}=c;n=i?t.filter((t=>i.indexOf(t.id)>-1)).slice(0,e):t.slice(0,e)}return n},openGroup:R,checkedItem:F,filterData:L,getSelected:V,getCheckedList:q,selectedItem:W,addChecked:(t,e)=>{T(t)&&e.forEach((e=>{F(t,e)}))},setClear:G,selectAll:(t,e)=>{const i=T(t).dataSource;i&&i.forEach((i=>{N(t,i,e)}))},removeOtherTags:(t,e,i)=>{let n;if(e=Array.isArray(e)?e:[e],i)n=i;else{const e=T(t);n=e.dataSource}n&&e.forEach((e=>{n.forEach((i=>{i.id==e?(i.checked=!1,i.itemObject.checked=!1):i.items&&D(t,e,i.items)}))}))},onRemoveItems:D,updateOptions:(t,e)=>{Object.keys(T(t).options).forEach((i=>{T(t).options[i]=e[i]}))},removeState:t=>Promise.resolve(E.value.delete(t))};class B{constructor(t,e,i,n){this.elementName="",this.childElementName="",this.keyCode=t,this.element=e,this.elementName=i,this.childElementName=n}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 t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.nextElementSibling)||this.getFirstElement()}getPreviousElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.previousElementSibling)||this.getFirstElement()}getChildElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.querySelectorAll(this.getChildElementName())[0])||null}getParentElement(t){if(t&&t)return t&&t.attributes["data-isroot"]?t:this.getParentElement(t.parentNode)}focusElementIsOpen(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.classList.contains("bcm-list__item--open"))||!1}isRootElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.querySelectorAll(this.getChildElementName()).length)>0}isRootElementIsOpen(){return this.getFocusedElement().classList.contains("bcm-list__item--open")}getFocusedChildElement(){var t;return(null===(t=this.getChildElement())||void 0===t?void 0:t.querySelectorAll(".focused")[0])||null}isLastElement(){var t;return null===(null===(t=this.getFocusedElement())||void 0===t?void 0:t.nextElementSibling)}focusParentElementFirstChild(){var t,e;return this.setFocus(null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.firstChild)}isFirstElement(){var t;return null===(null===(t=this.getFocusedElement())||void 0===t?void 0:t.previousElementSibling)}focusRootElement(){var t,e,i;return this.setFocus(null===(i=null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.firstChild)}nextRootElement(){var t,e,i;return this.setFocus(null===(i=null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.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(t){t.focus()}}class K extends B{constructor(t,e,i,n){super(t,e,".bcm-list__item",".bcm-list__item-childs"),this.isTreeview=!1,this.isCheckBoxes=!1,this.isTreeview=i,this.isCheckBoxes=n}keyUpControl(){this.isTreeview?this.keyUpTreeview():this.isFirstElement()?this.setFocus(this.getLastElement()):this.setFocus(this.getPreviousElement())}keyDownTreeView(){var t;if(this.isTreeview)if(this.isRootElement()&&this.isRootElementIsOpen()){const t=this.getChildElement();t&&this.setFocus(t.firstChild)}else this.isLastElement()&&this.getParentElement(this.getFocusedElement())?this.setFocus(null===(t=this.getParentElement(this.getFocusedElement()))||void 0===t?void 0:t.nextElementSibling):this.setFocus(this.getNextElement())}keyUpTreeview(){if(this.isFirstElement()){const t=this.getParentElement(this.getFocusedElement());this.setFocus(t)}else{const t=this.getPreviousElement();if(t)if(t.classList.contains("bcm-list__item--open")){const e=t.querySelectorAll(this.getChildElementName())[0];console.log({getChildElement:e}),this.setFocus(e.lastChild)}else this.setFocus(t)}}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:t}=this.getFocusedElement();this.openGroup(t)}}keyLeftControl(){if(this.isTreeview&&this.isRootElementIsOpen()&&this.isRootElement()){const{id:t}=this.getFocusedElement();this.openGroup(t)}}keyEnterControl(){}keySpaceControl(){if(this.isCheckBoxes){const{id:t}=this.getFocusedElement();this.checkedItem(t)}}keyDown(){switch(this.getKeyCode()){case f.KeyCode.up:this.keyUpControl();break;case f.KeyCode.down:this.keyDownControl();break;case f.KeyCode.left:this.keyLeftControl();break;case f.KeyCode.right:this.keyRightControl();break;case f.KeyCode.enter:this.keyEnterControl();break;case f.KeyCode.space:this.keySpaceControl()}}keyUp(){}}var U=function(t,e,i,n){var c,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(r=(o<3?c(r):o>3?c(e,i,r):c(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const Y=class{constructor(t){e(this,t),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",7),this.close=i(this,"bcm-close",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.infoFooter=!1,this.variableText="item",this.template=void 0,this.allOpen=!1,this.keyControl=!1,this.checkAll=!0,this.stopDeepClean=!1,this.linkedComponent=void 0,this.isOpen=!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.placement=x.Placement["bottom-start"],this.data=[]}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 t=document.querySelectorAll(`#bcm-list-${this._id}`);(null==t?void 0:t.length)>1&&t.forEach(((t,e)=>e>0&&t.remove()))}componentWillRender(){this.calculateLocation()}componentShouldUpdate(t,e,i){Object.keys(this.getOptions()).indexOf(i)>-1&&t!==e&&this.updateOptions()}get containerWidth(){var t,e;return null===(e=null===(t=this.el)||void 0===t?void 0:t.getBoundingClientRect())||void 0===e?void 0:e.width}get tagCount(){return this.containerWidth>0?Math.floor(+(this.containerWidth-100)/85):0}get tagData(){return s((()=>{var t;return null===(t=this.value)||void 0===t?void 0:t.map((t=>({value:t.id,label:h.textLimitter(t.text,7),text:t.tooltipMessage||t.tagTitle||t.text})))}),[])}async componentDidLoad(){await this.initState()}disconnectedCallback(){if(this.isOpen=!1,!this.stopDeepClean&&(H.removeState(this._id),this.el.innerHTML="","select"==this.type||"autocomplete"==this.type||this.linkedComponent)){const t=document.querySelectorAll(`#bcm-list-${this._id}`);(null==t?void 0:t.length)&&(t.forEach((t=>t.remove())),this.el.remove())}}watchId(t,e){H.removeState(e),this.initState()}handleValueChange(t,e){var i;l.objectIsEmpty(this.returnFilterData)&&this.handleIndeterminate((null===(i=this.value)||void 0===i?void 0:i.length)||0,this.totalData),this.checkboxes?m.compareTwoArrayIsSame(t,e)||(this.bcmChecklist.emit(this.value),this.change.emit(this.value)):(null==t?void 0:t.id)!=(null==e?void 0:e.id)&&this.change.emit(this.value)}watchReturnFilterData(t){var e;const{checkedItems:i,visibledItems:n}=t;i&&n?this.handleIndeterminate(i.length,n.length):this.handleIndeterminate((null===(e=this.value)||void 0===e?void 0:e.length)||0,this.totalData)}async handleOpen(){if(this.isOpen){if(this.detectClone(),"select"==this.type||"autocomplete"==this.type||this.linkedComponent){const t=this.el.querySelector(`#bcm-list-${this._id}`);t&&document.querySelector("#bcm-overlay-container").appendChild(t)}this.open.emit(),this.calculateLocation(),this.onSelectSearch()}else this.listScrollToTop(),this.close.emit(),await p(100),this.unSelectOther()}listScrollToTop(){const t=document.querySelector(`#bcm-list-${this._id}`);t&&(t.querySelector(".scrolling").scrollTop=0)}async dataChanged(t,e){m.compareTwoArrayIsSame(t,e)||await this.initState()}isIntersecting(t){const e=null==t?void 0:t.target;e&&e.id===this._id&&this.listenResize()}handleSlotItems(t){var e;(null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.length)>0&&(this.data=t.detail)}handleChange(t){t.target.id==`bcm-list-input-tag-container-${this._id}-autocomplete-input`&&t.stopImmediatePropagation()}handleResize(){this.calculateLocation(),this.debounceHandler()}handleWheel(t){if(this.isOpen){const e=document.querySelector(`#bcm-list-${this._id}`);e&&l.findEventPath(t,e)?("select"==this.type||"autocomplete"==this.type||this.linkedComponent)&&this.calculateLocation():this.hide()}}clearAutocomplete(){if("autocomplete"==this.type){const t=this.getAutoCompleteInput();t&&t.handleClear(!1)}}async handleSelectOtherTag(t){if(this.disabled)return;const{id:e,checked:i}=t.detail;this.isSelectedOther=i,e&&(i?this.filterOtherList(e):this.unSelectOther(),this.isOpen=!0)}async handleDeleteTag(t){var e;if(this.disabled)return;const{id:i}=t.detail;this.isSelectedOther&&this.unSelectOther(),Array.isArray(i)?H.removeOtherTags(this._id,i):H.checkedItem(this._id,i),this.value=(await this.getCheckedList()).checkedList,this.handleIndeterminate((null===(e=this.value)||void 0===e?void 0:e.length)||0,this.totalData)}async handleSelectTag(t){this.disabled||(this.clearAutocomplete(),this.onSelectSearch(),this.unSelectOther())}handleClick(t){var e;if(this.disabled)return;const i=document.querySelector(`#bcm-list-${this._id}`),n=l.findEventPath(t,this.el)||i&&l.findEventPath(t,i);if(n&&(null!==this.debounce&&(t.preventDefault(),t.stopPropagation(),clearTimeout(this.debounce),this.debounce=null),this.debounce=setTimeout((()=>{this.debounce=null}),300)),!n&&"autocomplete"==this.type){const t=this.getAutoCompleteInput();t&&t.setValue(this.checkboxes?"":(null===(e=this.value)||void 0===e?void 0:e.text)||"")}const c=l.findEventPathWithKey(t,"className",["bcm-tag"]),o=l.findEventPathWithKey(t,"className",["bcm-tag bcm-tag--other"]),r=l.findEventPathWithKey(t,"id",[`bcm-list-input-${this._id}`,`bcm-list-label-${this._id}`]),s=l.findEventPathWithKey(t,"className",["right close-button"]);r&&!s&&"autocomplete"!=this.type&&(this.isOpen=!(!c&&!o&&this.isOpen)),i&&this.isOpen&&(i.contains(t.target)||this.el.contains(t.target)||(this.isOpen=!1))}bcmOnSearchClear(t){var e,i;"autocomplete"==this.type&&((null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.id)!==`bcm-list-${this._id}-search`&&(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||t.detail&&this.setClear())}bcmOnSearch(t){var e,i,n,c,o,r;(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.id)!==`bcm-list-${this._id}-search`&&(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||(this.searchGetParents=s((()=>{var e;return null===(e=t.detail)||void 0===e?void 0:e.parentIndex}),null),this.searchResultLimit=10,this.searchFound=null!=(null===(n=t.detail)||void 0===n?void 0:n.matching)?null===(c=t.detail)||void 0===c?void 0:c.matching.length:null,this.returnFilterData=H.filterData(this._id,null===(o=t.detail)||void 0===o?void 0:o.nestedResult),this.searchFound>0&&this.highlight&&(this.highlightText=null===(r=t.detail)||void 0===r?void 0:r.value),"autocomplete"==this.type&&(this.isOpen=!0),t.detail.result||("autocomplete"==this.type?this.isOpen=!1:(this.returnFilterData={},H.filterData(this._id,null)),this.searchResultLimit=null,this.highlightText=null),this.markForCheck())}handleKeyDown(t){const e=t.keyCode||t.which;if(e===x.KeyCode.escape&&this.isOpen&&(this.isOpen=!1,t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),this.keyControl){const t=new K(e,this.el,this.treeview,this.checkboxes);t.openGroup=t=>{this.openGroup(t)},t.checkedItem=t=>{this.checkedItem(t)},t.keyDown()}}handleKeyUp(t){if(this.keyControl&&l.findEventPath(t,this.el)){const t=document.getElementById(`bcm-list-${this._id}`);if(t){const e=t.querySelectorAll(".bcm-list__item.focused");if(e.length>0){const i=t.querySelector("main"),n=e[0].offsetHeight,c=i.offsetHeight,o=e[0].offsetTop;o>c&&(i.scrollTop=o-c/2+n/2),o<c&&(i.scrollTop=o-c/2-n/2)}}}}async set(t){t?(Array.isArray(t)&&this.addChecked(t),"string"!=typeof t&&"number"!=typeof t||this.selectedItem(t)):this.setClear()}async get(){var t,e;return this.value?this.checkboxes?null===(e=null===(t=await this.getCheckedList())||void 0===t?void 0:t.checkedList)||void 0===e?void 0:e.map((t=>t.id)):this.value.id:null}async getCheckedList(){return Promise.resolve(H.getCheckedList(this._id))}async getSelected(){return Promise.resolve(H.getSelected(this._id))}async getValue(){return Promise.resolve(this.value)}async addChecked(t=[],e=!1,i=!0){return t&&t.length>0&&(e||(H.setClear(this._id),await p(10)),await H.addChecked(this._id,t),await p(10),i&&(this.value=(await this.getCheckedList()).checkedList),this.markForCheck()),Promise.resolve(this.value)}async selected(t){return!!t&&Promise.resolve(await this.selectedItem(t))}async setClear(t){return H.setClear(this._id),this.value=null,this.inputText="",this.isOpen=!1,this.selectAllItem.indeterminate="uncheck",this.markForCheck(),t&&(t.stopPropagation(),t.preventDefault()),await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await p(10),Promise.resolve()}detectClone(){const t=document.querySelectorAll(`#bcm-list-${this._id}`);t.length>0&&t.forEach((t=>{const e=t.getAttribute("temp-id");e!==`bcm-list-${this.tempId}`&&(console.warn(`[bcm-list] - Detected duplicate temp-id="${e}"`),t.remove())}))}async show(){return this.isOpen=!0,Promise.resolve()}async hide(){return this.isOpen=!1,Promise.resolve()}updateOptions(){H.updateOptions(this._id,this)}handleIndeterminate(t,e){this.selectAllItem=Object.assign(Object.assign({},this.selectAllItem),{indeterminate:this.checkboxes&&t>0?t===e?"check":"indeterminate":"uncheck",checked:!!(this.checkboxes&&t>0)&&t===e})}listenResize(){this.calculateLocation(),this.markForCheck()}async unSelectOther(){return await this.onClearSearch(),this.isSelectedOther=!1,this.searchFound=null,this.returnFilterData={},H.filterData(this._id,null),await p(10),Promise.resolve()}async onClearSearch(){const t=document.getElementById(`bcm-list-${this._id}-search`);return t&&await t.handleClear(),Promise.resolve()}async onSelectSearch(){const t=document.getElementById(`bcm-list-${this._id}-search`);t&&(await p(100),t.onBcmFocus(),t.onBcmSelect())}async filterOtherList(t){const e=(await this.getCheckedList()).nestedResult,i=l.convertIdsToNestedData(t,e);this.returnFilterData=await H.filterData(this._id,i,null,!0),this.searchFound=(null==t?void 0:t.length)||0,this.limit=500,this.searchGetParents=null,await p(1e3),this.markForCheck()}async initState(){var t,e,i;this.onClearSearch(),await H.setValue({id:this._id,dataSource:this.data&&s((()=>"string"==typeof this.data?JSON.parse(this.data):this.data),[]),options:this});const{totalRoots:n,totalItems:c}=H.getValue(this._id);if(this.totalData=c,this.totalRootData=n,this.value=this.checkboxes?(await this.getCheckedList()).checkedList:H.selectedItem(this._id)?H.selectedItem(this._id)[0]:null,this.checkboxes||(this.inputText=(null===(t=this.value)||void 0===t?void 0:t.text)||null),this.checkboxes&&(null===(e=this.value)||void 0===e?void 0:e.length)>0){const t=[];this.value.forEach((e=>{e.items&&0!==e.items.length||t.push(e.id)})),await this.addChecked(t,!1,!1)}await this.handleIndeterminate(null===(i=this.value)||void 0===i?void 0:i.length,this.totalData),await this.markForCheck()}async markForCheck(){await p(10),this.tick=l.UID()}getOptions(){return s((()=>H.getValue(this._id).options),{})}getItems(){return this.isSelectedOther?this.returnFilterData.checkedItems:s((()=>H.getData(this._id)),[])}getLimitedItems(t){return s((()=>H.getDataPagination(this._id,this.searchResultLimit||this.limit,t)),[])}openGroup(t){H.openGroup(this._id,t),this.markForCheck()}focusItem(t){if(t.target.classList.contains("bcm-list__item")){const e=t.target,i=document.getElementById(`bcm-list-${this._id}`);if(i&&i.querySelectorAll(".bcm-list__item").length>0){const t=i.querySelector(".bcm-list__item.focused");t&&t.classList.remove("focused"),e.classList.add("focused")}}}async selectedItem(t){var e;if(!this.checkboxes&&(this.value=H.selectedItem(this._id,t)?H.selectedItem(this._id,t)[0]:null,this.inputText=(null===(e=this.value)||void 0===e?void 0:e.text)||null,this.isOpen=!1,this.markForCheck(),"autocomplete"==this.type&&this.value)){const t=this.getAutoCompleteInput();t&&setTimeout((()=>{var e;t.setValue((null===(e=this.value)||void 0===e?void 0:e.text)||""),this.isOpen=!1}),100)}return Promise.resolve(this.value)}async checkedItem(t){"select-all"===t?H.selectAll(this._id,!this.selectAllItem.checked):H.checkedItem(this._id,t),this.value=(await this.getCheckedList()).checkedList,this.changeVisibleCheckeds(),this.markForCheck()}changeVisibleCheckeds(){const{visibledItems:t}=this.returnFilterData;this.returnFilterData={visibledItems:t,checkedItems:t&&t.filter((t=>t.checked))||[]}}getAutoCompleteInput(){return document.getElementById(`bcm-list-input-tag-container-${this._id}-autocomplete-input`)}dataScrollEvent(t){let e=0,i=new IntersectionObserver((t=>{0===e&&(e++,t[0].isIntersecting&&(this.limit+=15,this.searchResultLimit+=15,i.disconnect(),i=null))}),this.options);i.observe(t.target.lastElementChild)}async calculateLocation(){var t,e;if("select"==this.type||"autocomplete"==this.type||this.linkedComponent){const n=document.getElementById(`bcm-list-${this._id}`);var i=this.placement;const c=document.getElementById(this.linkedComponent?this.linkedComponent:`bcm-list-input-${this._id}`);if(n&&c){b(n,c,i,(t=>i=t)),await p(10);let o=d(i,c),r=0,s=0;if(this.linkedComponent){const i=document.getElementById(this.linkedComponent);if(i){if(!i.noCaption){const e=(null===(t=i.shadowRoot)||void 0===t?void 0:t.querySelector(".bcm-caption-area"))||i.querySelector(".bcm-caption-area");e&&(r=e.offsetHeight||e.clientHeight)}const n=(null===(e=i.shadowRoot)||void 0===e?void 0:e.querySelector(".bcm-label"))||i.querySelector(".bcm-label");n&&(s=n.offsetHeight||n.clientHeight)}}n.style.width=this.fullWidth?c.offsetWidth+"px":this.width||"auto",n.style.height=this.height.indexOf("%")>-1?.01*a.toNumber(this.height)*window.innerHeight-o[0]-50+"px":this.height,n.style.minHeight=this.minHeight;const l="top"==i.split("-")[0]?window.innerHeight-(window.innerHeight-o[0])-50:window.innerHeight-o[0]-50;n.style.maxHeight=this.maxHeight.indexOf("%")>-1?.01*a.toNumber(this.maxHeight)*l+"px":a.toNumber(this.maxHeight)<l?this.maxHeight:l+"px",b(n,c,i,(t=>i=t)),await p(10),o=d(i,c),n.style.top=("top"==i.split("-")[0]?o[0]-n.offsetHeight+s:o[0]-r)+"px",n.style.left="end"==i.split("-")[1]?o[1]-n.offsetWidth+"px":o[1]+"px",n.classList.toggle("bcm-list--top","top"==i.split("-")[0]),this.calculatedViewport=!0}}}render(){const{checkboxes:e,treeview:i,label:c,size:o,disabled:r,readonly:s,required:l,hidden:a,fullWidth:h,searchable:m}=this.getOptions(),b=v("bcm-list",`bcm-list__size-${o}`,`bcm-list__${this.type}`,"large"===o?"size-3":"size-2",{error:this.captionType==x.Status.error,"full-width":h,"bcm-list__linked":this.linkedComponent,hidden:a,readonly:s,disabled:r}),d=v("bcm-list__container",this.linkedComponent?"bcm-list__type-linked-component":`bcm-list__type-${this.type}`,{"is-open":this.isOpen&&this.calculatedViewport,error:this.captionType==x.Status.error,"full-width":h,hidden:a,readonly:s,disabled:r}),u=v("bcm-list__input"),p="select"==this.type||"autocomplete"==this.type||this.linkedComponent;return t(n,{class:b,tabindex:"0",style:{"--width":h?"100%":this.width,"--height":p?"100%":this.height,"--max-height":p?"inherit":this.maxHeight,"--min-height":p?"inherit":this.minHeight}},t("div",{id:`bcm-list-label-${this._id}`,class:"bcm-list__label"},c&&t("div",null,t(g,{size:this.size,type:this.captionType,value:c,required:l,htmlFor:this._id}))),"select"==this.type&&t("div",{id:`bcm-list-input-${this._id}`,class:u},t("span",{class:v("bcm-list__input-container",{"type-single":!e,"value-empty":!this.value})},this.checkboxes?this.value&&this.value.length>0?t("bcm-rc-overflow",{data:this.tagData,maxCount:this.tagCount}):t("span",{class:"bcm-list__input-placeholder"},this.placeholder):this.value?this.inputText:t("span",{class:"bcm-list__input-placeholder"},this.placeholder)),t("span",{class:v("bcm-list__input-buttons",{disabled:r})},this.clearable&&this.value&&t("div",{class:"bcm-list__input-buttons-button"},t("bcm-icon",{icon:"fal fa-times",onClick:t=>!r&&this.setClear(t)})),t("div",{class:`bcm-list__input-buttons-button caret-is ${this.isOpen&&this.calculatedViewport&&"caret-is-open"}`},t("bcm-icon",{icon:"far fa-angle-down"})))),"autocomplete"===this.type&&t("div",{id:`bcm-list-input-${this._id}`,class:v(u,{"bcm-list__input-autocomplete":"autocomplete"==this.type})},t("span",{class:"bcm-list__input-container",id:`bcm-list-input-tag-container-${this._id}`},this.checkboxes&&t("span",{class:"bcm-list__input-tag-container",id:`bcm-list-input-tag-container-${this._id}-autocomplete`}),t("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}))),t(C,{highlight:this.highlightText,searchable:"autocomplete"!=this.type&&m,bcmListContainer:d,checkboxes:e,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:t=>this.dataScrollEvent(t),items:this.getLimitedItems(this.searchGetParents),selectedItem:t=>this.selectedItem(t),checkedItem:t=>this.checkedItem(t),openGroup:t=>this.openGroup(t),focusItem:t=>this.focusItem(t),emptyText:this.emptyText,emptyIcon:this.emptyIcon}),t(_,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return c(this)}static get watchers(){return{_id:["watchId"],value:["handleValueChange"],returnFilterData:["watchReturnFilterData"],isOpen:["handleOpen"],data:["dataChanged"]}}};function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},J.apply(this,arguments)}function Q(t){return Q="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},Q(t)}function X(t,e,i){return(e=function(t){var e=function(t){if("object"!==Q(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==Q(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Q(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Z(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function tt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(i),!0).forEach((function(e){X(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Z(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,c,o,r,s=[],l=!0,a=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){a=!0,c=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(a)throw c}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return et(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?et(t,e):void 0}}(t,e)||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 nt(t,e){if(null==t)return{};var i,n,c=function(t,e){if(null==t)return{};var i,n,c={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(i=o[n])>=0||(c[i]=t[i]);return c}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e.indexOf(i=o[n])>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(c[i]=t[i])}return c}function ct(){return ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ct.apply(this,arguments)}
6
6
  /** @license React v16.13.1
7
7
  * react-is.production.min.js
8
8
  *
@@ -10,4 +10,4 @@ import{h as t,r as e,c as i,H as n,g as c}from"./p-6d7fe687.js";import{I as o}fr
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
- */U([o()],Y.prototype,"el",void 0),U([r("data",!0)],Y.prototype,"dataChanged",null),Y.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"); @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}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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{opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800;transition:visibility 0s linear 400ms, opacity 100ms, transform 200ms}.bcm-list__container.bcm-list__type-linked-component.bcm-list--top,.bcm-list__container.bcm-list__type-select.bcm-list--top,.bcm-list__container.bcm-list__type-autocomplete.bcm-list--top{transform:translateY(-10%)}.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{opacity:1;transform:translateY(0);visibility:visible;transition:visibility 0s linear 0s, opacity 100ms, transform 100ms}.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:4px 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-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-color-grey-7)}.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 ot="function"==typeof Symbol&&Symbol.for,rt=ot?Symbol.for("react.element"):60103,st=ot?Symbol.for("react.portal"):60106,lt=ot?Symbol.for("react.fragment"):60107,at=ot?Symbol.for("react.strict_mode"):60108,ht=ot?Symbol.for("react.profiler"):60114,mt=ot?Symbol.for("react.provider"):60109,bt=ot?Symbol.for("react.context"):60110,dt=ot?Symbol.for("react.async_mode"):60111,ut=ot?Symbol.for("react.concurrent_mode"):60111,pt=ot?Symbol.for("react.forward_ref"):60112,ft=ot?Symbol.for("react.suspense"):60113,xt=ot?Symbol.for("react.suspense_list"):60120,_t=ot?Symbol.for("react.memo"):60115,vt=ot?Symbol.for("react.lazy"):60116,gt=ot?Symbol.for("react.block"):60121,yt=ot?Symbol.for("react.fundamental"):60117,wt=ot?Symbol.for("react.responder"):60118,kt=ot?Symbol.for("react.scope"):60119;function zt(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case rt:switch(t=t.type){case dt:case ut:case lt:case ht:case at:case ft:return t;default:switch(t=t&&t.$$typeof){case bt:case pt:case vt:case _t:case mt:return t;default:return e}}case st:return e}}}function jt(t){return zt(t)===ut}var Ot={AsyncMode:dt,ConcurrentMode:ut,ContextConsumer:bt,ContextProvider:mt,Element:rt,ForwardRef:pt,Fragment:lt,Lazy:vt,Memo:_t,Portal:st,Profiler:ht,StrictMode:at,Suspense:ft,isAsyncMode:function(t){return jt(t)||zt(t)===dt},isConcurrentMode:jt,isContextConsumer:function(t){return zt(t)===bt},isContextProvider:function(t){return zt(t)===mt},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===rt},isForwardRef:function(t){return zt(t)===pt},isFragment:function(t){return zt(t)===lt},isLazy:function(t){return zt(t)===vt},isMemo:function(t){return zt(t)===_t},isPortal:function(t){return zt(t)===st},isProfiler:function(t){return zt(t)===ht},isStrictMode:function(t){return zt(t)===at},isSuspense:function(t){return zt(t)===ft},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===lt||t===ut||t===ht||t===at||t===ft||t===xt||"object"==typeof t&&null!==t&&(t.$$typeof===vt||t.$$typeof===_t||t.$$typeof===mt||t.$$typeof===bt||t.$$typeof===pt||t.$$typeof===yt||t.$$typeof===wt||t.$$typeof===kt||t.$$typeof===gt)},typeOf:zt};z((function(){}));var It=z((function(t){t.exports=Ot}));function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return w.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?i=i.concat(St(t)):It.isFragment(t)&&t.props?i=i.concat(St(t.props.children,e)):i.push(t))})),i}function Ct(t){return Ct="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},Ct(t)}function Et(t){var e=function(t){if("object"!==Ct(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==Ct(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ct(e)?e:String(e)}function Mt(t,e,i){return(e=Et(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Tt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Rt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(i),!0).forEach((function(e){Mt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Tt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function $t(t){return $t="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},$t(t)}function Dt(t,e){"function"==typeof t?t(e):"object"===$t(t)&&t&&"current"in t&&(t.current=e)}function Ft(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof w.Component?k.findDOMNode(t):null}var Pt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i++){var c=n[i];t.call(e,c[1],c[0])}},e}()}(),Nt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,At="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Lt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(At):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},Vt=["top","right","bottom","left","width","height","size","weight"],qt="undefined"!=typeof MutationObserver,Wt=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 e=!1,i=!1,n=0;function c(){e&&(e=!1,t()),i&&r()}function o(){Lt(c)}function r(){var t=Date.now();if(e){if(t-n<2)return;i=!0}else e=!0,i=!1,setTimeout(o,20);n=t}return r}(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 e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.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(){Nt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qt?(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(){Nt&&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 e=t.propertyName,i=void 0===e?"":e;Vt.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Gt=function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i++){var c=n[i];Object.defineProperty(t,c,{value:e[c],enumerable:!1,writable:!1,configurable:!0})}return t},Ht=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||At},Bt=Qt(0,0,0,0);function Kt(t){return parseFloat(t)||0}function Ut(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce((function(e,i){return e+Kt(t["border-"+i+"-width"])}),0)}var Yt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Ht(t).SVGGraphicsElement}:function(t){return t instanceof Ht(t).SVGElement&&"function"==typeof t.getBBox};function Jt(t){return Nt?Yt(t)?function(t){var e=t.getBBox();return Qt(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Bt;var n=Ht(t).getComputedStyle(t),c=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var c=n[i];e[c]=Kt(t["padding-"+c])}return e}(n),o=c.left+c.right,r=c.top+c.bottom,s=Kt(n.width),l=Kt(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==e&&(s-=Ut(n,"left","right")+o),Math.round(l+r)!==i&&(l-=Ut(n,"top","bottom")+r)),!function(t){return t===Ht(t).document.documentElement}(t)){var a=Math.round(s+o)-e,h=Math.round(l+r)-i;1!==Math.abs(a)&&(s-=a),1!==Math.abs(h)&&(l-=h)}return Qt(c.left,c.top,s,l)}(t):Bt}function Qt(t,e,i,n){return{x:t,y:e,width:i,height:n}}var Xt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Jt(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}(),Zt=function(t,e){var i=function(t){var e=t.x,i=t.y,n=t.width,c=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(o.prototype);return Gt(r,{x:e,y:i,width:n,height:c,top:i,right:e+n,bottom:c+i,left:e}),r}(e);Gt(this,{target:t,contentRect:i})},te=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new Pt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}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 Ht(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Xt(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 Ht(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.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(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Zt(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ee="undefined"!=typeof WeakMap?new WeakMap:new Pt,ie=function t(e){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 i=Wt.getInstance(),n=new te(e,i,this);ee.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){ie.prototype[t]=function(){var e;return(e=ee.get(this))[t].apply(e,arguments)}}));var ne=void 0!==At.ResizeObserver?At.ResizeObserver:ie,ce=new Map,oe=new ne((function(t){t.forEach((function(t){var e,i=t.target;null===(e=ce.get(i))||void 0===e||e.forEach((function(t){return t(i)}))}))}));function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function se(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Et(n.key),n)}}function le(t,e){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},le(t,e)}function ae(t){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ae(t)}function he(t,e){if(e&&("object"===Ct(e)||"function"==typeof e))return e;if(void 0!==e)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 me=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&le(t,e)}(o,w.Component);var t,e,i,n,c=(i=o,n=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,e=ae(i);if(n){var c=ae(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return he(this,t)});function o(){return re(this,o),c.apply(this,arguments)}return t=o,(e=[{key:"render",value:function(){return this.props.children}}])&&se(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(),be=w.createContext(null);function de(t,e){var i,n,c,o,r=t.children,s=t.disabled,l=w.useRef(null),a=w.useRef(null),h=w.useContext(be),m="function"==typeof r,b=m?r(l):r,d=w.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!m&&w.isValidElement(b)&&!!("function"!=typeof(o=It.isMemo(i=b)?i.type.type:i.type)||null!==(n=o.prototype)&&void 0!==n&&n.render)&&!!("function"!=typeof i||null!==(c=i.prototype)&&void 0!==c&&c.render),p=u?b.ref:null,f=w.useMemo((function(){return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e.filter((function(t){return t}));return n.length<=1?n[0]:function(t){e.forEach((function(e){Dt(e,t)}))}}(p,l)}),[p,l]),x=function(){return Ft(l.current)||Ft(a.current)};w.useImperativeHandle(e,(function(){return x()}));var _=w.useRef(t);_.current=t;var v=w.useCallback((function(t){var e=_.current,i=e.onResize,n=e.data,c=t.getBoundingClientRect(),o=c.width,r=c.height,s=t.offsetWidth,l=t.offsetHeight,a=Math.floor(o),m=Math.floor(r);if(d.current.width!==a||d.current.height!==m||d.current.offsetWidth!==s||d.current.offsetHeight!==l){var b={width:a,height:m,offsetWidth:s,offsetHeight:l};d.current=b;var u=s===Math.round(o)?o:s,p=l===Math.round(r)?r:l,f=Rt(Rt({},b),{},{offsetWidth:u,offsetHeight:p});null==h||h(f,t,n),i&&Promise.resolve().then((function(){i(f,t)}))}}),[]);return w.useEffect((function(){var t,e,i=x();return i&&!s&&(e=v,ce.has(t=i)||(ce.set(t,new Set),oe.observe(t)),ce.get(t).add(e)),function(){return function(t,e){ce.has(t)&&(ce.get(t).delete(e),ce.get(t).size||(oe.unobserve(t),ce.delete(t)))}(i,v)}}),[l.current,s]),w.createElement(me,{ref:a},u?w.cloneElement(b,{ref:f}):b)}var ue=w.forwardRef(de);function pe(t,e){var i=t.children;return("function"==typeof i?[i]:St(i)).map((function(i,n){var c=(null==i?void 0:i.key)||"".concat("rc-observer-key","-").concat(n);return w.createElement(ue,ct({},t,{key:c,ref:0===n?e:void 0}),i)}))}var fe=w.forwardRef(pe);fe.Collection=function(t){var e=t.children,i=t.onBatchResize,n=w.useRef(0),c=w.useRef([]),o=w.useContext(be),r=w.useCallback((function(t,e,r){n.current+=1;var s=n.current;c.current.push({size:t,element:e,data:r}),Promise.resolve().then((function(){s===n.current&&(null==i||i(c.current),c.current=[])})),null==o||o(t,e,r)}),[i,o]);return w.createElement(be.Provider,{value:r},e)};var xe="undefined"!=typeof window&&window.document&&window.document.createElement?w.useLayoutEffect:w.useEffect,_e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ve=void 0;function ge(t,e){var i=t.prefixCls,n=t.invalidate,c=t.item,o=t.renderItem,r=t.responsive,s=t.responsiveDisabled,l=t.registerSize,a=t.itemKey,h=t.className,m=t.style,b=t.children,d=t.display,u=t.order,p=t.component,f=void 0===p?"div":p,x=nt(t,_e),_=r&&!d;function g(t){l(a,t)}w.useEffect((function(){return function(){g(null)}}),[]);var y,k=o&&c!==ve?o(c):b;n||(y={opacity:_?0:1,height:_?0:ve,overflowY:_?"hidden":ve,order:r?u:ve,pointerEvents:_?"none":ve,position:_?"absolute":ve});var z={};_&&(z["aria-hidden"]=!0);var j=w.createElement(f,J({className:v(!n&&i,h),style:tt(tt({},y),m)},z,x,{ref:e}),k);return r&&(j=w.createElement(fe,{onResize:function(t){g(t.offsetWidth)},disabled:s},j)),j}var ye=w.forwardRef(ge);ye.displayName="Item";var we=function(t){return+setTimeout(t,16)},ke=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(we=function(t){return window.requestAnimationFrame(t)},ke=function(t){return window.cancelAnimationFrame(t)});var ze=0,je=new Map;function Oe(t){je.delete(t)}var Ie=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=ze+=1;function n(e){if(0===e)Oe(i),t();else{var c=we((function(){n(e-1)}));je.set(i,c)}}return n(e),i};function Se(t,e){var i=it(w.useState(e),2),n=i[0],c=i[1],o=function(){var e=w.useRef();e.current=function(e){t((function(){c(e)}))};var i=w.useCallback((function(){for(var t,i=arguments.length,n=new Array(i),c=0;c<i;c++)n[c]=arguments[c];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(n))}),[]);return i}();return[n,o]}Ie.cancel=function(t){var e=je.get(t);return Oe(e),ke(e)};var Ce=w.createContext(null),Ee=["component"],Me=["className"],Te=["className"],Re=function(t,e){var i=w.useContext(Ce);if(!i){var n=t.component,c=void 0===n?"div":n,o=nt(t,Ee);return w.createElement(c,J({},o,{ref:e}))}var r=i.className,s=nt(i,Me),l=t.className,a=nt(t,Te);return w.createElement(Ce.Provider,{value:null},w.createElement(ye,J({ref:e,className:v(r,l)},s,a)))},$e=w.forwardRef(Re);$e.displayName="RawItem";var De=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fe="responsive",Pe="invalidate";function Ne(t){return"+ ".concat(t.length," ...")}function Ae(t,e){var i,n,c,o,r=t.prefixCls,s=void 0===r?"rc-overflow":r,l=t.data,a=void 0===l?[]:l,h=t.renderItem,m=t.renderRawItem,b=t.itemKey,d=t.itemWidth,u=void 0===d?10:d,p=t.ssr,f=t.style,x=t.className,_=t.maxCount,g=t.renderRest,y=t.renderRawRest,z=t.suffix,j=t.component,O=void 0===j?"div":j,I=t.itemComponent,S=t.onVisibleChange,C=nt(t,De),E="full"===p,M=(o=w.useRef(null),function(t){o.current||(o.current=[],function(t){if("undefined"==typeof MessageChannel)Ie(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){k.unstable_batchedUpdates((function(){o.current.forEach((function(t){t()})),o.current=null}))}))),o.current.push(t)}),T=it(Se(M,null),2),R=T[0],$=T[1],D=R||0,F=it(Se(M,new Map),2),P=F[0],N=F[1],A=it(Se(M,0),2),L=A[0],V=A[1],q=it(Se(M,0),2),W=q[0],G=q[1],H=it(Se(M,0),2),B=H[0],K=H[1],U=it(w.useState(null),2),Y=U[0],Q=U[1],X=it(w.useState(null),2),Z=X[0],et=X[1],ct=w.useMemo((function(){return null===Z&&E?Number.MAX_SAFE_INTEGER:Z||0}),[Z,R]),ot=it(w.useState(!1),2),rt=ot[0],st=ot[1],lt="".concat(s,"-item"),at=Math.max(L,W),ht=_===Fe,mt=a.length&&ht,bt=_===Pe,dt=mt||"number"==typeof _&&a.length>_,ut=w.useMemo((function(){var t=a;return mt?t=null===R&&E?a:a.slice(0,Math.min(a.length,D/u)):"number"==typeof _&&(t=a.slice(0,_)),t}),[a,u,R,_,mt]),pt=w.useMemo((function(){return a.slice(mt?ct+1:ut.length)}),[a,ut,mt,ct]),ft=w.useCallback((function(t,e){var i;return"function"==typeof b?b(t):null!==(i=b&&(null==t?void 0:t[b]))&&void 0!==i?i:e}),[b]),xt=w.useCallback(h||function(t){return t},[h]);function _t(t,e,i){(Z!==t||void 0!==e&&e!==Y)&&(et(t),i||(st(t<a.length-1),null==S||S(t)),void 0!==e&&Q(e))}function vt(t,e){N((function(i){var n=new Map(i);return null===e?n.delete(t):n.set(t,e),n}))}function gt(t){return P.get(ft(ut[t],t))}i=function(){if(D&&"number"==typeof at&&ut){var t=B,e=ut.length,i=e-1;if(!e)return void _t(0,null);for(var n=0;n<e;n+=1){var c=gt(n);if(E&&(c=c||0),void 0===c){_t(n-1,void 0,!0);break}if(t+=c,0===i&&t<=D||n===i-1&&t+gt(i)<=D){_t(i,null);break}if(t+at>D){_t(n-1,t-c-B+W);break}}z&&gt(0)+B>D&&Q(null)}},n=[D,P,W,B,ft,ut],c=w.useRef(!0),xe((function(){return i()}),n),xe((function(){return c.current=!1,function(){c.current=!0}}),[]);var yt=rt&&!!pt.length,wt={};null!==Y&&mt&&(wt={position:"absolute",left:Y,top:0});var kt,zt={prefixCls:lt,responsive:mt,component:I,invalidate:bt},jt=m?function(t,e){var i=ft(t,e);return w.createElement(Ce.Provider,{key:i,value:tt(tt({},zt),{},{order:e,item:t,itemKey:i,registerSize:vt,display:e<=ct})},m(t,e))}:function(t,e){var i=ft(t,e);return w.createElement(ye,J({},zt,{order:e,key:i,item:t,renderItem:xt,itemKey:i,registerSize:vt,display:e<=ct}))},Ot={order:yt?ct:Number.MAX_SAFE_INTEGER,className:"".concat(lt,"-rest"),registerSize:function(t,e){G(e),V(W)},display:yt};if(y)y&&(kt=w.createElement(Ce.Provider,{value:tt(tt({},zt),Ot)},y(pt)));else{var It=g||Ne;kt=w.createElement(ye,J({},zt,Ot),"function"==typeof It?It(pt):It)}var St=w.createElement(O,J({className:v(!bt&&s,x),style:f,ref:e},C),ut.map(jt),dt?kt:null,z&&w.createElement(ye,J({},zt,{responsive:ht,responsiveDisabled:!mt,order:ct,className:"".concat(lt,"-suffix"),registerSize:function(t,e){K(e)},display:!0,style:wt}),z));return ht&&(St=w.createElement(fe,{onResize:function(t,e){$(e.clientWidth)},disabled:!mt},St)),St}var Le=w.forwardRef(Ae);Le.displayName="Overflow",Le.Item=$e,Le.RESPONSIVE=Fe,Le.INVALIDATE=Pe;const Ve=class{constructor(t){e(this,t),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=t=>w.createElement("bcm-tooltip",{placement:"bottom",message:t.text,trigger:"hover"},w.createElement("div",{id:t.value+"-tag",className:"bcm-tag",onClick:({target:e})=>this.onClickControl(e,t,!1)},w.createElement("span",{className:"bcm-tag__content dismissable"},w.createElement("div",{className:"value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap"},t.text),w.createElement("span",{className:"right close-button"},w.createElement("bcm-icon",{icon:"fa fa-times"}))))),this.renderRest=t=>{const e=(null==t?void 0:t.sort(((t,e)=>+t.ct-+e.ct)).slice(0,15).map((t=>h.textLimitter(t.text,40,!0))).toString().split(",").join("\r\n"))+(t.length>15?"\r\n...":"");return w.createElement("bcm-tooltip",{placement:"bottom",message:e,trigger:"hover"},w.createElement("div",{className:"bcm-tag bcm-tag--other",onClick:({target:e})=>this.onClickControl(e,t,!0)},w.createElement("span",{className:"bcm-tag__content dismissable "+(this.checked?"checkable checked":"")},w.createElement("span",{className:"value"},`+${null==t?void 0:t.length}`),w.createElement("span",{className:"right close-button"},w.createElement("bcm-icon",{icon:"fa fa-times"})))))},this._id=l.UID(),this.maxCount=1,this.data=[],this.checked=!1}isClickDismiss(t){return"BCM-ICON"===t["s-hn"]}onClickControl(t,e,i=!1){const n=this.isClickDismiss(t);n&&this.deleteTag.emit({id:Array.isArray(e)?e.map((t=>t.value)):e.value})&&this.checked&&(this.checked=!1),!i&&this.selectTag.emit({id:e.value})&&this.checked&&(this.checked=!1),i&&!n&&(this.checked=!this.checked,this.selectOtherTag.emit({id:null==e?void 0:e.map((t=>t.value)),checked:this.checked}))}componentWillRender(){const{data:t,renderItem:e,renderRest:i,maxCount:n}=this;this.overflowInstance=w.createElement(Le,{data:t,renderItem:e,renderRest:i,maxCount:n}),k.render(this.overflowInstance,this.el)}get el(){return c(this)}};Ve.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:qe}=y({value:new Map}),We=(t,e)=>{let i=[];return t&&(i=t.map((t=>Object.assign(Object.assign(Object.assign({},t),{parentId:s((()=>e),null)}),t.items&&t.items.length>0&&{items:s((()=>We(t.items,t.id)),[])})))),i},Ge=t=>s((()=>qe.value.get(t)),{}),He=(t,e,i)=>{let n=[],c=[],o=[],r=[];const{searchIsOnlyChilds:s}=Ge(t);return e&&e.length>0&&e.forEach((e=>{let l=s&&null!==e.parentId;if((h.slugify(e.text).indexOf(h.slugify(i))>-1||e.keywords&&h.slugify(e.keywords).indexOf(h.slugify(i))>-1)&&(!s||s&&l)){if(o.push(e.id),n.push(e.id),c.push(e.id),r.push({id:e.id,text:e.text,parentId:e.parentId}),e.items&&e.items.length>0){const c=He(t,e.items,i);c.matching.length>0&&c.matching.forEach((t=>{n.push(t)}))}}else if(e.items&&e.items.length>0){const s=He(t,e.items,i);s.result.length>0&&(s.result.forEach((t=>{o.push(t)})),o.push(e.id),c.push(e.id),r.push({id:e.id,text:e.text,parentId:e.parentId,items:s.nestedResult})),s.matching.length>0&&n.push(...s.matching)}})),{result:o,matching:n,parentIndex:c,nestedResult:r}},Be=(t,e,i)=>{let n;n=i&&i.length>0?i:Ge(t).dataSource;let c=[];return n&&c.push(He(t,n,e)),{result:s((()=>l.flatArray(c[0].result)),[]),matching:s((()=>c[0].matching),[]),parentIndex:s((()=>c[0].parentIndex),[]),nestedResult:s((()=>c[0].nestedResult),[])}},Ke=class{constructor(t){e(this,t),this.bcmOnSearch=i(this,"bcm-on-search",7),this.bcmOnSearchClear=i(this,"bcm-on-search-clear",7),this.debounceHandler=l.debounceInput((t=>this.onSearchValue(t,this)),300,!1,(()=>{var t,e;this.isActiveClearable=(null===(e=null===(t=this.inputElement)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length)>0&&this.clearable})),this._id=l.UID(),this.placeholder="Search",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.size=f.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(t,e){t!==e&&await this.initState()}async initState(){await(t=>{const{id:e,dataSource:i}=t,n={id:s((()=>e),l.UID),dataSource:i&&i.length>0&&We(i),searchIsOnlyChilds:t.searchIsOnlyChilds};qe.value.set(n.id,n)})({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(t){this.inputElement.value=t}handleFocus(){}handleBlur(){}handleChange(){}async handleClear(t=!0){this.inputElement.value="";const{value:e,id:i}=this.inputElement;return Be(i,e),this.isActiveClearable=!1,this.bcmOnSearch.emit({result:null,value:null,matching:null,parentIndex:null}),this.bcmOnSearchClear.emit(t),await p(10),Promise.resolve()}onSearchValue(t,e){const{value:i,id:n}=t.target,c=(null==i?void 0:i.length)>=this.minSearchLength?Be(n,i,null):null,{bcmOnSearch:o,inputElement:r}=e;o.emit({result:null==c?void 0:c.result,value:null==r?void 0:r.value,matching:null==c?void 0:c.matching,parentIndex:null==c?void 0:c.parentIndex,nestedResult:null==c?void 0:c.nestedResult})}render(){const{_id:e,placeholder:i,disabled:c,readonly:o}=this;return t(n,{onClick:()=>{this.onBcmFocus(),this.onBcmSelect()}},t(j,{size:this.size,id:e,type:"search",placeholder:i,disabled:c,"full-width":!0,readonly:o,clearable:this.isActiveClearable,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleClear:()=>this.handleClear(),handleInput:this.debounceHandler,ref:t=>this.inputElement=t}))}get el(){return c(this)}static get watchers(){return{data:["dataChanged"]}}};Ke.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"); @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-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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;overflow:hidden;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{Y as bcm_list,Ve as bcm_rc_overflow,Ke as bcm_search}
13
+ */U([o()],Y.prototype,"el",void 0),U([r("data",!0)],Y.prototype,"dataChanged",null),Y.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"); @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}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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{opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800;transition:visibility 0s linear 400ms, opacity 100ms, transform 200ms}.bcm-list__container.bcm-list__type-linked-component.bcm-list--top,.bcm-list__container.bcm-list__type-select.bcm-list--top,.bcm-list__container.bcm-list__type-autocomplete.bcm-list--top{transform:translateY(-10%)}.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{opacity:1;transform:translateY(0);visibility:visible;transition:visibility 0s linear 0s, opacity 100ms, transform 100ms}.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:4px 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-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-color-grey-7)}.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 ot="function"==typeof Symbol&&Symbol.for,rt=ot?Symbol.for("react.element"):60103,st=ot?Symbol.for("react.portal"):60106,lt=ot?Symbol.for("react.fragment"):60107,at=ot?Symbol.for("react.strict_mode"):60108,ht=ot?Symbol.for("react.profiler"):60114,mt=ot?Symbol.for("react.provider"):60109,bt=ot?Symbol.for("react.context"):60110,dt=ot?Symbol.for("react.async_mode"):60111,ut=ot?Symbol.for("react.concurrent_mode"):60111,pt=ot?Symbol.for("react.forward_ref"):60112,ft=ot?Symbol.for("react.suspense"):60113,xt=ot?Symbol.for("react.suspense_list"):60120,_t=ot?Symbol.for("react.memo"):60115,vt=ot?Symbol.for("react.lazy"):60116,gt=ot?Symbol.for("react.block"):60121,yt=ot?Symbol.for("react.fundamental"):60117,wt=ot?Symbol.for("react.responder"):60118,kt=ot?Symbol.for("react.scope"):60119;function zt(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case rt:switch(t=t.type){case dt:case ut:case lt:case ht:case at:case ft:return t;default:switch(t=t&&t.$$typeof){case bt:case pt:case vt:case _t:case mt:return t;default:return e}}case st:return e}}}function jt(t){return zt(t)===ut}var Ot={AsyncMode:dt,ConcurrentMode:ut,ContextConsumer:bt,ContextProvider:mt,Element:rt,ForwardRef:pt,Fragment:lt,Lazy:vt,Memo:_t,Portal:st,Profiler:ht,StrictMode:at,Suspense:ft,isAsyncMode:function(t){return jt(t)||zt(t)===dt},isConcurrentMode:jt,isContextConsumer:function(t){return zt(t)===bt},isContextProvider:function(t){return zt(t)===mt},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===rt},isForwardRef:function(t){return zt(t)===pt},isFragment:function(t){return zt(t)===lt},isLazy:function(t){return zt(t)===vt},isMemo:function(t){return zt(t)===_t},isPortal:function(t){return zt(t)===st},isProfiler:function(t){return zt(t)===ht},isStrictMode:function(t){return zt(t)===at},isSuspense:function(t){return zt(t)===ft},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===lt||t===ut||t===ht||t===at||t===ft||t===xt||"object"==typeof t&&null!==t&&(t.$$typeof===vt||t.$$typeof===_t||t.$$typeof===mt||t.$$typeof===bt||t.$$typeof===pt||t.$$typeof===yt||t.$$typeof===wt||t.$$typeof===kt||t.$$typeof===gt)},typeOf:zt};z((function(){}));var It=z((function(t){t.exports=Ot}));function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return w.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?i=i.concat(St(t)):It.isFragment(t)&&t.props?i=i.concat(St(t.props.children,e)):i.push(t))})),i}function Ct(t){return Ct="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},Ct(t)}function Et(t){var e=function(t){if("object"!==Ct(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==Ct(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ct(e)?e:String(e)}function Mt(t,e,i){return(e=Et(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Tt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function $t(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(i),!0).forEach((function(e){Mt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Tt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Rt(t){return Rt="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},Rt(t)}function Dt(t,e){"function"==typeof t?t(e):"object"===Rt(t)&&t&&"current"in t&&(t.current=e)}function Ft(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof w.Component?k.findDOMNode(t):null}var Pt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i++){var c=n[i];t.call(e,c[1],c[0])}},e}()}(),Nt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,At="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Lt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(At):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},Vt=["top","right","bottom","left","width","height","size","weight"],qt="undefined"!=typeof MutationObserver,Wt=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 e=!1,i=!1,n=0;function c(){e&&(e=!1,t()),i&&r()}function o(){Lt(c)}function r(){var t=Date.now();if(e){if(t-n<2)return;i=!0}else e=!0,i=!1,setTimeout(o,20);n=t}return r}(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 e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.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(){Nt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qt?(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(){Nt&&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 e=t.propertyName,i=void 0===e?"":e;Vt.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Gt=function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i++){var c=n[i];Object.defineProperty(t,c,{value:e[c],enumerable:!1,writable:!1,configurable:!0})}return t},Ht=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||At},Bt=Qt(0,0,0,0);function Kt(t){return parseFloat(t)||0}function Ut(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce((function(e,i){return e+Kt(t["border-"+i+"-width"])}),0)}var Yt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Ht(t).SVGGraphicsElement}:function(t){return t instanceof Ht(t).SVGElement&&"function"==typeof t.getBBox};function Jt(t){return Nt?Yt(t)?function(t){var e=t.getBBox();return Qt(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Bt;var n=Ht(t).getComputedStyle(t),c=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var c=n[i];e[c]=Kt(t["padding-"+c])}return e}(n),o=c.left+c.right,r=c.top+c.bottom,s=Kt(n.width),l=Kt(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==e&&(s-=Ut(n,"left","right")+o),Math.round(l+r)!==i&&(l-=Ut(n,"top","bottom")+r)),!function(t){return t===Ht(t).document.documentElement}(t)){var a=Math.round(s+o)-e,h=Math.round(l+r)-i;1!==Math.abs(a)&&(s-=a),1!==Math.abs(h)&&(l-=h)}return Qt(c.left,c.top,s,l)}(t):Bt}function Qt(t,e,i,n){return{x:t,y:e,width:i,height:n}}var Xt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Jt(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}(),Zt=function(t,e){var i=function(t){var e=t.x,i=t.y,n=t.width,c=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(o.prototype);return Gt(r,{x:e,y:i,width:n,height:c,top:i,right:e+n,bottom:c+i,left:e}),r}(e);Gt(this,{target:t,contentRect:i})},te=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new Pt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}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 Ht(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Xt(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 Ht(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.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(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Zt(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ee="undefined"!=typeof WeakMap?new WeakMap:new Pt,ie=function t(e){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 i=Wt.getInstance(),n=new te(e,i,this);ee.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){ie.prototype[t]=function(){var e;return(e=ee.get(this))[t].apply(e,arguments)}}));var ne=void 0!==At.ResizeObserver?At.ResizeObserver:ie,ce=new Map,oe=new ne((function(t){t.forEach((function(t){var e,i=t.target;null===(e=ce.get(i))||void 0===e||e.forEach((function(t){return t(i)}))}))}));function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function se(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Et(n.key),n)}}function le(t,e){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},le(t,e)}function ae(t){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ae(t)}function he(t,e){if(e&&("object"===Ct(e)||"function"==typeof e))return e;if(void 0!==e)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 me=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&le(t,e)}(o,w.Component);var t,e,i,n,c=(i=o,n=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,e=ae(i);if(n){var c=ae(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return he(this,t)});function o(){return re(this,o),c.apply(this,arguments)}return t=o,(e=[{key:"render",value:function(){return this.props.children}}])&&se(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(),be=w.createContext(null);function de(t,e){var i,n,c,o,r=t.children,s=t.disabled,l=w.useRef(null),a=w.useRef(null),h=w.useContext(be),m="function"==typeof r,b=m?r(l):r,d=w.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!m&&w.isValidElement(b)&&!!("function"!=typeof(o=It.isMemo(i=b)?i.type.type:i.type)||null!==(n=o.prototype)&&void 0!==n&&n.render)&&!!("function"!=typeof i||null!==(c=i.prototype)&&void 0!==c&&c.render),p=u?b.ref:null,f=w.useMemo((function(){return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e.filter((function(t){return t}));return n.length<=1?n[0]:function(t){e.forEach((function(e){Dt(e,t)}))}}(p,l)}),[p,l]),x=function(){return Ft(l.current)||Ft(a.current)};w.useImperativeHandle(e,(function(){return x()}));var _=w.useRef(t);_.current=t;var v=w.useCallback((function(t){var e=_.current,i=e.onResize,n=e.data,c=t.getBoundingClientRect(),o=c.width,r=c.height,s=t.offsetWidth,l=t.offsetHeight,a=Math.floor(o),m=Math.floor(r);if(d.current.width!==a||d.current.height!==m||d.current.offsetWidth!==s||d.current.offsetHeight!==l){var b={width:a,height:m,offsetWidth:s,offsetHeight:l};d.current=b;var u=s===Math.round(o)?o:s,p=l===Math.round(r)?r:l,f=$t($t({},b),{},{offsetWidth:u,offsetHeight:p});null==h||h(f,t,n),i&&Promise.resolve().then((function(){i(f,t)}))}}),[]);return w.useEffect((function(){var t,e,i=x();return i&&!s&&(e=v,ce.has(t=i)||(ce.set(t,new Set),oe.observe(t)),ce.get(t).add(e)),function(){return function(t,e){ce.has(t)&&(ce.get(t).delete(e),ce.get(t).size||(oe.unobserve(t),ce.delete(t)))}(i,v)}}),[l.current,s]),w.createElement(me,{ref:a},u?w.cloneElement(b,{ref:f}):b)}var ue=w.forwardRef(de);function pe(t,e){var i=t.children;return("function"==typeof i?[i]:St(i)).map((function(i,n){var c=(null==i?void 0:i.key)||"".concat("rc-observer-key","-").concat(n);return w.createElement(ue,ct({},t,{key:c,ref:0===n?e:void 0}),i)}))}var fe=w.forwardRef(pe);fe.Collection=function(t){var e=t.children,i=t.onBatchResize,n=w.useRef(0),c=w.useRef([]),o=w.useContext(be),r=w.useCallback((function(t,e,r){n.current+=1;var s=n.current;c.current.push({size:t,element:e,data:r}),Promise.resolve().then((function(){s===n.current&&(null==i||i(c.current),c.current=[])})),null==o||o(t,e,r)}),[i,o]);return w.createElement(be.Provider,{value:r},e)};var xe="undefined"!=typeof window&&window.document&&window.document.createElement?w.useLayoutEffect:w.useEffect,_e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ve=void 0;function ge(t,e){var i=t.prefixCls,n=t.invalidate,c=t.item,o=t.renderItem,r=t.responsive,s=t.responsiveDisabled,l=t.registerSize,a=t.itemKey,h=t.className,m=t.style,b=t.children,d=t.display,u=t.order,p=t.component,f=void 0===p?"div":p,x=nt(t,_e),_=r&&!d;function g(t){l(a,t)}w.useEffect((function(){return function(){g(null)}}),[]);var y,k=o&&c!==ve?o(c):b;n||(y={opacity:_?0:1,height:_?0:ve,overflowY:_?"hidden":ve,order:r?u:ve,pointerEvents:_?"none":ve,position:_?"absolute":ve});var z={};_&&(z["aria-hidden"]=!0);var j=w.createElement(f,J({className:v(!n&&i,h),style:tt(tt({},y),m)},z,x,{ref:e}),k);return r&&(j=w.createElement(fe,{onResize:function(t){g(t.offsetWidth)},disabled:s},j)),j}var ye=w.forwardRef(ge);ye.displayName="Item";var we=function(t){return+setTimeout(t,16)},ke=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(we=function(t){return window.requestAnimationFrame(t)},ke=function(t){return window.cancelAnimationFrame(t)});var ze=0,je=new Map;function Oe(t){je.delete(t)}var Ie=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=ze+=1;function n(e){if(0===e)Oe(i),t();else{var c=we((function(){n(e-1)}));je.set(i,c)}}return n(e),i};function Se(t,e){var i=it(w.useState(e),2),n=i[0],c=i[1],o=function(){var e=w.useRef();e.current=function(e){t((function(){c(e)}))};var i=w.useCallback((function(){for(var t,i=arguments.length,n=new Array(i),c=0;c<i;c++)n[c]=arguments[c];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(n))}),[]);return i}();return[n,o]}Ie.cancel=function(t){var e=je.get(t);return Oe(e),ke(e)};var Ce=w.createContext(null),Ee=["component"],Me=["className"],Te=["className"],$e=function(t,e){var i=w.useContext(Ce);if(!i){var n=t.component,c=void 0===n?"div":n,o=nt(t,Ee);return w.createElement(c,J({},o,{ref:e}))}var r=i.className,s=nt(i,Me),l=t.className,a=nt(t,Te);return w.createElement(Ce.Provider,{value:null},w.createElement(ye,J({ref:e,className:v(r,l)},s,a)))},Re=w.forwardRef($e);Re.displayName="RawItem";var De=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fe="responsive",Pe="invalidate";function Ne(t){return"+ ".concat(t.length," ...")}function Ae(t,e){var i,n,c,o,r=t.prefixCls,s=void 0===r?"rc-overflow":r,l=t.data,a=void 0===l?[]:l,h=t.renderItem,m=t.renderRawItem,b=t.itemKey,d=t.itemWidth,u=void 0===d?10:d,p=t.ssr,f=t.style,x=t.className,_=t.maxCount,g=t.renderRest,y=t.renderRawRest,z=t.suffix,j=t.component,O=void 0===j?"div":j,I=t.itemComponent,S=t.onVisibleChange,C=nt(t,De),E="full"===p,M=(o=w.useRef(null),function(t){o.current||(o.current=[],function(t){if("undefined"==typeof MessageChannel)Ie(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){k.unstable_batchedUpdates((function(){o.current.forEach((function(t){t()})),o.current=null}))}))),o.current.push(t)}),T=it(Se(M,null),2),$=T[0],R=T[1],D=$||0,F=it(Se(M,new Map),2),P=F[0],N=F[1],A=it(Se(M,0),2),L=A[0],V=A[1],q=it(Se(M,0),2),W=q[0],G=q[1],H=it(Se(M,0),2),B=H[0],K=H[1],U=it(w.useState(null),2),Y=U[0],Q=U[1],X=it(w.useState(null),2),Z=X[0],et=X[1],ct=w.useMemo((function(){return null===Z&&E?Number.MAX_SAFE_INTEGER:Z||0}),[Z,$]),ot=it(w.useState(!1),2),rt=ot[0],st=ot[1],lt="".concat(s,"-item"),at=Math.max(L,W),ht=_===Fe,mt=a.length&&ht,bt=_===Pe,dt=mt||"number"==typeof _&&a.length>_,ut=w.useMemo((function(){var t=a;return mt?t=null===$&&E?a:a.slice(0,Math.min(a.length,D/u)):"number"==typeof _&&(t=a.slice(0,_)),t}),[a,u,$,_,mt]),pt=w.useMemo((function(){return a.slice(mt?ct+1:ut.length)}),[a,ut,mt,ct]),ft=w.useCallback((function(t,e){var i;return"function"==typeof b?b(t):null!==(i=b&&(null==t?void 0:t[b]))&&void 0!==i?i:e}),[b]),xt=w.useCallback(h||function(t){return t},[h]);function _t(t,e,i){(Z!==t||void 0!==e&&e!==Y)&&(et(t),i||(st(t<a.length-1),null==S||S(t)),void 0!==e&&Q(e))}function vt(t,e){N((function(i){var n=new Map(i);return null===e?n.delete(t):n.set(t,e),n}))}function gt(t){return P.get(ft(ut[t],t))}i=function(){if(D&&"number"==typeof at&&ut){var t=B,e=ut.length,i=e-1;if(!e)return void _t(0,null);for(var n=0;n<e;n+=1){var c=gt(n);if(E&&(c=c||0),void 0===c){_t(n-1,void 0,!0);break}if(t+=c,0===i&&t<=D||n===i-1&&t+gt(i)<=D){_t(i,null);break}if(t+at>D){_t(n-1,t-c-B+W);break}}z&&gt(0)+B>D&&Q(null)}},n=[D,P,W,B,ft,ut],c=w.useRef(!0),xe((function(){return i()}),n),xe((function(){return c.current=!1,function(){c.current=!0}}),[]);var yt=rt&&!!pt.length,wt={};null!==Y&&mt&&(wt={position:"absolute",left:Y,top:0});var kt,zt={prefixCls:lt,responsive:mt,component:I,invalidate:bt},jt=m?function(t,e){var i=ft(t,e);return w.createElement(Ce.Provider,{key:i,value:tt(tt({},zt),{},{order:e,item:t,itemKey:i,registerSize:vt,display:e<=ct})},m(t,e))}:function(t,e){var i=ft(t,e);return w.createElement(ye,J({},zt,{order:e,key:i,item:t,renderItem:xt,itemKey:i,registerSize:vt,display:e<=ct}))},Ot={order:yt?ct:Number.MAX_SAFE_INTEGER,className:"".concat(lt,"-rest"),registerSize:function(t,e){G(e),V(W)},display:yt};if(y)y&&(kt=w.createElement(Ce.Provider,{value:tt(tt({},zt),Ot)},y(pt)));else{var It=g||Ne;kt=w.createElement(ye,J({},zt,Ot),"function"==typeof It?It(pt):It)}var St=w.createElement(O,J({className:v(!bt&&s,x),style:f,ref:e},C),ut.map(jt),dt?kt:null,z&&w.createElement(ye,J({},zt,{responsive:ht,responsiveDisabled:!mt,order:ct,className:"".concat(lt,"-suffix"),registerSize:function(t,e){K(e)},display:!0,style:wt}),z));return ht&&(St=w.createElement(fe,{onResize:function(t,e){R(e.clientWidth)},disabled:!mt},St)),St}var Le=w.forwardRef(Ae);Le.displayName="Overflow",Le.Item=Re,Le.RESPONSIVE=Fe,Le.INVALIDATE=Pe;const Ve=class{constructor(t){e(this,t),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=t=>w.createElement("bcm-tooltip",{placement:"bottom",message:t.text,trigger:"hover"},w.createElement("div",{id:t.value+"-tag",className:"bcm-tag",onClick:({target:e})=>this.onClickControl(e,t,!1)},w.createElement("span",{className:"bcm-tag__content dismissable"},w.createElement("div",{className:"value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap"},t.text),w.createElement("span",{className:"right close-button"},w.createElement("bcm-icon",{icon:"fa fa-times"}))))),this.renderRest=t=>{const e=(null==t?void 0:t.sort(((t,e)=>+t.ct-+e.ct)).slice(0,15).map((t=>h.textLimitter(t.text,40,!0))).toString().split(",").join("\r\n"))+(t.length>15?"\r\n...":"");return w.createElement("bcm-tooltip",{placement:"bottom",message:e,trigger:"hover"},w.createElement("div",{className:"bcm-tag bcm-tag--other",onClick:({target:e})=>this.onClickControl(e,t,!0)},w.createElement("span",{className:"bcm-tag__content dismissable "+(this.checked?"checkable checked":"")},w.createElement("span",{className:"value"},`+${null==t?void 0:t.length}`),w.createElement("span",{className:"right close-button"},w.createElement("bcm-icon",{icon:"fa fa-times"})))))},this._id=l.UID(),this.maxCount=1,this.data=[],this.checked=!1}isClickDismiss(t){return"BCM-ICON"===t["s-hn"]}onClickControl(t,e,i=!1){const n=this.isClickDismiss(t);n&&this.deleteTag.emit({id:Array.isArray(e)?e.map((t=>t.value)):e.value})&&this.checked&&(this.checked=!1),!i&&this.selectTag.emit({id:e.value})&&this.checked&&(this.checked=!1),i&&!n&&(this.checked=!this.checked,this.selectOtherTag.emit({id:null==e?void 0:e.map((t=>t.value)),checked:this.checked}))}componentWillRender(){const{data:t,renderItem:e,renderRest:i,maxCount:n}=this;this.overflowInstance=w.createElement(Le,{data:t,renderItem:e,renderRest:i,maxCount:n}),k.render(this.overflowInstance,this.el)}get el(){return c(this)}};Ve.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:qe}=y({value:new Map}),We=(t,e)=>{let i=[];return t&&(i=t.map((t=>Object.assign(Object.assign(Object.assign({},t),{parentId:s((()=>e),null)}),t.items&&t.items.length>0&&{items:s((()=>We(t.items,t.id)),[])})))),i},Ge=t=>s((()=>qe.value.get(t)),{}),He=(t,e,i)=>{let n=[],c=[],o=[],r=[];const{searchIsOnlyChilds:s}=Ge(t);return e&&e.length>0&&e.forEach((e=>{let l=s&&null!==e.parentId;if((h.slugify(e.text).indexOf(h.slugify(i))>-1||e.keywords&&h.slugify(e.keywords).indexOf(h.slugify(i))>-1)&&(!s||s&&l)){if(o.push(e.id),n.push(e.id),c.push(e.id),r.push({id:e.id,text:e.text,parentId:e.parentId}),e.items&&e.items.length>0){const c=He(t,e.items,i);c.matching.length>0&&c.matching.forEach((t=>{n.push(t)}))}}else if(e.items&&e.items.length>0){const s=He(t,e.items,i);s.result.length>0&&(s.result.forEach((t=>{o.push(t)})),o.push(e.id),c.push(e.id),r.push({id:e.id,text:e.text,parentId:e.parentId,items:s.nestedResult})),s.matching.length>0&&n.push(...s.matching)}})),{result:o,matching:n,parentIndex:c,nestedResult:r}},Be=(t,e,i)=>{let n;n=i&&i.length>0?i:Ge(t).dataSource;let c=[];return n&&c.push(He(t,n,e)),{result:s((()=>l.flatArray(c[0].result)),[]),matching:s((()=>c[0].matching),[]),parentIndex:s((()=>c[0].parentIndex),[]),nestedResult:s((()=>c[0].nestedResult),[])}},Ke=class{constructor(t){e(this,t),this.bcmOnSearch=i(this,"bcm-on-search",7),this.bcmOnSearchClear=i(this,"bcm-on-search-clear",7),this.debounceHandler=l.debounceInput((t=>this.onSearchValue(t,this)),300,!1,(()=>{var t,e;this.isActiveClearable=(null===(e=null===(t=this.inputElement)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length)>0&&this.clearable})),this._id=l.UID(),this.placeholder="Search",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.size=f.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(t,e){t!==e&&await this.initState()}async initState(){await(t=>{const{id:e,dataSource:i}=t,n={id:s((()=>e),l.UID),dataSource:i&&i.length>0&&We(i),searchIsOnlyChilds:t.searchIsOnlyChilds};qe.value.set(n.id,n)})({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(t){this.inputElement.value=t}handleFocus(){}handleBlur(){}handleChange(){}async handleClear(t=!0){this.inputElement.value="";const{value:e,id:i}=this.inputElement;return Be(i,e),this.isActiveClearable=!1,this.bcmOnSearch.emit({result:null,value:null,matching:null,parentIndex:null}),this.bcmOnSearchClear.emit(t),await p(10),Promise.resolve()}onSearchValue(t,e){const{value:i,id:n}=t.target,c=(null==i?void 0:i.length)>=this.minSearchLength?Be(n,i,null):null,{bcmOnSearch:o,inputElement:r}=e;o.emit({result:null==c?void 0:c.result,value:null==r?void 0:r.value,matching:null==c?void 0:c.matching,parentIndex:null==c?void 0:c.parentIndex,nestedResult:null==c?void 0:c.nestedResult})}render(){const{_id:e,placeholder:i,disabled:c,readonly:o}=this;return t(n,{onClick:()=>{this.onBcmFocus(),this.onBcmSelect()}},t(j,{size:this.size,id:e,type:"search",placeholder:i,disabled:c,"full-width":!0,readonly:o,clearable:this.isActiveClearable,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleClear:()=>this.handleClear(),handleInput:this.debounceHandler,ref:t=>this.inputElement=t}))}get el(){return c(this)}static get watchers(){return{data:["dataChanged"]}}};Ke.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"); @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-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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;overflow:hidden;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{Y as bcm_list,Ve as bcm_rc_overflow,Ke as bcm_search}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,c as e,h as i,H as o,g as r}from"./p-6d7fe687.js";import{G as n,s}from"./p-be02416d.js";import{a}from"./p-a429e85b.js";import{c as p}from"./p-d65a1e21.js";import{S as c}from"./p-8d0ca8c2.js";import"./p-686641a5.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const l=class{constructor(i){t(this,i),this.bcmChange=e(this,"bcm-change",7),this._id=n.UID(),this.size=a.Size.medium,this.type="button",this.color=void 0,this.disabled=void 0,this.direction=a.Direction.horizontal}componentWillLoad(){const{size:t,color:e}=this,i=this.getButtons();(null==i?void 0:i.length)&&i.forEach((i=>{let o=c.elementBooleanCheck(this.el.getAttribute("disabled"))||i.getAttribute("disabled");e&&i.setAttribute("color",e),t&&i.setAttribute("size",t),o&&(i.disabled=!0)}))}getButtons(){return s((()=>Array.from(this.el.querySelectorAll("bcm-button"))),[])}radioControl(t){const e=this.getButtons();(null==e?void 0:e.length)&&e.forEach((e=>{e.checked=e.id==t}))}checkboxControl(t){const e=this.getButtons();(null==e?void 0:e.length)&&e.forEach((e=>{e.checked=e.id==t?e.checked=!e.checked:e.checked}))}listenButton({target:t}){if(t.id){switch(this.type){case"radio":this.radioControl(t.id);break;case"checkbox":this.checkboxControl(t.id)}this.handleChange()}}handleChange(){const t=this.getButtons().filter(Boolean).map((t=>({id:t.id,checked:t.checked})));this.bcmChange.emit(t)}render(){const t=p("bcm-button-group",{"bcm-button-group__vertical":this.direction===a.Direction.vertical});return i(o,{class:t},i("slot",null))}get el(){return r(this)}};l.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-button-group{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:fit-content;background-color:var(--bcm-new-ds-color-slate-300);border:1px solid var(--bcm-new-ds-color-slate-300);gap:1px;border-radius:4px}.bcm-button-group .bcm-button__container{border-radius:0;border:none}.bcm-button-group .bcm-button:first-child .bcm-button__container{border-top-left-radius:4px;border-bottom-left-radius:4px}.bcm-button-group .bcm-button:last-child .bcm-button__container{border-top-right-radius:4px;border-bottom-right-radius:4px}.bcm-button-group__vertical{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap}.bcm-button-group__vertical .bcm-button{width:100%}.bcm-button-group__vertical .bcm-button__container{width:100%;border-radius:0}.bcm-button-group__vertical .bcm-button:first-child .bcm-button__container{border-radius:4px 4px 0 0}.bcm-button-group__vertical .bcm-button:last-child .bcm-button__container{border-radius:0 0 4px 4px}';export{l as bcm_button_group}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,c as e,h as i,H as o,g as r}from"./p-6d7fe687.js";import"./p-2fc584c4.js";import"./p-626a65e9.js";import{G as s}from"./p-be02416d.js";import"./p-3806c36a.js";import"./p-8d0ca8c2.js";import"./p-1dbebb3b.js";import"./p-5ae0a59b.js";import{B as n}from"./p-a429e85b.js";import{c as a}from"./p-d65a1e21.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";import"./p-686641a5.js";const c=class{constructor(i){t(this,i),this.bcmBeforeOpen=e(this,"bcm-before-open",7),this.bcmBeforeClose=e(this,"bcm-before-close",7),this._id=s.UID(),this._title=void 0,this.position=n.Position.right,this.fullWidth=!1,this._open=!1,this._close=!1}async show(){this.bcmBeforeOpen.emit(!0)}async hide(){this.bcmBeforeClose.emit(!0),this._close=!0}_beforeOpen(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!0)}_beforeClose(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!1)}_openHandler(){this._open?document.body.classList.add("bcm-disable-scroll"):document.body.classList.remove("bcm-disable-scroll")}keyboardNavigation(t){(t.keyCode||0)==n.KeyCode.escape&&(t.preventDefault(),this.hide())}disconnectedCallback(){this._open=!1,document.body.classList.remove("bcm-disable-scroll"),this.el.remove()}render(){const t=a("bcm-drawer",{"bcm-drawer--open":this._open}),e=a("bcm-drawer__content",`bcm-drawer__content--position-${this.position}`,{"bcm-drawer__content--open":this._open,"bcm-drawer__content--close":this._close,"full-width":this.fullWidth}),r=a("bcm-drawer__overlay",{"bcm-drawer__overlay--open":this._open,"bcm-drawer__overlay--close":this._close});return i(o,{class:t},i("div",{class:r,onClick:()=>this.hide()}),i("div",{class:e},i("div",{class:"bcm-drawer__content-header"},i("bcm-text",{class:"bcm-drawer__content-header-title","font-size":"6",weight:"600",color:"slate-800"},this._title," ",i("slot",{name:"header"})),i("div",{class:"bcm-drawer__content-header-close size-4",onClick:()=>this.hide()},i("bcm-icon",{icon:"fal fa-times"}))),i("div",{style:{overflow:"auto",flex:"1"}},i("div",{class:"bcm-drawer__content-body"},i("slot",null))),i("div",{class:"bcm-drawer__content-footer"},i("slot",{name:"footer"}))))}get el(){return r(this)}static get watchers(){return{_open:["_openHandler"]}}};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-drawer{user-select:none;position:absolute;width:100vw;height:100vh;top:-100%;left:-100%;overflow:hidden;visibility:hidden}.bcm-drawer--open{visibility:visible;top:0;left:0}.bcm-drawer__content{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;user-select:text;position:fixed;width:100%;height:100%;background-color:#f1f5f9;z-index:10350;transition:transform 0.2s ease-in-out;transform:translateX(-100%);visibility:hidden;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.bcm-drawer__content-body{padding:0 24px 24px 24px}.bcm-drawer__content.full-width{max-width:100%}.bcm-drawer__content-header{padding:24px 24px 0 24px;display:flex;justify-content:space-between;align-items:flex-start;color:var(--bcm-color-grey-8);margin-bottom:8px}.bcm-drawer__content-header-close{padding:4px 8px;margin-right:-4px;margin-top:-4px;color:var(--bcm-color-grey-7)}.bcm-drawer__content-header-close:hover{cursor:pointer;color:var(--bcm-color-grey-8)}.bcm-drawer__content-footer{padding:12px 24px}.bcm-drawer__content--position-left,.bcm-drawer__content--position-right{max-width:500px}.bcm-drawer__content--position-left.full-width,.bcm-drawer__content--position-right.full-width{max-width:100%}.bcm-drawer__content--position-top,.bcm-drawer__content--position-bottom{max-height:500px}.bcm-drawer__content--position-top.full-width,.bcm-drawer__content--position-bottom.full-width{max-height:100%}.bcm-drawer__content--position-left{transform:translateX(-100%);top:0;left:0}.bcm-drawer__content--position-top{transform:translateY(-100%);top:0;left:0}.bcm-drawer__content--position-right{transform:translateX(100%);top:0;right:0}.bcm-drawer__content--position-bottom{transform:translateY(100%);bottom:0;left:0}.bcm-drawer__content--open{transform:translateX(0);visibility:visible}.bcm-drawer__content--close{visibility:visible}.bcm-drawer__overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:10349;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out}.bcm-drawer__overlay--close{opacity:0;visibility:visible;transform:translateX(-100%)}.bcm-drawer__overlay--open{opacity:1;visibility:visible;transform:translateX(0)}';export{c as bcm_drawer}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as n}from"./p-6d7fe687.js";import{d as e}from"./p-3fac58f7.js";import{a as s}from"./p-a429e85b.js";import{c as a}from"./p-d65a1e21.js";import{s as t}from"./p-17af6738.js";const i=({elementType:i,rows:o,id:r,internalId:c,type:l,placeholder:p,value:u,size:f,pattern:d,unit:m,unitPrefix:b,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:D,handleClear:O,steps:P,ref:V,handleBlur:B,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==m?void 0:m.length)>0?" "+m:"");const A="color"===(l=(null==m?void 0:m.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==m?void 0:m.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==m?void 0:m.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}),b&&n("span",{class:N},b),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=>V(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),B(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=>O(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:()=>D()},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:()=>P("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>P("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}
5
+ import{h as n}from"./p-6d7fe687.js";import{d as e}from"./p-3fac58f7.js";import{a as s}from"./p-a429e85b.js";import{c as a}from"./p-d65a1e21.js";import{s as t}from"./p-be02416d.js";const i=({elementType:i,rows:o,id:r,internalId:c,type:l,placeholder:p,value:u,size:f,pattern:d,unit:m,unitPrefix:b,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:D,handleClear:O,steps:P,ref:V,handleBlur:B,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==m?void 0:m.length)>0?" "+m:"");const A="color"===(l=(null==m?void 0:m.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==m?void 0:m.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==m?void 0:m.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}),b&&n("span",{class:N},b),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=>V(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),B(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=>O(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:()=>D()},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:()=>P("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>P("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}