PageSourceSearch

https://web-static3.lovart.ai/lovart_prd/static/_next/static/chunks/2032k-wwkfe70.js

js lovart.ai collected 2026-10-01 12:18:12 UTC 13,379 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,125348,e=>{"use strict";var t,s=e.i(820967);function l(){return(l=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 18 18"},e),t||(t=s.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m6 7.5 2.602 2.602c.22.22.576.22.796 0L12 7.5"})))}])},308119,e=>{"use strict";var t,s=e.i(820967);function l(){return(l=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),t||(t=s.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m7.5 5 5 5-5 5"})))}])},858974,e=>{"use strict";var t=e.i(21590),s=e.i(617739),l=e.i(294237),a=e.i(811674);let n=(0,l.cva)("inline-flex items-center justify-center rounded-[999px] whitespace-nowrap transition-all duration-200 ease-out disabled:pointer-events-none outline-none focus-visible:ring-2 focus-visible:ring-offset-2 cursor-pointer",{variants:{variant:{primary:"bg-bg-invert hover:bg-bg-invert-hover disabled:bg-bg-overlay-l1 text-text-invert disabled:text-text-disabled",secondary:"border border-border-contrast border-solid hover:bg-bg-overlay-l1 disabled:border-border-neutral-l3 text-text-default disabled:text-text-disabled",tertiary:"bg-bg-overlay-l2 hover:bg-bg-overlay-l3 disabled:bg-bg-overlay-l1 text-text-default disabled:text-text-disabled"},isHero:{true:"!h-[52px] 2xl:!h-[60px] !min-w-[100px] 2xl:!min-w-[120px] !px-[17px] 2xl:!px-[24px]"},size:{l:"h-[40px] md:h-[52px] 2xl:h-[60px] min-w-[100px] 2xl:min-w-[120px] px-[12px] md:px-[17px] 2xl:px-[24px]",m:"h-[52px] min-w-[100px] px-[17px]",s:"h-[32px] md:h-[40px] min-w-[72px] md:min-w-[80px] px-[9px] md:px-[12px]",xs:"h-[32px] min-w-[72px] px-[9px]"}},defaultVariants:{variant:"primary",size:"l"}}),r=(0,l.cva)("leading-normal",{variants:{isHero:{true:"!font-sans !font-medium !text-[16px] 2xl:!text-[18px]"},size:{l:"font-sans font-medium text-[15px] md:text-[16px] 2xl:text-[18px]",m:"font-sans font-medium text-[16px]",s:"font-sans font-normal text-[14px] md:text-[15px]",xs:"font-sans font-normal text-[14px]"}}}),i=(0,l.cva)("",{variants:{size:{l:"px-[5px] md:px-[6px] 2xl:px-[8px]",m:"px-[6px]",s:"px-[4px] md:px-[5px]",xs:"px-[4px]"}}});e.s(["Button",0,function({className:e,variant:l="primary",size:o="l",isHero:x=!1,asChild:d=!1,children:c,hasLeadIcon:p,...u}){let m=d?s.Slot:"button",f=o&&["l","m","s","xs"].includes(o)?o:"l",h=(0,a.cn)(n({variant:l,size:f,isHero:x}),e);return(0,t.jsx)(m,{"data-slot":"button",className:h,...u,children:(0,t.jsx)("div",{className:(0,a.cn)("flex items-center justify-center",i({size:f})),children:(0,t.jsx)("div",{className:(0,a.cn)(r({size:f,isHero:x})),children:c})})})},"buttonVariants",0,n])},850952,e=>{"use strict";var t=e.i(21590),s=e.i(971211),l=e.i(715074),a=e.i(411129),n=e.i(505098),r=e.i(858974),i=e.i(720530);e.s(["default",0,function({mobile:e=!1}){let{t:o}=(0,l.useI18n)(),{openLogin:x}=(0,n.useLogin)(),d=(0,s.useIsLogin)(),c=(0,a.useRouter)(),p=d?()=>{c.push("/home")}:()=>{(0,i.reportEvent)("lovart.get.started.button.click",{source:"header",text:"sign_up"}),x({closeOnClickOutside:!1,redirectUrl:"/home"})},u=o(d?"openApp":"singUp");return e?(0,t.jsx)(r.Button,{variant:"primary",size:"s",className:"h-[32px]! min-w-[72px]! px-[9px]!","data-track-id":"nav_register_button",onClick:p,children:u}):(0,t.jsx)(r.Button,{variant:"primary",size:"s","data-track-id":"nav_register_button",onClick:p,children:u})}])},690558,186801,141521,960421,846499,e=>{"use strict";var t,s=e.i(850952),l=e.i(21590),a=e.i(82033),n=e.i(645624),r=e.i(820967),i=e.i(715074),o=e.i(587939);function x(){return(x=Object.assign.bind()).apply(null,arguments)}let d=function(e){return r.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t||(t=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.2,d:"M12 10V4m0 0H6m6 0-7.833 7.833"})))};var c=e.i(125348),p=e.i(129633);function u({isFloating:e}){let{t}=(0,i.useI18n)(),[s,a]=(0,r.useState)(!1),x=(0,r.useRef)(null),m=(0,r.useId)();return(0,l.jsxs)("div",{className:"relative",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||a(!1)},onKeyDown:e=>{"Escape"===e.key&&(a(!1),x.current?.focus())},children:[(0,l.jsxs)("button",{ref:x,type:"button","aria-expanded":s,"aria-controls":m,className:"flex cursor-pointer items-center gap-0.5",onClick:()=>a(e=>!e),children:[t("refresh_header_solutions"),(0,l.jsx)(c.default,{className:"text-icon-default size-[18px] shrink-0"})]}),(0,l.jsx)("div",{id:m,className:(0,o.cn)("absolute left-1/2 hidden -translate-x-1/2 justify-center transition-[padding] duration-500 ease-in-out md:flex",e?"pt-[21px]":"pt-[17px]",s?"pointer-events-auto":"pointer-events-none"),children:s?(0,l.jsx)("div",{className:"bg-bg-base-secondary/93 border-border-neutral-l1 shadow-normal rounded-lo-radius-16 flex translate-y-0 flex-col gap-0 border p-1 o
1pacity-100 backdrop-blur-sm transition-all duration-150 ease-out",children:p.SOLUTIONS_ITEMS.map(e=>{let s=e.icon;return(0,l.jsxs)(n.CustomLink,{href:e.href,className:"group hover:bg-bg-overlay-l1 rounded-lo-radius-12 flex w-[240px] flex-col gap-0 p-3 transition-colors duration-100 ease-out",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)(s,{className:"text-icon-default group-hover:text-icon-default size-4 shrink-0 transition-colors duration-100 ease-out"}),(0,l.jsx)("p",{className:"text-lo-body-lg-strong text-text-default group-hover:text-text-default transition-colors duration-100 ease-out",children:t(e.titleKey)}),(0,l.jsx)(d,{className:"text-icon-default size-3 shrink-0 opacity-0 transition-opacity duration-100 ease-out group-hover:opacity-100"})]}),(0,l.jsx)("p",{className:"text-lo-body-sm text-text-tertiary whitespace-nowrap",children:t(e.descriptionKey)})]},e.id)})}):null})]})}e.s(["default",0,function({navItems:e,isFloating:t}){return(0,l.jsx)("div",{className:"text-text-default hidden items-center gap-10 text-[14px] md:flex xl:gap-15",children:e.map((e,s)=>(0,l.jsxs)("span",{className:"contents",children:[(0,l.jsx)(n.CustomLink,{href:e.href,target:e.target,rel:e.rel,children:e.label}),0===s&&!a.isCN&&(0,l.jsx)(u,{isFloating:t})]},e.label))})}],186801);let m=(0,r.forwardRef)(({isOpen:e},t)=>(0,l.jsxs)("svg",{ref:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-text-default absolute h-5 w-5",style:{transformOrigin:"center"},children:[(0,l.jsx)("path",{className:"line-top",d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,l.jsx)("path",{className:"line-mid",d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,l.jsx)("path",{className:"line-bottom",d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}));m.displayName="MenuIcon",e.s(["default",0,m],141521);var f=e.i(308119),h=e.i(492662);e.s(["default",0,function({isOpen:e,isSubmenuOpen:t,onToggleSubmenu:s,onClose:r,menuOverlayRef:o,submenuRef:x,chevronRef:d,navItems:c}){let{t:u}=(0,i.useI18n)();return(0,l.jsx)("div",{ref:o,className:`bg-bg-base-secondary fixed inset-0 z-998 block overflow-y-auto pt-[120px] md:hidden ${e?"pointer-events-auto":"pointer-events-none"}`,style:{opacity:0},children:(0,l.jsxs)("div",{className:"flex flex-col gap-10 px-5",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[c[0]&&(0,l.jsx)(n.CustomLink,{href:c[0].href,onClick:r,className:"text-text-default font-sans text-[32px] leading-none font-normal",children:c[0].label}),!a.isCN&&(0,l.jsxs)("div",{className:"flex flex-col gap-0",children:[(0,l.jsxs)("button",{type:"button",onClick:s,className:"flex cursor-pointer items-center justify-between",children:[(0,l.jsx)("span",{className:"text-text-default font-sans text-[32px] leading-none font-normal",children:u("refresh_header_solutions")}),(0,l.jsx)(f.default,{ref:d,className:"text-text-default h-8 w-8 p-1"})]}),(0,l.jsx)("div",{ref:x,className:"overflow-hidden",style:{height:0,opacity:0},children:(0,l.jsx)("div",{className:"flex flex-col gap-6 pt-6 pb-4",children:p.SOLUTIONS_ITEMS.map(e=>(0,l.jsxs)(n.CustomLink,{href:e.href,onClick:r,className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-text-default font-sans text-[20px] leading-none font-medium",children:u(e.titleKey)}),(0,l.jsx)("span",{className:"text-text-tertiary font-sans text-[15px] leading-normal font-normal",children:u(e.descriptionKey)})]},e.id))})})]}),c.slice(1).map(e=>(0,l.jsx)(n.CustomLink,{href:e.href,target:e.target,rel:e.rel,onClick:r,className:"text-text-default font-sans text-[32px] leading-none font-normal",children:e.label},e.label))]}),(0,l.jsx)("div",{className:"border-border-neutral-l2 border-t py-5",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-text-secondary font-sans text-base leading-normal font-normal",children:u("refresh_theme")}),(0,l.jsx)(h.default,{className:"flex!"})]})})]})})}],960421),e.s([],690558),e.s(["AuthButton",()=>s.default],846499)},327507,e=>{"use strict";var t=e.i(21590),s=e.i(820967),l=e.i(107783),a=e.i(153848),n=e.i(645624),r=e.i(858974);let i=e=>e?(0,a.default)(e).format("MMM D, YYYY"):"--";e.s(["default",0,function({initialList:e,initialHasMore:a,lang:o,allNewsTitle:x,noM
1oreText:d,loadingText:c,viewMoreText:p}){let[u,m]=(0,s.useState)(e),[f,h]=(0,s.useState)(a),[g,v]=(0,s.useState)(1),[b,j]=(0,s.useState)(!1),w=u[0],N=u.slice(1),y=(0,s.useCallback)(()=>{let e=g+1;j(!0),fetch(`/api/sanity/news?page=${e}&pageSize=9&language=${encodeURIComponent(o)}`).then(e=>e.json()).then(t=>{let s=t.list??[];s.length>0?(m(e=>[...e,...s]),h(!!t.hasMore),v(e)):h(!1)}).catch(e=>{console.error("Failed to load more news:",e)}).finally(()=>{j(!1)})},[g,o]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{className:"bg-bg-base-default flex w-full flex-col items-center overflow-hidden pt-0 pb-[90px]",children:w?(0,t.jsxs)(n.CustomLink,{href:`/news/${w.slug}`,className:"mx-auto flex w-full max-w-[1400px] flex-col gap-5 overflow-hidden px-5 md:grid md:grid-cols-10 md:gap-[20px] md:px-[32px] lg:px-[40px] xl:px-[60px]",rel:"noopener noreferrer",children:[(0,t.jsx)("div",{className:"bg-bg-overlay-l2 col-span-6 aspect-5/3 w-full max-w-[730px] shrink-0 overflow-hidden rounded-[4px] md:rounded-[8px]",children:w.coverUrl?(0,t.jsx)("img",{src:w.coverUrl,alt:w.title,className:"h-full w-full object-cover",loading:"eager"}):(0,t.jsx)("div",{className:"bg-bg-overlay-l1 h-full w-full"})}),(0,t.jsxs)("div",{className:"col-span-4 flex flex-1 flex-col gap-5 whitespace-pre-wrap md:gap-[20px] md:px-5",children:[(0,t.jsx)("p",{className:"text-text-tertiary font-mono text-[14px] leading-[1.1] tracking-[0.02em] uppercase lg:text-[16px]",children:i(w.releaseDate)}),(0,t.jsx)("h2",{className:"font-serif-deck text-text-default text-[24px] leading-[1.3] lg:text-[32px]",children:w.title}),(0,t.jsx)("p",{className:"text-text-tertiary font-sans text-[15px] leading-[1.4] lg:text-[17px]",children:w.description})]})]}):(0,t.jsx)("div",{className:"text-text-tertiary mx-auto w-full max-w-[1400px] px-5 pb-[40px] text-center text-[14px] md:px-[32px] md:text-[16px] lg:px-[40px] xl:px-[60px]",children:d})}),N.length>0&&(0,t.jsxs)("section",{className:"flex w-full flex-col items-center gap-[60px]",children:[(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1400px] flex-col gap-[60px] px-5 md:px-[32px] lg:px-[40px] xl:px-[60px]",children:[(0,t.jsx)("h2",{className:"font-serif-deck text-text-default text-[32px] leading-[1.3] md:text-[40px]",children:x}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-10 sm:gap-8 lg:grid-cols-2 lg:gap-10",children:N.map(e=>(0,t.jsx)("article",{children:(0,t.jsxs)(n.CustomLink,{href:`/news/${e.slug}`,className:"flex flex-col gap-6 sm:flex-row sm:gap-8",rel:"noopener noreferrer",children:[(0,t.jsx)("div",{className:"bg-bg-overlay-l2 aspect-23/15 w-full shrink-0 overflow-hidden rounded-[4px] sm:w-[230px] md:w-[230px]",children:e.coverUrl?(0,t.jsx)("img",{src:(0,l.convert2CompressedUrl)(e.coverUrl,600),alt:e.title,className:"h-full w-full object-cover",loading:"lazy"}):(0,t.jsx)("div",{className:"bg-bg-overlay-l1 h-full w-full"})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-text-tertiary font-mono text-[12px] leading-[1.1] tracking-[0.02em] whitespace-pre-wrap uppercase md:text-[14px]",children:i(e.releaseDate)}),(0,t.jsx)("h3",{className:"font-serif-deck text-text-default line-clamp-3 text-[16px] leading-[130%] whitespace-pre-wrap md:text-[20px]",children:e.title}),(0,t.jsx)("p",{className:"text-text-tertiary line-clamp-2 font-sans text-[13px] leading-[1.4] whitespace-pre-wrap md:text-[16px]",children:e.description})]})]})},e._id))})]}),f&&(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)(r.Button,{variant:"tertiary",size:"l",onClick:y,disabled:b,children:b?c:p})})]})]})}])}]);

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.