PageSourceSearch

https://trykandor.com/static/js/PriceAdminPage.ca951ec4.chunk.js

js trykandor.com collected 2026-10-04 03:01:44 UTC 11,733 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkblk_design_system_pro_react=globalThis.webpackChunkblk_design_system_pro_react||[]).push([[45646],{52075:(e,s,c)=>{c.d(s,{A:()=>F});var r=c(81972),a=c(11761),i=c(81839),n=c(32078),l=c(52936),t=c(39098),d=c(65043),o=c(95237),p=c(91688),_=c(7385),h=c(78031),m=c(88338),x=c(33368),u=c(93568),j=c(57783),N=c(97670),v=c(16428),w=c(85830),f=c(77698),y=(c(655),c(60635)),g=c(52457),k=c(62955),S=c(72343),b=c(77979),A=c(97508),E=c(56479),C=c(89406),P=c(87151),T=c(70579);const F=({isLogin:e,isOffer:s=!1})=>{var F,L,I,z;const K=(0,p.useHistory)(),M=(0,p.useLocation)(),{data:U,refresh:D}=(0,t.w)(),O=(0,d.useRef)(null),[R,V]=((0,o.useMediaQuery)({query:"(max-width: 767px)"}),(0,d.useState)(null)),[B,q]=(0,d.useState)(1),[W,X]=(0,d.useState)(!1),H=(0,d.useRef)(null),J=(0,d.useRef)(null),[Q,$]=(0,d.useState)({is:!1,text:null}),[G,Y]=(0,d.useState)(!1),[Z,ee]=(0,d.useState)(!1),[se,ce]=(0,d.useState)([]),[re,ae]=(0,d.useState)([]),ie=window.innerWidth>0?window.innerWidth:window.screen.width,[ne,le]=(0,d.useState)(ie),te=(0,A.d4)((e=>e.prisePlans.items)),de=(0,A.d4)((e=>e.prisePlans.status)),[oe,pe]=(0,d.useState)(""),_e=((0,A.d4)((e=>e.prisePlans.error)),ne<=650),he=ne<=768,me=(0,A.wA)();function xe(e){return new Promise((s=>{const c=document.createElement("script");c.src=e,c.onload=()=>{s(!0)},c.onerror=()=>{s(!1)},document.body.appendChild(c)}))}(0,d.useEffect)((()=>{const e=()=>{window.innerWidth>0?le(window.innerWidth):le(window.screen.width),J.current&&H.current&&(J.current.style.maxHeight="0px"),X(!1)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),(0,d.useEffect)((()=>{V(M.pathname)}),[]),(0,d.useEffect)((()=>{0!==te.length||"idle"!=de&&"error"!=de||me((0,P.$l)())}),[de,te]),(0,d.useEffect)((()=>{if("success"===de&&te.length>0){const e=b.P.map((e=>{const s=te.find((s=>s.name.toLowerCase()===e.benefitsId.toLowerCase()));if(!s)return null;const c={...e,id:s.id,price:s.price,currency:s.currency,currency_sign:s.currency_sign};return"Essentials"===s.name&&pe(s.currency+" "+s.price),c})).filter(Boolean).sort(((e,s)=>e.price-s.price));ae(e)}}),[de,te]),(0,d.useEffect)((()=>{(0,a.J_)()&&ee(!0)}),[]);const ue=(0,r.c)("pk_live_51IsNDlDtyLXJc5zXOH0wNabDT0GGXwUiVdj4E972ZafX7pJ92ILLBNNwwQVhVF5XQkE696ddfCiidK8yQHk2JahV00Us4qDUkS"),je={razorpay:async(e,s,c)=>{if(await xe("https://checkout.razorpay.com/v1/checkout.js")){var r={key:"rzp_live_G44g9k1Dkx6lld",name:"Kandor",description:e.name,order_id:s.id,prefill:{name:c.userName,email:c.userMail,contact:c.phone},handler:async e=>{try{await(0,i.nW)(e);try{await D()}catch(e){console.log("self details refresh failed after Razorpay SUCCESS",e)}K.push(`/pricingSuccess/${s.transaction_id}`)}catch(e){console.log(e),K.push(`/pricingSuccess/${s.transaction_id}`)}finally{l.A.track("Finishing payment",{gateway:"razorpay"})}}};new window.Razorpay(r).open()}else alert("Razorpay SDK failed to load. please check are you online?")},stripe:async(e,s,c)=>{const r=await ue,a=await r.redirectToCheckout({sessionId:s.id});a.error&&$({is:!0,text:a.error.message})},klasha:async(e,s,c)=>{if(await xe("https://js.klasha.com/pay.js")){var r={currency:e.currency,phone_number:c.phone,email:c.userMail,fullname:c.name,tx_ref:s.transaction_id,callBack:async function(e){if(console.log(e),l.A.track("Finishing payment",{gateway:"klasha",result:e.status}),"ERROR"===e.status&&(await(0,i.tc)({...e,transaction_id:s.transaction_id}),Y(!1)),"SUCCESS"===e.status){await(0,i.tc)({...e,transaction_id:s.transaction_id});try{await D()}catch(e){console.log("self details refresh failed after Klasha SUCCESS",e)}K.push(`/pricingSuccess/${s.transaction_id}`)}}};new window.KlashaClient("C8v8oEjwjk0nId4VBMeO9s/wt3YP1BhATl+nG4VZFWcw3l7PqAxzujaxNQqvNYcwNOxSNMomlxSzmtUKULkMCA==",1,e.price,"ktest","callback",e.currency,e.currency,r,!1).init()}else alert("Klasha SDK failed to load. please check are you online?")}},Ne=s=>{console.log(s),e?(Y(!0),(async e=>{var s=Intl.DateTimeFormat().resolvedOptions().timeZone;console.log(e);const c=await(0,i.dT)({id:e.id,title:e.title,currency:e.currency,amount:e.price,region:s}),r=await c.data,a=U||await(0,n.bd)({}).then((e=>e.data));l.A.track("Starting payment",{planDays:30,planType:e.title,gateway:r.payment_gateway,locale:s}),je[r.payment_gateway](e,r,a)})(s)):(l.A.track("Move to Signup",{}),localStorage.setItem("currentPath","/admin/plan-information"),K.push("/signin"))};return(0,T.jsx)("div",{className:"body-style-akbar price-page ",children:(0,T.jsxs)(T.Fragment,{children:[G&&(0,T.jsx)("div",{className:"price-loader",children:(0,T.jsx)(C.A,{})}),s?(0,T.jsx)("div",{className:"price-banner",children:(0,T.jsxs)("picture",{children:[(0,T.jsx)("source",{type:"image/jpeg",media:"(min-width: 800px)",srcSet:c(45347)}),(0,T.jsx)("source",{type:"image/jpeg",media:"(min-width: 500px)",srcSet:c(12141)}),(0,T.jsx)("img",{src:c(54503),alt:"image"})]})}):"",(0,T.jsxs)("div",{className:"price-home "+(s?"price-home--offer":""),children:[(0,T.jsx)("div",{onClick:()=>{K.goBack()},className:y.A.close__button,children:(0,T.jsx)(_.h,{className:y.A.close__button_icon})}),(0,T.jsxs)("div",{className:"price-container",children:["/admin/referral"===R?null:(0,T.jsxs)("div",{className:"price-home__head",children:[(0,T.jsxs)("div",{className:"price-home__title",children:[(0,T.jsx)("span",{className:"price-home__title-icon",children:(0,T.jsx)(w.h,{})}),(0,T.jsx)("span",{className:"price-home__title-text",children:s?"Upgrade to Kandor Pro":"Join the 2,00,000+ Kandor Family"})]}),s&&(0,T.jsx)("p",{className:"price-home__subtitle",children:"For candidates who want to score 6.5 and above in IELTS Test"})]}),"/admin/referral"===R&&(0,T.jsx)(k.A,{price:oe,refCard:O}),(0,T.jsxs)("section",{style:"/admin/referral"===R?{marginTop:"40px"}:null,className:y.A.price__section,children:[(0,T.jsx)("div",{className:y.A.price__card_container,children:re.map(((e,c)=>(0,d.createElement)(S.A,{...e,onUpgrade:Ne,isOffer:s,checkoutDisabled:Z,key:c,refCard:"Essentials"===e.benefitsId?O:void 0})))}),Z?(0,T.jsx)("center",{children:"* Payments are currently disabled on the iOS App. Please use your browser to purchase a plan!"}):""]}),(0,T.jsx)("div",{className:"price-descr",ref:J,children:(0,T.jsx)("div",{className:"price-descr__content",ref:H,children:(0,T.jsxs)("div",{className:"price-descr__table",children:[(0,T.jsxs)("div",{className:"price-descr__row price-descr__row--head",children:[(0,T.jsx)("div",{className:"price-descr__col"}),(0,T.jsxs)("div",{className:"price-descr__col",children:[(0,T.jsx)("span",{className:"price-descr__subtitle",children:"Basic"}),(0,T.jsx)("span",{className:"price-descr__title",children:"Free"}),he?"":(0,T.jsx)("span",{className:"price-descr__info",children:"Basic prompts and IELTS course"})]}),(0,T.jsxs)("div",{className:"price-descr__col",children:[(0,T.jsx)("span",{className:"price-descr__subtitle",children:"Kandor Pro"}),(0,T.jsxs)("span",{className:"price-descr__title",children:[" ",(0,T.jsx)("span",{children:"from"})," ",(null===(F=se[B])||void 0===F?void 0:F.currency_sign)+(null===(L=se[B])||void 0===L?void 0:L.price)?(null===(I=se[B])||void 0===I?void 0:I.currency_sign)+(null===(z=se[B])||void 0===z?void 0:z.price):"5$"]}),he?"":(0,T.jsx)("span",{className:"price-descr__info",children:"Full Access for serious candidates"})]})]}),(0,T.jsxs)("div",{className:"price-descr__row",children:[(0,T.jsxs)("div",{className:"price-descr__col",children:[he?"":(0,T.jsx)("span",{className:"price-descr__icon",children:(0,T.jsx)(N.h,{})}),(0,T.jsx)("span",{className:"price-descr__text bold",children:"Practice Prompts"})]}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"10 Prompts":"10 Prompts in each section"})}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"All Prompts":"Acce
1ss to all Prompts"})})]}),(0,T.jsxs)("div",{className:"price-descr__row",children:[(0,T.jsxs)("div",{className:"price-descr__col",children:[he?"":(0,T.jsx)("span",{className:"price-descr__icon",children:(0,T.jsx)(j.h,{})}),(0,T.jsx)("span",{className:"price-descr__text bold",children:"Mock Tests"})]}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"2 Mock Tests":"2 Mock Tests in each section"})}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"All Mock Tests":"Access to all Mock Tests"})})]}),(0,T.jsxs)("div",{className:"price-descr__row d-none",children:[(0,T.jsxs)("div",{className:"price-descr__col",children:[he?"":(0,T.jsx)("span",{className:"price-descr__icon",children:(0,T.jsx)(v.h,{})}),(0,T.jsx)("span",{className:"price-descr__text bold",children:"Premium IELTS Course"})]}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:"10 Videos"})}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"Full Library":"Access to Full Library (50+ Videos)"})})]}),(0,T.jsxs)("div",{className:"price-descr__row",children:[(0,T.jsxs)("div",{className:"price-descr__col",children:[he?"":(0,T.jsx)("span",{className:"price-descr__icon",children:(0,T.jsx)(u.h,{})}),(0,T.jsx)("span",{className:"price-descr__text bold",children:"Instant Evaluation"})]}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__check",children:(0,T.jsx)(h.h,{})})}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__check",children:(0,T.jsx)(h.h,{})})})]}),(0,T.jsxs)("div",{className:"price-descr__row",children:[(0,T.jsxs)("div",{className:"price-descr__col",children:[he?"":(0,T.jsx)("span",{className:"price-descr__icon",children:(0,T.jsx)(x.h,{})}),(0,T.jsx)("span",{className:"price-descr__text bold",children:"Indepth Feedback Report"})]}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"1 Sub-section":"Only for 1 sub-section"})}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"All Sub-section":"For all sub-sections"})})]}),(0,T.jsxs)("div",{className:"price-descr__row",children:[(0,T.jsxs)("div",{className:"price-descr__col",children:[he?"":(0,T.jsx)("span",{className:"price-descr__icon",children:(0,T.jsx)(m.h,{})}),(0,T.jsx)("span",{className:"price-descr__text bold",children:"Counselling"})]}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"1 Session":"1 Free session"})}),(0,T.jsx)("div",{className:"price-descr__col",children:(0,T.jsx)("span",{className:"price-descr__text",children:_e?"Full Program":"Full Program Access (Visa charges extra)"})})]})]})})}),"/admin/plan-information"===R&&(0,T.jsx)(k.A,{price:oe,refCard:O})," "]})]}),(0,T.jsx)("div",{className:"price-review-wrap",children:(0,T.jsx)(g.default,{})}),(0,T.jsx)(E.A,{faqList:(e=>"/admin/plan-information"===e?f.XK:f.UY)(M.pathname),oneOpen:!0})]})})}},71504:(e,s,c)=>{c.r(s),c.d(s,{default:()=>n});var r=c(65043),a=c(52075),i=(c(52936),c(70579));const n=()=>((0,r.useEffect)((()=>{document.documentElement.scrollTop=0,document.scrollingElement.scrollTop=0,document.querySelector(".main-panel").scrollTop=0}),[]),(0,r.useEffect)((()=>{localStorage.setItem("currentPath","")}),[]),(0,i.jsx)("div",{className:"content-myielts content content--counseling",style:{minHeight:"calc(var(--vh, 1vh) * 100)"},children:(0,i.jsx)(a.A,{isLogin:!0})}))}}]);
2//# sourceMappingURL=PriceAdminPage.ca951ec4.chunk.js.map

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.