@lingk/sync 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,11 +41,34 @@ module.exports =
41
41
  /******/ return __webpack_require__(0);
42
42
  /******/ })
43
43
  /************************************************************************/
44
- /******/ ([
44
+ /******/ ((function(modules) {
45
+ // Check all modules for deduplicated modules
46
+ for(var i in modules) {
47
+ if(Object.prototype.hasOwnProperty.call(modules, i)) {
48
+ switch(typeof modules[i]) {
49
+ case "function": break;
50
+ case "object":
51
+ // Module can be created from a template
52
+ modules[i] = (function(_m) {
53
+ var args = _m.slice(1), fn = modules[_m[0]];
54
+ return function (a,b,c) {
55
+ fn.apply(this, [a,b,c].concat(args));
56
+ };
57
+ }(modules[i]));
58
+ break;
59
+ default:
60
+ // Module is a copy of another module
61
+ modules[i] = modules[modules[i]];
62
+ break;
63
+ }
64
+ }
65
+ }
66
+ return modules;
67
+ }([
45
68
  /* 0 */
46
69
  /***/ function(module, exports, __webpack_require__) {
47
70
 
48
- module.exports = __webpack_require__(17);
71
+ module.exports = __webpack_require__(37);
49
72
 
50
73
 
51
74
  /***/ },
@@ -55,20 +78,4228 @@ module.exports =
55
78
  module.exports = require("react");
56
79
 
57
80
  /***/ },
58
- /* 2 */,
59
- /* 3 */,
60
- /* 4 */,
81
+ /* 2 */
82
+ /***/ function(module, exports) {
83
+
84
+ module.exports = require("redux-form");
85
+
86
+ /***/ },
87
+ /* 3 */
88
+ /***/ function(module, exports, __webpack_require__) {
89
+
90
+ 'use strict';
91
+
92
+ Object.defineProperty(exports, "__esModule", {
93
+ value: true
94
+ });
95
+
96
+ var _react = __webpack_require__(1);
97
+
98
+ var _react2 = _interopRequireDefault(_react);
99
+
100
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
101
+
102
+ var NavButtons = function NavButtons(props) {
103
+ var Button = props.inputs.Button;
104
+ return _react2.default.createElement(
105
+ 'div',
106
+ { style: { marginTop: 12, width: '100%' } },
107
+ !props.nav.first ? _react2.default.createElement(
108
+ Button,
109
+ {
110
+ type: 'neutral',
111
+ icon: 'back',
112
+ iconAlign: 'left',
113
+ onClick: props.nav.previousPage
114
+ },
115
+ 'Back'
116
+ ) : null,
117
+ !props.nav.last ? _react2.default.createElement(
118
+ Button,
119
+ {
120
+ type: 'brand',
121
+ icon: 'forward',
122
+ iconAlign: 'right',
123
+ onClick: props.nav.nextPage,
124
+ style: { float: 'right', marginRight: 14 }
125
+ },
126
+ 'Next'
127
+ ) : null,
128
+ _react2.default.createElement(
129
+ Button,
130
+ {
131
+ type: 'brand',
132
+ icon: 'close',
133
+ iconAlign: 'right',
134
+ onClick: function onClick() {
135
+ props.handleSubmit();
136
+ setTimeout(function () {
137
+ return props.reset();
138
+ }, 100);
139
+ },
140
+ style: { float: 'right', marginRight: 14 }
141
+ },
142
+ props.nav.last ? 'Finish' : 'Save And Exit'
143
+ )
144
+ );
145
+ };
146
+
147
+ exports.default = NavButtons;
148
+
149
+ /***/ },
150
+ /* 4 */
151
+ /***/ function(module, exports) {
152
+
153
+ "use strict";
154
+
155
+ Object.defineProperty(exports, "__esModule", {
156
+ value: true
157
+ });
158
+ var validate = function validate(values) {
159
+ var errors = {};
160
+ /*if (!values.configured) {
161
+ errors.configured = 'Please configure Banner Adapter before continuing'
162
+ }
163
+ if (!values.customer) {
164
+ errors.customer = 'Please choose a customer type'
165
+ } else if(!(values.newCustomer || values.existingCustomer)) {
166
+ errors.customer = 'Please choose a customer'
167
+ }
168
+ if (!values.environment) {
169
+ errors.environment = 'Please choose an environment type'
170
+ } else if(!(values.newEnvironment || values.existingEnvironment)) {
171
+ errors.environment = 'Please choose an environment'
172
+ }
173
+ return errors*/
174
+ };
175
+
176
+ exports.default = validate;
177
+
178
+ /***/ },
61
179
  /* 5 */
62
180
  /***/ function(module, exports) {
63
181
 
64
- module.exports = require("react-lightning-design-system");
182
+ module.exports = require("react-lightning-design-system");
183
+
184
+ /***/ },
185
+ /* 6 */
186
+ /***/ function(module, exports) {
187
+
188
+ 'use strict';
189
+
190
+ Object.defineProperty(exports, "__esModule", {
191
+ value: true
192
+ });
193
+ // Wizard
194
+ var SET_WIZARD_DATA_ENTITIES = exports.SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';
195
+ var SET_WIZARD_RESOURCE_META = exports.SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';
196
+ var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
197
+ var SET_WIZARD_DATA = exports.SET_WIZARD_DATA = 'SET_WIZARD_DATA';
198
+ var SET_WIZARD_SAVED_SCHEMAS = exports.SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';
199
+
200
+ /***/ },
201
+ /* 7 */
202
+ /***/ function(module, exports) {
203
+
204
+ module.exports = require("react-redux");
205
+
206
+ /***/ },
207
+ /* 8 */
208
+ /***/ function(module, exports, __webpack_require__) {
209
+
210
+ 'use strict';
211
+
212
+ Object.defineProperty(exports, "__esModule", {
213
+ value: true
214
+ });
215
+ exports.testAjax = testAjax;
216
+ exports.callGetWizardSourceData = callGetWizardSourceData;
217
+ exports.callPreview = callPreview;
218
+ exports.changeWizardData = changeWizardData;
219
+ exports.addEntityToWizardData = addEntityToWizardData;
220
+ exports.addFieldToWizardData = addFieldToWizardData;
221
+ exports.callGetSchemasForProvider = callGetSchemasForProvider;
222
+ exports.clearSavedSchemas = clearSavedSchemas;
223
+ exports.callPostSchema = callPostSchema;
224
+ exports.callPostMapping = callPostMapping;
225
+ exports.callPostProductizedIntegration = callPostProductizedIntegration;
226
+ exports.callGenerateIntegration = callGenerateIntegration;
227
+ exports.callGetTransformersAfterGeneration = callGetTransformersAfterGeneration;
228
+ exports.submitWizardData = submitWizardData;
229
+ exports.callGetWizardDataEntities = callGetWizardDataEntities;
230
+ exports.callGetWizardResourceMeta = callGetWizardResourceMeta;
231
+ exports.clearWizardResourceMeta = clearWizardResourceMeta;
232
+
233
+ var _types = __webpack_require__(6);
234
+
235
+ var types = _interopRequireWildcard(_types);
236
+
237
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
238
+
239
+ var axios = __webpack_require__(26);
240
+ function testAjax() {
241
+ return function (dispatch, getState, api) {
242
+ var _getState = getState(),
243
+ config = _getState.config;
244
+
245
+ var CUSTOM = config.CUSTOM;
246
+
247
+ return api.get('http://echo.jsontest.com/name/evan', {
248
+ endpoint: CUSTOM
249
+ }).then(function (data) {
250
+ console.log(data);
251
+ });
252
+ };
253
+ }
254
+
255
+ function callGetWizardSourceData(url) {
256
+ return function (dispatch) {
257
+ dispatch({
258
+ type: types.SET_WIZARD_LOADED,
259
+ bool: false
260
+ });
261
+ return axios(url, {
262
+ method: 'get'
263
+ }).then(function (data) {
264
+ dispatch({
265
+ type: types.SET_WIZARD_LOADED,
266
+ bool: true
267
+ });
268
+ }).catch(function (error) {
269
+ dispatch({
270
+ type: types.SET_WIZARD_LOADED,
271
+ bool: true
272
+ });
273
+ });
274
+ };
275
+ }
276
+
277
+ function callPreview(url) {
278
+ return function (dispatch, getState) {
279
+ dispatch({
280
+ type: types.SET_WIZARD_LOADED,
281
+ bool: false
282
+ });
283
+ return axios(url, {
284
+ method: 'post',
285
+ headers: {
286
+ 'Content-Type': 'application/json'
287
+ }
288
+ }).then(function (data) {
289
+ /* dispatch({
290
+ type: types.SET_WIZARD_PREVIEW_DATA,
291
+ data: data.data[0].form_data
292
+ })*/
293
+ });
294
+ };
295
+ }
296
+
297
+ function changeWizardData(data, mode) {
298
+ return function (dispatch, getState) {
299
+ var _getState2 = getState(),
300
+ wizard = _getState2.wizard;
301
+
302
+ var wizData = Object.assign({}, wizard.data) || {};
303
+ wizData[mode] = data;
304
+ dispatch({
305
+ type: types.SET_WIZARD_DATA,
306
+ data: wizData
307
+ });
308
+ };
309
+ }
310
+
311
+ function addEntityToWizardData(entity, mode) {
312
+ return function (dispatch, getState) {
313
+ var _getState3 = getState(),
314
+ wizard = _getState3.wizard;
315
+
316
+ var wizData = Object.assign({}, wizard.data) || {};
317
+ var obj = Object.assign({}, wizData[mode]) || {};
318
+ obj[entity] = {};
319
+ wizData[mode] = obj;
320
+ dispatch({
321
+ type: types.SET_WIZARD_DATA,
322
+ data: wizData
323
+ });
324
+ };
325
+ }
326
+
327
+ function addFieldToWizardData(field, entity, mode) {
328
+ return function (dispatch, getState) {
329
+ var _getState4 = getState(),
330
+ wizard = _getState4.wizard;
331
+
332
+ var wizData = Object.assign({}, wizard.data) || {};
333
+ var obj = Object.assign({}, wizData[mode]) || {};
334
+ var entityObj = Object.assign({}, obj[entity]) || {};
335
+ entityObj[field] = true;
336
+ obj[entity] = entityObj;
337
+ wizData[mode] = obj;
338
+ dispatch({
339
+ type: types.SET_WIZARD_DATA,
340
+ data: wizData
341
+ });
342
+ };
343
+ }
344
+
345
+ function callGetSchemasForProvider(tenantId, appId, providerType) {
346
+ return function (dispatch, getState, api) {
347
+ var _getState5 = getState(),
348
+ config = _getState5.config;
349
+
350
+ var TRANS_API_URL = config.TRANS_API_URL;
351
+
352
+ return api.get(tenantId + '/' + appId + '/schemas/' + providerType, {
353
+ endpoint: TRANS_API_URL
354
+ }).then(function (data) {
355
+ dispatch({
356
+ type: types.SET_WIZARD_SAVED_SCHEMAS,
357
+ data: data
358
+ });
359
+ });
360
+ };
361
+ }
362
+
363
+ function clearSavedSchemas() {
364
+ return function (dispatch) {
365
+ dispatch({
366
+ type: types.SET_WIZARD_SAVED_SCHEMAS,
367
+ data: []
368
+ });
369
+ };
370
+ }
371
+
372
+ function callPostSchema(tenantId, appId, data) {
373
+ return function (dispatch, getState, api) {
374
+ var _getState6 = getState(),
375
+ config = _getState6.config;
376
+
377
+ var TRANS_API_URL = config.TRANS_API_URL;
378
+
379
+ return api.post(tenantId + '/' + appId + '/schemas', {
380
+ endpoint: TRANS_API_URL,
381
+ data: data
382
+ }).then(function (res) {
383
+ return res.schemaGuid;
384
+ });
385
+ };
386
+ }
387
+
388
+ function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
389
+ return function (dispatch, getState, api) {
390
+ var _getState7 = getState(),
391
+ config = _getState7.config;
392
+
393
+ var TRANS_API_URL = config.TRANS_API_URL;
394
+
395
+ var data = {
396
+ schemaFromGuid: schemaFromGuid,
397
+ schemaToGuid: schemaToGuid,
398
+ mappings: mappings
399
+ };
400
+ return api.post(tenantId + '/' + appId + '/schemamappings', {
401
+ endpoint: TRANS_API_URL,
402
+ data: data
403
+ }).then(function (res) {
404
+ return res;
405
+ });
406
+ };
407
+ }
408
+
409
+ function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title) {
410
+ return function (dispatch, getState, api) {
411
+ var _getState8 = getState(),
412
+ config = _getState8.config;
413
+
414
+ var TRANS_API_URL = config.TRANS_API_URL;
415
+
416
+ var data = {
417
+ schemaMappingGuid: schemaMappingGuid,
418
+ integrationTypeGuid: '9090b61412a74d97ad9ed02c5fc7e704',
419
+ name: title,
420
+ configuration: configuration
421
+ };
422
+ return api.post(tenantId + '/' + appId + '/productizedintegrations', {
423
+ endpoint: TRANS_API_URL,
424
+ data: data
425
+ }).then(function (pi) {
426
+ return pi;
427
+ });
428
+ };
429
+ }
430
+
431
+ function callGenerateIntegration(tenantId, appId, piGuid) {
432
+ return function (dispatch, getState, api) {
433
+ var _getState9 = getState(),
434
+ config = _getState9.config;
435
+
436
+ var TRANS_API_URL = config.TRANS_API_URL;
437
+
438
+ return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
439
+ endpoint: TRANS_API_URL
440
+ }).then(function (res) {
441
+ console.log(res);
442
+ dispatch(callGetTransformersAfterGeneration(appId));
443
+ });
444
+ };
445
+ }
446
+
447
+ function callGetTransformersAfterGeneration(appId) {
448
+ return function (dispatch, getState, api) {
449
+ var _getState10 = getState(),
450
+ config = _getState10.config;
451
+
452
+ var TRANS_API_URL = config.TRANS_API_URL;
453
+
454
+ return api.get('transformers/' + appId, {
455
+ endpoint: TRANS_API_URL
456
+ }).then(function (data) {
457
+ dispatch({
458
+ type: types.SET_TRANSFORMERS,
459
+ data: data
460
+ });
461
+ });
462
+ };
463
+ }
464
+
465
+ function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title) {
466
+ return function (dispatch) {
467
+ return Promise.all([dispatch(callPostSchema(tenantId, appId, sourceSchema)), dispatch(callPostSchema(tenantId, appId, destinationSchema))]).then(function (guids) {
468
+ return dispatch(callPostMapping(tenantId, appId, guids[0], guids[1], mapping)).then(function (res) {
469
+ dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title)).then(function (pi) {
470
+ dispatch(callGenerateIntegration(tenantId, appId, pi.productizedIntegrationGuid));
471
+ });
472
+ });
473
+ });
474
+ };
475
+ }
476
+
477
+ function callGetWizardDataEntities(hubId) {
478
+ return function (dispatch, getState, api) {
479
+ var _getState11 = getState(),
480
+ config = _getState11.config;
481
+
482
+ var API_URL = config.API_URL;
483
+
484
+ return api.get('apihubs/' + hubId, {
485
+ endpoint: API_URL
486
+ }).then(function (data) {
487
+ dispatch({
488
+ type: types.SET_WIZARD_DATA_ENTITIES,
489
+ data: data
490
+ });
491
+ });
492
+ };
493
+ }
494
+
495
+ function callGetWizardResourceMeta(resourceId) {
496
+ return function (dispatch, getState, api) {
497
+ var _getState12 = getState(),
498
+ config = _getState12.config;
499
+
500
+ var API_URL = config.API_URL;
501
+
502
+ return api.get('resourcemetas/' + resourceId, {
503
+ endpoint: API_URL
504
+ }).then(function (data) {
505
+ dispatch({
506
+ type: types.SET_WIZARD_RESOURCE_META,
507
+ data: data
508
+ });
509
+ });
510
+ };
511
+ }
512
+
513
+ function clearWizardResourceMeta() {
514
+ return function (dispatch) {
515
+ var data = [];
516
+ dispatch({
517
+ type: types.SET_WIZARD_RESOURCE_META,
518
+ data: data
519
+ });
520
+ };
521
+ }
522
+
523
+ /***/ },
524
+ /* 9 */
525
+ /***/ function(module, exports) {
526
+
527
+ 'use strict';
528
+
529
+ Object.defineProperty(exports, "__esModule", {
530
+ value: true
531
+ });
532
+ var providerTypes = exports.providerTypes = {
533
+ Salesforce: {
534
+ credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'API Key' }]
535
+ },
536
+ API: {
537
+ credentials: [{ name: 'Consumer Key' }, { name: 'Secret' }]
538
+ },
539
+ FTP: {
540
+ credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'Public Key' }]
541
+ },
542
+ Banner: {
543
+ credentials: null
544
+ }
545
+ };
546
+
547
+ /***/ },
548
+ /* 10 */
549
+ /***/ function(module, exports) {
550
+
551
+ 'use strict';
552
+
553
+ Object.defineProperty(exports, "__esModule", {
554
+ value: true
555
+ });
556
+ var wizards = exports.wizards = {
557
+ 1: { // Banner to Salesforce
558
+ title: 'Banner to Salesforce',
559
+ sourceProvider: 'Banner',
560
+ sourceProviderType: 'Banner',
561
+ destinationProvider: 'Salesforce',
562
+ destinationProviderType: 'Salesforce',
563
+ customStep: {
564
+ type: 'bannerAdapter',
565
+ title: 'Banner Adapter'
566
+ },
567
+ deployment: {
568
+ 'once': 'Run Once',
569
+ 'scheduled': 'Timed Schedule'
570
+ },
571
+ sourceDefaultSchema: {
572
+ Staff: {
573
+ 'Birthdate': true,
574
+ 'Last Modified': true,
575
+ 'Birthdate Verification': true,
576
+ 'Hispanic Latino Ethnicity': true,
577
+ 'External Id': true,
578
+ 'Prefix': true,
579
+ 'First Name': true,
580
+ 'Last Name': true,
581
+ 'Middle Name': true,
582
+ 'Other First Name': true,
583
+ 'Other Last Name': true,
584
+ 'Other Middle Name': true,
585
+ 'Other Name': true,
586
+ 'Other Name Type': true,
587
+ 'Suffix': true,
588
+ 'Gender': true,
589
+ 'US Citizenship Status': true,
590
+ 'Proof Of Residency Type': true,
591
+ 'State Of Residence': true,
592
+ 'Visa Type': true,
593
+ 'Highest Education Level Completed': true,
594
+ 'Identifier': true,
595
+ 'Identification System': true,
596
+ 'Personal Verification Identification Type': true
597
+ },
598
+ Student: {
599
+ 'Birthdate': true,
600
+ 'Birthdate Verification': true,
601
+ 'Last Modified': true,
602
+ 'Hispanic Latino Ethnicity': true,
603
+ 'Disability Status': true,
604
+ 'Gender': true,
605
+ 'US Citizenship Status': true,
606
+ 'Proof Of Residency Type': true,
607
+ 'External Id': true,
608
+ 'Prefix': true,
609
+ 'First Name': true,
610
+ 'Last Name': true,
611
+ 'Middle Name': true,
612
+ 'Other First Name': true,
613
+ 'Other Last Name': true,
614
+ 'Other Middle Name': true,
615
+ 'Other Name': true,
616
+ 'Other Name Type': true,
617
+ 'Suffix': true,
618
+ 'State Of Residence': true,
619
+ 'Visa Type': true,
620
+ 'Highest Education Level Completed': true,
621
+ 'Identifier': true,
622
+ 'Identification System': true,
623
+ 'Personal Verification Identification Type': true,
624
+ 'Accommodations Needed Type': true,
625
+ 'Disability ConditionStatus Type': true,
626
+ 'Disability Condition Type': true,
627
+ 'Disability Determination Source Type': true,
628
+ 'Primary Disability Type': true
629
+ },
630
+ 'Course': {
631
+ 'Facility External Id': true,
632
+ 'Institution External Id': true,
633
+ 'Department External Id': true,
634
+ 'Last Modified': true,
635
+ 'NCAA Eligibility': true,
636
+ 'Instructional Minutes': true,
637
+ 'External Id': true,
638
+ 'Course Title': true,
639
+ 'Course Number': true,
640
+ 'Description': true,
641
+ 'Classification Of Instructional Program Code': true,
642
+ 'Credit Units Type': true,
643
+ 'Credit Value': true,
644
+ 'NCES College Course Map Code': true,
645
+ 'Certification Description': true,
646
+ 'Course Applicable Education Level': true,
647
+ 'Course Level Characteristics': true,
648
+ 'Credit Basis Type': true,
649
+ 'Credit Level Type': true,
650
+ 'Instruction Langauge': true,
651
+ 'Agency Course Identifier': true,
652
+ 'Original Course Identifier': true,
653
+ 'Override School Course Number': true,
654
+ 'Sequence Of Course': true,
655
+ 'Subject Abbreviation': true
656
+ },
657
+ 'Course Section': {
658
+ 'Course Credit Value': true,
659
+ 'Time Required For Completion': true,
660
+ 'Last Modified': true,
661
+ 'Virtual Indicator': true,
662
+ 'Work Based Learning Opportunity Type': true,
663
+ 'Institution External Id': true,
664
+ 'Additional Credit Type': true,
665
+ 'Advanced Placement Course Code': true,
666
+ 'Class Beginning Time': true,
667
+ 'Class Ending Time': true,
668
+ 'Class Meeting Days': true,
669
+ 'Course Level Type': true,
670
+ 'Course Section Delivery Mode': true,
671
+ 'Credit Type Earned': true,
672
+ 'Honors Type': true,
673
+ 'Instruction Method': true,
674
+ 'Instruction Site Name': true,
675
+ 'Instruction Site Type': true,
676
+ 'Related Learning Standards': true,
677
+ 'Single Sex Class Status': true,
678
+ 'Class Period': true,
679
+ 'External Id': true,
680
+ 'Course Section Number': true,
681
+ 'Course External Id': true,
682
+ 'Calendar Session External Id': true,
683
+ 'Classification Of Instructional Program Code': true,
684
+ 'Time Day Identifier': true,
685
+ 'Developmental Education Type': true,
686
+ 'Grade Point Average Applicability': true
687
+ },
688
+ 'Program': {
689
+ 'Capacity': true,
690
+ 'CurrentEnrollment': true,
691
+ 'Name': true,
692
+ 'Last Modified': true,
693
+ 'Length Hours': true,
694
+ 'External Id': true,
695
+ 'Classification Of Instructional Program Code': true,
696
+ 'Classification Of Instructional Program Version': true,
697
+ 'Length Hours Type': true,
698
+ 'Normal Length of Time for Completion': true,
699
+ 'Normal Length of Time for Completion Units': true,
700
+ 'Postsecondary Program Level': true
701
+ },
702
+ 'Student Enrollment': {
703
+ 'Entry Date Into Postsecondary': true,
704
+ 'Last Modified': true,
705
+ 'Postsecondary Entering Student Ind': true,
706
+ 'First Time Postsecondary Student': true,
707
+ 'Distance Education Program Enrollment Indicator': true,
708
+ 'Degree Or Certificate Seeking Student': true,
709
+ 'Instructional Activity Hours Attempted': true,
710
+ 'Student External Id': true,
711
+ 'Enrollment Type': true,
712
+ 'Student Level Id': true,
713
+ 'Initial Enrollment Term': true,
714
+ 'Term Enrollment Status': true,
715
+ 'Developmental Education Type': true,
716
+ 'Enrollment In Postsecondary Award Type': true,
717
+ 'Developmental Education Referral Status': true,
718
+ 'Directory Information Block Status': true,
719
+ 'Enrollment Award Type': true,
720
+ 'Instructional Activity Hours Type': true,
721
+ 'Transfer Ready': true
722
+ },
723
+ 'Student Program': {
724
+ 'Last Modified': true,
725
+ 'Participation Start Date': true,
726
+ 'Participation Exit Date': true,
727
+ 'Student External Id': true,
728
+ 'Program External Id': true,
729
+ 'Program Participation Status': true,
730
+ 'Transfer Out Indicator': true,
731
+ 'Work Based Learning Opportunity Type': true,
732
+ 'Classification Of Instructional Program Use': true
733
+ },
734
+ 'Institution': {
735
+ 'Virtual Indicator': true,
736
+ 'External Id': true,
737
+ 'Name': true,
738
+ 'Carnegie Basic Classification': true,
739
+ 'Control Of Institution': true,
740
+ 'Level Of Institution': true,
741
+ 'Predominant Calendar System': true
742
+ },
743
+ 'Learner Action': {
744
+ 'Performed At': true,
745
+ 'Last Modified': true,
746
+ 'Learner Action Guid': true,
747
+ 'Actor Id': true,
748
+ 'Student External Id': true,
749
+ 'Object Description': true,
750
+ 'Object Id': true,
751
+ 'Object Type': true,
752
+ 'Action Type': true,
753
+ 'Value': true
754
+ },
755
+ 'Student Email': {
756
+ 'Student External Id': true,
757
+ 'Email Address': true,
758
+ 'Email Address Type': true,
759
+ 'Last Modified': true,
760
+ 'Is Primary': true
761
+ },
762
+ 'Student Address': {
763
+ 'Student External Id': true,
764
+ 'Last Modified': true,
765
+ 'Is Primary': true,
766
+ 'Street Number And Name': true,
767
+ 'Apartment Room Or Suite Number': true,
768
+ 'City': true,
769
+ 'State': true,
770
+ 'Postal Code': true,
771
+ 'County': true,
772
+ 'Country Code': true,
773
+ 'Latitude': true,
774
+ 'Longitude': true,
775
+ 'Personal Verification Identification Type': true,
776
+ 'Address Type': true
777
+ },
778
+ 'Student Telephone': {
779
+ 'Last Modified': true,
780
+ 'Is Primary': true,
781
+ 'Student External Id': true,
782
+ 'Telephone Number Type': true,
783
+ 'Telephone Number': true
784
+ },
785
+ 'Student Section': {
786
+ 'Course Add Date': true,
787
+ 'Course Drop Date': true,
788
+ 'Last Modified': true,
789
+ 'Degree Applicability': true,
790
+ 'Number Of Credits Earned': true,
791
+ 'Quality Points Earned': true,
792
+ 'Student External Id': true,
793
+ 'Course Section External Id': true,
794
+ 'Academic Grade Scale Code': true,
795
+ 'Course Repeat Code': true,
796
+ 'Academic Grade': true,
797
+ 'Academic Grade Status Code': true,
798
+ 'Course Override School': true,
799
+ 'Enrollment Guid': true,
800
+ 'Grade Narrative': true,
801
+ 'Narrative Explanation Grade': true
802
+ },
803
+ 'Staff Email': {
804
+ 'Last Modified': true,
805
+ 'Is Primary': true,
806
+ 'Staff External Id': true,
807
+ 'Email Address': true,
808
+ 'Email Address Type': true
809
+ },
810
+ 'Staff Address': {
811
+ 'Last Modified': true,
812
+ 'Is Primary': true,
813
+ 'Staff External Id': true,
814
+ 'Street Number And Name': true,
815
+ 'Apartment Room Or Suite Number': true,
816
+ 'City': true,
817
+ 'State': true,
818
+ 'Postal Code': true,
819
+ 'County': true,
820
+ 'Country Code': true,
821
+ 'Latitude': true,
822
+ 'Longitude': true,
823
+ 'Personal Verification Identification Type': true,
824
+ 'Address Type': true
825
+ },
826
+ 'Staff Telephone': {
827
+ 'Last Modified': true,
828
+ 'Is Primary': true,
829
+ 'Staff External Id': true,
830
+ 'Telephone Number Type': true,
831
+ 'Telephone Number': true
832
+ },
833
+ 'Calendar Session': {
834
+ 'Begin Date': true,
835
+ 'End Date': true,
836
+ 'First Instruction Date': true,
837
+ 'Last Instruction Date': true,
838
+ 'Last Modified': true,
839
+ 'Marking Term Indicator': true,
840
+ 'Instructional Minutes': true,
841
+ 'Days In Session': true,
842
+ 'Minutes Per Day': true,
843
+ 'External Id': true,
844
+ 'Designator': true,
845
+ 'Description': true,
846
+ 'Session Type': true,
847
+ 'Scheduling Term Indicator': true,
848
+ 'Attendance Term Indicator': true,
849
+ 'Session Start Time': true,
850
+ 'Session End Time': true
851
+ },
852
+ 'Student Authentication': {
853
+ 'Identity Provider Name': true,
854
+ 'Identity Provider Uri': true,
855
+ 'Start Date': true,
856
+ 'End Date': true,
857
+ 'Last Modified': true,
858
+ 'Login Identifier': true,
859
+ 'External Id': true,
860
+ 'Student External Id': true
861
+ },
862
+ 'Section Instructor': {
863
+ 'Last Modified': true,
864
+ 'Course Section External Id': true,
865
+ 'Staff External Id': true
866
+ },
867
+ 'Staff Authentication': {
868
+ 'Start Date': true,
869
+ 'End Date': true,
870
+ 'Last Modified': true,
871
+ 'External Id': true,
872
+ 'Staff External Id': true,
873
+ 'Identity Provider Name': true,
874
+ 'Identity Provider Uri': true,
875
+ 'Login Identifier': true
876
+ },
877
+ 'Department': {
878
+ 'External Id': true,
879
+ 'Name': true,
880
+ 'Short Name': true,
881
+ 'Last Modified': true
882
+ },
883
+ 'Course Section Schedule': {
884
+ 'External Id': true,
885
+ 'Course Section External ID': true,
886
+ 'Class Beginning Time': true,
887
+ 'Class Ending Time': true,
888
+ 'Class Meeting Days': true,
889
+ 'Instruction Site Name': true,
890
+ 'Instruction Site Type': true,
891
+ 'Time Day Identifier': true,
892
+ 'Last Modified': true,
893
+ 'Class Period': true,
894
+ 'Instruction Method': true
895
+ },
896
+ 'Facility': {
897
+ 'External Id': true,
898
+ 'Identifier': true,
899
+ 'Building Name': true,
900
+ 'Space Description': true,
901
+ 'Space Use Type': true,
902
+ 'Binlding Site Number': true,
903
+ 'Building Use Type': true,
904
+ 'Last Modified': true
905
+ }
906
+ },
907
+ destinationDefaultSchema: {
908
+ 'Account': {
909
+ 'Account Description': true,
910
+ 'Account Fax': true,
911
+ 'Account ID': true,
912
+ 'Account Name': true,
913
+ 'Account Phone': true,
914
+ 'Account Source': true,
915
+ 'Account Type': true,
916
+ 'Annual Revenue': true,
917
+ 'Billing Address': true,
918
+ 'Billing City': true,
919
+ 'Billing Country': true,
920
+ 'Billing Geocode Accuracy': true,
921
+ 'Billing Latitude': true,
922
+ 'Billing Longitude': true,
923
+ 'Billing State/Province': true,
924
+ 'Billing Street': true,
925
+ 'Billing Zip/Postal Code': true,
926
+ 'Created By ID': true,
927
+ 'Created Date': true,
928
+ 'Current Address': true,
929
+ 'Customer Portal Account': true,
930
+ 'Deleted': true,
931
+ 'Employees': true,
932
+ 'Industry': true,
933
+ 'Jigsaw Company ID': true,
934
+ 'Last Activity': true,
935
+ 'Last Modified By ID': true,
936
+ 'Last Modified Date': true,
937
+ 'Last Referenced Date': true,
938
+ 'Last Viewed Date': true,
939
+ 'Master Record ID': true,
940
+ 'Owner ID': true,
941
+ 'Parent Account ID': true,
942
+ 'Photo URL': true,
943
+ 'Record Type ID': true,
944
+ 'Shipping Address': true,
945
+ 'Shipping City': true,
946
+ 'Shipping Country': true,
947
+ 'Shipping Geocode Accuracy': true,
948
+ 'Shipping Latitude': true,
949
+ 'Shipping Longitude': true,
950
+ 'Shipping State/Province': true,
951
+ 'Shipping Street': true,
952
+ 'Shipping Zip/Postal Code': true,
953
+ 'SIC Description': true,
954
+ 'System Modstamp': true,
955
+ 'Website': true
956
+ },
957
+ 'Contact': {
958
+ 'Account ID': true,
959
+ 'Allow Customer Portal Self-Registration': true,
960
+ 'Alternate Email': true,
961
+ "Assistant's Name": true,
962
+ "Assistant's Phone": true,
963
+ 'Birthdate': true,
964
+ 'Business Fax': true,
965
+ 'Business Phone': true,
966
+ 'Citizenship': true,
967
+ 'Contact Description': true,
968
+ 'Contact ID': true,
969
+ 'Country of Origin': true,
970
+ 'Created By ID': true,
971
+ 'Created Date': true,
972
+ 'Current Address': true,
973
+ 'Deceased': true,
974
+ 'Deleted': true,
975
+ 'Department': true,
976
+ 'Do Not Automatically Update': true,
977
+ 'Do Not Call': true,
978
+ 'Do Not Contact': true,
979
+ 'Email': true,
980
+ 'Email Bounced Date': true,
981
+ 'Email Bounced Reason': true,
982
+ 'Email Opt Out': true,
983
+ 'Ethnicity': true,
984
+ 'Exclude from Household Formal Greeting': true,
985
+ 'Exclude from Household Informal Greeting': true,
986
+ 'Exclude from Household Name': true,
987
+ 'Fax Opt Out': true,
988
+ 'FERPA': true,
989
+ 'Financial Aid Applicant': true,
990
+ 'First Name': true,
991
+ 'Full Name': true,
992
+ 'Gender': true,
993
+ 'HIPAA': true,
994
+ 'HIPAA Detail': true,
995
+ 'Home Phone': true,
996
+ 'Is Email Bounced': true,
997
+ 'Jigsaw Contact ID': true,
998
+ 'Last Activity': true,
999
+ 'Last Modified By ID': true,
1000
+ 'Last Modified Date': true,
1001
+ 'Last Name': true,
1002
+ 'Last Referenced Date': true,
1003
+ 'Last Stay-in-Touch Request Date': true,
1004
+ 'Last Stay-in-Touch Save Date': true,
1005
+ 'Last Viewed Date': true,
1006
+ 'Lead Source': true,
1007
+ 'Mailing Address': true,
1008
+ 'Mailing City': true,
1009
+ 'Mailing Country': true,
1010
+ 'Mailing Geocode Accuracy': true,
1011
+ 'Mailing Latitude': true,
1012
+ 'Mailing Longitude': true,
1013
+ 'Mailing State/Province': true,
1014
+ 'Mailing Street': true,
1015
+ 'Mailing Zip/Postal Code': true,
1016
+ 'Master Record ID': true,
1017
+ 'Military Background': true,
1018
+ 'Military Service': true,
1019
+ 'Mobile Phone': true,
1020
+ 'Naming Exclusions': true,
1021
+ 'Other Address': true,
1022
+ 'Other City': true,
1023
+ 'Other Country': true,
1024
+ 'Other Geocode Accuracy': true,
1025
+ 'Other Latitude': true,
1026
+ 'Other Longitude': true,
1027
+ 'Other Phone': true,
1028
+ 'Other State/Province': true,
1029
+ 'Other Street': true,
1030
+ 'Other Zip/Postal Code': true,
1031
+ 'Owner ID': true,
1032
+ 'Photo URL': true,
1033
+ 'Preferred Email': true,
1034
+ 'Preferred Phone': true,
1035
+ 'Primary Address Type': true,
1036
+ 'Primary Business Organization': true,
1037
+ 'Primary Household': true,
1038
+ 'Religion': true,
1039
+ 'Reports To ID': true,
1040
+ 'Salutation': true,
1041
+ 'Secondary Address Type': true,
1042
+ 'Social Security Number': true,
1043
+ 'System Modstamp': true,
1044
+ 'Title': true,
1045
+ 'University Email': true,
1046
+ 'Work Address': true,
1047
+ 'Work Email': true,
1048
+ 'Work Phone': true
1049
+ },
1050
+ 'Affiliation': {
1051
+ 'Affiliation Key': true,
1052
+ 'Affiliation Type': true,
1053
+ 'Contact': true,
1054
+ 'Created By ID': true,
1055
+ 'Created Date': true,
1056
+ 'Deleted': true,
1057
+ 'Description': true,
1058
+ 'End Date': true,
1059
+ 'Last Modified By ID': true,
1060
+ 'Last Modified Date': true,
1061
+ 'Last Referenced Date': true,
1062
+ 'Last Viewed Date': true,
1063
+ 'Organization': true,
1064
+ 'Owner ID': true,
1065
+ 'Primary': true,
1066
+ 'Record ID': true,
1067
+ 'Role': true,
1068
+ 'Start Date': true,
1069
+ 'Status': true,
1070
+ 'System Modstamp': true
1071
+ },
1072
+ 'Address': {
1073
+ 'Address ID': true,
1074
+ 'Address Type': true,
1075
+ 'Created By ID': true,
1076
+ 'Created Date': true,
1077
+ 'Default Address': true,
1078
+ 'Deleted': true,
1079
+ 'Geolocation': true,
1080
+ 'Geolocation (Latitude)': true,
1081
+ 'Geolocation (Longitude)': true,
1082
+ 'Last Modified By ID': true,
1083
+ 'Last Modified Date': true,
1084
+ 'Last Referenced Date': true,
1085
+ 'Last Viewed Date': true,
1086
+ 'Latest End Date': true,
1087
+ 'Latest Start Date': true,
1088
+ 'Mailing Address': true,
1089
+ 'Mailing City': true,
1090
+ 'Mailing Country': true,
1091
+ 'Mailing State/Province': true,
1092
+ 'Mailing Street': true,
1093
+ 'Mailing Street2': true,
1094
+ 'Mailing Street Address': true,
1095
+ 'Mailing Zip/Postal Code': true,
1096
+ 'Owner ID': true,
1097
+ 'Parent Account': true,
1098
+ 'Parent Contact': true,
1099
+ 'Record ID': true,
1100
+ 'Seasonal End Day': true,
1101
+ 'Seasonal End Month': true,
1102
+ 'Seasonal End Year': true,
1103
+ 'Seasonal Start Day': true,
1104
+ 'Seasonal Start Month': true,
1105
+ 'Seasonal Start Year': true,
1106
+ 'System Modstamp': true
1107
+ },
1108
+ 'Course': {
1109
+ 'Course ID': true,
1110
+ 'Course Name': true,
1111
+ 'Created By ID': true,
1112
+ 'Created Date': true,
1113
+ 'Credit Hours': true,
1114
+ 'Deleted': true,
1115
+ 'Department': true,
1116
+ 'Description': true,
1117
+ 'Last Modified By ID': true,
1118
+ 'Last Modified Date': true,
1119
+ 'Last Referenced Date': true,
1120
+ 'Last Viewed Date': true,
1121
+ 'Record ID': true,
1122
+ 'System Modstamp': true
1123
+ },
1124
+ 'Course Enrollment': {
1125
+ 'Affiliation': true,
1126
+ 'Contact': true,
1127
+ "Contact's Academic Program": true,
1128
+ 'Course Connection ID': true,
1129
+ 'Course Offering ID': true,
1130
+ 'Created By ID': true,
1131
+ 'Created Date': true,
1132
+ 'Credits Attempted': true,
1133
+ 'Credits Earned': true,
1134
+ 'Deleted': true,
1135
+ 'Grade': true,
1136
+ 'Last Modified By ID': true,
1137
+ 'Last Modified Date': true,
1138
+ 'Last Referenced Date': true,
1139
+ 'Last Viewed Date': true,
1140
+ 'Owner ID': true,
1141
+ 'Primary': true,
1142
+ 'Program Enrollment ID': true,
1143
+ 'Record ID': true,
1144
+ 'Record Type ID': true,
1145
+ 'Status': true,
1146
+ 'System Modstamp': true
1147
+ },
1148
+ 'Course Offering': {
1149
+ 'Capacity': true,
1150
+ 'Course': true,
1151
+ 'Course Offering ID': true,
1152
+ 'Created By ID': true,
1153
+ 'Created Date': true,
1154
+ 'Deleted': true,
1155
+ 'End Date': true,
1156
+ 'Last Modified By ID': true,
1157
+ 'Last Modified Date': true,
1158
+ 'Last Referenced Date': true,
1159
+ 'Last Viewed Date': true,
1160
+ 'Primary Faculty': true,
1161
+ 'Record ID': true,
1162
+ 'Section ID': true,
1163
+ 'Start Date': true,
1164
+ 'System Modstamp': true,
1165
+ 'Term': true
1166
+ },
1167
+ 'Program Enrollment': {
1168
+ 'Admission Date': true,
1169
+ 'Affiliation': true,
1170
+ 'Application Submitted Date': true,
1171
+ 'Class Standing': true,
1172
+ 'Class Year': true,
1173
+ 'Contact': true,
1174
+ 'Created By ID': true,
1175
+ 'Created Date': true,
1176
+ 'Credits Attempted': true,
1177
+ 'Credits Earned': true,
1178
+ 'Deleted': true,
1179
+ 'Eligible to Enroll': true,
1180
+ 'End Date': true,
1181
+ 'Enrollment Status': true,
1182
+ 'GPA': true,
1183
+ 'Last Modified By ID': true,
1184
+ 'Last Modified Date': true,
1185
+ 'Last Referenced Date': true,
1186
+ 'Last Viewed Date': true,
1187
+ 'Owner ID': true,
1188
+ 'Program': true,
1189
+ 'Program Enrollment ID': true,
1190
+ 'Record ID': true,
1191
+ 'Start Date': true,
1192
+ 'System Modstamp': true
1193
+ },
1194
+ 'Relationship': {
1195
+ 'Contact': true,
1196
+ 'Created By ID': true,
1197
+ 'Created Date': true,
1198
+ 'Deleted': true,
1199
+ 'Description': true,
1200
+ 'Emergency Contact': true,
1201
+ 'Last Modified By ID': true,
1202
+ 'Last Modified Date': true,
1203
+ 'Last Referenced Date': true,
1204
+ 'Last Viewed Date': true,
1205
+ 'Owner ID': true,
1206
+ 'Reciprocal Relationship': true,
1207
+ 'Record ID': true,
1208
+ 'Related Contact': true,
1209
+ 'Relationship Explanation': true,
1210
+ 'Relationship Key': true,
1211
+ 'Status': true,
1212
+ 'System Modstamp': true,
1213
+ 'Type': true
1214
+ },
1215
+ 'Term': {
1216
+ 'Account': true,
1217
+ 'Created By ID': true,
1218
+ 'Created Date': true,
1219
+ 'Deleted': true,
1220
+ 'End Date': true,
1221
+ 'Last Modified By ID': true,
1222
+ 'Last Modified Date': true,
1223
+ 'Last Referenced Date': true,
1224
+ 'Last Viewed Date': true,
1225
+ 'Record ID': true,
1226
+ 'Start Date': true,
1227
+ 'System Modstamp': true,
1228
+ 'Term Name': true
1229
+ }
1230
+ },
1231
+ autoMapData: {
1232
+ 'Student.First Name': 'Contact.First Name',
1233
+ 'Student.Last Name': 'Contact.Last Name',
1234
+ 'Student.Gender': 'Contact.Gender',
1235
+ 'Student.External Id': 'Contact.Account ID',
1236
+ 'Student.Birthdate': 'Contact.Birthdate',
1237
+ 'Student.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1238
+ 'Student.Last Modified': 'Contact.Last Modified Date',
1239
+ 'Student Telephone.Telephone Number': 'Contact.Preferred Phone',
1240
+ 'Student Email.Email Address': 'Contact.Preferred Email',
1241
+ 'Student Address.Student External Id': 'Address.Owner ID',
1242
+ 'Student Address.Address Type': 'Address.Primary Address Type',
1243
+ 'Student Address.Street Number And Name': 'Address.Mailing Address',
1244
+ 'Student Address.City': 'Address.Mailing City',
1245
+ 'Student Address.State': 'Address.Mailing State/Province',
1246
+ 'Student Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1247
+ 'Student Address.County': 'Address.Mailing Country',
1248
+ 'Student Address.Latitude': 'Address.Mailing Latitude',
1249
+ 'Student Address.Longitude': 'Address.Mailing Longitude',
1250
+ 'Staff.First Name': 'Contact.First Name',
1251
+ 'Staff.Last Name': 'Contact.Last Name',
1252
+ 'Staff.Gender': 'Contact.Gender',
1253
+ 'Staff.External Id': 'Contact.Account ID',
1254
+ 'Staff.Birthdate': 'Contact.Birthdate',
1255
+ 'Staff.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1256
+ 'Staff.Last Modified': 'Contact.Last Modified Date',
1257
+ 'Staff Telephone.Telephone Number': 'Contact.Preferred Phone',
1258
+ 'Staff Email.Email Address': 'Contact.Preferred Email',
1259
+ 'Staff Address.Staff External Id': 'Address.Owner ID',
1260
+ 'Staff Address.Address Type': 'Address.Primary Address Type',
1261
+ 'Staff Address.Street Number And Name': 'Address.Mailing Address',
1262
+ 'Staff Address.City': 'Address.Mailing City',
1263
+ 'Staff Address.State': 'Address.Mailing State/Province',
1264
+ 'Staff Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1265
+ 'Staff Address.County': 'Address.Mailing Country',
1266
+ 'Staff Address.Latitude': 'Address.Mailing Latitude',
1267
+ 'Staff Address.Longitude': 'Address.Mailing Longitude',
1268
+ 'Calendar Session.Designator': 'Term.Term Name',
1269
+ 'Calendar Session.Begin Date': 'Term.Start Date',
1270
+ 'Calendar Session.End Date': 'Term.End Date',
1271
+ 'Calendar Session.Last Modified': 'Term.Last Modified Date',
1272
+ 'Calendar Session.External Id': 'Term.Record ID',
1273
+ 'Course.External Id': 'Course.Course ID',
1274
+ 'Course.Course Title': 'Course.Course Name',
1275
+ 'Course.Description': 'Course.Description',
1276
+ 'Course.Department External Id': 'Course.Department',
1277
+ 'Course.Credit Value': 'Course.Credit Hours',
1278
+ 'Course.Last Modified': 'Course.Last Modified Date',
1279
+ 'Course Section.Last Modified': 'Course Offering.Last Modified Date',
1280
+ 'Course Section.External Id': 'Course Offering.Section ID',
1281
+ 'Course Section.Course External Id': 'Course Offering.Course Offering ID',
1282
+ 'Course Section Schedule.Course Section External ID': 'Course Offering.Section ID',
1283
+ 'Student Section.Student External Id': 'Course Enrollment.Owner ID',
1284
+ 'Student Section.Number Of Credits Earned': 'Course Enrollment.Credits Earned',
1285
+ 'Student Section.Academic Grade': 'Course Enrollment.Grade',
1286
+ 'Student Section.Last Modified': 'Course Enrollment.Last Modified Date'
1287
+ },
1288
+ dummyData: {
1289
+ 'Student.First Name': 'Carlos',
1290
+ 'Student.Last Name': 'Robertson',
1291
+ 'Student.Gender': 'Male',
1292
+ 'Student.External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1293
+ 'Student.Birthdate': '1998-10-27',
1294
+ 'Student.Hispanic Latino Ethnicity': 'Hispanic',
1295
+ 'Student.Last Modified': '2017-1-10',
1296
+ 'Student Telephone.Telephone Number': '530-753-3067',
1297
+ 'Student Email.Email Address': 'carlosr98@gmail.com',
1298
+ 'Student Address.Student External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1299
+ 'Student Address.Address Type': 'residence',
1300
+ 'Student Address.Street Number And Name': '2400 Rivendell Lane',
1301
+ 'Student Address.City': 'Davis',
1302
+ 'Student Address.State': 'CA',
1303
+ 'Student Address.Postal Code': '95616',
1304
+ 'Student Address.County': 'United States',
1305
+ 'Student Address.Latitude': '38.5449° N',
1306
+ 'Student Address.Longitude': '121.7405° W',
1307
+ 'Staff.First Name': 'Amy',
1308
+ 'Staff.Last Name': 'Harrison',
1309
+ 'Staff.Gender': 'Female',
1310
+ 'Staff.External Id': '9d0f1999-c14f-466a-b078-eac5dceb8c1e',
1311
+ 'Staff.Birthdate': '1986-10-18',
1312
+ 'Staff.Hispanic Latino Ethnicity': 'White',
1313
+ 'Staff.Last Modified': '2017-1-10',
1314
+ 'Staff Telephone.Telephone Number': '530-756-8268',
1315
+ 'Staff Email.Email Address': 'asharon@ucdavis.edu',
1316
+ 'Staff Address.Staff External Id': '9d0f1999-c14f-466a-b078-eac5dceb8c1e',
1317
+ 'Staff Address.Address Type': 'residence',
1318
+ 'Staff Address.Street Number And Name': '131 Bombadil Drive',
1319
+ 'Staff Address.City': 'Davis',
1320
+ 'Staff Address.State': 'CA',
1321
+ 'Staff Address.Postal Code': '95616',
1322
+ 'Staff Address.County': 'United States',
1323
+ 'Staff Address.Latitude': '38.5449° N',
1324
+ 'Staff Address.Longitude': '121.7405° W',
1325
+ 'Calendar Session.Designator': 'Fall',
1326
+ 'Calendar Session.Begin Date': '2017-3-11',
1327
+ 'Calendar Session.End Date': '2017-6-21',
1328
+ 'Calendar Session.Last Modified': '2017-1-10',
1329
+ 'Calendar Session.External Id': 'e8484fb0bdf7955ade3eafc0134d46c1',
1330
+ 'Course.External Id': 'de3eafc0134d4e8484fb0bdf7955a6c1',
1331
+ 'Course.Course Title': 'Research Strategies and Technology',
1332
+ 'Course.Description': 'This course is intended to familiarize students with the resources and the technology available for writing and presenting papers',
1333
+ 'Course.Department External Id': 'Social Sciences',
1334
+ 'Course.Credit Value': '4',
1335
+ 'Course.Last Modified': '2017-1-10',
1336
+ 'Course Section.Last Modified': '2017-1-10',
1337
+ 'Course Section.External Id': '624163984-7',
1338
+ 'Course Section.Course External Id': '639846241-9',
1339
+ 'Course Section Schedule.Course Section External ID': '349996241-1',
1340
+ 'Student Section.Student External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1341
+ 'Student Section.Number Of Credits Earned': '4',
1342
+ 'Student Section.Academic Grade': 'B',
1343
+ 'Student Section.Last Modified': '2017-1-10'
1344
+ }
1345
+ },
1346
+ 6: { // REST API to REST API
1347
+ title: 'REST API to REST API',
1348
+ sourceProvider: 'REST',
1349
+ sourceProviderType: 'API',
1350
+ destinationProvider: 'REST',
1351
+ destinationProviderType: 'API',
1352
+ deployment: ['once', 'scheduled']
1353
+ },
1354
+ 5: { // Banner to Course Enrollment
1355
+ title: 'Banner to Course Enrollment',
1356
+ sourceProvider: 'Banner',
1357
+ sourceProviderType: 'Banner',
1358
+ destinationProvider: 'Course Enrollment Feed',
1359
+ destinationProviderType: 'FTP',
1360
+ deployment: ['once', 'API', 'scheduled'],
1361
+ customStep: {
1362
+ type: 'bannerAdapter',
1363
+ title: 'Banner Adapter'
1364
+ },
1365
+ sourceDefaultSchema: {
1366
+ 'Calendar Session': {
1367
+ ExternalId: true,
1368
+ Designator: true,
1369
+ BeginDate: true,
1370
+ EndDate: true,
1371
+ BNEDTerm: true,
1372
+ Active: true
1373
+ },
1374
+ 'Course': {
1375
+ ExternalId: true,
1376
+ CourseNumber: true,
1377
+ CourseTitle: true,
1378
+ SubjectAbbreviation: true
1379
+ },
1380
+ 'Course Section': {
1381
+ ExternalId: true,
1382
+ CourseExternalId: true,
1383
+ CourseSectionNumber: true,
1384
+ InstructionSiteName: true,
1385
+ InstructionSiteType: true,
1386
+ CourseEndDate: true,
1387
+ CalendarSessionExternalId: true,
1388
+ Capacity: true,
1389
+ CurrentEnrollment: true,
1390
+ CourseFeeIncluded: true
1391
+ },
1392
+ 'Student': {
1393
+ ExternalId: true,
1394
+ FirstName: true,
1395
+ LastName: true,
1396
+ AidAmount: true,
1397
+ AidProviderCode: true,
1398
+ AidBeginDate: true,
1399
+ AidEndDate: true,
1400
+ AidIDType: true,
1401
+ AidAccountType: true
1402
+ },
1403
+ 'Student Section': {
1404
+ CourseSectionExternalId: true,
1405
+ StudentExternalId: true,
1406
+ CourseAddDate: true,
1407
+ CourseDropDate: true,
1408
+ Dropped: true,
1409
+ Role: true
1410
+ },
1411
+ 'Student Email': {
1412
+ ExternalId: true,
1413
+ EmailAddress: true,
1414
+ EmailAddressType: true,
1415
+ IsPrimary: true
1416
+ },
1417
+ 'Staff': {
1418
+ ExternalId: true,
1419
+ FirstName: true,
1420
+ MiddleName: true,
1421
+ LastName: true
1422
+ },
1423
+ 'Section Instructor': {
1424
+ CourseSectionExternalId: true,
1425
+ StaffExternalId: true
1426
+ }
1427
+ },
1428
+ destinationDefaultSchema: {
1429
+ 'Course Enrollment': {
1430
+ 'BNED Store Number / Unit': true,
1431
+ 'BNED Term Year': true,
1432
+ 'BNED Term Code': true,
1433
+ 'College Department': true,
1434
+ 'College Course': true,
1435
+ 'College Section': true,
1436
+ 'Professor Name': true,
1437
+ 'Maximum Capacity': true,
1438
+ 'Estimated Enrollment': true,
1439
+ 'Actual Enrollment': true,
1440
+ 'Continuation Class': true,
1441
+ 'Evening Class': true,
1442
+ 'Extension Class': true,
1443
+ 'Location (Campus)': true,
1444
+ 'Course Title': true,
1445
+ 'Alternate Course ID (CRN)': true
1446
+ }
1447
+ },
1448
+ autoMapData: {
1449
+ 'Course Section.InstructionSiteName': 'Course Enrollment.Location (Campus)',
1450
+ 'Course.SubjectAbbreviation': 'Course Enrollment.College Department',
1451
+ 'Course.ExternalId': 'Course Enrollment.College Course',
1452
+ 'Course Section.ExternalId': 'Course Enrollment.College Section',
1453
+ 'Staff.LastName': 'Course Enrollment.Professor Name',
1454
+ 'Staff.FirstName': 'Course Enrollment.Professor Name',
1455
+ 'Course.CourseTitle': 'Course Enrollment.Course Title',
1456
+ 'Course Section.Capacity': 'Course Enrollment.Maximum Capacity',
1457
+ 'Course Section.CurrentEnrollment': 'Course Enrollment.Actual Enrollment',
1458
+ 'Calendar Session.BNEDTerm': 'Course Enrollment.BNED Term Code'
1459
+ },
1460
+ dummyData: {
1461
+ 'Course Section.InstructionSiteName': 'Qianshan',
1462
+ 'Course.SubjectAbbreviation': 'ASTR',
1463
+ 'Course.ExternalId': '786202168-1',
1464
+ 'Course Section.ExternalId': '254143083-3',
1465
+ 'Staff.LastName': 'Mitchell',
1466
+ 'Staff.FirstName': 'Sharon',
1467
+ 'Course.CourseTitle': 'Physics',
1468
+ 'Course Section.Capacity': '65',
1469
+ 'Course Section.CurrentEnrollment': '60',
1470
+ 'Calendar Session.BNEDTerm': 'W'
1471
+ }
1472
+ },
1473
+ 2: { // Banner to Managed SFA
1474
+ title: 'Banner to Managed SFA',
1475
+ sourceProvider: 'Banner',
1476
+ sourceProviderType: 'Banner',
1477
+ destinationProvider: 'Managed SFA',
1478
+ destinationProviderType: 'FTP',
1479
+ deployment: ['once', 'API', 'scheduled'],
1480
+ customStep: {
1481
+ type: 'bannerAdapter',
1482
+ title: 'Banner Adapter'
1483
+ },
1484
+ sourceDefaultSchema: {
1485
+ 'Calendar Session': {
1486
+ ExternalId: true,
1487
+ Designator: true,
1488
+ BeginDate: true,
1489
+ EndDate: true,
1490
+ BNEDTerm: true,
1491
+ Active: true
1492
+ },
1493
+ 'Course': {
1494
+ ExternalId: true,
1495
+ CourseNumber: true,
1496
+ CourseTitle: true,
1497
+ SubjectAbbreviation: true
1498
+ },
1499
+ 'Course Section': {
1500
+ ExternalId: true,
1501
+ CourseExternalId: true,
1502
+ CourseSectionNumber: true,
1503
+ InstructionSiteName: true,
1504
+ InstructionSiteType: true,
1505
+ CourseEndDate: true,
1506
+ CalendarSessionExternalId: true,
1507
+ Capacity: true,
1508
+ CurrentEnrollment: true,
1509
+ CourseFeeIncluded: true
1510
+ },
1511
+ 'Student': {
1512
+ ExternalId: true,
1513
+ FirstName: true,
1514
+ LastName: true,
1515
+ AidAmount: true,
1516
+ AidProviderCode: true,
1517
+ AidBeginDate: true,
1518
+ AidEndDate: true,
1519
+ AidIDType: true,
1520
+ AidAccountType: true
1521
+ },
1522
+ 'Student Section': {
1523
+ CourseSectionExternalId: true,
1524
+ StudentExternalId: true,
1525
+ CourseAddDate: true,
1526
+ CourseDropDate: true,
1527
+ Dropped: true,
1528
+ Role: true
1529
+ },
1530
+ 'Student Email': {
1531
+ ExternalId: true,
1532
+ EmailAddress: true,
1533
+ EmailAddressType: true,
1534
+ IsPrimary: true
1535
+ },
1536
+ 'Staff': {
1537
+ ExternalId: true,
1538
+ FirstName: true,
1539
+ MiddleName: true,
1540
+ LastName: true
1541
+ },
1542
+ 'Section Instructor': {
1543
+ CourseSectionExternalId: true,
1544
+ StaffExternalId: true
1545
+ }
1546
+ },
1547
+ destinationDefaultSchema: {
1548
+ 'Managed SFA': {
1549
+ 'BNED Store Number / ID': true,
1550
+ 'BNED Term Year': true,
1551
+ 'BNED Term Code': true,
1552
+ 'Student ID': true,
1553
+ 'First Name': true,
1554
+ 'Middle Initial': true,
1555
+ 'Last Name': true,
1556
+ 'Aid Provider Code': true,
1557
+ 'Aid Provider Amount Available': true,
1558
+ 'Aid Provider Begin Date': true,
1559
+ 'Aid Provider End Date': true,
1560
+ 'Record Type': true,
1561
+ 'Student ID Type': true,
1562
+ 'Account Type': true
1563
+ }
1564
+ },
1565
+ autoMapData: {
1566
+ 'Student.AidIDType': 'Managed SFA.Record Type',
1567
+ 'Student.AidAccountType': 'Managed SFA.Account Type',
1568
+ 'Student.LastName': 'Managed SFA.Last Name',
1569
+ 'Student.FirstName': 'Managed SFA.First Name',
1570
+ 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1571
+ 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1572
+ 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1573
+ 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1574
+ 'Student.ExternalId': 'Managed SFA.Student ID',
1575
+ 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1576
+ },
1577
+ dummyData: {
1578
+ 'Student.AidIDType': 'S',
1579
+ 'Student.AidAccountType': 'D',
1580
+ 'Student.LastName': 'Robertson',
1581
+ 'Student.FirstName': 'Carlos',
1582
+ 'Student.AidEndDate': '2017-02-23',
1583
+ 'Student.AidBeginDate': '2016-10-12',
1584
+ 'Student.AidAmount': '50000',
1585
+ 'Student.AidProviderCode': '54636',
1586
+ 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1587
+ 'Calendar Session.BNEDTerm': 'W'
1588
+ }
1589
+ },
1590
+ 3: { // Banner to Course Fee API
1591
+ title: 'Banner to Course Fee API',
1592
+ sourceProvider: 'Banner',
1593
+ sourceProviderType: 'Banner',
1594
+ destinationProvider: 'Course Fee API',
1595
+ destinationProviderType: 'API',
1596
+ deployment: ['once', 'API', 'scheduled'],
1597
+ customStep: {
1598
+ type: 'bannerAdapter',
1599
+ title: 'Banner Adapter'
1600
+ },
1601
+ sourceDefaultSchema: {
1602
+ 'Calendar Session': {
1603
+ ExternalId: true,
1604
+ Designator: true,
1605
+ BeginDate: true,
1606
+ EndDate: true,
1607
+ BNEDTerm: true,
1608
+ Active: true
1609
+ },
1610
+ 'Course': {
1611
+ ExternalId: true,
1612
+ CourseNumber: true,
1613
+ CourseTitle: true,
1614
+ SubjectAbbreviation: true
1615
+ },
1616
+ 'Course Section': {
1617
+ ExternalId: true,
1618
+ CourseExternalId: true,
1619
+ CourseSectionNumber: true,
1620
+ InstructionSiteName: true,
1621
+ InstructionSiteType: true,
1622
+ CourseEndDate: true,
1623
+ CalendarSessionExternalId: true,
1624
+ Capacity: true,
1625
+ CurrentEnrollment: true,
1626
+ CourseFeeIncluded: true
1627
+ },
1628
+ 'Student': {
1629
+ ExternalId: true,
1630
+ FirstName: true,
1631
+ LastName: true,
1632
+ AidAmount: true,
1633
+ AidProviderCode: true,
1634
+ AidBeginDate: true,
1635
+ AidEndDate: true,
1636
+ AidIDType: true,
1637
+ AidAccountType: true
1638
+ },
1639
+ 'Student Section': {
1640
+ CourseSectionExternalId: true,
1641
+ StudentExternalId: true,
1642
+ CourseAddDate: true,
1643
+ CourseDropDate: true,
1644
+ Dropped: true,
1645
+ Role: true
1646
+ },
1647
+ 'Student Email': {
1648
+ ExternalId: true,
1649
+ EmailAddress: true,
1650
+ EmailAddressType: true,
1651
+ IsPrimary: true
1652
+ },
1653
+ 'Staff': {
1654
+ ExternalId: true,
1655
+ FirstName: true,
1656
+ MiddleName: true,
1657
+ LastName: true
1658
+ },
1659
+ 'Section Instructor': {
1660
+ CourseSectionExternalId: true,
1661
+ StaffExternalId: true
1662
+ }
1663
+ },
1664
+ destinationDefaultSchema: {
1665
+ 'Course Fee': {
1666
+ 'BNED Store Number / ID': true,
1667
+ 'BNED Term Year / Term Code': true,
1668
+ 'College Department': true,
1669
+ 'College Course': true,
1670
+ 'College Section': true,
1671
+ 'Role': true,
1672
+ 'Student Email Address': true
1673
+ }
1674
+ },
1675
+ autoMapData: {
1676
+ 'Course.SubjectAbbreviation': 'Course Fee.College Department',
1677
+ 'Course.ExternalId': 'Course Fee.College Course',
1678
+ 'Course Section.ExternalId': 'Course Fee.College Section',
1679
+ 'Student Section.Role': 'Course Fee.Role',
1680
+ 'Student Email.EmailAddress': 'Course Fee.Student Email Address',
1681
+ 'Calendar Session.BNEDTerm': 'Course Fee.BNED Term Year / Term Code'
1682
+ },
1683
+ dummyData: {
1684
+ 'Course.SubjectAbbreviation': 'ITAL',
1685
+ 'Course.ExternalId': '361542699-1',
1686
+ 'Course Section.ExternalId': '026743570-3',
1687
+ 'Student Section.Role': 'Student',
1688
+ 'Student Email.EmailAddress': 'spatterson0@tripod.edu',
1689
+ 'Calendar Session.BNEDTerm': 'W'
1690
+ }
1691
+ },
1692
+ 4: { // Banner to SFA Balance Inquiry
1693
+ title: 'Banner to SFA Balance Inquiry',
1694
+ sourceProvider: 'Banner',
1695
+ sourceProviderType: 'Banner',
1696
+ destinationProvider: 'SFA Balance Inquiry',
1697
+ destinationProviderType: 'API',
1698
+ deployment: ['once', 'API', 'scheduled'],
1699
+ customStep: {
1700
+ type: 'bannerAdapter',
1701
+ title: 'Banner Adapter'
1702
+ },
1703
+ sourceDefaultSchema: {
1704
+ 'Calendar Session': {
1705
+ ExternalId: true,
1706
+ Designator: true,
1707
+ BeginDate: true,
1708
+ EndDate: true,
1709
+ BNEDTerm: true,
1710
+ Active: true
1711
+ },
1712
+ 'Course': {
1713
+ ExternalId: true,
1714
+ CourseNumber: true,
1715
+ CourseTitle: true,
1716
+ SubjectAbbreviation: true
1717
+ },
1718
+ 'Course Section': {
1719
+ ExternalId: true,
1720
+ CourseExternalId: true,
1721
+ CourseSectionNumber: true,
1722
+ InstructionSiteName: true,
1723
+ InstructionSiteType: true,
1724
+ CourseEndDate: true,
1725
+ CalendarSessionExternalId: true,
1726
+ Capacity: true,
1727
+ CurrentEnrollment: true,
1728
+ CourseFeeIncluded: true
1729
+ },
1730
+ 'Student': {
1731
+ ExternalId: true,
1732
+ FirstName: true,
1733
+ LastName: true,
1734
+ AidAmount: true,
1735
+ AidProviderCode: true,
1736
+ AidBeginDate: true,
1737
+ AidEndDate: true,
1738
+ AidIDType: true,
1739
+ AidAccountType: true
1740
+ },
1741
+ 'Student Section': {
1742
+ CourseSectionExternalId: true,
1743
+ StudentExternalId: true,
1744
+ CourseAddDate: true,
1745
+ CourseDropDate: true,
1746
+ Dropped: true,
1747
+ Role: true
1748
+ },
1749
+ 'Student Email': {
1750
+ ExternalId: true,
1751
+ EmailAddress: true,
1752
+ EmailAddressType: true,
1753
+ IsPrimary: true
1754
+ },
1755
+ 'Staff': {
1756
+ ExternalId: true,
1757
+ FirstName: true,
1758
+ MiddleName: true,
1759
+ LastName: true
1760
+ },
1761
+ 'Section Instructor': {
1762
+ CourseSectionExternalId: true,
1763
+ StaffExternalId: true
1764
+ }
1765
+ },
1766
+ destinationDefaultSchema: {
1767
+ 'Balance Inquiry': {
1768
+ 'Student Financial Aid Balance': true,
1769
+ 'Student ID': true,
1770
+ 'Aid Provider Code': true,
1771
+ 'Aid Provider Amount Available': true,
1772
+ 'Aid Provider Begin Date': true,
1773
+ 'Aid Provider End Date': true,
1774
+ 'Record Type': true,
1775
+ 'Student ID Type': true,
1776
+ 'Account Type': true
1777
+ }
1778
+ },
1779
+ autoMapData: {
1780
+ 'Student.AidIDType': 'Managed SFA.Record Type',
1781
+ 'Student.AidAccountType': 'Managed SFA.Account Type',
1782
+ 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1783
+ 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1784
+ 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1785
+ 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1786
+ 'Student.ExternalId': 'Managed SFA.Student ID',
1787
+ 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1788
+ },
1789
+ dummyData: {
1790
+ 'Student.AidIDType': 'S',
1791
+ 'Student.AidAccountType': 'D',
1792
+ 'Student.AidEndDate': '2017-02-23',
1793
+ 'Student.AidBeginDate': '2016-10-12',
1794
+ 'Student.AidAmount': '50000',
1795
+ 'Student.AidProviderCode': '54636',
1796
+ 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1797
+ 'Calendar Session.BNEDTerm': 'W'
1798
+ }
1799
+ }
1800
+ };
1801
+
1802
+ /***/ },
1803
+ /* 11 */
1804
+ /***/ function(module, exports, __webpack_require__) {
1805
+
1806
+ 'use strict';
1807
+
1808
+ Object.defineProperty(exports, "__esModule", {
1809
+ value: true
1810
+ });
1811
+
1812
+ var _react = __webpack_require__(1);
1813
+
1814
+ var _react2 = _interopRequireDefault(_react);
1815
+
1816
+ var _reduxForm = __webpack_require__(2);
1817
+
1818
+ var _validate = __webpack_require__(4);
1819
+
1820
+ var _validate2 = _interopRequireDefault(_validate);
1821
+
1822
+ var _navButtons = __webpack_require__(3);
1823
+
1824
+ var _navButtons2 = _interopRequireDefault(_navButtons);
1825
+
1826
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1827
+
1828
+ var renderError = function renderError(_ref) {
1829
+ var _ref$meta = _ref.meta,
1830
+ touched = _ref$meta.touched,
1831
+ error = _ref$meta.error;
1832
+ return touched && error ? _react2.default.createElement(
1833
+ 'div',
1834
+ null,
1835
+ _react2.default.createElement(
1836
+ 'span',
1837
+ null,
1838
+ error
1839
+ ),
1840
+ _react2.default.createElement('br', null),
1841
+ _react2.default.createElement('br', null)
1842
+ ) : false;
1843
+ };
1844
+
1845
+ var AccountStep = function AccountStep(props) {
1846
+ var inputs = props.inputs,
1847
+ handleSubmit = props.handleSubmit,
1848
+ nav = props.nav,
1849
+ reset = props.reset;
1850
+
1851
+ return _react2.default.createElement(
1852
+ 'form',
1853
+ { onKeyPress: function onKeyPress(e) {
1854
+ return e.charCode === 13 ? e.preventDefault() : null;
1855
+ } },
1856
+ _react2.default.createElement(
1857
+ 'div',
1858
+ { style: { fontSize: 20 } },
1859
+ 'Select an Account'
1860
+ ),
1861
+ _react2.default.createElement('br', null),
1862
+ _react2.default.createElement(
1863
+ 'div',
1864
+ { style: { marginLeft: 16 } },
1865
+ _react2.default.createElement(_reduxForm.Field, { name: 'newAccount', type: 'text', component: inputs.rfInput, label: 'Name' })
1866
+ ),
1867
+ _react2.default.createElement('br', null),
1868
+ _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
1869
+ _react2.default.createElement('br', null),
1870
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
1871
+ _react2.default.createElement('br', null),
1872
+ _react2.default.createElement('br', null)
1873
+ );
1874
+ };
1875
+
1876
+ exports.default = (0, _reduxForm.reduxForm)({
1877
+ form: 'wizard',
1878
+ destroyOnUnmount: false,
1879
+ forceUnregisterOnUnmount: true,
1880
+ touchOnBlur: false,
1881
+ validate: _validate2.default
1882
+ })(AccountStep);
1883
+
1884
+ /***/ },
1885
+ /* 12 */
1886
+ /***/ function(module, exports, __webpack_require__) {
1887
+
1888
+ 'use strict';
1889
+
1890
+ Object.defineProperty(exports, "__esModule", {
1891
+ value: true
1892
+ });
1893
+
1894
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1895
+
1896
+ var _react = __webpack_require__(1);
1897
+
1898
+ var _react2 = _interopRequireDefault(_react);
1899
+
1900
+ var _reduxForm = __webpack_require__(2);
1901
+
1902
+ var _validate = __webpack_require__(4);
1903
+
1904
+ var _validate2 = _interopRequireDefault(_validate);
1905
+
1906
+ var _navButtons = __webpack_require__(3);
1907
+
1908
+ var _navButtons2 = _interopRequireDefault(_navButtons);
1909
+
1910
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1911
+
1912
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1913
+
1914
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1915
+
1916
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1917
+
1918
+ var BannerAdapterStep = function (_Component) {
1919
+ _inherits(BannerAdapterStep, _Component);
1920
+
1921
+ function BannerAdapterStep() {
1922
+ _classCallCheck(this, BannerAdapterStep);
1923
+
1924
+ var _this = _possibleConstructorReturn(this, (BannerAdapterStep.__proto__ || Object.getPrototypeOf(BannerAdapterStep)).call(this));
1925
+
1926
+ _this.state = {
1927
+ showSecret: false
1928
+ };
1929
+ return _this;
1930
+ }
1931
+
1932
+ _createClass(BannerAdapterStep, [{
1933
+ key: 'render',
1934
+ value: function render() {
1935
+ var _this2 = this;
1936
+
1937
+ var showSecret = this.state.showSecret;
1938
+ var _props = this.props,
1939
+ inputs = _props.inputs,
1940
+ handleSubmit = _props.handleSubmit,
1941
+ nav = _props.nav,
1942
+ reset = _props.reset;
1943
+
1944
+ var Button = inputs.Button;
1945
+ return _react2.default.createElement(
1946
+ 'form',
1947
+ { onKeyPress: function onKeyPress(e) {
1948
+ return e.charCode === 13 ? e.preventDefault() : null;
1949
+ } },
1950
+ _react2.default.createElement(
1951
+ 'div',
1952
+ { style: { fontSize: 20 } },
1953
+ 'Data Source: Configure Banner Adapter'
1954
+ ),
1955
+ _react2.default.createElement('br', null),
1956
+ _react2.default.createElement(
1957
+ 'div',
1958
+ { style: { marginLeft: 16 } },
1959
+ _react2.default.createElement(
1960
+ 'h5',
1961
+ null,
1962
+ 'This integration requires Banner Adapter configuration before continuing.'
1963
+ ),
1964
+ _react2.default.createElement(
1965
+ 'ul',
1966
+ { style: { listStyle: 'initial', paddingLeft: 17 } },
1967
+ _react2.default.createElement(
1968
+ 'li',
1969
+ null,
1970
+ _react2.default.createElement(
1971
+ 'h5',
1972
+ null,
1973
+ _react2.default.createElement(
1974
+ 'a',
1975
+ { href: '' },
1976
+ 'Download the Banner Adapter'
1977
+ )
1978
+ )
1979
+ ),
1980
+ _react2.default.createElement(
1981
+ 'li',
1982
+ null,
1983
+ _react2.default.createElement(
1984
+ 'h5',
1985
+ null,
1986
+ _react2.default.createElement(
1987
+ 'a',
1988
+ { href: '' },
1989
+ 'Read the Banner Adapter Documentation'
1990
+ )
1991
+ )
1992
+ )
1993
+ ),
1994
+ _react2.default.createElement('br', null),
1995
+ _react2.default.createElement(
1996
+ 'strong',
1997
+ { htmlFor: 'link-banner', style: { marginBottom: 14 } },
1998
+ 'Lingk Banner Adapter Credentials:'
1999
+ ),
2000
+ _react2.default.createElement('br', null),
2001
+ _react2.default.createElement('br', null),
2002
+ _react2.default.createElement(
2003
+ 'div',
2004
+ { style: { marginLeft: 18 } },
2005
+ _react2.default.createElement(
2006
+ 'span',
2007
+ null,
2008
+ 'Client ID'
2009
+ ),
2010
+ _react2.default.createElement('br', null),
2011
+ _react2.default.createElement('input', {
2012
+ readOnly: true,
2013
+ type: 'text',
2014
+ placeholder: 'Client ID',
2015
+ size: '60',
2016
+ defaultValue: '55e65cc3d2f8e50001000020df27e6d908da4bf15832e459d2240dfb'
2017
+ }),
2018
+ _react2.default.createElement('br', null),
2019
+ _react2.default.createElement('br', null),
2020
+ _react2.default.createElement(
2021
+ 'span',
2022
+ null,
2023
+ 'Client Secret'
2024
+ ),
2025
+ _react2.default.createElement('br', null),
2026
+ _react2.default.createElement('input', {
2027
+ readOnly: true,
2028
+ placeholder: 'Client Secret',
2029
+ size: '60',
2030
+ defaultValue: 'ZTFlNjg2NjQ0MWQwNDI3ODRmMGQ3YmYzOTM0OWQxNTM=',
2031
+ onBlur: function onBlur() {
2032
+ _this2.setState({ showSecret: false });
2033
+ },
2034
+ style: { display: 'inline-block' },
2035
+ type: showSecret ? 'text' : 'password'
2036
+ }),
2037
+ _react2.default.createElement(
2038
+ Button,
2039
+ {
2040
+ type: 'brand',
2041
+ iconAlign: 'right',
2042
+ onClick: function onClick() {
2043
+ return _this2.setState({ showSecret: !showSecret });
2044
+ },
2045
+ style: {
2046
+ height: 23,
2047
+ width: 55,
2048
+ paddingLeft: 11,
2049
+ lineHeight: '9px',
2050
+ fontSize: 11,
2051
+ marginLeft: 4,
2052
+ marginBottom: 3
2053
+ }
2054
+ },
2055
+ this.state.showSecret ? 'Hide' : 'Show'
2056
+ )
2057
+ )
2058
+ ),
2059
+ _react2.default.createElement('br', null),
2060
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2061
+ _react2.default.createElement('br', null),
2062
+ _react2.default.createElement('br', null)
2063
+ );
2064
+ }
2065
+ }]);
2066
+
2067
+ return BannerAdapterStep;
2068
+ }(_react.Component);
2069
+
2070
+ exports.default = (0, _reduxForm.reduxForm)({
2071
+ form: 'wizard',
2072
+ destroyOnUnmount: false,
2073
+ forceUnregisterOnUnmount: true,
2074
+ touchOnBlur: false,
2075
+ validate: _validate2.default
2076
+ })(BannerAdapterStep);
2077
+
2078
+ /***/ },
2079
+ /* 13 */
2080
+ /***/ function(module, exports, __webpack_require__) {
2081
+
2082
+ 'use strict';
2083
+
2084
+ Object.defineProperty(exports, "__esModule", {
2085
+ value: true
2086
+ });
2087
+
2088
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2089
+
2090
+ var _react = __webpack_require__(1);
2091
+
2092
+ var _react2 = _interopRequireDefault(_react);
2093
+
2094
+ var _reduxForm = __webpack_require__(2);
2095
+
2096
+ var _validate = __webpack_require__(4);
2097
+
2098
+ var _validate2 = _interopRequireDefault(_validate);
2099
+
2100
+ var _navButtons = __webpack_require__(3);
2101
+
2102
+ var _navButtons2 = _interopRequireDefault(_navButtons);
2103
+
2104
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2105
+
2106
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2107
+
2108
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2109
+
2110
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2111
+
2112
+ var DeployStep = function (_Component) {
2113
+ _inherits(DeployStep, _Component);
2114
+
2115
+ function DeployStep() {
2116
+ _classCallCheck(this, DeployStep);
2117
+
2118
+ return _possibleConstructorReturn(this, (DeployStep.__proto__ || Object.getPrototypeOf(DeployStep)).apply(this, arguments));
2119
+ }
2120
+
2121
+ _createClass(DeployStep, [{
2122
+ key: 'componentDidMount',
2123
+ value: function componentDidMount() {
2124
+ var _props = this.props,
2125
+ step = _props.step,
2126
+ change = _props.change,
2127
+ formValues = _props.formValues;
2128
+
2129
+ change('deployment', formValues.deployment || Object.keys(step.options)[0]);
2130
+ }
2131
+ }, {
2132
+ key: 'render',
2133
+ value: function render() {
2134
+ var _props2 = this.props,
2135
+ inputs = _props2.inputs,
2136
+ handleSubmit = _props2.handleSubmit,
2137
+ nav = _props2.nav,
2138
+ reset = _props2.reset,
2139
+ step = _props2.step,
2140
+ formValues = _props2.formValues;
2141
+
2142
+ return _react2.default.createElement(
2143
+ 'form',
2144
+ { onKeyPress: function onKeyPress(e) {
2145
+ return e.charCode === 13 ? e.preventDefault() : null;
2146
+ } },
2147
+ _react2.default.createElement(
2148
+ 'div',
2149
+ { style: { fontSize: 20 } },
2150
+ 'Save and Deploy Integration'
2151
+ ),
2152
+ _react2.default.createElement('br', null),
2153
+ _react2.default.createElement(
2154
+ 'div',
2155
+ { style: { marginLeft: 16 } },
2156
+ _react2.default.createElement(_reduxForm.Field, { name: 'deployment', component: inputs.rfRadioGroup, label: 'Deployment Type',
2157
+ options: step.options
2158
+ }),
2159
+ _react2.default.createElement('br', null),
2160
+ step.options && formValues.deployment === 'scheduled' ? _react2.default.createElement(
2161
+ 'div',
2162
+ { style: { marginLeft: 16 } },
2163
+ _react2.default.createElement(
2164
+ 'div',
2165
+ null,
2166
+ 'Minutes'
2167
+ ),
2168
+ _react2.default.createElement(_reduxForm.Field, { name: 'scheduleMinutes', type: 'text', component: inputs.rfInput, label: '0-59 or *' }),
2169
+ _react2.default.createElement(
2170
+ 'div',
2171
+ { style: { marginTop: 8 } },
2172
+ 'Hours'
2173
+ ),
2174
+ _react2.default.createElement(_reduxForm.Field, { name: 'scheduleHours', type: 'text', component: inputs.rfInput, label: '0-23 or *' }),
2175
+ _react2.default.createElement(
2176
+ 'div',
2177
+ { style: { marginTop: 8 } },
2178
+ 'Days'
2179
+ ),
2180
+ _react2.default.createElement(_reduxForm.Field, { name: 'scheduleDays', type: 'text', component: inputs.rfInput, label: '1-31 or *' })
2181
+ ) : null
2182
+ ),
2183
+ _react2.default.createElement('br', null),
2184
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2185
+ _react2.default.createElement('br', null),
2186
+ _react2.default.createElement('br', null)
2187
+ );
2188
+ }
2189
+ }]);
2190
+
2191
+ return DeployStep;
2192
+ }(_react.Component);
2193
+
2194
+ exports.default = (0, _reduxForm.reduxForm)({
2195
+ form: 'wizard',
2196
+ destroyOnUnmount: false,
2197
+ forceUnregisterOnUnmount: true,
2198
+ touchOnBlur: false,
2199
+ validate: _validate2.default
2200
+ })(DeployStep);
2201
+
2202
+ /***/ },
2203
+ /* 14 */
2204
+ /***/ function(module, exports, __webpack_require__) {
2205
+
2206
+ 'use strict';
2207
+
2208
+ Object.defineProperty(exports, "__esModule", {
2209
+ value: true
2210
+ });
2211
+
2212
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2213
+
2214
+ var _react = __webpack_require__(1);
2215
+
2216
+ var _react2 = _interopRequireDefault(_react);
2217
+
2218
+ var _reduxForm = __webpack_require__(2);
2219
+
2220
+ var _validate = __webpack_require__(4);
2221
+
2222
+ var _validate2 = _interopRequireDefault(_validate);
2223
+
2224
+ var _navButtons = __webpack_require__(3);
2225
+
2226
+ var _navButtons2 = _interopRequireDefault(_navButtons);
2227
+
2228
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2229
+
2230
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2231
+
2232
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2233
+
2234
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2235
+
2236
+ var renderError = function renderError(_ref) {
2237
+ var _ref$meta = _ref.meta,
2238
+ touched = _ref$meta.touched,
2239
+ error = _ref$meta.error;
2240
+ return touched && error ? _react2.default.createElement(
2241
+ 'div',
2242
+ null,
2243
+ _react2.default.createElement(
2244
+ 'span',
2245
+ null,
2246
+ error
2247
+ ),
2248
+ _react2.default.createElement('br', null),
2249
+ _react2.default.createElement('br', null)
2250
+ ) : false;
2251
+ };
2252
+
2253
+ var EnvironmentStep = function (_Component) {
2254
+ _inherits(EnvironmentStep, _Component);
2255
+
2256
+ function EnvironmentStep() {
2257
+ _classCallCheck(this, EnvironmentStep);
2258
+
2259
+ var _this = _possibleConstructorReturn(this, (EnvironmentStep.__proto__ || Object.getPrototypeOf(EnvironmentStep)).call(this));
2260
+
2261
+ _this.state = {
2262
+ checking: false,
2263
+ checked: false
2264
+ };
2265
+ return _this;
2266
+ }
2267
+
2268
+ _createClass(EnvironmentStep, [{
2269
+ key: 'componentDidMount',
2270
+ value: function componentDidMount() {
2271
+ var _props = this.props,
2272
+ step = _props.step,
2273
+ change = _props.change,
2274
+ formValues = _props.formValues;
2275
+
2276
+ change(step.mode + 'Endpoint', formValues[step.mode + 'Endpoint'] || 'http://');
2277
+ }
2278
+ }, {
2279
+ key: 'check',
2280
+ value: function check() {
2281
+ var _this2 = this;
2282
+
2283
+ //this.props.actions.callGetWizardSourceData(this.props.hasEndpoint, this.props.step.mode)
2284
+ this.setState({ checking: true, checked: false });
2285
+ setTimeout(function () {
2286
+ _this2.setState({ checking: false, checked: true });
2287
+ }, 1000);
2288
+ }
2289
+ }, {
2290
+ key: 'render',
2291
+ value: function render() {
2292
+ var _this3 = this;
2293
+
2294
+ var _props2 = this.props,
2295
+ inputs = _props2.inputs,
2296
+ step = _props2.step,
2297
+ handleSubmit = _props2.handleSubmit,
2298
+ nav = _props2.nav,
2299
+ reset = _props2.reset;
2300
+
2301
+ var Button = inputs.Button;
2302
+ var Spinner = inputs.Spinner;
2303
+ return _react2.default.createElement(
2304
+ 'form',
2305
+ { onKeyPress: function onKeyPress(e) {
2306
+ return e.charCode === 13 ? e.preventDefault() : null;
2307
+ } },
2308
+ _react2.default.createElement(
2309
+ 'div',
2310
+ { style: { fontSize: 20 } },
2311
+ step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
2312
+ ': Define ',
2313
+ step.provider,
2314
+ ' Environment'
2315
+ ),
2316
+ _react2.default.createElement('br', null),
2317
+ _react2.default.createElement(
2318
+ 'div',
2319
+ { style: { marginLeft: 16 } },
2320
+ _react2.default.createElement(
2321
+ 'div',
2322
+ null,
2323
+ _react2.default.createElement(
2324
+ 'div',
2325
+ { style: { display: 'inline-block' } },
2326
+ _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: step.provider + ' Endpoint' })
2327
+ ),
2328
+ !step.credentials ? _react2.default.createElement(
2329
+ Button,
2330
+ {
2331
+ icon: 'sync',
2332
+ iconAlign: 'left',
2333
+ onClick: function onClick() {
2334
+ return _this3.check();
2335
+ },
2336
+ style: {
2337
+ marginLeft: 8,
2338
+ marginBottom: 2,
2339
+ height: 30,
2340
+ lineHeight: '10px'
2341
+ }
2342
+ },
2343
+ 'Test Connection'
2344
+ ) : null,
2345
+ _react2.default.createElement(
2346
+ 'div',
2347
+ { style: { display: 'inline-block', marginLeft: 12 } },
2348
+ this.state.checking ? _react2.default.createElement(Spinner, null) : null,
2349
+ this.state.checked ? _react2.default.createElement(
2350
+ 'span',
2351
+ null,
2352
+ 'Status: 200 OK'
2353
+ ) : null
2354
+ )
2355
+ )
2356
+ ),
2357
+ step.credentials ? _react2.default.createElement(
2358
+ 'div',
2359
+ { style: { marginLeft: 16 } },
2360
+ _react2.default.createElement('br', null),
2361
+ _react2.default.createElement(
2362
+ 'label',
2363
+ null,
2364
+ step.provider,
2365
+ ' Credentials'
2366
+ ),
2367
+ _react2.default.createElement('br', null),
2368
+ _react2.default.createElement(
2369
+ 'div',
2370
+ { style: { display: 'inline-block', marginLeft: 16 } },
2371
+ step.credentials.map(function (cred, index) {
2372
+ return _react2.default.createElement(
2373
+ 'div',
2374
+ { key: index, style: { marginTop: 8 } },
2375
+ _react2.default.createElement(_reduxForm.Field, { name: '' + step.mode + cred.name, label: step.provider + ' ' + cred.name, type: 'text', component: inputs.rfInput })
2376
+ );
2377
+ })
2378
+ ),
2379
+ _react2.default.createElement(
2380
+ Button,
2381
+ {
2382
+ icon: 'sync',
2383
+ iconAlign: 'left',
2384
+ onClick: function onClick() {
2385
+ return _this3.check();
2386
+ },
2387
+ style: {
2388
+ marginLeft: 8,
2389
+ marginBottom: 2,
2390
+ height: 30,
2391
+ lineHeight: '10px'
2392
+ }
2393
+ },
2394
+ 'Test Connection'
2395
+ )
2396
+ ) : null,
2397
+ _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
2398
+ _react2.default.createElement('br', null),
2399
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2400
+ _react2.default.createElement('br', null),
2401
+ _react2.default.createElement('br', null)
2402
+ );
2403
+ }
2404
+ }]);
2405
+
2406
+ return EnvironmentStep;
2407
+ }(_react.Component);
2408
+
2409
+ exports.default = (0, _reduxForm.reduxForm)({
2410
+ form: 'wizard',
2411
+ destroyOnUnmount: false,
2412
+ forceUnregisterOnUnmount: true,
2413
+ touchOnBlur: false,
2414
+ validate: _validate2.default
2415
+ })(EnvironmentStep);
2416
+
2417
+ /***/ },
2418
+ /* 15 */
2419
+ /***/ function(module, exports, __webpack_require__) {
2420
+
2421
+ 'use strict';
2422
+
2423
+ Object.defineProperty(exports, "__esModule", {
2424
+ value: true
2425
+ });
2426
+
2427
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2428
+
2429
+ var _react = __webpack_require__(1);
2430
+
2431
+ var _react2 = _interopRequireDefault(_react);
2432
+
2433
+ var _reduxForm = __webpack_require__(2);
2434
+
2435
+ var _validate = __webpack_require__(4);
2436
+
2437
+ var _validate2 = _interopRequireDefault(_validate);
2438
+
2439
+ var _navButtons = __webpack_require__(3);
2440
+
2441
+ var _navButtons2 = _interopRequireDefault(_navButtons);
2442
+
2443
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2444
+
2445
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2446
+
2447
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2448
+
2449
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2450
+
2451
+ var FilterStep = function (_Component) {
2452
+ _inherits(FilterStep, _Component);
2453
+
2454
+ function FilterStep() {
2455
+ _classCallCheck(this, FilterStep);
2456
+
2457
+ return _possibleConstructorReturn(this, (FilterStep.__proto__ || Object.getPrototypeOf(FilterStep)).apply(this, arguments));
2458
+ }
2459
+
2460
+ _createClass(FilterStep, [{
2461
+ key: 'componentDidMount',
2462
+ value: function componentDidMount() {
2463
+ var _props = this.props,
2464
+ change = _props.change,
2465
+ formValues = _props.formValues;
2466
+
2467
+ change('filter', formValues.filter || 'all');
2468
+ }
2469
+ }, {
2470
+ key: 'render',
2471
+ value: function render() {
2472
+ var _props2 = this.props,
2473
+ inputs = _props2.inputs,
2474
+ handleSubmit = _props2.handleSubmit,
2475
+ nav = _props2.nav,
2476
+ step = _props2.step,
2477
+ reset = _props2.reset;
2478
+
2479
+ return _react2.default.createElement(
2480
+ 'form',
2481
+ { onSubmit: handleSubmit, onKeyPress: function onKeyPress(e) {
2482
+ return e.charCode === 13 ? e.preventDefault() : null;
2483
+ } },
2484
+ _react2.default.createElement(
2485
+ 'div',
2486
+ { style: { fontSize: 20 } },
2487
+ 'Source: Filter ',
2488
+ step.provider,
2489
+ ' Data'
2490
+ ),
2491
+ _react2.default.createElement('br', null),
2492
+ _react2.default.createElement(
2493
+ 'div',
2494
+ { style: { marginLeft: 16 } },
2495
+ _react2.default.createElement(_reduxForm.Field, { name: 'filter', component: inputs.rfRadioGroup, label: 'Data Filter Type',
2496
+ options: { all: 'All Data', changed: 'Changed Data Since Last Run' }
2497
+ })
2498
+ ),
2499
+ _react2.default.createElement('br', null),
2500
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2501
+ _react2.default.createElement('br', null),
2502
+ _react2.default.createElement('br', null)
2503
+ );
2504
+ }
2505
+ }]);
2506
+
2507
+ return FilterStep;
2508
+ }(_react.Component);
2509
+
2510
+ exports.default = (0, _reduxForm.reduxForm)({
2511
+ form: 'wizard',
2512
+ destroyOnUnmount: false,
2513
+ forceUnregisterOnUnmount: true,
2514
+ touchOnBlur: false,
2515
+ validate: _validate2.default
2516
+ })(FilterStep);
2517
+
2518
+ /***/ },
2519
+ /* 16 */
2520
+ /***/ function(module, exports, __webpack_require__) {
2521
+
2522
+ 'use strict';
2523
+
2524
+ Object.defineProperty(exports, "__esModule", {
2525
+ value: true
2526
+ });
2527
+
2528
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2529
+
2530
+ var _react = __webpack_require__(1);
2531
+
2532
+ var _react2 = _interopRequireDefault(_react);
2533
+
2534
+ var _reduxForm = __webpack_require__(2);
2535
+
2536
+ var _validate = __webpack_require__(4);
2537
+
2538
+ var _validate2 = _interopRequireDefault(_validate);
2539
+
2540
+ var _navButtons = __webpack_require__(3);
2541
+
2542
+ var _navButtons2 = _interopRequireDefault(_navButtons);
2543
+
2544
+ var _mapAccordion = __webpack_require__(21);
2545
+
2546
+ var _mapAccordion2 = _interopRequireDefault(_mapAccordion);
2547
+
2548
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2549
+
2550
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2551
+
2552
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2553
+
2554
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2555
+
2556
+ var mappingPicker = function (_Component) {
2557
+ _inherits(mappingPicker, _Component);
2558
+
2559
+ function mappingPicker() {
2560
+ _classCallCheck(this, mappingPicker);
2561
+
2562
+ var _this = _possibleConstructorReturn(this, (mappingPicker.__proto__ || Object.getPrototypeOf(mappingPicker)).call(this));
2563
+
2564
+ _this.state = {
2565
+ selectedSourceEntity: null,
2566
+ selectedDestinationEntity: null,
2567
+ selectedSourceField: null,
2568
+ shiftPressed: false
2569
+ };
2570
+ _this.shiftDown = _this.shiftDown.bind(_this);
2571
+ _this.shiftUp = _this.shiftUp.bind(_this);
2572
+ return _this;
2573
+ }
2574
+
2575
+ _createClass(mappingPicker, [{
2576
+ key: 'componentDidMount',
2577
+ value: function componentDidMount() {
2578
+ document.addEventListener("keydown", this.shiftDown, false);
2579
+ document.addEventListener("keyup", this.shiftUp, false);
2580
+ }
2581
+ }, {
2582
+ key: 'componentWillUnmount',
2583
+ value: function componentWillUnmount() {
2584
+ document.removeEventListener("keydown", this.shiftDown, false);
2585
+ document.removeEventListener("keyup", this.shiftUp, false);
2586
+ }
2587
+ }, {
2588
+ key: 'shiftDown',
2589
+ value: function shiftDown(e) {
2590
+ if (e.keyCode === 16) {
2591
+ this.setState({ shiftPressed: true });
2592
+ }
2593
+ }
2594
+ }, {
2595
+ key: 'shiftUp',
2596
+ value: function shiftUp(e) {
2597
+ if (e.keyCode === 16) {
2598
+ this.setState({ shiftPressed: false });
2599
+ }
2600
+ }
2601
+ }, {
2602
+ key: 'onSelectSourceField',
2603
+ value: function onSelectSourceField(entity, field) {
2604
+ //const { input, change, mappings } = this.props;
2605
+ //input.onChange(value);
2606
+ this.setState({
2607
+ selectedSourceField: field,
2608
+ selectedSourceEntity: entity
2609
+ });
2610
+ }
2611
+ }, {
2612
+ key: 'onSelectDestinationField',
2613
+ value: function onSelectDestinationField(entity, field) {
2614
+ var _props = this.props,
2615
+ change = _props.change,
2616
+ mappings = _props.mappings;
2617
+
2618
+ if (this.state.selectedSourceField) {
2619
+ var obj = Object.assign({}, mappings) || {};
2620
+ obj[this.state.selectedSourceEntity + '.' + this.state.selectedSourceField] = entity + '.' + field;
2621
+ change('mappings', obj);
2622
+ this.setState({
2623
+ selectedSourceEntity: null,
2624
+ selectedSourceField: null
2625
+ });
2626
+ }
2627
+ }
2628
+ }, {
2629
+ key: 'render',
2630
+ value: function render() {
2631
+ var _this2 = this;
2632
+
2633
+ var _props2 = this.props,
2634
+ includedSourceFields = _props2.includedSourceFields,
2635
+ includedDestinationFields = _props2.includedDestinationFields,
2636
+ mappings = _props2.mappings;
2637
+
2638
+
2639
+ return _react2.default.createElement(
2640
+ 'div',
2641
+ null,
2642
+ includedSourceFields && includedDestinationFields ? _react2.default.createElement(
2643
+ 'div',
2644
+ { style: { position: 'relative', width: 740 } },
2645
+ _react2.default.createElement(
2646
+ 'div',
2647
+ { style: { display: 'inline-block' } },
2648
+ _react2.default.createElement(
2649
+ 'h5',
2650
+ { style: { height: 18, lineHeight: '21px' } },
2651
+ 'Source Schema: ',
2652
+ this.state.selectedSourceEntity ? null : _react2.default.createElement(
2653
+ 'span',
2654
+ null,
2655
+ '(click field to select)'
2656
+ )
2657
+ ),
2658
+ includedSourceFields ? _react2.default.createElement(_mapAccordion2.default, { values: includedSourceFields, selectedEntity: this.state.selectedSourceEntity,
2659
+ pickEntity: function pickEntity(v) {
2660
+ _this2.setState({ selectedSourceEntity: v });
2661
+ }, selectedField: this.state.selectedSourceField,
2662
+ clickField: function clickField(entity, field) {
2663
+ return _this2.onSelectSourceField(entity, field);
2664
+ }, mappings: mappings, mode: 'source'
2665
+ }) : null
2666
+ ),
2667
+ _react2.default.createElement(
2668
+ 'div',
2669
+ { style: { display: 'inline-block', marginLeft: 40 } },
2670
+ _react2.default.createElement(
2671
+ 'h5',
2672
+ null,
2673
+ 'Destination Schema: ',
2674
+ this.state.selectedSourceEntity ? _react2.default.createElement(
2675
+ 'span',
2676
+ null,
2677
+ '(click field to select)'
2678
+ ) : null
2679
+ ),
2680
+ includedDestinationFields ? _react2.default.createElement(_mapAccordion2.default, { values: includedDestinationFields, selectedEntity: this.state.selectedDestinationEntity,
2681
+ pickEntity: function pickEntity(v) {
2682
+ _this2.setState({ selectedDestinationEntity: v });
2683
+ }, mode: 'destination',
2684
+ clickField: function clickField(entity, field) {
2685
+ return _this2.onSelectDestinationField(entity, field);
2686
+ }, mappings: mappings,
2687
+ selectedField: this.state.selectedSourceField
2688
+ }) : null
2689
+ ),
2690
+ _react2.default.createElement(
2691
+ 'div',
2692
+ { style: { position: 'absolute', left: 356, top: 146, fontSize: 34, color: '#AAAAAA' } },
2693
+ '\u25B6'
2694
+ )
2695
+ ) : null
2696
+ );
2697
+ }
2698
+ }]);
2699
+
2700
+ return mappingPicker;
2701
+ }(_react.Component);
2702
+
2703
+ var MapStep = function (_Component2) {
2704
+ _inherits(MapStep, _Component2);
2705
+
2706
+ function MapStep() {
2707
+ _classCallCheck(this, MapStep);
2708
+
2709
+ var _this3 = _possibleConstructorReturn(this, (MapStep.__proto__ || Object.getPrototypeOf(MapStep)).call(this));
2710
+
2711
+ _this3.clearAllMappings = _this3.clearAllMappings.bind(_this3);
2712
+ _this3.autoMap = _this3.autoMap.bind(_this3);
2713
+ _this3.clearOneMapping = _this3.clearOneMapping.bind(_this3);
2714
+ return _this3;
2715
+ }
2716
+
2717
+ _createClass(MapStep, [{
2718
+ key: 'autoMap',
2719
+ value: function autoMap() {
2720
+ // this function needs to dig deeper and check every field against every mapping
2721
+ var _props3 = this.props,
2722
+ formValues = _props3.formValues,
2723
+ change = _props3.change,
2724
+ step = _props3.step;
2725
+
2726
+ var sourceSchema = formValues['sourceSchema'] || {};
2727
+ var obj = {};
2728
+ for (var key in step.autoMapData) {
2729
+ if (sourceSchema && sourceSchema[key.split('.')[0]]) {
2730
+ obj[key] = step.autoMapData[key];
2731
+ }
2732
+ }
2733
+ change('mappings', obj);
2734
+ }
2735
+ }, {
2736
+ key: 'clearAllMappings',
2737
+ value: function clearAllMappings() {
2738
+ this.props.change('mappings', {});
2739
+ }
2740
+ }, {
2741
+ key: 'clearOneMapping',
2742
+ value: function clearOneMapping(key) {
2743
+ var formValues = this.props.formValues;
2744
+
2745
+ var mappings = formValues['mappings'] || {};
2746
+ var obj = Object.assign({}, mappings);
2747
+ delete obj[key];
2748
+ this.props.change('mappings', obj);
2749
+ }
2750
+ }, {
2751
+ key: 'isEmptyObject',
2752
+ value: function isEmptyObject(o) {
2753
+ var obj = o || {};
2754
+ for (var prop in obj) {
2755
+ if (Object.prototype.hasOwnProperty.call(obj, prop)) {
2756
+ return false;
2757
+ }
2758
+ }
2759
+ return true;
2760
+ }
2761
+ }, {
2762
+ key: 'render',
2763
+ value: function render() {
2764
+ var _props4 = this.props,
2765
+ inputs = _props4.inputs,
2766
+ handleSubmit = _props4.handleSubmit,
2767
+ nav = _props4.nav,
2768
+ formValues = _props4.formValues,
2769
+ change = _props4.change,
2770
+ step = _props4.step,
2771
+ reset = _props4.reset;
2772
+
2773
+ var sourceSchema = formValues['sourceSchema'] || {};
2774
+ var destinationSchema = formValues['destinationSchema'] || {};
2775
+ var mappings = formValues['mappings'] || {};
2776
+ var Button = inputs.Button;
2777
+ var MapTable = inputs.MapTable;
2778
+ return _react2.default.createElement(
2779
+ 'form',
2780
+ { onKeyPress: function onKeyPress(e) {
2781
+ return e.charCode === 13 ? e.preventDefault() : null;
2782
+ } },
2783
+ _react2.default.createElement(
2784
+ 'div',
2785
+ { style: { fontSize: 20 } },
2786
+ 'Map ',
2787
+ step.sourceProvider,
2788
+ ' to ',
2789
+ step.destinationProvider
2790
+ ),
2791
+ _react2.default.createElement('br', null),
2792
+ step.autoMapData ? _react2.default.createElement(
2793
+ Button,
2794
+ { type: 'brand', onClick: this.autoMap, style: { marginRight: 5 } },
2795
+ 'Automap'
2796
+ ) : null,
2797
+ _react2.default.createElement(
2798
+ Button,
2799
+ { type: 'brand', onClick: this.clearAllMappings },
2800
+ 'Clear All Mappings'
2801
+ ),
2802
+ _react2.default.createElement('br', null),
2803
+ _react2.default.createElement('br', null),
2804
+ _react2.default.createElement(_reduxForm.Field, { name: 'mappings', component: mappingPicker, includedSourceFields: sourceSchema,
2805
+ includedDestinationFields: destinationSchema, change: change, mappings: mappings, step: step }),
2806
+ _react2.default.createElement('br', null),
2807
+ !this.isEmptyObject(mappings) ? _react2.default.createElement(
2808
+ 'div',
2809
+ null,
2810
+ _react2.default.createElement(MapTable, { mappings: mappings, clearOneMapping: this.clearOneMapping })
2811
+ ) : null,
2812
+ _react2.default.createElement('br', null),
2813
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2814
+ _react2.default.createElement('br', null),
2815
+ _react2.default.createElement('br', null)
2816
+ );
2817
+ }
2818
+ }]);
2819
+
2820
+ return MapStep;
2821
+ }(_react.Component);
2822
+
2823
+ exports.default = (0, _reduxForm.reduxForm)({
2824
+ form: 'wizard',
2825
+ destroyOnUnmount: false,
2826
+ forceUnregisterOnUnmount: true,
2827
+ touchOnBlur: false,
2828
+ validate: _validate2.default
2829
+ })(MapStep);
2830
+
2831
+ /***/ },
2832
+ /* 17 */
2833
+ /***/ function(module, exports, __webpack_require__) {
2834
+
2835
+ 'use strict';
2836
+
2837
+ Object.defineProperty(exports, "__esModule", {
2838
+ value: true
2839
+ });
2840
+
2841
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2842
+
2843
+ var _react = __webpack_require__(1);
2844
+
2845
+ var _react2 = _interopRequireDefault(_react);
2846
+
2847
+ var _reduxForm = __webpack_require__(2);
2848
+
2849
+ var _validate = __webpack_require__(4);
2850
+
2851
+ var _validate2 = _interopRequireDefault(_validate);
2852
+
2853
+ var _navButtons = __webpack_require__(3);
2854
+
2855
+ var _navButtons2 = _interopRequireDefault(_navButtons);
2856
+
2857
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2858
+
2859
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2860
+
2861
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2862
+
2863
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2864
+
2865
+ var renderError = function renderError(_ref) {
2866
+ var _ref$meta = _ref.meta,
2867
+ touched = _ref$meta.touched,
2868
+ error = _ref$meta.error;
2869
+ return touched && error ? _react2.default.createElement(
2870
+ 'div',
2871
+ null,
2872
+ _react2.default.createElement(
2873
+ 'span',
2874
+ null,
2875
+ error
2876
+ ),
2877
+ _react2.default.createElement('br', null),
2878
+ _react2.default.createElement('br', null)
2879
+ ) : false;
2880
+ };
2881
+
2882
+ var NameStep = function (_Component) {
2883
+ _inherits(NameStep, _Component);
2884
+
2885
+ function NameStep() {
2886
+ _classCallCheck(this, NameStep);
2887
+
2888
+ return _possibleConstructorReturn(this, (NameStep.__proto__ || Object.getPrototypeOf(NameStep)).apply(this, arguments));
2889
+ }
2890
+
2891
+ _createClass(NameStep, [{
2892
+ key: 'componentDidMount',
2893
+ value: function componentDidMount() {
2894
+ var _props = this.props,
2895
+ step = _props.step,
2896
+ change = _props.change,
2897
+ formValues = _props.formValues;
2898
+
2899
+ change('title', formValues.title || step.name);
2900
+ }
2901
+ }, {
2902
+ key: 'render',
2903
+ value: function render() {
2904
+ var _props2 = this.props,
2905
+ inputs = _props2.inputs,
2906
+ handleSubmit = _props2.handleSubmit,
2907
+ nav = _props2.nav,
2908
+ reset = _props2.reset;
2909
+
2910
+ return _react2.default.createElement(
2911
+ 'form',
2912
+ { onKeyPress: function onKeyPress(e) {
2913
+ return e.charCode === 13 ? e.preventDefault() : null;
2914
+ } },
2915
+ _react2.default.createElement(
2916
+ 'div',
2917
+ { style: { fontSize: 20 } },
2918
+ 'Name your Integration'
2919
+ ),
2920
+ _react2.default.createElement('br', null),
2921
+ _react2.default.createElement(
2922
+ 'div',
2923
+ { style: { marginLeft: 16 } },
2924
+ _react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput, label: 'Name' })
2925
+ ),
2926
+ _react2.default.createElement('br', null),
2927
+ _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
2928
+ _react2.default.createElement('br', null),
2929
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
2930
+ _react2.default.createElement('br', null),
2931
+ _react2.default.createElement('br', null)
2932
+ );
2933
+ }
2934
+ }]);
2935
+
2936
+ return NameStep;
2937
+ }(_react.Component);
2938
+
2939
+ exports.default = (0, _reduxForm.reduxForm)({
2940
+ form: 'wizard',
2941
+ destroyOnUnmount: false,
2942
+ forceUnregisterOnUnmount: true,
2943
+ touchOnBlur: false,
2944
+ validate: _validate2.default
2945
+ })(NameStep);
2946
+
2947
+ /***/ },
2948
+ /* 18 */
2949
+ /***/ function(module, exports, __webpack_require__) {
2950
+
2951
+ 'use strict';
2952
+
2953
+ Object.defineProperty(exports, "__esModule", {
2954
+ value: true
2955
+ });
2956
+
2957
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2958
+
2959
+ var _react = __webpack_require__(1);
2960
+
2961
+ var _react2 = _interopRequireDefault(_react);
2962
+
2963
+ var _reduxForm = __webpack_require__(2);
2964
+
2965
+ var _validate = __webpack_require__(4);
2966
+
2967
+ var _validate2 = _interopRequireDefault(_validate);
2968
+
2969
+ var _navButtons = __webpack_require__(3);
2970
+
2971
+ var _navButtons2 = _interopRequireDefault(_navButtons);
2972
+
2973
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2974
+
2975
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2976
+
2977
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2978
+
2979
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2980
+
2981
+ var PhaseStep = function (_Component) {
2982
+ _inherits(PhaseStep, _Component);
2983
+
2984
+ function PhaseStep() {
2985
+ _classCallCheck(this, PhaseStep);
2986
+
2987
+ return _possibleConstructorReturn(this, (PhaseStep.__proto__ || Object.getPrototypeOf(PhaseStep)).apply(this, arguments));
2988
+ }
2989
+
2990
+ _createClass(PhaseStep, [{
2991
+ key: 'componentDidMount',
2992
+ value: function componentDidMount() {
2993
+ var _props = this.props,
2994
+ change = _props.change,
2995
+ formValues = _props.formValues;
2996
+
2997
+ change('phase', formValues.phase || 'initial');
2998
+ }
2999
+ }, {
3000
+ key: 'render',
3001
+ value: function render() {
3002
+ var _props2 = this.props,
3003
+ inputs = _props2.inputs,
3004
+ handleSubmit = _props2.handleSubmit,
3005
+ nav = _props2.nav,
3006
+ reset = _props2.reset;
3007
+
3008
+ return _react2.default.createElement(
3009
+ 'form',
3010
+ { onKeyPress: function onKeyPress(e) {
3011
+ return e.charCode === 13 ? e.preventDefault() : null;
3012
+ } },
3013
+ _react2.default.createElement(
3014
+ 'div',
3015
+ { style: { fontSize: 20 } },
3016
+ 'Choose Implementation Phase'
3017
+ ),
3018
+ _react2.default.createElement('br', null),
3019
+ _react2.default.createElement(
3020
+ 'div',
3021
+ { style: { marginLeft: 16 } },
3022
+ _react2.default.createElement(_reduxForm.Field, { name: 'phase', component: inputs.rfRadioGroup, label: 'Implementation Phase',
3023
+ options: { initial: 'Initial Connection', testing: 'Build for Testing', production: 'Build for Production' }
3024
+ })
3025
+ ),
3026
+ _react2.default.createElement('br', null),
3027
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3028
+ _react2.default.createElement('br', null),
3029
+ _react2.default.createElement('br', null)
3030
+ );
3031
+ }
3032
+ }]);
3033
+
3034
+ return PhaseStep;
3035
+ }(_react.Component);
3036
+
3037
+ exports.default = (0, _reduxForm.reduxForm)({
3038
+ form: 'wizard',
3039
+ destroyOnUnmount: false,
3040
+ forceUnregisterOnUnmount: true,
3041
+ touchOnBlur: false,
3042
+ validate: _validate2.default
3043
+ })(PhaseStep);
3044
+
3045
+ /***/ },
3046
+ /* 19 */
3047
+ /***/ function(module, exports, __webpack_require__) {
3048
+
3049
+ 'use strict';
3050
+
3051
+ Object.defineProperty(exports, "__esModule", {
3052
+ value: true
3053
+ });
3054
+
3055
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3056
+
3057
+ var _react = __webpack_require__(1);
3058
+
3059
+ var _react2 = _interopRequireDefault(_react);
3060
+
3061
+ var _reduxForm = __webpack_require__(2);
3062
+
3063
+ var _validate = __webpack_require__(4);
3064
+
3065
+ var _validate2 = _interopRequireDefault(_validate);
3066
+
3067
+ var _navButtons = __webpack_require__(3);
3068
+
3069
+ var _navButtons2 = _interopRequireDefault(_navButtons);
3070
+
3071
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3072
+
3073
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3074
+
3075
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3076
+
3077
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3078
+
3079
+ var PreviewStep = function (_Component) {
3080
+ _inherits(PreviewStep, _Component);
3081
+
3082
+ function PreviewStep() {
3083
+ _classCallCheck(this, PreviewStep);
3084
+
3085
+ var _this = _possibleConstructorReturn(this, (PreviewStep.__proto__ || Object.getPrototypeOf(PreviewStep)).call(this));
3086
+
3087
+ _this.state = {
3088
+ previewing: false,
3089
+ previewed: false
3090
+ };
3091
+ _this.preview = _this.preview.bind(_this);
3092
+ return _this;
3093
+ }
3094
+
3095
+ _createClass(PreviewStep, [{
3096
+ key: 'preview',
3097
+ value: function preview() {
3098
+ var _this2 = this;
3099
+
3100
+ this.setState({ previewing: true });
3101
+ setTimeout(function () {
3102
+ _this2.setState({ previewed: true });
3103
+ }, 1000);
3104
+ }
3105
+ }, {
3106
+ key: 'isEmptyObject',
3107
+ value: function isEmptyObject(o) {
3108
+ var obj = o || {};
3109
+ for (var prop in obj) {
3110
+ if (Object.prototype.hasOwnProperty.call(obj, prop)) {
3111
+ return false;
3112
+ }
3113
+ }
3114
+ return true;
3115
+ }
3116
+ }, {
3117
+ key: 'render',
3118
+ value: function render() {
3119
+ var _props = this.props,
3120
+ inputs = _props.inputs,
3121
+ handleSubmit = _props.handleSubmit,
3122
+ nav = _props.nav,
3123
+ step = _props.step,
3124
+ reset = _props.reset,
3125
+ formValues = _props.formValues;
3126
+ var mappings = formValues.mappings;
3127
+ var Button = inputs.Button,
3128
+ Spinner = inputs.Spinner,
3129
+ PreviewTable = inputs.PreviewTable;
3130
+
3131
+ return _react2.default.createElement(
3132
+ 'form',
3133
+ { onKeyPress: function onKeyPress(e) {
3134
+ return e.charCode === 13 ? e.preventDefault() : null;
3135
+ } },
3136
+ _react2.default.createElement(
3137
+ 'div',
3138
+ { style: { fontSize: 20 } },
3139
+ 'Destination Data Preview'
3140
+ ),
3141
+ _react2.default.createElement('br', null),
3142
+ _react2.default.createElement(
3143
+ Button,
3144
+ { type: 'brand', className: 'btn btn-primary', onClick: this.preview },
3145
+ 'Preview Integration'
3146
+ ),
3147
+ this.state.previewing ? _react2.default.createElement(
3148
+ 'div',
3149
+ { style: { display: 'inline-block', marginLeft: 18 } },
3150
+ !this.state.previewed ? _react2.default.createElement(Spinner, null) : null
3151
+ ) : null,
3152
+ _react2.default.createElement('br', null),
3153
+ _react2.default.createElement('br', null),
3154
+ _react2.default.createElement(
3155
+ 'div',
3156
+ null,
3157
+ 'No data will be written during the preview process.'
3158
+ ),
3159
+ _react2.default.createElement('br', null),
3160
+ !this.isEmptyObject(mappings) && this.state.previewed ? _react2.default.createElement(PreviewTable, { mappings: mappings, step: step }) : null,
3161
+ _react2.default.createElement('br', null),
3162
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3163
+ _react2.default.createElement('br', null),
3164
+ _react2.default.createElement('br', null)
3165
+ );
3166
+ }
3167
+ }]);
3168
+
3169
+ return PreviewStep;
3170
+ }(_react.Component);
3171
+
3172
+ exports.default = (0, _reduxForm.reduxForm)({
3173
+ form: 'wizard',
3174
+ destroyOnUnmount: false,
3175
+ forceUnregisterOnUnmount: true,
3176
+ touchOnBlur: false,
3177
+ validate: _validate2.default
3178
+ })(PreviewStep);
3179
+
3180
+ /***/ },
3181
+ /* 20 */
3182
+ /***/ function(module, exports, __webpack_require__) {
3183
+
3184
+ 'use strict';
3185
+
3186
+ Object.defineProperty(exports, "__esModule", {
3187
+ value: true
3188
+ });
3189
+
3190
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3191
+
3192
+ var _react = __webpack_require__(1);
3193
+
3194
+ var _react2 = _interopRequireDefault(_react);
3195
+
3196
+ var _reduxForm = __webpack_require__(2);
3197
+
3198
+ var _validate = __webpack_require__(4);
3199
+
3200
+ var _validate2 = _interopRequireDefault(_validate);
3201
+
3202
+ var _navButtons = __webpack_require__(3);
3203
+
3204
+ var _navButtons2 = _interopRequireDefault(_navButtons);
3205
+
3206
+ var _schemaAccordion = __webpack_require__(22);
3207
+
3208
+ var _schemaAccordion2 = _interopRequireDefault(_schemaAccordion);
3209
+
3210
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3211
+
3212
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3213
+
3214
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3215
+
3216
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3217
+
3218
+ var SchemaStep = function (_Component) {
3219
+ _inherits(SchemaStep, _Component);
3220
+
3221
+ function SchemaStep() {
3222
+ _classCallCheck(this, SchemaStep);
3223
+
3224
+ var _this = _possibleConstructorReturn(this, (SchemaStep.__proto__ || Object.getPrototypeOf(SchemaStep)).call(this));
3225
+
3226
+ _this.state = {
3227
+ newField: '',
3228
+ newEntity: '',
3229
+ selectedDataEntity: ''
3230
+ };
3231
+ _this.addCustomField = _this.addCustomField.bind(_this);
3232
+ _this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
3233
+ _this.addCustomEntity = _this.addCustomEntity.bind(_this);
3234
+ _this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
3235
+ _this.loadDefault = _this.loadDefault.bind(_this);
3236
+ _this.clearAllData = _this.clearAllData.bind(_this);
3237
+ return _this;
3238
+ }
3239
+
3240
+ _createClass(SchemaStep, [{
3241
+ key: 'loadDefault',
3242
+ value: function loadDefault() {
3243
+ var _props = this.props,
3244
+ step = _props.step,
3245
+ actions = _props.actions,
3246
+ change = _props.change;
3247
+
3248
+ actions.changeWizardData(step.defaultSchema, step.mode);
3249
+ change(step.mode + 'Schema', step.defaultSchema);
3250
+ }
3251
+ }, {
3252
+ key: 'clearAllData',
3253
+ value: function clearAllData() {
3254
+ var _props2 = this.props,
3255
+ step = _props2.step,
3256
+ actions = _props2.actions,
3257
+ change = _props2.change;
3258
+
3259
+ this.setState({ selectedDataEntity: '' });
3260
+ actions.changeWizardData(null, step.mode);
3261
+ change(step.mode + 'Schema', {});
3262
+ }
3263
+ }, {
3264
+ key: 'addCustomField',
3265
+ value: function addCustomField() {
3266
+ var _props3 = this.props,
3267
+ step = _props3.step,
3268
+ actions = _props3.actions,
3269
+ change = _props3.change,
3270
+ formValues = _props3.formValues;
3271
+
3272
+ var includedFields = formValues[step.mode + 'Schema'] || {};
3273
+ actions.addFieldToWizardData(this.state.newField, this.state.selectedDataEntity, step.mode);
3274
+ this.setState({ newField: '' });
3275
+ var obj = Object.assign({}, includedFields);
3276
+ var entityObj = Object.assign({}, obj[this.state.selectedDataEntity]);
3277
+ entityObj[this.state.newField] = true;
3278
+ obj[this.state.selectedDataEntity] = entityObj;
3279
+ change(step.mode + 'Schema', obj);
3280
+ }
3281
+ }, {
3282
+ key: 'newFieldKeyPress',
3283
+ value: function newFieldKeyPress(e) {
3284
+ if (e.charCode === 13) {
3285
+ e.preventDefault();
3286
+ this.addCustomField();
3287
+ }
3288
+ }
3289
+ }, {
3290
+ key: 'addCustomEntity',
3291
+ value: function addCustomEntity() {
3292
+ var _props4 = this.props,
3293
+ step = _props4.step,
3294
+ actions = _props4.actions,
3295
+ change = _props4.change,
3296
+ formValues = _props4.formValues;
3297
+
3298
+ var includedFields = formValues[step.mode + 'Schema'] || {};
3299
+ actions.addEntityToWizardData(this.state.newEntity, step.mode);
3300
+ var obj = Object.assign({}, includedFields) || {};
3301
+ obj[this.state.newEntity] = {};
3302
+ change(step.mode + 'Schema', obj);
3303
+ this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
3304
+ }
3305
+ }, {
3306
+ key: 'newEntityKeyPress',
3307
+ value: function newEntityKeyPress(e) {
3308
+ if (e.charCode === 13) {
3309
+ e.preventDefault();
3310
+ this.addCustomEntity();
3311
+ }
3312
+ }
3313
+ }, {
3314
+ key: 'selectAll',
3315
+ value: function selectAll(dataEntity) {
3316
+ var _props5 = this.props,
3317
+ wizard = _props5.wizard,
3318
+ change = _props5.change,
3319
+ step = _props5.step,
3320
+ formValues = _props5.formValues;
3321
+
3322
+ var includedFields = formValues[step.mode + 'Schema'] || {};
3323
+ var all = {};
3324
+ Object.keys(wizard.data[step.mode][this.state.selectedDataEntity]).forEach(function (key) {
3325
+ all[key] = true;
3326
+ });
3327
+ var obj = Object.assign({}, includedFields);
3328
+ obj[this.state.selectedDataEntity] = all;
3329
+ change(step.mode + 'Schema', obj);
3330
+ }
3331
+ }, {
3332
+ key: 'deselectAll',
3333
+ value: function deselectAll(dataEntity) {
3334
+ var _props6 = this.props,
3335
+ change = _props6.change,
3336
+ step = _props6.step,
3337
+ formValues = _props6.formValues;
3338
+
3339
+ var includedFields = formValues[step.mode + 'Schema'] || {};
3340
+ var obj = Object.assign({}, includedFields);
3341
+ obj[this.state.selectedDataEntity] = {};
3342
+ change(step.mode + 'Schema', obj);
3343
+ }
3344
+ }, {
3345
+ key: 'render',
3346
+ value: function render() {
3347
+ var _this2 = this;
3348
+
3349
+ var _props7 = this.props,
3350
+ inputs = _props7.inputs,
3351
+ handleSubmit = _props7.handleSubmit,
3352
+ nav = _props7.nav,
3353
+ wizard = _props7.wizard,
3354
+ formValues = _props7.formValues,
3355
+ step = _props7.step,
3356
+ reset = _props7.reset;
3357
+
3358
+ var includedFields = formValues[step.mode + 'Schema'] || {};
3359
+ var Button = inputs.Button;
3360
+ var Input = inputs.Input;
3361
+ var Select = inputs.Select;
3362
+ var smallButtonStyle = {
3363
+ marginLeft: 4,
3364
+ height: 22,
3365
+ width: 68,
3366
+ lineHeight: '20px',
3367
+ padding: 0,
3368
+ verticalAlign: 'middle',
3369
+ marginBottom: 4,
3370
+ fontSize: 10
3371
+ };
3372
+ return _react2.default.createElement(
3373
+ 'form',
3374
+ { onKeyPress: function onKeyPress(e) {
3375
+ return e.charCode === 13 ? e.preventDefault() : null;
3376
+ } },
3377
+ _react2.default.createElement(
3378
+ 'div',
3379
+ { style: { fontSize: 20 } },
3380
+ step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
3381
+ ': Select ',
3382
+ step.provider,
3383
+ ' Data Definition'
3384
+ ),
3385
+ _react2.default.createElement('br', null),
3386
+ _react2.default.createElement(
3387
+ 'div',
3388
+ { style: { marginLeft: 16 } },
3389
+ _react2.default.createElement(
3390
+ Button,
3391
+ { type: 'brand', onClick: this.loadDefault },
3392
+ 'Load Default'
3393
+ ),
3394
+ '\xA0\xA0',
3395
+ _react2.default.createElement(
3396
+ Button,
3397
+ { type: 'brand', onClick: this.clearAllData },
3398
+ 'Clear All Data'
3399
+ ),
3400
+ _react2.default.createElement('br', null),
3401
+ _react2.default.createElement('br', null),
3402
+ _react2.default.createElement(
3403
+ 'div',
3404
+ { style: { display: 'inline-block' } },
3405
+ _react2.default.createElement(Input, { label: 'Add Data Entity', type: 'text', value: this.state.newEntity, onChange: function onChange(e) {
3406
+ return !e.target.value.includes('.') ? _this2.setState({ newEntity: e.target.value }) : {};
3407
+ },
3408
+ style: { width: 245 }, placeholder: 'Add Custom Data Entity', onKeyPress: this.newEntityKeyPress })
3409
+ ),
3410
+ _react2.default.createElement(
3411
+ Button,
3412
+ { type: 'brand', onClick: this.addCustomEntity, disabled: !this.state.newEntity,
3413
+ style: {
3414
+ marginLeft: 8,
3415
+ marginBottom: 2,
3416
+ height: 30,
3417
+ lineHeight: '10px'
3418
+ } },
3419
+ 'Add'
3420
+ ),
3421
+ _react2.default.createElement('br', null),
3422
+ _react2.default.createElement('br', null),
3423
+ wizard.data && wizard.data[step.mode] ? _react2.default.createElement(Select, { wizard: wizard, step: step, selectedDataEntity: this.state.selectedDataEntity,
3424
+ onSelect: function onSelect(v) {
3425
+ return _this2.setState({ selectedDataEntity: v });
3426
+ }
3427
+ }) : null
3428
+ ),
3429
+ _react2.default.createElement('br', null),
3430
+ this.state.selectedDataEntity || wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
3431
+ 'div',
3432
+ { style: { position: 'relative', width: 740 } },
3433
+ _react2.default.createElement(
3434
+ 'div',
3435
+ { style: { display: 'inline-block' } },
3436
+ _react2.default.createElement(
3437
+ 'span',
3438
+ { style: { display: 'inline-block', maxWidth: 205, whiteSpace: 'nowrap' } },
3439
+ this.state.selectedDataEntity ? _react2.default.createElement(
3440
+ 'strong',
3441
+ null,
3442
+ this.state.selectedDataEntity
3443
+ ) : _react2.default.createElement(
3444
+ 'span',
3445
+ null,
3446
+ 'Field Types:'
3447
+ )
3448
+ ),
3449
+ wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
3450
+ 'div',
3451
+ { style: { float: 'right' } },
3452
+ _react2.default.createElement(
3453
+ Button,
3454
+ { type: 'brand', style: smallButtonStyle,
3455
+ onClick: function onClick(e) {
3456
+ return _this2.deselectAll(_this2.state.selectedDataEntity);
3457
+ } },
3458
+ 'Remove All'
3459
+ ),
3460
+ _react2.default.createElement(
3461
+ Button,
3462
+ { type: 'brand', style: smallButtonStyle,
3463
+ onClick: function onClick(e) {
3464
+ return _this2.selectAll(_this2.state.selectedDataEntity);
3465
+ } },
3466
+ 'Select All'
3467
+ )
3468
+ ) : null,
3469
+ _react2.default.createElement(
3470
+ 'div',
3471
+ { style: { background: 'white', height: 288, width: 350, overflow: 'scroll', border: '1px solid rgb(204, 205, 207)', padding: '12px 0 12px 20px' } },
3472
+ _react2.default.createElement(
3473
+ 'div',
3474
+ { style: { marginBottom: 7 } },
3475
+ _react2.default.createElement(Input, { className: 'form-control', type: 'text', value: this.state.newField, onChange: function onChange(e) {
3476
+ return !e.target.value.includes('.') ? _this2.setState({ newField: e.target.value }) : {};
3477
+ },
3478
+ style: { width: 250, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: this.newFieldKeyPress, disabled: !this.state.selectedDataEntity
3479
+ }),
3480
+ _react2.default.createElement(
3481
+ Button,
3482
+ { type: 'brand', onClick: this.addCustomField, disabled: !this.state.newField,
3483
+ style: { float: 'right', marginRight: 19 } },
3484
+ 'Add'
3485
+ )
3486
+ ),
3487
+ wizard.data && wizard.data[step.mode] && wizard.data[step.mode][this.state.selectedDataEntity] && Object.keys(wizard.data[step.mode][this.state.selectedDataEntity]).map(function (field, i) {
3488
+ return _react2.default.createElement(
3489
+ 'div',
3490
+ { key: i },
3491
+ _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + _this2.state.selectedDataEntity + '.' + field,
3492
+ component: inputs.rfCheckbox, type: 'checkbox', label: field })
3493
+ );
3494
+ })
3495
+ )
3496
+ ),
3497
+ _react2.default.createElement(
3498
+ 'div',
3499
+ { style: { display: 'inline-block', marginLeft: 40 } },
3500
+ _react2.default.createElement(
3501
+ 'h5',
3502
+ null,
3503
+ 'Source Schema:'
3504
+ ),
3505
+ includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields, selectedEntity: this.state.selectedDataEntity,
3506
+ pickEntity: function pickEntity(v) {
3507
+ _this2.setState({ selectedDataEntity: v });
3508
+ }
3509
+ }) : null
3510
+ ),
3511
+ _react2.default.createElement(
3512
+ 'div',
3513
+ { style: { position: 'absolute', left: 358, top: 154, fontSize: 28, color: '#BBBBBB' } },
3514
+ '\u25B6'
3515
+ ),
3516
+ _react2.default.createElement('br', null)
3517
+ ) : null,
3518
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3519
+ _react2.default.createElement('br', null),
3520
+ _react2.default.createElement('br', null)
3521
+ );
3522
+ }
3523
+ }]);
3524
+
3525
+ return SchemaStep;
3526
+ }(_react.Component);
3527
+
3528
+ exports.default = (0, _reduxForm.reduxForm)({
3529
+ form: 'wizard',
3530
+ destroyOnUnmount: false,
3531
+ forceUnregisterOnUnmount: true,
3532
+ touchOnBlur: false,
3533
+ validate: _validate2.default
3534
+ })(SchemaStep);
3535
+
3536
+ /***/ },
3537
+ /* 21 */
3538
+ /***/ function(module, exports, __webpack_require__) {
3539
+
3540
+ 'use strict';
3541
+
3542
+ Object.defineProperty(exports, "__esModule", {
3543
+ value: true
3544
+ });
3545
+
3546
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3547
+
3548
+ var _react = __webpack_require__(1);
3549
+
3550
+ var _react2 = _interopRequireDefault(_react);
3551
+
3552
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3553
+
3554
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3555
+
3556
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3557
+
3558
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3559
+
3560
+ var MapAccordion = function (_React$Component) {
3561
+ _inherits(MapAccordion, _React$Component);
3562
+
3563
+ function MapAccordion() {
3564
+ _classCallCheck(this, MapAccordion);
3565
+
3566
+ var _this = _possibleConstructorReturn(this, (MapAccordion.__proto__ || Object.getPrototypeOf(MapAccordion)).call(this));
3567
+
3568
+ _this.state = {
3569
+ innerSelectedEntity: ''
3570
+ };
3571
+ return _this;
3572
+ }
3573
+
3574
+ _createClass(MapAccordion, [{
3575
+ key: 'scrollToTop',
3576
+ value: function scrollToTop(element, scrollDuration, scrollTarget) {
3577
+ var initial = element.scrollTop,
3578
+ distance = scrollTarget - initial;
3579
+ var step = distance / scrollDuration;
3580
+ var scrollCount = initial,
3581
+ count = scrollDuration;
3582
+ function go(newTimestamp) {
3583
+ scrollCount += step;
3584
+ element.scrollTop = Math.round(scrollCount);
3585
+ count--;
3586
+ if (count === 0) return;
3587
+ window.requestAnimationFrame(go);
3588
+ }
3589
+ if (step !== 0) {
3590
+ window.requestAnimationFrame(go);
3591
+ }
3592
+ }
3593
+ }, {
3594
+ key: 'render',
3595
+ value: function render() {
3596
+ var _this2 = this;
3597
+
3598
+ var _props = this.props,
3599
+ pickEntity = _props.pickEntity,
3600
+ values = _props.values,
3601
+ selectedEntity = _props.selectedEntity,
3602
+ clickField = _props.clickField,
3603
+ mappings = _props.mappings,
3604
+ selectedField = _props.selectedField,
3605
+ mode = _props.mode;
3606
+
3607
+
3608
+ return _react2.default.createElement(
3609
+ 'div',
3610
+ { ref: function ref(_ref) {
3611
+ _this2.main = _ref;
3612
+ }, id: 'main',
3613
+ style: {
3614
+ background: 'white', height: 288, width: 350, overflow: 'scroll',
3615
+ border: '1px solid rgb(204, 205, 207)', padding: 12
3616
+ }
3617
+ },
3618
+ Object.keys(values).map(function (entity, i) {
3619
+ return _react2.default.createElement(
3620
+ 'div',
3621
+ { key: i, className: 'accordion-panel',
3622
+ style: { display: !Object.keys(values[entity]).every(function (field) {
3623
+ return !values[entity][field];
3624
+ }) ? 'block' : 'none' }
3625
+ },
3626
+ _react2.default.createElement(
3627
+ 'div',
3628
+ { className: 'accordion-panel-header',
3629
+ onClick: function onClick() {
3630
+ _this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
3631
+ _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
3632
+ pickEntity(entity);
3633
+ }
3634
+ },
3635
+ entity
3636
+ ),
3637
+ _react2.default.createElement(
3638
+ 'div',
3639
+ { className: 'accordion-panel-collapse',
3640
+ style: {
3641
+ height: _this2.state.innerSelectedEntity === entity ? Object.keys(values[entity]).length * 19 + 19 : 0
3642
+ }
3643
+ },
3644
+ _react2.default.createElement('div', { style: { height: 9 } }),
3645
+ Object.keys(values[entity]).filter(function (f) {
3646
+ return values[entity][f];
3647
+ }).map(function (field, ii) {
3648
+ return _react2.default.createElement(
3649
+ 'div',
3650
+ { key: ii, className: mode === 'destination' && !selectedField ? "" : "wizard-schema-field",
3651
+ style: {
3652
+ paddingLeft: 5,
3653
+ background: selectedField && selectedField === field ? '#dfe0e0' : 'initial',
3654
+ fontWeight: mode === 'source' && mappings && Object.keys(mappings).includes(entity + '.' + field) ? 'bold' : 'normal',
3655
+ color: mode === 'destination' && !selectedField ? 'grey' : 'black'
3656
+ },
3657
+ onClick: function onClick() {
3658
+ return clickField(entity, field);
3659
+ }
3660
+ },
3661
+ field
3662
+ );
3663
+ }),
3664
+ _react2.default.createElement('div', { style: { height: 9 } })
3665
+ )
3666
+ );
3667
+ })
3668
+ );
3669
+ }
3670
+ }]);
3671
+
3672
+ return MapAccordion;
3673
+ }(_react2.default.Component);
3674
+
3675
+ exports.default = MapAccordion;
3676
+
3677
+ /***/ },
3678
+ /* 22 */
3679
+ /***/ function(module, exports, __webpack_require__) {
3680
+
3681
+ 'use strict';
3682
+
3683
+ Object.defineProperty(exports, "__esModule", {
3684
+ value: true
3685
+ });
3686
+
3687
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3688
+
3689
+ var _react = __webpack_require__(1);
3690
+
3691
+ var _react2 = _interopRequireDefault(_react);
3692
+
3693
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3694
+
3695
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3696
+
3697
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3698
+
3699
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3700
+
3701
+ var SchemaAccordion = function (_React$Component) {
3702
+ _inherits(SchemaAccordion, _React$Component);
3703
+
3704
+ function SchemaAccordion() {
3705
+ _classCallCheck(this, SchemaAccordion);
3706
+
3707
+ var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
3708
+
3709
+ _this.state = {
3710
+ innerSelectedEntity: ''
3711
+ };
3712
+ return _this;
3713
+ }
3714
+
3715
+ _createClass(SchemaAccordion, [{
3716
+ key: 'scrollToTop',
3717
+ value: function scrollToTop(element, scrollDuration, scrollTarget) {
3718
+ var initial = element.scrollTop,
3719
+ distance = scrollTarget - initial;
3720
+ var step = distance / scrollDuration;
3721
+ var scrollCount = initial,
3722
+ count = scrollDuration;
3723
+ function go(newTimestamp) {
3724
+ scrollCount += step;
3725
+ element.scrollTop = Math.round(scrollCount);
3726
+ count--;
3727
+ if (count === 0) return;
3728
+ window.requestAnimationFrame(go);
3729
+ }
3730
+ if (step !== 0) {
3731
+ window.requestAnimationFrame(go);
3732
+ }
3733
+ }
3734
+ }, {
3735
+ key: 'render',
3736
+ value: function render() {
3737
+ var _this2 = this;
3738
+
3739
+ var _props = this.props,
3740
+ pickEntity = _props.pickEntity,
3741
+ values = _props.values,
3742
+ selectedEntity = _props.selectedEntity;
3743
+
3744
+
3745
+ return _react2.default.createElement(
3746
+ 'div',
3747
+ { ref: function ref(_ref) {
3748
+ _this2.main = _ref;
3749
+ }, id: 'main',
3750
+ style: {
3751
+ background: 'white', height: 288, width: 350, overflow: 'scroll',
3752
+ border: '1px solid rgb(204, 205, 207)', padding: 12
3753
+ }
3754
+ },
3755
+ Object.keys(values).map(function (entity, i) {
3756
+ return _react2.default.createElement(
3757
+ 'div',
3758
+ { key: i, className: 'accordion-panel',
3759
+ style: { display: !Object.keys(values[entity]).every(function (field) {
3760
+ return !values[entity][field];
3761
+ }) ? 'block' : 'none' }
3762
+ },
3763
+ _react2.default.createElement(
3764
+ 'div',
3765
+ { className: 'accordion-panel-header',
3766
+ onClick: function onClick() {
3767
+ _this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
3768
+ _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
3769
+ pickEntity(entity);
3770
+ }
3771
+ },
3772
+ entity
3773
+ ),
3774
+ _react2.default.createElement(
3775
+ 'div',
3776
+ { className: 'accordion-panel-collapse',
3777
+ style: {
3778
+ height: _this2.state.innerSelectedEntity === entity ? Object.keys(values[entity]).length * 19 + 19 : 0
3779
+ }
3780
+ },
3781
+ _react2.default.createElement('div', { style: { height: 9 } }),
3782
+ Object.keys(values[entity]).filter(function (f) {
3783
+ return values[entity][f];
3784
+ }).map(function (field, ii) {
3785
+ return _react2.default.createElement(
3786
+ 'div',
3787
+ { key: ii },
3788
+ field
3789
+ );
3790
+ }),
3791
+ _react2.default.createElement('div', { style: { height: 9 } })
3792
+ )
3793
+ );
3794
+ })
3795
+ );
3796
+ }
3797
+ }]);
3798
+
3799
+ return SchemaAccordion;
3800
+ }(_react2.default.Component);
3801
+
3802
+ exports.default = SchemaAccordion;
3803
+
3804
+ /***/ },
3805
+ /* 23 */
3806
+ /***/ function(module, exports, __webpack_require__) {
3807
+
3808
+ 'use strict';
3809
+
3810
+ Object.defineProperty(exports, "__esModule", {
3811
+ value: true
3812
+ });
3813
+
3814
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3815
+
3816
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3817
+
3818
+ var _react = __webpack_require__(1);
3819
+
3820
+ var _react2 = _interopRequireDefault(_react);
3821
+
3822
+ var _reduxForm = __webpack_require__(2);
3823
+
3824
+ var _reactRedux = __webpack_require__(7);
3825
+
3826
+ var _accountStep = __webpack_require__(11);
3827
+
3828
+ var _accountStep2 = _interopRequireDefault(_accountStep);
3829
+
3830
+ var _phaseStep = __webpack_require__(18);
3831
+
3832
+ var _phaseStep2 = _interopRequireDefault(_phaseStep);
3833
+
3834
+ var _environmentStep = __webpack_require__(14);
3835
+
3836
+ var _environmentStep2 = _interopRequireDefault(_environmentStep);
3837
+
3838
+ var _schemaStep = __webpack_require__(20);
3839
+
3840
+ var _schemaStep2 = _interopRequireDefault(_schemaStep);
3841
+
3842
+ var _filterStep = __webpack_require__(15);
3843
+
3844
+ var _filterStep2 = _interopRequireDefault(_filterStep);
3845
+
3846
+ var _mapStep = __webpack_require__(16);
3847
+
3848
+ var _mapStep2 = _interopRequireDefault(_mapStep);
3849
+
3850
+ var _previewStep = __webpack_require__(19);
3851
+
3852
+ var _previewStep2 = _interopRequireDefault(_previewStep);
3853
+
3854
+ var _deployStep = __webpack_require__(13);
3855
+
3856
+ var _deployStep2 = _interopRequireDefault(_deployStep);
3857
+
3858
+ var _nameStep = __webpack_require__(17);
3859
+
3860
+ var _nameStep2 = _interopRequireDefault(_nameStep);
3861
+
3862
+ var _bannerAdapterStep = __webpack_require__(12);
3863
+
3864
+ var _bannerAdapterStep2 = _interopRequireDefault(_bannerAdapterStep);
3865
+
3866
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3867
+
3868
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3869
+
3870
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3871
+
3872
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3873
+
3874
+ var WizardForm = function (_Component) {
3875
+ _inherits(WizardForm, _Component);
3876
+
3877
+ function WizardForm(props) {
3878
+ _classCallCheck(this, WizardForm);
3879
+
3880
+ var _this = _possibleConstructorReturn(this, (WizardForm.__proto__ || Object.getPrototypeOf(WizardForm)).call(this, props));
3881
+
3882
+ _this.nextPage = _this.nextPage.bind(_this);
3883
+ _this.previousPage = _this.previousPage.bind(_this);
3884
+ _this.onSubmit = _this.onSubmit.bind(_this);
3885
+ _this.goToPage = _this.goToPage.bind(_this);
3886
+ _this.state = {
3887
+ page: 1,
3888
+ currentPage: 1
3889
+ };
3890
+ _this.possibleSteps = {
3891
+ account: _accountStep2.default,
3892
+ phase: _phaseStep2.default,
3893
+ environment: _environmentStep2.default,
3894
+ schema: _schemaStep2.default,
3895
+ filter: _filterStep2.default,
3896
+ map: _mapStep2.default,
3897
+ preview: _previewStep2.default,
3898
+ deploy: _deployStep2.default,
3899
+ bannerAdapter: _bannerAdapterStep2.default,
3900
+ name: _nameStep2.default
3901
+ };
3902
+ return _this;
3903
+ }
3904
+
3905
+ _createClass(WizardForm, [{
3906
+ key: 'onSubmit',
3907
+ value: function onSubmit(values) {
3908
+ var _this2 = this;
3909
+
3910
+ console.log(values);
3911
+ var config = Object.assign({}, values);
3912
+ var schemas = {};
3913
+ //----------------------------------
3914
+ // Create schemas
3915
+ //----------------------------------
3916
+ var modes = ['source', 'destination'];
3917
+ modes.forEach(function (mode) {
3918
+ var schema = values[mode + 'Schema'];
3919
+ var resources = Object.keys(schema).map(function (key) {
3920
+ var props = Object.keys(schema[key]).map(function (prop) {
3921
+ return {
3922
+ name: prop,
3923
+ type: _typeof(schema[key][prop]) // we need actual types on schemas
3924
+ };
3925
+ });
3926
+ return {
3927
+ name: key,
3928
+ properties: props
3929
+ };
3930
+ });
3931
+ var custom = values[mode + 'SchemaType'] === 'custom';
3932
+ var name = custom ? values[mode + 'NewSchemaName'] : values[mode + 'ExistingSchemaName'];
3933
+ schemas['' + mode] = {
3934
+ name: name,
3935
+ providerType: _this2.props.providers[mode],
3936
+ resources: resources
3937
+ };
3938
+ });
3939
+ //----------------------------------
3940
+ // Create mapping
3941
+ //----------------------------------
3942
+ var mapping = Object.keys(values.mappings).map(function (key) {
3943
+ return {
3944
+ resourceFromName: key.split('.')[0],
3945
+ resourceToName: values.mappings[key].split('.')[0],
3946
+ propertyFromName: key.split('.')[1],
3947
+ propertyToName: values.mappings[key].split('.')[1]
3948
+ };
3949
+ });
3950
+ //----------------------------------
3951
+ // Create configuration
3952
+ //----------------------------------
3953
+ var configuration = {
3954
+ sourceEndpoint: config.sourceEndpoint,
3955
+ destinationEndpoint: config.destinationEndpoint
3956
+ };
3957
+ //----------------------------------
3958
+ // Post
3959
+ //----------------------------------
3960
+ var appId = values.existingAccount; // need to add "new account" here as well
3961
+ if (parseInt(1, 10) === 6) {
3962
+ this.props.actions.submitWizardData(this.props.redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title);
3963
+ }
3964
+ this.props.actions.testAjax();
3965
+ }
3966
+ }, {
3967
+ key: 'nextPage',
3968
+ value: function nextPage() {
3969
+ this.setState({
3970
+ currentPage: this.state.currentPage + 1,
3971
+ page: this.state.page < this.state.currentPage + 1 ? this.state.currentPage + 1 : this.state.page
3972
+ });
3973
+ }
3974
+ }, {
3975
+ key: 'previousPage',
3976
+ value: function previousPage() {
3977
+ this.setState({ currentPage: this.state.currentPage - 1 });
3978
+ }
3979
+ }, {
3980
+ key: 'goToPage',
3981
+ value: function goToPage(currentPage) {
3982
+ if (currentPage <= this.state.page) {
3983
+ this.setState({ currentPage: currentPage });
3984
+ }
3985
+ }
3986
+ }, {
3987
+ key: 'render',
3988
+ value: function render() {
3989
+ var _this3 = this;
3990
+
3991
+ var currentPage = this.state.currentPage;
3992
+ var _props = this.props,
3993
+ steps = _props.steps,
3994
+ actions = _props.actions,
3995
+ wizard = _props.wizard,
3996
+ formValues = _props.formValues,
3997
+ inputs = _props.inputs;
3998
+ var Sidebar = inputs.Sidebar;
3999
+
4000
+ return _react2.default.createElement(
4001
+ 'div',
4002
+ { className: 'wizard-body' },
4003
+ _react2.default.createElement(
4004
+ 'div',
4005
+ { className: 'wizard-sidebar' },
4006
+ _react2.default.createElement(Sidebar, { steps: steps, currentPage: currentPage })
4007
+ ),
4008
+ _react2.default.createElement(
4009
+ 'div',
4010
+ { className: 'wizard-content' },
4011
+ steps.filter(function (s, i) {
4012
+ return i + 1 === currentPage;
4013
+ }).map(function (step, index) {
4014
+ var StepComponent = _this3.possibleSteps[step.type];
4015
+ var nav = {
4016
+ first: currentPage === 1,
4017
+ last: currentPage === steps.length,
4018
+ previousPage: _this3.previousPage,
4019
+ nextPage: _this3.nextPage
4020
+ };
4021
+ return _react2.default.createElement(
4022
+ 'div',
4023
+ { key: 'child-' + index },
4024
+ _react2.default.createElement(StepComponent, {
4025
+ step: step,
4026
+ actions: actions,
4027
+ wizard: wizard,
4028
+ onSubmit: _this3.onSubmit,
4029
+ formValues: formValues,
4030
+ inputs: inputs,
4031
+ nav: nav
4032
+ })
4033
+ );
4034
+ })
4035
+ )
4036
+ );
4037
+ }
4038
+ }]);
4039
+
4040
+ return WizardForm;
4041
+ }(_react.Component);
4042
+
4043
+ var selector = (0, _reduxForm.formValueSelector)('wizard');
4044
+ WizardForm = (0, _reactRedux.connect)(function (state) {
4045
+ var title = selector(state, 'title');
4046
+ var phase = selector(state, 'phase');
4047
+ var sourceEndpoint = selector(state, 'sourceEndpoint');
4048
+ var destinationEndpoint = selector(state, 'destinationEndpoint');
4049
+ var filter = selector(state, 'filter');
4050
+ var deployment = selector(state, 'deployment');
4051
+ var sourceSchema = selector(state, 'sourceSchema');
4052
+ var destinationSchema = selector(state, 'destinationSchema');
4053
+ var mappings = selector(state, 'mappings');
4054
+ return Object.assign({}, state, {
4055
+ formValues: {
4056
+ title: title,
4057
+ phase: phase,
4058
+ sourceEndpoint: sourceEndpoint,
4059
+ destinationEndpoint: destinationEndpoint,
4060
+ filter: filter,
4061
+ deployment: deployment,
4062
+ sourceSchema: sourceSchema,
4063
+ destinationSchema: destinationSchema,
4064
+ mappings: mappings
4065
+ }
4066
+ });
4067
+ })(WizardForm);
4068
+
4069
+ exports.default = WizardForm;
4070
+
4071
+ /***/ },
4072
+ /* 24 */
4073
+ /***/ function(module, exports, __webpack_require__) {
4074
+
4075
+ 'use strict';
4076
+
4077
+ Object.defineProperty(exports, "__esModule", {
4078
+ value: true
4079
+ });
4080
+
4081
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4082
+
4083
+ var _react = __webpack_require__(1);
4084
+
4085
+ var _react2 = _interopRequireDefault(_react);
4086
+
4087
+ var _redux = __webpack_require__(27);
4088
+
4089
+ var _reactRedux = __webpack_require__(7);
4090
+
4091
+ var _wizard = __webpack_require__(8);
4092
+
4093
+ var wizardActions = _interopRequireWildcard(_wizard);
4094
+
4095
+ __webpack_require__(25);
4096
+
4097
+ var _wizardForm = __webpack_require__(23);
4098
+
4099
+ var _wizardForm2 = _interopRequireDefault(_wizardForm);
4100
+
4101
+ var _exampleWizardData = __webpack_require__(10);
4102
+
4103
+ var example = _interopRequireWildcard(_exampleWizardData);
4104
+
4105
+ var _exampleProviderData = __webpack_require__(9);
4106
+
4107
+ var examp = _interopRequireWildcard(_exampleProviderData);
4108
+
4109
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
4110
+
4111
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4112
+
4113
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4114
+
4115
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4116
+
4117
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4118
+
4119
+ var WizardFormLoader = function (_Component) {
4120
+ _inherits(WizardFormLoader, _Component);
4121
+
4122
+ function WizardFormLoader() {
4123
+ _classCallCheck(this, WizardFormLoader);
4124
+
4125
+ var _this = _possibleConstructorReturn(this, (WizardFormLoader.__proto__ || Object.getPrototypeOf(WizardFormLoader)).call(this));
4126
+
4127
+ _this.state = {
4128
+ steps: null,
4129
+ providers: {}
4130
+ };
4131
+ //-----------------------------
4132
+ // 3 Types:
4133
+ // Point-to-point
4134
+ // Api creation
4135
+ // Event pub/sub
4136
+ //-----------------------------
4137
+ _this.allSteps = [
4138
+ // Point-to-point
4139
+ {
4140
+ type: 'name',
4141
+ title: 'Name'
4142
+ }, {
4143
+ type: 'phase',
4144
+ title: 'Implementation Phase'
4145
+ }, {
4146
+ type: 'custom'
4147
+ }, {
4148
+ type: 'environment',
4149
+ title: 'Source Environment',
4150
+ mode: 'source'
4151
+ }, {
4152
+ type: 'schema',
4153
+ title: 'Source Schema',
4154
+ mode: 'source'
4155
+ }, {
4156
+ type: 'filter',
4157
+ title: 'Source Filter'
4158
+ }, {
4159
+ type: 'environment',
4160
+ title: 'Destination Environment',
4161
+ mode: 'destination'
4162
+ }, {
4163
+ type: 'schema',
4164
+ title: 'Destination Schema',
4165
+ mode: 'destination'
4166
+ }, {
4167
+ type: 'map',
4168
+ title: 'Data Mapping'
4169
+ }, {
4170
+ type: 'preview',
4171
+ title: 'Data Preview'
4172
+ }, {
4173
+ type: 'deploy',
4174
+ title: 'Deploy'
4175
+ }];
4176
+ return _this;
4177
+ }
4178
+
4179
+ _createClass(WizardFormLoader, [{
4180
+ key: 'componentDidMount',
4181
+ value: function componentDidMount() {
4182
+ var wizard = example.wizards[1];
4183
+ var stepList = [];
4184
+
4185
+ for (var i = 0; i < this.allSteps.length; i++) {
4186
+ var step = this.allSteps[i];
4187
+ if (step.type === 'name') {
4188
+ step.name = wizard.title;
4189
+ stepList.push(step);
4190
+ } else if (step.type === 'custom') {
4191
+ if (wizard.customStep) {
4192
+ step.type = wizard.customStep.type;
4193
+ step.title = wizard.customStep.title;
4194
+ stepList.push(step);
4195
+ }
4196
+ } else if (step.type === 'environment') {
4197
+ if (step.mode === 'source') {
4198
+ step.provider = wizard.sourceProvider;
4199
+ step.credentials = examp.providerTypes[wizard.sourceProviderType].credentials || null;
4200
+ } else if (step.mode === 'destination') {
4201
+ step.provider = wizard.destinationProvider;
4202
+ step.credentials = examp.providerTypes[wizard.destinationProviderType].credentials || null;
4203
+ }
4204
+ stepList.push(step);
4205
+ } else if (step.type === 'schema') {
4206
+ if (step.mode === 'source') {
4207
+ step.provider = wizard.sourceProvider;
4208
+ step.defaultSchema = wizard.sourceDefaultSchema || null;
4209
+ } else if (step.mode === 'destination') {
4210
+ step.provider = wizard.destinationProvider;
4211
+ step.defaultSchema = wizard.destinationDefaultSchema || null;
4212
+ }
4213
+ stepList.push(step);
4214
+ } else if (step.type === 'filter') {
4215
+ step.provider = wizard.sourceProvider;
4216
+ stepList.push(step);
4217
+ } else if (step.type === 'map') {
4218
+ step.sourceProvider = wizard.sourceProvider;
4219
+ step.destinationProvider = wizard.destinationProvider;
4220
+ step.autoMapData = wizard.autoMapData || null;
4221
+ stepList.push(step);
4222
+ } else if (step.type === 'preview') {
4223
+ step.dummyData = wizard.dummyData || null;
4224
+ stepList.push(step);
4225
+ } else if (step.type === 'deploy') {
4226
+ step.options = wizard.deployment;
4227
+ stepList.push(step);
4228
+ } else {
4229
+ stepList.push(step);
4230
+ }
4231
+ }
4232
+ var providers = {
4233
+ source: wizard.sourceProvider,
4234
+ destination: wizard.destinationProvider
4235
+ };
4236
+ this.setState({
4237
+ steps: stepList,
4238
+ providers: providers
4239
+ });
4240
+ }
4241
+ }, {
4242
+ key: 'render',
4243
+ value: function render() {
4244
+ var _state = this.state,
4245
+ steps = _state.steps,
4246
+ providers = _state.providers;
4247
+
4248
+ if (!steps) return _react2.default.createElement('div', null);
4249
+ return _react2.default.createElement(
4250
+ 'div',
4251
+ { style: {
4252
+ position: 'fixed',
4253
+ width: '100%',
4254
+ height: '100%'
4255
+ } },
4256
+ _react2.default.createElement(_wizardForm2.default, Object.assign({
4257
+ steps: steps,
4258
+ providers: providers
4259
+ }, this.props))
4260
+ );
4261
+ }
4262
+ }]);
4263
+
4264
+ return WizardFormLoader;
4265
+ }(_react.Component);
4266
+
4267
+ function mapStateToProps(state, props) {
4268
+ return {
4269
+ wizard: state.wizard
4270
+ };
4271
+ }
4272
+
4273
+ function mapDispatchToProps(dispatch) {
4274
+ return {
4275
+ actions: (0, _redux.bindActionCreators)(wizardActions, dispatch)
4276
+ };
4277
+ }
4278
+
4279
+ exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(WizardFormLoader);
4280
+
4281
+ /***/ },
4282
+ /* 25 */
4283
+ /***/ function(module, exports) {
4284
+
4285
+ // removed by extract-text-webpack-plugin
65
4286
 
66
4287
  /***/ },
