-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path24.34325083a1baedf94891.js
1 lines (1 loc) · 24.4 KB
/
24.34325083a1baedf94891.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"1SLH":function(e,i,t){"use strict";t.d(i,"a",function(){return E}),t.d(i,"b",function(){return R});var n=t("fXoL"),s=t("R0Ic"),a=t("ofXK"),c=t("YyRF"),l=t("tyNb"),r=t("Q4Mo");const o=["pMenuItemContent",""];function b(e,i){if(1&e&&n.Kb(0,"span",6),2&e){const e=n.Yb(2);n.fc("ngClass",e.item.icon)}}function u(e,i){if(1&e&&(n.Pb(0,"span",7),n.Cc(1),n.Ob()),2&e){const e=n.Yb(2);n.yb(1),n.Dc(e.item.label)}}function d(e,i){if(1&e&&n.Kb(0,"span",8),2&e){const e=n.Yb(2);n.fc("innerHTML",e.item.label,n.tc)}}const p=function(e){return{"p-disabled":e}};function m(e,i){if(1&e){const e=n.Qb();n.Pb(0,"a",2),n.Wb("click",function(i){n.sc(e);const t=n.Yb();return t.menu.itemClick(i,t.item)}),n.Ac(1,b,1,1,"span",3),n.Ac(2,u,2,1,"span",4),n.Ac(3,d,1,1,"ng-template",null,5,n.Bc),n.Ob()}if(2&e){const e=n.rc(4),i=n.Yb();n.fc("ngClass",n.ic(10,p,i.item.disabled)),n.zb("href",i.item.url||null,n.vc)("tabindex",i.item.disabled?null:"0")("data-automationid",i.item.automationId)("target",i.item.target)("title",i.item.title)("id",i.item.id),n.yb(1),n.fc("ngIf",i.item.icon),n.yb(1),n.fc("ngIf",!1!==i.item.escape)("ngIfElse",e)}}function f(e,i){if(1&e&&n.Kb(0,"span",6),2&e){const e=n.Yb(2);n.fc("ngClass",e.item.icon)}}function h(e,i){if(1&e&&(n.Pb(0,"span",7),n.Cc(1),n.Ob()),2&e){const e=n.Yb(2);n.yb(1),n.Dc(e.item.label)}}function g(e,i){if(1&e&&n.Kb(0,"span",8),2&e){const e=n.Yb(2);n.fc("innerHTML",e.item.label,n.tc)}}const y=function(){return{exact:!1}};function v(e,i){if(1&e){const e=n.Qb();n.Pb(0,"a",9),n.Wb("click",function(i){n.sc(e);const t=n.Yb();return t.menu.itemClick(i,t.item)}),n.Ac(1,f,1,1,"span",3),n.Ac(2,h,2,1,"span",4),n.Ac(3,g,1,1,"ng-template",null,10,n.Bc),n.Ob()}if(2&e){const e=n.rc(4),i=n.Yb();n.fc("routerLink",i.item.routerLink)("queryParams",i.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",i.item.routerLinkActiveOptions||n.hc(19,y))("ngClass",n.ic(20,p,i.item.disabled))("fragment",i.item.fragment)("queryParamsHandling",i.item.queryParamsHandling)("preserveFragment",i.item.preserveFragment)("skipLocationChange",i.item.skipLocationChange)("replaceUrl",i.item.replaceUrl)("state",i.item.state),n.zb("data-automationid",i.item.automationId)("target",i.item.target)("id",i.item.id)("tabindex",i.item.disabled?null:"0")("title",i.item.title),n.yb(1),n.fc("ngIf",i.item.icon),n.yb(1),n.fc("ngIf",!1!==i.item.escape)("ngIfElse",e)}}const O=["container"],C=function(e){return{"p-hidden":e}};function k(e,i){if(1&e&&n.Kb(0,"li",8),2&e){const e=n.Yb().$implicit;n.fc("ngClass",n.ic(1,C,!1===e.visible))}}function P(e,i){if(1&e&&(n.Pb(0,"span"),n.Cc(1),n.Ob()),2&e){const e=n.Yb(2).$implicit;n.yb(1),n.Dc(e.label)}}function S(e,i){if(1&e&&n.Kb(0,"span",12),2&e){const e=n.Yb(2).$implicit;n.fc("innerHTML",e.label,n.tc)}}function I(e,i){if(1&e&&(n.Pb(0,"li",9),n.Ac(1,P,2,1,"span",10),n.Ac(2,S,1,1,"ng-template",null,11,n.Bc),n.Ob()),2&e){const e=n.rc(3),i=n.Yb().$implicit;n.fc("ngClass",n.ic(4,C,!1===i.visible)),n.zb("data-automationid",i.automationId),n.yb(1),n.fc("ngIf",!1!==i.escape)("ngIfElse",e)}}function D(e,i){if(1&e&&n.Kb(0,"li",8),2&e){const e=n.Yb().$implicit,i=n.Yb().$implicit;n.fc("ngClass",n.ic(1,C,!1===e.visible||!1===i.visible))}}function L(e,i){if(1&e&&n.Kb(0,"li",14),2&e){const e=n.Yb().$implicit,i=n.Yb().$implicit;n.Ab(e.styleClass),n.fc("pMenuItemContent",e)("ngClass",n.ic(5,C,!1===e.visible||!1===i.visible))("ngStyle",e.style)}}function A(e,i){if(1&e&&(n.Ac(0,D,1,3,"li",6),n.Ac(1,L,1,7,"li",13)),2&e){const e=i.$implicit;n.fc("ngIf",e.separator),n.yb(1),n.fc("ngIf",!e.separator)}}function K(e,i){if(1&e&&(n.Ac(0,k,1,3,"li",6),n.Ac(1,I,4,6,"li",7),n.Ac(2,A,2,2,"ng-template",5)),2&e){const e=i.$implicit;n.fc("ngIf",e.separator),n.yb(1),n.fc("ngIf",!e.separator),n.yb(1),n.fc("ngForOf",e.items)}}function w(e,i){if(1&e&&n.Ac(0,K,3,3,"ng-template",5),2&e){const e=n.Yb(2);n.fc("ngForOf",e.model)}}function Y(e,i){if(1&e&&n.Kb(0,"li",8),2&e){const e=n.Yb().$implicit;n.fc("ngClass",n.ic(1,C,!1===e.visible))}}function M(e,i){if(1&e&&n.Kb(0,"li",14),2&e){const e=n.Yb().$implicit;n.Ab(e.styleClass),n.fc("pMenuItemContent",e)("ngClass",n.ic(5,C,!1===e.visible))("ngStyle",e.style)}}function z(e,i){if(1&e&&(n.Ac(0,Y,1,3,"li",6),n.Ac(1,M,1,7,"li",13)),2&e){const e=i.$implicit;n.fc("ngIf",e.separator),n.yb(1),n.fc("ngIf",!e.separator)}}function T(e,i){if(1&e&&n.Ac(0,z,2,2,"ng-template",5),2&e){const e=n.Yb(2);n.fc("ngForOf",e.model)}}const H=function(e){return{"p-menu p-component":!0,"p-menu-overlay":e}},x=function(e,i){return{showTransitionParams:e,hideTransitionParams:i}},Z=function(e){return{value:"visible",params:e}};function F(e,i){if(1&e){const e=n.Qb();n.Pb(0,"div",1,2),n.Wb("click",function(){return n.sc(e),n.Yb().preventDocumentDefault=!0})("@overlayAnimation.start",function(i){return n.sc(e),n.Yb().onOverlayAnimationStart(i)}),n.Pb(2,"ul",3),n.Ac(3,w,1,1,void 0,4),n.Ac(4,T,1,1,void 0,4),n.Ob(),n.Ob()}if(2&e){const e=n.Yb();n.Ab(e.styleClass),n.fc("ngClass",n.ic(8,H,e.popup))("ngStyle",e.style)("@overlayAnimation",n.ic(13,Z,n.jc(10,x,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),n.yb(3),n.fc("ngIf",e.hasSubMenu()),n.yb(1),n.fc("ngIf",!e.hasSubMenu())}}let W=(()=>{class e{constructor(e){this.menu=e}}return e.\u0275fac=function(i){return new(i||e)(n.Jb(Object(n.S)(()=>E)))},e.\u0275cmp=n.Db({type:e,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(e,i){1&e&&(n.Ac(0,m,5,12,"a",0),n.Ac(1,v,5,22,"a",1)),2&e&&(n.fc("ngIf",!i.item.routerLink),n.yb(1),n.fc("ngIf",i.item.routerLink))},directives:[a.m,a.k,l.d,r.a,l.c],encapsulation:2}),e})(),E=(()=>{class e{constructor(e,i,t){this.el=e,this.renderer=i,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(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.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(e,i){i.disabled?e.preventDefault():(i.url||e.preventDefault(),i.command&&i.command({originalEvent:e,item:i}),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 e of this.model)if(e.items)return!0;return!1}}return e.\u0275fac=function(i){return new(i||e)(n.Jb(n.l),n.Jb(n.D),n.Jb(n.h))},e.\u0275cmp=n.Db({type:e,selectors:[["p-menu"]],viewQuery:function(e,i){var t;1&e&&n.Ic(O,!0),2&e&&n.qc(t=n.Xb())&&(i.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(e,i){1&e&&n.Ac(0,F,5,15,"div",0),2&e&&n.fc("ngIf",!i.popup||i.visible)},directives:[a.m,a.k,a.n,a.l,W],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}),e})(),R=(()=>{class e{}return e.\u0275mod=n.Hb({type:e}),e.\u0275inj=n.Gb({factory:function(i){return new(i||e)},imports:[[a.b,l.e,r.b],l.e]}),e})()},"M2/K":function(e,i,t){"use strict";t.d(i,"a",function(){return n});class n{constructor(){this.data=[],this.count=0,this.loading=!1}}},pcry:function(e,i,t){"use strict";t.r(i),t.d(i,"VersiyonModule",function(){return j});var n=t("ofXK"),s=t("3Pt+"),a=t("tyNb"),c=t("M2/K"),l=t("p5wL"),r=t("fXoL"),o=t("j0Dl"),b=t("eKg/"),u=t("GusI"),d=t("tk/3");let p=(()=>{class e{constructor(e,i,t){this.httpClient=e,this.kullaniciService=i,this.genelService=t}kaydet(e){return this.httpClient.post("/api/rest/versiyon/kaydet",JSON.stringify(e))}grid(e){return this.httpClient.post("/api/rest/versiyon/grid",JSON.stringify(e))}guncelle(e){return this.httpClient.post("/api/rest/versiyon/guncelle",JSON.stringify(e))}sil(e){return this.httpClient.delete("/api/rest/versiyon/sil/"+e.id)}}return e.\u0275fac=function(i){return new(i||e)(r.Tb(d.b),r.Tb(u.a),r.Tb(o.a))},e.\u0275prov=r.Fb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var m=t("7kUa"),f=t("jIHw"),h=t("rEr+"),g=t("7zfz"),y=t("1SLH");const v=["menu"];function O(e,i){1&e&&(r.Pb(0,"h5"),r.Cc(1),r.Zb(2,"translate"),r.Ob()),2&e&&(r.yb(1),r.Dc(r.ac(2,1,"newVersion")))}function C(e,i){1&e&&(r.Pb(0,"h5"),r.Cc(1),r.Zb(2,"translate"),r.Ob()),2&e&&(r.yb(1),r.Dc(r.ac(2,1,"updateVersion")))}function k(e,i){1&e&&(r.Pb(0,"h5"),r.Cc(1),r.Zb(2,"translate"),r.Ob()),2&e&&(r.yb(1),r.Dc(r.ac(2,1,"deleteVersion")))}function P(e,i){if(1&e){const e=r.Qb();r.Pb(0,"input",13),r.Wb("ngModelChange",function(i){return r.sc(e),r.Yb(2).versiyon.surumNo=i}),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("ngModel",e.versiyon.surumNo)}}function S(e,i){if(1&e&&(r.Pb(0,"span"),r.Cc(1),r.Ob()),2&e){const e=r.Yb(2);r.yb(1),r.Dc(e.versiyon.surumNo)}}function I(e,i){if(1&e){const e=r.Qb();r.Pb(0,"input",13),r.Wb("ngModelChange",function(i){return r.sc(e),r.Yb(2).versiyon.ekran=i}),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("ngModel",e.versiyon.ekran)}}function D(e,i){if(1&e&&(r.Pb(0,"span"),r.Cc(1),r.Ob()),2&e){const e=r.Yb(2);r.yb(1),r.Dc(e.versiyon.ekran)}}function L(e,i){if(1&e){const e=r.Qb();r.Pb(0,"input",13),r.Wb("ngModelChange",function(i){return r.sc(e),r.Yb(2).versiyon.aciklama=i}),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("ngModel",e.versiyon.aciklama)}}function A(e,i){if(1&e&&(r.Pb(0,"span"),r.Cc(1),r.Ob()),2&e){const e=r.Yb(2);r.yb(1),r.Dc(e.versiyon.aciklama)}}function K(e,i){if(1&e){const e=r.Qb();r.Pb(0,"input",13),r.Wb("ngModelChange",function(i){return r.sc(e),r.Yb(2).versiyon.sebep=i}),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("ngModel",e.versiyon.sebep)}}function w(e,i){if(1&e&&(r.Pb(0,"span"),r.Cc(1),r.Ob()),2&e){const e=r.Yb(2);r.yb(1),r.Dc(e.versiyon.sebep)}}function Y(e,i){if(1&e){const e=r.Qb();r.Pb(0,"button",14),r.Wb("click",function(){return r.sc(e),r.Yb(2).kaydet()}),r.Zb(1,"translate"),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("disabled",e.genelService.islemDevam)("label",r.ac(1,2,"save"))}}function M(e,i){if(1&e){const e=r.Qb();r.Pb(0,"button",14),r.Wb("click",function(){return r.sc(e),r.Yb(2).guncelleOnay()}),r.Zb(1,"translate"),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("disabled",e.genelService.islemDevam)("label",r.ac(1,2,"save"))}}function z(e,i){if(1&e){const e=r.Qb();r.Pb(0,"button",14),r.Wb("click",function(){return r.sc(e),r.Yb(2).silOnay()}),r.Zb(1,"translate"),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("disabled",e.genelService.islemDevam)("label",r.ac(1,2,"delete"))}}function T(e,i){if(1&e){const e=r.Qb();r.Pb(0,"button",15),r.Wb("click",function(){return r.sc(e),r.Yb(2).vazgec()}),r.Zb(1,"translate"),r.Ob()}if(2&e){const e=r.Yb(2);r.fc("disabled",e.genelService.islemDevam)("label",r.ac(1,2,"cancel"))}}function H(e,i){if(1&e&&(r.Pb(0,"div",2),r.Pb(1,"div",3),r.Pb(2,"div",4),r.Ac(3,O,3,3,"h5",5),r.Ac(4,C,3,3,"h5",5),r.Ac(5,k,3,3,"h5",5),r.Ob(),r.Pb(6,"div",0),r.Pb(7,"div",2),r.Pb(8,"p"),r.Cc(9),r.Zb(10,"translate"),r.Ob(),r.Pb(11,"p"),r.Cc(12),r.Zb(13,"translate"),r.Ob(),r.Pb(14,"p"),r.Cc(15),r.Zb(16,"translate"),r.Ob(),r.Pb(17,"p"),r.Cc(18),r.Zb(19,"translate"),r.Ob(),r.Ob(),r.Pb(20,"div",6),r.Pb(21,"span",7),r.Cc(22),r.Zb(23,"translate"),r.Ob(),r.Ob(),r.Pb(24,"div",8),r.Ac(25,P,1,1,"input",9),r.Ac(26,S,2,1,"span",5),r.Ob(),r.Pb(27,"div",6),r.Pb(28,"span",7),r.Cc(29),r.Zb(30,"translate"),r.Ob(),r.Ob(),r.Pb(31,"div",8),r.Ac(32,I,1,1,"input",9),r.Ac(33,D,2,1,"span",5),r.Ob(),r.Pb(34,"div",6),r.Pb(35,"span",7),r.Cc(36),r.Zb(37,"translate"),r.Ob(),r.Ob(),r.Pb(38,"div",8),r.Ac(39,L,1,1,"input",9),r.Ac(40,A,2,1,"span",5),r.Ob(),r.Pb(41,"div",6),r.Pb(42,"span",7),r.Cc(43),r.Zb(44,"translate"),r.Ob(),r.Ob(),r.Pb(45,"div",8),r.Ac(46,K,1,1,"input",9),r.Ac(47,w,2,1,"span",5),r.Ob(),r.Pb(48,"div",10),r.Ac(49,Y,2,4,"button",11),r.Ac(50,M,2,4,"button",11),r.Ac(51,z,2,4,"button",11),r.Ac(52,T,2,4,"button",12),r.Ob(),r.Ob(),r.Ob(),r.Ob()),2&e){const e=r.Yb();r.yb(3),r.fc("ngIf",e.yeniKayit),r.yb(1),r.fc("ngIf",e.guncelleKayit),r.yb(1),r.fc("ngIf",e.silKayit),r.yb(4),r.Dc(r.ac(10,23,"versionFormatIsOneDotTwoDotThree")),r.yb(3),r.Dc(r.ac(13,25,"firstMajorVersionChange")),r.yb(3),r.Dc(r.ac(16,27,"secondMinorVersionChange")),r.yb(3),r.Dc(r.ac(19,29,"threePatchVersionChange")),r.yb(4),r.Dc(r.ac(23,31,"versionNumber")),r.yb(3),r.fc("ngIf",e.yeniKayit||e.guncelleKayit),r.yb(1),r.fc("ngIf",e.silKayit),r.yb(3),r.Dc(r.ac(30,33,"screen")),r.yb(3),r.fc("ngIf",e.yeniKayit||e.guncelleKayit),r.yb(1),r.fc("ngIf",e.silKayit),r.yb(3),r.Dc(r.ac(37,35,"description")),r.yb(3),r.fc("ngIf",e.yeniKayit||e.guncelleKayit),r.yb(1),r.fc("ngIf",e.silKayit),r.yb(3),r.Dc(r.ac(44,37,"reason")),r.yb(3),r.fc("ngIf",e.yeniKayit||e.guncelleKayit),r.yb(1),r.fc("ngIf",e.silKayit),r.yb(2),r.fc("ngIf",e.yeniKayit),r.yb(1),r.fc("ngIf",e.guncelleKayit),r.yb(1),r.fc("ngIf",e.silKayit),r.yb(1),r.fc("ngIf",e.yeniKayit||e.guncelleKayit||e.silKayit)}}function x(e,i){if(1&e){const e=r.Qb();r.Pb(0,"button",14),r.Wb("click",function(){return r.sc(e),r.Yb(3).yeniVersiyon()}),r.Zb(1,"translate"),r.Ob()}if(2&e){const e=r.Yb(3);r.fc("disabled",e.genelService.islemDevam)("label",r.ac(1,2,"newVersion"))}}function Z(e,i){if(1&e&&(r.Pb(0,"div",20),r.Ac(1,x,2,4,"button",11),r.Ob()),2&e){const e=r.Yb(2);r.yb(1),r.fc("ngIf",!e.yeniKayit&&!e.guncelleKayit&&!e.silKayit&&e.kullaniciService.kullanici.admin)}}function F(e,i){1&e&&(r.Pb(0,"tr"),r.Kb(1,"th",21),r.Pb(2,"th"),r.Cc(3),r.Zb(4,"translate"),r.Ob(),r.Ob()),2&e&&(r.yb(3),r.Dc(r.ac(4,1,"records")))}function W(e,i){if(1&e){const e=r.Qb();r.Pb(0,"tr"),r.Pb(1,"td"),r.Pb(2,"button",22),r.Wb("click",function(t){r.sc(e);const n=i.$implicit,s=i.rowIndex;return r.Yb(2).generateMenuCommands(n,s,t)}),r.Ob(),r.Kb(3,"p-menu",23,24),r.Ob(),r.Pb(5,"td"),r.Pb(6,"div",0),r.Pb(7,"div",25),r.Cc(8),r.Zb(9,"translate"),r.Ob(),r.Pb(10,"div",8),r.Cc(11),r.Ob(),r.Pb(12,"div",25),r.Cc(13),r.Zb(14,"translate"),r.Ob(),r.Pb(15,"div",8),r.Cc(16),r.Ob(),r.Pb(17,"div",25),r.Cc(18),r.Zb(19,"translate"),r.Ob(),r.Pb(20,"div",8),r.Cc(21),r.Ob(),r.Pb(22,"div",25),r.Cc(23),r.Zb(24,"translate"),r.Ob(),r.Pb(25,"div",8),r.Cc(26),r.Ob(),r.Ob(),r.Ob(),r.Ob()}if(2&e){const e=i.$implicit,t=r.Yb(2);r.yb(2),r.fc("disabled",t.genelService.islemDevam),r.yb(1),r.fc("model",t.menuModel)("popup",!0),r.yb(5),r.Dc(r.ac(9,11,"versionNumber")),r.yb(3),r.Dc(e.surumNo),r.yb(2),r.Dc(r.ac(14,13,"screen")),r.yb(3),r.Dc(e.ekran),r.yb(2),r.Dc(r.ac(19,15,"description")),r.yb(3),r.Dc(e.aciklama),r.yb(2),r.Dc(r.ac(24,17,"reason")),r.yb(3),r.Dc(e.sebep)}}function E(e,i){if(1&e){const e=r.Qb();r.Pb(0,"div",2),r.Pb(1,"p-table",16),r.Wb("onLazyLoad",function(i){return r.sc(e),r.Yb().gridLazyEvent(i)}),r.Ac(2,Z,2,1,"ng-template",17),r.Ac(3,F,5,3,"ng-template",18),r.Ac(4,W,27,19,"ng-template",19),r.Ob(),r.Ob()}if(2&e){const e=r.Yb();r.yb(1),r.fc("lazy",!0)("loading",e.tableModel.loading)("paginator",!0)("rows",10)("totalRecords",e.tableModel.count)("value",e.tableModel.data)}}let R=(()=>{class e{constructor(e,i,t,n){this.genelService=e,this.translatePipe=i,this.kullaniciService=t,this.versiyonService=n,this.tableModel=new c.a,this.versiyon=null,this.yeniKayit=!1,this.guncelleKayit=!1,this.silKayit=!1,this.menuModel=[]}generateMenuCommands(e,i,t){this.menuModel=[{label:this.translatePipe.transform("update"),command:()=>{this.versiyon=e,this.guncelle()},icon:"fas fa-edit",visible:this.kullaniciService.yetkiKontrolKullaniciAdminMi()},{label:this.translatePipe.transform("delete"),command:()=>{this.versiyon=e,this.sil()},icon:"fas fa-trash-alt",visible:this.kullaniciService.yetkiKontrolKullaniciAdminMi()}],this.menuList.toArray()[i%10].toggle(t)}yeniVersiyon(){this.genelService.messageClear(),this.versiyonService.grid({page:0,pageSize:1,sortField:"surumNo",sortOrder:-1,filters:{pasif:!1}}).subscribe(e=>{this.versiyon={surumNo:null!=e.tableModel.data[0]&&e.tableModel.data[0].surumNo?e.tableModel.data[0].surumNo:"",ekran:"",tarih:new Date,aciklama:"",sebep:""},this.yeniKayit=!0},e=>{this.genelService.errorHandler(e)})}kaydet(){null==this.versiyon.surumNo||this.versiyon.surumNo.length<1?this.genelService.messageWarn(this.translatePipe.transform("missingValue"),this.translatePipe.transform("nameCannotBeEmpty")):null==this.versiyon.ekran||this.versiyon.ekran.length<1?this.genelService.messageWarn(this.translatePipe.transform("missingValue"),this.translatePipe.transform("screenCannotBeEmpty")):null==this.versiyon.aciklama||this.versiyon.aciklama.length<1?this.genelService.messageWarn(this.translatePipe.transform("missingValue"),this.translatePipe.transform("descriptionCannotBeEmpty")):null==this.versiyon.sebep||this.versiyon.sebep.length<1?this.genelService.messageWarn(this.translatePipe.transform("missingValue"),this.translatePipe.transform("reasonCannotBeEmpty")):(this.versiyon.id=null,this.genelService.islemDevam=!0,this.versiyonService.kaydet(this.versiyon).subscribe(()=>{this.versiyon.aciklama="",this.versiyon.sebep="",this.genelService.messageSuccess(this.translatePipe.transform("success"),this.translatePipe.transform("saved")),this.genelService.islemDevam=!1,this.gridLazyEvent(null)},e=>{this.genelService.errorHandler(e)}))}guncelle(){null!=this.versiyon&&null!=this.versiyon.id?this.guncelleKayit=!0:this.genelService.messageWarn("",this.translatePipe.transform("selectRecordFirst"))}guncelleOnay(){this.genelService.islemDevam=!0,this.versiyonService.guncelle(this.versiyon).subscribe(()=>{this.genelService.islemDevam=!1,this.genelService.messageSuccess("",this.translatePipe.transform("updated")),this.vazgec(),this.gridLazyEvent(null)},e=>{this.genelService.errorHandler(e)})}sil(){this.silKayit=!0}silOnay(){null!=this.versiyon&&null!=this.versiyon.id?(this.genelService.islemDevam=!0,this.versiyonService.sil(this.versiyon).subscribe(()=>{this.genelService.islemDevam=!1,this.genelService.messageSuccess("",this.translatePipe.transform("deleted")),this.versiyon=null,this.vazgec(),this.gridLazyEvent(null)},e=>{this.genelService.errorHandler(e)})):this.genelService.messageWarn("",this.translatePipe.transform("selectRecordFirst"))}vazgec(){this.yeniKayit=!1,this.guncelleKayit=!1,this.silKayit=!1,this.versiyon=null}gridLazyEvent(e){this.tableModel.loading=!0,this.versiyonService.grid({page:null!=e&&null!=e.first?e.first:0,pageSize:null!=e&&null!=e.rows?e.rows:10,sortField:null!=e&&null!=e.sortField?e.sortField:"surumNo",sortOrder:null!=e&&null!=e.sortField?e.sortOrder:-1,filters:{pasif:!1}}).subscribe(e=>{this.tableModel=e.tableModel,this.tableModel.loading=!1},e=>{this.genelService.errorHandler(e),this.tableModel.loading=!1})}ngOnInit(){this.kullaniciService.userScreen=this.translatePipe.transform("version"),null==this.kullaniciService.token||this.kullaniciService.token.length<1?this.genelService.navigate(["/"]):null!=this.kullaniciService.kullanici&&this.kullaniciService.kullanici.admin?(this.genelService.kullaniciMobil=this.genelService.regex_Mobilmi(),this.genelService.getLocalIp()):this.genelService.navigate(["/dashboard"])}}return e.\u0275fac=function(i){return new(i||e)(r.Jb(o.a),r.Jb(b.a),r.Jb(u.a),r.Jb(p))},e.\u0275cmp=r.Db({type:e,selectors:[["app-versiyon"]],viewQuery:function(e,i){var t;1&e&&r.Ic(v,!0),2&e&&r.qc(t=r.Xb())&&(i.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-4",2,"font-weight","bold"]],template:function(e,i){1&e&&(r.Pb(0,"div",0),r.Ac(1,H,53,39,"div",1),r.Ac(2,E,5,6,"div",1),r.Ob()),2&e&&(r.yb(1),r.fc("ngIf",i.yeniKayit||i.guncelleKayit||i.silKayit),r.yb(1),r.fc("ngIf",!i.guncelleKayit&&!i.silKayit))},directives:[n.m,s.a,m.a,s.f,s.g,f.b,h.d,g.j,y.a],pipes:[b.a],styles:[""],data:{animation:[l.a]}}),e})();var N=t("bKFz");const Q=[{path:"",component:R}];let j=(()=>{class e{}return e.\u0275mod=r.Hb({type:e}),e.\u0275inj=r.Gb({factory:function(i){return new(i||e)},providers:[p],imports:[[a.e.forChild(Q),n.b,s.b,N.a,f.c,h.g,y.b,m.b]]}),e})()}}]);