"use strict";(self.webpackChunksalon_web=self.webpackChunksalon_web||[]).push([[309],{7309:(C,r,i)=>{i.r(r),i.d(r,{FaqModule:()=>q});var s=i(6895),c=i(4553),n=i(4650),p=i(5830),d=i(7241),l=i(502);const g=function(){return{"border-radius":"5px",height:"10px",width:"100%"}};function u(t,a){1&t&&n._UZ(0,"ngx-skeleton-loader",4),2&t&&n.Q6J("theme",n.DdM(1,g))}const f=function(){return[1,2,3,4,5,6,7,8,9]};function h(t,a){1&t&&(n.TgZ(0,"div"),n.YNc(1,u,1,2,"ngx-skeleton-loader",3),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,f)))}function m(t,a){if(1&t&&(n.TgZ(0,"div",6),n._UZ(1,"p",7),n.qZA()),2&t){const o=a.$implicit;n.xp6(1),n.Q6J("innerHTML",o,n.oJD)}}function F(t,a){if(1&t&&(n.ynx(0),n.YNc(1,m,2,1,"div",5),n.BQk()),2&t){const o=n.oxw();n.xp6(1),n.Q6J("ngForOf",o.contentArray)}}const x=[{path:"",component:(()=>{class t{constructor(o,e){this.api=o,this.util=e,this.contentArray=[],this.loaded=!1,this.getPageInfo()}getPageInfo(){const o={id:5};console.log("param",o),this.api.post_private("v1/pages/getContent",o).then(e=>{this.loaded=!0,console.log(e),e&&e.status&&200===e.status&&e.data&&(this.content=e.data.content,this.processContent())},e=>{console.log(e),this.util.errorMessage(this.util.translate("Something went wrong")),this.loaded=!0}).catch(e=>{console.log(e),this.util.errorMessage(this.util.translate("Something went wrong")),this.loaded=!0})}processContent(){this.content&&(this.contentArray=this.content.split("</p><p>").map(o=>`<p>${o}</p>`))}ngOnInit(){}}return t.\u0275fac=function(o){return new(o||t)(n.Y36(p.s),n.Y36(d.f))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-faq"]],decls:4,vars:2,consts:[[1,"container"],[1,"faq-container"],[4,"ngIf"],[3,"theme",4,"ngFor","ngForOf"],[3,"theme"],["class","faq-card",4,"ngFor","ngForOf"],[1,"faq-card"],[1,"faq-content",3,"innerHTML"]],template:function(o,e){1&o&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,h,2,2,"div",2),n.YNc(3,F,2,1,"ng-container",2),n.qZA()()),2&o&&(n.xp6(2),n.Q6J("ngIf",!e.loaded),n.xp6(1),n.Q6J("ngIf",e.loaded))},dependencies:[s.sg,s.O5,l.xr],styles:['@charset "UTF-8";.faq-container[_ngcontent-%COMP%]{padding-top:25px}.faq-card[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:5px;padding:15px;margin:50px 0;box-shadow:0 10px 10px #0000001a}']}),t})()}];let v=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[c.Bz.forChild(x),c.Bz]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[s.ez,v,l.hx]}),t})()}}]);