67
- /* 6 */,
68
- /* 7 */,
69
- /* 8 */,
70
- /* 9 */,
71
- /* 10 */
4288
+ /* 26 */
4289
+ /***/ function(module, exports) {
4290
+
4291
+ module.exports = require("axios");
4292
+
4293
+ /***/ },
4294
+ /* 27 */
4295
+ /***/ function(module, exports) {
4296
+
4297
+ module.exports = require("redux");
4298
+
4299
+ /***/ },
4300
+ /* 28 */,
4301
+ /* 29 */,
4302
+ /* 30 */
72
4303
  /***/ function(module, exports, __webpack_require__) {
73
4304
 
74
4305
  'use strict';
@@ -92,7 +4323,7 @@ module.exports =
92
4323
  exports.default = B;
93
4324
 
94
4325
  /***/ },
95
- /* 11 */
4326
+ /* 31 */
96
4327
  /***/ function(module, exports, __webpack_require__) {
97
4328
 
98
4329
  'use strict';
@@ -116,7 +4347,7 @@ module.exports =
116
4347
  exports.default = I;
117
4348
 
118
4349
  /***/ },
119
- /* 12 */
4350
+ /* 32 */
120
4351
  /***/ function(module, exports, __webpack_require__) {
121
4352
 
122
4353
  'use strict';
@@ -223,7 +4454,7 @@ module.exports =
223
4454
  exports.default = MapTable;
224
4455
 
225
4456
  /***/ },
