PageSourceSearch

https://www.silveradoresort.com/_nuxt/VForm.b20c852c.js

js silveradoresort.com collected 2026-10-02 04:53:29 UTC 3,515 bytes, 1 lines download raw bytes

1import{e as v}from"./entry.52391968.js";import{E as u,F as f,Y as m,J as y,a0 as p,a1 as b,V as g,a5 as E,al as k}from"./swiper-vue.d7b2d80e.js";const c=new Set(["INPUT","SELECT","TEXTAREA"]),w={name:"VForm",props:{lazy:{type:Boolean,default:!1},errors:{type:Object,default:()=>({})},preventNavigation:{type:Boolean,default:!1},honeypot:{type:[Boolean,String],default:!1}},data:()=>({dirty:!1,modified:!1,localInputs:{}}),computed:{listeners(){return this.$attrs},event(){return this.lazy?"change":"input"},valid(){return!Object.values(this.localInputs).find(t=>!t.valid)},error(){return!this.valid&&this.dirty},inputs(){const t={},{localInputs:r,errors:i}=this;for(const n in r){const s={...r[n],error:r[n].dirty&&!r[n].valid,errors:[]},e=new Map(Object.entries(i||{}));e.forEach((a,o)=>{if(!s.invalid[o])return;const l=e.get(o),d=o.replace("length","Length"),h=typeof l=="string"?l:s._inputEl.dataset[`${d}Message`]??l(s._inputEl[d]);s.errors.push(h)}),t[n]=s}return t}},mounted(){this.validate();const t=new MutationObserver(this.validate);t.observe(this.$el,{childList:!0,subtree:!0}),this.observer=t,this.preventNavigation&&window.addEventListener("beforeunload",this.preventNav),this.listeners.invalid&&(this.$el.noValidate=!0)},beforeRouteLeave(t,r,i){this.modified||i(),window.confirm("Leave without saving?")&&i()},beforeDestroy(){this.observer.disconnect(),window.removeEventListener("beforeunload",this.preventNav)},beforeUnmount(){this.observer.disconnect()},methods:{checkModified({target:t}){c.has(t.tagName)&&(this.modified=!0)},validate(){const t=this.$el.querySelectorAll("input, textarea, select"),r={};t.forEach(i=>{const{name:n,id:s,validity:e}=i,a=n||s;if(a)switch(r[a]={...this.localInputs[a],_inputEl:i,valid:e.valid,invalid:{type:e.typeMismatch,required:e.valueMissing,minlength:e.tooShort,maxlength:e.tooLong,min:e.rangeOverflow,max:e.rangeUnderflow,pattern:e.patternMismatch}},i.type){case"checkbox":r[a].value=i.checked;break;case"radio":i.checked&&(r[a].value=i.value);break;default:r[a].value=i.value}}),this.localInputs=r},onEvent(){this.validate()},onBlur({target:t}){if(!c.has(t.tagName))return;let r=t.name||t.id;this.dirty=!0,this.localInputs[r].dirty=!0},clear(){this.$el.querySelectorAll("input, textarea, select").forEach(r=>{["radio","checkbox"].includes(r.type)?r.checked=!1:r.value=""})},reset(){this.modified=!1,this.dirty=!1,this.validate()},onSubmit(t){if(!t.target.checkValidity()){this.$emit("invalid",t),this.dirty=!0;return}this.reset(),this.$emit("valid",t)},preventNav(t){this.modified&&(t.preventDefault(),t.returnValue="")}}},M=["method"],S=["name"];function N(t,r,i,n,s,e){return u(),f("form",g({method:t.$attrs.method||"POST",class:["vts-form",{"vts-form--invalid":!e.valid,"vts-form--dirty":t.dirty,"vts-form--error":e.error}]},{[k(e.event)]:r[0]||(r[0]=(...a)=>e.onEvent&&e.onEvent(...a))},{onKeydown:r[1]||(r[1]=(...a)=>e.checkModified&&e.checkModified(...a)),onChange:r[2]||(r[2]=(...a)=>e.checkModified&&e.checkModified(...a)),onSubmit:r[3]||(r[3]=(...a)=>e.onSubmit&&e.onSubmit(...a)),onBlurCapture:r[4]||(r[4]=(...a)=>e.onBlur&&e.onBlur(...a))},E(e.listeners,!0)),[i.honeypot?(u(),f("input",{key:0,name:typeof i.honeypot=="string"?i.honeypot:"vts-honeypot",class:"visually-hidden",tabindex:"-1",autocomplete:"off","aria-hidden":"true"},null,8,S)):m("",!0),y(t.$slots,"default",p(b({valid:e.valid,dirty:t.dirty,modified:t.modified,error:e.error,inputs:e.inputs,clear:e.clear,validate:e.validate})))],16,M)}const L=v(w,[["render",N]]);export{L 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.