PageSourceSearch

https://selfwalkwestinstfrancis.web.app/assets/DashboardView.67f4e135.js

js selfwalkwestinstfrancis.web.app collected 2026-10-03 12:35:41 UTC 10,764 bytes, 1 lines download raw bytes

1import{v as x,w as T}from"./runtime-dom.esm-bundler.0e07a42a.js";import{u as L}from"./index.91e6b738.js";import"./index.esm2017.8bfa16b3.js";import{A as g,q as U,d as y,r as R}from"./index.f0aed587.js";import{_ as E}from"./ToolUI.6222113e.js";import{_ as k,r as a,i as C,u,c as r,d,e,h as P,m as A,f as w,p as S,g as $,o as Z,t as b,F as O,I as H}from"./_plugin-vue_export-helper.f09dc1ee.js";import{u as D,a as z}from"./vue-router.51ed5a46.js";import{Q}from"./qrcode.vue.esm.4be65f4b.js";import{l as j}from"./index.76a47665.js";/* empty css                                                                       */import"./TopLeftMenu.vue_vue_type_style_index_0_scoped_f4dbed34_lang.809c15c5.js";import"./storeDiagrams.b0a6fac8.js";/* empty css                                                                             *//* empty css                                                                         *//* empty css                                                                         */import"./morecapbutton.44e58599.js";import"./CustWalls.1b5f7d02.js";const M=c=>(S("data-v-798e531f"),c=c(),$(),c),q={class:"close"},K=M(()=>e("header",{class:"modal-header"},[e("div",{class:"modal-title"},"Share"),e("div",{role:"button","aria-label":"Close","aria-disabled":"false",class:"icon-button button-interactive icon-button-plain close-button","data-balloon":"Close","data-balloon-pos":"down","data-balloon-pre":"false"},[e("span",{class:"icon icon-close"})])],-1)),G={class:"modal-body"},J={class:"share-controls"},W={class:"input-group"},X=M(()=>e("button",{class:"input-addon"},"Copy",-1)),Y=[X],ee={__name:"ShareProposal",setup(c){const o=L();a(!1),a(!1),a(!1);const n=a(!0),f=a();n.value=!0,console.log("share specific",n.value),C(()=>{n.value=!0,console.log("share specific",n.value),console.log("share Mount",o.linkToShare),o.currentLink=o.linkToShare}),D();const v=()=>{navigator.clipboard.writeText(o.shareProposalLink).then(()=>{const l=document.createElement("div");l.innerHTML="Link copied to clipboard!",l.style.position="fixed",l.style.top="50%",l.style.left="50%",l.style.transform="translate(-50%, -50%)",l.style.padding="10px",l.style.background="#007aff",l.style.color="#fff",l.style.borderRadius="5px",l.style.zIndex="9999",document.body.appendChild(l),setTimeout(()=>{l.remove()},2e3)})};return C(()=>{console.log("share Mount",o.linkToShare),f.value=o.linkToShare}),(l,h)=>u(o).shareProposalOn?(r(),d("div",{key:0,class:"modal share-modal",onKeyup:h[2]||(h[2]=T(m=>u(o).shareProposalOn=!1,["esc"]))},[e("button",q,[e("img",{src:E,onClick:h[0]||(h[0]=m=>u(o).shareProposalOn=!1)})]),K,e("div",G,[e("div",J,[e("div",W,[P(e("input",{class:"input",type:"text",readonly:"","onUpdate:modelValue":h[1]||(h[1]=m=>u(o).shareProposalLink=m)},null,512),[[x,u(o).shareProposalLink]]),e("div",{role:"button","data-balloon":"Copy URL","data-balloon-pos":"up",class:"data-balloon",onClick:v},Y)]),A(Q,{value:u(o).shareProposalLink,options:{width:128,errorCorrectionLevel:"H"}},null,8,["value"])])])],32)):w("",!0)}},oe=k(ee,[["__scopeId","data-v-798e531f"]]);const i=c=>(S("data-v-47b16d0e"),c=c(),$(),c),te={key:0},se={class:"mainContainer"},ae={class:"buildTitle"},le={class:"mainContent"},ie={class:"addCustRow"},ne=i(()=>e("div",{class:"sitepros"},"SitePros",-1)),re={class:"right-group"},de={style:{width:"100%",height:"0.5rem",display:"flex","justify-content":"center"}},ce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 525 1",preserveAspectRatio:"none",style:{width:"100%",height:"1px"}},pe=i(()=>e("path",{opacity:"0.2",d:"M0 0H525V1H0V0Z",fill:"#F2F1ED"},null,-1)),ue=[pe],he={class:"custContainer"},_e={class:"custRowContainer"},me={class:"cust-line-block"},fe={key:0,class:"cust-line"},ve={class:"groupLeft"},Ce=["src"],we={class:"cust-line-text"},ge={style:{display:"flex",gap:".75rem"}},ye=["onClick"],be=i(()=>e("rect",{width:"26",height:"26",rx:"4",fill:"#B46C26"},null,-1)),xe=i(()=>e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 8C20 7.44772 19.5523 7 19 7L17 7C16.4477 7 16 6.55228 16 6C16 5.44772 15.5523 5 15 5L11 5C10.4477 5 10 5.44772 10 6C10 6.55229 9.55228 7 9 7L7 7C6.44772 7 6 7.44772 6 8C6 8.55228 6.44772 9 7 9L7.00003 17.3333C7.00003 19.3584 8.64166 21 10.6667 21L15.3333 21C17.3584 21 19 19.3584 19 17.3333L19 9C19.5523 9 20 8.55228 20 8ZM10 11C10 10.4477 10.4477 10 11 10C11.5523 10 12 10.4477 12 11L12 17C12 17.5523 11.5523 18 11 18C10.4477 18 10 17.5523 10 17L10 11ZM15 10C14.4477 10 14 10.4477 14 11L14 17C14 17.5523 14.4477 18 15 18C15.5523 18 16 17.5523 16 17L16 11C16 10.4477 15.5523 10 15 10Z",fill:"white"},null,-1)),Le=[be,xe],ke=["onClick"],Pe=i(()=>e("rect",{width:"26",height:"26",rx:"4",fill:"grey"},null,-1)),Ae=i(()=>e("g",{transform:"translate(13,13) scale(1.5) translate(-5,-5)"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.00537109 10.0005V7.85747L5.36296 2.49988L7.506 4.64291L2.14841 10.0005H0.00537109Z",fill:"white"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.43457 1.42834L7.54895 0.313965C7.64841 0.214429 7.76651 0.13547 7.89651 0.0815978C8.0265 0.0277254 8.16583 0 8.30654 0C8.44726 0 8.5866 0.0277254 8.71659 0.0815978C8.84659 0.13547 8.96469 0.214429 9.06415 0.313965L9.69198 0.941808C9.79152 1.04127 9.87048 1.15937 9.92435 1.28937C9.97822 1.41936 10.006 1.55869 10.006 1.6994C10.006 1.84012 9.97822 1.97945 9.92435 2.10944C9.87048 2.23944 9.79152 2.35754 9.69198 2.457L8.57761 3.57138L6.43457 1.42834Z",fill:"white"})],-1)),Se=[Pe,Ae],$e=["onClick"],De=i(()=>e("rect",{width:"26",height:"26",rx:"4",fill:"grey"},null,-1)),Me=i(()=>e("g",{transform:"translate(13,13) scale(1) translate(-8.5,-8.5)"},[e("path",{d:"M10.3309 3.48908C10.3353 3.61086 10.3477 3.73224 10.368 3.85239L5.40898 6.33179C4.98546 5.9225 4.45082 5.64693 3.87173 5.53944C3.29265 5.43194 2.69473 5.49727 2.15253 5.7273C1.61033 5.95
1733 1.14783 6.34187 0.822708 6.83298C0.497583 7.3241 0.324219 7.90004 0.324219 8.48902C0.324219 9.078 0.497583 9.65398 0.822708 10.1451C1.14783 10.6362 1.61033 11.0207 2.15253 11.2508C2.69473 11.4808 3.29265 11.5461 3.87173 11.4386C4.45082 11.3311 4.98546 11.0556 5.40898 10.6463L10.368 13.1263C10.3477 13.2463 10.3353 13.3675 10.3309 13.4891C10.3283 14.1838 10.566 14.858 11.0038 15.3975C11.4415 15.937 12.0523 16.3085 12.7327 16.4491C13.413 16.5897 14.1211 16.4907 14.7368 16.169C15.3525 15.8472 15.838 15.3224 16.111 14.6835C16.384 14.0447 16.4277 13.3311 16.2347 12.6637C16.0417 11.9963 15.6239 11.4162 15.052 11.0217C14.4802 10.6272 13.7895 10.4425 13.0971 10.499C12.4047 10.5555 11.7531 10.8498 11.2528 11.3318L6.29379 8.85239C6.34326 8.61272 6.34326 8.36544 6.29379 8.12577L11.2528 5.64579C11.7512 6.12383 12.3994 6.41499 13.0877 6.47001C13.7761 6.52502 14.4623 6.34051 15.0303 5.9477C15.5983 5.55489 16.0131 4.97787 16.2045 4.31437C16.3959 3.65087 16.3522 2.9416 16.0808 2.30662C15.8094 1.67163 15.3269 1.14993 14.715 0.829811C14.1031 0.50969 13.3994 0.410832 12.723 0.549934C12.0466 0.689037 11.439 1.05755 11.0031 1.59315C10.5672 2.12875 10.3297 2.79852 10.3309 3.48908Z",fill:"white"})],-1)),Ie=[De,Me],Ve=["onClick"],Be=i(()=>e("rect",{width:"26",height:"26",rx:"4",fill:"grey"},null,-1)),Fe=i(()=>e("g",{transform:"translate(2,2) scale(0.91667)"},[e("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 13c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10a4 4 0 100 8 4 4 0 000-8z",fill:"white"})],-1)),Ne=[Be,Fe],Te=i(()=>e("div",{id:"toast",class:"toast",style:{display:"none"}},"URL copied to clipboard!",-1)),Ue=i(()=>e("div",{id:"sourceFloorDiv"},null,-1)),Re={__name:"DashboardView",setup(c){const o=L();z(),D(),a(!1),a(!1),a(!0),a(!1),a(!1);const n=a(null),f=g(y,"sitePro","info");function v(s){let t=`${window.location.origin}/curated/${s.id}`;s.landingVideo&&(t+="?&lvid=1"),window.open(t,"_blank")}U(f,s=>{s.exists()?o.siteProInfo=s.data():console.error("No such document!")},s=>{console.error("Error fetching document:",s)}),j(o.updateAdminField,500);function l(s){const p=window.location.origin+s;window.open(p,"_blank")}function h(s){let t=`${window.location.origin}/curated/${s.id}`;s.landingVideo&&(t+="?&lvid=1"),o.shareProposalLink=t,console.log("new link",o.shareProposalLink),o.shareProposalOn=!0}a({name:"",order:0}),a({name:"",order:0});async function m(s){window.confirm("Are you sure you want to delete this proposal?")&&(o.removeProposal(s),o.readProposalsFromFire())}async function I(){if(!n.value){alert("No proposal label, please enter a new name");return}let s=n.value.replace(/\s+/g,"").toUpperCase();if(o.proposalInfo.some(t=>t.id.toUpperCase()===s))console.log("Name already exists"),alert("Name already exists, please enter a new name");else{console.log("Name is unique"),console.log("No such document, creating a new one");const t=g(y,"curated",s),_=new Date().toISOString().split("T")[0],N={dateStart:_,dateEnd:_,createdAt:R()};await o.createDocumentAndCopyBranding(t,N),n.value=null,await o.readProposalsFromFire(),l(`/curated/${t.id}/builder`)}}a(""),a(""),a(null);const V=a(""),B=a("");return C(()=>{}),Z(async()=>{await o.readProposalsFromFire(),console.log("proposals",o.proposalInfo),V.value="url",B.value="images"}),(s,p)=>u(o).isLoaded?(r(),d("div",te,[e("div",se,[e("div",ae,[e("div",null,[e("div",null,b(u(o).siteProInfo.hotelName)+" Dashboard ",1)])]),e("div",le,[e("div",ie,[ne,e("div",re,[P(e("input",{placeholder:"Customer Name","onUpdate:modelValue":p[0]||(p[0]=t=>n.value=t)},null,512),[[x,n.value]]),e("button",{onClick:p[1]||(p[1]=t=>I()),class:"upload-btn"},"Create SitePro")])]),e("div",de,[(r(),d("svg",ce,ue))]),e("div",he,[e("div",_e,[(r(!0),d(O,null,H(u(o).proposalInfo,(t,F)=>(r(),d("div",me,[t.id!=="DEFAULT"?(r(),d("div",fe,[e("div",ve,[e("img",{src:t.textureSrc||t.textureSrc2||t.textureSrc3||"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",style:{width:"50px",height:"40px","object-fit":"contain","border-radius":"1em","background-color":"white"},alt:"Image Preview"},null,8,Ce),e("div",we,b(t.id),1)]),e("div",ge,[(r(),d("svg",{style:{cursor:"pointer"},onClick:_=>m(t.id),xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},Le,8,ye)),(r(),d("svg",{style:{cursor:"pointer"},onClick:_=>l(`/curated/${t.id}/builder`),xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},Se,8,ke)),(r(),d("svg",{style:{cursor:"pointer"},onClick:_=>h(t),xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},Ie,8,$e)),(r(),d("svg",{style:{cursor:"pointer"},onClick:_=>v(t),xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},Ne,8,Ve))])])):w("",!0)]))),256))])])])]),Te,A(oe),Ue])):w("",!0)}},so=k(Re,[["__scopeId","data-v-47b16d0e"]]);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.