{"version":3,"file":"BaseBuilder-ByZeEu3_.cjs","sources":["../src/base/BaseBuilder.ts"],"sourcesContent":["import type { Builder, ComponentConfig } from '../types';\n\n/**\n * Abstract base class for all component builders\n * Implements common builder pattern functionality\n */\nexport abstract class BaseBuilder<TConfig extends ComponentConfig = ComponentConfig>\n  implements Builder<TConfig>\n{\n  protected _key?: string;\n  public _config: Partial<TConfig> = {};\n\n  /**\n   * Set a unique key for the component\n   */\n  key(k: string): this {\n    this._key = k;\n    return this;\n  }\n\n  /**\n   * Set disabled state\n   */\n  disabled(value: boolean): this {\n    this._config.disabled = value;\n    return this;\n  }\n\n  /**\n   * Set hidden state\n   */\n  hidden(value: boolean): this {\n    this._config.hidden = value;\n    return this;\n  }\n\n  /**\n   * Get the component key\n   */\n  protected getKey(): string | undefined {\n    return this._key;\n  }\n\n  /**\n   * Get the configuration\n   */\n  protected getConfig(): Partial<TConfig> {\n    return this._config;\n  }\n\n  /**\n   * Render the component - must be implemented by subclasses\n   */\n  abstract render(): React.ReactNode;\n}\n"],"names":[],"mappings":";;;;AAMO,MAAe,YAEtB;AAAA,EAFO;AAGK;AACH,mCAA4B,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKnC,IAAI,GAAiB;AACnB,SAAK,OAAO;AACZ,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,SAAS,OAAsB;AAC7B,SAAK,QAAQ,WAAW;AACxB,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,OAAO,OAAsB;AAC3B,SAAK,QAAQ,SAAS;AACtB,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKU,SAA6B;AACrC,WAAO,KAAK;AAAA,EACd;AAAA;AAAA;AAAA;AAAA,EAKU,YAA8B;AACtC,WAAO,KAAK;AAAA,EACd;AAMF;;"}