PageSourceSearch

https://landing-page.io/_nuxt/DUitDqyh.js

js landing-page.io collected 2026-10-06 23:54:16 UTC 4,966 bytes, 1 lines download raw bytes

1import{fg as g,fr as h,f2 as S,ed as b,ft as C,dY as r,fc as T,es as D,aV as I,dJ as q,dF as P,aN as k,fi as U}from"./CF_z1u_E.js";const w=[{key:"starter",icon:"i-lucide-zap",price:9.9,credits:3e3,popular:!1},{key:"pro",icon:"i-lucide-sparkles",price:29.9,credits:1e4,popular:!0},{key:"business",icon:"i-lucide-building-2",price:49.9,credits:18e3,popular:!1}];function V(e){return{paymentSuccessTitle:"Payment successful",paymentSuccessDescription:"Your credits have been added to your account.",paymentCancelledTitle:"Payment cancelled",paymentCancelledDescription:"Your payment was not completed. You can try again anytime.",checkoutUnavailableTitle:"Checkout unavailable",checkoutUnavailableDescription:"Something went wrong. Please try again."}}function f(e,i){const t=V();return{paymentSuccessTitle:e.checkout?.paymentSuccessTitle??t.paymentSuccessTitle,paymentSuccessDescription:e.checkout?.paymentSuccessDescription??t.paymentSuccessDescription,paymentCancelledTitle:e.checkout?.paymentCancelledTitle??t.paymentCancelledTitle,paymentCancelledDescription:e.checkout?.paymentCancelledDescription??t.paymentCancelledDescription,checkoutUnavailableTitle:e.checkout?.checkoutUnavailableTitle??t.checkoutUnavailableTitle,checkoutUnavailableDescription:e.checkout?.checkoutUnavailableDescription??t.checkoutUnavailableDescription}}function R(e){const i=U(),t=k(()=>!String(i.public.api_url??"").includes("dev")),o=k(()=>({starter:t.value?345:483,pro:t.value?346:484,business:t.value?347:485})),d=k(()=>w.map(a=>
1({...a,planId:o.value[a.key],name:e.value.plans?.[a.key]?.name??a.key,description:e.value.plans?.[a.key]?.description??"",creditsLabel:e.value.plans?.[a.key]?.creditsLabel??"",buttonText:e.value.plans?.[a.key]?.buttonText??"",features:[{key:"credits",included:!0,value:e.value.featureValues?.[a.key]?.credits??""},{key:"dailyFreeCredits",included:!0,value:e.value.featureValues?.[a.key]?.dailyFreeCredits??""},{key:"logoGeneration",included:!0,value:e.value.featureValues?.[a.key]?.logoGeneration??""},{key:"customDomain",included:!0,value:e.value.featureValues?.[a.key]?.customDomain??""},{key:"downloadSourceCode",included:!0,value:e.value.featureValues?.[a.key]?.downloadSourceCode??""},{key:"freeSeoTools",included:!0,value:e.value.featureValues?.[a.key]?.freeSeoTools??""},{key:"generationSpeed",included:!0,value:e.value.featureValues?.[a.key]?.generationSpeed??""},{key:"emailNotification",included:!0,value:e.value.featureValues?.[a.key]?.emailNotification??""}]})));return{planIds:o,plans:d}}function $(e){const i=g(),t=h(),{locale:o}=S(),{user:d}=b(C()),a=P(null);async function m(c){const s=i.query.payment_status,u=i.query.checkout_id,y=i.query.order_id,n=i.query.request_id,l=i.query.session_id,v=d.value?.user_id?.toString()??"",p=f(e.value,o.value);s==="success"?(r({event:"payment_action",message:"user returned after successful payment",level:"info",detail:{action:"success",checkout_id:u,order_id:y,request_id:n,session_id:l,user_id:v,source:c.source}}),t.add({title:p.paymentSuccessTitle,description:p.paymentSuccessDescription,color:"success",icon:"i-lucide-circle-check",duration:6e3}),await c.fetchCredit?.()):s==="cancel"&&(r({event:"payment_action",message:`user cancelled payment and returned to ${c.pageLabel}`,level:"info",detail:{action:"cancel",checkout_id:u,order_id:y,request_id:n,session_id:l,user_id:v,source:c.source}}),t.add({title:p.paymentCancelledTitle,description:p.paymentCancelledDescription,color:"warning",icon:"i-lucide-info",duration:5e3}))}async function _(c,s){if(a.value)return;if(!d.value?.user_id){r({event:"pricing_login_required",message:`unauthenticated user tried to purchase on ${s.pageLabel}`,level:"info",detail:{source:s.source,plan:c.key,plan_id:c.planId}});const{$openLoginModal:n}=T();n&&typeof n=="function"&&(s.loginRedirectPath?n(s.loginModalValue??"0",s.loginRedirectPath):n());return}a.value=c.key;const u=d.value?.user_id?.toString()??"",y=f(e.value,o.value);r({event:"buy_credits_click",message:`user clicked buy plan on ${s.pageLabel}`,level:"info",detail:{source:s.source,plan:c.key,plan_id:c.planId,user_id:u}}),D(c,{source:s.source,user_id:u});try{const n=window.location.href.split("?")[0];r({event:"payment_action",message:"requesting Creem checkout session",level:"info",detail:{action:"request",source:s.source,plan:c.key,plan_id:c.planId,user_id:u}});const l=await I({user_id:u,id:c.planId,success_url:`${n}?payment_status=success`,cancel_url:`${n}?payment_status=cancel`});q(l?.checkout_id||l?.session_id||l?.request_id)}catch(n){r({event:"payment_action",message:"request error",level:"error",detail:{action:"failed",source:s.source,plan:c.key,plan_id:c.planId,user_id:u,error:n?.message??String(n)}}),s.showErrorToast&&t.add({title:y.checkoutUnavailableTitle,description:n?.message??y.checkoutUnavailableDescription,color:"error",icon:"i-lucide-circle-x",duration:5e3})}finally{a.value=null}}return{loadingPlan:a,handlePaymentReturn:m,startCheckout:_}}export{R as a,$ as u};

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.