PageSourceSearch

https://selfwalkwyndhamoklahomacity.web.app/assets/BrandingView.17078122.js

js selfwalkwyndhamoklahomacity.web.app collected 2026-10-03 12:35:44 UTC 11,388 bytes, 1 lines download raw bytes

1var Q=Object.defineProperty;var ee=(S,e,n)=>e in S?Q(S,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):S[e]=n;var M=(S,e,n)=>(ee(S,typeof e!="symbol"?e+"":e,n),n);import{D as ne}from"./CustWalls.b5dfe6e8.js";import{g as oe,r as te,u as ae,a as le}from"./index.esm2017.bcf50c05.js";import{u as X,p as ie,a as $}from"./index.263f3c22.js";import{a as se,T as re,C as ce,q as ue,B as de,b as pe,S as ge,e as me}from"./ToolUI.f7f6c048.js";import{_ as Y,r,w as E,c as b,d as L,e as w,t as B,h as fe,u as o,f as C,F as ve,i as be,m as I,l as z}from"./_plugin-vue_export-helper.f09dc1ee.js";import"./morecapbutton.44e58599.js";import{v as ye}from"./runtime-dom.esm-bundler.0e07a42a.js";import{T as we,d as A,s as Se,h as ke,q as Ie,A as Le,K as xe}from"./index.6c1396d6.js";import"./vue-router.51ed5a46.js";import"./TopLeftMenu.vue_vue_type_style_index_0_scoped_f4dbed34_lang.809c15c5.js";import"./qrcode.vue.esm.4be65f4b.js";const Ce={class:"airwallbutton8"},De={key:0,class:"airwall-source"},je={__name:"AddBranding",props:{collectionName:{type:String,required:!0}},setup(S){const e=S,n=X(),p=r(null);E(()=>n.selectedModel,()=>{console.log("model swap, reset wallscenObject:",n.selectedModel,n.brandingSceneObject),n.brandingSceneObject&&(n.brandingSceneObject.stop(),n.brandingSceneObject=null,subscriptions.forEach(t=>t.cancel()),subscriptions=[])});const g=r(0);function m(){u.value.inputs.visible=!0,g.value<3?(g.value++,u.value.inputs.selection=i.value[d.value]):g.value=0,console.log("aircontrol",g.value),g.value===0?u.value.inputs.selection=null:g.value===1?u.value.inputs.mode="translate":g.value===2?u.value.inputs.mode="scale":g.value===3&&(u.value.inputs.mode="rotate"),console.log("mode",u.value.inputs.mode)}const O=r(),u=r(),i=r([]);r([]),r([]);const d=r(0);r(5),r(),r("https://firebasestorage.googleapis.com/v0/b/selfwalksigniabonnetcreek-dev.appspot.com/o/airwallfilled.glb?alt=media&token=013adf65-b7b3-4ff1-8575-14e3aac7ea82"),r(),r(),r(),r(),r(1),r(1),r(5),r(5);const x=r(5),f=r(-10);class W{constructor(a,l){this.path=a,this.node=l}onEvent(a){a.input.type=="hover",a.input.type=="unhover"?n.inputComponent.inputs.userNavigationEnabled=!0:a.input.type=="click"?console.log("Clicked emit"):a.input.type==="dragend"&&console.log("Drag ended")}}const V=we(A,e.collectionName),T=r("createdAt"),F=r("asc");P(),E(T,P),E(F,P);function P(){const t=Se(V,ke(T.value,F.value));Ie(t,a=>{n.siteProInfo.branding=a.docs.map(l=>({...l.data(),id:l.id}))})}async function y(){let t=n.siteProInfo.branding.filter(l=>l.model===n.selectedModel);console.log("showBranding",t),i.value=[];let a=[];if(n.brandingSceneObject)console.log("brandingSceneObject.stop()"),n.brandingSceneObject.stop(),n.brandingSceneObject=null,a.forEach(l=>l.cancel()),a=[];else{await n.mpSdk.Scene.registerComponents([{factory:ie(n.mpSdk),name:$}]),console.log("creating wallsceneobj"),n.brandingSceneObject=(await n.mpSdk.Scene.createObjects(1))[0],console.log("creating wallsceneobj");for(let s=0;s<t.length;s++){i.value[s]=n.brandingSceneObject.addNode();const c=t[s];i.value[s].obj3D.position.set(c.position.x,c.position.y,c.position.z),i.value[s].obj3D.scale.set(c.scale.x,c.scale.y,c.scale.z),c.rotation&&i.value[s].obj3D.rotation.set(c.rotation.x,c.rotation.y,c.rotation.z),i.value[s].model=c.model,i.value[s].docid=c.id,O[s]={pos:i.value[s].obj3D.position,rot:i.value[s].obj3D.rotation,scale:i.value[s].obj3D.scale},console.log("wall"+s,O[s]),console.log("registering gltf");const j=i.value[s].addComponent($,{type:c.type,textureSrc:c.textureSrc,aspectRatio:1});console.log("wallnodecomp",j);const _=await n.brandingSceneObject.addEmitPath(j,"planeEvents"),h=n.brandingSceneObject.spyOnEvent(new W(_,i.value[s]));a.push(h);const v=await n.brandingSceneObject.addEmitPath(j,"planeEvents","wallNodeComp_"+s);class R{constructor(){M(this,"path",v)}onEvent(N){console.log("click evnet12 log"),N.input.type=="hover",N.input.type=="unhover"&&(console.log("userNavigationEnabled = true"),n.inputComponent.inputs.userNavigationEnabled=!0),N.input.type=="click"&&(console.log("click evnet log"),u.value.inputs.mode="translate",u.value.inputs.selection==null?(u.value.inputs.selection=i.value[s],p.value=i.value[s].docid,D.value=(i.value[s].obj3D.rotation.y*(180/Math.PI)).toFixed(2),d.value=s):u.value.inputs.selection=null,n.inputComponent.inputs.userNavigationEnabled=!0)}}const J=n.brandingSceneObject.spyOnEvent(new R);a.push(J),console.log("registered gltf")}const l=n.brandingSceneObject.addNode();u.value=l.addComponent("mp.transformControls",{mode:"scale",selection:null,size:1}),n.brandingSceneObject.addNode().addComponent("mp.ambientLight",{intensity:1,color:{r:1,g:1,b:1}}),n.brandingSceneObject.start()}u.value.inputs.selection=null,g.value=0}async function q(){return new Promise((t,a)=>
1{let l=document.createElement("input");l.type="file",l.onchange=k=>{let s=k.target.files[0],c=s.type;c.startsWith("image/")?c="image":c.startsWith("video/")?c="video":console.log("The file is neither an image nor a video");const j=oe();let _=te(j,"images/"+s.name);const h=ae(_,s);h.on("state_changed",v=>{const R=v.bytesTransferred/v.totalBytes*100;console.log("Upload is "+R+"% done")},v=>{console.error("Error uploading file to Firebase:",v),a(v)},()=>{le(h.snapshot.ref).then(v=>{console.log("File available at",v),t({fileType:c,downloadURL:v})})})},l.click()})}const D=r(0);async function Z(){try{let t=await q();if(!t)return;let a=t.downloadURL,l=t.fileType;console.log("addWall",n.selectedModel);let k=x.value,s=f.value;x.value=n.currentSweep.position.x,f.value=n.currentSweep.position.z;let c={position:{x:x.value,y:.1,z:f.value},scale:{x:1,y:1,z:1},rotation:{x:0,y:0,z:0},collapse:!1,extendedSizeZ:1,textureSrc:a,type:l,model:n.selectedModel};await n.addBrand(c),console.log("New wall params added:",c),x.value=k,f.value=s,y(),y()}catch(t){console.error("Error in addWall function:",t)}}async function U(t){const a=n.siteProInfo.branding.findIndex(l=>l.id===t);a!==-1?(await n.addBrand(n.siteProInfo.branding[a]),y(),y()):console.log("No wall found with docid:",t)}async function K(t){window.confirm("Are you sure you want to remove this location?")&&(await n.removeBrand(t),y(),p.value=null,y())}function G(t){const a=n.siteProInfo.branding.findIndex(k=>k.id===t);if(a===-1){console.error(`No wall found with id: ${t}`);return}const l=i.value.findIndex(k=>k.docid===t);if(l===-1){console.error(`No wall node found with id: ${t}`);return}D.value&&(n.siteProInfo.branding[a].rotation.y=D.value*(Math.PI/180),i.value[l].obj3D.rotation.y=D.value*(Math.PI/180)),y(),y()}async function H(){for(let t=0;t<i.value.length;t++){let a={position:{x:i.value[t].obj3D.position.x,y:i.value[t].obj3D.position.y,z:i.value[t].obj3D.position.z},rotation:{x:i.value[t].obj3D.rotation.x,y:i.value[t].obj3D.rotation.y,z:i.value[t].obj3D.rotation.z},scale:{x:i.value[t].obj3D.scale.x,y:i.value[t].obj3D.scale.y,z:i.value[t].obj3D.scale.z},extendedSizeZ:i.value[t].obj3D.scale.z,collapse:!1,model:i.value[t].model};try{const l=Le(A,"branding",i.value[t].docid);await xe(l,a),console.log("Brand successfully updated!")}catch(l){console.error("Error updating brand: ",l)}}}return(t,a)=>(b(),L(ve,null,[w("button",{onClick:m,id:"airwallcontrol",class:"airwallbutton2"},"S/R/T"),w("button",{onClick:a[0]||(a[0]=l=>y()),class:"airwallbutton"},"Branding"),w("button",{onClick:a[1]||(a[1]=l=>Z()),class:"airwallbutton3"},"Add Branding"),w("button",{onClick:a[2]||(a[2]=l=>U(p.value)),class:"airwallbutton4"},"Copy "+B(p.value?p.value.substring(0,3):""),1),w("button",{onClick:a[3]||(a[3]=l=>K(p.value)),class:"airwallbutton6"},"Delete "+B(p.value?p.value.substring(0,3):""),1),w("div",Ce,[fe(w("input",{onChange:a[4]||(a[4]=l=>G(p.value)),style:{height:"20px",width:"40px","border-radius":"10px"},id:"rotateDeg",type:"number","onUpdate:modelValue":a[5]||(a[5]=l=>D.value=l)},null,544),[[ye,D.value]])]),w("button",{onClick:a[6]||(a[6]=l=>H()),class:"airwallbutton5"},"Save All"),o(n).spaceInfo[o(n).selectedSpace]?(b(),L("div",De,"Current Source: "+B(o(n).spaceInfo[o(n).selectedSpace].name),1)):C("",!0)],64))}},Oe=Y(je,[["__scopeId","data-v-96a6b99d"]]);const he={key:0},Be={key:0},Pe={key:1},_e={key:0},Re={key:1},Ne={__name:"BrandingView",setup(S){const e=X(),n=r(e.siteProInfo.mapLink),p=r();r(0);function g(){n.value=e.centerSRC,e.cFrameOn=!e.cFrameOn}const m={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%"};be(()=>{console.log("navlinks",p),console.log("selectedspace",e.selectedSpace)});function O(){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 u(){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(i,d)=>{var x;return o(e).siteProInfo.plan!="Basic"&&o(e).siteProInfo.plan!="BasicPlus"?(b(),L("div",he,[I(Oe,{collectionName:"branding"}),I(se,{menu:m.tR,menuX:m.tRX,menuY:m.tRightY,onClick:d[0]||(d[0]=f=>(o(e).docBoxOn=!o(e).docBoxOn,o(e).mpInteracting=!1,o(e).bRFrameOn=!1)),onMouseenter:d[1]||(d[1]=f=>(o(e).docBoxOn=!0,o(e).docBoxMenu=!0,o(e).mpInteracting=!1,o(e).bRFrameOn=!1))},null,8,["menu","menuX","menuY"]),o(e).docBoxOn?(b(),z(ne,{key:0})):C("",!0),I(re,{menu:m.tL,menuX:m.tLX,menuY:m.tLeftY,onClick:d[2]||(d[2]=f=>(o(e).tLNavOn=!0,o(e).mpInteracting=!1)),onMouseenter:d[3]||(d[3]=f=>(o(e).tLNavOn=!0,o(e).mpInteracting=!1))},null,8,["menu","menuX","menuY"]),I(ce,{frameSRC:n.value},null,8,["frameSRC"]),I(ue,{navTitle:"Amenities",navLinks:o(e).getNavLinks,onMouseleave:d[4]||(d[4]=f=>(o(e).tLNavOn=!1,o(e).mpInteracting=!1))},null,8,["navLinks"]),o(e).bRFrameOn&&o(e).mpInteracting==!1?(b(),z(me,{key:1})):C("",!0),I(de,{menu:m.bL,menuX:m.bLX,menuY:m.bLY,onClick:d[5]||(d[5]=f=>(o(e).centerSRC=o(e).siteProInfo.mapLink,g(),o(e).mpInteracting=!1))},null,8,["menu","menuX","menuY"]),I(pe,{class:"overlayZ"}),w("button",{onClick:O,class:"ctabutton tooltip"},[(x=o(e).spaceInfo[o(e).selectedSpace])!=null&&x.ctaText?(b(),L("span",Be,B(o(e).spaceInfo[o(e).selectedSpace].ctaText),1)):(b(),L("span",Pe,"Contact Sales"))]),!o(e).isExpanded&&o(e).siteProInfo.mobileDiningLink&&o(e).spaceInfo[o(e).selectedSpace]&&(o(e).spaceInfo[o(e).selectedSpace].category.toLowerCase()==="guest rooms"||o(e).spaceInfo[o(e).selectedSpace].category.toLowerCase()==="dining")?(b(),L("button",{key:2,onClick:u,class:"roomdiningbutton tooltip"},[o(e).siteProInfo.mobileDiningLink&&o(e).spaceInfo[o(e).selectedSpace].category.toLowerCase()==="guest rooms"?(b(),L("span",_e,"Order In-Room Dining")):C("",!0),o(e).siteProInfo.mobileDiningLink&&o(e).spaceInfo[o(e).selectedSpace].category.toLowerCase()==="dining"?(b(),L("span",Re,"Order For Pickup")):C("",!0)])):C("",!0),I(ge)])):C("",!0)}}},Ue=Y(Ne,[["__scopeId","data-v-86048aae"]]);export{Ue 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.