@20minutes/tyr 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/horoscopePage-mobile-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
- package/dist/index.es.js +212 -210
- package/dist/index.umd.js +2 -2
- package/dist/js/cmp.min.js +1 -1
- package/dist/js/main.min.js +2 -2
- package/dist/src/assets/thirdParties/dmp/cookieHandler.d.ts +1 -0
- package/dist/src/types/graphql.d.ts +1 -1
- package/package.json +17 -17
package/dist/js/cmp.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";const e=e=>{const n=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&n.push(`domain=${e.domain}`),document.cookie=n.join("; ")},
|
|
1
|
+
!function(){"use strict";const e=e=>{const n=document.cookie.split(";").filter((n=>-1!==n.indexOf(e)))[0];return n?n.split("=")[1]:"{}"},n=e=>{const n=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&n.push(`domain=${e.domain}`),document.cookie=n.join("; ")},o=e=>{document.cookie.split(";").map((e=>e.split("=")[0].trim())).filter((n=>-1===e.indexOf(n))).forEach((e=>{const{hostname:o}=window.location;n({name:e}),n({name:e,domain:o.substring(o.indexOf(".")+1)}),n({name:e,domain:o.substring(o.indexOf("."))}),n({name:e,domain:`.${o}`})}))},i=e=>{for(let n=0;n<sessionStorage.length;n+=1){const o=sessionStorage.key(n);o&&-1===e.indexOf(o)&&sessionStorage.removeItem(o)}},t=e=>{for(let n=0;n<localStorage.length;n+=1){const o=localStorage.key(n);o&&-1===e.indexOf(o)&&localStorage.removeItem(o)}},s=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_token","euconsent-v2","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_service_login_newrelic_com_tokens","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm"],d=["_vf_sid","consent_validity_date","20mn-articlesSaved","20mn-font","closedInfo","20mn-known-user","20mn-block-links","20mnBreakingNewsBanner","20mnBreakingNews","20mnAppBanner","20mn-visits-content","20minutes-font"],a=["vfThirdpartyCookiesEnabled","com.batch.sessionId","loadIntrasticial"],r=e=>{if(e.getUserConsentStatusForPurpose("activation-gGierZpp")){Array.from(document.getElementsByClassName("cmp-placeholder")).forEach((e=>{e.classList.add("u-hidden")}));Array.from(document.getElementsByClassName("embed-wrapper")).forEach((e=>{e.classList.remove("u-hidden"),e.querySelectorAll("[data-src]").forEach((e=>{const n=e.getAttribute("data-src");n&&(e.setAttribute("src",n),e.removeAttribute("data-src"))}))}))}else{Array.from(document.getElementsByClassName("cmp-placeholder")).forEach((e=>{e.classList.remove("u-hidden")}))}},c=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push((e=>{r(e)})),window.didomiEventListeners.push({event:"consent.changed",listener(){r(window.Didomi)}}),document.querySelectorAll(".embed-placeholder").forEach((e=>{e.addEventListener("click",(e=>{const n=e.target;if(!(n instanceof HTMLElement&&n.closest(".cmp-button")))return;e.preventDefault(),window.didomiOnReady.push((()=>{(()=>{const e=window.Didomi.openTransaction();e.enablePurpose("activation-gGierZpp"),window.sessionStorage.setItem("cmpModal","accepted"),e.commit(),r(window.Didomi)})()}));const o=n.closest(".embed-placeholder");o instanceof HTMLElement&&o.focus()}))}))},m=()=>{window.didomiEventListeners.push({event:"consent.changed",listener(){if(n="mics_vid",-1===document.cookie.indexOf(n))return;var n;const o=e("mics_vid");!window.Didomi.getUserConsentStatusForPurpose("publicite-Nfb9aWMW")&&o&&fetch("https://splash.20minutes.fr/consent",{headers:{"Content-Type":"application/json"},referrerPolicy:"strict-origin-when-cross-origin",method:"POST",body:JSON.stringify({account_id:`mum:${o}`})})}})},l=()=>{window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{window.ATTag&&"optout"!==window.ATTag.privacy.getVisitorMode().name&&(window.ATTag.privacy.setVisitorMode("cnil","exempt"),window.Didomi.getUserConsentStatusForPurpose("mesureda-6qyqaZXC")&&window.ATTag.privacy.setVisitorOptin())}}),m()};window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push((()=>{let e=new Date;const n=e.getTimezoneOffset();e=new Date(e.getTime()-60*n*1e3);const r=e.toISOString().split("T")[0],c=localStorage.getItem("consent_validity_date");c&&r>c&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,o(s),t(d),i(a),window.Didomi.notice.show())})),l(),window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const n=e("euconsent-v2"),r=window.cmpVariables.consentEventsCount>0||!!n,c=!window.Didomi.getUserConsentStatusForPurpose("cookies"),m=window.sessionStorage.getItem("cmpModal");r&&!m&&(c&&(o(s),t(d),i(a)),setTimeout((()=>{window.location.reload()}))),m&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}}),window.didomiEventListeners.push({event:"notice.clickagree",listener:()=>{console.log("notice.clickagree")}}),window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:()=>{console.log("notice.clickmoreinfo")}}),window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{console.log("notice.clickdisagree")}}),c(),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push((()=>{const e=document.getElementById("choice-consent");e&&window?.Didomi?.preferences?.show&&e.addEventListener("click",(()=>{window.Didomi.preferences.show()}))})),setTimeout((()=>{window.Didomi.getUserConsentStatusForPurpose("cookies")||o(s)}),3e4)}();
|