1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3808],{3808:(e,t,n)=>{n.r(t),n.d(t,{AmazonMusicVideoAnnouncementModal:()=>G});var i=n(73295),a=n(81638),s=n(83955),o=n(78495),r=n(54397),d=n(42983),l=n(30037),c=n(86630),u=n(82523),m=n(86148),p=n(27013),f=n(76652),h=n(14489),g=n(93618),x=n(64715),v=n(41785),b=n(72024),y=n(30867),j=n.n(y),k=n(53477),w=n(5858),N=n(17819),A=n(73391),C=n(59537),S=n(57901),F=n(70742),z=n(64155);let L={reach:h.A,video:g.A,cost:x.A},P={title:.22,description:.33,rows:[.44,.55,.66],footer:.77};function R(e){return(0,i.jsxs)(w.Button,{type:"button","data-autofocus":!0,disabled:e.disabled,onClick:e.onClick,className:"gap-2 rounded border border-transparent bg-transparent px-5 text-white transition-transform duration-150 ease-out disabled:opacity-100 [background:linear-gradient(to_bottom,#8A67E0,#6A3FC0)_padding-box,linear-gradient(to_bottom,#A58EE7,#8A67E0)_border-box] active:scale-[0.97] motion-reduce:transition-none motion-reduce:active:scale-100",children:[e.isPending?(0,i.jsx)(k.u,{className:"size-4"}):null,e.children,e.showChevron&&!e.isPending?(0,i.jsx)(v.A,{"aria-hidden":!0,className:"size-4"}):null]})}function E(e){return(0,i.jsxs)(w.Button,{type:"button",variant:"ghost",disabled:e.disabled,onClick:e.onClick,className:"gap-1 pl-2",children:[(0,i.jsx)(b.A,{"aria-hidden":!0,className:"size-4"}),"Back"]})}let D="text-balance font-semibold text-2xl text-foreground leading-tight tracking-tight";function B(e){return e.isActive?(0,i.jsx)(c.L3,{className:D,children:e.children}):(0,i.jsx)("h2",{className:D,children:e.children})}function I(e){let t=(0,C.cn)("text-pretty text-base text-prose-secondary leading-relaxed dark:text-muted-foreground",e.className);return e.isActive?(0,i.jsx)(c.rr,{className:t,children:e.children}):(0,i.jsx)("p",{className:t,children:e.children})}function V(e){var t,n;return(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsx)(s.P.div,{...null==(t=e.motion)?void 0:t.header(P.title),children:(0,i.jsx)(B,{isActive:e.isActive,children:e.title})}),e.description?(0,i.jsx)(s.P.div,{...null==(n=e.motion)?void 0:n.header(P.description),children:(0,i.jsx)(I,{isActive:e.isActive,children:e.description})}):null]})}function T(e){return(0,i.jsx)(s.P.div,{className:(0,C.cn)("mt-auto flex items-center gap-3 pt-3",e.className),...e.motionProps,children:e.children})}function H(e){return(0,i.jsx)("div",{className:"flex flex-1 flex-col gap-5",children:e.children})}function M(e){let t=(0,i.jsx)(w.Button,{type:"button",variant:"ghost",disabled:e.disabled,onClick:e.onClick,children:e.children});return e.hint?(0,i.jsxs)(N.m_,{children:[(0,i.jsx)(N.k$,{asChild:!0,children:t}),(0,i.jsx)(N.ZI,{side:"top",align:"start",className:"max-w-64 text-pretty",children:e.hint})]}):t}function _(e){let t=function(){let e=(0,a.I)();return{header:t=>e?{}:{initial:{opacity:0,y:20,filter:"blur(12px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.65,delay:t,ease:m.sp}},row:t=>(0,m.Vz)(e,t)}}(),n="dismiss"!==e.content.primaryAction;return(0,i.jsxs)(H,{children:[(0,i.jsx)(V,{isActive:e.isActive,title:e.content.title,description:e.content.description,motion:t}),(0,i.jsx)("ul",{className:"space-y-4 pt-2",children:e.content.benefits.map((e,n)=>{var a;let o=L[e.icon];return(0,i.jsxs)(s.P.li,{className:"flex items-start gap-4",...t.row(null!=(a=P.rows[n])?a:P.footer),children:[(0,i.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-gradient-to-t from-[#F5F3FC] to-[#FAFAFA] dark:from-white/10 dark:to-white/5",children:(0,i.jsx)(o,{"aria-hidden":!0,className:"size-5 text-foreground",strokeWidth:1.5})}),(0,i.jsxs)("div",{className:"min-w-0 flex-1 space-y-1 pt-0.5",children:[(0,i.jsx)("p",{className:"font-semibold text-base text-foreground leading-snug",children:e.title}),(0,i.jsx)("p",{className:"text-pretty text-prose-secondary text-sm leading-relaxed dark:text-muted-foreground",children:e.description})]})]},e.title)})}),(0,i.jsxs)(T,{className:e.content.secondaryLabel?"justify-between":"justify-end",motionProps:t.row(P.footer),children:[e.content.secondaryLabel?(0,i.jsx)(M,{hint:e.content.secondaryHint,disabled:e.isBusy,onClick:e.onSecondary,children:e.content.secondaryLabel}):null,(0,i.jsx)(R,{disabled:e.isBusy||e.isVideoSaving,isPending:e.isBusy,onClick:e.onPrimary,showChevron:n,children:e.content.primaryLabel})]})]})}function O(e){return(0,i.jsxs)(H,{children:[(0,i.jsx)(V,{isActive:e.isActive,title:p.it.title}),(0,i.jsx)(z.Hh,{videoSetup:{status:"success",data:{podcastTitle:e.toggle.podcastTitle,settingPublishHlsInRss:e.toggle.enabled,videoEpisodeCount:e.videoEpisodeCount}},toggle:e.toggle}),(0,i.jsxs)(I,{isActive:e.isActive,className:"text-sm",children:[p.it.settingsHint.before,(0,i.jsx)(j(),{href:e.settingsHref,onClick:e.onOpenSettings,className:"font-medium text-foreground underline decoration-border underline-offset-4 transition-colors hover:decoration-foreground motion-reduce:transition-none",children:p.it.settingsHint.link}),p.it.settingsHint.after]}),(0,i.jsxs)(T,{className:"justify-between",children:[(0,i.jsx)(E,{disabled:e.isBusy,onClick:e.onBack}
1),(0,i.jsx)("div",{className:"fade-in-0 zoom-in-95 animate-in duration-200 ease-out motion-reduce:animate-none",children:e.toggle.enabled?(0,i.jsx)(R,{disabled:e.isBusy||e.isLastStep&&e.toggle.isPending,isPending:e.isBusy,onClick:e.onContinue,showChevron:!e.isLastStep,children:e.isLastStep?p.it.finish:p.it.action}):(0,i.jsx)(w.Button,{type:"button",variant:"ghost",disabled:e.isBusy,onClick:e.onSkip,children:p.it.skip})},e.toggle.enabled?"continue":"skip")]})]})}function U(e){let[t,n]=(0,d.useState)(""),[a,s]=(0,d.useState)("idle"),[o,r]=(0,d.useState)(!1),[c,u]=(0,d.useState)(!1),{copyToClipboard:m,hasRecentlyCopiedToClipboard:h}=(0,A.C)();(0,d.useEffect)(()=>{if(!e.isActive||c)return;let t=window.setTimeout(()=>u(!0),8e3);return()=>window.clearTimeout(t)},[e.isActive,c]);let g=!e.isVideoSaving&&(o||c||""!==t.trim()),x=async()=>{s("saving");try{await e.onDone(t.trim()),s("idle")}catch(e){s("error")}},v=async()=>{await m(e.rssFeedUrl)?l.oR.success("RSS feed link copied to clipboard"):l.oR.error("Failed to copy RSS feed link")},b="saving"===a;return(0,i.jsxs)(H,{children:[(0,i.jsx)(V,{isActive:e.isActive,title:p.L5.title,description:p.L5.description}),(0,i.jsx)("div",{onClickCapture:e=>{e.target instanceof Element&&e.target.closest("a")&&r(!0)},children:(0,i.jsxs)(F.Rz,{children:[(0,i.jsx)(F.mv,{step:1,label:"Copy your RSS feed link",children:(0,i.jsx)(S.Nx,{hasCopied:h,onCopy:()=>void v(),rssFeedUrl:e.rssFeedUrl})}),(0,i.jsx)(S.L5,{loginLink:f.a.amazon.loginLink,platformName:f.a.amazon.name,step:2,tutorialLink:f.a.amazon.tutorialLink}),(0,i.jsx)(F.mv,{step:3,label:p.L5.linkStep,children:(0,i.jsx)(S.Mj,{onChange:e=>{n(e),"error"===a&&s("idle")},placeholder:f.a.amazon.placeholderLink,platformName:f.a.amazon.name,value:t})})]})}),"error"===a?(0,i.jsx)("p",{role:"alert",className:"text-destructive text-sm",children:p.L5.error}):null,(0,i.jsxs)(T,{className:"justify-between",children:[(0,i.jsx)(E,{disabled:b,onClick:e.onBack}),g?(0,i.jsx)(R,{disabled:b,isPending:b,onClick:()=>void x(),children:p.L5.action}):(0,i.jsx)(w.Button,{type:"button",variant:"secondary",disabled:!0,children:p.L5.action})]})]})}let q=[.32,.72,0,1],Z={active:{x:"0%"},leaveLeft:{x:"-100%"},leaveRight:{x:"100%"},parkLeft:{x:"-100%",transition:{duration:0}},parkRight:{x:"100%",transition:{duration:0}}};function G(e){let t=(0,a.I)(),{resolvedTheme:n}=(0,r.D)(),f="dark"===n?"/amazon-music-logo-white-cyan.svg":"/amazon-music-logo-black.svg",[h,g]=(0,d.useState)(()=>(0,p.QX)(e.setup,"dismiss"!==e.content.primaryAction)),[x,v]=(0,d.useState)("announcement"),[b,y]=(0,d.useState)(null),[j,k]=(0,d.useState)(!1),[w,N]=(0,d.useState)(!1),A=e.isDismissing||w,C=e.video.toggle.isPending,S=(0,d.useRef)(null),F=e=>{e!==x&&(h.includes(e)||g(p.W5.filter(t=>h.includes(t)||t===e)),y(x),v(e),k(!0))},z=()=>{var e;return F(null!=(e=h[h.indexOf(x)-1])?e:"announcement")},L=h[h.indexOf(x)+1],P=(0,d.useRef)("ready"===e.content.kind).current;(0,d.useEffect)(()=>{if("announcement"===x&&P&&!j)return(0,u.V)(t)},[x,P,j,t]),(0,d.useEffect)(()=>{if(!j)return;let e=window.requestAnimationFrame(()=>K(S.current,x));return()=>window.cancelAnimationFrame(e)},[x,j]);let R=async()=>{try{return await e.onDismiss()}catch(e){return l.oR.error("Failed to save your response",{description:e instanceof Error?e.message:"Please try again."}),!1}},E=async n=>{if(!await R())return;(0,u.V)(t);let i=(0,p.Mp)({...e.setup,...n});l.oR.success(i.title,{description:i.description})},D=()=>{L?F(L):E({hasAmazonLink:e.setup.hasAmazonLink})},B=()=>{switch(e.content.primaryAction){case"show-video-setup":F("video");return;case"show-amazon-setup":F("amazon");return;case"dismiss":j&&"ready"===e.content.kind?E({hasAmazonLink:e.setup.hasAmazonLink}):R();return}},I=t?{duration:0}:{duration:.42,ease:q};return(0,i.jsx)(c.lG,{open:!0,onOpenChange:t=>{t||A||(()=>{let t=j&&("ready"!==e.content.kind||C);"announcement"!==x||t?e.onClose():R()})()},children:(0,i.jsxs)(c.Cf,{"aria-busy":A,className:"gap-0 overflow-hidden rounded-none p-0 sm:max-w-[600px] sm:rounded-none",onEscapeKeyDown:e=>{A&&e.preventDefault()},onOpenAutoFocus:e=>{e.preventDefault(),K(S.current,"announcement")},onPointerDownOutside:e=>{A&&e.preventDefault()},children:[(0,i.jsx)("div",{className:"flex h-[100px] items-end justify-center px-8 pt-12",children:(0,i.jsx)(s.P.div,{className:"h-full",initial:!t&&{opacity:0,y:60}
1,animate:{opacity:1,y:0},transition:t?{duration:0}:{duration:.55,ease:m.sp},children:(0,i.jsx)(o.default,{src:f,alt:"",width:243,height:52,className:"h-full w-auto",priority:!0,unoptimized:!0},f)})}),(0,i.jsx)("div",{ref:S,className:"grid grid-cols-1 overflow-clip",children:h.map(t=>{let n=t===x,a=h.indexOf(t)<h.indexOf(x)?"Left":"Right";return(0,i.jsx)($,{name:t,isActive:n,variant:n?"active":t===b?"leave".concat(a):"park".concat(a),transition:I,children:((t,n)=>{switch(t){case"announcement":return(0,i.jsx)(_,{isActive:n,content:e.content,isBusy:A,isVideoSaving:C,onPrimary:B,onSecondary:()=>void R()});case"video":return(0,i.jsx)(O,{isActive:n,videoEpisodeCount:e.video.videoEpisodeCount,toggle:e.video.toggle,settingsHref:e.video.settingsHref,onOpenSettings:e.onClose,isBusy:A,isLastStep:!L,onBack:z,onContinue:D,onSkip:()=>L?F(L):e.onClose()});case"amazon":if(null==e.rssFeedUrl)return null;return(0,i.jsx)(U,{isActive:n,rssFeedUrl:e.rssFeedUrl,isVideoSaving:C,onBack:z,onDone:async t=>{N(!0);try{if(t&&await e.onSaveAmazonLink(t),!t&&!e.setup.settingPublishHlsInRss)return void e.onClose();await E({hasAmazonLink:!!t||e.setup.hasAmazonLink})}finally{N(!1)}}})}})(t,n)},t)})})]})})}function $(e){let t=(0,d.useRef)(null),[n,a]=(0,d.useState)({variant:e.variant,done:!0});n.variant!==e.variant&&a({variant:e.variant,done:!1});let o="leaveLeft"===e.variant||"leaveRight"===e.variant,r=e.isActive||o&&!n.done;return(0,d.useEffect)(()=>{t.current&&(t.current.inert=!e.isActive)},[e.isActive]),(0,i.jsx)(s.P.div,{ref:t,"data-screen":e.name,"aria-hidden":!e.isActive,style:{visibility:r?"visible":"hidden"},className:"col-start-1 row-start-1 flex flex-col px-8 pt-8 pb-6",variants:Z,initial:!1,animate:e.variant,transition:e.transition,onAnimationComplete:e=>{a(t=>t.variant===e?{...t,done:!0}:t)},children:e.children})}function K(e,t){var n;let i=null==e?void 0:e.querySelector('[data-screen="'.concat(t,'"]')),a=null!=(n=null==i?void 0:i.querySelector("[data-autofocus]:not([disabled])"))?n:null==i?void 0:i.querySelector("input, button:not([disabled])");if(!a)return;a.focus({preventScroll:!0});let s=a.closest('[role="dialog"]');if(!s||s.scrollHeight<=s.clientHeight)return;let o=a.getBoundingClientRect(),r=s.getBoundingClientRect();o.bottom>r.bottom?s.scrollTop+=o.bottom-r.bottom+16:o.top<r.top&&(s.scrollTop-=r.top-o.top+16)}},5858:(e,t,n)=>{n.d(t,{Button:()=>u,r:()=>c});var i=n(73295),a=n(96990),s=n(99878),o=n(76160),r=n(42983),d=n(59537),l=n(17819);let c=(0,o.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:aria-busy:opacity-100",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",inverted:"bg-foreground text-background hover:bg-foreground
1/90 hover:text-background","inverted-gradient":"bg-gradient-to-b from-neutral-700 to-black text-background hover:from-neutral-800 hover:to-black hover:text-background dark:from-neutral-50 dark:to-neutral-300","destructive-subtle":"bg-destructive/10 text-destructive hover:bg-destructive/20",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",input:"bg-background border hover:bg-accent hover:text-accent-foreground",outline:"border border-border bg-transparent hover:bg-accent hover:text-accent-foreground","outline-gradient":"border border-border/70 bg-gradient-to-b from-card/40 to-card/10 hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",muted:"bg-muted text-muted-foreground hover:bg-foreground/10 hover:text-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",betaDefault:"bg-gradient-to-b from-[#8965DF] via-[#7A53D0] to-[#6B41C1] border border-[#A48DE7] text-white",betaSecondary:"bg-gradient-to-b from-[#FAFAFA] via-[#F7F7F7] to-[#F5F5F5] border border-[#D6D6D6] text-[#000]",dynamicBlack:"bg-gradient-to-b from-[#4D4D4D] via-[#242424] to-[#0D0D0D] text-white dark:from-[#8965DF] dark:via-[#7A53D0] dark:to-[#6B41C1] dark:border dark:border-[#A48DE7]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",xs:"h-8 rounded-md px-3",xxs:"h-7 rounded-md px-2.5 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10","icon-sm":"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),u=r.forwardRef((e,t)=>{let{className:n,variant:o,size:r,asChild:u=!1,tooltip:m,tooltipPosition:p="top",...f}=e,h=u?a.DX:"button",g=u?{}:{type:"button"};return m?(0,i.jsxs)(l.m_,{children:[(0,i.jsx)(l.k$,{asChild:!0,children:(0,i.jsx)("div",{children:(0,i.jsx)(h,{className:(0,d.cn)(c({variant:o,size:r,className:n})),ref:t,...g,...f})})}),(0,i.jsx)(s.KL,{children:(0,i.jsx)(l.ZI,{side:p,className:"max-w-[350px]",children:m})})]}):(0,i.jsx)(h,{className:(0,d.cn)(c({variant:o,size:r,className:n})),ref:t,...g,...f})});u.displayName="Button"},6514:(e,t,n)=>{n.d(t,{P:()=>s}),n(73295);var i=n(42983);let a=i.createContext(void 0);function s(){return i.useContext(a)}},17819:(e,t,n)=>{n.d(t,{TooltipProvider:()=>r,ZI:()=>c,k$:()=>l,m_:()=>d});var i=n(73295),a=n(99878),s=n(42983),o=n(59537);let r=a.Kq,d=a.bL,l=a.l9,c=s.forwardRef((e,t)=>{let{className:n,sideOffset:s=4,...r}=e;return(0,i.jsx)(a.ZL,{children:(0,i.jsx)(a.UC,{ref:t,sideOffset:s,className:(0,o.cn)("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md border border-border/30 bg-popover px-3 py-1.5 text-popover-foreground text-sm shadow-sm data-[state=closed]:animate-out",n),...r})})});c.displayName=a.UC.displayName},20895:(e,t,n)=>{n.d(t,{E:()=>s,d:()=>o});var i=n(73295),a=n(59537);function s(e){let{fade:t,className:n,...s}=e;return(0,i.jsx)("div",{className:(0,a.cn)("fade-in-0 relative animate-in rounded-md duration-500","right"===t&&"[mask-image:linear-gradient(to_right,black,transparent)]","top"===t&&"[mask-image:linear-gradient(to_bottom,transparent,black)]","bottom"===t&&"[mask-image:linear-gradient(to_bottom,black,transparent)]",n),...s,children:(0,i.jsx)("div",{"aria-hidden":!0,className:(0,a.cn)("absolute inset-0 animate-pulse rounded-[inherit] bg-foreground
1/10")})})}function o(e){let{lineClassName:t,barClassName:n,fade:o,...r}=e;return(0,i.jsx)("div",{className:(0,a.cn)("flex items-center",t),...r,children:(0,i.jsx)(s,{className:(0,a.cn)("w-full rounded-sm",n),fade:o})})}},33149:(e,t,n)=>{n.d(t,{C:()=>a,r:()=>s});var i=n(73295);let a="About video in RSS feed";function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Turn this on to include video in your RSS feed for episodes that have it. Apps that support podcast video can pick it up automatically."}),(0,i.jsx)("p",{children:"That includes Apple Podcasts, Amazon Music, and other players adding video support. Audio-only listeners still get your regular audio file â nothing changes for them."}),(0,i.jsx)("p",{children:"You can turn this on or off anytime for each podcast."})]})}},47050:(e,t,n)=>{n.d(t,{d:()=>c});var i=n(73295),a=n(60554),s=n(76160),o=n(42983),r=n(59537);let d=(0,s.F)("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:bg-foreground
1/30",{variants:{size:{default:"h-6 w-11",sm:"h-5 w-9"},variant:{default:"data-[state=checked]:bg-primary",inverted:"data-[state=checked]:bg-foreground"}},defaultVariants:{size:"default",variant:"default"}}),l=(0,s.F)("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{default:"h-5 w-5 data-[state=checked]:translate-x-5",sm:"h-4 w-4 data-[state=checked]:translate-x-4"}},defaultVariants:{size:"default"}}),c=o.forwardRef((e,t)=>{let{className:n,size:s,variant:o,...c}=e;return(0,i.jsx)(a.bL,{className:(0,r.cn)(d({size:s,variant:o}),n),...c,ref:t,children:(0,i.jsx)(a.zi,{className:(0,r.cn)(l({size:s}))})})});c.displayName=a.bL.displayName},47901:(e,t,n)=>{n.d(t,{V:()=>d});var i=n(73295),a=n(5858),s=n(62912),o=n(17819),r=n(59537);function d(e){var t;return(0,i.jsx)(o.TooltipProvider,{children:(0,i.jsxs)(o.m_,{delayDuration:0,children:[(0,i.jsx)(o.k$,{asChild:!0,children:(0,i.jsx)(a.Button,{"aria-label":e.label,className:(0,r.cn)("relative shrink-0 rounded-full text-muted-foreground/60 transition-colors duration-200 ease-linear before:absolute before:-inset-1 before:content-[''] hover:text-muted-foreground motion-reduce:transition-none",e.className),size:"icon-sm",type:"button",variant:"ghost",children:(0,i.jsx)(s.V,{"aria-hidden":!0,className:"size-4"})})}),(0,i.jsx)(o.ZI,{className:"max-w-xs rounded-xl border border-border/30 p-2 shadow-xl",side:null!=(t=e.side)?t:"top",children:(0,i.jsx)("div",{className:"flex flex-col gap-2 rounded-md bg-muted/50 p-4 text-sm leading-normal",children:e.children})})]})})}},62912:(e,t,n)=>{n.d(t,{V:()=>a});var i=n(68361);let a=(0,n(11214).b)(i.A)},64155:(e,t,n)=>{n.d(t,{Hh:()=>f,Rq:()=>m});var i=n(73295),a=n(33149),s=n(44193),o=n(47901),r=n(71841),d=n(20895),l=n(47050),c=n(10604),u=n(94800);function m(e){var t,n,a,s;let{data:o,isLoading:r}=u.i.v2.workspaces.getVideoSetupTable.useQuery(),d=null==o?void 0:o.find(t=>t.podcastId===e.podcastId),l=r||!d?{status:"loading"}:{status:"success",data:{podcastTitle:null!=(t=d.title)?t:"",settingPublishHlsInRss:d.settingPublishHlsInRss,videoEpisodeCount:d.videoEpisodeCount}},m=(0,c.u)({podcastId:e.podcastId,podcastTitle:null!=(n=null==d?void 0:d.title)?n:"",initialValue:null!=(a=null==d?void 0:d.settingPublishHlsInRss)&&a,videoEpisodeCount:null!=(s=null==d?void 0:d.videoEpisodeCount)?s:0}),f="loading"===l.status?{status:"loading"}:{status:"ready",enabled:m.enabled,isPending:m.isPending,podcastTitle:l.data.podcastTitle,onCheckedChange:m.onCheckedChange};return(0,i.jsx)(p,{podcastId:e.podcastId,videoSetup:l,toggle:f})}function p(e){return(0,i.jsx)(s.L,{description:"Include HLS video in your RSS feed so Apple Podcasts and other apps that support video can access your episodes.",headingId:"hls-in-rss-integration-heading",headerActions:(0,i.jsx)(o.V,{className:"translate-x-2 -translate-y-2",label:a.C,children:(0,i.jsx)(a.r,{})}),icon:r.A,title:"Video in RSS feed",children:(0,i.jsx)("div",{className:"p-2 pt-0",children:(0,i.jsx)(f,{videoSetup:e.videoSetup,toggle:e.toggle})})})}function f(e){var t;let n="loading"===e.videoSetup.status,a="success"===e.videoSetup.status?e.videoSetup.data:null;return(0,i.jsxs)("div",{"aria-busy":n,className:"flex items-center justify-between gap-4 rounded-md bg-muted/50 p-6",children:[(0,i.jsxs)("div",{className:"flex min-w-0 grow flex-col gap-1",children:[(0,i.jsx)("h3",{className:"font-medium text-secondary-foreground text-sm leading-snug",children:"Include video in RSS feed"}),n?(0,i.jsx)(d.d,{barClassName:"h-3.5",lineClassName:"h-5 w-[70%]",fade:"right"}):a?(0,i.jsx)("p",{className:"fade-in-0 min-h-5 animate-in text-muted-foreground text-sm duration-500 motion-reduce:animate-none",children:0===(t=a.videoEpisodeCount)?"When you publish video episodes, they can appear on Apple Podcasts, Amazon Music, and other supported apps.":"".concat(t," video episode").concat(1===t?"":"s"," can appear on Apple Podcasts, Amazon Music, and other supported apps.")}):null]}),(0,i.jsx)("div",{className:"flex shrink-0 items-center",children:"loading"===e.toggle.status?(0,i.jsx)(d.E,{"aria-hidden":!0,
1className:"h-6 w-11 rounded-full"}):(0,i.jsx)(l.d,{checked:e.toggle.enabled,onCheckedChange:e.toggle.isPending?void 0:e.toggle.onCheckedChange,"aria-busy":e.toggle.isPending,variant:"inverted","aria-label":"Toggle video in RSS feed for ".concat(e.toggle.podcastTitle)})})]})}},71841:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(11020);let a=(0,n(11214).b)(i.A)},82523:(e,t,n)=>{n.d(t,{V:()=>s});var i=n(50226),a=n(86148);function s(e){let t;if(e)return;let n=window.setTimeout(()=>{t=function(){let e={colors:a.MM,disableForReducedMotion:!0,ticks:300,gravity:.9,zIndex:200},t=(t,n,a)=>{(0,i.A)({...e,...a,origin:{x:+("left"!==t),y:.9},angle:"left"===t?60:120,particleCount:Math.floor(450*n)})},n=()=>{["left","right"].forEach(e=>{t(e,.3,{spread:30,startVelocity:75,scalar:1.1}),t(e,.25,{spread:70,startVelocity:60}),t(e,.3,{spread:110,decay:.91,scalar:.9}),t(e,.1,{spread:130,startVelocity:30,decay:.92,scalar:1.3}),t(e,.15,{spread:130,startVelocity:55})})};n();let s=window.setTimeout(n,240);return()=>{window.clearTimeout(s),i.A.reset()}}()},350);return()=>{window.clearTimeout(n),null==t||t()}}},86148:(e,t,n)=>{n.d(t,{GP:()=>s,MM:()=>a,O6:()=>c,TF:()=>u,Vz:()=>o,sp:()=>i,uD:()=>d,vi:()=>l});let i=[.215,.61,.355,1],a=["#8A67E0","#6A3FC0","#A58EE7","#F5F3FC","#FFFFFF"],s="radial-gradient(245.87% 387.92% at 50% 0%, #FFFFFF 13.58%, rgba(255, 255, 255, 0.01) 100%), linear-gradient(0deg, rgba(93, 35, 255, 0.3), rgba(93, 35, 255, 0.3))";function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e?{initial:!1}:{initial:{opacity:0,y:12,filter:"blur(12px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},exit:{opacity:0,y:-8,filter:"blur(8px)"},transition:{duration:.45,delay:t,ease:i}}}function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){let t=null==e?void 0:e.trim();if(t)return t}return""}function d(e){return r(e.authorName,e.ownerName,e.editorName)}function l(e,t){return r(e.authorEmail,e.ownerEmail,e.editorEmail,t)}let c={noGuarantee:"I understand iHeartMedia does not guarantee my content will be used or published, and it may be removed at any time without notice.",license:{prefix:"I agree to the ",links:[{label:"Content License Agreement",href:"https://www.iheart.com/content/iheartradio-destination-content-license-agreement/"},{label:"Terms of Use",href:"https://www.iheart.com/content/terms-of-use/"}],middle:", and will ensure my content follows the ",policy:{label:"Podcast Content Policy",href:"https://www.iheart.com/content/iheartmedia-content-policy/"},suffix:"."},certify:"I certify under penalty of perjury that this information is accurate, that I'm the publisher (or authorized to act for them), and that I own or am authorized to license this content."},u="I understand submitting will turn on video in my RSS feed and it will be available to any other podcast app that reads video from RSS."},86630:(e,t,n)=>{n.d(t,{Cf:()=>f,Es:()=>g,HM:()=>m,L3:()=>x,c7:()=>h,lG:()=>l,rr:()=>v,zM:()=>c});var i=n(73295),a=n(8240),s=n(6357),o=n(42983),r=n(6514),d=n(59537);let l=e=>{let{modal:t,...n}=e,s=(0,r.P)();return(0,i.jsx)(a.bL,{modal:null==s&&t,...n})},c=a.l9,u=a.ZL,m=a.bm,p=o.forwardRef((e,t)=>{let{className:n,...s}=e,o=(0,r.P)();return(0,i.jsx)(a.hJ,{ref:t,className:(0,d.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in dark:bg-muted/80",null!=o&&"absolute",n),...s})});p.displayName=a.hJ.displayName;let f=o.forwardRef((e,t)=>{let{className:n,closeClassName:o,closeIconClassName:l,overlayClassName:c,children:m,...f}=e,h=(0,r.P)(),g=null!=h;return(0,i.jsxs)(u,{container:g?h:void 0,children:[(0,i.jsx)(p,{className:c}),(0,i.jsxs)(a.UC,{ref:t,className:(0,d.cn)("fixed z-50 grid w-full gap-4 bg-card p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in","max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=open]:slide-in-from-bottom max-sm:inset-x-0 max-sm:bottom-0 max-sm:max-h-[90vh] max-sm:overflow-y-auto max-sm:rounded-t-lg max-sm:rounded-b-none","sm:data-[state=closed]:fade-out-0 sm:data-[state=open]:fade-in-0","sm:data-[state=closed]:zoom-out-95 sm:data-[state=open]:zoom-in-95 sm:data-[state=closed]:slide-out-to-left-1/2 sm:data-[state=closed]:slide-out-to-top-[48%] sm:data-[state=open]:slide-in-from-left-1/2 sm:data-[state=open]:slide-in-from-top-[48%] max-w-lg sm:top-[50%] sm:left-[50%] sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rou
1nded-md",g&&"absolute",n),...f,children:[m,(0,i.jsxs)(a.bm,{className:(0,d.cn)("absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus-visible:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",o),children:[(0,i.jsx)(s.A,{className:(0,d.cn)("h-4 w-4",l)}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=a.UC.displayName;let h=e=>{let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...n})};h.displayName="DialogHeader";let g=e=>{let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};g.displayName="DialogFooter";let x=o.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,i.jsx)(a.hE,{ref:t,className:(0,d.cn)("font-semibold text-lg leading-none tracking-tight",n),...s})});x.displayName=a.hE.displayName;let v=o.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,i.jsx)(a.VY,{ref:t,className:(0,d.cn)("text-muted-foreground text-sm",n),...s})});v.displayName=a.VY.displayName}}]);
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.