PageSourceSearch

https://rajarepair.id/_rr/b8q4dilt.js

js rajarepair.id collected 2026-10-06 20:53:29 UTC 13,756 bytes, 1 lines download raw bytes

1import{c as nt}from"./D_rngVSp.js";import{_ as ot}from"./0jejpokL.js";import{I as rt}from"./CuOLYiG3.js";import{u as lt}from"./DOZv0An5.js";import{u as Q}from"./BEsrX2qS.js";import{f as V,u as O,m as U,r as Y,o as G,w as it,y as a,z as n,B as L,t as K,C as t,v as e,F as I,A as F,a0 as R,G as C,D as r,E as T,x as q,i as D,I as z,s as ct,H as dt,ak as ut,X as mt}from"./D5MLA-hU.js";import{_ as pt}from"./DU6cNFPH.js";import{_ as ft}from"./3EBg3iUg.js";import{d as ht,I as xt}from"./DxbuN_IJ.js";import{o as W,c as _t,f as gt}from"./VfYlVZiT.js";import{u as H}from"./BZMDioPG.js";import{i as bt}from"./RsnzuqlS.js";import{I as X}from"./DA7qIMyu.js";import{I as vt}from"./BJWMK5l4.js";import{u as yt,c as kt,e as wt}from"./BsSRCWlq.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="50fea56d-5d90-4779-a637-efd3f555ee8f",o._sentryDebugIdIdentifier="sentry-dbid-50fea56d-5d90-4779-a637-efd3f555ee8f")}catch{}})();var Ae=nt("outline","cpu","Cpu",[["path",{d:"M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12",key:"svg-0"}],["path",{d:"M9 9h6v6h-6l0 -6",key:"svg-1"}],["path",{d:"M3 10h2",key:"svg-2"}],["path",{d:"M3 14h2",key:"svg-3"}],["path",{d:"M10 3v2",key:"svg-4"}],["path",{d:"M14 3v2",key:"svg-5"}],["path",{d:"M21 10h-2",key:"svg-6"}],["path",{d:"M21 14h-2",key:"svg-7"}],["path",{d:"M14 21v-2",key:"svg-8"}],["path",{d:"M10 21v-2",key:"svg-9"}]]);const $t={class:"border-y border-slate-200/80 bg-white"},qt={class:"flex items-center justify-center gap-3 border-b border-r border-slate-200/80 px-6 py-7 lg:border-b-0"},St={key:1,class:"grid h-10 w-10 shrink-0 place-items-center rounded-xl bg-brand-50 text-brand-500"},Mt={class:"leading-tight"},It={class:"display block text-3xl tabular-nums text-ink-900 sm:text-4xl"},Lt={class:"mt-1 block text-xs uppercase tracking-wide text-slate-500"},Ct={class:"display text-3xl text-ink-900 transition-colors duration-300 group-hover:text-brand-600 sm:text-4xl"},Bt={key:0,class:"text-gold-500"},Ft={class:"mt-1 text-xs uppercase tracking-wide text-slate-500"},Dt={class:"relative mx-auto mt-4 h-1 w-24 overflow-hidden rounded-full bg-slate-100"},jt=V({__name:"StatsBand",setup(o){const{t:s}=O(),{fetchStats:b}=lt(),{rating:y,ratingLabel:S}=Q(),{data:k,status:m}=U("repair-stats",()=>b(),{default:()=>({repairs:0,customers:0,outlets:0,models:0,series:[]})}),M=l=>new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(l),i=q(28),f=D(()=>{const l=k.value.series;if(!l||l.length<2)return[];const d=l.map((u,$)=>Math.max($===0?u:u-l[$-1],0)),g=Math.max(...d)||1,c=d.map(u=>Math.max(.14,u/g));return c.length>=i.value?c:Array.from({length:i.value},(u,$)=>{const N=$/(i.value-1)*(c.length-1),E=Math.floor(N),at=N-E;return c[E]+(c[Math.ceil(N)]-c[E])*at})});function B(l){const d=f.value.length>1?l/(f.value.length-1):0,g=[53,55,145],c=[242,183,5],u=g.map(($,N)=>Math.round($+(c[N]-$)*d));return`rgb(${u[0]},${u[1]},${u[2]})`}const h=q(),x=q(!1),p=q(!1),v=q(!1);let w;function j(){x.value||(x.value=!0,setTimeout(()=>{p.value=!0},i.value*28+500))}Y(()=>{if(i.value=window.matchMedia?.("(min-width: 640px)").matches?28:14,window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){x.value=!0,p.value=!0;return}w=new IntersectionObserver(([l])=>{l?.isIntersecting&&(v.value=!0,w?.disconnect())},{threshold:.4}),h.value&&w.observe(h.value)}),G(()=>w?.disconnect()),it([v,m],()=>{v.value&&m.value==="success"&&j()});const _=q(),A=q([]);function P(l){if(!p.value||!_.value)return;const d=l.clientX-_.value.getBoundingClientRect().left,g=26;A.value=f.value.map((c,u)=>{const $=Math.abs(d-(u*5+1.5));return $<g?Math.cos($/g*(Math.PI/2)):0})}function J(){A.value=[]}function Z(l,d){const g=x.value?1+(A.value[d]||0)*.7:0,c=p.value?"transform .14s ease-out":`transform .45s cubic-bezier(.22,1,.36,1) ${d*28}ms`;return`height:${(l*100).toFixed(0)}%;background:${B(d)};transform-origin:bottom;transform:scaleY(${g});transition:${c};`}function tt(l){const d=160+l*130;return`opacity:${x.value?1:0};transform:translateY(${x.value?"0px":"12px"});transition:opacity .6s ease ${d}ms,transform .6s cubic-bezier(.22,1,.36,1) ${d}ms;`}const et=D(()=>[{n:"98%",l:s("statsBand.stat2Label"),meter:[0,.98]},{n:s("statsBand.stat3Value"),l:s("statsBand.stat3Label"),meter:[3/12,1]},{n:S.value,star:!0,l:s("statsBand.stat4Label"),meter:[0,y.value/5]}]);function st(l,d){const g=220+d*130;return`left:${(l[0]*100).toFixed(0)}%;width:${((l[1]-l[0])*100).toFixed(0)}%;transform-origin:left;
1transform:scaleX(${x.value?1:0});transition:transform .7s cubic-bezier(.22,1,.36,1) ${g}ms;`}return(l,d)=>{const g=ot;return a(),n("section",$t,[L(g,{cols:4,class:"mx-auto max-w-7xl"},{default:K(()=>[t("div",{ref_key:"root",ref:h,class:"grid grid-cols-2 border-l border-slate-200/80 lg:grid-cols-4"},[t("div",qt,[e(f).length?(a(),n("div",{key:0,ref_key:"wrap",ref:_,"aria-hidden":"true",class:"flex h-6 items-end gap-[2px] [overflow:visible] sm:h-9",onPointermove:P,onPointerleave:J},[(a(!0),n(I,null,F(e(f),(c,u)=>(a(),n("span",{key:u,class:"w-[3px] rounded-t-sm",style:R(Z(c,u))},null,4))),128))],544)):(a(),n("span",St,[L(e(rt),{class:"h-5 w-5"})])),t("span",Mt,[t("span",It,[C(r(M(e(k).repairs)),1),d[0]||(d[0]=t("span",{class:"text-brand-500"},"+",-1))]),t("span",Lt,r(e(s)("statsBand.totalRepairsLabel")),1)])]),(a(!0),n(I,null,F(e(et),(c,u)=>(a(),n("div",{key:c.l,class:"group relative border-b border-r border-slate-200/80 px-6 py-7 text-center lg:border-b-0",style:R(tt(u))},[t("p",Ct,[C(r(c.n),1),c.star?(a(),n("span",Bt,"★")):T("",!0)]),t("p",Ft,r(c.l),1),t("div",Dt,[t("span",{class:"absolute inset-y-0 rounded-full bg-gradient-to-r from-brand-500 to-gold-500 transition-shadow duration-300 group-hover:shadow-[0_0_8px_rgba(53,55,145,0.55)]",style:R(st(c.meter,u))},null,4)])],4))),128))],512)]),_:1})])}}}),Ne=Object.assign(jt,{__name:"StatsBand"}),At={class:"flex flex-col rounded-2xl border border-slate-200 p-5"},Nt={class:"flex items-start justify-between gap-3"},Ot={class:"font-semibold leading-snug text-ink-900"},Tt={key:0,class:"shrink-0 rounded-full bg-brand-50 px-2.5 py-1 text-xs font-semibold text-brand-700"},zt={class:"mt-1.5 line-clamp-2 text-sm leading-relaxed text-slate-500"},Vt={class:"mt-4 flex flex-wrap items-center gap-2"},Pt=["href"],Et=["href","data-track-label"],Rt=V({__name:"OutletCard",props:{outlet:{},distanceKm:{}},setup(o){const s=o,b=H(),{t:y,locale:S}=O(),k=D(()=>s.distanceKm==null?"":gt(s.distanceKm,S.value));return(m,M)=>{const i=pt,f=ft;return a(),n("div",At,[t("div",Nt,[t("h3",Ot,r(e(W)(o.outlet.name)),1),e(k)?(a(),n("span",Tt,r(e(k)),1)):T("",!0)]),t("p",zt,r(o.outlet.landmark||o.outlet.city),1),t("div",Vt,[t("a",{href:e(b).whatsapp(e(y)("lokasiList.waMessage",{outlet:e(W)(o.outlet.name)})),target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1.5 rounded-full bg-brand-500 px-4 py-1.5 text-xs font-semibold text-white transition-colors hover:bg-brand-600"},[L(i,{class:"h-3.5 w-3.5"}),M[0]||(M[0]=C(" WhatsApp ",-1))],8,Pt),o.outlet.lat&&o.outlet.lng?(a(),n("a",{key:0,href:("directions"in m?m.directions:e(ht))(o.outlet),target:"_blank",rel:"noopener","data-track":"FindLocation","data-track-label":o.outlet.name,class:"inline-flex items-center gap-1.5 rounded-full border border-brand-200 px-4 py-1.5 text-xs font-semibold text-brand-600 transition-colors hover:bg-brand-50"},[L(e(xt),{class:"h-3.5 w-3.5"}),C(" "+r(e(y)("lokasiList.directions")),1)],8,Et)):T("",!0),L(f,{to:`/lokasi/${e(_t)(o.outlet.name)}`,class:"inline-flex items-center gap-1.5 rounded-full border border-slate-200 px-4 py-1.5 text-xs font-semibold text-ink-700 transition-colors hover:bg-slate-50"},{default:K(()=>[C(r(e(y)("lokasiList.outletDetail")),1)]),_:1},8,["to"])])])}}}),Oe=Object.assign(Rt,{__name:"OutletCard"}),Kt={class:"bg-[#f6f6f6] py-20 sm:py-28"},Wt={class:"mx-auto mb-12 max-w-7xl px-6 text-center"},Xt={class:"display text-3xl text-ink-900 sm:text-4xl"},Qt={class:"mt-4 flex items-center justify-center gap-2"},Ut={class:"flex"},Yt={class:"text-sm text-slate-500"},Gt={class:"text-ink-900"},Ht={class:"flex gap-0.5"},Jt={class:"mt-3 flex-1 overflow-hidden text-sm leading-relaxed text-ink-700 [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:4]"},Zt={class:"mt-5 flex items-center gap-3 border-t border-slate-100 pt-4"},te=["src","alt"],ee={key:1,class:"grid h-10 w-10 shrink-0 place-items-center rounded-full bg-brand-100 text-sm font-bold text-brand-700"},se={class:"min-w-0"},ae={class:"truncate text-sm font-semibold text-ink-900"},ne={class:"text-xs text-slate-500"},oe=V({__name:"TestimonialsSection",setup(o){const{t:s}=O(),{reviews:b,ratingLabel:y,total:S}
1=Q(),k=D(()=>S.value?S.value.toLocaleString("id-ID"):"");function m(p){return[...p,...p]}const M=D(()=>m(b.value.filter((p,v)=>v%2===0))),i=D(()=>m(b.value.filter((p,v)=>v%2===1))),f=q(),B=q(!0);let h,x;return Y(()=>{let p=!0;const v=()=>B.value=p&&!document.hidden;h=new IntersectionObserver(([w])=>{p=!!w?.isIntersecting,v()},{threshold:0}),f.value&&h.observe(f.value),x=v,document.addEventListener("visibilitychange",x)}),G(()=>{h?.disconnect(),x&&document.removeEventListener("visibilitychange",x)}),(p,v)=>(a(),n("section",Kt,[t("div",Wt,[t("h2",Xt,r(e(s)("testimonialsSection.heading")),1),t("div",Qt,[t("span",Ut,[(a(),n(I,null,F(5,w=>L(e(X),{key:w,class:"h-5 w-5 fill-gold-500 text-gold-500"})),64))]),t("span",Yt,[t("strong",Gt,r(e(y)),1),C(" "+r(e(s)("testimonialsSection.googleAverage")),1),e(k)?(a(),n(I,{key:0},[C(" · "+r(e(s)("testimonialsSection.reviewsCount",{count:e(k)})),1)],64)):T("",!0)])])]),t("div",{ref_key:"root",ref:f,class:z(["group/marquee space-y-5 overflow-hidden py-2",{"marquee-paused":!e(B)}])},[(a(!0),n(I,null,F([e(M),e(i)],(w,j)=>(a(),n("div",{key:j,class:z(["marquee-track flex w-max gap-5 group-hover/marquee:[animation-play-state:paused] motion-reduce:[animation:none]",j===0?"[--marquee-duration:55s]":"[--marquee-duration:72s] [animation-direction:reverse]"])},[(a(!0),n(I,null,F(w,(_,A)=>(a(),n("figure",{key:j+"-"+A,class:"flex h-56 w-[19rem] shrink-0 flex-col rounded-2xl bg-white p-6 shadow-sm ring-1 ring-black/5 sm:w-[21rem]"},[t("div",Ht,[(a(!0),n(I,null,F(_.stars,P=>(a(),ct(e(X),{key:P,class:"h-4 w-4 fill-gold-500 text-gold-500"}))),128))]),t("blockquote",Jt,' "'+r(_.text)+'" ',1),t("figcaption",Zt,[_.photo?(a(),n("img",{key:0,src:_.photo,alt:_.name,referrerpolicy:"no-referrer",loading:"lazy",class:"h-10 w-10 shrink-0 rounded-full object-cover"},null,8,te)):(a(),n("span",ee,r(("initials"in p?p.initials:e(bt))(_.name)),1)),t("span",se,[t("p",ae,r(_.name),1),t("p",ne,r(_.source),1)])])]))),128))],2))),128))],2)]))}}),Te=Object.assign(oe,{__name:"TestimonialsSection"}),re=()=>{const{locale:o}=O(),{data:s}=U(`cms-faqs-${o.value}`,()=>$fetch("/api/v1/cms/faqs",{query:{locale:o.value}}).then(b=>b.data??[]).catch(()=>[]),{default:()=>[]});return{faqs:s}},le={class:"bg-[#fafafa] py-16 sm:py-24"},ie={class:"reveal mx-auto max-w-6xl px-6"},ce={class:"grid gap-10 lg:grid-cols-[minmax(0,340px)_1fr] lg:gap-16"},de={class:"lg:sticky lg:top-28 lg:self-start"},ue={class:"display text-4xl leading-[1.05] text-ink-900 sm:text-5xl"},me={class:"mt-4 text-base leading-relaxed text-slate-500"},pe=["href"],fe={class:"border-t border-slate-200"},he=["aria-expanded","onClick"],xe={class:"text-lg font-semibold text-ink-900 transition-colors duration-300 group-hover:text-brand-600"},_e={class:"overflow-hidden"},ge={class:"max-w-2xl pb-6 text-base leading-relaxed text-slate-500"},be=V({__name:"FaqSection",setup(o){const{t:s}=O(),b=H(),y=[{q:s("faqSection.q1"),a:s("faqSection.a1")},{q:s("faqSection.q2"),a:s("faqSection.a2")},{q:s("faqSection.q3"),a:s("faqSection.a3")},{q:s("faqSection.q4"),a:s("faqSection.a4")},{q:s("faqSection.q5"),a:s("faqSection.a5")}],{faqs:S}
1=re(),k=D(()=>S.value.length?S.value.map(i=>({q:i.question,a:i.answer})):y);yt([kt({"@type":["WebPage","FAQPage"]}),...y.map(i=>wt({name:i.q,acceptedAnswer:i.a}))]);const m=q(0),M=i=>m.value=m.value===i?null:i;return(i,f)=>(a(),n("section",le,[t("div",ie,[t("div",ce,[t("div",de,[t("h2",ue,r(e(s)("faqSection.heading")),1),t("p",me,r(e(s)("faqSection.subtitle")),1),t("a",{href:e(b).whatsapp(e(s)("faqSection.whatsappMessage")),target:"_blank",rel:"noopener",class:"group mt-6 inline-flex items-center gap-1.5 text-sm font-semibold text-brand-600 transition-colors hover:text-brand-700"},[C(r(e(s)("faqSection.askCta"))+" ",1),L(e(vt),{class:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-0.5"})],8,pe)]),t("div",fe,[(a(!0),n(I,null,F(e(k),(B,h)=>(a(),n("div",{key:h,class:"border-b border-slate-200"},[t("button",{class:"group flex w-full items-center justify-between gap-6 py-6 text-left","aria-expanded":e(m)===h,onClick:x=>M(h)},[t("span",xe,r(B.q),1),t("span",{class:z(["relative grid h-6 w-6 shrink-0 place-items-center transition-colors duration-300",e(m)===h?"text-brand-600":"text-slate-400 group-hover:text-ink-900"])},[f[0]||(f[0]=t("span",{class:"absolute h-px w-3.5 bg-current"},null,-1)),t("span",{class:z(["absolute h-3.5 w-px bg-current transition-transform duration-300",e(m)===h&&"rotate-90 scale-0"])},null,2)],2)],8,he),L(mt,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"max-h-0 opacity-0","enter-to-class":"max-h-96 opacity-100","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"max-h-96 opacity-100","leave-to-class":"max-h-0 opacity-0"},{default:K(()=>[dt(t("div",_e,[t("p",ge,r(B.a),1)],512),[[ut,e(m)===h]])]),_:2},1024)]))),128))])])])]))}}),ze=Object.assign(be,{__name:"FaqSection"});export{Ae as I,Ne as _,Te as a,ze as b,Oe as c};

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.