PageSourceSearch

https://shop.primefoods.ru/build/assets/ProfilePage-CFenCEYj.js

js primefoods.ru collected 2026-10-07 23:49:13 UTC 14,886 bytes, 1 lines download raw bytes

1import{z as R,Z as V,D as I,r as M,az as $,c as n,o as r,b as e,a as i,w as m,i as u,u as s,W as p,ah as c,l as g,t as o,n as W,g as h,F as C,e as f,O as _,M as N,a2 as q,V as z,a1 as P,ao as E,_ as T}from"./app-DFGEcP7D.js";import{_ as y}from"./VSlider.vue_vue_type_script_setup_true_lang-CjJaBXH8.js";import{_ as A}from"./ProfileLayout.vue_vue_type_script_setup_true_lang-BBWf3DzG.js";import{I as D,a as F,b as G}from"./IconRepeat-CxsgDE-d.js";import{_ as B}from"./BonusCard.vue_vue_type_script_setup_true_lang-Ct_PXKPD.js";import{_ as O}from"./ReferralModal.vue_vue_type_script_setup_true_lang-CqpdiyXC.js";import"./update-swiper-Dhiu8oXG.js";import"./VSection.vue_vue_type_script_setup_true_lang-Cg0LZyIa.js";import"./IconSignOut-tuBOojNV.js";import"./CallMe.vue_vue_type_script_setup_true_lang-CUrf51Jj.js";import"./Textarea.vue_vue_type_script_setup_true_lang-BUaoqXX7.js";const U={class:"w-full max-md:p-6"},H={class:"grid grid-cols-2 gap-2 lg:grid-cols-3 xl:grid-cols-4"},L={key:0,class:"text-subsidiary-reg text-additional mt-1"},Q={key:0,class:"text-subsidiary-reg text-additional mt-1"},Z={key:0,class:"text-subsidiary-reg text-additional mt-1"},J={class:"text-mob-small-bold md:text-default-bold"},K={key:0,class:"text-subsidiary-reg text-additional mt-1"},X={class:"mt-8 flex flex-col gap-8 min-[1568px]:flex-row min-[1568px]:items-stretch"},Y={class:"flex flex-1 flex-col gap-2 lg:gap-6"},ee={key:0,class:"bg-light-gray rounded-20 p-4"},te={class:"mt-8 flex items-center gap-2 max-md:pb-12 md:mt-6 md:gap-8"},se={key:1,class:"max-lg:mb-4 min-[1568px]:max-w-[600px] lg:max-[1568px]:max-w-[calc(99svw_-_64px_-_352px_-_32px)]"},le={class:"bg-light-gray rounded-20 flex h-full flex-col gap-4 p-2 md:p-4"},ie={class:"flex flex-col justify-between gap-2 lg:flex-row lg:items-center"},ae={class:"flex flex-col gap-2 md:flex-row md:items-center justify-between"},re={class:"flex items-center gap-3"},oe={class:"text-additional text-subsidiary-medium"},ne={class:"text-text text-mob-small-medium"},de={class:"text-additional text-subsidiary-medium"},me={class:"text-text text-mob-small-medium"},ue=["href"],pe={class:"flex flex-col justify-between gap-1 lg:flex-row lg:items-center"},ge={class:"text-small-medium lg:text-default-medium"},ce={class:"bg-light-gray rounded-20 p-4 max-lg:mt-4"},fe={class:"flex items-center justify-between"},be={key:0,class:"my-4 flex items-start gap-8 md:items-center lg:my-26"},xe={class:"text-mob-small-medium md:text-default-medium max-md:max-w-[200px]"},he={key:0},_e={key:1,class:"mt-4"},ye={class:"flex items-center gap-4"},we={class:"flex flex-col justify-between gap-3"},ve={class:"text-mob-small-bold line-clamp-2"},ke={class:"text-complimentary-reg text-subsidiary"},Ce={key:0,class:"flex items-center gap-4"},Pe={class:"flex flex-col gap-0.5"},Be={class:"text-subsidiary text-complimentary-reg line-through"},je={class:"text-mob-small-bold"},Se={key:0,class:"bg-delete text-complimentary-reg rounded-20 px-2 py-1 text-white"},Re={key:1,class:"text-mob-small-bold"},Ve={class:"flex max-w-full flex-col gap-6 min-[1568px]:max-w-120 lg:max-[1568px]:max-w-[calc(99dvw_-_64px_-_352px_-_32px)]"},Ie={class:"text-subsidiary-medium md:text-mob-small-medium mb-3"},Me={class:"font-vast text-vast-mob-title-bold mb-1"},$e={class:"text-subsidiary-medium md:text-mob-small-reg"},We={class:"font-vast text-vast-mob-title-bold mb-1"},Ne={class:"text-subsidiary-medium md:text-mob-small-medium mb-1"},qe={class:"text-subsidiary-medium md:text-mob-small-reg"},ze={class:"rounded-20 mt-8 p-3 shadow-[0_4px_30px_0_rgba(0,0,0,0.1)] md:p-4"},Ee={class:"mt-4 flex flex-col justify-between gap-2 md:flex-row"},Te={href:"mailto:[email protected]",class:"bg-input hover:bg-filling flex w-full items-center gap-2 rounded-lg p-3 transition-colors duration-200 max-md:px-2"},Ae=R({layout:A,__name:"ProfilePage",props:{auth:{},orderedProducts:{},deliveries:{},userBonusCard:{},itemsWithoutReviewCount:{},flash:{},second_banners:{},first_banners:{}},setup(De){const{t:x}=V(),{isMobile:d}=I(),w=M(!1),v=$("referralModalRef"),k=()=>{var a;
1(a=v.value)==null||a.openModal()},j=a=>{if(a.item.price_type==="руб/кг"||a.item.price_type==="руб/порция"){const t=Number(a.weight??0),b=Number(a.quantity??0),S=t>0&&b>0?t*b:t;return E(S,a.weight_type||a.item.weight_type)}return`${a.quantity} шт`};return(a,l)=>(r(),n("div",U,[e("nav",H,[i(s(g),{href:a.route("promotion.index"),class:"bg-input hover:bg-filling flex shrink-0 items-center rounded-2xl p-3 pb-10 transition-colors duration-300"},{default:m(()=>[e("div",null,[l[1]||(l[1]=e("h5",{class:"text-mob-small-bold md:text-default-bold lg:text-nowrap"},"Промокоды и акции",-1)),s(d)?u("",!0):(r(),n("p",L,"Больше выгоды от покупок"))]),i(s(p),{src:"/images/profile/SalePercent.png",alt:"SalePercent",width:"74px",class:"-mb-14"}),i(s(c))]),_:1},8,["href"]),i(s(g),{href:a.route("user.profile.white_list"),class:"bg-input hover:bg-filling flex items-center justify-between rounded-2xl p-3 pb-10 transition-colors duration-300"},{default:m(()=>[e("div",null,[l[2]||(l[2]=e("h5",{class:"text-mob-small-bold md:text-default-bold"},"Избранное",-1)),s(d)?u("",!0):(r(),n("p",Q,"Любимые товары"))]),i(s(p),{src:"/images/profile/Heart.png",alt:"SalePercent",width:"74px",class:"-mb-14"}),i(s(c))]),_:1},8,["href"]),i(s(g),{href:a.route("user.profile.white_list"),data:{tab:"recipes"},class:"bg-input hover:bg-filling flex shrink-0 items-center rounded-2xl p-3 pb-10 transition-colors duration-300"},{default:m(()=>[e("div",null,[l[3]||(l[3]=e("h5",{class:"text-mob-small-bold md:text-default-bold lg:text-nowrap"},"Любимые рецепты",-1)),s(d)?u("",!0):(r(),n("p",Z,"от шеф-повара"))]),i(s(p),{src:"/images/profile/Grill.webp",alt:"SalePercent",width:"74px",class:"-mb-14"}),i(s(c))]),_:1},8,["href"]),i(s(g),{href:a.route("user.profile.reviews"),class:"bg-input hover:bg-filling flex items-center justify-between rounded-2xl p-3 pb-10 transition-colors duration-300"},{default:m(()=>[e("div",null,[e("h5",J,o(s(x)("profile.waiting_reviews")),1),s(d)?u("",!0):(r(),n("p",K,o(s(x)("profile.waiting_reviews_little",a.itemsWithoutReviewCount)),1))]),i(s(p),{src:"/images/profile/Stars.png",alt:"Stars",width:"74px",class:"-mb-14"}),i(s(c))]),_:1},8,["href"])]),e("div",X,[e("div",Y,[a.deliveries.length?(r(),n("div",se,[i(s(y),{slides:a.deliveries,"slider-options":{allowTouchMove:!0,breakpoints:{0:{slidesPerView:1,spaceBetween:0}}}},{slide:m(({slide:t})=>[e("article",le,[e("div",ie,[l[8]||(l[8]=e("h5",{class:"text-default-bold"},"Доставка рассчитывается",-1)),e("div",{class:W(["text-mob-small-medium rounded-lg px-3 py-2",{"bg-full":t.status==="В обработке"||t.status==="Новый"||t.status==="Ожидает оплаты","bg-[#CEE9F9]":t.status==="Оплачен"||t.status==="В работе/в сборке"||t.status==="Подтвержден"||t.status==="Отправлен/в пути","bg-push-green":t.status==="Выполнен"||t.status==="Готов к выдаче","bg-[#ED1C241A]":t.status==="Отменён"}])},[l[7]||(l[7]=e("span",{class:"text-subsidiary-medium text-additional"},"Статус заказа: ",-1)),e("span",null,o(t.status),1)],2)]),e("div",ae,[e("div",re,[e("p",oe,[l[9]||(l[9]=h(" Заказ: ")),e("span",ne,o(t.id),1)]),e("p",de,[l[10]||(l[10]=h(" от: ")),e("span",me,o(t.created_at),1)])]),t.can_pay&&t.pay_url?(r(),n("a",{key:0,href:t.pay_url,class:"bg-ready-green max-md:w-fit text-subsidiary-reg sm:text-mob-small-medium disabled:text-additional flex cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-white transition-colors duration-200 ease-in"},[l[11]||(l[11]=e("span",null,"Оплатить заказ",-1)),i(s(c),{class:"h-5 w-5"})],8,ue)):u("",!0)]),e("div",pe,[e("p",ge,o(s(x)("profile.delivery_total"))+" "+o(s(x)("profile.delivery_description",t.product_count))+" "+o(t.order_price)+" руб ",1),i(s(g),{href:a.route("user.profile.orders.history.show",t.id),class:"text-subsidiary-reg bg-filling rounded-20 hover:bg-default flex w-fit flex-shrink-0 items-center gap-2 px-3 py-2 transition-colors duration-300 hover:text-white"},{default:m(()=>[l[12]||(l[12]=e("span",null,"Подробнее",-1)),i(s(c))]),_:2},1032,["href"])])])]),_:1}
1,8,["slides"])])):(r(),n("div",ee,[l[5]||(l[5]=e("h3",{class:"text-default-bold"},"Доставка",-1)),l[6]||(l[6]=e("p",{class:"text-additional text-subsidiary-medium mt-0.5"},"Доставка не ожидается",-1)),e("div",te,[i(s(p),{src:"/images/test-images/image_package.webp",alt:"Package",width:s(d)?"60px":"124px"},null,8,["width"]),l[4]||(l[4]=e("p",{class:"text-small-medium md:text-default-medium"},"Здесь покажем ближайшие доставки",-1))])])),s(d)?(r(),n(C,{key:2},[i(s(B),{"card-number":a.userBonusCard.number,"card-level":a.userBonusCard.level,cashback:a.userBonusCard.cashback+"%","card-balance":a.userBonusCard.amount},null,8,["card-number","card-level","cashback","card-balance"]),e("div",{class:"border-text rounded-20 bg-light-gray mt-2 flex cursor-pointer items-center justify-between gap-8 border p-4",onClick:k},[l[13]||(l[13]=e("div",null,[e("h5",{class:"text-small-medium"},"Пригласить друга"),e("p",{class:"text-subsidiary-reg mt-1 font-light"},"+500 баллов вам, другу - приветственный бонус")],-1)),i(s(p),{src:"/images/imageGift.png",alt:"logo",width:"60px",height:""})])],64)):u("",!0),e("div",ce,[e("div",fe,[l[15]||(l[15]=e("h3",{class:"text-default-bold"},"Вы недавно заказывали",-1)),a.orderedProducts&&!s(d)?(r(),f(s(g),{key:0,href:a.route("user.profile.orders_history"),class:"text-subsidiary-reg bg-filling rounded-20 hover:bg-default flex flex-shrink-0 items-center gap-2 px-3 py-2 transition-colors duration-300 hover:text-white"},{default:m(()=>[l[14]||(l[14]=e("span",null,"Все заказы",-1)),i(s(c))]),_:1},8,["href"])):u("",!0)]),a.orderedProducts.length===0?(r(),n("div",be,[i(s(p),{src:"/images/test-images/EmptyCart.webp",alt:"Package",width:s(d)?"60px":"124px"},null,8,["width"]),e("div",null,[e("p",xe,[l[16]||(l[16]=h(" Здесь покажем ваши заказы ")),s(d)?u("",!0):(r(),n("br",he)),l[17]||(l[17]=h(" за последнее время "))]),i(s(_),{label:"В каталог",class:"mt-8"})])])):(r(),n("div",_e,[i(s(z),{class:"max-h-[305px]"},{default:m(()=>[(r(!0),n(C,null,N(a.orderedProducts,t=>{var b;return r(),n("article",{key:t.id,class:"border-b-filling flex flex-col justify-between gap-4 border-b py-3 last:border-b-0 md:flex-row md:items-center"},[e("div",ye,[(b=t.item.images[0])!=null&&b.path?(r(),f(s(p),{key:0,src:t.item.images[0].path,alt:"product_image",width:s(d)?"74px":"116px",height:s(d)?"64px":"80px",class:"flex-shrink-0","img-classes":"rounded-lg"},null,8,["src","width","height"])):(r(),f(s(p),{key:1,src:"/images/productPlaceholder.png",alt:"productPlaceholder",width:s(d)?"74px":"116px",height:s(d)?"64px":"80px",class:"flex-shrink-0","img-classes":"rounded-lg"},null,8,["width","height"])),e("div",we,[e("h4",ve,o(t.item.name),1),e("span",ke,"Позиция: "+o(j(t)),1),t.unit_sale_percent?(r(),n("div",Ce,[e("div",Pe,[e("span",Be,o(t.price_for_unit)+" "+o(t.item.price_type),1),e("span",je,o(t.price_for_unit_without_sale)+" "+o(t.item.price_type),1)]),t.unit_sale_percent?(r(),n("div",Se," -"+o(t.unit_sale_percent)+"% ",1)):u("",!0)])):(r(),n("span",Re,o(t.item.price)+" "+o(t.item.price_type),1))])]),i(s(q),{id:t.item.id,"is-combo":t.type==="Combo",retry:"",class:"text-nowrap"},null,8,["id","is-combo"])])}),128))]),_:1})]))])]),e("div",Ve,[s(d)?u("",!0):(r(),f(s(B),{key:0,"card-number":a.userBonusCard.number,"card-level":a.userBonusCard.level,cashback:a.userBonusCard.cashback+"%","card-balance":a.userBonusCard.amount},null,8,["card-number","card-level","cashback","card-balance"])),i(s(y),{"slider-options":{spaceBetween:20,breakpoints:{0:{slidesPerView:1}}},slides:a.first_banners},{slide:m(({slide:t})=>[e("div",{style:P({backgroundImage:`url(${t.image.path}), linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1))`}),class:"rounded-20 flex h-full flex-col justify-between gap-3 bg-[url(/images/privilege_banner.webp)] bg-cover bg-center bg-no-repeat p-4 text-white bg-blend-color"},[e("div",null,[e("p",Ie,o(t.description),1),e("h4",Me,o(t.title),1),e("p",$e,o(t.addition_description),1)]),t.button_text&&t.link_url?(r(),f(s(g),{key:0,href:t.link_url},{default:m(()=>[i(s(_),{label:t.button_text,variant:"light",class:"w-full"},null,8,["label"])]),_:2},1032,["href"])):u("",!0)],4)]),_:1},8,["slides"]),s(d)?u("",!0):(r(),n("div",{key:1,class:"border-text rounded-20 bg-light-gray flex cursor-pointer items-center justify-between gap-8 border p-4",onClick:k},[l[18]||(l[18]=e("div",null,[e("h5",{class:"text-small-medium"},"Пригласить друга"),e("p",{class:"text-subsidiary-reg mt-1 font-light"},"+500 баллов вам, другу - приветственный бонус")],-1)),i(s(p),{src:"/images/imageGift.png",alt:"logo",width:"60px",height:""})])),i(s(y),{"slider-options":{spaceBetween:20,breakpoints:{0:{slidesPerView:1}}},slides:a.second_banners},{slide:m(({slide:t})=>[e("div",{style:P({backgroundImage:`url(${t.image.path}), linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1))`}),class:"rounded-20 flex h-full flex-col justify-between gap-3 bg-[url(/images/privilege_banner.webp)] bg-cover bg-center bg-no-repeat p-4 text-white bg-blend-color"}
1,[e("div",null,[e("h4",We,o(t.title),1),e("p",Ne,o(t.description),1),e("p",qe,o(t.addition_description),1)]),t.button_text&&t.link_url?(r(),f(s(g),{key:0,href:t.link_url},{default:m(()=>[i(s(_),{label:t.button_text,variant:"light",class:"w-full"},null,8,["label"])]),_:2},1032,["href"])):u("",!0)],4)]),_:1},8,["slides"])])]),e("div",ze,[l[22]||(l[22]=e("h3",{class:"text-default-bold"},"Техническая поддержка",-1)),e("nav",Ee,[e("a",Te,[i(s(D)),l[19]||(l[19]=e("span",{class:"text-mob-small-reg"},"Написать в поддержку",-1))]),i(s(g),{href:"/page/return-exchange",class:"bg-input hover:bg-filling flex w-full items-center gap-2 rounded-lg p-3 transition-colors duration-200 max-md:px-2"},{default:m(()=>[i(s(F)),l[20]||(l[20]=e("span",{class:"text-mob-small-reg"},"Условия возврата и обмена товаров",-1))]),_:1}),i(s(g),{href:a.route("faq.faq.index"),class:"bg-input hover:bg-filling flex w-full items-center gap-2 rounded-lg p-3 transition-colors duration-200 max-md:px-2"},{default:m(()=>[i(s(G)),l[21]||(l[21]=e("span",{class:"text-mob-small-reg"},"Частые вопросы",-1))]),_:1},8,["href"])])]),i(s(O),{ref_key:"referralModalRef",ref:v,visible:w.value,"onUpdate:visible":l[0]||(l[0]=t=>w.value=t)},null,8,["visible"])]))}}),Ye=T(Ae,[["__scopeId","data-v-acfd8c01"]]);export{Ye 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.