PageSourceSearch

https://www.semiramis.gr/assets/js/simple-popup-1.5.8.63012.js

js semiramis.gr collected 2026-10-08 21:32:37 UTC 5,473 bytes, 1 lines download raw bytes

1(()=>{"use strict";var t={112(t,e,i){var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i);var s=Object.getOwnPropertyDescriptor(e,i);s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,o,s)}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&o(e,t,i);return s(e,t),e},a=this&&this.__awaiter||function(t,e,i,o){return new(i||(i=Promise))(function(s,n){function a(t){try{r(o.next(t))}catch(t){n(t)}}function d(t){try{r(o.throw(t))}catch(t){n(t)}}function r(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,d)}r((o=o.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.SimplePopup=void 0;const d=n(i(537));class r{constructor(){this.VisitorNotified={}}}class l extends d.Plugins.Plugin{constructor(t){super(t),void 0===this.clientSettings&&(this.clientSettings=new r),void 0===this.clientSettings.VisitorNotified&&(this.clientSettings.VisitorNotified={})}onWindowLoaded(){return a(this,void 0,void 0,function*(){const t=document.getElementsByClassName("htw-modal");Array.from(t).forEach(t=>{new c(this,t).run()})})}}e.SimplePopup=l;class c{constructor(t,e){this.cookieStorage=new d.Support.CookieStorageEngine,this.popupManager=t,this.modal=e,this.close=e.querySelector(".htw-modal__close"),this.signature=this.modal.dataset.signature,this.dndPeriod=parseInt(this.modal.dataset.dndPeriod,10),isNaN(this.dndPeriod)&&(this.dndPeriod=0)}getSessionCookieName(){return`Plugins.Generic.SimplePopup.ViewedInstance_${this.signature}`}run(){var t,e,i,o,s;let n;if(this.initializeEvents(),n=this.dndPeriod<=0?this.cookieStorage.hasItem(this.getSessionCookieName()):this.popupManager.clientSettings.VisitorNotified[this.signature],void 0===n||!1===n){var a=(new Date).getTime();const n=null===(t=this.modal.dataset.activateOnQuery)||void 0===t?void 0:t.trim(),r=null===(e=this.modal.dataset.activateCountries)||void 0===e?void 0:e.trim(),l=r&&r.length>0?r.split(","):[],c=null===(i=this.modal.dataset.startDatetime)||void 0===i?void 0:i.trim(),h=null===(o=this.modal.dataset.stopDatetime)||void 0===o?void 0:o.trim(),u=(null===(s=this.modal.dataset.trigger)||void 0===s?void 0:s.trim())||"page-load",p=parseInt(this.modal.dataset.scrollDepth,10)||50,m=parseInt(this.modal.dataset.pageCount,10)||2,v=()=>{let t=""===c||!c,e=""===h||!h;if(c)try{a>=Date.parse(c)&&(t=!0)}catch(t){}if(h)try{a<Date.parse(h)&&(e=!0)}catch(t){}return t&&e},g=()=>{(""===n||""!=n&&location.search.indexOf(n)>=0)&&(l&&l.length>0&&void 0!==window.jQuery?d.Support.GeoIP.resolveGeoIPInfo().then(t=>{t.country_code&&l.includes(t.country_code)&&v()&&this.openModal()}).catch(()=>{}):v()&&this.openModal())};if("page-load"===u)g();else if("exit-intent"===u){const t=()=>{document.removeEventListener("mouseleave",t),g()};document.addEventListener("mouseleave",t)}else if("scroll-depth"===u){const t=()=>{window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100>=p&&(window.removeEventListener("scroll",t),g())};window.addEventListener("scroll",t,{passive:!0})}else if("page-count"===u){const t=`hw_popup_page_count_${this.signature}`;try{const e=parseInt(sessionStorage.getItem(t)||"0",10);sessionStorage.setItem(t,(e+1).toString()),e+1>=m&&g()}catch(t){}}}}initializeEvents(){const t=this.modal.getElementsByClassName("htw-modal__cta-button");t&&t.length&&Array.from(t).forEach(t=>{const e=t;e.dataset.clickEventInitialized||(t.addEventListener("click",t=>{t=t||window.event,e.dataset.clickEventName&&window.HotelwizeApp.Analytics.htrackExecute(`event::${e.dataset.clickEventName}`,{category:"Popup",title:atob(e.dataset.popupTitle),popupId:e.dataset.popupId,targetUrl:e.href}),this.closeModal()}),e.dataset.clickEventInitialized="true")}),this.close&&(this.close.onclick=()=>{this.closeModal()}),window.addEventListener("click",t=>{(t=t||window.event).target==this.modal&&this.closeModal()}),document.addEventListener("keyup",t=>{var e;t=t||window.event,(null===(e=this.modal)||void 0===e?void 0:e.classList.contains("htw-modal--show"))&&"Escape"==t.code&&this.closeModal()})}openModal(){var t=Math.max(0,parseInt(this.modal.dataset.activateDelay,10));isNaN(t)&&(t=0),setTimeout(()=>{var t;null===(t=this.modal)||void 0===t||t.classList.add("htw-modal--show")},1e3*t)}closeModal(){this.modal.classList.remove("htw-modal--show"),this.modal.classList.add("htw-modal--hide");const t=()=>{var t;null===(t=this.modal)||void 0===t||t.classList.remove("htw-modal--hide")};this.modal.addEventListener("webkitAnimationEnd",t,!1),this.modal.addEventListener("oAnimationEnd",t,!1),this.modal.addEventListener("msAnimationEnd",t,!1),this.modal.addEventListener("animationend",t,!1),this.dndPeriod<=0?this.cookieStorage.setItem(this.getSessionCookieName(),(new Date).getTime(),0):(this.popupManager.clientSettings.VisitorNotified[this.signature]=!0,this.popupManager.saveClientSettings())}}},537(t){t.exports=window.Hotelwize}},e={},i=function i(o){var s=e[o];if(void 0!==s)return s.exports;var n=e[o]={exports:{}};
1return t[o].call(n.exports,n,n.exports,i),n.exports}(112);self["Hotelwize.Plugins.Generic.SimplePopup"]=i})();

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.