226
- /* 13 */
4457
+ /* 33 */
227
4458
  /***/ function(module, exports, __webpack_require__) {
228
4459
 
229
4460
  'use strict';
@@ -300,7 +4531,7 @@ module.exports =
300
4531
  exports.default = PreviewTable;
301
4532
 
302
4533
  /***/ },
303
- /* 14 */
4534
+ /* 34 */
304
4535
  /***/ function(module, exports, __webpack_require__) {
305
4536
 
306
4537
  'use strict';
@@ -363,7 +4594,7 @@ module.exports =
363
4594
  exports.default = Select;
364
4595
 
365
4596
  /***/ },
366
- /* 15 */
4597
+ /* 35 */
367
4598
  /***/ function(module, exports, __webpack_require__) {
368
4599
 
369
4600
  'use strict';
@@ -406,7 +4637,7 @@ module.exports =
406
4637
  exports.default = Sidebar;
407
4638
 
408
4639
  /***/ },
409
- /* 16 */
4640
+ /* 36 */
410
4641
  /***/ function(module, exports, __webpack_require__) {
411
4642
 
412
4643
  'use strict';
@@ -437,7 +4668,7 @@ module.exports =
437
4668
  exports.default = Spinner;
438
4669
 
439
4670
  /***/ },
440
- /* 17 */
4671
+ /* 37 */
441
4672
  /***/ function(module, exports, __webpack_require__) {
442
4673
 
443
4674
  'use strict';
@@ -446,7 +4677,7 @@ module.exports =
446
4677
  value: true
447
4678
  });
