1import{j as e}from"./ui-vendor-Bh7_beny.js";import{d as t,r}from"./react-vendor-BoSAEcqU.js";import{f as s,B as i}from"./boothShareService-DOVHj8uo.js";import"./firebase-vendor-DblBUUbW.js";import{u as o,bs as n,bt as a,bu as l}from"./index-IinEbi41.js";import{b as d,a as c,p as u,g as p}from"./useShowcaseProducts-BrISfWgV.js";import"./BoothScenePage-CpYlutr-.js";import"./BoothScene-C0mcrUWX.js";import"./Texture-RZlMjO2q.js";import"./textures-g2aXi1S8.js";import"./scale-pYxn1nCc.js";import"./assetCatalog-BHI-c1l7.js";import"./Plant3D-Bds_dltm.js";import"./Html-DZRJ65Jp.js";import"./play-1fTsTigw.js";import"./rotate-ccw-CrcgHT5Z.js";import"./hallDressing-BL9-UyEi.js";import"./OrbitControls-BemKf6mF.js";import"./arrow-left-BrJBGWSN.js";import"./mouse-pointer-2-DA2lfDYo.js";import"./zoom-in-BvZblNvE.js";import"./shareLinksService-DQmYvX3k.js";import"./fabric-vendor-T6PTpD9i.js";import"./showcaseProduct.types-C7GtjP5x.js";const m={width:"100%",height:"100dvh",display:"flex",flexDirection:"column",gap:8,alignItems:"center",justifyContent:"center",background:"#0b1120",color:"#cbd5e1",font:"500 15px Inter, system-ui, sans-serif",textAlign:"center",padding:24};function j(e){switch(e){case"expired":return"Deze deel-link is verlopen.";case"revoked":return"Deze deel-link is ingetrokken.";default:return"Deze deel-link is ongeldig of bestaat niet meer."}}function f(){var f,h,b;const{token:g}=t(),{i18n:v}=o(),x=v.language,[y,S]=r.useState("loading"),[D,k]=r.useState("invalid"),[w,z]=r.useState(null);r.useEffect((()=>{if(!g)return S("error"),void k("invalid");let e=!0;return S("loading"),s(g).then((t=>{e&&(z(t),S("ready"))})).catch((t=>{e&&(k(t instanceof Error?t.message:"invalid"),S("error"))})),()=>{e=!1}}),[g]);const I=r.useMemo((()=>{var e;if(!w)return[];const t=d(w.exhibitorCategories),r=c(w.exhibitorCategories,x),s=w.showcaseProducts.filter((e=>!1!==e.data.isPublished)).map((e=>u(e.id,e.data,t,w.projectId,r))).filter((e=>null!==e));return null!=(e=p(s).get(w.standId))?e:[]}),[w,x]);if("loading"===y)return e.jsx("div",{style:m,children:"Stand ladenâ¦"});if("error"===y||!w)return e.jsx("div",{style:m,children:e.jsx("p",{style:{fontWeight:600},children:j(D)})});const P=n(w.booth3DSettings);if(!P.enabled)return e.jsx("div",{style:m,children:e.jsx("p",{style:{fontWeight:600},children:"De 3D-booth is niet beschikbaar voor deze beurs."})});const B=a(null!=(f=w.boothScene)?f:void 0,null!=(b=null==(h=w.basics)?void 0:h.companyName)?b:""),C=l(w.profileSubmission);return e.jsx(i,{standId:w.standId,doc:B,basics:w.basics,settings:P,profile:C,products:I})}export{f as BoothSharePage}; 2//# sourceMappingURL=BoothSharePage-THJWes9U.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.