PageSourceSearch

https://qwenimage20.com/_next/static/chunks/7ac3f7d8798265a0.js

js qwenimage20.com collected 2026-10-08 19:04:36 UTC 43,912 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,304610,e=>{"use strict";var t=e.i(828630),r=e.i(1474),a=e.i(479540),s=class extends r.Removable{#e;#t;#r;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||i(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#s({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=(0,a.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let s="pending"===this.state.status,i=!this.#a.canStart();try{if(s)t();else{this.#s({type:"pending",variables:e,isPaused:i}),await this.#r.config.onMutate?.(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e,isPaused:i})}let a=await this.#a.start();return await this.#r.config.onSuccess?.(a,e,this.state.context,this,r),await this.options.onSuccess?.(a,e,this.state.context,r),await this.#r.config.onSettled?.(a,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(a,null,e,this.state.context,r),this.#s({type:"success",data:a}),a}catch(t){try{throw await this.#r.config.onError?.(t,e,this.state.context,this,r),await this.options.onError?.(t,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,t,e,this.state.context,r),t}finally{this.#s({type:"error",error:t})}}finally{this.#r.runNext(this)}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function i(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",()=>s,"getDefaultState",()=>i])},158218,e=>{"use strict";let t=(0,e.i(360229).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t])},225452,e=>{"use strict";let t=(0,e.i(360229).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",()=>t])},580760,e=>{"use strict";var t=e.i(225452);e.s(["XIcon",()=>t.default])},729085,e=>{"use strict";var t=e.i(481554),r=e.i(533324);function a(e){let[a,s]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;s({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}s(void 0)},[e]),a}e.s(["useSize",()=>a])},233419,240409,e=>{"use strict";let t=(0,e.i(360229).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t],240409),e.s(["CircleIcon",()=>t],233419)},430621,e=>{"use strict";var t=e.i(481554),r=e.i(645579),a=e.i(658457),s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),i=t.forwardRef((e,t)=>
1(0,a.jsx)(r.Primitive.span,{...e,ref:t,style:{...s,...e.style}}));i.displayName="VisuallyHidden",e.s(["Root",()=>i,"VISUALLY_HIDDEN_STYLES",()=>s])},46957,e=>{"use strict";var t=e.i(884420);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",()=>a])},152759,e=>{"use strict";let t=(0,e.i(360229).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",()=>t])},77607,e=>{"use strict";var t,r=e.i(945228),a=((t={}).Root="/",t.FAQ="/#faq",t.Features="/#features",t.Pricing="/pricing",t.Blog="/blog",t.About="/about",t.Contact="/contact",t.Waitlist="/waitlist",t.Changelog="/changelog",t.Roadmap="https://mksaas.link/roadmap",t.CookiePolicy="/cookie",t.PrivacyPolicy="/privacy",t.TermsOfService="/terms",t.RefundPolicy="/refund",t.Login="/auth/login",t.Register="/auth/register",t.AuthError="/auth/error",t.ForgotPassword="/auth/forgot-password",t.ResetPassword="/auth/reset-password",t.Dashboard="/dashboard",t.AdminUsers="/admin/users",t.AdminScenes="/admin/scenes",t.AdminWorks="/admin/works",t.AdminVideoWorks="/admin/video-works",t.SettingsProfile="/settings/profile",t.SettingsBilling="/settings/billing",t.SettingsCredits="/settings/credits",t.SettingsSecurity="/settings/security",t.SettingsNotifications="/settings/notifications",t.Payment="/payment",t.PaymentSuccess="/payment-success",t.AIText="/ai/text",t.AIImage="/ai/image",t.AIChat="/ai/chat",t.AIVideo="/ai/video",t.Video="/video",t.AIAudio="/ai/audio",t.Scenes="/scenes",t.Works="/works",t.MyWorks="/my-works",t.MagicuiBlocks="/magicui",t.HeroBlocks="/blocks/hero-section",t.LogoCloudBlocks="/blocks/logo-cloud",t.FeaturesBlocks="/blocks/features",t.IntegrationsBlocks="/blocks/integrations",t.ContentBlocks="/blocks/content",t.StatsBlocks="/blocks/stats",t.TeamBlocks="/blocks/team",t.TestimonialsBlocks="/blocks/testimonials",t.CallToActionBlocks="/blocks/call-to-action",t.FooterBlocks="/blocks/footer",t.PricingBlocks="/blocks/pricing",t.ComparatorBlocks="/blocks/comparator",t.FAQBlocks="/blocks/faqs",t.LoginBlocks="/blocks/login",t.SignupBlocks="/blocks/sign-up",t.ForgotPasswordBlocks="/blocks/forgot-password",t.ContactBlocks="/blocks/contact",t);let s=r.websiteConfig.routes.defaultLoginRedirect??"/dashboard";e.s(["DEFAULT_LOGIN_REDIRECT",0,s,"Routes",()=>a])},996366,e=>{"use strict";var t=e.i(481554);let r=e=>{let t,r=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=a?a:"object"!=typeof s||null===s)?s:Object.assign({},t,s),r.forEach(r=>r(t,e))}},s=()=>t,i={setState:a,getState:s,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(a,s,i);return i},a=e=>{let a=e?r(e):r,s=e=>(function(e,r=e=>e){let a=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(a),a})(a,e);return Object.assign(s,a),s},s=e=>e?a(e):a;e.s(["create",()=>s],996366)},793479,e=>{"use strict";var t=e.i(658457),r=e.i(975157);function a({className:e,type:a,...s}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...s})}e.s(["Input",()=>a])},569381,e=>{"use strict";var t=e.i(152759);e.s(["Loader2Icon",()=>t.default])},746798,e=>{"use strict";var t=e.i(658457),r=e.i(481554),a=e.i(291967),s=e.i(806148),i=e.i(669122),o=e.i(31537),n=e.i(535313),l=e.i(432765),c=e.i(576496),u=e.i(836539),d=e.i(645579),p=e.i(969897),f=e.i(892857),m=e.i(430621),[h,g]=(0,i.createContextScope)("Tooltip",[l.createPopperScope]),v=(0,l.createPopperScope)(),x="TooltipProvider",y="tooltip.open",[b,k]=h(x),C=e=>{let{__scopeTooltip:a,delayDuration:s=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:n}=e,l=r.useRef(!0),c=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(b,{scope:a,isOpenDelayedRef:l,delayDuration:s,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),l.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.current=!0,i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(e=>{c.current=e},[]),disableHoverableContent:o,children:n})};C.displayName=x;var w="Tooltip",[S,j]=h(w),E=e=>{let{__scopeTooltip:a,children:s,open:i,defaultOpen:o,onOpenChange:c,disableHoverableContent:u,delayDuration:d}=e,p=k(w,e.__scopeTooltip),m=v(a),[h,g]=r.useState(null),x=(0,n.useId)(),b=r.useRef(0),C=u??p.disableHoverableContent,j=d??p.delayDuration,E=r.useRef(!1),[N,R]=(0,f.useControllableState)({prop:i,defaultProp:o??!1,onChange:e=>{e?(p.onOpen(),document.dispatchEvent(new CustomEvent(y))):p.onClose(),c?.(e)},caller:w}),P=r.useMemo(()=>N?E.current?"delayed-open":"instant-open":"closed",[N]),T=r.useCallback(()=>{window.clearTimeout(b.current),b.current=0,E.current=!1,R(!0)},[R]),I=r.useCallback(()=>{window.clearTimeout(b.current),b.current=0,R(!1)},[R]),A=r.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{E.current=!0,R(!0),b.current=0},j)},[j,R]);return r.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),(0,t.jsx)(l.Root,{...m,children:(0,t.jsx)(S,{scope:a,contentId:x,open:N,stateAttribute:P,trigger:h,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{p.isOpenDelayedRef.current?A():T()},[p.isOpenDelayedRef,A,T]),onTriggerLeave:r.useCallback(()=>{C?I():(window.clearTimeout(b.current),b.current=0)},[I,C]),onOpen:T,onClose:I,disableHoverableContent:C,children:s})})};E.displayName=w;var N="TooltipTrigger",R=r.forwardRef((e,i)=>{let{__scopeTooltip:o,...n}=e,c=j(N,o),u=k(N,o),p=v(o),f=r.useRef(null),m=(0,s.useComposedRefs)(i,f,c.onTriggerChange),h=r.useRef(!1),g=r.useRef(!1),x=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),(0,t.jsx)(l.Anchor,{asChild:!0,...p,children:(0,t.jsx)(d.Primitive.button,{"aria-describedby":c.open?c.c
1ontentId:void 0,"data-state":c.stateAttribute,...n,ref:m,onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||u.isPointerInTransitRef.current||(c.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,a.composeEventHandlers)(e.onPointerLeave,()=>{c.onTriggerLeave(),g.current=!1}),onPointerDown:(0,a.composeEventHandlers)(e.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>{h.current||c.onOpen()}),onBlur:(0,a.composeEventHandlers)(e.onBlur,c.onClose),onClick:(0,a.composeEventHandlers)(e.onClick,c.onClose)})})});R.displayName=N;var P="TooltipPortal",[T,I]=h(P,{forceMount:void 0}),A=e=>{let{__scopeTooltip:r,forceMount:a,children:s,container:i}=e,o=j(P,r);return(0,t.jsx)(T,{scope:r,forceMount:a,children:(0,t.jsx)(u.Presence,{present:a||o.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:i,children:s})})})};A.displayName=P;var _="TooltipContent",O=r.forwardRef((e,r)=>{let a=I(_,e.__scopeTooltip),{forceMount:s=a.forceMount,side:i="top",...o}=e,n=j(_,e.__scopeTooltip);return(0,t.jsx)(u.Presence,{present:s||n.open,children:n.disableHoverableContent?(0,t.jsx)(B,{side:i,...o,ref:r}):(0,t.jsx)(L,{side:i,...o,ref:r})})}),L=r.forwardRef((e,a)=>{let i=j(_,e.__scopeTooltip),o=k(_,e.__scopeTooltip),n=r.useRef(null),l=(0,s.useComposedRefs)(a,n),[c,u]=r.useState(null),{trigger:d,onClose:p}=i,f=n.current,{onPointerInTransitChange:m}=o,h=r.useCallback(()=>{u(null),m(!1)},[m]),g=r.useCallback((e,t)=>{let r,a=e.currentTarget,s={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,a,s,i)){case i:return"left";case s:return"right";case r:return"top";case a:return"bottom";default:throw Error("unreachable")}}(s,a.getBoundingClientRect());u(((r=[...function(e,t,r=5){let a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return a}(s,i),...function(e){let{top:t,right:r,bottom:a,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:a},{x:s,y:a}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let a=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(a.y-r.y)>=(e.y-r.y)*(a.x-r.x))t.pop();else break}t.push(a)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let a=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(a.y-t.y)>=(e.y-t.y)*(a.x-t.x))r.pop();else break}r.push(a)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),m(!0)},[m]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(d&&f){let e=e=>g(e,f),t=e=>g(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,g,h]),r.useEffect(()=>{if(c){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},a=d?.contains(t)||f?.contains(t),s=!function(e,t){let{x:r,y:a}=e,s=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],n=t[i],l=o.x,c=o.y,u=n.x,d=n.y;c>a!=d>a&&r<(u-l)*(a-c)/(d-c)+l&&(s=!s)}return s}(r,c);a?h():s&&(h(),p())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,c,p,h]),(0,t.jsx)(B,{...e,ref:l})}),[D,F]=h(w,{isInside:!1}),M=(0,p.createSlottable)("TooltipContent"),B=r.forwardRef((e,a)=>{let{__scopeTooltip:s,children:i,"aria-label":n,onEscapeKeyDown:c,onPointerDownOutside:u,...d}=e,p=j(_,s),f=v(s),{onClose:h}=p;return r.useEffect(()=>(document.addEventListener(y,h),()=>document.removeEventListener(y,h)),[h]),r.useEffect(()=>{if(p.trigger){let e=e=>{let t=e.target;t?.contains(p.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[p.trigger,h]),(0,t.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,t.jsxs)(l.Content,{"data-state":p.stateAttribute,...f,...d,ref:a,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(M,{children:i}),(0,t.jsx)(D,{scope:s,isInside:!0,children:(0,t.jsx)(m.Root,{id:p.contentId,role:"tooltip",children:n||i})})]})})});O.displayName=_;var U="TooltipArrow",H=r.forwardRef((e,r)=>{let{__scopeTooltip:a,...s}=e,i=v(a);return F(U,a).isInside?null:(0,t.jsx)(l.Arrow,{...i,...s,ref:r})});H.displayName=U;var G=e.i(975157);function z({delayDuration:e=0,...r}){return(0,t.jsx)(C,{"data-slot":"tooltip-provider",delayDuration:e,...r})}function q({...e}){return(0,t.jsx)(z,{children:(0,t.jsx)(E,{"data-slot":"tooltip",...e})})}function K({...e}){return(0,t.jsx)(R,{"data-slot":"tooltip-trigger",...e})}function Y({className:e,sideOffset:r=0,children:a,...s}){return(0,t.jsx)(A,{children:(0,t.jsxs)(O,{"data-slot":"tooltip-content",sideOffset:r,className:(0,G.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[a,(0,t.jsx)(H,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}e.s(["Tooltip",()=>q,"TooltipContent",()=>Y,"TooltipProvider",()=>z,"TooltipTrigger",()=>K],746798)},617383,227210,828503,e=>{"use strict";var t=e.i(658457),r=e.i(776639);let a=(0,e.i(360229).default)("MessageSquarePlus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);e.s(["default",()=>a],227210),e.s(["MessageSquarePlus",()=>a],828503);var s=e.i(46957),i=e.i(548631);function o({open:e,onOpenChange:o,source:n,defaultReason:l,meta:c}){let u=(0,s.useTranslations)("feedback.general");return(0,t.jsx)(r.Dialog,{open:e,onOpenChange:o,children:(0,t.jsxs)(r.DialogContent,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[(0,t.jsxs)(r.DialogHeader,{children:[(0,t.jsxs)(r.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(a,{className:"h-5 w-5 text-primary"}),u("title")]}),(0,t.jsx)(r.DialogDescription,{children:u("description")})]}),(0,t.jsx)(i.FeedbackForm,{source:n,defaultReason:l,meta:c,onSuccess:()=>{setTimeout(()=>o(!1),1e4)}})]})})}e.s(["FeedbackModal",()=>o],617383)},629288,e=>{"use strict";var t=e.i(658457),r=e.i(481554),a=e.i(291967),s=e.i(806148),i=e.i(669122),o=e.i(645579),n=e.i(625976),l=e.i(892857),c=e.i(887996),u=e.i(729085),d=e.i(842728),p=e.i(836539),f="Radio",[m,h]=(0,i.createContextScope)(f),[g,v]=m(f),x=r.forwardRef((e,i)=>{let{__scopeRadio:n,name:l,checked:c=!1,required:u,disabled:d,value:p="on",onCheck:f,form:m,...h}=e,[v,x]=r.useState(null),y=(0,s.useComposedRefs)(i,e=>x(e)),b=r.useRef(!1),w=!v||m||!!v.closest("form");return(0,t.jsxs)(g,{scope:n,checked:c,disabled:d,children:[(0,t.jsx)(o.Primitive.button,{type:"button",role:"radio","aria-checked":c,"data-state":C(c),"data-disabled":d?"":void 0,disabled:d,value:p,...h,ref:y,onClick:(0,a.composeEventHandlers)(e.onClick,e=>{c||f?.(),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&(0,t.jsx)(k,{control:v,bubbles:!b.current,name:l,value:p,checked:c,required:u,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});x.displayName=f;var y="RadioIndicator",b=r.forwardRef((e,r)=>{let{__scopeRadio:a,forceMount:s,...i}=e,n=v(y,a);return(0,t.jsx)(p.Presence,{present:s||n.checked,children:(0,t.jsx)(o.Primitive.span,{"data-state":C(n.checked),"data-disabled":n.disabled?"":void 0,...i,ref:r})})});b.displayName=y;var k=r.forwardRef(({__scopeRadio:e,control:a,checked:i,bubbles:n=!0,...l},c)=>{let p=r.useRef(null),f=(0,s.useComposedRefs)(p,c),m=(0,d.usePrevious)(i),h=(0,u.useSize)(a);return r.useEffect(()=>{let e=p.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==i&&t){let r=new Event("click",{bubbles:n});t.call(e,i),e.dispatchEvent(r)}},[m,i,n]),(0,t.jsx)(o.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:f,style:{...l.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function C(e){return e?"checked":"unchecked"}k.displayName="RadioBubbleInput";var w=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],S="RadioGroup",[j,E]=(0,i.createContextScope)(S,[n.createRovingFocusGroupScope,h]),N=(0,n.createRovingFocusGroupScope)(),R=h(),[P,T]=j(S),I=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,name:s,defaultValue:i,value:u,required:d=!1,disabled:p=!1,orientation:f,dir:m,loop:h=!0,onValueChange:g,...v}=e,x=N(a),y=(0,c.useDirection)(m),[b,k]=(0,l.useControllableState)({prop:u,defaultProp:i??null,onChange:g,caller:S});return(0,t.jsx)(P,{scope:a,name:s,required:d,disabled:p,value:b,onValueChange:k,children:(0,t.jsx)(n.Root,{asChild:!0,...x,orientation:f,dir:y,loop:h,children:(0,t.jsx)(o.Primitive.div,{role:"radiogroup","aria-required":d,"aria-orientation":f,"data-disabled":p?"":void 0,dir:y,...v,ref:r})})})});I.displayName=S;var A="RadioGroupItem",_=r.forwardRef((e,i)=>{let{__scopeRadioGroup:o,disabled:l,...c}=e,u=T(A,o),d=u.disabled||l,p=N(o),f=R(o),m=r.useRef(null),h=(0,s.useComposedRefs)(i,m),g=u.value===c.value,v=r.useRef(!1);return r.useEffect(()=>{let e=e=>
1{w.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,t.jsx)(n.Item,{asChild:!0,...p,focusable:!d,active:g,children:(0,t.jsx)(x,{disabled:d,required:u.required,checked:g,...f,...c,name:u.name,ref:h,onCheck:()=>u.onValueChange(c.value),onKeyDown:(0,a.composeEventHandlers)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(c.onFocus,()=>{v.current&&m.current?.click()})})})});_.displayName=A;var O=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,...s}=e,i=R(a);return(0,t.jsx)(b,{...i,...s,ref:r})});O.displayName="RadioGroupIndicator";var L=e.i(233419),D=e.i(975157);function F({className:e,...r}){return(0,t.jsx)(I,{"data-slot":"radio-group",className:(0,D.cn)("grid gap-3",e),...r})}function M({className:e,...r}){return(0,t.jsx)(_,{"data-slot":"radio-group-item",className:(0,D.cn)("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:(0,t.jsx)(O,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:(0,t.jsx)(L.CircleIcon,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}e.s(["RadioGroup",()=>F,"RadioGroupItem",()=>M],629288)},454609,e=>{"use strict";let t=(0,e.i(360229).default)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["default",()=>t])},753032,e=>{"use strict";var t=e.i(454609);e.s(["Send",()=>t.default])},548631,675089,e=>{"use strict";var t=e.i(658457),r=e.i(637497);let a=(0,r.createServerReference)("40bf83ed9c4efb4895ac32b14d1700462f768f7ce6",r.callServer,void 0,r.findSourceMapURL,"submitFeedback");var s=e.i(519455),i=e.i(793479),o=e.i(110204),n=e.i(629288),l=e.i(624687);let c={BUG:"bug",GENERATION_QUALITY:"generation_quality",FEATURE_REQUEST:"feature_request",USAGE_QUESTION:"usage_question",OTHER:"other"};e.s(["FEEDBACK_REASONS",0,c],675089);var u=e.i(133713),d=e.i(981084),p=e.i(975157),f=e.i(696191),m=e.i(636892),h=e.i(230245),g=e.i(753032),v=e.i(585796),x=e.i(46957),y=e.i(481554),b=e.i(637667);function k({source:e="unknown",defaultReason:r,meta:k,onSuccess:C,className:w}){let S=(0,x.useTranslations)("feedback.general"),j=(0,u.useCurrentUser)(),[E,N]=(0,y.useState)(r??c.OTHER),[R,P]=(0,y.useState)(""),[T,I]=(0,y.useState)(""),[A,_]=(0,y.useState)(!1),[O,L]=(0,y.useState)(!1),[D,F]=(0,y.useState)(null),[M,B]=(0,y.useState)(!1),[U,H]=(0,y.useState)(!1),G=(0,y.useRef)(null),z=(0,y.useRef)(!1);(0,y.useEffect)(()=>{if(!j?.email){z.current=!1;return}z.current||T||(I(j.email),z.current=!0)},[j?.email,T]);let q=[{value:c.BUG,emoji:"🐛",label:S("reasons.bug")},{value:c.FEATURE_REQUEST,emoji:"💡",label:S("reasons.feature")},{value:c.USAGE_QUESTION,emoji:"🤔",label:S("reasons.question")},{value:c.OTHER,emoji:"💬",label:S("reasons.other")}],K=async e=>{if(e){if(!e.type.startsWith("image/"))return void b.toast.error(S("errors.invalidImageType"));if(e.size>0xa00000)return void b.toast.error(S("errors.imageTooLarge"));H(!0);try{let t=await (0,d.prepareImageForUpload)(e,{maxWidth:1280,maxHeight:1280,quality:.7});D?.preview&&(0,d.revokeImagePreview)(D.preview);let r=(0,d.createImagePreview)(t);F({file:t,preview:r})}catch(e){console.error("[Feedback] failed to process image",e),b.toast.error(S("errors.imageConversionFailed"))}finally{H(!1)}}},Y=async e=>{let t=e.target.files?.[0];await K(t)},W=async t=>{if(t.preventDefault(),!E)return void b.toast.error(S("errors.reasonRequired"));if(!T.trim())return void b.toast.error(S("errors.emailRequired"));_(!0);try{let t;if(D)try{t=[await (0,d.fileToBase64)(D.file)]}catch(e){console.error("Failed to convert image to base64:",e),b.toast.error(S("errors.imageConversionFailed")),_(!1);return}let r=await a({reason:E,details:R,email:T,source:e,images:t,meta:{...k,path:window.location.pathname,userAgent:window.navigator.userAgent}});if(r.success)L(!0),D?.preview&&(0,d.revokeImagePreview)(D.preview),F(null),C?.();else throw Error(r.error)}catch(e){console.error(e),b.toast.error(S("errors.submitFailed"))}finally{_(!1)}};return O?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 text-center animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full flex items-center justify-center mb-4",children:(0,t.jsx)(f.CheckCircle2,{className:"w-8 h-8 text-green-600 dark:text-green-400"})}),(0,t.jsx)("h3",{className:"text-xl font-semibold mb-2",children:S("success.title")}),(0,t.jsx)("p",{className:"text-muted-foreground max-w-xs mx-auto",children:S("success.message")}),(0,t.jsx)(s.Button,{variant:"outline",className:"mt-6",onClick:()=>{L(!1),P(""),N(r??c.OTHER),I(""),D?.preview&&(0,d.revokeImagePreview)(D.preview),F(null)},children:S("success.action")})]}):(0,t.jsxs)("form",{onSubmit:W,className:(0,p.cn)("flex flex-col gap-6",w),children:[(0,t.jsxs)("div",{className:"space-y-6 pb-2",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(o.Label,{children:S("reasonLabel")}),(0,t.jsx)(n.RadioGroup,{value:E,onValueChange:e=>N(e),className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:q.map(e=>(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(n.RadioGroupItem,{value:e.value,id:e.value,className:"peer sr-only"}),(0,t.jsxs)(o.Label,{htmlFor:e.value,className:(0,p.cn)("flex flex-1 items-center gap-2 rounded-md border px-3 py-2 text-sm cursor-pointer transition-colors",E===e.value?"border-primary bg-primary/10 text-primary":"border-border bg-transparent hover:bg-muted"),children:[(0,t.jsx)("span",{className:"text-lg",children:e.emoji}),(0,t.jsx)("span",{className:"font-medium",children:e.label})]})]},e.value))})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)(o.Label,{htmlFor:"details",children:[S("detailsLabel")," ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)(l.Textarea,{id:"details",required:!0,rows:2,placeholder:S("detailsPlaceholder"),value:R,onChange:e=>P(e.target.value),className:"min-h-[56px] max-h-[140px] resize-y overflow-y-auto"})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)(o.Label,{htmlFor:"email",children:[S("emailLabel")," ",(0,t.jsx)("span",{className:"text-red-500 text-xs",children:"*"})]}),(0,t.jsx)(i.Input,{id:"email",type:"email",dir:"ltr",placeholder:"[email protected]",value:T,onChange:e=>I(e.target.value),required:!0}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:S("emailHintRequired")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(o.Label,{htmlFor:"image",children:[S("imageLabel")," ",(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",S("optional"),")"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)(s.Button,{type:"button",variant:"outline",size:"sm",onClick:()=>G.current?.click(),disabled:U,children:[(0,t.jsx)(v.Upload,{className:"mr-2 h-4 w-4"}),D?S("imageReplace"):S("imageUploadHintSimple")]}),D&&(0,t.jsxs)("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[(0,t.jsx)(m.ImageIcon,{className:"h-4 w-4"}),S("imageReady"),(0,t.jsx)(s.Button,{variant:"link",size:"sm",onClick:()=>{D?.preview&&(0,d.revokeImagePreview)(D.preview),F(null),G.current&&(G.current.value="")},children:S("imageRemove")})]})]}),(0,t.jsx)("input",{id:"image",ref:G,type:"file",accept:"image/*",onChange:Y,className:"hidden"})]})]}),(0,t.jsx)("div",{className:"sticky bottom-0 left-0 right-0 border-t bg-background/95 px-0 pt-4 pb-2 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:(0,t.jsx)(s.Button,{type:"submit",className:"w-full",disabled:A||U,children:A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),S("submitting")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Send,{className:"mr-2 h-4 w-4"}),S("submit")]})})})]})}e.s(["FeedbackForm",()=>k],548631)},206031,e=>{"use strict";let t=(0,e.i(360229).default)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);e.s(["default",()=>t])},917595,e=>{"use strict";var t=e.i(206031);e.s(["Sparkles",()=>t.default])},273381,e=>{"use strict";e.i(615296);var t=e.i(658457),r=e.i(637497);let a=(0,r.createServerReference)("7f3def01b5bcf82d6189db184e6dba22644236b110",r.callServer,void 0,r.findSourceMapURL,"createCheckoutAction"),s=(0,r.createServerReference)("7f36bb58c5c31e8599397e5690380881f95470d01a",r.callServer,void 0,r.findSourceMapURL,"createPayPalCheckoutAction");var i=e.i(593457),o=e.i(519455),n=e.i(945228),l=e.i(433048),c=e.i(669552),u=e.i(763943),d=e.i(569381),p=e.i(46957),f=e.i(481554),m=e.i(637667);function h({userId:e,planId:r,priceId:h,planName:g,metadata:v,variant:x="default",size:y="default",className:b,children:k,priceAmount:C,currency:w}){let S=(0,p.useTranslations)("PricingPage.CheckoutButton"),[j,E]=(0,f.useState)(!1),[N,R]=(0,f.useState)(!1),P=()=>{let e=v?{...v}:{};
1if(n.websiteConfig.features.enablePromotekitAffiliate){let t=window.promotekit_referral;t&&(e.promotekit_referral=t)}if(n.websiteConfig.features.enableAffonsoAffiliate){let t,r="u">typeof document&&(t=document.cookie.match(/(?:^|; )affonso_referral=([^;]*)/))?decodeURIComponent(t[1]):null;r&&(e.affonso_referral=r)}return e},T=async()=>{try{E(!0);let t=P();"u">typeof sessionStorage&&sessionStorage.setItem("nbp_last_checkout",JSON.stringify({planId:r,priceId:h,kind:"plan",provider:"stripe"}));let s=await a({userId:e,planId:r,priceId:h,metadata:Object.keys(t).length>0?t:void 0});s?.data?.success&&s.data.data?.url?(s.data.data.id&&"u">typeof localStorage&&localStorage.setItem(l.STORAGE_KEYS.PENDING_CHECKOUT,JSON.stringify({sessionId:s.data.data.id,planId:r,planName:g||r,timestamp:Date.now(),provider:"stripe"})),c.CheckoutAnalytics.redirect({planId:r,priceId:h}),window.location.href=s.data.data.url):(console.error("Create checkout session error, result:",s),c.CheckoutAnalytics.error({planId:r,priceId:h}),m.toast.error(S("checkoutFailed")))}catch(e){console.error("Create checkout session error:",e),c.CheckoutAnalytics.error({planId:r,priceId:h}),m.toast.error(S("checkoutFailed"))}finally{E(!1)}},I=async()=>{try{E(!0);let t=P();"u">typeof sessionStorage&&sessionStorage.setItem("nbp_last_checkout",JSON.stringify({planId:r,priceId:h,kind:"plan",provider:"paypal"}));let a=await s({userId:e,planId:r,priceId:h,metadata:Object.keys(t).length>0?t:void 0});a?.data?.success&&a.data.data?.url?(a.data.data.id&&"u">typeof localStorage&&localStorage.setItem(l.STORAGE_KEYS.PENDING_CHECKOUT,JSON.stringify({sessionId:a.data.data.id,planId:r,planName:g||r,timestamp:Date.now(),provider:"paypal"})),c.CheckoutAnalytics.redirect({planId:r,priceId:h}),window.location.href=a.data.data.url):(console.error("PayPal checkout error, result:",a),c.CheckoutAnalytics.error({planId:r,priceId:h}),m.toast.error(S("checkoutFailed")))}catch(e){console.error("PayPal checkout error:",e),c.CheckoutAnalytics.error({planId:r,priceId:h}),m.toast.error(S("checkoutFailed"))}finally{E(!1)}},A="number"==typeof C&&w?(0,u.formatPrice)(C,w):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:x,size:y,className:b,onClick:()=>{R(!0)},disabled:j,children:j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Loader2Icon,{className:"mr-2 size-4 animate-spin"}),S("loading")]}):k}),(0,t.jsx)(i.PaymentMethodModal,{isOpen:N,onClose:()=>R(!1),planName:g||r,price:A,hasPayPal:!0,onStripeSelect:T,onPayPalSelect:I})]})}e.s(["CheckoutButton",()=>h],273381)},352318,e=>{"use strict";var t=e.i(46957),r=e.i(945228);function a(){let e=(0,t.useTranslations)("PricePlans"),a=r.websiteConfig.price,s={};return a.plans.starter&&(s.starter={...a.plans.starter,name:e("starter.name"),description:e("starter.description"),features:[e("starter.features.feature-1"),e("starter.features.feature-2"),e("starter.features.feature-3"),e("starter.features.feature-4"),e("starter.features.feature-5"),e("starter.features.feature-6"),e("starter.features.feature-7"),e("starter.features.feature-8")],limits:[e("starter.limits.limit-1"),e("starter.limits.limit-2")]}),a.plans.pro&&(s.pro={...a.plans.pro,name:e("pro.name"),description:e("pro.description"),features:[e("pro.features.feature-1"),e("pro.features.feature-2"),e("pro.features.feature-3"),e("pro.features.feature-4"),e("pro.features.feature-5"),e("pro.features.feature-6"),e("pro.features.feature-7"),e("pro.features.feature-8"),e("pro.features.feature-9"),e("pro.features.feature-10"),e("pro.features.feature-11"),e("pro.features.feature-12"),e("pro.features.feature-13")],limits:[]}),a.plans.scale&&(s.scale={...a.plans.scale,name:e("scale.name"),description:e("scale.description"),features:[e("scale.features.feature-1"),e("scale.features.feature-2"),e("scale.features.feature-3"),e("scale.features.feature-4"),e("scale.features.feature-5"),e("scale.features.feature-6"),e("scale.features.feature-7"),e("scale.features.feature-8"),e("scale.features.feature-9"),e("scale.features.feature-10"),e("scale.features.feature-11"),e("scale.features.feature-12"),e("scale.features.feature-13")],limits:[]}),s}e.s(["usePricePlans",()=>a])},537225,e=>{"use strict";var t=e.i(481554);function r(){let[e,r]=t.useState(!1);return t.useEffect(()=>{r(!0)},[]),e}e.s(["useMounted",()=>r])},763943,e=>{"use strict";function t(e,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:0}).format(e/100)}function r(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}/${r}/${a}`}e.s(["formatDate",()=>r,"formatPrice",()=>t])},564681,e=>{"use strict";let t=(0,e.i(360229).default)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["default",()=>t])},433048,e=>{"use strict";e.s(["COUPON_CONFIG",0,{DEFAULT_CODE:"HW04ER6J",TRIGGER_REASONS:[]}
1,"DELAY_TIMES",0,{JUST_RETURNED:500,INITIAL_LOAD:1500,FOCUS_GAINED:800,RECENT_RETURN_THRESHOLD:5e3},"SESSION_CONFIG",0,{EXPIRY_TIME:36e5,AUTO_CLOSE_DELAY:3e3},"STORAGE_KEYS",0,{PENDING_CHECKOUT:"pendingCheckout",HANDLED_FEEDBACK:"handledPaymentFeedback"}])},669552,e=>{"use strict";var t=e.i(121773);e.s(["CheckoutAnalytics",0,{start(e){(0,t.trackEvent)(t.UmamiEvent.PricingCheckoutClick,e)},creditStart(e){(0,t.trackEvent)(t.UmamiEvent.CreditCheckoutStart,e)},redirect(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutRedirect,e)},error(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutError,e)},status(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutStatus,e)}}])},402713,e=>{"use strict";let t=(0,e.i(360229).default)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["default",()=>t])},593457,e=>{"use strict";var t=e.i(658457),r=e.i(519455),a=e.i(776639),s=e.i(230245),i=e.i(402713),i=i,o=e.i(46957),n=e.i(481554);function l({isOpen:e,onClose:l,planName:c,price:u,hasPayPal:d=!0,onStripeSelect:p,onPayPalSelect:f}){let m=(0,o.useTranslations)("PricingPage.PaymentMethodModal"),[h,g]=(0,n.useState)(!1),[v,x]=(0,n.useState)(!1),y=async()=>{g(!0);try{await p()}finally{g(!1)}},b=async()=>{x(!0);try{await f()}finally{x(!1)}},k=h||v;return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:l,children:(0,t.jsxs)(a.DialogContent,{className:"sm:max-w-md border-border/80 bg-card shadow-xl",children:[(0,t.jsxs)(a.DialogHeader,{className:"space-y-1 pb-3",children:[(0,t.jsx)(a.DialogTitle,{className:"text-center text-xl font-bold text-foreground",children:m("title")}),(0,t.jsx)(a.DialogDescription,{className:"text-center text-muted-foreground",children:m.rich("description",{planName:c,strong:e=>(0,t.jsx)("strong",{className:"text-foreground",children:e})})}),u?(0,t.jsx)("div",{className:"rounded-lg bg-muted/80 px-4 py-3 text-center",children:(0,t.jsx)("span",{className:"text-2xl font-bold tabular-nums text-foreground",children:u})}):null]}),(0,t.jsxs)("div",{className:"grid gap-3 py-2",children:[(0,t.jsxs)(r.Button,{onClick:y,disabled:k,className:"h-12 w-full gap-2 bg-[#635bff] px-4 text-base font-semibold text-white hover:bg-[#5851e6]",children:[h?(0,t.jsx)(s.Loader2,{className:"size-5 shrink-0 animate-spin"}):null,(0,t.jsx)("span",{children:m("payWithStripe")})]}),d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative py-0.5",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("span",{className:"w-full border-t border-border"})}),(0,t.jsx)("span",{className:"relative flex justify-center bg-card px-2 text-xs uppercase tracking-wider text-muted-foreground",children:m("or")})]}),(0,t.jsxs)(r.Button,{onClick:b,disabled:k,className:"h-12 w-full gap-2 bg-[#0070BA] px-4 text-base font-semibold text-white hover:bg-[#005ea6]",children:[v?(0,t.jsx)(s.Loader2,{className:"size-5 shrink-0 animate-spin"}):null,(0,t.jsx)("span",{children:m("payWithPayPal")})]})]}):null]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 border-t border-border/60 pt-3 text-xs text-muted-foreground",children:[(0,t.jsx)(i.default,{className:"h-4 w-4 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:m("securePayment")})]})]})})}e.s(["PaymentMethodModal",()=>l],593457)},224413,38562,e=>{"use strict";var t=e.i(637497);let r=(0,t.createServerReference)("7f163961b07e856f4abf828c5bba14aad6cd0af1bd",t.callServer,void 0,t.findSourceMapURL,"createCreditCheckoutSession");e.s(["createCreditCheckoutSession",()=>r],224413);let a=(0,t.createServerReference)("7f8082277a02821d04bf9d0e8ff59b1145269fde52",t.callServer,void 0,t.findSourceMapURL,"createPayPalCreditCheckoutAction");e.s(["createPayPalCreditCheckoutAction",()=>a],38562)},948699,e=>{"use strict";var t=e.i(658457),r=e.i(224413),a=e.i(38562),s=e.i(593457),i=e.i(519455),o=e.i(945228),n=e.i(433048),l=e.i(669552),c=e.i(763943),u=e.i(569381),d=e.i(46957),p=e.i(481554),f=e.i(637667);function m({userId:e,packageId:m,priceId:h,metadata:g,variant:v="default",size:x="default",className:y,children:b,disabled:k=!1,credits:C,priceAmount:w,currency:S}){let j=(0,d.useTranslations)("Dashboard.settings.credits.packages"),[E,N]=(0,p.useState)(!1),[R,P]=(0,p.useState)(!1),T=()=>{let e=g?{...g}:{};
1if(o.websiteConfig.features.enablePromotekitAffiliate){let t=window.promotekit_referral;t&&(e.promotekit_referral=t)}if(o.websiteConfig.features.enableAffonsoAffiliate){let t,r="u">typeof document&&(t=document.cookie.match(/(?:^|; )affonso_referral=([^;]*)/))?decodeURIComponent(t[1]):null;r&&(e.affonso_referral=r)}return e},I=async()=>{try{N(!0);let t=T();l.CheckoutAnalytics.creditStart({packageId:m,priceId:h,credits:C}),"u">typeof sessionStorage&&sessionStorage.setItem("nbp_last_checkout",JSON.stringify({packageId:m,priceId:h,credits:C,kind:"credits",provider:"stripe"}));let a=await (0,r.createCreditCheckoutSession)({userId:e,packageId:m,priceId:h,metadata:Object.keys(t).length>0?t:void 0});a?.data?.success&&a.data.data?.url?(a.data.data.id&&"u">typeof localStorage&&localStorage.setItem(n.STORAGE_KEYS.PENDING_CHECKOUT,JSON.stringify({sessionId:a.data.data.id,planId:m,planName:`Credits: ${m}`,timestamp:Date.now(),provider:"stripe"})),window.location.href=a.data.data.url):(console.error("Create credit checkout session error, result:",a),f.toast.error(j("checkoutFailed")))}catch(e){console.error("Create credit checkout session error:",e),f.toast.error(j("checkoutFailed"))}finally{N(!1)}},A=async()=>{try{N(!0);let t=T();l.CheckoutAnalytics.creditStart({packageId:m,priceId:h,credits:C}),"u">typeof sessionStorage&&sessionStorage.setItem("nbp_last_checkout",JSON.stringify({packageId:m,priceId:h,credits:C,kind:"credits",provider:"paypal"}));let r=await (0,a.createPayPalCreditCheckoutAction)({userId:e,packageId:m,priceId:h,metadata:Object.keys(t).length>0?t:void 0});r?.data?.success&&r.data.data?.url?(r.data.data.id&&"u">typeof localStorage&&localStorage.setItem(n.STORAGE_KEYS.PENDING_CHECKOUT,JSON.stringify({sessionId:r.data.data.id,planId:m,planName:`Credits: ${m}`,timestamp:Date.now(),provider:"paypal"})),window.location.href=r.data.data.url):(console.error("PayPal credit checkout error, result:",r),f.toast.error(j("checkoutFailed")))}catch(e){console.error("PayPal credit checkout error:",e),f.toast.error(j("checkoutFailed"))}finally{N(!1)}},_="number"==typeof w&&S?(0,c.formatPrice)(w,S):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{variant:v,size:x,className:y,onClick:()=>{P(!0)},disabled:E||k,children:E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Loader2Icon,{className:"mr-2 size-4 animate-spin"}),j("loading")]}):b}),(0,t.jsx)(s.PaymentMethodModal,{isOpen:R,onClose:()=>P(!1),planName:"number"==typeof C?`${C.toLocaleString()} Credits`:m,price:_,hasPayPal:!0,onStripeSelect:I,onPayPalSelect:A})]})}e.s(["CreditCheckoutButton",()=>m])},587249,e=>{"use strict";var t=e.i(46957),r=e.i(945228);function a(){let e=(0,t.useTranslations)("CreditPackages"),a=r.websiteConfig.credits,s={};return a.packages.topup_s&&(s.topup_s={...a.packages.topup_s,name:e("topup_s.name"),description:e("topup_s.description")}),a.packages.topup_m&&(s.topup_m={...a.packages.topup_m,name:e("topup_m.name"),description:e("topup_m.description")}),a.packages.topup_l&&(s.topup_l={...a.packages.topup_l,name:e("topup_l.name"),description:e("topup_l.description")}),s}e.s(["useCreditPackages",()=>a])}]);

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.