1import Modal from "/-a764---s8Jxru5n/modal.js?_linka=a62977";import {setCookie, getCookie} from "/-d1540---Lo0qvaxV/cookies.js?_linka=d25857";import GallerySlider from "/-d1397---vu-5Jiix/gallery-slider.js?_linka=a62979";export default class ModalTrigger{constructor(target){this.selector=target||".js-modal-trigger";this.showZoom=$(this.selector).data("show-zoom")||false;this.timer=$(this.selector).data("timer");this.scrollHeight=$(this.selector).data("scrollHeight");this.cookieName=$(this.selector).data("cookieName");this.init(this.selector)}init(target){if(this.timer&& 2!getCookie(this.cookieName))this.triggerWithTime(target);$(document).on("click",target,$.proxy(this.trigger,this))}trigger(e){e.preventDefault();const modalSize=$(e.currentTarget).data("modal-size")||"small";const toggleTarget=$(e.currentTarget).data("target");const titleTarget=$(e.currentTarget).data("title");const modalCarouselGallery=$(e.currentTarget).data("modal-carousel-gallery")||false;const zoomOption=this.showZoom;const options=e.currentTarget.dataset.carouselOptions?JSON.parse(e.currentTarget.dataset.carouselOptions): 3{}||{};(new Modal).open($(toggleTarget)[0],titleTarget,"",modalSize,"",zoomOption);const modalGalleryClass=modalCarouselGallery?`.${modalCarouselGallery}`:null;if(modalGalleryClass){const modalElement=$(".hystmodal").find(`${modalGalleryClass}`);$(".hystmodal").addClass("detail-gallery");if(modalElement.length){modalElement.addClass(`${modalCarouselGallery}--modal`);new GallerySlider(`${modalGalleryClass}--modal`,options,true)}}}triggerWithTime(e){let documentHeight=$(document).innerHeight()*`0.${this.scrollHeight}`; 4setTimeout(()=>{if(window.scrollY+window.innerHeight>documentHeight){$(e).trigger("click");setCookie(this.cookieName,true,90)}else{const timer=setInterval(()=>{if(window.scrollY+window.innerHeight>documentHeight){$(e).trigger("click");setCookie(this.cookieName,true,90);clearInterval(timer);return}},2E3)}},`${this.timer}000`)}};
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.