PageSourceSearch

https://www.galettorealestate.com.au/js/cowtools/popup-menu.js

js galettorealestate.com.au collected 2026-10-09 00:00:59 UTC 22,104 bytes, 3 lines download raw bytes

vendor: 4,678 bytes, lines 1-2
1/*! © 2024 Push Creative. All Rights Reserved. https://pushcreative.com.au/ */
2var PopupMenu=function(t){"use strict";function e(){e=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),u=new A(r||[]);return i(a,"_invoke",{value:j(t,n,u)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var h="suspendedStart",d="suspendedYield",v="executing",y="completed",g={};function m(){}function b(){}function w(){}var E={};c(E,u,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(T([])));L&&L!==r&&o.call(L,u)&&(E=L);var P=w.prototype=m.prototype=Object.create(E);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(r,i,a,u){var s=p(t[r],t,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&o.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var r;i(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}})}function j(e,n,r){var o=h;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var s=S(u,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=p(e,n,r);if("normal"===l.type){if(o=r.done?y:d,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function S(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,i(P,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=c(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,l,"GeneratorFunction")),t.prototype=Object.create(P),t},n.awrap=function(t){return{__await:t}},O(k.prototype),c(k.prototype,s,(function(){return this})),n.AsyncIterator=k,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new k(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(P),c(P,l,"Generator"),c(P,u,(function(){return this})),c(P,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
vendor: 3,065 bytes, line 2
2h(C),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,o)}function i(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function a(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,n){return c=l()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&s(o,n.prototype),o},c.apply(null,arguments)}function f(t){var e="function"==typeof Map?new Map:void 0;return f=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},f(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=l();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}(this,n)}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}var y="object"==("undefined"==typeof global?"undefined":r(global))&&global&&global.Object===Object&&global,g="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,m=(y||g||Function("return this")()).Symbol,b=Object.prototype,w=b.hasOwnProperty,E=b.toString,x=m?m.toStringTag:void 0;var L=Object.prototype.toString;var P="[object Null]",O="[object Undefined]",k=m?m.toStringTag:void 0;function j(t){return null==t?void 0===t?O:P:k&&k in Object(t)?function(t){var e=w.call(t,x),n=t[x];try{t[x]=void 0;var r=!0}catch(t){}var o=E.call(t);return r&&(e?t[x]=n:delete t[x]),o}(t):function(t){return L.call(t)}(t)}function S(t){return null!=t&&"object"==r(t)}var _="[object Symbol]";var C=Array.isArray,A=1/0,T=m?m.prototype:void 0,I=T?T.toString:void 0;function H(t){if("string"==typeof t)return t;if(C(t))return function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}(t,H)+"";if(function(t){return"symbol"==r(t)||S(t)&&j(t)==_}(t))return I?I.call(t):"";var e=t+"";return"0"==e&&1/t==-A?"-0":e}var N="[object String]";var R=0;function W(t){var e=++R;return function(t){return null==t?"":H(t)}(t)+e}function M(t){return Array.isArray(t)||Number.isFinite(t)||t.toString()==t?Array.isArray(t)&&0<t.length||Number.isFinite(t)&&0!=t||function(t){return"string"==typeof t||!C(t)&&S(t)&&j(t)==N}(t)&&["yes","true","1","y"].includes(t.toLowerCase().toString()):!!t}function F(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return null===e?window.getComputedStyle(t):window.getComputedStyle(t).getPropertyValue(e)}function B(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];if(function(t){return t instanceof NodeList||t instanceof HTMLCollection||t instanceof Array&&t.every((function(t){return t instanceof Element}))}(t)){var r,o=v(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;for(var a in e)i.style.setProperty(a,e[a],n?"important":void 0)}}catch(t){o.e(t)}finally{o.f()}}else if(t instanceof Element)for(var u in e)t.style.setProperty(u,e[u],n?"important":void 0);return t}var G=function(t){if("none"!=F(t,"display"))return function(){};var e=t.style.cssText;return t.style.display="block",t.style.visibility="hidden",t.style.margin=0,function(){this.style.cssText=e}.bind(t)};function z(t){return function(t){t.offsetHeight,t.offsetWidth}(t),function(t,e){if(!t||t.offsetHeight||t.offsetWidth)return e.call(t);for(var n=t.parentNode,r=[];n&&!n.offsetHeight&&!n.offsetWidth&&n!=document.body;)r.push(G(n)),n=n.parentNode;var o=G(t),i=e.call(t);return o(),r.forEach((function(t){t()})),i}(t,function(){var t=this,e=F(this),n=t.getBoundingClientRect();return{width:Math.ceil(n.width),height:Math.ceil(n.height),scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,boundingRect:n,margin:{top:e?parseInt(e.marginTop):0,right:e?parseInt(e.marginRight):0,bottom:e?parseInt(e.marginBottom):0,left:e?parseInt(e.marginLeft):0},padding:{top:e?parseInt(e.paddingTop):0,right:e?parseInt(e.paddingRight):0,bottom:e?parseInt(e.paddingBottom):0,left:e?parseInt(e.paddingLeft):0},border:{top:e?parseInt(e.borderTopWidth):0,right:e?parseInt(e.borderRightWidth):0,bottom:e?parseInt(e.borderBottomWidth):0,left:e?parseInt(e.borderLeftWidth):0}}}.bind(t))}function q(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.body,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"width",r=function(t){var e=t.toString().trim().match(/^([0-9.
2-]+)(cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|%|)$/);return null===e?null:{value:parseFloat(e[1]),unit:e[2]}}(t);if(null!==r){if(""==r.unit||"px"==r.unit)return r.value;if("%"==r.unit)return(e===document.body?document.body.innerWidth:z(e)[n])*(r.value/100);if("em"==r.unit||"rem"==r.unit)return r.value*parseInt(F(e,"font-size"));if("vmin"==r.unit)return r.value/100*Math.min(window.innerWidth,window.innerHeight);if("vmax"==r.unit)return r.value/100*Math.max(window.innerWidth,window.innerHeight);if("vh"==r.unit||"dvh"==r.unit||"svh"==r.unit||"lvh"==r.unit)return r.value/100*window.innerHeight;if("vw"==r.unit||"dvw"==r.unit||"svw"==r.unit||"lvw"==r.unit)return r.value/100*window.innerWidth}var o=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return Object.keys(e).forEach((function(t){"class"==t.toLowerCase()||"classname"==t.toLowerCase()?o.className=e[t]:"text"==t.toLowerCase()||"innertext"==t.toLowerCase()?""==r&&(r=htmlEntities(e[t])):"html"==t.toLowerCase()||"innerhtml"==t.toLowerCase()?""==r&&(r=e[t]):null!==e[t]&&void 0!==e[t]&&o.setAttribute(t,e[t])})),Object.keys(n).forEach((function(t){return o.style[t]=n[t]})),""!=r&&(o.innerHTML=r),o}("span",{id:"__toPixelsElement"},{visibility:"hidden",position:"absolute","font-size":t});!function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"bottom";e instanceof Element&&(!n||"bottom"===n||"inside"===n||0==e.children.length&&"top"==n?e.appendChild(t):"top"===n?e.insertBefore(t,e.firstElementChild):"after"===n?e.nextElementSibling?e.parentNode.insertBefore(t,e.nextElementSibling):e.parentNode.appendChild(t):"before"===n?e.parentNode.insertBefore(t,e):"around"===n&&function(t,e){e.parentNode.insertBefore(t,e),t.appendChild(e)}(t,e))}(o,e,"bottom");var i=F(o,"font-size");return e.removeChild(o),parseFloat(i)}var U,Y="popup-menu",$=function(t){function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),a(p(t=c.call(this)),"slottedElements",void 0),a(p(t),"_state",{halign:"left",valign:"bottom",offset:"1px",closeOnClick:!0}),t.attachShadow({mode:"open"}).appendChild(t.loadTemplate().cloneNode(!0)),t.element=t.shadowRoot.firstElementChild,t.slottedElements={trigger:t.querySelector('[slot="trigger"]'),popup:t.shadowRoot.querySelector('[part="popup"]'),wrap:t.shadowRoot.firstElementChild},t.eventHandlers={show:t.showPopup.bind(p(t)),hide:t.hidePopup.bind(p(t)),position:t.positionPopup.bind(p(t))},t.popup.id?t.trigger.setAttribute("aria-controls",t.popup.id):(t.popup.id=W(Y),t.slottedElements.trigger.setAttribute("aria-controls",t.popup.id)),t.hidePopup({}),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(n,t);var r,u,l,c=h(n);return r=n,u=[{key:"isActive",get:function(){return"false"==this.popup.getAttribute("aria-hidden")&&"true"==this.getAttribute("aria-expanded")}},{key:"popup",get:function(){return this.slottedElements.popup}},{key:"trigger",get:function(){return this.slottedElements.trigger}},{key:"closeOnClick",get:function(){return this._state.closeOnClick},set:function(t){this._state.closeOnClick=M(t)}},{key:"halign",get:function(){return this._state.halign},set:function(t){this._state.halign=t,this.positionPopup()}},{key:"valign",get:function(){return this._state.valign},set:function(t){this._state.valign=t,this.positionPopup()}},{key:"offset",set:function(t){this._state.offset=t,this.positionPopup()}},{key:"offsetInPixels",get:function(){return q(this._state.offset)}},{key:"attributeChangedCallback",value:function(t,e,n){"halign"===t?this.halign=n.toLowerCase():"valign"===t?this.valign=n.toLowerCase():"offset"===t?this.offset=n:("closeOnClick"===t||"closeonclick"===t)&&(this.closeOnClick=n)}},{key:"connectedCallback",value:function(){this.setAttribute("connected",performance.now()),this.slottedElements.trigger.addEventListener("click",this.eventHandlers.show,{passive:!0})}},{key:"disconnectedCallback",value:function(){this.removeAttribute("connected"),this.hidePopup({}),this.slottedElements.trigger.removeEventListener("click",this.eventHandlers.show)}},{key:"adoptedCallback",value:function(){this.positionPopup()}},{key:"hidePopup",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;(t||this.isActive)&&(!t||!t.target||this.closeOnClick||t.target.closest("popup-menu")!==this||t.target===this.trigger)&&(this.popup.style.display="none",this.popup.setAttribute("aria-hidden","true"),this.setAttribute("aria-expanded","fal
2se"),window.removeEventListener("resize",this.eventHandlers.position),document.body.removeEventListener("click",this.eventHandlers.hide),null!==t&&this.dispatchEvent(new CustomEvent("hidePopup",{detail:{originalEvent:t}})))}},{key:"showPopup",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return this.isActive&&t&&t.target&&t.target===this.trigger?void this.hidePopup(t):(document.querySelectorAll(Y).forEach((function(t){t.hidePopup&&t.hidePopup()})),this.popup.setAttribute("aria-hidden","false"),this.setAttribute("aria-expanded","true"),this.positionPopup(),t.stopPropagation(),window.addEventListener("resize",this.eventHandlers.position,{passive:!0}),document.body.addEventListener("click",this.eventHandlers.hide,{passive:!0}),this.dispatchEvent(new CustomEvent("showPopup",{detail:{originalEvent:t}})),void this.positionPopup())}},{key:"positionPopup",value:function(){if(this.isActive){B(this.slottedElements.wrap,{position:"relative"}),B(this.popup,{position:"absolute",display:"block","z-index":1e4,"user-select":"none",visibility:"visible"});var t=this.trigger.offsetLeft,e=this.trigger.offsetTop,n=this.trigger.getBoundingClientRect(),r=z(this.popup);B(this.slottedElements.wrap,"position",null),"middle"==this.valign?B(this.popup,{left:"left"==this.halign?"".concat(t-r.width-this.offsetInPixels,"px"):"".concat(t+n.width+this.offsetInPixels,"px"),top:"".concat(e+(n.height-r.height)/2,"px"),visibility:"visible"}):B(this.popup,{left:"left"==this.halign?"".concat(t,"px"):"".concat(t+n.width-r.width,"px"),top:"bottom"==this.valign?"".concat(e+n.height+this.offsetInPixels,"px"):"".concat(e-r.height-this.offsetInPixels,"px"),visibility:"visible"})}}},{key:"loadTemplate",value:function(){var t=document.createElement("template");return t.innerHTML='\n<div class="__popup-menu">\n    <div part="trigger"><slot name="trigger"></slot></div>\n    <div part="popup">\n        <slot name="popup" />\n        <slot/>\n    </div>\n</div>\n\n<style>\n    :host{display: inline-block;}\n    :host([hidden]){display: none;}\n    .__popup-menu { position: relative; display: contents; }\n    [part="trigger"]{ display: contents; }\n    ::slotted([slot="trigger"]) { cursor: pointer; user-select: none; }\n</style>\n'.trim(),t.content}}],l=[{key:"observedAttributes",get:function(){return["halign","valign","offset","closeonclick","closeOnClick"]}},{key:"attach",value:function(){var t,r=(t=e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:void 0===customElements.get(Y)&&customElements.define(Y,n);case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function u(t){o(a,r,i,u,s,"next",t)}function s(t){o(a,r,i,u,s,"throw",t)}u(void 0)}))});return function(){return r.apply(this,arguments)}}()}],u&&i(r.prototype,u),l&&i(r,l),Object.defineProperty(r,"prototype",{writable:!1}),n}(f(HTMLElement));return U=$.attach,window.requestAnimationFrame(U),t.PopupMenu=$,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
3/*! © 2024 Push Creative. All Rights Reserved. https://pushcreative.com.au/ */

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.