PageSourceSearch

https://www.omkar.cloud/_next/static/chunks/pages/subscriptions/subscribe/[planId]-e8b1133e2b5ea1b3.js

js omkar.cloud collected 2026-09-25 14:43:04 UTC 2,771 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2406cb60-f063-4580-8acd-f2f7137c6668",t._sentryDebugIdIdentifier="sentry-dbid-2406cb60-f063-4580-8acd-f2f7137c6668")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21856],{41961:(t,e,n)=>{"use strict";n.r(e),n.d(e,{PaymentStep:()=>_,default:()=>h});var r=n(18153),o=n(5534),a=n(89099),i=n(70632),s=n(84387),c=n(66412),l=n(4908),u=n(70050),p=n.n(u),d=n(59169);n(14232);var b=n(58533),y=n(9517),f=n(73641);let _=t=>{let{plan:e,onCreateSubscription:n,onApprove:o,onError:a}=t;return(0,r.FD)(c.ag,{options:(0,d.zs)(),children:[(0,r.Y)(y.zE,{plan:e}),(0,r.Y)(c.JV,{style:{layout:"vertical",label:"subscribe"},createSubscription:n,onApprove:o,onError:a}),(0,r.Y)(y.wj,{})]})},g=t=>{let{plan:e,...n}=t,{trackAddPaymentInfo:o}=(0,y.b7)(e,e.tool.name_slug),c=(0,a.useRouter)(),u=async t=>{try{t.subscriptionID?(await l.Ay.activateSubscription(t.subscriptionID),(0,f.k)(e.tool.name_slug,e.plan_name,e.amount),(0,f.Xr)({orderID:t.subscriptionID},e,e.tool.name_slug),b.default.success("Subscription activated successfully!",{position:"bottom-right"}).then(()=>{"api"===e.tool.category?c.push("/tools/".concat(e.tool.name_slug)):c.push("/tools/".concat(e.tool.name_slug,"/activate"))})):p().error("Subscription ID missing. Please try again.")}catch(t){p().error("Failed to activate subscription. Please contact support.")}},d=async()=>{try{o("paypal");let{paypal_subscription_id:t}=(await l.Ay.createSubscription({plan_id:e.id})).data;return t}catch(t){throw console.error("Subscription creation failed:",t),t}};return(0,r.FD)(r.FK,{children:[(0,r.Y)(i.A,{...n,title:(0,s.y)(n,"Subscribe to ".concat(e.plan_name))}),(0,r.FD)(y.M5,{is_authenticated:!0,children:[(0,r.Y)("div",{className:"mt-10"}),(0,r.Y)(_,{plan:e,onCreateSubscription:d,onApprove:u,onError:y.st})]})]})};g.getInitialProps=async t=>{let e=await (0,l.gL)(t),{planId:n}=t.query;if((0,d.xg)(e))return(0,o.V2)(t.req,t.res,"/indian-customers");let r=(0,o.oq)(t),a=(await l.Ay.getPlan(n,r)).data;if("monthly"!==a.billing_cycle)throw Error("This is not a monthly plan");return{plan:a}};let h=g},56812:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscriptions/subscribe/[planId]",function(){return n(41961)}])},84387:(t,e,n)=>{"use strict";function r(t,e){return(null==t?void 0:t.title)?"".concat(t.title.trim()," | ").concat(e):e}n.d(e,{y:()=>r})}},t=>{t.O(0,[43716,92551,40726,32227,24886,70828,15554,55695,29545,67651,97438,49725,77071,92357,73902,38798,12255,66412,70442,65545,9517,90636,46593,38792],()=>t(t.s=56812)),_N_E=t.O()}]);

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.