PageSourceSearch

https://www.innfinitix.com/_next/static/chunks/pages/dashboard/staffs-11d2742f9ef59f61.js

js innfinitix.com collected 2026-10-03 20:11:03 UTC 5,957 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6402,5885,922,8214,2444],{40644:function(e,t,a){"use strict";a.d(t,{w:function(){return l}});var r=a(87462),n=a(67294),s=a(82444),l=n.forwardRef(function(e,t){return n.createElement(s.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),n.createElement("path",{d:"M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"}),n.createElement("path",{fillRule:"evenodd",d:"M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"}))});l.displayName="PencilSquare"},25137:function(e,t,a){"use strict";a.d(t,{r:function(){return l}});var r=a(87462),n=a(67294),s=a(82444),l=n.forwardRef(function(e,t){return n.createElement(s.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),n.createElement("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"}),n.createElement("path",{fillRule:"evenodd",d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"}))});l.displayName="Trash"},39409:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/staffs",function(){return a(66746)}])},18214:function(e,t,a){"use strict";a.r(t);var r=a(85893);t.default=e=>{let{color:t}=e;return(0,r.jsx)(r.Fragment,{})}},42444:function(e,t,a){"use strict";a.r(t);var r=a(85893),n=a(67294),s=a(60408),l=a(75885),c=a(2022),o=a(18214);let i=(0,n.forwardRef)((e,t)=>{let{data:a,error:i,mutate:d}=(0,s.ZP)(e.url?e.url:null,c.gN);return((0,n.useImperativeHandle)(t,()=>({update:()=>{d()}})),(0,n.useEffect)(()=>{a&&a.success&&e.setData(a)},[a]),i)?(0,r.jsx)(l.default,{}):a?a&&!a.success?(0,r.jsx)(l.default,{}):(0,r.jsxs)(r.Fragment,{children:[" ",e.children," "]}):(0,r.jsx)("div",{style:{height:"100vh"},children:(0,r.jsx)(o.default,{})})});t.default=i},75885:function(e,t,a){"use strict";a.r(t);var r=a(85893),n=a(41664),s=a.n(n),l=a(69032),c=a.n(l);t.default=()=>(0,r.jsx)("div",{className:c().body,children:(0,r.jsx)("div",{className:c().body_container,children:(0,r.jsxs)("div",{className:c().ntfnd,children:[(0,r.jsx)("div",{className:c().error,children:(0,r.jsx)("h1",{children:"500"})}),(0,r.jsx)("h2",{children:"Oooops! Internal Server Error."}),(0,r.jsxs)("p",{children:["That is, something went terribly wrong. We suggest you to go back or visit here later",(0,r.jsx)("br",{}),(0,r.jsx)(s(),{href:"/",children:"Return to homepage"})]})]})})})},66746:function(e,t,a){"use strict";a.r(t);var r=a(85893),n=a(25137),s=a(40644),l=a(5152),c=a.n(l),o=a(67294),i=a(22120),d=a(91444),u=a(71178),h=a.n(u),_=a(42444),b=a(2022);let m=c()(()=>Promise.all([a.e(3253),a.e(8505)]).then(a.bind(a,3347)),{loadableGenerated:{webpack:()=>[3347]}}),f=c()(()=>a.e(6494).then(a.bind(a,16494)),{loadableGenerated:{webpack:()=>[16494]}}),x=c()(()=>Promise.resolve().then(a.t.bind(a,41664,23)),{loadableGenerated:{webpack:()=>[41664]}}),SubscriberList=()=>{let[e,t]=(0,o.useState)({}),a=(0,o.useRef)(),[l,c]=(0,o.useState)(!1),[u,v]=(0,o.useState)(""),{t:j}=(0,i.$G)(),openModal=e=>{v(e),c(!0)},closeModal=()=>{c(!1)},deleteSubscriber=async()=>{c(!1),await (0,b.SR)("/api/users?id=".concat(u)).then(e=>e.success?(d.toast.success("Customer Deleted Successfully"),void a.current.update()):d.toast.error("Something Went Wrong")).catch(e=>{console.log(e),d.toast.error("Something Went Wrong")})},p=[{name:j("name"),selector:e=>e.name},{name:j("Surname"),selector:e=>e.isStaff.surname},{name:j("email"),selector:e=>e.email},{name:j("phone"),selector:e=>e.phone},{name:j("action"),selector:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:h().button,onClick:()=>openModal(e._id),children:(0,r.jsx)(n.r,{width:22,height:22,title:"DELETE"})}),(0,r.jsx)(x,{href:"/dashboard/staffs/".concat(e._id),children:(0,r.jsx)("div",{className:h().button,children:(0,r.jsx)(s.w,{width:22,height:22,title:"EDIT"})})})]})}];return(0,r.jsx)(_.default,{url:"/api/staffs",setData:t,ref:a,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-center pt-3 pb-5",children:j("Customers")}),(0,r.jsxs)("div",{className:h().container,children:[(0,r.jsx)(f,{columns:p,data:e.users||[],searchKey:"email",searchPlaceholder:j("email")}),(0,r.jsx)(m,{isOpen:l,handleCloseModal:closeModal,small:!0,children:(0,r.jsxs)("div",{className:h().modal_icon,children:[(0,r.jsx)(n.r,{width:90,height:90}),(0,r.jsx)("p",{children:"Are you sure, you want to delete?"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{className:h().danger_button,onClick:()=>deleteSubscriber(),children:"Delete"}),(0,r.jsx)("button",{className:h().success_button,onClick:()=>closeModal(),children:"Cancel"})]})]})})]})]})})};SubscriberList.requireAuthAdmin=!0,SubscriberList.dashboard=!0,t.default=SubscriberList},69032:function(e){e.exports={body:"__403_body__otBK_",body_container:"__403_body_container__ZHJj1",ntfnd:"__403_ntfnd__oD8dB",error:"__403_error__qSaCL"}},71178:function(e){e.exports={container:"table_container__f1mC4",button:"table_button__LF8_5",modal_icon:"table_modal_icon__t_aHR",danger_button:"table_danger_button__jpS_l",success_button:"table_success_button__lcGr5",color_viewer:"table_color_viewer__54oBu",search_bar:"table_search_bar__anNGy",search_bar_button:"table_search_bar_button__OjZ8a"}}},function(e){e.O(0,[1664,503,408,9774,2888,179],function(){return e(e.s=39409)}),_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.