PageSourceSearch

https://sdel.ai/_next/static/chunks/6627-3d2f9caaa57f726d.js

js sdel.ai collected 2026-10-05 14:43:35 UTC 7,595 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6627],{6259:(e,t,a)=>{a.d(t,{SQ:()=>l,_2:()=>s,rI:()=>n,ty:()=>r});var o=a(95155);a(12115);var i=a(37738),d=a(64269);function n(e){let{...t}=e;return(0,o.jsx)(i.bL,{"data-slot":"dropdown-menu",...t})}function r(e){let{...t}=e;return(0,o.jsx)(i.l9,{"data-slot":"dropdown-menu-trigger",...t})}function l(e){let{className:t,sideOffset:a=4,...n}=e;return(0,o.jsx)(i.ZL,{children:(0,o.jsx)(i.UC,{"data-slot":"dropdown-menu-content",sideOffset:a,className:(0,d.cn)("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border-0 p-1 shadow-md",t),...n})})}function s(e){let{className:t,inset:a,variant:n="default",...r}=e;return(0,o.jsx)(i.q7,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":n,className:(0,d.cn)("relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none select-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-white/10 focus:text-white data-[highlighted]:bg-white/10 data-[highlighted]:text-white data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}},46767:(e,t,a)=>{a.d(t,{ID:()=>u});var o=a(95155);a(12115);var i=a(26852),d=a(64269);function n(e){let{delayDuration:t=0,...a}=e;return(0,o.jsx)(i.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function r(e){let{...t}=e;return(0,o.jsx)(n,{children:(0,o.jsx)(i.bL,{"data-slot":"tooltip",...t})})}function l(e){let{...t}=e;return(0,o.jsx)(i.l9,{"data-slot":"tooltip-trigger",...t})}function s(e){let{className:t,sideOffset:a=0,children:n,...r}=e;return(0,o.jsx)(i.ZL,{children:(0,o.jsx)(i.UC,{"data-slot":"tooltip-content",sideOffset:a,className:(0,d.cn)("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[200] w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg px-3 py-1.5 text-xs text-balance shadow-xl",t),...r,children:n})})}
1function u(e){let{content:t,children:a,side:i="top",maxWidth:d="240px"}=e;return(0,o.jsxs)(r,{children:[(0,o.jsx)(l,{asChild:!0,children:a}),(0,o.jsx)(s,{side:i,sideOffset:8,className:"bg-[#0B0B0B]/90 backdrop-blur-md text-white/60 px-3 py-2 text-xs font-normal leading-relaxed shadow-2xl",style:{maxWidth:d},children:t})]})}},52821:(e,t,a)=>{a.d(t,{UU:()=>s,Vj:()=>u,e4:()=>r,gH:()=>d,u0:()=>n,yi:()=>l});var o=a(25959),i=a(66878);function d(e){return"generation"===e.purpose}function n(e){return"tool"===e.purpose}function r(e,t){var a;return null==(a=e.attachments)?void 0:a.find(e=>e.type===t)}function l(e,t){let a=e.pricing.base;if(e.pricing.dimensions&&t)for(let o of e.pricing.dimensions){let e=t[o.name];if(e){let t=o.options.find(t=>t.value===e);t&&(a*=t.multiplier)}}return Math.round(a)}function s(e,t){var a;let o=null!=(a=e.minCount)?a:+("required"===e.mode);if(t.length<o)return{valid:!1,error:1===o?"At least 1 file required":"At least ".concat(o," file(s) required")};if(t.length>e.maxCount)return{valid:!1,error:"Maximum ".concat(e.maxCount," file(s) allowed")};if(e.maxSizeBytes){for(let a of t)if(a.size>e.maxSizeBytes){let t=Math.round(e.maxSizeBytes/1048576);return{valid:!1,error:'File "'.concat(a.name,'" exceeds maximum size of ').concat(t,"MB")}}}if(e.acceptedMimeTypes&&e.acceptedMimeTypes.length>0){for(let a of t)if(!e.acceptedMimeTypes.some(e=>e.endsWith("/*")?a.type.startsWith(e.replace("/*","/")):a.type===e))return{valid:!1,error:'File "'.concat(a.name,'" has unsupported format')}}return{valid:!0}}let u=(0,o.v)()((e,t)=>({models:[],imageModels:[],videoModels:[],audioModels:[],isLoading:!1,error:null,lastFetched:null,fetchModels:async()=>{let{lastFetched:a,models:o}=t();if(!(a&&o.length>0&&Date.now()-a<3e5)){e({isLoading:!0,error:null});try{let{data:t,error:a}=await i.FH.GET("/models");if(a)return void e({error:"Failed to fetch models",isLoading:!1});if(t){let a=t.models||[],o=a.filter(e=>"image"===e.type),i=a.filter(e=>"video"===e.type),d=a.filter(e=>"audio"===e.type);e({models:a,imageModels:o,videoModels:i,audioModels:d,isLoading:!1,lastFetched:Date.now()})}}catch(t){e({error:t instanceof Error?t.message:"Network error",isLoading:!1})}}},getModelById:e=>t().models.find(t=>t.id===e),getModelsByType:e=>{switch(e){case"image":return t().imageModels;case"video":return t().videoModels;case"audio":return t().audioModels;default:return[]}},getModelsByCapability:e=>t().models.filter(t=>(function(e,t){var a,o;return null!=(o=null==(a=e.capabilities)?void 0:a.includes(t))&&o})(t,e))}))},64269:(e,t,a)=>{a.d(t,{P:()=>n,cn:()=>d});var o=a(2821),i=a(75889);function d(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,i.QP)((0,o.$)(t))}async function n(e,t){try{let a=await fetch(e,{mode:"cors"});if(!a.ok)throw Error("HTTP ".concat(a.status));let o=await a.blob(),i=URL.createObjectURL(o),d=document.createElement("a");d.href=i,d.download=t,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(i)}catch(t){window.open(e,"_blank")}}},75409:(e,t,a)=>{a.d(t,{a:()=>i});var o=a(12115);function i(){let[e,t]=o.useState(void 0);return o.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),a=()=>{t(window.innerWidth<768)};return e.addEventListener("change",a),t(window.innerWidth<768),()=>e.removeEventListener("change",a)},[]),!!e}},96511:(e,t,a)=>{a.d(t,{c:()=>d});var o=a(25959);let i={prompt:"",aspectRatio:"1:1",resolution:"1K",duration:"5",quality:"basic",sound:!1,stylePreset:null,negativePrompt:"",promptEnhancement:!1,translation:!1,removeWatermark:!1,upscale:!1,safetyTolerance:3,strength:.75,variants:1,speed:"fast",version:"7"},d=(0,o.v)()((e,t)=>({image:{formState:{...i},uploadedFiles:[],pendingModelId:null,lastUpdated:0},video:{formState:{...i},uploadedFiles:[],pendingModelId:null,lastUpdated:0},audio:{formState:{...i},uploadedFiles:[],pendingModelId:null,lastUpdated:0},pendingAudioParams:null,setPendingAudioParams:t=>e({pendingAudioParams:t}),setFormState:(t,a)=>{e(e=>({[t]:{...e[t],formState:{...e[t].formState,...a}}}))},setUploadedFiles:(t,a)=>{e(e=>({[t]:{...e[t],uploadedFiles:a}}))},addUploadedFile:(t,a)=>{e(e=>({[t]:{...e[t],uploadedFiles:[...e[t].uploadedFiles,a]}}))},removeUploadedFile:(t,a)=>{e(e=>({[t]:{...e[t],uploadedFiles:e[t].uploadedFiles.filter(e=>e.id!==a)}}))},clearUploadedFiles:t=>{e(e=>({[t]:{...e[t],uploadedFiles:[]}}))},clear:t=>{e(e=>({[t]:{formState:{...i},uploadedFiles:[],pendingModelId:null,lastUpdated:0}}))},getState:e=>t()[e],prepareNavigation:(t,a)=>{let{prompt:o,imageUrl:d,imageName:n,modelId:r}=a,l=Date.now();e(e=>({[t]:{formState:{...i,...void 0!==o?{prompt:o}:{}},uploadedFiles:void 0!==d&&d?[{id:"nav-".concat(l),url:d,name:n||"Reference"}]:[],pendingModelId:r||null,lastUpdated:l}}))}}))}}]);

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.