{"version":3,"file":"main.W-abgk.js","sources":["theme-3/virtual:theme","theme-3/discourse/api-initializers/init-theme.js","theme-3/discourse/components/custom-header-buttons.gjs","theme-3/discourse/initializers/custom-header-button.js","theme-3/discourse/initializers/init-mobile-hamburger-section.js","theme-3/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(3);\n\nexport function themePrefix(key) {\n  return `theme_translations.3.${key}`;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\n\nexport default apiInitializer((api) => {\n  api.replaceIcon(\"bars\", \"square-burger-open\");\n  api.replaceIcon(\"magnifying-glass\", \"square-search\");\n  api.replaceIcon(\"caret-right\", \"square-down\");\n  api.replaceIcon(\"caret-down\", \"square-down\");\n});\n","import icon from \"discourse/helpers/d-icon\";\nimport { i18n } from \"discourse-i18n\";\n\n<template>\n  <div class=\"sq-custom-menu\">\n    <a\n      title=\"Documentation\"\n      href=\"https://developer.squareup.com/docs\"\n      class=\"docs\"\n    >\n      Docs\n    </a>\n    <div class=\"more-wrapper\">\n      <button class=\"more-btn\" type=\"button\">\n        <p class=\"more-txt\">More</p>\n        <div id=\"more-icon\">\n          {{icon \"caret-down\"}}\n        </div>\n      </button>\n      <div id=\"more-menu\">\n        <ul>\n          <li>\n            <a href=\"https://developer.squareup.com/\">\n              {{i18n (themePrefix \"square.mobile_sidebar.home_text\")}}\n            </a>\n          </li>\n          <li>\n            <a href=\"https://developer.squareup.com/reference/square\">\n              {{i18n (themePrefix \"square.mobile_sidebar.api_text\")}}\n            </a>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </div>\n</template>\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\nimport CustomHeaderButtons from \"../components/custom-header-buttons\";\n\nexport default {\n  name: \"custom-header-button\",\n\n  initialize() {\n    withPluginApi((api) => {\n      api.headerButtons.add(\"custom-header-buttons\", CustomHeaderButtons, {\n        before: \"auth\",\n      });\n    });\n  },\n};\n","import { service } from \"@ember/service\";\nimport { withPluginApi } from \"discourse/lib/plugin-api\";\nimport { i18n } from \"discourse-i18n\";\n\nexport default {\n  name: \"custom-hamburger-categories\",\n\n  initialize() {\n    withPluginApi((api) => {\n      api.addSidebarSection(\n        (BaseCustomSidebarSection, BaseCustomSidebarSectionLink) => {\n          return class extends BaseCustomSidebarSection {\n            @service site;\n\n            name = \"square\";\n            text = i18n(themePrefix(\"square.mobile_sidebar.section_title\"));\n            links = [\n              new (class extends BaseCustomSidebarSectionLink {\n                name = \"square-home\";\n                href = \"https://developer.squareup.com/\";\n                title = i18n(themePrefix(\"square.mobile_sidebar.home_title\"));\n                text = i18n(themePrefix(\"square.mobile_sidebar.home_text\"));\n                prefixType = \"icon\";\n                prefixValue = \"home\";\n              })(),\n              new (class extends BaseCustomSidebarSectionLink {\n                name = \"square-docs\";\n                href = \"https://developer.squareup.com/docs\";\n                title = i18n(themePrefix(\"square.mobile_sidebar.docs_title\"));\n                text = i18n(themePrefix(\"square.mobile_sidebar.docs_text\"));\n                prefixType = \"icon\";\n                prefixValue = \"book\";\n              })(),\n              new (class extends BaseCustomSidebarSectionLink {\n                name = \"square-api\";\n                href = \"https://developer.squareup.com/reference/square\";\n                title = i18n(themePrefix(\"square.mobile_sidebar.api_title\"));\n                text = i18n(themePrefix(\"square.mobile_sidebar.api_text\"));\n                prefixType = \"icon\";\n                prefixValue = \"code\";\n              })(),\n              new (class extends BaseCustomSidebarSectionLink {\n                name = \"square-discord\";\n                href = \"https://discord.gg/squaredev\";\n                title = i18n(\n                  themePrefix(\"square.mobile_sidebar.discord_title\")\n                );\n                text = i18n(themePrefix(\"square.mobile_sidebar.discord_text\"));\n                prefixType = \"icon\";\n                prefixValue = \"fab-discord\";\n              })(),\n              new (class extends BaseCustomSidebarSectionLink {\n                name = \"square-twitter\";\n                href = \"https://twitter.com/squaredev\";\n                title = i18n(\n                  themePrefix(\"square.mobile_sidebar.twitter_title\")\n                );\n                text = i18n(themePrefix(\"square.mobile_sidebar.twitter_text\"));\n                prefixType = \"icon\";\n                prefixValue = \"fab-twitter\";\n              })(),\n              new (class extends BaseCustomSidebarSectionLink {\n                name = \"square-support\";\n                href =\n                  \"https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68\";\n                title = i18n(\n                  themePrefix(\"square.mobile_sidebar.support_title\")\n                );\n                text = i18n(themePrefix(\"square.mobile_sidebar.support_text\"));\n                prefixType = \"icon\";\n                prefixValue = \"question-circle\";\n              })(),\n            ];\n\n            get displaySection() {\n              return this.site.mobileView;\n            }\n          };\n        }\n      );\n    });\n  },\n};\n","import * as Mod1 from \"./discourse/api-initializers/init-theme\";\nimport * as Mod2 from \"./discourse/components/custom-header-buttons\";\nimport * as Mod3 from \"./discourse/initializers/custom-header-button\";\nimport * as Mod4 from \"./discourse/initializers/init-mobile-hamburger-section\";\nconst compatModules = {\n  \"discourse/api-initializers/init-theme\": Mod1,\n  \"discourse/components/custom-header-buttons\": Mod2,\n  \"discourse/initializers/custom-header-button\": Mod3,\n  \"discourse/initializers/init-mobile-hamburger-section\": Mod4,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["themePrefix","key","getObjectForTheme","initTheme","apiInitializer","api","replaceIcon","__discourseComponentClass","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","icon","i18n","isStrictMode","templateOnly","customHeaderButton","name","initialize","withPluginApi","headerButtons","add","CustomHeaderButtons","before","initMobileHamburgerSection","addSidebarSection","BaseCustomSidebarSection","BaseCustomSidebarSectionLink","dt7948","g","this","prototype","service","site","i","text","links","href","title","prefixType","prefixValue","displaySection","mobileView","compatModules","Mod1","Mod2","Mod3"],"mappings":";AAIO,SAASA,EAAYC,GAC1B,MAAO,wBAAwBA,GACjC,CAJwBC,EAAkB;;ACA1C,IAAAC;oCAAeC,CAAgBC,IAC7BA,EAAIC,YAAY,OAAQ,sBACxBD,EAAIC,YAAY,mBAAoB,iBACpCD,EAAIC,YAAY,cAAe,eAC/BD,EAAIC,YAAY,aAAc;ACHhC,MAA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