1import{A as c}from"./CwRIR-2a.js";import{u as s}from"./DAtkHCcB.js";import{b as d}from"./CxpK0k6_.js";import{_ as m,r as g,o as u,c as A,a as e,t as n,z as a,e as h,y as w,b as C}from"./BSepDlR9.js";import"./DphEQhAE.js";import"./Bby-XJ64.js";import"./DmmhnkC5.js";import"./CHwosx1v.js";import"./DRkVV19B.js";/* empty css *//* empty css */import"./CH4dWHZ2.js";import"./CB6A3OCL.js";const S={name:"HomePageSectionAiAstrologs",components:{AstrologCardGrid:c},data(){return{isMobileViewport:!1}},computed:{aiAstrologs(){return s().aiAstrologs}},watch:{"$i18n.locale"(t){s().fetchAiAstrologs(t||"en")}},mounted(){this.updateViewportState(),window.addEventListener("resize",this.updateViewportState),s().fetchAiAstrologs(this.$i18n.locale||"en")},unmounted(){window.removeEventListener("resize",this.updateViewportState)},methods:{updateViewportState(){this.isMobileViewport=window.innerWidth<=768},getLiveConsultationUrl(t){return d(t,this.$i18n.locale)},startAiAstrologDetail(t){s().setSelectedAiAstrolog(t);const i=t?.slug||t?.publicId||t?.id;i&&this.$router.push(`/${this.$i18n.locale}/astrology-consulting/astrologer/ai/${i}`)},startChat(t){s().setSelectedAiAstrolog(t),window.location.href=this.getLiveConsultationUrl(t)}}},f={key:0,class:"home-ai-astrologs py-5"},_={class:"home-ai-astrologs__inner p-4 p-md-5"},b={class:"text-center"},V={class:"text-center text-white mb-4"};function v(t,o,i,y,l,r){const p=g("AstrologCardGrid");return r.aiAstrologs.length?(u(),A("section",f,[e("div",{class:w({"astopia-container":!l.isMobileViewport})},[e("div",_,[e("h2",b,[e("span",null,n(t.$t("AstrologyConsulting.HomeBannerTitle")),1),o[0]||(o[0]=a()),o[1]||(o[1]=e("br",null,null,-1)),a(n(t.$t("AstrologyConsulting.HomeBannerSub")),1)]),e("p",V,n(t.$t("AstrologyConsulting.HomeBannerDescription")),1),h(p,{astrologs:r.aiAstrologs,onlyOnline:!1,maxItems:4,forceSwiper:!0,"img-position":"top",ctaText:t.$t("AstrologyConsulting.ChatNow"),onChat:r.startChat,onSelect:r.startAiAstrologDetail},null,8,["astrologs","ctaText","onChat","onSelect"])])],2)])):C("",!0)}const M=m(S,[["render",v],["__scopeId","data-v-d6dc82e3"]]);export{M as default};
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.