(()=>{function t(n){return t="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},t(n)}function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function o(n,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)}function r(t){var n="function"==typeof Map?new Map:void 0;return r=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,o)}function o(){return i(t,arguments,l(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),u(o,t)},r(t)}function i(t,n,e){return i=c()?Reflect.construct:function(t,n,e){var o=[null];o.push.apply(o,n);var r=new(Function.bind.apply(t,o));return e&&u(r,e.prototype),r},i.apply(null,arguments)}function c(){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 u(t,n){return u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},u(t,n)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&u(t,n)}(b,t);var r,i,f,a,s,p=(r=b,i=c(),function(){var t,n=l(r);if(i){var e=l(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return o(this,t)});function b(){return n(this,b),p.apply(this,arguments)}return f=b,(a=[{key:"connectedCallback",value:function(){var t=this;this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML='\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\tbutton {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tgap: 0.4em;\n\t\t\t\t\tpadding: 0.45em 1em;\n\t\t\t\t\tfont-size: 0.9em;\n\t\t\t\t\tfont-family: inherit;\n\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\tline-height: 1.4;\n\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\tbackground-color: rgb(0, 0, 125);\n\t\t\t\t\tborder: none;\n\t\t\t\t\tborder-radius: 100px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\ttransition: background-color 0.15s ease;\n\t\t\t\t}\n\t\t\t\tbutton:hover {\n\t\t\t\t\tbackground-color: rgb(0, 0, 175);\n\t\t\t\t}\n\t\t\t\tbutton:focus-visible {\n\t\t\t\t\toutline: 2px solid rgb(0, 0, 125);\n\t\t\t\t\toutline-offset: 2px;\n\t\t\t\t}\n\t\t\t\t.icon {\n\t\t\t\t\twidth: 1em;\n\t\t\t\t\theight: 1em;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<button type="button" part="button">\n\t\t\t\t<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n\t\t\t\t\t<path d="M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z"/>\n\t\t\t\t\t<circle cx="12" cy="10" r="3"/>\n\t\t\t\t</svg>\n\t\t\t\t<slot>'.concat(this.getAttribute("label")||"Choose location","</slot>\n\t\t\t</button>\n\t\t"),this.shadowRoot.querySelector("button").addEventListener("click",(function(n){n.preventDefault(),t.dispatchEvent(new CustomEvent("dropp-choose",{bubbles:!0,composed:!0}))}))}}])&&e(f.prototype,a),s&&e(f,s),Object.defineProperty(f,"prototype",{writable:!1}),b}(r(HTMLElement));customElements.define("dropp-location-button",f)})();