import{j as e}from"./vendor-react-C630P38J.js";import{a as t}from"./vendor-runtime-BrGgGswE.js";import{S as b,P as p,a as u,b as d}from"./vendor-swiper-CwUwDtZu.js";import{K as g,M as h,O as f,Q as w,B as o}from"./feature-order-CyMOR5ND.js";import{q as _}from"./vendor-query-BjC2S-sR.js";import"./vendor-utils-Cb1MAKRV.js";import"./vendor-overlay-B61Jbn6n.js";import"./vendor-i18n-D_F5k183.js";import"./vendor-fxts-IS4CCBC4.js";import"./vendor-rhf-CXRF5ML7.js";import"./vendor-zod-BNDLCzeL.js";import"./vendor-hooks-D-WB61cZ.js";import"./vendor-cookie-BFUm5jHE.js";import"./vendor-state-BxLZOG0B.js";import"./vendor-form-ui-C6F7344s.js";import"./vendor-date-XKm2J5pk.js";const y=({options:r}={})=>_({queryKey:g.list(),queryFn:async()=>{const{data:n}=await h.getFeeds();return n},...r});var M="_24qx7h0",N="_24qx7h1",x="_24qx7h2",I="_24qx7h3",S="_24qx7h4",j="_24qx7h5",v="_24qx7h6",A="_24qx7h7";const z=()=>{const{data:r}=f(),n=(r==null?void 0:r.instagramUsed)||!1,l={modules:[p,u],slidesPerView:2.2,spaceBetween:10,autoplay:{delay:3e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},rewind:!0,pagination:{enabled:!0,el:".instagram-swiper-progressbar",type:"progressbar"},breakpoints:{[o.XS+1]:{slidesPerView:3.3},[o.SM+1]:{slidesPerView:"auto"}}};return n?e.jsx(t,{...y(),children:({data:a})=>{var c;const s=((c=a==null?void 0:a.data)!=null&&c.length,(a==null?void 0:a.data)??[]);return s.length===0?null:e.jsx("section",{className:M,children:e.jsx("div",{className:N,children:e.jsxs("div",{className:S,children:[e.jsxs("div",{children:[e.jsx("p",{className:I,children:"@runable.original"}),e.jsx("h3",{className:x,children:"Instagram"})]}),e.jsx(b,{className:j,...l,children:s.map(({media_url:i,permalink:m})=>e.jsx(d,{className:v,children:e.jsx(w,{src:i,onClick:()=>{window.open(m,"_blank")},alt:m})},i))}),e.jsx("div",{className:A,children:e.jsx("div",{className:"instagram-swiper-progressbar"})})]})})})}}):null};export{z as default};