@hybr1d-tech/charizard 1.1.34 → 1.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hybr1d-ui.js CHANGED
@@ -1087,8 +1087,9 @@ function e0({
1087
1087
  type: t = W0.BASIC,
1088
1088
  size: s = J.DEFAULT,
1089
1089
  customStyles: r = {},
1090
- icon: i,
1091
- btnType: o
1090
+ className: i,
1091
+ icon: o,
1092
+ btnType: u
1092
1093
  }) {
1093
1094
  return /* @__PURE__ */ a.jsxs(
1094
1095
  "button",
@@ -1103,16 +1104,17 @@ function e0({
1103
1104
  s === J.SMALL && D.btnSmall,
1104
1105
  t === W0.ICON_ONLY && s === J.DEFAULT && D.iconOnlyDefault,
1105
1106
  t === W0.ICON_ONLY && s === J.SMALL && D.iconOnlySmall,
1106
- n && D.disabled
1107
+ n && D.disabled,
1108
+ i
1107
1109
  ),
1108
1110
  disabled: n,
1109
1111
  onClick: c,
1110
1112
  style: r,
1111
- type: o,
1113
+ type: u,
1112
1114
  children: [
1113
- t === W0.ICON_LEFT && i,
1114
- t === W0.ICON_ONLY ? i : e,
1115
- t === W0.ICON_RIGHT && i
1115
+ t === W0.ICON_LEFT && o,
1116
+ t === W0.ICON_ONLY ? o : e,
1117
+ t === W0.ICON_RIGHT && o
1116
1118
  ]
1117
1119
  }
1118
1120
  );
@@ -27,7 +27,7 @@ Check the top-level render call using <`+F+">.")}return M}}function ae(f,M){{if(
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Y4,a1,Qn,a1),ne[a1+Y4]=!0}}return f===n?Xn(E0):Zn(E0),E0}}function Wn(f,M,F){return ce(f,M,F,!0)}function Yn(f,M,F){return ce(f,M,F,!1)}var Jn=Yn,Un=Wn;j1.Fragment=n,j1.jsx=Jn,j1.jsxs=Un}()),j1}var v5;function Ae(){return v5||(v5=1,process.env.NODE_ENV==="production"?U1.exports=ze():U1.exports=ye()),U1.exports}var a=Ae();const H0={iconSpan:"_iconSpan_1c9ja_1",icon:"_icon_1c9ja_1",closeIconSpan:"_closeIconSpan_1c9ja_14",closeIcon:"_closeIcon_1c9ja_14",closeToastBtn:"_closeToastBtn_1c9ja_28",toastMessageBox:"_toastMessageBox_1c9ja_34",toastMessage:"_toastMessage_1c9ja_34",toastInfo:"_toastInfo_1c9ja_44"},je="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%208c0%204.42%203.58%208%208%208s8-3.58%208-8-3.58-8-8-8-8%203.58-8%208m11.29-2.71a1.003%201.003%200%200%201%201.42%201.42l-5%205c-.18.18-.43.29-.71.29s-.53-.11-.71-.29l-3-3a1.003%201.003%200%200%201%201.42-1.42L7%209.59z'%20fill='%2336B37E'/%3e%3c/svg%3e",g5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%20.005A7.993%207.993%200%200%200%20.005%208%207.993%207.993%200%200%200%208%2015.995%207.993%207.993%200%200%200%2015.995%208%207.993%207.993%200%200%200%208%20.005M7%2012.997v-1.999h2v1.999zm0-9.994V10h2V3.003z'%20fill='%23E74C3C'/%3e%3c/svg%3e",q5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m15.845%2013.5.01-.01-6.996-12-.01.01A.97.97%200%200%200%208%201c-.37%200-.67.2-.85.5l-.01-.01-6.995%2012%20.01.01c-.09.15-.15.31-.15.5%200%20.55.45%201%201%201h13.99c.55%200%201-.45%201-1%200-.19-.06-.35-.15-.5M9%2012.99H7.001v-2h1.998zm-1.998-3H9v-5H7.001z'%20fill='%23F39C12'/%3e%3c/svg%3e",we="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200C3.58%200%200%203.58%200%208s3.58%208%208%208%208-3.58%208-8-3.58-8-8-8m1%203v2H7V3zm-3%209v1h4v-1H9V6H6v1h1v5z'%20fill='%23254DDA'/%3e%3c/svg%3e",i2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.47%206.47a.75.75%200%200%201%201.06%200L12%2010.94l4.47-4.47a.75.75%200%201%201%201.06%201.06L13.06%2012l4.47%204.47a.75.75%200%201%201-1.06%201.06L12%2013.06l-4.47%204.47a.75.75%200%200%201-1.06-1.06L10.94%2012%206.47%207.53a.75.75%200%200%201%200-1.06'%20fill='%23070F2C'/%3e%3c/svg%3e";function k({path:e,width:l,height:c,spanClassName:n="",svgClassName:t="",customSpanStyles:o={},customSvgStyles:i={},handleClick:r}){return a.jsx("span",{className:`${n}`,style:{...o},onClick:r,children:a.jsx(oe,{src:e,className:t,style:{...i},onError:s=>console.log(s.message),width:l,height:c})})}const Q1={position:"top-right",autoClose:1800,hideProgressBar:!0};function K1({msg:e,info:l}){return a.jsxs("div",{className:q(H0.toastMessageBox),children:[a.jsx("h4",{className:q(H0.toastMessage,"zap-content-medium"),children:e}),a.jsx("p",{className:q(H0.toastInfo,"zap-content-regular"),children:l})]})}const f5=({msg:e,info:l,options:c})=>Z1.toast.success(a.jsx(K1,{msg:e,info:l,type:"success"}),{...Q1,icon:a.jsx(k,{path:je,svgClassName:q(H0.icon,H0.success),spanClassName:H0.iconSpan}),...c}),Ne=({msg:e,info:l,options:c})=>Z1.toast.error(a.jsx(K1,{msg:e,info:l,type:"error"}),{...Q1,icon:a.jsx(k,{path:g5,svgClassName:q(H0.icon,H0.error),spanClassName:H0.iconSpan}),...c}),Se=({msg:e,info:l,options:c})=>Z1.toast.info(a.jsx(K1,{msg:e,info:l,type:"info"}),{...Q1,icon:a.jsx(k,{path:we,svgClassName:q(H0.icon,H0.info),spanClassName:H0.iconSpan}),...c}),Me=({msg:e,info:l,options:c})=>Z1.toast.warning(a.jsx(K1,{msg:e,info:l,type:"warning"}),{...Q1,icon:a.jsx(k,{path:q5,svgClassName:q(H0.icon,H0.warning),spanClassName:H0.iconSpan}),...c});function Ee({closeToast:e}){return a.jsx("button",{className:H0.closeToastBtn,onClick:e,children:a.jsx(k,{path:i2,svgClassName:H0.closeIcon,spanClassName:H0.closeIconSpan})})}const F3=(e,l,c)=>e===1||e===0||e===void 0||e===null?l:c,b5=(e,l)=>l&&e.length>l?`${e.substring(0,l)}...`:e,G3=e=>e.split(" ").filter(Boolean).slice(0,2).reduce((c,n)=>c+(n[0]||"").toUpperCase(),""),D3=e=>{if(!e||!e.first_name)return"-";let l=e.first_name;return e.middle_name&&(l+=` ${e.middle_name}`),e.last_name&&(l+=` ${e.last_name}`),l},T3=async(e,l=!0)=>{e&&(await navigator.clipboard.writeText(e).catch(console.error),l&&f5({msg:`Successfully copied ${e}`,options:{toastId:e,autoClose:3e3}}))},P3=["Backspace","Tab","ArrowLeft","ArrowRight","Delete","Enter","Control","Meta"],Be=0,ke=25;var O3=(e=>(e.SEARCH="search",e.SORT_BY="sort_by",e.SORT_ORDER="sort_order",e.INITIAL_FILTER="initial_filter",e.FILTER="filter",e.RESET_FILTERS="reset_filters",e.RESET_ALL="reset_all",e.SELECTOR_FILTER="selector_filter",e.PAGE="page",e.LIMIT="limit",e.SET_DURATION="set_duration",e))(O3||{});const C5=(e,l=[])=>{const c={};return e&&Object.keys(e).forEach(n=>{e[n]&&!l.includes(n)&&(c[n]=e[n])}),c},_5=e=>{if(e.sort_by)switch(e.sort_order){case"asc":return`+${e.sort_by}`;case"desc":return`-${e.sort_by}`;default:return`${e.sort_by}`}},Ve=e=>{const l={page:e.page,limit:e.limit};return e.search&&(l.search=e.search),e.sort_by&&(l.sort_by=_5({sort_by:e.sort_by,sort_order:e.sort_order})),e.filters&&Object.assign(l,C5(e.filters)),Object.keys(l).forEach(c=>{l[c]===void 0&&delete l[c]}),l},Re=(e,{payload:l,type:c},n)=>{switch(c){case"search":return{...e,search:l,page:0};case"sort_by":return{...e,sort_by:l,page:0};case"sort_order":return{...e,sort_order:l};case"initial_filter":return{...e,filters:l};case"filter":{const{value:t,filterType:o}=l;return{...e,page:0,filters:{...e.filters,[o]:t}}}case"reset_all":return n;case"reset_filters":return{...e,filters:n.filters};case"page":return{...e,page:l};case"limit":return{...e,limit:l,page:0};case"set_duration":return{...e,filters:{...e.filters,duration:l}};case"selector_filter":return{...e,filters:{...e.filters,filter_status:l}};default:throw new Error(`Unhandled action type: ${c}`)}},Le=e=>$2.create(l=>({query:e,dispatch:c=>l(n=>({query:Re(n.query,c,e)}))})),I5={team:{employeeDirectory:{list:{label:"People",value:"team_list"},hiringTemplate:{label:"Hiring Templates",value:"team_hiring_template"},profileSoftwares:{label:"Profile Softwares",value:"team_profile_softwares"}}},zenIT:{inventory:{list:{label:"Inventory List",value:"inventory_list"},archive:{label:"Inventory Archive List",value:"inventory_archive_list"},allocationHistory:{label:"Inventory Allocation History",value:"inventory_allocation_history"}},software:{list:{label:"Software List",value:"software_list"},users:{label:"Software Users",value:"software_users"},detailsUsers:{label:"Software Details Users",value:"software_details_users"}},mdm:{devices:{label:"MDM Devices",value:"mdm_devices"},users:{label:"MDM Users",value:"mdm_users"}},webstore:{quotation:{label:"Quotation List",value:"quotation_list"}}},zenCore:{workflow:{list:{label:"Workflow List",value:"workflow_list"},history:{label:"Workflow History",value:"workflow_history"},forms:{label:"Workflow Forms",value:"workflow_forms"}}},zenPerformance:{goal:{list:{label:"Goal List",value:"goal_list"},departmentList:{label:"Department Goals",value:"departments_goal_list"}}},zenHR:{attendance:{timesheetList:{label:"Attendance Timesheets",value:"attendance_timesheets_list"},policyList:{label:"Attendance Policy List",value:"attendance_policy_list"}},leave:{policies:{label:"Leave Policies",value:"leave_policies"},publicHolidays:{label:"Leave Public Holidays",value:"leave_public_holidays"}}}},He=e=>{for(const l of Object.values(I5))for(const c of Object.values(l))for(const n of Object.values(c))if(n.value===e)return n};function $3(e){return g.useMemo(()=>o5(e),[e])}function x5(e=-3,l,c){const n=l?new Date(l):null,t=n&&!isNaN(n.getTime())?n:L0.addMonths(new Date,e),o=c?new Date(c):null,i=o&&!isNaN(o.getTime())?o:new Date,[r,s]=g.useState({from:t,to:i}),d=r.from?L0.format(r.from,"yyyy-MM-dd"):"",m=r.to?L0.format(r.to,"yyyy-MM-dd"):"",u=g.useCallback(p=>{s({from:p==null?void 0:p.from,to:p==null?void 0:p.to})},[]);return{from:d,to:m,handleDateChange:u,period:r}}function z5(e,l=150){const[c,n]=g.useState(e);return g.useEffect(()=>{const t=setTimeout(()=>{n(e)},l);return()=>{clearTimeout(t)}},[e,l]),c}const Z3=()=>{const[e,l]=g.useState(!1);return{isOpen:e,onOpen:()=>{l(!0)},onClose:()=>{l(!1)}}},y5=e=>{g.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},A5=e=>typeof window<"u"?window.matchMedia(e).matches:!1;function j5(e){const[l,c]=B.useState(A5(e));return B.useEffect(()=>{function n(){c(A5(e))}const t=window.matchMedia(e);return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e]),l}const A2={container:"_container_1htmo_1",containerRow:"_containerRow_1htmo_11",title:"_title_1htmo_16",textRow:"_textRow_1htmo_27",desc:"_desc_1htmo_31",info:"_info_1htmo_45",iconBox:"_iconBox_1htmo_49",icon:"_icon_1htmo_49"},w1="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.1296%205.5226C13.4012%205.79427%2013.4012%206.23473%2013.1296%206.5064L8.49188%2011.1441C8.22021%2011.4158%207.77975%2011.4158%207.50808%2011.1441L2.8704%206.5064C2.59873%206.23473%202.59873%205.79427%202.8704%205.5226C3.14207%205.25093%203.58253%205.25093%203.8542%205.5226L7.99998%209.66838L12.1458%205.5226C12.4174%205.25093%2012.8579%205.25093%2013.1296%205.5226Z'%20fill='currentColor'/%3e%3c/svg%3e",Fe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.66667%207.99996C6.66667%207.26358%207.25967%206.66663%207.99117%206.66663H8.00883C8.74033%206.66663%209.33333%207.26358%209.33333%207.99996C9.33333%208.73634%208.74033%209.33329%208.00883%209.33329H7.99117C7.25967%209.33329%206.66667%208.73634%206.66667%207.99996Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.66667%207.99996C2.66667%207.26358%203.25967%206.66663%203.99117%206.66663H4.00883C4.74033%206.66663%205.33333%207.26358%205.33333%207.99996C5.33333%208.73634%204.74033%209.33329%204.00883%209.33329H3.99117C3.25967%209.33329%202.66667%208.73634%202.66667%207.99996Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.6667%207.99996C10.6667%207.26358%2011.2597%206.66663%2011.9912%206.66663H12.0088C12.7403%206.66663%2013.3333%207.26358%2013.3333%207.99996C13.3333%208.73634%2012.7403%209.33329%2012.0088%209.33329H11.9912C11.2597%209.33329%2010.6667%208.73634%2010.6667%207.99996Z'%20fill='currentColor'/%3e%3c/svg%3e",O={btn:"_btn_7av70_2",disabled:"_disabled_7av70_23",btnSmall:"_btnSmall_7av70_31",btnDefault:"_btnDefault_7av70_39",btnPrimary:"_btnPrimary_7av70_48",btnSecondary:"_btnSecondary_7av70_62",btnTertiary:"_btnTertiary_7av70_79",btnLink:"_btnLink_7av70_97",focusVisible:"_focusVisible_7av70_119",iconOnlySmall:"_iconOnlySmall_7av70_131",iconOnlyDefault:"_iconOnlyDefault_7av70_136",menus:"_menus_7av70_144",menu:"_menu_7av70_144",divider:"_divider_7av70_168",menuDisabled:"_menuDisabled_7av70_177",btnGrp:"_btnGrp_7av70_186",grpTextBtn:"_grpTextBtn_7av70_191",grpIconBtn:"_grpIconBtn_7av70_198",btnAddonSmall:"_btnAddonSmall_7av70_206",btnAddonPrimary:"_btnAddonPrimary_7av70_211",btnAddonSecondary:"_btnAddonSecondary_7av70_215",btnAddonTertiary:"_btnAddonTertiary_7av70_219",menuIcon:"_menuIcon_7av70_223",btnActions:"_btnActions_7av70_231",moreMenuIcon:"_moreMenuIcon_7av70_239",moreMenuIconSecondary:"_moreMenuIconSecondary_7av70_243",btnTable:"_btnTable_7av70_247",moreMenuIconTable:"_moreMenuIconTable_7av70_252",btnGrpLeft:"_btnGrpLeft_7av70_263",btnGrpRight:"_btnGrpRight_7av70_280",chevronDownSpan:"_chevronDownSpan_7av70_285",chevronDown:"_chevronDown_7av70_285",groupActionTable:"_groupActionTable_7av70_298"};var Y=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.GHOST="tertiary",e.DANGER="primary",e.LINK="link",e.MINIMAL="tertiary",e))(Y||{}),Q=(e=>(e.SMALL="small",e.DEFAULT="default",e))(Q||{}),D0=(e=>(e.BASIC="basic",e.ICON_LEFT="iconLeft",e.ICON_RIGHT="iconRight",e.ICON_ONLY="iconOnly",e.BUTTON="button",e.RESET="reset",e))(D0||{});const w5=e=>{e.setOpen(!1)};function e0({children:e,variant:l=Y.PRIMARY,disabled:c=!1,onClick:n,type:t=D0.BASIC,size:o=Q.DEFAULT,customStyles:i={},icon:r,btnType:s}){return a.jsxs("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,t===D0.ICON_ONLY&&o===Q.DEFAULT&&O.iconOnlyDefault,t===D0.ICON_ONLY&&o===Q.SMALL&&O.iconOnlySmall,c&&O.disabled),disabled:c,onClick:n,style:i,type:s,children:[t===D0.ICON_LEFT&&r,t===D0.ICON_ONLY?r:e,t===D0.ICON_RIGHT&&r]})}const N5=g.forwardRef(function({children:e,variant:l=Y.PRIMARY,disabled:c=!1,menuItems:n,customData:t,size:o=Q.DEFAULT,positionerProps:i,isTable:r=!1,isCustomTrigger:s=!1,customStyles:d,isSingleBtnTrigger:m=!1,hideDivider:u=!1,onClick:p},h){const[x,_]=P.useMachine(C2.machine({id:g.useId(),positioning:{placement:(i==null?void 0:i.placement)||"bottom-end"}})),b=C2.connect(x,_,P.normalizeProps),I=d==null?void 0:d.customMenuStyles,v=d==null?void 0:d.customButtonStyles;g.useImperativeHandle(h,()=>({blur(){b.setOpen(!1)}}),[b]),g.useEffect(()=>{if(r){const y=document.getElementById("zap-table-scroll-container");if(y)return y.addEventListener("scroll",()=>w5(b),{passive:!0}),()=>y.removeEventListener("scroll",()=>w5(b))}},[b]);const z=a.jsx(a.Fragment,{children:n.length>0&&a.jsx("div",{...b.getPositionerProps(),children:a.jsx("div",{...b.getContentProps(),className:O.menus,style:I,children:n.filter(y=>y.filterFn?y.filterFn(t):!0).map(y=>a.jsxs("div",{className:q(O.menu,!u&&O.divider,{[O.menuDisabled]:y.disabled}),...b.getItemProps({value:y.label.toLowerCase()}),onClick:y.disabled?void 0:s?()=>y.onClick(t):y.onClick,style:y.customStyles,children:[y.iconSrc&&a.jsx(k,{path:y.iconSrc,svgClassName:q(O.menuIcon,y.customSvgClassName)}),y.label]},y.label))})})});return a.jsxs(a.Fragment,{children:[m?a.jsxs("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled),disabled:c,...b.getTriggerProps(),children:[e,a.jsx(k,{path:w1,svgClassName:O.chevronDown,spanClassName:O.chevronDownSpan})]}):s?a.jsx("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled,o===Q.DEFAULT&&O.iconOnlyDefault,o===Q.SMALL&&O.iconOnlySmall,r&&O.groupActionTable),style:v,...b.getTriggerProps(),children:e}):a.jsxs("div",{className:O.btnGrp,children:[a.jsx("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled,O.btnGrpLeft),disabled:c,onClick:p,children:e}),a.jsx("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled,O.btnGrpRight),disabled:c,...b.getTriggerProps(),children:a.jsx(k,{path:w1,svgClassName:O.chevronDown,spanClassName:O.chevronDownSpan})})]}),r?a.jsx(P.Portal,{children:z}):z]})}),S5=g.forwardRef(function({variant:e,disabled:l,menuItems:c,customData:n,size:t,positionerProps:o,isTable:i,children:r,hideDivider:s,customStyles:d},m){return a.jsx(N5,{variant:e,disabled:l,menuItems:c,customData:n,size:t,positionerProps:o,isTable:i,isCustomTrigger:!0,hideDivider:s,customStyles:d,ref:m,children:r||a.jsx(k,{path:Fe,width:16,height:16,svgClassName:i?O.moreMenuIconTable:void 0})})});e0.GroupAction=N5,e0.ActionsDropdown=S5;function M5({icon:e,title:l,desc:c,flexDir:n="column",btnText:t,onClick:o,customSvgClassName:i}){return a.jsxs("div",{className:q(A2.container,n==="row"&&A2.containerRow),children:[a.jsx("div",{className:A2.iconBox,children:a.jsx(k,{path:e,svgClassName:q(A2.icon,i||void 0)})}),a.jsxs("div",{className:A2.info,children:[a.jsx("h6",{className:q(A2.title,n==="row"&&A2.textRow),children:l}),c&&a.jsx("p",{className:q(A2.desc,n==="row"&&A2.textRow),children:c})]}),t&&a.jsx(e0,{onClick:o,variant:Y.GHOST,children:t})]})}const Ge="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M4.627%208.889%204%204l2.483%202.207L9.5%208.889H4.627Z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.65%203.337a.75.75%200%200%201%20.848.102l1.988%201.767A8.725%208.725%200%200%201%2012%203.25a8.725%208.725%200%200%201%206.187%202.563A8.725%208.725%200%200%201%2020.75%2012a8.725%208.725%200%200%201-2.563%206.187A8.724%208.724%200%200%201%2012%2020.75a8.725%208.725%200%200%201-6.187-2.563%208.764%208.764%200%200%201-1.876-2.784.75.75%200%200%201%201.381-.584A7.262%207.262%200%200%200%2012%2019.25a7.225%207.225%200%200%200%205.127-2.123A7.225%207.225%200%200%200%2019.25%2012a7.226%207.226%200%200%200-2.123-5.127A7.225%207.225%200%200%200%2012%204.75a7.225%207.225%200%200%200-4.375%201.469l2.373%202.11a.75.75%200%200%201-.498%201.31H4.628a.75.75%200%200%201-.744-.655l-.628-4.889a.75.75%200%200%201%20.394-.758ZM5.404%206.25l-.405-.36.094.736c.1-.128.204-.254.31-.376Zm.458%201.888c.199-.314.42-.612.663-.891l1.002.89H5.862Z'/%3e%3c/g%3e%3c/svg%3e",m0={filters:"_filters_14ho9_1",filtersInfo:"_filtersInfo_14ho9_7",filter:"_filter_14ho9_1",filterIcon2:"_filterIcon2_14ho9_22",filterCol:"_filterCol_14ho9_26",filterActive:"_filterActive_14ho9_34",filterIcon:"_filterIcon_14ho9_22",resetIcon2:"_resetIcon2_14ho9_44",totalSelected:"_totalSelected_14ho9_68",positioner:"_positioner_14ho9_80",dropdown:"_dropdown_14ho9_84",options:"_options_14ho9_99",optionsEmpty:"_optionsEmpty_14ho9_107",option:"_option_14ho9_99",selectedFilters:"_selectedFilters_14ho9_132",dropdownSearch:"_dropdownSearch_14ho9_139",footerBox:"_footerBox_14ho9_148",footer:"_footer_14ho9_148",resetBtn:"_resetBtn_14ho9_168",resetIcon:"_resetIcon_14ho9_44",optionLabel:"_optionLabel_14ho9_198",filterTooltip:"_filterTooltip_14ho9_228",filterValue:"_filterValue_14ho9_244",filterTooltipTrigger:"_filterTooltipTrigger_14ho9_258"};function De({label:e,value:l,addFilters:c,removeFilters:n,checked:t,filterKey:o,filterDispatch:i,countryCode:r,customName:s}){const[d,m]=P.useMachine(t1.machine({id:l,name:e,checked:t,onCheckedChange:({checked:p})=>{p?c(o,l,i):n(o,l,i)}})),u=t1.connect(d,m,P.normalizeProps);return a.jsxs("label",{...u.getRootProps(),className:m0.optionLabel,children:[a.jsx("div",{...u.getControlProps()}),a.jsxs("span",{...u.getLabelProps(),children:[r&&a.jsx(k3,{countryCode:r||"IN",style:{fontSize:"15px",lineHeight:"15px",marginLeft:"-5px",marginRight:"7px"}}),s?a.jsx("div",{dangerouslySetInnerHTML:{__html:s}}):e]}),a.jsx("input",{...u.getHiddenInputProps()})]})}function Te({filter:e,tableFilter:l,selectedFilters:c}){var r;const[n,t]=P.useMachine(n1.machine({id:e.key})),o=n1.connect(n,t,P.normalizeProps),i=(r=e.options)==null?void 0:r.filter(s=>l==null?void 0:l.values.includes(s.value));return a.jsxs(a.Fragment,{children:[a.jsxs("div",{...o.getTriggerProps(),className:q("zap-reset-btn",m0.filterTooltipTrigger),children:[a.jsx("div",{className:m0.filterCol,children:e.name}),c!==0&&a.jsx("span",{className:m0.totalSelected,children:c})]}),o.open&&c!==0&&a.jsx("div",{...o.getPositionerProps(),children:a.jsx("div",{...o.getContentProps(),className:m0.filterTooltip,children:i.map(s=>a.jsx("div",{className:m0.filterValue,children:s.name},s.value))})})]})}const j2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.694%208.284a1.043%201.043%200%200%201%200%201.476l-6.956%206.956a1.044%201.044%200%200%201-1.476%200L4.306%209.76A1.043%201.043%200%201%201%205.78%208.284L12%2014.503l6.219-6.22a1.043%201.043%200%200%201%201.475%200'%20fill='%23070F2C'/%3e%3c/svg%3e",Pe="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.53%203.47a.75.75%200%200%200-1.06%200l-4%204a.75.75%200%200%200%200%201.06l4%204a.75.75%200%201%200%201.06-1.06L8.81%208.75H11c.88%200%202.217.27%203.312%201.059%201.057.76%201.938%202.035%201.938%204.191%200%202.156-.881%203.43-1.938%204.191-1.095.789-2.432%201.059-3.312%201.059a.75.75%200%200%200%200%201.5c1.12%200%202.783-.33%204.188-1.341%201.443-1.04%202.562-2.765%202.562-5.409%200-2.644-1.119-4.37-2.562-5.409C13.783%207.58%2012.12%207.25%2011%207.25H8.81l2.72-2.72a.75.75%200%200%200%200-1.06Z'%20fill='currentColor'/%3e%3c/svg%3e",E5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%204.75a6.25%206.25%200%201%200%200%2012.5%206.25%206.25%200%200%200%200-12.5M3.25%2011a7.75%207.75%200%201%201%2013.735%204.924l3.545%203.546a.75.75%200%201%201-1.06%201.06l-3.546-3.545A7.75%207.75%200%200%201%203.25%2011'%20fill='%23070F2C'/%3e%3c/svg%3e",Z2={box:"_box_1cmss_1",search:"_search_1cmss_5",searchDisabled:"_searchDisabled_1cmss_21",searchIcon:"_searchIcon_1cmss_38",clearIcon:"_clearIcon_1cmss_39"};function R2({id:e,search:l,setSearch:c,placeholder:n="Search",clearIconClearFn:t,customStyles:o,disabled:i=!1}){const r=typeof c=="function"&&typeof l=="string",s=o==null?void 0:o.customInputStyles,d=o==null?void 0:o.customIconStyles;return a.jsxs("div",{className:Z2.box,children:[r?a.jsx("input",{id:e,type:"text",className:q(Z2.search,i&&Z2.searchDisabled,"zap-content-medium"),placeholder:n,value:l,onChange:m=>{c(m.target.value)},style:s,disabled:i}):a.jsx("input",{id:e,type:"text",className:q(Z2.search,i&&Z2.searchDisabled,"zap-content-medium"),placeholder:n,style:s,disabled:i}),a.jsx("span",{children:a.jsx("img",{src:E5,alt:"search",className:Z2.searchIcon,style:d})}),r&&l.length!==0&&a.jsx("span",{onClick:()=>{typeof t=="function"&&t(),c("")},children:a.jsx("img",{src:i2,alt:"Clear Search",className:Z2.clearIcon,style:d})})]})}function Oe({filter:e,tableFilters:l,tableFilter:c,addFilters:n,removeFilters:t,resetFilters:o,filterDispatch:i}){var b,I;const[r,s]=g.useState(""),[d,m]=P.useMachine(C2.machine({id:e.id,closeOnSelect:!1})),u=C2.connect(d,m,P.normalizeProps),p=e.options.filter(v=>v.name?v.name.toLowerCase().includes(r.toLowerCase()):!1),h=c==null?void 0:c.values.length,x=()=>{o(c==null?void 0:c.key,i),u.setOpen(!1)},_=v=>{let z=!1;return l.forEach(y=>{y.values.forEach(j=>{if(j===v){z=!0;return}})}),z};return a.jsxs("div",{children:[a.jsxs("button",{className:q("zap-reset-btn",m0.filter,u.open&&m0.filterActive),...u.getTriggerProps(),children:[a.jsx(Te,{filter:e,tableFilter:c,selectedFilters:h}),a.jsx(k,{path:j2,svgClassName:m0.filterIcon2})]}),a.jsx("div",{...u.getPositionerProps(),className:m0.positioner,children:u.open&&a.jsxs("div",{...u.getContentProps(),className:m0.dropdown,onKeyDown:()=>{},children:[!((b=e.config)!=null&&b.hideSearch)&&a.jsx("div",{className:m0.dropdownSearch,children:a.jsx(R2,{id:"filter-search",search:r,setSearch:s,placeholder:((I=e.config)==null?void 0:I.placeholder)||"Search"})}),a.jsx("div",{className:m0.options,children:p.length===0?a.jsx("div",{className:m0.optionsEmpty,children:"No results found"}):p.map((v,z)=>a.jsx("div",{...u.getItemProps({value:v.value}),className:m0.option,children:a.jsx(De,{label:v.name,value:v.value,filterKey:e.key,addFilters:n,removeFilters:t,checked:_(v.value),filterDispatch:i,countryCode:v.country_code,customName:v.customName},v.value)},z))}),a.jsx("div",{className:m0.footerBox,children:a.jsxs("div",{className:m0.footer,children:[a.jsxs("div",{className:m0.selectedFilters,children:[h," Selected"]}),a.jsxs("button",{className:q("zap-reset-btn",m0.resetBtn),onClick:x,children:[a.jsx(k,{path:Pe,svgClassName:m0.resetIcon}),"Reset"]})]})})]})})]})}const $e={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},X3=new Map,e3=e=>{const l=X3.get(e);return l?Object.fromEntries(Object.entries(l.stores).map(([c,n])=>[c,n.getState()])):{}},Ze=(e,l,c)=>{if(e===void 0)return{type:"untracked",connection:l.connect(c)};const n=X3.get(c.name);if(n)return{type:"tracked",store:e,...n};const t={connection:l.connect(c),stores:{}};return X3.set(c.name,t),{type:"tracked",store:e,...t}},B5=(e,l={})=>(c,n,t)=>{const{enabled:o,anonymousActionType:i,store:r,...s}=l;let d;try{d=(o??($e?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return e(c,n,t);const{connection:m,...u}=Ze(r,d,s);let p=!0;t.setState=(_,b,I)=>{const v=c(_,b);if(!p)return v;const z=I===void 0?{type:i||"anonymous"}:typeof I=="string"?{type:I}:I;return r===void 0?(m==null||m.send(z,n()),v):(m==null||m.send({...z,type:`${r}/${z.type}`},{...e3(s.name),[r]:t.getState()}),v)};const h=(..._)=>{const b=p;p=!1,c(..._),p=b},x=e(t.setState,n,t);if(u.type==="untracked"?m==null||m.init(x):(u.stores[u.store]=t,m==null||m.init(Object.fromEntries(Object.entries(u.stores).map(([_,b])=>[_,_===u.store?x:b.getState()])))),t.dispatchFromDevtools&&typeof t.dispatch=="function"){const _=t.dispatch;t.dispatch=(...b)=>{_(...b)}}return m.subscribe(_=>{var b;switch(_.type){case"ACTION":if(typeof _.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return W3(_.payload,I=>{if(I.type==="__setState"){if(r===void 0){h(I.state);return}Object.keys(I.state).length!==1&&console.error(`
30
+ <%s key={someKey} {...props} />`,Y4,a1,Qn,a1),ne[a1+Y4]=!0}}return f===n?Xn(E0):Zn(E0),E0}}function Wn(f,M,F){return ce(f,M,F,!0)}function Yn(f,M,F){return ce(f,M,F,!1)}var Jn=Yn,Un=Wn;j1.Fragment=n,j1.jsx=Jn,j1.jsxs=Un}()),j1}var v5;function Ae(){return v5||(v5=1,process.env.NODE_ENV==="production"?U1.exports=ze():U1.exports=ye()),U1.exports}var a=Ae();const H0={iconSpan:"_iconSpan_1c9ja_1",icon:"_icon_1c9ja_1",closeIconSpan:"_closeIconSpan_1c9ja_14",closeIcon:"_closeIcon_1c9ja_14",closeToastBtn:"_closeToastBtn_1c9ja_28",toastMessageBox:"_toastMessageBox_1c9ja_34",toastMessage:"_toastMessage_1c9ja_34",toastInfo:"_toastInfo_1c9ja_44"},je="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%208c0%204.42%203.58%208%208%208s8-3.58%208-8-3.58-8-8-8-8%203.58-8%208m11.29-2.71a1.003%201.003%200%200%201%201.42%201.42l-5%205c-.18.18-.43.29-.71.29s-.53-.11-.71-.29l-3-3a1.003%201.003%200%200%201%201.42-1.42L7%209.59z'%20fill='%2336B37E'/%3e%3c/svg%3e",g5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%20.005A7.993%207.993%200%200%200%20.005%208%207.993%207.993%200%200%200%208%2015.995%207.993%207.993%200%200%200%2015.995%208%207.993%207.993%200%200%200%208%20.005M7%2012.997v-1.999h2v1.999zm0-9.994V10h2V3.003z'%20fill='%23E74C3C'/%3e%3c/svg%3e",q5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m15.845%2013.5.01-.01-6.996-12-.01.01A.97.97%200%200%200%208%201c-.37%200-.67.2-.85.5l-.01-.01-6.995%2012%20.01.01c-.09.15-.15.31-.15.5%200%20.55.45%201%201%201h13.99c.55%200%201-.45%201-1%200-.19-.06-.35-.15-.5M9%2012.99H7.001v-2h1.998zm-1.998-3H9v-5H7.001z'%20fill='%23F39C12'/%3e%3c/svg%3e",we="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200C3.58%200%200%203.58%200%208s3.58%208%208%208%208-3.58%208-8-3.58-8-8-8m1%203v2H7V3zm-3%209v1h4v-1H9V6H6v1h1v5z'%20fill='%23254DDA'/%3e%3c/svg%3e",i2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.47%206.47a.75.75%200%200%201%201.06%200L12%2010.94l4.47-4.47a.75.75%200%201%201%201.06%201.06L13.06%2012l4.47%204.47a.75.75%200%201%201-1.06%201.06L12%2013.06l-4.47%204.47a.75.75%200%200%201-1.06-1.06L10.94%2012%206.47%207.53a.75.75%200%200%201%200-1.06'%20fill='%23070F2C'/%3e%3c/svg%3e";function k({path:e,width:l,height:c,spanClassName:n="",svgClassName:t="",customSpanStyles:o={},customSvgStyles:i={},handleClick:r}){return a.jsx("span",{className:`${n}`,style:{...o},onClick:r,children:a.jsx(oe,{src:e,className:t,style:{...i},onError:s=>console.log(s.message),width:l,height:c})})}const Q1={position:"top-right",autoClose:1800,hideProgressBar:!0};function K1({msg:e,info:l}){return a.jsxs("div",{className:q(H0.toastMessageBox),children:[a.jsx("h4",{className:q(H0.toastMessage,"zap-content-medium"),children:e}),a.jsx("p",{className:q(H0.toastInfo,"zap-content-regular"),children:l})]})}const f5=({msg:e,info:l,options:c})=>Z1.toast.success(a.jsx(K1,{msg:e,info:l,type:"success"}),{...Q1,icon:a.jsx(k,{path:je,svgClassName:q(H0.icon,H0.success),spanClassName:H0.iconSpan}),...c}),Ne=({msg:e,info:l,options:c})=>Z1.toast.error(a.jsx(K1,{msg:e,info:l,type:"error"}),{...Q1,icon:a.jsx(k,{path:g5,svgClassName:q(H0.icon,H0.error),spanClassName:H0.iconSpan}),...c}),Se=({msg:e,info:l,options:c})=>Z1.toast.info(a.jsx(K1,{msg:e,info:l,type:"info"}),{...Q1,icon:a.jsx(k,{path:we,svgClassName:q(H0.icon,H0.info),spanClassName:H0.iconSpan}),...c}),Me=({msg:e,info:l,options:c})=>Z1.toast.warning(a.jsx(K1,{msg:e,info:l,type:"warning"}),{...Q1,icon:a.jsx(k,{path:q5,svgClassName:q(H0.icon,H0.warning),spanClassName:H0.iconSpan}),...c});function Ee({closeToast:e}){return a.jsx("button",{className:H0.closeToastBtn,onClick:e,children:a.jsx(k,{path:i2,svgClassName:H0.closeIcon,spanClassName:H0.closeIconSpan})})}const F3=(e,l,c)=>e===1||e===0||e===void 0||e===null?l:c,b5=(e,l)=>l&&e.length>l?`${e.substring(0,l)}...`:e,G3=e=>e.split(" ").filter(Boolean).slice(0,2).reduce((c,n)=>c+(n[0]||"").toUpperCase(),""),D3=e=>{if(!e||!e.first_name)return"-";let l=e.first_name;return e.middle_name&&(l+=` ${e.middle_name}`),e.last_name&&(l+=` ${e.last_name}`),l},T3=async(e,l=!0)=>{e&&(await navigator.clipboard.writeText(e).catch(console.error),l&&f5({msg:`Successfully copied ${e}`,options:{toastId:e,autoClose:3e3}}))},P3=["Backspace","Tab","ArrowLeft","ArrowRight","Delete","Enter","Control","Meta"],Be=0,ke=25;var O3=(e=>(e.SEARCH="search",e.SORT_BY="sort_by",e.SORT_ORDER="sort_order",e.INITIAL_FILTER="initial_filter",e.FILTER="filter",e.RESET_FILTERS="reset_filters",e.RESET_ALL="reset_all",e.SELECTOR_FILTER="selector_filter",e.PAGE="page",e.LIMIT="limit",e.SET_DURATION="set_duration",e))(O3||{});const C5=(e,l=[])=>{const c={};return e&&Object.keys(e).forEach(n=>{e[n]&&!l.includes(n)&&(c[n]=e[n])}),c},_5=e=>{if(e.sort_by)switch(e.sort_order){case"asc":return`+${e.sort_by}`;case"desc":return`-${e.sort_by}`;default:return`${e.sort_by}`}},Ve=e=>{const l={page:e.page,limit:e.limit};return e.search&&(l.search=e.search),e.sort_by&&(l.sort_by=_5({sort_by:e.sort_by,sort_order:e.sort_order})),e.filters&&Object.assign(l,C5(e.filters)),Object.keys(l).forEach(c=>{l[c]===void 0&&delete l[c]}),l},Re=(e,{payload:l,type:c},n)=>{switch(c){case"search":return{...e,search:l,page:0};case"sort_by":return{...e,sort_by:l,page:0};case"sort_order":return{...e,sort_order:l};case"initial_filter":return{...e,filters:l};case"filter":{const{value:t,filterType:o}=l;return{...e,page:0,filters:{...e.filters,[o]:t}}}case"reset_all":return n;case"reset_filters":return{...e,filters:n.filters};case"page":return{...e,page:l};case"limit":return{...e,limit:l,page:0};case"set_duration":return{...e,filters:{...e.filters,duration:l}};case"selector_filter":return{...e,filters:{...e.filters,filter_status:l}};default:throw new Error(`Unhandled action type: ${c}`)}},Le=e=>$2.create(l=>({query:e,dispatch:c=>l(n=>({query:Re(n.query,c,e)}))})),I5={team:{employeeDirectory:{list:{label:"People",value:"team_list"},hiringTemplate:{label:"Hiring Templates",value:"team_hiring_template"},profileSoftwares:{label:"Profile Softwares",value:"team_profile_softwares"}}},zenIT:{inventory:{list:{label:"Inventory List",value:"inventory_list"},archive:{label:"Inventory Archive List",value:"inventory_archive_list"},allocationHistory:{label:"Inventory Allocation History",value:"inventory_allocation_history"}},software:{list:{label:"Software List",value:"software_list"},users:{label:"Software Users",value:"software_users"},detailsUsers:{label:"Software Details Users",value:"software_details_users"}},mdm:{devices:{label:"MDM Devices",value:"mdm_devices"},users:{label:"MDM Users",value:"mdm_users"}},webstore:{quotation:{label:"Quotation List",value:"quotation_list"}}},zenCore:{workflow:{list:{label:"Workflow List",value:"workflow_list"},history:{label:"Workflow History",value:"workflow_history"},forms:{label:"Workflow Forms",value:"workflow_forms"}}},zenPerformance:{goal:{list:{label:"Goal List",value:"goal_list"},departmentList:{label:"Department Goals",value:"departments_goal_list"}}},zenHR:{attendance:{timesheetList:{label:"Attendance Timesheets",value:"attendance_timesheets_list"},policyList:{label:"Attendance Policy List",value:"attendance_policy_list"}},leave:{policies:{label:"Leave Policies",value:"leave_policies"},publicHolidays:{label:"Leave Public Holidays",value:"leave_public_holidays"}}}},He=e=>{for(const l of Object.values(I5))for(const c of Object.values(l))for(const n of Object.values(c))if(n.value===e)return n};function $3(e){return g.useMemo(()=>o5(e),[e])}function x5(e=-3,l,c){const n=l?new Date(l):null,t=n&&!isNaN(n.getTime())?n:L0.addMonths(new Date,e),o=c?new Date(c):null,i=o&&!isNaN(o.getTime())?o:new Date,[r,s]=g.useState({from:t,to:i}),d=r.from?L0.format(r.from,"yyyy-MM-dd"):"",m=r.to?L0.format(r.to,"yyyy-MM-dd"):"",u=g.useCallback(p=>{s({from:p==null?void 0:p.from,to:p==null?void 0:p.to})},[]);return{from:d,to:m,handleDateChange:u,period:r}}function z5(e,l=150){const[c,n]=g.useState(e);return g.useEffect(()=>{const t=setTimeout(()=>{n(e)},l);return()=>{clearTimeout(t)}},[e,l]),c}const Z3=()=>{const[e,l]=g.useState(!1);return{isOpen:e,onOpen:()=>{l(!0)},onClose:()=>{l(!1)}}},y5=e=>{g.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},A5=e=>typeof window<"u"?window.matchMedia(e).matches:!1;function j5(e){const[l,c]=B.useState(A5(e));return B.useEffect(()=>{function n(){c(A5(e))}const t=window.matchMedia(e);return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e]),l}const A2={container:"_container_1htmo_1",containerRow:"_containerRow_1htmo_11",title:"_title_1htmo_16",textRow:"_textRow_1htmo_27",desc:"_desc_1htmo_31",info:"_info_1htmo_45",iconBox:"_iconBox_1htmo_49",icon:"_icon_1htmo_49"},w1="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.1296%205.5226C13.4012%205.79427%2013.4012%206.23473%2013.1296%206.5064L8.49188%2011.1441C8.22021%2011.4158%207.77975%2011.4158%207.50808%2011.1441L2.8704%206.5064C2.59873%206.23473%202.59873%205.79427%202.8704%205.5226C3.14207%205.25093%203.58253%205.25093%203.8542%205.5226L7.99998%209.66838L12.1458%205.5226C12.4174%205.25093%2012.8579%205.25093%2013.1296%205.5226Z'%20fill='currentColor'/%3e%3c/svg%3e",Fe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.66667%207.99996C6.66667%207.26358%207.25967%206.66663%207.99117%206.66663H8.00883C8.74033%206.66663%209.33333%207.26358%209.33333%207.99996C9.33333%208.73634%208.74033%209.33329%208.00883%209.33329H7.99117C7.25967%209.33329%206.66667%208.73634%206.66667%207.99996Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.66667%207.99996C2.66667%207.26358%203.25967%206.66663%203.99117%206.66663H4.00883C4.74033%206.66663%205.33333%207.26358%205.33333%207.99996C5.33333%208.73634%204.74033%209.33329%204.00883%209.33329H3.99117C3.25967%209.33329%202.66667%208.73634%202.66667%207.99996Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.6667%207.99996C10.6667%207.26358%2011.2597%206.66663%2011.9912%206.66663H12.0088C12.7403%206.66663%2013.3333%207.26358%2013.3333%207.99996C13.3333%208.73634%2012.7403%209.33329%2012.0088%209.33329H11.9912C11.2597%209.33329%2010.6667%208.73634%2010.6667%207.99996Z'%20fill='currentColor'/%3e%3c/svg%3e",O={btn:"_btn_7av70_2",disabled:"_disabled_7av70_23",btnSmall:"_btnSmall_7av70_31",btnDefault:"_btnDefault_7av70_39",btnPrimary:"_btnPrimary_7av70_48",btnSecondary:"_btnSecondary_7av70_62",btnTertiary:"_btnTertiary_7av70_79",btnLink:"_btnLink_7av70_97",focusVisible:"_focusVisible_7av70_119",iconOnlySmall:"_iconOnlySmall_7av70_131",iconOnlyDefault:"_iconOnlyDefault_7av70_136",menus:"_menus_7av70_144",menu:"_menu_7av70_144",divider:"_divider_7av70_168",menuDisabled:"_menuDisabled_7av70_177",btnGrp:"_btnGrp_7av70_186",grpTextBtn:"_grpTextBtn_7av70_191",grpIconBtn:"_grpIconBtn_7av70_198",btnAddonSmall:"_btnAddonSmall_7av70_206",btnAddonPrimary:"_btnAddonPrimary_7av70_211",btnAddonSecondary:"_btnAddonSecondary_7av70_215",btnAddonTertiary:"_btnAddonTertiary_7av70_219",menuIcon:"_menuIcon_7av70_223",btnActions:"_btnActions_7av70_231",moreMenuIcon:"_moreMenuIcon_7av70_239",moreMenuIconSecondary:"_moreMenuIconSecondary_7av70_243",btnTable:"_btnTable_7av70_247",moreMenuIconTable:"_moreMenuIconTable_7av70_252",btnGrpLeft:"_btnGrpLeft_7av70_263",btnGrpRight:"_btnGrpRight_7av70_280",chevronDownSpan:"_chevronDownSpan_7av70_285",chevronDown:"_chevronDown_7av70_285",groupActionTable:"_groupActionTable_7av70_298"};var Y=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.GHOST="tertiary",e.DANGER="primary",e.LINK="link",e.MINIMAL="tertiary",e))(Y||{}),Q=(e=>(e.SMALL="small",e.DEFAULT="default",e))(Q||{}),D0=(e=>(e.BASIC="basic",e.ICON_LEFT="iconLeft",e.ICON_RIGHT="iconRight",e.ICON_ONLY="iconOnly",e.BUTTON="button",e.RESET="reset",e))(D0||{});const w5=e=>{e.setOpen(!1)};function e0({children:e,variant:l=Y.PRIMARY,disabled:c=!1,onClick:n,type:t=D0.BASIC,size:o=Q.DEFAULT,customStyles:i={},className:r,icon:s,btnType:d}){return a.jsxs("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,t===D0.ICON_ONLY&&o===Q.DEFAULT&&O.iconOnlyDefault,t===D0.ICON_ONLY&&o===Q.SMALL&&O.iconOnlySmall,c&&O.disabled,r),disabled:c,onClick:n,style:i,type:d,children:[t===D0.ICON_LEFT&&s,t===D0.ICON_ONLY?s:e,t===D0.ICON_RIGHT&&s]})}const N5=g.forwardRef(function({children:e,variant:l=Y.PRIMARY,disabled:c=!1,menuItems:n,customData:t,size:o=Q.DEFAULT,positionerProps:i,isTable:r=!1,isCustomTrigger:s=!1,customStyles:d,isSingleBtnTrigger:m=!1,hideDivider:u=!1,onClick:p},h){const[x,_]=P.useMachine(C2.machine({id:g.useId(),positioning:{placement:(i==null?void 0:i.placement)||"bottom-end"}})),b=C2.connect(x,_,P.normalizeProps),I=d==null?void 0:d.customMenuStyles,v=d==null?void 0:d.customButtonStyles;g.useImperativeHandle(h,()=>({blur(){b.setOpen(!1)}}),[b]),g.useEffect(()=>{if(r){const y=document.getElementById("zap-table-scroll-container");if(y)return y.addEventListener("scroll",()=>w5(b),{passive:!0}),()=>y.removeEventListener("scroll",()=>w5(b))}},[b]);const z=a.jsx(a.Fragment,{children:n.length>0&&a.jsx("div",{...b.getPositionerProps(),children:a.jsx("div",{...b.getContentProps(),className:O.menus,style:I,children:n.filter(y=>y.filterFn?y.filterFn(t):!0).map(y=>a.jsxs("div",{className:q(O.menu,!u&&O.divider,{[O.menuDisabled]:y.disabled}),...b.getItemProps({value:y.label.toLowerCase()}),onClick:y.disabled?void 0:s?()=>y.onClick(t):y.onClick,style:y.customStyles,children:[y.iconSrc&&a.jsx(k,{path:y.iconSrc,svgClassName:q(O.menuIcon,y.customSvgClassName)}),y.label]},y.label))})})});return a.jsxs(a.Fragment,{children:[m?a.jsxs("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled),disabled:c,...b.getTriggerProps(),children:[e,a.jsx(k,{path:w1,svgClassName:O.chevronDown,spanClassName:O.chevronDownSpan})]}):s?a.jsx("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled,o===Q.DEFAULT&&O.iconOnlyDefault,o===Q.SMALL&&O.iconOnlySmall,r&&O.groupActionTable),style:v,...b.getTriggerProps(),children:e}):a.jsxs("div",{className:O.btnGrp,children:[a.jsx("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled,O.btnGrpLeft),disabled:c,onClick:p,children:e}),a.jsx("button",{className:q(O.btn,l===Y.PRIMARY&&O.btnPrimary,l===Y.SECONDARY&&O.btnSecondary,l===Y.TERTIARY&&O.btnTertiary,l===Y.LINK&&O.btnLink,o===Q.DEFAULT&&O.btnDefault,o===Q.SMALL&&O.btnSmall,c&&O.disabled,O.btnGrpRight),disabled:c,...b.getTriggerProps(),children:a.jsx(k,{path:w1,svgClassName:O.chevronDown,spanClassName:O.chevronDownSpan})})]}),r?a.jsx(P.Portal,{children:z}):z]})}),S5=g.forwardRef(function({variant:e,disabled:l,menuItems:c,customData:n,size:t,positionerProps:o,isTable:i,children:r,hideDivider:s,customStyles:d},m){return a.jsx(N5,{variant:e,disabled:l,menuItems:c,customData:n,size:t,positionerProps:o,isTable:i,isCustomTrigger:!0,hideDivider:s,customStyles:d,ref:m,children:r||a.jsx(k,{path:Fe,width:16,height:16,svgClassName:i?O.moreMenuIconTable:void 0})})});e0.GroupAction=N5,e0.ActionsDropdown=S5;function M5({icon:e,title:l,desc:c,flexDir:n="column",btnText:t,onClick:o,customSvgClassName:i}){return a.jsxs("div",{className:q(A2.container,n==="row"&&A2.containerRow),children:[a.jsx("div",{className:A2.iconBox,children:a.jsx(k,{path:e,svgClassName:q(A2.icon,i||void 0)})}),a.jsxs("div",{className:A2.info,children:[a.jsx("h6",{className:q(A2.title,n==="row"&&A2.textRow),children:l}),c&&a.jsx("p",{className:q(A2.desc,n==="row"&&A2.textRow),children:c})]}),t&&a.jsx(e0,{onClick:o,variant:Y.GHOST,children:t})]})}const Ge="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M4.627%208.889%204%204l2.483%202.207L9.5%208.889H4.627Z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.65%203.337a.75.75%200%200%201%20.848.102l1.988%201.767A8.725%208.725%200%200%201%2012%203.25a8.725%208.725%200%200%201%206.187%202.563A8.725%208.725%200%200%201%2020.75%2012a8.725%208.725%200%200%201-2.563%206.187A8.724%208.724%200%200%201%2012%2020.75a8.725%208.725%200%200%201-6.187-2.563%208.764%208.764%200%200%201-1.876-2.784.75.75%200%200%201%201.381-.584A7.262%207.262%200%200%200%2012%2019.25a7.225%207.225%200%200%200%205.127-2.123A7.225%207.225%200%200%200%2019.25%2012a7.226%207.226%200%200%200-2.123-5.127A7.225%207.225%200%200%200%2012%204.75a7.225%207.225%200%200%200-4.375%201.469l2.373%202.11a.75.75%200%200%201-.498%201.31H4.628a.75.75%200%200%201-.744-.655l-.628-4.889a.75.75%200%200%201%20.394-.758ZM5.404%206.25l-.405-.36.094.736c.1-.128.204-.254.31-.376Zm.458%201.888c.199-.314.42-.612.663-.891l1.002.89H5.862Z'/%3e%3c/g%3e%3c/svg%3e",m0={filters:"_filters_14ho9_1",filtersInfo:"_filtersInfo_14ho9_7",filter:"_filter_14ho9_1",filterIcon2:"_filterIcon2_14ho9_22",filterCol:"_filterCol_14ho9_26",filterActive:"_filterActive_14ho9_34",filterIcon:"_filterIcon_14ho9_22",resetIcon2:"_resetIcon2_14ho9_44",totalSelected:"_totalSelected_14ho9_68",positioner:"_positioner_14ho9_80",dropdown:"_dropdown_14ho9_84",options:"_options_14ho9_99",optionsEmpty:"_optionsEmpty_14ho9_107",option:"_option_14ho9_99",selectedFilters:"_selectedFilters_14ho9_132",dropdownSearch:"_dropdownSearch_14ho9_139",footerBox:"_footerBox_14ho9_148",footer:"_footer_14ho9_148",resetBtn:"_resetBtn_14ho9_168",resetIcon:"_resetIcon_14ho9_44",optionLabel:"_optionLabel_14ho9_198",filterTooltip:"_filterTooltip_14ho9_228",filterValue:"_filterValue_14ho9_244",filterTooltipTrigger:"_filterTooltipTrigger_14ho9_258"};function De({label:e,value:l,addFilters:c,removeFilters:n,checked:t,filterKey:o,filterDispatch:i,countryCode:r,customName:s}){const[d,m]=P.useMachine(t1.machine({id:l,name:e,checked:t,onCheckedChange:({checked:p})=>{p?c(o,l,i):n(o,l,i)}})),u=t1.connect(d,m,P.normalizeProps);return a.jsxs("label",{...u.getRootProps(),className:m0.optionLabel,children:[a.jsx("div",{...u.getControlProps()}),a.jsxs("span",{...u.getLabelProps(),children:[r&&a.jsx(k3,{countryCode:r||"IN",style:{fontSize:"15px",lineHeight:"15px",marginLeft:"-5px",marginRight:"7px"}}),s?a.jsx("div",{dangerouslySetInnerHTML:{__html:s}}):e]}),a.jsx("input",{...u.getHiddenInputProps()})]})}function Te({filter:e,tableFilter:l,selectedFilters:c}){var r;const[n,t]=P.useMachine(n1.machine({id:e.key})),o=n1.connect(n,t,P.normalizeProps),i=(r=e.options)==null?void 0:r.filter(s=>l==null?void 0:l.values.includes(s.value));return a.jsxs(a.Fragment,{children:[a.jsxs("div",{...o.getTriggerProps(),className:q("zap-reset-btn",m0.filterTooltipTrigger),children:[a.jsx("div",{className:m0.filterCol,children:e.name}),c!==0&&a.jsx("span",{className:m0.totalSelected,children:c})]}),o.open&&c!==0&&a.jsx("div",{...o.getPositionerProps(),children:a.jsx("div",{...o.getContentProps(),className:m0.filterTooltip,children:i.map(s=>a.jsx("div",{className:m0.filterValue,children:s.name},s.value))})})]})}const j2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.694%208.284a1.043%201.043%200%200%201%200%201.476l-6.956%206.956a1.044%201.044%200%200%201-1.476%200L4.306%209.76A1.043%201.043%200%201%201%205.78%208.284L12%2014.503l6.219-6.22a1.043%201.043%200%200%201%201.475%200'%20fill='%23070F2C'/%3e%3c/svg%3e",Pe="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.53%203.47a.75.75%200%200%200-1.06%200l-4%204a.75.75%200%200%200%200%201.06l4%204a.75.75%200%201%200%201.06-1.06L8.81%208.75H11c.88%200%202.217.27%203.312%201.059%201.057.76%201.938%202.035%201.938%204.191%200%202.156-.881%203.43-1.938%204.191-1.095.789-2.432%201.059-3.312%201.059a.75.75%200%200%200%200%201.5c1.12%200%202.783-.33%204.188-1.341%201.443-1.04%202.562-2.765%202.562-5.409%200-2.644-1.119-4.37-2.562-5.409C13.783%207.58%2012.12%207.25%2011%207.25H8.81l2.72-2.72a.75.75%200%200%200%200-1.06Z'%20fill='currentColor'/%3e%3c/svg%3e",E5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%204.75a6.25%206.25%200%201%200%200%2012.5%206.25%206.25%200%200%200%200-12.5M3.25%2011a7.75%207.75%200%201%201%2013.735%204.924l3.545%203.546a.75.75%200%201%201-1.06%201.06l-3.546-3.545A7.75%207.75%200%200%201%203.25%2011'%20fill='%23070F2C'/%3e%3c/svg%3e",Z2={box:"_box_1cmss_1",search:"_search_1cmss_5",searchDisabled:"_searchDisabled_1cmss_21",searchIcon:"_searchIcon_1cmss_38",clearIcon:"_clearIcon_1cmss_39"};function R2({id:e,search:l,setSearch:c,placeholder:n="Search",clearIconClearFn:t,customStyles:o,disabled:i=!1}){const r=typeof c=="function"&&typeof l=="string",s=o==null?void 0:o.customInputStyles,d=o==null?void 0:o.customIconStyles;return a.jsxs("div",{className:Z2.box,children:[r?a.jsx("input",{id:e,type:"text",className:q(Z2.search,i&&Z2.searchDisabled,"zap-content-medium"),placeholder:n,value:l,onChange:m=>{c(m.target.value)},style:s,disabled:i}):a.jsx("input",{id:e,type:"text",className:q(Z2.search,i&&Z2.searchDisabled,"zap-content-medium"),placeholder:n,style:s,disabled:i}),a.jsx("span",{children:a.jsx("img",{src:E5,alt:"search",className:Z2.searchIcon,style:d})}),r&&l.length!==0&&a.jsx("span",{onClick:()=>{typeof t=="function"&&t(),c("")},children:a.jsx("img",{src:i2,alt:"Clear Search",className:Z2.clearIcon,style:d})})]})}function Oe({filter:e,tableFilters:l,tableFilter:c,addFilters:n,removeFilters:t,resetFilters:o,filterDispatch:i}){var b,I;const[r,s]=g.useState(""),[d,m]=P.useMachine(C2.machine({id:e.id,closeOnSelect:!1})),u=C2.connect(d,m,P.normalizeProps),p=e.options.filter(v=>v.name?v.name.toLowerCase().includes(r.toLowerCase()):!1),h=c==null?void 0:c.values.length,x=()=>{o(c==null?void 0:c.key,i),u.setOpen(!1)},_=v=>{let z=!1;return l.forEach(y=>{y.values.forEach(j=>{if(j===v){z=!0;return}})}),z};return a.jsxs("div",{children:[a.jsxs("button",{className:q("zap-reset-btn",m0.filter,u.open&&m0.filterActive),...u.getTriggerProps(),children:[a.jsx(Te,{filter:e,tableFilter:c,selectedFilters:h}),a.jsx(k,{path:j2,svgClassName:m0.filterIcon2})]}),a.jsx("div",{...u.getPositionerProps(),className:m0.positioner,children:u.open&&a.jsxs("div",{...u.getContentProps(),className:m0.dropdown,onKeyDown:()=>{},children:[!((b=e.config)!=null&&b.hideSearch)&&a.jsx("div",{className:m0.dropdownSearch,children:a.jsx(R2,{id:"filter-search",search:r,setSearch:s,placeholder:((I=e.config)==null?void 0:I.placeholder)||"Search"})}),a.jsx("div",{className:m0.options,children:p.length===0?a.jsx("div",{className:m0.optionsEmpty,children:"No results found"}):p.map((v,z)=>a.jsx("div",{...u.getItemProps({value:v.value}),className:m0.option,children:a.jsx(De,{label:v.name,value:v.value,filterKey:e.key,addFilters:n,removeFilters:t,checked:_(v.value),filterDispatch:i,countryCode:v.country_code,customName:v.customName},v.value)},z))}),a.jsx("div",{className:m0.footerBox,children:a.jsxs("div",{className:m0.footer,children:[a.jsxs("div",{className:m0.selectedFilters,children:[h," Selected"]}),a.jsxs("button",{className:q("zap-reset-btn",m0.resetBtn),onClick:x,children:[a.jsx(k,{path:Pe,svgClassName:m0.resetIcon}),"Reset"]})]})})]})})]})}const $e={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},X3=new Map,e3=e=>{const l=X3.get(e);return l?Object.fromEntries(Object.entries(l.stores).map(([c,n])=>[c,n.getState()])):{}},Ze=(e,l,c)=>{if(e===void 0)return{type:"untracked",connection:l.connect(c)};const n=X3.get(c.name);if(n)return{type:"tracked",store:e,...n};const t={connection:l.connect(c),stores:{}};return X3.set(c.name,t),{type:"tracked",store:e,...t}},B5=(e,l={})=>(c,n,t)=>{const{enabled:o,anonymousActionType:i,store:r,...s}=l;let d;try{d=(o??($e?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return e(c,n,t);const{connection:m,...u}=Ze(r,d,s);let p=!0;t.setState=(_,b,I)=>{const v=c(_,b);if(!p)return v;const z=I===void 0?{type:i||"anonymous"}:typeof I=="string"?{type:I}:I;return r===void 0?(m==null||m.send(z,n()),v):(m==null||m.send({...z,type:`${r}/${z.type}`},{...e3(s.name),[r]:t.getState()}),v)};const h=(..._)=>{const b=p;p=!1,c(..._),p=b},x=e(t.setState,n,t);if(u.type==="untracked"?m==null||m.init(x):(u.stores[u.store]=t,m==null||m.init(Object.fromEntries(Object.entries(u.stores).map(([_,b])=>[_,_===u.store?x:b.getState()])))),t.dispatchFromDevtools&&typeof t.dispatch=="function"){const _=t.dispatch;t.dispatch=(...b)=>{_(...b)}}return m.subscribe(_=>{var b;switch(_.type){case"ACTION":if(typeof _.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return W3(_.payload,I=>{if(I.type==="__setState"){if(r===void 0){h(I.state);return}Object.keys(I.state).length!==1&&console.error(`
31
31
  [zustand devtools middleware] Unsupported __setState action format.
32
32
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
33
33
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
package/dist/index.d.ts CHANGED
@@ -159,6 +159,7 @@ declare interface BaseButtonProps {
159
159
  onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
160
160
  size?: BUTTON_SIZE;
161
161
  customStyles?: React_2.CSSProperties;
162
+ className?: string;
162
163
  btnType?: 'button' | 'reset' | 'submit';
163
164
  }
164
165
 
@@ -198,7 +199,7 @@ export declare const buildFilterQuery: (queryFilters: Record<string, any>, exclu
198
199
 
199
200
  export declare const buildTableQuery: (query: TBaseQuery) => Record<string, any>;
200
201
 
201
- export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, icon, btnType, }: ButtonProps): JSX_2.Element;
202
+ export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, className, icon, btnType, }: ButtonProps): JSX_2.Element;
202
203
 
