{"version":3,"names":["window","define","_exports","Object","defineProperty","value","default","name","initialize","data","zh_CN","table_of_contents","insert_table_of_contents","en","jump_bottom","toggle_toc","show_timeline","show_toc","lang","cursor","I18n","translations","key"],"sourceRoot":"theme-7/","sources":["discourse/pre-initializers/theme-7-translations.js"],"sourcesContent":["if ('define' in window) {\ndefine(\"discourse/theme-7/discourse/pre-initializers/theme-7-translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: \"theme-7-translations\",\n    initialize() {\n      /* Translation data for theme 7 (zh_CN)*/\n      const data = {\n        \"zh_CN\": {\n          \"table_of_contents\": \"目录\",\n          \"insert_table_of_contents\": \"插入目录\"\n        },\n        \"en\": {\n          \"table_of_contents\": \"table of contents\",\n          \"insert_table_of_contents\": \"Insert table of contents\",\n          \"jump_bottom\": \"Jump to end\",\n          \"toggle_toc\": {\n            \"show_timeline\": \"Timeline\",\n            \"show_toc\": \"Contents\"\n          }\n        }\n      };\n      for (let lang in data) {\n        let cursor = I18n.translations;\n        for (let key of [lang, \"js\", \"theme_translations\"]) {\n          cursor = cursor[key] = cursor[key] || {};\n        }\n        cursor[7] = data[lang];\n      }\n    }\n  };\n});\n}\n"],"mappings":"AAAI,WAAYA,QAChBC,OAAO,oEAAqE,CAAC,YAAY,SAAUC,GACjG;AAEAC,OAAOC,eAAeF,EAAU,aAAc,CAC5CG,OAAO,IAETH,EAASI,aAAU;AACJJ,EAASI,QAAU,CAChCC,KAAM,uBACN,UAAAC,GAEE,MAAMC,EAAO,CACXC,MAAS,CACPC,kBAAqB,KACrBC,yBAA4B,QAE9BC,GAAM,CACJF,kBAAqB,oBACrBC,yBAA4B,2BAC5BE,YAAe,cACfC,WAAc,CACZC,cAAiB,WACjBC,SAAY;AAIlB,IAAK,IAAIC,KAAQT,EAAM,CACrB,IAAIU,EAASC,KAAKC;AAClB,IAAK,IAAIC,IAAO,CAACJ,EAAM,KAAM,sBAC3BC,EAASA,EAAOG,GAAOH,EAAOG,IAAQ,CAAC;AAEzCH,EAAO,GAAKV,EAAKS,EACnB,CACF,EAEJ"}