PageSourceSearch

https://www.lagazettefrance.fr/assets/js/backoffice/select2/select2.status-pb9l6N5.js

js lagazettefrance.fr collected 2026-10-02 05:36:56 UTC 1,565 bytes, 6 lines download raw bytes

1export function enhanceStatusSelect(e=".js-status-select2"){const t=window.jQuery||window.$;if(!t){console.warn("⚠️ jQuery non è caricato: impossibile inizializzare Select2");return}function o(e){return e?e==="brouillon"?"bg-danger":e.startsWith("en_attente")?"bg-warning":e==="relu"?"bg-primary":e==="planifie"?"bg-purple":e==="publie"?"bg-success":e==="depublie"?"bg-dark":"bg-secondary":"bg-secondary"}function n(e,n="md"){if(!e?.id||!e.element||e.element.tagName!=="OPTION")return e?.text??"";const s=t(e.element),i=s.data("code")||"",a=o(i);return t(`
2      <span class="d-flex align-items-center gap-2">
3        <span class="status-dot status-dot--${n} ${a}"></span>
4        <span>${e.text}</span>
5      </span>
6    `)}function i(e){if(!e?.length)return;const o=e.data("placeholder")||"Sélectionner un statut…",t={theme:"bootstrap-5",width:"100%",minimumResultsForSearch:1/0,placeholder:o,templateResult:e=>n(e,"md"),templateSelection:e=>n(e,"sm"),dropdownAutoWidth:!0,dropdownCssClass:"status-select2-dropdown",selectionCssClass:"status-select2-selection"};e.data("select2")&&e.select2("destroy"),e.select2(t);const s=e.closest(".collapse");s.length&&s.off("shown.bs.collapse.statusSelect2").on("shown.bs.collapse.statusSelect2",()=>{e.data("select2")&&e.select2("destroy"),e.select2(t)})}function s(n=0){const o=t(e);if(!o.length)return;if(typeof t.fn.select2=="function"){o.each(function(){i(t(this))});return}if(n>=15){console.warn("Select2 non è caricato, impossibile applicare il renderer personalizzato");return}setTimeout(()=>s(n+1),100)}s()}

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.