(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{TmDA:function(t,e,n){"use strict";n.d(e,"a",function(){return ie});var i=n("mrSG"),a=n("fXoL"),o=n("0EQZ"),c=n("ppsF"),l=n("3Pt+"),r=n("0IaG"),s=n("bUwk"),d=n("Xi3o"),m=n("Olgc"),f=n("ofXK"),b=n("bTqV"),u=n("kmnG"),g=n("qFsG"),p=n("d3UM"),h=n("FKr1"),_=n("sYmb"),C=n("aip8");function T(t,e){}const v=function(t,e,n,i){return{$implicit:t,form:e,field:n,data:i}};function w(t,e){if(1&t&&a.Fc(0,T,0,0,"ng-template",10),2&t){const t=a.fc().$implicit,e=a.fc();a.lc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",a.sc(2,v,e.form,e.form,t,e.data))}}function O(t,e){if(1&t&&(a.Ub(0,"mat-form-field",14),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Pb(4,"input",15),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,3,t.label)),a.Cb(2),a.lc("formControlName",t.id)("required",t.required)}}function y(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Pb(4,"input",16),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,5,t.label)),a.Cb(2),a.lc("formControlName",t.id)("min",t.range&&t.range[0])("max",t.range&&t.range[1])("required",t.required)}}function P(t,e){if(1&t&&(a.Ub(0,"mat-option",19),a.Hc(1),a.Tb()),2&t){const t=e.$implicit;a.lc("value",t.id),a.Cb(1),a.Ic(t.name)}}function M(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"mat-select",17),a.Fc(5,P,2,2,"mat-option",18),a.Tb(),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,4,t.label)),a.Cb(2),a.lc("formControlName",t.id)("required",t.required),a.Cb(1),a.lc("ngForOf",t.range)}}function F(t,e){if(1&t&&(a.Ub(0,"mat-option",19),a.Hc(1),a.Tb()),2&t){const t=e.$implicit;a.lc("value",t.id),a.Cb(1),a.Ic(t.name)}}function x(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"mat-select",20),a.Fc(5,F,2,2,"mat-option",18),a.Tb(),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,4,t.label)),a.Cb(2),a.lc("formControlName",t.id)("required",t.required),a.Cb(1),a.lc("ngForOf",t.range)}}function S(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Pb(4,"input",15),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,3,t.label)),a.Cb(2),a.lc("formControlName",t.id)("required",t.required)}}function I(t,e){1&t&&(a.Fc(0,O,5,5,"mat-form-field",11),a.Fc(1,y,5,7,"mat-form-field",12),a.Fc(2,M,6,6,"mat-form-field",12),a.Fc(3,x,6,6,"mat-form-field",12),a.Fc(4,S,5,5,"mat-form-field",13)),2&t&&(a.lc("ngSwitchCase","text"),a.Cb(1),a.lc("ngSwitchCase","number"),a.Cb(1),a.lc("ngSwitchCase","select"),a.Cb(1),a.lc("ngSwitchCase","multi-select"))}function $(t,e){if(1&t&&(a.Sb(0),a.Fc(1,w,1,7,void 0,7),a.Fc(2,I,5,4,"ng-template",8,9,a.Gc),a.Rb()),2&t){const t=e.$implicit,n=a.uc(3);a.Cb(1),a.lc("ngIf",t.template)("ngIfElse",n),a.Cb(1),a.lc("ngSwitch",t.type)}}let U=(()=>{class t{constructor(t,e,n,i,a,o){this._data=t,this._formBuilder=e,this._httpService=n,this._i18nService=i,this._toastService=a,this._dialogRef=o;const c={};t.fields.forEach(e=>{const n=[t.data?e.convertor?e.convertor(t.data[e.id]):t.data[e.id]:e.default],i=[];e.validator&&i.push(...e.validator),e.required&&i.push(l.u.required),i.length&&n.push(i),c[e.id]=n}),this._form=this._formBuilder.group(c)}get data(){return this._data.data}get id(){return this._data.data?this._data.data[this._data.pk]:null}get fields(){return this._data.fields}get form(){return this._form}func(){}save(){return Object(i.a)(this,void 0,void 0,function*(){const t={};this._data.fields.forEach(e=>{t[e.id]=this._form.controls[e.id].value}),void 0!==(this.id?yield this._httpService.put(Array.isArray(this._data.api)?[this._data.api[0],`${this._data.api[1]}/${this.id}`]:`${this._data.api}/${this.id}`,t).catch(t=>{this._data.error&&!1===this._data.error(t)||this._dialogRef.close({success:!1})}):yield this._httpService.post(this._data.api,t).catch(t=>{this._data.error&&!1===this._data.error(t)||this._dialogRef.close({success:!1})}))&&(this._toastService.show(this._i18nService.translate("shared.notification.success")),this._dialogRef.close({success:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(r.a),a.Ob(l.d),a.Ob(s.a),a.Ob(d.a),a.Ob(m.a),a.Ob(r.g))},t.\u0275cmp=a.Ib({type:t,selectors:[["crud-template-edit"]],decls:16,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["autocomplete","off",1,"form",3,"formGroup"],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","","color","primary",3,"disabled","click"],["mat-button","","mat-dialog-close",""],[4,"ngIf","ngIfElse"],[3,"ngSwitch"],["$control",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,""],["matInput","",3,"formControlName","required"],["type","number","matInput","",3,"formControlName","min","max","required"],[3,"formControlName","required"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"formControlName","required"]],template:function(t,e){1&t&&(a.Ub(0,"h2",0),a.Hc(1),a.gc(2,"translate"),a.Tb(),a.Ub(3,"div",1),a.Ub(4,"form",2),a.Fc(5,$,4,3,"ng-container",3),a.gc(6,"sort"),a.Tb(),a.Tb(),a.Ub(7,"div",4),a.Ub(8,"button",5),a.bc("click",function(){return e.save()}),a.Hc(9),a.gc(10,"uppercase"),a.gc(11,"translate"),a.Tb(),a.Ub(12,"button",6),a.Hc(13),a.gc(14,"uppercase"),a.gc(15,"translate"),a.Tb(),a.Tb()),2&t&&(a.Cb(1),a.Ic(a.hc(2,6,e.id?"shared.operation.edit":"shared.operation.add")),a.Cb(3),a.lc("formGroup",e.form),a.Cb(1),a.lc("ngForOf",a.ic(6,8,e.fields,"order")),a.Cb(3),a.lc("disabled",e.form.invalid),a.Cb(1),a.Ic(a.hc(10,11,a.hc(11,13,"shared.dialog.ok"))),a.Cb(4),a.Ic(a.hc(14,15,a.hc(15,17,"shared.dialog.cancel"))))},directives:[r.h,r.e,l.v,l.o,l.g,f.m,r.c,b.a,r.d,f.n,f.p,f.s,f.q,f.r,u.b,u.e,g.b,l.c,l.n,l.f,l.t,l.r,p.a,h.o],pipes:[_.d,C.a,f.v],styles:[".form[_ngcontent-%COMP%] .mat-form-field{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{margin-right:-8px}"]}),t})();var k=n("iadO"),q=n("n1FK");function D(t,e){}const H=function(t,e,n){return{$implicit:t,form:e,field:n}};function E(t,e){if(1&t&&a.Fc(0,D,0,0,"ng-template",7),2&t){const t=a.fc().$implicit,e=a.fc();a.lc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",a.rc(2,H,e.form,e.form,t))}}function N(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Pb(4,"input",10),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,2,t.label)),a.Cb(2),a.lc("formControlName",t.id)}}function R(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Pb(4,"input",11),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,4,t.label)),a.Cb(2),a.lc("formControlName",t.id)("min",t.range&&t.range[0])("max",t.range&&t.range[1])}}function A(t,e){if(1&t&&(a.Ub(0,"mat-option",14),a.Hc(1),a.Tb()),2&t){const t=e.$implicit;a.lc("value",t.id),a.Cb(1),a.Ic(t.name)}}function V(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"mat-select",12),a.Fc(5,A,2,2,"mat-option",13),a.Tb(),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,3,t.label)),a.Cb(2),a.lc("formControlName",t.id),a.Cb(1),a.lc("ngForOf",t.range)}}function z(t,e){if(1&t&&(a.Ub(0,"mat-option",14),a.Hc(1),a.Tb()),2&t){const t=e.$implicit;a.lc("value",t.id),a.Cb(1),a.Ic(t.name)}}function B(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"mat-select",15),a.Fc(5,z,2,2,"mat-option",13),a.Tb(),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,3,t.label)),a.Cb(2),a.lc("formControlName",t.id),a.Cb(1),a.lc("ngForOf",t.range)}}function G(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"mat-date-range-input",16),a.Ub(5,"input",17),a.bc("click",function(){return a.wc(t),a.uc(9).open()}),a.Tb(),a.Ub(6,"input",18),a.bc("click",function(){return a.wc(t),a.uc(9).open()}),a.Tb(),a.Tb(),a.Pb(7,"mat-datepicker-toggle",19),a.Pb(8,"mat-date-range-picker",null,20),a.Tb()}if(2&t){const t=a.uc(9),e=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,5,e.label)),a.Cb(2),a.lc("rangePicker",t),a.Cb(1),a.lc("formControlName",e.id+"From"),a.Cb(1),a.lc("formControlName",e.id+"To"),a.Cb(1),a.lc("for",t)}}const j=function(){return[0,0]};function X(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"input",21),a.bc("click",function(){return a.wc(t),a.uc(7).open()}),a.Tb(),a.Pb(5,"mat-datepicker-toggle",19),a.Pb(6,"ngx-mat-datetime-picker",22,23),a.Tb()}if(2&t){const t=a.uc(7),e=a.fc(2).$implicit;a.Cb(2),a.Jc("",a.hc(3,5,e.label),"-\u5f00\u59cb"),a.Cb(2),a.lc("ngxMatDatetimePicker",t)("formControlName",e.id+"From"),a.Cb(1),a.lc("for",t),a.Cb(1),a.lc("defaultTime",a.oc(7,j))}}const J=function(){return[23,59,59]};function K(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Ub(4,"input",24),a.bc("click",function(){return a.wc(t),a.uc(7).open()}),a.Tb(),a.Pb(5,"mat-datepicker-toggle",19),a.Pb(6,"ngx-mat-datetime-picker",22,25),a.Tb()}if(2&t){const t=a.uc(7),e=a.fc(2).$implicit;a.Cb(2),a.Jc("",a.hc(3,5,e.label),"-\u7ed3\u675f"),a.Cb(2),a.lc("ngxMatDatetimePicker",t)("formControlName",e.id+"To"),a.Cb(1),a.lc("for",t),a.Cb(1),a.lc("defaultTime",a.oc(7,J))}}function Q(t,e){if(1&t&&(a.Ub(0,"mat-form-field"),a.Ub(1,"mat-label"),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Pb(4,"input",10),a.Tb()),2&t){const t=a.fc(2).$implicit;a.Cb(2),a.Ic(a.hc(3,2,t.label)),a.Cb(2),a.lc("formControlName",t.id)}}function L(t,e){1&t&&(a.Fc(0,N,5,4,"mat-form-field",8),a.Fc(1,R,5,6,"mat-form-field",8),a.Fc(2,V,6,5,"mat-form-field",8),a.Fc(3,B,6,5,"mat-form-field",8),a.Fc(4,G,10,7,"mat-form-field",8),a.Fc(5,X,8,8,"mat-form-field",8),a.Fc(6,K,8,8,"mat-form-field",8),a.Fc(7,Q,5,4,"mat-form-field",9)),2&t&&(a.lc("ngSwitchCase","text"),a.Cb(1),a.lc("ngSwitchCase","number"),a.Cb(1),a.lc("ngSwitchCase","select"),a.Cb(1),a.lc("ngSwitchCase","multi-select"),a.Cb(1),a.lc("ngSwitchCase","date-range"),a.Cb(1),a.lc("ngSwitchCase","datetime-range"),a.Cb(1),a.lc("ngSwitchCase","datetime-range"))}function Y(t,e){if(1&t&&(a.Sb(0),a.Fc(1,E,1,6,void 0,4),a.Fc(2,L,8,7,"ng-template",5,6,a.Gc),a.Rb()),2&t){const t=e.$implicit,n=a.uc(3);a.Cb(1),a.lc("ngIf",t.template)("ngIfElse",n),a.Cb(1),a.lc("ngSwitch",t.type)}}let Z=(()=>{class t{constructor(t){this._formBuilder=t,this.changed=new a.o,this._form=this._formBuilder.group({})}get form(){return this._form}get fields(){return this._fields}set fields(t){t&&(t.forEach(t=>{if("date-range"==t.type||"datetime-range"==t.type){const e=new l.e,n=new l.e;t.default&&(e.setValue(t.default[0]),e.setValue(t.default[1])),this.form.addControl(t.id+"From",e),this.form.addControl(t.id+"To",n),t.default&&(this._form.controls[t.id+"From"].setValue(t.default&&t.default[0]),this._form.controls[t.id+"To"].setValue(t.default&&t.default[1]))}else{const e=new l.e;t.default&&e.setValue(t.default),this.form.addControl(t.id,e)}}),this._fields=t)}static queryString(t,e){var n,i,a,o;if(t.convertor)return t.convertor(e);switch(t.type){case"multi-select":return e instanceof Array?e.map(e=>`${t.id}=${e}&`).join("")||t.id+"=0&":"";case"date":return(null==e?void 0:e._isAMomentObject)?`${t.id}=${e.format("yyyy-MM-DD")}&`:"";case"date-range":{let a="";return(null===(n=e[0])||void 0===n?void 0:n._isAMomentObject)&&(a+=`${t.id}From=${e[0].format("yyyy-MM-DD")}&`),(null===(i=e[1])||void 0===i?void 0:i._isAMomentObject)&&(a+=`${t.id}To=${e[1].format("yyyy-MM-DD")}&`),a}case"datetime-range":{let n="";return(null===(a=e[0])||void 0===a?void 0:a._isAMomentObject)&&(n+=`${t.id}From=${e[0].format("yyyy-MM-DD HH:mm")}&`),(null===(o=e[1])||void 0===o?void 0:o._isAMomentObject)&&(n+=`${t.id}To=${e[1].format("yyyy-MM-DD HH:mm")}&`),n}default:return(null==e?void 0:e.toString().length)?`${t.id}=${e}&`:""}}search(e){let n="";this._fields.forEach(e=>{n+=t.queryString(e,"date-range"!==e.type&&"datetime-range"!==e.type||e.convertor?this._form.controls[e.id].value:[this._form.controls[e.id+"From"].value,this._form.controls[e.id+"To"].value])}),this.changed.emit({action:null!=e?e:"search",query:n})}reset(){this._fields.forEach(t=>{switch(t.type){case"date-range":case"datetime-range":this._form.controls[t.id+"From"].reset(t.default&&t.default[0]),this._form.controls[t.id+"To"].reset(t.default&&t.default[1]);break;default:this._form.controls[t.id].reset(t.default)}}),this.search("reset")}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(l.d))},t.\u0275cmp=a.Ib({type:t,selectors:[["crud-template-filter"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:11,vars:15,consts:[["autocomplete","off",1,"form",3,"formGroup"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","primary",3,"click"],["mat-stroked-button","",3,"click"],[4,"ngIf","ngIfElse"],[3,"ngSwitch"],["$control",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"formControlName"],["type","number","matInput","",3,"formControlName","min","max"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"formControlName"],[3,"rangePicker"],["matStartDate","","readonly","",3,"formControlName","click"],["matEndDate","","readonly","",3,"formControlName","click"],["matSuffix","",3,"for"],["$picker",""],["matInput","","placeholder","\u5f00\u59cb",3,"ngxMatDatetimePicker","formControlName","click"],[3,"defaultTime"],["pickerFrom",""],["matInput","","placeholder","\u7ed3\u675f",3,"ngxMatDatetimePicker","formControlName","click"],["pickerTo",""]],template:function(t,e){1&t&&(a.Ub(0,"form",0),a.Fc(1,Y,4,3,"ng-container",1),a.gc(2,"sort"),a.Ub(3,"button",2),a.bc("click",function(){return e.search()}),a.Hc(4),a.gc(5,"uppercase"),a.gc(6,"translate"),a.Tb(),a.Ub(7,"button",3),a.bc("click",function(){return e.reset()}),a.Hc(8),a.gc(9,"uppercase"),a.gc(10,"translate"),a.Tb(),a.Tb()),2&t&&(a.lc("formGroup",e.form),a.Cb(1),a.lc("ngForOf",a.ic(2,4,e.fields,"order")),a.Cb(3),a.Ic(a.hc(5,7,a.hc(6,9,"shared.operation.filter"))),a.Cb(4),a.Ic(a.hc(9,11,a.hc(10,13,"shared.operation.reset"))))},directives:[l.v,l.o,l.g,f.m,b.a,f.n,f.p,f.s,f.q,f.r,u.b,u.e,g.b,l.c,l.n,l.f,l.r,p.a,h.o,k.d,k.l,k.k,k.j,u.f,k.e,q.c,q.d],pipes:[C.a,f.v,_.d],styles:[".form[_ngcontent-%COMP%] .mat-form-field{width:100%}.form[_ngcontent-%COMP%] .mat-form-field:last-child{margin-bottom:8px}.form[_ngcontent-%COMP%] ~ .mat-button-base[_ngcontent-%COMP%]{margin-top:8px;width:100%}.indent[_ngcontent-%COMP%]{padding-left:16px;padding-top:10px;padding-bottom:-10px;font-size:smaller}"]}),t})();var W=n("S+vS"),tt=n("XhcP"),et=n("qUOr"),nt=n("+0xr"),it=n("Dh3D"),at=n("/t3+"),ot=n("Qu3c"),ct=n("NFeN"),lt=n("f0Cb"),rt=n("STbY"),st=n("c8N8"),dt=n("M9IT");const mt=["$filter"];function ft(t,e){}const bt=function(t,e){return{$implicit:t,selected:e}};function ut(t,e){if(1&t&&a.Fc(0,ft,0,0,"ng-template",22),2&t){const t=a.fc(2);a.lc("ngTemplateOutlet",t.toolbarSelectionTemplate)("ngTemplateOutletContext",a.qc(2,bt,t.selection.selected,t.selection.selected))}}function gt(t,e){if(1&t){const t=a.Vb();a.Ub(0,"button",23),a.bc("click",function(){return a.wc(t),a.fc(2).delete()}),a.gc(1,"translate"),a.Ub(2,"mat-icon"),a.Hc(3,"delete"),a.Tb(),a.Tb()}2&t&&a.mc("matTooltip",a.hc(1,1,"shared.operation.deletes"))}const pt=function(t){return{len:t}};function ht(t,e){if(1&t&&(a.Ub(0,"mat-toolbar",19),a.Ub(1,"span",20),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Fc(4,ut,1,5,void 0,16),a.Fc(5,gt,4,3,"button",21),a.Tb()),2&t){const t=a.fc();a.Cb(2),a.Ic(a.ic(3,3,"shared.data.selected",a.pc(6,pt,t.selection.selected.length))),a.Cb(2),a.lc("ngIf",t.toolbarSelectionTemplate),a.Cb(1),a.lc("ngIf",t.deletable)}}function _t(t,e){}function Ct(t,e){if(1&t&&a.Fc(0,_t,0,0,"ng-template",28),2&t){const t=a.fc(2);a.lc("ngTemplateOutlet",t.toolbarTemplate)}}function Tt(t,e){if(1&t){const t=a.Vb();a.Ub(0,"button",30),a.bc("click",function(){return a.wc(t),a.fc(3).edit()}),a.Hc(1),a.gc(2,"uppercase"),a.gc(3,"translate"),a.Tb()}2&t&&(a.Cb(1),a.Ic(a.hc(2,1,a.hc(3,3,"shared.operation.add"))))}function vt(t,e){}function wt(t,e){if(1&t&&a.Fc(0,vt,0,0,"ng-template",28),2&t){const t=a.fc(3);a.lc("ngTemplateOutlet",t.toolbarButtonsTemplate)}}function Ot(t,e){if(1&t){const t=a.Vb();a.Fc(0,Tt,4,5,"button",29),a.Fc(1,wt,1,1,void 0,16),a.Ub(2,"button",30),a.bc("click",function(){return a.wc(t),a.fc(2).refresh({action:"reload"})}),a.Hc(3),a.gc(4,"uppercase"),a.gc(5,"translate"),a.Tb(),a.Pb(6,"span",31)}if(2&t){const t=a.fc(2);a.lc("ngIf",t.addable),a.Cb(1),a.lc("ngIf",t.toolbarButtonsTemplate),a.Cb(2),a.Ic(a.hc(4,3,a.hc(5,5,"shared.operation.reload")))}}function yt(t,e){}function Pt(t,e){if(1&t&&a.Fc(0,yt,0,0,"ng-template",28),2&t){const t=a.fc(2);a.lc("ngTemplateOutlet",t.toolbarIconsTemplate)}}function Mt(t,e){if(1&t&&(a.Ub(0,"button",32),a.gc(1,"translate"),a.Ub(2,"mat-icon"),a.Hc(3,"flip"),a.Tb(),a.Ub(4,"mat-menu",null,33),a.Pb(6,"table-column-pattern",34),a.Tb(),a.Tb()),2&t){const t=a.uc(5),e=a.fc(2);a.mc("matTooltip",a.hc(1,3,"shared.operation.personalize")),a.lc("matMenuTriggerFor",t),a.Cb(6),a.lc("columns",e.columns)}}function Ft(t,e){if(1&t){const t=a.Vb();a.Ub(0,"button",23),a.bc("click",function(){return a.wc(t),a.fc(2),a.uc(2).toggle()}),a.gc(1,"translate"),a.Ub(2,"mat-icon"),a.Hc(3,"filter_list"),a.Tb(),a.Tb()}2&t&&a.mc("matTooltip",a.hc(1,1,"shared.operation.filter"))}function xt(t,e){if(1&t&&(a.Ub(0,"mat-toolbar",24),a.Fc(1,Ct,1,1,void 0,25),a.Fc(2,Ot,7,7,"ng-template",null,26,a.Gc),a.Fc(4,Pt,1,1,void 0,16),a.Fc(5,Mt,7,5,"button",27),a.Fc(6,Ft,4,3,"button",21),a.Tb(),a.Pb(7,"mat-divider")),2&t){const t=a.uc(3),e=a.fc();a.Cb(1),a.lc("ngIf",e.toolbarTemplate)("ngIfElse",t),a.Cb(3),a.lc("ngIf",e.toolbarIconsTemplate),a.Cb(1),a.lc("ngIf",!e.fixed),a.Cb(1),a.lc("ngIf",null==e.filters?null:e.filters.length)}}function St(t,e){if(1&t&&a.Pb(0,"table-row-selection",42),2&t){const t=a.fc(4);a.lc("model",t.selection)("data",t.rows)}}function It(t,e){if(1&t&&(a.Ub(0,"th",40),a.Fc(1,St,1,2,"table-row-selection",41),a.Tb()),2&t){const t=a.fc(3);a.Cb(1),a.lc("ngIf","multiple"==t.selectable)}}function $t(t,e){if(1&t&&(a.Ub(0,"td",43),a.Pb(1,"table-row-selection",42),a.Tb()),2&t){const t=e.$implicit,n=a.fc(3);a.Cb(1),a.lc("model",n.selection)("data",t)}}function Ut(t,e){1&t&&(a.Sb(0),a.Fc(1,It,2,1,"th",38),a.Fc(2,$t,2,2,"td",39),a.Rb())}function kt(t,e){1&t&&a.Pb(0,"th",46)}function qt(t,e){}const Dt=function(t,e,n){return{$implicit:t,field:e,data:n}};function Ht(t,e){if(1&t&&a.Fc(0,qt,0,0,"ng-template",22),2&t){const t=a.fc().$implicit,e=a.fc(2).$implicit,n=a.fc();a.lc("ngTemplateOutlet",n.rowOperationTemplate)("ngTemplateOutletContext",a.rc(2,Dt,t,e,t))}}function Et(t,e){if(1&t){const t=a.Vb();a.Ub(0,"button",23),a.bc("click",function(){a.wc(t);const e=a.fc().$implicit;return a.fc(3).edit(e)}),a.gc(1,"translate"),a.Ub(2,"mat-icon"),a.Hc(3,"edit"),a.Tb(),a.Tb()}2&t&&a.mc("matTooltip",a.hc(1,1,"shared.operation.edit"))}function Nt(t,e){if(1&t&&(a.Ub(0,"td",47),a.Fc(1,Ht,1,6,void 0,16),a.Fc(2,Et,4,3,"button",21),a.Tb()),2&t){const t=a.fc(3);a.Cb(1),a.lc("ngIf",t.rowOperationTemplate),a.Cb(1),a.lc("ngIf",t.editable)}}function Rt(t,e){1&t&&(a.Sb(0),a.Fc(1,kt,1,0,"th",44),a.Fc(2,Nt,3,2,"td",45),a.Rb())}function At(t,e){if(1&t&&(a.Ub(0,"th",50),a.Hc(1),a.gc(2,"translate"),a.Tb()),2&t){const t=a.fc(2).$implicit;a.lc("ngStyle",t.style)("disabled",!1===t.sortable),a.Cb(1),a.Ic(a.hc(2,3,t.header))}}function Vt(t,e){}function zt(t,e){if(1&t&&a.Fc(0,Vt,0,0,"ng-template",22),2&t){const t=a.fc().$implicit,e=a.fc(2).$implicit;a.lc("ngTemplateOutlet",e.template)("ngTemplateOutletContext",a.rc(2,Dt,t,e,t))}}function Bt(t,e){if(1&t&&a.Hc(0),2&t){const t=a.fc().$implicit,e=a.fc(2).$implicit;a.Ic(e.convertor?e.convertor(t[e.id]):t[e.id])}}function Gt(t,e){if(1&t&&(a.Ub(0,"td",51),a.Fc(1,zt,1,6,void 0,25),a.Fc(2,Bt,1,1,"ng-template",null,52,a.Gc),a.Tb()),2&t){const t=a.uc(3),e=a.fc(2).$implicit;a.lc("ngStyle",e.style),a.Cb(1),a.lc("ngIf",e.template)("ngIfElse",t)}}function jt(t,e){1&t&&(a.Sb(0),a.Fc(1,At,3,5,"th",48),a.Fc(2,Gt,4,3,"td",49),a.Rb())}function Xt(t,e){if(1&t&&(a.Sb(0,35),a.Fc(1,Ut,3,0,"ng-container",36),a.Fc(2,Rt,3,0,"ng-container",36),a.Fc(3,jt,3,0,"ng-container",37),a.Rb()),2&t){const t=e.$implicit;a.lc("matColumnDef",t.id)("ngSwitch",t.id)("sticky","start"==t.sticky)("stickyEnd","end"==t.sticky),a.Cb(1),a.lc("ngSwitchCase","@selection"),a.Cb(1),a.lc("ngSwitchCase","@operation")}}function Jt(t,e){}const Kt=function(t,e){return{$implicit:t,data:e}};function Qt(t,e){if(1&t&&(a.Ub(0,"td",53),a.Fc(1,Jt,0,0,"ng-template",22),a.Tb()),2&t){const t=e.$implicit,n=a.fc();a.Db("colspan",null==n.columns?null:n.columns.length),a.Cb(1),a.lc("ngTemplateOutlet",n.rowExpandingTemplate)("ngTemplateOutletContext",a.qc(3,Kt,t,t))}}function Lt(t,e){1&t&&a.Pb(0,"tr",54)}function Yt(t,e){if(1&t&&a.Pb(0,"tr",55),2&t){const t=e.$implicit,n=a.fc();a.lc("ngClass",n.rowClass&&n.rowClass(t))}}function Zt(t,e){1&t&&a.Pb(0,"tr",57)}const Wt=function(){return["@expanding"]};function te(t,e){1&t&&(a.Sb(0),a.Fc(1,Zt,1,0,"tr",56),a.Rb()),2&t&&(a.Cb(1),a.lc("matRowDefColumns",a.oc(1,Wt)))}function ee(t,e){if(1&t&&(a.Ub(0,"tr",58),a.Ub(1,"td",59),a.Hc(2),a.gc(3,"translate"),a.Tb(),a.Tb()),2&t){const t=a.fc();a.lc("hidden",t.loading),a.Cb(1),a.Db("colspan",null==t.columns?null:t.columns.length),a.Cb(1),a.Ic(a.hc(3,3,"shared.data.empty"))}}function ne(t,e){if(1&t){const t=a.Vb();a.Ub(0,"div",6),a.Pb(1,"mat-divider"),a.Ub(2,"mat-paginator",60),a.bc("page",function(e){return a.wc(t),a.fc().refresh(e)}),a.Tb(),a.Tb()}if(2&t){const t=a.fc();a.Cb(2),a.lc("length",t.total)("pageIndex",t.pageIndex)("pageSize",t.pageSize)}}let ie=(()=>{class t{constructor(t,e,n,i){this._dialogService=t,this._httpService=e,this._i18nService=n,this._toastService=i,this._pk="id",this._fixed=!1,this._pageable=!0,this._selectable="multiple",this._editable=!0,this._addable=!0,this._deletable=!0,this._loading=!0,this._query={static:"",dynamic:""},this._pageIndex=0,this._pageSize=50,this._sort="",this._rows=[],this._total=0,this._selection=new o.c(!0,[]),this.refreshEvent=new a.o}get filter(){return this._filter}get columns(){return this._columns}get fixed(){return this._fixed}get pageable(){return this._pageable}get selectable(){return this._selectable}get editable(){return this._editable}get addable(){return this._addable}get deletable(){return this._deletable}get rowClass(){return this._rowClass}get toolbarTemplate(){return this._toolbarTemplate}get toolbarButtonsTemplate(){return this._toolbarButtonsTemplate}get toolbarIconsTemplate(){return this._toolbarIconsTemplate}get toolbarSelectionTemplate(){return this._toolbarSelectionTemplate}get rowOperationTemplate(){return this._rowOperationTemplate}get rowExpandingTemplate(){return this._rowExpandingTemplate}get filters(){return this._filters}get loading(){return this._loading}get query(){return this._query.static?`${this._query.static}&${this._query.dynamic}`:this._query.dynamic}get pageIndex(){return this._pageIndex}get pageSize(){return this._pageSize}get rows(){return this._rows}get total(){return this._total}get selection(){return this._selection}set pk(t){this._pk=t}set api(t){(this._api=t)&&this.refresh({action:"init"})}set defination(t){const e=t?t.filter(t=>null!==t.display).map(t=>({id:t.id,header:t.header,template:t.template,style:t.style,sortable:t.sortable,sticky:t.sticky,display:t.display})):[];this._selectable&&e.unshift({id:"@selection",header:null,template:null,style:null,sortable:!1,sticky:"start",display:!0}),(this._editable||this.rowOperationTemplate)&&e.push({id:"@operation",header:null,template:null,style:null,sortable:!1,sticky:"end",display:!0}),this._columns=new c.a(e),this._filters=[],this._editors=[],t&&t.forEach(t=>{var e,n;if(t.filter){const n={id:t.id,type:t.filter.field,label:t.header,order:t.filter.order,template:t.filter.template,range:t.filter.range,convertor:t.filter.convertor,default:null!==(e=t.filter.default)&&void 0!==e?e:null};this._filters.push(n),n.default&&(this._query.dynamic=(this._query.dynamic||"")+Z.queryString(n,n.default))}t.editor&&this._editors.push({id:t.id,type:t.editor.field,label:t.header,order:t.editor.order,template:t.editor.template,range:t.editor.range,convertor:t.editor.convertor,validator:t.editor.validator,required:t.editor.required,default:null!==(n=t.editor.default)&&void 0!==n?n:null})})}set fixed(t){this._fixed=t}set pageable(t){this._pageable=t}set selectable(t){var e,n;this._selectable=t,t?((null===(e=this._columns)||void 0===e?void 0:e.length)&&!this._columns.find(t=>"@selection"==t.id)&&this._columns.unshift({id:"@selection",sticky:"start"}),this._selection._multiple="single"!=t):(null===(n=this._columns)||void 0===n?void 0:n.length)&&"@selection"==this._columns[0].id&&this._columns.shift()}set editable(t){var e,n;this._editable=t,t?(null===(e=this._columns)||void 0===e?void 0:e.length)&&!this._columns.find(t=>"@operation"==t.id)&&this._columns.push({id:"@operation",sticky:"end"}):(null===(n=this._columns)||void 0===n?void 0:n.length)&&"@operation"==this._columns[this._columns.length-1].id&&this._columns.pop()}set addable(t){this._addable=t}set deletable(t){this._deletable=t}set rowClass(t){this._rowClass=t}set toolbarTemplate(t){this._toolbarTemplate=t}set toolbarButtonsTemplate(t){this._toolbarButtonsTemplate=t}set toolbarIconsTemplate(t){this._toolbarIconsTemplate=t}set toolbarSelectionTemplate(t){this._toolbarSelectionTemplate=t}set rowOperationTemplate(t){this._rowOperationTemplate=t}set rowExpandingTemplate(t){this._rowExpandingTemplate=t}set convertor(t){this._convertor=t}set error(t){this._error=t}set query(t){this._query.static=t}set loading(t){this._loading=t}refresh(t){return Object(i.a)(this,void 0,void 0,function*(){let e=null;t&&(void 0!==t.pageIndex?(e="page",this._pageIndex=t.pageIndex,this._pageSize=t.pageSize):void 0!==t.active?(e="sort",this._sort=t.direction?"desc"==t.direction?"~"+t.active:t.active:""):void 0!==t.query?(e=t.action,this._pageIndex=0,this._query.dynamic=t.query):(e=t.action,this._pageIndex=0));let n=null;if(this._pageable){let t=-1;for(;this._pageIndex>t;)t>-1&&(this._pageIndex=t),n=yield this._httpService.get(Array.isArray(this._api)?[this._api[0],`${this._api[1]}?${this.query}sort=${this._sort}&offset=${this._pageSize*this._pageIndex}&limit=${this._pageSize}`]:`${this._api}?${this.query}sort=${this._sort}&offset=${this._pageSize*this._pageIndex}&limit=${this._pageSize}`),t=n?Math.max(0,Math.ceil(n.total/this._pageSize)-1):Number.MAX_VALUE}else n=yield this._httpService.get(Array.isArray(this._api)?[this._api[0],`${this._api[1]}?${this.query}sort=${this._sort}`]:`${this._api}?${this.query}sort=${this._sort}`);n&&(this._convertor&&(n=yield this._convertor(n)),this._loading=!1,this._total=n.total,this._rows=n.items,this._selection.clear()),this.refreshEvent.emit(e)})}edit(t){return Object(i.a)(this,void 0,void 0,function*(){(yield this._dialogService.open(U,{autoFocus:!t,data:{data:t,fields:this._editors,pk:this._pk,api:this._api,error:this._error}}))&&this.refresh({action:t?"edit":"add"})})}delete(){return Object(i.a)(this,void 0,void 0,function*(){(yield this._dialogService.confirm(this._i18nService.translate("shared.notification.confirm")))&&void 0!==(yield this._httpService.post(Array.isArray(this._api)?[this._api[0],this._api[1]+"/batch"]:this._api+"/batch",{method:"delete",data:this._selection.selected.map(t=>t[this._pk])}))&&(this._toastService.show(this._i18nService.translate("shared.notification.success")),this.refresh({action:"delete"}))})}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(W.a),a.Ob(s.a),a.Ob(d.a),a.Ob(m.a))},t.\u0275cmp=a.Ib({type:t,selectors:[["crud-template"]],viewQuery:function(t,e){if(1&t&&a.Oc(mt,!0),2&t){let t;a.tc(t=a.cc())&&(e._filter=t.first)}},hostAttrs:[1,"crud-template"],inputs:{pk:"pk",api:"api",defination:"defination",fixed:"fixed",pageable:"pageable",selectable:"selectable",editable:"editable",addable:"addable",deletable:"deletable",rowClass:["row-class","rowClass"],toolbarTemplate:["toolbar-template","toolbarTemplate"],toolbarButtonsTemplate:["toolbar-buttons-template","toolbarButtonsTemplate"],toolbarIconsTemplate:["toolbar-icons-template","toolbarIconsTemplate"],toolbarSelectionTemplate:["toolbar-selection-template","toolbarSelectionTemplate"],rowOperationTemplate:["row-operation-template","rowOperationTemplate"],rowExpandingTemplate:["row-expanding-template","rowExpandingTemplate"],convertor:"convertor",error:"error",query:"query"},outputs:{refreshEvent:"refresh"},decls:20,vars:12,consts:[["hasBackdrop","true"],["mode","over","position","end","autoFocus","false"],["$sidenav",""],[3,"fields","changed"],["$filter",""],[3,"loading"],[1,"row-auto"],["class","app-background-primary-lighter",4,"ngIf","ngIfElse"],["$toolbar",""],[1,"row-fill"],["mat-table","","matSort","",3,"multiTemplateDataRows","dataSource","matSortChange"],[3,"matColumnDef","ngSwitch","sticky","stickyEnd",4,"ngFor","ngForOf"],["matColumnDef","@expanding"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["class","mat-row",3,"hidden",4,"matNoDataRow"],["class","row-auto",4,"ngIf"],[1,"app-background-primary-lighter"],[1,"spacer","app-foreground-primary"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-icon-button","",3,"matTooltip","click"],[1,"app-background-card"],[4,"ngIf","ngIfElse"],["$buttons",""],["mat-icon-button","",3,"matTooltip","matMenuTriggerFor",4,"ngIf"],[3,"ngTemplateOutlet"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click"],[1,"spacer"],["mat-icon-button","",3,"matTooltip","matMenuTriggerFor"],["$columns",""],[3,"columns"],[3,"matColumnDef","ngSwitch","sticky","stickyEnd"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-header-cell","","style","width: 22px; padding-right: 24px;",4,"matHeaderCellDef"],["mat-cell","","style","padding-right: 24px;",4,"matCellDef"],["mat-header-cell","",2,"width","22px","padding-right","24px"],[3,"model","data",4,"ngIf"],[3,"model","data"],["mat-cell","",2,"padding-right","24px"],["mat-header-cell","","style","width: 40px; padding-right: 16px;",4,"matHeaderCellDef"],["mat-cell","","style","padding-right: 16px; text-align: right;",4,"matCellDef"],["mat-header-cell","",2,"width","40px","padding-right","16px"],["mat-cell","",2,"padding-right","16px","text-align","right"],["mat-header-cell","","mat-sort-header","",3,"ngStyle","disabled",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",3,"ngStyle","disabled"],["mat-cell","",3,"ngStyle"],["$text",""],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["mat-row","","class","expanding",4,"matRowDef","matRowDefColumns"],["mat-row","",1,"expanding"],[1,"mat-row",3,"hidden"],[1,"mat-cell","no-data"],[3,"length","pageIndex","pageSize","page"]],template:function(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-sidenav-container",0),a.Ub(1,"mat-sidenav",1,2),a.Ub(3,"crud-template-filter",3,4),a.bc("changed",function(n){return a.wc(t),a.uc(2).toggle(),e.refresh(n)}),a.Tb(),a.Tb(),a.Ub(5,"mat-sidenav-content",5),a.Ub(6,"div",6),a.Fc(7,ht,6,8,"mat-toolbar",7),a.Fc(8,xt,8,5,"ng-template",null,8,a.Gc),a.Tb(),a.Ub(10,"div",9),a.Ub(11,"table",10),a.bc("matSortChange",function(t){return e.refresh(t)}),a.Fc(12,Xt,4,6,"ng-container",11),a.Sb(13,12),a.Fc(14,Qt,2,6,"td",13),a.Rb(),a.Fc(15,Lt,1,0,"tr",14),a.Fc(16,Yt,1,1,"tr",15),a.Fc(17,te,2,2,"ng-container",16),a.Fc(18,ee,4,5,"tr",17),a.Tb(),a.Tb(),a.Fc(19,ne,3,3,"div",18),a.Tb(),a.Tb()}if(2&t){const t=a.uc(9);a.Cb(3),a.lc("fields",e.filters),a.Cb(2),a.lc("loading",e.loading),a.Cb(2),a.lc("ngIf",e.selection.hasValue())("ngIfElse",t),a.Cb(4),a.lc("multiTemplateDataRows",e.rowExpandingTemplate)("dataSource",e.rows),a.Cb(1),a.lc("ngForOf",e.columns),a.Cb(3),a.lc("matHeaderRowDef",null==e.columns?null:e.columns.display)("matHeaderRowDefSticky",!0),a.Cb(1),a.lc("matRowDefColumns",null==e.columns?null:e.columns.display),a.Cb(1),a.lc("ngIf",e.rowExpandingTemplate),a.Cb(2),a.lc("ngIf",e.pageable)}},directives:[tt.b,tt.a,Z,tt.c,et.a,f.n,nt.k,it.a,f.m,nt.c,nt.b,nt.g,nt.j,nt.h,at.a,f.s,b.a,ot.c,ct.a,lt.a,rt.e,rt.a,c.b,f.p,f.q,f.r,nt.e,nt.d,st.a,nt.a,it.b,f.o,nt.f,nt.i,f.l,dt.b],pipes:[_.d,f.v],styles:[".mat-sidenav-container[_ngcontent-%COMP%]{height:100%}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav[_ngcontent-%COMP%]{padding:24px;width:280px}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] .row-auto[_ngcontent-%COMP%]{flex:0 0 auto}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] .row-auto[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] + .mat-divider[_ngcontent-%COMP%]{margin-top:-1px}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] .row-auto[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] button:first-child{margin-left:-8px}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] .row-auto[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] .row-auto[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{margin-left:8px}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] .row-auto[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1 1 auto}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%]{width:100%}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-right:56px;white-space:nowrap}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.no-data[_ngcontent-%COMP%], .mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.no-data[_ngcontent-%COMP%]{position:absolute;width:100%;height:48px;padding:0;text-align:center;line-height:48px}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%] tr.expanding[_ngcontent-%COMP%]{height:auto}.mat-sidenav-container[_ngcontent-%COMP%] .mat-sidenav-content[_ngcontent-%COMP%] > .row-fill[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%] tr.expanding[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0;border:none}"]}),t})()}}]);