PageSourceSearch

https://theatredelaconcorde.paris/wp-content/themes/vingtcinq/fc2/js/fc2.min.js?ver=2.5.8

js theatredelaconcorde.paris collected 2026-10-03 23:45:14 UTC 12,624 bytes, 2 lines download raw bytes

1function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)!{}.hasOwnProperty.call(o,n)||(t[n]=o[n])}return t}).apply(null,arguments)}var FC2=(()=>{function c(){this.events={},this.config={readMoreLink:"",readMoreLabel:"",readMoreTarget:"",banner:{title:"",description:"",acceptAllLabel:"",declineAllLabel:"",customizeLabel:""},modal:{title:"",description:"",acceptAllLabel:"",declineAllLabel:"",submitLabel:""},sections:[]},this.acceptKey="accept",this.declineKey="decline",this.bannerId="fc2-banner",this.modalId="fc2-modal",this.toggleClass="fc2-js-toggle",this.checkboxClass="fc2-js-checkbox",this.cookieName="fc2",this.cookieExpiresDays=90,this.bannerInjected=!1,this.modalInjected=!1,this.state={}}return c.prototype.on=function(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)},c.prototype.emit=function(t,e){void 0===e&&(e={});t=this.events[t];t&&t.forEach(function(t){t.call(null,e)})},c.prototype.onAccept=function(t,e){this.on("".concat(t,":").concat(this.acceptKey),e)},c.prototype.onDecline=function(t,e){this.on("".concat(t,":").concat(this.declineKey),e)},c.prototype.emitAccept=function(t){var e=this.getService(t);this.emit("".concat(t,":").concat(this.acceptKey),e)},c.prototype.emitDecline=function(t){var e=this.getService(t);this.emit("".concat(t,":").concat(this.declineKey),e)},c.prototype.emitEventsFromState=function(){var e=this;Object.keys(this.state).forEach(function(t){e.state[t]?e.emitAccept(t):e.emitDecline(t)})},c.prototype.getService=function(e){var n={};return this.config.sections.forEach(function(t){t.services.forEach(function(t){t.key===e&&(n=t)})}),n},c.loadScript=function(t,e){void 0===e&&(e=!0);var n=document.head,o=document.createElement("script");o.async=e,o.src=t,n.appendChild(o)},c.prototype.init=function(t){var e=this;this.config=_extends(this.config,t),"complete"===document.readyState?(this.setStateFromCookie(),this.wasSubmited()||this.showBanner()):window.addEventListener("load",function(){e.setStateFromCookie(),e.wasSubmited()?e.showButton():e.showBanner()})},c.htmlToChildNode=function(t){var e=document.createElement("template"),t=t.trim();return e.innerHTML=t,(e.content||e).firstChild},c.prototype.injectBanner=function(){var t,e,n,o=c.htmlToChildNode('\n      <div class="fc2-banner fc2-wrapper" id="'.concat(this.bannerId,'">\n        <button class="fc2-button fc2-button-close" id="close_modal">\n          <span>Fermer</span>\n          <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n            <path d="M1.39994 13.6538L0.346191 12.6L5.94619 7L0.346191 1.4L1.39994 0.346252L6.99994 5.94625L12.5999 0.346252L13.6537 1.4L8.05369 7L13.6537 12.6L12.5999 13.6538L6.99994 8.05375L1.39994 13.6538Z" fill="#191919"/>\n          </svg>\n        </button>\n      <div class="fc2-header">\n        <p class="fc2-title">').concat(this.config.banner.title,'</p>\n      </div>\n      <div class="fc2-body">\n        <p>').concat(this.config.banner.description,"</p>\n        ").concat(this.getReadMoreLinkHTML(),'\n      </div>\n      <div class="fc2-footer">\n        <div>\n          <button class="fc2-button" id="decline">').concat(this.config.banner.declineAllLabel,'</button>\n          <button class="fc2-button fc2-button-accept" id="accept">').concat(this.config.banner.acceptAllLabel,'</button>\n        </div>\n        <button class="fc2-button fc2-button-customize" id="customize">\n          <span>').concat(this.config.banner.customizeLabel,'</span>\n          <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n            <path class="duration-300 group-hover/post:fill-white" d="M12.627 9.10303H0.5V7.60303H12.627L6.93075 1.90678L8 0.853027L15.5 8.35303L8 15.853L6.93075 14.7993L12.627 9.10303Z" fill="#191919"/>\n          </svg>\n        </button>\n      </div>\n      </div>\n    '));o&&(document.body.appendChild(o),o=this.getCustomizeBannerButtonElement(),t=this.getDeclineBannerButtonElement(),e=this.getAcceptBannerButtonElement(),(n=document.getElementById("close_modal"))&&n.addEventListener("click",function(t){fc2.hideBanner()}),o)&&t&&e&&(o.addEventListener("click",function(t){fc2.showModal(),fc2.hideBanner()}),t.addEventListener("click",function(t){fc2.declineAll(),fc2.hideBanner(),fc2.showButton()}),e.addEventListener("click",function(t){fc2.acceptAll(),fc2.hideBanner(),fc2.showButton()}))},c.prototype.getReadMoreLinkHTML=function(){var t=this.config.readMoreTarget,e=t?' target="'.concat(t,'"'):"",t="_blank"===t?' rel="noopener noreferrer"':"";return'<a class="fc2-link" href="'.concat(this.config.readMoreLink,'"').concat(e).concat(t,">").concat(this.config.readMoreLabel,"</a>")},c.prototype.getServicesHTML=function(t){var n=this;return t.map(function(t){var e=n.state[t.key]?" checked":"";return'\n        <li class="fc2-collapse-item">\n          <div class="fc2-collapse-header">\n            <p class="fc2-title '.concat(n.toggleClass,'"><span class="fc2-collapse-icon"></span>').concat(t.title,'</p>\n            <div class="fc2-switch">\n              <input type="checkbox" name="').concat(t.key,'"').concat(e,' class="').concat(n.checkboxClass,'">\n              <div class="fc2-switch-label"></div>\n            </div>\n          </div>\n          <div class="fc2-collapse-body">\n            <p>').concat(t.description,"</p>\n          </div>\n        </li>\n      ")}).join("\n")},c.prototype.getSectionsHTML=function(){var n=this;return this.config.sections.map(function(t){var e=n.getServicesHTML(t.services);return'\n        <li class="fc2-list-item">\n          <div class="fc2-list-header">\n            <p class="fc2-title">'.concat(t.title,'</p>\n          </div>\n          <div class="fc2-list-body">\n            <ul class="fc2-collapse">\n              ').concat(e,"\n            </ul>\n          </div>\n        </li>\n      ")}).join("\n")}
1,c.prototype.injectModal=function(){var t,e,n,o=c.htmlToChildNode('\n      <div class="fc2-modal fc2-wrapper" id="'.concat(this.modalId,'">\n        <button class="fc2-button fc2-button-close" id="close_settings">\n          <span>Fermer</span>\n          <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n            <path d="M1.39994 13.6538L0.346191 12.6L5.94619 7L0.346191 1.4L1.39994 0.346252L6.99994 5.94625L12.5999 0.346252L13.6537 1.4L8.05369 7L13.6537 12.6L12.5999 13.6538L6.99994 8.05375L1.39994 13.6538Z" fill="#191919"/>\n          </svg>\n        </button>\n        <div class="fc2-header">\n          <p class="fc2-title">').concat(this.config.modal.title,'</p>\n        </div>\n        <div class="fc2-body">\n          <p>').concat(this.config.modal.description,'</p>\n          <ul class="fc2-list">\n            ').concat(this.getSectionsHTML(),"\n          </ul>\n          ").concat(this.getReadMoreLinkHTML(),'\n        </div>\n        <div class="fc2-footer">\n          <div>\n            <button class="fc2-button" id="decline_modal">').concat(this.config.modal.declineAllLabel,'</button>\n            <button class="fc2-button fc2-button-accept" id="accept_modal">').concat(this.config.modal.acceptAllLabel,'</button>\n          </div>\n          <button class="fc2-button fc2-button-customize" id="submit_modal">\n            <span>\n              ').concat(this.config.modal.submitLabel,'\n            </span>\n            <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n              <path class="duration-300 group-hover/post:fill-white" d="M12.627 9.10303H0.5V7.60303H12.627L6.93075 1.90678L8 0.853027L15.5 8.35303L8 15.853L6.93075 14.7993L12.627 9.10303Z" fill="#191919"/>\n            </svg>\n          </button>\n        </div>\n      </div>\n    '));o&&(document.body.appendChild(o),o=this.getAcceptModalButtonElement(),t=this.getDeclineModalButtonElement(),e=this.getSubmitModalButtonElement(),(n=document.getElementById("close_settings"))&&n.addEventListener("click",function(t){fc2.hideModal()}),o)&&t&&e&&(o.addEventListener("click",function(t){fc2.acceptAll(),fc2.hideModal(500),fc2.showButton()}),t.addEventListener("click",function(t){fc2.declineAll(),fc2.hideModal(500),fc2.showButton()}),e.addEventListener("click",function(t){fc2.submit(),fc2.hideModal(500),fc2.showButton()})),this.bindItemToggle()},c.prototype.bindItemToggle=function(){for(var t=document.getElementsByClassName(this.toggleClass),e=0;e<t.length;e++)t[e].addEventListener("click",function(){this.parentNode&&this.parentNode.parentNode&&this.parentNode.parentNode.classList.toggle("active")})},c.prototype.getBannerElement=function(){return document.getElementById(this.bannerId)},c.prototype.getCustomizeBannerButtonElement=function(){return document.getElementById("customize")},c.prototype.getAcceptBannerButtonElement=function(){return document.getElementById("accept")},c.prototype.getShowBannerButtonElement=function(){return document.getElementById("show-banner")},c.prototype.getDeclineBannerButtonElement=function(){return document.getElementById("decline")},c.prototype.getModalElement=function(){return document.getElementById(this.modalId)},c.prototype.getAcceptModalButtonElement=function(){return document.getElementById("accept_modal")},c.prototype.getDeclineModalButtonElement=function(){return document.getElementById("decline_modal")},c.prototype.getSubmitModalButtonElement=function(){return document.getElementById("submit_modal")},c.prototype.showButton=function(){var t=this.getShowBannerButtonElement();setTimeout(function(){t&&null!=t&&t.classList.add("active")},300)},c.prototype.hideButton=function(){var t=this.getShowBannerButtonElement();t&&t.classList.remove("active")},c.prototype.showBanner=function(){this.bannerInjected||(this.injectBanner(),this.bannerInjected=!0);var t=this.getBannerElement();setTimeout(function(){t&&t.classList.add("active")},300)},c.prototype.hideBanner=function(){var t=this.getBannerElement();t&&t.classList.remove("active")},c.prototype.showModal=function(){this.modalInjected||(this.injectMod
1al(),this.modalInjected=!0);var t=this.getModalElement();setTimeout(function(){t&&t.classList.add("active")},300)},c.prototype.hideModal=function(t){var e=this;void 0===t&&(t=0),setTimeout(function(){var t=e.getModalElement();t&&t.classList.remove("active")},t)},c.prototype.setCookie=function(t){void 0===t&&(t="");var e=new Date,e=(e.setTime(e.getTime()+24*this.cookieExpiresDays*60*60*1e3),e.toUTCString());document.cookie="".concat(this.cookieName,"=").concat(t,"; expires=").concat(e,"; path=/")},c.prototype.deleteCookie=function(){var t=new Date,t=(t.setTime(t.getTime()-864e5),t.toUTCString());document.cookie="".concat(this.cookieName,"=; expires=").concat(t,"; path=/")},c.prototype.getCookie=function(){var n="".concat(this.cookieName,"="),t=document.cookie.split(";"),o="";return t.forEach(function(t){for(var e=t;" "===e.charAt(0);)e=e.substring(1,t.length);0===e.indexOf(n)&&(o=e.substring(n.length,e.length))}),o},c.prototype.setStateFromCookie=function(){var t=this.getCookie();t&&(this.state=t.split("|").reduce(function(t,e){e=e.split("=");return t[e[0]]=!!+e[1],t},{}),this.emitEventsFromState())},c.prototype.setCookieFromState=function(){var o=this,t=Object.keys(this.state).reduce(function(t,e){var n=o.state[e]?1:0;return t.push("".concat(e,"=").concat(n)),t},[]).join("|");this.setCookie(t),this.emitEventsFromState()},c.prototype.wasSubmited=function(){return 0<Object.keys(this.state).length},c.prototype.isAccepted=function(t){return this.state[t]||!1},c.prototype.isDeclined=function(t){return!this.isAccepted(t)},c.prototype.acceptAll=function(){var e=this,t=document.getElementsByClassName(this.checkboxClass);if(0<t.length)for(var n=0;n<t.length;n++){var o=t[n].getAttribute("name");t[n].checked=!0,o&&(this.state[o]=!0)}else this.config.sections.forEach(function(t){t.services.forEach(function(t){e.state[t.key]=!0})});this.setCookieFromState()},c.prototype.declineAll=function(){var e=this,t=document.getElementsByClassName(this.checkboxClass);if(0<t.length)for(var n=0;n<t.length;n++){var o=t[n].getAttribute("name");t[n].checked=!1,o&&(this.state[o]=!1)}else this.config.sections.forEach(function(t){t.services.forEach(function(t){e.state[t.key]=!1})});this.setCookieFromState()},c.prototype.submit=function(t){void 0===t&&(t=!1);for(var e=document.getElementsByClassName(this.checkboxClass),n=0;n<e.length;n++){var o=e[n].getAttribute("name"),c=e[n].checked;o&&(this.state[o]=c||t)}this.setCookieFromState()},c})(),fc2=new FC2;
2//# sourceMappingURL=fc2.min.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.