PageSourceSearch

https://www.audacy.com/assets-a2/index-Cp9MNSi-.js

js audacy.com collected 2026-10-09 22:40:01 UTC 7,874 bytes, 2 lines download raw bytes

1import{B as d,C as i,u as L,j as s,a as e,b as j,L as z,c as C,T as r,m as a,d as n,G as y,e as I,F as M,f as D,M as O,I as k,g as P,r as S,h as V,i as $,k as G,R,l as _,P as w,n as E,v as N,o as U,V as W,p as H,q}from"./index-BgcUcd2q.js";import{M as F,A as J,L as K}from"./index-Cy35M18U.js";import{S as Q}from"./index-DDaBYrL5.js";import{u as X}from"./index-CoA4dACl.js";import{u as Y}from"./index-CFjuB9At.js";const T={container:{alignItems:"center",borderTop:d.separator,display:"flex",justifyContent:"space-between",padding:"20px 0 120px"},deleteAccount:{color:i.error}},Z=({onDeleteClick:t,onLogout:o})=>{const{t:c}=L();return s("div",{css:T.container,children:[e(z,{isTiny:!0,label:j(c("accountScreen.delete")),labelCss:T.deleteAccount,onClick:t}),e(C,{label:c("global.logOut"),onClick:o,theme:"Secondary"})]})},f={container:{padding:"30px 0 0",[a(n.Medium)]:{padding:"60px 0"},[a(n.Large)]:{borderBottom:d.separator,padding:"0 0 50px"}},title:{...r.titleSection,paddingBottom:30,[a(n.Medium)]:{...r.titleMisc,borderBottom:d.separator,paddingBottom:20},[a(n.Large)]:{borderBottom:"none",paddingBottom:0,paddingTop:24}},detailsItem:{padding:"25px 0","&:not(:last-of-type)":{borderBottom:d.separator},[a(n.Medium)]:{alignItems:"center",display:"grid",gridTemplateColumns:"180px 1fr"},[a(n.Large)]:{padding:"30px 0"}},detailLabel:{...r.metadataLarge,color:i.white,display:"block"},detailValue:{...r.metadataSmall,color:i.white60,display:"block"}},ee=({emailAddress:t})=>{const{t:o}=L();return s(I,{gridCss:f.container,children:[e(y,{sm:"1/6",md:"1/8",lg:"1/3",children:e("h1",{css:f.title,children:o("settingsScreen.account")})}),e(y,{sm:"1/6",md:"1/8",lg:"4/10",children:s("dl",{css:f.detailsItem,"aria-label":o("accountScreen.emailInput"),children:[e("dt",{css:f.detailLabel,children:o("accountScreen.emailInput")}),e("dd",{css:f.detailValue,children:t})]})})]})},A={container:{borderBottom:d.separator,paddingBottom:45,[a(n.Medium)]:{alignItems:"center",display:"flex",paddingBottom:40},[a(n.Large)]:{paddingBottom:60}},avatar:{...r.headlineMedium,alignItems:"center",backgroundColor:i.secondarySpruceGreen3,borderRadius:"50%",color:i.white,display:"flex",flexShrink:0,height:60,justifyContent:"center",margin:"0 auto",width:60,[a(n.Medium)]:{height:110,margin:0,width:110},[a(n.Large)]:{height:144,width:144}},name:{...r.headlineSmall,color:i.white,marginTop:20,textAlign:"center",[a(n.Medium)]:{marginLeft:20,marginTop:0,textAlign:"left"}}},te=({name:t})=>{const o=t[0].toUpperCase();return s("div",{css:A.container,children:[e("div",{"aria-hidden":!0,css:A.avatar,children:o}),e("div",{css:A.name,children:t})]})},h={container:{padding:"30px 0 0",[a(n.Medium)]:{padding:"60px 0"},[a(n.Large)]:{borderBottom:d.separator,padding:"0 0 50px"}},title:{...r.titleSection,paddingBottom:30,[a(n.Medium)]:{...r.titleMisc,borderBottom:d.separator,paddingBottom:20},[a(n.Large)]:{borderBottom:"none",paddingBottom:0,paddingTop:24}},detailsItem:{padding:"25px 0",alignItems:"center",display:"grid",gridTemplateColumns:"180px 1fr","&:not(:last-of-type)":{borderBottom:d.separator},[a(n.Large)]:{padding:"30px 0"}},detailLabel:{...r.metadataLarge,color:i.white,display:"block"},detailValue:{...r.metadataSmall},actionButton:{width:"fit-content"},manage:{display:"flex",justifyContent:"flex-end"}},ae=({onClick:t})=>{const{t:o}=L();return e(M,{children:s(I,{gridCss:h.container,children:[e(y,{sm:"1/6",md:"1/8",lg:"1/3",children:e("h1",{css:h.title,children:o("adPreferencesScreen.title")})}),e(y,{sm:"1/6",md:"1/8",lg:"4/10",children:s("dl",{css:h.detailsItem,"aria-label":o("adPreferencesScreen.personalizedAds"),children:[e("dt",{css:h.detailLabel,children:o("adPreferencesScreen.personalizedAds")}),e("dt",{css:h.manage,children:e(C,{size:"Small",css:h.actionButton,label:o("adPreferencesScreen.manage"),onClick:t,theme:"Secondary"})})]})})]})})},x={container:{paddingTop:50,[a(n.Medium)]:{maxWidth:420,margin:"0 auto",paddingTop:50},[a(n.Large)]:{maxWidth:330,paddingTop:15}},title:{...r.titleSection,color:i.audacyDarkNavy,marginBottom:20,textAlign:"center"},body:{...r.bodySmall,color:i.grey80,marginBottom:40,textAlign:"center",[a(n.Large)]:{marginBottom:20}},btnWrapper:{alignItems:"center",display:"flex",gap:10,justifyContent:"center",[a(n.Medium)]:{marginBottom:50},[a(n.Large)]:{marginBottom:0}},secondaryBtn:{background:"transparent",border:"1px solid",borderColor:i.secondaryLightGrey,color:i.audacyDarkNavy,...D({background:"transparent",borderColor:i.secondaryMediumGrey})}},ne=({isOpen:t,onClose:o,onDeleteAccount:c})=>{const{t:l}=L();return e(F,{isOpen:t,onClose:o,children:s("div",{css:x.container,children:[e("h3",{css:x.title,children:l("accountScreen.deleteAccount.title")}),e("p",{css:x.body,children:l("accountScreen.deleteAccount.body")}),s("div",{css:x.btnWrapper,children:[e(C,{buttonCss:x.secondaryBtn,theme:"Secondary",label:l("accountScreen.deleteAccount.continue"),onClick:c,size:"Small"}),e(C,{theme:"Primary",label:l("accountScreen.deleteAccount.keep"),onClick:o,size:"Small"})]})]})})},g={container:{padding:"30px 0 0",[a(n.Medium)]:{padding:"60px 0"},[a(n.Large)]:{borderBottom:d.separator,padding:"0 0 50px"}},title:{...r.titleSection,paddingBottom:30,[a(n.Medium)]:{...r.titleMisc,borderBottom:d.separator,paddingBottom:20},[a(n.Large)]:{borderBottom:"none",paddingBottom:0,paddingTop:24}},detailsItem:{...O.transition(["color","background-color"]),padding:"25px 0",alignItems:"center",display:"grid",gridTemplateColumns:"180px 1fr",color:i.white,"&:not(:last-of-type)":{borderBottom:d.separator},[a(n.Large)]:{padding:"30px 0"},...D({button:{color:i.white60},color:i.white60})},detailLabel:{...r.metadataLarge,display:"block"},detailValue:{...r.metadataSmall},arrowLink:{display:"flex",justifyContent:"flex-end"}},oe=()=>{const{t}=L();return e(M,{children:s(I,{gridCss:g.container,children:[e(y,{sm:"1/6",md:"1/8",lg:"1/3",children:e("h1",{css:g.title,children:t("legalScreen.title")})}),s(y,{sm:"1/6",md:"1/8",lg:"4/10",children:[s("a",{href:"https://audacyinc.com/terms-and-conditions/",target:"_blank",rel:"noreferrer",css:g.detailsItem,"aria-label":t("legalScreen.termsOfUse"),children:[e("dt",{css:g.detailLabel,children:t("legalScreen.termsOfUse")}),e("dt",{css:g.arrowLink,children:e(k,{buttonCss:g.caretRight,className:"caret-right",icon:P.CaretRight,ariaLabel:t("legalScreen.termsOfUse")})})]}),s("a",{href:"https://audacyinc.com/privacy-policy-usa-canada-australia-newzealand/",target:"_blank",rel:"noreferrer",css:g.detailsItem,"aria-label":t("legalScreen.privacyPolicy"),children:[e("dt",{css:g.detailLabel,children:t("legalScreen.privacyPolicy")}),e("dt",{css:g.arrowLink,children:e(k,{buttonCss:g.caretRight,className:"caret-right",icon:P.CaretRight,ariaLabel:t("legalScreen.privacyPolicy"),iconSizeInPx:18})})]})]})]})})},re=({emailAddress:t,firstName:o="",lastName:c="",onDeleteAccount:l,onLogout:b})=>{const[p,m]=S.useState(!1),[u,B]=S.useState(!1),v=o||c?`${o} ${c}`.trim():t;return s("div",{css:O.horizontalModulePadding(),children:[e(te,{name:v}),e(ee,{emailAddress:t}),e(ae,{onClick:()=>B(!0)}),e(J,{isOpen:u,onClose:()=>B(!1)}),e(oe,{}),e(Z,{onDeleteClick:()=>m(!0),onLogout:b}),e(ne,{isOpen:p,onClose:()=>m(!1),onDeleteAccount:l})]})},ie=()=>{const t=V(),{clientServices:o}=$(),{logOut:c}=G(),l=R(_),{emailAddress:b,firstName:p,lastName:m}=l;return e(re,{emailAddress:b,firstName:p,lastName:m,onChangePassword:()=>{},onDeleteAccount:()=>{o.getDataServices().deleteUser().then(()=>{t(w.DeleteAccountConfirmation)})},onLogout:()=>{c().then(()=>{t(w.Home)})}})},me=({...t})=>{const o=E(N),c=U(W.ProfileAccount),{onPageLoad:l}=H({}),b=Y(),p=X([l,b],{viewId:c});S.useEffect(()=>{o({viewId:c})},[o,c]),S.useEffect(()=>{p()},[p]);const m=V(),u=R(q);return S.useEffect(()=>{u||m(w.Home)},[u,m]),u?s(M,{children:[e(Q,{...t}),e(K,{children:e(ie,{})})]}):null};export{me as default};
2//# sourceMappingURL=index-Cp9MNSi-.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.