PageSourceSearch

https://static-cos.mureka.ai/cos-prod/mureka/static/js/index-Dy_Ub1Pr.js

js mureka.ai collected 2026-09-24 09:23:34 UTC 5,739 bytes, 1 lines download raw bytes

1import{_ as e,h as a,ah as l,g as i}from"./index-DIXwfVMT.js";import{r as o,c as s,f as n,n as v,D as r,w as u,x as t,B as d,G as p,u as c,O as h,P as _,J as b,H as y,au as m,aA as f,y as g}from"./vendor-core-DockhpYX.js";import{j as k,$ as w}from"./i18n-misc-CJ8HFqLU.js";import{o as j}from"./pageTools-BKPu1hJC.js";import"./axios-C-1G2k3o.js";import"./element-plus-CADUlNlv.js";import"./@ffmpeg-CcTuH-sP.js";import"./@paypal-DitgUCQS.js";const x={class:"video-share-page"},C=["aria-label"],V={class:"video-share-topbar"},M=["aria-label"],R={key:0,class:"video-share-app-banner"},A=["src"],F={class:"video-share-app-copy"},P=["aria-label"],$=["aria-label"],z=["src","poster"],B={key:0,class:"video-share-play-indicator","aria-hidden":"true"},L={key:0,class:"video-share-spinner"},S={key:1,class:"video-share-state"},T={key:0,class:"video-share-spinner video-share-state-spinner"},I=e({__name:"index",setup(e){const I=f(),N=m(),D=o(null),E=o(null),O=o(null),U=o({width:"100%",height:"100%"}),G=o(null),W=o(!1),H=o(!1),J=o(!1),K=o(!1),q=o(!0),Q=k("/mureka/icons/sys-favicon-new-73992826.webp"),X=s(()=>{var e;return(null==(e=I.params)?void 0:e.shareKey)||""}),Y=s(()=>{var e;return oe(null==(e=O.value)?void 0:e.video_url)}),Z=s(()=>{var e,a;return oe((null==(e=O.value)?void 0:e.video_cover_url)||(null==(a=O.value)?void 0:a.cover_url))}),ee=s(()=>{var e,a,l;const i=Number((null==(e=O.value)?void 0:e.video_width)||0),o=Number((null==(a=O.value)?void 0:a.video_height)||0);if(i>0&&o>0)return i/o;const[s,n]=String((null==(l=O.value)?void 0:l.aspect_ratio)||"").split(":").map(Number);return s>0&&n>0?s/n:9/16}),ae=s(()=>U.value),le=s(()=>K.value?ie.value.videoUnavailable:ie.value.noVideo),ie=s(()=>({pageTitle:w("video.video_share_page_title")||"Mureka Video",pageLabel:w("video.video_share_page_label")||"Mureka video share",appTitle:w("video.video_share_app_title")||"Mureka - AI Songs",appSubtitle:w("video.video_share_app_subtitle")||"AI music and song generator",getApp:w("video.video_share_get_app")||"Get App",back:w("video.video_share_back")||"Back",closeBanner:w("video.video_share_close_banner")||"Close app banner",playVideo:w("video.video_share_play_video")||"Play video",pauseVideo:w("video.video_share_pause_video")||"Pause video",videoUnavailable:w("video.video_share_unavailable")||"Video unavailable",noVideo:w("video.video_share_no_video")||"No video found",retry:w("video.video_share_retry")||"Retry"}));function oe(e){return e?i(e):""}async function se(){if(X.value){W.value=!0,K.value=!1,O.value=null,J.value=!1,H.value=!1;try{const a=await l.getSharedVideoDetail({share_key:X.value});if(200===(null==a?void 0:a.code)&&(null==a?void 0:a.data)){const l=(null==(e=a.data)?void 0:e.video)||e||null;return O.value=(null==l?void 0:l.video_url)?l:null,void(K.value=!O.value)}K.value=!0}catch(a){K.value=!0}finally{W.value=!1}var e}else K.value=!0}async function ne(){const e=E.value;if(e)if(e.paused)try{H.value=!0,await e.play()}catch(a){H.value=!1}else e.pause()}function ve(){H.value=!1,J.value=!1}function re(){const e=D.value,a=ee.value;if(!e||!a)return void(U.value={width:"100%",height:"100%"});const{width:l,height:i}=e.getBoundingClientRect();if(!l||!i)return void(U.value={width:"100%",height:"100%"});const o=l/i>a?{width:`${Math.round(i*a)}px`,height:`${Math.round(i)}px`}:{width:`${Math.round(l)}px`,height:`${Math.round(l/a)}px`};U.value=o}function ue(){N.push({name:"create"})}function te(){j(`videoDetail?share_key=${encodeURIComponent(X.value)}`)}return n(()=>{document.title=ie.value.pageTitle,se(),v(re),"undefined"!=typeof ResizeObserver&&D.value?(G.value=new ResizeObserver(re),G.value.observe(D.value)):window.addEventListener("resize",re)}),r(()=>{var e;E.value&&E.value.pause(),null==(e=G.value)||e.disconnect(),window.removeEventListener("resize",re)}),u([ee,q],()=>{v(re)}),(e,l)=>(g(),t("main",x,[d("section",{class:"video-share-shell","aria-label":ie.value.pageLabel},[d("header",V,[d("button",{class:"video-share-icon-btn video-share-back",type:"button","aria-label":ie.value.back,onClick:ue},[...l[7]||(l[7]=[d("span",{"aria-hidden":"true"},null,-1)])],8,M)]),q.value?(g(),t("div",R,[d("img",{class:"video-share-app-icon",src:c(Q),alt:""}
1,null,8,A),d("div",F,[d("strong",null,h(ie.value.appTitle),1),d("span",null,h(ie.value.appSubtitle),1)]),d("button",{class:"video-share-get-app",type:"button",onClick:te},h(ie.value.getApp),1),d("button",{class:"video-share-close",type:"button","aria-label":ie.value.closeBanner,onClick:l[0]||(l[0]=e=>q.value=!1)},[...l[8]||(l[8]=[d("span",{"aria-hidden":"true"},null,-1)])],8,P)])):p("",!0),d("div",{ref_key:"mediaWrapRef",ref:D,class:"video-share-media-wrap"},[Y.value?(g(),t("button",{key:0,class:"video-share-media-button",type:"button","aria-label":J.value?ie.value.pauseVideo:ie.value.playVideo,onClick:ne},[d("span",{class:"video-share-video-frame",style:_(ae.value)},[d("video",{ref_key:"videoRef",ref:E,class:"video-share-video",src:Y.value,poster:Z.value,preload:"metadata",playsinline:"",loop:"",onPlay:l[1]||(l[1]=e=>J.value=!0),onPause:l[2]||(l[2]=e=>J.value=!1),onLoadstart:l[3]||(l[3]=e=>H.value=!0),onWaiting:l[4]||(l[4]=e=>H.value=!0),onCanplay:l[5]||(l[5]=e=>H.value=!1),onPlaying:l[6]||(l[6]=e=>H.value=!1),onError:ve},null,40,z),l[9]||(l[9]=d("span",{class:"video-share-media-gradient","aria-hidden":"true"},null,-1)),!J.value||H.value?(g(),t("span",B,[H.value?(g(),t("span",L)):(g(),b(c(a),{key:1,class:"video-share-play-icon",name:"sys-play",size:80,opacity:.5,color:"#FFFFFF"}))])):p("",!0)],4)],8,$)):(g(),t("div",S,[W.value?(g(),t("span",T)):(g(),t(y,{key:1},[d("p",null,h(le.value),1),d("button",{type:"button",onClick:se},h(ie.value.retry),1)],64))]))],512)],8,C)]))}},[["__scopeId","data-v-cbc33b3e"]]);export{I 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.