PageSourceSearch

https://socialselling.ai/_next/static/chunks/60913.c11c93348d5116ed.js

js socialselling.ai collected 2026-10-05 14:51:49 UTC 46,322 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60913],{60913:function(e,s,a){a.r(s),a.d(s,{default:function(){return el}});var r=a(57437),t=a(2265),i=a(79820),n=a(12381),l=a(40279),c=a(75060),d=a(23675),o=a(69174),m=a(17168),x=a(15291),u=a(31397),h=a(94589),g=a(82023),p=a(49232),f=a(65621),j=a(53113),v=a(29374),b=a(60332),N=a(75277),y=a(42820),w=a(15863),k=a(42208),C=a(92735),Z=a(68919),S=a(37760),P=a(42351),_=a(50598),V=a(78867),z=a(11239),I=a(71837),T=a(14438),A=a(98617),D=a(93448);function E(e,s){return void 0!==s&&e<s?"critical":e<50?"warning":e<100?"caution":"good"}let Q={Normal:{bg:"bg-emerald-100 dark:bg-emerald-900/30",text:"text-emerald-700 dark:text-emerald-400",border:"border-emerald-200 dark:border-emerald-800"},Premium:{bg:"bg-blue-100 dark:bg-blue-900/30",text:"text-blue-700 dark:text-blue-400",border:"border-blue-200 dark:border-blue-800"},Excellent:{bg:"bg-purple-100 dark:bg-purple-900/30",text:"text-purple-700 dark:text-purple-400",border:"border-purple-200 dark:border-purple-800"}},F={critical:{bg:"bg-red-50 dark:bg-red-900/20",text:"text-red-700 dark:text-red-400",border:"border-red-200 dark:border-red-800",icon:"text-red-500"},warning:{bg:"bg-orange-50 dark:bg-orange-900/20",text:"text-orange-700 dark:text-orange-400",border:"border-orange-200 dark:border-orange-800",icon:"text-orange-500"},caution:{bg:"bg-yellow-50 dark:bg-yellow-900/20",text:"text-yellow-700 dark:text-yellow-400",border:"border-yellow-200 dark:border-yellow-800",icon:"text-yellow-500"},good:{bg:"bg-green-50 dark:bg-green-900/20",text:"text-green-700 dark:text-green-400",border:"border-green-200 dark:border-green-800",icon:"text-green-500"}},R=[{id:"flux-schnell",name:"FLUX Schnell",tier:"Normal",creditsPerImage:2,description:"Fast generation, good for drafts"},{id:"sdxl-turbo",name:"SDXL Turbo",tier:"Normal",creditsPerImage:2,description:"Quick iterations, decent quality"},{id:"flux-dev",name:"FLUX Dev",tier:"Premium",creditsPerImage:10,description:"High quality, detailed images"},{id:"flux-pro",name:"FLUX Pro 1.1",tier:"Premium",creditsPerImage:15,description:"Professional quality output"},{id:"ideogram",name:"Ideogram V2 Turbo",tier:"Excellent",creditsPerImage:15,description:"Best for text & logos"},{id:"flux-kontext",name:"FLUX Kontext Pro",tier:"Excellent",creditsPerImage:15,description:"Context-aware generation"}],G=[{id:"minimax-video",name:"MiniMax Video",tier:"Normal",creditsPerSecond:4,maxDuration:6,maxCredits:24,description:"Fast video generation",supportedDurations:[3,5,6]},{id:"wan-t2v",name:"WAN T2V",tier:"Normal",creditsPerSecond:10,maxDuration:5,maxCredits:50,description:"Balanced quality and speed",supportedDurations:[3,5]},{id:"wan-pro",name:"WAN Pro T2V",tier:"Premium",creditsPerSecond:20,maxDuration:5,maxCredits:100,description:"Professional video quality",supportedDurations:[3,5]},{id:"veo3-fast",name:"Veo 3 Fast",tier:"Premium",creditsPerSecond:31,maxDuration:8,maxCredits:248,description:"Google Veo fast mode",supportedDurations:[3,5,8]},{id:"kling-2.1-master",name:"Kling 2.1 Master",tier:"Premium",creditsPerSecond:50,maxDuration:10,maxCredits:500,description:"Cinematic quality",supportedDurations:[5,10]},{id:"kling-3.0-pro",name:"Kling 3.0 Pro",tier:"Excellent",creditsPerSecond:55,maxDuration:10,maxCredits:550,description:"Latest Kling model",supportedDurations:[5,10]},{id:"veo3",name:"Veo 3",tier:"Excellent",creditsPerSecond:75,maxDuration:8,maxCredits:600,description:"Google Veo premium",supportedDurations:[3,5,8]},{id:"veo3.1",name:"Veo 3.1",tier:"Excellent",creditsPerSecond:75,maxDuration:8,maxCredits:600,description:"Latest Google Veo",supportedDurations:[3,5,8]}],B=[{id:"wan-pro-i2v",name:"WAN Pro I2V",tier:"Premium",creditsPerSecond:20,maxDuration:5,maxCredits:100,description:"Animate images with motion",supportedDurations:[3,5]},{id:"kling-2.1-master-i2v",name:"Kling 2.1 Master I2V",tier:"Premium",creditsPerSecond:50,maxDuration:10,maxCredits:500,description:"Premium image animation",supportedDurations:[5,10]},{id:"veo3-i2v",name:"Veo3 I2V",tier:"Excellent",creditsPerSecond:75,maxDuration:8,maxCredits:600,description:"Best quality image-to-vi
1deo",supportedDurations:[3,5,8]}];function Y(e){return R.find(s=>s.id===e)}function q(e){return G.find(s=>s.id===e)}function L(e){return B.find(s=>s.id===e)}function M(e,s){let a=Math.min(s,e.maxDuration);return e.creditsPerSecond*a}function O(e){return e>=1e3?"".concat((e/1e3).toFixed(1),"k"):e.toString()}let U={Normal:z.Z,Premium:A.Z,Excellent:g.Z},H={Normal:"Fast & Affordable",Premium:"High Quality",Excellent:"Best Quality"};function W(e){let{type:s,value:a,onChange:i,duration:n=5,disabled:l=!1,className:c}=e,d=(0,t.useMemo)(()=>{switch(s){case"image":return R;case"video":return G;case"i2v":return B;default:return[]}},[s]),m=(0,t.useMemo)(()=>({Normal:d.filter(e=>"Normal"===e.tier),Premium:d.filter(e=>"Premium"===e.tier),Excellent:d.filter(e=>"Excellent"===e.tier)}),[d,s]),u=(0,t.useMemo)(()=>d.find(e=>e.id===a),[d,a]),h=e=>{if("creditsPerImage"in e)return"".concat(e.creditsPerImage," cr");if("video"===s||"i2v"===s){let s=M(e,n);return"".concat(s," cr")}return"".concat(e.maxCredits," cr")};return(0,r.jsxs)(x.Ph,{value:a,onValueChange:i,disabled:l,children:[(0,r.jsx)(x.i4,{className:(0,D.cn)("w-full",c),children:(0,r.jsx)(x.ki,{placeholder:"Select a model",children:u&&(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{children:u.name}),(0,r.jsx)(o.C,{variant:"outline",className:(0,D.cn)("text-xs px-1.5 py-0",Q[u.tier].bg,Q[u.tier].text,Q[u.tier].border),children:h(u)})]})})}),(0,r.jsx)(x.Bw,{children:["Normal","Premium","Excellent"].map(e=>{let s=m[e];if(0===s.length)return null;let a=U[e];return(0,r.jsxs)(x.DI,{children:[(0,r.jsxs)(x.n5,{className:"flex items-center gap-2 text-xs font-medium text-gray-500 dark:text-gray-400 px-2 py-1.5",children:[(0,r.jsx)(a,{className:(0,D.cn)("h-3 w-3",Q[e].text)}),(0,r.jsx)("span",{children:e}),(0,r.jsxs)("span",{className:"text-gray-400 dark:text-gray-500",children:["- ",H[e]]})]}),s.map(s=>(0,r.jsx)(x.Ql,{value:s.id,className:"cursor-pointer",children:(0,r.jsxs)("div",{className:"flex items-center justify-between w-full gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"font-medium",children:s.name}),(0,r.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s.description})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,r.jsx)(o.C,{variant:"outline",className:(0,D.cn)("text-xs px-1.5 py-0",Q[e].bg,Q[e].text,Q[e].border),children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-1 text-sm font-medium text-gray-700 dark:text-gray-300",children:[(0,r.jsx)(p.Z,{className:"h-3 w-3"}),(0,r.jsx)("span",{children:h(s)})]})]})]})},s.id))]},e)})})]})}var K=a(22252),X=a(63639),J=a(33245),$=a(66901),ee=a(76858),es=a(27648);let ea={critical:K.Z,warning:X.Z,caution:J.Z,good:$.Z},er={critical:"Insufficient Credits",warning:"Low Credit Balance",caution:"Credits Running Low",good:"Credits Available"};function et(e){let{balance:s,requiredCredits:a,onBuyCredits:i,onChooseCheaperModel:l,className:c,compact:d=!1}=e,o=(0,t.useMemo)(()=>E(s,a),[s,a]);if("good"===o)return null;let m=F[o],x=ea[o],u=er[o],h=()=>"critical"===o&&void 0!==a?"You need ".concat(O(a)," credits but only have ").concat(O(s),"."):"warning"===o?"You have ".concat(O(s)," credits remaining. Consider topping up."):"caution"===o?"Running low on credits (".concat(O(s)," remaining)."):"";return d?(0,r.jsxs)("div",{className:(0,D.cn)("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm",m.bg,m.text,m.border,"border",c),children:[(0,r.jsx)(x,{className:(0,D.cn)("h-4 w-4 shrink-0",m.icon)}),(0,r.jsx)("span",{className:"truncate",children:h()}),(0,r.jsx)(es.default,{href:"/dashboard/billing?tab=buy-credits",className:"shrink-0",children:(0,r.jsx)(n.z,{size:"sm",variant:"ghost",className:(0,D.cn)("h-6 px-2 text-xs",m.text),children:"Top Up"})})]}):(0,r.jsx)("div",{className:(0,D.cn)("rounded-lg p-4",m.bg,m.border,"border",c),children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:(0,D.cn)("rounded-full p-1.5",m.bg),children:(0,r.jsx)(x,{className:(0,D.cn)("h-5 w-5",m.icon)})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h4",{className:(0,D.cn)("font-semibold text-sm",m.text),children:u}),(0,r.jsx)("p",{className:(0,D.cn)("text-sm mt-0.5",m.text,"opacity-90"),children:h()}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 mt-3",children:[i?(0,r.jsxs)(n.z,{size:"sm",onClick:i,className:(0,D.cn)("gap-1.5","critical"===o?"bg-red-600 hover:bg-red-700 text-white":"warning"===o?"bg-orange-600 hover:bg-orange-700 text-white":"bg-yellow-600 hover:bg-yellow-700 text-white"),children:[(0,r.jsx)(p.Z,{className:"h-4 w-4"}),"Buy Credits"]}):(0,r.jsx)(es.default,{href:"/dashboard/billing?tab=buy-credits",children:(0,r.jsxs)(n.z,{size:"sm",className:(0,D.cn)("gap-1.5","critical"===o?"bg-red-600 hover:bg-red-700 text-white":"warning"===o?"bg-orange-600 hover:bg-orange-700 text-white":"bg-yellow-600 hover:bg-yellow-700 text-white"),children:[(0,r.jsx)(p.Z,{className:"h-4 w-4"}),"Buy Credits"]})}),"critical"===o&&l&&(0,r.jsxs)(n.z,{size:"sm",variant:"outline",onClick:l,className:(0,D.cn)("gap-1.5",m.text,m.border),children:["Choose Cheaper Model",(0,r.jsx)(ee.Z,{className:"h-4 w-4"})]})]})]})]})})}function ei(e){let{modelName:s,credits:a,balance:t,duration:i,className:n}=e,l=F[E(t,a)],c=t<a;return(0,r.jsx)("div",{className:(0,D.cn)("rounded-lg p-3 border",l.bg,l.border,n),children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Estimated Cost"}),(0,r.jsxs)("p",{className:(0,D.cn)("text-lg font-bold",l.text),children:[O(a)," credits"]}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[s,i&&" x ".concat(i,"s")]})]}),(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Your Balance"}),(0,r.jsxs)("p",{className:(0,D.cn)("text-lg font-bold",c?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400"),children:[O(t)," credits"]}),c?(0,r.jsxs)("p",{className:"text-xs text-red-500",children:["Need ",O(a-t)," more"]}):(0,r.jsx)("p",{className:"text-xs text-green-500",children:"Sufficient balance"})]})]})})}let en=e=>{let{className:s}=e;
1return(0,r.jsx)("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})};function el(){var e;let[s,a]=(0,t.useState)("image"),[A,D]=(0,t.useState)(0),[E,Q]=(0,t.useState)(!0),[F,R]=(0,t.useState)(""),[G,B]=(0,t.useState)("flux-schnell"),[U,H]=(0,t.useState)("1024x1024"),[K,X]=(0,t.useState)(1),[J,$]=(0,t.useState)(""),[ee,es]=(0,t.useState)(!1),[ea,er]=(0,t.useState)([]),[el,ec]=(0,t.useState)(""),[ed,eo]=(0,t.useState)("minimax-video"),[em,ex]=(0,t.useState)(5),[eu,eh]=(0,t.useState)("16:9"),[eg,ep]=(0,t.useState)(!1),[ef,ej]=(0,t.useState)([]),[ev,eb]=(0,t.useState)(null),[eN,ey]=(0,t.useState)(""),[ew,ek]=(0,t.useState)("wan-pro-i2v"),[eC,eZ]=(0,t.useState)(""),[eS,eP]=(0,t.useState)(5),[e_,eV]=(0,t.useState)(!1),[ez,eI]=(0,t.useState)(""),[eT,eA]=(0,t.useState)("instagram"),[eD,eE]=(0,t.useState)("engaging"),[eQ,eF]=(0,t.useState)(!0),[eR,eG]=(0,t.useState)(10),[eB,eY]=(0,t.useState)(!1),[eq,eL]=(0,t.useState)(""),[eM,eO]=(0,t.useState)([]),[eU,eH]=(0,t.useState)(""),[eW,eK]=(0,t.useState)("improve_writing"),[eX,eJ]=(0,t.useState)(""),[e$,e0]=(0,t.useState)(!1),e2=(0,t.useCallback)(async()=>{try{let e=(await I.api.get("/credits/balance")).data;e.success&&D(e.data.available_credits||0)}catch(e){console.error("Failed to fetch credit balance:",e)}finally{Q(!1)}},[]);(0,t.useEffect)(()=>{e2()},[e2]);let e4=(()=>{let e=Y(G);return e?e.creditsPerImage*K:15*K})(),e1=(()=>{let e=q(ed);return e?M(e,em):50*em})(),e5=(()=>{let e=L(ew);return e?M(e,eS):50*eS})(),e3=A>=e4,e6=A>=e1,e7=A>=e5,e9=async()=>{if(!F.trim()){T.A.error("Please enter an image prompt");return}if(!e3){T.A.error("Insufficient credits. Need ".concat(e4," but have ").concat(A));return}es(!0);try{let e=(await I.api.post("/ai-studio/generate/image",{prompt:F,negative_prompt:J||void 0,model:G,size:U,num_images:K},{timeout:12e4})).data;if(e.success&&e.data.images){er(s=>[...e.data.images,...s]);let s=e.data.credits_charged||e4;T.A.success("Generated ".concat(e.data.images.length," image(s) - ").concat(s," credits used")),e2()}}catch(e){T.A.error(e.message||"Failed to generate image")}finally{es(!1)}},e8=async()=>{if(!el.trim()){T.A.error("Please enter a video prompt");return}if(!e6){T.A.error("Insufficient credits. Need ".concat(e1," but have ").concat(A));return}ep(!0);try{let e=(await I.api.post("/ai-studio/generate/video",{prompt:el,model:ed,duration:em,aspect_ratio:eu},{timeout:3e5})).data;if(e.success){let s=e.data.credits_charged||e1;e.data.url?(ej(a=>[{url:e.data.url,prompt:el,model:ed,duration:em,status:"completed",credits_charged:s},...a]),T.A.success("Video generated - ".concat(s," credits used"))):e.data.requestId&&(eb(e.data.requestId),T.A.info("Video is being processed. This may take a few minutes...")),e2()}}catch(e){T.A.error(e.message||"Failed to generate video")}finally{ep(!1)}},se=async()=>{if(!eN.trim()){T.A.error("Please enter a prompt");return}if(!eC.trim()){T.A.error("Please enter an image URL");return}if(!e7){T.A.error("Insufficient credits. Need ".concat(e5," but have ").concat(A));return}eV(!0);try{let e=(await I.api.post("/ai-studio/generate/video",{prompt:eN,model:ew,duration:eS,image_url:eC},{timeout:3e5})).data;if(e.success&&e.data.url){let s=e.data.credits_charged||e5;ej(a=>[{url:e.data.url,prompt:eN,model:ew,duration:eS,status:"completed",credits_charged:s},...a]),T.A.success("Video generated from image - ".concat(s," credits used")),e2()}}catch(e){T.A.error(e.message||"Failed to generate video from image")}finally{eV(!1)}},ss=async()=>{if(!ez.trim()){T.A.error("Please enter a topic");return}eY(!0);try{let e=(await I.api.post("/ai-studio/generate/caption",{topic:ez,platform:eT,tone:eD,include_hashtags:eQ,hashtag_count:eR})).data;e.success&&(eL(e.data.caption),eO(e.data.hashtags||[]),T.A.success("Caption generated!"))}catch(e){T.A.error(e.message||"Failed to generate caption")}finally{eY(!1)}},sa=async()=>
1{if(!eU.trim()){T.A.error("Please enter content to enhance");return}e0(!0);try{let e=(await I.api.post("/ai-studio/enhance/content",{content:eU,enhance_type:eW})).data;e.success&&(eJ(e.data.enhanced),T.A.success("Content enhanced!"))}catch(e){T.A.error(e.message||"Failed to enhance content")}finally{e0(!1)}},sr=e=>{navigator.clipboard.writeText(e),T.A.success("Copied to clipboard!")},st=q(ed),si=L(ew);return(0,r.jsxs)("div",{className:"p-3 sm:p-4 md:p-6 space-y-4 sm:space-y-6",children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-3 sm:gap-4",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold flex items-center gap-2",children:[(0,r.jsx)(g.Z,{className:"w-6 h-6 sm:w-7 sm:h-7 md:w-8 md:h-8 text-primary flex-shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:"AI Content Studio"})]}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground truncate",children:"Generate images, videos, captions, and enhance content with AI"})]}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-gradient-to-r from-emerald-50 to-green-50 dark:from-emerald-900/20 dark:to-green-900/20 rounded-lg border border-emerald-200 dark:border-emerald-800",children:[(0,r.jsx)(p.Z,{className:"w-4 h-4 text-emerald-600 dark:text-emerald-400"}),(0,r.jsxs)("span",{className:"font-semibold text-emerald-700 dark:text-emerald-300",children:[E?"...":O(A)," credits"]})]}),(0,r.jsxs)(n.z,{variant:"outline",size:"sm",children:[(0,r.jsx)(f.Z,{className:"w-4 h-4 mr-2"}),"History"]})]})]}),!E&&A<100&&(0,r.jsx)(et,{balance:A,className:"mb-4"}),(0,r.jsxs)(m.Tabs,{value:s,onValueChange:a,className:"space-y-6",children:[(0,r.jsxs)(m.TabsList,{className:"grid w-full max-w-lg grid-cols-5",children:[(0,r.jsxs)(m.TabsTrigger,{value:"image",className:"flex items-center gap-2",children:[(0,r.jsx)(j.Z,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Images"})]}),(0,r.jsxs)(m.TabsTrigger,{value:"video",className:"flex items-center gap-2",children:[(0,r.jsx)(v.Z,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Video"})]}),(0,r.jsxs)(m.TabsTrigger,{value:"i2v",className:"flex items-center gap-2",children:[(0,r.jsx)(b.Z,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"I2V"})]}),(0,r.jsxs)(m.TabsTrigger,{value:"caption",className:"flex items-center gap-2",children:[(0,r.jsx)(N.Z,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Caption"})]}),(0,r.jsxs)(m.TabsTrigger,{value:"enhance",className:"flex items-center gap-2",children:[(0,r.jsx)(y.Z,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Enhance"})]})]}),(0,r.jsx)(m.TabsContent,{value:"image",className:"space-y-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,r.jsxs)(i.Zb,{className:"lg:col-span-1",children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsxs)(i.ll,{className:"flex items-center gap-2",children:[(0,r.jsx)(j.Z,{className:"w-5 h-5"}),"Image Generation"]}),(0,r.jsx)(i.SZ,{children:"Create stunning images with AI"})]}),(0,r.jsxs)(i.aY,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Prompt"}),(0,r.jsx)(d.g,{placeholder:"Describe the image you want to create...",value:F,onChange:e=>R(e.target.value),rows:4})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Negative Prompt (Optional)"}),(0,r.jsx)(l.I,{placeholder:"What to avoid in the image...",value:J,onChange:e=>$(e.target.value)})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Model"}),(0,r.jsx)(W,{type:"image",value:G,onChange:B})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Size"}),(0,r.jsxs)(x.Ph,{value:U,onValueChange:H,children:[(0,r.jsx)(x.i4,{children:(0,r.jsx)(x.ki,{})}),(0,r.jsxs)(x.Bw,{children:[(0,r.jsx)(x.Ql,{value:"512x512",children:"512x512 (Square)"}),(0,r.jsx)(x.Ql,{value:"1024x1024",children:"1024x1024 (Square)"}),(0,r.jsx)(x.Ql,{value:"1024x1792",children:"1024x1792 (Portrait)"}),(0,r.jsx)(x.Ql,{value:"1792x1024",children:"1792x1024 (Landscape)"})]})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(c._,{children:["Number of Images: ",K]}),(0,r.jsx)(u.i,{value:[K],onValueChange:e=>{let[s]=e;return X(s)},min:1,max:4,step:1})]}),(0,r.jsx)(ei,{modelName:(null===(e=Y(G))||void 0===e?void 0:e.name)||G,credits:e4,balance:A}),!e3&&(0,r.jsx)(et,{balance:A,requiredCredits:e4,compact:!0}),(0,r.jsx)(n.z,{className:"w-full",onClick:e9,disabled:ee||!F.trim()||!e3,children:ee?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{className:"w-4 h-4 mr-2"}),"Generate (",e4," credits)"]})})]})]}),(0,r.jsxs)(i.Zb,{className:"lg:col-span-2",children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsx)(i.ll,{children:"Generated Images"}),(0,r.jsxs)(i.SZ,{children:[ea.length," images generated"]})]}),(0,r.jsx)(i.aY,{children:0===ea.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[(0,r.jsx)(j.Z,{className:"w-16 h-16 mb-4 opacity-50"}),(0,r.jsx)("p",{children:"No images generated yet"}),(0,r.jsx)("p",{className:"text-sm",children:"Enter a prompt and click Generate"})]}):(0,r.jsx)("div",{className:"grid grid-cols-2 gap-4",children:ea.map((e,s)=>(0,r.jsxs)("div",{className:"relative group rounded-lg overflow-hidden border",children:[(0,r.jsx)("img",{src:e.url,alt:e.prompt,className:"w-full aspect-square object-cover"}),(0,r.jsxs)("div",{className:"absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2",children:[(0,r.jsx)(n.z,{size:"sm",variant:"secondary",onClick:()=>window.open(e.url,"_blank"),children:(0,r.jsx)(k.Z,{className:"w-4 h-4"})}),(0,r.jsx)(n.z,{size:"sm",variant:"secondary",asChild:!0,children:(0,r.jsx)("a",{href:e.url,download:!0,children:(0,r.jsx)(C.Z,{className:"w-4 h-4"})})}),(0,r.jsx)(n.z,{size:"sm",variant:"secondary",children:(0,r.jsx)(Z.Z,{className:"w-4 h-4"})})]}),(0,r.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 p-2",children:[(0,r.jsx)("p",{className:"text-white text-xs truncate",children:e.prompt}),(0,r.jsxs)("div",{className:"flex gap-1 mt-1",children:[(0,r.jsx)(o.C,{variant:"secondary",className:"text-xs",children:e.model}),e.credits_charged&&(0,r.jsxs)(o.C,{variant:"outline",className:"text-xs text-white border-white/50",children:[e.credits_charged," cr"]})]})]})]},s))})})]})]})}),(0,r.jsx)(m.TabsContent,{value:"video",className:"space-y-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,r.jsxs)(i.Zb,{className:"lg:col-span-1",children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsxs)(i.ll,{className:"flex items-center gap-2",children:[(0,r.jsx)(v.Z,{className:"w-5 h-5"}),"Video Generation"]}),(0,r.jsx)(i.SZ,{children:"Create videos from text prompts"})]}),(0,r.jsxs)(i.aY,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Prompt"}),(0,r.jsx)(d.g,{placeholder:"Describe the video you want to create...",value:el,onChange:e=>ec(e.target.value),rows:4})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Model"}),(0,r.jsx)(W,{type:"video",value:ed,onChange:eo,duration:em})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(c._,{children:["Duration: ",em,"s"]}
1),(0,r.jsx)(u.i,{value:[em],onValueChange:e=>{let[s]=e;return ex(s)},min:3,max:(null==st?void 0:st.maxDuration)||10,step:1}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Max: ",(null==st?void 0:st.maxDuration)||10,"s for this model"]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Aspect Ratio"}),(0,r.jsxs)(x.Ph,{value:eu,onValueChange:eh,children:[(0,r.jsx)(x.i4,{children:(0,r.jsx)(x.ki,{})}),(0,r.jsxs)(x.Bw,{children:[(0,r.jsx)(x.Ql,{value:"16:9",children:"16:9 (Landscape)"}),(0,r.jsx)(x.Ql,{value:"9:16",children:"9:16 (Portrait)"}),(0,r.jsx)(x.Ql,{value:"1:1",children:"1:1 (Square)"})]})]})]}),(0,r.jsx)(ei,{modelName:(null==st?void 0:st.name)||ed,credits:e1,balance:A,duration:em}),!e6&&(0,r.jsx)(et,{balance:A,requiredCredits:e1,compact:!0}),(0,r.jsx)(n.z,{className:"w-full",onClick:e8,disabled:eg||!el.trim()||!e6,children:eg?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Z,{className:"w-4 h-4 mr-2"}),"Generate (",e1," credits)"]})})]})]}),(0,r.jsxs)(i.Zb,{className:"lg:col-span-2",children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsx)(i.ll,{children:"Generated Videos"}),(0,r.jsxs)(i.SZ,{children:[ef.length," videos generated"]})]}),(0,r.jsx)(i.aY,{children:0===ef.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[(0,r.jsx)(v.Z,{className:"w-16 h-16 mb-4 opacity-50"}),(0,r.jsx)("p",{children:"No videos generated yet"}),(0,r.jsx)("p",{className:"text-sm",children:"Enter a prompt and click Generate"})]}):(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:ef.map((e,s)=>(0,r.jsxs)("div",{className:"rounded-lg overflow-hidden border",children:[(0,r.jsx)("video",{src:e.url,controls:!0,className:"w-full aspect-video"}),(0,r.jsxs)("div",{className:"p-3 bg-muted/50",children:[(0,r.jsx)("p",{className:"text-sm truncate",children:e.prompt}),(0,r.jsxs)("div",{className:"flex gap-2 mt-2",children:[(0,r.jsx)(o.C,{variant:"secondary",children:e.model}),(0,r.jsxs)(o.C,{variant:"outline",children:[e.duration,"s"]}),e.credits_charged&&(0,r.jsxs)(o.C,{variant:"outline",children:[e.credits_charged," cr"]})]})]})]},s))})})]})]})}),(0,r.jsx)(m.TabsContent,{value:"i2v",className:"space-y-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,r.jsxs)(i.Zb,{className:"lg:col-span-1",children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsxs)(i.ll,{className:"flex items-center gap-2",children:[(0,r.jsx)(b.Z,{className:"w-5 h-5"}),"Image to Video"]}),(0,r.jsx)(i.SZ,{children:"Animate your images with AI"})]}),(0,r.jsxs)(i.aY,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Image URL"}),(0,r.jsx)(l.I,{placeholder:"https://example.com/image.jpg",value:eC,onChange:e=>eZ(e.target.value)})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Motion Prompt"}),(0,r.jsx)(d.g,{placeholder:"Describe how the image should move...",value:eN,onChange:e=>ey(e.target.value),rows:3})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Model"}),(0,r.jsx)(W,{type:"i2v",value:ew,onChange:ek,duration:eS})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(c._,{children:["Duration: ",eS,"s"]}),(0,r.jsx)(u.i,{value:[eS],onValueChange:e=>{let[s]=e;return eP(s)},min:3,max:(null==si?void 0:si.maxDuration)||10,step:1})]}),(0,r.jsx)(ei,{modelName:(null==si?void 0:si.name)||ew,credits:e5,balance:A,duration:eS}),!e7&&(0,r.jsx)(et,{balance:A,requiredCredits:e5,compact:!0}),(0,r.jsx)(n.z,{className:"w-full",onClick:se,disabled:e_||!eN.trim()||!eC.trim()||!e7,children:e_?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Z,{className:"w-4 h-4 mr-2"}),"Animate (",e5," credits)"]})})]})]}),(0,r.jsxs)(i.Zb,{className:"lg:col-span-2",children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsx)(i.ll,{children:"Generated Videos"}),(0,r.jsx)(i.SZ,{children:"Videos created from images"})]}),(0,r.jsx)(i.aY,{children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[(0,r.jsx)(b.Z,{className:"w-16 h-16 mb-4 opacity-50"}),(0,r.jsx)("p",{children:"No videos generated yet"}),(0,r.jsx)("p",{className:"text-sm",children:"Enter an image URL and motion prompt"})]})})]})]})}),(0,r.jsx)(m.TabsContent,{value:"caption",className:"space-y-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,r.jsxs)(i.Zb,{children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsxs)(i.ll,{className:"flex items-center gap-2",children:[(0,r.jsx)(N.Z,{className:"w-5 h-5"}),"Caption Generator"]}),(0,r.jsx)(i.SZ,{children:"Create engaging captions for social media"})]}),(0,r.jsxs)(i.aY,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Topic or Theme"}),(0,r.jsx)(d.g,{placeholder:"What is this post about?",value:ez,onChange:e=>eI(e.target.value),rows:3})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Platform"}),(0,r.jsxs)(x.Ph,{value:eT,onValueChange:eA,children:[(0,r.jsx)(x.i4,{children:(0,r.jsx)(x.ki,{})}),(0,r.jsxs)(x.Bw,{children:[(0,r.jsx)(x.Ql,{value:"instagram",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(S.Z,{className:"w-4 h-4"})," Instagram"]})}),(0,r.jsx)(x.Ql,{value:"facebook",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(en,{className:"w-4 h-4"})," Facebook"]})}),(0,r.jsx)(x.Ql,{value:"twitter",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(P.Z,{className:"w-4 h-4"})," Twitter/X"]})}),(0,r.jsx)(x.Ql,{value:"linkedin",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(_.Z,{className:"w-4 h-4"})," LinkedIn"]})})]})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Tone"}),(0,r.jsxs)(x.Ph,{value:eD,onValueChange:eE,children:[(0,r.jsx)(x.i4,{children:(0,r.jsx)(x.ki,{})}),(0,r.jsxs)(x.Bw,{children:[(0,r.jsx)(x.Ql,{value:"engaging",children:"Engaging"}),(0,r.jsx)(x.Ql,{value:"professional",children:"Professional"}),(0,r.jsx)(x.Ql,{value:"casual",children:"Casual"}),(0,r.jsx)(x.Ql,{value:"humorous",children:"Humorous"}),(0,r.jsx)(x.Ql,{value:"inspiring",children:"Inspiring"})]})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(h.r,{checked:eQ,onCheckedChange:eF}),(0,r.jsx)(c._,{children:"Include Hashtags"})]}),eQ&&(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)(c._,{children:["Count: ",eR]}),(0,r.jsx)(u.i,{value:[eR],onValueChange:e=>{let[s]=e;return eG(s)},min:5,max:30,step:1,className:"w-24"})]})]}),(0,r.jsx)(n.z,{className:"w-full",onClick:ss,disabled:eB||!ez.trim(),children:eB?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{className:"w-4 h-4 mr-2"}),"Generate Caption (1 credit)"]})})]})]}),(0,r.jsxs)(i.Zb,{children:[(0,r.jsx)(i.Ol,{children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)(i.ll,{children:"Generated Caption"}),eq&&(0,r.jsxs)(n.z,{variant:"outline",size:"sm",onClick:()=>sr(eq),children:[(0,r.jsx)(V.Z,{className:"w-4 h-4 mr-2"}),"Copy"]})]})}),(0,r.jsx)(i.aY,{children:eq?(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"p-4 bg-muted rounded-lg",children:(0,r.jsx)("p",{className:"whitespace-pre-wrap",children:eq})}),eM.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)(c._,{className:"mb-2 block",children:"Hashtags:"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:eM.map((e,s)=>(0,r.jsx)(o.C,{variant:"secondary",className:"cursor-pointer hover:bg-primary hover:text-primary-foreground",onClick:()=>sr(e),children:e},s))})]})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[(0,r.jsx)(N.Z,{className:"w-12 h-12 mb-4 opacity-50"}),(0,r.jsx)("p",{children:"Caption will appear here"})]})})]})]})}),(0,r.jsx)(m.TabsContent,{value:"enhance",className:"space-y-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,r.jsxs)(i.Zb,{children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsxs)(i.ll,{className:"flex items-center gap-2",children:[(0,r.jsx)(y.Z,{className:"w-5 h-5"}),"Content Enhancement"]}),(0,r.jsx)(i.SZ,{children:"Improve, expand, or transform your content"})]}),(0,r.jsxs)(i.aY,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Your Content"}),(0,r.jsx)(d.g,{placeholder:"Paste your content here...",value:eU,onChange:e=>eH(e.target.value),rows:6})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c._,{children:"Enhancement Type"}),(0,r.jsxs)(x.Ph,{value:eW,onValueChange:eK,children:[(0,r.jsx)(x.i4,{children:(0,r.jsx)(x.ki,{})}),(0,r.jsxs)(x.Bw,{children:[(0,r.jsx)(x.Ql,{value:"improve_writing",children:"Improve Writing"}),(0,r.jsx)(x.Ql,{value:"add_emojis",children:"Add Emojis"}),(0,r.jsx)(x.Ql,{value:"make_concise",children:"Make Concise"}),(0,r.jsx)(x.Ql,{value:"expand",children:"Expand Content"}),(0,r.jsx)(x.Ql,{value:"translate",children:"Translate"})]})]})]}),(0,r.jsx)(n.z,{className:"w-full",onClick:sa,disabled:e$||!eU.trim(),children:e$?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Enhancing..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.Z,{className:"w-4 h-4 mr-2"}),"Enhance Content (1 credit)"]})})]})]}),(0,r.jsxs)(i.Zb,{children:[(0,r.jsx)(i.Ol,{children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)(i.ll,{children:"Enhanced Content"}),eX&&(0,r.jsxs)(n.z,{variant:"outline",size:"sm",onClick:()=>sr(eX),children:[(0,r.jsx)(V.Z,{className:"w-4 h-4 mr-2"}),"Copy"]})]})}),(0,r.jsx)(i.aY,{children:eX?(0,r.jsx)("div",{className:"p-4 bg-muted rounded-lg",children:(0,r.jsx)("p",{className:"whitespace-pre-wrap",children:eX})}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[(0,r.jsx)(y.Z,{className:"w-12 h-12 mb-4 opacity-50"}),(0,r.jsx)("p",{children:"Enhanced content will appear here"})]})})]})]})})]}),(0,r.jsxs)(i.Zb,{children:[(0,r.jsxs)(i.Ol,{children:[(0,r.jsx)(i.ll,{children:"Qu
1ick Templates"}),(0,r.jsx)(i.SZ,{children:"Start with pre-built prompts for common use cases"})]}),(0,r.jsx)(i.aY,{children:(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,r.jsxs)(n.z,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{R("Professional product photography, studio lighting, white background, 4K quality, commercial photography"),a("image")},children:[(0,r.jsx)(j.Z,{className:"w-5 h-5 mb-2"}),(0,r.jsx)("span",{className:"font-medium",children:"Product Shot"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"Studio quality"})]}),(0,r.jsxs)(n.z,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{ec("Slow cinematic dolly shot, golden hour lighting, nature landscape, 4K quality"),a("video")},children:[(0,r.jsx)(v.Z,{className:"w-5 h-5 mb-2"}),(0,r.jsx)("span",{className:"font-medium",children:"Cinematic"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"Video shot"})]}),(0,r.jsxs)(n.z,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{eI("New product launch, exciting features, limited time offer"),eE("engaging"),a("caption")},children:[(0,r.jsx)(z.Z,{className:"w-5 h-5 mb-2"}),(0,r.jsx)("span",{className:"font-medium",children:"Launch Post"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"Product launch"})]}),(0,r.jsxs)(n.z,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{eI("Behind the scenes, team culture, company values"),eE("casual"),a("caption")},children:[(0,r.jsx)(k.Z,{className:"w-5 h-5 mb-2"}),(0,r.jsx)("span",{className:"font-medium",children:"Behind Scenes"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"Authentic content"})]})]})})]})]})}},69174:function(e,s,a){a.d(s,{C:function(){return l}});var r=a(57437);a(2265);var t=a(90535),i=a(93448);let n=(0,t.j)("inline-flex items-center rounded-[4px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:s,variant:a,...t}=e;return(0,r.jsx)("div",{className:(0,i.cn)(n({variant:a}),s),...t})}},12381:function(e,s,a){a.d(s,{d:function(){return c},z:function(){return d}});var r=a(57437),t=a(2265),i=a(37053),n=a(90535),l=a(93448);let c=(0,n.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[4px] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring 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 shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-[4px] px-3 text-xs",lg:"h-10 rounded-[4px] px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=t.forwardRef((e,s)=>{let{className:a,variant:t,size:n,asChild:d=!1,...o}=e,m=d?i.g7:"button";return(0,r.jsx)(m,{className:(0,l.cn)(c({variant:t,size:n,className:a})),ref:s,...o})});d.displayName="Button"},79820:function(e,s,a){a.d(s,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return n},aY:function(){return o},eW:function(){return m},ll:function(){return c}});var r=a(57437),t=a(2265),i=a(93448);let n=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,i.cn)("rounded-[4px] border bg-card text-card-foreground shadow",a),...t})});
1n.displayName="Card";let l=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",a),...t})});l.displayName="CardHeader";let c=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,i.cn)("font-display font-semibold leading-none tracking-tight",a),...t})});c.displayName="CardTitle";let d=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",a),...t})});d.displayName="CardDescription";let o=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,i.cn)("p-6 pt-0",a),...t})});o.displayName="CardContent";let m=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,i.cn)("flex items-center p-6 pt-0",a),...t})});m.displayName="CardFooter"},40279:function(e,s,a){a.d(s,{I:function(){return n}});var r=a(57437),t=a(2265),i=a(93448);let n=t.forwardRef((e,s)=>{let{className:a,type:t,error:n,...l}=e;return(0,r.jsx)("input",{type:t,"aria-invalid":n?"true":void 0,className:(0,i.cn)("flex h-9 w-full rounded-[4px] border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n&&"border-red-500 focus-visible:ring-red-500",a),ref:s,...l})});n.displayName="Input"},75060:function(e,s,a){a.d(s,{_:function(){return d}});var r=a(57437),t=a(2265),i=a(6394),n=a(90535),l=a(93448);let c=(0,n.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.f,{ref:s,className:(0,l.cn)(c(),a),...t})});d.displayName=i.f.displayName},15291:function(e,s,a){a.d(s,{Bw:function(){return u},DI:function(){return o},Ph:function(){return d},Ql:function(){return g},i4:function(){return x},ki:function(){return m},n5:function(){return h}});var r=a(57437),t=a(2265),i=a(56873),n=a(40875),l=a(30401),c=a(93448);let d=i.fC,o=i.ZA,m=i.B4,x=t.forwardRef((e,s)=>{let{className:a,children:t,...l}=e;return(0,r.jsxs)(i.xz,{ref:s,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-[4px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 dark:text-gray-100 px-3 py-2 text-sm r
1ing-offset-white dark:ring-offset-gray-950 placeholder:text-gray-500 dark:placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-950 dark:focus:ring-gray-300 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...l,children:[t,(0,r.jsx)(i.JO,{asChild:!0,children:(0,r.jsx)(n.Z,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=i.xz.displayName;let u=t.forwardRef((e,s)=>{let{className:a,children:t,position:n="popper",...l}=e;return(0,r.jsx)(i.h_,{children:(0,r.jsx)(i.VY,{ref:s,className:(0,c.cn)("relative z-50 min-w-[8rem] overflow-hidden rounded-[4px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-950 dark:text-gray-100 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...l,children:(0,r.jsx)(i.l_,{className:(0,c.cn)("p-1 max-h-[300px] overflow-y-auto","popper"===n&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})});u.displayName=i.VY.displayName;let h=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.__,{ref:s,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...t})});h.displayName=i.__.displayName;let g=t.forwardRef((e,s)=>{let{className:a,children:t,...n}=e;return(0,r.jsxs)(i.ck,{ref:s,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-gray-100 dark:focus:bg-gray-700 focus:text-gray-900 dark:focus:text-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(i.wU,{children:(0,r.jsx)(l.Z,{className:"h-4 w-4"})})}),(0,r.jsx)(i.eT,{children:t})]})});g.displayName=i.ck.displayName,t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.Z0,{ref:s,className:(0,c.cn)("-mx-1 my-1 h-px bg-gray-100 dark:bg-gray-700",a),...t})}).displayName=i.Z0.displayName},31397:function(e,s,a){a.d(s,{i:function(){return l}});var r=a(57437),t=a(2265),i=a(38846),n=a(93448);let l=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsxs)(i.fC,{ref:s,className:(0,n.cn)("relative flex w-full touch-none select-none items-center",a),...t,children:[(0,r.jsx)(i.fQ,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,r.jsx)(i.e6,{className:"absolute h-full bg-primary"})}),(0,r.jsx)(i.bU,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]})});l.displayName=i.fC.displayName},94589:function(e,s,a){a.d(s,{r:function(){return l}});var r=a(57437),t=a(2265),i=a(50721),n=a(93448);let l=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.fC,{className:(0,n.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 dark:focus-visible:ring-gray-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-950 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 dark:data-[state=checked]:bg-gray-100 data-[state=unchecked]:bg-gray-200 dark:data-[state=unchecked]:bg-gray-700",a),...t,ref:s,children:(0,r.jsx)(i.bU,{className:(0,n.cn)("pointer-events-none block h-5 w-5 rounded-full bg-white dark:bg-gray-900 shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})});l.displayName=i.fC.displayName},17168:function(e,s,a){a.d(s,{Tabs:function(){return l},TabsContent:function(){return o},TabsList:function(){return c},TabsTrigger:function(){return d}});var r=a(57437),t=a(2265),i=a(20271),n=a(93448);let l=i.fC,c=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.aV,{ref:s,className:(0,n.cn)("inline-flex h-10 items-center justify-center rounded-[4px] bg-gray-100 dark:bg-gray-800 p-1 text-gray-500 dark:text-gray-400",a),...t})});c.displayName=i.aV.displayName;let d=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.xz,{ref:s,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white dark:ring-offset-gray-950 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 dark:focus-visible:ring-gray-300 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white dark:data-[state=active]:bg-gray-900 data-[state=active]:text-gray-950 dark:data-[state=active]:text-gray-100 data-[state=active]:shadow-sm",a),...t})});d.displayName=i.xz.displayName;let o=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(i.VY,{ref:s,className:(0,n.cn)("mt-2 ring-offset-white dark:ring-offset-gray-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 dark:focus-visible:ring-gray-300 focus-visible:ring-offset-2",a),...t})});o.displayName=i.VY.displayName},23675:function(e,s,a){a.d(s,{g:function(){return n}});var r=a(57437),t=a(2265),i=a(93448);let n=t.forwardRef((e,s)=>{let{className:a,error:t,...n}=e;return(0,r.jsx)("textarea",{"aria-invalid":t?"true":void 0,className:(0,i.cn)("flex min-h-[80px] w-full rounded-[4px] border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t&&"border-red-500 focus-visible:ring-red-500",a),ref:s,...n})});n.displayName="Textarea"},93448:function(e,s,a){a.d(s,{cn:function(){return i}});var r=a(61994),t=a(53335);function i(){for(var e=arguments.length,s=Array(e),a=0;a<e;a++)s[a]=arguments[a];return(0,t.m6)((0,r.W)(s))}}}]);

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.