PageSourceSearch

https://cdn.ugcmaker.io/ugcmaker/pages/public/_nuxt/DuNaRQTm.js

js ugcmaker.io collected 2026-10-02 15:05:05 UTC 9,163 bytes, 1 lines download raw bytes

1import{bJ as ee,fz as te,gq as oe,gu as ae,f0 as se,fx as ne,fZ as le,e7 as w,go as q,dw as E,dI as ie,dD as re,dM as r,bw as u,br as l,ey as x,eN as S,v as L,ee as V,bD as T,gv as F,ax as ce,dz as ue,bt as H,bn as Y,en as de,dj as me,dx as I,bC as pe,bs as _e,aj as ge,ak as ve,aB as fe,t as he}from"#entry";import{_ as be}from"./_IQqcnWy.js";import{M as p,f as o}from"./BXxWfXxO.js";import{G as h}from"./B5DgZswN.js";const we={class:"h-screen bg-page-bg py-4 flex flex-col"},xe={class:"font-bold pl-7 mb-4 text-heading"},ye={class:"flex flex-col md:flex-row md:items-center md:justify-between gap-3"},Ae={class:"flex min-w-0 items-center gap-1 md:gap-4 overflow-x-auto scrollbar-hide"},Ee=["onClick"],Se={class:"w-full md:w-64 flex justify-end"},Te={key:0,class:"flex flex-col gap-8 pb-8"},Ne={class:"mb-4 text-base font-bold text-heading"},ke={class:"grid grid-cols-2 md:grid-cols-4 gap-5 content-start"},Me={key:0,class:"absolute -top-2 right-2 z-10 flex gap-1 sm:-right-2"},Re={class:"relative w-full h-full overflow-hidden rounded-xl hover:shadow-md transition-all"},Be=["src","alt"],Ce={key:1,class:"absolute inset-0 bg-primary/10 flex items-center justify-center group-hover:scale-105 transition-transform"},Le={class:"absolute bottom-0 inset-x-0 p-3 flex items-end justify-center"},Ve={class:"text-sm font-bold text-white leading-tight line-clamp-2"},He={key:1,class:"text-center py-20 text-body"},Ie={class:"text-body"},_="ai-models",$e=ee({__name:"index",async setup(Oe){let O,P;const{locale:D,t:g,mergeLocaleMessage:G}=te();oe(D,_,G),[O,P]=ae(()=>me(D.value,_,G)),await O,P();const{currentLangPath:W}=se();ne({title:g(`${_}.seo.title`),meta:[{name:"description",content:g(`${_}.seo.description`)}],link:[{rel:"canonical",href:g(`${_}.seo.canonical`)}]});const J=[{name:"GPT Image 2.5",subType:o.GPT_IMAGE_2_5_SUNBURST,route:"/gpt-image-2-5",poster:p[o.GPT_IMAGE_2_5_SUNBURST],addon:"new"},{name:"GPT Image 2",subType:o.GPT_IMAGE_2,route:"/gpt-image-2",poster:p[o.GPT_IMAGE_2],addon:"hot"},{name:"Seedream 5.0 Pro",subType:o.SEE_DREAM_5_PRO,route:"/seedream-5-pro",poster:p[o.SEE_DREAM_5_PRO],addon:"new"},{name:"Nano Banana 2 Lite",subType:o.NANO_BANANA_2_LITE,route:"/nano-banana-2-lite",poster:p[o.NANO_BANANA_2_LITE],addon:"new"},{name:"Nano Banana 2",subType:o.NANO_BANANA_2,route:"/nano-banana-2",poster:p[o.NANO_BANANA_2]},{name:"Seedream 5.0 Lite",subType:o.SEE_DREAM_5,route:"/seedream-5-lite",poster:p[o.SEE_DREAM_5]},{name:"Nano Banana Pro",subType:o.NANO_BANANA_PRO,route:"/nano-banana-pro",poster:p[o.NANO_BANANA_PRO]},{name:"Seedream 4.5",subType:o.SEE_DREAM_4_5,route:"/seedream-4-5",poster:p[o.SEE_DREAM_4_5]},{name:"Nano Banana",subType:o.NANO_BANANA,route:"/nano-banana",poster:p[o.NANO_BANANA]},{name:"Seedream 4.0",subType:o.SEE_DREAM_4,route:"/seedream-4",poster:p[o.SEE_DREAM_4]}],K=[{name:"Seedance 2.5",subType:h.SEE_DANCE_2_5,route:"/seedance-2-5",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/seedance-2.5-ai-tools.webp",isVideo:!0,addon:"new"},{name:"MiniMax H3",subType:h.MINIMAX_H3,route:"/minimax-h3",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/minimax-h3-ai-model-photo.webp",isVideo:!0,addon:"new"},{name:"Seedance 2.0",subType:h.SEE_DANCE_2,route:"/seedance-2",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/seedance-2-video-tools-demo.webp",addon:"hot",isVideo:!0},{name:"Seedance 2.0 Mini",subType:h.SEE_DANCE_2_MINI,route:"/seedance-2-0-mini",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/see-deance-2.0-mini-tool-demo.webp",isVideo:!0},{name:"Seedance 2.0 Fast",subType:h.SEE_DANCE_2_FAST,route:"/seedance-2-0-fast",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/seedance-2.0-fast-ai-model-photo.webp",isVideo:!0},{name:"Seedance 1.5 Pro",subType:h.SEE_DANCE_2,route:"/seedance-1-5-pro",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/seedance-1.5-video-tools-demo.webp",isVideo:!0},{name:"Veo 3.1",subType:h.VEO_3_1,route:"/veo-3-1",poster:"https://cdn.ugcmaker.io/ugcmaker/static/source/2026/veo-3-1-video-tools-demo.webp",isVideo:!0}],z=le(),N=w(""),d=w(z.query.type==="video"?"video":"image"),c=w(null),B=w(null),y=w({}),k=w(0);let M=!1,A;const C=Y(()=>[{label:g(`${_}.aiImage`)||"AI Image",value:"image",icon:"hugeicons:image-01",items:J},{label:g(`${_}.aiVideo`)||"AI Video",value:"video",icon:"hugeicons:video-01",items:K}]),v=Y(()=>{const e=N.value.trim().toLowerCase();return e?C.value.map(t=>({...t,items:t.items.filter(a=>a.name.toLowerCase().includes(e))})).filter(t=>t.items.length>0):C.value});function Q(e){return`${W.value}${e.route}`}function X(e,t){y.value[e]=t}function b(e){return!!e&&e.scrollHeight>e.clientHeight+1}function $(e){const t=B.value?.offsetHeight||0,a=e.getBoundingClientRect().top;if(b(c.value)){const i=c.value,m=i.getBoundingClientRect().top;return Math.max(i.scrollTop+a-m-t,0)}return Math.max(window.scrollY+a-t,0)}function U(){const e=c.value,t=v.value[v.value.length-1]?.value,a=t?y.value[t]:null;if(!b(e)||!a){k.value=0;return}const i=$(a),m=Math.max(e.scrollHeight-e.clientHeight-k.value,0);k.value=Math.max(i-m,0)}
1function Z(){de({action_id:he.UG_WORKSPACE_PV,custom:{detail:location.pathname}})}function j(e){d.value=e,M=!0,A&&window.clearTimeout(A),E(()=>{U(),E(()=>{const t=y.value[e];if(!t){M=!1;return}const a=$(t);b(c.value)?c.value?.scrollTo({top:a,behavior:"smooth"}):window.scrollTo({top:a,behavior:"smooth"}),A=window.setTimeout(()=>{M=!1,f()},700)})})}function f(){if(M)return;const e=v.value;if(!e.length){d.value="";return}const t=B.value?.offsetHeight||0;let a=e[0].value;if(b(c.value)){const i=c.value;if(i.scrollTop>0&&i.scrollTop+i.clientHeight>=i.scrollHeight-4){d.value=e[e.length-1].value;return}const m=i.getBoundingClientRect().top;for(const s of e){const n=y.value[s.value];n&&n.getBoundingClientRect().top-m<=t+32&&(a=s.value)}}else{const i=document.documentElement;if(window.scrollY>0&&window.scrollY+window.innerHeight>=i.scrollHeight-4){d.value=e[e.length-1].value;return}for(const m of e){const s=y.value[m.value];s&&s.getBoundingClientRect().top<=t+32&&(a=m.value)}}d.value=a}function R(){E(()=>{U();const e=c.value;b(e)?e.scrollTop+e.clientHeight>=e.scrollHeight-4&&f():window.scrollY+window.innerHeight>=document.documentElement.scrollHeight-4&&f()})}return q(v,e=>{if(!e.length){d.value="";return}e.some(t=>t.value===d.value)||(d.value=e[0].value),R()},{immediate:!0}),q(N,()=>{E(()=>{b(c.value)?c.value?.scrollTo({top:0}):window.scrollTo({top:0}),f()})}),ie(()=>{Z(),window.addEventListener("resize",R),window.addEventListener("scroll",f,{passive:!0}),R();const e=z.query.type;e&&C.value.some(t=>t.value===e)&&E(()=>j(e))}),re(()=>{A&&window.clearTimeout(A),window.removeEventListener("resize",R),window.removeEventListener("scroll",f)}),(e,t)=>{const a=ce,i=be,m=fe;return r(),u("div",we,[l("h1",xe,x(S(g)("model.aiModels")),1),l("div",{ref_key:"contentRef",ref:c,class:"flex-1 overflow-y-auto overflow-x-hidden nui-slimscroll px-4 md:px-6",onScroll:f},[l("div",{ref_key:"stickyRef",ref:B,class:"sticky top-0 z-10 -mx-4 -mt-4 mb-3 bg-page-bg px-4 pb-6 md:-mx-6 md:px-6 md:pb-7"},[l("div",ye,[l("div",Ae,[(r(!0),u(L,null,V(v.value,s=>(r(),u("button",{key:s.value,class:I(["relative inline-flex shrink-0 items-center gap-2 px-2 py-2 text-xs md:text-sm font-semibold whitespace-nowrap transition-colors",d.value===s.value?"text-primary":"text-body hover:text-heading"]),onClick:n=>j(s.value)},[T(a,{name:s.icon,class:"size-5"},null,8,["name"]),pe(" "+x(s.label)+" ",1),l("span",{class:I(["absolute bottom-0 left-0 right-0 h-0.5 rounded-full transition-colors",d.value===s.value?"bg-primary":"bg-transparent"])},null,2)],10,Ee))),128))]),l("div",Se,[T(i,{modelValue:N.value,"onUpdate:modelValue":t[0]||(t[0]=s=>N.value=s),placeholder:S(g)(`${_}.search_placeholder`)||"Search tools...",size:"sm",ui:{base:"rounded-[20px] h-10 w-full text-sm",root:"w-full"}},{leading:F(()=>[T(a,{name:"hugeicons:search-01",class:"text-body size-5"})]),_:1},8,["modelValue","placeholder"])])])],512),v.value.length>0?(r(),u("div",Te,[(r(!0),u(L,null,V(v.value,s=>(r(),u("section",{key:s.value,ref_for:!0,ref:n=>X(s.value,n),class:"scroll-mt-24"},[l("h2",Ne,x(s.label),1),l("div",ke,[(r(!0),u(L,null,V(s.items,n=>(r(),_e(m,{key:n.subType,to:Q(n),class:"group relative aspect-4/3 flex flex-col text-center"},{default:F(()=>[n.addon?(r(),u("div",Me,[l("span",{class:I([S(ge),S(ve)[n.addon]])}
1,x(n.addon),3)])):H("",!0),l("div",Re,[n.poster?(r(),u("img",{key:0,src:n.poster,alt:n.name,loading:"lazy",class:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform"},null,8,Be)):(r(),u("div",Ce,[T(a,{name:n.icon||"hugeicons:sparkles",class:"w-8 h-8 text-primary"},null,8,["name"])])),t[1]||(t[1]=l("div",{class:"absolute inset-0 bg-linear-to-t from-black/80 via-black/10 to-transparent"},null,-1)),l("div",Le,[l("span",Ve,x(n.name),1)])])]),_:2},1032,["to"]))),128))])]))),128)),l("div",{"aria-hidden":"true",style:ue({height:`${k.value}px`})},null,4)])):H("",!0),v.value.length===0?(r(),u("div",He,[T(a,{name:"hugeicons:search-01",class:"size-12 mx-auto mb-4"}),l("p",Ie,x(S(g)(`${_}.noModelsFound`)),1)])):H("",!0)],544)])}}});export{$e as default};

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.