1import{a as ge}from"./chunk-UKRN2HMV.js";import{a as he}from"./chunk-ESJJVGZP.js";import{a as fe}from"./chunk-SMS64QI5.js";import"./chunk-AMBOLOH3.js";import{a as ve}from"./chunk-747ASOLS.js";import"./chunk-DDDUTK4P.js";import{a as Pe}from"./chunk-PJKCBRYK.js";import"./chunk-RJZOXF2I.js";import{a as Ce}from"./chunk-T2EL3MBF.js";import{a as de}from"./chunk-HRYFQHJI.js";import"./chunk-2JSDP7IP.js";import"./chunk-3KFWRR46.js";import"./chunk-2BAZ5ULY.js";import"./chunk-UXB6GJH7.js";import"./chunk-T7RQGIZD.js";import"./chunk-T4X6B7W6.js";import{a as l,b as B,c as p,d as se}from"./chunk-G26JNVHK.js";import{$a as Z,$b as ee,C as i,Dd as $,Ga as Q,Ha as s,Hb as C,Hc as g,Ia as c,Ic as L,Ja as W,Jc as ae,Kc as ne,Lc as ie,Nc as h,Oc as re,Q as v,Qa as X,Qc as S,Rc as ce,T as R,Tc as le,U as j,V as N,W as z,Z as a,Za as I,_a as Y,a as u,b as y,ce as me,da as U,fe as T,ge as ue,n as V,na as f,nb as _,o as d,ob as E,q as A,qd as pe,ra as K,rc as te,sa as H,sc as oe,ta as q,ua as J,vc as n,wc as P,z as F}from"./chunk-5VZGDNRC.js";var r=n("[CALCOLO PREVENTIVO BUSTAPAGA] Init feature"),O=n("[CALCOLO PREVENTIVO BUSTAPAGA] Reset feature"),Be=n("[CALCOLO PREVENTIVO BUSTAPAGA] Show modal gestione consensi",P()),k=n("[CALCOLO PREVENTIVO BUSTAPAGA] Salva consensi",P()),G=n("[CALCOLO PREVENTIVO BUSTAPAGA] Get consensi"),m=n("[CALCOLO PREVENTIVO BUSTAPAGA] Set consensi",P());var M=class o extends de{store=a(g);translate=a(S);actions$=a(B);homeService$=a(Ce);constructor(e){super(e)}onFeatureSelected(e){this.store.dispatch(r())}ngOnDestroy(){this.store.dispatch(O()),super.ngOnDestroy()}ngOnInit(){super.ngOnInit();let t=this.translate.stream("fides.title.calcolo.preventivo.busta.paga").subscribe(b=>{document.title=b});t&&this.subscriptions.push(t)}onProcedi(e){this.store.dispatch(Be({id:e}))}onCalcolaPreventivoBustaPaga(e){}goBack(){this.store.dispatch(ue())}static \u0275fac=function(t){return new(t||o)(K(U))};static \u0275cmp=H({type:o,selectors:[["calcolo-preventivo-busta-paga"]],features:[J],decls:14,vars:7,consts:[["id","main-content","tabindex","-1",1,"container"],["role","banner",1,"header-container"],[1,"top-title-container"],[3,"backClick"],[1,"title-container"],[1,"headline1"],[1,"subtitle-container"],[1,"text-typo"],[1,"body-container"],["isCalcoloConBustaPaga","",3,"verticalLayout"]],template:function(t,b){t&1&&(s(0,"main",0)(1,"div",1)(2,"div",2)(3,"app-back-button",3),X("backClick",function(){return b.goBack()}),c(),s(4,"div",4)(5,"h1",5),I(6),_(7,"translate"),c()()(),s(8,"div",6)(9,"span",7),I(10),_(11,"translate"),c()()(),s(12,"div",8),W(13,"form-calcola-preventivo",9),c()()),t&2&&(f(6),Z(" ",E(7,3,"calcolo.preventivo.busta.baga.title")," "),f(4),Y(E(11,5,"calcolo.preventivo.busta.paga.subtitle")),f(3),Q("verticalLayout",!1))},dependencies:[le,te,C,oe,Pe,ge,ce],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] .top-title-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-top:26px;width:100%;gap:12px}.container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] .top-title-container[_ngcontent-%COMP%] .icon-back[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end;width:28px;height:28px}.container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] .top-title-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%] .bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}"]})};var Oe=[{path:"",component:M}];var w={feature:9,initialized:!1,consensi:[]},D="calcoloPrevBustaPaga",Me=ne({name:D,reducer:re(w,h(r,()=>y(u({},w),{initialized:!0})),h(O,()=>u({},w)),h(m,(o,e)=>y(u({},o),{consensi:e.consensi})))});var xe=ae(D),it=L(xe,o=>o.feature),be=L(xe,o=>o.consensi);var x=class o{actions$=a(B);registrazioneSrv$=a(ve);simulazioneSrv$=a(he);modalSrv$=a(pe);translateSrv$=a(S);store=a(g);gestioneConsensiModalRef;constructor(){}initFeature$=l(()=>this.actions$.pipe(p(r),A(()=>G())));getConsensi$=l(()=>this.actions$.pipe(p(G),v(()=>this.simulazioneSrv$.getConsensiSimulazione().pipe(i(1),A(e=>m({consensi:e})),F(e=>d(T({error:e}))),$()))));openGestioneConsensiModal$=l(()=>this.actions$.pipe(p(m),j(this.store.select(be)),R(([e,t])=>{this._openGestioneConsensiModal(t)})),{dispatch:!1});_openGestioneConsensiModal(e){this.gestioneConsensiModalRef=this.modalSrv$.showForComponent(void 0,fe,[{id:"procedi",label:this.translateSrv$.stream("common.procedi"),variant:"primary",notCloseDialog:!0,position:"left",handle:()=>this.modalConsensiOnProcedi()},{id:"annulla",label:this.translateSrv$.stream("common.annulla"),variant:"outline",position:"right",handle:()=>this.modalConsensiOnClose()}],void 0,void 0,!0,!1,"modal-contattaci","modal-contattaci-footer"),this.gestioneConsensiModalRef.subComponent$.pipe(i(1),v(t=>(t.consensi=e,t.modalRef?V(t.modalRef.result).pipe(i(1)):d(void 0)))).subscribe(()=>{})}modalConsensiOnClose(){this.store.dispatch(me({feature:2}))}modalConsensiOnProcedi(){this.gestioneConsensiModalRef?.subComponent$.pipe(i(1)).subscribe(e=>{let t=e.rispostaConsensi??[];this.store.dispatch(k({consensi:t}))})}salvaConsensi$=l(()=>this.actions$.pipe(p(k),v(e=>this.registrazioneSrv$.salvaConsensi({listaConsensi:e.consensi}).pipe(i(1),R(()=>{this.gestioneConsensiModalRef?.close()}),F(t=>d(T({error:t}))),$()))),{dispatch:!1});static \u0275fac=function(t){return new(t||o)};static \u0275prov=N({token:o,factory:o.\u0275fac})};var ye=class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=q({type:o});static \u0275inj=z({providers:[ee(Oe),se([x]),ie(Me)],imports:[C]})};export{ye as CalcoloPrevBustaPagaModule};
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.