import{L as m,W as d,ax as R,a1 as i,n as V,u as I,Y as $,o as O,t as b,q as _,v as y,y as l,z as c,D as j,B as v,F as U,G as W,a0 as A,r as h,p as D,x as L,A as B,_ as K,w as C,N as H,O as Z,H as J,I as F}from"./C-p8iwFB.js";import{a as f}from"./D5gyVvxj.js";import{a as M}from"./BS7h1Lqf.js";import{_ as q}from"./CLiMtjFX.js";import{N as G,M as Y}from"./CGktu-mi.js";import{C as Q}from"./BHXYl7HU.js";import{_ as X}from"./DrxzLkSR.js";import{S as x}from"./Bk_cpj1_.js";import{p as oo}from"./iebVTOPQ.js";const Po={[d.ZASILKOVNA_CZ]:{defaultLocale:m.CS,newsWhere:{category:"vydejni-mista"},storyName:"lokalita",locationName:"locations.czechRepublic",locationBounds:{start:{lat:50.99530293792458,lon:18.431037811410675},end:{lat:48.64413246208332,lon:12.323455947626684}}},[d.PACKETA_SK]:{defaultLocale:m.SK,newsWhere:{category:"z-point"},storyName:"lokalita",locationName:"locations.slovakia",locationBounds:{start:{lat:49.69266564996926,lon:20.846169056198477},end:{lat:47.62643967279524,lon:17.820138307408087}}},[d.PACKETA_HU]:{defaultLocale:m.HU,newsWhere:{category:"atvevohelyek"},storyName:"helyszin",locationName:"locations.hungary",locationBounds:{start:{lat:48.54710174336472,lon:21.839628634125177},end:{lat:45.66581682555912,lon:16.701404728771593}}},[d.PACKETA_RO]:{defaultLocale:m.RO,newsWhere:{category:"puncte-pick-up"},storyName:"locatie",locationName:"locations.romania",locationBounds:{start:{lat:48.28748358596698,lon:30.04542570000021},end:{lat:43.594735780900066,lon:20.261995499999728}}},[d.PACKETA_PL]:{defaultLocale:m.PL,newsWhere:{},storyName:"lokalizacja",locationName:"locations.poland",locationBounds:{start:{lat:55.03604999999882,lon:26.22305376208402},end:{lat:49.00204679999851,lon:11.992368137916486}}},[d.PACKETA_DE]:{defaultLocale:m.DE,newsWhere:{},storyName:"standort",locationName:"locations.germany",locationBounds:{start:{lat:55.09916099999947,lon:19.144450980259364},end:{lat:47.270111399999564,lon:1.7637952197382276}}},[d.PACKETA_COM]:{defaultLocale:m.EN,newsWhere:{},storyName:"pick-up-points",locationName:"",locationBounds:{start:{lat:0,lon:0},end:{lat:0,lon:0}}}},P={[d.ZASILKOVNA_CZ]:{[m.CS]:{praha:"praha","stredocesky-kraj":"stredocesky-kraj","jihocesky-kraj":"jihocesky-kraj","plzensky-kraj":"plzensky-kraj","karlovarsky-kraj":"karlovarsky-kraj","ustecky-kraj":"ustecky-kraj","liberecky-kraj":"liberecky-kraj","kralovehradecky-kraj":"kralovehradecky-kraj","pardubicky-kraj":"pardubicky-kraj","kraj-vysocina":"kraj-vysocina","jihomoravsky-kraj":"jihomoravsky-kraj","olomoucky-kraj":"olomoucky-kraj","moravskoslezsky-kraj":"moravskoslezsky-kraj","zlinsky-kraj":"zlinsky-kraj"},[m.EN]:{praha:"praha","stredocesky-kraj":"stredocesky-kraj","jihocesky-kraj":"jihocesky-kraj","plzensky-kraj":"plzensky-kraj","karlovarsky-kraj":"karlovarsky-kraj","ustecky-kraj":"ustecky-kraj","liberecky-kraj":"liberecky-kraj","kralovehradecky-kraj":"kralovehradecky-kraj","pardubicky-kraj":"pardubicky-kraj","kraj-vysocina":"kraj-vysocina","jihomoravsky-kraj":"jihomoravsky-kraj","olomoucky-kraj":"olomoucky-kraj","moravskoslezsky-kraj":"moravskoslezsky-kraj","zlinsky-kraj":"zlinsky-kraj"}},[d.PACKETA_DE]:{[m.DE]:{"baden-wurttemberg":"baden-wurttemberg",bayern:"bayern",berlin:"berlin",brandenburg:"brandenburg",bremen:"bremen",hamburg:"hamburg",hessen:"hessen","mecklenburg-vorpommern":"mecklenburg-vorpommern",niedersachsen:"niedersachsen","nordrhein-westfalen":"nordrhein-westfalen","rheinland-pfalz":"rheinland-pfalz",saarland:"saarland",sachsen:"sachsen","sachsen-anhalt":"sachsen-anhalt","schleswig-holstein":"schleswig-holstein",thuringen:"thuringen"}},[d.PACKETA_HU]:{[m.HU]:{"del-dunantul":"del-dunantul","nyugat-dunantul":"nyugat-dunantul","kozep-dunantul":"kozep-dunantul","eszak-alfold":"eszak-alfold","eszak-magyarorszag":"eszak-magyarorszag","del-alfold":"del-alfold","kozep-magyarorszag":"kozep-magyarorszag"}},[d.PACKETA_PL]:{[m.PL]:{"wojewodztwo-zachodniopomorskie":"wojewodztwo-zachodniopomorskie","wojewodztwo-swietokrzyskie":"wojewodztwo-swietokrzyskie","wojewodztwo-lubelskie":"wojewodztwo-lubelskie","wojewodztwo-opolskie":"wojewodztwo-opolskie","wojewodztwo-slaskie":"wojewodztwo-slaskie","wojewodztwo-lodzkie":"wojewodztwo-lodzkie","wojewodztwo-dolnoslaskie":"wojewodztwo-dolnoslaskie","wojewodztwo-mazowieckie":"wojewodztwo-mazowieckie","wojewodztwo-wielkopolskie":"wojewodztwo-wielkopolskie","wojewodztwo-pomorskie":"wojewodztwo-pomorskie","wojewodztwo-podkarpackie":"wojewodztwo-podkarpackie","wojewodztwo-lubuskie":"wojewodztwo-lubuskie","wojewodztwo-kujawsko-pomorskie":"wojewodztwo-kujawsko-pomorskie","wojewodztwo-warminsko-mazurskie":"wojewodztwo-warminsko-mazurskie","wojewodztwo-malopolskie":"wojewodztwo-malopolskie","wojewodztwo-podlaskie":"wojewodztwo-podlaskie"}},[d.PACKETA_RO]:{[m.RO]:{"bistrita-nasaud":"bistrita-nasaud",maramures:"maramures","satu-mare":"satu-mare",harghita:"harghita",suceava:"suceava",salaj:"salaj",bihor:"bihor",cluj:"cluj",calarasi:"calarasi",alba:"alba",mures:"mures",sibiu:"sibiu",brasov:"brasov",covasna:"covasna",iasi:"iasi",neamt:"neamt",bacau:"bacau",arad:"arad",hunedoara:"hunedoara",botosani:"botosani",vaslui:"vaslui",vrancea:"vrancea",galati:"galati",gorj:"gorj",valcea:"valcea",arges:"arges",dambovita:"dambovita",prahova:"prahova",buzau:"buzau",braila:"braila",ialomita:"ialomita",timis:"timis","caras-severin":"caras-severin",mehedinti:"mehedinti",dolj:"dolj",olt:"olt",teleorman:"teleorman",giurgiu:"giurgiu",ilfov:"ilfov",constanta:"constanta",tulcea:"tulcea"}},[d.PACKETA_SK]:{[m.SK]:{"banskobystricky-kraj":"banskobystricky-kraj","bratislavsky-kraj":"bratislavsky-kraj","trenciansky-kraj":"trenciansky-kraj","nitriansky-kraj":"nitriansky-kraj","presovsky-kraj":"presovsky-kraj","kosicky-kraj":"kosicky-kraj","zilinsky-kraj":"zilinsky-kraj","trnavsky-kraj":"trnavsky-kraj"},[m.EN]:{"banskobystricky-kraj":"banskobystricky-kraj","bratislavsky-kraj":"bratislavsky-kraj","trenciansky-kraj":"trenciansky-kraj","nitriansky-kraj":"nitriansky-kraj","presovsky-kraj":"presovsky-kraj","kosicky-kraj":"kosicky-kraj","zilinsky-kraj":"zilinsky-kraj","trnavsky-kraj":"trnavsky-kraj"}}};function N(r,a,e=!0){let k=null;return r.parts.forEach(s=>{(e&&`${f(r.name)}-${f(s.name)}`===a||!e&&f(s.name)===a)&&(k={...s,name:`${r.name} - ${s.name}`,origin:s.name})}),k}async function To(r,a){var s,n,o;const e=[];return r===d.ZASILKOVNA_CZ&&e.push({name:"locations.regions.praha",url:((n=(s=P[r])==null?void 0:s[a])==null?void 0:n.praha)||""}),(o=(await R(Object.assign({"../../../../content/packeta-de/locations/regions.json":()=>i(()=>import("./BikssQnT.js"),[],import.meta.url),"../../../../content/packeta-hu/locations/regions.json":()=>i(()=>import("./BCE0h4H5.js"),[],import.meta.url),"../../../../content/packeta-pl/locations/regions.json":()=>i(()=>import("./CF_gKkQJ.js"),[],import.meta.url),"../../../../content/packeta-ro/locations/regions.json":()=>i(()=>import("./CEAesgn4.js"),[],import.meta.url),"../../../../content/packeta-sk/locations/regions.json":()=>i(()=>import("./BWptZ6P4.js"),[],import.meta.url),"../../../../content/zasilkovna-cz/locations/regions.json":()=>i(()=>import("./miH9lLYN.js"),[],import.meta.url)}),`../../../../content/${r}/locations/regions.json`,8)).regions)==null||o.forEach(z=>{var g,w;e.push({name:`locations.regions.${z.name}`,url:((w=(g=P[r])==null?void 0:g[a])==null?void 0:w[z.name])||""})}),e}async function Do(r,a,e,k){var o,z,g,w,E;const s=await R(Object.assign({"../../../../content/packeta-de/locations/cities.json":()=>i(()=>import("./BZ6WBnij.js"),[],import.meta.url),"../../../../content/packeta-hu/locations/cities.json":()=>i(()=>import("./FE9VnvIh.js"),[],import.meta.url),"../../../../content/packeta-pl/locations/cities.json":()=>i(()=>import("./CIh7PsPq.js"),[],import.meta.url),"../../../../content/packeta-ro/locations/cities.json":()=>i(()=>import("./DfIg-7y2.js"),[],import.meta.url),"../../../../content/packeta-sk/locations/cities.json":()=>i(()=>import("./qMlUUI6m.js"),[],import.meta.url),"../../../../content/zasilkovna-cz/locations/cities.json":()=>i(()=>import("./DYWXMcEZ.js"),[],import.meta.url)}),`../../../../content/${r}/locations/cities.json`,8);let n=null;return k?(o=s.cities)==null||o.forEach(t=>{var u,p;n||(((p=(u=P[r])==null?void 0:u[a])==null?void 0:p[f(t.region)])===e?f(t.name)===k?n=t:t.parts&&f(t.name)!=="praha"&&(n=N(t,k)):e==="praha"&&f(t.name)==="praha"&&(n=N(t,k,!1)))}):e===((g=(z=P[r])==null?void 0:z[a])==null?void 0:g.praha)?n=((w=s.cities)==null?void 0:w.find(t=>f(t.name)==="praha"))||null:(E=(await R(Object.assign({"../../../../content/packeta-de/locations/regions.json":()=>i(()=>import("./BikssQnT.js"),[],import.meta.url),"../../../../content/packeta-hu/locations/regions.json":()=>i(()=>import("./BCE0h4H5.js"),[],import.meta.url),"../../../../content/packeta-pl/locations/regions.json":()=>i(()=>import("./CF_gKkQJ.js"),[],import.meta.url),"../../../../content/packeta-ro/locations/regions.json":()=>i(()=>import("./CEAesgn4.js"),[],import.meta.url),"../../../../content/packeta-sk/locations/regions.json":()=>i(()=>import("./BWptZ6P4.js"),[],import.meta.url),"../../../../content/zasilkovna-cz/locations/regions.json":()=>i(()=>import("./miH9lLYN.js"),[],import.meta.url)}),`../../../../content/${r}/locations/regions.json`,8)).regions)==null||E.forEach(u=>{var p,T;((T=(p=P[r])==null?void 0:p[a])==null?void 0:T[u.name])===e&&(n=u)}),n}async function Ro(r,a){let e=[];if(a!=="praha"){let s=(await R(Object.assign({"../../../../content/packeta-de/locations/cities.json":()=>i(()=>import("./BZ6WBnij.js"),[],import.meta.url),"../../../../content/packeta-hu/locations/cities.json":()=>i(()=>import("./FE9VnvIh.js"),[],import.meta.url),"../../../../content/packeta-pl/locations/cities.json":()=>i(()=>import("./CIh7PsPq.js"),[],import.meta.url),"../../../../content/packeta-ro/locations/cities.json":()=>i(()=>import("./DfIg-7y2.js"),[],import.meta.url),"../../../../content/packeta-sk/locations/cities.json":()=>i(()=>import("./qMlUUI6m.js"),[],import.meta.url),"../../../../content/zasilkovna-cz/locations/cities.json":()=>i(()=>import("./DYWXMcEZ.js"),[],import.meta.url)}),`../../../../content/${r}/locations/cities.json`,8)).cities||[];return s=s.filter(n=>f(n.region)===a),e=s.sort((n,o)=>(n.population||0)<(o.population||0)?1:-1).filter((n,o)=>o<2).map(n=>({url:f(n.name),name:n.name})),e}else e=[{url:"stare-mesto",name:"Staré město"},{url:"holesovice",name:"Holešovice"}];return e}const Oo=async(r,a)=>{var s;const e=(s=a==null?void 0:a.$dataPayload)==null?void 0:s.storyblok.location;if(!e){const{story:n}=await M(a,r,{});return n}return e?"story"in e.story?e==null?void 0:e.story.story:e==null?void 0:e.story:void 0},ao={class:"container-fluid bg-grey-50 py-120 py-lg-160"},eo={class:"container"},to={class:"text-title-red"},no={class:"d-flex flex-column flex-lg-row align-align-items-baseline"},io={class:"title"},so={key:0,class:"content"},ro={key:1,class:"text-body-big-grey content"},lo={key:1},co={key:2,class:"text-body-big-grey content"},ko={key:0},uo={class:"mb-0 mt-8"},po=V({__name:"LocationDefinition",props:{region:{type:Boolean},country:{type:Boolean},definition:{}},setup(r){const{t:a}=I(),e=$(),k=e.public.i18n.defaultLocale,s=O(()=>e.public.webId===d.PACKETA_HU),n=O(()=>e.public.webId===d.ZASILKOVNA_CZ);return(o,z)=>{var g,w,E,t;return _(),b("div",ao,[y("div",eo,[y("p",to,l(c(a)("locations.definitionTopTitle")),1),y("div",no,[y("h2",io,l(c(a)("locations.definitionTitle")),1),o.country?(_(),b("div",so,[j(l(c(a)("locations.countryDescription.part1",{name:c(a)(o.definition.name)}))+" ",1),y("span",null,[(_(!0),b(U,null,W(o.definition.regions,(u,p)=>(_(),D(A,{key:u.url,to:{name:o.$pages.locationRegion,params:{region:u.url}},"force-language":c(k),class:B(["d-inline-block",{"me-8":o.definition.regions&&p!==o.definition.regions.length-1}])},{default:h(()=>[j(l(c(a)(u.name))+l(o.definition.regions&&p!==o.definition.regions.length-1?",":""),1)]),_:2},1032,["to","force-language","class"]))),128)),j(" "+l(c(a)("locations.countryDescription.part2"))+" ",1),v(A,{to:{name:o.$pages.locationRegion,params:{region:((g=o.definition.lastRegion)==null?void 0:g.url)||""}},"force-language":c(k),class:"d-inline-block"},{default:h(()=>{var u;return[j(l(((u=o.definition.lastRegion)==null?void 0:u.name)&&c(a)(o.definition.lastRegion.name)),1)]}),_:1},8,["to","force-language"]),y("span",null,l(c(a)("locations.countryDescription.part3")),1)])])):o.region?(_(),b("div",ro,[j(l(c(a)("locations.regionDescription.part1",{name:o.definition.name}))+" ",1),o.definition.region&&((w=o.definition.city1)!=null&&w.url)&&o.definition.city1.name?(_(),D(A,{key:0,to:{name:o.$pages.locationCity,params:{region:o.definition.region,city:(E=o.definition.city1)==null?void 0:E.url}}},{default:h(()=>[j(l(o.definition.city1.name),1)]),_:1},8,["to"])):L("",!0),o.definition.region&&((t=o.definition.city2)!=null&&t.url)&&o.definition.city2.name?(_(),b("span",lo,[j(l(c(a)("locations.regionDescription.part2"))+" ",1),v(A,{to:{name:o.$pages.locationCity,params:{region:o.definition.region,city:o.definition.city2.url}}},{default:h(()=>[j(l(o.definition.city2.name),1)]),_:1},8,["to"])])):L("",!0),y("span",null,l(c(a)("locations.regionDescription.part3")),1)])):(_(),b("div",co,[j(l(c(a)("locations.cityDescription.part1",{name:o.definition.name}))+" ",1),n.value?(_(),b("span",ko,l(c(a)("locations.cityDescription.part2",{pickUpPoints:o.definition.pickUpPoints})),1)):L("",!0),y("p",uo,[j(l(c(a)("locations.cityDescription.part3"))+" ",1),o.definition.region?(_(),D(A,{key:0,to:{name:o.$pages.locationRegion,params:{region:o.definition.region}}},{default:h(()=>[j(l(o.definition.regionName&&c(a)(o.definition.regionName)),1)]),_:1},8,["to"])):L("",!0),y("span",null,l(s.value?c(a)("locations.cityDescription.part4"):"."),1)])]))])])])}}}),mo=K(po,[["__scopeId","data-v-2d9f8978"]]),yo={class:"pb-120"},jo=["src"],_o={class:"stack-160"},go=V({__name:"location",props:{story:{},news:{},definition:{},locationName:{},formattedLocationName:{},locationBounds:{},country:{type:Boolean},region:{type:Boolean},regionCode:{},defaultActiveTab:{},disabledCountry:{type:Boolean},allCities:{type:Boolean}},setup(r){const{locale:a,t:e}=I(),k=$(),s=C[k.public.webId].countryCode,n=C[k.public.webId].url,z=H().$pages,g=Z(),w=J(!1),E=t=>{const{start:u,end:p}=t,T={box:!1,boxtype:"",centerBounds:[u.lat,u.lon,p.lat,p.lon],centerCountry:s},S=`${n}${g(z.pickUpPoints)}`;return oo(T,S,a.value)};return(t,u)=>(_(),b("div",yo,[y("div",{class:B(["map",{"add-space":w.value}])},[v(X,null,{default:h(()=>[y("iframe",{class:"pickup-points",src:E(t.locationBounds),allow:"geolocation"},null,8,jo)]),_:1})],2),y("div",_o,[v(mo,{region:t.region,country:t.country,definition:t.definition},null,8,["region","country","definition"]),v(x,{details:t.story.content.pickUpPointsDetails},null,8,["details"]),v(Q,{"common-traps":t.story.content.howItWorks},null,8,["common-traps"]),t.news?(_(),D(G,{key:0,news:t.news,"title-second":""},null,8,["news"])):L("",!0),v(q,{content:t.story.content.faq},{default:h(({data:p})=>[v(Y,{title:p.title,description:p.description,picture:p.beginImage},{buttons:h(()=>[y("div",null,[v(F,{link:t.$pages.customerService},{default:h(()=>[j(l(c(e)("locations.goToFaq")),1)]),_:1},8,["link"])])]),_:2},1032,["title","description","picture"])]),_:1},8,["content"])])]))}}),Co=K(go,[["__scopeId","data-v-b7836149"]]);export{Co as L,Do as a,Ro as b,To as c,Oo as g,Po as l}; //# sourceMappingURL=CcaXHT2u.js.map