1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6931],{42498:function(e,s,t){"use strict";t.d(s,{Z:function(){return r}});var n=t(91696);let r=(0,n.Z)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},7392:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/users/resend-password-reset/[id]",function(){return t(44380)}])},63534:function(e,s,t){"use strict";var n=t(52676),r=t(75271),a=t(1629),i=t(78619),l=t(31985),c=t.n(l),d=t(82187),o=t.n(d),u=t(52073),h=t(75018),x=t(90394);s.Z=e=>{var s,t;let{navClass:l="",inactiveClass:d="",activeClass:f="text-ogovOrange font-bold text-xs",routes:m,isPublicView:p,portalInfo:v,skipSegments:g=[]}=e,b=(0,a.useRouter)(),{t:j,i18n:w}=(0,i.$G)(),N=null==v?void 0:null===(t=v.customization)||void 0===t?void 0:null===(s=t.config)||void 0===s?void 0:s.primary_color,y=N?(0,x.k8)(N):void 0,[_,k]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(b){let e=b.asPath.split("/");e.shift();let s=[];e.forEach((e,t)=>{isNaN(parseInt(e))?s.push(e):s[t-1]="".concat(s[t-1],"/").concat(e)});let t=s.filter(e=>"dashboard"!==e),n=t.map((e,t)=>({breadcrumb:"dashboard"===e.split("/")[0]?s[t]:e.split("/")[0],href:"/"+s.slice(0,t+2).join("/"),hidden:g.includes(e.split("/")[0])})),r=n.reduceRight((e,s,t)=>-1!==e||s.hidden?e:t,-1);k(n.map((e,s)=>({...e,active:s===r})))}},[b]),(0,n.jsxs)("nav",{"aria-label":"breadcrumbs",className:o()("flex flex-col sm:flex-row align-middle font-ptSans text-gray-600 text-xs",l),children:[!p&&(0,n.jsx)(c(),{href:"/dashboard",children:j("common.home")}),m&&m.length>0?(0,n.jsx)(n.Fragment,{children:null==m?void 0:m.map((e,s)=>(0,n.jsxs)("div",{className:"flex items-center",children:[(!p||s>0)&&(0,n.jsx)("span",{className:"inline-flex items-center px-1","aria-hidden":"true",children:(0,n.jsx)(u.Z,{className:"w-3.5 h-3.5 text-gray-400"})}),(0,n.jsx)(c(),{href:e.href,className:o()(s===m.length-1?f:o()(d,"hover:text-gray-900 hover:underline transition-colors")),style:{color:s===m.length-1?y:void 0},children:(0,h.QN)(e.title)})]},s))}):null==_?void 0:_.filter(e=>!e.hidden).map(e=>{var s,t;let r=null===(s=_[0])||void 0===s?void 0:s.breadcrumb.split("?")[0],a=null==e?void 0:e.breadcrumb.split("?")[0],i="".concat(r,".").concat(a,".pageTitle"),l=_.indexOf(e);if(l>=1){let e=null===(t=_[l-1])||void 0===t?void 0:t.breadcrumb.split("?")[0],s="".concat(r,".").concat(e,".").concat(a,".pageTitle");w.exists(s)&&(i=s)}return(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"inline-flex items-center px-1","aria-hidden":"true",children:(0,n.jsx)(u.Z,{className:"w-3.5 h-3.5 text-gray-400"})}),(0,n.jsx)(c(),{href:null==e?void 0:e.href,className:o()(e.active?f:o()(d,"hover:text-gray-900 hover:underline transition-colors"),"capitalize"),style:{color:e.active?y:void 0},children:j(i)})]},l)})]})}},50924:function(e,s,t){"use strict";var n=t(52676),r=t(75271);let a=(0,r.forwardRef)(function(e,s){let{type:t="submit",className:r,...a}=e;return(0,n.jsx)("button",{ref:s,type:t,className:"\n ".concat(r,"\n inline-flex \n items-center\n px-3\n py-3\n border \n border-transparent \n rounded-md \n font-semibold \n text-xs\n text-white\n uppercase\n tracking-widest\n focus:outline-none\n focus:ring\n disabled:opacity-25\n transition \n ease-in-out\n duration-150"),...a})});s.Z=a},55100:function(e,s,t){"use strict";t.d(s,{Z:function(){return useFetchUser}});var n=t(78446),r=t(75271);function useFetchUser(e){let{id:s}=e,[t,a]=(0,r.useState)({}),[i,l]=(0,r.useState)(),[c,d]=(0,r.useState)(!0),fetchUser=e=>{n.W.show(e).then(e=>a(e.data.data)).catch(e=>l(e)).finally(()=>d(!1))};return(0,r.useEffect)(()=>{fetchUser(s)},[]),{user:t,error:i,isFetching:c}}},44380:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return b}});var n=t(52676),r=t(34090),a=t(41501),i=t(55100),l=t(57394),c=t.n(l),d=t(1629),o=t(78619),u=t(91750),h=t(50924),x=t(75271),f=t(90394),m=t(78446),p=t(63534),v=t(31785),g=t(42474);let RestoreUser=()=>{let{handlePermission:e}=(0,g.a)({middleware:["auth"]}),s=(0,d.useRouter)(),{id:t}=s.query,{t:r}=(0,o.$G)(),{isOpen:l,alert:b,showAlert:j}=(0,a.ZP)(),{user:w,error:N,isFetching:y}=(0,i.Z)({id:t}),[_,k]=(0,x.useState)(!1),{newNotification:Z}=(0,x.useContext)(v.u);return(0,x.useEffect)(()=>{e(["user.resend-password-reset"])||s.push("/dashboard")},[]),(0,x.useEffect)(()=>N&&(0,f.xg)(N,null,j),[N]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{children:(0,n.jsx)("title",{children:r("users.resendPasswordReset.pageTitle")})}),(0,n.jsx)("div",{className:"max-w-screen-2xl mx-auto",children:(0,n.jsxs)("div",{className:"bg-white overflow-hidden shadow-sm rounded-lg",children:[(0,n.jsxs)("div",{className:"flex flex-col border-b pt-6 pl-6 border-gray-200",children:[(0,n.jsx)("div",{className:"bg-white font-bold text-xl sm:text-2xl text-black",children:r("users.resendPasswordReset.pageTitle")}),(0,n.jsx)("div",{children:(0,n.jsx)(p.Z,{})})]}),(0,n.jsxs)("div",{className:"p-6",children:[l&&b(),N?"":y?(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(u.g,{})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"max-w-sm flex flex-col items-center mx-auto
1space-y-2",children:(0,n.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[w.email,(0,n.jsx)("span",{className:"text-sm text-gray-400",children:w.username}),(0,n.jsx)(h.Z,{className:"bg-ogovOrange justify-center w-full",onClick:()=>{k(!0),m.W.resendPasswordReset(t).then(()=>{Z("success",r("common.successOperation")),s.push("/dashboard/users")}).catch(e=>(0,f.xg)(e,null,j)).finally(()=>k(!1))},disabled:_,children:_?(0,n.jsx)(u.g,{width:5,height:5}):r("users.resendPasswordReset.button")})]})})})]})]})})]})};RestoreUser.getLayout=function(e){return(0,n.jsx)(r.Z,{children:e})};var b=!0;s.default=RestoreUser}},function(e){e.O(0,[3043,4090,9774,2888,179],function(){return e(e.s=7392)}),_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.