1import{a as Qt}from"./chunk-D466HNJZ.js";import{a as Nt}from"./chunk-OTADICJ2.js";import{Ba as Ft,Na as It,na as Ht,sa as Rt}from"./chunk-PN4O5FMN.js";import"./chunk-D67Q4DSW.js";import{f as Tt}from"./chunk-RYZZHX5M.js";import{a as Et,b as Wt}from"./chunk-NJJ3FAAI.js";import"./chunk-MPFAWZ35.js";import{a as Ot}from"./chunk-AV3H5C4Z.js";import"./chunk-BI27YA3Y.js";import{E as rt,F as st,Hb as M,Hc as d,Ib as P,Ic as p,Jb as vt,Jc as St,Kb as wt,L as ct,Lb as H,Mb as R,Nb as g,Ob as r,Pb as l,Qb as _,Rb as h,Sb as v,T as $,Tb as S,Tc as O,U as dt,Va as W,Xb as q,Ya as ft,Yb as L,Yc as m,Z as pt,_a as a,a as K,ac as j,b as ot,cc as x,da as I,db as A,eb as ut,g as Jt,ia as k,ja as z,jb as G,kc as B,md as Dt,nd as y,oc as c,pc as w,q as it,qb as f,qc as C,ra as b,rc as bt,s as at,sb as ht,tb as xt,tc as Ct,ua as mt,uc as yt,va as gt,vc as Mt,x as Y,xa as _t,yc as Pt,z as lt}from"./chunk-ZN33ZYYU.js";var kt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-header-banner"]],decls:17,vars:12,consts:[[1,"header-banner"],[1,"header-banner__content"],[1,"header-banner__content__left"],[1,"header-banner__content__right"],["src","assets/reviews/banner-stars.svg","alt","header-banner"]],template:function(n,i){n&1&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),c(4),d(5,"transloco"),S(6,"br"),c(7),d(8,"transloco"),v(),h(9,"p"),c(10),d(11,"transloco"),S(12,"br"),c(13),d(14,"transloco"),v()(),h(15,"div",3),S(16,"img",4),v()()()),n&2&&(a(4),C(" ",p(5,4,"notationsPage.header.title1")," "),a(3),C(" ",p(8,6,"notationsPage.header.title2")," "),a(3),C(" ",p(11,8,"notationsPage.header.description1")," "),a(3),C(" ",p(14,10,"notationsPage.header.description2")," "))},dependencies:[y],styles:[".header-banner[_ngcontent-%COMP%]{background-color:var(--primary-400);height:512px;display:flex;justify-content:center;align-items:center}@media (max-width: 820px){.header-banner[_ngcontent-%COMP%]{height:362px}}.header-banner__content[_ngcontent-%COMP%]{max-width:var(--wrapper-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:16px}@media (max-width: 820px){.header-banner__content[_ngcontent-%COMP%]{flex-direction:column;justify-content:center}}.header-banner__content__left[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;padding-left:50px}@media (max-width: 820px){.header-banner__content__left[_ngcontent-%COMP%]{width:100%;padding:0 32px}}.header-banner__content__left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:64px;font-weight:700;line-height:80px}@media (max-width: 820px){.header-banner__content__left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:36px;line-height:44px}}.header-banner__content__left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:18px;font-weight:700;line-height:24px}@media (max-width: 820px){.header-banner__content__left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:20px}}.header-banner__content__right[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:flex-end;align-items:center;padding-right:150px}@media (max-width: 820px){.header-banner__content__right[_ngcontent-%COMP%]{display:none}}"]})}return t})();var zt=(()=>{class t extends Tt{fetch(e){let n=new Ot({fromObject:K({},e)});return this.http.get(`${this.api.dns}/notations?${n.toString()}`)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=gt(t)))(i||t)}})();static \u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function te(t,o){if(t&1&&(h(0,"div",1)(1,"div",2),S(2,"img",3),v(),h(3,"div",4),S(4,"img",5),v()()),t&2){let e=o.$implicit,n=x();a(3),B("width",e.filled,"%"),a(),L("src","assets/reviews/"+(n.color()==="green"?"full-star-green.svg":"full-star-yellow.svg"),W)}}var V=(()=>{class t{note=m();color=m("yellow");stars=O(()=>{let e=this.note();return e?.toFixed(1)});starsArray=O(()=>{let e=this.note();if(e==null)return Array(5).fill({filled:0});let n=[],i=Math.floor(e),s=e-i;for(let u=0;u<i;
1u++)n.push({filled:100});for(s>0&&n.length<5&&n.push({filled:Math.round(s*100)});n.length<5;)n.push({filled:0});return n});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-notation-stars"]],inputs:{note:[1,"note"],color:[1,"color"]},decls:3,vars:0,consts:[[1,"stars-container"],[1,"star-wrapper"],[1,"star-empty"],["src","assets/reviews/empty-star.svg","alt","Empty star"],[1,"star-filled"],["alt","Filled star",3,"src"]],template:function(n,i){n&1&&(h(0,"div",0),H(1,te,5,3,"div",1,wt),v()),n&2&&(a(),R(i.starsArray()))},styles:[".stars-container[_ngcontent-%COMP%]{display:flex;align-items:center}.stars-container[_ngcontent-%COMP%] .star-wrapper[_ngcontent-%COMP%]{position:relative;width:24px;height:24px;margin-right:8px}.stars-container[_ngcontent-%COMP%] .star-wrapper[_ngcontent-%COMP%] .star-empty[_ngcontent-%COMP%], .stars-container[_ngcontent-%COMP%] .star-wrapper[_ngcontent-%COMP%] .star-filled[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;overflow:hidden}.stars-container[_ngcontent-%COMP%] .star-wrapper[_ngcontent-%COMP%] .star-empty[_ngcontent-%COMP%]{width:100%}.stars-container[_ngcontent-%COMP%] .star-wrapper[_ngcontent-%COMP%] .star-filled[_ngcontent-%COMP%]{width:0}"]})}return t})();var jt=(()=>{class t{globalNotation=m();totalReviews=m();notation=O(()=>{let e=this.globalNotation();return e?.toFixed(1)});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-global-notation"]],inputs:{globalNotation:[1,"globalNotation"],totalReviews:[1,"totalReviews"]},decls:10,vars:9,consts:[[1,"global-notations"],[1,"global-notations__title"],[1,"global-notations__notation"],["color","green",3,"note"],[1,"global-notations__text"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"h2",1),c(2),d(3,"transloco"),l(),r(4,"p",2),c(5),l(),_(6,"app-notation-stars",3),r(7,"p",4),c(8),d(9,"transloco"),l()()),n&2&&(a(2),C(" ",p(3,5,"notationsPage.globalSatisfaction")," "),a(3),w(i.notation()),a(),g("note",i.globalNotation()),a(2),bt(" (",i.totalReviews()," ",p(9,7,"notationsPage.reviews"),") "))},dependencies:[V,y],styles:["[_nghost-%COMP%]{width:100%}.global-notations[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:24px;background-color:var(--neutral-0);border-radius:12px;width:100%}.global-notations__title[_ngcontent-%COMP%]{color:var(--neutral-500, #7984A0);font-size:18px;font-weight:700;line-height:24px}.global-notations__notation[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);text-align:center;font-size:40px;font-weight:700;line-height:56px}.global-notations__text[_ngcontent-%COMP%]{color:var(--gray-550);font-size:14px;font-weight:500;line-height:18px}"]})}return t})();var U=(()=>{class t{label=m("");value=m();maximum=m(100);displayDecimal=m(!1);labelWidth=m(50);percentage=O(()=>{let e=this.value()??0,n=this.maximum()??100;return e<=0||n<=0?0:Math.min(100,e/n*100)});displayableValue=O(()=>{let e=this.value();return e!=null?this.displayDecimal()?e.toFixed(1):e.toFixed(0):void 0});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-notation-progress"]],inputs:{label:[1,"label"],value:[1,"value"],maximum:[1,"maximum"],displayDecimal:[1,"displayDecimal"],labelWidth:[1,"labelWidth"]},decls:7,vars:6,consts:[[1,"progress"],[1,"progress-label"],[1,"progress-container"],[1,"progress-bar"],[1,"progress-value"]],template:function(n,i){n&1&&(h(0,"div",0)(1,"span",1),c(2),v(),h(3,"div",2),S(4,"div",3),v(),h(5,"span",4),c(6),v()()),n&2&&(a(),B("width",i.labelWidth(),"%"),a(),w(i.label()),a(2),B("width",i.percentage(),"%"),a(2),w(i.displayableValue()))},styles:["[_nghost-%COMP%]{width:100%}.progress[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:row;justify-content:space-between;gap:16px;width:100%}.progress-container[_ngcontent-%COMP%]{width:100%;height:6px;background-color:#f2f3f6;border-radius:3px;overflow:hidden}.progress[_ngcontent-%COMP%] .progress-value[_ngcontent-%COMP%]{color:var(--neutral-600, #6E7892);text-align:right;font-size:14px;font-weight:500;line-height:18px;min-width:40px}.progress[_ngcontent-%COMP%] .progress-label[_ngcontent-%COMP%]{color:var(--neutral-800, #434958);font-size:12px;font-weight:500;line-height:16px;width:50%;white-space:nowrap}
1.progress[_ngcontent-%COMP%] .progress-bar[_ngcontent-%COMP%]{height:100%;background-color:#74ebcd;transition:width .3s ease}"]})}return t})();var Bt=(()=>{class t{globalPedagogy=m(0);globalHospitality=m(0);globalKnowledge=m(0);globalRecommendation=m(0);static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-global-satistfaction"]],inputs:{globalPedagogy:[1,"globalPedagogy"],globalHospitality:[1,"globalHospitality"],globalKnowledge:[1,"globalKnowledge"],globalRecommendation:[1,"globalRecommendation"]},decls:13,vars:31,consts:[[1,"global-satisfaction"],[1,"global-satisfaction__title"],[1,"global-satisfaction__progress-container"],[3,"labelWidth","value","maximum","label","displayDecimal"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"h2",1),c(2),d(3,"transloco"),l(),r(4,"div",2),_(5,"app-notation-progress",3),d(6,"transloco"),_(7,"app-notation-progress",3),d(8,"transloco"),_(9,"app-notation-progress",3),d(10,"transloco"),_(11,"app-notation-progress",3),d(12,"transloco"),l()()),n&2&&(a(2),C(" ",p(3,21,"notationsPage.detailedGlobalSatisfaction")," "),a(3),g("labelWidth",55)("value",i.globalPedagogy())("maximum",5)("label",p(6,23,"notationsPage.pedagogy"))("displayDecimal",!0),a(2),g("labelWidth",55)("value",i.globalHospitality())("maximum",5)("label",p(8,25,"notationsPage.hospital
1ity"))("displayDecimal",!0),a(2),g("labelWidth",55)("value",i.globalKnowledge())("maximum",5)("label",p(10,27,"notationsPage.knowledge"))("displayDecimal",!0),a(2),g("labelWidth",55)("value",i.globalRecommendation())("maximum",5)("label",p(12,29,"notationsPage.recommendation"))("displayDecimal",!0))},dependencies:[U,y],styles:["[_nghost-%COMP%]{width:100%}.global-satisfaction[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:24px;background-color:var(--neutral-0);border-radius:12px;width:100%}.global-satisfaction__title[_ngcontent-%COMP%]{color:var(--neutral-500, #7984A0);font-size:18px;font-weight:700;line-height:24px;margin-bottom:24px}.global-satisfaction__progress-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;width:100%}"]})}return t})();var X=Jt(Qt());var Kt=(()=>{class t{transform(e,n="DD MMM YYYY",i){return i?(0,X.default)(e,i).format(n):(0,X.default)(e).format(n)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=xt({name:"dayjs",type:t,pure:!1})}return t})();function ee(t,o){if(t&1&&_(0,"img",17),t&2){let e=x(2).$implicit;g("src",e.departmentLogo,W)}}function ne(t,o){if(t&1&&(r(0,"p",16),c(1),d(2,"transloco"),l(),M(3,ee,1,1,"img",17),r(4,"p",18),c(5),l()),t&2){let e=x().$implicit;a(),C(" ",p(2,3,"notationsPage.reviewTo")," "),a(2),P(e.departmentLogo?3:-1),a(2),C("",e.departmentName," : ")}}
1function oe(t,o){if(t&1&&(r(0,"p",11),c(1),l()),t&2){let e=x().$implicit;a(),w(e.trainingName)}}function ie(t,o){if(t&1&&(r(0,"p",13),c(1),d(2,"dayjs"),l()),t&2){let e=x().$implicit;a(),w(St(2,1,e.date,"MMM DD, YYYY"))}}function ae(t,o){if(t&1&&(r(0,"p",14),c(1),l()),t&2){let e=x().$implicit;a(),w(e.comment)}}function le(t,o){t&1&&_(0,"hr",15)}function re(t,o){if(t&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"p",4),c(4),l(),r(5,"p",5),c(6),l()(),r(7,"div",6),_(8,"app-notation-stars",7),l()(),r(9,"div",8)(10,"div",9)(11,"div",10),M(12,ne,6,5),M(13,oe,2,1,"p",11),l(),r(14,"div",12),M(15,ie,3,4,"p",13),l()(),M(16,ae,2,1,"p",14),l()(),M(17,le,1,0,"hr",15)),t&2){let e=o.$implicit,n=o.$index,i=o.$count;a(4),w(e.name),a(2),w(e.speciality),a(2),g("note",e.globalNote),a(4),P(e.departmentName?12:-1),a(),P(e.trainingName?13:-1),a(2),P(e.date?15:-1),a(),P(e.comment?16:-1),a(),P(n!==i-1?17:-1)}}var Lt=(()=>{class t{notations=m([]);static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-notations-list"]],inputs:{notations:[1,"notations"]},decls:3,vars:0,consts:[[1,"notations-list"],[1,"notations-list__item"],[1,"notations-list__item__header"],[1,"notations-list__item__header__left"],[1,"notations-list__item__header__left__name"],[1,"notations-list__item__header__left__speciality"],[1,"notations-list__item__header__right"],[3,"note"],[1,"notations-list__item__content"],[1,"notations-list__item__content__info"],[1,"notations-list__item__content__info__left"],[1,"notations-list__item__content__training-name"],[1,"notations-list__item__content__info__right"],[1,"notations-list__item__content__date"],[1,"notations-list__item__content__description"],[1,"notations-list__item__separator"],[1,"notations-list__item__content__review-to"],["alt","Department logo",1,"notations-list__item__content__department-logo",3,"src"],[1,"notations-list__item__content__department"]],template:function(n,i){n&1&&(r(0,"div",0),H(1,re,18,8,null,null,vt),l()),n&2&&(a(),R(i.notations()))},dependencies:[V,Kt,y],styles:["[_nghost-%COMP%]{width:100%}.notations-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;background-color:var(--neutral-0);border-radius:12px;width:100%}.notations-list__item[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:16px;width:100%;padding:24px}
1.notations-list__item__separator[_ngcontent-%COMP%]{width:100%;height:1px;background-color:var(--neutral-100);border:none}.notations-list__item__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}.notations-list__item__header__left[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:4px}.notations-list__item__header__left__name[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:16px;font-weight:700;line-height:20px;margin-right:16px}.notations-list__item__header__left__speciality[_ngcontent-%COMP%]{color:var(--neutral-600, #6E7892);font-size:14px;font-weight:500;line-height:18px}.notations-list__item__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;width:100%}.notations-list__item__content__info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:8px;width:100%;flex-wrap:wrap}.notations-list__item__content__info__left[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:4px;flex:1;min-width:0;flex-wrap:wrap}.notations-list__item__content__info__right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;white-space:nowrap}.notations-list__item__content__date[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:12px;font-weight:500;line-height:16px;text-transform:uppercase}.notations-list__item__content__department[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:12px;font-weight:700;line-height:16px;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.notations-list__item__content__department-logo[_ngcontent-%COMP%]{height:24px;width:24px;border-radius:50%;object-fit:cover;border:.5px solid var(--neutral-200);flex-shrink:0}.notations-list__item__content__review-to[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:12px;font-weight:500;line-height:16px;white-space:nowrap;flex-shrink:0}
1.notations-list__item__content__training-name[_ngcontent-%COMP%]{color:var(--neutral-900, #333743);font-size:12px;font-weight:500;line-height:16px;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.notations-list__item__content__description[_ngcontent-%COMP%]{color:var(--neutral-600, #6E7892);font-size:14px;font-weight:400;line-height:18px}@media screen and (max-width: 768px){.notations-list__item__header[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:flex-start;gap:16px}.notations-list__item__header__left__name[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.notations-list__item__header__left__speciality[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.notations-list__item__content__info__left[_ngcontent-%COMP%]{margin-bottom:4px;max-width:100%}.notations-list__item__content__info__right[_ngcontent-%COMP%]{margin-left:auto}.notations-list__item__content__date[_ngcontent-%COMP%], .notations-list__item__content__department[_ngcontent-%COMP%], .notations-list__item__content__review-to[_ngcontent-%COMP%], .notations-list__item__content__training-name[_ng
1content-%COMP%]{font-size:11px;line-height:14px}.notations-list__item__content__description[_ngcontent-%COMP%]{font-size:12px;line-height:16px}}@media screen and (max-width: 480px){.notations-list__item[_ngcontent-%COMP%]{padding:16px}.notations-list__item__header__left__name[_ngcontent-%COMP%]{font-size:13px;line-height:16px}.notations-list__item__header__left__speciality[_ngcontent-%COMP%]{font-size:11px;line-height:14px}.notations-list__item__content__info[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.notations-list__item__content__info__left[_ngcontent-%COMP%]{width:100%}.notations-list__item__content__info__right[_ngcontent-%COMP%]{margin-top:4px;width:100%}.notations-list__item__content__date[_ngcontent-%COMP%], .notations-list__item__content__department[_ngcontent-%COMP%], .notations-list__item__content__review-to[_ngcontent-%COMP%], .notations-list__item__content__training-name[_ngcontent-%COMP%]{font-size:10px;line-height:12px}.notations-list__item__content__description[_ngcontent-%COMP%]{font-size:11px;line-height:15px}}"]})}return t})();function se(t,o,e,n){let i=window&&!!window.document&&window.document.documentElement,s=i&&o?window:e;if(t&&(s=t&&i&&typeof t=="string"?ce(t,e.nativeElement,n):t,!s))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return s}function ce(t,o,e){return(e?window.document:o).querySelector(t)}function Z(t){return t&&!t.firstChange}function de(){return typeof window<"u"}var pe={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},me={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"},J=class{constructor(o=!0){this.vertical=o,this.propsMap=o?pe:me}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}};function ge(t,o,e){return!!(t&&o||!e&&o)}function _e({windowElement:t,axis:o}){return fe({axis:o,isWindow:ue(t)},t)}function fe(t,o){let e=t.isWindow||o&&!o.nativeElement?o:o.nativeElement;return ot(K({},t),{container:e})}function ue(t){return["Window","global"].some(e=>Object.prototype.toString.call(t).includes(e))}function et(t,o){return t?o.document.documentElement:null}function Vt(t,o){let e=ve(o);return o.isWindow?he(e,t,o):xe(e,t,o)}function he(t,o,e){let{axis:n,container:i,isWindow:s}=e,{offsetHeightKey:u,clientHeightKey:N}=Ut(n),E=t+$t(et(s,i),n,s),T=Yt(o.nativeElement,s,u,N),F=we(o.nativeElement,n,s)+T;return{height:t,scrolled:E,totalToScroll:F,isWindow:s}}function xe(t,o,e){let{axis:n,container:i}=e,s=i[n.scrollTopKey()],u=i[n.scrollHeightKey()];return{height:t,scrolled:s,totalToScroll:u,isWindow:!1}}function Ut(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function ve({container:t,isWindow:o,axis:e}){let{offsetHeightKey:n,clientHeightKey:i}=Ut(e);return Yt(t,o,n,i)}function Yt(t,o,e,n){if(isNaN(t[e])){let i=et(o,t);return i?i[n]:0}else return t[e]}function we(t,o,e){let n=o.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[n]+$t(t,o,e)}function $t(t,o,e){let n=o.pageYOffsetKey(),i=o.scrollTopKey(),s=o.offsetTopKey();return isNaN(window.pageYOffset)?et(e,t)[i]:t.ownerDocument?t.ownerDocument.defaultView[n]:t[s]}function be(t,o={down:0,up:0},e){let n,i;if(t.totalToScroll<=0)return!1;let s=t.isWindow?t.scrolled:t.height+t.scrolled;if(e)n=(t.totalToScroll-s)/t.totalToScroll,i=(o?.down?o.down:0)/10;else{let N=t.scrolled+(t.totalToScroll-s);n=t.scrolled/N,i=(o?.up?o.up:0)/10}return n<=i}function Ce(t,o){return t<o.scrolled}function ye(t,o,e){let n=Ce(t,o);return{fire:be(o,e,n),scrollDown:n}}var Q=class{constructor(o){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},Object.assign(this,o)}updateScrollPosition(o){return this.lastScrollPosition=o}updateTotalToScroll(o){this.lastTotalToScroll!==o&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=o)}updateScroll(o,e){this.updateScrollPosition(o),this.updateTotalToScroll(e)}updateTriggeredFlag(o,e){e?this.triggered.down=o:this.triggered.up=o}isTriggeredScroll(o,e){return e?this.triggered.down===o:this.triggered.up===o}};function Me(t){let{scrollContainer:o,scrollWindow:e,element:n,fromRoot:i}=t,s=_e({axis:new J(!t.horizontal),windowElement:se(o,e,n,i)}),u=new Q({totalToScroll:Vt(n,s).totalToScroll}),N={container:s.container,throttle:t.throttle},E={up:t.upDistance,down:t.downDistance};return Pe(N).pipe(lt(()=>at(Vt(n,s))),Y(T=>Se(u.lastScrollPosition,T,E)),$(({stats:T})=>u.updateScroll(T.scrolled,T.totalToScroll)),st(({fire:T,scrollDown:F,stats:{totalToScroll:Zt}})=>ge(t.alwaysCallback,T,u.isTriggeredScroll(Zt,F))),$(({scrollDown:T,stats:{totalToScroll:F}})=>{u.updateTriggeredFlag(F,T)}),Y(Oe))}function Pe(t){let o=rt(t.container,"scroll");return t.throttle&&(o=o.pipe(dt(t.throttle,void 0,{leading:!0,trailing:!0}))),o}function Se(t,o,e){let{scrollDown:n,fire:i}=ye(t,o,e);return{scrollDown:n,fire:i,stats:o}}var tt={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Oe(t){let{scrollDown:o,stats:{scrolled:e}}=t;return{type:o?tt.DOWN:tt.UP,payload:{currentScrollPosition:e}}}var At=(()=>{class t{constructor(e,n){this.element=e,this.zone=n,this.scrolled=new A,this.scrolledUp=new A,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:e,infiniteScrollDisabled:n,infiniteScrollDistance:i}){let s=Z(e),u=Z(n),N=Z(i),E=!u&&!this.infiniteScrollDisabled||u&&!n.currentValue||N;(s||u||N)&&(this.destroyScroller(),E&&this.setup())}ngOnDestroy(){this.destroyScroller()}setup(){de()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=Me({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollC
1ontainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(e=>this.handleOnScroll(e))})}handleOnScroll({type:e,payload:n}){let i=e===tt.DOWN?this.scrolled:this.scrolledUp;De(i)&&this.zone.run(()=>i.emit(n))}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(G(_t),G(ut))}}static{this.\u0275dir=ht({type:t,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[mt]})}}return t})();function De(t){return t.observed??t.observers.length>0}var Te=(t,o)=>o.notation;function Ne(t,o){if(t&1&&(_(0,"app-notation-progress",3),d(1,"transloco")),t&2){let e=o.$implicit,n=x();g("label",Pt("",e.notation," ",p(1,6,e.notation===1?"notationsPage.star":"notationsPage.stars")))("labelWidth",20)("value",e.total)("maximum",n.maxNotation())}}var Gt=(()=>{class t{totales=m([]);reverseTotales=O(()=>[...this.totales()].reverse());maxNotation=O(()=>this.reverseTotales().find(e=>e.notation===5)?.total??this.reverseTotales()[0].total);static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-total-notation"]],inputs:{totales:[1,"totales"]},decls:7,vars:3,consts:[[1,"total-notation"],[1,"total-notation__title"],[1,"total-notation__progress-container"],[3,"labelWidth","value","maximum","label"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"h2",1),c(2),d(3,"transloco"),l(),r(4,"div",2),H(5,Ne,2,8,"app-notation-progress",3,Te),l()()),n&2&&(a(2),w(p(3,1,"notationsPage.globalRepartition")),a(3),R(i.reverseTotales()))},dependencies:[U,y],styles:["[_nghost-%COMP%]{width:100%}.total-notation[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:24px;background-color:var(--neutral-0);border-radius:12px;width:100%}.total-notation__title[_ngcontent-%COMP%]{color:var(--neutral-500, #7984A0);font-size:18px;font-weight:700;line-height:24px;margin-bottom:24px}.total-notation__progress-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;width:100%}"]})}return t})();var qt=(()=>{class t{localeService=I(Nt);getDocumentWithLocale(e){let n=this.localeService.locale(),i=(n==="fr"?n:"en").toUpperCase();return`${e}_${i}.pdf`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=f({type:t,selectors:[["app-notation-pdf"]],decls:10,vars:7,consts:[["target","_blank",3,"href"],[1,"notation-pdf"],[1,"notation-pdf__title"],[1,"fa-solid","fa-arrow-right-from-bracket"],[1,"notation-pdf__description"]],template:function(n,i){n&1&&(h(0,"a",0)(1,"div",1)(2,"span",2),S(3,"i",3),h(4,"p"),c(5),d(6,"transloco"),v()(),h(7,"p",4),c(8),d(9,"transloco"),v()()()),n&2&&(L("href",i.getDocumentWithLocale("assets/pdf/INVIVOX_Notation"),W),a(5),w(p(6,3,"notationsPage.howNotationWorks")),a(3),C(" ",p(9,5,"notationsPage.howNotationWorksDescription")," "))},dependencies:[y],styles:["[_nghost-%COMP%]{width:100%}.notation-pdf[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:24px;background-color:var(--neutral-0);border-radius:12px;width:100%}.notation-pdf__title[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}.notation-pdf__title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;color:var(--neutral-700)}.notation-pdf__title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--neutral-700);font-size:14px;font-weight:500;line-height:18px}.notation-pdf__description[_ngcontent-%COMP%]{color:var(--neutral-500);font-size:12px;font-weight:500;line-height:16px}"]})}return t})();function Ee(t,o){t&1&&(r(0,"div",2)(1,"div",4),_(2,"div",5),l()())}function We(t,o){t&1&&(r(0,"div",15)(1,"div",4),_(2,"div",5),l()())}
1function He(t,o){if(t&1){let e=q();r(0,"div",6)(1,"ivx-select",7),Mt("ngModelChange",function(i){k(e);let s=x();return yt(s.selectedFilter,i)||(s.selectedFilter=i),z(i)}),j("ngModelChange",function(i){k(e);let s=x();return z(s.updateFilter(i))}),l()(),r(2,"div",8)(3,"div",9),_(4,"app-global-notation",10)(5,"app-global-satistfaction",11)(6,"app-total-notation",12)(7,"app-notation-pdf"),l(),r(8,"div",13),j("scrolled",function(){k(e);let i=x();return z(i.onScroll())}),_(9,"app-notations-list",14),M(10,We,3,0,"div",15),l()()}if(t&2){let e=x();a(),g("options",e.filters()),Ct("ngModel",e.selectedFilter),g("optionLabel",e.options.locale),a(3),g("totalReviews",e.totalCount())("globalNotation",e.globalNotation()),a(),g("globalPedagogy",e.globalPedagogy())("globalHospitality",e.globalHospitality())("globalKnowledge",e.globalKnowledge())("globalRecommendation",e.globalRecommendation()),a(),g("totales",e.totales()),a(2),g("infiniteScrollDistance",2)("infiniteScrollThrottle",50)("scrollWindow",!0),a(),g("notations",e.notations()),a(),P(e.updateLoading()?10:-1)}}function Re(t,o){if(t&1){let e=q();r(0,"button",16),j("click",function(){k(e);let i=x();return z(i.scrollToTop())}),_(1,"i",17),l()}}var Xt=class nt{loading=b(!0);updateLoading=b(!1);notations=b([]);globalPedagogy=b(0);globalHospitality=b(0);globalKnowledge=b(0);globalRecommendation=b(0);globalNotation=b(0);totalCount=b(0);totales=b([]);stopScroll=b(!1);translate=I(Dt);filters=b([{id:0,fr:"Les plus r\xE9cents",en:"Most recent",uk:"\u041D\u0430\u0439\u043D\u043E\u0432\u0456\u0448\u0456"},{id:1,fr:"Les plus anciens",en:"Oldest",uk:"\u041D\u0430\u0439\u0441\u0442\u0430\u0440\u0456\u0448\u0456"},{id:2,fr:"Les meilleures notes",en:"Best notes",uk:"\u041D\u0430\u0439\u043A\u0440\u0430\u0449\u0456 \u043E\u0446\u0456\u043D\u043A\u0438"},{id:3,fr:"Les moins bonnes notes",en:"Worst notes",uk:"\u041D\u0430\u0439\u0433\u0456\u0440\u0448\u0456 \u043E\u0446\u0456\u043D\u043A\u0438"}]);selectedFilter=0;options={locale:"fr",orderBy:"date",orderDirection:"desc",items:100,page:1};showScrollTop=b(!1);notationsRequests=I(zt);onWindowScroll(){this.showScrollTop.set(window.scrollY>500)}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.updateNotations(!1),this.translate.langChanges$.subscribe(o=>{this.options.locale=o,this.updateNotations(!0)})}onScroll(){this.stopScroll()||(this.options.page++,this.updateNotations(!0))}updateFilter(o){switch(this.selectedFilter=o,this.selectedFilter){case 0:this.options.orderBy="date",this.options.orderDirection="desc";break;case 1:this.options.orderBy="date",this.options.orderDirection="asc";break;case 2:this.options.orderBy="globalNote",this.options.orderDirection="desc";break;case 3:this.options.orderBy="globalNote",this.options.orderDirection="asc"}this.options.page=1,this.updateNotations(!1)}updateNotations(o=!1){o?(this.updateLoading.set(!0),this.stopScroll.set(!1)):this.loading.set(!0),this.notationsRequests.fetch(this.options).pipe(ct(()=>{this.loading.set(!1),this.updateLoading.set(!1)}),Wt(this)).subscribe(e=>{e.data.notations.length<this.options.items&&this.stopScroll.set(!0),o?this.notations.update(n=>[...n,...e.data.notations]):(this.notations.set(e.data.notations),this.totales.set(e.data.totales),this.globalNotation.set(e.data.globalNotation),this.globalPedagogy.set(e.data.globalPedagogy),this.globalHospitality.set(e.data.globalHospitality),this.globalKnowledge.set(e.data.globalKnowledge),this.globalRecommendation.set(e.data.globalRecommendation),this.totalCount.set(e.data.totalCount))})}static \u0275fac=function(e){return new(e||nt)};static \u0275cmp=f({type:nt,selectors:[["app-reviews"]],hostBindings:function(e,n){e&1&&j("scroll",function(){return n.onWindowScroll()},ft)},decls:6,vars:2,consts:[[1,"reviews"],[1,"reviews__container"],[1,"loader-light"],[1,"scroll-top-button"],[1,"loader-container"],[1,"loader","loader-1"],[1,"reviews__container__filters"],["name","filters","id","filters","optionValue","id","styleClass","select-dpt",3,"ngModelChange","options","ngModel","optionLabel"],[1,"reviews__container__center"],[1,"reviews__container__global-cards"],[3,"totalReviews","globalNotation"],[3,"globalPedagogy","globalHospital
1ity","globalKnowledge","globalRecommendation"],[3,"totales"],["infiniteScroll","",1,"reviews__container__notations",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","scrollWindow"],[3,"notations"],[1,"loader-light","loader-bottom"],[1,"scroll-top-button",3,"click"],[1,"fa-solid","fa-arrow-up"]],template:function(e,n){e&1&&(r(0,"div",0),_(1,"app-header-banner"),r(2,"div",1),M(3,Ee,3,0,"div",2)(4,He,11,15),l(),M(5,Re,2,0,"button",3),l()),e&2&&(a(3),P(n.loading()?3:4),a(2),P(n.showScrollTop()?5:-1))},dependencies:[kt,jt,Bt,Lt,At,Gt,It,Ft,Ht,Rt,qt],styles:[".reviews__container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;background-color:var(--neutral-25);width:100%;padding:40px}.reviews__container__filters[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:100%;max-width:var(--wrapper-width);margin:0 auto 40px}@media (max-width: 820px){.reviews__container__filters[_ngcontent-%COMP%]{justify-content:center}}.reviews__container__center[_ngcontent-%COMP%]{max-width:var(--wrapper-width);margin:0 auto;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;width:100%;gap:40px}@media (max-width: 820px){.reviews__container__center[_ngcontent-%COMP%]{flex-direction:column;align-items:center;justify-content:center}}.reviews__container__global-cards[_ngcontent-%COMP%]{width:40%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:24px;position:sticky;top:120px}@media (max-width: 820px){.reviews__container__global-cards[_ngcontent-%COMP%]{width:100%;position:relative;top:0}}.reviews__container__notations[_ngcontent-%COMP%]{width:60%}@media (max-width: 820px){.reviews__container__notations[_ngcontent-%COMP%]{width:100%}}.loader-bottom[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:center}.scroll-top-button[_ngcontent-%COMP%]{position:fixed;bottom:100px;right:25px;width:60px;height:60px;border-radius:50%;background-color:var(--primary-500);color:var(--neutral-0);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px #0003;transition:all .3s ease;z-index:100;animation:_ngcontent-%COMP%_slideInFromRight .5s ease-out}.scroll-top-button[_ngcontent-%COMP%]:hover{background-color:var(--primary-600);color:var(--neutral-0);transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.scroll-top-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(100px) scale(.5);opacity:0}to{transform:translate(0) scale(1);opacity:1}}"]})};Xt=it([Et()],Xt);export{Xt as ReviewsComponent};
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.