PageSourceSearch

https://plainecommune.fr/_assets/e0c6a75b4312172dfffe0ab5547c1bc8/…/stratis-tarteaucitron.bundle.js?1777458924

js plainecommune.fr collected 2026-09-24 09:35:06 UTC 17,077 bytes, 1 lines download raw bytes

1!function(){"use strict";function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(t,e)||_unsupportedIterableToArray(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var t=function cookiesToObject(t){return t.split("!").filter((function(t){return""!==t})).reduce((function(t,e){var n=_slicedToArray(e.split("="),2),r=n[0],o=n[1];return t[r]=o,t}),{})},e=function objectToQueryString(t){var e=Object.keys(t).map((function(e){return t[e]?"".concat(e,"=").concat(t[e].toString()):""})).filter((function(t){return""!==t})).join("&");return e.length?"?".concat(e):""},n=function setCookiePlaceholder(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if("undefined"==typeof tarteaucitron)return r;var o=document.querySelector(".cookies-denied__disclaimer");o||(document.body.insertAdjacentHTML("beforeend",'<p aria-live="polite" class="cookies-denied__disclaimer sr-only"></p>'),o=document.querySelector(".cookies-denied__disclaimer"));var a,i=(a=tarteaucitron.cookie.read().split("!").find((function(e){return e.includes(t)})))?a.split("="):[],c=_slicedToArray(i,2),u=c[1],l=t.replace("stratis-",""),s=function replaceServiceName(t){return t.replace("{serviceName}",l)},d=document.createElement("div");d.innerHTML=tarteaucitron.engage(t);var y=d.querySelector(".tac_float"),f=y.childNodes,p=_slicedToArray(f,2),h=p[1].id,m='\n        <div class="'.concat(e.className," cookies-denied ").concat(t,'">\n            <div class="cookies-denied__content">\n                <p class="cookies-denied__message">').concat(s(tarteaucitron.lang.serviceText),'</p>\n                <button\n                    type="button"\n                    id="').concat(h,'"\n                    aria-label="').concat(s(tarteaucitron.lang.btnAllowTitle),'"\n                    title="').concat(s(tarteaucitron.lang.btnAllowTitle),'"\n                    class="tarteaucitronAllow"\n                >\n                    ').concat(tarteaucitron.lang.btnAllow,'\n                </button>\n                <button\n                    type="button"\n                    id="').concat(h,'"\n                    aria-label="').concat(s(tarteaucitron.lang.btnDenyTitle),'"\n                    title="').concat(s(tarteaucitron.lang.btnDenyTitle),'"\n                    class="tarteaucitronDeny"\
1n                >\n                    ').concat(tarteaucitron.lang.btnDeny,"\n                </button>\n            </div>\n        </div>\n    ");r.insertAdjacentHTML("beforeend",m);var b=r.querySelector(".tarteaucitronDeny"),v=r.querySelector(".cookies-denied__message"),g=function hideBtnDeny(t,e){t.innerHTML=tarteaucitron.lang.refuseCookies,e.classList.add("is-hidden")};return tarteaucitron.addClickEventToElement(b,(function(){tarteaucitron.userInterface.respond(b,!1),_toConsumableArray(document.querySelectorAll(".".concat(t))).forEach((function(t){return g(t.querySelector(".cookies-denied__message"),t.querySelector(".tarteaucitronDeny"))})),v.setAttribute("tabindex","-1"),v.focus(),o.innerHTML=tarteaucitron.lang.refuseCookies})),v.innerHTML=s(tarteaucitron.lang.serviceText),"false"===u&&g(v,b),n?(y.innerHTML="",y.appendChild(r),d.firstElementChild):r.firstElementChild},r=function(){function FancyboxCookie(){_classCallCheck(this,FancyboxCookie);try{this.init()}catch(t){console.error(t)}}return _createClass(FancyboxCookie,[{key:"update",value:function update(){if("undefined"==typeof tarteaucitron)throw new Error("tarteaucitron object does not exists");var e=t(tarteaucitron.cookie.read());!["youtube","vimeo","dailymotion","stratis-youtube","stratis-vimeo","stratis-dailymotion"].some((function(t){return"false"===e[t]||"wait"===e[t]}))&&Object.keys(e).length||tarteaucitron.cookie.create("fancybox",!1)}},{key:"acceptedHandler",value:function acceptedHandler(){}},{key:"deniedHandler",value:function deniedHandler(){tarteaucitron.fallback(["js-fancybox-check-cookies"],(function(e){var r=e.href.match(/youtube|youtu|vimeo|dailymotion/gi);if(r){var o=_slicedToArray(r,1)[0],a=t(tarteaucitron.cookie.read());if("true"===a[o]||"true"===a["stratis-".concat(o)])return e;var i=n("stratis-".concat(o),e);e.parentElement.replaceChild(i,e);var c=i.classList.contains("gallery-item")?i.parentElement.parentElement:i.parentElement;if(c){var u=c.querySelector("a"),l=c.querySelector("button"),s=c.parentElement.querySelector(".js-open-cookie-manager");if(u||c.classList.add("no-links"),l&&c.classList.add("has-blocked-elements"),!s){var d='\n                            <div class="gallery__actions ttc-open-cookie-manager-wrapper">\n                                <button type="button" class="btn is-primary js-open-cookie-manager" onclick="tarteaucitron.userInterface.openPanel
1()">\n                                    '.concat(tarteaucitron.lang["open-cookie-manager-button"],"\n                                </button>\n                            </div>\n                        ");c.insertAdjacentHTML("afterend",d.trim())}}return i}}),!0)}},{key:"addListeners",value:function addListeners(){var t=this;tarteaucitron.loadListeners.push(this.update),["tac.close_panel","tac.root_available"].forEach((function(e){window.addEventListener(e,t.update.bind(t))}))}},{key:"init",value:function init(){var t=this;tarteaucitron.services.fancybox={key:"fancybox",type:"video",name:"FancyboxService",needConsent:!1,cookies:[],js:function js(){return t.acceptedHandler()},fallback:function fallback(){return t.deniedHandler()}},this.addListeners()}}]),FancyboxCookie}(),o=function stringAttr(t,e){return null!=e?"".concat(t,'="').concat(e.toString(),'"'):""},a=function(){function YoutubeCookie(){_classCallCheck(this,YoutubeCookie);try{this.init()}catch(t){console.error(t)}}return _createClass(YoutubeCookie,[{key:"update",value:function update(){}},{key:"addListeners",value:function addListeners(){}},{key:"acceptedHandler",value:function acceptedHandler(){_toConsumableArray(document.querySelectorAll(".js-youtube-player-stratis")).forEach((function(t){var n={videoID:t.getAttribute("videoID"),width:t.getAttribute("width"),height:t.getAttribute("height")};if(!n.videoID)return"";var r=e({theme:t.getAttribute("theme"),rel:t.getAttribute("rel"),controls:t.getAttribute("controls"),showinfo:t.getAttribute("showinfo"),autoplay:t.getAttribute("autoplay"),mute:t.getAttribute("mute")}),a=o("width",n.width),i=o("height",n.height);t.innerHTML='<iframe type="text/html" '.concat(a," ").concat(i,' src="//www.youtube-nocookie.com/embed/').concat(n.videoID+r,'" frameborder="0" allowfullscreen></iframe>')}))}},{key:"deniedHandler",value:function deniedHandler(){_toConsumableArray(document.querySelectorAll(".js-youtube-player-stratis")).forEach((function(t){var e=n("stratis-youtube",t,!0);t.appendChild(e)}))}},{key:"init",value:function init(){var t=this;tarteaucitron.services["stratis-youtube"]={key:"stratis-youtube",type:"video",name:"YouTube",readmoreLink:"https://tarteaucitron.io/fr/service/youtube/",uri:"https://policies.google.com/privacy",needConsent:!0,cookies:["VISITOR_INFO1_LIVE","YSC","PREF","GEUP"],js:function js(){return t.acceptedHandler()},fallback:function fallback(){return t.deniedHandler()}},this.addListeners()}}]),YoutubeCookie}(),i=function(){function VimeoCookie(){_classCallCheck(this,VimeoCookie);try{this.init()}catch(t){console.error(t)}}return _createClass(VimeoCookie,[{key:"update",value:function update(){}},{key:"addListeners",value:function addListeners(){}},{key:"acceptedHandler",value:function acceptedHandler(){_toConsumableArray(document.querySelectorAll(".js-vimeo-player-stratis")).forEach((function(t){var n={videoID:t.getAttribute("videoID")||t.getAttribute("data-videoID"),width:t.getAttribute("width")||t.getAttribute("data-width"),height:t.getAttribute("height")||t.getAttribute("data-height")};if(!n.videoID)return"";var r=e({autopause:t.getAttribute("data-autopause"),autoplay:t.getAttribute("data-autoplay")||t.getAttribute("autoplay"),background:t.getAttribute("data-background"),byline:t.getAttribute("data-byline")||t.getAttribute("byline"),color:t.getAttribute("data-color"),controls:t.getAttribute("data-controls"),loop:t.getAttribute("data-loop")||t.getAttribute("loop"),maxheight:t.getAttribute("data-maxheight"),maxwidth:t.getAttribute("data-maxwidth"),muted:t.getAttribute("data-muted"),playsinline:t.getAttribute("data-playsinline"),speed:t.getAttribute("data-speed"),transparent:t.getAttribute("data-transparent"),portrait:t.getAttribute("data-portrait")||t.getAttribute("portrait"),title:t.getAttribute("data-title")||t.getAttribute("title")}),a=o("width",n.width),i=o("height",n.height);t.innerHTML='<iframe type="text/html" '.concat(a," ").concat(i,' src="//player.vimeo.com/video/').concat(n.videoID+r,'" frameborder="0"  webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')}))}},{key:"deniedHandler",value:function deniedHandler(){_toConsumableArray(document.querySelectorAll(".js-vimeo-player-stratis")).forEac
1h((function(t){var e=n("stratis-vimeo",t,!0);t.appendChild(e)}))}},{key:"init",value:function init(){var t=this;tarteaucitron.services["stratis-vimeo"]={key:"stratis-vimeo",type:"video",name:"Vimeo",readmoreLink:"https://tarteaucitron.io/fr/service/vimeo/",uri:"https://vimeo.com/privacy",needConsent:!0,cookies:["__utmt_player","__utma","__utmb","__utmc","__utmv","vuid","__utmz","player"],js:function js(){return t.acceptedHandler()},fallback:function fallback(){return t.deniedHandler()}},this.addListeners()}}]),VimeoCookie}(),c=function(){function DailymotionCookie(){_classCallCheck(this,DailymotionCookie);try{this.init()}catch(t){console.error(t)}}return _createClass(DailymotionCookie,[{key:"update",value:function update(){}},{key:"addListeners",value:function addListeners(){}},{key:"acceptedHandler",value:function acceptedHandler(){_toConsumableArray(document.querySelectorAll(".js-dailymotion-player-stratis")).forEach((function(t){var n={videoID:t.getAttribute("videoID"),width:t.getAttribute("width"),height:t.getAttribute("height")};if(!n.videoID)return"";var r=e({info:t.getAttribute("showinfo"),autoPlay:t.getAttribute("autoplay")}),a=o("width",n.width),i=o("height",n.height);t.innerHTML='<iframe type="text/html" '.concat(a," ").concat(i,' src="//www.dailymotion.com/embed/video/').concat(n.videoID+r,'" frameborder="0" allowfullscreen></iframe>')}))}},{key:"deniedHandler",value:function deniedHandler(){_toConsumableArray(document.querySelectorAll(".js-dailymotion-player-stratis")).forEach((function(t){var e=n("stratis-dailymotion",t,!0);t.appendChild(e)}))}},{key:"init",value:function init(){var t=this;tarteaucitron.services["stratis-dailymotion"]={key:"stratis-dailymotion",type:"video",name:"Dailymotion",readmoreLink:"https://tarteaucitron.io/fr/service/dailymotion/",uri:"https://www.dailymotion.com/legal/privacy",needConsent:!0,cookies:["ts","dmvk","hist","v1st","s_vi"],js:function js(){return t.acceptedHandler()},fallback:function fallback(){return t.deniedHandler()}},this.addListeners()}}]),DailymotionCookie}(),u=function(){function StratisCookies(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,StratisCookies),this.options={cookieName:"tartaucitron",hashtag:"#tarteaucitron",highPrivacy:!0,bodyPosition:"top",orientation:"bottom",adblocker:!1,showAlertSmall:!1,cookieslist:!1,removeCredit:!0,handleBrowserDNTRequest:!1,AcceptAllCta:!0,moreInfoLink:!0,DenyAllCta:!0,useExternalCss:!0,showIcon:!1,iconPosition:"BottomRight",closePopup:!1,groupServices:!1,customCloserId:"cookies-popup-btn"},this.language=t.language||"fr",this.customText=t.customText||null,this.expireTime=t.expireTime||180,this.expireInDays=t.expireInDays||!0,this.reloadThePage=t.reloadThePage||!1,this.customServices=[r,a,i,c],t instanceof Object&&t.config&&(this.options=this.extendDefaults(this.options,t.config||{})),this.init()}return _createClass(StratisCookies,[{key:"addServices",value:function addServices(t){t.split(",").forEach((function(t){(tarteaucitron.job=tarteaucitron.job||[]).push(t.trim())})),tarteaucitron.job.length&&tarteaucitron.job.forEach((function(t){document.addEventListener("".concat(t,"_added"),StratisCookies.serviceAllowButtonsHandler)}))}},{key:"extendDefaults",value:function extendDefaults(){for(var t=this,e=function isObject(t){return t&&"object"===_typeof(t)},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.reduce((function(n,r){return Object.keys(r).forEach((function(o){var a=n[o],i=r[o];Array.isArray(a)&&Array.isArray(i)?n[o]=a.concat.apply(a,_toConsumableArray(i)):e(a)&&e(i)?n[o]=t.extendDefaults(a,i):n[o]=i})),n}),{})}},{key:"addReloadHandlers",value:function addReloadHandlers(){var t=!1;tarteaucitron.reloadThePage=this.reloadThePage,window.addEventListener("tac.root_available",(function(){var e=_toConsumableArray(document.querySelectorAll(".tarteaucitronCTAButton"));setTimeout((function(){_toConsumableArray(document.querySelectorAll(".tarteaucitronAsk")).forEach((function(e){return e.addEventListener("click",(function(){return t=!0}))}))}),100),e.forEach((function(t){return t.addEventListener("click",(function(){return location.reload()}))}))})),window.addEventListener("tac.open_panel",(function(){window.addEventListener("keyup",(function(e){e.preventDefault(),"Escape"===e.code&&t&&location.reload()}))}))}},{key:"loadSettings",value:function loadSettings(){tarteaucitron.loadListeners=[],void 0!==tarteaucitronForceLanguage&&this.language&&(tarteaucitronForceLanguage=this.language),void 0!==tarteaucitronCustomText&&"object"===_typeof(this.customText)&&(tarteaucitronCustomText=this.customText),void 0!==tarteaucitronForceExpire&&this.expireTime&&(tarteaucitronForceExpire=this.expireTime),void 0!==tarteaucitronExpireInDay&&"boolean"==typeof this.expireInDays&&(tarteaucitronExpireInDay=this.expireInDays),this.addReloadHandlers()}},{key:"loadCustomServices",value:function loadCustomServices(){this.customServices.forEac
1h((function(t){try{new t}catch(e){console.error("".concat(e.message,'. Cookie service "').concat(t,'" unregistered'))}}))}},{key:"loadEventListeners",value:function loadEventListeners(){tarteaucitron.events.load=function(){tarteaucitron.loadListeners.length&&tarteaucitron.loadListeners.forEach((function(t){t()}))}}},{key:"init",value:function init(){try{this.loadSettings(),this.loadCustomServices(),this.loadEventListeners(),tarteaucitron.init(this.options)}catch(t){console.error(t)}}}],[{key:"serviceAllowButtonsHandler",value:function serviceAllowButtonsHandler(){var t=document.getElementById("tarteaucitronRoot");_toConsumableArray(document.querySelectorAll(".tarteaucitronAllow:not(.has-listener)")).filter((function(e){return e&&!t.contains(e)})).forEach((function(t){t.classList.add("has-listener"),t.addEventListener("click",(function(t){t.preventDefault(),location.reload()}))}))}}]),StratisCookies}();window.addEventListener("DOMContentLoaded",(function(){var t="undefined"!=typeof stratisCookieOptions?stratisCookieOptions:{};window.cookieManager=new u(t)}))}();

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.