{"version":3,"file":"main.CZc4E5.js","sources":["theme-26/virtual:theme","theme-26/discourse/constants.js","theme-26/discourse/components/custom-profile-page-links.gjs","theme-26/discourse/connectors/user-preferences-account/custom-profile-page-links-connector.gjs","theme-26/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(26);\n\nexport function themePrefix(key) {\n  return `theme_translations.26.${key}`;\n}\n","export default {\n  production_url: \"https://accounts.spiceworks.com\",\n  staging_url: \"https://accounts-staging.spiceworks.com\",\n  development_url: \"http://localhost:3010\",\n  changeEmailAddressLink: \"/email/change\",\n  resetPasswordLink: \"/users/reset_password_request\"\n}","import Component from \"@glimmer/component\";\nimport constants from \"../constants\";\nimport ENV from \"discourse/config/environment\";\n\nexport default class CustomProfilePageLinks extends Component {\n  constructor(owner, args) {\n    super(owner, args);\n\n    const origin = window.location.origin;\n\n    if (origin.includes(\"staging\") || origin.includes(\"discourse\")) {\n      this.change_email_address_link = constants[\"staging_url\"] + constants[\"changeEmailAddressLink\"];\n\n      this.reset_password_link = constants[\"staging_url\"] + constants[\"resetPasswordLink\"];\n    } else if (ENV.environment === \"development\") {\n      this.change_email_address_link = constants[\"development_url\"] + constants[\"changeEmailAddressLink\"];\n\n      this.reset_password_link = constants[\"development_url\"] + constants[\"resetPasswordLink\"];\n    } else {\n      this.change_email_address_link = constants[\"production_url\"] + constants[\"changeEmailAddressLink\"];\n\n      this.reset_password_link = constants[\"production_url\"] + constants[\"resetPasswordLink\"];\n    }\n  }\n\n  <template>\n    <div class=\"custom-main-container\">\n      <span class=\"main-heading\">\n        Manage your Spiceworks account\n      </span>\n\n      <a\n        href={{this.change_email_address_link}}\n        class=\"change-email-link\"\n      >\n        Change your email address\n      </a>\n\n      <a\n        href={{this.reset_password_link}}\n        class=\"reset-password-link\"\n      >\n        Reset your password\n      </a>\n    </div>\n  </template>\n}","import CustomProfilePageLinks from \"../../components/custom-profile-page-links\";\n\nexport default <template>\n  <CustomProfilePageLinks />\n</template>","import * as Mod1 from \"./discourse/components/custom-profile-page-links\";\nimport * as Mod2 from \"./discourse/connectors/user-preferences-account/custom-profile-page-links-connector.gjs\";\nimport * as Mod3 from \"./discourse/constants\";\nconst compatModules = {\n  \"discourse/components/custom-profile-page-links\": Mod1,\n  \"discourse/connectors/user-preferences-account/custom-profile-page-links-connector\": Mod2,\n  \"discourse/constants\": Mod3,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["getObjectForTheme","constants","production_url","staging_url","development_url","changeEmailAddressLink","resetPasswordLink","CustomProfilePageLinks","Component","constructor","owner","args","super","origin","window","location","includes","this","change_email_address_link","reset_password_link","ENV","environment","setComponentTemplate","createTemplateFactory","id","block","moduleName","isStrictMode","customProfilePageLinksConnector","scope","templateOnly","compatModules","Mod1","Mod3"],"mappings":";AAEwBA,EAAkB;ACF1C,IAAAC,EAAe,CACbC,eAAgB,kCAChBC,YAAa,0CACbC,gBAAiB,wBACjBC,uBAAwB,gBACxBC,kBAAmB;ACDN,MAAMC,UAA+BC,EAClDC,WAAAA,CAAYC,EAAOC,GACjBC,MAAMF,EAAOC;AAEb,MAAME,EAASC,OAAOC,SAASF;AAE3BA,EAAOG,SAAS,YAAcH,EAAOG,SAAS,cAChDC,KAAKC,0BAA4BjB,EAAU,YAAiBA,EAAU,uBAEtEgB,KAAKE,oBAAsBlB,EAAU,YAAiBA,EAAU,mBACnC,gBAApBmB,EAAIC,aACbJ,KAAKC,0BAA4BjB,EAAU,gBAAqBA,EAAU,uBAE1EgB,KAAKE,oBAAsBlB,EAAU,gBAAqBA,EAAU,oBAEpEgB,KAAKC,0BAA4BjB,EAAU,eAAoBA,EAAU,uBAEzEgB,KAAKE,oBAAsBlB,EAAU,eAAoBA,EAAU,kBAEvE,QAEAqB,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,scAAAC,WAAA,4BAAAC,cAAA,IAoBAV,KAAU;gDC3CZW,EAAAN,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,sCAAAC,WAAA,4BAAAG,MAAAA,KAAAA,CAAAtB,2BAAAoB,cAAA,IAAAG;ACCK,MAACC,EAAgB,CACpB,iDAAkDC,EAClD,8HACA,sBAAuBC;"}