@hybr1d-tech/charizard 0.3.50 → 0.3.51

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
@@ -1404,17 +1404,23 @@ const Ba = "_box_nao91_1", Fa = "_label_nao91_9", Qt = {
1404
1404
  label: Fa
1405
1405
  };
1406
1406
  function Ra({ actionsConfig: t, data: e }) {
1407
- var u;
1407
+ var i;
1408
1408
  if (!t)
1409
1409
  return null;
1410
1410
  const { menuItems: r = [], isDropdownActions: o, key: n, customComp: s } = t;
1411
1411
  if (!o)
1412
1412
  return null;
1413
- const l = (u = t.menuItems) == null ? void 0 : u.filter((i) => typeof i.filterFn == "function" ? i.filterFn(e) : !0);
1414
- return l != null && l.length ? !n && !s ? /* @__PURE__ */ a.jsx("div", { className: Qt.box, children: /* @__PURE__ */ a.jsx(pe.ActionsDropdown, { menuItems: r, data: e }) }) : /* @__PURE__ */ a.jsxs("div", { className: Qt.box, children: [
1415
- /* @__PURE__ */ a.jsx(pe.ActionsDropdown, { menuItems: r, data: e, variant: "small" }),
1413
+ const l = (i = t.menuItems) == null ? void 0 : i.filter((c) => typeof c.filterFn == "function" ? c.filterFn(e) : !0);
1414
+ if (!(l != null && l.length))
1415
+ return null;
1416
+ const u = r.map((c) => ({
1417
+ ...c,
1418
+ disabled: typeof c.disabled == "function" ? c.disabled(e) : !1
1419
+ }));
1420
+ return !n && !s ? /* @__PURE__ */ a.jsx("div", { className: Qt.box, children: /* @__PURE__ */ a.jsx(pe.ActionsDropdown, { menuItems: u, data: e }) }) : /* @__PURE__ */ a.jsxs("div", { className: Qt.box, children: [
1421
+ /* @__PURE__ */ a.jsx(pe.ActionsDropdown, { menuItems: u, data: e, variant: "small" }),
1416
1422
  s || (n && e[n] ? /* @__PURE__ */ a.jsx("div", { className: Qt.label, children: e[n] }) : null)
1417
- ] }) : null;
1423
+ ] });
1418
1424
  }
