-
Notifications
You must be signed in to change notification settings - Fork 0
/
600.3f82c3ba9a4a788c.js
1 lines (1 loc) · 4.98 KB
/
600.3f82c3ba9a4a788c.js
1
"use strict";(self.webpackChunkemporium=self.webpackChunkemporium||[]).push([[600],{6600:(A,m,o)=>{o.r(m),o.d(m,{SupportModule:()=>O,routes:()=>f});var u=o(6019),c=o(697),s=o(9165),p=o(8265),l=o(3327),t=o(3668),g=o(5304),T=o(888),Z=o(515),x=o(5694),y=o(86),h=o(7444),C=o(9112),I=o(8583);function S(i,r){if(1&i){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"div",9),t._uU(2),t.qZA(),t.TgZ(3,"div",9),t._uU(4),t.ALo(5,"filterById"),t.qZA(),t.TgZ(6,"div",9),t._uU(7),t.qZA(),t.TgZ(8,"div",9),t._uU(9),t.qZA(),t.TgZ(10,"div",9),t._uU(11),t.qZA(),t.TgZ(12,"div",9),t._uU(13),t.ALo(14,"filterById"),t.qZA(),t.TgZ(15,"div",9),t._uU(16),t.ALo(17,"filterById"),t.qZA(),t.TgZ(18,"div",9),t._uU(19),t.ALo(20,"date"),t.qZA(),t.TgZ(21,"div",9),t.TgZ(22,"div",10),t.TgZ(23,"button",11),t.TgZ(24,"mat-icon"),t._uU(25,"reply_all"),t.qZA(),t.qZA(),t.TgZ(26,"button",12),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw().remove(a)}),t.TgZ(27,"mat-icon"),t._uU(28,"delete"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=r.$implicit,n=t.oxw();let d,a,v;t.xp6(2),t.Oqu(e.code),t.xp6(2),t.Oqu(null==(d=t.xi3(5,8,n.spportCategories,e.supportCategoryId))?null:d.name),t.xp6(3),t.Oqu(e.issue),t.xp6(2),t.hij("Order ",e.order,""),t.xp6(2),t.Oqu(e.customer),t.xp6(2),t.Oqu(null==(a=t.xi3(14,11,n.stores,e.storeId))?null:a.name),t.xp6(3),t.Oqu(null==(v=t.xi3(17,14,n.statuses,e.statusId))?null:v.name),t.xp6(3),t.Oqu(t.xi3(20,17,e.date,"dd MMMM, yyyy 'at' HH:mm"))}}function q(i,r){if(1&i){const e=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"div",14),t.TgZ(2,"mat-card",15),t.TgZ(3,"pagination-controls",16),t.NdJ("pageChange",function(d){return t.CHM(e),t.oxw().onPageChanged(d)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}const U=function(i,r){return{itemsPerPage:i,currentPage:r}},f=[{path:"",component:(()=>{class i{constructor(e){this.dialog=e,this.tickets=[{id:1,statusId:1,code:"#000625",supportCategoryId:1,issue:"lorem ipsum",order:"#1556",customer:"Andy Warhol",storeId:1,date:new Date(2020,1,15,10,45)},{id:2,statusId:2,code:"#002350",supportCategoryId:2,issue:"lorem ipsum",order:"#5214",customer:"Luisa Styles",storeId:2,date:new Date(2020,2,8,22,12)},{id:3,statusId:3,code:"#007852",supportCategoryId:3,issue:"lorem ipsum",order:"#4285",customer:"Michael Blair",storeId:2,date:new Date(2020,3,29,14,30)},{id:4,statusId:4,code:"#009621",supportCategoryId:4,issue:"lorem ipsum",order:"#3658",customer:"Julia Aniston",storeId:1,date:new Date(2020,4,18,8,20)}],this.statuses=[{id:1,name:"In Progress"},{id:2,name:"Pending"},{id:3,name:"Solved"},{id:4,name:"Closed"}],this.spportCategories=[{id:1,name:"Pre-Sale Question"},{id:2,name:"Order Question"},{id:3,name:"Shipping"},{id:4,name:"Product Availability"}],this.stores=[{id:1,name:"Store 1"},{id:2,name:"Store 2"}],this.count=6}ngOnInit(){}onPageChanged(e){this.page=e,window.scrollTo(0,0)}remove(e){this.dialog.open(l.$,{maxWidth:"400px",data:{title:"Confirm Action",message:"Are you sure you want remove this ticket?"}}).afterClosed().subscribe(d=>{if(d){const a=this.tickets.indexOf(e);-1!==a&&this.tickets.splice(a,1)}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(g.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-support"]],decls:28,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"],["class","mat-row",4,"ngFor","ngForOf"],["fxLayout","row wrap",4,"ngIf"],[1,"mat-row"],[1,"mat-cell"],[1,"p-1","actions"],["mat-mini-fab","","color","primary","matTooltip","Reply"],["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(e,n){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"div",2),t.TgZ(3,"h2"),t._uU(4,"Support Tickets"),t.qZA(),t.qZA(),t._UZ(5,"mat-divider"),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"div",5),t._uU(9,"Ticket"),t.qZA(),t.TgZ(10,"div",5),t._uU(11,"Category"),t.qZA(),t.TgZ(12,"div",5),t._uU(13,"Issue"),t.qZA(),t.TgZ(14,"div",5),t._uU(15,"Item"),t.qZA(),t.TgZ(16,"div",5),t._uU(17,"Customer"),t.qZA(),t.TgZ(18,"div",5),t._uU(19,"Store"),t.qZA(),t.TgZ(20,"div",5),t._uU(21,"Status"),t.qZA(),t.TgZ(22,"div",5),t._uU(23,"Date"),t.qZA(),t._UZ(24,"div",5),t.qZA(),t.YNc(25,S,29,20,"div",6),t.ALo(26,"paginate"),t.qZA(),t.qZA(),t.YNc(27,q,4,0,"div",7),t.qZA()),2&e&&(t.xp6(25),t.Q6J("ngForOf",t.xi3(26,2,n.tickets,t.WLB(5,U,n.count,n.page))),t.xp6(2),t.Q6J("ngIf",n.tickets.length>0))},directives:[T.a8,Z.xw,Z.Wh,x.d,u.sg,u.O5,y.lW,h.gM,C.Hw,Z.yH,p.LS],pipes:[p._s,I.H,u.uU],styles:[""]}),i})(),pathMatch:"full"}];let O=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[u.ez,c.Bz.forChild(f),s.m,p.JX]]}),i})()},8583:(A,m,o)=>{o.d(m,{H:()=>c});var u=o(3668);let c=(()=>{class s{transform(l,t){return l.filter(g=>g.id==t)[0]}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275pipe=u.Yjl({name:"filterById",type:s,pure:!0}),s})()}}]);