1import{j as t}from"./jsx-runtime-CWbFWY2M.js";import{u as U,A as G}from"./useAlgoliaSearch-C9Z8_VqA.js";import{i as F,a as O,l as z,d as M,t as u,s as _,u as K,F as W,A as l,b as I,f as X,g as Q,r as H}from"./app-D9_mHf2z.js";import{R as V,F as $,a as J,C as Z}from"./RefinementsPanel-8Sc3Ja_r.js";import{c as h}from"./index-6VkcFi5Q.js";import{u as ee,d as q,r as E,C as te}from"./react-CydE4nCL.js";import{S as ae}from"./Search-D3uX4QC-.js";import{A as C}from"./TagFilter-BQXC0VAK.js";import{u as se}from"./useScreenSize--Txx9P59.js";import{T as re}from"./TraversableList-D3Js8c-d.js";import{A as Y}from"./Advert-Dy6ASLv0.js";import{u as ne}from"./hooks-D8d4huiB.js";import{S as le}from"./SessionItem-CLsN9Ebo.js";import"./es-mx-CnDN9qas.js";import"./vendor-BrssnT-E.js";import"./search-insights-browser-CSPvHimU.js";import"./sendbird-haQy8H9b.js";import"./hooks-BCz_y8Ei.js";import"./api-6K4LlvuG.js";import"./useFavouriteMutationSnapshot-BZsU13eR.js";import"./Tag-B8Xaqm0u.js";import"./MatchRecommendation-D0KrLipZ.js";import"./utils-1iNCdMQM.js";import"./index-DvyYKN5s.js";import"./index-B9Su0sCt.js";import"./QuickFavourite-Z1NxHne_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"a156a80817bcc286d094871909811f8803ba8360"};var a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e2f5357b-6f4e-44b0-9972-a02ccd775aaf",e._sentryDebugIdIdentifier="sentry-dbid-e2f5357b-6f4e-44b0-9972-a02ccd775aaf")}catch(i){}})();const ie=({item:e,onSelect:a,padding:i=!0,allowDeselect:b=!1,style:s})=>t.jsx("li",{className:h("flex group/tab flex-col justify-end py-3 px-2 border hover:border-secondary cursor-pointer transition-all duration-300",{"bg-secondary border-secondary text-white":e.isRefined&&!O(),"bg-secondary border-secondary text-black!":e.isRefined&&O(),"text-white":s==="dark","text-black":s==="default","bg-transparent":!e.isRefined,"border-black/20":!e.isRefined&&s==="default","border-white/20":!e.isRefined&&s==="dark","px-0 mr-2 sm:mr-4 last:mr-0":i,"mr-px px-px":!i,"rounded-lg":F()}),role:"presentation",onClick:()=>(b||!e.isRefined)&&a(),children:t.jsx("h2",{className:"px-2 block",role:"presentation",children:t.jsxs("button",{role:"tab","aria-label":e.title+" "+e.subtitle,className:"text-left",onClick:p=>{p.currentTarget.blur()},"aria-selected":e.isRefined,children:[e.title&&t.jsxs("span",{className:"text-sm font-normal tracking-wide uppercase",children:[e.title,t.jsx("br",{})]}),e.subtitle&&t.jsx("span",{className:"text-xl font-bold",children:e.subt
1itle})]})})}),de=({localisations:e,style:a="default"})=>{var N,g;const{items:i,refine:b}=ee({attribute:"date"}),{indexUiState:s,status:p}=q();if(!((N=s==null?void 0:s.refinementList)!=null&&N.date)&&p!=="loading"){const r=i.filter(d=>!["pre","post"].includes(d.label)).sort((d,c)=>z(d,c,"value"));if(r.length){const d=M().format("YYYY-MM-DD");let c=r.find(j=>j.value===d);b((c==null?void 0:c.value)||((g=r[0])==null?void 0:g.value)||"")}}const A=r=>{var d,c;(d=s==null?void 0:s.refinementList)!=null&&d.date&&((c=s==null?void 0:s.refinementList)==null||c.date.pop()),b(r)};return i.sort((r,d)=>r.label==="pre"?-1:d.label==="pre"||r.label==="post"?1:d.label==="post"?-1:new Date(r.label)-new Date(d.label)).map(r=>({...r,title:r.label==="pre"?u("seaTranslations.preEventHeading",K(r.label)):r.label==="post"?u("seaTranslations.postEventHeading",K(r.label)):M(r.label).locale(_(e==null?void 0:e.localeOverride)).format((e==null?void 0:e.agendaTabDayFormat)||"ddd"),subtitle:r.label[0]==="p"?u("seaTranslations.eventHeadingSingular","Event"):M(r.label).locale(_(e==null?void 0:e.localeOverride)).format((e==null?void 0:e.agendaTabDateFormat)||"D MMM")})).map(r=>t.jsx(ie,{item:r,style:a,onSelect:()=>A(r.value)},r.value))},oe=({localisations:e,style:a})=>t.jsx("ul",{role:"tablist","aria-label":"Event Dates",className:"flex break-words",children:t.jsx(de,{localisations:e,style:a})}),ce=({blockId:e,presetFilters:a,hideFilters:i="0",localisations:b,style:s,adverts:p,advertsMobile:A,hideAds:N,heading:g,message:r,tracksInfo:d})=>{var x;ne(W.SESSION,null);const c=n=>n.preventDefault(),j=[{attribute:l.THEME,label:u("seaTranslations.filterByTheme","Theme"),hidden:!!a[l.THEME]},{attribute:l.STAGE,label:u("seaTranslations.filterByStage","Stage"),hidden:!!a[l.STAGE]},{attribute:l.TYPE,label:u("seaTranslations.filterByType","Type"),hidden:!!a[l.TYPE]||window.appConfig.hideSessionType},{attribute:l.ACCESS,label:u("seaTranslations.filterByAccess","Access"),hidden:!!a[l.ACCESS]},{attribute:l.PASSES,label:u("seaTranslations.filterByPasses","Passes"),hidden:!!a[l.PASSES]},{attribute:l.INTERESTS,label:u("seaTranslations.filterByInterests","Interests"),hidden:!!a[l.INTERESTS]}],S=[l.QUERY,l.DATE,l.TRACK,l.EXTERNAL_ID,l.HIDDEN],[o,f]=E.useState(!1),y=(x=j.find(n=>!n.hidden))==null?void 0:x.attribute,[T,w]=E.useState(y),{isTablet:k}=se(),D=n=>{w(m=>m===n?m:n)},R=()=>{f(!1)};return t.jsxs(re,{skipText:"Skip to sessions.",paginate:!1,blockId:e,hideFilters:i,style:s,children:[t.jsxs("div",{className:"flex flex-col items-left gap-4",children:[t.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-end md:justify-between gap-6",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"text-left md:max-w-168.75",children:[g&&t.jsx("h2",{className:"mb-4 text-2xl md:text-4xl leading-none font-black",children:g}),r&&t.jsx("div",{className:h(["wysiwyg mb-6!"],{"-mt-2":g,"mt-0":!g}),dangerouslySetInnerHTML:{__html:r}})]}),t.jsx("div",{className:h("overflow-x-auto max-w-screen pb-4",{hidden:!!a[l.DATE]}),children:t.jsx(oe,{localisations:b,style:s})})]}),t.jsx("div",{children:!N&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{adverts:p,showOnMobileOnly:!1}),t.jsx(Y,{adverts:A,showOnMobileOnly:!0})]})})]}),t.jsxs("div",{className:h("flex flex-col md:flex-row justify-between items-center gap-4 w-full",{hidden:I(i)}),children:[t.jsxs("form",{onSubmit:c,"aria-labelledby":"filter-heading",className:"w-full text-black",children:[t.jsx("span",{className:"sr-only",id:"filter-heading",children:"Search & Filter Options"}),t.jsx(ae,{classes:h("border w-full max-w-none",{"placeholder:text-white/60 bg-white/5 border-white/10 text-white":s==="dark","placeholder:text-black border-gray-400 ":s!=="dark","rounded-md":F()}),style:s})]}),t.jsx("div",{className:"w-full hidden md:w-100 md:block",children:t.jsxs("button",{onClick:n=>{f(m=>!m),n.currentTarget.blur()},className:h("border px-4 py-2 flex gap-2 justify-between items-center w-full",{"border-white/20 hover:border-white/60":s==="dark","border-white/60":o&&s==="dark","border-gray-400":s!=="dark","rounded-md":F()}),children:[t.jsxs("span",{className:"flex gap-2 items-center",children:[t.jsx("i",{className:"fa fa-filter-list"}),t.jsx("span",{children:u("seaTranslations.filtersSectionTitle","Filters")})]}),t.jsx("i",{className:h("ml-2 fa-regular fa-chevron-down transition-all duration-200",{"rotate-180":o})})]})})]})]}),t.jsx(V,{excludedAttributes:S,presetFilters:a,onClearFilters:R,hideFilters:i}),t.jsx("div",{id:"filterPanel",className:h("scroll-mt-4 md:px-4",{hidden:!o&&!k||I(i)}),children:t.jsxs($,{presetFilters:a,excludedAttributes:S,onClearFilters:R,children:[t.jsx("div",{className:"filter-control
1s text-black gap-4 border-b border-b-gray-300 mb-6 hidden md:flex",children:j.map(({attribute:n,label:m,...L})=>t.jsx(J,{attribute:n,label:m,onClick:D,isActive:T===n,...L},n))}),j.map(({attribute:n,...m})=>t.jsx("div",{className:h({hidden:T!==n&&!k}),id:"".concat(n,"Filter"),children:t.jsx(C,{attribute:n,limit:50,...m})},n)),t.jsx(C,{attribute:l.EXTERNAL_ID,hidden:!0}),t.jsx(C,{attribute:l.HIDDEN,hidden:!0})]})}),t.jsx("div",{className:h("track-list mt-0 overflow-hidden",{hidden:!!a[l.TRACK]||I(i)}),children:t.jsx(C,{attribute:l.TRACK,label:u("seaTranslations.filterByTrack","Track"),hidden:!!a[l.TRACK],singular:!0,persistTags:!0,tracks:!0,style:s,tracksInfo:d,limit:50})}),t.jsx("div",{className:"py-3 sgl md:pl-0 sm:min-h-59",id:"traversable-list-"+e,children:t.jsx("ol",{className:"sessions-table md:table w-full",children:t.jsx(me,{style:s})})})]})},me=({style:e})=>{var S;const{results:a,indexUiState:i,status:b}=q(),s=E.useMemo(()=>(a==null?void 0:a.hits)||[],[a]),p=a==null?void 0:a.queryID,A=a==null?void 0:a.query,[N,g]=E.useState(((S=a==null?void 0:a.hits[0])==null?void 0:S.timezone)||"UTC"),r=E.useMemo(()=>{var o;return!["pre","post"].includes((o=i.menu)==null?void 0:o.date)},[a]),c=(o=>{const f={};return o.forEach(y=>{const T=y.startsAtDateTime;f[T]||(f[T]=[]),f[T].push(y)}),Object.keys(f).sort().map(y=>[y,f[y].sort((T,w)=>{const k=T.title.startsWith("Keynote");return w.title.startsWith("Keynote")-k||z(T,w,"title")})])})(s);if(E.useEffect(()=>{var o;s.length&&g((o=s[0])==null?void 0:o.timezone)},[s]),E.useEffect(()=>{window.scroll(0,0)},[]),b==="loading")return t.jsxs("li",{children:[u("translations.loadingText","Loading"),"â¦"]});if(c.length===0)return t.jsxs("li",{className:"no-results",children:[u("seaTranslations.moreSessionsComingSoonLabel","More sessions coming soon"),"â¦"]});let j=0;return c.map(o=>t.jsxs("li",{className:"md:table-row",children:[t.jsxs("div",{className:"md:table-cell align-top text-lg font-medium my-2 mr-4 pr-4 relative",children:[t.jsx("span",{className:h("hidden md:block separator border-r absolute w-px top-0 bottom-0 right-4",{"border-white/20":e==="dark","border-gray-400":e==="default"})}),t.jsxs("span",{className:h("marker mr-4 md:-mt-4 block after:content[' '] after:absolute after:rounded-full after:w-[9px] after:h-[9px] after:bg-primary after:-left-[18px] md:after:left-auto md:after:right-[12px] after:mt-[9px] md:after:mt-[10px]",{"w-20":!r}),children:[X(o[0]),t.jsxs("span",{className:"tooltip-container group",children:[t.jsxs("span",{className:"ml-1 text-sm tooltip-toggle",children:["(",N,")"]}),t.jsx("span",{className:"absolute z-50 hidden px-2 py-1 text-xs text-white bg-gray-900 rounded-sm tooltip group-hover:block",children:t.jsx("span",{className:"ml-1 text-sm",children:Q()})})]})]})]}),t.jsx("ul",{className:"md:table-cell w-full",children:o[1].map(function(f){return j++,t.jsx(fe,{hit:f,position:j,sortByTime:r,queryId:p,query:A,style:e},f.objectID)})})]},o[0]))},fe=({hit:e,position:a,sortByTime:i,queryId:b,query:s,style:p})=>t.jsx("li",{className:"mt-2 mb-4 last:mb-2 sm:my-2",children:t.jsx(le,{hit:e,position:a,sortByTime:i,queryId:b,query:s,style:p})}),ue=[],be=[],He=e=>{e={...e,adverts:typeof e.adverts>"u"?ue:e.adverts,advertsMobile:typeof e.advertsMobile>"u"?be:e.advertsMobile,heading:typeof e.heading>"u"?"":e.heading,message:typeof e.message>"u"?"":e.message,dateName:typeof e.dateName>"u"?"":e.dateName,trackName:typeof e.trackName>"u"?"":e.trackName,themeName:typeof e.themeName>"u"?"":e.themeName,stageName:typeof e.stageName>"u"?"":e.stageName,typeName:typeof e.typeName>"u"?"":e.typeName,accessName:typeof e.accessName>"u"?"":e.accessName,passesName:typeof e.passesName>"u"?"":e.passesName,interestsName:typeof e.interestsName>"u"?"":e.interestsName,externalIdName:typeof e.externalIdName>"u"?"":e.externalIdName};const{algoliaAppId:a,algoliaSearchApiKey:i,blockId:b,adverts:s,advertsMobile:p,hideAds:A,heading:N,message:g,index:r,showAll:d="false",hideFilters:c,localisations:j,style:S="default",tracksInfo:o,autoPopulateUrl:f="false"}=e,y=I(A),T=I(f),w=Object.fromEntries(Object.entries(e).filter(([x])=>x.endsWith("Name")).map(([x,n])=>[x.replace("Name",""),n])),{searchClient:k}=U(a,i),D={stateToRoute:T?function(n){const m=n[r],L=m.refinementList||{},v=B=>{var P;return w[B]?"":(P=L[B])==null?void 0:P.join(";")};return H({search:m.query,date:v("date"),track:v("track"),theme:v("theme"),stage:v("stage"),type:v("type"),access:v("access"),passes:v("passes"),interests:v("interests")})}:()=>{},routeToState(x){const n=m=>(w[m]||x[m]||"").split(";
1").filter(Boolean);return{[r]:{query:x==null?void 0:x.search,refinementList:H({date:n("date"),track:n("track"),theme:n("theme"),stage:n("stage"),type:n("type"),access:n("access"),passes:n("passes"),interests:n("interests"),externalId:n("externalId"),hidden:d==="false"?[!1]:[]})}}}},R={router:Z(),stateMapping:D};return t.jsxs(G,{searchClient:k,indexName:r,routing:R,children:[t.jsx(ce,{blockId:b,adverts:s,advertsMobile:p,heading:N,message:g,hideAds:y,presetFilters:w,hideFilters:c,localisations:j,style:S,tracksInfo:o}),t.jsx(te,{clickAnalytics:!0})]})};export{He as default}; 2//# sourceMappingURL=AgendaFilterApp-D6INjA65.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.