'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-8277cbb3.js');
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
require('./index.module-f8c8495f.js');
const reRender = require('./re-render-72a0ef45.js');

const RewardTableCustomerNoteColumn = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    /**
     * @uiName Column title
     */
    this.columnTitle = "Note";
    domContextHooks_module.h$1(this);
  }
  disconnectedCallback() { }
  async renderCell(data, options) {
    var _a;
    const reward = data;
    return (index.h("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() {
    reRender.useRequestRerender([this.columnTitle]);
    return index.h(index.Host, { style: { display: "none" } });
  }
};

exports.sqm_rewards_table_customer_note_column = RewardTableCustomerNoteColumn;
