PageSourceSearch

https://cdn.hailuoai.video/open-hailuo-video-web/prod-en-0.1.869/_next/static/chunks/5168.7d34d974a8f61e02.js

js hailuoai.video collected 2026-09-24 17:56:54 UTC 7,446 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5168,5035,6493],{84683:function(e,t){t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},65412:function(e,t,o){var l=o(8884),s=o(88661),n=o(84683),i=o(12365),r=s.forwardRef(function(e,t){return s.createElement(i.Z,(0,l.Z)((0,l.Z)({},e),{},{ref:t,icon:n.Z}))});t.Z=r},68431:function(e,t,o){var l=o(8884),s=o(88661),n=o(26328),i=o(12365),r=s.forwardRef(function(e,t){return s.createElement(i.Z,(0,l.Z)((0,l.Z)({},e),{},{ref:t,icon:n.Z}))});t.Z=r},66493:function(e,t,o){o.r(t),o.d(t,{default:function(){return g}});var l=o(77804),s=o(88661),n=o(42873),i=o(46153),r=o(54491),d=o(85474),a=o(28733),c=o(8772),u=o(71596),v=o(62148),x=o(99739),f=o(93340),m=o(67463),p=o(13197),h=o(79206),_=o(20745),w=o(83574),b=o(14044),j=o(36825),g=e=>{var t,o,g,I,N,y,k,A,Z;let{onFinish:T,hideOnDetailModalOpen:R=!0}=e,C=(0,h.jD)(),E=(0,h.tv)(),L=(0,i.I0)(),S=(0,a.T)(),[z,U]=(0,s.useState)(!0),V=(0,i.v9)(e=>e.layout.isShowPostModal),D=(0,i.v9)(e=>e.layout.postTargetVideo),[B,G]=(0,s.useState)(c.d.pause),H=(0,s.useRef)(!1),P=(0,_.F2)(C),F=null==D?void 0:D.videoAssetInfo.modelID,M=F&&(null===(t=(0,w.$y)({modelId:F}).parentEntity)||void 0===t?void 0:t.name)||"",O=P&&R,W=()=>{U(!0),L((0,r.VT)(!1)),L((0,r.D)(null)),G(c.d.pause)},$=async()=>{if(D&&!H.current){H.current=!0,(0,f.I)({id:"post_confirm_click",entity_id:D.videoAssetInfo.id,entity_type:D.videoAssetInfo.generatorType});try{await (0,x._n)({videoID:D.videoAssetInfo.id,isDiscoverable:z}),null==T||T(D),W(),u.Z.celebrate((0,l.jsxs)("div",{className:"flex items-center",children:[S("toast_post_succeed"),(0,l.jsx)("div",{className:"ml-2.5 hidden cursor-pointer underline underline-offset-4 sm:block",onClick:()=>{E.push(_.pk),u.Z.clear()},children:S("toast_view_posts")})]}),4e3)}catch(e){e&&(0,v.k0)(e)&&u.Z.error(e.message)}finally{H.current=!1}}};(0,s.useEffect)(()=>{if(V&&D){let e=setTimeout(()=>{G(c.d.play)},100);return()=>{clearTimeout(e)}}},[V,D]),(0,s.useEffect)(()=>{if(!O&&V){let e=()=>{W()};return window.addEventListener("popstate",e),()=>{let t=setTimeout(()=>{window.removeEventListener("popstate",e)},0);t&&(clearTimeout(t),window.removeEventListener("popstate",e))}}},[V,O]);let{tailwindCssStr:q,handleScroll:J}=(0,m.Z)();if(O||!D)return null;let K=D.videoAssetInfo.promptImgURL,Q=null==D?void 0:D.videoAssetInfo.originFiles;return(0,l.jsx)(n.Z,{size:"xl",title:S("share_art_title"),tooltipText:S("share_art_info"),open:V,onCancel:W,onOk:W,okText:S("post_confirm_btn"),cancelText:S("general_cancel"),okButtonProps:{icon:(0,l.jsx)(p.gk,{}),onClick:$,style:{marginBottom:"0px"}},wrapClassName:"post-modal-wrap",children:(0,l.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden sm:h-[395px]",children:[(0,l.jsxs)("div",{className:"h5-hide-scroll flex w-full flex-1 flex-col overflow-y-auto sm:flex-row sm:space-x-4 sm:overflow-hidden",children:[(0,l.jsx)("section",{className:"bg-hl_bg_02 hidden overflow-hidden rounded-[8px] sm:block sm:flex-[4]",children:(0,l.jsx)(d.e9,{state:B,onStateChange:G,url:(null==D?void 0:null===(o=D.videoAssetInfo)||void 0===o?void 0:o.videoURL)||"",cover:null==D?void 0:null===(g=D.videoAssetInfo)||void 0===g?void 0:g.coverURL,loadingIconSize:32,controls:!1})}),(0,l.jsxs)("section",{className:"aspect-video-padding overflow-hidden rounded-[8px] sm:hidden",children:[(0,l.jsx)("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-[10] cursor-pointer",children:(0,l.jsx)(d.e9,{state:B,onStateChange:G,url:(null==D?void 0:null===(I=D.videoAssetInfo)||void 0===I?void 0:I.videoURL)||"",cover:null==D?void 0:null===(N=D.videoAssetInfo)||void 0===N?void 0:N.coverURL,loadingIconSize:32,controls:!1})}),(0,l.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 top-0 overflow-hidden rounded-[8px] group-hover/video-card:rounded-b-none",children:[(null==D?void 0:null===(y=D.videoAssetInfo)||void 0===y?void 0:y.coverURL)&&(0,l.jsx)("img",{src:null==D?void 0:null===(k=D.videoAssetInfo)||void 0===k?void 0:k.coverURL,alt:"".concat(null==D?void 0:null===(A=D.videoAssetInfo)||void 0===A?void 0:A.desc," by Hailuo AI Video Generator"),className:"h-full w-full object-cover"}),(0,l.jsx)("div",{className:"absolute bottom-0 left-0 right-0 top-0 bg-black/20 backdrop-blur-[25px] [-webkit-backdrop-filter:blur(25px)]"})]})]}),(0,l.jsxs)("section",{className:"sm:border-hl_white_04 py-4 sm:h-[395px] sm:flex-[6] sm:overflow-y-auto sm:rounded-[8px] sm:border sm:px-5 sm:py-5 ".concat(q),onScroll:J,children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsx)("h2",{className:"text-hl_text_00 text-[13px] font-[500] opacity-90",children:S("title_prompt")})}),(0,l.jsx)("div",{className:"mt-1 flex overflow-hidden",children:(0,l.jsx)(b.oy,{promptStruct:(0,j.R1)(D.videoAssetInfo),className:"hover-show-scroll text-hl_text_01 overflow-y-scroll text-[13px]"})}),(0,l.jsxs)("div",{className:"mt-3",children:[Q&&Q.length>0?(0,l.jsx)("div",{className:"mb-3 flex gap-2 overflow-x-auto",children:Q.map((e,t)=>{var o;return(0,l.jsx)("div",{className:"relative h-[48px] w-[48px] flex-shrink-0 cursor-pointer overflow-hidden rounded-lg",children:(0,l.jsx)("img",{src:e.url,alt:"".concat(null==D?void 0:null===(o=D.videoAssetInfo)||void 0===o?void 0:o.desc," - Image ").concat(t+1," by Hailuo AI Video Generator"),className:"h-full w-full object-cover object-center transition-all duration-200 hover:scale-110",onClick:()=>{L((0,r.cm)(e.url))}})},e.id||t)})}):K&&(0,l.jsx)("div",{className:"relative mb-3 h-[48px] w-[48px] curs
1or-pointer overflow-hidden rounded-lg",children:(0,l.jsx)("img",{src:K,alt:"".concat(null==D?void 0:null===(Z=D.videoAssetInfo)||void 0===Z?void 0:Z.desc," by Hailuo AI Video Generator"),className:"h-full w-full object-cover object-center transition-all duration-200 hover:scale-110",onClick:()=>{L((0,r.cm)(K))}})}),(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[M&&(0,l.jsx)("span",{className:"bg-hl_white_04 text-hl_text_02 rounded-[6px] px-2 py-1 text-[13px] leading-[16px]",children:M}),!(null==D?void 0:D.videoAssetInfo.useOriginPrompt)&&(0,l.jsx)("span",{className:"bg-hl_white_04 text-hl_text_02 rounded-[6px] px-2 py-1 text-[13px] leading-[16px]",children:S("tag_enable_optimization")}),!!(null==D?void 0:D.videoAssetInfo.resolution)&&(0,l.jsx)("span",{className:"bg-hl_white_04 text-hl_text_02 rounded-[6px] px-2 py-1 text-[13px] leading-[16px]",children:null==D?void 0:D.videoAssetInfo.resolution})]})]})]})]}),(0,l.jsxs)("div",{onClick:()=>U(e=>!e),className:"z-10 mt-3 flex flex-row items-center justify-center sm:absolute sm:bottom-[24px] sm:left-6 sm:mt-0 sm:h-[38px] sm:justify-start",children:[z?(0,l.jsx)(p.Tg,{}):(0,l.jsx)(p.Wo,{}),(0,l.jsx)("span",{className:"text-hl_text_03 ml-1.5 select-none text-[15px]",children:S("post_modal_tip")})]})]})})}},67463:function(e,t,o){var l=o(88661);t.Z=()=>{let e=l.useRef(!1),[t,o]=l.useState("hide-scroll"),s=l.useRef(0);return(0,l.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]),{tailwindCssStr:t,handleScroll:()=>{e.current||(o(""),e.current=!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{e.current=!1,clearTimeout(s.current),o("hide-scroll")},600)}}}}}]);

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.