aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/223-fe0f4bb868fe9f43618b.js
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-21 21:12:51 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-21 21:12:51 +0000
commit7a11c20d60119d72c392cbcee21b259aa13e1e6c (patch)
tree992d1edef37cc9121769318c9872cb5e05c7dfcc /public/223-fe0f4bb868fe9f43618b.js
parent833a3a3084119ca2ce9d5657c2b78a59f2b3a967 (diff)
downloadsubmelon.dev-7a11c20d60119d72c392cbcee21b259aa13e1e6c.tar.gz
submelon.dev-7a11c20d60119d72c392cbcee21b259aa13e1e6c.tar.bz2
submelon.dev-7a11c20d60119d72c392cbcee21b259aa13e1e6c.zip
chore: autopublish 2022-11-21T21:12:51Z
Diffstat (limited to 'public/223-fe0f4bb868fe9f43618b.js')
-rw-r--r--public/223-fe0f4bb868fe9f43618b.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/223-fe0f4bb868fe9f43618b.js b/public/223-fe0f4bb868fe9f43618b.js
new file mode 100644
index 0000000..1e38b89
--- /dev/null
+++ b/public/223-fe0f4bb868fe9f43618b.js
@@ -0,0 +1,2 @@
+"use strict";(self.webpackChunksubmelon_dev=self.webpackChunksubmelon_dev||[]).push([[223],{8223:function(e,t,n){n.r(t),n.d(t,{renderImageToString:function(){return b},swapPlaceholderImage:function(){return g}});var o=n(3723),a=n(7294),i=n(7762);n(2369);let r;const c=new WeakMap,l=navigator.connection||navigator.mozConnection||navigator.webkitConnection,s=["image","loading","isLoading","isLoaded","imgClassName","imgStyle","objectPosition","backgroundColor","objectFit"];function u(e,t){e.style.opacity="1",t&&(t.style.opacity="0")}function d(e,t,n,o,a,i){const r=e.querySelector("[data-main-image]"),c=e.querySelector("[data-placeholder-image]"),l=n.has(t);function s(e){this.removeEventListener("load",s);const t=e.currentTarget,n=new Image;n.src=t.currentSrc,n.decode?n.decode().then((()=>{u(this,c),null==a||a({wasCached:l})})).catch((e=>{u(this,c),null==i||i(e)})):(u(this,c),null==a||a({wasCached:l}))}return r.addEventListener("load",s),null==o||o({wasCached:l}),Array.from(r.parentElement.children).forEach((e=>{const t=e.getAttribute("data-src"),n=e.getAttribute("data-srcset");t&&(e.removeAttribute("data-src"),e.setAttribute("src",t)),n&&(e.removeAttribute("data-srcset"),e.setAttribute("srcset",n))})),n.add(t),r.complete&&s.call(r,{currentTarget:r}),()=>{r&&r.removeEventListener("load",s)}}function g(e,t,a,i,s,u,g){if(!(0,o.h)()){let o;const v=(h=()=>{o=d(e,t,a,s,u,g)},"IntersectionObserver"in window?(r||(r=new IntersectionObserver((e=>{e.forEach((e=>{var t;e.isIntersecting&&(null==(t=c.get(e.target))||t(),c.delete(e.target))}))}),{rootMargin:"4g"!==(null==l?void 0:l.effectiveType)||null!=l&&l.saveData?"2500px":"1250px"})),function(e){return c.set(e,h),r.observe(e),function(){r&&e&&(c.delete(e),r.unobserve(e))}}):function(){return h(),function(){}}),f=v(e);var b,m;return"objectFit"in document.documentElement.style||(e.dataset.objectFit=null!=(b=i.objectFit)?b:"cover",e.dataset.objectPosition=""+(null!=(m=i.objectPosition)?m:"50% 50%"),async function(e){"objectFitPolyfill"in window||await n.e(843).then(n.t.bind(n,4843,23)),window.objectFitPolyfill(e)}(e)),()=>{o&&o(),f()}}var h;return d(e,t,a,s,u,g)}function b(e){let{image:t,loading:n="lazy",isLoading:r,isLoaded:c,imgClassName:l,imgStyle:u={},objectPosition:d,backgroundColor:g,objectFit:b="cover"}=e,m=(0,o._)(e,s);const{width:h,height:v,layout:f,images:w,placeholder:y,backgroundColor:p}=t;return u=(0,o.a)({objectFit:b,objectPosition:d,backgroundColor:g},u),(0,i.uS)(a.createElement(o.L,{layout:f,width:h,height:v},a.createElement(o.P,(0,o.a)({},(0,o.g)(y,c,f,h,v,p,b,d))),a.createElement(o.M,(0,o.a)({},m,{width:h,height:v,className:l},(0,o.b)(r,c,w,n,u)))))}}}]);
+//# sourceMappingURL=223-fe0f4bb868fe9f43618b.js.map \ No newline at end of file