1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[138],{90138(e,t,r){r.d(t,{default:()=>d});r(52675),r(89463),r(2259),r(45700),r(16280),r(76918),r(28706),r(23792),r(60739),r(89572),r(94170),r(33110),r(2892),r(59904),r(84185),r(40875),r(10287),r(26099),r(3362),r(60825),r(47764),r(62953);var n=r(52891),o=r(89336);function a(e){return a="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},a(e)}function i(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,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function c(e,t,r){return t=l(t),function(e,t){if(t&&("object"==a(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)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,t,arguments)}return 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&&f(e,t)}(t,e),r=t,(n=[{key:"connect",value:function(){}},{key:"sendRequest",value:function(e){var t=this;e.preventDefault();var r=document.getElementById("deleteAccountModal"),n=o.aF.getInstance(r);fetch("/compte/demande-suppression",{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json"},body:JSON.stringify({confirmed:!0})}).then(function(e){var t=e.status;return e.json().then(function(e){return{data:e,status:t}})}).then(function(e){var r=e.data,o=e.status;n&&n.hide(),200===o?t.showAlert("success","Votre demande de suppression a été envoyée avec succès. Un administrateur traitera votre demande prochainement."):429===o?t.showAlert("warning",r.message||"Vous avez atteint la limite de demandes autorisées. Veuillez réessayer plus tard."):t.showAlert("danger",r.message||"Une erreur est survenue lors de l'envoi de votre demande.")}).catch(function(e){n&&n.hide(),console.error("Error:",e),t.showAlert("danger","Une erreur est survenue lors de l'envoi de votre demande. Veuillez réessayer ultérieurement.")})}},{key:"showAlert",value:function(e,t){var r=document.createElement("div");r.className="alert alert-".concat(e," alert-dismissible fade show mb-4 col-md-10 col-lg-8"),r.setAttribute("role","alert");var n="success"===e?"check-circle":"warning"===e?"exclamation-circle":"exclamation-triangle";r.innerHTML='\n <i class="fas fa-'.concat(n,' me-2"></i>\n ').concat(t,'\n <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>\n ');var o=document.querySelector(".border-danger").closest(".row");o&&o.parentNode.insertBefore(r,o)}}])&&i(r.prototype,n),a&&i(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.xI)}}]);
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.