1419
1425
  const Va = "_selectedActions_9h3y5_1", Ta = "_selectedAction_9h3y5_1", Pa = "_selectedInfo_9h3y5_17", ja = "_actionsBtnIconSpan_9h3y5_37", Wa = "_actionsBtnIcon_9h3y5_37", La = "_selectedIcon_9h3y5_47", Ke = {
1420
1426
  selectedActions: Va,
@@ -28,7 +28,7 @@ Check the top-level render call using <`+w+">.")}return A}}function ir(g,A){{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[u];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(v.payload.type){case"RESET":return p(f),u===void 0?d==null?void 0:d.init(n.getState()):d==null?void 0:d.init(xt(i.name));case"COMMIT":if(u===void 0){d==null||d.init(n.getState());return}return d==null?void 0:d.init(xt(i.name));case"ROLLBACK":return zt(v.state,m=>{if(u===void 0){p(m),d==null||d.init(n.getState());return}p(m[u]),d==null||d.init(xt(i.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zt(v.state,m=>{if(u===void 0){p(m);return}JSON.stringify(n.getState())!==JSON.stringify(m[u])&&p(m[u])});case"IMPORT_STATE":{const{nextLiftedState:m}=v.payload,C=(I=m.computedStates.slice(-1)[0])==null?void 0:I.state;if(!C)return;p(u===void 0?C:C[u]),d==null||d.send(null,m);return}case"PAUSE_RECORDING":return h=!h}return}}),f},zt=(t,e)=>{let o;try{o=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}o!==void 0&&e(o)},Hn=mr.create()(Tr(t=>({filters:[],setDefaultFilters:e=>t({filters:e}),addFilters:(e,o,r)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=[...l.values,o];return typeof r=="function"&&r({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),removeFilters:(e,o,r)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=l.values.filter(i=>i!==o);return typeof r=="function"&&r({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),resetFilters:(e,o)=>t(r=>({filters:r.filters.map(a=>a.key===e?(typeof o=="function"&&o({filterType:e,value:""}),{...a,values:[]}):a)})),resetAllFilters:e=>t(o=>({filters:o.filters.map(r=>(typeof e=="function"&&e(),{...r,values:[]}))}))})));function Rr({filterConfig:t}){const{filters:e,isLoading:o,isError:r,filterDispatch:n,filterReset:a}=t,l=Hn(p=>p.filters),{setDefaultFilters:u,addFilters:i,removeFilters:c,resetFilters:d,resetAllFilters:b}=Hn(p=>({setDefaultFilters:p.setDefaultFilters,addFilters:p.addFilters,removeFilters:p.removeFilters,resetFilters:p.resetFilters,resetAllFilters:p.resetAllFilters}));if(y.useEffect(()=>{!(e!=null&&e.length)||o||u((e==null?void 0:e.map(p=>({key:p.key,values:[]})))||[])},[e==null?void 0:e.length,o]),!e||!e.length)return null;if(r)return s.jsx("div",{className:q.filtersInfo,children:"Error getting filters"});if(o)return s.jsx("div",{className:q.filtersInfo,children:"Getting filters..."});const h=l.map(p=>p.values).flat();return s.jsxs("div",{className:q.filters,children:[h.length>0&&s.jsx("img",{title:"Reset filters",src:Nr,alt:"reset all filters",className:q.resetIcon2,onClick:()=>{b(a)}}),e.map((p,f)=>s.jsx(jr,{filter:p,tableFilters:l,tableFilter:l[f],addFilters:i,removeFilters:c,resetFilters:d,filterDispatch:n},p.id))]})}const Mn={box:"_box_whvoa_1",loader:"_loader_whvoa_11"};function Vr({text:t="Getting data...",isError:e}){return s.jsx("tbody",{className:Mn.box,children:s.jsx("tr",{className:Mn.loader,children:!e&&s.jsx("td",{children:t})})})}const kn={box:"_box_11cjo_1",empty:"_empty_11cjo_8"};function Lr({emptyStateConfig:t,search:e}){return t?s.jsx("tbody",{className:kn.box,children:s.jsx("tr",{children:s.jsx("td",{className:kn.empty,colSpan:t.columns,children:s.jsx(Zn,{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 Yt={box:"_box_nao91_1",label:"_label_nao91_9"};function Wr({actionsConfig:t,data:e}){var u;if(!t)return null;const{menuItems:o=[],isDropdownActions:r,key:n,customComp:a}=t;if(!r)return null;const l=(u=t.menuItems)==null?void 0:u.filter(i=>typeof i.filterFn=="function"?i.filterFn(e):!0);return l!=null&&l.length?!n&&!a?s.jsx("div",{className:Yt.box,children:s.jsx(de.ActionsDropdown,{menuItems:o,data:e})}):s.jsxs("div",{className:Yt.box,children:[s.jsx(de.ActionsDropdown,{menuItems:o,data:e,variant:"small"}),a||(n&&e[n]?s.jsx("div",{className:Yt.label,children:e[n]}):null)]}):null}const Je={selectedActions:"_selectedActions_9h3y5_1",selectedAction:"_selectedAction_9h3y5_1",selectedInfo:"_selectedInfo_9h3y5_17",actionsBtnIconSpan:"_actionsBtnIconSpan_9h3y5_37",actionsBtnIcon:"_actionsBtnIcon_9h3y5_37",selectedIcon:"_selectedIcon_9h3y5_47"};function Dr({rowSelectionConfig:t,rowSelection:e}){if(!t||!t.isCheckbox||Object.keys(e).length===0)return null;const{isCheckbox:o,actions:r,iconSrc:n}=t;return s.jsx(s.Fragment,{children:o&&Object.keys(e).length>0&&s.jsxs("div",{className:Je.selectedActions,children:[s.jsx("div",{className:Je.selectedInfo,children:Object.keys(e).length}),s.jsxs("div",{className:Je.selectedAction,children:[n&&s.jsx("div",{children:s.jsx(oe,{path:n||"",svgClassName:Je.selectedIcon})}),s.jsx(de.MenuButton,{variant:Ge.SECONDARY,size:"sm",isCustomTrigger:!0,menuItems:(r==null?void 0:r.map(a=>({label:a.text,onClick:a.onClick,iconSrc:a.icon})))||[],positionerProps:{placement:"bottom-start"},children:s.jsxs(de,{variant:Ge.SECONDARY,size:"sm",children:["Actions",s.jsx(oe,{svgClassName:Je.actionsBtnIcon,path:Ye,spanClassName:Je.actionsBtnIconSpan})]})})]})]})})}const Or="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.625%206.746a.562.562%200%201%201-.796-.795L5.951%203.83c.22-.22.575-.22.795%200l2.121%202.12a.563.563%200%200%201-.795.795L6.91%205.586v7.127a.563.563%200%200%201-1.125%200V5.585l-1.16%201.161Zm7.027-2.02c.31%200%20.562.251.562.562v7.127l1.161-1.16a.562.562%200%201%201%20.796.795l-2.122%202.121a.563.563%200%200%201-.795%200L9.133%2012.05a.563.563%200%200%201%20.795-.796l1.161%201.161V5.288c0-.31.252-.562.563-.562Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e",Xr="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill-rule='evenodd'%20clip-rule='evenodd'%3e%3cpath%20d='M4.625%206.746a.562.562%200%201%201-.796-.795L5.951%203.83c.22-.22.575-.22.795%200l2.121%202.12a.563.563%200%200%201-.795.795L6.91%205.586v7.127a.563.563%200%200%201-1.125%200V5.585l-1.16%201.161Zm7.027-2.02c.31%200%20.562.251.562.562v7.127l1.161-1.16a.562.562%200%201%201%20.796.795l-2.122%202.121a.562.562%200%200%201-.795%200L9.133%2012.05a.563.563%200%200%201%20.795-.796l1.161%201.161V5.288c0-.31.252-.562.563-.562Z'%20fill='%23B3B2B8'/%3e%3cpath%20d='M4.625%206.747a.562.562%200%201%201-.796-.795L5.95%203.83c.22-.22.576-.22.796%200l2.121%202.122a.562.562%200%201%201-.795.795L6.91%205.587v7.126a.562.562%200%201%201-1.125%200V5.586l-1.16%201.161Z'%20fill='%238A7CDB'/%3e%3c/g%3e%3c/svg%3e",Zr="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill-rule='evenodd'%20clip-rule='evenodd'%3e%3cpath%20d='M4.625%206.746a.562.562%200%201%201-.796-.795L5.951%203.83c.22-.22.575-.22.795%200l2.121%202.12a.562.562%200%201%201-.795.795L6.91%205.586v7.127a.563.563%200%200%201-1.125%200V5.585l-1.16%201.161Zm7.027-2.02c.31%200%20.562.251.562.562v7.127l1.161-1.16a.562.562%200%201%201%20.796.795l-2.122%202.121a.562.562%200%200%201-.795%200L9.133%2012.05a.563.563%200%200%201%20.795-.796l1.161%201.161V5.288c0-.31.252-.562.563-.562Z'%20fill='%238A7CDB'/%3e%3cpath%20d='M4.625%206.747a.562.562%200%201%201-.796-.795L5.95%203.83c.22-.22.576-.22.796%200l2.121%202.122a.562.562%200%201%201-.795.795L6.91%205.587v7.126a.562.562%200%201%201-1.125%200V5.586l-1.16%201.161Z'%20fill='%23B3B2B8'/%3e%3c/g%3e%3c/svg%3e",K={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"},Jt={box:"_box_1wr6m_1",selector:"_selector_1wr6m_10",active:"_active_1wr6m_30"};function zn({selectors:t}){const[e,o]=y.useState(0);return s.jsx("div",{className:Jt.box,children:t.map((r,n)=>s.jsx("div",{onClick:()=>{o(n),r.onClick()},className:P(Jt.selector,n===e&&Jt.active),style:{borderRadius:n===0?"4px 0px 0px 4px":n===t.length-1?"0px 4px 4px 0px":0,boxShadow:n===0?"none":""},children:r.name},r.name))})}const ut={checkboxSpan:"_checkboxSpan_dxec8_1",checkbox:"_checkbox_dxec8_1",checkboxSelect:"_checkboxSelect_dxec8_33",radio:"_radio_dxec8_39"},ct="select",At="dropdown-actions",yt="select-radio";function Yn({indeterminate:t,row:e,isHeader:o,...r}){const n=y.useRef(null);return y.useEffect(()=>{typeof t=="boolean"&&(n.current.indeterminate=!r.checked&&t)},[n,t]),s.jsx("span",{className:ut.checkboxSpan,style:{display:o?"flex":void 0},children:s.jsx("input",{type:"checkbox",ref:n,className:P(ut.checkbox,e.id===ct&&ut.checkboxSelect),...r})})}function Hr({indeterminate:t,row:e,...o}){const r=y.useRef(null);return y.useEffect(()=>{r.current.indeterminate=t},[r,t]),s.jsx("span",{className:ut.radioSpan,children:s.jsx("input",{type:"radio",ref:r,className:P(ut.radio),...o})})}function Mr({data:t,loaderConfig:e,columns:o,filterConfig:r,sortConfig:n,rowSelectionConfig:a={isCheckbox:!1,isRadio:!1},actionsConfig:l={isDropdownActions:!1,key:""},searchConfig:u,totalText:i,selectorConfig:c,paginationConfig:d,emptyStateConfig:b,headerText:h,infiniteScrollConfig:p}){var H;const[f,v]=y.useState([]),[I,m]=y.useState({}),[C,x]=y.useState({}),{ref:_,inView:N}=fr.useInView(),B=!e.isFetching&&!e.isError&&!t.length,{isCheckbox:F,isRadio:E,setSelectedRows:W}=a;Tn(()=>{if(!n||!f.length)return;const{setSortOrd:j,setSortBy:z,sortMap:Z}=n;z(Z[f[0].id]),j(f[0].desc?"desc":"asc")},[f]),Tn(()=>{if(!a||!W)return;const j=Y.getSelectedRowModel().rows.map(z=>z.original);W([...j])},[C]),y.useEffect(()=>{p&&N&&p.fetchNextPage()},[p==null?void 0:p.fetchNextPage,N]);const k=[{id:ct,header:j=>s.jsx(Yn,{checked:j.table.getIsAllRowsSelected(),indeterminate:j.table.getIsSomeRowsSelected(),onChange:j.table.getToggleAllRowsSelectedHandler(),row:j.header,isHeader:!0}),cell:({row:j})=>s.jsx(Yn,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},{id:yt,cell:({row:j})=>s.jsx(Hr,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},...o,{id:At,cell:j=>s.jsx(Wr,{actionsConfig:l,data:j.row.original}),header:"Actions",maxSize:150}],Y=it.useReactTable({data:t,columns:k,state:{sorting:f,columnVisibility:I,rowSelection:C},manualSorting:!0,onSortingChange:v,onColumnVisibilityChange:m,enableRowSelection:!0,onRowSelectionChange:x,enableMultiRowSelection:!E,manualPagination:!0,manualFiltering:!0,getCoreRowModel:it.getCoreRowModel(),defaultColumn:{minSize:0,size:Number.MAX_SAFE_INTEGER,maxSize:Number.MAX_SAFE_INTEGER}});return y.useLayoutEffect(()=>{if(F&&E)throw new Error("Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one")},[]),y.useLayoutEffect(()=>{var j;F||(j=Y.getColumn(ct))==null||j.toggleVisibility(!1)},[]),y.useLayoutEffect(()=>{var j;E||(j=Y.getColumn(yt))==null||j.toggleVisibility(!1)},[]),y.useLayoutEffect(()=>{var j;l.isDropdownActions||(j=Y.getColumn(At))==null||j.toggleVisibility(!1)},[]),y.useEffect(()=>{x({})},[u==null?void 0:u.search]),s.jsxs("div",{className:K.box,children:[!e.isError&&s.jsxs("div",{className:K.header,children:[!h&&s.jsxs("div",{className:K.meta,children:[s.jsx("div",{className:K.total,children:i}),typeof r=="object"&&s.jsx(Rr,{filterConfig:r})]}),h&&s.jsx("div",{className:K.headerTxt,children:h}),s.jsxs("div",{className:K.selectorGrp,children:[typeof c=="object"&&s.jsx(zn,{selectors:c==null?void 0:c.selectors}),typeof u=="object"&&s.jsx("div",{className:K.search,children:s.jsx(Ct,{id:"table-search",search:u.search,setSearch:u.setSearch,placeholder:u.placeholder,clearIconClearFn:()=>x({})})})]})]}),(a==null?void 0:a.actions)&&a.actions.length>0&&s.jsx(Dr,{rowSelectionConfig:a,rowSelection:C}),d?s.jsx(dr,{dataLength:t.length,next:d.fetchNextPage,hasMore:(t==null?void 0:t.length)<((H=d.metaData)==null?void 0:H.total_items),loader:d.loader,height:d.height,scrollThreshold:d.scrollThreshold,scrollableTarget:d.scrollableTarget,children:s.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search})}):s.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search}),p&&s.jsx("div",{children:s.jsx("div",{ref:_})})]})}function Jn({table:t,isCheckbox:e,isRadio:o,loaderConfig:r,emptyStateConfig:n,isEmpty:a,search:l}){return s.jsxs("table",{className:K.table,children:[s.jsx("thead",{className:K.tableHead,children:t.getHeaderGroups().map(u=>s.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>s.jsx("th",{className:P(K.tableHeader,i.column.getCanSort()&&K.tableHeaderSort),style:{width:i.getSize()===Number.MAX_SAFE_INTEGER?"auto":i.getSize(),paddingRight:i.id===At?"20px":void 0,paddingLeft:i.index===0&&i.id!==ct&&i.id!==yt?"20px":void 0},children:i.isPlaceholder?null:s.jsxs("div",{onClick:i.column.getToggleSortingHandler(),style:{display:"flex",alignItems:"center",justifyContent:i.id===At?"flex-end":void 0},children:[it.flexRender(i.column.columnDef.header,i.getContext()),{asc:s.jsx(oe,{path:Xr,spanClassName:K.tableHeaderSortSpan}),desc:s.jsx(oe,{path:Zr,spanClassName:K.tableHeaderSortSpan}),false:i.column.getCanSort()?s.jsx(oe,{path:Or,spanClassName:K.tableHeaderSortSpan,svgClassName:K.tableHeaderSort}):null}[i.column.getIsSorted()]??null]})},i.id))},u.id))}),r.isFetching?s.jsx(Vr,{text:r.text,isError:r.isError}):a?s.jsx(Lr,{emptyStateConfig:n,search:l}):s.jsx("tbody",{className:K.tableBody,children:t.getRowModel().rows.map((u,i)=>s.jsx("tr",{className:K.tableRow,children:u.getVisibleCells().map(c=>{const d=(e||o)&&(c.id===`${i}_${yt}`||c.id===`${i}_${ct}`);return s.jsx("td",{className:P(K.tableData,(e||o)&&K.tableDataWithSelection),style:{width:c.column.getSize()===Number.MAX_SAFE_INTEGER?"auto":c.column.getSize(),verticalAlign:d?"middle":void 0},children:it.flexRender(c.column.columnDef.cell,c.getContext())},c.id)})},u.id))}),r.isError&&s.jsx("tbody",{style:{height:"200px"},children:s.jsx("tr",{children:s.jsx("td",{colSpan:n==null?void 0:n.columns,style:{textAlign:"center"},children:r.errMsg||"Error getting data, please try again later."})})}),s.jsx("tfoot",{className:K.tableFoot,children:t.getFooterGroups().map(u=>s.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>s.jsx("th",{children:i.isPlaceholder?null:it.flexRender(i.column.columnDef.footer,i.getContext())},i.id))},u.id))})]})}const De={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 kr({label:t,isLoading:e=!1,required:o=!1,labelClassName:r,inputClassName:n,disabled:a=!1,defaultOptions:l=[],isAPIFilter:u=!1,onChange:i,onSelect:c,placeholder:d,optionsMaxHeight:b="300px",value:h}){const[p,f]=y.useState(l),[v,I]=y.useState(""),m=Zt.collection({items:l,itemToValue:N=>N.value,itemToString:N=>N.label}),[C,x]=$.useMachine(Zt.machine({id:S.useId(),collection:m,onOpenChange(N){N.open&&f(l)},async onInputValueChange({value:N}){if(I(N[0]),!u){const B=p.filter(F=>F.label.toLowerCase().includes(N[0].toLowerCase()));f(B);return}N[0]&&i&&(f([]),i(N[0]))},disabled:a,inputValue:h,multiple:!1,onValueChange(N){}}),{context:{collection:m}}),_=Zt.connect(C,x,$.normalizeProps);return y.useEffect(()=>{l&&f(l)},[l]),s.jsxs("div",{children:[s.jsxs("div",{..._.rootProps,children:[t&&s.jsx("label",{..._.labelProps,className:P(De.inputLabel,r,o&&De.required),children:t}),s.jsx("div",{..._.controlProps,className:De.container,children:s.jsx("input",{..._.inputProps,className:n})})]}),s.jsx("div",{..._.positionerProps,children:p.length>0?s.jsx("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:p.map((N,B)=>s.jsx("li",{className:De.option,..._.getItemProps({item:N}),children:N.listComponent?N.listComponent:N.label},`${N.value}:${B}`))}):v&&s.jsxs("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:[u&&!e&&!p.length&&s.jsx("li",{className:De.option,..._.getItemProps({item:{label:"",value:""}}),children:"No result found"}),!u&&!p.length&&s.jsx("li",{className:De.option,..._.getItemProps({item:{label:"No result found",value:"No result found",disabled:!0}}),children:"No result found"})]})})]})}const ge={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 zr({isOpen:t,onClose:e,children:o,title:r,customHeader:n,customFooter:a,size:l="md",showBackdrop:u=!0,showHeader:i=!0,showFooter:c=!0,buttons:d,footerAddon:b,headerClassName:h,contentClassName:p,footerClassName:f,showHeaderBorder:v=!0,drawerPosition:I="right"}){const m=y.useRef(null),C=y.useRef(null),x=y.useRef(null),_=I==="left"?"-100%":"100%",N=!i&&!c;return y.useEffect(()=>{const B=setTimeout(()=>{var F,E;m.current&&C&&x&&(m.current.style.transform=t?"translateX(0)":`translateX(${_})`,C.current.style.maxHeight=`calc(100vh - (1.75rem * 2) - ${(F=x.current)==null?void 0:F.clientHeight}px)`,C.current.style.height=`calc(100vh - (1.75rem * 2) - ${(E=x.current)==null?void 0:E.clientHeight}px)`)},0);return()=>{clearTimeout(B)}},[t]),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:P(ge.backdropLayer,t&&ge.show),onClick:e,children:u&&s.jsx("div",{className:P(ge.backdrop,t&&ge.showBackdrop)})}),s.jsx("div",{className:P(ge.container,ge[l],ge[`${I}Align`]),ref:m,children:s.jsxs("div",{className:ge.content,children:[i&&s.jsx("div",{className:P(ge.headerContainer,{[ge.showBorder]:v},h),children:n||s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:ge.title,children:r}),s.jsx("button",{type:"button",className:ge.closeBtn,onClick:e})]})}),s.jsx("div",{className:P(ge.descriptionContainer,{[ge.fullHeight]:N},p),ref:C,children:o}),c&&s.jsx("div",{className:P(ge.footer,f),ref:x,children:a||d&&s.jsxs("div",{className:ge.footerBtnContainer,children:[s.jsx("div",{className:ge.footerBtn,children:d.map((B,F)=>s.jsx(de,{disabled:B.disabled,variant:B.variant,onClick:B.onClick?B.onClick:void 0,type:B.btnType,children:B.btnText},F))}),b&&s.jsx("div",{children:b})]})})]})})]})}const re={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 te=(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))(te||{});function Ut({customClasses:t,customStyles:e,name:o,id:r,value:n,onChange:a,restprops:l,cols:u,errorMsg:i,disabled:c=!1,rows:d=2,type:b="text",placeholder:h="Placeholder",onBlur:p}){const f=y.useRef(null);return s.jsxs("div",{className:re.inputWrapper,children:[b==="textarea"?s.jsx("textarea",{rows:d,cols:u,style:e,className:P(re.textarea,i&&re.error,t),placeholder:h,name:o,id:r,value:n,onChange:a,disabled:c,onBlur:p,...l}):s.jsx("input",{ref:f,style:e,type:b,className:P(re.input,i&&re.error,t),placeholder:h,name:o,id:r,value:n,onChange:a,disabled:c,onClick:()=>{var v;return(v=f.current)==null?void 0:v.showPicker()},onBlur:p,...l}),i&&s.jsx("p",{className:re.errorMsg,children:i})]})}Ut.displayName=te.INPUT,Ut.id=te.INPUT;function _t({children:t,placement:e="left",isDropdown:o=!1,dropdownOptions:r,handleOptionClick:n=()=>{},showDropdownSearch:a=!0}){var m;const l=e==="left"?"left":"right",[u,i]=y.useState(!1),c=y.useRef(null),[d,b]=y.useState(""),[h,p]=y.useState(!0);y.useEffect(()=>(document.addEventListener("click",f),()=>{document.removeEventListener("click",f)}),[]);const f=C=>{var x;(x=c.current)!=null&&x.contains(C.target)||i(!1)},v=()=>{var C;if(u)i(!1),p(!0);else{i(!0);const x=(C=c.current)==null?void 0:C.getBoundingClientRect(),_=(x==null?void 0:x.right)+(x==null?void 0:x.width),N=window.innerWidth-100;_>N&&p(!1)}},I=C=>(C.label+" "+C.value).toLowerCase().includes(d.toLowerCase());return s.jsxs("div",{className:P(re.inputAddon,re[l]),onClick:()=>{o&&v()},ref:c,style:{cursor:o?"pointer":"inherit"},children:[t,o&&s.jsxs(s.Fragment,{children:[s.jsx(oe,{path:Ye,width:20,customSpanStyles:{width:"20px"}}),u&&s.jsxs("div",{className:re.dropdownContainer,style:{left:h?"0":"inherit",right:h?"inherit":"0",paddingTop:a?"0":"12px"},children:[a&&s.jsx("div",{className:re.searchContainer,onClick:C=>C.stopPropagation(),children:s.jsx(Ct,{search:d,setSearch:b,id:"input-add-on-search"})}),(m=r==null?void 0:r.filter(I))==null?void 0:m.map(C=>s.jsx("div",{className:re.dropdownOption,onClick:x=>{x.stopPropagation(),n(C),v()},children:C.label},C.value))]})]})]})}function Qt({children:t,isDropdown:e=!1,dropdownOptions:o=[],handleOptionClick:r=()=>{},showDropdownSearch:n=!0}){return s.jsx(_t,{placement:"left",isDropdown:e,dropdownOptions:o,handleOptionClick:r,showDropdownSearch:n,children:t})}function $t({children:t,isDropdown:e=!1,dropdownOptions:o=[],handleOptionClick:r=()=>{},showDropdownSearch:n=!0}){return s.jsx(_t,{placement:"right",isDropdown:e,dropdownOptions:o,handleOptionClick:r,showDropdownSearch:n,children:t})}_t.displayName=te.INPUT_ADDON,_t.id=te.INPUT_ADDON,Qt.displayName=te.INPUT_LEFT_ADDON,Qt.id=te.INPUT_LEFT_ADDON,$t.displayName=te.INPUT_RIGHT_ADDON,$t.id=te.INPUT_RIGHT_ADDON;function Et({children:t,customClassName:e,customStyles:o,size:r="adapt"}){return s.jsx("div",{className:P(re.inputContainer,re[r],e),style:o,children:t})}Et.displayName=te.INPUT_CONTAINER,Et.id=te.INPUT_CONTAINER;function St({children:t,placement:e="left"}){const o=e==="left"?"left":"right";return s.jsx("div",{className:P(re.inputElement,re[o]),children:t})}function qt({children:t}){return s.jsx(St,{placement:"left",children:t})}function Kt({children:t}){return s.jsx(St,{placement:"right",children:t})}St.displayName=te.INPUT_ELEMENT,St.id=te.INPUT_ELEMENT,qt.displayName=te.INPUT_LEFT_ELEMENT,qt.id=te.INPUT_LEFT_ELEMENT,Kt.displayName=te.INPUT_RIGHT_ELEMENT,Kt.id=te.INPUT_RIGHT_ELEMENT;function en({children:t}){const e={},o=y.Children.toArray(t);o.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 r=o.map(n=>n.type.id!=="Input"?n:y.cloneElement(n,{...n.props,customStyles:{...e,...n.props.customStyles}}));return s.jsx("div",{className:re.inputGroup,children:r})}en.displayName=te.INPUT_GROUP,en.id=te.INPUT_GROUP;const Un="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2015A7%207%200%201%201%208%201a7%207%200%200%201%200%2014Zm0%201A8%208%200%201%200%208%200a8%208%200%200%200%200%2016Z'%20fill='%23B5B5B5'/%3e%3cpath%20d='m8.93%206.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738%203.468c-.194.897.105%201.319.808%201.319.545%200%201.178-.252%201.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275%200-.375-.193-.304-.533L8.93%206.588ZM9%204.5a1%201%200%201%201-2%200%201%201%200%200%201%202%200Z'%20fill='%23B5B5B5'/%3e%3c/svg%3e",dt={trigger:"_trigger_1ovxi_1",content:"_content_1ovxi_7",arrow:"_arrow_1ovxi_18"};function Yr({children:t,api:e,customStyles:o={}}){return s.jsx("button",{...e.triggerProps,type:"button",className:dt.trigger,style:{...o},children:t})}function Jr({children:t,api:e,bg:o="black",positionerStyles:r={},containerStyles:n={}}){var u,i;const a=!["black","gray"].includes(o),l={...e==null?void 0:e.arrowProps,...a&&{style:{...(u=e==null?void 0:e.arrowProps)==null?void 0:u.style,"--arrow-background":o}}};return s.jsx(s.Fragment,{children:e.isOpen&&s.jsxs("div",{...e.positionerProps,style:{...(i=e==null?void 0:e.positionerProps)==null?void 0:i.style,...r},children:[s.jsx("div",{...l,className:P(dt.arrow,{[dt[o]]:!a}),children:s.jsx("div",{...e.arrowTipProps})}),s.jsx("div",{...e.contentProps,className:P(dt.content,dt[o]),style:{background:a?o:"",...n},children:t})]})})}function Re({children:t,openDelay:e=0,closeDelay:o=0,placement:r="top"}){const[n,a]=$.useMachine(vt.machine({id:y.useId(),openDelay:e,closeDelay:o,positioning:{placement:r,gutter:3}})),l=vt.connect(n,a,$.normalizeProps),u=y.Children.toArray(t).map(i=>y.cloneElement(i,{...i.props??{},api:l}));return s.jsx(s.Fragment,{children:u})}Re.Trigger=Yr,Re.Content=Jr;function Nt({children:t,customClasses:e,customStyles:o,required:r=!1,htmlFor:n,restprops:a={},infoText:l,infoTextTooltipStyles:u={}}){return y.useId(),s.jsxs("div",{className:re.inputLabelContainer,children:[s.jsx("label",{htmlFor:n,className:P(re.inputLabel,e,r&&re.required),style:o,...a,children:s.jsx("span",{children:t})}),l&&s.jsxs(Re,{children:[s.jsx(Re.Trigger,{children:s.jsx(oe,{path:Un,svgClassName:re.infoCircleSvg})}),s.jsx(Re.Content,{positionerStyles:u,children:l})]})]})}Nt.displayName=te.INPUT_LABEL,Nt.id=te.INPUT_LABEL;const ye={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 Qn({api:t}){return s.jsx("div",{...t==null?void 0:t.backdropProps,className:ye.backdrop})}function Ur({isOpen:t,onClose:e,children:o,size:r="md",showOverlay:n=!0,machineProps:a={}}){const l=y.useCallback(b=>{b||e()},[e]),[u,i]=$.useMachine(Vn.machine({id:y.useId(),open:t,onOpenChange:b=>l(b.open),...a})),c=Vn.connect(u,i,$.normalizeProps),d=y.Children.toArray(o).map(b=>y.cloneElement(b,{...b.props,api:c,size:r}));return s.jsxs($.Portal,{children:[n&&s.jsx(Qn,{api:c}),d]})}function Qr({children:t,api:e,customStyles:o={}}){return s.jsx("div",{...e.descriptionProps,className:ye.body,style:o,children:t})}function $r({children:t,api:e,size:o="md"}){const r=y.Children.toArray(t).map(n=>y.cloneElement(n,{...n.props,api:e}));return s.jsx("div",{...e==null?void 0:e.containerProps,className:ye.container,children:s.jsx("div",{className:P(ye.contentWrapper,ye[o]),children:s.jsx("div",{...e==null?void 0:e.contentProps,className:ye.content,children:r})})})}function qr({children:t,api:e,buttons:o,showBorder:r=!0}){return s.jsx("div",{className:P(ye.footer,{[ye.showBorder]:r}),children:t||s.jsx("div",{className:ye.btnsContainer,children:o.map((n,a)=>s.jsx(de,{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},a))})})}function Kr({children:t,api:e,showCrossBtn:o=!0,showBorder:r=!0}){return s.jsxs("div",{...e==null?void 0:e.titleProps,className:P(ye.header,{[ye.showBorder]:r}),children:[s.jsx("div",{children:t}),o&&s.jsx("button",{...e.closeTriggerProps,type:"button",onClick:e==null?void 0:e.close,className:"hybr1d-ui-reset-btn",children:s.jsx(oe,{path:It,svgClassName:ye.closeIcon,spanClassName:ye.closeIconSpan})})]})}function ei({children:t,placement:e="top",popoverProps:o,closeOnScroll:r=!1,containerRef:n}){const[a,l]=$.useMachine(Ln.machine({id:y.useId(),positioning:{placement:e},closeOnInteractOutside:!0,portalled:!1,...o})),u=Ln.connect(a,l,$.normalizeProps);function i(){u==null||u.close()}y.useEffect(()=>(r&&n&&n.current&&n.current.addEventListener("scroll",i),()=>{var d;r&&n&&((d=n.current)==null||d.removeEventListener("scroll",i))}),[n==null?void 0:n.current]);const c=y.Children.toArray(t).map(d=>y.cloneElement(d,{...d.props,api:u}));return s.jsx(s.Fragment,{children:c})}function ti({children:t,api:e,styles:o,className:r}){return s.jsx("button",{...e==null?void 0:e.closeTriggerProps,style:o,className:P("hybr1d-ui-reset-btn",r),onClick:e==null?void 0:e.close,children:t})}const Ue={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 ni({children:t,api:e,bg:o="black",styles:r,className:n,positionerStyles:a}){var d,b;const l=e!=null&&e.portalled?$.Portal:y.Fragment,u=y.Children.toArray(t).map(h=>y.cloneElement(h,{...h.props,api:e})),i=!["black","gray"].includes(o),c={...e==null?void 0:e.arrowProps,...i&&{style:{...(d=e==null?void 0:e.arrowProps)==null?void 0:d.style,"--arrow-background":o}}};return s.jsx(l,{children:s.jsxs("div",{...e==null?void 0:e.positionerProps,className:Ue.positioner,style:{...(b=e==null?void 0:e.positionerProps)==null?void 0:b.style,...a},children:[s.jsx("div",{...c,className:P(Ue.arrow,{[Ue[o]]:!i}),children:s.jsx("div",{...e==null?void 0:e.arrowTipProps})}),s.jsx("div",{...e==null?void 0:e.contentProps,className:P(Ue.content,Ue[o],n),style:{background:i?o:"",...r},children:u})]})})}function oi({children:t,api:e,styles:o,className:r}){return s.jsx("div",{...e==null?void 0:e.descriptionProps,style:o,className:r,children:t})}function ri({children:t,api:e,styles:o,className:r}){return s.jsx("div",{...e==null?void 0:e.titleProps,style:o,className:r,children:t})}function ii({children:t,api:e,openOnHover:o=!0,styles:r,className:n}){return s.jsx("button",{...e==null?void 0:e.triggerProps,onMouseEnter:o?e==null?void 0:e.open:()=>{},onMouseLeave:o?e==null?void 0:e.close:()=>{},className:P("hybr1d-ui-reset-btn",Ue.trigger,n),style:r,children:t})}const ie={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"},tn={valueContainer:t=>({...t,gap:"4px"}),option:(t,{data:e,isDisabled:o,isFocused:r,isSelected:n})=>({...t,backgroundColor:o?void 0:n?e.color:r?"#f7f7f7":"#ffffff",color:"#171718",cursor:o?"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:o})=>({...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%)"}})},nn=t=>({control:(e,{isDisabled:o,isFocused:r})=>({...e,backgroundColor:o?"#f5f5f8":"transparent",color:"#171718",border:"1px solid #e2e0eb",borderColor:t?"#de350b !important":r?"#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"}})}),on=t=>s.jsxs(Me.components.Option,{...t,className:P({[ie.subLabelContainer]:t.data.subLabel},ie.optionContainer),children:[s.jsxs("div",{className:P(ie.label),children:[t.data.profileImgUrl&&s.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),s.jsx("span",{children:t.data.label})]}),t.data.subLabel&&s.jsx("div",{className:P(ie.subLabel),children:t.data.subLabel})]}),rn=t=>s.jsx(Me.components.MultiValueLabel,{...t,children:s.jsxs("div",{className:ie.multiLabelContainer,children:[t.data.profileImgUrl&&s.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),s.jsx("div",{className:P(ie.label),children:s.jsx("span",{children:t.data.label})})]})}),sn=t=>s.jsx(Me.components.MultiValueRemove,{...t,children:s.jsx(oe,{path:It,spanClassName:ie.closeSpan})}),an=t=>s.jsx(Me.components.ClearIndicator,{...t,children:s.jsx(oe,{path:It,spanClassName:ie.closeSpan})}),ln=t=>s.jsx(Me.components.DropdownIndicator,{...t,children:s.jsx(oe,{path:Ye,spanClassName:ie.downArrowSpan})}),un=t=>s.jsx(Me.components.SingleValue,{...t,children:s.jsxs("div",{className:ie.singleValueContainer,children:[t.data.profileImgUrl&&s.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),s.jsx("div",{className:P(ie.label),children:s.jsx("span",{children:t.data.label})})]})});function si({options:t,onChange:e,name:o,id:r,className:n,placeholder:a,selectStyles:l,defaultValue:u,formatGroupLabel:i,customContainerStyles:c,menuPlacement:d,errorMsg:b,extraprops:h,isDisabled:p=!1,isSearchable:f=!0,isMulti:v=!1,isClearable:I=!1,CustomDropdownIndicator:m}){return s.jsxs("div",{onClick:C=>C.stopPropagation(),style:c,className:ie.selectContainer,children:[s.jsx(Me,{isMulti:v,placeholder:a,defaultValue:u,options:t,maxMenuHeight:170,isClearable:I,name:o,id:r,className:P(n),isSearchable:f,styles:{...tn,...nn(b),...l},components:{Option:on,MultiValueLabel:rn,MultiValueRemove:sn,DropdownIndicator:m||ln,ClearIndicator:an,SingleValue:un},isDisabled:p,onChange:(C,x)=>{e(v?C.map(_=>_.value):(C==null?void 0:C.value)??"",x)},formatGroupLabel:i,menuPlacement:d,...h}),b&&s.jsx("p",{className:ie.errorMsg,children:b})]})}function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},L.apply(this,arguments)}function ke(t){"@babel/helpers - typeof";return ke=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},ke(t)}function ai(t,e){if(ke(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(ke(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $n(t){var e=ai(t,"string");return ke(e)==="symbol"?e:String(e)}function Qe(t,e,o){return e=$n(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function qn(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function T(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(o),!0).forEach(function(r){Qe(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):qn(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function li(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kn(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$n(r.key),r)}}function ui(t,e,o){return e&&Kn(t.prototype,e),o&&Kn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},cn(t,e)}function ci(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&&cn(t,e)}function wt(t){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},wt(t)}function di(){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 gi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bi(t,e){if(e&&(ke(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gi(t)}function pi(t){var e=di();return function(){var r=wt(t),n;if(e){var a=wt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return bi(this,n)}}function dn(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o<e;o++)r[o]=t[o];return r}function mi(t){if(Array.isArray(t))return dn(t)}function fi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eo(t,e){if(t){if(typeof t=="string")return dn(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return dn(t,e)}}function vi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
31
+ `);const C=m.state[u];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(v.payload.type){case"RESET":return p(f),u===void 0?d==null?void 0:d.init(n.getState()):d==null?void 0:d.init(xt(i.name));case"COMMIT":if(u===void 0){d==null||d.init(n.getState());return}return d==null?void 0:d.init(xt(i.name));case"ROLLBACK":return zt(v.state,m=>{if(u===void 0){p(m),d==null||d.init(n.getState());return}p(m[u]),d==null||d.init(xt(i.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zt(v.state,m=>{if(u===void 0){p(m);return}JSON.stringify(n.getState())!==JSON.stringify(m[u])&&p(m[u])});case"IMPORT_STATE":{const{nextLiftedState:m}=v.payload,C=(I=m.computedStates.slice(-1)[0])==null?void 0:I.state;if(!C)return;p(u===void 0?C:C[u]),d==null||d.send(null,m);return}case"PAUSE_RECORDING":return h=!h}return}}),f},zt=(t,e)=>{let o;try{o=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}o!==void 0&&e(o)},Hn=mr.create()(Tr(t=>({filters:[],setDefaultFilters:e=>t({filters:e}),addFilters:(e,o,r)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=[...l.values,o];return typeof r=="function"&&r({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),removeFilters:(e,o,r)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=l.values.filter(i=>i!==o);return typeof r=="function"&&r({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),resetFilters:(e,o)=>t(r=>({filters:r.filters.map(a=>a.key===e?(typeof o=="function"&&o({filterType:e,value:""}),{...a,values:[]}):a)})),resetAllFilters:e=>t(o=>({filters:o.filters.map(r=>(typeof e=="function"&&e(),{...r,values:[]}))}))})));function Rr({filterConfig:t}){const{filters:e,isLoading:o,isError:r,filterDispatch:n,filterReset:a}=t,l=Hn(p=>p.filters),{setDefaultFilters:u,addFilters:i,removeFilters:c,resetFilters:d,resetAllFilters:b}=Hn(p=>({setDefaultFilters:p.setDefaultFilters,addFilters:p.addFilters,removeFilters:p.removeFilters,resetFilters:p.resetFilters,resetAllFilters:p.resetAllFilters}));if(y.useEffect(()=>{!(e!=null&&e.length)||o||u((e==null?void 0:e.map(p=>({key:p.key,values:[]})))||[])},[e==null?void 0:e.length,o]),!e||!e.length)return null;if(r)return s.jsx("div",{className:q.filtersInfo,children:"Error getting filters"});if(o)return s.jsx("div",{className:q.filtersInfo,children:"Getting filters..."});const h=l.map(p=>p.values).flat();return s.jsxs("div",{className:q.filters,children:[h.length>0&&s.jsx("img",{title:"Reset filters",src:Nr,alt:"reset all filters",className:q.resetIcon2,onClick:()=>{b(a)}}),e.map((p,f)=>s.jsx(jr,{filter:p,tableFilters:l,tableFilter:l[f],addFilters:i,removeFilters:c,resetFilters:d,filterDispatch:n},p.id))]})}const Mn={box:"_box_whvoa_1",loader:"_loader_whvoa_11"};function Vr({text:t="Getting data...",isError:e}){return s.jsx("tbody",{className:Mn.box,children:s.jsx("tr",{className:Mn.loader,children:!e&&s.jsx("td",{children:t})})})}const kn={box:"_box_11cjo_1",empty:"_empty_11cjo_8"};function Lr({emptyStateConfig:t,search:e}){return t?s.jsx("tbody",{className:kn.box,children:s.jsx("tr",{children:s.jsx("td",{className:kn.empty,colSpan:t.columns,children:s.jsx(Zn,{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 Yt={box:"_box_nao91_1",label:"_label_nao91_9"};function Wr({actionsConfig:t,data:e}){var i;if(!t)return null;const{menuItems:o=[],isDropdownActions:r,key:n,customComp:a}=t;if(!r)return null;const l=(i=t.menuItems)==null?void 0:i.filter(c=>typeof c.filterFn=="function"?c.filterFn(e):!0);if(!(l!=null&&l.length))return null;const u=o.map(c=>({...c,disabled:typeof c.disabled=="function"?c.disabled(e):!1}));return!n&&!a?s.jsx("div",{className:Yt.box,children:s.jsx(de.ActionsDropdown,{menuItems:u,data:e})}):s.jsxs("div",{className:Yt.box,children:[s.jsx(de.ActionsDropdown,{menuItems:u,data:e,variant:"small"}),a||(n&&e[n]?s.jsx("div",{className:Yt.label,children:e[n]}):null)]})}const Je={selectedActions:"_selectedActions_9h3y5_1",selectedAction:"_selectedAction_9h3y5_1",selectedInfo:"_selectedInfo_9h3y5_17",actionsBtnIconSpan:"_actionsBtnIconSpan_9h3y5_37",actionsBtnIcon:"_actionsBtnIcon_9h3y5_37",selectedIcon:"_selectedIcon_9h3y5_47"};function Dr({rowSelectionConfig:t,rowSelection:e}){if(!t||!t.isCheckbox||Object.keys(e).length===0)return null;const{isCheckbox:o,actions:r,iconSrc:n}=t;return s.jsx(s.Fragment,{children:o&&Object.keys(e).length>0&&s.jsxs("div",{className:Je.selectedActions,children:[s.jsx("div",{className:Je.selectedInfo,children:Object.keys(e).length}),s.jsxs("div",{className:Je.selectedAction,children:[n&&s.jsx("div",{children:s.jsx(oe,{path:n||"",svgClassName:Je.selectedIcon})}),s.jsx(de.MenuButton,{variant:Ge.SECONDARY,size:"sm",isCustomTrigger:!0,menuItems:(r==null?void 0:r.map(a=>({label:a.text,onClick:a.onClick,iconSrc:a.icon})))||[],positionerProps:{placement:"bottom-start"},children:s.jsxs(de,{variant:Ge.SECONDARY,size:"sm",children:["Actions",s.jsx(oe,{svgClassName:Je.actionsBtnIcon,path:Ye,spanClassName:Je.actionsBtnIconSpan})]})})]})]})})}const Or="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.625%206.746a.562.562%200%201%201-.796-.795L5.951%203.83c.22-.22.575-.22.795%200l2.121%202.12a.563.563%200%200%201-.795.795L6.91%205.586v7.127a.563.563%200%200%201-1.125%200V5.585l-1.16%201.161Zm7.027-2.02c.31%200%20.562.251.562.562v7.127l1.161-1.16a.562.562%200%201%201%20.796.795l-2.122%202.121a.563.563%200%200%201-.795%200L9.133%2012.05a.563.563%200%200%201%20.795-.796l1.161%201.161V5.288c0-.31.252-.562.563-.562Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e",Xr="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill-rule='evenodd'%20clip-rule='evenodd'%3e%3cpath%20d='M4.625%206.746a.562.562%200%201%201-.796-.795L5.951%203.83c.22-.22.575-.22.795%200l2.121%202.12a.563.563%200%200%201-.795.795L6.91%205.586v7.127a.563.563%200%200%201-1.125%200V5.585l-1.16%201.161Zm7.027-2.02c.31%200%20.562.251.562.562v7.127l1.161-1.16a.562.562%200%201%201%20.796.795l-2.122%202.121a.562.562%200%200%201-.795%200L9.133%2012.05a.563.563%200%200%201%20.795-.796l1.161%201.161V5.288c0-.31.252-.562.563-.562Z'%20fill='%23B3B2B8'/%3e%3cpath%20d='M4.625%206.747a.562.562%200%201%201-.796-.795L5.95%203.83c.22-.22.576-.22.796%200l2.121%202.122a.562.562%200%201%201-.795.795L6.91%205.587v7.126a.562.562%200%201%201-1.125%200V5.586l-1.16%201.161Z'%20fill='%238A7CDB'/%3e%3c/g%3e%3c/svg%3e",Zr="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill-rule='evenodd'%20clip-rule='evenodd'%3e%3cpath%20d='M4.625%206.746a.562.562%200%201%201-.796-.795L5.951%203.83c.22-.22.575-.22.795%200l2.121%202.12a.562.562%200%201%201-.795.795L6.91%205.586v7.127a.563.563%200%200%201-1.125%200V5.585l-1.16%201.161Zm7.027-2.02c.31%200%20.562.251.562.562v7.127l1.161-1.16a.562.562%200%201%201%20.796.795l-2.122%202.121a.562.562%200%200%201-.795%200L9.133%2012.05a.563.563%200%200%201%20.795-.796l1.161%201.161V5.288c0-.31.252-.562.563-.562Z'%20fill='%238A7CDB'/%3e%3cpath%20d='M4.625%206.747a.562.562%200%201%201-.796-.795L5.95%203.83c.22-.22.576-.22.796%200l2.121%202.122a.562.562%200%201%201-.795.795L6.91%205.587v7.126a.562.562%200%201%201-1.125%200V5.586l-1.16%201.161Z'%20fill='%23B3B2B8'/%3e%3c/g%3e%3c/svg%3e",K={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"},Jt={box:"_box_1wr6m_1",selector:"_selector_1wr6m_10",active:"_active_1wr6m_30"};function zn({selectors:t}){const[e,o]=y.useState(0);return s.jsx("div",{className:Jt.box,children:t.map((r,n)=>s.jsx("div",{onClick:()=>{o(n),r.onClick()},className:P(Jt.selector,n===e&&Jt.active),style:{borderRadius:n===0?"4px 0px 0px 4px":n===t.length-1?"0px 4px 4px 0px":0,boxShadow:n===0?"none":""},children:r.name},r.name))})}const ut={checkboxSpan:"_checkboxSpan_dxec8_1",checkbox:"_checkbox_dxec8_1",checkboxSelect:"_checkboxSelect_dxec8_33",radio:"_radio_dxec8_39"},ct="select",At="dropdown-actions",yt="select-radio";function Yn({indeterminate:t,row:e,isHeader:o,...r}){const n=y.useRef(null);return y.useEffect(()=>{typeof t=="boolean"&&(n.current.indeterminate=!r.checked&&t)},[n,t]),s.jsx("span",{className:ut.checkboxSpan,style:{display:o?"flex":void 0},children:s.jsx("input",{type:"checkbox",ref:n,className:P(ut.checkbox,e.id===ct&&ut.checkboxSelect),...r})})}function Hr({indeterminate:t,row:e,...o}){const r=y.useRef(null);return y.useEffect(()=>{r.current.indeterminate=t},[r,t]),s.jsx("span",{className:ut.radioSpan,children:s.jsx("input",{type:"radio",ref:r,className:P(ut.radio),...o})})}function Mr({data:t,loaderConfig:e,columns:o,filterConfig:r,sortConfig:n,rowSelectionConfig:a={isCheckbox:!1,isRadio:!1},actionsConfig:l={isDropdownActions:!1,key:""},searchConfig:u,totalText:i,selectorConfig:c,paginationConfig:d,emptyStateConfig:b,headerText:h,infiniteScrollConfig:p}){var H;const[f,v]=y.useState([]),[I,m]=y.useState({}),[C,x]=y.useState({}),{ref:_,inView:N}=fr.useInView(),B=!e.isFetching&&!e.isError&&!t.length,{isCheckbox:F,isRadio:E,setSelectedRows:W}=a;Tn(()=>{if(!n||!f.length)return;const{setSortOrd:j,setSortBy:z,sortMap:Z}=n;z(Z[f[0].id]),j(f[0].desc?"desc":"asc")},[f]),Tn(()=>{if(!a||!W)return;const j=Y.getSelectedRowModel().rows.map(z=>z.original);W([...j])},[C]),y.useEffect(()=>{p&&N&&p.fetchNextPage()},[p==null?void 0:p.fetchNextPage,N]);const k=[{id:ct,header:j=>s.jsx(Yn,{checked:j.table.getIsAllRowsSelected(),indeterminate:j.table.getIsSomeRowsSelected(),onChange:j.table.getToggleAllRowsSelectedHandler(),row:j.header,isHeader:!0}),cell:({row:j})=>s.jsx(Yn,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},{id:yt,cell:({row:j})=>s.jsx(Hr,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},...o,{id:At,cell:j=>s.jsx(Wr,{actionsConfig:l,data:j.row.original}),header:"Actions",maxSize:150}],Y=it.useReactTable({data:t,columns:k,state:{sorting:f,columnVisibility:I,rowSelection:C},manualSorting:!0,onSortingChange:v,onColumnVisibilityChange:m,enableRowSelection:!0,onRowSelectionChange:x,enableMultiRowSelection:!E,manualPagination:!0,manualFiltering:!0,getCoreRowModel:it.getCoreRowModel(),defaultColumn:{minSize:0,size:Number.MAX_SAFE_INTEGER,maxSize:Number.MAX_SAFE_INTEGER}});return y.useLayoutEffect(()=>{if(F&&E)throw new Error("Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one")},[]),y.useLayoutEffect(()=>{var j;F||(j=Y.getColumn(ct))==null||j.toggleVisibility(!1)},[]),y.useLayoutEffect(()=>{var j;E||(j=Y.getColumn(yt))==null||j.toggleVisibility(!1)},[]),y.useLayoutEffect(()=>{var j;l.isDropdownActions||(j=Y.getColumn(At))==null||j.toggleVisibility(!1)},[]),y.useEffect(()=>{x({})},[u==null?void 0:u.search]),s.jsxs("div",{className:K.box,children:[!e.isError&&s.jsxs("div",{className:K.header,children:[!h&&s.jsxs("div",{className:K.meta,children:[s.jsx("div",{className:K.total,children:i}),typeof r=="object"&&s.jsx(Rr,{filterConfig:r})]}),h&&s.jsx("div",{className:K.headerTxt,children:h}),s.jsxs("div",{className:K.selectorGrp,children:[typeof c=="object"&&s.jsx(zn,{selectors:c==null?void 0:c.selectors}),typeof u=="object"&&s.jsx("div",{className:K.search,children:s.jsx(Ct,{id:"table-search",search:u.search,setSearch:u.setSearch,placeholder:u.placeholder,clearIconClearFn:()=>x({})})})]})]}),(a==null?void 0:a.actions)&&a.actions.length>0&&s.jsx(Dr,{rowSelectionConfig:a,rowSelection:C}),d?s.jsx(dr,{dataLength:t.length,next:d.fetchNextPage,hasMore:(t==null?void 0:t.length)<((H=d.metaData)==null?void 0:H.total_items),loader:d.loader,height:d.height,scrollThreshold:d.scrollThreshold,scrollableTarget:d.scrollableTarget,children:s.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search})}):s.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search}),p&&s.jsx("div",{children:s.jsx("div",{ref:_})})]})}function Jn({table:t,isCheckbox:e,isRadio:o,loaderConfig:r,emptyStateConfig:n,isEmpty:a,search:l}){return s.jsxs("table",{className:K.table,children:[s.jsx("thead",{className:K.tableHead,children:t.getHeaderGroups().map(u=>s.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>s.jsx("th",{className:P(K.tableHeader,i.column.getCanSort()&&K.tableHeaderSort),style:{width:i.getSize()===Number.MAX_SAFE_INTEGER?"auto":i.getSize(),paddingRight:i.id===At?"20px":void 0,paddingLeft:i.index===0&&i.id!==ct&&i.id!==yt?"20px":void 0},children:i.isPlaceholder?null:s.jsxs("div",{onClick:i.column.getToggleSortingHandler(),style:{display:"flex",alignItems:"center",justifyContent:i.id===At?"flex-end":void 0},children:[it.flexRender(i.column.columnDef.header,i.getContext()),{asc:s.jsx(oe,{path:Xr,spanClassName:K.tableHeaderSortSpan}),desc:s.jsx(oe,{path:Zr,spanClassName:K.tableHeaderSortSpan}),false:i.column.getCanSort()?s.jsx(oe,{path:Or,spanClassName:K.tableHeaderSortSpan,svgClassName:K.tableHeaderSort}):null}[i.column.getIsSorted()]??null]})},i.id))},u.id))}),r.isFetching?s.jsx(Vr,{text:r.text,isError:r.isError}):a?s.jsx(Lr,{emptyStateConfig:n,search:l}):s.jsx("tbody",{className:K.tableBody,children:t.getRowModel().rows.map((u,i)=>s.jsx("tr",{className:K.tableRow,children:u.getVisibleCells().map(c=>{const d=(e||o)&&(c.id===`${i}_${yt}`||c.id===`${i}_${ct}`);return s.jsx("td",{className:P(K.tableData,(e||o)&&K.tableDataWithSelection),style:{width:c.column.getSize()===Number.MAX_SAFE_INTEGER?"auto":c.column.getSize(),verticalAlign:d?"middle":void 0},children:it.flexRender(c.column.columnDef.cell,c.getContext())},c.id)})},u.id))}),r.isError&&s.jsx("tbody",{style:{height:"200px"},children:s.jsx("tr",{children:s.jsx("td",{colSpan:n==null?void 0:n.columns,style:{textAlign:"center"},children:r.errMsg||"Error getting data, please try again later."})})}),s.jsx("tfoot",{className:K.tableFoot,children:t.getFooterGroups().map(u=>s.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>s.jsx("th",{children:i.isPlaceholder?null:it.flexRender(i.column.columnDef.footer,i.getContext())},i.id))},u.id))})]})}const De={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 kr({label:t,isLoading:e=!1,required:o=!1,labelClassName:r,inputClassName:n,disabled:a=!1,defaultOptions:l=[],isAPIFilter:u=!1,onChange:i,onSelect:c,placeholder:d,optionsMaxHeight:b="300px",value:h}){const[p,f]=y.useState(l),[v,I]=y.useState(""),m=Zt.collection({items:l,itemToValue:N=>N.value,itemToString:N=>N.label}),[C,x]=$.useMachine(Zt.machine({id:S.useId(),collection:m,onOpenChange(N){N.open&&f(l)},async onInputValueChange({value:N}){if(I(N[0]),!u){const B=p.filter(F=>F.label.toLowerCase().includes(N[0].toLowerCase()));f(B);return}N[0]&&i&&(f([]),i(N[0]))},disabled:a,inputValue:h,multiple:!1,onValueChange(N){}}),{context:{collection:m}}),_=Zt.connect(C,x,$.normalizeProps);return y.useEffect(()=>{l&&f(l)},[l]),s.jsxs("div",{children:[s.jsxs("div",{..._.rootProps,children:[t&&s.jsx("label",{..._.labelProps,className:P(De.inputLabel,r,o&&De.required),children:t}),s.jsx("div",{..._.controlProps,className:De.container,children:s.jsx("input",{..._.inputProps,className:n})})]}),s.jsx("div",{..._.positionerProps,children:p.length>0?s.jsx("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:p.map((N,B)=>s.jsx("li",{className:De.option,..._.getItemProps({item:N}),children:N.listComponent?N.listComponent:N.label},`${N.value}:${B}`))}):v&&s.jsxs("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:[u&&!e&&!p.length&&s.jsx("li",{className:De.option,..._.getItemProps({item:{label:"",value:""}}),children:"No result found"}),!u&&!p.length&&s.jsx("li",{className:De.option,..._.getItemProps({item:{label:"No result found",value:"No result found",disabled:!0}}),children:"No result found"})]})})]})}const ge={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 zr({isOpen:t,onClose:e,children:o,title:r,customHeader:n,customFooter:a,size:l="md",showBackdrop:u=!0,showHeader:i=!0,showFooter:c=!0,buttons:d,footerAddon:b,headerClassName:h,contentClassName:p,footerClassName:f,showHeaderBorder:v=!0,drawerPosition:I="right"}){const m=y.useRef(null),C=y.useRef(null),x=y.useRef(null),_=I==="left"?"-100%":"100%",N=!i&&!c;return y.useEffect(()=>{const B=setTimeout(()=>{var F,E;m.current&&C&&x&&(m.current.style.transform=t?"translateX(0)":`translateX(${_})`,C.current.style.maxHeight=`calc(100vh - (1.75rem * 2) - ${(F=x.current)==null?void 0:F.clientHeight}px)`,C.current.style.height=`calc(100vh - (1.75rem * 2) - ${(E=x.current)==null?void 0:E.clientHeight}px)`)},0);return()=>{clearTimeout(B)}},[t]),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:P(ge.backdropLayer,t&&ge.show),onClick:e,children:u&&s.jsx("div",{className:P(ge.backdrop,t&&ge.showBackdrop)})}),s.jsx("div",{className:P(ge.container,ge[l],ge[`${I}Align`]),ref:m,children:s.jsxs("div",{className:ge.content,children:[i&&s.jsx("div",{className:P(ge.headerContainer,{[ge.showBorder]:v},h),children:n||s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:ge.title,children:r}),s.jsx("button",{type:"button",className:ge.closeBtn,onClick:e})]})}),s.jsx("div",{className:P(ge.descriptionContainer,{[ge.fullHeight]:N},p),ref:C,children:o}),c&&s.jsx("div",{className:P(ge.footer,f),ref:x,children:a||d&&s.jsxs("div",{className:ge.footerBtnContainer,children:[s.jsx("div",{className:ge.footerBtn,children:d.map((B,F)=>s.jsx(de,{disabled:B.disabled,variant:B.variant,onClick:B.onClick?B.onClick:void 0,type:B.btnType,children:B.btnText},F))}),b&&s.jsx("div",{children:b})]})})]})})]})}const re={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 te=(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))(te||{});function Ut({customClasses:t,customStyles:e,name:o,id:r,value:n,onChange:a,restprops:l,cols:u,errorMsg:i,disabled:c=!1,rows:d=2,type:b="text",placeholder:h="Placeholder",onBlur:p}){const f=y.useRef(null);return s.jsxs("div",{className:re.inputWrapper,children:[b==="textarea"?s.jsx("textarea",{rows:d,cols:u,style:e,className:P(re.textarea,i&&re.error,t),placeholder:h,name:o,id:r,value:n,onChange:a,disabled:c,onBlur:p,...l}):s.jsx("input",{ref:f,style:e,type:b,className:P(re.input,i&&re.error,t),placeholder:h,name:o,id:r,value:n,onChange:a,disabled:c,onClick:()=>{var v;return(v=f.current)==null?void 0:v.showPicker()},onBlur:p,...l}),i&&s.jsx("p",{className:re.errorMsg,children:i})]})}Ut.displayName=te.INPUT,Ut.id=te.INPUT;function _t({children:t,placement:e="left",isDropdown:o=!1,dropdownOptions:r,handleOptionClick:n=()=>{},showDropdownSearch:a=!0}){var m;const l=e==="left"?"left":"right",[u,i]=y.useState(!1),c=y.useRef(null),[d,b]=y.useState(""),[h,p]=y.useState(!0);y.useEffect(()=>(document.addEventListener("click",f),()=>{document.removeEventListener("click",f)}),[]);const f=C=>{var x;(x=c.current)!=null&&x.contains(C.target)||i(!1)},v=()=>{var C;if(u)i(!1),p(!0);else{i(!0);const x=(C=c.current)==null?void 0:C.getBoundingClientRect(),_=(x==null?void 0:x.right)+(x==null?void 0:x.width),N=window.innerWidth-100;_>N&&p(!1)}},I=C=>(C.label+" "+C.value).toLowerCase().includes(d.toLowerCase());return s.jsxs("div",{className:P(re.inputAddon,re[l]),onClick:()=>{o&&v()},ref:c,style:{cursor:o?"pointer":"inherit"},children:[t,o&&s.jsxs(s.Fragment,{children:[s.jsx(oe,{path:Ye,width:20,customSpanStyles:{width:"20px"}}),u&&s.jsxs("div",{className:re.dropdownContainer,style:{left:h?"0":"inherit",right:h?"inherit":"0",paddingTop:a?"0":"12px"},children:[a&&s.jsx("div",{className:re.searchContainer,onClick:C=>C.stopPropagation(),children:s.jsx(Ct,{search:d,setSearch:b,id:"input-add-on-search"})}),(m=r==null?void 0:r.filter(I))==null?void 0:m.map(C=>s.jsx("div",{className:re.dropdownOption,onClick:x=>{x.stopPropagation(),n(C),v()},children:C.label},C.value))]})]})]})}function Qt({children:t,isDropdown:e=!1,dropdownOptions:o=[],handleOptionClick:r=()=>{},showDropdownSearch:n=!0}){return s.jsx(_t,{placement:"left",isDropdown:e,dropdownOptions:o,handleOptionClick:r,showDropdownSearch:n,children:t})}function $t({children:t,isDropdown:e=!1,dropdownOptions:o=[],handleOptionClick:r=()=>{},showDropdownSearch:n=!0}){return s.jsx(_t,{placement:"right",isDropdown:e,dropdownOptions:o,handleOptionClick:r,showDropdownSearch:n,children:t})}_t.displayName=te.INPUT_ADDON,_t.id=te.INPUT_ADDON,Qt.displayName=te.INPUT_LEFT_ADDON,Qt.id=te.INPUT_LEFT_ADDON,$t.displayName=te.INPUT_RIGHT_ADDON,$t.id=te.INPUT_RIGHT_ADDON;function Et({children:t,customClassName:e,customStyles:o,size:r="adapt"}){return s.jsx("div",{className:P(re.inputContainer,re[r],e),style:o,children:t})}Et.displayName=te.INPUT_CONTAINER,Et.id=te.INPUT_CONTAINER;function St({children:t,placement:e="left"}){const o=e==="left"?"left":"right";return s.jsx("div",{className:P(re.inputElement,re[o]),children:t})}function qt({children:t}){return s.jsx(St,{placement:"left",children:t})}function Kt({children:t}){return s.jsx(St,{placement:"right",children:t})}St.displayName=te.INPUT_ELEMENT,St.id=te.INPUT_ELEMENT,qt.displayName=te.INPUT_LEFT_ELEMENT,qt.id=te.INPUT_LEFT_ELEMENT,Kt.displayName=te.INPUT_RIGHT_ELEMENT,Kt.id=te.INPUT_RIGHT_ELEMENT;function en({children:t}){const e={},o=y.Children.toArray(t);o.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 r=o.map(n=>n.type.id!=="Input"?n:y.cloneElement(n,{...n.props,customStyles:{...e,...n.props.customStyles}}));return s.jsx("div",{className:re.inputGroup,children:r})}en.displayName=te.INPUT_GROUP,en.id=te.INPUT_GROUP;const Un="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2015A7%207%200%201%201%208%201a7%207%200%200%201%200%2014Zm0%201A8%208%200%201%200%208%200a8%208%200%200%200%200%2016Z'%20fill='%23B5B5B5'/%3e%3cpath%20d='m8.93%206.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738%203.468c-.194.897.105%201.319.808%201.319.545%200%201.178-.252%201.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275%200-.375-.193-.304-.533L8.93%206.588ZM9%204.5a1%201%200%201%201-2%200%201%201%200%200%201%202%200Z'%20fill='%23B5B5B5'/%3e%3c/svg%3e",dt={trigger:"_trigger_1ovxi_1",content:"_content_1ovxi_7",arrow:"_arrow_1ovxi_18"};function Yr({children:t,api:e,customStyles:o={}}){return s.jsx("button",{...e.triggerProps,type:"button",className:dt.trigger,style:{...o},children:t})}function Jr({children:t,api:e,bg:o="black",positionerStyles:r={},containerStyles:n={}}){var u,i;const a=!["black","gray"].includes(o),l={...e==null?void 0:e.arrowProps,...a&&{style:{...(u=e==null?void 0:e.arrowProps)==null?void 0:u.style,"--arrow-background":o}}};return s.jsx(s.Fragment,{children:e.isOpen&&s.jsxs("div",{...e.positionerProps,style:{...(i=e==null?void 0:e.positionerProps)==null?void 0:i.style,...r},children:[s.jsx("div",{...l,className:P(dt.arrow,{[dt[o]]:!a}),children:s.jsx("div",{...e.arrowTipProps})}),s.jsx("div",{...e.contentProps,className:P(dt.content,dt[o]),style:{background:a?o:"",...n},children:t})]})})}function Re({children:t,openDelay:e=0,closeDelay:o=0,placement:r="top"}){const[n,a]=$.useMachine(vt.machine({id:y.useId(),openDelay:e,closeDelay:o,positioning:{placement:r,gutter:3}})),l=vt.connect(n,a,$.normalizeProps),u=y.Children.toArray(t).map(i=>y.cloneElement(i,{...i.props??{},api:l}));return s.jsx(s.Fragment,{children:u})}Re.Trigger=Yr,Re.Content=Jr;function Nt({children:t,customClasses:e,customStyles:o,required:r=!1,htmlFor:n,restprops:a={},infoText:l,infoTextTooltipStyles:u={}}){return y.useId(),s.jsxs("div",{className:re.inputLabelContainer,children:[s.jsx("label",{htmlFor:n,className:P(re.inputLabel,e,r&&re.required),style:o,...a,children:s.jsx("span",{children:t})}),l&&s.jsxs(Re,{children:[s.jsx(Re.Trigger,{children:s.jsx(oe,{path:Un,svgClassName:re.infoCircleSvg})}),s.jsx(Re.Content,{positionerStyles:u,children:l})]})]})}Nt.displayName=te.INPUT_LABEL,Nt.id=te.INPUT_LABEL;const ye={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 Qn({api:t}){return s.jsx("div",{...t==null?void 0:t.backdropProps,className:ye.backdrop})}function Ur({isOpen:t,onClose:e,children:o,size:r="md",showOverlay:n=!0,machineProps:a={}}){const l=y.useCallback(b=>{b||e()},[e]),[u,i]=$.useMachine(Vn.machine({id:y.useId(),open:t,onOpenChange:b=>l(b.open),...a})),c=Vn.connect(u,i,$.normalizeProps),d=y.Children.toArray(o).map(b=>y.cloneElement(b,{...b.props,api:c,size:r}));return s.jsxs($.Portal,{children:[n&&s.jsx(Qn,{api:c}),d]})}function Qr({children:t,api:e,customStyles:o={}}){return s.jsx("div",{...e.descriptionProps,className:ye.body,style:o,children:t})}function $r({children:t,api:e,size:o="md"}){const r=y.Children.toArray(t).map(n=>y.cloneElement(n,{...n.props,api:e}));return s.jsx("div",{...e==null?void 0:e.containerProps,className:ye.container,children:s.jsx("div",{className:P(ye.contentWrapper,ye[o]),children:s.jsx("div",{...e==null?void 0:e.contentProps,className:ye.content,children:r})})})}function qr({children:t,api:e,buttons:o,showBorder:r=!0}){return s.jsx("div",{className:P(ye.footer,{[ye.showBorder]:r}),children:t||s.jsx("div",{className:ye.btnsContainer,children:o.map((n,a)=>s.jsx(de,{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},a))})})}function Kr({children:t,api:e,showCrossBtn:o=!0,showBorder:r=!0}){return s.jsxs("div",{...e==null?void 0:e.titleProps,className:P(ye.header,{[ye.showBorder]:r}),children:[s.jsx("div",{children:t}),o&&s.jsx("button",{...e.closeTriggerProps,type:"button",onClick:e==null?void 0:e.close,className:"hybr1d-ui-reset-btn",children:s.jsx(oe,{path:It,svgClassName:ye.closeIcon,spanClassName:ye.closeIconSpan})})]})}function ei({children:t,placement:e="top",popoverProps:o,closeOnScroll:r=!1,containerRef:n}){const[a,l]=$.useMachine(Ln.machine({id:y.useId(),positioning:{placement:e},closeOnInteractOutside:!0,portalled:!1,...o})),u=Ln.connect(a,l,$.normalizeProps);function i(){u==null||u.close()}y.useEffect(()=>(r&&n&&n.current&&n.current.addEventListener("scroll",i),()=>{var d;r&&n&&((d=n.current)==null||d.removeEventListener("scroll",i))}),[n==null?void 0:n.current]);const c=y.Children.toArray(t).map(d=>y.cloneElement(d,{...d.props,api:u}));return s.jsx(s.Fragment,{children:c})}function ti({children:t,api:e,styles:o,className:r}){return s.jsx("button",{...e==null?void 0:e.closeTriggerProps,style:o,className:P("hybr1d-ui-reset-btn",r),onClick:e==null?void 0:e.close,children:t})}const Ue={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 ni({children:t,api:e,bg:o="black",styles:r,className:n,positionerStyles:a}){var d,b;const l=e!=null&&e.portalled?$.Portal:y.Fragment,u=y.Children.toArray(t).map(h=>y.cloneElement(h,{...h.props,api:e})),i=!["black","gray"].includes(o),c={...e==null?void 0:e.arrowProps,...i&&{style:{...(d=e==null?void 0:e.arrowProps)==null?void 0:d.style,"--arrow-background":o}}};return s.jsx(l,{children:s.jsxs("div",{...e==null?void 0:e.positionerProps,className:Ue.positioner,style:{...(b=e==null?void 0:e.positionerProps)==null?void 0:b.style,...a},children:[s.jsx("div",{...c,className:P(Ue.arrow,{[Ue[o]]:!i}),children:s.jsx("div",{...e==null?void 0:e.arrowTipProps})}),s.jsx("div",{...e==null?void 0:e.contentProps,className:P(Ue.content,Ue[o],n),style:{background:i?o:"",...r},children:u})]})})}function oi({children:t,api:e,styles:o,className:r}){return s.jsx("div",{...e==null?void 0:e.descriptionProps,style:o,className:r,children:t})}function ri({children:t,api:e,styles:o,className:r}){return s.jsx("div",{...e==null?void 0:e.titleProps,style:o,className:r,children:t})}function ii({children:t,api:e,openOnHover:o=!0,styles:r,className:n}){return s.jsx("button",{...e==null?void 0:e.triggerProps,onMouseEnter:o?e==null?void 0:e.open:()=>{},onMouseLeave:o?e==null?void 0:e.close:()=>{},className:P("hybr1d-ui-reset-btn",Ue.trigger,n),style:r,children:t})}const ie={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"},tn={valueContainer:t=>({...t,gap:"4px"}),option:(t,{data:e,isDisabled:o,isFocused:r,isSelected:n})=>({...t,backgroundColor:o?void 0:n?e.color:r?"#f7f7f7":"#ffffff",color:"#171718",cursor:o?"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:o})=>({...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%)"}})},nn=t=>({control:(e,{isDisabled:o,isFocused:r})=>({...e,backgroundColor:o?"#f5f5f8":"transparent",color:"#171718",border:"1px solid #e2e0eb",borderColor:t?"#de350b !important":r?"#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"}})}),on=t=>s.jsxs(Me.components.Option,{...t,className:P({[ie.subLabelContainer]:t.data.subLabel},ie.optionContainer),children:[s.jsxs("div",{className:P(ie.label),children:[t.data.profileImgUrl&&s.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),s.jsx("span",{children:t.data.label})]}),t.data.subLabel&&s.jsx("div",{className:P(ie.subLabel),children:t.data.subLabel})]}),rn=t=>s.jsx(Me.components.MultiValueLabel,{...t,children:s.jsxs("div",{className:ie.multiLabelContainer,children:[t.data.profileImgUrl&&s.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),s.jsx("div",{className:P(ie.label),children:s.jsx("span",{children:t.data.label})})]})}),sn=t=>s.jsx(Me.components.MultiValueRemove,{...t,children:s.jsx(oe,{path:It,spanClassName:ie.closeSpan})}),an=t=>s.jsx(Me.components.ClearIndicator,{...t,children:s.jsx(oe,{path:It,spanClassName:ie.closeSpan})}),ln=t=>s.jsx(Me.components.DropdownIndicator,{...t,children:s.jsx(oe,{path:Ye,spanClassName:ie.downArrowSpan})}),un=t=>s.jsx(Me.components.SingleValue,{...t,children:s.jsxs("div",{className:ie.singleValueContainer,children:[t.data.profileImgUrl&&s.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),s.jsx("div",{className:P(ie.label),children:s.jsx("span",{children:t.data.label})})]})});function si({options:t,onChange:e,name:o,id:r,className:n,placeholder:a,selectStyles:l,defaultValue:u,formatGroupLabel:i,customContainerStyles:c,menuPlacement:d,errorMsg:b,extraprops:h,isDisabled:p=!1,isSearchable:f=!0,isMulti:v=!1,isClearable:I=!1,CustomDropdownIndicator:m}){return s.jsxs("div",{onClick:C=>C.stopPropagation(),style:c,className:ie.selectContainer,children:[s.jsx(Me,{isMulti:v,placeholder:a,defaultValue:u,options:t,maxMenuHeight:170,isClearable:I,name:o,id:r,className:P(n),isSearchable:f,styles:{...tn,...nn(b),...l},components:{Option:on,MultiValueLabel:rn,MultiValueRemove:sn,DropdownIndicator:m||ln,ClearIndicator:an,SingleValue:un},isDisabled:p,onChange:(C,x)=>{e(v?C.map(_=>_.value):(C==null?void 0:C.value)??"",x)},formatGroupLabel:i,menuPlacement:d,...h}),b&&s.jsx("p",{className:ie.errorMsg,children:b})]})}function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},L.apply(this,arguments)}function ke(t){"@babel/helpers - typeof";return ke=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},ke(t)}function ai(t,e){if(ke(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(ke(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $n(t){var e=ai(t,"string");return ke(e)==="symbol"?e:String(e)}function Qe(t,e,o){return e=$n(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function qn(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function T(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(o),!0).forEach(function(r){Qe(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):qn(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function li(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kn(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$n(r.key),r)}}function ui(t,e,o){return e&&Kn(t.prototype,e),o&&Kn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},cn(t,e)}function ci(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&&cn(t,e)}function wt(t){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},wt(t)}function di(){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 gi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bi(t,e){if(e&&(ke(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gi(t)}function pi(t){var e=di();return function(){var r=wt(t),n;if(e){var a=wt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return bi(this,n)}}function dn(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o<e;o++)r[o]=t[o];return r}function mi(t){if(Array.isArray(t))return dn(t)}function fi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eo(t,e){if(t){if(typeof t=="string")return dn(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return dn(t,e)}}function vi(){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 $e(t){return mi(t)||fi(t)||eo(t)||vi()}function hi(t){if(Array.isArray(t))return t}function Ii(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,a,l,u=[],i=!0,c=!1;try{if(a=(o=o.call(t)).next,e===0){if(Object(o)!==o)return;i=!1}else for(;!(i=(r=a.call(o)).done)&&(u.push(r.value),u.length!==e);i=!0);}catch(d){c=!0,n=d}finally{try{if(!i&&o.return!=null&&(l=o.return(),Object(l)!==l))return}finally{if(c)throw n}}return u}}function Ci(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
33
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(t,e){return hi(t)||Ii(t,e)||eo(t,e)||Ci()}function xi(t,e){if(t==null)return{};var o={},r=Object.keys(t),n,a;for(a=0;a<r.length;a++)n=r[a],!(e.indexOf(n)>=0)&&(o[n]=t[n]);return o}function Se(t,e){if(t==null)return{};var o=xi(t,e),r,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ai(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const yi=Math.min,_i=Math.max,Gt=Math.round,Bt=Math.floor,Ft=t=>({x:t,y:t});function Ei(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function to(t){return oo(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function no(t){var e;return(e=(oo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function oo(t){return t instanceof Node||t instanceof Ne(t).Node}function gn(t){return t instanceof Element||t instanceof Ne(t).Element}function bn(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function ro(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function io(t){const{overflow:e,overflowX:o,overflowY:r,display:n}=pn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(n)}function Si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ni(t){return["html","body","#document"].includes(to(t))}function pn(t){return Ne(t).getComputedStyle(t)}function wi(t){if(to(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ro(t)&&t.host||no(t);return ro(e)?e.host:e}function so(t){const e=wi(t);return Ni(e)?t.ownerDocument?t.ownerDocument.body:t.body:bn(e)&&io(e)?e:so(e)}function jt(t,e,o){var r;e===void 0&&(e=[]),o===void 0&&(o=!0);const n=so(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),l=Ne(n);return a?e.concat(l,l.visualViewport||[],io(n)?n:[],l.frameElement&&o?jt(l.frameElement):[]):e.concat(n,jt(n,[],o))}function Gi(t){const e=pn(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=bn(t),a=n?t.offsetWidth:o,l=n?t.offsetHeight:r,u=Gt(o)!==a||Gt(r)!==l;return u&&(o=a,r=l),{width:o,height:r,$:u}}function mn(t){return gn(t)?t:t.contextElement}function fn(t){const e=mn(t);if(!bn(e))return Ft(1);const o=e.getBoundingClientRect(),{width:r,height:n,$:a}=Gi(e);let l=(a?Gt(o.width):o.width)/r,u=(a?Gt(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const Bi=Ft(0);function Fi(t){const e=Ne(t);return!Si()||!e.visualViewport?Bi:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ji(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Ne(t)?!1:e}function ao(t,e,o,r){e===void 0&&(e=!1),o===void 0&&(o=!1);const n=t.getBoundingClientRect(),a=mn(t);let l=Ft(1);e&&(r?gn(r)&&(l=fn(r)):l=fn(t));const u=ji(a,o,r)?Fi(a):Ft(0);let i=(n.left+u.x)/l.x,c=(n.top+u.y)/l.y,d=n.width/l.x,b=n.height/l.y;if(a){const h=Ne(a),p=r&&gn(r)?Ne(r):r;let f=h.frameElement;for(;f&&r&&p!==h;){const v=fn(f),I=f.getBoundingClientRect(),m=pn(f),C=I.left+(f.clientLeft+parseFloat(m.paddingLeft))*v.x,x=I.top+(f.clientTop+parseFloat(m.paddingTop))*v.y;i*=v.x,c*=v.y,d*=v.x,b*=v.y,i+=C,c+=x,f=Ne(f).frameElement}}return Ei({width:d,height:b,x:i,y:c})}function Pi(t,e){let o=null,r;const n=no(t);function a(){clearTimeout(r),o&&o.disconnect(),o=null}function l(u,i){u===void 0&&(u=!1),i===void 0&&(i=1),a();const{left:c,top:d,width:b,height:h}=t.getBoundingClientRect();if(u||e(),!b||!h)return;const p=Bt(d),f=Bt(n.clientWidth-(c+b)),v=Bt(n.clientHeight-(d+h)),I=Bt(c),C={rootMargin:-p+"px "+-f+"px "+-v+"px "+-I+"px",threshold:_i(0,yi(1,i))||1};let x=!0;function _(N){const B=N[0].intersectionRatio;if(B!==i){if(!x)return l();B?l(!1,B):r=setTimeout(()=>{l(!1,1e-7)},100)}x=!1}try{o=new IntersectionObserver(_,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,C)}o.observe(t)}return l(!0),a}function Ti(t,e,o,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:i=!1}=r,c=mn(t),d=n||a?[...c?jt(c):[],...jt(e)]:[];d.forEach(m=>{n&&m.addEventListener("scroll",o,{passive:!0}),a&&m.addEventListener("resize",o)});const b=c&&u?Pi(c,o):null;let h=-1,p=null;l&&(p=new ResizeObserver(m=>{let[C]=m;C&&C.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(e)})),o()}),c&&!i&&p.observe(c),p.observe(e));let f,v=i?ao(t):null;i&&I();function I(){const m=ao(t);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&o(),v=m,f=requestAnimationFrame(I)}return o(),()=>{d.forEach(m=>{n&&m.removeEventListener("scroll",o),a&&m.removeEventListener("resize",o)}),b&&b(),p&&p.disconnect(),p=null,i&&cancelAnimationFrame(f)}}var vn=S.useLayoutEffect,Ri=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Pt=function(){};function Vi(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function Li(t,e){for(var o=arguments.length,r=new Array(o>2?o-2:0),n=2;n<o;n++)r[n-2]=arguments[n];var a=[].concat(r);if(e&&t)for(var l in e)e.hasOwnProperty(l)&&e[l]&&a.push("".concat(Vi(t,l)));return a.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var Tt=function(e){return Yi(e)?e.filter(Boolean):ke(e)==="object"&&e!==null?[e]:[]},lo=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var o=Se(e,Ri);return T({},o)},ee=function(e,o,r){var n=e.cx,a=e.getStyles,l=e.getClassNames,u=e.className;return{css:a(o,e),className:n(r??{},l(o,e),u)}};function Wi(t,e,o){if(o){var r=o(t,e);if(typeof r=="string")return r}return t}function Rt(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Di(t){return Rt(t)?window.innerHeight:t.clientHeight}function uo(t){return Rt(t)?window.pageYOffset:t.scrollTop}function Vt(t,e){if(Rt(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Oi(t){var e=getComputedStyle(t),o=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var n=t;n=n.parentElement;)if(e=getComputedStyle(n),!(o&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return n;return document.documentElement}function Xi(t,e,o,r){return o*((t=t/r-1)*t*t+1)+e}function Lt(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pt,n=uo(t),a=e-n,l=10,u=0;function i(){u+=l;var c=Xi(u,n,a,o);Vt(t,c),u<o?window.requestAnimationFrame(i):r(t)}i()}function co(t,e){var o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),n=e.offsetHeight/3;r.bottom+n>o.bottom?Vt(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+n,t.scrollHeight)):r.top-n<o.top&&Vt(t,Math.max(e.offsetTop-n,0))}function Zi(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function go(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Hi(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var bo=!1,Mi={get passive(){return bo=!0}},Wt=typeof window<"u"?window:{};Wt.addEventListener&&Wt.removeEventListener&&(Wt.addEventListener("p",Pt,Mi),Wt.removeEventListener("p",Pt,!1));var ki=bo;function zi(t){return t!=null}function Yi(t){return Array.isArray(t)}function gt(t,e,o){return t?e:o}function Ig(t){return t}function Cg(t){return t}var Ji=function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];var a=Object.entries(e).filter(function(l){var u=le(l,1),i=u[0];return!r.includes(i)});return a.reduce(function(l,u){var i=le(u,2),c=i[0],d=i[1];return l[c]=d,l},{})},Ui=["children","innerProps"],Qi=["children","innerProps"];function $i(t){var e=t.maxHeight,o=t.menuEl,r=t.minHeight,n=t.placement,a=t.shouldScroll,l=t.isFixedPosition,u=t.controlHeight,i=Oi(o),c={placement:"bottom",maxHeight:e};if(!o||!o.offsetParent)return c;var d=i.getBoundingClientRect(),b=d.height,h=o.getBoundingClientRect(),p=h.bottom,f=h.height,v=h.top,I=o.offsetParent.getBoundingClientRect(),m=I.top,C=l?window.innerHeight:Di(i),x=uo(i),_=parseInt(getComputedStyle(o).marginBottom,10),N=parseInt(getComputedStyle(o).marginTop,10),B=m-N,F=C-v,E=B+x,W=b-x-v,k=p-C+x+_,Y=x+v-N,H=160;switch(n){case"auto":case"bottom":if(F>=f)return{placement:"bottom",maxHeight:e};if(W>=f&&!l)return a&&Lt(i,k,H),{placement:"bottom",maxHeight:e};if(!l&&W>=r||l&&F>=r){a&&Lt(i,k,H);var j=l?F-_:W-_;return{placement:"bottom",maxHeight:j}}if(n==="auto"||l){var z=e,Z=l?B:E;return Z>=r&&(z=Math.min(Z-_-u,e)),{placement:"top",maxHeight:z}}if(n==="bottom")return a&&Vt(i,k),{placement:"bottom",maxHeight:e};break;case"top":if(B>=f)return{placement:"top",maxHeight:e};if(E>=f&&!l)return a&&Lt(i,Y,H),{placement:"top",maxHeight:e};if(!l&&E>=r||l&&B>=r){var J=e;return(!l&&E>=r||l&&B>=r)&&(J=l?B-N:E-N),a&&Lt(i,Y,H),{placement:"top",maxHeight:J}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function qi(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var po=function(e){return e==="auto"?"bottom":e},Ki=function(e,o){var r,n=e.placement,a=e.theme,l=a.borderRadius,u=a.spacing,i=a.colors;return T((r={label:"menu"},Qe(r,qi(n),"100%"),Qe(r,"position","absolute"),Qe(r,"width","100%"),Qe(r,"zIndex",1),r),o?{}:{backgroundColor:i.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},mo=S.createContext(null),es=function(e){var o=e.children,r=e.minMenuHeight,n=e.maxMenuHeight,a=e.menuPlacement,l=e.menuPosition,u=e.menuShouldScrollIntoView,i=e.theme,c=S.useContext(mo)||{},d=c.setPortalPlacement,b=S.useRef(null),h=S.useState(n),p=le(h,2),f=p[0],v=p[1],I=S.useState(null),m=le(I,2),C=m[0],x=m[1],_=i.spacing.controlHeight;return vn(function(){var N=b.current;if(N){var B=l==="fixed",F=u&&!B,E=$i({maxHeight:n,menuEl:N,minHeight:r,placement:a,shouldScroll:F,isFixedPosition:B,controlHeight:_});v(E.maxHeight),x(E.placement),d==null||d(E.placement)}},[n,a,l,u,r,d,_]),o({ref:b,placerProps:T(T({},e),{},{placement:C||po(a),maxHeight:f})})},ts=function(e){var o=e.children,r=e.innerRef,n=e.innerProps;return R.jsx("div",L({},ee(e,"menu",{menu:!0}),{ref:r},n),o)},ns=ts,os=function(e,o){var r=e.maxHeight,n=e.theme.spacing.baseUnit;return T({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},o?{}:{paddingBottom:n,paddingTop:n})},rs=function(e){var o=e.children,r=e.innerProps,n=e.innerRef,a=e.isMulti;return R.jsx("div",L({},ee(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:n},r),o)},fo=function(e,o){var r=e.theme,n=r.spacing.baseUnit,a=r.colors;return T({textAlign:"center"},o?{}:{color:a.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},is=fo,ss=fo,as=function(e){var o=e.children,r=o===void 0?"No options":o,n=e.innerProps,a=Se(e,Ui);return R.jsx("div",L({},ee(T(T({},a),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},ls=function(e){var o=e.children,r=o===void 0?"Loading...":o,n=e.innerProps,a=Se(e,Qi);return R.jsx("div",L({},ee(T(T({},a),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},us=function(e){var o=e.rect,r=e.offset,n=e.position;return{left:o.left,position:n,top:r,width:o.width,zIndex:1}},cs=function(e){var o=e.appendTo,r=e.children,n=e.controlElement,a=e.innerProps,l=e.menuPlacement,u=e.menuPosition,i=S.useRef(null),c=S.useRef(null),d=S.useState(po(l)),b=le(d,2),h=b[0],p=b[1],f=S.useMemo(function(){return{setPortalPlacement:p}},[]),v=S.useState(null),I=le(v,2),m=I[0],C=I[1],x=S.useCallback(function(){if(n){var F=Zi(n),E=u==="fixed"?0:window.pageYOffset,W=F[h]+E;(W!==(m==null?void 0:m.offset)||F.left!==(m==null?void 0:m.rect.left)||F.width!==(m==null?void 0:m.rect.width))&&C({offset:W,rect:F})}},[n,u,h,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);vn(function(){x()},[x]);var _=S.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&i.current&&(c.current=Ti(n,i.current,x,{elementResize:"ResizeObserver"in window}))},[n,x]);vn(function(){_()},[_]);var N=S.useCallback(function(F){i.current=F,_()},[_]);if(!o&&u!=="fixed"||!m)return null;var B=R.jsx("div",L({ref:N},ee(T(T({},e),{},{offset:m.offset,position:u,rect:m.rect}),"menuPortal",{"menu-portal":!0}),a),r);return R.jsx(mo.Provider,{value:f},o?Cr.createPortal(B,o):B)},ds=function(e){var o=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:o?"none":void 0,position:"relative"}},gs=function(e){var o=e.children,r=e.innerProps,n=e.isDisabled,a=e.isRtl;return R.jsx("div",L({},ee(e,"container",{"--is-disabled":n,"--is-rtl":a}),r),o)},bs=function(e,o){var r=e.theme.spacing,n=e.isMulti,a=e.hasValue,l=e.selectProps.controlShouldRenderValue;return T({alignItems:"center",display:n&&a&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},o?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ps=function(e){var o=e.children,r=e.innerProps,n=e.isMulti,a=e.hasValue;return R.jsx("div",L({},ee(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":a}),r),o)},ms=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},fs=function(e){var o=e.children,r=e.innerProps;return R.jsx("div",L({},ee(e,"indicatorsContainer",{indicators:!0}),r),o)},vo,vs=["size"],hs=["innerProps","isRtl","size"];function Is(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Cs=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0I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5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:Is},ho=function(e){var o=e.size,r=Se(e,vs);return R.jsx("svg",L({height:o,width:o,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cs},r))},hn=function(e){return R.jsx(ho,L({size:20},e),R.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Io=function(e){return R.jsx(ho,L({size:20},e),R.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Co=function(e,o){var r=e.isFocused,n=e.theme,a=n.spacing.baseUnit,l=n.colors;return T({label:"indicatorContainer",display:"flex",transition:"color 150ms"},o?{}:{color:r?l.neutral60:l.neutral20,padding:a*2,":hover":{color:r?l.neutral80:l.neutral40}})},xs=Co,As=function(e){var o=e.children,r=e.innerProps;return R.jsx("div",L({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),o||R.jsx(Io,null))},ys=Co,_s=function(e){var o=e.children,r=e.innerProps;return R.jsx("div",L({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),o||R.jsx(hn,null))},Es=function(e,o){var r=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,l=n.colors;return T({label:"indicatorSeparator",alignSelf:"stretch",width:1},o?{}:{backgroundColor:r?l.neutral10:l.neutral20,marginBottom:a*2,marginTop:a*2})},Ss=function(e){var o=e.innerProps;return R.jsx("span",L({},o,ee(e,"indicatorSeparator",{"indicator-separator":!0})))},Ns=R.keyframes(vo||(vo=Ai([`
34
34
  0%, 80%, 100% { opacity: 0; }
@@ -13,7 +13,7 @@ export interface TableProps {
13
13
  iconSrc?: string;
14
14
  onClick: any;
15
15
  filterFn?: any;
16
- disabled?: boolean;
16
+ disabled?: boolean | ((data: any) => boolean);
17
17
  }[];
18
18
  key?: string;
19
19
  customComp?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "0.3.50",
3
+ "version": "0.3.51",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"