text: var __awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n["throw"](t))}catch(t){o(t)}}function l(t){t.done?i(t.value):new r(function(e){e(t.value)}).then(s,a)}l((n=n.apply(t,e||[])).next())})};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-d4bf7031.system.js","./p-95d7e664.system.js"],function(t,e){"use strict";var r,n,i,o,s,a,l,c,u;return{setters:[function(t){r=t.r;n=t.f;i=t.c;o=t.e;s=t.h;a=t.H},function(t){l=t.h;c=t.a;u=t.b}],execute:function(){var h=function(){function t(t){r(this,t);this.lastToIndex=-1;this.cachedHeights=[];this.scrollElTop=0;this.scrollElBottom=0;this.scrollElInitial=0;this.containerTop=0;this.containerBottom=0;this.state=0;this.disabled=true;this.ionItemReorder=n(this,"ionItemReorder",7)}t.prototype.disabledChanged=function(){if(this.gesture){this.gesture.setDisabled(this.disabled)}};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,function(){var t,r,n;var i=this;return __generator(this,function(o){switch(o.label){case 0:t=this.el.closest("ion-content");if(!t)return[3,3];return[4,t.componentOnReady()];case 1:o.sent();r=this;return[4,t.getScrollElement()];case 2:r.scrollEl=o.sent();o.label=3;case 3:n=this;return[4,e.import("./p-129dc0b2.system.js")];case 4:n.gesture=o.sent().createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:false,canStart:function(t){return i.canStart(t)},onStart:function(t){return i.onStart(t)},onMove:function(t){return i.onMove(t)},onEnd:function(){return i.onEnd()}});this.disabledChanged();return[2]}})})};t.prototype.componentDidUnload=function(){this.onEnd();if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.complete=function(t){return Promise.resolve(this.completeSync(t))};t.prototype.canStart=function(t){if(this.selectedItemEl||this.state!==0){return false}var e=t.event.target;var r=e.closest("ion-reorder");if(!r){return false}var n=d(r,this.el);if(!n){return false}t.data=n;return true};t.prototype.onStart=function(t){t.event.preventDefault();var e=this.selectedItemEl=t.data;var r=this.cachedHeights;r.length=0;var n=this.el;var i=n.children;if(!i||i.length===0){return}var o=0;for(var s=0;s<i.length;s++){var a=i[s];o+=a.offsetHeight;r.push(o);a.$ionIndex=s}var c=n.getBoundingClientRect();this.containerTop=c.top;this.containerBottom=c.bottom;if(this.scrollEl){var u=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop;this.scrollElTop=u.top+p;this.scrollElBottom=u.bottom-p}else{this.scrollElInitial=0;this.scrollElTop=0;this.scrollElBottom=0}this.lastToIndex=f(e);this.selectedItemHeight=e.offsetHeight;this.state=1;e.classList.add(m);l()};t.prototype.onMove=function(t){var e=this.selectedItemEl;if(!e){return}var r=this.autoscroll(t.currentY);var n=this.containerTop-r;var i=this.containerBottom-r;var o=Math.max(n,Math.min(t.currentY,i));var s=r+o-t.startY;var a=o-n;var l=this.itemIndexForTop(a);if(l!==this.lastToIndex){var u=f(e);this.lastToIndex=l;c();this.reorderMove(u,l)}e.style.transform="translateY("+s+"px)"};t.prototype.onEnd=function(){var t=this;var e=this.selectedItemEl;this.state=2;if(!e){this.state=0;return}var r=this.lastToIndex;var n=f(e);if(r===n){e.style.transition="transform 200ms ease-in-out";setTimeout(function(){return t.completeSync()},200)}else{this.ionItemReorder.emit({from:n,to:r,complete:this.completeSync.bind(this)})}u()};t.prototype.completeSync=function(t){var e=this.selectedItemEl;if(e&&this.state===2){var r=this.el.children;var n=r.length;var i=this.lastToIndex;var o=f(e);if(!t||t===true){var s=o<i?r[i+1]:r[i];this.el.insertBefore(e,s)}if(Array.isArray(t)){t=y(t,o,i)}for(var a=0;a<n;a++){r[a].style["transform"]=""}e.style.transition="";e.classList.remove(m);this.selectedItemEl=undefined;this.state=0}return t};t.prototype.itemIndexForTop=function(t){var e=this.cachedHeights;var r=0;for(r=0;r<e.length;r++){if(e[r]>t){break}}return r};t.prototype.reorderMove=function(t,e){var r=this.selectedItemHeight;var n=this.el.children;for(var i=0;i<n.length;i++){var o=n[i].style;var s="";if(i>t&&i<=e){s="translateY("+-r+"px)"}else if(i<t&&i>=e){s="translateY("+r+"px)"}o["transform"]=s}};t.prototype.autoscroll=function(t){if(!this.scrollEl){return 0}var e=0;if(t<this.scrollElTop){e=-v}else if(t>this.scrollElBottom){e=v}if(e!==0){this.scrollEl.scrollBy(0,e)}return this.scrollEl.scrollTop-this.scrollElInitial};t.prototype.hostData=function(){var t;var e=i(this);return{class:(t={},t[e]=true,t["reorder-enabled"]=!this.disabled,t["reorder-list-active"]=this.state!==0,t)}};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:true,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:true,configurable:true});t.prototype.render=function(){return s(a,this.hostData())};Object.defineProperty(t,"style",{get:function(){return".reorder-list-active>*{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none!important;transition:none!important;-webkit-box-shadow:0 0 10px rgba(0,0,0,.4);box-shadow:0 0 10px rgba(0,0,0,.4);opacity:.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}"},enumerable:true,configurable:true});return t}();t("ion_reorder_group",h);var f=function(t){return t["$ionIndex"]};var d=function(t,e){var r;while(t){r=t.parentElement;if(r===e){return t}t=r}return undefined};var p=60;var v=10;var m="reorder-selected";var y=function(t,e,r){var n=t[e];t.splice(e,1);t.splice(r,0,n);return t.slice()}}}});