{"version":3,"names":["window","define","_exports","_pluginApi","Object","defineProperty","value","default","require","getObjectForTheme","name","after","initialize","withPluginApi","api","onPageChange","location","pathname","endsWith","document","querySelector","setTimeout","container","tip","createElement","className","style","cssText","innerHTML","appendChild"],"sourceRoot":"theme-41/","sources":["discourse/initializers/theme-field-931-common-html-script-1.js"],"sourcesContent":["if ('define' in window) {\ndefine(\"discourse/theme-41/discourse/initializers/theme-field-931-common-html-script-1\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(41);\n  const themePrefix = key => `theme_translations.41.${key}`;\n  var _default = _exports.default = {\n    name: \"theme-field-931-common-html-script-1\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        api.onPageChange(() => {\n          if (!window.location.pathname.endsWith(\"/u/account-created\")) return;\n          if (document.querySelector(\".ai-assistant-return-tip\")) return;\n          setTimeout(() => {\n            const container = document.querySelector(\".account-created\");\n            if (!container) return;\n            const tip = document.createElement(\"div\");\n            tip.className = \"ai-assistant-return-tip\";\n            tip.style.cssText = `\n        margin-top: 20px;\n        padding: 12px 16px;\n        background: #f5f7fa;\n        font-size: 14px;\n        line-height: 1.7;\n        color: #333;\n        border-radius: 4px;\n      `;\n            tip.innerHTML = `\n        点击\n        <a href=\"https://community.mech-mind.com.cn\"\n           target=\"_blank\"\n           style=\"\n             color:#409eff;\n             font-weight:500;\n             text-decoration:none;\n           \">\n          此处\n        </a>返回 社区主页面，您的账号在管理员审核通过后，即可登录并使用。\n      `;\n            container.appendChild(tip);\n          }, 300);\n        });\n      });\n    }\n  };\n});\n}\n"],"mappings":"AAAI,WAAYA,QAChBC,OAAO,iFAAkF,CAAC,UAAW,6BAA6B,SAAUC,EAAUC,GACpJ;AAEAC,OAAOC,eAAeH,EAAU,aAAc,CAC5CI,OAAO,IAETJ,EAASK,aAAU;AACFC,QAAQ,sCAAsCC,kBAAkB;AAElEP,EAASK,QAAU,CAChCG,KAAM,uCACNC,MAAO,iBACP,UAAAC,IACE,EAAIT,EAAWU,eAAe,OAAOC,IACnCA,EAAIC,cAAa,KACVf,OAAOgB,SAASC,SAASC,SAAS,wBACnCC,SAASC,cAAc,6BAC3BC,YAAW,KACT,MAAMC,EAAYH,SAASC,cAAc;AACzC,IAAKE,EAAW;AAChB,MAAMC,EAAMJ,SAASK,cAAc;AACnCD,EAAIE,UAAY,0BAChBF,EAAIG,MAAMC,QAAU,yMASpBJ,EAAIK,UAAY,uSAYhBN,EAAUO,YAAYN,EAAI,GACzB,KAAI,GACP,GAEN,EAEJ"}