/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@lemonadejs/switch@5.8.0/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
if(!lemonade&&"function"==typeof require)var lemonade=require("lemonadejs");!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.Switch=n()}(this,(function(){class e extends Event{constructor(e,n,t){if(super(e,{bubbles:!0,composed:!0,...t}),n)for(const e in n)e in this||(this[e]=n[e])}}const n=function(n,t,o){if("function"==typeof n){return n(...Object.values(o))}this.tagName&&this.dispatchEvent(new e(t,o))},t=function(e,{onchange:t,onload:o}){let c=this,s=c.onchange;c.onchange=null;const i=()=>{let e=c.el.firstChild.checked;e!==c.checked&&(c.checked=e)};return t(((e,t,o,l,a)=>{t!==o&&n.call(c,s,"change",{instance:c,value:c.value}),i()})),o(i),e=>e`<label class="lm-switch" position="{{self.position}}" data-color="{{self.color}}">
            <input type="checkbox" name="{{self.name}}" disabled="{{self.disabled}}" checked="{{self.checked}}" :bind="self.value" /> <span>{{self.text}}</span>
        </label>`};return lemonade.setComponents({Switch:t}),lemonade.createWebComponent("switch",t),function(e,n){return"object"==typeof e?(lemonade.render(t,e,n),n):t.call(this,e)}}));
//# sourceMappingURL=/sm/a6ba15edd2723ab153a47d7629a96b3deaff087c3a79cb915f379f148d74c234.map