1"use strict";(globalThis.webpackChunkzoomcar_com=globalThis.webpackChunkzoomcar_com||[]).push([[2859],{56454(t,s,e){e.d(s,{A:()=>r});const a={name:"RatingsStars",props:{rating:{type:[String,Number]},totalStars:{type:Number,default:5}},computed:{normalizedRating(){const t=Number(this.rating);return isNaN(t)?0:t},fullStars(){return Math.floor(this.normalizedRating)},hasHalfStar(){return this.normalizedRating%1!=0}}};const r=(0,e(14486).A)(a,function(){var t=this,s=t._self._c;return s("div",{staticClass:"ratings__stars"},t._l(t.totalStars,function(e){return s("div",{key:e,staticClass:"ratings__star"},[e<=t.fullStars?s("i",{staticClass:"z-star_fill"}):e===t.fullStars+1&&t.hasHalfStar?s("i",{staticClass:"z-star_half_filled"}):s("i",{staticClass:"z-star_fill is-unselected"})])}),0)},[],!1,null,"ee600c0a",null).exports},78406(t,s,e){e.r(s),e.d(s,{default:()=>c});var a=e(39296),r=e(6908),i=e(56454);const{API_URL:o}={API_URL:"https://api.zoomcar.com"},n={name:"ClientStories",props:{cityDisplay:{type:String,required:!0}},components:{HomeCarouselNew:r.A,RatingsStars:i.A},setup(){const t=(0,a.getCurrentInstance)().proxy.$store;(0,a.onMounted)(()=>{c()});const s=(0,a.reactive)({storiesValue:[]}),e=(0,a.computed)(()=>t.getters["App/city"]),r=(0,a.computed)(()=>t.getters["App/isMobile"]),i=(0,a.computed)(()=>t.getters["Search/isSubscription"]),n=(0,a.computed)(()=>s.storiesValue.filter(t=>t&&t.car_info&&t.car_info.rating&&t.car_info.rating.value)),c=async()=>{try{const t=o+"/api/v8/homes/stories",a=new URLSearchParams({device_id:localStorage.getItem("device_id")||"default_device",platform:r.value?"mweb":"web",city:e.value,country_code:"IND",version:"4",locale:"en",landing_page_type:i.value?"subscription":"daily_drive"}),n=await fetch(`${t}?${a.toString()}`),c=await n.json();s.storiesValue=c.stories||[]}catch(t){}};return{filteredStories:n,formatRating:t=>{const s=Number(t??4);return Number.isInteger(s)?s:Math.floor(10*s)/10}}}};const c=(0,e(14486).A)(n,function(){var t=this,s=t._self._c;return s("div",{staticClass:"guest-stories"},[t.filteredStories?.length?s("home-carousel-new",{attrs:{cards:t.filteredStories,visibleCards:3,id:"stories",heading:`What Customers Say About Zoomcar in ${t.cityDisplay}`,subheading:`Read experiences shared by customers who have rented self-drive cars in ${t.cityDisplay}, including feedback about vehicles, hosts, pickup and the overall rental experience.`},scopedSlots:t._u([{key:"default",fn:function({card:e}){return[s("div",{staticClass:"guest-stories__story-card"},[s("div",{staticClass:"guest-stories__story-card-top"},[s("div",{staticClass:"guest-stories__story-card-rating"},[s("RatingsStars",{style:{color:"#0A4A28"},attrs:{rating:t.formatRating(e.car_info.rating?.value)}}),t._v(" "),s("span",{staticClass:"guest-stories__rating-text"},[t._v("\n "+t._s(t.formatRating(e.car_info.rating?.value))+"/5\n ")])],1),t._v(" "),s("p",{staticClass:"guest-stories__story-card-review"},[t._v("\n "+t._s(e.review_data.review)+"\n ")])]),t._v(" "),s("div",{staticClass:"guest-stories__story-card-bottom"},[s("svg",{staticClass:"guest-stories__story-card-bottom-bg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 402 218",preserveAspectRatio:"none"}},[s("path",{attrs:{d:"M0 100C0 72.3858 22.3858 50 50 50H402V198C402 209.046 393.046 218 382 218H20C8.9543 218 0 209.046 0 198V100Z",fill:"#E7F2EC"}}),t._v(" "),s("path",{attrs:{d:"M352.02 50H402V0C402 6.5661 400.707 13.0679 398.194 19.1342C395.681 25.2005 391.998 30.7124 387.355 35.3553C382.712 39.9983 377.2 43.6812 371.134 46.194C365.074 48.7042 358.579 49.9974 352.02 50Z",fill:"#E7F2EC"}})]),t._v(" "),s("div",{staticClass:"guest-stories__story-card-bottom-content"},[s("div",{staticClass:"guest-stories__story-card-avatar"},[t._v("\n "+t._s(e.review_data.user.name.charAt(0)+e.review_data.user.name.charAt(1))+"\n ")]),t._v(" "),s("div",{staticClass:"guest-stories__story-card-user"},[s("div",{staticClass:"guest-stories__story-card-user-name"},[t._v("\n "+t._s(e.review_data.user.name||"Guest")+"\n ")]),t._v(" "),s("div",{staticClass:"guest-stories__story-card-user-role"},[t._v("\n "+t._s(e.review_data.user.city)+"\n ")])])])])])]}}],null,!1,3991011428)}):t._e()],1)},[],!1,null,"2d652a4e",null).exports}}]);
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.