PageSourceSearch

https://www.sweeek.fr/build/5610.3ee000e5.js

js sweeek.fr collected 2026-10-04 19:39:43 UTC 3,930 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5610],{5610:function(e,t,r){r.r(t),r.d(t,{default:function(){return h}});var n=r(6599),o=r(7469);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,r,n,i=c(l);function l(){return u(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"subscribe",value:function(){var e=this;this.subscribeUrlValue&&this.hasSubmitTarget&&(this.submitTarget.disabled=!0,this.hasErrorTarget&&this.errorTarget.classList.add("d-none"),new o.Ajax({url:this.subscribeUrlValue,method:"POST",format:"json",successCallback:function(){window.dataLayer&&window.dataLayer.push({event:"subscription loyalty program"}),e.hasRulesTarget&&e.rulesTarget.classList.add("d-none"),e.hasSuccessTarget&&e.successTarget.classList.remove("d-none"),e.hasSubmitTarget&&e.submitTarget.classList.add("d-none"),e.refreshUrlValue&&e.hasWrapperTarget&&e.refreshBlock()},rejectCallback:function(t){if(e.submitTarget.disabled=!1,e.hasErrorTarget){var r=t&&t.message||"";e.errorTarget.textContent=r,e.errorTarget.classList.remove("d-none")}}}))}},{key:"refreshBlock",value:function(){var e=this,t=new URLSearchParams({loyalty_subscribed:"1"});this.stepValue&&t.set("step",this.stepValue);var r=this.refreshUrlValue+(this.refreshUrlValue.includes("?")?"&":"?")+t.toString();fetch(r,{method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"},credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(t){t&&e.hasWrapperTarget&&(e.wrapperTarget.outerHTML=t)})).catch((function(){}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Qr);p(h,"targets",["form","submit","success","error","wrapper","rules"]),p(h,"values",{subscribeUrl:String,refreshUrl:String,step:String})}}]);

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.