1import{a as J}from"./chunk-FJDL3T3Y.js";import"./chunk-2L3RHLWE.js";import{a as G}from"./chunk-DJ3GKA3K.js";import{c as q}from"./chunk-QNADUW2O.js";import"./chunk-WFSX65R3.js";import{a as A}from"./chunk-KGVXT7SY.js";import{f as N,i as O}from"./chunk-YFSEFERB.js";import{a as W}from"./chunk-WMZSGUPU.js";import{k as j}from"./chunk-FFW5ZQVW.js";import"./chunk-BAXRWYZP.js";import"./chunk-72G3FX52.js";import{j as D,v as H}from"./chunk-I23IAL3V.js";import{Gc as T,Lc as $,Mc as z,Nb as B,Pb as f,Qb as C,Sb as E,Tb as L,Ub as V,Uc as m,Vb as h,Vc as p,W as P,Wb as r,Xb as l,Yb as u,_a as M,dc as y,e as U,eb as a,fa as x,ic as I,kc as o,na as _,oa as g,sa as R,vc as k,wb as v,wc as F,xc as d,yc as b,zc as w}from"./chunk-PRWCGS2B.js";import"./chunk-MWPM7NKE.js";var K=()=>[],Q=t=>({collapsed:t});function ee(t,i){if(t&1&&u(0,"shared-reviewsfeature",0),t&2){let e=o();h("websiteUrl",e.websiteUrl)("homepage",!1)("showTrustpilot",e.showTrustpilot)("templateId",e.templateId)("businessUnitId",e.businessUnitId)("locale",e.trustPilotLocale)("showReview",e.showReview)}}function te(t,i){t&1&&(r(0,"div",5),u(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9),l())}function ie(t,i){if(t&1){let e=y();r(0,"a",20),m(1,"translate"),I("click",function(){_(e);let n=o().$implicit,c=o(3);return g(c.seeMoreTestimonial(n.Id,n.isCollapsed))})("keydown.enter",function(){_(e);let n=o().$implicit,c=o(3);return g(c.seeMoreTestimonial(n.Id,n.isCollapsed))})("keydown.space",function(){_(e);let n=o().$implicit,c=o(3);return g(c.seeMoreTestimonial(n.Id,n.isCollapsed))}),d(2),m(3,"translate"),u(4,"div",21),l()}if(t&2){let e=o().$implicit;F(T("seemorebtn morebutton",e.Id," collapsible")),B("aria-label",p(1,5,"Select a testimonial")),a(2),w(" ",p(3,7,"see more")," ")}}function ne(t,i){if(t&1&&(r(0,"li",16)(1,"h1",17),d(2),l(),u(3,"div",18),m(4,"sanitizeHtml"),f(5,ie,5,9,"a",19),l()),t&2){let e=i.$implicit;k("no-fade",e.Testimonial.body.length<=300),h("ngClass",z(10,Q,e.isCollapsed)),a(2),b(e.Testimonial.consultant),a(),h("id",T("consultant-",e.Id))("innerHTML",p(4,8,e.Testimonial.body),M),a(2),C(e.Testimonial.body.length>300?5:-1)}}function oe(t,i){if(t&1){let e=y();r(0,"a",20),m(1,"translate"),I("click",function(){_(e);let n=o().$implicit,c=o(3);return g(c.seeMoreTestimonial(n.Id,n.isCollapsed))})("keydown.enter",function(){_(e);let n=o().$implicit,c=o(3);return g(c.seeMoreTestimonial(n.Id,n.isCollapsed))})("keydown.space",function(){_(e);let n=o().$implicit,c=o(3);return g(c.seeMoreTestimonial(n.Id,n.isCollapsed))}),d(2),m(3,"translate"),u(4,"div",21),l()}if(t&2){let e=o().$implicit;F(T("seemorebtn morebutton",e.Id," collapsible")),B("aria-label",p(1,5,"Select a testimonial")),a(2),w(" ",p(3,7,"see more")," ")}}function ae(t,i){if(t&1&&(r(0,"li",16)(1,"h1",17),d(2),l(),u(3,"div",18),m(4,"sanitizeHtml"),f(5,oe,5,9,"a",19),l()),t&2){let e=i.$implicit;k("no-fade",e.Testimonial.body.length<=300),h("ngClass",z(10,Q,e.isCollapsed)),a(2),b(e.Testimonial.consultant),a(),h("id",T("consultant-",e.Id))("innerHTML",p(4,8,e.Testimonial.body),M),a(2),C(e.Testimonial.body.length>300?5:-1)}}function se(t,i){if(t&1){let e=y();r(0,"div",15)(1,"div",22)(2,"button",23),I("click",function(){_(e);let n=o(3);return g(n.showMoreItems())}),r(3,"span"),d(4),m(5,"translate"),l()()()()}t&2&&(a(4),b(p(5,1,"Load more testimonials")))}function le(t,i){if(t&1&&(r(0,"div",10)(1,"ul",12),L(2,ne,6,12,"li",13,E),l(),r(4,"ul",14),L(5,ae,6,12,"li",13,E),l(),f(7,se,6,3,"div",15),l()),t&2){let e=o(2);a(2),V(e.testimonials?e.testimonials.slice(0,6):$(1,K)),a(3),V(e.testimonials?e.testimonials.slice(6,e.itemsLimit()):$(2,K)),a(2),C(e.hasMoreItemsToShow()?7:-1)}}function re(t,i){t&1&&(r(0,"p",11),d(1),m(2,"translate"),l()),t&2&&(a(),w(" ",p(2,1,"There are no testimonials available.")," "))}function me(t,i){if(t&1&&f(0,le,8,3,"div",10)(1,re,3,3,"p",11),t&2){let e=o();C(e.testimonials&&e.testimonials.length>0?0:1)}}var S=class t{constructor(){this.showReview=!0;this.showTrustpilot=!1;this.templateId="53aa8912dec7e10d38f59f36";this.businessUnitId="5a6b17e09f84d90001c11b5e";this.showLoader=!1;this.trustPilotLocale="en-GB";this.compactContainer=!1;this.testimonials=[];this.pagesShown=1;this.pageSize=8;this.isCollapsed=!1;this.websiteUrl="";this.showCompLoader=!0;this.destroy$=new U;this.webService=x(G);this.utilityService=x(q);this.document=x(R);this.translation=x(j)}ngOnInit(){this.utilityService.setWebPageBanner("/testimonials"),this.utilityService.setWebPageName(this.translation.translate("Testimonials")),this.webService.projectSettings$.pipe(P(this.destroy$)).subscribe(i=>{i&&(this.websiteUrl=i.WebsiteUrl)}),this.webService.getTestimonials().pipe(P(this.destroy$)).subscribe({next:i=>{i&&(this.testimonials=i,this.hasMoreItemsToShow=()=>i?this.pagesShown<i.length/this.pageSize:!1,this.showCompLoader=!1)}}),this.itemsLimit=()=>this.pageSize*this.pagesShown,this.showMoreItems=()=>this.pagesShown=this.pagesShown+1}ngOnDestroy(){this.destroy$.next(""),this.destroy$.complete(),this.destroy$.unsubscribe()}seeMoreTestimonial(i,e){let s=this.testimonials.find(n=>n.Id===i);s&&(e===!1?(this.document.getElementById("consultant-"+i)&&this.document.getElementById("consultant-"+i).classList.add("height-auto"),this.document.getElementsByClassName("morebutton-"+i)&&(this.document.getElementsByClassName("morebutton"+i)[0].innerHTML=this.translation.translate("see less")+'<div class="border-line"></div>')):(this.document.getElementById("consultant-"+i)&&this.document.getElementById("consultant-"+i).classList.remove("height-auto"),this.document.getElementsByClassName("morebutton-"+i)&&(this.document.getElementsByClassName("morebutton"+i)[0].innerHTML=this.translation.translate("see more")+'<div class="border-line"></div>')),s.isCollapsed=!s.isCollapsed)}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=v({type:t,selectors:[["shared-testimonials-page"]],hostVars:2,hostBindings:function(e,s){e&2&&k("compact-container",s.compactContainer)},inputs:{showReview:"showReview",showTrustpilot:"showTrustpilot",templateId:"templateId",businessUnitId:"businessUnitId",showLoader:"showLoader",trustPilotLocale:"trustPilotLocale",compactContainer:"compactContainer"},decls:14,vars:11,consts:[[3,"websiteUrl","homepage","showTrustpilot","templateId","businessUnitId","locale","showReview"],[1,"testimonialSection","container"],[1,"col-md-12"],[1,"item-title","col-md-6"],["routerLink","/contact-us"],[1,"container","sk-folding-cube",2,"margin-top","40px"],[1,"sk-cube1","sk-cube"],[1,"sk-cube2","sk-cube"],[1,"sk-cube4","sk-cube"],[1,"sk-cube3","sk-cube"],[1,"test","margin-top","col-12"],[1,"col-md-12","margin-top",2,"padding","15px 0 0"],[1,"testimonials","featured-testimonials","item-body","row"],[1,"testimonial","tile-zoom","fade-in","col-lg-4","col-md-4","col-12",3,"no-fade","ngClass"],[1,"testimonials","more-testimonials","row"],[1,"text-center","margin-top"],[1,"testimonial","tile-zoom","fade-in","col-lg-4","col-md-4","col-12",3,"ngClass"],[1,"consultant"],[1,"description",3,"id","innerHTML"],["role","button","tabindex","0",3,"class"],["role","button","tabindex","0",3,"click","keydown.enter","keydown.space"],[1,"border-line"],[1,"col-xs-12"],[1,"show-more-results","btnTestimonial",3,"click"]],template:function(e,s){e&1&&(f(0,ee,1,7,"shared-reviewsfeature",0),r(1,"div",1)(2,"section",2)(3,"h1",3),d(4),m(5,"translate"),l(),r(6,"p"),d(7),m(8,"translate"),r(9,"a",4),d(10),m(11,"translate"),l()(),f(12,te,5,0,"div",5)(13,me,2,1),l()()),e&2&&(C(s.showTrustpilot?0:-1),a(4),b(p(5,5,"Testimonials")),a(3),w(" ",p(8,7,"The Testimonials page is dedicated to a selection of reviews on what the deVere clients have to say about our service culture. If you have further questions about our product range and the advice that we offer, please do not hesitate to")," "),a(3),b(p(11,9,"contact us")),a(2),C(s.showCompLoader?12:13))},dependencies:[H,D,O,N,J,A,W],styles:[`@media screen and (min-width:900px
1){:host.compact-container .testimonialSection{padding:0}}.testimonial h3{margin-top:10px;color:#036}.border-line{width:0px;height:2px;background-color:#069;position:relative;bottom:0;left:0;transition:.2s all;margin:0;top:0}.testimonial-source-name{color:#768188}#testimonial-search{padding:37px 0 10px}.item-title{padding-left:0;font-size:25px;font-weight:400}.pagination{margin-top:15px}.page-link{cursor:pointer}.testimonials{padding:0;margin:0}.testimonials li{list-style-type:none;padding:20px 20px 20px 0}.testimonials li a{font-size:17px;cursor:pointer}.testimonials li:not(.testimonials li.collapsed)>.description:after{content:"";background-image:linear-gradient(#fff0,#fff)}.testimonials li.no-fade>.description:after{background-image:none!important}.consultant{font-size:22px;font-weight:500;margin-bottom:20px}.seemorebtn{font-weight:bolder;color:#069!important}.seemorebtn:hover .border-line{width:36px}.test .description{margin-bottom:25px;height:136.36px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-height:20px;-webkit-box-orient:vertical;font-size:15px;position:relative}.test .description:after{content:"";position:absolute;bottom:0;width:100%;height:100%;background-image:none;pointer-events:none}.testimonialSection{margin-bottom:100px}.testimonialSection p,.testimonialSection a{font-weight:400}.height-auto{height:auto!important}.btnTestimonial{background-color:var(--dv-3);opacity:1;cursor:pointer;transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;border:0;border-radius:.15rem;text-transform:uppercase;padding:10px 40px;margin-bottom:20px}.btnTestimonial span{font-size:17px!important;color:#fff!important}.btnTestimonial:hover{padding-left:65px;padding-right:65px}@keyframes walk-in{0%{opacity:0;margin-left:-50px}to{opacity:1;margin-left:0}}@media screen and (max-width:768px){.testimonials li{border-bottom:1px solid rgba(0,0,0,.39);margin-top:1.5rem;padding-bottom:1.5rem!important}.testimonials li:first-child{margin-top:0!important;border-top:1px solid rgba(0,0,0,.39);padding-top:1.5rem!important}}.sk-folding-cube{width:64px} 2`],encapsulation:2})}};var X=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=v({type:t,selectors:[["app-testimonial"]],decls:1,vars:1,consts:[[3,"showReview"]],template:function(e,s){e&1&&u(0,"shared-testimonials-page",0),e&2&&h("showReview",!1)},dependencies:[S],encapsulation:2})}};export{X as TestimonialPage};
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.