%PDF- %PDF-
Direktori : /home/graphicd/public_html/vebto/public/client/ |
Current File : /home/graphicd/public_html/vebto/public/client/24-es5.6a3e74a6c36d606611f6.js |
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return r(this,n)}}function r(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkbedrive2=self.webpackChunkbedrive2||[]).push([[24],{82613:function(e,t,i){"use strict";i.d(t,{U0:function(){return A},VQ:function(){return x},Fk:function(){return q}});var r=i(37716),a=i(72458),s=i(39490),l=i(3679),d=i(46237),p=i(19238),m=i(38345),h=["input"],f=function(){return{enterDuration:150}},b=["*"],g=new r.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),v=0,k={provide:l.JU,useExisting:(0,r.Gpc)(function(){return x}),multi:!0},_=function e(t,n){u(this,e),this.source=t,this.value=n},y=new r.OlP("MatRadioGroup"),w=function(){var e=function(){function e(t){u(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+v++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new r.vpe}return c(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,s.Ig)(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new _(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),x=function(){var e,t=function(e){n(i,e);var t=o(i);function i(){return u(this,i),t.apply(this,arguments)}return i}(w);return t.\u0275fac=function(n){return(e||(e=r.n5z(t)))(n||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;(1&e&&r.Suo(n,A,5),2&e)&&(r.iGM(i=r.CRH())&&(t._radios=i))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[r._Bn([k,{provide:y,useExisting:t}]),r.qOj]}),t}(),Z=(0,a.Kr)((0,a.sb)(function e(t){u(this,e),this._elementRef=t})),I=function(){var e=function(e){n(i,e);var t=o(i);function i(e,n,o,a,c,l,d,p){var m;return u(this,i),(m=t.call(this,n))._changeDetector=o,m._focusMonitor=a,m._radioDispatcher=c,m._animationMode=l,m._providerOverride=d,m._uniqueId="mat-radio-"+ ++v,m.id=m._uniqueId,m.change=new r.vpe,m._checked=!1,m._value=null,m._removeUniqueSelectionListener=function(){},m.radioGroup=e,p&&(m.tabIndex=(0,s.su)(p,0)),m._removeUniqueSelectionListener=c.listen(function(e,t){e!==m.id&&t===m.name&&(m.checked=!1)}),m}return c(i,[{key:"checked",get:function(){return this._checked},set:function(e){var t=(0,s.Ig)(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled((0,s.Ig)(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=(0,s.Ig)(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new _(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),i}(Z);return e.\u0275fac=function(t){return new(t||e)(r.Y36(w),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(p.tE),r.Y36(m.A8),r.Y36(String),r.Y36(void 0),r.Y36(String))},e.\u0275dir=r.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&r.Gf(h,5),2&e)&&(r.iGM(n=r.CRH())&&(t._inputElement=n.first))},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[r.qOj]}),e}(),A=function(){var e=function(e){n(i,e);var t=o(i);function i(e,n,o,r,a,s,c,l){return u(this,i),t.call(this,e,n,o,r,a,s,c,l)}return i}(I);return e.\u0275fac=function(t){return new(t||e)(r.Y36(y,8),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(p.tE),r.Y36(m.A8),r.Y36(d.Qb,8),r.Y36(g,8),r.$8M("tabindex"))},e.\u0275cmp=r.Xpm({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(r.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[r.qOj],ngContentSelectors:b,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r._UZ(3,"span",3),r._UZ(4,"span",4),r.TgZ(5,"input",5,6),r.NdJ("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),r.qZA(),r.TgZ(7,"span",7),r._UZ(8,"span",8),r.qZA(),r.qZA(),r.TgZ(9,"span",9),r.TgZ(10,"span",10),r._uU(11,"\xa0"),r.qZA(),r.Hsn(12),r.qZA(),r.qZA()),2&e){var n=r.MAs(1);r.uIk("for",t.inputId),r.xp6(5),r.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),r.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.DdM(18,f)),r.xp6(2),r.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[a.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),q=function(){var e=function e(){u(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[a.si,a.BQ],a.BQ]}),e}()},6008:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var i=n(38583),o=n(76627),r=n(51095),a=n(37716),s=function(){var e=function e(){u(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[i.ez,o.Ps,r.ot]]}),e}()},68145:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var i=n(26215),o=n(3679),r=n(22238),a=n(68939),s=n(37716),l=n(87991),d=n(35718),p=n(38583),m=n(76627),h=n(15515),f=n(51095);function b(e,t){1&e&&(s.TgZ(0,"span",6),s._uU(1,"Create Workspace"),s.qZA())}function g(e,t){1&e&&(s.TgZ(0,"span",6),s._uU(1,"Update Workspace"),s.qZA())}function v(e,t){if(1&e&&(s.TgZ(0,"div",15),s._uU(1),s.qZA()),2&e){var n=s.oxw().ngIf;s.xp6(1),s.Oqu(n.name)}}function k(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"form",7),s.NdJ("ngSubmit",function(){return s.CHM(n),s.oxw().confirm()}),s.TgZ(1,"mat-dialog-content",8),s.TgZ(2,"div",9),s.TgZ(3,"label",10),s._uU(4,"Name"),s.qZA(),s._UZ(5,"input",11),s.YNc(6,v,2,1,"div",12),s.qZA(),s.qZA(),s.TgZ(7,"mat-dialog-actions"),s.TgZ(8,"button",13),s.NdJ("click",function(){return s.CHM(n),s.oxw().close()}),s._uU(9,"Cancel"),s.qZA(),s.TgZ(10,"button",14),s.ALo(11,"async"),s._uU(12),s.qZA(),s.qZA(),s.qZA()}if(2&e){var i=t.ngIf,o=s.oxw();s.Q6J("formGroup",o.form),s.xp6(6),s.Q6J("ngIf",i.name),s.xp6(4),s.Q6J("disabled",s.lcZ(11,4,o.loading$)),s.xp6(2),s.Oqu(o.data.workspace?"Update":"Create")}}var _=function(){var e=function(){function e(t,n,r,a){u(this,e),this.dialogRef=t,this.data=n,this.workspaces=r,this.toast=a,this.loading$=new i.X(!1),this.errors$=new i.X({}),this.form=new o.cw({name:new o.NI}),n.workspace&&this.form.patchValue(n.workspace)}return c(e,[{key:"confirm",value:function(){var e=this;this.loading$.next(!0),(this.data.workspace?this.workspaces.update(this.data.workspace.id,this.form.value):this.workspaces.create(this.form.value)).pipe((0,a.x)(function(){return e.loading$.next(!1)})).subscribe(function(t){e.toast.open(e.data.workspace?"Workspace updated.":"Workspace created."),e.close(t.workspace)},function(t){return e.errors$.next(t.errors)})}},{key:"close",value:function(e){this.dialogRef.close(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(r.so),s.Y36(r.WI),s.Y36(l.b),s.Y36(d.F))},e.\u0275cmp=s.Xpm({type:e,selectors:[["crupdate-workspace-modal"]],decls:8,vars:5,consts:[[1,"modal-header"],["mat-dialog-title",""],["trans","",4,"ngIf"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["trans",""],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"many-inputs"],[1,"input-container","name-container"],["for","crupdate-workspace-name","trans",""],["type","text","id","crupdate-workspace-name","formControlName","name","required","","minlength","3"],["class","error",4,"ngIf"],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],[1,"error"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"h2",1),s.YNc(2,b,2,0,"span",2),s.YNc(3,g,2,0,"span",2),s.qZA(),s.TgZ(4,"button",3),s.NdJ("click",function(){return t.close()}),s._UZ(5,"mat-icon",4),s.qZA(),s.qZA(),s.YNc(6,k,13,6,"form",5),s.ALo(7,"async")),2&e&&(s.xp6(2),s.Q6J("ngIf",!t.data.workspace),s.xp6(1),s.Q6J("ngIf",t.data.workspace),s.xp6(3),s.Q6J("ngIf",s.lcZ(7,3,t.errors$)))},directives:[r.uh,p.O5,m.Hw,h.P,o.JL,o.sg,r.xY,o.Fj,o.JJ,o.u,o.Q7,o.wO,r.H8,f.lW],pipes:[p.Ov],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),e}()},34899:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i={title:"Leave Workspace",body:"Are you sure you want to leave this workspace?",bodyBold:"All resources you've created in the workspace will be transferred to workspace owner.",ok:"Leave"}},97335:function(t,n,i){"use strict";i.d(n,{t:function(){return L}});var o=i(26215),r=i(3679),a=i(22238),s=i(68939),l=(function(e){e.LEFT_WORKSPACE="You have left the workspace.",e.MEMBER_DELETED="Member Deleted.",e.INVITES_SENT="Invites Sent.",e.INVITE_RESENT="Resent invite.",e.ROLE_ASSIGNED="Role Assigned."}(l||(l={})),l),d=i(8208),p=i(34899),m=i(83326),h=i(37716),f=i(87991),b=i(35718),g=i(74388),v=i(24688),k=i(15381),_=i(15515),y=i(76627),w=i(38583),x=i(33935),Z=i(44666),I=i(51095),A=i(12178),q=i(64833),T=i(11436),C=i(63297);function M(e,t){1&e&&h._UZ(0,"mat-progress-bar",23)}function O(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"label",18),h._uU(3,"Invite by email"),h.qZA(),h.TgZ(4,"div",19),h._UZ(5,"chip-input",20),h.TgZ(6,"button",21),h.NdJ("click",function(){return h.CHM(n),h.oxw().invitePeople()}),h.ALo(7,"async"),h.ALo(8,"async"),h._uU(9,"Invite "),h.qZA(),h.qZA(),h.qZA(),h.YNc(10,M,1,0,"mat-progress-bar",22),h.ALo(11,"async"),h.qZA()}if(2&e){var i,o=h.oxw();h.Q6J("@fadeIn",void 0),h.xp6(5),h.Q6J("emailsInput",!0)("formControl",o.peopleToInvite),h.xp6(1),h.Q6J("disabled",h.lcZ(7,5,o.inviting$)||!(null!=(i=h.lcZ(8,7,o.peopleToInvite.valueChanges))&&i.length)),h.xp6(4),h.Q6J("ngIf",h.lcZ(11,9,o.inviting$))}}function R(e,t){1&e&&(h.TgZ(0,"li",24),h._UZ(1,"skeleton",25),h.TgZ(2,"div",26),h._UZ(3,"skeleton"),h._UZ(4,"skeleton"),h.qZA(),h.qZA())}var P=function(){return[1,2,3]};function E(e,t){1&e&&(h.TgZ(0,"ul",12),h.YNc(1,R,5,0,"li",13),h.qZA()),2&e&&(h.Q6J("@fadeOut",void 0),h.xp6(1),h.Q6J("ngForOf",h.DdM(2,P)))}function U(e,t){1&e&&(h.TgZ(0,"span",38),h._uU(1,"(You)"),h.qZA())}function J(e,t){if(1&e){var n=h.EpF();h.ynx(0),h._uU(1," \xb7 "),h.TgZ(2,"button",39),h.NdJ("click",function(){h.CHM(n);var e=h.oxw(2).$implicit;return h.oxw().maybeResendInvite(e)}),h.ALo(3,"async"),h._uU(4,"Resend Invite"),h.qZA(),h.BQk()}if(2&e){var i=h.oxw(3);h.xp6(2),h.Q6J("disabled",h.lcZ(3,1,i.inviting$))}}function $(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1," \xb7 "),h.TgZ(2,"span",34),h._uU(3,"Invited"),h.qZA(),h.YNc(4,J,5,3,"ng-container",30),h.qZA()),2&e){var n=h.oxw(2);h.xp6(4),h.Q6J("ngIf",n.canInvite)}}function N(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"button",40),h.NdJ("click",function(){h.CHM(n);var e=h.oxw().$implicit;return h.oxw().maybeDeleteMember(e)}),h.ALo(1,"async"),h._UZ(2,"mat-icon",3),h.qZA()}if(2&e){var i=h.oxw().$implicit,o=h.oxw();h.ekj("visually-hidden",i.is_owner||!o.canDelete),h.Q6J("disabled",h.lcZ(1,3,o.deleting$))}}function Y(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"button",41),h.NdJ("click",function(){h.CHM(n);var e=h.oxw().$implicit;return h.oxw().maybeLeaveWorkspace(e)}),h.ALo(1,"trans"),h.ALo(2,"async"),h._UZ(3,"mat-icon",42),h.qZA()}if(2&e){var i=h.oxw(2);h.Q6J("matTooltip",h.lcZ(1,2,"Leave workspace"))("disabled",h.lcZ(2,4,i.deleting$))}}var G=function(e){return{member:e}};function D(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"li",24),h.NdJ("@fadeIn.done",function(){return h.CHM(n),h.oxw(),h.MAs(6).style.overflow="auto"}),h._UZ(1,"img",27),h.TgZ(2,"div",26),h.TgZ(3,"div",28),h.TgZ(4,"span"),h._uU(5),h.qZA(),h._uU(6," "),h.YNc(7,U,2,0,"span",29),h.YNc(8,$,5,1,"span",30),h.qZA(),h.TgZ(9,"div",31),h._uU(10),h.qZA(),h.qZA(),h.TgZ(11,"div",32),h.TgZ(12,"button",33),h.TgZ(13,"span",34),h._uU(14),h.qZA(),h._UZ(15,"mat-icon",35),h.qZA(),h.YNc(16,N,3,5,"button",36),h.YNc(17,Y,4,6,"button",37),h.qZA(),h.qZA()}if(2&e){var i=t.$implicit,o=h.oxw(),r=h.MAs(19);h.Q6J("@fadeIn",void 0),h.xp6(1),h.Q6J("src",i.avatar,h.LSH),h.xp6(4),h.Oqu(i.display_name),h.xp6(2),h.Q6J("ngIf",o.currentUser.get("id")===i.id),h.xp6(1),h.Q6J("ngIf","invite"===i.model_type),h.xp6(2),h.Oqu(i.email),h.xp6(2),h.ekj("not-clickable",i.is_owner||!o.canEdit),h.Q6J("matMenuTriggerFor",r)("matMenuTriggerData",h.VKq(13,G,i)),h.xp6(2),h.Oqu(i.role_name),h.xp6(2),h.Q6J("ngIf",i.is_owner||o.currentUser.get("id")!==i.id),h.xp6(1),h.Q6J("ngIf",!i.is_owner&&o.currentUser.get("id")===i.id)}}function S(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"div",44),h.NdJ("click",function(){var e=h.CHM(n).$implicit,t=h.oxw().member;return h.oxw().changeRole(t,e)}),h._UZ(1,"mat-icon",45),h.TgZ(2,"div",46),h.TgZ(3,"div",47),h._uU(4),h.qZA(),h.TgZ(5,"div",48),h._uU(6),h.qZA(),h.qZA(),h.qZA()}if(2&e){var i=t.$implicit,o=h.oxw().member;h.ekj("active",o.role_id===i.id),h.xp6(1),h.ekj("visually-hidden",o.role_id!==i.id),h.xp6(3),h.Oqu(i.name),h.xp6(2),h.Oqu(i.description)}}function F(e,t){if(1&e&&(h.YNc(0,S,7,6,"div",43),h.ALo(1,"async")),2&e){var n=h.oxw();h.Q6J("ngForOf",h.lcZ(1,1,n.workspaceRoles$))}}var Q=function(e){return{workspace:e}},L=function(){var t=function(){function t(e,n,i,a,s,c,l){u(this,t),this.dialogRef=e,this.data=n,this.workspaces=i,this.toast=a,this.valueLists=s,this.currentUser=c,this.modal=l,this.inviting$=new o.X(!1),this.deleting$=new o.X(!1),this.loadingMembers$=new o.X(!1),this.workspaceRoles$=new o.X([]),this.members$=new o.X([]),this.peopleToInvite=new r.NI([]),this.canInvite=!1,this.canEdit=!1,this.canDelete=!1}return c(t,[{key:"ngOnInit",value:function(){var t=this;this.loadingMembers$.next(!0),this.valueLists.get(["workspaceRoles"]).subscribe(function(e){t.workspaceRoles$.next(e.workspaceRoles)}),this.workspaces.get(this.data.workspace.id).pipe((0,s.x)(function(){return t.loadingMembers$.next(!1)})).subscribe(function(n){t.members$.next([].concat(e(n.workspace.invites),e(n.workspace.members))),t.setCurrentUserPermissions()})}},{key:"close",value:function(e){this.dialogRef.close(e)}},{key:"invitePeople",value:function(){var t=this,n=this.peopleToInvite.value.filter(function(e){return!t.members$.value.find(function(t){return t.email===e})});if(!n.length)return this.peopleToInvite.reset(),void this.toast.open("All invited people are already members.");var i={emails:n,roleId:(this.workspaceRoles$.value.find(function(e){return e.default})||this.workspaceRoles$.value[0]).id};this.inviting$.next(!0),this.workspaces.invitePeople(this.data.workspace.id,i).pipe((0,s.x)(function(){return t.inviting$.next(!1)})).subscribe(function(n){t.members$.next([].concat(e(t.members$.value),e(n.invites))),t.peopleToInvite.reset(),t.toast.open(l.INVITES_SENT)})}},{key:"resendInvite",value:function(e){var t=this;this.inviting$.next(!0),this.workspaces.resendInvite(this.data.workspace.id,e.id).pipe((0,s.x)(function(){return t.inviting$.next(!1)})).subscribe(function(){t.toast.open(l.INVITE_RESENT)})}},{key:"changeRole",value:function(t,n){var i=this;this.workspaces.changeRole(this.data.workspace.id,t,n.id).subscribe(function(){i.toast.open(l.ROLE_ASSIGNED);var o=e(i.members$.value),r=o.findIndex(function(e){return e.id===t.id});o[r].role_name=n.name,o[r].role_id=n.id,i.members$.next(o)})}},{key:"deleteMember",value:function(t){var n=this;this.deleting$.next(!0),("member"===t.model_type?this.workspaces.deleteMember(this.data.workspace.id,t.id):this.workspaces.deleteInvite(t.id)).pipe((0,s.x)(function(){return n.deleting$.next(!1)})).subscribe(function(){var i=e(n.members$.value),o=i.findIndex(function(e){return t.id&&e.model_type===t.model_type});i.splice(o,1),n.members$.next(i),t.id===n.currentUser.get("id")?(n.close(),n.toast.open(l.LEFT_WORKSPACE)):n.toast.open(l.MEMBER_DELETED)})}},{key:"maybeDeleteMember",value:function(e){var t=this;this.modal.show(d.z,{title:"Delete Member",body:"Are you sure you want to delete this member?",bodyBold:"All workspace resources created by this member will be transferred to workspace owner.",ok:"Delete"}).afterClosed().subscribe(function(n){n&&t.deleteMember(e)})}},{key:"maybeResendInvite",value:function(e){var t=this;this.modal.show(d.z,{title:"Resend Invite",body:"Are you sure you want to send this invite again?",ok:"Resend"}).afterClosed().subscribe(function(n){n&&t.resendInvite(e)})}},{key:"maybeLeaveWorkspace",value:function(e){var t=this;this.modal.show(d.z,p.W).afterClosed().subscribe(function(n){n&&t.deleteMember(e)})}},{key:"setCurrentUserPermissions",value:function(){var e=this,t=this.members$.value.find(function(t){return t.id===e.currentUser.get("id")});this.canInvite=t.is_owner||!!t.permissions.find(function(e){return"workspace_members.invite"===e.name}),this.canEdit=t.is_owner||!!t.permissions.find(function(e){return"workspace_members.update"===e.name}),this.canDelete=t.is_owner||!!t.permissions.find(function(e){return"workspace_members.delete"===e.name})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.so),h.Y36(a.WI),h.Y36(f.b),h.Y36(b.F),h.Y36(g.l),h.Y36(v.I),h.Y36(k.u))},t.\u0275cmp=h.Xpm({type:t,selectors:[["manage-workspace-members-modal"]],decls:21,vars:10,consts:[[1,"modal-header"],["mat-dialog-title","","trans",""],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],[2,"overflow","hidden"],["container",""],["class","invite-container",4,"ngIf"],[1,"header"],["svgIcon","people"],["trans","",1,"text",3,"transValues"],[1,"animation-container"],["class","member-list unstyled-list",4,"ngIf"],[1,"member-list","unstyled-list"],["class","member-list-item",4,"ngFor","ngForOf"],["selectRoleMenu","matMenu"],["matMenuContent",""],[1,"invite-container"],[1,"input-container"],["for","workspace-emails-input","trans",""],[1,"input-with-action"],["id","workspace-emails-input","placeholder","Email addresses",3,"emailsInput","formControl"],["type","button","mat-flat-button","","color","accent","trans","",1,"add-tags-button",3,"disabled","click"],["mode","indeterminate","color","accent",4,"ngIf"],["mode","indeterminate","color","accent"],[1,"member-list-item"],["variant","avatar"],[1,"details"],["alt","",3,"src"],[1,"email"],["class","strong","trans","",4,"ngIf"],[4,"ngIf"],[1,"invited_at"],[1,"actions"],["type","button","mat-stroked-button","",1,"role-trigger-button",3,"matMenuTriggerFor","matMenuTriggerData"],["trans",""],["svgIcon","keyboard-arrow-down",1,"dropdown-icon"],["type","button","class","delete-member-button","mat-icon-button","",3,"visually-hidden","disabled","click",4,"ngIf"],["type","button","class","delete-member-button","mat-icon-button","",3,"matTooltip","disabled","click",4,"ngIf"],["trans","",1,"strong"],["type","button","trans","",1,"no-style","resend-invite-button",3,"disabled","click"],["type","button","mat-icon-button","",1,"delete-member-button",3,"disabled","click"],["type","button","mat-icon-button","",1,"delete-member-button",3,"matTooltip","disabled","click"],["svgIcon","exit-to-app"],["class","multiline-mat-menu-item with-icon","mat-menu-item","","trans","",3,"active","click",4,"ngFor","ngForOf"],["mat-menu-item","","trans","",1,"multiline-mat-menu-item","with-icon",3,"click"],["svgIcon","check"],[1,"menu-item-content"],["trans","",1,"title"],["trans","",1,"description"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.TgZ(1,"h2",1),h._uU(2,"Manage workspace members"),h.qZA(),h.TgZ(3,"button",2),h.NdJ("click",function(){return t.close()}),h._UZ(4,"mat-icon",3),h.qZA(),h.qZA(),h.TgZ(5,"mat-dialog-content",4,5),h.YNc(7,O,12,11,"div",6),h.TgZ(8,"div",7),h._UZ(9,"mat-icon",8),h.TgZ(10,"span",9),h._uU(11,"Members of :workspace"),h.qZA(),h.qZA(),h.TgZ(12,"div",10),h.YNc(13,E,2,3,"ul",11),h.ALo(14,"async"),h.TgZ(15,"ul",12),h.YNc(16,D,18,15,"li",13),h.ALo(17,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"mat-menu",null,14),h.YNc(20,F,2,3,"ng-template",15),h.qZA()),2&e&&(h.xp6(7),h.Q6J("ngIf",t.canInvite),h.xp6(3),h.Q6J("transValues",h.VKq(8,Q,t.data.workspace.name)),h.xp6(3),h.Q6J("ngIf",h.lcZ(14,4,t.loadingMembers$)),h.xp6(3),h.Q6J("ngForOf",h.lcZ(17,6,t.members$)))},directives:[a.uh,_.P,y.Hw,a.xY,w.O5,w.sg,x.VK,x.KA,Z.S,r.JJ,r.oH,I.lW,A.pW,q._,x.p6,T.gM,x.OP],pipes:[w.Ov,C.R],styles:["[_nghost-%COMP%]{display:block;width:600px;max-width:100%}chip-input[_ngcontent-%COMP%]{flex:1}.invite-container[_ngcontent-%COMP%]{margin-bottom:30px;position:relative}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0}.header[_ngcontent-%COMP%]{font-size:1.5rem;margin-bottom:15px}.header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:5px}.header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .header[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{vertical-align:middle}.animation-container[_ngcontent-%COMP%]{position:relative}.member-list-item[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.member-list-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{flex-shrink:0;width:40px;height:40px;-o-object-fit:cover;object-fit:cover;margin-right:10px;border-radius:4px}.member-list-item[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{flex:1 1 auto}.member-list-item[_ngcontent-%COMP%] .delete-member-button[_ngcontent-%COMP%], .member-list-item[_ngcontent-%COMP%] .invited_at[_ngcontent-%COMP%]{color:var(--be-secondary-text)}.not-clickable[_ngcontent-%COMP%]{pointer-events:none}.not-clickable[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:none}.dropdown-icon[_ngcontent-%COMP%]{width:18px;height:18px;line-height:18px}.resend-invite-button[_ngcontent-%COMP%]{color:var(--be-link)}.role-trigger-button[_ngcontent-%COMP%]{margin-right:8px;font-size:1.3rem;font-weight:400}"],data:{animation:m.B},changeDetection:0}),t}()},77024:function(e,t,n){"use strict";n.r(t),n.d(t,{WorkspaceModule:function(){return x}});var i,o=n(38583),r=n(68145),a=n(97335),s=n(76627),c=n(51095),l=n(22238),d=n(49866),p=n(3679),m=n(82613),h=n(58193),f=n(6008),b=n(11436),g=n(98097),v=n(12178),k=n(87446),_=n(87738),y=n(33935),w=n(37716),x=((i=function e(){u(this,e)}).components={crupdateModal:r.Z,manageMembers:a.t},i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=w.oAB({type:i}),i.\u0275inj=w.cJS({imports:[[o.ez,p.u5,p.UX,d.N,h.x,f.b,g.X,k.m,_.G,s.Ps,c.ot,l.Is,m.Fk,b.AV,v.Cv,y.Tx]]}),i)}}])}(); //# sourceMappingURL=24-es5.6a3e74a6c36d606611f6.js.map