PageSourceSearch

https://www.degustabox.com/build/3145.36c47373.js

js degustabox.com collected 2026-09-25 14:57:26 UTC 17,790 bytes, 2 lines download raw bytes

1/*! For license information please see 3145.36c47373.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3145,9418],{94363:(t,e,n)=>{n.d(e,{Z:()=>r});n(68309),n(83710),n(43705);const r={data:function(){return{validFields:{}}},methods:{checkFormValidity:function(t){return t.checkValidity()},checkFieldValidity:function(t){this.$set(this.validFields,t.target.name,t.target.checkValidity())},isFieldInvalid:function(t,e,n){return n&&e&&!this.validFields[t]},browserWidth:function(){return screen.width},browserHeight:function(){return screen.height},browserColor:function(){return screen.colorDepth},browserTime:function(){return(new Date).getTimezoneOffset()},httpAcceptLanguage:function(){return navigator.language},userAgent:function(){return navigator.userAgent},urlHash:function(){return window.location.hash}}}},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},65792:(t,e,n)=>{n.r(e),n.d(e,{default:()=>b});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.getMe||t.discount<=0?n("div",{staticClass:"w-8 m-auto"},[n("spinner-loader")],1):n("div",{staticClass:"col-span-12 db-container min-h-full"},[n("div",{staticClass:"relative"},[n("modal-claim-discount",{ref:"modal",on:{onClose:t.goToMyDashBoard}})],1),t._v(" "),n("h1",{staticClass:"title-xl uppercase text-center mb-2"},[t._v(t._s(t.$t("cancel.remember_points_title")))]),t._v(" "),n("div",{staticClass:"text-center mb-5 text-lg",domProps:{innerHTML:t._s(t.$t("cancel.remember_points_description"))}}),t._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-3 text-center"},[n("div",{staticClass:"grid grid-cols-1 m-auto"},[n("div",{staticClass:"db-container-gray-box mb-4 text-center flex flex-col"},[n("h2",{staticClass:"title-lg uppercase mb-4"},[t._v(t._s(t.$t("cancel.remember_points_your_points_and_discounts")))]),t._v(" "),n("div",{staticClass:"text-center my-auto"},[n("div",{staticClass:"text-xl uppercase mb-2"},[t._v(t._s(t.$t("cancel.total_points_you_have")))]),t._v(" "),n("div",{staticClass:"dbpoints-badge"},[n("span",[t._v(t._s(t.getTotalPoints))]),t._v("\n            "+t._s(t.$t("cancel.total_points_pts"))+"\n          ")])]),t._v(" "),n("div",{staticClass:"mt-4"},[t._v("\n          "+t._s(t.$t("cancel.remember_convert_your_points_on_discounts_message",{amount:t.getDiscount}))+"\n        ")])]),t._v(" "),t.isFrance&&t.showSpoilerUntilOctober31?n("div",{staticClass:"db-container-gray-box mb-4 text-center flex flex-col"},[n("div",{staticClass:"grid sm:grid-cols-2 grid-cols-1"},[n("div",{staticClass:"my-auto"},[n("div",{staticClass:"uppercase sm:px-12"},[n("div",{staticClass:"title-lg font-normal sm:block hidden"},[t._v("\n                "+t._s(t.$t("cancel_spoil_banner_title_1"))+"\n              ")]),t._v(" "),n("div",{staticClass:"title-lg"},[t._v("\n                "+t._s(t.$t("cancel_spoil_banner_title_2"))+"\n              ")])]),t._v(" "),n("div",{staticClass:"sm:block hidden"},[n("button",{staticClass:"db-light-button py-3 mt-4",on:{click:function(e){return t.trackSpoilerCommunicationEvent("click")}}},[t._v("\n                "+t._s(t.$t("cancel_spoil_banner_cta"))+"\n              ")])])]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"block sm:hidden"},[n("button",{class:["db-light-button py-3 mt-4",t.disableDiscountRedeem?"opacity-50 cursor-not-allowed":""],attrs:{disabled:t.disableDiscountRedeem},on:{click:t.claimDiscount}},[t._v("\n              "+t._s(t.$t("cancel_spoil_banner_cta"))+"\n            ")])])])]):t._e(),t._v(" "),n("button",{class:["db-light-button w-full uppercase mt-4",t.disableDiscountRedeem?"opacity-50 cursor-not-allowed":""],attrs:{disabled:t.disableDiscountRedeem},on:{click:t.claimDiscount}},[t._v("\n        "+t._s(t.$t("cancel.claim_button_label"))+"\n      ")]),t._v(" "),t.isLoading?t._e():n("div",{staticClass:"grid grid-cols-2 gap-2 mt-4"},[n("div",[n("router-link",{attrs:{to:{name:"survey"},custom:""},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.navigate;return[n("button",{staticClass:"db-gray-outline-button w-full uppercase",on:{click:r}},[t._v("\n              "+t._s(t.$t("cancel.cancel_button_label"))+"\n            ")])]}}],null,!1,3573080403)})],1),t._v(" "),n("div",[n("button",{staticClass:"db-light-outline-button w-full",on:{click:t.redirectToPause}},[t._v("\n            "+t._s(t.$t("cancel.pause_btn_cancel"))+"\n          ")])])]),t._v(" "),n("div",{staticClass:"mt-4"},[n("a",{staticClass:"text-db-dark",attrs:{href:"#"},on:{click:t.previousPage}},[t._v(t._s(t.$t("back")))])])])])])};r._withStripped=!0;n(41539),n(88674),n(17727),n(56977),n(83710),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);var i=n(33384),o=n(17378),a=n(43705),s=n(69423),c=n(45831),u=n(73637),l=n(36274),d=n(99341);function h(t){return h="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},h(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 c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:C(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d={};function p(){}function v(){}function m(){}var g={};c(g,o,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(P([])));_&&_!==e&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(r,o,a,s){var c=l(t[r],t,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==h(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){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(c.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 $()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(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 c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(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,k(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=l(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 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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(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:$}}function $(){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=c(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,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),c(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(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,o,(function(){return this})),c(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=P,E.prototype={constructor:E,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(L),!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"),c=n.call(o,"finallyLoc");if(s&&c){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(!c)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),L(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;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function p(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function v(t){return 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)}))}}var m,g,y;const _={name:"rememberPoints",mixins:[n(23180).ZP],components:{SpinnerLoader:d.Z,MyPointsHowTo:c.Z,ModalSelectPlan:s.Z,ModalBase:i.Z,offerBox:o.Z,ModalClaimDiscount:u.Z},data:function(){return{firstStep:this.$route.query.firstStep,pausedMonths:!0,offers:{},isLoading:!1,discount:0}},beforeMount:function(){var t=this;this.prepareState().then((function(){var e,n;(t.getTotalPoints<l.MIN_POINTS||(null===(e=t.getMe)||void 0===e||null===(n=e.extra)||void 0===n?void 0:n.nextDiscount)>0||t.discount<=0)&&t.redirectToSurvey()}))},mounted:function(){this.trackSpoilerCommunicationEvent("view")},methods:{redirectToSurvey:function(){this.$router.push({name:"survey"})},goToMyDashBoard:function(){this.$router.push({name:"myDashboard"})},previousPage:function(){this.$router.go(-1)},redirectToPause:function(){this.$router.push({path:"/cancel/pause",query:{firstStep:"true"}})},getPausedMonths:(y=v(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get(a.Z.generate("paused_months",{_locale}));case 2:e=t.sent,this.pausedMonths=e.data.length>0;case 4:case"end":return t.stop()}}),t,this)}))),function(){return y.apply(this,arguments)}),prepareState:(g=v(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("getMe");case 2:return t.next=4,this.getDiscountAmount();case 4:return t.next=6,this.getPausedMonths();case 6:case"end":return t.stop()}}),t,this)}))),function(){return g.apply(this,arguments)}),claimDiscount:(m=v(f().mark((function t(){var e=this;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.getTotalPoints>0&&(this.isLoading=!0,this.axios.post(a.Z.generate("claim_cancel_discount",{_locale}),JSON.stringify({points:this.getTotalPoints})).then(function(){var t=v(f().mark((function t(n){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(r=n.data.response.discount)>0?(e.trackClaimDiscountEvent(),e.$refs.modal.open(r)):e.$refs.modal.openError();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){})).finally((function(){e.isLoading=!1})));case 1:case"end":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)}),trackClaimDiscountEvent:function(){this.$gtm.trackEvent({event:"ga-event",category:"claim_my_discount",action:"click",label:"Cancel page claim discount"})},trackSpoilerCommunicationEvent:function(t){this.$gtm.trackEvent({event:"ga-event",category:"cancel_product_spoil_banner",action:t,label:"Cancel page remember points"}),"view"!==t&&this.goToMyDashBoard()},getDiscountAmount:function(){var t=this;return v(f().mark((function e(){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.axios.get(a.Z.generate("claim_cancel_discount_amount",{_locale}));case 2:n=e.sent,t.discount=n.data.response.discount;case 4:case"end":return e.stop()}}),e)})))()}},computed:{getMe:function(){return this.$store.getters.getUser},getTotalPoints:function(){var t,e;return Math.min(null===(t=this.getMe)||void 0===t||null===(e=t.entity)||void 0===e?void 0:e.currentPoints,l.MAX_POINTS)},getDiscount:function(){return this.$n(this.discount.toFixed(2),"currency",_locale)},disableDiscountRedeem:function(){var t,e,n,r;return(null===(t=this.getMe)||void 0===t||null===(e=t.entity)||void 0===e?void 0:e.currentPoints)<=0||(null===(n=this.getMe)||void 0===n||null===(r=n.extra)||void 0===r?void 0:r.nextDiscount)>0||this.isLoading},showSpoilerUntilOctober31:function(){return new Date<=new Date("2024-10-31T23:59:59")}}};const b=(0,n(51900).Z)(_,r,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{attrs:{loading:"lazy",decoding:"async",src:"/build/images/FR-products-spoiler-november.webp",alt:"product images"}})])}],!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.