@hybr1d-tech/charizard 0.3.54 → 0.3.55
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 +204 -204
- package/dist/hybr1d-ui.umd.cjs +1 -1
- package/dist/table/Table.d.ts +2 -0
- package/package.json +1 -1
package/dist/hybr1d-ui.umd.cjs
CHANGED
|
@@ -28,7 +28,7 @@ Check the top-level render call using <`+G+">.")}return A}}function oo(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 r;try{r=JSON.parse(t)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}r!==void 0&&e(r)},Hn=mo.create()(To(t=>({filters:[],setDefaultFilters:e=>t({filters:e}),addFilters:(e,r,o)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=[...l.values,r];return typeof o=="function"&&o({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),removeFilters:(e,r,o)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=l.values.filter(i=>i!==r);return typeof o=="function"&&o({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),resetFilters:(e,r)=>t(o=>({filters:o.filters.map(s=>s.key===e?(typeof r=="function"&&r({filterType:e,value:""}),{...s,values:[]}):s)})),resetAllFilters:e=>t(r=>({filters:r.filters.map(o=>(typeof e=="function"&&e(),{...o,values:[]}))}))})));function Ro({filterConfig:t}){const{filters:e,isLoading:r,isError:o,filterDispatch:n,filterReset:s}=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)||r||u((e==null?void 0:e.map(p=>({key:p.key,values:[]})))||[])},[e==null?void 0:e.length,r]),!e||!e.length)return null;if(o)return a.jsx("div",{className:q.filtersInfo,children:"Error getting filters"});if(r)return a.jsx("div",{className:q.filtersInfo,children:"Getting filters..."});const h=l.map(p=>p.values).flat();return a.jsxs("div",{className:q.filters,children:[h.length>0&&a.jsx("img",{title:"Reset filters",src:No,alt:"reset all filters",className:q.resetIcon2,onClick:()=>{b(s)}}),e.map((p,f)=>a.jsx(jo,{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 Vo({text:t="Getting data...",isError:e}){return a.jsx("tbody",{className:Mn.box,children:a.jsx("tr",{className:Mn.loader,children:!e&&a.jsx("td",{children:t})})})}const kn={box:"_box_11cjo_1",empty:"_empty_11cjo_8"};function Lo({emptyStateConfig:t,search:e}){return t?a.jsx("tbody",{className:kn.box,children:a.jsx("tr",{children:a.jsx("td",{className:kn.empty,colSpan:t.columns,children:a.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 Wo({actionsConfig:t,data:e}){var i;if(!t)return null;const{menuItems:r=[],isDropdownActions:o,key:n,customComp:s}=t;if(!o)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=r.map(c=>({...c,disabled:typeof c.disabled=="function"?c.disabled(e):!1}));return!n&&!s?a.jsx("div",{className:Yt.box,children:a.jsx(de.ActionsDropdown,{menuItems:u,data:e})}):a.jsxs("div",{className:Yt.box,children:[a.jsx(de.ActionsDropdown,{menuItems:u,data:e,variant:"small"}),s||(n&&e[n]?a.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 Do({rowSelectionConfig:t,rowSelection:e}){if(!t||!t.isCheckbox||Object.keys(e).length===0)return null;const{isCheckbox:r,actions:o,iconSrc:n}=t;return a.jsx(a.Fragment,{children:r&&Object.keys(e).length>0&&a.jsxs("div",{className:Je.selectedActions,children:[a.jsx("div",{className:Je.selectedInfo,children:Object.keys(e).length}),a.jsxs("div",{className:Je.selectedAction,children:[n&&a.jsx("div",{children:a.jsx(re,{path:n||"",svgClassName:Je.selectedIcon})}),a.jsx(de.MenuButton,{variant:we.SECONDARY,size:"sm",isCustomTrigger:!0,menuItems:(o==null?void 0:o.map(s=>({label:s.text,onClick:s.onClick,iconSrc:s.icon})))||[],positionerProps:{placement:"bottom-start"},children:a.jsxs(de,{variant:we.SECONDARY,size:"sm",children:["Actions",a.jsx(re,{svgClassName:Je.actionsBtnIcon,path:Ye,spanClassName:Je.actionsBtnIconSpan})]})})]})]})})}const Oo="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",Xo="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",Zo="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,r]=y.useState(0);return a.jsx("div",{className:Jt.box,children:t.map((o,n)=>a.jsx("div",{onClick:()=>{r(n),o.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:o.name},o.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:r,...o}){const n=y.useRef(null);return y.useEffect(()=>{typeof t=="boolean"&&(n.current.indeterminate=!o.checked&&t)},[n,t]),a.jsx("span",{className:ut.checkboxSpan,style:{display:r?"flex":void 0},children:a.jsx("input",{type:"checkbox",ref:n,className:P(ut.checkbox,e.id===ct&&ut.checkboxSelect),...o})})}function Ho({indeterminate:t,row:e,...r}){const o=y.useRef(null);return y.useEffect(()=>{o.current.indeterminate=t},[o,t]),a.jsx("span",{className:ut.radioSpan,children:a.jsx("input",{type:"radio",ref:o,className:P(ut.radio),...r})})}function Mo({data:t,loaderConfig:e,columns:r,filterConfig:o,sortConfig:n,rowSelectionConfig:s={isCheckbox:!1,isRadio:!1,clearOnSearch:!0},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}=fo.useInView(),B=!e.isFetching&&!e.isError&&!t.length,{isCheckbox:F,isRadio:E,setSelectedRows:W}=s;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(!s||!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=>a.jsx(Yn,{checked:j.table.getIsAllRowsSelected(),indeterminate:j.table.getIsSomeRowsSelected(),onChange:j.table.getToggleAllRowsSelectedHandler(),row:j.header,isHeader:!0}),cell:({row:j})=>a.jsx(Yn,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},{id:yt,cell:({row:j})=>a.jsx(Ho,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},...r,{id:At,cell:j=>a.jsx(Wo,{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},getRowId:s!=null&&s.rowIdKey?j=>j[s==null?void 0:s.rowIdKey]:void 0});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(()=>{s!=null&&s.clearOnSearch&&x({})},[u==null?void 0:u.search]),a.jsxs("div",{className:K.box,children:[!e.isError&&a.jsxs("div",{className:K.header,children:[!h&&a.jsxs("div",{className:K.meta,children:[a.jsx("div",{className:K.total,children:i}),typeof o=="object"&&a.jsx(Ro,{filterConfig:o})]}),h&&a.jsx("div",{className:K.headerTxt,children:h}),a.jsxs("div",{className:K.selectorGrp,children:[typeof c=="object"&&a.jsx(zn,{selectors:c==null?void 0:c.selectors}),typeof u=="object"&&a.jsx("div",{className:K.search,children:a.jsx(Ct,{id:"table-search",search:u.search,setSearch:u.setSearch,placeholder:u.placeholder,clearIconClearFn:()=>x({})})})]})]}),(s==null?void 0:s.actions)&&s.actions.length>0&&a.jsx(Do,{rowSelectionConfig:s,rowSelection:C}),d?a.jsx(co,{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:a.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search})}):a.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search}),p&&a.jsx("div",{children:a.jsx("div",{ref:_})})]})}function Jn({table:t,isCheckbox:e,isRadio:r,loaderConfig:o,emptyStateConfig:n,isEmpty:s,search:l}){return a.jsxs("table",{className:K.table,children:[a.jsx("thead",{className:K.tableHead,children:t.getHeaderGroups().map(u=>a.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>a.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:a.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:a.jsx(re,{path:Xo,spanClassName:K.tableHeaderSortSpan}),desc:a.jsx(re,{path:Zo,spanClassName:K.tableHeaderSortSpan}),false:i.column.getCanSort()?a.jsx(re,{path:Oo,spanClassName:K.tableHeaderSortSpan,svgClassName:K.tableHeaderSort}):null}[i.column.getIsSorted()]??null]})},i.id))},u.id))}),o.isFetching?a.jsx(Vo,{text:o.text,isError:o.isError}):s?a.jsx(Lo,{emptyStateConfig:n,search:l}):a.jsx("tbody",{className:K.tableBody,children:t.getRowModel().rows.map((u,i)=>a.jsx("tr",{className:K.tableRow,children:u.getVisibleCells().map(c=>{const d=(e||r)&&(c.id===`${i}_${yt}`||c.id===`${i}_${ct}`);return a.jsx("td",{className:P(K.tableData,(e||r)&&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))}),o.isError&&a.jsx("tbody",{style:{height:"200px"},children:a.jsx("tr",{children:a.jsx("td",{colSpan:n==null?void 0:n.columns,style:{textAlign:"center"},children:o.errMsg||"Error getting data, please try again later."})})}),a.jsx("tfoot",{className:K.tableFoot,children:t.getFooterGroups().map(u=>a.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>a.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 ko({label:t,isLoading:e=!1,required:r=!1,labelClassName:o,inputClassName:n,disabled:s=!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:s,inputValue:h,multiple:!1,onValueChange(N){}}),{context:{collection:m}}),_=Zt.connect(C,x,$.normalizeProps);return y.useEffect(()=>{l&&f(l)},[l]),a.jsxs("div",{children:[a.jsxs("div",{..._.rootProps,children:[t&&a.jsx("label",{..._.labelProps,className:P(De.inputLabel,o,r&&De.required),children:t}),a.jsx("div",{..._.controlProps,className:De.container,children:a.jsx("input",{..._.inputProps,className:n})})]}),a.jsx("div",{..._.positionerProps,children:p.length>0?a.jsx("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:p.map((N,B)=>a.jsx("li",{className:De.option,..._.getItemProps({item:N}),children:N.listComponent?N.listComponent:N.label},`${N.value}:${B}`))}):v&&a.jsxs("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:[u&&!e&&!p.length&&a.jsx("li",{className:De.option,..._.getItemProps({item:{label:"",value:""}}),children:"No result found"}),!u&&!p.length&&a.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 zo({isOpen:t,onClose:e,children:r,title:o,customHeader:n,customFooter:s,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]),a.jsxs(a.Fragment,{children:[a.jsx("div",{className:P(ge.backdropLayer,t&&ge.show),onClick:e,children:u&&a.jsx("div",{className:P(ge.backdrop,t&&ge.showBackdrop)})}),a.jsx("div",{className:P(ge.container,ge[l],ge[`${I}Align`]),ref:m,children:a.jsxs("div",{className:ge.content,children:[i&&a.jsx("div",{className:P(ge.headerContainer,{[ge.showBorder]:v},h),children:n||a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:ge.title,children:o}),a.jsx("button",{type:"button",className:ge.closeBtn,onClick:e})]})}),a.jsx("div",{className:P(ge.descriptionContainer,{[ge.fullHeight]:N},p),ref:C,children:r}),c&&a.jsx("div",{className:P(ge.footer,f),ref:x,children:s||d&&a.jsxs("div",{className:ge.footerBtnContainer,children:[a.jsx("div",{className:ge.footerBtn,children:d.map((B,F)=>a.jsx(de,{disabled:B.disabled,variant:B.variant,onClick:B.onClick?B.onClick:void 0,type:B.btnType,children:B.btnText},F))}),b&&a.jsx("div",{children:b})]})})]})})]})}const oe={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:r,id:o,value:n,onChange:s,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 a.jsxs("div",{className:oe.inputWrapper,children:[b==="textarea"?a.jsx("textarea",{rows:d,cols:u,style:e,className:P(oe.textarea,i&&oe.error,t),placeholder:h,name:r,id:o,value:n,onChange:s,disabled:c,onBlur:p,...l}):a.jsx("input",{ref:f,style:e,type:b,className:P(oe.input,i&&oe.error,t),placeholder:h,name:r,id:o,value:n,onChange:s,disabled:c,onClick:()=>{var v;return(v=f.current)==null?void 0:v.showPicker()},onBlur:p,...l}),i&&a.jsx("p",{className:oe.errorMsg,children:i})]})}Ut.displayName=te.INPUT,Ut.id=te.INPUT;function _t({children:t,placement:e="left",isDropdown:r=!1,dropdownOptions:o,handleOptionClick:n=()=>{},showDropdownSearch:s=!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 a.jsxs("div",{className:P(oe.inputAddon,oe[l]),onClick:()=>{r&&v()},ref:c,style:{cursor:r?"pointer":"inherit"},children:[t,r&&a.jsxs(a.Fragment,{children:[a.jsx(re,{path:Ye,width:20,customSpanStyles:{width:"20px"}}),u&&a.jsxs("div",{className:oe.dropdownContainer,style:{left:h?"0":"inherit",right:h?"inherit":"0",paddingTop:s?"0":"12px"},children:[s&&a.jsx("div",{className:oe.searchContainer,onClick:C=>C.stopPropagation(),children:a.jsx(Ct,{search:d,setSearch:b,id:"input-add-on-search"})}),(m=o==null?void 0:o.filter(I))==null?void 0:m.map(C=>a.jsx("div",{className:oe.dropdownOption,onClick:x=>{x.stopPropagation(),n(C),v()},children:C.label},C.value))]})]})]})}function Qt({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return a.jsx(_t,{placement:"left",isDropdown:e,dropdownOptions:r,handleOptionClick:o,showDropdownSearch:n,children:t})}function $t({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return a.jsx(_t,{placement:"right",isDropdown:e,dropdownOptions:r,handleOptionClick:o,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:r,size:o="adapt"}){return a.jsx("div",{className:P(oe.inputContainer,oe[o],e),style:r,children:t})}Et.displayName=te.INPUT_CONTAINER,Et.id=te.INPUT_CONTAINER;function St({children:t,placement:e="left"}){const r=e==="left"?"left":"right";return a.jsx("div",{className:P(oe.inputElement,oe[r]),children:t})}function qt({children:t}){return a.jsx(St,{placement:"left",children:t})}function Kt({children:t}){return a.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={},r=y.Children.toArray(t);r.forEach(n=>{n.type.id==="InputLeftElement"&&(e.paddingInlineStart="36px"),n.type.id==="InputRightElement"&&(e.paddingInlineEnd="36px"),n.type.id==="InputLeftAddon"&&(e.borderTopLeftRadius=0,e.borderBottomLeftRadius=0),n.type.id==="InputRightAddon"&&(e.borderTopRightRadius=0,e.borderBottomRightRadius=0)});const o=r.map(n=>n.type.id!=="Input"?n:y.cloneElement(n,{...n.props,customStyles:{...e,...n.props.customStyles}}));return a.jsx("div",{className:oe.inputGroup,children:o})}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 Yo({children:t,api:e,customStyles:r={}}){return a.jsx("button",{...e.triggerProps,type:"button",className:dt.trigger,style:{...r},children:t})}function Jo({children:t,api:e,bg:r="black",positionerStyles:o={},containerStyles:n={}}){var u,i;const s=!["black","gray"].includes(r),l={...e==null?void 0:e.arrowProps,...s&&{style:{...(u=e==null?void 0:e.arrowProps)==null?void 0:u.style,"--arrow-background":r}}};return a.jsx(a.Fragment,{children:e.isOpen&&a.jsxs("div",{...e.positionerProps,style:{...(i=e==null?void 0:e.positionerProps)==null?void 0:i.style,...o},children:[a.jsx("div",{...l,className:P(dt.arrow,{[dt[r]]:!s}),children:a.jsx("div",{...e.arrowTipProps})}),a.jsx("div",{...e.contentProps,className:P(dt.content,dt[r]),style:{background:s?r:"",...n},children:t})]})})}function Re({children:t,openDelay:e=0,closeDelay:r=0,placement:o="top"}){const[n,s]=$.useMachine(vt.machine({id:y.useId(),openDelay:e,closeDelay:r,positioning:{placement:o,gutter:3}})),l=vt.connect(n,s,$.normalizeProps),u=y.Children.toArray(t).map(i=>y.cloneElement(i,{...i.props??{},api:l}));return a.jsx(a.Fragment,{children:u})}Re.Trigger=Yo,Re.Content=Jo;function Nt({children:t,customClasses:e,customStyles:r,required:o=!1,htmlFor:n,restprops:s={},infoText:l,infoTextTooltipStyles:u={}}){return y.useId(),a.jsxs("div",{className:oe.inputLabelContainer,children:[a.jsx("label",{htmlFor:n,className:P(oe.inputLabel,e,o&&oe.required),style:r,...s,children:a.jsx("span",{children:t})}),l&&a.jsxs(Re,{children:[a.jsx(Re.Trigger,{children:a.jsx(re,{path:Un,svgClassName:oe.infoCircleSvg})}),a.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 a.jsx("div",{...t==null?void 0:t.backdropProps,className:ye.backdrop})}function Uo({isOpen:t,onClose:e,children:r,size:o="md",showOverlay:n=!0,machineProps:s={}}){const l=y.useCallback(b=>{b||e()},[e]),[u,i]=$.useMachine(Vn.machine({id:y.useId(),open:t,onOpenChange:b=>l(b.open),...s})),c=Vn.connect(u,i,$.normalizeProps),d=y.Children.toArray(r).map(b=>y.cloneElement(b,{...b.props,api:c,size:o}));return a.jsxs($.Portal,{children:[n&&a.jsx(Qn,{api:c}),d]})}function Qo({children:t,api:e,customStyles:r={}}){return a.jsx("div",{...e.descriptionProps,className:ye.body,style:r,children:t})}function $o({children:t,api:e,size:r="md"}){const o=y.Children.toArray(t).map(n=>y.cloneElement(n,{...n.props,api:e}));return a.jsx("div",{...e==null?void 0:e.containerProps,className:ye.container,children:a.jsx("div",{className:P(ye.contentWrapper,ye[r]),children:a.jsx("div",{...e==null?void 0:e.contentProps,className:ye.content,children:o})})})}function qo({children:t,api:e,buttons:r,showBorder:o=!0}){return a.jsx("div",{className:P(ye.footer,{[ye.showBorder]:o}),children:t||a.jsx("div",{className:ye.btnsContainer,children:r.map((n,s)=>a.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},s))})})}function Ko({children:t,api:e,showCrossBtn:r=!0,showBorder:o=!0}){return a.jsxs("div",{...e==null?void 0:e.titleProps,className:P(ye.header,{[ye.showBorder]:o}),children:[a.jsx("div",{children:t}),r&&a.jsx("button",{...e.closeTriggerProps,type:"button",onClick:e==null?void 0:e.close,className:"hybr1d-ui-reset-btn",children:a.jsx(re,{path:It,svgClassName:ye.closeIcon,spanClassName:ye.closeIconSpan})})]})}function ei({children:t,placement:e="top",popoverProps:r,closeOnScroll:o=!1,containerRef:n}){const[s,l]=$.useMachine(Ln.machine({id:y.useId(),positioning:{placement:e},closeOnInteractOutside:!0,portalled:!1,...r})),u=Ln.connect(s,l,$.normalizeProps);function i(){u==null||u.close()}y.useEffect(()=>(o&&n&&n.current&&n.current.addEventListener("scroll",i),()=>{var d;o&&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 a.jsx(a.Fragment,{children:c})}function ti({children:t,api:e,styles:r,className:o}){return a.jsx("button",{...e==null?void 0:e.closeTriggerProps,style:r,className:P("hybr1d-ui-reset-btn",o),onClick:e==null?void 0:e.close,children:t})}const 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:r="black",styles:o,className:n,positionerStyles:s}){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(r),c={...e==null?void 0:e.arrowProps,...i&&{style:{...(d=e==null?void 0:e.arrowProps)==null?void 0:d.style,"--arrow-background":r}}};return a.jsx(l,{children:a.jsxs("div",{...e==null?void 0:e.positionerProps,className:Ue.positioner,style:{...(b=e==null?void 0:e.positionerProps)==null?void 0:b.style,...s},children:[a.jsx("div",{...c,className:P(Ue.arrow,{[Ue[r]]:!i}),children:a.jsx("div",{...e==null?void 0:e.arrowTipProps})}),a.jsx("div",{...e==null?void 0:e.contentProps,className:P(Ue.content,Ue[r],n),style:{background:i?r:"",...o},children:u})]})})}function ri({children:t,api:e,styles:r,className:o}){return a.jsx("div",{...e==null?void 0:e.descriptionProps,style:r,className:o,children:t})}function oi({children:t,api:e,styles:r,className:o}){return a.jsx("div",{...e==null?void 0:e.titleProps,style:r,className:o,children:t})}function ii({children:t,api:e,openOnHover:r=!0,styles:o,className:n}){return a.jsx("button",{...e==null?void 0:e.triggerProps,onMouseEnter:r?e==null?void 0:e.open:()=>{},onMouseLeave:r?e==null?void 0:e.close:()=>{},className:P("hybr1d-ui-reset-btn",Ue.trigger,n),style:o,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:r,isFocused:o,isSelected:n})=>({...t,backgroundColor:r?void 0:n?e.color:o?"#f7f7f7":"#ffffff",color:"#171718",cursor:r?"not-allowed":"default",padding:"8px 12px",fontSize:"16px",lineHeight:"24px",":hover":{backgroundColor:"#f7f7f7"}}),singleValue:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",display:"flex",alignItems:"center",gap:"4px",backgroundColor:"transparent",padding:e.profileImgUrl?"0px 8px 0 0 !important":"0 !important"}),multiValue:(t,{data:e,isFocused:r})=>({...t,backgroundColor:"#f5f5f8",padding:e.profileImgUrl?"0px 8px 0 0":"0 8px",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",borderRadius:"24px",margin:"0"}),multiValueLabel:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",padding:"0 !important"}),multiValueRemove:(t,{data:e})=>({...t,color:"#b3b2b8",padding:"0",":hover":{backgroundColor:"transparent",color:"#b3b2b8"},svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),indicatorSeparator:t=>({...t,display:"none"}),dropdownIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),clearIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}})},nn=t=>({control:(e,{isDisabled:r,isFocused:o})=>({...e,backgroundColor:r?"#f5f5f8":"transparent",color:"#171718",border:"1px solid #e2e0eb",borderColor:t?"#de350b !important":o?"#6c5bd2 !important":"#e2e0eb !important",fontSize:"16px",boxShadow:"none",transition:"all 0.3s ease-in-out",":hover":{borderColor:t?"#de350b !important":"#6c5bd2 !important"},":focus-within":{boxShadow:t?"#de350b !important":"#6c5bd2 !important"}})}),rn=t=>a.jsxs(Me.components.Option,{...t,className:P({[ie.subLabelContainer]:t.data.subLabel},ie.optionContainer),children:[a.jsxs("div",{className:P(ie.label),children:[t.data.profileImgUrl&&a.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),a.jsx("span",{children:t.data.label})]}),t.data.subLabel&&a.jsx("div",{className:P(ie.subLabel),children:t.data.subLabel})]}),on=t=>a.jsx(Me.components.MultiValueLabel,{...t,children:a.jsxs("div",{className:ie.multiLabelContainer,children:[t.data.profileImgUrl&&a.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),a.jsx("div",{className:P(ie.label),children:a.jsx("span",{children:t.data.label})})]})}),sn=t=>a.jsx(Me.components.MultiValueRemove,{...t,children:a.jsx(re,{path:It,spanClassName:ie.closeSpan})}),an=t=>a.jsx(Me.components.ClearIndicator,{...t,children:a.jsx(re,{path:It,spanClassName:ie.closeSpan})}),ln=t=>a.jsx(Me.components.DropdownIndicator,{...t,children:a.jsx(re,{path:Ye,spanClassName:ie.downArrowSpan})}),un=t=>a.jsx(Me.components.SingleValue,{...t,children:a.jsxs("div",{className:ie.singleValueContainer,children:[t.data.profileImgUrl&&a.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),a.jsx("div",{className:P(ie.label),children:a.jsx("span",{children:t.data.label})})]})});function si({options:t,onChange:e,name:r,id:o,className:n,placeholder:s,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 a.jsxs("div",{onClick:C=>C.stopPropagation(),style:c,className:ie.selectContainer,children:[a.jsx(Me,{isMulti:v,placeholder:s,defaultValue:u,options:t,maxMenuHeight:170,isClearable:I,name:r,id:o,className:P(n),isSearchable:f,styles:{...tn,...nn(b),...l},components:{Option:rn,MultiValueLabel:on,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&&a.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 r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}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 r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(ke(o)!=="object")return o;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,r){return e=$n(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(r),!0).forEach(function(o){Qe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qn(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}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 r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,$n(o.key),o)}}function ui(t,e,r){return e&&Kn(t.prototype,e),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},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 Gt(t){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gt(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 o=Gt(t),n;if(e){var s=Gt(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return bi(this,n)}}function dn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function 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 er(t,e){if(t){if(typeof t=="string")return dn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return 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 r;try{r=JSON.parse(t)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}r!==void 0&&e(r)},Hn=mo.create()(To(t=>({filters:[],setDefaultFilters:e=>t({filters:e}),addFilters:(e,r,o)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=[...l.values,r];return typeof o=="function"&&o({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),removeFilters:(e,r,o)=>t(n=>({filters:n.filters.map(l=>{if(l.key===e){const u=l.values.filter(i=>i!==r);return typeof o=="function"&&o({filterType:e,value:u.join(",")}),{...l,values:u}}return l})})),resetFilters:(e,r)=>t(o=>({filters:o.filters.map(s=>s.key===e?(typeof r=="function"&&r({filterType:e,value:""}),{...s,values:[]}):s)})),resetAllFilters:e=>t(r=>({filters:r.filters.map(o=>(typeof e=="function"&&e(),{...o,values:[]}))}))})));function Ro({filterConfig:t}){const{filters:e,isLoading:r,isError:o,filterDispatch:n,filterReset:s}=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)||r||u((e==null?void 0:e.map(p=>({key:p.key,values:[]})))||[])},[e==null?void 0:e.length,r]),!e||!e.length)return null;if(o)return a.jsx("div",{className:q.filtersInfo,children:"Error getting filters"});if(r)return a.jsx("div",{className:q.filtersInfo,children:"Getting filters..."});const h=l.map(p=>p.values).flat();return a.jsxs("div",{className:q.filters,children:[h.length>0&&a.jsx("img",{title:"Reset filters",src:No,alt:"reset all filters",className:q.resetIcon2,onClick:()=>{b(s)}}),e.map((p,f)=>a.jsx(jo,{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 Vo({text:t="Getting data...",isError:e}){return a.jsx("tbody",{className:Mn.box,children:a.jsx("tr",{className:Mn.loader,children:!e&&a.jsx("td",{children:t})})})}const kn={box:"_box_11cjo_1",empty:"_empty_11cjo_8"};function Lo({emptyStateConfig:t,search:e}){return t?a.jsx("tbody",{className:kn.box,children:a.jsx("tr",{children:a.jsx("td",{className:kn.empty,colSpan:t.columns,children:a.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 Wo({actionsConfig:t,data:e}){var i;if(!t)return null;const{menuItems:r=[],isDropdownActions:o,key:n,customComp:s}=t;if(!o)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=r.map(c=>({...c,disabled:typeof c.disabled=="function"?c.disabled(e):!1}));return!n&&!s?a.jsx("div",{className:Yt.box,children:a.jsx(de.ActionsDropdown,{menuItems:u,data:e})}):a.jsxs("div",{className:Yt.box,children:[a.jsx(de.ActionsDropdown,{menuItems:u,data:e,variant:"small"}),s||(n&&e[n]?a.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 Do({rowSelectionConfig:t,rowSelection:e}){if(!t||!t.isCheckbox||Object.keys(e).length===0)return null;const{isCheckbox:r,actions:o,iconSrc:n}=t;return a.jsx(a.Fragment,{children:r&&Object.keys(e).length>0&&a.jsxs("div",{className:Je.selectedActions,children:[a.jsx("div",{className:Je.selectedInfo,children:Object.keys(e).length}),a.jsxs("div",{className:Je.selectedAction,children:[n&&a.jsx("div",{children:a.jsx(re,{path:n||"",svgClassName:Je.selectedIcon})}),a.jsx(de.MenuButton,{variant:we.SECONDARY,size:"sm",isCustomTrigger:!0,menuItems:(o==null?void 0:o.map(s=>({label:s.text,onClick:s.onClick,iconSrc:s.icon})))||[],positionerProps:{placement:"bottom-start"},children:a.jsxs(de,{variant:we.SECONDARY,size:"sm",children:["Actions",a.jsx(re,{svgClassName:Je.actionsBtnIcon,path:Ye,spanClassName:Je.actionsBtnIconSpan})]})})]})]})})}const Oo="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",Xo="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",Zo="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,r]=y.useState(0);return a.jsx("div",{className:Jt.box,children:t.map((o,n)=>a.jsx("div",{onClick:()=>{r(n),o.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:o.name},o.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:r,...o}){const n=y.useRef(null);return y.useEffect(()=>{typeof t=="boolean"&&(n.current.indeterminate=!o.checked&&t)},[n,t]),a.jsx("span",{className:ut.checkboxSpan,style:{display:r?"flex":void 0},children:a.jsx("input",{type:"checkbox",ref:n,className:P(ut.checkbox,e.id===ct&&ut.checkboxSelect),...o})})}function Ho({indeterminate:t,row:e,...r}){const o=y.useRef(null);return y.useEffect(()=>{o.current.indeterminate=t},[o,t]),a.jsx("span",{className:ut.radioSpan,children:a.jsx("input",{type:"radio",ref:o,className:P(ut.radio),...r})})}function Mo({data:t,loaderConfig:e,columns:r,filterConfig:o,sortConfig:n,rowSelectionConfig:s={isCheckbox:!1,isRadio:!1,clearOnSearch:!0},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}=fo.useInView(),B=!e.isFetching&&!e.isError&&!t.length,{isCheckbox:F,isRadio:E,setSelectedRows:W}=s;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(!s||!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=>a.jsx(Yn,{checked:j.table.getIsAllRowsSelected(),indeterminate:j.table.getIsSomeRowsSelected(),onChange:j.table.getToggleAllRowsSelectedHandler(),row:j.header,isHeader:!0}),cell:({row:j})=>a.jsx(Yn,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},{id:yt,cell:({row:j})=>a.jsx(Ho,{checked:j.getIsSelected(),disabled:!j.getCanSelect(),indeterminate:j.getIsSomeSelected(),onChange:j.getToggleSelectedHandler(),row:j}),size:55},...r,{id:At,cell:j=>a.jsx(Wo,{actionsConfig:l,data:j.row.original}),header:"Actions",maxSize:150}],Y=it.useReactTable({data:t,columns:k,state:{sorting:f,columnVisibility:I,rowSelection:(s==null?void 0:s.rowSelection)||C},manualSorting:!0,onSortingChange:v,onColumnVisibilityChange:m,enableRowSelection:!0,onRowSelectionChange:(s==null?void 0:s.setRowSelection)||x,enableMultiRowSelection:!E,manualPagination:!0,manualFiltering:!0,getCoreRowModel:it.getCoreRowModel(),defaultColumn:{minSize:0,size:Number.MAX_SAFE_INTEGER,maxSize:Number.MAX_SAFE_INTEGER},getRowId:s!=null&&s.rowIdKey?j=>j[s==null?void 0:s.rowIdKey]:void 0});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(()=>{s!=null&&s.clearOnSearch&&x({})},[u==null?void 0:u.search]),a.jsxs("div",{className:K.box,children:[!e.isError&&a.jsxs("div",{className:K.header,children:[!h&&a.jsxs("div",{className:K.meta,children:[a.jsx("div",{className:K.total,children:i}),typeof o=="object"&&a.jsx(Ro,{filterConfig:o})]}),h&&a.jsx("div",{className:K.headerTxt,children:h}),a.jsxs("div",{className:K.selectorGrp,children:[typeof c=="object"&&a.jsx(zn,{selectors:c==null?void 0:c.selectors}),typeof u=="object"&&a.jsx("div",{className:K.search,children:a.jsx(Ct,{id:"table-search",search:u.search,setSearch:u.setSearch,placeholder:u.placeholder,clearIconClearFn:()=>x({})})})]})]}),(s==null?void 0:s.actions)&&s.actions.length>0&&a.jsx(Do,{rowSelectionConfig:s,rowSelection:C}),d?a.jsx(co,{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:a.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search})}):a.jsx(Jn,{table:Y,isCheckbox:F,isRadio:E,loaderConfig:e,isEmpty:B,emptyStateConfig:b,search:u==null?void 0:u.search}),p&&a.jsx("div",{children:a.jsx("div",{ref:_})})]})}function Jn({table:t,isCheckbox:e,isRadio:r,loaderConfig:o,emptyStateConfig:n,isEmpty:s,search:l}){return a.jsxs("table",{className:K.table,children:[a.jsx("thead",{className:K.tableHead,children:t.getHeaderGroups().map(u=>a.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>a.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:a.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:a.jsx(re,{path:Xo,spanClassName:K.tableHeaderSortSpan}),desc:a.jsx(re,{path:Zo,spanClassName:K.tableHeaderSortSpan}),false:i.column.getCanSort()?a.jsx(re,{path:Oo,spanClassName:K.tableHeaderSortSpan,svgClassName:K.tableHeaderSort}):null}[i.column.getIsSorted()]??null]})},i.id))},u.id))}),o.isFetching?a.jsx(Vo,{text:o.text,isError:o.isError}):s?a.jsx(Lo,{emptyStateConfig:n,search:l}):a.jsx("tbody",{className:K.tableBody,children:t.getRowModel().rows.map((u,i)=>a.jsx("tr",{className:K.tableRow,children:u.getVisibleCells().map(c=>{const d=(e||r)&&(c.id===`${i}_${yt}`||c.id===`${i}_${ct}`);return a.jsx("td",{className:P(K.tableData,(e||r)&&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))}),o.isError&&a.jsx("tbody",{style:{height:"200px"},children:a.jsx("tr",{children:a.jsx("td",{colSpan:n==null?void 0:n.columns,style:{textAlign:"center"},children:o.errMsg||"Error getting data, please try again later."})})}),a.jsx("tfoot",{className:K.tableFoot,children:t.getFooterGroups().map(u=>a.jsx("tr",{className:K.tableRow,children:u.headers.map(i=>a.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 ko({label:t,isLoading:e=!1,required:r=!1,labelClassName:o,inputClassName:n,disabled:s=!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:s,inputValue:h,multiple:!1,onValueChange(N){}}),{context:{collection:m}}),_=Zt.connect(C,x,$.normalizeProps);return y.useEffect(()=>{l&&f(l)},[l]),a.jsxs("div",{children:[a.jsxs("div",{..._.rootProps,children:[t&&a.jsx("label",{..._.labelProps,className:P(De.inputLabel,o,r&&De.required),children:t}),a.jsx("div",{..._.controlProps,className:De.container,children:a.jsx("input",{..._.inputProps,className:n})})]}),a.jsx("div",{..._.positionerProps,children:p.length>0?a.jsx("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:p.map((N,B)=>a.jsx("li",{className:De.option,..._.getItemProps({item:N}),children:N.listComponent?N.listComponent:N.label},`${N.value}:${B}`))}):v&&a.jsxs("ul",{..._.contentProps,className:De.options,style:{maxHeight:b},children:[u&&!e&&!p.length&&a.jsx("li",{className:De.option,..._.getItemProps({item:{label:"",value:""}}),children:"No result found"}),!u&&!p.length&&a.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 zo({isOpen:t,onClose:e,children:r,title:o,customHeader:n,customFooter:s,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]),a.jsxs(a.Fragment,{children:[a.jsx("div",{className:P(ge.backdropLayer,t&&ge.show),onClick:e,children:u&&a.jsx("div",{className:P(ge.backdrop,t&&ge.showBackdrop)})}),a.jsx("div",{className:P(ge.container,ge[l],ge[`${I}Align`]),ref:m,children:a.jsxs("div",{className:ge.content,children:[i&&a.jsx("div",{className:P(ge.headerContainer,{[ge.showBorder]:v},h),children:n||a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:ge.title,children:o}),a.jsx("button",{type:"button",className:ge.closeBtn,onClick:e})]})}),a.jsx("div",{className:P(ge.descriptionContainer,{[ge.fullHeight]:N},p),ref:C,children:r}),c&&a.jsx("div",{className:P(ge.footer,f),ref:x,children:s||d&&a.jsxs("div",{className:ge.footerBtnContainer,children:[a.jsx("div",{className:ge.footerBtn,children:d.map((B,F)=>a.jsx(de,{disabled:B.disabled,variant:B.variant,onClick:B.onClick?B.onClick:void 0,type:B.btnType,children:B.btnText},F))}),b&&a.jsx("div",{children:b})]})})]})})]})}const oe={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:r,id:o,value:n,onChange:s,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 a.jsxs("div",{className:oe.inputWrapper,children:[b==="textarea"?a.jsx("textarea",{rows:d,cols:u,style:e,className:P(oe.textarea,i&&oe.error,t),placeholder:h,name:r,id:o,value:n,onChange:s,disabled:c,onBlur:p,...l}):a.jsx("input",{ref:f,style:e,type:b,className:P(oe.input,i&&oe.error,t),placeholder:h,name:r,id:o,value:n,onChange:s,disabled:c,onClick:()=>{var v;return(v=f.current)==null?void 0:v.showPicker()},onBlur:p,...l}),i&&a.jsx("p",{className:oe.errorMsg,children:i})]})}Ut.displayName=te.INPUT,Ut.id=te.INPUT;function _t({children:t,placement:e="left",isDropdown:r=!1,dropdownOptions:o,handleOptionClick:n=()=>{},showDropdownSearch:s=!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 a.jsxs("div",{className:P(oe.inputAddon,oe[l]),onClick:()=>{r&&v()},ref:c,style:{cursor:r?"pointer":"inherit"},children:[t,r&&a.jsxs(a.Fragment,{children:[a.jsx(re,{path:Ye,width:20,customSpanStyles:{width:"20px"}}),u&&a.jsxs("div",{className:oe.dropdownContainer,style:{left:h?"0":"inherit",right:h?"inherit":"0",paddingTop:s?"0":"12px"},children:[s&&a.jsx("div",{className:oe.searchContainer,onClick:C=>C.stopPropagation(),children:a.jsx(Ct,{search:d,setSearch:b,id:"input-add-on-search"})}),(m=o==null?void 0:o.filter(I))==null?void 0:m.map(C=>a.jsx("div",{className:oe.dropdownOption,onClick:x=>{x.stopPropagation(),n(C),v()},children:C.label},C.value))]})]})]})}function Qt({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return a.jsx(_t,{placement:"left",isDropdown:e,dropdownOptions:r,handleOptionClick:o,showDropdownSearch:n,children:t})}function $t({children:t,isDropdown:e=!1,dropdownOptions:r=[],handleOptionClick:o=()=>{},showDropdownSearch:n=!0}){return a.jsx(_t,{placement:"right",isDropdown:e,dropdownOptions:r,handleOptionClick:o,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:r,size:o="adapt"}){return a.jsx("div",{className:P(oe.inputContainer,oe[o],e),style:r,children:t})}Et.displayName=te.INPUT_CONTAINER,Et.id=te.INPUT_CONTAINER;function St({children:t,placement:e="left"}){const r=e==="left"?"left":"right";return a.jsx("div",{className:P(oe.inputElement,oe[r]),children:t})}function qt({children:t}){return a.jsx(St,{placement:"left",children:t})}function Kt({children:t}){return a.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={},r=y.Children.toArray(t);r.forEach(n=>{n.type.id==="InputLeftElement"&&(e.paddingInlineStart="36px"),n.type.id==="InputRightElement"&&(e.paddingInlineEnd="36px"),n.type.id==="InputLeftAddon"&&(e.borderTopLeftRadius=0,e.borderBottomLeftRadius=0),n.type.id==="InputRightAddon"&&(e.borderTopRightRadius=0,e.borderBottomRightRadius=0)});const o=r.map(n=>n.type.id!=="Input"?n:y.cloneElement(n,{...n.props,customStyles:{...e,...n.props.customStyles}}));return a.jsx("div",{className:oe.inputGroup,children:o})}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 Yo({children:t,api:e,customStyles:r={}}){return a.jsx("button",{...e.triggerProps,type:"button",className:dt.trigger,style:{...r},children:t})}function Jo({children:t,api:e,bg:r="black",positionerStyles:o={},containerStyles:n={}}){var u,i;const s=!["black","gray"].includes(r),l={...e==null?void 0:e.arrowProps,...s&&{style:{...(u=e==null?void 0:e.arrowProps)==null?void 0:u.style,"--arrow-background":r}}};return a.jsx(a.Fragment,{children:e.isOpen&&a.jsxs("div",{...e.positionerProps,style:{...(i=e==null?void 0:e.positionerProps)==null?void 0:i.style,...o},children:[a.jsx("div",{...l,className:P(dt.arrow,{[dt[r]]:!s}),children:a.jsx("div",{...e.arrowTipProps})}),a.jsx("div",{...e.contentProps,className:P(dt.content,dt[r]),style:{background:s?r:"",...n},children:t})]})})}function Re({children:t,openDelay:e=0,closeDelay:r=0,placement:o="top"}){const[n,s]=$.useMachine(vt.machine({id:y.useId(),openDelay:e,closeDelay:r,positioning:{placement:o,gutter:3}})),l=vt.connect(n,s,$.normalizeProps),u=y.Children.toArray(t).map(i=>y.cloneElement(i,{...i.props??{},api:l}));return a.jsx(a.Fragment,{children:u})}Re.Trigger=Yo,Re.Content=Jo;function Nt({children:t,customClasses:e,customStyles:r,required:o=!1,htmlFor:n,restprops:s={},infoText:l,infoTextTooltipStyles:u={}}){return y.useId(),a.jsxs("div",{className:oe.inputLabelContainer,children:[a.jsx("label",{htmlFor:n,className:P(oe.inputLabel,e,o&&oe.required),style:r,...s,children:a.jsx("span",{children:t})}),l&&a.jsxs(Re,{children:[a.jsx(Re.Trigger,{children:a.jsx(re,{path:Un,svgClassName:oe.infoCircleSvg})}),a.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 a.jsx("div",{...t==null?void 0:t.backdropProps,className:ye.backdrop})}function Uo({isOpen:t,onClose:e,children:r,size:o="md",showOverlay:n=!0,machineProps:s={}}){const l=y.useCallback(b=>{b||e()},[e]),[u,i]=$.useMachine(Vn.machine({id:y.useId(),open:t,onOpenChange:b=>l(b.open),...s})),c=Vn.connect(u,i,$.normalizeProps),d=y.Children.toArray(r).map(b=>y.cloneElement(b,{...b.props,api:c,size:o}));return a.jsxs($.Portal,{children:[n&&a.jsx(Qn,{api:c}),d]})}function Qo({children:t,api:e,customStyles:r={}}){return a.jsx("div",{...e.descriptionProps,className:ye.body,style:r,children:t})}function $o({children:t,api:e,size:r="md"}){const o=y.Children.toArray(t).map(n=>y.cloneElement(n,{...n.props,api:e}));return a.jsx("div",{...e==null?void 0:e.containerProps,className:ye.container,children:a.jsx("div",{className:P(ye.contentWrapper,ye[r]),children:a.jsx("div",{...e==null?void 0:e.contentProps,className:ye.content,children:o})})})}function qo({children:t,api:e,buttons:r,showBorder:o=!0}){return a.jsx("div",{className:P(ye.footer,{[ye.showBorder]:o}),children:t||a.jsx("div",{className:ye.btnsContainer,children:r.map((n,s)=>a.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},s))})})}function Ko({children:t,api:e,showCrossBtn:r=!0,showBorder:o=!0}){return a.jsxs("div",{...e==null?void 0:e.titleProps,className:P(ye.header,{[ye.showBorder]:o}),children:[a.jsx("div",{children:t}),r&&a.jsx("button",{...e.closeTriggerProps,type:"button",onClick:e==null?void 0:e.close,className:"hybr1d-ui-reset-btn",children:a.jsx(re,{path:It,svgClassName:ye.closeIcon,spanClassName:ye.closeIconSpan})})]})}function ei({children:t,placement:e="top",popoverProps:r,closeOnScroll:o=!1,containerRef:n}){const[s,l]=$.useMachine(Ln.machine({id:y.useId(),positioning:{placement:e},closeOnInteractOutside:!0,portalled:!1,...r})),u=Ln.connect(s,l,$.normalizeProps);function i(){u==null||u.close()}y.useEffect(()=>(o&&n&&n.current&&n.current.addEventListener("scroll",i),()=>{var d;o&&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 a.jsx(a.Fragment,{children:c})}function ti({children:t,api:e,styles:r,className:o}){return a.jsx("button",{...e==null?void 0:e.closeTriggerProps,style:r,className:P("hybr1d-ui-reset-btn",o),onClick:e==null?void 0:e.close,children:t})}const 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:r="black",styles:o,className:n,positionerStyles:s}){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(r),c={...e==null?void 0:e.arrowProps,...i&&{style:{...(d=e==null?void 0:e.arrowProps)==null?void 0:d.style,"--arrow-background":r}}};return a.jsx(l,{children:a.jsxs("div",{...e==null?void 0:e.positionerProps,className:Ue.positioner,style:{...(b=e==null?void 0:e.positionerProps)==null?void 0:b.style,...s},children:[a.jsx("div",{...c,className:P(Ue.arrow,{[Ue[r]]:!i}),children:a.jsx("div",{...e==null?void 0:e.arrowTipProps})}),a.jsx("div",{...e==null?void 0:e.contentProps,className:P(Ue.content,Ue[r],n),style:{background:i?r:"",...o},children:u})]})})}function ri({children:t,api:e,styles:r,className:o}){return a.jsx("div",{...e==null?void 0:e.descriptionProps,style:r,className:o,children:t})}function oi({children:t,api:e,styles:r,className:o}){return a.jsx("div",{...e==null?void 0:e.titleProps,style:r,className:o,children:t})}function ii({children:t,api:e,openOnHover:r=!0,styles:o,className:n}){return a.jsx("button",{...e==null?void 0:e.triggerProps,onMouseEnter:r?e==null?void 0:e.open:()=>{},onMouseLeave:r?e==null?void 0:e.close:()=>{},className:P("hybr1d-ui-reset-btn",Ue.trigger,n),style:o,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:r,isFocused:o,isSelected:n})=>({...t,backgroundColor:r?void 0:n?e.color:o?"#f7f7f7":"#ffffff",color:"#171718",cursor:r?"not-allowed":"default",padding:"8px 12px",fontSize:"16px",lineHeight:"24px",":hover":{backgroundColor:"#f7f7f7"}}),singleValue:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",display:"flex",alignItems:"center",gap:"4px",backgroundColor:"transparent",padding:e.profileImgUrl?"0px 8px 0 0 !important":"0 !important"}),multiValue:(t,{data:e,isFocused:r})=>({...t,backgroundColor:"#f5f5f8",padding:e.profileImgUrl?"0px 8px 0 0":"0 8px",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",borderRadius:"24px",margin:"0"}),multiValueLabel:(t,{data:e})=>({...t,color:"#171718",fontSize:"16px",lineHeight:"24px",padding:"0 !important"}),multiValueRemove:(t,{data:e})=>({...t,color:"#b3b2b8",padding:"0",":hover":{backgroundColor:"transparent",color:"#b3b2b8"},svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),indicatorSeparator:t=>({...t,display:"none"}),dropdownIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}}),clearIndicator:t=>({...t,svg:{filter:"invert(76%) sepia(5%) saturate(209%) hue-rotate(210deg) brightness(95%) contrast(89%)"}})},nn=t=>({control:(e,{isDisabled:r,isFocused:o})=>({...e,backgroundColor:r?"#f5f5f8":"transparent",color:"#171718",border:"1px solid #e2e0eb",borderColor:t?"#de350b !important":o?"#6c5bd2 !important":"#e2e0eb !important",fontSize:"16px",boxShadow:"none",transition:"all 0.3s ease-in-out",":hover":{borderColor:t?"#de350b !important":"#6c5bd2 !important"},":focus-within":{boxShadow:t?"#de350b !important":"#6c5bd2 !important"}})}),rn=t=>a.jsxs(Me.components.Option,{...t,className:P({[ie.subLabelContainer]:t.data.subLabel},ie.optionContainer),children:[a.jsxs("div",{className:P(ie.label),children:[t.data.profileImgUrl&&a.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),a.jsx("span",{children:t.data.label})]}),t.data.subLabel&&a.jsx("div",{className:P(ie.subLabel),children:t.data.subLabel})]}),on=t=>a.jsx(Me.components.MultiValueLabel,{...t,children:a.jsxs("div",{className:ie.multiLabelContainer,children:[t.data.profileImgUrl&&a.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),a.jsx("div",{className:P(ie.label),children:a.jsx("span",{children:t.data.label})})]})}),sn=t=>a.jsx(Me.components.MultiValueRemove,{...t,children:a.jsx(re,{path:It,spanClassName:ie.closeSpan})}),an=t=>a.jsx(Me.components.ClearIndicator,{...t,children:a.jsx(re,{path:It,spanClassName:ie.closeSpan})}),ln=t=>a.jsx(Me.components.DropdownIndicator,{...t,children:a.jsx(re,{path:Ye,spanClassName:ie.downArrowSpan})}),un=t=>a.jsx(Me.components.SingleValue,{...t,children:a.jsxs("div",{className:ie.singleValueContainer,children:[t.data.profileImgUrl&&a.jsx("img",{src:t.data.profileImgUrl,className:ie.profileImg,alt:t.data.label}),a.jsx("div",{className:P(ie.label),children:a.jsx("span",{children:t.data.label})})]})});function si({options:t,onChange:e,name:r,id:o,className:n,placeholder:s,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 a.jsxs("div",{onClick:C=>C.stopPropagation(),style:c,className:ie.selectContainer,children:[a.jsx(Me,{isMulti:v,placeholder:s,defaultValue:u,options:t,maxMenuHeight:170,isClearable:I,name:r,id:o,className:P(n),isSearchable:f,styles:{...tn,...nn(b),...l},components:{Option:rn,MultiValueLabel:on,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&&a.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 r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}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 r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(ke(o)!=="object")return o;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,r){return e=$n(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(r),!0).forEach(function(o){Qe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qn(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}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 r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,$n(o.key),o)}}function ui(t,e,r){return e&&Kn(t.prototype,e),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},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 Gt(t){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gt(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 o=Gt(t),n;if(e){var s=Gt(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return bi(this,n)}}function dn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function 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 er(t,e){if(t){if(typeof t=="string")return dn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return 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)||er(t)||vi()}function hi(t){if(Array.isArray(t))return t}function Ii(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var o,n,s,l,u=[],i=!0,c=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;i=!1}else for(;!(i=(o=s.call(r)).done)&&(u.push(o.value),u.length!==e);i=!0);}catch(d){c=!0,n=d}finally{try{if(!i&&r.return!=null&&(l=r.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)||er(t,e)||Ci()}function xi(t,e){if(t==null)return{};var r={},o=Object.keys(t),n,s;for(s=0;s<o.length;s++)n=o[s],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Se(t,e){if(t==null)return{};var r=xi(t,e),o,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)o=s[n],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}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,wt=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 tr(t){return rr(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function nr(t){var e;return(e=(rr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function rr(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 or(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function ir(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=pn(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["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(tr(t))}function pn(t){return Ne(t).getComputedStyle(t)}function Gi(t){if(tr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||or(t)&&t.host||nr(t);return or(e)?e.host:e}function sr(t){const e=Gi(t);return Ni(e)?t.ownerDocument?t.ownerDocument.body:t.body:bn(e)&&ir(e)?e:sr(e)}function jt(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=sr(t),s=n===((o=t.ownerDocument)==null?void 0:o.body),l=Ne(n);return s?e.concat(l,l.visualViewport||[],ir(n)?n:[],l.frameElement&&r?jt(l.frameElement):[]):e.concat(n,jt(n,[],r))}function wi(t){const e=pn(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=bn(t),s=n?t.offsetWidth:r,l=n?t.offsetHeight:o,u=wt(r)!==s||wt(o)!==l;return u&&(r=s,o=l),{width:r,height:o,$:u}}function mn(t){return gn(t)?t:t.contextElement}function fn(t){const e=mn(t);if(!bn(e))return Ft(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:s}=wi(e);let l=(s?wt(r.width):r.width)/o,u=(s?wt(r.height):r.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,r){return e===void 0&&(e=!1),!r||e&&r!==Ne(t)?!1:e}function ar(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=mn(t);let l=Ft(1);e&&(o?gn(o)&&(l=fn(o)):l=fn(t));const u=ji(s,r,o)?Fi(s):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(s){const h=Ne(s),p=o&&gn(o)?Ne(o):o;let f=h.frameElement;for(;f&&o&&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 r=null,o;const n=nr(t);function s(){clearTimeout(o),r&&r.disconnect(),r=null}function l(u,i){u===void 0&&(u=!1),i===void 0&&(i=1),s();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):o=setTimeout(()=>{l(!1,1e-7)},100)}x=!1}try{r=new IntersectionObserver(_,{...C,root:n.ownerDocument})}catch{r=new IntersectionObserver(_,C)}r.observe(t)}return l(!0),s}function Ti(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,c=mn(t),d=n||s?[...c?jt(c):[],...jt(e)]:[];d.forEach(m=>{n&&m.addEventListener("scroll",r,{passive:!0}),s&&m.addEventListener("resize",r)});const b=c&&u?Pi(c,r):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)})),r()}),c&&!i&&p.observe(c),p.observe(e));let f,v=i?ar(t):null;i&&I();function I(){const m=ar(t);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&r(),v=m,f=requestAnimationFrame(I)}return r(),()=>{d.forEach(m=>{n&&m.removeEventListener("scroll",r),s&&m.removeEventListener("resize",r)}),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 r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];var s=[].concat(o);if(e&&t)for(var l in e)e.hasOwnProperty(l)&&e[l]&&s.push("".concat(Vi(t,l)));return s.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]:[]},lr=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 r=Se(e,Ri);return T({},r)},ee=function(e,r,o){var n=e.cx,s=e.getStyles,l=e.getClassNames,u=e.className;return{css:s(r,e),className:n(o??{},l(r,e),u)}};function Wi(t,e,r){if(r){var o=r(t,e);if(typeof o=="string")return o}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 ur(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),r=e.position==="absolute",o=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var n=t;n=n.parentElement;)if(e=getComputedStyle(n),!(r&&e.position==="static")&&o.test(e.overflow+e.overflowY+e.overflowX))return n;return document.documentElement}function Xi(t,e,r,o){return r*((t=t/o-1)*t*t+1)+e}function Lt(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pt,n=ur(t),s=e-n,l=10,u=0;function i(){u+=l;var c=Xi(u,n,s,r);Vt(t,c),u<r?window.requestAnimationFrame(i):o(t)}i()}function cr(t,e){var r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),n=e.offsetHeight/3;o.bottom+n>r.bottom?Vt(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+n,t.scrollHeight)):o.top-n<r.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 dr(){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 gr=!1,Mi={get passive(){return gr=!0}},Wt=typeof window<"u"?window:{};Wt.addEventListener&&Wt.removeEventListener&&(Wt.addEventListener("p",Pt,Mi),Wt.removeEventListener("p",Pt,!1));var ki=gr;function zi(t){return t!=null}function Yi(t){return Array.isArray(t)}function gt(t,e,r){return t?e:r}function Ig(t){return t}function Cg(t){return t}var Ji=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];var s=Object.entries(e).filter(function(l){var u=le(l,1),i=u[0];return!o.includes(i)});return s.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,r=t.menuEl,o=t.minHeight,n=t.placement,s=t.shouldScroll,l=t.isFixedPosition,u=t.controlHeight,i=Oi(r),c={placement:"bottom",maxHeight:e};if(!r||!r.offsetParent)return c;var d=i.getBoundingClientRect(),b=d.height,h=r.getBoundingClientRect(),p=h.bottom,f=h.height,v=h.top,I=r.offsetParent.getBoundingClientRect(),m=I.top,C=l?window.innerHeight:Di(i),x=ur(i),_=parseInt(getComputedStyle(r).marginBottom,10),N=parseInt(getComputedStyle(r).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 s&&Lt(i,k,H),{placement:"bottom",maxHeight:e};if(!l&&W>=o||l&&F>=o){s&&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>=o&&(z=Math.min(Z-_-u,e)),{placement:"top",maxHeight:z}}if(n==="bottom")return s&&Vt(i,k),{placement:"bottom",maxHeight:e};break;case"top":if(B>=f)return{placement:"top",maxHeight:e};if(E>=f&&!l)return s&&Lt(i,Y,H),{placement:"top",maxHeight:e};if(!l&&E>=o||l&&B>=o){var J=e;return(!l&&E>=o||l&&B>=o)&&(J=l?B-N:E-N),s&&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 br=function(e){return e==="auto"?"bottom":e},Ki=function(e,r){var o,n=e.placement,s=e.theme,l=s.borderRadius,u=s.spacing,i=s.colors;return T((o={label:"menu"},Qe(o,qi(n),"100%"),Qe(o,"position","absolute"),Qe(o,"width","100%"),Qe(o,"zIndex",1),o),r?{}:{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})},pr=S.createContext(null),es=function(e){var r=e.children,o=e.minMenuHeight,n=e.maxMenuHeight,s=e.menuPlacement,l=e.menuPosition,u=e.menuShouldScrollIntoView,i=e.theme,c=S.useContext(pr)||{},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:o,placement:s,shouldScroll:F,isFixedPosition:B,controlHeight:_});v(E.maxHeight),x(E.placement),d==null||d(E.placement)}},[n,s,l,u,o,d,_]),r({ref:b,placerProps:T(T({},e),{},{placement:C||br(s),maxHeight:f})})},ts=function(e){var r=e.children,o=e.innerRef,n=e.innerProps;return R.jsx("div",L({},ee(e,"menu",{menu:!0}),{ref:o},n),r)},ns=ts,rs=function(e,r){var o=e.maxHeight,n=e.theme.spacing.baseUnit;return T({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},os=function(e){var r=e.children,o=e.innerProps,n=e.innerRef,s=e.isMulti;return R.jsx("div",L({},ee(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:n},o),r)},mr=function(e,r){var o=e.theme,n=o.spacing.baseUnit,s=o.colors;return T({textAlign:"center"},r?{}:{color:s.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},is=mr,ss=mr,as=function(e){var r=e.children,o=r===void 0?"No options":r,n=e.innerProps,s=Se(e,Ui);return R.jsx("div",L({},ee(T(T({},s),{},{children:o,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),o)},ls=function(e){var r=e.children,o=r===void 0?"Loading...":r,n=e.innerProps,s=Se(e,Qi);return R.jsx("div",L({},ee(T(T({},s),{},{children:o,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),o)},us=function(e){var r=e.rect,o=e.offset,n=e.position;return{left:r.left,position:n,top:o,width:r.width,zIndex:1}},cs=function(e){var r=e.appendTo,o=e.children,n=e.controlElement,s=e.innerProps,l=e.menuPlacement,u=e.menuPosition,i=S.useRef(null),c=S.useRef(null),d=S.useState(br(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(!r&&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}),s),o);return R.jsx(pr.Provider,{value:f},r?Co.createPortal(B,r):B)},ds=function(e){var r=e.isDisabled,o=e.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},gs=function(e){var r=e.children,o=e.innerProps,n=e.isDisabled,s=e.isRtl;return R.jsx("div",L({},ee(e,"container",{"--is-disabled":n,"--is-rtl":s}),o),r)},bs=function(e,r){var o=e.theme.spacing,n=e.isMulti,s=e.hasValue,l=e.selectProps.controlShouldRenderValue;return T({alignItems:"center",display:n&&s&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},ps=function(e){var r=e.children,o=e.innerProps,n=e.isMulti,s=e.hasValue;return R.jsx("div",L({},ee(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":s}),o),r)},ms=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},fs=function(e){var r=e.children,o=e.innerProps;return R.jsx("div",L({},ee(e,"indicatorsContainer",{indicators:!0}),o),r)},fr,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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiX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i5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:Is},vr=function(e){var r=e.size,o=Se(e,vs);return R.jsx("svg",L({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cs},o))},hn=function(e){return R.jsx(vr,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"}))},hr=function(e){return R.jsx(vr,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"}))},Ir=function(e,r){var o=e.isFocused,n=e.theme,s=n.spacing.baseUnit,l=n.colors;return T({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:o?l.neutral60:l.neutral20,padding:s*2,":hover":{color:o?l.neutral80:l.neutral40}})},xs=Ir,As=function(e){var r=e.children,o=e.innerProps;return R.jsx("div",L({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),r||R.jsx(hr,null))},ys=Ir,_s=function(e){var r=e.children,o=e.innerProps;return R.jsx("div",L({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),r||R.jsx(hn,null))},Es=function(e,r){var o=e.isDisabled,n=e.theme,s=n.spacing.baseUnit,l=n.colors;return T({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:o?l.neutral10:l.neutral20,marginBottom:s*2,marginTop:s*2})},Ss=function(e){var r=e.innerProps;return R.jsx("span",L({},r,ee(e,"indicatorSeparator",{"indicator-separator":!0})))},Ns=R.keyframes(fr||(fr=Ai([`
|
|
34
34
|
0%, 80%, 100% { opacity: 0; }
|
package/dist/table/Table.d.ts
CHANGED