(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1857],{84728:(e,s,l)=>{Promise.resolve().then(l.bind(l,51429))},51429:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>n});var a=l(95155),r=l(9625);function n(){return(0,a.jsx)(r.U,{title:"Online Payment Gateway",breadcrumbs:["Payment Gateway"],children:(0,a.jsx)("div",{children:"This is online payment gateway page"})})}},53661:(e,s,l)=>{"use strict";l.d(s,{r:()=>i});var a=l(95155),r=l(76046),n=l(12115),t=l(83391);function i(e,s){return function(l){let i=(0,r.useRouter)(),{isAuthenticated:c,user:d}=(0,t.d4)(e=>e.auth);return((0,n.useEffect)(()=>{if(!c){i.replace("/login");return}(null==d?void 0:d.role)!==s&&i.replace("/login")},[c,d,i]),c&&(null==d?void 0:d.role)===s)?(0,a.jsx)(e,{...l}):null}}},9625:(e,s,l)=>{"use strict";l.d(s,{U:()=>i});var a=l(95155),r=l(53661),n=l(8368),t=l(73649);function i(e){let{children:s,title:l,breadcrumbs:r=[],className:i,actions:c}=e;return(0,a.jsx)(t.default,{userRole:"policy-holder",children:(0,a.jsxs)("div",{className:(0,n.cn)("p-6 space-y-6",i),children:[(0,a.jsx)("div",{className:"",children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-[32px] font-medium text-gray-800 mb-2",children:l}),(0,a.jsxs)("div",{className:"text-gray-500 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"Dashboard"}),r.map((e,s)=>(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-gray-400",children:"›"}),(0,a.jsx)("span",{className:s===r.length-1?"text-blue-600":"text-gray-500",children:e})]},s))]})]}),c&&(0,a.jsx)("div",{className:"flex gap-3",children:c})]})}),(0,a.jsx)("div",{children:s})]})})}(0,r.r)(i,"policy-holder")}},e=>{var s=s=>e(e.s=s);e.O(0,[9229,3391,8405,7970,1181,8173,2662,8993,4980,3649,8441,1517,7358],()=>s(84728)),_N_E=e.O()}]);