1import{b as F,h as $,e as x,r as u,a2 as C,j as t,U as R,s as T,v,g as o,f as y,V as k,aa as f,y as _}from"./index-Tiw4izbZ.js";import{m as I}from"./react-error-boundary-D1H7mSgt.js";import{L as N,S as L,E as A}from"./Styles-Cyuoy5pv.js";import{C as S}from"./Card-D55mFWOx.js";import{a as b,E as D}from"./404-C0x7CMot.js";import"./StatusWrapper-hulzzCnv.js";import"./Styles-CUydCnbV.js";import"./Avatar-wWBIScaD.js";import"./Styles-Bgq9EN57.js";import"./Info-Drvl-8ry.js";import"./navigation-Bf3XyAFS.js";import"./Icon-49-T9Xkf.js";import"./Checkbox-CRJw8e3S.js";import"./FileType-DQYfODyh.js";import"./PrograssBar-845fnGgm.js";import"./PrograssBar2-CkE48itS.js";import"./Badge-DSx3_LL1.js";import"./Flex-CF2x7fBn.js";import{P as H}from"./PageTitle-OFMDz0EG.js";import"./Form-Cc4Gd6V3.js";import"./Live-3Rju4GNS.js";import"./Text-CBH2Yt1s.js";import"./index-CjN5q58W.js";import"./SocialMedia-CeJCeYV8.js";import"./ResourcesSimplified-BOeVDSX2.js";import"./index-DHzECjCT.js";import"./onClickOutside-Clhhb2G4.js";import"./usePopperHook-Cr2DXBkC.js";import"./useNavItemTitle-DNyW5UfR.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:"58bf95d86c745a632813342779c71c00d275fc26"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="2e4c0f26-d085-47d1-91d7-def075e7a332",e._sentryDebugIdIdentifier="sentry-dbid-2e4c0f26-d085-47d1-91d7-def075e7a332")}catch{}})();const U=e=>({type:"CATEGORIES_FETCH_SUCCESS",payload:e}),O=(e,r)=>{switch(r.type){case"FETCH_INIT":return{...e,status:"PENDING"};case"FETCH_SUCCESS":return{...e,status:"SUCCESS"};case"FETCH_FAILURE":return{...e,status:"ERROR",error:r.payload};default:throw new Error}},P=()=>{const{t:e}=F(),r=$(),i=x(({event:a})=>a==null?void 0:a.slug),s=x(({categories:a})=>a==null?void 0:a.data),h=`https://app.gridaly.com/api/v1/live/${i}/exhibitors/categories`,[n,d]=u.useState(),[g,m]=u.useReducer(O,{status:"IDLE",error:!1});return u.useEffect(()=>{let a=!1;const p=C.CancelToken.source();if(n){const l=async()=>{await m({type:"FETCH_INIT"});try{a||C.get(h).then(c=>{a||(r(U(c.data)),m({type:"FETCH_SUCCESS"}),d())}).catch(c=>{var E,w;if(!a){let j=e("error");(w=(E=c==null?void 0:c.response)==null?void 0:E.data)!=null&&w.message&&(j=c.response.data.message),m({type:"FETCH_FAILURE",payload:j}),d()}})}catch{a||(m({type:"FETCH_FAILURE",payload:e("error")}),d())}};(s==null?void 0:s.length)>0?(m({type:"FETCH_SUCCESS"}),d()):l()}return()=>{a=!0,p.cancel()}},[n]),{state:g,setFetchInit:d}},z=o.div` 2 overflow: auto; 3 width: 100%; 4 margin: 0 auto; 5`,G=o.div` 6 display: flex; 7 flex-wrap: wrap; 8 9 /* @media (min-width: ${({theme:e})=>e.breakpoints.md}) { 10 flex-wrap: nowrap; 11 } */ 12`,M=o.div` 13 width: 100%; 14 max-height: 15rem; 15 16 @media (min-width: ${({theme:e})=>e.breakpoints.md}) { 17 padding-right: 1rem; 18 width: 30%; 19 max-width: 25rem; 20 max-height: 25rem; 21 } 22 23 ${({asideIsActive:e})=>e&&y` 24 @media (min-width: ${({theme:r})=>r.breakpoints.md}) and (max-width: ${({theme:r})=>r.breakpoints.lg}) { 25 width: 100%; 26 } 27 `} 28`,W=o.div` 29 width: 100%; 30 31 ${({isAside:e})=>e&&y` 32 @media (min-width: ${({theme:r})=>r.breakpoints.md}) { 33 width: 70%; 34 min-width: calc(100% - 25rem); 35 36 ${({asideIsActive:r})=>r&&y` 37 @media (min-width: ${({theme:i})=>i.breakpoints.md}) and (max-width: ${({theme:i})=>i.breakpoints.lg}) { 38 width: 100%; 39 } 40 `} 41 } 42 `} 43`,B=o.img` 44 width: 100%; 45 height: 100%; 46 border-radius: 0.75rem 0.75rem 0 0; 47 object-fit: cover; 48 49 @media (min-width: ${e=>e.theme.breakpoints.md}) { 50 border-radius: 0.75rem 0 0 0.75rem; 51 } 52 53 ${({asideIsActive:e})=>e&&y` 54 @media (min-width: ${({theme:r})=>r.breakpoints.md}) and (max-width: ${({theme:r})=>r.breakpoints.lg}) { 55 border-radius: 0.75rem 0.75rem 0 0; 56 } 57 `} 58`,V=o(_)` 59 display: flex; 60 width: 100%; 61 height: 100%; 62 text-align: center; 63 color: ${({theme:e})=>e.grey900}; 64 border: 1px solid ${({theme:e})=>e.grey200}; 65 border-radius: ${({theme:e})=>e.borderRadius200}; 66 padding: 0.5rem; 67 /* margin: 0 0.25rem; */ 68 margin-bottom: 0.5rem; 69 70 &:hover { 71 ${({theme:e})=>e.shadow} 72 } 73
74 img { 75 margin-bottom: 0.5rem; 76 max-height: 3rem; 77 max-width: 100%; 78 } 79`,q=o.div` 80 font-size: 1.15rem; 81 font-weight: ${({theme:e})=>e.bold}; 82`,K=o.div` 83 text-align: center; 84 margin-right: 0.5rem; 85`,Y=o.h5` 86 color: ${e=>e.theme.grey400}; 87 font-weight: 700; 88 font-size: 1.25rem; 89 text-transform: uppercase; 90`,J=o.h4` 91 font-family: ${e=>e.theme.fontFeatured}; 92 font-weight: 500; 93`,Q=({name:e,description:r,buttonLabel:i})=>{const[s,h]=u.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(k.Root,{type:"button",underline:!0,onClick:()=>h(!0),"aria-label":i,children:i}),t.jsx(f.Root,{open:s,onOpenChange:h,children:t.jsxs(f.Content,{className:"max-w-3xl",children:[t.jsx(f.Header,{title:e}),t.jsx(f.Body,{children:t.jsx("div",{dangerouslySetInnerHTML:{__html:r}})})]})})]})},X=()=>{const{t:e}=F(),r=x(({categories:n})=>n==null?void 0:n.data),i=x(({aside:n})=>n.isActive),{state:s,setFetchInit:h}=P();return u.useEffect(()=>{h(!0)},[]),t.jsx(N,{variant:"scroll",children:t.jsx(L,{children:t.jsxs(z,{children:[(s==null?void 0:s.status)==="PENDING"&&t.jsx(R,{size:"3"}),(s==null?void 0:s.status)==="SUCCESS"&&t.jsx(t.Fragment,{children:(r==null?void 0:r.length)>0?t.jsx(t.Fragment,{children:r.map(({id:n,name:d,img:g,shortDescription:m,description:a,exhibitors:p})=>t.jsx(u.Fragment,{children:t.jsx(I,{FallbackComponent:b,children:t.jsx(S,{children:t.jsx(S.Body,{children:t.jsxs(G,{children:[g&&t.jsx(M,{asideIsActive:i,children:t.jsx(B,{src:g,alt:d,asideIsActive:i})}),t.jsxs(W,{asideIsActive:i,isAside:g,children:[t.jsx(J,{children:d}),t.jsxs("div",{className:"mb-3",children:[t.jsx("span",{children:m}),a&&t.jsx(Q,{name:d,description:a,buttonLabel:e("general.show-more")})]}),(p==null?void 0:p.length)>0&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:e("event.exhibitors")}),p.map(l=>t.jsx("div",{children:t.jsxs(V,{to:T(v.item.full,{exhibitorId:l.slug}),children:[l.logo&&t.jsx(K,{children:t.jsx("img",{src:l.logo,alt:l.name})}),t.jsx(q,{children:l.name})]})},l.id))]})]})]})})})})},n))}):t.jsx(A,{icon:"fa-calendar-exclamation",text:e("schedule.no-agenda-items")})}),(s==null?void 0:s.status)==="ERROR"&&t.jsx(b,{error:{message:s==null?void 0:s.error}})]})})})},Re=()=>t.jsxs(I,{FallbackComponent:D,children:[t.jsx(H,{area:"expo-categories",fallbackKey:"general.categories"}),t.jsx(X,{})]});export{Re as default}; 94//# sourceMappingURL=Categories-QhBx577P.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.