"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SetText = exports.SetPrintDirection = exports.SetMaxWidth = exports.SetJustification = exports.SetHorizontalLayout = exports.SetFont = exports.LoadInternalFont = exports.LoadFont = exports.DefaultPrintDirection = exports.DefaultMaxWidth = exports.DefaultJustification = exports.DefaultHorizontalLayout = exports.DefaultFont = void 0;
exports.sameGroupAs = sameGroupAs;
exports.sameGroupAs_ = sameGroupAs_;

var _Case = /*#__PURE__*/require("@effect-ts/core/Case");

var Equal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect-ts/core/Equal"));

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

// ets_tracing: off
class DefaultFont extends (0, _Case.Tagged)("DefaultFont") {
  constructor() {
    super(...arguments);
    this._actionTag = "Font";
  }

}

exports.DefaultFont = DefaultFont;

class DefaultHorizontalLayout extends (0, _Case.Tagged)("DefaultHorizontalLayout") {
  constructor() {
    super(...arguments);
    this._actionTag = "HorizontalLayout";
  }

}

exports.DefaultHorizontalLayout = DefaultHorizontalLayout;

class DefaultJustification extends (0, _Case.Tagged)("DefaultJustification") {
  constructor() {
    super(...arguments);
    this._actionTag = "Justification";
  }

}

exports.DefaultJustification = DefaultJustification;

class DefaultMaxWidth extends (0, _Case.Tagged)("DefaultMaxWidth") {
  constructor() {
    super(...arguments);
    this._actionTag = "MaxWidth";
  }

}

exports.DefaultMaxWidth = DefaultMaxWidth;

class DefaultPrintDirection extends (0, _Case.Tagged)("DefaultPrintDirection") {
  constructor() {
    super(...arguments);
    this._actionTag = "PrintDirection";
  }

}

exports.DefaultPrintDirection = DefaultPrintDirection;

class LoadFont extends (0, _Case.Tagged)("LoadFont") {
  constructor() {
    super(...arguments);
    this._actionTag = "Font";
  }

}

exports.LoadFont = LoadFont;

class LoadInternalFont extends (0, _Case.Tagged)("LoadInternalFont") {
  constructor() {
    super(...arguments);
    this._actionTag = "Font";
  }

}

exports.LoadInternalFont = LoadInternalFont;

class SetFont extends (0, _Case.Tagged)("SetFont") {
  constructor() {
    super(...arguments);
    this._actionTag = "Font";
  }

}

exports.SetFont = SetFont;

class SetHorizontalLayout extends (0, _Case.Tagged)("SetHorizontalLayout") {
  constructor() {
    super(...arguments);
    this._actionTag = "HorizontalLayout";
  }

}

exports.SetHorizontalLayout = SetHorizontalLayout;

class SetJustification extends (0, _Case.Tagged)("SetJustification") {
  constructor() {
    super(...arguments);
    this._actionTag = "Justification";
  }

}

exports.SetJustification = SetJustification;

class SetMaxWidth extends (0, _Case.Tagged)("SetMaxWidth") {
  constructor() {
    super(...arguments);
    this._actionTag = "MaxWidth";
  }

}

exports.SetMaxWidth = SetMaxWidth;

class SetPrintDirection extends (0, _Case.Tagged)("SetPrintDirection") {
  constructor() {
    super(...arguments);
    this._actionTag = "PrintDirection";
  }

}

exports.SetPrintDirection = SetPrintDirection;

class SetText extends (0, _Case.Tagged)("SetText") {
  constructor() {
    super(...arguments);
    this._actionTag = "Text";
  }

} // -----------------------------------------------------------------------------
// Operations
// -----------------------------------------------------------------------------

/**
 * Determines if two actions belong to the same group by using the action's
 * `ActionTag`.
 */


exports.SetText = SetText;

function sameGroupAs_(a, b) {
  return Equal.string.equals(a._actionTag, b._actionTag);
}
/**
 * Determines if two actions belong to the same group by using the action's
 * `ActionTag`.
 *
 * @ets_data_first sameGroupAs_
 */


function sameGroupAs(b) {
  return a => sameGroupAs_(a, b);
}
//# sourceMappingURL=index.js.map