{"version":3,"sources":["../../../../src/lib/AreWatcher/AreWatcher.component.ts"],"names":[],"mappings":";;;;AAOO,IAAM,UAAA,GAAN,cAAyB,WAAA,CAAY;AAAA;AAAA;AAAA;AAAA,EAKxC,IAAA,GAA6B;AAAA,EAE7B;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA,GAA8B;AAAA,EAE9B;AAAA,EAMA,OAAA,GAAgC;AAAA,EAEhC;AACJ;AAHI,eAAA,CAAA;AAAA,EADC,UAAU,IAAA;AAAK,CAAA,EAnBP,UAAA,CAoBT,SAAA,EAAA,SAAA,EAAA,CAAA,CAAA;AApBS,UAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,UAAA,CAAA","file":"AreWatcher.component.mjs","sourcesContent":["import { A_Component, A_Concept } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n@A_Frame.Define({\n    namespace: 'A-ARE',\n    description: 'Abstract base component that observes external changes and emits A_Signals to drive reactive updates within the ARE pipeline. Subclasses override init() to set up initial state and watch() to begin observing — for example, polling a data source, listening to DOM events, or subscribing to a store — and call the appropriate signal methods to notify the engine when a re-render is needed.'\n})\nexport class AreWatcher extends A_Component {\n\n    /**\n     * Initialize the watcher. This method is called once when the watcher is first created. Use this to set up any necessary state or start observing changes.\n     */\n    init(): Promise<void> | void {\n\n    }\n\n    /**\n     * Start watching for changes. This method is called after the engine has executed. Use this to set up any necessary event listeners or intervals to observe changes and produce signals.\n     */\n    watch(): Promise<void> | void {\n\n    }\n\n    /**\n     * Stop the watcher and clean up any resources. This method is called when the watcher is being destroyed. Use this to remove any event listeners or intervals that were set up in watch() to prevent memory leaks.\n     */\n    @A_Concept.Stop()\n    destroy(): Promise<void> | void {\n\n    }\n}"]}