1var e=Object.defineProperty,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s;import{j as a}from"./ui-vendor-Bh7_beny.js";import{d as n,c as l,r as i}from"./react-vendor-BoSAEcqU.js";import{bn as c,u as m,p as d}from"./index-IinEbi41.js";import{g as u,b as h}from"./standConfigService-CCMMMtyz.js";import{g as p}from"./standConfiguratorSettingsService-CCAquL2x.js";import{h as f}from"./structuralElements-Bn64UtJy.js";import{S as j}from"./StandTechnicalDrawingView-CFicmHGO.js";import"./firebase-vendor-DblBUUbW.js";import"./fabric-vendor-T6PTpD9i.js";import"./ShellSchemeGenerator-jqI93Mix.js";import"./assetIndex-CpVmIQag.js";import"./assetCatalog-BHI-c1l7.js";import"./assetPlacement-CqjdzxXi.js";import"./undoStore-Cob-GWEn.js";import"./standElementsService-5zE9iqe7.js";import"./mergeStandElements-BCa6aShk.js";import"./Texture-RZlMjO2q.js";import"./hallDressing-BL9-UyEi.js";import"./Hall-BrW9_cHd.js";import"./textures-g2aXi1S8.js";import"./Billboard-C4scUQkh.js";import"./OrbitControls-BemKf6mF.js";function g(e){if(!f(e.boothElements))return((e,a)=>{for(var n in a||(a={}))r.call(a,n)&&o(e,n,a[n]);if(t)for(var n of t(a))s.call(a,n)&&o(e,n,a[n]);return e})({},e.walls);const a=e.boothElements.filter((e=>"wall"===e.kind)),n=(e,t)=>Math.abs(e-t)<=.3;return{back:a.some((t=>!t.alongZ&&n(t.z,-e.depthM/2))),left:a.some((t=>t.alongZ&&n(t.x,-e.widthM/2))),right:a.some((t=>t.alongZ&&n(t.x,e.widthM/2)))}}function b(e,t){return r=this,s=null,o=function*(){var r,s;const o=yield u(e,t);if(!o)return{status:"not-found"};if(!o.shellScheme)return{status:"no-shell-scheme"};const[a,n,l]=yield Promise.all([h(e,o.shellSchemeSku),p(e),c(e)]);return{status:"ok",booth:(m=o,{widthM:m.widthM,depthM:m.depthM,companyName:m.companyName,boothNumber:m.boothNumber,walls:g(m),wallColor:m.wallColor}),hasStorage:(i=a,i.includes("element:storage-room")),ownerUserId:o.userId,hallFloor:n.hallFloor,fairBannerUrl:null!=(s=null==(r=l.fairBanner)?void 0:r.url)?s:null};var i,m},new Promise(((e,t)=>{var a=e=>{try{l(o.next(e))}catch(r){t(r)}},n=e=>{try{l(o.throw(e))}catch(r){t(r)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,n);l((o=o.apply(r,s)).next())}));var r,s,o}function x(){const{projectId:e="",standId:t=""}=n(),r=l(),{t:s}=m("standTechnicalDrawing"),{currentUser:o,hasRole:c,isAdmin:u}=d(),[h,p]=i.useState({status:"loading"});if(i.useEffect((()=>{if(!e||!t)return;let r=!0;return b(e,t).then((e=>{if(r){if("ok"===e.status){if(!(u||c("project_manager"))&&e.ownerUserId&&e.ownerUserId!==(null==o?void 0:o.uid))return void p({status:"no-access"})}p(e)}})).catch((e=>{r&&p({status:"not-found"})})),()=>{r=!1}}),[e,t,null==o?void 0:o.uid,c,u]),"loading"===h.status)return a.jsx("div",{className:"flex h-screen items-center justify-center bg-gray-50",children:a.jsx("p",{className:"text-sm text-gray-500",children:s("loading")})});if("ok"!==h.status){const e="no-access"===h.status?"noAccess":"no-shell-scheme"===h.status?"noShellScheme":"notFound";return a.jsx("div",{className:"flex h-screen items-center justify-center bg-gray-50 p-6",children:a.jsxs("div",{className:"max-w-md rounded-2xl bg-white p-6 text-center shadow",children:[a.jsx("h1",{className:"text-lg font-bold text-gray-900",children:s(`errors.${e}Title`)}),a.jsx("p",{className:"mt-1 text-sm text-gray-500",children:s(`errors.${e}Body`)})]})})}return a.jsx(j,{booth:h.booth,hasStorage:h.hasStorage,hallFloor:h.hallFloor,fairBannerUrl:h.fairBannerUrl,onBack:()=>r(u||c("project_manager")?`/projects/${e}/stand-configurator-admin`:`/projects/${e}/exhibitor-dashboard`)})}export{x as StandTechnicalDrawingPage}; 2//# sourceMappingURL=StandTechnicalDrawingPage-CHEbzSFX.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.