PageSourceSearch

https://mekes.com/app/themes/lyfter-child/dist/assets/main-BhC7OKyQ.js

js mekes.com collected 2026-10-08 09:59:35 UTC 14,026 bytes, 1 lines download raw bytes

1class C{static init(){C.initFilterForms(),C.initDropdowns(),C.initCustomFilters()}static initFilterForms(){const i=document.querySelectorAll("form.woocommerce-widget-layered-nav-dropdown");i!==null&&i.forEach(c=>{const l=c.querySelector("select.woocommerce-widget-layered-nav-dropdown"),p=c.querySelector("input");l!==null&&p!==null?l.addEventListener("change",()=>{p.value=l.value,c.submit()}):c.classList.add("hidden")})}static initDropdowns(){const i=document.querySelectorAll("#sidebar-shop aside");i!==null&&i.forEach(c=>{const l=c.querySelector("h3");l!==null&&l.addEventListener("click",()=>{c.classList.contains("open")?c.classList.remove("open"):(i.forEach(p=>{p.classList.remove("open")}),c.classList.add("open"))})})}static initCustomFilters(){document.addEventListener("change",i=>{const c=i.target;if(!c)return;const l=c.closest("form.custom-filter-form");if(l){C.consolidateAndSubmit(l);return}const p=c.closest("form.custom-cat-filter-form");if(p){const f=p.querySelector('input[type="radio"]:checked');if(f&&f.dataset.url){const g=new URL(f.dataset.url,window.location.origin);p.querySelectorAll('input[type="hidden"]').forEach(t=>{t.name&&t.value&&g.searchParams.append(t.name,t.value)}),window.location.href=g.toString()}else p.submit()}})}static consolidateAndSubmit(i){const c=i.querySelectorAll('input[type="checkbox"][data-taxonomy]'),l={};
1c.forEach(f=>{const g=f.dataset.taxonomy;g&&(l[g]||(l[g]=[]),f.checked&&l[g].push(f.value))}),Object.keys(l).forEach(f=>{const g="filter_"+f.replace(/^pa_/,"");let y=i.querySelector('input[name="'.concat(g,'"]'));y||(y=document.createElement("input"),y.type="hidden",y.name=g,i.appendChild(y)),y.value=l[f].join(",")}),Array.from(new Set(Array.from(c).map(f=>f.dataset.taxonomy).filter(Boolean))).forEach(f=>{if(l[f]&&l[f].length)return;const g="filter_"+f.replace(/^pa_/,""),y=i.querySelector('input[name="'.concat(g,'"]'));y&&(y.value="")}),c.forEach(f=>{f.disabled=!0}),i.submit()}}class ut{static init(){lftr.carousel.slick(".products-slider",{infinite:!1,arrows:!0,slidesToShow:4,prevArrow:"<div class='slick-prev'><span class='fa-solid fa-arrow-left'></span></div>",nextArrow:"<div class='slick-next'><span class='fa-solid fa-arrow-right'></span></div>",responsive:[{breakpoint:1600,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:990,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:650,settings:{slidesToShow:1,slidesToScroll:1}}]})}}function pt(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}var D={exports:{}},ft=D.exports,lt;function dt(){return lt||(lt=1,function(w){(function(i,c){{if(!i.document)throw new Error("HC-Sticky requires a browser to run.");w.exports=c(i)}})(typeof window<"u"?window:ft,function(i){var c,l,p=i.document,f={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,responsive:null,mobileFirst:!1,onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},g=function(t,s,a){console.warn("%cHC Sticky:%c "+a+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+s+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},y=function(t,s){var a=this;if(s=s||{},!(t=typeof t=="string"?p.querySelector(t):t))return!1;s.queries&&g("queries","responsive","option"),s.queryFlow&&g("queryFlow","mobileFirst","option");var e={},n=y.Helpers,h=t.parentNode;n.getStyle(h,"position")==="static"&&(h.style.position="relative");function u(o){n.isEmptyObject(o=o||{})&&!n.isEmptyObject(e)||(e=Object.assign({},f,e,o))}function x(){return e.disable}function T(){var o,r=e.responsive||e.queries;if(r){var v=i.innerWidth;if(o=s,(e=Object.assign({},f,o||{})).mobileFirst)for(var b in r)b<=v&&!n.isEmptyObject(r[b])&&u(r[b]);else{var j,O=[];for(j in r){var at={};at[j]=r[j],O.push(at)}for(var X=O.length-1;0<=X;X--){var G=O[X],J=Object.keys(G)[0];v<=J&&!n.isEmptyObject(G[J])&&u(G[J])}}}}function ct(){var o,r,v,b;d.css=(o=t,r=n.getCascadedStyle(o),v=n.getStyle(o),b={height:o.offsetHeight+"px",left:r.left,right:r.right,top:r.top,bottom:r.bottom,position:v.position,display:v.display,verticalAlign:v.verticalAlign,boxSizing:v.boxSizing,marginLeft:r.marginLeft,marginRight:r.marginRight,marginTop:r.marginTop,marginBottom:r.marginBottom,paddingLeft:r.paddingLeft,paddingRight:r.paddingRight},r.float&&(b.float=r.float||"none"),r.cssFloat&&(b.cssFloat=r.cssFloat||"none"),v.MozBoxSizing&&(b.MozBoxSizing=v.MozBoxSizing),b.width=r.width!=="auto"?r.width:b.boxSizing==="border-box"||b.MozBoxSizing==="border-box"?o.offsetWidth+"px":v.width,b),m.init(),z=!(!e.stickTo||!(e.stickTo==="document"||e.stickTo.nodeType&&e.stickTo.nodeType===9||typeof e.stickTo=="object"&&e.stickTo instanceof(typeof HTMLDocument<"u"?HTMLDocument:Document))),W=e.stickTo?z?p:n.getElement(e.stickTo):h,E=(st=function(){var j=t.offsetHeight+(parseInt(d.css.marginTop)||0)+(parseInt(d.css.marginBottom)||0),O=(E||0)-j;return-1<=O&&O<=1?E:j})(),H=(it=function(){return z?Math.max(p.documentElement.clientHeight,p.body.scrollHeight,p.documentElement.scrollHeight,p.body.offsetHeight,p.documentElement.offsetHeight):W.offsetHeight})(),R=z?0:n.offset(W).top,tt=e.stickTo?z?0:n.offset(h).top:R,L=i.innerHeight,ot=t.offsetTop-(parseInt(d.css.marginTop)||0),$=n.getElement(e.innerSticker),k=isNaN(e.top)&&-1<e.top.indexOf("%")?parseFloat(e.top)/100*L:e.top,I=isNaN(e.bottom)&&-1<e.bottom.indexOf("%")?parseFloat(e.bottom)/100*L:e.bottom,S=$?$.offsetTop:e.innerTop||0,et=isNaN(e.bottom
1End)&&-1<e.bottomEnd.indexOf("%")?parseFloat(e.bottomEnd)/100*L:e.bottomEnd,N=R-k+S+ot}function _(){E=st(),H=it(),U=R+H-k-et,P=L<E;var o,r=i.pageYOffset||p.documentElement.scrollTop,v=n.offset(t).top,b=v-r;nt=r<Y?"up":"down",Q=r-Y,N<(Y=r)?U+k+(P?I:0)-(e.followScroll&&P?0:k)<=r+E-S-(L-(N-S)<E-S&&e.followScroll&&0<(o=E-L-S)?o:0)?d.release({position:"absolute",bottom:tt+h.offsetHeight-U-k}):P&&e.followScroll?nt=="down"?b+E+I<=L+.9?d.stick({bottom:I}):d.position==="fixed"&&d.release({position:"absolute",top:v-k-N-Q+S}):Math.ceil(b+S)<0&&d.position==="fixed"?d.release({position:"absolute",top:v-k-N+S-Q}):r+k-S<=v&&d.stick({top:k-S}):d.stick({top:k-S}):d.release({stop:!0})}function q(){B&&(i.removeEventListener("scroll",_,n.supportsPassive),B=!1)}function K(){t.offsetParent!==null&&n.getStyle(t,"display")!=="none"?(ct(),H<E?q():(_(),B||(i.addEventListener("scroll",_,n.supportsPassive),B=!0))):q()}function Z(){t.style.position="",t.style.left="",t.style.top="",t.style.bottom="",t.style.width="",t.classList?t.classList.remove(e.stickyClass):t.className=t.className.replace(new RegExp("(^|\\b)"+e.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),d.css={},!(d.position=null)===m.isAttached&&m.detach()}function A(){Z(),T(),(x()?q:K)()}function V(){M&&(i.removeEventListener("resize",rt,n.supportsPassive),M=!1),q()}var z,W,$,H,R,tt,L,k,I,S,et,N,U,P,E,ot,it,st,Q,nt,d={css:{},position:null,stick:function(o){o=o||{},n.hasClass(t,e.stickyClass)||(m.isAttached===!1&&m.attach(),d.position="fixed",t.style.position="fixed",t.style.left=m.offsetLeft+"px",t.style.width=m.width,o.bottom===void 0?t.style.bottom="auto":t.style.bottom=o.bottom+"px",o.top===void 0?t.style.top="auto":t.style.top=o.top+"px",t.classList?t.classList.add(e.stickyClass):t.className+=" "+e.stickyClass,e.onStart&&e.onStart.call(t,Object.assign({},e)))},release:function(o){var r;(o=o||{}).stop=o.stop||!1,o.stop!==!0&&d.position!=="fixed"&&d.position!==null&&(o.top===void 0&&o.bottom===void 0||o.top!==void 0&&(parseInt(n.getStyle(t,"top"))||0)===o.top||o.bottom!==void 0&&(parseInt(n.getStyle(t,"bottom"))||0)===o.bottom)||(o.stop===!0?m.isAttached===!0&&m.detach():m.isAttached===!1&&m.attach(),r=o.position||d.css.position,d.position=r,t.style.position=r,t.style.left=o.stop===!0?d.css.left:m.positionLeft+"px",t.style.width=(r!=="absolute"?d.css:m).width,o.bottom===void 0?t.style.bottom=o.stop===!0?"":"auto":t.style.bottom=o.bottom+"px",o.top===void 0?t.style.top=o.stop===!0?"":"auto":t.style.top=o.top+"px",t.classList?t.classList.remove(e.stickyClass):t.className=t.className.replace(new RegExp("(^|\\b)"+e.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),e.onStop&&e.onStop.call(t,Object.assign({},e)))}},m={el:p.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var o in m.el.className="sticky-spacer",d.css)m.el.style[o]=d.css[o];m.el.style["z-index"]="-1";var r=n.getStyle(t);m.offsetLeft=n.offset(t).left-(parseInt(r.marginLeft)||0),m.positionLeft=n.position(t).left,m.width=n.getStyle(t,"width")},attach:function(){h.insertBefore(m.el,t),m.isAttached=!0},detach:function(){m.el=h.removeChild(m.el),m.isAttached=!1}},Y=i.pageYOffset||p.documentElement.scrollTop,B=!1,M=!1,F=function(){e.onBeforeResize&&e.onBeforeResize.call(t,Object.assign({},e)),A(),e.onResize&&e.onResize.call(t,Object.assign({},e))},rt=e.resizeDebounce?n.debounce(F,e.resizeDebounce):F,F=function(){M||(i.addEventListener("resize",rt,n.supportsPassive),M=!0),T(),(x()?q:K)()};this.options=function(o){return o?e[o]:Object.assign({},e)},this.refresh=A,this.update=function(o){u(o),s=Object.assign({},s,o||{}),A()},this.attach=F,this.detach=V,this.destroy=function(){V(),Z()},this.triggerMethod=function(o,r){typeof a[o]=="function"&&a[o](r)},this.reinit=function(){g("reinit","refresh","method"),A()},u(s),F(),i.addEventListener("load",A)};return i.jQuery!==void 0&&(c=i.jQuery,l="hcSticky",c.fn.extend({hcSticky:function(t,s){return this.length?t==="options"?c.data(this.get(0),l).options():this.each(function(){var a=c.data(this,l);a?a.triggerMethod(t,s):(a=new y(this,t),c.data(this,l,a))}):this}})),i.hcSticky=i.hcSticky||y,y}),function(i){var c=i.hcSticky,l=i.document;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(t,s){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(t),e=1;e<arguments.length;e++){var n=arguments[e];if(n!=null)for(var h in n)Object.prototype.hasOwnProperty.call(n,h)&&(a[h]=n[h])}return a},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var s,a;if(this==null)throw new TypeError("this is null or not defined");var e,n=Object(this),h=n.length>>>0;if(typeof t!="function")throw new TypeError(t+" is not a function");for(1<arguments.length&&(s=arguments[1]),a=0;a<h;)a in n&&(e=n[a],t.call(s,e,a,n)),a++});var p=!1;try{var f=Object.defineProperty({},"passive",{get:function(){p={passive:!1}}});i.addEventListener("testPassive",null,f),i.removeEventListener("testPassive",null,f)}catch(t){}function g(t,s){return i.getComputedStyle?s?l.defaultView.getComputedStyle(t,null).getPropertyValue(s):l.defaultView.getComputedStyle(t,null):t.currentStyle?s?t.currentStyle[s.replace(/-\w/g,function(a){return a.toUpperCase().replace("-","")})]:t.currentStyle:void 0}function y(e){var s=e.getBoundingClientRect(),a=i.pageYOffset||l.documentElement.scrollTop,e=i.pageXOffset||l.documentElement.scrollLeft;return{top:s.top+a,left:s.left+e}}c.Helpers={supportsPassive:p,isEmptyObject:function(t){for(var s in t)return!1;return!0},debounce:function(t,s,a){var e;return function(){var n=this,h=arguments,u=a&&!e;
1clearTimeout(e),e=setTimeout(function(){e=null,a||t.apply(n,h)},s),u&&t.apply(n,h)}},hasClass:function(t,s){return t.classList?t.classList.contains(s):new RegExp("(^| )"+s+"( |$)","gi").test(t.className)},offset:y,position:function(n){var e=n.offsetParent,s=y(e),a=y(n),e=g(e),n=g(n);return s.top+=parseInt(e.borderTopWidth)||0,s.left+=parseInt(e.borderLeftWidth)||0,{top:a.top-s.top-(parseInt(n.marginTop)||0),left:a.left-s.left-(parseInt(n.marginLeft)||0)}},getElement:function(t){var s=null;return typeof t=="string"?s=l.querySelector(t):i.jQuery&&t instanceof i.jQuery&&t.length?s=t[0]:t instanceof Element&&(s=t),s},getStyle:g,getCascadedStyle:function(t){var s,a=t.cloneNode(!0);a.style.display="none",Array.prototype.slice.call(a.querySelectorAll('input[type="radio"]')).forEach(function(T){T.removeAttribute("name")}),t.parentNode.insertBefore(a,t.nextSibling),a.currentStyle?s=a.currentStyle:i.getComputedStyle&&(s=l.defaultView.getComputedStyle(a,null));var e,n,h,u={};for(e in s)!isNaN(e)||typeof s[e]!="string"&&typeof s[e]!="number"||(u[e]=s[e]);if(Object.keys(u).length<3)for(var x in u={},s)isNaN(x)||(u[s[x].replace(/-\w/g,function(T){return T.toUpperCase().replace("-","")})]=s.getPropertyValue(s[x]));return u.margin||u.marginLeft!=="auto"?u.margin||u.marginLeft!==u.marginRight||u.marginLeft!==u.marginTop||u.marginLeft!==u.marginBottom||(u.margin=u.marginLeft):u.margin="auto",u.margin||u.marginLeft!=="0px"||u.marginRight!=="0px"||(h=(n=t.offsetLeft-t.parentNode.offsetLeft)-(parseInt(u.left)||0)-(parseInt(u.right)||0),(h=t.parentNode.offsetWidth-t.offsetWidth-n-(parseInt(u.right)||0)+(parseInt(u.left)||0)-h)!=0&&h!=1||(u.margin="auto")),a.parentNode.removeChild(a),a=null,u}}}(window)}(D)),D.exports}var mt=dt();const gt=pt(mt);class ht{static init(){window.innerWidth<1200||document.querySelector(".js-formSidebar")===null||new gt(".js-form",{stickTo:".js-formSidebar",top:200,bottomEnd:0,responsive:{980:{disable:!0}}})}}class yt{static init(){const i=document.querySelectorAll(".marker-wrap");i!==null&&i.forEach(c=>{const l=c.querySelector(".marker"),p=c.querySelector(".close");l.addEventListener("click",()=>{l.classList.contains("visible")?l.classList.remove("visible"):(i.forEach(f=>{f.querySelector(".marker").classList.remove("visible")}),setTimeout(()=>{l.classList.add("visible")},200))}),p.addEventListener("click",()=>{l.classList.remove("visible")})})}}class vt{static init(){this.toggleSearch()}static toggleSearch(){const i=document.querySelector(".nav__header .search-toggle"),c=document.querySelector(".nav__header .nav__search-wrapper"),l=document.querySelector(".navbar-container");!l||!i||!c||i.addEventListener("click",()=>{l.classList.toggle("active-search"),c.classList.toggle("active"),i.classList.toggle("fa-times")})}}C.init();ut.init();ht.init();yt.init();vt.init();

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.