bromcom-ui 2.7.37-rc.0 → 2.7.37-rc.1
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.
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-ebadb877.entry.js → p-0540bd97.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1fed2eec.entry.js → p-0baf7808.entry.js} +1 -1
- package/dist/bromcom-ui/p-0f4e34e9.js +5 -0
- package/dist/bromcom-ui/{p-6c040eb8.js → p-10dfe83e.js} +1 -1
- package/dist/bromcom-ui/{p-fa3d2e70.entry.js → p-1115af65.entry.js} +1 -1
- package/dist/bromcom-ui/{p-384aea58.entry.js → p-125213af.entry.js} +1 -1
- package/dist/bromcom-ui/{p-44b40c51.entry.js → p-172edb20.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c627dc35.entry.js → p-1a03334e.entry.js} +1 -1
- package/dist/bromcom-ui/p-1b60d9d1.entry.js +5 -0
- package/dist/bromcom-ui/{p-60a735c3.entry.js → p-1bb1ffce.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e204cc98.js → p-2135cb11.js} +1 -1
- package/dist/bromcom-ui/{p-e3306b8d.entry.js → p-236a8be4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-04b3a72c.entry.js → p-23d5fe0b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-802362ce.entry.js → p-250f52d3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b79132b8.entry.js → p-2d3c0790.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
- package/dist/bromcom-ui/p-3c8d24f0.entry.js +5 -0
- package/dist/bromcom-ui/{p-53a811a5.js → p-4958dd94.js} +1 -1
- package/dist/bromcom-ui/{p-75c01665.entry.js → p-4ee3fbcf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e4c6d517.entry.js → p-515f3937.entry.js} +1 -1
- package/dist/bromcom-ui/p-517bca05.entry.js +5 -0
- package/dist/bromcom-ui/{p-e6877526.entry.js → p-51f23b60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c0dd4386.entry.js → p-56f22945.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
- package/dist/bromcom-ui/{p-45903f79.entry.js → p-5fb75161.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2a3a7d9c.entry.js → p-603183c2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d700ef1c.entry.js → p-6cda636f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d61b862f.entry.js → p-6f5cff36.entry.js} +1 -1
- package/dist/bromcom-ui/p-73cacbce.entry.js +5 -0
- package/dist/bromcom-ui/{p-28e5998b.entry.js → p-7477b927.entry.js} +1 -1
- package/dist/bromcom-ui/p-7a34d5a4.entry.js +5 -0
- package/dist/bromcom-ui/{p-cccebf39.entry.js → p-7de55a4c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ad780428.entry.js → p-81927f68.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9acadcaa.js → p-8c4b256e.js} +1 -1
- package/dist/bromcom-ui/{p-21263f24.entry.js → p-99009fb3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8631b9b1.entry.js → p-a0352fdd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a3ffcb0d.js → p-a8d1397d.js} +1 -1
- package/dist/bromcom-ui/{p-a876e0ac.entry.js → p-ace65422.entry.js} +1 -1
- package/dist/bromcom-ui/p-b66edda8.js +5 -0
- package/dist/bromcom-ui/p-b9f0114c.entry.js +5 -0
- package/dist/bromcom-ui/{p-a032169e.entry.js → p-bfb83484.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a0a34ab8.entry.js → p-c1253548.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c86edbe.entry.js → p-c562e4c2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0843de18.entry.js → p-ca13fe84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5aee47f0.entry.js → p-cc270a88.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b1f8a594.entry.js → p-cc9ba164.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b83dab76.entry.js → p-d11eccc0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-154c6135.entry.js → p-d36f9b12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7671bea7.entry.js → p-d3d143b3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a74295dc.js → p-d9913ea9.js} +1 -1
- package/dist/bromcom-ui/p-dbde0dc8.entry.js +5 -0
- package/dist/bromcom-ui/p-de9979a6.entry.js +5 -0
- package/dist/bromcom-ui/{p-7d45b5b1.entry.js → p-df0a2839.entry.js} +1 -1
- package/dist/bromcom-ui/{p-77206708.entry.js → p-e73e6d2b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e372f7a8.entry.js → p-e8159c40.entry.js} +1 -1
- package/dist/bromcom-ui/p-eb809fa4.entry.js +5 -0
- package/dist/bromcom-ui/{p-567d720b.entry.js → p-f053ed80.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f164100f.entry.js → p-f4c06b78.entry.js} +1 -1
- package/dist/bromcom-ui/p-f69302a8.js +5 -0
- package/dist/bromcom-ui/{p-15a38991.entry.js → p-f7589887.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e391ba6.entry.js → p-f932d88a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-867ae7b5.entry.js → p-f9401599.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-4a6777c5.entry.js +0 -5
- package/dist/bromcom-ui/p-5d5c3b9d.entry.js +0 -5
- package/dist/bromcom-ui/p-8ede9b12.js +0 -5
- package/dist/bromcom-ui/p-9ad3f646.entry.js +0 -5
- package/dist/bromcom-ui/p-a3f82827.entry.js +0 -5
- package/dist/bromcom-ui/p-a9ce17d4.js +0 -5
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{h as e,r as c,c as o,H as l,g as s}from"./p-0ba73c30.js";import{I as t}from"./p-20e22beb.js";import{J as n}from"./p-9acadcaa.js";import"./p-a3ffcb0d.js";import"./p-626a65e9.js";import{s as i,G as r}from"./p-a74295dc.js";import{N as b}from"./p-e204cc98.js";import{S as d}from"./p-04c8b756.js";import{V as a}from"./p-53a811a5.js";import"./p-7e44e6b5.js";import{g as m,s as h}from"./p-7f0e7aff.js";import{p as w,d as f}from"./p-8c018ae0.js";import{B as p,a as u}from"./p-c9bd85e9.js";import{C as _}from"./p-bb698305.js";import{c as g}from"./p-d5b08a77.js";import"./p-3fac58f7.js";import{L as x}from"./p-8f394771.js";import"./p-5fd7a8b6.js";import{c as v}from"./p-be904c55.js";import{T as k}from"./p-a9ce17d4.js";import"./p-436364c8.js";import"./p-6f56f8ca.js";import"./p-128a5956.js";const y=({disabled:c,checked:o,readonly:l,required:s,indeterminate:t,hidden:n,captionType:i,_id:r})=>{const b=g("bcm-checkbox","bcm-checkbox__type-default","bcm-checkbox-size-medium",{error:i==p.Status.error,hidden:n,checked:o,disabled:c,required:s,readonly:l}),d=g("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+t,{"bcm-checkbox__label-icon-checked":o}),a=g("bcm-checkbox__label");return e("div",{class:b},e("input",{tabindex:"-1",id:r,type:"checkbox",checked:o,disabled:c,required:s,readonly:l}),e("label",{class:a,htmlFor:r},e("span",{class:d},e("bcm-icon",{icon:"far fa-check"}))))},z=({selected:c,total:o,found:l,multiple:s,variableText:t})=>(o=o||0,t=t?w(t,o):"items",e("footer",{class:"bcm-info-footer"},e("bcm-text",{scale:"size-1",color:"grey-8"},s&&c>0&&` ( ${c} selected ) `,` Total ${o} `,null!=l&&` / ${l} `,` ${t} found. `))),I=({item:c,treeview:o,highlight:l,checkboxes:s,size:t,selectedItem:n,openGroup:i,checkedItem:r,focusItem:b,searchIsOnlyChilds:a})=>{const m=c.items&&c.items.length>0;var h=d.htmlEntities(c.text);let w=[];if(l&&d.slugify(h).includes(d.slugify(l))&&(a&&(!a||m&&(o||"group"==c.type))||(h=d.highlight(h,l))),"group"!=c.type&&c.template){const e=c.template.replace(/\s/g,"").match(/\{{[^}}]+\}/g).map((e=>e.replace(/[{}]/g,""))),o=Object.keys(c.itemObject);w=e.filter((e=>o.includes(e)))}h=c.isHtmlContent?c.isHtmlContent:c.template&&w.length>0?d.templateParser(c.template,Object.assign(Object.assign({},c.itemObject),{text:h})):h;const f=!o&&"group"==c.type&&!c.clickable,p=c.disabled,u=c.readonly,_=()=>{c.open=c.isSearching,i(c.id)};return e("div",{id:c.id,hidden:c.hidden,tabindex:"-1","on-focus":e=>!f&&!p&&b(e),class:g("bcm-list__item","bcm-list__item-"+t,{"bcm-list__item--group":!o&&"group"==c.type,"bcm-list__item--readonly":u})},e("div",{class:g("bcm-list__item-content",!s&&c.selected&&"selected",{disabled:p})},o&&e("div",{class:"bcm-list__item-content-collapse-icon",onClick:()=>_()},m&&e("bcm-icon",{icon:g("fas fa-caret-"+(c.isSearching||c.open?"down":"right"))})),e("div",{class:g("bcm-list__item-content-text",{treeview:o}),onClick:e=>{var o;((o=e).path||o.composedPath()).filter((e=>e.attributes&&e.attributes.getNamedItem("unlinked")))[0]||(u&&_(),!f&&!p&&!u&&(s?r(c.id):n(c.id)))}},s&&(o||!o&&"group"!=c.type)&&e("div",{class:"bcm-list__item-content-text-checkbox"},e(y,{indeterminate:c.indeterminate,checked:c.checked,disabled:c.disabled})),e("span",Object.assign({class:"bcm-list__item-content-text-inner"},c.title&&{title:c.title},{innerHTML:h})))),(o||!o&&"group"==c.type)&&m&&e("div",{class:"bcm-list__item-childs"},(c.isSearching||c.open||!o&&"group"==c.type)&&c.items.map((c=>e(I,{highlight:l,item:c,searchIsOnlyChilds:a,treeview:o,checkboxes:s,size:t,selectedItem:n,checkedItem:r,openGroup:e=>i(e),focusItem:e=>b(e)})))))},C=({highlight:c,selectAllItem:o,bcmListContainer:l,treeview:s,checkboxes:t,checkAll:n,infoFooter:i,value:r,totalData:b,searchFound:d,variableText:a,_id:m,data:h,width:w,height:f,size:p,searchPlaceholder:u,selectedItem:_,openGroup:g,checkedItem:x,onScrollEvent:v,focusItem:k,items:y,searchable:C,searchIsOnlyChilds:j,emptyText:$,emptyIcon:O})=>{const S=!(s&&d>0||d>0);return e("div",{id:`bcm-list-${m}`,class:l,style:{"--height":f,"--width":w}},h&&C&&e("section",{class:"bcm-list__container-search"},e("bcm-search",{size:p,id:`bcm-list-${m}-search`,data:h,clearable:!0,placeholder:u,searchIsOnlyChilds:j})),e("main",{onScroll:e=>v(e),class:"scrolling"},n&&0!=d&&y&&y.length>0&&t&&S&&e("section",{class:"bcm-list__container-select-all"},e(I,{size:p,item:o,treeview:!1,checkboxes:!0,selectedItem:e=>_(e),checkedItem:e=>x(e),openGroup:e=>g(e),focusItem:e=>k(e)})),y.map((o=>e(I,{highlight:c,size:p,item:o,searchIsOnlyChilds:j,treeview:s,checkboxes:t,selectedItem:e=>_(e),checkedItem:e=>x(e),openGroup:e=>g(e),focusItem:e=>k(e)}))),(!y||0===y.length)&&0!=d&&e("section",{class:"bcm-list__container-no-data"},e("bcm-empty",{style:{height:"auto"},icon:O},e("span",{innerHTML:$||"No data"}))),0==d&&e("section",{class:"bcm-list__container-no-data"},e("bcm-empty",{style:{height:"auto"},icon:O},e("span",{innerHTML:$||"No Data Found"})))),i&&h&&h.length>0&&e(z,{selected:null==r?void 0:r.length,total:b,found:d,multiple:t,variableText:a}))},{state:j}=v({value:new Map}),$=(e,c,o)=>{let l=[];return e&&e.length>0&&(l=e.map((e=>Object.assign(Object.assign(Object.assign(Object.assign({itemObject:e},e),c),{parentId:i((()=>o),null),open:c.allOpen||e.open||!1}),(c.treeview||!c.treeview&&"group"==e.type)&&e.items&&e.items.length>0?{items:i((()=>$(e.items,c,e.id)),[])}:{items:[]})))),l},O=e=>i((()=>j.value.get(e)),{}),S=(e,c)=>{let o=0;return e.forEach((e=>{(c||!c&&"group"!=e.type)&&(o+=1),(c||!c&&"group"==e.type)&&e.items&&(o+=S(e.items,c))})),o},E=(e,c,o,l)=>{let s;s=o||O(e).dataSource,s&&s.forEach((o=>{null!=l?o.open=l:o.id===c?(o.open=!o.open,o.isSearching=o.open,!o.open&&o.items&&E(e,c,o.items,!1)):o.items&&E(e,c,o.items)}))},T=(e,c,o)=>{o&&o.forEach((o=>{o.id==c?(o.checked=!1,o.itemObject.checked=!1,L(e,o.parentId)):o.items&&T(e,c,o.items)}))},P=(e,c)=>{F(e,c)},F=(e,c,o)=>{let l;c=Array.isArray(c)?c:[c],l=o||O(e).dataSource,l&&l.forEach((o=>{c.includes(o.id)?(R(e,o),o.parentId&&L(e,o.parentId)):o.items&&F(e,c,o.items)}))},R=(e,c,o)=>{const l=O(e);if(l){const s=l.options.treeview;c&&((s||!s&&"group"!=c.type)&&(c.disabled||(c.checked=null!=o?o:!c.checked,c.itemObject.checked=c.checked,c.indeterminate=c.checked?"determinate":"uncheck")),c.items&&c.items.forEach((l=>{R(e,l,null==o?c.checked:o)})))}},L=(e,c,o)=>{let l;l=o||O(e).dataSource,l&&l.forEach((o=>{if(o.id==c){let c=!0,l=!0;o.items&&o.items.map((e=>{(e.checked||"indeterminate"===e.indeterminate)&&(l=!1),!e.checked&&(c=!1)}));const s=c||l?c?"determinate":"uncheck":"indeterminate";o.indeterminate=s,o.checked="determinate"==s,o.itemObject.checked=o.checked,o.parentId&&L(e,o.parentId)}else o.items&&L(e,c,o.items)}))},D=(e,c,o,l)=>{let s,t=[],n=[];return O(e).isSearchOtherTag=l,s=o||O(e).dataSource,s&&s.forEach((o=>{if(c){var s;o.hidden=!0;for(let e=0;e<c.length;e++)if(c[e].id===o.id){s=c[e];break}if(s&&(o.hidden=!1,O(e).isSearchOtherTag||(o.isSearching=!0),n.push(o),o.checked&&t.push(o),s.items)){const{checkedItems:c,visibledItems:i}=D(e,s.items,o.items,l);c&&(t=[...new Set([...t,...c])]),i&&(n=[...new Set([...n,...i])])}}else o.hidden=!1,o.items&&D(e,null,o.items),n.push(o),o.isSearching=!1})),{checkedItems:null!=t?t:[],visibledItems:null!=n?n:[]}},A=(e,c)=>{let o,l=null;return o=c||O(e).dataSource,o&&o.forEach((c=>{if(c.selected)l=c.itemObject;else if(c.items){const o=A(e,c.items);o&&(l=o)}})),l},N=(e,c)=>{let o,l=[],s=[];return o=c||O(e).dataSource,o&&o.forEach((c=>{var o;let t=[],n=[];if(c.checked&&(l.push(c.itemObject),n.push(Object.assign(Object.assign({},c.itemObject),{items:[]}))),c.items){const s=N(e,c.items);(null===(o=null==s?void 0:s.checkedList)||void 0===o?void 0:o.length)>0&&(l=[...l,...s.checkedList]),s.nestedResult.length>0&&(t=s.nestedResult)}t.length>0?(0==n.length&&n.push(Object.assign(Object.assign({},c.itemObject),{items:[]})),n[0].items=t,s.push(n[0])):n.length>0&&(n[0].items=t,s.push(n[0]))})),{checkedList:(null==l?void 0:l.length)>0?l:null,nestedResult:s}},G=(e,c,o)=>{let l,s=[];return l=o||O(e).dataSource,l&&l.forEach((o=>{if(c&&(o.id==c?(o.selected=!0,o.itemObject.selected=o.selected):o.selected&&(o.selected=!1,o.itemObject.selected=o.selected)),o.items){const l=G(e,c,o.items);(null==l?void 0:l.length)>0&&(s=[...s,...l])}o.selected&&s.push(o.itemObject)})),s&&s.length>0?s:null},H=(e,c)=>{let o;o=c||O(e).dataSource,o&&o.forEach((c=>{var o,l,s;c.checked&&(c.checked=!1),c.selected&&(c.selected=!1),c.indeterminate&&(c.indeterminate="uncheck"),(null===(o=c.itemObject)||void 0===o?void 0:o.checked)&&(c.itemObject.checked=!1),(null===(l=c.itemObject)||void 0===l?void 0:l.selected)&&(c.itemObject.selected=!1),(null===(s=c.itemObject)||void 0===s?void 0:s.indeterminate)&&(c.itemObject.indeterminate="uncheck"),c.items&&H(e,c.items)}))},V={setValue:e=>{const{id:c,dataSource:o,options:l}=e,{type:s,treeview:t,checkboxes:n,searchable:b,value:d,name:a,label:m,size:h,disabled:w,readonly:f,highlight:p,required:u,hidden:_,fullWidth:g,height:x,maxHeight:v,minHeight:k,width:y,infoFooter:z,variableText:I,template:C,allOpen:O,keyControl:E,checkAll:T,linkedComponent:P,placeholder:F,searchPlaceholder:R,searchIsOnlyChilds:L,clearable:D,caption:A,noCaption:N,captionType:G,captionError:H,placement:V}=l,M={size:h,checkboxes:n,template:C,allOpen:O,highlight:p,treeview:t},q={id:i((()=>c),r.UID),dataSource:o&&o.length>0&&$(o,M),options:{type:s,treeview:t,checkboxes:n,searchable:b,value:d,name:a,label:m,size:h,disabled:w,readonly:f,highlight:p,required:u,hidden:_,fullWidth:g,height:x,maxHeight:v,minHeight:k,width:y,infoFooter:z,variableText:I,template:C,allOpen:O,keyControl:E,checkAll:T,linkedComponent:P,placeholder:F,searchPlaceholder:R,searchIsOnlyChilds:L,clearable:D,caption:A,noCaption:N,captionType:G,captionError:H,placement:V},totalItems:(null==o?void 0:o.length)>0&&S(o,l.treeview),totalRoots:null==o?void 0:o.length};j.value.set(q.id,q)},removeValue:e=>{j.value.delete(e)},getValue:O,getData:e=>{let c=[];const o=O(e);if(o){const{dataSource:e}=o;c=e}return c},getDataPagination:(e,c=3,o)=>{let l=[];const s=O(e);if(s){const{dataSource:e}=s;l=o?e.filter((e=>o.indexOf(e.id)>-1)).slice(0,c):e.slice(0,c)}return l},openGroup:E,checkedItem:P,filterData:D,getSelected:A,getCheckedList:N,selectedItem:G,addChecked:(e,c)=>{O(e)&&c.forEach((c=>{P(e,c)}))},setClear:H,selectAll:(e,c)=>{const o=O(e).dataSource;o&&o.forEach((o=>{R(e,o,c)}))},removeOtherTags:(e,c,o)=>{let l;if(c=Array.isArray(c)?c:[c],o)l=o;else{const c=O(e);l=c.dataSource}l&&c.forEach((c=>{l.forEach((o=>{o.id==c?(o.checked=!1,o.itemObject.checked=!1):o.items&&T(e,c,o.items)}))}))},onRemoveItems:T,updateOptions:(e,c)=>{Object.keys(O(e).options).forEach((o=>{O(e).options[o]=c[o]}))},removeState:e=>Promise.resolve(j.value.delete(e))};class M extends class{constructor(e,c,o,l){this.elementName="",this.childElementName="",this.keyCode=e,this.element=c,this.elementName=o,this.childElementName=l}getKeyCode(){return this.keyCode}getElementName(){return this.elementName}getChildElementName(){return this.childElementName}getFocusedElementName(){return this.getElementName()+".focused"}getFocusedElement(){return this.element.querySelectorAll(this.getFocusedElementName())[0]||null}getFirstElement(){return this.element.querySelectorAll(this.getElementName())[0]||null}getNextElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.nextElementSibling)||this.getFirstElement()}getPreviousElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.previousElementSibling)||this.getFirstElement()}getChildElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.querySelectorAll(this.getChildElementName())[0])||null}getParentElement(e){if(e&&e)return e&&e.attributes["data-isroot"]?e:this.getParentElement(e.parentNode)}focusElementIsOpen(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.classList.contains("bcm-list__item--open"))||!1}isRootElement(){var e;return(null===(e=this.getFocusedElement())||void 0===e?void 0:e.querySelectorAll(this.getChildElementName()).length)>0}isRootElementIsOpen(){return this.getFocusedElement().classList.contains("bcm-list__item--open")}getFocusedChildElement(){var e;return(null===(e=this.getChildElement())||void 0===e?void 0:e.querySelectorAll(".focused")[0])||null}isLastElement(){var e;return null===(null===(e=this.getFocusedElement())||void 0===e?void 0:e.nextElementSibling)}focusParentElementFirstChild(){var e,c;return this.setFocus(null===(c=null===(e=this.getFocusedElement())||void 0===e?void 0:e.parentElement)||void 0===c?void 0:c.firstChild)}isFirstElement(){var e;return null===(null===(e=this.getFocusedElement())||void 0===e?void 0:e.previousElementSibling)}focusRootElement(){var e,c,o;return this.setFocus(null===(o=null===(c=null===(e=this.getFocusedElement())||void 0===e?void 0:e.parentElement)||void 0===c?void 0:c.parentElement)||void 0===o?void 0:o.firstChild)}nextRootElement(){var e,c,o;return this.setFocus(null===(o=null===(c=null===(e=this.getFocusedElement())||void 0===e?void 0:e.parentElement)||void 0===c?void 0:c.parentElement)||void 0===o?void 0:o.nextElementSibling)}findFocusElementParent(){return this.getFocusedElement().parentNode.querySelectorAll(".bcm-list__item--open")}getLastElement(){return this.element.querySelectorAll(this.getElementName())[this.element.querySelectorAll(this.getElementName()).length-1]||null}setFocus(e){e.focus()}}{constructor(e,c,o,l){super(e,c,".bcm-list__item",".bcm-list__item-childs"),this.isTreeview=!1,this.isCheckBoxes=!1,this.isTreeview=o,this.isCheckBoxes=l}keyUpControl(){this.isTreeview?this.keyUpTreeview():this.isFirstElement()?this.setFocus(this.getLastElement()):this.setFocus(this.getPreviousElement())}keyDownTreeView(){var e;if(this.isTreeview)if(this.isRootElement()&&this.isRootElementIsOpen()){const e=this.getChildElement();e&&this.setFocus(e.firstChild)}else this.isLastElement()&&this.getParentElement(this.getFocusedElement())?this.setFocus(null===(e=this.getParentElement(this.getFocusedElement()))||void 0===e?void 0:e.nextElementSibling):this.setFocus(this.getNextElement())}keyUpTreeview(){if(this.isFirstElement()){const e=this.getParentElement(this.getFocusedElement());this.setFocus(e)}else{const e=this.getPreviousElement();if(e)if(e.classList.contains("bcm-list__item--open")){const c=e.querySelectorAll(this.getChildElementName())[0];console.log({getChildElement:c}),this.setFocus(c.lastChild)}else this.setFocus(e)}}keyDownControl(){this.isTreeview?this.keyDownTreeView():this.isLastElement()?this.setFocus(this.getFirstElement()):this.setFocus(this.getNextElement())}keyRightControl(){if(this.isTreeview&&!this.isRootElementIsOpen()&&this.isRootElement()){const{id:e}=this.getFocusedElement();this.openGroup(e)}}keyLeftControl(){if(this.isTreeview&&this.isRootElementIsOpen()&&this.isRootElement()){const{id:e}=this.getFocusedElement();this.openGroup(e)}}keyEnterControl(){}keySpaceControl(){if(this.isCheckBoxes){const{id:e}=this.getFocusedElement();this.checkedItem(e)}}keyDown(){switch(this.getKeyCode()){case p.KeyCode.up:this.keyUpControl();break;case p.KeyCode.down:this.keyDownControl();break;case p.KeyCode.left:this.keyLeftControl();break;case p.KeyCode.right:this.keyRightControl();break;case p.KeyCode.enter:this.keyEnterControl();break;case p.KeyCode.space:this.keySpaceControl()}}keyUp(){}}class q{constructor(e,c,o,l,s){this.clearable=!1,this.containerId=e,this.values=c,this.listId=o,this.selectedOtherTag=l,this.clearable=s}getTooltip(e,c){return new k({message:c,targetId:e,placement:"bottom"})}tagHtmlTemplate(e,c=!1,o=!1){return`<span class="bcm-tag__content dismissable ${!o&&c&&(this.selectedOtherTag?"checkable checked":"")}">\n <span class="value">${e.text}</span>\n ${o?"":'\n <span class="right close-button" bcm-list-tag-dismiss >\n <bcm-icon icon="fal fa-times"></bcm-icon>\n </span>'}\n </span>`}getContainer(){return document.getElementById(this.containerId)}getContainerWidth(){let e=i((()=>document.getElementById(this.containerId).clientWidth),0);return e=(this.clearable?e-20:e)-20,[e<130?130:e,e]}isClickDismiss(e){return!!(e.path||e.composedPath&&e.composedPath()).find((e=>e.attributes&&e.attributes["bcm-list-tag-dismiss"]))}onClickControl(e,c,o=!1){let l="";this.isClickDismiss(e)?(this.onClickDismiss(c),l=o?`bcm-list-input-tag-${this.listId}-other-tag`:`list-${this.listId}-${c}`,this.getTooltip(l,"").hide()):o?this.onClickOtherTag(c):this.onClickTag(c)}calculateTags(){const e=this.getContainerWidth(),c=this.getContainer();if(c)if(this.values&&this.values.length>0){if(e[0]>0&&c){c.innerHTML="",this.values.slice(0,50).map((e=>{const o=document.createElement("div");o.classList.add("bcm-tag"),o.id=`list-${this.listId}-${e.id}`,o.onmouseenter=()=>this.getTooltip(`list-${this.listId}-${e.id}`,e.tagTitle||e.text||"").show(),o.onmouseleave=()=>this.getTooltip(`list-${this.listId}-${e.id}`,e.tagTitle||e.text||"").hide(),o.dataset.id=e.id,o.onclick=c=>this.onClickControl(c,e.id),o.innerHTML=this.tagHtmlTemplate(Object.assign(Object.assign({},e),{text:d.textLimitter(e.text,10)})),c.appendChild(o)}));let o=c.querySelectorAll(".bcm-tag"),l=[],s=[];const t=()=>{const e=c.querySelectorAll(".bcm-tag");1===s.length&&1===(null==e?void 0:e.length)&&(s[0].innerHTML=this.tagHtmlTemplate({text:"+1"},!1,!0))};let n=Array.from(o).reduce(((c,o)=>{const n=o.clientWidth>50?o.clientWidth:50;return n>0&&c+n+10<e[0]?(c+=n+10,s.push(o),!(n>0&&c+n+10<e[0])&&e[1]<70&&t()):(l.push(o),o.remove()),c}),0);const r=this.values.slice(s.length),b=c.lastElementChild,a=e=>{const{count:c,width:o}=e;return c>999?"999+"+w("item",c):o>100?`${c} `+w("item",c)+" selected":o<100?`+${c<10?c:"9"}`:void 0};if(l&&l.length>0&&b&&b.id!==`bcm-list-input-tag-${this.listId}-other-tag`&&(l.push(b),l.length>0)){const o={id:`bcm-list-input-tag-${this.listId}-other-tag`,text:a({count:r.length+1,width:e[1]}),title:i((()=>l.map((e=>this.values.find((c=>c.id==e.dataset.id)))).slice(0,15).map((e=>d.textLimitter(e.tagTitle||e.text,40,!0))).toString().split(",").join("\r\n")+(l.length>15?"\r\n...":"")),"...")};b.remove(),s=s.filter((e=>e.id!==b.id));const t=this.values.filter((e=>!s.find((c=>c.dataset.id==e.id)))).map((e=>e.id)),n=document.createElement("div"),m=t.join(","),h=0===s.length;n.classList.add("bcm-tag"),!h&&n.classList.add("bcm-tag--other"),n.id=o.id,o.title&&(n.onmouseenter=()=>this.getTooltip(o.id,o.title).show(),n.onmouseleave=()=>this.getTooltip(o.id,o.title).hide()),n.onclick=e=>this.onClickControl(e,m,!h),n.innerHTML=this.tagHtmlTemplate(o,!0,h),n.dataset.ids=t.join(","),c.appendChild(n)}const m=document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`),h=m?m.clientWidth&&m.clientWidth<50?50:m.clientWidth:200;if(Math.floor(e[0]-n)>h&&m){const e=this.values.find((e=>e.id==m.dataset.ids.split(",")[0])),o=document.createElement("div");o.classList.add("bcm-tag"),o.id=`list-${this.listId}-${e.id}`,o.onmouseenter=()=>this.getTooltip(`list-${this.listId}-${e.id}`,(null==e?void 0:e.title)||"").show(),o.onmouseleave=()=>this.getTooltip(`list-${this.listId}-${e.id}`,(null==e?void 0:e.title)||"").hide(),o.dataset.id=e.id,o.onclick=c=>this.onClickControl(c,null==e?void 0:e.id),o.innerHTML=this.tagHtmlTemplate(Object.assign(Object.assign({},e),{text:d.textLimitter(e.text,10)})),document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`).remove(),c.appendChild(o)}}}else c.innerHTML=""}}var W=function(e,c,o,l){var s,t=arguments.length,n=t<3?c:null===l?l=Object.getOwnPropertyDescriptor(c,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,c,o,l);else for(var i=e.length-1;i>=0;i--)(s=e[i])&&(n=(t<3?s(n):t>3?s(c,o,n):s(c,o))||n);return t>3&&n&&Object.defineProperty(c,o,n),n};const U=class{constructor(e){c(this,e),this.bcmChecklist=o(this,"bcm-checklist",7),this.bcmSelected=o(this,"bcm-selected",7),this.change=o(this,"bcm-change",7),this.debounce=null,this._id=r.UID(),this.type=u.ListType.listbox,this.treeview=!1,this.checkboxes=!1,this.searchable=!1,this.value=null,this.size=u.Size.medium,this.disabled=!1,this.readonly=!1,this.highlight=!1,this.required=!1,this.hidden=!1,this.fullWidth=!1,this.height="256px",this.maxHeight="500px",this.minHeight="150px",this.width="256px",this.infoFooter=!1,this.variableText="item",this.allOpen=!1,this.keyControl=!1,this.checkAll=!0,this.stopDeepClean=!1,this.isOpen=!1,this.calculatedViewport=!1,this.isSelectedOther=!1,this.isHaveOtherTag=!1,this.placeholder="Choose an option",this.searchPlaceholder="Search",this.searchIsOnlyChilds=!1,this.clearable=!1,this.noCaption=!1,this.captionType=u.Status.default,this.emptyIcon="fad fa-folder-open",this.tick={},this.totalData=0,this.totalRootData=0,this.limit=20,this.searchResultLimit=20,this.searchFound=null,this.returnFilterData={},this.returnOtherData={},this.options={rootMargin:"30px"},this.tagContainerWidth=0,this.selectAllItem={id:"select-all",text:"Select All",value:"select-all",checked:!1,disabled:!1,icon:"",status:u.Status.default,indeterminate:"uncheck"},this.placement=u.Placement["bottom-start"],this.data=[],this.debounceHandler=r.debounceInput((()=>this.listenResize()),300,!1)}connectedCallback(){"256px"!=this.height&&(this.limit=this.height.indexOf("px")>-1?Math.floor(+this.height.replace("px","")/10):Math.floor(+window.innerHeight/10),this.searchResultLimit=this.limit,this.markForCheck())}componentWillRender(){this.calculateLocation()}componentShouldUpdate(e,c,o){Object.keys(this.getOptions()).indexOf(o)>-1&&e!==c&&this.updateOptions()}async componentDidLoad(){if(await this.initState(),"select"==this.type||"autocomplete"==this.type||this.linkedComponent){const e=this.el.querySelector(`#bcm-list-${this._id}`);e&&document.body.appendChild(e)}}tagCalculator(){if(this.checkboxes&&("select"==this.type||"autocomplete"==this.type)){const e=new q(`bcm-list-input-tag-container-${this._id}`,this.value,this._id,this.isSelectedOther,this.clearable);e.calculateTags();const c=e=>"string"==typeof e?e.split(","):[e],o=()=>{if("autocomplete"==this.type){const e=this.getAutoCompleteInput();e&&e.handleClear(!1)}};e.onClickOtherTag=async e=>{this.disabled||(o(),this.isSelectedOther?await this.unSelectOther():(await this.onClearSearch(),this.isSelectedOther=!0,this.filterOtherList(c(e)),this.isOpen=!0),this.onSelectSearch())},e.onClickTag=()=>{o(),this.onSelectSearch(),this.unSelectOther()},e.onClickDismiss=async e=>{var o;this.disabled||(this.isSelectedOther&&await this.unSelectOther(),c(e).length>1?V.removeOtherTags(this._id,c(e)):V.checkedItem(this._id,c(e)[0]),this.value=(await this.getCheckedList()).checkedList,this.handleIndeterminate((null===(o=this.value)||void 0===o?void 0:o.length)||0,this.totalData))}}}disconnectedCallback(){if(this.isOpen=!1,!this.stopDeepClean&&(V.removeState(this._id),this.el.innerHTML="","select"==this.type||"autocomplete"==this.type||this.linkedComponent)){const e=document.querySelector(`#bcm-list-${this._id}`);e&&(e.remove(),this.el.remove())}}watchId(e,c){V.removeState(c),this.initState()}handleValueChange(e,c){var o;r.objectIsEmpty(this.returnFilterData)&&this.handleIndeterminate((null===(o=this.value)||void 0===o?void 0:o.length)||0,this.totalData),this.checkboxes?a.compareTwoArrayIsSame(e,c)||(this.bcmChecklist.emit(this.value),this.change.emit(this.value)):(null==e?void 0:e.text)!=(null==c?void 0:c.text)&&this.change.emit(this.value),this.tagCalculator()}watchReturnFilterData(e){var c;const{checkedItems:o,visibledItems:l}=e;o&&l?this.handleIndeterminate(o.length,l.length):this.handleIndeterminate((null===(c=this.value)||void 0===c?void 0:c.length)||0,this.totalData)}handleOtherSelected(e){var c;const o=null===(c=document.getElementById(`bcm-list-input-tag-${this._id}-other-tag`))||void 0===c?void 0:c.querySelector(".bcm-tag__content");o&&(!0===e?o.classList.add("checkable","checked"):o.classList.remove("checkable","checked"))}async handleOpen(){this.isOpen?(this.calculateLocation(),this.onSelectSearch()):(await f(100),this.unSelectOther())}async dataChanged(e,c){a.compareTwoArrayIsSame(e,c)||await this.initState()}isIntersecting(e){const c=null==e?void 0:e.target;c&&c.id===this._id&&this.listenResize()}handleSlotItems(e){var c;(null===(c=null==e?void 0:e.detail)||void 0===c?void 0:c.length)>0&&(this.data=e.detail)}handleChange(e){e.target.id==`bcm-list-input-tag-container-${this._id}-autocomplete-input`&&e.stopImmediatePropagation()}handleResize(){this.calculateLocation(),this.debounceHandler()}handleWheel(e){if(this.isOpen){const c=document.querySelector(`#bcm-list-${this._id}`);c&&r.findEventPath(e,c)?("select"==this.type||"autocomplete"==this.type||this.linkedComponent)&&this.calculateLocation():this.hide()}}handleClick(e){var c;if(this.disabled)return;const o=document.querySelector(`#bcm-list-${this._id}`),l=r.findEventPath(e,this.el)||o&&r.findEventPath(e,o);if(l&&(null!==this.debounce&&(e.preventDefault(),e.stopPropagation(),clearTimeout(this.debounce),this.debounce=null),this.debounce=setTimeout((()=>{this.debounce=null}),300)),!l&&"autocomplete"==this.type){const e=this.getAutoCompleteInput();e&&e.setValue(this.checkboxes?"":(null===(c=this.value)||void 0===c?void 0:c.text)||"")}const s=r.findEventPathWithKey(e,"className",["bcm-tag"]),t=r.findEventPathWithKey(e,"className",["bcm-tag bcm-tag--other"]),n=r.findEventPathWithKey(e,"id",[`bcm-list-input-${this._id}`,`bcm-list-label-${this._id}`]),i=r.findEventPathWithKey(e,"className",["right close-button"]);n&&!i&&"autocomplete"!=this.type&&(this.isOpen=!(!s&&!t&&this.isOpen)),o&&this.isOpen&&(o.contains(e.target)||this.el.contains(e.target)||(this.isOpen=!1))}bcmOnSearchClear(e){var c,o;"autocomplete"==this.type&&((null===(c=null==e?void 0:e.target)||void 0===c?void 0:c.id)!==`bcm-list-${this._id}-search`&&(null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||e.detail&&this.setClear())}bcmOnSearch(e){var c,o,l,s,t,n;(null===(c=null==e?void 0:e.target)||void 0===c?void 0:c.id)!==`bcm-list-${this._id}-search`&&(null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||(this.searchGetParents=i((()=>{var c;return null===(c=e.detail)||void 0===c?void 0:c.parentIndex}),null),this.searchResultLimit=10,this.searchFound=null!=(null===(l=e.detail)||void 0===l?void 0:l.matching)?null===(s=e.detail)||void 0===s?void 0:s.matching.length:null,this.returnFilterData=V.filterData(this._id,null===(t=e.detail)||void 0===t?void 0:t.nestedResult),this.searchFound>0&&this.highlight&&(this.highlightText=null===(n=e.detail)||void 0===n?void 0:n.value),"autocomplete"==this.type&&(this.isOpen=!0),e.detail.result||("autocomplete"==this.type&&(this.isOpen=!1),this.isSelectedOther?this.filterOtherList(this.otherTagIds()):(this.returnFilterData={},V.filterData(this._id,null)),this.searchResultLimit=null,this.highlightText=null),this.markForCheck())}handleKeyDown(e){const c=e.keyCode||e.which;if(c===u.KeyCode.escape&&this.isOpen&&(this.isOpen=!1,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),this.keyControl){const e=new M(c,this.el,this.treeview,this.checkboxes);e.openGroup=e=>{this.openGroup(e)},e.checkedItem=e=>{this.checkedItem(e)},e.keyDown()}}handleKeyUp(e){if(this.keyControl&&r.findEventPath(e,this.el)){const e=document.getElementById(`bcm-list-${this._id}`);if(e){const c=e.querySelectorAll(".bcm-list__item.focused");if(c.length>0){const o=e.querySelector("main"),l=c[0].offsetHeight,s=o.offsetHeight,t=c[0].offsetTop;t>s&&(o.scrollTop=t-s/2+l/2),t<s&&(o.scrollTop=t-s/2-l/2)}}}}async set(e){e?(Array.isArray(e)&&this.addChecked(e),"string"!=typeof e&&"number"!=typeof e||this.selectedItem(e)):this.setClear()}async get(){var e,c;return this.value?this.checkboxes?null===(c=null===(e=await this.getCheckedList())||void 0===e?void 0:e.checkedList)||void 0===c?void 0:c.map((e=>e.id)):this.value.id:null}async getCheckedList(){return Promise.resolve(V.getCheckedList(this._id))}async getSelected(){return Promise.resolve(V.getSelected(this._id))}async getValue(){return Promise.resolve(this.value)}async addChecked(e=[],c=!1,o=!0){return e&&e.length>0&&(c||(V.setClear(this._id),await f(10)),await V.addChecked(this._id,e),await f(10),o&&(this.value=(await this.getCheckedList()).checkedList),this.markForCheck()),Promise.resolve(this.value)}async selected(e){return!!e&&Promise.resolve(await this.selectedItem(e))}async setClear(e){return V.setClear(this._id),this.value=null,this.inputText="",this.isOpen=!1,this.selectAllItem.indeterminate="uncheck",this.tagCalculator(),this.markForCheck(),e&&(e.stopPropagation(),e.preventDefault()),await f(10),Promise.resolve()}async resetCaption(){return await f(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await f(10),Promise.resolve()}async show(){return this.isOpen=!0,Promise.resolve()}async hide(){return this.isOpen=!1,Promise.resolve()}updateOptions(){V.updateOptions(this._id,this)}handleIndeterminate(e,c){this.selectAllItem=Object.assign(Object.assign({},this.selectAllItem),{indeterminate:this.checkboxes&&e>0?e===c?"check":"indeterminate":"uncheck",checked:!!(this.checkboxes&&e>0)&&e===c})}listenResize(){this.tagCalculator(),this.calculateLocation(),this.markForCheck()}async unSelectOther(){return await this.onClearSearch(),this.isSelectedOther=!1,this.searchFound=null,this.returnFilterData={},V.filterData(this._id,null),await f(10),Promise.resolve()}async onClearSearch(){const e=document.getElementById(`bcm-list-${this._id}-search`);return e&&await e.handleClear(),Promise.resolve()}async onSelectSearch(){const e=document.getElementById(`bcm-list-${this._id}-search`);e&&(await f(100),e.onBcmFocus(),e.onBcmSelect())}otherTagIds(){const e=document.querySelector(`#bcm-list-input-tag-${this._id}-other-tag`);if(e)return e.getAttribute("data-ids").split(",")}async filterOtherList(e){const c=(await this.getCheckedList()).nestedResult,o=r.convertIdsToNestedData(e,c);this.returnFilterData=await V.filterData(this._id,o,null,!0),this.searchFound=e.length||0,this.limit=500,this.searchGetParents=null,await f(1e3),this.markForCheck()}async initState(){var e,c,o;this.onClearSearch(),await V.setValue({id:this._id,dataSource:this.data&&i((()=>"string"==typeof this.data?JSON.parse(this.data):this.data),[]),options:this});const{totalRoots:l,totalItems:s}=V.getValue(this._id);if(this.totalData=s,this.totalRootData=l,this.value=this.checkboxes?(await this.getCheckedList()).checkedList:V.selectedItem(this._id)?V.selectedItem(this._id)[0]:null,this.checkboxes||(this.inputText=(null===(e=this.value)||void 0===e?void 0:e.text)||null),this.checkboxes&&(null===(c=this.value)||void 0===c?void 0:c.length)>0){const e=[];this.value.forEach((c=>{c.items&&0!==c.items.length||e.push(c.id)})),await this.addChecked(e,!1,!1)}await this.handleIndeterminate(null===(o=this.value)||void 0===o?void 0:o.length,this.totalData),await this.markForCheck()}async markForCheck(){await f(10),this.tick=r.UID()}getOptions(){return i((()=>V.getValue(this._id).options),{})}getItems(){return this.isSelectedOther?this.returnFilterData.checkedItems:i((()=>V.getData(this._id)),[])}getLimitedItems(e){return i((()=>V.getDataPagination(this._id,this.searchResultLimit||this.limit,e)),[])}openGroup(e){V.openGroup(this._id,e),this.markForCheck()}focusItem(e){if(e.target.classList.contains("bcm-list__item")){const c=e.target,o=document.getElementById(`bcm-list-${this._id}`);if(o&&o.querySelectorAll(".bcm-list__item").length>0){const e=o.querySelector(".bcm-list__item.focused");e&&e.classList.remove("focused"),c.classList.add("focused")}}}async selectedItem(e){var c;if(!this.checkboxes&&(this.value=V.selectedItem(this._id,e)?V.selectedItem(this._id,e)[0]:null,this.inputText=(null===(c=this.value)||void 0===c?void 0:c.text)||null,this.isOpen=!1,this.markForCheck(),"autocomplete"==this.type&&this.value)){const e=this.getAutoCompleteInput();e&&setTimeout((()=>{var c;e.setValue((null===(c=this.value)||void 0===c?void 0:c.text)||""),this.isOpen=!1}),100)}return Promise.resolve(this.value)}async checkedItem(e){"select-all"===e?V.selectAll(this._id,!this.selectAllItem.checked):V.checkedItem(this._id,e),this.value=(await this.getCheckedList()).checkedList,this.changeVisibleCheckeds(),this.markForCheck()}changeVisibleCheckeds(){const{visibledItems:e}=this.returnFilterData;this.returnFilterData={visibledItems:e,checkedItems:e&&e.filter((e=>e.checked))||[]}}getAutoCompleteInput(){return document.getElementById(`bcm-list-input-tag-container-${this._id}-autocomplete-input`)}dataScrollEvent(e){let c=0,o=new IntersectionObserver((e=>{0===c&&(c++,e[0].isIntersecting&&(this.limit+=15,this.searchResultLimit+=15,o.disconnect(),o=null))}),this.options);o.observe(e.target.lastElementChild)}async calculateLocation(){var e,c;if("select"==this.type||"autocomplete"==this.type||this.linkedComponent){const l=document.getElementById(`bcm-list-${this._id}`);var o=this.placement;const s=document.getElementById(this.linkedComponent?this.linkedComponent:`bcm-list-input-${this._id}`);if(l&&s){m(l,s,o,(e=>o=e)),await f(10);let t=h(o,s),n=0,i=0;if(this.linkedComponent){const o=document.getElementById(this.linkedComponent);if(o){if(!o.noCaption){const c=(null===(e=o.shadowRoot)||void 0===e?void 0:e.querySelector(".bcm-caption-area"))||o.querySelector(".bcm-caption-area");c&&(n=c.offsetHeight||c.clientHeight)}const l=(null===(c=o.shadowRoot)||void 0===c?void 0:c.querySelector(".bcm-label"))||o.querySelector(".bcm-label");l&&(i=l.offsetHeight||l.clientHeight)}}l.style.width=this.fullWidth?s.offsetWidth+"px":this.width||"auto",l.style.height=this.height.indexOf("%")>-1?.01*b.toNumber(this.height)*window.innerHeight-t[0]-50+"px":this.height,l.style.minHeight=this.minHeight;const r="top"==o.split("-")[0]?window.innerHeight-(window.innerHeight-t[0])-50:window.innerHeight-t[0]-50;l.style.maxHeight=this.maxHeight.indexOf("%")>-1?.01*b.toNumber(this.maxHeight)*r+"px":b.toNumber(this.maxHeight)<r?this.maxHeight:r+"px",m(l,s,o,(e=>o=e)),await f(10),t=h(o,s),l.style.top=("top"==o.split("-")[0]?t[0]-l.offsetHeight+i:t[0]-n)+"px",l.style.left="end"==o.split("-")[1]?t[1]-l.offsetWidth+"px":t[1]+"px",l.classList.toggle("bcm-list--top","top"==o.split("-")[0]),this.calculatedViewport=!0}}}render(){const{checkboxes:c,treeview:o,label:s,size:t,disabled:n,readonly:i,required:r,hidden:b,fullWidth:d,searchable:a}=this.getOptions(),m=g("bcm-list",`bcm-list__size-${t}`,`bcm-list__${this.type}`,"large"===t?"size-3":"size-2",{error:this.captionType==u.Status.error,"full-width":d,"bcm-list__linked":this.linkedComponent,hidden:b,readonly:i,disabled:n}),h=g("bcm-list__container",this.linkedComponent?"bcm-list__type-linked-component":`bcm-list__type-${this.type}`,{"is-open":this.isOpen&&this.calculatedViewport,error:this.captionType==u.Status.error,"full-width":d,hidden:b,readonly:i,disabled:n}),w=g("bcm-list__input"),f="select"==this.type||"autocomplete"==this.type||this.linkedComponent;return e(l,{class:m,tabindex:"0",style:{"--width":d?"100%":this.width,"--height":f?"100%":this.height,"--max-height":f?"inherit":this.maxHeight,"--min-height":f?"inherit":this.minHeight}},e("div",{id:`bcm-list-label-${this._id}`,class:"bcm-list__label"},s&&e("div",null,e(x,{size:this.size,type:this.captionType,value:s,required:r,htmlFor:this._id}))),"select"==this.type&&e("div",{id:`bcm-list-input-${this._id}`,class:w},e("span",{class:g("bcm-list__input-container",{"type-single":!c,"value-empty":!this.value})},this.checkboxes&&e("span",{id:`bcm-list-input-tag-container-${this._id}`,class:"bcm-list__input-tag-container"}),this.checkboxes&&!this.value&&e("span",{class:"bcm-list__input-placeholder"},this.placeholder),!this.checkboxes&&(this.value?this.inputText:e("span",{class:"bcm-list__input-placeholder"},this.placeholder))),e("span",{class:g("bcm-list__input-buttons",{disabled:n})},this.clearable&&this.value&&e("div",{class:"bcm-list__input-buttons-button"},e("bcm-icon",{icon:"fal fa-times",onClick:e=>!n&&this.setClear(e)})),e("div",{class:`bcm-list__input-buttons-button caret-is ${this.isOpen&&this.calculatedViewport&&"caret-is-open"}`},e("bcm-icon",{icon:"far fa-angle-down"})))),"autocomplete"===this.type&&e("div",{id:`bcm-list-input-${this._id}`,class:g(w,{"bcm-list__input-autocomplete":"autocomplete"==this.type})},e("span",{class:"bcm-list__input-container",id:`bcm-list-input-tag-container-${this._id}`},this.checkboxes&&e("span",{class:"bcm-list__input-tag-container",id:`bcm-list-input-tag-container-${this._id}-autocomplete`}),e("bcm-search",{id:`bcm-list-input-tag-container-${this._id}-autocomplete-input`,class:"bcm-list__autocomplete",data:this.data,clearable:!0,"full-width":!0,"no-caption":!0,placeholder:this.placeholder}))),e(C,{highlight:this.highlightText,searchable:"autocomplete"!=this.type&&a,bcmListContainer:h,checkboxes:c,treeview:o,infoFooter:this.infoFooter,value:this.value,totalData:this.totalData,searchFound:this.searchFound,variableText:this.variableText,searchPlaceholder:this.searchPlaceholder,searchIsOnlyChilds:this.searchIsOnlyChilds,_id:this._id,checkAll:this.checkAll,data:this.getItems(),width:this.width,height:this.height,size:this.size,selectAllItem:this.selectAllItem,onScrollEvent:e=>this.dataScrollEvent(e),items:this.getLimitedItems(this.searchGetParents),selectedItem:e=>this.selectedItem(e),checkedItem:e=>this.checkedItem(e),openGroup:e=>this.openGroup(e),focusItem:e=>this.focusItem(e),emptyText:this.emptyText,emptyIcon:this.emptyIcon}),e(_,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return s(this)}static get watchers(){return{_id:["watchId"],value:["handleValueChange"],returnFilterData:["watchReturnFilterData"],isSelectedOther:["handleOtherSelected"],isOpen:["handleOpen"],data:["dataChanged"]}}};W([t()],U.prototype,"el",void 0),W([n("data")],U.prototype,"data",void 0),W([n("data",!0)],U.prototype,"dataChanged",null),U.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}: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-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}: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-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}: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}: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-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}.bcm-list{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:14px;line-height:calc(14px + 8px)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:16px;line-height:calc(16px + 8px)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);background-color:var(--bcm-new-ds-color-white)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;padding-top:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{scroll-behavior:smooth;padding:0 8px;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-color-red-6)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800;transition:visibility 0s linear 400ms, opacity 100ms, transform 200ms}.bcm-list__container.bcm-list__type-linked-component.bcm-list--top,.bcm-list__container.bcm-list__type-select.bcm-list--top,.bcm-list__container.bcm-list__type-autocomplete.bcm-list--top{transform:translateY(-10%)}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{opacity:1;transform:translateY(0);visibility:visible;transition:visibility 0s linear 0s, opacity 100ms, transform 100ms}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-white);user-select:none;cursor:pointer;padding:0 8px;height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{width:100%}.bcm-list__input-container.value-empty{color:var(--bcm-color-grey-6)}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:var(--bcm-color-grey-6)}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px;min-width:40px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:4px;font-size:16px;color:var(--bcm-new-ds-color-slate-500)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-color-red-6)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-new-ds-color-blue-500);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item{padding:2px 0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;border-radius:4px;padding:0;padding-left:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-50);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);user-select:none;cursor:not-allowed}.bcm-list__item-content.selected{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item-content.selected:hover:not(.disabled){color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item-content:hover:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item-content:active:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item-content-collapse-icon{width:16px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:16px}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text.treeview{padding:8px 0}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{padding:2px 0 2px 8px;font-size:10px;line-height:calc(10px + 8px)}.bcm-list__item-small .bcm-list__item-content-text{padding:3px 4px}.bcm-list__item-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__item-medium .bcm-list__item-content-text{padding:6px 4px}.bcm-list__item-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-list__item-large .bcm-list__item-content-text{padding:9px 4px}.bcm-list__item--readonly:focus>.bcm-list__item-content:not(.disabled),.bcm-list__item--readonly.focused>.bcm-list__item-content:not(.disabled){color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-color-grey-7)}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-new-ds-color-slate-100);color:var(--bcm-new-ds-color-slate-600);border-radius:0 0 4px 4px}';export{U as bcm_list}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import"./p-7e44e6b5.js";import{S as t}from"./p-04c8b756.js";import{a as e}from"./p-c9bd85e9.js";import{C as n}from"./p-a3ffcb0d.js";import"./p-626a65e9.js";import{G as o}from"./p-a74295dc.js";import"./p-e204cc98.js";import"./p-53a811a5.js";function i(t){return t.split("-")[0]}function r(t){return t.split("-")[1]}function s(t){return["top","bottom"].includes(i(t))?"x":"y"}function a(t){return"y"===t?"height":"width"}function c(t,e,n){let{reference:o,floating:c}=t;const l=o.x+o.width/2-c.width/2,f=o.y+o.height/2-c.height/2,u=s(e),d=a(u),h=o[d]/2-c[d]/2,m="x"===u;let p;switch(i(e)){case"top":p={x:l,y:o.y-c.height};break;case"bottom":p={x:l,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-c.width,y:f};break;default:p={x:o.x,y:o.y}}switch(r(e)){case"start":p[u]-=h*(n&&m?-1:1);break;case"end":p[u]+=h*(n&&m?-1:1)}return p}function l(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function f(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function u(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:p=0}=e,w=l(p),y=a[m?"floating"===h?"reference":"floating":h],g=f(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(y)))||n?y:y.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===h?{...s.floating,x:o,y:i}:s.reference,offsetParent:await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),strategy:c}):s[h]);return{top:g.top-x.top+w.top,bottom:x.bottom-g.bottom+w.bottom,left:g.left-x.left+w.left,right:x.right-g.right+w.right}}const d=Math.min,h=Math.max;function m(t,e,n){return h(t,d(e,n))}const p={left:"right",right:"left",bottom:"top",top:"bottom"};function w(t){return t.replace(/left|right|bottom|top/g,(t=>p[t]))}const y={start:"end",end:"start"};function g(t){return t.replace(/start|end/g,(t=>y[t]))}const x=["top","right","bottom","left"],b=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:c,rects:l,initialPlacement:f,platform:d,elements:h}=e,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",flipAlignment:b=!0,...v}=t,A=i(o),k=[f,...y||(A!==f&&b?function(t){const e=w(t);return[g(t),e,g(e)]}(f):[w(f)])],j=await u(e,v),$=[];let R=(null==(n=c.flip)?void 0:n.overflows)||[];if(m&&$.push(j[A]),p){const{main:t,cross:e}=function(t,e,n){void 0===n&&(n=!1);const o=r(t),i=s(t),c=a(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[c]>e.floating[c]&&(l=w(l)),{main:l,cross:w(l)}}(o,l,await(null==d.isRTL?void 0:d.isRTL(h.floating)));$.push(j[t],j[e])}if(R=[...R,{placement:o,overflows:$}],!$.every((t=>t<=0))){var P,C;const t=(null!=(P=null==(C=c.flip)?void 0:C.index)?P:0)+1,e=k[t];if(e)return{data:{index:t,overflows:R},reset:{placement:e}};let n="bottom";switch(x){case"bestFit":{var M;const t=null==(M=R.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0].placement;t&&(n=t);break}case"initialPlacement":n=f}if(o!==n)return{reset:{placement:n}}}return{}}}};function v(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return x.some((e=>t[e]>=0))}const k=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:o}=t;switch(e){case"referenceHidden":{const e=v(await u(t,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=v(await u(t,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}},j=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=t,d={x:n,y:o},h=await u(e,f),p=s(i(r)),w="x"===p?"y":"x";let y=d[p],g=d[w];a&&(y=m(y+h["y"===p?"top":"left"],y,y-h["y"===p?"bottom":"right"])),c&&(g=m(g+h["y"===w?"top":"left"],g,g-h["y"===w?"bottom":"right"]));const x=l.fn({...e,[p]:y,[w]:g});return{...x,data:{x:x.x-n,y:x.y-o}}}}};function $(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function R(t){if(null==t)return window;if(!$(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function P(t){return R(t).getComputedStyle(t)}function C(t){return $(t)?"":t?(t.nodeName||"").toLowerCase():""}function M(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function T(t){return t instanceof R(t).HTMLElement}function O(t){return t instanceof R(t).Element}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof R(t).ShadowRoot||t instanceof ShadowRoot)}function H(t){const{overflow:e,overflowX:n,overflowY:o}=P(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function L(t){return["table","td","th"].includes(C(t))}function B(t){const e=/firefox/i.test(M()),n=P(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function S(){return!/^((?!chrome|android).)*safari/i.test(M())}const z=Math.min,E=Math.max,F=Math.round;function G(t,e,n){var o,i,r,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const a=t.getBoundingClientRect();let c=1,l=1;e&&T(t)&&(c=t.offsetWidth>0&&F(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&F(a.height)/t.offsetHeight||1);const f=O(t)?R(t):window,u=!S()&&n,d=(a.left+(u&&null!=(o=null==(i=f.visualViewport)?void 0:i.offsetLeft)?o:0))/c,h=(a.top+(u&&null!=(r=null==(s=f.visualViewport)?void 0:s.offsetTop)?r:0))/l,m=a.width/c,p=a.height/l;return{width:m,height:p,top:h,right:d+m,bottom:h+p,left:d,x:d,y:h}}function I(t){return(e=t,(e instanceof R(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function V(t){return O(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function X(t){return G(I(t)).left+V(t).scrollLeft}function Y(t,e,n){const o=T(e),i=I(e),r=G(t,o&&function(t){const e=G(t);return F(e.width)!==t.offsetWidth||F(e.height)!==t.offsetHeight}(e),"fixed"===n);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==C(e)||H(i))&&(s=V(e)),T(e)){const t=G(e,!0);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=X(i));return{x:r.left+s.scrollLeft-a.x,y:r.top+s.scrollTop-a.y,width:r.width,height:r.height}}function q(t){return"html"===C(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||I(t)}function J(t){return T(t)&&"fixed"!==P(t).position?function(t){let{offsetParent:e}=t,n=t,o=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let i=t.offsetParent;if("contents"===P(t).display){const e=t.hasAttribute("style"),o=t.style.display;t.style.display=P(n).display,i=t.offsetParent,t.style.display=o,e||t.removeAttribute("style")}n=t,e!==i&&(e=i,o=!0)}else if(D(n)&&n.host&&o)break;n=D(n)&&n.host||n.parentNode}return e}(t):null}function K(t){const e=R(t);let n=J(t);for(;n&&L(n)&&"static"===P(n).position;)n=J(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===P(n).position&&!B(n))?e:n||function(t){let e=q(t);for(D(e)&&(e=e.host);T(e)&&!["html","body"].includes(C(e));){if(B(e))return e;{const t=e.parentNode;e=D(t)?t.host:t}}return null}(t)||e}function N(t){if(T(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=G(t);return{width:e.width,height:e.height}}function Q(t){const e=q(t);return["html","body","#document"].includes(C(e))?t.ownerDocument.body:T(e)&&H(e)?e:Q(e)}function U(t,e){var n;void 0===e&&(e=[]);const o=Q(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=R(o),s=i?[r].concat(r.visualViewport||[],H(o)?o:[]):o,a=e.concat(s);return i?a:a.concat(U(s))}function W(t,e,n){return"viewport"===e?f(function(t,e){const n=R(t),o=I(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const t=S();(t||!t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}(t,n)):O(e)?function(t,e){const n=G(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,n):f(function(t){var e;const n=I(t),o=V(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=E(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=E(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-o.scrollLeft+X(t);const c=-o.scrollTop;return"rtl"===P(i||n).direction&&(a+=E(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(I(t)))}function Z(t){const e=U(t),n=["absolute","fixed"].includes(P(t).position)&&T(t)?K(t):t;return O(n)?e.filter((t=>O(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&D(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==C(t))):[]}const _={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?Z(e):[].concat(n),o],s=r.reduce(((t,n)=>{const o=W(e,n,i);return t.top=E(o.top,t.top),t.right=z(o.right,t.right),t.bottom=z(o.bottom,t.bottom),t.left=E(o.left,t.left),t}),W(e,r[0],i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=T(n),r=I(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==C(n)||H(r))&&(s=V(n)),T(n))){const t=G(n,!0);a.x=t.x+n.clientLeft,a.y=t.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}},isElement:O,getDimensions:N,getOffsetParent:K,getDocumentElement:I,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:Y(e,K(n),o),floating:{...N(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===P(t).direction},tt=(t,n,o={placement:e.Placement.bottom,offset:0,arrow:!1,arrowColor:"tw-bg-slate-700"})=>{const{placement:f,offset:u,arrow:d,arrowColor:h}=o;let p=[(y=u,void 0===y&&(y=0),{name:"offset",options:y,async fn(t){const{x:e,y:n}=t,o=await async function(t,e){const{placement:n,platform:o,elements:a}=t,c=await(null==o.isRTL?void 0:o.isRTL(a.floating)),l=i(n),f=r(n),u="x"===s(n),d=["left","top"].includes(l)?-1:1,h=c&&u?-1:1,m="function"==typeof e?e(t):e;let{mainAxis:p,crossAxis:w,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return f&&"number"==typeof y&&(w="end"===f?-1*y:y),u?{x:w*h,y:p*d}:{x:p*d,y:w*h}}(t,y);return{x:e+o.x,y:n+o.y,data:o}}}),b(),j({padding:5}),k({padding:10})],w=document.getElementById(`${n.id}-arrow`);var y;d&&(w||(w=document.createElement("div"),w.setAttribute("id",`${n.id}-arrow`)),w.setAttribute("class",`tw-absolute tw-w-2 tw-h-2 ${h} tw-transform tw-z-[-1] tw-opacity-0 tw-transition-opacity tw-duration-300 \n tw-shadow \n `),n.prepend(w),p.push((t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=null!=t?t:{},{x:i,y:c,placement:f,rects:u,platform:d}=e;if(null==n)return{};const h=l(o),p={x:i,y:c},w=s(f),y=r(f),g=a(w),x=await d.getDimensions(n),b="y"===w?"top":"left",v="y"===w?"bottom":"right",A=u.reference[g]+u.reference[w]-p[w]-u.floating[g],k=p[w]-u.reference[w],j=await(null==d.getOffsetParent?void 0:d.getOffsetParent(n));let $=j?"y"===w?j.clientHeight||0:j.clientWidth||0:0;0===$&&($=u.floating[g]);const R=h[b],P=$-x[g]-h[v],C=$/2-x[g]/2+(A/2-k/2),M=m(R,C,P);return{[w]:p[w]-(("start"===y?h[b]:h[v])>0&&C!==M&&u.reference[g]<=u.floating[g]?C<R?R-C:P-C:0),data:{[w]:M,centerOffset:C-M}}}}))({element:w,padding:4}))),((t,e,n)=>(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=c(l,o,a),d=o,h={},m=0;for(let n=0;n<r.length;n++){const{name:p,fn:w}=r[n],{x:y,y:g,data:x,reset:b}=await w({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=g?g:u,h={...h,[p]:{...h[p],...x}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),({x:f,y:u}=c(l,d,a))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}})(t,e,{platform:_,...n}))(t,n,{placement:f,middleware:p}).then((({x:t,y:e,placement:o,middlewareData:i})=>{const{referenceHidden:r}=i.hide;if(Object.assign(n.style,{top:"0",left:"0",transform:`translate(${Math.round(t)}px,${Math.round(e)}px)`,opacity:1,visibility:r?"hidden":"visible"}),d){const{x:t,y:e}=i.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]],s={top:"rotate(45deg)",right:"rotate(135deg)",bottom:"rotate(-135deg)",left:"rotate(-45deg)"}[o.split("-")[0]];Object.assign(w.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[n]:"-4px",opacity:1,visibility:r?"hidden":"visible",transform:s})}}))};class et{constructor({message:e,targetId:i,placement:r="top",color:s="slate-700",trigger:a="none"}){this.bgColor=()=>n.twColor(this.color,700),this.target=()=>document.getElementById(this.targetId),this.init=()=>{this.el=o.createElement("div",{id:`${this.targetId}-tooltip-box`,class:`\n tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-1 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,role:"tooltip","aria-hidden":"true",style:`color: ${n.twColorReverse(this.bgColor())}`,innerHTML:t.trim(this.message)})},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)),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&&tt(this.target(),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.message=e,this.targetId=i,this.placement=r,this.color=s,this.id=i+"-tooltip-box",this.trigger=a}}export{tt as F,et as T}
|