PageSourceSearch

https://www.newparkhotelkilkenny.com/wp-content/themes/allora-cms/…/dist/floating_ui.js?ver=1788833385

js newparkhotelkilkenny.com collected 2026-10-04 19:58:35 UTC 3,588 bytes, 1 lines download raw bytes

1(()=>{function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}class FloatingUI{init(){const t=document.querySelectorAll("[data-floating]");if(!t.length)return false;const e=document.querySelectorAll("[data-floating-disabled]");const n=document.querySelectorAll("[data-floating-settings]");t.forEach(t=>{const o=Array.from(e).some(e=>e.contains(t));if(!o){const e=Array.from(n).find(e=>e.contains(t));if(e){const n=JSON.parse(e.getAttribute("data-floating-settings"));if(Array.isArray(n))n.forEach(e=>{if(document.querySelector(e.element)===t)this.setupFloating(t,e)});else this.setupFloating(t,n)}else this.setupFloating(t)}})}static setupFloatingExternal(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new FloatingUI;n.setupFloating(t,e)}setupFloating(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{computePosition:n,autoUpdate:o,offset:i,flip:r,shift:a,hide:l,size:f}=window.FloatingUIDOM;const s={};if(e.floating)s.floating=e.floating;if(e.floatingRef)s.floatingRef=e.floatingRef;const c=_objectSpread({floating:t&&t.dataset?t.dataset.floating:void 0,floatingRef:t&&t.dataset?t.dataset.floatingRef:void 0},s);const d=c.element?document.querySelector(c.element):t;if(!d){console.warn("Floating UI: No valid target element found for",t);return}const g="default"===c.floating?"bottom":c.floating;const u=this.getReferenceElement(d,c);if(!u){console.warn("Floating UI: No valid reference element found for",d);return}const updatePosition=()=>{n(u,d,{placement:g,middleware:[i(8),r(),a({padding:8}),l(),f({apply:t=>{let{width:e,height:n}=t;Object.assign(d.style,{width:`${e}px`,height:`${n}px`})}})]}).then(t=>{let{x:e,y:n}=t;Object.assign(d.style,{position:"absolute",left:`${e}px`,top:`${n}px`,transform:""});const o=d.matches(".datepicker, .js-dual-calendar");if(o){const t=d.getBoundingClientRect();const e=t.top<0||t.bottom>window.innerHeight||t.left<0||t.right>window.innerWidth;if(e)Object.assign(d.style,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxHeight:`${window.innerHeight-32}px`,overflowY:"auto"})}})};if("function"===typeof o)o(u,d,updatePosition)}getReferenceElement(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.floatingRef||(t&&t.dataset?t.dataset.floatingRef:void 0);return n?document.querySelector(n)||t.parentElement:t.parentElement}}const t=new FloatingUI;if(window.acf)acf.addAction("ready",function(){t.init()});else window.addEventListener("DOMContentLoaded",()=>{t.init()})})();

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.