PageSourceSearch

https://app.gigey.it/chunk-TIYU3S7H.js

js gigey.it collected 2026-10-08 10:04:53 UTC 5,570 bytes, 3 lines download raw bytes

1import{H,I as q,a as U,c as T,e as B,f as D,k as W,m as $,p as G,qa as Y,u as L,v as z,va as J}from"./chunk-TXGVB7MQ.js";import{Ba as d,Ha as C,I as u,Ia as S,J as h,Ja as y,Ka as n,Kb as P,L as f,La as o,Ma as M,Od as N,P as b,Pb as F,Q as v,Qa as I,Qb as E,Rd as R,Ta as g,Tb as V,V as k,Va as w,W as _,Xc as j,Xd as A,hb as a,ib as x,ja as c,ka as m,rb as O}from"./chunk-GWEXS2NE.js";import"./chunk-RV33I2IG.js";var p=(()=>{let e=class e{constructor(i,t){this.http=i,this.baseUrl=t}single(i){return this.http.get(`${this.baseUrl}api/webapp/feedback/feedback/${i}`)}insert(i){return this.http.post(`${this.baseUrl}api/webapp/feedback/feedback`,i)}};e.\u0275fac=function(t){return new(t||e)(f(V),f("BASE_URL"))},e.\u0275prov=u({token:e,factory:e.\u0275fac});let r=e;return r})();var Z=r=>[r];function tt(r,e){if(r&1){let l=I();n(0,"div",10),g("click",function(){let t=k(l).$implicit,s=w();return _(s.selectStar(t.id))}),n(1,"mat-icon"),a(2),o()()}if(r&2){let l=e.$implicit;d("ngClass",O(2,Z,l.class)),c(2),x(l.icon)}}var Q=(()=>{let e=class e{constructor(i,t,s){this.fb=i,this.feedbackService=t,this.router=s,this.subs=new Y,this.isSending=!1,this.selectedRating=0,this.stars=[{id:1,icon:"star",class:"star-gray star-hover star"},{id:2,icon:"star",class:"star-gray star-hover star"},{id:3,icon:"star",class:"star-gray star-hover star"},{id:4,icon:"star",class:"star-gray star-hover star"},{id:5,icon:"star",class:"star-gray star-hover star"}],this.form=this.fb.group({id:this.fb.control(null),timeslotId:this.fb.control(null),vote:this.fb.control(null,T.required),note:this.fb.control(null)})}ngOnInit(){this.feedbackId?this.getSingle():this.form.patchValue({timeslotId:this.timeslotId})}onSubmit(){this.insertUpdate()}getSingle(){this.subs.sink=this.feedbackService.single(this.feedbackId).subscribe(i=>{this.form.patchValue(i),this.selectedRating=i.vote,this.stars.filter(t=>(t.id<=this.selectedRating?t.class="star-gold star":t.class="star-grey star",t))})}insertUpdate(){this.isSending=!0;let i=this.form.value;this.subs.sink=this.feedbackService.insert(i).subscribe({next:t=>{this.router.navigate(["/app/customer/dashboard"]),this.isSending=!1},error:t=>{console.log(t)}})}selectStar(i){this.stars.filter(t=>(t.id<=i?t.class="star-gold star":t.class="star-grey star",t)),this.selectedRating=i,this.form.patchValue({vote:this.selectedRating})}};e.\u0275fac=function(t){return new(t||e)(m(z),m(p),m(N))},e.\u0275cmp=b({type:e,selectors:[["webapp-feedbacks-component"]],inputs:{timeslotId:"timeslotId",feedbackId:"feedbackId"},decls:32,vars:2,consts:[[1,"page_title"],[1,"page_content"],[1,"inner"],[1,"pwa_form"],[3,"formGroup"],[1,"pwa_form_control"],[1,"star-rating-container","star-rating-animation","mb-6"],[3,"ngClass"],["matInput","","rows","5","maxlength","500","formControlName","note","placeholder","Aggiungi delle note sull'incontro"],["mat-flat-button","","color","accent",1,"send_button","mb-6",3,"click","disabled"],[3,"click","ngClass"]],template:function(t,s){t&1&&(n(0,"div")(1,"h1",0)(2,"mat-icon"),a(3,"reviews"),o(),n(4,"span")(5,"span"),a(6,"Feedback"),o(),n(7,"small"),a(8,"Condividi il tuo feedback sull'incontro."),o()()(),n(9,"div",1)(10,"div",2)(11,"div",3)(12,"form",4)(13,"div",5)(14,"label")(15,"mat-icon"),a(16,"chevron_right"),o(),n(17,"span"),a(18,"Come \xE8 andato l'incontro ?"),o()(),n(19,"div",6),S(20,tt,3,4,"div",7,C),o()(),n(22,"div",5)(23,"label")(24,"mat-icon"),a(25,"chevron_right"),o(),n(26,"span"),a(27,"Vuoi aggiungere delle note?"),o()(),n(28,"mat-form-field"),M(29,"textarea",8),o()(),n(30,"button",9),g("click",function(){return s.onSubmit()}),a(31,"Invia feedback"),o()()()()()()),t&2&&(c(12),d("formGroup",s.form),c(8),y(s.stars),c(10),d("disabled",!s.form.valid||s.isSending))},dependencies:[P,W,U,B,D,L,$,G,H,j,A,q],styles:[`@keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.send_button[_ngcontent-%COMP%]{float:right}.star-rating-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.star[_ngcontent-%COMP%]{margin:0;color:#a9a5a5;display:inline-block;cursor:pointer;transition:all .3s;transform:scale(1)}.star[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:50px;width:50px;height:50px}.star-gold[_ngcontent-%COMP%], .star-rating-animation[_ngcontent-%COMP%]:hover   .star-hover[_ngcontent-%COMP%]{color:orange}.star-rating-animation[_ngcontent-%COMP%]   .star-hover[_ngcontent-%COMP%]:hover ~ .star-hover[_ngcontent-%COMP%]{color:#ddd}.star.star-rating-animation[_ngcontent-%COMP%]   .star-hover[_ngcontent-%COMP%]:hover{transform:scale(1.3)}
2/*# sourceMappingURL=feedbacks.component-NOL34OYN.css.map */`]});let r=e;return r})();var et=[{path:"",component:Q,data:{title:"Modules.Feedbacks.PageTitle"}}],St=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v({type:e}),e.\u0275inj=h({providers:[p,F],imports:[E,J,R.forChild(et)]});let r=e;return r})();export{St as WebAppFeedbacksModule};
3//# sourceMappingURL=chunk-TIYU3S7H.js.map

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.