Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var React = require('react');
var outletStore = require('../../stores/outletStore');
var moment = require('moment');
var DateTimePicker = require('react-widgets').DateTimePicker;
var Alert = require('react-bootstrap').Alert;
var Link = require('react-router').Link;
// Handle user scroll and reservation choice and submit validation.
var DateTime = React.createClass({
getInitialState: function(){
return {
message: null,
alert: false,
success: false,
error: false
}
},
show: function(e){
var Col = ReactBootstrap.Col;
var Panel = ReactBootstrap.Panel;
var Form = ReactBootstrap.Form;
var FormGroup = ReactBootstrap.FormGroup;
var FormControl = ReactBootstrap.FormControl;
var InputGroup = ReactBootstrap.InputGroup;
var ControlLabel = ReactBootstrap.ControlLabel;
var HelpBlock = ReactBootstrap.HelpBlock;
var Button = ReactBootstrap.Button;
var ButtonGroup = ReactBootstrap.ButtonGroup;
var ButtonToolbar = ReactBootstrap.ButtonToolbar;
var ProgressBar = ReactBootstrap.ProgressBar;
var Glyphicon = ReactBootstrap.Glyphicon;
var ReactWidgets = require('react-widgets')
var DateTimePicker = ReactWidgets.DateTimePicker;
var Combobox = ReactWidgets.Combobox;
var DropdownList = ReactWidgets.DropdownList;
var Big = require('big.js');
var models = require('../models');
var Security = models.Security;
var Account = models.Account;
var SplitStatus = models.SplitStatus;
var SplitStatusList = models.SplitStatusList;
var SplitStatusMap = models.SplitStatusMap;
var Split = models.Split;
var Transaction = models.Transaction;
var Error = models.Error;
var getAccountDisplayName = require('../utils').getAccountDisplayName;
var React = require('react');
var bs = require('react-bootstrap');
var slugid = require('slugid');
var taskcluster = require('taskcluster-client');
var DateTimePicker = require('react-widgets').DateTimePicker;
var utils = require('../lib/utils');
var format = require('../lib/format');
var _ = require('lodash');
var ConfirmAction = require('../lib/ui/confirmaction');
var Promise = require('promise');
/** Create client editor/viewer (same thing) */
var ClientEditor = React.createClass({
/** Initialize mixins */
mixins: [
utils.createTaskClusterMixin({
clients: {
auth: taskcluster.Auth
},
reloadOnProps: ['currentClientId']
})