1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67650],{30260:function(e,t,r){var o=r(57437),n=r(85765),a=r(64119),s=r(16210);const i=(0,r(2265).forwardRef)(((e,t)=>{const r=(0,a.Z)({props:e,name:"Content"});return(0,o.jsx)(l,{ref:t,...r})}));i.displayName="Content";const l=(0,s.ZP)(n.Z,{name:"Content",slot:"root"})({});t.default=i},51111:function(e,t,r){r.d(t,{Z:function(){return p}});var o=r(57437),n=r(99376),a=r(55788),s=r(11834),i=r(35773),l=r(79965),d=r(49308),c=r(21170);const u={"global-search":"global_search.back_to_all_search_results"};var p=e=>{let{sx:t,fallback:r=null}=e;const{t:p}=(0,a.$G)(),x=(0,n.useSearchParams)();var h;const m=null!==(h=null===x||void 0===x?void 0:x.get("from"))&&void 0!==h?h:"",v=Object.hasOwn(u,m)?u[m]:void 0;if(!v)return(0,o.jsx)(o.Fragment,{children:r});var g;const f=null!==(g=null===x||void 0===x?void 0:x.get("q"))&&void 0!==g?g:"";return(0,o.jsx)(c.Z,{sx:Array.isArray(t)?t:[t],children:(0,o.jsx)(i.Z,{href:{pathname:"/".concat(m),query:f?{q:f}:{}},dataStyleId:"back-navigation-link",children:(0,o.jsx)(l.Z,{variant:"text",color:"primary",className:d.J.link,startIcon:(0,o.jsx)(s.Z,{fontSize:"small"}),children:p(v)})})})}},83543:function(e,t,r){var o=r(57437),n=r(21170),a=r(35389);t.Z=e=>{let{className:t,color:r,sx:s,size:i=40}=e;return(0,o.jsx)(n.Z,{className:t,sx:[{display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(s)?s:[s]],children:(0,o.jsx)(a.Z,{color:r||"primary",size:i})})}},34604:function(e,t,r){var o=r(57437),n=r(2265),a=r(21170),s=r(89902),i=r(41327),l=r(56326),d=r(64393),c=r(2323),u=r(50290),p=r(33833),x=r(46387),h=r(88064),m=r(81705),v=r(5969),g=r(2291),f=r(253),b=r(54564),y=r(69615),w=r(6551);const j={selector:{backgroundColor:"colors.white",border:"1px solid",borderColor:"colors.borderGreyLight","& .MuiSelect-select":{backgroundColor:"transparent","& .MuiSvgIcon-root":{display:"none"},"&.Mui-disabled":{color:"colors.statusNeutralDark",backgroundColor:"colors.statusNeutralLight"},"& .MuiTypography-root":{typography:"subtitle2",fontSize:"14px"}},"& .MuiOutlinedInput-input":{padding:"10px 32px 10px 14px",display:"flex",alignItems:"center"},"& .MuiTypography-root":{fontSize:"1rem",textAlign:"start"},"& .MuiSelect-icon":{color:"colors.iconSecondary","&.Mui-disabled":{color:e=>(0,h.Fq)(e.palette.colors.iconSecondary||"#5D7189",.6)}},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.MuiInputBase-root":{"&:hover fieldset":{border:0},"&.Mui-focused":{border:1,borderColor:"colors.functionalInfo","& .MuiSelect-root":{border:"none",background:"none"}},"&.Mui-error":{border:1,borderColor:"colors.functionalDanger"}}},multiple:{minHeight:"42px","& .MuiSelect-root.Mui-disabled":{backgroundColor:"colors.white"},"& .MuiOutlinedInput-input":{py:1,pr:4,pl:1.75}},label:{fontSize:"14px",lineHeight:1,color:"colors.textPrimary",mb:"4px","&.Mui-disabled":{color:"colors.statusNeutralDark"},"&.Mui-focused, &.MuiFormLabel-root.Mui-error":{color:"colors.textPrimary"}},menuItem:{position:"relative","&.MuiListSubheader-root":{"& .MuiTypography-root":{fontSize:"12px !important",fontWeight:"400"}},"&>*:nth-of-type(1)":{mr:"4px"}},menuItemSticky:{position:"sticky",bottom:0,zIndex:2,backgroundColor:"colors.white",borderTop:"1px solid",borderColor:"colors.borderGreyLight"},doneIcon:{ml:"auto",color:"colors.textPrimary"},popover:{"& .MuiList-padding":{width:"100% !important",py:.5},"& .MuiPaper-root":{mt:"4px"},"& .MuiPaper-root.MuiPaper-rounded":{borderRadius:"5px",boxShadow:"none",border:"1px solid",borderColor:"colors.borderGreyLight"},"& .MuiMenuItem-root":{minHeight:"40px"},"& .MuiMenuItem-root.Mui-selected, .MuiMenuItem-root.Mui-selected:hover, .MuiMenuItem-root:hover":{backgroundColor:"colors.backgroundGreyLight"},"& .MuiMenuItem-root.Mui-selected, .MuiMenuItem-root.Mui-selected.Mui-focusVisible":{backgroundColor:"colors.backgroundGrey"}},chip:{borderRadius:"3px",height:24,fontSize:14,backgroundColor:"colors.statusNeutralLight",my:.5,mr:1,ml:0,"& .MuiChip-deleteIcon":{width:"12px",color:"colors.textPrimary","&, &:hover":{cursor:"pointer",color:"colors.textPrimary"}},"& .MuiSvgIcon-root":{display:"block !important"},"& span":{overflow:"hidden",textOverflow:"ellipsis"},"&.MuiChip-deletable:focus":{backgroundColor:"colors.statusNeutralLight"},"&.MuiChip-root.Mui-disabled":{opacity:1,color:"colors.statusNeutralDark"}},helper:{ml:0,mt:.5,lineHeight:1.2,display:"flex",alignItems:"center","& .MuiSvgIcon-root":{fontSize:"13px",mr:"4px"}}},Z=(0,n.forwardRef)(((e,t)=>{let{handleChange:r,value:h="",label:Z,required:C,helperText:S,name:k,multiple:M,options:z=[],placeholder:I,sx:T,labelSx:E,menuPropsSx:L,variant:_,fullWidth:R,asChip:G,handleDelete:A,disableDone:P,maxWidth:D,maxHeight:N,disabled:H,error:W,MenuProps:B,dataTour:O}=e;
1const[F,V]=(0,n.useState)(!1),$=Array.isArray(T)?T:[T],Y=Array.isArray(E)?E:[E],U=Array.isArray(L)?L:[L],q={anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disablePortal:!0,open:F,sx:[j.popover,{...D&&{maxWidth:D},"& .MuiPopover-paper":{maxHeight:N||300}},...U],...B},J=(0,n.useMemo)((()=>z.reduce(((e,t)=>{let{value:r,text:o}=t;return{...e,[r]:o}}),{})),[z]),K=e=>e.stopPropagation(),X=W||S,Q=Boolean(W);let ee,te,re,oe;return(0,o.jsxs)(i.Z,{variant:_||"outlined",required:C,fullWidth:R,error:Q,...O&&{"data-tour":O},sx:[...$],children:[Z&&(0,o.jsx)(d.Z,{required:C,disabled:H,sx:[j.label,...Y],children:Z}),(0,o.jsx)(p.Z,{id:k,name:k,value:null!==h&&void 0!==h?h:"",onChange:e=>{const t=e.target.value;(t||0===+t)&&r&&r(e)},sx:[j.selector,Boolean(M)&&j.multiple],open:F,multiple:M,disabled:H,onClose:V.bind(null,!1),onOpen:V.bind(null,!0),IconComponent:g.default,MenuProps:q,displayEmpty:!0,renderValue:e=>{const t=M&&Array.isArray(h)&&!h.length;if(!h&&0!==h||t)return(0,o.jsx)(x.Z,{sx:{color:"colors.textSecondary"},children:I});if(M&&Array.isArray(e))return(0,o.jsx)(x.Z,{noWrap:!0,children:e.map((e=>J[e])).join(", ")});if(G&&Array.isArray(e))return(0,o.jsx)(a.Z,{display:"flex",flexWrap:"wrap",my:"-5px",children:e.map((e=>(0,o.jsx)(s.Z,{label:J[e],disabled:H,onDelete:A&&A.bind(null,e),deleteIcon:H?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(m.Z,{}),onMouseDown:K},e)))});var r;const n=null!==(r=J[h])&&void 0!==r?r:"";return(0,o.jsx)(x.Z,{className:"dangerouslyHtml",dangerouslySetInnerHTML:{__html:(0,y.Z6)(n)},noWrap:!0})},ref:t,"data-styleid":(0,w.bS)("uiselect-".concat(h)),children:z.map(((e,t)=>{oe=Boolean(e.subheader),ee=oe?c.Z:u.Z,te=!M&&h===e.value&&F&&!P;const r=Array.isArray(e.sx)?e.sx:[e.sx];var n;return re=oe?"subtitle4":e.variant||"subtitle2",(0,o.jsxs)(ee,{value:oe?"":e.value,sx:[j.menuItem,e.sticky&&j.menuItemSticky],title:e.text?(0,b.parse)(e.text).rawText:e.value,disabled:null!==(n=e.disabled)&&void 0!==n&&n,children:[(0,o.jsx)(x.Z,{sx:[{mr:D},...r],variant:re,noWrap:!0,className:"dangerouslyHtml",dangerouslySetInnerHTML:{__html:(0,y.Z6)(e.text)}}),te&&(0,o.jsx)(v.Z,{sx:j.doneIcon})]},e.id||"".concat(e.value,"-").concat(e.text))}))}),!!X&&(0,o.jsxs)(l.Z,{component:"div",error:Boolean(W),sx:j.helper,children:[W&&(0,o.jsx)(f.Z,{}),X]})]})}));Z.displayName="Select",t.Z=(0,n.memo)(Z)},50365:function(e,t,r){r.d(t,{Z:function(){return y}});var o=r(57437),n=r(2265),a=r(14069),s=r(21170),i=r(35389),l=r(19902),d=r(46387),c=r(55788),u=r(66454),p=r(24769),x=(r(7354),r(86968),r(76889),r(79965)),h=r(49308),m=r(6684),v=r(6551),g=r(35773);const f={wrapper:e=>({display:"flex",flexDirection:"column",borderWidth:e?0:"1px",...e?{p:"0px !important"}:{py:3,pr:0,pl:3},"@media (max-width: 1280px)":{height:"auto !important"},"@media (max-width: 600px)":{pr:0,pl:2}}),sliderWrapper:e=>{let{minimized:t,showDots:r}=e;return{maxWidth:"100%","& .swiper":{mt:t?0:2,pb:r?2:0},"& .swiper-wrapper":{pb:"1px"},"& .swiper-slide":{width:"auto !important",height:"auto",boxSizing:"border-box"},...!t&&{"& .swiper-slide:last-child":{paddingRight:"24px"}},"& .swiper-button-prev, & .swiper-button-next":{"--swiper-navigation-size":"0px",width:t?"23px":"46px",height:t?"23px":"46px",top:"50%",transform:"translateY(-50%)",borderRadius:"50%",backgroundColor:"colors.white",border:"1px solid",borderColor:"colors.borderGreyLight",cursor:"pointer",zIndex:1,display:"flex !important",alignItems:"center",justifyContent:"center","&:after":{content:'""',width:"25%",height:"25%",borderBottom:"2px solid",borderBottomColor:"colors.iconSecondary",borderRight:"2px solid",borderRightColor:"colors.iconSecondary"},"&:hover":{backgroundColor:"var(--palette-colors-white-hoverColor, var(--palette-colors-white))"}},"& .swiper-button-prev":{left:"10px","&:after":{rotate:"135deg",translate:"25%"}},"& .swiper-button-next":{right:"10px","&:after":{rotate:"-45deg",translate:"-25%"}},"& .swiper-button-disabled":{display:"none !important"},...r&&{"& .swiper-pagination":{mb:2,"& .swiper-pagination-bullet":{fontSize:"10px"},"& .swiper-pagination-bullet-active":{backgroundColor:"colors.brand1",opacity:1}}}}},contentWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",pr:3,"@media (max-width: 600px)":{pr:2}}},b=e=>{let{children:t,title:r,id:b,additionalBlock:y,className:w,titleVariant:j="h2",slidesCount:Z,minimized:C,showAllCallback:S,countOfSlides:k=10,removeShowAllCounters:M,removeShowAllButton:z,showDots:I,customSliderSetting:T,sx:E,showAllHref:L}=e;var _;const{t:R}
1=(0,c.$G)(),[G,A]=(0,n.useState)(!1),P=(0,a.CGy)(a.ulX),D=Array.isArray(null===t||void 0===t||null===(_=t.props)||void 0===_?void 0:_.children)?t.props.children:n.Children.toArray(t),N=(0,n.useMemo)((()=>Array.isArray(D)?D.slice(0,k):[]),[D,k]);if(!Array.isArray(D))return null;const H=Z||D.length,W=!z&&!P&&((null!==Z&&void 0!==Z?Z:0)>1||D.length>1),B=(0,v.bS)(b),{breakpoints:O,...F}=T||{};return(0,o.jsxs)(l.Z,{"data-testid":"sliderBlock","data-styleid":"".concat(B,"-slider-block"),className:w,variant:"outlined",id:B,sx:[f.wrapper(null!==C&&void 0!==C&&C),{justifyContent:y?"start":"space-between"},...Array.isArray(E)?E:[E]],children:[!C&&(0,o.jsxs)(s.Z,{sx:f.contentWrapper,children:[(0,o.jsx)(d.Z,{variant:null!==j&&void 0!==j?j:"h2",noWrap:!0,"data-styleid":"".concat(B,"-slider-block-title"),children:R(r||"")}),W&&(0,o.jsx)(g.Z,{href:!S&&L,children:(0,o.jsx)(x.Z,{variant:"text",className:h.J.link,"data-styleid":"show-all-slider","data-tour":"show-all","data-testid":"amount-link",sx:[!!S&&m.W0.pointer],...S&&!L&&{onClick:S},children:"".concat(R("common.show_all")," ").concat(M?"":"(".concat(H,")"))})})]}),y,!G&&(0,o.jsx)(s.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,o.jsx)(i.Z,{size:32})}),(0,o.jsx)(s.Z,{sx:[f.sliderWrapper({minimized:C,showDots:I}),!G&&{display:"none"}],children:(0,o.jsx)(u.tq,{modules:[p.W_,p.tl],slidesPerView:I?3:"auto",slidesPerGroup:I?3:1,spaceBetween:10,speed:500,navigation:!0,pagination:!!I&&{clickable:!0},breakpoints:{0:{navigation:{enabled:!1}},768:{navigation:{enabled:!0}},...O},onSwiper:()=>A(!0),...F,children:N.map(((e,t)=>((e,t)=>(0,n.isValidElement)(e)?(0,o.jsx)(u.o5,{children:e},t):null)(e,t)))})})]})};var y=(0,n.memo)(b,v.wy)},89061:function(e,t,r){var o=r(57437),n=r(21170),a=r(39155),s=r(46387),i=r(2291),l=r(45128),d=r(55788),c=r(6684),u=r(91200),p=r(46314),x=r(47072);t.Z=e=>{let{filters:t,onRemoveFilter:r}=e;const{t:h}=(0,d.$G)(),{ref:m,isOverflow:v,isCollapsed:g,toggleCollapse:f}=(0,x.Z)([t.length],100);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Z,{sx:[p.$d.container,g&&p.$d.collapsed],children:(0,o.jsxs)(n.Z,{sx:p.$d.filters,ref:m,children:[(0,o.jsx)(s.Z,{variant:"h5",sx:c.W0.uppercase,children:"".concat(h("shared.selected_filter_view.your_filters"),":")}),t.map((e=>(0,o.jsx)(u.Z,{sx:p.$d.item,label:e.label,color:"neutral",onDelete:r.bind(null,e)},"".concat(e.id,"-").concat(e.type))))]})}),v&&(0,o.jsx)(a.Z,{sx:p.$d.button,variant:"text",endIcon:g?(0,o.jsx)(i.default,{}):(0,o.jsx)(l.Z,{}),onClick:f,children:h(g?"common.show_more":"common.show_less")})]})}},14592:function(e,t,r){var o=r(57437),n=r(2265),a=r(14069),s=r(83828),i=r(9125),l=r(89061);t.Z=e=>{let{typesToExclude:t}=e;const r=(0,a.CGy)(i.e1),d=(0,n.useMemo)((()=>Array.isArray(t)?r.filter((e=>!t.includes(e.type))):r),[r,t]),c=(0,a.TL5)();if(d.length<1)return null;return(0,o.jsx)(l.Z,{filters:d,onRemoveFilter:e=>{c((0,s.Dr)([e]))}})}},88007:function(e,t,r){var o=r(64560),n=r(99376),a=r(14932),s=r(14069),i=r(6551),l=r(83828),d=r(48236),c=r(34187),u=r(74663);t.Z=()=>{const e=(0,s.TL5)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=t.get("hash"),p=(0,c.Z)();return async()=>{if(!r||"undefined"===r)return!0;const n=new URLSearchParams((0,a.stringify)({hash:r}));return e((0,l.dT)(!0)),(0,d.k_)("".concat((0,u.t)(),"/api/v1/index/getShortUrl?").concat(n),{method:"GET"}).then((t=>{var r;if(200!==(null===t||void 0===t?void 0:t.code)||!(0,i.Kn)(null===(r=t.data)||void 0===r?void 0:r.link))return!0;const{vars:n,admin_id:a}=t.data.link,{additional:s,selected:d}=(e=>{const t=(0,i.EX)(e),r=Array.isArray(t);return{selected:r?t:t.selectedFilters,additional:r?{}:t.additionFilters}})(n);return(0,o.dC)((()=>{e((0,l.wE)(d)),e((0,l.wr)(s)),e((0,l.Zc)(a))})),!1})).finally((()=>{e((0,l.dT)(!1)),(()=>{const e=new URLSearchParams(t.toString());e.delete("hash"),p((0,a.parse)(e.toString()))})()}))}}},40841:function(e,t,r){var o=r(99376),n=r(97910),a=r(2265),s=r(14069),i=r(6551),l=r(83828);t.Z=e=>{const t=(0,s.TL5)(),r=(0,n.t)(),d=(0,o.usePathname)(),c=(0,o.useSearchParams)()||new URLSearchParams,u=c.get("resetFilters");(0,a.useEffect)((()=>
1{if(!u||"undefined"===u)return;const o=new URLSearchParams(c.toString());o.delete("resetFilters"),t((0,l.aw)(e));const n=(0,i.oo)("".concat(d,"?").concat(o.toString()));r.replace(n)}),[u,t])}},26464:function(e,t,r){var o=r(57437),n=r(2265),a=r(62069),s=r(20271);t.Z=e=>{let{viewVariant:t,sessions:r}=e;const i="list"===t;if(!Array.isArray(r))return null;const l=i?{xs:12}:{xs:12,sm:6,md:4};return(0,o.jsx)(a.ZP,{container:!0,spacing:1,position:"relative",children:r.map((e=>(0,n.createElement)(a.ZP,{item:!0,...l,key:e.id},(0,o.jsx)(s.SessionWrapperWithPopup,{session:e,view:i?"horizontal":"vertical",sx:{height:"100%"}}))))})}},34486:function(e,t,r){r.d(t,{Z:function(){return Ar}});var o=r(57437),n=r(2265),a=r(64560),s=r(14069),i=r(55788),l=r(21170),d=r(19902),c=r(46387),u=r(83983),p=r(4204),x=r(86173),h=r(59280),m=r(6551),v=r(67177),g=r(42228),f=r(78530),b=r(43974);const y=new Set(["calendar","list","cards"]),w=new Set(["week","day"]),j="sessionsView",Z={list:"list",grid:"cards",calendar:"calendar"},C=()=>{const e=g.Z.getLocalItem(j);if(!e)return{};const t=(0,f.E)(e,{});return(0,b.K)(t)?{...y.has(t.view)&&{view:t.view},...w.has(t.subView)&&{subView:t.subView}}:{}},S=e=>{const t={...C(),...e};g.Z.setLocalItem(j,JSON.stringify(t))};var k=r(7628),M=r(10310),z=r(51111),I=r(14592),T=r(83543),E=r(7394),L=r(67293),_=r(9125),R=r(45848),G=r(29943),A=r(83828),P=r(55595),D=r(88007),N=r(40841);const H=e=>{let{children:t}=e;const[r,a]=(0,n.useState)(!0),i=(0,s.TL5)(),{makeAuth:l}=(0,G.Z)(),d=(0,s.CGy)(x.QH),{sessionsSelectedType:c,viewVariant:u}=(0,s.CGy)(x.Rx),{from:h}=(0,s.CGy)(x.Bp),m=(0,s.CGy)((e=>(0,_.dO)(e,c))),v=(0,R.Z)({selectedFilters:m},1e3),g=(0,D.Z)();(0,N.Z)(c),(0,n.useEffect)((()=>{i((0,A.Iy)(c))}),[i,c]);const f=async()=>{a(!0),i((0,p.oW)(1));const e=await i((0,p.RI)({force:!0,sessionsType:c}));a(!1),401===(null===e||void 0===e?void 0:e.code)&&(P.Z.setCurrentPage(),l())};(0,n.useEffect)((()=>{d&&(async()=>{await g()&&await f()})()}),[v,d]);const b=r&&("calendar"!==u||null==h);return(0,o.jsx)(L.default,{isLoading:b,children:t})};var W=(0,n.memo)(H),B=r(26464),O=r(35389),F=r(82156),V=r(31691);const $=540,Y=1080,U=60,q=96,J=24,K="HH:00",X={xs:132,md:180},Q=1,ee=2,te=3,re=4,oe=5,ne=6;var ae={root:{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid",borderColor:"var(--palette-colors-borderGreyLight)",borderRadius:"8px",backgroundColor:"background.paper",maxHeight:"70vh"},scroller:{flex:"1 1 auto",minWidth:0,minHeight:0,overflow:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{width:"".concat(15,"px"),height:"".concat(15,"px")},"&::-webkit-scrollbar-thumb":{border:"4px solid transparent",backgroundClip:"content-box",borderRadius:"".concat(15,"px")},"&::-webkit-scrollbar-track, &::-webkit-scrollbar-corner":{backgroundColor:"var(--palette-colors-statusNeutralLight)",borderRadius:0}},grid:{width:"max-content",minWidth:"100%"},headerRow:{display:"flex",position:"sticky",top:0,zIndex:te,backgroundColor:"background.paper"},corner:{position:"sticky",left:0,zIndex:re,flexShrink:0,width:"".concat(58,"px"),backgroundColor:"background.paper",borderRight:"1px solid",borderBottom:"1px solid",borderColor:"var(--palette-colors-borderGreyLight)"},body:{display:"flex"},gutter:{position:"sticky",left:0,zIndex:ee,flexShrink:0,width:"".concat(58,"px"),backgroundColor:"background.paper",borderRight:"1px solid",borderColor:"var(--palette-colors-borderGreyLight)"}},se=r(71096),ie=r.n(se);const le=(e,t,r)=>{const{day:o,startMinute:n,endMinute:a,hourHeight:s,minEventHeight:i}=r,l=o.add(n,"minute"),d=o.add(a,"minute"),c=e.isBefore(l)?l:e,u=t.isAfter(d)?d:t,p=c.diff(l,"minute")/60*s,x=u.diff(c,"minute")/60*s;return{top:p,height:Math.max(x,i)}},de=e=>({start:e.startAt,end:e.endAt}),ce=(e,t)=>e.start<t.end&&e.end>t.start,ue=(e,t)=>{const{day:r,startMinute:o,endMinute:n,hourHeight:a,minEventHeight:s,maxLanes:i,compareEvents:l}=t,d={day:r,startMinute:o,endMinute:n,hourHeight:a,minEventHeight:s},c=e.filter((e=>{let{startAt:t,endAt:r}=e;return r>o&&t<n})).sort(((e,t)=>e.startAt-t.startAt||t.endAt-e.endAt)),u=[];let p=[],x=0;
1c.forEach((e=>{0===p.length||e.startAt<x?(p.push(e),x=Math.max(x,e.endAt)):(u.push(p),p=[e],x=e.endAt)})),p.length>0&&u.push(p);const h=[],m=[];return u.forEach((e=>{const t=[...e].sort(((e,t)=>t.endAt-t.startAt-(e.endAt-e.startAt)||(l?l(e.event,t.event):0))),{placed:o,hidden:a}=((e,t)=>{const r=[],o=[],n=[];return e.forEach((e=>{const a=de(e),s=r.findIndex((e=>!e.some((e=>ce(e,a)))));-1!==s?(r[s].push(a),o.push({item:e,column:s})):r.length<t?(r.push([a]),o.push({item:e,column:r.length-1})):n.push(e)})),{placed:o,hidden:n}})(t,i),s=o.reduce(((e,t)=>{let{column:r}=t;return Math.max(e,r)}),0)+1;if(o.forEach((e=>{let{item:t,column:r}=e;const n=de(t);let a=1;for(let d=r+1;d<s;d+=1){if(o.some((e=>e.column===d&&ce(de(e.item),n))))break;a+=1}const{top:i,height:l}=le(t.start,t.end,d);h.push({event:t.event,top:i,height:l,leftPercent:r/s*100,widthPercent:a/s*100})})),a.length>0){const e=a.reduce(((e,t)=>({start:Math.min(e.start,t.startAt),end:Math.max(e.end,t.endAt),firstEnd:Math.min(e.firstEnd,t.endAt)})),{start:1/0,end:-1/0,firstEnd:1/0}),o=Math.min(e.firstEnd,n),s=r.add(o,"minute"),{top:i}=le(s,s,d),l=new Set(a.map((e=>e.event)));m.push({hidden:[...l],events:t.filter((t=>l.has(t.event)||ce(de(t),e))).map((e=>e.event)),hiddenStart:r.add(e.start,"minute").valueOf(),hiddenEnd:r.add(e.end,"minute").valueOf(),top:Math.max(0,i-24-2)})}})),{positioned:h,overflow:m}};var pe={root:{position:"relative",height:"100%"},hourLabel:{position:"absolute",right:"6px",color:"var(--palette-text-secondary)"},timezoneLabel:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",color:"var(--palette-text-secondary)",textTransform:"uppercase",lineHeight:1.2}};var xe=e=>{let{day:t,hourMarks:r,startMinute:n,hourHeight:a,timeFormat:s,timezoneLabel:i}=e;return(0,o.jsxs)(l.Z,{"data-testid":"calendar-time-gutter",sx:pe.root,children:[r.map((e=>(0,o.jsx)(c.Z,{variant:"caption",sx:[pe.hourLabel,{top:"".concat((e-n)/U*a+6,"px")}],children:t.add(e,"minute").format(s)},e))),i?(0,o.jsx)(c.Z,{variant:"caption",sx:pe.timezoneLabel,children:i}):null]})},he=r(41530);var me={root:{height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",p:"8px",textAlign:"center"},todayDot:{width:8,height:8,borderRadius:"50%",backgroundColor:"var(--palette-brand1-main)"}};var ve=e=>{let{day:t,isToday:r,content:n,onClick:a}=e;return(0,o.jsx)(l.Z,{"data-testid":"calendar-day-header",onClick:a?()=>a(t):void 0,sx:[me.root,{cursor:a?"pointer":"default",borderRight:"1px solid var(--palette-colors-borderGreyLight)",borderBottom:r?"2px solid var(--palette-brand1-main)":"1px solid var(--palette-colors-borderGreyLight)",backgroundColor:r?"rgba(var(--palette-brand1-mainChannel) / 0.1)":void 0}],children:null!==n&&void 0!==n?n:(0,o.jsxs)(he.Z,{direction:"row",spacing:.5,justifyContent:"center",alignItems:"center",children:[r?(0,o.jsx)(l.Z,{"data-testid":"calendar-today-dot",sx:me.todayDot}):null,(0,o.jsx)(c.Z,{variant:"h6",component:"span",sx:{textTransform:"uppercase",color:r?"var(--palette-brand1-main)":void 0},children:t.format("ddd, MMM D")})]})})};var ge={column:{flexShrink:0,position:"relative",isolation:"isolate",backgroundColor:"var(--palette-colors-backgroundGrey)",borderRight:"1px solid",borderColor:"var(--palette-colors-borderGreyLight)"},columnToday:{backgroundColor:"rgba(var(--palette-brand1-mainChannel) / 0.1)"},hourLine:{position:"absolute",left:0,right:0,borderTop:"1px solid",borderColor:"var(--palette-colors-borderGreyLight)"}};const fe=e=>({"&:hover":{zIndex:oe,overflow:"visible",maxHeight:"".concat(600,"px"),...e?{left:0,width:"100%"}:{}},"&:hover ~ [data-overflow-badge]":{opacity:.2}});var be={root:{position:"absolute",top:"var(--calendar-event-top)",left:"var(--calendar-event-left)",width:"var(--calendar-event-width)",minHeight:"var(--calendar-event-height)",maxHeight:"var(--calendar-event-height)",display:"flex",overflow:"hidden",boxSizing:"border-box",p:"1px",transition:"left .2s, width .2s, max-height .35s cubic-bezier(0.4, 0, 0.2, 1)"}};var ye=e=>{let{top:t,height:r,leftPercent:n,widthPercent:a,expandable:s,children:i}=e;return(0,o.jsx)(l.Z,{"data-testid":"calendar-event","data-calendar-event":"",style:{"--calendar-event-top":"".concat(t,"px"),"--calendar-event-height":"".concat(r,"px"),"--calendar-event-left":"".concat(n,"%"),"--calendar-event-width":"".concat(a,"%")},sx:[be.root,fe(s)],children:i})};const we={border:"1px dashed",borderColor:"var(--palette-colors-statusIncomingDark)",borderRadius:"4px",color:"var(--palette-colors-statusIncomingDark)",backgroundColor:"rgba(var(--palette-colors-statusIncomingLight-mainChannel) / 0.92)"},je={root:{position:"absolute",top:"var(--calendar-trigger-top)",left:0,width:"100%",height:"".concat(24,"px"),display:"flex",boxSizing:"border-box",p:"2px",zIndex:ne,transition:"opacity .2s"},badge:{flex:1,minWidth:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"none",...we,px:"2px",py:"3px",overflow:"hidden",cursor:"pointer",transition:"opacity .15s","&:hover":{opacity:.9}}},Ze=je.badge;var Ce=je;var Se=e=>{let{top:t,count:r,children:n}=e;return(0,o.jsx)(l.Z,{"data-testid":"calendar-more-trigger","data-overflow-badge":"",style:{"--calendar-trigger-top":"".concat(t,"px")},sx:Ce.root,children:null!==n&&void 0!==n?n:(0,o.jsx)(c.Z,{variant:"overline2",sx:Ze,children:"+".concat(r," more")})})};var ke={root:{position:"absolute",left:0,right:0,zIndex:Q,display:"flex",alignItems:"center",transform:"translateY(-50%)",pointerEvents:"none"},label:{flexShrink:0,px:"4px",py:"4px",lineHeight:1,borderRadius:"4px",color:"var(--palette-common-white)",backgroundColor:"var(--palette-error-dark)"},dot:{width:8,height:8,borderRadius:"50%",backgroundColor:"var(--palette-error-dark)"},line:{flex:1,height:"2px",backgroundColor:"var(--palette-error-dark)"}};var Me=e=>{let{day:t,startMinute:r,endMinute:a,hourHeight:s,timezone:i}=e;const d=(e=>
1{const[t,r]=(0,n.useState)((()=>ie()().tz(e)));return(0,n.useEffect)((()=>{const t=setInterval((()=>r(ie()().tz(e))),6e4);return()=>clearInterval(t)}),[e]),t})(i),u=t.add(r,"minute"),p=d.diff(u,"minute");if(p<0||p>a-r)return null;const x=p/60*s;return(0,o.jsxs)(l.Z,{"data-testid":"calendar-now-indicator",sx:[ke.root,{top:"".concat(x,"px")}],children:[(0,o.jsx)(c.Z,{variant:"caption",sx:ke.label,children:d.format("HH:mm")}),(0,o.jsx)(l.Z,{sx:ke.line}),(0,o.jsx)(l.Z,{sx:ke.dot})]})};var ze=e=>{let{day:t,isToday:r,layout:n,hourMarks:a,startMinute:s,endMinute:i,hourHeight:d,timezone:c,columnSx:u,expandable:p,showCurrentTime:x,renderEvent:h,renderMoreTrigger:m}=e;return(0,o.jsxs)(l.Z,{"data-testid":"calendar-day-column",sx:[ge.column,r&&ge.columnToday,{height:"".concat((i-s)/U*d,"px")},u],children:[a.map((e=>e===s?null:(0,o.jsx)(l.Z,{sx:[ge.hourLine,{top:"".concat((e-s)/U*d,"px")}]},e))),n.positioned.map((e=>(0,o.jsx)(ye,{top:e.top,height:e.height,leftPercent:e.leftPercent,widthPercent:e.widthPercent,expandable:p,children:h(e.event)},e.event.id))),n.overflow.map((e=>(0,o.jsx)(Se,{top:e.top,count:e.hidden.length,children:null===m||void 0===m?void 0:m(e.hidden,{day:t.valueOf(),timezone:c,hiddenStart:e.hiddenStart,hiddenEnd:e.hiddenEnd,events:e.events})},"overflow-".concat(e.hiddenStart,"-").concat(e.hiddenEnd)))),r&&x?(0,o.jsx)(Me,{day:t,startMinute:s,endMinute:i,hourHeight:d,timezone:c}):null]})};var Ie=e=>{let{days:t,timezone:r,timezoneLabel:a,startMinute:s=$,endMinute:i=Y,hourHeight:d=q,minEventHeight:c=J,minColumnWidth:u=X,timeFormat:p=K,initialScrollTime:x,showCurrentTime:h=!0,events:m,renderEvent:v,compareEvents:g,maxLanes:f,renderMoreTrigger:b,renderDayHeader:y,onDayHeaderClick:w,className:j,sx:Z}=e;const C=(0,n.useRef)(null),S=(0,n.useMemo)((()=>{const e=[];for(let t=Math.ceil(s/U)*U;t<i;t+=U)e.push(t);return e}),[s,i]),k=null!==f&&void 0!==f?f:t.length<=1?5:4;const M=t.length>1,z=(0,n.useMemo)((()=>(e=>({flexGrow:1,flexShrink:0,flexBasis:Object.fromEntries(Object.entries(e).map((e=>{let[t,r]=e;return[t,"".concat(r,"px")]})))}))(u)),[u]),I=(0,n.useMemo)((()=>ie()().tz(r).startOf("day")),[r]),T=(0,n.useMemo)((()=>{const e=new Set;return t.map((e=>ie()(e).tz(r).startOf("day"))).filter((t=>{const r=t.valueOf();return!e.has(r)&&(e.add(r),!0)}))}),[t,r]),E=(0,n.useMemo)((()=>null!=x?ie()(x).tz(r):void 0),[x,r]),L=(0,n.useMemo)((()=>((e,t)=>{const r=new Map;return e.forEach((e=>{const o=ie()(e.start).tz(t),n=ie()(e.end).tz(t),a=o.startOf("day"),s=a.valueOf(),i={event:e,start:o,end:n,startAt:o.diff(a,"minute"),endAt:n.diff(a,"minute")},l=r.get(s);l?l.push(i):r.set(s,[i])})),r})(m,r)),[m,r]),_=(0,n.useMemo)((()=>T.map((e=>{var t;return ue(null!==(t=L.get(e.valueOf()))&&void 0!==t?t:[],{day:e,startMinute:s,endMinute:i,hourHeight:d,minEventHeight:c,maxLanes:k,compareEvents:g})}))),[T,L,s,i,d,c,k,g]);return(e=>{let{scrollRef:t,days:r,today:o,timezone:a,initialScrollTime:s,startMinute:i,endMinute:l,hourHeight:d}=e;(0,n.useEffect)((()=>{const e=t.current;if(!e)return;const n=r.some((e=>e.isSame(o,"day"))),c=null!==s&&void 0!==s?s:n?ie()().tz(a):void 0;if(!c)return;const u=c.startOf("day").add(i,"minute"),p=c.diff(u,"minute");if(p<0||p>l-i)return;const x=Math.max(p/60*d-d,0);try{e.scrollTo({top:x,behavior:"smooth"})}catch(h){}}),[])})({scrollRef:C,days:T,today:I,timezone:r,initialScrollTime:E,startMinute:s,endMinute:i,hourHeight:d}),(0,o.jsx)(l.Z,{className:j,sx:[ae.root,...Array.isArray(Z)?Z:[Z]],children:(0,o.jsx)(l.Z,{ref:C,sx:ae.scroller,children:(0,o.jsxs)(l.Z,{sx:ae.grid,children:[(0,o.jsxs)(l.Z,{sx:ae.headerRow,children:[(0,o.jsx)(l.Z,{sx:ae.corner,children:(0,o.jsx)(xe,{day:I,hourMarks:[],startMinute:s,hourHeight:d,timeFormat:p,timezoneLabel:null!==a&&void 0!==a?a:r})}),T.map(((e,t)=>{const n=e.isSame(I,"day"),a=_[t],s=[...a.positioned.map((e=>e.event)),...a.overflow.flatMap((e=>e.hidden))];return(0,o.jsx)(l.Z,{sx:z,children:(0,o.jsx)(ve,{day:e,isToday:n,onClick:w?e=>w(e.valueOf()):void 0,content:null===y||void 0===y?void 0:y(e.valueOf(),{isToday:n,events:s,timezone:r})})},e.valueOf())}))]}),(0,o.jsxs)(l.Z,{sx:ae.body,children:[(0,o.jsx)(l.Z,{sx:ae.gutter,children:(0,o.jsx)(xe,{day:I,hourMarks:S,startMinute:s,hourHeight:d,timeFormat:p,timezoneLabel:""})}),T.map(((e,t)=>{const n=e.isSame(I,"day");return(0,o.jsx)(ze,{day:e,isToday:n,layout:_[t],hourMarks:S,startMinute:s,endMinute:i,hourHeight:d,timezone:r,columnSx:z,expandable:M,showCurrentTime:h,renderEvent:v,renderMoreTrigger:b},e.valueOf())}))]})]})})})},Te=r(88933),Ee=r(89149);const Le={mobile:2,week:4,day:5};var _e=r(58171),Re=r(24525),Ge=r(6986),Ae=r(73206),Pe=r(94794),De=r(49329);var Ne=r(80110);var He={root:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"}
1,gap:"16px",marginBottom:"16px"},topRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"16px",flex:{sm:1}},label:{display:"flex",flexDirection:"column"},labelSecondary:{color:"var(--palette-text-secondary)"},todayButton:{["& .".concat(Ne.z.label)]:{textTransform:"uppercase"}},viewToggle:{width:{xs:"100%",sm:"auto"},["& .".concat(Ne.z.button)]:{flex:{xs:1,sm:"none"}}}};var We=()=>{const{t:e}=(0,i.$G)(),t=(0,s.TL5)(),r=(0,s.CGy)(x.WA),{from:n,to:a}=(0,s.CGy)(x.Bp),d=(0,s.CGy)(x.ZH),u=(0,s.CGy)(x.Yd),h=(0,s.CGy)(Te.zH)||"UTC",[m,v]=(0,s.CGy)(Te.YO),g=(e=>{let{subView:t,from:r,to:o,day:n,timezone:a}=e;if("day"===t){const e=null!==n&&void 0!==n?n:null!=r?(0,De.ST)(r):Date.now(),t=(0,Pe.Z)(e).tz(a);return{primary:t.format("D MMM"),secondary:t.format("dddd")}}if(null==r||null==o)return{primary:"",secondary:""};const s=(0,Pe.Z)((0,De.ST)(r)).tz(a),i=(0,Pe.Z)((0,De.ST)(o)).tz(a);return{primary:s.format("MMM YYYY"),secondary:"".concat(s.format("MMM D")," \u2013 ").concat(i.format("MMM D"))}})({subView:r,from:n,to:a,day:d,timezone:h}),{canPrev:f,canNext:b,canToday:y}=(0,Ee.Er)({subView:r,from:n,to:a,day:d},m,v,h);return(0,o.jsxs)(l.Z,{sx:He.root,children:[(0,o.jsxs)(l.Z,{sx:He.topRow,children:[(0,o.jsxs)(l.Z,{sx:He.label,children:[(0,o.jsx)(c.Z,{variant:"h3",children:g.primary}),(0,o.jsx)(c.Z,{variant:"subtitle3",sx:He.labelSecondary,children:g.secondary})]}),(0,o.jsxs)(Ge.Z,{variant:"bordered","aria-label":e("sessions.calendar.navigation_label"),children:[(0,o.jsx)(Ae.Z,{value:"prev","aria-label":e("common.previous"),disabled:!f||u,compact:!0,onClick:()=>t((0,p.kl)("prev")),children:(0,o.jsx)(Re.Z,{sx:{color:"var(--palette-colors-iconGrey)",fontSize:"20px"}})}),(0,o.jsx)(Ae.Z,{value:"today",sx:He.todayButton,disabled:!y||u,onClick:()=>t((0,p.kl)("today")),children:e("common.today")}),(0,o.jsx)(Ae.Z,{value:"next","aria-label":e("common.next"),disabled:!b||u,compact:!0,onClick:()=>t((0,p.kl)("next")),children:(0,o.jsx)(_e.Z,{sx:{color:"var(--palette-colors-iconGrey)",fontSize:"20px"}})})]})]}),(0,o.jsxs)(Ge.Z,{variant:"segmented","aria-label":e("sessions.calendar.view_toggle_label"),sx:He.viewToggle,value:r,onChange:(e,r)=>{r&&(t((0,p.FY)(r)),S({subView:r}))},children:[(0,o.jsx)(Ae.Z,{value:"week",children:e("sessions.calendar.week_view")}),(0,o.jsx)(Ae.Z,{value:"day",children:e("sessions.calendar.day_view")})]})]})};var Be={root:{gap:"2px",alignItems:"center"},title:{flexDirection:"row",gap:"4px",alignItems:"center"},todayDot:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"var(--palette-brand1-main)"},dayName:{textTransform:"uppercase",color:"var(--palette-text-primary)"},dayNameToday:{color:"var(--palette-brand1-main)"},count:{color:"var(--palette-text-secondary)"},countToday:{color:"var(--palette-text-primary)"}};var Oe=e=>{let{day:t,isToday:r,events:n,timezone:a}=e;const{t:s}=(0,i.$G)();return(0,o.jsxs)(he.Z,{sx:Be.root,children:[(0,o.jsxs)(he.Z,{sx:Be.title,children:[r&&(0,o.jsx)(l.Z,{sx:Be.todayDot}),(0,o.jsx)(c.Z,{variant:"h6",component:"span",sx:[Be.dayName,r&&Be.dayNameToday],children:(0,Pe.Z)(t).tz(a).format("ddd, MMM D")})]}),(0,o.jsx)(c.Z,{variant:"subtitle4",sx:r?Be.countToday:Be.count,children:s("sessions.calendar.sessions_count",{count:n.length})})]})},Fe=r(74983),Ve=r(98727),$e=r(2902),Ye=r(92920),Ue=r(17407);var qe={wrapper:{display:"flex",alignItems:"center",gap:"4px",overflow:"hidden",minWidth:0},avatar:{flexShrink:0},name:{color:"text.secondary",lineHeight:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0}};const Je=(0,n.forwardRef)(((e,t)=>{let{speakers:r,avatarSize:n,nameVariant:a}=e;if(!r||0===r.length)return null;const s=n;
1if(1===r.length){const[e]=r;return(0,o.jsxs)(l.Z,{sx:qe.wrapper,ref:t,"data-testid":"calendarSpeaker",children:[(0,o.jsx)(Ye.default,{src:e.imageSrc,size:s,sx:qe.avatar}),(0,o.jsx)(c.Z,{variant:a,sx:qe.name,title:e.fullName,children:e.fullName})]})}return(0,o.jsx)(Ue.Z,{size:s,ref:t,"data-testid":"calendarSpeaker",children:r.map((e=>(0,o.jsx)(Ye.default,{src:e.imageSrc,size:s},e.id)))})}));Je.displayName="CalendarSpeaker";var Ke=(0,n.memo)(Je);var Xe={wrapper:{display:"flex",flexDirection:"column",gap:"2px",padding:"5px",width:"100%",minWidth:0,"& > *":{flexShrink:0,minWidth:0},"& .MuiAvatarGroup-root > .MuiAvatar-root":{fontSize:"12px"}},title:{color:"text.primary"},time:{color:"text.secondary"},badges:{display:"flex",gap:"4px",flexWrap:"wrap"},chip:{"&.MuiChip-sizeSmall":{height:"18px",px:"3px"}}},Qe=r(81844);const et=(0,n.forwardRef)(((e,t)=>{let{session:r}=e;const{title:n,track:a,location:s,dateInfo:i,speakers:d}=r;return(0,o.jsxs)(l.Z,{sx:Xe.wrapper,ref:t,"data-testid":"sessionCalendarCardCompact",children:[(0,o.jsx)(c.Z,{variant:"h6",sx:[Qe.Z.ellipsis(2),Xe.title],title:n,children:n}),(null===i||void 0===i?void 0:i.eventTimeRange)&&(0,o.jsx)(c.Z,{variant:"overline2",sx:Xe.time,children:i.eventTimeRange}),(s||(null===a||void 0===a?void 0:a.title))&&(0,o.jsxs)(l.Z,{sx:Xe.badges,children:[s&&(0,o.jsx)($e.default,{label:s,size:"small",sx:Xe.chip}),(null===a||void 0===a?void 0:a.title)&&(0,o.jsx)($e.default,{label:a.title,size:"small",sx:Xe.chip})]}),(0,o.jsx)(Ke,{speakers:d,avatarSize:24,nameVariant:"subtitle4"})]})}));et.displayName="CompactView";var tt=(0,n.memo)(et),rt=r(47834),ot=r(10358),nt=r(49815),at=r(4106);var st={notShownInGrid:{alignSelf:"flex-start",display:"inline-flex",alignItems:"center",height:"20px",px:"8px",letterSpacing:"0.3px",...we},wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"8px",padding:"8px",width:"100%",minWidth:0,"& > *":{minWidth:0,maxWidth:"100%"}},title:{color:"text.primary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},info:{display:"flex",flexDirection:"column",gap:"6px",width:"100%"}};const it=(0,n.forwardRef)(((e,t)=>{let{session:r,notShownInGrid:n}=e;const{title:a,track:s,location:d,dateInfo:u,speakers:p}=r,{t:x}=(0,i.$G)();return(0,o.jsxs)(l.Z,{sx:st.wrapper,ref:t,"data-testid":"sessionCalendarCardDetailed",children:[(0,o.jsx)(nt.Z,{track:s,size:"small"}),n&&(0,o.jsx)(c.Z,{component:"span",variant:"overline2",sx:st.notShownInGrid,"data-testid":"sessionCalendarCardNotShownInGrid",children:x("session.not_shown_in_grid")}),(0,o.jsx)(c.Z,{variant:"h4",sx:st.title,title:a,children:a}),(0,o.jsxs)(l.Z,{sx:st.info,children:[(null===u||void 0===u?void 0:u.eventTimeRange)&&(0,o.jsx)(at.Z,{icon:(0,o.jsx)(rt.Z,{}),children:(0,o.jsx)("span",{children:u.eventTimeRange})}),u&&!u.isSameTimezone&&u.localTimeRange&&(0,o.jsx)(at.Z,{icon:(0,o.jsx)(rt.Z,{}),children:(0,o.jsx)("span",{children:u.localTimeRange})}),d&&(0,o.jsx)(at.Z,{icon:(0,o.jsx)(ot.Z,{}),children:(0,o.jsx)("span",{children:d})})]}),(0,o.jsx)(Ke,{speakers:p,avatarSize:32,nameVariant:"subtitle2"})]})}));it.displayName="DetailedView";var lt=(0,n.memo)(it),dt=r(42525);var ct={root:{display:"flex",position:"relative",overflow:"hidden",backgroundColor:"colors.white",cursor:"pointer",transition:"box-shadow .2s","&.sessionCalendarCard--compact":{width:"100%",boxShadow:"0 0 15px rgba(160, 160, 160, .1)","&:hover":{boxShadow:"0 10px 20px rgba(51, 51, 51, .15)"},["&.".concat(dt.Z.root)]:{borderRadius:"4px"},"& .sessionCalendarCard__scheduled":{padding:"2px",borderBottomLeftRadius:"4px"},"& .sessionCalendarCard__scheduledIcon":{fontSize:"10px"}},"&.sessionCalendarCard--detailed":{width:"100%",border:"1px solid",borderColor:"colors.borderGreyLight",borderLeft:0,["&.".concat(dt.Z.root)]:{borderRadius:"8px"},"& .sessionCalendarCard__scheduled":{width:"24px",height:"24px",borderBottomLeftRadius:"8px"},"& .sessionCalendarCard__scheduledIcon":{fontSize:"14px"}}},trackBar:{flexShrink:0,width:"4px",alignSelf:"stretch"},content:{position:"relative",display:"flex",flexGrow:1,minWidth:0},scheduled:{position:"absolute",top:0,right:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"colors.secondary"},scheduledIcon:{color:"colors.primary"}};const ut={compact:tt,detailed:lt},pt=(0,n.forwardRef)(((e,t)=>{let{session:r,view:n="compact",notShownInGrid:a,className:s,sx:i,...c}=e;var u;const p=ut[n],x=null===(u=r.track)||void 0===u?void 0:u.backgroundColor,{scheduled:h}=r;return(0,o.jsxs)(d.Z,{elevation:0,sx:[ct.root,...Array.isArray(i)?i:[i]],className:(0,Ve.N)(["sessionCalendarCard","sessionCalendarCard--".concat(n),s]," "),"data-testid":"sessionCalendarCard",ref:t,...c,children:[x&&(0,o.jsx)(l.Z,{sx:[ct.trackBar,{backgroundColor:x}],"data-testid":"sessionCalendarCardTrackBar"}),(0,o.jsxs)(l.Z,{sx:ct.content,children:[h&&(0,o.jsx)(l.Z,{className:"sessionCalendarCard__scheduled",sx:ct.scheduled,"data-testid":"sessionCalendarCardScheduled",children:(0,o.jsx)(Fe.Z,{className:"sessionCalendarCard__scheduledIcon",sx:ct.scheduledIcon})}),(0,o.jsx)(p,{session:r,notShownInGrid:a})]})]})}));pt.displayName="SessionCalendarCard";var xt=pt;var ht={card:{width:"100%","&.sessionCalendarCard--compact":{width:"100%"}}};var mt=e=>{let{session:t,onClick:r}=e;return(0,o.jsx)(xt,{session:t,view:"compact",sx:ht.card,onClick:r})};var vt={root:{display:"block",width:"100%",textAlign:"center",textTransform:"none",border:"1px dashed",borderColor:"var(--palette-colors-statusIncomingDark)",borderRadius:"4px",color:"var(--palette-colors-statusIncomingDark)",backgroundColor:"var(--palette-colors-statusIncomingLight)",px:"8px",py:"3px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",transition:"opacity .15s","&:hover":{opacity:.9}}};var gt=e=>{let{count:t,onClick:r}=e;const{t:n}=(0,i.$G)();return(0,o.jsx)(c.Z,{variant:"overline2",component:"button",type:"button",sx:vt.root,onClick:r,children:n("sessions.calendar.more_sessions",{count:t})})}
1,ft=r(5930),bt=r(68184),yt=r(39442);var wt=e=>{let{session:t,isNotShownInGrid:r=!1,onClick:n}=e;const{eventTimeRange:a,localTimeRange:s,showLocalTime:i}=(0,yt.Z)(t.start,t.end);return(0,o.jsx)(xt,{session:{...t,dateInfo:{eventTimeRange:a,localTimeRange:s,isSameTimezone:!i}},view:"detailed",notShownInGrid:r,onClick:n})};var jt={root:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",minHeight:46,px:"16px",borderRadius:"8px",color:"var(--palette-colors-white)"},count:{flexShrink:0}};var Zt=e=>{let{title:t,color:r,count:n}=e;const{t:a}=(0,i.$G)();return(0,o.jsxs)(l.Z,{sx:[jt.root,{backgroundColor:r||"var(--palette-text-secondary)"}],children:[(0,o.jsx)(c.Z,{variant:"h3",component:"span",noWrap:!0,children:t}),(0,o.jsx)(c.Z,{variant:"subtitle2",component:"span",sx:jt.count,children:a("sessions.calendar.sessions_count",{count:n})})]})};var Ct=e=>{let{tab:t,sessions:r,groups:n,hiddenSessionIds:a,onSelect:s}=e;const{t:d}=(0,i.$G)();if(!r.length)return(0,o.jsx)(bt.Z,{reason:"appliedFilters",title:d("sessions.calendar.no_sessions_found"),sx:{p:0,"& img":{width:180,maxWidth:180}}});const c=e=>(0,o.jsx)(wt,{session:e,isNotShownInGrid:a.has(e.id),onClick:()=>s(e.id)},e.id);return"track"===t?(0,o.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:"16px"},children:n.map((e=>{let[t,r]=e;var n,a;return(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(Zt,{title:t,color:null===(a=r[0])||void 0===a||null===(n=a.track)||void 0===n?void 0:n.backgroundColor,count:r.length}),(0,o.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:"12px",mt:"12px"},children:r.map(c)})]},t)}))}):(0,o.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:"12px"},children:r.map(c)})},St=r(83316),kt=r(59869),Mt=r(72291);var zt=e=>{let{tab:t,onTabChange:r}=e;const{t:n}=(0,i.$G)();return(0,o.jsxs)(Ge.Z,{variant:"segmented",fullWidth:!0,"aria-label":n("sessions.calendar.slot_grouping_label"),value:t,onChange:(e,t)=>
1t&&r(t),children:[(0,o.jsx)(Ae.Z,{value:"list",children:n("sessions.calendar.tab_list")}),(0,o.jsx)(Ae.Z,{value:"track",children:n("sessions.calendar.tab_by_track")})]})};var It={subheader:{display:"flex",flexDirection:"column",gap:"16px"}};var Tt=e=>{let{search:t,onSearchChange:r,tab:n,onTabChange:a}=e;const{t:s}=(0,i.$G)();return(0,o.jsxs)(l.Z,{sx:It.subheader,children:[(0,o.jsx)(zt,{tab:n,onTabChange:a}),(0,o.jsx)(Mt.Z,{value:t,onChange:e=>r(e.target.value),placeholder:s("common.search"),size:"small",fullWidth:!0,InputProps:{startAdornment:(0,o.jsx)(St.Z,{position:"start",children:(0,o.jsx)(kt.Z,{fontSize:"small"})})}})]})};const Et={sx:{p:"16px"}},Lt={sx:{p:"16px"}},_t={session:"sessions.session_list_view_header.session",exhibitor_event:"sessions.session_list_view_header.exhibitor_event",round_table:"sessions.session_list_view_header.round_table"};var Rt=e=>{let{open:t,onClose:r,appear:a,sessions:s,hiddenSessionIds:d,timezone:u,onSelectSession:p}=e;const{t:x}=(0,i.$G)(),{search:h,setSearch:m,tab:v,setTab:g,filtered:f,groups:b,hiddenIds:y}=((e,t)=>{const{t:r}
1=(0,i.$G)(),[o,a]=(0,n.useState)(""),[s,l]=(0,n.useState)("list"),d=(0,n.useMemo)((()=>{const t=o.trim().toLowerCase();return t?e.filter((e=>{var r,o;return!!(null!==(r=e.title)&&void 0!==r?r:"").toLowerCase().includes(t)||(null!==(o=e.speakers)&&void 0!==o?o:[]).some((e=>{var r;return(null!==(r=e.fullName)&&void 0!==r?r:"").toLowerCase().includes(t)}))})):e}),[e,o]),c=(0,n.useMemo)((()=>new Set(t)),[t]),u=(0,n.useMemo)((()=>(0,Ee.r2)(d,c)),[d,c]),p=(0,n.useMemo)((()=>{if("track"!==s)return[];const e=new Map;return d.forEach((t=>{var o;const n=(null===(o=t.track)||void 0===o?void 0:o.title)||r("sessions.calendar.no_track");var a;e.set(n,[...null!==(a=e.get(n))&&void 0!==a?a:[],t])})),[...e.entries()].map((e=>{let[t,r]=e;return[t,(0,Ee.r2)(r,c)]}))}),[d,s,r,c]);return{search:o,setSearch:a,tab:s,setTab:l,filtered:u,groups:p,hiddenIds:c}})(s,d),[w,j]=(0,n.useState)(t);t!==w&&(j(t),t&&(m(""),g("list")));const Z=(0,n.useMemo)((()=>(0,Ee.Rs)(s)),[s]),C=Z?((e,t,r)=>{const o=(0,Pe.Z)(e).tz(r),n=(0,Pe.Z)(t).tz(r);return"".concat(o.format("ddd, MMM D, HH:mm")," \u2013 ").concat(n.format("HH:mm"))})(Z.start,Z.end,u):"",S=d.length?x("sessions.calendar.slot_overlap_count",{total:s.length,hidden:d.length}):x("sessions.calendar.slot_sessions_count",{count:s.length}),k=(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(c.Z,{variant:"h4",children:C}),(0,o.jsx)(c.Z,{variant:"subtitle2",children:S})]}),M=(0,o.jsx)(Tt,{search:h,onSearchChange:m,tab:v,onTabChange:g});return(0,o.jsx)(ft.Z,{open:t,onClose:r,SlideProps:{appear:a},BackdropProps:{appear:a},title:k,subheader:M,subheaderProps:Lt,contentProps:Et,width:440,children:(0,o.jsx)(Ct,{tab:v,sessions:f,groups:b,hiddenSessionIds:y,onSelect:p})})},Gt=r(47080),At=r(6684),Pt=r(69615),Dt=r(80039),Nt=r(63863),Ht=r(35631),Wt=r(35773);var Bt=e=>{let{children:t,href:r}=e;return(0,o.jsx)(Wt.Z,{href:r,target:"_blank",children:t})};var Ot={root:{display:"flex",flexDirection:"column",gap:"16px",paddingTop:"16px"},status:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"8px","&:empty":{display:"none"}},description:{color:"var(--palette-text-secondary)","& > :first-child":{marginTop:0},"& > :last-child":{marginBottom:0}},sponsors:{}};var Ft=e=>{let{session:t,statusElement:r,bookedElement:n,locationElement:a,onOpenSponsors:s}=e;var i;const d=null!==(i=t.sponsors)&&void 0!==i?i:[];return(0,o.jsxs)(l.Z,{sx:Ot.root,children:[(0,o.jsx)(c.Z,{variant:"h4",children:t.title}),(0,o.jsxs)(l.Z,{className:"hide-if-empty",sx:Ot.status,children:[r,n]}),t.description&&(0,o.jsx)(c.Z,{variant:"body2",sx:[Ot.description,At.W0.dangerouslyHtml],dangerouslySetInnerHTML:{__html:(0,Pt.Z6)(t.description)}}),(0,o.jsx)(Nt.Z,{tags:t.tags}),(0,o.jsx)(Dt.Z,{view:"vertical",dateInfo:t.dateInfo,location:t.location,address:t.address,isOnDemand:t.isOnDemand,locationElement:a}),d.length>0&&(0,o.jsx)(Ht.Z,{sx:Ot.sponsors,sponsors:d,linkWrapper:Bt,titleVariant:"overline",maxRows:2,onShowMore:s})]})};var Vt={root:{display:"flex",flexDirection:"column",gap:"16px",paddingTop:"16px"},title:{borderRadius:"2px"},description:{borderRadius:"2px"},tags:{display:"flex",gap:"8px"},tag:{borderRadius:"2px"},metaRows:{display:"flex",flexDirection:"column",gap:"15px"},metaRow:{display:"flex",alignItems:"center",gap:"6px"},metaIcon:{borderRadius:"4px"},metaLine:{borderRadius:"2px"},sponsors:{display:"flex",flexDirection:"column",gap:"8px"},sponsorLogos:{display:"flex",gap:"8px"},sponsorLogo:{borderRadius:"4px"}};var $t=()=>(0,o.jsxs)(l.Z,{sx:Vt.root,children:[(0,o.jsx)(Gt.Z,{variant:"rectangular",width:292,height:29,sx:Vt.title}),(0,o.jsx)(Gt.Z,{variant:"rectangular",width:"100%",height:80,sx:Vt.description}),(0,o.jsx)(l.Z,{sx:Vt.tags,children:[0,1].map((e=>(0,o.jsx)(Gt.Z,{variant:"rectangular",width:60,height:28,sx:Vt.tag},e)))}),(0,o.jsx)(l.Z,{sx:Vt.metaRows,children:[0,1,2,3,4].map((e=>(0,o.jsxs)(l.Z,{sx:Vt.metaRow,children:[(0,o.jsx)(Gt.Z,{variant:"rectangular",width:16,height:16,sx:Vt.metaIcon}),(0,o.jsx)(Gt.Z,{variant:"rectangular",width:198,height:8,sx:Vt.metaLine})]},e)))}),(0,o.jsxs)(l.Z,{sx:Vt.sponsors,children:[(0,o.jsx)(Gt.Z,{variant:"rectangular",width:78,height:14,sx:Vt.title}),(0,o.jsx)(l.Z,{sx:Vt.sponsorLogos,children:[0,1,2,3,4].map((e=>(0,o.jsx)(Gt.Z,{variant:"rectangular",width:40,height:40,sx:Vt.sponsorLogo},e)))})]})]}),Yt=r(91200),Ut=r(60628);var qt={root:{position:"relative"},overlay:{position:"absolute",left:"16px",right:0,bottom:0,transform:"translateY(50%)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",pointerEvents:"none","& > *":{pointerEvents:"auto"}},price:{borderRadius:"4px 0 0 4px",border:"0.5px solid var(--palette-colors-borderGreyLight)"},avatars:{display:"flex"},avatar:{marginRight:"-8px"}};var Jt=e=>{let{imageSrc:t,title:r,track:n,isLive:a,participantsElement:s,priceLabel:i}=e;return(0,o.jsxs)(l.Z,{sx:qt.root,children:[(0,o.jsx)(Ut.Z,{imageSrc:t,title:r,track:n,isLive:a}),(s||i)&&(0,o.jsxs)(l.Z,{sx:qt.overlay,children:[(0,o.jsx)(l.Z,{children:s}),i&&(0,o.jsx)(Yt.Z,{label:i,color:"neutral",size:"large",sx:qt.price})]})]})};var Kt={wrapper:{width:"100%",aspectRatio:"16 / 9"},skeleton:{width:"100%",height:"100%"}};const Xt=e=>{let{sx:t}=e;return(0,o.jsx)(l.Z,{"data-styleid":"sessionHeaderSkeleton",sx:[Kt.wrapper,...Array.isArray(t)?t:[t]],children:(0,o.jsx)(Gt.Z,{variant:"rectangular",sx:Kt.skeleton})})};var Qt=(0,n.memo)(Xt);var er=()=>(0,o.jsxs)(l.Z,{sx:qt.root,children:[(0,o.jsx)(Qt,{}),(0,o.jsx)(l.Z,{sx:qt.overlay,children:(0,o.jsx)(l.Z,{sx:qt.avatars,children:[0,1,2,3].map((e=>(0,o.jsx)(Gt.Z,{variant:"circular",width:40,height:40,sx:qt.avatar},e)))})})]}),tr=r(79965),rr=r(93209);var or=e=>{let{sessionId:t,scheduleElement:r,joinElement:n,watchNowElement:a,ratingElement:s}=e;const{t:l}=(0,i.$G)();return(0,o.jsxs)(o.Fragment,{children:[r,n,a,s,(0,o.jsx)(Wt.Z,{href:"/sessions/".concat(t),children:(0,o.jsx)(tr.Z,{variant:"outlined",color:"neutral",endIcon:(0,o.jsx)(rr.Z,{}),fullWidth:!0,children:l("sessions.calendar.view_full_details")})})]})};var nr=()=>(0,o.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:[0,1].map((e=>(0,o.jsx)(Gt.Z,{"data-testid":"slotSessionFooterButtonSkeleton",variant:"rectangular",width:"100%",height:42,sx:{borderRadius:"3px"}},e)))}),ar=r(2958);var sr=e=>{let{label:t,onClick:r}=e;return(0,o.jsx)(tr.Z,{variant:"text",color:"inherit",onClick:r,startIcon:(0,o.jsx)(ar.Z,{}),children:t})};var ir=r(73647),lr=r(811),dr=r(90736),cr=r(4218),ur=r(32402),pr=r(43462),xr=r(575),hr=r(60978),mr=r(89088),vr=r(53663),gr=r(13411),fr=r(57015),br=r(86451);const yr=(e,t)=>
1!!e&&(Number(e.price)>0&&!e.in_basket&&t),wr={preparedSession:null,isLive:!1,priceLabel:null,statusElement:null,bookedElement:null,participantsElement:null,locationElement:null,scheduleElement:null,joinElement:null,watchNowElement:null,ratingElement:null};var jr=r(63941);var Zr=e=>{let{open:t,onClose:r,appear:a,sessionId:l,onBack:d,onOpenSponsors:u}=e;const{t:h}=(0,i.$G)(),{session:v,isLoading:g,isError:f}=(e=>{const t=(0,s.TL5)(),r=(0,s.CGy)((t=>(0,x.CY)(t,e))),[o,a]=(0,n.useState)(null===r),[i,l]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{let o=!0;return null===r&&a(!0),l(!1),t((0,p.LX)(e,{force:!0})).then((e=>{o&&(e||l(!0),a(!1))})),()=>{o=!1}}),[t,e]),{session:r,isLoading:o,isError:i}})(l),y=(e=>{var t;const{t:r}=(0,i.$G)(),a=(0,s.CGy)((t=>{var r;return(0,x.FP)(t,null!==(r=null===e||void 0===e?void 0:e.id)&&void 0!==r?r:"")}))||Boolean(null===e||void 0===e?void 0:e.scheduled),{currency:l}=(0,s.CGy)(s.WD2);var d,c;const{type:u=null,time:p=0}=(0,dr.Z)(null!==(d=null===e||void 0===e?void 0:e.start)&&void 0!==d?d:0,null!==(c=null===e||void 0===e?void 0:e.end)&&void 0!==c?c:0);var h,v;const{eventDateEnd:g,eventDateStart:f,eventTimeEnd:b,eventTimeRange:y,eventTimeStart:w,isAnotherStartDay:j,isSameDate:Z,showLocalTime:C,localDateEnd:S,localDateStart:k,localTimeEnd:M,localTimeRange:z,localTimeStart:I}=(0,yt.Z)(null!==(h=null===e||void 0===e?void 0:e.start)&&void 0!==h?h:0,null!==(v=null===e||void 0===e?void 0:e.end)&&void 0!==v?v:0),T=(0,n.useMemo)((()=>e?(0,cr.v5)(e):null),[e]),E=(0,n.useMemo)((()=>{if(!e)return null;var t,r,n;const a=[...new Map([...null!==(t=e.speakers)&&void 0!==t?t:[],...null!==(r=e.moderators)&&void 0!==r?r:[],...null!==(n=e.contacts)&&void 0!==n?n:[]].map((e=>[e.id,(0,cr.Pw)(e)]))).values()];return a.length?(0,o.jsx)(ir.Z,{size:40,participants:a.map((e=>({participant:e,actions:[(0,o.jsx)(fr.Z,{id:e.id,ownerType:"visitor"},"meetButton"),(0,o.jsx)(br.default,{id:e.id,ownerType:"visitor"},"messageButton")],favoriteElement:(0,o.jsx)(gr.default,{id:e.id,ownerType:"visitor"})})))}):null}),[e]);if(!e||!T)return wr;const L=3===e.online_type,_=u===dr.p.Live,R=e.price?(0,m.cS)({value:e.price,currency:l}):0,G=R?String(R):null,A=Boolean(null===(t=e.stands)||void 0===t?void 0:t.length),P=A||Boolean(e.location),D=L&&_,N=u!==dr.p.Past&&!L&&!(e.price&&a),H=Boolean(e.online)&&!L,W={...T,dateInfo:{eventDateEnd:g,eventDateStart:f,eventTimeEnd:b,eventTimeStart:w,isAnotherStartDay:j,isSameDate:Z,isSameTimezone:!C,localDateEnd:S,localDateStart:k,localTimeEnd:M,localTimeStart:I,localTimeRange:z,eventTimeRange:y},language:r(e.language||"site_builder.session_wrapper.english")};let B=null;return P&&(B=A?(0,o.jsx)(hr.Z,{stands:e.stands||[],isOnlineType:W.isOnline,targetId:e.external_id}):(0,o.jsx)(xr.Z,{location:W.location,isOtherLocation:"other"===e.locationId,locationUrl:e.locationUrl})),{preparedSession:W,isLive:_,priceLabel:G,statusElement:(0,o.jsx)(ur.fK,{session:e}),bookedElement:yr(e,a)?(0,o.jsx)(lr.Z,{status:"approved",icon:"approved",label:r("common.booked")}):null,participantsElement:E,locationElement:B,scheduleElement:N?(0,o.jsx)(pr.Z,{session:e}):null,joinElement:H?(0,o.jsx)(vr.Z,{type:u,time:p,schedule:e}):null,watchNowElement:D?(0,o.jsx)(mr.Z,{type:u,id:Number(e.id)}):null,ratingElement:(0,o.jsx)(ur.oI,{session:e})}})(v),w=(e=>(null===e||void 0===e?void 0:e.type)===jr.n?"round_table":(0,b.K)(null===e||void 0===e?void 0:e.exhibitor)?"exhibitor_event":"session")(v);let j;j=d?(0,o.jsx)(sr,{label:h("sessions.calendar.back_to_list"),onClick:d}):g?(0,o.jsx)(Gt.Z,{"data-testid":"slotSessionTitleSkeleton",variant:"rectangular",width:96,height:24,sx:{borderRadius:"2px"}}):(0,o.jsx)(c.Z,{variant:"h4",children:h(_t[w])});let Z,C=null,S=null;return g?(C=(0,o.jsx)(er,{}),S=(0,o.jsx)(nr,{}),Z=(0,o.jsx)($t,{})):!f&&v&&y.preparedSession?(C=(0,o.jsx)(Jt,{imageSrc:y.preparedSession.imageSrc,title:y.preparedSession.title,track:y.preparedSession.track,isLive:y.isLive,participantsElement:y.participantsElement,priceLabel:y.priceLabel}),S=(0,o.jsx)(or,{sessionId:v.id,scheduleElement:y.scheduleElement,joinElement:y.joinElement,watchNowElement:y.watchNowElement,ratingElement:y.ratingElement}),Z=(0,o.jsx)(Ft,{session:y.preparedSession,statusElement:y.statusElement,bookedElement:y.bookedElement,locationElement:y.locationElement,onOpenSponsors:()=>{var e;return u(null!==(e=v.sponsors)&&void 0!==e?e:[],w)}})):Z=(0,o.jsx)(c.Z,{sx:{mt:"24px"},children:h("sessions.calendar.session_load_error")}),(0,o.jsx)(ft.Z,{open:t,onClose:r,SlideProps:{appear:a},BackdropProps:{appear:a},title:j,headerProps:{sx:{alignItems:"center"}}
1,titleProps:{sx:{display:"flex",alignItems:"center"}},subheader:C,subheaderProps:{sx:{p:0,position:"relative",zIndex:1}},contentProps:Et,footer:S,footerProps:{sx:{display:"flex",flexDirection:"column",gap:"8px"}},width:440,children:Z})},Cr=r(25291);const Sr=e=>{const{exhibitor:t,exhibitor_id:r}=e;let o=e.website||null;return!e.website&&r&&(o={pathname:"/exhibitor/".concat((null===t||void 0===t?void 0:t.url)||r)}),{id:"".concat(e.id),title:e.title||(null===t||void 0===t?void 0:t.name)||"",imageSrc:e.imageURL||(null===t||void 0===t?void 0:t.logo)||null,url:o,address:(0,Ve.N)([null===t||void 0===t?void 0:t.city,null===t||void 0===t?void 0:t.region,null===t||void 0===t?void 0:t.country],", "),halls:(n=null===t||void 0===t?void 0:t.stands,(null!==n&&void 0!==n?n:[]).flatMap((e=>{let{hall:t,stand:r,stands:o}=e;return Array.isArray(o)&&o.length?o.map((e=>{let{name:r}=e;return{hall:null!==t&&void 0!==t?t:"",stand:null!==r&&void 0!==r?r:""}})):[{hall:null!==t&&void 0!==t?t:"",stand:null!==r&&void 0!==r?r:""}]})))};var n};var kr=e=>{let{sponsors:t}=e;return(0,o.jsx)(he.Z,{spacing:"16px",children:t.map((e=>(0,o.jsx)(Cr.default,{exhibitor:Sr(e),view:"list",size:"small",linkWrapper:Bt},e.id)))})};var Mr=e=>{let{open:t,onClose:r,appear:n,sponsors:a,kind:s,onBack:l}=e;const{t:d}=(0,i.$G)();return(0,o.jsx)(ft.Z,{open:t,onClose:r,SlideProps:{appear:n},BackdropProps:{appear:n},title:(0,o.jsx)(sr,{label:d("sessions.calendar.back_to_session",{kind:s}),onClick:l}),headerProps:{sx:{alignItems:"center"}},titleProps:{sx:{display:"flex",alignItems:"center"}},contentProps:Et,width:440,children:(0,o.jsx)(kr,{sponsors:a})})};var zr=e=>{let{open:t,onClose:r,sessions:a,hiddenSessionIds:s,timezone:i,initialSessionId:l}=e;const[d,c]=(0,n.useState)(l?"detail":"list"),[u,p]=(0,n.useState)(null!==l&&void 0!==l?l:null),[x,h]=(0,n.useState)([]),[m,v]=(0,n.useState)("session"),[g,f]=(0,n.useState)(!1),[b,y]=(0,n.useState)(t),w=(0,n.useRef)(!1);t!==b&&(y(t),t&&(w.current=!0,l?(c("detail"),p(l),f(!1)):(c("list"),p(null)))),(0,n.useEffect)((()=>{w.current=!1}));const j=w.current;return{list:(0,o.jsx)(Rt,{open:t,onClose:r,appear:j,sessions:a,hiddenSessionIds:s,timezone:i,onSelectSession:e=>{p(e),c("detail"),f(!0)}}),detail:(0,o.jsx)(Zr,{open:t,onClose:r,appear:j,sessionId:null!==u&&void 0!==u?u:"",onBack:g?()=>c("list"):void 0,onOpenSponsors:(e,t)=>{h(e),v(t),c("sponsors")}}),sponsors:(0,o.jsx)(Mr,{open:t,onClose:r,appear:j,sponsors:x,kind:m,onBack:()=>c("detail")})}[d]};const Ir=e=>{try{var t;var r;return null!==(r=null===(t=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}).formatToParts(new Date).find((e=>"timeZoneName"===e.type)))||void 0===t?void 0:t.value)&&void 0!==r?r:e}catch(o){return e}},Tr={border:"1px solid var(--palette-colors-borderGreyLight)",borderRadius:"8px",minHeight:{md:"360px",xs:"240px"}};var Er={calendar:{maxHeight:"70vh"},initialLoader:{...Tr,display:"flex",alignItems:"center",justifyContent:"center"},calendarWrap:{position:"relative"},emptyState:{...Tr,justifyContent:"center"},fetchOverlay:{position:"absolute",inset:0,zIndex:ne+1,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(2px)",backgroundColor:"rgba(var(--palette-common-backgroundChannel) / 0.4)"}};var Lr=()=>{const e=(0,s.TL5)(),t=(0,s.CGy)(x.WA),{from:r,to:a}=(0,s.CGy)(x.Bp),i=(0,s.CGy)(x.r0),d=(0,s.CGy)(x.ZH),c=(0,s.CGy)(x.Yd),u=(0,s.CGy)(Te.zH)||"UTC",h=(0,s.CGy)(x.nA),[m,v]=(0,n.useState)([]),[g,f]=(0,n.useState)([]),[b,y]=(0,n.useState)(null),[w,j]=(0,n.useState)(!1),Z=(0,V.Z)(),S=(0,F.default)(Z.breakpoints.down("sm"),{noSsr:!0});(0,n.useEffect)((()=>{const{subView:r}=C();r?r!==t&&e((0,p.FY)(r)):S&&"day"!==t&&e((0,p.FY)("day"))}),[]),(0,n.useEffect)((()=>{r&&a||e((0,p.xJ)())}),[e]);const M=(0,n.useMemo)((()=>i.map((e=>(0,Ee.tL)(e,u)))),[i,u]),z=(0,n.useMemo)((()=>m.map((e=>M.find((t=>t.id===e)))).filter((e=>Boolean(e)))),[M,m]),I=(0,n.useMemo)((()=>r&&a?"day"===t?[d||(0,Ee.tu)(r,a)[0]]:(0,Ee.tu)(r,a):[]),[r,a,t,d]),T=(0,n.useMemo)((()=>"day"===t&&I.length?M.filter((e=>((e,t,r)=>(0,Pe.Z)(e).tz(r).isSame((0,Pe.Z)(t).tz(r),"day"))(e.start,I[0],u))):M),[M,t,I,u]),{startMinute:E,endMinute:L}=(0,n.useMemo)((()=>(0,Ee.Ak)(T,u)),[T,u]);if(!I.length)return c?(0,o.jsx)(l.Z,{sx:Er.initialLoader,"data-testid":"calendarInitialLoader",children:(0,o.jsx)(O.Z,{color:"secondary"})}):null;return h&&!T.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(We,{}),(0,o.jsx)(k.Z,{isFilteredResult:!0,sx:Er.emptyState})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(We,{}),(0,o.jsxs)(l.Z,{sx:Er.calendarWrap,children:[(0,o.jsx)(Ie,{days:I,timezone:u,timezoneLabel:Ir(u),startMinute:E,endMinute:L,maxLanes:S?Le.mobile:Le[t],events:T,compareEvents:Ee.zW,onDayHeaderClick:"week"===t?t=>e((0,p.EM)(t)):void 0,renderEvent:e=>(0,o.jsx)(mt,{session:e,onClick:()=>(e=>{y(e.id),f([]),j(!0)})(e)}),renderDayHeader:(e,t)=>(0,o.jsx)(Oe,{day:e,isToday:t.isToday,events:t.events,timezone:t.timezone}),renderMoreTrigger:(e,t)=>(0,o.jsx)(gt,{count:e.length,onClick:()=>((e,t)=>{y(null),v(e.map((e=>e.id))),f(t.map((e=>e.id))),j(!0)})(t.events,e)}),sx:Er.calendar}),c&&(0,o.jsx)(l.Z,{sx:Er.fetchOverlay,"data-testid":"calendarFetchOverlay",children:(0,o.jsx)(O.Z,{color:"secondary"})})]}),(0,o.jsx)(zr,{open:w,onClose:()=>j(!1),sessions:z,hiddenSessionIds:g,timezone:u,initialSessionId:null!==b&&void 0!==b?b:void 0})]})};const _r={wrapper:{p:3,overflow:"visible"}},Rr={overflow:"visible"},Gr=["calendar","list","cards"];var Ar=e=>
1{let{filterTypesToExclude:t,hideButtonForEmpty:r,isRoundTable:g}=e;const{t:f}=(0,i.$G)(),b=(0,s.TL5)(),y=(0,s.CGy)(x.ch),w=(0,s.CGy)(x.T6),{sessionsSelectedType:j,viewVariant:L,sessions:_,isFetching:R}=(0,s.CGy)(x.Rx),G=(0,s.CGy)(x.Sx),A=g?Gr.filter((e=>"calendar"!==e)):Gr,P=g&&"calendar"===L?"list":L,{sessions:{session_view:D}={}}=(0,s.CGy)(s.Hc0)||{},N=(null===_||void 0===_?void 0:_[j])||{},{visitors:H,exhibitors:O}=(0,n.useMemo)((()=>({visitors:(0,m.CF)(w),exhibitors:(0,m.FJ)(w)})),[w]),F=(0,n.useMemo)((()=>w.map(v.n)),[w]);(0,h.Z)(H),(0,M.Z)({visitors:H,exhibitors:O}),(0,n.useEffect)((()=>{const e=(e=>{const{view:t}=C();return t||e&&Z[e]||"list"})(D);e!==L&&b((0,p.Gq)(e))}),[D,b]);const V="calendar"===P?G:(null===N||void 0===N?void 0:N.total)||0,$=(null===w||void 0===w?void 0:w.length)||0,Y=V>$,U=Boolean(null===N||void 0===N?void 0:N.hasLoaded)&&!R&&!$;return(0,o.jsxs)(d.Z,{variant:"outlined",sx:_r.wrapper,"data-testid":"sessionsBlock",children:[(0,o.jsx)(z.Z,{sx:{mb:2}}),(0,o.jsx)(I.Z,{typesToExclude:t}),(0,o.jsxs)(l.Z,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",my:2,children:[(0,o.jsxs)(c.Z,{variant:"h2","data-styleid":"sessions-block-header",children:[(0,o.jsx)("span",{children:f(g?"sessions.sessions_content.round_tables":"common.sessions")})," ","(",V,")"]}),(0,o.jsx)(E.Z,{callback:e=>{b((0,p.Gq)(e)),g||S({view:e});"calendar"===P!==("calendar"===e)&&b("calendar"===e?(0,p.xJ)():(0,p.RI)({sessionsType:j,force:!0}))},selectedType:P,types:A})]}),(0,o.jsx)(W,{children:"calendar"===P?(0,o.jsx)(Lr,{}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.Z,{dataLength:$,next:()=>{if(R)return;const e=y+1;(0,a.dC)((()=>{b((0,p.oW)(e)),b((0,p.RI)({sessionsType:j,currentPage:e,force:!0,reset:!1}))}))},hasMore:Y,loader:(0,o.jsx)(T.Z,{sx:{mt:3}}),style:Rr,scrollThreshold:.6,children:(0,o.jsx)(B.Z,{viewVariant:P,sessions:F})}),U&&(0,o.jsx)(k.Z,{isFilteredResult:Boolean(null===N||void 0===N?void 0:N.loadedWithFilters),hideResetButton:r})]})})]})}},7628:function(e,t,r){r.d(t,{Z:function(){return c}});var o=r(57437),n=r(55788),a=r(14069),s=r(9125),i=r(83828),l=r(86173),d=r(68184);var c=e=>{let{isFilteredResult:t,hideResetButton:r,sx:c}=e;const{t:u}=(0,n.$G)(),p=(0,a.TL5)(),{areApplied:x}=(0,a.CGy)(s.B0),{sessionsSelectedType:h}=(0,a.CGy)(l.Rx),m=x&&!r,v=t?{title:u("common.no_results_found"),subtitle:u("common.we_couldnt_find_any_results"),reason:"appliedFilters",...m&&{button:{children:u("common.clear_filters"),onClick:()=>p((0,i.aw)(h))}}}:{title:u("sessions.sessions_have_not_been_added"),reason:"noContent"};return(0,o.jsx)(d.Z,{"data-testid":"sessionsEmptyState",sx:c,...v})}},7394:function(e,t,r){var o=r(57437),n=r(21170),a=r(41159);const s={wrapper:{display:"flex",borderRadius:"3px",overflow:"hidden",height:"min-content"},viewVariantToggler:{position:"relative",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",p:0,backgroundColor:"colors.statusNeutralLight",color:"colors.iconSecondary",cursor:"pointer","& path":{fill:e=>e.palette.colors.iconSecondary},"&:not(:last-of-type):after":{content:'""',position:"absolute",height:"70%",width:"1px",right:0,backgroundColor:"colors.borderGreyLight"}},activeViewVariant:{zIndex:1,backgroundColor:"colors.brand1",color:"colors.white",outline:"1px solid",outlineColor:"colors.statusNeutralLight","& path":{fill:e=>e.palette.colors.white},"&:after":{display:"none"}}},i={calendar:a.wr,list:a.Bv,shortList:a.wz,cards:a.S1,table:a.HA};t.Z=e=>{let{callback:t,selectedType:r,types:a,sx:l}=e;if(!a.length)return null;const d=e=>{r!==e&&t(e)};return(0,o.jsx)(n.Z,{sx:[s.wrapper,...Array.isArray(l)?l:[l]],"data-testid":"viewToggler",children:a.map((e=>{const t=i[e];return(0,o.jsx)(n.Z,{sx:[s.viewVariantToggler,r===e&&s.activeViewVariant],onClick:d.bind(null,e),"data-testid":"".concat(e,"Toggler"),"data-tour":"".concat(e,"-toggler"),children:(0,o.jsx)(t,{color:r===e?"colors.white":"colors.statusNeutralLight"})},e)}))})}},5930:function(e,t,r){var o=r(57437),n=r(2265),a=r(3254),s=r(21170),i=r(64119),l=r(16210),d=r(77305),c=r(44134);const u=(0,n.forwardRef)(((e,t)=>{const{title:r,titleProps:a,headerProps:s,closeIconProps:l,subheader:d,subheaderProps:u,contentProps:b,children:y,footer:w,footerProps:j,width:Z,anchor:C="right",onClose:S,style:k,...M}=(0,i.Z)({props:e,name:"Slideout"}),z="number"===typeof Z?"".concat(Z,"px"):Z,I=(0,n.useMemo)((()=>(0,c.w)()),[]);var T;const E=r?null!==(T=null===a||void 0===a?void 0:a.id)&&void 0!==T?T:"slideout-title-".concat(I
1):void 0;return(0,o.jsxs)(p,{ref:t,anchor:C,onClose:S,"data-styleid":"slideout","aria-labelledby":r?E:void 0,style:{...z?{"--Slideout-width":z}:{},...k},...M,children:[(0,o.jsxs)(x,{...s,children:[r&&(0,o.jsx)(h,{...a,id:E,children:r}),(0,o.jsx)(m,{onClose:S,...l})]}),d&&(0,o.jsx)(v,{...u,children:d}),(0,o.jsx)(g,{...b,children:y}),w&&(0,o.jsx)(f,{...j,children:w})]})}));u.displayName="Slideout";const p=(0,l.ZP)(a.ZP,{name:"Slideout",slot:"root"})({}),x=(0,l.ZP)(s.Z,{name:"Slideout",slot:"header"})({}),h=(0,l.ZP)(s.Z,{name:"Slideout",slot:"title"})({}),m=(0,l.ZP)(d.Z,{name:"Slideout",slot:"close"})({}),v=(0,l.ZP)(s.Z,{name:"Slideout",slot:"subheader"})({}),g=(0,l.ZP)(s.Z,{name:"Slideout",slot:"content"})({}),f=(0,l.ZP)(s.Z,{name:"Slideout",slot:"footer"})({});t.Z=u},6986:function(e,t,r){r.d(t,{Z:function(){return u}});var o=r(57437),n=r(2265),a=r(21170),s=r(38378),i=r(80110);var l=(e,t,r)=>{if(e){return("string"===typeof t?t:null)===r?null:r}const o=Array.isArray(t)?t:[];return o.includes(r)?o.filter((e=>e!==r)):[...o,r]},d=r(2199);const c=(0,n.forwardRef)(((e,t)=>{let{value:r,onChange:c,exclusive:u=!0,variant:p="bordered",size:x,fullWidth:h,disabled:m,children:v,className:g,sx:f=[],...b}=e;const y=(0,n.useMemo)((()=>({value:null!==r&&void 0!==r?r:u?null:[],exclusive:u,onChange:(e,t)=>
1{c&&c(e,l(u,r,t))},disabled:m,size:x})),[r,u,c,m,x]);return(0,o.jsx)(s.Z.Provider,{value:y,children:(0,o.jsx)(a.Z,{ref:t,role:"group",className:[i.z.root,g].filter(Boolean).join(" "),"data-variant":p,"data-full-width":h?"true":void 0,sx:[d.Z.group,...Array.isArray(f)?f:[f]],...b,children:v})})}));c.displayName="ButtonGroupToggle";var u=c},38378:function(e,t,r){const o=(0,r(2265).createContext)(void 0);o.displayName="ButtonGroupToggleContext",t.Z=o},80110:function(e,t,r){r.d(t,{z:function(){return o}});const o=(0,r(94143).Z)("ButtonGroupToggle",["root","button","startIcon","endIcon","label"])},73206:function(e,t,r){r.d(t,{Z:function(){return x}});var o=r(57437),n=r(2265),a=r(16596),s=r(46387),i=r(38378);var l=()=>(0,n.useContext)(i.Z);var d=(e,t)=>!!e&&(e.exclusive?e.value===t:Array.isArray(e.value)&&e.value.includes(t)),c=r(80110),u=r(2199);const p=(0,n.forwardRef)(((e,t)=>{let{value:r,selected:n,color:i="white",size:p,compact:x=!1,startIcon:h,endIcon:m,children:v,disabled:g,onClick:f,className:b,sx:y=[],...w}=e;const j=l(),Z=null!==n&&void 0!==n?n:d(j,r),C=g||(null===j||void 0===j?void 0:j.disabled);var S;const k=null!==(S=null!==p&&void 0!==p?p:null===j||void 0===j?void 0:j.size)&&void 0!==S?S:"medium";return(0,o.jsxs)(a.Z,{ref:t,className:[c.z.button,b].filter(Boolean).join(" "),"data-color":i,"data-size":k,"data-compact":x?"true":void 0,"aria-pressed":Z,disabled:C,onClick:e=>{null===f||void 0===f||f(e),null===j||void 0===j||j.onChange(e,r)},sx:[u.Z.button,...Array.isArray(y)?y:[y]],...w,children:[h&&(0,o.jsx)("span",{className:c.z.startIcon,children:h}),v&&(0,o.jsx)(s.Z,{variant:"button2",component:"span",className:c.z.label,noWrap:!0,children:v}),m&&(0,o.jsx)("span",{className:c.z.endIcon,children:m})]})}));p.displayName="ButtonGroupToggleButton";var x=p},2199:function(e,t,r){var o=r(80110);const n={group:{display:"inline-flex",alignItems:"center",'&[data-variant="segmented"]':{gap:"4px",p:"4px",borderRadius:"8px",bgcolor:"var(--palette-colors-backgroundGrey)"},['&[data-variant="segmented"] .'.concat(o.z.button,'[data-size="small"]')]:{height:"24px"},['&[data-variant="segmented"] .'.concat(o.z.button,'[data-size="medium"]')]:{height:"34px"},['&[data-variant="segmented"] .'.concat(o.z.button,'[data-size="large"]')]:{height:"34px"},'&[data-variant="bordered"]':{borderRadius:"8px",overflow:"hidden",border:"1px solid var(--palette-colors-borderGreyLight)"},['&[data-variant="bordered"] .'.concat(o.z.button)]:{borderRadius:0},['&[data-variant="bordered"] .'.concat(o.z.button,'[data-size="small"]')]:{height:"30px"},['&[data-variant="bordered"] .'.concat(o.z.button,'[data-size="medium"]')]:{height:"40px"},['&[data-variant="bordered"] .'.concat(o.z.button,'[data-size="large"]')]:{height:"40px"},['&[data-variant="bordered"] .'.concat(o.z.button,":not(:last-of-type)")]:{borderRight:"1px solid var(--palette-colors-borderGreyLight)"},['&[data-variant="bordered"] .'.concat(o.z.button,':not([aria-pressed="true"]):hover')]:{bgcolor:"var(--palette-colors-backgroundGrey)"},['&[data-variant="bordered"] .'.concat(o.z.button,'[data-color="white"][aria-pressed="true"]:not(.Mui-disabled)')]:{bgcolor:"var(--palette-colors-backgroundGrey)",boxShadow:"none"},'&[data-full-width="true"]':{display:"flex",width:"100%"},['&[data-full-width="true"] .'.concat(o.z.button)]:{flex:1}},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",color:"var(--palette-colors-textPrimary)",whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease",'&[data-size="small"]':{p:"7px 16px",height:"32px",["& .".concat(o.z.startIcon," > *:nth-of-type(1), & .").concat(o.z.endIcon," > *:nth-of-type(1)")]:{fontSize:"16px"}},'&[data-size="medium"]':{p:"11px 24px",height:"42px"},'&[data-size="large"]':{p:"11px 24px",height:"42px"},'&[data-compact="true"][data-size="small"]':{px:"8px"},'&[data-compact="true"][data-size="medium"]':{px:"12px"},'&[data-compact="true"][data-size="large"]':{px:"12px"},["& .".concat(o.z.startIcon,", & .").concat(o.z.endIcon)]:{display:"inline-flex",flexShrink:0,"& > *:nth-of-type(1)":{fontSize:"18px"}},["& .".concat(o.z.label)]:{minWidth:0,"& svg":{display:"block"}},'&[data-color="white"]:not([aria-pressed="true"]):hover':{bgcolor:"var(--palette-colors-backgroundGreyLight)"},'&[data-color="white"][aria-pressed="true"]:not(.Mui-disabled)':{bgcolor:"var(--palette-colors-white)",boxShadow:"0px 0px 15px 0px rgba(160, 160, 160, 0.10)"},'&[data-color="info"][aria-pressed="true"]:not(.Mui-disabled)':{bgcolor:"var(--palette-info-main)",color:"var(--palette-colors-white)"},['&&[data-color="info"][aria-pressed="false"]:not(.Mui-disabled) .'.concat(o.z.startIcon,', &&[data-color="info"][aria-pressed="false"]:not(.Mui-disabled) .').concat(o.z.endIcon)]:{color:"var(--palette-info-main)"},'&[data-color="verified"][aria-pressed="true"]:not(.Mui-disabled)':{bgcolor:"var(--palette-colors-statusVerified)",color:"var(--palette-colors-white)"},['&&[data-color="verified"][aria-pressed="false"]:not(.Mui-disabled) .'.concat(o.z.startIcon,', &&[data-color="verified"][aria-pressed="false"]:not(.Mui-disabled) .').concat(o.z.endIcon)]:{color:"var(--palette-colors-statusVerified)"},"&.Mui-focusVisible":{outline:"1px solid var(--palette-colors-borderGrey)",outlineOffset:"-2px"},"&.Mui-disabled":{opacity:.8,bgcolor:"var(--palette-colors-statusNeutralLight)",color:"var(--palette-colors-statusNeutralDark)"}}};t.Z=n}}]);
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.