PageSourceSearch

https://www.geelyauto.co.za/_nuxt/nLJ572Cw.js

js geelyauto.co.za collected 2026-10-06 09:04:47 UTC 4,458 bytes, 1 lines download raw bytes

1import{_ as q}from"./Bi3fk9WE.js";import{W as I,_ as D,c as G}from"./D-eEHrja.js";import{a as H,b as U}from"./B9v24tLn.js";import{S as J,r as T,a as K,i as Q}from"./Dwq9GVxT.js";import{d as X,h as p,c as C,w as Z,o as ee,n as te,f as se,a8 as a,a9 as r,aa as l,an as m,aj as W,u as o,at as ne,ao as E,F as y,ar as S,b as _,af as B,ae as oe}from"./D-im9cEu.js";import"./BosuxZz1.js";const le={class:"milestone"},ie={class:"milestone-header"},ae={key:0,class:"overflow-left-mask"},ce=["onClick"],re={class:"milestone-timeline-item-icon"},de={class:"milestone-timeline-item-icon-text sh4"},ve={key:1,class:"overflow-right-mask"},ue={class:"milestone-events"},me={class:"swiper-wrapper"},he={class:"slide-wrapper overflowing"},fe={key:0,class:"slide-event-image"},pe={class:"slide-event-image-wrapper"},_e={class:"slide-event-content"},ge={class:"slide-event-content-wrapper"},we={class:"milestone-indicator"},z=1,ke=X({__name:"Milestone",props:{title:{},titleFontSize:{},nodes:{}},setup(M){const g=M,u=p(0),h=p(null),v=p(),x=p({index:0,total:0}),f=p({left:!1,right:!1}),P={0:{spaceBetween:16},576:{spaceBetween:24}},R=C(()=>{var e;return(e=h.value)==null?void 0:e.isBeginning}),A=C(()=>{var e;return(e=h.value)==null?void 0:e.isEnd}),F=e=>{h.value=e},w=C(()=>{const e=[],n=new Map;if(g.nodes)for(let t=0;t<g.nodes.length;t++){const i=g.nodes[t].events,c=g.nodes[t].onlyShowYear??!1;n.set(t,e.length);for(let s=0;s<i.length;s+=z){const d=i.slice(s,s+z);e.push({nodeIndex:t,onlyShowYear:c,events:d,indicator:{index:s,total:i.length}})}}return{slides:e,nodeToIndexMap:n}});Z(u,e=>{L(e)});const k=()=>{if(!v.value)return;const e=v.value,n=e.scrollLeft,t=e.scrollWidth,i=e.clientWidth,c=n>0,s=n+i<t;f.value={left:c,right:s}},L=e=>{const n=document.querySelectorAll(".milestone-timeline-item")[e],t=v.value,i=n.offsetLeft-t.offsetLeft,c=t.clientWidth,s=n.clientWidth,d=i-c/2+s/2;t.scrollTo({left:d,behavior:"smooth"}),setTimeout(()=>{k()},300)},V=e=>{u.value=e,h.value.slideTo(w.value.nodeToIndexMap.get(e)),L(e)},O=()=>{h.value.slidePrev()},$=()=>{h.value.slideNext()},j=({realIndex:e})=>{const n=w.value.slides[e].nodeIndex;u.value=n,x.value=w.value.slides[e].indicator},Y=[T(K,({adapter:{renderNode:e},children:n,key:t,node:i})=>e(`h${i.level}`,{key:t,class:"body3-m mb-8"},[...n])),T(Q,({adapter:{renderNode:e},children:n,key:t})=>e("p",{key:t,class:"body6",style:{opacity:"0.6"}},[...n]))],N=I(()=>{L(u.value),k()},400),b=I(()=>{k()},100);return ee(()=>{v.value&&(v.value.scrollLeft=0,v.value.addEventListener("scroll",b),te(()=>{k()})),window.addEventListener("resize",N)}),se(()=>{v.value&&v.value.removeEventListener("scroll",b),window.removeEventListener("resize",N)}),(e,n)=>{const t=q,i=D;return a(),r("div",le,[l("div",ie,[l("div",{class:m(["milestone-title",e.titleFontSize??"h3"])},W(e.title),3),l("div",{class:m(["milestone-timeline",{"first-actived":o(u)===0,"last-actived":o(u)===e.nodes.length-1,"overflow-left":o(f).left,"overflow-right":o(f).right}]),style:ne({"--count":e.nodes.length})},[o(f).left?(a(),r("div",ae)):E("",!0),l("div",{class:"nodes-wrapper",ref_key:"container",ref:v},[(a(!0),r(y,null,S(e.nodes,(c,s)=>(a(),r("div",{class:m(["milestone-timeline-item",{active:o(u)===s}]),key:c.title,onClick:d=>V(s)},[l("div",re,[l("span",de,W(c.title),1)])],10,ce))),128))],512),o(f).right?(a(),r("div",ve)):E("",!0)],6)]),l("div",ue,[l("div",me,[_(o(U),{class:"swiper","allow-touch-move":!0,onSwiper:F,breakpoints:P,"initial-slide":0,slidesPerView:"auto",centeredSlides:"",slideToClickedSlide:"",onRealIndexChange:j},{default:B(()=>[(a(!0),r(y,null,S(o(w).slides,(c,s)=>(a(),oe(o(H),{class:"slide",key:s},{default:B(()=>[l("div",he,[(a(!0),r(y,null,S(c.events,d=>(a(),r("div",{class:"slide-event",key:d.id},[d.image?(a(),r("div",fe,[l("div",pe,[_(t,{class:"responsive-image",data:d.image},null,8,["data"])])])):E("",!0),l("div",_e,[l("div",ge,[_(o(J),{class:m(["structured-text",{"has-image":d.image}]),data:d.content,customNodeRules:Y},null,8,["class","data"])])])]))),128))])]),_:2},1024))),128))]),_:1})]),_(i,{class:m(["action action-prev",{disabled:o(R)}]),name:"action-prev",onClick:O},null,8,["class"]),_(i,{class:m(["action action-next",{disabled:o(A)}]),name:"action-next",onClick:$},null,8,["class"])]),l("div",we,[(a(!0),r(y,null,S(new Array(o(x).total),(c,s)=>(a(),r("div",{class:m(["milestone-indicator-item",{active:s===o(x).index}]),key:s},null,2))),128))])])}}}),Ne=G(ke,[["__scopeId","data-v-66b63a01"]]);export{Ne 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.