PageSourceSearch

https://www.visiofrance.com/public/js/5423-99f679de55d10398d137.js

js visiofrance.com collected 2026-10-04 02:48:53 UTC 1,842 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunklibertin||=[]).push([[5423],{55423(e,t,a){a.d(t,{h:()=>l,togglePrivateModeMessageSave:()=>u});var r=a(6074),s=a(27634),n=a(44663),o=a(92618);const i=()=>{},d=(e,{isSaved:t})=>{if(!e)return;const a=t?"1":"0";if(e.getAttribute("data-saved")===a)return;e.setAttribute("data-saved",a),e.classList.toggle("bubble-ephemeral-saved",Boolean(t));const r=e.querySelector(".bubble-ephemeral-badge i");r&&(r.className=`fa-solid ${t?"fa-fire-flame-curved":"fa-fire"} text-warning`);const s=e.querySelector(".bubble-ephemeral-badge span");s&&(s.textContent=t?(0,n.t)("privateModeMessageSaved"):(0,n.t)("privateModeMessageEphemeral"))};async function u({bubble:e,messageId:t,memberId:a,dialogLogger:r=null}={}){if(!e||!t||!a)return;const i="1"===e.getAttribute("data-saved")?"/ajax_privatemode/unsavemessage":"/ajax_privatemode/savemessage";try{const u=await(0,s.h)(i,{data:{idmessage:String(t),idmembre:String(a)}});if(!u||!0!==u.ok)return void r?.debug?.("private mode save toggle failed",u);d(e,{isSaved:Boolean(u.isSaved)});try{(0,o.c)((0,n.t)("privateModeActive"),u.isSaved?(0,n.t)("privateModeMessageSavedToast"):(0,n.t)("privateModeMessageUnsavedToast"))}catch(e){}}catch(e){r?.debug?.("private mode save toggle network error",e)}}function l(e,{document:t=("undefined"!=typeof document?document:null)}={}){if(!e||"function"!=typeof e.on||!t)return i;const a=e=>{const a=(e=>{const t=Number.parseInt(String(e??"").trim(),10);return Number.isFinite(t)&&t>0?t:null})(e?.messageId);if(!a)return;const r=((e,t)=>{if(!e)return null;const a=String(t).replace(/[^0-9]/g,"");return a?e.querySelector(`[data-ephemeral="1"][data-id="${a}"]`):null})(t,a);r&&d(r,{isSaved:Boolean(e?.isSaved)})};return e.on(r.Q.PRIVATE_MODE_MESSAGE_SAVE_1TO1,a),()=>{"function"==typeof e.off&&e.off(r.Q.PRIVATE_MODE_MESSAGE_SAVE_1TO1,a)}}}}]);

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.