PageSourceSearch

https://www.vidalfrance.com/assets/js/cmp.js?v=202610061112

js vidalfrance.com collected 2026-10-06 13:41:01 UTC 5,188 bytes, 2 lines download raw bytes

1window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push((function(e){var o="vidalfran-ZHDJiNYp",n="mesureda-prrpyALM";function t(){try{var t,i;if(!window.pa||!pa.consent)return void console.warn("[Piano] Piano Analytics not available");var s=null;try{var r=pa.consent.getByPurpose&&pa.consent.getByPurpose();s=r&&r.AM?r.AM.mode:null}catch(e){s=null}var p=e.getCurrentUserStatus(),l=(!p.vendors||null===(t=p.vendors[o])||void 0===t||t.enabled,!(!p.purposes||null===(i=p.purposes[n])||void 0===i||!i.enabled)),d=e.shouldConsentBeCollected(),u=!(!l||d),c=(d||!p.purposes||!p.purposes.hasOwnProperty(n)||p.purposes[n].enabled,!d&&p.purposes&&p.purposes.hasOwnProperty(n)&&p.purposes[n].enabled,"true"===localStorage.getItem("pianoOptOut"));if(c&&l){console.log("[Piano] User re-enabled tracking - clearing opt-out flag");try{localStorage.removeItem("pianoOptOut")}catch(e){console.warn("[Piano] Could not remove opt-out flag:",e)}}else if(c&&!l)return console.log("[Piano] User has opted out - switching to OPT-OUT mode (GDPR Art. 21)"),pa.consent.setByPurpose("AM","opt-out"),window.pianoConsentMode="opt-out",window.pianoCanTrack=!0,window.pianoConsentChecked=!0,void(("opt-out"!==s&&!0!==window.pianoPageViewSent||null===s&&!0!==window.pianoPageViewSent)&&(window.pianoPageViewSent=!1,a()));var w=u?"opt-in":"exempt";try{pa.consent&&"function"==typeof pa.consent.setByPurpose&&pa.consent.setByPurpose({AM:{mode:w}})}catch(e){console.warn("[Piano] Could not set Piano consent mode via API:",e)}window.pianoCanTrack=!0,window.pianoConsentChecked=!0,window.pianoConsentMode=w,(s!==w&&!0!==window.pianoPageViewSent||null===s&&!0!==window.pianoPageViewSent)&&(window.pianoPageViewSent=!1,a())}catch(e){console.warn("[Piano] Error in updatePianoConsentStatus:",e)}}function a(){try{window.dispatchEvent(new CustomEvent("pa:sendPageView"))}catch(e){console.warn("[Piano] Could not dispatch page view event:",e)}}function i(){console.log("[Piano] Processing opt-out (user exercising right to object - GDPR Art. 21)..."),localStorage.setItem("pianoOptOut","true");var o=e.openCurrentUserStatusTransaction(),n=e.getCurrentUserStatus();Object.keys(n.vendors||{}).filter((function(e){var o;return null===(o=n.vendors[e])||void 0===o?void 0:o.enabled})).forEach((function(e){o.disableVendor(e)})),Object.keys(n.purposes||{}).filter((function(e){var o;return null===(o=n.purposes[e])||void 0===o?void 0:o.enabled})).forEach((function(e){o.disablePurpose(e)})),o.commit(),pa.consent.setByPurpose("AM","opt-out"),window.pianoConsentMode="opt-out",window.pianoCanTrack=!0,window.pianoConsentChecked=!0,console.log("[Piano] Opt-out processed - Switched to OPT-OUT mode (visitor_privacy_mode = 'opt-out')"),window.pianoPageViewSent=!1,a()}function s(){document.getElementById("optout-piano")&&console.log("[Piano] Opt-out button found (#optout-piano)"),window.dataLayer=window.dataLayer||[];var e=window.dataLayer.push;window.dataLayer.push=function(){for(var o,n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return"opt-out"===(null===(o=t[0])||void 0===o?void 0:o.event)&&(console.log("[Piano] Opt-out event detected from dataLayer"),i()),e.apply(this,t)}}if(window.pdl=window.pdl||{},window.pdl.consent_items={PA:{properties:{av_content_id:"essential",av_content:"essential",av_content_type:"essential",av_content_duration:"essential",av_duration:"essential",av_publication_date:"essential",av_author:"essential",av_broadcasting_type:"essential",av_position:"essential",av_previous_event:"essential",av_previous_position:"essential",av_session_id:"essential",application_version:"essential",application_type:"essential",page_url:"essential",external_url:"essential",download_url:"essential",goal_type:"essential"},events:{"av.play":"essential","av.pause":"essential","av.stop":"essential","av.resume":"essential","av.start":"essential"}}},e.on("notice.hidden",(function(){var a,i,s=e.getCurrentUserStatus(),r=(null===(a=s.vendors[o])||void 0===a?void 0:a.enabled)||!1,p=(null===(i=s.purposes[n])||void 0===i?void 0:i.enabled)||!1,l="true"===localStorage.getItem("pianoOptOut");r||l||p||(console.log("[Piano] User continued without accepting - using exempt mode (legitimate interest)"),t())})),e.on("consent.changed",(function(){var a,i,s=e.getCurrentUserStatus(),r=(null===(a=s.vendors[o])||void 0===a?void 0:a.enabled)||!1,p=(null===(i=s.purposes[n])||void 0===i?void 0:i.enabled)||!1;r&&p&&"true"===localStorage.getItem("pianoOptOut")&&localStorage.removeItem("pianoOptOut"),t()})),"true"===localStorage.getItem("pianoOptOut"))t();else if(e.shouldConsentBeCollected())try{window.pianoCanTrack=!0,window.pianoConsentChecked=!0,window.pianoConsentMode="exempt",t()}
1catch(e){console.error("[Piano] Error configuring essential mode:",e)}else t();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s(),window.pianoOptOut=i,window.pianoOptIn=function(){console.log("[Piano] Processing opt-in (revoking opt-out)..."),localStorage.removeItem("pianoOptOut");var t=e.openCurrentUserStatusTransaction();t.enableVendor(o),t.enablePurpose(n),t.enablePurpose("cookies"),t.commit(),console.log("[Piano] Opt-in complete")}}));
2//# sourceMappingURL=cmp.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.