1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4b8ae763-9458-4e23-884a-4cc41e088a8c",e._sentryDebugIdIdentifier="sentry-dbid-4b8ae763-9458-4e23-884a-4cc41e088a8c")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5851],{30407:function(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=30407,e.exports=t},33962:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/job-category",function(){return a(98490)}])},20612:function(e,t,a){"use strict";a.d(t,{Z:function(){return b}});var s=a(5311),n=a(71335),i=a(66840),l=a(94091),r=a(7437),o=a(68599),c=a(34700),d=a(55969),u=a(33557),m=e=>{let[t,a]=(0,i.useState)(!1),{t:n}=(0,d.Z)("common"),{components:l={},actionsProps:r,...m}=e,[p,x]=(0,i.useState)(),h=async()=>{if(r.editApiCall){var e;let{module:t}=r,s=null===(e=m.row.original)||void 0===e?void 0:e._id;await (0,o.Z)({action:"getListById",parameters:[s],module:r.updateModule?r.updateModule:t,common:!0}).then(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x(e.data),a(!0)})}else a(!0),x(m.row.original)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"cursor-pointer","data-tip":n("common:editTooltip"),children:(0,s.jsx)(c.Z,{onClick:h})}),(0,s.jsx)(u.Z,{effect:"solid"}),l&&t&&(0,s.jsx)(l,{open:t,setOpen:a,title:"Edit ".concat(null==r?void 0:r.title),editData:p})]})},p=a(12149),x=a(61876),h=a(70856),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{t}=(0,d.Z)("common"),a=(0,x.useRouter)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"data-tip":t("permissionTooltip"),children:(0,s.jsx)(p.Z,{onClick:()=>{a.push("".concat(h.ZP.permission,"?id=").concat(e._id))}})}),(0,s.jsx)(u.Z,{effect:"solid"})]})},v=a(64868),f=e=>
1{let[t,a]=(0,i.useState)(!1),{components:n={},title:l="Update",viewRedirectUrl:r}=e||{},{original:o={}}=e.row||{},[c,m]=(0,i.useState)(),{t:p}=(0,d.Z)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"data-tip":p("viewTooltip"),className:"cursor-pointer text-primary",children:(0,s.jsx)(v.Z,{size:"14",onClick:()=>{r?window.open(r,"_blank"):(a(!0),m(o))}})}),(0,s.jsx)(u.Z,{effect:"solid"}),n&&(0,s.jsx)(n,{open:t,setOpen:a,title:l,data:c,userDetails:o})]})},j=a(48133),y=a(33894),b=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{row:a={},isAllowDelete:i=!0,additionalText:o}=t,{original:c={}}=a,{showPermission:d=!1,canView:u,canSeo:p=!1,deleteModule:x,module:h,canEdit:v=!0}=t.actionsProps||{},{permission:b,modulesList:w,functionality:N}=(0,l.Z)(),C=e=>(0,n.OT)(b,w[h],N[e](w[h]));return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[u&&(0,s.jsx)(f,{...t}),p&&(0,s.jsx)(y.Z,{onClick:()=>{t.onClickSEO()},children:(0,s.jsx)(j.Z,{})}),C("update")&&v&&(0,s.jsx)(m,{...t}),(C("destroy")||C("delete"))&&!("roles"===h&&(null==c?void 0:c.canDel)!==!0)&&i&&(0,s.jsx)(r.Z,{data:c,module:h,getList:t.getList,deleteModule:x,additionalText:o}),(e="updatePermission",(0,n.OT)(b,w.permission,N[e]("permission"))&&d&&(0,s.jsx)(g,{...c}))]})}},7437:function(e,t,a){"use strict";var s=a(5311),n=a(68599),i=a(79832),l=a(27615),r=a(55969),o=a(66840),c=a(33557),d=a(13906),u=a(61876);t.Z=e=>{var t,a;let{data:m,module:p,getList:x,deleteModule:h,additionalText:g,runAmplitude:v=()=>{}}=e,[f,j]=(0,o.useState)(!1),{locale:y}=(0,u.useRouter)(),{t:b}=(0,r.Z)("common"),w=async()=>{let e=m._id;await (0,n.Z)({action:"delete",data:{ids:[e]},module:h||p,common:!0}).then(async e=>((0,d.Z)(e.message,"success"),v(),x(),j(!1),!1))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"cursor-pointer","data-tip":b("common:deleteTooltip"),children:(0,s.jsx)(l.Z,{onClick:()=>{j(!0)}})}),(0,s.jsx)(c.Z,{effect:"solid"}),(0,s.jsx)(i.Z,{deleteModal:f,setDeleteModal:j,confirmationCode:(null==m?void 0:null===(t=m.company)||void 0===t?void 0:t.compNm)||(null==m?void 0:m.name)||(null==m?void 0:m.title)||(null==m?void 0:m.nm)||(null==m?void 0:null===(a=m.label)||void 0===a?void 0:a[y]),onClick:w,additionalText:g})]})}},38206:function(e,t,a){"use strict";var s=a(52411),n=a(75413),i=a(66840),l=a(1509);t.Z=()=>{let e={search:"",offset:s.U$,sort:s.yw},[t,a]=(0,l.x)(e),[r,o]=(0,i.useState)(s.IV),c=e=>{a(t=>{t.search=e})},d=(0,n.Z)(e=>{c(e)});return(0,i.useEffect)(()=>{o(1),a(e)},[]),{pageSizeChange:(e,t)=>
1{t(e),a(t=>{t.limit=Number.parseInt(e,s.oY),t.offset=s.U$}),o(1)},crtPage:r,clickNextPage:(e,t)=>{a(a=>{a.offset=t*e}),o(e+1)},clickPreviousPage:(e,t)=>{a(a=>{a.offset=t*(e-2)}),o(e-1)},changeSearch:e=>{d.debounced(e)},filter:t,setCrtPage:o,defaultApiPayload:e,setFilter:a}}},23724:function(e,t,a){"use strict";a.d(t,{Z:function(){return j}});var s=a(5311),n=a(66840),i=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"8",viewBox:"0 0 13 8",children:(0,s.jsxs)("g",{id:"move",transform:"translate(-216.801 -202.823)",children:[(0,s.jsx)("circle",{id:"Ellipse_689","data-name":"Ellipse 689",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(216.801 202.823)",fill:"#5e656f"}),(0,s.jsx)("circle",{id:"Ellipse_689-2","data-name":"Ellipse 689",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(221.801 202.823)",fill:"#5e656f"}),(0,s.jsx)("circle",{id:"Ellipse_689-3","data-name":"Ellipse 689",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(226.801 202.823)",fill:"#5e656f"}),(0,s.jsx)("circle",{id:"Ellipse_689-4","data-name":"Ellipse 689",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(216.801 207.823)",fill:"#5e656f"}),(0,s.jsx)("circle",{id:"Ellipse_689-5","data-name":"Ellipse 689",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(221.801 207.823)",fill:"#5e656f"}),(0,s.jsx)("circle",{id:"Ellipse_689-6","data-name":"Ellipse 689",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(226.801 207.823)",fill:"#5e656f"})]})}),l=a(52411),r=a(55969),o=a(90823),c=a(27443),d=a(68588),u=a(40983),m=a(57526),p=a(61876),x=a.n(p),h=a(70856),g=a(89512);let v=()=>(0,s.jsx)("div",{}),f=()=>(0,s.jsx)("div",{className:"cursor-pointer",children:(0,s.jsx)(i,{})});var j=e=>{let{columns:t,data:a=[],showPagination:i=!0,onPageSizeChange:p,onClickNextPage:j,currentPage:y,onClickPreviousPage:b,rowSelection:w=!0,totalPages:N,customHeight:C="",manualHeight:Z="",loading:S=!1,onMove:k,setCrtPage:_,mainClassName:I="",dnd:P,total:E,topClass:D="",drawerPagination:L=!1,noDataImg:M="",noDataMsg:O="",noDataClass:T="",noDataChildren:H,paginationData:z}=e,{router:V}=x(),[A,F]=(0,n.useState)(null),[R,K]=(0,n.useState)(!1),B=(0,n.useMemo)(()=>t.filter(e=>!e.isHidden).map(e=>"actions"===e.accessor?{...e,headerClassName:R?e.headerClassName:"",className:R?e.className:""}:e),[t,R]),U=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=()=>{U.current&&K(U.current.scrollWidth>U.current.clientWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[B]);let{getTableProps:q,getTableBodyProps:G,headerGroups:W,prepareRow:X,page:$,setPageSize:J,state:{pageSize:Q}}=(0,c.useTable)({columns:B,data:a,initialState:{pageIndex:0,pageSize:(null==z?void 0:z.limit)||(null==z?void 0:z.perPage)||20}},c.usePagination,c.useRowSelect,e=>{e.visibleColumns.push(e=>[...e,...P?[{id:"drag",Header:v,Cell:f}]:[]])}),{t:Y}=(0,r.Z)("common"),[ee,et]=n.useState(1);return((0,n.useEffect)(()=>{et(y||1)},[y]),(0,n.useEffect)(()=>{let e=(null==z?void 0:z.limit)||(null==z?void 0:z.perPage);e&&J(e)},[null==z?void 0:z.limit,null==z?void 0:z.perPage,J]),S)?(0,s.jsx)("div",{className:"table-height no-data justify-center ".concat(C),children:(0,s.jsx)(u.v,{size:30,className:"text-primary!"})}):(!a||(0,g.ZP)(a))&&!S?M&&O?(0,s.jsxs)("div",{className:"flex items-center flex-col gap-y-4 ".concat(T),children:[(0,s.jsx)(d.Z,{src:"images/".concat(M),alt:""}),(0,s.jsx)("h1",{className:"text-2xl font-bold text-center",children:O}),H]}):(0,s.jsx)("div",{className:"absolute ".concat(D||"top-[50%]"," left-[50%] translate-x-[-50%] translate-y-[-50%]"),children:(0,s.jsx)("div",{className:"text-2xl p-4 font-semibold",children:Y("noData")})}):(0,s.jsxs)("div",{className:"".concat(R?"overflow-x-auto":""," bg-white border rounded-lg border-gray-50 ").concat(I),children:[(0,s.jsx)("div",{ref:U,className:"".concat(Z||"table-height"," ").concat(C," ").concat(0===a.length?"no-data":""),children:a.length>0&&(0,s.jsx)(o.Z5,{onDragEnd:e=>{if(!e.destination)return;let t=[...a],[s]=t.splice(e.source.index,1),n=e.destination.index+1;t.splice(e.destination.index,0,s),"function"==typeof k&&k({id:s.id||s._id,seq:n})},children:(0,s.jsxs)("table",{className:"w-full text-sm",...q(),children:[(0,s.jsx)("thead",{className:"bg-thead",children:W.map(e=>(0,s.jsx)("tr",{...e.getHeaderGroupProps(),children:e.headers.map(e=>(0,s.jsx)("th",{className:"text-sm px-3 text-left bg-gray-50! visible border-b h-[50px] border-thin-gray font-semibold whitespace-nowrap sticky top-0 ".concat(e.headerClassName),...e.getHeaderProps(),children:e.render("Header")},g.Ki))},g.Ki))}),(0,s.jsx)(o.bK,{droppableId:"tbody",children:e=>(0,s.jsx)("tbody",{ref:e.innerRef,...e.droppableProps,...G(),children:$.map((e,t)=>(X(e),(0,s.jsx)(o._l,{draggableId:e.original.id||e.original._id,index:t,children:a=>(0,s.jsx)("tr",{ref:a.innerRef,...a.draggableProps,...e.getRowProps(),className:"border-b border-thin-gray",children:e.cells.map(e=>(0,s.jsx)("td",{..."drag"===e.column.id?a.dragHandleProps:{},className:"relative bg-white text-sm text-foreground font-normal px-3 h-[50px] border-thin-gray whitespace-nowrap ".concat(e.column.className),style:{zIndex:t===A?10:0},onMouseEnter:()=>F(t),...e.getCellProps(),children:e.render("Cell")},g.Ki))})},e.original._id)))})})]})})}),i&&(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 pagination",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("select",{value:Q,className:"px-1 py-1 text-sm bg-transparent border rounded-md outline-none h-9 border-primary-border",onChange:e=>{let{target:t}=e;p(t.value,J)},children:[((null==z?void 0:z.pageOptionsList)||l.TJ).map(e=>(0,s.jsxs)("option",{className:"text-black text-sm!",value:e,children:[(0,s.jsx)("span",{className:"text-sm!",children:Y("showing")})," ",e]},e)),(null==V?void 0:V.route)===h.ZP.master&&(0,s.jsxs)("option",{className:"text-primary",value:100,children:[(0,s.jsx)("span",{className:"text-sm!",children:Y("show")})," ",100]},100)]}),!L&&(0,s.jsx)("span",{className:"text-xs",children:Y("recordsPerPage")})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[!!E&&!L&&(0,s.jsx)("span",{className:"text-xs",children:"".concat(Y("showing")," ").concat(isNaN(Q*(y-1)+1)?"-":Q*(y-1)+1," to ").concat(isNaN(y===N?E:Q*y)?"-":y===N?E:Q*y," of ").concat(E," ").concat(Y("records"))}),(0,s.jsx)(m.Z,{title:Y("previous"),kind:"primary",className:"cursor-pointer",onClick:()=>b(y),disabled:1===y}),(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 text-xs w-auto",children:[Y("page"),(0,s.jsx)("input",{className:" w-10 text-center h-10 border rounded-lg border-light-gray p-1 outline-none bg-transparent appearance-none numberInput",maxLength:3,pattern:"([0-9]|[0-9]|[0-9])",type:"number",onKeyDown:e=>
1{["e","+","-"].includes(e.key)&&e.preventDefault()},onKeyPress:e=>{"Enter"===e.key&&(et(Number.parseInt(e.target.value,10)||1),_(Number.parseInt(e.target.value||1,10)))},defaultValue:y,value:ee,onChange:e=>{e.target.value<=N&&"0"!==e.target.value&&et(Number.parseInt(e.target.value,10))}}),Y("of")," ",N]}),(0,s.jsx)(m.Z,{title:Y("next"),kind:"primary",className:"cursor-pointer",onClick:()=>j(y),disabled:y===N})]})]})]})}},10793:function(e,t,a){"use strict";var s=a(5311);a(66840),t.Z=e=>(0,s.jsxs)("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_24375_18094)",children:[(0,s.jsx)("path",{d:"M5.25 7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V13.7498C15.75 14.0124 15.6983 14.2725 15.5977 14.5152C15.4972 14.7579 15.3499 14.9784 15.1641 15.1641C14.9784 15.3499 14.7579 15.4972 14.5152 15.5977C14.2725 15.6983 14.0124 15.75 13.7498 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_24375_18094",children:(0,s.jsx)("rect",{width:18,height:18,fill:"white"})})})]})},12149:function(e,t,a){"use strict";var s=a(5311);a(66840),t.Z=e=>{let{...t}=e;return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",...t,children:[(0,s.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,s.jsx)("path",{d:"M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 1 1 14 0v1zm-2 0V9A5 5 0 0 0 7 9v1h10zm-6 4v4h2v-4h-2z"})]})}},98490:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return K},default:function(){return B}});var s=a(5311),n=a(71335),i=a(23724),l=a(55969),r=a(66840),o=a(92543),c=a(57526),d=a(56572),u=a(6785),m=a(60551),p=a(31126),x=a.n(p),h=a(36602),g=a(70306),v=(e,t)=>g.Ry({nm:g.Z_().trim().required(e("validate:categoryNameRequired")),fileId:t?g.Z_():g.Z_().required(e("validate:categoryImageReq"))}),f=a(66442),j=a(89512),y=a(28570),b=a(81984),w=a(68599),N=a(13906),C=(e,t,a,s,n,i)=>{let[l,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(),[u,m]=(0,r.useState)(),[p,x]=(0,r.useState)();return{onSubmit:async n=>{let{_id:l,...r}=n;o(!0);try{await (0,w.Z)({module:"category",data:{...r},parameters:[l],common:!0,action:l?"update":"create"}).then(function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,N.Z)(n.message,"success"),i(),a(),e(!1),s(),o(!1),t({})})}catch(e){o(!1)}},loader:l,onMasterChange:(e,t,a)=>{n(t,e.map(e=>({[a]:e.label,id:e.value})))},selectSkill:c,selectIndustry:u,selectDomain:p,setSelectIndustry:m,setSelectSkill:d,setSelectDomain:x,arrayStateValueSet:(e,t,a)=>e.map(e=>({value:e[t],label:e[a]})),arrayFormValueSet:e=>e.map(e=>(delete e._id,e))}},Z=a(22280);let S={_id:void 0,nm:void 0,fileId:void 0,skillIds:void 0,ind:void 0,domain:void 0};var k=e=>{var t,a;let{open:n,setOpen:i,editData:o,getList:c,setSearchValue:d}=e,{t:u}=(0,l.Z)("jobCategory"),[p,g]=r.useState(),{register:w,handleSubmit:N,setValue:k,clearErrors:_,formState:{errors:I={}},reset:P}=(0,h.cI)({defaultValues:S,mode:"onTouched",resolver:(0,m.X)(v(u,o))}),E=()=>{P(S),g()},{onSubmit:D,arrayStateValueSet:L,arrayFormValueSet:M,loader:O,...T}=C(i,o,c,E,k,d);return r.useEffect(()=>{x()(o)||Object.entries(S).forEach(e=>{var t,a,s;let[n,i]=e;if(k(n,(null==o?void 0:o[n])||i),g((null==o?void 0:null===(t=o.fileId)||void 0===t?void 0:t.uri)?null==o?void 0:null===(a=o.fileId)||void 0===a?void 0:a.uri:o.defaultIcon),o.domain){let e=L(o.domain,"id","nm");T.setSelectDomain(e),k("domain",M(o.domain))}if(o.ind){let e=L(o.ind,"id","nm");T.setSelectIndustry(e),k("ind",M(o.ind))}if(o.skillIds){let e=L(o.skillIds,"id","nm");T.setSelectSkill(e),k("skillIds",M(o.skillIds))}k("fileId",null===(s=o.fileId)||void 0===s?void 0:s._id)})},[o,P,k]),r.useEffect(()=>{x()(o)&&E()},[o,P]),r.useEffect(()=>{x()(o)&&n&&E()},[n]),(0,s.jsx)(f.Z,{title:u(o?"editCategory":"addCategory"),modalFooter:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Z.ArthaButton,{onClick:()=>{E(),i(!1)},title:u("close"),primary:!1}),(0,s.jsx)(Z.ArthaButton,{title:u(o?"editCategory":"addCategory"),onClick:N(D),loading:O})]}),open:n,setOpen:i,children:(0,s.jsxs)("div",{className:"grid gap-4",children:[(0,s.jsx)(b.Z,{placeholder:u("categoryName"),label:"".concat(u("
1categoryName")," "),rest:w("nm"),mandatory:!0,onInput:e=>(e.target.value=(0,j.fm)(e.target.value),e),error:null===(t=I.nm)||void 0===t?void 0:t.message,autoFocus:!0}),(0,s.jsx)(y.Z,{img:p,setImage:g,rest:w("fileId"),setValue:k,clearError:_,className:" border border-white rounded-lg cursor-pointer",maxSize:2e6,errors:null===(a=I.fileId)||void 0===a?void 0:a.message,idKey:"fileId",label:u("categoryImagetext"),noMandatory:!!o})]})})},_=a(38206),I=a(97738),P=a(15337),E=a(20612),D=e=>{let{width:t=36,height:a=36,...n}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:a,viewBox:"0 0 110 110",...n,fill:"currentColor",children:(0,s.jsxs)("g",{id:"Group_15742","data-name":"Group 15742",transform:"translate(0.018 0.078)",children:[(0,s.jsx)("rect",{id:"_732221","data-name":"732221",width:t,height:a,rx:"6",transform:"translate(-0.018 -0.078)",fill:"#e6f3fe"}),(0,s.jsxs)("g",{id:"Group_15741","data-name":"Group 15741",transform:"translate(0.781 0.121)",children:[(0,s.jsx)("path",{id:"Path_20321","data-name":"Path 20321",d:"M128.5,105.361a3.681,3.681,0,0,0-2.973-3.743c-2.1-.415-4.237-.659-6.363-.966-1.873-.27-3.751-.5-5.621-.787-1.8-.276-3.581-.682-5.385-.884-2.37-.264-4.717-.656-7.065-1.054-3.311-.56-5.416,1.259-5.377,4.356.1,7.724.031,15.448.031,23.175q0,11.957,0,23.917a2.153,2.153,0,0,0,2.271,2.342c2.16.028,4.322-.009,6.482.023.654.009.87-.222.853-.864-.031-1.523-.074-3.052.006-4.57.134-2.521-.35-5.05.347-7.565a3.643,3.643,0,0,1,3.368-2.794c1.773-.037,3.552-.108,5.314.02,1.194.085,2.472.094,3.439,1.088a4.348,4.348,0,0,1,1.12,3.194q.038,5.264-.006,10.523c-.006.745.222.98.969.969,2.549-.04,5.1-.048,7.653.006.878.017,1.145-.233,1.137-1.128-.145-15.087.219-30.174-.2-45.259M108.367,130.8a17.664,17.664,0,0,1-1.9.011v.011c-.566,0-1.134.037-1.694-.009a1.654,1.654,0,0,1-1.6-1.753,1.579,1.579,0,0,1,1.694-1.626c1.128-.028,2.256-.031,3.385,0a1.4,1.4,0,0,1,1.535,1.5c.045,1.08-.432,1.753-1.418,1.864M108.3,124c-.594.06-1.2.011-1.8.011v.009c-.531,0-1.06.023-1.589,0a1.671,1.671,0,0,1-1.748-1.722,1.6,1.6,0,0,1,1.756-1.671c1.091-.02,2.188-.026,3.279.006a1.412,1.412,0,0,1,1.577,1.563A1.554,1.554,0,0,1,108.3,124m-.381-6.786c-.986.017-1.975.026-2.964,0a1.671,1.671,0,0,1-1.787-1.785c.02-.989.685-1.583,1.822-1.608.529-.014,1.057,0,1.586,0,.46,0,.918-.009,1.378,0,1.3.02,1.816.483,1.827,1.637s-.588,1.739-1.861,1.762m.455-6.835a16.355,16.355,0,0,1-1.9.014v.011c-.563,0-1.131.037-1.691-.006a1.656,1.656,0,0,1-1.611-1.745,1.577,1.577,0,0,1,1.682-1.637c1.128-.026,2.259-.031,3.387,0a1.4,1.4,0,0,1,1.543,1.489c.048,1.08-.423,1.756-1.407,1.87m11.168,20.435c-.213.017-.426.023-.642.023-.35,0-.7-.014-1.051-.014s-.7.011-1.046.011h-.017c-.21,0-.421,0-.628-.023a1.733,1.733,0,0,1-1.7-1.645,1.671,1.671,0,0,1,1.836-1.736c1.057-.023,2.117-.026,3.174,0A1.673,1.673,0,0,1,121.261,129a1.827,1.827,0,0,1-1.714,1.813m-5.081-8.525a1.674,1.674,0,0,1,1.8-1.665c.529-.02,1.06,0,1.589,0,.563,0,1.128-.023,1.691.006a1.666,1.666,0,0,1,1.711,1.537,1.73,1.73,0,0,1-1.472,1.8,26.085,26.085,0,0,1-3.8.011,1.637,1.637,0,0,1-1.52-1.685m5.178-5.1a29.177,29.177,0,0,1-3.595-.006,1.683,1.683,0,0,1,.156-3.362c.207-.009.415-.011.622-.011.355,0,.713.009,1.069.009.159,0,.318,0,.477-.006.369,0,.742-.009,1.111.009a1.68,1.68,0,0,1,1.776,1.577,1.778,1.778,0,0,1-1.617,1.79m.031-6.809a28.1,28.1,0,0,1-3.595,0,1.686,1.686,0,1,1,.2-3.365c.529-.02,1.057,0,1.586,0,.566,0,1.131-.023,1.694.006a1.669,1.669,0,0,1,1.7,1.546,1.775,1.775,0,0,1-1.586,1.816",transform:"translate(-68.517 -70.025)",fill:"#63b9f9"}),(0,s.jsx)("path",{id:"Path_20322","data-name":"Path 20322",d:"M238.66,177.71a1.609,1.609,0,0,0-.148-.916,5.341,5.341,0,0,0-3.9-2.62c-2.077-.363-4.138-.825-6.2-1.261-2.549-.539-5.093-1.109-7.644-1.642-1.276-.264-1.441-.1-1.441,1.248v30.52c0,1.31,0,1.3,1.259,1.12a7.3,7.3,0,0,1,1.06-.04c4.5,0,8.994.006,
113.49-.011,1.628-.006,3.521-1.724,3.524-3.189q.013-11.606,0-23.209m-12.439,2.875a8.366,8.366,0,0,1,4.484,0,1.5,1.5,0,0,1,1.12,1.8,1.525,1.525,0,0,1-1.719,1.369c-.563-.034-1.128-.006-1.694-.006-.529,0-1.06-.028-1.589.006a1.522,1.522,0,0,1-1.716-1.367,1.5,1.5,0,0,1,1.114-1.806m-.034,6.8a8.394,8.394,0,0,1,4.484-.023,1.625,1.625,0,0,1-.529,3.184c-.563-.026-1.128-.006-1.694-.006s-1.131-.02-1.694.006a1.624,1.624,0,0,1-.568-3.161m5.63,8.636a1.507,1.507,0,0,1-1.66,1.313c-.563-.028-1.128,0-1.694,0s-1.131-.026-1.694,0a1.508,1.508,0,0,1-1.657-1.315,1.491,1.491,0,0,1,1.063-1.837,8.076,8.076,0,0,1,4.581,0,1.49,1.49,0,0,1,1.06,1.84",transform:"translate(-157.001 -122.523)",fill:"#a4d7fc"})]})]})})},L=a(68588),M=a(22308),O=a.n(M),T=a(10793),H=a(47832),z=e=>{let{getList:t,t:a,setOpen1:i,setEditId:l,permission:r,primaryColor:o,setSearchValue:c}=e,d=e=>(0,n.OT)(r.permission,r.modulesList.category,r.functionality[e]("category")),u=e=>(0,s.jsx)(k,{...e,getList:t,setSearchValue:c});return[{Header:a("common:image"),accessor:"fileId",Cell:e=>{var t,a,n,i;let{row:l}=e;return(null===(t=l.original.fileId)||void 0===t?void 0:t.uri)?(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(L.Z,{src:"".concat("https://cdn-static.arthajobboard.com/prod-public-assets").concat(null===(a=l.original.fileId)||void 0===a?void 0:a.uri),height:"36px",width:"36px",alt:"not found"})}):(null===(n=l.original)||void 0===n?void 0:n.defaultIcon)?(0,s.jsx)(L.Z,{src:"".concat("https://cdn-static.arthajobboard.com/prod-public-assets").concat(null===(i=l.original)||void 0===i?void 0:i.defaultIcon),height:"36px",width:"36px",alt:"not found",style:{filter:O().hexToFilter(o).color}}):(0,s.jsx)("div",{className:"text-primary",children:(0,s.jsx)(D,{height:36,width:36})})}},{Header:a("master:name"),accessor:"nm"},{Header:a("slug"),accessor:"slug"},...d("active")?[{Header:a("common:active"),accessor:"isActive",Cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(P.Z,{row:t,module:"category"})})}}]:[],...d("update")||d("destroy")?[{Header:a("common:actions"),accessor:"actions",Cell:e=>(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(E.Z,{...e,permission:r,getList:t,components:u,onClickSEO:()=>{var t;i(!0),l(null==e?void 0:null===(t=e.row)||void 0===t?void 0:t.original)},actionsProps:{editApiCall:!0,title:"category",module:"category",canSeo:!0}}),(0,s.jsx)(H.Z,{message:a("common:copyRoute"),children:(0,s.jsx)(Z.ArthaButton,{onClick:()=>{var t;let s=window.location.origin,n=null===(t=e.row.original)||void 0===t?void 0:t.slug,i="".concat(s,"/job-category/").concat(n);(0,j.vQ)(i),(0,N.Z)(a("copySuccess"))},textbtn:!0,className:"text-gray-400 hover:text-primary transition-colors focus:outline-none",type:"button",title:(0,s.jsx)(T.Z,{size:18})})})]})}]:[]]},V=a(23634),A=e=>{let{permission:t,t:a}=e,[s,n]=(0,r.useState)([]),[i,l]=(0,r.useState)(!1),[o,c]=(0,r.useState)(),[d,u]=(0,r.useState)(),[m,p]=(0,r.useState)(""),[x,h]=(0,r.useState)(""),[g,v]=(0,r.useState)(),{pageSizeChange:f,clickNextPage:y,clickPreviousPage:b,setCrtPage:N,crtPage:C,filter:Z,defaultApiPayload:S,setFilter:k}=(0,_.Z)(s),{masterPagination:P={},isPaginationLoading:E}=(0,V.Z)(),{perPageItem:D,pageOptionsList:L}=P,[M,O]=(0,r.useState)(!1),[T,H]=(0,r.useState)(),A=(0,r.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!E){l(!0);try{var t;await (0,w.Z)({action:"jobCategoryList",data:{search:e,searchColumns:["nm"],limit:null!==(t=null==Z?void 0:Z.limit)&&void 0!==t?t:D,page:C}}).then(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I.m.set("limit",null==Z?void 0:Z.limit);let{data:t,paginator:a}=e.data;return u(a.pageCount),n(t),v({...a,pageOptionsList:L}),l(!1)})}catch(e){l(!1)}}},[C,Z,E,D]),F=(0,r.useMemo)(()=>z({getList:A,setSearchValue:p,primaryColor:x,t:a,permission:t,open1:M,setOpen1:O,setEditId:H}),[t]);return(0,r.useEffect)(()=>{A(m)},[A,E]),(0,r.useEffect)(()=>{h(getComputedStyle(document.documentElement).getPropertyValue("--primary-color"))},[]),{categoryData:s,pagination:o,setSearchValue:p,getCategoryList:A,loader:i,setPagination:c,serchValue:m,pageSizeChange:f,clickNextPage:y,clickPreviousPage:b,setCrtPage:N,crtPage:C,filter:Z,defaultApiPayload:S,setFilter:k,totalPages:d,handleSearch:()=>(0,j.Ds)(e=>{A(e),p(e),N(1)},300),columns:F,paginator:g,open1:M,setOpen1:O,editId:T,setEditId:H}},F=e=>{var t,a,m,p;let{permission:x}=e,[h,g]=(0,r.useState)(!1),{t:v}=(0,l.Z)("jobCategory"),f=A({t:v,permission:x});return(0,s.jsxs)(o.Z,{title:v("sidebar:jobCategory"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-7 mb-5 justify-between",children:[(0,s.jsx)(d.Z,{placeholder:v("searchCategoryName"),smHeight:!0,onChange:f.handleSearch(!0),value:f.serchValue}),(0,n.OT)(null==x?void 0:x.permission,null===(p=x.modulesList)||void 0===p?void 0:p.category,x.functionality.add("category"))&&(0,s.jsx)(c.Z,{onClick:()=>g(!0),title:v("addCategory")})]}),(0,s.jsx)(i.Z,{columns:f.columns,data:f.categoryData,setCrtPage:f.setCrtPage,pagination:f.paginator,onPageSizeChange:f.pageSizeChange,onClickNextPage:f.clickNextPage,onClickPreviousPage:f.clickPreviousPage,currentPage:f.crtPage,totalPages:f.totalPages,loading:f.loader,total:null===(t=f.paginator)||void 0===t?void 0:t.itemCount,paginationData:f.paginator}),(0,s.jsx)(u.Z,{permission:x,open:f.open1,seoSlug:null===(a=f.editId)||void 0===a?void 0:a.slug,seoId:null===(m=f.editId)||void 0===m?void 0:m._id,setOpen:f.setOpen1,categoryDetail:f.editId,title:v("common:seoManagement"),module:"category"}),(0,s.jsx)(k,{open:h,setOpen:g,getList:f.getCategoryList,setSearchValue:f.setSearchValue})]})},R=a(94091),K=!0,B=()=>{let e=(0,R.Z)();return(0,s.jsx)(F,{permission:e})}},66442:function(e,t,a){"use strict";var s=a(5311),n=a(22280);a(66840),t.Z=e=>{let{open:t,setOpen:a=()=>{},title:i,width:l="max-w-xl",children:r,modalFooter:o,setEditData:c=()=>{},onClose:d=()=>{}}=e;
1return(0,s.jsx)(n.ArthaDrawer,{open:t,setOpen:()=>{d(),c({}),a(!1)},title:i,width:l,showFooter:!!o,modalFooter:o,children:r})}},81984:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var s=a(5311),n=a(8478),i=a.n(n);a(66840);var l=e=>{let{type:t="text",placeholder:a,label:n,onInput:l,onChange:r,error:o,disabled:c,maxLength:d,onKeyDown:u,onKeyPress:m,className:p,mandatory:x=!1,min:h,value:g,rest:v,id:f,smHeight:j,labelClass:y,parentClass:b="",isCurrencyShow:w=!1,primaryCurrency:N="",...C}=e,Z=e=>("number"===t||"NUMBER"===t)&&["+","-","E","e"].includes(e.key)?e.preventDefault():i()(u)&&"Enter"===e.key?u(e):void 0;return(0,s.jsxs)("div",{className:"w-full text-left ".concat(b),children:[n&&(0,s.jsxs)("label",{className:"inline-block normal-case mb-1 text-sm text-black w-full ".concat(y),children:[n,x&&(0,s.jsx)("span",{className:"text-red pl-0.5",children:"*"})]}),w&&N?(0,s.jsxs)("div",{className:"input-container",children:[(0,s.jsx)("span",{className:"currency-prefix font-bold",children:N}),(0,s.jsx)("input",{type:t,placeholder:a,className:"bg-white focus:outline-none rounded-md pl-11 pr-3 ".concat(j?"h-9":"h-11"," text-xs! sm:text-sm! placeholder:text-gray-200 placeholder:font-normal w-full transition text-black border border-gray-50 ").concat(o?"border-red focus:border-red":"border-light-gray focus:border-primary"," ").concat(p," ").concat(c&&"bg-disabled-gray"),onInput:l,onChange:r,maxLength:d,disabled:c,onKeyDown:Z,onKeyPress:m,min:h,value:g,id:f,...v,...C})]}):(0,s.jsx)("input",{type:t,placeholder:a,className:"bg-white focus:outline-none rounded-md px-3 ".concat(j?"h-9":"h-11"," text-xs! sm:text-sm! placeholder:text-gray-200 placeholder:font-normal w-full transition text-black border border-gray-50 ").concat(o?"border-red focus:border-red":"border-light-gray focus:border-primary"," ").concat(p," ").concat(c&&"bg-disabled-gray"),onInput:l,onChange:r,maxLength:d,disabled:c,onKeyDown:Z,onKeyPress:m,min:h,value:g,id:f,...v,...C}),o&&(0,s.jsx)("p",{className:"mt-1 text-xs font-medium text-red",children:o})]})}},56572:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var s=a(5311),n=a(26214),i=a(66840),l=a(4088),r=e=>{let{type:t="text",placeholder:a,label:r,className:o,onChange:c,iconClassName:d="",parentClass:u="",smHeight:m=!1,...p}=e,[x,h]=i.useState(""),g=e=>{var t,a;c&&c(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value),h(null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.value)};return i.useEffect(()=>{void 0===p.value?h(""):x!==p.value&&h(p.value)},[p.value]),(0,s.jsxs)("div",{className:"text-left ".concat(u),children:[r&&(0,s.jsx)("label",{className:"text-xs sm:text-sm font-medium mb-2 inline-block text-foreground",children:r}),(0,s.jsxs)("div",{className:"relative flex items-center",children:[(0,s.jsx)("div",{className:"absolute ".concat(m?"top-2":"top-3"," left-2.5 ").concat(d),children:(0,s.jsx)(n.Z,{size:"14.314",className:"text-gray-300"})}),(0,s.jsx)("input",{value:x,type:t,placeholder:a,onChange:g,className:"bg-white focus:outline-none px-10 ".concat(m?"h-9":"h-11"," text-xs sm:text-sm leading-none rounded-md placeholder:text-gray-200 placeholder:font-normal font-normal! w-full focus:border focus:border-primary transition border border-gray-50 ").concat(o)}),(0,s.jsx)("button",{className:"absolute right-2.5 top-[5px]",onClick:()=>{g(),h("")},children:x&&(0,s.jsx)(l.Z,{className:"opacity= 0.2"})})]})]})}},15337:function(e,t,a){"use strict";var s=a(5311),n=a(68599),i=a(66840),l=a(13906);t.Z=e=>{var t,a,r;let{row:o={},refreshList:c=()=>{},module:d,disabled:u}=e,[m,p]=(0,i.useState)(null===(t=o.original)||void 0===t?void 0:t.isActive),x=null===(a=o.original)||void 0===a?void 0:a._id,h=async()=>{try{await (0,n.Z)({module:d,data:{isActive:!m},parameters:[x],common:!0,action:"partialUpdateId"}).then(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"SUCCESS"===e.code&&(p(!m),(0,l.Z)(null==e?void 0:e.message,"success"),c()),!1})}catch(e){console.error("Toggle error",e)}};return(0,i.useEffect)(()=>{var e;p(null===(e=o.original)||void 0===e?void 0:e.isActive)},[null===(r=o.original)||void 0===r?void 0:r.isActive]),(0,s.jsx)("div",{children:(0,s.jsxs)("label",{"aria-label":"toggle",className:"switch",children:[(0,s.jsx)("input",{className:"toggle",type:"checkbox",onChange:h,checked:m,disabled:u}),(0,s.jsx)("span",{className:"slider round"})]})})}}},function(e){e.O(0,[5062,3557,1335,1603,6602,4658,8505,4872,1502,2308,767,8433,2543,4351,6785,2888,9774,179],function(){return e(e.s=33962)}
1),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.