{"mappings":"CAAC,SAAUA,GACT,MAQMC,EAAS,WACb,MACMC,EADUF,EAAIG,cACCC,aAAa,aAC5BC,EAASH,EAAKI,QAAQ,MAAO,KACnC,GAAIJ,EAAM,CAER,MAAMK,EAAgBC,MAAMC,KAC1BT,EAAIU,iBAAiB,oBACrBC,QAAQC,GAE2D,OAAjEA,EAAQF,iBAAiB,qBAAqB,GAAGG,cAGjDN,EAAcO,QAChBP,EAAcQ,SAASC,IACrBA,EAAMC,gBAAgB,SACtBD,EAAME,UAAY,GAClBF,EAAMG,MAAMC,MAAQ,OACpBJ,EAAMK,YA1BI,SAAUC,EAAKC,GAC/B,MAAMC,EAAMxB,EAAIyB,cAAc,OAK9B,OAJAD,EAAIE,UAAUC,IAAI,kBAClBH,EAAII,aAAa,YAAaN,GAC9BE,EAAII,aAAa,KAAML,GACvBC,EAAIL,MAAMC,MAAQ,OACXI,CACT,CAmB0BK,CAAU3B,EAAMG,GAAA,IAGtC,MAAMyB,EAAS9B,EAAIyB,cAAc,UACjCK,EAAOC,IAAM,iDACb/B,EAAIgC,KAAKX,YAAYS,EACvB,CACF,EACuB,YAAnB9B,EAAIiC,WACNhC,IAEAD,EAAIkC,iBAAiB,mBAAoBjC,EAE7C,CAxCC,CAwCEkC","sources":["src/addpotion.js"],"sourcesContent":["(function (doc) {\n const createDiv = function (url, id) {\n const div = doc.createElement('div');\n div.classList.add('shoutout-embed');\n div.setAttribute('data-wall', url);\n div.setAttribute('id', id);\n div.style.width = '100%';\n return div;\n };\n const onLoad = function () {\n const current = doc.currentScript;\n const wall = current.getAttribute('data-wall');\n const wallId = wall.replace(/\\s/g, '-');\n if (wall) {\n // Find callout blocks with a 📣\n const calloutBlocks = Array.from(\n doc.querySelectorAll('.notion-callout')\n ).filter((callout) => {\n return (\n callout.querySelectorAll('.notion-page-icon')[0].textContent === '📣'\n );\n });\n if (calloutBlocks.length) {\n calloutBlocks.forEach((block) => {\n block.removeAttribute('class');\n block.innerHTML = '';\n block.style.width = '100%';\n block.appendChild(createDiv(wall, wallId));\n });\n }\n const script = doc.createElement('script');\n script.src = `https://shoutout.io/static/website/js/embed.js`;\n doc.body.appendChild(script);\n }\n };\n if (doc.readyState !== 'loading') {\n onLoad();\n } else {\n doc.addEventListener('DOMContentLoaded', onLoad);\n }\n})(document);"],"names":["doc","onLoad","wall","currentScript","getAttribute","wallId","replace","calloutBlocks","Array","from","querySelectorAll","filter","callout","textContent","length","forEach","block","removeAttribute","innerHTML","style","width","appendChild","url","id","div","createElement","classList","add","setAttribute","createDiv","script","src","body","readyState","addEventListener","document"],"version":3,"file":"addpotion.js.map"}