1"use strict";(self.webpackChunkgazzanet_symfony=self.webpackChunkgazzanet_symfony||[]).push([[2436],{32436:function(t,e,o){const n=/^[-_a-zA-Z0-9]{4,22}$/,r=/^[-_/+a-zA-Z0-9]{24,}$/;document.addEventListener("submit",function(t){!function(t){const e=t.querySelector('input[data-controller="csrf-protection"], input[name="_csrf_token"]');if(!e)return;let o=e.getAttribute("data-csrf-protection-cookie-value"),c=e.value;!o&&n.test(c)&&(e.setAttribute("data-csrf-protection-cookie-value",o=c),e.defaultValue=c=btoa(String.fromCharCode.apply(null,(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(18)))));if(e.dispatchEvent(new Event("change",{bubbles:!0})),o&&r.test(c)){const t=o+"_"+c+"="+o+"; path=/; samesite=strict";document.cookie="https:"===window.location.protocol?"__Host-"+t+"; secure":t}}(t.target)},!0),document.addEventListener("turbo:submit-start",function(t){const e=function(t){const e={},o=t.querySelector('input[data-controller="csrf-protection"], input[name="_csrf_token"]');if(!o)return e;const c=o.getAttribute("data-csrf-protection-cookie-value");r.test(o.value)&&n.test(c)&&(e[c]=o.value);return e}(t.detail.formSubmission.formElement);Object.keys(e).map(function(o){t.detail.formSubmission.fetchRequest.headers[o]=e[o]})}),document.addEventListener("turbo:submit-end",function(t){!function(t){const e=t.querySelector('input[data-controller="csrf-protection"], input[name="_csrf_token"]');if(!e)return;const o=e.getAttribute("data-csrf-protection-cookie-value");if(r.test(e.value)&&n.test(o)){const t=o+"_"+e.value+"=0; path=/; samesite=strict; max-age=0";document.cookie="https:"===window.location.protocol?"__Host-"+t+"; secure":t}}(t.detail.formSubmission.formElement)}),e.default="csrf-protection-controller"}}]); 2//# sourceMappingURL=2436.ab0d5a3e.js.map
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.