448
4679
 
449
- var _Sidebar = __webpack_require__(15);
4680
+ var _Sidebar = __webpack_require__(35);
450
4681
 
451
4682
  Object.defineProperty(exports, 'Sidebar', {
452
4683
  enumerable: true,
@@ -455,7 +4686,7 @@ module.exports =
455
4686
  }
456
4687
  });
457
4688
 
458
- var _Button = __webpack_require__(10);
4689
+ var _Button = __webpack_require__(30);
459
4690
 
460
4691
  Object.defineProperty(exports, 'Button', {
461
4692
  enumerable: true,
@@ -464,7 +4695,7 @@ module.exports =
464
4695
  }
465
4696
  });
466
4697
 
467
- var _Input = __webpack_require__(11);
4698
+ var _Input = __webpack_require__(31);
468
4699
 
469
4700
  Object.defineProperty(exports, 'Input', {
470
4701
  enumerable: true,
@@ -473,7 +4704,7 @@ module.exports =
473
4704
  }
474
4705
  });
475
4706
 
476
- var _Spinner = __webpack_require__(16);
4707
+ var _Spinner = __webpack_require__(36);
477
4708
 
478
4709
  Object.defineProperty(exports, 'Spinner', {
479
4710
  enumerable: true,
@@ -482,7 +4713,7 @@ module.exports =
482
4713
  }
483
4714
  });
