PageSourceSearch

https://netset.com/_empori-static/core/React/dist/image-gallery.js?v=9.1.8

js netset.com collected 2026-10-04 13:28:35 UTC 4,106 bytes, 3 lines download raw bytes

1/*! For license information please see image-gallery.js.LICENSE.txt */
2"use strict";(self.webpackChunkempori_base=self.webpackChunkempori_base||[]).push([[124],{6179:(e,s,n)=>{n.r(s),n.d(s,{default:()=>d});var t=n(5893),l=n(9257),i=n(834),a=n(9299),r=n(3935);function o(e){return window.innerWidth<=800?0===e.staticHeightMobile:0===e.staticHeightDesktop}function d(e,s){if(!e)return;const n=s.imageGalleryEditorModel.slides,d={modules:[l.W_,l.tl,l.pt],autoplay:!!s.autoplay&&{delay:s.delay},lazy:!0,loop:n.length>1,autoHeight:o(s),navigation:{nextEl:`#${e.id} .swiper-button-next`,prevEl:`#${e.id} .swiper-button-prev`},pagination:{el:`#${e.id} .swiper-pagination`,clickable:!0,dynamicBullets:!1},spaceBetween:0},c=new l.tq(e,d);if(s.fullscreenEnabled){const s=n.map((e=>e.image));if(!s)return;const l=e.querySelector(".empori-image-gallery-fullscreen-trigger");if(!l)return;const o=document.createElement("div");o.classList.add("empori-fullscreen-image-gallery"),document.body.appendChild(o);const d=e=>{c.slideToLoop(e),o.classList.remove("visible"),r.unmountComponentAtNode(o)};l.addEventListener("click",(e=>{o.classList.add("visible"),(0,a.s)((0,t.jsx)(i.fS,{slideImgUrls:s,onClose:d,activeIndex:c.realIndex}),o)}))}return c}},834:(e,s,n)=>{n.d(s,{UA:()=>u,fS:()=>g});var t=n(5893),l=n(7294),i=n(221),a=n(3935);const r=e=>/\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(e);var o=n(4160);function d(e){const s=r(e);return(0,t.jsx)("div",Object.assign({className:"empori-fullscreen-image-gallery-item",style:s?{backgroundImage:`url(${e})`}:{backgroundColor:"black"}},{children:!s&&(0,t.jsxs)("video",Object.assign({controls:!0},{children:[(0,t.jsx)("source",{src:e,type:"video/mp4"}),(0,t.jsx)("source",{src:e,type:"video/ogg"}),"Your browser does not support the video tag."]}))}))}const c=l.forwardRef(((e,s)=>{const[n,a]=l.useState(!1),r=(0,i.oc)(),d=0!==e.currentSlideIndex,c=e.currentSlideIndex+1<e.totalSlides;l.useEffect((()=>{setTimeout((()=>{a(!0)}),500)}),[]);const u=e=>{"Enter"===e.key&&(e.stopPropagation(),e.preventDefault(),d?r.slidePrev():c&&r.slideNext())};return(0,t.jsxs)("div",Object.assign({ref:s,className:(0,o.className)("empori-fullscreen-toolbar element-flex",{"is-ready":n}),tabIndex:0},{children:[(0,t.jsx)("button",Object.assign({className:d?"enabled":"disabled",disabled:!d,onClick:e=>{e.stopPropagation(),e.preventDefault(),d&&r.slidePrev()},onKeyDown:u},{children:(0,t.jsx)("i",{className:"fa-regular fa-chevron-left"})})),(0,t.jsx)("span",{children:`${e.currentSlideIndex+1}/${e.totalSlides}`}),(0,t.jsx)("button",Object.assign({onClick:()=>e.onClose(),onKeyDown:s=>{13!==s.keyCode&&"Enter"!==s.key||e.onClose()}},{children:(0,t.jsx)("i",{className:"fa-regular fa-times"})})),(0,t.jsx)("button",Object.assign({className:c?"enabled":"disabled",disabled:!c,onClick:e=>{e.stopPropagation(),e.preventDefault(),c&&r.slideNext()},onKeyDown:u},{children:(0,t.jsx)("i",{className:"fa-regular fa-chevron-right"})}))]}))}));function u(e){const{toggled:s,slideImgUrls:n}=e,r=l.useRef(null);return l.useEffect((()=>{s&&setTimeout((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),100)}),[s]),s&&n?a.createPortal((0,t.jsx)("div",Object.assign({className:"empori-fullscreen-image-gallery visible"},{children:(0,t.jsxs)(i.tq,Object.assign({onSlideChange:s=>e.setIndex(s.realIndex),initialSlide:e.viewingIndex},{children:[n.map(((e,s)=>(0,t.jsx)(i.o5,{children:d(e)},s))),(0,t.jsx)(c,{ref:r,onClose:e.close,totalSlides:n.length,currentSlideIndex:e.viewingIndex})]}))})),document.body):(0,t.jsx)("div",Object.assign({className:"empori-image-gallery-fullscreen-trigger",onClick:()=>e.open(),onKeyDown:s=>{13!==s.keyCode&&"Enter"!==s.key||e.open()},tabIndex:0},{children:(0,t.jsx)("i",{className:"fa-regular fa-expand"})}))}function g(e){const[s,n]=l.useState(e.activeIndex);return(0,t.jsxs)(i.tq,Object.assign({onSlideChange:e=>n(e.realIndex),initialSlide:s},{children:[e.slideImgUrls.map(((e,s)=>(0,t.jsx)(i.o5,{children:d(e)},s))),(0,t.jsx)(c,{onClose:()=>e.onClose(s),totalSlides:e.slideImgUrls.length,currentSlideIndex:s})]}))}}}]);
3//# sourceMappingURL=image-gallery.js.map?v=9.1.8

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.