"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var testkit_exports = {};
__export(testkit_exports, {
  createLineSpacingTestkit: () => createLineSpacingTestkit
});
module.exports = __toCommonJS(testkit_exports);
var import_unidriver = require("@wix/design-system/dist/testkit/unidriver.js");
var import_dropdown_modal_uni_driver = require("./../_shared/dropdown-modal/dropdown-modal-uni-driver.js");
var import_wix_rich_content_common = require("./../wix-rich-content-common/index.js");
var import_testkit = require("./../ui-components/testkit.js");
var import_data_hooks = require("./data-hooks.js");
const createLineSpacingTestkit = (getBase) => {
  return {
    content: {},
    toolbars: {
      createTextButtonToolbars: (getTextButtonBase) => {
        const getButton = async () => getTextButtonBase().get((0, import_wix_rich_content_common.dataHook)(import_data_hooks.TEXT_BUTTON_LINE_SPACING));
        return {
          click: async () => {
            const button = await getButton();
            await button.click();
          },
          dropdown: (0, import_dropdown_modal_uni_driver.createDropdownModalUniDriver)(getBase),
          spacingOptionsButton: (0, import_unidriver.TextButtonUniDriver)(
            getBase().$((0, import_wix_rich_content_common.dataHook)(import_data_hooks.SPACING_SELECTOR_BUTTON)),
            getBase()
          ),
          customSpacing: {
            lineSpacingInput: (0, import_unidriver.NumberInputUniDriver)(
              getBase().$((0, import_wix_rich_content_common.dataHook)(import_data_hooks.LINE_SPACING_INPUT)),
              getBase()
            ),
            beforeParagraphInput: (0, import_unidriver.NumberInputUniDriver)(
              getBase().$((0, import_wix_rich_content_common.dataHook)(import_data_hooks.BEFORE_PARAGRAPH_INPUT)),
              getBase()
            ),
            afterParagraphInput: (0, import_unidriver.NumberInputUniDriver)(
              getBase().$((0, import_wix_rich_content_common.dataHook)(import_data_hooks.AFTER_PARAGRAPH_INPUT)),
              getBase()
            ),
            ...(0, import_testkit.createFooterActionsUnidriver)(getBase)
          }
        };
      }
    }
  };
};
//# sourceMappingURL=testkit.js.map
