PageSourceSearch

https://www.saxvcharente.fr/wp-content/cache/min/1/weez.js?ver=1783602514

js saxvcharente.fr collected 2026-09-24 10:11:40 UTC 16,914 bytes, 7 lines download raw bytes

1!function(){"use strict";class e{constructor(e,t,i,n,s){this.id=e,this.origin=t,this.type=i,this.payload=n,this.event=s}toString(){return JSON.stringify(this)}toJSON(){const e={...this};return delete e.event,e}static fromEvent(e){const{data:t,origin:i}=e;return new this(t.id,t.origin||i,t.type||"unknown",t.payload||t,e)}}class t{constructor(e){this.window=window.self!==window.top?e.parent:e.contentWindow,this.waiting_answers={}}send(t,{needs_answer:i=!1,timeout:n=500}={}){if(i)return new Promise((i,s)=>{const r=(268435456*Math.random()).toString(16),o=new e(r,t.origin,t.type,t.payload,t.event),a=setTimeout(()=>s(),n);this.waiting_answers[r]=e=>{clearTimeout(a),i(e),delete this.waiting_answers[r]},this.window.postMessage(o,"*")});this.window.postMessage(t,"*")}register(e){const t=t=>{t.source===this.window.parent&&e(t,this.window)};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)}listen(){window.addEventListener("message",t=>{if(t.source===this.window.parent){let i=e.fromEvent(t);if(i.id&&i.id in this.waiting_answers)return void this.waiting_answers[i.id](i)}})}}function i(e,t={}){try{let i=new URL(e),s=new URLSearchParams(i.searchParams),o=new URLSearchParams(window.location.search);const a=window.location.hash.split("#").filter(e=>e.startsWith("weez_"));for(let[e,t]of s.entries())o.set(e,t);for(let e of n){const t=r(e);t&&o.set(e,t)}for(let[e,i]of Object.entries(t))o.set(e,i);return i.search=o,a.length&&(i.hash+="#"+a.join("#")),i.toString()}catch(e){}return e}const n=["utm_source","utm_campaign","utm_medium","utm_term","utm_content","o"];function s(e,t,i=2592e6){if(n.includes(e)){const n={expiry:Date.now()+i,value:t};localStorage.setItem(`wz_${e}`,JSON.stringify(n))}}function r(e){const t=localStorage.getItem(`wz_${e}`);if(!t)return null;const i=JSON.parse(t);return Date.now()>i.expiry?(localStorage.removeItem(`wz_${e}`),null):i.value}function o(){const e=navigator.userAgent.match(/chrom(?:e|ium)\/(\d+)\./i);return!(!e||window.location.host.includes("weezevent.com"))&&108===parseInt(e[1],10)}class a{static handles=[{type:"redirect",callback:({payload:e})=>{const t=e&&e.url;t&&(window.location.href=t)}},{type:"piglet-info",callback:({id:e},t)=>{e&&t.iframe.contentWindow.postMessage({id:e,type:"piglet",payload:{version:"0.0.0-20f1b01",features:a.handles.map(e=>e.type)}},"*")}}];constructor(e){this.tag=e,this.container=null,this.handlers={},this.iframe=null}registerHandles(){const t=a.handles,i=this.handles||this.constructor.handles,n=[...t.filter(e=>!i.some(t=>t.type===e.type)),...i];for(const e of n)this.on(e.type,e.callback);window.addEventListener("message",t=>{if(t.source===this.iframe.contentWindow){let i=e.fromEvent(t);this.handle(i)}})}on(e,t){this.handlers[e]=this.handlers[e]||[],this.handlers[e].push(t)}handle(e){if(this.handlers[e.type])for(const t of this.handlers[e.type])t(e,this)}shouldUseContainer(){return"div"!==this.tag.parentNode.tagName.toLowerCase()||this.getDataset().useContainer||o()}getDataset(){return this.tag.dataset||{}}getContainer(){if(this.container)return this.container;const e=this.tag.parentNode;return this.shouldUseContainer()?(this.container=document.createElement("div"),this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",o()&&(this.container.style.maxHeight="100vh"),e.appendChild(this.container),this.container):(this.container=e,e)}render(){this.iframe=this.buildIframe(),this.parseSafeAreaAttributes(),this.inject(),this.prune()}parseSafeAreaAttributes(){const e=this.getDataset(),t={};if(e.safeAreaTop){const i=parseInt(e.safeAreaTop,10);Number.isFinite(i)&&(t.top=i)}
2if(e.safeAreaLeft){const i=parseInt(e.safeAreaLeft,10);Number.isFinite(i)&&(t.left=i)}if(e.safeAreaBottom){const i=parseInt(e.safeAreaBottom,10);Number.isFinite(i)&&(t.bottom=i)}if(e.safeAreaRight){const i=parseInt(e.safeAreaRight,10);Number.isFinite(i)&&(t.right=i)}Object.keys(t).length>0&&(this.safeArea=t)}getAttributes(){return{src:this.getDataset().src||this.tag.href}}buildIframe(){const e=document.createElement("iframe"),t=this.getAttributes();for(let i in t)t[i]&&e.setAttribute(i,t[i]);return e}inject(){this.getContainer().appendChild(this.iframe),this.registerHandles()}
3prune(){this.tag.parentNode.removeChild(this.tag)}}var l;!function(e){e.AUTO_RESIZE_SYN="piglet-widget-auto-resize-syn",e.AUTO_RESIZE_ACK="piglet-widget-auto-resize-ack",e.AUTO_RESIZE_CHANGE_DIMENSIONS="piglet-widget-auto-resize-change-dimensions"}(l||(l={}));class c extends a{getAttributes(){const e=this.getDataset();return{src:e.iframeSrc||this.tag.href,inlineSize:e.iframeWidth||"100%",scrolling:"no",frameBorder:"0"}}}c.type="autoResize",c.handles=[{type:l.AUTO_RESIZE_SYN,callback:(e,i)=>{new t(i.iframe).send({type:l.AUTO_RESIZE_ACK,page:window.location.href,referrer:document.referrer})}},{type:l.AUTO_RESIZE_CHANGE_DIMENSIONS,callback:({payload:e},t)=>
3{e&&("inlineSize"in e&&(t.iframe.style.inlineSize=`${e.inlineSize}px`),"blockSize"in e&&(t.iframe.style.blockSize=`${e.blockSize}px`))}}];class d{constructor(e,t){this.type=e,this.callback=t}}const h=new d("resize",({type:e,origin:t,payload:i,event:n},s)=>{"1"===s.iframe.getAttribute("resize")&&(s.iframe.height=i.height,s.iframe.style.height&&(s.iframe.style.height=`${i.height}px`))}),g=new d("parent-url",({id:t,type:i,origin:n,payload:s,event:r},o)=>{if(!t)return void console.error("Id is missing but it's required");const a=new e(t,i,"piglet",{parentUrl:window.location.href},r);o.iframe.contentWindow.postMessage(a.toJSON(),"*")}),f=new d("clean-url-params",({id:e,type:t,origin:i,payload:n,event:s},r)=>{const o=new URL(window.location.href),a=new URLSearchParams(o.search),{paramsKeys:l=[]}=n;l.forEach(e=>{a.delete(e)}),o.search=a;const c=o.toString();window.history.pushState({path:c},"",c)}),w=new d("scroll",({type:e,origin:t,payload:i,event:n},s)=>{const r=s.iframe.getBoundingClientRect();window.scrollTo(0,window.scrollY+r.top+i.top)});function p(e,t){let i=new URLSearchParams(window.location.search);window.addEventListener("load",()=>{if("1"===i.get("scrollToWeezWidget")){let i=function(e){let t=[0,0];if(e.offsetParent)for(t[0]+=e.offsetLeft,t[1]+=e.offsetTop;e.offsetParent;)e=e.offsetParent,t[0]+=e.offsetLeft,t[1]+=e.offsetTop;return t}(e);window.scrollTo({top:i[1]-10,left:i[0],behavior:"smooth"}),"function"==typeof t&&t()}})}const u=new d("PingPong",({type:e,origin:i,payload:n,event:s},r)=>{if(console.log("HOST: ping/pong",n),"ping"===n){new t(r.iframe).send("PONG")}});const m={global:null,widgets:{}};function y(e){if(!e)return{};if("number"==typeof e)return{top:e};if("object"==typeof e){const t={};return void 0!==e.top&&(t.top=e.top),void 0!==e.left&&(t.left=e.left),void 0!==e.bottom&&(t.bottom=e.bottom),void 0!==e.right&&(t.right=e.right),t}return{}}function v(e,t={}){const i=e?m.widgets[e]:{};return{top:0,left:0,bottom:0,right:0,...t,...m.global??{},...i}}
4const b=["analytics-activated","marketing-activated","personalization-activated","uncategorized-activated","essential-activated"];class S{constructor(e,t=1e3,i=null){this.intervalHandle=null,this.onConsentChange=e,this.observedConsentUpdates=new WeakSet,this.checkInterval=t,this.log=i,this.lastScannedIndex=0}observe(){this.intervalHandle||(this.log?.("Starting GTM consents observer..."),this.#e(!0),this.intervalHandle=setInterval(()=>this.#e(),this.checkInterval))}dispose(){this.intervalHandle&&(this.log?.("Stopping GTM consents observer..."),clearInterval(this.intervalHandle),this.intervalHandle=null),this.observedConsentUpdates=new WeakSet,this.lastScannedIndex=0}#e(e=!1){if(this.log?.("Checking for GTM consent updates..."),window.dataLayer&&Array.isArray(window.dataLayer)){const t=window.dataLayer.slice(this.lastScannedIndex).filter(e=>this.#t(e)).filter(e=>!(!e||"object"!=typeof e||this.observedConsentUpdates.has(e))&&(this.log?.("New GTM consent update detected:",e),this.observedConsentUpdates.add(e),!0));(t.length>0||e)&&(this.log?.(`Detected ${t.length} new GTM consent update(s).`),this.onConsentChange(t)),this.lastScannedIndex=window.dataLayer.length}}#t(e){return"gtm_consent_update"===e?.value?.event||b.includes(e?.event)}}let z=/^weezuniq\d+-\d+(\.\d+)?$/;const _=new d("unknown",({type:e,origin:t,payload:i,event:n},s)=>{if(z.test(i)){let[,e]=i.split("-");s.iframe.height=Math.ceil(e)}}),A=new d("resize",({type:e,origin:t,payload:i,event:n},s)=>{"1"===s.iframe.getAttribute("resize")&&(s.iframe.height=i.height,s.iframe.style.height&&(s.iframe.style.height=`${i.height}px`))}),C=new d("clean-url-params",({id:e,type:t,origin:i,payload:n,event:s},r)=>{const o=new URL(window.location.href),a=new URLSearchParams(o.search),{paramsKeys:l=[],reload:c=!0}=n;l.forEach(e=>{a.delete(e)}),o.search=a;const d=o.toString();c?(window.history.pushState({path:d},"",d),localStorage.removeItem("wz_resale_uuid"),window.location.reload()):window.history.replaceState({path:d},"",d)}),I=new d("parent-url",({id:t,type:i,origin:n,payload:s,event:r},o)=>{if(!t)return void console.error("Id is missing but it's required");const a=new e(t,i,"piglet",{parentUrl:window.location.href},r);
4o.iframe.contentWindow.postMessage(a.toJSON(),"*")}),k={},E=new d("scroll-to",({id:e,type:t,origin:i,payload:n,event:s},r)=>{if(!n||void 0===n.offset)return void console.error("Offset is missing but it's required");const{offset:o,smooth:a=!0,restoreHandle:l}=n,c={behavior:a?"smooth":"auto"};l&&(k[l]={x:window.scrollX,y:window.scrollY});const d=v(r.iframe.id,r.safeArea??{}),h=r.iframe.getBoundingClientRect(),g=h.top+window.scrollY,f=h.left+window.scrollX;if("number"==typeof o)window.scrollTo({top:g+o-d.top,...c});else if(null!=o&&"object"==typeof o){const e=o.x??o.left??0,t=o.y??o.top??0;window.scrollTo({left:f+e-d.left,top:g+t-d.top,...c})}}),x=new d("scroll-restore",({id:e,type:t,origin:i,payload:n,event:s},r)=>{if(!n||!n.restoreHandle)return void console.error("restoreHandle is missing but it's required");const{restoreHandle:o,smooth:a=!0}=n,l={behavior:a?"smooth":"auto"},c=k[o];c?(window.scrollTo({left:c.x,top:c.y,...l}),delete k[o]):console.warn(`No scroll restore point found for handle: ${o}`)}),L=new d("track-gtm-consents",({id:t,payload:i,event:n},s)=>{if(!i||void 0===i.enabled)return void console.error("Payload with enabled property is required for track-gtm-consents");const{enabled:r}=i;if(!r)return void(s._gtmConsentObserver&&(s._gtmConsentObserver.dispose(),s._gtmConsentObserver=null));s._gtmConsentObserver&&s._gtmConsentObserver.dispose();let o=!0;s._gtmConsentObserver=new S(i=>{const r=new e(o?t:self.crypto.randomUUID(),"piglet","gtm-consent-update",{gtmConsents:i},n);s.iframe.contentWindow.postMessage(r.toJSON(),"*"),o=!1}),s._gtmConsentObserver.observe()}),T=(e,t)=>{function i(i){if(i.source===t.contentWindow)if("object"==typeof i.data&&"WEEZ_GAT_QUESTION"===i.data.message)n(i.data.id),function(e,t){if("function"!=typeof ga)return;let i={message:"WEEZ_GAT_ANSWER"};ga(function(){ga.getAll().some(function(t){return t.get("trackingId")===e&&(i.clientId=t.get("clientId"),i.trackingId=e),t.get("trackingId")===e}),t.postMessage(i,"*")})}(i.data.id,i.source);else if("string"==typeof i.data){let s=i.data.split("-");if((s[0]===t.id||""===t.id)&&(n(s[0]),"1"===e.resize))if(0===i.data.indexOf("SCROLLIFRAME"))t.scrollIntoView();else if("weezmulti"!==s[0]&&0!==s[0].indexOf("weezuniq")||!t)0===i.data.indexOf("SCROLLFORM")&&window.scrollTo(0,window.scrollY+t.getBoundingClientRect().top+parseFloat(s[1]));else{let e=t,i=s[1]+"px";e.height=i,e.style.height=i}}}function n(e){let t=document.getElementById("link"+e);t&&null!==t.parentNode&&t.parentNode.removeChild(t)}
5window.addEventListener?window.addEventListener("message",i,!1):window.attachEvent("onmessage",i)};const U=new class{constructor(){this.widgets={},this.runtime=[]}register(e){this.widgets[e.type]=e}
6fromTag(e){const{dataset:{type:t}}=e;if(!this.widgets[t])return console.warn(`[Weezevent] No registered widget for type ${t}`);let i=new(0,this.widgets[t])(e);i.render(),this.runtime.push(i)}
7setSafeArea(e,t){t?function(e,t){m.widgets[e]=y(t)}(t,e):function(e){m.global=y(e)}(e)}getSafeArea(e){return v(e)}};function N(){document.querySelectorAll("a.weezevent-widget-integration").forEach(e=>U.fromTag(e))}U.register(class extends a{static handles=[_,I];static type="ticket";getSettings(){const e=this.getDataset();let t={id:"multi"===e.id?"weezmulti":"weezuniq"+e.id,src:e.src+"&v=2&neo=1",resize:e.resize,height:e.height,width:e.width_auto&&"1"===e.width_auto?"100%":e.width,hidePoweredBy:e.nopb?e.nopb:0,frameborder:"0",allowfullscreen:"true",scrolling:"auto"};return"1"===t.resize&&(t.src+="&jsintegration=1"),t}getAttributes(){return{src:i(this.getDataset().src)}}render(){var e,i,n;this.iframe=this.buildIframe(),this.inject(),e=this.getSettings(),i=this.iframe,n=this.tag,{display:function(e,t){n.parentNode.insertBefore(e,n),i.parentNode.appendChild(t),n.parentNode.removeChild(n)},setIframeParams:function(){for(let t in e)e[t]&&i.setAttribute(t,e[t])},styleLink:function(e){let t=n.style.cssText;t+="float: right !important;",t+="margin: 10px 0 15px 0 !important;",t+="font-size: 11px !important;",t+="font-family: Arial, sans-serif !important;",t+="text-decoration: none !important;",t+="color: #333333 !important;",e.style.cssText=t},styleIframe:function(){i.style.cssText="box-sizing:initial; -moz-box-sizing:initial; -webkit-box-sizing:initial;"}
7,getLink:function(){let t=document.createElement("a"),i="Cliquer ici pour acheter des billets / Click here to buy tickets",s=document.createTextNode(i);return t.appendChild(s),t.id="link"+e.id,t.title=i,t.style.display="none",t.href=n.attributes["data-src"].value,setTimeout(function(){t.style.display="block"},5e3),t},init:function(){if(-1!==n.className.indexOf("rendered"))return;let t=this.getLink(),s=e.src;i.contentWindow?i.contentWindow.location.replace(s):i.src=s,this.setIframeParams();let r=document.createElement("a");r.href="https://www.weezevent.com/?c=sys_widget",this.styleIframe(),this.styleLink(r),T(e,i),n.classList.add("rendered"),r.innerHTML="1"!==e.hidePoweredBy?"Powered by Weezevent":"",this.display(t,r)}}.init(),this.socket=new t(this.iframe)}}),U.register(class extends a{static type="neo";static handles=[_,A,C,I,E,x,L];getAttributes(){const e=this.getDataset();return{src:i(e.src,{neo:"1"}),height:e.height,resize:e.resize,width:e.width_auto&&"1"===e.width_auto?"100%":e.width,frameborder:"0",allowfullscreen:"true",scrolling:"auto",hidePoweredBy:e.nopb?e.nopb:0}}injectPoweredByWeezevent(){let e=document.createElement("a");e.href="https://www.weezevent.com/?c=sys_widget",this.styleLink(e),e.innerHTML="Powered by Weezevent","1"===this.getDataset().nopb&&(e.style.display="none"),this.getContainer().appendChild(e)}styleLink(e){let t=this.tag.style.cssText;t+="float: right !important;",t+="margin-left: auto !important;",t+="margin-top: 10px !important;",t+="font-size: 11px !important;",t+="font-family: Arial, sans-serif !important;",t+="text-decoration: none !important;",t+="color: #333333 !important;",e.style.cssText=t}cleanUrlParams(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);t.delete("scrollToWeezWidget"),e.search=t;const i=e.toString();window.history.pushState({path:i},"",i)}render(){super.render(),T({resize:this.getDataset().resize},this.iframe),this.socket=new t(this.iframe),this.injectPoweredByWeezevent(),p(this.iframe,this.cleanUrlParams)}}),U.register(class extends a{static type="gadget";static handles=[f,h,g,w];getAttributes(){const e=this.getDataset();return{src:i(e.src),height:e.height,resize:e.resize,width:e.width_auto&&"1"===e.width_auto?"100%":e.width,frameborder:"0",allowfullscreen:"true",scrolling:"auto",allow:"payment"}}cleanUrlParams(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);t.delete("scrollToWeezWidget"),e.search=t;const i=e.toString();window.history.pushState({path:i},"",i)}render(){super.render(),this.socket=new t(this.iframe),p(this.iframe,this.cleanUrlParams)}}),U.register(class extends a{static handles=[u];static type="pingPong"}),U.register(class extends a{static handles=[{type:"target-change-height",callback:({payload:e},t)=>{t.iframe.style.height=`${e.height?e.height:t.iframe.height}px`}},{type:"target-ask-values",callback:(e,i)=>{new t(i.iframe).send({type:"target-send-values",page:window.location.href,referrer:document.referrer})}}];static type="groot";getAttributes(){const e=this.getDataset();return{src:e.iframeSrc||this.tag.href,width:e.iframeWidth||"100%",scrolling:"no",frameBorder:"0"}}}),U.register(c),N(),new window.MutationObserver(e=>{e.some(e=>"childList"===e.type)&&N()}).observe(document.body,{attributes:!1,childList:!0,subtree:!0}),function(){const e=new URLSearchParams(window.location.search);for(const[t,i]of e.entries())s(t,i)}(),window.piglet=window.piglet||{},window.piglet.version="0.0.0-20f1b01",window.piglet.updateSafeArea=function(e,t){U.setSafeArea(e,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.