1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2071],{33175:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/design",function(){return r(15157)}])},94133:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var a=r(52322);r(2784);var n=r(64603);let i=e=>{let{fontSize:t,className:r}=e;return(0,a.jsx)(n.frZ,{className:"animate-spin ".concat(r||""),fontSize:t})}},92670:function(e,t,r){"use strict";r.d(t,{H:function(){return p}});var a,n=r(52322);r(2784);var i=r(83112),o=r(55351),s=r(70314),l=r.n(s),u=JSON.parse('[{"questionName":"How can I play my audio?","acceptedAnswerText":"After an audio is uploaded, you will see a play button on the top left corner of your screen. Clicking this button will start the audio and the sound wave playing animation."},{"questionName":"What is the export resolution?","acceptedAnswerText":"Images are exported in 300 DPI (dots per inch) to provide the maximum quality for printing. The exact resolution will depend on the canvas size you chose but in general they a width of 12000 pixels or 40 inches."},{"questionName":"Can I resell or use my designs commercially?","acceptedA
1nswerText":"Once you purchase your design by paying or using a credit, you acquire the right to use that image any way you see fit. This includes any commercial usage including reselling or placing them in other commercial products."},{"questionName":"How can I download?","acceptedAnswerText":"Once completing you design. You can purchase it by going to the Download tab. After the payment, you will presented with download options. You will also receive an email with a link to your design so that you can come back and download it later."},{"questionName":"How does WaveVisual generate audio waveforms?","acceptedAnswerText":"WaveVisual analyses the audio file you upload and create a waveform of bars with various heights that represents the loudness of the audio at any given moment. For example if your audio starts relatively silent and gets louder as it progresses, the sound wave WaveVisual will generate will be a series of bars that transition from shorter to longer."},{"questionName":"Which audio file formats are supported?","acceptedA
1nswerText":"The following audio file formats are supported by our editor:\\nWAV, MP3, M4A, AIF, AIFF, FLAC, ALAC, OGG"},{"questionName":"How can I save?","acceptedAnswerText":"Designs are automatically saved and current browser location is accordingly updated. You can see the save status of your design at the top of your screen."},{"questionName":"I have a problem or a question","acceptedAnswerText":"The quickest way to contact us would be by using the live chat on our website. We\'ll respond as soon as possible; probably within an hour. We\'ll do our best to help you."},{"questionName":"What does the unlimited subscription include?","acceptedAnswerText":"Unlimited designs and digital exports while your subscription is active, within our fair-use limits (see the pricing page for details)."},{"questionName":"Can I continue editing my design after purchasing it?","acceptedAnswerText":"Yes, you can continue editing your design for 3 days after purchasing it. You can also download the design as many times as you want."},{"questionName":"What is the maximum video length I can export?","acceptedA
1nswerText":"Video exports are limited to a maximum of 60 minutes. This limit applies to the trimmed duration if you\'ve trimmed your audio, or the full audio duration if no trimming is applied. If your audio exceeds 60 minutes, video export is disabled and you can request a limit extension from the download menu. For longer content, you can also trim your audio to the most important segment."}]'),d=r(26140),c=r(9223),E=r(15453);let{siteURL:_}=(null===(a=l()())||void 0===a?void 0:a.publicRuntimeConfig)||{},m=[(0,c._)({src:"/landing/homepage-cover-3-photo-vynil-1-2",width:1200})],p=e=>{var t,r;let{title:a,path:s,type:l,data:p,faq:f,noIndex:g}=e,{description:h,images:A}=e,v=(0,i.Z)();h=h||v.formatMessage({id:"Home.Subtitle"}),(A=A?A.map(e=>e.includes("/img/d")?(0,d.Ww)({src:e,width:1200}):(0,c._)({src:e,width:1200})):[]).length||(A=A.concat(m));let I="article"===l&&p?(0,E.h)(p.publishedAt,null!==(t=p.lastUpdatedAt)&&void 0!==t?t:p.publishedAt):null,R={title:a,description:h,type:I?"article":"website",url:"".concat(_).concat(s),site_name:"WaveVisual",locale:"en_US",images:A.map(e=>({url:e})),...I&&p&&"article"===l?{article:{publishedTime:"".concat(I.datePublished,"T00:00:00.000Z"),modifiedTime:"".concat(I.dateModified,"T00:00:00.000Z"),...p.author?{authors:[String(p.author)]}:{}}}:{}},T=e.canonical||"".concat(_).concat(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.PB,{title:a,description:h,additionalMetaTags:[{name:"format-detection",content:"telephone=no"}],languageAlternates:[{href:"".concat(_).concat(s),hrefLang:"en"},{href:"".concat(_).concat(s),hrefLang:"x-default"}],canonical:T,openGraph:R,noindex:g,nofollow:g,twitter:{handle:"wavevisualcom",cardType:"summary_large_image"}}),"article"===l&&p&&!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.dX,{url:"".concat(_).concat(s),title:a,...(0,E.h)(p.publishedAt,null!==(r=p.lastUpdatedAt)&&void 0!==r?r:p.publishedAt),authorName:p.author.toString(),images:A,description:h,publisherName:"WaveVisual",publisherLogo:"https://wavevisual.com/wavevisual-logo.png"}),(0,n.jsx)(o.gR,{itemListElements:[{position:1,name:"Home",item:"".concat(_,"/")},{position:2,name:"Blog",item:"".concat(_,"/blog")},{position:3,name:a,item:"".concat(_).concat(s)}]})]}),(0,n.jsx)(o.Sv,{type:"Organization",name:"WaveVisual",image:"https://wavevisual.com/wavevisual-logo.png",url:"https://wavevisual.com",sameAs:["https://www.instagram.com/wavevisualcom/","https://www.pinterest.de/wavevisualcom","https://x.com/wavevisualcom","https://twitter.com/wavevisualcom"]}),"home"===l&&(0,n.jsx)(o.Mg,{mainEntity:f||u}),"article"===l&&f&&f.length>0&&!g&&(0,n.jsx)(o.Mg,{mainEntity:f}),"product"===l&&f&&f.length>0&&(0,n.jsx)(o.Mg,{mainEntity:f}),"home"===l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Gz,{name:a,type:"WebApplication",operatingSystem:"Web",applicationCategory:"DesignApplication",price:"0",priceCurrency:"USD",image:A[0],description:h||"WaveVisual lets you turn any audio file or Spotify song into personalized sound wave art, posters, or video. Customize colors, shapes, and text, then export high-resolution files.",url:T,featureList:["Upload audio files (MP3, WAV, FLAC, M4A, AIFF, OGG)","Search and import from Spotify","Customizable waveform colors and shapes","Add custom text and QR codes","Export high-resolution PNG, SVG, PDF, or JPEG","Video export (1080p MP4 at 60fps / transparent MOV)","Poster print ordering"],aggregateRating:{ratingValue:"4.8",ratingCount:"400",bestRating:"5"}}),_?(0,n.jsx)(o.uJ,{url:_,logo:"https://wavevisual.com/wavevisual-logo.png"}):null]}),(0,n.jsx)(o.VL,{name:a,id:T,image:A[0]}),"product"===e.type&&(0,n.jsx)(o.Qb,{productName:a,images:A,description:h,brand:"WaveVisual",reviews:e.reviews,aggregateRating:e.aggregateRating,offers:[{price:e.price.amount,priceCurrency:e.price.currencyCode,priceValidUntil:"".concat(new Date().getFullYear()+1,"-12-31"),itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{name:"WaveVisual"},hasMerchantReturnPolicy:{type:"MerchantReturnPolicy",refundType:"FullRefund",returnPolicyCategory:"https://schema.org/FullRefund",restockingFee:"0",returnShippingFeesAmount:"0",returnShippingFeesCurrency:"USD",returnInDays:e.returnInDays}}]})]})}},15157:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return T}});var a=r(52322),n=r(2784),i=r(61189),o=r(65089),s=r(96577),l=r.n(s),u=r(5632),d=r(23083),c=r(18064),E=r(94133),_=r(26140),m=r(92670),p=r(99127),f=r(71680);let g=e=>{let{tracks:t}
1=e,r=(0,n.useRef)(null),[i,o]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=new Audio;r.current=e;let t=()=>o(null);return e.addEventListener("pause",t),e.addEventListener("ended",t),e.addEventListener("emptied",t),()=>{e.removeEventListener("pause",t),e.removeEventListener("ended",t),e.removeEventListener("emptied",t),e.pause(),e.removeAttribute("src")}},[]);let s=(0,n.useCallback)(e=>{let t=r.current;if(t&&"spotify"!==e.kind){if(i===e.id&&!t.paused){t.pause(),o(null);return}t.pause(),t.src=e.publicURL,t.currentTime=0,o(e.id),t.play().then(()=>o(e.id)).catch(e=>{console.error("Failed to play audio:",e),o(null)})}},[i]);if(0===t.length)return null;let l=t.length>1?"Audio tracks":"Audio track";return(0,a.jsxs)("div",{className:"p-6 border-t border-gray-200",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 mb-4 text-center",children:l}),(0,a.jsx)("div",{className:"space-y-3",children:t.map((e,r)=>{let n=t.length>1?"Sound wave ".concat(r+1,": ").concat(e.label):e.label;if("spotify"===e.kind)return(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-4 rounded-xl border border-gray-100 bg-gray-50 px-4 py-3",children:[(0,a.jsx)("a",{href:e.publicURL,target:"_blank",rel:"nofollow noreferrer",className:"flex items-center justify-center w-12 h-12 rounded-full bg-[#1DB954] text-white shadow-lg transition-colors hover:bg-[#1ed760] shrink-0","aria-label":"Listen to ".concat(e.label," on Spotify"),children:(0,a.jsx)(f.l4C,{className:"w-7 h-7","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-900 truncate",children:n}),(0,a.jsx)("a",{href:e.publicURL,target:"_blank",rel:"nofollow noreferrer",className:"text-xs text-indigo-600 hover:text-indigo-800 hover:underline",children:"Listen on Spotify"})]})]},e.id);let o=i===e.id;return(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-4 rounded-xl border border-gray-100 bg-gray-50 px-4 py-3",children:[(0,a.jsx)("button",{type:"button",onClick:()=>s(e),className:"flex items-center justify-center w-12 h-12 rounded-full transition-colors shadow-lg shrink-0 ".concat(o?"bg-red-600 text-white hover:bg-red-700":"bg-indigo-600 text-white hover:bg-indigo-700"),"aria-label":o?"Pause ".concat(e.label):"Play ".concat(e.label),children:o?(0,a.jsx)(p.civ,{className:"w-8 h-8"}):(0,a.jsx)(p.sT9,{className:"w-8 h-8"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-900 truncate",children:n}),(0,a.jsx)("p",{className:"text-xs text-gray-500",children:o?"Now playing":"Click to play"})]})]},e.id)})})]})};var h=r(38986),A=r(51574);function v(e){return e.type===A.CustomFileType.spotify?"spotify":"audio"}function I(e){return(null==e?void 0:e.publicURL)?e.publicURL:null}let R=()=>{let e=(0,u.useRouter)(),{id:t}=e.query,[r,i]=(0,n.useState)(null),[o,s]=(0,n.useState)(!0),[p,f]=(0,n.useState)(null);(0,n.useEffect)(()=>{(async()=>{if(!t||"string"!=typeof t){s(!1);return}try{s(!0);let e=await (0,d.rT)(t,c.Pm.FULL);if(!e){f("Design not found");return}i(e)}catch(e){console.error("Failed to load design:",e),f("Failed to load design")}finally{s(!1)}})()},[t]);let A=(0,n.useMemo)(()=>r?function(e){var t,r,a,n;let i=[];if((null!==(n=e.config.waveforms)&&void 0!==n?n:[]).forEach((t,r)=>{var a;if(!t.audioResourceId)return;let n=null===(a=e.resources)||void 0===a?void 0:a[t.audioResourceId],o=I(n);o&&n&&i.push({id:t.id,label:n.name||t.audioFileName||"Sound wave ".concat(r+1),publicURL:o,kind:v(n)})}),i.length>0)return i;let o=null===(t=e.resources)||void 0===t?void 0:t[h.AUDIO_ORIGINAL_FILE_ID],s=I(o);return s&&o&&i.push({id:h.AUDIO_ORIGINAL_FILE_ID,label:o.name||(null===(a=e.config)||void 0===a?void 0:null===(r=a.audio)||void 0===r?void 0:r.fileName)||"Audio track",publicURL:s,kind:v(o)}),i}(r):[],[r]);return t&&"string"==typeof t?o?(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-indigo-50 to-purple-50",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("div",{className:"mx-auto mb-2 h-9 w-64 animate-pulse rounded bg-gray-200 md:h-10"}),(0,a.jsx)("div",{className:"mx-auto h-5 w-40 animate-pulse rounded bg-gray-200"})]}),(0,a.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,a.jsx)("div",{className:"bg-white rounded-2xl shadow-xl overflow-hidden",children:(0,a.jsx)("div",{className:"aspect-[4/3] md:aspect-[16/9] relative flex items-center justify-center bg-gray-100",children:(0,a.jsx)(E.p,{})})})})]})}):p||!r?(0,a.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Design Not Found"}),(0,a.jsx)("p",{className:"text-gray-600 mb-6",children:p||"The design you are looking for could not be found."}),(0,a.jsx)("button",{onClick:()=>
1e.push("/"),className:"bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition-colors",children:"Go to Homepage"})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.H,{title:"".concat(r.name||"Sound Wave Design"," - WaveVisual"),path:"/design".concat(t?"?id=".concat(t):""),description:"Listen to the audio and view the sound wave design created with WaveVisual.",images:t?[(0,_.Ww)({src:"/img/d/".concat(t,".jpg?cb=").concat(r.updatedAt),width:1200})]:[],noIndex:!0,type:"other"}),(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-indigo-50 to-purple-50",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-2",children:r.name||"Sound Wave Design"}),(0,a.jsx)("p",{className:"text-gray-600",children:"Created with WaveVisual"})]}),(0,a.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl overflow-hidden",children:[(0,a.jsx)("div",{className:"aspect-[4/3] md:aspect-[16/9] relative bg-gray-100",children:(0,a.jsx)(l(),{loader:_.Ww,src:"/img/d/".concat(t,".jpg?cb=").concat(r.updatedAt),alt:r.name||"Sound Wave Design",fill:!0,priority:!0,className:"object-contain",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 70vw"})}),(0,a.jsx)(g,{tracks:A}),(0,a.jsx)("div",{className:"p-6 bg-gray-50",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(0,a.jsx)("button",{onClick:()=>e.push("/editor?id=".concat(t)),className:"bg-indigo-600 text-white px-6 py-3 rounded-lg font-medium hover:bg-indigo-700 transition-colors",children:"Edit This Design"}),(0,a.jsx)("button",{onClick:()=>e.push("/"),className:"bg-white text-indigo-600 px-6 py-3 rounded-lg font-medium border border-indigo-600 hover:bg-indigo-50 transition-colors",children:"Create Your Own"})]})})]}),(0,a.jsx)("div",{className:"text-center mt-8 text-sm text-gray-500",children:(0,a.jsxs)("p",{children:["Scan the QR code on this design to visit this page",A.length>0?" and listen to the audio tracks.":"."]})})]})]})})]}):null};var T=()=>(0,a.jsx)(i.g,{children:(0,a.jsx)(o.bQ,{children:(0,a.jsx)(R,{})})})},61189:function(e,t,r){"use strict";r.d(t,{E:function(){return i},g:function(){return o}});var a=r(52322);r(2784);var n=r(82066);let i=new n.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:3,retryDelay:500}}});function o(e){let{children:t}=e;return(0,a.jsx)(n.QueryClientProvider,{client:i,children:t})}},65089:function(e,t,r){"use strict";r.d(t,{bQ:function(){return N},Wf:function(){return L},o0:function(){return S},dy:function(){return b}});var a=r(52322),n=r(44041),i=r(19458),o=r(51574),s=r(72818),l=r(15906),u=r(38986),d=r(53093),c=r(2784),E=r(42670),_=r(23083),m=r(67516),p=r(80920),f=r(14084);let g=e=>{if(!e)return!1;if(e.type===o.CustomFileType.bucket){var t;return!(null===(t=e.pathInBucket)||void 0===t?void 0:t.trim())}return!1},h=e=>"publicURL"in e?e.publicURL:void 0,A=(e,t)=>{var r,a,n,i;if(!t)return!1;if(e.type===o.CustomFileType.bucket&&t.type===o.CustomFileType.bucket){let n=null===(r=e.pathInBucket)||void 0===r?void 0:r.trim(),i=null===(a=t.pathInBucket)||void 0===a?void 0:a.trim();return!!(n&&i&&n===i)}if(e.type===o.CustomFileType.dimg&&t.type===o.CustomFileType.dimg){let r=null===(n=e.urlPath)||void 0===n?void 0:n.trim(),a=null===(i=t.urlPath)||void 0===i?void 0:i.trim();if(r&&a&&r===a)return!0}if(e.type!==o.CustomFileType.bucket&&t.type===e.type){let r=h(e),a=h(t);return!!(r&&a&&r===a)}return!1},v=(e,t,r,a)=>{var n;return!(!g(e)||(null==a?void 0:a.has(r)))&&(null==t?void 0:t.type)===o.CustomFileType.bucket&&!!(null===(n=t.pathInBucket)||void 0===n?void 0:n.trim())},I=(e,t,r)=>{if(0===Object.keys(e).length)return e;let a=!1,n={};return Object.entries(e).forEach(e=>{let[i,o]=e;if(v(o,null==t?void 0:t[i],i,r)||A(o,null==t?void 0:t[i])){a=!0;return}n[i]=o}),a?n:e},R=(e,t)=>Object.entries(e).filter(e=>{let[r,a]=e;return g(a)&&t.has(r)}).length;async function T(e,t){let{designId:r,exportSize:a,exportFileType:n,method:o=i.ExportMethod.v11,onSuccess:s,onError:l}=e,u=new AbortController;t.current.push({id:r,exportSize:a,exportFileType:n,method:o,abortController:u,onSuccess:s,onError:l});let d=()=>{t.current=t.current.filter(e=>e.abortController!==u)};try{let e=await (0,_.po)(r,a,n,o);if(u.signal.aborted)return null;if(!e||!(null==e?void 0:e.url))throw Error("Failed to get download URL");if(d(),null===e)return null;return null==s||s(e),e}catch(e){throw d(),!u.signal.aborted&&l&&l(e),e}}let C=(0,c.createContext)({resources:{},getResources:()=>({}),upsertResource:()=>null,unsetResource:()=>null,seedPendingResources:()=>null,mergePendingResources:()=>
1null,setResources:()=>null,uploadAudioFile:()=>null,pendingResourceCount:0,fetchDesignDownload:()=>Promise.resolve(null),audioBlobCache:{},setAudioBlob:()=>null,getAudioBlob:()=>void 0}),y={},N=e=>{let{defaultValue:t,initialPendingResources:r,initialInFlightResourceIds:i,children:_}=e,p=(0,f.s)(e=>{var t;return null===(t=e.designDocument)||void 0===t?void 0:t.resources}),g=(0,f.s)(e=>e.subscribedDesignId),h=(0,c.useMemo)(()=>p||t||y,[p,t]),A=(0,c.useRef)(new Set(null!=i?i:[])),[v,N]=(0,c.useState)(()=>null!=r?r:{}),[S,L]=(0,c.useState)({}),b=(0,c.useRef)([]),O=(0,n.G)(),D=(0,c.useRef)(h),w=(0,c.useRef)(v),M=(0,c.useRef)();D.current=h,w.current=v;let x=(0,c.useCallback)((e,t)=>{L(r=>{if(void 0===t){let t={...r};return delete t[e],t}return{...r,[e]:t}})},[]),U=(0,c.useCallback)(e=>S[e],[S]),F=(0,c.useMemo)(()=>({...h,...v}),[h,v]),P=(0,c.useCallback)(()=>({...D.current,...w.current}),[]);(0,c.useEffect)(()=>{M.current!==g&&(M.current=g,g&&(A.current.clear(),w.current={},N({})))},[g]),(0,c.useEffect)(()=>{p&&N(e=>{let t=I(e,p,A.current);return t!==e&&(w.current=t),t})},[p]),(0,c.useEffect)(()=>()=>{b.current.forEach(e=>{e.abortController.abort()}),b.current=[]},[]);let W=(0,c.useCallback)((e,t)=>{let r={...D.current,...w.current}[e],a=I({...w.current,[e]:{...r,...t}},D.current,A.current);w.current=a,N(a)},[]),k=(0,c.useCallback)(e=>{let t=(0,s.CE)(w.current,e);w.current=t,N(t)},[]),G=(0,c.useCallback)(e=>{let t=I(e,D.current,A.current);w.current=t,N(t)},[]),H=(0,c.useCallback)(e=>{if(!e||0===Object.keys(e).length)return;let t=I({...w.current,...e},D.current,A.current);w.current=t,N(t)},[]),j=(0,c.useCallback)(e=>{let{designId:t,file:r,resourceId:n,onDone:i,onError:s,onProgress:d}=e,c=n||u.AUDIO_ORIGINAL_FILE_ID;A.current.add(c);let _=I({...w.current,[c]:{name:r.name,type:o.CustomFileType.bucket,pathInBucket:""}},D.current,A.current);w.current=_,N(_),(0,l.$p)({designId:t,type:"audio",onProgress:d,onDone:async(e,t,a)=>{A.current.delete(c);let n={type:o.CustomFileType.bucket,pathInBucket:e,name:r.name};W(c,n),i(),t&&a&&W(c,{...n,publicURL:await a()})},onError:(e,t)=>{A.current.delete(c),w.current={},N({}),O.error((0,a.jsx)(E.Z,{id:(0,m.p)(e),values:{maxSize:"100MB"}})),s(e,t)}})(r)},[O,W]),B=(0,c.useCallback)(e=>T(e,b),[]),V=(0,c.useCallback)(()=>{},[]),X=R(v,A.current),z=(0,c.useMemo)(()=>({unsetResource:k,upsertResource:W,resources:F,getResources:P,seedPendingResources:G,mergePendingResources:H,setResources:V,uploadAudioFile:j,pendingResourceCount:X,fetchDesignDownload:B,audioBlobCache:S,setAudioBlob:x,getAudioBlob:U}),[k,W,F,P,G,H,V,j,X,B,S,x,U]);return(0,c.useEffect)(()=>{(0,d.o2)(z)},[z]),(0,a.jsx)(C.Provider,{value:z,children:_})},S=()=>{let e=(0,c.useContext)(C);if(!e)throw Error("useResourceStore must be used within an ResourceProvider");return e},L=e=>{let t=(0,c.useContext)(C);if(!t)throw Error("useResource must be used within an ResourceProvider");return(0,c.useMemo)(()=>e?t.resources[e]:void 0,[t.resources,e])},b=()=>{let e=(0,p.kH)().find(e=>!!e.audioResourceId);return L((null==e?void 0:e.audioResourceId)||u.AUDIO_ORIGINAL_FILE_ID)}},14084:function(e,t,r){"use strict";let a,n;r.d(t,{s:function(){return u}});var i=r(43841),o=r(83553),s=r(14067),l=r(18997);let u=(0,i.U)(e=>({designDocument:null,subscribedDesignId:void 0,isPaid:!1,editMode:o.uz.Editable,orderId:void 0,isLoading:!1,subscribeToDesign:(t,r)=>(a&&n!==t&&(a(),a=void 0),n===t&&a)?a:(n=t,e({isLoading:!0,subscribedDesignId:t}),(0,s.subscribeToFirestoreDocument)("designs",t,async t=>{if(!t){e({designDocument:null,isLoading:!1,isPaid:!1,editMode:o.uz.Editable,orderId:void 0});return}e({designDocument:t,isLoading:!1,isPaid:!!t.paidAt||t.isPaid||!1,orderId:t.orderId});try{let a=await (0,o.ed)(t,r?()=>Promise.resolve(r):void 0);e({editMode:a})}catch(t){(0,l.H)(t),e({editMode:o.uz.Editable})}}).then(e=>{a=e}).catch(t=>{(0,l.H)(t),e({isLoading:!1})}),()=>{a&&(a(),a=void 0),n===t&&(n=void 0),e({designDocument:null,subscribedDesignId:void 0,isPaid:!1,editMode:o.uz.Editable,orderId:void 0,isLoading:!1})}),unsubscribeFromDesign:()=>{a&&(a(),a=void 0),n=void 0,e({designDocument:null,subscribedDesignId:void 0,isPaid:!1,editMode:o.uz.Editable,orderId:void 0,isLoading:!1})},setIsPaid:t=>e({isPaid:t}),setEditMode:t=>e({editMode:t})}))},80920:function(e,t,r){"use strict";r.d(t,{$X:function(){return s},Q5:function(){return l},e1:function(){return d},kH:function(){return u}});var a,n=r(43841),i=r(40805);let o=null!==(a=i.defaultEditorConfig.selectedWaveformId)&&void 0!==a?a:"waveform_0",s=(0,n.U)(e=>{var t;return{selectedWaveformId:o,setSelectedWaveformId:t=>e({selectedWaveformId:t}),waveforms:null!==(t=i.defaultEditorConfig.waveforms)&&void 0!==t?t:[],setWaveforms:t=>e({waveforms:t}),upsertWaveform:(t,r)=>e(e=>
1({waveforms:e.waveforms.map(e=>e.id===t?{...e,...r}:e)})),removeWaveformById:t=>e(e=>({waveforms:e.waveforms.filter(e=>e.id!==t)})),hydrateFromEditorSnapshot:(t,r)=>e({waveforms:t,selectedWaveformId:r})}}),l=()=>s(e=>e.selectedWaveformId),u=()=>s(e=>e.waveforms),d=()=>s(e=>e.waveforms.find(t=>t.id===e.selectedWaveformId))},15453:function(e,t,r){"use strict";function a(e){if(null==e||""===e)return n(new Date);let t=new Date(String(e));return Number.isNaN(t.getTime())?n(new Date):n(t)}function n(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(a)}function i(e,t){let r=a(e),n=a(null!=t?t:e);return n<r&&(n=r),{datePublished:r,dateModified:n}}r.d(t,{V:function(){return a},h:function(){return i}})},26140:function(e,t,r){"use strict";r.d(t,{Sv:function(){return n},Ww:function(){return i}});var a=r(74304);let n=["beach2","storm","space","night-sky-XGIIg97kC6w","dream","nursery","mountain-sunrise","hydrangea","cotton-candy","stars-in-dark-Q_RBVFFXR","galaxy-4dpAqfTbvKA","looking-up-oMpAz-DN-9I","wave-on-rocks-Z12KkN","london-fog","summer-festival","dusk","cherry-blossom","tiffany-blue","ocean","pastel","vortex","on-cloud-9","angelas-euphoria-spotify","blush","aakashs-red-hots","moving-stars-1m8E6OTLzRk","snowy-mountain-3LXPDYb83MY","aqua","dunes-48bRZya67Po","bahamas","cathleens-dreamland","fantasy","summer-camp","sunrise","sunset","sweet-pea","highlighter","tulip","7up","firecracker","beach","rosebush","forest","grass","hawaiin-punch","periwinkle","lilac","meadow","metallic","natalias-pink-lemonade","rheas-sunny-lake-day","netherlands","citrus","autumn","peaches","pink-sands","retro","chocolate-strawberries","sky","sunshine","tie-dye"],i=e=>{let{src:t,width:r,quality:n}=e,{frontendVersion:i,isDEV:o}=a.feconfig,[s,l]=t.split("?"),u=new URLSearchParams(l||"");u.append("auto","format"),u.append("fit","max"),r&&u.append("w",r.toString()),n&&u.append("q",n.toString()),i&&u.append("v",i),o&&u.append("sandbox","1");let d=o&&!u.get("sandbox")?"http://127.0.0.1:8081":"https://functions.wavevisual.com";return"".concat(d).concat(s,"?").concat(u.toString())}},45947:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a._}});var a=r(9223)},9223:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let a=e=>e.startsWith("/")?e:"/".concat(e),n=e=>{let{src:t,width:r,quality:n}=e,i=new URLSearchParams,o=a(t);return r&&i.set("width",r.toString()),n&&i.set("quality",n.toString()),"".concat("https://image-server-proxy.wavevisual.workers.dev","/v3").concat(o,"?").concat(i.toString())}},67516:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var a=r(68901);let n=new Set(["Alert.Upload.MAX_SIZE_EXCEEDED","Alert.Upload.UNSUPPORTED_FILE_FORMAT","Alert.Upload.UNSUPPORTED_FILE_FORMAT_WITH_VIDEO","Alert.Upload.CORRUPTED_FILE","Alert.Upload.Failed"]);function i(e){let t=e instanceof Error?e.message:String(null!=e?e:"");return t===a.FileError.MAX_SIZE_EXCEEDED?"Alert.Upload.MAX_SIZE_EXCEEDED":t===a.FileError.INCORRECT_FILE_TYPE||"UNSUPPORTED_FILE_FORMAT"===t?"Alert.Upload.UNSUPPORTED_FILE_FORMAT":"CORRUPTED_FILE"===t?"Alert.Upload.CORRUPTED_FILE":n.has(t)?t:"Alert.Upload.Failed"}},33545:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignedUploadUrl=t.getDownloadUrl=void 0;let a=r(21977),n=r(74304);t.getDownloadUrl=(0,a.buildGetFetch)({apiPathConcatenator:e=>"".concat(n.feconfig.apiURL,"/storage/signed-download-url?path=").concat(encodeURIComponent(e)),errorMessage:"Failed to get download URL"}),t.getSignedUploadUrl=(0,a.buildGetFetch)({apiPathConcatenator:(e,t,r,a)=>"".concat(n.feconfig.apiURL,"/storage/signed-upload-url?type=").concat(e,"&designId=").concat(t,"&fileName=").concat(encodeURIComponent(r)).concat(a?"&contentType=".concat(encodeURIComponent(a)):""),errorMessage:"Failed to get signed upload URL"})},19458:function(e,t,r){"use strict";var a,n,i,o,s,l,u,d,c,E,_,m,p,f,g,h,A,v,I,R;Object.defineProperty(t,"__esModule",{value:!0}),t.QRDestination=t.QRCodeState=t.ExportMethod=t.AspectRatio=t.ExportFileType=t.SourceType=t.EditorStatus=t.ExportSize=t.Unit=t.SoundWaveStyle=void 0,r(38986),(_=a||(t.SoundWaveStyle=a={})).horizontal_simple="horizontal",_.horizontal_one_sided="horizontal_one_sided",_.circle_simple="circle_simple",_.circle_smooth="circle_smooth",_.horizontal_bezier="horizontal_bezier",_.dotted_bars="dotted_bars",_.dotted_bars_mirrored="dotted_bars_mirrored",(m=n||(t.Unit=n={})).pixel="px",m.cm="cm",m.inch="in",(p=i||(t.ExportSize=i={})).optimized="opt",p["720p"]="720p",p["1080p"]="1080p",p.max1200="max1200",p.lowres="lr",p.small="sm",p.medium="md",p.large="lg",(f=o||(t.EditorStatus=o={})).INITIAL="init",f.READY="ready",f.LOADING="loading",f.LOADED="loaded",(g=s||(t.SourceType=s={})).SAMPLE="sample",g.AUDIO="audio",g.SPOTIFY="spotify",g.SEARCH="search",g.STOCK="stock",(h=l||(t.ExportFileType=l={})).JPG="jpg",h.PNG="png",h.SVG="svg",h.PDF="pdf",h.MP4="mp4",h.GIF="gif",h.WEBM="webm",h.MOV="mov",h.MOV_PRORES="mov-prores",(A=u||(t.AspectRatio=u={}))["3/1"]="3/1",A["3/2"]="3/2",A["2/1"]="2/1",A["16/9"]="16/9",A["5/4"]="5/4",A["4/3"]="4/3",A["1/2"]="1/2",A["1/1"]="1/1",A["4/5"]="4/5",A["9/16"]="9/16",A["2/3"]="2/3",A["11/14"]="11/14",A["27/35"]="27/35",A["297/210"]="297/210",A["210/297"]="210/297",A["17/22"]="17/22",A["22/17"]="22/17",(v=d||(t.ExportMethod=d={})).v10="v10",v.v11="v11",v.SmallPDFAndSelfConvert="v11",(I=c||(t.QRCodeState=c={}))[I.initial=0]="initial",I[I.loading=1]="loading",I[I.success=2]="success",I[I.errored=3]="errored",(R=E||(t.QRDestination=E={})).design="design",R.audio="audio",R.spotify="spotify",R.custom="custom_qr_dest"},51574:function(e,t){"use strict";var r,a;
1Object.defineProperty(t,"__esModule",{value:!0}),t.CustomFileType=void 0,(a=r||(t.CustomFileType=r={})).bucket="bucket",a.local="local",a.public="public",a.dimg="dimg",a.spotify="spotify",a.youtube="youtube"},68901:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileError=void 0,t.FileError={MAX_SIZE_EXCEEDED:"MAX_SIZE_EXCEEDED",INCORRECT_FILE_TYPE:"INCORRECT_FILE_TYPE",MAX_DURATION_EXCEEDED:"MAX_DURATION_EXCEEDED"}},80368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeFileName=function(e){let t=e.replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/Ã/g,"Ae").replace(/Ã/g,"Oe").replace(/Ã/g,"Ue").replace(/Ã/g,"ss");return(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^.a-z0-9]/gi,"_")).toLocaleLowerCase()}},15906:function(e,t,r){"use strict";var a=r(34406);t.$p=t.ws=t.jk=t.Iv=t.n0=void 0;let n=r(68901),i=r(80368),o=r(33545),s=r(14067),l=r(62995),u=r(86767);t.n0=41943040,t.Iv="".concat(t.n0/1048576,"MB"),t.jk=104857600;let d={apiUrl:a.env.NEXT_PUBLIC_API_URL||"/api",getAuthToken:async()=>(0,s.getIdToken)()},c=async e=>{let{file:r,type:a,designId:i}=e;switch(a){case"image":if(r.size>t.n0)throw Error(n.FileError.MAX_SIZE_EXCEEDED);break;case"audio":if(r.size>t.jk)throw Error(n.FileError.MAX_SIZE_EXCEEDED);break;default:return{promise:Promise.reject(Error("Invalid file type")),onProgress:()=>null}}if(!await d.getAuthToken())throw Error("No authentication token available");let s=[];return{promise:new Promise((e,t)=>{(0,o.getSignedUploadUrl)(a,i,r.name,r.type).then(a=>{let{url:n,headers:i,fullPath:o}=a,l=new XMLHttpRequest;l.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total*100;s.forEach(e=>e(t))}}),l.addEventListener("load",()=>{l.status>=200&&l.status<300?e({fullPath:o,name:r.name}):t(Error("Upload failed with status ".concat(l.status,": ").concat(l.responseText)))}),l.addEventListener("error",()=>{t(Error("Network error during upload"))}),l.addEventListener("abort",()=>{t(Error("Upload aborted"))}),l.open("PUT",n),l.setRequestHeader("Content-Type",r.type||"application/octet-stream"),i&&Object.entries(i).forEach(e=>{let[t,r]=e;"Content-Type"!==t&&l.setRequestHeader(t,r)}),l.send(r)}).catch(e=>{t(e)})}),onProgress:function(e){s.push(e)}}};async function E(e){async function t(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(r>10)return"";try{return(await (0,o.getDownloadUrl)(e)).url}catch(n){let e=n instanceof Error?n.message:String(n),a=/\bstatus:\s*429\b/.test(e);if(a&&r>=5)return"";return await (0,u.wait)(a?2e3*2**Math.min(r,3):1e3),t(r+1)}}return t(0)}t.ws=c,t.$p=e=>{let{type:r,onProgress:a,onDone:n,onError:o,designId:s,onDownloadURL:u}=e;return async e=>{try{let o=(0,i.sanitizeFileName)(e.name);if(o!==e.name){let t=e.slice(0,e.size,e.type);e=new File([t],o.toLowerCase(),{type:e.type})}let d=await (0,t.ws)({file:e,type:r,designId:s});d.onProgress(a);let c=await d.promise,_=await E(c.fullPath);if("string"==typeof c){n&&n(c);return}let m=async()=>{if(_)return _;try{return await E(c.fullPath)}catch(e){return(0,l.logError)(e,{extra:{fileRef:c}}),""}};if(n&&n(c.fullPath,c,m),u){let e=await m();u(e)}}catch(t){o(t,{extra:{fileSize:e.size,fileName:e.name}})}}}},38986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HORIZONTAL_BAR_SPACE=t.MAX_HORIZONTAL_BAR_THICKNESS=t.MAX_HEIGHT_MULTIPLIER=t.MIN_HEIGHT_MULTIPLIER=t.DEFAULT_HEIGHT_MULTIPLIER=t.MAX_HORIZONTAL_BAR_HEIGHT=t.MIN_HORIZONTAL_BAR_HEIGHT=t.DEFAULT_HEIGHT=t.DEFAULT_SPACE=t.DEFAULT_DOTTED_BAR_THICKNESS=t.MIN_DOTTED_BAR_THICKNESS=t.DEFAULT_THICKNESS=t.CUSTOM_BG_IMAGE_CONVERTED_PNG_FILE_ID=t.CUSTOM_BG_IMAGE_FILE_ID=t.STEM_ANALYSIS_FILE_ID=t.AUDIO_CONVERTED_MP3_FILE_ID=t.AUDIO_ORIGINAL_FILE_ID=t.ARROW_KEY_MOVEMENT_STEP=t.WAVEFORM_NODE_PREFIX=t.MAX_WAVEFORMS=t.BOTTOM_RECT_OBJECT_NAME=t.TOP_RECT_OBJECT_NAME=t.RIGHT_RECT_OBJECT_NAME=t.LEFT_RECT_OBJECT_NAME=t.FRAME_OBJECT_NAME=t.CAMERA_SHAKE_GROUP_NAME=t.CONTENT_GROUP_NAME=t.WRAPPER_GROUP_NAME=t.BG_COLOR_OBJECT_NAME=t.BG_IMAGE_OBJECT_NAME=t.TEXT_NODE_OBJECT_NAME_PREFIX=t.QRCODE_OBJECT_NAME=t.SOURCE_VIDEO_LAYER_OBJECT_NAME=t.IMAGE_LAYER_OBJECT_NAME_PREFIX=t.CIRCLE_CENTER_IMAGE_ZOOM_MAX=t.CIRCLE_CENTER_IMAGE_ZOOM_MIN=t.CIRCLE_CENTER_IMAGE_ZOOM_DEFAULT=t.CIRCLE_SOUNDWAVE_FRAME_RECT_NAME=t.CIRCLE_CENTER_IMAGE_BITMAP_NAME=t.CIRCLE_CENTER_IMAGE_CLIP_GROUP_NAME=t.CIRCLE_SOUNDWAVE_WRAPPER_NAME=t.RECORDER_SINE_POLYGON_NAME=t.SOUNDWAVE_OBJECT_NAME=t.DEFAULT_EDITOR_HEIGHT=t.DEFAULT_EDITOR_WIDTH=t.SOUNDWAVE_CIRCLE_REFERENCE_HEIGHT=t.SOUNDWAVE_REFERENCE_HEIGHT=t.SOUNDWAVE_REFERENCE_WIDTH=t.SAMPLE_HEIGHT=t.SOUNDWAVE_DEFAULT_RATIO=void 0,t.GELATO_FRAMED_POSTER_ID_START=t.GELATO_CANVAS_ID_START=t.GELATO_POSTER_ID_START=t.MAX_CIRCLE_BAR_SPACE=t.MAX_CIRCLE_BAR_THICKNESS=t.MAX_CIRCLE_BAR_LENGTH=t.MIN_CIRCLE_BAR_LENGTH=t.DEFAULT_CIRCLE_SPACE=t.DEFAULT_CIRCLE_THICKNESS=t.DEFAULT_CIRCLE_BAR_HEIGHT=t.MAX_ROTATION_ANGLE_RADIUS=t.MAX_CIRCLE_RADIUS=t.MIN_ROTATION_ANGLE_RADIUS=t.MIN_CIRCLE_RADIUS=t.DEFAULT_CIRCLE_RADIUS=t.MIN_SOUNDWAVE_GLOW_BLUR=t.MAX_SOUNDWAVE_GLOW_BLUR=t.DEFAULT_SOUNDWAVE_GLOW_COLOR=t.DEFAULT_SOUNDWAVE_GLOW_BLUR=void 0,t.SOUNDWAVE_DEFAULT_RATIO=.8,t.SAMPLE_HEIGHT=512,t.SOUNDWAVE_REFERENCE_WIDTH=720,t.SOUNDWAVE_REFERENCE_HEIGHT=360,t.SOUNDWAVE_CIRCLE_REFERENCE_HEIGHT=600,t.DEFAULT_EDITOR_WIDTH=400,t.DEFAULT_EDITOR_HEIGHT=200,t.SOUNDWAVE_OBJECT_NAME="soundwave",t.RECORDER_SINE_POLYGON_NAME="recorder-sine-wave",t.CIRCLE_SOUNDWAVE_WRAPPER_NAME="circle-soundwave-wrapper",t.CIRCLE_CENTER_IMAGE_CLIP_GROUP_NAME="circle-center-image-clip",t.CIRCLE_CENTER_IMAGE_BITMAP_NAME="circle-center-image-bitmap",t.C
1IRCLE_SOUNDWAVE_FRAME_RECT_NAME="circle-soundwave-frame",t.CIRCLE_CENTER_IMAGE_ZOOM_DEFAULT=1,t.CIRCLE_CENTER_IMAGE_ZOOM_MIN=1,t.CIRCLE_CENTER_IMAGE_ZOOM_MAX=4,t.IMAGE_LAYER_OBJECT_NAME_PREFIX="image-layer-",t.SOURCE_VIDEO_LAYER_OBJECT_NAME="image-layer-source-video",t.QRCODE_OBJECT_NAME="qrcode",t.TEXT_NODE_OBJECT_NAME_PREFIX="text-node-",t.BG_IMAGE_OBJECT_NAME="background-image",t.BG_COLOR_OBJECT_NAME="background-color",t.WRAPPER_GROUP_NAME="wrapper",t.CONTENT_GROUP_NAME="content",t.CAMERA_SHAKE_GROUP_NAME="camera-shake",t.FRAME_OBJECT_NAME="out-of-canvas",t.LEFT_RECT_OBJECT_NAME="__left-rect",t.RIGHT_RECT_OBJECT_NAME="__right-rect",t.TOP_RECT_OBJECT_NAME="__top-rect",t.BOTTOM_RECT_OBJECT_NAME="__bottom-rect",t.MAX_WAVEFORMS=6,t.WAVEFORM_NODE_PREFIX="waveform_",t.ARROW_KEY_MOVEMENT_STEP=2,t.AUDIO_ORIGINAL_FILE_ID="audio_original",t.AUDIO_CONVERTED_MP3_FILE_ID="audio_converted_mp3",t.STEM_ANALYSIS_FILE_ID="stem_analysis_json",t.CUSTOM_BG_IMAGE_FILE_ID="background_image_original",t.CUSTOM_BG_IMAGE_CONVERTED_PNG_FILE_ID="background_image_converted-png",t.DEFAULT_THICKNESS=2,t.MIN_DOTTED_BAR_THICKNESS=4,t.DEFAULT_DOTTED_BAR_THICKNESS=7,t.DEFAULT_SPACE=1,t.DEFAULT_HEIGHT=t.SAMPLE_HEIGHT,t.MIN_HORIZONTAL_BAR_HEIGHT=256,t.MAX_HORIZONTAL_BAR_HEIGHT=1024,t.DEFAULT_HEIGHT_MULTIPLIER=1,t.MIN_HEIGHT_MULTIPLIER=.3,t.MAX_HEIGHT_MULTIPLIER=2,t.MAX_HORIZONTAL_BAR_THICKNESS=20,t.MAX_HORIZONTAL_BAR_SPACE=12,t.DEFAULT_SOUNDWAVE_GLOW_BLUR=13,t.DEFAULT_SOUNDWAVE_GLOW_COLOR="#B9B6B6",t.MAX_SOUNDWAVE_GLOW_BLUR=50,t.MIN_SOUNDWAVE_GLOW_BLUR=0,t.DEFAULT_CIRCLE_RADIUS=100,t.MIN_CIRCLE_RADIUS=0,t.MIN_ROTATION_ANGLE_RADIUS=-180,t.MAX_CIRCLE_RADIUS=180,t.MAX_ROTATION_ANGLE_RADIUS=180,t.DEFAULT_CIRCLE_BAR_HEIGHT=120,t.DEFAULT_CIRCLE_THICKNESS=2,t.DEFAULT_CIRCLE_SPACE=0,t.MIN_CIRCLE_BAR_LENGTH=20,t.MAX_CIRCLE_BAR_LENGTH=160,t.MAX_CIRCLE_BAR_THICKNESS=8,t.MAX_CIRCLE_BAR_SPACE=9,t.GELATO_POSTER_ID_START="flat_",t.GELATO_CANVAS_ID_START="canvas_",t.GELATO_FRAMED_POSTER_ID_START="framed_poster_"},40805:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialContextData=t.defaultEditorConfig=t.initialWaveformConfig=t.SAMPLE_FILE=void 0;let a=r(19458),n=r(38986),i=r(27061),o=r(32529);t.SAMPLE_FILE="SAMPLE_FILE",t.initialWaveformConfig={thickness:n.DEFAULT_THICKNESS,space:n.DEFAULT_SPACE,circleRadius:n.DEFAULT_CIRCLE_RADIUS,circleBarHeight:n.DEFAULT_CIRCLE_BAR_HEIGHT,waveColors:["#791CFD","#39ACF6"],heightMultiplier:n.DEFAULT_HEIGHT_MULTIPLIER,reference:{width:n.SOUNDWAVE_REFERENCE_WIDTH,height:n.SOUNDWAVE_REFERENCE_HEIGHT},style:a.SoundWaveStyle.horizontal_simple};let s=(0,i.getShownWaveformData)({waveformData:o.MockWaveformData,...t.initialWaveformConfig,width:n.SOUNDWAVE_REFERENCE_WIDTH,audioFileName:t.SAMPLE_FILE,source:a.SourceType.SAMPLE}),l={width:n.SOUNDWAVE_REFERENCE_WIDTH,height:n.SOUNDWAVE_REFERENCE_HEIGHT,top:300,left:450,scaleY:1,scaleX:1,angle:0,skewX:0,skewY:0,originX:"center",originY:"center"};t.defaultEditorConfig={selectedSource:a.SourceType.SAMPLE,waveformConfig:t.initialWaveformConfig,background:{colors:["#ffffff"]},waveformData:o.MockWaveformData,shownWaveformData:s,audioFileName:t.SAMPLE_FILE,waveforms:[{id:"waveform_0",waveformData:o.MockWaveformData,shownWaveformData:s,rect:l,audioFileName:t.SAMPLE_FILE,selectedSource:a.SourceType.SAMPLE}],selectedWaveformId:"waveform_0",editorSize:{width:0,height:0,ratioToReference:0},textNodes:[],soundwaveRect:l,canvasAspectRatio:a.AspectRatio["3/2"],status:a.EditorStatus.INITIAL,frameConfig:{offsetTop:0,offsetLeft:0,wrapperWidth:0,wrapperHeight:0},elements:{},links:{},animation:{style:"spectrum"},images:[]},t.initialContextData={updateEditorState:()=>null,updateWaveformConfig:()=>
1null,updateBackground:()=>null,updateTextNode:()=>null,removeTextNode:()=>null,addTextNode:()=>"",addWaveform:()=>"",updateWaveform:()=>null,removeWaveform:()=>null,applyWaveformEditorPatch:()=>null,addImageLayer:()=>"",updateImageLayer:()=>null,removeImageLayer:()=>null,requestObjectSelection:()=>null,clearPendingObjectSelection:()=>null,undo:()=>null,redo:()=>null,loadFonts:()=>null,isAudioTrimming:!1,setAudioTrimming:()=>null,...t.defaultEditorConfig}},32529:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockWaveformFile=t.MockWaveformData3=t.MockWaveformData2=t.MockWaveformData=void 0,t.MockWaveformData=[432,430,422,433,439,405,398,424,443,406,395,421,436,409,411,416,408,451,408,378,441,438,427,362,414,446,416,403,425,418,440,427,429,412,430,425,385,413,414,422,421,425,416,438,416,429,403,387,416,388,385,434,429,384,392,423,360,398,395,351,432,423,341,420,362,418,404,384,424,433,373,441,438,376,433,437,380,424,417,359,435,456,395,416,441,385,440,358,389,427,436,396,388,250,294,306,296,301,253,276,300,337,246,287,275,240,283,324,219,331,291,290,354,319,350,283,278,247,321,298,313,317,318,316,321,349,337,359,307,333,367,340,300,349,330,311,262,327,343,347,313,285,311,323,327,325,339,326,331,382,286,278,322,272,302,280,330,373,359,348,360,345,334,342,357,343,389,358,299,338,335,310,293,322,340,349,353,293,344,297,305,272,315,190,154,231,208,197,228,309,235,209,260,223,160,239,251,237,188,248,245,239,239,252,193,230,246,207,211,184,224,198,288,206,195,285,254,191,271,249,210,176,258,206,245,247,212,233,228,240,174,212,225,231,196,312,265,198,199,218,147,223,258,138,181,286,201,224,280,229,245,263,190,202,232,238,208,240,302,236,171,215,239,189,243,206,167,219,252,204,215,262,236,198,217,147,182,203,214,218,223,223,222,211,231,216,211,210,195,245,236,246,175,214,250,155,216,206,204,178,256,209,196,241,194,190,180,260,205,186,216,321,220,315,294,147,310,294,242,220,213,179,209,198,158,234,212,237,242,246,255,228,217,288,239,246,266,275,176,232,285,215,237,286,201,196,295,156,225,221,274,244,249,298,272,262,266,254,279,203,265,197,221,296,200,160,234,183,220,342,346,354,366,282,341,276,365,301,353,349,310,314,293,231,279,271,292,334,334,343,374,356,368,347,373,356,367,333,303,300,268,329,307,327,349,311,311,289,327,306,374,297,336,312,311,422,414,433,369,433,404,341,416,367,434,393,417,362,376,364,401,387,387,396,399,388,397,414,407,328,379,256,359,243,342,403,351,386,382,365,359,354,263,315,253,242,307,259,265,98,140,173,163,177,279,177,245,274,248,269,219,234,239,220,268,221,202,243,222,203,221,311,234,242,277,204,237,224,250,230,251,278,228,241,221,250,233,218,240,213,219,263,232,218,269,163,217,181,224,153,179,229,180,233,290,176,159,216,240,111,214,213,178,162,272,222,205,248,194,201,234,204,153,258,188,237,190,267,216,171,238,281,234,274,265,150,315,266,219,202,222,189,78,189,216,170,213,187,88,167,189,161,122,193,171,203,231,153,106,185,202,199,185,201,169,96,184,160,180,209,145,163,139,220,174,150,254,188,187,238,87,120,209,183,184,158,269,137,157,173,201,173,238,205,144,48,194,162,153,254,204,205,204,177,184,186,146,199,184,235,173,84,201,164,121,226,202,118,170,203,143,83,286,146,200,258,184,130,200,136,204,147,261,212,112,169,206,146,135,111,132,131,175,136,139,110,110,145,221,162,135,245,203,171,167,200,223,96,180,131,172,210,198,160,143,46,144,77,151,174,139,195,142,168,187,159,198,92,222,188,135,208,176,74,131,100,144,173,105,156,73,146,144,190,189,116,98,248,175,90,86,174,134,133,140,132,118,114,106,151,151,184,46,96,95,77,93,183,150,77,104,139,95,116,191,146,262,190,136,150,191,203,91,88,186,134,126,207,183,133,203,136,111,253,161,207,181,241,180,159,244,137,181,159,162,201,103,166,126,206,251,241,246,160,206,125,238,173,182,197,266,127,275,320,262,254,306,289,179,197,236,285,223,259,231,239,267,261,232,233,250,217,235,281,256,205,253,289,254,312,305,255,239,267,270,204,251,203,313,161,270,291,271,281,242,211,210,309,251,203,246,316,290,248,282,275,252,296,212,292,270,299,290,209,278,308,274,276,258,270,249,254,284,289,324,294,259,331,297,222,309,233,257,252,298,263,218,289,279,327,327,299,324,270,271,310,319,283,310,325,333,276,324,381,342,289,327,276,362,355,307,301,309,304,314,250,279,338,330,273,381,355,354,293,214,365,334,352,362,345,358,357,319,322,322,380,337,356,366,286,295,349,311,331,350,313,347,374,346,380,345,355,299,336,318,308,353,345,382,359,324,365,331,338,337,308,352,333,361,358,385,353,332,384,335,383,330,339,374,359,379,359,382,390,383,378,352,332,370,371,320,373,353,342,408,345,337,375,309,342,350,336,375,292,370,326,313,371,376,345,340,323,359,358,400,409,403,379,389,382,416,402,407,412,414,405,408,429,427,449,454,473,456,492,498,504,506,508,510,510,511,511,511,511],t.MockWaveformData2=[507,508,508,509,509,511,511,508,508,510,510,512,512,511,511,510,510,507,507,508,508,512,512,509,509,511,511,509,509,511,511,509,509,509,509,508,508,511,511,510,510,508,508,509,509,512,512,512,512,510,510,508,508,507,507,507,507,508,508,510,510,512,512,511,511,509,509,506,506,509,509,511,511,512,512,512,512,511,511,505,505,502,502,507,507,512,512,512,512,512,512,512,512,511,511,505,505,501,501,502,502,512,512,512,512,512,512,506,506,504,504,505,505,510,510,512,512,512,512,511,511,504,504,505,505,502,502,505,505,508,508,512,512,512,512,509,509,504,504,506,506,509,509,510,510,511,511,512,512,512,508,508,507,507,506,506,505,505,509,509,512,512,512,512,511,511,506,506,505,505,509,509,508,508,510,510,512,512,511,511,505,505,505,505,505,505,507,507,512,512,509,509,509,509,508,508,508,508,509,509,510,510,506,506,512,512,512,512,507,507,507,507,510,510,506,506,506,506,507,507,507,507,512,512,511,511,510,510,510,510,510,510,509,509,510,510,504,504,504,504,511,511,510,510,509,509,512,512,509,509,508,508,508,508,500,500,499,499,470,470,484,484,451,451,453,453,447,447,489,489,458,458,419,419,495,495,506,506,372,372,363,363,496,496,436,436,438,438,248,248,410,410,437,437,326,326,385,385,261,261,315,315,430,430,394,394,353,353,123,123,323,323,441,441,355,355,248,248,135,135,209,209,246,246,139,139,201,201,169,169,281,281,266,266,90,90,95,95,69,69,356,356,275,275,254,254,259,259,193,193,346,346,207,207,302,302,230,230,274,274,291,291,282,282,299,299,320,320,318,318,486,486,438,438,473,473,344,344,453,453,512,512,512,512,512,512,429,429,436,436,512,512,498,498,505,505,470,470,466,466,512,512,503,503,505,505,485,485,485,485,508,508,512,512,505,505,496,496,497,497,510,510,512,512,512,510,510,508,508,509,509,512,512,512,512,507,507,504,504,504,504,507,507,512,512,512,512,512,512,507,507,506,506,506,506,511,511,512,512,512,512,511,511,508,508,502,502,501,501,510,510,512,512,512,512,507,507,504,504,506,506,437,437,345,345,134,134,422,422,319,3
119,346,346,307,307,451,451,440,440,407,407,289,289,281,281,324,324,314,314,227,227,190,190,0,0,137,137,263,263,255,255,219,219,119,119,262,262,399,399,316,316,278,278,199,199,170,170,319,319,449,449,244,244,301,301,140,140,335,335,427,427,251,251,300,300,94,94,312,312,400,400,331,331,268,268,246,246,187,187,340,340,356,356,370,370,250,250,174,174,349,349,415,415,386,386,355,355,297,297,194,194,385,385,472,472,370,370,288,288,230,230,244,244,397,397,472,472,372,372,417,417,380,380,403,403,512,512,512,512,474,474,481,481,493,493,494,494,511,511,490,490,481,481,485,485,485,485,484,484,488,488,512,512,512,512,498,498,491,491,459,459,458,458,512,512,512,512,465,465,451,451,490,490,504,504,512,512,465,465,405,405,457,457,421,421,418,418,416,416,407,407,379,379,476,476,409,409,400,400,357,357,244,244,457,457,510,510,358,358,358,353,353,429,429,262,262,418,418,512,512,380,380,284,284,371,371,311,311,361,361,494,494,414,414,322,322,398,398,350,350,342,342,512,512,452,452,328,328,394,394,375,375,302,302,512,512,512,512,342,342,397,397,392,392,368,368,512,512,512,512,431,431,433,433,431,431,410,410,412,412,475,475,369,369,376,376,409,409,356,356,367,367,512,512,469,469,401,401,448,448,444,444,391,391,512,512,508,508,414,414,439,439,424,424,397,397,388,388,512,512,504,504,426,426,453,453,434,434,416,416,492,492,497,497,437,437,409,409,444,444,432,432,425,425,512,512,512,512,424,424,456,456,436,436,429,429,423,423,512,512,471,471,407,407,461,461,395,395,392,392,505,505,458,458,388,388,377,377,391,391,377,377,366,366,469,469,432,432,292,292,344,344,253,253,390,390,445,445,465,465,426,426,241,241,334,334,233,233,398,398,468,468,421,421,355,355,297,297,326,326,377,377,357,357,504,504,474,474,362,362,343,343,329,329,418,418,486,486,491,491,417,417,386,386,337,337,327,327,417,417,510,510,491,491,436,436,356,356,191,191,318,318,375,375,512,512,460,460,384,384,411,411,353,353,340,340,407,407,474,474,452,452,452,413,413,420,420,436,436,325,325,465,465,468,468,495,495,434,434,438,438,427,427,387,387,428,428,485,485,468,468,452,452,449,449,447,447,411,411,439,439,492,492,485,485,464,464,465,465,444,444,462,462,472,472,511,511,488,488,444,444,458,458,450,450,480,480,479,479,503,503,495,495,475,475,476,476,493,493,508,508,494,494,505,505,500,500,512,512,492,492,490,490,500,500,506,506,512,512,512,512,506,506,487,487,493,493,500,500,507,507,503,503,500,500,504,504,512,512,512,512,502,502,498,498,497,497,498,498,512,512,512,512,512,512,505,505,501,501,501,501,507,507,512,512,512,512,511,511,508,508,502,502,502,502,507,507,512,512,512,512,512,512,509,509,503,503,488,488,347,347,390,390,415,415,471,471,422,422,471,471,475,475,487,487,495,495,499,499,506,506,512,512,499,499,491,491,498,498,498,498,508,508,508,508,502,502,507,507,509,509,502,502,502,502,504,504,511,511,506,506,505,505,504,504,507,507,510,510,500,500,509,509,512,512,505,505,504,504,508,508,507,507,512,512,509,509,504,504,509,509,510,510,510,510,510,510,506,506,505,505,510,510,511,511,510,510,496,496,504,504,507,507,511,511,507,507,507,507,507,512,512,507,507,496,496,507,507,508,508,511,511,512,512,510,510,511,511,509,509,508,508,511,511,505,505,505,505,510,510,506,506,508,508,512,512,506,506,503,503,505,505,510,510,511,511,512,512,506,506,507,507,511,511,509,509,508,508,507,507,508,508,512,512,511,511,511,511,510,510,507,507,506,506,507,507,508,508,512,512,511,511,505,505,506,506,508,508,508,508,509,509,512,512,512,512,512,512,508,508,504,504,506,506,512,512,511,511,512,512,504,504,503,503,506,506,510,510,512,512,512,512,508,508,509,509,508,508,506,506,508,508,512,512,512,512,510,510,504,504,501,501,502,502,511,511,512,512,512,512,512,512,508,508,506,506,507,507,508,508,512,512,512,512,509,509,508,508,506,506,506,506,511,511,512,512,511,511,508,508,508,508,507,507,506,506,506,506,509,509],t.MockWaveformData3=[507,506,472,485,494,481,313,242,199,227,252,285,416,247,355,298,324,365,418,437,490,479,472,454,459,478,492,495,488,506,507,506,504,493,476,441,406,459,504,505,269,118,234,323,405,317,363,432,419,386,464,426,429,280,498,419,372,388,387,437,444,466,448,462,487,499,497,506,478,505,506,507,467,392,305,309,340,454,353,448,346,278,462,498,452,493,491,207,273,369,349,338,343,326,314,305,425,471,425,285,253,279,310,317,289,321,464,394,366,403,382,387,462,489,499,507,504,507,505,441,370,362,364,355,279,291,379,394,413,338,489,479,430,388,298,313,357,389,404,460,481,502,503,505,507,50
15,505,503,394,315,238,228,232,285,343,345,362,398,404,387,385,371,382,387,414,465,459,481,491,493,498,503,504,504,491,445,492,481,5,200,277,354,370,397,409,409,405,403,458,491,497,466,454,477,497,503,507,503,505,507,507,424,475,498,432,337,338,339,365,382,388,393,446,456,484,503,364,348,350,379,447,433,421,479,425,377,350,323,322,395,411,419,427,432,480,496,506,511,511,511],t.MockWaveformFile=new window.File([JSON.stringify(t.MockWaveformData)],"killer-bass.json")},18064:function(e,t){"use strict";var r,a,n,i;t.Pm=t.f2=void 0,(n=r||(t.f2=r={})).all="all",n.paid="paid",n.draft="draft",n.trash="trash",(i=a||(t.Pm=a={})).FULL="FULL",i.BASIC="BASIC",i.BARE_MIN="BARE_MIN"},27061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShownWaveformData=function(e){let{space:t,thickness:r,trim:o,style:s,waveformData:l,width:u,audioFileName:d,source:c}=e;if(!l||0===l.length){var E;let e=Error("getShownWaveformData: waveformData is required and cannot be empty");throw(0,a.logError)(e,{extra:{audioFileName:d,source:c,space:t,thickness:r,trim:o,width:u,waveformDataLength:null!==(E=null==l?void 0:l.length)&&void 0!==E?E:0}}),e}let _=t+((0,i.isDottedBarsStyle)(s)?Math.max(n.MIN_DOTTED_BAR_THICKNESS,r):r),m=[];for(let e=0;e<u;e+=_){let t=e/u,r=(null==o?void 0:o.startRatio)||0,a=Math.floor((t*(((null==o?void 0:o.endRatio)||1)-r)+r)*l.length),n=l[a];for(let e=a;e<a+_;e++)l[e]<n&&(n=l[e]);m.push(Math.floor((n+l[a])/2))}return"number"!=typeof(null==m?void 0:m[0])&&(0,a.logError)(Error("Invalid waveform data"),{extra:{audioFileName:d,source:c,space:t,thickness:r,trim:o,width:u}}),m};let a=r(62995),n=r(38986),i=r(44074)},83553:function(e,t,r){"use strict";var a,n;t.uz=void 0,t.ed=o;let i=r(3741);async function o(e,t){if(!e.isPaid||i.featureFlags.freeDownloadsForReviews)return a.Editable;if(e.isPaid&&!e.paidAt)return a.Locked;if(t&&e.isPaid&&e.paidAt&&await t())return a.Editable;let r=new Date(new Date().getTime()-2592e5).toISOString();return e.isPaid&&e.paidAt&&e.paidAt<r?a.Locked:a.Editable}(n=a||(t.uz=a={})).Editable="editable",n.Locked="locked",n.Without_Audio="without_audio"},44074:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCircleSoundWaveStyle=function(e){return e===a.SoundWaveStyle.circle_simple||e===a.SoundWaveStyle.circle_smooth},t.isRadialPolygonSoundWaveStyle=function(e){return e===a.SoundWaveStyle.circle_smooth},t.isDottedBarsStyle=function(e){return e===a.SoundWaveStyle.dotted_bars||e===a.SoundWaveStyle.dotted_bars_mirrored},t.isHorizontalBarStyle=function(e){return e===a.SoundWaveStyle.horizontal_simple||e===a.SoundWaveStyle.horizontal_one_sided||null==e},t.isMirroredSoundWaveStyle=function(e){let t=null!=e?e:a.SoundWaveStyle.horizontal_simple;return t===a.SoundWaveStyle.horizontal_simple||t===a.SoundWaveStyle.dotted_bars_mirrored},t.normalizeWaveformConfig=function(e){var t;let r=null!==(t=e.style)&&void 0!==t?t:a.SoundWaveStyle.horizontal_simple,{mirrored:n,...i}=e;return"boolean"!=typeof n?e:r===a.SoundWaveStyle.horizontal_simple&&!1===n?{...i,style:a.SoundWaveStyle.horizontal_one_sided}:r===a.SoundWaveStyle.dotted_bars&&!0===n?{...i,style:a.SoundWaveStyle.dotted_bars_mirrored}:i};let a=r(19458)},7896:function(e,t,r){"use strict";function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}r.d(t,{Z:function(){return a}})}},function(e){e.O(0,[3365,648,8638,6577,2066,2888,9774,179],function(){return e(e.s=33175)}),_N_E=e.O()}]);
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.