/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/lit-selecto@1.26.3/dist/selecto.cjs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var litElement=require("lit-element"),VanillaSelecto=require("selecto"),frameworkUtils=require("framework-utils"),utils=require("@daybrush/utils");function __decorate(e,t,l,o){var i,c=arguments.length,r=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,l):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,l,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(r=(c<3?i(r):c>3?i(t,l,r):i(t,l))||r);return c>3&&r&&Object.defineProperty(t,l,r),r}exports.LitSelecto=class extends litElement.LitElement{firstUpdated(){const e={};VanillaSelecto.OPTIONS.forEach((t=>{e[t]=this[t]})),this.selecto=new VanillaSelecto(Object.assign(Object.assign({},e),{portalContainer:this,dragContainer:e.dragContainer||this.parentElement}));const t=this.selecto;VanillaSelecto.EVENTS.forEach(((e,l)=>{t.on(e,(t=>{!1===this.dispatchEvent(new CustomEvent(utils.camelize(`lit ${e}`),{detail:Object.assign({},t)}))&&t.stop()}))}))}updated(e){const t=this.selecto;e.forEach(((e,l)=>{VanillaSelecto.PROPERTIES.indexOf(l)>-1&&(t[l]=this[l])}))}disconnectedCallback(){super.disconnectedCallback(),this.selecto.destroy()}},__decorate([frameworkUtils.withMethods(VanillaSelecto.METHODS,{click:"clickSelecto"})],exports.LitSelecto.prototype,"selecto",void 0),exports.LitSelecto=__decorate([frameworkUtils.Properties(VanillaSelecto.OPTIONS,((e,t)=>{litElement.property({type:VanillaSelecto.OPTION_TYPES[t]})(e,t)})),litElement.customElement("lit-selecto")],exports.LitSelecto),Object.keys(VanillaSelecto).forEach((function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return VanillaSelecto[e]}})}));
//# sourceMappingURL=/sm/fb76cdfaffd46a217ba72d47a4222a2d00cd64289a42101957fd80f318f4693c.map