1import{_ as o}from"./icon-close-BrkMU7jH.js";import{au as l,c as a,g as n,x as e,G as i,y as s,B as t,O as r,U as d,K as p,I as u,u as m}from"./vendor-core-DockhpYX.js";import{_ as w,ep as c,s as v}from"./index-DIXwfVMT.js";import{g as C,i as h}from"./i18n-misc-CJ8HFqLU.js";import{g as _,i as f,b as g,D as x,h as k,a as b}from"./data-eyh0fsN3.js";import"./axios-C-1G2k3o.js";import"./element-plus-CADUlNlv.js";import"./@ffmpeg-CcTuH-sP.js";import"./@paypal-DitgUCQS.js";import"./i18n-cn-DMy9nUx_.js";import"./i18n-en-B7MPOrvB.js";import"./i18n-zh-CN-CCdz3q8B.js";import"./i18n-zh-TW-HdlQGMlG.js";const j={class:"daw-promo-modal__hero"},y={class:"daw-promo-modal__content"},M={class:"daw-promo-modal__title"},H={class:"daw-promo-modal__description"},$={class:"daw-promo-modal__actions"},D=w({__name:"DawPromoModal",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(w,{emit:D}){var L;const B=D,V=l(),Z=a(()=>"mobile"===c.renderType),q=null==(L=n())?void 0:L.appContext.config.globalProperties,{$$language:z,$$t:E}=(null==q?void 0:q.$i18n)??{},O=a(()=>_(null==z?void 0:z())),A=o=>g(E,O.value)(o),I=a(()=>f(A));let P=null,T={};const W=()=>{var o,l;const a=(null==(o=window.navigator)?void 0:o.platform)||"",n=(null==(l=window.navigator)?void 0:l.userAgent)||"";return/win/i.test(`${a} ${n}`)?"windows":"mac"},F=(o="")=>o,G=(o={})=>(null==o?void 0:o.exe_url)?o.exe_url:/\.exe($|\?)/.test((null==o?void 0:o.url)||"")?o.url:"",K=()=>(P||(P=(async()=>{var o,l,a,n,e,i,s;const t=await fetch(b);if(!t.ok)throw new Error("Failed to fetch desktop download manifest");const r=await t.json(),d=(null==(o=null==r?void 0:r.platforms)?void 0:o["windows-x86_64"])||(null==(l=null==r?void 0:r.platforms)?void 0:l.windows)||(null==(a=null==r?void 0:r.platforms)?void 0:a["win32-x64"])||{};return T={"darwin-aarch64":F((null==(e=null==(n=null==r?void 0:r.platforms)?void 0:n["darwin-aarch64"])?void 0:e.dmg_url)||""),"darwin-x86_64":F((null==(s=null==(i=null==r?void 0:r.platforms)?void 0:i["darwin-x86_64"])?void 0:s.dmg_url)||""),"windows-x86_64":G(d)},T})().catch(o=>(P=null,{}))),P),N=()=>{const o=null==z?void 0:z();return C.appname!==h&&o&&"en"!==o?{lang:o}:{}},R=()=>{B("close"),"undefined"!=typeof window&&window.open(V.resolve({name:"murekaDesktop",params:N(),query:{source:"popup"}}).href,"_blank")},U=async o=>{var l,a;Z.value?v.warning({position:"top",content:I.value.desktopRequired}):(null==(l=null==q?void 0:q.logCustomEvent)||l.call(q,"download_start",{source:"popup",platform:(null==o?void 0:o.platform)||W(),architecture:(null==o?void 0:o.architecture)||""}),a=await(async o=>{const l=(o=>"windows"===(null==o?void 0:o.platform)?"windows-x86_64":"apple_silicon"===(null==o?void 0:o.architecture)?"darwin-aarch64":"intel"===(null==o?void 0:o.architecture)?"darwin-x86_64":"")(o);return T[l]||await K(),T[l]||k})(o),a&&(window.location.href=a))};return(l,a)=>w.visible?(s(),e("div",{key:0,class:u(["daw-promo-modal",{"daw-promo-modal--china":m(C).appname===m(h),"daw-promo-modal--mobile":Z.value}])},[t("div",j,[a[2]||(a[2]=t("img",{class:"daw-promo-modal__hero-device",src:"https://static-cos.mureka.ai/cos-prod/co/img/mureka-desktop-0819.webp",alt:"Mureka DAW interface"},null,-1)),t("button",{class:"daw-promo-modal__close",type:"button","aria-label":"Close",onClick:a[0]||(a[0]=o=>B("close"))},[...a[1]||(a[1]=[t("img",{src:o,alt:""},null,-1)])])]),t("div",y,[t("div",null,[t("h1",M,r(I.value.title),1),t("p",H,r(I.value.description),1)]),t("div",$,[t("button",{class:"daw-promo-modal__button daw-promo-modal__button--secondary",type:"button",onClick:R},[a[3]||(a[3]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[t("g",{opacity:"0.6"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.71238 3.03433C4.94143 2.80993 5.263 2.66362 5.87026 2.58363C6.49538 2.50129 7.32389 2.5 8.51182 2.5H11.8222C13.0101 2.5 13.8386 2.50129 14.4637 2.58363C15.071 2.66362 15.3926 2.80993 15.6216 3.03433C15.8506 3.25873 16 3.57379 16.0816 4.16875C16.1657 4.78119 16.167 5.59291 16.167 6.75676V12.6351L6.67622 12.6351C5.99928 12.6349 5.53736 12.6347 5.14123 12.7387C4.78704 12.8317 4.4585 12.9836 4.16699 13.1832V6.75676C4.16699 5.59291 4.16831 4.78119 4.25236 4.16875C4.334 3.57379 4.48333 3.25873 4.71238 3.03433ZM6.85665 5.33784C6.51385 5.33784 6.23596 5.6101 6.23596 5.94595C6.23596 6.28179 6.51385 6.55405 6.85665 6.55405H13.4773C13.8201 6.55405 14.098 6.28179 14.098 5.94595C14.098 5.6101 13.8201 5.33784 13.4773 5.33784H6.85665ZM6.23596 8.78378C6.23596 8.44793 6.51385 8.17568 6.85665 8.17568H10.9946C11.3374 8.17568 11.6153 8.44793 11.6153 8.78378C11.6153 9.11963 11.3374 9.39189 10.9946 9.39189H6.85665C6.51385 9.39189 6.23596 9.11963 6.23596 8.78378Z",fill:"white"}),t("path",{d:"M6.77205 13.8514C5.96246 13.8514 5.67942 13.8566 5.46252 13.9135C4.86723 14.0698 4.39266 14.5033 4.18914 15.0668C4.20172 15.3537 4.22144 15.606 4.25236 15.8313C4.334 16.4262 4.48333 16.7413 4.71238 16.9657C4.94143 17.1901 5.263 17.3364 5.87026 17.4164C6.49538 17.4987 7.32389 17.5 8.51182 17.5H11.8222C13.0101 17.5 13.8386 17.4987 14.4637 17.4164C15.071 17.3364 15.3926 17.1901 15.6216 16.9657C15.7841 16.8065 15.9064 16.6017 15.993 16.2838H6.85665C6.51385 16.2838 6.23596 16.0115 6.23596 15.6757C6.23596 15.3398 6.51385 15.0676 6.85665 15.0676H16.1448C16.1602 14.7181 16.1649 14.3173 16.1663 13.8514H6.77205Z",fill:"white"})])],-1)),t("span",null,r(I.value.learnMore),1)]),d(x,{class:"daw-promo-download-menu","show-windows":"",options:I.value.downloadOptions,"disable-menu":Z.value,onDownload:U},{trigger:p(({isOpen:o})=>[a[5]||(a[5]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[t("path",{d:"M15.75 11.25V12.15C15.75 13.4101 15.75 14.0402 15.5048 14.5215C15.289 14.9448 14.9448 15.289 14.5215 15.5048C14.0402 15.75 13.4101 15.75 12.15 15.75H5.85C4.58988 15.75 3.95982 15.75 3.47852 15.5048C3.05516 15.289 2.71095 14.9448 2.49524 14.5215C2.25 14.0402 2.25 13.4101 2.25 12.15V11.25M5.25 7.5L9 11.25L12.75 7.5M9 11.25V2.25",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),t("span",null,r(I.value.freeDownload),1),Z.value?i("",!0):(s(),e("svg",{key:0,class:u(["desktop-download__caret",{"is-open":o}]),xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[...a[4]||(a[4]=[t("path",{d:"M4.27582 10.667L11.7235 10.667C12.3175 10.667 12.6149 9.9489 12.1949 9.52892L8.47108 5.80506C8.21073 5.54471 7.78862 5.54471 7.52827 5.80506L3.80441 9.52892C3.38444 9.9489 3.68188 10.667 4.27582 10.667Z",fill:"currentColor"},null,-1)])],2))]),_:1},8,["options","disable-menu"])])])],2)):i("",!0)}}
1,[["__scopeId","data-v-dc2239e6"]]);export{D 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.