"use strict";(globalThis.webpackChunkextract_css=globalThis.webpackChunkextract_css||[]).push([["39263"],{530330:function(i){i.exports={}},714871:function(i,_,n){var r=n(530330),D=n.n(r);YUI.add("squarespace-blog-collection-list",function(a){var s=a.config.win,h=s.document,y=200,o=a.Squarespace.Template.getTweakValue,p=function(e){if(e){for(var t=parseInt(o("tweak-blog-list-columns"),10),d=parseInt(o("tweak-blog-list-spacing"),10),f=parseFloat(s.getComputedStyle(e).width);(f-d*(t-1))/t<y;)t--;e.setAttribute("data-columns",t)}},k=function(e){if(e){var t=e.querySelectorAll(".BlogList-item-image img");if(o("tweak-blog-list-item-image-show")==="true"){var d=o("tweak-blog-list-style").toLowerCase()==="stacked",f=o("tweak-blog-list-item-image-aspect-ratio-stacked").toLowerCase()==="auto";if(d&&f)for(var m=0;m<t.length;m++){var l=t[m];l.style.position=null,l.style.top=null,l.style.right=null,l.style.bottom=null,l.style.left=null,l.style.width=null,l.style.height=null,s.ImageLoader.load(l,{load:!0,mode:null})}else for(var v=0;v<t.length;v++)s.ImageLoader.load(t[v],{load:!0,mode:"fill"})}}},b=function(e){p(e),k(e)},T=100,u=!1,g,E=function(e){u||(u=!0),g&&clearTimeout(g),g=setTimeout(function(){!a||!a.config||!a.config.win||(b(e),u=!1)},T)},I=["tweak-blog-list-columns","tweak-blog-list-spacing"],x=["tweak-blog-list-style","tweak-blog-list-columns","tweak-blog-list-spacing","tweak-blog-list-item-image-aspect-ratio-grid","tweak-blog-list-item-image-aspect-ratio-stacked","tweak-blog-list-item-image-show","tweak-blog-list-item-image-width"],C=function(e){var t=e.getName();I.indexOf(t)>=0&&p(),x.indexOf(t)>=0&&k()};a.Global.on("tweak:change",C);var c,w;a.config.win.Squarespace.onInitialize(a,function(){c=h.querySelector(".BlogList"),c&&(b(c),w=E.bind(s,c),s.addEventListener("resize",w))}),a.config.win.Squarespace.onDestroy(a,function(){s.removeEventListener("resize",w)})},"1.0",{requires:[]})},44653:function(i,_,n){var r=n(714871)}},function(i){var _=function(r){return i(i.s=r)},n=_(44653)}]);

//# sourceMappingURL=https://sourcemaps.squarespace.net/universal/scripts-compressed/sourcemaps/0cd4f908fb5f7071/blog-collection-list-18e9163ae35c22a4-min.en-US.js.map