2026-09-23 00:30:09 +03:30
|
|
|
import{_ as ae}from"./Spinner.vue_vue_type_style_index_0_lang-iladsJNR.js";import{d as E,o as te,a as K,c as n,b as a,n as oe,F as V,r as O,e as M,f,g as S,h as A,i as s,_ as H,t as L,w as ne,u as i,j as le,k as u,I as R,l as ie,m as re,p as se,q,s as x,v as Q,x as F,L as j,y as ce}from"./index-gDBsh1na.js";import{u as ue,S as de}from"./SingleProduct-DoCRibqt.js";import{R as _e}from"./RateStrip-CWGvnHfp.js";import{u as ve,a as me}from"./cartStore-CnHZpE-f.js";import{S as Z}from"./SectionHead-D1crGF_Y.js";import{u as ge}from"./filtersStore-DRUTekNT.js";import{P as he}from"./index-C_XVtQe0.js";import{D as pe}from"./index-DHV2EObP.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./NotifyVant.vue_vue_type_script_setup_true_lang-04nlwBMZ.js";import"./DialogVant.vue_vue_type_style_index_0_lang-CjJCtcu_.js";import"./dialogEmpty1-Caw7F5KL.js";import"./filters-CLL9nGZ2.js";import"./classCallCheck-Cn_U7yJ4.js";const fe={key:0,class:"showcase"},ye=["onClick"],ke=["src"],be={key:0,class:"showcase__dots"},we=["aria-label","onClick"],ee=.18,Se=6,Ce=E({__name:"ShowcaseSlider",props:{slides:{}},emits:["select"],setup(l,{emit:g}){const r=l,z=g,d=S(0);let v;function b(o){d.value=o,p()}function p(){v&&clearInterval(v),r.slides.length>1&&(v=setInterval(()=>{d.value=(d.value+1)%r.slides.length},6e3))}te(p),K(()=>{v&&clearInterval(v)});const C=S(null),h=S(!1),y=S(0);let c=null,I=0,D=0,$=0,k=!1;function X(o){var e;if(r.slides.length<2||c!==null)return;const m=C.value;m&&(c=o.pointerId,I=o.clientX,D=o.clientY,$=m.getBoundingClientRect().width||1,y.value=0,h.value=!0,k=!1,(e=m.setPointerCapture)==null||e.call(m,o.pointerId))}function U(o){if(!h.value||o.pointerId!==c)return;const m=o.clientX-I,e=o.clientY-D;!k&&Math.abs(m)>Math.abs(e)&&Math.abs(m)>Se&&(k=!0),k&&(y.value=m)}function B(){if(!h.value)return;const m=y.value/$;h.value=!1,c=null,y.value=0,m<=-ee&&d.value<r.slides.length-1?d.value++:m>=ee&&d.value>0&&d.value--,k&&p(),k=!1}function N(o){o.pointerId===c&&B()}function Y(o){o.pointerId===c&&(h.value=!1,c=null,y.value=0,k=!1)}function G(o){k||z("select",o)}const T=A(()=>{const o=-d.value*100,m=$?y.value/$*100:0;return{transform:`translate3d(${o+m}%, 0, 0)`,transition:h.value?"none":void 0}});return K(()=>{if(c!==null&&C.value)try{C.value.releasePointerCapture(c)}catch{}}),(o,m)=>l.slides.length?(s(),n("section",fe,[a("div",{ref_key:"root",ref:C,class:M(["showcase__frame",{"is-dragging":h.value}]),onPointerdown:X,onPointermove:U,onPointerup:N,onPointercancel:Y},[a("div",{class:"showcase__track",style:oe(T.value)},[(s(!0),n(V,null,O(l.slides,(e,t)=>(s(),n("article",{key:e.key,class:M(["showcase__slide",{"is-active":t===d.value}]),onClick:_=>G(e)},[e.image?(s(),n("img",{key:0,src:e.image,alt:"",class:"showcase__art",draggable:"false"},null,8,ke)):f("",!0)],10,ye))),128))],4)],34),l.slides.length>1?(s(),n("div",be,[(s(!0),n(V,null,O(l.slides,(e,t)=>(s(),n("button",{key:e.key,type:"button",class:M(["showcase__dot",{"is-active":t===d.value}]),"aria-label":e.title,onClick:_=>b(t)},null,10,we))),128))])):f("",!0)])):f("",!0)}}),Ie=H(Ce,[["__scopeId","data-v-4f09b443"]]),$e={class:"rail no-scrollbar"},Pe=["onClick"],xe={class:"rail__mark","aria-hidden":"true"},ze=["src"],De={class:"rail__title"},Re=E({__name:"CategoryRail",props:{categories:{},activeId:{}},emits:["select"],setup(l,{emit:g}){const r=g;return(z,d)=>(s(),n("div",$e,[(s(!0),n(V,null,O(l.categories,v=>{var b;return s(),n("button",{key:v.id,type:"button",class:M(["rail__chip",{"is-active":v.id===l.activeId}]),onClick:p=>r("select",v)},[a("span",xe,[(b=v.icon)!=null&&b.image?(s(),n("img",{key:0,src:v.icon.image,alt:""},null,8,ze)):f("",!0)]),a("span",De,L(v.title),1)],10,Pe)}),128))]))}}),Ae=H(Re,[["__scopeId","data-v-c61b3098"]]),Le={class:"card__art"},Me=["alt"],Be={key:0,class:"card__badge"},Fe={class:"card__body"},Ve={class:"card__title"},Oe={class:"card__meta"},Xe={class:"card__weight"},qe={key:0,class:"card__wage"},Ee=E({__name:"ShowcaseCard",props:{value:{},wide:{type:Boolean},badge:{}},emits:["open"],setup(l,{emit:g}){const r=l,z=g,d=ue(),{image:v,id:b,title:p,min_gram:C,wage:h}=
|