'use strict';

const requiredFieldRule = require('./required-field-rule-d73c1d8c.js');

/**
 * A rule that checks the value is empty or not which value type is object array
 */
class FileUploaderRequiredRule extends requiredFieldRule.RequiredFieldRule {
  constructor() {
    super(...arguments);
    /**
     * re-define the object array check item type method
     *
     * @param {unknown} item the array item
     * @returns {boolean} true or false
     */
    this.checkArrayItemType = (item) => !!(item && typeof item === 'object');
  }
}

exports.FileUploaderRequiredRule = FileUploaderRequiredRule;
