@hybr1d-tech/charizard 0.3.37 → 0.3.38

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/hybr1d-ui.js CHANGED
@@ -1658,12 +1658,12 @@ function Km({
1658
1658
  !e.isError && /* @__PURE__ */ c.jsxs("div", { className: ne.header, children: [
1659
1659
  !v && /* @__PURE__ */ c.jsxs("div", { className: ne.meta, children: [
1660
1660
  /* @__PURE__ */ c.jsx("div", { className: ne.total, children: s }),
1661
- typeof o == "object" && !y && /* @__PURE__ */ c.jsx(Ha, { filterConfig: o })
1661
+ typeof o == "object" && /* @__PURE__ */ c.jsx(Ha, { filterConfig: o })
1662
1662
  ] }),
1663
1663
  v && /* @__PURE__ */ c.jsx("div", { className: ne.headerTxt, children: v }),
1664
1664
  /* @__PURE__ */ c.jsxs("div", { className: ne.selectorGrp, children: [
1665
- typeof l == "object" && !y && /* @__PURE__ */ c.jsx(Mc, { selectors: l == null ? void 0 : l.selectors }),
1666
- typeof u == "object" && !y && /* @__PURE__ */ c.jsx("div", { className: ne.search, children: /* @__PURE__ */ c.jsx(
1665
+ typeof l == "object" && /* @__PURE__ */ c.jsx(Mc, { selectors: l == null ? void 0 : l.selectors }),
1666
+ typeof u == "object" && /* @__PURE__ */ c.jsx("div", { className: ne.search, children: /* @__PURE__ */ c.jsx(
1667
1667
  qn,
1668
1668
  {
1669
1669
  id: "table-search",
@@ -2049,9 +2049,10 @@ function Bo({
2049
2049
  disabled: l = !1,
2050
2050
  rows: d = 2,
2051
2051
  type: g = "text",
2052
- placeholder: v = "Placeholder"
2052
+ placeholder: v = "Placeholder",
2053
+ onBlur: p
2053
2054
  }) {
2054
- const p = N.useRef(null);
2055
+ const I = N.useRef(null);
2055
2056
  return /* @__PURE__ */ c.jsxs("div", { className: ue.inputWrapper, children: [
2056
2057
  g === "textarea" ? /* @__PURE__ */ c.jsx(
2057
2058
  "textarea",
@@ -2066,12 +2067,13 @@ function Bo({
2066
2067
  value: n,
2067
2068
  onChange: i,
2068
2069
  disabled: l,
2070
+ onBlur: p,
2069
2071
  ...a
2070
2072
  }
2071
2073
  ) : /* @__PURE__ */ c.jsx(
2072
2074
  "input",
2073
2075
  {
2074
- ref: p,
2076
+ ref: I,
2075
2077
  style: e,
2076
2078
  type: g,
2077
2079
  className: L(ue.input, s && ue.error, t),
@@ -2082,9 +2084,10 @@ function Bo({
2082
2084
  onChange: i,
2083
2085
  disabled: l,
2084
2086
  onClick: () => {
2085
- var I;
2086
- return (I = p.current) == null ? void 0 : I.showPicker();
2087
+ var b;
2088
+ return (b = I.current) == null ? void 0 : b.showPicker();
2087
2089
  },
2090
+ onBlur: p,
2088
2091
  ...a
2089
2092
  }
2090
2093
  ),
@@ -28,7 +28,7 @@ Check the top-level render call using <`+M+">.")}return S}}function Ti(f,S){{if(
28
28
  [zustand devtools middleware] Unsupported __setState action format.
29
29
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
30
30
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
31
- `);const C=m.state[c];if(C==null)return;JSON.stringify(n.getState())!==JSON.stringify(C)&&p(C);return}n.dispatchFromDevtools&&typeof n.dispatch=="function"&&n.dispatch(m)});case"DISPATCH":switch(b.payload.type){case"RESET":return p(I),c===void 0?d==null?void 0:d.init(n.getState()):d==null?void 0:d.init(Zt(s.name));case"COMMIT":if(c===void 0){d==null||d.init(n.getState());return}return d==null?void 0:d.init(Zt(s.name));case"ROLLBACK":return An(b.state,m=>{if(c===void 0){p(m),d==null||d.init(n.getState());return}p(m[c]),d==null||d.init(Zt(s.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return An(b.state,m=>{if(c===void 0){p(m);return}JSON.stringify(n.getState())!==JSON.stringify(m[c])&&p(m[c])});case"IMPORT_STATE":{const{nextLiftedState:m}=b.payload,C=(y=m.computedStates.slice(-1)[0])==null?void 0:y.state;if(!C)return;p(c===void 0?C:C[c]),d==null||d.send(null,m);return}case"PAUSE_RECORDING":return v=!v}return}}),I},An=(t,e)=>{let r;try{r=JSON.parse(t)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}r!==void 0&&e(r)},Rr=Wi.create()(is(t=>({filters:[],setDefaultFilters:e=>t({filters:e}),addFilters:(e,r,o)=>t(n=>({filters:n.filters.map(a=>{if(a.key===e){const c=[...a.values,r];return typeof o=="function"&&o({filterType:e,value:c.join(",")}),{...a,values:c}}return a})})),removeFilters:(e,r,o)=>t(n=>({filters:n.filters.map(a=>{if(a.key===e){const c=a.values.filter(s=>s!==r);return typeof o=="function"&&o({filterType:e,value:c.join(",")}),{...a,values:c}}return a})})),resetFilters:(e,r)=>t(o=>({filters:o.filters.map(i=>i.key===e?(typeof r=="function"&&r({filterType:e,value:""}),{...i,values:[]}):i)})),resetAllFilters:e=>t(r=>({filters:r.filters.map(o=>(typeof e=="function"&&e(),{...o,values:[]}))}))})));function ss({filterConfig:t}){const{filters:e,isLoading:r,isError:o,filterDispatch:n,filterReset:i}=t,a=Rr(p=>p.filters),{setDefaultFilters:c,addFilters:s,removeFilters:l,resetFilters:d,resetAllFilters:g}=Rr(p=>({setDefaultFilters:p.setDefaultFilters,addFilters:p.addFilters,removeFilters:p.removeFilters,resetFilters:p.resetFilters,resetAllFilters:p.resetAllFilters}));if(N.useEffect(()=>{!(e!=null&&e.length)||r||c((e==null?void 0:e.map(p=>({key:p.key,values:[]})))||[])},[e==null?void 0:e.length,r]),!e||!e.length)return null;if(o)return u.jsx("div",{className:re.filtersInfo,children:"Error getting filters"});if(r)return u.jsx("div",{className:re.filtersInfo,children:"Getting filters..."});const v=a.map(p=>p.values).flat();return u.jsxs("div",{className:re.filters,children:[v.length>0&&u.jsx("img",{title:"Reset filters",src:qi,alt:"reset all filters",className:re.resetIcon2,onClick:()=>{g(i)}}),e.map((p,I)=>u.jsx(rs,{filter:p,tableFilters:a,tableFilter:a[I],addFilters:s,removeFilters:l,resetFilters:d,filterDispatch:n},p.id))]})}const Br={box:"_box_whvoa_1",loader:"_loader_whvoa_11"};function as({text:t="Getting data...",isError:e}){return u.jsx("tbody",{className:Br.box,children:u.jsx("tr",{className:Br.loader,children:!e&&u.jsx("td",{children:t})})})}const Or={box:"_box_11cjo_1",empty:"_empty_11cjo_8"};function us({emptyStateConfig:t,search:e}){return t?u.jsx("tbody",{className:Or.box,children:u.jsx("tr",{children:u.jsx("td",{className:Or.empty,colSpan:t.columns,children:u.jsx(Pr,{icon:t.icon,title:e!=null&&e.length?t.emptySearchTitle||"":t.title,desc:e!=null&&e.length?"":t.desc,btnText:t.btnText,onClick:t.onClick})})})}):null}const Nn={box:"_box_nao91_1",label:"_label_nao91_9"};function cs({actionsConfig:t,data:e}){if(!t)return null;const{menuItems:r=[],isDropdownActions:o,key:n,customComp:i}=t;return o?!n&&!i?u.jsx("div",{className:Nn.box,children:u.jsx(he.ActionsDropdown,{menuItems:r,data:e})}):u.jsxs("div",{className:Nn.box,children:[u.jsx(he.ActionsDropdown,{menuItems:r,data:e,variant:"small"}),i||(n&&e[n]?u.jsx("div",{className:Nn.label,children:e[n]}):null)]}):null}const ct={selectedActions:"_selectedActions_1kmqu_1",selectedAction:"_selectedAction_1kmqu_1",selectedInfo:"_selectedInfo_1kmqu_17",actionsBtnIconSpan:"_actionsBtnIconSpan_1kmqu_36",actionsBtnIcon:"_actionsBtnIcon_1kmqu_36",selectedIcon:"_selectedIcon_1kmqu_46"};function ls({rowSelectionConfig:t,rowSelection:e}){if(!t||!t.isCheckbox||Object.keys(e).length===0)return null;const{isCheckbox:r,actions:o,iconSrc:n}=t;return u.jsx(u.Fragment,{children:r&&Object.keys(e).length>0&&u.jsxs("div",{className:ct.selectedActions,children:[u.jsx("div",{className:ct.selectedInfo,children:Object.keys(e).length}),u.jsxs("div",{className:ct.selectedAction,children:[n&&u.jsx("div",{children:u.jsx(ce,{path:n||"",svgClassName:ct.selectedIcon})}),u.jsx(he.MenuButton,{variant:Xe.SECONDARY,size:"sm",isCustomTrigger:!0,menuItems:(o==null?void 0:o.map(i=>({label:i.text,onClick:i.onClick,iconSrc:i.icon})))||[],positionerProps:{placement:"bottom-start"},children:u.jsxs(he,{variant:Xe.SECONDARY,size:"sm",children:["Actions",u.jsx(ce,{svgClassName:ct.actionsBtnIcon,path:ut,spanClassName:ct.actionsBtnIconSpan})]})})]})]})})}const ds="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQuNjI1IDYuNzQ2YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1MSAzLjgzYy4yMi0uMjIuNTc1LS4yMi43OTUgMGwyLjEyMSAyLjEyYS41NjMuNTYzIDAgMCAxLS43OTUuNzk1TDYuOTEgNS41ODZ2Ny4xMjdhLjU2My41NjMgMCAwIDEtMS4xMjUgMFY1LjU4NWwtMS4xNiAxLjE2MVptNy4wMjctMi4wMmMuMzEgMCAuNTYyLjI1MS41NjIuNTYydjcuMTI3bDEuMTYxLTEuMTZhLjU2Mi41NjIgMCAxIDEgLjc5Ni43OTVsLTIuMTIyIDIuMTIxYS41NjMuNTYzIDAgMCAxLS43OTUgMEw5LjEzMyAxMi4wNWEuNTYzLjU2MyAwIDAgMSAuNzk1LS43OTZsMS4xNjEgMS4xNjFWNS4yODhjMC0uMzEuMjUyLS41NjIuNTYzLS41NjJaIiBmaWxsPSIjQjNCMkI4Ii8+PC9zdmc+",gs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTQuNjI1IDYuNzQ2YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1MSAzLjgzYy4yMi0uMjIuNTc1LS4yMi43OTUgMGwyLjEyMSAyLjEyYS41NjMuNTYzIDAgMCAxLS43OTUuNzk1TDYuOTEgNS41ODZ2Ny4xMjdhLjU2My41NjMgMCAwIDEtMS4xMjUgMFY1LjU4NWwtMS4xNiAxLjE2MVptNy4wMjctMi4wMmMuMzEgMCAuNTYyLjI1MS41NjIuNTYydjcuMTI3bDEuMTYxLTEuMTZhLjU2Mi41NjIgMCAxIDEgLjc5Ni43OTVsLTIuMTIyIDIuMTIxYS41NjIuNTYyIDAgMCAxLS43OTUgMEw5LjEzMyAxMi4wNWEuNTYzLjU2MyAwIDAgMSAuNzk1LS43OTZsMS4xNjEgMS4xNjFWNS4yODhjMC0uMzEuMjUyLS41NjIuNTYzLS41NjJaIiBmaWxsPSIjQjNCMkI4Ii8+PHBhdGggZD0iTTQuNjI1IDYuNzQ3YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1IDMuODNjLjIyLS4yMi41NzYtLjIyLjc5NiAwbDIuMTIxIDIuMTIyYS41NjIuNTYyIDAgMSAxLS43OTUuNzk1TDYuOTEgNS41ODd2Ny4xMjZhLjU2Mi41NjIgMCAxIDEtMS4xMjUgMFY1LjU4NmwtMS4xNiAxLjE2MVoiIGZpbGw9IiM4QTdDREIiLz48L2c+PC9zdmc+",fs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTQuNjI1IDYuNzQ2YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1MSAzLjgzYy4yMi0uMjIuNTc1LS4yMi43OTUgMGwyLjEyMSAyLjEyYS41NjIuNTYyIDAgMSAxLS43OTUuNzk1TDYuOTEgNS41ODZ2Ny4xMjdhLjU2My41NjMgMCAwIDEtMS4xMjUgMFY1LjU4NWwtMS4xNiAxLjE2MVptNy4wMjctMi4wMmMuMzEgMCAuNTYyLjI1MS41NjIuNTYydjcuMTI3bDEuMTYxLTEuMTZhLjU2Mi41NjIgMCAxIDEgLjc5Ni43OTVsLTIuMTIyIDIuMTIxYS41NjIuNTYyIDAgMCAxLS43OTUgMEw5LjEzMyAxMi4wNWEuNTYzLjU2MyAwIDAgMSAuNzk1LS43OTZsMS4xNjEgMS4xNjFWNS4yODhjMC0uMzEuMjUyLS41NjIuNTYzLS41NjJaIiBmaWxsPSIjOEE3Q0RCIi8+PHBhdGggZD0iTTQuNjI1IDYuNzQ3YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1IDMuODNjLjIyLS4yMi41NzYtLjIyLjc5NiAwbDIuMTIxIDIuMTIyYS41NjIuNTYyIDAgMSAxLS43OTUuNzk1TDYuOTEgNS41ODd2Ny4xMjZhLjU2Mi41NjIgMCAxIDEtMS4xMjUgMFY1LjU4NmwtMS4xNiAxLjE2MVoiIGZpbGw9IiNCM0IyQjgiLz48L2c+PC9zdmc+",oe={box:"_box_18qqq_1",header:"_header_18qqq_6",meta:"_meta_18qqq_18",total:"_total_18qqq_25",selectorGrp:"_selectorGrp_18qqq_32",table:"_table_18qqq_38",tableHead:"_tableHead_18qqq_48",tableData:"_tableData_18qqq_53",tableDataWithSelection:"_tableDataWithSelection_18qqq_63",tableBody:"_tableBody_18qqq_67",tableRow:"_tableRow_18qqq_67",headerTxt:"_headerTxt_18qqq_77",tableHeader:"_tableHeader_18qqq_84",tableHeaderSort:"_tableHeaderSort_18qqq_94",tableHeaderSortSpan:"_tableHeaderSortSpan_18qqq_99",tableHeaderSortIcon:"_tableHeaderSortIcon_18qqq_105"},Sn={box:"_box_1wr6m_1",selector:"_selector_1wr6m_10",active:"_active_1wr6m_30"};function Fr({selectors:t}){const[e,r]=N.useState(0);return u.jsx("div",{className:Sn.box,children:t.map((o,n)=>u.jsx("div",{onClick:()=>{r(n),o.onClick()},className:P(Sn.selector,n===e&&Sn.active),style:{borderRadius:n===0?"4px 0px 0px 4px":n===t.length-1?"0px 4px 4px 0px":0,boxShadow:n===0?"none":""},children:o.name},o.name))})}const St={checkboxSpan:"_checkboxSpan_dxec8_1",checkbox:"_checkbox_dxec8_1",checkboxSelect:"_checkboxSelect_dxec8_33",radio:"_radio_dxec8_39"},Et="select",kt="dropdown-actions",Xt="select-radio";function Vr({indeterminate:t,row:e,isHeader:r,...o}){const n=N.useRef(null);return N.useEffect(()=>{typeof t=="boolean"&&(n.current.indeterminate=!o.checked&&t)},[n,t]),u.jsx("span",{className:St.checkboxSpan,style:{display:r?"flex":void 0},children:u.jsx("input",{type:"checkbox",ref:n,className:P(St.checkbox,e.id===Et&&St.checkboxSelect),...o})})}function ps({indeterminate:t,row:e,...r}){const o=N.useRef(null);return N.useEffect(()=>{o.current.indeterminate=t},[o,t]),u.jsx("span",{className:St.radioSpan,children:u.jsx("input",{type:"radio",ref:o,className:P(St.radio),...r})})}function ms({data:t,loaderConfig:e,columns:r,filterConfig:o,sortConfig:n,rowSelectionConfig:i={isCheckbox:!1,isRadio:!1},actionsConfig:a={isDropdownActions:!1,key:""},searchConfig:c,totalText:s,selectorConfig:l,paginationConfig:d,emptyStateConfig:g,headerText:v}){var te;const[p,I]=N.useState([]),[b,y]=N.useState({}),[m,C]=N.useState({}),x=!e.isFetching&&!e.isError&&!t.length,{isCheckbox:A,isRadio:h,actions:_,setSelectedRows:E,iconSrc:j}=i;_r(()=>{if(!n||!p.length)return;const{setSortOrd:D,setSortBy:X,sortMap:K}=n;X(K[p[0].id]),D(p[0].desc?"desc":"asc")},[p]),_r(()=>{if(!i||!E)return;const D=Z.getSelectedRowModel().rows.map(X=>X.original);E([...D])},[m]);const F=[{id:Et,header:D=>u.jsx(Vr,{checked:D.table.getIsAllRowsSelected(),indeterminate:D.table.getIsSomeRowsSelected(),onChange:D.table.getToggleAllRowsSelectedHandler(),row:D.header,isHeader:!0}),cell:({row:D})=>u.jsx(Vr,{checked:D.getIsSelected(),disabled:!D.getCanSelect(),indeterminate:D.getIsSomeSelected(),onChange:D.getToggleSelectedHandler(),row:D}),size:55},{id:Xt,cell:({row:D})=>u.jsx(ps,{checked:D.getIsSelected(),disabled:!D.getCanSelect(),indeterminate:D.getIsSomeSelected(),onChange:D.getToggleSelectedHandler(),row:D}),size:55},...r,{id:kt,cell:D=>u.jsx(cs,{actionsConfig:a,data:D.row.original}),header:"Actions",maxSize:150}],Z=yt.useReactTable({data:t,columns:F,state:{sorting:p,columnVisibility:b,rowSelection:m},manualSorting:!0,onSortingChange:I,onColumnVisibilityChange:y,enableRowSelection:!0,onRowSelectionChange:C,enableMultiRowSelection:!h,manualPagination:!0,manualFiltering:!0,getCoreRowModel:yt.getCoreRowModel(),defaultColumn:{minSize:0,size:Number.MAX_SAFE_INTEGER,maxSize:Number.MAX_SAFE_INTEGER}});return N.useLayoutEffect(()=>{if(A&&h)throw new Error("Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one")},[]),N.useLayoutEffect(()=>{var D;A||(D=Z.getColumn(Et))==null||D.toggleVisibility(!1)},[]),N.useLayoutEffect(()=>{var D;h||(D=Z.getColumn(Xt))==null||D.toggleVisibility(!1)},[]),N.useLayoutEffect(()=>{var D;a.isDropdownActions||(D=Z.getColumn(kt))==null||D.toggleVisibility(!1)},[]),N.useEffect(()=>{C({})},[c==null?void 0:c.search]),u.jsxs("div",{className:oe.box,children:[!e.isError&&u.jsxs("div",{className:oe.header,children:[!v&&u.jsxs("div",{className:oe.meta,children:[u.jsx("div",{className:oe.total,children:s}),typeof o=="object"&&!x&&u.jsx(ss,{filterConfig:o})]}),v&&u.jsx("div",{className:oe.headerTxt,children:v}),u.jsxs("div",{className:oe.selectorGrp,children:[typeof l=="object"&&!x&&u.jsx(Fr,{selectors:l==null?void 0:l.selectors}),typeof c=="object"&&!x&&u.jsx("div",{className:oe.search,children:u.jsx(Wt,{id:"table-search",search:c.search,setSearch:c.setSearch,placeholder:c.placeholder,clearIconClearFn:()=>C({})})})]})]}),u.jsx(ls,{rowSelectionConfig:i,rowSelection:m}),d?u.jsx(Bi,{dataLength:t.length,next:d.fetchNextPage,hasMore:(t==null?void 0:t.length)<((te=d.metaData)==null?void 0:te.total_items),loader:d.loader,height:d.height,children:u.jsx(Wr,{table:Z,isCheckbox:A,isRadio:h,loaderConfig:e,isEmpty:x,emptyStateConfig:g,search:c==null?void 0:c.search})}):u.jsx(Wr,{table:Z,isCheckbox:A,isRadio:h,loaderConfig:e,isEmpty:x,emptyStateConfig:g,search:c==null?void 0:c.search})]})}function Wr({table:t,isCheckbox:e,isRadio:r,loaderConfig:o,emptyStateConfig:n,isEmpty:i,search:a}){return u.jsxs("table",{className:oe.table,children:[u.jsx("thead",{className:oe.tableHead,children:t.getHeaderGroups().map(c=>u.jsx("tr",{className:oe.tableRow,children:c.headers.map(s=>(s.index,u.jsx("th",{className:P(oe.tableHeader,s.column.getCanSort()&&oe.tableHeaderSort),style:{width:s.getSize()===Number.MAX_SAFE_INTEGER?"auto":s.getSize(),paddingRight:s.id===kt?"20px":void 0,paddingLeft:s.index===0&&s.id!==Et&&s.id!==Xt?"20px":void 0},children:s.isPlaceholder?null:u.jsxs("div",{onClick:s.column.getToggleSortingHandler(),style:{display:"flex",alignItems:"center",justifyContent:s.id===kt?"flex-end":void 0},children:[yt.flexRender(s.column.columnDef.header,s.getContext()),{asc:u.jsx(ce,{path:gs,spanClassName:oe.tableHeaderSortSpan}),desc:u.jsx(ce,{path:fs,spanClassName:oe.tableHeaderSortSpan}),false:s.column.getCanSort()?u.jsx(ce,{path:ds,spanClassName:oe.tableHeaderSortSpan,svgClassName:oe.tableHeaderSort}):null}[s.column.getIsSorted()]??null]})},s.id)))},c.id))}),o.isFetching?u.jsx(as,{text:o.text,isError:o.isError}):i?u.jsx(us,{emptyStateConfig:n,search:a}):u.jsx("tbody",{className:oe.tableBody,children:t.getRowModel().rows.map((c,s)=>u.jsx("tr",{className:oe.tableRow,children:c.getVisibleCells().map(l=>{const d=(e||r)&&(l.id===`${s}_${Xt}`||l.id===`${s}_${Et}`);return u.jsx("td",{className:P(oe.tableData,(e||r)&&oe.tableDataWithSelection),style:{width:l.column.getSize()===Number.MAX_SAFE_INTEGER?"auto":l.column.getSize(),verticalAlign:d?"middle":void 0},children:yt.flexRender(l.column.columnDef.cell,l.getContext())},l.id)})},c.id))}),o.isError&&u.jsx("tbody",{style:{height:"200px"},children:u.jsx("tr",{children:u.jsx("td",{colSpan:n==null?void 0:n.columns,style:{textAlign:"center"},children:o.errMsg||"Error getting data, please try again later."})})}),u.jsx("tfoot",{className:oe.tableFoot,children:t.getFooterGroups().map(c=>u.jsx("tr",{className:oe.tableRow,children:c.headers.map(s=>u.jsx("th",{children:s.isPlaceholder?null:yt.flexRender(s.column.columnDef.footer,s.getContext())},s.id))},c.id))})]})}const tt={container:"_container_186a7_1",inputLabel:"_inputLabel_186a7_7",required:"_required_186a7_15",error:"_error_186a7_42",options:"_options_186a7_62",option:"_option_186a7_62"};function bs({label:t,isLoading:e=!1,required:r=!1,labelClassName:o,inputClassName:n,disabled:i=!1,defaultOptions:a=[],isAPIFilter:c=!1,onChange:s,onSelect:l,placeholder:d,optionsMaxHeight:g="300px",value:v}){const[p,I]=N.useState(a),[b,y]=N.useState(""),m=Cn.collection({items:a,itemToValue:h=>h.value,itemToString:h=>h.label}),[C,x]=ne.useMachine(Cn.machine({id:w.useId(),collection:m,onOpenChange(h){h.open&&I(a)},async onInputValueChange({value:h}){if(y(h[0]),!c){const _=p.filter(E=>E.label.toLowerCase().includes(h[0].toLowerCase()));I(_);return}h[0]&&s&&(I([]),s(h[0]))},disabled:i,inputValue:v,multiple:!1,onValueChange(h){}}),{context:{collection:m}}),A=Cn.connect(C,x,ne.normalizeProps);return N.useEffect(()=>{a&&I(a)},[a]),u.jsxs("div",{children:[u.jsxs("div",{...A.rootProps,children:[t&&u.jsx("label",{...A.labelProps,className:P(tt.inputLabel,o,r&&tt.required),children:t}),u.jsx("div",{...A.controlProps,className:tt.container,children:u.jsx("input",{...A.inputProps,className:n})})]}),u.jsx("div",{...A.positionerProps,children:p.length>0?u.jsx("ul",{...A.contentProps,className:tt.options,style:{maxHeight:g},children:p.map((h,_)=>u.jsx("li",{className:tt.option,...A.getItemProps({item:h}),children:h.listComponent?h.listComponent:h.label},`${h.value}:${_}`))}):b&&u.jsxs("ul",{...A.contentProps,className:tt.options,style:{maxHeight:g},children:[c&&!e&&!p.length&&u.jsx("li",{className:tt.option,...A.getItemProps({item:{label:"",value:""}}),children:"No result found"}),!c&&!p.length&&u.jsx("li",{className:tt.option,...A.getItemProps({item:{label:"No result found",value:"No result found",disabled:!0}}),children:"No result found"})]})})]})}const Ce={backdropLayer:"_backdropLayer_1c8ms_1",show:"_show_1c8ms_12",backdrop:"_backdrop_1c8ms_1",showBackdrop:"_showBackdrop_1c8ms_24",container:"_container_1c8ms_28",rightAlign:"_rightAlign_1c8ms_40",leftAlign:"_leftAlign_1c8ms_44",sm:"_sm_1c8ms_48",md:"_md_1c8ms_52",lg:"_lg_1c8ms_56",xlg:"_xlg_1c8ms_60",xxlg:"_xxlg_1c8ms_64",content:"_content_1c8ms_68",headerContainer:"_headerContainer_1c8ms_74",showBorder:"_showBorder_1c8ms_81",title:"_title_1c8ms_85",closeBtn:"_closeBtn_1c8ms_93",descriptionContainer:"_descriptionContainer_1c8ms_106",fullHeight:"_fullHeight_1c8ms_112",footer:"_footer_1c8ms_117",footerBtnContainer:"_footerBtnContainer_1c8ms_133",footerBtn:"_footerBtn_1c8ms_133",saveBtn:"_saveBtn_1c8ms_147",cancelBtn:"_cancelBtn_1c8ms_148"};function Is({isOpen:t,onClose:e,children:r,title:o,customHeader:n,customFooter:i,size:a="md",showBackdrop:c=!0,showHeader:s=!0,showFooter:l=!0,buttons:d,footerAddon:g,headerClassName:v,contentClassName:p,footerClassName:I,showHeaderBorder:b=!0,drawerPosition:y="right"}){const m=N.useRef(null),C=N.useRef(null),x=N.useRef(null),A=y==="left"?"-100%":"100%",h=!s&&!l;return N.useEffect(()=>{const _=setTimeout(()=>{var E,j;m.current&&C&&x&&(m.current.style.transform=t?"translateX(0)":`translateX(${A})`,C.current.style.maxHeight=`calc(100vh - (1.75rem * 2) - ${(E=x.current)==null?void 0:E.clientHeight}px)`,C.current.style.height=`calc(100vh - (1.75rem * 2) - ${(j=x.current)==null?void 0:j.clientHeight}px)`)},0);return()=>{clearTimeout(_)}},[t]),u.jsxs(u.Fragment,{children:[u.jsx("div",{className:P(Ce.backdropLayer,t&&Ce.show),onClick:e,children:c&&u.jsx("div",{className:P(Ce.backdrop,t&&Ce.showBackdrop)})}),u.jsx("div",{className:P(Ce.container,Ce[a],Ce[`${y}Align`]),ref:m,children:u.jsxs("div",{className:Ce.content,children:[s&&u.jsx("div",{className:P(Ce.headerContainer,{[Ce.showBorder]:b},v),children:n||u.jsxs(u.Fragment,{children:[u.jsx("h1",{className:Ce.title,children:o}),u.jsx("button",{type:"button",className:Ce.closeBtn,onClick:e})]})}),u.jsx("div",{className:P(Ce.descriptionContainer,{[Ce.fullHeight]:h},p),ref:C,children:r}),l&&u.jsx("div",{className:P(Ce.footer,I),ref:x,children:i||d&&u.jsxs("div",{className:Ce.footerBtnContainer,children:[u.jsx("div",{className:Ce.footerBtn,children:d.map((_,E)=>u.jsx(he,{disabled:_.disabled,variant:_.variant,onClick:_.onClick?_.onClick:void 0,type:_.btnType,children:_.btnText},E))}),g&&u.jsx("div",{children:g})]})})]})})]})}const le={inputContainer:"_inputContainer_1re0u_1",adapt:"_adapt_1re0u_5",sm:"_sm_1re0u_9",md:"_md_1re0u_13",inputLabelContainer:"_inputLabelContainer_1re0u_17",inputLabel:"_inputLabel_1re0u_17",infoCircleSvg:"_infoCircleSvg_1re0u_35",required:"_required_1re0u_40",inputGroup:"_inputGroup_1re0u_46",inputWrapper:"_inputWrapper_1re0u_52",input:"_input_1re0u_1",textarea:"_textarea_1re0u_58",error:"_error_1re0u_88",errorMsg:"_errorMsg_1re0u_105",inputElement:"_inputElement_1re0u_114",left:"_left_1re0u_125",right:"_right_1re0u_129",inputAddon:"_inputAddon_1re0u_133",dropdownContainer:"_dropdownContainer_1re0u_162",searchContainer:"_searchContainer_1re0u_177",dropdownOption:"_dropdownOption_1re0u_185"};var ae=(t=>(t.INPUT_ADDON="InputAddon",t.INPUT_LEFT_ADDON="InputLeftAddon",t.INPUT_RIGHT_ADDON="InputRightAddon",t.INPUT_ELEMENT="InputElement",t.INPUT_LEFT_ELEMENT="InputLeftElement",t.INPUT_RIGHT_ELEMENT="InputRightElement",t.INPUT_CONTAINER="InputContainer",t.INPUT_LABEL="InputLabel",t.INPUT_GROUP="InputGroup",t.INPUT="Input",t))(ae||{});function En({customClasses:t,customStyles:e,name:r,id:o,value:n,onChange:i,restprops:a,cols:c,errorMsg:s,disabled:l=!1,rows:d=2,type:g="text",placeholder:v="Placeholder"}){const p=N.useRef(null);return u.jsxs("div",{className:le.inputWrapper,children:[g==="textarea"?u.jsx("textarea",{rows:d,cols:c,style:e,className:P(le.textarea,s&&le.error,t),placeholder:v,name:r,id:o,value:n,onChange:i,disabled:l,...a}):u.jsx("input",{ref:p,style:e,type:g,className:P(le.input,s&&le.error,t),placeholder:v,name:r,id:o,value:n,onChange:i,disabled:l,onClick:()=>{var I;return(I=p.current)==null?void 0:I.showPicker()},...a}),s&&u.jsx("p",{className:le.errorMsg,children:s})]})}En.displayName=ae.INPUT,En.id=ae.INPUT;function Ht({children:t,placement:e="left",isDropdown:r=!1,dropdownOptions:o,handleOptionClick:n=()=>{},showDropdownSearch:i=!0}){var m;const a=e==="left"?"left":"right",[c,s]=N.useState(!1),l=N.useRef(null),[d,g]=N.useState(""),[v,p]=N.useState(!0);N.useEffect(()=>(document.addEventListener("click",I),()=>{document.removeEventListener("click",I)}),[]);const I=C=>{var x;(x=l.current)!=null&&x.contains(C.target)||s(!1)},b=()=>{var C;if(c)s(!1),p(!0);else{s(!0);const x=(C=l.current)==null?void 0:C.getBoundingClientRect(),A=(x==null?void 0:x.right)+(x==null?void 0:x.width),h=window.innerWidth-100;A>h&&p(!1)}},y=C=>(C.label+" "+C.value).toLowerCase().includes(d.toLowerCase());return u.jsxs("div",{className:P(le.inputAddon,le[a]),onClick:()=>{r&&b()},ref:l,style:{cursor:r?"pointer":"inherit"},children:[t,r&&u.jsxs(u.Fragment,{children:[u.jsx(ce,{path:ut,width:20,customSpanStyles:{width:"20px"}}),c&&u.jsxs("div",{className:le.dropdownContainer,style:{left:v?"0":"inherit",right:v?"inherit":"0",paddingTop:i?"0":"12px"},children:[i&&u.jsx("div",{className:le.searchContainer,onClick:C=>C.stopPropagation(),children:u.jsx(Wt,{search:d,setSearch:g,id:"input-add-on-search"})}),(m=o==null?void 0:o.filter(y))==null?void 0:m.map(C=>u.jsx("div",{className:le.dropdownOption,onClick:x=>{x.stopPropagation(),n(C),b()},children:C.label},C.value))]})]})]})}function _n({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return u.jsx(Ht,{placement:"left",isDropdown:e,dropdownOptions:r,handleOptionClick:o,showDropdownSearch:n,children:t})}function wn({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return u.jsx(Ht,{placement:"right",isDropdown:e,dropdownOptions:r,handleOptionClick:o,showDropdownSearch:n,children:t})}Ht.displayName=ae.INPUT_ADDON,Ht.id=ae.INPUT_ADDON,_n.displayName=ae.INPUT_LEFT_ADDON,_n.id=ae.INPUT_LEFT_ADDON,wn.displayName=ae.INPUT_RIGHT_ADDON,wn.id=ae.INPUT_RIGHT_ADDON;function zt({children:t,customClassName:e,customStyles:r,size:o="adapt"}){return u.jsx("div",{className:P(le.inputContainer,le[o],e),style:r,children:t})}zt.displayName=ae.INPUT_CONTAINER,zt.id=ae.INPUT_CONTAINER;function Yt({children:t,placement:e="left"}){const r=e==="left"?"left":"right";return u.jsx("div",{className:P(le.inputElement,le[r]),children:t})}function jn({children:t}){return u.jsx(Yt,{placement:"left",children:t})}function Mn({children:t}){return u.jsx(Yt,{placement:"right",children:t})}Yt.displayName=ae.INPUT_ELEMENT,Yt.id=ae.INPUT_ELEMENT,jn.displayName=ae.INPUT_LEFT_ELEMENT,jn.id=ae.INPUT_LEFT_ELEMENT,Mn.displayName=ae.INPUT_RIGHT_ELEMENT,Mn.id=ae.INPUT_RIGHT_ELEMENT;function Tn({children:t}){const e={},r=N.Children.toArray(t);r.forEach(n=>{n.type.id==="InputLeftElement"&&(e.paddingInlineStart="36px"),n.type.id==="InputRightElement"&&(e.paddingInlineEnd="36px"),n.type.id==="InputLeftAddon"&&(e.borderTopLeftRadius=0,e.borderBottomLeftRadius=0),n.type.id==="InputRightAddon"&&(e.borderTopRightRadius=0,e.borderBottomRightRadius=0)});const o=r.map(n=>n.type.id!=="Input"?n:N.cloneElement(n,{...n.props,customStyles:{...e,...n.props.customStyles}}));return u.jsx("div",{className:le.inputGroup,children:o})}Tn.displayName=ae.INPUT_GROUP,Tn.id=ae.INPUT_GROUP;const Zr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOCAxNUE3IDcgMCAxIDEgOCAxYTcgNyAwIDAgMSAwIDE0Wm0wIDFBOCA4IDAgMSAwIDggMGE4IDggMCAwIDAgMCAxNloiIGZpbGw9IiNCNUI1QjUiLz48cGF0aCBkPSJtOC45MyA2LjU4OC0yLjI5LjI4Ny0uMDgyLjM4LjQ1LjA4M2MuMjk0LjA3LjM1Mi4xNzYuMjg4LjQ2OWwtLjczOCAzLjQ2OGMtLjE5NC44OTcuMTA1IDEuMzE5LjgwOCAxLjMxOS41NDUgMCAxLjE3OC0uMjUyIDEuNDY1LS41OThsLjA4OC0uNDE2Yy0uMi4xNzYtLjQ5Mi4yNDYtLjY4Ni4yNDYtLjI3NSAwLS4zNzUtLjE5My0uMzA0LS41MzNMOC45MyA2LjU4OFpNOSA0LjVhMSAxIDAgMSAxLTIgMCAxIDEgMCAwIDEgMiAwWiIgZmlsbD0iI0I1QjVCNSIvPjwvc3ZnPg==",_t={trigger:"_trigger_1ovxi_1",content:"_content_1ovxi_7",arrow:"_arrow_1ovxi_18"};function vs({children:t,api:e,customStyles:r={}}){return u.jsx("button",{...e.triggerProps,type:"button",className:_t.trigger,style:{...r},children:t})}function hs({children:t,api:e,bg:r="black",positionerStyles:o={},containerStyles:n={}}){var c,s;const i=!["black","gray"].includes(r),a={...e==null?void 0:e.arrowProps,...i&&{style:{...(c=e==null?void 0:e.arrowProps)==null?void 0:c.style,"--arrow-background":r}}};return u.jsx(u.Fragment,{children:e.isOpen&&u.jsxs("div",{...e.positionerProps,style:{...(s=e==null?void 0:e.positionerProps)==null?void 0:s.style,...o},children:[u.jsx("div",{...a,className:P(_t.arrow,{[_t[r]]:!i}),children:u.jsx("div",{...e.arrowTipProps})}),u.jsx("div",{...e.contentProps,className:P(_t.content,_t[r]),style:{background:i?r:"",...n},children:t})]})})}function Qe({children:t,openDelay:e=0,closeDelay:r=0,placement:o="top"}){const[n,i]=ne.useMachine(Ot.machine({id:N.useId(),openDelay:e,closeDelay:r,positioning:{placement:o,gutter:3}})),a=Ot.connect(n,i,ne.normalizeProps),c=N.Children.toArray(t).map(s=>N.cloneElement(s,{...s.props??{},api:a}));return u.jsx(u.Fragment,{children:c})}Qe.Trigger=vs,Qe.Content=hs;function Jt({children:t,customClasses:e,customStyles:r,required:o=!1,htmlFor:n,restprops:i={},infoText:a,infoTextTooltipStyles:c={}}){return N.useId(),u.jsxs("div",{className:le.inputLabelContainer,children:[u.jsx("label",{htmlFor:n,className:P(le.inputLabel,e,o&&le.required),style:r,...i,children:u.jsx("span",{children:t})}),a&&u.jsxs(Qe,{children:[u.jsx(Qe.Trigger,{children:u.jsx(ce,{path:Zr,svgClassName:le.infoCircleSvg})}),u.jsx(Qe.Content,{positionerStyles:c,children:a})]})]})}Jt.displayName=ae.INPUT_LABEL,Jt.id=ae.INPUT_LABEL;const Le={backdrop:"_backdrop_1la4q_1",container:"_container_1la4q_16",contentWrapper:"_contentWrapper_1la4q_30",sm:"_sm_1la4q_39",md:"_md_1la4q_43",fullScreen:"_fullScreen_1la4q_47",content:"_content_1la4q_30",header:"_header_1la4q_58",showBorder:"_showBorder_1la4q_75",closeIconSpan:"_closeIconSpan_1la4q_79",closeIcon:"_closeIcon_1la4q_79",body:"_body_1la4q_90",footer:"_footer_1la4q_99",btnsContainer:"_btnsContainer_1la4q_115"};function kr({api:t}){return u.jsx("div",{...t==null?void 0:t.backdropProps,className:Le.backdrop})}function Cs({isOpen:t,onClose:e,children:r,size:o="md",showOverlay:n=!0,machineProps:i={}}){const a=N.useCallback(g=>{g||e()},[e]),[c,s]=ne.useMachine(jr.machine({id:N.useId(),open:t,onOpenChange:g=>a(g.open),...i})),l=jr.connect(c,s,ne.normalizeProps),d=N.Children.toArray(r).map(g=>N.cloneElement(g,{...g.props,api:l,size:o}));return u.jsxs(ne.Portal,{children:[n&&u.jsx(kr,{api:l}),d]})}function ys({children:t,api:e,customStyles:r={}}){return u.jsx("div",{...e.descriptionProps,className:Le.body,style:r,children:t})}function xs({children:t,api:e,size:r="md"}){const o=N.Children.toArray(t).map(n=>N.cloneElement(n,{...n.props,api:e}));return u.jsx("div",{...e==null?void 0:e.containerProps,className:Le.container,children:u.jsx("div",{className:P(Le.contentWrapper,Le[r]),children:u.jsx("div",{...e==null?void 0:e.contentProps,className:Le.content,children:o})})})}function As({children:t,api:e,buttons:r,showBorder:o=!0}){return u.jsx("div",{className:P(Le.footer,{[Le.showBorder]:o}),children:t||u.jsx("div",{className:Le.btnsContainer,children:r.map((n,i)=>u.jsx(he,{disabled:n.disabled,variant:n.variant,onClick:async()=>{await n.onClick(),e==null||e.close()},size:n.btnSize,children:n.isLoading?n.loadingText:n.btnText},i))})})}function Ns({children:t,api:e,showCrossBtn:r=!0,showBorder:o=!0}){return u.jsxs("div",{...e==null?void 0:e.titleProps,className:P(Le.header,{[Le.showBorder]:o}),children:[u.jsx("div",{children:t}),r&&u.jsx("button",{...e.closeTriggerProps,type:"button",onClick:e==null?void 0:e.close,className:"hybr1d-ui-reset-btn",children:u.jsx(ce,{path:Vt,svgClassName:Le.closeIcon,spanClassName:Le.closeIconSpan})})]})}function Ss({children:t,placement:e="top",popoverProps:r,closeOnScroll:o=!1,containerRef:n}){const[i,a]=ne.useMachine(Mr.machine({id:N.useId(),positioning:{placement:e},closeOnInteractOutside:!0,portalled:!1,...r})),c=Mr.connect(i,a,ne.normalizeProps);function s(){c==null||c.close()}N.useEffect(()=>(o&&n&&n.current&&n.current.addEventListener("scroll",s),()=>{var d;o&&n&&((d=n.current)==null||d.removeEventListener("scroll",s))}),[n==null?void 0:n.current]);const l=N.Children.toArray(t).map(d=>N.cloneElement(d,{...d.props,api:c}));return u.jsx(u.Fragment,{children:l})}function Es({children:t,api:e,styles:r,className:o}){return u.jsx("button",{...e==null?void 0:e.closeTriggerProps,style:r,className:P("hybr1d-ui-reset-btn",o),onClick:e==null?void 0:e.close,children:t})}const lt={trigger:"_trigger_1ypev_1",content:"_content_1ypev_5",black:"_black_1ypev_11",white:"_white_1ypev_16",closeBtn:"_closeBtn_1ypev_21",arrow:"_arrow_1ypev_28",positioner:"_positioner_1ypev_42"};function _s({children:t,api:e,bg:r="black",styles:o,className:n,positionerStyles:i}){var d,g;const a=e!=null&&e.portalled?ne.Portal:N.Fragment,c=N.Children.toArray(t).map(v=>N.cloneElement(v,{...v.props,api:e})),s=!["black","gray"].includes(r),l={...e==null?void 0:e.arrowProps,...s&&{style:{...(d=e==null?void 0:e.arrowProps)==null?void 0:d.style,"--arrow-background":r}}};return u.jsx(a,{children:u.jsxs("div",{...e==null?void 0:e.positionerProps,className:lt.positioner,style:{...(g=e==null?void 0:e.positionerProps)==null?void 0:g.style,...i},children:[u.jsx("div",{...l,className:P(lt.arrow,{[lt[r]]:!s}),children:u.jsx("div",{...e==null?void 0:e.arrowTipProps})}),u.jsx("div",{...e==null?void 0:e.contentProps,className:P(lt.content,lt[r],n),style:{background:s?r:"",...o},children:c})]})})}function ws({children:t,api:e,styles:r,className:o}){return u.jsx("div",{...e==null?void 0:e.descriptionProps,style:r,className:o,children:t})}function js({children:t,api:e,styles:r,className:o}){return u.jsx("div",{...e==null?void 0:e.titleProps,style:r,className:o,children:t})}function Ms({children:t,api:e,openOnHover:r=!0,styles:o,className:n}){return u.jsx("button",{...e==null?void 0:e.triggerProps,onMouseEnter:r?e==null?void 0:e.open:()=>{},onMouseLeave:r?e==null?void 0:e.close:()=>{},className:P("hybr1d-ui-reset-btn",lt.trigger,n),style:o,children:t})}const de={selectContainer:"_selectContainer_1pdd3_1",errorMsg:"_errorMsg_1pdd3_5",multiLabelContainer:"_multiLabelContainer_1pdd3_14",optionContainer:"_optionContainer_1pdd3_20",profileImg:"_profileImg_1pdd3_20",singleValueContainer:"_singleValueContainer_1pdd3_22",label:"_label_1pdd3_36",subLabel:"_subLabel_1pdd3_42",closeSpan:"_closeSpan_1pdd3_49",downArrowSpan:"_downArrowSpan_1pdd3_50"},Dn={valueContainer:t=>({...t,gap:"4px"}),option:(t,{data:e,isDisabled:r,isFocused:o,isSelected:n})=>({...t,backgroundColor:r?void 0:n?e.color:o?"#f7f7f7":"#ffffff",color:"#171718",cursor:r?"not-allowed":"default",padding:"8px 12px",fontSize:"16px",lineHeight:"24px",":hover":{backgroundColor:"#f7f7f7"}}),singleValue:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",display:"flex",alignItems:"center",gap:"4px",backgroundColor:"transparent",padding:e.profileImgUrl?"0px 8px 0 0 !important":"0 !important"}),multiValue:(t,{data:e,isFocused:r})=>({...t,backgroundColor:"#f5f5f8",padding:e.profileImgUrl?"0px 8px 0 0":"0 8px",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",borderRadius:"24px",margin:"0"}),multiValueLabel:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",padding:"0 !important"}),multiValueRemove:(t,{data:e})=>({...t,color:"#b3b2b8",padding:"0",":hover":{backgroundColor:"transparent",color:"#b3b2b8"},svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),indicatorSeparator:t=>({...t,display:"none"}),dropdownIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),clearIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}})},Ln=t=>({control:(e,{isDisabled:r,isFocused:o})=>({...e,backgroundColor:r?"#f5f5f8":"transparent",color:"#171718",border:"1px solid #e2e0eb",borderColor:t?"#de350b !important":o?"#6c5bd2 !important":"#e2e0eb !important",fontSize:"16px",boxShadow:"none",transition:"all 0.3s ease-in-out",":hover":{borderColor:t?"#de350b !important":"#6c5bd2 !important"},":focus-within":{boxShadow:t?"#de350b !important":"#6c5bd2 !important"}})}),Gn=t=>u.jsxs(it.components.Option,{...t,className:P({[de.subLabelContainer]:t.data.subLabel},de.optionContainer),children:[u.jsxs("div",{className:P(de.label),children:[t.data.profileImgUrl&&u.jsx("img",{src:t.data.profileImgUrl,className:de.profileImg,alt:t.data.label}),u.jsx("span",{children:t.data.label})]}),t.data.subLabel&&u.jsx("div",{className:P(de.subLabel),children:t.data.subLabel})]}),Pn=t=>u.jsx(it.components.MultiValueLabel,{...t,children:u.jsxs("div",{className:de.multiLabelContainer,children:[t.data.profileImgUrl&&u.jsx("img",{src:t.data.profileImgUrl,className:de.profileImg,alt:t.data.label}),u.jsx("div",{className:P(de.label),children:u.jsx("span",{children:t.data.label})})]})}),Rn=t=>u.jsx(it.components.MultiValueRemove,{...t,children:u.jsx(ce,{path:Vt,spanClassName:de.closeSpan})}),Bn=t=>u.jsx(it.components.ClearIndicator,{...t,children:u.jsx(ce,{path:Vt,spanClassName:de.closeSpan})}),On=t=>u.jsx(it.components.DropdownIndicator,{...t,children:u.jsx(ce,{path:ut,spanClassName:de.downArrowSpan})}),Fn=t=>u.jsx(it.components.SingleValue,{...t,children:u.jsxs("div",{className:de.singleValueContainer,children:[t.data.profileImgUrl&&u.jsx("img",{src:t.data.profileImgUrl,className:de.profileImg,alt:t.data.label}),u.jsx("div",{className:P(de.label),children:u.jsx("span",{children:t.data.label})})]})});function Ts({options:t,onChange:e,name:r,id:o,className:n,placeholder:i,selectStyles:a,defaultValue:c,formatGroupLabel:s,customContainerStyles:l,menuPlacement:d,errorMsg:g,extraprops:v,isDisabled:p=!1,isSearchable:I=!0,isMulti:b=!1,isClearable:y=!1,CustomDropdownIndicator:m}){return u.jsxs("div",{onClick:C=>C.stopPropagation(),style:l,className:de.selectContainer,children:[u.jsx(it,{isMulti:b,placeholder:i,defaultValue:c,options:t,maxMenuHeight:170,isClearable:y,name:r,id:o,className:P(n),isSearchable:I,styles:{...Dn,...Ln(g),...a},components:{Option:Gn,MultiValueLabel:Pn,MultiValueRemove:Rn,DropdownIndicator:m||On,ClearIndicator:Bn,SingleValue:Fn},isDisabled:p,onChange:(C,x)=>{e(b?C.map(A=>A.value):(C==null?void 0:C.value)??"",x)},formatGroupLabel:s,menuPlacement:d,...v}),g&&u.jsx("p",{className:de.errorMsg,children:g})]})}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},O.apply(this,arguments)}function st(t){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st(t)}function Ds(t,e){if(st(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(st(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xr(t){var e=Ds(t,"string");return st(e)==="symbol"?e:String(e)}function dt(t,e,r){return e=Xr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(r),!0).forEach(function(o){dt(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Ls(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zr(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Xr(o.key),o)}}function Gs(t,e,r){return e&&zr(t.prototype,e),r&&zr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vn(t,e){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Vn(t,e)}function Ps(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vn(t,e)}function Ut(t){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ut(t)}function Rs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Os(t,e){if(e&&(st(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bs(t)}function Fs(t){var e=Rs();return function(){var o=Ut(t),n;if(e){var i=Ut(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Os(this,n)}}function Wn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function Vs(t){if(Array.isArray(t))return Wn(t)}function Ws(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yr(t,e){if(t){if(typeof t=="string")return Wn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wn(t,e)}}function Zs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
31
+ `);const C=m.state[c];if(C==null)return;JSON.stringify(n.getState())!==JSON.stringify(C)&&p(C);return}n.dispatchFromDevtools&&typeof n.dispatch=="function"&&n.dispatch(m)});case"DISPATCH":switch(b.payload.type){case"RESET":return p(I),c===void 0?d==null?void 0:d.init(n.getState()):d==null?void 0:d.init(Zt(s.name));case"COMMIT":if(c===void 0){d==null||d.init(n.getState());return}return d==null?void 0:d.init(Zt(s.name));case"ROLLBACK":return An(b.state,m=>{if(c===void 0){p(m),d==null||d.init(n.getState());return}p(m[c]),d==null||d.init(Zt(s.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return An(b.state,m=>{if(c===void 0){p(m);return}JSON.stringify(n.getState())!==JSON.stringify(m[c])&&p(m[c])});case"IMPORT_STATE":{const{nextLiftedState:m}=b.payload,C=(y=m.computedStates.slice(-1)[0])==null?void 0:y.state;if(!C)return;p(c===void 0?C:C[c]),d==null||d.send(null,m);return}case"PAUSE_RECORDING":return v=!v}return}}),I},An=(t,e)=>{let r;try{r=JSON.parse(t)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}r!==void 0&&e(r)},Rr=Wi.create()(is(t=>({filters:[],setDefaultFilters:e=>t({filters:e}),addFilters:(e,r,o)=>t(n=>({filters:n.filters.map(a=>{if(a.key===e){const c=[...a.values,r];return typeof o=="function"&&o({filterType:e,value:c.join(",")}),{...a,values:c}}return a})})),removeFilters:(e,r,o)=>t(n=>({filters:n.filters.map(a=>{if(a.key===e){const c=a.values.filter(s=>s!==r);return typeof o=="function"&&o({filterType:e,value:c.join(",")}),{...a,values:c}}return a})})),resetFilters:(e,r)=>t(o=>({filters:o.filters.map(i=>i.key===e?(typeof r=="function"&&r({filterType:e,value:""}),{...i,values:[]}):i)})),resetAllFilters:e=>t(r=>({filters:r.filters.map(o=>(typeof e=="function"&&e(),{...o,values:[]}))}))})));function ss({filterConfig:t}){const{filters:e,isLoading:r,isError:o,filterDispatch:n,filterReset:i}=t,a=Rr(p=>p.filters),{setDefaultFilters:c,addFilters:s,removeFilters:l,resetFilters:d,resetAllFilters:g}=Rr(p=>({setDefaultFilters:p.setDefaultFilters,addFilters:p.addFilters,removeFilters:p.removeFilters,resetFilters:p.resetFilters,resetAllFilters:p.resetAllFilters}));if(N.useEffect(()=>{!(e!=null&&e.length)||r||c((e==null?void 0:e.map(p=>({key:p.key,values:[]})))||[])},[e==null?void 0:e.length,r]),!e||!e.length)return null;if(o)return u.jsx("div",{className:re.filtersInfo,children:"Error getting filters"});if(r)return u.jsx("div",{className:re.filtersInfo,children:"Getting filters..."});const v=a.map(p=>p.values).flat();return u.jsxs("div",{className:re.filters,children:[v.length>0&&u.jsx("img",{title:"Reset filters",src:qi,alt:"reset all filters",className:re.resetIcon2,onClick:()=>{g(i)}}),e.map((p,I)=>u.jsx(rs,{filter:p,tableFilters:a,tableFilter:a[I],addFilters:s,removeFilters:l,resetFilters:d,filterDispatch:n},p.id))]})}const Br={box:"_box_whvoa_1",loader:"_loader_whvoa_11"};function as({text:t="Getting data...",isError:e}){return u.jsx("tbody",{className:Br.box,children:u.jsx("tr",{className:Br.loader,children:!e&&u.jsx("td",{children:t})})})}const Or={box:"_box_11cjo_1",empty:"_empty_11cjo_8"};function us({emptyStateConfig:t,search:e}){return t?u.jsx("tbody",{className:Or.box,children:u.jsx("tr",{children:u.jsx("td",{className:Or.empty,colSpan:t.columns,children:u.jsx(Pr,{icon:t.icon,title:e!=null&&e.length?t.emptySearchTitle||"":t.title,desc:e!=null&&e.length?"":t.desc,btnText:t.btnText,onClick:t.onClick})})})}):null}const Nn={box:"_box_nao91_1",label:"_label_nao91_9"};function cs({actionsConfig:t,data:e}){if(!t)return null;const{menuItems:r=[],isDropdownActions:o,key:n,customComp:i}=t;return o?!n&&!i?u.jsx("div",{className:Nn.box,children:u.jsx(he.ActionsDropdown,{menuItems:r,data:e})}):u.jsxs("div",{className:Nn.box,children:[u.jsx(he.ActionsDropdown,{menuItems:r,data:e,variant:"small"}),i||(n&&e[n]?u.jsx("div",{className:Nn.label,children:e[n]}):null)]}):null}const ct={selectedActions:"_selectedActions_1kmqu_1",selectedAction:"_selectedAction_1kmqu_1",selectedInfo:"_selectedInfo_1kmqu_17",actionsBtnIconSpan:"_actionsBtnIconSpan_1kmqu_36",actionsBtnIcon:"_actionsBtnIcon_1kmqu_36",selectedIcon:"_selectedIcon_1kmqu_46"};function ls({rowSelectionConfig:t,rowSelection:e}){if(!t||!t.isCheckbox||Object.keys(e).length===0)return null;const{isCheckbox:r,actions:o,iconSrc:n}=t;return u.jsx(u.Fragment,{children:r&&Object.keys(e).length>0&&u.jsxs("div",{className:ct.selectedActions,children:[u.jsx("div",{className:ct.selectedInfo,children:Object.keys(e).length}),u.jsxs("div",{className:ct.selectedAction,children:[n&&u.jsx("div",{children:u.jsx(ce,{path:n||"",svgClassName:ct.selectedIcon})}),u.jsx(he.MenuButton,{variant:Xe.SECONDARY,size:"sm",isCustomTrigger:!0,menuItems:(o==null?void 0:o.map(i=>({label:i.text,onClick:i.onClick,iconSrc:i.icon})))||[],positionerProps:{placement:"bottom-start"},children:u.jsxs(he,{variant:Xe.SECONDARY,size:"sm",children:["Actions",u.jsx(ce,{svgClassName:ct.actionsBtnIcon,path:ut,spanClassName:ct.actionsBtnIconSpan})]})})]})]})})}const ds="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQuNjI1IDYuNzQ2YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1MSAzLjgzYy4yMi0uMjIuNTc1LS4yMi43OTUgMGwyLjEyMSAyLjEyYS41NjMuNTYzIDAgMCAxLS43OTUuNzk1TDYuOTEgNS41ODZ2Ny4xMjdhLjU2My41NjMgMCAwIDEtMS4xMjUgMFY1LjU4NWwtMS4xNiAxLjE2MVptNy4wMjctMi4wMmMuMzEgMCAuNTYyLjI1MS41NjIuNTYydjcuMTI3bDEuMTYxLTEuMTZhLjU2Mi41NjIgMCAxIDEgLjc5Ni43OTVsLTIuMTIyIDIuMTIxYS41NjMuNTYzIDAgMCAxLS43OTUgMEw5LjEzMyAxMi4wNWEuNTYzLjU2MyAwIDAgMSAuNzk1LS43OTZsMS4xNjEgMS4xNjFWNS4yODhjMC0uMzEuMjUyLS41NjIuNTYzLS41NjJaIiBmaWxsPSIjQjNCMkI4Ii8+PC9zdmc+",gs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTQuNjI1IDYuNzQ2YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1MSAzLjgzYy4yMi0uMjIuNTc1LS4yMi43OTUgMGwyLjEyMSAyLjEyYS41NjMuNTYzIDAgMCAxLS43OTUuNzk1TDYuOTEgNS41ODZ2Ny4xMjdhLjU2My41NjMgMCAwIDEtMS4xMjUgMFY1LjU4NWwtMS4xNiAxLjE2MVptNy4wMjctMi4wMmMuMzEgMCAuNTYyLjI1MS41NjIuNTYydjcuMTI3bDEuMTYxLTEuMTZhLjU2Mi41NjIgMCAxIDEgLjc5Ni43OTVsLTIuMTIyIDIuMTIxYS41NjIuNTYyIDAgMCAxLS43OTUgMEw5LjEzMyAxMi4wNWEuNTYzLjU2MyAwIDAgMSAuNzk1LS43OTZsMS4xNjEgMS4xNjFWNS4yODhjMC0uMzEuMjUyLS41NjIuNTYzLS41NjJaIiBmaWxsPSIjQjNCMkI4Ii8+PHBhdGggZD0iTTQuNjI1IDYuNzQ3YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1IDMuODNjLjIyLS4yMi41NzYtLjIyLjc5NiAwbDIuMTIxIDIuMTIyYS41NjIuNTYyIDAgMSAxLS43OTUuNzk1TDYuOTEgNS41ODd2Ny4xMjZhLjU2Mi41NjIgMCAxIDEtMS4xMjUgMFY1LjU4NmwtMS4xNiAxLjE2MVoiIGZpbGw9IiM4QTdDREIiLz48L2c+PC9zdmc+",fs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTQuNjI1IDYuNzQ2YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1MSAzLjgzYy4yMi0uMjIuNTc1LS4yMi43OTUgMGwyLjEyMSAyLjEyYS41NjIuNTYyIDAgMSAxLS43OTUuNzk1TDYuOTEgNS41ODZ2Ny4xMjdhLjU2My41NjMgMCAwIDEtMS4xMjUgMFY1LjU4NWwtMS4xNiAxLjE2MVptNy4wMjctMi4wMmMuMzEgMCAuNTYyLjI1MS41NjIuNTYydjcuMTI3bDEuMTYxLTEuMTZhLjU2Mi41NjIgMCAxIDEgLjc5Ni43OTVsLTIuMTIyIDIuMTIxYS41NjIuNTYyIDAgMCAxLS43OTUgMEw5LjEzMyAxMi4wNWEuNTYzLjU2MyAwIDAgMSAuNzk1LS43OTZsMS4xNjEgMS4xNjFWNS4yODhjMC0uMzEuMjUyLS41NjIuNTYzLS41NjJaIiBmaWxsPSIjOEE3Q0RCIi8+PHBhdGggZD0iTTQuNjI1IDYuNzQ3YS41NjIuNTYyIDAgMSAxLS43OTYtLjc5NUw1Ljk1IDMuODNjLjIyLS4yMi41NzYtLjIyLjc5NiAwbDIuMTIxIDIuMTIyYS41NjIuNTYyIDAgMSAxLS43OTUuNzk1TDYuOTEgNS41ODd2Ny4xMjZhLjU2Mi41NjIgMCAxIDEtMS4xMjUgMFY1LjU4NmwtMS4xNiAxLjE2MVoiIGZpbGw9IiNCM0IyQjgiLz48L2c+PC9zdmc+",oe={box:"_box_18qqq_1",header:"_header_18qqq_6",meta:"_meta_18qqq_18",total:"_total_18qqq_25",selectorGrp:"_selectorGrp_18qqq_32",table:"_table_18qqq_38",tableHead:"_tableHead_18qqq_48",tableData:"_tableData_18qqq_53",tableDataWithSelection:"_tableDataWithSelection_18qqq_63",tableBody:"_tableBody_18qqq_67",tableRow:"_tableRow_18qqq_67",headerTxt:"_headerTxt_18qqq_77",tableHeader:"_tableHeader_18qqq_84",tableHeaderSort:"_tableHeaderSort_18qqq_94",tableHeaderSortSpan:"_tableHeaderSortSpan_18qqq_99",tableHeaderSortIcon:"_tableHeaderSortIcon_18qqq_105"},Sn={box:"_box_1wr6m_1",selector:"_selector_1wr6m_10",active:"_active_1wr6m_30"};function Fr({selectors:t}){const[e,r]=N.useState(0);return u.jsx("div",{className:Sn.box,children:t.map((o,n)=>u.jsx("div",{onClick:()=>{r(n),o.onClick()},className:P(Sn.selector,n===e&&Sn.active),style:{borderRadius:n===0?"4px 0px 0px 4px":n===t.length-1?"0px 4px 4px 0px":0,boxShadow:n===0?"none":""},children:o.name},o.name))})}const St={checkboxSpan:"_checkboxSpan_dxec8_1",checkbox:"_checkbox_dxec8_1",checkboxSelect:"_checkboxSelect_dxec8_33",radio:"_radio_dxec8_39"},Et="select",kt="dropdown-actions",Xt="select-radio";function Vr({indeterminate:t,row:e,isHeader:r,...o}){const n=N.useRef(null);return N.useEffect(()=>{typeof t=="boolean"&&(n.current.indeterminate=!o.checked&&t)},[n,t]),u.jsx("span",{className:St.checkboxSpan,style:{display:r?"flex":void 0},children:u.jsx("input",{type:"checkbox",ref:n,className:P(St.checkbox,e.id===Et&&St.checkboxSelect),...o})})}function ps({indeterminate:t,row:e,...r}){const o=N.useRef(null);return N.useEffect(()=>{o.current.indeterminate=t},[o,t]),u.jsx("span",{className:St.radioSpan,children:u.jsx("input",{type:"radio",ref:o,className:P(St.radio),...r})})}function ms({data:t,loaderConfig:e,columns:r,filterConfig:o,sortConfig:n,rowSelectionConfig:i={isCheckbox:!1,isRadio:!1},actionsConfig:a={isDropdownActions:!1,key:""},searchConfig:c,totalText:s,selectorConfig:l,paginationConfig:d,emptyStateConfig:g,headerText:v}){var te;const[p,I]=N.useState([]),[b,y]=N.useState({}),[m,C]=N.useState({}),x=!e.isFetching&&!e.isError&&!t.length,{isCheckbox:A,isRadio:h,actions:_,setSelectedRows:E,iconSrc:j}=i;_r(()=>{if(!n||!p.length)return;const{setSortOrd:D,setSortBy:X,sortMap:K}=n;X(K[p[0].id]),D(p[0].desc?"desc":"asc")},[p]),_r(()=>{if(!i||!E)return;const D=Z.getSelectedRowModel().rows.map(X=>X.original);E([...D])},[m]);const F=[{id:Et,header:D=>u.jsx(Vr,{checked:D.table.getIsAllRowsSelected(),indeterminate:D.table.getIsSomeRowsSelected(),onChange:D.table.getToggleAllRowsSelectedHandler(),row:D.header,isHeader:!0}),cell:({row:D})=>u.jsx(Vr,{checked:D.getIsSelected(),disabled:!D.getCanSelect(),indeterminate:D.getIsSomeSelected(),onChange:D.getToggleSelectedHandler(),row:D}),size:55},{id:Xt,cell:({row:D})=>u.jsx(ps,{checked:D.getIsSelected(),disabled:!D.getCanSelect(),indeterminate:D.getIsSomeSelected(),onChange:D.getToggleSelectedHandler(),row:D}),size:55},...r,{id:kt,cell:D=>u.jsx(cs,{actionsConfig:a,data:D.row.original}),header:"Actions",maxSize:150}],Z=yt.useReactTable({data:t,columns:F,state:{sorting:p,columnVisibility:b,rowSelection:m},manualSorting:!0,onSortingChange:I,onColumnVisibilityChange:y,enableRowSelection:!0,onRowSelectionChange:C,enableMultiRowSelection:!h,manualPagination:!0,manualFiltering:!0,getCoreRowModel:yt.getCoreRowModel(),defaultColumn:{minSize:0,size:Number.MAX_SAFE_INTEGER,maxSize:Number.MAX_SAFE_INTEGER}});return N.useLayoutEffect(()=>{if(A&&h)throw new Error("Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one")},[]),N.useLayoutEffect(()=>{var D;A||(D=Z.getColumn(Et))==null||D.toggleVisibility(!1)},[]),N.useLayoutEffect(()=>{var D;h||(D=Z.getColumn(Xt))==null||D.toggleVisibility(!1)},[]),N.useLayoutEffect(()=>{var D;a.isDropdownActions||(D=Z.getColumn(kt))==null||D.toggleVisibility(!1)},[]),N.useEffect(()=>{C({})},[c==null?void 0:c.search]),u.jsxs("div",{className:oe.box,children:[!e.isError&&u.jsxs("div",{className:oe.header,children:[!v&&u.jsxs("div",{className:oe.meta,children:[u.jsx("div",{className:oe.total,children:s}),typeof o=="object"&&u.jsx(ss,{filterConfig:o})]}),v&&u.jsx("div",{className:oe.headerTxt,children:v}),u.jsxs("div",{className:oe.selectorGrp,children:[typeof l=="object"&&u.jsx(Fr,{selectors:l==null?void 0:l.selectors}),typeof c=="object"&&u.jsx("div",{className:oe.search,children:u.jsx(Wt,{id:"table-search",search:c.search,setSearch:c.setSearch,placeholder:c.placeholder,clearIconClearFn:()=>C({})})})]})]}),u.jsx(ls,{rowSelectionConfig:i,rowSelection:m}),d?u.jsx(Bi,{dataLength:t.length,next:d.fetchNextPage,hasMore:(t==null?void 0:t.length)<((te=d.metaData)==null?void 0:te.total_items),loader:d.loader,height:d.height,children:u.jsx(Wr,{table:Z,isCheckbox:A,isRadio:h,loaderConfig:e,isEmpty:x,emptyStateConfig:g,search:c==null?void 0:c.search})}):u.jsx(Wr,{table:Z,isCheckbox:A,isRadio:h,loaderConfig:e,isEmpty:x,emptyStateConfig:g,search:c==null?void 0:c.search})]})}function Wr({table:t,isCheckbox:e,isRadio:r,loaderConfig:o,emptyStateConfig:n,isEmpty:i,search:a}){return u.jsxs("table",{className:oe.table,children:[u.jsx("thead",{className:oe.tableHead,children:t.getHeaderGroups().map(c=>u.jsx("tr",{className:oe.tableRow,children:c.headers.map(s=>(s.index,u.jsx("th",{className:P(oe.tableHeader,s.column.getCanSort()&&oe.tableHeaderSort),style:{width:s.getSize()===Number.MAX_SAFE_INTEGER?"auto":s.getSize(),paddingRight:s.id===kt?"20px":void 0,paddingLeft:s.index===0&&s.id!==Et&&s.id!==Xt?"20px":void 0},children:s.isPlaceholder?null:u.jsxs("div",{onClick:s.column.getToggleSortingHandler(),style:{display:"flex",alignItems:"center",justifyContent:s.id===kt?"flex-end":void 0},children:[yt.flexRender(s.column.columnDef.header,s.getContext()),{asc:u.jsx(ce,{path:gs,spanClassName:oe.tableHeaderSortSpan}),desc:u.jsx(ce,{path:fs,spanClassName:oe.tableHeaderSortSpan}),false:s.column.getCanSort()?u.jsx(ce,{path:ds,spanClassName:oe.tableHeaderSortSpan,svgClassName:oe.tableHeaderSort}):null}[s.column.getIsSorted()]??null]})},s.id)))},c.id))}),o.isFetching?u.jsx(as,{text:o.text,isError:o.isError}):i?u.jsx(us,{emptyStateConfig:n,search:a}):u.jsx("tbody",{className:oe.tableBody,children:t.getRowModel().rows.map((c,s)=>u.jsx("tr",{className:oe.tableRow,children:c.getVisibleCells().map(l=>{const d=(e||r)&&(l.id===`${s}_${Xt}`||l.id===`${s}_${Et}`);return u.jsx("td",{className:P(oe.tableData,(e||r)&&oe.tableDataWithSelection),style:{width:l.column.getSize()===Number.MAX_SAFE_INTEGER?"auto":l.column.getSize(),verticalAlign:d?"middle":void 0},children:yt.flexRender(l.column.columnDef.cell,l.getContext())},l.id)})},c.id))}),o.isError&&u.jsx("tbody",{style:{height:"200px"},children:u.jsx("tr",{children:u.jsx("td",{colSpan:n==null?void 0:n.columns,style:{textAlign:"center"},children:o.errMsg||"Error getting data, please try again later."})})}),u.jsx("tfoot",{className:oe.tableFoot,children:t.getFooterGroups().map(c=>u.jsx("tr",{className:oe.tableRow,children:c.headers.map(s=>u.jsx("th",{children:s.isPlaceholder?null:yt.flexRender(s.column.columnDef.footer,s.getContext())},s.id))},c.id))})]})}const tt={container:"_container_186a7_1",inputLabel:"_inputLabel_186a7_7",required:"_required_186a7_15",error:"_error_186a7_42",options:"_options_186a7_62",option:"_option_186a7_62"};function bs({label:t,isLoading:e=!1,required:r=!1,labelClassName:o,inputClassName:n,disabled:i=!1,defaultOptions:a=[],isAPIFilter:c=!1,onChange:s,onSelect:l,placeholder:d,optionsMaxHeight:g="300px",value:v}){const[p,I]=N.useState(a),[b,y]=N.useState(""),m=Cn.collection({items:a,itemToValue:h=>h.value,itemToString:h=>h.label}),[C,x]=ne.useMachine(Cn.machine({id:w.useId(),collection:m,onOpenChange(h){h.open&&I(a)},async onInputValueChange({value:h}){if(y(h[0]),!c){const _=p.filter(E=>E.label.toLowerCase().includes(h[0].toLowerCase()));I(_);return}h[0]&&s&&(I([]),s(h[0]))},disabled:i,inputValue:v,multiple:!1,onValueChange(h){}}),{context:{collection:m}}),A=Cn.connect(C,x,ne.normalizeProps);return N.useEffect(()=>{a&&I(a)},[a]),u.jsxs("div",{children:[u.jsxs("div",{...A.rootProps,children:[t&&u.jsx("label",{...A.labelProps,className:P(tt.inputLabel,o,r&&tt.required),children:t}),u.jsx("div",{...A.controlProps,className:tt.container,children:u.jsx("input",{...A.inputProps,className:n})})]}),u.jsx("div",{...A.positionerProps,children:p.length>0?u.jsx("ul",{...A.contentProps,className:tt.options,style:{maxHeight:g},children:p.map((h,_)=>u.jsx("li",{className:tt.option,...A.getItemProps({item:h}),children:h.listComponent?h.listComponent:h.label},`${h.value}:${_}`))}):b&&u.jsxs("ul",{...A.contentProps,className:tt.options,style:{maxHeight:g},children:[c&&!e&&!p.length&&u.jsx("li",{className:tt.option,...A.getItemProps({item:{label:"",value:""}}),children:"No result found"}),!c&&!p.length&&u.jsx("li",{className:tt.option,...A.getItemProps({item:{label:"No result found",value:"No result found",disabled:!0}}),children:"No result found"})]})})]})}const Ce={backdropLayer:"_backdropLayer_1c8ms_1",show:"_show_1c8ms_12",backdrop:"_backdrop_1c8ms_1",showBackdrop:"_showBackdrop_1c8ms_24",container:"_container_1c8ms_28",rightAlign:"_rightAlign_1c8ms_40",leftAlign:"_leftAlign_1c8ms_44",sm:"_sm_1c8ms_48",md:"_md_1c8ms_52",lg:"_lg_1c8ms_56",xlg:"_xlg_1c8ms_60",xxlg:"_xxlg_1c8ms_64",content:"_content_1c8ms_68",headerContainer:"_headerContainer_1c8ms_74",showBorder:"_showBorder_1c8ms_81",title:"_title_1c8ms_85",closeBtn:"_closeBtn_1c8ms_93",descriptionContainer:"_descriptionContainer_1c8ms_106",fullHeight:"_fullHeight_1c8ms_112",footer:"_footer_1c8ms_117",footerBtnContainer:"_footerBtnContainer_1c8ms_133",footerBtn:"_footerBtn_1c8ms_133",saveBtn:"_saveBtn_1c8ms_147",cancelBtn:"_cancelBtn_1c8ms_148"};function Is({isOpen:t,onClose:e,children:r,title:o,customHeader:n,customFooter:i,size:a="md",showBackdrop:c=!0,showHeader:s=!0,showFooter:l=!0,buttons:d,footerAddon:g,headerClassName:v,contentClassName:p,footerClassName:I,showHeaderBorder:b=!0,drawerPosition:y="right"}){const m=N.useRef(null),C=N.useRef(null),x=N.useRef(null),A=y==="left"?"-100%":"100%",h=!s&&!l;return N.useEffect(()=>{const _=setTimeout(()=>{var E,j;m.current&&C&&x&&(m.current.style.transform=t?"translateX(0)":`translateX(${A})`,C.current.style.maxHeight=`calc(100vh - (1.75rem * 2) - ${(E=x.current)==null?void 0:E.clientHeight}px)`,C.current.style.height=`calc(100vh - (1.75rem * 2) - ${(j=x.current)==null?void 0:j.clientHeight}px)`)},0);return()=>{clearTimeout(_)}},[t]),u.jsxs(u.Fragment,{children:[u.jsx("div",{className:P(Ce.backdropLayer,t&&Ce.show),onClick:e,children:c&&u.jsx("div",{className:P(Ce.backdrop,t&&Ce.showBackdrop)})}),u.jsx("div",{className:P(Ce.container,Ce[a],Ce[`${y}Align`]),ref:m,children:u.jsxs("div",{className:Ce.content,children:[s&&u.jsx("div",{className:P(Ce.headerContainer,{[Ce.showBorder]:b},v),children:n||u.jsxs(u.Fragment,{children:[u.jsx("h1",{className:Ce.title,children:o}),u.jsx("button",{type:"button",className:Ce.closeBtn,onClick:e})]})}),u.jsx("div",{className:P(Ce.descriptionContainer,{[Ce.fullHeight]:h},p),ref:C,children:r}),l&&u.jsx("div",{className:P(Ce.footer,I),ref:x,children:i||d&&u.jsxs("div",{className:Ce.footerBtnContainer,children:[u.jsx("div",{className:Ce.footerBtn,children:d.map((_,E)=>u.jsx(he,{disabled:_.disabled,variant:_.variant,onClick:_.onClick?_.onClick:void 0,type:_.btnType,children:_.btnText},E))}),g&&u.jsx("div",{children:g})]})})]})})]})}const le={inputContainer:"_inputContainer_1re0u_1",adapt:"_adapt_1re0u_5",sm:"_sm_1re0u_9",md:"_md_1re0u_13",inputLabelContainer:"_inputLabelContainer_1re0u_17",inputLabel:"_inputLabel_1re0u_17",infoCircleSvg:"_infoCircleSvg_1re0u_35",required:"_required_1re0u_40",inputGroup:"_inputGroup_1re0u_46",inputWrapper:"_inputWrapper_1re0u_52",input:"_input_1re0u_1",textarea:"_textarea_1re0u_58",error:"_error_1re0u_88",errorMsg:"_errorMsg_1re0u_105",inputElement:"_inputElement_1re0u_114",left:"_left_1re0u_125",right:"_right_1re0u_129",inputAddon:"_inputAddon_1re0u_133",dropdownContainer:"_dropdownContainer_1re0u_162",searchContainer:"_searchContainer_1re0u_177",dropdownOption:"_dropdownOption_1re0u_185"};var ae=(t=>(t.INPUT_ADDON="InputAddon",t.INPUT_LEFT_ADDON="InputLeftAddon",t.INPUT_RIGHT_ADDON="InputRightAddon",t.INPUT_ELEMENT="InputElement",t.INPUT_LEFT_ELEMENT="InputLeftElement",t.INPUT_RIGHT_ELEMENT="InputRightElement",t.INPUT_CONTAINER="InputContainer",t.INPUT_LABEL="InputLabel",t.INPUT_GROUP="InputGroup",t.INPUT="Input",t))(ae||{});function En({customClasses:t,customStyles:e,name:r,id:o,value:n,onChange:i,restprops:a,cols:c,errorMsg:s,disabled:l=!1,rows:d=2,type:g="text",placeholder:v="Placeholder",onBlur:p}){const I=N.useRef(null);return u.jsxs("div",{className:le.inputWrapper,children:[g==="textarea"?u.jsx("textarea",{rows:d,cols:c,style:e,className:P(le.textarea,s&&le.error,t),placeholder:v,name:r,id:o,value:n,onChange:i,disabled:l,onBlur:p,...a}):u.jsx("input",{ref:I,style:e,type:g,className:P(le.input,s&&le.error,t),placeholder:v,name:r,id:o,value:n,onChange:i,disabled:l,onClick:()=>{var b;return(b=I.current)==null?void 0:b.showPicker()},onBlur:p,...a}),s&&u.jsx("p",{className:le.errorMsg,children:s})]})}En.displayName=ae.INPUT,En.id=ae.INPUT;function Ht({children:t,placement:e="left",isDropdown:r=!1,dropdownOptions:o,handleOptionClick:n=()=>{},showDropdownSearch:i=!0}){var m;const a=e==="left"?"left":"right",[c,s]=N.useState(!1),l=N.useRef(null),[d,g]=N.useState(""),[v,p]=N.useState(!0);N.useEffect(()=>(document.addEventListener("click",I),()=>{document.removeEventListener("click",I)}),[]);const I=C=>{var x;(x=l.current)!=null&&x.contains(C.target)||s(!1)},b=()=>{var C;if(c)s(!1),p(!0);else{s(!0);const x=(C=l.current)==null?void 0:C.getBoundingClientRect(),A=(x==null?void 0:x.right)+(x==null?void 0:x.width),h=window.innerWidth-100;A>h&&p(!1)}},y=C=>(C.label+" "+C.value).toLowerCase().includes(d.toLowerCase());return u.jsxs("div",{className:P(le.inputAddon,le[a]),onClick:()=>{r&&b()},ref:l,style:{cursor:r?"pointer":"inherit"},children:[t,r&&u.jsxs(u.Fragment,{children:[u.jsx(ce,{path:ut,width:20,customSpanStyles:{width:"20px"}}),c&&u.jsxs("div",{className:le.dropdownContainer,style:{left:v?"0":"inherit",right:v?"inherit":"0",paddingTop:i?"0":"12px"},children:[i&&u.jsx("div",{className:le.searchContainer,onClick:C=>C.stopPropagation(),children:u.jsx(Wt,{search:d,setSearch:g,id:"input-add-on-search"})}),(m=o==null?void 0:o.filter(y))==null?void 0:m.map(C=>u.jsx("div",{className:le.dropdownOption,onClick:x=>{x.stopPropagation(),n(C),b()},children:C.label},C.value))]})]})]})}function _n({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return u.jsx(Ht,{placement:"left",isDropdown:e,dropdownOptions:r,handleOptionClick:o,showDropdownSearch:n,children:t})}function wn({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return u.jsx(Ht,{placement:"right",isDropdown:e,dropdownOptions:r,handleOptionClick:o,showDropdownSearch:n,children:t})}Ht.displayName=ae.INPUT_ADDON,Ht.id=ae.INPUT_ADDON,_n.displayName=ae.INPUT_LEFT_ADDON,_n.id=ae.INPUT_LEFT_ADDON,wn.displayName=ae.INPUT_RIGHT_ADDON,wn.id=ae.INPUT_RIGHT_ADDON;function zt({children:t,customClassName:e,customStyles:r,size:o="adapt"}){return u.jsx("div",{className:P(le.inputContainer,le[o],e),style:r,children:t})}zt.displayName=ae.INPUT_CONTAINER,zt.id=ae.INPUT_CONTAINER;function Yt({children:t,placement:e="left"}){const r=e==="left"?"left":"right";return u.jsx("div",{className:P(le.inputElement,le[r]),children:t})}function jn({children:t}){return u.jsx(Yt,{placement:"left",children:t})}function Mn({children:t}){return u.jsx(Yt,{placement:"right",children:t})}Yt.displayName=ae.INPUT_ELEMENT,Yt.id=ae.INPUT_ELEMENT,jn.displayName=ae.INPUT_LEFT_ELEMENT,jn.id=ae.INPUT_LEFT_ELEMENT,Mn.displayName=ae.INPUT_RIGHT_ELEMENT,Mn.id=ae.INPUT_RIGHT_ELEMENT;function Tn({children:t}){const e={},r=N.Children.toArray(t);r.forEach(n=>{n.type.id==="InputLeftElement"&&(e.paddingInlineStart="36px"),n.type.id==="InputRightElement"&&(e.paddingInlineEnd="36px"),n.type.id==="InputLeftAddon"&&(e.borderTopLeftRadius=0,e.borderBottomLeftRadius=0),n.type.id==="InputRightAddon"&&(e.borderTopRightRadius=0,e.borderBottomRightRadius=0)});const o=r.map(n=>n.type.id!=="Input"?n:N.cloneElement(n,{...n.props,customStyles:{...e,...n.props.customStyles}}));return u.jsx("div",{className:le.inputGroup,children:o})}Tn.displayName=ae.INPUT_GROUP,Tn.id=ae.INPUT_GROUP;const Zr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOCAxNUE3IDcgMCAxIDEgOCAxYTcgNyAwIDAgMSAwIDE0Wm0wIDFBOCA4IDAgMSAwIDggMGE4IDggMCAwIDAgMCAxNloiIGZpbGw9IiNCNUI1QjUiLz48cGF0aCBkPSJtOC45MyA2LjU4OC0yLjI5LjI4Ny0uMDgyLjM4LjQ1LjA4M2MuMjk0LjA3LjM1Mi4xNzYuMjg4LjQ2OWwtLjczOCAzLjQ2OGMtLjE5NC44OTcuMTA1IDEuMzE5LjgwOCAxLjMxOS41NDUgMCAxLjE3OC0uMjUyIDEuNDY1LS41OThsLjA4OC0uNDE2Yy0uMi4xNzYtLjQ5Mi4yNDYtLjY4Ni4yNDYtLjI3NSAwLS4zNzUtLjE5My0uMzA0LS41MzNMOC45MyA2LjU4OFpNOSA0LjVhMSAxIDAgMSAxLTIgMCAxIDEgMCAwIDEgMiAwWiIgZmlsbD0iI0I1QjVCNSIvPjwvc3ZnPg==",_t={trigger:"_trigger_1ovxi_1",content:"_content_1ovxi_7",arrow:"_arrow_1ovxi_18"};function vs({children:t,api:e,customStyles:r={}}){return u.jsx("button",{...e.triggerProps,type:"button",className:_t.trigger,style:{...r},children:t})}function hs({children:t,api:e,bg:r="black",positionerStyles:o={},containerStyles:n={}}){var c,s;const i=!["black","gray"].includes(r),a={...e==null?void 0:e.arrowProps,...i&&{style:{...(c=e==null?void 0:e.arrowProps)==null?void 0:c.style,"--arrow-background":r}}};return u.jsx(u.Fragment,{children:e.isOpen&&u.jsxs("div",{...e.positionerProps,style:{...(s=e==null?void 0:e.positionerProps)==null?void 0:s.style,...o},children:[u.jsx("div",{...a,className:P(_t.arrow,{[_t[r]]:!i}),children:u.jsx("div",{...e.arrowTipProps})}),u.jsx("div",{...e.contentProps,className:P(_t.content,_t[r]),style:{background:i?r:"",...n},children:t})]})})}function Qe({children:t,openDelay:e=0,closeDelay:r=0,placement:o="top"}){const[n,i]=ne.useMachine(Ot.machine({id:N.useId(),openDelay:e,closeDelay:r,positioning:{placement:o,gutter:3}})),a=Ot.connect(n,i,ne.normalizeProps),c=N.Children.toArray(t).map(s=>N.cloneElement(s,{...s.props??{},api:a}));return u.jsx(u.Fragment,{children:c})}Qe.Trigger=vs,Qe.Content=hs;function Jt({children:t,customClasses:e,customStyles:r,required:o=!1,htmlFor:n,restprops:i={},infoText:a,infoTextTooltipStyles:c={}}){return N.useId(),u.jsxs("div",{className:le.inputLabelContainer,children:[u.jsx("label",{htmlFor:n,className:P(le.inputLabel,e,o&&le.required),style:r,...i,children:u.jsx("span",{children:t})}),a&&u.jsxs(Qe,{children:[u.jsx(Qe.Trigger,{children:u.jsx(ce,{path:Zr,svgClassName:le.infoCircleSvg})}),u.jsx(Qe.Content,{positionerStyles:c,children:a})]})]})}Jt.displayName=ae.INPUT_LABEL,Jt.id=ae.INPUT_LABEL;const Le={backdrop:"_backdrop_1la4q_1",container:"_container_1la4q_16",contentWrapper:"_contentWrapper_1la4q_30",sm:"_sm_1la4q_39",md:"_md_1la4q_43",fullScreen:"_fullScreen_1la4q_47",content:"_content_1la4q_30",header:"_header_1la4q_58",showBorder:"_showBorder_1la4q_75",closeIconSpan:"_closeIconSpan_1la4q_79",closeIcon:"_closeIcon_1la4q_79",body:"_body_1la4q_90",footer:"_footer_1la4q_99",btnsContainer:"_btnsContainer_1la4q_115"};function kr({api:t}){return u.jsx("div",{...t==null?void 0:t.backdropProps,className:Le.backdrop})}function Cs({isOpen:t,onClose:e,children:r,size:o="md",showOverlay:n=!0,machineProps:i={}}){const a=N.useCallback(g=>{g||e()},[e]),[c,s]=ne.useMachine(jr.machine({id:N.useId(),open:t,onOpenChange:g=>a(g.open),...i})),l=jr.connect(c,s,ne.normalizeProps),d=N.Children.toArray(r).map(g=>N.cloneElement(g,{...g.props,api:l,size:o}));return u.jsxs(ne.Portal,{children:[n&&u.jsx(kr,{api:l}),d]})}function ys({children:t,api:e,customStyles:r={}}){return u.jsx("div",{...e.descriptionProps,className:Le.body,style:r,children:t})}function xs({children:t,api:e,size:r="md"}){const o=N.Children.toArray(t).map(n=>N.cloneElement(n,{...n.props,api:e}));return u.jsx("div",{...e==null?void 0:e.containerProps,className:Le.container,children:u.jsx("div",{className:P(Le.contentWrapper,Le[r]),children:u.jsx("div",{...e==null?void 0:e.contentProps,className:Le.content,children:o})})})}function As({children:t,api:e,buttons:r,showBorder:o=!0}){return u.jsx("div",{className:P(Le.footer,{[Le.showBorder]:o}),children:t||u.jsx("div",{className:Le.btnsContainer,children:r.map((n,i)=>u.jsx(he,{disabled:n.disabled,variant:n.variant,onClick:async()=>{await n.onClick(),e==null||e.close()},size:n.btnSize,children:n.isLoading?n.loadingText:n.btnText},i))})})}function Ns({children:t,api:e,showCrossBtn:r=!0,showBorder:o=!0}){return u.jsxs("div",{...e==null?void 0:e.titleProps,className:P(Le.header,{[Le.showBorder]:o}),children:[u.jsx("div",{children:t}),r&&u.jsx("button",{...e.closeTriggerProps,type:"button",onClick:e==null?void 0:e.close,className:"hybr1d-ui-reset-btn",children:u.jsx(ce,{path:Vt,svgClassName:Le.closeIcon,spanClassName:Le.closeIconSpan})})]})}function Ss({children:t,placement:e="top",popoverProps:r,closeOnScroll:o=!1,containerRef:n}){const[i,a]=ne.useMachine(Mr.machine({id:N.useId(),positioning:{placement:e},closeOnInteractOutside:!0,portalled:!1,...r})),c=Mr.connect(i,a,ne.normalizeProps);function s(){c==null||c.close()}N.useEffect(()=>(o&&n&&n.current&&n.current.addEventListener("scroll",s),()=>{var d;o&&n&&((d=n.current)==null||d.removeEventListener("scroll",s))}),[n==null?void 0:n.current]);const l=N.Children.toArray(t).map(d=>N.cloneElement(d,{...d.props,api:c}));return u.jsx(u.Fragment,{children:l})}function Es({children:t,api:e,styles:r,className:o}){return u.jsx("button",{...e==null?void 0:e.closeTriggerProps,style:r,className:P("hybr1d-ui-reset-btn",o),onClick:e==null?void 0:e.close,children:t})}const lt={trigger:"_trigger_1ypev_1",content:"_content_1ypev_5",black:"_black_1ypev_11",white:"_white_1ypev_16",closeBtn:"_closeBtn_1ypev_21",arrow:"_arrow_1ypev_28",positioner:"_positioner_1ypev_42"};function _s({children:t,api:e,bg:r="black",styles:o,className:n,positionerStyles:i}){var d,g;const a=e!=null&&e.portalled?ne.Portal:N.Fragment,c=N.Children.toArray(t).map(v=>N.cloneElement(v,{...v.props,api:e})),s=!["black","gray"].includes(r),l={...e==null?void 0:e.arrowProps,...s&&{style:{...(d=e==null?void 0:e.arrowProps)==null?void 0:d.style,"--arrow-background":r}}};return u.jsx(a,{children:u.jsxs("div",{...e==null?void 0:e.positionerProps,className:lt.positioner,style:{...(g=e==null?void 0:e.positionerProps)==null?void 0:g.style,...i},children:[u.jsx("div",{...l,className:P(lt.arrow,{[lt[r]]:!s}),children:u.jsx("div",{...e==null?void 0:e.arrowTipProps})}),u.jsx("div",{...e==null?void 0:e.contentProps,className:P(lt.content,lt[r],n),style:{background:s?r:"",...o},children:c})]})})}function ws({children:t,api:e,styles:r,className:o}){return u.jsx("div",{...e==null?void 0:e.descriptionProps,style:r,className:o,children:t})}function js({children:t,api:e,styles:r,className:o}){return u.jsx("div",{...e==null?void 0:e.titleProps,style:r,className:o,children:t})}function Ms({children:t,api:e,openOnHover:r=!0,styles:o,className:n}){return u.jsx("button",{...e==null?void 0:e.triggerProps,onMouseEnter:r?e==null?void 0:e.open:()=>{},onMouseLeave:r?e==null?void 0:e.close:()=>{},className:P("hybr1d-ui-reset-btn",lt.trigger,n),style:o,children:t})}const de={selectContainer:"_selectContainer_1pdd3_1",errorMsg:"_errorMsg_1pdd3_5",multiLabelContainer:"_multiLabelContainer_1pdd3_14",optionContainer:"_optionContainer_1pdd3_20",profileImg:"_profileImg_1pdd3_20",singleValueContainer:"_singleValueContainer_1pdd3_22",label:"_label_1pdd3_36",subLabel:"_subLabel_1pdd3_42",closeSpan:"_closeSpan_1pdd3_49",downArrowSpan:"_downArrowSpan_1pdd3_50"},Dn={valueContainer:t=>({...t,gap:"4px"}),option:(t,{data:e,isDisabled:r,isFocused:o,isSelected:n})=>({...t,backgroundColor:r?void 0:n?e.color:o?"#f7f7f7":"#ffffff",color:"#171718",cursor:r?"not-allowed":"default",padding:"8px 12px",fontSize:"16px",lineHeight:"24px",":hover":{backgroundColor:"#f7f7f7"}}),singleValue:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",display:"flex",alignItems:"center",gap:"4px",backgroundColor:"transparent",padding:e.profileImgUrl?"0px 8px 0 0 !important":"0 !important"}),multiValue:(t,{data:e,isFocused:r})=>({...t,backgroundColor:"#f5f5f8",padding:e.profileImgUrl?"0px 8px 0 0":"0 8px",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",borderRadius:"24px",margin:"0"}),multiValueLabel:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",padding:"0 !important"}),multiValueRemove:(t,{data:e})=>({...t,color:"#b3b2b8",padding:"0",":hover":{backgroundColor:"transparent",color:"#b3b2b8"},svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),indicatorSeparator:t=>({...t,display:"none"}),dropdownIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),clearIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}})},Ln=t=>({control:(e,{isDisabled:r,isFocused:o})=>({...e,backgroundColor:r?"#f5f5f8":"transparent",color:"#171718",border:"1px solid #e2e0eb",borderColor:t?"#de350b !important":o?"#6c5bd2 !important":"#e2e0eb !important",fontSize:"16px",boxShadow:"none",transition:"all 0.3s ease-in-out",":hover":{borderColor:t?"#de350b !important":"#6c5bd2 !important"},":focus-within":{boxShadow:t?"#de350b !important":"#6c5bd2 !important"}})}),Gn=t=>u.jsxs(it.components.Option,{...t,className:P({[de.subLabelContainer]:t.data.subLabel},de.optionContainer),children:[u.jsxs("div",{className:P(de.label),children:[t.data.profileImgUrl&&u.jsx("img",{src:t.data.profileImgUrl,className:de.profileImg,alt:t.data.label}),u.jsx("span",{children:t.data.label})]}),t.data.subLabel&&u.jsx("div",{className:P(de.subLabel),children:t.data.subLabel})]}),Pn=t=>u.jsx(it.components.MultiValueLabel,{...t,children:u.jsxs("div",{className:de.multiLabelContainer,children:[t.data.profileImgUrl&&u.jsx("img",{src:t.data.profileImgUrl,className:de.profileImg,alt:t.data.label}),u.jsx("div",{className:P(de.label),children:u.jsx("span",{children:t.data.label})})]})}),Rn=t=>u.jsx(it.components.MultiValueRemove,{...t,children:u.jsx(ce,{path:Vt,spanClassName:de.closeSpan})}),Bn=t=>u.jsx(it.components.ClearIndicator,{...t,children:u.jsx(ce,{path:Vt,spanClassName:de.closeSpan})}),On=t=>u.jsx(it.components.DropdownIndicator,{...t,children:u.jsx(ce,{path:ut,spanClassName:de.downArrowSpan})}),Fn=t=>u.jsx(it.components.SingleValue,{...t,children:u.jsxs("div",{className:de.singleValueContainer,children:[t.data.profileImgUrl&&u.jsx("img",{src:t.data.profileImgUrl,className:de.profileImg,alt:t.data.label}),u.jsx("div",{className:P(de.label),children:u.jsx("span",{children:t.data.label})})]})});function Ts({options:t,onChange:e,name:r,id:o,className:n,placeholder:i,selectStyles:a,defaultValue:c,formatGroupLabel:s,customContainerStyles:l,menuPlacement:d,errorMsg:g,extraprops:v,isDisabled:p=!1,isSearchable:I=!0,isMulti:b=!1,isClearable:y=!1,CustomDropdownIndicator:m}){return u.jsxs("div",{onClick:C=>C.stopPropagation(),style:l,className:de.selectContainer,children:[u.jsx(it,{isMulti:b,placeholder:i,defaultValue:c,options:t,maxMenuHeight:170,isClearable:y,name:r,id:o,className:P(n),isSearchable:I,styles:{...Dn,...Ln(g),...a},components:{Option:Gn,MultiValueLabel:Pn,MultiValueRemove:Rn,DropdownIndicator:m||On,ClearIndicator:Bn,SingleValue:Fn},isDisabled:p,onChange:(C,x)=>{e(b?C.map(A=>A.value):(C==null?void 0:C.value)??"",x)},formatGroupLabel:s,menuPlacement:d,...v}),g&&u.jsx("p",{className:de.errorMsg,children:g})]})}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},O.apply(this,arguments)}function st(t){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st(t)}function Ds(t,e){if(st(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(st(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xr(t){var e=Ds(t,"string");return st(e)==="symbol"?e:String(e)}function dt(t,e,r){return e=Xr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(r),!0).forEach(function(o){dt(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Ls(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zr(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Xr(o.key),o)}}function Gs(t,e,r){return e&&zr(t.prototype,e),r&&zr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vn(t,e){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Vn(t,e)}function Ps(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vn(t,e)}function Ut(t){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ut(t)}function Rs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Os(t,e){if(e&&(st(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bs(t)}function Fs(t){var e=Rs();return function(){var o=Ut(t),n;if(e){var i=Ut(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Os(this,n)}}function Wn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function Vs(t){if(Array.isArray(t))return Wn(t)}function Ws(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yr(t,e){if(t){if(typeof t=="string")return Wn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wn(t,e)}}function Zs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
32
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gt(t){return Vs(t)||Ws(t)||Yr(t)||Zs()}function ks(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Xs(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Hs=function(){function t(r){var o=this;this._insertTag=function(n){var i;o.tags.length===0?o.insertionPoint?i=o.insertionPoint.nextSibling:o.prepend?i=o.container.firstChild:i=o.before:i=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,i),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(o){o.forEach(this._insertTag)},e.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xs(this));var n=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=o.charCodeAt(0)===64&&o.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
33
33
  `+o+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var a=ks(n);try{a.insertRule(o,a.cssRules.length)}catch(c){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(o)&&console.error('There was a problem inserting the following rule: "'+o+'"',c)}}else n.appendChild(document.createTextNode(o));this.ctr++},e.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Ne="-ms-",$t="-moz-",z="-webkit-",Zn="comm",kn="rule",Xn="decl",zs="@import",Jr="@keyframes",Ys="@layer",Js=Math.abs,Qt=String.fromCharCode,Us=Object.assign;function $s(t,e){return ye(t,0)^45?(((e<<2^ye(t,0))<<2^ye(t,1))<<2^ye(t,2))<<2^ye(t,3):0}function Ur(t){return t.trim()}function Qs(t,e){return(t=e.exec(t))?t[0]:t}function Y(t,e,r){return t.replace(e,r)}function Hn(t,e){return t.indexOf(e)}function ye(t,e){return t.charCodeAt(e)|0}function wt(t,e,r){return t.slice(e,r)}function He(t){return t.length}function zn(t){return t.length}function qt(t,e){return e.push(t),t}function qs(t,e){return t.map(e).join("")}var Kt=1,ft=1,$r=0,De=0,ge=0,pt="";function en(t,e,r,o,n,i,a){return{value:t,root:e,parent:r,type:o,props:n,children:i,line:Kt,column:ft,length:a,return:""}}function jt(t,e){return Us(en("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ks(){return ge}function ea(){return ge=De>0?ye(pt,--De):0,ft--,ge===10&&(ft=1,Kt--),ge}function Ge(){return ge=De<$r?ye(pt,De++):0,ft++,ge===10&&(ft=1,Kt++),ge}function ze(){return ye(pt,De)}function tn(){return De}function Mt(t,e){return wt(pt,t,e)}function Tt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qr(t){return Kt=ft=1,$r=He(pt=t),De=0,[]}function qr(t){return pt="",t}function nn(t){return Ur(Mt(De-1,Yn(t===91?t+2:t===40?t+1:t)))}function ta(t){for(;(ge=ze())&&ge<33;)Ge();return Tt(t)>2||Tt(ge)>3?"":" "}function na(t,e){for(;--e&&Ge()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return Mt(t,tn()+(e<6&&ze()==32&&Ge()==32))}function Yn(t){for(;Ge();)switch(ge){case t:return De;case 34:case 39:t!==34&&t!==39&&Yn(ge);break;case 40:t===41&&Yn(t);break;case 92:Ge();break}return De}function ra(t,e){for(;Ge()&&t+ge!==47+10;)if(t+ge===42+42&&ze()===47)break;return"/*"+Mt(e,De-1)+"*"+Qt(t===47?t:Ge())}function oa(t){for(;!Tt(ze());)Ge();return Mt(t,De)}function ia(t){return qr(rn("",null,null,null,[""],t=Qr(t),0,[0],t))}function rn(t,e,r,o,n,i,a,c,s){for(var l=0,d=0,g=a,v=0,p=0,I=0,b=1,y=1,m=1,C=0,x="",A=n,h=i,_=o,E=x;y;)switch(I=C,C=Ge()){case 40:if(I!=108&&ye(E,g-1)==58){Hn(E+=Y(nn(C),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=nn(C);break;case 9:case 10:case 13:case 32:E+=ta(I);break;case 92:E+=na(tn()-1,7);continue;case 47:switch(ze()){case 42:case 47:qt(sa(ra(Ge(),tn()),e,r),s);break;default:E+="/"}break;case 123*b:c[l++]=He(E)*m;case 125*b:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+d:m==-1&&(E=Y(E,/\f/g,"")),p>0&&He(E)-g&&qt(p>32?eo(E+";",o,r,g-1):eo(Y(E," ","")+";",o,r,g-2),s);break;case 59:E+=";";default:if(qt(_=Kr(E,e,r,l,d,n,c,x,A=[],h=[],g),i),C===123)if(d===0)rn(E,e,_,_,A,i,g,c,h);else switch(v===99&&ye(E,3)===110?100:v){case 100:case 108:case 109:case 115:rn(t,_,_,o&&qt(Kr(t,_,_,0,0,n,c,x,n,A=[],g),h),n,h,g,c,o?A:h);break;default:rn(E,_,_,_,[""],h,0,c,h)}}l=d=p=0,b=m=1,x=E="",g=a;break;case 58:g=1+He(E),p=I;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&ea()==125)continue}switch(E+=Qt(C),C*b){case 38:m=d>0?1:(E+="\f",-1);break;case 44:c[l++]=(He(E)-1)*m,m=1;break;case 64:ze()===45&&(E+=nn(Ge())),v=ze(),d=g=He(x=E+=oa(tn())),C++;break;case 45:I===45&&He(E)==2&&(b=0)}}return i}function Kr(t,e,r,o,n,i,a,c,s,l,d){for(var g=n-1,v=n===0?i:[""],p=zn(v),I=0,b=0,y=0;I<o;++I)for(var m=0,C=wt(t,g+1,g=Js(b=a[I])),x=t;m<p;++m)(x=Ur(b>0?v[m]+" "+C:Y(C,/&\f/g,v[m])))&&(s[y++]=x);return en(t,e,r,n===0?kn:c,s,l,d)}function sa(t,e,r){return en(t,e,r,Zn,Qt(Ks()),wt(t,2,-2),0)}function eo(t,e,r,o){return en(t,e,r,Xn,wt(t,0,o),wt(t,o+1,-1),o)}function mt(t,e){for(var r="",o=zn(t),n=0;n<o;n++)r+=e(t[n],n,t,e)||"";return r}function aa(t,e,r,o){switch(t.type){case Ys:if(t.children.length)break;case zs:case Xn:return t.return=t.return||t.value;case Zn:return"";case Jr:return t.return=t.value+"{"+mt(t.children,o)+"}";case kn:t.value=t.props.join(",")}return He(r=mt(t.children,o))?t.return=t.value+"{"+r+"}":""}function ua(t){var e=zn(t);return function(r,o,n,i){for(var a="",c=0;c<e;c++)a+=t[c](r,o,n,i)||"";return a}}function ca(t){return function(e){e.root||(e=e.return)&&t(e)}}function la(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var da=function(e,r,o){for(var n=0,i=0;n=i,i=ze(),n===38&&i===12&&(r[o]=1),!Tt(i);)Ge();return Mt(e,De)},ga=function(e,r){var o=-1,n=44;do switch(Tt(n)){case 0:n===38&&ze()===12&&(r[o]=1),e[o]+=da(De-1,r,o);break;case 2:e[o]+=nn(n);break;case 4:if(n===44){e[++o]=ze()===58?"&\f":"",r[o]=e[o].length;break}default:e[o]+=Qt(n)}while(n=Ge());return e},fa=function(e,r){return qr(ga(Qr(e),r))},to=new WeakMap,pa=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,o=e.parent,n=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!to.get(o))&&!n){to.set(e,!0);for(var i=[],a=fa(r,i),c=o.props,s=0,l=0;s<a.length;s++)for(var d=0;d<c.length;d++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,c[d]):c[d]+" "+a[s]}}},ma=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},ba="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ia=function(e){return e.type==="comm"&&e.children.indexOf(ba)>-1},va=function(e){return function(r,o,n){if(!(r.type!=="rule"||e.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var a=!!r.parent,c=a?r.parent.children:n,s=c.length-1;s>=0;s--){var l=c[s];if(l.line<r.line)break;if(l.column<r.column){if(Ia(l))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},no=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ha=function(e,r){for(var o=e-1;o>=0;o--)if(!no(r[o]))return!0;return!1},ro=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ca=function(e,r,o){no(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ro(e)):ha(r,o)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ro(e)))};function oo(t,e){switch($s(t,e)){case 5103:return z+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return z+t+$t+t+Ne+t+t;case 6828:case 4268:return z+t+Ne+t+t;case 6165:return z+t+Ne+"flex-"+t+t;case 5187:return z+t+Y(t,/(\w+).+(:[^]+)/,z+"box-$1$2"+Ne+"flex-$1$2")+t;case 5443:return z+t+Ne+"flex-item-"+Y(t,/flex-|-self/,"")+t;case 4675:return z+t+Ne+"flex-line-pack"+Y(t,/align-content|flex-|-self/,"")+t;case 5548:return z+t+Ne+Y(t,"shrink","negative")+t;case 5292:return z+t+Ne+Y(t,"basis","preferred-size")+t;case 6060:return z+"box-"+Y(t,"-grow","")+z+t+Ne+Y(t,"grow","positive")+t;case 4554:return z+Y(t,/([^-])(transform)/g,"$1"+z+"$2")+t;case 6187:return Y(Y(Y(t,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),t,"")+t;case 5495:case 3959:return Y(t,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return Y(Y(t,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+t+t;case 4095:case 3583:case 4068:case 2532:return Y(t,/(.+)-inline(.+)/,z+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(He(t)-1-e>6)switch(ye(t,e+1)){case 109:if(ye(t,e+4)!==45)break;case 102:return Y(t,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+$t+(ye(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Hn(t,"stretch")?oo(Y(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ye(t,e+1)!==115)break;case 6444:switch(ye(t,He(t)-3-(~Hn(t,"!important")&&10))){case 107:return Y(t,":",":"+z)+t;case 101:return Y(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(ye(t,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Ne+"$2box$3")+t}break;case 5936:switch(ye(t,e+11)){case 114:return z+t+Ne+Y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return z+t+Ne+Y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return z+t+Ne+Y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return z+t+Ne+t+t}return t}var ya=function(e,r,o,n){if(e.length>-1&&!e.return)switch(e.type){case Xn:e.return=oo(e.value,e.length);break;case Jr:return mt([jt(e,{value:Y(e.value,"@","@"+z)})],n);case kn:if(e.length)return qs(e.props,function(i){switch(Qs(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mt([jt(e,{props:[Y(i,/:(read-\w+)/,":"+$t+"$1")]})],n);case"::placeholder":return mt([jt(e,{props:[Y(i,/:(plac\w+)/,":"+z+"input-$1")]}),jt(e,{props:[Y(i,/:(plac\w+)/,":"+$t+"$1")]}),jt(e,{props:[Y(i,/:(plac\w+)/,Ne+"input-$1")]})],n)}return""})}},xa=[ya],Aa=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
34
34
  If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(b){var y=b.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=e.stylisPlugins||xa;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},a,c=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var y=b.getAttribute("data-emotion").split(" "),m=1;m<y.length;m++)i[y[m]]=!0;c.push(b)});var s,l=[pa,ma];process.env.NODE_ENV!=="production"&&l.push(va({get compat(){return I.compat}}),Ca);{var d,g=[aa,process.env.NODE_ENV!=="production"?function(b){b.root||(b.return?d.insert(b.return):b.value&&b.type!==Zn&&d.insert(b.value+"{}"))}:ca(function(b){d.insert(b)})],v=ua(l.concat(n,g)),p=function(y){return mt(ia(y),v)};s=function(y,m,C,x){d=C,process.env.NODE_ENV!=="production"&&m.map!==void 0&&(d={insert:function(h){C.insert(h+m.map)}}),p(y?y+"{"+m.styles+"}":m.styles),x&&(I.inserted[m.name]=!0)}}var I={key:r,sheet:new Hs({key:r,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return I.sheet.hydrate(c),I},Jn={exports:{}},U={};/** @license React v16.13.1
@@ -54,8 +54,17 @@ type InputProps = {
54
54
  * Error message of the input
55
55
  */
56
56
  errorMsg?: string | false;
57
+ /** Multiple select? */
58
+ multiple?: boolean;
59
+ /** Blur event handler */
60
+ onBlur?: {
61
+ /** Classic React blur handler, keyed by input name */
62
+ (e: React.FocusEvent<any>): void;
63
+ /** Preact-like linkState. Will return a handleBlur function. */
64
+ <T = string | any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
65
+ };
57
66
  };
58
- export declare function Input({ customClasses, customStyles, name, id, value, onChange, restprops, cols, errorMsg, disabled, rows, type, placeholder, }: InputProps): import("react/jsx-runtime").JSX.Element;
67
+ export declare function Input({ customClasses, customStyles, name, id, value, onChange, restprops, cols, errorMsg, disabled, rows, type, placeholder, onBlur, }: InputProps): import("react/jsx-runtime").JSX.Element;
59
68
  export declare namespace Input {
60
69
  var displayName: Inputs;
61
70
  var id: Inputs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"