{"version":3,"file":"index.mjs","names":["options: BlandClientOptions","inst: IAdminSdk","inst: IWebchatPublic","Bland"],"sources":["../src/client/client.ts","../src/index.ts"],"sourcesContent":["import { BlandClientOptions } from \"../types/client\";\nimport type { IAdminSdk } from \"./admin/admin\";\nimport type { IWebchatPublic } from \"./webchat/webchat\";\n\nclass Bland {\n  admin: BlandClientOptions[\"admin\"];\n  webchat: BlandClientOptions[\"webchat\"];\n  endpoint: string | null = null;\n\n  constructor(options: BlandClientOptions) {\n    this.admin = options.admin;\n    this.webchat = options.webchat;\n  }\n\n  public async AdminClient(): Promise<IAdminSdk> {\n    const mod = await import(\"./admin/admin\");\n    const Admin = mod.default;\n    const inst: IAdminSdk = new Admin(this);\n    return inst;\n  }\n\n  public async WebchatClient(): Promise<IWebchatPublic> {\n    const mod = await import(\"./webchat/webchat\");\n    const Webchat = mod.default;\n    const inst: IWebchatPublic = new Webchat(this);\n    return inst;\n  }\n}\n\nexport default Bland;\n","import Bland from \"./client/client\";\nimport Webchat from \"./client/webchat/webchat\";\n\nexport type { BlandClientOptions } from \"./types/client\";\nexport type {\n  IWebchatConfiguration,\n  IWebchatState,\n  IWebchatWSSettings,\n} from \"./types/webchat\";\n\nexport { Webchat };\nexport default Bland;\n"],"mappings":"qFAIA,IAAM,EAAN,KAAY,CACV,MACA,QACA,SAA0B,KAE1B,YAAYA,EAA6B,CAEvC,AADA,KAAK,MAAQ,EAAQ,MACrB,KAAK,QAAU,EAAQ,OACxB,CAED,MAAa,aAAkC,CAC7C,IAAM,EAAM,MAAM,OAAO,wBACnB,EAAQ,EAAI,QACZC,EAAkB,IAAI,EAAM,MAClC,OAAO,CACR,CAED,MAAa,eAAyC,CACpD,IAAM,EAAM,MAAM,OAAO,iBACnB,EAAU,EAAI,QACdC,EAAuB,IAAI,EAAQ,MACzC,OAAO,CACR,CACF,EAED,EAAe,EClBf,EAAeC"}