1import{j as e}from"./jsx-runtime-De-xxnn8.js";import{r as u,C as E,d as D}from"./react-D3AUmzDp.js";import{e as R}from"./search-insights-browser-fQKTCYQP.js";import{u as _,A as F}from"./useAlgoliaSearch-D-QCuMHa.js";import{F as P,i as j,A as N,a1 as L}from"./app-D0n4DI5A.js";import{A as M}from"./react-alice-carousel-DM_77vx5.js";import{c as f}from"./index-BnpjehdN.js";import{A as y}from"./TagFilter-3mMK4BZ7.js";import{T as A}from"./Tag-D-Ppqrtx.js";import{Q as O}from"./QuickFavourite-C5IyRa2F.js";import"./vendor-DeLyGtsp.js";import"./sendbird-CW8ws8M9.js";import"./hooks-DIS5Mpb8.js";import"./api-BS71LmV2.js";import"./hooks-DHoUt97D.js";import"./useFavouriteMutationSnapshot-CiZLYBot.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"d00ef78d2efe895700fa19003848d1bfb72b1681"};var n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="e7a9be90-80eb-4435-8c4d-123d13c2326b",t._sentryDebugIdIdentifier="sentry-dbid-e7a9be90-80eb-4435-8c4d-123d13c2326b")}catch(l){}})();const V=({hits:t,onClick:n,heading:l,message:m,uiColour:x,hideFilters:p})=>{const r=u.useRef(null),[i,o]=u.useState(0),[h,d]=u.useState(1),c=u.useMemo(()=>t.map((s,b)=>{var v;return e.jsx("div",{className:"flex mr-6 pb-3 min-w-62.5 max-w-115",children:e.jsxs("a",{href:s.url,onClick:()=>n(s,b+1),className:f("overflow-hidden relative block w-full p-4 text-white border border-white/10 hover:border-white/60 frosted-glass shadow-lg transition-border duration-300",j()&&"rounded-lg"),children:[e.jsx("p",{className:"text-sm! uppercase font-medium mb-2 pr-10",children:s.track}),e.jsx("div",{className:"absolute right-[0.5rem] top-[0.5rem]",children:e.jsx(O,{type:P.SESSION,id:s.objectID,name:s.title,style:"dark"})}),e.jsx("h3",{className:"text-lg font-bold mb-2 leading-[1.4]!",children:s.title}),e.jsxs("div",{className:"flex flex-wrap min-w-0 items-center text-sm leading-normal!",children:[s.dayShort&&e.jsx("div",{className:"whitespace-nowrap",children:s.dayShort}),(s.startsAt||s.endAt)&&e.jsxs("div",{className:"flex items-center whitespace-nowrap",children:[e.jsx("span",{className:"w-px inline-block h-3.75 bg-white/40 shrink-0 mx-2"}),s.startsAt,s.endAt&&e.jsxs("span",{children:["Â - ",s.endAt]}),s.hall&&e.jsx("span",{className:"w-px inline-block h-3.75 bg-white/40 shrink-0 mx-2"})]}),s.hall&&e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"block leading-normal!",children:s.hall})})]}),e.jsxs("div",{className:"pills flex flex-wrap gap-2 mt-4",children:[e.jsx(A,{children:s.theme}),!window.appConfig.hideSessionType&&((v=s.type)==null?void 0:v[0])&&e.jsx(A,{colour:"bg-tagAqua",children:s.type[0]})]})]})},s.objectID)}),[t,n]),a=c.length,g=2,[I,k]=u.useState(a);I!==a&&(k(a),o(0));const S=s=>{a!==0&&o(s.item)};u.useEffect(()=>{const s=()=>{const b=window.innerWidth;b>=1160?d(3):b>=936?d(2):b>=768?d(1):b>=600?d(2):d(1)};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]);const w=Math.min(i+h,a),T=a>0?w/a*100:0,C=a<=h;return e.jsxs("div",{className:f("flex flex-col gap-6 mask-[linear-gradient(to_right,rgba(0,0,0,1)_95%,transparent_100%)]",{"md:flex-row":!p||m||c.length>g}),children:[e.jsxs("div",{className:"flex flex-col shrink-0 pr-8 md:pr-0 md:w-65",children:[e.jsxs("div",{className:"text-left",children:[l&&e.jsx("h2",{className:"mb-2 text-2xl leading-none font-black",children:l}),m&&e.jsx("div",{className:f(["wysiwyg mb-2!"],{"-mt-4":l,"mt-0":!l}),children:m})]}),e.jsxs("div",{className:f("flex flex-wrap gap-2 mb-2 mt-2 max-h-32.5 overflow-y-auto pt-0.5",{hidden:p}),children:[e.jsx(y,{attribute:N.TRACK,limit:"50",singular:!0,persistTags:!0,style:"dark"}),e.jsx(y,{attribute:N.EXTERNAL_ID,hidden:!0})]}),c.length>g&&e.jsxs("div",{className:f("hidden md:flex gap-12 justify-between items-center transition-opacity duration-300",{"opacity-0":C}),children:[e.jsx("div",{className:"progress-bar w-full",children:e.jsx("div",{className:"h-0.75 w-full rounded overflow-hidden bg-white/20",children:e.jsx("div",{className:"h-0.75 bg-".concat(x," rounded transition-all duration-300"),style:{width:"".concat(T,"%")}})})}),e.jsxs("div",{className:"flex items-center gap-4 mt-auto",children:[e.jsx("button",{className:f("bg-".concat(x," text-white h-[48px] w-[48px] grid items-center justify-center transition-opacity"),{"opacity-40 cursor-default!":i===0,"rounded-sm":j()}),onClick:()=>{var s;return(s=r.current)==null?void 0:s.slidePrev()},disabled:i===0,children:e.jsx("i",{className:"fa-light fa-arrow-left"})}),e.jsx("button",{className:f("bg-".concat(x," text-white h-[48px] w-[48px] grid items-center justify-center transition-opacity"),{"opacity-40 cursor-default!":w===a,"rounded-sm":j()}),onClick:()=>{var s;return(s=r.current)==null?void 0:s.slideNext()},disabled:w===a,children:e.jsx("i",{className:"fa-light fa-arrow-right"})})]})]})]}),e.jsx("div",{className:"md:w-[calc(100%-291px)]",children:c.length>
1g?e.jsx(M,{mouseTracking:!1,items:c,disableDotsControls:!0,disableButtonsControls:!0,paddingRight:100,autoWidth:!1,responsive:{0:{items:1},600:{items:2},768:{items:1},936:{items:2},1160:{items:3}},ref:r,onSlideChanged:S},a):e.jsx("div",{className:"flex overflow-x-auto pb-2 sm:pb-0",children:c})})]})},re=t=>{const{algoliaAppId:n,algoliaSearchApiKey:l,heading:m="",message:x="",index:p,localisations:r,uiColour:i,hideFilters:o}=t,{searchClient:h}=_(n,l);return e.jsxs(F,{searchClient:h,indexName:p,children:[e.jsx(E,{clickAnalytics:!0,filters:"featured:true"}),e.jsx($,{heading:m,message:x,localisations:r,indexName:p,uiColour:i,hideFilters:o})]})},$=({heading:t,message:n,localisations:l,indexName:m,uiColour:x,hideFilters:p})=>{const{results:r}=D(),i=u.useMemo(()=>(r==null?void 0:r.hits)||[],[r]),o=r==null?void 0:r.queryID,h=(d,c)=>{R("clickedObjectIDsAfterSearch",{index:m,eventName:"Click on Featured Session Item",userToken:L(),objectIDs:[d.objectID],queryID:o!=null?o:null,positions:[c],sessions:[d.title]})};return(i==null?void 0:i.length)>0&&e.jsx("div",{className:"pb-20",children:e.jsx(V,{hits:i,onClick:h,heading:t,message:n,localisations:l,uiColour:x,hideFilters:p})})};export{re as default}; 2//# sourceMappingURL=FeaturedSessionsApp-CdTGZQvU.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.