import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
import { n as h } from './dom-context-hooks.module-50442785.js';
import './index.module-b23fdad8.js';
import { a as useRequestRerender } from './re-render-f30aeb6b.js';

const RewardTableCustomerNoteColumn = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    /**
     * @uiName Column title
     */
    this.columnTitle = "Note";
    h(this);
  }
  disconnectedCallback() { }
  async renderCell(data, options) {
    var _a;
    const reward = data;
    return (h$1("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options === null || options === void 0 ? void 0 : options.locale }));
  }
  async renderLabel() {
    return this.columnTitle;
  }
  render() {
    useRequestRerender([this.columnTitle]);
    return h$1(Host, { style: { display: "none" } });
  }
};

export { RewardTableCustomerNoteColumn as sqm_rewards_table_customer_note_column };
