1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8906],{7650:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/podcast",function(){return a(65865)}])},18228:function(e,t,a){"use strict";a.d(t,{l:function(){return f}});var r=a(52322);a(2784);var i=a(79130),n=a.n(i),o=a(7355),s=a(76349),l=a(97976),d=a(90583),c=a(66176),u=a.n(c),p=a(50249),m=a(20324);let g=n().bind(u()),f=e=>{let{children:t,fullWidth:a=!1,className:i,innerClassName:n,lean:c,name:u}=e;return(0,o.aC)(),(0,p.u)(u),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:g("page","relative pb-0 bg-white",i),children:[(0,r.jsx)(s.N,{}),a?t:(0,r.jsx)("main",{className:(0,m.m6)(g("mb-10 ".concat(d.kt),{"mt-4":c},n)),children:t})]}),(0,r.jsx)(l.D,{})]})}},65865:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return w},default:function(){return y}});var r=a(52322),i=a(2784),n=a(39097),o=a.n(n),s=a(5632),l=a(75822),d=a(71986),c=a(63591),u=a(92670),p=a(18228),m=a(18997),g=a(8959),f=a(11434),h=a(61966);let x={highlight:"Highlight",quote:"Quote",guest:"Guest",teaser:"Teaser"},b={"9-16":"9:16","1-1":"1:1","16-9":"16:9"},y=()=>{let e=(0,s.useRouter)(),[t,a]=(0,i.useState)("audio"),[n,y]=(0,i.useState)(null),[w,v]=(0,i.useState)(null),[j,E]=(0,i.useState)("9-16"),[N,_]=(0,i.useState)(null),C=(0,i.useMemo)(()=>N?(0,c.findPodcastJobTemplate)(N,j):null,[N,j]),P=(0,i.useCallback)(e=>{let t=(0,h.Vo)(e);if("MAX_SIZE_EXCEEDED"===t){v("File is too large. Maximum size is 100MB.");return}if("UNSUPPORTED_FILE_FORMAT"===t){v("Unsupported file format. Upload MP3, WAV, M4A, FLAC, or similar audio.");return}v(null),y(e)},[]),D=(0,i.useCallback)(e=>{var t;let a=null===(t=e.target.files)||void 0===t?void 0:t[0];a&&P(a)},[P]),A=(0,i.useCallback)(e=>{var t;e.preventDefault();let a=null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0];a&&P(a)},[P]),U=(0,i.useCallback)(()=>{if(!n){v("Upload your podcast audio to continue.");return}(0,m.Kz)("podcast_wizard_step",{step:"template"}),a("template")},[n]),k=(0,i.useCallback)(()=>{if(!n||!N)return;let t=(0,g.Dd)(N,j);t&&((0,f.ax)(n),(0,m.Kz)("podcast_wizard_handoff",{job:N,ratio:j,templateSlug:null==C?void 0:C.slug}),e.push(t))},[n,N,j,null==C?void 0:C.slug,e]);return(0,r.jsxs)(p.l,{name:"PodcastWizardPage",fullWidth:!0,lean:!0,children:[(0,r.jsx)(u.H,{title:"Podcast Audiogram Wizard | WaveVisual",path:"/podcast",description:"Upload podcast audio, pick a clip layout, and open the WaveVisual editor with your waveform and template ready.",type:"other"}),(0,r.jsxs)("main",{className:"mx-auto w-full max-w-3xl px-4 py-10 md:px-8 md:py-14",children:[(0,r.jsxs)("nav",{className:"mb-6 text-sm text-gray-500","aria-label":"Breadcrumb",children:[(0,r.jsx)(o(),{href:"/audiogram-maker",prefetch:!1,className:"hover:text-indigo-600",children:"Audiogram maker"}),(0,r.jsx)("span",{className:"mx-2 text-gray-300",children:"/"}),(0,r.jsx)("span",{className:"font-medium text-gray-900",children:"Create"})]}),(0,r.jsxs)("header",{className:"mb-8",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-gray-900 md:text-4xl",children:"Create your audiogram"}),(0,r.jsx)("p",{className:"mt-3 text-gray-600 leading-relaxed",children:"Upload a clip, choose a podcast layout, then fine-tune captions and export in the editor."})]}),(0,r.jsxs)("ol",{className:"mb-8 flex gap-3","aria-label":"Wizard steps",children:[(0,r.jsxs)("li",{className:"flex items-center gap-2 rounded-full px-3 py-1 text-sm font-medium ".concat("audio"===t?"bg-indigo-600 text-white":"bg-gray-100 text-gray-600"),"data-testid":"podcast-wizard-step-audio",children:["template"===t?(0,r.jsx)(l.dZ6,{className:"h-4 w-4","aria-hidden":!0}):(0,r.jsx)("span",{children:"1"}),"Upload audio"]}),(0,r.jsx)("li",{className:"flex items-center gap-2 rounded-full px-3 py-1 text-sm font-medium ".concat("template"===t?"bg-indigo-600 text-white":"bg-gray-100 text-gray-500"),"data-testid":"podcast-wizard-step-template",children:"2 Pick layout"})]}),"audio"===t?(0,r.jsxs)("section",{"aria-labelledby":"podcast-wizard-audio-heading",children:[(0,r.jsx)("h2",{id:"podcast-wizard-audio-heading",className:"text-xl font-semibold text-gray-900",children:"Upload your podcast clip"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:"MP3, WAV, M4A, FLAC, and other common audio formats. Spotify import is not available on this path."}),(0,r.jsxs)("label",{htmlFor:"podcast-wizard-audio-input",className:"mt-6 flex min-h-[12rem] cursor-pointer flex-col items-center justify-center rounded-xl border-2 border-dashed border-gray-300 bg-stone-50 px-6 py-8 text-center hover:border-indigo-400 hover:bg-indigo-50/40",onDragOver:e=>e.preventDefault(),onDrop:A,"data-testid":"podcast-wizard-audio-dropzone",children:[(0,r.jsx)(l.h5O,{className:"mb-3 h-8 w-8 text-indigo-500","aria-hidden":!0}),(0,r.jsx)("span",{className:"text-sm font-medium text-gray-900",children:n?n.name:"Drop audio here or browse"}),(0,r.jsx)("span",{className:"mt-1 text-xs text-gray-500",children:"Required â no Spotify on this flow"}),(0,r.jsx)("input",{id:"podcast-wizard-audio-input",type:"file",accept:"audio/*",className:"sr-only",onChange:D,"data-testid":"podcast-wizard-audio-input"})]}),w?(0,r.jsx)("p",{className:"mt-3 text-sm text-red-600",role:"alert",children:w}):null,(0,r.jsx)("div",{className:"mt-8 flex justify-end",children:(0,r.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-5 py-2.5 text-sm font-semibold text-white hover:bg-indigo-700 disabled:cursor-not-allowed disabled:opacity-50",onClick:U,disabled:!n,"data-testid":"podcast-wizard-continue-audio",children:["Continue",(0,r.jsx)(l.WY3,{className:"h-4 w-4","aria-hidden":!0})]})})]}):(0,r.jsxs)("section",{"aria-labelledby":"podcast-wizard-template-heading",children:[(0,r.jsxs)("button",{type:"button",className:"mb-4 inline-flex items-center gap-1 text-sm font-medium text-gray-600 hover:text-indigo-600",onClick:()=>a("audio"),"data-testid":"podcast-wizard-back-audio",children:[(0,r.jsx)(l.jTe,{className:"h-4 w-4","aria-hidden":!0}),"Back to audio"]}),(0,r.jsx)("h2",{id:"podcast-wizard-template-heading",className:"text-xl font-semibold text-gray-900",children:"Pick job and aspect ratio"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:"Twelve podcast layouts â no print, gift, or mood templates on this path."}),(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("p",{className:"mb-2 text-sm font-medium text-gray-700",children:"Aspect ratio"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",role:"tablist","aria-label":"Aspect ratio",children:d.pw.map(e=>(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":j===e,className:"rounded-lg border px-4 py-2 text-sm font-medium ".concat(j===e?"border-indigo-600 bg-indigo-50 text-indigo-700":"border-gray-200 bg-white text-gray-700 hover:border-gray-300"),onClick:()=>E(e),"data-testid":"podcast-wizard-ratio-".concat(e),children:b[e]},e))})]}),(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("p",{className:"mb-2 text-sm font-medium text-gray-700",children:"Clip type"}),(0,r.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:d.Jo.map(e=>{let t=(0,c.findPodcastJobTemplate)(e,j),a=N===e;return(0,r.jsx)("button",{type:"button",className:"rounded-lg border p-4 text-left transition-shadow ".concat(a?"border-indigo-600 shadow-md ring-2 ring-indigo-200":"border-gray-200 hover:border-indigo-400 hover:shadow-sm"),onClick:()=>_(e),"data-testid":"podcast-wizard-job-".concat(e),"aria-pressed":a,children:(0,r.jsxs)("div",{className:"rounded-md p-3",style:{background:"linear-gradient(180deg, ".concat(d.uP.colors.background[0],", ").concat(d.uP.colors.background[1],")")},children:[(0,r.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:d.uP.colors.wave[0]},children:b[j]}),(0,r.jsx)("p",{className:"text-base font-semibold text-white",children:x[e]}),(null==t?void 0:t.description)?(0,r.jsx)("p",{className:"mt-1 text-xs leading-snug line-clamp-2",style:{color:d.uP.colors.typeMuted},children:t.description}):null]})},e)})})]}),(0,r.jsx)("div",{className:"mt-8 flex justify-end",children:(0,r.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-5 py-2.5 text-sm font-semibold text-white hover:bg-indigo-700 disabled:cursor-not-allowed disabled:opacity-50",onClick:k,disabled:!N,"data-testid":"podcast-wizard-open-editor",children:["Open editor",(0,r.jsx)(l.WY3,{className:"h-4 w-4","aria-hidden":!0})]})})]})]})]})};var w=!0},11434:function(e,t,a){"use strict";a.d(t,{ax:function(){return i},rl:function(){return n}});let r=null;function i(e){r=e}function n(){let e=r;return r=null,e}},61966:function(e,t,a){"use strict";a.d(t,{OS:function(){return u},Vo:function(){return p},hE:function(){return c}});var r=a(15906),i=a(18818);let n=e=>{let t=e.lastIndexOf(".");return -1===t?"":e.substring(t).toLowerCase()},o=e=>e.map(e=>e.toLowerCase()),s=o(i.Hn),l=o(i.eX),d=()=>(0,i.ND)()?[...s,...l]:s,c=e=>{var t,a;let r=n(e.name),o=null!==(a=null===(t=e.type)||void 0===t?void 0:t.toLowerCase())&&void 0!==a?a:"",d=s.includes(r),c=(0,i.ND)()&&l.includes(r),u=".webm"===r;return o.startsWith("video/")?(0,i.ND)()&&(c||u)?"video":null:o.startsWith("audio/")?d||c?"audio":null:c?"video":d?"audio":null},u=e=>
1d().includes(n(e.name)),p=e=>e.size>r.jk?"MAX_SIZE_EXCEEDED":u(e)?null:"UNSUPPORTED_FILE_FORMAT"},33545:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignedUploadUrl=t.getDownloadUrl=void 0;let r=a(21977),i=a(74304);t.getDownloadUrl=(0,r.buildGetFetch)({apiPathConcatenator:e=>"".concat(i.feconfig.apiURL,"/storage/signed-download-url?path=").concat(encodeURIComponent(e)),errorMessage:"Failed to get download URL"}),t.getSignedUploadUrl=(0,r.buildGetFetch)({apiPathConcatenator:(e,t,a,r)=>"".concat(i.feconfig.apiURL,"/storage/signed-upload-url?type=").concat(e,"&designId=").concat(t,"&fileName=").concat(encodeURIComponent(a)).concat(r?"&contentType=".concat(encodeURIComponent(r)):""),errorMessage:"Failed to get signed upload URL"})},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,a){"use strict";var r=a(34406);t.$p=t.ws=t.jk=t.Iv=t.n0=void 0;let i=a(68901),n=a(80368),o=a(33545),s=a(14067),l=a(62995),d=a(86767);t.n0=41943040,t.Iv="".concat(t.n0/1048576,"MB"),t.jk=104857600;let c={apiUrl:r.env.NEXT_PUBLIC_API_URL||"/api",getAuthToken:async()=>(0,s.getIdToken)()},u=async e=>{let{file:a,type:r,designId:n}=e;switch(r){case"image":if(a.size>t.n0)throw Error(i.FileError.MAX_SIZE_EXCEEDED);break;case"audio":if(a.size>t.jk)throw Error(i.FileError.MAX_SIZE_EXCEEDED);break;default:return{promise:Promise.reject(Error("Invalid file type")),onProgress:()=>null}}if(!await c.getAuthToken())throw Error("No authentication token available");let s=[];return{promise:new Promise((e,t)=>{(0,o.getSignedUploadUrl)(r,n,a.name,a.type).then(r=>{let{url:i,headers:n,fullPath:o}=r,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:a.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",i),l.setRequestHeader("Content-Type",a.type||"application/octet-stream"),n&&Object.entries(n).forEach(e=>{let[t,a]=e;"Content-Type"!==t&&l.setRequestHeader(t,a)}),l.send(a)}).catch(e=>{t(e)})}),onProgress:function(e){s.push(e)}}};async function p(e){async function t(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(a>10)return"";try{return(await (0,o.getDownloadUrl)(e)).url}catch(i){let e=i instanceof Error?i.message:String(i),r=/\bstatus:\s*429\b/.test(e);if(r&&a>=5)return"";return await (0,d.wait)(r?2e3*2**Math.min(a,3):1e3),t(a+1)}}return t(0)}t.ws=u,t.$p=e=>{let{type:a,onProgress:r,onDone:i,onError:o,designId:s,onDownloadURL:d}=e;return async e=>{try{let o=(0,n.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 c=await (0,t.ws)({file:e,type:a,designId:s});c.onProgress(r);let u=await c.promise,m=await p(u.fullPath);if("string"==typeof u){i&&i(u);return}let g=async()=>{if(m)return m;try{return await p(u.fullPath)}catch(e){return(0,l.logError)(e,{extra:{fileRef:u}}),""}};if(i&&i(u.fullPath,u,g),d){let e=await g();d(e)}}catch(t){o(t,{extra:{fileSize:e.size,fileName:e.name}})}}}},18818:function(e,t,a){"use strict";t.mD=t.W6=t.eX=t.Hn=void 0,t.vT=function(){return r.featureFlags.videoSourceUpload?t.W6:t.Hn},t.ND=function(){return r.featureFlags.videoSourceUpload};let r=a(3741);t.Hn=[".wav",".aif",".aiff",".flac",".alac",".aac",".ogg",".mp3",".m4a",".webm",".WAV",".AIF",".AIFF",".FLAC",".ALAC",".AAC",".OGG",".MP3",".M4A",".WEBM"],t.eX=[".mp4",".mov",".MP4",".MOV"],t.W6=[...t.Hn,...t.eX],t.mD=[".jpg",".jpeg",".png",".gif"]},71986:function(e,t,a){"use strict";t.uP=t.pw=t.Jo=void 0;var r=a(17129);Object.defineProperty(t,"Jo",{enumerable:!0,get:function(){return r.PODCAST_JOB_IDS}}),Object.defineProperty(t,"pw",{enumerable:!0,get:function(){return r.PODCAST_RATIO_IDS}});var i=a(55313);Object.defineProperty(t,"uP",{enumerable:!0,get:function(){return i.PODCAST_BRAND_KIT}}),a(63591),a(54151)},66176:function(e){e.exports={page:"page_page__NLmzS",text:"page_text__cjgfs"}},79130:function(e,t){var a;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=o(e,n.call(this,a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return this&&this[e]||e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)r.call(e,a)&&e[a]&&(t=o(t,this&&this[a]||a));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(a=(function(){return i}).apply(t,[]))&&(e.exports=a)}()}},function(e){e.O(0,[3365,8127,2602,4396,4321,8638,4358,324,5340,8948,2817,2446,2888,9774,179],function(){return e(e.s=7650)}),_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.