PageSourceSearch

https://rizzai-dapp-landing-production.up.railway.app/_next/static/chunks/276-de0b578ecc47f138.js

js rizzai-dapp-landing-production.up.railway.app collected 2026-10-03 12:15:09 UTC 11,116 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{52514:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(57437);function l(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M5.00454 2.09935C4.11719 1.52891 2.9502 2.16603 2.9502 3.22092V12.7787C2.9502 13.8336 4.11719 14.4707 5.00454 13.9003L12.4384 9.12138C13.2548 8.59653 13.2548 7.40309 12.4384 6.87824L5.00454 2.09935Z",fill:"white"})})}},54302:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(57437),l=n(30982),o=n(20703),i=n(2265),a=n(75504);function s(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M4.6665 13.3337V2.66699M11.3332 13.3337V2.66699",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}var c=n(52514),d=n(575),u=e=>{let{videoUrl:t,setIsImageLoaded:n,isPreviewVideo:u=!1,prompt:h,handleCopyPrompt:p,handleDownload:v}=e,f=(0,l.useTranslations)("ImageFullPreview"),m=(0,i.useRef)(null),[x,w]=(0,i.useState)(!0),[g,b]=(0,i.useState)(!u),j=(0,i.useRef)(null),[y,N]=(0,i.useState)(!1),C=e=>{e.preventDefault(),e.stopPropagation();let t=m.current;t&&(j.current&&(clearTimeout(j.current),j.current=null),t.paused||t.ended?(t.play(),w(!0),b(!0),j.current=setTimeout(()=>{b(!1)},500)):(t.pause(),w(!1),b(!0)))};return(0,r.jsxs)("div",{className:"absolute size-full cursor-pointer",children:[(0,r.jsx)("video",{ref:m,src:t,autoPlay:u,className:"size-full rounded-lg object-cover object-top",onClick:e=>{u&&C(e)},onEnded:()=>{m.current&&(m.current.currentTime=0),b(!0)},onLoadedData:()=>null==n?void 0:n(!0)}),u&&(0,r.jsxs)("div",{className:"absolute bottom-0 w-full p-4 text-right",children:[(0,r.jsx)("p",{className:"text-left ".concat(!y&&"line-clamp-2 text-ellipsis"),children:h}),(0,r.jsx)(d.z,{variant:"ghost",className:"h-10 p-0 text-brand-purple-01 ".concat(!h&&"hidden"),onClick:()=>N(!y),children:f(y?"show_less":"show_more")}),(0,r.jsxs)("div",{className:"flex w-full gap-3",children:[(0,r.jsxs)(d.z,{variant:"outline",className:"h-9 flex-1 rounded-full border-2 border-white",onClick:p,children:[(0,r.jsx)(o.default,{src:"/icons/chat/profile/clipboard.svg",width:16,height:16,alt:"copy"}),f("copy_prompt")]}),(0,r.jsxs)(d.z,{variant:"outline",className:"h-9 flex-1 rounded-full border-2 border-white",onClick:v,children:[(0,r.jsx)(o.default,{src:"/icons/my-ai/download.svg",alt:"",width:16,height:16}),f("download")]})]})]}),(0,r.jsx)("button",{onClick:e=>C(e),className:(0,a.Z)("absolute inset-0 m-auto flex size-16 items-center justify-center rounded-full border-[1.6px] border-[rgba(255,255,255,0.09)] bg-[#323436a3] text-2xl text-white backdrop-blur-lg transition-opacity duration-500",g?"opacity-100":"opacity-0"),children:x?(0,r.jsx)(c.Z,{}):(0,r.jsx)(s,{})})]})}},30276:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(57437),l=n(30982),o=n(20703),i=n(2265),a=n(38371),s=n(30298),c=n(84247),d=n(80131),u=n(97481),h=n(52439),p=n(54302),v=n(575),f=n(66330),m=n(73577);function x(e){let{isOpen:t,setIsOpen:n,zoomImage:x,imageArray:w=[],setImageToShow:g=()=>{},imagesData:b=[],generateImageResponse:j,characterSelected:y}=e,N=(0,l.useTranslations)("ImageFullPreview"),C=(0,h.t)(),[k,S]=(0,i.useState)(0),[z,L]=(0,i.useState)(0),[_,E]=(0,i.useState)(!1),D=(0,c.CG)(e=>e.videoGeneration.isGenVideoDone),[T,Z]=(0,i.useState)(!1),F=null==b?void 0:b.find(e=>e.url===x),P=e=>{let t=w.indexOf(x),n="next"===e?t===w.length-1?0:t+1:0===t?w.length-1:t-1;E(!1),g(w[n])},M=x.toLowerCase().endsWith(".mp4")?"video":"image";(0,i.useEffect)(()=>{if(!t||w.length<2)return;let e=e=>{e.repeat||("ArrowRight"===e.key&&(e.preventDefault(),P("next")),"ArrowLeft"===e.key&&(e.preventDefault(),P("prev")))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,w,x]);let G=()=>{let e=(null==F?void 0:F.prompt)||(null==j?void 0:j.data[0].prompt);navigator.clipboard.writeText(null!=e?e:""),s.toast.success(N("prompt_copied"))},R=async()=>{let e=document.createElement("a");e.href="video"===M?x:await (0,d.B)(x),e.download=function(){let e=(0,u.J)();return"DeHouse_".concat((null==F?void 0:F.characterName)||(null==y?void 0:y.nickname),"_").concat(e)}(),document.body.appendChild(e),e.click(),document.body.removeChild(e)};return(0,r.jsx)(f.Z,{show:t,onClose:()=>n(!1),className:"overflow-hidden",children:(0,r.jsxs)("div",{className:"relative",onTouchStart:e=>{let t=e.touches[0].clientX;S(t),L(t)},onTouchMove:e=>{L(e.touches[0].clientX)},onTouchEnd:()=>{k-z>50?P("next"):z-k>50&&P("prev")},children:[(0,r.jsx)("div",{className:"relative my-10 h-[90vh] w-full overflow-hidden rounded-2xl md:w-[560px]",children:D?(0,r.jsx)(m.Z,{isFullscreenPreview:!0}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{src:"/icons/common/close-circle.svg",alt:"",className:"absolute right-4 top-4 z-[1000] cursor-pointer rounded-lg object-cover",onClick:()=>n(!1),width:32,height:32}),(0,r.jsx)(a.E.div,{initial:{opacity:0}
1,animate:_?{opacity:1}:{},exit:{opacity:0},transition:{duration:.5},className:"relative size-full",children:"video"===M?(0,r.jsx)(p.Z,{videoUrl:x,setIsImageLoaded:E,isPreviewVideo:!0,prompt:null==F?void 0:F.prompt,handleCopyPrompt:G,handleDownload:R}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{src:x,alt:"",fill:!0,className:"object-cover object-top",onLoadingComplete:()=>E(!0)}),(0,r.jsxs)("div",{className:"absolute bottom-0 w-full p-4 text-right",children:[(0,r.jsx)("p",{className:"text-left ".concat(!T&&"line-clamp-2 text-ellipsis"),children:(null==F?void 0:F.prompt)||(null==j?void 0:j.data[0].prompt)}),(0,r.jsx)(v.z,{variant:"ghost",className:"h-10 p-0 text-brand-purple-01 \n                          ".concat(!(null==F?void 0:F.prompt)&&!(null==j?void 0:j.data[0].prompt)&&"hidden"),onClick:()=>Z(!T),children:T?N("show_less"):N("show_more")}),(0,r.jsxs)("div",{className:"flex w-full gap-3",children:[(0,r.jsxs)(v.z,{variant:"outline",className:"h-9 flex-1 rounded-full border-2 border-white",onClick:G,children:[(0,r.jsx)(o.default,{src:"/icons/chat/profile/clipboard.svg",width:16,height:16,alt:"copy"}),N("copy_prompt")]}),(0,r.jsxs)(v.z,{variant:"outline",className:"h-9 flex-1 rounded-full border-2 border-white",onClick:R,children:[(0,r.jsx)(o.default,{src:"/icons/my-ai/download.svg",alt:"",width:16,height:16}),N("download")]})]})]})]})},x)]})}),!D&&w.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute -right-16 top-1/2 z-[1000] flex size-[50px] -translate-y-1/2 cursor-pointer items-center justify-center rounded-full ".concat(C&&"!right-10 border border-white/20 bg-[rgba(50,52,54,0.25)] object-cover backdrop-blur-[1px]"),children:(0,r.jsx)(o.default,{width:15,height:30,onClick:()=>P("next"),src:"/icons/common/right-arrow.svg",alt:""})}),(0,r.jsx)("div",{className:"absolute -left-16 top-1/2 z-[1000] flex size-[50px] -translate-y-1/2 rotate-180 cursor-pointer items-center justify-center rounded-full ".concat(C&&"!left-10 border border-white/20 bg-[rgba(50,52,54,0.25)] object-cover backdrop-blur-[1px]"),children:(0,r.jsx)(o.default,{width:15,height:30,onClick:()=>P("prev"),src:"/icons/common/right-arrow.svg",alt:""})})]})]})})}},73577:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(57437),l=n(30982),o=n(20703),i=n(2265),a=n(75504),s=n(30298),c=n(84247),d=n(575);function u(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M5.00454 2.09935C4.11719 1.52891 2.9502 2.16603 2.9502 3.22092V12.7787C2.9502 13.8336 4.11719 14.4707 5.00454 13.9003L12.4384 9.12138C13.2548 8.59653 13.2548 7.40309 12.4384 6.87824L5.00454 2.09935Z",fill:"white"})})}function h(e){var t;let{isFullscreenPreview:n}=e,h=(0,l.useTranslations)("ImageFullPreview"),p=(0,i.useRef)(null),[v,f]=(0,i.useState)(!1),m=(0,c.CG)(e=>e.videoGeneration.videoRes),x=(0,c.CG)(e=>e.videoGeneration.videoPrompt),[w,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>f(!0),n=()=>f(!1),r=()=>{e.currentTime=0,f(!1)};return e.addEventListener("play",t),e.addEventListener("pause",n),e.addEventListener("ended",r),()=>{e.removeEventListener("play",t),e.removeEventListener("pause",n),e.removeEventListener("ended",r)}},[]);let b=async()=>{var e;let t=document.createElement("a");t.href=(null==m?void 0:null===(e=m.data)||void 0===e?void 0:e.url)||"",t.download="Dehouse_download",document.body.appendChild(t),t.click(),document.body.removeChild(t)};return(0,r.jsxs)("div",{className:"absolute inset-0 overflow-hidden rounded-2xl",children:[(0,r.jsx)("video",{ref:p,className:"size-full object-cover object-top",src:null==m?void 0:null===(t=m.data)||void 0===t?void 0:t.url,muted:!0,playsInline:!0}),n&&(0,r.jsxs)("div",{className:"absolute bottom-0 z-[1000] w-full p-4 text-right",children:[(0,r.jsx)("p",{className:"text-left ".concat(!w&&"line-clamp-2 text-ellipsis"),children:x}),(0,r.jsx)(d.z,{variant:"ghost",className:"h-10 p-0 text-brand-purple-01 ".concat(!x&&"hidden"),onClick:()=>g(!w),children:w?h("show_less"):h("show_more")}),(0,r.jsxs)("div",{className:"flex w-full gap-3",children:[(0,r.jsxs)(d.z,{variant:"outline",className:"h-9 flex-1 rounded-full border-2 border-white",onClick:()=>{navigator.clipboard.writeText(null!=x?x:""),s.toast.success(h("prompt_copied"))},children:[(0,r.jsx)(o.default,{src:"/icons/chat/profile/clipboard.svg",width:16,height:16,alt:"copy"}),h("copy_prompt")]}),(0,r.jsxs)(d.z,{variant:"outline",className:"h-9 flex-1 rounded-full border-2 border-white",onClick:b,children:[(0,r.jsx)(o.default,{src:"/icons/my-ai/download.svg",alt:"",width:16,height:16}),h("download")]})]})]}),(0,r.jsx)("button",{onClick:()=>{let e=p.current;e&&(e.paused||e.ended?e.play().catch(e=>{console.error("Video failed to play:",e)}):e.pause())},className:(0,a.Z)("absolute inset-0 z-[999] flex items-center justify-center"),children:!v&&(0,r.jsx)("div",{className:"flex size-16 items-center justify-center rounded-full border-[1.6px] border-[rgba(255,255,255,0.09)] bg-[#323436a3]",children:(0,r.jsx)(u,{})})})]})}},80131:function(e,t,n){function r(e,t){let n=e.split(","),r=n[0].match(/:(.*?);/),l=r?r[1]:"image/png",o=atob(n[1]),i=o.length,a=new Uint8Array(i);for(;i--;
1)a[i]=o.charCodeAt(i);return new File([a],t,{type:l})}async function l(e){let t=await fetch(e).then(e=>e.blob());return URL.createObjectURL(t)}n.d(t,{B:function(){return l},L:function(){return r}})},97481:function(e,t,n){n.d(t,{J:function(){return l},p:function(){return r}});let r=e=>{if(!e)return"";let t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),l=t.getFullYear();return"".concat(n,"/").concat(r,"/").concat(l)};function l(){let e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),l=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),i=String(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"_").concat(l).concat(o).concat(i)}}}]);

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.