PageSourceSearch

https://app.cinemagicmaker.ai/_nuxt/BOQ9q2z0.js

js cinemagicmaker.ai collected 2026-10-05 12:22:40 UTC 10,835 bytes, 1 lines download raw bytes

1import{a$ as R,b7 as q,bm as z,bh as G,bg as Y,bu as J,b5 as V,bb as M,bk as O,aV as l,aW as t,aY as b,aX as r,b3 as n,bd as c,b1 as m,b8 as g,a_ as f,b9 as E,bc as W,aZ as X,b6 as Z,b4 as h,bq as H,aU as s,b2 as K,bv as Q,bJ as ee,bs as te}from"./Dxxg0w4A.js";import ne from"./Dp6HTTMB.js";import se from"./COetxoBL.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};p.SENTRY_RELEASE={id:"672aadb2cadeb652479ae3df548e20ea592f23fb"};var x=new p.Error().stack;x&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[x]="de3a4df0-1cde-4ff0-a172-be4caf279528",p._sentryDebugIdIdentifier="sentry-dbid-de3a4df0-1cde-4ff0-a172-be4caf279528")}catch{}})();function ae(){function p(){return window.fbq||null}function x(_,$,I="USD"){const P=p();P&&P("track","InitiateCheckout",{content_name:_,value:$,currency:I})}return{trackInitiateCheckout:x}}const le={class:"container mx-auto max-w-3xl p-4"},oe={class:"rounded-2xl border border-light-100 dark:border-surface-800 dark:bg-[hsl(228deg_12%_8%)] bg-light-bg shadow-md shadow-light-200/30 dark:shadow-black/30 p-5"},re={key:0,class:"mb-3 p-3 bg-red-50 dark:bg-red-900/20 rounded-lg border border-red-200 dark:border-red-800"},ie={class:"flex items-center gap-2"},de={key:1,class:"text-center py-8"},ce={key:2,class:"p-5 border-2 border-blue-300 dark:border-blue-600 rounded-lg bg-blue-50 dark:bg-blue-900/20"},ue={class:"flex items-start justify-between gap-4 mb-3"},be={class:"min-w-0"},pe={class:"text-xl font-bold text-blue-700 dark:text-blue-300 leading-tight"},me={key:0,class:"text-xs font-medium text-blue-500 dark:text-blue-400 mt-0.5"},xe={class:"flex items-center gap-1.5 shrink-0"},ge={class:"text-right shrink-0 w-[140px]"},ye={class:"flex items-baseline gap-1.5 justify-end"},fe={class:"text-2xl font-bold text-blue-700 dark:text-blue-300"},he={class:"text-[10px] text-blue-400"},_e={class:"flex items-center flex-wrap gap-x-3 gap-y-1 mb-3 text-xs text-blue-600 dark:text-blue-400"},ke={class:"font-medium"},ve={key:0,class:"mb-4 flex flex-wrap gap-2"},we={class:"flex gap-2 mb-5"},Pe={class:"space-y-1.5 mb-4"},Ce={class:"flex items-center gap-1 text-sm text-blue-700 dark:text-blue-300"},Se={key:0,class:"text-[10px] text-blue-500 dark:text-blue-400"},Me={key:1,class:"inline-flex items-center justify-center w-3.5 h-3.5 rounded-full border border-blue-400 text-blue-500 dark:text-blue-300 cursor-help text-[9px] font-bold leading-none"},Ee={key:0,class:"ml-auto px-1.5 py-0.5 text-[9px] font-bold uppercase rounded bg-blue-500/20 text-blue-400 border border-blue-400/30"},$e={class:"text-sm text-blue-700 dark:text-blue-300"},Ie={class:"grid grid-cols-2 gap-3"},De={key:0,class:"rounded-lg border border-blue-200 dark:border-blue-700/50 bg-blue-100/50 dark:bg-blue-900/10 p-3"},Ae={class:"flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-wider text-blue-600 dark:text-blue-400 mb-2 pb-1.5 border-b border-blue-200 dark:border-blue-700/40"},Te={class:"space-y-1.5"},Be={key:0,class:"ml-auto px-1 py-px text-[8px] font-bold uppercase rounded bg-orange-500/20 text-orange-400 border border-orange-400/30"},Ne={key:1,class:"rounded-lg border border-blue-200 dark:border-blue-700/50 bg-blue-100/50 dark:bg-blue-900/10 p-3"},Ue={class:"flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-wider text-blue-600 dark:text-blue-400 mb-2 pb-1.5 border-b border-blue-200 dark:border-blue-700/40"},Fe={class:"space-y-1.5"},Ve={key:0,class:"ml-auto px-1 py-px text-[8px] font-bold uppercase rounded bg-orange-500/20 text-orange-400 border border-orange-400/30"},qe=R({__name:"subscription",setup(p){const{t:x}=q(),{$api:_}=z(),$=G(),I=Y(),{trackInitiateCheckout:P}=ae(),{track:T}=Z(),C=h(!1),B=h(!0),k=h(""),u=h("monthly");J(u,(a,o)=>{if(!o||a===o)return;const d=a==="monthly"?i.value:y.value;T(V.Monetization.PricingPlanSelected,{plan:"freelance",billing_period:a,amount:d?.price?.amount||null,currency:"USD"})});const v=h([]),j=h(null),i=M(()=>v.value.find(a=>a.id==="academic_freelance_monthly")||v.value.find(a=>a.id==="freelance_monthly")),y=M(()=>v.value.find(a=>a.id==="academic_freelance_annual")||v.value.find(a=>a.id==="freelance_annual")),N=M(()=>u.value==="monthly"?i.value:y.value),U=M(()=>N.value?.tier==="academic_freelance");O(async()=>{try{const a=await _.payment.getSubscriptionPricing();v.value=a.plans||[],j.value=a.userContext||null}catch{k.value="Failed to load pricing"}finally{B.value=!1}});async function L(){try{C.value=!0,k.value="";const a=$.user?.email;if(!a)throw new Error("User email not found");const d=a.split("@")[0].split("."),D=d[0]||"User",S=d[1]||"Customer",A={plan:U.value?"academic_freelance":"freelance",billingPeriod:u.value,customer:{first_name:D,last_name:S,email:a,phone:{country_code:"965",number:"50000000"}},redirect:{url:`${window.location.origin}/payment/success?type=subscription`,failure_url:`${window.location.origin}/payment/subscription?error=payment_failed`}},w=N.value;w?.price?.amount&&P(`Freelance ${u.value}`,w.price.amount),T(V.Monetization.CheckoutStarted,{plan:"freelance",billing_period:u.value,amount:w?.price?.amount||null,currency:"USD",payment_gateway:"tap"});const e=await _.payment.createSubscriptionPayment(A);if(e.success&&e.charge?.transaction?.url)window.location.href=e.charge.transaction.url;else throw new Error("Payment URL not received from TAP")}catch(a){k.value=a?.data?.message||a?.message||x("payment.error.general")}finally{C.value=!1}}const F=()=>{window.history.length>1?window.history.back():te("/projects")};return(a,o)=>{const d=K,D=se,S=H,A=ne,w=ee;return s(),l("div",le,[t("button",{type:"button",class:"inline-flex items-center gap-1.5 mb-4 text-sm text-muted-color hover:text-color transition-colors",onClick:F},[b(d,{name:"mdi:arrow-left",class:"w-4 h-4"}),t("span",null,r(n(x)("common.back")),1)]),t("div",oe,[n(I).query.error?(s(),l("div",re,[t("div",ie,[b(d,{name:"mdi:alert-circle",class:"w-4 h-4 text-red-600"}),o[2]||(o[2]=t("span",{class:"font-semibold text-red-700 dark:text-red-300 text-sm"},"Payment Failed",-1))]),o[3]||(o[3]=t("p",{class:"text-xs text-red-600 dark:text-red-400 mt-1"}
1," Your payment was not completed. Please try again or contact support. ",-1))])):c("",!0),n(B)?(s(),l("div",de,[b(D,{style:{width:"40px",height:"40px"}})])):n(i)&&n(y)?(s(),l("div",ce,[t("div",ue,[t("div",be,[t("h3",pe,r(n(U)?"Academic Freelance":"Freelance"),1),n(i).tagline?(s(),l("p",me,r(n(i).tagline),1)):c("",!0)]),t("div",xe,[t("button",{class:m(["px-2.5 py-1 text-xs font-semibold rounded-full transition-colors",n(u)==="monthly"?"bg-blue-600 text-white":"text-blue-400 hover:text-blue-300"]),onClick:o[0]||(o[0]=e=>u.value="monthly")},"Monthly",2),t("button",{class:m(["px-2.5 py-1 text-xs font-semibold rounded-full transition-colors",n(u)==="annual"?"bg-blue-600 text-white":"text-blue-400 hover:text-blue-300"]),onClick:o[1]||(o[1]=e=>u.value="annual")},"Annual",2)]),t("div",ge,[t("div",ye,[t("span",{class:m(["text-base line-through text-pink-500",n(u)==="annual"?"opacity-70":"opacity-0"])},"$"+r(n(i).price?.amount),3),t("span",fe," $"+r(n(u)==="annual"?n(y).price?.discountedMonthlyPrice:n(i).price?.amount),1),o[4]||(o[4]=t("span",{class:"text-xs text-muted-color"},"/mo",-1))]),t("p",he,r(n(u)==="annual"?"Billed for 12 months":"Billed monthly"),1)])]),t("div",_e,[t("span",ke,r(n(i).credits?.summary),1),n(i).credits?.dailyGenerations?(s(),l(g,{key:0},[o[5]||(o[5]=t("span",{class:"opacity-40"},"•",-1)),t("span",null,r(n(i).credits.dailyGenerations)+" daily generations",1)],64)):c("",!0),n(y).savings?.amount?(s(),l("span",{key:1,class:m(["inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-yellow-400/20 text-yellow-300 text-[10px] font-medium border border-yellow-400/30 transition-opacity",n(u)==="annual"?"opacity-100":"opacity-0 pointer-events-none"])},[b(d,{name:"mdi:tag-outline",class:"w-3 h-3"}),f(" "+r(n(y).savings.comparedToMonthly),1)],2)):c("",!0)]),n(i).creditEquivalents?.length?(s(),l("div",ve,[(s(!0),l(g,null,E(n(i).creditEquivalents,e=>(s(),l("div",{key:e.model,class:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-blue-100 dark:bg-blue-800/30 text-xs text-blue-700 dark:text-blue-300"},[b(d,{name:e.type==="video"?"mdi:movie-open-outline":"mdi:image-outline",class:"w-3.5 h-3.5"},null,8,["name"]),t("span",null,"~ "+r(e.approximate.toLocaleString())+" "+r(e.model)+" "+r(e.unit),1)]))),128))])):c("",!0),t("div",we,[b(S,{label:a.$t("payment.form.subscribe"),loading:n(C),disabled:n(C),severity:"info",class:"flex-1",onClick:L},null,8,["label","loading","disabled"]),b(S,{label:a.$t("payment.form.cancel"),severity:"secondary",outlined:"",onClick:F},null,8,["label"])]),n(k)?(s(),W(A,{key:1,severity:"error",variant:"simple",closable:!1,class:"mb-3 !text-xs"},{default:X(()=>[f(r(n(k)),1)]),_:1})):c("",!0),t("div",Pe,[(s(!0),l(g,null,E(n(i).features,e=>(s(),l("div",{key:e.name||e,class:"flex items-center gap-2"},[typeof e=="object"?(s(),l(g,{key:0},[b(d,{name:e.included?"mdi:check-circle":"mdi:close-circle",class:m(["w-4 h-4 shrink-0",e.included?"text-green-600":"text-red-400 opacity-60"])},null,8,["name","class"]),t("span",Ce,[f(r(e.name)+" ",1),e.detail?(s(),l("span",Se,"("+r(e.detail)+")",1)):c("",!0),e.tooltip?Q((s(),l("span",Me,[...o[6]||(o[6]=[f("i",-1)])])),[[w,e.tooltip,void 0,{top:!0}]]):c("",!0)]),e.badge?(s(),l("span",Ee,r(e.badge),1)):c("",!0)],64)):(s(),l(g,{key:1},[b(d,{name:"mdi:check-circle",class:"w-4 h-4 text-green-600 shrink-0"}),t("span",$e,r(e),1)],64))]))),128))]),t("div",Ie,[n(i).imageModels?.length?(s(),l("div",De,[t("h4",Ae,[b(d,{name:"mdi:image-outline",class:"w-3.5 h-3.5"}),o[7]||(o[7]=f(" 🖼️State Of The Art Image Model ",-1))]),t("div",Te,[(s(!0),l(g,null,E(n(i).imageModels,e=>(s(),l("div",{key:e.name,class:"flex items-center gap-1.5 text-xs"},[b(d,{name:e.included?"mdi:check":"mdi:close",class:m(["w-3.5 h-3.5 shrink-0",e.included?"text-green-600":"text-red-400 opacity-60"])},null,8,["name","class"]),t("span",{class:m(e.included?"text-blue-700 dark:text-blue-300":"text-blue-400 dark:text-blue-500")},r(e.name),3),e.badge?(s(),l("span",Be,r(e.badge),1)):c("",!0)]))),128))])])):c("",!0),n(i).videoModels?.length?(s(),l("div",Ne,[t("h4",Ue,[b(d,{name:"mdi:movie-open-outline",class:"w-3.5 h-3.5"}),o[8]||(o[8]=f(" 🎬Production Grade Video Model ",-1))]),t("div",Fe,[(s(!0),l(g,null,E(n(i).videoModels,e=>(s(),l("div",{key:e.name,class:"flex items-center gap-1.5 text-xs"},[b(d,{name:e.included?"mdi:check":"mdi:close",class:m(["w-3.5 h-3.5 shrink-0",e.included?"text-green-600":"text-red-400 opacity-60"])},null,8,["name","class"]),t("span",{class:m(e.included?"text-blue-700 dark:text-blue-300":"text-blue-400 dark:text-blue-500")},r(e.name),3),e.badge?(s(),l("span",Ve,r(e.badge),1)):c("",!0)]))),128))])])):c("",!0)])])):c("",!0)])])}}});
1export{qe as default};

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.