1import{_ as N}from"./ClDaYw7g.js";import{_ as H}from"./--F2EU6D.js";import S from"./lJdXQuFA.js";import{S as P}from"./CC70q_s8.js";import y from"./BbP8bePf.js";import F from"./Dh5hRQVI.js";/* empty css */import{a as I,S as T,C as R}from"./B5EBqITO.js";import{_ as w,c as n,o as r,a as i,e as h,v as A,b as o,F as k,f as d,r as f,s as B,w as b,k as x,i as V,x as W,p as $,q as E,j as M}from"./D8PiJXAC.js";import{t as U}from"./C8q3fRh1.js";import{u as j}from"./CzZsnjVt.js";import{g as q}from"./Cd-7wpi2.js";import{u as z}from"./CoWCgI_-.js";import"./Qb_DJyTh.js";import"./Ce_v0ILL.js";import"./e_lGoo9X.js";import"./jSnsprRA.js";import"./CoChc7CN.js";import"./D401YnWV.js";import"./ByxYglhp.js";import"./DaOUotmG.js";import"./eR9Pu1kR.js";import"./DefGBrdN.js";import"./A7Ur1WBN.js";import"./hCUpfh7m.js";const D={},Q={width:"61",height:"46",viewBox:"0 0 61 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z(v,t){return r(),n("svg",Q,t[0]||(t[0]=[i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 17C0 25.3586 6.04555 32.3082 14.0116 33.7328C12.1732 35.8377 9.99634 38.019 7.51663 40.4954C4.00889 43.9984 6.5678 46.2711 10.4726 45.3871C23.237 42.4971 29.5254 36.8304 32.3168 30.169C34.5111 31.9588 37.1609 33.2132 40.0662 33.7328C38.2279 35.837
17 36.051 38.019 33.5713 40.4954C30.0636 43.9984 32.6225 46.2711 36.5273 45.3871C58.1258 40.497 61.1822 27.6567 60.1302 15.5C60.0623 14.7162 59.9167 13.9529 59.7051 13.2165C57.9814 5.64874 51.1976 0 43.0916 0C37.8658 0 33.1895 2.34775 30.0643 6.04388C26.9391 2.34775 22.2628 0 17.037 0C7.62771 0 0 7.61116 0 17Z",fill:"currentColor"},null,-1)]))}const G=w(D,[["render",Z]]),J={class:"review-card__icon"},K={class:"review-card__text"},O=["innerHTML"],X=["innerHTML"],Y=["innerHTML"],ee=h({__name:"ReviewCard",props:{review:{},active:{type:Boolean}},emits:["activate"],setup(v,{emit:t}){const l=t,s=()=>l("activate");return(e,_)=>(r(),n("div",{class:A(["review-card",{"review-card--active":e.active}])},[i("div",J,[o(G)]),i("div",K,[e.active?(r(),n("div",{key:0,innerHTML:e.review.review},null,8,O)):(r(),n(k,{key:1},[i("div",{innerHTML:d(U)(e.review.review,100)},null,8,X),i("button",{class:"review-card__more-btn",onClick:s,type:"button","aria-label":"ÐодÑобнее"},"ÐодÑобнее")],64))]),i("div",{class:"review-card__footer",innerHTML:e.review.author+", "+e.review.name},null,8,Y)],2))}}),L=w(ee,[["__scopeId","data-v-3c4fbe31"]]),te={class:"review-carousel"},se=h({__name:"ReviewCarousel",props:{reviews:{}},setup(v,{expose:t}){t({slidePrev:()=>{e.value&&e.value.prev()},slideNext:()=>{e.value&&e.value.next()}});
1const e=f(null),_={itemsToShow:2.5,snapAlign:"start",wrapAround:!1,gap:20,transition:200,height:540},a=f(0),p=u=>{a.value=u};return(u,C)=>(r(),n("div",te,[o(d(I),B({ref_key:"carouselRef",ref:e},_,{modelValue:a.value,"onUpdate:modelValue":C[0]||(C[0]=m=>a.value=m)}),{default:b(()=>[(r(!0),n(k,null,x(u.reviews,(m,g)=>(r(),V(d(T),{key:m.id,class:"review-carousel__slide"},{default:b(()=>[o(L,{review:m,active:a.value===g,onActivate:c=>p(g)},null,8,["review","active","onActivate"])]),_:2},1024))),128))]),_:1},16,["modelValue"])]))}}),oe=w(se,[["__scopeId","data-v-dd1b51aa"]]),re={class:"review-carousel-mobile"},ae={class:"review-carousel-mobile__dots-wrapper"},ie={class:"review-carousel-mobile__dots"},ne=["onClick"],le=h({__name:"ReviewCarouselMobile",props:{reviews:{}},setup(v){const t=f(0),l={itemsToShow:1,snapAlign:"center",height:414,transition:700,gap:12};function s(e){t.value=e}return(e,_)=>(r(),n("div",re,[o(d(I),B(l,{modelValue:t.value,"onUpdate:modelValue":_[0]||(_[0]=a=>t.value=a)}),{default:b(()=>[(r(!0),n(k,null,x(e.reviews,a=>(r(),V(d(T),{key:a.id},{default:b(()=>[o(L,{review:a,active:!0},null,8,["review"])]),_:2},1024))),128))]),_:1},16,["modelValue"]),i("div",ae,[i("div",ie,[(r(!0),n(k,null,x(e.reviews,(a,p)=>(r(),n("div",{key:a.id,class:A(["review-carousel-mobile__dot",{"review-carousel-mobile__dot--active":t.value===p}]),onClick:u=>s(p)},null,10,ne))),128))])])]))}}),ce=w(le,[["__scopeId","data-v-aac884f3"]]),ue=async(v=4,t=1)=>{const l=f(t),s=f([]),{data:e,error:_,status:a}=await j(`reviews-list-${t}-${v}`,()=>{const c={page:l.value,page_size:v};return q("reviews/list",c)},{watch:[l],immediate:!0});W(()=>{if(!e.value)return;const c=e.value.data.items||[];c.length&&(l.value===t?s.value=c:s.value=[...s.value,...c])});const p=$(()=>
1a.value==="pending"),u=$(()=>e.value?e.value.data.current_page<e.value.data.last_page:!1),C=()=>{u.value&&(l.value+=1)},m=$(()=>{var c;return((c=e.value)==null?void 0:c.data.current_page)||t}),g=$(()=>{var c;return((c=e.value)==null?void 0:c.data.total)||0});return{reviews:s,totalItems:g,loading:p,loadMore:C,hasMore:u,currentPage:m,error:_}},_e={class:"reviews"},de={key:0,class:"reviews__slider"},ve={class:"reviews__slider-mobile"},pe={key:1,class:"reviews__controls"},me=h({__name:"ReviewsWidget",async setup(v){let t,l;const s=f(null),{reviews:e}=([t,l]=E(()=>ue()),t=await t,l(),t);function _(){s.value&&s.value.slidePrev()}function a(){s.value&&s.value.slideNext()}return(p,u)=>(r(),n("div",_e,[u[0]||(u[0]=i("div",{class:"reviews__description"},[i("h4",null,"ÐлиенÑÑ Ð¾ ЯÐеÑвом"),i("p",null," ÐаÑа Ñеклама дейÑÑвиÑелÑно ÑабоÑаеÑ. ÐÑÑÑее доказаÑелÑÑÑво ÑÑÐ¾Ð¼Ñ â оÑзÑÐ²Ñ Ð½Ð°ÑиÑ
многоÑиÑленнÑÑ
клиенÑов. ")],-1)),d(e)?(r(),n("div",de,[o(oe,{ref_key:"reviewCarouselRef",ref:s,reviews:d(e)},null,8,["reviews"])])):M("",!0),i("div",ve,[o(ce,{reviews:d(e)},null,8,["reviews"])]),d(e)?(r(),n("div",pe,[o(R,{direction:"left",onClick:_}),o(R,{direction:"right",onClick:a})])):M("",!0)]))}}),fe=w(me,[["__scopeId","data-v-f6005c1f"]]),we={class:"page-container","aria-label":"ÐапÑÐ¾Ñ ÑекламÑ"},he={class:"page-header"},Ce={class:"content-wrapper"},ge={class:"form-wrapper"},$e=h({__name:"index",setup(v){return z("adv"),(t,l)=>{const s=N,e=H;return r(),n("section",we,[i("div",he,[o(s),o(e,{title:"Реклама"})]),i("div",Ce,[o(F),i("div",ge,[o(S),o(y,{class:"wrapper-info--desktop"})]),o(y,{class:"wrapper-info--mobile"})]),o(fe),o(P)])}}}),Ze=w($e,[["__scopeId","data-v-f6d72af5"]]);export{Ze 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.