PageSourceSearch

https://posta.md/_next/static/chunks/6335.a6441676368af743.js

js posta.md collected 2026-10-02 07:37:13 UTC 2,371 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6335],{6335:function(e,n,t){t.r(n);var r=t(8520),o=t.n(r),a=t(5893),c=t(7294),u=t(3935),s=t(5152),i=t(5297);function l(e,n,t,r,o,a,c){try{var u=e[a](c),s=u.value}catch(i){return void t(i)}u.done?n(s):Promise.resolve(s).then(r,o)}var d=(0,s.default)((function(){return Promise.all([t.e(9351),t.e(1392)]).then(t.bind(t,5114))}),{loadableGenerated:{webpack:function(){return[5114]},modules:["../components/ProductDetails/ProductImage.tsx -> components/GalleryImages"]}}),m=(0,s.default)((function(){return t.e(9045).then(t.bind(t,9045))}),{loadableGenerated:{webpack:function(){return[9045]},modules:["../components/ProductDetails/ProductImage.tsx -> components/Icon"]}}),f=(0,s.default)((function(){return Promise.all([t.e(9351),t.e(3602)]).then(t.bind(t,3602))}),{loadableGenerated:{webpack:function(){return[3602]},modules:["../components/ProductDetails/ProductImage.tsx -> components/Loader"]}});n.default=function(e){var n=e.images,t=(0,c.useState)(!1),r=t[0],s=t[1],p=(0,c.useState)(""),v=p[0],h=p[1],b=(0,c.useState)([]),g=b[0],P=b[1],x=(0,c.useState)(!1),k=x[0],w=x[1];if((0,c.useEffect)((function(){w(!0);var e,t=n.map((e=o().mark((function e(n){var t,r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.image_url,(r=new Image).src=t,a=new Promise((function(e){r.onerror=function(){e(!1)},r.onload=function(){e(t)}})),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function c(e){l(a,r,o,c,u,"next",e)}function u(e){l(a,r,o,c,u,"throw",e)}c(void 0)}))}));Promise.all(t).then((function(e){var n=e.filter((function(e){return e}));P(n),w(!1)}))}),[]),!g.length&&!k)return(0,a.jsx)(m,{className:"ecommerce-card__header-image",component:i.FU,style:{maxHeight:"24rem"}});var y=function(e){h(e),s((function(e){return e?document.body.classList.remove("no-scroll"):document.body.classList.add("no-scroll"),!e}))};return(0,a.jsxs)(f,{loading:k,fade:!1,children:[(0,a.jsx)("div",{className:"product-gallery",children:(0,a.jsx)(d,{data:g,onClick:y})}),r&&(0,u.createPortal)((0,a.jsx)("div",{className:"portal-image",style:{backgroundImage:"url(".concat(v,")")},children:(0,a.jsx)("div",{className:"portal-image__close",onClick:function(){return y()}})}),document.body)]})}}}]);

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.