PageSourceSearch

https://entreprise.cmso.com/plugins/GestionCookiesCNILPlugin/js/bundle.js

js cmso.com collected 2026-10-01 13:51:44 UTC 10,027 bytes, 1 lines download raw bytes

1!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2)}([function(t,e,r){(e=r(1)(!1)).push([t.i,":host{--background-color:var(--cnil-background-color,#616161);--font-color:var(--cnil-font-color,#fff);--btn-background-color:var(--cnil-background-color,#ddd);--btn-background-color-hover:var(--cnil-background-color,#e6e6e6);--btn-text-color:var(--cnil-btn-text-color,#616161);--btn-border-radius:var(--cnil-btn-border-radius,3px);--link-text-color:var(--cnil-link-text-color,#fff)}.c-cnil{display:flex;position:fixed;width:100%;bottom:0;left:0;right:0;transform:translateY(100%) translateZ(0);z-index:1000;background-color:var(--background-color);color:var(--font-color);padding:5px 10px;align-items:center;justify-content:center;transition:all .25s ease-out;opacity:0;box-sizing:border-box}.c-cnil.is-visible{transform:translateX(0) translateZ(0);opacity:1}.c-cnil__button{position:relative;margin-left:20px;text-align:center;padding:10px 30px;border-radius:3px;outline:none;border:none;cursor:pointer;color:var(--btn-text-color);background-color:var(--btn-background-color)}.c-cnil__button:focus,.c-cnil__button:hover{background-color:var(--btn-background-color-hover)}::slotted(a){color:var(--link-text-color)!important;text-decoration:underline!important}",""]),t.exports=e},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var o=(a=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(i).concat([o]).join("\n")}var a,s,c;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),e.push(c))}},e}},function(t,e,r){"use strict";r.r(e);var n=t=>{for(var e=[],r=null;(r=null===r?t:Object.getPrototypeOf(r))&&r.constructor&&r.constructor!==HTMLElement&&r.constructor!==Function&&r.constructor!==Object&&r.constructor!==r.constructor.constructor;)e.push(r);return e},o=t=>{for(var e=[],r=null;(r=null===r?t:Object.getPrototypeOf(r))&&r!==HTMLElement&&r!==Function&&r!==Object&&r!==r.constructor;)e.push(r);return e},i="";document.currentScript&&document.currentScript.src&&(i=document.currentScript.src.replace("/bundle.js",""));class a extends HTMLElement{setBooleanClass(t,e,r){var n=r||this.container;t?n.classList.add(e):n.classList.remove(e)}setBooleanAttr(t,e,r){var n=r||this.container;t?n.setAttribute(e,"true"):n.removeAttribute(e)}get uxLibUrl(){return i}get navigator(){return e=navigator.userAgent,r=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(r[1])?"IE "+((t=/\brv[ :]+(\d+)/g.exec(e)||[])[1]||""):"Chrome"===r[1]&&null!=(t=e.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&r.splice(1,1,t[1]),{name:r[0],version:r[1]});var t,e,r}}function s(t,e,r){switch(r){case"boolean":return{get:()=>t.hasAttribute(e)&&"false"!=t.getAttribute(e),set:r=>{"false"===r||!1===r||null==r||0===r||"0"===r?t.setAttribute(e,!1):"true"===r||!0===r||"1"===r||1===r||""===r?t.setAttribute(e,!0):console.error("Error when you set value")}};case"string":case"number":return{get:()=>t.getAttribute(e),set:r=>{t.setAttribute(e,r)}}}}function c(t,e){var r={},n=!0,o=!1,i=void 0;try{for(var a,s=[...e].reverse()[Symbol.iterator]();!(n=(a=s.next()).done);
1n=!0){var c=a.value;c.hasOwnProperty(t)&&(r=Object.assign(r,c[t]))}}catch(l){o=!0,i=l}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}function l(t,e){var r={},n=!0,o=!1,i=void 0;try{for(var a,s=[...e].reverse()[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value;c.constructor.hasOwnProperty(t)&&(r=Object.assign(r,c.constructor[t]))}}catch(l){o=!0,i=l}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}function u(t){var e=t.split("-");return"data"===e[0]&&e.shift(),e.reduce((t,e,r)=>t+(r>0?e.charAt(0).toUpperCase()+e.slice(1):e),"")}function p(t){return t.split(/(?=[A-Z])/).join("-").toLowerCase()}var d=t=>{var e=[],r=!0,n=!1,o=void 0;try{for(var i,a=[...t].reverse()[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;s.constructor.hasOwnProperty("style")&&e.push(s.constructor.style)}}catch(c){n=!0,o=c}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return e};var h=t=>{var e=[],r=!0,n=!1,o=void 0;try{for(var i,a=[...t].reverse()[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;s.hasOwnProperty("template")&&e.push(s.template)}}catch(c){n=!0,o=c}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return e};class f extends(function(t){return class extends t{constructor(){super();var t=n(Object.getPrototypeOf(this)),e=h(t);0!==e.length&&(this.$?(this.$.appendChild(e[e.length-1].bind(this)().content.cloneNode(!0)),this.container=this.$.querySelector(".js-container")||this,this._slots=this.$.querySelectorAll("slot")):(this.appendChild(e[e.length-1].bind(this)().content.cloneNode(!0)),this.container=this.querySelector(".js-container")||this))}}}(function(t){return class extends t{constructor(){super();var t=n(Object.getPrototypeOf(this)),e=d(t),r=document.createElement("template");r.innerHTML="<style>".concat(e.join(""),"</style>"),this.$&&(window.ShadyCSS&&ShadyCSS.prepareTemplate(r,this.tagName.toLowerCase()),this.$.appendChild(r.content.cloneNode(!0)))}connectedCallback(){super.connectedCallback&&super.connectedCallback(),window.ShadyCSS&&ShadyCSS.styleElement(this)}}}(function(t){return class extends t{constructor(){super(),this.attachShadow({mode:"open"}),this.$=this.shadowRoot}}}(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"properties";class r extends t{static get observedAttributes(){var t=[],r=c(e,o(this));return Object.keys(r).filter(e=>{var n=r[e].attributeName;n?e!==n&&t.push(n):t.push(p(e))}).concat(t,super.observedAttributes||[])}constructor(){super(),this.protoTree=n(Object.getPrototypeOf(this)),this.propsConfig=l(e,this.protoTree),Object.keys(this.propsConfig).forEach(t=>{var e=this[t];Object.defineProperty(this,t,s(this,this.getAttrNameFromJs(t),this.propsConfig[t].type)),void 0!==e&&(this[t]=e)})}connectedCallback(){super.connectedCallback&&super.connectedCallback(),Object.keys(this.propsConfig).forEach(t=>{var e=this.getAttribute(this.getAttrNameFromJs(t));null!=e?this[t]!=e&&(this[t]=e):(this.propsConfig[t].defaultValue||0===this.propsConfig[t].defaultValue||""===this.propsConfig[t].defaultValue)&&this[t]!=this.propsConfig[t].defaultValue&&(this[t]=this.propsConfig[t].defaultValue)})}getJsNameFromAttr(t){if(this.propsConfig[u(t)])return u(t);for(var e=Object.keys(this.propsConfig),r=0,n=e.length;r<n;r++)if(this.propsConfig[e[r]].attributeName&&this.propsConfig[e[r]].attributeName===t)return e[r]}getAttrNameFromJs(t){return this.propsConfig[t].attributeName?this.propsConfig[t].attributeName:p(t)}}return r}(a))))){}var b=f,v=document.createElement("template");v.innerHTML='\n<aside class="c-cnil js-container">\n<p class="c-cnil__content"><slot></slot></p>\n<button class="c-cnil__button" aria-label="Accepter les cookies et poursuivre votre navigation sur ce site">J\'accepte</button>\n</aside>\n';var g=r(0),m=r.n(g),y=class extends b{static get properties(){return{cookieName:{type:"string",defaultValue:"trackingAccepted"},cookieDuration:{type:"number",defaultValue:"365"},cookiePath:{type:"string",defaultValue:"/"}}}template(){return v}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.style.display="none",this.initCnil()}getCookie(t){for(var e=t+"=",r=decodeURIComponent(document.cookie).split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return!1}deleteCookie(t){document.cookie=t+"=false; Max-Age=-99999999;"}setCookie(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3);var a=t+"="+e+";"+("expires="+i.toUTCString())+";path="+n;o&&(a+=";domain="+o),document.cookie=a}initCnil(){var t=this.getCookie(this.cookieName);t&&"true"===t||this.show()}gtmUpdate(t,e){t[e]=t[e]||[],t[e].push({event:"click-accept-tracking"})}show(){var t=this.$.querySelector(".c-cnil__button");this.style.display="",this.container.classList.add("is-visible"),t.addEventListener("click",()=>{this.setCookie(this.cookieName,"true",this.cookieDuration,this.cookiePath),this.gtmUpdate(window,"dataLayer"),this.hide()})}hide(){this.container.classList.remove("is-visible"),setTimeout(()=>{this.style.display="none"},400)}};customElements.define("ux-cnil",class extends y{static get style(){return m.a.toString()}})}]);

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.