PageSourceSearch

https://ssr.my-shop.ru/v3/20260910-32631/_nuxt/Wrapper.lHoGKMJw.js

js my-shop.ru collected 2026-10-02 04:12:12 UTC 5,692 bytes, 1 lines download raw bytes

1import{_ as q,a as d,c as _,b as p,v as J,aJ as K,b3 as Q,F as W,r as z,d as f,u as U,aL as X,h as Y,aI as Z,D as S,j as g,o as ee,e as T,f as te,k as r,ab as M,ag as se,m as ie,p as D,q as ne,A as ae,B as oe}from"./entry.LLImgy_-.js";const le={},re={class:"slideshow__slide-wrapper"},ue={class:"slideshow__slide"},de={class:"slideshow__slide-inner"};function ce(i,w){return d(),_("div",re,[p("article",ue,[p("div",de,[J(i.$slots,"default")])])])}const je=q(le,[["render",ce]]),_e=K({name:"CommonSlideShowRenderSlide",props:{components:{type:Object,require:!0,default:()=>{}}},render(){return Q("div",{class:"slider__slide-outer"},[this.components])}}),pe="_pagination_1s7mo_1",me={pagination:pe,"pagination-item":"_pagination-item_1s7mo_22","pagination-item-active":"_pagination-item-active_1s7mo_42"},ve={props:{allCountItems:{type:Number,required:!0},current:{type:Number,required:!0}}},ge=["onClick"];function he(i,w,e,k,C,B){return d(),_("div",{class:f(i.$style.pagination)},[(d(!0),_(W,null,z(e.allCountItems,c=>(d(),_("div",{key:c,class:f([i.$style["pagination-item"],e.current===c&&i.$style["pagination-item-active"]]),onClick:x=>i.$emit("click-dot",c)},null,10,ge))),128))],2)}const fe={$style:me},ye=q(ve,[["render",he],["__cssModules",fe]]),$e="_slider_9xpdf_1",be="_navigation_9xpdf_8",Se="_btn_9xpdf_38",we="_prev_9xpdf_70",ke={slider:$e,"has-navigation":"_has-navigation_9xpdf_4","not-padding":"_not-padding_9xpdf_4","navigation-hover":"_navigation-hover_9xpdf_8",navigation:be,btn:Se,prev:we},E=i=>(ae("data-v-672258e4"),i=i(),oe(),i),Ce=["data-slide-index","area-label"],Be=E(()=>p("svg",{width:"24",height:"24"},[p("use",{"xlink:href":"#is-icon-arrow-right"})],-1)),xe=[Be],Ie=E(()=>p("svg",{width:"24",height:"24"},[p("use",{"xlink:href":"#is-icon-arrow-right"})],-1)),Ne=[Ie],Me={__name:"Wrapper",props:{pagination:{type:Boolean,default:!1},navigation:{type:Boolean,default:!1},navigationHover:{type:Boolean,default:!1},settings:{type:Object,required:!0,default:()=>{}},loop:{type:Boolean,required:!1,default:!0},items:{type:Array,required:!0,default:()=>[]},useCustomLayout:{type:Boolean,default:()=>!1},autoHeightSlide:{type:Boolean,default:()=>!1},heightSlider:{type:Number,default:()=>{}},type:{type:[Number,String],default:null},item_list_name:{type:String,default:""},item_list_id:{type:String,default:""}},emits:["slideshow-prev-slide","slideshow-next-slide"],setup(i,{emit:w}){const e=i,k=w,{$gtm:C}=ne();U();const B=X(),c=Y(),x=Z(),I=S(null),u=S(1),N=S(null),$=S(""),L=g(()=>y.value<=h.value),y=g(()=>{var t;return(t=B.default()[0])==null?void 0:t.children.length}),j=g(()=>e.heightSlider?{height:`${e.heightSlider}px`}:N.value?{height:`${N.value}px`}:{}),h=g(()=>H.value?e.settings.breakpoints[H.value].itemsToShow:e.settings.itemsToShow),A=g(()=>Math.ceil(e.items.length/h.value)),H=g(()=>{var m;let t=null,s=null;return e.settings.breakpoints&&Object.keys((m=e.settings)==null?void 0:m.breakpoints).length&&c.windowWidth>0?(Object.keys(e.settings.breakpoints).forEach(a=>{Number(a)>Number(c.windowWidth)?t=s:s=a}),t):!1}),b=g(()=>{const t=I.value,s=Math.round(h.value),m=y.value%s;let a=[],n=u.value*s,o=n-s,l=e.items.map((v,P)=>{var R,V,O;return{...v,number:P,cost:((R=x.prices[v.product_id])==null?void 0:R.price)||v.cost,old_cost:((V=x.prices[v.product_id])==null?void 0:V.priceBase)||v.old_cost,component:(O=B.default()[0])==null?void 0:O.children[P]}});return $.value==="next"&&m>0?(o=+t.slice(-1)[0].getAttribute("data-slide-index")+1,n=o+s,l=[...l,...l],a=l.slice(o,n)):$.value==="prev"&&m>0?(o=+t[0].getAttribute("data-slide-index")-s,n=o+s,a=l.slice(o,n),o<0&&(a=l.slice(o)),a.length>0&&a.length<s&&(a=[...a,...l.slice(0,n)])):(y.value>s&&(l=[...l,...l]),a=l.slice(o,n)),a});ee(()=>{e.type!==13&&e.item_list_name&&(c.listing.delete(e.item_list_name),c.listing.set(e.item_list_name,{products:b.value,item_list_name:e.item_list_name,item_list_id:e.item_list_id})),e.autoHeightSlide&&(N.value=I.value[0].getBoundingClientRect().height)});function F(){$.value="prev",u.value>1?u.value-=1:e.loop&&(u.value=A.value),C.pushViewItemList({products:b.value,item_list_name:e.item_list_name,item_list_id:e.item_list_id}),k("slideshow-prev-slide")}function G(){$.value="next",u.value>=1&&u.value<A.value?u.value+=1:e.loop&&(u.value=1),C.pushViewItemList({products:b.value,item_list_name:e.item_list_name,item_list_id:e.item_list_id}),k("slideshow-next-slide")}return(t,s)=>{const m=_e,a=ye;return d(),_("div",{style:M(r(j)),class:f([t.$style.slider,i.navigation&&!r(L)&&t.$style["has-navigation"],r(h)===1&&t.$style["not-padding"]])},[T(se,{tag:"div",name:"fade",class:"slider",style:M(!i.useCustomLayout&&`display:grid; grid-template-columns: repeat(${r(h)}, 1fr);`),duration:r(h)*50},{default:te(()=>
1[(d(!0),_(W,null,z(r(b),(n,o)=>(d(),_("span",{ref_for:!0,ref_key:"slide",ref:I,key:`item-${o}`,class:"slider__slide-container",style:M({transitionDelay:`${o*40}ms`,...r(j)}),"data-slide-index":n.number,"area-label":`${n.number+1} / ${r(y)}`},[T(m,{components:n.component},null,8,["components"])],12,Ce))),128))]),_:1},8,["style","duration"]),i.pagination?(d(),ie(a,{key:0,"all-count-items":r(y),current:r(u),onClickDot:s[0]||(s[0]=n=>u.value=n)},null,8,["all-count-items","current"])):D("",!0),i.navigation&&!r(L)?(d(),_("div",{key:1,class:f([t.$style.navigation,i.navigationHover&&t.$style["navigation-hover"]])},[p("button",{class:f([t.$style.btn,t.$style.prev]),"aria-label":"Назад",onClick:s[1]||(s[1]=n=>F())},xe,2),p("button",{class:f([t.$style.btn,t.$style.next]),"aria-label":"Вперёд",onClick:s[2]||(s[2]=n=>G())},Ne,2)],2)):D("",!0)],6)}}},qe={$style:ke},Ae=q(Me,[["__cssModules",qe],["__scopeId","data-v-672258e4"]]);export{je as _,Ae as a};

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.