PageSourceSearch

https://invideo.io/pro-landing-pages-assets/_next/static/chunks/0lwp3n0n.eefn.js

js invideo.io collected 2026-09-24 08:27:23 UTC 27,368 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79646,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return s},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},749103,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return w},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return m},ST:function(){return h},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return p},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return P}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>l.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function g(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await g(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,h=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},36381,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},221301,e=>{"use strict";e.s(["mergeClasses",0,(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()])},291850,36374,e=>{"use strict";e.s(["default",0,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}],291850),e.s(["hasA11yProp",0,e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1}],36374)},293752,e=>{"use strict";var t=e.i(188766),r=e.i(291850),n=e.i(36374),o=e.i(221301);let a=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,strokeWidth:l,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...p},f)=>{let{size:g=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,color:x="currentColor",className:y=""}=(0,t.useContext)(a)??{},v=s??h?24*Number(l??m)/Number(i??g):l??m;return(0,t.createElement)("svg",{ref:f,...r.default,width:i??g??r.default.width,height:i??g??r.default.height,stroke:e??x,strokeWidth:v,className:(0,o.mergeClasses)("lucide",y,u),...!c&&!(0,n.hasA11yProp)(p)&&{"aria-hidden":"true"},...p},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(c)?c:[c]])});e.s(["default",0,i],293752)},406963,e=>{"use strict";var t=e.i(188766),r=e.i(221301);let n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o=e.i(293752);e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...l},s)=>(0,t.createElement)(o.default,{ref:s,iconNode:a,className:(0,r.mergeClasses)(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...l}));return i.displayName=n(e),i}],406963)},848533,e=>{"use strict";let t=(0,e.i(406963).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],848533)},937091,e=>{"use strict";let t=(0,e.i(406963).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],937091)},907361,e=>{"use strict";let t=(0,e.i(406963).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},64873,e=>{"use strict";var t=e.i(907361);e.s(["ChevronRight",()=>t.default])},817280,e=>{"use strict";let t=(0,e.i(406963).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,t],817280)},541544,e=>{"use strict";let t=(0,e.i(406963).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],541544)},249179,(e,t,r)=>{t.exports=e.r(240240)},42418,e=>{"use strict";var t=e.i(249179),r=e.i(188766),n=e.i(240292),o=e.i(911499),a=e.i(228378);e.s(["AiModelPageViewTracker",0,function({slug:e,customEventData:t={}}){let i=(0,o.analyticsStore)(e=>e.trackPageView),l=(0,r.useMemo)(()=>({path:(0,a.isServer)()?`/ai-models/${e}`:window.location.pathname,page_url:(0,a.isServer)()?`/ai-models/${e}`:window.location.href,ai_model_slug:e,...t}),[e,t]);return(0,r.useEffect)(()=>{i({pageName:n.PageName.AI_MODELS,pageCategory:n.PageCategory.LANDING,pageEventType:n.PageEventType.WEB,eventData:l})},[i,l]),null},"EditorPageViewTracker",0,function({path:e,customEventData:t={}}){let i=(0,o.analyticsStore)(e=>e.trackPageView),l=(0,r.useMemo)(()=>({path:(0,a.isServer)()?`/editor/${e}/`:window.location.pathname,page_url:(0,a.isServer)()?`/editor/${e}/`:window.location.href,editor_page_path:e,...t}),[e,t]);return(0,r.useEffect)(()=>{i({pageName:n.PageName.EDITOR,pageCategory:n.PageCategory.LANDING,pageEventType:n.PageEventType.WEB,eventData:l})},[i,l]),null},"MakePageViewTracker",0,function({slug:e,customEventData:t={}}){let i=(0,o.analyticsStore)(e=>e.trackPageView),l=(0,r.useMemo)(()=>({path:(0,a.isServer)()?`/make/${e}`:window.location.pathname,page_url:(0,a.isServer)()?`/make/${e}`:window.location.href,make_page_slug:e,...t}),[e,t]);return(0,r.useEffect)(()=>{i({pageName:n.PageName.MAKE,pageCategory:n.PageCategory.LANDING,pageEventType:n.PageEventType.WEB,eventData:l})},[i,l]),null},"PerformancePageViewTracker",0,function({slug:e,customEventData:t={}}){let i=(0,o.analyticsStore)(e=>e.trackPageView),l=(0,r.useMemo)(()=>({path:(0,a.isServer)()?`/perf/${e}`:window.location.pathname,page_url:(0,a.isServer)()?`/perf/${e}`:window.location.href,performance_page_slug:e,...t}),[e,t]);return(0,r.useEffect)(()=>{i({pageName:n.PageName.PERFORMANCE,pageCategory:n.PageCategory.LANDING,pageEventType:n.PageEventType.WEB,eventData:l})},[i,l]),null},"RootPageViewTracker",0,function({slug:e,customEventData:t={}}){let i=(0,o.analyticsStore)(e=>e.trackPageView),l=(0,r.useMemo)(()=>({path:(0,a.isServer)()?`/${e}/`:window.location.pathname,page_url:(0,a.isServer)()?`/${e}/`:window.location.href,root_page_slug:e,...t}),[e,t]);return(0,r.useEffect)(()=>{i({pageName:n.PageName.ROOT,pageCategory:n.PageCategory.LANDING,pageEventType:n.PageEventType.WEB,eventData:l})},[i,l]),null},"ToolsPageViewTracker",0,function({slug:e,customEventData:t={}}){let i=(0,o.analyticsStore)(e=>e.trackPageView),l=(0,r.useMemo)(()=>({path:(0,a.isServer)()?`/tools/${e}/`:window.location.pathname,page_url:(0,a.isServer)()?`/tools/${e}/`:window.location.href,tools_page_slug:e,...t}),[e,t]);return(0,r.useEffect)(()=>{i({pageName:n.PageName.TOOLS,pageCategory:n.PageCategory.LANDING,pageEventType:n.PageEventType.WEB,eventData:l})},[i,l]),null},"default",0,function({pageName:e,pageCategory:i=n.PageCategory.LANDING,customEventData:l={}}){let s=(0,t.usePathname)(),u=(0,o.analyticsStore)(e=>e.trackPageView),c=(0,r.useMemo)(()=>({path:s,page_url:(0,a.isServer)()?s:window.location.href,...l}),[s,l]);return(0,r.useEffect)(()=>{u({pageName:e,pageCategory:i,pageEventType:n.PageEventType.WEB,eventData:c})},[u,e,i,c]),null}])},166758,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(744066)._(e.r(79646)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(a.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},654032,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(188766);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},778084,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(749103),o=e.r(340841);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},615408,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},303526,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return v}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(744066),i=e.r(274826),l=a._(e.r(188766)),s=e.r(166758),u=e.r(269848),c=e.r(654032),d=e.r(749103),p=e.r(81196);e.r(36381);let f=e.r(99955),g=e.r(880245),m=e.r(778084),h=e.r(708379);function x(t){var r,n;let o,a,x,[v,w]=(0,l.useOptimistic)(g.IDLE_LINK_STATUS),b=(0,l.useRef)(null),{href:P,as:N,children:j,prefetch:k=null,passHref:E,replace:C,shallow:S,scroll:_,onClick:F,onMouseEnter:T,onTouchStart:O,legacyBehavior:R=!1,onNavigate:L,transitionTypes:M,ref:$,unstable_dynamicOnHover:A,...I}=t;o=j,R&&("string"==typeof o||"number"==typeof o)&&(o=(0,i.jsx)("a",{children:o}));let V=l.default.useContext(u.AppRouterContext),B=!1!==k,U=!1!==k?null===(n=k)||"auto"===n?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,D="string"==typeof(r=N||P)?r:(0,s.formatUrl)(r);if(R){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(o)}let W=R?a&&"object"==typeof a&&a.ref:$,z=l.default.useCallback(e=>(null!==V&&(b.current=(0,g.mountLinkInstance)(e,D,V,U,B,w)),()=>{b.current&&((0,g.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,g.unmountPrefetchableInstance)(e)}),[B,D,V,U,w]),G={ref:(0,c.useMergedRef)(z,W),onClick(t){R||"function"!=typeof F||F(t),R&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!V||t.defaultPrevented||function(t,r,n,o,a,i,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(339534);l.default.startTransition(()=>{d(r,o?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,s)})}}(t,D,b,C,_,L,M)},onMouseEnter(e){R||"function"!=typeof T||T(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),V&&B&&(0,g.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){R||"function"!=typeof O||O(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),V&&B&&(0,g.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)(D)?G.href=D:R&&!E&&("a"!==a.type||"href"in a.props)||(G.href=(0,p.addBasePath)(D)),x=R?l.default.cloneElement(a,G):(0,i.jsx)("a",{...I,...G,children:o}),(0,i.jsx)(y.Provider,{value:v,children:x})}e.r(615408);let y=(0,l.createContext)(g.IDLE_LINK_STATUS),v=()=>(0,l.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},528328,e=>{"use strict";var t=e.i(274826),r=e.i(541544),n=e.i(303526),o=e.i(188766),a=e.i(975157);e.s(["VideoPreview",0,function({video:e,className:i,aspectRatio:l,style:s,onClick:u,href:c,autoPlay:d=!1,preload:p="none",unmuteOnHover:f=!1,isInViewport:g=!0,showActions:m=!0,onCopyPrompt:h,copiedVideoSlug:x,dataColSpan:y,dataRowSpan:v,videoFamily:w}){let b=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(d&&g&&b.current){let e=b.current;e.muted=!0,e.play().catch(()=>{})}},[d,g]);let P=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:e.thumbnail_url,alt:e.title||"Video thumbnail",className:"absolute inset-0 w-full h-full object-cover",style:{transform:"scale(1.05)"}}),g?(0,t.jsx)("video",{ref:b,src:e.preview_url,poster:e.thumbnail_url,loop:!0,muted:!0,autoPlay:d,playsInline:!0,preload:d?"auto":p,className:(0,a.cn)("absolute inset-0 w-full h-full object-cover transition-opacity duration-300",d?"":"opacity-0 group-hover:opacity-100"),style:{transform:"scale(1.05)"}}):null,e.title&&(0,t.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 flex items-center justify-center bg-[rgba(0,0,0,0.6)] pointer-events-none z-10",children:(0,t.jsx)("h3",{className:"text-white text-center px-6 font-extrabold text-[clamp(20px,6cqi,36px)] leading-[clamp(24px,7cqi,40px)]",children:e.title})}),m&&(0,t.jsx)("div",{className:"absolute opacity-0 group-hover:opacity-100 inset-0 z-20",children:(0,t.jsxs)("div",{className:(0,a.cn)("absolute bottom-[12px] left-0 right-0 p-4 flex flex-wrap items-center justify-center gap-3","9/16"===l?"flex-col":"flex-row"),children:[e.prompt&&(0,t.jsx)("button",{onClick:t=>{h&&h(e,`${w}_preview`,t)},className:(0,a.cn)("w-[180px] px-4 py-2 rounded-full text-[16px] leading-[22px] font-medium cursor-pointer text-[#FFFFFFe6] bg-[#FFFFFF1F] hover:bg-[rgba(31,31,31,0.9)] backdrop-blur-[32px] border-0 whitespace-nowrap"),style:{letterSpacing:"-0.4px"},children:x===e.slug?(0,t.jsxs)("div",{className:"w-full flex items-center justify-center gap-2",children:[(0,t.jsx)(r.Check,{className:"w-4 h-4 animate-in zoom-in duration-200"})," ","Copied"]}):"Copy prompt"}),u&&!e.prompt&&(0,t.jsx)("button",{onClick:t=>{t.stopPropagation(),u(e)},className:"w-[180px] px-4 py-2 rounded-full text-[16px] leading-[22px] font-medium cursor-pointer text-[#FFFFFFe6] bg-[#FFFFFF1F] hover:bg-[rgba(31,31,31,0.9)] backdrop-blur-[32px] border-0 whitespace-nowrap",style:{letterSpacing:"-0.4px"},children:"Watch"}),(0,t.jsx)("button",{onClick:t=>{t.stopPropagation(),(0,a.navigateToVideoWorkspace)(e.id,`${w}_preview`)},disabled:!e.id,className:(0,a.cn)("w-[180px] px-4 py-2 rounded-full text-[16px] leading-[22px] font-medium border-0",e.id?"cursor-pointer text-[#FFFFFFe6] bg-[#FFFFFF1F] hover:bg-[rgba(31,31,31,0.9)] backdrop-blur-[32px]":"cursor-not-allowed text-[#FFFFFF66] bg-[#FFFFFF0D] backdrop-blur-[32px]"),style:{letterSpacing:"-0.4px"},children:"Generate"})]})})]}),N={onMouseEnter:function(e){let t=e.currentTarget.querySelector("video");t&&(t.play(),f&&(t.muted=!1))},onMouseLeave:function(e){let t=e.currentTarget.querySelector("video");t&&(t.muted=!0)},className:(0,a.cn)("relative rounded-[8px] overflow-hidden w-full group block @container bg-[rgba(0,0,0,0.7)]",i),style:s,...y&&{"data-col-span":y},...v&&{"data-row-span":v}};return c?(0,t.jsx)(n.default,{href:c,...N,children:P},e.slug):(0,t.jsx)("div",{onClick:function(){u&&u(e)},...N,children:P},e.slug)}])},51259,e=>{"use strict";var t=e.i(274826),r=e.i(541544),n=e.i(937091),o=e.i(188766),a=e.i(975157),i=e.i(494233);e.s(["VideoModal",0,function({isOpen:e,onClose:l,videoUrl:s,prompt:u,description:c,videoId:d,videoFamily:p}){let f=(0,o.useRef)(null),g=(0,o.useRef)(null),[m,h]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{function t(e){"Escape"===e.key&&l()}if(e){document.addEventListener("keydown",t);let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`}return()=>{document.removeEventListener("keydown",t),document.body.style.overflow="",document.body.style.paddingRight=""}},[e,l]),e)?(0,t.jsx)("div",{ref:g,className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/80",onClick:function(e){e.target===g.current&&l()},children:(0,t.jsx)("div",{className:" w-full max-w-[1400px]",children:(0,t.jsxs)("div",{className:"p-3 relative w-full bg-white rounded-lg shadow-2xl overflow-hidden h-[85vh] max-h-[620px] tablet:h-[620px]",children:[(0,t.jsx)("button",{onClick:l,className:"absolute top-4 right-4 z-10 p-2 rounded-full bg-white hover:bg-gray-100 transition-colors cursor-pointer","aria-label":"Close modal",children:(0,t.jsx)(n.X,{className:"w-5 h-5 text-gray-900"})}),(0,t.jsxs)("div",{className:"flex flex-col tablet:flex-row h-full",children:[(0,t.jsx)("div",{className:"flex-1 min-h-[200px] bg-[#333333] relative overflow-hidden rounded-lg",children:(0,t.jsx)("video",{ref:f,className:"w-full h-full object-contain rounded-lg",controls:!0,autoPlay:!0,src:s,children:"Your browser does not support the video tag."})}),(0,t.jsxs)("div",{className:"w-full tablet:w-[400px] desktop:w-[320px] bg-white flex flex-col max-h-[45%] tablet:max-h-none tablet:h-full",children:[(u||c)&&(0,t.jsx)("div",{className:"flex items-center justify-between px-4 py-2 flex-shrink-0",children:(0,t.jsx)("h3",{className:"text-sm font-normal text-gray-900",children:u?"Prompt":"Description"})}),(u||c)&&(0,t.jsx)("div",{className:"flex-1 overflow-y-scroll min-h-0 p-4",onWheel:e=>{e.stopPropagation()},children:(0,t.jsx)("div",{className:"text-sm text-gray-700 leading-relaxed whitespace-pre-wrap break-words",children:(u||c||"").replace(/\\n
1/g,"\n")})}),(0,t.jsxs)("div",{className:(0,a.cn)("mt-auto p-4 pt-3 flex gap-3 flex-shrink-0",(u||c)&&"border-t border-gray-200"),children:[u&&(0,t.jsxs)("button",{onClick:function(e){e.stopPropagation(),e.preventDefault(),i.rootStore.getState().trackCtaClickEvent({ux_source:`${p}_modal`,page:"signup",source_id:d}),navigator.clipboard.writeText(u),h(!0),setTimeout(()=>h(!1),3e3)},className:(0,a.cn)("flex-1 py-2.5 px-4 rounded-full font-medium transition-all text-sm flex items-center justify-center gap-2 cursor-pointer bg-gray-100 hover:bg-gray-200 text-gray-800"),children:[m&&(0,t.jsx)(r.Check,{className:"w-4 h-4 animate-in zoom-in duration-200"}),m?"Copied!":"Copy prompt"]}),(0,t.jsx)("button",{onClick:()=>(0,a.navigateToVideoWorkspace)(d,`${p}_modal`),disabled:!d,className:(0,a.cn)("flex-1 py-2.5 px-4 rounded-full font-medium transition-all text-sm",d?"bg-gray-100 hover:bg-gray-200 text-gray-800 cursor-pointer":"bg-gray-50 text-gray-400 cursor-not-allowed"),children:"Generate"})]})]})]})]})})}):null}])},948030,e=>{"use strict";var t=e.i(274826),r=e.i(249179),n=e.i(188766),o=e.i(975157);e.s(["StickySubHeader",0,function({categories:e}
1){let a=(0,r.usePathname)(),[i,l]=(0,n.useState)(()=>{let t=new URLSearchParams(window.location.search).get("section");return t&&e.some(e=>e.slug===t)?t:e[0]?.slug}),[s,u]=(0,n.useState)(!1),c=(0,n.useRef)(!1),d=(0,n.useRef)(!1),p=(0,n.useRef)(!1),f=(0,n.useCallback)(()=>new URLSearchParams(window.location.search).get("section"),[]),g=(0,n.useCallback)(e=>{let t=new URL(window.location.href);t.searchParams.set("section",e),window.history.replaceState(null,"",t.toString())},[]),m=(0,n.useCallback)((e,t=!0)=>{let r=document.getElementById(e);if(!r)return;c.current=!0;let n=r.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:n,behavior:t?"smooth":"instant"}),setTimeout(()=>{c.current=!1},t?1e3:100)},[]),h=(0,n.useCallback)(t=>!!t&&e.some(e=>e.slug===t),[e]);(0,n.useEffect)(()=>{if(d.current)return;let e=f();h(e)?(c.current=!0,setTimeout(()=>{m(e,!1),d.current=!0,setTimeout(()=>{c.current=!1,p.current=!0},100)},100)):p.current=!0},[e,f,h,m]),(0,n.useEffect)(()=>{let e=()=>{let e=f();h(e)&&(l(e),m(e,!0))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[f,h,m]),(0,n.useEffect)(()=>{let t=!1,r=()=>{t||(window.requestAnimationFrame(()=>{(()=>{if(u(window.scrollY>20),c.current||!p.current)return;let t=e.map(e=>document.getElementById(e.slug)),r=.3*window.innerHeight;for(let n=t.length-1;n>=0;n--){let o=t[n];if(o&&o.getBoundingClientRect().top<=r){let t=e[n].slug;i!==t&&(l(t),g(t));break}}})(),t=!1}),t=!0)};return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[e,i,a,g]);let x=(0,n.useCallback)(e=>{l(e),g(e),m(e,!0)},[g,m]);return(0,t.jsx)("div",{className:(0,o.cn)("sticky tablet:top-[63px] top-[57px] w-full bg-[#f7f7f7] border-b border-transparent transition-all duration-300 z-40",s&&"border-b-[#00000030]"),children:(0,t.jsx)("div",{className:"max-w-[1920px] mx-auto px-6 py-4",children:(0,t.jsx)("div",{className:"flex items-center gap-4 overflow-x-auto scrollbar-hide",children:(0,t.jsx)("div",{className:"flex gap-3 items-center",children:e.map(({title:e,slug:r})=>(0,t.jsx)("button",{onClick:()=>x(r),className:(0,o.cn)("px-4 py-2 rounded-full text-[16px] leading-[22px] font-normal transition-all whitespace-nowrap","border border-black/15",i===r?"bg-[#141414] text-white":"bg-white text-[#141414B2] hover:bg-gray-50"),style:{letterSpacing:"-0.4px"},children:e},r))})})})})}])},236553,e=>{"use strict";var t=e.i(274826),r=e.i(188766),n=e.i(494233),o=e.i(51259),a=e.i(528328);function i({children:e,threshold:n=.1}){let[o,a]=(0,r.useState)(!1),[l,s]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!l)return;let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(a(!0),e.disconnect())})},{rootMargin:"400px",threshold:n});return e.observe(l),()=>{e.disconnect()}},[l,n]),(0,t.jsx)("div",{ref:s,style:{minHeight:o?"auto":"100px"},children:o?e:null})}function l({items:e,renderItem:n,renderPairedItems:o}){let a=(()=>{let[e,t]=(0,r.useState)(()=>{let e=window.innerWidth;return e<640?1:e<1152?2:3});return(0,r.useEffect)(()=>{function e(){let e=window.innerWidth;e<640?t(1):e<1152?t(2):t(3)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e})(),s=(0,r.useMemo)(()=>{let t=Array.from({length:a},()=>[]),r=[...e],n=0,o=0;for(;n<r.length;){let e=r[n];if("9:16"===e.dimension){let a=n+1<r.length?r[n+1]:null;a&&"9:16"===a.dimension?(t[o].push({type:"paired",item:e,item2:a,index:n,index2:n+1}),n+=2):(t[o].push({type:"single",item:e,index:n}),n+=1)}else t[o].push({type:"single",item:e,index:n}),n+=1;o=(o+1)%a}return t},[e,a]);return(0,t.jsx)("div",{className:"flex gap-[6px] w-full",children:s.map((e,r)=>(0,t.jsx)("div",{className:"flex flex-col gap-[6px] flex-1",children:e.map((e,a)=>(0,t.jsx)(i,{children:"paired"===e.type&&e.item2?(0,t.jsx)("div",{children:o(e.item,e.item2,e.index,e.index2)}):(0,t.jsx)("div",{children:n(e.item,e.index)})},`${r}-${a}`))},r))})}e.s(["VideoCategoryContent",0,function({title:e,categorySlug:i,videos:s}){let[u,c]=(0,r.useState)(null),[d,p]=(0,r.useState)(null);function f(e){c(e)}function g(e,t,r){r.stopPropagation(),n.rootStore.getState().trackCtaClickEvent({ux_source:t,page:"signup",source_id:e.id}),navigator.clipboard.writeText(e.prompt),p(e.slug),setTimeout(()=>{p(null)},3e3)}return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center justify-center",id:i,children:[(0,t.jsx)("div",{className:"w-full px-4 tablet:mb-4 mb-8 tablet:pt-20 pt-10",children:(0,t.jsx)("h1",{className:"text-black text-[48px] leading-[52px] tablet:text-[60px] tablet:leading-[68px] laptop:text-[92px] laptop:leading-[98px] desktop:text-[92px] desktop:leading-[98px] uppercase font-media-sans-ultra",children:e})}),(0,t.jsx)("div",{className:"relative w-full px-4 pb-4",children:(0,t.jsx)(l,{items:s,renderItem:e=>(0,t.jsx)(a.VideoPreview,{video:e,videoFamily:i,className:"w-full",style:{aspectRatio:"9:16"===e.dimension?"9/16":"16/9"},onClick:f,autoPlay:!0,preload:"metadata",unmuteOnHover:!0,onCopyPrompt:g,copiedVideoSlug:d}),renderPairedItems:(e,r)=>(0,t.jsxs)("div",{className:"flex gap-[6px]",children:[(0,t.jsx)(a.VideoPreview,{video:e,videoFamily:i,className:"w-full flex-1",style:{aspectRatio:"9/16"},onClick:f,autoPlay:!0,preload:"metadata",unmuteOnHover:!0,onCopyPrompt:g,copiedVideoSlug:d}
1),(0,t.jsx)(a.VideoPreview,{video:r,videoFamily:i,className:"w-full flex-1",style:{aspectRatio:"9/16"},onClick:f,autoPlay:!0,preload:"metadata",unmuteOnHover:!0,onCopyPrompt:g,copiedVideoSlug:d})]})})}),u&&(0,t.jsx)(o.VideoModal,{videoFamily:i,isOpen:!!u,onClose:function(){c(null)},videoUrl:u.creative_url,title:u.title,prompt:u.prompt,description:u.description,videoId:u.id})]})}],236553)}]);

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.