PageSourceSearch

https://www.votelevy.gov/scripts/66.js

js votelevy.gov collected 2026-10-09 23:10:41 UTC 5,506 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[66],{66:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var i=n(726),o={id:"video-background",class:"VideoBg static"},r=["poster"],s=["src","type"];var a={props:{sources:{type:Array,required:!0},img:{type:String}},data:function(){return{videoRatio:null}},mounted:function(){var e=this;this.setImageUrl(),this.setContainerHeight(),this.videoCanPlay()&&(this.$refs.video.oncanplay=function(){e.$refs.video&&(e.videoRatio=e.$refs.video.videoWidth/e.$refs.video.videoHeight,e.setVideoSize(),e.$refs.video.style.visibility="visible")}),window.addEventListener("resize",this.resize,{passive:!0})},beforeDestroy:function(){window.removeEventListener("resize",this.resize)},methods:{resize:function(){this.setContainerHeight(),this.videoCanPlay()&&this.setVideoSize()},videoCanPlay:function(){return!!this.$refs.video.canPlayType},setImageUrl:function(){this.img&&(this.$el.style.backgroundImage="url(".concat(this.img,")"))},setContainerHeight:function(){this.$el.style.height="".concat(this.$el.offsetParent.offsetHeight,"px")},setVideoSize:function(){var e,t;this.$el.offsetWidth/this.$el.offsetHeight>this.videoRatio?e=this.$el.offsetWidth:t=this.$el.offsetHeight,this.$refs.video.style.width=e?"".concat(e,"px"):"auto",this.$refs.video.style.height=t?"".concat(t,"px"):"auto"},getMediaType:function(e){return"video/"+e.split(".").pop()}}},c=n(72),u=n.n(c),d=n(350),l={insert:"head",singleton:!1};u()(d.A,l),d.A.locals;var f=(0,n(262).A)(a,[["render",function(e,t,n,a,c,u){return(0,i.uX)(),(0,i.CE)("section",o,[(0,i.Lk)("video",{preload:"none",autoplay:"",loop:"",muted:"",playsinline:"",poster:n.img,style:{width:"auto !important",height:"100vh !important","max-width":"none !important"},ref:"video"},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(n.sources,(function(e){return(0,i.uX)(),(0,i.CE)("source",{key:e.index,src:e,type:u.getMediaType(e)},null,8,s)})),128))],8,r)])}]])},72:function(e,t,n){var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=n[c]||0,d="".concat(c," ").concat(u);n[c]=u+1;var l=a(d),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==l?(s[l].references++,s[l].updater(f)):s.push({identifier:d,updater:g(f,t),references:1}),i.push(d)}return i}function u(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}
vendor: 2,698 bytes, line 1
1if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var d,l=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function f(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function h(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,v=0;function g(e,t){var n,i,o;if(t.singleton){var r=v++;n=p||(p=u(t)),i=f.bind(null,n,r,!1),o=f.bind(null,n,r,!0)}else n=u(t),i=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=c(e,t),u=0;u<n.length;u++){var d=a(n[u]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}n=r}}}},262:function(e,t){t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n}},314:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},350:function(e,t,n){var i=n(314),o=n.n(i)()((function(e){return e[1]}));o.push([e.id,".VideoBg{background-position:50%;background-size:cover;bottom:0;display:block;left:0;position:absolute;right:0;top:0}.VideoBg video{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);visibility:hidden}.VideoBg__content{bottom:0;left:0;position:absolute;right:0;top:0}",""]),t.A=o}}]);

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.