PageSourceSearch

https://synerise.com/assets/cookie-consent-Jo0yoiYv.js

js synerise.com collected 2026-09-25 19:05:26 UTC 6,857 bytes, 1 lines download raw bytes

1import{r as d,j as i}from"./vendor-react-Cmi0Jrom.js";import{b as _,B as g,s as b,j as R,k as v,l as q,m as C}from"./index-CIJgM20k.js";import{u as P,L as I}from"./vendor-router-xf9UbNSr.js";import{S as A,G as L,F as N,L as T}from"./tracker-ids-R3ydSGUD.js";import{A as K,m as B}from"./vendor-motion-OaAG8utH.js";import{bh as D,X as F}from"./vendor-icons-RDdiQ4sc.js";import"./vendor-query-HImUUcVP.js";import"./vendor-radix-toast-LTka-d4j.js";import"./vendor-radix-primitive-BvNKvj7K.js";import"./vendor-radix-slot-f_qNkOMa.js";import"./vendor-radix-compose-refs-0p3tndNK.js";import"./vendor-radix-collection-C2ADOcGb.js";import"./vendor-radix-context-CZA76pzV.js";import"./vendor-radix-dismissable-layer-DVO7zjMy.js";import"./vendor-radix-use-callback-ref-DNSMTU4D.js";import"./vendor-radix-use-escape-keydown-CIZfUBKX.js";import"./vendor-radix-portal-lgfuWWlX.js";import"./vendor-radix-use-layout-effect-BVlAuFcq.js";import"./vendor-radix-presence-CVpwEzH2.js";import"./vendor-radix-use-controllable-state-DQPsvzY-.js";import"./vendor-radix-visually-hidden-BUU9ShfC.js";import"./vendor-radix-tooltip-DC8ZRS9i.js";import"./vendor-radix-popper-DhClme89.js";import"./vendor-radix-arrow-DCOqILDI.js";import"./vendor-radix-use-size-BbzWdhnQ.js";function s(){return q(window.location.pathname).strippedPath}function y(){return typeof window>"u"?!1:b(s(),!1)}function W(){return typeof window>"u"?!1:C(s())}function z(){return typeof window>"u"?!1:R(s())}function M(){return typeof window>"u"?!1:v(s())}function f(){return typeof document>"u"?!1:document.querySelector("form")!==null}function U(){if(typeof document>"u"||!W())return;if(f()){r();return}let e=0;const t=new MutationObserver(()=>{f()&&(n(),r())}),n=()=>{t.disconnect(),e&&window.clearTimeout(e)};return t.observe(document.body,{childList:!0,subtree:!0}),e=window.setTimeout(n,5e3),n}const u=L.id,x=N.id,l=T.id,w=A.id;function G(){if(!u||document.querySelector('script[src*="googletagmanager.com/gtag"]'))return;const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${u}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(...t){window.dataLayer.push(t)},window.gtag("js",new Date),window.gtag("config",u)}function H(){if(!x||window.fbq)return;const e=function(...n){e.callMethod?e.callMethod(...n):e.queue.push(n)};e.queue=[],e.loaded=!0,e.version="2.0",e.push=e,window.fbq=e,window._fbq||(window._fbq=e);const t=document.createElement("script");t.async=!0,t.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(t),window.fbq("init",x),window.fbq("track","PageView")}function X(){if(!l||window.lintrk)return;window._linkedin_partner_id=l,window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(l);const e=function(n,o){e.q.push([n,o])};e.q=[],window.lintrk=e;const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",document.head.appendChild(t)}let m=!1;function p(e){m||(window.SR&&typeof window.SR.init=="function"?(m=!0,window.SR.init({trackerKey:w}),console.log("Synerise SDK loaded and initialized")):e<10&&setTimeout(()=>p(e+1),200))}function k(){window.SyneriseObjectNamespace="SR",window.onSyneriseLoad=function(){p(0)};const e=document.createElement("script");e.async=!0,e.src="//web.snrbox.com/synerise-javascript-sdk.min.js",e.onload=function(){p(0)},document.head.appendChild(e)}function r(){w&&(document.querySelector('script[src*="snrbox.com"]')||k())}function Se(e={}){if(typeof document>"u")return;const t=localStorage.getItem("cookie-consent");(e.forSubmittedForm===!0||t==="accepted"||b(s(),f()))&&(window.SR&&typeof window.SR.init=="function"||w&&(document.querySelectorAll('script[src*="snrbox.com"]').forEach(o=>o.remove()),m=!1,k()))}const Y=["/solutions/bank-new-raw/pdf","/experience/digital-signage"];function j(){return typeof window>"u"?!1:Y.some(e=>window.location.pathname.startsWith(e))}function E(){typeof document>"u"||(document.getElementById("jMWr4pUw3Pgiwg53jtqif")?.remove(),document.querySelectorAll('iframe[src*="chat.synerise.com"], iframe[src*="chatbase"], [id^
1="chatbase-"], [class*="chatbase"]').forEach(e=>e.remove()))}function O(){if(j()){E();return}if(document.getElementById("jMWr4pUw3Pgiwg53jtqif"))return;if(!window.chatbase||window.chatbase("getState")!=="initialized"){const t=(...n)=>{t.q||(t.q=[]),t.q.push(n)};t.q=[],window.chatbase=new Proxy(t,{get(n,o){return o==="q"?n.q:(...a)=>n(o,...a)}})}const e=document.createElement("script");e.src="https://chat.synerise.com/embed.min.js",e.id="jMWr4pUw3Pgiwg53jtqif",e.setAttribute("domain","chat.synerise.com"),document.body.appendChild(e)}function S(){G(),H(),X(),r(),O()}function be(){const[e,t]=d.useState(!1),n=_(),[o]=P();d.useEffect(()=>{const c=localStorage.getItem("cookie-consent");c==="accepted"?S():(y()&&r(),!c&&!z()&&!M()&&t(!0))},[]),d.useEffect(()=>{if(j()&&E(),localStorage.getItem("cookie-consent")!=="accepted")return y()&&r(),U()},[o]);function a(){localStorage.setItem("cookie-consent","accepted"),t(!1),S()}function h(){localStorage.setItem("cookie-consent","rejected"),t(!1)}return i.jsx(K,{children:e&&i.jsx(B.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:25,stiffness:300},className:"fixed bottom-0 left-0 right-0 z-[9999] p-4 md:p-6","data-testid":"cookie-consent-banner",children:i.jsxs("div",{className:"max-w-4xl mx-auto bg-card border border-border rounded-xl shadow-2xl p-4 md:p-6 flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[i.jsx(D,{className:"w-6 h-6 text-primary flex-shrink-0 mt-0.5","aria-hidden":"true"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-sm text-foreground font-medium mb-1",children:"We use cookies"}),i.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:['We use cookies and similar technologies to analyze traffic, personalize content, and serve targeted ads. By clicking "Accept", you consent to the use of cookies.'," ",i.jsx(I,{href:n("/legal/cookie-policy"),className:"underline hover:text-foreground","data-testid":"link-cookie-policy",children:"Cookie Policy"})]})]}),i.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[i.jsx(g,{variant:"outline",size:"sm",onClick:h,"data-testid":"button-reject-cookies",children:"Reject"}),i.jsx(g,{size:"sm",onClick:a,"data-testid":"button-accept-cookies",children:"Accept"}),i.jsx("button",{onClick:h,className:"p-1 rounded-md text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close cookie consent","data-testid":"button-close-cookie-banner",children:i.jsx(F,{className:"w-4 h-4"})})]})]})})})}export{be as CookieConsent,Se as ensureSyneriseSdkLoaded};

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.