PageSourceSearch

https://snapapi.ai/_next/static/chunks/b6c5d7468cf996d8.js

js snapapi.ai collected 2026-10-05 14:43:42 UTC 17,675 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,515288,e=>{"use strict";var r=e.i(843476),t=e.i(975157);function i({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,t.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...i})}function a({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,t.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...i})}function s({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,t.cn)("leading-none font-semibold",e),...i})}function n({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,t.cn)("text-muted-foreground text-sm",e),...i})}function d({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-action",className:(0,t.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...i})}function o({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,t.cn)("px-6",e),...i})}e.s(["Card",()=>i,"CardAction",()=>d,"CardContent",()=>o,"CardDescription",()=>n,"CardHeader",()=>a,"CardTitle",()=>s])},487486,e=>{"use strict";var r=e.i(843476),t=e.i(991918),i=e.i(225913),a=e.i(975157);let s=(0,i.cva)("inline-flex items-center justify-center rounded-full border font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none 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 transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",success:"border-green-200 bg-green-50 text-green-700 dark:border-green-800 dark:bg-green-950 dark:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-400",error:"border-red-200 bg-red-50 text-red-700 dark:border-red-800 dark:bg-red-950 dark:text-red-400"},size:{default:"px-2 py-0.5 text-xs",sm:"px-1.5 py-0 text-[10px]"}},defaultVariants:{variant:"default",size:"default"}});function n({className:e,variant:i,size:n,asChild:d=!1,...o}){let c=d?t.Slot:"span";return(0,r.jsx)(c,{"data-slot":"badge",className:(0,a.cn)(s({variant:i,size:n}),e),...o})}e.s(["Badge",()=>n])},733910,e=>{"use strict";var r=e.i(843476),t=e.i(975157);e.s(["SectionHeader",0,({badge:e,title:i,description:a,className:s,headingClassName:n,descriptionClassName:d,as:o="h2"})=>(0,r.jsxs)("div",{className:(0,t.cn)("space-y-4 text-center mb-12 sm:mb-16",s),children:[e&&(0,r.jsx)("p",{className:"text-primary text-sm font-medium uppercase tracking-wider",children:e}),(0,r.jsxs)(o,{className:(0,t.cn)("text-2xl font-bold sm:text-3xl lg:text-4xl leading-tight tracking-tight",n),children:[i.prefix," ",i.highlight&&(0,r.jsx)("span",{className:"brand-underline",children:i.highlight})," ",i.suffix]}),a&&(0,r.jsx)("p",{className:(0,t.cn)("mx-auto max-w-2xl text-lg md:text-xl text-muted-foreground",d),children:a})]})])},530183,165704,e=>{"use strict";var r=e.i(843476),t=e.i(271645),i=e.i(515288),a=e.i(519455),s=e.i(487486);let n=[{id:"100",creemProductId:"prod_1R7l8C8PIKB6iEwcyKgRo0",credits:100,price:100,currency:"USD"},{id:"1k",creemProductId:"prod_17J37qllLUfCX03zD7m5d7",credits:1e3,price:700,currency:"USD"},{id:"5k",creemProductId:"prod_19PWlkhzlJ9WCfB8MoKwT4",credits:5e3,price:2500,currency:"USD"},{id:"10k",creemProductId:"prod_9xMXsMdwu3GrY86kPBQD3",credits:1e4,price:4e3,currency:"USD",popular:!0},{id:"50k",creemProductId:"prod_6PFClPOOfgMTd5VeeGKy4C",credits:5e4,price:8e3,currency:"USD"},{id:"100k",creemProductId:"prod_7YYjXVrkPH13OeBxTl9f8E",credits:1e5,price:13e3,currency:"USD"},{id:"200k",creemProductId:"prod_3bGaw48NOjS2l6BhEpYpd6",credits:2e5,price:17e3,currency:"USD"},{id:"500k",creemProductId:"prod_39OJJXNiT2eBy2K6SHc6Bv",credits:5e5,price:25e3,currency:"USD"}];function d(e){return`$${(e/100).toFixed(2*(e%100!=0))}`}e.s(["CREDIT_PACKAGES",0,n,"formatPrice",()=>d],165704);let o=(0,e.i(475254).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}
1],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var c=e.i(975157);function l({className:e,onBuy:l,purchasing:u,labels:p}){let m=function(){let[e,r]=(0,t.useState)(n);return(0,t.useEffect)(()=>{let e=!0;return fetch("/api/creem/products").then(e=>e.ok?e.json():null).then(t=>{e&&t?.packages?.length&&r(t.packages)}).catch(()=>{}),()=>{e=!1}},[]),e}(),x=m.find(e=>e.popular)??m[0],[f,g]=(0,t.useState)(x.id),h=m[0].price/m[0].credits,b=!!(p.title||p.description);return(0,r.jsxs)(i.Card,{className:(0,c.cn)(e),children:[b&&(0,r.jsxs)(i.CardHeader,{children:[p.title&&(0,r.jsx)(i.CardTitle,{children:p.title}),p.description&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:p.description})]}),(0,r.jsxs)(i.CardContent,{className:"space-y-4",children:[(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3",role:"radiogroup","aria-label":p.title,children:m.map(e=>{var t;let i,a=f===e.id,n=Math.round((1-e.price/e.credits/h)*100);return(0,r.jsxs)("button",{type:"button",role:"radio","aria-checked":a,onClick:()=>g(e.id),className:(0,c.cn)("relative flex w-full items-center justify-between rounded-lg border p-3 text-left transition-colors",a?"border-primary bg-primary/5 ring-1 ring-primary":"border-border hover:bg-muted/50"),children:[e.popular&&(0,r.jsx)(s.Badge,{variant:"default",size:"sm",className:"text-[10px] absolute -top-2 right-2",children:p.popular}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:(0,c.cn)("flex size-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors",a?"border-primary":"border-muted-foreground/30"),children:a&&(0,r.jsx)("div",{className:"size-2 rounded-full bg-primary"})}),(0,r.jsxs)("span",{className:"font-semibold tabular-nums",children:[(t=e.credits)>=1e6?`${(t/1e6).toFixed(+(t%1e6!=0))}M`:t>=1e3?`${(t/1e3).toFixed(+(t%1e3!=0))}K`:t.toLocaleString()," ",(0,r.jsx)("span",{className:"font-normal text-muted-foreground",children:p.credits})]})]}),(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[n>0&&(0,r.jsxs)(s.Badge,{variant:"secondary",size:"sm",className:(0,c.cn)(a?"bg-emerald-100 text-emerald-900 dark:bg-emerald-950 dark:text-emerald-400":"bg-muted text-muted-foreground"),children:["-",n,"%"]}),(0,r.jsx)("span",{className:"text-lg font-semibold tabular-nums",children:d(e.price)})]}),(0,r.jsxs)("p",{className:"text-xs tabular-nums text-muted-foreground",children:[(i=e.price/100/e.credits)>=.01?`$${i.toFixed(2)}`:`$${i.toFixed(4)}`," / ",p.perCredit]})]})]},e.id)})}),(0,r.jsx)(a.Button,{size:"xl",variant:"gradient-brand",className:"w-full",onClick:()=>l(f),disabled:!!u,children:u?(0,r.jsx)(r.Fragment,{children:p.purchasing}):(0,r.jsx)(r.Fragment,{children:p.buyNow})}),(0,r.jsx)("div",{className:"rounded-xl bg-gradient-to-br from-primary/5 via-primary/5 to-primary/5 p-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"flex size-16 shrink-0 items-center justify-center rounded-lg bg-background",children:(0,r.jsx)(o,{className:"size-10 stroke-1 text-gray-400"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h4",{className:"text-base font-bold",children:p.enterpriseTitle}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground leading-relaxed",children:p.enterpriseDescription})]}),(0,r.jsx)(a.Button,{variant:"outline",size:"sm",asChild:!0,className:"shrink-0",children:(0,r.jsx)("a",{href:"mailto:[email protected]",children:p.contactSales})})]})})]})]})}e.s(["CreditPackages",()=>l],530183)},786748,e=>{"use strict";var r=e.i(843476),t=e.i(271645),i=e.i(30030),a=e.i(75830),s=e.i(820783),n=e.i(981140),d=e.i(369340),o=e.i(248425),c=e.i(687607),l=e.i(610772),u=e.i(586318),p="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[x,f,g]=(0,a.createCollection)(p),[h,b]=(0,i.createContextScope)(p,[g,c.createCollapsibleScope]),v=(0,c.createCollapsibleScope)(),j=t.default.forwardRef((e,t)=>
1{let{type:i,...a}=e;return(0,r.jsx)(x.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,r.jsx)(C,{...a,ref:t}):(0,r.jsx)(S,{...a,ref:t})})});j.displayName=p;var[N,y]=h(p),[w,k]=h(p,{collapsible:!1}),S=t.default.forwardRef((e,i)=>{let{value:a,defaultValue:s,onValueChange:n=()=>{},collapsible:o=!1,...c}=e,[l,u]=(0,d.useControllableState)({prop:a,defaultProp:s??"",onChange:n,caller:p});return(0,r.jsx)(N,{scope:e.__scopeAccordion,value:t.default.useMemo(()=>l?[l]:[],[l]),onItemOpen:u,onItemClose:t.default.useCallback(()=>o&&u(""),[o,u]),children:(0,r.jsx)(w,{scope:e.__scopeAccordion,collapsible:o,children:(0,r.jsx)(I,{...c,ref:i})})})}),C=t.default.forwardRef((e,i)=>{let{value:a,defaultValue:s,onValueChange:n=()=>{},...o}=e,[c,l]=(0,d.useControllableState)({prop:a,defaultProp:s??[],onChange:n,caller:p}),u=t.default.useCallback(e=>l((r=[])=>[...r,e]),[l]),m=t.default.useCallback(e=>l((r=[])=>r.filter(r=>r!==e)),[l]);return(0,r.jsx)(N,{scope:e.__scopeAccordion,value:c,onItemOpen:u,onItemClose:m,children:(0,r.jsx)(w,{scope:e.__scopeAccordion,collapsible:!0,children:(0,r.jsx)(I,{...o,ref:i}
1)})})}),[A,T]=h(p),I=t.default.forwardRef((e,i)=>{let{__scopeAccordion:a,disabled:d,dir:c,orientation:l="vertical",...p}=e,g=t.default.useRef(null),h=(0,s.useComposedRefs)(g,i),b=f(a),v="ltr"===(0,u.useDirection)(c),j=(0,n.composeEventHandlers)(e.onKeyDown,e=>{if(!m.includes(e.key))return;let r=e.target,t=b().filter(e=>!e.ref.current?.disabled),i=t.findIndex(e=>e.ref.current===r),a=t.length;if(-1===i)return;e.preventDefault();let s=i,n=a-1,d=()=>{(s=i+1)>n&&(s=0)},o=()=>{(s=i-1)<0&&(s=n)};switch(e.key){case"Home":s=0;break;case"End":s=n;break;case"ArrowRight":"horizontal"===l&&(v?d():o());break;case"ArrowDown":"vertical"===l&&d();break;case"ArrowLeft":"horizontal"===l&&(v?o():d());break;case"ArrowUp":"vertical"===l&&o()}let c=s%a;t[c].ref.current?.focus()});return(0,r.jsx)(A,{scope:a,disabled:d,direction:c,orientation:l,children:(0,r.jsx)(x.Slot,{scope:a,children:(0,r.jsx)(o.Primitive.div,{...p,"data-orientation":l,ref:h,onKeyDown:d?void 0:j})})})}),P="AccordionItem",[R,_]=h(P),D=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,value:a,...s}=e,n=T(P,i),d=y(P,i),o=v(i),u=(0,l.useId)(),p=a&&d.value.includes(a)||!1,m=n.disabled||e.disabled;return(0,r.jsx)(R,{scope:i,open:p,disabled:m,triggerId:u,children:(0,r.jsx)(c.Root,{"data-orientation":n.orientation,"data-state":U(p),...o,...s,ref:t,disabled:m,open:p,onOpenChange:e=>{e?d.onItemOpen(a):d.onItemClose(a)}})})});D.displayName=P;var O="AccordionHeader",K=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...a}=e,s=T(p,i),n=_(O,i);return(0,r.jsx)(o.Primitive.h3,{"data-orientation":s.orientation,"data-state":U(n.open),"data-disabled":n.disabled?"":void 0,...a,ref:t})});K.displayName=O;var E="AccordionTrigger",z=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...a}=e,s=T(p,i),n=_(E,i),d=k(E,i),o=v(i);return(0,r.jsx)(x.ItemSlot,{scope:i,children:(0,r.jsx)(c.Trigger,{"aria-disabled":n.open&&!d.collapsible||void 0,"data-orientation":s.orientation,id:n.triggerId,...o,...a,ref:t})})});z.displayName=E;var L="AccordionContent",B=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...a}=e,s=T(p,i),n=_(L,i),d=v(i);return(0,r.jsx)(c.Content,{role:"region","aria-labelledby":n.triggerId,"data-orientation":s.orientation,...d,...a,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function U(e){return e?"open":"closed"}B.displayName=L;var $=e.i(409797),Y=e.i(975157);function H({...e}){return(0,r.jsx)(j,{"data-slot":"accordion",...e})}function M({className:e,...t}){return(0,r.jsx)(D,{"data-slot":"accordion-item",className:(0,Y.cn)("border-b last:border-b-0",e),...t})}function q({className:e,children:t,...i}){return(0,r.jsx)(K,{className:"flex",children:(0,r.jsxs)(z,{"data-slot":"accordion-trigger",className:(0,Y.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...i,children:[t,(0,r.jsx)($.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function F({className:e,children:t,...i}){return(0,r.jsx)(B,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...i,children:(0,r.jsx)("div",{className:(0,Y.cn)("pt-0 pb-4",e),children:t})})}var J=e.i(357864),V=e.i(21137),G=e.i(733910);e.s(["default",0,({items:e,badge:t,title:i,description:a}={})=>{let{t:s}=(0,J.useTranslation)("home"),n=s(V.TRANSLATION_KEYS.home.faq.items),d=Array.isArray(n)?n:[],o=t??s(V.TRANSLATION_KEYS.home.faq.badge),c=i??{prefix:s(V.TRANSLATION_KEYS.home.faq.title.prefix),highlight:s(V.TRANSLATION_KEYS.home.faq.title.highlight),suffix:s(V.TRANSLATION_KEYS.home.faq.title.suffix)},l=a??s(V.TRANSLATION_KEYS.home.faq.description);return(0,r.jsx)("section",{id:"faq",className:"bg-muted/50 py-8 sm:py-16 lg:py-24",children:(0,r.jsxs)("div",{className:"mx-auto max-w-4xl 2xl:max-w-5xl px-4 sm:px-6 lg:px-8 2xl:px-10",children:[(0,r.jsx)(G.SectionHeader,{badge:o,title:c,description:l}),(0,r.jsx)(H,{type:"single",collapsible:!0,className:"w-full space-y-4",defaultValue:"item-0",children:(e??d).map((e,t)=>(0,r.jsxs)(M,{value:`item-${t}
1`,className:"border px-4 rounded-lg bg-background",children:[(0,r.jsx)(q,{className:"text-lg font-medium hover:no-underline text-left",children:e.question}),(0,r.jsx)(F,{className:"text-lg text-muted-foreground",children:e.answer})]},t))})]})})}],786748)},985655,e=>{"use strict";var r=e.i(843476),t=e.i(271645),i=e.i(204071),a=e.i(357864),s=e.i(21137),n=e.i(530183),d=e.i(165704);function o(){let{user:e}=(0,i.useAuth)(),{t:o,language:c}=(0,a.useTranslation)("pricing"),l=s.TRANSLATION_KEYS.pricing.packages,[u,p]=(0,t.useState)(null);return(0,r.jsx)(n.CreditPackages,{className:"shadow-none border-none py-0",onBuy:r=>{if(!e){let e=encodeURIComponent(`/${c}/dashboard/billing`);window.location.href=`/${c}/register?next=${e}`;return}let t=d.CREDIT_PACKAGES.find(e=>e.id===r);if(!t)return;p(r),setTimeout(()=>p(null),5e3);let i=new URLSearchParams({productId:t.creemProductId,referenceId:e.id,successUrl:`/${c}/dashboard/billing?success=true`,customer:JSON.stringify({email:e.email,name:e.name}),metadata:JSON.stringify({credits:String(t.credits),package:t.id,referenceId:e.id})});window.location.href=`/api/creem/checkout?${i.toString()}`},purchasing:u,labels:{title:"",description:"",credits:o(l.credits),buyNow:o(l.buyNow),popular:o(l.popular),purchasing:o(l.purchasing),perCredit:o(l.perCredit),enterpriseTitle:o(l.enterpriseTitle),enterpriseDescription:o(l.enterpriseDescription),contactSales:o(l.contactSales)}})}e.s(["PricingPlans",()=>o])},674570,e=>{"use strict";var r=e.i(843476),t=e.i(519455),i=e.i(515288),a=e.i(733910),s=e.i(357864),n=e.i(21137),d=e.i(972520),o=e.i(786748);function c(){let{t:e}=(0,s.useTranslation)("pricing"),t=n.TRANSLATION_KEYS.pricing.hero;return(0,r.jsx)("section",{className:"pt-12 pb-4 sm:pt-16 sm:pb-8 lg:pt-24 lg:pb-12",children:(0,r.jsx)("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 lg:px-8",children:(0,r.jsx)(a.SectionHeader,{as:"h1",badge:e(t.badge),title:{prefix:e(t.title.prefix),highlight:e(t.title.highlight),suffix:e(t.title.suffix)},description:e(t.description),className:"mb-0"})})})}function l(){let{t:e}=(0,s.useTranslation)("pricing"),t=n.TRANSLATION_KEYS.pricing.faq,i=e(t.items),a=Array.isArray(i)?i:[];return(0,r.jsx)(o.default,{items:a,badge:e(t.badge),title:{prefix:e(t.title.prefix),highlight:e(t.title.highlight),suffix:e(t.title.suffix)},description:e(t.description)})}function u(){let{t:e,language:a}=(0,s.useTranslation)("pricing"),o=n.TRANSLATION_KEYS.pricing.modelLink;return(0,r.jsx)("section",{className:"py-12 sm:py-16",children:(0,r.jsx)("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)(i.Card,{className:"p-6 sm:p-8 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-semibold",children:e(o.title)}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e(o.description)})]}),(0,r.jsx)(t.Button,{asChild:!0,className:"shrink-0",children:(0,r.jsxs)("a",{href:`/${a}
1/model`,children:[e(o.cta),(0,r.jsx)(d.ArrowRight,{className:"ml-2 size-4"})]})})]})})})}e.s(["PricingFaq",()=>l,"PricingHero",()=>c,"PricingModelLink",()=>u])}]);

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.