1import{r as I,bx as Ae,ad as ns,o as Re,w as q,c as ln,u as m,d as Te,h as Le,j as e,C as T,by as cn,bz as dn,B as k,aA as B,b8 as Ls,b9 as Es,U as r,aM as Hs,L as K,F as w,f as ts,g as t,bA as Ee,t as U,bB as un,bC as pn,ae as hn,bD as mn,bE as fn,n as f,bF as $,ax as se,ay as ne,b0 as pe,bG as ge,al as ve,H as os,aF as He,bH as fe,k as D,bI as j,S as _,R as N,T as ee,m as E,l as rs,bJ as as,bK as ls,bL as Ns,A as Ne,aC as be,bo as ye,bM as xn,bN as gn,bO as vn,bP as bn,bi as jn,bQ as yn,bR as wn,M as ze,_ as ue,aW as Sn,bS as ps,ai as he,bT as Ds,b3 as we,bU as Qs,bV as Ws,bW as kn,p as cs,bX as Cn,bY as An,bZ as Pn,b_ as _n,b$ as In,c0 as On,c1 as Mn,X as $n,c2 as zn,Q as xe,az as Bs,c3 as is,v as Rn,c4 as Tn,c5 as Ln,G as En,c6 as Fs,au as Hn,ba as Nn,c7 as Dn,V as hs,c8 as Qn,ak as qs,c9 as Wn,ca as Bn,cb as Fn,cc as qn,cd as Un,ce as Kn,cf as Vn,J as Yn,cg as Gn,Z as Xn,ch as Zn,W as Jn}from"./index-DUWMLp_A.js";import{u as et,U as st}from"./UserSurveyModal-CA9G403U.js";import{u as R}from"./useOwnerChannelQuery.hook-DMA2OAGw.js";import{u as De}from"./usePricesQuery.hook-DGCBLUr_.js";import{u as ds,a as nt,i as Us,U as tt}from"./suitcase-DD1avrk3.js";import{u as it,r as ot,a as rt}from"./referralRewardsQueryOptions-nh8b_zTQ.js";import{u as me}from"./useIntlFormatters-CUMnNc3X.js";import{d as at}from"./date-CPD3JeRx.js";import{u as lt,a as ct,T as dt,E as ut}from"./TranscriptionEditQuotaModal-BIPaA23U.js";import{Q as je,C as Se,N as pt}from"./NewsletterQuota-CGgJLTLA.js";import{u as Ks}from"./useQuotaUpdatePaymentValidation-BpzmK3BY.js";import{b as ht,c as Vs,d as Ys}from"./index-D1ml6xH8.js";import{u as ke,S as mt}from"./SubscribeToAIModal-CXfCyhaF.js";import{u as Ce}from"./useHostingSubscriptionQuery-nwpbqSQX.js";import{i as Gs,a as ft}from"./plane-SuGG_7iN.js";import{s as Xs}from"./satellite-DK0wwn8G.js";import{u as xt}from"./useArchivedShowsQuery.hook-DkmSGWO6.js";import{u as gt,A as vt,a as bt}from"./updateSubscriptionMutation-CtBbJEZw.js";import{u as jt}from"./useActiveShowsQuery.hook-BCGt8g5V.js";import{u as Zs}from"./usePsoSubscriptionQuery-lGUJpkh3.js";import{u as yt}from"./useKeywordsQuotaQuery.hook-BEksiTzK.js";import{U as wt}from"./UpgradeBadge-BSQuY__2.js";import{u as St}from"./useTrackedShowsQuotaQuery.hook-zF09QbRm.js";import"./confetti-BlGT6gp2.js";import"./objectSupport-Ch3-YF5i.js";import"./useIsChannelHostingFreemium-BJgIRhHf.js";import"./useCreateStripeCheckoutSessionMutation-DrFe_6Oy.js";import"./useSubscriptionPricePreviewQuery-C1YnScMg.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"03512784fd78c0db53b8a0e370b452e2333ce80d"};var n=new s.Error().stack;
1n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="1986c3cf-730a-4a92-ae6d-2114621c525c",s._sentryDebugIdIdentifier="sentry-dbid-1986c3cf-730a-4a92-ae6d-2114621c525c")}catch{}})();const kt={eur:"validatedTransactionHostingEuros",usd:"validatedTransactionHostingDollars",gbp:"validatedTransactionHostingPounds"},Ct={eur:"validatedTransactionPsoEuros",usd:"validatedTransactionPsoDollars",gbp:"validatedTransactionPsoPounds"},At={eur:"validatedTransactionAIEuros",usd:"validatedTransactionAIDollars",gbp:"validatedTransactionAIPounds"},Pt=(s,n)=>{const i=["launch","boost","supersonic"].includes(s),a=["pso_starter","pso_grow"].includes(s),l=["episode_ai"].includes(s);return i?kt[n]:a?Ct[n]:l?At[n]:null},_t=s=>{const n=["launch","boost","supersonic"].includes(s),i=["pso_starter","pso_grow"].includes(s),a=["episode_ai"].includes(s);return n?"validatedTransactionHosting":i?"validatedTransactionPSO":a?"validatedTransactionAI":null},It=({condition:s=!1,subscription:n,currency:i})=>{const{data:a}=De(),c=a?.[i]?.[n?.pricing],[d,o]=I.useState(!1),u=Ae(n?.prices.base),h=n?.prices.extra?Ae(n?.prices.extra):0,y=n?.discount?Ae(n?.discount):0,x=u+h-y,M=n?.yearly?c?.yearly:c?.monthly,v=n?Pt(n?.pricing,i):null,O=n?_t(n?.pricing):null;I.useEffect(()=>{d||!n||!s||!v||!O||(ns(v),ns(O),dataLayer&&(dataLayer.push({ecommerce:{purchase:{actionField:{id:n.id,revenue:`${x}`},products:[{name:n.pricing,price:a?`${Ae(M?.base)}`:"0"}]}},event:v}),o(!0)))},[n,a,d,x,M?.base,s,v,O])},Ot=()=>Re({origin:q().min(1,{message:ln.required()})}),Mt="Form__Form__form__FpPBgc6v",$t="Form__Form__radioGroup__FpPBgc6v",zt="Form__Form__radio__FpPBgc6v",Rt="Form__Form__actions__FpPBgc6v",Pe={form:Mt,radioGroup:$t,radio:zt,actions:Rt},Tt=({onClose:s})=>{const{t:n}=m(),i=Ot(),a=Te({mode:"onChange",defaultValues:{origin:""},resolver:Le(i)}),{isValid:l,isDirty:c}=a.formState,d=et(),o={word_of_mouth:n("PMPPjpNl",{description:"Word of mouth",default:"Bouche à oreille"}),search_engine:n("ioZWo9O6",{description:"Search engine (Google, Bing, etc.)",default:"Moteur de recherche (Google, Bing, etc.)"}),social_networks:n("uD2iyBYl",{description:"Social networks",default:"Réseaux sociaux"}),youtube:n("fq8JfVxv",{description:"YouTube",default:"YouTube"}),ausha_website:n("cdsagCWg",{description:"ausha.co website (blog, academy, etc.)",default:"Site web ausha.co (blog, académie, etc.)"}),event:n("KTpfawai",{description:"Event",default:"Ãvénement"}),ausha_podcast:n("7JXubb6W",{description:"On an Ausha podcast",default:"Via un podcast Ausha"}),podcast_ad:n("M5yQQvcJ",{description:"In a podcast ad",default:"Entendu dans une publicité sur un podcast"}),support_group:n("bOc0hWEG",{description:"Podcaster support group (Facebook, Discord, Slack, etc.)",default:"Groupe de soutien aux podcasteurs (Facebook, Discord, Slack, etc.)"}),other:n("mgVsbf5R",{description:"Other",default:"Autre"})},u=h=>{d.mutate({type:"first_transaction",answers:h},{onSuccess:()=>{s()}})};return e.jsxs("form",{onSubmit:a.handleSubmit(u),className:Pe.form,children:[e.jsx(T,{control:a.control,name:"origin",render:({field:h})=>e.jsx(cn,{onChange:h.onChange,value:h.value,"aria-label":n("zSe2ts",{description:"How did you hear about us?",default:"Comment avez-vous entendu parler de nous ?"}),className:Pe.radioGroup,children:Object.keys(o).map(y=>e.jsx(dn,{value:y,className:Pe.radio,"data-testid":`subscription-how-did-you-hear-option-${y}`,children:o[y]},y))})}),e.jsx("div",{className:Pe.actions,children:e.jsx(k,{type:"submit",isDisabled:!l||!c,isLoading:d.isPending,"data-testid":"subscription-how-did-you-hear-submit-button",children:n("EWLVLG",{description:"Submit",default:"Envoyer"})})})]})},Lt="HowDidYouHearModal__HowDidYouHearModal__modal__PgvB8gW9",Et="HowDidYouHearModal__HowDidYouHearModal__formWrapper__PgvB8gW9",ms={modal:Lt,formWrapper:Et},Ht=({isOpen:s,onOpenChange:n})=>{const{t:i}=m();return e.jsxs(B,{isOpen:s,onOpenChange:n,size:"medium",className:ms.modal,isDismissable:!1,"data-testid":"subscription-how-did-you-hear-modal",children:[e.jsx(Ls,{children:e.jsx(Es,{children:i("zSe2ts",{description:"How did you hear about us?",default:"Comment avez-vous entendu parler de nous ?"})})}),e.jsxs("div",{className:ms.formWrapper,children:[e.jsx(r,{fontWeight:"--fw-semibold",children:i("dltrwZ",{description:"Choose 1 answer",default:"Choisissez une réponse"})}),e.jsx(Tt,{onClose:()=>n(!1)})]})]})},Nt="/assets/chargebee-badge-DfO3u2mc.svg",Dt="/assets/stripe-badge-BFULOz6G.svg",_e={STRIPE:"stripe",CHARGEBEE:"chargebee"},Qt=()=>{const{data:s}=R(),{t:n}=m(),i=s?.isHostingPro?_e.CHARGEBEE:_e.STRIPE,a=async()=>{try{const l=await Ee(),{url:c}=l;window.open(c,"_self")}catch{U.alert(n("K0wygg",{description:"An unexpected error occurred. Please try again later.",default:"Une erreur inattendue est survenue. Merci de réessayer plus tard."}))}};return e.jsxs(Wt,{children:[e.jsx(Bt,{children:n("p+DH8b",{description:"Billing",default:"Facturation"})}),e.jsxs(Ft,{children:[e.jsxs(qt,{children:[e.jsxs(Ut,{children:[e.jsx(Kt,{icon:Hs}),e.jsx(Vt,{children:n("029oQ+",{description:"Payment and invoicing",default:"Paiement et facturation"})})]}),e.jsx(Yt,{children:n("KxFPHh",{description:"Retrieve your invoice history, modify your billing information (address, VAT number, etc.) and update your payment method from your Str
1ipe billing space.",default:"Retrouvez l'historique de vos factures, modifiez vos informations de facturation (adresse, numéro de TVA, etc) et mettez à jour votre moyen de paiement depuis votre espace de paiement Stripe"})})]}),e.jsxs(Gt,{children:[i===_e.CHARGEBEE?e.jsx(K,{variant:"button-primary",href:"https://ausha.chargebeeportal.com/portal/v2/login?forward=portal_main",target:"_blank",endIcon:e.jsx(w,{icon:ts}),children:n("3pgbgS",{description:"My billing portal",default:"Mon espace de facturation"})}):e.jsx(k,{onPress:a,endIcon:e.jsx(w,{icon:ts}),children:n("3pgbgS",{description:"My billing portal",default:"Mon espace de facturation"})}),e.jsx("img",{src:i===_e.CHARGEBEE?Nt:Dt})]})]})]})},Wt=t.section` 2 display: flex; 3 flex-direction: column; 4 gap: 1rem; 5`,Bt=t.div` 6 color: var(--black); 7 font-weight: var(--fw-bold); 8 font-size: var(--fs-heading-s); 9`,Ft=t.div` 10 background-color: var(--white); 11 border-radius: var(--r-l); 12 padding: var(--container-padding-mobile); 13 display: flex; 14 flex-direction: column; 15 row-gap: 2rem; 16 17 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 18 padding: var(--container-padding); 19 } 20`,qt=t.div` 21 flex-basis: 100%; 22 display: flex; 23 flex-direction: column; 24 gap: 0.75rem; 25`,Ut=t.div` 26 display: flex; 27 align-items: center; 28 gap: 0.5rem; 29`,Kt=t(w)` 30 font-size: 1rem; 31 color: var(--primary); 32`,Vt=t.div` 33 font-weight: var(--fw-semibold); 34`,Yt=t(r)` 35 color: var(--neutral500); 36`,Gt=t.div` 37 display: flex; 38 align-items: center; 39 justify-content: space-between; 40 41 @media (max-width: 1134px) { 42 flex-direction: column; 43 align-items: flex-start; 44 gap: 1rem; 45 } 46`,us=({status:s})=>{const{t:n}=m(),i={active:{icon:e.jsx(fs,{icon:hn}),variant:"primary"},canceled:{icon:e.jsx(fs,{icon:pn}),variant:"alert"}},a={active:n("+e1Nvu",{description:"Subscribed",default:"Abonné"}
46),canceled:n("Cp3piw",{description:"Canceled",default:"Résilié"})};return e.jsx(un,{"data-testid":"subscription-offer-status-badge","data-status":s,...i[s],children:a[s]})},fs=t(w)` 47 width: 0.75rem; 48 height: 0.75rem; 49`,Js=({isDisabled:s=!1})=>{const{t:n}=m(),i=lt(),{data:a}=R(),l=a?.isHostingPro??!1,[c,d]=I.useState(!1),[o,u]=I.useState(!1),h=ct(),[y,x]=I.useState(null),M=mn.detailByType(fn.TRANSCRIPT),v=I.useCallback(()=>{U.success(n("aKByft",{description:"Your transcription time limit has been updated",default:"Votre quota de minutes de transcription a été mis à jour"})),x(null),u(!1)},[n]),{handleQuotaUpdateError:O}=Ks({onPaymentValidated:v,invalidateQueryKeys:[M]}),C=p=>{h.mutate(p,{onSuccess:v,onError:O})},A=p=>{x(p),d(!1),u(!0)};return e.jsxs(e.Fragment,{children:[e.jsx(je,{"data-testid":"subscription-hosting-transcription-quota",title:n("WXrISI",{description:"Transcription",default:"Transcription"}),currentValue:Math.floor(i?.data?.total||0),maxValue:(i?.data?.maximum||0)+(i?.data?.extraMaximum||0),valueUnit:n("TZr4xU",{description:"min",default:"min"}),action:s?null:l?e.jsx(Se,{}):e.jsx(Zt,{variant:"link-primary",size:"small",onPress:()=>d(!0),"data-testid":"subscription-quota-modify-button",children:n("4AM9lj",{description:"Modify limit",default:"Modifier la limite"})}),tooltipMessage:e.jsx(f,{i18nKey:"sRxc55",description:"Your transcription time quota is reset every 1st of the month. <link>Learn more about transcription</link>",default:"Votre quota de temps de transcription est réinitialisé chaque 1er du mois. <link>En savoir plus sur la transcription</link>",components:{link:e.jsx(Xt,{href:n("excMDu",{description:"https://help.ausha.co/en/articles/9235766-how-to-generate-edit-and-export-the-transcript-of-an-episode",default:"https://help.ausha.co/fr/articles/9235766-comment-generer-modifier-et-exporter-la-transcription-d-un-de-mes-episodes"}),target:"_blank"})}})}),e.jsx(dt,{isOpen:o,onOpenChange:u,isLoading:h.isPending,onSubmit:C,quantity:y||0}),e.jsx(ut,{isOpen:c,onOpenChange:d,onConfirm:A})]})},Xt=t.a` 50 color: inherit; 51 font-size: inherit; 52 text-decoration: underline; 53 font-weight: var(--fw-semibold); 54`,Zt=t(k)` 55 padding: 0; 56 font-weight: var(--fw-semibold); 57`,Jt=()=>{const{t:s}=m();return e.jsxs(ei,{children:[e.jsx(r,{variant:"headingS",fontWeight:"--fw-semibold",children:s("pdi7+N",{description:"You will lose access toâ¦",default:"Vous perdrez l'accès à ..."})}),e.jsxs(si,{children:[e.jsxs(xs,{children:[e.jsxs(Ie,{children:[e.jsx(Oe,{icon:$}),e.jsx(r,{children:s("bailkN",{description:"AI-generated & search-optimized titles, show notes, tags, and chapters.",default:"La génération automatique de titres d'épisodes, de descriptions, de tags, de chapitres et de newsletters."})})]}),e.jsxs(Ie,{children:[e.jsx(Oe,{icon:$}),e.jsx(r,{children:s("8fWkYF",{description:"AI-generated social media posts & newsletters",default:"La génération automatique de posts pour les réseaux sociaux."})})]})]}),e.jsxs(xs,{children:[e.jsxs(Ie,{children:[e.jsx(Oe,{icon:$}),e.jsx(r,{children:s("TG6bvR",{description:"Customizable AI tone of voice & preferences",default:"La personnalisation de l'IA avec vos propres consignes"})})]}),e.jsxs(Ie,{children:[e.jsx(Oe,{icon:$}),e.jsx(r,{children:s("AVU0aj",{description:"60 bonus transcription minutes every month",default:"60 minutes supplémentaires de transcription"})})]})]})]})]})},ei=t.div` 58 padding: 1.5rem; 59 border-radius: var(--r-l); 60 background-color: var(--warning50); 61 display: flex; 62 flex-direction: column; 63 row-gap: 1rem; 64`,si=t.div` 65 list-style: none; 66 display: flex; 67 flex-direction: column; 68 gap: 1rem; 69 70 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 71 flex-direction: row; 72 } 73`,Ie=t.li` 74 display: flex; 75 column-gap: 0.5rem; 76`,Oe=t(w)` 77 padding-top: 0.25rem; 78 color: var(--warning500); 79 width: 0.75rem; 80 height: 0.75rem; 81`,xs=t.ul` 82 display: flex; 83 flex-direction: column; 84 row-gap: 1rem; 85 flex: 1; 86 padding-left: 0; 87`,ni=({isOpen:s,onOpenChange:n,onSubmit:i})=>{const{t:a}=m(),l=()=>n(!1);return e.jsxs(ti,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(ii,{children:[e.jsxs(ri,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:a("AW8UnL",{description:"Are you sure you want to cancel your Ausha Intelligence plan?",default:"Etes-vous sûr de vouloir résilier votre plan Ausha Intelligence ?"})}),e.jsx(r,{color:"--neutral500",children:a("d0Fb35",{description:"Cancellation will result in the loss of access to the following key features...",default:"L'annulation du plan Ausha Intelligence entraînera la perte d'accès à certaines fonctionnalités pour vos émissions."})})]}),e.jsx(se,{icon:e.jsx(oi,{icon:ne}),onPress:l,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsx(ai,{children:e.jsx(Jt,{})}),e.jsxs(li,{children:[e.jsx(k,{variant:"link-primary",onPress:l,children:a("UE8dfu",{description:"Keep my subscription",default:"Conserver mon abonnement"})}),e.jsx(k,{variant:"danger",onPress:i,"data-testid":"subscription-cancel-confirm-button",children:a("BSmgpB",{description:"Continue to cancellation",default:"Confirmer l'annulation"})})]})]})},ti=t(B)` 88 padding: 1.5rem; 89 display: flex; 90 flex-direction: column; 91 align-items: stretch; 92 row-gap: 2rem; 93`,ii=t.div` 94 display: flex; 95 align-items: start; 96 justify-content: space-between; 97 column-gap: 2rem; 98 99 & > button { 100 flex-shrink: 0; 101 } 102`,oi=t(w)` 103 width: 1rem; 104 height: 1rem; 105 color: var(--neutral500); 106`,ri=t.div` 107 display: flex; 108 flex-direction: column; 109 row-gap: 0.25rem; 110 flex-grow: 1; 111`,ai=t.div` 112 display: flex; 113 flex-direction: column; 114 row-gap: 0.5rem; 115 overflow-y: auto; 116`,li=t.div` 117 padding-top: 1.5rem; 118 border-top: 1px solid var(--neutral100); 119 display: flex; 120 align-items: center; 121 justify-content: space-between; 122`,ci=["endPodcast","budgetary","technical","customerSupport","other","newHost","other"],di=["lessExpensive","morePerforment","betetrInterface","moreFeatures","specificOffer","other"],ui=()=>{const{t:s}=m();return Re({reasons:pe(ge(ci)).nullable(),newHostReasons:pe(ge(di)).nullable(),newHostOtherReason:q().nullable(),otherReason:q().nullable(),message:q().nullable()}).refine(n=>n.reasons&&n.reasons.length>0||n.newHostReasons&&n.newHostReasons.length>0||n.newHostOtherReason&&n.newHostOtherReason.trim()!==""||n.otherReason&&n.otherReason.trim()!=="",{message:s("7ICMOA",{description:"Please select at least one reason",default:"Veuillez sélectionner au moins une raison"}),path:["reasons"]})},pi=({onClose:s,onSubmit:n,isLoading:i})=>{const a=ui(),{control:l,handleSubmit:c,formState:d}=Te({mode:"onChange",resolver:Le(a),defaultValues:{reasons:[],newHostReasons:[],newHostOtherReason:"",otherReason:"",message:""}}),{t:o}=m(),u=ve({control:l,name:"reasons"}),h=ve({control:l,name:"newHostReasons"}),y=u?.includes("newHost"),x=h?.includes("other"),M=u?.includes("other"),v=os(),{data:O}=He(),C=O?.some(p=>p.pricing===fe.LAUNCH),{isValid:A}=d;return e.jsxs(hi,{onSubmit:c(n),children:[e.jsxs(en,{children:[e.jsx(gs,{children:o("HcZDPC",{description:"What are the reasons for canceling your subscription?",default:"Quelles sont les raisons qui vous poussent à résilier votre abonnement ?"})}),e.jsx(T,{control:l,name:"reasons",render:({field:p,fieldState:b})=>e.jsxs(D,{children:[e.jsx(fi,{children:e.jsxs(vs,{name:p.name,value:p.value??[],onChange:p.onChange,children:[e.jsx(j,{value:"endPodcast",children:o("QqbgeW",{description:"I'm ending my podcast",default:"Je mets fin à mon podcast"})}),e.jsxs(_,{children:[e.jsx(j,{value:"budgetary",children:o("51XeM1",{description:"For budgetary reasons",default:"Pour des raisons budgétaires"})}),!C&&e.jsx(We,{children:e.jsx(f,{i18nKey:"UKCDwY",description:"Find a plan that better suits your budget starting at â¬11/month. <link>Switch to the Launch plan ð</link>",default:"Trouvez un plan plus adapté à votre budget à partir de 11â¬/mois. <link>Passez au plan Launch ð</link>",components:{link:e.jsx(N,{to:"/app/user/subscription/offers"})}})})]}),e.jsxs(_,{children:[e.jsx(j,{value:"technical",children:o("+/RhDW",{description:"Due to technical issues",default:"En raison de problèmes techniques"})}),e.jsx(We,{children:e.jsx(f,{i18nKey:"lmCAxG",description:"Our teams are dedicated to providing you with the best experience possible. Did you encounter an issue? <link>Let us know! ð ï¸</link>",default:"Nos équipes s'efforcent de vous offrir la meilleure expérience possible. Vous avez rencontré un problème ? <link>N'hésitez pas à nous en faire part ! ð ï¸</link>",components:{link:e.jsx(k,{onPress:()=>v.show(),variant:"link-primary"})}})})]}),e.jsxs(_,{children:[e.jsx(j,{value:"customerSupport",children:o("BZKPfL",{description:"Due to poor customer service",default:"Suite à une mauvaise expérience avec le support client"})}),e.jsx(We,{children:e.jsx(f,{i18nKey:"NgiBq2",description:"We're sorry to hear that. Our podcast experts are here to help. <link>Share your experience with us, and let's continue the conversation ð</link>",default:"Nous sommes désolés de l'apprendre. Nos experts et expertes en podcasts s
122ont là pour vous aider. <link>Partagez votre expérience avec nous et poursuivons la conversation ð</link>",components:{link:e.jsx(k,{onPress:()=>v.show(),variant:"link-primary"})}})})]}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"newHost",children:o("/l8bPm",{description:"To switch to a different host",default:"Pour changer d'hébergeur"})}),y&&e.jsxs(mi,{children:[e.jsxs(gs,{children:[o("TXXs+Y",{description:"What are the reasons for switching to a different host?",default:"Quelles sont les raisons qui vous ont poussé à changer d'hébergeur ?"})," "]}),e.jsx(T,{control:l,name:"newHostReasons",render:({field:g,fieldState:S})=>e.jsxs(D,{children:[e.jsxs(vs,{name:g.name,value:g.value??[],onChange:g.onChange,children:[e.jsx(j,{value:"lessExpensive",children:o("rLzfx4",{description:"They are less expensive",default:"Ils sont moins chers"})}),e.jsx(j,{value:"morePerformant",children:o("qXkEAg",{description:"Their solution works better.",default:"Ils sont plus performants"})}),e.jsx(j,{value:"betterInterface",children:o("kFMgC0",{description:"They have a more ergonomic design",default:"Ils ont une meilleure interface et expérience utilisateur"})}),e.jsx(j,{value:"moreFeatures",children:o("k8sIIb",{description:"They offer features you don't have",default:"Ils offrent des fonctionnalités que vous n'avez pas"})}),e.jsx(j,{value:"specificOffer",children:o("2NoqYz",{description:"They gave me a specific offer",default:"Ils m'ont fait une offre spécifique"})}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"other",children:o("1qF9e8",{description:"Other",default:"Autre"})}),x&&e.jsx(bs,{children:e.jsx(T,{name:"otherReason",control:l,render:({field:P,fieldState:z})=>e.jsxs(e.Fragment,{children:[e.jsx(ee,{multiline:!0,value:P.value??"",onChange:P.onChange,onBlur:P.onBlur,name:P.name,placeholder:o("zZt7eR",{description:"Please explain any other reason for switching to a different host",default:"Expliquez-nous pourquoi vous souhaitez changer d'hébergeur"}),isInvalid:!!z.error,style:{minHeight:"7.5rem"}}),z.error&&e.jsx(E,{children:z.error.message})]})})})]})]}),S.error?.message?e.jsx(E,{children:S.error.message}):null]})})]})]}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"other",children:o("1qF9e8",{description:"Other",default:"Autre"})}),M&&e.jsx(bs,{children:e.jsx(T,{name:"otherReason",control:l,render:({field:g,fieldState:S})=>e.jsxs(e.Fragment,{children:[e.jsx(ee,{multiline:!0,value:g.value??"",onChange:g.onChange,onBlur:g.onBlur,name:g.name,placeholder:o("zZt7eR",{description:"Please explain any other reason for switching to a different host",default:"Expliquez-nous pourquoi vous souhaitez changer d'hébergeur"}),isInvalid:!!S.error,style:{minHeight:"7.5rem"}}),S.error&&e.jsx(E,{children:S.error.message})]})})})]})]})}),b.error?.message?e.jsx(E,{children:b.error.message}):null]})})]}),e.jsx(T,{name:"message",control:l,render:({field:p,fieldState:b})=>e.jsxs(D,{children:[e.jsx(rs,{children:o("2djxMk",{description:"Would you like to tell us a bit more? (optional)",default:"Souhaitez-vous nous en dire un peu plus ? (facultatif)"})}),e.jsx(ee,{multiline:!0,value:p.value??"",onChange:p.onChange,onBlur:p.onBlur,name:p.name,placeholder:o("4G/xjV",{description:"Your message will be carefully reviewed",default:"Notre équipe prendra le temps d'examiner attentivement votre message"}),isInvalid:!!b.error,style:{minHeight:"7.5rem"}}),b.error&&e.jsx(E,{children:b.error.message})]})}),e.jsxs(xi,{children:[e.jsx(k,{variant:"link-primary",onPress:s,children:o("UE8dfu",{description:"Keep my subscription",default:"Conserver mon abonnement"})}),e.jsx(k,{type:"submit",variant:"danger",isDisabled:!A,isLoading:i,"data-testid":"subscription-cancel-survey-submit-button",children:o("BSmgpB",{description:"Continue to cancellation",default:"Confirmer l'annulation"})})]})]})},hi=t.form` 123 display: flex; 124 flex-direction: column; 125 row-gap: 2rem; 126`,gs=t(r)` 127 font-weight: var(--fw-semibold); 128`,We=t(r)` 129 color: var(--neutral500); 130 padding-left: 1.5rem; 131`,en=t.div` 132 display: flex; 133 flex-direction: column; 134 row-gap: 1rem; 135`,mi=t(en)` 136 padding: 1rem; 137 border-radius: var(--r-m); 138 background-color: var(--neutral50); 139 margin-left: 1.5rem; 140 row-gap: 0.5rem; 141`,fi=t.div` 142 display: flex; 143 flex-direction: column; 144 gap: 1rem; 145`,vs=t(as)` 146 display: flex; 147 flex-direction: column; 148 gap: 0.5rem; 149`,xi=t.div` 150 padding-top: 1.5rem; 151 border-top: 1px solid var(--neutral100); 152 display: flex; 153 align-items: center; 154 justify-content: space-between; 155`,bs=t(D)` 156 padding-left: 1.5rem;
157`,gi=({isOpen:s,onOpenChange:n,onSubmit:i,isLoading:a})=>{const{t:l}=m(),c=()=>n(!1);return e.jsxs(vi,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(bi,{children:[e.jsxs(yi,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:l("MLiCmZ",{description:"Share with us the reason for your cancellation",default:"Partagez avec nous la raison de votre résiliation"})}),e.jsx(r,{color:"--neutral500",children:l("kX2UaE",{description:"Every piece of feedback helps us improve.",default:"Chacun de vos commentaires nous aide à nous améliorer."})})]}),e.jsx(se,{icon:e.jsx(ji,{icon:ne}),onPress:c,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsx(wi,{children:e.jsx(pi,{onClose:c,onSubmit:i,isLoading:a})})]})},vi=t(B)` 158 padding: 1.5rem; 159 display: flex; 160 flex-direction: column; 161 align-items: stretch; 162 row-gap: 2rem; 163`,bi=t.div` 164 display: flex; 165 align-items: start; 166 justify-content: space-between; 167 column-gap: 2rem; 168 169 & > button { 170 flex-shrink: 0; 171 } 172`,ji=t(w)` 173 width: 1rem; 174 height: 1rem; 175 color: var(--neutral500); 176`,yi=t.div` 177 display: flex; 178 flex-direction: column; 179 row-gap: 0.25rem; 180 flex-grow: 1; 181`,wi=t.div` 182 display: flex; 183 flex-direction: column; 184 row-gap: 0.5rem; 185 overflow-y: auto; 186`,Si=({subscription:s})=>{const{data:n}=R(),{formatDate:i}=me(),a=n?.isHostingPro,[l,c]=I.useState(!1),[d,o]=I.useState(!1),u=!!s&&s.endsAt!==null,h=ds(),[y,x]=I.useState(!1),M=nt(),v=!!s&&s.endsAt&&!at(new Date(s.endsAt)),O=ls(),{t:C}=m(),A=()=>{c(!1),o(!0)},p=()=>{s&&h.mutate(s.id,{onSuccess:S=>{U.success(e.jsx(f,{i18nKey:"am0XQ9",description:"Your subscription has been canceled and will remain active until the end of the billing period, {endDate}.",default:"Votre abonnement a bien été annulé et restera actif jusqu'à la fin de la période de facturation, le {endDate}.",variables:{endDate:i(S.currentPeriodEnd||"",{day:"numeric",month:"long",year:"numeric"})}})),o(!1)},onError:()=>{U.alert(C("V1EUHkIi",{description:"Oups, la résiliation nâa pas pu aboutir. Merci de réessayer dans un instant ou contactez notre équipe support si le problème persiste. ",default:"Oups, la résiliation nâa pas pu aboutir. Merci de réessayer dans un instant ou contactez notre équipe support si le problème persiste. "}))}})},b=async()=>{try{x(!0);const S=await Ee();x(!1);const{url:P}=S;globalThis.location.href=P}catch{x(!1),U.alert(C("K0wygg",{description:"An unexpected error occurred. Please try again later.",default:"Une erreur inattendue est survenue. Merci de réessayer plus tard."}))}},g=()=>{if(O){if(v){M.mutate({isYearly:s?.yearly,price:"episode_ai",successUrl:`${globalThis.location.origin}/app/user/subscription`,cancelUrl:`${globalThis.location.origin}/app/user/subscription?fromCheckout=true`},{onSuccess:async S=>{const{id:P}=S,z=await O.redirectToCheckout({sessionId:P});z.error&&alert(z.error.message)}});return}b()}};return e.jsxs(e.Fragment,{children:[e.jsxs(Ai,{"data-testid":"subscription-ai-offer-section",children:[e.jsxs(ki,{children:[e.jsx(Ci,{src:Ns,alt:"Ausha Intelligence"}),e.jsx(us,{status:u?"canceled":"active"})]}),u&&e.jsx(_i,{variant:"info",defaultIcon:!0,action:e.jsx(k,{size:"small",onPress:g,isLoading:y,"data-testid":"subscription-reactivate-button",children:C("RJI0W/",{description:"Reactivate",default:"Réactiver"})}),children:e.jsx(r,{fontWeight:"--fw-semibold",children:e.jsx(f,{i18nKey:"22o5aF",description:"This subscription has been canceled and will remain active until the end of the billing period, {endDate}.",default:"Cet abonnement a bien été annulé et restera actif jusqu'à la fin de la période de facturation, le {endDate}",variables:{endDate:i(s.currentPeriodEnd||"",{day:"numeric",month:"short",year:"numeric"})}})})}),e.jsx(Pi,{children:e.jsx(Js,{isDisabled:u})}),!u&&e.jsxs(r,{color:"--neutral500",children:[C("Run/J5",{description:"Do you want to cancel your subscription?",default:"Vous souhaitez résilier votre abonnement ?"})," ",a?e.jsx(K,{href:"mailto:[email protected]",children:C("GwFiCJ",{description:"Please contact us",default:"Veuillez nous contacter"})}):e.jsx(k,{variant:"link-danger",onPress:()=>c(!0),"data-testid":"subscription-cancel-button",children:C("MTbRVxN7",{description:"Résilier l'abonnement ",default:"Résilier l'abonnement "})})]})]}),e.jsx(ni,{isOpen:l,onOpenChange:c,onSubmit:A}),e.jsx(gi,{isOpen:d,onOpenChange:o,onSubmit:p,isLoading:h.isPending})]})},ki=t.div` 187 display: flex; 188 align-items: center; 189 justify-content: space-between; 190 gap: 0.5rem; 191 flex-wrap: wrap; 192`,Ci=t.img` 193 width: 100%; 194 max-width: 19.2rem; 195 height: 2rem; 196`,Ai=t.div` 197 display: flex; 198 flex-direction: column; 199 row-gap: 2rem; 200`,Pi=t.div` 201 max-width: 25rem; 202`,_i=t(Ne)` 203 & > :first-child { 204 align-items: center; 205 206 & > :first-child { 207 transform: translateY(0); 208 } 209 } 210`,Ii="/assets/gift-nebula-Dbo2aWtl.svg",Be="/assets/star-nebula-DfQPFpIb.
210svg",Oi=()=>{const[s,n]=I.useState(!1),{formatNumber:i}=me(),{data:a}=De(),{data:l}=be(),{currency:c}=ke(),{t:d}=m(),o=l?.pricing==="enterprise",u=a?.[c]?.episodeAi?.monthly?.base,h=u&&Number.parseInt(u.replaceAll(/[^\d]/g,""),10),y=a?.[c]?.episodeAi?.yearly?.base,x=y&&Number.parseInt(y.replaceAll(/[^\d]/g,""),10);return e.jsxs(e.Fragment,{children:[e.jsxs(Mi,{"data-testid":"subscription-ai-offer-section",children:[e.jsxs($i,{children:[e.jsx(Ti,{src:Ns,alt:"Ausha Intelligence"}),e.jsxs(Ri,{children:[e.jsxs(Me,{children:[e.jsx(Fe,{src:Be,alt:"Nebula Star"}),e.jsx(r,{children:e.jsx(f,{i18nKey:"pkgT0c",description:"AI-generated & search-optimized <b>titles, show notes, tags, and chapters</b>.",default:"Génération automatique de <b>titres, descriptions, tags et chapitres, optimisée pour le référencement</b>.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Me,{children:[e.jsx(Fe,{src:Be,alt:"Nebula Star"}),e.jsx(r,{children:e.jsx(f,{i18nKey:"VE049i",description:"AI-generated <b>social media posts & newsletters</b>.",default:"Génération automatique de <b>posts pour les réseaux sociaux et de newsletters</b>.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Me,{children:[e.jsx(Fe,{src:Be,alt:"Nebula Star"}),e.jsx(r,{children:e.jsx(f,{i18nKey:"Ob5AAn",description:"Customizable AI <b>tone of voice & preferences</b>.",default:"<b>Personnalisation du ton et des préférences</b> de l'IA.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Me,{children:[e.jsx(Li,{src:Ii,alt:"Gift Nebula"}),e.jsx(r,{children:e.jsx(f,{i18nKey:"s2IS37",description:"<b>+60 bonus transcription minutes</b> every month.",default:"<b>+60 minutes</b> de transcription chaque mois.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]})]})]}),e.jsxs(zi,{children:[e.jsxs(_,{$gap:"0.25rem",children:[o?e.jsxs(_,{children:[e.jsx(r,{fontWeight:"--fw-semibold",children:d("bvGIEO",{description:"Custom Amount",default:"Montant sur mesure"})}),e.jsx(r,{variant:"headingL",fontWeight:"--fw-bold",children:d("UraeeM",{description:"As needed",default:"Selon vos besoins"})})]}):e.jsx(r,{variant:"headingL",fontWeight:"--fw-bold",children:e.jsx(f,{i18nKey:"/P3xQS",description:"{amount} /month",default:"{amount} /month",variables:{amount:i(x/12,{style:"currency",currency:c,currencyDisplay:"narrowSymbol",maximumFractionDigits:x/12%1===0?0:2})}})}),e.jsx(r,{color:"--neutral500",children:o?d("ysEeOM",{description:"Contact us to unlock this subscription.",default:"Contactez-nous pour débloquer cet abonnement."}):e.jsx(f,{i18nKey:"ALMifq",description:"Billed annually or {amount}/month.",default:"Billed annually or {amount}/month.",variables:{amount:i(h,{style:"currency",currency:c,currencyDisplay:"narrowSymbol",maximumFractionDigits:h%1===0?0:2})}})})]}),o?e.jsx(K,{href:"mailto:[email protected]",variant:"button-magic",startIcon:e.jsx(js,{icon:ye}),children:d("5fEKfO",{description:"Contact us",default:"Nous contacter"})}):e.jsx(k,{onPress:()=>{n(!0),ns("AI Subscription Viewed")},variant:"magic",startIcon:e.jsx(js,{icon:ht}),"data-testid":"subscription-ai-subscribe-button",children:d("dxmAJI",{description:"Upgrade to AI",default:"Souscrire à AI"})})]})]}),e.jsx(mt,{isOpen:s,onOpenChange:n})]})},Mi=t.div` 211 display: flex; 212 flex-direction: column; 213 gap: 2rem; 214 215 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 216 flex-direction: row; 217 } 218`,$i=t.div` 219 display: flex; 220 flex-direction: column; 221 row-gap: 1.5rem; 222 223 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 224 flex-grow: 1; 225 } 226`,zi=t.div` 227 padding: 1.5rem; 228 border-radius: var(--r-m); 229 background: var(--gradient-aurora); 230 display: flex; 231 flex-direction: column; 232 row-gap: 1.5rem; 233 min-width: 20rem; 234 235 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 236 flex-shrink: 0; 237 } 238`,Fe=t.img` 239 width: 0.75rem; 240 height: 0.75rem; 241 margin-top: 0.25rem; 242 flex-shrink: 0; 243`,Ri=t.ul` 244 list-style: none; 245 padding-left: 0; 246 display: flex; 247 flex-direction: column; 248 row-gap: 0.5rem; 249`,Me=t.li` 250 display: flex; 251 align-items: flex-start; 252 column-gap: 0.5rem; 253`,js=t(w)` 254 width: 0.75rem; 255 height: 0.75rem; 256`,Ti=t.img` 257 width: 100%; 258 max-width: 19.2rem; 259 height: 2rem; 260`,Li=t.img` 261 width: 0.75rem; 262 height: 0.75rem; 263 margin-top: 0.25rem; 264 flex-shrink: 0; 265`,Ei=()=>{const{data:s}=it(),{data:n}=R(),i=n?.isHostingPro&&n.userOptions.includes("episode_ai");return!s&&!i||s?.incomplete?e.jsx(Oi,{}):e.jsx(Si,{subscription:s||null})},$e={EUR:"EUR (â¬)",USD:"USD ($)",GBP:"GBP (£)"},Hi=()=>{const{currency:s,setCurrency:n,isCurrencyEditable:i}=ke(),a=[{id:"eur",name:$e.EUR},{id:"usd",name:$e.USD},{id:"gbp",name:$e.GBP}];return i?e.jsxs(xn,{selectedKey:s,onSelectionChange:l=>n(l),children:[e.jsxs(Ni,{children:[e.jsx(gn,{}),e.jsx(Di,{icon:vn})]}),e.jsx(Qi,{placement:"bottom",offset:4,children:e.jsx(bn,{children:a.map(l
265=>e.jsx(jn,{...l},l.id))})})]}):e.jsx(r,{fontWeight:"--fw-semibold",color:"--neutral500",children:$e[s.toUpperCase()]})},Ni=t(yn)` 266 background: none; 267 border: none; 268 padding: 0; 269 color: var(--neutral500); 270 display: flex; 271 align-items: center; 272 column-gap: 0.5rem; 273 font-weight: var(--fw-semibold); 274 275 [slot='label'] { 276 color: var(--neutral500); 277 font-weight: var(--fw-semibold); 278 } 279`,Di=t(w)` 280 width: 0.75rem; 281 height: 0.75rem; 282`,Qi=t(wn)` 283 max-width: fit-content; 284`,Wi=()=>{const{t:s}=m();return e.jsxs(Bi,{children:[e.jsx(r,{variant:"headingS",fontWeight:"--fw-semibold",children:s("pdi7+N",{description:"You will lose access toâ¦",default:"Vous perdrez l'accès à ..."})}),e.jsxs(Fi,{children:[e.jsxs(ys,{children:[e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("wYQl0p",{description:"All unpublished episodes",default:"Tous vos épisodes non publiés"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("c4OylG",{description:"All social media publishing tools",default:"Le partage de posts sur les réseaux sociaux"})})]})," ",e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("1fXyyu",{description:"Smartplayer",default:"Le Smartplayer"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("NrwEkJ",{description:"Smartlink",default:"Le Smartlink"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("IPoIUl",{description:"Webhooks and Trackers",default:"L'utilisation des Webhooks et Trackers"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("iys2U2",{description:"Activation of monetization campaigns",default:"L'activation des campagnes de monétisation"})})]})]}),e.jsxs(ys,{children:[e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("GgGinF",{description:"Distribution and publishing to all listening platforms",default:"La distribution et la publication sur toutes les plateformes d'écoute"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("HvMJaX",{description:"Video clip creation and sharing",default:"La création et le partage de clips vidéo"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("qrl/3G",{description:"Website",default:"Le Site web"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("aXMh9i",{description:"Newsletters sent when new episodes are published",default:"La newsletter envoyée à chaque fois qu'un nouvel épisode est publié"})})]}),e.jsxs(Q,{children:[e.jsx(W,{icon:$}),e.jsx(r,{children:s("KOeRCe",{description:"Full access to your showâs statistics",default:"L'accès complet aux statistiques de l'émission"})})]})]})]})]})},Bi=t.div` 285 padding: 1.5rem; 286 border-radius: var(--r-l); 287 background-color: var(--warning50); 288 display: flex; 289 flex-direction: column; 290 row-gap: 1rem; 291`,Fi=t.div` 292 list-style: none; 293 display: flex; 294 flex-direction: column; 295 gap: 1rem; 296 297 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 298 flex-direction: row; 299 } 300`,Q=t.li` 301 display: flex; 302 column-gap: 0.5rem; 303`,W=t(w)` 304 padding-top: 0.25rem; 305 color: var(--warning500); 306 width: 0.75rem; 307 height: 0.75rem; 308`,ys=t.ul` 309 display: flex; 310 flex-direction: column; 311 row-gap: 1rem; 312 flex: 1; 313 padding-left: 0; 314`,qi=()=>{const{t:s}=m();return e.jsxs(Ui,{children:[e.jsx(r,{variant:"headingS",fontWeight:"--fw-semibold",children:s("0hrDjx",{description:"You will still have access to...",default:"Vous conserverez l'accès à ..."})}),e.jsxs(Ki,{children:[e.jsxs(ws,{children:[e.jsxs(qe,{children:[e.jsx(Ue,{icon:ze}),e.jsx(r,{children:s("yg9ZkD",{description:"All published episodes available via your RSS feed",default:"Tous vos épisodes publiés disponibles via votre flux RSS"})})]}),e.jsxs(qe,{children:[e.jsx(Ue,{icon:ze}),e.jsx(r,{children:s("rKapdJ",{description:"Ausha Intelligence (available by subscription)",default:"Ausha Intelligence (disponible via abonnement)"})})]})]}),e.jsx(ws,{children:e.jsxs(qe,{children:[e.jsx(Ue,{icon:ze}),e.jsx(r,{children:s("tiK4hb",{description:"PSO Control Panel (available by subscription)",default:"PSO Control Panel (disponible via abonnement)"})})]})})]})]})},Ui=t.div` 315 padding: 1.5rem; 316 border-radius: var(--r-l); 317 background-color: var(--success50); 318 display: flex; 319 flex-direction: column; 320 row-gap: 1rem; 321`,Ki=t.div` 322 list-style: none; 323 display: flex; 324 flex-direction: column; 325 gap: 1rem; 326 327 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 328 flex-direction: row; 329 } 330`,qe=t.li` 331 display: flex; 332 column-gap: 0.5rem; 333`,Ue=t(w)` 334 padding-top: 0.25rem; 335 color: var(--success500); 336 width: 0.75rem; 337 height: 0.75rem; 338`,ws=t.ul` 339 display: flex; 340 flex-direction: column; 341 row-gap: 1rem; 342 flex: 1; 343 padding-left: 0; 344`,Vi=({isOpen:s,onOpenChange:n,title:i,description:a,onSubmit:l})=>{const{t:c}=m(),d=()=>n(!1);return e.jsxs(Yi,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(Gi,{children:[e.jsxs(Zi,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:i}),e.jsx(r,{color:"--neutral500",children:a})]}),e.jsx(se,{icon:e.jsx(Xi,{icon:ne}),onPress:d,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsxs(Ji,{children:[e.jsx(Wi,{}),e.jsx(qi,{})]}),e.jsxs(eo,{children:[e.jsx(k,{variant:"link-primary",onPress:d,children:c("UE8dfu",{description:"Keep my subscription",default:"Conserver mon abonnement"})}),e.jsx(k,{variant:"danger",onPress:l,"data-testid":"subscription-cancel-confirm-button",children:c("BSmgpB",{description:"Continue to cancellation",default:"Confirmer l'annulation"})})]})]})},Yi=t(B)` 345 padding: 1.5rem; 346 display: flex; 347 flex-direction: column; 348 align-items: stretch; 349 row-gap: 2rem; 350`,Gi=t.div` 351 display: flex; 352 align-items: start; 353 justify-content: space-between; 354 column-gap: 2rem; 355 356 & > button { 357 flex-shrink: 0; 358 } 359`,Xi=t(w)` 360 width: 1rem; 361 height: 1rem; 362 color: var(--neutral500); 363`,Zi=t.div` 364 display: flex; 365 flex-direction: column; 366 row-gap: 0.25rem; 367 flex-grow: 1; 368`,Ji=t.div` 369 display: flex; 370 flex-direction: column; 371 row-gap: 0.5rem; 372 overflow-y: auto; 373`,eo=t.div` 374 padding-top: 1.5rem; 375 border-top: 1px solid var(--neutral100); 376 display: flex; 377 align-items: center; 378 justify-content: space-between; 379`,so=["endPodcast","budgetary","technical","customerSupport","other","newHost","other"],no=["lessExpensive","morePerforment","betetrInterface","moreFeatures","specificOffer","other"],to=()=>{const{t:s}=m();return Re({reasons:pe(ge(so)).nullable(),newHostReasons:pe(ge(no)).nullable(),newHostOtherReason:q().nullable(),otherReason:q().nullable(),message:q().nullable()}).refine(n=>n.reasons&&n.reasons.length>0||n.newHostReasons&&n.newHostReasons.length>0||n.newHostOtherReason&&n.newHostOtherReason.trim()!==""||n.otherReason&&n.otherReason.trim()!=="",{message:s("7ICMOA",{description:"Please select at least one reason",default:"Veuillez sélectionner au moins une raison"}),path:["reasons"]})},io=({onClose:s,onSubmit:n,isLoading:i})=>{const a=to(),{control:l,handleSubmit:c,formState:d}=Te({mode:"onChange",resolver:Le(a),defaultValues:{reasons:[],newHostReasons:[],newHostOtherReason:"",otherReason:"",message:""}}),{t:o}=m(),u=ve({control:l,name:"reasons"}),h=ve({control:l,name:"newHostReasons"}),y=u?.includes("newHost"),x=h?.includes("other"),M=u?.includes("other"),v=os(),{data:O}=He(),C=O?.some(p=>p.pricing===fe.LAUNCH),{isValid:A}=d;return e.jsxs(oo,{onSubmit:c(n),children:[e.jsxs(sn,{children:[e.jsx(Ss,{children:o("HcZDPC",{description:"What are the reasons for canceling your subscription?",default:"Quelles sont les raisons qui vous poussent à résilier votre abonnement ?"})}),e.jsx(T,{control:l,name:"reasons",render:({field:p,fieldState:b})=>e.jsxs(D,{children:[e.jsx(ao,{children:e.jsxs(ks,{name:p.name,value:p.value??[],onChange:p.onChange,children:[e.jsx(j,{value:"endPodcast",children:o("QqbgeW",{description:"I'm ending my podcast",default:"Je mets fin à mon podcast"})}),e.jsxs(_,{children:[e.jsx(j,{value:"budgetary",children:o("51XeM1",{description:"For budgetary reasons",default:"Pour des raisons budgétaires"})}),!C&&e.jsx(Ke,{children:e.jsx(f,{i18nKey:"UKCDwY",description:"Find a plan that better suits your budget starting at â¬11/month. <link>Switch to the Launch plan ð</link>",default:"Trouvez un plan plus adapté à votre budget à partir de 11â¬/mois. <link>Passez au plan Launch ð</link>",components:{link:e.jsx(N,{to:"/app/user/subscription/offers"})}})})]}),e.jsxs(_,{children:[e.jsx(j,{value:"technical",children:o("+/RhDW",{description:"Due to technical issues",default:"En raison de problèmes techniques"})}),e.jsx(Ke,{children:e.jsx(f,{i18nKey:"lmCAxG",description:"Our teams are dedicated to providing you with the best experience possible. Did you encounter an issue? <link>Let us know! ð ï¸</link>",default:"Nos équipes s'efforcent de vous offrir la meilleure expérience possible. Vous avez rencontré un problème ? <link>N'hésitez pas à nous en faire part ! ð ï¸</link>",components:{link:e.jsx(k,{onPress:()=>v.show(),variant:"link-primary"})}})})]}),e.jsxs(_,{children:[e.jsx(j,{value:"customerSupport",children:o("BZKPfL",{description:"Due to poor customer service",default:"Suite à une mauvaise expérience avec le support client"})}),e.jsx(Ke,{children:e.jsx(f,{i18nKey:"NgiBq2",description:"We're sorry to hear that. Our podcast experts are here to help. <link>Share your experience with us, and let's continue the conversation ð</link>",default:"Nous sommes désolés de l'apprendre. Nos experts et expertes en podcasts s
379ont là pour vous aider. <link>Partagez votre expérience avec nous et poursuivons la conversation ð</link>",components:{link:e.jsx(k,{onPress:()=>v.show(),variant:"link-primary"})}})})]}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"newHost",children:o("/l8bPm",{description:"To switch to a different host",default:"Pour changer d'hébergeur"})}),y&&e.jsxs(ro,{children:[e.jsxs(Ss,{children:[o("TXXs+Y",{description:"What are the reasons for switching to a different host?",default:"Quelles sont les raisons qui vous ont poussé à changer d'hébergeur ?"})," "]}),e.jsx(T,{control:l,name:"newHostReasons",render:({field:g,fieldState:S})=>e.jsxs(D,{children:[e.jsxs(ks,{name:g.name,value:g.value??[],onChange:g.onChange,children:[e.jsx(j,{value:"lessExpensive",children:o("rLzfx4",{description:"They are less expensive",default:"Ils sont moins chers"})}),e.jsx(j,{value:"morePerformant",children:o("qXkEAg",{description:"Their solution works better.",default:"Ils sont plus performants"})}),e.jsx(j,{value:"betterInterface",children:o("kFMgC0",{description:"They have a more ergonomic design",default:"Ils ont une meilleure interface et expérience utilisateur"})}),e.jsx(j,{value:"moreFeatures",children:o("k8sIIb",{description:"They offer features you don't have",default:"Ils offrent des fonctionnalités que vous n'avez pas"})}),e.jsx(j,{value:"specificOffer",children:o("2NoqYz",{description:"They gave me a specific offer",default:"Ils m'ont fait une offre spécifique"})}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"other",children:o("1qF9e8",{description:"Other",default:"Autre"})}),x&&e.jsx(Cs,{children:e.jsx(T,{name:"otherReason",control:l,render:({field:P,fieldState:z})=>e.jsxs(e.Fragment,{children:[e.jsx(ee,{multiline:!0,value:P.value??"",onChange:P.onChange,onBlur:P.onBlur,name:P.name,placeholder:o("zZt7eR",{description:"Please explain any other reason for switching to a different host",default:"Expliquez-nous pourquoi vous souhaitez changer d'hébergeur"}),isInvalid:!!z.error,style:{minHeight:"7.5rem"}}),z.error&&e.jsx(E,{children:z.error.message})]})})})]})]}),S.error?.message?e.jsx(E,{children:S.error.message}):null]})})]})]}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"other",children:o("1qF9e8",{description:"Other",default:"Autre"})}),M&&e.jsx(Cs,{children:e.jsx(T,{name:"otherReason",control:l,render:({field:g,fieldState:S})=>e.jsxs(e.Fragment,{children:[e.jsx(ee,{multiline:!0,value:g.value??"",onChange:g.onChange,onBlur:g.onBlur,name:g.name,placeholder:o("zZt7eR",{description:"Please explain any other reason for switching to a different host",default:"Expliquez-nous pourquoi vous souhaitez changer d'hébergeur"}),isInvalid:!!S.error,style:{minHeight:"7.5rem"}}),S.error&&e.jsx(E,{children:S.error.message})]})})})]})]})}),b.error?.message?e.jsx(E,{children:b.error.message}):null]})})]}),e.jsx(T,{name:"message",control:l,render:({field:p,fieldState:b})=>e.jsxs(D,{children:[e.jsx(rs,{children:o("2djxMk",{description:"Would you like to tell us a bit more? (optional)",default:"Souhaitez-vous nous en dire un peu plus ? (facultatif)"})}),e.jsx(ee,{multiline:!0,value:p.value??"",onChange:p.onChange,onBlur:p.onBlur,name:p.name,placeholder:o("4G/xjV",{description:"Your message will be carefully reviewed",default:"Notre équipe prendra le temps d'examiner attentivement votre message"}),isInvalid:!!b.error,style:{minHeight:"7.5rem"}}),b.error&&e.jsx(E,{children:b.error.message})]})}),e.jsxs(lo,{children:[e.jsx(k,{variant:"link-primary",onPress:s,children:o("UE8dfu",{description:"Keep my subscription",default:"Conserver mon abonnement"})}),e.jsx(k,{type:"submit",variant:"danger",isDisabled:!A,isLoading:i,"data-testid":"subscription-cancel-survey-submit-button",children:o("BSmgpB",{description:"Continue to cancellation",default:"Confirmer l'annulation"})})]})]})},oo=t.form` 380 display: flex; 381 flex-direction: column; 382 row-gap: 2rem; 383`,Ss=t(r)` 384 font-weight: var(--fw-semibold); 385`,Ke=t(r)` 386 color: var(--neutral500); 387 padding-left: 1.5rem; 388`,sn=t.div` 389 display: flex; 390 flex-direction: column; 391 row-gap: 1rem; 392`,ro=t(sn)` 393 padding: 1rem; 394 border-radius: var(--r-m); 395 background-color: var(--neutral50); 396 margin-left: 1.5rem; 397 row-gap: 0.5rem; 398`,ao=t.div` 399 display: flex; 400 flex-direction: column; 401 gap: 1rem; 402`,ks=t(as)` 403 display: flex; 404 flex-direction: column; 405 gap: 0.5rem; 406`,lo=t.div` 407 padding-top: 1.5rem; 408 border-top: 1px solid var(--neutral100); 409 display: flex; 410 align-items: center; 411 justify-content: space-between; 412`,Cs=t(D)` 413 padding-left: 1.5rem; 414`,co=({isOpen:s,onOpenChange:n,onSubmit:i,isLoading:a})=>{const{t:l}=m(),c=()=>n(!1);return e.jsxs(uo,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(po,{children:[e.jsxs(mo,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:l("MLiCmZ",{description:"Share with us the reason for your cancellation",default:"Partagez avec nous la raison de votre résiliation"})}),e.jsx(r,{color:"--neutral500",children:l("kX2UaE",{description:"Every piece of feedback helps us improve.",default:"Chacun de vos commentaires nous aide à nous améliorer."})})]}),e.jsx(se,{icon:e.jsx(ho,{icon:ne}),onPress:c,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsx(fo,{children:e.jsx(io,{onClose:c,onSubmit:i,isLoading:a})})]})},uo=t(B)` 415 padding: 1.5rem; 416 display: flex; 417 flex-direction: column; 418 align-items: stretch; 419 row-gap: 2rem; 420`,po=t.div` 421 display: flex; 422 align-items: start; 423 justify-content: space-between; 424 column-gap: 2rem; 425 426 & > button { 427 flex-shrink: 0; 428 } 429`,ho=t(w)` 430 width: 1rem; 431 height: 1rem; 432 color: var(--neutral500); 433`,mo=t.div` 434 display: flex; 435 flex-direction: column; 436 row-gap: 0.25rem; 437 flex-grow: 1; 438`,fo=t.div` 439 display: flex; 440 flex-direction: column; 441 row-gap: 0.5rem; 442 overflow-y: auto; 443`,xo="Plan__Plan__container__TalL5K0z",go="Plan__Plan__content__TalL5K0z",vo="Plan__Plan__illustrationWrapper__TalL5K0z",Ve={container:xo,content:go,illustrationWrapper:vo},nn=({illustration:s,children:n,title:i,className:a})=>{const{t:l}=m();return e.jsxs("div",{className:ue(Ve.container,a),children:[e.jsxs("div",{className:Ve.content,children:[e.jsxs(_,{$gap:"0.25rem",children:[e.jsx(r,{color:"--neutral500",children:l("3Ilg57",{description:"Plan",default:"Offre"})}),e.jsx(r,{variant:"headingS",fontWeight:"--fw-bold",children:i})]}),n]}),e.jsx("div",{className:Ve.illustrationWrapper,children:s})]})},bo=()=>{const{t:s}=m(),{data:n}=be(),{data:i}=R(),{data:a}=xt(i?.id),{data:l}=Ce(),c=!!l?.endsAt,d=i?.isHostingPro??!1,o=(n?.archivedShowsMax||0)+(n?.extraArchivedShows||0),u=a?.length||0,h=s("J/MppQ",{description:"https://help.ausha.co/en/articles/7146553-what-is-the-difference-between-an-active-show-and-an-archived-show",default:"https://help.ausha.co/fr/articles/7146553-quelle-est-la-difference-entre-une-emission-active-et-une-emission-archivee"});return e.jsx(je,{title:s("O5AZwj",{description:"Archived shows",default:"Ãmissions archivées"}),currentValue:u||0,maxValue:o,valueUnit:s("avXsbC",{description:"{count,plural,=0{show} one{show} other{shows}}",default:"{count,plural,=0{émission} one{émission} other{émissions}}",plural:!0,count:o}),action:c?null:d?e.jsx(Se,{}):e.jsx(yo,{to:"/app/user/subscription/offers",size:"small",children:s("n3I8OZ",{description:"Change plan",default:"Changer d'offre"})}
443),tooltipMessage:e.jsx(f,{i18nKey:"6gZb6+",description:"Archived shows quota tooltip with help article link",default:"{count,plural,=0{You have # archived show included in your plan. <link>Learn more about archived shows</link>} one{You have # archived show included in your plan. <link>Learn more about archived shows</link>} other{You have # archived shows included in your plan. <link>Learn more about archived shows</link>}}",components:{link:e.jsx(jo,{href:h,target:"_blank"})},variables:{count:o},plural:!0})})},jo=t.a` 444 color: inherit; 445 font-size: inherit; 446 text-decoration: underline; 447 font-weight: var(--fw-semibold); 448`,yo=t(N)` 449 font-weight: var(--fw-semibold); 450`,wo=({className:s})=>{const{t:n}=m(),{data:i}=Ce(),{data:a}=be(),l=!!i?.endsAt,[c,d]=I.useState(null),[o,u]=I.useState(!1),[h,y]=I.useState(!1),{data:x}=R(),{data:M}=jt(x?.id||0),v=M?.filter(F=>F.hostedOnAusha),O=gt(),C=a?.showsMax||0,A=v?.length||0,p=x?.isHostingPro??!1,b=Sn(),g=I.useCallback(()=>{U.success(n("TiIIFB",{description:"Your shows limit has been updated",default:"Votre quota d'émissions a été mis à jour"})),b.invalidateQueries({queryKey:ps.all()})},[b,n]),{handleQuotaUpdateError:S}=Ks({onPaymentValidated:g,invalidateQueryKeys:[ps.all()],invalidateSubscriptionQueries:!0}),P=F=>{!F||!i||O.mutate({subscriptionId:i.id,subscription:{quantity:F}},{onSuccess:g,onError:S,onSettled:()=>{y(!1)}})},z=({quota:F})=>{u(!1),d(F),y(!0)};return e.jsxs(e.Fragment,{children:[e.jsx(je,{"data-testid":"subscription-hosting-active-shows-quota",title:n("tIOrAQ",{description:"Active shows",default:"Ãmissions actives"}),currentValue:A||0,maxValue:(C||0)+(a?.extraShows||0),valueUnit:n("avXsbC",{description:"{count,plural,=0{show} one{show} other{shows}}",default:"{count,plural,=0{émission} one{émission} other{émissions}}",plural:!0,count:C}),action:l?null:p?e.jsx(Se,{}):e.jsx(ko,{variant:"link-primary",size:"small",onPress:()=>u(!0),"data-testid":"subscription-quota-modify-button",children:n("4AM9lj",{description:"Modify limit",default:"Modifier la limite"})}),tooltipMessage:e.jsx(f,{i18nKey:"A+b7c6",description:"Subscription dashboard hosting quotas tooltip on the active shows card: explains how many active shows are included in the plan and links to the help article",default:"You have # active show included in your plan<link>En savoir plus sur les émissions actives</link>}}",components:{link:e.jsx(So,{href:n("yH9PQM",{description:"https://help.ausha.co/en/articles/2097513-how-do-i-add-an-extra-active-show-to-my-ausha-account",default:"https://help.ausha.co/fr/articles/2097513-comment-ajouter-une-emission-active-supplementaire-a-mon-compte-ausha"}),target:"_blank"})},variables:{count:C},plural:!0}),className:s}),e.jsx(vt,{isOpen:o,onOpenChange:u,currentActiveShows:A,activeShowAllowance:C,onSubmit:z}),c&&e.jsx(bt,{isOpen:h,onOpenChange:y,isLoading:O.isPending,onSubmit:P,quantity:c})]})},So=t.a` 451 color: inherit; 452 font-size: inherit; 453 text-decoration: underline; 454 font-weight: var(--fw-semibold); 455`,ko=t(k)` 456 padding: 0; 457 font-weight: var(--fw-semibold); 458`,Co="VideoQuota__VideoQuota__offersLink__HwaA-O3-",Ao={offersLink:Co},Po=()=>{const{t:s}=m(),{data:n}=R(),{data:i}=Ce(),{data:a}=he(Ds()),l=!!i?.endsAt,c=n?.isHostingPro??!1,d=Math.ceil(a.total/60),o=Math.ceil((a.maximum+(a.extraMaximum??0))/60);return e.jsx(je,{"data-testid":"subscription-hosting-video-quota",title:s("VH7ekqCL",{description:"Video usage",default:"Utilisation vidéo",figmaLink:"https://www.figma.com/design/LELSToe5pb1SzfRUcSlRPP/%F0%9F%A7%91%E2%80%8D%F0%9F%9A%80-Account?node-id=5229-7484&m=dev"}),currentValue:d,maxValue:o,valueUnit:s("RXJ4rjY8",{description:"min.",default:"min."}),action:l?null:c?e.jsx(Se,{}):e.jsx(N,{className:Ao.offersLink,to:"/app/user/subscription/offers",size:"small",children:s("n3I8OZ",{description:"Change plan",default:"Changer d'offre"})}),tooltipMessage:e.jsx(f,{i18nKey:"HHxoIlho",description:"Your video usage quota is reset every 1st of the month.",default:"Your video usage quota is reset every 1st of the month.",figmaLink:"https://www.figma.com/design/LELSToe5pb1SzfRUcSlRPP/%F0%9F%A7%91%E2%80%8D%F0%9F%9A%80-Account?node-id=5229-7485&m=dev"})})},_o="Quotas__Quotas__grid__FGhgWquX",Io="Quotas__Quotas__fullWidth__FGhgWquX",As={grid:_o,fullWidth:Io},Oo=({shouldDisplayVideoQuota:s})=>{const{data:n}=Ce(),i=!!n?.endsAt;return e.jsxs("div",{className:As.grid,children:[e.jsx(wo,{className:ue(s&&As.fullWidth)}),s&&e.jsx(Po,{}),e.jsx(Js,{isDisabled:i}),e.jsx(pt,{}),e.jsx(bo,{})]})},Mo="Active__Active__wrapper__v94zY7Ms",$o="Active__Active__header__v94zY7Ms",zo="Active__Active__headerLeft__v94zY7Ms",Ro="Active__Active__icon__v94zY7Ms",To="Active__Active__planAndQuotas__v94zY7Ms",Lo="Active__Active__alignStart__v94zY7Ms",Eo="Active__Active__canceledAlert__v94zY7Ms",Ho="Active__Active__planIllustration__v94zY7Ms",No="Active__Active__microphoneIllustration__v94zY7Ms",Do="Active__Active__suitcaseIllustration__v94zY7Ms",Qo="Active__Active__planActionIcon__v94zY7Ms",Wo="Active__Active__planActions__v94zY7Ms",L={wrapper:Mo,header:$o,headerLeft:zo,icon:Ro,planAndQuotas:To,alignStart:Lo,canceledAlert:Eo,planIllustration:Ho,microphoneIllustration:No,suitcaseIllustration:Do,planActionIcon:Qo,planActions:Wo},Bo=cs("/_authenticated/app/user/subscription/offers"),Fo=({subscription:s})=>{const n=Bo.useNavigate(),{formatDate:i}=me(),{data:a}=R(),{data:l}=he(Ds()),c=a?.isHostingPro??!1,o=(a?.userOptions.includes(we.BROADCAST_YOUTUBE)??!1)&&l.maximum+(l.extraMaximum??0)>0,[u,h]=I.useState(!1),[y,x]=I.useState(!1),[M,v]=I.useState(!1),O=ds(),C=ls(),{t:A}=m(),p=Qs(s),b=Ws(s),g={[fe.LAUNCH]:e.jsx("img",{className:ue(L.planIllustration,L.microphoneIllustration),src:Gs,alt:""}),[fe.BOOST]:e.jsx("img",{className:L.planIllustration,src:ft,alt:""}),[fe.SUPERSONIC]:e.jsx("img",{className:L.planIllustration,src:Xs,alt:""})},S=c?e.jsx("img",{className:ue(L.planIllustration,L.suitcaseIllustration),src:Us,alt:""}):g[s.pricing],P=()=>{h(!1),x(!0)},z=()=>{s&&O.mutate(s.id,{onSuccess:Qe=>{U.success(e.jsx(f,{i18nKey:"am0XQ9",description:"Your subscription has been canceled and will remain active until the end of the billing period, {endDate}.",default:"Votre abonnement a bien été annulé et restera actif jusqu'à la fin de la période de facturation, le {endDate}
458.",variables:{endDate:i(Qe.currentPeriodEnd||"",{day:"numeric",month:"long",year:"numeric"})}})),x(!1)},onError:()=>{U.alert(A("7NS5oVBI",{description:"Oups, la résiliation nâa pas pu aboutir. Merci de réessayer dans un instant ou contactez notre équipe support si le problème persiste. ",default:"Oups, la résiliation nâa pas pu aboutir. Merci de réessayer dans un instant ou contactez notre équipe support si le problème persiste. "}))}})},F=async()=>{try{v(!0);const Qe=await Ee();v(!1);const{url:an}=Qe;globalThis.location.href=an}catch{v(!1),U.alert(A("K0wygg",{description:"An unexpected error occurred. Please try again later.",default:"Une erreur inattendue est survenue. Merci de réessayer plus tard."}))}},rn=()=>{if(!(!C||!s)){if(b){F();return}n({to:"/app/user/subscription/offers"})}};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:L.wrapper,"data-testid":"subscription-hosting-offer-section",children:[e.jsxs("div",{className:L.header,children:[e.jsxs("div",{className:L.headerLeft,children:[e.jsx(w,{className:L.icon,icon:Vs}),e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:A("W5ld/x",{description:"Hosting & Distribution",default:"Hébergement et Diffusion"})})]}),e.jsx(us,{status:b||p?"canceled":"active"})]}),(b||p)&&e.jsx(Ne,{className:L.canceledAlert,variant:"info",defaultIcon:!0,action:e.jsx(k,{size:"small",onPress:rn,isLoading:M,"data-testid":"subscription-reactivate-button",children:A("RJI0W/",{description:"Reactivate",default:"Réactiver"})}),children:e.jsx(r,{fontWeight:"--fw-semibold",children:e.jsx(f,{i18nKey:"22o5aF",description:"This subscription has been canceled and will remain active until the end of the billing period, {endDate}.",default:"Cet abonnement a bien été annulé et restera actif jusqu'à la fin de la période de facturation, le {endDate}",variables:{endDate:i(s?.endsAt||"",{day:"numeric",month:"short",year:"numeric"})}})})}),e.jsxs("div",{className:ue(L.planAndQuotas,!o&&L.alignStart),children:[e.jsx(nn,{title:kn[c?"enterprise":s.pricing],illustration:S,children:e.jsx("div",{className:L.planActions,children:c?e.jsx(K,{href:"mailto:[email protected]",variant:"button-primary",startIcon:e.jsx(w,{className:L.planActionIcon,icon:ye}),children:A("5fEKfO",{description:"Contact us",default:"Nous contacter"})}):e.jsxs(e.Fragment,{children:[e.jsx(N,{to:"/app/user/subscription/offers",isDisabled:b,variant:"button-primary",children:A("n3I8OZ",{description:"Change plan",default:"Changer d'offre"})}),!s?.yearly&&e.jsx(N,{to:"/app/user/subscription/offers",isDisabled:b,variant:"button-secondary",children:A("c0RCXHQd",{description:"Passer en annuel ",default:"Passer en annuel "})})]})})}),e.jsx(Oo,{shouldDisplayVideoQuota:o})]}),!(b||p)&&e.jsxs(r,{color:"--neutral500",children:[A("Run/J5",{description:"Do you want to cancel your subscription?",default:"Vous souhaitez résilier votre abonnement ?"})," ",c?e.jsx(K,{href:"mailto:[email protected]",children:A("GwFiCJ",{description:"Please contact us",default:"Veuillez nous contacter"})}):e.jsx(k,{variant:"link-danger",onPress:()=>h(!0),"data-testid":"subscription-cancel-button",children:A("MTbRVxN7",{description:"Résilier l'abonnement ",default:"Résilier l'abonnement "})})]})]}),e.jsx(Vi,{isOpen:u,onOpenChange:h,title:A("bObO5S",{description:"Are you sure you want to cancel your Hosting & Distribution plan?",default:"Ãtes-vous sûr de vouloir résilier votre plan d'hébergement ?"}),description:A("W/Qgr3",{description:"Cancellation will result in the loss of access to the following key features...",default:"L'annulation du plan d'hébergement entraînera la perte de l'accès à certaines fonctionnalités pour vos émissions."}),onSubmit:P}),e.jsx(co,{isOpen:y,onOpenChange:x,onSubmit:z,isLoading:O.isPending})]})},qo=()=>{const{t:s}=m();return e.jsxs(Uo,{children:[e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:Cn})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("HhiWAc",{description:"Unlimited hosting",default:"Hébergement illimité"})}),e.jsx(J,{children:s("bKwNpu",{description:"Upload unlimited audio every month.",default:"Téléchargez d'innombrables heures d'audio chaque mois."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:An})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("WSx7vF",{description:"Unlimited episodes",default:"Nombre d'épisodes illimité"})}),e.jsx(J,{children:s("h95Aay",{description:"Create and share unlimited episodes every month.",default:"Ajoutez autant d'épisodes que vous le souhaitez chaque mois."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:Pn})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("mbnRBl",{description:"Unlimited downloads",default:"Téléchargements illimités"})}),e.jsx(J,{children:s("+99fla",{description:"See your audience grow with unlimited downloads.",default:"Observez votre audience grandir sans limite."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:_n})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("mMvxQ5",{description:"Episode scheduling",default:"Programmation des épisodes"})}),e.jsx(J,{children:s("S3MN5F",{description:"Publish instantly or schedule your episode to go live at the time you choose.",default:"Publiez vos nouveaux épisodes instantanément ou programmez-les quand vous le souhaitez."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:In})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("VyZplP",{description:"Structure your episodes in chapters",default:"Structurez vos épisodes en chapitres"})}),e.jsx(J,{children:s("vmYchv",{description:"Add chapters to organize your episodes and make listening easier.",default:"Ajoutez différents chapitres à vos épisodes pour faciliter l'écoute de votre émission."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:On})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("mhw60c",{description:"Protect your content",default:"Protégez votre contenu"})}),e.jsx(J,{children:s("G6nNNQ",{description:"Control who can see your episode and where it appears.",default:"Mettez à jour les paramètres de confidentialité de votre épisode pour contrôler où il peut apparaître et qui peut le regarder."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:Mn})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("Upt9hL",{description:"Private link",default:"Lien privé"})}),e.jsx(J,{children:s("b5fA7N",{description:"Share episodes privately with a select audience.",default:"Partagez des épisodes exclusifs avec votre public grâce à un lien unique."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:$n})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("RXsvJq",{description:"Share exclusive content",default:"Partager un contenu exclusif"})}),e.jsx(J,{children:s("jhKfzh",{description:"Offer bonus episodes or sneak peeks to your biggest fans.",default:"Faites découvrir à votre public une avant-première ou un épisode bonus et rapprochez-vous de votre communauté."})})]})]}),e.jsxs(G,{children:[e.jsx(Y,{children:e.jsx(V,{icon:zn})}),e.jsxs(X,{children:[e.jsx(Z,{children:s("QtMFrV",{description:"Create personalized playlists",default:"Créez des playlists personnalisées"})}),e.jsx(J,{children:s("cuBPQP",{description:"Group episodes by theme to help your listeners find what they love.",default:"Classez vos épisodes par thème et permettez à vos abonnés d'avoir un accès plus organisé à votre émission."})})]})]})]})},V=t(w)` 459 width: 1rem; 460 height: 1rem; 461`,Y=t.div` 462 background-color: var(--primary50); 463 color: var(--primary500); 464 border-radius: var(--r-s); 465 padding: 0.5rem; 466 display: flex; 467 align-items: center; 468 justify-content: center; 469 flex-shrink: 0; 470`,Uo=t.ul` 471 list-style: none; 472 padding-left: 0; 473 display: grid; 474 grid-template-columns: 1fr; 475 grid-gap: 1.5rem; 476 477 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 478 grid-template-columns: 1fr 1fr; 479 grid-gap: 2rem; 480 } 481`,G=t.li` 482 display: flex; 483 align-items: start; 484 column-gap: 0.75rem; 485`,X=t.div` 486 display: flex; 487 flex-direction: column; 488 row-gap: 0.25rem; 489 flex-grow: 1; 490`,Z=t.div` 491 font-size: var(--fs-body-l); 492 font-weight: var(--fw-semibold); 493`,J=t.div` 494 color: var(--neutral500); 495`,Ko=({isOpen:s,onOpenChange:n})=>{const{t:i}=m(),a=()=>n(!1);return e.jsxs(Vo,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(Yo,{children:[e.jsxs(Xo,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:i("tKRgve",{description:"Hosting",default:"Hébergement"})}),e.jsx(r,{color:"--neutral500",children:i("27CAEU",{description:"Ausha gives you everything you need to easily host and manage your podcast, all from one intuitive dashboard.",default:"Ausha vous offre tous les outils pour héberger et gérer facilement votre podcast avec un tableau de bord simple et intuitif."})})]}),e.jsx(Jo,{icon:e.jsx(Go,{icon:ne}),onPress:a,variant:"ghost","aria-label":"Close modal"})]}),e.jsx(Zo,{children:e.jsx(qo,{})})]})},Vo=t(B)` 496 padding: 1.5rem; 497 display: flex; 498 flex-direction: column; 499 align-items: stretch; 500 row-gap: 2rem; 501`,Yo=t.div` 502 display: flex; 503 align-items: start; 504 justify-content: space-between; 505 column-gap: 2rem; 506 507 & > button { 508 flex-shrink: 0; 509 } 510`,Go=t(w)` 511 width: 1rem; 512 height: 1rem; 513 color: var(--neutral500); 514`,Xo=t.div` 515 display: flex; 516 flex-direction: column; 517 row-gap: 0.25rem; 518 flex-grow: 1; 519`,Zo=t.div` 520 display: flex; 521 flex-direction: column; 522 overflow-y: auto; 523`,Jo=t(se)` 524 padding: 0; 525`,er=()=>{const{data:s}=De(),{formatNumber:n}
525=me(),{data:i}=be(),[a,l]=I.useState(!1),{currency:c}=ke(),{t:d}=m(),o=i?.pricing==="enterprise",u=s?.[c]?.launch?.monthly?.base,h=s?.[c]?.launch?.yearly?.base,y=u&&Number.parseInt(u.replaceAll(/[^\d]/g,""),10),x=h&&Number.parseInt(h.replaceAll(/[^\d]/g,""),10);return e.jsxs(e.Fragment,{children:[e.jsxs(tr,{"data-testid":"subscription-hosting-offer-section",children:[e.jsxs(ir,{children:[e.jsxs(nr,{children:[e.jsx(sr,{icon:Vs}),e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:d("W5ld/x",{description:"Hosting & Distribution",default:"Hébergement et Diffusion"})})]}),e.jsxs(rr,{children:[e.jsxs(Ge,{children:[e.jsx(Ye,{icon:xe}),e.jsx(r,{children:e.jsx(f,{i18nKey:"ymXq3s",description:"Enjoy <b>unlimited storage</b>, <b>downloads</b>, and <b>published episodes</b>.",default:"Bénéficiez d'un stockage, d'épisodes publiés et de <b>téléchargements illimités</b>.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Ge,{children:[e.jsx(Ye,{icon:xe}),e.jsx(r,{children:e.jsx(f,{i18nKey:"LleOWz",description:"Experience fast, <b>easy distribution</b> to 19 major podcast platforms.",default:"Profitez dâune <b>diffusion rapide et simple</b> sur plus d'une dizaine de plateformes dâécoute de référence.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Ge,{children:[e.jsx(Ye,{icon:xe}),e.jsx(r,{children:e.jsx(f,{i18nKey:"La3fuE",description:"Discover <b>Ausha's powerful marketing tools</b>to boost your audience.",default:"Découvrez les <b>outils marketing puissants d'Ausha</b> pour booster votre audience.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsx(ar,{variant:"link-primary",onPress:()=>l(!0),children:d("qX+W53",{description:"And more",default:"Et plus encore"})})]})]}),e.jsxs(or,{children:[e.jsxs(_,{$gap:"0.25rem",children:[e.jsxs(_,{children:[e.jsx(r,{fontWeight:"--fw-semibold",children:o?d("bvGIEO",{description:"Custom Amount",default:"Montant sur mesure"}):d("N5KRHI",{description:"Starting at",default:"à partir de"})}),e.jsx(r,{variant:"headingL",fontWeight:"--fw-bold",children:o?d("UraeeM",{description:"As needed",default:"Selon vos besoins"}):e.jsx(f,{i18nKey:"/P3xQS",description:"{amount} /month",default:"{amount} /month",variables:{amount:n(x/12,{style:"currency",currency:c,currencyDisplay:"narrowSymbol",maximumFractionDigits:x/12%1===0?0:2})}})})]}),e.jsx(r,{color:"--neutral500",children:o?d("ysEeOM",{description:"Contact us to unlock this subscription.",default:"Contactez-nous pour débloquer cet abonnement."}):e.jsx(f,{i18nKey:"ALMifq",description:"Billed annually or {amount}/month.",default:"Billed annually or {amount}/month.",variables:{amount:n(y,{style:"currency",currency:c,currencyDisplay:"narrowSymbol",maximumFractionDigits:y%1===0?0:2})}})})]}),o?e.jsx(K,{href:"mailto:[email protected]",variant:"button-primary",startIcon:e.jsx(Ps,{icon:ye}),children:d("5fEKfO",{description:"Contact us",default:"Nous contacter"})}):e.jsx(N,{to:"/app/user/subscription/offers",variant:"button-primary",startIcon:e.jsx(Ps,{icon:Bs}),"data-testid":"subscription-hosting-subscribe-link",children:d("JKhQHm",{description:"Upgrade to Hosting",default:"Souscrire à l'hébergement"})})]})]}),e.jsx(Ko,{isOpen:a,onOpenChange:l})]})},sr=t(w)` 526 width: 1.25rem; 527 height: 1.25rem; 528 color: var(--primary); 529`,nr=t.div` 530 display: flex; 531 align-items: center; 532 column-gap: 0.75rem; 533`,tr=t.div` 534 display: flex; 535 flex-direction: column; 536 gap: 2rem; 537 538 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 539 flex-direction: row; 540 } 541`,ir=t.div` 542 display: flex; 543 flex-direction: column; 544 row-gap: 1.5rem; 545 546 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 547 flex-grow: 1; 548 } 549`,or=t.div` 550 padding: 1.5rem; 551 border-radius: var(--r-m); 552 background-color: var(--primary50); 553 display: flex; 554 flex-direction: column; 555 row-gap: 1.5rem; 556 min-width: 20rem; 557 558 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 559 flex-shrink: 0; 560 } 561`,Ye=t(w)` 562 width: 0.75rem; 563 height: 0.75rem; 564`,rr=t.ul` 565 list-style: none; 566 padding-left: 0; 567 display: flex; 568 flex-direction: column; 569 row-gap: 0.5rem; 570`,Ge=t.li` 571 display: flex; 572 align-items: center; 573 column-gap: 0.5rem; 574`,ar=t(k)` 575 text-decoration: underline; 576 padding-inline: 1.25rem 0; 577 padding-block: 0 0; 578 align-self: flex-start; 579 font-weight: var(--fw-semibold); 580`,Ps=t(w)` 581 width: 0.75rem; 582 height: 0.75rem; 583`,lr=()=>{const{data:s}=be(),{data:n}=R(),{data:i}=Ce(),a=s?.canHostOnAusha===!1;return!i&&!n?.isHostingPro||a||i?.incomplete?e.jsx(er,{}):e.jsx(Fo,{subscription:i})},cr=()=>{const{t:s}=m();return e.jsxs(dr,{children:[e.jsx(r,{variant:"headingS",fontWeight:"--fw-semibold",children:s("pdi7+N",{description:"You will lose access toâ¦",default:"Vous perdrez l'accès à ..."})}),e.jsxs(ur,{children:[e.jsxs(_s,{children:[e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("2X6fYe",{description:"Rankings tracking on Apple Podcasts and Spotify",default:"Le suivi de votre classement sur Apple Podcasts et Spotify"})})]}),e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("y1DQJC",{description:"Metadata optimization with the PSO Checker",default:"L'optimisation des métadonnées de vos émissions avec PSO Checker"})})]}),e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("8LPtkH",{description:"Keyword visibility and difficulty insights",default:"L'évaluation du potentiel et de la concurrence des mots-clés"})})]}),e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("h2iXOc",{description:"Performance tracking across multiple country stores",default:"Le suivi de vos performances dans plusieurs pays"})})]})]}),e.jsxs(_s,{children:[e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("w78kpE",{description:"Competitor analysis",default:"L'analyse de vos concurrents"})})]}),e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("HyBZma",{description:"BAI-generated keyword suggestions",default:"L'augmentation de votre visibilité avec des suggestions de mots-clés"})})]}),e.jsxs(te,{children:[e.jsx(ie,{icon:$}),e.jsx(r,{children:s("B1SvSj",{description:"Data overview with the PSO Dashboard",default:"La vue d'ensemble de vos données via votre tableau de bord PSO"})})]})]})]})]})},dr=t.div` 584 padding: 1.5rem; 585 border-radius: var(--r-l); 586 background-color: var(--warning50); 587 display: flex; 588 flex-direction: column; 589 row-gap: 1rem; 590`,ur=t.div` 591 list-style: none; 592 display: flex; 593 flex-direction: column; 594 gap: 1rem; 595 596 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 597 flex-direction: row; 598 } 599`,te=t.li` 600 display: flex; 601 column-gap: 0.5rem; 602`,ie=t(w)` 603 padding-top: 0.25rem; 604 color: var(--warning500); 605 width: 0.75rem; 606 height: 0.75rem; 607`,_s=t.ul` 608 display: flex; 609 flex-direction: column; 610 row-gap: 1rem; 611 flex: 1; 612 padding-left: 0; 613`,pr=({isOpen:s,onOpenChange:n,onSubmit:i})=>{const{t:a}=m(),l=()=>n(!1);return e.jsxs(hr,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(mr,{children:[e.jsxs(xr,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:a("3olpVQ",{description:"Are you sure you want to cancel your PSO Control Panel plan?",default:"Ãtes-vous sûr de vouloir résilier votre plan du PSO Control Panel ?"})}),e.jsx(r,{color:"--neutral500",children:a("5lah50",{description:"Cancellation will result in the loss of access to the following key features...",default:"L'annulation du plan PSO Control Panel entraînera la perte de l'accès à certaines fonctionnalités pour vos émissions."})})]}),e.jsx(se,{icon:e.jsx(fr,{icon:ne}),onPress:l,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsx(gr,{children:e.jsx(cr,{})}),e.jsxs(vr,{children:[e.jsx(k,{variant:"link-primary",onPress:l,children:a("UE8dfu",{description:"Keep my subscription",default:"Conserver mon abonnement"})}),e.jsx(k,{variant:"danger",onPress:i,"data-testid":"subscription-cancel-confirm-button",children:a("BSmgpB",{description:"Continue to cancellation",default:"Confirmer l'annulation"})})]})]})},hr=t(B)` 614 padding: 1.5rem; 615 display: flex; 616 flex-direction: column; 617 align-items: stretch; 618 row-gap: 2rem; 619`,mr=t.div` 620 display: flex; 621 align-items: start; 622 justify-content: space-between; 623 column-gap: 2rem; 624 625 & > button { 626 flex-shrink: 0; 627 } 628`,fr=t(w)` 629 width: 1rem; 630 height: 1rem; 631 color: var(--neutral500); 632`,xr=t.div` 633 display: flex; 634 flex-direction: column; 635 row-gap: 0.25rem; 636 flex-grow: 1; 637`,gr=t.div` 638 display: flex; 639 flex-direction: column; 640 row-gap: 0.5rem; 641 overflow-y: auto; 642`,vr=t.div` 643 padding-top: 1.5rem; 644 border-top: 1px solid var(--neutral100); 645 display: flex; 646 align-items: center; 647 justify-content: space-between; 648`,br=["endPodcast","budgetary","technical","customerSupport","other","newHost","other"],jr=["lessExpensive","morePerforment","betetrInterface","moreFeatures","specificOffer","other"],yr=()=>{const{t:s}=m();return Re({reasons:pe(ge(br)).nullable(),newHostReasons:pe(ge(jr)).nullable(),newHostOtherReason:q().nullable(),otherReason:q().nullable(),message:q().nullable()}).refine(n=>n.reasons&&n.reasons.length>0||n.newHostReasons&&n.newHostReasons.length>0||n.newHostOtherReason&&n.newHostOtherReason.trim()!==""||n.otherReason&&n.otherReason.trim()!=="",{message:s("7ICMOA",{description:"Please select at least one reason",default:"Veuillez sélectionner au moins une raison"}),path:["reasons"]})},wr=({onClose:s,onSubmit:n,isLoading:i})=>{const a=yr(),{control:l,handleSubmit:c,formState:d}=Te({mode:"onChange",resolver:Le(a),defaultValues:{reasons:[],newHostReasons:[],newHostOtherReason:"",otherReason:"",message:""}}),{t:o}=m(),u=ve({control:l,name:"reasons"}),h=ve({control:l,name:"newHostReasons"}),y=u?.includes("newHost"),x=h?.includes("other"),M=u?.includes("other"),v=os(),{data:O}=He(),C=O?.some(p=>p.pricing===fe.LAUNCH),{isValid:A}=d;return e.jsxs(Sr,{onSubmit:c(n),children:[e.jsxs(tn,{children:[e.jsx(Is,{children:o("HcZDPC",{description:"What are the reasons for canceling your subscription?",default:"Quelles sont les raisons qui vous poussent à résilier votre abonnement ?"})}),e.jsx(T,{control:l,name:"reasons",render:({field:p,fieldState:b})=>e.jsxs(D,{children:[e.jsx(Cr,{children:e.jsxs(Os,{name:p.name,value:p.value??[],onChange:p.onChange,children:[e.jsx(j,{value:"endPodcast",children:o("QqbgeW",{description:"I'm ending my podcast",default:"Je mets fin à mon podcast"})}),e.jsxs(_,{children:[e.jsx(j,{value:"budgetary",children:o("51XeM1",{description:"For budgetary reasons",default:"Pour des raisons budgétaires"})}),!C&&e.jsx(Xe,{children:e.jsx(f,{i18nKey:"UKCDwY",description:"Find a plan that better suits your budget starting at â¬11/month. <link>Switch to the Launch plan ð</link>",default:"Trouvez un plan plus adapté à votre budget à partir de 11â¬/mois. <link>Passez au plan Launch ð</link>",components:{link:e.jsx(N,{to:"/app/user/subscription/offers"})}})})]}),e.jsxs(_,{children:[e.jsx(j,{value:"technical",children:o("+/RhDW",{description:"Due to technical issues",default:"En raison de problèmes techniques"})}),e.jsx(Xe,{children:e.jsx(f,{i18nKey:"lmCAxG",description:"Our teams are dedicated to providing you with the best experience possible. Did you encounter an issue? <link>Let us know! ð ï¸</link>",default:"Nos équipes s'efforcent de vous offrir la meilleure expérience possible. Vous avez rencontré un problème ? <link>N'hésitez pas à nous en faire part ! ð ï¸</link>",components:{link:e.jsx(k,{onPress:()=>v.show(),variant:"link-primary"})}})})]}),e.jsxs(_,{children:[e.jsx(j,{value:"customerSupport",children:o("BZKPfL",{description:"Due to poor customer service",default:"Suite à une mauvaise expérience avec le support client"})}),e.jsx(Xe,{children:e.jsx(f,{i18nKey:"NgiBq2",description:"We're sorry to hear that. Our podcast experts are here to help. <link>Share your experience with us, and let's continue the conversation ð</link>",default:"Nous sommes désolés de l'apprendre. Nos experts et expertes en podcasts s
648ont là pour vous aider. <link>Partagez votre expérience avec nous et poursuivons la conversation ð</link>",components:{link:e.jsx(k,{onPress:()=>v.show(),variant:"link-primary"})}})})]}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"newHost",children:o("/l8bPm",{description:"To switch to a different host",default:"Pour changer d'hébergeur"})}),y&&e.jsxs(kr,{children:[e.jsxs(Is,{children:[o("TXXs+Y",{description:"What are the reasons for switching to a different host?",default:"Quelles sont les raisons qui vous ont poussé à changer d'hébergeur ?"})," "]}),e.jsx(T,{control:l,name:"newHostReasons",render:({field:g,fieldState:S})=>e.jsxs(D,{children:[e.jsxs(Os,{name:g.name,value:g.value??[],onChange:g.onChange,children:[e.jsx(j,{value:"lessExpensive",children:o("rLzfx4",{description:"They are less expensive",default:"Ils sont moins chers"})}),e.jsx(j,{value:"morePerformant",children:o("qXkEAg",{description:"Their solution works better.",default:"Ils sont plus performants"})}),e.jsx(j,{value:"betterInterface",children:o("kFMgC0",{description:"They have a more ergonomic design",default:"Ils ont une meilleure interface et expérience utilisateur"})}),e.jsx(j,{value:"moreFeatures",children:o("k8sIIb",{description:"They offer features you don't have",default:"Ils offrent des fonctionnalités que vous n'avez pas"})}),e.jsx(j,{value:"specificOffer",children:o("2NoqYz",{description:"They gave me a specific offer",default:"Ils m'ont fait une offre spécifique"})}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"other",children:o("1qF9e8",{description:"Other",default:"Autre"})}),x&&e.jsx(Ms,{children:e.jsx(T,{name:"otherReason",control:l,render:({field:P,fieldState:z})=>e.jsxs(e.Fragment,{children:[e.jsx(ee,{multiline:!0,value:P.value??"",onChange:P.onChange,onBlur:P.onBlur,name:P.name,placeholder:o("zZt7eR",{description:"Please explain any other reason for switching to a different host",default:"Expliquez-nous pourquoi vous souhaitez changer d'hébergeur"}),isInvalid:!!z.error,style:{minHeight:"7.5rem"}}),z.error&&e.jsx(E,{children:z.error.message})]})})})]})]}),S.error?.message?e.jsx(E,{children:S.error.message}):null]})})]})]}),e.jsxs(_,{$gap:"0.5rem",children:[e.jsx(j,{value:"other",children:o("1qF9e8",{description:"Other",default:"Autre"})}),M&&e.jsx(Ms,{children:e.jsx(T,{name:"otherReason",control:l,render:({field:g,fieldState:S})=>e.jsxs(e.Fragment,{children:[e.jsx(ee,{multiline:!0,value:g.value??"",onChange:g.onChange,onBlur:g.onBlur,name:g.name,placeholder:o("zZt7eR",{description:"Please explain any other reason for switching to a different host",default:"Expliquez-nous pourquoi vous souhaitez changer d'hébergeur"}),isInvalid:!!S.error,style:{minHeight:"7.5rem"}}),S.error&&e.jsx(E,{children:S.error.message})]})})})]})]})}),b.error?.message?e.jsx(E,{children:b.error.message}):null]})})]}),e.jsx(T,{name:"message",control:l,render:({field:p,fieldState:b})=>e.jsxs(D,{children:[e.jsx(rs,{children:o("2djxMk",{description:"Would you like to tell us a bit more? (optional)",default:"Souhaitez-vous nous en dire un peu plus ? (facultatif)"})}),e.jsx(ee,{multiline:!0,value:p.value??"",onChange:p.onChange,onBlur:p.onBlur,name:p.name,placeholder:o("4G/xjV",{description:"Your message will be carefully reviewed",default:"Notre équipe prendra le temps d'examiner attentivement votre message"}),isInvalid:!!b.error,style:{minHeight:"7.5rem"}}),b.error&&e.jsx(E,{children:b.error.message})]})}),e.jsxs(Ar,{children:[e.jsx(k,{variant:"link-primary",onPress:s,children:o("UE8dfu",{description:"Keep my subscription",default:"Conserver mon abonnement"})}),e.jsx(k,{type:"submit",variant:"danger",isDisabled:!A,isLoading:i,"data-testid":"subscription-cancel-survey-submit-button",children:o("BSmgpB",{description:"Continue to cancellation",default:"Confirmer l'annulation"})})]})]})},Sr=t.form` 649 display: flex; 650 flex-direction: column; 651 row-gap: 2rem; 652`,Is=t(r)` 653 font-weight: var(--fw-semibold); 654`,Xe=t(r)` 655 color: var(--neutral500); 656 padding-left: 1.5rem; 657`,tn=t.div` 658 display: flex; 659 flex-direction: column; 660 row-gap: 1rem; 661`,kr=t(tn)` 662 padding: 1rem; 663 border-radius: var(--r-m); 664 background-color: var(--neutral50); 665 margin-left: 1.5rem; 666 row-gap: 0.5rem; 667`,Cr=t.div` 668 display: flex; 669 flex-direction: column; 670 gap: 1rem; 671`,Os=t(as)` 672 display: flex; 673 flex-direction: column; 674 gap: 0.5rem; 675`,Ar=t.div` 676 padding-top: 1.5rem; 677 border-top: 1px solid var(--neutral100); 678 display: flex; 679 align-items: center; 680 justify-content: space-between; 681`,Ms=t(D)` 682 padding-left: 1.5rem; 683`,Pr=({isOpen:s,onOpenChange:n,onSubmit:i,isLoading:a})=>{const{t:l}=m(),c=()=>n(!1);return e.jsxs(_r,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(Ir,{children:[e.jsxs(Mr,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:l("MLiCmZ",{description:"Share with us the reason for your cancellation",default:"Partagez avec nous la raison de votre résiliation"})}),e.jsx(r,{color:"--neutral500",children:l("kX2UaE",{description:"Every piece of feedback helps us improve.",default:"Chacun de vos commentaires nous aide à nous améliorer."})})]}),e.jsx(se,{icon:e.jsx(Or,{icon:ne}),onPress:c,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsx($r,{children:e.jsx(wr,{onClose:c,onSubmit:i,isLoading:a})})]})},_r=t(B)` 684 padding: 1.5rem; 685 display: flex; 686 flex-direction: column; 687 align-items: stretch; 688 row-gap: 2rem; 689`,Ir=t.div` 690 display: flex; 691 align-items: start; 692 justify-content: space-between; 693 column-gap: 2rem; 694 695 & > button { 696 flex-shrink: 0; 697 } 698`,Or=t(w)` 699 width: 1rem; 700 height: 1rem; 701 color: var(--neutral500); 702`,Mr=t.div` 703 display: flex; 704 flex-direction: column; 705 row-gap: 0.25rem; 706 flex-grow: 1; 707`,$r=t.div` 708 display: flex; 709 flex-direction: column; 710 row-gap: 0.5rem; 711 overflow-y: auto; 712`,zr=()=>{const{t:s}=m(),{data:n}=R(),{data:i}=Zs(),{data:a}=yt(n?.id),l=n?.isPsoPro??!1,c=n?.userOptions?.includes(we.UNLIMITED_TRACKED_KEYWORDS);return e.jsx(je,{title:s("x8KFpQ",{description:"Keywords",default:"Mots-clés"}),currentValue:a?.current??0,maxValue:a?.maximum??0,valueUnit:s("tcd3E69m",{description:"{count,plural,=0{ke
712yword} one{keyword} other{keywords}}",default:"keywords",plural:!0,count:a?.maximum??0}),customValue:c?s("jaq5aw",{description:"Unlimited",default:"Illimités"}):null,tooltipMessage:c?null:e.jsx(f,{i18nKey:"HzogFz",description:"You have {count} keywords included in your plan. <link>Learn more about keywords management</link>",default:"Vous avez {count} mots-clés inclus dans votre offre. <link>En savoir plus sur la gestion de vos mots-clés</link>",components:{link:e.jsx(Rr,{href:s("GrgS20",{description:"https://help.ausha.co/en/articles/8517435-podcast-search-optimization-pso-glossary",default:"https://help.ausha.co/fr/articles/8517435-le-lexique-du-pso-podcast-search-optimisation"}),target:"_blank"})},variables:{count:a?.maximum??0}}),action:c?null:l?e.jsx(Se,{}):i?.pricing===is.STARTER?e.jsx(N,{to:"/app/user/subscription/offers/pso",children:s("n3I8OZ",{description:"Change plan",default:"Changer d'offre"})}):e.jsx(K,{href:s("qifjPF",{description:"https://www.ausha.co/pro/",default:"https://www.ausha.co/fr/pro/"}),target:"_blank",children:e.jsx(f,{i18nKey:"ftBgjF",description:"Unlock more with <badge />",default:"Débloquez plus avec l'offre <badge />",components:{badge:e.jsx(wt,{pricing:"pro"})}})})})},Rr=t.a` 713 color: inherit; 714 font-size: inherit; 715 font-weight: inherit; 716 text-decoration: underline; 717`,Tr=pe(En()),Lr=async({queryKey:[{channelId:s}]})=>{const{data:n}=await Ln(s),i=n.map(a=>a.id);return Tr.parse(i)},on=s=>Rn({queryKey:Tn.trackedShowsByChannelId(s),queryFn:Lr,enabled:!!s}),Er=()=>{const{data:s}=R(),{data:n}=on(s?.id),{data:i}=Fs({channelId:s?.id}),{t:a}=m();if(s&&n&&i){const l=i.filter(c=>n.includes(c.id));return e.jsxs(Hr,{children:[e.jsxs(Nr,{children:[e.jsx($s,{children:e.jsx(r,{fontWeight:"--fw-semibold",children:a("BcBL3d",{description:"Shows",default:"Ãmissions"})})}),e.jsx($s,{})]}),e.jsx(Dr,{children:l.map(c=>e.jsxs(Qr,{children:[e.jsx(zs,{children:e.jsxs(Wr,{children:[e.jsx(Br,{src:c.imageUrl||Hn,alt:c.name}),e.jsx(r,{fontWeight:"--fw-semibold",numberOfLines:1,children:c.name})]})}),e.jsx(zs,{children:e.jsx(N,{to:"/app/channel/$channelId/show/$showId/pso/settings",params:{channelId:s.id.toString(),showId:c.id.toString()},"aria-label":a("sDxVxL",{description:"Go to {showName} PSO settings page",default:"Aller sur la page des paramètres PSO de l'émission {showName}",variables:{showName:c.name}}),startIcon:e.jsx(Fr,{icon:ts}),children:a("c9XaD7",{description:"Manage",default:"Gérer"})})})]},c.id))})]})}return e.jsx("div",{children:"loading..."})},Hr=t.div` 718 display: flex; 719 flex-direction: column; 720`,Nr=t.div` 721 position: sticky; 722 top: 0; 723 width: 100%; 724 background-color: var(--neutral50); 725 height: 3rem; 726 z-index: 1; 727 border-radius: var(--r-m); 728 display: flex; 729 align-items: center; 730`,$s=t.div` 731 display: flex; 732 align-items: center; 733 padding-inline: 1rem; 734 text-align: left; 735 736 &:first-of-type { 737 flex-grow: 1; 738 } 739 &:last-of-type { 740 flex-shrink: 0; 741 } 742`,Dr=t.div` 743 display: flex; 744 flex-direction: column; 745`,Qr=t.div` 746 display: flex; 747 align-items: center; 748`,zs=t.div` 749 padding-inline: 1rem; 750 height: 4rem; 751 display: flex; 752 align-items: center; 753 min-width: 0; 754 755 &:first-of-type { 756 flex-grow: 1; 757 border-right: 1px solid var(--neutral100); 758 } 759 &:last-of-type { 760 flex-shrink: 0; 761 } 762`,Wr=t.div` 763 display: flex; 764 align-items: center; 765 gap: 0.75rem; 766 height: 100%; 767 min-width: 0; 768`,Br=t.img` 769 width: 2rem; 770 height: 2rem; 771 border-radius: var(--r-s); 772 object-fit: cover; 773`,Fr=t(w)` 774 width: 0.75rem; 775 height: 0.75rem; 776`,qr=()=>e.jsxs(Vr,{"data-testid":"subscription-pso-tracked-shows-empty-state",children:[e.jsx(Yr,{icon:Dn}),e.jsxs(Gr,{children:[e.jsx(r,{variant:"bodyL",fontWeight:"--fw-bold",color:"--neutral500",children:hs("DsRKbf",{description:"No shows tracked yet",default:"Aucune émission suivie pour lâinstant"})}),e.jsx(r,{color:"--neutral500",children:hs("0Slekw",{description:"Turn on PSO to start tracking a show.",default:"Commencez à en suivre une en activant le PSO."})})]})]}),Ur=({isOpen:s,onOpenChange:n})=>{const{data:i}=R(),{data:a}=on(i.id),{t:l}=m();return e.jsxs(Kr,{isOpen:s,onOpenChange:n,size:"medium","data-testid":"subscription-pso-tracked-shows-modal",children:[e.jsxs(Ls,{children:[e.jsxs(_,{$gap:"0.25rem",children:[e.jsx(Es,{children:l("dsvrss",{description:"Tracked shows",default:"Ãmissions suivies"})}),e.jsx(r,{color:"--neutral500",children:l("yEQK9z",{description:"See your PSO-enabled shows and manage their settings.",default:"Retrouvez vos émissions avec le PSO activé et gérez leurs paramètres."})})]}),e.jsx(Nn,{})]}),(a?.length||0)>0?e.jsx(Er,{}):e.jsx(qr,{})]})},Kr=t(B)` 777 padding: 1.5rem; 778 display: flex; 779 flex-direction: column; 780 align-items: stretch; 781 row-gap: 2rem; 782 overflow-y: auto; 783`,Vr=t.div` 784 display: flex; 785 flex-direction: column; 786 align-items: center;
787 align-self: stretch; 788 gap: var(--sp-m); 789 padding: var(--sp-xxl); 790 border-radius: var(--r-m); 791 background: var(--neutral50); 792`,Yr=t(w)` 793 color: var(--neutral500); 794 width: 1.5rem; 795 height: 1.5rem; 796`,Gr=t.div` 797 display: flex; 798 flex-direction: column; 799 align-items: center; 800 align-self: stretch; 801 gap: var(--sp-xxs); 802`,Xr=()=>{const{t:s}=m(),{data:n}=R(),{data:i}=St(n?.id),[a,l]=I.useState(!1),{data:c}=He(),o=!!c?.find(h=>["pso_starter","pso_grow"].includes(h.pricing))?.endsAt,u=n?.userOptions?.includes(we.UNLIMITED_TRACKED_SHOWS);return e.jsxs(e.Fragment,{children:[e.jsx(je,{"data-testid":"subscription-pso-tracked-shows-quota",title:s("dsvrss",{description:"Tracked shows",default:"Ãmissions suivies"}),currentValue:i?.current??0,maxValue:i?.maximum??0,valueUnit:s("avXsbC",{description:"{count,plural,=0{show} one{show} other{shows}}",default:"{count,plural,=0{émission} one{émission} other{émissions}}",plural:!0,count:i?.maximum??0}),customValue:u?s("zzec48",{description:"Unlimited",default:"Illimitées"}):null,tooltipMessage:u?null:e.jsx(f,{i18nKey:"ToPgNO",description:"{count,plural,one{You have # tracked show included in your plan. <link>Learn more about PSO tracked shows</link>} other{You have # tracked shows included in your plan. <link>Learn more about PSO tracked shows</link>}}",default:"{count,plural,one{Vous avez # émission suivie incluse dans votre offre. <link>En savoir plus sur la gestion de vos émissions suivies</link>} other{Vous avez # émissions suivies incluses dans votre offre. <link>En savoir plus sur la gestion de vos émissions suivies</link>}}",components:{link:e.jsx(Zr,{href:s("GrgS20",{description:"https://help.ausha.co/en/articles/8517435-podcast-search-optimization-pso-glossary",default:"https://help.ausha.co/fr/articles/8517435-le-lexique-du-pso-podcast-search-optimisation"}),target:"_blank"})},plural:!0,count:i?.maximum??0}),action:!o&&e.jsx(k,{variant:"link-primary",onPress:()=>l(!0),"data-testid":"subscription-pso-tracked-shows-manage-button",children:s("c9XaD7",{description:"Manage",default:"Gérer"})})}),e.jsx(Ur,{isOpen:a,onOpenChange:l})]})},Zr=t.a` 803 color: inherit; 804 font-size: inherit; 805 font-weight: inherit; 806 text-decoration: underline; 807`,Jr=()=>e.jsxs(ea,{children:[e.jsx(Xr,{}),e.jsx(zr,{})]}),ea=t.div` 808 display: flex; 809 flex-direction: column; 810 row-gap: 0.5rem; 811`,sa="Active__Active__wrapper__6-u-uMQ8",na="Active__Active__header__6-u-uMQ8",ta="Active__Active__headerLeft__6-u-uMQ8",ia="Active__Active__icon__6-u-uMQ8",oa="Active__Active__planAndQuotas__6-u-uMQ8",ra="Active__Active__canceledAlert__6-u-uMQ8",aa="Active__Active__planIllustration__6-u-uMQ8",la="Active__Active__microphoneIllustration__6-u-uMQ8",ca="Active__Active__suitcaseIllustration__6-u-uMQ8",da="Active__Active__planActionIcon__6-u-uMQ8",ua="Active__Active__planActions__6-u-uMQ8",H={wrapper:sa,header:na,headerLeft:ta,icon:ia,planAndQuotas:oa,canceledAlert:ra,planIllustration:aa,microphoneIllustration:la,suitcaseIllustration:ca,planActionIcon:da,planActions:ua},pa=cs("/_authenticated/app/user/subscription/offers/pso"),ha=({subscription:s})=>{const n=pa.useNavigate(),{formatDate:i}=me(),{data:a}=R(),l=a?.isPsoPro??!1,[c,d]=I.useState(!1),[o,u]=I.useState(!1),h=ds(),[y,x]=I.useState(!1),M=ls(),{t:v}=m(),O=Qs(s),C=Ws(s),A={[is.STARTER]:e.jsx("img",{className:ue(H.planIllustration,H.microphoneIllustration),src:Gs,alt:""}),[is.GROW]:e.jsx("img",{className:H.planIllustration,src:Xs,alt:""})},p=l?e.jsx("img",{className:ue(H.planIllustration,H.suitcaseIllustration),src:Us,alt:""}):A[s.pricing],b=()=>{d(!1),u(!0)},g=()=>{s&&h.mutate(s.id,{onSuccess:()=>{u(!1)}})},S=async()=>{try{x(!0);const z=await Ee();x(!1);const{url:F}=z;globalThis.location.href=F}catch{x(!1),U.alert(v("K0wygg",{description:"An unexpected error occurred. Please try again later.",default:"Une erreur inattendue est survenue. Merci de réessayer plus tard."}))}},P=()=>{if(!(!M||!s)){if(C){S();return}n({to:"/app/user/subscription/offers/pso"})}};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:H.wrapper,"data-testid":"subscription-pso-offer-section",children:[e.jsxs("div",{className:H.header,children:[e.jsxs("div",{className:H.headerLeft,children:[e.jsx(w,{className:H.icon,icon:Ys}),e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:v("6O9iHo",{description:"PSO Control Panel",default:"PSO Control Panel"})})]}),e.jsx(us,{status:C?"canceled":"active"})]}),(C||O)&&e.jsx(Ne,{className:H.canceledAlert,variant:"info",defaultIcon:!0,action:e.jsx(k,{size:"small",onPress:P,isLoading:y,"data-testid":"subscription-reactivate-button",children:v("RJI0W/",{description:"Reactivate",default:"Réactiver"})}),children:e.jsx(r,{fontWeight:"--fw-semibold",children:e.jsx(f,{i18nKey:"22o5aF",description:"This subscription has been canceled and will remain active until the end of the billing period, {endDate}.",default:"This subscription has been canceled and will remain active until the end of the billing period, {endDate}.",variables:{endDate:i(s?.endsAt||"",{day:"numeric",month:"short",year:"numeric"})}})})}),e.jsxs("div",{className:H.planAndQuotas,children:[e.jsx(nn,{title:s?Qn[s.pricing]:"Pro",illustration:p,children:e.jsx("div",{className:H.planActions,children:l?e.jsx(K,{href:"mailto:[email protected]",variant:"button-primary",startIcon:e.jsx(w,{className:H.planActionIcon,icon:ye}),children:v("5fEKfO",{description:"Contact us",default:"Nous contacter"})}):e.jsxs(e.Fragment,{children:[e.jsx(N,{to:"/app/user/subscription/offers/pso",isDisabled:C,variant:"button-primary",children:v("n3I8OZ",{description:"Change plan",default:"Changer d'offre"})}),!s?.yearly&&e.jsx(N,{to:"/app/user/subscription/offers/pso",isDisabled:C,variant:"button-secondary",children:v("c0RCXHQd",{description:"Passer en annuel ",default:"Passer en annuel "})})]})})}),e.jsx(Jr,{})]}),!C&&e.jsxs(r,{color:"--neutral500",children:[v("Run/J5",{description:"Do you want to cancel your subscription?",default:"Vous souhaitez résilier votre abonnement ?"})," ",l?e.jsx(K,{href:"mailto:[email protected]",children:v("GwFiCJ",{description:"Please contact us",default:"Veuillez nous contacter"})}):e.jsx(k,{variant:"link-danger",onPress:()=>d(!0),"data-testid":"subscription-cancel-button",children:v("MTbRVxN7",{description:"Résilier l'abonnement ",default:"Résilier l'abonnement "})})]})]}),e.jsx(pr,{isOpen:c,onOpenChange:d,onSubmit:b}),e.jsx(Pr,{isOpen:o,onOpenChange:u,onSubmit:g,isLoading:h.isPending})]})},ma=()=>{const{data:s}=he(qs),{t:n}=m(),i=s?.options?.includes(we.PSO_YOUTUBE);return e.jsxs(fa,{children:[e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:Wn})}),e.jsxs(le,{children:[e.jsx(ce,{children:i?n("byM3dy",{description:"Track your rankings on Apple Podcasts and Spotify & YouTube",default:"Suivez votre classement sur Apple Podcasts, Spotify & YouTube"}):n("Sc5rsz",{description:"Track your rankings on Apple Podcasts and Spotify",default:"Suivez votre classement sur Apple Podcasts et Spotify"})}),e.jsx(de,{children:n("cVw4OX",{description:"Track your ranking progress over time with separate views for each keyword and platform.",default:"Suivez l'évolution de votre classement au fil du temps, avec des vues distinctes pour chaque mot-clé et chaque plateforme."})})]})]}),e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:Bn})}),e.jsxs(le,{children:[e.jsx(ce,{children:n("taMOZp",{description:"Evaluate keyword potential and competition",default:"Ãvaluer le potentiel et la concurrence des mots-clés"})}),e.jsx(de,{children:n("Y+e6VY",{description:"Track keyword popularity with the Search Volume and measure ranking difficulty using the Difficulty Score.",default:"Suivez la popularité des mots-clés avec le volume de recherche et évaluez les difficultés de classement avec le score de difficulté."})})]})]}),e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:Fn})}),e.jsxs(le,{children:[e.jsx(ce,{children:n("zdFi95",{description:"Analyze your competitors",default:"Analyser vos concurrents"})}),e.jsx(de,{children:n("P9QoYv",{description:"Access the top 100 search results for each keyword and compare your podcastâs performance against others in real time.",default:"Accédez aux 100 premiers résultats de recherche pour chaque mot-clé ciblé et comparez votre classement à celui de vos concurrents en temps réel."})})]})]}),e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:qn})}),e.jsxs(le,{children:[e.jsx(ce,{children:n("Aw+9zx",{description:"Optimize your metadata with the PSO Checker",default:"Optimisez vos métadonnées d'exposition avec PSO Checker"})}),e.jsx(de,{children:n("0mi7FZ",{description:"Get personalized recommendations to improve your titles, descriptions, and tags for better search visibility.",default:"Suivez la liste de recommandations du PSO Checker pour optimiser vos titres, descriptions et tags afin d'obtenir une visibilité maximale."})})]})]}),e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:ze})}),e.jsxs(le,{children:[e.jsx(ce,{children:n("c5PKHY",{description:"Boost your visibility with AI keyword suggestions",default:"Améliorez votre visibilité grâce aux suggestions de mots-clés de l'IA"})}),e.jsx(de,{children:n("LlOtuh",{description:"Get smart, AI-powered keyword suggestions to uncover new growth opportunities.",default:"Identifiez de nouvelles opportunités grâce à des suggestions de mots-clés remontées par notre IA."})})]})]}),e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:Un})}),e.jsxs(le,{children:[e.jsx(ce,{children:n("pGGx+9",{description:"Centralize your visibility insights",default:"Obtenez une vue d'ensemble de vos données"})}),e.jsx(de,{children:n("sdoR+E",{description:"Track keyword trends, shifts in position, and overall progress all in one intuitive dashboard.",default:"Trouvez toutes les tendances et les changements de position en un seul endroit, et suivez les progrès de votre visibilité en un coup d'Åil."})})]})]}),e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{icon:Kn})}),e.jsxs(le,{children:[e.jsx(ce,{children:n("CW21Va",{description:"Track your performance across multiple country stores",default:"Suivez vos performances dans plusieurs pays"})}),e.jsx(de,{children:n("UBSuvU",{description:"Refine your visibility strategy with country-specific performance insights.",default:"Adaptez votre stratég
811ie PSO en fonction des performances géographiques pour une pertinence locale et une découvrabilité mondiale."})})]})]})]})},oe=t(w)` 812 width: 1rem; 813 height: 1rem; 814`,re=t.div` 815 background-color: var(--primary50); 816 color: var(--primary500); 817 border-radius: var(--r-s); 818 padding: 0.5rem; 819 display: flex; 820 align-items: center; 821 justify-content: center; 822 flex-shrink: 0; 823`,fa=t.ul` 824 list-style: none; 825 padding-left: 0; 826 display: grid; 827 grid-template-columns: 1fr; 828 grid-gap: 1.5rem; 829 830 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 831 grid-template-columns: 1fr 1fr; 832 grid-gap: 2rem; 833 } 834`,ae=t.li` 835 display: flex; 836 align-items: start; 837 column-gap: 0.75rem; 838`,le=t.div` 839 display: flex; 840 flex-direction: column; 841 row-gap: 0.25rem; 842 flex-grow: 1; 843`,ce=t.div` 844 font-size: var(--fs-body-l); 845 font-weight: var(--fw-semibold); 846`,de=t.div` 847 color: var(--neutral500); 848`,xa=({isOpen:s,onOpenChange:n})=>{const{t:i}=m(),a=()=>n(!1);return e.jsxs(ga,{isOpen:s,onOpenChange:n,size:"medium",children:[e.jsxs(va,{children:[e.jsxs(ja,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:i("6O9iHo",{description:"PSO Control Panel",default:"PSO Control Panel"})}),e.jsx(r,{color:"--neutral500",children:i("ZVemzj",{description:"With Aushaâs complete podcast search optimization toolkit, you can identify high-impact keywords, refine your episode details, and track your rankings to stay ahead of the competition.",default:"Identifiez les mots-clés à fort impact, optimisez les données des épisodes et suivez les classements pour surpasser vos concurrents grâce à notre boîte à outils complète d'optimisation de référencement de podcasts."})})]}),e.jsx(se,{icon:e.jsx(ba,{icon:ne}),onPress:a,variant:"ghost","aria-label":"Close modal",style:{padding:0}})]}),e.jsx(ya,{children:e.jsx(ma,{})})]})},ga=t(B)` 849 padding: 1.5rem; 850 display: flex; 851 flex-direction: column; 852 align-items: stretch; 853 row-gap: 2rem; 854`,va=t.div` 855 display: flex; 856 align-items: start; 857 justify-content: space-between; 858 column-gap: 2rem; 859 860 & > button { 861 flex-shrink: 0; 862 } 863`,ba=t(w)` 864 width: 1rem; 865 height: 1rem; 866 color: var(--neutral500); 867`,ja=t.div` 868 display: flex; 869 flex-direction: column; 870 row-gap: 0.25rem; 871 flex-grow: 1; 872`,ya=t.div` 873 display: flex; 874 flex-direction: column; 875 overflow-y: auto; 876`,wa=()=>{const{data:s}=R(),{formatNumber:n}=me(),i=s?.isHostingPro??!1,{data:a}=De(),[l,c]=I.useState(!1),{currency:d}=ke(),{t:o}=m(),u=a?.[d]?.psoStarter?.monthly?.base,h=a?.[d]?.psoStarter?.yearly?.base,y=u&&Number.parseInt(u.replaceAll(/[^\d]/g,""),10),x=h&&Number.parseInt(h.replaceAll(/[^\d]/g,""),10),M=s?.userOptions?.includes(we.PSO_YOUTUBE);return e.jsxs(e.Fragment,{children:[e.jsxs(Ca,{"data-testid":"subscription-pso-offer-section",children:[e.jsxs(Aa,{children:[e.jsxs(ka,{children:[e.jsx(Sa,{icon:Ys}),e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:o("6O9iHo",{description:"PSO Control Panel",default:"PSO Control Panel"})})]}),e.jsxs(_a,{children:[e.jsxs(Je,{children:[e.jsx(Ze,{icon:xe}),e.jsx(r,{children:M?e.jsx(f,{i18nKey:"sAZ88s",description:"<b>Boost your podcastâs visibility on Apple Podcasts, Spotify & YouTube</b>: Optimize your metadata (titles, descriptions, tags) to help listeners find you more easily.",default:"<b>Boostez votre visibilité sur Apple Podcasts, Spotify & YouTube</b> : Optimisez vos titres, descriptions et tags pour être facilement trouvé par des auditeurs.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}}):e.jsx(f,{i18nKey:"DIwNkP",description:"<b>Boost your podcastâs visibility on Apple Podcasts & Spotify</b>: Optimize your metadata (titles, descriptions, tags) to help listeners find you more easily.",default:"<b>Boostez votre visibilité sur Apple Podcasts & Spotify</b> : Optimisez vos titres, descriptions et tags pour être facilement trouvé par des auditeurs.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Je,{children:[e.jsx(Ze,{icon:xe}),e.jsx(r,{children:e.jsx(f,{i18nKey:"FCKjo/",description:"<b>Track & benchmark your performance</b>: Monitor your podcastâs rankings in real-time and compare with competitors to refine your strategy.",default:"<b>Suivez et comparez vos positions</b> : Suivez vos progrès en temps réel et comparez-vous à la concurrence pour affiner votre stratég
876ie.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsxs(Je,{children:[e.jsx(Ze,{icon:xe}),e.jsx(r,{children:e.jsx(f,{i18nKey:"HwOwQM",description:"<b>Unlock new growth opportunities</b>: Let AI discover high-potential keywords and get search volume insights to maximize your reach.",default:"<b>Débloquez de nouvelles opportunités de croissance</b> : Laissez lâIA identifier vos mots-clés à fort potentiel et accédez aux volumes de recherche pour maximiser votre visibilité.",components:{b:e.jsx(r,{as:"span",fontWeight:"--fw-semibold"})}})})]}),e.jsx(Ia,{variant:"link-primary",onPress:()=>c(!0),children:o("qX+W53",{description:"And more",default:"Et plus encore"})})]})]}),e.jsxs(Pa,{children:[e.jsxs(_,{$gap:"0.25rem",children:[e.jsxs(_,{children:[e.jsx(r,{fontWeight:"--fw-semibold",children:i?o("bvGIEO",{description:"Custom Amount",default:"Montant sur mesure"}):o("N5KRHI",{description:"Starting at",default:"à partir de"})}),e.jsx(r,{variant:"headingL",fontWeight:"--fw-bold",children:i?o("UraeeM",{description:"As needed",default:"Selon vos besoins"}):e.jsx(f,{i18nKey:"/P3xQS",description:"{amount} /month",default:"{amount} /month",variables:{amount:n(x/12,{style:"currency",currency:d,currencyDisplay:"narrowSymbol",maximumFractionDigits:x/12%1===0?0:2})}})})]}),e.jsx(r,{color:"--neutral500",children:i?o("ysEeOM",{description:"Contact us to unlock this subscription.",default:"Contactez-nous pour débloquer cet abonnement."}):e.jsx(f,{i18nKey:"ALMifq",description:"Billed annually or {amount}/month.",default:"Billed annually or {amount}/month.",variables:{amount:n(y,{style:"currency",currency:d,currencyDisplay:"narrowSymbol",maximumFractionDigits:y%1===0?0:2})}})})]}),i?e.jsx(K,{href:"mailto:[email protected]",variant:"button-primary",startIcon:e.jsx(Rs,{icon:ye}),children:o("5fEKfO",{description:"Contact us",default:"Nous contacter"})}):e.jsx(N,{to:"/app/user/subscription/offers/pso",variant:"button-primary",startIcon:e.jsx(Rs,{icon:Bs}),"data-testid":"subscription-pso-subscribe-link",children:o("keFHzV",{description:"Upgrade to PSO",default:"Souscrire au PSO"})})]})]}),e.jsx(xa,{isOpen:l,onOpenChange:c})]})},Sa=t(w)` 877 width: 1.25rem; 878 height: 1.25rem; 879 color: var(--primary); 880`,ka=t.div` 881 display: flex; 882 align-items: center; 883 column-gap: 0.75rem; 884`,Ca=t.div` 885 display: flex; 886 flex-direction: column; 887 gap: 2rem; 888 889 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 890 flex-direction: row; 891 } 892`,Aa=t.div` 893 display: flex; 894 flex-direction: column; 895 row-gap: 1.5rem; 896 897 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 898 flex-grow: 1; 899 } 900`,Pa=t.div` 901 padding: 1.5rem; 902 border-radius: var(--r-m); 903 background-color: var(--primary50); 904 display: flex; 905 flex-direction: column; 906 row-gap: 1.5rem; 907 min-width: 20rem; 908 909 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 910 flex-shrink: 0; 911 } 912`,Ze=t(w)` 913 width: 0.75rem; 914 height: 0.75rem; 915 padding-top: 0.25rem; 916`,_a=t.ul` 917 list-style: none; 918 padding-left: 0; 919 display: flex; 920 flex-direction: column; 921 row-gap: 0.5rem; 922`,Je=t.li` 923 display: flex; 924 align-items: flex-start; 925 column-gap: 0.5rem; 926`,Ia=t(k)` 927 text-decoration: underline; 928 padding-inline: 1.25rem 0; 929 padding-block: 0 0; 930 align-self: flex-start; 931 font-weight: var(--fw-semibold); 932`,Rs=t(w)` 933 width: 0.75rem; 934 height: 0.75rem; 935`,Oa=()=>{const{data:s}=Zs(),{data:n}=R(),i=n?.isPsoPro??!1;return!s&&!i||s?.incomplete?e.jsx(wa,{}):e.jsx(ha,{subscription:s})},Ma=({isOpen:s,onOpenChange:n})=>{const i=()=>n(!1),{currency:a}=ke(),{data:l}=he(ot(a)),{formatNumber:c}=me(),{t:d}=m();return e.jsxs($a,{isOpen:s,onOpenChange:n,children:[e.jsxs(za,{children:[e.jsxs(Ra,{children:[e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:d("nOpMYU",{description:"Rewards",default:"Récompenses"})}),e.jsx(r,{color:"--neutral500",children:d("YbkgzL",{description:"Your discount amount depends on the plan you choose.",default:"Le montant de votre réduction dépend de l'offre que vous choisissez."})})]}),e.jsx(Ta,{icon:e.jsx(La,{icon:ne}),onPress:i,variant:"ghost","aria-label":"Close modal"})]}),l?.data?.length>0&&e.jsx(Ea,{children:l.data.map(o=>e.jsxs(Ha,{children:[e.jsx("td",{children:e.jsx(r,{children:o.productName})}),e.jsx("td",{children:e.jsx(r,{fontWeight:"--fw-semibold",children:c(o.amount/100,{style:"currency",currency:a,currencyDisplay:"narrowSymbol",maximumFractionDigits:0})})})]},o.productName))})]})},$a=t(B)` 936 padding: 1.5rem; 937 display: flex; 938 flex-direction: column; 939 align-items: stretch; 940 row-gap: 2rem; 941`,za=t.div` 942 display: flex; 943 align-items: start; 944 justify-content: space-between; 945 column-gap: 2rem; 946 947 & > button { 948 flex-shrink: 0; 949 } 950`,Ra=t.div` 951 display: flex; 952 flex-direction: column; 953 row-gap: 0.25rem; 954 flex-grow: 1; 955`,Ta=t(se)` 956 padding: 0; 957`,La=t(w)` 958 width: 1rem; 959 height: 1rem; 960 color: var(--neutral500); 961`,Ea=t.table` 962 width: 100%; 963`,Ha=t.tr` 964 display: flex; 965 align-items: center; 966 justify-content: space-between; 967 gap: var(--sp-s); 968 padding: var(--sp-s); 969 height: 3rem; 970 971 &:nth-child(odd) { 972 border-radius: var(--r-s); 973 background-color: var(--neutral50); 974 } 975`,Na=()=>{const[s,n]=I.useState(!1),{t:i}=m();return e.jsxs(e.Fragment,{children:[e.jsx(Ne,{variant:"primary",icon:e.jsx(Da,{icon:Vn}
975),description:e.jsx(r,{color:"--neutral500",children:e.jsx(f,{i18nKey:"ekdZ+K",description:"As a referred person, you get up to $30 off your first month with any plan. <link>See discount details</link>",default:"En tant que nouvelle personne parrainée, vous bénéficiez jusqu'à 30 euros de réduction sur votre premier mois, quelle que soit l'offre choisie. <link>Voir les détails de la réduction</link>",components:{link:e.jsx(k,{variant:"link-primary",onPress:()=>n(!0)})}})}),children:e.jsx(r,{fontWeight:"--fw-semibold",children:i("yAcEO0",{description:"Youâve been referred!",default:"Vous avez été parrainéâ¢e !"})})}),e.jsx(Ma,{isOpen:s,onOpenChange:n})]})},Da=t(w)` 976 font-size: 1rem; 977`,Qa=()=>{const{data:s}=be(),{t:n}=m(),{data:i}=he(rt(s?.id?.toString())),a=Yn&&s?.isFreemium&&i?.state===Gn.MENTIONED;return e.jsxs(Wa,{children:[e.jsxs(Fa,{children:[e.jsx(Ba,{children:n("Q5CLtp",{description:"Plans",default:"Plans"})}),e.jsx(Hi,{})]}),a&&e.jsx(Na,{}),e.jsx(es,{children:e.jsx(lr,{})}),e.jsx(es,{children:e.jsx(Oa,{})}),e.jsx(es,{children:e.jsx(Ei,{})})]})},Wa=t.section` 978 display: flex; 979 flex-direction: column; 980 row-gap: 1rem; 981`,Ba=t.div` 982 color: var(--black); 983 font-weight: var(--fw-bold); 984 font-size: var(--fs-heading-s); 985`,Fa=t.div` 986 display: flex; 987 align-items: center; 988 justify-content: space-between; 989`,es=t.div` 990 background-color: var(--white); 991 border-radius: var(--r-l); 992 padding: var(--container-padding-mobile); 993 994 ${({theme:s})=>s.mediaQueries.desktopAndUp} { 995 padding: var(--container-padding); 996 } 997`,qa="Dashboard__Dashboard__subscriptionWrapper__B9wCtBCy",Ua="Dashboard__Dashboard__header__B9wCtBCy",Ka="Dashboard__Dashboard__titleIcon__B9wCtBCy",ss={subscriptionWrapper:qa,header:Ua,titleIcon:Ka},Ts=cs("/_authenticated/app/user/subscription/"),Va=()=>{Xn("Subscriptions Page Viewed");const{data:s}=he(Zn()),{data:n}=he(qs),i=Ts.useSearch(),a=Ts.useNavigate(),l=!!i.upgrade,c=i.plan,d=i.currency,[o,u]=I.useState(!1),h=s?.find(P=>P.pricing===c)??null,y=n?.isFreemium,{data:x}=R(),{data:M}=Fs({channelId:x?.id}),v=M?.some(P=>P.hostedOnAusha)??!1,[O,C]=I.useState(!1),{t:A}=m();
997It({condition:l&&!!c&&!!d&&!!h,subscription:h,currency:d});const p=n.activated&&!!n.pricing,b=n.surveys&&!n.surveys.includes("subscribe")&&!n.guest&&n.pricing!=="enterprise"&&p,g=!n.surveys.includes("first_transaction")&&n.pricing!=="enterprise",S=()=>{if(a({search:{...i,upgrade:void 0,plan:void 0,currency:void 0}}),b){u(!0);return}if(g){C(!0);return}};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:ss.subscriptionWrapper,children:[e.jsxs("div",{className:ss.header,children:[e.jsxs(Jn,{$gap:"0.75rem",$align:"center",children:[e.jsx(w,{className:ss.titleIcon,icon:Hs}),e.jsx(r,{variant:"headingM",fontWeight:"--fw-bold",children:A("oTf9qx",{description:"Subscriptions",default:"Abonnements"})})]}),e.jsx(r,{color:"--neutral500",children:A("kDGMPb",{description:"Manage your subscriptions, payment information, quotas, and limits.",default:"Gérez vos abonnements, vos informations de paiement, vos quotas et vos limites."})})]}),e.jsxs(_,{$gap:"2rem",children:[!y&&e.jsx(Qt,{}),e.jsx(Qa,{subscriptions:s})]})]}),e.jsx(st,{isOpen:o,onOpenChange:u,isHosting:v,onSuccess:()=>{u(!1)}}),e.jsx(tt,{isOpen:l,onOpenChange:S,plan:c??""}),e.jsx(Ht,{isOpen:O,onOpenChange:C})]})},Sl=Va;export{Sl as component}; 998//# sourceMappingURL=index-DzF5D0gf.js.map
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.