PageSourceSearch

https://sushi-holl.ru/_nuxt/D_KLpgt8.js

js sushi-holl.ru collected 2026-09-29 22:32:59 UTC 7,313 bytes, 1 lines download raw bytes

1import{_ as $}from"./D_VHTKc3.js";import{aY as F,bU as B,c9 as U,bF as i,aL as r,bu as S,b1 as d,b2 as n,aK as E,bT as z,b5 as P,bI as v,bH as T,di as f,b6 as V,b7 as b,bV as H,bd as A,aM as p,a$ as c,bc as O,b3 as w,be as y,bf as I,bl as W,bh as R,bA as Y,bz as X,ca as G,c1 as Z,bW as K,bg as j,cp as q}from"./BLbFcDY4.js";import{G as J}from"./CvKwkNo4.js";import{b as Q,h as ee}from"./DUlgF_G5.js";import{v as x}from"./D6QL_5nn.js";import{S as te,a as oe}from"./BXH5SNOI.js";import{u as se}from"./B7uMGFeA.js";import{C as ie}from"./BZBo22dV.js";import{v as ne}from"./Dy2rWYss.js";import{s as re}from"./D_KSWf25.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="faa82f91-2c17-48db-affd-d9e48cff58bf",e._sentryDebugIdIdentifier="sentry-dbid-faa82f91-2c17-48db-affd-d9e48cff58bf")}catch{}})();const ae=F({name:"ArrowUpDownIcon",components:{IconWrapper:se},props:{size:{type:String,default:B.L},fill:{type:String,default:"var(--mono-900)"}}}),le=["fill"],ce=["fill"];function de(e,t,u,L,o,s){const m=i("IconWrapper");return r(),S(m,{size:e.size},{default:d(()=>[n("path",{d:"M7.74407 4.24409C7.41864 4.56953 7.41864 5.09717 7.74407 5.4226C8.06951 5.74804 8.59715 5.74804 8.92259 5.4226L10.1667 4.17853L10.1667 13.8333C10.1667 14.2936 10.5398 14.6667 11 14.6667C11.4602 14.6667 11.8333 14.2936 11.8333 13.8333V4.17845L13.0775 5.4226C13.4029 5.74804 13.9306 5.74804 14.256 5.4226C14.5814 5.09717 14.5814 4.56953 14.256 4.24409L11.5893 1.57739C11.4937 1.4818 11.3807 1.41428 11.2604 1.37485C11.2047 1.35652 11.1463 1.34392 11.0861 1.33774C10.9573 1.32445 10.8259 1.34109 10.7034 1.38768C10.6005 1.4268 10.5038 1.48703 10.4199 1.56837L10.4092 1.57895L7.74407 4.24409Z",fill:e.fill},null,8,le),n("path",{d:"M4.16674 11.8216L2.92259 10.5774C2.59715 10.252 2.06951 10.252 1.74408 10.5774C1.41864 10.9029 1.41864 11.4305 1.74408 11.7559L4.41078 14.4226C4.50663 14.5185 4.62001 14.5861 4.7406 14.6255C4.79562 14.6435 4.85315 14.6559 4.91254 14.6621C4.96633 14.6678 5.02057 14.6682 5.07443 14.6634C5.15194 14.6566 5.2264 14.6391 5.29635 14.6125C5.39937 14.5734 5.4962 14.5131 5.58013 14.4317C5.58369 14.4282 5.58722 14.4247 5.59072 14.4212L8.25599 11.7559C8.58143 11.4305 8.58143 10.9029 8.25599 10.5774C7.93056 10.252 7.40292 10.252 7.07748 10.5774L5.83341 11.8215L5.83341 2.16668C5.83341 1.70644 5.46031 1.33335 5.00007 1.33335C4.53984 1.33335 4.16674 1.70644 4.16674 2.16668L4.16674 11.8216Z",fill:e.fill},null,8,ce)]),_:1},8,["size"])}const pe=U(ae,[["render",de]]),ue={name:"Sort",components:{GRadio:ie,GButton:P,ArrowUpDownIcon:pe},directives:{clickOutside:ne.directive},emits:["startSorting"],data(){return{Sizes:b,ButtonView:V,value:"",sortListOpen:!1,sortedTypes:[{id:f.CHEAP_FIRST,name:this.$t("cheaperFirst")},{id:f.EXPENSIVE_FIRST,name:this.$t("moreExpensiveFirst")},{id:f.RATING,name:this.$t("byPopularity")},{id:f.AVG_SCORE,name:this.$t("byScore")}]}},computed:{...T(v,["currentSort"])},methods:{blockBodyScroll:z,changeSort(e){const t=v();this.value=e,e!==this.currentSort&&(this.$emit("startSorting"),t.setCurrentSort(e))},toggleSort(){this.sortListOpen=!this.sortListOpen},closeSort(){this.sortListOpen=!1}},watch:{sortListOpen:{handler(e){z(e)}}},mounted(){this.value=this.currentSort}},me={key:0,class:"sort__list"},Se={class:"sort__list-title"};function _e(e,t,u,L,o,s){const m=i("ArrowUpDownIcon"),g=i("GButton"),h=i("GRadio"),C=H("click-outside");return A((r(),p("div",{class:"sort",onMouseleave:t[1]||(t[1]=a=>s.blockBodyScroll(!1)),onMouseenter:t[2]||(t[2]=a=>s.blockBodyScroll(!0))},[c(g,{class:O({"sort-button_active":o.sortListOpen}),view:o.ButtonView.CLEAR,size:o.Sizes.S,"only-icon":"",onClick:s.toggleSort},{default:d(()=>[c(m,{size:o.Sizes.S,fill:" var(--color-primary)"},null,8,["size"])]),_:1},8,["class","view","size","onClick"]),o.sortListOpen?(r(),p("ul",me,[n("li",null,[n("span",Se,w(e.$t("sorting"))+":",1)]),(r(!0),p(y,null,I(o.sortedTypes,a=>(r(),S(h,{key:a.id.toString(),modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=_=>o.value=_),class:"radio-button",value:a.id,onChange:_=>s.changeSort(a.id)},{default:d(()=>[W(w(a.name),1)]),_:2},1032,["modelValue","value","onChange"]))),128))])):R("",!0)],32)),[[C,s.closeSort]])}const fe=E(ue,[["render",_e],["__scopeId","data-v-5fa97b75"]]),ge={name:"CatalogNavigation",components:{GShimmerProvider:ee,GShimmer:Q,CatalogSort:fe,GButton:P,SwiperSlide:oe,Swiper:te,GInput:J,LoupeIcon:x},emits:["startSorting","categorySelect"],data(){return{IconSizes:B,Sizes:b,ButtonView:V,swiperOptions:{slidesPerView:"auto",spaceBetween:4},isSwiperInitialized:!1,swiperInstance:null}},computed:{...T(v,["getCategories","getProducts"]),categoryIndex(){const{categoryPath:e}=Z.getCatalogPaths((this._.provides[K]||this.$route).params.catalog);return this.getCategories.findIndex(t=>t.url===e)},LoupeIcon(){return x}},methods:{openSearch(){const e=Y(),{$sendYandexMetrika:t,$sendTagManagerMetric:u}=X();
1t(G.SEARCH_OPEN),u(G.SEARCH_OPEN),e.openModal({modalName:"Search",componentProps:{size:b.XL,isCustomLayout:!0}})},selectCategory(e){this.$emit("categorySelect"),re(e)},onSwiperInit(e){this.swiperInstance=e,this.isSwiperInitialized=!0,this.$nextTick(()=>{e.update(),this.categoryIndex>=0&&e.slideTo(this.categoryIndex,0)})}},watch:{categoryIndex:{handler(e){e>=0&&this.swiperInstance?.slideTo(e,1e3)}}}},he={class:"main-top-line",id:"catalog-navigation"},Ce={class:"menu-category-container"},ve={class:"menu-category-controls"},be={class:"menu-search-control-block"},we={class:"categories-area"},ye={class:"shimmers"};function Ie(e,t,u,L,o,s){const m=i("GInput"),g=i("LoupeIcon"),h=i("GButton"),C=i("CatalogSort"),a=i("GShimmer"),_=i("GShimmerProvider"),D=$,N=i("SwiperSlide"),M=i("Swiper");return r(),p("div",he,[c(m,{placeholder:e.$t("findADish"),size:o.Sizes.S,"icon-left":s.LoupeIcon,"icon-color":"var(--exeption-600)",class:"input-wrapper",onClick:s.openSearch},null,8,["placeholder","size","icon-left","onClick"]),n("div",Ce,[n("div",ve,[n("div",be,[c(h,{view:o.ButtonView.CLEAR,size:o.Sizes.S,"only-icon":"",onClick:s.openSearch},{default:d(()=>[c(g,{size:o.IconSizes.S,fill:"var(--color-primary)"},null,8,["size"])]),_:1},8,["view","size","onClick"]),t[1]||(t[1]=n("div",{class:"categories__search-separate"},null,-1))]),c(C,{onStartSorting:t[0]||(t[0]=l=>e.$emit("startSorting"))})]),n("div",we,[A(n("div",ye,[(r(!0),p(y,null,I(e.getCategories.length,l=>(r(),S(_,{key:l,loading:!0},{default:d(()=>[c(a,{height:"46px",width:"94px",borderRadius:"14px"})]),_:1}))),128))],512),[[j,!o.isSwiperInitialized]]),c(M,q({class:["categories",{categories_initializing:!o.isSwiperInitialized}]},o.swiperOptions,{onSwiper:s.onSwiperInit}),{default:d(()=>[(r(!0),p(y,null,I(e.getCategories,(l,k)=>(r(),S(N,{class:"swiper-slide",key:l.id},{default:d(()=>[l.featured?R("",!0):(r(),S(D,{key:0,class:"categories__link",to:l.url,"data-index":k,onClick:Le=>s.selectCategory(l.id)},{default:d(()=>[n("span",{class:O(["categories__link-span",{"categories__link-span_active":k===s.categoryIndex}])},w(l.title),3)]),_:2},1032,["to","data-index","onClick"]))]),_:2},1024))),128))]),_:1},16,["class","onSwiper"])])])])}const Oe=E(ge,[["render",Ie],["__scopeId","data-v-23ba190d"]]);export{Oe as C};

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.