{"version":3,"file":"virtual_main.js","sources":["theme-5/virtual:init-settings","theme-5/virtual:theme","theme-5/discourse/initializers/theme-field-10-common-html-script-1.js","theme-5/virtual:main"],"sourcesContent":["import { registerSettings } from \"discourse/lib/theme-settings-store\";\n\nregisterSettings(5, {\n  \"position\": \"bottom\",\n  \"static\": false,\n  \"layout\": \"block\",\n  \"popup_background_color\": \"#5555FF\",\n  \"popup_text_color\": \"#fff\",\n  \"button_background_color\": \"#ff55ff\",\n  \"button_text_color\": \"#fff\",\n  \"main_text\": \"This website uses cookies to ensure you get the best experience on our website.\",\n  \"dismiss_button_text\": \"Got it!\",\n  \"policy_link_text\": \"Learn more\",\n  \"policy_link_url\": \"https://meta.discourse.org/t/list-of-cookies-used-by-discourse/83690\",\n  \"policy_link_target\": \"_self\"\n});\n","import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(5);\n\nexport function themePrefix(key) {\n  return `theme_translations.5.${key}`;\n}\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\nimport deprecated from \"discourse/lib/deprecated\";\n\nexport default {\n  name: \"theme-field-10-common-html-script-1\",\n  after: \"inject-objects\",\n\n  initialize() {\n    deprecated(\n      \"Adding JS code using <script type='text/discourse-plugin'> is deprecated. Move this code to a dedicated JavaScript file.\",\n      {\n        id: \"discourse.script-tag-discourse-plugin\",\n        url: \"https://meta.discourse.org/t/366482\",\n      }\n    )\n    withPluginApi(\"0.8\", (api) => {\n      \n  $(document).ready(function() {\n    window.cookieconsent.initialise({\n      \"palette\": {\n        \"popup\": {\n          \"background\": settings.popup_background_color,\n          \"text\": settings.popup_text_color\n        },\n        \"button\": {\n          \"background\": settings.button_background_color,\n          \"text\": settings.button_text_color\n        }\n      },\n      \"theme\": settings.layout,\n      \"position\": settings.position,\n      \"static\": settings.static,\n      \"content\": {\n        \"message\": settings.main_text,\n        \"dismiss\": settings.dismiss_button_text,\n        \"link\": settings.policy_link_text,\n        \"href\": settings.policy_link_url,\n        \"target\": settings.policy_link_target\n      }\n    })\n  });\n\n    });\n  }\n};\n","import \"virtual:init-settings\";\n\nconst themeCompatModules = {};\nimport * as Mod1 from \"./discourse/initializers/theme-field-10-common-html-script-1\";\nthemeCompatModules[\"discourse/initializers/theme-field-10-common-html-script-1\"] = Mod1;\n\nexport default themeCompatModules;\n"],"names":["registerSettings","position","static","layout","popup_background_color","popup_text_color","button_background_color","button_text_color","main_text","dismiss_button_text","policy_link_text","policy_link_url","policy_link_target","settings","getObjectForTheme","themeField10CommonHtmlScript1","name","after","initialize","deprecated","id","url","withPluginApi","api","$","document","ready","window","cookieconsent","initialise","palette","popup","background","text","button","theme","content","message","dismiss","link","href","target","themeCompatModules","Mod1"],"mappings":";AAEAA,EAAiB,EAAG,CAClBC,SAAY,SACZC,QAAU,EACVC,OAAU,QACVC,uBAA0B,UAC1BC,iBAAoB,OACpBC,wBAA2B,UAC3BC,kBAAqB,OACrBC,UAAa,kFACbC,oBAAuB,UACvBC,iBAAoB,aACpBC,gBAAmB,uEACnBC,mBAAsB;ACZjB,MAAMC,EAAWC,EAAkB;ACC1C,IAAAC,EAAe,CACbC,KAAM,sCACNC,MAAO,iBAEPC,UAAAA,GACEC,EACE,2HACA,CACEC,GAAI,wCACJC,IAAK,wCAGTC,EAAc,MAAQC,IAExBC,EAAEC,UAAUC,MAAM,WAChBC,OAAOC,cAAcC,WAAW,CAC9BC,QAAW,CACTC,MAAS,CACPC,WAAcnB,EAAST,uBACvB6B,KAAQpB,EAASR,kBAEnB6B,OAAU,CACRF,WAAcnB,EAASP,wBACvB2B,KAAQpB,EAASN,oBAGrB4B,MAAStB,EAASV,OAClBF,SAAYY,EAASZ,SACrBC,OAAUW,EAASX,OACnBkC,QAAW,CACTC,QAAWxB,EAASL,UACpB8B,QAAWzB,EAASJ,oBACpB8B,KAAQ1B,EAASH,iBACjB8B,KAAQ3B,EAASF,gBACjB8B,OAAU5B,EAASD,qBAGzB,IAGA;ACzCG,MAAC8B,EAAqB,CAAA;AAE3BA,EAAmB,8DAAgEC;"}