PageSourceSearch

https://supermocks.com/_next/static/chunks/pages/app-blog/[id]-d7c48188882386f7.js

js supermocks.com collected 2026-10-02 01:47:15 UTC 15,930 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6313],{34622:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},45077:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},7773:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app-blog/[id]",function(){return n(7327)}])},6749:function(e,t,n){"use strict";var r=n(85893),o=n(89885),a=n(96486),s=n(9008),l=n.n(s),i=n(11163),c=n(67294),d=n(91036),m=n.n(d),u=function(e){return e?m()(e,{allowedTags:[],allowedAttributes:{}}).trim():""},g=function(e,t){var n=e.replace(/\/+$/,""),r=/^https?:\/\//i.test(n)?n:"https://".concat(n),o=(t||"/").split(/[?#]/)[0];return"/"===o?"".concat(r,"/"):"".concat(r).concat(o)};t.Z=function(e){var t=e.content,n=(0,c.useContext)(o.Z).appConfig,s=(0,i.useRouter)();return t?(0,r.jsxs)(l(),{children:[t.host&&(0,a.isEmpty)(n.web_canonicalurl)&&(0,r.jsx)("link",{rel:"canonical",href:g(t.host,null===s||void 0===s?void 0:s.asPath)},"canonical"),t.meta_title&&(0,r.jsx)("meta",{name:"title",content:t.meta_title},"title"),t.meta_description&&(0,r.jsx)("meta",{name:"description",content:u(t.meta_description)},"description"),t.jsonld_schema&&(0,r.jsx)("script",{type:"application/ld+json",children:t.jsonld_schema}),(t.og_image||t.course_thumbnail)&&(0,r.jsx)("meta",{property:"og:image",content:t.og_image||t.course_thumbnail},"og:image"),t.og_title&&(0,r.jsx)("meta",{property:"og:title",content:t.og_title},"og:title"),t.og_description&&(0,r.jsx)("meta",{property:"og:description",content:u(t.og_description)},"og:description"),t.og_url&&(0,r.jsx)("meta",{property:"og:url",content:t.og_url}),t.og_type&&(0,r.jsx)("meta",{property:"og:type",content:t.og_type},"og:type"),t.og_locale&&(0,r.jsx)("meta",{property:"og:locale",content:t.og_locale}),t.og_site_name&&(0,r.jsx)("meta",{property:"og:site_name",content:t.og_site_name}),t.og_video&&(0,r.jsx)("meta",{property:"og:video",content:t.og_video}),t.og_video_secure_url&&(0,r.jsx)("meta",{property:"og:video:secure_url",content:t.og_video_secure_url}),t.og_video_width&&(0,r.jsx)("meta",{property:"og:video:width",content:t.og_video_width}),t.og_video_height&&(0,r.jsx)("meta",{property:"og:video:height",content:t.og_video_height}),t.og_video_type&&(0,r.jsx)("meta",{property:"og:video:type",content:t.og_video_type}),t.og_video_tag&&(0,r.jsx)("meta",{property:"og:video:tag",content:t.og_video_tag}),t.og_video_duration&&(0,r.jsx)("meta",{property:"og:video:duration",content:t.og_video_duration}),t.og_video_series&&(0,r.jsx)("meta",{property:"og:video:series",content:t.og_video_series}),t.og_video_season&&(0,r.jsx)("meta",{property:"og:video:season",content:t.og_video_season}),t.og_video_show_type&&(0,r.jsx)("meta",{property:"og:video:show_type",content:t.og_video_show_type}),t.og_video_actor&&(0,r.jsx)("meta",{property:"og:video:actor",content:t.og_video_actor}),!(0,a.isEmpty)(n.web_googleSiteVerification)&&(0,r.jsx)("meta",{name:"google-site-verification",content:n.web_googleSiteVerification})]}):null}},46188:function(e,t,n){"use strict";n.d(t,{AG:function(){return f},At:function(){return x},Jb:function(){return g},aG:function(){return u},bg:function(){return h},gN:function(){return p}});var r=n(40872),o=n(26042),a=n(69396),s=n(99534),l=n(85893),i=n(67294),c=n(88426),d=n(64998),m=(n(9404),n(62461)),u=i.forwardRef((function(e,t){var n=(0,r.Z)({},e);return(0,l.jsx)("nav",(0,o.Z)({ref:t,"aria-label":"breadcrumb"},n))}));u.displayName="Breadcrumb";var g=i.forwardRef((function(e,t){var n=e.className,r=(0,s.Z)(e,["className"]);return(0,l.jsx)("ol",(0,o.Z)({ref:t,className:(0,m.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5 pl-0",n)},r))}));g.displayName="BreadcrumbList";var p=i.forwardRef((function(e,t){var n=e.className,r=(0,s.Z)(e,["className"]);return(0,l.jsx)("li",(0,o.Z)({ref:t,className:(0,m.cn)("inline-flex items-center gap-1.5",n)},r))}));p.displayName="BreadcrumbItem";var x=i.forwardRef((function(e,t){var n=e.asChild,r=e.className,a=(0,s.Z)(e,["asChild","className"]),i=n?c.g7:"a";return(0,l.jsx)(i,(0,o.Z)({ref:t,className:(0,m.cn)("transition-colors text-muted-foreground hover:text-primary dark:hover:text-foreground no-underline",r)},a))}));x.displayName="BreadcrumbLink";var f=i.forwardRef((function(e,t){var n=e.className,r=(0,s.Z)(e,["className"]);return(0,l.jsx)("span",(0,o.Z)({ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,m.cn)("font-normal text-foreground",n)},r))}));f.displayName="BreadcrumbPage";var h=function(e){var t=e.children,n=e.className,r=(0,s.Z)(e,["children","className"]);return(0,l.jsx)("li",(0,a.Z)((0,o.Z)({role:"presentation","aria-hidden":"true",className:(0,m.cn)("[&>svg]:w-3.5 [&>svg]:h-3.5",n)},r),{children:null!==t&&void 0!==t?t:(0,l.jsx)(d.Z,{})}))};h.displayName="BreadcrumbSeparator"},7327:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return S},default:function(){return M}});var r=n(26042),o=n(85893),a=n(30381),s=n.n(a),l=n(48394),i=n(29823),c=n(67294),d=n(93520),m=n(89885),u=n(98540),g=n(6749),p=n(11163),x=n(41352),f=n(98814),h=n(45077),b=n(34622),v=n(62461),w=n(95358),_=n(96486),j=n(25003),N="w-5 h-5";function y(e){var t=e.showInBlogsOnly,n=void 0!==t&&t,r=(0,c.useContext)(m.Z).appConfig,a=(0,c.useMemo)((function(){return!n||(0,d.hb)(r.web_showSocialsInBlogs)}),[r.web_showSocialsInBlogs,n]),s=[{label:"Youtube",bg:"#FF0000",color:"#fff",icon:(0,o.jsx)(j.LK,{className:N}),link:r.web_youtubepagelink},{label:"Instagram",bg:"#E1306C",color:"#fff",icon:(0,o.jsx)(j.yu,{className:N}),link:r.web_instapagelink},{label:"Telegram",bg:"#229ED9",color:"#fff",icon:(0,o.jsx)(j.YG,{className:N}),link:r.web_telegrampagelink},{label:"Whatsapp",bg:"#25D366",color:"#fff",icon:(0,o.jsx)(j.ud,{className:N}),link:"https://wa.me/".concat(r.web_whatsapp)},{label:"Facebook",bg:"#1877F2",color:"#fff",icon:(0,o.jsx)(j.Vq,{className:N}),link:r.web_fbpagelink},{label:"LinkedIn",bg:"#0A66C2",color:"#fff",icon:(0,o.jsx)(j.pA,{className:N}),link:r.web_linkedinpagelink},{label:"Threads",bg:"#101010",color:"#fff",icon:(0,o.jsx)(j.K9,{className:N}),link:r.web_threadspagelink},{label:"Twitter",bg:"#000000",color:"#fff",icon:(0,o.jsx)(j.nv,{className:N}),link:r.web_twitterpagelink},{label:"Google",bg:"#ffffff",color:"#EA4335",icon:(0,o.jsx)(j.xB,{className:N}),link:r.web_googlepagelink},{label:"Whatsapp Channel",bg:"#25D366",color:"#fff",icon:(0,o.jsx)(j.YV,{className:N}),link:r.web_whatsappchannellink}].filter((function(e){return"Whatsapp"===e.label?!(0,_.isEmpty)(r.web_whatsapp):!(0,_.isEmpty)(e.link)})),l=!(0,_.isEmpty)(r.web_androidurl),i=!(0,_.isEmpty)(r.web_iosurl),u=l||i;return!a||0===s.length&&!u?null:(0,o.jsxs)("div",{className:"mt-8 flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[s.length>0&&(0,o.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,o.jsx)("p",{className:"text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"Follow us"}),(0,o.jsx)("div",{className:"flex flex-wrap items-start md:items-center gap-2",children:s.map((function(e){return(0,o.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"no-underline flex flex-col items-center gap-1.5 p-1 transition-all hover:-translate-y-0.5",children:(0,o.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{background:e.bg,color:e.color},children:e.icon})},e.label)}))})]}),u&&(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)("p",{className:"text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"Download our app"}),(0,o.jsxs)("div",{className:"flex items-center gap-x-1",children:[l&&(0,o.jsx)("a",{href:r.web_androidurl,target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:(0,o.jsx)("img",{src:"/google-play.svg",width:150,alt:"Google Play Store"})}),i&&(0,o.jsx)("a",{href:r.web_iosurl,target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:(0,o.jsx)("img",{src:"https://appx-static.akamai.net.in/app-store.png",className:"bg-background",width:150,alt:"App Store"})})]})]})]})}var k=n(35739),Z=n(35063),E=n(46188),S=!0;function M(e){var t=e.blogs,n=e.currentBlog,a=e.page,_=e.hideRelatedPosts,j=(0,c.useRef)(null),N=(0,c.useContext)(m.Z),S=N.appConfig,M=N.hasSession,A=N.toggleAuthModal,C=(0,p.useRouter)(),I=(0,c.useState)(!1),B=I[0],P=I[1],L=1===Number(null===n||void 0===n?void 0:n.editor_version),R=(0,c.useRef)(null),Y=(0,
1c.useState)(800),G=Y[0],O=Y[1];(0,c.useEffect)((function(){var e=function(e){if(R.current&&e.source===R.current.contentWindow){var t=e.data;if(t&&"cb-resize"===t.type){var n=Number(t.height);Number.isFinite(n)&&n>0&&O(n)}}};if(L)return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[L]);var W=(0,c.useMemo)((function(){return(0,d.hb)(_)}),[_]),D=(0,c.useMemo)((function(){var e;return null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.filter((function(e){return e.id!==n.id})).slice(0,6)}),[t,n.id]),F=L?"":(0,v.aw)(n.content);(0,c.useEffect)((function(){if(j.current){j.current.querySelectorAll("table").forEach((function(e){e.classList.add("table","table-bordered","border-dark"),e.style.width="100%",e.style.maxWidth="90vw",e.style.margin="20px auto"})),j.current.querySelectorAll("img").forEach((function(e){e.removeAttribute("width"),e.removeAttribute("height"),e.style.maxWidth="90vw",e.style.width="100%",e.style.height="auto",e.style.objectFit="contain",e.style.display="block",e.style.margin="20px auto"}));var e=j.current;e.style.maxWidth="90vw",e.style.margin="0 auto",e.style.overflow="auto"}}),[F,M]),(0,c.useEffect)((function(){if(!M&&((0,d.hb)(S.web_showSignupModalPopInBlog)&&!sessionStorage.getItem(i.o0.LOGIN_POPUP_SHOWN))){var e=function(){window.scrollY+window.innerHeight>=.2*document.body.scrollHeight&&(P(!0),sessionStorage.setItem(i.o0.LOGIN_POPUP_SHOWN,"true"),window.removeEventListener("scroll",e))};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[M]);var T=(0,c.useMemo)((function(){return(0,d.hb)(S.web_hidePostDate)}),[S.web_hidePostDate]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.Z,{content:(0,r.Z)({meta_title:n.title,meta_description:n.description,og_title:n.title,og_description:n.description},n)}),B&&(0,o.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:(0,o.jsxs)("div",{className:"relative bg-muted rounded-2xl shadow-2xl p-8 max-w-md w-full mx-4 text-center",children:[(0,o.jsx)("button",{onClick:function(){return P(!1)},className:"absolute top-3 right-3 text-muted-foreground hover:text-muted-foreground",children:(0,o.jsx)(x.Z,{className:"w-5 h-5"})}),(0,o.jsx)("h2",{className:"text-xl font-semibold text-foreground mb-2",children:"Enjoying this article?"}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground mb-6",children:"Sign in to continue reading and unlock the full content."}),(0,o.jsx)(k.z,{className:"w-full",variant:"default",onClick:function(){P(!1),A()},children:"Sign In / Register"})]})}),(0,o.jsxs)("div",{className:"min-h-screen bg-muted -mt-[84px] md:-mt-[96px]",children:[(0,o.jsxs)("div",{className:"relative w-full overflow-hidden",children:[(0,o.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[clamp(420px,60vh,820px)] overflow-hidden",style:{maskImage:"linear-gradient(to bottom, black 65%, transparent 65%)",WebkitMaskImage:"linear-gradient(to bottom, black 65%, transparent 65%)"},children:(0,o.jsx)(Z.Z,{className:"-scale-y-100"})}),(0,o.jsxs)("div",{className:"relative z-10",children:[(0,o.jsx)("div",{className:"max-w-7xl mx-auto w-full px-4 xl:px-0 pt-[108px] md:pt-[120px]",children:!(0,u.y7)(S)&&(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[(0,o.jsx)("button",{onClick:function(){return C.back()},"aria-label":"Go back",className:"shrink-0 flex items-center justify-center w-8 h-8 rounded-lg border border-border bg-background/70 backdrop-blur hover:bg-accent transition-colors",children:(0,o.jsx)(f.Z,{className:"w-4 h-4 text-foreground"})}),(0,o.jsx)(E.aG,{children:(0,o.jsxs)(E.Jb,{className:"my-0 flex-nowrap",children:[(0,o.jsx)(E.gN,{children:(0,o.jsx)(E.At,{href:"/",children:"Home"})}),(0,o.jsx)(E.bg,{}),(0,o.jsx)(E.gN,{children:(0,o.jsx)(E.At,{href:"/app-blog",children:"Blogs"})}),(0,o.jsx)(E.bg,{}),(0,o.jsx)(E.gN,{children:(0,o.jsx)(E.AG,{className:"font-semibold truncate max-w-[140px] sm:max-w-[280px]",children:n.title})})]})})]})}),L?(0,o.jsxs)("div",{className:"w-full",children:[(0,o.jsx)("div",{className:"max-w-7xl mx-auto w-full px-4 xl:px-0",children:(0,o.jsx)("iframe",{ref:R,src:n.content_url,title:n.title,className:"blog-content block w-full border-0",style:{height:G}})}),(0,o.jsx)("div",{className:"max-w-7xl mx-auto w-full px-4 xl:px-0 py-6",children:(0,o.jsx)(y,{showInBlogsOnly:!0})})]}):(0,o.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 lg:gap-10 pt-6 pb-8 w-full max-w-7xl mx-auto px-4 xl:px-0",children:[(0,o.jsxs)("div",{className:"max-w-full flex flex-col gap-6 min-w-0 lg:col-span-8",children:[(0,o.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg aspect-[16/9] border-4 border-background shadow-md dark:shadow-none dark:ring-1 dark:ring-inset dark:ring-border",children:(0,o.jsx)("img",{src:n.thumbnail,alt:n.title,className:"w-full h-full object-cover"})}),!T&&(0,o.jsxs)("div",{className:"flex items-center gap-4 text-muted-foreground text-sm",children:[(0,o.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,o.jsx)(h.Z,{className:"w-4 h-4"}),s()(n.datetime).format("hh:mm A")]}),(0,o.jsx)("span",{className:"w-px h-4 bg-border"}),(0,o.jsxs)("span",{className:"flex items-center gap-1.5 uppercase tracking-wide",children:[(0,o.jsx)(b.Z,{className:"w-4 h-4"}),s()(n.datetime).format("MMMM D, YYYY")]})]}),(0,o.jsx)("h1",{className:"text-foreground text-2xl md:text-3xl lg:text-4xl font-semibold leading-tight tracking-tight mb-0",children:n.title}),(0,o.jsx)("div",{className:"blog-content w-full prose prose-lg md:prose-xl max-w-none text-foreground",ref:j,dangerouslySetInnerHTML:{__html:F}}),(0,o.jsx)(y,{showInBlogsOnly:!0})]}),(0,o.jsx)("aside",{className:"lg:col-span-4 w-full",children:(0,o.jsxs)("div",{className:"rounded-lg border bg-secondary overflow-hidden shadow-sm dark:shadow-none dark:ring-1 dark:ring-inset dark:ring-border",children:[(0,o.jsx)("div",{className:"px-4 py-3 border-b",children:(0,o.jsx)("h2",{className:"text-lg font-semibold text-primary mb-0",children:"Related Blogs"})}),(0,o.jsx)("div",{className:"divide-y divide-border",children:null===D||void 0===D?void 0:D.map((function(e){var t="/app-blog/".concat(e.id,"-").concat((0,w.G)(e.title),"?page=").concat(a||0);return(0,o.jsxs)("div",{onClick:function(){return C.push(t)},className:"group px-4 py-3 hover:bg-accent transition-all duration-300 cursor-pointer",children:[(0,o.jsx)("p",{className:"text-sm font-semibold text-card-foreground leading-snug line-clamp-2 mb-2",children:e.title}),e.datetime&&(0,o.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,o.jsx)(b.Z,{className:"w-3.5 h-3.5"}),(0,o.jsx)("span",{children:s()(e.datetime).format("MMMM D, YYYY")})]})]},e.id)}))})]})})]})]})]}),!W&&(0,o.jsx)("div",{className:"w-full py-10 mt-6",children:(0,o.jsx)(l.Z,{blogs:{data:D,total:null===D||void 0===D?void 0:D.length},page:a,variant:"carousel",title:L?"More Articles":"Related Articles"})})]})]})}}},function(e){e.O(0,[4885,1078,2481,9774,2888,179],(function(){return t=7773,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.