{"version":3,"sources":["jsdelivr-header.js","/npm/coc-octobox@1.0.0/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,UAAE,UAAS,YAAE,aAAgB,QAAQ,YACrC,MAAQ,QAAQ,UAChB,cAAE,eAAkB,QAAQ,mBAElC,QAAQ,SAAW,IACjB,MAAM,cAAE,GAAkB,EACpB,EAAS,UAAU,iBAAiB,WAEpC,EAAU,QAAQ,IAAI,YACtB,EAAQ,QAAQ,IAAI,cAE1B,IAAK,EACH,OAAO,UAAU,YACf,oGACA,SAGJ,IAAK,EACH,OAAO,UAAU,YACf,sGACA,SAGJ,MAAM,EAAgB,MAAM,OAAO,CACjC,UACA,QAAS,CACP,cAAe,UAAU,IACzB,gBAAiB,KAIrB,EAAc,KACZ,YAAY,aACV,IAAI,cAAc,EAAe,UAAW,IAE/C","file":"/npm/coc-octobox@1.0.0/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/coc-octobox@1.0.0/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const { workspace, listManager } = require(\"coc.nvim\");\nconst axios = require(\"axios\");\nconst { Notifications } = require(\"./notifications\");\n\nexports.activate = context => {\n  const { subscriptions } = context;\n  const config = workspace.getConfiguration(\"octobox\");\n\n  const baseURL = process.env.OCTOBOX_URL;\n  const token = process.env.OCTOBOX_TOKEN;\n\n  if (!baseURL)\n    return workspace.showMessage(\n      \"coc-octobox could not find OCTOBOX_URL in your environment. For more information read the README.\",\n      \"error\"\n    );\n\n  if (!token)\n    return workspace.showMessage(\n      \"coc-octobox could not find OCTOBOX_TOKEN in your environment. For more information read the README.\",\n      \"error\"\n    );\n\n  const axiosInstance = axios.create({\n    baseURL,\n    headers: {\n      Authorization: `Bearer ${token}`,\n      \"X-Octobox-API\": 1\n    }\n  });\n\n  subscriptions.push(\n    listManager.registerList(\n      new Notifications(axiosInstance, workspace, config)\n    )\n  );\n};\n"]}