text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.validatePublishParams = exports.validateChannelSelection = void 0;
  
  var validateChannelSelection = function validateChannelSelection(publishInChannel, selectedChannel, loggedInChannel) {
    if (publishInChannel && selectedChannel !== loggedInChannel.name) {
      throw new Error('Log in to a channel or select Anonymous');
    }
  };
  
  exports.validateChannelSelection = validateChannelSelection;
  
  var validatePublishParams = function validatePublishParams(file, claim, urlError) {
    if (!file) {
      throw new Error('Please choose a file');
    }
  
    if (!claim) {
      throw new Error('Please enter a URL');
    }
  
    if (urlError) {
      throw new Error('Fix the url');
    }
  };
  
  exports.validatePublishParams = validatePublishParams;