1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{76122:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pdf/[id]",function(){return n(53671)}])},85392:function(e,t,n){"use strict";n.d(t,{IU:function(){return r},Kk:function(){return a},jP:function(){return l}});var i=n(29061),r=function(e){return i.Z.get("/get/notes_unique_categories",{baseURL:e}).then((function(e){return e.data.data}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return i.Z.get("/get/notes_list",{baseURL:e,params:{category:t,start:n}}).then((function(e){return e.data}))},l=function(e,t){return i.Z.get("/get/notes_by_id",{baseURL:e,params:{id:t}}).then((function(e){return e.data}))}},36453:function(e,t,n){"use strict";n.d(t,{$l:function(){return u},EZ:function(){return o},IU:function(){return a},Kk:function(){return l},WJ:function(){return d},s1:function(){return c},x1:function(){return s}});var i=n(26042),r=n(29061),a=function(e){return r.Z.get("/get/notes2_unique_categories",{baseURL:e}).then((function(e){return e.data.data}))},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return r.Z.get("/get/notes2_list",{baseURL:e,params:{category:t,start:n}}).then((function(e){return e.data}))},s=function(e,t){return r.Z.get("/get/notes2_by_id",{baseURL:e,params:{id:t}}).then((function(e){return e.data}))},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l=arguments.length>4?arguments[4]:void 0;return r.Z.get("/get/studymaterialbytype",{baseURL:e,params:(0,i.Z)({start:n,type:t,search:a},l&&{category:l})}).then((function(e){return e.data}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return r.Z.get("/get/ext_book_categories",{baseURL:e,params:{start:0,type:t,search:n}}).then((function(e){return e.data}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r.Z.get("/get/purchasedlivecourseclassbytypev2",{baseURL:e,params:(0,i.Z)({userid:t,start:n},a&&{include_free_classes:1})}).then((function(e){return e.data.data}))},d=function(e,t,n){return r.Z.get("/get/studymaterial_by_id",{baseURL:e,params:{id:t,type:n}}).then((function(e){return e.data})).catch((function(e){}))}},53671:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var i=n(47568),r=n(26042),a=n(97582),l=n(85893),s=n(47041),u=n(96486),o=n(67294),c=n(36453),d=n(85392),f=n(89885),m=n(96076),p=n(65356),g=n(45508),v=n(6749),h=n(52077),b=n(11163),y=n(15328),x=n(83609),_=n(96754),w=n(55984),N=n(45077),j=n(69539),k=n(40828),Z=n(77585),C=n(35739),R=n(95034),E=n(63755),P=n(62461),S=n(93520),U=n(81339),L=n(15322);function B(e){var t=e.price,n=e.mrp,i=e.currency,r=void 0===i?"INR":i,a=(0,U.Z)(),s=(0,o.useMemo)((function(){return new Intl.NumberFormat(a,{style:"currency",currency:r,minimumFractionDigits:0})}),[a,r]),u=Number(t),c=Number(n);if(Number.isNaN(u)||u<0)return null;var d=!Number.isNaN(c)&&c>u,f=d?(c-u)/c*100:0;return(0,l.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2.5 gap-y-1",children:[(0,l.jsx)("span",{className:"text-3xl font-bold tracking-tight text-foreground",children:s.format(u)}),d&&(0,l.jsx)("span",{className:"text-base font-normal text-muted-foreground line-through",children:s.format(c)}),d&&f>0&&(0,l.jsxs)(R.C,{variant:"success",className:"font-semibold",size:"sm",children:[Math.ceil(f),"% OFF"]})]})}function T(e){var t=e.noteDetails,n=e.itemType,i=e.onViewPdf,a=e.onViewSamplePdf,s=e.className,c=void 0===s?"":s,d=(0,o.useContext)(f.Z),m=d.toggleAuthModal,p=d.setIsLogin,g=d.currentUser,v=d.appConfig,h=(0,o.useRef)(null),b="1"==v.web_enablecart,y=(0,o.useState)((null===t||void 0===t?void 0:t.currency)||"INR"),x=y[0],_=y[1],w=(0,o.useState)({}),R=w[0],U=w[1],T=(0,S.hb)(v.web_enableinternationalpayments)&&null!=(null===t||void 0===t?void 0:t.price)&&Number(t.price)>=0;(0,o.useEffect)((function(){T&&(0,L.PC)("INR").then((function(e){e&&U(e)})).catch((function(){}))}),[T]);var z=(0,S.hb)(v.web_enableloginforfreecontent)&&!g,I="0"==(null===t||void 0===t?void 0:t.free_status),V="0"!=(null===t||void 0===t?void 0:t.purchased_status),D="1"==(null===t||void 0===t?void 0:t.free_status)||"0"==(null===t||void 0===t?void 0:t.price),F=I&&!V&&"0"!=(null===t||void 0===t?void 0:t.price),A=I&&!V&&"0"!=(null===t||void 0===t?void 0:t.price)&&null!=n,O=D||V,M=(0,r.Z)({itemId:t.id,itemType:n,priceKicker:t.price_kicker},t);return(0,l.jsxs)("div",{className:(0,P.cn)("flex flex-col overflow-hidden rounded-2xl border px-6 py-7 gap-8 bg-secondary dark:bg-black",c),children:[(0,l.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,l.jsx)("h2",{className:"mb-0 text-xl font-bold tracking-tight leading-snug text-foreground",children:t.title}),(null===t||void 0===t?void 0:t.validity)&&"100"!==t.validity&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(N.Z,{className:"size-4 shrink-0 text-muted-foreground"}),(0,l.jsx)(Z.Z,{validity:t.validity,validityType:t.validity_type})]}),F&&(0,l.jsx)(B,{price:t.price,mrp:t.mrp,currency:t.currency}),T&&Object.keys(R).length>0&&(0,l.jsxs)(E.Ph,{value:x,onValueChange:_,children:[(0,l.jsxs)(E.i4,{className:"h-9 w-fit roun
1ded-full border bg-muted/50 px-3 text-sm font-medium shadow-none",children:[(0,l.jsx)("span",{className:"mr-1 text-muted-foreground",children:"Currency:"}),(0,l.jsx)(E.ki,{})]}),(0,l.jsx)(E.Bw,{children:Object.keys(R).map((function(e){return(0,l.jsx)(E.Ql,{value:e,children:e},e)}))})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[A&&(0,l.jsxs)("div",{className:"flex w-full items-center gap-2",children:[b&&(0,l.jsx)(C.z,{type:"button",variant:"outline",size:"icon",className:"size-11 shrink-0",onClick:function(){var e,t;return null===(e=h.current)||void 0===e||null===(t=e.addToCart)||void 0===t?void 0:t.call(e)},"aria-label":"Add to cart",children:(0,l.jsx)(j.Z,{className:"size-4 shrink-0"})}),(0,l.jsx)("div",{className:"min-w-0 flex-1 [&_#buyButton]:mt-0 [&_#buyButton]:h-11 [&_#buyButton]:w-full [&_#buyButton]:rounded-lg [&_#buyButton]:bg-custom-black [&_#buyButton]:text-white [&_#buyButton]:uppercase [&_#buyButton]:tracking-wide [&_#buyButton]:hover:bg-custom-black/90",children:(0,l.jsx)(k.Z,{ref:h,product:M,skipAddToCart:!0,hideCurrencySelect:!0,currency:x})})]}),O&&(z?(0,l.jsx)(C.z,{onClick:function(){p(!0),m()},className:"h-11 w-full",children:"Login to View"}):(0,l.jsx)(C.z,{onClick:function(){return i(t.pdf_link)},variant:"outline",className:"h-11 w-full",children:"View PDF"})),!(0,u.isEmpty)(t.demo_pdf)&&(0,l.jsx)(C.z,{onClick:function(){return a(t.demo_pdf)},variant:"outline",className:"h-11 w-full",children:"View Sample PDF"})]})]})}function z(e){var t,n=e.noteDetails,s=e.defaultAllowDownload,u=void 0===s?"0":s,c=e.type,d=(0,o.useState)(!1),m=d[0],h=d[1],N=(0,o.useState)(""),j=N[0],k=N[1],Z=(0,b.useRouter)().query,C=(0,o.useContext)(f.Z).appConfig,R=(0,o.useCallback)((function(){return h((function(e){return!e}))}),[]),E=(0,o.useState)(null!==(t=null===n||void 0===n?void 0:n.save_flag)&&void 0!==t?t:u),P=E[0],S=E[1],U=(0,y.U)({appConfig:C}),L=U.execute,B=U.FormBuilderModal,z=parseInt(Z.itemType)||null,I=function(e,t,n){return"21"===e?{label:n.web_menunotesname||"Notes",href:"/notes"}:"1"===e||2===t?{label:n.web_menuebooksname||"E-Books",href:"/ebooks"}:"11"===e||3===t?{label:n.web_menusyllabusname||"Syllabus",href:"/syllabus"}:{label:n.web_menustudymaterialname||"Study Material",href:"/study-material"}}(c,z,C),V=(0,o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("4"!=c){var r=function(){var i;R(),k(e),S(t?"1":null!==(i=null===n||void 0===n?void 0:n.save_flag)&&void 0!==i?i:u)};t||2!==z&&4!==z||"0"===(null===n||void 0===n?void 0:n.purchased_status)?r():L({event:"AFTER_PURCHASE",itemType:z,itemId:null===n||void 0===n?void 0:n.id,entity:n,next:(0,i.Z)((function(){return(0,a.__generator)(this,(function(e){return[2,r()]}))}))})}else window.open(e,"_blank")}),[R,n,u,c,z,L]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.Z,{content:(0,r.Z)({meta_title:n.title,meta_description:n.description,og_title:n.title,og_description:n.description,og_image:n.image},n)}),(0,l.jsxs)("main",{className:"flex flex-col gap-6 lg:gap-12 max-w-7xl mx-auto w-full px-4 py-6 lg:py-12",children:[(0,l.jsx)(x.Z,{breadcrumbs:[{label:"Home",href:"/"},{label:I.label,href:I.href},{label:n.title}],showCategoryRow:!1}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[4fr_2.5fr] gap-8 lg:gap-12",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 lg:gap-8",children:[(0,l.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-2xl border",children:(0,l.jsx)(_.L,{imageStr:n.image||"/empty-image-web.svg",title:n.title,imgHeight:"",mode:"blur-bg",fallbackSeed:n.title})}),(0,l.jsx)("div",{className:"lg:hidden",children:(0,l.jsx)(T,{noteDetails:n,itemType:z,onViewPdf:function(e){return V(e)},onViewSamplePdf:function(e){return V(e,!0)},className:""})}),(0,l.jsx)(w.Z,{html:n.description})]}),(0,l.jsx)("div",{className:"relative max-lg:hidden",children:(0,l.jsx)("div",{className:"lg:sticky lg:top-24 h-fit",children:(0,l.jsx)(T,{noteDetails:n,itemType:z,onViewPdf:function(e){return V(e)},onViewSamplePdf:function(e){return V(e,!0)},className:""})})})]})]}),j&&(0,l.jsx)(p.Z,{title:null===n||void 0===n?void 0:n.title,isOpen:m,toggle:R,isEncrypted:(null===n||void 0===n?void 0:n.is_pdf_encrypted)||"",encryptionVersion:(null===n||void 0===n?void 0:n.pdf_encryption_version)||"",encryptionKey:(null===n||void 0===n?void 0:n.pdf_encryption_key)||"",link:(0,g.NA)(j),allowDownload:P}),B]})}z.getInitialProps=function(){var e=(0,i.Z)((function(e){var t,n,i,r,l,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:t=e.query,n=(0,s.getCookie)(m.z1,e),a.label=1;case 1:return a.trys.push([1,8,,9]),(0,u.isEmpty)(t.type)||20===Number(t.type)?[4,(0,c.x1)(n,t.id)]:[3,3];
1case 2:return r=a.sent(),(0,u.isEmpty)(r.data)?[2,{statusCode:404}]:(i=r.data,[3,7]);case 3:return 21!==Number(t.type)?[3,5]:[4,(0,d.jP)(n,t.id)];case 4:return l=a.sent(),(0,u.isEmpty)(l.data)?[2,{statusCode:404}]:(i=l.data,[3,7]);case 5:return[4,(0,c.WJ)(n,t.id,t.type)];case 6:if(o=a.sent(),(0,u.isEmpty)(o.data))return[2,{statusCode:404}];i=o.data,a.label=7;case 7:return[3,9];case 8:return a.sent(),[2,{statusCode:404}];case 9:return[2,{noteDetails:i,id:t.id,type:t.type}]}}))}));return function(t){return e.apply(this,arguments)}}(),z.layout=h.kz}},function(e){e.O(0,[4885,8534,7432,5495,6436,2965,1483,3609,366,5328,4380,7518,5531,828,7007,9774,2888,179],(function(){return t=76122,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.