1"use strict";(self.webpackChunkbazar_web=self.webpackChunkbazar_web||[]).push([[318],{9137:(e,s,a)=>{a.r(s),a.d(s,{default:()=>ne});var i=a(2791),o=a(3168),l=a(6939),t=a(5172),r=a(803),n=a(4936),c=a(2642),d=a(7437),p=a(3596),_=a(8047),h=a(9039);const m=a.p+"static/media/appVideoPlaceholderPL.2fbd297438069d25766f.jpg",b=a.p+"static/media/appVideo.4a2be1a135d333d7fce1.mp4",g="MobileAppSection_root__OiQPb",x="MobileAppSection_content__kEVe5",j="MobileAppSection_info__rU8Sv",u="MobileAppSection_title__Y0nSG",v="MobileAppSection_stepsList__YZ-jd",y="MobileAppSection_step__cWgsI",N="MobileAppSection_footer__0SLKZ",S="MobileAppSection_badge__tGDcJ",A="MobileAppSection_linksList__T1Hee",k="MobileAppSection_link__pCTFI",f="MobileAppSection_video__4oNMH",M="MobileAppSection_videoContainer__P1JYq";var T=a(184);const Z=e=>{let{links:s=r.Z}=e;const{t:a,i18n:{language:i}}=(0,o.$)();return(0,T.jsx)("section",{className:g,children:(0,T.jsxs)("div",{className:x,children:[(0,T.jsxs)("div",{className:j,children:[(0,T.jsx)("h2",{className:u,children:a("about:app.title")}),(0,T.jsxs)("ol",{className:v,children:[(0,T.jsx)("li",{className:y,children:a("about:app.list.0")}),(0,T.jsx)("li",{className:y,children:a("about:app.list.1")}),(0,T.jsx)("li",{className:y,children:a("about:app.list.2")}),(0,T.jsx)("li",{className:y,children:a("about:app.list.3")})]}),(0,T.jsxs)("div",{className:N,children:[s.badge?(0,T.jsx)("a",{href:s.badge,alt:a("about:app.badge"),children:(0,T.jsx)("span",{className:S,children:a("about:app.badge")})}):(0,T.jsx)("span",{className:S,children:a("about:app.badge")}),(0,T.jsxs)("div",{className:A,children:[(0,T.jsx)("a",{className:k,href:s.ios,target:"_blank",rel:"noreferrer nofollow",children:(0,T.jsx)(t.IU,{src:{ru:n.Z,uk:d.Z,pl:c.Z},alt:"AppStore",width:147,height:39,loading:"lazy"})}),(0,T.jsx)("a",{className:k,href:s.android,target:"_blank",rel:"noreferrer nofollow",children:(0,T.jsx)(t.IU,{src:{ru:p.Z,uk:h.Z,pl:_.Z},alt:"GooglePlay",width:147,height:39,loading:"lazy"})})]})]})]}),(0,T.jsx)("div",{className:M,children:"pl"===i?(0,T.jsx)("img",{className:f,src:m,alt:"Bazar app video"}):(0,T.jsx)("video",{className:f,src:b,controls:!0})})]})})};var w=a(7993),I=a(1073),C=a(4694);const L=e=>{let{country:s,polygons:a}=e;return{meta:(0,i.useMemo)((()=>{const e=[];return a.filter((e=>e.country===s)).forEach((s=>{e.find((e=>e.deliveryTime===s.defaultDeliveryTime))||e.push({deliveryTime:s.defaultDeliveryTime,color:s.color})})),e.sort(((e,s)=>e.deliveryTime>s.deliveryTime?1:-1)),e}),[s,a])}};var B=a(1933),z=a(9086);const U=()=>{const{isLoading:e,data:s}=(0,B.useQuery)("polygons",(async()=>(await z.Z.get("polygons")).map((e=>({...e,active:!!e.active,points:JSON.parse(e.points).map((e=>({lat:e[0],lng:e[1]})))})))));return{isLoading:e,polygons:s||[]}},O="ServiceAreaSection_root__eOKUM",P="ServiceAreaSection_content__Ba1Ee",E="ServiceAreaSection_title__lRv+o",F="ServiceAreaSection_header__NKfyi",J="ServiceAreaSection_text__P3Ns+",K="ServiceAreaSection_cities__WEiyB",G="ServiceAreaSection_meta__HhHl2",Y="ServiceAreaSection_metaItem__Fzhk3",D="ServiceAreaSection_metaItemCircle__M0XK5",H="ServiceAreaSection_metaItemText__vsB6f",V=e=>{let{cities:s}=e;const{t:a,i18n:l}=(0,o.$)(),[r,n]=(0,i.useState)(s[0]),{isLoaded:c}=(0,w.Db)({googleMapsApiKey:I.Z.GOOGLE_API_KEY,language:l.language,region:l.language.toUpperCase()}),{isLoading:d,polygons:p}=U(),{meta:_}=L({country:r.country,polygons:p});return(0,T.jsx)("section",{className:O,children:(0,T.jsxs)("div",{className:P,children:[(0,T.jsxs)("div",{className:F,children:[(0,T.jsx)("h2",{className:E,children:a("address:mapTitle")}),(0,T.jsx)("ul",{className:G,children:_.map((e=>(0,T.jsxs)("li",{className:Y,children:[(0,T.jsx)("span",{className:D,style:{border:"2px solid rgba(".concat(e.color,")"),backgroundColor:"rgba(".concat(e.color,")")}}),(0,T.jsxs)("span",{className:H,children:["- ",a("address:deliveryZone.0"),(0,T.jsx)("span",{children:a("address:deliveryZone.1",{deliveryTime:e.deliveryTime})})]})]},e.deliveryTime)))}),"minsk"===r.key&&(0,T.jsx)("p",{class:J,children:"Bazar \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 8 \u0440\u0430\u0439\u043e\u043d\u0430\u0445 \u041c\u0438\u043d\u0441\u043a\u0430: \u041d\u043e\u0432\u0430\u044f \u0411\u043e\u0440\u043e\u0432\u0430\u044f, \u041b\u
10435\u0431\u044f\u0436\u0438\u0439, \u041a\u043e\u043c\u0430\u0440\u043e\u0432\u043a\u0430, \u0413\u0440\u0443\u0448\u0435\u0432\u043a\u0430, \u041a\u0430\u043c\u0435\u043d\u043d\u0430\u044f \u0433\u043e\u0440\u043a\u0430, \u041f\u0443\u0448\u043a\u0438\u043d\u0441\u043a\u0430\u044f, \u041c\u0430\u044f\u043a \u041c\u0438\u043d\u0441\u043a\u0430, \u041c\u0438\u043d\u0441\u043a \u041c\u0438\u0440."})]}),s.length>1&&(0,T.jsx)("div",{className:K,children:s.map((e=>(0,T.jsx)(t.zx,{variant:r.key===e.key?"contained":"outlined",onClick:()=>n(e),children:a("about:cities.".concat(e.key))},e.key)))}),!c||d?(0,T.jsx)(t.TF,{}):(0,T.jsx)(w.b6,{mapContainerStyle:{height:480},center:r.position,options:C.J,zoom:"minsk"===r.key?11:10,children:p.map((e=>(0,T.jsx)(w.mg,{path:e.points,options:{fillColor:"rgb(".concat(e.color,")"),fillOpacity:1,strokeColor:"rgb(".concat(e.color,")"),strokeOpacity:1,strokeWeight:2}},e.id)))})]})})},W=a.p+"static/media/deliveryMan.9b49e452a21b1a4cc349.png",$=a.p+"static/media/deliveryManUK.8a7257244e1b2bc01b27.png";var q=a(1600);const Q="MobileApp_heroTop__6YRc-",R="MobileApp_heroTopContent__zJZ6X",X="MobileApp_heroTopTitle__uglFx",ee="MobileApp_heroTopText__Yig0U",se="MobileApp_heroBottom__T44xg",ae="MobileApp_heroBottomContent__ZOwFI",ie="MobileApp_heroBottomInfo__A1pJ6",oe="MobileApp_heroBottomLinksList__A2jOJ",le="MobileApp_heroBottomLink__+Vqi1",te="MobileApp_heroBottomImage__v8i0u",re=(0,q.n)(),ne=()=>{const{t:e}=(0,o.$)();(0,l.FI)((()=>{const e=document.getElementById("main");return e.classList="Main Main__fullWidth",()=>{e.classList="Main"}}));const s=(0,l.ac)("screen and (max-width: 640px)");return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("section",{className:Q,children:(0,T.jsxs)("div",{className:R,children:[(0,T.jsx)("h1",{className:X,children:e("about:hero.title")}),(0,T.jsxs)("p",{className:ee,children:[(0,T.jsx)("strong",{children:"Sosedi Dostavka"})," - ",e("about:hero.subtitle")]})]})}),(0,T.jsx)("section",{className:se,children:(0,T.jsxs)("div",{className:ae,children:[(0,T.jsxs)("div",{className:ie,children:[(0,T.jsx)("span",{children:e("about:hero.badges.0")}),(0,T.jsx)("span",{children:e("about:hero.badges.1")}),(0,T.jsx)("span",{children:e("about:hero.badges.2")}),(0,T.jsxs)("div",{className:oe,children:[(0,T.jsx)("a",{className:le,href:re,target:"_blank",rel:"noreferrer nofollow",children:(0,T.jsx)(t.IU,{src:{ru:n.Z,uk:d.Z,pl:c.Z},alt:"AppStore",width:162,height:43})}),(0,T.jsx)("a",{className:le,href:re,target:"_blank",rel:"noreferrer nofollow",children:(0,T.jsx)(t.IU,{src:{ru:p.Z,uk:h.Z,pl:_.Z},alt:"GooglePlay",width:162,height:43})})]})]}),!s&&(0,T.jsx)("div",{className:te,children:(0,T.jsx)(t.IU,{src:{ru:W,uk:$},alt:"Courier",width:939,height:506})})]})}),(0,T.jsx)(V,{cities:[{key:"minsk",position:{lat:53.902512,lng:27.561481}}]}),(0,T.jsx)(Z,{links:{badge:re,ios:re,android:re}})]})}}}]); 2//# sourceMappingURL=318.6514f08d.chunk.js.map
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.