PageSourceSearch

https://cdn.hailuoai.video/open-hailuo-video-web/prod-en-0.1.876/_next/static/chunks/3885.03130b6fa960e0de.js

js hailuoai.video collected 2026-10-02 03:28:43 UTC 7,102 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3885],{63885:function(e,t,l){l.r(t),l.d(t,{default:function(){return b}});var n=l(77804),i=l(88661),a=l(46153),s=l(79206),o=l(75731),r=l(42873),c=l(31874),d=l(40050),x=l(10162),u=l(6172),p=l(65106),m=l(54491),h=l(28733),v=l(56108),_=l(24271);let f=e=>{let{className:t="",tags:l,starlingKeyMap:a}=e;return 0===l.length?null:(0,n.jsx)("div",{className:"flex flex-row items-center gap-2 ".concat(t),children:l.map((e,t)=>(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("div",{style:{color:(0,p.zE)(e.textColor),backgroundColor:(0,p.xt)(e.tagBgColor)},className:"font-inter leading-16 tracking-0.48px flex w-fit flex-row items-center gap-1 text-nowrap rounded-[32px] px-2 py-[2px] font-[700] sm:px-3",children:[e.iconUrl&&(0,n.jsx)(_.z,{src:(null==e?void 0:e.iconUrl)||"",style:{backgroundColor:(0,p.zE)(e.textColor)},className:"h-4 w-4 pr-5 pr-[10px]",alt:"Hailuo AI Activity Tag Icon"}),e.text&&(0,n.jsx)("span",{className:"font-inter text-[11px] md:text-[12px]",children:(0,p.O2)(a,e.text)})]})},t))})};var y=l(85474),g=l(8772),w=e=>{let{activityData:t}=e,[l,a]=(0,i.useState)(!1),s=(0,i.useRef)(),o=(0,i.useCallback)(()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{a(window.innerWidth<640)},150)},[]);if((0,i.useEffect)(()=>(a(window.innerWidth<640),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),s.current&&clearTimeout(s.current)}),[o]),!t)return null;let r=l?t.h5Video:t.webVideo,c=l?t.h5Banner:t.webBanner;return(0,n.jsx)("div",{className:"activity-media-section",children:r?(0,n.jsx)("div",{className:"video-wrapper",children:(0,n.jsx)(y.e9,{state:g.d.play,url:r.url,cover:r.poster,loadingIconSize:32,showCenterPlayIcon:!1,controls:{onlyHeaderControls:!0,showVoice:r.hasVoice,voiceControlPosition:"bottom-right",display:!0}})}):c?(0,n.jsx)("img",{src:c.url,alt:"AI Video activity banner by Hailuo AI Video Generator"}):null})},j=l(55914),b=()=>{var e,t;let l=(0,h.T)(),_=(0,a.I0)(),y=(0,s.tv)(),g=(0,a.v9)(e=>e.layout.showActivityModal),b=(0,a.v9)(e=>e.layout.activityModalConfig),N=(0,a.v9)(e=>e.user.isLogin),k=(0,a.v9)(e=>e.pay.userType),C=null==b?void 0:b.endTime,M=(0,o.Z)({downTimestamp:null!=C?C:0,onCountDownEnd:()=>{_((0,m.y0)(!1))}}),I=(0,i.useMemo)(()=>b?(0,c.Fg)(k)?b.normalMember:b.vipMember:null,[b,k]),T=(0,a.v9)(e=>e.layout.isShowAnnouncementModalCompleted),A=(0,s.jD)(),H=null!==(e=null==b?void 0:b.freControl)&&void 0!==e?e:864e5,z=null!==(t=null==b?void 0:b.endTime)&&void 0!==t?t:0,E=(0,i.useMemo)(()=>I&&Object.keys(I).length>0&&T,[I,T]),V=(0,i.useMemo)(()=>{var e;let t=null!==(e=null==b?void 0:b.starlingKeyMap)&&void 0!==e?e:{};return e=>(0,p.O2)(t,e)},[null==b?void 0:b.starlingKeyMap]),O=e=>{let t=Date.now();return(!(z>0)||!(t>=z))&&(!e||t-e>H)&&(_((0,m.y0)(!0)),!0)},D=()=>{if(!(null==b?void 0:b.freControl))return!1;let e=Date.now(),{startTime:t,endTime:l}=b;return(!t||!(e<t))&&(!l||!(e>=l))&&N};(0,i.useEffect)(()=>{D()&&(0,u.a)(u.rE.ACTIVITY,O)},[_,E,H,N,z,I,T,A,b]);let S=()=>{g&&((0,u.w$)(u.rE.ACTIVITY,()=>{_((0,m.y0)(!1))}),(0,j.I)({id:"close_".concat(d.tl.ACTIVITY_MODAL)}))},W=e=>{if((0,j.I)({id:"confirm_".concat(d.tl.ACTIVITY_MODAL)}),S(),e.url){y.push(e.url);return}"activityModal"===e.modalType&&_((0,x.vO)(!0))};return!I||(0,p.gg)(A)?null:(0,n.jsx)(r.Z,{open:g,zIndex:9999,width:932,footer:null,destroyOnClose:!0,maskClosable:!1,onCancel:S,classNames:{wrapper:"activity-modal-wrapper"},children:(0,n.jsxs)("div",{className:"activity-modal-container",children:[(0,n.jsx)(w,{activityData:I}),(0,n.jsxs)("div",{className:"activity-content-wrapper",children:[(null==b?void 0:b.showCountdown)&&(0,n.jsx)("div",{className:"activity-tags-section",children:M&&(0,n.jsxs)("span",{className:"bg-hl_alpha_12 inline-flex items-center gap-1 rounded-[32px] px-4 py-[6px] text-[12px] font-[700] leading-normal tracking-[0.48px]",children:[(0,n.jsx)("span",{children:(0,n.jsx)(v.zk,{})}),(0,n.jsxs)("span",{className:"flex flex-wrap items-center gap-1",children:[(0,n.jsx)("span",{className:"text-hl_text_00 cl_hl_H9_M",children:V(b.countdownKey)}),(0,n.jsx)("span",{className:"text-hl_brand_00 font-[Outfit] text-[12px] font-[700] tracking-[0.48px]",children:M.map((e,t)=>"".concat(e).concat(o.y[t])).join(" ")})]})]})}),!(null==b?void 0:b.showCountdown)&&(0,n.jsx)(f,{className:"flex-wrap",tags:(null==I?void 0:I.tags)||[],starlingKeyMap:(null==b?void 0:b.starlingKeyMap)||{}}),(null==I?void 0:I.modalTitle)&&(0,n.jsx)("h1",{className:"activity-title text-hl_text_00  md:cl_hl_H1_B hl_cl_outfit text-[18px] font-[700]",children:V(I.modalTitle)}),(null==I?void 0:I.intro)&&(0,n.jsx)("p",{className:"text-hl_text_02 cl_hl_H9_R activity-intro",children:V(I.intro)}),(0,n.jsx)("div",{className:"activity-content-scrollable",children:(null==I?void 0:I.content)&&I.content.length>0&&(0,n.jsx)("div",{className:"space-y-3 sm:space-y-4",children:I.content.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-start gap-1",children:[(0,n.jsx)("div",{className:"mt-[1px] h-5 w-5 flex-shrink-0",children:(0,n.jsx)(v.Iy,{})}),(0,n.jsx)("div",{className:"flex flex-1 flex-col gap-1",children:e.title&&(0,n.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"text-hl_text_00 cl_hl_H8_M sm:cl_hl_H6_M",children:V(e.title)}),e.desc&&(0,n.jsx)("p",{className:"text-hl_text_02 cl_hl_H9_R activity-desc-hint mt-1 text-left opacity-80",children:V(String(e.desc))})]}),e.tag&&(0,n.jsx)("span",{className:"border-hl_text_01 text-hl_text_00 cl_hl_H10_M mt-[2px] whitespace-nowrap rounded-[100px] border-[0.8px] px-[9px] py-[2px]",children:V(e.tag)})]})})]},t))})}),(()=>{var e,t;let i=null==I?void 0:null===(e=I.actions)||void 0===e?void 0:e.find(e=>"confirm"===e.type),a=null==I?void 0:null===(t=I.actions)||void 0===t?void 0:t.find(e=>"dismiss"===e.type);return i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:"bg-hl_brand_00 text-hl_text_06 mt-4 flex h-[46px] w-full items-center justify-center rounded-[100px] px-4 text-[16px] font-[600] leading-[20px] hover:opacity-80",style:{minHeight:"46px"},onClick:()=>W(i),children:i.text?V(i.text):l("announcement_button_try_it_now")}),a&&(0,n.jsx)("button",{className:"bg-hl_bg_06 text-hl_text_00 mt-3 flex h-[46px] w-full items-center justify-center rounded-[100px] px-4 text-[16px] font-[600] leading-[20px] hover:opacity-80",style:{minHeight:"46px"},onClick:S,children:a.text?V(a.text):l("button_cancel")})]}):null})()]})]})})}},24271:function(e,t,l){l.d(t,{z:function(){return a}});var n=l(11719),i=l(77804);l(88661);let a=e=>{let{src:t,colorClassName:l="bg-hl_brand_btn",width:a=16,height:s=16,className:o="",alt:r="icon",style:c}=e;return(0,i.jsx)("div",{className:"".concat(l," ").concat(o),style:(0,n._)({width:"".concat(a,"px"),height:"".concat(s,"px"),WebkitMaskImage:"url(".concat(t,")"),maskImage:"url(".concat(t,")"),WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"},c),role:"img","aria-label":r})};t.Z=a}}]);

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.