484
4715
 
485
- var _Select = __webpack_require__(14);
4716
+ var _Select = __webpack_require__(34);
486
4717
 
487
4718
  Object.defineProperty(exports, 'Select', {
488
4719
  enumerable: true,
@@ -491,7 +4722,7 @@ module.exports =
491
4722
  }
492
4723
  });
493
4724
 
494
- var _rfInput = __webpack_require__(19);
4725
+ var _rfInput = __webpack_require__(39);
495
4726
 
496
4727
  Object.defineProperty(exports, 'rfInput', {
497
4728
  enumerable: true,
@@ -500,7 +4731,7 @@ module.exports =
500
4731
  }
501
4732
  });
502
4733
 
503
- var _rfRadioGroup = __webpack_require__(20);
4734
+ var _rfRadioGroup = __webpack_require__(40);
504
4735
 
505
4736
  Object.defineProperty(exports, 'rfRadioGroup', {
506
4737
  enumerable: true,
@@ -509,7 +4740,7 @@ module.exports =
509
4740
  }
510
4741
  });
511
4742
 
512
- var _rfCheckbox = __webpack_require__(18);
4743
+ var _rfCheckbox = __webpack_require__(38);
513
4744
 
514
4745
  Object.defineProperty(exports, 'rfCheckbox', {
515
4746
  enumerable: true,
@@ -518,7 +4749,7 @@ module.exports =
518
4749
  }
519
4750
  });
