1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="07b11705-675c-5202-9e12-dbfac81bfb53")}catch(e){}}(); 3const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C5RK5RxK.js","./BKpyJJgk.js","./entry.CwMn3M6N.css","./DNwwXXPe.js","./newlocate.XG9fwYgk.css","./BFSsWP-C.js","./UiModalContrastHeader.8UGJulYq.css","./CityChangeModal.BP0yv6yk.css"])))=>i.map(i=>d[i]); 4import{d as O,aa as S,V as C,b4 as D,av as E,aw as T,o as s,a,b as i,t as l,u as d,G as g,aC as V,r,i as k,n as I,h as w,w as b,X as N,an as z,bD as A,O as B,f as m,c as F,az as j,Y as L}from"./BKpyJJgk.js";import{p as M,e as R}from"./Doi7U8aq.js";const H={class:"new-product-offer-city"},U=O({name:"ProductOfferCity",__name:"ProductOfferCity",props:{hasInOtherShops:{type:Boolean,default:!1}},setup(t){const n=t,{trackEventClickElement:o}=S(),{userCity:u}=C(),{open:y,close:v}=D({component:E(()=>T(()=>import("./C5RK5RxK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),attrs:{async onClose(){await v()}}}),f=async()=>{n.hasInOtherShops||(o({element_name:`в Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°Ñ ${u.value.title}`,content_type:"product"}),await y())};return(h,p)=>(s(),a("div",H,[i("span",null,l(t.hasInOtherShops?"ÐÐµÑ Ð² налиÑии в ваÑем гоÑоде":"РналиÑии в Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°Ñ "),1),t.hasInOtherShops?g("",!0):(s(),a("button",{key:0,class:"new-product-offer-city__btn",onClick:f}," г. "+l(d(u).title),1))]))}}),P=Object.assign(U,{__name:"ProductPageProductOfferCity"}),G={key:0,class:"new-offer-delivery-item__price"},X={class:"new-offer-delivery-item__title"},Y={key:1,class:"new-offer-delivery-item__info"},q={class:"new-offer-delivery-item__buttons"},J=O({name:"ProductOfferDeliveryItem",__name:"ProductOfferDeliveryItem",props:{btnTitle:{},title:{default:void 0},btnColor:{default:"breeze"},btnType:{default:"primary"},url:{default:void 0},external:{type:Boolean,default:!1},productId:{default:void 0},canTriggerBooking:{type:Boolean},hasInOtherShops:{type:Boolean,default:!1},isFloating:{type:Boolean,default:!1}},emits:["btn-click"],setup(t,{emit:n}){const o=t,{trackEventClickElement:u}=S(),y=V("reserveService"),{openBookingModal:v}=M(),f=R(),h=m(()=>{const e=f.value;return e?{id:e.id,title:e.name,url:`/product/${e.slug}`,status:e.availabilityStatus,picture:e.mainImage,price:e.price?.sale??0,oldPrice:e.price?.base??0,nboPrice:e.price?.nbo??0}:null}),p=z(!1),c=n,_=async()=>{if(c("btn-click"),u({element_name:o.btnTitle,content_type:"product"}),o.url){try{if(o.productId&&o.canTriggerBooking){p.value=!0;const e=await y.getLastBookingPrefill(o.productId);if(e?.data?.prefillAvailable&&h.value){await v({product:h.value,prefillData:e.data,reserveUrl:o.url});return}}}catch(e){A(e)}finally{p.value=!1}await B(o.url)}};return(e,te)=>(s(),a("div",{class:I(["new-offer-delivery-item",{"new-offer-delivery-item--is-floating":t.isFloating}])},[i("div",{class:I(["new-offer-delivery-item__header",{"new-offer-delivery-item__header--in-other":t.hasInOtherShops}])},[e.$slots.price?(s(),a("div",G,[r(e.$slots,"price")])):g("",!0),i("div",X,[r(e.$slots,"title",{},()=>[k(l(t.title),1)]),r(e.$slots,"subtitle")]),e.$slots.info?(s(),a("div",Y,[r(e.$slots,"info")])):g("",!0)],2),i("div",q,[w(d(N),{type:t.btnType,size:"l","is-block":"",color:t.btnColor,tag:"button",rel:"nofollow",class:"new-offer-delivery-item__btn","is-loading":d(p),onClick:_},{default:b(()=>[k(l(t.btnTitle),1)]),_:1},8,["type","color","is-loading"]),r(e.$slots,"button")]),r(e.$slots,"note")],2))}}),K=Object.assign(J,{__name:"ProductPageProductOfferDeliveryItem"}),Q={key:0,class:"new-offer-delivery-shops__title"},W={key:0,class:"new-offer-delivery-shops__price"},Z={key:1,class:"new-offer-delivery-shops__title"},x={key:0,class:"new-offer-delivery-shops__price"},$="ÐÑоÑмиÑе ÑезеÑв и забеÑиÑе ÑÐ¾Ð²Ð°Ñ Ð² ÑеÑение ÑÑÐµÑ Ð´Ð½ÐµÐ¹",ee=O({name:"ProductOfferDeliveryShops",__name:"ProductOfferDeliveryShops",props:{shops:{},url:{},hasInOtherShops:{type:Boolean},isFloating:{type:Boolean,default:!1},productId:{default:void 0}},setup(t){const n=t,{trackEventClickElement:o}=S(),{isAuthorized:u}=C(),y=m(()=>n.hasInOtherShops?"ÐоÑмоÑÑеÑÑ Ð½Ð°Ð»Ð¸Ñие":"ÐабÑаÑÑ Ð¸Ð· магазина"),v=m(()=>u.value&&!n.hasInOtherShops),f=m(()=>L(n.shops,["магазин","магазина","магазинов"])),h=m(()=>`/availability${n.url}`),p=async()=>{o({element_name:`${n.shops} ${f.value}`,content_type:"product"}),await B(h.value)};return(c,_)=>(s(),F(K,{class:"new-offer-delivery-shops","btn-title":d(y),"btn-color":"light-yellow",url:d(h),"product-id":t.productId,"is-floating":t.isFloating,"has-in-other-shops":t.hasInOtherShops,"can-trigger-booking":d(v),external:""},j({title:b(()=>[t.hasInOtherShops?(s(),a("div",Q,[w(P,{"has-in-other-shops":t.hasInOtherShops},null,8,["has-in-other-shops"]),c.$slots.price?(s(),a("div",W,[r(c.$slots,"price")])):g("",!0),i("div",null,[_[0]||(_[0]=k(" ÐÑÑÑ Ð² дÑÑÐ³Ð¸Ñ Ð³Ð¾ÑÐ¾Ð´Ð°Ñ , ",-1)),i("button",{class:"global-nowrap new-offer-delivery-shops__suffix",onClick:p}
4,l(t.shops)+" "+l(d(f)),1)])])):(s(),a("div",Z,[w(P,{"has-in-other-shops":t.hasInOtherShops,class:"new-offer-delivery-shops__city"},null,8,["has-in-other-shops"]),c.$slots.price?(s(),a("div",x,[r(c.$slots,"price")])):g("",!0),i("span",{class:"new-offer-delivery-shops__reserve"},l($))]))]),button:b(()=>[r(c.$slots,"button")]),_:2},[t.hasInOtherShops?void 0:{name:"note",fn:b(()=>[i("p",{class:"new-offer-delivery-shops__note"},l($))]),key:"0"}]),1032,["btn-title","url","product-id","is-floating","has-in-other-shops","can-trigger-booking"]))}}),ne=Object.assign(ee,{__name:"ProductPageProductOfferDeliveryShops"});export{ne as default}; 5//# sourceMappingURL=DspH50jg.js.map 6 7//# debugId=07b11705-675c-5202-9e12-dbfac81bfb53
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.