1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3168],{68141:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/psychometric-assessment/[id]",function(){return n(49889)}])},66431:function(e,t,n){"use strict";n.d(t,{$:function(){return b2bCarrerAssessmentapi},GF:function(){return fetchDocListOfEntranceExam},QL:function(){return getReport},R0:function(){return getAssessmentDetailsApi},ZE:function(){return checkAssessmentStatus},bM:function(){return checkSubscription},tQ:function(){return paymentActionApi},zT:function(){return fetchAssessmentQuestions},zj:function(){return getDocumentIdbyRuleId}});var s=n(11826),o=n(71064);let fetchAssessmentQuestions=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.assessmentQuestions,"?productTypeId=").concat((null==e?void 0:e.productType)||0));return t},checkAssessmentStatus=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.isAssessmentSubscribed,"/").concat(e.userId,"/career-assessment/status?productType=").concat((null==e?void 0:e.productType)||0));return t},getReport=async e=>{let{data:t}=await s.Z.post("".concat(o.ZP.generateReport,"/").concat(e.assessmentId,"/user/").concat(e.userId,"/reports?productType=").concat((null==e?void 0:e.productType)||0));return t},checkSubscription=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.isAssessmentSubscribed,"/").concat(e.userId,"/career-assessment/check-subscription?productType=").concat((null==e?void 0:e.productType)||0));return t},getAssessmentDetailsApi=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.getAssessmentDetails,"/").concat(e.userId,"/list?productType=").concat((null==e?void 0:e.productType)||0));return t},paymentActionApi=async e=>{let{data:t}=await s.Z.post("".concat(o.ZP.paymentRequest,"/").concat(e.userId,"/payment"),e.data);return t},fetchDocListOfEntranceExam=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.documentTypeList,"/6"));return t},getDocumentIdbyRuleId=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.getDocumentIdbyRuleId,"/").concat(e,"/document-types"));return t},b2bCarrerAssessmentapi=async e=>{let{data:t}=await s.Z.get("".concat(o.ZP.getEnrollment,"/").concat(e.userId,"/b2b-carrer-assessment"));return t}},48710:function(e,t,n){"use strict";n.d(t,{m:function(){return applyCouponCode},t:function(){return paymentActionApi}});var s=n(11826),o=n(71064);let applyCouponCode=async e=>{let{data:t}=await s.Z.post("".concat(o.ZP.couponApply,"/").concat(e.userId,"/applyCoupons"),e.data);return t},paymentActionApi=async e=>{let{data:t}=await s.Z.post("".concat(o.ZP.paymentRequest,"/").concat(e.userId,"/payment"),e.data);return t}},15479:function(e,t,n){"use strict";n.d(t,{Z:function(){return SubscriptionPoup}});var s=n(85893),o=n(67294),r=n(24232),a=n.n(r),c=n(2039),u=n.n(c),i=n(24507),p=n(86455),l=n.n(p),d=n(48710),m=n(88767),Coupon=e=>{let{onClose:t,showLoader:n,setShowLoader:r}=e,[a,c]=(0,o.useState)(),[p,h]=(0,o.useState)(),[y,_]=(0,o.useState)(),[x,g]=(0,o.useState)(),[f,j]=(0,o.useState)(!1),[v,b]=(0,o.useState)(""),[C,I]=(0,o.useState)(299),[P,Z]=(0,o.useState)(0),w=i.ZP.getUserId(),{mutate:N}=(0,m.useMutation)(d.m,{onSuccess:e=>{(null==e?void 0:e.amount)===0&&(r(!0),window.location.reload()),(null==e?void 0:e.amount)&&Z(e.amount)},onError:e=>{Z(0),400==e.response.status&&l().fire({text:e.response.data.message,icon:"error"})},retry:1}),{mutate:S}=(0,m.useMutation)(d.t,{onSuccess:e=>{e.longurl?window.location.href=e.longurl:l().fire({text:"Something went wrong!",icon:"error",closeOnClickOutside:!1})},onError:e=>{400==e.response.status&&l().fire({text:e.response.data.message,icon:"error"})},retry:1}),A=i.ZP.isUserAuthenticated();return(0,o.useEffect)(()=>{A&&(c(null===i.ZP||void 0===i.ZP?void 0:i.ZP.getStoreUserDetails().firstName),h(i.ZP.getStoreUserDetails().lastName),_(i.ZP.getStoreUserDetails().email),g(i.ZP.getStoreUserDetails().mobile))},[A]),(0,s.jsx)("div",{className:u().popup,children:(0,s.jsxs)("div",{className:u().popupContent,children:[(0,s.jsx)("span",{className:u().close,onClick:t,children:"X"}),(0,s.jsxs)("p",{className:u().totalAmount,children:["Total Amount: â¹ ",C]}),(0,s.jsxs)("div",{className:u().couponCodeInner,children:[(0,s.jsx)("input",{className:u().couponInput,type:"text",placeholder:"First Name",value:a,onChange:e=>c(e.target.value)}),(0,s.jsx)("input",{className:u().couponInput,type:"text",placeholder:"Last Name",value:p,onChange:e=>h(e.target.value)}),(0,s.jsx)("input",{className:u().couponInput,type:"text",placeholder:"Email",value:y,onChange:e=>_(e.target.value)}),(0,s.jsx)("input",{className:u().couponInput,type:"text",placeholder:"Mobile",value:x,onChange:e=>g(e.target.value)}),(0,s.jsxs)("div",{className:u().haveCoupon,children:[(0,s.jsx)("input",{className:u().isCoupon,type:"checkbox",value:f,onChange:e=>j(!f)}),(0,s.jsx)("span",{children:"Have a coupon Code?"})]}),!0==f&&(0,s.jsx)("input",{className:u().couponInput,type:"text",placeholder:"Coupon",value:v,onCh
1ange:e=>b(e.target.value)}),(0,s.jsxs)("div",{className:u().actionButtons,children:[(0,s.jsx)("button",{onClick:()=>{if(0==v.length)return l().fire({text:"Please enter coupon code.",icon:"error",closeOnClickOutside:!1});N({userId:w,data:{uniqueCode:v,paymentPlanId:10}})},children:"Apply Coupon"}),(0,s.jsx)("button",{onClick:()=>{S({userId:w,data:{paidForUserId:w,paymentPlanId:10,initiatorUserId:w,amount:P,currency:"INR",paymentPartner:"Assessment",transactionMode:"D",transactionType:"D",gatewayRequest:!0,couponCode:v}})},children:"Proceed to Payment"})]}),(0,s.jsxs)("span",{className:u().discountInfo,children:["Discount: ",(0,s.jsxs)("b",{children:["â¹ ",P?(C-P).toFixed():0]})]}),(0,s.jsxs)("p",{className:u().discountInfo,children:["Amount to be paid: ",(0,s.jsxs)("b",{children:[" â¹",P?P.toFixed():C," "]})]})]})]})})},h=n(51473);function SubscriptionPoup(){let[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)(h.Z,{}),e&&(0,s.jsx)(Coupon,{onClose:()=>t(!1),setShowLoader:r,showLoader:n}),(0,s.jsx)("div",{className:a().popupContainer,children:(0,s.jsxs)("div",{className:a().popupContent,children:[(0,s.jsx)("h2",{className:a().popupTitle,children:"Subscribe now"}),(0,s.jsx)("div",{className:a().popupDescription,children:(0,s.jsxs)("ul",{style:{textAlign:"left"},children:[(0,s.jsx)("li",{children:"Congratulations for successfully completing the test. We have sent a snapshot of your report to your email id."}),(0,s.jsx)("li",{children:"We have also prepared a 25+ page detailed report for you to view & download."}),(0,s.jsx)("li",{children:"You can subscribe for INR 299 to download the report."})]})}),(0,s.jsx)("button",{className:a().payButton,onClick:()=>t(!0),children:"Subscribe Now"})]})})]})}},49889:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Index}});var s=n(85893);n(73416);var o=n(53637),r=n(35773),a=n(95305),c=n(67294),u=n(69248),i=n.n(u),p=n(63105),l=n(66431),d=n(11163),m=n(88767),h=n(24507),y=n(15479);function PsychometricReport(){var e,t;let[n,u]=(0,c.useState)(),[_,x]=(0,c.useState)(),[g,f]=(0,c.useState)(),j=null==n?void 0:n.subscribe,v=(0,d.useRouter)(),{id:b}=v.query;return(0,m.useQuery)(["assessment_status"],async()=>{let e=await (0,l.bM)({userId:h.ZP.getUserId()});e&&u(e)},{retry:1}),(0,m.useQuery)(["generate_report"],async()=>{if(b&&j){let e=await (0,l.QL)({userId:h.ZP.getUserId(),assessmentId:b});e&&f(e)}},{retry:1,enabled:!!j}),(0,c.useEffect)(()=>{h.ZP.getFullName()&&x(h.ZP.getFullName())},[]),(0,s.jsxs)(s.Fragment,{children:[!1==j&&(0,s.jsx)(y.Z,{}),(0,s.jsx)("div",{className:i().psychometricReport,children:(0,s.jsx)(o.Z,{children:(0,s.jsx)(r.Z,{children:(0,s.jsxs)(a.Z,{md:"12",children:[(0,s.jsx)("div",{className:i().heading,children:(0,s.jsx)("h2",{children:"Report"})}),(0,s.jsx)("div",{className:i().contentBox,children:(0,s.jsxs)(r.Z,{className:i().alignCenter,children:[(0,s.jsxs)(a.Z,{md:"6",children:[(0,s.jsxs)("h5",{children:["Hey ",_,"!"]}),(0,s.jsx)("p",{children:"Hope you enjoyed giving this comprehensive test! Based on your answers, we are now going to generate a detailed Career Report for you. This Career Report will give you details about your personality type and suggest you TOP career options that are best suited to your personality."})]}),(0,s.jsx)(a.Z,{md:"6",children:(0,s.jsx)("img",{style:{width:"100%"},src:"https://d2w7l1p59qkl0r.cloudfront.net/static/images/report.jpg"})})]})}),(0,s.jsxs)("div",{className:i().btnGroup,children:[g&&null!=g&&void 0!=g&&(0,s.jsx)("a",{href:g&&(null==g?void 0:null===(e=g.reports)||void 0===e?void 0:e[0])||"",target:"_Blank",children:(0,s.jsxs)(p.z,{className:i().btnOrange,children:["Download Report",(0,s.jsx)("br",{}),(0,s.jsx)("span",{children:"PDF"})]})}),g&&null!=g&&void 0!=g&&(null==g?void 0:null===(t=g.certificates)||void 0===t?void 0:t[0])&&(0,s.jsx)("a",{href:g&&(null==g?void 0:g.certificates[0])||"",target:"_Blank",children:(0,s.jsxs)(p.z,{className:i().btnOrange,children:["Download Certificate",(0,s.jsx)("br",{}),(0,s.jsx)("span",{children:"PDF"})]})})]})]})})})})]})}function Index(){return(0,s.jsx)(PsychometricReport,{})}},2039:function(e){e.exports={popup:"coupon_popup__tgapu",fadeIn:"coupon_fadeIn___j5B8",popupContent:"coupon_popupContent__3EXxo",slideIn:"coupon_slideIn__Qm0Pk",totalAmount:"coupon_totalAmount__MKFFP",couponInput
1:"coupon_couponInput__2eqNP",haveCoupon:"coupon_haveCoupon__g4Of_",actionButtons:"coupon_actionButtons___GVTo",discountInfo:"coupon_discountInfo__ZG9Sz",couponCodeInner:"coupon_couponCodeInner__CXpnR",close:"coupon_close__nsgJ7"}},69248:function(e){e.exports={psychometricReport:"PsychometricReport_psychometricReport__K3jG4",heading:"PsychometricReport_heading__EDBit",contentBox:"PsychometricReport_contentBox__W9fON",alignCenter:"PsychometricReport_alignCenter__E90Up",downloadLink:"PsychometricReport_downloadLink__hqjp5",btnGroup:"PsychometricReport_btnGroup__gCZzS",btnOrange:"PsychometricReport_btnOrange__MF3Cd"}},24232:function(e){e.exports={popupContainer:"subscription_popupContainer__imGC8",popupContent:"subscription_popupContent__GUfO3",popupTitle:"subscription_popupTitle__eUyWt",popupDescription:"subscription_popupDescription___PssW",payButton:"subscription_payButton__zfcHy"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=68141)}),_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.