1import{a as G}from"./chunk-T6YTMDDL.js";import{a as rt}from"./chunk-PB5WUCVV.js";import{a as pt,b as at}from"./chunk-74PCWLEQ.js";import{a as lt}from"./chunk-UD2BF3NA.js";import{a as Me}from"./chunk-B2KJMA7O.js";import{b as Ve}from"./chunk-CWBFAHQ5.js";import{a as Se,b as Ee,c as De,d as be,e as Pe,f as Ie,g as Fe}from"./chunk-7WVDRYK5.js";import{a as it,c as nt,d as ot}from"./chunk-ANE7BSD4.js";import{a as Ge,b as H}from"./chunk-X6FAC54J.js";import{a as Je,c as Qe}from"./chunk-PQRIE6FZ.js";import{b as tt}from"./chunk-LVWD2MKK.js";import{a as Ye,b as Ke,c as Xe}from"./chunk-65NVAMPN.js";import{a as ke,f as Ae,h as Re,i as qe,k as We,l as je,m as He,n as $e,o as Ze,p as et}from"./chunk-6HTTWNHT.js";import"./chunk-WXB3G5MY.js";import"./chunk-PB3KSLL6.js";import"./chunk-J5D6PPHN.js";import"./chunk-NRSRLTFE.js";import{d as Be,e as Oe,f as Ue}from"./chunk-NDK6FW2M.js";import{c as $}from"./chunk-UMQ7SWRX.js";import"./chunk-H5J65G2A.js";import{b as ve,d as we}from"./chunk-6O74MW4H.js";import"./chunk-IP7YQ2YT.js";import{J as Ne,M as Le,d as fe,f as S,h as _e,i as ze,k as Ce,m as y,o as xe,p as he,r as ge,s as ye,u as j,v as Te}from"./chunk-KLPQZDSS.js";import{d as A,e as R,g as q,h as W}from"./chunk-JN5B6N7Z.js";import"./chunk-Z25CI2BE.js";import"./chunk-JPLRGMCD.js";import{Cb as O,Eb as U,P as M,R as B,k as ce,n as k,o as ue}from"./chunk-6UZZTK7E.js";import"./chunk-HFZLJHYR.js";import{Bc as re,Cc as pe,Dc as ae,Hb as T,Hc as le,Jb as v,Kb as Q,Lb as ie,Mb as b,Mc as se,Nb as P,Ob as m,Pb as n,Qb as o,Rb as c,Rc as a,Sc as l,Tc as Y,Uc as V,Vb as ne,Wb as oe,Xa as ee,Ya as te,Yb as h,_a as i,_c as me,cc as z,cd as de,dd as K,fc as f,ga as E,la as C,ma as x,pc as L,qb as F,s as g,ua as I,ub as N,uc as
1s,vc as w,wb as D,wc as _}from"./chunk-S7RN7KF6.js";import{a as X,b as Z}from"./chunk-U4XWPFUW.js";function Ct(p,e){p&1&&c(0,"app-loading")}function xt(p,e){if(p&1){let t=h();n(0,"div",8)(1,"label",31),c(2,"nz-icon",32),s(3),a(4,"translate"),o(),n(5,"input",33),z("change",function(d){C(t);let u=f(2);return x(u.onFileSelected(d))}),o()()}p&2&&(i(3),_(" ",l(4,1,"Upload File")," "))}function ht(p,e){if(p&1){let t=h();n(0,"li",35),c(1,"img",36),n(2,"button",37),z("click",function(){let d=C(t).$index,u=f(3);return x(u.removeFile(d))}),c(3,"nz-icon",38),o()()}if(p&2){let t=e.$implicit,r=f(3);i(),m("src",r.showFilePreview(t),te)("alt",t.name)}}function gt(p,e){if(p&1&&(n(0,"div",8)(1,"ul",34),b(2,ht,4,2,"li",35,Q),o()()),p&2){let t=f(2);i(2),P(t.uploadedFiles())}}function yt(p,e){if(p&1&&c(0,"nz-option",30),p&2){let t=e.$implicit;m("nzLabel",t.serialNumber+" | "+t.client)("nzValue",t.id.toString())}}function Tt(p,e){if(p&1){let t=h();n(0,"button",42),z("click",function(){C(t);let d=f(3);return x(d.clientsList=[])}),s(1),a(2,"translate"),o()}p&2&&(i(),_(" ",l(2,1,"Deselect All")," "))}function vt(p,e){if(p&1){let t=h();n(0,"button",43),z("click",function(){C(t);let d=f(3);return x(d.selectAllUsers())}),s(1),a(2,"translate"),o()}p&2&&(i(),_(" ",l(2,1,"Select All")," "))}function wt(p,e){if(p&1&&(n(0,"div",39),T(1,Tt,3,3,"button",40)(2,vt,3,3,"button",41),o()),p&2){let t=f(2);i(),v(t.allUsers().length===t.clientsList.length?1:2)}}function St(p,e){if(p&1){let t=h();n(0,"div",5)(1,"label",6)(2,"span",7),s(3),a(4,"translate"),o()(),T(5,xt,6,3,"div",8)(6,gt,4,0,"div",8),o(),n(7,"form",9)(8,"nz-form-item")(9,"nz-form-label",10),s(10),a(11,"translate"),n(12,"span",11),s(13,"*"),o()(),n(14,"nz-form-control",12),c(15,"nz-date-picker",13),o()(),n(16,"nz-form-item")(17,"nz-form-label",10),s(18),a(19,"translate"),n(20,"span",11),s(21,"*"),o()(),n(22,"nz-form-control",12),c(23,"nz-date-picker",14),o()(),n(24,"nz-form-item")(25,"nz-form-label",10),s(26),a(27,"translate"),n(28,"span",11),s(29,"*"),o()(),n(30,"nz-form-control",12)(31,"nz-select",15),c(32,"nz-option",16),a(33,"translate"),c(34,"nz-option",17),a(35,"translate"),c(36,"nz-option",18),a(37,"translate"),o()()(),n(38,"nz-form-item")(39,"nz-form-label",10),s(40),a(41,"translate"),n(42,"span",11),s(43,"*"),o()(),n(44,"nz-form-control",12),c(45,"nz-switch",19),a(46,"translate"),a(47,"translate"),o()(),n(48,"nz-form-item")(49,"nz-form-label",10),s(50),a(51,"translate"),c(52,"img",20),o(),n(53,"nz-form-control",12),c(54,"input",21),o()(),n(55,"nz-form-item")(56,"nz-form-label",10),s(57),a(58,"translate"),c(59,"img",20),n(60,"span",11),s(61,"*"),o()(),n(62,"nz-form-control",12)(63,"quill-editor",22),z("onEditorCreated",function(d){C(t);let u=f();return x(u.onEditorCreatedIt(d))})("onEditorChanged",function(d){C(t);let u=f();return x(u.getEditorValueIt(d))}),o(),c(64,"textarea",23),o()(),c(65,"hr",24),n(66,"nz-form-item")(67,"nz-form-label",10),s(68),a(69,"translate"),c(70,"img",25),o(),n(71,"nz-form-control",12),c(72,"input",26),o()(),n(73,"nz-form-item")(74,"nz-form-label",10),s(75),a(76,"translate"),c(77,"img",25),n(78,"span",11),s(79,"*"),o()(),n(80,"nz-form-control",12)(81,"quill-editor",22),z("onEditorCreated",function(d){C(t);let u=f();return x(u.onEditorCreatedEn(d))})("onEditorChanged",function(d){C(t);let u=f();return x(u.getEditorValueEn(d))}),o(),c(82,"textarea",27),o()()(),n(83,"div",28)(84,"label",6)(85,"span",7),s(86),a(87,"translate"),o()(),n(88,"nz-select",29),ae("ngModelChange",function(d){C(t);let u=f();return pe(u.clientsList,d)||(u.clientsList=d),x(d)}),z("ngModelChange",function(d){C(t);let u=f();return x(u.onClientsChange(d))}),b(89,yt,1,2,"nz-option",30,Q),D(91,wt,3,1,"ng-template",null,0,V),o()()}if(p&2){let t=L(92),r=f();i(3),_(" ",l(4,47,"Cover"),": "),i(2),v(r.uploadedFiles().length===0?5:6),i(2),m("formGroup",r.form),i(2),m("nzSpan",5),i(),_(" ",l(11,49,"Start date")," "),i(4),m("nzSpan",19)("nzErrorTip",r.errorFeedback("startDate")),i(),m("nzInputReadOnly",!0),i(2),m("nzSpan",5),i(),_(" ",l(19,51,"End date")," "),i(4),m("nzSpan",19)("nzErrorTip",r.errorFeedback("endDate")),i(),m("nzInputReadOnly",!0),i(2),m("nzSpan",5),i(),_(" ",l(27,53,"For which portal")," "),i(4),m("nzSpan",19)("nzErrorTip",r.errorFeedback("showTo")),i(2),m("nzLabel",l(33,55,"All")),i(2),m("nzLabel",l(35,57,"$")),i(2),m("nzLabel",l(37,59,"\u20AC")),i(3),m("nzSpan",5),i(),_(" ",l(41,61,"Lump Sum")," "),i(4),m("nzSpan",19)("nzErrorTip",r.errorFeedback("isLumpSum")),i(),m("nzCheckedChildren",l(46,63,"Yes"))("nzUnCheckedChildren",l(47,65,"No")),i(4),m("nzSpan",5),i(),_(" ",l(51,67,"Title")," "),i(3),m("nzSpan",19)("nzErrorTip",r.errorFeedback("titleIt")),i(3),m("nzSpan",5),i(),_(" ",l(58,69,"Text")," "),i(5),m("nzSpan",19)("nzErrorTip",r.errorFeedback("textIt")),i(),m("modules",r.modules),i(4),m("nzSpan",5),i(),_(" ",l(69,71,"Title")," "),i(3),m("nzSpan",19)("nzErrorTip",r.errorFeedback("titleEn")),i(3),m("nzSpan",5),i(),_(" ",l(76,73,"Text")," "),i(5),m("nzSpan",19)("nzErrorTip",r.errorFeedback("textEn")),i(),m("modules",r.modules),i(5),_(" ",l(87,75,"Client list"),": "),i(2),re("ngModel",r.clientsList),m("nzDropdownRender",t),i(),P(r.allUsers())}}function Et(p,e){p&1&&(s(0),a(1,"translate")),p&2&&_(" ",l(1,1,"Update")," ")}function Dt(p,e){p&1&&(s(0),a(1,"translate")),p&2&&_(" ",l(1,1,"Save")," ")}ue(lt);var J=class p extends tt{constructor(){super()}nodePopup=E(G);nodeUsers=E(Me);imgFolder="/popups/";id=K(null);closeDrawer=de();position=K(0);popup={titleIt:"",order:this.position(),isLumpSum:!1,titleEn:"",textIt:"",textEn:"",clientIdList:"[]",startDate:Date.now(),endDate:Date.now(),showTo:"all"};allUsers=I([]);clientsList=[];modules={toolbar:[["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{header:[1,2,3,!1]}],["link","clean"]],clipboard:{matchVisual:!1}};ngOnInit(){this.popup.order=this.position(),this.acceptedFormats=["image/jpeg"],this.id()!==null&&this.setPreviousUploadedFiles(this.imgFolder,this.id()+".jpg"),this.formControl()}async getPopup(){if(this.id())try{let e=await g(this.nodePopup.getPopup(this.id()));this.popup=e,this.popup.clientIdList&&(this.clientsList=JSON.parse(this.popup.clientIdList))}catch(e){console.error("Error fetching popup:",e)}}async getAllUsers(){try{let e=await g(this.nodeUsers.getUsers());this.allUsers.set(e)}catch(e){console.error("Error fetching all users:",e)}}async formControl(){await this.getPopup(),await this.getAllUsers(),this.form=new Ce({titleIt:new y(this.popup.titleIt,[S.maxLength(255)]),titleEn:new y(this.popup.titleEn,[S.maxLength(255)]),textIt:new y(this.popup.textIt,[S.required]),textEn:new y(this.popup.textEn,[S.required]),isLumpSum:new y(this.popup.isLumpSum),startDate:new y(this.dateService.convertTimestampToTypeDate(this.popup.startDate),[S.required]),showTo:new y(this.popup.showTo,[S.required]),endDate:new y(this.dateService.convertTimestampToTypeDate(this.popup.endDate),[S.required])}),this.loading.set(!1)}
1async submit(){if(this.form.invalid){this.highlightsErrors();return}this.loading.set(!0);let e=this.form.value;e.startDate=this.dateService.convertTypeDateToTimestampMs(e.startDate),e.endDate=this.dateService.convertTypeDateToTimestampMsEndOfDay(e.endDate);let t={titleIt:e.titleIt,titleEn:e.titleEn,textIt:e.textIt,textEn:e.textEn,isLumpSum:e.isLumpSum,startDate:e.startDate,endDate:e.endDate,order:this.popup.order,showTo:e.showTo,clientIdList:JSON.stringify(this.clientsList)},r;this.id()?r=await this.updateValue(t):r=await this.createValue(t),r&&(this.uploadedFiles().length>0?(this.fileExtension=".jpg",await this.handleUpload(this.imgFolder,this.id())):await this.deleteFileNameList(this.imgFolder,[this.id()+".jpg"]),this.closeDrawer.emit(r)),this.loading.set(!1)}async createValue(e){try{let t=await g(this.nodePopup.createPopup(e));return this.message.success(this.translate.instant("Popup created successfully")),t}catch(t){return console.error("Error creating popup:",t),this.message.error(this.translate.instant("Error creating popup")),null}}async updateValue(e){try{let t=await g(this.nodePopup.updatePopup(this.id(),e));return this.message.success(this.translate.instant("Popup updated successfully")),t}catch(t){return console.error("Error updating popup:",t),this.message.error(this.translate.instant("Error updating popup")),null}}close(){this.closeDrawer.emit(null)}onEditorCreatedIt(e){e.root.innerHTML=this.popup.textIt}getEditorValueIt(e){e?.event&&e.event!=="text-change"||(this.form.get("textIt")?.setValue(e?.html??e?.editor?.root?.innerHTML??""),this.form.get("textIt")?.markAsDirty(),this.form.get("textIt")?.updateValueAndValidity({onlySelf:!0,emitEvent:!0}))}onEditorCreatedEn(e){e.root.innerHTML=this.popup.textEn}getEditorValueEn(e){e?.event&&e.event!=="text-change"||(this.form.get("textEn")?.setValue(e?.html??e?.editor?.root?.innerHTML??""),this.form.get("textEn")?.markAsDirty(),this.form.get("textEn")?.updateValueAndValidity({onlySelf:!0,emitEvent:!0}))}selectAllUsers(){let e=this.allUsers().map(t=>t.id.toString());this.clientsList=e}onClientsChange(e){}static \u0275fac=function(t){return new(t||p)};static \u0275cmp=F({type:p,selectors:[["app-popup-form"]],inputs:{id:[1,"id"],position:[1,"position"]},outputs:{closeDrawer:"closeDrawer"},features:[N],decls:10,vars:5,consts:[["renderTemplate",""],[1,"drawer-form-container"],[1,"drawer-footer"],["nz-button","","nzType","default","nzSize","large",3,"click"],["nz-button","","nzType","primary","nzSize","large",3,"click"],["nz-row","",1,"mb-5"],["nz-col","","nzSpan","5",1,"pr-2","text-end"],[1,"flex","justify-end","items-center","w-full","h-full"],["nz-col","","nzSpan","19"],["nz-form","",3,"formGroup"],[3,"nzSpan"],[1,"text-red-500"],[3,"nzSpan","nzErrorTip"],["nzFormat","dd/MM/yyyy","formControlName","startDate",3,"nzInputReadOnly"],["nzFormat","dd/MM/yyyy","formControlName","endDate",3,"nzInputReadOnly"],["formControlName","showTo","nzPlaceHolder","Select portal"],["nzValue","all",3,"nzLabel"],["nzValue","us",3,"nzLabel"],["nzValue","eu",3,"nzLabel"],["formControlName","isLumpSum","nzSize","default",3,"nzCheckedChildren","nzUnCheckedChildren"],["src","assets/imgs/it.png","alt","it",1,"w-5","mx-1"],["nz-input","","formControlName","titleIt",1,"w-full!"],["rows","3",1,"w-full",3,"onEditorCreated","onEditorChanged","modules"],["nz-input","","formControlName","textIt",1,"hidden"],[1,"my-4"],["src","assets/imgs/en.png","alt","en",1,"w-5","mx-1"],["nz-input","","formControlName","titleEn"],["nz-input","","formControlName","textEn",1,"hidden"],["nz-row",""],["nz-col","","nzSpan","19","nzMode","tags",1,"w-100","my-select",3,"ngModelChange","ngModel","nzDropdownRender"],[3,"nzLabel","nzValue"],["for","file-upload",1,"custom-file-upload"],["nzType","upload","nzTheme","outline"],["id","file-upload","type","file","ngModel","","nzSize","large",3,"change"],[1,"w-full"],[1,"flex","justify-between","items-center","w-full","border","border-grey-600","p-2"],[1,"max-w-xs","mb-2",3,"src","alt"],["nz-button","","nzType","link","nzDanger","",3,"click"],["nzType","delete","nzTheme","outline"],[1,"w-100","mt-3"],["nz-button","","nzType","default",1,"w-100"],["nz-button","","nzType","primary",1,"w-100"],["nz-button","","nzType","default",1,"w-100",3,"click"],["nz-button","","nzType","primary",1,"w-100",3,"click"]],template:function(t,r){t&1&&(n(0,"section",1),T(1,Ct,1,0,"app-loading")(2,St,93,77),o(),n(3,"div",2)(4,"button",3),z("click",function(){return r.close()}),s(5),a(6,"translate"),o(),n(7,"button",4),z("click",function(){return r.submit()}),T(8,Et,2,3)(9,Dt,2,3),o()()),t&2&&(i(),v(r.loading()?1:2),i(4),_(" ",l(6,3,"Cancel")," "),i(3),v(r.id()?8:9))},dependencies:[B,Ue,Be,Oe,Qe,Je,W,q,A,R,j,he,fe,_e,ze,xe,k,Fe,Ee,Se,be,De,Ie,Pe,Le,Ne,Te,ge,ye,U,O,Ve,at,pt,$,H,Ge,M],styles:["input[type=file][_ngcontent-%COMP%]{display:none}.custom-file-upload[_ngcontent-%COMP%]{background-color:var(--primary);color:#fff;display:inline-block;padding:6px 12px;cursor:pointer}"]})};var bt=()=>({y:"calc(100dvh - 320px)"});function Pt(p,e){p&1&&c(0,"app-loading")}function It(p,e){p&1&&c(0,"nz-icon",25)}function Ft(p,e){if(p&1){let t=h();n(0,"tr",15)(1,"td"),c(2,"nz-icon",16),o(),n(3,"td"),s(4),o(),n(5,"td"),s(6),o(),n(7,"td",17),c(8,"div",18),o(),n(9,"td",19),s(10),a(11,"date"),o(),n(12,"td",19),s(13),a(14,"date"),o(),n(15,"td",19),s(16),a(17,"translate"),a(18,"translate"),a(19,"translate"),o(),n(20,"td")(21,"div",20)(22,"button",21),a(23,"translate"),z("click",function(){let d=C(t).$implicit,u=f(2);return x(u.openDrawer(d.id))}),c(24,"nz-icon",22),o(),n(25,"button",23),a(26,"translate"),a(27,"translate"),a(28,"translate"),a(29,"translate"),z("nzOnConfirm",function(){let d=C(t).$implicit,u=f(2);return x(u.delete(d.id))}),c(30,"nz-icon",24),o(),D(31,It,1,0,"ng-template",null,1,V),o()()()}if(p&2){let t=e.$implicit,r=f(2);i(4),w(t.order),i(2),w(t.titleIt),i(2),m("innerHTML",r.getSanitizedHtml(t.textIt),ee),i(2),_(" ",Y(11,11,t.startDate,"dd/MM/yyyy")," "),i(3),_(" ",Y(14,14,t.endDate,"dd/MM/yyyy")," "),i(3),_(" ",t.showTo==="all"?l(17,17,"All"):t.showTo==="us"?l(18,19,"$"):l(19,21,"\u20AC")," "),i(6),m("nzTooltipTitle",l(23,23,"Edit")),i(3),m("nzTooltipTitle",l(26,25,"Delete"))("nzPopconfirmTitle",l(27,27,"Do you want to proceed?"))("nzOkText",l(28,29,"confirm"))("nzCancelText",l(29,31,"cancel"))}}function Nt(p,e){if(p&1){let t=h();n(0,"section")(1,"nz-table",7,0)(3,"thead")(4,"tr"),c(5,"th",8),n(6,"th",9),s(7),a(8,"translate"),o(),n(9,"th")(10,"div",10),s(11),a(12,"translate"),c(13,"img",11),o()(),n(14,"th")(15,"div",10),s(16),a(17,"translate"),c(18,"img",11),o()(),n(19,"th",12),s(20),a(21,"translate"),o(),n(22,"th",12),s(23),a(24,"translate"),o(),n(25,"th",12),s(26),a(27,"translate"),o(),n(28,"th",13),s(29),a(30,"translate"),o()()(),n(31,"tbody",14),z("cdkDropListDropped",function(d){C(t);let u=f();return x(u.drop(d))}),b(32,Ft,33,33,"tr",15,ie),o()()()}if(p&2){let t=L(2),r=f();i(),m("nzData",r.popupsList())("nzFrontPagination",!1)("nzBordered",!0)("nzScroll",se(26,bt))("nzLoading",r.loading()),i(6),w(l(8,12,"Order")),i(4),_(" ",l(12,14,"Title")," "),i(5),_(" ",l(17,16,"Text")," "),i(4),w(l(21,18,"Start date")),i(3),w(l(24,20,"End date")),i(3),w(l(27,22,"For which portal")),i(3),w(l(30,24,"Action")),i(3),P(t.data)}}function Lt(p,e){if(p&1){let t=h();n(0,"app-popup-form",27),z("closeDrawer",function(d){C(t);let u=f(2);return x(u.closeDrawer(d,u.getPopups.bind(u)))}),o()}if(p&2){let t=f(2);m("id",t.idSelected())("position",t.popupListLength())}}function Vt(p,e){if(p&1&&(ne(0),T(1,Lt,1,2,"app-popup-form",26),oe()),p&2){let t=f();i(),v(t.isDrawerOpen()?1:-1)}}var st=class p extends ke{nodePopups=E(G);constructor(){super()}popupsList=I([]);popupListLength=me(()=>this.popupsList().length);ngOnInit(){this.getPopups()}async getPopups(){this.loading.set(!0);try{let e=await g(this.nodePopups.getPopups());this.popupsList.set(e)}catch(e){console.error("Error fetching popups:",e)}this.loading.set(!1)}returnDate(e){return e?new Date(e):null}async delete(e){try{await g(this.nodePopups.deletePopup(e)),this.getPopups()}catch(t){console.error("Error deleting popup:",t)}}drop(e){this.loading.set(!0),it(this.popupsList(),e.previousIndex,e.currentIndex),this.popupsList.update(t=>t.map((r,d)=>Z(X({},r),{order:d+1}))),this.updateOrderPopups()}async updateOrderPopups(){try{let e=await g(this.nodePopups.updateOrderPopups(this.popupsList()));this.popupsList.set(e),this.loading.set(!1)}catch(e){console.error("Error updating popup order:",e)}}static \u0275fac=function(t){return new(t||p)};static \u0275cmp=F({type:p,selectors:[["app-popups"]],features:[N],decls:12,vars:13,consts:[["basicTable",""],["iconTpl",""],[1,"text-end","mb-5"],["nz-button","","nzType","primary","nzSize","large",3,"click"],["nzType","plus"],["nzPlacement","right",3,"nzOnClose","nzClosable","nzVisible","nzWidth","nzTitle"],[4,"nzDrawerContent"],[3,"nzData","nzFrontPagination","nzBordered","nzScroll","nzLoading"],["nzWidth","50px"],["nzWidth","100px"],[1,"flex"],["src","assets/imgs/it.png","alt","it",1,"w-5","mx-2","object-contain"],["nzWidth","150px"],["nzWidth","200px"],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag",""],["nzType","holder","nzTheme","outline"],[1,"truncate"],[1,"truncate","max-h-[22px]",3,"innerHTML"],[1,"text-center"],[1,"flex","justify-around","h-full"],["nz-button","","nz-tooltip","","nzTooltipPlacement","bottom","nzType","primary","nzSize","large",3,"click","nzTooltipTitle"],["nzType","edit","nzTheme","outline"],["nz-button","","nzTooltipPlacement","bottom","nz-button","","nzType","primary","nzDanger","","nz-tooltip","","nz-popconfirm","","nzSize","large",3,"nzOnConfirm","nzTooltipTitle","nzPopconfirmTitle","nzOkText","nzCancelText"],["nzType","delete","nzTheme","outline"],["nzType","question-circle-o",2,"color","red"],[3,"id","position"],[3,"closeDrawer","id","position"]],template:function(t,r){t&1&&(n(0,"div")(1,"section",2)(2,"button",3),z("click",function(){return r.openDrawer(null)}),c(3,"nz-icon",4),s(4),a(5,"translate"),o()(),T(6,Pt,1,0,"app-loading")(7,Nt,34,27,"section"),o(),n(8,"nz-drawer",5),a(9,"translate"),a(10,"translate"),z("nzOnClose",function(){return r.isDrawerOpen.set(!1)}),D(11,Vt,2,1,"ng-container",6),o()),t&2&&(i(4),_(" ",l(5,7,"Add new")," "),i(2),v(r.loading()||r.windowResizeLoading()?6:7),i(2),m("nzTitle",le(r.idSelected()?l(9,9,"Edit popup"):l(10,11,"New popup")))("nzClosable",!1)("nzVisible",r.isDrawerOpen())("nzWidth",1e3))},dependencies:[rt,ot,nt,$e,We,Ae,Re,He,qe,je,k,j,W,q,A,R,Xe,Ke,Ye,B,U,O,H,we,ve,et,Ze,J,$,ce,M],styles:[".cdk-drag-preview{display:table} .cdk-drag-placeholder{opacity:0}
1"]})};export{st as PopupsComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.