PageSourceSearch

https://courses.drbhatiaacademy.com/_next/static/chunks/2956-e9649455734ee40e.js

js drbhatiaacademy.com collected 2026-09-27 00:42:02 UTC 15,622 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2956],{36837:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(85893),i=n(62112),l=n(62461);function o(e){var t=e.label,n=e.children,o=e.onAction,a=e.ariaLabel,s=e.showAction,c=void 0===s||s,d=e.className,u=void 0===d?"":d,f=e.buttonClassName,m=void 0===f?"":f,p=e.actionsBefore,v=void 0===p?null:p,x=e.actionsAfter,h=void 0===x?null:x;return(0,r.jsxs)("div",{className:(0,l.cn)("mt-auto flex items-center justify-between gap-4 border-t border-border pt-4",u),children:[(0,r.jsx)("div",{className:"min-w-0 flex-1 flex",children:null!==n&&void 0!==n?n:null!=t?(0,r.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:t}):null}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",children:[v,c&&(0,r.jsx)("button",{type:"button","aria-label":a,className:(0,l.cn)("inline-flex size-7 shrink-0 items-center justify-center rounded-full bg-foreground dark:bg-secondary dark:text-secondary-foreground text-background transition-colors duration-200 ease hover:bg-foreground
1/80",m),onClick:function(e){e.stopPropagation(),null===o||void 0===o||o()},children:(0,r.jsx)(i.Z,{className:"size-4 shrink-0 group-hover:rotate-12 group-hover/cta:rotate-12 transition-transform duration-200 ease",strokeWidth:2.5})}),h]})]})}},14570:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(85893),i=n(96754);function l(e){var t=e.isCollection,n=e.image,l=e.title,o=e.mode,a=void 0===o?"blur-bg":o,s=e.imgHeight,c=e.fallbackSeed,d=e.variantIndex,u=e.eager;return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute bottom-2 left-10 right-10 top-10 bg-muted/60 rounded-b-[16px] border-x border-b border-border pointer-events-none transition-all duration-300 group-hover:translate-y-1.5 z-0 shadow-sm"}),(0,r.jsx)("div",{className:"absolute bottom-[16px] left-[28px] right-[28px] top-10 bg-muted rounded-b-[16px] border-x border-b border-border pointer-events-none transition-all duration-300 group-hover:translate-y-0.5 z-0 shadow-sm"})]}),(0,r.jsx)("div",{className:"relative z-10 w-full h-full overflow-hidden bg-card rounded-lg shadow-sm dark:shadow-none dark:ring-1 dark:ring-inset dark:ring-white/5 border border-border",children:(0,r.jsx)(i.L,{imageStr:n,title:l,imgHeight:s,mode:a,fallbackSeed:null!==c&&void 0!==c?c:l,variantIndex:d,eager:u})})]})}},23879:function(e,t,n){n.d(t,{dJ:function(){return m}});var r=n(47568),i=n(97582),l=n(85893),o=n(67294),a=n(89885),s=n(84747),c=n(99209),d=n(35739),u=n(82227);function f(e){var t=Number(e);return Number.isFinite(t)?t:0}var m=function(e){var t=e.courseId,n=e.itemType,m=e.likesCount,p=(0,o.useContext)(a.Z),v=p.currentUser,x=p.toggleAuthModal,h=p.setIsLogin,g=(p.hasSession,p.appConfig,(0,o.useState)(!1)),b=(g[0],g[1]),y=(0,o.useState)((function(){return f(m)})),w=y[0],j=y[1];(0,o.useEffect)((function(){v&&N()}),[v]);var N=function(){var e=(0,r.Z)((function(){var e,r;return(0,i.__generator)(this,(function(i){if(v){e=[];try{r=JSON.parse(localStorage.getItem("course_likes")||"[]"),Array.isArray(r)&&(e=r)}catch(l){e=[]}(null===e||void 0===e?void 0:e.some((function(e){return e.item_id==t&&e.item_type==n})))&&b(!0)}return[2]}))}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,r.Z)((function(e,t,n){var r,l;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(!v)return h(!0),x(),[2];r=[];try{l=JSON.parse(localStorage.getItem("course_likes")||"[]"),Array.isArray(l)&&(r=l)}catch(o){r=[]}return(null===r||void 0===r?void 0:r.some((function(e){return e.item_id===t&&e.item_type===n})))?[2]:[4,(0,c.$k)(e,t,n)];case 1:return i.sent()&&(r.push({item_id:t,item_type:n}),b(!0),j((function(e){return f(e)+1})),localStorage.setItem("course_likes",JSON.stringify(r))),[2]}}))}));return function(t,n,r){return e.apply(this,arguments)}}();return(0,l.jsxs)(d.z,{variant:"outline",size:"sm",className:"shrink-0 w-fit","aria-label":"Like",onClick:function(){return k(v?v.userid:null,t,n)},children:[(0,l.jsx)(u.Z,{className:"size-4"}),w>0?(0,l.jsx)("span",{className:"tabular-nums",children:(0,s.Z)(w)}):(0,l.jsx)("span",{children:"Like"})]})};t.ZP=m},65356:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(26042),i=n(69396),l=n(85893),o=n(67294),a=n(95719),s=n(83024),c=n(96076),d=n(47041),u=n(89885),f=n(66471),m=c.jA;function p(e){var t=e.title,n=e.isOpen,p=e.toggle,v=e.allowDownload,x=void 0===v?"0":v,h=e.isEncrypted,g=void 0===h?"0":h,b=e.encryptionVersion,y=void 0===b?"1":b,w=e.encryptionKey,j=void 0===w?"":w,N=e.phone,k=void 0===N?"":N,C=e.modalHeaderProps,S=void 0===C?{}:C,_=e.modalHeaderChildren,Z=void 0===_?null:_,A=(e.watermarkConfig,e.clientUrl),L=e.link,E=e.size,z=(0,o.useContext)(u.Z).currentUser,I=(0,o.useRef)(null),U=(0,o.useMemo)((function(){var e,t;try{var n=(0,d.getCookie)(c.z1);n&&(e=new URL(n))}catch(r){console.error("error while getting base url",r)}return null!==(t=null!==A&&void 0!==A?A:null===e||void 0===e?void 0:e.host)&&void 0!==t?t:""}),[A]),P=(0,o.useMemo)((function(){return k||((null===z||void 0===z?void 0:z.phone)?btoa(c.qn.VALUE+c.qn.VALUE1+z.phone):"")}),[k,z]),T=(0,o.useCallback)((function(){var e=new URLSearchParams;return new Map([["file",L],["save_flag",x],["is_encrypted",g],["encryption_version",y],["encryption_key",j],["title",t],["phone",P],["client_url",U]]).forEac
1h((function(t,n){t&&e.append(n,t)})),e.toString()}),[L,x,g,y,j,t,P,U]);return(0,o.useEffect)((function(){return n&&(0,f.w)("file_download",{file_name:t||L,file_extension:"pdf"}),window.print=function(e){},window.onkeydown=function(e){(80===e.keyCode||83===e.keyCode||67===e.keyCode)&&(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.preventDefault(),e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation())},function(){window.onkeydown=null}}),[n,t,L]),(0,l.jsxs)(a.Z,{unmountOnClose:!0,isOpen:n,toggle:p,fullscreen:!E,size:E||void 0,children:[p&&(0,l.jsxs)(s.Z,(0,i.Z)((0,r.Z)({toggle:p},S),{children:[(0,l.jsx)("div",{className:"flex gap-2",children:t&&!Z&&(0,l.jsx)("div",{className:"font-lg font-bold",children:t})}),Z||(0,l.jsx)(l.Fragment,{})]})),(0,l.jsx)("iframe",{ref:I,src:"".concat(m,"pdfjs/web/viewer-new.html?").concat(T()),sandbox:"allow-forms allow-scripts allow-same-origin allow-popups allow-modals allow-top-navigation allow-top-navigation-by-user-activation allow-orientation-lock allow-downloads",allowFullScreen:!0,height:"100%",width:"100%",className:"".concat(E?"h-[calc(45vh-3.5rem)]":"")})]})}},62411:function(e,t,n){n.d(t,{t:function(){return a}});var r=n(85893),i=n(9590),l=n(67294),o=n(95537),a=function(e){var t=e.style,n=e.content,a=e.wordLimit,s=void 0===a?60:a,c=e.className,d=void 0===c?"mb-3 sub-text":c,u=e.enableReadMore,f=void 0!==u&&u,m=e.noWordLimit,p=void 0!==m&&m,v=e.fade,x=void 0!==v&&v,h=(0,l.useState)(null),g=h[0],b=h[1],y=(0,l.useState)(!1),w=y[0],j=y[1];return(0,l.useEffect)((function(){j(!0);var e=p?1/0:s;b((0,i.Uq)(n,e))}),[n,s,p]),n&&w?"string"===typeof g?f?(0,r.jsx)("div",{className:d,style:t,children:(0,r.jsx)(o.y,{text:g,fade:x})}):(0,i.mx)(n)&&"html"===n.type?(0,r.jsx)("div",{className:d,style:t,dangerouslySetInnerHTML:{__html:g}}):(0,r.jsx)("div",{className:d,style:t,children:g}):(0,r.jsx)("div",{className:d,style:t,children:g}):null};t.Z=a},12956:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(85893),i=n(67294),l=n(89885),o=n(11163),a=n(23879),s=n(65356),c=n(45508),d=n(35739),u=n(72367),f=n(62411),m=n(14570),p=n(36837);function v(e){var t=e.showCreatedAt,n=e.customBadge,v=e.notCarousel,x=void 0!==v&&v,h=e.courseLikesCount,g=void 0===h?"":h,b=e.courseId,y=void 0===b?"":b,w=e.itemType,j=void 0===w?1:w,N=e.title,k=e.description,C=e.subText,S=e.infoText,_=e.image,Z=e.link,A=e.btnText,L=void 0===A?"View Details":A,E=e.showBtn,z=void 0===E||E,I=e.btnAction,U=e.children,P=e.checkAuth,T=void 0!==P&&P,V=e.externalLink,F=void 0!==V&&V,B=e.imgHeight,D=void 0===B?"200":B,R=(e.imageClass,e.demoPdfUrl),H=e.isPdfEncrypted,K=e.pdfEncryptionKey,M=e.pdfEncryptionVersion,O=e.isLive,W=e.isNewCourse,q=e.showLikeButton,J=void 0===q||q,$=(e.demoVideo,e.cardClassName),G=void 0===$?"":$,Q=(e.buttonClassName,e.buttonVariant,e.showDottedSeparator),X=void 0!==Q&&Q,Y=e.separatorColor,ee=void 0===Y?"border-border":Y,te=e.titleClassName,ne=void 0===te?"":te,re=e.showImage,ie=void 0===re||re,le=e.eager,oe=void 0!==le&&le,ae=(e.priceClassName,e.mrpClassName,e.isBestSeller),se=e.isCollection,ce=e.collectionCount,de=e.isFullCardClickable,ue=void 0!==de&&de,fe=((0,i.useRef)(),(0,i.useContext)(l.Z)),me=fe.currentUser,pe=fe.toggleAuthModal,ve=fe.setIsLogin,xe=fe.hasSession,he=fe.appConfig,ge=(0,i.useRef)(xe),be=(0,o.useRouter)(),ye=(0,i.useState)(!1),we=ye[0],je=ye[1],Ne=(0,i.useState)(""),ke=Ne[0],Ce=Ne[1],Se=(0,i.useState)(!1),_e=Se[0],Ze=Se[1],Ae=(0,i.useState)(!1),Le=Ae[0],Ee=Ae[1],ze=(0,i.useCallback)((function(){return Ze(!_e)})),Ie=(0,i.useCallback)((function(){return Ee(!Le)})),Ue=(0,i.useCallback)((function(e){ze(),Ce(e)}),[ze]);(0,i.useCallback)((function(){Ie()}),[Ie]);(0,i.useEffect)((function(){we&&me&&0==ge.current&&(je(!1),Pe())}),[me,ge]);var Pe=function(){if("1"==he.web_enableloginforfreecontent&&T&&!me)return ve(!0),pe(),void je(!0);null!=I?I():Z&&(F?window.open(Z,"_blank"):be.push(Z))};return(0,r.jsx)("div",{className:"group/cta rounded-2xl border min-h-[200px] p-4 gap-4 flex flex-col bg-card h-full w-full lg:hover:bg-accent transition-all duration-300 cursor-pointer overflow-hidden text-foreground ".concat(x?"":"min-w-[325px] max-w-[325px]"," ").concat(G),onClick:ue?function(e){e.target.closest("a, button, input, label")||Pe()}:void 0,children:(0,r.jsxs)("div",{className:"flex flex-col h-full gap-4 w-full",children:[ie&&(0,r.jsx)("div",{className:"flex flex-col relative w-full flex-1 ".concat(se?"pb-4":""),children:(0,r.jsx)(m.Z,{mode:"cover",isCollection:se,image:_,title:N,imgHeight:D,eager:oe})}),(0,r.jsxs)("div",{className:"flex flex-col h-full gap-2",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 h-full",children:[se&&(0,r.jsx)("div",{className:"w-fit bg-foreground text-background px-3 py-1 rounded-full shadow-sm grid place-items-center mb-1 transition-transform active:scale-95",children:(0,r.jsx)("span",{className:"text-[10px] font-bold tracking-wider up
1percase",children:ce?"".concat(ce," Courses"):"Collection"})}),(0,r.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:ne||"text-lg tracking-tight font-semibold mb-0",children:N}),t&&(0,r.jsxs)("div",{className:"text-sm text-muted-foreground",children:[(0,r.jsx)("span",{className:"font-medium",children:"Created at:"})," ",(0,r.jsx)("time",{dateTime:t,children:new Date(t).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})})]})]}),J&&y&&"1"==he.web_enablecourselike&&(0,r.jsx)(a.ZP,{courseId:y,likesCount:g,itemType:j})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[k&&(0,r.jsx)(f.t,{className:"info-render text-sm mb-0",content:k}),S&&(0,r.jsx)(f.t,{className:"info-render text-sm mb-0",content:S})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-x-3 justify-end w-full",children:[n&&(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping-custom rounded-full bg-primary opacity-75"}),(0,r.jsx)("span",{className:"relative bg-primary px-3 py-1.5 w-fit rounded-full font-semibold text-xs text-primary-foreground",children:n})]})}),W&&(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping-custom rounded-full bg-primary opacity-75"}),(0,r.jsx)("span",{className:"relative bg-primary px-3 py-1.5 w-fit rounded-full font-semibold text-xs text-primary-foreground",children:"NEW"})]})}),ae&&(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping-custom rounded-full bg-primary opacity-75"}),(0,r.jsx)("span",{className:"relative bg-primary px-3 py-1.5 w-fit rounded-full font-semibold text-xs text-primary-foreground",children:"BEST SELLER"})]})})]}),X&&(0,r.jsx)("div",{className:"border-t-2 border-dotted ".concat(ee," w-full")}),C&&(0,r.jsx)("div",{className:"flex flex-col gap-[16px]",children:C}),O&&(0,r.jsxs)("div",{className:"bg-destructive px-3 py-1.5 w-fit flex items-center gap-1.5 rounded-full",children:[(0,r.jsx)(u.Z,{className:"text-destructive-foreground animate-pulse size-5"}),(0,r.jsx)("span",{className:"font-semibold text-destructive-foreground text-xs",children:"LIVE"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[R&&(0,r.jsx)(d.z,{variant:"outline",className:"w-full",onClick:function(){return Ue(R)},children:"View Sample PDF"}),z&&(I||Z)&&(0,r.jsx)(p.Z,{label:L,onAction:Pe,ariaLabel:L}),ke&&(0,r.jsx)(s.Z,{isEncrypted:H||"",encryptionKey:K||"",encryptionVersion:M||"",isOpen:_e,toggle:ze,link:(0,c.NA)(ke)}),!!U&&U]})]})]})]})})}},84747:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(26042);function i(e,t){var n=Number(e);return"string"===typeof e&&isNaN(n)?e:isNaN(n)?String(e):new Intl.NumberFormat("en-US",(0,r.Z)({maximumFractionDigits:1,notation:"compact",compactDisplay:"short"},t)).format(n)}},9590:function(e,t,n){n.d(t,{Uq:function(){return o},mx:function(){return l}});var r=n(91036),i=n.n(r);function l(e){return"object"===typeof e&&null!==e&&"type"in e&&"string"===typeof e.value}var o=function(e,t){if(!e)return null;var n="number"===typeof t&&(t>0||t===1/0)?t:60;if("string"===typeof e){var r=e.trim().split(/\s+/);return n===1/0||r.length<=n?e:r.slice(0,n).join(" ")+" ..."}if(l(e)){var o=e.value.trim();if("html"===e.type)return n===1/0?o:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(!e)return"";e=e.replace(/\\"/g,'"').replace(/\\r\\n/g,"");var n=i()(e,{allowedTags:["span","b","i","u","em","strong","style","p","ul","li","hr","br","img","div"],allowedAttributes:{span:["style"],p:["style","class"],div:["style","class"],img:["src","alt","title","width","height","style","class"]}}),r="";if((n=n.replace(/(\/\*[\s\S]*?\*\/)|(^|\s)([@.#]?[a-zA-Z0-9*][^{]{0,50}\s*\{[^}]+\})/g,"")).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim().split(" ").length<=t)return r+n;var l=0,o="",a=/<\/?[^>]+>/g,s=0,c=[],d=!0,u=!1,f=void 0;try{for(var m,p=n.matchAll(a)[Symbol.iterator]();
1!(d=(m=p.next()).done);d=!0){var v=m.value,x=n.slice(s,v.index).trim().split(/\s+/).filter(Boolean),h=!0,g=!1,b=void 0;try{for(var y,w=x[Symbol.iterator]();!(h=(y=w.next()).done);h=!0){var j=y.value;if(l>=t)break;o+=j+" ",l++}}catch(E){g=!0,b=E}finally{try{h||null==w.return||w.return()}finally{if(g)throw b}}if(l>=t)break;var N=v[0];o+=N,!/^<([a-zA-Z0-9]+)/.test(N)||N.startsWith("</")||N.endsWith("/>")?N.startsWith("</")&&c.pop():c.push(N.match(/^<([a-zA-Z0-9]+)/)[1]),s=v.index+N.length}}catch(E){u=!0,f=E}finally{try{d||null==p.return||p.return()}finally{if(u)throw f}}if(l<t){var k=n.slice(s).trim().split(/\s+/).filter(Boolean),C=!0,S=!1,_=void 0;try{for(var Z,A=k[Symbol.iterator]();!(C=(Z=A.next()).done);C=!0){var L=Z.value;if(l>=t)break;o+=L+" ",l++}}catch(E){S=!0,_=E}finally{try{C||null==A.return||A.return()}finally{if(S)throw _}}}for(;c.length;)o+="</".concat(c.pop(),">");return r+o.trim()+" ..."}(o,n);var a=o.split(/\s+/);return n===1/0||a.length<=n?o:a.slice(0,n).join(" ")+" ..."}return e}}}]);

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.