PageSourceSearch

https://widemile.ai/_next/static/chunks/0zoxbmqdjqrai.js?dpl=d333a2946053d94adfdcd5052a328622d9aa926a

js widemile.ai collected 2026-10-05 15:19:25 UTC 32,454 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a10b95-3ae0-7123-856d-d390f238f69f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,439366,e=>{"use strict";var t=e.i(663924),r=e.i(510970),n=e.i(21788),i=e.i(744705),o=e.i(519455),a=e.i(755146),s=e.i(257234),l=e.i(668318),u=e.i(107099),c=e.i(975157);e.s(["LanguageSwitcher",0,function({variant:e="icon"}){let d=(0,r.useTranslations)(),f=(0,i.useRouter)(),h=(0,i.usePathname)(),m=(0,n.useLocale)(),p="footer"===e,g="navbar"===e,v=m.split("-")[0];return(0,t.jsxs)(a.DropdownMenu,{children:[(0,t.jsx)(a.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{variant:"ghost",size:"sm",className:p?"h-8 w-8 rounded-full border border-white/[0.08] bg-white/[0.05] p-0 text-[#d2d2d2] hover:bg-white/[0.09] hover:text-white":g?"h-14 w-14 rounded-[30px] bg-[rgba(39,39,42,0.62)] p-0 text-[#f5f1eb]/70 backdrop-blur-[32px] backdrop-saturate-150 hover:bg-[rgba(52,52,56,0.76)] hover:text-[#f5f1eb]":"h-8 w-8 px-0",children:[(0,t.jsx)(l.LanguageIcon,{className:g?"h-5 w-5":"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:d("language.label",{defaultValue:"Language"})})]})}),(0,t.jsx)(a.DropdownMenuContent,{align:"end",sideOffset:p||g?8:10,className:(0,c.cn)(!p&&"!z-[260]",g&&"w-40 space-y-0.5 rounded-[12px] bg-[#202023] p-1.5 shadow-[0_16px_38px_-14px_rgba(0,0,0,0.82)] backdrop-blur-none backdrop-saturate-100"),children:u.LANGUAGE_OPTIONS.map(e=>{let r=v===e.locale;return(0,t.jsxs)(a.DropdownMenuItem,{onClick:()=>{var t;return t=e.locale,void f.replace(h,{locale:t})},className:(0,c.cn)("h-8 gap-2 rounded-[9px] px-2.5 text-[10.5px]",r?"bg-[#f5f1eb]/[0.075] text-[#f5f1eb]":"text-[#f5f1eb]/55 hover:bg-[#f5f1eb]/[0.055] hover:text-[#f5f1eb]"),children:[(0,t.jsx)(u.LanguageFlag,{locale:e.locale}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),r?(0,t.jsx)(s.CheckIcon,{className:"h-3.5 w-3.5 shrink-0"}):null]},e.locale)})})]})}])},433191,e=>{"use strict";let t=(0,e.i(627709).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},459247,e=>{"use strict";var t=e.i(433191);e.s(["Loader2",()=>t.default])},147305,e=>{"use strict";var t=e.i(151328),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r])},291967,282864,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}],291967);var t=e.i(151328),r=e.i(663924);e.s(["createContextScope",0,function(e,n=[]){let i=[],o=()=>{let r=i.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(n,o){let a=t.createContext(o),s=i.length;i=[...i,o];let l=n=>{let{scope:i,children:o,...l}=n,u=i?.[e]?.[s]||a,c=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=t.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(o,...n)]}],282864)},735332,671193,e=>{"use strict";var t=e.i(151328),r=e.i(75646),n=e.i(43260),i=e.i(663924);function o(e){var r;let o,a=(r=e,(o=t.forwardRef((e,r)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var a;let e,s,l=(a=i,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.
1isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,i.props);return i.type!==t.Fragment&&(u.ref=r?(0,n.composeRefs)(r,l):l),t.cloneElement(i,u)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,o),l=t.forwardRef((e,r)=>{let{children:n,...o}=e,l=t.Children.toArray(n),u=l.find(s);if(u){let e=u.props.children,n=l.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(a,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(a,{...o,ref:r,children:n})});return l.displayName=`${e}.Slot`,l}var a=Symbol("radix.slottable");function s(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}e.s(["createSlot",0,o,"createSlottable",0,function(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=a,t}],671193);var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=o(`Primitive.${r}`),a=t.forwardRef((e,t)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?n:r,{...a,ref:t})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});e.s(["Primitive",0,l,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}],735332)},940670,e=>{"use strict";var t=e.i(151328),r=e.i(147305);e.s(["useSize",0,function(e){let[n,i]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;i({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),n}])},415655,e=>{"use strict";var t=e.i(151328),r=e.i(147305);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:i=()=>{},caller:o}){let[a,s,l]=function({defaultProp:e,onChange:r}){let[i,o]=t.useState(e),a=t.useRef(i),s=t.useRef(r);return n(()=>{s.current=r},[r]),t.useEffect(()=>{a.current!==i&&(s.current?.(i),a.current=i)},[i,a]),[i,o,s]}({defaultProp:r,onChange:i}),u=void 0!==e,c=u?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=u},[u,o])}return[c,t.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}],415655)},426666,e=>{"use strict";let t=(0,e.i(216727).create)((e,t)=>({open:!1,onboardingActive:!1,setOnboardingActive:t=>e({onboardingActive:t}),source:"dashboard",state:null,loading:!1,submitting:!1,acknowledgingGrant:!1,error:null,setOpen:r=>e({open:r,error:r?null:t().error}),show:(r="dashboard")=>{e({open:!0,source:r,error:null}),t().state||t().loading||t().load()},load:async()=>{if(t().loading)return t().state;e({loading:!0,error:null});try{if(["eligible","pending_review","granted","rejected","ineligible"].includes("")){let t={status:null,amountCredits:400,isFreeUser:!0,grantCelebrationPending:!1};return e({state:t,loading:!1}),t}let t=await fetch("/api/credits/free-request",{cache:"no-store"});if(!t.ok)throw Error("Unable to load the request");let r=await t.json();return e({state:r,loading:!1,...r.grantCelebrationPending?{open:!1}:{}}),r}catch(t){return e({loading:!1,error:t instanceof Error?t.message:"Unable to load the request"}),null}},submit:async({purpose:r,useCase:n})=>{e({submitting:!0,error:null});try{let i=await fetch("/api/credits/free-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({purpose:r,useCase:n,source:t().source})}),o=await i.json().catch(()=>null);if(!i.ok)throw Error(o?.error||"Unable to submit the request");return e({state:o,submitting:!1}),!0}catch(t){return e({submitting:!1,error:t instanceof Error?t.message:"Unable to submit the request"}),!1}},acknowledgeGrant:async()=>{let r=t().state;if(!r?.grantCelebrationPending||t().acknowledgingGrant)return!0;e({state:{...r,grantCelebrationPending:!1},acknowledgingGrant:!0,error:null});try{if(!(await fetch("/api/credits/free-request",{method:"PATCH"})).ok)throw Error("Unable to acknowledge the credit grant");return e({acknowledgingGrant:!1}),!0}catch(t){return e(e=>({state:e.state?{...e.state,grantCelebrationPending:!0}:r,acknowledgingGrant:!1,error:t instanceof Error?t.message:"Unable to acknowledge the credit grant"})),!1}}}));e.s(["useFreeCreditRequestStore",0,t])},494316,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M1.5 5.625c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v12.75c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 18.375V5.625Zm1.5 0v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5A.375.375 0 0 0 3 5.625Zm16.125-.375a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5A.375.375 0 0 0 21 7.125v-1.5a.375.375 0 0 0-.375-.375h-1.5ZM21 9.375A.375.375 0 0 0 20.625 9h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5ZM4.875 18.75a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5ZM3.375 15h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375Zm0-3.75h1.5a.375.375 0 0 0 .375-.375v-1.5A.375.375 0 0 0 4.875 9h-1.5A.375.375 0 0 0 3 9.375v1.5c0 .207.168.375.375.375Zm4.125 0a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 0-1.5h-9Z",clipRule:"evenodd"}))});e.s(["FilmIcon",0,r],494316)},659317,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M19.952 1.651a.75.75 0 0 1 .298.599V16.303a3 3 0 0 1-2.176 2.884l-1.32.377a2.553 2.553 0 1 1-1.403-4.909l2.311-.66a1.5 1.5 0 0 0 1.088-1.442V6.994l-9 2.572v9.737a3 3 0 0 1-2.176 2.884l-1.32.377a2.553 2.553 0 1 1-1.402-4.909l2.31-.66a1.5 1.5 0 0 0 1.088-1.442V5.25a.75.75 0 0 1 .544-.721l10.5-3a.75.75 0 0 1 .658.122Z",clipRule:"evenodd"}))});e.s(["MusicalNoteIcon",0,r],659317)},182,e=>{"use strict";var t=e.i(663924),r=e.i(151328),n=e.i(75646),i=e.i(975157);let o="max-w-[210px] whitespace-normal rounded-[10px] border-0 bg-[rgba(39,39,42,0.58)] px-2.5 py-1.5 text-[10px] font-medium leading-snug text-[#f5f1eb]/85 shadow-[0_14px_34px_-18px_rgba(0,0,0,0.85)] backdrop-blur-[22px] backdrop-saturate-150";e.s(["GLASS_TOOLTIP_CLASS_NAME",0,o,"GenericTooltip",0,function({children:e,content:a,side:s="top",align:l="center",sideOffset:u=8,openDelay:c=120,closeDelay:d=80,className:f,triggerClassName:h,disabled:m=!1,open:p}){let g=r.useRef(null),v=r.useRef(null),w=r.useRef(null),b=r.useRef(null),[y,E]=r.useState(!1),x=!m&&(p??y),[P,_]=r.useState({left:0,top:0}),[S,C]=r.useState(!1),R=r.useCallback(()=>{w.current&&(window.clearTimeout(w.current),w.current=null),b.current&&(window.clearTimeout(b.current),b.current=null)},[]),j=r.useCallback(()=>{if(!g.current||!v.current)return;let e=g.current.getBoundingClientRect(),t=v.current.getBoundingClientRect(),r=window.innerWidth,n=window.innerHeight,i=e.left,o=e.top-t.height-u;"bottom"===s?o=e.bottom+u:"left"===s?(i=e.left-t.width-u,o=e.top):"right"===s&&(i=e.right+u,o=e.top),"top"===s||"bottom"===s?"center"===l?i=e.left+e.width/2-t.width/2:"end"===l&&(i=e.right-t.width):"center"===l?o=e.top+e.height/2-t.height/2:"end"===l&&(o=e.bottom-t.height),_({left:Math.round(Math.max(8,Math.min(i,r-t.width-8))),top:Math.round(Math.max(8,Math.min(o,n-t.height-8)))}),C(!0)},[l,s,u]),A=r.useCallback(()=>{void 0!==p||m||(R(),C(!1),w.current=window.setTimeout(()=>{E(!0)},c))},[R,p,m,c]),k=r.useCallback(()=>{if(R(),void 0!==p){E(!1),C(!1);return}b.current=window.setTimeout(()=>{E(!1),C(!1)},d)},[R,d,p]),T=r.useCallback(()=>{R(),E(!1),C(!1)},[R]);return r.useLayoutEffect(()=>{if(!x)return;j();let e=window.requestAnimationFrame(j),t=()=>j(),r=()=>j(),n=e=>{if(void 0!==p)return;let t=e.target;g.current?.contains(t)||v.current?.contains(t)||E(!1)},i=e=>{void 0===p&&"Escape"===e.key&&E(!1)};return window.addEventListener("resize",t),window.addEventListener("scroll",r,!0),document.addEventListener("mousedown",n),document.addEventListener("keydown",i),()=>{window.cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",r,!0),document.removeEventListener("mousedown",n),document.removeEventListener("keydown",i)}},[x,!0,j,p]),r.useEffect(()=>()=>{R()},[R]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:g,className:(0,i.cn)("inline-flex",h),onMouseEnter:A,onMouseLeave:k,onFocusCapture:A,onBlurCapture:k,onClickCapture:T,children:e}),x&&(0,n.createPortal)((0,t.jsx)("div",{ref:v,role:"tooltip",style:{left:P.left,top:P.top,zIndex:850,visibility:S?"visible":"hidden"},className:(0,i.cn)("pointer-events-none fixed",o,"animate-in fade-in-0 zoom-in-95",f),children:a}),document.body)]})}])},954768,e=>{"use strict";var t=e.i(151328);e.i(75646);var r=e.i(659028),n=e.i(663924),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,i)=>{let o=(0,r.createSlot)(`Primitive.${i}`),a=t.forwardRef((e,t)=>
1{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(r?o:i,{...a,ref:t})});return a.displayName=`Primitive.${i}`,{...e,[i]:a}},{});e.s(["Primitive",0,i])},267425,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z",clipRule:"evenodd"}))});e.s(["PhotoIcon",0,r],267425)},477755,e=>{"use strict";var t=e.i(151328),r=e.i(878224);e.s(["useSyncedCredits",0,function({userId:e,activeOrgId:n,canViewOrgCredits:i}){let o=(0,r.useCreditsStore)(e=>e.balanceCredits),a=(0,r.useCreditsStore)(e=>e.freeCredits),s=(0,r.useCreditsStore)(e=>e.subscriptionTier),l=(0,r.useCreditsStore)(e=>e.subscriptionStatus),u=(0,r.useCreditsStore)(e=>e.isLoading),c=(0,r.useCreditsStore)(e=>e.refreshCredits),d=(0,r.useCreditsStore)(e=>e.cancelCreditsRefresh),f=(0,r.useCreditsStore)(e=>e.refreshTick),h=(0,r.useCreditsStore)(e=>e.clearCredits);return(0,t.useEffect)(()=>{if(!e)return void h();let t={userId:e,activeOrgId:n,canViewOrgCredits:i},r=()=>{"visible"===document.visibilityState?c(t):d()};return r(),window.addEventListener("online",r),document.addEventListener("visibilitychange",r),()=>{window.removeEventListener("online",r),document.removeEventListener("visibilitychange",r)}},[e,n,i,f,c,d,h]),{balanceCredits:o,freeCredits:a,subscriptionTier:s,subscriptionStatus:l,isLoading:u}}])},175053,31172,e=>{"use strict";let t=1.05/.85;function r(e){return e<=0?0:Math.round(200*e)}function n(e,n){return r(e<=0?0:"USD"===n?e:"GBP"===n?e*t:1.05*e)}let i=[{id:"mini",name:"Mini Pack",description:"The smallest recharge: finish the production you started",amountEuros:3,creditsAmount:n(3,"EUR")},{id:"light",name:"Light Pack",description:"Unlock serious tests, premium prompts, and first productions without friction",amountEuros:10,creditsAmount:n(10,"EUR")},{id:"pro",name:"Pro Pack",description:"The practical recharge for steady production without breaking your workflow",amountEuros:35,creditsAmount:n(35,"EUR"),popular:!0},{id:"ultra",name:"Ultra Pack",description:"Extra budget for campaigns, teams, and high-volume production",amountEuros:200,creditsAmount:n(200,"EUR")},{id:"custom",name:"Custom",description:"Decide how hard to push: start from 5 € and recharge only what you need",amountEuros:5,creditsAmount:n(5,"EUR"),custom:!0,minAmountEuros:5}];function o(e){return e<=0?0:Math.ceil(1.05*e)}function a(e){return r(o(e))}e.s(["CREDITS_PER_USD",0,200,"CREDIT_PACKAGES",0,i,"EUR_TO_USD_RATE",0,1.05,"USAGE_PRICE_MULTIPLIER",0,1.5,"applyUsageMargin",0,function(e){return 1.5*e},"currencyAmountToCredits",0,n,"currencyForLocale",0,function(e){let t=e.toLowerCase();return t.startsWith("it")||t.startsWith("es")?"EUR":"USD"},"getCreditPackage",0,function(e){return i.find(t=>t.id===e)},"packAmountForCurrency",0,function(e,t){return"USD"===t?Math.round(1.05*e):"GBP"===t?Math.round(.85*e*2)/2:e},"usdToCredits",0,r],31172);let s=[{id:"light",name:"Light",monthlyPriceEur:10,yearlyPriceEur:96,yearlyDiscountPercent:20,monthlyCredits:a(10),includedFeatures:["image_generation","video_generation","watermark_free"],stripePriceEnv:{month:"STRIPE_PRICE_LIGHT_MONTHLY",year:"STRIPE_PRICE_LIGHT_YEARLY"}},{id:"pro",name:"Pro",monthlyPriceEur:35,yearlyPriceEur:336,yearlyDiscountPercent:20,monthlyCredits:a(35),includedFeatures:["image_generation","video_generation","watermark_free","pro_studio","queue_priority_over_freemium_light"],stripePriceEnv:{month:"STRIPE_PRICE_PRO_MONTHLY",year:"STRIPE_PRICE_PRO_YEARLY"}},{id:"ultra",name:"Ultra",monthlyPriceEur:120,yearlyPriceEur:1152,yearlyDiscountPercent:20,monthlyCredits:a(120
1),includedFeatures:["all_pro_features","watermark_free","queue_priority_over_freemium_light_pro","customer_support"],stripePriceEnv:{month:"STRIPE_PRICE_ULTRA_MONTHLY",year:"STRIPE_PRICE_ULTRA_YEARLY"}}],l={id:"team",name:"Team",monthlyPriceEur:25,yearlyPriceEur:240,yearlyDiscountPercent:20,monthlyCredits:a(25),includedFeatures:["image_generation","video_generation","watermark_free","pro_studio","customer_support","shared_workspace","shared_projects","shared_credits_pool"],stripePriceEnv:{month:"STRIPE_PRICE_TEAM_MONTHLY",year:"STRIPE_PRICE_TEAM_YEARLY"}},u={light:s[0],pro:s[1],ultra:s[2],team:l};e.s(["SUBSCRIPTION_PLANS",0,s,"SUBSCRIPTION_YEARLY_DISCOUNT_PERCENT",0,20,"getSubscriptionMonthlyCredits",0,function(e,t,r=1){let n=Number.isFinite(r)&&r>0?Math.floor(r):1;return a(e.monthlyPriceEur*n)},"getSubscriptionPlan",0,function(e){return u[e]},"subscriptionPriceEurToDisplayUsd",0,o],175053)},778435,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25ZM12.75 6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75h4.5a.75.75 0 0 0 0-1.5h-3.75V6Z",clipRule:"evenodd"}))});e.s(["ClockIcon",0,r],778435)},941201,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M4.5 4.5a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h8.25a3 3 0 0 0 3-3v-9a3 3 0 0 0-3-3H4.5ZM19.94 18.75l-2.69-2.69V7.94l2.69-2.69c.944-.945 2.56-.276 2.56 1.06v11.38c0 1.336-1.616 2.005-2.56 1.06Z"}))});e.s(["VideoCameraIcon",0,r],941201)},880368,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M12.97 3.97a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 1 1-1.06-1.06l6.22-6.22H3a.75.75 0 0 1 0-1.5h16.19l-6.22-6.22a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["ArrowRightIcon",0,r],880368)},606919,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z",clipRule:"evenodd"}))});e.s(["BoltIcon",0,r],606919)},390052,e=>{"use strict";var t=e.i(151328);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))});e.s(["ChevronDownIcon",0,r],390052)},212083,e=>{"use strict";let t=[{id:"auto",label:"Auto",model:"luna",reasoningEffort:"xhigh"},{id:"auto-pro",label:"Auto Pro",model:"sol",reasoningEffort:"medium"},{id:"auto-ultra",label:"Auto Ultra",model:"sol",reasoningEffort:"high"}
1],r=new Set(["luna","terra","sol"]),n=new Set(["none","low","medium","high","xhigh","max"]);function i(e){return t.find(t=>t.id===e)??t[0]}let o=new Set(["image","video","audio","document"]);function a(e){return"string"==typeof e&&o.has(e)}e.s(["DEFAULT_PRO_STUDIO_AGENT_CONFIG",0,{model:"luna",reasoningEffort:"xhigh"},"PRO_STUDIO_AGENT_PRESET_OPTIONS",0,t,"PRO_STUDIO_AGENT_REFERENCE_LIMIT",0,50,"getProStudioAgentPresetForConfig",0,function(e){let r=t.find(t=>t.model===e.model&&t.reasoningEffort===e.reasoningEffort);return r||("terra"===e.model&&"high"===e.reasoningEffort?i("auto-pro"):t[0])},"getProStudioAgentPresetOption",0,i,"isProStudioAgentActivity",0,function(e){return!!e&&"object"==typeof e&&Number.isInteger(e.sequence)&&"string"==typeof e.phase&&["thinking","compacting","tool","retrying","finalizing","complete"].includes(e.phase)&&(void 0===e.toolName||"string"==typeof e.toolName)&&(void 0===e.skillNames||Array.isArray(e.skillNames)&&e.skillNames.length<=16&&e.skillNames.every(e=>"string"==typeof e&&e.length>0&&e.length<=80))&&(void 0===e.attempt||Number.isInteger(e.attempt))&&(void 0===e.maxAttempts||Number.isInteger(e.maxAttempts))},"isProStudioAgentJob",0,function(e){return!!e&&"object"==typeof e&&"string"==typeof e.id&&("generation"===e.kind||"previs-3d"===e.kind)&&("prostudio_job_status"===e.statusToolName||"prostudio_previs_job_get"===e.statusToolName||"prostudio_previs_image_to_3d_status"===e.statusToolName)&&"string"==typeof e.status&&"number"==typeof e.progress&&Number.isFinite(e.progress)&&"string"==typeof e.step&&"string"==typeof e.title&&"string"==typeof e.createdAt&&"string"==typeof e.updatedAt},"isProStudioAgentPreset",0,function(e){return"string"==typeof e&&t.some(t=>t.id===e)},"isProStudioAgentProgressMessage",0,function(e){return!!e&&"object"==typeof e&&Number.isInteger(e.sequence)&&"string"==typeof e.content&&!!e.content.trim()&&"string"==typeof e.createdAt},"isProStudioAgentReferenceType",0,a,"normalizeProStudioAgentConfig",0,function(e){if(!e||"object"!=typeof e||"string"!=typeof e.model||!r.has(e.model)||"string"!=typeof e.reasoningEffort||!n.has(e.reasoningEffort))return null;let i=e.model,o=e.reasoningEffort;return t.find(e=>e.model===i&&e.reasoningEffort===o)||"terra"===i&&"high"===o?{model:i,reasoningEffort:o}:null},"normalizeProStudioAgentReferences",0,function(e){return Array.isArray(e)?e.flatMap(e=>{if(!e||"object"!=typeof e||"string"!=typeof e.id||!a(e.type)||"string"!=typeof e.url||!/^https:\/\//i.test(e.url))return[];let t="string"==typeof e.mimeType?e.mimeType.trim().toLowerCase().slice(0,160):"",r="number"==typeof e.sizeBytes&&Number.isFinite(e.sizeBytes)&&e.sizeBytes>0?Math.floor(e.sizeBytes):null;return[{id:e.id.slice(0,160),type:e.type,url:e.url.slice(0,4e3),name:"string"==typeof e.name?e.name.slice(0,240):void 0,...t?{mimeType:t}:{},...null!==r?{sizeBytes:r}:{},..."string"==typeof e.referenceId&&e.referenceId.trim()?{referenceId:e.referenceId.trim().slice(0,160)}:{}}]}).slice(0,50):[]}])},925568,e=>{"use strict";var t=e.i(151328),r=e.i(260914),n=e.i(406099),i=e.i(510970),o=e.i(878224),a=e.i(51154),s=e.i(486377);e.s(["PurchaseSuccessHandler",0,function(){let e=(0,r.useSearchParams)(),l=(0,r.useRouter)(),{showToast:u}=(0,n.useToast)(),c=(0,i.useTranslations)("credits"),d=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=e.get("purchase"),r=e.get("session_id"),n=`${t??""}:${r??""}`;if(!t||d.current!==n){if(t&&(d.current=n),("success"===t||r)&&(0,o.notifyCreditsUpdated)(),"success"===t){let t=e.get("subscription"),n=e.get("order_value"),i=n?Number(n):void 0,o=e.get("currency")||void 0,d=e.get("voucher")||void 0,f=e.get("event_id"),h=f?Number(f):void 0;(0,a.trackCheckoutReturned)({tier:t??void 0,session_id:r??void 0}),r&&(0,s.trackTradeDoublerSale)({transactionId:r,ordervalue:Number.isFinite(i)?i:void 0,currency:o,voucher:d,event:Number.isFinite(h)?h:void 0}),u(c("purchaseSuccess.title"),c("purchaseSuccess.description"),"success");let m=new URL(window.location.href);m.searchParams.delete("purchase"),m.searchParams.delete("session_id"),m.searchParams.delete("order_value"),m.searchParams.delete("currency"),m.searchParams.delete("voucher"),m.searchParams.delete("event_id"),l.replace(`${m.pathname}${m.search}`,{scroll:!1})}else if("cancelled"===t){u(c("purchaseCancelled.title"),c("purchaseCancelled.description"),"info");let e=new URL(window.location.href);e.searchParams.delete("purchase"),e.searchParams.delete("session_id"),e.searchParams.delete("order_value"),e.searchParams.delete("currency"),e.searchParams.delete("voucher"),e.searchParams.delete("event_id"),l.replace(`${e.pathname}${e.search}`,{scroll:!1})}else if("failed"===t){u(c("purchaseFailed.title"),c("purchaseFailed.description"),"error");let e=new URL(window.location.href);e.searchParams.delete("purchase"),e.searchParams.delete("session_id"),l.replace(`${e.pathname}${e.search}`,{scroll:!1})}}},[e,l,u,c]),null}])},41384,e=>{"use strict";var t=e.i(663924),r=e.i(151328),n=e.i(744705),i=e.i(535328),o=e.i(357237),a=e.i(390676),s=e.i(925568);function l(){return(0,t.jsx)("div",{className:"min-h-[360px] w-full bg-[var(--creative-shell-bg)]","aria-hidden":"true"})}let u=(0,r.lazy)(()=>e.A(18081).then(e=>({default:e.CreativeStudioFooter}))),c=(0,r.lazy)(()=>e.A(784852).then(e=>({default:e.ExploreLandingRedesign}))),d=(0,r.lazy)(()=>e.A(185654).then(e=>({default:e.ExploreLandingContactSection}))),f=(0,r.lazy)(()=>e.A(631090).then(e=>({default:e.ExploreLandingAgentSection}))),h=(0,r.lazy)(()=>e.A(767035).then(e=>({default:e.ExploreLandingBriefSection}))),m=(0,r.lazy)(()=>e.A(899756).then(e=>({default:e.ExploreLandingCollaborationSection}))),p=(0,r.lazy)(()=>e.A(609326).then(e=>({default:e.ExploreLandingMcpSection}))),g=(0,r.lazy)(()=>e.A(778916).then(e=>({default:e.ExploreLandingProductionToolsSection}))),v=(0,r.lazy)(()=>e.A(70674).then(e=>({default:e.ExploreLandingReleaseNotes}))),w=(0,r.lazy)(()=>e.A(920561).then(e=>({default:e.ExplorePricingSection})));function b({isPublic:e=!1}){let{user:y,loading:E}=(0,o.useAuth)(),x=(0,n.useRouter)(),P=e&&!!y,_=(0,r.useRef)(null);return(0,r.useEffect)(()=>{_.current&&(window.clearTimeout(_.current),_.current=null);let t=!1;return(async()=>
1{if(!e&&!y&&!E){let e=(0,a.createClient)(),{data:{user:r}}=await e.auth.getUser();!t&&(r||(_.current=window.setTimeout(async()=>{let{data:{user:r}}=await e.auth.getUser();!t&&(r||x.push("/auth"))},1e3)))}})(),()=>{t=!0,_.current&&(window.clearTimeout(_.current),_.current=null)}},[e,y,E,x]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("link",{rel:"dns-prefetch",href:"https://wmstudioassetsstartup.blob.core.windows.net"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://wmstudioassetsstartup.blob.core.windows.net",crossOrigin:"anonymous"}),(!e||P)&&(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(s.PurchaseSuccessHandler,{})}),(0,t.jsx)(i.CreativeStudioLayout,{isPublic:e&&!y,showAuthenticatedProStudioCta:!!y,overlayHeader:!0,transparentHeaderAtTop:!0,documentScroll:!0,children:(0,t.jsx)("div",{className:"flex min-h-screen w-full flex-col bg-[var(--creative-shell-bg)]",children:(0,t.jsxs)("div",{className:"flex-1 overflow-x-clip bg-[#050505] pb-0",children:[(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(c,{requireAuth:!E&&!y})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(f,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(h,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(m,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(p,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(g,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(w,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(v,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(d,{})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(l,{}),children:(0,t.jsx)(u,{visualVariant:"hero-video"})})]})})})]})}e.s(["CreativeStudioExplorePage",0,b,"default",0,function(){return(0,t.jsx)(b,{})}])},18081,e=>{e.v(t=>Promise.all(["static/chunks/0g_dd5h~3wcgv.js"].map(t=>e.l(t))).then(()=>t(101765)))},784852,e=>{e.v(t=>Promise.all(["static/chunks/0tfjny_w8rl9o.js"].map(t=>e.l(t))).then(()=>t(351926)))},185654,e=>{e.v(t=>Promise.all(["static/chunks/0jjzfsekw2ybq.js"].map(t=>e.l(t))).then(()=>t(701147)))},631090,e=>{e.v(t=>Promise.all(["static/chunks/16h5p2zpxh4b~.js"].map(t=>e.l(t))).then(()=>t(672471)))},767035,e=>{e.v(t=>Promise.all(["static/chunks/0bv5d734ugn--.js"].map(t=>e.l(t))).then(()=>t(47997)))},899756,e=>{e.v(t=>Promise.all(["static/chunks/0bo9ljuba10xz.js","static/chunks/0l43eiiy2-v3r.css"].map(t=>e.l(t))).then(()=>t(19770)))},609326,e=>{e.v(t=>Promise.all(["static/chunks/0shlpqo3643zi.js"].map(t=>e.l(t))).then(()=>t(953518)))},778916,e=>{e.v(t=>Promise.all(["static/chunks/0h6fyd_9zlujr.js","static/chunks/134c5w5scs3cy.css"].map(t=>e.l(t))).then(()=>t(454829)))},70674,e=>{e.v(t=>Promise.all(["static/chunks/0ddefvvm7e_~0.js"].map(t=>e.l(t))).then(()=>t(570016)))},920561,e=>{e.v(t=>Promise.all(["static/chunks/06l0h6y2t-nhl.js","static/chunks/0pnozponl0ce-.js"].map(t=>e.l(t))).then(()=>t(798076)))}]);
2
3//# chunkId=01a10b95-3ae0-7123-856d-d390f238f69f

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.