203
204
  export declare namespace Button {
204
205
  var GroupAction: React_2.ForwardRefExoticComponent<GroupActionProps & React_2.RefAttributes<unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -25,21 +25,21 @@
25
25
  "@dnd-kit/utilities": "^3.2.2",
26
26
  "@popperjs/core": "^2.11.8",
27
27
  "@tanstack/react-table": "^8.20.6",
28
- "@zag-js/accordion": "^0.79.2",
29
- "@zag-js/checkbox": "^0.79.2",
30
- "@zag-js/color-picker": "^0.79.2",
31
- "@zag-js/combobox": "^0.79.2",
32
- "@zag-js/dialog": "^0.79.2",
33
- "@zag-js/menu": "^0.79.2",
34
- "@zag-js/pagination": "^0.79.2",
35
- "@zag-js/popover": "^0.79.2",
36
- "@zag-js/popper": "^0.79.2",
37
- "@zag-js/radio-group": "^0.79.2",
38
- "@zag-js/react": "^0.79.2",
39
- "@zag-js/select": "^0.79.2",
40
- "@zag-js/switch": "^0.79.2",
41
- "@zag-js/tabs": "^0.79.2",
42
- "@zag-js/tooltip": "^0.79.2",
28
+ "@zag-js/accordion": "^0.80.0",
29
+ "@zag-js/checkbox": "^0.80.0",
30
+ "@zag-js/color-picker": "^0.80.0",
31
+ "@zag-js/combobox": "^0.80.0",
32
+ "@zag-js/dialog": "^0.80.0",
33
+ "@zag-js/menu": "^0.80.0",
34
+ "@zag-js/pagination": "^0.80.0",
35
+ "@zag-js/popover": "^0.80.0",
36
+ "@zag-js/popper": "^0.80.0",
37
+ "@zag-js/radio-group": "^0.80.0",
38
+ "@zag-js/react": "^0.80.0",
39
+ "@zag-js/select": "^0.80.0",
40
+ "@zag-js/switch": "^0.80.0",
41
+ "@zag-js/tabs": "^0.80.0",
42
+ "@zag-js/tooltip": "^0.80.0",
43
43
  "clsx": "^2.1.1",
44
44
  "date-fns": "^4.1.0",
45
45
  "react": "^18.3.1",
@@ -64,7 +64,7 @@
64
64
  "@storybook/react": "^8.4.7",
65
65
  "@storybook/react-vite": "^8.4.7",
66
66
  "@storybook/test": "^8.4.7",
67
- "@types/node": "^22.10.2",
67
+ "@types/node": "^22.10.4",
68
68
  "@types/react": "^18.3.13",
69
69
  "@types/react-dom": "^18.3.1",
70
70
  "@vitejs/plugin-react-swc": "^3.7.2",
@@ -72,8 +72,8 @@
72
72
  "globals": "^15.14.0",
73
73
  "storybook": "^8.4.7",
74
74
  "storybook-css-modules-preset": "^1.1.1",
75
- "typescript": "5.6.3",
76
- "vite": "^6.0.6",
75
+ "typescript": "5.7.2",
76
+ "vite": "^6.0.7",
77
77
  "vite-plugin-checker": "^0.8.0",
78
78
  "vite-plugin-dts": "4.4.0",
79
79
  "vite-plugin-libcss": "^1.1.1"