PageSourceSearch

https://www.karnataka-recruitment.com/_next/static/chunks/pages/dashboard-25be8838d2609364.js

js karnataka-recruitment.com collected 2026-10-02 01:33:58 UTC 76,307 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{26117:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return t(64066)}])},56901:function(e,s,t){"use strict";t.d(s,{z:function(){return o}});var l=t(85893),a=t(67294),i=t(88426),r=t(45139),n=t(70507);let d=(0,r.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),o=a.forwardRef((e,s)=>{let{className:t,variant:a,size:r,asChild:o=!1,...c}=e,x=o?i.g7:"button";return(0,l.jsx)(x,{className:(0,n.cn)(d({variant:a,size:r,className:t})),ref:s,...c})});o.displayName="Button"},89316:function(e,s,t){"use strict";t.d(s,{Ol:function(){return n},Zb:function(){return r},aY:function(){return d},eW:function(){return o}});var l=t(85893),a=t(67294),i=t(8753);let r=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("div",{ref:s,className:(0,i.cn)("bg-card text-card-foreground rounded-lg border shadow-sm",t),...a})});r.displayName="Card";let n=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("div",{ref:s,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",t),...a})});n.displayName="CardHeader",a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("h3",{ref:s,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",t),...a})}).displayName="CardTitle",a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("p",{ref:s,className:(0,i.cn)("text-muted-foreground text-sm",t),...a})}).displayName="CardDescription";let d=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("div",{ref:s,className:(0,i.cn)("p-6 pt-0",t),...a})});d.displayName="CardContent";let o=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("div",{ref:s,className:(0,i.cn)("flex items-center p-6 pt-0",t),...a})});o.displayName="CardFooter"},69850:function(e,s,t){"use strict";t.d(s,{aM:function(){return c},sw:function(){return x},ue:function(){return f},yo:function(){return o}});var l=t(85893),a=t(67294),i=t(12854),r=t(45139),n=t(41352),d=t(8753);let o=i.fC,c=i.xz,x=i.x8,u=i.h_,m=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(i.aV,{className:(0,d.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0  fixed inset-0 z-50 bg-black/80",t),...a,ref:s})});m.displayName=i.aV.displayName;let h=(0,r.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-4/5 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-4/5  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),f=a.forwardRef((e,s)=>{let{side:t="right",className:a,children:r,...o}=e;return(0,l.jsxs)(u,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(i.VY,{ref:s,className:(0,d.cn)(h({side:t}),a),...o,children:[r,(0,l.jsxs)(i.x8,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 roun
1ded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[(0,l.jsx)(n.Z,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=i.VY.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(i.Dx,{ref:s,className:(0,d.cn)("text-foreground text-lg font-semibold",t),...a})}).displayName=i.Dx.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(i.dk,{ref:s,className:(0,d.cn)("text-muted-foreground text-sm",t),...a})}).displayName=i.dk.displayName},49703:function(e,s,t){"use strict";t.d(s,{O:function(){return i}});var l=t(85893),a=t(8753);function i(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("bg-muted animate-pulse rounded-md",s),...t})}},8753:function(e,s,t){"use strict";t.d(s,{cn:function(){return i}});var l=t(90512),a=t(98388);function i(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,a.m6)((0,l.W)(s))}},91951:function(e,s,t){"use strict";var l=t(85893);t(67294);var a=t(47180),i=t(11163),r=t(33299);s.Z=function(e){var s;let{tet:t}=e,{locale:n}=(0,i.useRouter)(),{data:d}=(0,r.useSession)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"mx-auto max-w-screen-xl px-5",children:(0,l.jsx)("div",{className:"grid grid-cols-3 gap-5 max-sm:grid-cols-1",children:null==t?void 0:null===(s=t.filter(e=>e.english))||void 0===s?void 0:s.map((e,s)=>(0,l.jsx)(a.Z,{href:(null==d?void 0:d.jwt)?"".concat(e.href," "):"#",title:"en"===n?e.title:null==e?void 0:e.locale,description:null==e?void 0:e.description,bottonText:e.bottonText},s))})})})})}},47180:function(e,s,t){"use strict";var l=t(85893);t(67294);var a=t(41664),i=t.n(a),r=t(454);s.Z=e=>{var s;let{locale:t,href:a,title:n,description:d,bgColor:o="bg-[#023047]/90",bottonColor:c="bg-[#FF8000]",bottonText:x="Practice Test Now",bTextColor:u="text-white",ImageBgColor:m="bg-[#023047]",titleTextColor:h="text-white",descriptionTextColor:f="text-[#f4f4f4]",fill:p="#fff",border:v=" border-transparent"}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(i(),{href:a,locale:t,className:" min-w-  flex min-h-full max-w-sm justify-between  overflow-hidden  rounded-xl max-sm:min-w-full ".concat(o," "),children:[(0,l.jsxs)("div",{className:" flex basis-4/5 flex-col justify-around gap-2 px-4 py-3",children:[(0,l.jsx)("div",{className:"".concat("te"===t?"te":""," text-base font-semibold   leading-5 ").concat(h," "),children:n}),(0,l.jsx)("div",{className:" ".concat(f," text-[12px] font-medium leading-4 "),children:(null==d?void 0:d.includes("&"))?(0,l.jsx)("div",{children:null==d?void 0:null===(s=d.split("&"))||void 0===s?void 0:s.map((e,s)=>(0,l.jsx)("ul",{className:"flex flex-col gap-1 pl-3",children:(0,l.jsx)("li",{className:" list-disc font-semibold",children:e})},s))}):(0,l.jsx)("span",{children:d})}),(0,l.jsxs)("div",{className:"  flex  items-center justify-center gap-x-1 text-nowrap rounded-lg max-sm:text-wrap  ".concat(c," border-[0.2px] ").concat(v,"  px-2 py-[6px] text-center text-[12px] font-bold  capitalize  leading-5 max-sm:px-2 ").concat(u,"   hover:bg-[#023047]"),children:[x,(0,l.jsx)(r.p6n,{className:" ".concat(u,"  h-3 w-2 "),height:7,width:3.5})]})]}),(0,l.jsx)("div",{className:" flex basis-1/4 items-center justify-center rounded-l-full pl-2 max-sm:basis-1/4 ".concat(m," "),children:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 200 200",fill:"none",opacity:.8,children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_429_904)",children:[(0,l.jsx)("path",{d:"M33.7403 80.4898C33.7403 79.6798 33.7403 79.0998 33.7403 78.5198C33.7503 75.3698 33.9203 75.0898 37.0103 74.1298C43.2903 72.1698 49.7803 71.8098 56.2803 71.7498C60.7403 71.7098 65.2103 72.0798 69.6803 72.2698C70.0703 72.2898 70.4703 72.2698 70.5403 72.2698C69.3603 68.6098 67.8003 65.0298 67.0503 61.2798C63.4403 43.3798 73.4503 28.3398 91.3503 24.7198C102.38 22.4898 112.89 23.9098 122.19 30.6698C130.33 36.5798 133.89 44.8698 133.79 54.8398C133.73 60.6898 132.36 66.1798 129.57 71.3198C129.43 71.5698 129.34 71.8498 129.15 72.2798C131.77 72.1298 134.24 71.9498 136.71 71.8498C145.13 71.5198 153.52 71.7098 161.76 73.7598C162.22 73.8698 162.68 74.0098 163.13 74.1598C166.06 75.1198 166.26 75.3998 166.27 78.4698C166.27 79.0598 166.27 79.6398 166.27 80.4898C168.19 80.4898 169.96 80.4698 171.73 80.4898C173.86 80.5298 174.49 81.1598 174.49 83.2998C174.49 114.68 
1174.49 146.05 174.49 177.43C174.49 179.66 173.8 180.27 171.38 180.27C154.38 180.27 137.38 180.38 120.39 180.21C114.25 180.15 109.35 182.16 105.54 186.94C105.13 187.45 104.68 187.94 104.19 188.37C101.72 190.56 98.1603 190.53 95.7403 188.28C95.0403 187.63 94.4203 186.9 93.8003 186.17C90.3203 182.1 85.9503 180.22 80.5803 180.24C63.4003 180.31 46.2303 180.27 29.0503 180.27C26.0003 180.27 25.5303 179.8 25.5303 176.76C25.5303 145.8 25.5303 114.85 25.5303 83.8898C25.5303 80.9198 25.9703 80.4898 28.9603 80.4798C30.4903 80.4798 32.0303 80.4798 33.7503 80.4798L33.7403 80.4898ZM38.0403 169.21C58.0803 164.17 77.9003 164.46 97.7603 169.29V120.79C91.3803 120.69 89.6403 117.84 89.3303 113.41C83.7203 111.8 82.1103 109.65 82.1103 103.78C82.1103 101.27 82.0103 98.7498 82.1303 96.2498C82.3803 91.2698 80.9003 86.8298 78.1503 82.7598C77.0503 81.1298 75.9503 79.4898 74.7503 77.9298C74.4003 77.4798 73.7503 77.0598 73.1903 77.0098C69.8103 76.6598 66.4303 76.2998 63.0403 76.1498C55.4003 75.8098 47.7903 76.0798 40.2603 77.6498C38.5703 77.9998 37.9803 78.6098 37.9803 80.4298C38.0503 109.3 38.0303 138.16 38.0303 167.03V169.23L38.0403 169.21ZM102.23 169.31C122.14 164.45 141.96 164.2 161.96 169.21V167.16C161.96 138.24 161.94 109.31 162.01 80.3898C162.01 78.6498 161.47 78.0298 159.86 77.6898C150.31 75.6898 140.69 75.9598 131.01 76.4098C126.99 76.5998 124.76 78.3098 122.7 81.4998C119.58 86.3198 117.61 91.2998 117.95 97.1198C118.1 99.7998 118 102.5 117.97 105.19C117.92 109.42 115.76 112.12 111.66 113.16C111.34 113.24 111.02 113.36 110.75 113.44C110.37 118.53 108.9 119.81 102.24 120.86V169.32L102.23 169.31ZM103.04 69.2398C103.47 66.6898 103.7 64.4198 104.26 62.2398C104.81 60.0598 105.55 57.8998 106.45 55.8298C107.46 53.4998 109.01 51.4998 111.31 50.2598C114.78 48.3998 118.49 50.1298 119.28 53.9898C119.46 54.8598 119.53 55.7798 119.44 56.6598C118.72 63.5498 115.28 68.6398 109.05 71.6698C107.66 72.3398 107.33 73.1198 107.35 74.5098C107.41 79.9498 107.37 85.3898 107.38 90.8298C107.38 91.4698 107.43 92.1098 107.47 92.9198C109.38 92.9198 111.16 92.9798 112.93 92.8698C113.28 92.8498 113.82 92.1598 113.87 91.7298C114.34 87.9098 115.79 84.4698 117.85 81.2798C119.76 78.3198 121.82 75.4598 123.8 72.5498C127.41 67.2298 129.44 61.4098 129.48 54.9198C129.56 44.0398 124.82 36.0698 115 31.4098C106.42 27.3398 97.5103 27.0898 88.5303 29.9998C76.9703 33.7498 70.5403 42.8298 70.6103 54.9498C70.6503 62.2498 73.3503 68.5498 77.5103 74.3498C81.5503 79.9798 85.8003 85.4998 86.3403 92.7698H92.7703C92.7703 86.1598 92.8003 79.7098 92.7103 73.2698C92.7103 72.8098 91.9203 72.2198 91.3803 71.9398C84.8703 68.6798 81.1803 63.4898 80.6503 56.1898C80.4603 53.5098 81.3603 51.1898 83.9403 49.9398C86.0903 48.8898 88.6803 49.6498 90.8903 51.8498C93.2003 54.1498 94.5503 57.0198 95.3303 60.1098C96.0703 63.0498 96.5403 66.0498 97.1803 69.2498H103.04V69.2398ZM29.8803 175.97H32.2003C48.1203 175.97 64.0503 176.07 79.9703 175.92C87.0903 175.86 92.8303 178.32 97.4103 183.75C99.6803 186.44 100.33 186.46 102.55 183.8C107.16 178.3 112.96 175.85 120.14 175.92C136.06 176.07 151.98 175.97 167.91 175.97H170.09V84.9398H166.26V87.0398C166.26 93.6698 166.26 100.31 166.26 106.94C166.26 128.39 166.26 149.85 166.26 171.3C166.26 173.98 165.23 174.72 162.66 173.97C161.23 173.56 159.8 173.12 158.36 172.78C142.69 169.1 126.94 169 111.14 171.79C108.12 172.32 105.15 173.12 102.16 173.8C102.16 175.15 102.16 176.23 102.16 177.3C102.16 178.79 101.48 179.79 99.9603 179.76C98.5403 179.74 97.8703 178.78 97.8703 177.37C97.8703 176.24 97.8703 175.11 97.8703 173.92C97.3403 173.76 96.9003 173.61 96.4403 173.49C89.3903 171.63 82.2103 170.53 74.9403 170.11C62.4203 169.39 50.0403 170.26 37.9503 173.83C34.6003 174.82 33.7603 174.2 33.7603 170.67C33.7603 142.88 33.7603 115.09 33.7603 87.3098V84.9498H29.9003V175.99L29.8803 175.97ZM103.01 73.6898H97.2103V92.7698H103.01V73.6898ZM113.57 100.91V97.3198H86.5403V100.91H113.57ZM113.49 105.43H86.4703C86.7603 107.71 87.7703 108.9 89.6803 108.92C96.5903 108.98 103.49 108.98 110.4 108.92C112.43 108.9 113.58 107.49 113.49 105.43ZM92.3803 67.3098C91.9503 63.3198 91.1603 59.5198 88.9203 56.1698C88.4303 55.4398 87.7803 54.7798 87.0703 54.2598C85.9503 53.4398 85.2303 53.7998 84.9803 55.1898C84.2403 59.2998 88.1503 65.7798 92.3903 67.2998L92.3803 67.3098ZM107.71 67.6098C112.37 64.8298 114.73 61.1298 115.15 56.2198C115.21 55.4798 114.71 54.6898 114.47 53.9198C113.7 54.2698 112.91 54.5798 112.17 54.9798C111.88 55.1398 111.66 55.4798 111.46 55.7698C109.05 59.1898 108.18 63.0998 107.72 67.5998L107.71 67.6098ZM106.23 113.33H93.9603C93.7203 115.44 94.3103 116.28 96.2103 116.33C98.7703 116.4 101.33 116.4 103.89 116.33C105.77 116.28 106.39 115.43 106.22 113.33H106.23Z",fill:"#fff"}
1),(0,l.jsx)("path",{d:"M57.8003 52.7C56.7303 52.7 55.6603 52.73 54.5903 52.7C53.3103 52.65 52.5903 51.86 52.5503 50.66C52.5103 49.43 53.2703 48.56 54.4903 48.5C56.6803 48.38 58.8903 48.37 61.0803 48.47C62.3603 48.53 63.2003 49.35 63.1103 50.71C63.0203 52.05 62.1603 52.69 60.8303 52.7C59.8203 52.7 58.8103 52.7 57.8003 52.7Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M142.051 52.6798C140.981 52.6798 139.831 52.9298 138.871 52.5998C138.081 52.3298 137.051 51.4098 137.011 50.7298C136.961 50.0298 137.931 48.6698 138.551 48.6098C140.951 48.3698 143.421 48.3798 145.821 48.6398C146.441 48.7098 147.391 50.0898 147.331 50.7798C147.271 51.4698 146.211 52.3698 145.421 52.6198C144.391 52.9398 143.191 52.6998 142.061 52.6998C142.061 52.6998 142.061 52.6898 142.061 52.6798H142.051Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M69.9202 19.6299C71.8702 19.6099 76.5002 24.7499 76.2902 26.1799C76.0402 27.8599 74.0302 28.6499 72.7502 27.4399C71.3002 26.0599 69.9502 24.5299 68.7302 22.9399C68.3602 22.4499 68.3402 21.4199 68.5902 20.8099C68.8402 20.2199 69.6402 19.8599 69.9102 19.6399L69.9202 19.6299Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M126.04 27.9899C124.17 27.9799 123.05 26.1799 124.04 24.8499C125.31 23.1499 126.75 21.5299 128.33 20.1299C128.82 19.6999 130.29 19.7399 130.82 20.1699C131.36 20.5999 131.74 22.1199 131.4 22.5899C130.1 24.3999 128.5 26.0099 126.96 27.6399C126.71 27.8999 126.21 27.9199 126.03 27.9799L126.04 27.9899Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M97.8604 14.81C97.8604 13.92 97.8104 13.02 97.8704 12.13C97.9604 10.81 98.6903 10 100.03 10C101.27 10 102.05 10.78 102.11 12.01C102.2 13.91 102.19 15.82 102.11 17.73C102.06 18.97 101.31 19.73 100.05 19.75C98.7104 19.77 97.9604 18.99 97.8704 17.66C97.8104 16.71 97.8604 15.75 97.8604 14.8V14.81Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M87.8204 133.4C84.6104 132.8 81.9904 132.26 79.3504 131.81C69.4604 130.14 59.5704 129.84 49.6804 131.81C47.8404 132.18 46.6904 131.58 46.4204 130.22C46.1504 128.91 47.0704 127.93 48.8904 127.58C61.8204 125.04 74.6104 126.11 87.3404 128.97C88.6704 129.27 89.6904 129.99 89.3704 131.38C89.1804 132.22 88.2304 132.89 87.8104 133.39L87.8204 133.4Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M64.9098 138.21C72.4298 138.61 79.7998 139.52 87.0898 141.14C88.9798 141.56 89.7298 142.48 89.3898 143.87C89.0498 145.23 87.9898 145.68 86.0898 145.29C73.9698 142.78 61.8198 141.91 49.5798 144.4C47.7898 144.76 46.5298 144.08 46.4198 142.69C46.2898 141.03 47.3698 140.34 48.8198 140.16C54.1798 139.49 59.5498 138.86 64.9098 138.21Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M64.8705 150.4C72.3905 150.8 79.7605 151.71 87.0505 153.32C88.9605 153.74 89.7105 154.64 89.3905 156.02C89.0705 157.38 87.9805 157.86 86.1105 157.47C73.9905 154.96 61.8405 154.07 49.6005 156.57C47.8105 156.94 46.5505 156.28 46.4105 154.9C46.2505 153.24 47.3105 152.53 48.7705 152.35C54.1305 151.68 59.5005 151.04 64.8605 150.4H64.8705Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M82.8105 120.03C78.9805 119.51 75.1505 118.9 71.3105 118.5C64.1705 117.75 57.0405 117.87 49.9505 119.2C49.6005 119.27 49.2505 119.32 48.8905 119.35C47.5505 119.48 46.6405 118.87 46.4305 117.57C46.2205 116.24 47.0005 115.36 48.2705 115.14C50.7905 114.7 53.3205 114.28 55.8705 114.05C65.0205 113.23 74.0705 114.1 83.0605 115.84C84.3805 116.09 85.3205 116.81 85.1805 118.25C85.0505 119.57 84.1605 120.21 82.8205 120.04L82.8105 120.03Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M74.2802 94.1298C67.5302 93.2298 61.0602 92.8098 54.5702 93.4998C52.8602 93.6798 51.1502 93.9498 49.4402 94.1698C47.7502 94.3898 46.6402 93.7598 46.4102 92.4398C46.1902 91.1498 47.0702 90.1998 48.7702 89.9098C57.0602 88.4698 65.3602 88.6298 73.6702 89.7098C73.9602 89.7498 74.2602 89.8198 74.5502 89.8598C75.9702 90.0898 76.6802 90.9298 76.4602 92.3498C76.2502 93.7298 75.2402 94.1398 74.2802 94.1298Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M73.8503 106.12C69.0403 105.98 64.2203 105.68 59.4203 105.75C56.1603 105.8 52.9103 106.35 49.6703 106.71C48.5003 106.84 47.3903 106.95 46.6903 105.73C45.8603 104.29 46.7603 102.68 48.7303 102.51C54.0603 102.05 59.3903 101.59 64.7303 101.44C67.8603 101.35 71.0103 101.87 74.1603 102.11C75.6103 102.22 76.6003 102.9 76.5003 104.44C76.4003 106 75.3103 106.51 73.8703 106.11L73.8503 106.12Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M151.05 131.72C147.09 131.31 143.13 130.73 139.16 130.54C130.6 130.13 122.17 131.26 113.82 133.12C112 133.53 110.8 132.99 110.6 131.59C110.36 129.93 111.35 129.29 112.83 128.96C125.57 126.07 138.36 125.09 151.28 127.61C152.66 127.88 153.73 128.51 153.57 130.05C153.43 131.46 152.44 132.07 151.05 131.73V131.72Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M135.27 138.22C140.58 138.86 145.88 139.49 151.19 140.15C152.64 140.33 153.72 141.02 153.58 142.68C153.46 144.06 152.21 144.74 150.42 144.38C138.18 141.89 126.03 142.77 113.91 145.28C112.01 145.67 110.95 145.22 110.61 143.85C110.27 142.47 111.03 141.55 112.92 141.13C120.27 139.5 127.69 138.59 135.28 138.22H135.27Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M151.13 156.49C147.35 156.06 143.58 155.46 139.79 155.24C131.06 154.72 122.43 155.65 113.89 157.47C112 157.87 110.93 157.4 110.6 156.03C110.27 154.65 111.02 153.73 112.92 153.32C125.55 150.59 138.24 149.78 151.02 152.31C151.31 152.37 151.61 152.4 151.89 152.49C153.05 152.86 153.77 153.65 153.56 154.88C153.34 156.18 152.44 156.79 
1151.12 156.48L151.13 156.49Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M151.13 119.03C146.39 118.71 141.63 118 136.9 118.16C130.91 118.36 124.94 119.25 118.97 119.85C118.56 119.89 118.15 120.02 117.74 120.07C116.01 120.27 114.89 119.61 114.82 118.26C114.73 116.7 115.74 116.07 117.12 115.81C126.95 113.94 136.82 113.1 146.8 114.35C148.45 114.56 150.1 114.81 151.73 115.14C152.99 115.4 153.78 116.24 153.57 117.57C153.37 118.88 152.45 119.48 151.13 119.04V119.03Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M137.65 88.6301C141.53 89.0001 146.32 89.4501 151.11 89.8901C152.61 90.0301 153.65 90.6801 153.58 92.3201C153.52 93.7201 152.27 94.4501 150.49 94.1401C142.49 92.7401 134.49 92.9601 126.48 94.0101C124.73 94.2401 123.65 93.6401 123.51 92.2801C123.34 90.6001 124.34 89.9301 125.85 89.7801C129.46 89.4201 133.07 89.0701 137.64 88.6201L137.65 88.6301Z",fill:"#fff"}),(0,l.jsx)("path",{d:"M138.351 101.1C142.281 101.52 146.771 101.97 151.261 102.5C152.941 102.7 153.891 103.79 153.581 105.05C153.221 106.55 152.131 107.01 150.711 106.76C142.611 105.29 134.491 105.38 126.351 106.39C124.431 106.63 123.231 105.53 123.521 103.94C123.751 102.68 124.641 102.21 125.831 102.12C129.801 101.8 133.771 101.48 138.351 101.11V101.1Z",fill:"#fff"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_429_904",children:(0,l.jsx)("rect",{width:"200",height:"200",fill:"white"})})})]})})]})})}},70507:function(e,s,t){"use strict";t.d(s,{cn:function(){return i}});var l=t(90512),a=t(98388);function i(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,a.m6)((0,l.Z)(s))}},64066:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return Q}});var l=t(85893),a=t(67294),i=t(10952),r=t(8753);let n=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(i.fC,{ref:s,className:(0,r.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a})});n.displayName=i.fC.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(i.Ee,{ref:s,className:(0,r.cn)("aspect-square h-full w-full",t),...a})}).displayName=i.Ee.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(i.NY,{ref:s,className:(0,r.cn)("bg-muted flex h-full w-full items-center justify-center rounded-full",t),...a})}).displayName=i.NY.displayName;var d=t(56580),o=t(33299),c=t(41664),x=t.n(c),u=t(80667);function m(){let{data:e}=(0,o.useSession)();return(0,l.jsx)("div",{className:"mx-8",children:(0,l.jsxs)(d.h_,{children:[(0,l.jsx)(d.$F,{asChild:!0,children:(0,l.jsxs)("div",{className:" flex h-[44px] items-center justify-evenly",children:[(0,l.jsx)("h1",{className:" text-md mr-4 font-semibold leading-5 text-[#1a1a1a]",children:null==e?void 0:e.user.username}),(0,l.jsx)("div",{children:(0,l.jsx)(n,{className:" ",children:(0,l.jsx)(i.F$,{src:"/images/Headerlogo.png",className:"p-2",width:60,height:60})})})]})}),(0,l.jsxs)(d.AW,{className:"min-w-[200px] rounded-lg border bg-[#fff]",children:[(0,l.jsx)(d.Ju,{children:(0,l.jsx)(x(),{href:"/",className:"block px-4 py-2 text-gray-800 hover:bg-gray-200",children:"Home"})}),(0,l.jsx)(d.Xi,{className:"cursor-pointer px-4 py-2 text-red-600 hover:bg-gray-200",onClick:u.Pc,children:"Logout"})]})]})})}function h(){return(0,l.jsx)("div",{className:"h-[74px] border-b-2 border-gray-300 bg-white shadow-md",children:(0,l.jsx)("div",{className:" flex justify-end py-4",children:(0,l.jsx)(m,{})})})}var f=t(25675),p=t.n(f),v=t(69850),g=t(51649);function j(e){let{show:s,session:t}=e,[r,n]=(0,a.useState)(0),[o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{s(r)},[r]),(0,l.jsxs)(v.yo,{children:[(0,l.jsx)(v.aM,{children:(0,l.jsx)(d.h_,{children:(0,l.jsx)(d.$F,{asChild:!0,children:(0,l.jsxs)("div",{className:" flex h-[44px] items-center justify-evenly",children:[(0,l.jsx)("h1",{className:" text-md mr-4 font-semibold leading-5 text-[#1a1a1a]",children:null==t?void 0:t.user.username}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(i.qE,{className:"  ",children:(0,l.jsx)(i.F$,{src:"/images/Headerlogo.png",className:"h-8 w-8 rounded-full "})})}),(0,l.jsx)("div",{children:(0,l.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]})})})}),(0,l.jsx)(v.ue,{className:"w-2/3 bg-[#ECF2F5] p-0",children:(0,l.jsx)(v.sw,{asChild:!0,children:(0,l.jsx)("div",{className:"mt-10",children:(0,l.jsxs)("div",{className:" flex flex-col ".concat(o?"items-center justify-center":""," lg:my-4 lg:px-4"),children:[(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>n(0),className:"\n              ".concat(0===r?"bg-[#023047] text-white":"","  \n              flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5 "),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})}),"Dashboard"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>n(1),className:"\n              ".concat(1===r?"bg-[#023047] text-white":"","  \n              flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5 "),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})}),"User Profile"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>n(2),className:"\n              ".concat(2===r?"bg-[#023047] text-white":"","  \n              flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5 "),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"})}),"Your Exams"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>n(3),className:"\n              ".concat(3===r?"bg-[#023047] text-white":"","  \n              flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5"),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63
1-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})}),"Subscription"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>n(4),className:"\n                ".concat(4===r?"bg-[#023047] text-white":""," \n                flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5 "),children:[(0,l.jsx)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:" h-5 w-5",children:(0,l.jsx)("path",{d:"M13.5 6.50004V12.075L18.1362 14.8563C18.307 14.9587 18.43 15.1248 18.4783 15.318C18.5266 15.5111 18.4962 15.7156 18.3937 15.8863C18.2913 16.057 18.1252 16.1801 17.9321 16.2284C17.7389 16.2766 17.5345 16.2462 17.3638 16.1438L12.3638 13.1438C12.2527 13.0771 12.1608 12.9827 12.097 12.8699C12.0333 12.757 11.9999 12.6296 12 12.5V6.50004C12 6.30113 12.079 6.11036 12.2197 5.96971C12.3603 5.82906 12.5511 5.75004 12.75 5.75004C12.9489 5.75004 13.1397 5.82906 13.2803 5.96971C13.421 6.11036 13.5 6.30113 13.5 6.50004ZM12.75 0.750039C11.2057 0.746025 9.67585 1.04845 8.2492 1.63979C6.82255 2.23114 5.5274 3.09965 4.43875 4.19504C3.36625 5.28004 2.43875 6.32004 1.5 7.42004V4.50004C1.5 4.30113 1.42098 4.11036 1.28033 3.96971C1.13968 3.82906 0.948912 3.75004 0.75 3.75004C0.551088 3.75004 0.360322 3.82906 0.21967 3.96971C0.0790175 4.11036 0 4.30113 0 4.50004V9.50004C0 9.69895 0.0790175 9.88972 0.21967 10.0304C0.360322 10.171 0.551088 10.25 0.75 10.25H5.75C5.94891 10.25 6.13968 10.171 6.28033 10.0304C6.42098 9.88972 6.5 9.69895 6.5 9.50004C6.5 9.30113 6.42098 9.11036 6.28033 8.96971C6.13968 8.82906 5.94891 8.75004 5.75 8.75004H2.34125C3.3575 7.53629 4.34875 6.41879 5.5 5.25004C6.92459 3.82552 8.73738 2.85241 10.7119 2.45227C12.6864 2.05214 14.735 2.24274 16.6018 3.00026C18.4685 3.75778 20.0707 5.04862 21.208 6.71149C22.3454 8.37436 22.9675 10.3355 22.9966 12.3499C23.0257 14.3644 22.4605 16.3427 21.3717 18.0377C20.2829 19.7328 18.7187 21.0694 
116.8746 21.8805C15.0305 22.6917 12.9883 22.9414 11.003 22.5985C9.01782 22.2556 7.17766 21.3353 5.7125 19.9525C5.64141 19.8825 5.55704 19.8273 5.46435 19.7902C5.37166 19.7532 5.2725 19.735 5.17269 19.7368C5.07289 19.7386 4.97444 19.7602 4.88312 19.8006C4.7918 19.8409 4.70945 19.899 4.64089 19.9716C4.57233 20.0441 4.51894 20.1296 4.48386 20.2231C4.44877 20.3165 4.4327 20.4161 4.43657 20.5158C4.44045 20.6155 4.4642 20.7135 4.50643 20.804C4.54866 20.8944 4.60852 20.9755 4.6825 21.0425C6.077 22.3595 7.77272 23.3151 9.62159 23.8259C11.4704 24.3366 13.4162 24.3869 15.289 23.9725C17.1618 23.558 18.9047 22.6914 20.3654 21.4483C21.8262 20.2052 22.9604 18.6233 23.669 16.8409C24.3776 15.0585 24.6391 13.1297 24.4306 11.223C24.2221 9.31622 23.55 7.4895 22.473 5.90232C21.396 4.31514 19.9468 3.01577 18.2519 2.11765C16.5571 1.21954 14.6681 0.750003 12.75 0.750039Z",fill:"currentColor"})}),"Payment History"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>n(5),className:"\n                ".concat(5===r?"bg-[#023047] text-white":""," \n                flex w-full gap-4 px-4  text-[16px] font-medium leading-5 "),children:[(0,l.jsx)(p(),{src:"/svg/referral.svg",alt:"Referral",width:25,height:25}),"Refer & Earn"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>(0,u.Pc)(),className:"\n                 \n                flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5 ",children:[(0,l.jsx)(g.CmG,{className:" h-6 w-6"}),"Logout"]})})]})})})})]})}var C=t(59363);function b(e){let{show:s,session:t}=e,[i,r]=(0,a.useState)(0),[n]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s(i)},[i]);let d=(0,C.iP)();return(0,l.jsxs)("div",{className:"flex flex-col bg-[#ECF2F5] pb-2 text-[#023047]  max-sm:h-[70px] max-sm:bg-white lg:h-[100%] lg:min-h-[100vh]",children:[(0,l.jsxs)("div",{className:" flex w-full justify-between  bg-white px-2  py-2 lg:justify-center",children:[(0,l.jsx)(x(),{href:"/",className:"",children:(0,l.jsx)(p(),{src:"/images/DSCLogoFinal.png",alt:"log",width:d.width<600?100:200,height:100,className:""})}),(0,l.jsx)("div",{className:" flex items-center justify-center",children:(0,l.jsx)("div",{className:"lg:hidden",children:(0,l.jsx)(j,{show:s,session:t})})})]}),(0,l.jsx)("div",{className:"hidden lg:block",children:(0,l.jsxs)("div",{className:" flex flex-col ".concat(n?"items-center justify-center":""," gap-y-7 lg:my-6 lg:px-4"),children:[(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>r(0),className:"\n                ".concat(0===i?"bg-[#023047] text-white":""," \n                flex gap-4 rounded-full px-4 py-2 text-[18px] font-medium leading-5 transition delay-150 ease-in-out hover:-translate-y-1 hover:scale-110 md:w-[216px]"),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})}),"Dashboard"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>r(1),className:"\n                ".concat(1===i?"bg-[#023047] text-white":""," \n                flex gap-4 rounded-full px-4 py-2 text-[18px] font-medium leading-5 transition delay-150 ease-in-out hover:-translate-y-1 hover:scale-110 md:w-[216px]"),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})}),"User Profile"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>r(2),className:"\n                ".concat(2===i?"bg-[#023047] text-white":""," \n                flex gap-4 roun
1ded-full px-4 py-2 text-[18px] font-medium leading-5 transition delay-150 ease-in-out hover:-translate-y-1 hover:scale-110 md:w-[216px]"),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"})}),"Your Exams"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>r(3),className:"\n                ".concat(3===i?"bg-[#023047] text-white":""," \n                flex gap-4 rounded-full px-4 py-2 text-[18px] font-medium leading-5 transition delay-150 ease-in-out hover:-translate-y-1 hover:scale-110 md:w-[216px]"),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})}),"Subscription"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>r(4),className:"\n                ".concat(4===i?"bg-[#023047] text-white":""," \n                flex gap-4 rounded-full px-4 py-2 text-[18px] font-medium leading-5 transition delay-150 ease-in-out hover:-translate-y-1 hover:scale-110 md:w-[226px]"),children:[(0,l.jsx)("svg",{width:"25",height:"20",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M13.5 6.50004V12.075L18.1362 14.8563C18.307 14.9587 18.43 15.1248 18.4783 15.318C18.5266 15.5111 18.4962 15.7156 18.3937 15.8863C18.2913 16.057 18.1252 16.1801 17.9321 16.2284C17.7389 16.2766 17.5345 16.2462 17.3638 16.1438L12.3638 13.1438C12.2527 13.0771 12.1608 12.9827 12.097 12.8699C12.0333 12.757 11.9999 12.6296 12 12.5V6.50004C12 6.30113 12.079 6.11036 12.2197 5.96971C12.3603 5.82906 12.5511 5.75004 12.75 5.75004C12.9489 5.75004 13.1397 5.82906 13.2803 5.96971C13.421 6.11036 13.5 6.30113 13.5 6.50004ZM12.75 0.750039C11.2057 0.746025 9.67585 1.04845 8.2492 1.63979C6.82255 2.23114 5.5274 3.09965 4.43875 4.19504C3.36625 5.28004 2.43875 6.32004 1.5 7.42004V4.50004C1.5 4.30113 1.42098 4.11036 1.28033 3.96971C1.13968 3.82906 0.948912 3.75004 0.75 3.75004C0.551088 3.75004 0.360322 3.82906 0.21967 3.96971C0.0790175 4.11036 0 4.30113 0 4.50004V9.50004C0 9.69895 0.0790175 9.88972 0.21967 10.0304C0.360322 10.171 0.551088 10.25 0.75 10.25H5.75C5.94891 10.25 6.13968 10.171 6.28033 10.0304C6.42098 9.88972 6.5 9.69895 6.5 9.50004C6.5 9.30113 6.42098 9.11036 6.28033 8.96971C6.13968 8.82906 5.94891 8.75004 5.75 8.75004H2.34125C3.3575 7.53629 4.34875 6.41879 5.5 5.25004C6.92459 3.82552 8.73738 2.85241 10.7119 2.45227C12.6864 2.05214 14.735 2.24274 16.6018 3.00026C18.4685 3.75778 20.0707 5.04862 21.208 6.71149C22.3454 8.37436 22.9675 10.3355 22.9966 12.3499C23.0257 14.3644 22.4605 16.3427 21.3717 18.0377C20.2829 19.7328 18.7187 21.0694 
116.8746 21.8805C15.0305 22.6917 12.9883 22.9414 11.003 22.5985C9.01782 22.2556 7.17766 21.3353 5.7125 19.9525C5.64141 19.8825 5.55704 19.8273 5.46435 19.7902C5.37166 19.7532 5.2725 19.735 5.17269 19.7368C5.07289 19.7386 4.97444 19.7602 4.88312 19.8006C4.7918 19.8409 4.70945 19.899 4.64089 19.9716C4.57233 20.0441 4.51894 20.1296 4.48386 20.2231C4.44877 20.3165 4.4327 20.4161 4.43657 20.5158C4.44045 20.6155 4.4642 20.7135 4.50643 20.804C4.54866 20.8944 4.60852 20.9755 4.6825 21.0425C6.077 22.3595 7.77272 23.3151 9.62159 23.8259C11.4704 24.3366 13.4162 24.3869 15.289 23.9725C17.1618 23.558 18.9047 22.6914 20.3654 21.4483C21.8262 20.2052 22.9604 18.6233 23.669 16.8409C24.3776 15.0585 24.6391 13.1297 24.4306 11.223C24.2221 9.31622 23.55 7.4895 22.473 5.90232C21.396 4.31514 19.9468 3.01577 18.2519 2.11765C16.5571 1.21954 14.6681 0.750003 12.75 0.750039Z",fill:4===i?"#fff":"#023047"})}),"Payment History"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>r(5),className:"\n                ".concat(5===i?"bg-[#023047] text-white":""," \n                flex items-center gap-4 roun
1ded-full px-4 py-2 text-[18px] font-medium leading-5 transition delay-150 ease-in-out hover:-translate-y-1 hover:scale-110 md:w-[226px]"),children:[(0,l.jsx)(p(),{src:"/svg/Referrals.svg",alt:"Referral",width:30,height:30}),"Refer & Earn"]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:()=>(0,u.Pc)(),className:"\n                 \n                flex w-full gap-4 px-4 py-6 text-[16px] font-medium leading-5 ",children:[(0,l.jsx)(g.CmG,{className:" h-6 w-6"}),"Logout"]})})]})}),(0,l.jsx)("div",{className:"hidden lg:flex lg:flex-auto lg:flex-col lg:justify-end"})]})}var w=t(14608),N=t(89593),y=t(49703),k=t(89316),P=t(73165),A=t(26945),S=t(91444),M=t(91951),Z=t(35030),R=t(11163);function T(e){let{token:s,session:t}=e,[i,r]=(0,a.useState)(),n="en"===(0,R.useRouter)().locale,[d,o]=(0,a.useState)([]),[c,m]=(0,a.useState)(!1);async function h(e){m(!0);try{let s=await w.Z.get("".concat(N.USER_TEST_PROGRESS,"?populate=* "),null,{Authorization:e});return null==s?void 0:s.data.data}catch(e){m(!1),(0,u.P$)(e)}}async function f(){try{var e;m(!0);let t=await w.Z.get("".concat(N.USER_SUBSCRIPTION),null,{Authorization:s}),l=await (null===(e=t.data)||void 0===e?void 0:e.data);l.length>0&&(l.sort((e,s)=>(0,P.X)(s.attributes.createdAt,e.attributes.createdAt)),o(l)),m(!1)}catch(e){m(!1),(0,u.P$)(e)}}(0,a.useEffect)(()=>{s&&h(s).then(e=>{r(e),m(!1),f()},()=>{r([])})},[s]);let p=null==d?void 0:d.filter(e=>{var s,t;return(null===(s=e.attributes)||void 0===s?void 0:s.isActive)&&new Date("".concat(null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.expiryDate))>=new Date}),v=[],g=[];return p.map(e=>{var s,t,l,a,i,r,n,d,o,c,x,m,h,f,p,j,C,b;return(null===(r=e.attributes)||void 0===r?void 0:null===(i=r.subscription_plan)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:null===(t=l.tags)||void 0===t?void 0:null===(s=t.data)||void 0===s?void 0:s.length)?null==e?void 0:null===(m=e.attributes)||void 0===m?void 0:null===(x=m.subscription_plan)||void 0===x?void 0:null===(c=x.data)||void 0===c?void 0:null===(o=c.attributes)||void 0===o?void 0:null===(d=o.tags)||void 0===d?void 0:null===(n=d.data)||void 0===n?void 0:n.map(e=>{var s;return v.push((0,u.LR)(null==e?void 0:null===(s=e.attributes)||void 0===s?void 0:s.slug,"-kn"))}):null===(b=e.attributes)||void 0===b?void 0:null===(C=b.subscription_plan)||void 0===C?void 0:null===(j=C.data)||void 0===j?void 0:null===(p=j.attributes)||void 0===p?void 0:null===(f=p.categories)||void 0===f?void 0:null===(h=f.data)||void 0===h?void 0:h.map(e=>{var s;return g.push((0,u.LR)(null==e?void 0:null===(s=e.attributes)||void 0===s?void 0:s.slug,"-kn"))})}),null===Z.Z||void 0===Z.Z||Z.Z.filter(e=>{var s,t;return null===(t=e.innerSubjects)||void 0===t?void 0:null===(s=t.flatMap(e=>{var s,t;return(null==v?void 0:v.includes(e.slug))||(null===(t=e.slug)||void 0===t?void 0:null===(s=t.split("_"))||void 0===s?void 0:s.some(e=>null==v?void 0:v.find(s=>e===s)))}))||void 0===s?void 0:s.includes(!0)}),Z.Z.filter(e=>null==g?void 0:g.includes(e.catergorySlug)),(0,l.jsx)("div",{className:"text-lg font-bold",children:c?(0,l.jsxs)("div",{className:"mt-8 flex w-full flex-col justify-center space-y-3 px-20",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"}),(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"})]}),(0,l.jsx)(y.O,{className:"h-[100px] w-full rounded-xl bg-slate-300"})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)(S.Ix,{}),(0,l.jsxs)("div",{className:" max-sm:py-1",children:[(0,l.jsxs)("div",{className:"my-4 max-sm:pl-5",children:[(0,l.jsxs)("div",{className:"text-md  font-medium text-[#8F92A1] md:px-20",children:["Hello"," ",(0,l.jsx)("span",{className:" capitalize",children:null==t?void 0:t.user.username}),", Welcome back \uD83D\uDC4B\uD83C\uDFFB"]}),(0,l.jsxs)("div",{className:"mb-4 text-4xl text-[#272835] md:px-20",children:["Your Dashboard"," "]})]}),(0,l.jsx)("div",{className:" flex flex-col gap-5  md:pl-20 xl:px-20 ",children:(0,l.jsxs)("div",{className:" flex flex-col-reverse gap-4",children:[(0,l.jsx)("div",{className:" w-full",children:(0,l.jsxs)("div",{className:"h-full max-h-[400px] overflow-y-auto  rounded-lg bg-white p-4 max-sm:w-full max-sm:py-5",children:[(0,l.jsx)("div",{className:"pb-4",children:"Recent Activity"}),(0,l.jsx)("div",{className:"",children:null==i?void 0:i.map((e,s)=>{var t;return(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 max-sm:grid-cols-1 lg:grid-cols-1  2xl:grid-cols-2 ",children:null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.testProgress.slice(-2).map((e,s)=>
1(0,l.jsxs)("div",{className:"flex  items-center gap-4 rounded-lg border bg-gradient-to-r from-[#FFFFFF] to-[#E4E2E2] p-2 shadow-sm max-sm:gap-10",children:[(0,l.jsxs)("div",{className:"w-26 h-26 relative inline-block",children:[(0,l.jsxs)("svg",{className:"-rotate-90 transform",width:"90",height:"90",viewBox:"0 0 100 100",children:[(0,l.jsx)("circle",{className:"text-gray-200",cx:"50",cy:"50",r:"44",strokeWidth:"12",fill:"none",stroke:"currentColor"}),(0,l.jsx)("circle",{className:"text-pink-600",cx:"50",cy:"50",r:"44",strokeWidth:"12",fill:"none",stroke:"currentColor",strokeDasharray:2*Math.PI*54,strokeDashoffset:2*Math.PI*54-Math.floor(e.totalAnswered/e.totalQuestions*100)/100*(2*Math.PI*54),style:{transition:"stroke-dashoffset 0.35s"}})]}),(0,l.jsxs)("div",{className:"absolute  inset-0 flex items-center justify-center text-lg font-bold",children:[Math.floor(e.totalAnswered/e.totalQuestions*100),"%"]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-3",children:[e.categoryName," -"," ",e.practiceTestName]}),(0,l.jsx)("div",{className:"text-sm font-extralight text-gray-900",children:(0,A.WU)(e.startTime,"dd MMM, hh:mm a")})]})]},s))},s)})})]})}),(0,l.jsxs)("div",{className:" grid w-full grid-cols-1 gap-4 rounded-lg    bg-white p-4  ",children:[(0,l.jsx)("div",{className:"px-4 ",children:(null==p?void 0:p.length)?"Your Subscriptions":""}),(null==p?void 0:p.length)?p.map((e,s)=>{var t,a,i,r,n,d;return(0,l.jsx)("div",{className:"px-4 max-sm:w-full",children:null==e?void 0:null===(d=e.attributes)||void 0===d?void 0:null===(n=d.subscription_plan)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:null===(i=r.attributes)||void 0===i?void 0:null===(a=i.categories)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.map((s,t)=>{var a,i,r,n,d,o,c,m,h,f,p,v,g,j,C,b;return(0,l.jsx)(k.Zb,{className:"my-2 border-[#77C03F] bg-white px-2 py-4 text-sm max-sm:px-3",children:(0,l.jsx)(k.aY,{className:"p-0",children:(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2    max-sm:justify-center  ",children:[(0,l.jsxs)("span",{className:" w-full basis-3/4 px-1 text-start  text-sm ",children:[null==e?void 0:null===(n=e.attributes)||void 0===n?void 0:null===(r=n.subscription_plan)||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:null===(a=i.attributes)||void 0===a?void 0:a.name,"-"," ",(0,l.jsx)("span",{className:" text-red-500",children:null==s?void 0:null===(d=s.attributes)||void 0===d?void 0:d.displayName})]}),(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(x(),{href:"/".concat(null===Z.Z||void 0===Z.Z?void 0:null===(c=Z.Z.filter(e=>{var t;return(0,u.LR)(null===(t=s.attributes)||void 0===t?void 0:t.slug,"-kn")===(null==e?void 0:e.catergorySlug)}))||void 0===c?void 0:null===(o=c[0])||void 0===o?void 0:o.catergorySlug,"/").concat(null!==(b=null===Z.Z||void 0===Z.Z?void 0:null===(p=Z.Z.filter(t=>{var l,a,i,r,n,d,o,c,x;let m=(0,u.LR)(null===(l=s.attributes)||void 0===l?void 0:l.slug,"-kn"),h=null==e?void 0:null===(o=e.attributes)||void 0===o?void 0:null===(d=o.subscription_plan)||void 0===d?void 0:null===(n=d.data)||void 0===n?void 0:null===(r=n.attributes)||void 0===r?void 0:null===(i=r.tags)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:a.map(e=>{var s;return(0,u.LR)(null==e?void 0:null===(s=e.attributes)||void 0===s?void 0:s.slug,"-kn")});return m===(null==t?void 0:t.catergorySlug)&&(null==t?void 0:null===(x=t.previousPapers)||void 0===x?void 0:null===(c=x.split("_"))||void 0===c?void 0:c.some(e=>null==h?void 0:h.find(s=>s===e)))}))||void 0===p?void 0:null===(f=p[0])||void 0===f?void 0:null===(h=f.innerSubjects)||void 0===h?void 0:null===(m=h[0])||void 0===m?void 0:m.slug)&&void 0!==b?b:"model-paper"),locale:null==e?void 0:null===(C=e.attributes)||void 0===C?void 0:null===(j=C.subscription_plan)||void 0===j?void 0:null===(g=j.data)||void 0===g?void 0:null===(v=g.attributes)||void 0===v?void 0:v.locale,className:" rounded-xl bg-gradient-to-r from-[#f9801c] to-[#ed5f69] px-5 py-2 text-sm text-white shadow-lg hover:translate-y-1",children:"Start"})})]})})})},t)})},s)}):(0,l.jsx)(M.Z,{className:" grid-cols-2",tet:[{title:"SDA FDA Test Series",href:"/sda-fda/previous-papers",locale:"SDA FDA Test Series",subtitle:"detailed explanation  for every question",description:"SDA FDA Previous Papers&Compulsory Kannada Practice Tests&Detailed Explanations for Every Question",english:!0,active:!0,bottonText:"Practice Now"},{title:" RRB NTPC Test Series",href:"/rrb/previous-papers_2021",locale:" RRB NTPC Test Series",subtitle:"",description:"2021 Previous Papers & 2022 Previous Papers&31 Mock Test Papers&Detailed Explanations for Every Answer",english:!0,active:!0,bottonText:"Practice Now"},{title:" RRB Group D Test Series",href:"/rrb-group-d/previous-papers_2022",locale:"RRB Group D Test Series",subtitle:"2022 Previous Papers",description:"90+ Previous Papers&31 Mock Test Papers&Detailed Explanations for Every Answer",english:!0,active:!0,bottonText:"Practice Now"},{title:"GK & Current Affairs",href:"/gk-and-current-affairs/model-paper",locale:"GK & Current Affairs",subtitle:"detailed explanation  for every question",description:"Daily GK & Current Affairs &Detailed Explanations for Every Answer",english:!0,active:!0,bottonText:"Practice Now"},{title:"SSC GD Constable Test Series",href:"/ssc-gd-constable/model-paper",locale:"SSC GD Constable Test Series",subtitle:"detailed explanation  for every question",description:"60 Practice Papers&97 Previous Paper",english:!0,active:!0,bottonText:"Practice Now"},{title:"PDO",href:"/pdo",locale:"PDO",description:n?"60 Practice Papers&54 Previous Papers& 14 Subject Wise Practice Papers":"60 Practice Papers & 48 Previous Year Question Papers & 14 Subject Wise Practice Papers",english:!0,active:!1,bottonText:"Practice Now"},{title:"VAO",href:"/vao",locale:"VAO",description:n?"90 Practice Papers&55 Previous Papers":"9
10 Practice Papers&45 Previous Papers",english:!0,active:!1,bottonText:"Practice Now"},{title:"Agriculture Officers Notification",href:"/ao-exam-info",locale:" Agriculture Officers Notification",description:"",english:!0,active:!0,bottonText:"Notification"},{title:"Assistant Agriculture Officers Notification",href:"/aao-exam-info",locale:"Assistant Agriculture Officers Notification",description:"",english:!0,active:!0,bottonText:"Notification"}]})]})]})}),(0,l.jsxs)("div",{className:"my-4 w-full overflow-x-auto max-sm:px-5 md:pl-20 xl:pr-20",children:[(0,l.jsx)("div",{className:" mb-4 text-[18px] font-semibold text-[#272835]",children:"Recently Attempted Tests"}),(0,l.jsx)("div",{className:"  rounded-lg bg-white p-4 text-[16px]",children:(0,l.jsxs)("div",{className:"space-y-2 ",children:[(0,l.jsxs)("div",{className:"flex justify-between rounded-lg bg-gray-200 font-bold ",children:[(0,l.jsx)("div",{className:" py-2 text-center max-sm:w-1/5",children:"Test Name"}),(0,l.jsx)("div",{className:" py-2 text-center max-sm:w-1/5",children:"Action"})]}),(0,l.jsx)("div",{children:null==i?void 0:i.map((e,s)=>{var t;return null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.testProgress.slice(-4).map((e,t)=>(0,l.jsxs)("div",{className:"mb-4 flex items-center justify-between  rounded-lg border-2 from-[#f8600c] to-[#f27d01] text-sm transition   duration-300 even:bg-gradient-to-r even:text-white hover:scale-105",children:[(0,l.jsxs)("div",{className:" basis-1/2  px-4 py-3 text-center   max-sm:text-base",children:[e.categoryName," - ",e.practiceTestName]}),(0,l.jsx)("div",{className:" w-full   py-3 text-center max-sm:basis-1/2 lg:basis-1/3   ",children:(0,l.jsx)(x(),{href:"/".concat((0,u.LR)(null==e?void 0:e.categorySlug,"-kn"),"/model-paper/").concat(null==e?void 0:e.practiceTestSlug),locale:null==e?void 0:e.locale,className:"rounded-full bg-[#ff8400] px-3 py-1 text-center text-[14px] text-white",children:"Re-Take Test"})})]},"".concat(s,"-").concat(t)))})})]})})]})]})]})})}var D=t(56901),E=t(17004);function O(e){var s,t,i,r;let{token:n}=e,[d,o]=(0,a.useState)({}),[c,x]=(0,a.useState)({}),[m,h]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),[v,g]=(0,a.useState)(!1),j=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,C=(0,E.T)();async function b(e){try{var s;return(await w.Z.get("".concat(N.USER_DETAILS,"/").concat(null==C?void 0:null===(s=C.user)||void 0===s?void 0:s.id),null,{Authorization:e})).data}catch(e){throw g(!1),(0,u.P$)(e),(null==e?void 0:e.status)!==498&&S.Am.error(e.data.error.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"}),e}}async function k(){try{var e;g(!0);let s=await w.Z.put("".concat(N.UPDATE_PROFILE),d,{Authorization:n});if(400===s.status)throw Error("Invalid Inputs");return g(!1),(null===(e=s.data)||void 0===e?void 0:e.message)==="success"&&S.Am.success(s.data.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"}),s.data}catch(e){throw g(!1),(null==e?void 0:e.status)!==498&&S.Am.error(e.data.error.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"}),e}}async function P(e){e.preventDefault();try{if(g(!0),c.currentPassword.length&&c.password.length&&c.passwordConfirmation){let e=await w.Z.post("".concat(N.PASSWORD_CHANGE),new URLSearchParams({currentPassword:c.currentPassword,password:c.password,passwordConfirmation:c.passwordConfirmation}),{Authorization:n});return 200===e.status&&p(!0),g(!1),e.data}throw Error("")}catch(e){if(g(!1),(null==e?void 0:e.status)!==498){var s,t;S.Am.error(null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(s=t.error)||void 0===s?void 0:s.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"})}}}(0,a.useEffect)(()=>{g(!0),b(n).then(e=>{o(e),g(!1)},()=>{o({})})},[n]);let A=e=>{let{value:s,name:t}=e.target;o(e=>({...e,[t]:s}))},M=e=>{let{value:s,name:t}=e.target;x(e=>({...e,[t]:s}))};function Z(e){var s,t;e.preventDefault(),delete d.blocked,delete d.isPremium,delete d.confirmed,delete d.createdAt,delete d.username,delete d.provider,delete d.updatedAt,d.email&&d.firstName&&d.lastName&&((null===(s=d.phoneNumber)||void 0===s?void 0:s.length)===0||(null===(t=d.phoneNumber)||void 0===t?void 0:t.length)===10)&&n?k():S.Am.error("Invalid Input",{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"})}function R(e){h(!0),Object.values(c).every(e=>!!e)&&P(e)}return(0,l.jsxs)("div",{children:[(0,l.jsx)(S.Ix,{}),v?(0,l.jsxs)("div",{className:"mt-8 flex w-full flex-col  justify-center space-y-3 px-20",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"}),(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"})]}),(0,l.jsx)(y.O,{className:"h-[100px] w-full rounded-xl bg-slate-300"})]}):(0,l.jsx)("div",{children:d?(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:" my-20 px-20",children:[(0,l.jsx)("div",{className:" flex justify-between",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:" my-1 text-[24px] font-medium leading-9 text-black",children:"Account Information"}),(0,l.jsx)("p",{className:" text-[14px] font-light leading-5 text-black",children:"Update your account information"})]})}),(0,l.jsx)("div",{className:" my-5 text-[18px] font-medium leading-7 text-black",children:"Personal Information"}),(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("form",{onSubmit:Z,children:[(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"email",className:" block",children:"Gender"}),(0,l.jsxs)("div",{className:"flex  md:flex-row md:gap-8",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("input",{type:"radio",name:"gender",id:"gender-m",className:" h-7 w-7 border border-[#cccccc] bg-[#f9f9f9]",onChange:A,checked:"male"===d.gender,value:"male"})," ",(0,l.jsx)("span",{children:"Male"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("input",{type:"radio",name:"gender",id:"gender-f",className:" h-7 w-7 border border-[#cccccc] bg-[#f9f9f9]",onChange:A,checked:"female"===d.gender,value:"female"})," ",(0,l.jsx)("span",{children:"Female"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("input",{type:"radio",name:"gender",id:"gender-o",className:" h-7 w-7 border border-[#cccccc] bg-[#f9f9f9]",onChange:A,checked:"others"===d.gender,value:"others"})," ",(0,l.jsx)("span",{children:"Others"})]})]}),(null===(s=d.email)||void 0===s?void 0:s.length)>0&&!j.test(d.email)&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Email is invali
1d"})]}),(0,l.jsxs)("div",{className:" grid w-[840px] place-content-between gap-8 max-sm:w-full max-sm:grid-cols-1 sm:w-full sm:grid-cols-1 md:grid-cols-2 lg:w-[730px] lg:grid-cols-2 xl:grid-cols-2 ",children:[(0,l.jsxs)("div",{className:"text-[14px] font-medium leading-5",children:[(0,l.jsx)("label",{htmlFor:"firstName",className:" block text-[14px] font-medium leading-5",autoSave:"",children:"First Name"}),(0,l.jsx)("input",{type:"text",name:"firstName",id:"firstName",className:" h-[52px]  w-[400px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full md:w-full lg:w-[340px]",onChange:A,value:d.firstName}),!d.firstName&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"First name is required"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"lastName",className:" block",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"lastName",id:"lastName",className:" h-[52px]  w-[400px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full md:w-full lg:w-[340px]",onChange:A,value:d.lastName}),!d.lastName&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Last name is required"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"date",className:" block",children:"Date if Birth"}),(0,l.jsx)("input",{type:"date",name:"dateOfBirth",id:"date",onChange:A,className:"h-[52px]  w-[400px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full md:w-full lg:w-[340px]",value:d.dateOfBirth})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"mobilePhone",className:" block",children:"Mobile Phone"}),(0,l.jsx)("input",{type:"text",name:"phoneNumber",id:"mobilePhone",className:" h-[52px]  w-[400px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full md:w-full lg:w-[340px]",onChange:A,value:d.phoneNumber}),(null===(t=d.phoneNumber)||void 0===t?void 0:t.length)!==10&&(null===(i=d.phoneNumber)||void 0===i?void 0:i.length)>0&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Phone number must be atleast 10 characters"})]})]}),(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"email",className:" block",children:"Email"}),(0,l.jsx)("input",{type:"email",name:"email",id:"email",className:" h-[52px] w-[840px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] opacity-80 max-sm:w-full sm:w-full lg:w-[730px]",onChange:A,disabled:!0,value:d.email}),!d.email&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Email is required"}),(null===(r=d.email)||void 0===r?void 0:r.length)>0&&!j.test(d.email)&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Email is invalid"})]}),(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"email",className:" block",children:"Occupation"}),(0,l.jsx)("input",{type:"text",name:"occupation",id:"occupation",className:" h-[52px] w-[840px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full lg:w-[730px]",onChange:A,value:d.occupation})]}),(0,l.jsx)(D.z,{onClick:Z,variant:"outline",className:" my-5 h-[52px] w-[201px] rounded-[8px] bg-gradient-to-r from-[#f8600c] to-[#f27d01] text-base font-semibold leading-6 text-white",children:"Update"})]})}),(0,l.jsxs)("div",{className:"my-8",children:[(0,l.jsx)("div",{className:"mb-5",children:(0,l.jsx)("h1",{className:" my-1 text-[24px] font-medium leading-9 text-black",children:"Change Password"})}),(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("form",{onSubmit:R,children:[(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"username",className:" block",children:"Email"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",className:" h-[52px] w-[840px] rounded-[8px] border bg-[#f9f9f9] max-sm:w-full  sm:w-full lg:w-[730px]",value:d.email})]}),f?(0,l.jsx)("div",{className:"bold text-[24px] leading-5 text-[#5635ae]",children:"Password updated !!"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"currentPassword",className:" block",children:"Current Password *"}),(0,l.jsx)("input",{type:"password",name:"currentPassword",id:"currentPassword",className:" h-[52px] w-[840p
1x] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full lg:w-[730px]",onChange:M,required:!0,value:c.currentPassword}),m&&!c.currentPassword&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Current Password is required"})]}),(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"password",className:" block",children:"New Password *"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",className:" h-[52px] w-[840px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full lg:w-[730px]",onChange:M,required:!0,value:c.password}),m&&!c.password&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Password is required"})]}),(0,l.jsxs)("div",{className:" my-5",children:[(0,l.jsx)("label",{htmlFor:"passwordConfirmation",className:" block",children:"Repeat New Password *"}),(0,l.jsx)("input",{type:"password",name:"passwordConfirmation",id:"passwordConfirmation",className:" h-[52px] w-[840px] rounded-[8px] border border-[#cccccc] bg-[#f9f9f9] max-sm:w-full sm:w-full lg:w-[730px]",onChange:M,required:!0,value:c.passwordConfirmation}),m&&!c.passwordConfirmation&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Confirm Password is required"}),c.password!=c.passwordConfirmation&&(0,l.jsx)("span",{className:" block text-base text-red-500",children:"Passwords do not match"})]}),(0,l.jsx)(D.z,{onClick:R,variant:"outline",className:" my-5 h-[52px] w-[201px] rounded-[8px] bg-gradient-to-r from-[#f8600c] to-[#f27d01] text-base font-semibold leading-6 text-white",children:"Update"})]})]})})]})]})}):(0,l.jsx)("div",{className:"text-xl",children:"No Results available."})})]})}let H=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("div",{className:"relative w-full overflow-auto",children:(0,l.jsx)("table",{ref:s,className:(0,r.cn)("w-full caption-bottom text-sm",t),...a})})});H.displayName="Table";let F=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("thead",{ref:s,className:(0,r.cn)("[&_tr]:border-b",t),...a})});F.displayName="TableHeader";let L=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("tbody",{ref:s,className:(0,r.cn)("[&_tr:last-child]:border-0",t),...a})});L.displayName="TableBody",a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("tfoot",{ref:s,className:(0,r.cn)("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",t),...a})}).displayName="TableFooter";let _=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("tr",{ref:s,className:(0,r.cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...a})});_.displayName="TableRow";let V=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("th",{ref:s,className:(0,r.cn)("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",t),...a})});V.displayName="TableHead";let B=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("td",{ref:s,className:(0,r.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a})});function I(e){let{token:s}=e,[t,i]=(0,a.useState)(),[r,n]=(0,a.useState)(!1);async function d(e){try{return(await w.Z.get("".concat(N.USER_SUBSCRIPTION),null,{Authorization:e})).data.data}catch(e){throw n(!1),(0,u.P$)(e),(null==e?void 0:e.status)!==498&&S.Am.error(e.data.error.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"}),e}}return(0,a.useEffect)(()=>{n(!0),d(s).then(e=>i(e),()=>{n(!1),i([])})},[s]),(0,l.jsx)("div",{children:r?(0,l.jsxs)("div",{className:"max-sm:px-2 md:px-20 ",children:[(0,l.jsx)(S.Ix,{}),(0,l.jsx)("div",{className:" my-10",children:(0,l.jsx)("div",{className:" text-[24px] font-bold leading-[48px] text-black",children:"Subscription"})}),(0,l.jsxs)("div",{children:[(null==t?void 0:t.length)===0?(0,l.jsx)("div",{className:" flex justify-center py-10 text-base font-bold text-[#006557] ",children:"No Subscriptions found"}):(0,l.jsxs)(H,{className:"rounded-[18px]",children:[(0,l.jsx)(F,{className:"bg-[#77C03F] text-base font-bold leading-[29px] text-white ",children:(0,l.jsxs)(_,{children:[(0,l.jsx)(V,{children:"Title"}),(0,l.jsx)(V,{children:"Subscription Plan"}),(0,l.jsx)(V,{children:"Start Date"}),(0,l.jsx)(V,{children:"End Date"}),(0,l.jsx)(V,{children:"Status"}),(0,l.jsx)(V,{children:"Updated Date"})]})}),(0,l.jsx)(L,{children:null==t?void 0:t.map(e=>{var s,t,a,i,r,n,d;return(0,l.jsxs)(_,{className:"text-base font-bold leading-[29px] text-[#006557]",children:[(0,l.jsx)(B,{children:null===(i=e.attributes.subscription_plan)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:null===(s=t.categories.data)||void 0===s?void 0:s.map(e=>e.attributes.displayName)}),(0,l.jsx)(B,{children:null===(d=e.attributes.subscription_plan)||void 0===d?void 0:null===(n=d.data)||void 0===n?void 0:null===(r=n.attributes)||void 0===r?void 0:r.name}),(0,l.jsx)(B,{children:(0,A.WU)(e.attributes.startDate,"MMM dd yyyy")}),(0,l.jsx)(B,{children:(0,A.WU)(e.attributes.expiryDate,"MMM dd yyyy")}),(0,l.jsx)(B,{className:"".concat(new Date("".concat(e.attributes.expiryDate))>=new Date?"":"text-red-700"),children:new Date("".concat(e.attributes.expiryDate))>=new Date?"Active":"Inactive"}),(0,l.jsx)(B,{children:(0,A.WU)(e.attributes.createdAt,"MMM dd yyyy")})]},e.id)})})]}),(0,l.jsxs)("div",{className:" my-5 py-5 text-center text-base font-bold text-black",children:["Contact Us:"," ",(0,l.jsxs)("span",{className:"font-normal",children:[(0,l.jsx)("a",{href:"mailto:[email protected]",className:" text-blue-500 underline",children:"[email protected]"})," ","premium for any help"]})]})]})]}):(0,l.jsxs)("div",{className:"mt-8 flex w-full flex-col justify-center space-y-3 px-20",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"}),(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"})]}),(0,l.jsx)(y.O,{className:"h-[100px] w-full rounded-xl bg-slate-300"})]})})}function U(e){let{token:s,session:t}=e,[i,r]=(0,a.useState)(),[,n]=(0,a.useState)(),[d,o]=(0,a.useState)(!1);async function c(e){o(!0);try{let s=await w.Z.get("".concat(N.USER_TEST_PROGRESS,"?populate=* "),null,{Authorization:e});return null==s?void 0:s.data.data}catch(e){o(!1),(0,u.P$)(e),(null==e?void 0:e.status)!==498&&S.Am.error(e.data.error.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"})}}async function m(){try{var e;o(!0);let t=await w.Z.get("".concat(N.USER_SUBSCRIPTION),null,{Authorization:s}),l=await (null===(e=t.data)||void 0===e?void 0:e.data);l.length>0&&(l.sort((e,s)=>(0,P.X)(s.attributes.createdAt,e.attributes.createdAt)),n(l[0])),o(!1)}catch(e){throw o(!1),(null==e?void 0:e.status)!==498&&S.Am.error(e.data.error.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"}),e}}return(0,a.useEffect)(()=>{s&&c(s).then(e=>{r(e),o(!1),m()},()=>{r([])})},[s]),(0,l.jsx)("div",{className:"text-lg font-bold",children:d?(0,l.jsxs)("div",{className:"mt-8 flex w-full flex-col justify-center space-y-3 px-20",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"}),(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"})]}),(0,l.jsx)(y.O,{className:"h-[100px] w-full rounded-xl bg-slate-300"})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)(S.Ix,{}),(null==i?void 0:i.length)===0?(0,l.jsx)("div",{className:"flex h-[50vh] items-center justify-center text-xl",children:"No Results available."}):(0,l.jsxs)("div",{className:" max-sm:py-1",children:[(0,l.jsxs)("div",{className:"my-8 max-sm:pl-5",children:[(0,l.jsxs)("div",{className:"text-md  font-medium text-[#8F92A1] md:px-20",children:["Hello"," ",(0,l.jsx)("span",{className:" capitalize",children:null==t?void 0:t.user.username}),", Welcome back \uD83D\uDC4B\uD83C\uDFFB"]}),(0,l.jsxs)("div",{className:"mb-10 text-4xl text-[#272835] md:px-20",children:["Your Exams"," "]})]}),(0,l.jsxs)("div",{className:"my-10 max-sm:px-3 md:pl-20",children:[(0,l.jsx)("div",{className:" mb-8 text-[18px] font-semibold text-[#272835]",children:"Recently Attempted Tests"}),(0,l.jsx)("div",{className:" overflow-y-auto",children:(0,l.jsx)("div",{className:" flex flex-col flex-wrap gap-5 lg:flex-row",children:null==i?void 0:i.map((e,s)=>{var t;return(0,l.jsx)("div",{className:"flex flex-col flex-wrap gap-5 lg:flex-row",children:null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.testProgress.map((e,s)=>(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:" flex flex-col gap-3 rounded-lg bg-white p-5 shadow-lg max-sm:w-full max-sm:py-5 md:w-[530px]",children:[(0,l.jsxs)("div",{className:" flex  text-base font-medium max-sm:gap-x-5 md:gap-x-10",children:[(0,l.jsx)("div",{children:"Test was taken"}),(0,l.jsxs)("div",{children:[" ",(0,A.WU)(e.startTime,"MMM dd yyyy")]}),(0,l.jsx)("div",{children:(0,A.WU)(e.startTime,"hh:mm:ss a")})]}),(0,l.jsxs)("div",{className:" max-sm:text-base",children:[e.categoryName," -"," ",e.practiceTestName]}),(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:" flex items-baseline justify-between md:gap-4",children:[(0,l.jsxs)("div",{className:" flex w-[50%] items-baseline justify-between",children:[(0,l.jsxs)("div",{className:" flex items-baseline gap-[6px]",children:[(0,l.jsx)("div",{className:" translate-y-5",children:(0,l.jsx)(p(),{src:"/images/score.png",width:26,height:26,alt:"score"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:" block text-[14px] text-black",children:"Status"}),(0,l.jsxs)("span",{className:" max-sm:text-base",children:[e.totalAnswered,"/",e.totalQuestions]})]})]}),(0,l.jsxs)("div",{className:" flex gap-[6px]",children:[(0,l.jsx)("div",{className:" flex h-7 w-7 translate-y-3 items-center justify-center rounded-[50%] bg-[#4d7cff]",children:(0,l.jsx)(p(),{src:"/images/avg.png",width:16,height:16,alt:"average"})}),(0,l.jsxs)("div",{className:" flex flex-col",children:[(0,l.jsx)("span",{className:" text-[14px] font-normal text-black",children:"Average"}),(0,l.jsxs)("span",{className:" text-base font-semibold text-[#4d7cff]",children:[Math.floor(e.totalAnswered/e.totalQuestions*100),"%"]})]})]})]}),(0,l.jsxs)("div",{className:"flex gap-2 max-sm:relative max-sm:-top-4 max-sm:flex-col max-sm:gap-4",children:[(0,l.jsx)("div",{className:" translate-y-3",children:(0,l.jsx)(x(),{href:"/".concat(null==e?void 0:e.stateSlug,"/").concat(null==e?void 0:e.categorySlug,"/").concat(null==e?void 0:e.practiceTestSlug),locale:null==e?void 0:e.locale,className:" rounded-[100px] bg-gradient-to-r from-[#f8600c] to-[#f27d01] px-5 py-2 text-[14px] text-white",children:"Re-Take"})}),(0,l.jsx)("div",{className:" translate-y-3",children:(0,l.jsx)(x(),{href:"/".concat(null==e?void 0:e.stateSlug,"/").concat(null==e?void 0:e.categorySlug,"/").concat(null==e?void 0:e.practiceTestSlug,"?isresume=true"),locale:null==e?void 0:e.locale,className:"".concat(e.isCompleted?"hidden":""," rounded-[100px] bg-gradient-to-r from-[#f8600c] to-[#f27d01] px-5 py-2 text-[14px] text-white"),children:"Resume"})})]})]})})]})},s))},s)})})})]})]})]})})}B.displayName="TableCell",a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)("caption",{ref:s,className:(0,r.cn)("text-muted-foreground mt-4 text-sm",t),...a})}).displayName="TableCaption";var W=t(96486);function z(e){var s;let{token:t}=e,[i,r]=(0,a.useState)([]),[n,d]=(0,a.useState)(!1);async function o(e){try{d(!0);let s=await w.Z.get("".concat(N.PAYMENT_HISTORY,"?pagination[limit]=100"),null,{Authorization:e});return d(!1),s.data.data}catch(e){d(!1),(0,u.P$)(e),((null==e?void 0:e.status)!==498||(null==e?void 0:e.status)!==403)&&S.Am.error(e.data.error.message,{position:"top-center",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"colored"})}}(0,a.useEffect)(()=>{o(t).then(e=>r(e),()=>{r([])})},[t]);let c=null===(s=W.sortBy(i,e=>{var s;return new Date(null==e?void 0:null===(s=e.attributes)||void 0===s?void 0:s.paymentDate)}))||void 0===s?void 0:s.reverse();return(0,l.jsx)("div",{children:n?(0,l.jsxs)("div",{className:"mt-8 flex w-full flex-col justify-center space-y-3 px-20",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"}),(0,l.jsx)(y.O,{className:"h-4 w-[140px] bg-slate-300"})]}),(0,l.jsx)(y.O,{className:"h-[100px] w-full rounded-xl bg-slate-300"})]}):(0,l.jsxs)("div",{className:"max-sm:px-2 md:px-20 ",children:[(0,l.jsx)(S.Ix,{}),(0,l.jsx)("div",{className:" my-10",children:(0,l.jsx)("div",{className:" text-[24px] font-bold leading-[48px] text-black",children:"Payment History"})}),(0,l.jsx)("div",{children:(null==c?void 0:c.length)===0?(0,l.jsx)("div",{className:" flex justify-center py-10 text-base font-bold text-[#006557] ",children:"No Payment History found"}):(0,l.jsxs)(H,{className:"rounded-[18px]",children:[(0,l.jsx)(F,{className:"bg-gradient-to-r from-[#f8600c] to-[#f27d01] text-base font-bold leading-[29px] text-white ",children:(0,l.jsxs)(_,{children:[(0,l.jsx)(V,{children:"Purchase Date"}),(0,l.jsx)(V,{children:"Title"}),(0,l.jsx)(V,{children:"Transaction Id"}),(0,l.jsx)(V,{children:"Mode of Payment"}),(0,l.jsx)(V,{children:"Amount"}),(0,l.jsx)(V,{children:"Status"})]})}),(0,l.jsx)(L,{children:null==c?void 0:c.map(e=>{var s,t,a,i,r,n,d;return(0,l.jsxs)(_,{className:"text-base font-bold leading-[29px] text-[#006557]",children:[(0,l.jsx)(B,{children:(0,A.WU)(null==e?void 0:null===(s=e.attributes)||void 0===s?void 0:s.paymentDate,"MMM dd yyyy")}),(0,l.jsx)(B,{children:null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.subscriptionName}),(0,l.jsxs)(B,{className:"group relative",children:[null==e?void 0:null===(i=e.attributes)||void 0===i?void 0:null===(a=i.transactionId)||void 0===a?void 0:a.slice(-8),(0,l.jsxs)("p",{className:"absolute z-10 w-[300px] rounded-xl bg-slate-200 p-2 opacity-0 group-hover:opacity-100 max-sm:-left-[100px] max-sm:-top-1/3 sm:-left-[150px] sm:-top-1/2 sm:w-[400px]",children:[" ",null==e?void 0:null===(r=e.attributes)||void 0===r?void 0:r.transactionId]})]}),(0,l.jsx)(B,{children:null==e?void 0:e.attributes.paymentMethod}),(0,l.jsxs)(B,{children:["₹ ",null==e?void 0:e.attributes.amount]}),(0,l.jsx)(B,{className:"".concat((null==e?void 0:null===(n=e.attributes)||void 0===n?void 0:n.paymentStatus)==="success"?"text-green-500":"text-red-500"," "),children:null==e?void 0:null===(d=e.attributes)||void 0===d?void 0:d.paymentStatus})]},e.id)})})]})})]})})}var q=e=>{let{token:s}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(S.Ix,{})})},Y=t(61165);function G(){let[e,s]=(0,a.useState)(0),{data:t,update:i}=(0,o.useSession)(),r=(0,Y.Z)(),n=(null==t?void 0:t.jwt)?"Bearer "+(null==t?void 0:t.jwt):void 0,d=async(e,s,t)=>{try{var l,a;let r={...null==s?void 0:s.user};delete r.blocked,delete r.isPremium,delete r.confirmed,delete r.createdAt,delete r.username,delete r.provider,delete r.updatedAt,delete r.freeTestTaken;let n=await w.Z.put(" ".concat(N.UPDATE_PROFILE),{...r,device_id:t,gender:null!==(a=null==s?void 0:null===(l=s.user)||void 0===l?void 0:l.gender)&&void 0!==a?a:"others"},{Authorization:e});if(200===n.status){let e={...s,user:{...null==s?void 0:s.user,device_id:t}};await i(e)}}catch(e){}};return(0,a.useEffect)(()=>{var e,s;let l=localStorage.getItem("fcmToken");(l&&(null==t?void 0:null===(e=t.user)||void 0===e?void 0:e.device_id)!==l&&"null"!==l||(null==t?void 0:null===(s=t.user)||void 0===s?void 0:s.device_id)==="null"&&"null"!==l&&l)&&r&&n&&d(n,t,l)}
1,[n,t,r]),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row ",children:[(0,l.jsx)("div",{className:"  w-full  min-w-[260px] lg:w-1/6",children:(0,l.jsx)(b,{show:s,session:t})}),(0,l.jsxs)("div",{className:"bg-[#ECF2F5] lg:w-5/6  ",children:[(0,l.jsx)("div",{className:" hidden lg:block",children:(0,l.jsx)(h,{})}),0===e&&(0,l.jsx)("div",{className:"",children:(0,l.jsx)(T,{token:n,session:t})}),1===e&&(0,l.jsx)("div",{children:(0,l.jsx)(O,{token:n})}),2===e&&(0,l.jsx)("div",{children:(0,l.jsx)(U,{token:n,session:t})}),3===e&&(0,l.jsx)("div",{children:(0,l.jsx)(I,{token:n})}),4===e&&(0,l.jsx)("div",{children:(0,l.jsx)(z,{token:n})}),5===e&&(0,l.jsx)("div",{children:(0,l.jsx)(q,{token:n})})]})]})}var $=t(37211),Q=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)($.Z,{}),(0,l.jsx)(G,{})]})}},function(e){e.O(0,[3662,7237,9866,8159,5399,763,5030,2888,9774,179],function(){return e(e.s=26117)}),_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.