@lingk/sync 0.0.14 → 0.0.15

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