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