PageSourceSearch

https://mooiehome.com/cdn/shop/t/67/assets/xs-floaters.js?v=132324476927634526971790306002

js mooiehome.com collected 2026-10-04 12:45:45 UTC 13,458 bytes, 2 lines download raw bytes

1(function(){if(window.__xsFloaters&&window.__xsFloaters.v>="1.6")return;var cfg=document.getElementById("wl-kit"),D=cfg?cfg.dataset:{};function $(s,r){return(r||document).querySelector(s)}function $$(s,r){return Array.prototype.slice.call((r||document).querySelectorAll(s))}function flag(v,dflt){return v===void 0||v===""?dflt:v==="true"}function num(v,dflt){var n=Number(v);return v===void 0||v===""||isNaN(n)?dflt:n}function floaters(){if(!flag(D.dodge,!0))return;window.__xsFloatersInline=!1;var GAP=num(D.dodgeGap,12),desktop=flag(D.dodgeDesktop,!0),STABLE=300,CHAT=(D.dodgeChat||"shopify-chat, #zsiq_float, .zsiq_floatmain, #tidio-chat, #tidio-chat-iframe, #chat-button, .crisp-client .cc-1brb6, #gorgias-chat-container, #tawkchat-container, [id^='tawk-'], .wa-chat-widget, #reamaze-widget, #hubspot-messages-iframe-container, .intercom-lightweight-app, #chat-widget-container, [id*='chat-widget']").split(",").map(function(x){return x.trim()}).filter(Boolean).concat(["#swym-anchor",".wl-float",".jdgm-floating-tab","#launcher",".intercom-lightweight-app-launcher"]),BAR=(D.dodgeBar||".dc-sticky, .df-sticky, .mh-sticky, .vk-sticky, product-sticky-form, .product-sticky-form, .sticky-atc-bar, .sticky-add-to-cart, [class*='sticky-atc'], [data-sticky-atc], sticky-bottom, .menuFixMobile").split(",").map(function(x){return x.trim()}).filter(Boolean),TOP=(D.dodgeTop||".scroll-to-top, .js-scroll-to-top, .back-to-top, [data-back-to-top], .btn--scroll-top, [data-scroll-top-button], #back-to-top, #BackToTop, #backToTop, #scrollTop, #scroll-top, .scroll-top, .scrolltop, .scroll-up, .scrollup, .back-top, .backtotop, .go-top, .gotop, .totop, #totop, .top-button, [data-scroll-top], [data-scroll-to-top]").split(",").map(function(x){return x.trim()}).filter(Boolean),OPEN=(D.dodgeOverlay||"[class*='drawer'].is-open, [class*='drawer'].active, [class*='drawer'].open, [class*='drawer'][open], [class*='drawer'][aria-hidden='false'], [class*='drawer'].drawer--is-open, [class*='drawer'].is-visible, [class*='drawer'].is-active, .menu-drawer[open], .mobile-nav.is-open, .mobile-menu.is-open, .mobile-menu--open, .header__mobile-nav.is-open, [id*='menu-drawer'][open], [id*='MenuDrawer'].is-open, dialog[open], [role='dialog'][aria-modal='true']:not([hidden]), .modal.is-open, .modal--is-active, .modal.open, .popup.is-open, .cart-drawer.is-open, .cart-drawer.active, #CartDrawer.active, .site-overlay.visible, .site-overlay--active, .drawer--is-open, .predictive-search[open], .mobile-navigation[open]").split(",").map(function(x){return x.trim()}).filter(Boolean),BODY=/(^|\s)(vk-loc-open|drawer-open|drawer--open|js-drawer-open|js-drawer-open-left|js-drawer-open-right|menu-open|menu--open|mobile-menu-open|nav-open|navigation-open|has-drawer-open|cart-drawer-open|modal-open|overlay-on|scroll-locked|lock-scroll|no-scroll|overflow-hidden|is-locked|open-menu|open-cart|open-search|search-open|dc-lock|mh-lock|quickview-active|site-overlay-active|popup-open)(\s|$)/i;function q(sel){try{return $$(sel)}catch(e){return[]}}function vis(el){if(!el)return!1;var cs=getComputedStyle(el);if(cs.display==="none"||cs.visibility==="hidden"||cs.opacity==="0")return!1;var r=el.getBoundingClientRect();return r.height>0&&r.width>0&&r.top<innerHeight&&r.bottom>0}function fixedRoot(el){for(var n=el,i=0;n&&n!==document.body&&i++<8;){if(getComputedStyle(n).position==="fixed")return n;n=n.parentElement}return null}function onTop(el){try{var r=el.getBoundingClientRect(),x=Math.min(Math.max(r.left+r.width/2,2),innerWidth-2),y=Math.min(Math.max(r.top+r.height/2,2),innerHeight-2),t=document.elementFromPoint(x,y);return!!t&&(t===el||el.contains(t))}catch(e){return!0}}function ours(el){return el.closest&&el.closest(".wl-later, .wl-autobar, .wl-nudge, .wl-toast, shopify-chat, #web-pixels-manager-sandbox-container, .klp, #kl-popup")||el.tagName==="SHOPIFY-CHAT"}function barList(){var els=[];BAR.forEach(function(sl){els=els.concat(q(sl))}),els.length||(els=q('[class*="sticky"], [id*="sticky"], [class*="fixed-bottom"], [class*="bottom-bar"], [class*="atc-bar"]'));var out=[];return els.forEach(function(el){if(vis(el)){var cs=getComputedStyle(el);if(!(cs.position!=="fixed"&&cs.position!=="sticky")){var r=el.getBoundingClientRect();r.width<innerWidth*.6||r.height>innerHeight*.45||r.bottom>innerHeight+2||r.bottom<innerHeight-4||out.push(el)}}}),out}function barHeight(){var h=0;
1return barList().forEach(function(el){var r=el.getBoundingClientRect();h=Math.max(h,Math.round(el.offsetHeight||r.height))}),h}function overlayOpen(){if(BODY.test(document.body.className)||BODY.test(document.documentElement.className))return!0;for(var i=0;i<OPEN.length;i++)for(var ms=q(OPEN[i]),k=0;k<ms.length;k++)if(vis(ms[k])&&!ours(ms[k])&&onTop(ms[k]))return!0;for(var cands=q("body > *, body > * > *, body > * > * > *"),j=0;j<cands.length;j++){var el=cands[j];if(!ours(el)){var cs=getComputedStyle(el);if(!(cs.position!=="fixed"||!vis(el))){var r=el.getBoundingClientRect();if(!(r.width*r.height<innerWidth*innerHeight*.45)){var bg=cs.backgroundColor,a=(bg.match(/rgba?\([^)]*,\s*([\d.]+)\)$/)||[])[1];if(bg==="transparent"||a!==void 0&&Number(a)<.5){var inner=el.querySelector('nav, form[action*="localization"], [class*="drawer__"], [class*="menu"]');if(!inner||!vis(inner))continue}if(onTop(el))return!0}}}}return!1}function teaser(){for(var c=$$('[data-testid^="klaviyo-form"], [class*="klaviyo-form"], .kl-teaser, [class*="cookie"], [class*="consent"], #shopify-pc__banner'),i=0;i<c.length;i++){var f=fixedRoot(c[i])||c[i];if(!ours(f)){if(getComputedStyle(f).position!=="fixed"){var inner=c[i].querySelector('[style*="fixed"]');inner&&(f=inner)}if(getComputedStyle(f).position==="fixed"&&vis(f)&&f.getBoundingClientRect().height<innerHeight*.4&&f.getBoundingClientRect().width>=innerWidth*.6&&f.getBoundingClientRect().bottom>innerHeight-40)return f}}return null}function chats(){var out=[];return CHAT.forEach(function(sl){q(sl).forEach(function(el){if(el.tagName==="SHOPIFY-CHAT"){var sr=el.shadowRoot,a=sr&&sr.querySelector('.activator-nudge, [class*="activator"], button');a&&out.push({el:a,base:20});return}var root=fixedRoot(el)||el;if(getComputedStyle(root).position==="fixed"){var r=root.getBoundingClientRect();r.height>innerHeight*.6||r.width>innerWidth*.9||out.push({el:root,base:null})}})}),out}function tops(){var out=[],bars=barList(),ce=chats().map(function(c){return c.el});return TOP.forEach(function(sl){q(sl).forEach(function(el){var root=fixedRoot(el)||el;if(!(getComputedStyle(root).position!=="fixed"||ours(root)||out.indexOf(root)>=0||bars.indexOf(root)>
1=0||ce.indexOf(root)>=0)){var r=root.getBoundingClientRect();r.width>=innerWidth*.6||r.height>innerHeight*.4||out.push(root)}})}),out}function extraFor(m,t){var ex=m.bar>0?m.bar+GAP:0;return t&&ex>0&&(ex+=Math.round(t.getBoundingClientRect().height)+GAP),ex}function topLift(o,px){var el=o.el;if(el){if(el.__wlTop0===void 0){el.__wlTop0=el.style.getPropertyValue("bottom")||"";var cs=getComputedStyle(el),tp=cs.transitionProperty||"",td=/[1-9]/.test(cs.transitionDuration||"");td&&/(^|,)\s*(all|bottom)\s*(,|$)/.test(tp)||el.style.setProperty("transition",(td?cs.transition+", ":"")+"bottom .2s ease")}if(px<=0){el.__wlTopLift&&(el.style.removeProperty("bottom"),el.style.removeProperty("top"),el.__wlTop0&&el.style.setProperty("bottom",el.__wlTop0),el.__wlTopLift=0);return}var v=o.base+px;el.__wlTopLift!==v&&(el.__wlTopLift=v,el.style.setProperty("bottom",v+"px","important"),el.style.setProperty("top","auto","important"))}}var topsL=[];function placeTops(m){var els=tops(),t=m.hid?null:teaser(),ex=extraFor(m,t),cs=m.hid?[]:chats(),reach=0;return els.forEach(function(el){var o=el.__wlTop||(el.__wlTop={el:el,base
1:null});if(o.base===null){var cb=parseFloat(getComputedStyle(el).bottom);o.base=isNaN(cb)||cb<0||cb>innerHeight/2?20:Math.round(cb)}var shown=vis(el),r=el.getBoundingClientRect();shown&&(el.__wlRect={l:r.left,r:r.right,h:r.height});var rc=el.__wlRect,need=0;m.hid||(m.bar>0&&(need=m.bar+GAP),t&&(need=Math.max(need,(m.bar>0?m.bar+GAP:0)+Math.round(t.getBoundingClientRect().height)+GAP)),cs.forEach(function(c){var cr=c.el.getBoundingClientRect();!cr.height||cr.height>innerHeight*.6||innerHeight-cr.bottom>innerHeight*.4||getComputedStyle(c.el).display==="none"||rc&&(rc.r<cr.left-4||rc.l>cr.right+4)||(need=Math.max(need,Math.max((c.el.__wlBase||0)+ex+Math.round(cr.height),Math.round(innerHeight-cr.top))+GAP))}));var px=need>o.base?need-o.base:0;topLift(o,px),shown&&rc&&(reach=Math.max(reach,(px>0?need:o.base)+Math.round(rc.h)+GAP))}),topsL.forEach(function(el){els.indexOf(el)<0&&el.__wlTop&&topLift(el.__wlTop,0)}),topsL=els,reach}function prep(o){var el=o.el;if(el.__wlBase===void 0){if(el.__wlBase0=el.style.getPropertyValue("bottom")||"",o.base===null){var cb=parseFloat(getComputedStyle(el).bottom);o.base=isNaN(cb)||cb>innerHeight/2?20:cb}el.__wlBase=o.base,el.style.setProperty("transition","bottom .2s ease, opacity .2s ease, visibility .2s","important")}}function lift(o,px){var el=o.el;if(el){if(prep(o),px<=0){el.__wlLift&&(el.style.removeProperty("bottom"),el.style.removeProperty("top"),el.__wlBase0&&el.style.setProperty("bottom",el.__wlBase0),el.__wlLift=0);return}var v=(el.__wlBase||0)+px;el.__wlLift!==v&&(el.__wlLift=v,el.style.setProperty("bottom",v+"px","important"),el.style.setProperty("top","auto","important"))}}function hideEl(el,hid){!el||!!el.__wlHid==!!hid||(el.__wlHid=!!hid,hid?(el.style.setProperty("opacity","0","important"),el.style.setProperty("visibility","hidden","important"),el.style.setProperty("pointer-events","none","important")):(el.style.removeProperty("opacity"),el.style.removeProperty("visibility"),el.style.removeProperty("pointer-events")))}function localePad(){$$('form[action*="/localization"]').forEach(function(f){if(!(!vis(f)||f.__wlPad)){var fr=fixedRoot(f);if(fr){var box=f.closest('[class*="footer"], [class*="bottom"], [class*="utilit"], [class*="localization"], [class*="locale"]')||f.parentElement;(!box||box===fr)&&(box=f);var r=box.getBoundingClientRect();if(!(r.bottom<innerHeight-80)){f.__wlPad=!0;var pb=parseFloat(getComputedStyle(box).paddingBottom)||0;pb<72&&box.style.setProperty("padding-bottom","72px","important");for(var sc=box.parentElement;sc&&sc!==fr&&getComputedStyle(sc).overflowY!=="auto"&&getComputedStyle(sc).overflowY!=="scroll";)sc=sc.parentElement;if(sc&&sc!==fr){var spb=parseFloat(getComputedStyle(sc).paddingBottom)||0;spb<72&&sc.style.setProperty("padding-bottom","72px","important")}}}}})}var applied="",pending="",pendT=null,lifted=[],stackB=0,cur=null;function measure(){var mobile=window.matchMedia("(max-width: 749px)").matches,hid=overlayOpen(),bar=hid?0:mobile||desktop?barHeight():0,cn=0;chats().forEach(function(c){var r=c.el.getBoundingClientRect();r.height&&(cn+=Math.round(r.height))});var tn=0;return tops().forEach(function(el){vis(el)&&(tn+=Math.round(el.getBoundingClientRect().height)||1)}),{bar:bar,hid:hid,key:bar+"|"+(hid?1:0)+"|"+cn+"|"+tn}}function apply(m){applied=m.key,pending="",cur=m;var extra=m.bar>0?m.bar+GAP:0,t=teaser();t&&(lift({el:t,base:0},extra),hideEl(t,m.hid),extra>0&&(extra+=t.getBoundingClientRect().height+GAP));var cs=chats(),els=cs.map(function(c){return c.el});cs.forEach(function(c){lift(c,extra),hideEl(c.el,m.hid)}),lifted.forEach(function(el){els.indexOf(el)<0&&el!==t&&(lift({el:el,base:0},0),hideEl(el,!1))}),lifted=els.concat(t?[t]:[]);var stack=m.bar>0?m.bar+GAP:0;m.hid||(t&&(stack=Math.max(stack,(m.bar>0?m.bar+GAP:0)+Math.round(t.getBoundingClientRect().height)+GAP)),cs.forEach(function(c){var el=c.el,r=el.getBoundingClientRect();!r.height||r.height>innerHeight*.6||r.top<0||r.bottom>innerHeight+2||getComputedStyle(el).display==="none"||(stack=Math.max(stack,Math.max((el.__wlBase||0)+extra+Math.round(r.height),Math.round(innerHeight-r.top))+GAP))}));var reach=placeTops(m);reach>stack&&(stack=reach),stackB=stack,document.documentElement.style.setProperty("--wl-stack-b",stack+"px"),document.documentElement.classList.toggle("wl-bar-on",m.bar>0),document.documentElement.classList.toggle("wl-overlay-on",m.hid),document.documentElement.style.setProperty("--wl-bar-h",m.bar+"px"),document.documentElement.style.setProperty("--shopify-chat-activator-offset",extra+20+"px"),m.hid&&localePad()}function evaluate(){var m=measure();if(cur)try{placeTops(cur)}catch(e){}if(m.key===applied){pending="",clearTimeout(pendT);return}m.key!==pending&&(pending=m.key,clearTimeout(pendT),pendT=setTimeout(function(){var m2=measure();m2.key===pending?apply(m2):(pending="",evaluate())},STABLE))}var raf=0;function ask(){raf||(raf=requestAnimationFrame(function(){raf=0,evaluate()}))}var mt;function mo(){clearTimeout(mt),mt=setTimeout(evaluate,100)}apply(measure()),window.addEventListener("resize",ask),window.addEventListener("scroll",ask,{passive:!0});try{new MutationObserver(mo).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","aria-hidden","open","aria-expanded"]})}catch(e){}try{new MutationObserver(mo).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}catch(e){}setInterval(evaluate,1e3),window.__xsFloaters={layout:function(){apply(measure())},state:function(){return applied},stack:function(){return stackB},v:"1.6"}}function boot(){try{floaters()}catch(e){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",boot):boot()})();
2//# sourceMappingURL=/cdn/shop/t/67/assets/xs-floaters.js.map?v=132324476927634526971790306002

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.