520
4751
 
521
- var _MapTable = __webpack_require__(12);
4752
+ var _MapTable = __webpack_require__(32);
522
4753
 
523
4754
  Object.defineProperty(exports, 'MapTable', {
524
4755
  enumerable: true,
@@ -527,7 +4758,7 @@ module.exports =
527
4758
  }
528
4759
  });
529
4760
 
530
- var _PreviewTable = __webpack_require__(13);
4761
+ var _PreviewTable = __webpack_require__(33);
531
4762
 
532
4763
  Object.defineProperty(exports, 'PreviewTable', {
533
4764
  enumerable: true,
@@ -536,7 +4767,7 @@ module.exports =
536
4767
  }
537
4768
  });
538
4769
 
539
- var _theme = __webpack_require__(49);
4770
+ var _theme = __webpack_require__(52);
540
4771
 
541
4772
  Object.defineProperty(exports, 'styles', {
542
4773
  enumerable: true,
@@ -544,11 +4775,20 @@ module.exports =
544
4775
  return _interopRequireDefault(_theme).default;
545
4776
  }
546
4777
  });
4778
+
4779
+ var _wizardFormLoader = __webpack_require__(24);
4780
+
4781
+ Object.defineProperty(exports, 'WizardFormLoader', {
4782
+ enumerable: true,
4783
+ get: function get() {
4784
+ return _interopRequireDefault(_wizardFormLoader).default;
4785
+ }
4786
+ });
547
4787
 
