PageSourceSearch

https://madchemclasses.online/_next/static/chunks/pages/payment-success-97cc24659c0b15f6.js

js madchemclasses.online collected 2026-09-26 16:42:08 UTC 6,466 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[939],{45414:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment-success",function(){return o(25462)}])},6749:function(e,t,o){"use strict";var n=o(85893),i=o(89885),r=o(96486),s=o(9008),a=o.n(s),c=o(11163),l=o(67294),d=o(91036),u=o.n(d),p=function(e){return e?u()(e,{allowedTags:[],allowedAttributes:{}}).trim():""},_=function(e,t){var o=e.replace(/\/+$/,""),n=/^https?:\/\//i.test(o)?o:"https://".concat(o),i=(t||"/").split(/[?#]/)[0];return"/"===i?"".concat(n,"/"):"".concat(n).concat(i)};t.Z=function(e){var t=e.content,o=(0,l.useContext)(i.Z).appConfig,s=(0,c.useRouter)();return t?(0,n.jsxs)(a(),{children:[t.host&&(0,r.isEmpty)(o.web_canonicalurl)&&(0,n.jsx)("link",{rel:"canonical",href:_(t.host,null===s||void 0===s?void 0:s.asPath)},"canonical"),t.meta_title&&(0,n.jsx)("meta",{name:"title",content:t.meta_title},"title"),t.meta_description&&(0,n.jsx)("meta",{name:"description",content:p(t.meta_description)},"description"),t.jsonld_schema&&(0,n.jsx)("script",{type:"application/ld+json",children:t.jsonld_schema}),(t.og_image||t.course_thumbnail)&&(0,n.jsx)("meta",{property:"og:image",content:t.og_image||t.course_thumbnail},"og:image"),t.og_title&&(0,n.jsx)("meta",{property:"og:title",content:t.og_title},"og:title"),t.og_description&&(0,n.jsx)("meta",{property:"og:description",content:p(t.og_description)},"og:description"),t.og_url&&(0,n.jsx)("meta",{property:"og:url",content:t.og_url}),t.og_type&&(0,n.jsx)("meta",{property:"og:type",content:t.og_type},"og:type"),t.og_locale&&(0,n.jsx)("meta",{property:"og:locale",content:t.og_locale}),t.og_site_name&&(0,n.jsx)("meta",{property:"og:site_name",content:t.og_site_name}),t.og_video&&(0,n.jsx)("meta",{property:"og:video",content:t.og_video}),t.og_video_secure_url&&(0,n.jsx)("meta",{property:"og:video:secure_url",content:t.og_video_secure_url}),t.og_video_width&&(0,n.jsx)("meta",{property:"og:video:width",content:t.og_video_width}),t.og_video_height&&(0,n.jsx)("meta",{property:"og:video:height",content:t.og_video_height}),t.og_video_type&&(0,n.jsx)("meta",{property:"og:video:type",content:t.og_video_type}),t.og_video_tag&&(0,n.jsx)("meta",{property:"og:video:tag",content:t.og_video_tag}),t.og_video_duration&&(0,n.jsx)("meta",{property:"og:video:duration",content:t.og_video_duration}),t.og_video_series&&(0,n.jsx)("meta",{property:"og:video:series",content:t.og_video_series}),t.og_video_season&&(0,n.jsx)("meta",{property:"og:video:season",content:t.og_video_season}),t.og_video_show_type&&(0,n.jsx)("meta",{property:"og:video:show_type",content:t.og_video_show_type}),t.og_video_actor&&(0,n.jsx)("meta",{property:"og:video:actor",content:t.og_video_actor}),!(0,r.isEmpty)(o.web_googleSiteVerification)&&(0,n.jsx)("meta",{name:"google-site-verification",content:o.web_googleSiteVerification})]}):null}},86460:function(e,t,o){"use strict";o.d(t,{Z:function(){return a}});var n=o(26042),i=o(85893),r=o(67294),s=o(6749);function a(e){var t=e.page,o=e.siteVars,a=void 0===o?{}:o,c=e.userVars,l=void 0===c?{}:c,d=(0,r.useRef)(null),u="";try{u=new URL(t.content_url).origin}catch(p){}(0,r.useEffect)((function(){if(u){var e=function(e){if(e.origin===u){var t=e.data||{};"cb-resize"===t.type&&t.height&&d.current&&(d.current.style.height="".concat(Math.max(0,Number(t.height)),"px"))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}}),[u]);return(null===t||void 0===t?void 0:t.content_url)&&u?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{content:{meta_title:t.meta_title||t.title,meta_description:t.meta_description,og_title:t.meta_title||t.title,og_description:t.meta_description}}),(0,i.jsx)("iframe",{ref:d,src:t.content_url,title:t.title||t.type,onLoad:function(){var e=(0,n.Z)({},a,l);try{var t,o;null===(t=d.current)||void 0===t||null===(o=t.contentWindow)||void 0===o||o.postMessage({type:"cb-vars",vars:e},u)}catch(p){}},sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation",style:{width:"100%",minHeight:"100vh",border:0,display:"block"}})]}):null}},25462:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return p}});
1var n=o(85893),i=o(11163),r=o(67294),s=o(59417),a=o(67814),c=o(35739),l=o(89885),d=o(86460),u=o(41012);function p(){var e,t=(0,i.useRouter)(),o=(0,r.useContext)(l.Z),p=o.appConfig,_=o.currentUser,g=t.isReady&&"true"===(null===(e=t.query)||void 0===e?void 0:e.isMobile),m=function(){if(g){var e,o,n,i=JSON.stringify({event:"payment_success"});return(null===(e=window.webkit)||void 0===e||null===(o=e.messageHandlers)||void 0===o?void 0:o.iOSInterface)&&window.webkit.messageHandlers.iOSInterface.postMessage(i),void(null===(n=window.parent)||void 0===n||n.postMessage({event:"payment_success"},"*"))}t.push("/purchases")},v=(0,u.Nz)(p,"checkout_success");if(v&&(!t.isReady||void 0===_))return null;if(v){g&&m();var h=t.query,y=h.order_id,x=void 0===y?"":y,f=h.payment_id,j=void 0===f?"":f;return(0,n.jsx)(d.Z,{page:v,siteVars:(0,u.Wz)(p),userVars:{order_id:x,payment_id:j,customer_name:(null===_||void 0===_?void 0:_.name)||"",payment_date:(new Date).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"}),purchase_link:"/purchases"}})}var w=t.isReady?t.query:{},b=w.order_id,N=w.payment_id,k=b||N||null;return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center p-3",children:(0,n.jsx)("div",{className:"w-full max-w-[420px]",children:(0,n.jsxs)("div",{className:"rounded-xl border bg-background p-5 text-center shadow-sm",children:[(0,n.jsx)(a.G,{icon:s.f8k,className:"mb-4 text-green-600",size:"5x"}),(0,n.jsx)("h5",{className:"mb-2 text-lg font-bold",children:"Payment Successful!"}),(0,n.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Your purchase is confirmed. Your content is now available in your account."}),k&&(0,n.jsxs)("div",{className:"mb-4 rounded bg-gray-100 px-3 py-2 text-left",children:[(0,n.jsx)("small",{className:"mb-1 block text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Reference ID"}),(0,n.jsx)("small",{className:"break-all font-mono",style:{fontSize:"0.75rem"},children:k})]}),(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsx)(c.z,{onClick:m,children:"View My Purchases"})})]})})})}p.layout=function(e){var t=e.children;return(0,n.jsx)("div",{children:t})}}},function(e){e.O(0,[9774,2888,179],(function(){return t=45414,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.