bromcom-ui 2.7.38-rc.1 → 2.7.38-rc.2

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 (229) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-1bb7803c.entry.js → p-0108a4f6.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-cbfa56e8.entry.js → p-01476f62.entry.js} +1 -1
  4. package/dist/bromcom-ui/p-04c8b756.js +1 -1
  5. package/dist/bromcom-ui/p-0cd24918.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-a2d79502.entry.js → p-12a3ea8c.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-16c10cc7.js → p-14bdeb5b.js} +1 -1
  8. package/dist/bromcom-ui/{p-eaa34b84.entry.js → p-1978e4ae.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-43c148a4.entry.js → p-21ef4c33.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-5de35604.entry.js → p-2a074503.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-44dd9f7a.entry.js → p-2c31ab48.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-0c343f1d.entry.js → p-3349b9e9.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-3527254e.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-649f6d13.entry.js → p-37aebad7.entry.js} +1 -1
  15. package/dist/bromcom-ui/p-45704915.js +1 -1
  16. package/dist/bromcom-ui/{p-c7e3e6b0.entry.js → p-58facb9a.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-ff737d82.entry.js → p-596eea06.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-529cece6.entry.js → p-5dc62143.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-27085077.entry.js → p-620ccf20.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-52707827.entry.js → p-6515353b.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-375429c3.entry.js → p-6720d135.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-df615728.entry.js → p-68ff0890.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-04b6abc3.js → p-6c4032ea.js} +1 -1
  24. package/dist/bromcom-ui/p-74274ee1.entry.js +5 -0
  25. package/dist/bromcom-ui/{p-c546cfdf.entry.js → p-74dd5b0c.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-9086c5e5.entry.js → p-78cf8966.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-cb975855.entry.js → p-7b5e88c5.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-783cb2bb.entry.js → p-7dcbb6bb.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  30. package/dist/bromcom-ui/{p-d5503ae8.entry.js → p-89100908.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-888b5c8c.entry.js → p-8b4d514d.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  33. package/dist/bromcom-ui/{p-14afb435.entry.js → p-910778be.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-a0b83826.js → p-9310c165.js} +1 -1
  35. package/dist/bromcom-ui/{p-4058bd89.js → p-93e26ee8.js} +1 -1
  36. package/dist/bromcom-ui/{p-3fcb3478.entry.js → p-963c172a.entry.js} +1 -1
  37. package/dist/bromcom-ui/p-9943094c.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-d9acb076.entry.js → p-99bed73b.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-9c6de630.js +1 -1
  40. package/dist/bromcom-ui/{p-a8d1397d.js → p-a3ffcb0d.js} +1 -1
  41. package/dist/bromcom-ui/{p-35502aac.entry.js → p-a74a6cef.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-26d5b24d.entry.js → p-b824b537.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-7f137af3.entry.js → p-bb6f0801.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-c09b0566.entry.js → p-beeb659f.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-e987ebfa.entry.js → p-c4feb3c3.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-29f3c080.entry.js → p-c816a141.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-08662565.entry.js → p-c8250c79.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-1fa6181a.entry.js → p-c87c9f60.entry.js} +1 -1
  49. package/dist/bromcom-ui/p-c9bd85e9.js +1 -1
  50. package/dist/bromcom-ui/{p-432ebc3f.entry.js → p-cd2f7579.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-ce9fc9a2.entry.js +5 -0
  52. package/dist/bromcom-ui/{p-8065cf74.js → p-d055ef10.js} +1 -1
  53. package/dist/bromcom-ui/{p-4f79155d.entry.js → p-d5f41219.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-d98d05a3.js → p-d6f5b120.js} +1 -1
  55. package/dist/bromcom-ui/{p-9e6e812b.entry.js → p-da7603b0.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-6a0c96dc.entry.js → p-db6b5244.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-878e45a0.entry.js → p-e11b6d6c.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-1a1ee7ac.entry.js → p-e48c96b5.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-e974df65.entry.js → p-e61320dd.entry.js} +1 -1
  60. package/dist/bromcom-ui/p-e83e3eae.entry.js +5 -0
  61. package/dist/bromcom-ui/{p-161d83e1.entry.js → p-ead0b3fb.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-79719bd4.entry.js → p-ed477c35.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-6bc8c9a5.entry.js → p-f5ae5381.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-9710630f.entry.js → p-fd24a58e.entry.js} +1 -1
  65. package/dist/cjs/{bcm-f00ec62c.js → bcm-2c51bf0c.js} +4 -4
  66. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  68. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  69. package/dist/cjs/bcm-avatar_2.cjs.entry.js +10 -10
  70. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-button-group.cjs.entry.js +6 -6
  72. package/dist/cjs/bcm-button_9.cjs.entry.js +1792 -0
  73. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  74. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +8 -8
  75. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +5 -5
  76. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +9 -9
  77. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  79. package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
  80. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  81. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  82. package/dist/cjs/bcm-drawer.cjs.entry.js +7 -7
  83. package/dist/cjs/bcm-dropdown.cjs.entry.js +6 -6
  84. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
  85. package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-item.cjs.entry.js +3 -3
  87. package/dist/cjs/bcm-items.cjs.entry.js +3 -3
  88. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-linked_2.cjs.entry.js +98 -29
  90. package/dist/cjs/bcm-list.cjs.entry.js +26 -26
  91. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
  92. package/dist/cjs/bcm-popconfirm.cjs.entry.js +4 -4
  93. package/dist/cjs/bcm-popover.cjs.entry.js +8 -8
  94. package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-radio-group.cjs.entry.js +6 -6
  96. package/dist/cjs/bcm-radio.cjs.entry.js +5 -5
  97. package/dist/cjs/bcm-range.cjs.entry.js +5 -5
  98. package/dist/cjs/bcm-search.cjs.entry.js +5 -5
  99. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-switch.cjs.entry.js +8 -8
  102. package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -6
  103. package/dist/cjs/bcm-tag.cjs.entry.js +14 -14
  104. package/dist/cjs/bcm-text.cjs.entry.js +62 -0
  105. package/dist/cjs/bcm-textarea.cjs.entry.js +6 -6
  106. package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
  107. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  108. package/dist/cjs/{floating-ui-2a4a79ff.js → floating-ui-d86b77dc.js} +2 -2
  109. package/dist/cjs/{generate-e98dfd99.js → generate-46d176df.js} +1 -1
  110. package/dist/cjs/{input-template-00b50605.js → input-template-40d206dc.js} +6 -6
  111. package/dist/cjs/{json-parse-decarator-98c9ac9a.js → json-parse-decarator-b4d935fe.js} +1 -1
  112. package/dist/cjs/{label-template-e56264b3.js → label-template-38d5c382.js} +3 -3
  113. package/dist/cjs/loader.cjs.js +1 -1
  114. package/dist/cjs/{number-helper-b80392ed.js → number-helper-45eca0b6.js} +1 -1
  115. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +6 -6
  116. package/dist/cjs/old-bcm-popover.cjs.entry.js +4 -4
  117. package/dist/cjs/{popover-placement-ac98d407.js → popover-placement-87901bb3.js} +1 -1
  118. package/dist/cjs/{slot-template-a4505c70.js → slot-template-84d37599.js} +1 -1
  119. package/dist/cjs/{string-helper-145cd64f.js → string-helper-df40a475.js} +2 -2
  120. package/dist/cjs/{tooltip-helper-1418bb15.js → tooltip-helper-dff12a58.js} +5 -5
  121. package/dist/cjs/{validators-5514189b.js → validators-07cc49c6.js} +1 -1
  122. package/dist/collection/components/molecules/stepper/step.js +3 -3
  123. package/dist/collection/components/molecules/stepper/stepper.js +30 -9
  124. package/dist/components/bcm-stepper.js +13 -9
  125. package/dist/components/generate.js +1 -1
  126. package/dist/components/step.js +3 -3
  127. package/dist/esm/bcm-accordion.entry.js +1 -1
  128. package/dist/esm/bcm-alert.entry.js +1 -1
  129. package/dist/esm/bcm-attendance.entry.js +1 -1
  130. package/dist/esm/bcm-avatar_2.entry.js +7 -7
  131. package/dist/esm/bcm-b8d8a236.js +1 -1
  132. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  133. package/dist/esm/bcm-button-group.entry.js +2 -2
  134. package/dist/esm/bcm-button_9.entry.js +1780 -0
  135. package/dist/esm/bcm-card.entry.js +3 -3
  136. package/dist/esm/bcm-checkbox-group.entry.js +3 -3
  137. package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -3
  138. package/dist/esm/bcm-checkbox_2.entry.js +4 -4
  139. package/dist/esm/bcm-chip.entry.js +3 -3
  140. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  141. package/dist/esm/bcm-collapse.entry.js +1 -1
  142. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  143. package/dist/esm/bcm-date-picker.entry.js +3 -3
  144. package/dist/esm/bcm-datetime-picker.entry.js +4 -4
  145. package/dist/esm/bcm-default.entry.js +1 -1
  146. package/dist/esm/bcm-drawer.entry.js +7 -7
  147. package/dist/esm/bcm-dropdown.entry.js +3 -3
  148. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  149. package/dist/esm/bcm-form-2.entry.js +2 -2
  150. package/dist/esm/bcm-item.entry.js +4 -4
  151. package/dist/esm/bcm-items.entry.js +1 -1
  152. package/dist/esm/bcm-link.entry.js +1 -1
  153. package/dist/esm/bcm-linked_2.entry.js +97 -28
  154. package/dist/esm/bcm-list.entry.js +9 -9
  155. package/dist/esm/bcm-old-input.entry.js +1 -1
  156. package/dist/esm/bcm-old-tag_2.entry.js +1 -1
  157. package/dist/esm/bcm-popconfirm-box.entry.js +3 -3
  158. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  159. package/dist/esm/bcm-popover.entry.js +7 -7
  160. package/dist/esm/bcm-progress.entry.js +4 -4
  161. package/dist/esm/bcm-radio-group.entry.js +3 -3
  162. package/dist/esm/bcm-radio.entry.js +4 -4
  163. package/dist/esm/bcm-range.entry.js +3 -3
  164. package/dist/esm/bcm-search.entry.js +4 -4
  165. package/dist/esm/bcm-select.entry.js +1 -1
  166. package/dist/esm/bcm-skeleton.entry.js +1 -1
  167. package/dist/esm/bcm-switch.entry.js +3 -3
  168. package/dist/esm/bcm-tab-group.entry.js +2 -2
  169. package/dist/esm/bcm-table.entry.js +1 -1
  170. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  171. package/dist/esm/bcm-tabs.entry.js +1 -1
  172. package/dist/esm/bcm-tag.entry.js +4 -4
  173. package/dist/esm/bcm-text.entry.js +58 -0
  174. package/dist/esm/bcm-textarea.entry.js +4 -4
  175. package/dist/esm/bcm-time-picker.entry.js +3 -3
  176. package/dist/esm/bromcom-ui.js +1 -1
  177. package/dist/esm/{color-helper-b5e9aa56.js → color-helper-7e202fd8.js} +1 -1
  178. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  179. package/dist/esm/floating-ui-700d0b98.js +1 -1
  180. package/dist/esm/{generate-38707d04.js → generate-fed306d9.js} +1 -1
  181. package/dist/esm/{input-template-bd2265e4.js → input-template-6a8d3955.js} +2 -2
  182. package/dist/esm/{json-parse-decarator-0e105c28.js → json-parse-decarator-807c02cf.js} +1 -1
  183. package/dist/esm/label-template-f352ef5b.js +1 -1
  184. package/dist/esm/loader.js +1 -1
  185. package/dist/esm/{number-helper-5268042c.js → number-helper-184fdfee.js} +1 -1
  186. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  187. package/dist/esm/old-bcm-popover.entry.js +2 -2
  188. package/dist/esm/string-helper-74a1648f.js +1 -1
  189. package/dist/esm/{tooltip-helper-2c89e1cc.js → tooltip-helper-7f186fb6.js} +5 -5
  190. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  191. package/dist/esm/{validators-734a2c8e.js → validators-521afc37.js} +1 -1
  192. package/dist/types/components/molecules/stepper/step.d.ts +1 -1
  193. package/dist/types/components/molecules/stepper/stepper.d.ts +1 -0
  194. package/dist/types/components.d.ts +2 -0
  195. package/package.json +1 -1
  196. package/dist/bromcom-ui/p-00dc3d2e.entry.js +0 -5
  197. package/dist/bromcom-ui/p-0612fbb0.entry.js +0 -5
  198. package/dist/bromcom-ui/p-2c9f6e6a.entry.js +0 -5
  199. package/dist/bromcom-ui/p-3d2cdbcc.entry.js +0 -5
  200. package/dist/bromcom-ui/p-56a57960.entry.js +0 -5
  201. package/dist/bromcom-ui/p-85688ecf.entry.js +0 -5
  202. package/dist/bromcom-ui/p-a23d2359.entry.js +0 -5
  203. package/dist/bromcom-ui/p-a8abc160.entry.js +0 -5
  204. package/dist/bromcom-ui/p-b1b449e5.entry.js +0 -5
  205. package/dist/bromcom-ui/p-b95461ec.entry.js +0 -5
  206. package/dist/bromcom-ui/p-d33c83e8.entry.js +0 -5
  207. package/dist/bromcom-ui/p-d4200c87.entry.js +0 -5
  208. package/dist/bromcom-ui/p-e07222d9.entry.js +0 -5
  209. package/dist/bromcom-ui/p-f20c8e07.js +0 -5
  210. package/dist/cjs/bcm-button.cjs.entry.js +0 -384
  211. package/dist/cjs/bcm-form.cjs.entry.js +0 -487
  212. package/dist/cjs/bcm-icon.cjs.entry.js +0 -41
  213. package/dist/cjs/bcm-input.cjs.entry.js +0 -341
  214. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -122
  215. package/dist/cjs/bcm-menu.cjs.entry.js +0 -137
  216. package/dist/cjs/bcm-modal.cjs.entry.js +0 -142
  217. package/dist/cjs/bcm-step.cjs.entry.js +0 -101
  218. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -215
  219. package/dist/cjs/stepper-states-bd774fce.js +0 -83
  220. package/dist/esm/bcm-button.entry.js +0 -380
  221. package/dist/esm/bcm-form.entry.js +0 -483
  222. package/dist/esm/bcm-icon.entry.js +0 -37
  223. package/dist/esm/bcm-input.entry.js +0 -337
  224. package/dist/esm/bcm-label_2.entry.js +0 -117
  225. package/dist/esm/bcm-menu.entry.js +0 -133
  226. package/dist/esm/bcm-modal.entry.js +0 -138
  227. package/dist/esm/bcm-step.entry.js +0 -97
  228. package/dist/esm/bcm-stepper.entry.js +0 -211
  229. package/dist/esm/stepper-states-925a81ea.js +0 -81
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as c,H as o,g as r}from"./p-0122ae3d.js";import{I as n}from"./p-96287124.js";import{C as l}from"./p-a8d1397d.js";import"./p-626a65e9.js";import{G as s}from"./p-04b6abc3.js";import{N as d}from"./p-8065cf74.js";import"./p-04c8b756.js";import"./p-16c10cc7.js";import"./p-5ae0a59b.js";import{B as b}from"./p-c9bd85e9.js";import{c as a}from"./p-d5b08a77.js";import{S as m}from"./p-a95d388e.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-6f56f8ca.js";const i=class{constructor(c){e(this,c),this._id=s.UID(),this.hidden=!1,this.image=void 0,this.name=void 0,this.alt=void 0,this.shape=b.Shape.ellipse,this.size=b.Size.medium,this.color=void 0,this.status=void 0,this.isFallback=!1}componentWillLoad(){this.name=this.name&&this.name.trim()||""}handleError(){this.isFallback=!0}getCustomSizes(e){return Math.round(parseInt(e)/3)}getFirstLetters(e){const c=e.split(" ");return 1===c.length?c[0].substring(0,2):c[0].charAt(0)+c[c.length-1].charAt(0)}setStyleVariables(){const{size:e}=this;let{color:c}=this;!c&&(c="slate");let o=d.toNumber(e),r=Math.round(parseInt(o)/3);const n="--bcm-avatar";return{[`${n}-color`]:l.dsColor(`${c}-600`),[`${n}-background-color`]:l.dsColor(`${c}-100`),[`${n}-height`]:`${o}px`,[`${n}-font-size`]:`${r}px`}}render(){const{image:e,name:r,alt:n,hidden:l,shape:s,size:d,status:m}=this,i=!Object.keys(b.BaseSize).includes(d),t=a("bcm-avatar",`bcm-avatar__shape-${s}`,`bcm-avatar__size-${i?"custom":d}`,{hidden:l,"bcm-avatar__status":!!m}),w=()=>c("bcm-icon",{icon:"fas fa-user"});return c(o,{class:t,style:this.setStyleVariables()},c("span",{hidden:!0},c("slot",null)),this.isFallback?this.name?this.getFirstLetters(this.name):w():e?c("img",{onError:()=>this.handleError(),src:e,alt:n}):r?this.getFirstLetters(r):w(),m&&c("bcm-badge",{status:m}))}get el(){return r(this)}};(function(e,c,o,r){var n,l=arguments.length,s=l<3?c:null===r?r=Object.getOwnPropertyDescriptor(c,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,c,o,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(l<3?n(s):l>3?n(c,o,s):n(c,o))||s);l>3&&s&&Object.defineProperty(c,o,s)})([n()],i.prototype,"el",void 0),i.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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-avatar{--bcm-avatar-color:var(--bcm-new-ds-color-slate-600);--bcm-avatar-background-color:var(--bcm-new-ds-color-slate-100);--prefix-height:40px;--prefix-font-size:font-size(2);font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;background-color:var(--bcm-avatar-background-color);color:var(--bcm-avatar-color);text-transform:uppercase}.bcm-avatar.hidden{display:none}.bcm-avatar img{width:100%;height:100%}.bcm-avatar__shape-ellipse,.bcm-avatar__shape-ellipse>img{border-radius:100px}.bcm-avatar__shape-square,.bcm-avatar__shape-square>img{border-radius:4px}.bcm-avatar__shape-ellipse .bcm-badge{top:0px;right:0px}.bcm-avatar__shape-square .bcm-badge{top:-2px;right:-2px}.bcm-avatar__size-small{font-size:10px;line-height:calc(10px + 8px);height:24px;width:24px}.bcm-avatar__size-medium{font-size:12px;line-height:calc(12px + 8px);height:32px;width:32px}.bcm-avatar__size-large{font-size:14px;line-height:calc(14px + 8px);height:40px;width:40px}.bcm-avatar__size-custom{font-size:var(--bcm-avatar-font-size);line-height:calc(var(--bcm-avatar-font-size) + 8px);height:var(--bcm-avatar-height);width:var(--bcm-avatar-height)}.bcm-avatar__status{position:relative}.bcm-avatar__status .bcm-badge{position:absolute}';const t=class{constructor(c){e(this,c),this._id=s.UID(),this.hidden=!1,this.blink=!1,this.value=void 0,this.color=void 0,this.size=b.Size.medium,this.status=void 0,this._slot=void 0}setStyleVariables(){const{status:e,value:c}=this;let{color:o}=this;e&&(o={info:"blue",error:"red",warning:"amber",success:"emerald",default:"slate"}[e]),!o&&(o="slate");const r="--bcm-badge",n=c&&c.length>1?"8":"4";return{[`${r}-color`]:l.reverseColor(l.dsColor(`${o}`)),[`${r}-background-color`]:l.dsColor(`${o}`),[`${r}-spacing`]:`${n}px`}}render(){let{blink:e,value:r,size:n,_slot:l,hidden:s}=this;const d=a("bcm-badge__dot","bcm-badge__dot-size-"+n,{"bcm-badge__dot-blink":e}),b=a("bcm-badge",{hidden:s});return c(o,{class:b,style:this.setStyleVariables()},c("span",{hidden:!0},c("slot",null)),c("div",{class:d},!!r&&c("span",{class:"bcm-badge__dot-text"},r)),c(m,{value:l}))}get el(){return r(this)}};(function(e,c,o,r){var n,l=arguments.length,s=l<3?c:null===r?r=Object.getOwnPropertyDescriptor(c,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,c,o,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(l<3?n(s):l>3?n(c,o,s):n(c,o))||s);l>3&&s&&Object.defineProperty(c,o,s)})([n()],t.prototype,"el",void 0),t.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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-badge{--bcm-badge-color:var(--bcm-new-ds-color-white);--bcm-badge-background-color:var(--bcm-new-ds-color-slate-400);--bcm-badge-spacing:4px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-badge.hidden{display:none}.bcm-badge span:empty{display:none}.bcm-badge__dot{color:var(--bcm-badge-color);background-color:var(--bcm-badge-background-color);display:inline-block;border-radius:100px;position:relative}.bcm-badge__dot-text{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:0 var(--bcm-badge-spacing);z-index:2;color:var(--bcm-badge-color)}.bcm-badge__dot-size-small{font-size:10px;line-height:calc(10px + 8px);min-width:6px;min-height:6px}.bcm-badge__dot-size-small .bcm-badge__dot-text{min-width:calc(10px + 8px)}.bcm-badge__dot-size-medium{font-size:12px;line-height:calc(12px + 8px);min-width:8px;min-height:8px}.bcm-badge__dot-size-medium .bcm-badge__dot-text{min-width:calc(12px + 8px)}.bcm-badge__dot-size-large{font-size:14px;line-height:calc(14px + 8px);min-width:10px;min-height:10px}.bcm-badge__dot-size-large .bcm-badge__dot-text{min-width:calc(14px + 8px)}.bcm-badge__dot-blink{position:relative;z-index:1}.bcm-badge__dot-blink:after{content:"";position:absolute;z-index:-1;top:0;left:0;background:var(--bcm-badge-background-color);border-radius:100px;opacity:0.7;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1);width:100%;height:100%}.bcm-badge__dot:after{background-color:var(--bcm-badge-background-color);animation:badge-pulse 2s infinite}@keyframes badge-pulse{0%{transform:scale(0.95);box-shadow:0 0 0 0 var(--bcm-badge-background-color)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}';export{i as bcm_avatar,t as bcm_badge}
5
+ import{r as e,h as c,H as o,g as r}from"./p-0122ae3d.js";import{I as n}from"./p-96287124.js";import{C as l}from"./p-a3ffcb0d.js";import"./p-626a65e9.js";import{G as s}from"./p-6c4032ea.js";import{N as d}from"./p-d055ef10.js";import"./p-04c8b756.js";import"./p-14bdeb5b.js";import"./p-7e44e6b5.js";import{a as b}from"./p-c9bd85e9.js";import{c as a}from"./p-d5b08a77.js";import{S as m}from"./p-a95d388e.js";import"./p-436364c8.js";import"./p-8c018ae0.js";import"./p-6f56f8ca.js";const i=class{constructor(c){e(this,c),this._id=s.UID(),this.hidden=!1,this.image=void 0,this.name=void 0,this.alt=void 0,this.shape=b.Shape.ellipse,this.size=b.Size.medium,this.color=void 0,this.status=void 0,this.isFallback=!1}componentWillLoad(){this.name=this.name&&this.name.trim()||""}handleError(){this.isFallback=!0}getCustomSizes(e){return Math.round(parseInt(e)/3)}getFirstLetters(e){const c=e.split(" ");return 1===c.length?c[0].substring(0,2):c[0].charAt(0)+c[c.length-1].charAt(0)}setStyleVariables(){const{size:e}=this;let{color:c}=this;!c&&(c="slate");let o=d.toNumber(e),r=Math.round(parseInt(o)/3);const n="--bcm-avatar";return{[`${n}-color`]:l.dsColor(`${c}-600`),[`${n}-background-color`]:l.dsColor(`${c}-100`),[`${n}-height`]:`${o}px`,[`${n}-font-size`]:`${r}px`}}render(){const{image:e,name:r,alt:n,hidden:l,shape:s,size:d,status:m}=this,i=!Object.keys(b.BaseSize).includes(d),t=a("bcm-avatar",`bcm-avatar__shape-${s}`,`bcm-avatar__size-${i?"custom":d}`,{hidden:l,"bcm-avatar__status":!!m}),w=()=>c("bcm-icon",{icon:"fas fa-user"});return c(o,{class:t,style:this.setStyleVariables()},c("span",{hidden:!0},c("slot",null)),this.isFallback?this.name?this.getFirstLetters(this.name):w():e?c("img",{onError:()=>this.handleError(),src:e,alt:n}):r?this.getFirstLetters(r):w(),m&&c("bcm-badge",{status:m}))}get el(){return r(this)}};(function(e,c,o,r){var n,l=arguments.length,s=l<3?c:null===r?r=Object.getOwnPropertyDescriptor(c,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,c,o,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(l<3?n(s):l>3?n(c,o,s):n(c,o))||s);l>3&&s&&Object.defineProperty(c,o,s)})([n()],i.prototype,"el",void 0),i.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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-avatar{--bcm-avatar-color:var(--bcm-new-ds-color-slate-600);--bcm-avatar-background-color:var(--bcm-new-ds-color-slate-100);--prefix-height:40px;--prefix-font-size:font-size(2);font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;background-color:var(--bcm-avatar-background-color);color:var(--bcm-avatar-color);text-transform:uppercase}.bcm-avatar.hidden{display:none}.bcm-avatar img{width:100%;height:100%}.bcm-avatar__shape-ellipse,.bcm-avatar__shape-ellipse>img{border-radius:100px}.bcm-avatar__shape-square,.bcm-avatar__shape-square>img{border-radius:4px}.bcm-avatar__shape-ellipse .bcm-badge{top:0px;right:0px}.bcm-avatar__shape-square .bcm-badge{top:-2px;right:-2px}.bcm-avatar__size-small{font-size:10px;line-height:calc(10px + 8px);height:24px;width:24px}.bcm-avatar__size-medium{font-size:12px;line-height:calc(12px + 8px);height:32px;width:32px}.bcm-avatar__size-large{font-size:14px;line-height:calc(14px + 8px);height:40px;width:40px}.bcm-avatar__size-custom{font-size:var(--bcm-avatar-font-size);line-height:calc(var(--bcm-avatar-font-size) + 8px);height:var(--bcm-avatar-height);width:var(--bcm-avatar-height)}.bcm-avatar__status{position:relative}.bcm-avatar__status .bcm-badge{position:absolute}';const t=class{constructor(c){e(this,c),this._id=s.UID(),this.hidden=!1,this.blink=!1,this.value=void 0,this.color=void 0,this.size=b.Size.medium,this.status=void 0,this._slot=void 0}setStyleVariables(){const{status:e,value:c}=this;let{color:o}=this;e&&(o={info:"blue",error:"red",warning:"amber",success:"emerald",default:"slate"}[e]),!o&&(o="slate");const r="--bcm-badge",n=c&&c.length>1?"8":"4";return{[`${r}-color`]:l.reverseColor(l.dsColor(`${o}`)),[`${r}-background-color`]:l.dsColor(`${o}`),[`${r}-spacing`]:`${n}px`}}render(){let{blink:e,value:r,size:n,_slot:l,hidden:s}=this;const d=a("bcm-badge__dot","bcm-badge__dot-size-"+n,{"bcm-badge__dot-blink":e}),b=a("bcm-badge",{hidden:s});return c(o,{class:b,style:this.setStyleVariables()},c("span",{hidden:!0},c("slot",null)),c("div",{class:d},!!r&&c("span",{class:"bcm-badge__dot-text"},r)),c(m,{value:l}))}get el(){return r(this)}};(function(e,c,o,r){var n,l=arguments.length,s=l<3?c:null===r?r=Object.getOwnPropertyDescriptor(c,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,c,o,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(l<3?n(s):l>3?n(c,o,s):n(c,o))||s);l>3&&s&&Object.defineProperty(c,o,s)})([n()],t.prototype,"el",void 0),t.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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-badge{--bcm-badge-color:var(--bcm-new-ds-color-white);--bcm-badge-background-color:var(--bcm-new-ds-color-slate-400);--bcm-badge-spacing:4px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-badge.hidden{display:none}.bcm-badge span:empty{display:none}.bcm-badge__dot{color:var(--bcm-badge-color);background-color:var(--bcm-badge-background-color);display:inline-block;border-radius:100px;position:relative}.bcm-badge__dot-text{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:0 var(--bcm-badge-spacing);z-index:2;color:var(--bcm-badge-color)}.bcm-badge__dot-size-small{font-size:10px;line-height:calc(10px + 8px);min-width:6px;min-height:6px}.bcm-badge__dot-size-small .bcm-badge__dot-text{min-width:calc(10px + 8px)}.bcm-badge__dot-size-medium{font-size:12px;line-height:calc(12px + 8px);min-width:8px;min-height:8px}.bcm-badge__dot-size-medium .bcm-badge__dot-text{min-width:calc(12px + 8px)}.bcm-badge__dot-size-large{font-size:14px;line-height:calc(14px + 8px);min-width:10px;min-height:10px}.bcm-badge__dot-size-large .bcm-badge__dot-text{min-width:calc(14px + 8px)}.bcm-badge__dot-blink{position:relative;z-index:1}.bcm-badge__dot-blink:after{content:"";position:absolute;z-index:-1;top:0;left:0;background:var(--bcm-badge-background-color);border-radius:100px;opacity:0.7;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1);width:100%;height:100%}.bcm-badge__dot:after{background-color:var(--bcm-badge-background-color);animation:badge-pulse 2s infinite}@keyframes badge-pulse{0%{transform:scale(0.95);box-shadow:0 0 0 0 var(--bcm-badge-background-color)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}';export{i as bcm_avatar,t as bcm_badge}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as t,H as i,g as p}from"./p-0122ae3d.js";import{c as n}from"./p-d5b08a77.js";import{I as a}from"./p-96287124.js";import{c as s}from"./p-3c7a0345.js";import{T as o}from"./p-e53f8a82.js";import"./p-6f56f8ca.js";const r=class{constructor(t){e(this,t),this.size="medium",this.hidden=!1,this.fullWidth=!1,this.type=o.normal}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}handleActivePane(e){s(this.el,"bcm-tab-pane").forEach((t=>{t.tab==e.detail&&(t.active=!0),t.tab!=e.detail&&(t.active=!1)}))}render(){const e=n("tabs-content",this.size),p=n(this.hidden?"hidden":null,this.type);return t(i,{class:p},t("div",{class:e},t("slot",null)))}get el(){return p(this)}};(function(e,t,i,p){var n,a=arguments.length,s=a<3?t:null===p?p=Object.getOwnPropertyDescriptor(t,i):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,p);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)})([a()],r.prototype,"el",void 0),r.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}:host{width:100%;display:block;padding:8px}:host(.pane){border:1px solid transparent;border-top:none;border-color:var(--bcm-color-grey-5);border-radius:0 0 2px 2px}';export{r as bcm_tabs_content}
5
+ import{r as e,h as t,H as i,g as p}from"./p-0122ae3d.js";import{c as n}from"./p-d5b08a77.js";import{I as a}from"./p-96287124.js";import{c as s}from"./p-8c018ae0.js";import{T as o}from"./p-e53f8a82.js";import"./p-6f56f8ca.js";const r=class{constructor(t){e(this,t),this.size="medium",this.hidden=!1,this.fullWidth=!1,this.type=o.normal}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}handleActivePane(e){s(this.el,"bcm-tab-pane").forEach((t=>{t.tab==e.detail&&(t.active=!0),t.tab!=e.detail&&(t.active=!1)}))}render(){const e=n("tabs-content",this.size),p=n(this.hidden?"hidden":null,this.type);return t(i,{class:p},t("div",{class:e},t("slot",null)))}get el(){return p(this)}};(function(e,t,i,p){var n,a=arguments.length,s=a<3?t:null===p?p=Object.getOwnPropertyDescriptor(t,i):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,p);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)})([a()],r.prototype,"el",void 0),r.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}:host{width:100%;display:block;padding:8px}:host(.pane){border:1px solid transparent;border-top:none;border-color:var(--bcm-color-grey-5);border-radius:0 0 2px 2px}';export{r as bcm_tabs_content}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-0122ae3d.js";import{I as n}from"./p-96287124.js";import{G as r,s as h}from"./p-04b6abc3.js";import{S as p}from"./p-04c8b756.js";import{a as l}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const c=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX"];const x=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=l.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>c.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],x.prototype,"el",void 0),x.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}:host{display:block}';export{x as bcm_form_2}
5
+ import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-0122ae3d.js";import{I as n}from"./p-96287124.js";import{G as r,s as h}from"./p-6c4032ea.js";import{S as p}from"./p-04c8b756.js";import{B as l}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const c=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX"];const x=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=l.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>c.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],x.prototype,"el",void 0),x.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}:host{display:block}';export{x as bcm_form_2}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- var r,e;function t(r,e){try{var t=r();return void 0===t?e:t}catch(r){if(r instanceof TypeError)return e;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(r||(r={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const n=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return n.includes(r)})()&&console.log("%cbromcom ui%c version: 2.7.38-rc.1-p ","color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;");class c{}c.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,c.getIconAttrWithStatusType=(e,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(e){case r.info:return{icon:"far fa-info-circle"};case r.error:return{icon:"far fa-times-circle"};case r.warning:return{icon:"far fa-exclamation-circle"};case r.success:return{icon:"far fa-check-circle"}}},c.createComponent=(r,e,t="append-area")=>{let n=t?document.querySelector(t):document.body;t&&!n&&(n=document.createElement("div"),n.id="append-area",document.body.appendChild(n),n.style.visibility="hidden",n.style.opacity="0");let c=document.getElementById(e.id);return c||(c=document.createElement(r)),Object.keys(e).forEach((r=>{c[r]=e[r]})),n.appendChild(c),c},c.createElement=(r="div",e)=>{let t=document.getElementById(e.id);return t||(t=document.createElement(r)),Object.keys(e).forEach((r=>{"innerHTML"==r?t[r]=e[r]:t.setAttribute(r,e[r])})),document.body.appendChild(t),t},c.debounceInput=(r,e,t,n)=>{let c;return function(){let o=this,i=arguments;n&&n.apply(o,i);let a=function(){c=null,t||r.apply(o,i)},u=t&&!c;clearTimeout(c),c=setTimeout(a,e),u&&r.apply(o,i)}},c.flatArray=r=>r.reduce(((r,e)=>r.concat(Array.isArray(e)?c.flatArray(e):e)),[]),c.reverseNodeList=r=>{let e=[];for(let t=r.length-1;t>=0;t--)e.push(r[t]);return e},c.findEventPathWithKey=(r,e,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r[e])))[0]},c.findEventPathHasAttribute=(r,e)=>{let n=r.composedPath()||r.path;if(n)return t((()=>!!n.find((r=>r.hasAttribute(e)))),!1)},c.findEventTarget=(r,e)=>{e=Array.isArray(e)?e:[e];let t=r.target||r.srcElement;if(t)return e.includes(t)},c.findEventPathWithNodeName=(r,e)=>{let t=r.composedPath()||r.path;if(t)return t.filter((r=>r.nodeName===e))[0]},c.findEventPath=(r,e)=>{e=Array.isArray(e)?e:[e];let t=r.composedPath()||r.path;if(t)return void 0!==t.filter((r=>e.includes(r)))[0]},c.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,c.convertIdsToNestedData=(r,e)=>{let t=[],n=[];return e.forEach((e=>{r&&r.indexOf(e.id.toString())>-1?t.push(e):e.items&&(n=c.convertIdsToNestedData(r,e.items),n.length>0&&(e.items=n,t.push(e)))})),t},c.nodeListToArray=r=>Array.prototype.slice.call(r),c.setAttributes=(r,e)=>{Object.keys(e).forEach((t=>{r.setAttribute(t,e[t])}))},c.computedStyle=(r,e)=>window.getComputedStyle(r,null).getPropertyValue(e),c.getAncestor=(r,e)=>{for(;(r=r.parentElement)&&!r.matches(e););return r};export{c as G,r as S,e as T,t as s}
5
+ var r,e;function t(r,e){try{var t=r();return void 0===t?e:t}catch(r){if(r instanceof TypeError)return e;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(r||(r={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const n=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return n.includes(r)})()&&console.log("%cbromcom ui%c version: 2.7.38-rc.2-p ","color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;");class c{}c.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,c.getIconAttrWithStatusType=(e,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(e){case r.info:return{icon:"far fa-info-circle"};case r.error:return{icon:"far fa-times-circle"};case r.warning:return{icon:"far fa-exclamation-circle"};case r.success:return{icon:"far fa-check-circle"}}},c.createComponent=(r,e,t="append-area")=>{let n=t?document.querySelector(t):document.body;t&&!n&&(n=document.createElement("div"),n.id="append-area",document.body.appendChild(n),n.style.visibility="hidden",n.style.opacity="0");let c=document.getElementById(e.id);return c||(c=document.createElement(r)),Object.keys(e).forEach((r=>{c[r]=e[r]})),n.appendChild(c),c},c.createElement=(r="div",e)=>{let t=document.getElementById(e.id);return t||(t=document.createElement(r)),Object.keys(e).forEach((r=>{"innerHTML"==r?t[r]=e[r]:t.setAttribute(r,e[r])})),document.body.appendChild(t),t},c.debounceInput=(r,e,t,n)=>{let c;return function(){let o=this,i=arguments;n&&n.apply(o,i);let a=function(){c=null,t||r.apply(o,i)},u=t&&!c;clearTimeout(c),c=setTimeout(a,e),u&&r.apply(o,i)}},c.flatArray=r=>r.reduce(((r,e)=>r.concat(Array.isArray(e)?c.flatArray(e):e)),[]),c.reverseNodeList=r=>{let e=[];for(let t=r.length-1;t>=0;t--)e.push(r[t]);return e},c.findEventPathWithKey=(r,e,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r[e])))[0]},c.findEventPathHasAttribute=(r,e)=>{let n=r.composedPath()||r.path;if(n)return t((()=>!!n.find((r=>r.hasAttribute(e)))),!1)},c.findEventTarget=(r,e)=>{e=Array.isArray(e)?e:[e];let t=r.target||r.srcElement;if(t)return e.includes(t)},c.findEventPathWithNodeName=(r,e)=>{let t=r.composedPath()||r.path;if(t)return t.filter((r=>r.nodeName===e))[0]},c.findEventPath=(r,e)=>{e=Array.isArray(e)?e:[e];let t=r.composedPath()||r.path;if(t)return void 0!==t.filter((r=>e.includes(r)))[0]},c.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,c.convertIdsToNestedData=(r,e)=>{let t=[],n=[];return e.forEach((e=>{r&&r.indexOf(e.id.toString())>-1?t.push(e):e.items&&(n=c.convertIdsToNestedData(r,e.items),n.length>0&&(e.items=n,t.push(e)))})),t},c.nodeListToArray=r=>Array.prototype.slice.call(r),c.setAttributes=(r,e)=>{Object.keys(e).forEach((t=>{r.setAttribute(t,e[t])}))},c.computedStyle=(r,e)=>window.getComputedStyle(r,null).getPropertyValue(e),c.getAncestor=(r,e)=>{for(;(r=r.parentElement)&&!r.matches(e););return r};export{c as G,r as S,e as T,t as s}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,h as s,H as i,g as e}from"./p-0122ae3d.js";import{I as h}from"./p-96287124.js";import{C as o}from"./p-a3ffcb0d.js";import"./p-626a65e9.js";import{G as r}from"./p-6c4032ea.js";import"./p-d055ef10.js";import{S as n}from"./p-04c8b756.js";import"./p-14bdeb5b.js";import"./p-7e44e6b5.js";import{a}from"./p-c9bd85e9.js";import{F as c}from"./p-45704915.js";import"./p-436364c8.js";import"./p-8c018ae0.js";import"./p-6f56f8ca.js";class p{constructor({content:t,message:s,targetId:i,placement:e="top",color:h="slate-700",trigger:a="none"}){this.bgColor=()=>o.twColor(this.color,700),this.exepcitonColors={white:"slate-300",black:"slate-700"},this.target=()=>document.getElementById(this.targetId),this.init=()=>{console.log(this.content,this.message);const t=`<div class="tw-z-[1] tw-rounded tw-py-2 tw-bg-${this.bgColor()}">\n ${this.message?`<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${n.trim(this.message)}</div>`:""}\n ${this.content?`<div class="tw-font-normal tw-px-4">${n.trim(this.content)}</div>`:""}\n </div>`;this.el=r.createElement("div",{id:`${this.targetId}-popover-box`,class:`\n tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300\n tw-shadow`,role:"popover","aria-hidden":"true",style:`color: ${o.twColorReverse(this.bgColor())}`,innerHTML:t})},this.update=()=>{this.el=document.getElementById(this.id),this.el&&(this.hide(),this.show())},this.listener=()=>{if(window.addEventListener("resize",this.calculatePosition.bind(this)),window.addEventListener("scroll",this.calculatePosition.bind(this),!0),window.addEventListener("wheel",this.calculatePosition.bind(this)),this.trigger&&this.target())switch(this.trigger){case"click":this.target().addEventListener("click",this.toggle.bind(this));break;case"hover":this.target().addEventListener("mouseenter",this.show.bind(this)),this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"focus":this.target().addEventListener("focus",this.show.bind(this),!0),this.target().addEventListener("blur",this.hide.bind(this),!0)}this.calculatePosition()},this.calculatePosition=()=>{this.el=document.getElementById(this.id),this.el&&c({ref:this.target(),floating:this.el,placement:this.placement,offset:8,arrow:!0,arrowColor:`tw-bg-${this.bgColor()}`})},this.show=()=>{this.message?(this.init(),this.calculatePosition()):this.hide()},this.hide=()=>{this.el=document.getElementById(this.id),this.el&&this.el.remove()},this.toggle=()=>{this.el=document.getElementById(this.id),this.el?this.hide():this.show()},this.content=t,this.message=s,this.targetId=i,this.placement=e,this.color=h,this.trigger=a,this.id=i+"-popover-box"}}const l=class{constructor(s){t(this,s),this._id=r.UID(),this.message="",this.content="",this.placement=a.Placement.top,this.trigger=a.TriggerType.click,this.open=!1,this.color="white",this.popover=new p({targetId:this._id,content:this.content,message:this.message,placement:this.placement,color:this.color,trigger:this.trigger})}componentDidLoad(){this.popover.listener()}componentDidRender(){const{content:t,message:s,placement:i,color:e,trigger:h}=this;this.popover.content=t,this.popover.message=s,this.popover.placement=i,this.popover.color=e,this.popover.trigger=h,this.popover.update()}async show(){this.popover.show()}async hide(){this.popover.hide()}async toggle(){this.popover.toggle()}render(){return s(i,{"aria-describedby":"popover",tabindex:"-1",class:"tw-inline-flex tw-w-fit tw-h-fit"},s("slot",null))}get el(){return e(this)}};!function(t,s,i,e){var h,o=arguments.length,r=o<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(r=(o<3?h(r):o>3?h(s,i,r):h(s,i))||r);o>3&&r&&Object.defineProperty(s,i,r)}([h()],l.prototype,"el",void 0);export{l as bcm_popover}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c as o,h as c,H as r,g as n}from"./p-0122ae3d.js";import{G as l,s}from"./p-04b6abc3.js";import{a as d}from"./p-c9bd85e9.js";import{I as b}from"./p-96287124.js";import{c as m}from"./p-d5b08a77.js";import{S as t}from"./p-04c8b756.js";import"./p-6f56f8ca.js";const a=class{constructor(c){e(this,c),this.bcmChange=o(this,"bcm-change",7),this._id=l.UID(),this.size=d.Size.medium,this.type="button",this.color=void 0,this.disabled=void 0,this.direction=d.Direction.horizontal}componentWillLoad(){const{size:e,color:o}=this,c=this.getButtons();(null==c?void 0:c.length)&&c.forEach((c=>{let r=t.elementBooleanCheck(this.el.getAttribute("disabled"))||c.getAttribute("disabled");o&&c.setAttribute("color",o),e&&c.setAttribute("size",e),r&&(c.disabled=!0)}))}getButtons(){return s((()=>Array.from(this.el.querySelectorAll("bcm-button"))),[])}radioControl(e){const o=this.getButtons();(null==o?void 0:o.length)&&o.forEach((o=>{o.checked=o.id==e}))}checkboxControl(e){const o=this.getButtons();(null==o?void 0:o.length)&&o.forEach((o=>{o.checked=o.id==e?o.checked=!o.checked:o.checked}))}listenButton({target:e}){if(e.id){switch(this.type){case"radio":this.radioControl(e.id);break;case"checkbox":this.checkboxControl(e.id)}this.handleChange()}}handleChange(){const e=this.getButtons().filter(Boolean).map((e=>({id:e.id,checked:e.checked})));this.bcmChange.emit(e)}render(){const e=m("bcm-button-group",{"bcm-button-group__vertical":this.direction===d.Direction.vertical});return c(r,{class:e},c("slot",null))}get el(){return n(this)}};(function(e,o,c,r){var n,l=arguments.length,s=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,c,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(l<3?n(s):l>3?n(o,c,s):n(o,c))||s);l>3&&s&&Object.defineProperty(o,c,s)})([b()],a.prototype,"el",void 0),a.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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{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__container{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{a as bcm_button_group}
5
+ import{r as e,c as o,h as c,H as r,g as n}from"./p-0122ae3d.js";import{G as l,s}from"./p-6c4032ea.js";import{B as d}from"./p-c9bd85e9.js";import{I as b}from"./p-96287124.js";import{c as m}from"./p-d5b08a77.js";import{S as t}from"./p-04c8b756.js";import"./p-6f56f8ca.js";const a=class{constructor(c){e(this,c),this.bcmChange=o(this,"bcm-change",7),this._id=l.UID(),this.size=d.Size.medium,this.type="button",this.color=void 0,this.disabled=void 0,this.direction=d.Direction.horizontal}componentWillLoad(){const{size:e,color:o}=this,c=this.getButtons();(null==c?void 0:c.length)&&c.forEach((c=>{let r=t.elementBooleanCheck(this.el.getAttribute("disabled"))||c.getAttribute("disabled");o&&c.setAttribute("color",o),e&&c.setAttribute("size",e),r&&(c.disabled=!0)}))}getButtons(){return s((()=>Array.from(this.el.querySelectorAll("bcm-button"))),[])}radioControl(e){const o=this.getButtons();(null==o?void 0:o.length)&&o.forEach((o=>{o.checked=o.id==e}))}checkboxControl(e){const o=this.getButtons();(null==o?void 0:o.length)&&o.forEach((o=>{o.checked=o.id==e?o.checked=!o.checked:o.checked}))}listenButton({target:e}){if(e.id){switch(this.type){case"radio":this.radioControl(e.id);break;case"checkbox":this.checkboxControl(e.id)}this.handleChange()}}handleChange(){const e=this.getButtons().filter(Boolean).map((e=>({id:e.id,checked:e.checked})));this.bcmChange.emit(e)}render(){const e=m("bcm-button-group",{"bcm-button-group__vertical":this.direction===d.Direction.vertical});return c(r,{class:e},c("slot",null))}get el(){return n(this)}};(function(e,o,c,r){var n,l=arguments.length,s=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,c,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(l<3?n(s):l>3?n(o,c,s):n(o,c))||s);l>3&&s&&Object.defineProperty(o,c,s)})([b()],a.prototype,"el",void 0),a.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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{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__container{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{a as bcm_button_group}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,h as s,H as e,g as h}from"./p-0122ae3d.js";import{c as o}from"./p-d5b08a77.js";import{S as l}from"./p-04c8b756.js";import{b as n}from"./p-3c7a0345.js";import{I as a}from"./p-96287124.js";import"./p-6f56f8ca.js";import"./p-c9bd85e9.js";const c=t=>new Promise((i=>setTimeout(i,t))),r=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.clear=i(this,"bcm-clear",7),this.focus=i(this,"bcm-focus",7),this.blur=i(this,"bcm-blur",7),this.listboxUnchecked=i(this,"bcm-listbox-unchecked",7),this.listboxSendCheck=i(this,"bcm-listbox-send-check",7),this.isRendered=!1,this.cleaned=!1,this.objectMapping={value:"value",id:"id",text:"text",icon:"icon",avatar:"avatar",avatarName:"avatarName",avatarImage:"avatarImage",secondaryText:"secondaryText",tooltipText:"tooltipText",selected:"selected",checked:"checked",disabled:"disabled"},this.firstRun=!0,this.currentItemWidth=0,this.otherTagsWidth=0,this.areaWidth=0,this.itemsWidth=[],this.itemsWidthArray=[],this.checklist=[],this.pastItem=[],this.otherTagStatus=!1,this.firstSetData=!0,this.visibleTags=[],this.hiddenTags=[],this.onShowVisibleTags=[],this.onShowHiddenTags=[],this.hiddenTagsString="",this.clientWidth=0,this.tagLabel=[],this.searchResults=[],this.optionViewportStyleAlignment={},this._id=(4*Math.random()).toString(16).replace(".",""),this.value=null,this.value2=null,this.size="medium",this.scrollable="vertical",this.clearable=void 0,this.label=void 0,this.placeholder="Choose an option",this.search=!1,this.noCaption=!1,this.caption=void 0,this.captionError=void 0,this.captionType="default",this.disabled=void 0,this.flex=void 0,this.name=void 0,this.searchFields=["value","text"],this.fullWidth=!1,this.defaultValue=void 0,this.hidden=!1,this.checkboxes=!1,this.searchable=!1,this.required=!1,this.treeview=!1,this.numberOfColumns=1,this.viewportWidth="100%",this.viewportMinWidth=null,this.viewportMaxWidth=null,this.template=null,this.maxHeight="200px",this.infoFooter=!1,this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.alignment="left",this._items=null,this._data=null,this.placement="bottom-start",this.tooltip=void 0,this.selectText=null,this.isOpen=!1,this.captionCache=void 0,this.captionTypeCache=void 0}async componentWillLoad(){this.createElement(),await c(50)}disconnectedCallback(){document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).remove()}componentWillRender(){var t=this.el.shadowRoot.getElementById("selected-container");t&&this.el.clientWidth>200&&(t.style.maxWidth=this.el.clientWidth+"px")}async config(t){var i;this._config=t,this.maxHeight&&(t.maxHeight=this.maxHeight),this.template&&(t.template=this.template),t.treeview&&(this.treeview="boolean"==typeof t.treeview&&t.treeview),t.checkable&&(this.checkboxes="boolean"==typeof t.checkable),t.numberOfColumns&&(this.numberOfColumns="number"==typeof t.numberOfColumns?t.numberOfColumns:1),t.viewportWidth&&(this.viewportWidth="string"==typeof t.viewportWidth?t.viewportWidth:"100%"),t.viewportMinWidth&&(this.viewportMinWidth="string"==typeof t.viewportMinWidth?t.viewportMinWidth:null),t.viewportMaxWidth&&(this.viewportMaxWidth="string"==typeof t.viewportMaxWidth?t.viewportMaxWidth:null),t.clearable&&(this.clearable="boolean"==typeof t.clearable&&t.clearable),t.searchable&&(this.searchable="boolean"==typeof t.searchable&&t.searchable),t.fullWidth&&(this.fullWidth="boolean"==typeof t.fullWidth&&t.fullWidth),t.label&&(this.label="string"==typeof t.label?t.label:null),t.placeholder&&(this.placeholder="string"==typeof t.placeholder?t.placeholder:"Choose an option"),t.infoFooter&&(this.infoFooter="boolean"==typeof t.infoFooter&&t.infoFooter),t.mapping&&(t.mapping.id&&(this.objectMapping.id=t.mapping.id),t.mapping.text&&(this.objectMapping.text=t.mapping.text),t.mapping.value&&(this.objectMapping.value=t.mapping.value)),sessionStorage.setItem(this._internal_id+"-config",JSON.stringify(t)),this.createElement(),await c(50),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(i=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),sessionStorage.getItem(this._internal_id+"-config")&&i.config(JSON.parse(sessionStorage.getItem(this._internal_id+"-config"))))}async renderListbox(){if(0==this.isRendered){this.isRendered=!0;var t=null;if(this.cleaned){const t=i=>i.map((i=>(!0===this.checkboxes?i[this.objectMapping.checked]&&(i[this.objectMapping.checked]=!1):i[this.objectMapping.selected]&&(i[this.objectMapping.selected]=!1),i.items&&i.items.length>0&&(i.items=t(i.items)),i)));this._data=JSON.stringify(t(this._items))}return(t=document.getElementById("select-box"+this._internal_id))&&(t=t.shadowRoot.querySelector("bcm-listbox"))&&(sessionStorage.getItem(this._internal_id+"-config")&&t.config(JSON.parse(sessionStorage.getItem(this._internal_id+"-config"))),t.setData(this._data)),t}}async setData(t=[]){!0===this.firstSetData?this.firstSetData=!1:(this.itemsWidth=[],null!=this.value&&(this.value=null),this.checklist=[]),this._data=t,this.isRendered=!0,this._items="string"==typeof t?JSON.parse(t):t,this._items.length>0||(this.handleClear(),this.isRendered=!1);var i=null;(i=document.getElementById("select-box"+this._internal_id))&&(i=i.shadowRoot.querySelector("bcm-listbox"))&&i.setData(t)}async setDataAsync(t=[]){let i=null;if(1==this.isRendered)this.setData(t);else{this._data=t,this._items="string"==typeof t?JSON.parse(t):t;var s=[];if(this._items.length>0){const t=e=>{e.forEach((e=>{!0===this.checkboxes?!0===e[this.objectMapping.checked]&&s.push(e):!0===e[this.objectMapping.selected]&&(i=e,this.selectText=e[this.objectMapping.text]),e.items&&e.items.length>0&&t(e.items)}))};t(this._items)}else this.handleClear(),this.isRendered=!1;this.itemsWidth=[],1==this.checkboxes?(this.handleTagControl2(s),this.checklist=s):(null!=i&&(i.selected&&delete i.selected,i.checked&&delete i.checked,this.value=i),this.checklist=[])}}async clearAndSelectSearch(t=!0){this.renderListbox(),!0===this.searchable&&setTimeout((()=>{var i=null;document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(i=this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"))&&(i.clearAndSelectSearch(),1==t&&i.clearAndSelectSearch(!0))}),100)}async selected(t){this.renderListbox(),this.createElement(),await c(150),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(this.bcmListbox=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),this.bcmListbox.selected(t))}async addChecked(t=[]){if(1==this.isRendered)this.renderListbox(),this.createElement(),await c(50),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(this.bcmListbox=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),this.bcmListbox.addChecked(t));else{var i=t,s=[];if(this._items&&this._items.length>0)if(!0===this.checkboxes?this._items.find((t=>"true"===String(t[this.objectMapping.checked])))&&this._items.filter((t=>"true"===String(t[this.objectMapping.checked]))).forEach((t=>{t[this.objectMapping.checked]=!1})):this._items.find((t=>"true"===String(t[this.objectMapping.selected])))&&this._items.filter((t=>"true"===String(t[this.objectMapping.selected]))).forEach((t=>{t[this.objectMapping.selected]=!1})),"string"==typeof i){if(!1===this.checkboxes){const t=this._items.find((t=>String(t[this.objectMapping.id])===String(i)))[this.objectMapping.id];this.value=t,this.selectText=t[this.objectMapping.text]}}else!0===this.checkboxes&&i.forEach((t=>{var i=this._items.find((i=>String(i[this.objectMapping.id])==String(t)));i&&(i[this.objectMapping.checked]="true")})),this._items&&this._items.find((t=>"true"===String(t[this.objectMapping.checked])))&&this._items.filter((t=>"true"===String(t[this.objectMapping.checked]))).forEach((t=>{s.push(t)}));else this.handleClear();this._data=JSON.stringify(this._items),this.itemsWidth=[],1==this.checkboxes?(this.value=String(s),this.handleTagControl2(s),this.checklist=s):(null!=this.value&&(this.value=null),this.checklist=[])}}async updateChecked(t=[]){this.renderListbox(),this.createElement(),await c(50),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(this.bcmListbox=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),this.bcmListbox.updateChecked(t))}async getValue(){return this.value}async getChecklist(){return this.checklist}async get(){var t;return this.value?this.checkboxes?null===(t=this.checklist)||void 0===t?void 0:t.map((t=>t[this.objectMapping.id])):this.value[this.objectMapping.id]:null}async set(t){t?(Array.isArray(t)&&this.addChecked(t),"string"!=typeof t&&"number"!=typeof t||this.selected(t)):this.setClear()}async setClear(){return await this.handleClear(),await c(10),Promise.resolve()}async resetCaption(){return await c(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await c(10),Promise.resolve()}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}handleChange(t,i){const s=i||null,e=t||null;s!=e&&(1==this.checkboxes?this.change.emit(e):e&&e[this.objectMapping.id]&&s&&s[this.objectMapping.id]?e[this.objectMapping.id]!=s[this.objectMapping.id]&&this.change.emit(e):this.change.emit(e))}async handleOpenState(){0==this.isOpen&&(this.searchResults=[]),await this.createElement(this.isOpen),await c(100),this.viewportCoordinateUpdater()}async handleOpen(t,i=!1){var s=t.path||t.composedPath&&t.composedPath();s&&null!=s.filter((t=>"close"==t.id))[0]?this.isOpen=this.isOpen:0==t?this.isOpen=!1:this.disabled||("bcm-old-tag"!==t.target.nodeName.toLowerCase()?this.isOpen=!this.isOpen:this.isOpen||(this.isOpen=!0)),this.isOpen&&this.searchable&&!i&&setTimeout((()=>{var t=null;document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(t=this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"))&&t.clearAndSelectSearch()}),100),1==this.isOpen&&0==this.isRendered&&this.renderListbox()}onwheelEvent(t){var i=t.path||t.composedPath&&t.composedPath();!i||null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&void 0===i.filter((t=>"BCM-SELECT"==t.nodeName))[0]||!0===this.isOpen&&(this.isOpen=!1,document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).classList.remove("show"))}async scrollEvent(t){var i=t.path||t.composedPath&&t.composedPath();i&&null==i.filter((t=>"BCM-MODAL"==t.nodeName))[0]?!0===this.isOpen&&this.viewportCoordinateUpdater():!0===this.isOpen&&(this.isOpen=!1,document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).classList.remove("show"))}viewportCoordinateUpdater(){var t;document.getElementById("select-box"+this._internal_id)&&(t=document.getElementById("select-box"+this._internal_id),n(t,"#"+this._id))}async createElement(t=!1){var i=document.getElementById("select-box"+this._internal_id);i||((i=document.createElement("bcm-select-box")).setAttribute("id","select-box"+this._internal_id),i.setAttribute("_internal_id",this._internal_id),await c(10)),document.body.appendChild(i),n(i,"#"+this._id),i.style.width=this.el.clientWidth+"px",i.style.width=null!=this.viewportMinWidth||null!=this.viewportMaxWidth?"100%":"100%"!=this.viewportWidth?this.viewportWidth:this.numberOfColumns>1?"auto":this.el.clientWidth+"px",null!=this.viewportMinWidth&&(null==this.viewportMaxWidth&&(i.style.maxWidth=this.el.clientWidth+"px"),i.style.minWidth=this.viewportMinWidth),null!=this.viewportMaxWidth&&(null==this.viewportMinWidth&&(i.style.minWidth=this.el.clientWidth+"px"),i.style.maxWidth=this.viewportMaxWidth),i.style.maxHeight=this.maxHeight,!0===t?i.classList.add("show"):i.classList.remove("show")}getPlacement(){const t=this.placement.split("-");return 1===t.length&&t.push("center"),t}clickClear(t){this.handleClear(),t.stopPropagation()}async handleClear(){this.cleaned=!0,this.value=null,this.selectText=null;var t=null;document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")&&(t=!0===this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")),t&&await t.setClear(),this.onShowVisibleTags=[],this.onShowHiddenTags=[],this.searchResults=[],this.watchSearchResults();var i=null;return document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")&&(i=this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")),i&&i.clearAndSelectSearch(),this.clear.emit(),Promise.resolve()}handleFocus(){this.focus.emit()}handleBlur(){this.blur.emit()}handleScreenResize(){!0===this.isOpen&&this.createElement(!0)}handleClickOutside(t){var i,s=t.path||t.composedPath&&t.composedPath();if(s&&null==s.filter((t=>"other-tag"==t.id))[0]&&s&&null==s.filter((t=>"listbox"==t.id))[0]&&(this.otherTagStatus=!1,setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","grey-9")}),50)),(null==t?void 0:t.target)&&(null===(i=this.el)||void 0===i?void 0:i.contains(t.target))||s&&null!=s.filter((t=>t.id=="select-box"+this._internal_id))[0]){this.optionViewportStyleAlignment={};var e=t.target.id;if(document.querySelector("#"+e)){var h=document.querySelector("#"+e).getBoundingClientRect().top,o=t.target.clientHeight,l=t.view.innerHeight-h-(t.target.noCaption?o:o-20)+8;Number(this.maxHeight.replace("px",""))>l&&(this.optionViewportStyleAlignment={bottom:50+(this.infoFooter?30:0)+"px","box-shadow":"0px -2px 8px rgb(0 0 0 / 15%)"})}0==this.checkboxes&&s&&null==s.filter((t=>"collapse-button"==t.id))[0]&&(s.filter((t=>"BCM-LISTBOX-ITEM"==t.nodeName))[0]||s.filter((t=>"BCM-TREEVIEW-ITEM"==t.nodeName))[0])&&(this.isOpen=!1)}else this.isOpen&&(this.isOpen=!1)}handleTreeviewUnchecked(t){this.handleListboxUnchecked(t)}handleListboxUnchecked(t){const i=this.searchResults.indexOf(t.detail);i>-1&&(this.searchResults.splice(i,1),this.onShowHiddenTags.length<=2&&(this.searchResults=[],this.otherTagStatus=!1),this.watchSearchResults())}async bcmOldTagDissmisable(t,i=null){var s=t.path||t.composedPath&&t.composedPath();if(this.el.contains(t.target)&&s&&s.filter((t=>t._internal_id==this._internal_id))[0]||i==this._internal_id){0==this.isRendered&&(await this.renderListbox(),await c(50)),await this.createElement(),await c(50);const i=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box");"other-tag"==t.detail.id?(this.onShowHiddenTags.map((async t=>{await i.listboxUncheckedMethod(String(t[this.objectMapping.id]),this._internal_id)})),this.onShowHiddenTags=[]):await i.listboxUncheckedMethod(t.detail.id,this._internal_id),this.watchSearchResults()}}handleListboxSelected(t){var i=t.path||t.composedPath&&t.composedPath();i&&null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&setTimeout((()=>{if(!0!==this.checkboxes){const i=t.detail;i.selected&&delete i.selected,i.checked&&delete i.checked,i!=this.value&&(this.value=i),this.selectText=i[this.objectMapping.text]}}),100)}handleListboxCheckedList(t){var i=t.path||t.composedPath&&t.composedPath();i&&null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&setTimeout((()=>{JSON.stringify(this.checklist)!==JSON.stringify(t.detail)&&(this.handleTagControl2(t.detail),this.checklist=t.detail)}),100)}handleTreeviewCheckedList(t){var i=t.path||t.composedPath&&t.composedPath();i&&null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&(this.handleTagControl2(t.detail),this.checklist=t.detail)}async handleTagControl2(t){if(this.visibleTags=[],this.hiddenTags=[],this.onShowVisibleTags=[],this.onShowHiddenTags=[],t.length>0&&t.map((async t=>{this.visibleTags.push(t)})),this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.onShowVisibleTags=this.visibleTags,this.onShowHiddenTags=this.hiddenTags,this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0){var i=JSON.parse(JSON.stringify([...this.onShowVisibleTags,...this.onShowHiddenTags]));this.value2!==i&&(this.value2=i)}else null!==this.value2&&(this.value2=null);this.calculateContainer()}async calculateContainer(){const t=this.el.shadowRoot.querySelector(".selected-text");this.otherTagsWidth=135,await c(50),this.areaWidth=t.clientWidth&&t.clientWidth>100?t.clientWidth:100,!0===this.clearable&&(this.areaWidth=this.areaWidth-22),this.itemsWidth=0,this.itemsWidthArray=[];const i=t.querySelectorAll("bcm-old-tag");if(await c(50),i&&i.length>0&&i.forEach((t=>{const i=t.clientWidth&&t.clientWidth>40?t.clientWidth:40;if(this.itemsWidthArray.push({id:String(t.id),clientWidth:i}),this.itemsWidth+=i+4,this.itemsWidth>this.areaWidth){const i=this.visibleTags[this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id)))];t&&i&&t.id&&i[this.objectMapping.id]&&l.lowercase(String(t.id))==l.lowercase(String(i[this.objectMapping.id]))&&(this.visibleTags.splice(this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id))),1),this.hiddenTags.push(i))}})),this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.hiddenTags.length>0){(this.hiddenTags.length>10||this.hiddenTags.length>100)&&(this.otherTagsWidth+=20);var s=Array.prototype.slice.call(t.querySelectorAll("bcm-old-tag"));this.itemsWidth=0,s.forEach((t=>{if("other-tag"!=t.id){var i=this.visibleTags[this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id)))];i&&i[this.objectMapping.id]&&l.lowercase(String(t.id))==l.lowercase(String(i[this.objectMapping.id]))&&(this.itemsWidth+=t.clientWidth+4,this.itemsWidth+this.otherTagsWidth>this.areaWidth&&(this.visibleTags.splice(this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id))),1),this.hiddenTags.push(i)))}}))}if(this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.onShowVisibleTags=this.visibleTags,this.onShowHiddenTags=this.hiddenTags,this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0){var e=JSON.parse(JSON.stringify([...this.onShowVisibleTags,...this.onShowHiddenTags]));this.value!==e&&(this.value=e)}else null!==this.value&&(this.value=null);this.otherTagStatus&&(this.searchResults=this.onShowHiddenTags.map((t=>String(t[this.objectMapping.id]))),this.onShowHiddenTags.length<=2&&(this.searchResults=[],this.otherTagStatus=!1),this.watchSearchResults())}async handleTagControl(t){if(t.length>0){const i=this.el.shadowRoot.querySelector(".selected-text");if(this.visibleTags=[],this.hiddenTags=[],this.itemsWidth=[],this.onShowVisibleTags=[],this.onShowHiddenTags=[],this.areaWidth=i.clientWidth-16,this.otherTagsWidth=130,this.currentItemWidth=0,t.map((async t=>{const i=document.createElement("bcm-old-tag");i.setAttribute("id",String(t[this.objectMapping.id])),i.setAttribute("value",t[this.objectMapping.text]),i.setAttribute("type","dissmisable"),i.setAttribute("_internal_id",this._internal_id),i.style.visibility="hidden",document.body.appendChild(i),await c(50);var s=i.clientWidth>=200?200:i.clientWidth;this.currentItemWidth=this.currentItemWidth+s,this.itemsWidth.push({id:String(t[this.objectMapping.id]),clientWidth:s}),this.areaWidth>this.currentItemWidth?this.visibleTags.push(t):this.hiddenTags.push(t),i.remove()})),await c(100),this.visibleTags.length>1){const t=this.itemsWidth[this.itemsWidth.findIndex((t=>t.id===String(this.visibleTags[this.visibleTags.length-1][this.objectMapping.id])))];this.areaWidth<=this.currentItemWidth+this.otherTagsWidth-t.clientWidth&&(this.hiddenTags.push(this.visibleTags[this.visibleTags.length-1]),this.visibleTags.splice(-1,1))}}else this.visibleTags=[],this.hiddenTags=[];if(this.visibleTags.forEach((t=>{const i=this.hiddenTags.indexOf(t);i>-1&&this.hiddenTags.splice(i,1)})),this.hiddenTags.length>0&&(this.hiddenTags=[...new Set(this.hiddenTags),...new Set(this.visibleTags)],this.visibleTags=[]),this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.onShowVisibleTags=this.visibleTags,this.onShowHiddenTags=this.hiddenTags,this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0){var i=JSON.parse(JSON.stringify([...this.onShowVisibleTags,...this.onShowHiddenTags]));this.value!==i&&(this.value=i)}else null!==this.value&&(this.value=null);var s=Object.keys(this.onShowHiddenTags).map((t=>this.onShowHiddenTags[t][this.objectMapping.text]));this.hiddenTagsString=s.toString().split(",").join("\r\n")}handleClickTag(){this.searchResults=[],this.otherTagStatus=!1,setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","grey-9")}),100),this.watchSearchResults()}showHiddenTags(t){t.stopPropagation(),this.handleOpen(t,!0),this.otherTag=t.target,this.otherTagStatus?(this.searchResults=[],this.otherTagStatus=!1):(this.otherTagStatus=!0,this.searchResults=this.onShowHiddenTags.map((t=>String(t[this.objectMapping.id])))),this.watchSearchResults()}async watchSearchResults(){var t=null;1==this.treeview?(t=document.getElementById("select-box"+this._internal_id))&&(t=t.shadowRoot.querySelector(".listbox-box"))&&(t=t.shadowRoot.querySelector("bcm-treeview"))&&await t.searchResultMethod(this.searchResults):(t=document.getElementById("select-box"+this._internal_id))&&(t=t.shadowRoot.querySelector(".listbox-box"))&&await t.searchResultMethod(this.searchResults),this.searchResults.length>0?(setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","prime-blue")}),100),1==this._config.searchable&&t&&await t.showSearchMethod(!1)):(setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","grey-9")}),100),t&&await t.showSearchMethod(this.searchable))}render(){const{size:t,clearable:i,value:h,label:l,caption:n,captionError:a,captionType:c,disabled:r,flex:d,placeholder:p,noCaption:b,fullWidth:u,required:x}=this,m=o("selected","selected-"+this.size,{"size-3":"large"===t,"size-2":"small"===t||"medium"===t,disabled:r}),g=o("option-container","alignment-"+this.alignment,{hidden:!this.isOpen},{"column-1":this.numberOfColumns<=1,"column-2":2==this.numberOfColumns,"column-3":this.numberOfColumns>=3}),v=o("options-viewport",{hidden:!this.isOpen,[this.scrollable]:"horizontal"===this.scrollable||"vertical"===this.scrollable,"horizontal vertical":"both"===this.scrollable,flex:d}),w=o("size-1","input-caption","caption-"+c),f=o("container",{error:"error"==c,"full-width":u}),y=o("selected-text",{"selected-tags":this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0}),S=o(this.hidden?"hidden":null);var z={width:null!=this.viewportMinWidth||null!=this.viewportMaxWidth?"max-content":"100%"!=this.viewportWidth?this.viewportWidth:this.numberOfColumns>1?"auto":"100%","min-width":null!=this.viewportMinWidth?this.viewportMinWidth:null,"max-width":null!=this.viewportMaxWidth?this.viewportMaxWidth:null};this.optionViewportStyleAlignment&&(z=Object.assign(Object.assign({},z),this.optionViewportStyleAlignment));const k={cursor:"pointer","max-width":"164px","text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden",display:"block"};return s(e,{class:S,onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()},s("div",{class:f},l&&s("bcm-label",{onClick:()=>this.handleOpen(!1),tooltip:this.tooltip,type:c,value:l,required:x}),s("div",{id:"selected-container",class:m,onClick:t=>this.handleOpen(t),tabIndex:-1},s("span",{class:y,title:this.selectText&&this.selectText},this.selectText&&this.selectText,!this.selectText&&(this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0)&&s("span",{id:"tagcontainer",class:"tag-container"},s("span",null,this.onShowVisibleTags.map((t=>s("bcm-old-tag",{_internal_id:this._internal_id,customStyle:k,onClick:()=>this.handleClickTag(),type:"dissmisable",value:t[this.objectMapping.text],title:t[this.objectMapping.text],id:t[this.objectMapping.id],class:"tag"})))),s("span",null,this.onShowHiddenTags.length>0&&s("bcm-old-tag",{_internal_id:this._internal_id,title:this.hiddenTagsString,customStyle:{cursor:"pointer","white-space":"nowrap"},onClick:t=>this.showHiddenTags(t),color:this.otherTagStatus?"prime-blue":"grey-9",type:"dissmisable",value:"+ "+this.onShowHiddenTags.length+" item"+(this.onShowHiddenTags.length>1?"s":"")+" selected",id:"other-tag"}))),!(this.selectText||this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0)&&p&&s("span",{class:"placeholder"}," ",p," ")),s("div",{class:"buttons"},i&&h&&s("button",{class:"select-clear-button",onClick:t=>this.clickClear(t)},s("svg",{style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"}))),s("span",{class:this.isOpen?"open":"close"},s("svg",{style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},s("path",{d:"M168.5 164.2l148 146.8c4.7 4.7 4.7 12.3 0 17l-19.8 19.8c-4.7 4.7-12.3 4.7-17 0L160 229.3 40.3 347.8c-4.7 4.7-12.3 4.7-17 0L3.5 328c-4.7-4.7-4.7-12.3 0-17l148-146.8c4.7-4.7 12.3-4.7 17 0z"}))))),s("div",{class:g,style:z},s("div",{class:v})),!b&&s("div",{class:"caption-area"},"error"==c?s("span",{class:w}," ",a," "):n&&s("span",{class:w}," ",n," "))))}get el(){return h(this)}static get watchers(){return{value:["handleChange"],isOpen:["handleOpenState"]}}};(function(t,i,s,e){var h,o=arguments.length,l=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(l=(o<3?h(l):o>3?h(i,s,l):h(i,s))||l);o>3&&l&&Object.defineProperty(i,s,l)})([a()],r.prototype,"el",void 0),r.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}:host{display:inline-block;width:100%;margin:0}:host(.hidden){display:none}.container{display:block;max-width:256px;position:relative}.container.full-width{width:100%;max-width:100%}.selected{width:100%;box-sizing:border-box;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);display:flex;justify-content:space-between;align-items:center;border:1px solid var(--bcm-color-grey-5);user-select:none;cursor:pointer}.selected:hover:not(.disabled){border-color:var(--bcm-color-prime-blue-5)}.selected:hover:not(.disabled) .select-clear-button{opacity:1}.selected:focus:not(.disabled){border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.selected:focus:not(.disabled) .select-clear-button{opacity:1}.selected:focus{outline:none}.selected.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8);cursor:not-allowed}.selected .buttons{padding:8px;height:100%;display:flex;align-items:center;justify-content:center}.selected .selected-text{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;padding:0 8px;width:100%}.selected .selected-tags{padding:0 4px;height:100%}.selected .tag-container{height:100%;display:flex;align-items:center;justify-content:flex-start;grid-gap:2px}.selected .tag-container>span{height:100%;align-items:center;justify-content:flex-start;display:flex;grid-gap:2px}.selected .tag-container .tag{max-width:200px}.selected .tag-container #other-tag{cursor:pointer}.selected .open,.selected .close{display:inline-flex}.selected .close{transform:rotate(180deg)}.selected .placeholder{color:var(--bcm-color-grey-6);user-select:none;font-size:14px;height:100%;display:flex;align-items:center;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.options-viewport{display:inline-block}.option-container{display:block;position:absolute;background-color:var(--bcm-color-grey-1);box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15);box-sizing:border-box;width:100%;z-index:10000}.option-container.alignment-left{left:0}.option-container.alignment-right{right:0}.option-container.hidden{display:none}.option-container .search{position:sticky;padding:8px;margin-bottom:4px}.option-container .search:after{content:"";position:absolute;bottom:0;height:1px;width:calc(100% - 16px);background-color:var(--bcm-color-grey-5)}.options-viewport{display:block}.options-viewport bcm-select-option,.options-viewport ::slotted(bcm-select-option){white-space:normal}.options-viewport.hidden{display:none}.options-viewport.vertical{height:fit-content;max-height:200px}.options-viewport.horizontal:not(.flex){overflow-x:auto;width:100%}.options-viewport.horizontal:not(.flex) bcm-select-option,.options-viewport.horizontal:not(.flex) ::slotted(bcm-select-option){white-space:nowrap}.items{display:flex;flex-direction:column}.buttons{display:flex}.select-clear-button{display:inline-flex;align-items:center;outline:none;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;opacity:0}.label{display:block;color:var(--bcm-color-grey-9)}.caption-area{min-height:20px}.input-caption{display:block}.selected-large{height:40px}.selected-medium{height:32px}.selected-small{height:24px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .selected{border:1px solid var(--bcm-color-red-6) !important}';export{r as bcm_select}
5
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-0122ae3d.js";import{c as o}from"./p-d5b08a77.js";import{S as l}from"./p-04c8b756.js";import{b as n}from"./p-8c018ae0.js";import{I as a}from"./p-96287124.js";import"./p-6f56f8ca.js";import"./p-c9bd85e9.js";const c=t=>new Promise((i=>setTimeout(i,t))),r=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.clear=i(this,"bcm-clear",7),this.focus=i(this,"bcm-focus",7),this.blur=i(this,"bcm-blur",7),this.listboxUnchecked=i(this,"bcm-listbox-unchecked",7),this.listboxSendCheck=i(this,"bcm-listbox-send-check",7),this.isRendered=!1,this.cleaned=!1,this.objectMapping={value:"value",id:"id",text:"text",icon:"icon",avatar:"avatar",avatarName:"avatarName",avatarImage:"avatarImage",secondaryText:"secondaryText",tooltipText:"tooltipText",selected:"selected",checked:"checked",disabled:"disabled"},this.firstRun=!0,this.currentItemWidth=0,this.otherTagsWidth=0,this.areaWidth=0,this.itemsWidth=[],this.itemsWidthArray=[],this.checklist=[],this.pastItem=[],this.otherTagStatus=!1,this.firstSetData=!0,this.visibleTags=[],this.hiddenTags=[],this.onShowVisibleTags=[],this.onShowHiddenTags=[],this.hiddenTagsString="",this.clientWidth=0,this.tagLabel=[],this.searchResults=[],this.optionViewportStyleAlignment={},this._id=(4*Math.random()).toString(16).replace(".",""),this.value=null,this.value2=null,this.size="medium",this.scrollable="vertical",this.clearable=void 0,this.label=void 0,this.placeholder="Choose an option",this.search=!1,this.noCaption=!1,this.caption=void 0,this.captionError=void 0,this.captionType="default",this.disabled=void 0,this.flex=void 0,this.name=void 0,this.searchFields=["value","text"],this.fullWidth=!1,this.defaultValue=void 0,this.hidden=!1,this.checkboxes=!1,this.searchable=!1,this.required=!1,this.treeview=!1,this.numberOfColumns=1,this.viewportWidth="100%",this.viewportMinWidth=null,this.viewportMaxWidth=null,this.template=null,this.maxHeight="200px",this.infoFooter=!1,this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.alignment="left",this._items=null,this._data=null,this.placement="bottom-start",this.tooltip=void 0,this.selectText=null,this.isOpen=!1,this.captionCache=void 0,this.captionTypeCache=void 0}async componentWillLoad(){this.createElement(),await c(50)}disconnectedCallback(){document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).remove()}componentWillRender(){var t=this.el.shadowRoot.getElementById("selected-container");t&&this.el.clientWidth>200&&(t.style.maxWidth=this.el.clientWidth+"px")}async config(t){var i;this._config=t,this.maxHeight&&(t.maxHeight=this.maxHeight),this.template&&(t.template=this.template),t.treeview&&(this.treeview="boolean"==typeof t.treeview&&t.treeview),t.checkable&&(this.checkboxes="boolean"==typeof t.checkable),t.numberOfColumns&&(this.numberOfColumns="number"==typeof t.numberOfColumns?t.numberOfColumns:1),t.viewportWidth&&(this.viewportWidth="string"==typeof t.viewportWidth?t.viewportWidth:"100%"),t.viewportMinWidth&&(this.viewportMinWidth="string"==typeof t.viewportMinWidth?t.viewportMinWidth:null),t.viewportMaxWidth&&(this.viewportMaxWidth="string"==typeof t.viewportMaxWidth?t.viewportMaxWidth:null),t.clearable&&(this.clearable="boolean"==typeof t.clearable&&t.clearable),t.searchable&&(this.searchable="boolean"==typeof t.searchable&&t.searchable),t.fullWidth&&(this.fullWidth="boolean"==typeof t.fullWidth&&t.fullWidth),t.label&&(this.label="string"==typeof t.label?t.label:null),t.placeholder&&(this.placeholder="string"==typeof t.placeholder?t.placeholder:"Choose an option"),t.infoFooter&&(this.infoFooter="boolean"==typeof t.infoFooter&&t.infoFooter),t.mapping&&(t.mapping.id&&(this.objectMapping.id=t.mapping.id),t.mapping.text&&(this.objectMapping.text=t.mapping.text),t.mapping.value&&(this.objectMapping.value=t.mapping.value)),sessionStorage.setItem(this._internal_id+"-config",JSON.stringify(t)),this.createElement(),await c(50),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(i=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),sessionStorage.getItem(this._internal_id+"-config")&&i.config(JSON.parse(sessionStorage.getItem(this._internal_id+"-config"))))}async renderListbox(){if(0==this.isRendered){this.isRendered=!0;var t=null;if(this.cleaned){const t=i=>i.map((i=>(!0===this.checkboxes?i[this.objectMapping.checked]&&(i[this.objectMapping.checked]=!1):i[this.objectMapping.selected]&&(i[this.objectMapping.selected]=!1),i.items&&i.items.length>0&&(i.items=t(i.items)),i)));this._data=JSON.stringify(t(this._items))}return(t=document.getElementById("select-box"+this._internal_id))&&(t=t.shadowRoot.querySelector("bcm-listbox"))&&(sessionStorage.getItem(this._internal_id+"-config")&&t.config(JSON.parse(sessionStorage.getItem(this._internal_id+"-config"))),t.setData(this._data)),t}}async setData(t=[]){!0===this.firstSetData?this.firstSetData=!1:(this.itemsWidth=[],null!=this.value&&(this.value=null),this.checklist=[]),this._data=t,this.isRendered=!0,this._items="string"==typeof t?JSON.parse(t):t,this._items.length>0||(this.handleClear(),this.isRendered=!1);var i=null;(i=document.getElementById("select-box"+this._internal_id))&&(i=i.shadowRoot.querySelector("bcm-listbox"))&&i.setData(t)}async setDataAsync(t=[]){let i=null;if(1==this.isRendered)this.setData(t);else{this._data=t,this._items="string"==typeof t?JSON.parse(t):t;var s=[];if(this._items.length>0){const t=e=>{e.forEach((e=>{!0===this.checkboxes?!0===e[this.objectMapping.checked]&&s.push(e):!0===e[this.objectMapping.selected]&&(i=e,this.selectText=e[this.objectMapping.text]),e.items&&e.items.length>0&&t(e.items)}))};t(this._items)}else this.handleClear(),this.isRendered=!1;this.itemsWidth=[],1==this.checkboxes?(this.handleTagControl2(s),this.checklist=s):(null!=i&&(i.selected&&delete i.selected,i.checked&&delete i.checked,this.value=i),this.checklist=[])}}async clearAndSelectSearch(t=!0){this.renderListbox(),!0===this.searchable&&setTimeout((()=>{var i=null;document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(i=this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"))&&(i.clearAndSelectSearch(),1==t&&i.clearAndSelectSearch(!0))}),100)}async selected(t){this.renderListbox(),this.createElement(),await c(150),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(this.bcmListbox=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),this.bcmListbox.selected(t))}async addChecked(t=[]){if(1==this.isRendered)this.renderListbox(),this.createElement(),await c(50),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(this.bcmListbox=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),this.bcmListbox.addChecked(t));else{var i=t,s=[];if(this._items&&this._items.length>0)if(!0===this.checkboxes?this._items.find((t=>"true"===String(t[this.objectMapping.checked])))&&this._items.filter((t=>"true"===String(t[this.objectMapping.checked]))).forEach((t=>{t[this.objectMapping.checked]=!1})):this._items.find((t=>"true"===String(t[this.objectMapping.selected])))&&this._items.filter((t=>"true"===String(t[this.objectMapping.selected]))).forEach((t=>{t[this.objectMapping.selected]=!1})),"string"==typeof i){if(!1===this.checkboxes){const t=this._items.find((t=>String(t[this.objectMapping.id])===String(i)))[this.objectMapping.id];this.value=t,this.selectText=t[this.objectMapping.text]}}else!0===this.checkboxes&&i.forEach((t=>{var i=this._items.find((i=>String(i[this.objectMapping.id])==String(t)));i&&(i[this.objectMapping.checked]="true")})),this._items&&this._items.find((t=>"true"===String(t[this.objectMapping.checked])))&&this._items.filter((t=>"true"===String(t[this.objectMapping.checked]))).forEach((t=>{s.push(t)}));else this.handleClear();this._data=JSON.stringify(this._items),this.itemsWidth=[],1==this.checkboxes?(this.value=String(s),this.handleTagControl2(s),this.checklist=s):(null!=this.value&&(this.value=null),this.checklist=[])}}async updateChecked(t=[]){this.renderListbox(),this.createElement(),await c(50),document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(this.bcmListbox=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"),this.bcmListbox.updateChecked(t))}async getValue(){return this.value}async getChecklist(){return this.checklist}async get(){var t;return this.value?this.checkboxes?null===(t=this.checklist)||void 0===t?void 0:t.map((t=>t[this.objectMapping.id])):this.value[this.objectMapping.id]:null}async set(t){t?(Array.isArray(t)&&this.addChecked(t),"string"!=typeof t&&"number"!=typeof t||this.selected(t)):this.setClear()}async setClear(){return await this.handleClear(),await c(10),Promise.resolve()}async resetCaption(){return await c(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await c(10),Promise.resolve()}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}handleChange(t,i){const s=i||null,e=t||null;s!=e&&(1==this.checkboxes?this.change.emit(e):e&&e[this.objectMapping.id]&&s&&s[this.objectMapping.id]?e[this.objectMapping.id]!=s[this.objectMapping.id]&&this.change.emit(e):this.change.emit(e))}async handleOpenState(){0==this.isOpen&&(this.searchResults=[]),await this.createElement(this.isOpen),await c(100),this.viewportCoordinateUpdater()}async handleOpen(t,i=!1){var s=t.path||t.composedPath&&t.composedPath();s&&null!=s.filter((t=>"close"==t.id))[0]?this.isOpen=this.isOpen:0==t?this.isOpen=!1:this.disabled||("bcm-old-tag"!==t.target.nodeName.toLowerCase()?this.isOpen=!this.isOpen:this.isOpen||(this.isOpen=!0)),this.isOpen&&this.searchable&&!i&&setTimeout((()=>{var t=null;document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox")&&(t=this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector("bcm-listbox"))&&t.clearAndSelectSearch()}),100),1==this.isOpen&&0==this.isRendered&&this.renderListbox()}onwheelEvent(t){var i=t.path||t.composedPath&&t.composedPath();!i||null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&void 0===i.filter((t=>"BCM-SELECT"==t.nodeName))[0]||!0===this.isOpen&&(this.isOpen=!1,document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).classList.remove("show"))}async scrollEvent(t){var i=t.path||t.composedPath&&t.composedPath();i&&null==i.filter((t=>"BCM-MODAL"==t.nodeName))[0]?!0===this.isOpen&&this.viewportCoordinateUpdater():!0===this.isOpen&&(this.isOpen=!1,document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).classList.remove("show"))}viewportCoordinateUpdater(){var t;document.getElementById("select-box"+this._internal_id)&&(t=document.getElementById("select-box"+this._internal_id),n(t,"#"+this._id))}async createElement(t=!1){var i=document.getElementById("select-box"+this._internal_id);i||((i=document.createElement("bcm-select-box")).setAttribute("id","select-box"+this._internal_id),i.setAttribute("_internal_id",this._internal_id),await c(10)),document.body.appendChild(i),n(i,"#"+this._id),i.style.width=this.el.clientWidth+"px",i.style.width=null!=this.viewportMinWidth||null!=this.viewportMaxWidth?"100%":"100%"!=this.viewportWidth?this.viewportWidth:this.numberOfColumns>1?"auto":this.el.clientWidth+"px",null!=this.viewportMinWidth&&(null==this.viewportMaxWidth&&(i.style.maxWidth=this.el.clientWidth+"px"),i.style.minWidth=this.viewportMinWidth),null!=this.viewportMaxWidth&&(null==this.viewportMinWidth&&(i.style.minWidth=this.el.clientWidth+"px"),i.style.maxWidth=this.viewportMaxWidth),i.style.maxHeight=this.maxHeight,!0===t?i.classList.add("show"):i.classList.remove("show")}getPlacement(){const t=this.placement.split("-");return 1===t.length&&t.push("center"),t}clickClear(t){this.handleClear(),t.stopPropagation()}async handleClear(){this.cleaned=!0,this.value=null,this.selectText=null;var t=null;document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")&&(t=!0===this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")),t&&await t.setClear(),this.onShowVisibleTags=[],this.onShowHiddenTags=[],this.searchResults=[],this.watchSearchResults();var i=null;return document.getElementById("select-box"+this._internal_id)&&document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")&&(i=this.treeview?document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box").shadowRoot.querySelector("bcm-treeview"):document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box")),i&&i.clearAndSelectSearch(),this.clear.emit(),Promise.resolve()}handleFocus(){this.focus.emit()}handleBlur(){this.blur.emit()}handleScreenResize(){!0===this.isOpen&&this.createElement(!0)}handleClickOutside(t){var i,s=t.path||t.composedPath&&t.composedPath();if(s&&null==s.filter((t=>"other-tag"==t.id))[0]&&s&&null==s.filter((t=>"listbox"==t.id))[0]&&(this.otherTagStatus=!1,setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","grey-9")}),50)),(null==t?void 0:t.target)&&(null===(i=this.el)||void 0===i?void 0:i.contains(t.target))||s&&null!=s.filter((t=>t.id=="select-box"+this._internal_id))[0]){this.optionViewportStyleAlignment={};var e=t.target.id;if(document.querySelector("#"+e)){var h=document.querySelector("#"+e).getBoundingClientRect().top,o=t.target.clientHeight,l=t.view.innerHeight-h-(t.target.noCaption?o:o-20)+8;Number(this.maxHeight.replace("px",""))>l&&(this.optionViewportStyleAlignment={bottom:50+(this.infoFooter?30:0)+"px","box-shadow":"0px -2px 8px rgb(0 0 0 / 15%)"})}0==this.checkboxes&&s&&null==s.filter((t=>"collapse-button"==t.id))[0]&&(s.filter((t=>"BCM-LISTBOX-ITEM"==t.nodeName))[0]||s.filter((t=>"BCM-TREEVIEW-ITEM"==t.nodeName))[0])&&(this.isOpen=!1)}else this.isOpen&&(this.isOpen=!1)}handleTreeviewUnchecked(t){this.handleListboxUnchecked(t)}handleListboxUnchecked(t){const i=this.searchResults.indexOf(t.detail);i>-1&&(this.searchResults.splice(i,1),this.onShowHiddenTags.length<=2&&(this.searchResults=[],this.otherTagStatus=!1),this.watchSearchResults())}async bcmOldTagDissmisable(t,i=null){var s=t.path||t.composedPath&&t.composedPath();if(this.el.contains(t.target)&&s&&s.filter((t=>t._internal_id==this._internal_id))[0]||i==this._internal_id){0==this.isRendered&&(await this.renderListbox(),await c(50)),await this.createElement(),await c(50);const i=document.getElementById("select-box"+this._internal_id).shadowRoot.querySelector(".listbox-box");"other-tag"==t.detail.id?(this.onShowHiddenTags.map((async t=>{await i.listboxUncheckedMethod(String(t[this.objectMapping.id]),this._internal_id)})),this.onShowHiddenTags=[]):await i.listboxUncheckedMethod(t.detail.id,this._internal_id),this.watchSearchResults()}}handleListboxSelected(t){var i=t.path||t.composedPath&&t.composedPath();i&&null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&setTimeout((()=>{if(!0!==this.checkboxes){const i=t.detail;i.selected&&delete i.selected,i.checked&&delete i.checked,i!=this.value&&(this.value=i),this.selectText=i[this.objectMapping.text]}}),100)}handleListboxCheckedList(t){var i=t.path||t.composedPath&&t.composedPath();i&&null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&setTimeout((()=>{JSON.stringify(this.checklist)!==JSON.stringify(t.detail)&&(this.handleTagControl2(t.detail),this.checklist=t.detail)}),100)}handleTreeviewCheckedList(t){var i=t.path||t.composedPath&&t.composedPath();i&&null!=i.filter((t=>t._internal_id==this._internal_id))[0]&&(this.handleTagControl2(t.detail),this.checklist=t.detail)}async handleTagControl2(t){if(this.visibleTags=[],this.hiddenTags=[],this.onShowVisibleTags=[],this.onShowHiddenTags=[],t.length>0&&t.map((async t=>{this.visibleTags.push(t)})),this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.onShowVisibleTags=this.visibleTags,this.onShowHiddenTags=this.hiddenTags,this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0){var i=JSON.parse(JSON.stringify([...this.onShowVisibleTags,...this.onShowHiddenTags]));this.value2!==i&&(this.value2=i)}else null!==this.value2&&(this.value2=null);this.calculateContainer()}async calculateContainer(){const t=this.el.shadowRoot.querySelector(".selected-text");this.otherTagsWidth=135,await c(50),this.areaWidth=t.clientWidth&&t.clientWidth>100?t.clientWidth:100,!0===this.clearable&&(this.areaWidth=this.areaWidth-22),this.itemsWidth=0,this.itemsWidthArray=[];const i=t.querySelectorAll("bcm-old-tag");if(await c(50),i&&i.length>0&&i.forEach((t=>{const i=t.clientWidth&&t.clientWidth>40?t.clientWidth:40;if(this.itemsWidthArray.push({id:String(t.id),clientWidth:i}),this.itemsWidth+=i+4,this.itemsWidth>this.areaWidth){const i=this.visibleTags[this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id)))];t&&i&&t.id&&i[this.objectMapping.id]&&l.lowercase(String(t.id))==l.lowercase(String(i[this.objectMapping.id]))&&(this.visibleTags.splice(this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id))),1),this.hiddenTags.push(i))}})),this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.hiddenTags.length>0){(this.hiddenTags.length>10||this.hiddenTags.length>100)&&(this.otherTagsWidth+=20);var s=Array.prototype.slice.call(t.querySelectorAll("bcm-old-tag"));this.itemsWidth=0,s.forEach((t=>{if("other-tag"!=t.id){var i=this.visibleTags[this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id)))];i&&i[this.objectMapping.id]&&l.lowercase(String(t.id))==l.lowercase(String(i[this.objectMapping.id]))&&(this.itemsWidth+=t.clientWidth+4,this.itemsWidth+this.otherTagsWidth>this.areaWidth&&(this.visibleTags.splice(this.visibleTags.findIndex((i=>String(i[this.objectMapping.id])===String(t.id))),1),this.hiddenTags.push(i)))}}))}if(this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.onShowVisibleTags=this.visibleTags,this.onShowHiddenTags=this.hiddenTags,this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0){var e=JSON.parse(JSON.stringify([...this.onShowVisibleTags,...this.onShowHiddenTags]));this.value!==e&&(this.value=e)}else null!==this.value&&(this.value=null);this.otherTagStatus&&(this.searchResults=this.onShowHiddenTags.map((t=>String(t[this.objectMapping.id]))),this.onShowHiddenTags.length<=2&&(this.searchResults=[],this.otherTagStatus=!1),this.watchSearchResults())}async handleTagControl(t){if(t.length>0){const i=this.el.shadowRoot.querySelector(".selected-text");if(this.visibleTags=[],this.hiddenTags=[],this.itemsWidth=[],this.onShowVisibleTags=[],this.onShowHiddenTags=[],this.areaWidth=i.clientWidth-16,this.otherTagsWidth=130,this.currentItemWidth=0,t.map((async t=>{const i=document.createElement("bcm-old-tag");i.setAttribute("id",String(t[this.objectMapping.id])),i.setAttribute("value",t[this.objectMapping.text]),i.setAttribute("type","dissmisable"),i.setAttribute("_internal_id",this._internal_id),i.style.visibility="hidden",document.body.appendChild(i),await c(50);var s=i.clientWidth>=200?200:i.clientWidth;this.currentItemWidth=this.currentItemWidth+s,this.itemsWidth.push({id:String(t[this.objectMapping.id]),clientWidth:s}),this.areaWidth>this.currentItemWidth?this.visibleTags.push(t):this.hiddenTags.push(t),i.remove()})),await c(100),this.visibleTags.length>1){const t=this.itemsWidth[this.itemsWidth.findIndex((t=>t.id===String(this.visibleTags[this.visibleTags.length-1][this.objectMapping.id])))];this.areaWidth<=this.currentItemWidth+this.otherTagsWidth-t.clientWidth&&(this.hiddenTags.push(this.visibleTags[this.visibleTags.length-1]),this.visibleTags.splice(-1,1))}}else this.visibleTags=[],this.hiddenTags=[];if(this.visibleTags.forEach((t=>{const i=this.hiddenTags.indexOf(t);i>-1&&this.hiddenTags.splice(i,1)})),this.hiddenTags.length>0&&(this.hiddenTags=[...new Set(this.hiddenTags),...new Set(this.visibleTags)],this.visibleTags=[]),this.visibleTags=[...new Set(this.visibleTags)],this.hiddenTags=[...new Set(this.hiddenTags)],this.onShowVisibleTags=this.visibleTags,this.onShowHiddenTags=this.hiddenTags,this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0){var i=JSON.parse(JSON.stringify([...this.onShowVisibleTags,...this.onShowHiddenTags]));this.value!==i&&(this.value=i)}else null!==this.value&&(this.value=null);var s=Object.keys(this.onShowHiddenTags).map((t=>this.onShowHiddenTags[t][this.objectMapping.text]));this.hiddenTagsString=s.toString().split(",").join("\r\n")}handleClickTag(){this.searchResults=[],this.otherTagStatus=!1,setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","grey-9")}),100),this.watchSearchResults()}showHiddenTags(t){t.stopPropagation(),this.handleOpen(t,!0),this.otherTag=t.target,this.otherTagStatus?(this.searchResults=[],this.otherTagStatus=!1):(this.otherTagStatus=!0,this.searchResults=this.onShowHiddenTags.map((t=>String(t[this.objectMapping.id])))),this.watchSearchResults()}async watchSearchResults(){var t=null;1==this.treeview?(t=document.getElementById("select-box"+this._internal_id))&&(t=t.shadowRoot.querySelector(".listbox-box"))&&(t=t.shadowRoot.querySelector("bcm-treeview"))&&await t.searchResultMethod(this.searchResults):(t=document.getElementById("select-box"+this._internal_id))&&(t=t.shadowRoot.querySelector(".listbox-box"))&&await t.searchResultMethod(this.searchResults),this.searchResults.length>0?(setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","prime-blue")}),100),1==this._config.searchable&&t&&await t.showSearchMethod(!1)):(setTimeout((()=>{this.otherTag&&this.otherTag.setAttribute("color","grey-9")}),100),t&&await t.showSearchMethod(this.searchable))}render(){const{size:t,clearable:i,value:h,label:l,caption:n,captionError:a,captionType:c,disabled:r,flex:d,placeholder:p,noCaption:b,fullWidth:u,required:x}=this,m=o("selected","selected-"+this.size,{"size-3":"large"===t,"size-2":"small"===t||"medium"===t,disabled:r}),g=o("option-container","alignment-"+this.alignment,{hidden:!this.isOpen},{"column-1":this.numberOfColumns<=1,"column-2":2==this.numberOfColumns,"column-3":this.numberOfColumns>=3}),v=o("options-viewport",{hidden:!this.isOpen,[this.scrollable]:"horizontal"===this.scrollable||"vertical"===this.scrollable,"horizontal vertical":"both"===this.scrollable,flex:d}),w=o("size-1","input-caption","caption-"+c),f=o("container",{error:"error"==c,"full-width":u}),y=o("selected-text",{"selected-tags":this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0}),S=o(this.hidden?"hidden":null);var z={width:null!=this.viewportMinWidth||null!=this.viewportMaxWidth?"max-content":"100%"!=this.viewportWidth?this.viewportWidth:this.numberOfColumns>1?"auto":"100%","min-width":null!=this.viewportMinWidth?this.viewportMinWidth:null,"max-width":null!=this.viewportMaxWidth?this.viewportMaxWidth:null};this.optionViewportStyleAlignment&&(z=Object.assign(Object.assign({},z),this.optionViewportStyleAlignment));const k={cursor:"pointer","max-width":"164px","text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden",display:"block"};return s(e,{class:S,onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()},s("div",{class:f},l&&s("bcm-label",{onClick:()=>this.handleOpen(!1),tooltip:this.tooltip,type:c,value:l,required:x}),s("div",{id:"selected-container",class:m,onClick:t=>this.handleOpen(t),tabIndex:-1},s("span",{class:y,title:this.selectText&&this.selectText},this.selectText&&this.selectText,!this.selectText&&(this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0)&&s("span",{id:"tagcontainer",class:"tag-container"},s("span",null,this.onShowVisibleTags.map((t=>s("bcm-old-tag",{_internal_id:this._internal_id,customStyle:k,onClick:()=>this.handleClickTag(),type:"dissmisable",value:t[this.objectMapping.text],title:t[this.objectMapping.text],id:t[this.objectMapping.id],class:"tag"})))),s("span",null,this.onShowHiddenTags.length>0&&s("bcm-old-tag",{_internal_id:this._internal_id,title:this.hiddenTagsString,customStyle:{cursor:"pointer","white-space":"nowrap"},onClick:t=>this.showHiddenTags(t),color:this.otherTagStatus?"prime-blue":"grey-9",type:"dissmisable",value:"+ "+this.onShowHiddenTags.length+" item"+(this.onShowHiddenTags.length>1?"s":"")+" selected",id:"other-tag"}))),!(this.selectText||this.onShowVisibleTags.length>0||this.onShowHiddenTags.length>0)&&p&&s("span",{class:"placeholder"}," ",p," ")),s("div",{class:"buttons"},i&&h&&s("button",{class:"select-clear-button",onClick:t=>this.clickClear(t)},s("svg",{style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"}))),s("span",{class:this.isOpen?"open":"close"},s("svg",{style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},s("path",{d:"M168.5 164.2l148 146.8c4.7 4.7 4.7 12.3 0 17l-19.8 19.8c-4.7 4.7-12.3 4.7-17 0L160 229.3 40.3 347.8c-4.7 4.7-12.3 4.7-17 0L3.5 328c-4.7-4.7-4.7-12.3 0-17l148-146.8c4.7-4.7 12.3-4.7 17 0z"}))))),s("div",{class:g,style:z},s("div",{class:v})),!b&&s("div",{class:"caption-area"},"error"==c?s("span",{class:w}," ",a," "):n&&s("span",{class:w}," ",n," "))))}get el(){return h(this)}static get watchers(){return{value:["handleChange"],isOpen:["handleOpenState"]}}};(function(t,i,s,e){var h,o=arguments.length,l=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(l=(o<3?h(l):o>3?h(i,s,l):h(i,s))||l);o>3&&l&&Object.defineProperty(i,s,l)})([a()],r.prototype,"el",void 0),r.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}:host{display:inline-block;width:100%;margin:0}:host(.hidden){display:none}.container{display:block;max-width:256px;position:relative}.container.full-width{width:100%;max-width:100%}.selected{width:100%;box-sizing:border-box;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);display:flex;justify-content:space-between;align-items:center;border:1px solid var(--bcm-color-grey-5);user-select:none;cursor:pointer}.selected:hover:not(.disabled){border-color:var(--bcm-color-prime-blue-5)}.selected:hover:not(.disabled) .select-clear-button{opacity:1}.selected:focus:not(.disabled){border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.selected:focus:not(.disabled) .select-clear-button{opacity:1}.selected:focus{outline:none}.selected.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8);cursor:not-allowed}.selected .buttons{padding:8px;height:100%;display:flex;align-items:center;justify-content:center}.selected .selected-text{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;padding:0 8px;width:100%}.selected .selected-tags{padding:0 4px;height:100%}.selected .tag-container{height:100%;display:flex;align-items:center;justify-content:flex-start;grid-gap:2px}.selected .tag-container>span{height:100%;align-items:center;justify-content:flex-start;display:flex;grid-gap:2px}.selected .tag-container .tag{max-width:200px}.selected .tag-container #other-tag{cursor:pointer}.selected .open,.selected .close{display:inline-flex}.selected .close{transform:rotate(180deg)}.selected .placeholder{color:var(--bcm-color-grey-6);user-select:none;font-size:14px;height:100%;display:flex;align-items:center;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.options-viewport{display:inline-block}.option-container{display:block;position:absolute;background-color:var(--bcm-color-grey-1);box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15);box-sizing:border-box;width:100%;z-index:10000}.option-container.alignment-left{left:0}.option-container.alignment-right{right:0}.option-container.hidden{display:none}.option-container .search{position:sticky;padding:8px;margin-bottom:4px}.option-container .search:after{content:"";position:absolute;bottom:0;height:1px;width:calc(100% - 16px);background-color:var(--bcm-color-grey-5)}.options-viewport{display:block}.options-viewport bcm-select-option,.options-viewport ::slotted(bcm-select-option){white-space:normal}.options-viewport.hidden{display:none}.options-viewport.vertical{height:fit-content;max-height:200px}.options-viewport.horizontal:not(.flex){overflow-x:auto;width:100%}.options-viewport.horizontal:not(.flex) bcm-select-option,.options-viewport.horizontal:not(.flex) ::slotted(bcm-select-option){white-space:nowrap}.items{display:flex;flex-direction:column}.buttons{display:flex}.select-clear-button{display:inline-flex;align-items:center;outline:none;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;opacity:0}.label{display:block;color:var(--bcm-color-grey-9)}.caption-area{min-height:20px}.input-caption{display:block}.selected-large{height:40px}.selected-medium{height:32px}.selected-small{height:24px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .selected{border:1px solid var(--bcm-color-red-6) !important}';export{r as bcm_select}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,f as s,h as e,H as h,g as a}from"./p-0122ae3d.js";import{S as n,T as c,D as l}from"./p-e53f8a82.js";import{d as r,c as o}from"./p-3c7a0345.js";import{c as p}from"./p-d5b08a77.js";import{I as b}from"./p-96287124.js";import"./p-6f56f8ca.js";const m=class{constructor(s){t(this,s),this.click=i(this,"bcm-click",7),this.change=i(this,"bcm-change",7),this.bcmTabsActiveItem=i(this,"bcm-tabs-active-item",7),this.tabs=[],this.firstInit=!0,this.count=0,this.size=n.large,this.type=c.normal,this.direction=l.horizontal,this.hidden=!1,this.fullWidth=!1,this.underline=!0,this.activeChild=1,this.lineOpts={top:"0px",left:"0px",right:"0px",width:"0px",height:"0px"},this.prevButton=null,this.nextButton=null,this.completeButton=null,this.prevButtonState="disabled",this.nextButtonState="disabled",this.completeButtonState="disabled"}async config(t){return t.prevButton&&(t.prevButton.id&&(this.prevButton=document.querySelector("#"+t.prevButton.id)),t.prevButton.state&&(this.prevButtonState=t.prevButton.state)),t.nextButton&&(t.nextButton.id&&(this.nextButton=document.querySelector("#"+t.nextButton.id)),t.nextButton.state&&(this.nextButtonState=t.nextButton.state)),t.completeButton&&(t.completeButton.id&&(this.completeButton=document.querySelector("#"+t.completeButton.id)),t.completeButton.state&&(this.completeButtonState=t.completeButton.state)),this.buttonControl(),!0}async next(){var t="#"+this.tabs[this.getActive()-1].formControl,i=document.querySelector(t),s=null;return i&&(s=await i.submit()),(i&&s.isValid||!i)&&(this.activeChild=this.getActive()+1,this.active(this.tabs[this.getActive()-1].tabId)),s}async prev(){return this.activeChild=this.getActive()-1,this.active(this.tabs[this.getActive()-1].tabId),this.activeChild}async complete(){const t=[];var i=!0;this.tabs.forEach((i=>{if(i.formControl){const s=document.querySelector("#"+i.formControl);s&&t.push(s.submit())}}));const s=await Promise.all(t);return s.forEach((t=>{if(!1===t.isValid&&(i=!1,t.formName)){const i=this.tabs.filter((i=>i.formControl==t.formName))[0].tabId;this.active(i)}})),{isValid:i,Forms:s}}async active(t){var i=0;this.activeChild=-1,await r(100),o(this.el,"bcm-tab").forEach((s=>{i++,s.tabId==t&&(s.disabled=!1,s.active=!0,this.bcmTabsActiveItem.emit(s.tabId),this.activeChild=i),s.tabId!=t&&(s.active=!1)}))}async getActiveTab(){return this.tabs[this.getActive()-1].tabId}async getActiveIndex(){return this.getActive()}async error(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="error")}))}async info(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="processing")}))}async warning(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="warning")}))}async success(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="success")}))}async statusReset(t){o(this.el,"bcm-tab").forEach((i=>{i.tabId==t&&(i.badge=!1,i.blink=!1,i.status="default")}))}buttonControl(){this.prevButton&&(1==this.activeChild?this.prevButton.setAttribute(this.prevButtonState,"true"):this.prevButton.removeAttribute(this.prevButtonState)),this.nextButton&&(this.getActive()==this.count?this.nextButton.setAttribute(this.nextButtonState,"true"):this.nextButton.removeAttribute(this.nextButtonState)),this.completeButton&&(this.getActive()==this.count?this.completeButton.removeAttribute(this.completeButtonState):this.completeButton.setAttribute(this.completeButtonState,"true"))}componentDidRender(){if(!this.firstInit)return;let t;t=this.el.shadowRoot.querySelector("slot").assignedElements(),this.tabs=[],this.activeChild=this.getActive();var i=!1,s=null,e=0;t.map((t=>{e++,"stepper"==this.type&&(t.disabled=!0),s||(s=t.tabId),"bcm-tab"==String(t.tagName).toLowerCase()&&(t.type=this.type,this.tabs.push(t)-1==this.activeChild&&(this.activateChild(this.activeChild),i=!0)),this.count=e})),i||this.active(s),setTimeout((()=>{this.el.shadowRoot.querySelector(".tabs").classList.add("animatable")}),500)}componentDidLoad(){o(this.el,"bcm-tab").forEach((t=>{t.active&&(this.bcmTabsActiveItem.emit(t.tabId),t.disabled=!1)}))}getActive(){const t=o(this.el,"bcm-tab").findIndex((t=>t.active));return t>=0?t+1:1}getChildIdx(t){let i=1;for(;t.previousElementSibling;)t=t.previousElementSibling,i++;return i}activateChild(t){const i=this.tabs[t-=1];i&&(this.tabs.forEach((t=>t.active=!1)),i.active=!0,i.disabled=!1,this.transformLine(t),this.firstInit&&s(this.el),this.firstInit=!1)}transformLine(t){const i=this.tabs[t].getBoundingClientRect(),s=i.top+window.pageYOffset,e=i.left+window.pageXOffset,h=i.width,a=i.height;"horizontal"==this.direction?(this.lineOpts.top=s+a+"px",this.lineOpts.left=e+"px",this.lineOpts.width=h+"px",this.lineOpts.right="unset",this.lineOpts.height="2px"):(this.lineOpts.top=s+"px",this.lineOpts.left="unset",this.lineOpts.right="0",this.lineOpts.width="2px",this.lineOpts.height=a+"px")}getLineTransform(){return{"--bcm-tabs-line-top":this.lineOpts.top,"--bcm-tabs-line-left":this.lineOpts.left,"--bcm-tabs-line-width":this.lineOpts.width,"--bcm-tabs-line-right":this.lineOpts.right,"--bcm-tabs-line-height":this.lineOpts.height}}handleTabClick(t){const i=this.getChildIdx(t.target);this.activeChild=null,this.activeChild=i}handleTabClose(t){const i=t.target,s=this.getChildIdx(i);i.remove(),this.tabs.splice(s-1,1),s===this.activeChild&&(this.activeChild=1,this.activateChild(1))}activeChildChange(t){this.activateChild(t),this.change.emit(t),this.buttonControl()}windowResize(){this.transformLine(this.activeChild-1),s(this.el)}render(){const t=p("tabs",[this.direction],[this.size],[this.type],this.fullWidth?"full-width":null,this.underline?"underline":null),i=p(this.hidden?"hidden":null);return e(h,{class:i},e("div",{class:t,style:this.getLineTransform(),"on-bcm-click":t=>this.handleTabClick(t),"on-bcm-close":t=>this.handleTabClose(t)},e("slot",null)))}get el(){return a(this)}static get watchers(){return{activeChild:["activeChildChange"]}}};(function(t,i,s,e){var h,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(h=t[c])&&(n=(a<3?h(n):a>3?h(i,s,n):h(i,s))||n);a>3&&n&&Object.defineProperty(i,s,n)})([b()],m.prototype,"el",void 0),m.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}:host{display:block}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:"";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:"";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}';export{m as bcm_tabs}
5
+ import{r as t,c as i,f as s,h as e,H as h,g as a}from"./p-0122ae3d.js";import{S as n,T as c,D as l}from"./p-e53f8a82.js";import{d as r,c as o}from"./p-8c018ae0.js";import{c as p}from"./p-d5b08a77.js";import{I as b}from"./p-96287124.js";import"./p-6f56f8ca.js";const m=class{constructor(s){t(this,s),this.click=i(this,"bcm-click",7),this.change=i(this,"bcm-change",7),this.bcmTabsActiveItem=i(this,"bcm-tabs-active-item",7),this.tabs=[],this.firstInit=!0,this.count=0,this.size=n.large,this.type=c.normal,this.direction=l.horizontal,this.hidden=!1,this.fullWidth=!1,this.underline=!0,this.activeChild=1,this.lineOpts={top:"0px",left:"0px",right:"0px",width:"0px",height:"0px"},this.prevButton=null,this.nextButton=null,this.completeButton=null,this.prevButtonState="disabled",this.nextButtonState="disabled",this.completeButtonState="disabled"}async config(t){return t.prevButton&&(t.prevButton.id&&(this.prevButton=document.querySelector("#"+t.prevButton.id)),t.prevButton.state&&(this.prevButtonState=t.prevButton.state)),t.nextButton&&(t.nextButton.id&&(this.nextButton=document.querySelector("#"+t.nextButton.id)),t.nextButton.state&&(this.nextButtonState=t.nextButton.state)),t.completeButton&&(t.completeButton.id&&(this.completeButton=document.querySelector("#"+t.completeButton.id)),t.completeButton.state&&(this.completeButtonState=t.completeButton.state)),this.buttonControl(),!0}async next(){var t="#"+this.tabs[this.getActive()-1].formControl,i=document.querySelector(t),s=null;return i&&(s=await i.submit()),(i&&s.isValid||!i)&&(this.activeChild=this.getActive()+1,this.active(this.tabs[this.getActive()-1].tabId)),s}async prev(){return this.activeChild=this.getActive()-1,this.active(this.tabs[this.getActive()-1].tabId),this.activeChild}async complete(){const t=[];var i=!0;this.tabs.forEach((i=>{if(i.formControl){const s=document.querySelector("#"+i.formControl);s&&t.push(s.submit())}}));const s=await Promise.all(t);return s.forEach((t=>{if(!1===t.isValid&&(i=!1,t.formName)){const i=this.tabs.filter((i=>i.formControl==t.formName))[0].tabId;this.active(i)}})),{isValid:i,Forms:s}}async active(t){var i=0;this.activeChild=-1,await r(100),o(this.el,"bcm-tab").forEach((s=>{i++,s.tabId==t&&(s.disabled=!1,s.active=!0,this.bcmTabsActiveItem.emit(s.tabId),this.activeChild=i),s.tabId!=t&&(s.active=!1)}))}async getActiveTab(){return this.tabs[this.getActive()-1].tabId}async getActiveIndex(){return this.getActive()}async error(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="error")}))}async info(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="processing")}))}async warning(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="warning")}))}async success(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="success")}))}async statusReset(t){o(this.el,"bcm-tab").forEach((i=>{i.tabId==t&&(i.badge=!1,i.blink=!1,i.status="default")}))}buttonControl(){this.prevButton&&(1==this.activeChild?this.prevButton.setAttribute(this.prevButtonState,"true"):this.prevButton.removeAttribute(this.prevButtonState)),this.nextButton&&(this.getActive()==this.count?this.nextButton.setAttribute(this.nextButtonState,"true"):this.nextButton.removeAttribute(this.nextButtonState)),this.completeButton&&(this.getActive()==this.count?this.completeButton.removeAttribute(this.completeButtonState):this.completeButton.setAttribute(this.completeButtonState,"true"))}componentDidRender(){if(!this.firstInit)return;let t;t=this.el.shadowRoot.querySelector("slot").assignedElements(),this.tabs=[],this.activeChild=this.getActive();var i=!1,s=null,e=0;t.map((t=>{e++,"stepper"==this.type&&(t.disabled=!0),s||(s=t.tabId),"bcm-tab"==String(t.tagName).toLowerCase()&&(t.type=this.type,this.tabs.push(t)-1==this.activeChild&&(this.activateChild(this.activeChild),i=!0)),this.count=e})),i||this.active(s),setTimeout((()=>{this.el.shadowRoot.querySelector(".tabs").classList.add("animatable")}),500)}componentDidLoad(){o(this.el,"bcm-tab").forEach((t=>{t.active&&(this.bcmTabsActiveItem.emit(t.tabId),t.disabled=!1)}))}getActive(){const t=o(this.el,"bcm-tab").findIndex((t=>t.active));return t>=0?t+1:1}getChildIdx(t){let i=1;for(;t.previousElementSibling;)t=t.previousElementSibling,i++;return i}activateChild(t){const i=this.tabs[t-=1];i&&(this.tabs.forEach((t=>t.active=!1)),i.active=!0,i.disabled=!1,this.transformLine(t),this.firstInit&&s(this.el),this.firstInit=!1)}transformLine(t){const i=this.tabs[t].getBoundingClientRect(),s=i.top+window.pageYOffset,e=i.left+window.pageXOffset,h=i.width,a=i.height;"horizontal"==this.direction?(this.lineOpts.top=s+a+"px",this.lineOpts.left=e+"px",this.lineOpts.width=h+"px",this.lineOpts.right="unset",this.lineOpts.height="2px"):(this.lineOpts.top=s+"px",this.lineOpts.left="unset",this.lineOpts.right="0",this.lineOpts.width="2px",this.lineOpts.height=a+"px")}getLineTransform(){return{"--bcm-tabs-line-top":this.lineOpts.top,"--bcm-tabs-line-left":this.lineOpts.left,"--bcm-tabs-line-width":this.lineOpts.width,"--bcm-tabs-line-right":this.lineOpts.right,"--bcm-tabs-line-height":this.lineOpts.height}}handleTabClick(t){const i=this.getChildIdx(t.target);this.activeChild=null,this.activeChild=i}handleTabClose(t){const i=t.target,s=this.getChildIdx(i);i.remove(),this.tabs.splice(s-1,1),s===this.activeChild&&(this.activeChild=1,this.activateChild(1))}activeChildChange(t){this.activateChild(t),this.change.emit(t),this.buttonControl()}windowResize(){this.transformLine(this.activeChild-1),s(this.el)}render(){const t=p("tabs",[this.direction],[this.size],[this.type],this.fullWidth?"full-width":null,this.underline?"underline":null),i=p(this.hidden?"hidden":null);return e(h,{class:i},e("div",{class:t,style:this.getLineTransform(),"on-bcm-click":t=>this.handleTabClick(t),"on-bcm-close":t=>this.handleTabClose(t)},e("slot",null)))}get el(){return a(this)}static get watchers(){return{activeChild:["activeChildChange"]}}};(function(t,i,s,e){var h,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(h=t[c])&&(n=(a<3?h(n):a>3?h(i,s,n):h(i,s))||n);a>3&&n&&Object.defineProperty(i,s,n)})([b()],m.prototype,"el",void 0),m.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}:host{display:block}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:"";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:"";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}';export{m as bcm_tabs}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c as t,h as i,H as s,g as a}from"./p-0122ae3d.js";import{G as r,s as o,S as l,T as n}from"./p-04b6abc3.js";import{c as p}from"./p-d5b08a77.js";import{c}from"./p-acb048b5.js";import{S as h}from"./p-04c8b756.js";import{I as m}from"./p-96287124.js";import"./p-6f56f8ca.js";import"./p-c9bd85e9.js";const{state:d}=c({value:new Map,setData:{},removeData:{}});const x=class{constructor(i){e(this,i),this.alertdismissible=t(this,"bcm-alert-dismissible",7),this.hidden=!1,this._id=r.UID(),this._title=void 0,this.description=void 0,this.status=l.info,this.type=n.basic,this.dismissible=void 0,this.icon=!1,this.bigIcon=!1,this.fullWidth=!1}componentWillRender(){if(null!=this.dismissible)if(""==this.dismissible)this.dismissible=!0;else{if(("string"!=typeof this.dismissible||"false"!=this.dismissible)&&"true"!=this.dismissible)return;this.dismissible=h.elementBooleanCheck(this.dismissible)}this.setData()}dismiss(e){this.alertdismissible.emit(e),this.el.remove()}getStateData(){return e=this._id,o((()=>d.value.get(e)),{});var e}setData(){const{status:e,type:t,bigIcon:i}=this;(e=>{const t=Object.assign(Object.assign(Object.assign({},e),{size:e.bigIcon?"medium":14,iconType:e.bigIcon?"outlined":"fill"}),r.getIconAttrWithStatusType(e.status));d.value.set(t.id,t)})({id:this._id,status:e,type:t,bigIcon:i})}render(){const{fullWidth:e,status:t,type:a,icon:r,bigIcon:o,_title:l,hidden:n,dismissible:c,description:h}=this,m=p("bcm-alert","bcm-alert__type-"+a,"bcm-alert__status-"+t,{"full-width":e,hidden:n}),d=p("bcm-alert__header-message",h?"size-3":"size-2"),x=this.getStateData();return i(s,{class:m},i("span",{hidden:!0},i("slot",null)),i("header",{class:"bcm-alert__header"},i("span",{class:d},(o||r)&&i("bcm-icon",{icon:x.icon}),l),c&&i("span",{class:"bcm-alert__header-dismiss",onClick:e=>this.dismiss(e)},"string"==typeof c?c:i("bcm-icon",{icon:"fal fa-times"}))),i("main",{class:"bcm-alert__content size-2"},h&&i("p",null,h),i("slot",null)))}get el(){return a(this)}};(function(e,t,i,s){var a,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(r<3?a(o):r>3?a(t,i,o):a(t,i))||o);r>3&&o&&Object.defineProperty(t,i,o)})([m()],x.prototype,"el",void 0),x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-alert{display:block;width:100%;max-width:400px;box-sizing:border-box;padding:8px 16px;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);border-radius:2px;position:relative;grid-gap:8px}.bcm-alert.hidden{display:none}.bcm-alert.full-width{max-width:100%}.bcm-alert__status-info{border:1px solid var(--bcm-color-blue-3);background-color:var(--bcm-color-blue-1)}.bcm-alert__status-error{border:1px solid var(--bcm-color-red-3);background-color:var(--bcm-color-red-1)}.bcm-alert__status-warning{border:1px solid var(--bcm-color-warmyellow-3);background-color:var(--bcm-color-warmyellow-1)}.bcm-alert__status-success{border:1px solid var(--bcm-color-green-3);background-color:var(--bcm-color-green-1)}.bcm-alert__type-banner{border:none}.bcm-alert__header{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.bcm-alert__header-message{display:flex;align-items:center;grid-gap:8px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss{display:flex;position:absolute;top:-1px;right:0;padding:16px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss:hover{cursor:pointer;color:var(--bcm-color-grey-9)}.bcm-alert__content{color:var(--bcm-color-grey-8)}.bcm-alert__content p{margin:0;padding:0}';export{x as bcm_alert}
5
+ import{r as e,c as t,h as i,H as s,g as a}from"./p-0122ae3d.js";import{G as r,s as o,S as l,T as n}from"./p-6c4032ea.js";import{c as p}from"./p-d5b08a77.js";import{c}from"./p-acb048b5.js";import{S as h}from"./p-04c8b756.js";import{I as m}from"./p-96287124.js";import"./p-6f56f8ca.js";import"./p-c9bd85e9.js";const{state:d}=c({value:new Map,setData:{},removeData:{}});const x=class{constructor(i){e(this,i),this.alertdismissible=t(this,"bcm-alert-dismissible",7),this.hidden=!1,this._id=r.UID(),this._title=void 0,this.description=void 0,this.status=l.info,this.type=n.basic,this.dismissible=void 0,this.icon=!1,this.bigIcon=!1,this.fullWidth=!1}componentWillRender(){if(null!=this.dismissible)if(""==this.dismissible)this.dismissible=!0;else{if(("string"!=typeof this.dismissible||"false"!=this.dismissible)&&"true"!=this.dismissible)return;this.dismissible=h.elementBooleanCheck(this.dismissible)}this.setData()}dismiss(e){this.alertdismissible.emit(e),this.el.remove()}getStateData(){return e=this._id,o((()=>d.value.get(e)),{});var e}setData(){const{status:e,type:t,bigIcon:i}=this;(e=>{const t=Object.assign(Object.assign(Object.assign({},e),{size:e.bigIcon?"medium":14,iconType:e.bigIcon?"outlined":"fill"}),r.getIconAttrWithStatusType(e.status));d.value.set(t.id,t)})({id:this._id,status:e,type:t,bigIcon:i})}render(){const{fullWidth:e,status:t,type:a,icon:r,bigIcon:o,_title:l,hidden:n,dismissible:c,description:h}=this,m=p("bcm-alert","bcm-alert__type-"+a,"bcm-alert__status-"+t,{"full-width":e,hidden:n}),d=p("bcm-alert__header-message",h?"size-3":"size-2"),x=this.getStateData();return i(s,{class:m},i("span",{hidden:!0},i("slot",null)),i("header",{class:"bcm-alert__header"},i("span",{class:d},(o||r)&&i("bcm-icon",{icon:x.icon}),l),c&&i("span",{class:"bcm-alert__header-dismiss",onClick:e=>this.dismiss(e)},"string"==typeof c?c:i("bcm-icon",{icon:"fal fa-times"}))),i("main",{class:"bcm-alert__content size-2"},h&&i("p",null,h),i("slot",null)))}get el(){return a(this)}};(function(e,t,i,s){var a,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(r<3?a(o):r>3?a(t,i,o):a(t,i))||o);r>3&&o&&Object.defineProperty(t,i,o)})([m()],x.prototype,"el",void 0),x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-alert{display:block;width:100%;max-width:400px;box-sizing:border-box;padding:8px 16px;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);border-radius:2px;position:relative;grid-gap:8px}.bcm-alert.hidden{display:none}.bcm-alert.full-width{max-width:100%}.bcm-alert__status-info{border:1px solid var(--bcm-color-blue-3);background-color:var(--bcm-color-blue-1)}.bcm-alert__status-error{border:1px solid var(--bcm-color-red-3);background-color:var(--bcm-color-red-1)}.bcm-alert__status-warning{border:1px solid var(--bcm-color-warmyellow-3);background-color:var(--bcm-color-warmyellow-1)}.bcm-alert__status-success{border:1px solid var(--bcm-color-green-3);background-color:var(--bcm-color-green-1)}.bcm-alert__type-banner{border:none}.bcm-alert__header{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.bcm-alert__header-message{display:flex;align-items:center;grid-gap:8px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss{display:flex;position:absolute;top:-1px;right:0;padding:16px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss:hover{cursor:pointer;color:var(--bcm-color-grey-9)}.bcm-alert__content{color:var(--bcm-color-grey-8)}.bcm-alert__content p{margin:0;padding:0}';export{x as bcm_alert}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{g as t}from"./p-3c7a0345.js";var s;!function(t){t.x="x",t.y="y",t.both="both"}(s||(s={}));class i{constructor({target:i,trigger:e,limit:h,center:o,direction:n=s.both,snapOnMouseDown:r=!1,useTransform:a=!1}){this.drag={x:0,y:0},this.offset={left:0,top:0},this.events={end:[],drag:[]},this.active=!1,this.anim=!1,this.busy=!1,this.target=i,this.trigger=e||i,this.direction=n,this.limit=h,this.useTransform=a,this.snapOnMouseDown=r,this.center=o,this.container=this.findRelativeContainer(),this.offset={top:this.useTransform?t(i).y:i.offsetTop,left:this.useTransform?t(i).x:i.offsetLeft},this.attachEvents()}attachEvents(){window.addEventListener("mousemove",(t=>this.windowMove(t))),window.addEventListener("mouseup",(()=>this.windowUp())),this.trigger.addEventListener("mousedown",(t=>this.triggerDown(t)))}computedStyle(t,s){return window.getComputedStyle(t,null).getPropertyValue(s)}findRelativeContainer(){const{target:t}=this,s=Node.ELEMENT_NODE;let i=t.parentNode;for(;i&&i.nodeType===s;){if(["absolute","relative"].includes(this.computedStyle(i,"position")))return i;i=i.parentNode}return null}windowMove(t){if(!this.active)return;const{limit:s}=this,{center:{x:i,y:e}={x:0,y:0}}=this;let h=t.pageX-this.drag.x-i,o=t.pageY-this.drag.y-e;this.busy=!0;const[n,r,a,l]=[s&&s.x&&s.x.max-i,s&&s.x&&s.x.min-i,s&&s.y&&s.y.max-e,s&&s.y&&s.y.min-e];(n||0===n)&&h>n&&(h=n),(r||0===r)&&h<r&&(h=r),(a||0===a)&&o>a&&(o=a),(l||0===l)&&o<l&&(o=l),this.offset={top:o,left:h},this.removeTransition(),this.move()}windowUp(){this.active&&(this.triggerEvent("end",this.getCurrentPosition()),this.animTimeout=setTimeout((()=>{clearTimeout(this.animTimeout),this.busy=!1}),210),this.active=!1)}triggerDown(t){this.active=!0,this.snapOnMouseDown&&(this.offset.left=t.offsetX,this.offset.top=t.offsetY,this.move()),this.drag.x=t.pageX-this.offset.left,this.drag.y=t.pageY-this.offset.top}move(t=!0){const{direction:i,useTransform:e,target:h,offset:{top:o,left:n}}=this;i===s.both?e?h.style.transform=`translate(${n}px, ${o}px)`:(h.style.top=`${o}px`)&&(h.style.left=`${n}px`):i===s.x?e?h.style.transform=`translateX(${n}px)`:h.style.left=`${n}px`:i===s.y&&(e?h.style.transform=`translateY(${o}px)`:h.style.top=`${o}px`),t&&this.triggerEvent("drag",this.getCurrentPosition())}calculateOffset(){const{target:t,container:s}=this;let{left:i,top:e}=t.style;if(!s)return{left:i,top:e};const[h,o]=[t.getBoundingClientRect(),s.getBoundingClientRect()];return i=h.left-o.left,e=h.top-o.top,{left:i,top:e}}getCurrentPosition(){const{target:s}=this,{center:{x:i,y:e}={x:0,y:0}}=this;let{left:h,top:o}=this.calculateOffset();return{x:this.useTransform?t(s).x+i:parseFloat(h)+i,y:this.useTransform?t(s).y+e:parseFloat(o)+e}}setPosition({x:t,y:s,anim:i}){const{center:{x:e,y:h}={x:0,y:0}}=this;(t||0===t)&&(this.offset.left=t-e),(s||0===s)&&(this.offset.top=s-h),i&&this.applyTransition(),this.move(!1)}applyTransition(){this.anim=!0,this.target.style.transition="transform 0.2s ease"}removeTransition(){this.anim=!1,this.target.style.transition=""}getOffset(){return this.offset}on(t,s){this.events[t].push(s)}triggerEvent(t,...s){this.events[t].forEach((t=>t(s[0])))}}export{s as D,i as E}
5
+ import{a as t}from"./p-8c018ae0.js";var s;!function(t){t.x="x",t.y="y",t.both="both"}(s||(s={}));class i{constructor({target:i,trigger:e,limit:h,center:o,direction:n=s.both,snapOnMouseDown:r=!1,useTransform:a=!1}){this.drag={x:0,y:0},this.offset={left:0,top:0},this.events={end:[],drag:[]},this.active=!1,this.anim=!1,this.busy=!1,this.target=i,this.trigger=e||i,this.direction=n,this.limit=h,this.useTransform=a,this.snapOnMouseDown=r,this.center=o,this.container=this.findRelativeContainer(),this.offset={top:this.useTransform?t(i).y:i.offsetTop,left:this.useTransform?t(i).x:i.offsetLeft},this.attachEvents()}attachEvents(){window.addEventListener("mousemove",(t=>this.windowMove(t))),window.addEventListener("mouseup",(()=>this.windowUp())),this.trigger.addEventListener("mousedown",(t=>this.triggerDown(t)))}computedStyle(t,s){return window.getComputedStyle(t,null).getPropertyValue(s)}findRelativeContainer(){const{target:t}=this,s=Node.ELEMENT_NODE;let i=t.parentNode;for(;i&&i.nodeType===s;){if(["absolute","relative"].includes(this.computedStyle(i,"position")))return i;i=i.parentNode}return null}windowMove(t){if(!this.active)return;const{limit:s}=this,{center:{x:i,y:e}={x:0,y:0}}=this;let h=t.pageX-this.drag.x-i,o=t.pageY-this.drag.y-e;this.busy=!0;const[n,r,a,l]=[s&&s.x&&s.x.max-i,s&&s.x&&s.x.min-i,s&&s.y&&s.y.max-e,s&&s.y&&s.y.min-e];(n||0===n)&&h>n&&(h=n),(r||0===r)&&h<r&&(h=r),(a||0===a)&&o>a&&(o=a),(l||0===l)&&o<l&&(o=l),this.offset={top:o,left:h},this.removeTransition(),this.move()}windowUp(){this.active&&(this.triggerEvent("end",this.getCurrentPosition()),this.animTimeout=setTimeout((()=>{clearTimeout(this.animTimeout),this.busy=!1}),210),this.active=!1)}triggerDown(t){this.active=!0,this.snapOnMouseDown&&(this.offset.left=t.offsetX,this.offset.top=t.offsetY,this.move()),this.drag.x=t.pageX-this.offset.left,this.drag.y=t.pageY-this.offset.top}move(t=!0){const{direction:i,useTransform:e,target:h,offset:{top:o,left:n}}=this;i===s.both?e?h.style.transform=`translate(${n}px, ${o}px)`:(h.style.top=`${o}px`)&&(h.style.left=`${n}px`):i===s.x?e?h.style.transform=`translateX(${n}px)`:h.style.left=`${n}px`:i===s.y&&(e?h.style.transform=`translateY(${o}px)`:h.style.top=`${o}px`),t&&this.triggerEvent("drag",this.getCurrentPosition())}calculateOffset(){const{target:t,container:s}=this;let{left:i,top:e}=t.style;if(!s)return{left:i,top:e};const[h,o]=[t.getBoundingClientRect(),s.getBoundingClientRect()];return i=h.left-o.left,e=h.top-o.top,{left:i,top:e}}getCurrentPosition(){const{target:s}=this,{center:{x:i,y:e}={x:0,y:0}}=this;let{left:h,top:o}=this.calculateOffset();return{x:this.useTransform?t(s).x+i:parseFloat(h)+i,y:this.useTransform?t(s).y+e:parseFloat(o)+e}}setPosition({x:t,y:s,anim:i}){const{center:{x:e,y:h}={x:0,y:0}}=this;(t||0===t)&&(this.offset.left=t-e),(s||0===s)&&(this.offset.top=s-h),i&&this.applyTransition(),this.move(!1)}applyTransition(){this.anim=!0,this.target.style.transition="transform 0.2s ease"}removeTransition(){this.anim=!1,this.target.style.transition=""}getOffset(){return this.offset}on(t,s){this.events[t].push(s)}triggerEvent(t,...s){this.events[t].forEach((t=>t(s[0])))}}export{s as D,i as E}