1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`21b454d5-ab48-4226-a6a5-cb8450843fe4`,e._sentryDebugIdIdentifier=`sentry-dbid-21b454d5-ab48-4226-a6a5-cb8450843fe4`)}catch{}})();import{a as e,i as t}from"./hLuMthIG.js";import{B as n,C as r,Dt as i,K as a,Tt as o,U as s,_ as c,_t as l,at as u,g as d,h as f,it as p,ot as ee,rt as m,u as h,v as g,y as _}from"./CWTKM9QU.js";import{d as v,p as y}from"./CxwmCLFB.js";import{n as b,r as x}from"./CXTlxc9Q.js";import{w as te}from"./BNqwFP-j.js";import{B as ne,i as re}from"./DI0OfRJD.js";import{n as ie}from"./B8DOmtoZ.js";import{p as ae}from"#entry";import{t as oe}from"./5UFQQaHe.js";import{t as se}from"./DgITkH7W.js";import{t as ce}from"./DfLj2McB.js";import{t as le}from"./DPmQKm1v.js";import{n as ue,t as de}from"./CP7Rgwaw.js";import{t as fe}from"./DE43lIhg.js";import{t as pe}from"./DWI3hluX.js";import{t as me}from"./BPIV_xL7.js";import{t as he}from"./B5AcWBmQ.js";import{t as S}from"./D8iFqfcw.js";import{d as C,f as w,p as T}from"./DYuZI5Za.js";var E={class:`flex align-items-center`},D={key:0,class:`hidden md:block`},O={class:`grid`},k={class:`col pr-2 lg:pr-4`},A={class:`flex flex-wrap justify-content-start align-items-center gap-3 my-4`},j={class:`py-4`},M={class:`grid`},N={class:`col pr-2 lg:pr-4`},P={key:0,class:`flex flex-column gap-5`},F={key:0,class:`lg:hidden mt-4 mb-6`},I={key:1},L={class:`flex justify-content-between align-items-center mb-5 mt-2`},R={key:2},ge={class:`block lg:hidden mt-8`},_e={class:`col-fixed hidden lg:block w-20rem`},ve={__name:`index`,async setup(ve){let z,B,ye=e(),V=y(),H=te(),U=e=>Array.isArray(e)?e[0]:e,W=f(()=>V.query.preview===`true`&&V.query.identifier&&V.query.token),be=[f(()=>{let e=`${ye.public.BFF_URL}/api/pages/wagtail/${V.params.slug}?isApp=${String(H.value)}`;return W.value?`${e}?${new URLSearchParams({preview:`true`,identifier:U(V.query.identifier),token:U(V.query.token)}).toString()}`:e}),{key:W.value?`show-page-preview-${V.params.slug}-${U(V.query.identifier)}`:`show-page-${V.params.slug}`,watch:!1}],{data:G,status:K,error:q}=([z,B]=u(()=>oe(...be)),z=await z,B(),z),J=e=>{if(e?.redirect)return v(e.location,{redirectCode:e.statusCode||301,external:/^https?:\/\//.test(e.location)})};m(G,e=>{J(e)}),[z,B]=u(()=>J(G.value)),await z,B();let Y=f(()=>G?.value?.inPageNavigation?.map(e=>({label:e.value.linkText,id:ne(e.value.targetId||e.value.linkText)}))??[]),xe=l(!1);n(()=>{p(async()=>{xe.value=await re(V.params.slug)})});let X=f(()=>{let e=G.value?.body?.findIndex(e=>e.type===`curated_list`);return e!==void 0&&e>-1?e:null}),Se=(e,t=`smooth`,n=90)=>{let r=document.getElementById(e);if(r){let e=r.getBoundingClientRect().top+window.pageYOffset-n;window.scrollTo({top:e,behavior:t})}},Ce=f(()=>[{label:`Home`,route:`/home`},{label:`Browse`,route:`/browse`},{label:G?.value?.title}]);n(()=>{if(W.value)return;let{$analytics:e}=t();e.sendPageView({page_title:`Browse Shows`,page_type:`browse_shows_page`,content_group:`app_tab`})});let Z=T(G),Q=C(G),$=w(G);return b({title:Z}),x({title:Z,ogTitle:Z,description:Q,ogDescription:Q}),$&&x({ogImage:$}),ue(G),de(G),(e,t)=>{let n=pe,l=fe,u=S,f=ie,p=ae,m=le,v=se,y=ce,b=me,x=he;return s(),_(`div`,{class:i([`shows-page pb-7`,{"is-app":o(H)}])},[d(`section`,null,[d(`div`,E,[r(n,{items:o(Ce)},null,8,[`items`])]),o(K)===`error`?(s(),c(l,{key:0})):g(``,!0)]),o(q)?g(``,!0):(s(),_(h,{key:0},[r(u,{show:o(G),class:i(o(V).params.slug)},null,8,[`show`,`class`]),o(H)?g(``,!0):(s(),_(`section`,D,[d(`div`,O,[t[0]||=d(`div`,{class:`col-fixed hidden xxl:block w-20rem`},null,-1),d(`div`,k,[d(`div`,A,[o(Y).length?(s(!0),_(h,{key:0},a(o(Y),e=>(s(),c(f,{key:e.id,label:e.label,severity:`secondary`,class:`px-3 md:px-3 lg:px-4`,onClick:t=>Se(e.id)},null,8,[`label`,`onClick`]))),128)):(s(),_(h,{key:1},a(3,e=>r(p,{key:`jump-link-${e}`,height:`2rem`,width:`8rem`,borderRadius:`1.75rem`,class:`w-7rem md:w-8rem lg:w-11rem`})),64))])])])])),d(`section`,j,[d(`div`,M,[t[1]||=d(`div`,{class:`col-fixed hidden xxl:block w-20rem`},null,-1),d(`div`,N,[o(K)===`success`?(s(),_(`div`,P,[r(v,{streamfieldBlocks:o(G)?.body},{adBlock:ee(e=>[e.index===o(X)&&o(X)!==null?(s(),_(`div`,F,[r(m,{layout:`rectangle`,slotClass:`htlad-wnyc_show_page_rectangle`,fineprint:`WNYC is funded by sponsors and member donations`}
1)])):g(``,!0)]),_:1},8,[`streamfieldBlocks`])])):g(``,!0),o(K)===`success`?g(``,!0):(s(),_(`div`,I,[d(`div`,L,[r(p,{height:`18px`,width:`80px`,borderRadius:`4px`}),r(p,{height:`18px`,width:`80px`,borderRadius:`4px`})]),(s(),_(h,null,a(10,e=>r(y,{key:`sk1-${e}`,"is-horizontal":``,imgCol:`w-7rem md:w-10rem`,size:[1,1],showBg:!1,showBgMobile:!1,showTease:``,class:`mb-6 mt-5`})),64))])),o(H)?g(``,!0):(s(),_(`div`,R,[d(`div`,ge,[r(b,{show:o(G)},null,8,[`show`])])]))]),d(`div`,_e,[r(b,{show:o(G)},null,8,[`show`])])])]),r(x)],64))],2)}}};export{ve as default}; 2//# sourceMappingURL=FYb2PAeg.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.