1import{e as S,F as P,h as T,a5 as D,u as A,g as B,p as H,b as L,c as N}from"./CXmByAsd.js";import{A as I,f as b,E as V,$ as e,G as l,a5 as a,z as t,P as g,av as z,W as w,S as x,c as m,ah as E,ae as X,X as $}from"./CLFN9GXV.js";import{I as O}from"./C-G5mcQt.js";import{_ as R}from"./Bw6h1he4.js";import{S as W}from"./Bb7fWZ9z.js";import{M as j}from"./eAEu-bs_.js";import{_ as F}from"./gL4WoDzw.js";const G={class:"grid"},U={class:"col-12 col-md-8 insta-slider"},q=["src","loading"],J=["src"],K={class:"px-4 my-4 col-12 col-md-4"},Q=["innerHTML"],Y=["innerHTML"],Z={class:"col-12 pt-md-4"},tt=70,st=I({__name:"InstagramPost",props:{post:{}},setup(C){const c=C,{isDesktop:r}=S(),s=m(()=>new O(c.post)),h=b(r.value),_=b([]),v=[z];r.value&&v.push(E),V(()=>{f()});const f=async()=>{const d=new RegExp("(\\d{4,17})","g"),i=s.value.getCaption().matchAll(d),n=[];for(let o=i.next();o.value!==void 0;o=i.next())n.push(o.value[1]);if(n.length){const o=await P().getProductsByIds(n);o.isSuccess()&&_.value.push(...o.getData().filter(k=>k))}},y=m(()=>s.value?s.value.getCaption().split(` 2`)[0]:""),u=m(()=>{if(s.value){const d=s.value.getCaption().split(` 3`)[0];return s.value.getCaption().replace(d,"")}return""}),p=m(()=>h.value?u.value:u.value.length>70?u.value.substr(0,tt)+'... <span style="cursor: pointer; opacity: 0.3; text-decoration: underline;">еÑе</span>':u.value);return(d,i)=>(e(),l("div",G,[a("div",U,[t(s).isVideo()?(e(),l("video",{key:1,preload:"metadata",autoplay:"",src:t(s).getPreview(),style:{"max-width":"100%",width:"100%"}},null,8,J)):(e(),g(T,{key:0,"slider-options":{slidesPerView:1,scrollbar:{enabled:!t(r)},navigation:t(r)},items:t(s).getChildrenSrc(),modules:v},{item:w(({item:n,key:o})=>[a("img",{src:n,alt:"",loading:o===0?"eager":"lazy",width:"100%"},null,8,q)]),_:1},8,["slider-options","items"]))]),a("div",K,[t(y)?(e(),l("div",{key:0,class:"font-weight-medium",innerHTML:t(y)},null,8,Q)):x("",!0),t(p)?(e(),l("div",{key:1,style:{"white-space":"pre-wrap"},onClick:i[0]||(i[0]=n=>h.value=!0),innerHTML:t(p)},null,8,Y)):x("",!0)]),a("div",Z,[t(_).length?(e(),g(D,{key:0,items:t(_)},null,8,["items"])):x("",!0)])]))}}),et=Object.assign(st,{__name:"InstagramPost"}),ot={class:"mt-4"},nt={class:"my-auto d-flex align-center"},at=["src"],it={class:"my-4"},rt={key:0},lt={key:1},ct={key:2},vt=I({__name:"[slug]",async setup(C){let c,r;const s=A(),{helper:h}=B(),_=H(),{isDesktop:v}=S(),f=s.params.slug,y=h.getStaticImgUrl("icons/mobile/socialNetworks/insta_grey 1.svg"),u=m(()=>[{title:"@megatopshoes",link:s.path,isDisabled:!0}]),{data:p,status:d}=([c,r]=X(async()=>N(`getInstaStories_${f}`,async()=>({posts:await _.getInstagramData()}))),c=await c,r(),c),i=m(()=>p.value?.posts?.length&&p.value.posts.find(n=>n.id===f)||null);return(n,o)=>{const k=L,M=et;return e(),g(R,null,{default:w(()=>[a("div",ot,[t(v)?(e(),g(F,{key:1,items:t(u)},null,8,["items"])):(e(),g(j,{key:0,class:"px-4"},{title:w(()=>[a("div",nt,[a("img",{src:t(y),height:"24",width:"24",class:"mt-2",alt:"instagram"},null,8,at),o[0]||(o[0]=a("div",{class:"font-secondary text-size--5 ml-2"},[a("a",{class:"text-color--main text-underline",href:"https://www.instagram.com/megatopshoes/",target:"_blank"},"megatopshoes")],-1))])]),_:1})),a("div",it,[t(d)==="pending"?(e(),l("div",rt,[$(k,null,{default:w(()=>[$(W,{width:"100%",height:400})]),_:1})])):t(i)?(e(),l("div",lt,[$(M,{post:t(i)},null,8,["post"])])):(e(),l("div",ct,"ÐапиÑÑ Ð½Ðµ найдена"))])])]),_:1})}}});
3export{vt 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.