1var U=Object.defineProperty;var $=(r,e,s)=>e in r?U(r,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[e]=s;var v=(r,e,s)=>($(r,typeof e!="symbol"?e+"":e,s),s);import{w as h}from"./runtime-dom.esm-bundler.0e07a42a.js";import{u as P}from"./index.579df1b8.js";import"./index.esm2017.2c0bfc40.js";import{_ as V,j as E,c as S,d as A,u as t,k as J,f as N,e as f,F as O,I as M,t as R,J as L,p as Y,g as X,r as C,w as Z,o as q}from"./_plugin-vue_export-helper.f09dc1ee.js";class ee{constructor(e){v(this,"disposables",[]);v(this,"inputs",{url:"",name:"",animation:0,castShadow:!1,boundingBox:!1,loader:!1,visible:!0,aspectRatio:1,wallRepeat:1,materialColor:"#8f8f8f",materialColor2:"#8f8f8f",localScale:{x:1,y:1,z:1},localPosition:{x:0,y:0,z:0},localRotation:{x:0,y:0,z:0},localQuaterion:{x:0,y:0,z:0,w:0}});v(this,"events",{"INTERACTION.CLICK":!0,"INTERACTION.DRAG":!1,"INTERACTION.DRAG_BEGIN":!1,"INTERACTION.DRAG_END":!1,"INTERACTION.HOVER":!0,"INTERACTION.KEY":!0,"INTERACTION.LONG_PRESS_END":!0,"INTERACTION.LONG_PRESS_START":!0,"INTERACTION.MULTI_SWIPE":!0,"INTERACTION.MULTI_SWIPE_END":!0,"INTERACTION.PINCH":!0,"INTERACTION.PINCH_END":!0,"INTERACTION.POINTER_BUTTON":!0,"INTERACTION.POINTER_MOVE":!0,"INTERACTION.ROTATE":!0,"INTERACTION.ROTATE_END":!0,"INTERACTION.SCROLL":!0});v(this,"onInit",()=>{const e=this.context.three,s=new e.GLTFLoader;if(this.inputs.loader&&this.inputs.loader=="draco"){const u=new e.DRACOLoader;u.setDecoderPath("/bundle/vendors/three/0.146.0/libs/draco/"),u.setDecoderConfig({type:"js"}),s.setDRACOLoader(u)}s.load(this.inputs.url,this.onLoaded,function(u){},function(u){console.log("GLTF Loading Error:",u)})});v(this,"onLoaded",e=>{const s=this.context.three;e.animations.length>0?(this.mixer=new s.AnimationMixer(e.scene),this.mixer.clipAction(e.animations[this.inputs.animation]).play(),this.mesh=e.scene,this.mesh.animations=e.animations):this.mesh=e.scene;const u=new s.Box3().setFromObject(e.scene),g=new s.Vector3;u.getSize(g),console.log("model size",g),this.passModelSize(g),e.scene.traverse(o=>{o.isMesh&&(o.material.color.set(this.inputs.materialColor),o.name=="SelfWalk_Table8Chair001_Mat2"&&o.material.color.set(this.inputs.materialColor2),o.material.map&&(o.material.map.wrapS=s.RepeatWrapping,o.material.map.wrapT=s.ClampToEdgeWrapping,o.material.map.repeat.set(this.inputs.wallRepeat,1),o.material.map.needsUpdate=!0))}),this.mesh.scale.set(this.inputs.localScale.x,this.inputs.localScale.y/this.inputs.aspectRatio,this.inputs.localScale.z),this.mesh.rotation.set(this.inputs.localRotation.x,this.inputs.localRotation.y,this.inputs.localRotation.z),this.mesh.position.set(this.inputs.localPosition.x,this.inputs.localPosition.y,this.inputs.localPosition.z);const d=new s.BoxHelper(this.mesh,16776960);d.name="BoxHelper",this.mesh.add(d),this.mesh.getObjectByName("BoxHelper").visible=!1,this.outputs.objectRoot=this.mesh,this.outputs.collider=this.mesh,this.mesh.parent.name=this.inputs.name,this.mesh.name="GLTF"});v(this,"emits",{gltfevents:!0,gltfevents2:!0});v(this,"onTick",e=>{this.mixer&&this.mixer.update(e*.001)});this.onEvent=this.onEvent.bind(this),this.sdk=e}passModelSize(e){this.modelSize=e,console.log("modelSize",e);let s={input:{}};s.input.type="modelSize",s.input.modelSize=e,console.log("modelSize",e,"data",s),this.notify("gltfevents2",s)}onEvent(e,s){e&&this.notify("gltfevents",s),e==="INTERACTION.CLICK"&&(console.log("GLTF Clicked notify"),s.input.type="click",this.notify("gltfevents",s)),e=="INTERACTION.CLICK"&&console.log("Clicked onEvent in GLTF")}onInputsUpdated(){this.inputs.boundingBox?this.mesh.getObjectByName("BoxHelper").visible=!0:this.mesh.getObjectByName("BoxHelper").visible=!1}onDestroy(){this.outputs.collider=null,this.outputs.objectRoot=null,this.mesh&&(this.mesh.material&&this.mesh.material.dispose(),this.mesh.geometry&&this.mesh.geometry.dispose())}}const D="mp.gltf",te=function(r){return function(){return new ee(r)}},oe="/assets/closeWhite.d226582a.svg",se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGySURBVHgBxZfRcYJAEIb3rMDJTCavpIKYBjQmz0703VFKSAemA/XJmBdSQlpIBaQD6ACoYLMLx3hxQPYA4ZtZwOHk/1n2Fk6BEEQc0m5OMaEYUTgUQ306pggpfil+KL6VUjG0AQk7FDuKCO3w+L9QF75jii02Z6uzZ33XAbZHgNJs0MARtitumhh1fedFJhxTUxni/Jx8yKr7moQUj/ksGRgnNh2Ig9bY5D/SDOi0BNAt95SFMM/AO3TPW7rFbL5XcjgecemuMU6S0jFxEuNsMcfD5xEFRGnd0caVjJ4tXvHm7hbHL9NCEyw+oXM8ho0KcdnAl2QkC4yfp4UmTPFJicESPDbgS0cXmWggzvhswOolc26igTgTAdbANNFAPGUANVHqdIzQAKzxCMy0lxWmkMi6CM+f+aXZIcC3moZlBdfAhCduRMv16mLBmSa4Gwpx81ZcWQfcXvnCVa146a7wQ9aKmWFeiDvsHi+dTdqAA32+jvmAdnvojr3W7P+T7B/Yw0dpkYn+PsuvmIkAbZdpmPWHNqYnX8NuaVaQDVG7Noi0sFN1fQVC8LQ8f6J4gJaW539Um888palIFgAAAABJRU5ErkJggg==";const B=r=>(Y("data-v-7a493831"),r=r(),X(),r),le=["tabindex"],ne=B(()=>f("img",{src:oe,alt:"close"},null,-1)),ae=[ne],ie=B(()=>f("div",{class:"title"},"Resources",-1)),ce={class:"locationDocs"},re=["tabindex","onKeyup","onClick"],ue=B(()=>f("div",{class:"spaceBar"},null,-1)),de={class:"docs"},pe=["tabindex","onKeyup","onClick"],me={key:1,class:"docframe"},he={class:"closeDoc"},fe=["tabindex"],ge=["data"],ve=["href"],Se={__name:"DocumentsBox",setup(r){const e=P();function s(d){e.trackEvent("doc_opened",{doc:d.name,docLink:d.link})}const u=E(()=>!!(e.siteProInfo.curatedProposal&&e.siteProInfo.curatedProposal.documents)),g=E(()=>{let d=[...e.siteProInfo.documents];return d.sort((o,l)=>o.name.toLowerCase()<l.name.toLowerCase()?-1:o.name.toLowerCase()>l.name.toLowerCase()?1:0),d});return(d,o)=>(S(),A(O,null,[t(e).docBoxMenu?(S(),A("nav",{key:0,class:J({docBox:!0,docGri
1d:t(u),docGrid2:!t(u),helpHighlight:t(e).isHighlighted==3}),onMouseover:o[4]||(o[4]=l=>t(e).docBoxMenu=!0),onMouseleave:o[5]||(o[5]=l=>t(e).docBoxMenu=!1),onKeyup:o[6]||(o[6]=h(l=>t(e).docBoxMenu=!1,["esc"]))},[t(e).isMobile?(S(),A("div",{key:0,class:"closeMenu",tabindex:t(e).tabIndex,role:"button","aria-label":"close",onKeyup:[o[0]||(o[0]=h(l=>t(e).docBoxMenu=!1,["enter"])),o[1]||(o[1]=h(l=>t(e).docBoxMenu=!1,["space"])),o[2]||(o[2]=h(l=>t(e).docBoxMenu=!1,["esc"]))],onClick:o[3]||(o[3]=l=>t(e).docBoxMenu=!1)},ae,40,le)):N("",!0),ie,f("div",ce,[t(e).siteProInfo.curatedProposal?(S(!0),A(O,{key:0},M(t(e).siteProInfo.curatedProposal.documents,l=>(S(),A("div",{class:"docLink",tabindex:t(e).tabIndex,role:"button",onKeyup:[h(a=>(t(e).docSelect=1,t(e).pdfSelect=l.link),["enter"]),h(a=>(t(e).docSelect=1,t(e).pdfSelect=l.link),["space"])],onClick:a=>(t(e).docSelect=1,t(e).pdfSelect=l.link,s(l))},R(l.name),41,re))),256)):N("",!0)]),ue,f("div",de,[(S(!0),A(O,null,M(t(g),l=>(S(),A("div",{class:"docLink",tabindex:t(e).tabIndex,role:"button",onKeyup:[h(a=>(t(e).docSelect=1,t(e).pdfSelect=l.link),["enter"]),h(a=>(t(e).docSelect=1,t(e).pdfSelect=l.link),["space"])],onClick:a=>(t(e).docSelect=1,t(e).pdfSelect=l.link,s(l))},R(l.name),41,pe))),256))])],34)):N("",!0),t(e).docSelect!==0?(S(),A("div",me,[f("div",he,[f("img",{src:se,alt:"close",role:"button",tabindex:t(e).tabIndex,onKeyup:[o[7]||(o[7]=h(l=>(t(e).docSelect=0,t(e).pdfSelect=""),["enter"])),o[8]||(o[8]=h(l=>(t(e).docSelect=0,t(e).pdfSelect=""),["space"]))],onClick:o[9]||(o[9]=l=>(t(e).docSelect=0,t(e).pdfSelect=""))},null,40,fe)]),f("object",{class:"hiz",data:t(e).pdfSelect,type:"application/pdf",width:"100%",height:"85%"},[f("p",null,[L("This browser does not support PDFs. Please download the PDF to view it: "),f("a",{href:t(e).pdfSelect,download:""},"Download PDF",8,ve),L(". ")])],8,ge)])):N("",!0)],64))}},Ee=V(Se,[["__scopeId","data-v-7a493831"]]);const Te={__name:"CustWalls",setup(r){const e=P(),s=C(!1),u=C(0),g=C(null),d=C([]),o=C(null),l=C(!1),a=E(()=>e.siteProInfo.walls.filter(n=>n.model===e.selectedModel)),j=E(()=>{const n=e.spaceInfo[e.selectedSpace];return e.siteProInfo.walls.some(i=>i.model===e.selectedModel)&&(e.currentMpMode==="mode.dollhouse"||n.subCategory&&["ballrooms","salons"].includes(n.subCategory.toLowerCase())||n.breakoutAirwall&&["ballrooms","salons"].includes(n.breakoutAirwall.toLowerCase()))});Z([()=>e.selectedModel,()=>e.currentMode,()=>l.value],async([n,i,m],[k,w,c])=>{const p=n!==k,I=i!==w,_=m!==c;p&&(T(),e.currentMode==="Salons"&&(s.value=!0,console.log("Model changed to Salon, showing walls"),await y(),b(a.value,!0),console.log("Walls shown after model change to Salon"))),I&&!p&&!_&&(T(),i==="Ballrooms"?(console.log("Mode changed to Ballrooms, hiding walls"),b(a.value,!1),console.log("Walls hidden after mode change to Ballrooms")):i==="Salons"&&(s.value=!0,console.log("Mode changed to Salons, showing walls"),await y(),b(a.value,!0),console.log("Walls shown after mode change to Salons")))});function T(){e.currentSalon=-1,e.currentBallroom=-1,e.wallsceneObject&&(e.wallsceneObject.stop(),e.wallsceneObject=null,e.custWallsSub.forEach(n=>n.cancel()),e.custWallsSub=[])}q(async()=>{e.wallsRequested&&(console.log("loading landing walls"),await y(),e.wallsRequested&&(e.currentMode="Salons",T(),b(a.value,!0)))});function y(){return new Promise(n=>{let i=0;const m=()=>{i++,console.log("interval sweep and count",e.currentSweep.sid,i),e.spaceInfo[e.selectedSpace]&&e.currentSweep.sid==e.spaceInfo[e.selectedSpace].sweep&&e.tourState.phase==="appphase.playing"||e.currentSweep.sid&&i>20&&e.tourState.phase==="appphase.playing"?n():setTimeout(m,100)};m()})}function W(){l.value=!l.value,e.currentMode=="Salons"?(e.currentMode="Ballrooms",b(a.value,!1),console.log("setting toggle space:(currball, cursal)",e.currentBallroom,e.currentSalon),e.currentBallroom!==-1&&(e.selectedSpace=e.currentBallroom)):e.currentMode=="Ballrooms"&&(e.currentMode="Salons",b(a.value,!0),console.log("setting toggle space:(currball, cursal)",e.currentBallroom,e.currentSalon),e.currentSalon!==-1&&(e.selectedSpace=e.currentSalon)),console.log("toggle changed, showing/hiding walls",s.value)}async function b(n,i=!0){if(e.custWallsSub||(e.custWallsSub=[]),e.wallsceneObject&&(e.wallsceneObject.stop(),e.wallsceneObject=null,e.custWallsSub.forEach(m=>m.cancel()),e.custWallsSub=[],s.value=!1),!e.wallsceneObject&&i){await e.mpSdk.Scene.registerComponents([{factory:te(e.mpSdk),name:D}]),e.wallsceneObject=(await e.mpSdk.Scene.createObjects(1))[0],d.value=[];for(let w=0;w<n.length;w++){const c=n[w],p=e.wallsceneObject.addNode();p.obj3D.position.set(c.position.x,c.position.y,c.position.z),p.obj3D.scale.set(c.scale.x,c.scale.y,c.scale.z),c.rotation&&p.obj3D.rotation.set(c.rotation.x,c.rotation.y,c.rotation.z),p.url=c.url,p.materialColor=c.materialColor,d.value.push(p);const I=p.addComponent(D,{url:c.url,wallRepeat:c.scale.z,materialColor:c.materialColor}),_=await e.wallsceneObject.addEmitPath(I,"gltfevents"),G=e.wallsceneObject.spyOnEvent(new z(_,p));e.custWallsSub.push(G);const H=await e.wallsceneObject.addEmitPath(I,"gltfevents","wallNodeComp_"+w);class K{constructor(){v(this,"path",H)}onEvent(x){x.input.type=="hover"&&console.log("userNavigationEnabled = false"),x.input.type=="unhover"&&(console.log("userNavigationEnabled = true"),e.inputComponent.inputs.userNavigationEnabled=!0),x.input.type=="click"&&(console.log("click evnet log"),o.value=w,F(o.value),e.inputComponent.inputs.userNavigationEnabled=!0)}}const Q=e.wallsceneObject.spyOnEvent(new K);e.custWallsSub.push(Q)}const m=e.wallsceneObject.addNode();g.value=m.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(),s.value=!0}g.value&&(g.value.inputs.selection=null),u.value=0}class z{constructor(i,m){this.path=i,this.node=m}onEvent(i){i.input.type=="hover",i.input.type=="unhover"?e.inputComponent.inputs.userNavigationEnabled=!0:i.input.type=="click"?console.log("Clicked emit"):i.input.type==="dragend"&&c
1onsole.log("Drag ended")}}function F(n){console.log("shrinkWall",n,a.value[n],a.value),a.value[n].collapse=!a.value[n].collapse,a.value[n].collapse?a.value[n].scale.z=e.hiddenWallSize:a.value[n].scale.z=a.value[n].extendedSizeZ,o.value=null,b(a.value)}return(n,i)=>t(j)?(S(),A("button",{key:0,onClick:W,class:"centerWallBtn"},R(s.value?"Hide Air Walls":"Show AirWalls"),1)):N("",!0)}};export{Ee as D,oe as _,D as a,Te as b,se as c,te as g};
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.