548
4788
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
549
4789
 
550
4790
  /***/ },
551
- /* 18 */
4791
+ /* 38 */
552
4792
  /***/ function(module, exports, __webpack_require__) {
553
4793
 
554
4794
  'use strict';
@@ -598,7 +4838,7 @@ module.exports =
598
4838
  exports.default = rfCheckbox;
599
4839
 
600
4840
  /***/ },
601
- /* 19 */
4841
+ /* 39 */
602
4842
  /***/ function(module, exports, __webpack_require__) {
603
4843
 
604
4844
  'use strict';
@@ -647,7 +4887,7 @@ module.exports =
647
4887
  exports.default = rfInput;
648
4888
 
649
4889
  /***/ },
650
- /* 20 */
4890
+ /* 40 */
651
4891
  /***/ function(module, exports, __webpack_require__) {
652
4892
 
653
4893
  'use strict';
@@ -683,26 +4923,6 @@ module.exports =
683
4923
  exports.default = rfRadioGroup;
684
4924
 
685
4925
  /***/ },
686
- /* 21 */,
687
- /* 22 */,
688
- /* 23 */,
689
- /* 24 */,
690
- /* 25 */,
691
- /* 26 */,
692
- /* 27 */,
693
- /* 28 */,
694
- /* 29 */,
695
- /* 30 */,
696
- /* 31 */,
697
- /* 32 */,
698
- /* 33 */,
699
- /* 34 */,
700
- /* 35 */,
701
- /* 36 */,
702
- /* 37 */,
703
- /* 38 */,
704
- /* 39 */,
705
- /* 40 */,
706
4926
  /* 41 */,
707
4927
  /* 42 */,
708
4928
  /* 43 */,
@@ -711,11 +4931,10 @@ module.exports =
711
4931
  /* 46 */,
712
4932
  /* 47 */,
713
4933
  /* 48 */,
714
- /* 49 */
715
- /***/ function(module, exports) {
716
-
717
- // removed by extract-text-webpack-plugin
718
-
719
- /***/ }
720
- /******/ ]);
4934
+ /* 49 */,
4935
+ /* 50 */,
4936
+ /* 51 */,
4937
+ /* 52 */
4938
+ 25
4939
+ /******/ ])));
721
4940
  //# sourceMappingURL=lightning.js.map