PageSourceSearch

https://create.viddyoze.com/_next/static/chunks/pages/checkout-5a4169de87752f76.js

js viddyoze.com collected 2026-10-01 12:10:36 UTC 14,558 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{9213:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return r(21109)}])},16240:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(85893),i=(r(67294),r(9008)),c={assets__create:"Assets - Create",assets__edit:"Assets - Edit",assets__intro:"Assets - Intro",assets__list:"Assets - List",brands__create:"Brands - Create",brands__edit:"Brands - Edit",brands__intro:"Brands - Intro",brands__list:"Brands - List",myvideos:"My Videos",password__recovery:"Password Recovery",plans:"Account - Plans",payment:"Account - Payment",account:"Account",create:"Create",editor:"Viddyoze",login:"Viddyoze - Login",password__reset:"Password Reset",default:"Viddyoze"},o=function(e){var t=e.page,r=e.specificName,o=t?c[t]:c.default;return r&&(o=r),(0,n.jsxs)(i.default,{children:[(0,n.jsx)("title",{children:o}),(0,n.jsx)("meta",{property:"og:title",content:c.default},"title"),(0,n.jsx)("link",{rel:"icon",href:"/images/icons/favicon/favicon.ico"})]})}},18564:function(e,t,r){"use strict";var n=r(85893),i=(r(67294),r(86010)),c=r(22777),o=r.n(c);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=function(e){var t,r=e.selected,c=e.title,a=e.subTitle,l=e.onClick,u=e.highlightedSubTitle,d=void 0!==u&&u;return(0,n.jsxs)("div",{className:(0,i.Z)(o().Container,(t={},s(t,o()["Container--selected"],r),s(t,o()["Container--highlighted"],d),t)),onClick:function(){return l()},children:[(0,n.jsx)("span",{className:o().Tick}),(0,n.jsxs)("p",{children:[c,(0,n.jsx)("span",{children:a})]})]})}},21109:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return B}});var n=r(34051),i=r.n(n),c=r(85893),o=r(67294),s=r(86501),a=r(11163),l=r(16240),u=r(47292),d=r(18564),h=r(13893),p=r(74040);function _(e){return h.ZP.makeRequest(p.Z.checkout.session,{data:e})}function m(e,t,r,n,i,c,o){try{var s=e[c](o),a=s.value}catch(l){return void r(l)}s.done?t(a):Promise.resolve(a).then(n,i)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var c=e.apply(t,r);function o(e){m(c,n,i,o,s,"next",e)}function s(e){m(c,n,i,o,s,"throw",e)}o(void 0)}))}}function y(e){return g.apply(this,arguments)}function g(){return(g=f(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(t);case 2:return r=e.sent,e.abrupt("return",r.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var x=r(33206),v=r(3202),C=r.n(v),k=r(25029),j=r(66951),w=function(){var e=(0,k.C)(j.n2);return{trackMetaPixel:(0,o.useCallback)((function(t,r){if(window.fbq&&r.id){var n={content_name:r.name,content_type:"product",content_ids:[r.id],value:r.price,currency:"USD"};"Purchase"===t&&r.category&&(n.content_category=r.category,n.num_items=1),e&&"Purchase"===t&&(n.em=e),console.log("tracking meta pixel",t,n),window.fbq("track",t,n)}}),[e])}},b=r(83319);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T(e,t,r,n,i,c,o){try{var s=e[c](o),a=s.value}catch(l){return void r(l)}s.done?t(a):Promise.resolve(a).then(n,i)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,c=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);o=!0);}catch(a){s=!0,i=a}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S={monthly:{price:47,productId:x.$r.proMonthly,label:"Monthly",description:"Billed monthly"},yearly:{price:397,productId:x.$r.proYearly,label:"Yearly",description:"Billed yearly - Save 30%"},trial:{price:47,productId:x.$r.trial,label:"Trial",description:"7 days trial"}},A=["Full Pro template library","All future template releases","Viddybot AI video creation","AI Search & AI Fill","Multiple audio track options","Unlimited commercial renders","Fast cloud rendering","Cancel anytime"],R=function(){return(0,c.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,c.jsx)("polyline",{points:"20 6 9 17 4 12"})})},B=function(){var e,t=(0,a.useRouter)(),r=w().trackMetaPixel,n=(0,o.useRef)(!1),h=(0,o.useState)("monthly"),p=h[0],_=h[1],m=P((0,b.Z)("productSelection",null),2),f=m[0],g=m[1],x=(0,o.useState)(""),v=x[0],k=x[1],j=(0,o.useState)(null),N=j[0],B=j[1],I=(0,o.useState)(!1),U=I[0],q=I[1],E={id:(null===(e=S[p].productId)||void 0===e?void 0:e.toString())||"",name:"Viddyoze Pro",description:S[p].description,price:S[p].price,imageUrl:"/images/checkout/viddyoze-pro-ai.png",quantity:1},F="trial"===t.query.variant;(0,o.useEffect)((function(){t.isReady&&("trial"===t.query.variant&&_("trial"),"yearly"===t.query.variant&&_("yearly"),"monthly"===t.query.variant&&_("monthly"))}),[t.isReady,t.query.variant]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);e.get("success")||e.get("canceled")||r("ViewContent",{name:E.name,id:E.id,price:E.price,category:p})}),[p,E.id,r]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);if(e.get("success")){if(k("Order placed! You will receive an email confirmation."),B("success"),n.current)return;var t=f||E;
1r("Purchase",{name:t.name,id:t.id,price:t.price,category:p}),n.current=!0}e.get("canceled")&&(k("Order canceled -- continue to shop around and checkout when you're ready."),B("error"))}),[r,E,p,f]);var z=(0,o.useState)(!1),L=z[0],W=z[1],M=function(){var e,t=(e=i().mark((function e(){var t,n,c,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=S[p].productId,E.id&&t){e.next=4;break}return s.Am.error("Product configuration missing. Please contact support."),e.abrupt("return");case 4:return W(!0),g(E),r("InitiateCheckout",{name:E.name,id:E.id,price:E.price,category:p}),e.prev=7,n=window.location.origin,c="".concat(n,"/checkout?success=true"),o="".concat(n,"/checkout?canceled=true"),e.next=13,y({product:t,successUrl:c,cancelUrl:o});case 13:(a=e.sent).url?window.location.href=a.url:(s.Am.error("Unable to process checkout. Please try again."),W(!1)),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(7),console.error("Checkout error:",e.t0),s.Am.error("An error occurred. Please try again."),W(!1);case 22:case"end":return e.stop()}}),e,null,[[7,17]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var c=e.apply(t,r);function o(e){T(c,n,i,o,s,"next",e)}function s(e){T(c,n,i,o,s,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return v?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.Z,{page:"Checkout"}),(0,c.jsx)("div",{className:C().pageContainer,children:(0,c.jsx)("div",{className:C().messageContainer,children:(0,c.jsxs)("div",{className:"".concat(C().messageCard," ").concat("success"===N?C().success:C().error),children:[(0,c.jsx)("div",{className:C().messageIcon,children:"success"===N?(0,c.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,c.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,c.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]}):(0,c.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,c.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,c.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,c.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]})}),(0,c.jsx)("h2",{className:C().messageTitle,children:"success"===N?"Success!":"Canceled"}),(0,c.jsx)("p",{className:C().messageText,children:v}),(0,c.jsx)(u.Z,{variant:"primary",size:"normal",onClick:function(){return t.push("/")},children:"Return Home"})]})})})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.Z,{page:"Checkout"}),(0,c.jsx)("div",{className:C().pageContainer,children:(0,c.jsxs)("div",{className:C().checkoutContainer,children:[(0,c.jsxs)("div",{className:C().header,children:[(0,c.jsx)("h1",{className:C().title,children:"Checkout"}),(0,c.jsx)("p",{className:C().subtitle,children:"Complete your purchase securely"})]}),(0,c.jsxs)("div",{className:C().contentGrid,children:[(0,c.jsxs)("div",{className:C().productSection,children:[(0,c.jsx)("h2",{className:C().sectionTitle,children:"Order Summary"}),(0,c.jsxs)("div",{className:C().productCard,children:[(0,c.jsx)("div",{className:C().productImage,children:(0,c.jsx)("img",{src:E.imageUrl,alt:E.name})}),(0,c.jsxs)("div",{className:C().productDetails,children:[(0,c.jsx)("h3",{className:C().productName,children:E.name}),E.description&&(0,c.jsx)("p",{className:C().productDescription,children:E.description}),(0,c.jsxs)("div",{className:C().featuresToggle,children:[(0,c.jsxs)("button",{className:C().featuresToggleButton,onClick:function(){return q(!U)},type:"button",children:[(0,c.jsx)("span",{children:"What's included"}),(0,c.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:U?C().rotated:"",children:(0,c.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),U&&(0,c.jsx)("ul",{className:C().featuresList,children:A.map((function(e,t){return(0,c.jsxs)("li",{children:[(0,c.jsx)(R,{}),(0,c.jsx)("span",{children:e})]},"feature-".concat(t))}))})]}),(0,c.jsxs)("div",{className:C().priceRow,children:[(0,c.jsx)("span",{className:C().priceLabel,children:"Price"}),(0,c.jsxs)("span",{className:C().price,children:["$",E.price.toFixed(2)]})]})]})]}),(0,c.jsxs)("div",{className:C().totalRow,children:[(0,c.jsx)("span",{className:C().totalLabel,children:"Total"}),(0,c.jsxs)("span",{className:C().totalPrice,children:["$",E.price.toFixed(2)]})]})]}),(0,c.jsxs)("div",{className:C().formSection,children:[(0,c.jsx)("h2",{className:C().sectionTitle,children:"Choose Your Plan"}),(0,c.jsxs)("div",{className:C().billingToggle,children:[F&&(0,c.jsx)(d.Z,{selected:"trial"===p,title:"Trial",subTitle:"7 days trial, then $47 per month",highlightedSubTitle:!0,onClick:function(){return _("trial")}}),!F&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d.Z,{selected:"monthly"===p,title:"Monthly",subTitle:"$47 per month",onClick:function(){return _("monthly")}}),(0,c.jsx)(d.Z,{selected:"yearly"===p,title:"Yearly",subTitle:"$397 - Save 30%",highlightedSubTitle:!0,onClick:function(){return _("yearly")}})]})]}),(0,c.jsxs)("div",{className:C().checkoutContent,children:[(0,c.jsx)("p",{className:C().checkoutDescription,children:"Click the button below to proceed to our secure payment page powered by Stripe. You'll be able to enter your payment details and complete your subscription."}),(0,c.jsxs)("div",{className:C().securityNote,children:[(0,c.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,c.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,c.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),(0,c.jsx)("span",{children:"Your payment information is processed securely via Stripe"})]}),(0,c.jsx)(u.Z,{type:"button",variant:"primary",size:"large",disabled:L,extraClass:C().submitButton,onClick:M,children:L?"Redirecting...":"Proceed to Payment"})]}),(0,c.jsxs)("div",{className:C().poweredBy,children:[(0,c.jsx)("span",{children:"Powered by"}),(0,c.jsxs)("svg",{width:"40",height:"17",viewBox:"0 0 60 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M59.5 12.5c0 6.627-5.373 12-12 12s-12-5.373-12-12 5.373-12 12-12 12 5.373 12 12z",fill:"#635BFF"}),(0,c.jsx)("path",{d:"M47.5 8.5c-1.5 0-2.5.5-3 1.5V9h-2v10h2v-5.5c0-1.5.5-2.5 2-2.5s1.5 1 1.5 2.5V19h2v-6c0-2.5-1-4.5-3.5-4.5h1z",f
1ill:"#fff"}),(0,c.jsx)("text",{x:"5",y:"17",fontFamily:"Arial, sans-serif",fontSize:"12",fontWeight:"bold",fill:"#635BFF",children:"stripe"})]})]})]})]})]})})]})}},22777:function(e){e.exports={Container:"Radio_Container__k3QCN",Tick:"Radio_Tick__oe9Ui","Container--selected":"Radio_Container--selected__kNgyU","Container--highlighted":"Radio_Container--highlighted__aKyL3",PendingOpaqueAnimation:"Radio_PendingOpaqueAnimation__GwhQY"}},3202:function(e){e.exports={pageContainer:"Checkout_pageContainer__acfWF",checkoutContainer:"Checkout_checkoutContainer__pCkMG",fadeIn:"Checkout_fadeIn__ajWAT",header:"Checkout_header__JdxOQ",title:"Checkout_title__y7kxz",subtitle:"Checkout_subtitle__s6bQL",contentGrid:"Checkout_contentGrid__9Rk_j",productSection:"Checkout_productSection__RCRW6",sectionTitle:"Checkout_sectionTitle__kg9gw",productCard:"Checkout_productCard__UTaGD",productImage:"Checkout_productImage__v4w1B",productDetails:"Checkout_productDetails__e2NFT",productName:"Checkout_productName__Eq5cZ",productDescription:"Checkout_productDescription__5nO_F",featuresToggle:"Checkout_featuresToggle__t9bWi",featuresToggleButton:"Checkout_featuresToggleButton__GD_Gy",rotated:"Checkout_rotated__qMsS7",featuresList:"Checkout_featuresList__AUWl7",slideDown:"Checkout_slideDown__R3wQi",priceRow:"Checkout_priceRow__PntUp",priceLabel:"Checkout_priceLabel__WCEOT",price:"Checkout_price__j2W8l",totalRow:"Checkout_totalRow__ak_HE",totalLabel:"Checkout_totalLabel__Cv1MN",totalPrice:"Checkout_totalPrice__KscVT",formSection:"Checkout_formSection__q9tyX",billingToggle:"Checkout_billingToggle__S_p9I",checkoutContent:"Checkout_checkoutContent__vzan8",checkoutDescription:"Checkout_checkoutDescription__JE1qG",securityNote:"Checkout_securityNote__zGuiW",submitButton:"Checkout_submitButton__g1NJ_",poweredBy:"Checkout_poweredBy__1dJb_",messageContainer:"Checkout_messageContainer__UCzIS",messageCard:"Checkout_messageCard__GzitY",slideUp:"Checkout_slideUp__t4FuZ",success:"Checkout_success__oW40o",messageIcon:"Checkout_messageIcon__R2r9Y",error:"Checkout_error__CBTAE",messageTitle:"Checkout_messageTitle__E_eHN",messageText:"Checkout_messageText__cnzdV",PendingOpaqueAnimation:"Checkout_PendingOpaqueAnimation__gj43Q"}},9008:function(e,t,r){e.exports=r(5443)}},function(e){e.O(0,[9774,2888,179],(function(){return t=9213,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.