1"use strict";(self.webpackChunkResponsiveApps=self.webpackChunkResponsiveApps||[]).push([[195,801,3182],{60801:(G,M,l)=>{l.d(M,{I:()=>h});var F=l(5964),d=l(61594),f=l(69189),p=l(15049),t=l(31103),g=l(8961),v=l(19403),S=l(2615),m=l(73664),T=l(23911),P=l(84412),D=l(19209),R=l(5794),O=l(17613),b=l(95237),j=l(35144),r=l(57303);let h=(()=>{class o extends T.u{get isShownInTemplate(){return this._isShownInTemplate.getValue()}set isShownInTemplate(e){this._isShownInTemplate.next(e)}constructor(e,n=!1){super(),this.injector=e,this.setsSeoTags=n,this.requiredRoles=[],this.isShown=new m.bkB,this.location=(0,S.WQX)(r.aZ),this._isShownInTemplate=new P.t(!1),this.o_isShownInTemplate=this._isShownInTemplate.asObservable(),this._sessionInfo=new P.t(null),this.o_sessionInfo=this._sessionInfo.asObservable().pipe((0,F.p)(a=>!!a)),this.templateService=this.injector.get(p.I),this.cmsMenuService=this.injector.get(t.a),this.navbarService=this.injector.get(g.q),this.scrollService=this.injector.get(v.b),this.s_placeholder=this.injector.get(b.d),this.el=this.injector.get(m.aKT),this.renderer=this.injector.get(m.sFG),this.window=this.injector.get(j.jf);let i=this.injector.get(R.Z,void 0,{optional:!0});i&&!i.abstractModuleComponent&&(i.abstractModuleComponent=this)}get cmsModuleUsageSid(){return this._cmsModuleUsageSid}get cmsModuleName(){return this._cmsModuleName}initModule(e,n,i,a,s,c){this.uiConfig&&this.uiConfigService&&this.translateService&&(this.uiConfig.destroy(),this.uiConfig.init(this.uiConfigService,this.translateService,i,a,null,this.s_placeholder));let _=this.getCMSModuleParamValByIncoming(!0,n,"needsComponentBelow");this.needsComponentBelow=!(!_||!_.value)&&"true"===_.value.trim(),this._cmsModuleUsageSid=i,this._cmsModuleName=s,s&&this.el?.nativeElement&&this.renderer.setAttribute(this.el.nativeElement,"data-fab-module",s),this._sessionInfo.next(c),this.setProperties(e,n)}ngOnDestroy(){super.ngOnDestroy(),this.uiConfig&&this.uiConfigService&&this.uiConfig.destroy()}checkRequiredRoles(e){for(let n=0;n<this.requiredRoles.length;n++){let i=this.requiredRoles[n],a=!1;for(let s=0;s<e.length;s++)e[s].sid==i.sid&&(a=!0);if(!a)return!1}return!0}getCMSModuleParamValByIncoming(e,n,i){return this.injector.get(O.q).getCMSModuleParamValByIncoming(e,n,i)}getCMSModuleParamValsByIncoming(e,n,i){let a=[];if(n)for(let s=0;s<n.length;s++){let c=n[s];c.incoming==e&&(!i||i==c.internalPropertyName)&&a.push(c)}return a}getRouteObject(e,n,i,a=null){if(a||(a={}),i){let s=null;n&&(s=this.getCMSModuleParamValByIncoming(!1,n,i)),s?a[s.paramName]=e:a[i]=e}return a}getRouteObjectsByParams(e){let n={};if(e)for(var i in e)console.log(i),e.hasOwnProperty(i)&&(n=this.getRouteObject(e[i],null,i,n));return n}scrollToTop(e=!1){this.scrollService.scrollToTop(e)}routeToWithParam(e,n,i,a,s){let c=this.getCMSModuleParamValByIncoming(!1,n,i).cmsMenuDestSid;if(c){let _=s.createUrlTree([this.cmsMenuService.baseUrl,this.cmsMenuService.getNavigationSidOrAlias(c),this.getRouteObject(e,n,a)]);this.equalURL(_.toString(),s.url)?this.reloadPage():s.navigateByUrl(_)}}routeTo(e,n,i,a){let s=a.createUrlTree([this.cmsMenuService.baseUrl,this.cmsMenuService.getNavigationSidOrAlias(this.getCMSModuleParamValByIncoming(!1,n,i).cmsMenuDestSid),this.getRouteObject(e,n,i)]);this.equalURL(s.toString(),a.url)?this.reloadPage():a.navigateByUrl(s)}routeToMenuDest(e,n,i){let a=this.getCMSModuleParamValByIncoming(!1,e,n);if(a){let s=a.cmsMenuDestSid;s&&this.routToMenuBySid(i,s)}}routToMenuBySid(e,n){let i=e.createUrlTree(this.cmsMenuService.getRouterLinkByCMSMenuSid(n));this.equalURL(i.toString(),e.url)?this.reloadPage():e.navigateByUrl(i)}openExternalLink(e){e&&this.window.open(e.url,e.linkTarget?e.linkTarget:"_blank").focus()}reloadPage(){this.templateService.reloadTemplate()}routeToSid(e,n,i=null,a=void 0){if(n){let s=null;s=e.createUrlTree(i?[this.cmsMenuService.baseUrl,this.cmsMenuService.getNavigationSidOrAlias(n),this.getRouteObjectsByParams(i)]:this.cmsMenuService.getRouterLinkByCMSMenuSid(+n)),this.equalURL(s.toString(),e.url)?this.reloadPage():(a&&(s.fragment=a),e.navigateByUrl(s))}}equalURL(e,n){return e.endsWith("/")||(e+="/"),n.endsWith("/")||(n+="/"),e==n}historyBack(e=null){e?this.window.history.go(-e):this.window.history.back()}refreshParam(e,n,i,a=!1,s=!1){let c=this.window.location.pathname,_=c.split(";"),B=this.getCMSModuleParamValByIncoming(!0,i,e);if("object"==typeof n&&(n=JSON.stringify(n)),n=encodeURIComponent(n).replace(/\./g,""),B){let I=!1;for(let E=1;E<_.length;E++){let C=_[E].split("=");C[0]==B.paramName&&(C[1]=n.toString(),I=!0,_[E]=C[0]+"="+C[1])}I||_.push(B.paramName+"="+n),c=_[0];for(let E=1;E<_.length;E++)c+=";",c+=_[E];s?this.location.go(c):this.location.replaceState(c),a&&this.scrollToTop()}}getActDate(){return new Date}navigateByCMSMenuSid(e,n=null,i){let a=this.cmsMenuService.getRouterLinkByCMSMenuSid(e);i.navigate(n?a.concat(n):a)}setSizeParams(e,n){e&&(this.renderer.setStyle(this.el.nativeElement,"min-height",e+"px"),this.renderer.addClass(this.el.nativeElement,"has-fixed-height")),n&&(this.renderer.setStyle(this.el.nativeElement,"min-width",n+"px"),this.renderer.setStyle(this.el.nativeElement,"max-width",n+"px"),this.renderer.addClass(this.el.nativeElement,"has-fixed-width"))}setShown(){this.isShown.emit()}setUserRequired(e,n){this.subscriptions.push(this.injector.get(D.w).o_loaded.pipe((0,d.$)(i=>i),(0,f.C)(e.o_user)).subscribe(()=>{e.currentUserSid||(this.ngOnDestroy(),this.routeToSid(n,this.cmsMenuService.getCMSMenuHomeSid()))}))}static{this.\u0275fac=function(n){m.QTQ()}}static{this.\u0275dir=m.FsC({type:o,features:[m.Vt3]})}}return o}
1)()},69189:(G,M,l)=>{l.d(M,{C:()=>f});var F=l(31397),d=l(98071);function f(p,t,g=1/0){return(0,d.T)(t)?(0,F.Z)(()=>p,t,g):("number"==typeof t&&(g=t),(0,F.Z)(()=>p,g))}},90195:(G,M,l)=>{l.r(M),l.d(M,{EditContractProductGroupsPComponent:()=>b,EditContractProductGroupsPModule:()=>j});var F=l(60801),d=l(89417),f=l(72200),p=l(2615),t=l(73664),g=l(16935);function v(r,h){1&r&&(t.j41(0,"label"),t.EFF(1,"Menge"),t.k0s())}function S(r,h){if(1&r&&(t.j41(0,"div"),t.EFF(1,"\n "),t.j41(2,"span"),t.EFF(3),t.k0s(),t.EFF(4,"\n "),t.j41(5,"span"),t.EFF(6),t.k0s(),t.EFF(7,"\n "),t.k0s()),2&r){const o=t.XpG(2).$implicit;t.R7$(3),t.JRh(o.amount),t.R7$(3),t.JRh(o.enqPropUnit)}}function m(r,h){if(1&r&&(t.j41(0,"div",12),t.EFF(1,"\n "),t.nrm(2,"input",13),t.EFF(3,"\n "),t.j41(4,"div",14),t.EFF(5,"\n "),t.j41(6,"span",15),t.EFF(7),t.k0s(),t.EFF(8,"\n "),t.k0s(),t.EFF(9,"\n "),t.k0s()),2&r){const o=t.XpG(2).$implicit;t.R7$(7),t.JRh(o.enqPropUnit)}}function T(r,h){if(1&r&&(t.qex(0),t.EFF(1,"\n "),t.DNE(2,S,8,2,"div",8),t.EFF(3,"\n "),t.DNE(4,m,10,1,"div",11),t.EFF(5,"\n "),t.bVm()),2&r){const o=t.XpG().$implicit;t.R7$(2),t.Y8G("ngIf",!o.editMode),t.R7$(2),t.Y8G("ngIf",o.editMode)}}function P(r,h){if(1&r){const o=t.RV6();t.j41(0,"button",16),t.bIt("click",function(){p.eBV(o);const e=t.XpG().$implicit;return p.Njj(e.editMode=!0)}),t.EFF(1,"bearbeiten"),t.k0s()}}function D(r,h){if(1&r){const o=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){p.eBV(o);const e=t.XpG().index,n=t.XpG().index,i=t.XpG();return p.Njj(i.deleteProductGroup(n,e))}),t.EFF(1,"\n "),t.nrm(2,"i",18),t.EFF(3,"\n "),t.j41(4,"span"),t.EFF(5,"l\xf6schen"),t.k0s(),t.EFF(6,"\n "),t.k0s()}}function R(r,h){if(1&r&&(t.j41(0,"tr",5),t.EFF(1,"\n "),t.j41(2,"td"),t.EFF(3),t.k0s(),t.EFF(4,"\n "),t.j41(5,"td"),t.EFF(6,"\n "),t.DNE(7,T,6,2,"ng-container",8),t.EFF(8,"\n "),t.k0s(),t.EFF(9,"\n "),t.j41(10,"td"),t.EFF(11,"\n "),t.DNE(12,P,2,0,"button",9),t.EFF(13,"\n "),t.DNE(14,D,7,0,"button",10),t.EFF(15,"\n "),t.k0s(),t.EFF(16,"\n "),t.k0s()),2&r){const o=h.$implicit,u=h.index,e=t.XpG().$implicit;t.Y8G("formGroupName",u),t.R7$(3),t.JRh(o.aName),t.R7$(4),t.Y8G("ngIf",e.hasAmount),t.R7$(5),t.Y8G("ngIf",!o.editMode),t.R7$(2),t.Y8G("ngIf",o.editMode)}}function O(r,h){if(1&r&&(t.j41(0,"div",5),t.EFF(1,"\n "),t.j41(2,"h2"),t.EFF(3),t.nrm(4,"img",6),t.k0s(),t.EFF(5,"\n "),t.j41(6,"table",7),t.EFF(7,"\n "),t.j41(8,"thead"),t.EFF(9,"\n "),t.j41(10,"tr"),t.EFF(11,"\n "),t.j41(12,"th")(13,"label"),t.EFF(14,"Produktgruppen"),t.k0s()(),t.EFF(15,"\n "),t.j41(16,"th"),t.DNE(17,v,2,0,"label",8),t.k0s(),t.EFF(18,"\n "),t.nrm(19,"th"),t.EFF(20,"\n "),t.k0s(),t.EFF(21,"\n "),t.k0s(),t.EFF(22,"\n "),t.j41(23,"tbody"),t.EFF(24,"\n "),t.DNE(25,R,17,5,"tr",2),t.EFF(26,"\n "),t.k0s(),t.EFF(27,"\n "),t.k0s(),t.EFF(28,"\n "),t.k0s()),2&r){const o=h.$implicit;t.Y8G("formGroupName",h.index),t.R7$(3),t.SpI("",o.aName," "),t.R7$(),t.Y8G("src",o.picPath,t.B4B),t.R7$(13),t.Y8G("ngIf",o.hasAmount),t.R7$(8),t.Y8G("ngForOf",o.productGroups)}}let b=(()=>{class r extends F.I{constructor(o,u,e){super(o),this.fb=u,this.s_routing=e,this.jobBatches=[{aName:"AMA-G\xfctesiegel",picPath:"app/webshop/img/gs.png",hasAmount:!0,productGroups:[{aName:"Mastschweine",amount:170,enqPropUnit:"Stk",editMode:!1}]}],this.productGroupForm=this.fb.group({jobBatches:this.fb.array(this.jobBatches.map(n=>this.fb.group({productGroups:this.fb.array(n.productGroups.map(i=>this.fb.group({amount:[i.amount]})))})))})}ngOnInit(){}setProperties(o,u){let e=this.s_routing.getCMSModuleParamValByIncoming(!1,"addCMSMenuSid");e&&(e.cmsMenuDestSid?this.addCMSMenuSid=e.cmsMenuDestSid:e.value&&(this.addCMSMenuSid=+e.value))}getProductGroups(o){return this.productGroupForm.get(["jobBatches",o,"productGroups"])}deleteProductGroup(o,u){this.jobBatches[o].productGroups.splice(u,1),this.getProductGroups(o).removeAt(u)}
1resetEditMode(){this.jobBatches.forEach(o=>{o.productGroups.forEach(u=>{u.editMode=!1})})}static{this.\u0275fac=function(u){return new(u||r)(t.rXU(p.zZn),t.rXU(d.ze),t.rXU(g.O))}}static{this.\u0275cmp=t.VBU({type:r,selectors:[["fab-edit-contract-product-groups"]],standalone:!1,features:[t.Vt3],decls:17,vars:2,consts:[[3,"ngSubmit","formGroup"],["formArrayName","jobBatches"],[3,"formGroupName",4,"ngFor","ngForOf"],["type","button",3,"click"],["type","submit"],[3,"formGroupName"],[3,"src"],["formArrayName","productGroups",1,"form-table","fixed-columns"],[4,"ngIf"],["class","arrow","type","button",3,"click",4,"ngIf"],["class","icon","type","button",3,"click",4,"ngIf"],["class","input-group",4,"ngIf"],[1,"input-group"],["type","number","formControlName","amount",1,"form-control"],[1,"input-group-append"],[1,"input-group-text"],["type","button",1,"arrow",3,"click"],["type","button",1,"icon",3,"click"],[1,"fa","fa-times"]],template:function(u,e){1&u&&(t.j41(0,"form",0),t.bIt("ngSubmit",function(){return e.resetEditMode()}),t.EFF(1,"\n "),t.j41(2,"h1"),t.EFF(3,"Landwirtschaftliche Produkte bzw. Tiere"),t.k0s(),t.EFF(4,"\n "),t.j41(5,"div",1),t.EFF(6,"\n "),t.DNE(7,O,29,5,"div",2),t.EFF(8,"\n "),t.k0s(),t.EFF(9,"\n "),t.j41(10,"button",3),t.bIt("click",function(){return e.s_routing.routeToCmsMenuSid(e.addCMSMenuSid)}),t.EFF(11,"Neue Produktgruppe beantragen"),t.k0s(),t.EFF(12,"\n "),t.j41(13,"button",4),t.EFF(14,"Daten an AMA-Marketing \xfcbermitteln"),t.k0s(),t.EFF(15,"\n"),t.k0s(),t.EFF(16,"\n\n")),2&u&&(t.Y8G("formGroup",e.productGroupForm),t.R7$(7),t.Y8G("ngForOf",e.jobBatches))},dependencies:[f.Sq,f.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.j4,d.JD,d.$R,d.v8],styles:["h2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:50px}"],changeDetection:0})}}return r})(),j=(()=>{class r{static{this.\u0275fac=function(u){return new(u||r)}}static{this.\u0275mod=t.$C({type:r})}static{this.\u0275inj=p.G2t({imports:[f.MD,d.X1]})}}return r})()}}]);
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.