{"version":3,"file":"angular.cjs","sources":["../src/angular.ts"],"sourcesContent":["import { WidgetController } from \"./lib/widget-controller\";\nimport type { FeedgetConfig } from \"./types\";\n\nexport type { FeedgetConfig };\n\nexport class FeedgetWidgetAngular extends WidgetController {\n  mount(containerElement?: HTMLElement): void {\n    if (containerElement) this.attach(containerElement, \"feedget-widget-host\");\n    else this.attach(document.body, \"feedget-widget-container\");\n  }\n\n  unmount(): void {\n    this.destroy();\n  }\n}\n\nexport function createFeedgetWidget(\n  config: FeedgetConfig\n): FeedgetWidgetAngular {\n  return new FeedgetWidgetAngular(config);\n}\n"],"names":["FeedgetWidgetAngular","WidgetController","containerElement","createFeedgetWidget","config"],"mappings":"oIAKO,MAAMA,UAA6BC,EAAAA,gBAAiB,CACzD,MAAMC,EAAsC,CACtCA,EAAkB,KAAK,OAAOA,EAAkB,qBAAqB,EACpE,KAAK,OAAO,SAAS,KAAM,0BAA0B,CAC5D,CAEA,SAAgB,CACd,KAAK,QAAA,CACP,CACF,CAEO,SAASC,EACdC,EACsB,CACtB,OAAO,IAAIJ,EAAqBI,CAAM,CACxC"}