import{c as E}from"./zGf2QfxO.js";import{n as S,u as A,o as y,R,a8 as $,p as B,q as l,a0 as O,r as q,B as w,v as s,C,y as u,_ as I,H as p,t as a,E as D,F as b,G as k,A as _}from"./C-p8iwFB.js";import{A as H}from"./Bw4pmyJw.js";import{y as W}from"./NPB8-mQI.js";const F={class:"info-text text-body-extra-small mb-0"},N=S({__name:"RegisterWidget",props:{link:{},text:{},icon:{}},setup(x){const g=x,{t:m}=A(),c=y(()=>g.text||m("howItWorks.registerShop")),v=e=>{E(e,{goal:"Register eshop",name:'Click on "Register e-shop" widget'})},r=()=>{const e=document.querySelector(".widget");if(e){window.scrollY>1e3&&e.classList.remove("disable");const n=document.querySelector(".top-wrapper"),d=(n==null?void 0:n.getBoundingClientRect().top)||0,f=window.innerHeight/2-105+30;window.innerHeight-f>d?e.classList.add("position-footer"):e.classList.remove("position-footer")}};return R(()=>{document.addEventListener("scroll",r)}),$(()=>{window.removeEventListener("scroll",r)}),(e,n)=>(l(),B(O,{to:e.link,class:"button-container widget disable",onScroll:r,onClick:n[0]||(n[0]=d=>v(d))},{default:q(()=>[w(C,{xl:"",name:e.icon||"service-icon-pick-up-points",class:"mb-8"},null,8,["name"]),s("p",F,u(c.value),1)]),_:1},8,["to"]))}}),ie=I(N,[["__scopeId","data-v-8d04a495"]]),T={class:"container"},V={class:"d-flex flex-column d-md-none"},z={class:"box"},G={class:"d-flex flex-column justify-content-center align-items-center"},M={class:"text-center text-button-default"},U={class:"text-box d-flex text-grey-700 mb-0"},Y={class:"d-flex align-items-center justify-content-center"},J={class:"d-none d-md-flex justify-content-md-center flex-3xl-column"},K={class:"services-tabs"},P=["onClick"],Q={class:"d-flex flex-column justify-content-center align-items-center"},X={class:"text-center text-button-default"},Z={class:"text-box text-grey-700 mb-0"},ee=S({__name:"OurServices",props:{services:{}},setup(x){const g=x,m=p(!1),c=p(null),v=p([]),r=t=>{t&&(v.value=[t])},e=p(0),n=t=>{var h;(h=c.value)==null||h.moveToIdx(t)},d=t=>{e.value=t},f=y(()=>{var t;return(t=g.services[e.value])==null?void 0:t.description}),L=y(()=>e.value>=4?"offset-box-4":e.value?`offset-box-${e.value}`:"");return R(()=>{c.value=new W(v.value[0],{loop:!0,slideChanged:t=>{e.value=t.track.details.rel}}),m.value=!0}),$(()=>{c.value&&c.value.destroy()}),(t,h)=>(l(),a("div",T,[D(t.$slots,"default",{},void 0,!0),s("div",V,[s("div",{ref:r,class:"keen-slider mb-32"},[(l(!0),a(b,null,k(t.services,(o,i)=>(l(),a("div",{key:`${o._uid}-mobile`,class:_(["keen-slider__slide",{"d-none":!m.value}])},[s("div",{class:_(["d-flex justify-content-center",`service-${i}`])},[s("div",z,[s("div",G,[w(C,{xxl:"",name:o.icon,class:"text-primary-500 mb-16"},null,8,["name"]),s("p",M,u(o.title),1)])])],2),s("p",U,u(f.value),1)],2))),128))]),s("div",Y,[(l(!0),a(b,null,k(t.services,(o,i)=>(l(),B(H,{key:o._uid,class:"me-8 ms-8 me-lg-16 ms-lg-0","start-position":i,"end-position":t.services.length,active:i===e.value,onClick:j=>n(i)},null,8,["start-position","end-position","active","onClick"]))),128))])]),s("div",J,[s("div",K,[(l(!0),a(b,null,k(t.services,(o,i)=>(l(),a("div",{key:o._uid},[s("div",{class:_(["box",[{"active-box":i===e.value}]]),onClick:j=>d(i)},[s("div",Q,[w(C,{xxl:"",name:o.icon,class:"text-primary-500 mb-16"},null,8,["name"]),s("p",X,u(o.title),1)])],10,P)]))),128))]),s("div",{class:_([L.value])},[s("p",Z,u(f.value),1)],2)])]))}}),le=I(ee,[["__scopeId","data-v-36880a74"]]);export{le as O,ie as R}; //# sourceMappingURL=DKQIAnUa.js.map