blob: 4cdeb70456a196ab708b6564ba19b293a7752567 [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/cdk/platform"),require("@angular/cdk/coercion"),require("rxjs"),require("rxjs/operators"),require("@angular/core"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/bidi")):"function"==typeof define&&define.amd?define("@angular/cdk/drag-drop",["exports","@angular/cdk/platform","@angular/cdk/coercion","rxjs","rxjs/operators","@angular/core","@angular/common","@angular/cdk/scrolling","@angular/cdk/bidi"],e):e((t.ng=t.ng||{},t.ng.cdk=t.ng.cdk||{},t.ng.cdk.dragDrop={}),t.ng.cdk.platform,t.ng.cdk.coercion,t.rxjs,t.rxjs.operators,t.ng.core,t.ng.common,t.ng.cdk.scrolling,t.ng.cdk.bidi)}(this,function(t,e,i,r,n,o,s,a,c){"use strict";function l(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function p(t,e){var i=e?"":"none";l(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function d(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function h(t){var e=getComputedStyle(t),i=u(e,"transition-property"),r=i.find(function(t){return"transform"===t||"all"===t});if(!r)return 0;var n=i.indexOf(r),o=u(e,"transition-duration"),s=u(e,"transition-delay");return d(o[n])+d(s[n])}function u(t,e){return t.getPropertyValue(e).split(",").map(function(t){return t.trim()})}function g(t,e){return"translate3d("+Math.round(t)+"px, "+Math.round(e)+"px, 0)"}function _(t){var e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),r=t.querySelectorAll("canvas");e.removeAttribute("id");for(var n=0;n<i.length;n++)i[n].removeAttribute("id");if(r.length)for(var o=e.querySelectorAll("canvas"),n=0;n<r.length;n++){var s=o[n].getContext("2d");s&&s.drawImage(r[n],0,0)}return e}function f(t,e,i){return Math.max(e,Math.min(i,t))}function m(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function v(t){return"t"===t.type[0]}function y(t){return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}function D(t,e,i){var r=E(e,t.length-1),n=E(i,t.length-1);if(r!==n){for(var o=t[r],s=n<r?-1:1,a=r;a!==n;a+=s)t[a]=t[a+s];t[n]=o}}function b(t,e,i,r){var n=E(i,t.length-1),o=E(r,e.length);t.length&&e.splice(o,0,t.splice(n,1)[0])}function P(t,e,i,r){var n=E(r,e.length);t.length&&e.splice(n,0,t[i])}function E(t,e){return Math.max(0,Math.min(e,t))}function w(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function R(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i,t))return i;return-1}function x(t,e,i){var r=t.top,n=t.bottom,o=t.left,s=t.right;return i>=r&&i<=n&&e>=o&&e<=s}function S(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function I(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function C(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function k(t,e){var i=t.top,r=t.bottom,n=t.height,o=n*F;return e>=i-o&&e<=i+o?1:e>=r-o&&e<=r+o?2:0}function T(t,e){var i=t.left,r=t.right,n=t.width,o=n*F;return e>=i-o&&e<=i+o?1:e>=r-o&&e<=r+o?2:0}function O(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}function L(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var j=e.normalizePassiveListenerOptions({passive:!0}),A=e.normalizePassiveListenerOptions({passive:!1}),M=function(){function t(t,e,i,n,o,s){var a=this;this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new r.Subject,this._pointerMoveSubscription=r.Subscription.EMPTY,this._pointerUpSubscription=r.Subscription.EMPTY,this._scrollSubscription=r.Subscription.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new r.Subject,this.started=new r.Subject,this.released=new r.Subject,this.ended=new r.Subject,this.entered=new r.Subject,this.exited=new r.Subject,this.dropped=new r.Subject,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(a.beforeStarted.next(),a._handles.length){var e=a._handles.find(function(e){var i=t.target;return!!i&&(i===e||e.contains(i))});!e||a._disabledHandles.has(e)||a.disabled||a._initializeDragSequence(e,t)}else a.disabled||a._initializeDragSequence(a._rootElement,t)},this._pointerMove=function(t){if(a._hasStartedDragging){a._boundaryElement&&(a._previewRect&&(a._previewRect.width||a._previewRect.height)||(a._previewRect=(a._preview||a._rootElement).getBoundingClientRect()));var e=a._getConstrainedPointerPosition(t);if(a._hasMoved=!0,t.preventDefault(),a._updatePointerDirectionDelta(e),a._dropContainer)a._updateActiveDropContainer(e);else{var i=a._activeTransform;if(i.x=e.x-a._pickupPositionOnPage.x+a._passiveTransform.x,i.y=e.y-a._pickupPositionOnPage.y+a._passiveTransform.y,a._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&a._rootElement instanceof SVGElement){var r="translate("+i.x+" "+i.y+")";a._rootElement.setAttribute("transform",r)}}a._moveEvents.observers.length&&a._ngZone.run(function(){a._moveEvents.next({source:a,pointerPosition:e,event:t,distance:a._getDragDistance(e),delta:a._pointerDirectionDelta})})}else{var n=a._getPointerPositionOnPage(t);if(Math.abs(n.x-a._pickupPositionOnPage.x)+Math.abs(n.y-a._pickupPositionOnPage.y)>=a._config.dragStartThreshold){if(!(Date.now()>=a._dragStartTime+(a.dragStartDelay||0)))return void a._endDragSequence(t);a._dropContainer&&a._dropContainer.isDragging()||(a._hasStartedDragging=!0,a._ngZone.run(function(){return a._startDragSequence(t)}))}}},this._pointerUp=function(t){a._endDragSequence(t)},this.withRootElement(t),s.registerDragItem(this)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=i.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())},enumerable:!0,configurable:!0}),t.prototype.getPlaceholderElement=function(){return this._placeholder},t.prototype.getRootElement=function(){return this._rootElement},t.prototype.withHandles=function(t){return this._handles=t.map(function(t){return i.coerceElement(t)}),this._handles.forEach(function(t){return p(t,!1)}),this._toggleNativeDragInteractions(),this},t.prototype.withPreviewTemplate=function(t){return this._previewTemplate=t,this},t.prototype.withPlaceholderTemplate=function(t){return this._placeholderTemplate=t,this},t.prototype.withRootElement=function(t){var e=i.coerceElement(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,A),e.addEventListener("touchstart",this._pointerDown,j),this._initialTransform=void 0,this._rootElement=e),this},t.prototype.withBoundaryElement=function(t){return this._boundaryElement=t?i.coerceElement(t):null,this},t.prototype.dispose=function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&m(this._rootElement),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._nextSibling=null},t.prototype.isDragging=function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)},t.prototype.reset=function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}},t.prototype.disableHandle=function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)},t.prototype.enableHandle=function(t){this._disabledHandles.delete(t)},t.prototype.withDirection=function(t){return this._direction=t,this},t.prototype._withDropContainer=function(t){this._dropContainer=t},t.prototype.getFreeDragPosition=function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}},t.prototype.setFreeDragPosition=function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this},t.prototype._sortFromLastPointerPosition=function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)},t.prototype._removeSubscriptions=function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()},t.prototype._destroyPreview=function(){this._preview&&m(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null},t.prototype._destroyPlaceholder=function(){this._placeholder&&m(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null},t.prototype._endDragSequence=function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){e._cleanupDragArtifacts(t),e._dragDropRegistry.stopDragging(e)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})}),this._dragDropRegistry.stopDragging(this))))},t.prototype._startDragSequence=function(t){if(this.started.next({source:this}),v(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var e=this._rootElement;this._nextSibling=e.nextSibling;var i=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement();e.style.display="none",this._document.body.appendChild(e.parentNode.replaceChild(r,e)),y(this._document).appendChild(i),this._dropContainer.start()}},t.prototype._initializeDragSequence=function(t,e){var i=this;e.stopPropagation();var r=this.isDragging(),o=v(e),s=!o&&0!==e.button,a=this._rootElement,c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(r||s||c)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._initialContainer=this._dropContainer,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(n.startWith(null)).subscribe(function(){i._scrollPosition=i._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect()),this._pickupPositionInElement=this._previewTemplate&&this._previewTemplate.template?{x:0,y:0}:this._getPointerPositionInElement(t,e);var l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}},t.prototype._cleanupDragArtifacts=function(t){var e=this;this._rootElement.style.display="",this._nextSibling?this._nextSibling.parentNode.insertBefore(this._rootElement,this._nextSibling):i.coerceElement(this._initialContainer.element).appendChild(this._rootElement),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(function(){var i=e._dropContainer,r=i.getItemIndex(e),n=e._getPointerPositionOnPage(t),o=e._getDragDistance(e._getPointerPositionOnPage(t)),s=i._isOverContainer(n.x,n.y);e.ended.next({source:e,distance:o}),e.dropped.next({item:e,currentIndex:r,previousIndex:e._initialContainer.getItemIndex(e),container:i,previousContainer:e._initialContainer,isPointerOverContainer:s,distance:o}),i.drop(e,r,e._initialContainer,s,o),e._dropContainer=e._initialContainer})},t.prototype._updateActiveDropContainer=function(t){var e=this,i=t.x,r=t.y,n=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=n,e._dropContainer.enter(e,i,r),e.entered.next({item:e,container:n,currentIndex:n.getItemIndex(e)})}),this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=g(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)},t.prototype._createPreviewElement=function(){var t,e=this._previewTemplate,i=e?e.template:null;if(i){var r=e.viewContainer.createEmbeddedView(i,e.context);t=r.rootNodes[0],this._previewRef=r,t.style.transform=g(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var n=this._rootElement,o=n.getBoundingClientRect();t=_(n),t.style.width=o.width+"px",t.style.height=o.height+"px",t.style.transform=g(o.left,o.top)}return l(t.style,{pointerEvents:"none",position:"fixed",top:"0",left:"0",zIndex:"1000"}),p(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),t},t.prototype._animatePreviewToPlaceholder=function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=g(e.left,e.top);var i=h(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(e){var r=function(i){(!i||i.target===t._preview&&"transform"===i.propertyName)&&(t._preview.removeEventListener("transitionend",r),e(),clearTimeout(n))},n=setTimeout(r,1.5*i);t._preview.addEventListener("transitionend",r)})})},t.prototype._createPlaceholderElement=function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),t=this._placeholderRef.rootNodes[0]):t=_(this._rootElement),t.classList.add("cdk-drag-placeholder"),t},t.prototype._getPointerPositionInElement=function(t,e){var i=this._rootElement.getBoundingClientRect(),r=t===this._rootElement?null:t,n=r?r.getBoundingClientRect():i,o=v(e)?e.targetTouches[0]:e,s=o.pageX-n.left-this._scrollPosition.left,a=o.pageY-n.top-this._scrollPosition.top;return{x:n.left-i.left+s,y:n.top-i.top+a}},t.prototype._getPointerPositionOnPage=function(t){var e=v(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}},t.prototype._getConstrainedPointerPosition=function(t){var e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,r=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===r?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==r||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){var n=this._pickupPositionInElement,o=n.x,s=n.y,a=this._boundaryRect,c=this._previewRect,l=a.top+s,p=a.bottom-(c.height-s),d=a.left+o,h=a.right-(c.width-o);i.x=f(i.x,d,h),i.y=f(i.y,l,p)}return i},t.prototype._updatePointerDirectionDelta=function(t){var e=t.x,i=t.y,r=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-n.x),s=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=e>n.x?1:-1,n.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=i>n.y?1:-1,n.y=i),r},t.prototype._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,p(this._rootElement,t))}},t.prototype._removeRootElementListeners=function(t){t.removeEventListener("mousedown",this._pointerDown,A),t.removeEventListener("touchstart",this._pointerDown,j)},t.prototype._applyRootElementTransform=function(t,e){var i=g(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i},t.prototype._getDragDistance=function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}},t}(),N=0,F=.05,z=2,Z=function(){function t(t,e,s,a,c){var l=this;this._dragDropRegistry=e,this._ngZone=a,this._viewportRuler=c,this.id="cdk-drop-list-ref-"+N++,this.disabled=!1,this.sortingDisabled=!0,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new r.Subject,this.entered=new r.Subject,this.exited=new r.Subject,this.dropped=new r.Subject,this.sorted=new r.Subject,this._isDragging=!1,this._itemPositions=[],this._scrollPosition={top:0,left:0},this._viewportScrollPosition={top:0,left:0},this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=r.Subscription.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new r.Subject,this._handleScroll=function(){if(l.isDragging()){var t=i.coerceElement(l.element);l._updateAfterScroll(l._scrollPosition,t.scrollTop,t.scrollLeft)}},this._startScrollInterval=function(){l._stopScrolling(),r.interval(0,r.animationFrameScheduler).pipe(n.takeUntil(l._stopScrollTimers)).subscribe(function(){var t=l._scrollNode;1===l._verticalScrollDirection?I(t,-z):2===l._verticalScrollDirection&&I(t,z),1===l._horizontalScrollDirection?C(t,-z):2===l._horizontalScrollDirection&&C(t,z)})},e.registerDropContainer(this),this._document=s,this.element=t instanceof o.ElementRef?t.nativeElement:t}return t.prototype.dispose=function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._removeListeners(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._dragDropRegistry.removeDropContainer(this)},t.prototype.isDragging=function(){return this._isDragging},t.prototype.start=function(){var t=this,e=i.coerceElement(this.element);this.beforeStarted.next(),this._isDragging=!0,this._cacheItems(),this._siblings.forEach(function(e){return e._startReceiving(t)}),this._removeListeners(),this._ngZone?this._ngZone.runOutsideAngular(function(){return e.addEventListener("scroll",t._handleScroll)}):e.addEventListener("scroll",this._handleScroll),this._viewportRuler&&(this._viewportScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(){if(t.isDragging()){var e=t._viewportRuler.getViewportScrollPosition();t._updateAfterScroll(t._viewportScrollPosition,e.top,e.left,t._clientRect)}}))},t.prototype.enter=function(t,e,r){this.start();var n=this.sortingDisabled?this._draggables.indexOf(t):-1;-1===n&&(n=this._getItemIndexFromPointerPosition(t,e,r));var o=this._activeDraggables,s=o.indexOf(t),a=t.getPlaceholderElement(),c=o[n];if(c===t&&(c=o[n+1]),s>-1&&o.splice(s,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(a,l),o.splice(n,0,t)}else i.coerceElement(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})},t.prototype.exit=function(t){this._reset(),this.exited.next({item:t,container:this})},t.prototype.drop=function(t,e,i,r,n){void 0===n&&(n={x:0,y:0}),this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i.getItemIndex(t),container:this,previousContainer:i,isPointerOverContainer:r,distance:n})},t.prototype.withItems=function(t){var e=this;return this._draggables=t,t.forEach(function(t){return t._withDropContainer(e)}),this.isDragging()&&this._cacheItems(),this},t.prototype.withDirection=function(t){return this._direction=t,this},t.prototype.connectedTo=function(t){return this._siblings=t.slice(),this},t.prototype.withOrientation=function(t){return this._orientation=t,this},t.prototype.getItemIndex=function(t){return this._isDragging?R("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(e){return e.drag===t}):this._draggables.indexOf(t)},t.prototype.isReceiving=function(){return this._activeSiblings.size>0},t.prototype._sortItem=function(t,e,i,r){if(!this.sortingDisabled&&this._isPointerNearDropContainer(e,i)){var n=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,r);if(!(-1===o&&n.length>0)){var s="horizontal"===this._orientation,a=R(n,function(e){return e.drag===t}),c=n[o],l=n[a].clientRect,p=c.clientRect,d=a>o?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y;var h=this._getItemOffsetPx(l,p,d),u=this._getSiblingOffsetPx(a,n,d),g=n.slice();D(n,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),n.forEach(function(e,i){if(g[i]!==e){var r=e.drag===t,n=r?h:u,o=r?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=n,s?(o.style.transform="translate3d("+Math.round(e.offset)+"px, 0, 0)",w(e.clientRect,0,n)):(o.style.transform="translate3d(0, "+Math.round(e.offset)+"px, 0)",w(e.clientRect,n,0))}})}}},t.prototype._startScrollingIfNecessary=function(t,e){if(!this.autoScrollDisabled){var r,n=0,o=0;if(this._viewportRuler){var s=this._viewportRuler.getViewportSize(),a=s.width,c=s.height,l={width:a,height:c,top:0,right:a,bottom:c,left:0};n=k(l,e),o=T(l,t),r=window}n||o||!this._isPointerNearDropContainer(t,e)||(n=k(this._clientRect,e),o=T(this._clientRect,t),r=i.coerceElement(this.element)),!r||n===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=r,(n||o)&&r?this._ngZone?this._ngZone.runOutsideAngular(this._startScrollInterval):this._startScrollInterval():this._stopScrolling())}},t.prototype._stopScrolling=function(){this._stopScrollTimers.next()},t.prototype._cacheOwnPosition=function(){var t=i.coerceElement(this.element);this._clientRect=S(t),this._scrollPosition={top:t.scrollTop,left:t.scrollLeft}},t.prototype._cacheItemPositions=function(){var t=this,e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){return{drag:e,offset:0,clientRect:S(t._dragDropRegistry.isDragging(e)?e.getPlaceholderElement():e.getRootElement())}}).sort(function(t,i){return e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top})},t.prototype._reset=function(){var t=this;this._isDragging=!1,this._activeDraggables.forEach(function(t){return t.getRootElement().style.transform=""}),this._siblings.forEach(function(e){return e._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._removeListeners()},t.prototype._getSiblingOffsetPx=function(t,e,i){var r="horizontal"===this._orientation,n=e[t].clientRect,o=e[t+-1*i],s=n[r?"width":"height"]*i;if(o){var a=r?"left":"top",c=r?"right":"bottom";-1===i?s-=o.clientRect[a]-n[c]:s+=n[a]-o.clientRect[c]}return s},t.prototype._isPointerNearDropContainer=function(t,e){var i=this._clientRect,r=i.top,n=i.right,o=i.bottom,s=i.left,a=i.width,c=i.height,l=.05*a,p=.05*c;return e>r-p&&e<o+p&&t>s-l&&t<n+l},t.prototype._getItemOffsetPx=function(t,e,i){var r="horizontal"===this._orientation,n=r?e.left-t.left:e.top-t.top;return-1===i&&(n+=r?e.width-t.width:e.height-t.height),n},t.prototype._getItemIndexFromPointerPosition=function(t,e,i,r){var n=this,o="horizontal"===this._orientation;return R(this._itemPositions,function(s,a,c){var l=s.drag,p=s.clientRect;if(l===t)return c.length<2;if(r){var d=o?r.x:r.y;if(l===n._previousSwap.drag&&d===n._previousSwap.delta)return!1}return o?e>=Math.floor(p.left)&&e<=Math.floor(p.right):i>=Math.floor(p.top)&&i<=Math.floor(p.bottom)})},t.prototype._cacheItems=function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheOwnPosition()},t.prototype._updateAfterScroll=function(t,e,i,r){var n=this,o=t.top-e,s=t.left-i;r&&w(r,o,s),this._itemPositions.forEach(function(t){w(t.clientRect,o,s)}),this._itemPositions.forEach(function(t){var e=t.drag;n._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}),t.top=e,t.left=i},t.prototype._removeListeners=function(){i.coerceElement(this.element).removeEventListener("scroll",this._handleScroll),this._viewportScrollSubscription.unsubscribe()},t.prototype._isOverContainer=function(t,e){return x(this._clientRect,t,e)},t.prototype._getSiblingContainerFromPosition=function(t,e,i){return this._siblings.find(function(r){return r._canReceive(t,e,i)})},t.prototype._canReceive=function(t,e,r){if(!this.enterPredicate(t,this)||!x(this._clientRect,e,r))return!1;var n=this._document.elementFromPoint(e,r);if(!n)return!1;var o=i.coerceElement(this.element);return n===o||o.contains(n)},t.prototype._startReceiving=function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheOwnPosition())},t.prototype._stopReceiving=function(t){this._activeSiblings.delete(t)},t}(),B=e.normalizePassiveListenerOptions({passive:!1,capture:!0}),U=function(){function t(t,e){var i=this;this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new r.Subject,this.pointerUp=new r.Subject,this.scroll=new r.Subject,this._preventDefaultWhileDragging=function(t){i._activeDragInstances.size&&t.preventDefault()},this._document=e}return t.prototype.registerDropContainer=function(t){if(!this._dropInstances.has(t)){if(this.getDropContainer(t.id))throw Error('Drop instance with id "'+t.id+'" has already been registered.');this._dropInstances.add(t)}},t.prototype.registerDragItem=function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,B)})},t.prototype.removeDropContainer=function(t){this._dropInstances.delete(t)},t.prototype.removeDragItem=function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,B)},t.prototype.startDragging=function(t,e){var i=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var r=e.type.startsWith("touch"),n=r?"touchmove":"mousemove",o=r?"touchend":"mouseup";this._globalListeners.set(n,{handler:function(t){return i.pointerMove.next(t)},options:B}).set(o,{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)}}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:B}),this._ngZone.runOutsideAngular(function(){i._globalListeners.forEach(function(t,e){i._document.addEventListener(e,t.handler,t.options)})})}},t.prototype.stopDragging=function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()},t.prototype.isDragging=function(t){return this._activeDragInstances.has(t)},t.prototype.getDropContainer=function(t){return Array.from(this._dropInstances).find(function(e){return e.id===t})},t.prototype.ngOnDestroy=function(){var t=this;this._dragInstances.forEach(function(e){return t.removeDragItem(e)}),this._dropInstances.forEach(function(e){return t.removeDropContainer(e)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()},t.prototype._clearGlobalListeners=function(){var t=this;this._globalListeners.forEach(function(e,i){t._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()},t.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:o.NgZone},{type:void 0,decorators:[{type:o.Inject,args:[s.DOCUMENT]}]}]},t.ngInjectableDef=o.ɵɵdefineInjectable({factory:function(){return new t(o.ɵɵinject(o.NgZone),o.ɵɵinject(s.DOCUMENT))},token:t,providedIn:"root"}),t}(),H={dragStartThreshold:5,pointerDirectionChangeThreshold:5},q=function(){function t(t,e,i,r){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=r}return t.prototype.createDrag=function(t,e){return void 0===e&&(e=H),new M(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)},t.prototype.createDropList=function(t){return new Z(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)},t.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[s.DOCUMENT]}]},{type:o.NgZone},{type:a.ViewportRuler},{type:U}]},t.ngInjectableDef=o.ɵɵdefineInjectable({factory:function(){return new t(o.ɵɵinject(s.DOCUMENT),o.ɵɵinject(o.NgZone),o.ɵɵinject(a.ViewportRuler),o.ɵɵinject(U))},token:t,providedIn:"root"}),t}(),G=new o.InjectionToken("CDK_DROP_LIST"),V=G,W=new o.InjectionToken("CDK_DRAG_PARENT"),K=function(){function t(t,e){this.element=t,this._stateChanges=new r.Subject,this._disabled=!1,this._parentDrag=e,p(t.nativeElement,!1)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=i.coerceBooleanProperty(t),this._stateChanges.next(this)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.decorators=[{type:o.Directive,args:[{selector:"[cdkDragHandle]",host:{class:"cdk-drag-handle"}}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:void 0,decorators:[{type:o.Inject,args:[W]},{type:o.Optional}]}]},t.propDecorators={disabled:[{type:o.Input,args:["cdkDragHandleDisabled"]}]},t}(),Y=function(){function t(t){this.templateRef=t}return t.decorators=[{type:o.Directive,args:[{selector:"ng-template[cdkDragPlaceholder]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef}]},t.propDecorators={data:[{type:o.Input}]},t}(),X=function(){function t(t){this.templateRef=t}return t.decorators=[{type:o.Directive,args:[{selector:"ng-template[cdkDragPreview]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef}]},t.propDecorators={data:[{type:o.Input}]},t}(),J=new o.InjectionToken("CDK_DRAG_CONFIG",{providedIn:"root",factory:O}),Q=function(){function t(t,e,i,s,a,c,l,p,d){var h=this;this.element=t,this.dropContainer=e,this._document=i,this._ngZone=s,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=d,this._destroyed=new r.Subject,this.dragStartDelay=0,this._disabled=!1,this.started=new o.EventEmitter,this.released=new o.EventEmitter,this.ended=new o.EventEmitter,this.entered=new o.EventEmitter,this.exited=new o.EventEmitter,this.dropped=new o.EventEmitter,this.moved=new r.Observable(function(t){var e=h._dragRef.moved.pipe(n.map(function(t){return{source:h,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}})).subscribe(t);return function(){e.unsubscribe()}}),this._dragRef=p.createDrag(t,c),
this._dragRef.data=this,this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return Object.defineProperty(t.prototype,"boundaryElementSelector",{get:function(){return"string"==typeof this.boundaryElement?this.boundaryElement:void 0},set:function(t){this.boundaryElement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=i.coerceBooleanProperty(t),this._dragRef.disabled=this._disabled},enumerable:!0,configurable:!0}),t.prototype.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()},t.prototype.getRootElement=function(){return this._dragRef.getRootElement()},t.prototype.reset=function(){this._dragRef.reset()},t.prototype.getFreeDragPosition=function(){return this._dragRef.getFreeDragPosition()},t.prototype.ngAfterViewInit=function(){var t=this;this._ngZone.onStable.asObservable().pipe(n.take(1),n.takeUntil(this._destroyed)).subscribe(function(){t._updateRootElement(),t._handles.changes.pipe(n.startWith(t._handles),n.tap(function(e){var i=e.filter(function(e){return e._parentDrag===t}).map(function(t){return t.element});t._dragRef.withHandles(i)}),n.switchMap(function(t){return r.merge.apply(void 0,t.map(function(t){return t._stateChanges}))}),n.takeUntil(t._destroyed)).subscribe(function(e){var i=t._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)}),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)})},t.prototype.ngOnChanges=function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()},t.prototype._updateRootElement=function(){var t=this.element.nativeElement,e=this.rootElementSelector?L(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error('cdkDrag must be attached to an element node. Currently attached to "'+e.nodeName+'".');this._dragRef.withRootElement(e||t)},t.prototype._getBoundaryElement=function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return L(this.element.nativeElement,t);var e=i.coerceElement(t);if(o.isDevMode()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e},t.prototype._syncInputs=function(t){var e=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var r=e._dir,n=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,o=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay=i.coerceNumberProperty(e.dragStartDelay),t.constrainPosition=e.constrainPosition,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o),r&&t.withDirection(r.value)}})},t.prototype._handleEvents=function(t){var e=this;t.started.subscribe(function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()}),t.released.subscribe(function(){e.released.emit({source:e})}),t.ended.subscribe(function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:t.container.data,item:e})}),t.dropped.subscribe(function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})})},t.decorators=[{type:o.Directive,args:[{selector:"[cdkDrag]",exportAs:"cdkDrag",host:{class:"cdk-drag","[class.cdk-drag-disabled]":"disabled","[class.cdk-drag-dragging]":"_dragRef.isDragging()"},providers:[{provide:W,useExisting:t}]}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:void 0,decorators:[{type:o.Inject,args:[G]},{type:o.Optional},{type:o.SkipSelf}]},{type:void 0,decorators:[{type:o.Inject,args:[s.DOCUMENT]}]},{type:o.NgZone},{type:o.ViewContainerRef},{type:void 0,decorators:[{type:o.Inject,args:[J]}]},{type:c.Directionality,decorators:[{type:o.Optional}]},{type:q},{type:o.ChangeDetectorRef}]},t.propDecorators={_handles:[{type:o.ContentChildren,args:[K,{descendants:!0}]}],_previewTemplate:[{type:o.ContentChild,args:[X,{static:!1}]}],_placeholderTemplate:[{type:o.ContentChild,args:[Y,{static:!1}]}],data:[{type:o.Input,args:["cdkDragData"]}],lockAxis:[{type:o.Input,args:["cdkDragLockAxis"]}],rootElementSelector:[{type:o.Input,args:["cdkDragRootElement"]}],boundaryElement:[{type:o.Input,args:["cdkDragBoundary"]}],dragStartDelay:[{type:o.Input,args:["cdkDragStartDelay"]}],freeDragPosition:[{type:o.Input,args:["cdkDragFreeDragPosition"]}],disabled:[{type:o.Input,args:["cdkDragDisabled"]}],constrainPosition:[{type:o.Input,args:["cdkDragConstrainPosition"]}],started:[{type:o.Output,args:["cdkDragStarted"]}],released:[{type:o.Output,args:["cdkDragReleased"]}],ended:[{type:o.Output,args:["cdkDragEnded"]}],entered:[{type:o.Output,args:["cdkDragEntered"]}],exited:[{type:o.Output,args:["cdkDragExited"]}],dropped:[{type:o.Output,args:["cdkDragDropped"]}],moved:[{type:o.Output,args:["cdkDragMoved"]}]},t}(),$=function(){function t(){this._items=new Set,this._disabled=!1}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=i.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._items.clear()},t.decorators=[{type:o.Directive,args:[{selector:"[cdkDropListGroup]",exportAs:"cdkDropListGroup"}]}],t.propDecorators={disabled:[{type:o.Input,args:["cdkDropListGroupDisabled"]}]},t}(),tt=0,et=function(){function t(e,i,n,s,a){var c=this;this.element=e,this._changeDetectorRef=n,this._dir=s,this._group=a,this._destroyed=new r.Subject,this.connectedTo=[],this.orientation="vertical",this.id="cdk-drop-list-"+tt++,this._disabled=!1,this._sortingDisabled=!1,this.enterPredicate=function(){return!0},this.autoScrollDisabled=!1,this.dropped=new o.EventEmitter,this.entered=new o.EventEmitter,this.exited=new o.EventEmitter,this.sorted=new o.EventEmitter,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,this._dropListRef.enterPredicate=function(t,e){return c.enterPredicate(t.data,e.data)},this._syncInputs(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._disabled=i.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortingDisabled",{get:function(){return this._sortingDisabled},set:function(t){this._sortingDisabled=i.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._draggables.changes.pipe(n.startWith(this._draggables),n.takeUntil(this._destroyed)).subscribe(function(e){t._dropListRef.withItems(e.map(function(t){return t._dragRef}))})},t.prototype.ngOnDestroy=function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()},t.prototype.start=function(){this._dropListRef.start()},t.prototype.drop=function(t,e,i,r){this._dropListRef.drop(t._dragRef,e,i._dropListRef,r)},t.prototype.enter=function(t,e,i){this._dropListRef.enter(t._dragRef,e,i)},t.prototype.exit=function(t){this._dropListRef.exit(t._dragRef)},t.prototype.getItemIndex=function(t){return this._dropListRef.getItemIndex(t._dragRef)},t.prototype._sortItem=function(t,e,i,r){return this._dropListRef._sortItem(t._dragRef,e,i,r)},t.prototype._getSiblingContainerFromPosition=function(t,e,i){var r=this._dropListRef._getSiblingContainerFromPosition(t._dragRef,e,i);return r?r.data:null},t.prototype._isOverContainer=function(t,e){return this._dropListRef._isOverContainer(t,e)},t.prototype._syncInputs=function(e){var r=this;this._dir&&this._dir.change.pipe(n.startWith(this._dir.value),n.takeUntil(this._destroyed)).subscribe(function(t){return e.withDirection(t)}),e.beforeStarted.subscribe(function(){var n=i.coerceArray(r.connectedTo).map(function(e){return"string"==typeof e?t._dropLists.find(function(t){return t.id===e}):e});r._group&&r._group._items.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),e.disabled=r.disabled,e.lockAxis=r.lockAxis,e.sortingDisabled=r.sortingDisabled,e.autoScrollDisabled=r.autoScrollDisabled,e.connectedTo(n.filter(function(t){return t&&t!==r}).map(function(t){return t._dropListRef})).withOrientation(r.orientation)})},t.prototype._handleEvents=function(t){var e=this;t.beforeStarted.subscribe(function(){e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()}),t.sorted.subscribe(function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})}),t.dropped.subscribe(function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()})},t._dropLists=[],t.decorators=[{type:o.Directive,args:[{selector:"[cdkDropList], cdk-drop-list",exportAs:"cdkDropList",providers:[{provide:$,useValue:void 0},{provide:V,useExisting:t}],host:{class:"cdk-drop-list","[id]":"id","[class.cdk-drop-list-disabled]":"disabled","[class.cdk-drop-list-dragging]":"_dropListRef.isDragging()","[class.cdk-drop-list-receiving]":"_dropListRef.isReceiving()"}}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:q},{type:o.ChangeDetectorRef},{type:c.Directionality,decorators:[{type:o.Optional}]},{type:$,decorators:[{type:o.Optional},{type:o.SkipSelf}]}]},t.propDecorators={_draggables:[{type:o.ContentChildren,args:[o.forwardRef(function(){return Q}),{descendants:!1}]}],connectedTo:[{type:o.Input,args:["cdkDropListConnectedTo"]}],data:[{type:o.Input,args:["cdkDropListData"]}],orientation:[{type:o.Input,args:["cdkDropListOrientation"]}],id:[{type:o.Input}],lockAxis:[{type:o.Input,args:["cdkDropListLockAxis"]}],disabled:[{type:o.Input,args:["cdkDropListDisabled"]}],sortingDisabled:[{type:o.Input,args:["cdkDropListSortingDisabled"]}],enterPredicate:[{type:o.Input,args:["cdkDropListEnterPredicate"]}],autoScrollDisabled:[{type:o.Input,args:["cdkDropListAutoScrollDisabled"]}],dropped:[{type:o.Output,args:["cdkDropListDropped"]}],entered:[{type:o.Output,args:["cdkDropListEntered"]}],exited:[{type:o.Output,args:["cdkDropListExited"]}],sorted:[{type:o.Output,args:["cdkDropListSorted"]}]},t}(),it=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{declarations:[et,$,Q,K,X,Y],exports:[et,$,Q,K,X,Y],providers:[q]}]}],t}();t.DragDrop=q,t.DragRef=M,t.DropListRef=Z,t.CdkDropList=et,t.CDK_DROP_LIST=G,t.CDK_DROP_LIST_CONTAINER=V,t.moveItemInArray=D,t.transferArrayItem=b,t.copyArrayItem=P,t.DragDropModule=it,t.DragDropRegistry=U,t.CdkDropListGroup=$,t.CDK_DRAG_CONFIG_FACTORY=O,t.CDK_DRAG_CONFIG=J,t.CdkDrag=Q,t.CdkDragHandle=K,t.CdkDragPreview=X,t.CdkDragPlaceholder=Y,tb=W,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=cdk-drag-drop.umd.min.js.map