1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1702],{92313:function(e,t,o){o.d(t,{AR:function(){return s.ByteDanceLogo},MG:function(){return r},av:function(){return s.GoogleLogo},pi:function(){return s.OpenAILogo},QN:function(){return s.WanLogo},default:function(){return l}});var n=o(55644),a=o(54536);function r(e){let{className:t="h-5 w-5",size:o=24}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:o,height:o,className:t,children:(0,n.jsx)("path",{fill:"var(--primary-yellow)",d:"M20 17V7c0-2.168-3.663-4-8-4S4 4.832 4 7v10c0 2.168 3.663 4 8 4s8-1.832 8-4zM12 5c3.691 0 5.931 1.507 6 1.994C17.931 7.493 15.691 9 12 9S6.069 7.493 6 7.006C6.069 6.507 8.309 5 12 5zM6 9.607C7.479 10.454 9.637 11 12 11s4.521-.546 6-1.393v2.387c-.069.499-2.309 2.006-6 2.006s-5.931-1.507-6-2V9.607zM6 17v-2.393C7.479 15.454 9.637 16 12 16s4.521-.546 6-1.393v2.387c-.069.499-2.309 2.006-6 2.006s-5.931-1.507-6-2z"})})}o(56401);var s=o(68594);let i={Ri:a,GoogleLogo:s.GoogleLogo,ByteDanceLogo:s.ByteDanceLogo,OpenAILogo:s.OpenAILogo,WanLogo:s.WanLogo,HailuoLogo:s.HailuoLogo,KlingLogo:s.KlingLogo,FluxIconLogo:s.FluxIconLogo,MidIconLogo:s.MidIconLogo};function l(e){let{name:t,className:o}=e,a=function(e){let t=i[e.slice(0,2)];return t&&t[e]||null}(t);return a?(0,n.jsx)(a,{className:o}):null}},91734:function(e,t,o){o.d(t,{z:function(){return d}});var n=o(55644),a=o(56401),r=o(47330),s=o(28510),i=o(27928);let l=(0,s.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 rounded-xl",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"",link:"text-primary underline-offset-4 hover:underline",crystal:"relative bg-transparent border border-purple-500/30 border-pink-500/50 text-gradient-crystal transition-all duration-300 shadow-lg shadow-purple-500/20 text-lg border-2 rounded-3xl",hyper:"bg-gradient-to-r from-[#942aff] to-[#f472b6] text-white hover:opacity-90 shadow-lg shadow-purple-500/20 transition-all duration-300",hyperghost:"bg-background ",wan:"bg-gradient-to-r from-[#4f46e5] via-[#3b82f6] to-[#06b6d4] text-white hover:from-[#4338ca] hover:via-[#2563eb] hover:to-[#0891b2] shadow-lg shadow-blue-500/25 hover:shadow-blue-500/40 transition-all duration-500 transform hover:scale-[1.02]",try_button:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 dark:from-blue-500 dark:to-purple-500 dark:hover:from-blue-600 dark:hover:to-purple-600 text-white font-semibold rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 relative z-[1] text-center px-8 md:px-12 rounded-full text-center bg-black flex items-center justify-center text-md md:text-xl",theme:"bg-gradient-to-r from-[#4f46e5] via-[#3b82f6] to-[#06b6d4] text-white hover:from-[#4338ca] hover:via-[#2563eb] hover:to-[#0891b2] shadow-lg shadow-blue-500/25 hover:shadow-blue-500/40 transition-all duration-500 transform hover:scale-[1.02]",pay:"bg-white text-[#FF3466]",gift_button:"bg-[#392a0d] text-white rounded-xl"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-xl px-8",icon:"h-10 w-10",xl:"h-12 rounded-xl px-16 py-4 text-xl"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:o,variant:a,size:s,asChild:d=!1,...u}=e,c=d?r.g7:"button";return(0,n.jsx)(c,{className:(0,i.cn)(l({variant:a,size:s,className:o})),ref:t,...u})});d.displayName="Button"},48694:function(e,t,o){o.d(t,{$F:function(){return c},AW:function(){return f},Ju:function(){return g},VD:function(){return m},Xi:function(){return p},h_:function(){return u}});var n=o(55644),a=o(56401),r=o(60864),s=o(45620),i=o(76020),l=o(26388),d=o(27928);let u=r.fC,c=r.xz;r.ZA,r.Uv,r.Tr,r.Ee,a.forwardRef((e,t)=>
1{let{className:o,inset:a,children:i,...l}=e;return(0,n.jsxs)(r.fF,{ref:t,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",o),...l,children:[i,(0,n.jsx)(s.Z,{className:"ml-auto"})]})}).displayName=r.fF.displayName,a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,n.jsx)(r.tu,{ref:t,className:(0,d.cn)("z-50 max-w-[6rem] overflow-hidden rounded-md bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...a})}).displayName=r.tu.displayName;let f=a.forwardRef((e,t)=>{let{className:o,sideOffset:a=4,...s}=e;return(0,n.jsx)(r.Uv,{children:(0,n.jsx)(r.VY,{ref:t,sideOffset:a,align:"start",alignOffset:-5,className:(0,d.cn)("z-50 rounded-md border-white/20 border-[0.5px] overflow-hidden bg-popover p-1 pt-0 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 min-w-[140px] fixed rtl:left-[-10px]",o),...s})})});f.displayName=r.VY.displayName;let p=a.forwardRef((e,t)=>{let{className:o,inset:a,...s}=e;return(0,n.jsx)(r.ck,{ref:t,className:(0,d.cn)("relative cursor-default select-none rounded-sm py-1.5 text-sm outline-none hover:bg-white/10 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 flex items-center gap-3 px-3",a&&"pl-8",o),...s})});p.displayName=r.ck.displayName,a.forwardRef((e,t)=>{let{className:o,children:a,checked:s,...l}=e;return(0,n.jsxs)(r.oC,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:s,...l,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})}),a]})}).displayName=r.oC.displayName,a.forwardRef((e,t)=>{let{className:o,children:a,...s}=e;return(0,n.jsxs)(r.Rk,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...s,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(l.Z,{className:"h-2 w-2 fill-current"})})}),a]})}).displayName=r.Rk.displayName;let g=a.forwardRef((e,t)=>{let{className:o,inset:a,...s}=e;return(0,n.jsx)(r.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",o),...s})});g.displayName=r.__.displayName;let m=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,n.jsx)(r.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-white/20",o),...a})});m.displayName=r.Z0.displayName},56107:function(e,t,o){o.d(t,{AppContextProvider:function(){return c},b:function(){return u}});var n=o(55644),a=o(56401),r=o(51991),s=o.n(r),i=o(38631),l=o(90441);let d=(0,a.createContext)({}),u=()=>(0,a.useContext)(d),c=e=>{let{children:t}=e;!function(){let{data:e,status:t}=(0,i.kP)(),o=async function(){s()({client_id:"217334599656-flvqkq5gh9tpu9h5v0mkqutisffjhs0a.apps.googleusercontent.com",auto_select:!1,cancel_on_tap_outside:!1,context:"signin"},e=>{console.log("onetap login ok",e),r(e.credential)})},r=async function(e){console.log("signIn ok",await (0,i.zB)("google-one-tap",{credential:e,redirect:!1}))};(0,a.useEffect)(()=>
1{if("unauthenticated"===t){o();let e=setInterval(()=>{o()},3e3);return()=>{clearInterval(e)}}},[t]),n.Fragment}();let{data:o}=(0,i.kP)(),[r,u]=(0,a.useState)(()=>"dark"),[c,f]=(0,a.useState)(!1),[p,g]=(0,a.useState)(null),[m,h]=(0,a.useState)(0),[x,v]=(0,a.useState)(!1),[b,w]=(0,a.useState)(!1),[y,N]=(0,a.useState)(!1),[k,j]=(0,a.useState)(!1),[_,L]=(0,a.useState)({pricingOpen:!1,pricing:{},tips:""});return(0,a.useEffect)(()=>{o&&o.user&&g(o.user)},[o]),(0,a.useEffect)(()=>{p&&_&&(0,l.tP)("price modal opened",{user:p.uuid})},[_]),(0,a.useEffect)(()=>{if(p){localStorage.getItem("fluxkontext_email")||localStorage.setItem("fluxkontext_email",p.email),N(!1);let e=localStorage.getItem("fluxkontext_email")?btoa(localStorage.getItem("fluxkontext_email")||""):"";fetch("/api/credits".concat(e?"?email=".concat(e):""),{method:"GET"}).then(e=>e.json()).then(e=>{let{code:t,data:{credits:{left_credits:o,is_recharged:n=!1,is_subscribed:a=!1}},message:r}=e;0===t&&(h(o),v(n),w(a),N(!0))})}},[p]),(0,n.jsx)(d.Provider,{value:{theme:r,setTheme:u,showSignModal:c,setShowSignModal:f,user:p,setUser:g,credits:m,setCredits:h,reCharged:x,setReCharged:v,isSubscribed:b,setIsSubscribed:w,isFetched:y,priceState:_,showLanguageBanner:k,setShowLanguageBanner:j,setPriceState:L},children:t})}},90441:function(e,t,o){o.d(t,{tP:function(){return n},uS:function(){return a}});let n=(e,t)=>{},a=(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.