PageSourceSearch

https://omnimax.ai/_next/static/chunks/app/%5Blocale%5D/layout-405ddfdb78fc35d7.js

js omnimax.ai collected 2026-10-05 13:43:01 UTC 15,557 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{55484:function(e,t,i){Promise.resolve().then(i.t.bind(i,72853,23)),Promise.resolve().then(i.bind(i,32389)),Promise.resolve().then(i.bind(i,1182)),Promise.resolve().then(i.bind(i,93263)),Promise.resolve().then(i.bind(i,44813)),Promise.resolve().then(i.t.bind(i,73994,23)),Promise.resolve().then(i.t.bind(i,8705,23))},32389:function(e,t,i){"use strict";i.r(t);var a=i(57437),o=i(63484),r=i(2265),n=i(24033),s=i(59235),l=i(33955),m=i.n(l),g=i(5925),u=i(85739),d=i(38597);let CrispChat=()=>{let e=(0,n.usePathname)(),t=(0,o.mO)(),[i,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let getUser=async()=>{let{data:{session:e}}=await t.auth.getSession();e&&a(e.user)};getUser()},[]),(0,r.useEffect)(()=>{var t,i;(null===d.Z||void 0===d.Z?void 0:null===(t=d.Z.crisp)||void 0===t?void 0:t.id)&&(s.fv.configure(d.Z.crisp.id),!d.Z.crisp.onlyShowOnRoutes||(null===(i=d.Z.crisp.onlyShowOnRoutes)||void 0===i?void 0:i.includes(e))||(s.fv.chat.hide(),s.fv.chat.onChatClosed(()=>{s.fv.chat.hide()})))},[e]),(0,r.useEffect)(()=>{var e;(null==i?void 0:i.id)&&(null===d.Z||void 0===d.Z?void 0:null===(e=d.Z.crisp)||void 0===e?void 0:e.id)&&s.fv.session.setData({userId:i.id})},[i]),null};t.default=e=>{let{children:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m(),{color:d.Z.colors.main,showSpinner:!1}),t,(0,a.jsx)(g.x7,{toastOptions:{duration:3e3}}),(0,a.jsx)(u.u,{id:"tooltip",className:"z-[60] !opacity-100 max-w-sm shadow-lg"}),(0,a.jsx)(CrispChat,{})]})}},1182:function(e,t,i){"use strict";i.r(t);var a=i(57437),o=i(2265),r=i(48475),n=i.n(r);t.default=()=>((0,o.useEffect)(()=>{window._linkedin_partner_id="7578874",window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(window._linkedin_partner_id),window.lintrk||(window.lintrk=function(e,t){window.lintrk.q.push([e,t])},window.lintrk.q=[])},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{id:"linkedin-insight",src:"https://snap.licdn.com/li.lms-analytics/insight.min.js",strategy:"afterInteractive",async:!0}),(0,a.jsx)("noscript",{children:(0,a.jsx)("img",{height:"1",width:"1",style:{display:"none"},alt:"",src:"https://px.ads.linkedin.com/collect/?pid=7578874&fmt=gif"})})]}))},93263:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return UtmParamsDetector}});var a=i(2265),o=i(24033),r=i(32273),n=i(51244);function UtmParamsDetector(){let{user:e}=(0,n.aC)(),t=(0,o.useSearchParams)();(0,a.useEffect)(()=>{let e=t.get("utm_source"),i=t.get("utm_medium"),a=t.get("utm_campaign"),o=(()=>{let e=navigator.userAgent,t=/iPhone|iPad|iPod|Android/i.test(e);return t})()?"mobile":"desktop",r=document.referrer;localStorage.getItem("aiphotoeditor_referrer")||localStorage.setItem("aiphotoeditor_referrer",r||""),localStorage.getItem("aiphotoeditor_referrer")||localStorage.setItem("aiphotoeditor_utm_source",e||""),localStorage.getItem("aiphotoeditor_utm_medium")||localStorage.setItem("aiphotoeditor_utm_medium",i||""),localStorage.getItem("aiphotoeditor_utm_campaign")||localStorage.setItem("aiphotoeditor_utm_campaign",a||""),localStorage.getItem("aiphotoeditor_device_info")||localStorage.setItem("aiphotoeditor_device_info",o||"")},[t]),(0,a.useEffect)(()=>{let postUtmData=async()=>{if(e)try{let e=localStorage.getItem("aiphotoeditor_referrer"),t=localStorage.getItem("aiphotoeditor_utm_source"),i=localStorage.getItem("aiphotoeditor_utm_medium"),a=localStorage.getItem("aiphotoeditor_utm_campaign"),o=localStorage.getItem("aiphotoeditor_device_info");if(e&&!localStorage.getItem("aiphotoeditor_user_utm_tracker")){let n=await r.Z.post("/user-utm-tracker",{utmSource:t,utmMedium:i,utmCampaign:a,deviceInfo:o,referrer:e});200===n.status&&localStorage.setItem("aiphotoeditor_user_utm_tracker","true")}}catch(e){console.error("Error posting UTM data:",e)}};postUtmData()},[e])}},38597:function(e,t,i){"use strict";var a=i(69077),o=i.n(a);let r="omnimax.ai",n={appName:"Omni Max AI",appDescription:"Experience Google's revolutionary Gemini Omni AI  for advanced video generation and editing. Create, blend, and enhance video with state-of-the-art AI technology in Google AI Studio. Professional video editing made simple",domainName:r,httpsDomainNameWithW:"https://"+r,httpsDomainName:"https://"+r,httpsDomain:"https://omnimax.ai",httpsImageDomainName:"https://cdn."+r,domainIcon:"https://cdn."+r+"/icon.png",crisp:{id:"",onlyShowOnRoutes:["/"]},signinCredits:3,inviteCredits:5,stripe:{plans:[{priceId:"price_1OWPdAEYguPiYN3AI8E8IFXw",name:"Free Plan",description:"Free Plan",price:0,freeCredits:25,priceAnchor:0,features:[{name:"Free Plan"},{name:"25 credits"},{name:"High quality images"},{name:"Image History"},{name:"Image Model(DALL\xb7E 3, Stable Diffusion support, Midjourney coming)"},{name:"Faster design generation"},{name:"Create icon, logo, poster,coloring pages and more designs..."}]},{priceId:"price_1OqcbiFxyz8xFcqcwPSbSoSi",name:"Basic plan",description:"Perfect for basic projects",price:9,priceAnchor:18,features:[{name:"Basic plan"},{name:"25 credits"},{name:"High quality images"},{name:"Image History"},{name:"Image Model(DALL\xb7E 3, Stable Diffusion support, Midjourney coming)"},{name:"Faster design generation"},{name:"Design Editor Coming"},{name:"Create icon, logo, poster,coloring pages and more designs..."}]},{isFeatured:!0,priceId:"price_1OoLXoFxyz8xFcqchFQpSmz4",name:"Starter Plan",description:"Perfect for small projects",price:18,priceAnchor:36,features:[{name:"Starter Plan"},{name:"50 credits"},{name:"High quality images"},{name:"Image History"},{name:"Image Model(DALL\xb7E 3, Stable Diffusion Support, Midjourney Coming)"},{name:"Faster design generation"},{name:"Create icon, logo, poster,coloring pages and more designs..."}]},{priceId:"price_1OoLYkFxyz8xFcqcujwSy8cu",name:"Premium Plan",description:"You need more power",price:28,priceAnchor:56,features:[{name:"Premium Plan"},{name:"100 credits"},{name:"High quality images"},{name:"Image Model(DALL\xb7E 3, Stable Diffusion Support, Midjourney Coming)"},{name:"Faster design generation"},{name:"Create icon, logo, poster,coloring pages and more designs..."}]}]},aws:{bucket:"bucket-name",bucketUrl:"https://bucket-name.s3.amazonaws.com/",cdn:"https://cdn-id.cloudfront.net/"},mailgun:{supportEmail:"[email protected]"},colors:{theme:"light",main:o()["[data-theme=light]"].primary},auth:{loginUrl:"/signin",loginAllUrl:"https://omnimax.ai/signin",callbackUrl:"/photo-editor"},prompt:{icon:"a   high-definition [imageStyle] ios app icon featuring [imagePrompt]. front view. icon without any titles or text.",logo:"a high-definition [imageStyle] logo featuring [imagePrompt]. front view. [imageTitle]",sticker:"a high-definition [imageStyle] sticker featuring [imagePrompt], with vibrant colors and white borders on a minimal white background. stickers all in image. front view. [imageTitle]",poster:"a high-definition [imageStyle], borderless format poster featuring [imagePrompt]. front view. [imageTitle]",coloringpage:"a high-definition, printable, [imageStyle] borderless format coloring page featuring  [imagePrompt] that have been colored and the same [imagePrompt] that have not been colored. front view. [imageTitle]",mockup:"a high-definition [imageStyle] mockup featuring [imagePrompt], with white background, front view. [imageTitle]",postcard:"a high-definition [imageStyle] postcard featuring [imagePrompt],with white background, front view. [imageTitle]",tattoo:"a high-definition, printable,[imageStyle] tattoo featuring [imagePrompt],with white background, front view. [imageTitle]",birthdaycard:"a high-definition, printable, [imageStyle], borderless format birthday card featuring [imagePrompt], front view. [imageTitle]",character:"a [imageStyle] character of [imagePrompt]. [imageTitle]",illustration:"a high-definition, [imageStyle], borderless format illustration featuring [imagePrompt], front view. [imageTitle]",custom:"[imagePrompt]"},mjPrompt:{icon:"a front view of high-definition [imageStyle] ios app icon featuring [imagePrompt]",logo:"a front view of high-definition [imageStyle] logo featuring [imagePrompt]",sticker:"a front view of high-definition [imageStyle] sticker featuring with vibrant colors and white borders on a minimal white background and [imagePrompt]",poster:"a front view of high-definition [imageStyle], borderless format poster featuring [imagePrompt]",coloringpage:"a high-definition, printable, [imageStyle] borderless format coloring page featuring [imagePrompt]",mockup:"a front view of high-definition [imageStyle] mockup featuring [imagePrompt]",postcard:"a front view of high-definition [imageStyle] postcard featuring [imagePrompt]",tattoo:"a front view of high-definition, printable,[imageStyle] tattoo featuring [imagePrompt]",birthdaycard:"a front view of high-definition, printable, [imageStyle], borderless format birthday card featuring [imagePrompt]",character:"a front view  of [imageStyle] character featuring [imagePrompt]",illustration:"a front view of high-definition, [imageStyle], borderless format illustration featuring [imagePrompt]",custom:"[imagePrompt]"},fluxPrompt:{icon:"a high-definition [imageStyle] ios app icon featuring [imagePrompt]. front view. icon without any titles or text.",logo:"a high-definition [imageStyle] logo featuring [imagePrompt]. front view. [imageTitle]",sticker:"a high-definition [imageStyle] sticker featuring [imagePrompt], with vibrant colors and white borders on a minimal white background. stickers all in image. front view. [imageTitle]",poster:"a high-definition [imageStyle], borderless format poster featuring [imagePrompt]. front view. [imageTitle]",coloringpage:"a high-definition, printable, [imageStyle] borderless format coloring page featuring  [imagePrompt] that have been colored and the same [imagePrompt] that have not been colored. front view. [imageTitle]",mockup:"a high-definition [imageStyle] mockup featuring [imagePrompt], with white background, front view. [imageTitle]",postcard:"a high-definition [imageStyle] postcard featuring [imagePrompt],with white background, front view. [imageTitle]",tattoo:"a high-definition, printable,[imageStyle] tattoo featuring [imagePrompt],with white background, front view. [imageTitle]",birthdaycard:"a high-definition, printable, [imageStyle], borderless format birthday card featuring [imagePrompt], front view. [imageTitle]",character:"a [imageStyle] character of [imagePrompt]. [imageTitle]",illustration:"a high-definition, [imageStyle], borderless format illustration featuring [imagePrompt], front view. [imageTitle]",custom:"[imagePrompt]"}};t.Z=n},32273:function(e,t,i){"use strict";var a=i(54829),o=i(5925),r=i(24033),n=i(38597);let s=a.Z.create({timeout:3e5,headers:{"Cache-Control":"no-cache",Pragma:"no-cache"},baseURL:"/api"});s.interceptors.response.use(function(e){return e.data},function(e){var t,i,a,s;let l="";return(null===(t=e.response)||void 0===t?void 0:t.status)===401?(o.Am.error("Please login"),(0,r.redirect)(n.Z.auth.loginUrl)):l=(null===(i=e.response)||void 0===i?void 0:i.status)===403?"Pick a plan to use this feature":(null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.error)||e.message||e.toString(),e.message="string"==typeof l?l:JSON.stringify(l),console.error(e.message),e.message?o.Am.error(e.message):o.Am.error("something went wrong..."),Promise.reject(e)}),t.Z=s},32104:function(e,t,i){"use strict";i.d(t,{LT:function(){return getCachedAuthSession},RV:function(){return clearCachedAuthSession},U_:function(){return r}});var a=i(94141),o=i(93797);let r=(0,a.XL)({plugins:[(0,o.lO)()]}),n=null,s=0,l=null;async function getCachedAuthSession(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Date.now();return!e&&n&&t-s<5e3?n:!e&&l?l:l=r.getSession().then(e=>(n=e,s=Date.now(),e)).finally(()=>{l=null})}
1function clearCachedAuthSession(){n=null,s=0,l=null}},51244:function(e,t,i){"use strict";i.d(t,{aC:function(){return useAuth}});var a=i(2265),o=i(63484);function useAuth(){let[e,t]=(0,a.useState)(null),[i,r]=(0,a.useState)(!0),[n,s]=(0,a.useState)(null),l=(0,o.mO)(),refreshUser=async()=>{try{r(!0),s(null);let{data:{session:e},error:i}=await l.auth.getSession();i?(console.error("Error fetching session:",i),s(i),t(null)):t((null==e?void 0:e.user)||null)}catch(e){console.error("Unexpected error in refreshUser:",e),s(e),t(null)}finally{r(!1)}};return(0,a.useEffect)(()=>{refreshUser();let{data:{subscription:e}}=l.auth.onAuthStateChange((e,i)=>{switch(t((null==i?void 0:i.user)||null),r(!1),e){case"SIGNED_IN":console.log("User signed in");break;case"SIGNED_OUT":console.log("User signed out");break;case"TOKEN_REFRESHED":console.log("Token refreshed");break;case"USER_UPDATED":console.log("User data updated")}});return()=>{null==e||e.unsubscribe()}},[l]),{user:e,loading:i,error:n,refreshUser,isAuthenticated:!!e,userId:null==e?void 0:e.id,userEmail:null==e?void 0:e.email,userMetadata:null==e?void 0:e.user_metadata}}},63484:function(e,t,i){"use strict";let a;i.d(t,{mO:function(){return createClientComponentClient}});var o=i(13082),r=i(32104);function toSupabaseAuthUser(e){return e?{id:e.id,email:e.email,phone:e.phone||"",user_metadata:{name:e.name,full_name:e.name,avatar_url:e.image,picture:e.image,provider:e.provider},app_metadata:{provider:e.provider,providers:e.provider?[e.provider]:[]},email_confirmed_at:e.emailVerified?e.updatedAt:null,created_at:e.createdAt,updated_at:e.updatedAt,last_sign_in_at:e.lastSignInAt||null}:null}function toSupabaseAuthSession(e){return(null==e?void 0:e.session)&&(null==e?void 0:e.user)?{access_token:e.session.token,refresh_token:"",expires_at:e.session.expiresAt?Math.floor(new Date(e.session.expiresAt).getTime()/1e3):void 0,expires_in:e.session.expiresAt?Math.max(0,Math.floor((new Date(e.session.expiresAt).getTime()-Date.now())/1e3)):void 0,token_type:"bearer",user:toSupabaseAuthUser(e.user)}:null}function createClientAuthCompat(){return{async getSession(){let{data:e,error:t}=await (0,r.LT)();return{data:{session:t?null:toSupabaseAuthSession(e)},error:t}},async getUser(){let{data:e,error:t}=await (0,r.LT)();return{data:{user:t?null:toSupabaseAuthUser(null==e?void 0:e.user)},error:t}},async signInWithOAuth(){let{provider:e,options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=await r.U_.signIn.social({provider:e,callbackURL:null==t?void 0:t.redirectTo});return{data:(null==i?void 0:i.data)||i,error:(null==i?void 0:i.error)||null}},async signInWithOtp(){let{email:e,options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=await r.U_.signIn.magicLink({email:e,callbackURL:null==t?void 0:t.emailRedirectTo});return{data:(null==i?void 0:i.data)||i,error:(null==i?void 0:i.error)||null}},async signOut(){let e=await r.U_.signOut();return(0,r.RV)(),{data:(null==e?void 0:e.data)||e,error:(null==e?void 0:e.error)||null}},onAuthStateChange(e){let t;let i=!0,emit=async()=>{var a;if(!i)return;let{data:o}
1=await this.getSession(),r=o.session,n=(null==r?void 0:null===(a=r.user)||void 0===a?void 0:a.id)||null;n!==t&&(t=n,e(n?"SIGNED_IN":"SIGNED_OUT",r))};return emit(),{data:{subscription:{unsubscribe(){i=!1}}}}}}}function withBetterAuthClientCompat(e){let t=createClientAuthCompat();return new Proxy(e,{get:(e,i,a)=>"auth"===i?t:Reflect.get(e,i,a)})}function createClientComponentClient(e){return a||(a=withBetterAuthClientCompat((0,o.createClientComponentClient)(e))),a}},72853:function(){}},function(e){e.O(0,[93,4829,2130,3082,3961,4893,2971,2472,1744],function(){return e(e.s=55484)}),_N_E=e.O()}]);

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.