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SAAAgB,GAC9C,IAAQC,EAAWD,EAAME,OAAjBD,OAEiB,YAArBD,EAAMG,aACRF,EAAOG,gBAAgB,uBACvBH,EAAOI,iBAAiB,CAAC,EAAGJ,EAAOK,cAAcC,cACjDN,EAAOO,oBAAoB,UAC3BP,EAAOI,iBAAiB,CAAC,EAAGJ,EAAOK,cAAcC,cACjDN,EAAOO,oBAAoB,aAC3BP,EAAOI,iBAAiB,CAAC,EAAG,IAEhC,I,yDC7FAI,GAAAA,W,0BCAAC,EAAAA,GAAMC,SAASC,KAAKC,OAClB,mNACFH,EAAAA,GAAMC,SAASG,QAAQC,MAAMH,KAAKI,OAAS,IAC3CN,EAAAA,GAAMC,SAASG,QAAQG,SAASL,KAAKI,OAAS,IAE9CN,EAAAA,GAAMQ,SAASC,EAAAA,GAAsBC,EAAAA,GAAYC,EAAAA,GAAYC,EAAAA,I,qBCF7DC,GAAAA,OAAiB,iBAAiB,SAAUC,GAC1C,IAOQC,EAPFC,EAAOC,KAEbA,KAAKC,GAAG,eAAe,WACrBD,KAAKE,gCAAiC,CACxC,IAEAF,KAAKG,QACGL,EAAWC,EAAKI,OAEf,WACL,MAAmD,qBAAxCH,KAAKE,uCACPF,KAAKE,+BACL,CACLE,MAAO,CAAC,EACRC,MAAO,GACPC,OAAQ,KAIHR,EAASS,MAAMP,KAAMQ,UAEhC,EAEJ,IC7BAC,EAAQ,OAeRxD,OAAOyD,MAAQ,CAAC,C","sources":["webpack://scout/./app/javascript/initializers/rails-ujs.js","webpack://scout/./app/javascript/initializers/trix.js","webpack://scout/./app/javascript/initializers/polyfills.js","webpack://scout/./app/javascript/initializers/chartjs-plugins.js","webpack://scout/./app/javascript/initializers/selectize-custom-plugin.js","webpack://scout/./app/javascript/packs/application.js"],"sourcesContent":["import Rails from \"@rails/ujs\";\n\nRails.start();\n","import Trix from \"trix\";\n\nclass BaseElement extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: \"open\" });\n }\n}\n\nfunction innerHTML(alignment) {\n return `\n \n\n \n `;\n}\nexport class AlignCenterElement extends BaseElement {\n constructor() {\n super();\n\n this.shadowRoot.innerHTML = innerHTML(\"center\");\n }\n}\n\nexport class AlignRightElement extends BaseElement {\n constructor() {\n super();\n\n this.shadowRoot.innerHTML = innerHTML(\"right\");\n }\n}\n\nexport class AlignLeftElement extends BaseElement {\n constructor() {\n super();\n\n this.shadowRoot.innerHTML = innerHTML(\"left\");\n }\n}\n\nwindow.customElements.define(\"align-left\", AlignLeftElement);\nwindow.customElements.define(\"align-center\", AlignCenterElement);\nwindow.customElements.define(\"align-right\", AlignRightElement);\n\ndocument.addEventListener(\"trix-before-initialize\", () => {\n Trix.config.textAttributes.underline = {\n tagName: \"u\",\n inheritable: true,\n };\n\n Trix.config.textAttributes.highlight = {\n tagName: \"mark\",\n inheritable: true,\n };\n\n Trix.config.blockAttributes.alignCenter = {\n tagName: \"align-center\",\n nestable: false,\n exclusive: true,\n };\n\n Trix.config.blockAttributes.alignLeft = {\n tagName: \"align-left\",\n nestable: false,\n exclusive: true,\n };\n\n Trix.config.blockAttributes.alignRight = {\n tagName: \"align-right\",\n nestable: false,\n exclusive: true,\n };\n});\n\n// Prevent Trix from accepting drag and drop file attachments\ndocument.addEventListener(\"trix-file-accept\", e => {\n e.preventDefault();\n});\n\ndocument.addEventListener(\"trix-action-invoke\", event => {\n const { editor } = event.target;\n\n if (event.actionName === \"x-reset\") {\n editor.recordUndoEntry(\"Cleared Annotations\");\n editor.setSelectedRange([0, editor.getDocument().getLength()]);\n editor.deactivateAttribute(\"strike\");\n editor.setSelectedRange([0, editor.getDocument().getLength()]);\n editor.deactivateAttribute(\"highlight\");\n editor.setSelectedRange([0, 0]);\n }\n});\n","import smoothscroll from \"smoothscroll-polyfill\";\n\n// Edge needs polyfill for `scrollTo`\nsmoothscroll.polyfill();\n","import { Chart } from \"chart.js\";\nimport { ChoroplethController, GeoFeature, ColorScale, ProjectionScale } from \"chartjs-chart-geo\";\n\nChart.defaults.font.family =\n 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\", SymbolaRegular';\nChart.defaults.plugins.title.font.weight = 600;\nChart.defaults.plugins.subtitle.font.weight = 600;\n\nChart.register(ChoroplethController, GeoFeature, ColorScale, ProjectionScale);\n","/* built from suggestion at https://github.com/selectize/selectize.js/issues/249#issuecomment-75052153 */\n\n/* eslint-disable func-names */\nimport Selectize from \"@selectize/selectize\";\n\n// eslint-disable-next-line no-unused-vars\nSelectize.define(\"silent_remove\", function (_) {\n const self = this;\n\n this.on(\"item_remove\", function () {\n this.plugin_silent_remove_in_remove = true;\n });\n\n this.search = (function () {\n const original = self.search;\n\n return function () {\n if (typeof this.plugin_silent_remove_in_remove !== \"undefined\") {\n delete this.plugin_silent_remove_in_remove;\n return {\n items: {},\n query: [],\n tokens: [],\n };\n } else {\n // eslint-disable-next-line prefer-rest-params\n return original.apply(this, arguments);\n }\n };\n })();\n});\n","/* eslint-disable import/first */\nrequire(\"@rails/actiontext\");\n\nimport \"../initializers/rails-ujs\";\nimport \"../initializers/turbolinks\";\nimport \"../initializers/jquery\";\nimport \"../initializers/trix\";\nimport \"../initializers/stimulus\";\nimport \"../initializers/moment\";\nimport \"../initializers/sentry\";\nimport \"../initializers/ie-detect\";\nimport \"../initializers/polyfills\";\nimport \"../initializers/chartjs-plugins\";\nimport \"../initializers/selectize-custom-plugin\";\nimport \"../css/application.css\"; // Load our CSS after all Stimulus controllers (which may pull in library-specific base styles)\n\nwindow.Scout = {};\n"],"names":["Rails","BaseElement","attachShadow","mode","HTMLElement","innerHTML","alignment","AlignCenterElement","shadowRoot","AlignRightElement","AlignLeftElement","window","customElements","define","document","addEventListener","Trix","config","textAttributes","underline","tagName","inheritable","highlight","blockAttributes","alignCenter","nestable","exclusive","alignLeft","alignRight","e","preventDefault","event","editor","target","actionName","recordUndoEntry","setSelectedRange","getDocument","getLength","deactivateAttribute","smoothscroll","Chart","defaults","font","family","plugins","title","weight","subtitle","register","ChoroplethController","GeoFeature","ColorScale","ProjectionScale","Selectize","_","original","self","this","on","plugin_silent_remove_in_remove","search","items","query","tokens","apply","arguments","require","Scout"],"sourceRoot":""}