PageSourceSearch

https://supermocks.com/_next/static/chunks/pages/settings-58121091e4d812a0.js

js supermocks.com collected 2026-09-24 14:57:03 UTC 35,376 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{9404:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},92509:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},28142:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},38356:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return n(15865)}])},47628:function(e,t,n){"use strict";n.d(t,{nf:function(){return O},zL:function(){return N},OM:function(){return C},W9:function(){return H},ju:function(){return z},EO:function(){return T},_J:function(){return S},LV:function(){return p},$M:function(){return m},yO:function(){return h},Q9:function(){return L},$9:function(){return y},T0:function(){return I},io:function(){return D},Pv:function(){return x},jZ:function(){return k},yZ:function(){return U},s$:function(){return R},TJ:function(){return M},GP:function(){return _},An:function(){return v},t5:function(){return B},M_:function(){return P},AK:function(){return F},Cg:function(){return E},JH:function(){return g},Mw:function(){return J},nh:function(){return V},q5:function(){return A},oi:function(){return K},vk:function(){return b}});var r=n(47568),o=n(26042),a=n(69396),i=n(97582),s=n(29061),c=n(47041),u=n(96076),l=n(81354),d=n.n(l);function f(e){return d().SHA256(e).toString()}var p=function(e){var t=new FormData,n={};Object.keys(e).forEach((function(r){n[r]="".concat(e[r]),t.append(r,"".concat(e[r]))}));var r=f(JSON.stringify(n));return s.Z.post("/post/createOrderv2",t).then((function(e){var t;return e.data?(0,a.Z)((0,o.Z)({},e.data),{isSameSignature:(null===(t=e.data)||void 0===t?void 0:t.signature)===r,encryptedString:r}):null}))},h=function(e){var t=new FormData,n={};Object.keys(e).forEach((function(r){n[r]="".concat(e[r]),t.append(r,"".concat(e[r]))}));var r=f(JSON.stringify(n));return s.Z.post("/post/createSubscriptionForPayment",t).then((function(e){var t;return e.data?(0,a.Z)((0,o.Z)({},e.data),{isSameSignature:(null===(t=e.data)||void 0===t?void 0:t.signature)===r,encryptedString:r}):null}))},m=function(e){return s.Z.post("/post/createOrderForCart",e).then((function(e){return e.data}))},g=function(e){return s.Z.post("https://tempapi.classx.co.in/post/insert_rzp_options",e).then((function(e){return e.data}))},v=function(e){return s.Z.get("https://tempapi.classx.co.in/get/get_rzp_options",{params:{id:e}}).then((function(e){return e.data}))},x=function(e){var t=new FormData;return Object.keys(e).forEach((function(n){t.append(n,e[n])})),s.Z.post("/post/add_free_purchase",t).then((function(e){return e.data}))},b=function(e){return s.Z.get("/get/verify_pincode",{params:{pincode:e}}).then((function(e){return e.data}))},y=function(e){return fetch("https://api.postalpincode.in/pincode/".concat(e)).then((function(e){return e.json()}))},_=function(e,t,n,r){return s.Z.get("/get/get_all_purchases",{baseURL:e,params:(0,o.Z)({userid:t,item_type:n},["10","7","8"].includes(String(n))&&r?{paid_status:r}:{})}).then((function(e){return e.data.data}))},j=function(e,t,n,r){return s.Z.get("/get/get_all_purchasesv2",{baseURL:e,params:(0,o.Z)({userid:t,item_type:n},["10","7","8"].includes(String(n))&&r?{paid_status:r}:{})}).then((function(e){return e.data.data}))},w=function(e,t){return s.Z.get("/get/mycourseweb",{baseURL:e,params:{userid:t}}).then((function(e){return e.data.data}))},Z=function(e,t){return s.Z.get("/get/purchasedtest_series",{baseURL:e,params:{userid:t}}).then((function(e){return e.data.data}))},N=function(e,t,n,r,a,i,l){var d=(0,c.getCookie)(u.JR)||-1;return s.Z.get("/get/discount_coupon",{params:(0,o.Z)({coupon_code:e,user_id:d,item_id:t,item_type:n,installment_no:r,pricing_plan_id:a,is_cart_coupon:i},l?{upgrade_from:l}:"")}).then((function(e){return e.data.discount}))},k=function(){return s.Z.get("/get/cart_coupons").then((function(e){return e.data.data}))},C=function(e,t,n,r,o,a,i){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"https://thetestpassapi.akamai.net.in",d=(0,c.getCookie)(u.JR)||-1;return s.Z.get("/get/discount_coupon",{baseURL:l,params:{coupon_code:e,user_id:d,item_id:t,item_type:n,installment_no:r,pricing_plan_id:o,is_cart_coupon:a,client_api_url:i}}).then((function(e){return e.data.discount}))},O=function(e){var t=new FormData;return Object.keys(e).forEach((function(n){t.append(n,e[n])})),s.Z.post("post/validate_broker_id_and_add_purchase",t).then((function(e){return e.data}))},P=function(e,t){return s.Z.get("/get/get_user_dt",{baseURL:e,params:{userid:t}}).then((function(e){return e.data.data}))},R=function(e,t){return s.Z.get("/get/get_order_details",{baseURL:e,params:{order_id:t}}).then((function(e){return e.data.data}))},A=function(e){var t=new FormData;return Object.keys(e).forEach((function(n){t.append(n,e[n])})),s.Z.post("/post/update_order_detail",t).then((function(e){return e.data}))},S=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0";return s.Z.get("/get/checkemailforpurchase",{baseURL:e,params:{itemtype:t,itemid:n,email:r,is_extended:o}}).then((function(e){return e.data.data}))},E=function(e,t,n){var r=(0,c.getCookie)(u.JR);n=n||(0,c.getCookie)(u.KH);var i=new FormData;return Object.keys(t).forEach((function(e){i.append(e,t[e])})),fetch("".concat(e,"/post/insertleadsdata"),{method:"POST",headers:(0,a.Z)((0,o.Z)({},n?{Authorization:n}:{},r?{"User-ID":r}:{}),{"Client-Service":"Appx","Auth-Key":"appxapi",source:"website",Connection:"Keep-Alive","Keep-Alive":"timeout=5, max=200"}),body:i,keepalive:!0}).then((function(e){return e.json()})).then((function(e){return e}))},F=function(e){return s.Z.post("/post/savepaymentaddressdetails",e).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.data}))},M=function(e,t){return s.Z.get("/get/payment_page",{baseURL:e,params:{slug:t}}).then((function(e){return e.data.data}))},U=function(e){return s.Z.get("/purchases/generate-invoice-url",{params:{purchaseId:e}}).then((function(e){return e.data.data}))},I=function(){var e=(0,r.Z)((function(e){var t,n,r,s,c,u,l,d,f,p,h,m;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return t=e.baseURL,n=e.userId,r=e.type,s=e.unifyPurchaseAPI,c=e.showAlternateTypeIfNoPurchases,u=e.paid_status,d=r,s?[4,j(t,n,d,u)]:[3,4];case 1:return l=i.sent(),5!=d?[3,3]:[4,_(t,n,"5")];case 2:f=i.sent(),p=Object.fromEntries(f.filter((function(e){return e.returndt})).map((function(e){return[e.purchaseid,e.returndt]}))),l=l.map((function(e){return p[e.purchaseid]?(0,a.Z)((0,o.Z)({},e),{returndt:p[e.purchaseid]}):e})),i.label=3;case 3:return[3,10];case 4:return 1!=d?[3,6]:[4,w(t,n)];case 5:return h=i.sent(),l=h.map((function(e){return{itemid:e.id,itemtypeid:"1",itemtype:"C
1ourse",coursedt:[e]}})),[3,10];case 6:return 3!=d?[3,8]:[4,Z(t,n)];case 7:return m=i.sent(),l=m.map((function(e){return{itemid:e.id,itemtypeid:"3",itemtype:"Test Series",testseriesdt:[e]}})),[3,10];case 8:return[4,_(t,n,d,u)];case 9:l=i.sent(),i.label=10;case 10:return c&&0==(null===l||void 0===l?void 0:l.length)?(d=1==d?10:1,[4,s?j(t,n,d):_(t,n,d)]):[3,12];case 11:l=i.sent(),i.label=12;case 12:return[2,l]}}))}));return function(t){return e.apply(this,arguments)}}(),T=function(e){var t=e.item_id,n=e.item_type;return s.Z.post("/ytsubscription/cancel-subscription",{item_id:t,item_type:n}).then((function(e){return e.data}))},D=function(e,t,n){return s.Z.get("/telegram/fetchTelegramLink",{baseURL:e,params:{item_id:t,item_type:n}}).then((function(e){return e.data}))},L=function(){var e=(0,r.Z)((function(e){var t,n,r=arguments;return(0,i.__generator)(this,(function(o){return t=r.length>1&&void 0!==r[1]?r[1]:20,n=r.length>2?r[2]:void 0,[2,s.Z.get("/get/get_cart_items",{baseURL:e,params:{item_type:t,item_id:n}}).then((function(e){return e.data.data}))]}))}));return function(t){return e.apply(this,arguments)}}(),z=function(e){if(e)return s.Z.put("/payments/orders/".concat(e,"/cancel")).then((function(e){return e.data})).catch((function(e){return null}))},B=function(){return s.Z.get("/get/get_user_book_address",{params:{start:0}}).then((function(e){return e.data}))},J=function(e){return s.Z.post("/post/postBookAddress",e).then((function(e){return e.data}))},V=function(e){return s.Z.get("/Orders/sendOtp",{params:{phone:e}}).then((function(e){return e.data}))},K=function(e,t){return s.Z.post("/Orders/verifyOtp",{otp:e,phone:t}).then((function(e){return e.data}))},H=function(e,t){return s.Z.get("/get/canUserUpgradeCourse",{params:{itemId:e,itemType:t}}).then((function(e){return e.data}))}},32462:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(85893),o=n(59417),a=n(67814),i=n(95719),s=n(83024),c=n(60766),u=n(23149),l=n(84082);function d(e){var t=e.title,n=void 0===t?"Confirmation":t,d=e.subtitle,f=e.children,p=e.isOpen,h=e.toggle,m=e.onAccept,g=e.onReject,v=e.acceptLabel,x=void 0===v?"Proceed":v,b=e.rejectLabel,y=void 0===b?"Cancel":b,_=e.isLoading,j=void 0!==_&&_;return(0,r.jsxs)(i.Z,{isOpen:p,toggle:h,children:[(0,r.jsxs)(s.Z,{tag:"h5",toggle:h,children:[n,(0,r.jsx)("span",{className:"text-muted-foreground",children:d})]}),(0,r.jsx)(c.Z,{children:f}),(0,r.jsxs)(u.Z,{className:"justify-content-center border-top",children:[(0,r.jsxs)(l.Z,{disabled:j,color:"primary",onClick:m,children:[x," ",j&&(0,r.jsx)(a.G,{icon:o.LM3,spin:!0})]}),(0,r.jsx)(l.Z,{disabled:j,color:"default",className:"border",onClick:g,children:y})]})]})}},72685:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(26042),o=n(99534),a=n(85893),i=n(67294),s=n(62461),c=i.forwardRef((function(e,t){var n=e.className,i=e.type,c=(0,o.Z)(e,["className","type"]);return(0,a.jsx)("input",(0,r.Z)({type:i,className:(0,s.cn)("flex h-10 w-full rounded-md border border-foreground
1/50 bg-background px-3 py-2 text-base text-foreground file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-[13px]",n),ref:t},c))}));c.displayName="Input"},93223:function(e,t,n){"use strict";n.d(t,{_:function(){return d}});var r=n(26042),o=n(99534),a=n(85893),i=n(67294),s=n(49102),c=n(12003),u=n(62461),l=(0,c.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=i.forwardRef((function(e,t){var n=e.className,i=(0,o.Z)(e,["className"]);return(0,a.jsx)(s.f,(0,r.Z)({ref:t,className:(0,u.cn)(l(),n)},i))}));d.displayName=s.f.displayName},43341:function(e,t,n){"use strict";n.d(t,{J2:function(){return u},xo:function(){return l},yk:function(){return d}});var r=n(26042),o=n(99534),a=n(85893),i=n(67294),s=n(86419),c=n(62461),u=s.fC,l=s.xz,d=i.forwardRef((function(e,t){var n=e.className,i=e.align,u=void 0===i?"center":i,l=e.sideOffset,d=void 0===l?4:l,f=e.portalled,p=void 0===f||f,h=(0,o.Z)(e,["className","align","sideOffset","portalled"]),m=(0,a.jsx)(s.VY,(0,r.Z)({ref:t,align:u,sideOffset:d,className:(0,c.cn)("z-[100] w-72 rounded-md border bg-charcoal/50 p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[var(--radix-popover-content-transform-origin)]",n)},h));return p?(0,a.jsx)(s.h_,{children:m}):m}));d.displayName=s.VY.displayName},63755:function(e,t,n){"use strict";n.d(t,{Bw:function(){return x},Ph:function(){return p},Ql:function(){return b},i4:function(){return m},ki:function(){return h}});var r=n(26042),o=n(69396),a=n(99534),i=n(85893),s=n(67294),c=n(76405),u=n(8971),l=n(84979),d=n(13742),f=n(62461),p=c.fC,h=(c.ZA,c.B4),m=s.forwardRef((function(e,t){var n=e.className,s=e.children,l=(0,a.Z)(e,["className","children"]);return(0,i.jsxs)(c.xz,(0,o.Z)((0,r.Z)({ref:t,className:(0,f.cn)("flex h-10 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background transition-colors data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n)},l),{children:[s,(0,i.jsx)(c.JO,{asChild:!0,children:(0,i.jsx)(u.Z,{className:"h-4 w-4 opacity-50"})})]}))}));m.displayName=c.xz.displayName;var g=s.forwardRef((function(e,t){var n=e.className,s=(0,a.Z)(e,["className"]);return(0,i.jsx)(c.u_,(0,o.Z)((0,r.Z)({ref:t,className:(0,f.cn)("flex cursor-default items-center justify-center py-1",n)},s),{children:(0,i.jsx)(l.Z,{className:"h-4 w-4"})}))}));g.displayName=c.u_.displayName;var v=s.forwardRef((function(e,t){var n=e.className,s=(0,a.Z)(e,["className"]);return(0,i.jsx)(c.$G,(0,o.Z)((0,r.Z)({ref:t,className:(0,f.cn)("flex cursor-default items-center justify-center py-1",n)},s),{children:(0,i.jsx)(u.Z,{className:"h-4 w-4"})}))}));v.displayName=c.$G.displayName;var x=s.forwardRef((function(e,t){var n=e.className,s=e.children,u=e.position,l=void 0===u?"popper":u,d=e.portalled,p=void 0===d||d,h=(0,a.Z)(e,["className","children","position","portalled"]),m=(0,i.jsxs)(c.VY,(0,o.Z)((0,r.Z)({ref:t,className:(0,f.cn)("relative z-[100] max-h-[var(--radix-select-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[var(--radix-select-content-transform-origin)]","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:l},h),{children:[(0,i.jsx)(g,{}),(0,i.jsx)(c.l_,{className:(0,f.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,i.jsx)(v,{})]}));return p?(0,i.jsx)(c.h_,{children:m}):m}));x.displayName=c.VY.displayName,s.forwardRef((function(e,t){var n=e.className,o=(0,a.Z)(e,["className"]);return(0,i.jsx)(c.__,(0,r.Z)({ref:t,className:(0,f.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",n)},o))})).displayName=c.__.displayName;var b=s.forwardRef((function(e,t){var n=e.className,s=e.children,u=(0,a.Z)(e,["className","children"]);return(0,i.jsxs)(c.ck,(0,o.Z)((0,r.Z)({ref:t,className:(0,f.cn)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors duration-200 hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",n)},u),{children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(c.wU,{children:(0,i.jsx)(d.Z,{className:"h-4 w-4"})})}),(0,i.jsx)(c.eT,{children:s})]}))}));b.displayName=c.ck.displayName,s.forwardRef((function(e,t){var n=e.className,o=(0,a.Z)(e,["className"]);return(0,i.jsx)(c.Z0,(0,r.Z)({ref:t,className:(0,f.cn)("-mx-1 my-1 h-px bg-muted",n)},o))})).displayName=c.Z0.displayName},82050:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(67294);function o(e){var t,n=(0,r.useState)(null!==(t=e[0])&&void 0!==t?t:""),o=n[0],a=n[1],i=(0,r.useCallback)((function(e){var t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),window.history.replaceState(null,"","#".concat(e)),a(e))}),[]);return(0,r.useEffect)((function(){if(0!==e.length){var t=window.location.hash.slice(1);t&&e.includes(t)&&a(t)}}),[e]),(0,r.useEffect)((function(){var t=function(){cancelAnimationFrame(n),n=requestAnimationFrame((function(){return a(function(){var t,n=null!==(t=e[0])&&void 0!==t?t:"",o=!0,a=!1,i=void 0;try{for(var s,c=e[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var u=s.value,l=document.getElementById(u);l&&l.getBoundingClientRect().top<=r+4&&(n=u)}}catch(d){a=!0,i=d}finally{try{o||null==c.return||c.return()}finally{if(a)throw i}}return n}())}))};if(0!==e.length){var n,r=96;return window.addEventListener("scroll",t,{passive:!0}),function(){window.removeEventListener("scroll",t),cancelAnimationFrame(n)}}}),[e]),{activeId:o,scrollToSection:i}}},15865:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return A},default:function(){return S}});var r=n(85893),o=n(67294),a=n(11163),i=n(47568),s=n(26042),c=n(69396),u=n(97582),l=n(96486),d=n(89885),f=n(58907),p=n(69875),h=n(19201),m=n(35739),g=n(72685),v=n(93223);function x(){var e=(0,o.useContext)(d.Z),t=e.currentUser,n=e.setCurrentUser,a=(e.appConfig,(0,o.useRef)(null)),x=(0,o.useState)(),b=x[0],y=x[1],_=(0,o.useState)(!1),j=_[0],w=_[1],Z=(0,o.useState)(null),N=Z[0],k=Z[1];(0,o.useEffect)((function(){t&&y((0,l.pick)(t,["userid","name","phone","email","height","weight","gender","dob","aadhar_image_url"]))}),[t]);var C=function(){var e=(0,i.Z)((function(e){var r,o;return(0,u.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,p.ck)(b)];case 1:return 200===(r=a.sent()).status?(y((function(t){return(0,c.Z)((0,s.Z)({},t),{aadhar_image_url:e})})),n((0,c.Z)((0,s.Z)({},null!==t&&void 0!==t?t:{}),{aadhar_image_url:e})),h.A.success("Profile updated successfully")):h.A.error(r.data.message),[3,3];case 2:return o=a.sent(),h.A.error(o.response.data.message),[3,3];case 3:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=(0,i.Z)((function(){var e,t,n,r,o,s;return(0,u.__generator)(this,(function(c){switch(c.label){case 0:if(w(!0),!(n=null===(e=a.current)||void 0===e||null===(t=e.files)||void 0===t?void 0:t[0])||!(null===b||void 0===b?void 0:b.userid))return[3,4];r="".concat(b.userid,"-aadhar"),o=n.name.split(".").pop(),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,(0,f.c)({fileName:"".concat(r,".").concat(o),file:n,path:"user-aadhar/".concat(b.userid),cb:function(){var e=(0,i.Z)((function(e,t){return(0,u.__generator)(this,(function(n){switch(n.label){case 0:return w(!1),e?(k(e.message),[2]):t.Location?[4,C(t.Location)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}()})];case 2:return c.sent(),[3,4];case 3:return s=c.sent(),w(!1),console.error(s),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(v._,{className:"required",children:"Upload Aadhar Image"}),(0,r.jsx)("small",{className:"text-sm text-muted-foreground",children:"Make sure that both front and back of the Aadhar card are visible."})]}),(0,r.jsx)(g.I,{disabled:j,ref:a,type:"file",accept:"image/*",onChange:function(e){k(null);var t=e.target.files;if(t&&0!==t.length){if(t.length>1)return h.A.error("Only one file is allowed"),k("Only one file is allowed"),void(e.target.value="");t[0].size>2097152&&(h.A.error("File size exceeds 2MB"),k("File size exceeds 2MB"),e.target.value="")}}})]}),(0,r.jsx)(m.z,{disabled:j||!!(null===N||void 0===N?void 0:N.length),onClick:O,className:"w-fit",children:"Verify"})]})}var b=n(99020),y=n(88278),_=n(29815);function j(e){var t,n=e.data,o=e.loading,a=e.signedIn,i=void 0===a||a;if(o)return(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-6",children:Array.from({length:4}).map((function(e,t){return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,r.jsx)("div",{className:"h-20 w-20 rounded-full bg-gray-200 animate-pulse"}),(0,r.jsx)("div",{className:"h-4 w-16 rounded bg-gray-200 animate-pulse"})]},t)}))});var s=(0,_.Z)(null!==(t=null===n||void 0===n?void 0:n.badge_history)&&void 0!==t?t:[]);return 0===s.length?(0,r.jsx)("p",{className:"text-sm text-muted-foreground mb-0",children:i?"No badges earned yet.":"Sign in to view your badges."}):(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-6",children:s.map((function(e,t){return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,r.jsx)("div",{className:"h-20 w-20 flex items-center justify-center",children:(0,r.jsx)("img",{src:e.badge_url,alt:e.badge_name,className:"max-h-full max-w-full object-contain"})}),(0,r.jsx)("span",{className:"text-sm font-semibold text-center",children:e.badge_name})]},"".concat(e.badge_name,"-").concat(t))}))})}var w=n(93520),Z=n(47041),N=n(96076),k=n(47628),C=n(83609),O=n(82050),P=n(62461),R=[{id:"general",title:"General"},{id:"security",title:"Security"}],A=!0;function S(){var e,t,n=(0,a.useRouter)(),i=(0,o.useState)(null),s=i[0],c=i[1],u=(0,o.useState)(!0),l=u[0],f=u[1],p=(0,o.useState)(!1),h=p[0],m=p[1],g=(0,o.useContext)(d.Z),v=g.appConfig,_=g.currentUser,A=(0,o.useMemo)((function(){return(0,w.hb)(null===v||void 0===v?void 0:v.web_hideSecurityFields)}),[v]),S=(0,o.useMemo)((function(){return A?R.filter((function(e){return"security"!==e.id})):R}),[A]),E=(0,O.H)(S.map((function(e){return e.id}))),F=E.activeId,M=E.scrollToSection,U=(0,o.useMemo)((function(){return(0,w.hb)(null===v||void 0===v?void 0:v.web_enableaadharcoursemandatory)}),[v]),I=(0,o.useMemo)((function(){return(0,w.hb)(null===v||void 0===v?void 0:v.web_showUploadAdhaarinSettings)}),[v]),T=(0,o.useMemo)((function(){return I&&U&&(0,w.hb)(null===_||void 0===_?void 0:_.aadhar_status)}),[I,U,null===_||void 0===_?void 0:_.aadhar_status]);return(0,o.useEffect)((function(){var e,t=(0,Z.getCookie)(N.JR);t?(m(!0),(0,k.M_)((0,Z.getCookie)(N.z1),t).then((function(t){return c(null!==(e=null===t||void 0===t?void 0:t[0])&&void 0!==e?e:null)})).catch((function(e){return console.error("Error fetching badge details:",e)})).finally((function(){return f(!1)}))):f(!1)}),[]),(0,r.jsx)("main",{className:"flex flex-col",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 w-full flex flex-col gap-6",children:[(0,r.jsx)(C.Z,{breadcrumbs:[{label:"Home",href:"/"},{label:"Settings"}],onBack:function(){return n.push("/")},showCategoryRow:!1}),(0,r.jsx)("h1",{className:"text-3xl font-bold text-foreground",children:"Settings"}),(0,r.jsxs)("div",{className:"flex flex-col gap-10 lg:flex-row lg:gap-16",children:[(0,r.jsx)("aside",{className:"w-full shrink-0 lg:w-[220px]",children:(0,r.jsxs)("div",{className:"lg:sticky lg:top-24 lg:self-start",children:[(0,r.jsx)("div",{className:"flex h-[46px] items-start justify-center rounded-tl-[12px] rounded-tr-[12px] border border-border bg-card px-5 pt-[10px]",children:(0,r.jsx)("span",{className:"text-[13px] font-bold uppercase leading-none tracking-normal text-foreground",children:"On this page"})}),(0,r.jsx)("div",{className:"-mt-2 rounded-[12px] border-[1.5px] border-border bg-background dark:bg-secondary px-3 py-4",children:(0,r.jsx)("nav",{"aria-label":"On this page",className:"flex flex-col gap-3",children:S.map((function(e){var t=F===e.id;return(0,r.jsx)("a",{href:"#".concat(e.id),"aria-current":t?"location":void 0,onClick:function(t){t.preventDefault(),M(e.id)},className:(0,P.cn)("flex items-center truncate rounded-[4px] border-l-[3px] py-[7px] pr-[10px] pl-2 text-[13px] leading-none no-underline transition-colors",t?"border-primary dark:border-foreground bg-primary/10 dark:bg-accent text-primary font-bold dark:text-foreground":"border-transparent text-muted-foreground hover:text-foreground font-[400]"),children:e.title},e.id)}))})})]})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-8",children:[(0,r.jsxs)("section",{id:"general",className:"flex flex-col gap-4 border-b border-border pb-8 scroll-mt-24",children:[(0,r.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight text-foreground",children:"General"}),(0,r.jsx)(y.Z,{})]}),(0,r.jsxs)("section",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold tracking-tight text-foreground",children:"Badges"}),(0,r.jsx)("div",{className:(0,P.cn)((l||(null!==(t=null===s||void 0===s||null===(e=s.badge_history)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0)&&"bg-light p-6 rounded-2xl"),children:(0,r.jsx)(j,{data:s,loading:l,signedIn:h})})]}),!A&&(0,r.jsxs)("section",{id:"security",className:"flex flex-col gap-4 scroll-mt-24",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold tracking-tight text-foreground",children:"Security"}),(0,r.jsx)(b.Z,{})]}),T&&(0,r.jsxs)("section",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold tracking-tight text-foreground",children:"Aadhar Verification"}),(0,r.jsx)(x,{})]})]})]})]})})}},58907:function(e,t,n){"use strict";n.d(t,{c:function(){return _},s:function(){return j}});var r=n(47568),o=n(51438),a=n(28668),i=n(25892),s=n(76166),c=n(97582),u=n(29061),l=n(27432),d=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).name="UploadError",a.status=r,a}return n}((0,i.Z)(Error)),f=function(e){return new Promise((function(t){return setTimeout(t,e)}))},p=function(e){return{400:"Invalid request format",401:"Unauthorized access",403:"Permission denied",404:"Resource not found",408:"Request timeout",413:"File too large",422:"File format not supported",429:"Too many requests",500:"Server error",503:"Service unavailable"}[e]||"Unknown error occurred"};function h(e){return m.apply(this,arguments)}function m(){return m=(0,r.Z)((function(e){var t,n,r,o,a,i,s,u,l,h,m,g,v,x,b=arguments;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:t=b.length>1&&void 0!==b[1]?b[1]:{},n=t.maxRetries,r=void 0===n?3:n,o=t.baseDelay,a=void 0===o?1e3:o,i=t.retryStatusCodes,s=void 0===i?[408,413,422,429,500,503]:i,l=0,c.label=1;case 1:if(!(l<=r))return[3,7];c.label=2;case 2:return c.trys.push([2,4,,6]),[4,e()];case 3:return[2,c.sent()];case 4:if(h=c.sent(),u=h,g=(null===(m=h.response)||void 0===m?void 0:m.status)||500,!s.includes(g)||l===r)throw v="".concat(p(g)," (Status: ").concat(g,")"),new d(v,g);return x=a*Math.pow(2,l),[4,f(x)];case 5:return c.sent(),[3,6];case 6:return l++,[3,1];case 7:throw u}}))})),m.apply(this,arguments)}var g=function(e){return e.replaceAll(" ","-").replaceAll("&","and").replaceAll("+","-")};function v(e,t,n){return x.apply(this,arguments)}function x(){return x=(0,r.Z)((function(e,t,n){var r,o,a=arguments;return(0,c.__generator)(this,(function(i){switch(i.label){case 0:return r=a.length>3&&void 0!==a[3]?a[3]:"",o={filePath:e},n?o.type="test":r&&(o.type=r),[4,u.Z.post("/post/generateTencentWebsitePresignedUrl",o,{headers:{"Content-Type":t}})];case 1:return[2,i.sent().data.data]}}))})),x.apply(this,arguments)}function b(e,t,n,r){return y.apply(this,arguments)}function y(){return(y=(0,r.Z)((function(e,t,n,r){return(0,c.__generator)(this,(function(o){return[2,u.Z.put(e,t,{headers:{"Content-Type":n},onUploadProgress:r})]}))}))).apply(this,arguments)}var _=function(){var e=(0,r.Z)((function(e){var t,n,o,a,i,s,u,d,f,p,m,x,y,_,j,w,Z,N=arguments;return(0,c.__generator)(this,(function(k){switch(k.label){case 0:t=e.fileName,n=e.file,o=e.path,a=e.cb,i=e.progressCb,s=void 0===i?void 0:i,u=e.isTest,d=void 0!==u&&u,f=e.type,p=void 0===f?"":f,m=N.length>1&&void 0!==N[1]?N[1]:{maxRetries:0},k.label=1;case 1:return k.trys.push([1,3,,4]),x=g(t),y="".concat(o,"/").concat(x),_=l.Z.getType(t),j=function(){var e=(0,r.Z)((function(){var e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,v(y,_,d,p)];case 1:return[4,b((e=t.sent()).presignedUrl,n,_,s?function(e){s({loaded:e.loaded,total:e.total,lengthComputable:!0})}:void 0)];case 2:return t.sent(),[2,{Location:e.actualUrl}]}}))}));return function(){return e.apply(this,arguments)}}(),[4,h(j,m)];case 2:return w=k.sent(),a(null,w),[2,w];case 3:throw Z=k.sent(),console.error("Error in uploadFile:",Z),a(Z,null),Z;case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();function j(e){return w.apply(this,arguments)}function w(){return w=(0,r.Z)((function(e){var t,n,r,o,a,i,s,u,l,d=arguments;return(0,c.__generator)(this,(function(c){return t=e.fileName,n=e.file,r=e.path,o=e.progressCb,a=void 0===o?void 0:o,i=e.isTest,s=void 0!==i&&i,u=e.type,l=void 0===u?"":u,[2,h((function(){return new Promise((function(e,o){_({fileName:t,file:n,path:r,cb:function(t,n){if(t)return console.error(t),void o(t);e(n)},progressCb:a,isTest:s,type:l})}))}),d.length>1&&void 0!==d[1]?d[1]:{maxRetries:0})]}))})),w.apply(this,arguments)}},23149:function(e,t,n){"use strict";var r=n(67294),o=n(45697),a=n.n(o),i=n(93967),s=n.n(i),c=n(22040),u=["className","cssModule","tag"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={className:a().string,cssModule:a().object,tag:c.iC};function p(e){var t=e.className,n=e.cssModule,o=e.tag,a=void 0===o?"div":o,i=d(e,u),f=(0,c.mx)(s()(t,"modal-footer"),n);return r.createElement(a,l({},i,{className:f}))}p.propTypes=f,t.Z=p},86419:function(e,t,n){"use strict";n.d(t,{VY:function(){return H},ee:function(){return J},fC:function(){return B},h_:function(){return K},xz:function(){return V}});var r=n(67294),o=n(36206),a=n(28771),i=n(25360),s=n(90667),c=n(27552),u=n(95420),l=n(91276),d=n(94047),f=n(42651),p=n(29115),h=n(75320),m=n(88426),g=n(69939),v=n(23541),x=n(71930),b=n(85893),y=Object.defineProperty,_=(e,t)=>
1y(e,"name",{value:t,configurable:!0}),j="Popover",[w,Z]=(0,i.b)(j,[d.D7]),N=(0,d.D7)(),[k,C]=w(j),O=_((e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:s=!1}=e,c=N(t),u=r.useRef(null),[f,p]=r.useState(!1),[h,m]=(0,g.T)({prop:o,defaultProp:a??!1,onChange:i,caller:j});return(0,b.jsx)(d.fC,{...c,children:(0,b.jsx)(k,{scope:t,contentId:(0,l.M)(),triggerRef:u,open:h,onOpenChange:m,onOpenToggle:r.useCallback((()=>m((e=>!e))),[m]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:r.useCallback((()=>p(!1)),[]),modal:s,children:n})})}),"Popover"),P=r.forwardRef(_((function(e,t){const{__scopePopover:n,...o}=e,a=C("PopoverAnchor",n),i=N(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return r.useEffect((()=>(s(),()=>c())),[s,c]),(0,b.jsx)(d.ee,{...i,...o,ref:t})}),"PopoverAnchor")),R=r.forwardRef(_((function(e,t){const{__scopePopover:n,...r}=e,i=C("PopoverTrigger",n),s=N(n),c=(0,a.e)(t,i.triggerRef),u=(0,b.jsx)(h.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":z(i.open),...r,ref:c,onClick:(0,o.Mj)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,b.jsx)(d.ee,{asChild:!0,...s,children:u})}),"PopoverTrigger")),A="PopoverPortal",[S,E]=w(A,{forceMount:void 0}),F=_((e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=C(A,t);return(0,b.jsx)(S,{scope:t,forceMount:n,children:(0,b.jsx)(p.z,{present:n||a.open,children:(0,b.jsx)(f.h,{asChild:!0,container:o,children:r})})})}),"PopoverPortal"),M="PopoverContent",U=r.forwardRef(_((function(e,t){const n=E(M,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=C(M,e.__scopePopover);return(0,b.jsx)(p.z,{present:r||a.open,children:a.modal?(0,b.jsx)(T,{...o,ref:t}):(0,b.jsx)(D,{...o,ref:t})})}),"PopoverContent")),I=(0,m.Z8)("PopoverContent.RemoveScroll"),T=r.forwardRef(_((function(e,t){const n=C(M,e.__scopePopover),i=r.useRef(null),s=(0,a.e)(t,i),c=r.useRef(!1);return r.useEffect((()=>{const e=i.current;if(e)return(0,v.Ry)(e)}),[]),(0,b.jsx)(x.Z,{as:I,allowPinchZoom:!0,children:(0,b.jsx)(L,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.Mj)(e.onCloseAutoFocus,(e=>{e.preventDefault(),c.current||n.triggerRef.current?.focus()})),onPointerDownOutside:(0,o.Mj)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;c.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.Mj)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})}),"PopoverContentModal")),D=r.forwardRef(_((function(e,t){const n=C(M,e.__scopePopover),o=r.useRef(!1),a=r.useRef(!1);return(0,b.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),"PopoverContentNonModal")),L=r.forwardRef(_((function(e,t){const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,...m}=e,g=C(M,n),v=N(n);return(0,c.EW)(),(0,b.jsx)(u.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,b.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:h,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,b.jsx)(d.VY,{"data-state":z(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),"PopoverContentImpl"));function z(e){return e?"open":"closed"}_(z,"getState");var B=O,J=P,V=R,K=F,H=U}},function(e){e.O(0,[8534,7432,7270,3609,8257,1395,9774,2888,179],(function(){return t=38356,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.