PageSourceSearch

https://static.magichour.ai/_next/static/chunks/2hjk5a6u1ppi6.js

js magichour.ai collected 2026-09-25 14:18:26 UTC 27,883 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="e69f2c4c-478b-579e-82bf-726e2f41420d")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,994814,e=>{"use strict";var t=e.i(653145);let r=(e,r,s)=>{if(e&&"reportValidity"in e){let a=(0,t.get)(s,r);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},s=(e,t)=>{for(let s in t.fields){let a=t.fields[s];a&&a.ref&&"reportValidity"in a.ref?r(a.ref,s,e):a&&a.refs&&a.refs.forEach(t=>r(t,s,e))}},a=(e,r)=>{r.shouldUseNativeValidation&&s(e,r);let a={};for(let s in e){let i=(0,t.get)(r.fields,s),l=Object.assign(e[s]||{},{ref:i&&i.refs?i.refs[0]:i&&i.ref});if(n(r.names||Object.keys(e),s)){let e=Object.assign({},(0,t.get)(a,s));(0,t.set)(e,"root",l),(0,t.set)(a,s,e)}else(0,t.set)(a,s,l)}return a},n=(e,t)=>{let r=i(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>i(e).match(`^${r}\\.\\d+`))};function i(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function l(){return(l=Object.assign.bind()).apply(null,arguments)}function o(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}e.s(["zodResolver",0,function(e,r,n){if(void 0===n&&(n={}),"_zod"in e&&"object"==typeof e._zod)return function(i,c,d){try{return Promise.resolve(o(function(){function t(e){return d.shouldUseNativeValidation&&s({},d),{errors:{},values:n.raw?Object.assign({},i):e}}return"sync"===n.mode?t(e.parse(i,r)):Promise.resolve(e.parseAsync(i,r)).then(t)},function(e){var r;if(!(null==e||null==(r=e._zod)||null==(r=r.traits)||!r.has("$ZodError")))return{values:{},errors:a(function(e,r){for(var s=Object.create(null);e.length;)!function(){var a=e[0],n=a.code,i=a.message,o=a.path.join(".");if(!s[o])if("invalid_union"===a.code&&a.errors.length>0){var c,d,u=a.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];s[o]={message:null!=(c=null==u?void 0:u.message)?c:i,type:null!=(d=null==u?void 0:u.code)?d:n}}else s[o]={message:i,type:n};if("invalid_union"===a.code&&a.errors.forEach(function(t){return t.forEach(function(t){return e.push(l({},t,{path:[].concat(a.path,t.path)}))})}),r){var f=s[o].types,m=f&&f[a.code];s[o]=(0,t.appendErrors)(o,r,s,n,m?[].concat(m,a.message):a.message)}e.shift()}();return s}(e.issues,!d.shouldUseNativeValidation&&"all"===d.criteriaMode),d)};throw e}))}catch(e){return Promise.reject(e)}};if("_def"in e&&"object"==typeof e._def)return function(i,l,c){try{return Promise.resolve(o(function(){return Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](i,r)).then(function(e){return c.shouldUseNativeValidation&&s({},c),{errors:{},values:n.raw?Object.assign({},i):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:a(function(e,r){for(var s=Object.create(null);e.length;){var a=e[0],n=a.code,i=a.message,l=a.path.join(".");if(!s[l])if("unionErrors"in a){var o,c,d=a.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];s[l]={message:null!=(o=null==d?void 0:d.message)?o:i,type:null!=(c=null==d?void 0:d.code)?c:n}}else s[l]={message:i,type:n};if("unionErrors"in a&&a.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),r){var u=s[l].types,f=u&&u[a.code];s[l]=(0,t.appendErrors)(l,r,s,n,f?[].concat(f,a.message):a.message)}e.shift()}return s}(e.errors,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}],994814)},724983,e=>{"use strict";var t=e.i(456420);let r={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};r.node;let s=(0,t.default)(r);e.s(["default",0,s])},422768,e=>{"use strict";var t=e.i(724983);e.s(["CircleAlert",()=>t.default])},196039,e=>{"use strict";var t=e.i(456420);let r={name:"circle-plus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],aliases:["plus-circle"]};r.node;let s=(0,t.default)(r);e.s(["default",0,s])},508734,526347,e=>{"use strict";var t=e.i(456420);let r={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};r.node;let s=(0,t.default)(r);e.s(["default",0,s],526347),e.s(["Copy",0,s],508734)},484479,e=>{"use strict";var t=e.i(456420);let r={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};r.node;let s=(0,t.default)(r);e.s(["default",0,s])},923388,e=>{"use strict";var t=e.i(484479);e.s(["DownloadIcon",()=>t.default])},386247,e=>{"use strict";var t=e.i(560972);e.s(["Ellipsis",()=>t.default])},796894,e=>{"use strict";var t=e.i(456420);let r={name:"image-play",size:24,node:[["path",{d:"M15 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"nrt1m3"}],["path",{d:"M21 12.17V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"99hgts"}],["path",{d:"m6 21 5-5",key:"1wyjai"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};r.node;let s=(0,t.default)(r);e.s(["default",0,s])},959482,e=>{"use strict";var t=e.i(796894);e.s(["ImagePlayIcon",()=>t.default])},328523,e=>{"use strict";var t=e.i(616032);e.s(["Pause",()=>t.default])},21357,e=>{"use strict";var t=e.i(737623);e.s(["Play",()=>t.default])},960168,e=>{"use strict";var t=e.i(456420);let r={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};r.node;let s=(0,t.default)(r);e.s(["default",0,s])},741120,e=>{"use strict";var t=e.i(960168);e.s(["RefreshCw",()=>t.default])},876803,e=>{"use strict";var t=e.i(456420);let r={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};r.node;let s=(0,t.default)(r);e.s(["default",0,s])},759659,e=>{"use strict";var t=e.i(876803);e.s(["Trash2",()=>t.default])},683816,e=>{"use strict";var t=e.i(463134);e.s(["VideoIcon",()=>t.default])},96826,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(975157);function a(e){let t=(0,r.useRef)(null),s=(0,r.useRef)(null),[a,n]=(0,r.useState)(e),i=(0,r.useCallback)(()=>{let e=t.current,r=s.current;if(!e||!r)return;let a=e.clientWidth,i=Array.from(r.children),l=window.getComputedStyle(r),o=parseFloat(l.columnGap||l.gap||"0")||0,c=0,d=0;for(let e of i){let t=c+(d>0?o:0)+e.offsetWidth;if(t>a)break;c=t,d++}n(d)},[]);return(0,r.useLayoutEffect)(()=>{i();let e=t.current,r=s.current;if(!e)return;let a=new ResizeObserver(i);return a.observe(e),r&&a.observe(r),()=>a.disconnect()},[i,e]),{containerRef:t,measureRef:s,visibleCount:a}}e.s(["OverflowActionsBar",0,function({items:e,renderItem:n,onVisibleCountChange:i,className:l}){let{containerRef:o,measureRef:c,visibleCount:d}=a(e.length);return((0,r.useEffect)(()=>{i(d)},[d,i]),0===e.length)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{inert:!0,"aria-hidden":!0,
1className:"pointer-events-none absolute h-0 w-0 overflow-hidden",children:(0,t.jsx)("div",{ref:c,className:"flex w-max items-center gap-6",children:e.map(n)})}),(0,t.jsx)("div",{ref:o,className:(0,s.cn)("hidden min-w-0 flex-1 items-center gap-6 overflow-hidden md:flex",l),children:e.slice(0,d).map(n)})]})},"useOverflowCount",0,a])},450790,e=>{"use strict";e.s(["formatErrors",0,function(e){let t=[];return Object.keys(e).forEach(r=>{let s=e[r];if(s){if(s.message&&"string"==typeof s.message)return void t.push(s.message);Array.isArray(s)&&s.forEach(e=>{Object.keys(e).forEach((r,a)=>{let n=e[r];if(s&&n.message)return void t.push(`${n.message}`)})})}}),t},"getErrorMessage",0,function(e){let t=e instanceof Error?e.message:String(e);return/network|failed to fetch/i.test(t)?"Network issue. Check your internet connection.":t},"throwIfServerRenderError",0,function(e){let t=e.find(e=>!!e&&/minified react error|react\.dev\/errors/i.test(e));if(t)throw Error(t)}])},542450,e=>{"use strict";var t=e.i(843476),r=e.i(225913),s=e.i(271645),a=e.i(110204);e.i(772436);var n=e.i(975157);let i=(0,r.cva)("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:r="vertical",...s}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":r,className:(0,n.cn)(i({orientation:r}),e),...s})},"FieldContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,n.cn)("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...r})},"FieldError",0,function({className:e,children:r,errors:a,...i}){let l=(0,s.useMemo)(()=>{if(r)return r;if(!a?.length)return null;let e=Array.from(new Map(a.map(e=>[e?.message,e])).values());return e?.length==1?e[0]?.message:(0,t.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:e.map((e,r)=>e?.message&&(0,t.jsx)("li",{children:e.message},r))})},[r,a]);return l?(0,t.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,n.cn)("text-destructive text-sm font-normal",e),...i,children:l}):null},"FieldGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"field-group",className:(0,n.cn)("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...r})},"FieldLabel",0,function({className:e,...r}){return(0,t.jsx)(a.Label,{"data-slot":"field-label",className:(0,n.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...r})},"FieldSet",0,function({className:e,...r}){return(0,t.jsx)("fieldset",{"data-slot":"field-set",className:(0,n.cn)("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...r})}])},110204,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(248425),a=Object.defineProperty,n=r.forwardRef(a(function(e,r){return(0,t.jsx)(s.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),i=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(n,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},647534,e=>{"use strict";var t=e.i(271645);e.s(["useCopyToClipboard",0,function(e=2e3){let[r,s]=(0,t.useState)(!1),a=(0,t.useRef)(null);return(0,t.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]),{copied:r,copy:(0,t.useCallback)(async t=>{if(navigator.clipboard)try{await navigator.clipboard.writeText(t),s(!0),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>s(!1),e)}catch{}},[e])}}])},367239,e=>{"use strict";var t=e.i(271645),r=e.i(769841);e.s(["useFileUrl",0,function(e){return(0,t.useMemo)(()=>e instanceof File?URL.createObjectURL(e):"string"==typeof e?/^(https?:|blob:|data:)/.test(e)?e:`${r.userVideoCdnBaseUrl}/${e}`:void 0,[e])}])},550881,e=>{"use strict";var t=e.i(271645),r=e.i(653145);e.s(["useScrollToFirstFieldError",0,function(e){let s=(0,r.useFormContext)(),a=e??s,n=a?.formState.submitCount??0,i=(0,t.useRef)(n);(0,t.useEffect)(()=>
1{if(!a||n===i.current||(i.current=n,0===Object.keys(a.formState.errors).length))return;let e=document.querySelector('[aria-invalid="true"], [data-slot="field-error"], [data-slot="form-message"]');if(!e)return;let t=e.closest('[data-slot="field"], [data-slot="form-item"]')??e;t.scrollIntoView({behavior:"smooth",block:"center"});let r=e.matches('[aria-invalid="true"]')?e:t.querySelector('[aria-invalid="true"]');r?.focus({preventScroll:!0})},[n,a])}])},215929,e=>{"use strict";var t=e.i(843476),r=e.i(689664),s=e.i(508734),a=e.i(923388),n=e.i(328523),i=e.i(21357),l=e.i(759659),o=e.i(271645),c=e.i(519455),d=e.i(327966),u=e.i(647534),f=e.i(975157),m=e.i(106095),p=e.i(870866),h=e.i(833965);function g({className:e}){return(0,t.jsx)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6 0.625C8.96853 0.625 11.375 3.03147 11.375 6C11.375 8.96853 8.96853 11.375 6 11.375C3.03147 11.375 0.625 8.96853 0.625 6C0.625 3.03147 3.03147 0.625 6 0.625ZM8.33789 4.13184C8.13441 3.94531 7.81846 3.95876 7.63184 4.16211L5.23438 6.77734L4.35352 5.89648C4.15825 5.70122 3.84175 5.70122 3.64648 5.89648C3.45122 6.09175 3.45122 6.40825 3.64648 6.60352L4.89648 7.85352C4.99289 7.94992 5.12444 8.00293 5.26074 8C5.39699 7.99704 5.52602 7.93829 5.61816 7.83789L8.36816 4.83789C8.55469 4.6344 8.54124 4.31846 8.33789 4.13184Z",fill:"currentColor"})})}let x=null,v=new Set,y={subscribe:e=>(v.add(e),()=>v.delete(e)),getSnapshot:()=>x,getServerSnapshot:()=>null,setActive(e){x!==e&&(x=e,v.forEach(e=>e()))}},b=(0,o.createContext)(null);function j({text:e}){let{copied:a,copy:n}=(0,u.useCopyToClipboard)();return(0,t.jsx)(c.Button,{variant:"ghost",size:"sm",type:"button",onClick:()=>void n(e),"aria-label":a?"Text copied":"Copy text",children:a?(0,t.jsx)(r.Check,{}):(0,t.jsx)(s.Copy,{})})}e.s(["AudioPlayer",0,function({audioFile:r,variant:s="light",isOutput:u,onDelete:x,text:v,createdAt:w,trackDownloadEvent:k,onDownload:N,prominentDownloadCta:C=!1,className:S,voiceName:E,isPresetVoice:z=!1,hideActions:M,actions:P,trailingActions:T,leadingContent:U,onSelect:A,onError:B}){let R=(0,o.useContext)(b),L=(0,o.useMemo)(()=>new Map,[]),O=R??L,V=null!==R,F=(0,o.useRef)(null),D=(0,o.useRef)(null),_=(0,o.useRef)(B);(0,o.useEffect)(()=>{_.current=B},[B]);let[I,$]=(0,o.useState)(!1),[q,H]=(0,o.useState)(0),[G,W]=(0,o.useState)(!0),[Z,Q]=(0,o.useState)(0),[K,Y]=(0,o.useState)(()=>Date.now());(0,o.useEffect)(()=>{if(!w)return;let e=window.setInterval(()=>Y(Date.now()),6e4);return()=>window.clearInterval(e)},[w]);let J=(0,o.useMemo)(()=>"string"==typeof r?r:URL.createObjectURL(r),[r]),X=(0,o.useSyncExternalStore)(y.subscribe,y.getSnapshot,y.getServerSnapshot);(0,o.useEffect)(()=>{let e=D.current;X&&e&&X!==e&&e.isPlaying()&&e.pause()},[X]);let ee=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!F.current)return;let t=F.current,s=!1;if(ee.current&&ee.current!==J){let e=O.get(ee.current);e&&(y.getSnapshot()===e.instance&&y.setActive(null),e.instance.destroy(),O.delete(ee.current))}function a(e,t){e.on("ready",()=>{t.isLoading=!1,t.duration=e.getDuration(),W(!1),Q(e.getDuration())}),e.on("timeupdate",()=>H(e.getCurrentTime())),e.on("play",()=>{$(!0),y.setActive(e)}),e.on("pause",()=>$(!1)),e.on("finish",()=>$(!1)),e.on("error",()=>{t.isLoading=!1,W(!1),_.current?.()})}function n(e){O.get(J)?.instance===e&&O.delete(J),e.destroy(),y.getSnapshot()===e&&y.setActive(null)}ee.current=J;let i=O.get(J);return(i&&!document.body.contains(i.container)&&(V?(i.instance.setOptions({container:t}),i.container=t):(n(i.instance),i=void 0)),i?.container===t)?function(e){D.current=e.instance,e.instance.unAll(),a(e.instance,e);let{isLoading:t,duration:r}=e;return queueMicrotask(()=>{s||(W(t),Q(r))}),()=>{s=!0,V&&O.get(J)?.instance===e.instance||n(e.instance)}}(i):(async function(){let{default:t}=await e.A(529651);if(s||!F.current)return;let n=(0,p.isVideoMediaSource)(r)?new Audio(J):void 0,i=t.create({container:F.current,waveColor:"hsl(235.71 21.21% 12.94%)",progressColor:"hsl(248.16 100% 75.49%)",cursorWidth:0,barWidth:4,barRadius:4,barGap:2,height:40,normalize:!0,mediaControl
1s:!1,...n?{media:n}:{}});if(s)return i.destroy();let l={instance:i,isLoading:!0,duration:0,container:F.current};O.get(J)||O.set(J,l),D.current=i,a(i,l),n||i.load(J).catch(()=>{})}(),()=>{s=!0;let e=D.current;!e||V&&O.get(J)?.instance===e||n(e)})},[r,J,V,O]),(0,t.jsxs)("div",{className:(0,f.cn)("w-full rounded-2xl p-0.5",!v&&"max-w-72",S,"dark"===s?"bg-input":"bg-foreground"),children:[(0,t.jsxs)("div",{className:"bg-background flex w-full items-center gap-4 rounded-2xl p-2",children:[(0,t.jsx)(c.Button,{type:"button",onClick:()=>{D.current&&D.current.playPause()},disabled:G,size:"lg",variant:"ghost",className:"bg-muted hover:bg-muted/80 h-10 w-10 shrink-0 rounded-lg",children:G?(0,t.jsx)("div",{className:"border-foreground h-4 w-4 animate-spin rounded-full border-2 border-t-transparent"}):I?(0,t.jsx)(n.Pause,{className:"text-foreground fill-foreground size-6"}):(0,t.jsx)(i.Play,{className:"text-foreground fill-foreground size-6"})}),(0,t.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col gap-2",children:[(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)("div",{ref:F,className:"w-full",style:{filter:G?"opacity(0.5)":"none",transition:"filter 0.3s ease"}}),G&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)(d.TypographyBodyDashboard,{weight:"medium",className:"text-muted-foreground",children:"Uploading audio"})})]}),(v||E)&&(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-start justify-between gap-2",children:[v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.TypographyCaption,{className:"line-clamp-3 min-w-24 flex-1 wrap-anywhere md:line-clamp-none",children:v}),u&&(0,t.jsx)(j,{text:v})]}):(0,t.jsx)("span",{className:"flex-1"}),E&&(0,t.jsxs)("div",{className:"pointer-events-none ml-auto flex shrink-0 items-center gap-2",children:[(0,t.jsx)(m.VoiceImage,{voiceName:E,isPreset:z,className:"outline-border size-6 rounded-sm outline"}),(0,t.jsx)(d.TypographyCaption,{children:E})]})]})]})]}),(0,t.jsxs)("div",{className:(0,f.cn)("text-background flex w-full items-center",U?"flex-nowrap gap-2 px-2":"flex-wrap justify-between pr-2",M&&!A&&"justify-end"),children:[(0,t.jsxs)("div",{className:(0,f.cn)("flex min-w-0 items-center gap-2",U&&"flex-1"),children:[U??(!M&&(v||u?(0,t.jsxs)(c.Button,{variant:C?"default":"ghost",type:"button",className:(0,f.cn)(C&&"mt-1 ml-1",!C&&"hover:bg-transparent!",!C&&("dark"===s?"text-foreground hover:text-foreground/80!":"text-background hover:text-background/80!")),disabled:!r,onClick:()=>{if(N)return void N();k?.();let e=document.createElement("a");e.href=J,document.body.appendChild(e),e.click(),document.body.removeChild(e)},children:[(0,t.jsx)(a.DownloadIcon,{className:"h-6 w-6"}),C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sm:hidden",children:"Download"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Download audio"})]}):"Download"]}):(0,t.jsxs)(c.Button,{variant:"ghost",className:(0,f.cn)("dark"===s?"hover:text-foreground/80! text-foreground hover:bg-transparent!":"hover:text-background/80! hover:bg-transparent!"),type:"button",onClick:x,children:[(0,t.jsx)(l.Trash2,{className:"size-4"}),T?(0,t.jsx)("span",{className:"sr-only",children:"Delete Audio"}):"Delete Audio"]}))),P,A&&(0,t.jsxs)(c.Button,{variant:"ghost",type:"button",className:"text-foreground hover:text-foreground/80 gap-1 font-semibold hover:bg-transparent!",onClick:A,children:[(0,t.jsx)(g,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"hidden md:block",children:"Click"}),(0,t.jsx)("span",{className:"block md:hidden",children:"Tap"}),"to use"]})]}),(0,t.jsxs)("div",{className:(0,f.cn)("flex flex-col gap-0 md:ml-auto md:flex-row md:items-center md:gap-2",T?"items-center text-center md:text-right":"items-end text-right",U&&"shrink-0 flex-row items-center gap-2"),children:[w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.TypographyCaption,{className:"text-background shrink-0",children:(0,h.formatTimeAgo)(new Date(w),K)}),(0,t.jsx)("span",{className:"text-background hidden md:inline","aria-hidden":!0,children:"·"})]}),(0,t.jsxs)(d.TypographyBodyDashboard,{className:(0,f.cn)("dark"===s?"text-foreground":"text-background",U&&"text-xs"),children:[(0,h.formatTime)(Number.isFinite(q)?q:0,{secondsOnlyUnder60:!1,secondPrecision:2})," ",(0,t.jsxs)("span",{className:"text-muted-foreground",children:["/"," ",(0,h.formatTime)(Number.isFinite(Z)?Z:0,{secondsOnlyUnder60:!1,secondPrecision:2})]})]})]}),T&&(0,t.jsxs)("div",{className:"flex shrink-0 items-center",children:[(0,t.jsx)("span",{"aria-hidden":!0,
1className:"bg-muted-foreground/30 mr-1 hidden h-4 w-px shrink-0 md:ml-2 md:block"}),T]})]})]})},"AudioPlayerWaveSurferCacheProvider",0,function({children:e}){let r=(0,o.useMemo)(()=>new Map,[]);return(0,o.useEffect)(()=>()=>{for(let e of r.values())y.getSnapshot()===e.instance&&y.setActive(null),e.instance.destroy();r.clear()},[r]),(0,t.jsx)(b.Provider,{value:r,children:e})}])},106095,765649,e=>{"use strict";var t=e.i(843476),r=e.i(456420);let s={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};s.node;let a=(0,r.default)(s);e.s(["UserRound",0,a],765649);var n=e.i(410225),i=e.i(975157),l=e.i(769841);e.s(["VoiceImage",0,function({voiceName:e,isPreset:r,alt:s,className:o,fallbackIconClassName:c,draggable:d}){if(!e||!r)return(0,t.jsx)("div",{className:(0,i.cn)("bg-muted text-muted-foreground flex items-center justify-center",o),"aria-label":"Cloned voice",children:(0,t.jsx)(a,{className:(0,i.cn)("size-1/2",c)})});let u=(0,n.normalizeVoiceName)(e);return(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcSet:`${l.webAssetsCdnBaseUrl}/voices/images/${u}.avif`,type:"image/avif"}),(0,t.jsx)("source",{srcSet:`${l.webAssetsCdnBaseUrl}/voices/images/${u}.webp`,type:"image/webp"}),(0,t.jsx)("img",{src:`${l.webAssetsCdnBaseUrl}/voices/images/${u}.jpg`,alt:s??e,className:o,draggable:d,loading:"lazy"})]})}],106095)},584193,438704,e=>{"use strict";var t=e.i(843476),r=e.i(217255),s=e.i(271645),a=e.i(519455),n=e.i(327966),i=e.i(975157),l=e.i(85225);function o({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 9 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.27195 8.59804e-05H7.9375C8.11112 8.59804e-05 8.25119 0.147303 8.25119 0.329803C8.25119 0.398096 8.23149 0.461353 8.1974 0.513979L5.9031 4.69104H8.68631C8.85939 4.69104 9 4.83826 9 5.02076C9 5.10696 8.96805 5.18589 8.91639 5.24467L2.51802 13.8738C2.4115 14.0171 2.21551 14.0417 2.07971 13.9303C1.98279 13.8508 1.94284 13.7232 1.96574 13.6045L3.08682 7.93224H0.313688C0.140606 7.93224 0 7.78502 0 7.60252C0 7.5639 0.00639082 7.52639 0.0181072 7.49224L1.96993 0.24071C2.00881 0.095169 2.13508 0.000644871 2.27195 8.59804e-05Z"})})}e.s(["BoltIcon",0,o],438704),e.s(["UpgradePlanButton",0,function({onClick:e,className:c,buttonText:d,modelName:u,modelIconUrl:f,variant:m="secondary",showChargedYetWarning:p=!1,...h}){let{data:g}=(0,r.useSession)(),{open:x}=(0,l.usePricingDrawer)({preload:g?.user.subscriptionTier==="free"}),v=(0,s.useCallback)(()=>{e?.(),x({modelName:u,modelIconUrl:f})},[e,x,u,f]),y="secondary"===m;return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsxs)(a.Button,{onClick:v,variant:m,className:(0,i.cn)("flex w-full flex-row items-center",y?"bg-card border-secondary-foreground/10 justify-between border":"justify-center",c),...h,children:[(0,t.jsx)(o,{className:(0,i.cn)("relative -mb-0.5 size-4",y?"fill-secondary-foreground drop-shadow-[0_0_8px_rgba(147,130,255,0.9)]":"fill-foreground")}),d&&(0,t.jsx)("span",{className:(0,i.cn)(y&&"from-secondary-foreground to-tertiary-foreground/90 relative bg-linear-to-r from-30% to-200% bg-clip-text font-semibold text-transparent drop-shadow-[0_0_8px_rgba(147,130,255,0.9)]"),children:d??"Upgrade"})]}),p&&(0,t.jsx)(n.TypographyCaption,{className:"text-muted-foreground",children:"You won't be charged yet."})]})}],584193)},834118,e=>{"use strict";var t=e.i(843476),r=e.i(217255),s=e.i(522016),a=e.i(519455),n=e.i(772436),i=e.i(327966),l=e.i(410225),o=e.i(975157),c=e.i(134568),d=e.i(584193),u=e.i(438704);function f({subtitle:e}){return(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)(u.BoltIcon,{className:"fill-secondary-foreground size-4 shrink-0 drop-shadow-[0_0_8px_rgba(147,130,255,0.9)]"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)(i.TypographyCaption,{className:"text-foreground font-medium",children:"Skip the wait"}),(0,t.jsx)(i.TypographyCaption,{className:"text-muted-foreground",children:e})]})]})}function m({subtitle:e,action:r,stacked:s}){return(0,t.jsxs)("div",{className:(0,o.cn)("flex w-full flex-col justify-between gap-2 px-2 py-2",s?"px-4":"md:flex-row md:items-center md:px-4"),children:[(0,t.jsx)(f,{subtitle:e}),r]})}e.s(["QueueUpsellRow",0,function({tier:e,hideForPaidTier:o=!1,withSeparator:f=!1,stacked:p=!1}){let{data:h,status:g}=(0,r.useSession)(),x=e??h?.user.subscriptionTier??null,v=p?"w-full shrink-0 px-0":"w-full shrink-0 px-0 md:w-auto";return void 0===e&&"loading"===g||o&&null!==x&&"free"!==x?null:null===x?(0,t.jsxs)(t.Fragment,{children:[f?(0,t.jsx)(n.Separator,{}):null,(0,t.jsx)(m,{stacked:p,subtitle:"Generate faster with Priority Queue",action:(0,t.jsx)(a.Button,{asChild:!0,type:"button",variant:"default",size:"sm",className:v,children:(0,t.jsxs)(s.default,{href:"/sign-up",className:"flex items-center justify-center gap-2",onClick:()=>(0,c.trackEvent)({eventName:"queueUpsellSignUpButton",action:"click"}),children:[(0,t.jsx)(u.BoltIcon,{className:"fill-foreground size-4"}),"Sign up & generate faster"]})})})]}):"free"===x?(0,t.jsxs)(t.Fragment,{children:[f?(0,t.jsx)(n.Separator,{}):null,(0,t.jsx)(m,{stacked:p,subtitle:o?"Upgrade to get faster generations with Priority Queue.":"Generate faster with Priority Queue",action:(0,t.jsx)(d.UpgradePlanButton,{type:"button",variant:"default",size:"sm",buttonText:"Upgrade & generate faster",className:v,onClick:()=>(0,c.trackEvent)({eventName:"queueUpsellUpgradeButton",action:"click"})})})]}):(0,t.jsxs)(t.Fragment,{children:[f?(0,t.jsx)(n.Separator,{}):null,(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 px-4 py-2",children:[(0,t.jsx)(u.BoltIcon,{className:"fill-secondary-foreground size-4 shrink-0 drop-shadow-[0_0_8px_rgba(147,130,255,0.9)]"}),(0,t.jsx)(i.TypographyCaption,{className:"text-foreground font-medium",children:`You're in the ${(0,l.capitalize)(x)} priority queue`})]})]})}])}]);
2
3//# chunkId=e69f2c4c-478b-579e-82bf-726e2f41420d

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.