PageSourceSearch

https://ceragemus.com/cdn/shop/t/35/assets/section-main-collection.script-global-67GqKXpX.js

js ceragemus.com collected 2026-10-07 13:27:06 UTC 3,352 bytes, 1 lines download raw bytes

1var d=Object.defineProperty;var g=(o,t,e)=>t in o?d(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var n=(o,t,e)=>g(o,typeof t!="symbol"?t+"":t,e);import{s as i}from"./index-B2z_lZoq.js";import{X as y,c as h}from"./customElements-DUcWKMTn.js";import"./index-7HJOtP4p.js";import"./index-CmLoO4PE.js";var v=Object.defineProperty,C=Object.getOwnPropertyDescriptor,b=(o,t,e)=>t in o?v(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,f=(o,t,e,s)=>{for(var r=s>1?void 0:s?C(t,e):t,a=o.length-1,u;a>=0;a--)(u=o[a])&&(r=u(r)||r);return r},p=(o,t,e)=>b(o,typeof t!="symbol"?t+"":t,e);const l="xo-active",_="xo-main-collection__left",S="xo-main-collection__right",x="filter-content__grid--vertical",P="xo-main-collection__toggle-text";function T(o){return function(...t){document.startViewTransition?document.startViewTransition(()=>{o(...t)}):o(...t)}}let c=class extends y{constructor(){super(...arguments);n(this,"storageKeyMobile","currentColumnMobile");n(this,"storageKeyDesktop","currentColumnDesktop");n(this,"state",{isActive:!0,columnMobile:this.getInitialColumnMobile(),columnDesktop:this.getInitialColumnDesktop()});n(this,"handleClick",()=>{this.setState({isActive:!this.state.isActive})})}getInitialColumnMobile(){const t=i.getItem(this.storageKeyMobile);return t?Number(t):2}getInitialColumnDesktop(){const t=i.getItem(this.storageKeyDesktop);return t?Number(t):3}saveColumnToStorage(t,e){i.setItem(this.storageKeyMobile,t.toString()),i.setItem(this.storageKeyDesktop,e.toString())}mount(){this.addEventListener("click",T(this.handleClick)),window.addEventListener("beforeunload",()=>{i.removeItem(this.storageKeyMobile),i.removeItem(this.storageKeyDesktop)})}updateSidebar(){const{isActive:t}=this.state,e=document.querySelector(`.${_}`),s=document.querySelector(`.${S}`);e&&s&&(t!==!0?(e.classList.add(l),s.classList.add(l),s.style.setProperty("--lg","12"),s.style.setProperty("--md","12")):(e.classList.remove(l),s.classList.remove(l),s.style.setProperty("--lg","9"),s.style.setProperty("--md","8")))}updateButtonText(){const{isActive:t}=this.state,e=document.querySelector(`.${P}`);e&&(t===!0?e.textContent="Hide filter":e.textContent="Show filter")}updateGrid(){const{isActive:t}=this.state,{xoColumnDesktop:e}=this.props,{xoColumnMobile:s}=this.props,r=document.querySelector(`.${x}`);r&&(t===!0?(r.style.setProperty("--md",`${s}`),r.style.setProperty("--lg",`${e}`),this.saveColumnToStorage(s,e)):(r.style.setProperty("--md",`${s+1}`),r.style.setProperty("--lg",`${e+1}`),this.saveColumnToStorage(s+1,e+1)))}stateUpdate(){const{isActive:t}=this.state;this.updateSidebar(),this.updateButtonText(),this.updateGrid(),this.setProps({xoActive:t})}unmount(){this.removeEventListener("click",this.handleClick)}};p(c,"propTypes",{xoActive:"boolean",xoColumnDesktop:"number",xoColumnMobile:"number"});p(c,"observedProps",["xoActive"]);c=f([h("xo-show-hide-button")],c);const m=document.querySelector("xo-filters-content");m&&m.handleContent(o=>{const t=new DOMParser().parseFromString(o,"text/html"),e=i.getItem("currentColumnMobile"),s=i.getItem("currentColumnDesktop"),r=t.querySelector(".filter-content__grid--vertical");return r&&(e&&s?(r.style.setProperty("--md",e),r.style.setProperty("--lg",s)):(r.style.setProperty("--md","2"),r.style.setProperty("--lg","3"))),t.body.innerHTML});export{c as ShowHideButton};

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.