(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1579:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(16),i=r(10);function c(e,t){Object(i.a)(2,arguments);var r=Object(n.a)(e).getTime(),c=Object(n.a)(t.start).getTime(),o=Object(n.a)(t.end).getTime();if(!(c<=o))throw new RangeError("Invalid interval");return r>=c&&r<=o}},1580:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(17),i=r(16),c=r(10);function o(e,t){Object(c.a)(2,arguments);var r=Object(i.a)(e),o=Object(n.a)(t);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},775:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return d}));var n=r(8);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o="https://webform.api.packeta.com/v2",a="https://web.widget.packeta.com",d="https://widget.packeta.com",s="https://address-correction-service-address-correction-prod-we2.prod-we-2.packeta-com.codenow.com",u="1670c4df-77eb-4c9f-b0ec-443dd1d0be92",l="https://address-correction-service-address-correction-test-sc.non-prod-swedencentral-1.packeta-com.codenow.com",p="c6551902-0e27-4137-abea-16feb5831e8f",f={prod:{correctionWidgetUrl:"https://correction.widget.packeta.com",correctionAddressWidgetApiKey:"2eed8c0a-f321-409e-82e7-352ed8663522",carDeliveryCorrectionWidgetUrl:"https://cardelivery.widget.packeta.com",widgetService:s,widgetServiceApiKey:u,widgetServiceGeneralRedirection:s,widgetServiceGeneralRedirectionApiKey:u},local:{correctionWidgetUrl:"https://pickup-point-widget-widget-test-sc.non-prod-swedencentral-1.packeta-com.codenow.com",correctionAddressWidgetApiKey:"b209026f-15f2-4b9b-b7a7-b0b2a5ed293e",carDeliveryCorrectionWidgetUrl:"https://pickup-point-widget-widget-test-sc.non-prod-swedencentral-1.packeta-com.codenow.com",widgetService:l,widgetServiceApiKey:p,widgetServiceGeneralRedirection:l,widgetServiceGeneralRedirectionApiKey:p}},g={prod:{correctionWidgetUrl:f.prod.correctionWidgetUrl,correctionAddressWidgetApiKey:f.prod.correctionAddressWidgetApiKey,widgetService:"https://address-correction-service-address-correction-sk-prod-we2.prod-we-2.packeta-com.codenow.com",widgetServiceApiKey:"f7de218d-0152-4868-aedb-f664182b8ffe",widgetServiceGeneralRedirection:f.prod.widgetServiceGeneralRedirection,widgetServiceGeneralRedirectionApiKey:f.prod.widgetServiceGeneralRedirectionApiKey},local:{correctionWidgetUrl:f.local.correctionWidgetUrl,correctionAddressWidgetApiKey:f.local.correctionAddressWidgetApiKey,widgetService:"https://address-correction-service-address-correction-sk-test-sc.non-prod-swedencentral-1.packeta-com.codenow.com",widgetServiceApiKey:"c9850ad2-8d8d-43a6-822c-6739fe7d66bd",widgetServiceGeneralRedirection:f.local.widgetServiceGeneralRedirection,widgetServiceGeneralRedirectionApiKey:f.local.widgetServiceGeneralRedirectionApiKey}},v={prod:{widgetService:s,widgetServiceApiKey:u,widgetServiceGeneralRedirection:s,widgetServiceGeneralRedirectionApiKey:u},local:{widgetService:l,widgetServiceApiKey:p,widgetServiceGeneralRedirection:l,widgetServiceGeneralRedirectionApiKey:p}},h={prod:{widgetService:s,widgetServiceApiKey:u,widgetServiceGeneralRedirection:s,widgetServiceGeneralRedirectionApiKey:u},local:{widgetService:l,widgetServiceApiKey:p,widgetServiceGeneralRedirection:l,widgetServiceGeneralRedirectionApiKey:p}},w={"zasilkovna-cz":c({},f),"packeta-sk":c({},g),"packeta-hu":c({},v),"packeta-ro":c({},h),"packeta-pl":c({},{prod:{ecomailListId:1,ecomailApiKey:"fc12e3a1ca96df94cd00bc3eb4f29878a882cb19b065f58cd6e3804c11ef85ce"},local:{ecomailListId:2,ecomailApiKey:"fc12e3a1ca96df94cd00bc3eb4f29878a882cb19b065f58cd6e3804c11ef85ce"}}),styleguide:c({},f)};t.d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"local",r=arguments.length>2?arguments[2]:void 0;return w[e][t][r]}},826:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l}));var n=r(5),i=(r(46),r(13),r(14),r(94),r(47)),c=r.n(i),o=r(888),a=r(862),d="9f1d27c6-f56c-4755-a92c-cafce7111291";c.a.create({headers:{"X-API-Key":d}});function s(e,t){return u.apply(this,arguments)}function u(){return(u=Object(n.a)((function*(e,t){try{return(yield c.a.create({headers:{"X-API-Key":d,"X-Language":t}}).get(Object(a.b)(e))).data}catch(e){return null}}))).apply(this,arguments)}function l(e,t,r,n){return p.apply(this,arguments)}function p(){return(p=Object(n.a)((function*(e,t,r,n){var{WEB_ID:i,ENVIRONMENT_NAME:a}=n.env,{host:d}=Object(o.a)(n,i,a),s=new URL("/api/v2/exchange-points/".concat(e),d).toString();try{return(yield c.a.create({headers:{accept:"application/json",Authorization:r}}).get(s)).data}catch(e){return null}}))).apply(this,arguments)}},827:function(e,t){},862:function(e,t,r){"use strict";r.d(t,"g",(function(){return s})),r.d(t,"c",(function(){return u})),r.d(t,"b",(function(){return l})),r.d(t,"f",(function(){return p})),r.d(t,"a",(function(){return f})),r.d(t,"e",(function(){return g})),r.d(t,"d",(function(){return v}));r(13),r(14),r(94),r(81),r(46);var n=r(889),i=r.n(n),c=r(775),o="".concat(c.b,"/v6/api/pps/api/web"),a="".concat(c.b,"/v6/api/pps/api/shared/codebooks");i.a.config();var d="9f1d27c6-f56c-4755-a92c-cafce7111291";function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o="".concat(e.$config.webUrl).concat(e.localePath(e.$pages.pickUpPoints)),a=e.$i18n.locale,s={apikey:d,baseUrl:o,centerCountry:i||e.$config.countryCode,centerBounds:n,language:a,layout:"web"};t&&(s.box=!0),""!==r&&(s.boxtype=r),"ro"===a&&(s.showWithExternalPoints=!1);var u=new URL(c.b+"/v6/");return u.search=new URLSearchParams(s),u.toString()}function u(e){var t="".concat(e.$config.webUrl).concat(e.localePath(e.$pages.pickUpPoints)),r=e.$route.params.slug,n=e.$i18n.locale,i={apikey:d,baseUrl:t,branchCode:r,detailmode:!0,language:n,layout:"web"},o=new URL(c.b+"/v6/");return o.search=new URLSearchParams(i),o.toString()}function l(e){var t;return(/^\d+$/.test(e)?(t="I_".concat(e),new URL("".concat(o,"/v3/pickupPoints/").concat(t)).toString()):function(e){return new URL("".concat(o,"/v2/pickupPoints/branchCode/").concat(e)).toString()}(e)).toString()}function p(){return new URL("".concat(o,"/v2/pickupPoints/count")).toString()}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:18,i=arguments.length>4?arguments[4]:void 0,c=new URL("".concat(o,"/v2/pickupPoints/countryFilter?")),a={country:e,city:t,pageNumber:r,pageSize:n,regionCode:i};return c.search=new URLSearchParams(a),c.toString()}function g(){return new URL("".concat(a,"/countries")).toString()}function v(e){return new URL("".concat(a,"/countries/").concat(e,"/cities")).toString()}},888:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return d})),r.d(t,"d",(function(){return u}));var n=r(5),i=(r(31),r(46),r(13),r(14),r(94),r(21),r(775));function c(e,t,r){var n={host:null,apiKey:null};switch(e.route.name.split("___")[0]){case"boxRedirect":n.host=Object(i.d)(t,r,"widgetServiceGeneralRedirection"),n.apiKey=Object(i.d)(t,r,"widgetServiceGeneralRedirectionApiKey");break;case"pickUpPointRedirect":case"pickUpPointRedirectVacation":case"pickUpPointRedirectClosure":n.host=Object(i.d)(t,r,"widgetServiceGeneralRedirection"),n.apiKey=Object(i.d)(t,r,"widgetServiceGeneralRedirectionApiKey");break;default:n.host=Object(i.d)(t,r,"widgetService"),n.apiKey=Object(i.d)(t,r,"widgetServiceApiKey")}return n}function o(e,t){return a.apply(this,arguments)}function a(){return(a=Object(n.a)((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{WEB_ID:n,ENVIRONMENT_NAME:i}=e.env,{host:o,apiKey:a}=c(e,n,i),d=new URL("/api/".concat(r?"".concat(r,"/"):"","token?apiKey=").concat(a),o).toString(),s=yield fetch(d,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticketId:t})}).catch((()=>{e.error({statusCode:404,message:"Ticket ID is invalid."})})),{token:u}=yield s.json();return u||e.error({statusCode:404,message:"Token is missing"}),u}))).apply(this,arguments)}function d(e,t){return s.apply(this,arguments)}function s(){return(s=Object(n.a)((function*(e,t){var{WEB_ID:r,ENVIRONMENT_NAME:n}=e.env,{host:i}=c(e,r,n),o=new URL("/api/v2/ticket",i).toString();return yield fetch(o,{method:"GET",headers:{"Content-Type":"application/json",Authorization:t}}).catch((e=>{throw e}))}))).apply(this,arguments)}function u(e,t,r){return l.apply(this,arguments)}function l(){return(l=Object(n.a)((function*(e,t,r){var{WEB_ID:n,ENVIRONMENT_NAME:i}=e.env,{host:o}=c(e,n,i),a=new URL("/api/v2/ticket/exchangePoint",o).toString();return yield fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:r},body:JSON.stringify({id:"I_".concat(t)})}).then((e=>e)).catch((()=>!1))}))).apply(this,arguments)}},889:function(e,t,r){(function(t){const n=r(827),i=r(890);function c(e){console.log(`[dotenv][DEBUG] ${e}`)}const o=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,a=/\\n/g,d=/\n|\r|\r\n/;function s(e,t){const r=Boolean(t&&t.debug),n={};return e.toString().split(d).forEach((function(e,t){const i=e.match(o);if(null!=i){const e=i[1];let t=i[2]||"";const r=t.length-1,c='"'===t[0]&&'"'===t[r];"'"===t[0]&&"'"===t[r]||c?(t=t.substring(1,r),c&&(t=t.replace(a,"\n"))):t=t.trim(),n[e]=t}else r&&c(`did not match key and value when parsing line ${t+1}: ${e}`)})),n}e.exports.config=function(e){let r=i.resolve(t.cwd(),".env"),o="utf8",a=!1;e&&(null!=e.path&&(r=e.path),null!=e.encoding&&(o=e.encoding),null!=e.debug&&(a=!0));try{const e=s(n.readFileSync(r,{encoding:o}),{debug:a});return Object.keys(e).forEach((function(r){Object.prototype.hasOwnProperty.call(t.env,r)?a&&c(`"${r}" is already defined in \`process.env\` and will not be overwritten`):t.env[r]=e[r]})),{parsed:e}}catch(e){return{error:e}}},e.exports.parse=s}).call(this,r(122))},890:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",i=!1,c=arguments.length-1;c>=-1&&!i;c--){var o=c>=0?arguments[c]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return(i?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var c=t.isAbsolute(e),o="/"===i(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!c).join("/"))||c||(e="."),e&&o&&(e+="/"),(c?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),c=n(r.split("/")),o=Math.min(i.length,c.length),a=o,d=0;d<o;d++)if(i[d]!==c[d]){a=d;break}var s=[];for(d=a;d<i.length;d++)s.push("..");return(s=s.concat(c.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,c=e.length-1;c>=1;--c)if(47===(t=e.charCodeAt(c))){if(!i){n=c;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,c=0,o=e.length-1;o>=0;--o){var a=e.charCodeAt(o);if(47!==a)-1===n&&(i=!1,n=o+1),46===a?-1===t?t=o:1!==c&&(c=1):-1!==t&&(c=-1);else if(!i){r=o+1;break}}return-1===t||-1===n||0===c||1===c&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(122))}}]);