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QAAQtB,GAAG,QCIlvC,MAAMuB,EAAgBA,IAAMC,QAAQnB,SAASoB,cAAc,yBAUvCC,MAIhB,GAFAC,EAAOX,KAAKY,UAAgBC,KAExBN,EAAe,CACjB,MAAMO,EAASzB,SAASoB,cAAc,wBAAwBM,aAAa,WACrEC,EAdUC,MACpB,MAAMC,EAAY7B,SAASoB,cAAc,4BAA4BM,aAAa,WAC5EI,EAAiB9B,SAASoB,cAAc,iCAAiCM,aAAa,WACtFK,EAAmB/B,SAASoB,cAAc,mCAAmCM,aAAa,WAEhG,MAAO,CAAEG,YAAWC,iBAAgBC,mBAAkB,EAS/BH,GAEnBN,EAAOP,SAASU,EAAQE,EAC1B,CACF,EAGFN,E","sources":["webpack://rendez-vous/./node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/index.esm.js","webpack://rendez-vous/./app/javascript/packs/hotjar.js"],"sourcesContent":["const r=()=>\"undefined\"!=typeof window,t=()=>!(!r()||!window.hj),e=(t,...e)=>{if(r()&&window.hj)return window.hj(t,...e);throw Error(\"Hotjar is not available, make sure init has been called.\")},n=(r,e,n)=>{if(!((r,t,e)=>{try{const n=document.getElementById(t)||document.createElement(\"script\");return n.id=t,n.nonce=e,n.innerText=r,n.crossOrigin=\"anonymous\",document.head.appendChild(n),!0}catch(r){return!1}})(`(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:${r},hjsv:${e},hjdebug:${(null==n?void 0:n.debug)||!1}};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,\"hotjar-init-script\",null==n?void 0:n.nonce)||!t())throw Error(\"Failed to initialize Hotjar tracking script.\")},o={init:(r,t,e)=>{try{return n(r,t,e),!0}catch(r){return console.error(\"Error:\",r),!1}},event:r=>{try{return e(\"event\",r),!0}catch(r){return console.error(\"Error:\",r),!1}},identify:(r,t)=>{try{return e(\"identify\",r,t),!0}catch(r){return console.error(\"Error:\",r),!1}},stateChange:r=>{try{return e(\"stateChange\",r),!0}catch(r){return console.error(\"Error:\",r),!1}},isReady:t};export default o;\n//# sourceMappingURL=index.esm.js.map\n","/* global HOTJAR_SITE_ID, HOTJAR_VERSION */\n\nimport Hotjar from '@hotjar/browser'\n\nconst isUserPresent = () => Boolean(document.querySelector('meta[name=\"user-id\"]'))\n\nconst setUserParams = () => {\n const userEmail = document.querySelector('meta[name=\"user-email\"]')?.getAttribute('content')\n const organizationId = document.querySelector('meta[name=\"organization-id\"]')?.getAttribute('content')\n const organizationName = document.querySelector('meta[name=\"organization-name\"]')?.getAttribute('content')\n\n return { userEmail, organizationId, organizationName }\n}\n\nconst initHotjar = () => {\n if (HOTJAR_SITE_ID && HOTJAR_VERSION) {\n Hotjar.init(HOTJAR_SITE_ID, HOTJAR_VERSION)\n\n if (isUserPresent) {\n const userId = document.querySelector('meta[name=\"user-id\"]').getAttribute('content')\n const userParams = setUserParams()\n\n Hotjar.identify(userId, userParams)\n }\n }\n}\n\ninitHotjar()\n"],"names":["r","window","t","hj","e","Error","n","document","getElementById","createElement","id","nonce","innerText","crossOrigin","head","appendChild","debug","o","init","console","error","event","identify","stateChange","isReady","isUserPresent","Boolean","querySelector","initHotjar","Hotjar","HOTJAR_SITE_ID","HOTJAR_VERSION","userId","getAttribute","userParams","setUserParams","userEmail","organizationId","organizationName"],"sourceRoot":""}