1var de=Object.defineProperty;var pe=(m,e,r)=>e in m?de(m,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[e]=r;var z=(m,e,r)=>(pe(m,typeof e!="symbol"?e+"":e,r),r);import{g as ve,a as A,D as fe}from"./CustWalls.d7196226.js";import"./index.esm2017.3ff352a5.js";import{u as Z}from"./index.3ebd3175.js";import{a as me,T as we,C as be,B as ge,b as Ie,S as ye,e as Ce}from"./ToolUI.c07f1d4c.js";import{_ as U,r as i,w as B,c as I,d as C,e as f,t as O,h as T,u as n,f as P,F as ke,p as Pe,g as xe,i as Se,m as y,l as X}from"./_plugin-vue_export-helper.f09dc1ee.js";import{T as Le}from"./TopLeftMenuListProd2.256270dc.js";import"./TopLeftMenu.vue_vue_type_style_index_0_scoped_f4dbed34_lang.809c15c5.js";import"./morecapbutton.44e58599.js";import{v as Y}from"./runtime-dom.esm-bundler.0e07a42a.js";import{T as De,d as V,s as Oe,h as je,q as he,A as _e,K as Ne}from"./index.74d35613.js";import"./vue-router.51ed5a46.js";import"./qrcode.vue.esm.4be65f4b.js";const Re=m=>(Pe("data-v-62de26f6"),m=m(),xe(),m),We={class:"airwallbutton7"},$e={class:"airwallbutton8"},Fe={key:0,class:"airwall-source"},Be=Re(()=>f("div",{class:"airwall-info"},null,-1)),Ee={__name:"Add3DWalls",setup(m){const e=Z(),r=i(null);B(()=>e.selectedModel,()=>{console.log("model swap, reset wallscenObject:",e.selectedModel,e.wallsceneObject),e.wallsceneObject&&(e.wallsceneObject.stop(),e.wallsceneObject=null,subscriptions.forEach(t=>t.cancel()),subscriptions=[])});const w=i(0);function j(){w.value<3?(w.value++,c.value.inputs.selection=l.value[h.value]):w.value=0,console.log("aircontrol",w.value),w.value===0?c.value.inputs.selection=null:w.value===1?c.value.inputs.mode="translate":w.value===2?c.value.inputs.mode="scale":w.value===3&&(c.value.inputs.mode="rotate"),console.log("mode",c.value.inputs.mode)}const p=i(),c=i(),l=i([]);i([]),i([]);const h=i(0);i(5),i();const d=i("https://firebasestorage.googleapis.com/v0/b/selfwalksigniabonnetcreek-dev.appspot.com/o/airwallfilled.glb?alt=media&token=013adf65-b7b3-4ff1-8575-14e3aac7ea82"),k=i(),g=i(),_=i(),N=i(),q=i(1),K=i(1),G=i(5),H=i(5),L=i(5),D=i(-10);class J{constructor(o,a){this.path=o,this.node=a}onEvent(o){o.input.type=="hover",o.input.type=="unhover"?e.inputComponent.inputs.userNavigationEnabled=!0:o.input.type=="click"?console.log("Clicked emit"):o.input.type==="dragend"&&console.log("Drag ended")}}const Q=De(V,"walls"),E=i("createdAt"),M=i("asc");R(),B(E,R),B(M,R);function R(){const t=Oe(Q,je(E.value,M.value));he(t,o=>{e.siteProInfo.walls=o.docs.map(a=>({...a.data(),id:a.id}))})}async function b(){let t=e.siteProInfo.walls.filter(a=>a.model===e.selectedModel);console.log("showairwall",t),l.value=[];let o=[];if(e.wallsceneObject)console.log("wallsceneObject.stop()"),e.wallsceneObject.stop(),e.wallsceneObject=null,o.forEach(a=>a.cancel()),o=[];else{await e.mpSdk.Scene.registerComponents([{factory:ve(e.mpSdk),name:A}]),console.log("creating wallsceneobj"),e.wallsceneObject=(await e.mpSdk.Scene.createObjects(1))[0],console.log("creating wallsceneobj");for(let s=0;s<t.length;s++){l.value[s]=e.wallsceneObject.addNode();const u=t[s];l.value[s].obj3D.position.set(u.position.x,u.position.y,u.position.z),l.value[s].obj3D.scale.set(u.scale.x,u.scale.y,u.scale.z),u.rotation&&l.value[s].obj3D.rotation.set(u.rotation.x,u.rotation.y,u.rotation.z),l.value[s].url=u.url,l.value[s].materialColor=u.materialColor,l.value[s].materialColor2=u.materialColor2,l.value[s].model=u.model,l.value[s].docid=u.id,p[s]={pos:l.value[s].obj3D.position,rot:l.value[s].obj3D.rotation,scale:l.value[s].obj3D.scale},console.log("wall"+s,p[s]),console.log("registering gltf");const $=l.value[s].addComponent(A,{url:u.url,wallRepeat:u.scale.z,materialColor:u.materialColor,materialColor2:u.materialColor2});console.log("wallnodecomp",$);const se=await e.wallsceneObject.addEmitPath($,"gltfevents"),ie=e.wallsceneObject.spyOnEvent(new J(se,l.value[s]));o.push(ie);const re=await e.wallsceneObject.addEmitPath($,"gltfevents","wallNodeComp_"+s);class ue{constructor(){z(this,"path",re)}onEvent(F){F.input.type=="hover"&&console.log("userNavigationEnabled = false"),F.input.type=="unhover"&&(console.log("userNavigationEnabled = true"),e.inputComponent.inputs.userNavigationEnabled=!0),F.input.type=="click"&&(console.log("click evnet log"),c.value.inputs.mode="translate",c.value.inputs.selection==null?(c.value.inputs.selection=l.value[s],r.value=l.value[s].docid,x.value=l.value[s].materialColor,S.value=(l.value[s].obj3D.rotation.y*(180/Math.PI)).toFixed(2),k.value=e.siteProInfo.walls[s].source1||"",g.value=e.siteProInfo.walls[s].source2||"",h.value=s):c.value.inputs.selection=null,e.inputComponent.inputs.userNavigationEnabled=!0)}}const ce=e.wallsceneObject.spyOnEvent(new ue);o.push(ce),console.log("registered gltf")}const a=e.wallsceneObject.addNode();c.value=a.addComponent("mp.transformControls",{mode:"scale",selection:null,size:1}),e.wallsceneObject.addNode().addComponent("mp.ambientLight",{intensity:1,color:{r:1,g:1,b:1}}),e.wallsceneObject.start()}e.airWallOn=!e.airWallOn,c.value.inputs.selection=null,w.value=0}const x=i("#DBE6FF"),W=i("#DBE6FF"),S=i(0);async function ee(){console.log("addWall",e.selectedModel);let t=L.value,o=D.value;for(let a=0;a<q.value;a++)for(let v=0;v<K.value;v++){L.value=e.currentSweep.position.x+a*G.value,D.value=e.currentSweep.position.z+v*H.value;let s={position:{x:L.value,y:.1,z:D.value},scale:{x:1,y:1,z:1},rotation:{x:0,y:0,z:0},collapse:!1,extendedSizeZ:1,source1:"",source2:"",source3:"",source4:"",url:d.value,materialColor:x.value,materialColor2:W.value,model:e.selectedModel};await e.addWall(s),console.log("New wall params added:",s),console.log("new wall url",s.url)}L.value=t,D.value=o,b(),b()}async function oe(t){const o=e.siteProInfo.walls.findIndex(a=>a.id===t);o!==-1?(await e.addWall(e.siteProInfo.walls[o]),b(),b()):console.log("No wall found with docid:",t)}async function le(t){window.confirm("Are you sure you want to remove this location?")&&(await e.removeWall
1(t),b(),r.value=null,b())}function te(t){const o=e.siteProInfo.walls.findIndex(v=>v.id===t);if(o===-1){console.error(`No wall found with id: ${t}`);return}const a=l.value.findIndex(v=>v.docid===t);if(a===-1){console.error(`No wall node found with id: ${t}`);return}S.value&&(e.siteProInfo.walls[o].rotation.y=S.value*(Math.PI/180),l.value[a].obj3D.rotation.y=S.value*(Math.PI/180)),b(),b()}function ne(t){const o=e.siteProInfo.walls.findIndex(v=>v.id===t);if(o===-1){console.error(`No wall found with id: ${t}`);return}const a=l.value.findIndex(v=>v.docid===t);if(a===-1){console.error(`No wall node found with id: ${t}`);return}k.value&&(e.siteProInfo.walls[o].source1||(e.siteProInfo.walls[o].source1="",l.value[a].source1=""),e.siteProInfo.walls[o].source1=k.value,l.value[a].source1=k.value,console.log("source1",e.siteProInfo.walls[o].source1)),g.value&&(e.siteProInfo.walls[o].source2||(e.siteProInfo.walls[o].source2="",l.value[a].source2=""),e.siteProInfo.walls[o].source2=g.value,l.value[a].source2=g.value,console.log("source2",e.siteProInfo.walls[o].source2)),_.value&&(e.siteProInfo.walls[o].source3||(e.siteProInfo.walls[o].source3="",l.value[a].source3=""),e.siteProInfo.walls[o].source3=_.value,l.value[a].source3=_.value,console.log("source3",e.siteProInfo.walls[o].source3)),N.value&&(e.siteProInfo.walls[o].source4||(e.siteProInfo.walls[o].source4="",l.value[a].source4=""),e.siteProInfo.walls[o].source4=N.value,l.value[a].source4=N.value,console.log("source4",e.siteProInfo.walls[o].source4)),x.value&&(e.siteProInfo.walls[o].materialColor=x.value),W.value&&(e.siteProInfo.walls[o].materialColor2=W.value),b(),r.value=null,b()}async function ae(){for(let t=0;t<l.value.length;t++){let o={position:{x:l.value[t].obj3D.position.x,y:l.value[t].obj3D.position.y,z:l.value[t].obj3D.position.z},rotation:{x:l.value[t].obj3D.rotation.x,y:l.value[t].obj3D.rotation.y,z:l.value[t].obj3D.rotation.z},scale:{x:l.value[t].obj3D.scale.x,y:l.value[t].obj3D.scale.y,z:l.value[t].obj3D.scale.z},extendedSizeZ:l.value[t].obj3D.scale.z,collapse:!1,url:l.value[t].url,source1:l.value[t].source1?l.value[t].source1:"",source2:l.value[t].source2?l.value[t].source2:"",source3:l.value[t].source3?l.value[t].source3:"",source4:l.value[t].source4?l.value[t].source4:"",model:l.value[t].model,materialColor:l.value[t].materialColor,materialColor2:l.value[t].materialColor2};try{const a=_e(V,"walls",l.value[t].docid);await Ne(a,o),console.log("Wall successfully updated!")}catch(a){console.error("Error updating wall: ",a)}}}return(t,o)=>(I(),C(ke,null,[f("button",{onClick:j,id:"airwallcontrol",class:"airwallbutton2"},"S/R/T"),f("button",{onClick:o[0]||(o[0]=a=>b()),class:"airwallbutton"},"Walls"),f("button",{onClick:o[1]||(o[1]=a=>ee()),class:"airwallbutton3"},"Add Wall"),f("button",{onClick:o[2]||(o[2]=a=>oe(r.value)),class:"airwallbutton4"},"Copy "+O(r.value?r.value.substring(0,3):""),1),f("button",{onClick:o[3]||(o[3]=a=>le(r.value)),class:"airwallbutton6"},"Delete "+O(r.value?r.value.substring(0,3):""),1),f("div",We,[T(f("input",{onChange:o[4]||(o[4]=a=>ne(r.value)),style:{height:"40px",width:"40px","border-radius":"10px"},id:"matcolor","onUpdate:modelValue":o[5]||(o[5]=a=>x.value=a),type:"color"},null,544),[[Y,x.value]])]),f("div",$e,[T(f("input",{onChange:o[6]||(o[6]=a=>te(r.value)),style:{height:"20px",width:"40px","border-radius":"10px"},id:"rotateDeg",type:"number","onUpdate:modelValue":o[7]||(o[7]=a=>S.value=a)},null,544),[[Y,S.value]])]),f("button",{onClick:o[8]||(o[8]=a=>ae()),class:"airwallbutton5"},"Save All"),n(e).spaceInfo[n(e).selectedSpace]?(I(),C("div",Fe,"Current Source: "+O(n(e).spaceInfo[n(e).selectedSpace].name),1)):P("",!0),Be],64))}},Me=U(Ee,[["__scopeId","data-v-62de26f6"]]);const ze={key:0},Ae={key:0},Te={key:1},Xe={key:0},Ye={key:1},Ve={__name:"AirWallView",setup(m){const e=Z(),r=i(e.siteProInfo.mapLink),w=i();i(0);function j(){r.value=e.centerSRC,e.cFrameOn=!e.cFrameOn}const p={tR:"Events",tL:"Amenities",bR:"Guest Rooms",bL:"Map",tLX:"-15%",tLeftY:"45%",tRX:"45%",tRightY:"-25%",bLX:"50%",bLY:"40%",bRX:"-20%",bRY:"100%"};Se(()=>{console.log("navlinks",w),console.log("selectedspace",e.selectedSpace)});function c(){e.mpInteracting=!1,e.spaceInfo[e.selectedSpace].ctaNewTab?window.open(e.spaceInfo[e.selectedSpace].ctaLink,"_blank"):e.spaceInfo[e.selectedSpace].ctaLink!==""&&e.spaceInfo[e.selectedSpace].ctaLink!==void 0?(console.log("no link",e.spaceInfo[e.selectedSpace].ctaLink),e.centerSRC=e.spaceInfo[e.selectedSpace].ctaLink,e.bRFrameOn=!0):(console.log("ctalink",e.spaceInfo[e.selectedSpace].ctaLink),e.contactO
1n=!0)}function l(){e.siteProInfo.mobileDiningNewTab?window.open(e.siteProInfo.mobileDiningLink,"_blank"):e.siteProInfo.mobileDiningLink!==""&&e.siteProInfo.mobileDiningLink!==void 0?(console.log("no link",e.siteProInfo.mobileDiningLink),e.centerSRC=e.siteProInfo.mobileDiningLink,e.bRFrameOn=!0):(console.log("mobileDiningLink",e.siteProInfo.mobileDiningLink),e.contactOn=!0)}return(h,d)=>{var k;return n(e).siteProInfo.plan!="Basic"&&n(e).siteProInfo.plan!="BasicPlus"?(I(),C("div",ze,[y(Me),y(me,{menu:p.tR,menuX:p.tRX,menuY:p.tRightY,onClick:d[0]||(d[0]=g=>(n(e).docBoxOn=!n(e).docBoxOn,n(e).mpInteracting=!1,n(e).bRFrameOn=!1)),onMouseenter:d[1]||(d[1]=g=>(n(e).docBoxOn=!0,n(e).docBoxMenu=!0,n(e).mpInteracting=!1,n(e).bRFrameOn=!1))},null,8,["menu","menuX","menuY"]),n(e).docBoxOn?(I(),X(fe,{key:0})):P("",!0),y(we,{menu:p.tL,menuX:p.tLX,menuY:p.tLeftY,onClick:d[2]||(d[2]=g=>(n(e).tLNavOn=!0,n(e).mpInteracting=!1)),onMouseenter:d[3]||(d[3]=g=>(n(e).tLNavOn=!0,n(e).mpInteracting=!1))},null,8,["menu","menuX","menuY"]),y(Le,{navLinks:n(e).getNavLinks,onMouseleave:d[4]||(d[4]=g=>(n(e).tLNavOn=!1,n(e).mpInteracting=!1))},null,8,["navLinks"]),y(be,{frameSRC:r.value},null,8,["frameSRC"]),n(e).bRFrameOn&&n(e).mpInteracting==!1?(I(),X(Ce,{key:1})):P("",!0),y(ge,{menu:p.bL,menuX:p.bLX,menuY:p.bLY,onClick:d[5]||(d[5]=g=>(n(e).centerSRC=n(e).siteProInfo.mapLink,j(),n(e).mpInteracting=!1))},null,8,["menu","menuX","menuY"]),y(Ie,{class:"overlayZ"}),f("button",{onClick:c,class:"ctabutton tooltip"},[(k=n(e).spaceInfo[n(e).selectedSpace])!=null&&k.ctaText?(I(),C("span",Ae,O(n(e).spaceInfo[n(e).selectedSpace].ctaText),1)):(I(),C("span",Te,"Contact Sales"))]),!n(e).isExpanded&&n(e).siteProInfo.mobileDiningLink&&n(e).spaceInfo[n(e).selectedSpace]&&(n(e).spaceInfo[n(e).selectedSpace].category.toLowerCase()==="guest rooms"||n(e).spaceInfo[n(e).selectedSpace].category.toLowerCase()==="dining")?(I(),C("button",{key:2,onClick:l,class:"roomdiningbutton tooltip"},[n(e).siteProInfo.mobileDiningLink&&n(e).spaceInfo[n(e).selectedSpace].category.toLowerCase()==="guest rooms"?(I(),C("span",Xe,"Order In-Room Dining")):P("",!0),n(e).siteProInfo.mobileDiningLink&&n(e).spaceInfo[n(e).selectedSpace].category.toLowerCase()==="dining"?(I(),C("span",Ye,"Order For Pickup")):P("",!0)])):P("",!0),y(ye)])):P("",!0)}}},so=U(Ve,[["__scopeId","data-v-039e14bd"]]);export{so as default};
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.