PageSourceSearch

https://bookdaddy.ai/_next/static/chunks/pages/ai-podcasts/create-9675a8328a5b0f65.js

js bookdaddy.ai collected 2026-10-05 11:51:51 UTC 38,871 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1465],{54278:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-podcasts/create",function(){return s(75233)}])},43986:function(e,t,s){"use strict";var a=s(28598),r=s(707),i=(s(82684),s(81385)),n=s(1766),l=s(74567),c=s(81955);(0,n.z)();t.Z=e=>{let{paymentPopup:t,onClose:s,onOpen:n,isSticky:o=!0}=e;var d;const{t:u}=(0,i.$G)(),m=r.Mx;var h;const{data:x,isLoading:p,isFetching:f,refetch:g}=null!==(h=m.useGetProfileQuery())&&void 0!==h?h:{};return(0,a.jsxs)("form",{onSubmit:e=>e.preventDefault(),children:[(0,a.jsx)(l.Z,{isOpen:t,onPurchaseSuccess:()=>g(),onRequestClose:()=>s()}),(0,a.jsxs)("div",{className:"flex items-center w-fit  text-black justify-end gap-4 p-4 bg-white rounded-lg ".concat(o?"shadow-md sticky top-5 right-5 ml-auto":"border border-gray-200"," z-10"),children:[p||f?(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(c.xrY,{className:"h-5 w-5 text-gray-400"}),(0,a.jsx)("div",{className:"h-6 w-24 animate-pulse bg-gray-500/50 rounded"})]}):(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(c.xrY,{className:"h-5 w-5 text-gray-400"}),(0,a.jsxs)("span",{className:"font-medium",children:[u("Credits"),":"," ",(0,a.jsx)("span",{className:"font-bold",children:(null===x||void 0===x||null===(d=x.user)||void 0===d?void 0:d.credits)||0})]})]}),(0,a.jsx)("button",{onClick:()=>n(),type:"button",className:"px-3 py-1 text-sm border-[1.5px] border-gray-300 text-blue-700 rounded-md hover:bg-primary/10 transition-colors",children:u("Top-up Credits")})]})]})}},95780:function(e,t,s){"use strict";s.d(t,{z:function(){return i}});var a=s(28598),r=s(82684);const i=r.forwardRef(((e,t)=>{let{className:s,variant:i="default",size:n="default",asChild:l=!1,...c}=e;const{children:o,type:d,...u}=c,m="inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ".concat((()=>{switch(i){case"outline":return"border border-gray-300 bg-white text-gray-800 hover:bg-gray-50";case"ghost":return"bg-transparent text-gray-800 hover:bg-gray-100";default:return"bg-primary text-white hover:bg-primary/90"}})()," ").concat((()=>{switch(n){case"sm":return"h-8 px-3 text-xs";case"lg":return"h-12 px-6 text-base";case"icon":return"h-9 w-9 p-0";default:return"h-10 px-4 text-sm"}})()," ").concat(s||"");if(l&&r.isValidElement(o)){const e=o,s=e.props&&e.props.className||"";return r.cloneElement(e,{className:"".concat(m," ").concat(s).trim(),ref:t,...u})}return(0,a.jsx)("button",{type:d||"button",className:m,ref:t,...u,children:o})}));i.displayName="Button"},96575:function(e,t,s){"use strict";s.d(t,{Zb:function(){return i},aY:function(){return n}});var a=s(28598),r=s(82684);const i=r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:"rounded-lg border bg-white text-gray-800 shadow-sm ".concat(s||""),...r})}));i.displayName="Card";r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:"flex flex-col space-y-1.5 p-6 ".concat(s||""),...r})})).displayName="CardHeader";r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:"text-2xl font-semibold leading-none tracking-tight ".concat(s||""),...r})})).displayName="CardTitle";r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:"text-sm text-gray-500 ".concat(s||""),...r})})).displayName="CardDescription";const n=r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:"p-6 pt-0 ".concat(s||""),...r})}));n.displayName="CardContent";r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:"flex items-center p-6 pt-0 ".concat(s||""),...r})})).displayName="CardFooter"},79192:function(e,t,s){"use strict";s.d(t,{_:function(){return r}});var a=s(28598);const r=s(82684).forwardRef(((e,t)=>{let{className:s,htmlFor:r,...i}=e;return(0,a.jsx)("label",{ref:t,htmlFor:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ".concat(s||""),...i})}));r.displayName="Label"},78309:function(e,t,s){"use strict";s.d(t,{E:function(){return n},m:function(){return l}});var a=s(28598),r=s(82684);const i=r.createContext(null),n=e=>{let{value:t,onValueChange:s,className:n,children:l,...c}=e;const[o]=r.useState((()=>"radio-group-".concat(Math.random().toString(36).slice(2))));return(0,a.jsx)(i.Provider,{value:{value:t,onValueChange:s,name:o},children:(0,a.jsx)("div",{role:"radiogroup",className:n,...c,children:l})})},l=e=>{let{value:t,className:s,children:n,...l}=e;const{value:c,onValueChange:o,name:d}=(()=>{const e=r.useContext(i);if(!e)throw new Error("RadioGroup components must be used within a RadioGroup provider");return e})(),u=c===t,m="".concat(d,"-").concat(t);return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"radio",id:m,className:"peer h-4 w-4 roun
1ded-full border border-gray-300 text-primary focus:ring-1 focus:ring-primary disabled:cursor-not-allowed disabled:opacity-50 ".concat(s||""),name:d,value:t,checked:u,onChange:e=>{o&&o(e.target.value)},...l}),(0,a.jsx)("label",{htmlFor:m,className:"absolute inset-0 cursor-pointer",children:n})]})}},37424:function(e,t,s){"use strict";s.d(t,{SP:function(){return o},dr:function(){return c},mQ:function(){return l},nU:function(){return d}});var a=s(28598),r=s(82684);const i=r.createContext(null),n=()=>{const e=r.useContext(i);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},l=e=>{let{value:t,onValueChange:s,className:n,children:l,disabled:c,...o}=e;const d=r.useCallback((e=>{c||s(e)}),[c,s]);return(0,a.jsx)(i.Provider,{value:{value:t,onValueChange:d},children:(0,a.jsx)("div",{className:"".concat(n||""," ").concat(c?"opacity-70 pointer-events-none":""),"aria-disabled":c,...o,children:l})})},c=e=>{let{className:t,children:s,...r}=e;return(0,a.jsx)("div",{className:"inline-flex items-center justify-center rounded-md bg-gray-100 p-1 ".concat(t||""),...r,children:s})},o=e=>{let{value:t,className:s,disabled:r,children:i,...l}=e;const{value:c,onValueChange:o}=n(),d=c===t;return(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":d,disabled:r,className:"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ".concat(d?"bg-white text-primary shadow-sm":"text-gray-500 hover:text-gray-900"," ").concat(s||""),onClick:()=>o(t),...l,children:i})},d=e=>{let{value:t,className:s,children:r,...i}=e;const{value:l}=n();return l===t?(0,a.jsx)("div",{role:"tabpanel",className:"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 ".concat(s||""),...i,children:r}):null}},71684:function(e,t,s){"use strict";s.d(t,{g:function(){return r}});var a=s(28598);const r=s(82684).forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("textarea",{className:"flex min-h-20 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900 placeholder:text-gray-400 focus:outline-none focus:ring-1 focus:ring-primary disabled:cursor-not-allowed disabled:opacity-50 ".concat(s||""),ref:t,...r})}));r.displayName="Textarea"},35917:function(e,t,s){"use strict";s.d(t,{I:function(){return n}});var a=s(28598),r=s(82684),i=s(74254);const n=r.forwardRef(((e,t)=>{let{className:s,type:r,...n}=e;return(0,a.jsx)("input",{type:r,className:(0,i.cn)("flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...n})}));n.displayName="Input"},97463:function(e,t,s){"use strict";s.d(t,{Bw:function(){return h},Ph:function(){return c},Ql:function(){return x},i4:function(){return d},ki:function(){return o}});var a=s(28598),r=s(82684),i=s(22656),n=s(72534),l=s(74254);const c=n.fC,o=(n.ZA,n.B4),d=r.forwardRef(((e,t)=>{let{className:s,children:r,...c}=e;return(0,a.jsxs)(n.xz,{ref:t,className:(0,l.cn)("flex h-8 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...c,children:[r,(0,a.jsx)(n.JO,{asChild:!0,children:(0,a.jsx)(i.jnn,{className:"h-4 w-4 opacity-50"})})]})}));d.displayName=n.xz.displayName;const u=r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.u_,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(i.g8U,{})})}));u.displayName=n.u_.displayName;const m=r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.$G,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(i.v4q,{})})}));m.displayName=n.$G.displayName;const h=r.forwardRef(((e,t)=>{let{className:s,children:r,position:i="popper",...c}=e;return(0,a.jsx)(n.h_,{children:(0,a.jsxs)(n.VY,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:i,...c,children:[(0,a.jsx)(u,{}),(0,a.jsx)(n.l_,{className:(0,l.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(m,{})]})})}));h.displayName=n.VY.displayName;r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",s),...r})})).displayName=n.__.displayName;const x=r.forwardRef(((e,t)=>{let{className:s,children:r,...c}=e;return(0,a.jsxs)(n.ck,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...c,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.wU,{children:(0,a.jsx)(i.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(n.eT,{children:r})]})}));x.displayName=n.ck.displayName;r.forwardRef(((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",s),...r})})).displayName=n.Z0.displayName},74254:function(e,t,s){"use strict";s.d(t,{G:function(){return n},cn:function(){return i},n:function(){return l}});var a=s(57368),r=s(56572);function i(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.m6)((0,a.W)(t))}const n=(e,t)=>{try{const s=localStorage.getItem("attentionRequiredTickets"),a=s?JSON.parse(s):[];if(!a.includes(e)){const s=[...a,e];localStorage.setItem("attentionRequiredTickets",JSON.stringify(s)),t(s)}}catch(s){console.error("Error updating attention required tickets:",s)}},l=(e,t)=>{try{const s=localStorage.getItem("attentionRequiredTickets"),a=(s?JSON.parse(s):[]).filter((t=>t!==e));localStorage.setItem("attentionRequiredTickets",JSON.stringify(a)),t(a)}catch(s){console.error("Error removing attention required ticket:",s)}}},75233:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return J},default:function(){return W}});var a=s(28598),r=s(82684),i=s(81385),n=s(68015),l=s(38178),c=s(62593),o=s(1887),d=s.n(o),u=s(34376),m=s(95780),h=s(96575),x=s(79192),p=s(71684),f=s(35917),g=s(97463),v=s(78309),y=s(37424),j=s(12413),b=s(40603),N=s(40746),w=s(19112),_=s(88090),k=s(17187),C=s(96162),S=s(72603),Z=s(65750);const R=(0,s(36965).Z)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);var V,E=s(85331),z=s(55559),L=s(40287),P=s(65898),M=s(23708);!function(e){e.English="en",e.Polish="pl",e.German="de",e.Spanish="es",e.French="fr",e.Italian="it",e.Hindi="hi",e.Portuguese="pt",e.Chinese="zh",e.Korean="ko",e.Dutch="nl",e.Turkish="tr",e.Swedish="sv",e.Indonesian="id",e.Filipino="fil",e.Japanese="ja",e.Ukrainian="uk",e.Greek="el",e.Czech="cs",e.Finnish="fi",e.Romanian="ro",e.Danish="da",e.Bulgarian="bg",e.Malay="ms",e.Slovak="sk",e.Croatian="hr",e.ClassicArabic="ar",e.Tamil="ta"}(V||(V={}));var F=s(44209);const q=[{value:"standard",label:"Standard",specs:"(128kbps, 44.1kHz)"},{value:"high",label:"High",specs:"(192kbps, 44.1kHz)",creditIncrease:20},{value:"highest",label:"Highest",specs:"(192kbps, 44.1kHz)",creditIncrease:35},{value:"ultra",label:"Ultra",specs:"(192kbps, 44.1kHz)",creditIncrease:50},{value:"ultra_lossless",label:"Ultra Lossless",specs:"(705.6kbps, 44.1kHz)",creditIncrease:100}];var T=s(76019),I=s(43986),G=s(707),H=s(91881);const O=e=>{const t={};if("text"===e.source.type?e.source.text&&e.source.text.trim()||(t.source="Text content is required"):"url"===e.source.type&&(e.source.url&&e.source.url.trim()?(e=>{try{return new URL(e),!0}catch(t){return!1}})(e.source.url)||(t.source="Please enter a valid URL"):t.source="URL is required"),e.language||(t.language="Language is required"),"bulletin"===e.mode.type?e.mode.bulletin.host_voice_id||(t.voice="Host voice is required"):e.mode.conversation.host_voice_id&&e.mode.conversation.guest_voice_id?e.mode.conversation.host_voice_id===e.mode.conversation.guest_voice_id&&(t.voice="Host and guest voices must be different"):t.voice="Both host and guest voices are required",e.highlights&&e.highlights.length>0){e.highlights.filter((e=>e.length<10||e.length>70)).length>0&&(t.highlights="Each theme must be between 10-70 characters")}return t},U=e=>{let{value:t,onValueChange:s,voices:n=[],isLoading:l,label:c,className:o="",groupId:d,refetchVoices:u}=e;const{t:p}=(0,i.$G)(),[g,y]=(0,r.useState)(null),[_,k]=(0,r.useState)(""),C=(0,r.useRef)(null),[S,Z]=(0,r.useState)(!1),R=n.some((e=>e.isCustom));(0,r.useEffect)((()=>()=>{C.current&&C.current.pause()}),[]);const V=e=>e.name,E=n.filter((e=>{var t;return e.name.toLowerCase().includes(_.toLowerCase())||((null===(t=e.labels)||void 0===t?void 0:t.accent)||"").toLowerCase().includes(_.toLowerCase())}));return l?(0,a.jsx)("div",{className:"border rounded-lg p-8 bg-gray-50",children:(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-2",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary"}),(0,a.jsx)("span",{className:"text-gray-600",children:p("Loading voices...")})]})}):(0,a.jsxs)("div",{className:"space-y-4 ".concat(o),children:[c&&(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(j.Z,{className:"h-4 w-4 text-primary"}),(0,a.jsx)(x._,{className:"text-lg font-semibold",children:c})]}),(0,a.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,a.jsx)(b.Z,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,a.jsx)(f.I,{type:"text",placeholder:p("Search voices..."),value:_,onCh
1ange:e=>k(e.target.value),className:"pl-9 pr-4 py-2"})]})]}),(0,a.jsx)("div",{className:"border rounded-lg bg-gray-50",children:(0,a.jsxs)(v.E,{value:t,onValueChange:s,className:"grid gap-2 p-2 max-h-[300px] overflow-y-auto",children:[(0,a.jsx)(h.Zb,{className:"relative overflow-hidden p-4 border-2 border-dashed border-primary cursor-pointer hover:bg-primary/5 flex flex-col items-center justify-center",onClick:()=>Z(!0),children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-3xl mb-2",children:"\ud83e\uddec"}),(0,a.jsx)("span",{className:"font-medium text-primary",children:p(R?"Manage Your Voice Clone":"Create Your Voice Clone")}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground mt-1 text-center",children:p(R?"Edit or use your own cloned voice for this script":"Create and use your own cloned voice for this script")})]})},"create-voice-clone"),0===E.length?(0,a.jsx)("div",{className:"text-center py-8 text-gray-500",children:p("No voices found matching your search")}):E.map((e=>{var s,r;return(0,a.jsx)(h.Zb,{className:"relative overflow-hidden border transition-all duration-200 hover:border-primary/50 ".concat(t===e.voice_id?"border-primary bg-primary/5":"border-gray-200 hover:bg-gray-50"),children:(0,a.jsxs)(x._,{htmlFor:"".concat(d,"-").concat(e.voice_id),className:"flex items-center justify-between p-3 gap-4 cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,a.jsx)(v.m,{value:e.voice_id,id:"".concat(d,"-").concat(e.voice_id),children:(0,a.jsx)("span",{className:"sr-only",children:V(e)})}),(0,a.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,a.jsx)("span",{className:"text-sm font-medium truncate",children:V(e)}),((null===(s=e.labels)||void 0===s?void 0:s.accent)||e.isCustom)&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground capitalize flex items-center gap-1",children:e.isCustom?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-primary"}),p("Custom")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-400"}),p("".concat(null===(r=e.labels)||void 0===r?void 0:r.accent," accent"))]})})]})]}),(0,a.jsx)("div",{onClick:e=>e.preventDefault(),children:(0,a.jsx)(m.z,{variant:g===e.voice_id?"default":"outline",size:"sm",type:"button",onClick:t=>{t.preventDefault(),((e,t)=>{var s;g===e?(null===(s=C.current)||void 0===s||s.pause(),y(null)):(C.current&&C.current.pause(),C.current=new Audio(t),C.current.play(),C.current.onended=()=>y(null),y(e))})(e.voice_id,e.preview_url)},className:"transition-all duration-200 shrink-0",children:g===e.voice_id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.Z,{className:"mr-2 h-3 w-3"})," ",p("Stop")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{className:"mr-2 h-3 w-3"})," ",p("Preview")]})})})]})},e.voice_id)}))]})}),(0,a.jsx)(H.Z,{isOpen:S,onRequestClose:()=>Z(!1),onVoiceSelect:(e,t,a)=>{Z(!1),s(e)},onChangeVoiceClone:u})]})},B=.65;function D(e){return Math.ceil(e/.3*100)}function Q(e,t){const s=t*B*1.4;return{min:D(e*B*1.4),max:D(s)}}const Y=e=>e?e.trim().split(/\s+/).filter(Boolean).length:0,A=(Q(.5,3),Q(3,7),Q(7,15),()=>{var e,t;const{t:s}=(0,i.$G)(),n=(0,u.useRouter)(),{isWhitelabel:l,whitelabelOverride:c}=(0,M.y)(),[o,b]=(0,r.useState)(!1),[N,H]=(0,r.useState)(!1),[Q,A]=(0,r.useState)({}),[J,W]=(0,r.useState)({source:!1,language:!1,voice:!1,highlights:!1}),{data:$,isLoading:X,refetch:K}=(0,F.Vk)(),[ee,te]=(0,r.useState)(0),[se,ae]=(0,r.useState)(!0),[re,ie]=(0,r.useState)(null),[ne,le]=(0,r.useState)([]),[ce,oe]=(0,r.useState)(null),[de]=(0,T.bL)(),[ue]=(0,T.jR)(),[me]=(0,T.Xr)(),[he,xe]=(0,r.useState)(null),pe=(0,r.useRef)({}),[fe,ge]=(0,r.useState)({}),{data:ve}=G.Mx.useGetProfileQuery(),ye=(null===ve||void 0===ve||null===(e=ve.user)||void 0===e?void 0:e.credits)?Math.floor(ve.user.credits):0,[je,be]=(0,r.useState)(!1),Ne=e=>{const t=Math.floor(e/60),s=Math.floor(e%60);return"".concat(t,":").concat(String(s).padStart(2,"0"))};(0,r.useEffect)((()=>{ee>=100&&ae(!0)}),[ee]);const we=$,[_e,ke]=(0,r.useState)(""),[Ce,Se]=(0,r.useState)({mode:{type:"bulletin",bulletin:{host_voice_id:(null===we||void 0===we||null===(t=we[0])||void 0===t?void 0:t.voice_id)||""}},source:{type:"text",text:""}
1,quality_preset:"standard",duration_scale:"default",language:V.English,highlights:[]});(0,r.useEffect)((()=>{const e=O(Ce);A(e)}),[Ce]);const Ze=e=>{W((t=>({...t,[e]:!0})))},Re=(e,t)=>{e.startsWith("source")?Ze("source"):e.includes("language")?Ze("language"):e.includes("voice")||e.includes("host_voice_id")||e.includes("guest_voice_id")?Ze("voice"):"highlights"===e&&Ze("highlights"),Se((s=>{const a={...s};if("mode.type"===e){var r,i,n;if("bulletin"===t)a.mode={type:"bulletin",bulletin:{host_voice_id:"bulletin"===s.mode.type?s.mode.bulletin.host_voice_id:(null===we||void 0===we||null===(r=we[0])||void 0===r?void 0:r.voice_id)||""}};else a.mode={type:"conversation",conversation:{host_voice_id:"conversation"===s.mode.type?s.mode.conversation.host_voice_id:(null===we||void 0===we||null===(i=we[0])||void 0===i?void 0:i.voice_id)||"",guest_voice_id:"conversation"===s.mode.type?s.mode.conversation.guest_voice_id:(null===we||void 0===we||null===(n=we[1])||void 0===n?void 0:n.voice_id)||""}};return a}if("source.type"===e)return a.source="text"===t?{type:"text",text:""}:{type:"url",url:""},a;const l=e.split(".");let c=a;for(let e=0;e<l.length-1;e++)c=c[l[e]];return c[l[l.length-1]]=t,a}))},Ve=e=>J[e]&&Q[e],Ee=0===Object.keys(Q).length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d(),{children:(0,a.jsx)("title",{children:l&&c?c.title:s("Create New Podcast")})}),(0,a.jsx)("div",{className:"fixed top-[64px] sm:top-[80px] right-2 sm:right-4 z-50",children:(0,a.jsx)(I.Z,{isSticky:!0,onClose:()=>b(!1),onOpen:()=>b(!0),paymentPopup:o})}),(0,a.jsx)(P.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"min-h-[calc(100vh-64px)] bg-white ai-podcasts-page",children:(0,a.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-8",children:[(0,a.jsx)(P.E.div,{initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5},className:"mb-6 flex items-center",children:(0,a.jsxs)(m.z,{variant:"ghost",className:"mr-2 text-gray-600 hover:text-gray-900",onClick:()=>n.push("/ai-podcasts"),children:[(0,a.jsx)(_.Z,{className:"h-4 w-4 mr-2"}),s("Back to Library")]})}),(0,a.jsxs)(P.E.div,{initial:{y:-10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},className:"mb-6",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-gray-900",children:s("Create New Podcast")}),(0,a.jsx)("p",{className:"text-gray-600 mt-1",children:s("Generate a podcast automatically from your input")})]}),(0,a.jsxs)(P.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"space-y-6",children:[(0,a.jsxs)(y.mQ,{value:Ce.mode.type,onValueChange:e=>Re("mode.type",e),children:[(0,a.jsxs)(y.dr,{className:"grid w-full grid-cols-2 bg-gray-100",children:[(0,a.jsxs)(y.SP,{value:"bulletin",children:[(0,a.jsx)("span",{className:"block sm:hidden",children:s("Bulletin")}),(0,a.jsx)("span",{className:"hidden sm:block",children:s("Bulletin (Single Voice)")})]}),(0,a.jsxs)(y.SP,{value:"conversation",children:[(0,a.jsx)("span",{className:"block sm:hidden",children:s("Conversation")}),(0,a.jsx)("span",{className:"hidden sm:block",children:s("Conversation (Two Voices)")})]})]}),(0,a.jsxs)("div",{className:"mt-6 space-y-6",children:[(0,a.jsx)(h.Zb,{children:(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:s("Input Source")}),(0,a.jsxs)(y.mQ,{value:Ce.source.type,onValueChange:e=>Re("source.type",e),children:[(0,a.jsxs)(y.dr,{className:"grid w-full grid-cols-2 bg-gray-100",children:[(0,a.jsx)(y.SP,{value:"text",children:s("Text Input")}),(0,a.jsx)(y.SP,{value:"url",children:s("URL Input")})]}),(0,a.jsx)(y.nU,{value:"text",children:(0,a.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,a.jsx)(x._,{htmlFor:"text-input",children:s("Enter your content")}),(0,a.jsx)(p.g,{id:"text-input",value:"text"===Ce.source.type?Ce.source.text:"",onChange:e=>{return t=e.target.value,Ze("source"),void Se((e=>({...e,source:{type:"text",text:t}})));var t},placeholder:s("Enter the text content for your podcast..."),className:"min-h-[150px] w-full ".concat(Ve("source")?"border-red-500 focus:ring-red-500":"")}),(0,a.jsx)("div",{className:"flex justify-end mt-1",children:(0,a.jsxs)("div",{className:"text-sm font-medium text-muted-foreground flex items-center gap-1.5",children:[(0,a.jsx)(k.Z,{className:"h-4 w-4 text-blue-600"}),(0,a.jsxs)("span",{children:[s("Words:")," ",Y("text"===Ce.source.type?Ce.source.text:"")]})]})}),Ve("source")&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:s(Q.source)})]})}),(0,a.jsx)(y.nU,{value:"url",children:(0,a.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,a.jsx)(x._,{htmlFor:"url-input",children:s("Enter URL")}),(0,a.jsx)(f.I,{id:"url-input",type:"url",value:"url"===Ce.source.type?Ce.source.url:"",onChange:e=>{return t=e.target.value,Ze("source"),void Se((e=>({...e,source:{type:"url",url:t}})));var t},placeholder:"https://example.com/article",className:"w-full ".concat(Ve("source")?"border-red-500 focus:ring-red-500":"")}),Ve("source")&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:s(Q.source)})]})})]})]})}),(0,a.jsx)(h.Zb,{children:(0,a.jsxs)("div",{className:"p-6 space-y-6",children:[(0,a.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:s("Podcast Settings")}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(C.Z,{className:"h-4 w-4 text-primary"}),(0,a.jsx)(x._,{children:s("Duration")}),(0,a.jsxs)(P.E.span,{layout:!0,className:"relative top-[-3px] inline-flex items-center px-1.5 py-0.5 rounded bg-yellow-50 text-yellow-800 text-[11px] sm:text-xs font-medium sm:font-semibold w-fit",children:["180 ",s("credits")," per min"]})]}),(0,a.jsxs)(v.E,{value:Ce.duration_scale,onValueChange:e=>Re("duration_scale",e),className:"flex flex-col space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center space-x-3",children:[(0,a.jsx)(v.m,{value:"short",id:"duration-short",className:"mt-1 sm:mt-0"}),(0,a.jsx)(x._,{htmlFor:"duration-short",className:"cursor-pointer text-gray-700 flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2",children:(0,a.jsx)("span",{className:"text-sm sm:text-base",children:s("Short (under 3 minutes)")})})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center space-x-3",children:[(0,a.jsx)(v.m,{value:"default",id:"duration-default",className:"mt-1 sm:mt-0"}),(0,a.jsx)(x._,{htmlFor:"duration-default",className:"cursor-pointer text-gray-700 flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2",children:(0,a.jsx)("span",{className:"text-sm sm:text-base",children:s("Medium (3-7 minutes)")})})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center space-x-3",children:[(0,a.jsx)(v.m,{value:"long",id:"duration-long",className:"mt-1 sm:mt-0"}),(0,a.jsx)(x._,{htmlFor:"duration-long",className:"cursor-pointer text-gray-700 flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2",children:(0,a.jsx)("span",{className:"text-sm sm:text-base",children:s("Long (over 7 minutes)")})})]})]})]}),(0,a.jsxs)("div",{className:"space-y-2 hidden",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(S.Z,{className:"h-4 w-4 text-primary"}
1),(0,a.jsx)(x._,{htmlFor:"quality",children:s("Quality Preset")})]}),(0,a.jsxs)(g.Ph,{value:Ce.quality_preset,onValueChange:e=>Re("quality_preset",e),children:[(0,a.jsx)(g.i4,{className:"w-full bg-white border-gray-300",children:(0,a.jsx)(g.ki,{placeholder:s("Select quality")})}),(0,a.jsx)(g.Bw,{className:"bg-white border border-gray-200",children:q.map((e=>(0,a.jsxs)(g.Ql,{value:e.value,className:"hover:bg-gray-100",children:[s(e.label),(0,a.jsx)("span",{className:"ml-2 text-xs text-gray-500",children:e.creditIncrease?s("".concat(e.specs,", +").concat(e.creditIncrease,"% credits")):s(e.specs)})]},e.value)))})]}),(0,a.jsx)("p",{className:"text-xs text-gray-500",children:s("Higher quality presets provide better audio fidelity but require more credits")})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Z.Z,{className:"h-4 w-4 text-primary"}),(0,a.jsx)(x._,{htmlFor:"language",children:s("Language")})]}),(0,a.jsxs)(g.Ph,{value:Ce.language,onValueChange:e=>Re("language",e),children:[(0,a.jsx)(g.i4,{className:"w-full bg-white border-gray-300",children:(0,a.jsx)(g.ki,{placeholder:s("Select language")})}),(0,a.jsx)(g.Bw,{className:"bg-white border border-gray-200",children:Object.entries(V).map((e=>{let[t,r]=e;return(0,a.jsx)(g.Ql,{value:r,className:"hover:bg-gray-100",children:s(t)},r)}))})]})]}),"bulletin"===Ce.mode.type?(0,a.jsx)("div",{className:"space-y-2",children:(0,a.jsx)(U,{value:Ce.mode.bulletin.host_voice_id,onValueChange:e=>Re("mode.bulletin.host_voice_id",e),voices:we,isLoading:X,label:s("Voice"),groupId:"bulletin-voice",refetchVoices:K})}):(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,a.jsx)(U,{value:Ce.mode.conversation.host_voice_id,onValueChange:e=>Re("mode.conversation.host_voice_id",e),voices:we,isLoading:X,label:s("Host Voice"),groupId:"host-voice",refetchVoices:K}),(0,a.jsx)(U,{value:Ce.mode.conversation.guest_voice_id,onValueChange:e=>Re("mode.conversation.guest_voice_id",e),voices:we,isLoading:X,label:s("Guest Voice"),groupId:"guest-voice",refetchVoices:K})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(R,{className:"h-4 w-4 text-primary"}),(0,a.jsx)(x._,{htmlFor:"highlights",children:s("Key Themes (Optional)")})]}),(0,a.jsx)(p.g,{id:"highlights",value:_e||"",onChange:e=>(e=>{Ze("highlights");const t=e.split(/\s+/).map((e=>e.trim())).filter((e=>e.length>0));Re("highlights",t),ke(e)})(e.target.value),placeholder:s("Enter words separated by spaces"),className:"min-h-[80px] w-full ".concat(Ve("highlights")?"border-red-500 focus:ring-red-500":"")}),Ve("highlights")&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:s(Q.highlights)})]})]})})]})]}),N&&(0,a.jsx)(P.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"mt-6",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3 p-4 bg-primary/5 rounded-lg",children:[(0,a.jsx)(E.Z,{className:"h-5 w-5 text-primary animate-spin"}),(0,a.jsx)("span",{className:"text-sm font-medium text-gray-700",children:s("Generating your podcast...")})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-700",children:s("Progress")}),(0,a.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:[Math.round(ee),"%"]})]}),(0,a.jsx)("div",{className:"w-full h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,a.jsx)(P.E.div,{initial:{width:0},animate:{width:"".concat(ee,"%")},transition:{duration:.3},className:"h-full bg-primary"})})]})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row justify-end gap-3 mt-6",children:[(0,a.jsx)(m.z,{variant:"outline",onClick:()=>n.push("/ai-podcasts"),disabled:N,className:"w-full sm:w-auto",children:s("Cancel")}),(0,a.jsx)(m.z,{onClick:async()=>{if(N)return;be(!1);const e=O(Ce);if(Object.keys(e).length>0)return void A(e);let t=0;if("text"===Ce.source.type){const e=function(e){return e/140*B}(Y(Ce.source.text));t=D(e)}else{let e=.5;"short"===Ce.duration_scale?e=.5:"default"===Ce.duration_scale?e=3:"long"===Ce.duration_scale&&(e=7);t=D(e*B*1.4)}if(ye<1.5*t)return be(!0),void oe(s("You need at least 50% more credits than the estimated cost to generate this podcast. Please top up your wallet."));try{H(!0),te(0),oe(null),le([]);const e=await de(Ce).unwrap(),{token:t}=e;let a=!1,r=0;const i=async()=>
1{if(!a)try{const e=await ue(t).unwrap();if(e.progress>r&&(r=e.progress,te(e.progress)),"completed"===e.status){a=!0,te(100);const e=await me(t).unwrap();le(e.response.chapters),ae(!0),H(!1)}else"error"===e.status?(a=!0,oe(e.error||s("An error occurred while generating the podcast")),H(!1)):setTimeout(i,2e3)}catch(ce){console.error("Error generating podcast:",ce),oe(s("Failed to start podcast generation")),H(!1)}};i()}catch(ce){console.error("Failed to generate podcast:",ce)}},disabled:N||!Ee,className:"bg-primary hover:bg-primary/90 text-white w-full sm:w-auto flex items-center gap-2",children:N?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E.Z,{className:"h-4 w-4 animate-spin"}),s("Generating...")]}):s("Generate Podcast")})]}),se&&!N&&ne.length>0&&(0,a.jsxs)(P.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"mt-8 space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,a.jsx)(j.Z,{className:"h-5 w-5 text-primary"}),(0,a.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:s("Generated Podcast")})]}),(0,a.jsx)("div",{className:"grid gap-6",children:ne.map((e=>{var t;return(0,a.jsx)(h.Zb,{className:"overflow-hidden bg-white hover:shadow-lg transition-shadow duration-200",children:(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between flex-col sm:flex-row gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:e.name}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:new Date(1e3*e.snapshots[0].created_at_unix).toLocaleDateString()})]}),e.can_download&&e.audio_url&&(0,a.jsxs)(m.z,{variant:"outline",size:"sm",onClick:()=>(async(e,t)=>{try{const s=await fetch(e),a=await s.blob(),r=window.URL.createObjectURL(a),i=document.createElement("a");i.href=r,i.download="".concat(t,".mp3"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}catch(ce){console.error("Download failed:",ce)}})(e.audio_url,e.name),className:"flex items-center gap-2 hover:bg-gray-50 whitespace-nowrap",children:[(0,a.jsx)(z.Z,{className:"h-4 w-4"}),s("Download")]})]}),e.has_audio&&e.audio_url&&(0,a.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4",children:(0,a.jsx)(m.z,{variant:he===e.chapter_id?"default":"outline",size:"sm",onClick:()=>(e=>{const t=pe.current[e];t&&(he===e?(t.pause(),xe(null)):(he&&pe.current[he]&&pe.current[he].pause(),t.play(),xe(e)))})(e.chapter_id),className:"min-w-[100px] transition-all duration-200",children:he===e.chapter_id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(L.Z,{className:"h-4 w-4 mr-2"}),s("Pause")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{className:"h-4 w-4 mr-2"}),s("Play")]})})}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("audio",{ref:t=>{t&&(pe.current[e.chapter_id]=t)},src:e.audio_url,className:"hidden",onEnded:()=>xe(null),onTimeUpdate:()=>(e=>{const t=pe.current[e];t&&ge((s=>({...s,[e]:t.currentTime/t.duration*100})))})(e.chapter_id),onPause:()=>{he===e.chapter_id&&xe(null)},children:[(0,a.jsx)("source",{src:e.audio_url,type:"audio/mpeg"}),s("Your browser does not support the audio element.")]}),(0,a.jsxs)("div",{className:"w-full h-12 bg-gray-50 rounded-lg border border-gray-200 p-3 flex flex-col sm:flex-row items-start sm:items-center gap-2",children:[(0,a.jsx)("div",{className:"flex-1 w-full h-1 bg-gray-200 rounded-full overflow-hidden",children:(0,a.jsx)("div",{className:"h-full bg-primary transition-all duration-200",style:{width:"".concat(fe[e.chapter_id]||0,"%")}})}),(0,a.jsx)("span",{className:"text-sm text-gray-500 min-w-[60px] text-right",children:(null===(t=pe.current[e.chapter_id])||void 0===t?void 0:t.currentTime)?Ne(pe.current[e.chapter_id].currentTime):"0:00"})]})]})]})]})},e.chapter_id)}))})]}),je&&(0,a.jsx)("div",{className:"my-4 p-4 bg-red-100 text-red-700 rounded border border-red-300 text-center",children:s("You do not have enough credits to generate this podcast. Please top up your wallet.")})]})]})})]})});A.getLayout=e=>(0,a.jsx)(c.Z,{children:e});var J=!0,W=(0,n.Z)(A,l.pR)},4359:function(e,t,s){"use strict";s.d(t,{T:function(){return n},f:function(){return l}});var a=s(82684),r=s(57207),i=s(28598),n=a.forwardRef(((e,t)=>(0,i.jsx)(r.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));n.displayName="VisuallyHidden";var l=n},88090:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});const a=(0,s(36965).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},17187:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});const a=(0,s(36965).Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},65750:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});const a=(0,s(36965).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},12413:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});const a=(0,s(36965).Z)("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]])}
1,72603:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});const a=(0,s(36965).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},40746:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});const a=(0,s(36965).Z)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])}},function(e){e.O(0,[57409,62473,2013,43299,38797,69205,99518,65898,10180,56572,56347,27797,52900,46669,7569,68015,41680,74567,91881,49774,92888,40179],(function(){return t=54278,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.