{"version":3,"file":"error-message-factories.mjs","sources":["../../src/utils/error-message-factories.ts"],"sourcesContent":["import chalk from 'chalk';\nimport boxen from 'boxen';\nimport { apiConfig } from '../config/api';\n\ntype EnvironmentErrorMessage = {\n  projectName: string;\n  firstLine: string;\n  secondLine: string;\n};\n\nexport const environmentErrorMessageFactory = ({\n  projectName,\n  firstLine,\n  secondLine,\n}: EnvironmentErrorMessage) => {\n  return [\n    chalk.yellow(firstLine),\n    '',\n    chalk.cyan(secondLine),\n    chalk.blue(' →  ') +\n      chalk.blue.underline(`${apiConfig.dashboardBaseUrl}/projects/${projectName}`),\n  ].join('\\n');\n};\n\nexport const environmentCreationErrorFactory = (environmentErrorMessage: string) =>\n  boxen(environmentErrorMessage, {\n    padding: 1,\n    margin: 1,\n    borderStyle: 'round',\n    borderColor: 'white',\n    titleAlignment: 'left',\n  });\n"],"names":["environmentErrorMessageFactory","projectName","firstLine","secondLine","chalk","yellow","cyan","blue","underline","apiConfig","dashboardBaseUrl","join","environmentCreationErrorFactory","environmentErrorMessage","boxen","padding","margin","borderStyle","borderColor","titleAlignment"],"mappings":";;;;AAUO,MAAMA,iCAAiC,CAAC,EAC7CC,WAAW,EACXC,SAAS,EACTC,UAAU,EACc,GAAA;IACxB,OAAO;AACLC,QAAAA,KAAAA,CAAMC,MAAM,CAACH,SAAAA,CAAAA;AACb,QAAA,EAAA;AACAE,QAAAA,KAAAA,CAAME,IAAI,CAACH,UAAAA,CAAAA;AACXC,QAAAA,KAAAA,CAAMG,IAAI,CAAC,MACTH,CAAAA,GAAAA,KAAAA,CAAMG,IAAI,CAACC,SAAS,CAAC,CAAA,EAAGC,SAAUC,CAAAA,gBAAgB,CAAC,UAAU,EAAET,WAAa,CAAA,CAAA;AAC/E,KAAA,CAACU,IAAI,CAAC,IAAA,CAAA;AACT;AAEaC,MAAAA,+BAAAA,GAAkC,CAACC,uBAAAA,GAC9CC,MAAMD,uBAAyB,EAAA;QAC7BE,OAAS,EAAA,CAAA;QACTC,MAAQ,EAAA,CAAA;QACRC,WAAa,EAAA,OAAA;QACbC,WAAa,EAAA,OAAA;QACbC,cAAgB,EAAA;KACf;;;;"}