-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10.42cba183e90d8e7d0ce6.js
1 lines (1 loc) · 21.1 KB
/
10.42cba183e90d8e7d0ce6.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"1SLH":function(i,e,t){"use strict";t.d(e,"a",function(){return j}),t.d(e,"b",function(){return W});var n=t("fXoL"),s=t("R0Ic"),l=t("ofXK"),c=t("YyRF"),a=t("tyNb"),r=t("Q4Mo");const o=["pMenuItemContent",""];function u(i,e){if(1&i&&n.Kb(0,"span",6),2&i){const i=n.Yb(2);n.fc("ngClass",i.item.icon)}}function b(i,e){if(1&i&&(n.Pb(0,"span",7),n.Cc(1),n.Ob()),2&i){const i=n.Yb(2);n.yb(1),n.Dc(i.item.label)}}function d(i,e){if(1&i&&n.Kb(0,"span",8),2&i){const i=n.Yb(2);n.fc("innerHTML",i.item.label,n.tc)}}const m=function(i){return{"p-disabled":i}};function p(i,e){if(1&i){const i=n.Qb();n.Pb(0,"a",2),n.Wb("click",function(e){n.sc(i);const t=n.Yb();return t.menu.itemClick(e,t.item)}),n.Ac(1,u,1,1,"span",3),n.Ac(2,b,2,1,"span",4),n.Ac(3,d,1,1,"ng-template",null,5,n.Bc),n.Ob()}if(2&i){const i=n.rc(4),e=n.Yb();n.fc("ngClass",n.ic(10,m,e.item.disabled)),n.zb("href",e.item.url||null,n.vc)("tabindex",e.item.disabled?null:"0")("data-automationid",e.item.automationId)("target",e.item.target)("title",e.item.title)("id",e.item.id),n.yb(1),n.fc("ngIf",e.item.icon),n.yb(1),n.fc("ngIf",!1!==e.item.escape)("ngIfElse",i)}}function f(i,e){if(1&i&&n.Kb(0,"span",6),2&i){const i=n.Yb(2);n.fc("ngClass",i.item.icon)}}function g(i,e){if(1&i&&(n.Pb(0,"span",7),n.Cc(1),n.Ob()),2&i){const i=n.Yb(2);n.yb(1),n.Dc(i.item.label)}}function h(i,e){if(1&i&&n.Kb(0,"span",8),2&i){const i=n.Yb(2);n.fc("innerHTML",i.item.label,n.tc)}}const v=function(){return{exact:!1}};function y(i,e){if(1&i){const i=n.Qb();n.Pb(0,"a",9),n.Wb("click",function(e){n.sc(i);const t=n.Yb();return t.menu.itemClick(e,t.item)}),n.Ac(1,f,1,1,"span",3),n.Ac(2,g,2,1,"span",4),n.Ac(3,h,1,1,"ng-template",null,10,n.Bc),n.Ob()}if(2&i){const i=n.rc(4),e=n.Yb();n.fc("routerLink",e.item.routerLink)("queryParams",e.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",e.item.routerLinkActiveOptions||n.hc(19,v))("ngClass",n.ic(20,m,e.item.disabled))("fragment",e.item.fragment)("queryParamsHandling",e.item.queryParamsHandling)("preserveFragment",e.item.preserveFragment)("skipLocationChange",e.item.skipLocationChange)("replaceUrl",e.item.replaceUrl)("state",e.item.state),n.zb("data-automationid",e.item.automationId)("target",e.item.target)("id",e.item.id)("tabindex",e.item.disabled?null:"0")("title",e.item.title),n.yb(1),n.fc("ngIf",e.item.icon),n.yb(1),n.fc("ngIf",!1!==e.item.escape)("ngIfElse",i)}}const k=["container"],K=function(i){return{"p-hidden":i}};function O(i,e){if(1&i&&n.Kb(0,"li",8),2&i){const i=n.Yb().$implicit;n.fc("ngClass",n.ic(1,K,!1===i.visible))}}function S(i,e){if(1&i&&(n.Pb(0,"span"),n.Cc(1),n.Ob()),2&i){const i=n.Yb(2).$implicit;n.yb(1),n.Dc(i.label)}}function I(i,e){if(1&i&&n.Kb(0,"span",12),2&i){const i=n.Yb(2).$implicit;n.fc("innerHTML",i.label,n.tc)}}function C(i,e){if(1&i&&(n.Pb(0,"li",9),n.Ac(1,S,2,1,"span",10),n.Ac(2,I,1,1,"ng-template",null,11,n.Bc),n.Ob()),2&i){const i=n.rc(3),e=n.Yb().$implicit;n.fc("ngClass",n.ic(4,K,!1===e.visible)),n.zb("data-automationid",e.automationId),n.yb(1),n.fc("ngIf",!1!==e.escape)("ngIfElse",i)}}function L(i,e){if(1&i&&n.Kb(0,"li",8),2&i){const i=n.Yb().$implicit,e=n.Yb().$implicit;n.fc("ngClass",n.ic(1,K,!1===i.visible||!1===e.visible))}}function P(i,e){if(1&i&&n.Kb(0,"li",14),2&i){const i=n.Yb().$implicit,e=n.Yb().$implicit;n.Ab(i.styleClass),n.fc("pMenuItemContent",i)("ngClass",n.ic(5,K,!1===i.visible||!1===e.visible))("ngStyle",i.style)}}function A(i,e){if(1&i&&(n.Ac(0,L,1,3,"li",6),n.Ac(1,P,1,7,"li",13)),2&i){const i=e.$implicit;n.fc("ngIf",i.separator),n.yb(1),n.fc("ngIf",!i.separator)}}function w(i,e){if(1&i&&(n.Ac(0,O,1,3,"li",6),n.Ac(1,C,4,6,"li",7),n.Ac(2,A,2,2,"ng-template",5)),2&i){const i=e.$implicit;n.fc("ngIf",i.separator),n.yb(1),n.fc("ngIf",!i.separator),n.yb(1),n.fc("ngForOf",i.items)}}function Y(i,e){if(1&i&&n.Ac(0,w,3,3,"ng-template",5),2&i){const i=n.Yb(2);n.fc("ngForOf",i.model)}}function D(i,e){if(1&i&&n.Kb(0,"li",8),2&i){const i=n.Yb().$implicit;n.fc("ngClass",n.ic(1,K,!1===i.visible))}}function M(i,e){if(1&i&&n.Kb(0,"li",14),2&i){const i=n.Yb().$implicit;n.Ab(i.styleClass),n.fc("pMenuItemContent",i)("ngClass",n.ic(5,K,!1===i.visible))("ngStyle",i.style)}}function z(i,e){if(1&i&&(n.Ac(0,D,1,3,"li",6),n.Ac(1,M,1,7,"li",13)),2&i){const i=e.$implicit;n.fc("ngIf",i.separator),n.yb(1),n.fc("ngIf",!i.separator)}}function x(i,e){if(1&i&&n.Ac(0,z,2,2,"ng-template",5),2&i){const i=n.Yb(2);n.fc("ngForOf",i.model)}}const H=function(i){return{"p-menu p-component":!0,"p-menu-overlay":i}},T=function(i,e){return{showTransitionParams:i,hideTransitionParams:e}},R=function(i){return{value:"visible",params:i}};function F(i,e){if(1&i){const i=n.Qb();n.Pb(0,"div",1,2),n.Wb("click",function(){return n.sc(i),n.Yb().preventDocumentDefault=!0})("@overlayAnimation.start",function(e){return n.sc(i),n.Yb().onOverlayAnimationStart(e)}),n.Pb(2,"ul",3),n.Ac(3,Y,1,1,void 0,4),n.Ac(4,x,1,1,void 0,4),n.Ob(),n.Ob()}if(2&i){const i=n.Yb();n.Ab(i.styleClass),n.fc("ngClass",n.ic(8,H,i.popup))("ngStyle",i.style)("@overlayAnimation",n.ic(13,R,n.jc(10,T,i.showTransitionOptions,i.hideTransitionOptions)))("@.disabled",!0!==i.popup),n.yb(3),n.fc("ngIf",i.hasSubMenu()),n.yb(1),n.fc("ngIf",!i.hasSubMenu())}}let Z=(()=>{class i{constructor(i){this.menu=i}}return i.\u0275fac=function(e){return new(e||i)(n.Jb(Object(n.S)(()=>j)))},i.\u0275cmp=n.Db({type:i,selectors:[["","pMenuItemContent",""]],inputs:{item:["pMenuItemContent","item"]},attrs:o,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"ngClass","click",4,"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"ngClass","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click"],["htmlRouteLabel",""]],template:function(i,e){1&i&&(n.Ac(0,p,5,12,"a",0),n.Ac(1,y,5,22,"a",1)),2&i&&(n.fc("ngIf",!e.item.routerLink),n.yb(1),n.fc("ngIf",e.item.routerLink))},directives:[l.m,l.k,a.d,r.a,a.c],encapsulation:2}),i})(),j=(()=>{class i{constructor(i,e,t){this.el=i,this.renderer=e,this.cd=t,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new n.n,this.onHide=new n.n}toggle(i){this.visible?this.hide():this.show(i),this.preventDocumentDefault=!0}show(i){this.target=i.currentTarget,this.relativeAlign=i.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(i){switch(i.toState){case"visible":this.popup&&(this.container=i.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}alignOverlay(){this.relativeAlign?c.b.relativePosition(this.container,this.target):c.b.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):c.b.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&(this.container.style.zIndex=String(this.baseZIndex+ ++c.b.zindex))}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(i,e){e.disabled?i.preventDefault():(e.url||i.preventDefault(),e.command&&e.command({originalEvent:i,item:e}),this.popup&&this.hide())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new c.a(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.target=null}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var i of this.model)if(i.items)return!0;return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Jb(n.l),n.Jb(n.D),n.Jb(n.h))},i.\u0275cmp=n.Db({type:i,selectors:[["p-menu"]],viewQuery:function(i,e){var t;1&i&&n.Ic(k,!0),2&i&&n.qc(t=n.Xb())&&(e.containerViewChild=t.first)},inputs:{autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],[1,"p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header",3,"ngClass",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],[1,"p-submenu-header",3,"ngClass"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","class",4,"ngIf"],[1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle"]],template:function(i,e){1&i&&n.Ac(0,F,5,15,"div",0),2&i&&n.fc("ngIf",!e.popup||e.visible)},directives:[l.m,l.k,l.n,l.l,Z],styles:[".p-menu-overlay{position:absolute}.p-menu ul{list-style:none;margin:0;padding:0}.p-menu .p-menuitem-link{align-items:center;cursor:pointer;display:flex;overflow:hidden;position:relative;text-decoration:none}.p-menu .p-menuitem-text{line-height:1}"],encapsulation:2,data:{animation:[Object(s.o)("overlayAnimation",[Object(s.n)(":enter",[Object(s.m)({opacity:0,transform:"scaleY(0.8)"}),Object(s.e)("{{showTransitionParams}}")]),Object(s.n)(":leave",[Object(s.e)("{{hideTransitionParams}}",Object(s.m)({opacity:0}))])])]},changeDetection:0}),i})(),W=(()=>{class i{}return i.\u0275mod=n.Hb({type:i}),i.\u0275inj=n.Gb({factory:function(e){return new(e||i)},imports:[[l.b,a.e,r.b],a.e]}),i})()},"M2/K":function(i,e,t){"use strict";t.d(e,"a",function(){return n});class n{constructor(){this.data=[],this.count=0,this.loading=!1}}},cYUW:function(i,e,t){"use strict";t.r(e),t.d(e,"BildirimKategoriModule",function(){return R});var n=t("ofXK"),s=t("3Pt+"),l=t("tyNb"),c=t("bKFz"),a=t("jIHw"),r=t("7kUa"),o=t("Ks7X"),u=t("1SLH"),b=t("rEr+"),d=t("rWNv"),m=t("p5wL"),p=t("M2/K"),f=t("fXoL"),g=t("j0Dl"),h=t("eKg/"),v=t("GusI"),y=t("vHmi"),k=t("7zfz");const K=["menu"];function O(i,e){1&i&&(f.Pb(0,"h5"),f.Cc(1),f.Zb(2,"translate"),f.Ob()),2&i&&(f.yb(1),f.Dc(f.ac(2,1,"newRecord")))}function S(i,e){if(1&i){const i=f.Qb();f.Pb(0,"input",13),f.Wb("ngModelChange",function(e){return f.sc(i),f.Yb(2).bildirimKategori.ad=e}),f.Ob()}if(2&i){const i=f.Yb(2);f.fc("ngModel",i.bildirimKategori.ad)}}function I(i,e){if(1&i&&(f.Pb(0,"span"),f.Cc(1),f.Ob()),2&i){const i=f.Yb(2);f.yb(1),f.Dc(i.bildirimKategori.ad)}}function C(i,e){if(1&i){const i=f.Qb();f.Pb(0,"button",14),f.Wb("click",function(){return f.sc(i),f.Yb(2).kaydet()}),f.Zb(1,"translate"),f.Ob()}if(2&i){const i=f.Yb(2);f.fc("disabled",i.genelService.islemDevam)("label",f.ac(1,2,"save"))}}function L(i,e){if(1&i){const i=f.Qb();f.Pb(0,"button",14),f.Wb("click",function(){return f.sc(i),f.Yb(2).guncelleOnay()}),f.Zb(1,"translate"),f.Ob()}if(2&i){const i=f.Yb(2);f.fc("disabled",i.genelService.islemDevam)("label",f.ac(1,2,"save"))}}function P(i,e){if(1&i){const i=f.Qb();f.Pb(0,"button",14),f.Wb("click",function(){return f.sc(i),f.Yb(2).silOnay()}),f.Zb(1,"translate"),f.Ob()}if(2&i){const i=f.Yb(2);f.fc("disabled",i.genelService.islemDevam)("label",f.ac(1,2,"delete"))}}function A(i,e){if(1&i){const i=f.Qb();f.Pb(0,"button",15),f.Wb("click",function(){return f.sc(i),f.Yb(2).vazgec()}),f.Zb(1,"translate"),f.Ob()}if(2&i){const i=f.Yb(2);f.fc("disabled",i.genelService.islemDevam)("label",f.ac(1,2,"cancel"))}}function w(i,e){if(1&i&&(f.Pb(0,"div",2),f.Pb(1,"div",3),f.Pb(2,"div",4),f.Ac(3,O,3,3,"h5",5),f.Ob(),f.Pb(4,"div",0),f.Pb(5,"div",6),f.Pb(6,"span",7),f.Cc(7),f.Zb(8,"translate"),f.Ob(),f.Ob(),f.Pb(9,"div",8),f.Ac(10,S,1,1,"input",9),f.Ac(11,I,2,1,"span",5),f.Ob(),f.Pb(12,"div",6),f.Pb(13,"span",7),f.Cc(14),f.Zb(15,"translate"),f.Ob(),f.Ob(),f.Pb(16,"div",10),f.Ac(17,C,2,4,"button",11),f.Ac(18,L,2,4,"button",11),f.Ac(19,P,2,4,"button",11),f.Ac(20,A,2,4,"button",12),f.Ob(),f.Ob(),f.Ob(),f.Ob()),2&i){const i=f.Yb();f.yb(3),f.fc("ngIf",i.yeniKayit),f.yb(4),f.Dc(f.ac(8,9,"name")),f.yb(3),f.fc("ngIf",i.yeniKayit||i.guncelleKayit),f.yb(1),f.fc("ngIf",i.silKayit),f.yb(3),f.Dc(f.ac(15,11,"image")),f.yb(3),f.fc("ngIf",i.yeniKayit),f.yb(1),f.fc("ngIf",i.guncelleKayit),f.yb(1),f.fc("ngIf",i.silKayit),f.yb(1),f.fc("ngIf",i.yeniKayit||i.guncelleKayit||i.silKayit)}}function Y(i,e){if(1&i){const i=f.Qb();f.Pb(0,"button",14),f.Wb("click",function(){return f.sc(i),f.Yb(3).yeniBildirimKategori()}),f.Zb(1,"translate"),f.Ob()}if(2&i){const i=f.Yb(3);f.fc("disabled",i.genelService.islemDevam)("label",f.ac(1,2,"newRecord"))}}function D(i,e){if(1&i&&(f.Pb(0,"div",20),f.Ac(1,Y,2,4,"button",11),f.Ob()),2&i){const i=f.Yb(2);f.yb(1),f.fc("ngIf",!i.yeniKayit&&!i.guncelleKayit&&!i.silKayit)}}function M(i,e){1&i&&(f.Pb(0,"tr"),f.Kb(1,"th",21),f.Pb(2,"th"),f.Cc(3),f.Zb(4,"translate"),f.Ob(),f.Ob()),2&i&&(f.yb(3),f.Dc(f.ac(4,1,"records")))}function z(i,e){if(1&i&&f.Kb(0,"img",29),2&i){const i=f.Yb().$implicit;f.fc("src",i.resim,f.vc)}}function x(i,e){if(1&i){const i=f.Qb();f.Pb(0,"tr"),f.Pb(1,"td"),f.Pb(2,"button",22),f.Wb("click",function(t){f.sc(i);const n=e.$implicit,s=e.rowIndex;return f.Yb(2).generateMenuCommands(n,s,t)}),f.Ob(),f.Kb(3,"p-menu",23,24),f.Ob(),f.Pb(5,"td"),f.Pb(6,"div",0),f.Pb(7,"div",25),f.Ac(8,z,1,1,"img",26),f.Ob(),f.Pb(9,"div",27),f.Pb(10,"div",0),f.Pb(11,"div",28),f.Cc(12),f.Zb(13,"translate"),f.Ob(),f.Pb(14,"div",8),f.Cc(15),f.Ob(),f.Ob(),f.Ob(),f.Ob(),f.Ob(),f.Ob()}if(2&i){const i=e.$implicit,t=f.Yb(2);f.yb(2),f.fc("disabled",t.genelService.islemDevam),f.yb(1),f.fc("model",t.menuModel)("popup",!0),f.yb(5),f.fc("ngIf",i.resim),f.yb(4),f.Dc(f.ac(13,6,"name")),f.yb(3),f.Dc(i.ad)}}function H(i,e){if(1&i){const i=f.Qb();f.Pb(0,"div",2),f.Pb(1,"p-table",16),f.Wb("onLazyLoad",function(e){return f.sc(i),f.Yb().gridLazyEvent(e)}),f.Ac(2,D,2,1,"ng-template",17),f.Ac(3,M,5,3,"ng-template",18),f.Ac(4,x,16,8,"ng-template",19),f.Ob(),f.Ob()}if(2&i){const i=f.Yb();f.yb(1),f.fc("lazy",!0)("loading",i.tableModel.loading)("paginator",!0)("rows",10)("totalRecords",i.tableModel.count)("value",i.tableModel.data)}}const T=[{path:"",component:(()=>{class i{constructor(i,e,t,n){this.genelService=i,this.translatePipe=e,this.kullaniciService=t,this.bildirimKategoriService=n,this.tableModel=new p.a,this.bildirimKategori=null,this.yeniKayit=!1,this.guncelleKayit=!1,this.silKayit=!1,this.menuModel=[]}generateMenuCommands(i,e,t){this.menuModel=[{label:this.translatePipe.transform("update"),command:()=>{this.bildirimKategori=i,this.guncelle()},icon:"fas fa-edit",visible:this.kullaniciService.seciliKullaniciKurumYetki.guncellerBildirim||this.kullaniciService.yetkiKontrolKullaniciAdminMi()||this.kullaniciService.yetkiKontrolKullaniciKurumAdminMi()},{label:this.translatePipe.transform("delete"),command:()=>{this.bildirimKategori=i,this.sil()},icon:"fas fa-trash-alt",visible:this.kullaniciService.seciliKullaniciKurumYetki.silerBildirim||this.kullaniciService.yetkiKontrolKullaniciAdminMi()||this.kullaniciService.yetkiKontrolKullaniciKurumAdminMi()}],this.menuList.toArray()[e%10].toggle(t)}yeniBildirimKategori(){this.bildirimKategori={ad:"",kurum:{id:this.kullaniciService.seciliKullaniciKurumYetki.kurum.id,ad:this.kullaniciService.seciliKullaniciKurumYetki.kurum.ad}},this.yeniKayit=!0}kaydet(){this.genelService.islemDevam=!0,this.bildirimKategoriService.kaydet(this.bildirimKategori).subscribe(()=>{this.genelService.islemDevam=!1,this.yeniKayit=!1,this.gridLazyEvent(null)},i=>{this.genelService.errorHandler(i)})}guncelle(){null!=this.bildirimKategori&&null!=this.bildirimKategori.id?this.guncelleKayit=!0:this.genelService.messageWarn("",this.translatePipe.transform("selectRecordFirst"))}guncelleOnay(){this.genelService.islemDevam=!0,this.bildirimKategori.kurum={id:this.kullaniciService.seciliKullaniciKurumYetki.kurum.id,ad:this.kullaniciService.seciliKullaniciKurumYetki.kurum.ad},this.bildirimKategoriService.guncelle(this.bildirimKategori).subscribe(()=>{this.genelService.islemDevam=!1,this.genelService.messageSuccess("",this.translatePipe.transform("updated")),this.vazgec(),this.gridLazyEvent(null)},i=>{this.genelService.errorHandler(i)})}sil(){this.silKayit=!0}silOnay(){null!=this.bildirimKategori&&null!=this.bildirimKategori.id?(this.genelService.islemDevam=!0,this.bildirimKategori.kurum={id:this.kullaniciService.seciliKullaniciKurumYetki.kurum.id,ad:this.kullaniciService.seciliKullaniciKurumYetki.kurum.ad},this.bildirimKategoriService.sil(this.bildirimKategori).subscribe(()=>{this.genelService.islemDevam=!1,this.genelService.messageSuccess("",this.translatePipe.transform("deleted")),this.bildirimKategori=null,this.vazgec(),this.gridLazyEvent(null)},i=>{this.genelService.errorHandler(i)})):this.genelService.messageWarn("",this.translatePipe.transform("selectRecordFirst"))}vazgec(){this.yeniKayit=!1,this.guncelleKayit=!1,this.silKayit=!1,this.bildirimKategori=null}gridLazyEvent(i){this.tableModel.loading=!0,this.bildirimKategoriService.grid({page:null!=i&&null!=i.first?i.first:0,pageSize:null!=i&&null!=i.rows?i.rows:10,sortField:null!=i&&null!=i.sortField?i.sortField:"kayitTarihi",sortOrder:null!=i&&null!=i.sortField?i.sortOrder:-1,filters:{pasif:!1}}).subscribe(i=>{this.tableModel=i.tableModel,this.tableModel.loading=!1},i=>{this.genelService.errorHandler(i),this.tableModel.loading=!1})}ngOnInit(){this.kullaniciService.userScreen="Bildirim-Kategori",null==this.kullaniciService.token||this.kullaniciService.token.length<1?this.genelService.navigate(["/"]):(this.genelService.kullaniciMobil=this.genelService.regex_Mobilmi(),this.genelService.getLocalIp())}}return i.\u0275fac=function(e){return new(e||i)(f.Jb(g.a),f.Jb(h.a),f.Jb(v.a),f.Jb(y.a))},i.\u0275cmp=f.Db({type:i,selectors:[["app-bildirim-kategori"]],viewQuery:function(i,e){var t;1&i&&f.Ic(K,!0),2&i&&f.qc(t=f.Xb())&&(e.menuList=t)},decls:3,vars:2,consts:[[1,"p-grid","p-align-center","vertical-container"],["class","p-col-12",4,"ngIf"],[1,"p-col-12"],[1,"p-card","grid-card"],[1,"p-text-center"],[4,"ngIf"],[1,"p-col-12","p-md-4","p-lg-4"],[2,"font-weight","bold"],[1,"p-col-12","p-md-8","p-lg-8"],["pInputText","","style","width: 100%","type","text",3,"ngModel","ngModelChange",4,"ngIf"],[1,"p-col-12","p-text-center"],["class","p-button-success","pButton","",3,"disabled","label","click",4,"ngIf"],["class","p-button-danger","pButton","",3,"disabled","label","click",4,"ngIf"],["pInputText","","type","text",2,"width","100%",3,"ngModel","ngModelChange"],["pButton","",1,"p-button-success",3,"disabled","label","click"],["pButton","",1,"p-button-danger",3,"disabled","label","click"],["dataKey","id",3,"lazy","loading","paginator","rows","totalRecords","value","onLazyLoad"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-grid","p-align-center","vertical-container","p-justify-center"],[2,"text-align","center","width","54px"],["icon","fas fa-caret-square-down","pButton","",1,"p-button-info",3,"disabled","click"],[3,"model","popup"],["menu",""],[1,"p-col-12","p-md-4","p-lg-2","p-text-center"],["loading","lazy","style","max-width: 100%; height: auto; border-radius: 5px; object-fit: scale-down;",3,"src",4,"ngIf"],[1,"p-col-12","p-md-8","p-lg-10"],[1,"p-col-12","p-md-4","p-lg-4",2,"font-weight","bold"],["loading","lazy",2,"max-width","100%","height","auto","border-radius","5px","object-fit","scale-down",3,"src"]],template:function(i,e){1&i&&(f.Pb(0,"div",0),f.Ac(1,w,21,13,"div",1),f.Ac(2,H,5,6,"div",1),f.Ob()),2&i&&(f.yb(1),f.fc("ngIf",e.yeniKayit||e.guncelleKayit||e.silKayit),f.yb(1),f.fc("ngIf",!e.yeniKayit&&!e.guncelleKayit&&!e.silKayit))},directives:[n.m,s.a,r.a,s.f,s.g,a.b,b.d,k.j,u.a],pipes:[h.a],styles:[""],data:{animation:[m.a]}}),i})()}];let R=(()=>{class i{}return i.\u0275mod=f.Hb({type:i}),i.\u0275inj=f.Gb({factory:function(e){return new(e||i)},providers:[d.a],imports:[[l.e.forChild(T),n.b,s.b,c.a,a.c,b.g,u.b,r.b,o.b]]}),i})()}}]);