PageSourceSearch

https://www.visitbatonrouge.com/dist/PrevSibBg-Di8eUmxi.js

js visitbatonrouge.com collected 2026-10-02 02:56:39 UTC 1,801 bytes, 1 lines download raw bytes

1import{a}from"./main-Df6K71Wf.js";import"./feed-BZ6OquvI.js";import"./index--6mjBm2l.js";import"./ListenerManager-B9zmCDZv.js";const l=e=>(e?.trim()??"")||null,p=e=>e instanceof HTMLElement?e:null,v=e=>Array.from(e.classList).find(s=>s.startsWith("subtheme--dynamic-"))??null,o=(e,t,s,r)=>{if(!r){e.style.removeProperty(s),delete e.dataset[t];return}e.dataset[t]=r,e.style.setProperty(s,r)},u=(e,t,s=!1)=>{Array.from(e.classList).filter(i=>i.startsWith("subtheme--dynamic-")).forEach(i=>e.classList.remove(i));const n=e.dataset.prevBgSubthemeClass;if(n&&e.classList.remove(n),s&&e.classList.remove("is-prev-sib-class"),!t){delete e.dataset.prevBgSubthemeClass;return}e.dataset.prevBgSubthemeClass=t,e.classList.add(t),s&&e.classList.add("is-prev-sib-class")},S=(e={})=>{const t=e.replaceSubthemeClass===!0;return{prevSibling:null,prevColor:null,prevBgImage:null,prevBgSize:null,prevBgSubthemeClass:null,init(){return()=>this.mounted()},mounted(){const r=p(e.prevElOverride)??p(this.$el.previousElementSibling);this.prevSibling=r,r&&this.applyPrevStyles(r)},applyPrevStyles(s){const r=window.getComputedStyle(s),n=l(a("--bg-color",s))??l(r.backgroundColor),i=l(a("--bg-image",s))??l(r.backgroundImage),g=l(a("--bg-size",s))??l(r.backgroundSize),m=v(s);this.prevColor=n,this.prevBgImage=i,this.prevBgSize=g,this.prevBgSubthemeClass=m,o(this.$el,"prevColor","--prev-bg-color",n),o(this.$el,"prevBgImage","--prev-bg-image",i),o(this.$el,"prevBgSize","--prev-bg-size",g),t&&u(this.$el,m,t)},destroy(){this.prevSibling=null,this.prevColor=null,this.prevBgImage=null,this.prevBgSize=null,this.prevBgSubthemeClass=null,o(this.$el,"prevColor","--prev-bg-color",null),o(this.$el,"prevBgImage","--prev-bg-image",null),o(this.$el,"prevBgSize","--prev-bg-size",null),t&&u(this.$el,null,t)}}};export{S 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.