Sindbad~EG File Manager

Current Path : /home/copmadinaarea/drive.copmadinaarea.org/public/client/
Upload File :
Current File : /home/copmadinaarea/drive.copmadinaarea.org/public/client/2.fb13cd414d0c6c807f47.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+6XX":function(e,t,n){var l=n("y1pI");e.exports=function(e){return l(this.__data__,e)>-1}},"+K+b":function(e,t,n){var l=n("JHRd");e.exports=function(e){var t=new e.constructor(e.byteLength);return new l(t).set(new l(e)),t}},"+QRC":function(e,t,n){"use strict";var l=n("E9nw");e.exports=function(e,t){var n,i,o,r,a,s,u=!1;t||(t={}),n=t.debug||!1;try{if(o=l(),r=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",document.body.appendChild(s),r.selectNode(s),a.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(l){n&&console.error("unable to copy using execCommand: ",l),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData("text",e),u=!0}catch(l){n&&console.error("unable to copy using clipboardData: ",l),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(r):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return u}},"+c4W":function(e,t,n){var l=n("711d"),i=n("4/ic"),o=n("9ggG"),r=n("9Nap");e.exports=function(e){return o(e)?l(r(e)):i(e)}},"+iFO":function(e,t,n){var l=n("dTAl"),i=n("LcsW"),o=n("6sVZ");e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:l(i(e))}},"/9aa":function(e,t,n){var l=n("NykK"),i=n("ExA7");e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==l(e)}},"/dO6":function(e,t,n){"use strict";n.d(t,"f",function(){return x}),n.d(t,"d",function(){return _}),n.d(t,"b",function(){return g}),n.d(t,"e",function(){return b}),n.d(t,"c",function(){return O}),n.d(t,"a",function(){return v});var l=n("mrSG"),i=n("n6gG"),o=n("YSh2"),r=n("CcnG"),a=n("Wf4p"),s=n("K9Ia"),u=n("p0ib"),c=n("t9fZ"),d=n("ny24"),p=n("p0Sj"),f=n("lLAP"),h=n("YlbQ"),m=["mat-basic-chip"],g=function(e){function t(t,n,l,i){var o=e.call(this,t)||this;return o._elementRef=t,o._ngZone=n,o._ripplesGloballyDisabled=!1,o.rippleConfig={},o._hasFocus=!1,o.chipListSelectable=!0,o._selected=!1,o._selectable=!0,o._removable=!0,o._onFocus=new s.a,o._onBlur=new s.a,o.selectionChange=new r.EventEmitter,o.destroyed=new r.EventEmitter,o.removed=new r.EventEmitter,o._addHostClassName(),o._chipRipple=new a.C(o,n,t,l),o._chipRipple.setupTriggerEvents(t.nativeElement),i&&(o._ripplesGloballyDisabled=!!i.disabled,o.rippleConfig={speedFactor:i.baseSpeedFactor,animation:i.animation,terminateOnPointerUp:i.terminateOnPointerUp}),o}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple||this._ripplesGloballyDisabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=Object(i.c)(e),this.selectionChange.emit({source:this,isUserInput:!1,selected:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!=this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectable",{get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Object(i.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removable",{get:function(){return this._removable},set:function(e){this._removable=Object(i.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return this.selectable?this.selected.toString():null},enumerable:!0,configurable:!0}),t.prototype._addHostClassName=function(){for(var e=0,t=m;e<t.length;e++){var n=t[e];if(this._elementRef.nativeElement.hasAttribute(n)||this._elementRef.nativeElement.tagName.toLowerCase()===n)return void this._elementRef.nativeElement.classList.add(n)}this._elementRef.nativeElement.classList.add("mat-standard-chip")},t.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()},t.prototype.select=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!1,selected:!0})},t.prototype.deselect=function(){this._selected=!1,this.selectionChange.emit({source:this,isUserInput:!1,selected:!1})},t.prototype.selectViaInteraction=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!0,selected:!0})},t.prototype.toggleSelected=function(e){return void 0===e&&(e=!1),this._selected=!this.selected,this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected}),this.selected},t.prototype.focus=function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0},t.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},t.prototype._handleClick=function(e){this.disabled||(e.preventDefault(),e.stopPropagation())},t.prototype._handleKeydown=function(e){if(!this.disabled)switch(e.keyCode){case o.c:case o.b:this.remove(),e.preventDefault();break;case o.n:this.selectable&&this.toggleSelected(!0),e.preventDefault()}},t.prototype._blur=function(){var e=this;this._ngZone.onStable.asObservable().pipe(Object(c.a)(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})},t}(Object(a.F)(Object(a.G)(Object(a.H)(function(e){this._elementRef=e})),"primary")),b=function(){function e(e){this._parentChip=e}return e.prototype._handleClick=function(e){this._parentChip.removable&&this._parentChip.remove(),e.stopPropagation()},e}(),v=new r.InjectionToken("mat-chips-default-options"),y=0,_=function(e){function t(t,n,l,i,o,a,u){var c=e.call(this,a,i,o,u)||this;return c._elementRef=t,c._changeDetectorRef=n,c._dir=l,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new s.a,c._uid="mat-chip-list-"+y++,c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(e,t){return e===t},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new r.EventEmitter,c.valueChange=new r.EventEmitter,c.ngControl&&(c.ngControl.valueAccessor=c),c}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"role",{get:function(){return this.empty?null:"listbox"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=Object(i.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._chipInput?this._chipInput.id:this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Object(i.c)(e),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this._chipInput&&this._chipInput.focused||this.chips.some(function(e){return e._hasFocus})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return!this.empty||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){var t=this;this._disabled=Object(i.c)(e),this.chips&&this.chips.forEach(function(e){return e.disabled=t._disabled})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectable",{get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Object(i.c)(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{set:function(e){this._userTabIndex=e,this._tabIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chipSelectionChanges",{get:function(){return u.a.apply(void 0,this.chips.map(function(e){return e.selectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chipFocusChanges",{get:function(){return u.a.apply(void 0,this.chips.map(function(e){return e._onFocus}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chipBlurChanges",{get:function(){return u.a.apply(void 0,this.chips.map(function(e){return e._onBlur}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chipRemoveChanges",{get:function(){return u.a.apply(void 0,this.chips.map(function(e){return e.destroyed}))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this._keyManager=new f.g(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._keyManager.tabOut.pipe(Object(d.a)(this._destroyed)).subscribe(function(){e._tabIndex=-1,setTimeout(function(){return e._tabIndex=e._userTabIndex||0})}),this.chips.changes.pipe(Object(p.a)(null),Object(d.a)(this._destroyed)).subscribe(function(){e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})},t.prototype.ngOnInit=function(){this._selectionModel=new h.b(this.multiple,void 0,!1),this.stateChanges.next()},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()},t.prototype.registerInput=function(e){this._chipInput=e},t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.writeValue=function(e){this.chips&&this._setSelectionByValue(e,!1)},t.prototype.registerOnChange=function(e){this._onChange=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this.stateChanges.next()},t.prototype.onContainerClick=function(){this.focus()},t.prototype.focus=function(){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(),this.stateChanges.next()))},t.prototype._focusInput=function(){this._chipInput&&this._chipInput.focus()},t.prototype._keydown=function(e){var t=e.target;e.keyCode===o.b&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(e.keyCode===o.h?(this._keyManager.setFirstItemActive(),e.preventDefault()):e.keyCode===o.e?(this._keyManager.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e),this.stateChanges.next())},t.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},t.prototype._updateFocusForDestroyedChips=function(){if(null!=this._lastDestroyedChipIndex&&this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}this._lastDestroyedChipIndex=null},t.prototype._isValidIndex=function(e){return e>=0&&e<this.chips.length},t.prototype._isInputEmpty=function(e){return!(!e||"input"!==e.nodeName.toLowerCase()||e.value)},t.prototype._setSelectionByValue=function(e,t){var n=this;if(void 0===t&&(t=!0),this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return n._selectValue(e,t)}),this._sortValues();else{var l=this._selectValue(e,t);l&&t&&this._keyManager.setActiveItem(l)}},t.prototype._selectValue=function(e,t){var n=this;void 0===t&&(t=!0);var l=this.chips.find(function(t){return null!=t.value&&n._compareWith(t.value,e)});return l&&(t?l.selectViaInteraction():l.select(),this._selectionModel.select(l)),l},t.prototype._initializeSelection=function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})},t.prototype._clearSelection=function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()},t.prototype._sortValues=function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())},t.prototype._propagateChanges=function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new function(e,t){this.source=e,this.value=t}(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()},t.prototype._blur=function(){var e=this;this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())},t.prototype._markAsTouched=function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()},t.prototype._resetChips=function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()},t.prototype._dropSubscriptions=function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)},t.prototype._listenToChipsSelection=function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})},t.prototype._listenToChipsFocus=function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItemIndex(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})},t.prototype._listenToChipsRemoved=function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,l=e.chips.toArray().indexOf(t.chip);e._isValidIndex(l)&&n._hasFocus&&(e._lastDestroyedChipIndex=l)})},t}(Object(a.I)(function(e,t,n,l){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l})),w=0,O=function(){function e(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new r.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+w++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return Object.defineProperty(e.prototype,"chipList",{set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"addOnBlur",{get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=Object(i.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=Object(i.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return!this._inputElement.value},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this._chipList.stateChanges.next()},e.prototype._keydown=function(e){this._emitChipEnd(e)},e.prototype._blur=function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()},e.prototype._focus=function(){this.focused=!0,this._chipList.stateChanges.next()},e.prototype._emitChipEnd=function(e){!this._inputElement.value&&e&&this._chipList._keydown(e),(!e||this.separatorKeyCodes.indexOf(e.keyCode)>-1)&&(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),e&&e.preventDefault())},e.prototype._onInput=function(){this._chipList.stateChanges.next()},e.prototype.focus=function(){this._inputElement.focus()},e}(),x=function(){}},"03A+":function(e,t,n){var l=n("JTzB"),i=n("ExA7"),o=Object.prototype,r=o.hasOwnProperty,a=o.propertyIsEnumerable,s=l(function(){return arguments}())?l:function(e){return i(e)&&r.call(e,"callee")&&!a.call(e,"callee")};e.exports=s},"0Cz8":function(e,t,n){var l=n("Xi7e"),i=n("ebwN"),o=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof l){var r=n.__data__;if(!i||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(e,t),this.size=n.size,this}},"0ycA":function(e,t){e.exports=function(){return[]}},"1+5i":function(e,t,n){var l=n("w/wX"),i=n("sEf8"),o=n("mdPL"),r=o&&o.isSet,a=r?i(r):l;e.exports=a},"1hJj":function(e,t,n){var l=n("e4Nc"),i=n("ftKO"),o=n("3A9y");function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new l;++t<n;)this.add(e[t])}r.prototype.add=r.prototype.push=i,r.prototype.has=o,e.exports=r},"2ajD":function(e,t){e.exports=function(e){return e!=e}},"2gN3":function(e,t,n){var l=n("Kz5y");e.exports=l["__core-js_shared__"]},"3A9y":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"3Fdi":function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"4/ic":function(e,t,n){var l=n("ZWtO");e.exports=function(e){return function(t){return l(t,e)}}},"44Ds":function(e,t,n){var l=n("e4Nc"),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var l=arguments,i=t?t.apply(this,l):l[0],o=n.cache;if(o.has(i))return o.get(i);var r=e.apply(this,l);return n.cache=o.set(i,r)||o,r};return n.cache=new(o.Cache||l),n}o.Cache=l,e.exports=o},"4kuk":function(e,t,n){var l=n("SfRM"),i=n("Hvzi"),o=n("u8Dt"),r=n("ekgI"),a=n("JSQU");function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var l=e[t];this.set(l[0],l[1])}}s.prototype.clear=l,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=r,s.prototype.set=a,e.exports=s},"4sDh":function(e,t,n){var l=n("4uTw"),i=n("03A+"),o=n("Z0cm"),r=n("wJg7"),a=n("shjB"),s=n("9Nap");e.exports=function(e,t,n){for(var u=-1,c=(t=l(t,e)).length,d=!1;++u<c;){var p=s(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&a(c)&&r(p,c)&&(o(e)||i(e))}},"4tE/":function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return I}),n.d(t,"b",function(){return E}),n.d(t,"c",function(){return S}),n.d(t,"f",function(){return R});var l=n("mrSG"),i=n("CcnG"),o=n("Wf4p"),r=n("lLAP"),a=n("n6gG"),s=n("YSh2"),u=n("eDkP"),c=n("4c35"),d=n("t9fZ"),p=n("15JJ"),f=n("VnD/"),h=n("67Y/"),m=n("xMyE"),g=n("vubp"),b=(n("gIcY"),n("pugT")),v=n("K9Ia"),y=n("lYZG"),_=n("p0ib"),w=n("F/XL"),O=n("bne5"),x=0,j=Object(o.G)(function(){}),C=new i.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),k=function(e){function t(t,n,l){var o=e.call(this)||this;return o._changeDetectorRef=t,o._elementRef=n,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new i.EventEmitter,o.opened=new i.EventEmitter,o.closed=new i.EventEmitter,o._classList={},o.id="mat-autocomplete-"+x++,o._autoActiveFirstOption=!!l.autoActiveFirstOption,o}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen&&this.showPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoActiveFirstOption",{get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=Object(a.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{set:function(e){var t=this;e&&e.length&&(e.split(" ").forEach(function(e){return t._classList[e.trim()]=!0}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._keyManager=new r.b(this.options).withWrap(),this._setVisibility()},t.prototype._setScrollTop=function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)},t.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},t.prototype._setVisibility=function(){this.showPanel=!!this.options.length,this._classList["mat-autocomplete-visible"]=this.showPanel,this._classList["mat-autocomplete-hidden"]=!this.showPanel,this._changeDetectorRef.markForCheck()},t.prototype._emitSelectEvent=function(e){var t=new function(e,t){this.source=e,this.option=t}(this,e);this.optionSelected.emit(t)},t}(j),E=new i.InjectionToken("mat-autocomplete-scroll-strategy");function S(e){return function(){return e.scrollStrategies.reposition()}}var R=function(){function e(e,t,n,l,i,o,r,a,s,u){var c=this;this._element=e,this._overlay=t,this._viewContainerRef=n,this._zone=l,this._changeDetectorRef=i,this._scrollStrategy=o,this._dir=r,this._formField=a,this._document=s,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=b.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new v.a,this._windowBlurHandler=function(){c._canOpenOnNextFocus=document.activeElement!==c._element.nativeElement||c.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Object(y.a)(function(){return c.autocomplete&&c.autocomplete.options?_.a.apply(void 0,c.autocomplete.options.map(function(e){return e.onSelectionChange})):c._zone.onStable.asObservable().pipe(Object(d.a)(1),Object(p.a)(function(){return c.optionSelections}))}),"undefined"!=typeof window&&l.runOutsideAngular(function(){window.addEventListener("blur",c._windowBlurHandler)})}return Object.defineProperty(e.prototype,"autocompleteDisabled",{get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=Object(a.c)(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){"undefined"!=typeof window&&window.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._overlayAttached&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),e.prototype.openPanel=function(){this._attachOverlay(),this._floatLabel()},e.prototype.closePanel=function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())},Object.defineProperty(e.prototype,"panelClosingActions",{get:function(){var e=this;return Object(_.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(f.a)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._outsideClickStream,this._overlayRef?this._overlayRef.detachments().pipe(Object(f.a)(function(){return e._overlayAttached})):Object(w.a)()).pipe(Object(h.a)(function(e){return e instanceof o.v?e:null}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_outsideClickStream",{get:function(){var e=this;return this._document?Object(_.a)(Object(O.a)(this._document,"click"),Object(O.a)(this._document,"touchend")).pipe(Object(f.a)(function(t){var n=t.target,l=e._formField?e._formField._elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!l||!l.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)})):Object(w.a)(null)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this._element.nativeElement.disabled=e},e.prototype._handleKeydown=function(e){var t=e.keyCode;if(t===s.g&&e.preventDefault(),this.panelOpen&&(t===s.g||t===s.p&&e.altKey))this._resetActiveItem(),this._closeKeyEventStream.next(),e.stopPropagation();else if(this.activeOption&&t===s.f&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,l=t===s.p||t===s.d;this.panelOpen||t===s.o?this.autocomplete._keyManager.onKeydown(e):l&&this._canOpen()&&this.openPanel(),(l||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}},e.prototype._handleInput=function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&document.activeElement===e.target&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this.openPanel())},e.prototype._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0},e.prototype._floatLabel=function(e){void 0===e&&(e=!1),this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)},e.prototype._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)},e.prototype._scrollToOption=function(){var e=this.autocomplete._keyManager.activeItemIndex||0,t=Object(o.D)(e,this.autocomplete.options,this.autocomplete.optionGroups),n=Object(o.E)(e+t,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)},e.prototype._subscribeToClosingActions=function(){var e=this,t=this._zone.onStable.asObservable().pipe(Object(d.a)(1)),n=this.autocomplete.options.changes.pipe(Object(m.a)(function(){return e._positionStrategy.reapplyLastPosition()}),Object(g.a)(0));return Object(_.a)(t,n).pipe(Object(p.a)(function(){return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&e._overlayRef.updatePosition(),e.panelClosingActions}),Object(d.a)(1)).subscribe(function(t){return e._setValueAndClose(t)})},e.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},e.prototype._setTriggerValue=function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n},e.prototype._setValueAndClose=function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()},e.prototype._clearPreviousSelectedOption=function(e){this.autocomplete.options.forEach(function(t){t!=e&&t.selected&&t.deselect()})},e.prototype._attachOverlay=function(){var e=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");this._overlayRef?this._overlayRef.updateSize({width:this._getPanelWidth()}):(this._portal=new c.h(this.autocomplete.template,this._viewContainerRef),this._overlayRef=this._overlay.create(this._getOverlayConfig()),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&e._overlayRef&&e._overlayRef.updateSize({width:e._getPanelWidth()})}))),this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var t=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&t!==this.panelOpen&&this.autocomplete.opened.emit()},e.prototype._getOverlayConfig=function(){return new u.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})},e.prototype._getOverlayPosition=function(){return this._positionStrategy=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}]),this._positionStrategy},e.prototype._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element},e.prototype._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()},e.prototype._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width},e.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)},e.prototype._canOpen=function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled},e}(),I=function(){}},"4uTw":function(e,t,n){var l=n("Z0cm"),i=n("9ggG"),o=n("GNiM"),r=n("dt0z");e.exports=function(e,t){return l(e)?e:i(e,t)?[e]:o(r(e))}},"5Tg0":function(e,t,n){(function(e){var l=n("Kz5y"),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,r=o&&o.exports===i?l.Buffer:void 0,a=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,l=a?a(n):new e.constructor(n);return e.copy(l),l}}).call(this,n("YuTi")(e))},"6JEN":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var l,i=n("1MND"),o=(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=function(e){function t(t,n){var l=e.call(this)||this;return l.params=t,l.i18n=n,l.errorMessage=l.i18n.t("Only these file types are allowed: :extensions",{extensions:l.params.extensions.join(", ")}),l}return o(t,e),t.prototype.fails=function(e){return!this.params.extensions.some(function(t){return t===e.extension})},t}(i.a)},"6SKC":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var l=n("4Ait"),i=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===e&&(e=0),isNaN(parseFloat(String(e)))||!isFinite(e)?"-":Object(l.a)(e,t)},e}()},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"711d":function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},"77Zs":function(e,t,n){var l=n("Xi7e");e.exports=function(){this.__data__=new l,this.size=0}},"7GkX":function(e,t,n){var l=n("b80T"),i=n("A90E"),o=n("MMmD");e.exports=function(e){return o(e)?l(e):i(e)}},"7Ix3":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"7fqy":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,l){n[++t]=[l,e]}),n}},"9Nap":function(e,t,n){var l=n("/9aa");e.exports=function(e){if("string"==typeof e||l(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},"9ggG":function(e,t,n){var l=n("Z0cm"),i=n("/9aa"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;e.exports=function(e,t){if(l(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||r.test(e)||!o.test(e)||null!=t&&e in Object(t)}},A90E:function(e,t,n){var l=n("6sVZ"),i=n("V6Ve"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!l(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},AP2z:function(e,t,n){var l=n("nmnc"),i=Object.prototype,o=i.hasOwnProperty,r=i.toString,a=l?l.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var l=!0}catch(e){}var i=r.call(e);return l&&(t?e[a]=n:delete e[a]),i}},B8du:function(e,t){e.exports=function(){return!1}},BHnd:function(e,t,n){"use strict";n.d(t,"m",function(){return k}),n.d(t,"b",function(){return m}),n.d(t,"f",function(){return g}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return v}),n.d(t,"a",function(){return y}),n.d(t,"k",function(){return f}),n.d(t,"h",function(){return w}),n.d(t,"j",function(){return O}),n.d(t,"g",function(){return x}),n.d(t,"d",function(){return j}),n.d(t,"i",function(){return C}),n.d(t,"l",function(){return S});var l=n("mrSG"),i=n("y4qS"),o=n("YlbQ"),r=n("n6gG"),a=n("26FU"),s=n("pugT"),u=n("p0ib"),c=n("F/XL"),d=n("dzgT"),p=n("67Y/"),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyCssClass="mat-table-sticky",t}return Object(l.c)(t,e),t}(i.o),h=i.j,m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(i.b),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(h),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(i.d),v=function(e){function t(t,n){var l=e.call(this,t,n)||this;return n.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName),l}return Object(l.c)(t,e),t}(i.i),y=function(e){function t(t,n){var l=e.call(this,t,n)||this;return n.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName),l}return Object(l.c)(t,e),t}(i.a),_=i.n,w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(i.l),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(_),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(i.k),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(i.g),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(i.m),k=function(){},E=9007199254740991,S=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this;return n._renderData=new a.a([]),n._filter=new a.a(""),n._renderChangesSubscription=s.a.EMPTY,n.sortingDataAccessor=function(e,t){var n=e[t];if(Object(r.a)(n)){var l=Number(n);return l<E?l:n}return n},n.sortData=function(e,t){var l=t.active,i=t.direction;return l&&""!=i?e.sort(function(e,t){var o=n.sortingDataAccessor(e,l),r=n.sortingDataAccessor(t,l),a=0;return null!=o&&null!=r?o>r?a=1:o<r&&(a=-1):null!=o?a=1:null!=r&&(a=-1),a*("asc"==i?1:-1)}):e},n.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]},"").toLowerCase(),l=t.trim().toLowerCase();return-1!=n.indexOf(l)},n._data=new a.a(t),n._updateChangeSubscription(),n}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this._data.value},set:function(e){this._data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this._filter.value},set:function(e){this._filter.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sort",{get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginator",{get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()},enumerable:!0,configurable:!0}),t.prototype._updateChangeSubscription=function(){var e=this,t=this._sort?Object(u.a)(this._sort.sortChange,this._sort.initialized):Object(c.a)(null),n=this._paginator?Object(u.a)(this._paginator.page,this._paginator.initialized):Object(c.a)(null),l=this._data,i=Object(d.b)(l,this._filter).pipe(Object(p.a)(function(t){return e._filterData(t[0])})),o=Object(d.b)(i,t).pipe(Object(p.a)(function(t){return e._orderData(t[0])})),r=Object(d.b)(o,n).pipe(Object(p.a)(function(t){return e._pageData(t[0])}));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe(function(t){return e._renderData.next(t)})},t.prototype._filterData=function(e){var t=this;return this.filteredData=this.filter?e.filter(function(e){return t.filterPredicate(e,t.filter)}):e,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData},t.prototype._orderData=function(e){return this.sort?this.sortData(e.slice(),this.sort):e},t.prototype._pageData=function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice().splice(t,this.paginator.pageSize)},t.prototype._updatePaginator=function(e){var t=this;Promise.resolve().then(function(){if(t.paginator&&(t.paginator.length=e,t.paginator.pageIndex>0)){var n=Math.ceil(t.paginator.length/t.paginator.pageSize)-1||0;t.paginator.pageIndex=Math.min(t.paginator.pageIndex,n)}})},t.prototype.connect=function(){return this._renderData},t.prototype.disconnect=function(){},t}(o.a)},BkRI:function(e,t,n){var l=n("OBhP");e.exports=function(e){return l(e,5)}},CH3K:function(e,t){e.exports=function(e,t){for(var n=-1,l=t.length,i=e.length;++n<l;)e[i+n]=t[n];return e}},CMye:function(e,t,n){var l=n("GoyQ");e.exports=function(e){return e==e&&!l(e)}},CZoQ:function(e,t){e.exports=function(e,t,n){for(var l=n-1,i=e.length;++l<i;)if(e[l]===t)return l;return-1}},Cwc5:function(e,t,n){var l=n("NKxu"),i=n("Npjl");e.exports=function(e,t){var n=i(e,t);return l(n)?n:void 0}},DSRE:function(e,t,n){(function(e){var l=n("Kz5y"),i=n("B8du"),o="object"==typeof t&&t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===o?l.Buffer:void 0;e.exports=(a?a.isBuffer:void 0)||i}).call(this,n("YuTi")(e))},"Dw+G":function(e,t,n){var l=n("juv8"),i=n("mTTR");e.exports=function(e,t){return e&&l(t,i(t),e)}},E2jh:function(e,t,n){var l,i=n("2gN3"),o=(l=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"";e.exports=function(e){return!!o&&o in e}},E9nw:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],l=0;l<e.rangeCount;l++)n.push(e.getRangeAt(l));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},EEGq:function(e,t,n){var l=n("juv8"),i=n("oCl/");e.exports=function(e,t){return l(e,i(e),t)}},EpBk:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},ExA7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},G6z8:function(e,t,n){var l=n("fR/l"),i=n("oCl/"),o=n("mTTR");e.exports=function(e){return l(e,o,i)}},GDhZ:function(e,t,n){var l=n("wF/u"),i=n("mwIZ"),o=n("hgQt"),r=n("9ggG"),a=n("CMye"),s=n("IOzZ"),u=n("9Nap");e.exports=function(e,t){return r(e)&&a(t)?s(u(e),t):function(n){var r=i(n,e);return void 0===r&&r===t?o(n,e):l(t,r,3)}}},GNiM:function(e,t,n){var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n("I01J")(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,n,l,o){t.push(l?o.replace(i,"$1"):n||e)}),t});e.exports=o},GZAL:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var l=n("gIcY"),i=n("VnD/"),o=function(){function e(){this.formArray=new l.f([],this.getArrayValidations())}return e.prototype.ngAfterViewInit=function(){this.bindToFormChange()},e.prototype.remove=function(e){this.formArray.removeAt(e)},e.prototype.add=function(e){var t=e.value.trim(),n=this.formArray.getRawValue().indexOf(t)>-1;e.input.value="",t&&!n&&this.addChip(t)},e.prototype.addChip=function(e){this.formArray.push(new l.h(e,this.getItemValidations()))},e.prototype.getItemValidations=function(){var e=[];return null!=this.email&&e.push(l.z.email),e},e.prototype.getArrayValidations=function(){var e=[];return null!=this.required&&e.push(l.z.required),e},e.prototype.bindToFormChange=function(){var e=this;this.formArray.valueChanges.pipe(Object(i.a)(function(){return e.formArray.valid})).subscribe(function(t){e.propagateChange(t)})},e.prototype.writeValue=function(e){var t=this;if(void 0===e&&(e=[]),e&&e.length)e.forEach(function(e){return t.addChip(e)});else if(this.formArray.length)for(;0!==this.formArray.length;)this.formArray.removeAt(0)},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e}()},Gi0A:function(e,t,n){var l=n("QqLw"),i=n("ExA7");e.exports=function(e){return i(e)&&"[object Map]"==l(e)}},GoyQ:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},H8j4:function(e,t,n){var l=n("QkVE");e.exports=function(e,t){var n=l(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},HDyB:function(e,t,n){var l=n("nmnc"),i=n("JHRd"),o=n("ljhN"),r=n("or5M"),a=n("7fqy"),s=n("rEGp"),u=l?l.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,l,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":if(f||(f=s),e.size!=t.size&&!(1&l))return!1;var h=p.get(e);if(h)return h==t;l|=2,p.set(e,t);var m=r(f(e),f(t),l,u,d,p);return p.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},HOxn:function(e,t,n){var l=n("Cwc5")(n("Kz5y"),"Promise");e.exports=l},Hvzi:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},I01J:function(e,t,n){var l=n("44Ds");e.exports=function(e){var t=l(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},INnT:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return AdHostComponent});var _utils_random_string__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("oJgS"),AdHostComponent=function(){function AdHostComponent(e,t,n,l,i){this.el=e,this.renderer=t,this.settings=n,this.currentUser=l,this.lazyLoader=i}return AdHostComponent.prototype.ngOnInit=function(){var e=this;this.settings.get("ads.disable")||this.currentUser.isSubscribed()||(this.randomId=Object(_utils_random_string__WEBPACK_IMPORTED_MODULE_0__.a)(),this.setAdCode(),this.adCode&&(this.appendAdHtml(),this.loadAdScripts().then(function(){e.executeAdJavascript()}),setTimeout(function(){e.el.nativeElement.children.length&&e.renderer.setStyle(e.el.nativeElement,"display","flex")})))},AdHostComponent.prototype.setAdCode=function(){this.adCode=this.settings.get(this.slot)},AdHostComponent.prototype.appendAdHtml=function(){var e=this.adCode.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").trim();e&&(this.el.nativeElement.innerHTML=e)},AdHostComponent.prototype.executeAdJavascript=function(){for(var pattern=/<script\b[^>]*>([\s\S]*?)<\/script>/g,content;content=pattern.exec(this.adCode);)if(content[1]){var r="var d = document.createElement('div'); d.innerHTML = $1; document.getElementById('"+this.randomId+"').appendChild(d.firstChild);",toEval=content[1].replace(/document.write\((.+?)\);/,r);eval(toEval)}},AdHostComponent.prototype.loadAdScripts=function(){for(var e,t=[],n=/<script.*?src="(.*?)"/g;e=n.exec(this.adCode);)e[1]&&t.push(this.lazyLoader.loadScript(e[1]));return Promise.all(t)},AdHostComponent}()},IOzZ:function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},JHRd:function(e,t,n){var l=n("Kz5y");e.exports=l.Uint8Array},JHgL:function(e,t,n){var l=n("QkVE");e.exports=function(e){return l(this,e).get(e)}},JSQU:function(e,t,n){var l=n("YESw");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=l&&void 0===t?"__lodash_hash_undefined__":t,this}},JTzB:function(e,t,n){var l=n("NykK"),i=n("ExA7");e.exports=function(e){return i(e)&&"[object Arguments]"==l(e)}},Juji:function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},KMkd:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},KfNM:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},KwMD:function(e,t){e.exports=function(e,t,n,l){for(var i=e.length,o=n+(l?1:-1);l?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},Kz5y:function(e,t,n){var l=n("WFqU"),i="object"==typeof self&&self&&self.Object===Object&&self,o=l||i||Function("return this")();e.exports=o},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},LGYb:function(e,t,n){var l=n("1hJj"),i=n("jbM+"),o=n("Xt/L"),r=n("xYSL"),a=n("dQpi"),s=n("rEGp");e.exports=function(e,t,n){var u=-1,c=i,d=e.length,p=!0,f=[],h=f;if(n)p=!1,c=o;else if(d>=200){var m=t?null:a(e);if(m)return s(m);p=!1,c=r,h=new l}else h=t?[]:f;e:for(;++u<d;){var g=e[u],b=t?t(g):g;if(g=n||0!==g?g:0,p&&b==b){for(var v=h.length;v--;)if(h[v]===b)continue e;t&&h.push(b),f.push(g)}else c(h,b,n)||(h!==f&&h.push(b),f.push(g))}return f}},LXxW:function(e,t){e.exports=function(e,t){for(var n=-1,l=null==e?0:e.length,i=0,o=[];++n<l;){var r=e[n];t(r,n,e)&&(o[i++]=r)}return o}},La40:function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"j",function(){return g}),n.d(t,"c",function(){return _}),n.d(t,"d",function(){return y}),n.d(t,"f",function(){return O}),n.d(t,"g",function(){return w}),n.d(t,"b",function(){return v}),n.d(t,"h",function(){return C}),n.d(t,"i",function(){return k}),n.d(t,"e",function(){return j});var l=n("CcnG"),i=n("mrSG"),o=n("4c35"),r=n("Wf4p"),a=n("K9Ia"),s=n("pugT"),u=n("F/XL"),c=n("p0ib"),d=(n("ihYY"),n("p0Sj")),p=n("ny24"),f=n("n6gG"),h=n("YSh2"),m=n("lLAP"),g=new l.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),b=function(){function e(e,t,n){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=n}return e.prototype.alignToElement=function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)},e.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},e.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},e.prototype._setStyles=function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width},e}(),v=function(e){function t(t){var n=e.call(this)||this;return n._viewContainerRef=t,n.textLabel="",n._contentPortal=null,n._stateChanges=new a.a,n.position=null,n.origin=null,n.isActive=!1,n}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype.ngOnInit=function(){this._contentPortal=new o.h(this._explicitContent||this._implicitContent,this._viewContainerRef)},t}(Object(r.H)(function(){})),y=function(e){function t(t,n,l){var i=e.call(this,t,n)||this;return i._host=l,i._centeringSub=s.a.EMPTY,i._leavingSub=s.a.EMPTY,i}return Object(i.c)(t,e),t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._centeringSub=this._host._beforeCentering.pipe(Object(d.a)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()},t}(o.c),_=function(){function e(e,t,n){var i=this;this._elementRef=e,this._dir=t,this._dirChangeSubscription=s.a.EMPTY,this._onCentering=new l.EventEmitter,this._beforeCentering=new l.EventEmitter,this._afterLeavingCenter=new l.EventEmitter,this._onCentered=new l.EventEmitter(!0),this._dir&&n&&(this._dirChangeSubscription=this._dir.change.subscribe(function(e){i._computePositionAnimationState(e),n.markForCheck()}))}return Object.defineProperty(e.prototype,"position",{set:function(e){this._positionIndex=e,this._computePositionAnimationState()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin())},e.prototype.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe()},e.prototype._onTranslateTabStarted=function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},e.prototype._onTranslateTabComplete=function(e){this._isCenterPosition(e.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(e.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()},e.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},e.prototype._isCenterPosition=function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e},e.prototype._computePositionAnimationState=function(e){void 0===e&&(e=this._getLayoutDirection()),this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"},e.prototype._computePositionFromOrigin=function(){var e=this._getLayoutDirection();return"ltr"==e&&this.origin<=0||"rtl"==e&&this.origin>0?"left-origin-center":"right-origin-center"},e}(),w=function(e){function t(t){var n=e.call(this)||this;return n.elementRef=t,n}return Object(i.c)(t,e),t.prototype.focus=function(){this.elementRef.nativeElement.focus()},t.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},t.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},t}(Object(r.H)(function(){})),O=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._elementRef=t,r._changeDetectorRef=n,r._viewportRuler=i,r._dir=o,r._scrollDistance=0,r._selectedIndexChanged=!1,r._destroyed=new a.a,r._showPaginationControls=!1,r._disableScrollAfter=!0,r._disableScrollBefore=!0,r._selectedIndex=0,r.selectFocusedIndex=new l.EventEmitter,r.indexFocused=new l.EventEmitter,r}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e=Object(f.e)(e),this._selectedIndexChanged=this._selectedIndex!=e,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItemIndex(e)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){this._tabLabelCount!=this._labelWrappers.length&&(this._updatePagination(),this._tabLabelCount=this._labelWrappers.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())},t.prototype._handleKeydown=function(e){switch(e.keyCode){case h.h:this._keyManager.setFirstItemActive(),e.preventDefault();break;case h.e:this._keyManager.setLastItemActive(),e.preventDefault();break;case h.f:case h.n:this.selectFocusedIndex.emit(this.focusIndex),e.preventDefault();break;default:this._keyManager.onKeydown(e)}},t.prototype.ngAfterContentInit=function(){var e=this,t=this._dir?this._dir.change:Object(u.a)(null),n=this._viewportRuler.change(150),l=function(){e._updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new m.g(this._labelWrappers).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(l):l(),Object(c.a)(t,n).pipe(Object(p.a)(this._destroyed)).subscribe(function(){l(),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(Object(p.a)(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._onContentChanges=function(){this._updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()},t.prototype._updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)},enumerable:!0,configurable:!0}),t.prototype._isValidIndex=function(e){if(!this._labelWrappers)return!0;var t=this._labelWrappers?this._labelWrappers.toArray()[e]:null;return!!t&&!t.disabled},t.prototype._setTabFocus=function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._labelWrappers&&this._labelWrappers.length){this._labelWrappers.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._updateTabScrollPosition=function(){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX("+t+"px)"},Object.defineProperty(t.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(e){this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),e)),this._scrollDistanceChanged=!0,this._checkScrollingControls()},enumerable:!0,configurable:!0}),t.prototype._scrollHeader=function(e){this.scrollDistance+=("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3},t.prototype._scrollToLabel=function(e){var t=this._labelWrappers?this._labelWrappers.toArray()[e]:null;if(t){var n,l,i=this._tabListContainer.nativeElement.offsetWidth;"ltr"==this._getLayoutDirection()?l=(n=t.getOffsetLeft())+t.getOffsetWidth():n=(l=this._tabList.nativeElement.offsetWidth-t.getOffsetLeft())-t.getOffsetWidth();var o=this.scrollDistance,r=this.scrollDistance+i;n<o?this.scrollDistance-=o-n+60:l>r&&(this.scrollDistance+=l-r+60)}},t.prototype._checkPaginationEnabled=function(){var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e},t.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var e=this._labelWrappers&&this._labelWrappers.length?this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement:null;this._inkBar.alignToElement(e)},t}(Object(r.G)(function(){})),x=0,j=function(e){function t(t,n){var i=e.call(this,t)||this;return i._changeDetectorRef=n,i._indexToSelect=0,i._tabBodyWrapperHeight=0,i._tabsSubscription=s.a.EMPTY,i._tabLabelSubscription=s.a.EMPTY,i._dynamicHeight=!1,i._selectedIndex=null,i.headerPosition="above",i.selectedIndexChange=new l.EventEmitter,i.focusChange=new l.EventEmitter,i.animationDone=new l.EventEmitter,i.selectedTabChange=new l.EventEmitter(!0),i._groupId=x++,i}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=Object(f.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=Object(f.e)(e,null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-"+this.backgroundColor),e&&t.classList.add("mat-background-"+e),this._backgroundColor=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,l){n.position=l-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())},t.prototype.ngAfterContentInit=function(){var e=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n<t.length;n++)if(t[n].isActive){e._indexToSelect=e._selectedIndex=n;break}e._subscribeToTabLabels(),e._changeDetectorRef.markForCheck()})},t.prototype.ngOnDestroy=function(){this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()},t.prototype.realignInkBar=function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()},t.prototype._focusChanged=function(e){this.focusChange.emit(this._createChangeEvent(e))},t.prototype._createChangeEvent=function(e){var t=new function(){};return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t},t.prototype._subscribeToTabLabels=function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=c.a.apply(void 0,this._tabs.map(function(e){return e._stateChanges})).subscribe(function(){return e._changeDetectorRef.markForCheck()})},t.prototype._clampTabIndex=function(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))},t.prototype._getTabLabelId=function(e){return"mat-tab-label-"+this._groupId+"-"+e},t.prototype._getTabContentId=function(e){return"mat-tab-content-"+this._groupId+"-"+e},t.prototype._setTabBodyWrapperHeight=function(e){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}},t.prototype._removeTabBodyWrapperHeight=function(){this._tabBodyWrapperHeight=this._tabBodyWrapper.nativeElement.clientHeight,this._tabBodyWrapper.nativeElement.style.height="",this.animationDone.emit()},t.prototype._handleClick=function(e,t,n){e.disabled||(this.selectedIndex=t.focusIndex=n)},t.prototype._getTabIndex=function(e,t){return e.disabled?null:this.selectedIndex===t?0:-1},t}(Object(r.F)(Object(r.G)(function(e){this._elementRef=e}),"primary")),C=function(e){function t(t,n,l,i,o){var r=e.call(this,t)||this;return r._dir=n,r._ngZone=l,r._changeDetectorRef=i,r._viewportRuler=o,r._onDestroy=new a.a,r}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-"+this.backgroundColor),e&&t.classList.add("mat-background-"+e),this._backgroundColor=e},enumerable:!0,configurable:!0}),t.prototype.updateActiveLink=function(e){this._activeLinkChanged=!!e,this._changeDetectorRef.markForCheck()},t.prototype.ngAfterContentInit=function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._dir?e._dir.change:Object(u.a)(null);return Object(c.a)(t,e._viewportRuler.change(10)).pipe(Object(p.a)(e._onDestroy)).subscribe(function(){return e._alignInkBar()})})},t.prototype.ngAfterContentChecked=function(){if(this._activeLinkChanged){var e=this._tabLinks.find(function(e){return e.active});this._activeLinkElement=e?e._elementRef:null,this._alignInkBar(),this._activeLinkChanged=!1}},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype._alignInkBar=function(){this._activeLinkElement?(this._inkBar.show(),this._inkBar.alignToElement(this._activeLinkElement.nativeElement)):this._inkBar.hide()},t}(Object(r.G)(Object(r.F)(function(e){this._elementRef=e},"primary"))),k=function(){}},LcsW:function(e,t,n){var l=n("kekF")(Object.getPrototypeOf,Object);e.exports=l},MMmD:function(e,t,n){var l=n("lSCD"),i=n("shjB");e.exports=function(e){return null!=e&&i(e.length)&&!l(e)}},MlvX:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return p});var l=n("CcnG"),i=n("Wf4p"),o=(n("Fzqc"),n("dWZg")),r=n("Ip0R"),a=n("wFw1"),s=l["\u0275crt"]({encapsulation:2,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media screen and (-ms-high-contrast:active){.mat-option{margin:0 1px}.mat-option.mat-active{border:solid 1px currentColor;margin:0}}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],data:{}});function u(e){return l["\u0275vid"](0,[(e()(),l["\u0275eld"](0,0,null,null,1,"mat-pseudo-checkbox",[["class","mat-option-pseudo-checkbox mat-pseudo-checkbox"]],[[2,"mat-pseudo-checkbox-indeterminate",null],[2,"mat-pseudo-checkbox-checked",null],[2,"mat-pseudo-checkbox-disabled",null],[2,"_mat-animation-noopable",null]],null,null,p,d)),l["\u0275did"](1,49152,null,0,i.w,[[2,a.a]],{state:[0,"state"],disabled:[1,"disabled"]},null)],function(e,t){var n=t.component;e(t,1,0,n.selected?"checked":"",n.disabled)},function(e,t){e(t,0,0,"indeterminate"===l["\u0275nov"](t,1).state,"checked"===l["\u0275nov"](t,1).state,l["\u0275nov"](t,1).disabled,"NoopAnimations"===l["\u0275nov"](t,1)._animationMode)})}function c(e){return l["\u0275vid"](2,[(e()(),l["\u0275and"](16777216,null,null,1,null,u)),l["\u0275did"](1,16384,null,0,r.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),l["\u0275eld"](2,0,null,null,1,"span",[["class","mat-option-text"]],null,null,null,null,null)),l["\u0275ncd"](null,0),(e()(),l["\u0275eld"](4,0,null,null,1,"div",[["class","mat-option-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),l["\u0275did"](5,212992,null,0,i.y,[l.ElementRef,l.NgZone,o.a,[2,i.m],[2,a.a]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(e,t){var n=t.component;e(t,1,0,n.multiple),e(t,5,0,n.disabled||n.disableRipple,n._getHostElement())},function(e,t){e(t,4,0,l["\u0275nov"](t,5).unbounded)})}var d=l["\u0275crt"]({encapsulation:2,styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:7px;left:0;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:3px;left:1px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],data:{}});function p(e){return l["\u0275vid"](2,[],null,null)}},MrPd:function(e,t,n){var l=n("hypo"),i=n("ljhN"),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var r=e[t];o.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||l(e,t,n)}},MvSz:function(e,t,n){var l=n("LXxW"),i=n("0ycA"),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;e.exports=r?function(e){return null==e?[]:(e=Object(e),l(r(e),function(t){return o.call(e,t)}))}:i},NKxu:function(e,t,n){var l=n("lSCD"),i=n("E2jh"),o=n("GoyQ"),r=n("3Fdi"),a=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=RegExp("^"+s.toString.call(u.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(l(e)?c:a).test(r(e))}},Npjl:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},Nsh5:function(e,t,n){"use strict";n.d(t,"h",function(){return j}),n.d(t,"a",function(){return b}),n.d(t,"d",function(){return v}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return _}),n.d(t,"g",function(){return w}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return x}),n("ihYY");var l=n("n6gG"),i=n("YSh2"),o=n("CcnG"),r=n("K9Ia"),a=n("bne5"),s=n("p0ib"),u=n("VnD/"),c=n("67Y/"),d=n("t9fZ"),p=n("ny24"),f=n("p0Sj"),h=n("Gi3i"),m=n("mrSG");function g(e){throw Error("A drawer was already declared for 'position=\""+e+"\"'")}var b=new o.InjectionToken("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),v=function(){function e(e,t){this._changeDetectorRef=e,this._container=t}return e.prototype.ngAfterContentInit=function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})},e}(),y=function(){function e(e,t,n,l,s,c){var d=this;this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=n,this._platform=l,this._ngZone=s,this._doc=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._autoFocus=!0,this._animationStarted=new o.EventEmitter,this._animationState="void",this.openedChange=new o.EventEmitter(!0),this.onPositionChanged=new o.EventEmitter,this._modeChanged=new r.a,this._opened=!1,this.openedChange.subscribe(function(e){e?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._isFocusTrapEnabled&&d._focusTrap&&d._trapFocus()):d._restoreFocus()}),this._ngZone.runOutsideAngular(function(){Object(a.a)(d._elementRef.nativeElement,"keydown").pipe(Object(u.a)(function(e){return e.keyCode===i.g&&!d.disableClose})).subscribe(function(e){return d._ngZone.run(function(){d.close(),e.stopPropagation()})})})}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(e){this._mode=e,this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClose",{get:function(){return this._disableClose},set:function(e){this._disableClose=Object(l.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoFocus",{get:function(){return this._autoFocus},set:function(e){this._autoFocus=Object(l.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(Object(u.a)(function(e){return e}),Object(c.a)(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(Object(u.a)(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),Object(c.a)(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(Object(u.a)(function(e){return!e}),Object(c.a)(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(Object(u.a)(function(e){return e.fromState!==e.toState&&"void"===e.toState}),Object(c.a)(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),e.prototype._trapFocus=function(){var e=this;this.autoFocus&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})},e.prototype._restoreFocus=function(){if(this.autoFocus){var e=this._doc&&this._doc.activeElement;e&&this._elementRef.nativeElement.contains(e)&&(this._elementFocusedBeforeDrawerWasOpened instanceof HTMLElement?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}},e.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this._isFocusTrapEnabled},e.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},e.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy()},Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){this.toggle(Object(l.c)(e))},enumerable:!0,configurable:!0}),e.prototype.open=function(e){return this.toggle(!0,e)},e.prototype.close=function(){return this.toggle(!1)},e.prototype.toggle=function(e,t){var n=this;return void 0===e&&(e=!this.opened),void 0===t&&(t="program"),this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=t):(this._animationState="void",this._restoreFocus()),this._focusTrap&&(this._focusTrap.enabled=this._isFocusTrapEnabled),new Promise(function(e){n.openedChange.pipe(Object(d.a)(1)).subscribe(function(t){return e(t?"open":"close")})})},e.prototype._onAnimationStart=function(e){this._animationStarted.emit(e)},e.prototype._onAnimationEnd=function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&this.openedChange.emit(this._opened)},Object.defineProperty(e.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),e}(),_=function(){function e(e,t,n,l,i,a){void 0===i&&(i=!1);var s=this;this._dir=e,this._element=t,this._ngZone=n,this._changeDetectorRef=l,this._animationMode=a,this.backdropClick=new o.EventEmitter,this._destroyed=new r.a,this._doCheckSubject=new r.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new r.a,e&&e.change.pipe(Object(p.a)(this._destroyed)).subscribe(function(){s._validateDrawers(),s._updateContentMargins()}),this._autosize=i}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autosize",{get:function(){return this._autosize},set:function(e){this._autosize=Object(l.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:Object(l.c)(e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._drawers.changes.pipe(Object(f.a)(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e._updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Object(h.a)(10),Object(p.a)(this._destroyed)).subscribe(function(){return e._updateContentMargins()})},e.prototype.ngOnDestroy=function(){this._doCheckSubject.complete(),this._destroyed.next(),this._destroyed.complete()},e.prototype.open=function(){this._drawers.forEach(function(e){return e.open()})},e.prototype.close=function(){this._drawers.forEach(function(e){return e.close()})},e.prototype.ngDoCheck=function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})},e.prototype._watchDrawerToggle=function(e){var t=this;e._animationStarted.pipe(Object(p.a)(this._drawers.changes),Object(u.a)(function(e){return e.fromState!==e.toState})).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t._updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Object(p.a)(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})},e.prototype._watchDrawerPosition=function(e){var t=this;e&&e.onPositionChanged.pipe(Object(p.a)(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(d.a)(1)).subscribe(function(){t._validateDrawers()})})},e.prototype._watchDrawerMode=function(e){var t=this;e&&e._modeChanged.pipe(Object(p.a)(Object(s.a)(this._drawers.changes,this._destroyed))).subscribe(function(){t._updateContentMargins(),t._changeDetectorRef.markForCheck()})},e.prototype._setContainerClass=function(e){e?this._element.nativeElement.classList.add("mat-drawer-opened"):this._element.nativeElement.classList.remove("mat-drawer-opened")},e.prototype._validateDrawers=function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?(null!=e._end&&g("end"),e._end=t):(null!=e._start&&g("start"),e._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)},e.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},e.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},e.prototype._closeModalDrawer=function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e.close()})},e.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},e.prototype._canHaveBackdrop=function(e){return"side"!==e.mode||!!this._backdropOverride},e.prototype._isDrawerOpen=function(e){return null!=e&&e.opened},e.prototype._updateContentMargins=function(){var e=this,t=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?t+=this._left._width:"push"==this._left.mode&&(t+=l=this._left._width,n-=l)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var l;n+=l=this._right._width,t-=l}t=t||null,n=n||null,t===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))},e}(),w=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(m.c)(t,e),t}(v),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=Object(l.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=Object(l.e)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=Object(l.e)(e)},enumerable:!0,configurable:!0}),t}(y),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}(_),j=function(){}},NykK:function(e,t,n){var l=n("nmnc"),i=n("AP2z"),o=n("KfNM"),r=l?l.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?i(e):o(e)}},O0oS:function(e,t,n){var l=n("Cwc5"),i=function(){try{var e=l(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},O7RO:function(e,t,n){var l=n("CMye"),i=n("7GkX");e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,l(r)]}return t}},OBhP:function(e,t,n){var l=n("fmRc"),i=n("gFfm"),o=n("MrPd"),r=n("WwFo"),a=n("Dw+G"),s=n("5Tg0"),u=n("Q1l4"),c=n("VOtZ"),d=n("EEGq"),p=n("qZTm"),f=n("G6z8"),h=n("QqLw"),m=n("yHx3"),g=n("wrZu"),b=n("+iFO"),v=n("Z0cm"),y=n("DSRE"),_=n("zEVN"),w=n("GoyQ"),O=n("1+5i"),x=n("7GkX"),j={};j["[object Arguments]"]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j["[object Object]"]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j["[object Function]"]=j["[object WeakMap]"]=!1,e.exports=function e(t,n,C,k,E,S){var R,I=1&n,D=2&n,P=4&n;if(C&&(R=E?C(t,k,E,S):C(t)),void 0!==R)return R;if(!w(t))return t;var A=v(t);if(A){if(R=m(t),!I)return u(t,R)}else{var T=h(t),F="[object Function]"==T||"[object GeneratorFunction]"==T;if(y(t))return s(t,I);if("[object Object]"==T||"[object Arguments]"==T||F&&!E){if(R=D||F?{}:b(t),!I)return D?d(t,a(R,t)):c(t,r(R,t))}else{if(!j[T])return E?t:{};R=g(t,T,I)}}S||(S=new l);var M=S.get(t);if(M)return M;if(S.set(t,R),O(t))return t.forEach(function(l){R.add(e(l,n,C,l,t,S))}),R;if(_(t))return t.forEach(function(l,i){R.set(i,e(l,n,C,i,t,S))}),R;var N=P?D?f:p:D?keysIn:x,L=A?void 0:N(t);return i(L||t,function(l,i){L&&(l=t[i=l]),o(R,i,e(l,n,C,i,t,S))}),R}},"Of+w":function(e,t,n){var l=n("Cwc5")(n("Kz5y"),"WeakMap");e.exports=l},OkvK:function(e,t,n){"use strict";n.d(t,"e",function(){return f}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return u});var l=n("mrSG"),i=n("CcnG"),o=n("n6gG"),r=n("Wf4p"),a=n("K9Ia"),s=n("p0ib");n("ihYY");var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortables=new Map,t._stateChanges=new a.a,t.start="asc",t._direction="",t.sortChange=new i.EventEmitter,t}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"direction",{get:function(){return this._direction},set:function(e){if(Object(i.isDevMode)()&&e&&"asc"!==e&&"desc"!==e)throw function(e){return Error(e+" is not a valid sort direction ('asc' or 'desc').")}(e);this._direction=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClear",{get:function(){return this._disableClear},set:function(e){this._disableClear=Object(o.c)(e)},enumerable:!0,configurable:!0}),t.prototype.register=function(e){if(!e.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(e.id))throw Error("Cannot have two MatSortables with the same id ("+e.id+").");this.sortables.set(e.id,e)},t.prototype.deregister=function(e){this.sortables.delete(e.id)},t.prototype.sort=function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})},t.prototype.getNextSortDirection=function(e){if(!e)return"";var t,n,l=(t=null!=e.disableClear?e.disableClear:this.disableClear,n=["asc","desc"],"desc"==(e.start||this.start)&&n.reverse(),t||n.push(""),n),i=l.indexOf(this.direction)+1;return i>=l.length&&(i=0),l[i]},t.prototype.ngOnInit=function(){this._markInitialized()},t.prototype.ngOnChanges=function(){this._stateChanges.next()},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t}(Object(r.J)(Object(r.H)(function(){}))),c=function(){function e(){this.changes=new a.a,this.sortButtonLabel=function(e){return"Change sorting for "+e}}return e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e},token:e,providedIn:"root"}),e}();function d(e){return e||new c}var p=function(e){function t(t,n,l,i){var o=e.call(this)||this;if(o._intl=t,o._sort=l,o._cdkColumnDef=i,o._showIndicatorHint=!1,o._arrowDirection="",o._disableViewStateAnimation=!1,o.arrowPosition="after",!l)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return o._rerenderSubscription=Object(s.a)(l.sortChange,l._stateChanges,t.changes).subscribe(function(){o._isSorted()&&o._updateArrowDirection(),!o._isSorted()&&o._viewState&&"active"===o._viewState.toState&&(o._disableViewStateAnimation=!1,o._setAnimationTransitionState({fromState:"active",toState:o._arrowDirection})),n.markForCheck()}),o}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"disableClear",{get:function(){return this._disableClear},set:function(e){this._disableClear=Object(o.c)(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){!this.id&&this._cdkColumnDef&&(this.id=this._cdkColumnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)},t.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},t.prototype._setIndicatorHintVisible=function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))},t.prototype._setAnimationTransitionState=function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})},t.prototype._handleClick=function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}},t.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},t.prototype._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection},t.prototype._getArrowViewState=function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState},t.prototype._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start},t.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},t.prototype._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null},t}(Object(r.H)(function(){})),f=function(){}},PUEP:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var l,i=n("1MND"),o=(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=function(e){function t(t,n){var l=e.call(this)||this;return l.params=t,l.i18n=n,l.errorMessage=l.i18n.t("These file types are not allowed: :extensions",{extensions:l.params.extensions.join(", ")}),l}return o(t,e),t.prototype.fails=function(e){return this.params.extensions.some(function(t){return t===e.extension})},t}(i.a)},Q1l4:function(e,t){e.exports=function(e,t){var n=-1,l=e.length;for(t||(t=Array(l));++n<l;)t[n]=e[n];return t}},QcOe:function(e,t,n){var l=n("GoyQ"),i=n("6sVZ"),o=n("7Ix3"),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!l(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&r.call(e,a))&&n.push(a);return n}},QkVE:function(e,t,n){var l=n("EpBk");e.exports=function(e,t){var n=e.__data__;return l(t)?n["string"==typeof t?"string":"hash"]:n.map}},QoRX:function(e,t){e.exports=function(e,t){for(var n=-1,l=null==e?0:e.length;++n<l;)if(t(e[n],n,e))return!0;return!1}},QqLw:function(e,t,n){var l=n("tadb"),i=n("ebwN"),o=n("HOxn"),r=n("yGk4"),a=n("Of+w"),s=n("NykK"),u=n("3Fdi"),c=u(l),d=u(i),p=u(o),f=u(r),h=u(a),m=s;(l&&"[object DataView]"!=m(new l(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||r&&"[object Set]"!=m(new r)||a&&"[object WeakMap]"!=m(new a))&&(m=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,l=n?u(n):"";if(l)switch(l){case c:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},"R/W3":function(e,t,n){var l=n("KwMD"),i=n("2ajD"),o=n("CZoQ");e.exports=function(e,t,n){return t==t?o(e,t,n):l(e,i,n)}},Rn7m:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var l=n("CcnG"),i=(n("4tE/"),n("Ip0R")),o=(n("eDkP"),n("Fzqc"),n("Wf4p"),n("dWZg"),n("4c35"),n("qAlS"),l["\u0275crt"]({encapsulation:2,styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}@media screen and (-ms-high-contrast:active){.mat-autocomplete-panel{outline:solid 1px}}"],data:{}}));function r(e){return l["\u0275vid"](0,[(e()(),l["\u0275eld"](0,0,[[2,0],["panel",1]],null,2,"div",[["class","mat-autocomplete-panel"],["role","listbox"]],[[8,"id",0]],null,null,null,null)),l["\u0275did"](1,278528,null,0,i.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),l["\u0275ncd"](null,0)],function(e,t){e(t,1,0,"mat-autocomplete-panel",t.component._classList)},function(e,t){e(t,0,0,t.component.id)})}function a(e){return l["\u0275vid"](2,[l["\u0275qud"](402653184,1,{template:0}),l["\u0275qud"](671088640,2,{panel:0}),(e()(),l["\u0275and"](0,[[1,2]],null,0,null,r))],null,null)}},SfRM:function(e,t,n){var l=n("YESw");e.exports=function(){this.__data__=l?l(null):{},this.size=0}},TKdc:function(e,t,n){"use strict";n.r(t);var l,i,o=n("CcnG"),r={id:"root"},a=(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s={FOLDER:"folder",RECENT:"recent",TRASH:"trash",SHARES:"shares",STARRED:"starred",ROOT:"root",SEARCH:"search"},u=function(){return function(e){var t=this;this.name=null,this.viewName=null,this.folder=null,this.folderHash=null,this.hasActions=!1,this.sortColumn="updated_at",this.sortDirection="desc",Object.keys(e).forEach(function(n){t[n]=e[n]})}}(),c=function(e){function t(t){return e.call(this,{folder:t,name:s.FOLDER,hasActions:!0,viewName:t===r?"Drive":t.name,folderHash:t?t.hash:null})||this}return a(t,e),t}(u),d=new u({name:s.RECENT,viewName:"Recent",disableSort:!0,sortColumn:"created_at",sortDirection:"desc"}),p=new u({name:s.SEARCH,viewName:"Search results"}),f=new u({name:s.SHARES,viewName:"Shared with me"}),h=new u({name:s.TRASH,viewName:"Trash",hasActions:!0}),m=new u({name:s.STARRED,viewName:"Starred"}),g=new u({name:s.ROOT,viewName:"Drive",folder:r,hasActions:!0}),b=new u({name:s.FOLDER,viewName:null,hasActions:!0}),v=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y=function(){function e(){this.page=d,this.queryParams={orderBy:"created_at",recentOnly:!0}}return e.type="[Drive] Recent Entries Page Opened",e}(),_=function(){function e(e){this.queryParams={},this.page=v({},"root"===e?g:b,{folderHash:e})}return e.type="[Drive] Folder Page Opened",e}(),w=function(){function e(){this.page=f,this.queryParams={sharedOnly:!0}}return e.type="[Drive] Shared with me folder opened",e}(),O=function(){function e(){this.page=h,this.queryParams={deletedOnly:!0}}return e.type="[Drive] Trash Page Opened",e}(),x=function(){function e(e){void 0===e&&(e={}),this.queryParams=e,this.page=p}return e.type="[Drive] Search Page Opened",e}(),j=function(){function e(){this.page=m,this.queryParams={starredOnly:!0}}return e.type="[Drive] Starred Entries Page Opened",e}(),C=function(){function e(e){this.entries=e}return e.type="[Drive] Entries Selected Via Drag",e}(),k=function(){function e(e){this.entries=e}return e.type="[Drive] File Selected Via ContextMenu",e}(),E=function(){function e(e,t){void 0===t&&(t=!1),this.entry=e,this.ctrlKey=t}return e.type="[Drive] User Tapped File",e}(),S=function(){function e(e){this.entry=e}return e.type="[Drive] User Double Tapped Entry",e}(),R=function(){function e(e){this.deletedFiles=e}return e.type="[Drive] Successfully Deleted Files",e}(),I=function(){function e(e){this.entry=e}return e.type="[Drive] Entry Context Menu Opened",e}(),D=function(){function e(e){this.folder=e}return e.type="[Drive] New Folder Created",e}(),P=function(){function e(e,t){this.entry=e,this.newName=t}return e.type="[Drive] Entry Renamed",e}(),A=function(){function e(){}return e.type="[Drive] Started Dragging",e}(),T=function(){function e(){}return e.type="[Drive] Stopped Dragging",e}(),F=function(){function e(e,t){this.destination=e,this.entries=t}return e.type="[Drive API] Move Entries Success",e}(),M=function(){function e(e){this.messages=e}return e.type="[Drive API] Move Entries Failed",e}(),N=function(){function e(e){this.entries=e}return e.type="[Drive API] Trashed Entries Delete Forever Success",e}(),L=function(){function e(e){this.entries=e}return e.type="[Drive API] Trashed Entries Restore Success",e}(),V=function(){function e(){}return e.type="[Drive] Not Enough Space Error",e}(),U=function(){function e(){}return e.type="[Drive] User Space Usage Changed",e}(),z=function(){function e(e){this.status=e}return e.type="[Drive] BreakpointChanged",e}(),B=function(){function e(){}return e.type="[Drive] Load User Folders",e}(),$=function(){function e(){}return e.type="[Drive] Load User Space Usage",e}(),q=function(){function e(e){this.folders=e}return e.type="[Drive] Build Folder Tree",e}(),W=function(){function e(e){this.folder=e}return e.type="[Drive] Open Folder",e}(),H=function(){function e(e){this.queryParams=e}return e.type="[Drive] Open Search Page",e}(),G=function(){function e(e){this.entries=e}return e.type="[Drive] Select Entries",e}(),Y=function(){function e(){}return e.type="[Drive] Select All Entries",e}(),Z=function(){function e(){}return e.type="[Drive] Deselect All Entries",e}(),X=function(){function e(){}return e.type="[Drive] Delete Selected Entries",e}(),K=function(){function e(){}return e.type="[Drive] Open UploadsApiService Panel",e}(),J=function(){function e(){}return e.type="[Drive] Close UploadsApiService Panel",e}(),Q=function(){function e(e){this.entries=e}return e.type="[Drive] Add Entries",e}(),ee=function(){function e(e,t){this.destination=e,this.entries=t}return e.type="[Drive API] Move Entries",e}(),te=function(){function e(e,t,n){this.dialog=e,this.data=t,this.config=n}return e.type="[Drive] Open Dialog",e}(),ne=function(){function e(e,t){this.data=e,this.confirmAction=t}return e.type="[Drive] Open Confirm Dialog",e}(),le=function(){function e(e){this.mode=e}return e.type="[Drive] Set View Mode",e}(),ie=function(){function e(){}return e.type="[Drive] Toggle Details",e}(),oe=function(){function e(){}return e.type="[Drive] Toggle Sidebar",e}(),re=function(){function e(e){this.files=e}return e.type="[Drive] Upload Files",e}(),ae=function(){function e(e){this.entries=e}return e.type="[Drive] Restore Trashed Entries",e}(),se=function(){function e(){}return e.type="[Drive] Restore Trashed Entries Forever",e}(),ue=function(){function e(){}return e.type="[Drive] Empty Trash",e}(),ce=function(){function e(e){this.entries=e}return e.type="[Drive] Open File Preview Overlay",e}(),de=function(){function e(e,t,n){this.entries=e,this.link=t,this.password=n}return e.type="[Drive] Download Files",e}(),pe=function(){function e(e){this.entries=e}return e.type="[Drive] Add a Star",e}(),fe=function(){function e(e){this.entries=e}return e.type="[Drive] Remove Star",e}(),he=function(){function e(e){this.entries=e}return e.type="[Drive] Remove Entries",e}(),me=function(){function e(e){void 0===e&&(e={}),this.queryParams=e,this.loadMore=!0}return e.type="[Drive Infinite Scroll] Load More Entries",e}(),ge=function(){function e(e){void 0===e&&(e={}),this.queryParams=e}return e.type="[Drive] Reload Page Entries",e}(),be=function(){function e(){}return e.type="[Drive] Copy Selected Entries",e}(),ve=function(){function e(e){this.type=e}return e.type="[Drive] Open Upload Window",e}(),ye=function(){function e(e){this.message=e}return e.type="[Drive] Show Loading Toast",e}(),_e=function(){function e(){}return e.type="[Drive] Hide Loading Toast",e}(),we=function(){function e(){}return e.type="[Drive] Reset State",e}(),Oe=function(){function e(e){this.entries=e}return e.type="[Drive] Update Entries",e}(),xe=function(){function e(e){this.user=e}return e.type="[Drive] Set Current User",e}(),je=function(){return function(e,t,n){this.data=e,this.store=t,this.currentUser=n,this.contextMenu=!0,this.store.dispatch(this.data&&this.data.entry?new I(this.data.entry):new Z)}}(),Ce={entry:je},ke=n("fdbx"),Ee=function(){function e(e,t,n,l,i,o){this.store=e,this.el=t,this.contextMenu=n,this.overlayRef=l,this.previewFiles=i,this.data=o,this.entries=[],this.entries=o.entries}return e.prototype.ngAfterViewInit=function(){var e=this;this.bindToDownload(),this.previewContainer.nativeElement.addEventListener("click",function(t){t.target.closest(".preview-object")||e.overlayRef.close()})},e.prototype.ngOnDestroy=function(){this.downloadSub.unsubscribe()},e.prototype.openContextMenu=function(){this.contextMenu.open(je,this.optionsButton.nativeElement,{data:{entry:this.previewFiles.getCurrent()}})},e.prototype.closeOverlay=function(){this.overlayRef.close()},e.prototype.bindToDownload=function(){var e=this;this.downloadSub=this.previewFiles.download.subscribe(function(){var t=e.previewFiles.getAllEntries();e.store.dispatch(new de(t))})},e}(),Se=n("mrSG");!function(e){e.GET_ALL="drive/folders",e.CREATE="drive/folders"}(i||(i={}));var Re,Ie=n("LRXf"),De=n("twBr"),Pe=function(){function e(e,t){this.http=e,this.currentUser=t}return e.prototype.getAll=function(e){return this.http.get(i.GET_ALL,e)},e.prototype.getAllForCurrentUser=function(){return this.http.get("drive/users/"+this.currentUser.get("id")+"/folders")},e.prototype.create=function(e){return"root"===e.parent_id&&(e.parent_id=null),this.http.post(i.CREATE,e)},e.prototype.getByHash=function(e){return this.http.get("drive/folders/find",{hash:e})},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(Ie.a),o.inject(De.a))},token:e,providedIn:"root"}),e}(),Ae=n("xMyE"),Te=n("2WpN"),Fe=function(){function e(e,t){this.http=e,this.currentUser=t}return e.prototype.getEntriesForFolder=function(e){return void 0===e&&(e={}),this.http.get("drive/entries",e)},e.prototype.getCurrentUserEntries=function(e){return e.userId=this.currentUser.get("id"),this.http.get("drive/entries",e)},e.prototype.rename=function(e,t){return this.http.put("drive/entries/"+e+"/rename",t)},e.prototype.delete=function(e){return this.http.delete("drive/entries",e)},e.prototype.copy=function(e){return this.http.post("drive/entries/copy",e)},e.prototype.restore=function(e){return this.http.post("drive/entries/restore",e)},e.prototype.emptyTrash=function(){return this.delete({emptyTrash:!0})},e.prototype.moveEntries=function(e){return"root"===e.destination&&(e.destination=null),this.http.post("drive/entries/move",e)},e.prototype.addStar=function(e){return this.http.post("drive/entries/star",{ids:e})},e.prototype.removeStar=function(e){return this.http.post("drive/entries/unstar",{ids:e})},e.prototype.getSpaceUsage=function(){return this.http.get("drive/user/space-usage")},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(Ie.a),o.inject(De.a))},token:e,providedIn:"root"}),e}(),Me=function(){function e(){}return e.prototype.driveRoot=function(){return"/drive"},e.prototype.folder=function(e){return e===r?this.driveRoot():"/drive/folders/"+e.hash},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ne=n("/U79"),Le=n("Y+p1"),Ve=n.n(Le),Ue={isMobile:!1,activePage:g,folderTree:[],flatFolders:{},userFoldersLoaded:!1,entries:[],selectedEntries:[],dragging:!1,loading:!1,uploadsPanelOpen:!1,viewMode:"grid",detailsVisible:!0,sidebarOpen:!0,currentUser:null,spaceUsage:{available:null,used:null},meta:{sortColumn:"updated_at",sortDirection:"desc",currentPage:0,lastPage:0}},ze=function(){function e(){this.storage=this.localStorageAvailable()?localStorage:null}return e.prototype.get=function(e,t){if(!this.storage)return t;var n;try{n=JSON.parse(this.storage.getItem(e))}catch(e){}return null==n?t:n},e.prototype.set=function(e,t){if(!this.storage)return null;this.storage.setItem(e,JSON.stringify(t))},e.prototype.remove=function(e){if(!this.storage)return null;this.storage.removeItem(e)},e.prototype.localStorageAvailable=function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Be=n("h586"),$e=n("sJvS"),qe=n("tU2R"),We=n("PCqb"),He=n("6JEN"),Ge=n("PUEP"),Ye=n("kmQS"),Ze=n("i2dy"),Xe=n("VaLf"),Ke=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),Je=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.DEFAULT_MAX_FILE_SIZE_MB=8,t}return Ke(t,e),t.prototype.initValidations=function(){this.validations.push(new qe.a({maxSize:this.getMaxFileSize()},this.i18n));var e=this.getAllowedExtensions(),t=this.getBlockedExtensions();e&&e.length&&this.validations.push(new He.a({extensions:e},this.i18n)),t&&t.length&&this.validations.push(new Ge.a({extensions:t},this.i18n))},t.prototype.getMaxFileSize=function(){return this.settings.get("uploads.max_size",Object(We.a)(this.DEFAULT_MAX_FILE_SIZE_MB,"MB"))},t.prototype.getAllowedExtensions=function(){return this.settings.getJson("uploads.allowed_extensions")},t.prototype.getBlockedExtensions=function(){return this.settings.getJson("uploads.blocked_extensions")},t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(Ye.a),o.inject(Ze.a),o.inject(Xe.a))},token:t,providedIn:"root"}),t}($e.a),Qe=n("Lm4C");!function(e){e.copyEntries="Copying items...",e.emptyTrash="Emptying trash...",e.moveEntries="Moving items..."}(Re||(Re={}));var et=n("He21"),tt=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},nt=function(){function e(e,t,n,l,i,o,r,a,s){this.foldersApi=e,this.entriesApi=t,this.router=n,this.driveUrls=l,this.uploads=i,this.store=o,this.localStore=r,this.validator=a,this.uploadInputConfig=s}var t;return t=e,e.flatFolders=function(e){return e.flatFolders},e.userFoldersLoaded=function(e){return e.userFoldersLoaded},e.activePage=function(e){return e.activePage},e.activePageName=function(e){return e.activePage.name},e.userFolders=function(e){return e.folderTree},e.selectedEntries=function(e){return e.selectedEntries},e.selectedEntryIds=function(e,t){return t.map(function(e){return e.id})},e.selectedEntry=function(e,t){return t?t[t.length-1]:null},e.selectedEntryOrActiveFolder=function(e,t){return t||e.activePage.folder},e.selectedEntryParent=function(e,t,n){return t&&n&&t.parent_id?n[t.parent_id]:r},e.anythingSelected=function(e,t){return t.length>0},e.allSelectedEntriesStarred=function(e,t){return t.every(function(e){return!!e.tags.find(function(e){return"starred"===e.name})})},e.onlyFoldersSelected=function(e,t){return t.every(function(e){return"folder"===e.type})},e.entries=function(e){return e.entries},e.entriesEmpty=function(e){return e.meta.currentPage&&!e.loading&&0===e.entries.length},e.multipleEntriesSelected=function(e,t){return t.length>1},e.activeFolder=function(e){return e.activePage.folder},e.selectedFolderId=function(e,t){var n=t.filter(function(e){return"folder"===e.type})[0];return n?n.id:null},e.meta=function(e){return e.meta},e.dragging=function(e){return e.dragging},e.loading=function(e){return e.loading},e.currentPage=function(e){return e.meta.currentPage},e.viewMode=function(e){return e.viewMode},e.detailsOpen=function(e){return e.detailsVisible},e.sidebarOpen=function(e){return e.sidebarOpen},e.sortColumn=function(e){return e.meta.sortColumn},e.sortDirection=function(e){return e.meta.sortDirection},e.canLoadMoreEntries=function(e){return e.meta.currentPage<e.meta.lastPage},e.userSpaceUsed=function(e){return e.spaceUsage.used},e.userSpaceAvailable=function(e){return e.spaceUsage.available},e.spaceUsedPercent=function(e,t,n){return 100*t/n},e.isMobile=function(e){return e.isMobile},e.userHasPermission=function(e,t,n){if(!t||!n)return!1;if("root"===t.id)return!0;var l=t.users.find(function(e){return e.id===n.id});return!!l.owns_entry||l.entry_permissions[e]},e.currentUser=function(e){return e.currentUser},e.userOwnsActiveFolder=function(e,n,l){return t.userHasPermission("owner",n,l)},e.userCanEditSelectedFolder=function(e,n,l){return t.userHasPermission("edit",n,l)},e.userCanEditSelectedEntries=function(e,t,n){return t.every(function(e){var t=e.users.find(function(e){return e.id===n.id});return t&&(t.owns_entry||t.entry_permissions.edit)})},e.canUpload=function(e,t,n){return t.folder&&n},e.prototype.loadUserFolders=function(e){return this.foldersApi.getAllForCurrentUser().pipe(Object(Ae.a)(function(t){return e.dispatch(new q(t.folders))}))},e.prototype.buildFolderTree=function(e,t){var n={},l=[];if(t.folders)for(var i=0,o=t.folders.length;i<o;i++)n[(a=t.folders[i]).id]=a;else n=e.getState().flatFolders;for(var r in n){var a;if(n.hasOwnProperty(r))if((a=n[r]).children=[],a.parent_id){var s=n[a.parent_id];s&&(s.children||(s.children=[]),s.children.push(a))}else l.push(a)}e.patchState({folderTree:l,flatFolders:n,userFoldersLoaded:!0})},e.prototype.loadDriveEntries=function(e,t){var n=e.getState(),l={loading:!0,meta:tt({},n.meta)};l.activePage=t.page?t.page:n.activePage,l.meta.sortColumn=t.queryParams.orderBy||l.activePage.sortColumn,l.meta.sortDirection=t.queryParams.orderDir||l.activePage.sortDirection,"search"!==l.activePage.name&&(l.meta.query=null,l.meta.type=null),l.meta.query=t.queryParams.query||l.meta.query,l.meta.type=t.queryParams.type||l.meta.type,e.patchState(l);var i=this.transformQueryParams(t.queryParams);return this.entriesApi.getEntriesForFolder(i).pipe(Object(Ae.a)(function(i){var o={entries:(t.loadMore?n.entries:[]).concat(i.data),meta:tt({},l.meta,{lastPage:i.last_page,currentPage:i.current_page}),loading:!1};return"root"!==l.activePage.name&&(o.activePage=tt({},l.activePage,{folder:i.folder})),e.patchState(o)},function(){return e.patchState({loading:!1})}))},e.prototype.openFolder=function(e,t){var n=e.getState().activePage.folder;if(!n||t.folder.id!==n.id)return t.folder&&t.folder.deleted_at?e.dispatch(new ne({title:"Folder is in trash",body:"To view this folder, you need to restore it first.",ok:"Restore"},new ae)):(e.patchState({loading:!0}),this.router.navigate([this.driveUrls.folder(t.folder)]))},e.prototype.openSearchPage=function(e,t){var n=this.store.selectSnapshot(Ne.e.state).root.queryParams;if(!Ve()(n,t.queryParams))return e.patchState({loading:!0}),this.router.navigate(["/drive/search"],{queryParams:t.queryParams})},e.prototype.selectEntries=function(e,t){e.patchState({selectedEntries:t.entries})},e.prototype.deselectAllEntries=function(e){e.getState().selectedEntries.length&&e.patchState({selectedEntries:[]})},e.prototype.SelectAllEntries=function(e){e.patchState({selectedEntries:e.getState().entries.slice()})},e.prototype.entryTapped=function(e,t){var n=e.getState().selectedEntries,l=!1,i=n.findIndex(function(e){return e.id===t.entry.id});i>-1&&(n.splice(i,1),l=!0),e.patchState(t.ctrlKey?l?{selectedEntries:n}:{selectedEntries:n.concat([t.entry])}:{selectedEntries:[t.entry]})},e.prototype.entryDoubleTapped=function(e,t){return e.dispatch("folder"===t.entry.type?new W(t.entry):new ce([t.entry]))},e.prototype.deleteSelectedEntries=function(e){var n=this,l=this.store.selectSnapshot(t.selectedEntries),i=this.store.selectSnapshot(t.selectedEntryIds),o=this.store.selectSnapshot(t.flatFolders),r=e.getState().activePage;return this.entriesApi.delete({entryIds:i}).pipe(Object(Ae.a)(function(){var a={entries:e.getState().entries.filter(function(e){return-1===i.indexOf(e.id)})},s=[new R(l)];a.selectedEntries=[],r.folder&&i.indexOf(r.folder.id)>-1&&n.store.dispatch(new W(n.store.selectSnapshot(t.selectedEntryParent)));var u=l.filter(function(e){return"folder"===e.type});return u.length&&(u.forEach(function(e){return delete o[e.id]}),a.flatFolders=o,s.push(new q)),e.patchState(a),e.dispatch(s)}))},e.prototype.fileContextMenuOpened=function(e,t){if(t.entry)return e.getState().selectedEntries.find(function(e){return e.id===t.entry.id})?void 0:e.dispatch(new k([t.entry]))},e.prototype.newFolderCreated=function(e,t){var n,l=e.getState(),i=t.folder.parent_id||"root",o={flatFolders:tt({},l.flatFolders,(n={},n[t.folder.id]=t.folder,n))};return i===l.activePage.folder.id&&(o.entries=[t.folder].concat(l.entries)),e.patchState(o),e.dispatch(new q)},e.prototype.entryRenamed=function(e,t){var n=e.getState(),l={entries:n.entries.slice()},i=l.entries.findIndex(function(e){return e.id===t.entry.id});if(i>-1&&(l.entries[i]=tt({},l.entries[i],{name:t.newName})),l.selectedEntries=[tt({},n.selectedEntries[0],{name:t.newName})],n.activePage.folder&&n.activePage.folder.id===t.entry.id&&(l.activePage=tt({},n.activePage,{folder:t.entry})),"folder"===t.entry.type){var o=tt({},n.flatFolders);o[t.entry.id].name=t.newName,l.flatFolders=o,e.dispatch(new q)}e.patchState(l)},e.prototype.startedDragging=function(e){e.patchState({dragging:!0})},e.prototype.stoppedDragging=function(e){e.patchState({dragging:!1})},e.prototype.movieEntries=function(e,t){var n=e.getState().selectedEntries;e.dispatch(new ye(Re.moveEntries));var l=n.map(function(e){return{id:e.id,type:"folder"===e.type?"folder":"file"}});return this.entriesApi.moveEntries({entries:l,destination:t.destination}).pipe(Object(Te.a)(function(){return e.dispatch(new _e)}),Object(Ae.a)(function(n){return e.dispatch(new F(t.destination,n.entries))},function(t){return e.dispatch(new M(t.messages))}))},e.prototype.moveEntriesSuccess=function(e,t){var n=e.getState(),l=t.entries.map(function(e){return e.id}),i=t.entries.filter(function(e){return"folder"===e.type}),o={selectedEntries:[],entries:n.entries.filter(function(e){return-1===l.indexOf(e.id)})};if(i.length&&(o.flatFolders=tt({},n.flatFolders),t.entries.filter(function(e){return"folder"===e.type}).forEach(function(e){return o.flatFolders[e.id]=e})),n.activePage.folder){var r=t.entries.find(function(e){return n.activePage.folder.id===e.id});r&&(o.activePage=tt({},n.activePage,{folder:r}))}return e.patchState(o),e.dispatch(new q)},e.prototype.toggleViewMode=function(e,t){var n=e.getState().viewMode,l=t.mode||"list"===n?"grid":"list";this.localStore.set("bedesk.viewMode",l),e.patchState({viewMode:l})},e.prototype.toggleDetailsSidebar=function(e){e.patchState({detailsVisible:!e.getState().detailsVisible})},e.prototype.toggleSidebar=function(e){e.patchState({sidebarOpen:!e.getState().sidebarOpen})},e.prototype.addEntries=function(e,t){var n=e.getState().entries,l=e.getState().spaceUsage,i=t.entries.filter(function(e){return!n.find(function(t){return t.id===e.id})}),o=i.filter(function(e){return"folder"!==e.type}).reduce(function(e,t){return e+t.file_size},0);e.patchState({entries:i.concat(n),spaceUsage:tt({},l,{used:l.used+o})})},e.prototype.uploadFiles=function(e,t){if(!this.enoughSpaceLeftToUpload(e.getState().spaceUsage,t.files))return e.dispatch(new V);if(t.files.length){e.dispatch(new K);var n=e.getState().activePage.folder,l=n&&n!==r?n.id:null;return this.uploads.start(t.files,{httpParams:{parentId:l},validator:this.validator}).pipe(Object(Ae.a)(function(t){var n=[t.parent,t],i=n.filter(function(e){return e&&e.parent_id===l});e.dispatch(new Q(i));var o=n.filter(function(e){return e&&"folder"===e.type});if(o.length){var r=tt({},e.getState().flatFolders);o.forEach(function(e){return r[e.id]=e}),e.patchState({flatFolders:r}),e.dispatch(new q)}}))}},e.prototype.deleteTrashedEntriesForever=function(e){var n=this.store.selectSnapshot(t.selectedEntries),l=n.map(function(e){return e.id}),i=e.getState().entries.filter(function(e){return-1===l.indexOf(e.id)});return this.entriesApi.delete({entryIds:l,deleteForever:!0}).pipe(Object(Ae.a)(function(){return e.patchState({entries:i,selectedEntries:[]}),e.dispatch([new N(n),new U])}))},e.prototype.restoreTrashedEntries=function(e,n){var l,i=this.store.selectSnapshot(t.activePage),o=n.entries||this.store.selectSnapshot(t.selectedEntries),r=o.map(function(e){return e.id});return l=i===h?e.getState().entries.filter(function(e){return-1===r.indexOf(e.id)}):e.getState().entries.concat(n.entries),this.entriesApi.restore({entryIds:r}).pipe(Object(Ae.a)(function(){return e.patchState({entries:l,selectedEntries:[]}),e.dispatch(new L(o))}))},e.prototype.emptyTrash=function(e){return e.dispatch(new ye(Re.emptyTrash)),this.entriesApi.emptyTrash().pipe(Object(Te.a)(function(){return e.dispatch(new _e)}),Object(Ae.a)(function(){return e.patchState({entries:[],selectedEntries:[]}),e.dispatch(new U)}))},e.prototype.addStar=function(e,t){var n=e.getState(),l=t.entries.map(function(e){return e.id});return this.entriesApi.addStar(l).pipe(Object(Ae.a)(function(t){var i=n.entries.map(function(e){return l.indexOf(e.id)>-1&&(e.tags||(e.tags=[]),e.tags.push(t.tag)),e}),o=n.selectedEntries.map(function(e){return e.tags.push(t.tag),e});e.patchState({entries:i,selectedEntries:o})}))},e.prototype.removeStar=function(e,t){var n=this,l=e.getState(),i=t.entries.map(function(e){return e.id});return this.entriesApi.removeStar(i).pipe(Object(Ae.a)(function(t){var o=l.entries.map(function(e){return i.indexOf(e.id)>-1&&n.removeTag(e,t.tag),e}),r=l.selectedEntries.map(function(e){return n.removeTag(e,t.tag)});e.patchState({entries:o,selectedEntries:r})}))},e.prototype.removeSelectedEntries=function(e,t){var n=t.entries.map(function(e){return e.id}),l=e.getState().entries.filter(function(e){return-1===n.indexOf(e.id)});e.patchState({entries:l})},e.prototype.copySelectedEntries=function(e){var n=this.store.selectSnapshot(t.selectedEntries),l=n.map(function(e){return e.id}),i=n.filter(function(e){return"folder"===e.type}),o=e.getState();return e.dispatch(new ye(Re.copyEntries)),this.entriesApi.copy({entryIds:l}).pipe(Object(Te.a)(function(){return e.dispatch(new _e)}),Object(Ae.a)(function(t){var n={};e.getState().activePage.folder&&(n.entries=o.entries.concat(t.entries)),i.length&&(n.flatFolders=tt({},o.flatFolders),t.entries.filter(function(e){return"folder"===e.type}).forEach(function(e){return n.flatFolders[e.id]=e})),e.patchState(n),e.dispatch(new U),i.length&&e.dispatch(new q)}))},e.prototype.openUploadWindow=function(e,t){var n=tt({},this.uploadInputConfig,{directory:"directory"===t.type});Object(Qe.a)(n).then(function(t){t&&t.length&&e.dispatch(new re(t))})},e.prototype.loadUserSpaceUsage=function(e){return this.entriesApi.getSpaceUsage().pipe(Object(Ae.a)(function(t){e.patchState({spaceUsage:{used:t.used,available:t.available}})}))},e.prototype.updateEntries=function(e,t){var n=e.getState().entries;t.entries.forEach(function(e){var t=n.findIndex(function(t){return e.id===t.id});n[t]=tt({},n[t],e)}),e.patchState({entries:n})},e.prototype.breakpointChanged=function(e,t){e.patchState({isMobile:t.status.isMobile,sidebarOpen:!t.status.isMobile,detailsVisible:!t.status.isMobile})},e.prototype.setCurrentUser=function(e,t){e.patchState({currentUser:t.user})},e.prototype.resetState=function(e){e.setState(tt({},Ue,{viewMode:e.getState().viewMode}))},e.prototype.transformQueryParams=function(e){var n=this.store.selectSnapshot(t.activePage),l=this.store.selectSnapshot(t.meta),i=tt({orderBy:l.sortColumn,orderDir:l.sortDirection},e);return n.folderHash&&(i.folderId=n.folderHash),l.query&&(i.query=l.query),l.type&&(i.type=l.type),i},e.prototype.enoughSpaceLeftToUpload=function(e,t){return t.reduce(function(e,t){return e+t.size},0)+e.used<e.available},e.prototype.removeTag=function(e,t){var n=e.tags.findIndex(function(e){return e.id===t.id});return e.tags.splice(n,1),e},Object(Se.b)([Object(ke.a)(B),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"loadUserFolders",null),Object(Se.b)([Object(ke.a)(q),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,q]),Object(Se.d)("design:returntype",void 0)],e.prototype,"buildFolderTree",null),Object(Se.b)([Object(ke.a)(_),Object(ke.a)(y),Object(ke.a)(O),Object(ke.a)(j),Object(ke.a)(x),Object(ke.a)(w),Object(ke.a)(ge),Object(ke.a)(me),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"loadDriveEntries",null),Object(Se.b)([Object(ke.a)(W,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,W]),Object(Se.d)("design:returntype",void 0)],e.prototype,"openFolder",null),Object(Se.b)([Object(ke.a)(H,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,H]),Object(Se.d)("design:returntype",void 0)],e.prototype,"openSearchPage",null),Object(Se.b)([Object(ke.a)(C),Object(ke.a)(k),Object(ke.a)(G),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"selectEntries",null),Object(Se.b)([Object(ke.a)(Z),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"deselectAllEntries",null),Object(Se.b)([Object(ke.a)(Y),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"SelectAllEntries",null),Object(Se.b)([Object(ke.a)(E),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,E]),Object(Se.d)("design:returntype",void 0)],e.prototype,"entryTapped",null),Object(Se.b)([Object(ke.a)(S),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,S]),Object(Se.d)("design:returntype",void 0)],e.prototype,"entryDoubleTapped",null),Object(Se.b)([Object(ke.a)(X),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"deleteSelectedEntries",null),Object(Se.b)([Object(ke.a)(I),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,I]),Object(Se.d)("design:returntype",void 0)],e.prototype,"fileContextMenuOpened",null),Object(Se.b)([Object(ke.a)(D),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,D]),Object(Se.d)("design:returntype",void 0)],e.prototype,"newFolderCreated",null),Object(Se.b)([Object(ke.a)(P),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,P]),Object(Se.d)("design:returntype",void 0)],e.prototype,"entryRenamed",null),Object(Se.b)([Object(ke.a)(A),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"startedDragging",null),Object(Se.b)([Object(ke.a)(T),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"stoppedDragging",null),Object(Se.b)([Object(ke.a)(ee),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,ee]),Object(Se.d)("design:returntype",void 0)],e.prototype,"movieEntries",null),Object(Se.b)([Object(ke.a)(F),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,F]),Object(Se.d)("design:returntype",void 0)],e.prototype,"moveEntriesSuccess",null),Object(Se.b)([Object(ke.a)(le),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,le]),Object(Se.d)("design:returntype",void 0)],e.prototype,"toggleViewMode",null),Object(Se.b)([Object(ke.a)(ie),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"toggleDetailsSidebar",null),Object(Se.b)([Object(ke.a)(oe),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"toggleSidebar",null),Object(Se.b)([Object(ke.a)(Q),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Q]),Object(Se.d)("design:returntype",void 0)],e.prototype,"addEntries",null),Object(Se.b)([Object(ke.a)(re),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,re]),Object(Se.d)("design:returntype",void 0)],e.prototype,"uploadFiles",null),Object(Se.b)([Object(ke.a)(se),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"deleteTrashedEntriesForever",null),Object(Se.b)([Object(ke.a)(ae),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,ae]),Object(Se.d)("design:returntype",void 0)],e.prototype,"restoreTrashedEntries",null),Object(Se.b)([Object(ke.a)(ue,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"emptyTrash",null),Object(Se.b)([Object(ke.a)(pe,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,pe]),Object(Se.d)("design:returntype",void 0)],e.prototype,"addStar",null),Object(Se.b)([Object(ke.a)(fe,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,fe]),Object(Se.d)("design:returntype",void 0)],e.prototype,"removeStar",null),Object(Se.b)([Object(ke.a)(he),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,he]),Object(Se.d)("design:returntype",void 0)],e.prototype,"removeSelectedEntries",null),Object(Se.b)([Object(ke.a)(be),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"copySelectedEntries",null),Object(Se.b)([Object(ke.a)(ve),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,ve]),Object(Se.d)("design:returntype",void 0)],e.prototype,"openUploadWindow",null),Object(Se.b)([Object(ke.a)($),Object(ke.a)(U),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"loadUserSpaceUsage",null),Object(Se.b)([Object(ke.a)(Oe),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Oe]),Object(Se.d)("design:returntype",void 0)],e.prototype,"updateEntries",null),Object(Se.b)([Object(ke.a)(z),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,z]),Object(Se.d)("design:returntype",void 0)],e.prototype,"breakpointChanged",null),Object(Se.b)([Object(ke.a)(xe),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,xe]),Object(Se.d)("design:returntype",void 0)],e.prototype,"setCurrentUser",null),Object(Se.b)([Object(ke.a)(we),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"resetState",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"flatFolders",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"userFoldersLoaded",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"activePage",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"activePageName",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"userFolders",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"selectedEntries",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"selectedEntryIds",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"selectedEntry",null),Object(Se.b)([Object(ke.e)([t.selectedEntry]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"selectedEntryOrActiveFolder",null),Object(Se.b)([Object(ke.e)([t.selectedEntryOrActiveFolder,t.flatFolders]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Object,Object]),Object(Se.d)("design:returntype",void 0)],e,"selectedEntryParent",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"anythingSelected",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"allSelectedEntriesStarred",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"onlyFoldersSelected",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"entries",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"entriesEmpty",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"multipleEntriesSelected",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"activeFolder",null),Object(Se.b)([Object(ke.e)([t.selectedEntries]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array]),Object(Se.d)("design:returntype",void 0)],e,"selectedFolderId",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"meta",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"dragging",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"loading",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"currentPage",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"viewMode",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"detailsOpen",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"sidebarOpen",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"sortColumn",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"sortDirection",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"canLoadMoreEntries",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"userSpaceUsed",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"userSpaceAvailable",null),Object(Se.b)([Object(ke.e)([t.userSpaceUsed,t.userSpaceAvailable]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Number,Number]),Object(Se.d)("design:returntype",void 0)],e,"spaceUsedPercent",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"isMobile",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"currentUser",null),Object(Se.b)([Object(ke.e)([t.activeFolder,t.currentUser]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Object,et.a]),Object(Se.d)("design:returntype",void 0)],e,"userOwnsActiveFolder",null),Object(Se.b)([Object(ke.e)([t.activeFolder,t.currentUser]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Object,et.a]),Object(Se.d)("design:returntype",void 0)],e,"userCanEditSelectedFolder",null),Object(Se.b)([Object(ke.e)([t.selectedEntries,t.currentUser]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Array,et.a]),Object(Se.d)("design:returntype",void 0)],e,"userCanEditSelectedEntries",null),Object(Se.b)([Object(ke.e)([t.activePage,t.userCanEditSelectedFolder]),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,u,Boolean]),Object(Se.d)("design:returntype",void 0)],e,"canUpload",null),t=Object(Se.b)([Object(ke.f)({name:"drive",defaults:Ue})],e)}(),lt=function(){function e(e,t,n){var l=this;this.store=e,this.actions$=t,this.overlay=n,this.actions$.pipe(Object(ke.k)(ce)).subscribe(function(e){l.overlay.open(Ee,{position:"center",origin:"global",panelClass:"file-preview-overlay-container",data:{entries:e.entries||l.selectedEntries()}})})}return e.prototype.selectedEntries=function(){return this.store.selectSnapshot(nt.selectedEntries)},e}(),it=function(){function e(e,t,n){var l=this;this.actions$=e,this.store=t,this.settings=n,this.actions$.pipe(Object(ke.k)(de)).subscribe(function(e){var t,n;t=l.getDownloadUrl(e),(n=document.createElement("a")).href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)})}return e.prototype.getDownloadUrl=function(e){var t=this.getEntryHashes(e.entries),n=this.settings.getBaseUrl()+"secure/uploads/download?hashes="+t;return e.link&&(n+="&shareable_link="+e.link.id),e.password&&(n+="&password="+e.password),n},e.prototype.getEntryHashes=function(e){return e||(e=this.store.selectSnapshot(nt.selectedEntries)),e.map(function(e){return e.hash}).join(",")},e}(),ot=function(){function e(e){this.http=e}return e.prototype.findByEntryId=function(e,t){return this.http.get("drive/entries/"+e+"/shareable-link",t)},e.prototype.findByHash=function(e,t){return this.http.get("drive/shareable-links/"+e,t)},e.prototype.create=function(e,t){return this.http.post("drive/entries/"+e+"/shareable-link",t)},e.prototype.update=function(e,t){return this.http.put("drive/shareable-links/"+e,t)},e.prototype.delete=function(e){return this.http.delete("drive/shareable-links/"+e+")")},e.prototype.checkPassword=function(e,t){return this.http.post("drive/shareable-links/"+e+"/check-password",{password:t})},e.prototype.importEntry=function(e,t){return this.http.post("drive/shareable-links/"+e+"/import",{password:t})},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(Ie.a))},token:e,providedIn:"root"}),e}(),rt=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},at=function(){function e(e){void 0===e&&(e={}),this.options=e}return e.type="[Shareable Link] Load From Backend",e}(),st=function(){function e(e){this.options=e}return e.type="[Shareable Link] Update",e}(),ut=function(){function e(e){this.options=e}return e.type="[Shareable Link] Create",e}(),ct=function(){function e(){}return e.type="[Shareable Link] Delete",e}(),dt=function(){function e(){}return e.type="[Shareable Link] Toggle Options Panel Visibility",e}(),pt=function(){function e(){}return e.type="[Shareable Link] Copy To Clipboard Success",e}(),ft=function(){function e(){}return e.type="[Shareable Link] Reset State",e}(),ht={link:null,loading:!1,optionsPanelVisible:!0,backendErrors:{},cache:{},linkOptions:{allowDownload:!1,allowEdit:!1,expiresAt:null,password:null}},mt=function(){function e(e,t,n){this.store=e,this.settings=t,this.linksApi=n}return e.loading=function(e){return e.loading},e.link=function(e){return e.link},e.optionsVisible=function(e){return!e.loading&&e.optionsPanelVisible},e.backendErrors=function(e){return e.backendErrors},e.prototype.createShareableLink=function(e,t){var n=this.store.selectSnapshot(nt.selectedEntryIds)[0];return e.patchState({loading:!0}),this.linksApi.create(n,t.options).pipe(Object(Te.a)(e.patchState({loading:!1,backendErrors:{}})),Object(Ae.a)(function(t){var n,l=t.link;e.patchState({cache:rt({},e.getState().cache,(n={},n[l.entry_id]=l,n)),link:t.link,optionsPanelVisible:!1})},function(t){e.patchState({backendErrors:t.messages})}))},e.prototype.updateLink=function(e,t){var n=e.getState().link;return e.patchState({loading:!0}),this.linksApi.update(n.id,t.options).pipe(Object(Te.a)(e.patchState({loading:!1,backendErrors:{}})),Object(Ae.a)(function(t){var l;return e.patchState({link:t.link,cache:rt({},e.getState().cache,(l={},l[n.entry_id]=t.link,l)),optionsPanelVisible:!1})},function(t){e.patchState({backendErrors:t.messages})}))},e.prototype.loadShareableLink=function(e,t){var n=this.store.selectSnapshot(nt.selectedEntryIds)[0],l=e.getState().cache[n];return l?e.patchState({link:l,optionsPanelVisible:!1}):(e.patchState({loading:!0}),this.linksApi.findByEntryId(n,{autoCreate:t.options.autoCreate}).pipe(Object(Te.a)(function(){return e.patchState({loading:!1})}),Object(Ae.a)(function(t){var n;return e.patchState({link:t.link,optionsPanelVisible:!1,cache:rt({},e.getState().cache,(n={},n[t.link.entry_id]=t.link,n))})},function(){})))},e.prototype.deleteShareableLink=function(e){var t=e.getState().link;return e.patchState({loading:!0}),this.linksApi.delete(t.id).pipe(Object(Te.a)(e.patchState({loading:!1})),Object(Ae.a)(function(){var n=e.getState().cache;delete n[t.entry_id],e.patchState({link:null,cache:n})}))},e.prototype.toggleOptionsPanel=function(e){e.patchState({optionsPanelVisible:!e.getState().optionsPanelVisible})},e.prototype.resetShareLinkState=function(e){return e.patchState(rt({},e.getState(),ht))},Object(Se.b)([Object(ke.a)(ut),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,st]),Object(Se.d)("design:returntype",void 0)],e.prototype,"createShareableLink",null),Object(Se.b)([Object(ke.a)(st),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,st]),Object(Se.d)("design:returntype",void 0)],e.prototype,"updateLink",null),Object(Se.b)([Object(ke.a)(at),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,at]),Object(Se.d)("design:returntype",void 0)],e.prototype,"loadShareableLink",null),Object(Se.b)([Object(ke.a)(ct),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"deleteShareableLink",null),Object(Se.b)([Object(ke.a)(dt),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"toggleOptionsPanel",null),Object(Se.b)([Object(ke.a)(ft,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"resetShareLinkState",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"loading",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"link",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"optionsVisible",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"backendErrors",null),Object(Se.b)([Object(ke.f)({name:"shareLink",defaults:ht})],e)}(),gt=function(e){this.data=e},bt=function(){function e(e,t,n,l){this.actions$=e,this.toast=t,this.store=n,this.router=l,this.entriesDeleted(),this.entriesStarred(),this.entriesUnstarred(),this.entriesMoveFailed(),this.folderCreated(),this.entriesMoved(),this.entriesDeletedForever(),this.entriesRestoredFromTrash(),this.entryRenamed(),this.linkCopiedToClipboard(),this.notEnoughSpace(),this.loadingToast()}return e.prototype.entriesDeleted=function(){var e=this;this.actions$.pipe(Object(ke.i)(R)).subscribe(function(t){e.toast.open("Deleted "+t.deletedFiles.length+" items",{action:"UNDO"}).onAction().subscribe(function(){e.store.dispatch(new ae(t.deletedFiles))})})},e.prototype.entriesStarred=function(){var e=this;this.actions$.pipe(Object(ke.k)(pe)).subscribe(function(t){e.toast.open("Star added.",{action:"UNDO"}).onAction().subscribe(function(){e.store.dispatch(new fe(t.entries))})})},e.prototype.entriesUnstarred=function(){var e=this;this.actions$.pipe(Object(ke.k)(fe)).subscribe(function(t){e.toast.open("Star Removed.",{action:"UNDO"}).onAction().subscribe(function(){e.store.dispatch(new pe(t.entries))})})},e.prototype.entriesMoved=function(){var e=this;this.actions$.pipe(Object(ke.i)(F)).subscribe(function(t){e.toast.open("Moved "+t.entries.length+" items.",{action:"Undo"})})},e.prototype.entriesMoveFailed=function(){var e=this;this.actions$.pipe(Object(ke.i)(M)).subscribe(function(){e.toast.open("There was an issue with moving selected items.")})},e.prototype.folderCreated=function(){var e=this;this.actions$.pipe(Object(ke.i)(D)).subscribe(function(){e.toast.open("Folder created.")})},e.prototype.entriesDeletedForever=function(){var e=this;this.actions$.pipe(Object(ke.k)(N)).subscribe(function(t){e.toast.open("Permanently deleted "+t.entries.length+" items.")})},e.prototype.entriesRestoredFromTrash=function(){var e=this;this.actions$.pipe(Object(ke.k)(L)).subscribe(function(t){e.toast.open("Restored "+t.entries.length+" items.")})},e.prototype.entryRenamed=function(){var e=this;this.actions$.pipe(Object(ke.k)(P)).subscribe(function(t){e.toast.open(t.entry.name+" renamed to "+t.newName)})},e.prototype.linkCopiedToClipboard=function(){var e=this;this.actions$.pipe(Object(ke.k)(pt)).subscribe(function(){e.toast.open("Link copied to clipboard.")})},e.prototype.notEnoughSpace=function(){var e=this;this.actions$.pipe(Object(ke.k)(V)).subscribe(function(){e.toast.open("You are out of space. Try to delete some files.",{action:"Upgrade"}).onAction().subscribe(function(){e.router.navigate(["/billing/upgrade"])})})},e.prototype.loadingToast=function(){var e,t=this;this.actions$.pipe(Object(ke.k)(ye)).subscribe(function(n){e=t.toast.openComponent(gt,{duration:0,data:{message:n.message}})}),this.actions$.pipe(Object(ke.k)(_e)).subscribe(function(){e&&(e.dismiss(),e=null)})},e}(),vt=n("26FU"),yt=function(){function e(e,t,n){this.store=e,this.activeUploads=t,this.zone=n,this.minimized$=new vt.a(!1)}return e.prototype.ngOnDestroy=function(){this.activeUploads.reset()},e.prototype.toggleMinimized=function(){var e=this;this.zone.run(function(){e.minimized$.next(!e.minimized$.value)})},e.prototype.close=function(){this.store.dispatch(new J)},e.prototype.trackById=function(e,t){return t.id},e}(),_t={origin:"global",hasBackdrop:!1,position:{right:"10px",bottom:"10px"},mobilePosition:{left:0,bottom:0}},wt=function(){function e(e,t,n){var l=this;this.actions$=e,this.currentUser=t,this.overlayPanel=n,this.actions$.pipe(Object(ke.k)(K)).subscribe(function(){l.openUploadsPanel()}),this.actions$.pipe(Object(ke.k)(J)).subscribe(function(){l.closeUploadsPanel()}),this.currentUser.userChanged.subscribe(function(){l.closeUploadsPanel()})}return e.prototype.openUploadsPanel=function(){this.uploadPanelRef||(this.uploadPanelRef=this.overlayPanel.open(yt,_t))},e.prototype.closeUploadsPanel=function(){this.uploadPanelRef&&(this.uploadPanelRef.close(),this.uploadPanelRef=null)},e}(),Ot=n("/RwR"),xt=function(){function e(e,t,n,l){var i=this;this.actions$=e,this.dialog=t,this.zone=n,this.store=l,this.actions$.pipe(Object(ke.j)(te)).subscribe(function(e){i.zone.run(function(){i.dialog.open(e.dialog,e.data,e.config)})}),this.actions$.pipe(Object(ke.j)(ne)).subscribe(function(e){i.zone.run(function(){i.openConfirmDialog(e)})})}return e.prototype.openConfirmDialog=function(e){var t=this;this.dialog.open(Ot.a,e.data).beforeClose().subscribe(function(n){if(n)return t.store.dispatch(e.confirmAction)})},e}(),jt=function(){return function(e,t){var n=this;this.actions$=e,this.domCache=t,this.actions$.pipe(Object(ke.k)(ge)).subscribe(function(){n.domCache.scrollCont.scrollTo({top:0})})}}(),Ct=n("VnD/"),kt=function(){return function(e){var t=this;this.store=e,this.store.select(nt.activePage).pipe(Object(Ct.a)(function(e){return!!e})).subscribe(function(){t.store.dispatch(new Z)})}}(),Et=function(){function e(e,t,n){var l=this;this.store=e,this.actions$=t,this.currentUser=n,this.actions$.pipe(Object(ke.k)(Ne.d),Object(Ct.a)(function(e){return e.event.urlAfterRedirects.indexOf("drive")>-1}),Object(Ct.a)(function(){return l.currentUser.isLoggedIn()})).subscribe(function(){var e=l.getPageLoadAction();e&&l.store.dispatch(e)})}return e.prototype.getPageLoadAction=function(){var e=this.getPageUriParams();switch(e.pageName){case s.RECENT:return new y;case s.TRASH:return new O;case s.SHARES:return new w;case s.STARRED:return new j;case s.SEARCH:var t=this.store.selectSnapshot(Ne.e.state).root.firstChild.queryParams;return new x({type:t.type,query:t.query});case"s":return null;default:return new _(e.folderHash||"root")}},e.prototype.getPageUriParams=function(){var e=this.store.selectSnapshot(Ne.e.url).split("?")[0].split("/");return{pageName:(e=e.filter(function(e){return!!e}))[1],folderHash:e[2]}},e}(),St=function(){return function(e,t){var n=this;this.actions$=e,this.store=t,this.actions$.pipe(Object(ke.k)(fe)).pipe(Object(Ct.a)(function(){return n.store.selectSnapshot(nt.activePage).name===s.RECENT})).subscribe(function(e){n.store.dispatch(new he(e.entries))})}}(),Rt=[lt,it,bt,wt,xt,jt,kt,Et,St],It=Ce,Dt=function(e){var t={multiple:!0},n=e.getJson("drive.validation.allowed_extensions");return n&&(t.extensions=n.map(function(e){return"."+e})),t},Pt=function(){return function(e){var t=this;this.injector=e,Rt.forEach(function(e){return t.injector.get(e)})}}(),At=n("pMnS"),Tt=n("t68o"),Ft=n("v1l8"),Mt=n("xYTU"),Nt=n("NcP4"),Lt=n("Rd8u"),Vt=n("Mr+X"),Ut=n("SMsm"),zt=n("gIcY"),Bt=n("Ip0R"),$t=n("bujt"),qt=n("UodH"),Wt=n("dWZg"),Ht=n("lLAP"),Gt=n("wFw1"),Yt=function(){function e(e){this.links=e,this.passwordControl=new zt.h,this.passwordError$=new vt.a(!1),this.passwordValid=new o.EventEmitter(null)}return e.prototype.submitPassword=function(){var e=this;this.links.checkPassword(this.link.id,this.passwordControl.value).subscribe(function(t){e.handlePasswordCheck(t.matches)},function(){})},e.prototype.handlePasswordCheck=function(e){this.passwordError$.next(!e),e&&this.passwordValid.emit(this.passwordControl.value)},e}(),Zt=o["\u0275crt"]({encapsulation:2,styles:[["link-preview-password-panel{display:flex;background-color:#fff;color:rgba(0,0,0,.87);padding:25px;border-radius:3px;position:absolute;top:0;left:0;right:0;bottom:0;width:500px;height:192px;max-width:90%;max-height:90%;margin:auto}link-preview-password-panel .content{flex:1 1 auto}link-preview-password-panel .content .message{margin-bottom:8px}link-preview-password-panel .button-container{display:flex;align-items:center;margin-top:10px}link-preview-password-panel .button-container button{margin-left:auto}link-preview-password-panel .mat-icon{width:140px;height:140px;flex:0 0 140px;margin-right:10px;margin-left:-25px}"]],data:{}});function Xt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"div",[["class","error"],["trans",""]],null,null,null,null,null)),o["\u0275did"](1,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Password does not match."]))],null,null)}function Kt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","password-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](1,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,37,"form",[["class","content"],["ngNativeValidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var l=!0,i=e.component;return"submit"===t&&(l=!1!==o["\u0275nov"](e,4).onSubmit(n)&&l),"reset"===t&&(l=!1!==o["\u0275nov"](e,4).onReset()&&l),"ngSubmit"===t&&(l=!1!==i.submitPassword()&&l),l},null,null)),o["\u0275did"](4,4210688,null,0,zt.t,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),o["\u0275prd"](2048,null,zt.c,null,[zt.t]),o["\u0275did"](6,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](8,0,null,null,2,"div",[["class","message"],["trans",""]],null,null,null,null,null)),o["\u0275did"](9,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["The link you are trying to access is password protected."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](12,0,null,null,15,"div",[["class","input-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](14,0,null,null,2,"label",[["class","hidden"],["for","password"],["trans",""]],null,null,null,null,null)),o["\u0275did"](15,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Password"])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](18,0,null,null,8,"input",[["id","password"],["placeholder","Password"],["required",""],["trans-placeholder",""],["type","password"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,19)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,19).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,19)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,19)._compositionEnd(n.target.value)&&l),l},null,null)),o["\u0275did"](19,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275did"](20,16384,null,0,zt.x,[],{required:[0,"required"]},null),o["\u0275prd"](1024,null,zt.o,function(e){return[e]},[zt.x]),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[zt.d]),o["\u0275did"](23,540672,null,0,zt.i,[[6,zt.o],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](25,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](26,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](29,0,null,null,10,"div",[["class","button-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,2,null,Xt)),o["\u0275did"](32,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](35,0,null,null,3,"button",[["color","primary"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,$t.d,$t.b)),o["\u0275did"](36,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](37,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{color:[0,"color"]},null),(e()(),o["\u0275ted"](-1,0,["Enter"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,"password-custom"),e(t,20,0,""),e(t,23,0,n.passwordControl),e(t,32,0,o["\u0275unv"](t,32,0,o["\u0275nov"](t,33).transform(n.passwordError$))),e(t,37,0,"primary")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).inline),e(t,3,0,o["\u0275nov"](t,6).ngClassUntouched,o["\u0275nov"](t,6).ngClassTouched,o["\u0275nov"](t,6).ngClassPristine,o["\u0275nov"](t,6).ngClassDirty,o["\u0275nov"](t,6).ngClassValid,o["\u0275nov"](t,6).ngClassInvalid,o["\u0275nov"](t,6).ngClassPending),e(t,18,0,o["\u0275nov"](t,20).required?"":null,o["\u0275nov"](t,25).ngClassUntouched,o["\u0275nov"](t,25).ngClassTouched,o["\u0275nov"](t,25).ngClassPristine,o["\u0275nov"](t,25).ngClassDirty,o["\u0275nov"](t,25).ngClassValid,o["\u0275nov"](t,25).ngClassInvalid,o["\u0275nov"](t,25).ngClassPending),e(t,35,0,o["\u0275nov"](t,37).disabled||null,"NoopAnimations"===o["\u0275nov"](t,37)._animationMode)})}var Jt=n("ZYCi"),Qt=["audio","video","text","pdf","archive","folder","shared-folder","image"],en=function(){function e(){}return e.prototype.ngOnChanges=function(){-1===Qt.indexOf(this.type)&&(this.type="default")},e}(),tn=o["\u0275crt"]({encapsulation:2,styles:[["file-icon{display:inline-block;flex-shrink:0;width:24px;height:24px}file-icon>.mat-icon{width:100%;height:100%}"]],data:{}});function nn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,2,"mat-icon",[["class","file-color mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](1,278528,null,0,Bt.NgClass,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275did"](2,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null)],function(e,t){var n=t.component;e(t,1,0,"file-color",n.type+"-file"),e(t,2,0,n.type+"-file-custom")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).inline)})}var ln=function(){function e(e,t){this.previewFiles=e,this.settings=t,this.showLogo=!1,this.disableDownload=!1,this.showCloseButton=!1,this.closed=new o.EventEmitter}return e.prototype.downloadFiles=function(){this.previewFiles.download.next()},e}(),on=n("K9Ia"),rn=n("4c35"),an=new o.InjectionToken("CURRENT_PREVIEW_FILE"),sn=function(){function e(e,t,n,l,i){this.file=e,this.transformer=t,this.settings=n,this.http=l,this.sanitizer=i,this.download=new o.EventEmitter}return e.prototype.getSrc=function(){return this.settings.getBaseUrl()+this.transformer(this.file.id)},e.prototype.getSafeSrc=function(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.getSrc())},e.prototype.getContents=function(){return this.http.get(this.getSrc(),null,{responseType:"text"})},e}(),un=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return un(t,e),t}(sn),dn=new o.InjectionToken("PREVIEW_URL_TRANSFORMER",{factory:function(){return function(e){return"secure/uploads/"+e}},providedIn:"root"}),pn=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),fn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="preview-object",t.content=new vt.a(""),t}return pn(t,e),t.prototype.ngOnInit=function(){var e=this;this.getContents().subscribe(function(t){return e.content.next(t)})},t}(sn),hn=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.invalidMedia=!1,t}return hn(t,e),t.prototype.ngOnInit=function(){this.invalidMedia=!this.canPlayVideo(),this.invalidMedia||(this.player().src=this.getSrc(),this.player().play())},t.prototype.canPlayVideo=function(){return!!this.player().canPlayType(this.file.mime)},t.prototype.player=function(){return this.playerEl.nativeElement},t}(sn),gn=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gn(t,e),t}(mn),vn=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vn(t,e),t}(sn),_n=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),wn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="preview-object",t}return _n(t,e),t}(sn),On=new o.InjectionToken("AVAILABLE_PREVIEWS"),xn=function(){return function(){this.text=fn,this.video=bn,this.audio=mn,this.image=yn,this.pdf=wn}}(),jn=function(){function e(e,t){this.availablePreviews=e,this.injector=t,this.files=[],this.portal=new vt.a(null),this.meta=new vt.a({}),this.previewUriTransformer=null,this.download=new on.a}return e.prototype.pagination=function(){return this.meta.pipe(Object(Ct.a)(function(e){return e&&!!e.entry}))},e.prototype.getCurrent=function(){return this.meta.value.entry},e.prototype.getAllEntries=function(){return this.files},e.prototype.getPortal=function(){return this.portal.asObservable()},e.prototype.showNext=function(){this.meta.value.haveNext&&(this.updateMeta("next"),this.updatePortal())},e.prototype.showPrevious=function(){this.meta.value.havePrevious&&(this.updateMeta("previous"),this.updatePortal())},e.prototype.updateMeta=function(e){var t=0;if(e){var n=this.meta.value.pointer;t="next"===e?n+1:n-1}this.meta.next({pointer:t,entry:this.files[t],total:this.files.length,haveNext:t+1<this.files.length,havePrevious:t-1>-1})},e.prototype.updatePortal=function(){var e=this.getCurrent();this.portal.next(new rn.d(e&&this.availablePreviews[e.type]||cn,null,this.createInjector()))},e.prototype.set=function(e){e&&0!==e.length&&(this.files=e.filter(function(e){return"folder"!==e.type}),this.updateMeta(),this.updatePortal())},e.prototype.createInjector=function(){var e=new WeakMap;return e.set(an,this.getCurrent()),this.previewUriTransformer&&e.set(dn,this.previewUriTransformer),new rn.f(this.injector,e)},e.prototype.destroy=function(){this.meta.next({}),this.files=null,this.portal.next(null)},e.prototype.setPreviewUriTransformer=function(e){this.previewUriTransformer=e},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(On),o.inject(o.INJECTOR))},token:e,providedIn:"root"}),e}(),Cn=o["\u0275crt"]({encapsulation:2,styles:[["file-preview-toolbar{position:fixed;top:0;left:0;display:flex;width:100%;align-items:center;color:#fff;height:60px;padding:0 15px;background:linear-gradient(to bottom,rgba(0,0,0,.65) 0,transparent 100%);z-index:10}file-preview-toolbar .entry-name{display:block;margin-right:25px;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}file-preview-toolbar .entry-name file-icon{display:inline-block;vertical-align:bottom;margin-right:5px}@media only screen and (min-width:550px){file-preview-toolbar .entry-name{max-width:calc(50% - 77.5px)}file-preview-toolbar .navigation{position:absolute;left:50%;top:50%;margin-right:-50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}}@media only screen and (max-width:550px){file-preview-toolbar{padding:0 5px}file-preview-toolbar .navigation{position:fixed;bottom:10px;left:5px}}file-preview-toolbar .actions{margin-left:auto;white-space:nowrap}file-preview-toolbar .actions a,file-preview-toolbar .actions button{margin:0 5px}file-preview-toolbar .close-button{margin-right:25px}file-preview-toolbar .logo{position:fixed;bottom:15px;right:15px;opacity:.2;width:150px;height:auto}file-preview-toolbar .logo img{width:100%;height:auto}file-preview-toolbar .mat-icon-button[disabled][disabled]{color:#737373}"]],data:{}});function kn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"button",[["class","back-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.closed.emit(!0)&&l),l},$t.d,$t.b)),o["\u0275did"](1,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](3,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","arrow-back"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](4,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n"]))],function(e,t){e(t,4,0,"arrow-back")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).disabled||null,"NoopAnimations"===o["\u0275nov"](t,1)._animationMode),e(t,3,0,o["\u0275nov"](t,4).inline)})}function En(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,21,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,18,"div",[["class","navigation"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](4,0,null,null,5,"button",[["class","previous"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.previewFiles.showPrevious()&&l),l},$t.d,$t.b)),o["\u0275did"](5,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275eld"](7,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","keyboard-arrow-left"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](8,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n\n            "])),(e()(),o["\u0275eld"](11,0,null,null,1,"span",[["class","meta"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[""," of ",""])),(e()(),o["\u0275ted"](-1,null,["\n\n            "])),(e()(),o["\u0275eld"](14,0,null,null,5,"button",[["class","next"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.previewFiles.showNext()&&l),l},$t.d,$t.b)),o["\u0275did"](15,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275eld"](17,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","keyboard-arrow-right"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](18,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,5,0,!t.context.ngIf.havePrevious),e(t,8,0,"keyboard-arrow-left"),e(t,15,0,!t.context.ngIf.haveNext),e(t,18,0,"keyboard-arrow-right")},function(e,t){e(t,4,0,o["\u0275nov"](t,5).disabled||null,"NoopAnimations"===o["\u0275nov"](t,5)._animationMode),e(t,7,0,o["\u0275nov"](t,8).inline),e(t,12,0,t.context.ngIf.pointer+1,t.context.ngIf.total),e(t,14,0,o["\u0275nov"](t,15).disabled||null,"NoopAnimations"===o["\u0275nov"](t,15)._animationMode),e(t,17,0,o["\u0275nov"](t,18).inline)})}function Sn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,23,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,4,"div",[["class","entry-name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](4,0,null,null,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](5,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](6,null,["\n        ","\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275and"](16777216,null,null,2,null,En)),o["\u0275did"](9,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](12,0,null,null,10,"div",[["class","actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](14,0,null,null,5,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.downloadFiles()&&l),l},$t.d,$t.b)),o["\u0275did"](15,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](17,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","file-download"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](18,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),o["\u0275ncd"](null,0),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.ngIf.entry.type),e(t,9,0,o["\u0275unv"](t,9,0,o["\u0275nov"](t,10).transform(n.previewFiles.pagination()))),e(t,15,0,n.disableDownload),e(t,18,0,"file-download")},function(e,t){e(t,6,0,t.context.ngIf.entry.name),e(t,14,0,o["\u0275nov"](t,15).disabled||null,"NoopAnimations"===o["\u0275nov"](t,15)._animationMode),e(t,17,0,o["\u0275nov"](t,18).inline)})}function Rn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.settings.getBaseUrl(!0)+n.settings.get("branding.logo_light"))})}function In(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"a",[["class","logo"],["routerLink","/drive"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l},null,null)),o["\u0275did"](1,671744,null,0,Jt.r,[Jt.o,Jt.a,Bt.LocationStrategy],{routerLink:[0,"routerLink"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Rn)),o["\u0275did"](4,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,"/drive"),e(t,4,0,n.showLogo&&n.settings.get("branding.logo_light"))},function(e,t){e(t,0,0,o["\u0275nov"](t,1).target,o["\u0275nov"](t,1).href)})}function Dn(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,kn)),o["\u0275did"](1,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,Sn)),o["\u0275did"](4,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,In)),o["\u0275did"](8,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n.showCloseButton),e(t,4,0,o["\u0275unv"](t,4,0,o["\u0275nov"](t,5).transform(n.previewFiles.pagination()))),e(t,8,0,n.showLogo&&n.settings.has("branding.logo_light"))},null)}var Pn=n("INnT"),An=n("5o4b"),Tn=o["\u0275crt"]({encapsulation:2,styles:[["ad-host{display:block;align-items:center;justify-content:center;max-width:100%;overflow:hidden}ad-host:empty{display:none}ad-host.margin-bottom{margin-bottom:15px}ad-host.margin-top{margin-top:15px}"]],data:{}});function Fn(e){return o["\u0275vid"](2,[],null,null)}var Mn=function(){function e(e){this.previewFiles=e}return e.prototype.ngOnChanges=function(e){this.previewFiles.set(this.files)},e.prototype.ngOnDestroy=function(){this.previewFiles.destroy(),this.downloadSub&&this.downloadSub.unsubscribe()},e.prototype.test=function(e){var t=this;this.downloadSub&&this.downloadSub.unsubscribe(),this.downloadSub=e.instance.download.subscribe(function(){t.previewFiles.download.next()})},e}(),Nn=o["\u0275crt"]({encapsulation:2,styles:[["preview-container{display:flex;width:100%;min-height:100%;align-items:center;justify-content:center;position:relative;overflow:hidden}preview-container>*{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto}"]],data:{}});function Ln(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](0,null,null,0))],null,null)}function Vn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,function(e,t,n){var l=!0;return"attached"===t&&(l=!1!==e.component.test(n)&&l),l},Ln)),o["\u0275did"](3,212992,null,0,rn.c,[o.ComponentFactoryResolver,o.ViewContainerRef],{portal:[0,"portal"]},{attached:"attached"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.ngIf)},null)}function Un(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,2,null,Vn)),o["\u0275did"](1,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.previewFiles.getPortal())))},null)}var zn=n("67Y/"),Bn=function(){function e(e,t,n,l,i,o,r,a){this.store=e,this.route=t,this.links=n,this.previewFiles=l,this.settings=i,this.currentUser=o,this.router=r,this.toast=a,this.link$=new vt.a(null),this.entries$=new vt.a([]),this.passwordPanelVisible$=new vt.a(!1)}return Object.defineProperty(e.prototype,"entryAlreadyImported$",{get:function(){var e=this.currentUser.get("id");return this.link$.pipe(Object(Ct.a)(function(e){return!!e&&!!e.entry&&!!e.entry.users}),Object(zn.a)(function(e){return e.entry}),Object(zn.a)(function(t){return!!t.users.find(function(t){return t.id===e})}))},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.bindToDownload(),this.route.params.subscribe(function(t){e.links.findByHash(t.hash,{withEntries:!0}).subscribe(function(t){e.link$.next(t.link),e.link$.value.password?e.togglePasswordPanel(!0):(e.togglePasswordPanel(!1),e.showPreview())},function(){e.router.navigate(["/404"])})})},e.prototype.ngOnDestroy=function(){this.downloadSub.unsubscribe()},e.prototype.import=function(){var e=this;this.links.importEntry(this.link$.value.id,this.password).subscribe(function(t){var n=e.link$.value;n.entry.users=t.users,e.link$.next(n),e.toast.open('"'+n.entry.name+'" imported into your drive.')})},e.prototype.togglePasswordPanel=function(e){this.passwordPanelVisible$.next(e)},e.prototype.bindToDownload=function(){var e=this;this.downloadSub=this.previewFiles.download.subscribe(function(){var t=e.link$.value;e.store.dispatch(new de([t.entry],t,e.password))})},e.prototype.showPreview=function(){var e=this.link$.value;this.previewFiles.setPreviewUriTransformer(this.urlTransformer.bind(this)),this.setEntries(e.entry)},e.prototype.setEntries=function(e){var t=e.children.length?e.children:[e];t=t.filter(function(e){return"folder"!==e.type}),this.entries$.next(t)},e.prototype.setValidPassword=function(e){this.showPreview(),this.togglePasswordPanel(!1),this.password=e},e.prototype.urlTransformer=function(e){var t="secure/uploads/"+e+"?shareable_link="+this.link$.value.id;return this.password&&(t+="&password="+this.password),t},e}(),$n=o["\u0275crt"]({encapsulation:2,styles:[["link-preview-container{display:block;width:100%;height:100%;background-color:rgba(0,0,0,.9);color:#fff;overflow:auto;position:relative}link-preview-container preview-container{margin:60px 0;min-height:calc(100% - 120px)}link-preview-container ad-host{margin-top:80px}"]],data:{}});function qn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"link-preview-password-panel",[],null,[[null,"passwordValid"]],function(e,t,n){var l=!0;return"passwordValid"===t&&(l=!1!==e.component.setValidPassword(n)&&l),l},Kt,Zt)),o["\u0275did"](1,49152,null,0,Yt,[ot],{link:[0,"link"]},{passwordValid:"passwordValid"}),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.link$)))},null)}function Wn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"a",[["color","primary"],["mat-flat-button",""],["routerLink","/login"],["trans",""]],[[1,"tabindex",0],[1,"disabled",0],[1,"aria-disabled",0],[2,"_mat-animation-noopable",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,2)._haltDisabledEvents(n)&&l),"click"===t&&(l=!1!==o["\u0275nov"](e,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l},$t.c,$t.a)),o["\u0275did"](1,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](2,180224,null,0,qt.a,[Wt.a,Ht.h,o.ElementRef,[2,Gt.a]],{color:[0,"color"]},null),o["\u0275did"](3,671744,null,0,Jt.r,[Jt.o,Jt.a,Bt.LocationStrategy],{routerLink:[0,"routerLink"]},null),(e()(),o["\u0275ted"](-1,0,["Sign In"]))],function(e,t){e(t,2,0,"primary"),e(t,3,0,"/login")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).disabled?-1:o["\u0275nov"](t,2).tabIndex||0,o["\u0275nov"](t,2).disabled||null,o["\u0275nov"](t,2).disabled.toString(),"NoopAnimations"===o["\u0275nov"](t,2)._animationMode,o["\u0275nov"](t,3).target,o["\u0275nov"](t,3).href)})}function Hn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"button",[["color","primary"],["mat-flat-button",""],["trans",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.import()&&l),l},$t.d,$t.b)),o["\u0275did"](1,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](2,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{color:[0,"color"]},null),(e()(),o["\u0275ted"](-1,0,["Import"]))],function(e,t){e(t,2,0,"primary")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).disabled||null,"NoopAnimations"===o["\u0275nov"](t,2)._animationMode)})}function Gn(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](1,0,null,null,10,"file-preview-toolbar",[],null,null,null,Dn,Cn)),o["\u0275did"](2,49152,null,0,ln,[jn,Ye.a],{showLogo:[0,"showLogo"],disableDownload:[1,"disableDownload"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275and"](16777216,null,0,1,null,Wn)),o["\u0275did"](6,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275and"](16777216,null,0,2,null,Hn)),o["\u0275did"](9,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](13,0,null,null,1,"ad-host",[["slot","ads.filePreview"]],[[8,"id",0]],null,null,Fn,Tn)),o["\u0275did"](14,114688,null,0,Pn.a,[o.ElementRef,o.Renderer2,Ye.a,De.a,An.a],{slot:[0,"slot"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](16,0,null,null,2,"preview-container",[],[[2,"has-ad",null]],null,null,Un,Nn)),o["\u0275did"](17,704512,null,0,Mn,[jn],{files:[0,"files"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n,l=t.component;e(t,2,0,!0,!(null!=(n=o["\u0275unv"](t,2,1,o["\u0275nov"](t,3).transform(l.link$)))&&n.allow_download)),e(t,6,0,!l.currentUser.isLoggedIn()),e(t,9,0,!o["\u0275unv"](t,9,0,o["\u0275nov"](t,10).transform(l.entryAlreadyImported$))&&l.currentUser.isLoggedIn()),e(t,14,0,"ads.filePreview"),e(t,17,0,o["\u0275unv"](t,17,0,o["\u0275nov"](t,18).transform(l.entries$)))},function(e,t){var n=t.component;e(t,13,0,o["\u0275nov"](t,14).randomId),e(t,16,0,n.settings.has("ads.filePreview"))})}function Yn(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,2,null,qn)),o["\u0275did"](1,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](0,[["filePreview",2]],null,0,null,Gn))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.passwordPanelVisible$)),o["\u0275nov"](t,4))},null)}var Zn=o["\u0275ccf"]("link-preview-container",Bn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"link-preview-container",[],null,null,null,Yn,$n)),o["\u0275prd"](512,null,jn,jn,[On,o.Injector]),o["\u0275did"](2,245760,null,0,Bn,[ke.h,Jt.a,ot,jn,Ye.a,De.a,Jt.o,Ze.a],null,null)],function(e,t){e(t,2,0)},null)},{},{},[]),Xn=n("ZY2f"),Kn=n("N2vX"),Jn=n("MlvX"),Qn=n("Wf4p"),el=n("wXSB"),tl=n("4tE/"),nl=n("eDkP"),ll=n("Fzqc"),il=n("qAlS"),ol=n("Rn7m"),rl=[{name:"Folders",type:"folder"},{name:"Images",type:"image"},{name:"Text documents",type:"text"},{name:"Video",type:"video"},{name:"Audio",type:"audio"},{name:"PDFs",type:"pdf"}],al=n("Gi3i"),sl=n("15JJ"),ul=n("ad02"),cl=n("F/XL"),dl=function(){function e(e,t){var n=this;this.store=e,this.driveApi=t,this.defaultResults=[],this.formControl=new zt.h,this.results=new vt.a([]),this.displayFn=function(){return n.lastQuery||""},this.setDefaultResults()}return e.prototype.ngOnInit=function(){var e=this;this.formControl.valueChanges.pipe(Object(al.a)(300),Object(ul.a)(),Object(Ct.a)(function(e){return"string"==typeof e}),Object(sl.a)(function(t){return e.search(t)})).subscribe(function(t){e.results.next(t.data.map(function(e){return{type:"entry",content:e}}))})},e.prototype.executeAction=function(e){var t=e.option.value;"entryType"===t.type?(this.openSearchPage({type:t.content.type}),this.resetForm()):this.store.dispatch(new S(t.content)),this.trigger.nativeElement.blur()},e.prototype.openSearchPage=function(e){this.store.dispatch(new H(e))},e.prototype.search=function(e){return this.lastQuery=e,!e||e.length<3?Object(cl.a)({data:[]}):this.driveApi.getCurrentUserEntries({query:e,per_page:8})},e.prototype.setDefaultResults=function(){this.defaultResults=rl.map(function(e){return{type:"entryType",content:e}}),this.results.next(this.defaultResults)},e.prototype.resetForm=function(){this.formControl.reset(),this.setDefaultResults(),this.lastQuery=null},e}(),pl=o["\u0275crt"]({encapsulation:2,styles:[["main-searchbar{display:block;width:100%;max-width:700px;background-color:#fff;border:1px solid #eff1f2;position:relative;color:#656565;border-radius:3px}main-searchbar .input-container input{font-size:1.6rem;padding:0 50px;outline:0;border:none;transition:background-color .1s ease-in}main-searchbar .input-container input:focus{background-color:#fff;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);border-bottom-left-radius:0;border-bottom-right-radius:0}main-searchbar .search-icon{position:absolute;top:2px;left:6px}main-searchbar .cancel-icon{position:absolute;top:3px;right:6px}.file-types-autocomplete.mat-autocomplete-panel{max-height:350px;color:rgba(0,0,0,.87);background-color:#fff}.file-types-autocomplete.mat-autocomplete-panel .mat-option{line-height:normal;margin-bottom:5px;font-size:1.4rem}.file-types-autocomplete.mat-autocomplete-panel .mat-option-text{display:flex;align-items:center}.file-types-autocomplete.mat-autocomplete-panel .mat-option-text .date,.file-types-autocomplete.mat-autocomplete-panel .mat-option-text file-icon{-ms-grid-row-align:start;align-self:start}.file-types-autocomplete.mat-autocomplete-panel .mat-option-text .owner{color:rgba(0,0,0,.54)}.file-types-autocomplete.mat-autocomplete-panel .mat-option-text file-icon{margin-right:10px}.file-types-autocomplete.mat-autocomplete-panel .mat-option-text .date{margin-left:auto}"]],data:{}});function fl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"button",[["class","cancel-icon"],["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.resetForm()&&l),l},$t.d,$t.b)),o["\u0275did"](1,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](3,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](4,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "]))],function(e,t){e(t,4,0,"close")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).disabled||null,"NoopAnimations"===o["\u0275nov"](t,1)._animationMode),e(t,3,0,o["\u0275nov"](t,4).inline)})}function hl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","owner"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,null==t.parent.context.$implicit.content.users[0]?null:t.parent.context.$implicit.content.users[0].display_name)})}function ml(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"div",[["class","date"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""])),o["\u0275ppd"](2,1)],null,function(e,t){e(t,1,0,o["\u0275unv"](t,1,0,e(t,2,0,o["\u0275nov"](t.parent.parent,0),t.parent.context.$implicit.content.updated_at)))})}function gl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,20,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,17,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,3)._selectViaInteraction()&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,3)._handleKeydown(n)&&l),l},Jn.c,Jn.a)),o["\u0275did"](3,8568832,[[2,4]],0,Qn.t,[o.ElementRef,o.ChangeDetectorRef,[2,Qn.l],[2,Qn.s]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](5,0,null,0,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](6,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](8,0,null,0,7,"div",[["class","meta"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](10,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275and"](16777216,null,null,1,null,hl)),o["\u0275did"](14,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275and"](16777216,null,0,1,null,ml)),o["\u0275did"](18,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,t.context.$implicit),e(t,6,0,t.context.$implicit.content.type),e(t,14,0,t.context.$implicit.content.users),e(t,18,0,t.context.$implicit.content.updated_at)},function(e,t){e(t,2,0,o["\u0275nov"](t,3)._getTabIndex(),o["\u0275nov"](t,3).selected,o["\u0275nov"](t,3).multiple,o["\u0275nov"](t,3).active,o["\u0275nov"](t,3).id,o["\u0275nov"](t,3).selected.toString(),o["\u0275nov"](t,3).disabled.toString(),o["\u0275nov"](t,3).disabled),e(t,11,0,t.context.$implicit.content.name)})}function bl(e){return o["\u0275vid"](2,[o["\u0275pid"](0,el.a,[Ye.a,o.LOCALE_ID]),o["\u0275qud"](402653184,1,{trigger:0}),(e()(),o["\u0275eld"](2,0,null,null,24,"form",[["class","input-container"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var l=!0,i=e.component;return"submit"===t&&(l=!1!==o["\u0275nov"](e,4).onSubmit(n)&&l),"reset"===t&&(l=!1!==o["\u0275nov"](e,4).onReset()&&l),"ngSubmit"===t&&(l=!1!==i.openSearchPage({query:i.formControl.value})&&l),l},null,null)),o["\u0275did"](3,16384,null,0,zt.C,[],null,null),o["\u0275did"](4,4210688,null,0,zt.t,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),o["\u0275prd"](2048,null,zt.c,null,[zt.t]),o["\u0275did"](6,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](8,16777216,[[1,0],["trigger",1]],null,7,"input",[["placeholder","Search Drive"],["trans-placeholder",""],["type","text"]],[[1,"autocomplete",0],[1,"role",0],[1,"aria-autocomplete",0],[1,"aria-activedescendant",0],[1,"aria-expanded",0],[1,"aria-owns",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focusin"],[null,"keydown"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,9)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,9).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,9)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,9)._compositionEnd(n.target.value)&&l),"focusin"===t&&(l=!1!==o["\u0275nov"](e,10)._handleFocus()&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,10)._onTouched()&&l),"input"===t&&(l=!1!==o["\u0275nov"](e,10)._handleInput(n)&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,10)._handleKeydown(n)&&l),l},null,null)),o["\u0275did"](9,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275did"](10,147456,null,0,tl.f,[o.ElementRef,nl.c,o.ViewContainerRef,o.NgZone,o.ChangeDetectorRef,tl.b,[2,ll.b],[8,null],[2,Bt.DOCUMENT],il.e],{autocomplete:[0,"autocomplete"]},null),o["\u0275prd"](1024,null,zt.p,function(e,t){return[e,t]},[zt.d,tl.f]),o["\u0275did"](12,540672,null,0,zt.i,[[8,null],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](14,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](15,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](17,0,null,null,5,"button",[["class","search-icon"],["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,$t.d,$t.b)),o["\u0275did"](18,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](20,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","search"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](21,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,fl)),o["\u0275did"](25,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](28,0,null,null,9,"mat-autocomplete",[["class","file-types-autocomplete mat-elevation-z1 mat-autocomplete"]],null,[[null,"optionSelected"]],function(e,t,n){var l=!0;return"optionSelected"===t&&(l=!1!==e.component.executeAction(n)&&l),l},ol.b,ol.a)),o["\u0275prd"](6144,null,Qn.l,null,[tl.d]),o["\u0275did"](30,1097728,[["auto",4]],2,tl.d,[o.ChangeDetectorRef,o.ElementRef,tl.a],{displayWith:[0,"displayWith"],classList:[1,"classList"]},{optionSelected:"optionSelected"}),o["\u0275qud"](603979776,2,{options:1}),o["\u0275qud"](603979776,3,{optionGroups:1}),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275and"](16777216,null,0,2,null,gl)),o["\u0275did"](35,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n"]))],function(e,t){var n=t.component;e(t,10,0,o["\u0275nov"](t,30)),e(t,12,0,n.formControl),e(t,21,0,"search"),e(t,25,0,n.formControl.value),e(t,30,0,n.displayFn,"file-types-autocomplete mat-elevation-z1"),e(t,35,0,o["\u0275unv"](t,35,0,o["\u0275nov"](t,36).transform(n.results)))},function(e,t){e(t,2,0,o["\u0275nov"](t,6).ngClassUntouched,o["\u0275nov"](t,6).ngClassTouched,o["\u0275nov"](t,6).ngClassPristine,o["\u0275nov"](t,6).ngClassDirty,o["\u0275nov"](t,6).ngClassValid,o["\u0275nov"](t,6).ngClassInvalid,o["\u0275nov"](t,6).ngClassPending),e(t,8,1,[o["\u0275nov"](t,10).autocompleteAttribute,o["\u0275nov"](t,10).autocompleteDisabled?null:"combobox",o["\u0275nov"](t,10).autocompleteDisabled?null:"list",null==o["\u0275nov"](t,10).activeOption?null:o["\u0275nov"](t,10).activeOption.id,o["\u0275nov"](t,10).autocompleteDisabled?null:o["\u0275nov"](t,10).panelOpen.toString(),o["\u0275nov"](t,10).autocompleteDisabled||!o["\u0275nov"](t,10).panelOpen?null:null==o["\u0275nov"](t,10).autocomplete?null:o["\u0275nov"](t,10).autocomplete.id,o["\u0275nov"](t,14).ngClassUntouched,o["\u0275nov"](t,14).ngClassTouched,o["\u0275nov"](t,14).ngClassPristine,o["\u0275nov"](t,14).ngClassDirty,o["\u0275nov"](t,14).ngClassValid,o["\u0275nov"](t,14).ngClassInvalid,o["\u0275nov"](t,14).ngClassPending]),e(t,17,0,o["\u0275nov"](t,18).disabled||null,"NoopAnimations"===o["\u0275nov"](t,18)._animationMode),e(t,20,0,o["\u0275nov"](t,21).inline)})}var vl=n("c4Wm"),yl=n("Nsh5"),_l=function(){function e(e){this.el=e,this.config={},this.filesSelected=new o.EventEmitter}return e.prototype.ngOnInit=function(){var e=this;this.el.nativeElement.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),Object(Qe.a)(e.config).then(function(t){t&&t.length&&e.filesSelected.emit(t)})})},e}(),wl=function(){function e(e,t,n,l,i){this.dialogRef=e,this.data=t,this.store=n,this.foldersApi=l,this.changeDetection=i,this.folderName=new zt.h,this.loading=new vt.a(!1),this.errors={}}return e.prototype.confirm=function(){var e=this;this.loading.next(!0);var t=this.store.selectSnapshot(nt.selectedFolderId),n=this.store.selectSnapshot(nt.activeFolder);return this.foldersApi.create({name:this.folderName.value,parent_id:t||(n?n.id:null)}).pipe(Object(Te.a)(function(){return e.loading.next(!1)})).subscribe(function(t){e.setErrors(),e.store.dispatch(new D(t.folder)),e.close()},function(t){return e.setErrors(t)})},e.prototype.setErrors=function(e){this.errors=e?e.messages:{},this.changeDetection.detectChanges()},e.prototype.close=function(){this.dialogRef.close()},e}(),Ol=n("6blF"),xl=function(){function e(e,t,n){this.dialog=e,this.store=t,this.uploadInputConfig=n}return e.prototype.openNewFolderDialog=function(){this.dialog.open(wl)},e.prototype.openUploadsPanel=function(e){this.store.dispatch(new re(e))},Object(Se.b)([Object(ke.d)(nt.canUpload),Object(Se.d)("design:type",Ol.a)],e.prototype,"canUpload$",void 0),e}(),jl=n("QGXG"),Cl=new o.InjectionToken("DRIVE_UPLOAD_INPUT_CONFIG"),kl=o["\u0275crt"]({encapsulation:2,styles:[["sidebar-action-buttons{display:block;text-align:center}sidebar-action-buttons .new-folder-button{max-width:60px;min-width:auto}"]],data:{}});function El(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,11,"button",[["class","upload-button"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"filesSelected"]],function(e,t,n){var l=!0;return"filesSelected"===t&&(l=!1!==e.component.openUploadsPanel(n)&&l),l},$t.d,$t.b)),o["\u0275did"](1,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275did"](3,81920,null,0,_l,[o.ElementRef],{config:[0,"config"]},{filesSelected:"filesSelected"}),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](5,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","cloud-upload"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](6,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](8,0,null,0,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](9,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Upload"])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](13,0,null,null,6,"button",[["class","new-folder-button"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.openNewFolderDialog()&&l),l},$t.d,$t.b)),o["\u0275did"](14,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](17,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","create-new-folder"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](18,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.canUpload$)),"primary"),e(t,3,0,n.uploadInputConfig),e(t,6,0,"cloud-upload"),e(t,14,0,!o["\u0275unv"](t,14,0,o["\u0275nov"](t,15).transform(n.canUpload$)),"primary"),e(t,18,0,"create-new-folder")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).disabled||null,"NoopAnimations"===o["\u0275nov"](t,1)._animationMode),e(t,5,0,o["\u0275nov"](t,6).inline),e(t,13,0,o["\u0275nov"](t,14).disabled||null,"NoopAnimations"===o["\u0275nov"](t,14)._animationMode),e(t,17,0,o["\u0275nov"](t,18).inline)})}var Sl=n("bne5"),Rl=function(){function e(){this.subs=[]}return e.prototype.ngOnInit=function(){var e=this;this.dragging.subscribe(function(t){t?e.onDragStart():e.onDragEnd()})},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.onDragStart=function(){var e=this,t=Object(Sl.a)(this.el.nativeElement,"mouseenter").subscribe(function(){return e.onDragEnter()}),n=Object(Sl.a)(this.el.nativeElement,"mouseleave").subscribe(function(){return e.onDragLeave()});this.subs.push(t,n)},e.prototype.onDragEnter=function(){this.canDrop()&&(this.active=!0,this.el.nativeElement.classList.add("drag-over"))},e.prototype.onDragLeave=function(){this.active=!1,this.removeDragOverClass()},e.prototype.onDragEnd=function(){this.unsubscribe(),this.removeDragOverClass(),this.active&&this.canDrop()&&(this.executeAction(),this.active=!1)},e.prototype.unsubscribe=function(){this.subs.forEach(function(e){return e&&e.unsubscribe()})},e.prototype.removeDragOverClass=function(){this.el.nativeElement.classList.remove("drag-over")},Object(Se.b)([Object(ke.d)(nt.dragging),Object(Se.d)("design:type",Ol.a)],e.prototype,"dragging",void 0),e}(),Il=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),Dl=function(e){function t(t,n){var l=e.call(this)||this;return l.el=t,l.store=n,l}return Il(t,e),t.prototype.canDrop=function(){var e=this.store.selectSnapshot(nt.selectedEntries),t=this.folder;return("root"!==this.folder.id||null!==e[0].parent_id)&&!e.find(function(e){return e.path.indexOf(t.path)>-1})},t.prototype.executeAction=function(){return this.store.dispatch(new ee(this.folder.id))},t}(Rl),Pl=n("YlbQ"),Al=n("ny24"),Tl=n("t9fZ"),Fl=n("n6gG"),Ml=function(e){function t(t,n){var l=e.call(this)||this;return l.getLevel=t,l.isExpandable=n,l}return Object(Se.c)(t,e),t.prototype.getDescendants=function(e){for(var t=[],n=this.dataNodes.indexOf(e)+1;n<this.dataNodes.length&&this.getLevel(e)<this.getLevel(this.dataNodes[n]);n++)t.push(this.dataNodes[n]);return t},t.prototype.expandAll=function(){var e;(e=this.expansionModel).select.apply(e,this.dataNodes)},t}(function(){function e(){this.expansionModel=new Pl.b(!0)}return e.prototype.toggle=function(e){this.expansionModel.toggle(e)},e.prototype.expand=function(e){this.expansionModel.select(e)},e.prototype.collapse=function(e){this.expansionModel.deselect(e)},e.prototype.isExpanded=function(e){return this.expansionModel.isSelected(e)},e.prototype.toggleDescendants=function(e){this.expansionModel.isSelected(e)?this.collapseDescendants(e):this.expandDescendants(e)},e.prototype.collapseAll=function(){this.expansionModel.clear()},e.prototype.expandDescendants=function(e){var t,n=[e];n.push.apply(n,this.getDescendants(e)),(t=this.expansionModel).select.apply(t,n)},e.prototype.collapseDescendants=function(e){var t,n=[e];n.push.apply(n,this.getDescendants(e)),(t=this.expansionModel).deselect.apply(t,n)},e}()),Nl=function(e){this.template=e},Ll=function(){function e(e,t){this._differs=e,this._changeDetectorRef=t,this._onDestroy=new on.a,this._levels=new Map,this.viewChange=new vt.a({start:0,end:Number.MAX_VALUE})}return Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(this._dataDiffer=this._differs.find([]).create(this.trackBy),!this.treeControl)throw Error("Could not find a tree control for the tree.")},e.prototype.ngOnDestroy=function(){this._nodeOutlet.viewContainer.clear(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)},e.prototype.ngAfterContentChecked=function(){var e=this._nodeDefs.filter(function(e){return!e.when});if(e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()},e.prototype._switchDataSource=function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()},e.prototype._observeRenderChanges=function(){var e,t=this;if("function"==typeof this._dataSource.connect?e=this._dataSource.connect(this):this._dataSource instanceof Ol.a?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Object(cl.a)(this._dataSource)),!e)throw Error("A valid data source must be provided.");this._dataSubscription=e.pipe(Object(Al.a)(this._onDestroy)).subscribe(function(e){return t.renderNodeChanges(e)})},e.prototype.renderNodeChanges=function(e,t,n,l){var i=this;void 0===t&&(t=this._dataDiffer),void 0===n&&(n=this._nodeOutlet.viewContainer);var o=t.diff(e);o&&(o.forEachOperation(function(t,o,r){if(null==t.previousIndex)i.insertNode(e[r],r,n,l);else if(null==r)n.remove(o),i._levels.delete(t.item);else{var a=n.get(o);n.move(a,r)}}),this._changeDetectorRef.detectChanges())},e.prototype._getNodeDef=function(e,t){if(1===this._nodeDefs.length)return this._nodeDefs.first;var n=this._nodeDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultNodeDef;if(!n)throw Error("Could not find a matching node definition for the provided node data.");return n},e.prototype.insertNode=function(e,t,n,l){var i=this._getNodeDef(e,t),o=new function(e){this.$implicit=e}(e);o.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==l&&this._levels.has(l)?this._levels.get(l)+1:0,this._levels.set(e,o.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(i.template,o,t),Vl.mostRecentTreeNode&&(Vl.mostRecentTreeNode.data=e)},e}(),Vl=function(){function e(t,n){this._elementRef=t,this._tree=n,this._destroyed=new on.a,this.role="treeitem",e.mostRecentTreeNode=this}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this._setRoleFromData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._tree.treeControl.isExpanded(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):0},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._destroyed.next(),this._destroyed.complete()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._setRoleFromData=function(){var e=this;if(this._tree.treeControl.isExpandable)this.role=this._tree.treeControl.isExpandable(this._data)?"group":"treeitem";else{if(!this._tree.treeControl.getChildren)throw Error("Could not find functions for nested/flat tree in tree control.");var t=this._tree.treeControl.getChildren(this._data);Array.isArray(t)?this._setRoleFromChildren(t):t instanceof Ol.a&&t.pipe(Object(Al.a)(this._destroyed)).subscribe(function(t){return e._setRoleFromChildren(t)})}},e.prototype._setRoleFromChildren=function(e){this.role=e&&e.length?"group":"treeitem"},e.mostRecentTreeNode=null,e}(),Ul=function(){function e(e,t,n,l,i){var o=this;this._treeNode=e,this._tree=t,this._renderer=n,this._element=l,this._dir=i,this._destroyed=new on.a,this._indent=40,this._setPadding(),this._dir&&this._dir.change.pipe(Object(Al.a)(this._destroyed)).subscribe(function(){return o._setPadding()})}return Object.defineProperty(e.prototype,"level",{get:function(){return this._level},set:function(e){this._level=Object(Fl.e)(e),this._setPadding()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indent",{get:function(){return this._indent},set:function(e){this._indent=Object(Fl.e)(e),this._setPadding()},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._paddingIndent=function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,t=this._level||e;return t?t*this._indent+"px":null},e.prototype._setPadding=function(){var e=this._paddingIndent();this._renderer.setStyle(this._element.nativeElement,this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",e)},e}(),zl=function(){function e(e,t){this._tree=e,this._treeNode=t,this._recursive=!1}return Object.defineProperty(e.prototype,"recursive",{get:function(){return this._recursive},set:function(e){this._recursive=Object(Fl.c)(e)},enumerable:!0,configurable:!0}),e.prototype._toggle=function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()},e}(),Bl=function(){},$l=n("p0ib"),ql=function(e){this.viewContainer=e},Wl=Nl,Hl=function(e){function t(t,n,l){var i=e.call(this,t,n)||this;return i._elementRef=t,i._tree=n,i.role="treeitem",i.tabIndex=Number(l)||0,i}return Object(Se.c)(t,e),t}(Object(Qn.K)(Object(Qn.H)(Vl))),Gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Se.c)(t,e),t}(Wl),Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Se.c)(t,e),t}(Ul),Zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Se.c)(t,e),t}(Ll),Xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.recursive=!1,t}return Object(Se.c)(t,e),t}(zl),Kl=function(){},Jl=function(){function e(e,t,n,l){this.transformFunction=e,this.getLevel=t,this.isExpandable=n,this.getChildren=l}return e.prototype._flattenNode=function(e,t,n,l){var i=this,o=this.transformFunction(e,t);if(n.push(o),this.isExpandable(o)){var r=this.getChildren(e);Array.isArray(r)?this._flattenChildren(r,t,n,l):r.pipe(Object(Tl.a)(1)).subscribe(function(e){i._flattenChildren(e,t,n,l)})}return n},e.prototype._flattenChildren=function(e,t,n,l){var i=this;e.forEach(function(o,r){var a=l.slice();a.push(r!=e.length-1),i._flattenNode(o,t+1,n,a)})},e.prototype.flattenNodes=function(e){var t=this,n=[];return e.forEach(function(e){return t._flattenNode(e,0,n,[])}),n},e.prototype.expandFlattenedNodes=function(e,t){var n=this,l=[],i=[];return i[0]=!0,e.forEach(function(e){for(var o=!0,r=0;r<=n.getLevel(e);r++)o=o&&i[r];o&&l.push(e),n.isExpandable(e)&&(i[n.getLevel(e)+1]=t.isExpanded(e))}),l},e}(),Ql=function(e){function t(t,n,l){void 0===l&&(l=[]);var i=e.call(this)||this;return i.treeControl=t,i.treeFlattener=n,i._flattenedData=new vt.a([]),i._expandedData=new vt.a([]),i._data=new vt.a(l),i}return Object(Se.c)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this._data.value},set:function(e){this._data.next(e),this._flattenedData.next(this.treeFlattener.flattenNodes(this.data)),this.treeControl.dataNodes=this._flattenedData.value},enumerable:!0,configurable:!0}),t.prototype.connect=function(e){var t=this;return $l.a.apply(void 0,[e.viewChange,this.treeControl.expansionModel.onChange,this._flattenedData]).pipe(Object(zn.a)(function(){return t._expandedData.next(t.treeFlattener.expandFlattenedNodes(t._flattenedData.value,t.treeControl)),t._expandedData.value}))},t.prototype.disconnect=function(){},t}(Pl.a),ei=function(){function e(e,t,n){var l=this;this.el=e,this.contextMenu=t,this.disableContextMenu=!1,this.availableMenus={},n.forEach(function(e){Object.assign(l.availableMenus,e)})}return e.prototype.ngOnInit=function(){var e=this;this.el.nativeElement.addEventListener("contextmenu",function(t){t.preventDefault(),t.stopPropagation(),e.disableContextMenu||e.contextMenu.open(e.getMenuComponent(),t,{overlayX:"start",overlayY:"top",data:e.getMenuData()})})},e.prototype.getMenuComponent=function(){return"string"==typeof this.params?this.availableMenus[this.params]:this.availableMenus[this.params.type]},e.prototype.getMenuData=function(){return"string"==typeof this.params?{type:this.params}:this.params},e}(),ti=function(){function e(e){this.overlayRef=e}return e.prototype.close=function(){this.overlayRef&&this.overlayRef.dispose()},e.prototype.backdropClick=function(){return this.overlayRef.backdropClick()},e.prototype.attachments=function(){return this.overlayRef.attachments()},e.prototype.detachments=function(){return this.overlayRef.detachments()},e.prototype.backdropElement=function(){return this.overlayRef.backdropElement},e.prototype.contextMenuElement=function(){return this.overlayRef.overlayElement},e}(),ni=new o.InjectionToken("CONTEXT_MENU_DATA"),li=function(){function e(e,t,n,l,i){var o=this;this.router=e,this.zone=t,this.injector=n,this.resolver=l,this.overlay=i,this.router.events.pipe(Object(Ct.a)(function(e){return e instanceof Jt.g})).subscribe(function(){return o.close()})}return e.prototype.open=function(e,t,n){void 0===n&&(n={}),this.close();var l=this.createOverlay(t,n);this.openContextMenu=new ti(l);var i=new rn.f(this.injector,new WeakMap([[ni,n.data],[ti,this.openContextMenu]])),o=new rn.d(e,null,i);return l.attach(o),this.bindEventsToOverlay(),this.openContextMenu},e.prototype.close=function(){this.removeLastOrigin(),this.openContextMenu&&(this.openContextMenu.close(),this.openContextMenu=null)},e.prototype.createOverlay=function(e,t){return this.overlay.create({positionStrategy:this.getMenuPositionStrategy(e,t),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"context-menu-backdrop",panelClass:"context-menu-overlay"})},e.prototype.bindEventsToOverlay=function(){var e=this;this.openContextMenu.contextMenuElement().addEventListener("click",function(){e.close()}),this.openContextMenu.backdropClick().subscribe(function(){e.close()}),this.openContextMenu.backdropElement().addEventListener("contextmenu",function(t){t.preventDefault(),e.close()}),this.openContextMenu.detachments().subscribe(function(){e.close()})},e.prototype.getMenuPositionStrategy=function(e,t){this.createOriginFromEvent(e,t);var n={originX:t.originX||"center",originY:t.originY||"bottom",overlayX:t.overlayX||"center",overlayY:t.overlayY||"top"};return this.overlay.position().flexibleConnectedTo(new o.ElementRef(this.lastOrigin)).withPositions([n,{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"bottom"}])},e.prototype.createOriginFromEvent=function(e,t){this.removeLastOrigin(),e instanceof HTMLElement||e instanceof EventTarget?this.lastOrigin=e:(this.lastOrigin=document.createElement("div"),this.lastOrigin.style.position="fixed",this.lastOrigin.style.top=e.clientY+(t.offsetY||0)+"px",this.lastOrigin.style.left=e.clientX+(t.offsetX||0)+"px",this.lastOrigin.id="dynamic-context-menu-origin",document.body.appendChild(this.lastOrigin))},e.prototype.removeLastOrigin=function(){this.lastOrigin&&"dynamic-context-menu-origin"===this.lastOrigin.id&&this.lastOrigin.remove()},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(Jt.o),o.inject(o.NgZone),o.inject(o.INJECTOR),o.inject(o.ComponentFactoryResolver),o.inject(nl.c))},token:e,providedIn:"root"}),e}(),ii=new o.InjectionToken("AVAILABLE_CONTEXT_MENUS"),oi=o["\u0275crt"]({encapsulation:2,styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}.mat-nested-tree-ndoe{border-bottom-width:0}"],data:{}});function ri(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{_nodeOutlet:0}),(e()(),o["\u0275eld"](1,16777216,null,null,1,null,null,null,null,null,null,null)),o["\u0275did"](2,16384,[[1,4]],0,ql,[o.ViewContainerRef],null,null)],null,null)}var ai=function(){function e(e){this.tree=e,this.expanded=!1,this.movingEntries=[],this.disableContextMenu=!1,this.folderSelected=new o.EventEmitter}return e.prototype.selectFolder=function(e){this.selectedFolder=e.hash,this.folderSelected.emit(e)},e.prototype.toggle=function(){this.expanded=!this.expanded},e.prototype.nodeIsDisabled=function(e){return!!this.movingEntries.find(function(t){return t.path.indexOf(e.path)>-1})},e}(),si=function(){function e(){this.createTreeFlattener(),this.createTreeControl(),this.createTreeDataSource(),this.bindToStore()}return e.prototype.createTreeFlattener=function(){this.flattener=new Jl(this.transformer,this.getLevel,this.isExpandable,this.getChildren)},e.prototype.createTreeControl=function(){this.control=new Ml(this.getLevel,this.isExpandable)},e.prototype.createTreeDataSource=function(){this.dataSource=new Ql(this.control,this.flattener)},e.prototype.bindToStore=function(){var e=this;this.userFolders$.pipe(Object(Ct.a)(function(e){return!!e})).subscribe(function(t){e.dataSource.data=t})},e.prototype.transformer=function(e,t){var n=Object.assign({},e);return n.level=t,n.expandable=!!e.children,n},e.prototype.getLevel=function(e){return e.level},e.prototype.isExpandable=function(e){return e.expandable},e.prototype.getChildren=function(e){return Object(cl.a)(e.children)},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),Object(Se.b)([Object(ke.d)(nt.userFolders),Object(Se.d)("design:type",Ol.a)],e.prototype,"userFolders$",void 0),e}(),ui=o["\u0275crt"]({encapsulation:2,styles:[["folders-tree{display:none;color:#656565}folders-tree.expanded{display:block}folders-tree .mat-tree .folder-icon{margin-right:5px;color:rgba(0,0,0,.5)}folders-tree .mat-tree .mat-tree-node{padding-right:24px;white-space:nowrap}folders-tree .mat-tree .mat-tree-node.disabled{pointer-events:none;opacity:.5}folders-tree .mat-tree .mat-tree-node:not(.active):not(.drag-over){color:inherit;background-color:#fafafa}folders-tree .mat-tree .mat-tree-node:not(.active):not(.drag-over):hover{background-color:#f1f1f1}folders-tree .mat-tree .mat-tree-node.active{color:#1976d2;background-color:#e8f0fe}folders-tree .mat-tree .mat-tree-node.active .folder-icon{color:inherit}folders-tree .mat-tree .mat-tree-node.active .text{font-weight:500}folders-tree .mat-tree .folder-button{display:flex;align-items:center;color:inherit;width:100%;min-height:inherit;line-height:inherit}folders-tree .mat-tree .folder-icon{flex:0 0 24px}folders-tree .mat-tree .folder-name{padding-top:2.5px}"]],data:{}});function ci(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,22,"mat-tree-node",[["class","mat-tree-node"],["matTreeNodePadding",""],["matTreeNodePaddingIndent","24"]],[[2,"active",null],[2,"disabled",null],[1,"aria-expanded",0],[1,"aria-level",0],[1,"role",0]],null,null,null,null)),o["\u0275prd"](6144,null,Ul,null,[Yl]),o["\u0275did"](2,81920,null,0,ei,[o.ElementRef,li,ii],{params:[0,"params"],disableContextMenu:[1,"disableContextMenu"]},null),o["\u0275pod"](3,{type:0,entry:1}),o["\u0275did"](4,16384,null,0,Hl,[o.ElementRef,Ll,[8,null]],null,null),o["\u0275prd"](2048,null,Vl,null,[Hl]),o["\u0275did"](6,147456,null,0,Yl,[Vl,Ll,o.Renderer2,o.ElementRef,[2,ll.b]],{level:[0,"level"],indent:[1,"indent"]},null),o["\u0275did"](7,212992,null,0,Dl,[o.ElementRef,ke.h],{folder:[0,"folder"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](9,0,null,null,3,"mat-icon",[["class","toggle-expansion-icon mat-icon"],["matTreeNodeToggle",""],["role","img"],["svgIcon","arrow-drop-down"]],[[2,"expanded",null],[2,"mat-icon-inline",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,12)._toggle(n)&&l),l},Vt.b,Vt.a)),o["\u0275prd"](6144,null,zl,null,[Xl]),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),o["\u0275did"](12,16384,null,0,Xl,[Ll,Vl],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](14,0,null,null,7,"button",[["class","no-style folder-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.selectFolder(e.context.$implicit)&&l),l},null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](16,0,null,null,1,"mat-icon",[["class","folder-icon mat-icon"],["role","img"],["svgIcon","folder"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](17,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](19,0,null,null,1,"span",[["class","folder-name text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](20,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){var n=t.component;e(t,2,0,e(t,3,0,"entry",t.context.$implicit),n.disableContextMenu),e(t,6,0,"","24"),e(t,7,0,t.context.$implicit),e(t,11,0,"arrow-drop-down"),e(t,17,0,"folder")},function(e,t){var n=t.component;e(t,0,0,n.selectedFolder===t.context.$implicit.hash,n.nodeIsDisabled(t.context.$implicit),o["\u0275nov"](t,4).isExpanded,"treeitem"===o["\u0275nov"](t,4).role?o["\u0275nov"](t,4).level:null,o["\u0275nov"](t,4).role),e(t,9,0,n.tree.control.isExpanded(t.context.$implicit),o["\u0275nov"](t,11).inline),e(t,16,0,o["\u0275nov"](t,17).inline),e(t,20,0,t.context.$implicit.name)})}function di(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,8,"mat-tree",[["class","mat-tree"],["role","tree"]],null,null,null,ri,oi)),o["\u0275prd"](6144,null,Ll,null,[Zl]),o["\u0275did"](2,2342912,null,1,Zl,[o.IterableDiffers,o.ChangeDetectorRef],{dataSource:[0,"dataSource"],treeControl:[1,"treeControl"]},null),o["\u0275qud"](603979776,1,{_nodeDefs:1}),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,ci)),o["\u0275did"](6,16384,null,0,Gl,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[1,4]],Nl,null,[Gl]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.tree.dataSource,n.tree.control)},null)}var pi=n("iJjK"),fi=n("nQeM"),hi=n("Z+uX"),mi=o["\u0275crt"]({encapsulation:2,styles:[".mat-progress-bar{display:block;height:5px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}@media screen and (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-background{display:none}}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}@media screen and (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}@media screen and (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-fill{border-top:solid 5px}}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:'';display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after{animation:none;transition:none}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-10px)}}"],data:{}});function gi(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,":svg:svg",[["class","mat-progress-bar-background mat-progress-bar-element"],["focusable","false"],["height","5"],["width","100%"]],null,null,null,null,null)),(e()(),o["\u0275eld"](1,0,null,null,2,":svg:defs",[],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,1,":svg:pattern",[["height","5"],["patternUnits","userSpaceOnUse"],["width","10"],["x","5"],["y","0"]],[[8,"id",0]],null,null,null,null)),(e()(),o["\u0275eld"](3,0,null,null,0,":svg:circle",[["cx","2.5"],["cy","2.5"],["r","2.5"]],null,null,null,null,null)),(e()(),o["\u0275eld"](4,0,null,null,0,":svg:rect",[["height","100%"],["width","100%"]],[[1,"fill",0]],null,null,null,null)),(e()(),o["\u0275eld"](5,0,null,null,1,"div",[["class","mat-progress-bar-buffer mat-progress-bar-element"]],null,null,null,null,null)),o["\u0275did"](6,278528,null,0,Bt.NgStyle,[o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngStyle:[0,"ngStyle"]},null),(e()(),o["\u0275eld"](7,0,null,null,1,"div",[["class","mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element"]],null,null,null,null,null)),o["\u0275did"](8,278528,null,0,Bt.NgStyle,[o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngStyle:[0,"ngStyle"]},null),(e()(),o["\u0275eld"](9,0,null,null,0,"div",[["class","mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,6,0,n._bufferTransform()),e(t,8,0,n._primaryTransform())},function(e,t){var n=t.component;e(t,2,0,n.progressbarId),e(t,4,0,n._rectangleFillValue)})}var bi=n("6SKC"),vi=function(){function e(){}return Object(Se.b)([Object(ke.d)(nt.userSpaceUsed),Object(Se.d)("design:type",Ol.a)],e.prototype,"spaceUsed$",void 0),Object(Se.b)([Object(ke.d)(nt.userSpaceAvailable),Object(Se.d)("design:type",Ol.a)],e.prototype,"spaceAvailable$",void 0),Object(Se.b)([Object(ke.d)(nt.spaceUsedPercent),Object(Se.d)("design:type",Ol.a)],e.prototype,"spaceUsedPercent$",void 0),e}(),yi=o["\u0275crt"]({encapsulation:2,styles:[["available-space-indicator{display:block;margin-top:25px}available-space-indicator .usage-info{margin:5px 0;font-size:1.3rem}available-space-indicator .upgrade-link-container{color:#1565c0}"]],data:{}});function _i(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,34,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,2,"mat-progress-bar",[["aria-valuemax","100"],["aria-valuemin","0"],["class","mat-progress-bar"],["mode","determinate"],["role","progressbar"]],[[1,"aria-valuenow",0],[1,"mode",0],[2,"_mat-animation-noopable",null]],null,null,gi,mi)),o["\u0275did"](3,49152,null,0,hi.b,[o.ElementRef,[2,Gt.a],[2,hi.a]],{value:[0,"value"],mode:[1,"mode"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](6,0,null,null,19,"div",[["class","usage-info"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](8,0,null,null,3,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275ppd"](11,1),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](13,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](14,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["of"])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](17,0,null,null,3,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](18,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275ppd"](20,1),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](22,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](23,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["used"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](27,0,null,null,6,"div",[["class","upgrade-link-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](29,0,null,null,3,"a",[["routerLink","/billing/upgrade"],["target","_blank"],["trans",""]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,31).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l},null,null)),o["\u0275did"](30,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](31,671744,null,0,Jt.r,[Jt.o,Jt.a,Bt.LocationStrategy],{target:[0,"target"],routerLink:[1,"routerLink"]},null),(e()(),o["\u0275ted"](-1,null,["Upgrade Storage"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,o["\u0275unv"](t,3,0,o["\u0275nov"](t,4).transform(n.spaceUsedPercent$)),"determinate"),e(t,31,0,"_blank","/billing/upgrade")},function(e,t){var n=t.component;e(t,2,0,o["\u0275nov"](t,3).value,o["\u0275nov"](t,3).mode,"NoopAnimations"===o["\u0275nov"](t,3)._animationMode),e(t,9,0,o["\u0275unv"](t,9,0,e(t,11,0,o["\u0275nov"](t.parent,0),o["\u0275unv"](t,9,0,o["\u0275nov"](t,10).transform(n.spaceUsed$))))),e(t,18,0,o["\u0275unv"](t,18,0,e(t,20,0,o["\u0275nov"](t.parent,0),o["\u0275unv"](t,18,0,o["\u0275nov"](t,19).transform(n.spaceAvailable$))))),e(t,29,0,o["\u0275nov"](t,31).target,o["\u0275nov"](t,31).href)})}function wi(e){return o["\u0275vid"](2,[o["\u0275pid"](0,bi.a,[]),(e()(),o["\u0275and"](16777216,null,null,2,null,_i)),o["\u0275did"](2,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.spaceUsedPercent$))>=0)},null)}var Oi=function(){function e(e,t){this.urls=e,this.store=t}return e.prototype.openFolder=function(e){this.store.dispatch(new W(e))},e.prototype.getRootFolder=function(){return r},Object(Se.b)([Object(ke.d)(nt.activePage),Object(Se.d)("design:type",Ol.a)],e.prototype,"activeFolder",void 0),e}(),xi=o["\u0275crt"]({encapsulation:2,styles:[['sidebar{display:block;width:100%;height:100%;color:#656565;background-color:#fafafa;position:relative}sidebar sidebar-action-buttons{padding:28px 0}sidebar .drag-over{background-color:#e8f0fe}sidebar .sidebar-menu-item{display:flex;align-items:center;width:100%;height:48px;min-height:inherit;line-height:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:inherit;outline:0;cursor:pointer;-webkit-user-drag:none}sidebar .sidebar-menu-item.active{color:#1976d2;background-color:#e8f0fe}sidebar .sidebar-menu-item.active .text{font-weight:500}sidebar .sidebar-menu-item:not(.active):not(.drag-over):hover{background-color:#f1f1f1}sidebar .sidebar-menu-item .mat-icon:not(.toggle-expansion-icon){margin-right:15px}sidebar .sidebar-menu .sidebar-menu-item{padding-left:24px;padding-right:24px}sidebar available-space-indicator{position:absolute;bottom:20px;left:0;width:100%;padding:0 20px}sidebar folders-tree .mat-tree-node:before{display:block;content:" ";width:24px;flex:0 0 24px}']],data:{}});function ji(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"sidebar-action-buttons",[],null,null,null,El,kl)),o["\u0275did"](1,49152,null,0,xl,[jl.a,ke.h,Cl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](3,0,null,null,24,"div",[["class","drive-folders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](5,0,null,null,17,"div",[["class","sidebar-menu-item"],["routerLinkActive","active"]],null,[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,6).onClick()&&l),l},null,null)),o["\u0275did"](6,16384,[[1,4]],0,Jt.p,[Jt.o,Jt.a,[8,null],o.Renderer2,o.ElementRef],{routerLink:[0,"routerLink"]},null),o["\u0275did"](7,1720320,null,2,Jt.q,[Jt.o,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),o["\u0275qud"](603979776,1,{links:1}),o["\u0275qud"](603979776,2,{linksWithHrefs:1}),o["\u0275pod"](10,{exact:0}),o["\u0275did"](11,212992,null,0,Dl,[o.ElementRef,ke.h],{folder:[0,"folder"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](13,0,null,null,1,"mat-icon",[["class","toggle-expansion-icon mat-icon"],["role","img"],["svgIcon","arrow-drop-down"]],[[2,"expanded",null],[2,"mat-icon-inline",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(o["\u0275nov"](e,25).toggle(),l=!1!==n.stopPropagation()&&l),l},Vt.b,Vt.a)),o["\u0275did"](14,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](16,0,null,null,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","network-drive-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](17,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](19,0,null,null,2,"span",[["class","text"],["trans",""]],null,null,null,null,null)),o["\u0275did"](20,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["My Drive"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](24,0,null,null,2,"folders-tree",[],[[2,"expanded",null]],[[null,"folderSelected"]],function(e,t,n){var l=!0;return"folderSelected"===t&&(l=!1!==e.component.openFolder(n)&&l),l},di,ui)),o["\u0275did"](25,49152,[["tree",4]],0,ai,[si],{selectedFolder:[0,"selectedFolder"]},{folderSelected:"folderSelected"}),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](29,0,null,null,1,"custom-menu",[["class","sidebar-menu"],["itemClass","sidebar-menu-item"],["position","drive-sidebar"]],[[2,"hidden",null]],null,null,pi.b,pi.a)),o["\u0275did"](30,245760,null,0,fi.a,[Ye.a,De.a,o.ChangeDetectorRef],{position:[0,"position"],itemClass:[1,"itemClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](32,0,null,null,1,"available-space-indicator",[],null,null,null,wi,yi)),o["\u0275did"](33,49152,null,0,vi,[],null,null)],function(e,t){var n=t.component;e(t,6,0,n.urls.driveRoot()),e(t,7,0,e(t,10,0,!0),"active"),e(t,11,0,n.getRootFolder()),e(t,14,0,"arrow-drop-down"),e(t,17,0,"network-drive-custom"),e(t,25,0,o["\u0275unv"](t,25,0,o["\u0275nov"](t,26).transform(n.activeFolder))),e(t,30,0,"drive-sidebar","sidebar-menu-item")},function(e,t){e(t,13,0,o["\u0275nov"](t,25).expanded,o["\u0275nov"](t,14).inline),e(t,16,0,o["\u0275nov"](t,17).inline),e(t,24,0,o["\u0275nov"](t,25).expanded),e(t,29,0,o["\u0275nov"](t,30).shouldHide)})}var Ci=function(){function e(e,t){this.urls=e,this.settings=t}return e.prototype.getPreviewUrl=function(){return this.settings.getBaseUrl(!0)+this.file.url},e.prototype.getFolderIcon=function(){return this.file.users&&this.file.users.length>1?"shared-folder":"folder"},e}(),ki=o["\u0275crt"]({encapsulation:2,styles:[["file-thumbnail{display:block;background-color:#fafafa}file-thumbnail img{display:block;max-width:100%;height:auto}"]],data:{}});function Ei(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"img",[["class","file-color"],["draggable","false"]],[[8,"src",4]],null,null,null,null)),o["\u0275did"](1,278528,null,0,Bt.NgClass,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,1,0,"file-color",t.component.file.type+"-file")},function(e,t){e(t,0,0,t.component.getPreviewUrl())})}function Si(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](1,573440,null,0,en,[],{type:[0,"type"]},null)],function(e,t){var n=t.component;e(t,1,0,"folder"===n.file.type?n.getFolderIcon():n.file.type)},null)}function Ri(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Ei)),o["\u0275did"](1,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Si)),o["\u0275did"](4,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,"image"===n.file.type),e(t,4,0,"image"!==n.file.type)},null)}var Ii=n("v9Dh"),Di=function(){function e(e){this.store=e}return e.prototype.openLocation=function(){var e=this.store.selectSnapshot(nt.selectedEntryParent);this.store.dispatch(new W(e))},Object(Se.b)([Object(ke.d)(nt.selectedEntryOrActiveFolder),Object(Se.d)("design:type",Ol.a)],e.prototype,"entry$",void 0),Object(Se.b)([Object(ke.d)(nt.selectedEntryParent),Object(Se.d)("design:type",Ol.a)],e.prototype,"parent$",void 0),e}(),Pi=o["\u0275crt"]({encapsulation:2,styles:[["details-panel{display:block;padding:24px}details-panel file-thumbnail{margin-bottom:20px}details-panel .users-list{display:flex;flex-wrap:wrap;margin-bottom:20px}details-panel .users-list img{width:36px;height:36px;flex:0 0 36px;-o-object-fit:cover;object-fit:cover;margin-right:10px;border-radius:50%;overflow:hidden}details-panel .details-list .item{display:flex;align-items:center;margin-bottom:10px}details-panel .details-list .item .name{width:120px;flex:0 0 120px;color:#656565}details-panel .details-list .item .value{flex:1 1 auto}details-panel .details-list .item .type-value{text-transform:capitalize}details-panel .nothing-selected{display:flex;align-items:center;font-size:1.7rem;font-weight:400}details-panel .nothing-selected .mat-icon{margin-right:5px;width:36px;height:36px;flex-shrink:0}details-panel .location-item .value{font-weight:500;cursor:pointer}details-panel .location-item .value .mat-icon{color:#656565;vertical-align:bottom}details-panel .location-item .value:hover .text{color:#1565c0;text-decoration:underline}"]],data:{}});function Ai(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"file-thumbnail",[["class","preview"]],null,null,null,Ri,ki)),o["\u0275did"](1,49152,null,0,Ci,[Me,Ye.a],{file:[0,"file"]},null)],function(e,t){e(t,1,0,t.parent.parent.context.ngIf)},null)}function Ti(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,16777216,null,null,1,"img",[],[[8,"src",4]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var l=!0;return"longpress"===t&&(l=!1!==o["\u0275nov"](e,1).show()&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,1)._handleKeydown(n)&&l),"touchend"===t&&(l=!1!==o["\u0275nov"](e,1)._handleTouchend()&&l),l},null,null)),o["\u0275did"](1,147456,null,0,Ii.d,[nl.c,o.ElementRef,il.c,o.ViewContainerRef,o.NgZone,Wt.a,Ht.c,Ht.h,Ii.b,[2,ll.b],[2,Ii.a]],{message:[0,"message"]},null),(e()(),o["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0,t.context.$implicit.display_name)},function(e,t){e(t,0,0,t.context.$implicit.avatar)})}function Fi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,"div",[["class","item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](2,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Owner"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](6,0,null,null,1,"div",[["class","value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n            "]))],null,function(e,t){e(t,7,0,t.parent.parent.context.ngIf.users[0].display_name)})}function Mi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,88,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ai)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](5,0,null,null,4,"div",[["class","users-list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ti)),o["\u0275did"](8,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](11,0,null,null,76,"div",[["class","details-list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](13,0,null,null,9,"div",[["class","item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](15,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](16,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Type"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](19,0,null,null,2,"div",[["class","value type-value"],["trans",""]],null,null,null,null,null)),o["\u0275did"](20,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](21,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](24,0,null,null,9,"div",[["class","item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](26,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](27,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Size"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](30,0,null,null,2,"div",[["class","value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](31,null,["",""])),o["\u0275ppd"](32,1),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](35,0,null,null,9,"div",[["class","item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](37,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](38,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Storage Used"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](41,0,null,null,2,"div",[["class","value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](42,null,["",""])),o["\u0275ppd"](43,1),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](46,0,null,null,15,"div",[["class","item location-item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](48,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](49,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Location"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](52,0,null,null,8,"div",[["class","value"]],null,[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.openLocation()&&l),l},null,null)),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275eld"](54,0,null,null,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","folder"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](55,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275eld"](57,0,null,null,2,"span",[["class","text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](58,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fi)),o["\u0275did"](64,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](66,0,null,null,9,"div",[["class","item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](68,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](69,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Last Updated"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](72,0,null,null,2,"div",[["class","value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](73,null,["",""])),o["\u0275ppd"](74,1),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](77,0,null,null,9,"div",[["class","item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](79,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](80,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Created"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](83,0,null,null,2,"div",[["class","value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](84,null,["",""])),o["\u0275ppd"](85,1),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,"image"===t.parent.context.ngIf.type),e(t,8,0,t.parent.context.ngIf.users),e(t,55,0,"folder"),e(t,64,0,t.parent.context.ngIf.users&&t.parent.context.ngIf.users.length)},function(e,t){var n,l=t.component;e(t,21,0,t.parent.context.ngIf.type),e(t,31,0,o["\u0275unv"](t,31,0,e(t,32,0,o["\u0275nov"](t.parent.parent,0),t.parent.context.ngIf.file_size))),e(t,42,0,o["\u0275unv"](t,42,0,e(t,43,0,o["\u0275nov"](t.parent.parent,0),t.parent.context.ngIf.file_size))),e(t,54,0,o["\u0275nov"](t,55).inline),e(t,58,0,(null==(n=o["\u0275unv"](t,58,0,o["\u0275nov"](t,59).transform(l.parent$)))?null:n.name)||"My Drive"),e(t,73,0,o["\u0275unv"](t,73,0,e(t,74,0,o["\u0275nov"](t.parent.parent,1),t.parent.context.ngIf.updated_at))),e(t,84,0,o["\u0275unv"](t,84,0,e(t,85,0,o["\u0275nov"](t.parent.parent,1),t.parent.context.ngIf.created_at)))})}function Ni(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Mi)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.ngIf.updated_at,o["\u0275nov"](t.parent,6))},null)}function Li(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](1,0,null,null,8,"div",[["class","nothing-selected"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](3,0,null,null,1,"mat-icon",[["class","icon mat-icon"],["role","img"],["svgIcon","selection-tool-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](4,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](6,0,null,null,2,"div",[["class","text"],["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Select file or folder to view its details."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,4,0,"selection-tool-custom")},function(e,t){e(t,3,0,o["\u0275nov"](t,4).inline)})}function Vi(e){return o["\u0275vid"](2,[o["\u0275pid"](0,bi.a,[]),o["\u0275pid"](0,el.a,[Ye.a,o.LOCALE_ID]),(e()(),o["\u0275and"](16777216,null,null,2,null,Ni)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](0,[["nothingSelected",2]],null,0,null,Li))],function(e,t){var n=t.component;e(t,3,0,o["\u0275unv"](t,3,0,o["\u0275nov"](t,4).transform(n.entry$)),o["\u0275nov"](t,6))},null)}var Ui=function(){function e(e){this.store=e}return e.prototype.close=function(){this.store.dispatch(new ie)},Object(Se.b)([Object(ke.d)(nt.selectedEntryOrActiveFolder),Object(Se.d)("design:type",Ol.a)],e.prototype,"entry$",void 0),Object(Se.b)([Object(ke.d)(nt.activePage),Object(Se.d)("design:type",Ol.a)],e.prototype,"activePage$",void 0),e}(),zi=o["\u0275crt"]({encapsulation:2,styles:[["details-sidebar{display:block;padding:28px 0}details-sidebar>.header{margin-bottom:20px;padding:0 24px}details-sidebar>.header .title{display:flex;align-items:center}details-sidebar>.header .title .name{font-size:2.1rem;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis}details-sidebar>.header .title file-icon{width:24px;height:24px;margin-right:18px}details-sidebar>.header .close-button{color:rgba(0,0,0,.54);margin-left:auto}details-sidebar .mat-tab-label{min-width:50%}"]],data:{}});function Bi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,7,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](2,0,null,null,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](3,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](5,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n            "]))],function(e,t){e(t,3,0,t.parent.context.ngIf.type)},function(e,t){e(t,6,0,t.parent.context.ngIf.name)})}function $i(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Bi)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "]))],function(e,t){e(t,3,0,t.context.ngIf.type,o["\u0275nov"](t.parent,8))},null)}function qi(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](1,0,null,null,1,"file-icon",[["type","folder"]],null,null,null,nn,tn)),o["\u0275did"](2,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](4,0,null,null,3,"div",[["class","name"],["trans",""]],null,null,null,null,null)),o["\u0275did"](5,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](6,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n        "]))],function(e,t){e(t,2,0,"folder")},function(e,t){var n,l=t.component;e(t,6,0,null==(n=o["\u0275unv"](t,6,0,o["\u0275nov"](t,7).transform(l.activePage$)))?null:n.viewName)})}function Wi(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,17,"div",[["class","header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,14,"div",[["class","title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,2,null,$i)),o["\u0275did"](5,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](0,[["defaultTitle",2]],null,0,null,qi)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](10,0,null,null,5,"button",[["class","close-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](11,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](13,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](14,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](19,0,null,null,1,"details-panel",[],null,null,null,Vi,Pi)),o["\u0275did"](20,49152,null,0,Di,[ke.h],null,null)],function(e,t){var n=t.component;e(t,5,0,o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.entry$)),o["\u0275nov"](t,8)),e(t,14,0,"close")},function(e,t){e(t,10,0,o["\u0275nov"](t,11).disabled||null,"NoopAnimations"===o["\u0275nov"](t,11)._animationMode),e(t,13,0,o["\u0275nov"](t,14).inline)})}var Hi=function(){function e(e,t,n,l,i,o){this.zone=e,this.el=t,this.store=n,this.dragSelect=l,this.dragEntry=i,this.domCache=o}return e.prototype.ngOnInit=function(){this.bindToHammer()},e.prototype.ngOnDestroy=function(){this.dragSelect.removeSelectBox()},e.prototype.bindToHammer=function(){this.createHammerManager(),this.onPanStart(),this.onPan(),this.onPanEnd(),this.onTap(),this.onDoubleTap()},e.prototype.createHammerManager=function(){var e=this;this.zone.runOutsideAngular(function(){e.hammerManager=new Hammer.Manager(e.domCache.filesCont);var t=e.store.selectSnapshot(nt.isMobile),n=new Hammer.Tap,l=new Hammer.Pan({enable:!t}),i=new Hammer.Tap({event:"doubletap",taps:2});e.hammerManager.add([n,i,l]),e.hammerManager.get("doubletap").recognizeWith("tap")})},e.prototype.onPanStart=function(){var e=this;this.hammerManager.on("panstart",function(t){var n=e.getEntryEl(t);if(n){e.panService=e.dragEntry;var l=e.getEntryByEl(n);e.store.selectSnapshot(nt.selectedEntries).find(function(e){return e.id===l.id})||e.store.dispatch(new G([e.getEntryByEl(n)]))}else e.panService=e.dragSelect;e.panService.start(t)})},e.prototype.onPan=function(){var e=this;this.hammerManager.on("pan",function(t){e.panService&&e.panService.move(t)})},e.prototype.onPanEnd=function(){var e=this;this.hammerManager.on("panend",function(){e.panService&&e.panService.end()})},e.prototype.onTap=function(){var e=this;this.hammerManager.on("tap",function(t){var n=e.getEntryEl(t);e.dragSelect.removeSelectBox(),n?e.store.dispatch(new E(e.getEntryByEl(n),t.srcEvent.ctrlKey)):t.target.closest(".files-container")&&e.store.dispatch(new Z)})},e.prototype.onDoubleTap=function(){var e=this;this.hammerManager.on("doubletap",function(t){var n=e.getEntryEl(t);n&&e.store.dispatch(new S(e.getEntryByEl(n)))})},e.prototype.getEntryEl=function(e){return e.target.closest(".drive-entry")},e.prototype.getEntryByEl=function(e){var t=+e.dataset.id;return this.store.selectSnapshot(nt.entries).find(function(e){return e.id===+t})},e}(),Gi=function(){function e(){}return e.ngInjectableDef=o.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Yi=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zi=function(){function e(e,t){this.store=e,this.cache=t,this.initial={x:0,y:0,scrollTop:0}}return e.prototype.start=function(e){this.cacheClientRects(),this.createSelectBox(),this.bindScroll(),this.initial=Yi({},this.hammerToRelative(e),{scrollTop:this.cache.scrollCont.scrollTop}),this.selectBox.style.top=this.initial.y+"px",this.selectBox.style.left=this.initial.x+"px"},e.prototype.move=function(e){this.lastPanEvent=e,this.resizeBox(e)},e.prototype.end=function(){this.removeSelectBox(),this.dispatchSelectedAction(),this.unbindScroll()},e.prototype.resizeBox=function(e){if(e||(e=this.lastPanEvent),e&&this.selectBox){var t=this.getNewSelectorPosition(e);this.scrollAndRepositionSelector(t),this.selectIntersectingElements()}},e.prototype.getNewSelectorPosition=function(e){var t,n=this.hammerToRelative(e),l=this.initial.x,i=this.initial.y,o=n.x,r=n.y;return l>o&&(t=o,o=l,l=t),i>r&&(t=r,r=i,i=t),{width:o-l,height:r-i,top:i,right:l+(o-l),bottom:i+(r-i),left:l}},e.prototype.reachedAreaEdge=function(e){var t=this.rectToRelative(this.cache.filesContRect);return e.left<=t.left?"left":e.top<=t.top?"top":e.right>=t.right?"right":e.bottom>=t.bottom&&"bottom"},e.prototype.scrollAndRepositionSelector=function(e){var t=this.cache.scrollCont,n=this.reachedAreaEdge(e);e.top+=this.initial.scrollTop,"bottom"===n?t.scrollBy({top:4}):"top"===n&&t.scrollBy({top:-4});var l=this.cache.scrollCont.scrollTop-this.initial.scrollTop,i=Math.abs(l);l<0&&(e.top-=i),e.height+=i,"left"===n||"right"===n||e.top+e.height>=this.cache.scrollCont.scrollHeight||this.applyPosition(e)},e.prototype.applyPosition=function(e){this.selectBox.style.width=e.width+"px",this.selectBox.style.height=e.height+"px",this.selectBox.style.left=e.left+"px",this.selectBox.style.top=e.top+"px"},e.prototype.selectIntersectingElements=function(){var e=this.selectBox.getBoundingClientRect();this.getGridElements().forEach(function(t){var n=t.getBoundingClientRect();n.top+n.height>e.top&&n.left+n.width>e.left&&n.bottom-n.height<e.bottom&&n.right-n.width<e.right?t.classList.add("selected"):t.classList.remove("selected")})},e.prototype.rectToRelative=function(e){return{width:e.width,height:e.height,left:e.left-this.cache.filesContRect.left,top:e.top-this.cache.filesContRect.top,right:e.right-this.cache.filesContRect.left,bottom:e.bottom-this.cache.filesContRect.top}},e.prototype.hammerToRelative=function(e){return{x:e.center.x-this.cache.filesContRect.left,y:e.center.y-this.cache.filesContRect.top}},e.prototype.dispatchSelectedAction=function(){var e=this.getGridElements().filter(function(e){return e.classList.contains("selected")}).map(function(e){return+e.dataset.id}),t=this.store.selectSnapshot(nt.entries).filter(function(t){return e.indexOf(t.id)>-1});this.store.dispatch(new C(t))},e.prototype.createSelectBox=function(){this.selectBox=document.createElement("div"),this.selectBox.classList.add("files-select-box"),this.cache.filesCont.appendChild(this.selectBox)},e.prototype.removeSelectBox=function(){this.selectBox&&(this.selectBox.remove(),this.selectBox=null)},e.prototype.cacheClientRects=function(){this.cache.filesContRect=this.cache.filesCont.getBoundingClientRect(),this.cache.scrollContRect=this.cache.scrollCont.getBoundingClientRect()},e.prototype.getGridElements=function(){return Array.from(this.cache.filesCont.querySelectorAll("files-grid-item"))},e.prototype.bindScroll=function(){var e=this;this.scrollListener=function(){return e.resizeBox()},this.cache.scrollCont.addEventListener("scroll",this.scrollListener)},e.prototype.unbindScroll=function(){this.cache.scrollCont.removeEventListener("scroll",this.scrollListener)},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(ke.h),o.inject(Gi))},token:e,providedIn:"root"}),e}(),Xi=function(){function e(e,t){this.domCache=e,this.store=t}return e.prototype.start=function(e){this.store.dispatch(new A)},e.prototype.move=function(e){this.domCache.dragPreview.style.top=e.center.y+"px",this.domCache.dragPreview.style.left=e.center.x+"px"},e.prototype.end=function(){this.store.dispatch(new T)},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(Gi),o.inject(ke.h))},token:e,providedIn:"root"}),e}(),Ki=n("zW5C"),Ji=n("dzgT"),Qi=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},eo=function(){function e(e,t,n,l){this.entriesApi=e,this.i18n=t,this.contextMenu=n,this.store=l,this.breadcrumb=new vt.a([])}return e.prototype.ngOnInit=function(){var e=this,t=Object(Ji.b)(this.store.select(nt.meta),this.store.select(nt.userFoldersLoaded)).subscribe(function(n){n[0].currentPage&&n[1]&&(e.bindToActivePage(),t&&t.unsubscribe())})},e.prototype.openPage=function(e){this.store.dispatch(e.folder?new W(e.folder):new Ne.b(["/drive/shares"]))},e.prototype.openContextMenu=function(e,t){var n={originX:"start",overlayX:"start"};switch(e.name){case"trash":case"root":return this.contextMenu.open(je,t,n);case"folder":return n=Qi({data:{entry:this.store.selectSnapshot(nt.activeFolder)}},n),this.contextMenu.open(je,t,n)}},e.prototype.generateBreadCrumb=function(e,t){var n=["folder"===e.name?this.getFolderRootBreadcrumb(e):e];if(e.folder&&e.folder!==r){var l=this.getBreadcrumbForFolder(e.folder,t);n.push.apply(n,l)}this.breadcrumb.next(n)},e.prototype.getBreadcrumbForFolder=function(e,t){return e.path.split("/").map(function(n){return e&&new c(e.id===+n?e:t[n])}).filter(function(e){return!!e})},e.prototype.getFolderRootBreadcrumb=function(e){var t=this.store.selectSnapshot(nt.userOwnsActiveFolder);return!e.folder||t?g:f},e.prototype.bindToActivePage=function(){var e=this;Object(Ji.b)(this.store.select(nt.activePage),this.store.select(nt.flatFolders)).pipe(Object(ul.a)(),Object(Ct.a)(function(e){return!e[0].folderHash||e[0].folder})).subscribe(function(t){e.generateBreadCrumb(t[0],t[1])})},e}(),to=o["\u0275crt"]({encapsulation:2,styles:[["entry-breadcrumbs{display:flex;align-items:center;max-width:100%;overflow:hidden}entry-breadcrumbs .breadcrumb-item{font-size:1.8rem;color:rgba(0,0,0,.87);border-radius:4px;padding:4px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}entry-breadcrumbs .breadcrumb-item:hover{background-color:#f1f1f1}entry-breadcrumbs .breadcrumb-item:first-of-type{text-transform:capitalize}entry-breadcrumbs .breadcrumb-item .mat-icon{vertical-align:middle;color:rgba(0,0,0,.54);margin-left:-5px}entry-breadcrumbs .separator{color:rgba(0,0,0,.54)}"]],data:{}});function no(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","arrow-drop-down"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](1,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null)],function(e,t){e(t,1,0,"arrow-drop-down")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).inline)})}function lo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mat-icon",[["class","separator mat-icon"],["role","img"],["svgIcon","keyboard-arrow-right"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](1,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null)],function(e,t){e(t,1,0,"keyboard-arrow-right")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).inline)})}function io(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,14,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,[["button",1]],null,8,"div",[["class","breadcrumb-item"]],[[2,"no-action",null]],[[null,"click"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==(e.context.last?i.openContextMenu(e.context.$implicit,o["\u0275nov"](e,2)):i.openPage(e.context.$implicit))&&l),l},null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](4,0,null,null,2,"span",[["class","name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](5,null,["",""])),o["\u0275ppd"](6,1),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,1,null,no)),o["\u0275did"](9,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,lo)),o["\u0275did"](13,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,9,0,t.context.last&&t.context.$implicit.hasActions),e(t,13,0,!t.context.last)},function(e,t){e(t,2,0,!t.context.$implicit.hasActions),e(t,5,0,t.context.first?o["\u0275unv"](t,5,0,e(t,6,0,o["\u0275nov"](t.parent,0),t.context.$implicit.viewName)):t.context.$implicit.viewName)})}function oo(e){return o["\u0275vid"](2,[o["\u0275pid"](0,Ki.a,[Xe.a]),(e()(),o["\u0275and"](16777216,null,null,2,null,io)),o["\u0275did"](2,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.breadcrumb)))},null)}var ro=function(){},ao=o["\u0275crt"]({encapsulation:2,styles:[["drive-toolbar{display:block;padding:14px 28px;width:100%;overflow:hidden}drive-toolbar entry-breadcrumbs{margin:0 -8px}"]],data:{}});function so(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"entry-breadcrumbs",[],null,null,null,oo,to)),o["\u0275did"](1,114688,null,0,eo,[Fe,Xe.a,li,ke.h],null,null)],function(e,t){e(t,1,0)},null)}var uo=n("2Q+G"),co=n("mVsa"),po=function(){function e(e){this.store=e}return e.prototype.getActions=function(){return this.updateStatus(),this.actions},e.prototype.getSelectedEntries=function(){return this.store.selectSnapshot(nt.selectedEntries)},e.prototype.updateStatus=function(){this.multipleEntriesSelected=this.store.selectSnapshot(nt.multipleEntriesSelected),this.allStarred=this.store.selectSnapshot(nt.allSelectedEntriesStarred),this.onlyFoldersSelected=this.store.selectSnapshot(nt.onlyFoldersSelected)},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(ke.h))},token:e,providedIn:"root"}),e}(),fo=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),ho=function(){return!0},mo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.actions=[{viewName:"Restore",icon:"restore",showInCompact:!0,execute:function(){t.store.dispatch(new ae)},visible:ho},{viewName:"Delete Forever",icon:"delete-forever",showInCompact:!0,execute:function(){t.deleteForever()},visible:ho}],t}return fo(t,e),t.prototype.deleteForever=function(){this.store.dispatch(new ne({title:"Delete Forever",body:"This will permanently delete selected items.",bodyBold:"This action can not be undone.",ok:"Delete Forever"},new se))},t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(ke.h))},token:t,providedIn:"root"}),t}(po),go=n("+QRC"),bo=n.n(go),vo=function(){function e(){this.loading=new vt.a(!1),this.subs=[]}return e.prototype.ngOnDestroy=function(){this.subs.forEach(function(e){return e&&e.unsubscribe()})},e.prototype.close=function(){this.dialogRef.close()},e.prototype.addSubs=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.subs).push.apply(e,t)},e}(),yo=function(e){function t(t,n,l,i,o){var r=e.call(this)||this;return r.store=t,r.toast=n,r.actions$=l,r.settings=i,r.dialogRef=o,r.shareableLink$=new vt.a(null),r}return Object(Se.c)(t,e),t.prototype.ngOnInit=function(){this.store.dispatch(new at),this.bindToOptionsPanelToggle()},t.prototype.ngAfterViewInit=function(){this.bindToLinkChange()},t.prototype.ngOnDestroy=function(){this.store.dispatch(new ft)},t.prototype.toggleOptionsPanel=function(){this.store.dispatch(new dt)},t.prototype.deleteLink=function(){var e=this;this.store.dispatch(new ct).subscribe(function(){e.toast.open("Link deleted."),e.dialogRef.close()})},t.prototype.copyLinkToClipboard=function(){this.focusInput(),bo()(this.shareableLink$.value)&&this.store.dispatch(new pt)},t.prototype.bindToLinkChange=function(){var e=this;this.link$.subscribe(function(t){t&&(e.shareableLink$.next(e.settings.getBaseUrl()+"drive/s/"+t.hash),setTimeout(function(){return e.focusInput()}))})},t.prototype.bindToOptionsPanelToggle=function(){var e=this,t=this.actions$.pipe(Object(ke.j)(dt)).subscribe(function(){e.store.selectSnapshot(mt.optionsVisible)||e.shareableLink$.value||e.close()});this.addSubs(t)},t.prototype.shareLink=function(e){!function(e,t,n,l){var i=(window.innerWidth-575)/2,o=(window.innerHeight-400)/2,r=function(t,n,l,i){switch(e){case"facebook":return"https://www.facebook.com/sharer/sharer.php?u="+n;case"twitter":return"https://twitter.com/intent/tweet?text="+n;case"google-plus":return"https://plus.google.com/share?url="+n;case"pinterest":return"https://pinterest.com/pin/create/button/?url="+n+"&media="+void 0;case"tumblr":return"https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=&posttype=photo&title=&caption="+this.mediaItem.name+"&content="+void 0+"&url="+n;case"blogger":return"https://www.blogger.com/blog_this.pyra?t&u="+n+"&n="+void 0}}(0,t);window.open(r,"share","status=1, scrollbars=1,width=575,height=400,top="+o+",left="+i)}(e,this.shareableLink$.value)},t.prototype.focusInput=function(){var e=document.getElementById("link-input");e.focus(),e.select()},Object(Se.b)([Object(ke.d)(mt.loading),Object(Se.d)("design:type",Ol.a)],t.prototype,"loading$",void 0),Object(Se.b)([Object(ke.d)(mt.link),Object(Se.d)("design:type",Ol.a)],t.prototype,"link$",void 0),Object(Se.b)([Object(ke.d)(mt.optionsVisible),Object(Se.d)("design:type",Ol.a)],t.prototype,"optionsVisible$",void 0),t}(vo),_o={edit:!0,view:!0,download:!0},wo=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Oo=function(){function e(e){this.http=e}return e.prototype.updateUsers=function(e){return this.http.put("drive/shares/update-users",e)},e.prototype.shareEntries=function(e){return this.http.post("drive/shares/add-users",wo({},e,{entries:e.entries.map(function(e){return e.id})}))},e.prototype.detachUser=function(e,t){return this.http.delete("drive/shares/remove-user/"+e,{entries:t})},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(Ie.a))},token:e,providedIn:"root"}),e}(),xo=n("BkRI"),jo=n.n(xo),Co=n("qPyV"),ko=n.n(Co),Eo=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},So=function(){function e(){}return e.type="[ShareDialog] Set Initial Users",e}(),Ro=function(){function e(e,t){this.user=e,this.permissions=t}return e.type="[ShareDialog] Update User Permissions",e}(),Io=function(){function e(e){this.user=e}return e.type="[ShareDialog] Remove User",e}(),Do=function(){function e(e){this.users=e}return e.type="[ShareDialog] Set Users",e}(),Po=function(){function e(){}return e.type="[ShareDialog] Save Changes",e}(),Ao=function(){function e(){}return e.type="[ShareDialog] Reset",e}(),To=function(){function e(e){this.payload=e}return e.type="[ShareDialog] Share Entries",e}(),Fo=function(){function e(e){this.messages=e}return e.type="[ShareDialog] Share Entries Failed",e}(),Mo=function(){function e(e,t){this.store=e,this.sharesApi=t}return e.usersWithAccess=function(e){return e.usersWithAccess},e.dirty=function(e){return!Ve()(e.original,e.usersWithAccess)},e.loading=function(e){return e.loading},e.prototype.setInitialUsers=function(e){var t=this.store.selectSnapshot(nt.selectedEntries),n=t.map(function(e){return e.users}).reduce(function(e,t){return e.concat(t)},[]);n=(n=jo()(n)).filter(function(e){return!!e});var l=ko()(n,function(e){return e.id});t.length>1&&l.forEach(function(e){var n=t.map(function(t){return t.users.find(function(t){return t.id===e.id})}).filter(function(e){return!!e}).map(function(e){return Object.assign({},e.entry_permissions)});(t.length!==n.length||n.some(function(e){return!Ve()(e,n[0])}))&&(e.entry_permissions={varies:!0})}),e.patchState({usersWithAccess:jo()(l),original:l})},e.prototype.setUsers=function(e,t){e.patchState({usersWithAccess:t.users,original:jo()(t.users)})},e.prototype.updateUserPermissions=function(e,t){var n=e.getState().usersWithAccess;n.find(function(e){return e.id===t.user.id}).entry_permissions=t.permissions,e.patchState({usersWithAccess:n})},e.prototype.removeUser=function(e,t){var n=e.getState().usersWithAccess;n.find(function(e){return e.id===t.user.id}).removed=!0,e.patchState({usersWithAccess:n})},e.prototype.resetState=function(e){e.setState({loading:!1,usersWithAccess:[],original:[]})},e.prototype.saveChanges=function(e){var t=this;e.patchState({loading:!0});var n=e.getState(),l=this.store.selectSnapshot(nt.selectedEntries),i=n.usersWithAccess.filter(function(e){return!e.owns_entry}).filter(function(e){return!e.entry_permissions.varies||e.removed}).map(function(e){return{id:e.id,removed:e.removed,permissions:e.entry_permissions}});return this.sharesApi.updateUsers({entries:l.map(function(e){return e.id}),users:i}).pipe(Object(Te.a)(function(){return e.patchState({loading:!1})}),Object(Ae.a)(function(n){var l=n.users;e.patchState({usersWithAccess:l,original:jo()(l)}),t.updateEntriesInDriveStore(l)}))},e.prototype.shareEntries=function(e,t){var n=this;e.patchState({loading:!0});var l=Eo({},t.payload,{entries:this.store.selectSnapshot(nt.selectedEntries)});return this.sharesApi.shareEntries(l).pipe(Object(Te.a)(function(){return e.patchState({loading:!1})}),Object(Ae.a)(function(t){e.dispatch(new Do(t.users)),n.updateEntriesInDriveStore(t.users)},function(t){e.dispatch(new Fo(t.messages))}))},e.prototype.updateEntriesInDriveStore=function(e){var t=this.store.selectSnapshot(nt.selectedEntries).map(function(t){return t.users=e,t});this.store.dispatch(new Oe(t))},Object(Se.b)([Object(ke.a)(So),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"setInitialUsers",null),Object(Se.b)([Object(ke.a)(Do),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Do]),Object(Se.d)("design:returntype",void 0)],e.prototype,"setUsers",null),Object(Se.b)([Object(ke.a)(Ro),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Ro]),Object(Se.d)("design:returntype",void 0)],e.prototype,"updateUserPermissions",null),Object(Se.b)([Object(ke.a)(Io),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,Ro]),Object(Se.d)("design:returntype",void 0)],e.prototype,"removeUser",null),Object(Se.b)([Object(ke.a)(Ao),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"resetState",null),Object(Se.b)([Object(ke.a)(Po,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e.prototype,"saveChanges",null),Object(Se.b)([Object(ke.a)(To,{cancelUncompleted:!0}),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object,To]),Object(Se.d)("design:returntype",void 0)],e.prototype,"shareEntries",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"usersWithAccess",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"dirty",null),Object(Se.b)([Object(ke.e)(),Object(Se.d)("design:type",Function),Object(Se.d)("design:paramtypes",[Object]),Object(Se.d)("design:returntype",void 0)],e,"loading",null),Object(Se.b)([Object(ke.f)({name:"shareDialog",defaults:{usersWithAccess:[],original:[],loading:!1}})],e)}(),No=function(){function e(e,t,n){this.dialogRef=e,this.store=t,this.actions$=n,this.destroyed$=new on.a,this.errors=new vt.a({}),this.resetModel(),this.store.dispatch(new So),this.bindToShareError(),this.bindToShareModel()}return e.prototype.ngOnDestroy=function(){this.store.dispatch(new Ao),this.destroyed$.next(),this.destroyed$.complete()},e.prototype.share=function(){var e=this;this.store.dispatch(new To({emails:this.shareModel.emails.value,permissions:this.shareModel.permissions})).subscribe(function(){e.setErrorMessages(),e.resetModel()})},e.prototype.resetModel=function(){this.shareModel={emails:new zt.h([]),permissions:_o}},e.prototype.setErrorMessages=function(e){this.errors.next(e||{})},e.prototype.bindToShareModel=function(){var e=this;this.shareModel.emails.valueChanges.pipe(Object(Al.a)(this.destroyed$)).subscribe(function(){return e.setErrorMessages()})},e.prototype.bindToShareError=function(){var e=this;this.actions$.pipe(Object(Al.a)(this.destroyed$),Object(ke.j)(Fo)).subscribe(function(t){e.setErrorMessages(t.messages)})},Object(Se.b)([Object(ke.d)(Mo.loading),Object(Se.d)("design:type",Ol.a)],e.prototype,"loading$",void 0),e}(),Lo=function(){function e(e,t,n,l,i){this.dialogRef=e,this.store=t,this.toast=n,this.entriesApi=l,this.changeDetection=i,this.entryName=new zt.h,this.loading=new vt.a(!1),this.errors={}}return e.prototype.ngOnInit=function(){this.entry=this.store.selectSnapshot(nt.selectedEntries)[0],this.entryName.setValue(this.entry.name)},e.prototype.confirm=function(){var e=this,t=this.entryName.value;return t===this.entry.name?this.close():(this.loading.next(!0),this.entriesApi.rename(this.entry.id,{name:t}).pipe(Object(Te.a)(function(){return e.loading.next(!1)})).subscribe(function(){e.setErrors(),e.store.dispatch(new P(e.entry,t)),e.close()},function(t){return e.setErrors(t)}))},e.prototype.setErrors=function(e){this.loading.next(!1),this.errors=e?e.messages:{},this.changeDetection.detectChanges()},e.prototype.close=function(){this.dialogRef.close()},e}(),Vo=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),Uo=function(){return!0},zo=function(e){function t(t,n,l){var i=e.call(this,t)||this;return i.store=t,i.currentUser=n,i.shares=l,i.actions=[{viewName:"Preview",icon:"visibility",execute:function(){i.store.dispatch(new ce)},visible:function(){return!i.onlyFoldersSelected}},{viewName:"Manage People",icon:"person-add",showInCompact:!0,execute:function(){i.store.dispatch(new te(No,null,"share-dialog-container"))},visible:function(){return i.userHasPermission("edit")}},{viewName:"Get shareable link",icon:"link",execute:function(){i.store.dispatch(new te(yo,null,{panelClass:"share-link-dialog-container",autoFocus:!1}))},visible:function(){return!i.multipleEntriesSelected&&i.userHasPermission("edit")}},{viewName:"Rename",icon:"edit",execute:function(){i.store.dispatch(new te(Lo,null,"rename-entry-dialog-container"))},visible:function(){return!i.multipleEntriesSelected&&i.userHasPermission("edit")}},{viewName:"Add to my drive",icon:"add-box",execute:function(){i.store.dispatch(new be)},visible:Uo},{viewName:"Make a copy",icon:"content-copy",execute:function(){i.store.dispatch(new be)},visible:Uo},{viewName:"Download",icon:"file-download",execute:function(){i.store.dispatch(new de)},visible:function(){return i.userHasPermission("download")}},{viewName:"Delete",icon:"delete",showInCompact:!0,execute:function(){i.delete()},visible:Uo}],i}return Vo(t,e),t.prototype.userHasPermission=function(e){var t=this;return this.getSelectedEntries().every(function(n){var l=n.users.find(function(e){return e.id===t.currentUser.get("id")});return l&&(l.owns_entry||l.entry_permissions[e])})},t.prototype.delete=function(){var e=this,t=this.getSelectedEntries();this.store.selectSnapshot(nt.userCanEditSelectedEntries)?this.store.dispatch(new X):this.shares.detachUser(this.currentUser.get("id"),t.map(function(e){return e.id})).subscribe(function(){e.store.dispatch(new he(t))})},t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(ke.h),o.inject(De.a),o.inject(Oo))},token:t,providedIn:"root"}),t}(po),Bo=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),$o=function(){return!0},qo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.actions=[{viewName:"New Folder",icon:"create-new-folder",execute:function(){t.store.dispatch(new te(wl,null,"crupdate-folder-dialog-container"))},visible:$o,separatorAfter:!0},{viewName:"Upload Files",icon:"cloud-upload",execute:function(){t.openUploadWindow("file")},visible:$o},{viewName:"Upload Folder",icon:"upload-folder-custom",execute:function(){t.openUploadWindow("directory")},visible:$o}],t}return Bo(t,e),t.prototype.openUploadWindow=function(e){this.store.dispatch(new ve(e))},t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(ke.h))},token:t,providedIn:"root"}),t}(po),Wo=function(e){function t(t,n,l){var i=e.call(this)||this;return i.dialogRef=t,i.store=n,i.actions=l,i}return Object(Se.c)(t,e),t.prototype.ngOnInit=function(){var e=this,t=this.actions.pipe(Object(ke.i)(M)).subscribe(function(){e.loading.next(!1)}),n=this.actions.pipe(Object(ke.i)(F),Object(Tl.a)(1)).subscribe(function(){e.selectedFolder=null,e.close()});this.addSubs(n,t)},t.prototype.confirm=function(){var e=this;this.loading.next(!0),this.store.dispatch(new ee(this.selectedFolder.id)).subscribe(function(){e.loading.next(!1)})},Object(Se.b)([Object(ke.d)(nt.selectedEntries),Object(Se.d)("design:type",Ol.a)],t.prototype,"selectedEntries$",void 0),t}(vo),Ho=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),Go=function(){return!0},Yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.actions=[{viewName:"Preview",icon:"visibility",showInCompact:!0,execute:function(){t.store.dispatch(new ce)},visible:function(){return!t.onlyFoldersSelected}},{viewName:"Manage People",icon:"person-add",showInCompact:!0,execute:function(){t.store.dispatch(new te(No,null,"share-dialog-container"))},visible:Go},{viewName:"Get shareable link",icon:"link",execute:function(){t.store.dispatch(new te(yo,null,{panelClass:"share-link-dialog-container",autoFocus:!1}))},visible:function(){return!t.multipleEntriesSelected}},{viewName:"Add a star",icon:"star",execute:function(){t.store.dispatch(new pe(t.getSelectedEntries()))},visible:function(){return!t.allStarred}},{viewName:"Remove star",icon:"star-border",execute:function(){t.store.dispatch(new fe(t.getSelectedEntries()))},visible:function(){return t.allStarred}},{viewName:"New Folder",icon:"create-new-folder",execute:function(){t.store.dispatch(new te(wl,null,"crupdate-folder-dialog-container"))},visible:function(){var e=t.store.selectSnapshot(nt.selectedFolderId);return!t.multipleEntriesSelected&&!!e}},{viewName:"Move to",icon:"subdirectory-arrow-right",execute:function(){t.store.dispatch(new te(Wo,null,"move-entries-dialog-container"))},visible:Go},{viewName:"Rename",icon:"edit",execute:function(){t.store.dispatch(new te(Lo,null,"rename-entry-dialog-container"))},visible:function(){return!t.multipleEntriesSelected}},{viewName:"Make a copy",icon:"content-copy",execute:function(){t.store.dispatch(new be)},visible:Go},{viewName:"Download",icon:"file-download",separatorAfter:!0,execute:function(){t.store.dispatch(new de)},visible:Go},{viewName:"Delete",icon:"delete",showInCompact:!0,execute:function(){t.store.dispatch(new X)},visible:Go}],t}return Ho(t,e),t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(ke.h))},token:t,providedIn:"root"}),t}(po),Zo=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),Xo=function(){return!0},Ko=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.actions=[{viewName:"Empty Trash",icon:"delete-forever",execute:function(){t.emptyTrash()},visible:Xo}],t}return Zo(t,e),t.prototype.emptyTrash=function(){this.store.dispatch(new ne({title:"Empty Trash",body:"All files and folders in your trash will be permanently deleted.",bodyBold:"This action can not be undone.",ok:"Empty Trash"},new ue))},t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(ke.h))},token:t,providedIn:"root"}),t}(po),Jo=function(){function e(e,t,n){var l=this;this.store=e,this.injector=t,this.contextMenu=n,this.compact=!1,this.hasMoreActions$=new vt.a(!1),this.actions$=new vt.a([]),this.subscription=Object(Ji.b)(this.store.select(nt.activePage),this.store.select(nt.selectedEntry)).subscribe(function(e){l.setActions(e[0],e[1]),l.hasMoreActions$.next(l.actions$.value.some(function(e){return!e.showInCompact}))})}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.openMoreActionsMenu=function(){var e=this.store.selectSnapshot(nt.selectedEntryOrActiveFolder);this.contextMenu.open(je,this.moreActionsButton.nativeElement,{data:{entry:e}})},e.prototype.setActions=function(e,t){"trash"!==e.name||t?"trash"===e.name&&t?this.actions$.next(this.injector.get(mo).getActions()):"shares"===e.name&&t?this.actions$.next(this.injector.get(zo).getActions()):e.folder&&!t?this.actions$.next(this.injector.get(qo).getActions()):"starred"===e.name||"recent"===e.name?this.actions$.next(this.injector.get(Yo).getActions()):t?this.setActionsForEntry():this.actions$.next([]):this.actions$.next(this.injector.get(Ko).getActions())},e.prototype.setActionsForEntry=function(){this.store.selectSnapshot(nt.userOwnsActiveFolder)?this.actions$.next(this.injector.get(Yo).getActions()):this.actions$.next(this.injector.get(zo).getActions())},e}(),Qo=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function er(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,"button",[["class","context-menu-item"]],null,[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.parent.parent.context.$implicit.execute()&&l),l},null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](2,0,null,null,1,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](3,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](5,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](6,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n        "]))],function(e,t){e(t,3,0,t.parent.parent.context.$implicit.icon)},function(e,t){e(t,2,0,o["\u0275nov"](t,3).inline),e(t,7,0,t.parent.parent.context.$implicit.viewName)})}function tr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,16777216,null,null,7,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var l=!0;return"longpress"===t&&(l=!1!==o["\u0275nov"](e,2).show()&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,2)._handleKeydown(n)&&l),"touchend"===t&&(l=!1!==o["\u0275nov"](e,2)._handleTouchend()&&l),"click"===t&&(l=!1!==e.parent.parent.context.$implicit.execute()&&l),l},$t.d,$t.b)),o["\u0275did"](1,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),o["\u0275did"](2,147456,null,0,Ii.d,[nl.c,o.ElementRef,il.c,o.ViewContainerRef,o.NgZone,Wt.a,Ht.c,Ht.h,Ii.b,[2,ll.b],[2,Ii.a]],{message:[0,"message"]},null),o["\u0275ppd"](3,1),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](5,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](6,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275and"](0,null,null,0))],function(e,t){e(t,2,0,o["\u0275unv"](t,2,0,e(t,3,0,o["\u0275nov"](t.parent.parent.parent,0),t.parent.parent.context.$implicit.viewName))),e(t,6,0,t.parent.parent.context.$implicit.icon)},function(e,t){e(t,0,0,o["\u0275nov"](t,1).disabled||null,"NoopAnimations"===o["\u0275nov"](t,1)._animationMode),e(t,5,0,o["\u0275nov"](t,6).inline)})}function nr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"div",[["class","separator"]],null,null,null,null,null))],null,null)}function lr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,1,null,er)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n        "])),(e()(),o["\u0275and"](16777216,null,null,1,null,tr)),o["\u0275did"](6,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n        "])),(e()(),o["\u0275and"](16777216,null,null,1,null,nr)),o["\u0275did"](9,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){var n=t.component;e(t,3,0,!n.compact),e(t,6,0,n.compact&&t.parent.context.$implicit.showInCompact),e(t,9,0,!n.compact&&t.parent.context.$implicit.separatorAfter)},null)}function ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,lr)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.$implicit.visible())},null)}function or(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,16777216,[[1,0]],null,7,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var l=!0,i=e.component;return"longpress"===t&&(l=!1!==o["\u0275nov"](e,2).show()&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,2)._handleKeydown(n)&&l),"touchend"===t&&(l=!1!==o["\u0275nov"](e,2)._handleTouchend()&&l),"click"===t&&(l=!1!==i.openMoreActionsMenu()&&l),l},$t.d,$t.b)),o["\u0275did"](1,180224,[["moreActionsButton",4]],0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),o["\u0275did"](2,147456,null,0,Ii.d,[nl.c,o.ElementRef,il.c,o.ViewContainerRef,o.NgZone,Wt.a,Ht.c,Ht.h,Ii.b,[2,ll.b],[2,Ii.a]],{message:[0,"message"]},null),o["\u0275ppd"](3,1),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](5,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","more-vert"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](6,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275and"](0,null,null,0))],function(e,t){e(t,2,0,o["\u0275unv"](t,2,0,e(t,3,0,o["\u0275nov"](t.parent,0),"More actions"))),e(t,6,0,"more-vert")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).disabled||null,"NoopAnimations"===o["\u0275nov"](t,1)._animationMode),e(t,5,0,o["\u0275nov"](t,6).inline)})}function rr(e){return o["\u0275vid"](2,[o["\u0275pid"](0,Ki.a,[Xe.a]),o["\u0275qud"](671088640,1,{moreActionsButton:0}),(e()(),o["\u0275and"](16777216,null,null,2,null,ir)),o["\u0275did"](3,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,or)),o["\u0275did"](7,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,3,0,o["\u0275unv"](t,3,0,o["\u0275nov"](t,4).transform(n.actions$))),e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.compact&&n.hasMoreActions$)))},null)}var ar=function(){function e(e,t){this.store=e,this.contextMenu=t}return e.prototype.toggleViewMode=function(){this.store.dispatch(new le)},e.prototype.ToggleDetails=function(){this.store.dispatch(new ie)},e.prototype.openMoreActionsMenu=function(){var e=this.store.selectSnapshot(nt.selectedEntry);this.contextMenu.open(je,this.moreActionsButton.nativeElement,{data:{entry:e}})},Object(Se.b)([Object(ke.d)(nt.anythingSelected),Object(Se.d)("design:type",Ol.a)],e.prototype,"anythingSelected",void 0),Object(Se.b)([Object(ke.d)(nt.viewMode),Object(Se.d)("design:type",Ol.a)],e.prototype,"viewMode",void 0),Object(Se.b)([Object(ke.d)(nt.detailsOpen),Object(Se.d)("design:type",Ol.a)],e.prototype,"activityOpen",void 0),Object(Se.b)([Object(ke.d)(nt.multipleEntriesSelected),Object(Se.d)("design:type",Ol.a)],e.prototype,"multipleEntriesSelected$",void 0),e}(),sr=o["\u0275crt"]({encapsulation:2,styles:[["toolbar-actions{display:flex;align-items:center;color:#656565}toolbar-actions context-actions-container{border-right:1px solid #e0e0e0;padding-right:5px;margin-right:5px}toolbar-actions .always-visible-actions .active{color:#1565c0}"]],data:{}});function ur(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{moreActionsButton:0}),(e()(),o["\u0275eld"](1,0,null,null,1,"context-actions-container",[],[[2,"compact",null]],null,null,rr,Qo)),o["\u0275did"](2,180224,null,0,Jo,[ke.h,o.Injector,li],{compact:[0,"compact"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](4,0,null,null,17,"div",[["class","always-visible-actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,6,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.toggleViewMode()&&l),l},$t.d,$t.b)),o["\u0275did"](7,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](9,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](10,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](14,0,null,null,6,"button",[["mat-icon-button",""]],[[2,"active",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.ToggleDetails()&&l),l},$t.d,$t.b)),o["\u0275did"](15,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](18,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","info"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](19,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,2,0,!0),e(t,10,0,"list"===o["\u0275unv"](t,10,0,o["\u0275nov"](t,11).transform(n.viewMode))?"view-list":"view-module"),e(t,19,0,"info")},function(e,t){var n=t.component;e(t,1,0,o["\u0275nov"](t,2).compact),e(t,6,0,o["\u0275nov"](t,7).disabled||null,"NoopAnimations"===o["\u0275nov"](t,7)._animationMode),e(t,9,0,o["\u0275nov"](t,10).inline),e(t,14,0,o["\u0275unv"](t,14,0,o["\u0275nov"](t,16).transform(n.activityOpen)),o["\u0275nov"](t,15).disabled||null,"NoopAnimations"===o["\u0275nov"](t,15)._animationMode),e(t,18,0,o["\u0275nov"](t,19).inline)})}var cr=[{name:"file_size",viewName:"Size"},{name:"name",viewName:"Name"},{name:"updated_at",viewName:"Last Modified"},{name:"created_at",viewName:"Upload Date"},{name:"type",viewName:"Type"},{name:"extension",viewName:"Extension"}],dr=function(){function e(e){this.store=e,this.availableSorts=cr}return e.prototype.changeSort=function(e){this.store.dispatch(new ge({orderBy:e.name}))},e.prototype.changeDirection=function(e){this.store.dispatch(new ge({orderDir:e}))},e.prototype.sortIsActive=function(e){return this.store.selectSnapshot(nt.sortColumn)===e.name},e.prototype.directionIsActive=function(e){return this.store.selectSnapshot(nt.sortDirection)===e},e.prototype.getSortViewName=function(e){return this.availableSorts.find(function(t){return t.name===e}).viewName},Object(Se.b)([Object(ke.d)(nt.sortColumn),Object(Se.d)("design:type",Ol.a)],e.prototype,"sortColumn$",void 0),Object(Se.b)([Object(ke.d)(nt.activePage),Object(Se.d)("design:type",Ol.a)],e.prototype,"activePage$",void 0),e}(),pr=o["\u0275crt"]({encapsulation:2,styles:[["file-list-header{display:flex;align-items:center;border-bottom:1px solid #e0e0e0;padding-bottom:8px;margin:0 28px;color:rgba(0,0,0,.87)}file-list-header toolbar-actions{margin-left:auto}file-list-header .sort-header .label{color:rgba(0,0,0,.54);padding-right:3px}file-list-header .sort-header .arrow-icon{width:14px;height:14px;vertical-align:middle}file-list-header .sort-header button:disabled{color:rgba(0,0,0,.54);cursor:default}file-list-header .sort-header .mobile-sort-button-content,file-list-header .sort-header button:disabled .mat-icon{display:none}@media only screen and (max-width:450px){file-list-header .sort-header .label,file-list-header .sort-header .sort-button-content{display:none}file-list-header .sort-header .mobile-sort-button-content{display:inline-block}}.drive-sort-menu .mat-menu-item{padding-left:8px;line-height:35px;height:35px;font-size:1.5rem}.drive-sort-menu .mat-menu-item.active{color:#1565c0}.drive-sort-menu .mat-menu-item.active .mat-icon{visibility:visible;color:inherit}.drive-sort-menu .mat-menu-item .mat-icon{visibility:hidden;margin-right:0;width:20px;height:20px}.drive-sort-menu .separator{height:1px;background-color:#e0e0e0;margin:5px 0 20px}.drive-sort-menu .title{text-transform:uppercase;padding-left:32px;font-size:1.2rem;font-weight:500;margin-bottom:10px}"]],data:{}});function fr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"active",null],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==o["\u0275nov"](e,1)._checkDisabled(n)&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,1)._handleMouseEnter()&&l),"click"===t&&(l=!1!==i.changeSort(e.context.$implicit)&&l),l},uo.c,uo.b)),o["\u0275did"](1,180224,[[1,4]],0,co.d,[o.ElementRef,Bt.DOCUMENT,Ht.h,[2,co.h]],null,null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](3,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","check"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](4,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](6,0,null,0,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](8,null,["",""])),(e()(),o["\u0275ted"](-1,0,["\n        "]))],function(e,t){e(t,4,0,"check")},function(e,t){e(t,0,0,t.component.sortIsActive(t.context.$implicit),o["\u0275nov"](t,1)._highlighted,o["\u0275nov"](t,1)._triggersSubmenu,o["\u0275nov"](t,1)._getTabIndex(),o["\u0275nov"](t,1).disabled.toString(),o["\u0275nov"](t,1).disabled||null),e(t,3,0,o["\u0275nov"](t,4).inline),e(t,8,0,t.context.$implicit.viewName)})}function hr(e){return o["\u0275vid"](2,[o["\u0275pid"](0,Ki.a,[Xe.a]),(e()(),o["\u0275eld"](1,0,null,null,66,"div",[["class","sort-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](3,0,null,null,2,"span",[["class","label"],["trans",""]],null,null,null,null,null)),o["\u0275did"](4,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Sort by"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](7,16777216,null,null,17,"button",[["aria-haspopup","true"],["class","no-style"]],[[8,"disabled",0],[1,"aria-expanded",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(e,t,n){var l=!0;return"mousedown"===t&&(l=!1!==o["\u0275nov"](e,8)._handleMousedown(n)&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,8)._handleKeydown(n)&&l),"click"===t&&(l=!1!==o["\u0275nov"](e,8)._handleClick(n)&&l),l},null,null)),o["\u0275did"](8,1196032,null,0,co.f,[nl.c,o.ElementRef,o.ViewContainerRef,co.b,[2,co.c],[8,null],[2,ll.b],Ht.h],{menu:[0,"menu"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](11,0,null,null,9,"span",[["class","sort-button-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](13,0,null,null,3,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](14,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275ppd"](16,1),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](18,0,null,null,1,"mat-icon",[["class","arrow-icon mat-icon"],["role","img"],["svgIcon","keyboard-arrow-down"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](19,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](22,0,null,null,1,"mat-icon",[["class","mobile-sort-button-content mat-icon"],["role","img"],["svgIcon","sort"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](23,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](26,0,null,null,40,"mat-menu",[["class","drive-sort-menu"]],null,null,null,uo.d,uo.a)),o["\u0275did"](27,1294336,[["menu",4]],2,co.c,[o.ElementRef,o.NgZone,co.a],{panelClass:[0,"panelClass"]},null),o["\u0275qud"](603979776,1,{items:1}),o["\u0275qud"](335544320,2,{lazyContent:0}),o["\u0275prd"](2048,null,co.h,null,[co.c]),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](32,0,null,0,2,"div",[["class","title"],["trans",""]],null,null,null,null,null)),o["\u0275did"](33,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Direction"])),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](36,0,null,0,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"active",null],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==o["\u0275nov"](e,37)._checkDisabled(n)&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,37)._handleMouseEnter()&&l),"click"===t&&(l=!1!==i.changeDirection("asc")&&l),l},uo.c,uo.b)),o["\u0275did"](37,180224,[[1,4]],0,co.d,[o.ElementRef,Bt.DOCUMENT,Ht.h,[2,co.h]],null,null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](39,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","check"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](40,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](42,0,null,0,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](43,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Ascending"])),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](47,0,null,0,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"active",null],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==o["\u0275nov"](e,48)._checkDisabled(n)&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,48)._handleMouseEnter()&&l),"click"===t&&(l=!1!==i.changeDirection("desc")&&l),l},uo.c,uo.b)),o["\u0275did"](48,180224,[[1,4]],0,co.d,[o.ElementRef,Bt.DOCUMENT,Ht.h,[2,co.h]],null,null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](50,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","check"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](51,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](53,0,null,0,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](54,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Descending"])),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](58,0,null,0,0,"div",[["class","separator"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](60,0,null,0,2,"div",[["class","title"],["trans",""]],null,null,null,null,null)),o["\u0275did"](61,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Sort By"])),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275and"](16777216,null,0,1,null,fr)),o["\u0275did"](65,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](69,0,null,null,1,"toolbar-actions",[],null,null,null,ur,sr)),o["\u0275did"](70,49152,null,0,ar,[ke.h,li],null,null)],function(e,t){var n=t.component;e(t,8,0,o["\u0275nov"](t,27)),e(t,19,0,"keyboard-arrow-down"),e(t,23,0,"sort"),e(t,27,0,"drive-sort-menu"),e(t,40,0,"check"),e(t,51,0,"check"),e(t,65,0,n.availableSorts)},function(e,t){var n,l=t.component;e(t,7,0,null==(n=o["\u0275unv"](t,7,0,o["\u0275nov"](t,9).transform(l.activePage$)))?null:n.disableSort,o["\u0275nov"](t,8).menuOpen||null),e(t,14,0,o["\u0275unv"](t,14,0,e(t,16,0,o["\u0275nov"](t,0),l.getSortViewName(o["\u0275unv"](t,14,0,o["\u0275nov"](t,15).transform(l.sortColumn$)))))),e(t,18,0,o["\u0275nov"](t,19).inline),e(t,22,0,o["\u0275nov"](t,23).inline),e(t,36,0,l.directionIsActive("asc"),o["\u0275nov"](t,37)._highlighted,o["\u0275nov"](t,37)._triggersSubmenu,o["\u0275nov"](t,37)._getTabIndex(),o["\u0275nov"](t,37).disabled.toString(),o["\u0275nov"](t,37).disabled||null),e(t,39,0,o["\u0275nov"](t,40).inline),e(t,47,0,l.directionIsActive("desc"),o["\u0275nov"](t,48)._highlighted,o["\u0275nov"](t,48)._triggersSubmenu,o["\u0275nov"](t,48)._getTabIndex(),o["\u0275nov"](t,48).disabled.toString(),o["\u0275nov"](t,48).disabled||null),e(t,50,0,o["\u0275nov"](t,51).inline)})}var mr=n("sgCb"),gr=function(e,t,n,l){return new(n||(n=Promise))(function(i,o){function r(e){try{s(l.next(e))}catch(e){o(e)}}function a(e){try{s(l.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(r,a)}s((l=l.apply(e,t||[])).next())})},br=function(e,t){var n,l,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,l&&(i=2&o[0]?l.return:o[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,o[1])).done)return i;switch(l=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,l=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(i=(i=r.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1],i=o;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(o);break}i[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e],l=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function vr(e){return new Promise(function(t){e.file(function(n){t(new mr.a(n,e.fullPath))})})}var yr=function(){function e(e){this.el=e,this.filesDropped=new o.EventEmitter,this.disableDropzoneClick=!1,this.disableDropzone=!1}return e.prototype.ngOnInit=function(){var e=this,t=this.el.nativeElement;t.addEventListener("dragenter",function(t){return e.handleDragEnter(t)}),t.addEventListener("dragover",function(t){return e.handleDragOver(t)}),t.addEventListener("dragleave",function(t){return e.handleDragLeave(t)}),t.addEventListener("drop",function(t){return e.handleDrop(t)}),this.disableDropzoneClick||t.addEventListener("click",function(){return e.handleClick()})},e.prototype.ngOnDestroy=function(){this.removeClassesFromDropzone()},e.prototype.handleClick=function(){var e=this;this.disableDropzone||Object(Qe.a)().then(function(t){e.emitUploadEvent(t)})},e.prototype.handleDragEnter=function(e){this.dropzoneDisabled(e)||this.el.nativeElement.classList.add("file-over-dropzone")},e.prototype.handleDragOver=function(e){return e.preventDefault&&e.preventDefault(),e.dataTransfer.dropEffect=this.dropzoneDisabled(e)?"none":"move",!1},e.prototype.handleDragLeave=function(e){var t=document.elementFromPoint(e.clientX,e.clientY);this.el.nativeElement.contains(t)||this.removeClassesFromDropzone()},e.prototype.handleDrop=function(e){return t=this,void 0,l=function(){var t,n;return function(e,t){var n,l,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,l&&(i=2&o[0]?l.return:o[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,o[1])).done)return i;switch(l=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,l=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(i=(i=r.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1],i=o;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(o);break}i[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e],l=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,function(l){switch(l.label){case 0:return e.stopPropagation(),e.preventDefault(),this.removeClassesFromDropzone(),this.dropzoneDisabled(e)||!e.dataTransfer.items?[2]:(t=Array.from(e.dataTransfer.items).filter(function(e){return"file"===e.kind}).map(function(e){return e.webkitGetAsEntry()})).length?(n=this.emitUploadEvent,[4,function(e){return gr(this,void 0,void 0,function(){var t,n,l,i,o,r,a,s,u;return br(this,function(c){switch(c.label){case 0:for(l in t=[],n=[],e)n.push(l);i=0,c.label=1;case 1:return i<n.length?(o=e[n[i]]).isDirectory?[3,3]:(a=(r=t).push,[4,vr(o)]):[3,6];case 2:return a.apply(r,[c.sent()]),[3,5];case 3:return u=(s=t).concat,[4,function e(t,n){return void 0===n&&(n=[]),gr(this,void 0,void 0,function(){var l,i,o,r,a,s,u;return br(this,function(c){switch(c.label){case 0:return[4,(d=t,new Promise(function(e){d.createReader().readEntries(function(t){return e(t)})}))];case 1:for(o in l=c.sent(),i=[],l)i.push(o);r=0,c.label=2;case 2:return r<i.length?(a=l[i[r]]).isDirectory?[4,e(a,n)]:[3,4]:[3,7];case 3:return c.sent(),[3,6];case 4:return u=(s=n).push,[4,vr(a)];case 5:u.apply(s,[c.sent()]),c.label=6;case 6:return r++,[3,2];case 7:return[2,n]}var d})})}(o)];case 4:t=u.apply(s,[c.sent()]),c.label=5;case 5:return i++,[3,1];case 6:return[2,t]}})})}(t)]):[3,2];case 1:n.apply(this,[l.sent()]),l.label=2;case 2:return[2]}})},new((n=void 0)||(n=Promise))(function(e,i){function o(e){try{a(l.next(e))}catch(e){i(e)}}function r(e){try{a(l.throw(e))}catch(e){i(e)}}function a(t){t.done?e(t.value):new n(function(e){e(t.value)}).then(o,r)}a((l=l.apply(t,[])).next())});var t,n,l},e.prototype.emitUploadEvent=function(e){this.filesDropped.emit(e)},e.prototype.removeClassesFromDropzone=function(){this.el.nativeElement.classList.remove("file-over-dropzone")},e.prototype.dropzoneDisabled=function(e){var t=e.dataTransfer.types.find(function(e){return"files"===e.toLowerCase()});return this.disableDropzone||!t},e}(),_r=function(){function e(){this.threshold=50}return e.prototype.ngOnInit=function(){var e=this;Object(Sl.a)(this.el.nativeElement,"scroll",{capture:!0}).pipe(Object(al.a)(20)).subscribe(function(t){return e.onScroll(t.target)})},e.prototype.onScroll=function(e){if(this.canLoadMore()&&!this.isLoading()){var t=parseInt(this.threshold);e.scrollTop+e.offsetHeight>=e.scrollHeight-t&&this.loadMoreItems()}},e}(),wr=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function l(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),Or=function(e){function t(t,n){var l=e.call(this)||this;return l.el=t,l.store=n,l}return wr(t,e),t.prototype.loadMoreItems=function(){var e=this.store.selectSnapshot(nt.currentPage)+1;this.store.dispatch(new me({page:e}))},t.prototype.isLoading=function(){return this.store.selectSnapshot(nt.loading)},t.prototype.canLoadMore=function(){return this.store.selectSnapshot(nt.canLoadMoreEntries)},t}(_r),xr=function(){function e(e){this.el=e}return e.prototype.ngAfterViewInit=function(){var e=this;this.selectedEntryIds.subscribe(function(t){var n=e.el.nativeElement.querySelectorAll(".drive-entry");n.length&&Array.from(n).forEach(function(e){t.indexOf(parseInt(e.dataset.id,10))>-1?e.classList.add("selected"):e.classList.remove("selected")})})},Object(Se.b)([Object(ke.d)(nt.selectedEntryIds),Object(Se.d)("design:type",Ol.a)],e.prototype,"selectedEntryIds",void 0),e}(),jr=n("WNgX"),Cr=n("FBzJ"),kr=function(){function e(e){this.store=e,this.className="files-grid-item-footer"}return Object.defineProperty(e.prototype,"dragging",{get:function(){return!this.store.selectSnapshot(nt.dragging)},enumerable:!0,configurable:!0}),Object(Se.b)([Object(ke.d)(nt.selectedEntries),Object(Se.d)("design:type",Ol.a)],e.prototype,"entries",void 0),e}(),Er=o["\u0275crt"]({encapsulation:2,styles:[["entry-drag-preview{position:fixed;top:0;left:0;z-index:10;background-color:#e8f0fe;color:#1976d2;width:185px;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);pointer-events:none}entry-drag-preview .selected-entry-count{width:22px;height:22px;line-height:22px;text-align:center;font-weight:500;background-color:#689f38;color:#fff;position:absolute;top:-7px;right:-7px;border-radius:50%;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}"]],data:{}});function Sr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","selected-entry-count"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.parent.context.ngIf.length)})}function Rr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](3,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](5,0,null,null,1,"div",[["class","text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Sr)),o["\u0275did"](9,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,t.parent.context.ngIf[0].type),e(t,9,0,t.parent.context.ngIf.length>1)},function(e,t){e(t,6,0,t.parent.context.ngIf[0].name)})}function Ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Rr)),o["\u0275did"](3,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.ngIf[0])},null)}function Dr(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,2,null,Ir)),o["\u0275did"](1,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.entries)))},null)}var Pr=function(){function e(e,t,n,l,i,o,r){this.store=e,this.route=t,this.currentUser=n,this.localStorage=l,this.domCache=i,this.breakpoints=o,this.settings=r,this.subscriptions=[]}return e.prototype.ngOnInit=function(){var e=this;this.setViewMode(),this.cacheDemoElements(),this.observeBreakpointChanges(),this.store.dispatch(new B),this.store.dispatch(new $),this.store.dispatch(new xe(this.currentUser.getModel())),this.currentUser.userChanged.subscribe(function(t){e.store.dispatch(new xe(t))})},e.prototype.ngOnDestroy=function(){this.store.dispatch(we),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[]},e.prototype.uploadFiles=function(e){this.store.dispatch(new re(e))},e.prototype.toggleSidebar=function(){this.store.dispatch(new oe)},e.prototype.cacheDemoElements=function(){this.domCache.filesCont=this.filesContainer.nativeElement,this.domCache.scrollCont=this.scrollContainer.nativeElement,this.domCache.dragPreview=this.dragPreview.nativeElement},e.prototype.setViewMode=function(){this.store.dispatch(new le(this.localStorage.get("bedesk.viewMode","grid")))},e.prototype.observeBreakpointChanges=function(){var e=this,t=this.breakpoints.observe("(max-width: 1100px)").subscribe(function(t){e.store.dispatch(new z({isMobile:t.matches}))});this.subscriptions.push(t)},Object(Se.b)([Object(ke.d)(nt.dragging),Object(Se.d)("design:type",Ol.a)],e.prototype,"dragging",void 0),Object(Se.b)([Object(ke.d)(nt.detailsOpen),Object(Se.d)("design:type",Ol.a)],e.prototype,"activityOpen$",void 0),Object(Se.b)([Object(ke.d)(nt.sidebarOpen),Object(Se.d)("design:type",Ol.a)],e.prototype,"sidebarOpen$",void 0),Object(Se.b)([Object(ke.d)(nt.loading),Object(Se.d)("design:type",Ol.a)],e.prototype,"loading$",void 0),Object(Se.b)([Object(ke.d)(nt.isMobile),Object(Se.d)("design:type",Ol.a)],e.prototype,"isMobile$",void 0),Object(Se.b)([Object(ke.d)(nt.canUpload),Object(Se.d)("design:type",Ol.a)],e.prototype,"canUpload$",void 0),e}(),Ar=n("vGXY"),Tr=o["\u0275crt"]({encapsulation:2,styles:[["drive{display:block;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}drive material-navbar{box-shadow:none;height:65px}drive .loading-overlay-container{position:relative;height:calc(100% - 106px)}drive .has-ad ad-host{margin-top:25px}drive .has-ad .loading-overlay-container{height:calc(100% - 281px)}drive .mat-sidenav-container{width:100%;height:calc(100% - 65px)}drive .mat-sidenav-container .left-sidebar{width:220px;flex:0 0 220px;border-right:1px solid #e0e0e0}drive .mat-sidenav-container .right-sidebar{width:300px;flex:0 0 300px;border-left:1px solid #e0e0e0;background-color:#fff;color:rgba(0,0,0,.87)}drive .mat-sidenav-container .mat-sidenav-content{position:relative;width:auto;overflow:hidden;height:100%;background-color:#fff}drive .files-container{height:100%;border:2px solid transparent;overflow-x:hidden;overflow-y:visible;position:relative;padding:26px}drive .files-container.dragging .selected{opacity:.4}drive .files-container.file-over-dropzone{border-color:#1976d2;background-color:#e8f0fe}"]],data:{}});function Fr(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{scrollContainer:0}),o["\u0275qud"](402653184,2,{filesContainer:0}),o["\u0275qud"](402653184,3,{dragPreview:0}),(e()(),o["\u0275eld"](3,0,null,null,6,"material-navbar",[["menuPosition","drive-navbar"]],null,[[null,"toggleButtonClick"]],function(e,t,n){var l=!0;return"toggleButtonClick"===t&&(l=!1!==e.component.toggleSidebar()&&l),l},Xn.b,Xn.a)),o["\u0275did"](4,49152,null,0,Kn.a,[Ye.a,De.a],{menuPosition:[0,"menuPosition"],showToggleButton:[1,"showToggleButton"]},{toggleButtonClick:"toggleButtonClick"}),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](7,0,null,0,1,"main-searchbar",[["class","nav-searchbar"]],null,null,null,bl,pl)),o["\u0275did"](8,114688,null,0,dl,[ke.h,Fe],null,null),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](11,0,null,null,57,"mat-sidenav-container",[["class","mat-drawer-container mat-sidenav-container"]],[[2,"mat-drawer-container-explicit-backdrop",null]],null,null,vl.d,vl.b)),o["\u0275did"](12,1490944,null,2,yl.f,[[2,ll.b],o.ElementRef,o.NgZone,o.ChangeDetectorRef,yl.a,[2,Gt.a]],null,null),o["\u0275qud"](603979776,4,{_drawers:1}),o["\u0275qud"](335544320,5,{_content:0}),(e()(),o["\u0275ted"](-1,2,["\n    "])),(e()(),o["\u0275eld"](16,0,null,0,7,"mat-sidenav",[["class","left-sidebar mat-drawer mat-sidenav"],["tabIndex","-1"]],[[40,"@transform",0],[1,"align",0],[2,"mat-drawer-end",null],[2,"mat-drawer-over",null],[2,"mat-drawer-push",null],[2,"mat-drawer-side",null],[2,"mat-sidenav-fixed",null],[4,"top","px"],[4,"bottom","px"]],[["component","@transform.start"],["component","@transform.done"]],function(e,t,n){var l=!0;return"component:@transform.start"===t&&(l=!1!==o["\u0275nov"](e,17)._onAnimationStart(n)&&l),"component:@transform.done"===t&&(l=!1!==o["\u0275nov"](e,17)._onAnimationEnd(n)&&l),l},vl.f,vl.a)),o["\u0275did"](17,3325952,[[4,4]],0,yl.e,[o.ElementRef,Ht.i,Ht.h,Wt.a,o.NgZone,[2,Bt.DOCUMENT]],{mode:[0,"mode"],opened:[1,"opened"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](21,0,null,0,1,"sidebar",[],null,null,null,ji,xi)),o["\u0275did"](22,49152,null,0,Oi,[Me,ke.h],null,null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,2,["\n    "])),(e()(),o["\u0275eld"](25,0,null,0,7,"mat-sidenav",[["class","right-sidebar mat-drawer mat-sidenav"],["position","end"],["tabIndex","-1"]],[[40,"@transform",0],[1,"align",0],[2,"mat-drawer-end",null],[2,"mat-drawer-over",null],[2,"mat-drawer-push",null],[2,"mat-drawer-side",null],[2,"mat-sidenav-fixed",null],[4,"top","px"],[4,"bottom","px"]],[["component","@transform.start"],["component","@transform.done"]],function(e,t,n){var l=!0;return"component:@transform.start"===t&&(l=!1!==o["\u0275nov"](e,26)._onAnimationStart(n)&&l),"component:@transform.done"===t&&(l=!1!==o["\u0275nov"](e,26)._onAnimationEnd(n)&&l),l},vl.f,vl.a)),o["\u0275did"](26,3325952,[[4,4]],0,yl.e,[o.ElementRef,Ht.i,Ht.h,Wt.a,o.NgZone,[2,Bt.DOCUMENT]],{position:[0,"position"],mode:[1,"mode"],opened:[2,"opened"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](30,0,null,0,1,"details-sidebar",[],null,null,null,Wi,zi)),o["\u0275did"](31,49152,null,0,Ui,[ke.h],null,null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,2,["\n    "])),(e()(),o["\u0275eld"](34,0,null,1,33,"mat-sidenav-content",[["class","mat-drawer-content mat-sidenav-content"],["driveHammerInteractions",""]],[[2,"has-ad",null],[4,"margin-left","px"],[4,"margin-right","px"]],null,null,vl.e,vl.c)),o["\u0275did"](35,1097728,[[5,4]],0,yl.g,[o.ChangeDetectorRef,yl.f],null,null),o["\u0275did"](36,212992,null,1,Hi,[o.NgZone,o.ElementRef,ke.h,Zi,Xi,Gi],null,null),o["\u0275qud"](603979776,6,{gridItems:1}),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](39,0,null,0,1,"ad-host",[["slot","ads.drive"]],[[8,"id",0]],null,null,Fn,Tn)),o["\u0275did"](40,114688,null,0,Pn.a,[o.ElementRef,o.Renderer2,Ye.a,De.a,An.a],{slot:[0,"slot"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](42,0,null,0,1,"drive-toolbar",[],null,null,null,so,ao)),o["\u0275did"](43,49152,null,0,ro,[],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](45,0,null,0,1,"file-list-header",[],null,null,null,hr,pr)),o["\u0275did"](46,49152,null,0,dr,[ke.h],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](48,0,null,0,18,"div",[["class","loading-overlay-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](50,0,[[2,0],[1,0],["filesContainer",1],["scrollContainer",1]],null,11,"div",[["class","files-container"],["contextMenu","entry"],["driveInfiniteScroll",""],["fileDropzone",""],["toggleSelectedClass",""]],[[2,"dragging",null]],[[null,"filesDropped"]],function(e,t,n){var l=!0;return"filesDropped"===t&&(l=!1!==e.component.uploadFiles(n)&&l),l},null,null)),o["\u0275did"](51,81920,null,0,ei,[o.ElementRef,li,ii],{params:[0,"params"],disableContextMenu:[1,"disableContextMenu"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275did"](53,212992,null,0,yr,[o.ElementRef],{disableDropzoneClick:[0,"disableDropzoneClick"],disableDropzone:[1,"disableDropzone"]},{filesDropped:"filesDropped"}),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275did"](55,81920,null,0,Or,[o.ElementRef,ke.h],null,null),o["\u0275did"](56,4210688,null,0,xr,[o.ElementRef],null,null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](59,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),o["\u0275did"](60,212992,null,0,Jt.t,[Jt.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](63,0,null,null,2,"loading-indicator",[["class","overlay"]],[[40,"@visibility",0]],null,null,jr.b,jr.a)),o["\u0275did"](64,49152,null,0,Cr.a,[],{isVisible:[0,"isVisible"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,0,["\n\n    "])),(e()(),o["\u0275ted"](-1,2,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](70,0,[[3,0]],null,1,"entry-drag-preview",[],[[8,"className",0],[2,"hidden",null]],null,null,Dr,Er)),o["\u0275did"](71,49152,null,0,kr,[ke.h],null,null)],function(e,t){var n=t.component;e(t,4,0,"drive-navbar",o["\u0275unv"](t,4,1,o["\u0275nov"](t,5).transform(n.isMobile$))),e(t,8,0),e(t,12,0),e(t,17,0,o["\u0275unv"](t,17,0,o["\u0275nov"](t,18).transform(n.isMobile$))?"over":"side",o["\u0275unv"](t,17,1,o["\u0275nov"](t,19).transform(n.sidebarOpen$))),e(t,26,0,"end",o["\u0275unv"](t,26,1,o["\u0275nov"](t,27).transform(n.isMobile$))?"over":"side",o["\u0275unv"](t,26,2,o["\u0275nov"](t,28).transform(n.activityOpen$))),e(t,36,0),e(t,40,0,"ads.drive"),e(t,51,0,"entry",!o["\u0275unv"](t,51,1,o["\u0275nov"](t,52).transform(n.canUpload$))),e(t,53,0,!0,!o["\u0275unv"](t,53,1,o["\u0275nov"](t,54).transform(n.canUpload$))),e(t,55,0),e(t,60,0),e(t,64,0,o["\u0275unv"](t,64,0,o["\u0275nov"](t,65).transform(n.loading$)))},function(e,t){var n=t.component;e(t,11,0,o["\u0275nov"](t,12)._backdropOverride),e(t,16,0,o["\u0275nov"](t,17)._animationState,null,"end"===o["\u0275nov"](t,17).position,"over"===o["\u0275nov"](t,17).mode,"push"===o["\u0275nov"](t,17).mode,"side"===o["\u0275nov"](t,17).mode,o["\u0275nov"](t,17).fixedInViewport,o["\u0275nov"](t,17).fixedInViewport?o["\u0275nov"](t,17).fixedTopGap:null,o["\u0275nov"](t,17).fixedInViewport?o["\u0275nov"](t,17).fixedBottomGap:null),e(t,25,0,o["\u0275nov"](t,26)._animationState,null,"end"===o["\u0275nov"](t,26).position,"over"===o["\u0275nov"](t,26).mode,"push"===o["\u0275nov"](t,26).mode,"side"===o["\u0275nov"](t,26).mode,o["\u0275nov"](t,26).fixedInViewport,o["\u0275nov"](t,26).fixedInViewport?o["\u0275nov"](t,26).fixedTopGap:null,o["\u0275nov"](t,26).fixedInViewport?o["\u0275nov"](t,26).fixedBottomGap:null),e(t,34,0,n.settings.has("ads.drive"),o["\u0275nov"](t,35)._container._contentMargins.left,o["\u0275nov"](t,35)._container._contentMargins.right),e(t,39,0,o["\u0275nov"](t,40).randomId),e(t,50,0,o["\u0275unv"](t,50,0,o["\u0275nov"](t,57).transform(n.dragging))),e(t,63,0,o["\u0275nov"](t,64).isVisible),e(t,70,0,o["\u0275nov"](t,71).className,o["\u0275nov"](t,71).dragging)})}var Mr=o["\u0275ccf"]("drive",Pr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"drive",[],null,null,null,Fr,Tr)),o["\u0275did"](1,245760,null,0,Pr,[ke.h,Jt.a,De.a,ze,Gi,Ar.a,Ye.a],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),Nr=function(){function e(){this.driveEntry=!0}return Object.defineProperty(e.prototype,"fileId",{get:function(){return this.entry.id},enumerable:!0,configurable:!0}),e}(),Lr=o["\u0275crt"]({encapsulation:2,styles:[["files-grid{display:flex;flex-wrap:wrap;align-content:start;margin:-8px}files-grid:empty{margin:0}files-grid-item{box-shadow:0 1px 5px rgba(50,50,50,.1);border:1px solid #e0e0e0;background-color:#fff;flex:0 0 auto;margin:8px;border-radius:3px;transition:opacity .2s ease-in-out}@media only screen and (max-width:360px){files-grid-item{width:calc(100% - 16px)}}@media only screen and (min-width:360px) and (max-width:600px){files-grid-item{width:calc(50% - 16px)}}@media only screen and (min-width:600px) and (max-width:950px){files-grid-item{width:calc(33.33333333% - 16px)}}@media only screen and (min-width:950px) and (max-width:1200px){files-grid-item{width:calc(25% - 16px)}}@media only screen and (min-width:1200px) and (max-width:1470px){files-grid-item{width:calc(20% - 16px)}}@media only screen and (min-width:1470px){files-grid-item{width:calc(16.66666667% - 16px)}}files-grid-item.selected .files-grid-item-footer{background-color:#e8f0fe;color:#1976d2}files-grid-item .preview-container{width:100%;padding-top:calc(100% - 48px);position:relative}files-grid-item .preview-container .preview{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0}files-grid-item .preview-container .preview>file-icon{width:74px;height:74px;position:absolute;top:0;left:0;bottom:0;right:0;margin:auto}files-grid-item .preview-container .preview>img{width:auto;max-width:100%;height:100%;margin:auto;-o-object-fit:cover;object-fit:cover}.files-grid-item-footer{display:flex;align-items:center;padding:16px}.files-grid-item-footer file-icon{width:16px;height:16px;margin-right:16px}.files-grid-item-footer .text{line-height:16px;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgba(0,0,0,.87)}"]],data:{}});function Vr(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","preview-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,1,"file-thumbnail",[["class","preview"]],null,null,null,Ri,ki)),o["\u0275did"](3,49152,null,0,Ci,[Me,Ye.a],{file:[0,"file"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](6,0,null,null,7,"figcaption",[["class","files-grid-item-footer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](8,0,null,null,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](9,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](11,0,null,null,1,"div",[["class","text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.entry),e(t,9,0,n.entry.type)},function(e,t){e(t,12,0,t.component.entry.name)})}var Ur=function(){function e(){}return e.prototype.trackById=function(e,t){return t.id},e}(),zr=o["\u0275crt"]({encapsulation:2,styles:[["files-grid{display:flex;flex-wrap:wrap;align-content:start;margin:-8px}files-grid:empty{margin:0}"]],data:{}});function Br(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"files-grid-item",[],[[2,"drive-entry",null],[1,"data-id",0]],null,null,Vr,Lr)),o["\u0275did"](1,81920,null,0,ei,[o.ElementRef,li,ii],{params:[0,"params"]},null),o["\u0275pod"](2,{type:0,entry:1}),o["\u0275did"](3,49152,null,0,Nr,[],{entry:[0,"entry"]},null)],function(e,t){e(t,1,0,e(t,2,0,"entry",t.context.$implicit)),e(t,3,0,t.context.$implicit)},function(e,t){e(t,0,0,o["\u0275nov"](t,3).driveEntry,o["\u0275nov"](t,3).fileId)})}function $r(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Br)),o["\u0275did"](1,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,1,0,n.entries,n.trackById)},null)}var qr=n("BHnd"),Wr=n("y4qS"),Hr=n("m46K"),Gr=n("OkvK"),Yr=n("pIm3"),Zr=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){},e.prototype.sortChange=function(e){this.store.dispatch(new ge({orderBy:e.active,orderDir:e.direction}))},e}(),Xr=o["\u0275crt"]({encapsulation:2,styles:[["files-list{display:block}files-list .mat-table{width:100%}files-list .mat-table .mat-row.selected{background-color:#e8f0fe}files-list .mat-table .mat-column-image{width:60px}files-list .mat-table .mat-column-image file-thumbnail{background-color:transparent}files-list .mat-table .mat-column-image file-icon{margin-top:3px;width:35px;height:35px}files-list .mat-table .mat-column-image img{width:35px;height:35px;max-width:none;-o-object-fit:cover;object-fit:cover}files-list .mat-table td.mat-cell:first-child,files-list .mat-table td.mat-footer-cell:first-child,files-list .mat-table th.mat-header-cell:first-child{padding-left:8px}files-list .mat-table td.mat-cell:last-child,files-list .mat-table td.mat-footer-cell:last-child,files-list .mat-table th.mat-header-cell:last-child{padding-right:8px}@media only screen and (max-width:768px){files-list .mat-table .mat-column-size,files-list .mat-table .mat-column-updated,files-list .mat-table .mat-header-row{display:none}}"]],data:{}});function Kr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,qr.e,[Wr.d,o.ElementRef],null,null),(e()(),o["\u0275ted"](-1,null,[" "]))],null,null)}function Jr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,qr.a,[Wr.d,o.ElementRef],null,null),(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](3,0,null,null,1,"file-thumbnail",[],null,null,null,Ri,ki)),o["\u0275did"](4,49152,null,0,Ci,[Me,Ye.a],{file:[0,"file"]},null),(e()(),o["\u0275ted"](-1,null,[" "]))],function(e,t){e(t,4,0,t.context.$implicit)},null)}function Qr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"th",[["class","mat-header-cell"],["mat-header-cell",""],["mat-sort-header",""],["role","columnheader"]],[[1,"aria-sort",0],[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,2)._handleClick()&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!0)&&l),"longpress"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!0)&&l),"mouseleave"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!1)&&l),l},Hr.b,Hr.a)),o["\u0275did"](1,16384,null,0,qr.e,[Wr.d,o.ElementRef],null,null),o["\u0275did"](2,245760,null,0,Gr.c,[Gr.d,o.ChangeDetectorRef,[2,Gr.b],[2,Wr.d]],{id:[0,"id"]},null),(e()(),o["\u0275ted"](-1,0,[" Name "]))],function(e,t){e(t,2,0,"")},function(e,t){e(t,0,0,o["\u0275nov"](t,2)._getAriaSortAttribute(),o["\u0275nov"](t,2)._isDisabled())})}function ea(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,qr.a,[Wr.d,o.ElementRef],null,null),(e()(),o["\u0275ted"](2,null,[" "," "]))],null,function(e,t){e(t,2,0,t.context.$implicit.name)})}function ta(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"th",[["class","mat-header-cell"],["mat-header-cell",""],["mat-sort-header","updated_at"],["role","columnheader"]],[[1,"aria-sort",0],[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,2)._handleClick()&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!0)&&l),"longpress"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!0)&&l),"mouseleave"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!1)&&l),l},Hr.b,Hr.a)),o["\u0275did"](1,16384,null,0,qr.e,[Wr.d,o.ElementRef],null,null),o["\u0275did"](2,245760,null,0,Gr.c,[Gr.d,o.ChangeDetectorRef,[2,Gr.b],[2,Wr.d]],{id:[0,"id"]},null),(e()(),o["\u0275ted"](-1,0,[" Updated "]))],function(e,t){e(t,2,0,"updated_at")},function(e,t){e(t,0,0,o["\u0275nov"](t,2)._getAriaSortAttribute(),o["\u0275nov"](t,2)._isDisabled())})}function na(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,qr.a,[Wr.d,o.ElementRef],null,null),(e()(),o["\u0275ted"](2,null,[" "," "])),o["\u0275ppd"](3,1)],null,function(e,t){e(t,2,0,o["\u0275unv"](t,2,0,e(t,3,0,o["\u0275nov"](t.parent,0),t.context.$implicit.updated_at)))})}function la(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"th",[["class","mat-header-cell"],["mat-header-cell",""],["mat-sort-header","file_size"],["role","columnheader"]],[[1,"aria-sort",0],[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==o["\u0275nov"](e,2)._handleClick()&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!0)&&l),"longpress"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!0)&&l),"mouseleave"===t&&(l=!1!==o["\u0275nov"](e,2)._setIndicatorHintVisible(!1)&&l),l},Hr.b,Hr.a)),o["\u0275did"](1,16384,null,0,qr.e,[Wr.d,o.ElementRef],null,null),o["\u0275did"](2,245760,null,0,Gr.c,[Gr.d,o.ChangeDetectorRef,[2,Gr.b],[2,Wr.d]],{id:[0,"id"]},null),(e()(),o["\u0275ted"](-1,0,[" Size "]))],function(e,t){e(t,2,0,"file_size")},function(e,t){e(t,0,0,o["\u0275nov"](t,2)._getAriaSortAttribute(),o["\u0275nov"](t,2)._isDisabled())})}function ia(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,qr.a,[Wr.d,o.ElementRef],null,null),(e()(),o["\u0275ted"](2,null,[" "," "])),o["\u0275ppd"](3,1)],null,function(e,t){e(t,2,0,o["\u0275unv"](t,2,0,e(t,3,0,o["\u0275nov"](t.parent,1),t.context.$implicit.file_size)))})}function oa(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"tr",[["class","mat-header-row"],["mat-header-row",""],["role","row"]],null,null,null,Yr.d,Yr.a)),o["\u0275prd"](6144,null,Wr.k,null,[qr.g]),o["\u0275did"](2,49152,null,0,qr.g,[],null,null)],null,null)}function ra(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"tr",[["class","drive-entry mat-row"],["mat-row",""],["role","row"]],[[1,"data-id",0]],null,null,Yr.e,Yr.b)),o["\u0275prd"](6144,null,Wr.m,null,[qr.i]),o["\u0275did"](2,81920,null,0,ei,[o.ElementRef,li,ii],{params:[0,"params"]},null),o["\u0275pod"](3,{type:0,entry:1}),o["\u0275did"](4,49152,null,0,qr.i,[],null,null)],function(e,t){e(t,2,0,e(t,3,0,"entry",t.context.$implicit))},function(e,t){e(t,0,0,t.context.$implicit.id)})}function aa(e){return o["\u0275vid"](2,[o["\u0275pid"](0,el.a,[Ye.a,o.LOCALE_ID]),o["\u0275pid"](0,bi.a,[]),(e()(),o["\u0275eld"](2,0,null,null,86,"table",[["class","mat-table"],["mat-table",""],["matSort",""]],null,[[null,"matSortChange"]],function(e,t,n){var l=!0;return"matSortChange"===t&&(l=!1!==e.component.sortChange(n)&&l),l},Yr.f,Yr.c)),o["\u0275did"](3,2342912,null,4,qr.k,[o.IterableDiffers,o.ChangeDetectorRef,o.ElementRef,[8,null],[2,ll.b],Bt.DOCUMENT,Wt.a],{dataSource:[0,"dataSource"]},null),o["\u0275qud"](603979776,1,{_contentColumnDefs:1}),o["\u0275qud"](603979776,2,{_contentRowDefs:1}),o["\u0275qud"](603979776,3,{_contentHeaderRowDefs:1}),o["\u0275qud"](603979776,4,{_contentFooterRowDefs:1}),o["\u0275did"](8,737280,null,0,Gr.b,[],null,{sortChange:"matSortChange"}),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275eld"](11,0,null,null,14,null,null,null,null,null,null,null)),o["\u0275did"](12,16384,null,3,qr.c,[],{name:[0,"name"]},null),o["\u0275qud"](335544320,5,{cell:0}),o["\u0275qud"](335544320,6,{headerCell:0}),o["\u0275qud"](335544320,7,{footerCell:0}),o["\u0275prd"](2048,[[1,4]],Wr.d,null,[qr.c]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,Kr)),o["\u0275did"](19,16384,null,0,qr.f,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[6,4]],Wr.j,null,[qr.f]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,Jr)),o["\u0275did"](23,16384,null,0,qr.b,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[5,4]],Wr.b,null,[qr.b]),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275ted"](-1,null,["\n\n  "])),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275eld"](28,0,null,null,14,null,null,null,null,null,null,null)),o["\u0275did"](29,16384,null,3,qr.c,[],{name:[0,"name"]},null),o["\u0275qud"](335544320,8,{cell:0}),o["\u0275qud"](335544320,9,{headerCell:0}),o["\u0275qud"](335544320,10,{footerCell:0}),o["\u0275prd"](2048,[[1,4]],Wr.d,null,[qr.c]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,Qr)),o["\u0275did"](36,16384,null,0,qr.f,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[9,4]],Wr.j,null,[qr.f]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,ea)),o["\u0275did"](40,16384,null,0,qr.b,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[8,4]],Wr.b,null,[qr.b]),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275ted"](-1,null,["\n\n  "])),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275eld"](45,0,null,null,14,null,null,null,null,null,null,null)),o["\u0275did"](46,16384,null,3,qr.c,[],{name:[0,"name"]},null),o["\u0275qud"](335544320,11,{cell:0}),o["\u0275qud"](335544320,12,{headerCell:0}),o["\u0275qud"](335544320,13,{footerCell:0}),o["\u0275prd"](2048,[[1,4]],Wr.d,null,[qr.c]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,ta)),o["\u0275did"](53,16384,null,0,qr.f,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[12,4]],Wr.j,null,[qr.f]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,na)),o["\u0275did"](57,16384,null,0,qr.b,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[11,4]],Wr.b,null,[qr.b]),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275ted"](-1,null,["\n\n  "])),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275eld"](62,0,null,null,14,null,null,null,null,null,null,null)),o["\u0275did"](63,16384,null,3,qr.c,[],{name:[0,"name"]},null),o["\u0275qud"](335544320,14,{cell:0}),o["\u0275qud"](335544320,15,{headerCell:0}),o["\u0275qud"](335544320,16,{footerCell:0}),o["\u0275prd"](2048,[[1,4]],Wr.d,null,[qr.c]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,la)),o["\u0275did"](70,16384,null,0,qr.f,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[15,4]],Wr.j,null,[qr.f]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](0,null,null,2,null,ia)),o["\u0275did"](74,16384,null,0,qr.b,[o.TemplateRef],null,null),o["\u0275prd"](2048,[[14,4]],Wr.b,null,[qr.b]),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275ted"](-1,null,["\n\n  "])),(e()(),o["\u0275eld"](78,0,null,null,10,"tbody",[],null,null,null,null,null)),(e()(),o["\u0275and"](0,null,null,3,null,oa)),o["\u0275did"](80,540672,null,0,qr.h,[o.TemplateRef,o.IterableDiffers],{columns:[0,"columns"]},null),o["\u0275pad"](81,4),o["\u0275prd"](2048,[[3,4]],Wr.l,null,[qr.h]),(e()(),o["\u0275ted"](-1,null,["\n  "])),(e()(),o["\u0275and"](0,null,null,3,null,ra)),o["\u0275did"](85,540672,null,0,qr.j,[o.TemplateRef,o.IterableDiffers],{columns:[0,"columns"]},null),o["\u0275pad"](86,4),o["\u0275prd"](2048,[[2,4]],Wr.n,null,[qr.j]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.entries),e(t,8,0),e(t,12,0,"image"),e(t,29,0,"name"),e(t,46,0,"updated"),e(t,63,0,"size"),e(t,80,0,e(t,81,0,"image","name","updated","size")),e(t,85,0,e(t,86,0,"image","name","updated","size"))},null)}var sa=function(){},ua=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ca(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,12,"div",[["class","no-results-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,2,"div",[["class","main"],["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["No recent entries."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,2,"div",[["class","secondary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["You have not uploaded any files or folders yet."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](10,0,null,null,1,"mat-icon",[["class","icon mat-icon"],["role","img"],["svgIcon","recent-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,"recent-custom")},function(e,t){e(t,10,0,o["\u0275nov"](t,11).inline)})}var da=function(){},pa=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fa(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,12,"div",[["class","no-results-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,2,"div",[["class","main"],["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Trash is empty."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,2,"div",[["class","secondary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["There are no files or folders in your trash currently."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](10,0,null,null,1,"mat-icon",[["class","icon mat-icon"],["role","img"],["svgIcon","trash-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,"trash-custom")},function(e,t){e(t,10,0,o["\u0275nov"](t,11).inline)})}var ha=function(){},ma=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ga(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,12,"div",[["class","no-results-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,2,"div",[["class","main"],["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Nothing is starred."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,2,"div",[["class","secondary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Add stars to files and folders that you want to easily find later."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](10,0,null,null,1,"mat-icon",[["class","icon mat-icon"],["role","img"],["svgIcon","add-star-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,"add-star-custom")},function(e,t){e(t,10,0,o["\u0275nov"](t,11).inline)})}var ba=function(){},va=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ya(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,12,"div",[["class","no-results-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,2,"div",[["class","main"],["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Shared with me."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,2,"div",[["class","secondary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Files and folders other people have shared with you."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](10,0,null,null,1,"mat-icon",[["class","icon mat-icon"],["role","img"],["svgIcon","share-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,"share-custom")},function(e,t){e(t,10,0,o["\u0275nov"](t,11).inline)})}var _a=function(){},wa=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Oa(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,12,"div",[["class","no-results-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,2,"div",[["class","main"],["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["No matches found."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,2,"div",[["class","secondary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](7,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Try another search with different query or file type."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](10,0,null,null,1,"mat-icon",[["class","icon mat-icon"],["role","img"],["svgIcon","search-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,"search-custom")},function(e,t){e(t,10,0,o["\u0275nov"](t,11).inline)})}var xa=function(){function e(e,t){this.store=e,this.uploadConfig=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.clickTarget.nativeElement.addEventListener("click",function(){Object(Qe.a)(e.uploadConfig).then(function(t){e.store.dispatch(new re(t))})})},e}(),ja=o["\u0275crt"]({encapsulation:2,styles:[["@-webkit-keyframes pulsate{0%,100%{-webkit-transform:scale(1)}50%{-webkit-transform:scale(1.05)}}@keyframes pulsate{0%,100%{-webkit-transform:scale(1)}50%{-webkit-transform:scale(1.05)}}.file-over-dropzone .animation-circle{-webkit-animation:.7s ease-out 15 pulsate;animation:.7s ease-out 15 pulsate;background-color:#1976d2;pointer-events:none}.file-over-dropzone .content-circle{color:#fff;pointer-events:none}upload-dropzone{display:block;position:relative;width:100%;height:100%;border:2px solid transparent}upload-dropzone .animation-circle,upload-dropzone .content-circle{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:400px;height:400px;min-height:300px;max-width:90%;max-height:90%;border-radius:50%;overflow:hidden;cursor:pointer}upload-dropzone .animation-circle{background-color:#fff;border:1px solid #e0e0e0;z-index:1}upload-dropzone .content-circle{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:transparent;border-color:transparent;color:rgba(0,0,0,.54);z-index:2}upload-dropzone .content-circle .main-icon{width:100px;height:100px}upload-dropzone .content-circle .text{text-align:center;margin-top:8px}upload-dropzone .content-circle .text .mat-icon{vertical-align:middle}upload-dropzone .content-circle .text .primary{font-size:1.8rem;font-weight:500;margin-bottom:5px}upload-dropzone .content-circle .text .secondary{font-size:1.5rem}"]],data:{}});function Ca(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{clickTarget:0}),(e()(),o["\u0275eld"](1,0,null,null,0,"div",[["class","animation-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,[[1,0],["clickTarget",1]],null,15,"div",[["class","content-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](5,0,null,null,1,"mat-icon",[["class","main-icon mat-icon"],["role","img"],["svgIcon","upload-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](6,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](8,0,null,null,9,"div",[["class","text initial-text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](10,0,null,null,2,"div",[["class","primary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](11,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Drop files or folders here"])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](14,0,null,null,2,"div",[["class","secondary"],["trans",""]],null,null,null,null,null)),o["\u0275did"](15,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["or click to upload."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,6,0,"upload-custom")},function(e,t){e(t,5,0,o["\u0275nov"](t,6).inline)})}var ka=function(){},Ea=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Sa(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"upload-dropzone",[],null,null,null,Ca,ja)),o["\u0275did"](1,4243456,null,0,xa,[ke.h,Cl],null,null)],null,null)}var Ra=function(){function e(e,t,n){this.store=e,this.el=t,this.keybinds=n,this.tabindex=0}return e.prototype.ngOnInit=function(){var e=this;this.keybinds.listenOn(this.el.nativeElement),this.keybinds.addWithPreventDefault("ctrl+a",function(){e.store.dispatch(new Y)})},Object(Se.b)([Object(ke.d)(nt.entries),Object(Se.d)("design:type",Ol.a)],e.prototype,"entries$",void 0),Object(Se.b)([Object(ke.d)(nt.entriesEmpty),Object(Se.d)("design:type",Ol.a)],e.prototype,"noEntries",void 0),Object(Se.b)([Object(ke.d)(nt.viewMode),Object(Se.d)("design:type",Ol.a)],e.prototype,"viewMode$",void 0),Object(Se.b)([Object(ke.d)(nt.activePageName),Object(Se.d)("design:type",Ol.a)],e.prototype,"activePageName$",void 0),e}(),Ia=function(e){return e[e.ENTER=13]="ENTER",e[e.SPACE=32]="SPACE",e[e.ESCAPE=27]="ESCAPE",e[e.DELETE=46]="DELETE",e[e.ARROW_UP=38]="ARROW_UP",e[e.ARROW_RIGHT=39]="ARROW_RIGHT",e[e.ARROW_DOWN=40]="ARROW_DOWN",e[e.ARROW_LEFT=37]="ARROW_LEFT",e[e.S=83]="S",e[e.N=78]="N",e[e.A=65]="A",e[e.T=84]="T",e[e.B=66]="B",e[e.C=67]="C",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.F=70]="F",e[e.Y=89]="Y",e[e.Z=90]="Z",e}({}),Da=function(){function e(){this.bindings=[]}return e.prototype.add=function(e,t){this.bindings.push({keybind:this.parseKeybindString(e),keybindString:e,callback:t})},e.prototype.addWithPreventDefault=function(e,t){this.bindings.push({keybind:this.parseKeybindString(e),keybindString:e,callback:t,preventDefault:!0})},e.prototype.listenOn=function(e){var t=this;e.addEventListener("keydown",function(e){t.executeBindings(e)})},e.prototype.executeBindings=function(e){var t=this;this.bindings.forEach(function(n){t.bindingMatches(n.keybind,e)&&(n.preventDefault&&e.preventDefault&&e.preventDefault(),n.callback(e))})},e.prototype.bindingMatches=function(e,t){return Ia[e.key.toUpperCase()]===t.keyCode&&t.ctrlKey===e.ctrl&&t.shiftKey===e.shift},e.prototype.parseKeybindString=function(e){var t={ctrl:!1,shift:!1,key:""};return e.trim().split("+").forEach(function(e){"ctrl"===(e=e.trim().toLowerCase())?t.ctrl=!0:"shift"===e?t.shift=!0:t.key=e}),t},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Pa=o["\u0275crt"]({encapsulation:2,styles:[["entries-container{display:block;height:100%;outline:0}entries-container .no-results-message{height:100%}"]],data:{}});function Aa(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"files-grid",[],null,null,null,$r,zr)),o["\u0275did"](1,49152,null,0,Ur,[],{entries:[0,"entries"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.entries$)))},null)}function Ta(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](1,0,null,null,2,"files-list",[],null,null,null,aa,Xr)),o["\u0275did"](2,114688,null,0,Zr,[ke.h],{entries:[0,"entries"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.entries$)))},null)}function Fa(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"no-recent-entries",[],null,null,null,ca,ua)),o["\u0275did"](1,49152,null,0,sa,[],null,null)],null,null)}function Ma(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"no-trashed-entries",[],null,null,null,fa,pa)),o["\u0275did"](1,49152,null,0,da,[],null,null)],null,null)}function Na(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"no-starred-entries",[],null,null,null,ga,ma)),o["\u0275did"](1,49152,null,0,ha,[],null,null)],null,null)}function La(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"no-shared-entries",[],null,null,null,ya,va)),o["\u0275did"](1,49152,null,0,ba,[],null,null)],null,null)}function Va(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"no-search-entries",[],null,null,null,Oa,wa)),o["\u0275did"](1,49152,null,0,_a,[],null,null)],null,null)}function Ua(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"no-folder-entries",[],null,null,null,Sa,Ea)),o["\u0275did"](1,49152,null,0,ka,[],null,null)],null,null)}function za(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,21,null,null,null,null,null,null,null)),o["\u0275did"](1,16384,null,0,Bt.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fa)),o["\u0275did"](5,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ma)),o["\u0275did"](8,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Na)),o["\u0275did"](11,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,La)),o["\u0275did"](14,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Va)),o["\u0275did"](17,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ua)),o["\u0275did"](20,16384,null,0,Bt.NgSwitchDefault,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],null,null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.activePageName$))),e(t,5,0,"recent"),e(t,8,0,"trash"),e(t,11,0,"starred"),e(t,14,0,"shares"),e(t,17,0,"search")},null)}function Ba(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,2,null,Aa)),o["\u0275did"](1,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](0,[["filesList",2]],null,0,null,Ta)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,za)),o["\u0275did"](7,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,"grid"===o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.viewMode$)),o["\u0275nov"](t,4)),e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.noEntries)))},null)}var $a=o["\u0275ccf"]("entries-container",Ra,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"entries-container",[],[[1,"tabindex",0]],null,null,Ba,Pa)),o["\u0275did"](1,114688,null,0,Ra,[ke.h,o.ElementRef,Da],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,o["\u0275nov"](t,1).tabindex)})},{},{},[]),qa=n("ZYjt"),Wa=o["\u0275crt"]({encapsulation:2,styles:[["text-preview{display:block;background-color:#fff;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);width:80%;min-height:80%;color:rgba(0,0,0,.87);word-wrap:break-word;padding:20px;overflow:auto}@media only screen and (max-width:768px){text-preview{width:90%}}text-preview pre{display:block;white-space:pre-wrap;word-wrap:break-word;margin:0;font-size:1.4rem;font-family:inherit}"]],data:{}});function Ha(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],null,function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.content)))})}var Ga=o["\u0275ccf"]("text-preview",fn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"text-preview",[],[[8,"className",0]],null,null,Ha,Wa)),o["\u0275did"](1,114688,null,0,fn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,o["\u0275nov"](t,1).className)})},{},{},[]),Ya=o["\u0275crt"]({encapsulation:2,styles:[["default-preview{display:block;max-width:380px;max-height:150px}default-preview .panel{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#fff;color:rgba(0,0,0,.87);border-radius:4px;width:100%;height:100%;margin:auto;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}default-preview .panel .message{font-size:1.8rem;margin-bottom:15px}default-preview .panel .mat-raised-button{display:block}"]],data:{}});function Za(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,8,"div",[["class","panel preview-object"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,1,"div",[["class","message"],["trans",""]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["No file preview available."])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](5,0,null,null,2,"button",[["color","primary"],["mat-raised-button",""],["trans",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.download.emit()&&l),l},$t.d,$t.b)),o["\u0275did"](6,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{color:[0,"color"]},null),(e()(),o["\u0275ted"](-1,0,["Download"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,6,0,"primary")},function(e,t){e(t,5,0,o["\u0275nov"](t,6).disabled||null,"NoopAnimations"===o["\u0275nov"](t,6)._animationMode)})}var Xa=o["\u0275ccf"]("default-preview",cn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"default-preview",[],null,null,null,Za,Ya)),o["\u0275did"](1,49152,null,0,cn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],null,null)},{},{},[]),Ka=o["\u0275crt"]({encapsulation:2,styles:[["video-preview{display:block;max-width:80%;max-height:80%;height:auto}@media only screen and (max-width:768px){video-preview{width:90%}}video-preview video{display:block;max-width:100%;max-height:100%;height:auto;margin:auto;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);position:absolute;top:0;left:0;right:0;bottom:0}video-preview default-preview{margin:auto;position:absolute;top:0;left:0;right:0;bottom:0}"]],data:{}});function Ja(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"default-preview",[],null,null,null,Za,Ya)),o["\u0275did"](1,49152,null,0,cn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],null,null)}function Qa(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{playerEl:0}),(e()(),o["\u0275eld"](1,0,[[1,0],["playerEl",1]],null,0,"video",[["class","preview-object"],["controls","controls"]],[[2,"hidden",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ja)),o["\u0275did"](4,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,4,0,t.component.invalidMedia)},function(e,t){e(t,1,0,t.component.invalidMedia)})}var es=o["\u0275ccf"]("video-preview",bn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"video-preview",[],null,null,null,Qa,Ka)),o["\u0275did"](1,114688,null,0,bn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),ts=o["\u0275crt"]({encapsulation:2,styles:[["image-preview{display:block;max-width:80%;max-height:80%;height:auto}@media only screen and (max-width:768px){image-preview{width:90%}}image-preview img{max-width:100%;max-height:100%;height:auto;margin:auto;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);position:absolute;top:0;left:0;right:0;bottom:0}"]],data:{}});function ns(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,"img",[["class","preview-object"]],[[8,"src",4]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.getSafeSrc())})}var ls=o["\u0275ccf"]("image-preview",yn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"image-preview",[],null,null,null,ns,ts)),o["\u0275did"](1,49152,null,0,yn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],null,null)},{},{},[]),is=o["\u0275crt"]({encapsulation:2,styles:[["pdf-preview{display:block;width:100%;height:100%;margin:auto;position:absolute;top:0;left:0;right:0;bottom:0}pdf-preview object{width:100%;height:100%;border:none}"]],data:{}});function os(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,"object",[["type","application/pdf"]],[[8,"data",5]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[["trans",""]],[[8,"href",4]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Download the file."])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.getSafeSrc()),e(t,2,0,n.getSafeSrc())})}var rs=o["\u0275ccf"]("pdf-preview",wn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"pdf-preview",[],[[8,"className",0]],null,null,os,is)),o["\u0275did"](1,49152,null,0,wn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],null,function(e,t){e(t,0,0,o["\u0275nov"](t,1).className)})},{},{},[]),as=o["\u0275crt"]({encapsulation:2,styles:[["audio-preview{display:block;max-width:80%;height:auto}@media only screen and (max-width:768px){audio-preview{width:90%}}audio-preview audio{display:block;max-width:100%;height:auto;margin:auto;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);position:absolute;top:0;left:0;right:0;bottom:0}audio-preview default-preview{margin:auto;position:absolute;top:0;left:0;right:0;bottom:0}"]],data:{}});function ss(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"default-preview",[],null,null,null,Za,Ya)),o["\u0275did"](1,49152,null,0,cn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],null,null)}function us(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{playerEl:0}),(e()(),o["\u0275eld"](1,0,[[1,0],["playerEl",1]],null,0,"audio",[["class","preview-object"],["controls","controls"]],[[2,"hidden",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ss)),o["\u0275did"](4,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,4,0,t.component.invalidMedia)},function(e,t){e(t,1,0,t.component.invalidMedia)})}var cs=o["\u0275ccf"]("audio-preview",mn,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"audio-preview",[],null,null,null,us,as)),o["\u0275did"](1,114688,null,0,mn,[an,dn,Ye.a,Ie.a,qa.c],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),ds=n("o3x0"),ps=n("pNtN"),fs=n("GZAL"),hs=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ms=function(){function e(){this.permissions=_o,this.change=new o.EventEmitter,this.compact=!1}return e.prototype.overallPermission=function(){return this.permissions.varies?"varies":this.permissions.edit?"edit":this.permissions.download?"download":"view"},e.prototype.selectPermission=function(e){this.permissions="edit"===e?hs({},_o):hs({},_o,"download"===e?{edit:!1}:{edit:!1,download:!1}),this.change.emit(this.permissions)},e}(),gs=o["\u0275crt"]({encapsulation:2,styles:[[".mat-menu-with-description .mat-menu-item{display:flex;height:auto;min-height:48px;line-height:normal;white-space:normal;padding:10px 16px;font-size:1.5rem}.mat-menu-with-description .mat-menu-item .mat-icon{flex:0 0 24px}.mat-menu-with-description .mat-menu-item .description{font-size:1.4rem;color:rgba(0,0,0,.54);margin-top:3px}sharing-permissions-button{display:inline-block}sharing-permissions-button.compact .button-text{display:none}sharing-permissions-button .dropdown-icon,sharing-permissions-button:not(.compact) .button-icon{width:18px;height:18px;line-height:18px}sharing-permissions-button .button-text{font-size:1.3rem}"]],data:{}});function bs(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,1,"mat-icon",[["class","button-icon mat-icon"],["role","img"],["svgIcon","priority-high"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](3,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](5,0,null,null,2,"span",[["class","button-text"],["trans",""]],null,null,null,null,null)),o["\u0275did"](6,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Varies"])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,"priority-high")},function(e,t){e(t,2,0,o["\u0275nov"](t,3).inline)})}function vs(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,1,"mat-icon",[["class","button-icon mat-icon"],["role","img"],["svgIcon","edit"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](3,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](5,0,null,null,2,"span",[["class","button-text"],["trans",""]],null,null,null,null,null)),o["\u0275did"](6,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Can edit"])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,"edit")},function(e,t){e(t,2,0,o["\u0275nov"](t,3).inline)})}function ys(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,1,"mat-icon",[["class","button-icon mat-icon"],["role","img"],["svgIcon","remove-red-eye"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](3,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](5,0,null,null,2,"span",[["class","button-text"],["trans",""]],null,null,null,null,null)),o["\u0275did"](6,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Can View"])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,"remove-red-eye")},function(e,t){e(t,2,0,o["\u0275nov"](t,3).inline)})}function _s(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,1,"mat-icon",[["class","button-icon mat-icon"],["role","img"],["svgIcon","file-download"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](3,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](5,0,null,null,2,"span",[["class","button-text"],["trans",""]],null,null,null,null,null)),o["\u0275did"](6,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Can Download"])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,3,0,"file-download")},function(e,t){e(t,2,0,o["\u0275nov"](t,3).inline)})}function ws(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,16777216,null,null,18,"button",[["aria-haspopup","true"],["color","gray"],["mat-flat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-expanded",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(e,t,n){var l=!0;return"mousedown"===t&&(l=!1!==o["\u0275nov"](e,2)._handleMousedown(n)&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,2)._handleKeydown(n)&&l),"click"===t&&(l=!1!==o["\u0275nov"](e,2)._handleClick(n)&&l),l},$t.d,$t.b)),o["\u0275did"](1,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{color:[0,"color"]},null),o["\u0275did"](2,1196032,null,0,co.f,[nl.c,o.ElementRef,o.ViewContainerRef,co.b,[2,co.c],[8,null],[2,ll.b],Ht.h],{menu:[0,"menu"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275and"](16777216,null,0,1,null,bs)),o["\u0275did"](5,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,0,["\n\n    "])),(e()(),o["\u0275and"](16777216,null,0,1,null,vs)),o["\u0275did"](8,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,0,["\n\n    "])),(e()(),o["\u0275and"](16777216,null,0,1,null,ys)),o["\u0275did"](11,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,0,["\n\n    "])),(e()(),o["\u0275and"](16777216,null,0,1,null,_s)),o["\u0275did"](14,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,0,["\n\n    "])),(e()(),o["\u0275eld"](16,0,null,0,1,"mat-icon",[["class","dropdown-icon mat-icon"],["role","img"],["svgIcon","arrow-drop-down"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](17,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](20,0,null,null,57,"mat-menu",[["classList","mat-menu-with-description"]],null,null,null,uo.d,uo.a)),o["\u0275did"](21,1294336,[["shareMenu",4]],2,co.c,[o.ElementRef,o.NgZone,co.a],{classList:[0,"classList"]},null),o["\u0275qud"](603979776,1,{items:1}),o["\u0275qud"](335544320,2,{lazyContent:0}),o["\u0275prd"](2048,null,co.h,null,[co.c]),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](26,0,null,0,14,"div",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==o["\u0275nov"](e,27)._checkDisabled(n)&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,27)._handleMouseEnter()&&l),"click"===t&&(l=!1!==i.selectPermission("edit")&&l),l},uo.c,uo.b)),o["\u0275did"](27,180224,[[1,4]],0,co.d,[o.ElementRef,Bt.DOCUMENT,Ht.h,[2,co.h]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](29,0,null,0,1,"mat-icon",[["class","mat-icon mat-icon"],["role","img"],["svgIcon","check"]],[[2,"visually-hidden",null],[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](30,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](32,0,null,0,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](34,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Can edit"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](37,0,null,null,1,"div",[["class","description"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["People can edit, delete and copy the item to their own drive."])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](42,0,null,0,16,"div",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==o["\u0275nov"](e,43)._checkDisabled(n)&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,43)._handleMouseEnter()&&l),"click"===t&&(l=!1!==i.selectPermission("download")&&l),l},uo.c,uo.b)),o["\u0275did"](43,180224,[[1,4]],0,co.d,[o.ElementRef,Bt.DOCUMENT,Ht.h,[2,co.h]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](45,0,null,0,1,"mat-icon",[["class","mat-icon mat-icon"],["role","img"],["svgIcon","check"]],[[2,"visually-hidden",null],[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](46,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](48,0,null,0,9,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](50,0,null,null,2,"div",[["trans",""]],null,null,null,null,null)),o["\u0275did"](51,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Can download"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](54,0,null,null,2,"div",[["class","description"],["trans",""]],null,null,null,null,null)),o["\u0275did"](55,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["People can view and download the item."])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,0,["\n\n    "])),(e()(),o["\u0275eld"](60,0,null,0,16,"div",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==o["\u0275nov"](e,61)._checkDisabled(n)&&l),"mouseenter"===t&&(l=!1!==o["\u0275nov"](e,61)._handleMouseEnter()&&l),"click"===t&&(l=!1!==i.selectPermission("view")&&l),l},uo.c,uo.b)),o["\u0275did"](61,180224,[[1,4]],0,co.d,[o.ElementRef,Bt.DOCUMENT,Ht.h,[2,co.h]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](63,0,null,0,1,"mat-icon",[["class","mat-icon mat-icon"],["role","img"],["svgIcon","check"]],[[2,"visually-hidden",null],[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](64,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](66,0,null,0,9,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](68,0,null,null,2,"div",[["trans",""]],null,null,null,null,null)),o["\u0275did"](69,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Can view"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](72,0,null,null,2,"div",[["class","description"],["trans",""]],null,null,null,null,null)),o["\u0275did"](73,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["People can view the item."])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,0,["\n"]))],function(e,t){var n=t.component;e(t,1,0,"gray"),e(t,2,0,o["\u0275nov"](t,21)),e(t,5,0,"varies"===n.overallPermission()),e(t,8,0,"edit"===n.overallPermission()),e(t,11,0,"view"===n.overallPermission()),e(t,14,0,"download"===n.overallPermission()),e(t,17,0,"arrow-drop-down"),e(t,21,0,"mat-menu-with-description"),e(t,30,0,"check"),e(t,46,0,"check"),e(t,64,0,"check")},function(e,t){var n=t.component;e(t,0,0,o["\u0275nov"](t,1).disabled||null,"NoopAnimations"===o["\u0275nov"](t,1)._animationMode,o["\u0275nov"](t,2).menuOpen||null),e(t,16,0,o["\u0275nov"](t,17).inline),e(t,26,0,o["\u0275nov"](t,27)._highlighted,o["\u0275nov"](t,27)._triggersSubmenu,o["\u0275nov"](t,27)._getTabIndex(),o["\u0275nov"](t,27).disabled.toString(),o["\u0275nov"](t,27).disabled||null),e(t,29,0,"edit"!==n.overallPermission(),o["\u0275nov"](t,30).inline),e(t,42,0,o["\u0275nov"](t,43)._highlighted,o["\u0275nov"](t,43)._triggersSubmenu,o["\u0275nov"](t,43)._getTabIndex(),o["\u0275nov"](t,43).disabled.toString(),o["\u0275nov"](t,43).disabled||null),e(t,45,0,"download"!==n.overallPermission(),o["\u0275nov"](t,46).inline),e(t,60,0,o["\u0275nov"](t,61)._highlighted,o["\u0275nov"](t,61)._triggersSubmenu,o["\u0275nov"](t,61)._getTabIndex(),o["\u0275nov"](t,61).disabled.toString(),o["\u0275nov"](t,61).disabled||null),e(t,63,0,"view"!==n.overallPermission(),o["\u0275nov"](t,64).inline)})}var Os=function(){function e(e,t){this.store=e,this.currentUser=t}return e.prototype.updateUserPermissions=function(e,t){this.store.dispatch(new Ro(e,t))},e.prototype.removeUser=function(e){this.store.dispatch(new Io(e))},e.prototype.saveChanges=function(){this.store.dispatch(new Po)},e.prototype.trackByUser=function(e,t){return t.id},Object(Se.b)([Object(ke.d)(Mo.usersWithAccess),Object(Se.d)("design:type",Ol.a)],e.prototype,"users",void 0),Object(Se.b)([Object(ke.d)(Mo.dirty),Object(Se.d)("design:type",Ol.a)],e.prototype,"dirty",void 0),Object(Se.b)([Object(ke.d)(Mo.loading),Object(Se.d)("design:type",Ol.a)],e.prototype,"loading$",void 0),e}(),xs=o["\u0275crt"]({encapsulation:2,styles:[["entries-access-table{display:block;margin-top:25px}entries-access-table .users-list{overflow-x:hidden}entries-access-table .users-list .list-item{display:flex;align-items:center;padding:12px 0;border-bottom:1px solid #e0e0e0;transition:opacity .3s}entries-access-table .users-list .list-item.removed{opacity:.3;pointer-events:none}entries-access-table .users-list img{width:30px;height:30px;flex:0 0 30px;margin-right:15px}entries-access-table .users-list .display_name{text-transform:capitalize}entries-access-table .users-list .email{color:rgba(0,0,0,.54)}entries-access-table .users-list .actions{margin-left:auto;padding-right:5px}entries-access-table .users-list .actions button{color:rgba(0,0,0,.5)}entries-access-table .actions{margin-top:10px;text-align:right}"]],data:{animation:[{type:7,name:"flyInOut",definitions:[{type:0,name:"in",styles:{type:6,styles:{transform:"translateX(0)"},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{transform:"translateX(-100%)"},offset:null},{type:4,styles:null,timings:100}],options:null},{type:1,expr:"* => void",animation:[{type:4,styles:{type:6,styles:{transform:"translateX(100%)"},offset:null},timings:100}],options:null}],options:{}}]}});function js(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"span",[["class","owner-label"],["trans",""]],null,null,null,null,null)),o["\u0275did"](1,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](2,null,["\n                ","\n            "]))],null,function(e,t){e(t,2,0,t.parent.context.$implicit.owns_entry?"Owner":"You")})}function Cs(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](1,0,null,null,1,"sharing-permissions-button",[],[[2,"compact",null]],[[null,"change"]],function(e,t,n){var l=!0;return"change"===t&&(l=!1!==e.component.updateUserPermissions(e.parent.context.$implicit,n)&&l),l},ws,gs)),o["\u0275did"](2,49152,null,0,ms,[],{permissions:[0,"permissions"]},{change:"change"}),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](4,0,null,null,6,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.removeUser(e.parent.context.$implicit)&&l),l},$t.d,$t.b)),o["\u0275did"](5,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n                    "])),(e()(),o["\u0275eld"](8,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](9,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n            "]))],function(e,t){var n=t.component;e(t,2,0,t.parent.context.$implicit.entry_permissions),e(t,5,0,o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.loading$))),e(t,9,0,"close")},function(e,t){e(t,1,0,o["\u0275nov"](t,2).compact),e(t,4,0,o["\u0275nov"](t,5).disabled||null,"NoopAnimations"===o["\u0275nov"](t,5)._animationMode),e(t,8,0,o["\u0275nov"](t,9).inline)})}function ks(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,20,"div",[["class","list-item"]],[[2,"removed",null],[24,"@flyInOut",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](4,0,null,null,7,"div",[["class","text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](6,0,null,null,1,"div",[["class","display_name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](9,0,null,null,1,"div",[["class","email"]],null,null,null,null,null)),(e()(),o["\u0275ted"](10,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](13,0,null,null,6,"div",[["class","actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,js)),o["\u0275did"](16,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n            "])),(e()(),o["\u0275and"](0,[["permissionSelector",2]],null,0,null,Cs)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,16,0,t.context.$implicit.owns_entry||t.component.currentUser.getModel().id===t.context.$implicit.id,o["\u0275nov"](t,18))},function(e,t){e(t,0,0,t.context.$implicit.removed,"in"),e(t,2,0,t.context.$implicit.avatar),e(t,7,0,t.context.$implicit.display_name),e(t,10,0,t.context.$implicit.email)})}function Es(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,2,"div",[["class","header"],["trans",""]],null,null,null,null,null)),o["\u0275did"](1,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Who has access"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,5,"div",[["class","users-list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,2,null,ks)),o["\u0275did"](7,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](11,0,null,null,8,"div",[["class","actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](13,0,null,null,5,"button",[["color","primary"],["mat-flat-button",""],["trans",""]],[[2,"visually-hidden",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.saveChanges()&&l),l},$t.d,$t.b)),o["\u0275did"](14,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](15,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Save Changes"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.users)),n.trackByUser),e(t,15,0,o["\u0275unv"](t,15,0,o["\u0275nov"](t,16).transform(n.loading$)),"primary")},function(e,t){var n=t.component;e(t,13,0,!o["\u0275unv"](t,13,0,o["\u0275nov"](t,17).transform(n.dirty)),o["\u0275nov"](t,15).disabled||null,"NoopAnimations"===o["\u0275nov"](t,15)._animationMode)})}var Ss=o["\u0275crt"]({encapsulation:2,styles:[["share-dialog .emails-container{display:flex;min-height:54px}share-dialog .emails-container chip-input{flex:1 1 auto}share-dialog .emails-container .mat-flat-button{height:54px;border:1px solid #e0e0e0;border-left:none}share-dialog .mat-tab-body{padding:15px 0}"]],data:{}});function Rs(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.context.$implicit.value)})}function Is(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"button",[["color","primary"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.share()&&l),l},$t.d,$t.b)),o["\u0275did"](1,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](2,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Share"]))],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.loading$)),"primary")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).disabled||null,"NoopAnimations"===o["\u0275nov"](t,2)._animationMode)})}function Ds(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,3,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""],["trans",""]],[[8,"id",0]],null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](4,81920,null,0,ds.l,[[2,ds.k],o.ElementRef,ds.e],null,null),(e()(),o["\u0275ted"](-1,null,["Add people"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](7,0,null,null,5,"button",[["class","close-button"],["mat-icon-button",""],["tabindex","-1"],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.dialogRef.close()&&l),l},$t.d,$t.b)),o["\u0275did"](8,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](10,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](15,0,null,null,29,"mat-dialog-content",[["class","mat-dialog-content"]],null,null,null,null,null)),o["\u0275did"](16,16384,null,0,ds.i,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](18,0,null,null,14,"div",[["class","emails-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](20,0,null,null,8,"chip-input",[["email",""],["placeholder","Enter email addresses..."],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,ps.b,ps.a)),o["\u0275did"](21,16384,null,0,zt.x,[],{required:[0,"required"]},null),o["\u0275did"](22,16384,null,0,zt.e,[],{email:[0,"email"]},null),o["\u0275prd"](1024,null,zt.o,function(e,t){return[e,t]},[zt.x,zt.e]),o["\u0275did"](24,4243456,null,0,fs.a,[],{placeholder:[0,"placeholder"],email:[1,"email"],required:[2,"required"]},null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[fs.a]),o["\u0275did"](26,540672,null,0,zt.i,[[6,zt.o],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](28,16384,null,0,zt.r,[[4,zt.q]],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](30,0,null,null,1,"sharing-permissions-button",[],[[2,"compact",null]],[[null,"change"]],function(e,t,n){var l=!0;return"change"===t&&(l=!1!==(e.component.shareModel.permissions=n)&&l),l},ws,gs)),o["\u0275did"](31,49152,null,0,ms,[],{compact:[0,"compact"]},{change:"change"}),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](34,0,null,null,6,"div",[["class","errors"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,3,null,Rs)),o["\u0275did"](37,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),o["\u0275pid"](0,Bt.KeyValuePipe,[o.KeyValueDiffers]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](42,0,null,null,1,"entries-access-table",[],null,null,null,Es,xs)),o["\u0275did"](43,49152,null,0,Os,[ke.h,De.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](46,0,null,null,11,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),o["\u0275did"](47,16384,null,0,ds.f,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](49,0,null,null,4,"button",[["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.dialogRef.close()&&l),l},$t.d,$t.b)),o["\u0275did"](50,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](51,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Close"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Is)),o["\u0275did"](56,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,"close"),e(t,21,0,""),e(t,22,0,""),e(t,24,0,"Enter email addresses...","",""),e(t,26,0,n.shareModel.emails),e(t,31,0,!0),e(t,37,0,o["\u0275unv"](t,37,0,o["\u0275nov"](t,39).transform(o["\u0275unv"](t,37,0,o["\u0275nov"](t,38).transform(n.errors))))),e(t,51,0,o["\u0275unv"](t,51,0,o["\u0275nov"](t,52).transform(n.loading$))),e(t,56,0,null==n.shareModel.emails.value?null:n.shareModel.emails.value.length)},function(e,t){e(t,2,0,o["\u0275nov"](t,4).id),e(t,7,0,o["\u0275nov"](t,8).disabled||null,"NoopAnimations"===o["\u0275nov"](t,8)._animationMode),e(t,10,0,o["\u0275nov"](t,11).inline),e(t,20,0,o["\u0275nov"](t,21).required?"":null,o["\u0275nov"](t,28).ngClassUntouched,o["\u0275nov"](t,28).ngClassTouched,o["\u0275nov"](t,28).ngClassPristine,o["\u0275nov"](t,28).ngClassDirty,o["\u0275nov"](t,28).ngClassValid,o["\u0275nov"](t,28).ngClassInvalid,o["\u0275nov"](t,28).ngClassPending),e(t,30,0,o["\u0275nov"](t,31).compact),e(t,49,0,o["\u0275nov"](t,51).disabled||null,"NoopAnimations"===o["\u0275nov"](t,51)._animationMode)})}var Ps=o["\u0275ccf"]("share-dialog",No,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"share-dialog",[],null,null,null,Ds,Ss)),o["\u0275did"](1,180224,null,0,No,[ds.k,ke.h,ke.b],null,null)],null,null)},{},{},[]),As=n("Z5h4"),Ts=n("de3e"),Fs=function(){function e(e){this.store=e,this.form=new zt.k({password:new zt.h,expiresAt:new zt.k({date:new zt.h,time:new zt.h}),allowEdit:new zt.h(!1),allowDownload:new zt.h(!0)}),this.passwordVisible=new zt.h(!1),this.expirationVisible=new zt.h(!1)}return e.prototype.ngOnInit=function(){this.bindToLinkChange()},e.prototype.toggleOptionsPanel=function(){this.store.dispatch(new dt)},e.prototype.saveChanges=function(){this.store.selectSnapshot(mt.link)?this.store.dispatch(new st(this.getPayload())):this.store.dispatch(new ut(this.getPayload()))},e.prototype.getPayload=function(){var e={allowEdit:this.form.get("allowEdit").value,allowDownload:this.form.get("allowDownload").value};return this.expirationVisible.value&&(e.expiresAt=this.form.get("expiresAt.date").value,this.form.get("expiresAt.time").value&&(e.expiresAt+=" "+this.form.get("expiresAt.time").value)),this.passwordVisible.value&&(e.password=this.form.get("password").value),e},e.prototype.bindToLinkChange=function(){var e=this;this.link$.pipe(Object(Ct.a)(function(e){return!!e})).subscribe(function(t){e.hydrateExpirationForm(t),e.passwordVisible.setValue(!!t.password),e.expirationVisible.setValue(!!t.expires_at),e.form.patchValue({allowEdit:t.allow_edit,allowDownload:t.allow_download})})},e.prototype.hydrateExpirationForm=function(e){if(e&&e.expires_at){var t=e.expires_at.split(" ");this.form.get("expiresAt").setValue({date:t[0],time:t[1]})}},e.prototype.getMinDate=function(){return(new Date).toJSON().split("T")[0]},Object(Se.b)([Object(ke.d)(mt.link),Object(Se.d)("design:type",Ol.a)],e.prototype,"link$",void 0),Object(Se.b)([Object(ke.d)(mt.loading),Object(Se.d)("design:type",Ol.a)],e.prototype,"loading$",void 0),Object(Se.b)([Object(ke.d)(mt.backendErrors),Object(Se.d)("design:type",Ol.a)],e.prototype,"backendErrors$",void 0),e}(),Ms=o["\u0275crt"]({encapsulation:2,styles:[["link-options{display:block;padding:15px;border:1px solid #e0e0e0;border-radius:4px}link-options .link-option{padding-bottom:25px;margin-bottom:25px;border-bottom:1px solid #e0e0e0}link-options .link-option .label{font-weight:500;margin-bottom:8px}link-options .link-option .expiration-input-container,link-options .link-option .password-input-container{margin-top:15px}link-options .link-option .content>.error{margin-top:10px}link-options .expiration-input-container{display:flex}link-options .expiration-input-container .date-input-container{flex:1 1 auto;margin-right:10px;position:relative}link-options .expiration-input-container .time-input{max-width:150px;margin-right:20px}link-options .update-button{margin-top:15px}"]],data:{}});function Ns(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.context.ngIf)})}function Ls(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,12,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275eld"](2,0,null,null,9,"div",[["class","input-container password-input-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                        "])),(e()(),o["\u0275eld"](4,0,null,null,6,"input",[["formControlName","password"],["placeholder","Enter new password..."],["trans-placeholder",""],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,5)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,5).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,5)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,5)._compositionEnd(n.target.value)&&l),l},null,null)),o["\u0275did"](5,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[zt.d]),o["\u0275did"](7,671744,null,0,zt.j,[[3,zt.c],[8,null],[8,null],[6,zt.p],[2,zt.E]],{name:[0,"name"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.j]),o["\u0275did"](9,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](10,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275ted"](-1,null,["\n                "]))],function(e,t){e(t,7,0,"password")},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Vs(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,118,"form",[["class","update-link-panel"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var l=!0,i=e.component;return"submit"===t&&(l=!1!==o["\u0275nov"](e,2).onSubmit(n)&&l),"reset"===t&&(l=!1!==o["\u0275nov"](e,2).onReset()&&l),"ngSubmit"===t&&(l=!1!==i.saveChanges()&&l),l},null,null)),o["\u0275did"](1,16384,null,0,zt.C,[],null,null),o["\u0275did"](2,540672,null,0,zt.l,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),o["\u0275prd"](2048,null,zt.c,null,[zt.l]),o["\u0275did"](4,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](6,0,null,null,99,"div",[["class","link-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](8,0,null,null,45,"div",[["class","link-option"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](10,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Link expiration"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](13,0,null,null,39,"div",[["class","content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](15,0,null,null,7,"mat-checkbox",[["class","mat-checkbox"],["color","primary"],["trans",""]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,As.b,As.a)),o["\u0275did"](16,4374528,null,0,Ts.b,[o.ElementRef,o.ChangeDetectorRef,Ht.h,o.NgZone,[8,null],[2,Ts.a],[2,Gt.a]],{color:[0,"color"]},null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[Ts.b]),o["\u0275did"](18,540672,null,0,zt.i,[[8,null],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](20,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](21,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,0,["Link is valid until:"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](24,0,null,null,23,"div",[["class","input-container expiration-input-container"],["formGroupName","expiresAt"]],[[2,"hidden",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,null,null)),o["\u0275did"](25,212992,null,0,zt.m,[[3,zt.c],[8,null],[8,null]],{name:[0,"name"]},null),o["\u0275prd"](2048,null,zt.c,null,[zt.m]),o["\u0275did"](27,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275eld"](29,0,null,null,9,"div",[["class","date-input-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                        "])),(e()(),o["\u0275eld"](31,0,null,null,6,"input",[["class","date-input"],["formControlName","date"],["placeholder","Expiration date..."],["trans-placeholder",""],["type","date"]],[[8,"min",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,32)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,32).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,32)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,32)._compositionEnd(n.target.value)&&l),l},null,null)),o["\u0275did"](32,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[zt.d]),o["\u0275did"](34,671744,null,0,zt.j,[[3,zt.c],[8,null],[8,null],[6,zt.p],[2,zt.E]],{name:[0,"name"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.j]),o["\u0275did"](36,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](37,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275eld"](40,0,null,null,6,"input",[["class","time-input"],["formControlName","time"],["placeholder","Expiration time..."],["trans-placeholder",""],["type","time"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,41)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,41).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,41)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,41)._compositionEnd(n.target.value)&&l),l},null,null)),o["\u0275did"](41,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[zt.d]),o["\u0275did"](43,671744,null,0,zt.j,[[3,zt.c],[8,null],[8,null],[6,zt.p],[2,zt.E]],{name:[0,"name"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.j]),o["\u0275did"](45,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](46,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275and"](16777216,null,null,2,null,Ns)),o["\u0275did"](50,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](55,0,null,null,19,"div",[["class","link-option"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](57,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Password Protect"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](60,0,null,null,13,"div",[["class","content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](62,0,null,null,7,"mat-checkbox",[["class","mat-checkbox"],["color","primary"],["trans",""]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,As.b,As.a)),o["\u0275did"](63,4374528,null,0,Ts.b,[o.ElementRef,o.ChangeDetectorRef,Ht.h,o.NgZone,[8,null],[2,Ts.a],[2,Gt.a]],{color:[0,"color"]},null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[Ts.b]),o["\u0275did"](65,540672,null,0,zt.i,[[8,null],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](67,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](68,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,0,["Require password:"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ls)),o["\u0275did"](72,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](76,0,null,null,13,"div",[["class","link-option"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](78,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Allow editing"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](81,0,null,null,7,"mat-checkbox",[["class","mat-checkbox"],["color","primary"],["formControlName","allowEdit"],["trans",""]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,As.b,As.a)),o["\u0275did"](82,4374528,null,0,Ts.b,[o.ElementRef,o.ChangeDetectorRef,Ht.h,o.NgZone,[8,null],[2,Ts.a],[2,Gt.a]],{color:[0,"color"]},null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[Ts.b]),o["\u0275did"](84,671744,null,0,zt.j,[[3,zt.c],[8,null],[8,null],[6,zt.p],[2,zt.E]],{name:[0,"name"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.j]),o["\u0275did"](86,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](87,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,0,["Users with link can modify this item."])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](91,0,null,null,13,"div",[["class","link-option"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](93,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Allow download"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](96,0,null,null,7,"mat-checkbox",[["class","mat-checkbox"],["color","primary"],["formControlName","allowDownload"],["trans",""]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,As.b,As.a)),o["\u0275did"](97,4374528,null,0,Ts.b,[o.ElementRef,o.ChangeDetectorRef,Ht.h,o.NgZone,[8,null],[2,Ts.a],[2,Gt.a]],{color:[0,"color"]},null),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[Ts.b]),o["\u0275did"](99,671744,null,0,zt.j,[[3,zt.c],[8,null],[8,null],[6,zt.p],[2,zt.E]],{name:[0,"name"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.j]),o["\u0275did"](101,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](102,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,0,["Users with link can download this item."])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](107,0,null,null,3,"button",[["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.toggleOptionsPanel()&&l),l},$t.d,$t.b)),o["\u0275did"](108,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](109,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["Cancel"])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](112,0,null,null,5,"button",[["class","update-button"],["color","primary"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,$t.d,$t.b)),o["\u0275did"](113,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](114,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](116,0,["\n        ","\n    "])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n,l=t.component;e(t,2,0,l.form),e(t,16,0,"primary"),e(t,18,0,l.expirationVisible),e(t,25,0,"expiresAt"),e(t,34,0,"date"),e(t,43,0,"time"),e(t,50,0,null==(n=o["\u0275unv"](t,50,0,o["\u0275nov"](t,51).transform(l.backendErrors$)))?null:n.expiresAt),e(t,63,0,"primary"),e(t,65,0,l.passwordVisible),e(t,72,0,l.passwordVisible.value),e(t,82,0,"primary"),e(t,84,0,"allowEdit"),e(t,97,0,"primary"),e(t,99,0,"allowDownload"),e(t,114,0,o["\u0275unv"](t,114,0,o["\u0275nov"](t,115).transform(l.loading$)),"primary")},function(e,t){var n=t.component;e(t,0,0,o["\u0275nov"](t,4).ngClassUntouched,o["\u0275nov"](t,4).ngClassTouched,o["\u0275nov"](t,4).ngClassPristine,o["\u0275nov"](t,4).ngClassDirty,o["\u0275nov"](t,4).ngClassValid,o["\u0275nov"](t,4).ngClassInvalid,o["\u0275nov"](t,4).ngClassPending),e(t,15,1,[o["\u0275nov"](t,16).id,o["\u0275nov"](t,16).indeterminate,o["\u0275nov"](t,16).checked,o["\u0275nov"](t,16).disabled,"before"==o["\u0275nov"](t,16).labelPosition,"NoopAnimations"===o["\u0275nov"](t,16)._animationMode,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending]),e(t,24,0,!n.expirationVisible.value,o["\u0275nov"](t,27).ngClassUntouched,o["\u0275nov"](t,27).ngClassTouched,o["\u0275nov"](t,27).ngClassPristine,o["\u0275nov"](t,27).ngClassDirty,o["\u0275nov"](t,27).ngClassValid,o["\u0275nov"](t,27).ngClassInvalid,o["\u0275nov"](t,27).ngClassPending),e(t,31,0,n.getMinDate(),o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending),e(t,40,0,o["\u0275nov"](t,45).ngClassUntouched,o["\u0275nov"](t,45).ngClassTouched,o["\u0275nov"](t,45).ngClassPristine,o["\u0275nov"](t,45).ngClassDirty,o["\u0275nov"](t,45).ngClassValid,o["\u0275nov"](t,45).ngClassInvalid,o["\u0275nov"](t,45).ngClassPending),e(t,62,1,[o["\u0275nov"](t,63).id,o["\u0275nov"](t,63).indeterminate,o["\u0275nov"](t,63).checked,o["\u0275nov"](t,63).disabled,"before"==o["\u0275nov"](t,63).labelPosition,"NoopAnimations"===o["\u0275nov"](t,63)._animationMode,o["\u0275nov"](t,67).ngClassUntouched,o["\u0275nov"](t,67).ngClassTouched,o["\u0275nov"](t,67).ngClassPristine,o["\u0275nov"](t,67).ngClassDirty,o["\u0275nov"](t,67).ngClassValid,o["\u0275nov"](t,67).ngClassInvalid,o["\u0275nov"](t,67).ngClassPending]),e(t,81,1,[o["\u0275nov"](t,82).id,o["\u0275nov"](t,82).indeterminate,o["\u0275nov"](t,82).checked,o["\u0275nov"](t,82).disabled,"before"==o["\u0275nov"](t,82).labelPosition,"NoopAnimations"===o["\u0275nov"](t,82)._animationMode,o["\u0275nov"](t,86).ngClassUntouched,o["\u0275nov"](t,86).ngClassTouched,o["\u0275nov"](t,86).ngClassPristine,o["\u0275nov"](t,86).ngClassDirty,o["\u0275nov"](t,86).ngClassValid,o["\u0275nov"](t,86).ngClassInvalid,o["\u0275nov"](t,86).ngClassPending]),e(t,96,1,[o["\u0275nov"](t,97).id,o["\u0275nov"](t,97).indeterminate,o["\u0275nov"](t,97).checked,o["\u0275nov"](t,97).disabled,"before"==o["\u0275nov"](t,97).labelPosition,"NoopAnimations"===o["\u0275nov"](t,97)._animationMode,o["\u0275nov"](t,101).ngClassUntouched,o["\u0275nov"](t,101).ngClassTouched,o["\u0275nov"](t,101).ngClassPristine,o["\u0275nov"](t,101).ngClassDirty,o["\u0275nov"](t,101).ngClassValid,o["\u0275nov"](t,101).ngClassInvalid,o["\u0275nov"](t,101).ngClassPending]),e(t,107,0,o["\u0275nov"](t,109).disabled||null,"NoopAnimations"===o["\u0275nov"](t,109)._animationMode),e(t,112,0,o["\u0275nov"](t,114).disabled||null,"NoopAnimations"===o["\u0275nov"](t,114)._animationMode),e(t,116,0,o["\u0275unv"](t,116,0,o["\u0275nov"](t,117).transform(n.link$))?"Update Link":"Create Link")})}var Us=o["\u0275crt"]({encapsulation:2,styles:[["share-link-dialog{display:block;min-height:273px}share-link-dialog .title{display:flex;align-items:center;margin-bottom:5px}share-link-dialog .title .right{margin-left:auto;color:rgba(0,0,0,.5)}share-link-dialog .link-input-container{display:flex;margin-bottom:10px}share-link-dialog .link-input-container input{flex:1 1 auto;border-top-right-radius:0;border-bottom-right-radius:0}share-link-dialog .link-input-container button{width:88px;flex:0 0 88px}share-link-dialog .mat-dialog-content{min-height:144px}share-link-dialog .social-icons{margin-bottom:10px}"]],data:{animation:[{type:7,name:"visibility",definitions:[{type:0,name:"true",styles:{type:6,styles:{height:"*",padding:"*",display:"block",overflow:"*"},offset:null},options:void 0},{type:0,name:"false",styles:{type:6,styles:{height:"0",padding:"0",display:"none",overflow:"hidden"},offset:null},options:void 0},{type:1,expr:"true <=> false",animation:{type:4,styles:null,timings:"225ms cubic-bezier(.4,0,.2,1)"},options:null}],options:{}}]}});function zs(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,72,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](2,0,null,null,31,"div",[["class","title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](4,0,null,null,11,"div",[["class","left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Link sharing is"])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](9,0,null,null,5,"span",[["class","state on"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](11,0,null,null,2,"button",[["class","on-text text no-style"],["trans",""]],null,[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.deleteLink()&&l),l},null,null)),o["\u0275did"](12,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["on"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](17,0,null,null,15,"div",[["class","right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](19,0,null,null,5,"button",[["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.deleteLink()&&l),l},$t.d,$t.b)),o["\u0275did"](20,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n                    "])),(e()(),o["\u0275eld"](22,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","delete"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](23,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](26,0,null,null,5,"button",[["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.toggleOptionsPanel()&&l),l},$t.d,$t.b)),o["\u0275did"](27,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n                    "])),(e()(),o["\u0275eld"](29,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","settings"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](30,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n\n        "])),(e()(),o["\u0275eld"](35,0,null,null,36,"div",[["class","link-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](37,0,null,null,9,"div",[["class","link-input-container input-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](39,0,null,null,1,"input",[["id","link-input"],["readonly",""],["tabindex","1"],["type","text"]],[[8,"value",0]],[[null,"click"],[null,"change"]],function(e,t,n){var l=!0,i=e.component;return"click"===t&&(l=!1!==i.focusInput()&&l),"change"===t&&(l=!1!==i.focusInput()&&l),l},null,null)),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](42,0,null,null,3,"button",[["color","primary"],["mat-flat-button",""],["trans",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.copyLinkToClipboard()&&l),l},$t.d,$t.b)),o["\u0275did"](43,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](44,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{color:[0,"color"]},null),(e()(),o["\u0275ted"](-1,0,["Copy"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](48,0,null,null,22,"div",[["class","social-icons"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](50,0,null,null,5,"button",[["class","social-icon no-style facebook"],["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.shareLink("facebook")&&l),l},$t.d,$t.b)),o["\u0275did"](51,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n                    "])),(e()(),o["\u0275eld"](53,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","facebook-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](54,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](57,0,null,null,5,"button",[["class","social-icon no-style google"],["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.shareLink("google-plus")&&l),l},$t.d,$t.b)),o["\u0275did"](58,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n                    "])),(e()(),o["\u0275eld"](60,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","google-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](61,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](64,0,null,null,5,"button",[["class","social-icon no-style twitter"],["mat-icon-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.shareLink("twitter")&&l),l},$t.d,$t.b)),o["\u0275did"](65,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n                    "])),(e()(),o["\u0275eld"](67,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","twitter-custom"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](68,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n                "])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,23,0,"delete"),e(t,30,0,"settings"),e(t,44,0,"primary"),e(t,54,0,"facebook-custom"),e(t,61,0,"google-custom"),e(t,68,0,"twitter-custom")},function(e,t){var n=t.component;e(t,19,0,o["\u0275nov"](t,20).disabled||null,"NoopAnimations"===o["\u0275nov"](t,20)._animationMode),e(t,22,0,o["\u0275nov"](t,23).inline),e(t,26,0,o["\u0275nov"](t,27).disabled||null,"NoopAnimations"===o["\u0275nov"](t,27)._animationMode),e(t,29,0,o["\u0275nov"](t,30).inline),e(t,39,0,o["\u0275unv"](t,39,0,o["\u0275nov"](t,40).transform(n.shareableLink$))),e(t,42,0,o["\u0275nov"](t,44).disabled||null,"NoopAnimations"===o["\u0275nov"](t,44)._animationMode),e(t,50,0,o["\u0275nov"](t,51).disabled||null,"NoopAnimations"===o["\u0275nov"](t,51)._animationMode),e(t,53,0,o["\u0275nov"](t,54).inline),e(t,57,0,o["\u0275nov"](t,58).disabled||null,"NoopAnimations"===o["\u0275nov"](t,58)._animationMode),e(t,60,0,o["\u0275nov"](t,61).inline),e(t,64,0,o["\u0275nov"](t,65).disabled||null,"NoopAnimations"===o["\u0275nov"](t,65)._animationMode),e(t,67,0,o["\u0275nov"](t,68).inline)})}function Bs(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,3,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""],["trans",""]],[[8,"id",0]],null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](4,81920,null,0,ds.l,[[2,ds.k],o.ElementRef,ds.e],null,null),(e()(),o["\u0275ted"](-1,null,["Shareable link"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](7,0,null,null,5,"button",[["class","close-button"],["mat-icon-button",""],["tabindex","-1"],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](8,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](10,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](15,0,null,null,14,"mat-dialog-content",[["class","mat-dialog-content"]],null,null,null,null,null)),o["\u0275did"](16,16384,null,0,ds.i,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,2,null,zs)),o["\u0275did"](19,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](22,0,null,null,2,"link-options",[],[[24,"@visibility",0]],null,null,Vs,Ms)),o["\u0275did"](23,114688,null,0,Fs,[ke.h],null,null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](26,0,null,null,2,"loading-indicator",[["class","overlay overlay-transparent"]],[[40,"@visibility",0]],null,null,jr.b,jr.a)),o["\u0275did"](27,49152,null,0,Cr.a,[],{isVisible:[0,"isVisible"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](31,0,null,null,8,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),o["\u0275did"](32,16384,null,0,ds.f,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](34,0,null,null,4,"button",[["class","submit-button"],["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](35,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](36,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Close"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,"close"),e(t,19,0,o["\u0275unv"](t,19,0,o["\u0275nov"](t,20).transform(n.link$))),e(t,23,0),e(t,27,0,o["\u0275unv"](t,27,0,o["\u0275nov"](t,28).transform(n.loading$))),e(t,36,0,o["\u0275unv"](t,36,0,o["\u0275nov"](t,37).transform(n.loading$)))},function(e,t){var n=t.component;e(t,2,0,o["\u0275nov"](t,4).id),e(t,7,0,o["\u0275nov"](t,8).disabled||null,"NoopAnimations"===o["\u0275nov"](t,8)._animationMode),e(t,10,0,o["\u0275nov"](t,11).inline),e(t,22,0,o["\u0275unv"](t,22,0,o["\u0275nov"](t,24).transform(n.optionsVisible$))),e(t,26,0,o["\u0275nov"](t,27).isVisible),e(t,34,0,o["\u0275nov"](t,36).disabled||null,"NoopAnimations"===o["\u0275nov"](t,36)._animationMode)})}var $s=o["\u0275ccf"]("share-link-dialog",yo,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"share-link-dialog",[],null,null,null,Bs,Us)),o["\u0275did"](1,4440064,null,0,yo,[ke.h,Ze.a,ke.b,Ye.a,ds.k],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),qs=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ws(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"context-actions-container",[],[[2,"compact",null]],null,null,rr,Qo)),o["\u0275did"](1,180224,null,0,Jo,[ke.h,o.Injector,li],null,null)],null,function(e,t){e(t,0,0,o["\u0275nov"](t,1).compact)})}var Hs=o["\u0275ccf"]("drive-context-menu",je,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"drive-context-menu",[],[[2,"context-menu",null]],null,null,Ws,qs)),o["\u0275did"](1,49152,null,0,je,[[2,ni],ke.h,De.a],null,null)],null,function(e,t){e(t,0,0,o["\u0275nov"](t,1).contextMenu)})},{},{},[]),Gs=o["\u0275crt"]({encapsulation:2,styles:[[""]],data:{}});function Ys(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.errors.name)})}function Zs(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,3,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""],["trans",""]],[[8,"id",0]],null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](4,81920,null,0,ds.l,[[2,ds.k],o.ElementRef,ds.e],null,null),(e()(),o["\u0275ted"](-1,null,["New Folder"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](7,0,null,null,5,"button",[["class","close-button"],["mat-icon-button",""],["tabindex","-1"],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](8,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](10,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](15,0,null,null,39,"form",[["ngNativeValidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var l=!0,i=e.component;return"submit"===t&&(l=!1!==o["\u0275nov"](e,16).onSubmit(n)&&l),"reset"===t&&(l=!1!==o["\u0275nov"](e,16).onReset()&&l),"ngSubmit"===t&&(l=!1!==i.confirm()&&l),l},null,null)),o["\u0275did"](16,4210688,null,0,zt.t,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),o["\u0275prd"](2048,null,zt.c,null,[zt.t]),o["\u0275did"](18,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](20,0,null,null,18,"mat-dialog-content",[["class","many-inputs mat-dialog-content"]],null,null,null,null,null)),o["\u0275did"](21,16384,null,0,ds.i,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","input-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](25,0,null,null,8,"input",[["min","3"],["placeholder","Folder name..."],["required",""],["trans-placeholder",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,26)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,26).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,26)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,26)._compositionEnd(n.target.value)&&l),l},null,null)),o["\u0275did"](26,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275did"](27,16384,null,0,zt.x,[],{required:[0,"required"]},null),o["\u0275prd"](1024,null,zt.o,function(e){return[e]},[zt.x]),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[zt.d]),o["\u0275did"](30,540672,null,0,zt.i,[[6,zt.o],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](32,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](33,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ys)),o["\u0275did"](36,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](40,0,null,null,13,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),o["\u0275did"](41,16384,null,0,ds.f,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](43,0,null,null,3,"button",[["class","cancel-button"],["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](44,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](45,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["Cancel"])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](48,0,null,null,4,"button",[["class","submit-button"],["color","primary"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,$t.d,$t.b)),o["\u0275did"](49,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](50,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Create"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,"close"),e(t,27,0,""),e(t,30,0,n.folderName),e(t,36,0,n.errors.name),e(t,50,0,o["\u0275unv"](t,50,0,o["\u0275nov"](t,51).transform(n.loading)),"primary")},function(e,t){e(t,2,0,o["\u0275nov"](t,4).id),e(t,7,0,o["\u0275nov"](t,8).disabled||null,"NoopAnimations"===o["\u0275nov"](t,8)._animationMode),e(t,10,0,o["\u0275nov"](t,11).inline),e(t,15,0,o["\u0275nov"](t,18).ngClassUntouched,o["\u0275nov"](t,18).ngClassTouched,o["\u0275nov"](t,18).ngClassPristine,o["\u0275nov"](t,18).ngClassDirty,o["\u0275nov"](t,18).ngClassValid,o["\u0275nov"](t,18).ngClassInvalid,o["\u0275nov"](t,18).ngClassPending),e(t,25,0,o["\u0275nov"](t,27).required?"":null,o["\u0275nov"](t,32).ngClassUntouched,o["\u0275nov"](t,32).ngClassTouched,o["\u0275nov"](t,32).ngClassPristine,o["\u0275nov"](t,32).ngClassDirty,o["\u0275nov"](t,32).ngClassValid,o["\u0275nov"](t,32).ngClassInvalid,o["\u0275nov"](t,32).ngClassPending),e(t,43,0,o["\u0275nov"](t,45).disabled||null,"NoopAnimations"===o["\u0275nov"](t,45)._animationMode),e(t,48,0,o["\u0275nov"](t,50).disabled||null,"NoopAnimations"===o["\u0275nov"](t,50)._animationMode)})}var Xs=o["\u0275ccf"]("crupdate-folder-dialog",wl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"crupdate-folder-dialog",[],null,null,null,Zs,Gs)),o["\u0275did"](1,49152,null,0,wl,[ds.k,ds.a,ke.h,Pe,o.ChangeDetectorRef],null,null)],null,null)},{},{},[]),Ks=o["\u0275crt"]({encapsulation:2,styles:[[""]],data:{}});function Js(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.errors.name)})}function Qs(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,3,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""],["trans",""]],[[8,"id",0]],null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](4,81920,null,0,ds.l,[[2,ds.k],o.ElementRef,ds.e],null,null),(e()(),o["\u0275ted"](-1,null,["Rename"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](7,0,null,null,5,"button",[["class","close-button"],["mat-icon-button",""],["tabindex","-1"],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](8,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](10,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](15,0,null,null,39,"form",[["ngNativeValidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var l=!0,i=e.component;return"submit"===t&&(l=!1!==o["\u0275nov"](e,16).onSubmit(n)&&l),"reset"===t&&(l=!1!==o["\u0275nov"](e,16).onReset()&&l),"ngSubmit"===t&&(l=!1!==i.confirm()&&l),l},null,null)),o["\u0275did"](16,4210688,null,0,zt.t,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),o["\u0275prd"](2048,null,zt.c,null,[zt.t]),o["\u0275did"](18,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](20,0,null,null,18,"mat-dialog-content",[["class","many-inputs mat-dialog-content"]],null,null,null,null,null)),o["\u0275did"](21,16384,null,0,ds.i,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","input-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](25,0,null,null,8,"input",[["min","3"],["placeholder","Enter a name..."],["required",""],["trans-placeholder",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var l=!0;return"input"===t&&(l=!1!==o["\u0275nov"](e,26)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==o["\u0275nov"](e,26).onTouched()&&l),"compositionstart"===t&&(l=!1!==o["\u0275nov"](e,26)._compositionStart()&&l),"compositionend"===t&&(l=!1!==o["\u0275nov"](e,26)._compositionEnd(n.target.value)&&l),l},null,null)),o["\u0275did"](26,16384,null,0,zt.d,[o.Renderer2,o.ElementRef,[2,zt.a]],null,null),o["\u0275did"](27,16384,null,0,zt.x,[],{required:[0,"required"]},null),o["\u0275prd"](1024,null,zt.o,function(e){return[e]},[zt.x]),o["\u0275prd"](1024,null,zt.p,function(e){return[e]},[zt.d]),o["\u0275did"](30,540672,null,0,zt.i,[[6,zt.o],[8,null],[6,zt.p],[2,zt.E]],{form:[0,"form"]},null),o["\u0275prd"](2048,null,zt.q,null,[zt.i]),o["\u0275did"](32,16384,null,0,zt.r,[[4,zt.q]],null,null),o["\u0275did"](33,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Js)),o["\u0275did"](36,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](40,0,null,null,13,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),o["\u0275did"](41,16384,null,0,ds.f,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](43,0,null,null,3,"button",[["class","cancel-button"],["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](44,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](45,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["Cancel"])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](48,0,null,null,4,"button",[["class","submit-button"],["color","accent"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,$t.d,$t.b)),o["\u0275did"](49,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](50,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Rename"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,"close"),e(t,27,0,""),e(t,30,0,n.entryName),e(t,36,0,n.errors.name),e(t,50,0,o["\u0275unv"](t,50,0,o["\u0275nov"](t,51).transform(n.loading)),"accent")},function(e,t){e(t,2,0,o["\u0275nov"](t,4).id),e(t,7,0,o["\u0275nov"](t,8).disabled||null,"NoopAnimations"===o["\u0275nov"](t,8)._animationMode),e(t,10,0,o["\u0275nov"](t,11).inline),e(t,15,0,o["\u0275nov"](t,18).ngClassUntouched,o["\u0275nov"](t,18).ngClassTouched,o["\u0275nov"](t,18).ngClassPristine,o["\u0275nov"](t,18).ngClassDirty,o["\u0275nov"](t,18).ngClassValid,o["\u0275nov"](t,18).ngClassInvalid,o["\u0275nov"](t,18).ngClassPending),e(t,25,0,o["\u0275nov"](t,27).required?"":null,o["\u0275nov"](t,32).ngClassUntouched,o["\u0275nov"](t,32).ngClassTouched,o["\u0275nov"](t,32).ngClassPristine,o["\u0275nov"](t,32).ngClassDirty,o["\u0275nov"](t,32).ngClassValid,o["\u0275nov"](t,32).ngClassInvalid,o["\u0275nov"](t,32).ngClassPending),e(t,43,0,o["\u0275nov"](t,45).disabled||null,"NoopAnimations"===o["\u0275nov"](t,45)._animationMode),e(t,48,0,o["\u0275nov"](t,50).disabled||null,"NoopAnimations"===o["\u0275nov"](t,50)._animationMode)})}var eu=o["\u0275ccf"]("rename-entry-dialog",Lo,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"rename-entry-dialog",[],null,null,null,Qs,Ks)),o["\u0275did"](1,114688,null,0,Lo,[ds.k,ke.h,Ze.a,Fe,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),tu=function(){},nu=o["\u0275crt"]({encapsulation:2,styles:[["uploads-panel-item{display:flex;align-items:center;padding:15px;border-bottom:1px solid #e0e0e0}uploads-panel-item file-icon{width:35px;height:35px;flex:0 0 35px;margin-right:10px}uploads-panel-item .content{flex:1 1 auto;margin-bottom:5px;min-width:0}uploads-panel-item .content .meta{display:flex;align-items:center;padding-bottom:4px}uploads-panel-item .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}uploads-panel-item .time-left{color:rgba(0,0,0,.54);font-size:1.3rem;padding-left:20px;white-space:nowrap}uploads-panel-item .actions{margin-left:auto;padding-left:20px}uploads-panel-item .actions .mat-icon{vertical-align:middle;width:22px;height:22px;margin-bottom:4px}uploads-panel-item .completed-icon{color:#689f38}uploads-panel-item .error-icon{color:#f44336}uploads-panel-item .cancel-button{color:#1565c0;cursor:pointer;font-size:1.2rem;text-transform:uppercase;line-height:22px}uploads-panel-item .cancel-button:hover{text-decoration:underline}uploads-panel-item .mat-progress-bar{height:3px;border-radius:3px}uploads-panel-item .mat-progress-bar .mat-progress-bar-buffer{background-color:#f1f1f1}uploads-panel-item .mat-progress-bar .mat-progress-bar-fill:after{background-color:#689f38}"]],data:{}});function lu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"div",[["class","time-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n                ","\n                "])),(e()(),o["\u0275eld"](2,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["left"])),(e()(),o["\u0275ted"](-1,null,["\n            "]))],null,function(e,t){e(t,1,0,t.parent.context.ngIf.eta)})}function iu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","error-icon mat-icon"],["matTooltipPosition","left"],["role","img"],["svgIcon","error"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var l=!0;return"longpress"===t&&(l=!1!==o["\u0275nov"](e,1).show()&&l),"keydown"===t&&(l=!1!==o["\u0275nov"](e,1)._handleKeydown(n)&&l),"touchend"===t&&(l=!1!==o["\u0275nov"](e,1)._handleTouchend()&&l),l},Vt.b,Vt.a)),o["\u0275did"](1,147456,null,0,Ii.d,[nl.c,o.ElementRef,il.c,o.ViewContainerRef,o.NgZone,Wt.a,Ht.c,Ht.h,Ii.b,[2,ll.b],[2,Ii.a]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),o["\u0275ppd"](2,1),o["\u0275did"](3,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0,"left",!t.parent.context.ngIf.error,o["\u0275unv"](t,1,2,e(t,2,0,o["\u0275nov"](t.parent.parent,0),t.parent.context.ngIf.error))),e(t,3,0,"error")},function(e,t){e(t,0,0,o["\u0275nov"](t,3).inline)})}function ou(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mat-icon",[["class","completed-icon mat-icon"],["role","img"],["svgIcon","check-circle"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](1,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null)],function(e,t){e(t,1,0,"check-circle")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).inline)})}function ru(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"span",[["class","cancel-button"]],null,[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.upload.cancel()&&l),l},null,null)),(e()(),o["\u0275ted"](-1,null,["Cancel"]))],null,null)}function au(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ou)),o["\u0275did"](2,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n                    "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ru)),o["\u0275did"](5,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n                "]))],function(e,t){var n=t.component;e(t,2,0,n.upload.completed),e(t,5,0,!n.upload.completed)},null)}function su(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,27,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,1,"file-icon",[],null,null,null,nn,tn)),o["\u0275did"](3,573440,null,0,en,[],{type:[0,"type"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](5,0,null,null,21,"div",[["class","content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](7,0,null,null,15,"div",[["class","meta"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](9,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](10,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275and"](16777216,null,null,1,null,lu)),o["\u0275did"](13,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](15,0,null,null,6,"div",[["class","actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275and"](16777216,null,null,1,null,iu)),o["\u0275did"](18,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275and"](0,[["noError",2]],null,0,null,au)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](24,0,null,null,1,"mat-progress-bar",[["aria-valuemax","100"],["aria-valuemin","0"],["class","mat-progress-bar"],["mode","determinate"],["role","progressbar"]],[[1,"aria-valuenow",0],[1,"mode",0],[2,"_mat-animation-noopable",null]],null,null,gi,mi)),o["\u0275did"](25,49152,null,0,hi.b,[o.ElementRef,[2,Gt.a],[2,hi.a]],{value:[0,"value"],mode:[1,"mode"]},null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.upload.mime),e(t,13,0,!n.upload.completed&&!n.upload.pending),e(t,18,0,n.upload.hasError,o["\u0275nov"](t,20)),e(t,25,0,t.context.ngIf.progress,"determinate")},function(e,t){e(t,10,0,t.component.upload.filename),e(t,24,0,o["\u0275nov"](t,25).value,o["\u0275nov"](t,25).mode,"NoopAnimations"===o["\u0275nov"](t,25)._animationMode)})}function uu(e){return o["\u0275vid"](2,[o["\u0275pid"](0,Ki.a,[Xe.a]),(e()(),o["\u0275and"](16777216,null,null,2,null,su)),o["\u0275did"](2,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.upload.meta$)))},null)}var cu=o["\u0275crt"]({encapsulation:2,styles:[["uploads-panel{width:380px;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12);background-color:#fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}uploads-panel .header{display:flex;align-items:center;background-color:#1565c0;color:#fff;padding:8px}uploads-panel .header .info{padding-left:10px}uploads-panel .header .actions{margin-left:auto}uploads-panel .header .minimize-icon{width:30px;height:30px}uploads-panel .uploads-list{max-height:350px;overflow:auto}"]],data:{}});function du(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,12,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](2,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["Uploading"])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["class","count"]],null,null,null,null,null)),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](9,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](10,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n        "]))],null,function(e,t){e(t,7,0,t.context.ngIf),e(t,11,0,t.context.ngIf>1?"Items":"Item")})}function pu(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](1,0,null,null,2,"span",[["class","count"]],null,null,null,null,null)),(e()(),o["\u0275ted"](2,null,["",""])),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n            "])),(e()(),o["\u0275eld"](5,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](6,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](-1,null,["items uploaded"])),(e()(),o["\u0275ted"](-1,null,["\n        "]))],null,function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.activeUploads.getCompletedCount())))})}function fu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mat-icon",[["class","minimize-icon mat-icon"],["role","img"],["svgIcon","keyboard-arrow-up"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](1,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null)],function(e,t){e(t,1,0,"keyboard-arrow-up")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).inline)})}function hu(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n                "])),(e()(),o["\u0275eld"](1,0,null,null,1,"mat-icon",[["class","minimize-icon mat-icon"],["role","img"],["svgIcon","keyboard-arrow-down"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](2,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,null,["\n            "]))],function(e,t){e(t,2,0,"keyboard-arrow-down")},function(e,t){e(t,1,0,o["\u0275nov"](t,2).inline)})}function mu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"uploads-panel-item",[],null,null,null,uu,nu)),o["\u0275did"](1,49152,null,0,tu,[],{upload:[0,"upload"]},null)],function(e,t){e(t,1,0,t.context.$implicit)},null)}function gu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,30,"div",[["class","header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,7,"div",[["class","info"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](16777216,null,null,2,null,du)),o["\u0275did"](5,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275and"](0,[["allCompleted",2]],null,0,null,pu)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](11,0,null,null,18,"div",[["class","actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](13,0,null,null,8,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.toggleMinimized()&&l),l},$t.d,$t.b)),o["\u0275did"](14,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275and"](16777216,null,0,2,null,fu)),o["\u0275did"](17,16384,null,0,Bt.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275and"](0,[["notMinimized",2]],0,0,null,hu)),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](23,0,null,null,5,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](24,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n            "])),(e()(),o["\u0275eld"](26,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](27,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](32,0,null,null,6,"div",[["class","uploads-list"]],[[2,"hidden",null]],null,null,null,null)),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275and"](16777216,null,null,2,null,mu)),o["\u0275did"](36,278528,null,0,Bt.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.activeUploads.getPendingCount())),o["\u0275nov"](t,8)),e(t,17,0,o["\u0275unv"](t,17,0,o["\u0275nov"](t,18).transform(n.minimized$)),o["\u0275nov"](t,20)),e(t,27,0,"close"),e(t,36,0,o["\u0275unv"](t,36,0,o["\u0275nov"](t,37).transform(n.activeUploads.getAll())),n.trackById)},function(e,t){var n=t.component;e(t,13,0,o["\u0275nov"](t,14).disabled||null,"NoopAnimations"===o["\u0275nov"](t,14)._animationMode),e(t,23,0,o["\u0275nov"](t,24).disabled||null,"NoopAnimations"===o["\u0275nov"](t,24)._animationMode),e(t,26,0,o["\u0275nov"](t,27).inline),e(t,32,0,o["\u0275unv"](t,32,0,o["\u0275nov"](t,33).transform(n.minimized$)))})}var bu=o["\u0275ccf"]("uploads-panel",yt,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"uploads-panel",[],null,null,null,gu,cu)),o["\u0275did"](1,180224,null,0,yt,[ke.h,Be.a,o.NgZone],null,null)],null,null)},{},{},[]),vu=o["\u0275crt"]({encapsulation:2,styles:[[".move-entries-dialog-container{width:350px}move-entries-dialog folders-tree{border:1px solid #eff1f2;border-radius:3px}move-entries-dialog .mat-dialog-actions{margin-top:15px}"]],data:{}});function yu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](2,0,null,null,3,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""],["trans",""]],[[8,"id",0]],null,null,null,null)),o["\u0275did"](3,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](4,81920,null,0,ds.l,[[2,ds.k],o.ElementRef,ds.e],null,null),(e()(),o["\u0275ted"](-1,null,["Move items"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](7,0,null,null,5,"button",[["class","close-button"],["mat-icon-button",""],["tabindex","-1"],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](8,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](10,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","close"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](11,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](15,0,null,null,27,"form",[["ngNativeValidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var l=!0,i=e.component;return"submit"===t&&(l=!1!==o["\u0275nov"](e,16).onSubmit(n)&&l),"reset"===t&&(l=!1!==o["\u0275nov"](e,16).onReset()&&l),"ngSubmit"===t&&(l=!1!==i.confirm()&&l),l},null,null)),o["\u0275did"](16,4210688,null,0,zt.t,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),o["\u0275prd"](2048,null,zt.c,null,[zt.t]),o["\u0275did"](18,16384,null,0,zt.s,[[4,zt.c]],null,null),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275eld"](20,0,null,null,6,"mat-dialog-content",[["class","mat-dialog-content"]],null,null,null,null,null)),o["\u0275did"](21,16384,null,0,ds.i,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](23,0,null,null,2,"folders-tree",[],[[2,"expanded",null]],[[null,"folderSelected"]],function(e,t,n){var l=!0;return"folderSelected"===t&&(l=!1!==(e.component.selectedFolder=n)&&l),l},di,ui)),o["\u0275did"](24,49152,null,0,ai,[si],{expanded:[0,"expanded"],movingEntries:[1,"movingEntries"],disableContextMenu:[2,"disableContextMenu"]},{folderSelected:"folderSelected"}),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n\n    "])),(e()(),o["\u0275eld"](28,0,null,null,13,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),o["\u0275did"](29,16384,null,0,ds.f,[],null,null),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](31,0,null,null,3,"button",[["class","cancel-button"],["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.close()&&l),l},$t.d,$t.b)),o["\u0275did"](32,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](33,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["Cancel"])),(e()(),o["\u0275ted"](-1,null,["\n        "])),(e()(),o["\u0275eld"](36,0,null,null,4,"button",[["class","submit-button"],["color","primary"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,$t.d,$t.b)),o["\u0275did"](37,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),o["\u0275did"](38,180224,null,0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],{disabled:[0,"disabled"],color:[1,"color"]},null),o["\u0275pid"](131072,Bt.AsyncPipe,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,0,["Move"])),(e()(),o["\u0275ted"](-1,null,["\n    "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,"close"),e(t,24,0,!0,o["\u0275unv"](t,24,1,o["\u0275nov"](t,25).transform(n.selectedEntries$)),!0),e(t,38,0,!n.selectedFolder||o["\u0275unv"](t,38,0,o["\u0275nov"](t,39).transform(n.loading)),"primary")},function(e,t){e(t,2,0,o["\u0275nov"](t,4).id),e(t,7,0,o["\u0275nov"](t,8).disabled||null,"NoopAnimations"===o["\u0275nov"](t,8)._animationMode),e(t,10,0,o["\u0275nov"](t,11).inline),e(t,15,0,o["\u0275nov"](t,18).ngClassUntouched,o["\u0275nov"](t,18).ngClassTouched,o["\u0275nov"](t,18).ngClassPristine,o["\u0275nov"](t,18).ngClassDirty,o["\u0275nov"](t,18).ngClassValid,o["\u0275nov"](t,18).ngClassInvalid,o["\u0275nov"](t,18).ngClassPending),e(t,23,0,o["\u0275nov"](t,24).expanded),e(t,31,0,o["\u0275nov"](t,33).disabled||null,"NoopAnimations"===o["\u0275nov"](t,33)._animationMode),e(t,36,0,o["\u0275nov"](t,38).disabled||null,"NoopAnimations"===o["\u0275nov"](t,38)._animationMode)})}var _u=o["\u0275ccf"]("move-entries-dialog",Wo,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"move-entries-dialog",[],null,null,null,yu,vu)),o["\u0275prd"](4608,null,si,si,[]),o["\u0275did"](2,245760,null,0,Wo,[ds.k,ke.h,ke.b],null,null)],function(e,t){e(t,2,0)},null)},{},{},[]),wu=n("ZfYz"),Ou=n("nPOm"),xu=o["\u0275crt"]({encapsulation:2,styles:[[".file-preview-overlay-container{width:100%;height:100%}file-preview-overlay{display:block;width:100%;height:100%;background-color:rgba(0,0,0,.9);color:#fff;overflow:auto;position:relative}file-preview-overlay preview-container{margin:60px 0;min-height:calc(100% - 120px)}"]],data:{}});function ju(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{previewContainer:0}),o["\u0275qud"](402653184,2,{optionsButton:0}),(e()(),o["\u0275eld"](2,0,null,null,9,"file-preview-toolbar",[],null,[[null,"closed"]],function(e,t,n){var l=!0;return"closed"===t&&(l=!1!==e.component.closeOverlay()&&l),l},Dn,Cn)),o["\u0275did"](3,49152,null,0,ln,[jn,Ye.a],{showCloseButton:[0,"showCloseButton"]},{closed:"closed"}),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275eld"](5,0,[[2,0]],0,5,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.openContextMenu()&&l),l},$t.d,$t.b)),o["\u0275did"](6,180224,[["moreOptionsButton",4]],0,qt.b,[o.ElementRef,Wt.a,Ht.h,[2,Gt.a]],null,null),(e()(),o["\u0275ted"](-1,0,["\n        "])),(e()(),o["\u0275eld"](8,0,null,0,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","more-vert"]],[[2,"mat-icon-inline",null]],null,null,Vt.b,Vt.a)),o["\u0275did"](9,638976,null,0,Ut.a,[o.ElementRef,Ut.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),o["\u0275ted"](-1,0,["\n    "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](13,0,[[1,0]],null,1,"preview-container",[],null,null,null,Un,Nn)),o["\u0275did"](14,704512,[["previewContainer",4]],0,Mn,[jn],{files:[0,"files"]},null)],function(e,t){var n=t.component;e(t,3,0,!0),e(t,9,0,"more-vert"),e(t,14,0,n.entries)},function(e,t){e(t,5,0,o["\u0275nov"](t,6).disabled||null,"NoopAnimations"===o["\u0275nov"](t,6)._animationMode),e(t,8,0,o["\u0275nov"](t,9).inline)})}var Cu=o["\u0275ccf"]("file-preview-overlay",Ee,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"file-preview-overlay",[],null,null,null,ju,xu)),o["\u0275did"](1,4374528,null,0,Ee,[ke.h,o.ElementRef,li,wu.a,jn,Ou.a],null,null)],null,null)},{},{},[]),ku=100,Eu=Object(Qn.F)(function(e){this._elementRef=e},"primary"),Su=new o.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:ku}}}),Ru=function(e){function t(t,n,l,i,o){var r=e.call(this,t,n,l,i,o)||this;return r.mode="indeterminate",r}return Object(Se.c)(t,e),t}(function(e){function t(t,n,l,i,o){var r=e.call(this,t)||this;return r._elementRef=t,r._document=l,r.animationMode=i,r.defaults=o,r._value=0,r._fallbackAnimation=!1,r._noopAnimations="NoopAnimations"===r.animationMode&&!!r.defaults&&!r.defaults._forceAnimations,r._diameter=ku,r.mode="determinate",r._fallbackAnimation=n.EDGE||n.TRIDENT,o&&(o.diameter&&(r.diameter=o.diameter),o.strokeWidth&&(r.strokeWidth=o.strokeWidth)),t.nativeElement.classList.add("mat-progress-spinner-indeterminate"+(r._fallbackAnimation?"-fallback":"")+"-animation"),r}return Object(Se.c)(t,e),Object.defineProperty(t.prototype,"diameter",{get:function(){return this._diameter},set:function(e){this._diameter=Object(Fl.e)(e),this._fallbackAnimation||t.diameters.has(this._diameter)||this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Object(Fl.e)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Object(Fl.e)(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_viewBox",{get:function(){var e=2*this._circleRadius+this.strokeWidth;return"0 0 "+e+" "+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),t.prototype._attachStyleNode=function(){var e=t.styleTag;e||(e=this._document.createElement("style"),this._document.head.appendChild(e),t.styleTag=e),e&&e.sheet&&e.sheet.insertRule(this._getAnimationText(),0),t.diameters.add(this.diameter)},t.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},t.diameters=new Set([ku]),t.styleTag=null,t}(Eu)),Iu=function(){},Du=o["\u0275crt"]({encapsulation:2,styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],data:{}});function Pu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"animation-name",null],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n._circleRadius,"mat-progress-spinner-stroke-rotate-"+n.diameter,n._strokeDashOffset,n._strokeCircumference,n._circleStrokeWidth)})}function Au(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n._circleRadius,n._strokeDashOffset,n._strokeCircumference,n._circleStrokeWidth)})}function Tu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,5,":svg:svg",[["focusable","false"],["preserveAspectRatio","xMidYMid meet"]],[[4,"width","px"],[4,"height","px"],[1,"viewBox",0]],null,null,null,null)),o["\u0275did"](1,16384,null,0,Bt.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275and"](16777216,null,null,1,null,Pu)),o["\u0275did"](3,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275and"](16777216,null,null,1,null,Au)),o["\u0275did"](5,278528,null,0,Bt.NgSwitchCase,[o.ViewContainerRef,o.TemplateRef,Bt.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){e(t,1,0,"indeterminate"===t.component.mode),e(t,3,0,!0),e(t,5,0,!1)},function(e,t){var n=t.component;e(t,0,0,n.diameter,n.diameter,n._viewBox)})}var Fu=n("vARd"),Mu=o["\u0275crt"]({encapsulation:2,styles:[["loading-toast{display:flex;align-items:center}loading-toast .mat-spinner{margin-right:20px}loading-toast .mat-spinner circle{stroke:#fff}"]],data:{}});function Nu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"mat-spinner",[["class","mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"]],null,null,Tu,Du)),o["\u0275did"](1,49152,null,0,Ru,[o.ElementRef,Wt.a,[2,Bt.DOCUMENT],[2,Gt.a],Su],{diameter:[0,"diameter"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),o["\u0275did"](4,4341760,null,0,Lt.a,[o.ElementRef,Xe.a,Ye.a],null,null),(e()(),o["\u0275ted"](5,null,["",""]))],function(e,t){e(t,1,0,30)},function(e,t){var n=t.component;e(t,0,0,o["\u0275nov"](t,1)._noopAnimations,o["\u0275nov"](t,1).diameter,o["\u0275nov"](t,1).diameter),e(t,5,0,n.data.message)})}var Lu=o["\u0275ccf"]("loading-toast",gt,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"loading-toast",[],null,null,null,Nu,Mu)),o["\u0275did"](1,49152,null,0,gt,[Fu.a],null,null)],null,null)},{},{},[]),Vu=n("t/Na"),Uu=n("M2Lx"),zu=n("OnlV"),Bu=n("uGex"),$u=n("dz5c"),qu=n("hD7E"),Wu=n("2Yio"),Hu=n("6rvT"),Gu=n("9rgC"),Yu=function(){},Zu=n("0QyJ"),Xu=function(){},Ku=function(){},Ju=n("kWGw"),Qu=n("La40"),ec=n("/dO6"),tc=n("WOz2"),nc=function(){},lc=n("seP3"),ic=n("YSh2");n.d(t,"DriveModuleNgFactory",function(){return oc});var oc=o["\u0275cmf"](Pt,[],function(e){return o["\u0275mod"]([o["\u0275mpd"](512,o.ComponentFactoryResolver,o["\u0275CodegenComponentFactoryResolver"],[[8,[At.a,Tt.a,Ft.a,Mt.a,Mt.b,Nt.a,Zn,Mr,$a,Ga,es,ls,rs,Xa,cs,Ps,$s,Hs,Xs,eu,bu,_u,Cu,Lu]],[3,o.ComponentFactoryResolver],o.NgModuleRef]),o["\u0275mpd"](4608,Bt.NgLocalization,Bt.NgLocaleLocalization,[o.LOCALE_ID,[2,Bt["\u0275angular_packages_common_common_a"]]]),o["\u0275mpd"](4608,zt.D,zt.D,[]),o["\u0275mpd"](4608,zt.g,zt.g,[]),o["\u0275mpd"](4608,Vu.k,Vu.q,[Bt.DOCUMENT,o.PLATFORM_ID,Vu.o]),o["\u0275mpd"](4608,Vu.r,Vu.r,[Vu.k,Vu.p]),o["\u0275mpd"](5120,Vu.a,function(e){return[e]},[Vu.r]),o["\u0275mpd"](4608,Vu.n,Vu.n,[]),o["\u0275mpd"](6144,Vu.l,null,[Vu.n]),o["\u0275mpd"](4608,Vu.j,Vu.j,[Vu.l]),o["\u0275mpd"](6144,Vu.b,null,[Vu.j]),o["\u0275mpd"](4608,Vu.g,Vu.m,[Vu.b,o.Injector]),o["\u0275mpd"](4608,Vu.c,Vu.c,[Vu.g]),o["\u0275mpd"](4608,nl.c,nl.c,[nl.i,nl.e,o.ComponentFactoryResolver,nl.h,nl.f,o.Injector,o.NgZone,Bt.DOCUMENT,ll.b]),o["\u0275mpd"](5120,nl.j,nl.k,[nl.c]),o["\u0275mpd"](5120,ds.c,ds.d,[nl.c]),o["\u0275mpd"](4608,ds.e,ds.e,[nl.c,o.Injector,[2,Bt.Location],[2,ds.b],ds.c,[3,ds.e],nl.e]),o["\u0275mpd"](4608,jl.a,jl.a,[ds.e]),o["\u0275mpd"](5120,co.b,co.g,[nl.c]),o["\u0275mpd"](4608,Uu.c,Uu.c,[]),o["\u0275mpd"](5120,Ii.b,Ii.c,[nl.c]),o["\u0275mpd"](4608,zu.a,zu.a,[Ar.a]),o["\u0275mpd"](4608,On,xn,[]),o["\u0275mpd"](4608,qa.f,Qn.e,[[2,Qn.i],[2,Qn.n]]),o["\u0275mpd"](4608,Qn.d,Qn.d,[]),o["\u0275mpd"](135680,Ht.h,Ht.h,[o.NgZone,Wt.a]),o["\u0275mpd"](4608,Nl,Nl,[o.TemplateRef]),o["\u0275mpd"](5120,tl.b,tl.c,[nl.c]),o["\u0275mpd"](5120,Bu.a,Bu.b,[nl.c]),o["\u0275mpd"](5120,Gr.d,Gr.a,[[3,Gr.d]]),o["\u0275mpd"](4608,ke.z,ke.z,[[3,ke.z],[2,ke.c]]),o["\u0275mpd"](5120,Cl,Dt,[Ye.a]),o["\u0275mpd"](4608,nt,nt,[Pe,Fe,Jt.o,Me,Be.a,ke.h,ze,Je,Cl]),o["\u0275mpd"](4608,Mo,Mo,[ke.h,Oo]),o["\u0275mpd"](4608,mt,mt,[ke.h,Ye.a,ot]),o["\u0275mpd"](4608,li,li,[Jt.o,o.NgZone,o.Injector,o.ComponentFactoryResolver,nl.c]),o["\u0275mpd"](4608,$u.a,$u.a,[nl.c,zu.a,o.Injector]),o["\u0275mpd"](4608,jn,jn,[On,o.Injector]),o["\u0275mpd"](4608,Ze.a,Ze.a,[Ye.a,Xe.a,Fu.b]),o["\u0275mpd"](4608,lt,lt,[ke.h,ke.b,$u.a]),o["\u0275mpd"](4608,it,it,[ke.b,ke.h,Ye.a]),o["\u0275mpd"](4608,bt,bt,[ke.b,Ze.a,ke.h,Jt.o]),o["\u0275mpd"](4608,wt,wt,[ke.b,De.a,$u.a]),o["\u0275mpd"](4608,xt,xt,[ke.b,jl.a,o.NgZone,ke.h]),o["\u0275mpd"](4608,jt,jt,[ke.b,Gi]),o["\u0275mpd"](4608,kt,kt,[ke.h]),o["\u0275mpd"](4608,Et,Et,[ke.h,ke.b,De.a]),o["\u0275mpd"](4608,St,St,[ke.b,ke.h]),o["\u0275mpd"](1073742336,Bt.CommonModule,Bt.CommonModule,[]),o["\u0275mpd"](1073742336,zt.A,zt.A,[]),o["\u0275mpd"](1073742336,zt.n,zt.n,[]),o["\u0275mpd"](1073742336,zt.w,zt.w,[]),o["\u0275mpd"](1073742336,Jt.s,Jt.s,[[2,Jt.z],[2,Jt.o]]),o["\u0275mpd"](1073742336,Vu.e,Vu.e,[]),o["\u0275mpd"](1073742336,Vu.d,Vu.d,[]),o["\u0275mpd"](1073742336,qu.a,qu.a,[]),o["\u0275mpd"](1073742336,ll.a,ll.a,[]),o["\u0275mpd"](1073742336,rn.g,rn.g,[]),o["\u0275mpd"](1073742336,Wt.b,Wt.b,[]),o["\u0275mpd"](1073742336,il.b,il.b,[]),o["\u0275mpd"](1073742336,nl.g,nl.g,[]),o["\u0275mpd"](1073742336,Qn.n,Qn.n,[[2,Qn.f]]),o["\u0275mpd"](1073742336,ds.j,ds.j,[]),o["\u0275mpd"](1073742336,Qn.z,Qn.z,[]),o["\u0275mpd"](1073742336,qt.c,qt.c,[]),o["\u0275mpd"](1073742336,Ut.b,Ut.b,[]),o["\u0275mpd"](1073742336,Wu.a,Wu.a,[]),o["\u0275mpd"](1073742336,Hu.a,Hu.a,[]),o["\u0275mpd"](1073742336,Fu.e,Fu.e,[]),o["\u0275mpd"](1073742336,co.e,co.e,[]),o["\u0275mpd"](1073742336,Uu.d,Uu.d,[]),o["\u0275mpd"](1073742336,Ts.c,Ts.c,[]),o["\u0275mpd"](1073742336,Ht.a,Ht.a,[]),o["\u0275mpd"](1073742336,Ii.e,Ii.e,[]),o["\u0275mpd"](1073742336,Gu.a,Gu.a,[Ut.c,qa.c,Ye.a]),o["\u0275mpd"](1073742336,hi.c,hi.c,[]),o["\u0275mpd"](1073742336,Yu,Yu,[]),o["\u0275mpd"](1073742336,Xu,Xu,[]),o["\u0275mpd"](1073742336,Ku,Ku,[]),o["\u0275mpd"](1073742336,Ju.c,Ju.c,[]),o["\u0275mpd"](1073742336,Qu.i,Qu.i,[]),o["\u0275mpd"](1073742336,ec.f,ec.f,[]),o["\u0275mpd"](1073742336,tc.a,tc.a,[]),o["\u0275mpd"](1073742336,nc,nc,[]),o["\u0275mpd"](1073742336,yl.h,yl.h,[]),o["\u0275mpd"](1073742336,Bl,Bl,[]),o["\u0275mpd"](1073742336,Kl,Kl,[]),o["\u0275mpd"](1073742336,Qn.x,Qn.x,[]),o["\u0275mpd"](1073742336,Qn.u,Qn.u,[]),o["\u0275mpd"](1073742336,tl.e,tl.e,[]),o["\u0275mpd"](1073742336,lc.d,lc.d,[]),o["\u0275mpd"](1073742336,Bu.d,Bu.d,[]),o["\u0275mpd"](1073742336,Wr.p,Wr.p,[]),o["\u0275mpd"](1073742336,qr.m,qr.m,[]),o["\u0275mpd"](1073742336,Gr.e,Gr.e,[]),o["\u0275mpd"](1073742336,Iu,Iu,[]),o["\u0275mpd"](512,ke.u,ke.u,[o.Injector,[3,ke.u],ke.q,ke.v,ke.x]),o["\u0275mpd"](1024,ke.s,function(){return[[nt,Mo,mt]]},[]),o["\u0275mpd"](1073742336,ke.m,ke.m,[ke.h,ke.y,ke.u,[2,ke.s]]),o["\u0275mpd"](1073742336,Pt,Pt,[o.Injector]),o["\u0275mpd"](256,Vu.o,"XSRF-TOKEN",[]),o["\u0275mpd"](256,Vu.p,"X-XSRF-TOKEN",[]),o["\u0275mpd"](1024,Jt.m,function(){return[[{path:"s/:hash",component:Bn},{path:"",component:Pr,canActivate:[Zu.a],children:[{path:"",component:Ra},{path:"shares",component:Ra},{path:"search",component:Ra},{path:"recent",component:Ra},{path:"starred",component:Ra},{path:"trash",component:Ra},{path:"folders/:hash",component:Ra}]}]]},[]),o["\u0275mpd"](256,ec.a,{separatorKeyCodes:[ic.f]},[]),o["\u0275mpd"](1024,ii,function(){return[It]},[])])})},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,l=Array(e);++n<e;)l[n]=t(n);return l}},V6Ve:function(e,t,n){var l=n("kekF")(Object.keys,Object);e.exports=l},VOtZ:function(e,t,n){var l=n("juv8"),i=n("MvSz");e.exports=function(e,t){return l(e,i(e),t)}},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},WFqU:function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},WOz2:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var l=function(){}},WwFo:function(e,t,n){var l=n("juv8"),i=n("7GkX");e.exports=function(e,t){return e&&l(t,i(t),e)}},XYm9:function(e,t,n){var l=n("+K+b");e.exports=function(e,t){var n=t?l(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},Xi7e:function(e,t,n){var l=n("KMkd"),i=n("adU4"),o=n("tMB7"),r=n("+6XX"),a=n("Z8oC");function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var l=e[t];this.set(l[0],l[1])}}s.prototype.clear=l,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=r,s.prototype.set=a,e.exports=s},"Xt/L":function(e,t){e.exports=function(e,t,n){for(var l=-1,i=null==e?0:e.length;++l<i;)if(n(t,e[l]))return!0;return!1}},"Y+p1":function(e,t,n){var l=n("wF/u");e.exports=function(e,t){return l(e,t)}},YESw:function(e,t,n){var l=n("Cwc5")(Object,"create");e.exports=l},YlbQ:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n("mrSG"),n("6blF"),n("F/XL");var l=n("K9Ia"),i=n("CcnG"),o=function(){},r=function(){function e(e,t,n){void 0===e&&(e=!1),void 0===n&&(n=!0);var i=this;this._multiple=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=this._emitChanges?new l.a:null,this.onChange=this.changed,t&&t.length&&(e?t.forEach(function(e){return i._markSelected(e)}):this._markSelected(t[0]),this._selectedToEmit.length=0)}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),e.prototype.select=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._verifyValueAssignment(t),t.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()},e.prototype.deselect=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._verifyValueAssignment(t),t.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()},e.prototype.toggle=function(e){this.isSelected(e)?this.deselect(e):this.select(e)},e.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},e.prototype.isSelected=function(e){return this._selection.has(e)},e.prototype.isEmpty=function(){return 0===this._selection.size},e.prototype.hasValue=function(){return!this.isEmpty()},e.prototype.sort=function(e){this._multiple&&this.selected&&this._selected.sort(e)},e.prototype.isMultipleSelection=function(){return this._multiple},e.prototype._emitChangeEvent=function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed&&this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])},e.prototype._markSelected=function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))},e.prototype._unmarkSelected=function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))},e.prototype._unmarkAll=function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})},e.prototype._verifyValueAssignment=function(e){if(e.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},e}(),a=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,l=this._listeners;n<l.length;n++)(0,l[n])(e,t)},e.prototype.listen=function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}},e.prototype.ngOnDestroy=function(){this._listeners=[]},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e},token:e,providedIn:"root"}),e}()},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"Z+uX":function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c});var l=n("mrSG"),i=n("CcnG"),o=n("Wf4p"),r=n("Ip0R"),a=Object(o.F)(function(e){this._elementRef=e},"primary"),s=new i.InjectionToken("mat-progress-bar-location",{providedIn:"root",factory:function(){var e=Object(i.inject)(r.DOCUMENT);return{pathname:e&&e.location&&e.location.pathname||""}}}),u=0,c=function(e){function t(t,n,l){var i=e.call(this,t)||this;i._elementRef=t,i._animationMode=n,i._value=0,i._bufferValue=0,i.mode="determinate",i.progressbarId="mat-progress-bar-"+u++;var o=l&&l.pathname?l.pathname.split("#")[0]:"";return i._rectangleFillValue="url('"+o+"#"+i.progressbarId+"')",i}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this._value=d(e||0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(e){this._bufferValue=d(e||0)},enumerable:!0,configurable:!0}),t.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},t.prototype._bufferTransform=function(){if("buffer"===this.mode)return{transform:"scaleX("+this.bufferValue/100+")"}},t}(a);function d(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=100),Math.max(t,Math.min(n,e))}var p=function(){}},Z0cm:function(e,t){var n=Array.isArray;e.exports=n},Z8oC:function(e,t,n){var l=n("y1pI");e.exports=function(e,t){var n=this.__data__,i=l(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},ZCpW:function(e,t,n){var l=n("lm/5"),i=n("O7RO"),o=n("IOzZ");e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||l(n,e,t)}}},ZWtO:function(e,t,n){var l=n("4uTw"),i=n("9Nap");e.exports=function(e,t){for(var n=0,o=(t=l(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},ZfYz:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var l=n("K9Ia"),i=function(){function e(e){this.overlayRef=e,this.value=new l.a}return e.prototype.isOpen=function(){return this.overlayRef&&this.overlayRef.hasAttached()},e.prototype.close=function(){this.overlayRef&&this.overlayRef.dispose()},e.prototype.emitValue=function(e){this.value.next(e)},e.prototype.valueChanged=function(){return this.value.asObservable()},e.prototype.getPanelEl=function(){return this.overlayRef.overlayElement},e.prototype.updatePosition=function(){return this.overlayRef.updatePosition()},e}()},adU4:function(e,t,n){var l=n("y1pI"),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=l(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},b2z7:function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},b80T:function(e,t,n){var l=n("UNi/"),i=n("03A+"),o=n("Z0cm"),r=n("DSRE"),a=n("wJg7"),s=n("c6wG"),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&r(e),p=!n&&!c&&!d&&s(e),f=n||c||d||p,h=f?l(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||h.push(g);return h}},c4Wm:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return h});var l=n("CcnG"),i=n("Nsh5"),o=n("Ip0R"),r=(n("Fzqc"),n("Wf4p"),n("dWZg"),n("qAlS"));n("lLAP"),n("wFw1");var a=l["\u0275crt"]({encapsulation:2,styles:[],data:{}});function s(e){return l["\u0275vid"](2,[l["\u0275ncd"](null,0)],null,null)}var u=l["\u0275crt"]({encapsulation:2,styles:[],data:{animation:[{type:7,name:"transform",definitions:[{type:0,name:"open, open-instant",styles:{type:6,styles:{transform:"none",visibility:"visible"},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{"box-shadow":"none",visibility:"hidden"},offset:null},options:void 0},{type:1,expr:"void => open-instant",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"void <=> open, open-instant => void",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function c(e){return l["\u0275vid"](2,[l["\u0275ncd"](null,0)],null,null)}var d=l["\u0275crt"]({encapsulation:2,styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}@media screen and (-ms-high-contrast:active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media screen and (-ms-high-contrast:active){.mat-drawer.mat-drawer-end,[dir=rtl] .mat-drawer{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],data:{}});function p(e){return l["\u0275vid"](0,[(e()(),l["\u0275eld"](0,0,null,null,0,"div",[["class","mat-drawer-backdrop"]],[[2,"mat-drawer-shown",null]],[[null,"click"]],function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component._onBackdropClicked()&&l),l},null,null))],null,function(e,t){e(t,0,0,t.component._isShowingBackdrop())})}function f(e){return l["\u0275vid"](0,[(e()(),l["\u0275eld"](0,0,null,null,3,"mat-sidenav-content",[["cdkScrollable",""],["class","mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,s,a)),l["\u0275did"](1,212992,[[1,4]],0,r.a,[l.ElementRef,r.c,l.NgZone],null,null),l["\u0275did"](2,1097728,null,0,i.g,[l.ChangeDetectorRef,i.f],null,null),l["\u0275ncd"](0,2)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,l["\u0275nov"](t,2)._container._contentMargins.left,l["\u0275nov"](t,2)._container._contentMargins.right)})}function h(e){return l["\u0275vid"](2,[l["\u0275qud"](671088640,1,{scrollable:0}),(e()(),l["\u0275and"](16777216,null,null,1,null,p)),l["\u0275did"](2,16384,null,0,o.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),l["\u0275ncd"](null,0),l["\u0275ncd"](null,1),(e()(),l["\u0275and"](16777216,null,null,1,null,f)),l["\u0275did"](6,16384,null,0,o.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.hasBackdrop),e(t,6,0,!n._content)},null)}},c6wG:function(e,t,n){var l=n("dD9F"),i=n("sEf8"),o=n("mdPL"),r=o&&o.isTypedArray,a=r?i(r):l;e.exports=a},dD9F:function(e,t,n){var l=n("NykK"),i=n("shjB"),o=n("ExA7"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!r[l(e)]}},dQpi:function(e,t,n){var l=n("yGk4"),i=n("vN+2"),o=n("rEGp"),r=l&&1/o(new l([,-0]))[1]==1/0?function(e){return new l(e)}:i;e.exports=r},dTAl:function(e,t,n){var l=n("GoyQ"),i=Object.create,o=function(){function e(){}return function(t){if(!l(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},dt0z:function(e,t,n){var l=n("zoYe");e.exports=function(e){return null==e?"":l(e)}},dz5c:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var l=n("4c35"),i=n("ZfYz"),o=n("nPOm"),r=n("CcnG"),a=n("eDkP"),s=n("OnlV"),u={hasBackdrop:!0,closeOnBackdropClick:!0,panelClass:"overlay-panel"},c=function(){function e(e,t,n){this.overlay=e,this.breakpoints=t,this.injector=n}return e.prototype.open=function(e,t){var n=Object.assign({},u,t),o=this.overlay.create({positionStrategy:this.getPositionStrategy(n),hasBackdrop:n.hasBackdrop,panelClass:n.panelClass}),r=new i.a(o),a=new l.d(e,null,this.createInjector(n,r));return o.attach(a),n.closeOnBackdropClick&&o.backdropClick().subscribe(function(){return r.close()}),r},e.prototype.createInjector=function(e,t){var n=new WeakMap;return n.set(i.a,t),n.set(o.a,e.data||null),new l.f(this.injector,n)},e.prototype.getPositionStrategy=function(e){return e.positionStrategy?e.positionStrategy:"global"===e.origin?this.getGlobalPositionStrategy(e):this.getConnectedPositionStrategy(e)},e.prototype.getGlobalPositionStrategy=function(e){var t=this.getPositionOption(e);if("center"===t)return this.overlay.position().global().centerHorizontally().centerVertically();var n=this.overlay.position().global();return Object.keys(t).forEach(function(e){n[e](t[e])}),n},e.prototype.getConnectedPositionStrategy=function(e){return this.overlay.position().flexibleConnectedTo(e.origin).withPositions(this.getPositionOption(e))},e.prototype.getPositionOption=function(e){return e.mobilePosition&&this.breakpoints.isMobile?e.mobilePosition:e.position},e.ngInjectableDef=r.defineInjectable({factory:function(){return new e(r.inject(a.c),r.inject(s.a),r.inject(r.INJECTOR))},token:e,providedIn:"root"}),e}()},e4Nc:function(e,t,n){var l=n("fGT3"),i=n("k+1r"),o=n("JHgL"),r=n("pSRY"),a=n("H8j4");function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var l=e[t];this.set(l[0],l[1])}}s.prototype.clear=l,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=r,s.prototype.set=a,e.exports=s},e5cp:function(e,t,n){var l=n("fmRc"),i=n("or5M"),o=n("HDyB"),r=n("seXi"),a=n("QqLw"),s=n("Z0cm"),u=n("DSRE"),c=n("c6wG"),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,m){var g=s(e),b=s(t),v=g?"[object Array]":a(e),y=b?"[object Array]":a(t),_=(v="[object Arguments]"==v?d:v)==d,w=(y="[object Arguments]"==y?d:y)==d,O=v==y;if(O&&u(e)){if(!u(t))return!1;g=!0,_=!1}if(O&&!_)return m||(m=new l),g||c(e)?i(e,t,n,f,h,m):o(e,t,v,n,f,h,m);if(!(1&n)){var x=_&&p.call(e,"__wrapped__"),j=w&&p.call(t,"__wrapped__");if(x||j){var C=x?e.value():e,k=j?t.value():t;return m||(m=new l),h(C,k,n,f,m)}}return!!O&&(m||(m=new l),r(e,t,n,f,h,m))}},eUgh:function(e,t){e.exports=function(e,t){for(var n=-1,l=null==e?0:e.length,i=Array(l);++n<l;)i[n]=t(e[n],n,e);return i}},ebwN:function(e,t,n){var l=n("Cwc5")(n("Kz5y"),"Map");e.exports=l},ekgI:function(e,t,n){var l=n("YESw"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return l?void 0!==t[e]:i.call(t,e)}},fGT3:function(e,t,n){var l=n("4kuk"),i=n("Xi7e"),o=n("ebwN");e.exports=function(){this.size=0,this.__data__={hash:new l,map:new(o||i),string:new l}}},"fR/l":function(e,t,n){var l=n("CH3K"),i=n("Z0cm");e.exports=function(e,t,n){var o=t(e);return i(e)?o:l(o,n(e))}},fmRc:function(e,t,n){var l=n("Xi7e"),i=n("77Zs"),o=n("L8xA"),r=n("gCq4"),a=n("VaNO"),s=n("0Cz8");function u(e){var t=this.__data__=new l(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=r,u.prototype.has=a,u.prototype.set=s,e.exports=u},ftKO:function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},gFfm:function(e,t){e.exports=function(e,t){for(var n=-1,l=null==e?0:e.length;++n<l&&!1!==t(e[n],n,e););return e}},h586:function(e,t,n){"use strict";var l,i=n("K9Ia"),o=n("26FU"),r=n("oJgS"),a=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s=function(){function e(e){this.id=Object(r.a)(),this.canceled$=new i.a,this.meta$=new o.a({}),this.filename=e.name,this.size=e.size,this.mime=e.mime}return Object.defineProperty(e.prototype,"completed",{get:function(){return 100===this.meta$.value.progress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return null==this.meta$.value.progress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return null!=this.meta$.value.error},enumerable:!0,configurable:!0}),e.prototype.update=function(e){this.meta$.next(a({},this.meta$.value,e))},e.prototype.cancel=function(){this.canceled$.next(!0),this.canceled$.complete()},e.prototype.complete=function(){this.update({progress:100})},e.prototype.addError=function(e){void 0===e&&(e=""),this.update({error:e})},e}(),u=n("dEwP"),c=n("67Y/"),d=n("xMyE"),p=n("VnD/"),f=n("ny24"),h=n("JfjL"),m=n("CcnG"),g=n("oVOl"),b=n("sJvS"),v=n("tU2R"),y=n("6JEN"),_=n("PUEP"),w=n("PCqb"),O=n("kmQS"),x=n("i2dy"),j=n("VaLf"),C=(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.DEFAULT_MAX_FILE_SIZE_MB=8,t}return C(t,e),t.prototype.initValidations=function(){this.validations.push(new v.a({maxSize:this.getMaxFileSize()},this.i18n));var e=this.getAllowedExtensions(),t=this.getBlockedExtensions();e&&e.length&&this.validations.push(new y.a({extensions:e},this.i18n)),t&&t.length&&this.validations.push(new _.a({extensions:t},this.i18n))},t.prototype.getMaxFileSize=function(){return this.settings.get("uploads.max_size",Object(w.a)(this.DEFAULT_MAX_FILE_SIZE_MB,"MB"))},t.prototype.getAllowedExtensions=function(){return this.settings.getJson("uploads.allowed_extensions")},t.prototype.getBlockedExtensions=function(){return this.settings.getJson("uploads.blocked_extensions")},t.ngInjectableDef=m.defineInjectable({factory:function(){return new t(m.inject(O.a),m.inject(x.a),m.inject(j.a))},token:t,providedIn:"root"}),t}(b.a);n.d(t,"a",function(){return E});var E=function(){function e(e,t,n){this.api=e,this.zone=t,this.defaultValidator=n,this.uploads$=new o.a([]),this.totalProgress$=new o.a(0)}return e.prototype.getAll=function(){return this.uploads$.asObservable()},e.prototype.getAllCompleted=function(){return this.uploads$.value.filter(function(e){return e.completed}).map(function(e){return e.fileEntry})},e.prototype.getPendingCount=function(){return this.uploads$.pipe(Object(c.a)(function(e){return e.filter(function(e){return!e.completed}).length}))},e.prototype.getCompletedCount=function(){return this.uploads$.pipe(Object(c.a)(function(e){return e.filter(function(e){return e.completed}).length}))},e.prototype.updateTotalProgress=function(){var e=this.uploads$.value.map(function(e){return e.meta$.value.progress||0});this.totalProgress$.next(e.reduce(function(e,t){return e+t},0)/e.length)},e.prototype.totalProgress=function(){return this.totalProgress$.asObservable()},e.prototype.start=function(e,t){var n=this;void 0===t&&(t={});var l=this.transformUploads(e,t.validator||this.defaultValidator);this.uploads$.next(this.uploads$.value.concat(l));var i=l.filter(function(e){return!e.hasError}).map(function(l,i){return n.api.upload(e[i],t).pipe(Object(f.a)(l.canceled$),Object(d.a)(function(e){return n.handleUploadEvent(e,l)},function(e){return n.handleUploadFailure(e,l)}))});return u.a.apply(void 0,i).pipe(Object(p.a)(function(e){return e.name===h.a.COMPLETED}),Object(c.a)(function(e){return e.fileEntry}))},e.prototype.updateProgress=function(e,t){var n=this.find(e);n&&(n.update({eta:t.eta,speed:t.speed,progress:t.progress,totalBytes:t.totalBytes,completedBytes:t.completedBytes}),this.updateTotalProgress())},e.prototype.completeUpload=function(e,t){var n=this.find(e);n&&(n.fileEntry=t,n.complete())},e.prototype.errorUpload=function(e,t){void 0===t&&(t=""),this.find(e).addError(t)},e.prototype.reset=function(){this.uploads$.next([])},e.prototype.remove=function(e){var t=this.uploads$.value.findIndex(function(t){return t.id===e});this.uploads$.value.splice(t,1),this.uploads$.next(this.uploads$.value)},e.prototype.find=function(e){return this.uploads$.value.find(function(t){return t.id===e})},e.prototype.transformUploads=function(e,t){var n=this;return e.map(function(e){var l=new s(e);if(t){var i=t.validate(e);i.failed&&l.addError(i.errorMessage)}return l.canceled$.subscribe(function(){n.remove(l.id)}),l})},e.prototype.handleUploadEvent=function(e,t){var n=this;e.name===h.a.PROGRESS?this.zone.run(function(){n.updateProgress(t.id,e)}):e.name===h.a.COMPLETED&&this.zone.run(function(){n.completeUpload(t.id,e.fileEntry)})},e.prototype.handleUploadFailure=function(e,t){this.errorUpload(t.id,e.messages?e.messages.file:"")},e.ngInjectableDef=m.defineInjectable({factory:function(){return new e(m.inject(g.a),m.inject(m.NgZone),m.inject(k))},token:e,providedIn:"root"}),e}()},hgQt:function(e,t,n){var l=n("Juji"),i=n("4sDh");e.exports=function(e,t){return null!=e&&i(e,t,l)}},hypo:function(e,t,n){var l=n("O0oS");e.exports=function(e,t,n){"__proto__"==t&&l?l(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},"jbM+":function(e,t,n){var l=n("R/W3");e.exports=function(e,t){return!(null==e||!e.length)&&l(e,t,0)>-1}},juv8:function(e,t,n){var l=n("MrPd"),i=n("hypo");e.exports=function(e,t,n,o){var r=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),r?i(n,u,c):l(n,u,c)}return n}},"k+1r":function(e,t,n){var l=n("QkVE");e.exports=function(e){var t=l(this,e).delete(e);return this.size-=t?1:0,t}},kWGw:function(e,t,n){"use strict";n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return a});var l=n("CcnG"),i=n("mrSG"),o=n("n6gG"),r=(n("gIcY"),n("Wf4p")),a=new l.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,disableDragValue:!1}}}),s=0,u=function(e){function t(t,n,i,o,r,a,u,c,d){var p=e.call(this,t)||this;return p._focusMonitor=i,p._changeDetectorRef=o,p._ngZone=a,p.defaults=u,p._animationMode=c,p._dir=d,p.onChange=function(e){},p.onTouched=function(){},p._uniqueId="mat-slide-toggle-"+ ++s,p._required=!1,p._checked=!1,p._dragging=!1,p.name=null,p.id=p._uniqueId,p.labelPosition="after",p.ariaLabel=null,p.ariaLabelledby=null,p.change=new l.EventEmitter,p.toggleChange=new l.EventEmitter,p.dragChange=new l.EventEmitter,p.tabIndex=parseInt(r)||0,p}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Object(o.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=Object(o.c)(e),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(t){return e._onInputFocusChange(t)})},t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},t.prototype._onChangeEvent=function(e){e.stopPropagation(),this._dragging||this.toggleChange.emit(),this._dragging||this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},t.prototype._onInputClick=function(e){e.stopPropagation()},t.prototype.writeValue=function(e){this.checked=!!e},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},t.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},t.prototype.toggle=function(){this.checked=!this.checked,this.onChange(this.checked)},t.prototype._onInputFocusChange=function(e){var t=this;this._focusRipple||"keyboard"!==e?e||(Promise.resolve().then(function(){return t.onTouched()}),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,{persistent:!0})},t.prototype._emitChangeEvent=function(){this.onChange(this.checked),this.change.emit(new function(e,t){this.source=e,this.checked=t}(this,this.checked))},t.prototype._getDragPercentage=function(e){var t=e/this._thumbBarWidth*100;return this._previousChecked&&(t+=100),Math.max(0,Math.min(t,100))},t.prototype._onDragStart=function(){if(!this.disabled&&!this._dragging){var e=this._thumbEl.nativeElement;this._thumbBarWidth=this._thumbBarEl.nativeElement.clientWidth-e.clientWidth,e.classList.add("mat-dragging"),this._previousChecked=this.checked,this._dragging=!0}},t.prototype._onDrag=function(e){if(this._dragging){var t=this._dir&&"rtl"===this._dir.value?-1:1;this._dragPercentage=this._getDragPercentage(e.deltaX*t),this._thumbEl.nativeElement.style.transform="translate3d("+this._dragPercentage/100*this._thumbBarWidth*t+"px, 0, 0)"}},t.prototype._onDragEnd=function(){var e=this;if(this._dragging){var t=this._dragPercentage>50;t!==this.checked&&(this.dragChange.emit(),this.defaults.disableDragValue||(this.checked=t,this._emitChangeEvent())),this._ngZone.runOutsideAngular(function(){return setTimeout(function(){e._dragging&&(e._dragging=!1,e._thumbEl.nativeElement.classList.remove("mat-dragging"),e._thumbEl.nativeElement.style.transform="")})})}},t.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},t}(Object(r.K)(Object(r.F)(Object(r.G)(Object(r.H)(function(e){this._elementRef=e})),"accent"))),c=function(){}},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},lSCD:function(e,t,n){var l=n("NykK"),i=n("GoyQ");e.exports=function(e){if(!i(e))return!1;var t=l(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},ljhN:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"lm/5":function(e,t,n){var l=n("fmRc"),i=n("wF/u");e.exports=function(e,t,n,o){var r=n.length,a=r,s=!o;if(null==e)return!a;for(e=Object(e);r--;){var u=n[r];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++r<a;){var c=(u=n[r])[0],d=e[c],p=u[1];if(s&&u[2]){if(void 0===d&&!(c in e))return!1}else{var f=new l;if(o)var h=o(d,p,c,e,t,f);if(!(void 0===h?i(p,d,3,o,f):h))return!1}}return!0}},m46K:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var l=n("CcnG"),i=(n("OkvK"),n("Ip0R"),n("y4qS"),l["\u0275crt"]({encapsulation:2,styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}@media screen and (-ms-high-contrast:active){.mat-sort-header-stem{width:0;border-left:solid 2px}}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}@media screen and (-ms-high-contrast:active){.mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}@media screen and (-ms-high-contrast:active){.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],data:{animation:[{type:7,name:"indicator",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"translateY(0px)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"translateY(10px)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"leftPointer",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"rotate(-45deg)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"rotate(45deg)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"rightPointer",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"rotate(45deg)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"rotate(-45deg)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"arrowOpacity",definitions:[{type:0,name:"desc-to-active, asc-to-active, active",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"desc-to-hint, asc-to-hint, hint",styles:{type:6,styles:{opacity:.54},offset:null},options:void 0},{type:0,name:"hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"* => asc, * => desc, * => active, * => hint, * => void",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"* <=> *",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"arrowPosition",definitions:[{type:1,expr:"* => desc-to-hint, * => desc-to-active",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(-25%)"},offset:null},{type:6,styles:{transform:"translateY(0)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => hint-to-desc, * => active-to-desc",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:6,styles:{transform:"translateY(25%)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => asc-to-hint, * => asc-to-active",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(25%)"},offset:null},{type:6,styles:{transform:"translateY(0)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => hint-to-asc, * => active-to-asc",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:6,styles:{transform:"translateY(-25%)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:0,name:"desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",styles:{type:6,styles:{transform:"translateY(0)"},offset:null},options:void 0},{type:0,name:"hint-to-desc, active-to-desc, desc",styles:{type:6,styles:{transform:"translateY(-25%)"},offset:null},options:void 0},{type:0,name:"hint-to-asc, active-to-asc, asc",styles:{type:6,styles:{transform:"translateY(25%)"},offset:null},options:void 0}],options:{}},{type:7,name:"allowChildren",definitions:[{type:1,expr:"* <=> *",animation:[{type:11,selector:"@*",animation:{type:9,options:null},options:{optional:!0}}],options:null}],options:{}}]}}));function o(e){return l["\u0275vid"](2,[(e()(),l["\u0275eld"](0,0,null,null,8,"div",[["class","mat-sort-header-container"]],[[2,"mat-sort-header-sorted",null],[2,"mat-sort-header-position-before",null]],null,null,null,null)),(e()(),l["\u0275eld"](1,0,null,null,1,"button",[["class","mat-sort-header-button"],["type","button"]],[[1,"disabled",0],[1,"aria-label",0]],[[null,"focus"],[null,"blur"]],function(e,t,n){var l=!0,i=e.component;return"focus"===t&&(l=!1!==i._setIndicatorHintVisible(!0)&&l),"blur"===t&&(l=!1!==i._setIndicatorHintVisible(!1)&&l),l},null,null)),l["\u0275ncd"](null,0),(e()(),l["\u0275eld"](3,0,null,null,5,"div",[["class","mat-sort-header-arrow"]],[[24,"@arrowOpacity",0],[24,"@arrowPosition",0],[24,"@allowChildren",0]],[[null,"@arrowPosition.start"],[null,"@arrowPosition.done"]],function(e,t,n){var l=!0,i=e.component;return"@arrowPosition.start"===t&&(l=0!=(i._disableViewStateAnimation=!0)&&l),"@arrowPosition.done"===t&&(l=0!=(i._disableViewStateAnimation=!1)&&l),l},null,null)),(e()(),l["\u0275eld"](4,0,null,null,0,"div",[["class","mat-sort-header-stem"]],null,null,null,null,null)),(e()(),l["\u0275eld"](5,0,null,null,3,"div",[["class","mat-sort-header-indicator"]],[[24,"@indicator",0]],null,null,null,null)),(e()(),l["\u0275eld"](6,0,null,null,0,"div",[["class","mat-sort-header-pointer-left"]],[[24,"@leftPointer",0]],null,null,null,null)),(e()(),l["\u0275eld"](7,0,null,null,0,"div",[["class","mat-sort-header-pointer-right"]],[[24,"@rightPointer",0]],null,null,null,null)),(e()(),l["\u0275eld"](8,0,null,null,0,"div",[["class","mat-sort-header-pointer-middle"]],null,null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n._isSorted(),"before"==n.arrowPosition),e(t,1,0,n._isDisabled()||null,n._intl.sortButtonLabel(n.id)),e(t,3,0,n._getArrowViewState(),n._getArrowViewState(),n._getArrowDirectionState()),e(t,5,0,n._getArrowDirectionState()),e(t,6,0,n._getArrowDirectionState()),e(t,7,0,n._getArrowDirectionState())})}},mTTR:function(e,t,n){var l=n("b80T"),i=n("QcOe"),o=n("MMmD");e.exports=function(e){return o(e)?l(e,!0):i(e)}},mdPL:function(e,t,n){(function(e){var l=n("WFqU"),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,r=o&&o.exports===i&&l.process,a=function(){try{return o&&o.require&&o.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=a}).call(this,n("YuTi")(e))},mwIZ:function(e,t,n){var l=n("ZWtO");e.exports=function(e,t,n){var i=null==e?void 0:l(e,t);return void 0===i?n:i}},nPOm:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var l=new(n("CcnG").InjectionToken)("OVERLAY_PANEL_DATA")},nmnc:function(e,t,n){var l=n("Kz5y");e.exports=l.Symbol},"oCl/":function(e,t,n){var l=n("CH3K"),i=n("LcsW"),o=n("MvSz"),r=n("0ycA"),a=Object.getOwnPropertySymbols;e.exports=a?function(e){for(var t=[];e;)l(t,o(e)),e=i(e);return t}:r},or5M:function(e,t,n){var l=n("1hJj"),i=n("QoRX"),o=n("xYSL");e.exports=function(e,t,n,r,a,s){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var f=-1,h=!0,m=2&n?new l:void 0;for(s.set(e,t),s.set(t,e);++f<c;){var g=e[f],b=t[f];if(r)var v=u?r(b,g,f,t,e,s):r(g,b,f,e,t,s);if(void 0!==v){if(v)continue;h=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(g===e||a(g,e,n,r,s)))return m.push(t)})){h=!1;break}}else if(g!==b&&!a(g,b,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},"otv/":function(e,t,n){var l=n("nmnc"),i=l?l.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},pIm3:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"f",function(){return r}),n.d(t,"a",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return c});var l=n("CcnG"),i=(n("BHnd"),n("Ip0R"),n("y4qS")),o=(n("Fzqc"),n("Wf4p"),n("dWZg"),l["\u0275crt"]({encapsulation:2,styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-footer-row,mat-row{min-height:48px}mat-footer-row,mat-header-row,mat-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-footer-row::after,mat-header-row::after,mat-row::after{display:inline-block;min-height:inherit;content:''}mat-cell:first-of-type,mat-footer-cell:first-of-type,mat-header-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-footer-cell:last-of-type,mat-header-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-footer-cell,mat-header-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-footer-row,tr.mat-row{height:48px}th.mat-header-cell{text-align:left}td.mat-cell,td.mat-footer-cell,th.mat-header-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type,th.mat-header-cell:first-of-type{padding-left:24px}td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type,th.mat-header-cell:last-of-type{padding-right:24px}"],data:{}}));function r(e){return l["\u0275vid"](2,[l["\u0275qud"](402653184,1,{_rowOutlet:0}),l["\u0275qud"](402653184,2,{_headerRowOutlet:0}),l["\u0275qud"](402653184,3,{_footerRowOutlet:0}),(e()(),l["\u0275ted"](-1,null,["\n  "])),(e()(),l["\u0275eld"](4,16777216,null,null,1,null,null,null,null,null,null,null)),l["\u0275did"](5,16384,[[2,4]],0,i.s,[l.ViewContainerRef,l.ElementRef],null,null),(e()(),l["\u0275ted"](-1,null,["\n  "])),(e()(),l["\u0275eld"](7,16777216,null,null,1,null,null,null,null,null,null,null)),l["\u0275did"](8,16384,[[1,4]],0,i.q,[l.ViewContainerRef,l.ElementRef],null,null),(e()(),l["\u0275ted"](-1,null,["\n  "])),(e()(),l["\u0275eld"](10,16777216,null,null,1,null,null,null,null,null,null,null)),l["\u0275did"](11,16384,[[3,4]],0,i.r,[l.ViewContainerRef,l.ElementRef],null,null)],null,null)}var a=l["\u0275crt"]({encapsulation:2,styles:[],data:{}});function s(e){return l["\u0275vid"](2,[(e()(),l["\u0275eld"](0,16777216,null,null,1,null,null,null,null,null,null,null)),l["\u0275did"](1,147456,null,0,i.c,[l.ViewContainerRef],null,null)],null,null)}var u=l["\u0275crt"]({encapsulation:2,styles:[],data:{}});function c(e){return l["\u0275vid"](2,[(e()(),l["\u0275eld"](0,16777216,null,null,1,null,null,null,null,null,null,null)),l["\u0275did"](1,147456,null,0,i.c,[l.ViewContainerRef],null,null)],null,null)}},pNtN:function(e,t,n){"use strict";var l=n("CcnG"),i=n("/dO6"),o=n("dWZg"),r=n("Wf4p"),a=n("Mr+X"),s=n("SMsm"),u=n("tRTW"),c=n("seP3"),d=n("Fzqc"),p=n("gIcY"),f=n("Ip0R");n("GZAL"),n.d(t,"a",function(){return h}),n.d(t,"b",function(){return g});var h=l["\u0275crt"]({encapsulation:2,styles:[['chip-input{display:block;min-height:46px}chip-input .mat-chip-list-wrapper{width:100%;height:100%;color:inherit;border:1px solid #e0e0e0;padding:6px;line-height:normal;font-size:1.4rem;font-family:inherit;background-color:inherit;box-sizing:border-box;border-radius:2px;margin:0}chip-input .mat-chip-input{min-height:24px;font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:0;max-width:100%;vertical-align:bottom;text-align:inherit}chip-input .mat-chip.invalid:after{display:block;position:absolute;bottom:1px;left:0;right:0;margin:0 auto;content:" ";width:100%;border-bottom:2px dotted #f44336}']],data:{}});function m(e){return l["\u0275vid"](0,[(e()(),l["\u0275eld"](0,0,null,null,9,"mat-chip",[["class","mat-chip"],["role","option"]],[[2,"invalid",null],[1,"tabindex",0],[2,"mat-chip-selected",null],[2,"mat-chip-with-avatar",null],[2,"mat-chip-with-trailing-icon",null],[2,"mat-chip-disabled",null],[1,"disabled",0],[1,"aria-disabled",0],[1,"aria-selected",0]],[[null,"removed"],[null,"click"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==l["\u0275nov"](e,1)._handleClick(n)&&i),"keydown"===t&&(i=!1!==l["\u0275nov"](e,1)._handleKeydown(n)&&i),"focus"===t&&(i=!1!==l["\u0275nov"](e,1).focus()&&i),"blur"===t&&(i=!1!==l["\u0275nov"](e,1)._blur()&&i),"removed"===t&&(i=!1!==o.remove(e.context.index)&&i),i},null,null)),l["\u0275did"](1,147456,[[1,4]],3,i.b,[l.ElementRef,l.NgZone,o.a,[2,r.m]],{selectable:[0,"selectable"],removable:[1,"removable"]},{removed:"removed"}),l["\u0275qud"](335544320,2,{avatar:0}),l["\u0275qud"](335544320,3,{trailingIcon:0}),l["\u0275qud"](335544320,4,{removeIcon:0}),(e()(),l["\u0275ted"](5,null,["\n        ","\n        "])),(e()(),l["\u0275eld"](6,0,null,null,2,"mat-icon",[["class","mat-chip-remove mat-chip-trailing-icon mat-icon"],["matChipRemove",""],["role","img"],["svgIcon","cancel"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==l["\u0275nov"](e,7)._handleClick(n)&&i),i},a.b,a.a)),l["\u0275did"](7,16384,[[4,4]],0,i.e,[i.b],null,null),l["\u0275did"](8,638976,null,0,s.a,[l.ElementRef,s.c,[8,null]],{svgIcon:[0,"svgIcon"]},null),(e()(),l["\u0275ted"](-1,null,["\n    "]))],function(e,t){e(t,1,0,!1,!0),e(t,8,0,"cancel")},function(e,t){e(t,0,0,t.component.formArray.at(t.context.index).invalid,l["\u0275nov"](t,1).disabled?null:-1,l["\u0275nov"](t,1).selected,l["\u0275nov"](t,1).avatar,l["\u0275nov"](t,1).trailingIcon||l["\u0275nov"](t,1).removeIcon,l["\u0275nov"](t,1).disabled,l["\u0275nov"](t,1).disabled||null,l["\u0275nov"](t,1).disabled.toString(),l["\u0275nov"](t,1).ariaSelected),e(t,5,0,t.context.$implicit),e(t,6,0,l["\u0275nov"](t,8).inline)})}function g(e){return l["\u0275vid"](2,[(e()(),l["\u0275eld"](0,0,null,null,11,"mat-chip-list",[["class","mat-chip-list"]],[[1,"tabindex",0],[1,"aria-describedby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-multiselectable",0],[1,"role",0],[2,"mat-chip-list-disabled",null],[2,"mat-chip-list-invalid",null],[2,"mat-chip-list-required",null],[1,"aria-orientation",0],[8,"id",0]],[[null,"focus"],[null,"blur"],[null,"keydown"]],function(e,t,n){var i=!0;return"focus"===t&&(i=!1!==l["\u0275nov"](e,2).focus()&&i),"blur"===t&&(i=!1!==l["\u0275nov"](e,2)._blur()&&i),"keydown"===t&&(i=!1!==l["\u0275nov"](e,2)._keydown(n)&&i),i},u.b,u.a)),l["\u0275prd"](6144,null,c.c,null,[i.d]),l["\u0275did"](2,1556480,[["chipList",4]],1,i.d,[l.ElementRef,l.ChangeDetectorRef,[2,d.b],[2,p.t],[2,p.l],r.d,[8,null]],{selectable:[0,"selectable"]},null),l["\u0275qud"](603979776,1,{chips:1}),(e()(),l["\u0275ted"](-1,0,["\n    "])),(e()(),l["\u0275and"](16777216,null,0,2,null,m)),l["\u0275did"](6,278528,null,0,f.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),l["\u0275pid"](131072,f.AsyncPipe,[l.ChangeDetectorRef]),(e()(),l["\u0275ted"](-1,0,["\n    "])),(e()(),l["\u0275eld"](9,0,null,0,1,"input",[["class","mat-chip-input mat-input-element mat-chip-input mat-input-element"]],[[8,"id",0],[1,"disabled",0],[1,"placeholder",0]],[[null,"matChipInputTokenEnd"],[null,"keydown"],[null,"blur"],[null,"focus"],[null,"input"]],function(e,t,n){var i=!0,o=e.component;return"keydown"===t&&(i=!1!==l["\u0275nov"](e,10)._keydown(n)&&i),"blur"===t&&(i=!1!==l["\u0275nov"](e,10)._blur()&&i),"focus"===t&&(i=!1!==l["\u0275nov"](e,10)._focus()&&i),"input"===t&&(i=!1!==l["\u0275nov"](e,10)._onInput()&&i),"matChipInputTokenEnd"===t&&(i=!1!==o.add(n)&&i),i},null,null)),l["\u0275did"](10,540672,null,0,i.c,[l.ElementRef,i.a],{chipList:[0,"chipList"],addOnBlur:[1,"addOnBlur"],placeholder:[2,"placeholder"]},{chipEnd:"matChipInputTokenEnd"}),(e()(),l["\u0275ted"](-1,0,["\n"]))],function(e,t){var n=t.component;e(t,2,0,!1),e(t,6,0,l["\u0275unv"](t,6,0,l["\u0275nov"](t,7).transform(n.formArray.valueChanges))),e(t,10,0,l["\u0275nov"](t,2),!0,n.placeholder)},function(e,t){e(t,0,1,[l["\u0275nov"](t,2).disabled?null:l["\u0275nov"](t,2)._tabIndex,l["\u0275nov"](t,2)._ariaDescribedby||null,l["\u0275nov"](t,2).required.toString(),l["\u0275nov"](t,2).disabled.toString(),l["\u0275nov"](t,2).errorState,l["\u0275nov"](t,2).multiple,l["\u0275nov"](t,2).role,l["\u0275nov"](t,2).disabled,l["\u0275nov"](t,2).errorState,l["\u0275nov"](t,2).required,l["\u0275nov"](t,2).ariaOrientation,l["\u0275nov"](t,2)._uid]),e(t,9,0,l["\u0275nov"](t,10).id,l["\u0275nov"](t,10).disabled||null,l["\u0275nov"](t,10).placeholder||null)})}},pSRY:function(e,t,n){var l=n("QkVE");e.exports=function(e){return l(this,e).has(e)}},qPyV:function(e,t,n){var l=n("ut/Y"),i=n("LGYb");e.exports=function(e,t){return e&&e.length?i(e,l(t,2)):[]}},qZTm:function(e,t,n){var l=n("fR/l"),i=n("MvSz"),o=n("7GkX");e.exports=function(e){return l(e,o,i)}},rEGp:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},sEf8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},seP3:function(e,t,n){"use strict";n.d(t,"d",function(){return v}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return p});var l=n("CcnG"),i=(n("ihYY"),n("mrSG")),o=n("n6gG"),r=n("Wf4p"),a=n("G5J1"),s=n("p0ib"),u=n("bne5"),c=n("t9fZ"),d=n("p0Sj"),p=function(){};function f(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}var h=0,m=Object(r.F)(function(e){this._elementRef=e},"primary"),g=new l.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),b=function(e){function t(t,n,l,i,o,r,a,s){var u=e.call(this,t)||this;return u._elementRef=t,u._changeDetectorRef=n,u._dir=i,u._defaults=o,u._platform=r,u._ngZone=a,u._outlineGapCalculationNeeded=!1,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+h++,u._labelId="mat-form-field-label-"+h++,u._labelOptions=l||{},u.floatLabel=u._labelOptions.float||"auto",u._animationsEnabled="NoopAnimations"!==s,u.appearance=o&&o.appearance?o.appearance:"legacy",u}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"appearance",{get:function(){return this._appearance},set:function(e){var t=this,n=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&n!==e&&(this._ngZone?this._ngZone.onStable.pipe(Object(c.a)(1)).subscribe(function(){t._ngZone.runOutsideAngular(function(){return t.updateOutlineGap()})}):Promise.resolve().then(function(){return t.updateOutlineGap()}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Object(o.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},t.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(Object(d.a)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()});var t=this._control.ngControl&&this._control.ngControl.valueChanges||a.a;Object(s.a)(t,this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(d.a)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(d.a)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeeded&&this.updateOutlineGap()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},t.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(c.a)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach(function(l){if("start"===l.align){if(e||n.hintLabel)throw f("start");e=l}else if("end"===l.align){if(t)throw f("end");t=l}})},t.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},t.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},t.prototype.updateOutlineGap=function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&(!this._platform||this._platform.isBrowser))if(document.documentElement.contains(this._elementRef.nativeElement)){var t=0,n=0,l=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-start"),i=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){for(var o=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),r=this._getStartEnd(e.children[0].getBoundingClientRect()),a=0,s=0,u=e.children;s<u.length;s++)a+=u[s].offsetWidth;t=r-o-5,n=a>0?.75*a+10:0}for(var c=0;c<l.length;c++)l.item(c).style.width=t+"px";for(c=0;c<i.length;c++)i.item(c).style.width=n+"px";this._outlineGapCalculationNeeded=!1}else this._outlineGapCalculationNeeded=!0},t.prototype._getStartEnd=function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left},t}(m),v=function(){}},seXi:function(e,t,n){var l=n("qZTm"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,r,a){var s=1&n,u=l(e),c=u.length;if(c!=l(t).length&&!s)return!1;for(var d=c;d--;){var p=u[d];if(!(s?p in t:i.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++d<c;){var g=e[p=u[d]],b=t[p];if(o)var v=s?o(b,g,p,t,e,a):o(g,b,p,e,t,a);if(!(void 0===v?g===b||r(g,b,n,o,a):v)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var y=e.constructor,_=t.constructor;y!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _)&&(h=!1)}return a.delete(e),a.delete(t),h}},shjB:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},tMB7:function(e,t,n){var l=n("y1pI");e.exports=function(e){var t=this.__data__,n=l(t,e);return n<0?void 0:t[n][1]}},tRTW:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var l=n("CcnG"),i=(n("/dO6"),n("Wf4p"),n("YSh2"),n("seP3"),n("Fzqc"),n("gIcY"),l["\u0275crt"]({encapsulation:2,styles:[".mat-chip{position:relative;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:24px;align-items:center;cursor:default}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip:focus{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);outline:0}@media screen and (-ms-high-contrast:active){.mat-standard-chip{outline:solid 1px}.mat-standard-chip:focus{outline:dotted 2px}}.mat-standard-chip.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:7px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:7px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:7px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:7px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:32px;height:32px;margin-right:8px;margin-left:0}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:0}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:7px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:7px;margin-left:0}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper .mat-standard-chip,.mat-chip-list-wrapper input.mat-input-element{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:3px;flex:1 0 150px}"],data:{}}));function o(e){return l["\u0275vid"](2,[(e()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","mat-chip-list-wrapper"]],null,null,null,null,null)),l["\u0275ncd"](null,0)],null,null)}},tadb:function(e,t,n){var l=n("Cwc5")(n("Kz5y"),"DataView");e.exports=l},u8Dt:function(e,t,n){var l=n("YESw"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(l){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},uGex:function(e,t,n){"use strict";n.d(t,"d",function(){return j}),n.d(t,"a",function(){return w}),n.d(t,"b",function(){return O}),n.d(t,"c",function(){return x}),n("ihYY");var l=n("mrSG"),i=n("lLAP"),o=n("n6gG"),r=n("YlbQ"),a=n("YSh2"),s=(n("eDkP"),n("CcnG")),u=n("Wf4p"),c=n("K9Ia"),d=n("lYZG"),p=n("p0ib"),f=n("t9fZ"),h=n("15JJ"),m=n("VnD/"),g=n("67Y/"),b=n("ad02"),v=n("ny24"),y=n("p0Sj"),_=0,w=new s.InjectionToken("mat-select-scroll-strategy");function O(e){return function(){return e.scrollStrategies.reposition()}}var x=function(e){function t(t,n,l,i,o,r,a,u,b,v,y,w){var O=e.call(this,o,i,a,u,v)||this;return O._viewportRuler=t,O._changeDetectorRef=n,O._ngZone=l,O._dir=r,O._parentFormField=b,O.ngControl=v,O._scrollStrategyFactory=w,O._panelOpen=!1,O._required=!1,O._scrollTop=0,O._multiple=!1,O._compareWith=function(e,t){return e===t},O._uid="mat-select-"+_++,O._destroy=new c.a,O._triggerFontSize=0,O._onChange=function(){},O._onTouched=function(){},O._optionIds="",O._transformOrigin="top",O._panelDoneAnimating=!1,O._panelDoneAnimatingStream=new c.a,O._scrollStrategy=O._scrollStrategyFactory(),O._offsetY=0,O._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],O._disableOptionCentering=!1,O._focused=!1,O.controlType="mat-select",O.ariaLabel="",O.optionSelectionChanges=Object(d.a)(function(){return O.options?p.a.apply(void 0,O.options.map(function(e){return e.onSelectionChange})):O._ngZone.onStable.asObservable().pipe(Object(f.a)(1),Object(h.a)(function(){return O.optionSelectionChanges}))}),O.openedChange=new s.EventEmitter,O._openedStream=O.openedChange.pipe(Object(m.a)(function(e){return e}),Object(g.a)(function(){})),O._closedStream=O.openedChange.pipe(Object(m.a)(function(e){return!e}),Object(g.a)(function(){})),O.selectionChange=new s.EventEmitter,O.valueChange=new s.EventEmitter,O.ngControl&&(O.ngControl.valueAccessor=O),O.tabIndex=parseInt(y)||0,O.id=O.id,O}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(e){this._focused=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Object(o.c)(e),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(o.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=Object(o.c)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this._selectionModel=new r.b(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(b.a)(),Object(v.a)(this._destroy)).subscribe(function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e._panelDoneAnimating=!1,e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})},t.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this._selectionModel.onChange.pipe(Object(v.a)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Object(y.a)(null),Object(v.a)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},t.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},t.prototype.toggle=function(){this.panelOpen?this.close():this.open()},t.prototype.open=function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))},t.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},t.prototype.writeValue=function(e){this.options&&this._setSelectionByValue(e)},t.prototype.registerOnChange=function(e){this._onChange=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),t.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},t.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},t.prototype._handleClosedKeydown=function(e){var t=e.keyCode;t===a.f||t===a.n||(this.multiple||e.altKey)&&(t===a.d||t===a.p||t===a.i||t===a.m)?(e.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(e)},t.prototype._handleOpenKeydown=function(e){var t=e.keyCode,n=t===a.d||t===a.p,l=this._keyManager;if(t===a.h||t===a.e)e.preventDefault(),t===a.h?l.setFirstItemActive():l.setLastItemActive();else if(n&&e.altKey)e.preventDefault(),this.close();else if(t!==a.f&&t!==a.n||!l.activeItem)if(this._multiple&&t===a.a&&e.ctrlKey){e.preventDefault();var i=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(i?e.select():e.deselect())})}else{var o=l.activeItemIndex;l.onKeydown(e),this._multiple&&n&&e.shiftKey&&l.activeItem&&l.activeItemIndex!==o&&l.activeItem._selectViaInteraction()}else e.preventDefault(),l.activeItem._selectViaInteraction()},t.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},t.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},t.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},t.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(Object(f.a)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop})},t.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(t.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),t.prototype._initializeSelection=function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value)})},t.prototype._setSelectionByValue=function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach(function(e){return t._selectValue(e)}),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(e);n&&this._keyManager.setActiveItem(n)}this._changeDetectorRef.markForCheck()},t.prototype._selectValue=function(e){var t=this,n=this.options.find(function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(e){return Object(s.isDevMode)()&&console.warn(e),!1}});return n&&this._selectionModel.select(n),n},t.prototype._initKeyManager=function(){var e=this;this._keyManager=new i.b(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._keyManager.tabOut.pipe(Object(v.a)(this._destroy)).subscribe(function(){e.focus(),e.close()}),this._keyManager.change.pipe(Object(v.a)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})},t.prototype._resetOptions=function(){var e=this,t=Object(p.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(v.a)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),p.a.apply(void 0,this.options.map(function(e){return e._stateChanges})).pipe(Object(v.a)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}),this._setOptionIds()},t.prototype._onSelect=function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()},t.prototype._sortValues=function(){if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(t,n){return e.indexOf(t)-e.indexOf(n)}),this.stateChanges.next()}},t.prototype._propagateChanges=function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new function(e,t){this.source=e,this.value=t}(this,t)),this._changeDetectorRef.markForCheck()},t.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(e){return e.id}).join(" ")},t.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},t.prototype._scrollActiveOptionIntoView=function(){var e=this._keyManager.activeItemIndex||0,t=Object(u.D)(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(u.E)(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._getOptionIndex=function(e){return this.options.reduce(function(t,n,l){return void 0===t?e===n?l:void 0:t},void 0)},t.prototype._calculateOverlayPosition=function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),l=t*e-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Object(u.D)(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,l),this._offsetY=this._calculateOverlayOffsetY(i,o,l),this._checkOverlayWithinViewport(l)},t.prototype._calculateOverlayScroll=function(e,t,n){var l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),n)},t.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},t.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},t.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},t.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),l=this._isRtl(),i=this.multiple?60:32;if(this.multiple)e=44;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}l||(e*=-1);var r=0-(t.left+e-(l?i:0)),a=t.right+e-n.width+(l?0:i);r>0?e+=r+8:a>0&&(e-=a+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()},t.prototype._calculateOverlayOffsetY=function(e,t,n){var l,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,r=Math.floor(256/i);return this._disableOptionCentering?0:(l=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*l-o))},t.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;r>i?this._adjustPanelUp(r,i):o>l?this._adjustPanelDown(o,l,e):this._transformOrigin=this._getOriginBasedOnOption()},t.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},t.prototype._adjustPanelDown=function(e,t,n){var l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},t.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},t.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},t.prototype._getItemHeight=function(){return 3*this._triggerFontSize},t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),t}(Object(u.G)(Object(u.K)(Object(u.H)(Object(u.I)(function(e,t,n,l,i){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=l,this.ngControl=i}))))),j=function(){}},"ut/Y":function(e,t,n){var l=n("ZCpW"),i=n("GDhZ"),o=n("zZ0H"),r=n("Z0cm"),a=n("+c4W");e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?r(e)?i(e[0],e[1]):l(e):a(e)}},"vN+2":function(e,t){e.exports=function(){}},"w/wX":function(e,t,n){var l=n("QqLw"),i=n("ExA7");e.exports=function(e){return i(e)&&"[object Set]"==l(e)}},"wF/u":function(e,t,n){var l=n("e5cp"),i=n("ExA7");e.exports=function e(t,n,o,r,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:l(t,n,o,r,e,a))}},wJg7:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var l=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==l||"symbol"!=l&&n.test(e))&&e>-1&&e%1==0&&e<t}},wXSB:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var l=n("Ip0R"),i=function(){function e(e,t){this.settings=e,this._locale=t,this.format=this.settings.get("dates.format","yyyy-MM-dd"),this.angularPipe=new l.DatePipe(t)}return e.prototype.transform=function(e,t,n,l){return e=e&&"string"==typeof e?e.replace(/-/g,"/"):e,this.angularPipe.transform(e,t||this.format,n,l)},e}()},wrZu:function(e,t,n){var l=n("+K+b"),i=n("XYm9"),o=n("b2z7"),r=n("otv/"),a=n("yP5f");e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return l(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return o(e);case"[object Set]":return new s;case"[object Symbol]":return r(e)}}},xYSL:function(e,t){e.exports=function(e,t){return e.has(t)}},y1pI:function(e,t,n){var l=n("ljhN");e.exports=function(e,t){for(var n=e.length;n--;)if(l(e[n][0],t))return n;return-1}},y4qS:function(e,t,n){"use strict";n.d(t,"q",function(){return D}),n.d(t,"s",function(){return P}),n.d(t,"r",function(){return A}),n.d(t,"o",function(){return T}),n.d(t,"b",function(){return f}),n.d(t,"j",function(){return h}),n.d(t,"f",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"i",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"a",function(){return _}),n.d(t,"l",function(){return O}),n.d(t,"h",function(){return x}),n.d(t,"n",function(){return j}),n.d(t,"c",function(){return C}),n.d(t,"k",function(){return k}),n.d(t,"g",function(){return E}),n.d(t,"m",function(){return S}),n.d(t,"p",function(){return M});var l=n("mrSG"),i=n("n6gG"),o=n("CcnG"),r=n("YlbQ"),a=n("K9Ia"),s=n("26FU"),u=n("6blF"),c=n("F/XL"),d=n("ny24");function p(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var l=e.apply(this,t)||this;return l._sticky=!1,l._hasStickyChanged=!1,l}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"sticky",{get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=Object(i.c)(e),this._hasStickyChanged=t!==this._sticky},enumerable:!0,configurable:!0}),t.prototype.hasStickyChanged=function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e},t.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1},t}(e)}var f=function(e){this.template=e},h=function(e){this.template=e},m=function(e){this.template=e},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._stickyEnd=!1,t}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyEnd",{get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=Object(i.c)(e),this._hasStickyChanged=t!==this._stickyEnd},enumerable:!0,configurable:!0}),t}(p(function(){})),b=function(e,t){t.nativeElement.classList.add("cdk-column-"+e.cssClassFriendlyName)},v=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(l.c)(t,e),t}(b),y=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(l.c)(t,e),t}(b),_=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(l.c)(t,e),t}(b),w=function(){function e(e,t){this.template=e,this._differs=t}return e.prototype.ngOnChanges=function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}},e.prototype.getColumnsDiff=function(){return this._columnsDiffer.diff(this.columns)},e.prototype.extractCellTemplate=function(e){return this instanceof O?e.headerCell.template:this instanceof x?e.footerCell.template:e.cell.template},e}(),O=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(l.c)(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t}(p(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(w))),x=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(l.c)(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t}(p(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t}(w))),j=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(l.c)(t,e),t}(w),C=function(){function e(t){this._viewContainer=t,e.mostRecentCellOutlet=this}return e.prototype.ngOnDestroy=function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)},e.mostRecentCellOutlet=null,e}(),k=function(){},E=function(){},S=function(){},R=["top","bottom","left","right"],I=function(){function e(e,t,n,l){void 0===l&&(l=!0),this.isNativeHtmlTable=e,this.stickCellCss=t,this.direction=n,this._isBrowser=l}return e.prototype.clearStickyPositioning=function(e,t){for(var n=0,l=e;n<l.length;n++){var i=l[n];if(i.nodeType===i.ELEMENT_NODE){this._removeStickyStyle(i,t);for(var o=0;o<i.children.length;o++)this._removeStickyStyle(i.children[o],t)}}},e.prototype.updateStickyColumns=function(e,t,n){var l=t.some(function(e){return e})||n.some(function(e){return e});if(e.length&&l&&this._isBrowser)for(var i=e[0],o=i.children.length,r=this._getCellWidths(i),a=this._getStickyStartColumnPositions(r,t),s=this._getStickyEndColumnPositions(r,n),u="rtl"===this.direction,c=0,d=e;c<d.length;c++)for(var p=d[c],f=0;f<o;f++){var h=p.children[f];t[f]&&this._addStickyStyle(h,u?"right":"left",a[f]),n[f]&&this._addStickyStyle(h,u?"left":"right",s[f])}},e.prototype.stickRows=function(e,t,n){if(this._isBrowser)for(var l="bottom"===n?e.reverse():e,i=0,o=0;o<l.length;o++)if(t[o]){var r=l[o];if(this.isNativeHtmlTable)for(var a=0;a<r.children.length;a++)this._addStickyStyle(r.children[a],n,i);else this._addStickyStyle(r,n,i);i+=r.getBoundingClientRect().height}},e.prototype.updateStickyFooterContainer=function(e,t){if(this.isNativeHtmlTable){var n=e.querySelector("tfoot");t.some(function(e){return!e})?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)}},e.prototype._removeStickyStyle=function(e,t){for(var n=0,l=t;n<l.length;n++)e.style[l[n]]="";e.style.zIndex=this._getCalculatedZIndex(e),R.some(function(t){return!!e.style[t]})||(e.style.position="",e.classList.remove(this.stickCellCss))},e.prototype._addStickyStyle=function(e,t,n){e.classList.add(this.stickCellCss),e.style[t]=n+"px",e.style.cssText+="position: -webkit-sticky; position: sticky; ",e.style.zIndex=this._getCalculatedZIndex(e)},e.prototype._getCalculatedZIndex=function(e){for(var t={top:100,bottom:10,left:1,right:1},n=0,l=0,i=R;l<i.length;l++){var o=i[l];e.style[o]&&(n+=t[o])}return n?""+n:""},e.prototype._getCellWidths=function(e){for(var t=[],n=e.children,l=0;l<n.length;l++)t.push(n[l].getBoundingClientRect().width);return t},e.prototype._getStickyStartColumnPositions=function(e,t){for(var n=[],l=0,i=0;i<e.length;i++)t[i]&&(n[i]=l,l+=e[i]);return n},e.prototype._getStickyEndColumnPositions=function(e,t){for(var n=[],l=0,i=e.length;i>0;i--)t[i]&&(n[i]=l,l+=e[i]);return n},e}(),D=function(e,t){this.viewContainer=e,this.elementRef=t},P=function(e,t){this.viewContainer=e,this.elementRef=t},A=function(e,t){this.viewContainer=e,this.elementRef=t},T=function(){function e(e,t,n,l,i,o,r){this._differs=e,this._changeDetectorRef=t,this._elementRef=n,this._dir=i,this._platform=r,this._onDestroy=new a.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new s.a({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(e.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(e){Object(o.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+"."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=Object(i.c)(e),this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n})},e.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()},e.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource instanceof r.a&&this.dataSource.disconnect(this)},e.prototype.renderRows=function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;t.forEachOperation(function(t,l,i){if(null==t.previousIndex)e._insertRow(t.item,i);else if(null==i)n.remove(l);else{var o=n.get(l);n.move(o,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this.updateStickyColumnStyles()}},e.prototype.setHeaderRowDef=function(e){this._customHeaderRowDefs=new Set([e]),this._headerRowDefChanged=!0},e.prototype.setFooterRowDef=function(e){this._customFooterRowDefs=new Set([e]),this._footerRowDefChanged=!0},e.prototype.addColumnDef=function(e){this._customColumnDefs.add(e)},e.prototype.removeColumnDef=function(e){this._customColumnDefs.delete(e)},e.prototype.addRowDef=function(e){this._customRowDefs.add(e)},e.prototype.removeRowDef=function(e){this._customRowDefs.delete(e)},e.prototype.addHeaderRowDef=function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0},e.prototype.removeHeaderRowDef=function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0},e.prototype.addFooterRowDef=function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0},e.prototype.removeFooterRowDef=function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0},e.prototype.updateStickyHeaderRowStyles=function(){var e=this._getRenderedRows(this._headerRowOutlet);this._stickyStyler.clearStickyPositioning(e,["top"]);var t=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})},e.prototype.updateStickyFooterRowStyles=function(){var e=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(e,["bottom"]);var t=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})},e.prototype.updateStickyColumnStyles=function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),l=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(t.concat(n,l),["left","right"]),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var l=[],i=0;i<n.length;i++)e._renderRows[i].rowDef===t&&l.push(n[i]);e._addStickyColumnStyles(l,t)}),l.forEach(function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})},e.prototype._getAllRenderRows=function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var l=this._data[n],i=this._getRenderRowsForData(l,n,t.get(l));this._cachedRenderRowsMap.has(l)||this._cachedRenderRowsMap.set(l,new WeakMap);for(var o=0;o<i.length;o++){var r=i[o],a=this._cachedRenderRowsMap.get(r.data);a.has(r.rowDef)?a.get(r.rowDef).push(r):a.set(r.rowDef,[r]),e.push(r)}}return e},e.prototype._getRenderRowsForData=function(e,t,n){return this._getRowDefs(e,t).map(function(l){var i=n&&n.has(l)?n.get(l):[];if(i.length){var o=i.shift();return o.dataIndex=t,o}return{data:e,rowDef:l,dataIndex:t}})},e.prototype._cacheColumnDefs=function(){var e=this;this._columnDefsByName.clear(),F(this._contentColumnDefs,this._customColumnDefs).forEach(function(t){if(e._columnDefsByName.has(t.name))throw Error('Duplicate column definition name provided: "'+t.name+'".');e._columnDefsByName.set(t.name,t)})},e.prototype._cacheRowDefs=function(){this._headerRowDefs=F(this._contentHeaderRowDefs,this._customHeaderRowDefs),this._footerRowDefs=F(this._contentFooterRowDefs,this._customFooterRowDefs),this._rowDefs=F(this._contentRowDefs,this._customRowDefs);var e=this._rowDefs.filter(function(e){return!e.when});if(!this.multiTemplateDataRows&&e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]},e.prototype._renderUpdatedColumns=function(){var e=function(e,t){return e||!!t.getColumnsDiff()};this._rowDefs.reduce(e,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(e,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(e,!1)&&this._forceRenderFooterRows()},e.prototype._switchDataSource=function(e){this._data=[],this.dataSource instanceof r.a&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e},e.prototype._observeRenderChanges=function(){var e=this;if(this.dataSource){var t;if(this.dataSource.connect instanceof Function?t=this.dataSource.connect(this):this.dataSource instanceof u.a?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(c.a)(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Object(d.a)(this._onDestroy)).subscribe(function(t){e._data=t||[],e.renderRows()})}},e.prototype._forceRenderHeaderRows=function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},e.prototype._forceRenderFooterRows=function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},e.prototype._addStickyColumnStyles=function(e,t){var n=this,l=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),i=l.map(function(e){return e.sticky}),o=l.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,i,o)},e.prototype._getRenderedRows=function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var l=e.viewContainer.get(n);t.push(l.rootNodes[0])}return t},e.prototype._getRowDefs=function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(function(n){return!n.when||n.when(t,e)});else{var l=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;l&&n.push(l)}if(!n.length)throw function(e){return Error("Could not find a matching row definition for theprovided row data: "+JSON.stringify(e))}(e);return n},e.prototype._insertRow=function(e,t){this._renderRow(this._rowOutlet,e.rowDef,t,{$implicit:e.data})},e.prototype._renderRow=function(e,t,n,l){void 0===l&&(l={}),e.viewContainer.createEmbeddedView(t.template,l,n);for(var i=0,o=this._getCellTemplates(t);i<o.length;i++)C.mostRecentCellOutlet&&C.mostRecentCellOutlet._viewContainer.createEmbeddedView(o[i],l);this._changeDetectorRef.markForCheck()},e.prototype._updateRowIndexContext=function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var l=e.get(t).context;l.count=n,l.first=0===t,l.last=t===n-1,l.even=t%2==0,l.odd=!l.even,this.multiTemplateDataRows?(l.dataIndex=this._renderRows[t].dataIndex,l.renderIndex=t):l.index=this._renderRows[t].dataIndex}},e.prototype._getCellTemplates=function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var l=t._columnDefsByName.get(n);if(!l)throw Error('Could not find column with id "'+n+'".');return e.extractCellTemplate(l)}):[]},e.prototype._applyNativeTableSections=function(){for(var e=0,t=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];e<t.length;e++){var n=t[e],l=(this._document||document).createElement(n.tag);l.appendChild(n.outlet.elementRef.nativeElement),this._elementRef.nativeElement.appendChild(l)}},e.prototype._forceRenderDataRows=function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()},e.prototype._checkStickyStates=function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&this.updateStickyColumnStyles()},e.prototype._setupStickyStyler=function(){var e=this;this._stickyStyler=new I(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",!this._platform||this._platform.isBrowser),(this._dir?this._dir.change:Object(c.a)()).pipe(Object(d.a)(this._onDestroy)).subscribe(function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()})},e}();function F(e,t){return e.toArray().concat(Array.from(t))}var M=function(){}},yGk4:function(e,t,n){var l=n("Cwc5")(n("Kz5y"),"Set");e.exports=l},yHx3:function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,l=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(l.index=e.index,l.input=e.input),l}},yP5f:function(e,t,n){var l=n("+K+b");e.exports=function(e,t){var n=t?l(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},zEVN:function(e,t,n){var l=n("Gi0A"),i=n("sEf8"),o=n("mdPL"),r=o&&o.isMap,a=r?i(r):l;e.exports=a},zZ0H:function(e,t){e.exports=function(e){return e}},zoYe:function(e,t,n){var l=n("nmnc"),i=n("eUgh"),o=n("Z0cm"),r=n("/9aa"),a=l?l.prototype:void 0,s=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(r(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}}]);
//# sourceMappingURL=2.fb13cd414d0c6c807f47.js.map

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists