1/*! For license information please see 5989.15eb14de.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5989],{22874:(t,e,n)=>{n.d(e,{Z:()=>o});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{staticClass:"relative inline-flex justify-center",class:t.classCompute,attrs:{disabled:this.isDisabled},on:{click:t.triggerFunction}},[t.isLoading||t.isSuccess||t.hasError?t._e():r("span",[t._v(t._s(this.buttonText))]),t._v(" "),t.isLoading?r("spinner-loader",{attrs:{full:!1,"class-name":"text-white"}}):t.isSuccess?r("span",{staticClass:"img-absolute-centered flex items-center h-full"},[r("img",{staticClass:"max-h-full",attrs:{loading:"lazy",decoding:"async",src:n(19620),alt:"success image"}}),t._v(" "),t.successMessage?r("span",{staticClass:"ml-1 text-db-dark"},[t._v(t._s(t.successMessage))]):t._e()]):t.hasError?r("img",{staticClass:"img-absolute-centered",attrs:{loading:"lazy",decoding:"async",src:n(21585),alt:"error image"}}):t._e()],1)};r._withStripped=!0;const i={name:"buttonLoader",components:{SpinnerLoader:n(99341).Z},props:{functionName:{default:"",type:String},functionParam:{default:"",type:String},isDisabled:{default:!1,type:Boolean},defaultClasses:{default:"",type:String},disabledClasses:{default:"",type:String},buttonText:{default:"",type:String},hasError:{default:!1,type:Boolean},isSuccess:{default:!1,type:Boolean},isLoading:{default:!1,type:Boolean},isSlot:{default:!1,type:Boolean},successMessage:{default:"",type:String}},computed:{classCompute:function(){var t=this.defaultClasses,e=" opacity-50 cursor-not-allowed";return this.isDisabled&&(t+=e,this.disabledClasses&&(t=this.disabledClasses+e)),t}},methods:{triggerFunction:function(){this.isSlot?this.functionParam?this.$emit(this.functionName,this.functionParam):this.$emit(this.functionName):this.functionParam?this.$parent[this.functionName](this.functionParam):this.$parent[this.functionName]()}}};const o=(0,n(51900).Z)(i,r,[],!1,null,null,null).exports},25421:(t,e,n)=>{n.d(e,{Z:()=>l});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid grid-cols-2 md:grid-cols-3 db-container-gray-box gap-4 p-4",class:{"opacity-50":t.opacity}},[n("div",{staticClass:"col-span-2 md:col-span-3"},[n("div",{staticClass:"title-xl"},[n("span",{domProps:{textContent:t._s(t.delivery.boxName)}})])]),t._v(" "),n("div",{staticClass:"hidden md:block"},[n("img",{staticClass:"max-w-full mx-auto rounded-lg h-full object-cover",attrs:{loading:"lazy",decoding:"async",src:t.deliveryThumb,alt:""}})]),t._v(" "),n("div",[n("div",{staticClass:"font-bold"},[t._v(t._s(t.$t("delivery_id")))]),t._v(" "),n("div",{staticClass:"mb-4"},[t._v(t._s(t.delivery.id))]),t._v(" "),n("div",{staticClass:"font-bold"},[t._v(t._s(t.$t("deliver_to")))]),t._v(" "),n("div",{staticClass:"mb---3"},[t._v("\n "+t._s(t.delivery.address.name)),n("br"),t._v(" "),n("span",{staticClass:"text-gray-500",domProps:{innerHTML:t._s(t.formattedAddress(t.delivery.address))}})])]),t._v(" "),n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"font-bold"},[t._v(t._s(t.$t("delivery.box.delivery_date")))]),t._v(" "),n("div",{staticClass:"mb-4"},[n("span",{domProps:{textContent:t._s(t.delivery.date_range)}})]),t._v(" "),n("div",{staticClass:"relative step-indicator flex-grow flex flex-col justify-between",class:["step-indicator--"+t.delivery.actual_step_number]},t._l(3,(function(e){return n("div",{staticClass:"step-indicator__step relative flex items-center z-10",class:{"text-gray-500":e>t.delivery.actual_step_number,"text-db-dark font-bold":e===t.delivery.actual_step_number,"text-success-dark":e<t.delivery.actual_step_number}},[n("span",{staticClass:"text-center mr-2 relative",staticStyle:{"min-width":"18px"}},[n("i",{staticClass:"fa fa-check fa-sm",class:{invisible:e>t.delivery.actual_step_number}})]),t._v(" "),1===e?n("span",[t._v(t._s(t.$t("delivery.box.stage.packing")))]):t._e(),t._v(" "),2===e?n("span",[t._v(t._s(t.$t("delivery.box.stage.leaving_warehouse")))]):t._e(),t._v(" "),3===e?n("span",[t._v(t._s(t.$t("delivery.box.stage.delivery")))]):t._e(),t._v(" "),null!==t.delivery.boxTrackingLink&&t.isActivate(3)&&3===e?n("a",{staticClass:"font-semibold text-success-dark ml-2",attrs:{href:"#"},on:{click:t.openTrackingLink}},[t._v(t._s(t.$t("delivery.box.track")))]):t._e()])})),0)])])};r._withStripped=!0;n(9653),n(83710),n(41539),n(39714);var i=n(23180),o=n(78137),a=n(19755);const s={name:"deliveryBox",components:{tooltip:o.Z},mixins:[i.ZP],props:{delivery:Object,index:Number,showTooltip:!1},data:function(){return{opacity:!1}},computed:{identifier:function(){return"address"+Math.round(100*Math.random()).toString()},deliveryThumb:function(){var t;switch(null===(t=this.delivery)||void 0===t?void 0:t.edition_box_category){case"AdventCalendar":return"https://www.degustabox.com/fr/public/images/1763048323_ac-regular.webp";case"Cold":return"https://cf.degustabox.com/es/public/images/1761582577_1716378446-1689853302-2-2.webp";default:return"https://cf.degustabox.com/es/public/images/1669133092_db-acquisition-picture4-web.jpg"}}},created:function(){this.setTitleDeliveryAddress()},methods:{setTitleDeliveryAddress:function(){this.delivery_title_address="delivery.box.delivery_address_"+this.delivery.type_address},isActivate:function(t){return this.delivery.actual_step_number===t?"db-light":this.delivery.actual_step_number<t?"gray-400":"db-dark"},scrollToMyAddress:function(){a("html, body").animate({scrollTop:a("#myAddress").offset().top},500)},openTrackingLink:function(){this.delivery.boxTrackingLinkEmbedded?this.$emit("openTrackingInformant",this.index):window.open(this.delivery.boxTrackingLink,"_blank")}}};const l=(0,n(51900).Z)(s,r,[],!1,null,null,null).exports},95621:(t,e,n)=>{n.d(e,{Z:()=>o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",{staticClass:"border border-db-light rounded-lg p-3 mb-5",class:"alert-banner bg-"+t.alertType+"-light border-"+t.alertType+"-dark"},[n("div",{staticClass:"flex items-center"},[t.showIcon?n("div",{staticClass:"mr-3 self-start"},[n("em",{staticClass:"fa-3x fas",class:["text-"+t.alertType+"-dark","fa-"+t.alertIcon]})]):t._e(),t._v(" "),n("div",{staticClass:"flex-auto my-auto text-black"},[t._t("default")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.canClose,expression:"canClose"}],staticClass:"flex-none"},[n("em",{staticClass:"fa-2x fas fa-times cursor-pointer",class:["text-"+t.alertType+"-dark","fa-"+t.alertIcon],on:{click:function(e){t.show=!t.show}}})])])]):t._e()};r._withStripped=!0;const i={name:"formAlert",props:{show:!0,canClose:{type:Boolean,default:!0},alertType:{type:String,default:"warning"},showIcon:{type:Boolean,default:!0}},computed:{alertIcon:function(){switch(this.alertType){case"error":return"exclamation-circle";case"success":return"check-circle";case"warning":return"info-circle";case"info":return"question-circle"}}}};const o=(0,n(51900).Z)(i,r,[],!1,null,null,null).exports},38293:(t,e,n)=>{n.d(e,{Z:()=>l});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("picture",[t.smError?t._e():n("source",{attrs:{srcset:t.imageUrl(t.smallImg),media:"(max-width: 767px)"}}),t._v(" "),t.mdError?t._e():n("source",{attrs:{srcset:t.imageUrl(t.mediumImg),media:"(max-width: 1024px)"}}),t._v(" "),t.lgError?t._e():n("source",{attrs:{srcset:t.imageUrl(t.largeImg),media:"(max-width: 1440px)"}}),t._v(" "),n("img",{class:t.className,attrs:{src:t.imageUrl(),loading:t.loading,decoding:t.decoding,alt:t.alt},on:{"~error":function(e){return t.imageUrlAlt.apply(null,arguments)}}})])};r._withStripped=!0;n(41539),n(88674),n(69070),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(78011),n(30489),n(89554),n(54747),n(68309),n(68304),n(65069),n(47042);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),s=new L(i||[]);return r(a,"_invoke",{value:C(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var p={};function f(){}function v(){}function m(){}var g={};u(g,s,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(T([])));_&&_!==e&&n.call(_,s)&&(g=_);var b=m.prototype=f.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(r,a,s,l){var c=h(t[r],t,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,l)}),(function(t){o("throw",t,s,l)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function C(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=$(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=h(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function $(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&
2(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:v,configurable:!0}),v.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),u(b,c,"Generator"),u(b,s,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function a(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}const s={name:"PlaceholderImage",props:{className:{default:"",type:String},src:{default:"",type:String},smallImg:{default:null,type:String},mediumImg:{default:null,type:String},largeImg:{default:null,type:String},external:{default:!1,type:Boolean},class:{default:"",type:String},alt:{default:"",type:String},loading:{default:"eager",type:String},decoding:{default:"async",type:String},placeHolderImage:{default:null,type:String}},data:function(){return{altImage:"/build/images/placeholder-image.jpg",errorTimes:0,lgError:!0,mdError:!0,smError:!0}},created:function(){var t=this;this.largeImg&&this.checkImage(this.imageUrl(this.largeImg,!1)).then((function(e){return t.lgError=!e})),this.mediumImg&&this.checkImage(this.imageUrl(this.mediumImg,!1)).then((function(e){return t.mdError=!e})),this.smallImg&&this.checkImage(this.imageUrl(this.smallImg,!1)).then((function(e){return t.smError=!e}))},methods:{imageUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t&&""!==t?t:this.src;return this.external&&e?this.formatLink(n):n},checkImage:function(t){var e,n=this;return(e=o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var r=new Image;r.onload=function(){return e(!0)},r.onerror=function(){return e(!1)},r.src=n.formatLink(t)})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(t){a(o,r,i,s,l,"next",t)}function l(t){a(o,r,i,s,l,"throw",t)}s(void 0)}))})()},formatLink:function(t){return _file_server+_locale+"/"+t},imageUrlAlt:function(t){this.placeHolderImage?t.target.src=this.placeHolderImage:t.target.src=this.altImage}}};const l=(0,n(51900).Z)(s,r,[],!1,null,null,null).exports},99341:(t,e,n)=>{n.d(e,{Z:()=>o});var r=function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r("svg",{staticClass:"animate-spin",class:(t={"-ml-1 mr-3 h-7 w-14":!e.full},t[e.className]=!0,t),attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}},[r("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}
2),e._v(" "),r("path",{staticClass:"opacity-75",attrs:{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})])};r._withStripped=!0;const i={name:"spinnerLoader",props:{full:{type:Boolean,default:!0},className:{type:String,default:"text-db-light"}}};const o=(0,n(51900).Z)(i,r,[],!1,null,"79bbb89b",null).exports},36929:(t,e,n)=>{n.d(e,{Z:()=>o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showTabs,expression:"showTabs"}],staticClass:"tabs mb-4",attrs:{id:"tabs"}},[n("li",{directives:[{name:"show",rawName:"v-show",value:t.showFirstTabContent,expression:"showFirstTabContent"}],staticClass:"tab",class:{"tab-selected":t.firstTabActive},on:{click:t.change}},[n("button",{attrs:{type:"button"}},[t._v(t._s(t.firstTabTitle))])]),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showSecondTabContent,expression:"showSecondTabContent"}],staticClass:"tab",class:{"tab-selected":!t.firstTabActive},on:{click:t.change}},[n("button",{attrs:{type:"button"}},[t._v(t._s(t.secondTabTitle))])])]),t._v(" "),n("div",{attrs:{id:"tab-contents"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.commonTab,expression:"commonTab"}],staticClass:"pt-6"},[t._t("commonTab")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFirstTabContent,expression:"showFirstTabContent"}],staticClass:"py-6",class:{hidden:!t.firstTabActive}},[t._t("firstTab")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showSecondTabContent,expression:"showSecondTabContent"}],staticClass:"py-6",class:{hidden:t.firstTabActive}},[t._t("secondTab")],2)])])};r._withStripped=!0;const i={name:"tabs",props:{firstTabTitle:{default:"",type:String},secondTabTitle:{default:"",type:String},secondTabActive:{default:!1,type:Boolean},showFirstTabContent:{default:!0,type:Boolean},showSecondTabContent:{default:!0,type:Boolean},showTabs:{default:!0,type:Boolean},commonTab:{default:!1,type:Boolean}},data:function(){return{firstTabActive:!0}},mounted:function(){this.secondTabActive&&this.change(),this.showFirstTabContent&&!this.showSecondTabContent&&(this.firstTabActive=!0),!this.show
2FirstTabContent&&this.showSecondTabContent&&(this.firstTabActive=!1),this.$emit("change",this.getActiveTab())},methods:{change:function(){this.showSecondTabContent&&this.showFirstTabContent&&(this.firstTabActive=!this.firstTabActive,this.$emit("change",this.getActiveTab()))},getActiveTab:function(){return this.firstTabActive?0:1}}};const o=(0,n(51900).Z)(i,r,[],!1,null,null,null).exports},78137:(t,e,n)=>{n.d(e,{Z:()=>u});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tooltip-popper z-10",attrs:{id:t.id,role:"tooltip"}},[t._v("\n "+t._s(t.text)+"\n "),t._t("default"),t._v(" "),n("div",{attrs:{id:"arrow","data-popper-arrow":""}})],2)};r._withStripped=!0;n(96649),n(96078),n(82526),n(41817),n(41539),n(9653),n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948);var i=n(74511);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"tooltip",props:{show:!1,id:{type:String,required:!0},text:{type:String,required:!1,default:""},target:{type:String,required:!0},placement:"top",options:{}},data:function(){return{instance:void 0}},computed:{element:function(){return document.getElementById(this.id)},targetAsElement:function(){return document.querySelector(this.target)},instance:function(){return this.instance}},mounted:function(){this.create()},methods:{create:function(){this.instance=(0,i.fi)(this.targetAsElement,this.element,s(s({},this.options),{},{placement:this.placement,modifiers:[{name:"eventListeners",enabled:!0}]}))},showPopper:function(){this.element.setAttribute("data-show",""),this.instance.update()},hide:function(){this.element.removeAttribute("data-show"),this.instance.update()}},watch:{show:function(t){t?this.showPopper():this.hide()}}};const u=(0,n(51900).Z)(c,r,[],!1,null,null,null).exports},85989:(t,e,n)=>{n.r(e),n.d(e,{default:()=>H});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.nextDelivery&&t.quantity?n("form-alert",{staticClass:"mb-4",attrs:{show:!0,alertType:"success"}},[n("p",{domProps:{innerHTML:t._s(t.$t("cancel.success_pause",{quantity:t.quantity}))}}),t._v(" "),n("p",{staticClass:"text-gray-400"},[t._v(t._s(t.$t("cancel.next_delivery",{nextDelivery:t.nextDelivery})))])]):t._e(),t._v(" "),n("tabs",{attrs:{"first-tab-title":t.$t("profile_side_menu_my_delivery"),"second-tab-title":t.$t("profile_side_menu_paused_months"),"second-tab-active":t.pause,"show-second-tab-content":t.pausedMonths.length>0,"show-tabs":t.pausedMonths.length>0},scopedSlots:t._u([{key:"firstTab",fn:function(){return[t.pausedMonths.length<=0?n("h1",[t._v(t._s(t.$t("profile_side_menu_my_delivery")))]):t._e(),t._v(" "),n("div",{staticClass:"grid grid-cols-1 md:grid-cols-2 gap-6 min-h-500"},[t._l(t.deliveries,(function(e,r){return[n("div",{staticClass:"col-span-2 md:col-span-2"},[n("delivery-box",{ref:"deliveryBox",refInFor:!0,attrs:{"s-tyle":"min-height: 312px",delivery:e,index:r},on:{openTrackingInformant:t.openTrackingInformant}})],1),t._v(" "),n("div",{staticClass:"col-span-2 hidden"},[n("trackingInformantProvider",{ref:"trackingInformant",refInFor:!0,staticStyle:{"min-height":"312px"},attrs:{tracking:e.trackingCode,title:e.boxName,index:r},on:{openTrackingInformant:t.openTrackingInformant}})],1)]})),t._v(" "),t.isLoading?t._e():n("generic-delivery-module",{staticClass:"col-span-2",attrs:{isActive:t.isActive}},[[n("my-addresses")]],2),t._v(" "),n("div",{staticClass:"col-span-2"},[n("last-deliveries",{attrs:{deliveries:t.lastDeliveries}})],1),t._v(" "),n("div",{staticClass:"col-span-2 md:col-span-1"},[n("shipping-round-select")],1)],2)]},proxy:!0},{key:"secondTab",fn:function(){return[n("paused-months",{staticStyle:{"min-height":"312px"},attrs:{pausedMonths:t.pausedMonths}})]},proxy:!0}])})],1)};r._withStripped=!0;n(41539),n(88674),n(17727),n(89554),n(54747),n(69070),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(78011),n(30489),n(68309),n(68304),n(65069),n(47042);var i=n(25421),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"db-container-gray-box p-0"},[n("div",{staticClass:"title-xl p-4"},[n("span",[t._v(t._s(t.$t("delivery.last_deliveries")))])]),t._v(" "),t.deliveries.length>0?[n("div",{staticClass:"striped-table"},t._l(t.deliveries,(function(e,r){return n("div",{staticClass:"px-4 py-2 grid grid-cols-2 md:grid-cols-4 gap-3"}
2,[n("div",{staticClass:"font-bold text-db-dark col-span-2 md:col-span-1"},[t._v(t._s(e.boxName))]),t._v(" "),n("div",{staticClass:"text-gray-500 md:col-span-2"},[t._v("\n "+t._s(t.$t("delivery.on"))+" "+t._s(e.date_range)+"\n "),n("br"),t._v("\n "+t._s(t.$t("delivery.to"))+" "+t._s(e.address.firstName)+" "+t._s(e.address.lastName)+"\n ")]),t._v(" "),n("div",{staticClass:"text-gray-500"},[t._v("\n "+t._s(t.$t("delivery_id"))+" "+t._s(e.id)+"\n "),n("br"),t._v(" "),n("a",{staticClass:"text-db-light font-semibold",attrs:{target:"_blank",rel:"nofollow",href:e.boxTrackingLink}},[t._v(t._s(t.$t("delivery.view_details")))])])])})),0)]:[n("div",{staticClass:"font-bold text-center p-4"},[t._v(t._s(t.$t("delivery.response.not_results")))])]],2)};o._withStripped=!0;const a={name:"lastDeliveries",props:{deliveries:Object},methods:{}};var s=n(51900);const l=(0,s.Z)(a,o,[],!1,null,null,null).exports;var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid grid-cols-1 bg-gray-100 p-6 flex-grow",attrs:{id:"myAddress"}},[n("div",{staticClass:"text-center"},[n("div",{staticClass:"title-xl text-center"},[t._v(t._s(t.$t("delivery.my_addresses")))]),t._v(" "),n("div",{staticClass:"py-2 text-base"},[t._v("\n "+t._s(t.$t("delivery.manage_addresses"))+"\n ")])]),t._v(" "),n("div",{staticClass:"text-center pt-3"},[n("router-link",{attrs:{to:{name:"myAccount",params:{section:"my-delivery-address"}},custom:""},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.navigate;return[n("button",{staticClass:"btn btn-secondary btn-sm btn-pill",on:{click:r}},[t._v("\n "+t._s(t.$t("personal_data.actions.modify_data"))+"\n ")])]}}])})],1)])};c._withStripped=!0;var u=n(43705);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(){h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),s=new L(i||[]);return r(a,"_invoke",{value:C(t,n,s)}),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p={};function f(){}function v(){}function m(){}var g={};l(g,o,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(T([])));_&&_!==e&&n.call(_,o)&&(g=_);var b=m.prototype=f.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==d(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function C(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=$(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function $(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,739 bytes, line 2
2(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,s,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function p(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}const f={name:"myAddresses",data:function(){return{delivery_address:[]}},created:function(){var t,e=this;return(t=h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAddress();case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;
2return new Promise((function(r,i){var o=t.apply(e,n);function a(t){p(o,r,i,a,s,"next",t)}function s(t){p(o,r,i,a,s,"throw",t)}a(void 0)}))})()},methods:{getAddress:function(){var t=this;this.axios.get(u.Z.generate("delivery_address",{_locale})).then((function(e){t.delivery_address=e.data.message}))}}};const v=(0,s.Z)(f,c,[],!1,null,null,null).exports;var m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"db-container-box-full"},[n("div",{staticClass:"bg-db-dark text-white p-6 relative"},[n("div",{staticClass:"text-xl font-bold"},[t._v("\n "+t._s(this.title)+"\n ")]),t._v(" "),n("div",{staticClass:"button-close-db-container-box absolute",on:{click:this.toggleShipUp}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{ref:"body",staticClass:"p-6"},[n("div",{staticClass:"mx-auto"},[n("spinner-loader")],1)])])};m._withStripped=!0;n(9653);const g={name:"trackingInformantProvider",components:{SpinnerLoader:n(99341).Z},props:{title:String,tracking:String,index:Number},methods:{toggleShipUp:function(){this.$emit("openTrackingInformant",this.index)},loadShipUp:function(){var t=this;this.$loadScript("https://cdn.shipup.co/latest_v2/shipup-js.js").then((function(){new ShipupJS.default(t.$t("delivery.shipup_public_key")).render(t.$refs.body,{language:_locale,searchEnabled:!1,display:window.innerWidth<=767?"mobile":"desktop",trackingNumber:t.tracking})})).catch((function(){}))}}};const y=(0,s.Z)(g,m,[],!1,null,null,null).exports;var _=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid grid-cols-1 grid-rows-1 text-center md:text-left gap-y-6"},[n("h1",[t._v(t._s(t.$t("profile_side_menu_paused_months")))]),t._v(" "),n("div",[t._v("\n "+t._s(t.$t("pause.main_text"))+"\n ")]),t._v(" "),t._l(this.pausedMonths,(function(e){return[n("pause-month-box",{attrs:{"paused-month":e},on:{removePausedMonth:t.removePausedMonth}})]}))],2)};_._withStripped=!0;n(40561),n(82772);var b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isStockOut&&t.preCharge?n("div",[n("form-alert",{attrs:{show:!0,alertType:"warning"}},[n("span",{domProps:{innerHTML:t._s(this.stockoutMessageText(t.pausedMonth.month,t.nextAvailableBox))}})])],1):t._e(),t._v(" "),n("div",{staticClass:"grid grid-cols-1 md:grid-cols-3 db-container-gray-box gap-4",class:{"opacity-50":0===t.pausedMonth.state}},[t.preCharge?n("div",{staticClass:"my-auto text-lg font-bold cursor-pointer",on:{click:t.payAndUnpauseMonthBack}},[n("i",{staticClass:"fas fa-angle-left"}),t._v(" "+t._s(t.$t("pause.back"))+"\n ")]):n("div",{staticClass:"my-auto text-lg font-bold capitalize"},[n("i",{staticClass:"fas fa-calendar-alt"}),t._v(" "+t._s(t.pausedMonth.title)+"\n ")]),t._v(" "),n("div",{staticClass:"my-auto"},[t.preCharge?n("div",[n("b",[t._v(t._s(t.$t("pause.charge_confirmation",{amount:t.pausedMonth.price})))])]):n("div",[n("div",{staticClass:"capitalize"},[n("i",[t._v(t._s(t.$t("pause.subscription")))]),t._v(" "),n("b",[t._v(t._s(t.$t("pause.paused")))])])])]),t._v(" "),n("div",[t.pausedMonth.state>0?n("button-loader",{attrs:{functionName:3===t.pausedMonth.state?"pauseMonth":2===t.pausedMonth.state?"payAndUnpauseMonthConfirmation":"unpauseMonth",functionParam:t.pausedMonth,defaultClasses:{"w-full db-light-button":3===t.pausedMonth.state,"w-full db-light-button":2===t.pausedMonth.state,"w-full py-2 db-light-white-button":1===t.pausedMonth.state},isDisabled:!1,buttonText:t.preCharge?t.$t("pause.continue"):t.$t(t.pausedMonth.action),hasError:!1,isSuccess:!1,isLoading:t.isLoading}}):n("div",{staticClass:"text-center w-full py-2 uppercase font-bold"},[t._v(t._s(t.$t(t.pausedMonth.action)))])],1)])])};b._withStripped=!0;var w=n(22874),x=n(95621),C=n(23180);const $={name:"pauseMonthBox",mixins:[C.ZP],components:{FormAlert:x.Z,ButtonLoader:w.Z},props:{pausedMonth:Object},data:function(){return{isLoading:!1,preCharge:!1}},computed:{getMe:function(){return this.$store.getters.getUser},isStockOut:function(){return!!(this.stockout&&this.stockout.available<=0)},nextAvailableBox:function(){var t=this.getMe.extra.nextPayDay.substring(0,7);return t>this.pausedMonth.month?t:this.pausedMonth.month}},mounted:function(){this.getMonthStock(this.pausedMonth.month)},methods:{pauseMonth:function(t){var e=this;this.isLoading=!0,this.axios.post(u.Z.generate("paused_months_pause",{_locale}),{month:t.month}).then((function(){e.$parent.$parent.$parent.$emit("showAlert","success","","pause.pause_success",{month:t.month}),e.$parent.$parent.$parent.$emit("removePausedMonth",t),e.$store.dispatch("getNotifications",{force:!0}),e.reloadNotifications()})).catch((function(){e.$parent.$parent.$parent.$emit("showAlert","error","","pause.pause_failed",{month:t.month})})).finally((function(){e.isLoading=!1}))},unpauseMonth:function(t){var e=this;this.isLoading=!0,this.axios.post(u.Z.generate("paused_months_resume",{_locale}),{month:t.month}).then((function(){e.$parent.$parent.$parent.$emit("showAlert","success","","pause.resume_success",{month:t.month}),e.$emit("removePausedMonth",t),e.$store.dispatch("getNotifications",{force:!0}),e.reloadNotifications()})).catch((function(){e.$parent.$parent.$parent.$emit("showAlert","error","","pause.resume_failed",{month:t.month})})).finally((function(){e.isLoading=!1}))},payAndUnpauseMonthBack:function(){this.preCharge=!1},payAndUnpauseMonthConfirmation:function(t){this.preCharge?this.payAndUnpauseMonth(t):this.preCharge=!0},payAndUnpauseMonth:function(t){var e=this;this.isLoading=!0,this.axios.post(u.Z.generate("paused_months_pay_and_resume",{_locale}),{month:t.month}).then((function(){e.$parent.$parent.$parent.$emit("showAlert","success","","pause.resume_success",{month:t.month}),e.$emit("removePausedMonth",t)})).catch((function(){e.$parent.$parent.$parent.$emit("showAlert","error","","pause.resume_failed",{month:t.month})})).finally((function(){e.$store.dispatch("getMe",{force:!0}),e.$store.dispatch("getNotifications",{force:!0}),e.reloadNotifications(),e.isLoading=!1,e.preCharge=!1}))}}};
2const S={name:"pausedMonths",components:{PauseMonthBox:(0,s.Z)($,b,[],!1,null,null,null).exports},props:{pausedMonths:Object},methods:{removePausedMonth:function(t){this.pausedMonths.splice(this.pausedMonths.indexOf(t),1)}}};const k=(0,s.Z)(S,_,[],!1,null,null,null).exports;var L=n(36929),T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"db-container-gray-box grid-cols-2 flex flex-col grid grid-cols-1 md:grid-cols-2 p-0 overflow-hidden gap-4 overflow-hidden"},[n("div",{staticClass:"col-span-2 lg:col-span-1 grid gap-1 p-4"},[n("div",{staticClass:"title-xl"},[t._v(t._s(t._f("upper")(t.$t("delivery.monthly_box"))))]),t._v(" "),n("div",[n("span",{domProps:{innerHTML:t._s(t.$t("delivery.answer"))}})])]),t._v(" "),n("div",{staticClass:"h-full col-span-2 lg:col-span-1 flex flex-col"},[t._t("default")],2)])};T._withStripped=!0;var E=n(38293);const M={name:"genericDeliveryModule",mixins:[C.ZP],components:{PlaceholderImage:E.Z},props:{isActive:{type:Boolean,default:!1}}};const P=(0,s.Z)(M,T,[],!1,null,null,null).exports;var O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"db-container-gray-box grid-cols-1 p-0 col-span-2 md:col-span-1 flex flex-col justify-between"},[n("div",{staticClass:"col-span-1 gap-3 p-5 sm:px-10"},[n("div",{staticClass:"title-xl mb-1"},[t._v(t._s(t.offer.name))]),t._v(" "),n("div",{staticClass:"mb-2"},[t._v(t._s(t.$t("delivery.eb_delivered_between"))+"\n "),n("br"),t._v(t._s(t.offer.shipping_start)+" - "+t._s(t.offer.shipping_end)+"\n ")]),t._v(" "),n("div",{staticClass:"title-xl"},[t._v(t._s(t.$t("delivery.getting_box_ready")))])]),t._v(" "),n("div",{staticClass:"col-span-1"},[n("placeholder-image",{attrs:{"class-name":"rounded-b-lg h-max-",alt:"offer image",external:!0,src:t.offer.image,loading:"lazy"}})],1)])};O._withStripped=!0;const A={name:"genericEditionDeliveryModule",components:{PlaceholderImage:E.Z},props:{offer:Object}};const j=(0,s.Z)(A,O,[],!1,null,null,null).exports;var N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isOnDateRanges&&t.showModule?n("div",{staticClass:"bg-gray-100 rounded-lg p-6"},[n("div",{staticClass:"title-xl uppercase mb-2"},[t._v(t._s(t.$t("delivery.shipping_round_select_title")))]),t._v(" "),n("div",{staticClass:"flex flex-col mb-6"},[n("div",[n("span",{staticClass:"text-db-dark font-bold"},[t._v(t._s(t.$t("delivery.first_shipping_round_number_1")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("delivery.first_shipping_round_1"))}}),t._v(".")]),t._v(" "),n("div",[n("span",{staticClass:"text-db-dark font-bold"},[t._v(t._s(t.$t("delivery.second_shipping_round_number_1")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("delivery.second_shipping_round_1"))}}),t._v(".")]),t._v(" "),n("div",[n("span",{staticClass:"text-db-dark font-bold"},[t._v(t._s(t.$t("delivery.third_shipping_round_number_1")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("delivery.third_shipping_round_1"))}}),t._v(".")]),t._v("\n ---\n "),n("div",[n("span",{staticClass:"text-db-dark font-bold"},[t._v(t._s(t.$t("delivery.first_shipping_round_number_2")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("delivery.first_shipping_round_2"))}}),t._v(".")]),t._v(" "),n("div",[n("span",{staticClass:"text-db-dark font-bold"},[t._v(t._s(t.$t("delivery.second_shipping_round_number_2")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("delivery.second_shipping_round_2"))}}),t._v(".")]),t._v(" "),n("div",[n("span",{staticClass:"text-db-dark font-bold"},[t._v(t._s(t.$t("delivery.third_shipping_round_number_2")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("delivery.third_shipping_round_2"))}}),t._v(".")])]),t._v(" "),n("div",{ref:"month1",staticClass:"mb-4",attrs:{"data-month":t.currentYear+"-07"}},[n("label",{staticClass:"block text-sm font-bold mb-1"},[t._v(t._s(t.$t("delivery.select_round_for_month_1",{month:"1"})))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.shipping_round_month1,expression:"shipping_round_month1"}],staticClass:"form-control db-form-select--full",attrs:{disabled:t.isJuly},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,
2(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.shipping_round_month1=e.target.multiple?n:n[0]}}},t._l(t.rounds,(function(e){return n("option",{key:"m1-"+e,domProps:{value:e}},[t._v("\n "+t._s(t.$t("delivery."+["first","second","third"][e-1]+"_shipping_round_number"))+"\n ")])})),0)]),t._v(" "),n("div",{ref:"month2",staticClass:"mb-4",attrs:{"data-month":t.currentYear+"-08"}},[n("label",{staticClass:"block text-sm font-bold mb-1"},[t._v(t._s(t.$t("delivery.select_round_for_month_2",{month:"2"})))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.shipping_round_month2,expression:"shipping_round_month2"}],staticClass:"form-control db-form-select--full",attrs:{disabled:t.isAugust},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.shipping_round_month2=e.target.multiple?n:n[0]}}},t._l(t.rounds,(function(e){return n("option",{key:"m2-"+e,domProps:{value:e}},[t._v("\n "+t._s(t.$t("delivery."+["first","second","third"][e-1]+"_shipping_round_number"))+"\n ")])})),0)]),t._v(" "),n("label",{class:{"text-error-dark":t.error,"text-db-dark":t.success}},[t._v("\n "+t._s(t.statusMessage)+"\n ")]),t._v(" "),n("div",{staticClass:"text-xs text-justify my-2",domProps:{innerHTML:t._s(t.$t("delivery.shipping_round_reminder"))}}),t._v(" "),n("div",{staticClass:"mt-4"},[n("button",{staticClass:"btn btn-primary w-full",attrs:{disabled:t.loading},on:{click:t.submitShippingRound}},[t._v("\n "+t._s(t.$t("delivery.submit_shipping_round"))+"\n ")])])]):t._e()};N._withStripped=!0;n(83710),n(69826);const I={name:"shippingRoundSelect",mixins:[C.ZP],data:function(){var t=(new Date).getMonth();return{loading:!1,error:void 0,success:void 0,currentYear:(new Date).getFullYear(),isJuly:6===t,isAugust:7===t}},computed:{shipping_round_month1:function(){var t,e,n;return null===(t=this.getMe)||void 0===t||null===(e=t.entity)||void 0===e||null===(n=e.userShippingMonthRound.find((function(t){return"2026-07"===t.month})))||void 0===n?void 0:n.round},shipping_round_month2:function(){var t,e,n;return null===(t=this.getMe)||void 0===t||null===(e=t.entity)||void 0===e||null===(n=e.userShippingMonthRound.find((function(t){return"2026-08"===t.month})))||void 0===n?void 0:n.round},getMe:function(){return this.$store.getters.getUser},rounds:function(){return[1,2,3]},statusMessage:function(){return this.loading?this.$t("loading"):this.error?this.$t("delivery.shipping_round_error"):this.success?this.$t("delivery.shipping_round_changed_successful"):void 0},isOnDateRanges:function(){var t=new Date,e=t.getMonth()+1,n=t.getDate();return e>5&&e<7||5===e&&n>=1||7===e&&n<=30},showModule:function(){return this.hasSubscription&&(this.activeStatus||this.readyForCancelStatus||this.inactiveStatus)}},mounted:function(){var t,e,n;t=null===(e=this.getMe)||void 0===e||null===(n=e.entity)||void 0===n?void 0:n.shippingRound},methods:{submitShippingRound:function(){var t=this;this.loading=!0,this.error=void 0,this.success=void 0;var e={},n=this.$refs.month1.dataset.month,r=this.$refs.month2.dataset.month,i=Number(this.$refs.month1.querySelector("select").value),o=Number(this.$refs.month2.querySelector("select").value);if(0!==i&&null!==i&&(e[n]=i),0!==o&&null!==o&&(e[r]=o),!e)return this.error=!0,void(this.success=!1);this.axios.post(u.Z.generate("set_shipping_round",{_locale}),{rounds:e}).then((function(){t.success=!0,t.$store.dispatch("getMe",{force:!0})})).catch((function(){return t.error=!0})).finally((function(){return t.loading=!1}))}}};const Z=(0,s.Z)(I,N,[],!1,null,null,null).exports;var B=n(78592);n(46626);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function F(){F=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function h(){}function p(){}function f(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=f.prototype=h.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==D(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,485 bytes, line 2
2(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=l(f,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(b.prototype),l(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function G(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function U(t){return function(){var e=this,n=arguments;
2return new Promise((function(r,i){var o=t.apply(e,n);function a(t){G(o,r,i,a,s,"next",t)}function s(t){G(o,r,i,a,s,"throw",t)}a(void 0)}))}}const q={name:"myDelivery",components:{ShippingRoundSelect:Z,FormAlert:x.Z,GenericEditionDeliveryModule:j,PausedMonths:k,MyAddresses:v,LastDeliveries:l,DeliveryBox:i.Z,TrackingInformantProvider:y,Tabs:L.Z,GenericDeliveryModule:P},props:{pause:{type:Boolean,default:!1}},data:function(){return{quantity:null,nextDelivery:null,isActive:!1,monthlyPreparing:!1,editionPreparing:[],deliveries:[],isLoading:!0,trackingInformantTitle:"",lastDeliveries:[],pausedMonths:{}}},beforeMount:function(){var t=this;return U(F().mark((function e(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("getMe");case 2:case"end":return e.stop()}}),e)})))()},computed:{getMe:function(){return this.$store.getters.getUser}},mounted:function(){var t=this;return U(F().mark((function e(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.nextDelivery=t.$route.query.until,t.quantity=t.$route.query.months,t.axios.get(u.Z.generate("paused_months",{_locale})).then((function(e){t.pausedMonths=e.data})),t.axios.get(u.Z.generate("preparing_deliveries",{_locale})).then((function(e){t.isActive=e.data.isActive,t.monthlyPreparing=e.data.monthly_preparing,t.editionPreparing=e.data.edition_preparing})),e.next=6,t.axios.get(u.Z.generate("get_deliveries",{_locale})).then((function(e){t.deliveries=e.data.deliveries,t.lastDeliveries=e.data.lastDeliveries})).finally((function(){t.isLoading=!1}));case 6:case"end":return e.stop()}}),e)})))()},methods:{openTrackingInformant:function(t){this.$refs.trackingInformant[t].$el.parentNode.classList.contains("hidden")?(this.$refs.trackingInformant[t].$el.parentNode.classList.remove("hidden"),this.$refs.trackingInformant[t].loadShipUp(),this.toggleOpacityToDeliveryBoxes(!0),this.$refs.deliveryBox[t].opacity=!1):(this.$refs.trackingInformant[t].$el.parentNode.classList.add("hidden"),this.toggleOpacityToDeliveryBoxes(!1))},toggleOpacityToDeliveryBoxes:function(t){this.$refs.deliveryBox.forEach((function(e){e.opacity=t}))}},watch:{isLoading:function(){this.$nextTick((function(){new B.Z(".swiper--default",{slidesPerView:1.2,spaceBetween:10,slidesOffsetBefore:24,slidesOffsetAfter:24,centeredSlides:!0,centeredSlidesBounds:!0,breakpoints:{768:{slidesPerView:2,spaceBetween:16,slidesOffsetBefore:0,slidesOffsetAfter:0}}})}))}}};const H=(0,s.Z)(q,r,[],!1,null,null,null).exports},21585:(t,e,n)=>{t.exports=n.p+"images/error.0db77517.svg"},19620:(t,e,n)=>{t.exports=n.p+"images/success.e24cc3b0.svg"}}]);
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.