-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path406.dfd8236f9cd64871.js
1 lines (1 loc) · 3.92 KB
/
406.dfd8236f9cd64871.js
1
"use strict";(self.webpackChunkemporium=self.webpackChunkemporium||[]).push([[406],{9406:(Z,c,t)=>{t.r(c),t.d(c,{FollowersModule:()=>M,routes:()=>v});var s=t(6019),p=t(697),l=t(9165),d=t(8265),m=t(3327),e=t(3668),u=t(5304),h=t(888),f=t(515),w=t(5694),A=t(86),x=t(7444),T=t(9112),F=t(8583);function C(a,i){if(1&a){const o=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._UZ(2,"img",11),e.qZA(),e.TgZ(3,"div",12),e._uU(4),e.qZA(),e.TgZ(5,"div",12),e._uU(6),e.ALo(7,"filterById"),e.qZA(),e.TgZ(8,"div",12),e.TgZ(9,"div",13),e.TgZ(10,"button",14),e.NdJ("click",function(){const g=e.CHM(o).$implicit;return e.oxw().remove(g)}),e.TgZ(11,"mat-icon"),e._uU(12,"delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&a){const o=i.$implicit,n=e.oxw();let r;e.xp6(2),e.Q6J("src",o.image,e.LSH),e.xp6(2),e.Oqu(o.name),e.xp6(2),e.Oqu(null==(r=e.xi3(7,3,n.stores,o.storeId))?null:r.name)}}function y(a,i){if(1&a){const o=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"div",16),e.TgZ(2,"mat-card",17),e.TgZ(3,"pagination-controls",18),e.NdJ("pageChange",function(r){return e.CHM(o),e.oxw().onPageChanged(r)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}const I=function(a,i){return{itemsPerPage:a,currentPage:i}},v=[{path:"",component:(()=>{class a{constructor(o){this.dialog=o,this.followers=[{id:1,image:"assets/images/profile/michael.jpg",name:"Michael Blair",storeId:1},{id:2,image:"assets/images/profile/tereza.jpg",name:"Tereza Stiles",storeId:2},{id:3,image:"assets/images/profile/adam.jpg",name:"Adam Sandler",storeId:1},{id:4,image:"assets/images/profile/julia.jpg",name:"Julia Aniston",storeId:2},{id:5,image:"assets/images/profile/bruno.jpg",name:"Bruno Vespa",storeId:2},{id:6,image:"assets/images/profile/ashley.jpg",name:"Ashley Ahlberg",storeId:1},{id:7,image:"assets/images/avatars/avatar-5.png",name:"Michelle Ormond",storeId:1}],this.stores=[{id:1,name:"Store 1"},{id:2,name:"Store 2"}],this.count=6}ngOnInit(){}onPageChanged(o){this.page=o,window.scrollTo(0,0)}remove(o){this.dialog.open(m.$,{maxWidth:"400px",data:{title:"Confirm Action",message:"Are you sure you want remove this follower?"}}).afterClosed().subscribe(r=>{if(r){const g=this.followers.indexOf(o);-1!==g&&this.followers.splice(g,1)}})}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(u.uw))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-followers"]],decls:18,vars:8,consts:[[1,"p-1"],[1,"p-0"],["fxLayout","row wrap","fxLayoutAlign","space-between center",1,"w-100","p-2"],[1,"mat-table","admin-table"],[1,"mat-header-row"],[1,"mat-header-cell","image"],[1,"mat-header-cell"],["class","mat-row",4,"ngFor","ngForOf"],["fxLayout","row wrap",4,"ngIf"],[1,"mat-row"],[1,"mat-cell","image"],["alt","","width","50",3,"src"],[1,"mat-cell"],[1,"p-1","actions"],["mat-mini-fab","","color","warn","matTooltip","Delete",1,"mx-1",3,"click"],["fxLayout","row wrap"],["fxFlex","100"],[1,"p-0","text-center"],["autoHide","true","maxSize","5",1,"product-pagination",3,"pageChange"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card",1),e.TgZ(2,"div",2),e.TgZ(3,"h2"),e._uU(4,"Followers List"),e.qZA(),e.qZA(),e._UZ(5,"mat-divider"),e.TgZ(6,"div",3),e.TgZ(7,"div",4),e.TgZ(8,"div",5),e._uU(9,"Image"),e.qZA(),e.TgZ(10,"div",6),e._uU(11,"Name"),e.qZA(),e.TgZ(12,"div",6),e._uU(13,"Store"),e.qZA(),e._UZ(14,"div",6),e.qZA(),e.YNc(15,C,13,6,"div",7),e.ALo(16,"paginate"),e.qZA(),e.qZA(),e.YNc(17,y,4,0,"div",8),e.qZA()),2&o&&(e.xp6(15),e.Q6J("ngForOf",e.xi3(16,2,n.followers,e.WLB(5,I,n.count,n.page))),e.xp6(2),e.Q6J("ngIf",n.followers.length>0))},directives:[h.a8,f.xw,f.Wh,w.d,s.sg,s.O5,A.lW,x.gM,T.Hw,f.yH,d.LS],pipes:[d._s,F.H],styles:[""]}),a})(),pathMatch:"full"}];let M=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[s.ez,p.Bz.forChild(v),l.m,d.JX]]}),a})()},8583:(Z,c,t)=>{t.d(c,{H:()=>p});var s=t(3668);let p=(()=>{class l{transform(m,e){return m.filter(u=>u.id==e)[0]}}return l.\u0275fac=function(m){return new(m||l)},l.\u0275pipe=s.Yjl({name:"filterById",type:l,pure:!0}),l})()}}]);