!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit"),require("lit/decorators.js"),require("sortablejs"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","sortablejs"],e);else{var o="object"==typeof exports?e(require("lit"),require("lit/decorators.js"),require("sortablejs")):e(t.lit,t["lit/decorators.js"],t.sortablejs);for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}(self,(t,e,o)=>(()=>{"use strict";var r,s={8306(t,e,o){o.r(e),o.d(e,{Draggable:()=>r});var r,s=o(7704),a=o(2050),i=o(4084),n=o(7161),l=o(429),p=o(1891),d=o.n(p),h=o(9431),c=function(t,e,o,r){var s,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};!function(t){let e=class extends((0,s.TS)(n.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=(0,a.sg)(t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)},100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[i.A,h.A]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=d().create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return n.html`
        <div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
          <slot name="draggable-item"></slot>
        </div>
      `}};c([(0,l.property)({type:Number})],e.prototype,"delay",void 0),c([(0,l.property)({type:Number})],e.prototype,"animation",void 0),c([(0,l.property)({type:String})],e.prototype,"handle",void 0),c([(0,l.property)({type:String})],e.prototype,"filter",void 0),c([(0,l.property)({type:String})],e.prototype,"easing",void 0),c([(0,l.property)({type:String})],e.prototype,"direction",void 0),c([(0,l.property)({type:Object})],e.prototype,"group",void 0),c([(0,l.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),c([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),c([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),c([(0,l.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),c([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),c([(0,l.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),c([(0,l.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),c([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),c([(0,l.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=c([(0,s.wW)("md-draggable")],e),t.ELEMENT=e}(r||(r={}))},7161(e){e.exports=t},429(t){t.exports=e},1891(t){t.exports=o}},a={};function i(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={exports:{}};return s[t](o,o.exports,i),o.exports}i.m=s,r=[],i.O=(t,e,o,s)=>{if(!e){var a=1/0;for(d=0;d<r.length;d++){for(var[e,o,s]=r[d],n=!0,l=0;l<e.length;l++)(!1&s||a>=s)&&Object.keys(i.O).every(t=>i.O[t](e[l]))?e.splice(l--,1):(n=!1,s<a&&(a=s));if(n){r.splice(d--,1);var p=o();void 0!==p&&(t=p)}}return t}s=s||0;for(var d=r.length;d>0&&r[d-1][2]>s;d--)r[d]=r[d-1];r[d]=[e,o,s]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={4259:0};i.O.j=e=>0===t[e];var e=(e,o)=>{var r,s,[a,n,l]=o,p=0;if(a.some(e=>0!==t[e])){for(r in n)i.o(n,r)&&(i.m[r]=n[r]);if(l)var d=l(i)}for(e&&e(o);p<a.length;p++)s=a[p],i.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return i.O(d)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var n=i.O(void 0,[9609,4084,2364,9938,4781,5201,2050,608,3203,5757,9431,8180],()=>i(8306));return i.O(n)})());