@lingk/sync 0.2.3 → 0.2.5
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/credentialSections.js +32 -20
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js +90 -90
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +30 -30
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js +323 -0
- package/build/loadData.js.map +1 -0
- package/build/main.js +1113 -1162
- package/build/main.js.map +1 -1
- package/build/metadataFunctions.js +2 -2
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js +6 -6
- package/build/reducer.js.map +1 -1
- package/build/saveData.js +339 -0
- package/build/saveData.js.map +1 -0
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -241,9 +241,24 @@ module.exports =
|
|
|
241
241
|
|
|
242
242
|
var _moment2 = _interopRequireDefault(_moment);
|
|
243
243
|
|
|
244
|
+
var _loadData = __webpack_require__(45);
|
|
245
|
+
|
|
246
|
+
var _loadData2 = _interopRequireDefault(_loadData);
|
|
247
|
+
|
|
244
248
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
245
249
|
|
|
246
|
-
|
|
250
|
+
/**************************
|
|
251
|
+
|
|
252
|
+
Loads data from the 'wizard' reducer in the Redux-Form.
|
|
253
|
+
Runs when the first step of the wizard mounts.
|
|
254
|
+
|
|
255
|
+
The code in if(!formValues['resourceGroups']){ is especially important:
|
|
256
|
+
it converts the values stored in DB into human-readable labels.
|
|
257
|
+
if a value exists in DB but not in the pulled metadata, then it skips that value
|
|
258
|
+
|
|
259
|
+
**************************/
|
|
260
|
+
|
|
261
|
+
function initialize(step, wizard, change, formValues, actions, isReverse) {
|
|
247
262
|
|
|
248
263
|
var defaults = {
|
|
249
264
|
//sourceEndpoint: 'https://',
|
|
@@ -275,224 +290,10 @@ module.exports =
|
|
|
275
290
|
destinationMetadata = wizard.destinationMetadata;
|
|
276
291
|
|
|
277
292
|
if (wizard.savedBundles && wizard.savedBundles.bundles && sourceMetadata && destinationMetadata) {
|
|
278
|
-
(function () {
|
|
279
|
-
|
|
280
|
-
var SM = sourceMetadata;
|
|
281
|
-
var DM = destinationMetadata;
|
|
282
|
-
var SP = step.sourceProvider;
|
|
283
|
-
var DP = step.destinationProvider;
|
|
284
|
-
if (isReverse) {
|
|
285
|
-
SM = destinationMetadata;
|
|
286
|
-
DM = sourceMetadata;
|
|
287
|
-
SP = step.destinationProvider;
|
|
288
|
-
DP = step.sourceProvider;
|
|
289
|
-
}
|
|
290
|
-
var resourceGroups = [];
|
|
291
|
-
wizard.savedBundles.bundles.forEach(function (bundle, index) {
|
|
292
|
-
// get bundle resource
|
|
293
|
-
var bundleResource = DM.find(function (rsc) {
|
|
294
|
-
return rsc.name === bundle.resourceLabel;
|
|
295
|
-
});
|
|
296
|
-
if (bundleResource) {
|
|
297
|
-
(function () {
|
|
298
|
-
|
|
299
|
-
//get bundle destinationKeys
|
|
300
|
-
var destinationKeys = [];
|
|
301
|
-
bundle.destinationKeys.forEach(function (dk) {
|
|
302
|
-
var bundleDestinationProperty = bundleResource.properties.find(function (prop) {
|
|
303
|
-
return prop.name === dk;
|
|
304
|
-
});
|
|
305
|
-
if (bundleDestinationProperty) {
|
|
306
|
-
destinationKeys.push(bundleDestinationProperty.label);
|
|
307
|
-
} else {
|
|
308
|
-
destinationKeys.push('Lingk External Id');
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
var sourceKeys = [];
|
|
313
|
-
var sourceKeysObjects = [];
|
|
314
|
-
var sourceKeysParents = [];
|
|
315
|
-
bundle.sourceKeys.forEach(function (sk, i) {
|
|
316
|
-
var sourceKeyResourceObj = bundle.resources.find(function (r) {
|
|
317
|
-
return r.resourceName === bundle.sourceKeysObjects[i];
|
|
318
|
-
});
|
|
319
|
-
if (sourceKeyResourceObj) {
|
|
320
|
-
var sourceKeyResourceProvider = sourceKeyResourceObj.provider.replace('Reader', '').toLowerCase();
|
|
321
|
-
var primaryDataSourceMetadata = sourceKeyResourceProvider === DP.toLowerCase() ? DM : sourceKeyResourceProvider === SP.toLowerCase() ? SM : null;
|
|
322
|
-
|
|
323
|
-
if (primaryDataSourceMetadata) {
|
|
324
|
-
var sourceKeyResource = primaryDataSourceMetadata.find(function (r) {
|
|
325
|
-
return r.type === bundle.sourceKeysObjects[i];
|
|
326
|
-
});
|
|
327
|
-
if (sourceKeyResource) {
|
|
328
|
-
sourceKeysObjects.push(sourceKeyResource.name);
|
|
329
|
-
var deNestedProp = deNest(sk, bundle.sourceKeysParents && JSON.parse(bundle.sourceKeysParents[i]), sourceKeyResource);
|
|
330
|
-
sourceKeys.push(deNestedProp.property);
|
|
331
|
-
sourceKeysParents.push(deNestedProp.parentsArray);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
|
|
337
|
-
var resources = [];
|
|
338
|
-
bundle.resources && bundle.resources.forEach(function (rsc, rscIndex) {
|
|
339
|
-
|
|
340
|
-
//get resource and joinKey for bundleResource (check both metadatas)
|
|
341
|
-
var resourceProvider = rsc.provider.replace('Reader', '').toLowerCase();
|
|
342
|
-
var dataSourceMetadata = resourceProvider === DP.toLowerCase() ? DM : resourceProvider === SP.toLowerCase() ? SM : null;
|
|
343
|
-
|
|
344
|
-
var rscResource = null;
|
|
345
|
-
var deNestedJoinKey = {};
|
|
346
|
-
var joinKeyResourceName = null;
|
|
347
|
-
if (dataSourceMetadata) {
|
|
348
|
-
rscResource = dataSourceMetadata.find(function (r) {
|
|
349
|
-
return r.name === rsc.resourceLabel;
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
if (rsc.joinKeyName) {
|
|
353
|
-
// joinKeyName coming from parameter from another resource
|
|
354
|
-
deNestedJoinKey = { property: rsc.joinKeyName };
|
|
355
|
-
joinKeyResourceName = rsc.joinKeyResource;
|
|
356
293
|
|
|
357
|
-
|
|
358
|
-
if (rsc.resourceName === rsc.joinKeyResource) {
|
|
359
|
-
var joinKeyResource = dataSourceMetadata.find(function (r) {
|
|
360
|
-
return r.type === rsc.joinKeyResource;
|
|
361
|
-
});
|
|
362
|
-
if (joinKeyResource) {
|
|
363
|
-
deNestedJoinKey = deNest(rsc.joinKeyName, rsc.joinKeyParents, joinKeyResource);
|
|
364
|
-
joinKeyResourceName = joinKeyResource.name;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
} // end if dataSourceMetadata
|
|
369
|
-
|
|
370
|
-
//get resource and primaryKey for first resource in bundle (check both metadatas)
|
|
371
|
-
var primaryResourceProvider = bundle.resources[0].provider.replace('Reader', '').toLowerCase();
|
|
372
|
-
var primaryDataSourceMetadata = primaryResourceProvider === DP.toLowerCase() ? DM : primaryResourceProvider === SP.toLowerCase() ? SM : null;
|
|
373
|
-
|
|
374
|
-
var deNestedPrimaryKey = {};
|
|
375
|
-
var primaryKeyResourceName = null;
|
|
376
|
-
if (primaryDataSourceMetadata) {
|
|
377
|
-
if (rsc.primaryKeyName) {
|
|
378
|
-
//primaryKeyName coming from parameter (another resource)
|
|
379
|
-
deNestedPrimaryKey = { property: rsc.primaryKeyName };
|
|
380
|
-
primaryKeyResourceName = rsc.primaryKeyResource;
|
|
381
|
-
|
|
382
|
-
// primaryKeyName coming from field on this resource
|
|
383
|
-
if (bundle.resources[0].resourceLabel === rsc.primaryKeyResource) {
|
|
384
|
-
var rscPrimaryResource = primaryDataSourceMetadata.find(function (r) {
|
|
385
|
-
return r.type === rsc.primaryKeyResource;
|
|
386
|
-
});
|
|
387
|
-
if (rscPrimaryResource) {
|
|
388
|
-
deNestedPrimaryKey = deNest(rsc.primaryKeyName, rsc.primaryKeyParents, rscPrimaryResource);
|
|
389
|
-
primaryKeyResourceName = rscPrimaryResource.name;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
if (rscResource) {
|
|
396
|
-
resources.push(Object.assign({
|
|
397
|
-
name: rscResource.name,
|
|
398
|
-
provider: resourceProvider
|
|
399
|
-
}, deNestedJoinKey.property && { joinKeyName: deNestedJoinKey.property }, joinKeyResourceName && { joinKeyResource: joinKeyResourceName }, deNestedJoinKey.parentsArray && deNestedJoinKey.parentsArray.length > 0 && { joinKeyParents: deNestedJoinKey.parentsArray }, deNestedPrimaryKey.property && { primaryKeyName: deNestedPrimaryKey.property }, primaryKeyResourceName && { primaryKeyResource: primaryKeyResourceName }, deNestedPrimaryKey.parentsArray && deNestedPrimaryKey.parentsArray.length > 0 && { primaryKeyParents: deNestedPrimaryKey.parentsArray }, {
|
|
400
|
-
joinType: rsc.joinType || 'LEFT JOIN'
|
|
401
|
-
}, rscResource.parentRef && { parentRef: rscResource.parentRef }, rsc.parameterFilters && { parameterFilters: rsc.parameterFilters }, {
|
|
402
|
-
level: rsc.level || (rscIndex === 0 ? 0 : 1)
|
|
403
|
-
}, rsc.parentNameAndProvider && { parentNameAndProvider: rsc.parentNameAndProvider }));
|
|
404
|
-
}
|
|
405
|
-
}); // end bundle.resource.forEach
|
|
406
|
-
|
|
407
|
-
var mappings = [];
|
|
408
|
-
wizard.savedMapping && wizard.savedMapping.mappings && wizard.savedMapping.mappings.filter(function (map) {
|
|
409
|
-
return map.bundleIndex === index;
|
|
410
|
-
}).forEach(function (m) {
|
|
411
|
-
var dataSourceMetadata = m.isDestinationResource ? DM : SM;
|
|
412
|
-
if (isReverse) {
|
|
413
|
-
dataSourceMetadata = m.isDestinationResource ? SM : DM;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
var resourceFromBundle = bundle.resources.find(function (br) {
|
|
417
|
-
return br.resourceName === m.resourceFromName;
|
|
418
|
-
});
|
|
419
|
-
var sourceResource = resourceFromBundle && dataSourceMetadata.find(function (rsc) {
|
|
420
|
-
return rsc.name === resourceFromBundle.resourceLabel;
|
|
421
|
-
});
|
|
422
|
-
var deNestedProp = deNest(m.propertyFromName, m.propertyFromParents, sourceResource);
|
|
423
|
-
|
|
424
|
-
var sourceProperty = null;
|
|
425
|
-
if (sourceResource) {
|
|
426
|
-
sourceProperty = sourceResource.properties.find(function (prop) {
|
|
427
|
-
return prop.name === m.propertyFromName;
|
|
428
|
-
});
|
|
429
|
-
}
|
|
294
|
+
var resourceGroups = (0, _loadData2.default)(wizard.savedBundles, wizard.savedMapping, step.sourceProvider, step.destinationProvider, sourceMetadata, destinationMetadata, isReverse);
|
|
430
295
|
|
|
431
|
-
|
|
432
|
-
return prop.name === m.propertyToName;
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
var transformations = [{ type: 'none' }];
|
|
436
|
-
if (m.transformations && m.transformations.length > 0) {
|
|
437
|
-
var trans = m.transformations[0];
|
|
438
|
-
if (trans.type === 'concat') {
|
|
439
|
-
(function () {
|
|
440
|
-
var s = trans.args[1].split('->');
|
|
441
|
-
var transConcatResourceName = s[s.length - 2];
|
|
442
|
-
var nestedFields = s[s.length - 1].split('.');
|
|
443
|
-
var field = nestedFields[nestedFields.length - 1];
|
|
444
|
-
nestedFields.pop();
|
|
445
|
-
var concatRsc = wizard.savedBundles.bundles[m.bundleIndex].resources.find(function (r) {
|
|
446
|
-
return r.resourceLabel === transConcatResourceName;
|
|
447
|
-
});
|
|
448
|
-
var concatRscProvider = concatRsc.provider.replace('Reader', '').toLowerCase();
|
|
449
|
-
var concatRscMetadata = concatRscProvider === DP.toLowerCase() ? DM : concatRscProvider === SP.toLowerCase() ? SM : null;
|
|
450
|
-
if (concatRscMetadata) {
|
|
451
|
-
var transConcatResource = concatRscMetadata.find(function (r) {
|
|
452
|
-
return r.type === concatRsc.resourceName;
|
|
453
|
-
});
|
|
454
|
-
var concatLabels = deNest(field, nestedFields, transConcatResource);
|
|
455
|
-
var result = transConcatResource.name + '->';
|
|
456
|
-
concatLabels.parentsArray.forEach(function (p) {
|
|
457
|
-
return result += p + '.';
|
|
458
|
-
});
|
|
459
|
-
result += concatLabels.property;
|
|
460
|
-
transformations = [{ type: 'concat', args: [trans.args[0], result] }];
|
|
461
|
-
}
|
|
462
|
-
})();
|
|
463
|
-
} else {
|
|
464
|
-
transformations = m.transformations;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
if (sourceResource && sourceProperty && destinationProperty) {
|
|
469
|
-
mappings.push(Object.assign({
|
|
470
|
-
resourceFromName: sourceResource.name,
|
|
471
|
-
propertyFromName: deNestedProp.property
|
|
472
|
-
}, deNestedProp.parentsArray && deNestedProp.parentsArray.length > 0 && { propertyFromParents: deNestedProp.parentsArray }, {
|
|
473
|
-
resourceToName: bundleResource.name,
|
|
474
|
-
propertyToName: destinationProperty.label
|
|
475
|
-
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }, {
|
|
476
|
-
transformations: transformations
|
|
477
|
-
}));
|
|
478
|
-
}
|
|
479
|
-
}); // end wizard.savedMappings.forEach
|
|
480
|
-
resourceGroups.push(Object.assign({
|
|
481
|
-
name: bundleResource.name,
|
|
482
|
-
resources: resources, mappings: mappings,
|
|
483
|
-
customExternalKeys: bundle.customExternalKeys || false
|
|
484
|
-
}, bundle.customExternalKeys === true && { sourceKeys: sourceKeys, sourceKeysObjects: sourceKeysObjects, sourceKeysParents: sourceKeysParents, destinationKeys: destinationKeys }, bundle.customExternalKeys === false && { lingkSourceKey: sourceKeys[0], lingkSourceKeyObject: sourceKeysObjects[0],
|
|
485
|
-
lingkSourceKeyParents: sourceKeysParents[0] }, {
|
|
486
|
-
provider: bundle.provider
|
|
487
|
-
}, bundle.recordTypeId && { recordTypeId: bundle.recordTypeId }, {
|
|
488
|
-
deleteEnabled: bundle.deleteEnabled || false
|
|
489
|
-
})); // end push each bundle (contains resources AND mappings)
|
|
490
|
-
})();
|
|
491
|
-
} // end if bundleResource
|
|
492
|
-
}); // end forEach over bundles
|
|
493
|
-
|
|
494
|
-
change('resourceGroups', formValues['resourceGroups'] || resourceGroups);
|
|
495
|
-
})();
|
|
296
|
+
change('resourceGroups', formValues['resourceGroups'] || resourceGroups);
|
|
496
297
|
} // end if wizard.savedBundles and metadatas
|
|
497
298
|
} // end if (!formValues['resourceGroups'])
|
|
498
299
|
|
|
@@ -564,55 +365,10 @@ module.exports =
|
|
|
564
365
|
}
|
|
565
366
|
}
|
|
566
367
|
|
|
567
|
-
|
|
568
|
-
} /**************************
|
|
569
|
-
|
|
570
|
-
Loads data from the 'wizard' reducer in the Redux-Form.
|
|
571
|
-
Runs when the first step of the wizard mounts.
|
|
572
|
-
|
|
573
|
-
The code in if(!formValues['resourceGroups']){ is especially important:
|
|
574
|
-
it converts the values stored in DB into human-readable labels.
|
|
575
|
-
if a value exists in DB but not in the pulled metadata, then it skips that value
|
|
576
|
-
|
|
577
|
-
**************************/
|
|
578
|
-
|
|
579
|
-
function deNest(prop, parents, rsc) {
|
|
580
|
-
var property = '';
|
|
581
|
-
var parentsArray = [];
|
|
582
|
-
if (rsc) {
|
|
583
|
-
if (parents && parents.length > 0) {
|
|
584
|
-
(function () {
|
|
585
|
-
var nestedRsc = rsc;
|
|
586
|
-
var tempParentsArray = [];
|
|
587
|
-
parents.forEach(function (ps) {
|
|
588
|
-
var pProp = nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
589
|
-
return p.name === ps;
|
|
590
|
-
});
|
|
591
|
-
tempParentsArray.push(pProp.label);
|
|
592
|
-
nestedRsc = pProp.object;
|
|
593
|
-
});
|
|
594
|
-
parentsArray = tempParentsArray;
|
|
595
|
-
var sourceKeyProperty = nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
596
|
-
return p.name === prop;
|
|
597
|
-
});
|
|
598
|
-
if (sourceKeyProperty) {
|
|
599
|
-
property = sourceKeyProperty.label;
|
|
600
|
-
}
|
|
601
|
-
})();
|
|
602
|
-
} else {
|
|
603
|
-
var sourceKeyProperty = rsc.properties && rsc.properties.find(function (p) {
|
|
604
|
-
return p.name === prop;
|
|
605
|
-
});
|
|
606
|
-
if (sourceKeyProperty) {
|
|
607
|
-
property = sourceKeyProperty.label;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
if (prop === 'Lingk_External_Id__c') property = 'Lingk External Id';
|
|
612
|
-
return { property: property, parentsArray: parentsArray };
|
|
368
|
+
actions.setWizardDataLoaded(true);
|
|
613
369
|
}
|
|
614
370
|
|
|
615
|
-
exports.default =
|
|
371
|
+
exports.default = initialize;
|
|
616
372
|
|
|
617
373
|
/***/ },
|
|
618
374
|
/* 12 */
|
|
@@ -631,7 +387,7 @@ module.exports =
|
|
|
631
387
|
/***/ function(module, exports, __webpack_require__) {
|
|
632
388
|
|
|
633
389
|
var dP = __webpack_require__(18)
|
|
634
|
-
, createDesc = __webpack_require__(
|
|
390
|
+
, createDesc = __webpack_require__(35);
|
|
635
391
|
module.exports = __webpack_require__(9) ? function(object, key, value){
|
|
636
392
|
return dP.f(object, key, createDesc(1, value));
|
|
637
393
|
} : function(object, key, value){
|
|
@@ -681,8 +437,8 @@ module.exports =
|
|
|
681
437
|
/***/ function(module, exports, __webpack_require__) {
|
|
682
438
|
|
|
683
439
|
var anObject = __webpack_require__(15)
|
|
684
|
-
, IE8_DOM_DEFINE = __webpack_require__(
|
|
685
|
-
, toPrimitive = __webpack_require__(
|
|
440
|
+
, IE8_DOM_DEFINE = __webpack_require__(50)
|
|
441
|
+
, toPrimitive = __webpack_require__(54)
|
|
686
442
|
, dP = Object.defineProperty;
|
|
687
443
|
|
|
688
444
|
exports.f = __webpack_require__(9) ? Object.defineProperty : function defineProperty(O, P, Attributes){
|
|
@@ -713,7 +469,7 @@ module.exports =
|
|
|
713
469
|
/***/ function(module, exports, __webpack_require__) {
|
|
714
470
|
|
|
715
471
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
716
|
-
var IObject = __webpack_require__(
|
|
472
|
+
var IObject = __webpack_require__(32)
|
|
717
473
|
, defined = __webpack_require__(16);
|
|
718
474
|
module.exports = function(it){
|
|
719
475
|
return IObject(defined(it));
|
|
@@ -742,7 +498,7 @@ module.exports =
|
|
|
742
498
|
|
|
743
499
|
var _react2 = _interopRequireDefault(_react);
|
|
744
500
|
|
|
745
|
-
var _nestExpand = __webpack_require__(
|
|
501
|
+
var _nestExpand = __webpack_require__(62);
|
|
746
502
|
|
|
747
503
|
var _nestExpand2 = _interopRequireDefault(_nestExpand);
|
|
748
504
|
|
|
@@ -866,7 +622,7 @@ module.exports =
|
|
|
866
622
|
|
|
867
623
|
var global = __webpack_require__(6)
|
|
868
624
|
, core = __webpack_require__(8)
|
|
869
|
-
, ctx = __webpack_require__(
|
|
625
|
+
, ctx = __webpack_require__(49)
|
|
870
626
|
, hide = __webpack_require__(13)
|
|
871
627
|
, PROTOTYPE = 'prototype';
|
|
872
628
|
|
|
@@ -930,8 +686,8 @@ module.exports =
|
|
|
930
686
|
/* 25 */
|
|
931
687
|
/***/ function(module, exports, __webpack_require__) {
|
|
932
688
|
|
|
933
|
-
var shared = __webpack_require__(
|
|
934
|
-
, uid = __webpack_require__(
|
|
689
|
+
var shared = __webpack_require__(36)('keys')
|
|
690
|
+
, uid = __webpack_require__(38);
|
|
935
691
|
module.exports = function(key){
|
|
936
692
|
return shared[key] || (shared[key] = uid(key));
|
|
937
693
|
};
|
|
@@ -1513,7 +1269,7 @@ module.exports =
|
|
|
1513
1269
|
|
|
1514
1270
|
var _react2 = _interopRequireDefault(_react);
|
|
1515
1271
|
|
|
1516
|
-
var _propTypes = __webpack_require__(
|
|
1272
|
+
var _propTypes = __webpack_require__(40);
|
|
1517
1273
|
|
|
1518
1274
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
1519
1275
|
|
|
@@ -1525,7 +1281,7 @@ module.exports =
|
|
|
1525
1281
|
|
|
1526
1282
|
var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);
|
|
1527
1283
|
|
|
1528
|
-
var _PropTypes = __webpack_require__(
|
|
1284
|
+
var _PropTypes = __webpack_require__(74);
|
|
1529
1285
|
|
|
1530
1286
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1531
1287
|
|
|
@@ -1602,142 +1358,425 @@ module.exports =
|
|
|
1602
1358
|
/* 28 */
|
|
1603
1359
|
/***/ function(module, exports) {
|
|
1604
1360
|
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
module.exports = function(it){
|
|
1608
|
-
return toString.call(it).slice(8, -1);
|
|
1609
|
-
};
|
|
1610
|
-
|
|
1611
|
-
/***/ },
|
|
1612
|
-
/* 29 */
|
|
1613
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1614
|
-
|
|
1615
|
-
var isObject = __webpack_require__(14)
|
|
1616
|
-
, document = __webpack_require__(6).document
|
|
1617
|
-
// in old IE typeof document.createElement is 'object'
|
|
1618
|
-
, is = isObject(document) && isObject(document.createElement);
|
|
1619
|
-
module.exports = function(it){
|
|
1620
|
-
return is ? document.createElement(it) : {};
|
|
1621
|
-
};
|
|
1622
|
-
|
|
1623
|
-
/***/ },
|
|
1624
|
-
/* 30 */
|
|
1625
|
-
/***/ function(module, exports) {
|
|
1626
|
-
|
|
1627
|
-
// IE 8- don't enum bug keys
|
|
1628
|
-
module.exports = (
|
|
1629
|
-
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
|
1630
|
-
).split(',');
|
|
1631
|
-
|
|
1632
|
-
/***/ },
|
|
1633
|
-
/* 31 */
|
|
1634
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1635
|
-
|
|
1636
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1637
|
-
var cof = __webpack_require__(28);
|
|
1638
|
-
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
|
|
1639
|
-
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
1640
|
-
};
|
|
1641
|
-
|
|
1642
|
-
/***/ },
|
|
1643
|
-
/* 32 */,
|
|
1644
|
-
/* 33 */
|
|
1645
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1646
|
-
|
|
1647
|
-
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
1648
|
-
var $keys = __webpack_require__(49)
|
|
1649
|
-
, enumBugKeys = __webpack_require__(30);
|
|
1361
|
+
'use strict';
|
|
1650
1362
|
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
/***/ },
|
|
1656
|
-
/* 34 */
|
|
1657
|
-
/***/ function(module, exports) {
|
|
1658
|
-
|
|
1659
|
-
module.exports = function(bitmap, value){
|
|
1660
|
-
return {
|
|
1661
|
-
enumerable : !(bitmap & 1),
|
|
1662
|
-
configurable: !(bitmap & 2),
|
|
1663
|
-
writable : !(bitmap & 4),
|
|
1664
|
-
value : value
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
|
|
1668
|
-
/***/ },
|
|
1669
|
-
/* 35 */
|
|
1670
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1671
|
-
|
|
1672
|
-
var global = __webpack_require__(6)
|
|
1673
|
-
, SHARED = '__core-js_shared__'
|
|
1674
|
-
, store = global[SHARED] || (global[SHARED] = {});
|
|
1675
|
-
module.exports = function(key){
|
|
1676
|
-
return store[key] || (store[key] = {});
|
|
1677
|
-
};
|
|
1678
|
-
|
|
1679
|
-
/***/ },
|
|
1680
|
-
/* 36 */
|
|
1681
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1682
|
-
|
|
1683
|
-
// 7.1.13 ToObject(argument)
|
|
1684
|
-
var defined = __webpack_require__(16);
|
|
1685
|
-
module.exports = function(it){
|
|
1686
|
-
return Object(defined(it));
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
/***/ },
|
|
1690
|
-
/* 37 */
|
|
1691
|
-
/***/ function(module, exports) {
|
|
1692
|
-
|
|
1693
|
-
var id = 0
|
|
1694
|
-
, px = Math.random();
|
|
1695
|
-
module.exports = function(key){
|
|
1696
|
-
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
|
1697
|
-
};
|
|
1698
|
-
|
|
1699
|
-
/***/ },
|
|
1700
|
-
/* 38 */
|
|
1701
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1702
|
-
|
|
1703
|
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
1704
|
-
Copyright (c) 2016 Jed Watson.
|
|
1705
|
-
Licensed under the MIT License (MIT), see
|
|
1706
|
-
http://jedwatson.github.io/classnames
|
|
1707
|
-
*/
|
|
1708
|
-
/* global define */
|
|
1363
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1364
|
+
value: true
|
|
1365
|
+
});
|
|
1366
|
+
/**************************
|
|
1709
1367
|
|
|
1710
|
-
|
|
1711
|
-
|
|
1368
|
+
Saves data from the Redux-Form and converts it to apiNames, which are used
|
|
1369
|
+
to generate the recipe and are stored in our DB.
|
|
1712
1370
|
|
|
1713
|
-
|
|
1371
|
+
Runs when user click "submit"
|
|
1714
1372
|
|
|
1715
|
-
|
|
1716
|
-
var classes = [];
|
|
1373
|
+
If a new dropdown with fields is added to the UI, it must be added to this function as well
|
|
1717
1374
|
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1375
|
+
sP = sourceProvider
|
|
1376
|
+
tM = targetMetadata
|
|
1377
|
+
**************************/
|
|
1721
1378
|
|
|
1722
|
-
|
|
1379
|
+
function saveData(resourceGroups, sP, tP, sM, tM, sourceEndpoint, isReverse) {
|
|
1723
1380
|
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
}
|
|
1381
|
+
// switch providers and metadatas if the wizard is reverse
|
|
1382
|
+
var sourceProvider = sP;
|
|
1383
|
+
var targetProvider = tP;
|
|
1384
|
+
var sourceMetadata = sM;
|
|
1385
|
+
var targetMetadata = tM;
|
|
1386
|
+
if (isReverse) {
|
|
1387
|
+
sourceProvider = tP;
|
|
1388
|
+
targetProvider = sP;
|
|
1389
|
+
sourceMetadata = tM;
|
|
1390
|
+
targetMetadata = sM;
|
|
1391
|
+
}
|
|
1736
1392
|
|
|
1737
|
-
|
|
1738
|
-
|
|
1393
|
+
var bundles = resourceGroups || [];
|
|
1394
|
+
var mappings = [];
|
|
1395
|
+
var endpoints = {};
|
|
1396
|
+
bundles && bundles.forEach(function (group, index) {
|
|
1397
|
+
// first get target resource
|
|
1398
|
+
var destinationResource = targetMetadata ? targetMetadata.find(function (rsc) {
|
|
1399
|
+
return rsc.name === group.name;
|
|
1400
|
+
}) : group;
|
|
1401
|
+
group.name = destinationResource.type;
|
|
1402
|
+
group.resourceLabel = destinationResource.name;
|
|
1403
|
+
group.provider = targetProvider.toLowerCase();
|
|
1404
|
+
if (destinationResource.recordTypeId) {
|
|
1405
|
+
group.recordTypeId = destinationResource.recordTypeId;
|
|
1406
|
+
}
|
|
1739
1407
|
|
|
1740
|
-
|
|
1408
|
+
// destination Keys (for de-duplication in the Connect modal)
|
|
1409
|
+
if (!group.customExternalKeys && group.lingkSourceKey) {
|
|
1410
|
+
group.sourceKeys = [group.lingkSourceKey];
|
|
1411
|
+
group.sourceKeysObjects = [group.lingkSourceKeyObject];
|
|
1412
|
+
group.sourceKeysParents = [group.lingkSourceKeyParents];
|
|
1413
|
+
group.destinationKeys = ['Lingk_External_Id__c'];
|
|
1414
|
+
} else {
|
|
1415
|
+
(function () {
|
|
1416
|
+
var destinationKeys = [];
|
|
1417
|
+
if (group.destinationKeys) {
|
|
1418
|
+
group.destinationKeys.forEach(function (dk) {
|
|
1419
|
+
if (destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
|
|
1420
|
+
return prop.label === dk;
|
|
1421
|
+
})) {
|
|
1422
|
+
destinationKeys.push(destinationResource.properties.find(function (prop) {
|
|
1423
|
+
return prop.label === dk;
|
|
1424
|
+
}).name);
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
group.destinationKeys = destinationKeys;
|
|
1429
|
+
})();
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
// get resource + name of sourceKeys
|
|
1433
|
+
var sourceKeys = [];
|
|
1434
|
+
var sourceKeysObjects = [];
|
|
1435
|
+
var sourceKeysParents = [];
|
|
1436
|
+
group.sourceKeys && group.sourceKeys.forEach(function (sk, i) {
|
|
1437
|
+
var sourceKeyResourceProvider = group.resources.find(function (r) {
|
|
1438
|
+
return r.name === group.sourceKeysObjects[i];
|
|
1439
|
+
}).provider;
|
|
1440
|
+
var dataSourceMetadata = sourceKeyResourceProvider === targetProvider ? targetMetadata : sourceMetadata;
|
|
1441
|
+
var sourceResource = dataSourceMetadata.find(function (metaRsc) {
|
|
1442
|
+
return metaRsc.name === group.sourceKeysObjects[i];
|
|
1443
|
+
});
|
|
1444
|
+
|
|
1445
|
+
if (sourceResource) {
|
|
1446
|
+
|
|
1447
|
+
var nestedSourceKey = findNestedProp(sk, group.sourceKeysParents && group.sourceKeysParents[i], sourceResource);
|
|
1448
|
+
sourceKeys.push(nestedSourceKey.property);
|
|
1449
|
+
sourceKeysParents.push(JSON.stringify(nestedSourceKey.parentsArray));
|
|
1450
|
+
sourceKeysObjects.push(sourceResource.type);
|
|
1451
|
+
}
|
|
1452
|
+
});
|
|
1453
|
+
group.sourceKeys = sourceKeys;
|
|
1454
|
+
group.sourceKeysObjects = sourceKeysObjects;
|
|
1455
|
+
group.sourceKeysParents = sourceKeysParents;
|
|
1456
|
+
|
|
1457
|
+
// MAPPINGS
|
|
1458
|
+
if (group.mappings) {
|
|
1459
|
+
group.mappings.forEach(function (singleMapping) {
|
|
1460
|
+
// get mapping source resource (check both metadatas)
|
|
1461
|
+
var dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ? targetMetadata : sourceMetadata;
|
|
1462
|
+
if (isReverse) {
|
|
1463
|
+
dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ? sourceMetadata : targetMetadata;
|
|
1464
|
+
}
|
|
1465
|
+
var sourceResource = dataSourceMetadata.find(function (rsc) {
|
|
1466
|
+
return rsc.name === singleMapping.resourceFromName;
|
|
1467
|
+
});
|
|
1468
|
+
|
|
1469
|
+
// get mapping source property
|
|
1470
|
+
var nestedSourceProp = findNestedProp(singleMapping.propertyFromName, singleMapping.propertyFromParents, sourceResource);
|
|
1471
|
+
//get mapping destination property
|
|
1472
|
+
var destinationProperty = destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
|
|
1473
|
+
return prop.label === singleMapping.propertyToName;
|
|
1474
|
+
});
|
|
1475
|
+
|
|
1476
|
+
//dont save transformation that are just "none"
|
|
1477
|
+
if (singleMapping.transformations && singleMapping.transformations.length > 0) {
|
|
1478
|
+
singleMapping.transformations.forEach(function (trans, index) {
|
|
1479
|
+
if (trans.type === 'none') {
|
|
1480
|
+
singleMapping.transformations.splice(index, 1);
|
|
1481
|
+
}
|
|
1482
|
+
if (trans.type === 'concat') {
|
|
1483
|
+
var r;
|
|
1484
|
+
|
|
1485
|
+
(function () {
|
|
1486
|
+
var s = trans.args[1].split('->');
|
|
1487
|
+
|
|
1488
|
+
var transConcatSourceResourceProvider = group.resources.find(function (r) {
|
|
1489
|
+
return r.name === s[0];
|
|
1490
|
+
}).provider.toLowerCase();
|
|
1491
|
+
var transConcatSourceMetadata = transConcatSourceResourceProvider === targetProvider.toLowerCase() ? targetMetadata : sourceMetadata;
|
|
1492
|
+
var transConcatSourceResource = transConcatSourceMetadata.find(function (rsc) {
|
|
1493
|
+
return rsc.name === s[0];
|
|
1494
|
+
});
|
|
1495
|
+
|
|
1496
|
+
var nestedFields = s[1].split('.');
|
|
1497
|
+
var field = nestedFields[nestedFields.length - 1];
|
|
1498
|
+
nestedFields.pop();
|
|
1499
|
+
var transSourceApiNames = findNestedProp(field, nestedFields, transConcatSourceResource);
|
|
1500
|
+
r = transConcatSourceResourceProvider + '->' + transConcatSourceResource.type + '->';
|
|
1501
|
+
|
|
1502
|
+
transSourceApiNames.parentsArray.forEach(function (p) {
|
|
1503
|
+
return r += p + '.';
|
|
1504
|
+
});
|
|
1505
|
+
r += transSourceApiNames.property;
|
|
1506
|
+
trans.args[1] = r;
|
|
1507
|
+
})();
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
if (sourceResource && nestedSourceProp.property && destinationResource && destinationProperty) {
|
|
1513
|
+
mappings = mappings.concat(Object.assign({ // add to mappings obj
|
|
1514
|
+
resourceFromLabel: singleMapping.dataSourceIsDestinationEntity ? sourceResource.type + '_' + targetProvider.toLowerCase() : sourceResource.type + '_' + sourceProvider.toLowerCase(),
|
|
1515
|
+
resourceFromName: sourceResource.type,
|
|
1516
|
+
propertyFromName: nestedSourceProp.property
|
|
1517
|
+
}, nestedSourceProp.parentsArray && nestedSourceProp.parentsArray.length > 0 && { propertyFromParents: nestedSourceProp.parentsArray }, {
|
|
1518
|
+
resourceToName: destinationResource.type,
|
|
1519
|
+
propertyToName: destinationProperty.name,
|
|
1520
|
+
bundleIndex: index
|
|
1521
|
+
}, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.isUnique && { isUnique: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
|
|
1522
|
+
return t.type === 'none';
|
|
1523
|
+
}) && { transformations: singleMapping.transformations }));
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
delete group.mappings; // remove the mapping obj from a resourceGroup
|
|
1527
|
+
if (group.lingkSourceKey) delete group.lingkSourceKey;
|
|
1528
|
+
if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject;
|
|
1529
|
+
if (group.lingkSourceKeyParents) delete group.lingkSourceKeyParents;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
// BUNDLES
|
|
1533
|
+
if (group.resources) {
|
|
1534
|
+
group.resources = group.resources.map(function (rsc, rscIndex) {
|
|
1535
|
+
//get resource source (check both metadatas)
|
|
1536
|
+
var dataSourceMetadata = rsc.provider.toLowerCase() === targetProvider.toLowerCase() ? targetMetadata : sourceMetadata;
|
|
1537
|
+
var sourceResource = dataSourceMetadata.find(function (metaRsc) {
|
|
1538
|
+
return metaRsc.name === rsc.name;
|
|
1539
|
+
});
|
|
1540
|
+
// via parameter, dont change because its already "type"
|
|
1541
|
+
var nestedJoinKey = { property: rsc.joinKeyName };
|
|
1542
|
+
var joinKeyResource = rsc.joinKeyResource;
|
|
1543
|
+
// is from a same resource (not via parameters)
|
|
1544
|
+
if (sourceResource && sourceResource.name === rsc.joinKeyResource) {
|
|
1545
|
+
nestedJoinKey = findNestedProp(rsc.joinKeyName, rsc.joinKeyParents, sourceResource);
|
|
1546
|
+
joinKeyResource = sourceResource.type;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
//make endpoint
|
|
1550
|
+
var suffix = sourceResource && sourceResource.endpointSuffix;
|
|
1551
|
+
if (suffix) {
|
|
1552
|
+
endpoints['url_' + sourceResource.type + '_' + sourceProvider] = '' + sourceEndpoint + (suffix[0] === '/' ? '' : '/') + suffix;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
//get first resource in bundle (for primaryKeyName)
|
|
1556
|
+
var primaryDataSourceMetadata = group.resources[0].provider.toLowerCase() === targetProvider.toLowerCase() ? targetMetadata : sourceMetadata;
|
|
1557
|
+
var primarySourceResource = primaryDataSourceMetadata.find(function (metaRsc) {
|
|
1558
|
+
return metaRsc.name === group.resources[0].name;
|
|
1559
|
+
});
|
|
1560
|
+
|
|
1561
|
+
// via parameter, dont change because its already "type"
|
|
1562
|
+
var nestedPrimaryKey = { property: rsc.primaryKeyName };
|
|
1563
|
+
var primaryKeyResource = rsc.primaryKeyResource;
|
|
1564
|
+
// is from a same resource (not via parameters)
|
|
1565
|
+
if (primarySourceResource && primarySourceResource.name === rsc.primaryKeyResource) {
|
|
1566
|
+
nestedPrimaryKey = findNestedProp(rsc.primaryKeyName, rsc.primaryKeyParents, primarySourceResource);
|
|
1567
|
+
primaryKeyResource = primarySourceResource.type;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
var rscParentProvider = null;
|
|
1571
|
+
if (rsc.parentNameAndProvider) {
|
|
1572
|
+
var provArray = rsc.parentNameAndProvider.split('_');
|
|
1573
|
+
rscParentProvider = provArray[provArray.length - 1];
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
if (sourceResource) {
|
|
1577
|
+
return Object.assign({
|
|
1578
|
+
resourceName: sourceResource.type,
|
|
1579
|
+
resourceLabel: sourceResource.name,
|
|
1580
|
+
resourceNameAndProvider: sourceResource.type + '_' + rsc.provider.toLowerCase(),
|
|
1581
|
+
joinKeyName: nestedJoinKey.property,
|
|
1582
|
+
joinKeyResource: joinKeyResource
|
|
1583
|
+
}, nestedJoinKey.parentsArray && nestedJoinKey.parentsArray.length > 0 && { joinKeyParents: nestedJoinKey.parentsArray }, {
|
|
1584
|
+
primaryKeyName: nestedPrimaryKey.property,
|
|
1585
|
+
primaryKeyResource: primaryKeyResource
|
|
1586
|
+
}, nestedPrimaryKey.parentsArray && nestedPrimaryKey.parentsArray.length > 0 && { primaryKeyParents: nestedPrimaryKey.parentsArray }, {
|
|
1587
|
+
provider: rsc.provider.toLowerCase() + 'Reader',
|
|
1588
|
+
joinType: rsc.joinType
|
|
1589
|
+
}, rsc.recordTypeId && { recordTypeId: rsc.recordTypeId }, rsc.parameterFilters && { parameterFilters: rsc.parameterFilters.filter(function (pf) {
|
|
1590
|
+
return pf.val;
|
|
1591
|
+
}) }, {
|
|
1592
|
+
level: rsc.level || (rscIndex === 0 ? 0 : 1)
|
|
1593
|
+
}, primaryKeyResource && rscParentProvider && { parentNameAndProvider: primaryKeyResource + '_' + rscParentProvider.toLowerCase() });
|
|
1594
|
+
} else return null;
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
}); //end for each bundle
|
|
1598
|
+
return { bundles: bundles, mappings: mappings, endpoints: endpoints };
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
function findNestedProp(prop, parents, rsc) {
|
|
1602
|
+
var property = '';
|
|
1603
|
+
var parentsArray = [];
|
|
1604
|
+
if (parents && parents.length > 0) {
|
|
1605
|
+
(function () {
|
|
1606
|
+
var nestedRsc = rsc;
|
|
1607
|
+
var tempParentsArray = [];
|
|
1608
|
+
parents.forEach(function (pk) {
|
|
1609
|
+
if (nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
1610
|
+
return p.label === pk;
|
|
1611
|
+
})) {
|
|
1612
|
+
var pkProp = nestedRsc.properties.find(function (p) {
|
|
1613
|
+
return p.label === pk;
|
|
1614
|
+
});
|
|
1615
|
+
tempParentsArray.push(pkProp.name);
|
|
1616
|
+
nestedRsc = pkProp.object;
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
parentsArray = tempParentsArray;
|
|
1620
|
+
if (nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
1621
|
+
return p.label === prop;
|
|
1622
|
+
})) {
|
|
1623
|
+
property = nestedRsc.properties.find(function (p) {
|
|
1624
|
+
return p.label === prop;
|
|
1625
|
+
}).name;
|
|
1626
|
+
}
|
|
1627
|
+
})();
|
|
1628
|
+
} else {
|
|
1629
|
+
property = prop && rsc && rsc.properties && rsc.properties.find(function (p) {
|
|
1630
|
+
return p.label === prop;
|
|
1631
|
+
}) && rsc.properties.find(function (p) {
|
|
1632
|
+
return p.label === prop;
|
|
1633
|
+
}).name;
|
|
1634
|
+
}
|
|
1635
|
+
return { property: property, parentsArray: parentsArray };
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
exports.default = saveData;
|
|
1639
|
+
|
|
1640
|
+
/***/ },
|
|
1641
|
+
/* 29 */
|
|
1642
|
+
/***/ function(module, exports) {
|
|
1643
|
+
|
|
1644
|
+
var toString = {}.toString;
|
|
1645
|
+
|
|
1646
|
+
module.exports = function(it){
|
|
1647
|
+
return toString.call(it).slice(8, -1);
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
/***/ },
|
|
1651
|
+
/* 30 */
|
|
1652
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1653
|
+
|
|
1654
|
+
var isObject = __webpack_require__(14)
|
|
1655
|
+
, document = __webpack_require__(6).document
|
|
1656
|
+
// in old IE typeof document.createElement is 'object'
|
|
1657
|
+
, is = isObject(document) && isObject(document.createElement);
|
|
1658
|
+
module.exports = function(it){
|
|
1659
|
+
return is ? document.createElement(it) : {};
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
/***/ },
|
|
1663
|
+
/* 31 */
|
|
1664
|
+
/***/ function(module, exports) {
|
|
1665
|
+
|
|
1666
|
+
// IE 8- don't enum bug keys
|
|
1667
|
+
module.exports = (
|
|
1668
|
+
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
|
1669
|
+
).split(',');
|
|
1670
|
+
|
|
1671
|
+
/***/ },
|
|
1672
|
+
/* 32 */
|
|
1673
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1674
|
+
|
|
1675
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1676
|
+
var cof = __webpack_require__(29);
|
|
1677
|
+
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
|
|
1678
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
/***/ },
|
|
1682
|
+
/* 33 */,
|
|
1683
|
+
/* 34 */
|
|
1684
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1685
|
+
|
|
1686
|
+
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
1687
|
+
var $keys = __webpack_require__(51)
|
|
1688
|
+
, enumBugKeys = __webpack_require__(31);
|
|
1689
|
+
|
|
1690
|
+
module.exports = Object.keys || function keys(O){
|
|
1691
|
+
return $keys(O, enumBugKeys);
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
/***/ },
|
|
1695
|
+
/* 35 */
|
|
1696
|
+
/***/ function(module, exports) {
|
|
1697
|
+
|
|
1698
|
+
module.exports = function(bitmap, value){
|
|
1699
|
+
return {
|
|
1700
|
+
enumerable : !(bitmap & 1),
|
|
1701
|
+
configurable: !(bitmap & 2),
|
|
1702
|
+
writable : !(bitmap & 4),
|
|
1703
|
+
value : value
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
/***/ },
|
|
1708
|
+
/* 36 */
|
|
1709
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1710
|
+
|
|
1711
|
+
var global = __webpack_require__(6)
|
|
1712
|
+
, SHARED = '__core-js_shared__'
|
|
1713
|
+
, store = global[SHARED] || (global[SHARED] = {});
|
|
1714
|
+
module.exports = function(key){
|
|
1715
|
+
return store[key] || (store[key] = {});
|
|
1716
|
+
};
|
|
1717
|
+
|
|
1718
|
+
/***/ },
|
|
1719
|
+
/* 37 */
|
|
1720
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1721
|
+
|
|
1722
|
+
// 7.1.13 ToObject(argument)
|
|
1723
|
+
var defined = __webpack_require__(16);
|
|
1724
|
+
module.exports = function(it){
|
|
1725
|
+
return Object(defined(it));
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
/***/ },
|
|
1729
|
+
/* 38 */
|
|
1730
|
+
/***/ function(module, exports) {
|
|
1731
|
+
|
|
1732
|
+
var id = 0
|
|
1733
|
+
, px = Math.random();
|
|
1734
|
+
module.exports = function(key){
|
|
1735
|
+
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
/***/ },
|
|
1739
|
+
/* 39 */
|
|
1740
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1741
|
+
|
|
1742
|
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
1743
|
+
Copyright (c) 2016 Jed Watson.
|
|
1744
|
+
Licensed under the MIT License (MIT), see
|
|
1745
|
+
http://jedwatson.github.io/classnames
|
|
1746
|
+
*/
|
|
1747
|
+
/* global define */
|
|
1748
|
+
|
|
1749
|
+
(function () {
|
|
1750
|
+
'use strict';
|
|
1751
|
+
|
|
1752
|
+
var hasOwn = {}.hasOwnProperty;
|
|
1753
|
+
|
|
1754
|
+
function classNames () {
|
|
1755
|
+
var classes = [];
|
|
1756
|
+
|
|
1757
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
1758
|
+
var arg = arguments[i];
|
|
1759
|
+
if (!arg) continue;
|
|
1760
|
+
|
|
1761
|
+
var argType = typeof arg;
|
|
1762
|
+
|
|
1763
|
+
if (argType === 'string' || argType === 'number') {
|
|
1764
|
+
classes.push(arg);
|
|
1765
|
+
} else if (Array.isArray(arg)) {
|
|
1766
|
+
classes.push(classNames.apply(null, arg));
|
|
1767
|
+
} else if (argType === 'object') {
|
|
1768
|
+
for (var key in arg) {
|
|
1769
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
1770
|
+
classes.push(key);
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
return classes.join(' ');
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
1741
1780
|
module.exports = classNames;
|
|
1742
1781
|
} else if (true) {
|
|
1743
1782
|
// register as 'classnames', consistent with npm package name
|
|
@@ -1751,7 +1790,7 @@ module.exports =
|
|
|
1751
1790
|
|
|
1752
1791
|
|
|
1753
1792
|
/***/ },
|
|
1754
|
-
/*
|
|
1793
|
+
/* 40 */
|
|
1755
1794
|
/***/ function(module, exports, __webpack_require__) {
|
|
1756
1795
|
|
|
1757
1796
|
/**
|
|
@@ -1787,8 +1826,8 @@ module.exports =
|
|
|
1787
1826
|
|
|
1788
1827
|
|
|
1789
1828
|
/***/ },
|
|
1790
|
-
/*
|
|
1791
|
-
/*
|
|
1829
|
+
/* 41 */,
|
|
1830
|
+
/* 42 */
|
|
1792
1831
|
/***/ function(module, exports) {
|
|
1793
1832
|
|
|
1794
1833
|
'use strict';
|
|
@@ -1814,7 +1853,7 @@ module.exports =
|
|
|
1814
1853
|
var CLEAR_WIZARD = exports.CLEAR_WIZARD = 'CLEAR_WIZARD';
|
|
1815
1854
|
|
|
1816
1855
|
/***/ },
|
|
1817
|
-
/*
|
|
1856
|
+
/* 43 */
|
|
1818
1857
|
/***/ function(module, exports, __webpack_require__) {
|
|
1819
1858
|
|
|
1820
1859
|
'use strict';
|
|
@@ -1829,17 +1868,17 @@ module.exports =
|
|
|
1829
1868
|
|
|
1830
1869
|
var _react2 = _interopRequireDefault(_react);
|
|
1831
1870
|
|
|
1832
|
-
var _reactDropzone = __webpack_require__(
|
|
1871
|
+
var _reactDropzone = __webpack_require__(60);
|
|
1833
1872
|
|
|
1834
1873
|
var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
|
|
1835
1874
|
|
|
1836
|
-
var _papaparse = __webpack_require__(
|
|
1875
|
+
var _papaparse = __webpack_require__(58);
|
|
1837
1876
|
|
|
1838
1877
|
var _papaparse2 = _interopRequireDefault(_papaparse);
|
|
1839
1878
|
|
|
1840
|
-
__webpack_require__(
|
|
1879
|
+
__webpack_require__(57);
|
|
1841
1880
|
|
|
1842
|
-
var _clipboard = __webpack_require__(
|
|
1881
|
+
var _clipboard = __webpack_require__(44);
|
|
1843
1882
|
|
|
1844
1883
|
var _clipboard2 = _interopRequireDefault(_clipboard);
|
|
1845
1884
|
|
|
@@ -1858,8 +1897,8 @@ module.exports =
|
|
|
1858
1897
|
// SKIP ON SERVER-SIDE RENDERING
|
|
1859
1898
|
var codemirror = null;
|
|
1860
1899
|
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
|
|
1861
|
-
codemirror = __webpack_require__(
|
|
1862
|
-
__webpack_require__(
|
|
1900
|
+
codemirror = __webpack_require__(59);
|
|
1901
|
+
__webpack_require__(56);
|
|
1863
1902
|
}
|
|
1864
1903
|
|
|
1865
1904
|
function unCamelize(text) {
|
|
@@ -1907,13 +1946,19 @@ module.exports =
|
|
|
1907
1946
|
rootUrl: creds.rootUrl || 'https://'
|
|
1908
1947
|
}) });
|
|
1909
1948
|
}
|
|
1949
|
+
}, {
|
|
1950
|
+
key: 'componentWillReceiveProps',
|
|
1951
|
+
value: function componentWillReceiveProps(newProps) {
|
|
1952
|
+
if (JSON.stringify(this.state.actualCreds) !== JSON.stringify(newProps.creds)) {
|
|
1953
|
+
this.setState({ actualCreds: newProps.creds });
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1910
1956
|
}, {
|
|
1911
1957
|
key: 'render',
|
|
1912
1958
|
value: function render() {
|
|
1913
1959
|
var _this2 = this;
|
|
1914
1960
|
|
|
1915
1961
|
var _props = this.props,
|
|
1916
|
-
step = _props.step,
|
|
1917
1962
|
config = _props.config,
|
|
1918
1963
|
tenantKey = _props.tenantKey,
|
|
1919
1964
|
accountKey = _props.accountKey,
|
|
@@ -1928,6 +1973,7 @@ module.exports =
|
|
|
1928
1973
|
inputs = _props.inputs,
|
|
1929
1974
|
envCheckResult = _props.envCheckResult;
|
|
1930
1975
|
|
|
1976
|
+
|
|
1931
1977
|
var Button = inputs.Button;
|
|
1932
1978
|
var Spinner = inputs.Spinner;
|
|
1933
1979
|
var Input = inputs.Input;
|
|
@@ -1959,13 +2005,13 @@ module.exports =
|
|
|
1959
2005
|
_react2.default.createElement('br', null),
|
|
1960
2006
|
_react2.default.createElement('br', null)
|
|
1961
2007
|
),
|
|
1962
|
-
isOauth ? _react2.default.createElement(Oauth, {
|
|
2008
|
+
isOauth ? _react2.default.createElement(Oauth, { wizard: wizard, onCheck: check,
|
|
1963
2009
|
creds: this.props.creds, providerType: providerType,
|
|
1964
2010
|
onGenerateUrl: function onGenerateUrl(urlType) {
|
|
1965
2011
|
return getOauthUrl(urlType, providerType);
|
|
1966
2012
|
},
|
|
1967
2013
|
checkOauthCreds: checkOauthCreds, envCheckResult: envCheckResult,
|
|
1968
|
-
checking: checking, inputs: inputs }) : isSFTP ? _react2.default.createElement(SFTP, {
|
|
2014
|
+
checking: checking, inputs: inputs }) : isSFTP ? _react2.default.createElement(SFTP, { wizard: wizard, onCheck: check,
|
|
1969
2015
|
checking: checking, setCsvFields: setCsvFields,
|
|
1970
2016
|
providerType: providerType }) : isGoogle ? _react2.default.createElement(Google, { config: config, creds: creds, onChange: this.onChange,
|
|
1971
2017
|
credsDisabledCheck: credsDisabledCheck, inputs: inputs }) : _react2.default.createElement(
|
|
@@ -2043,11 +2089,16 @@ module.exports =
|
|
|
2043
2089
|
})
|
|
2044
2090
|
)
|
|
2045
2091
|
),
|
|
2046
|
-
isAdapter && _react2.default.createElement(AdapterSecret, {
|
|
2092
|
+
isAdapter && _react2.default.createElement(AdapterSecret, { inputs: inputs,
|
|
2047
2093
|
providerType: providerType, secret: adapterSecret,
|
|
2048
2094
|
generateNewAdapterSecret: generateNewAdapterSecret,
|
|
2049
2095
|
tenantKey: tenantKey, accountKey: accountKey })
|
|
2050
2096
|
),
|
|
2097
|
+
_react2.default.createElement(
|
|
2098
|
+
'span',
|
|
2099
|
+
null,
|
|
2100
|
+
this.props.children
|
|
2101
|
+
),
|
|
2051
2102
|
_react2.default.createElement('br', null)
|
|
2052
2103
|
);
|
|
2053
2104
|
}
|
|
@@ -2566,7 +2617,7 @@ module.exports =
|
|
|
2566
2617
|
exports.default = EnvSection;
|
|
2567
2618
|
|
|
2568
2619
|
/***/ },
|
|
2569
|
-
/*
|
|
2620
|
+
/* 44 */
|
|
2570
2621
|
/***/ function(module, exports, __webpack_require__) {
|
|
2571
2622
|
|
|
2572
2623
|
"use strict";
|
|
@@ -2747,7 +2798,274 @@ module.exports =
|
|
|
2747
2798
|
});
|
|
2748
2799
|
|
|
2749
2800
|
/***/ },
|
|
2750
|
-
/*
|
|
2801
|
+
/* 45 */
|
|
2802
|
+
/***/ function(module, exports) {
|
|
2803
|
+
|
|
2804
|
+
'use strict';
|
|
2805
|
+
|
|
2806
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2807
|
+
value: true
|
|
2808
|
+
});
|
|
2809
|
+
function loadData(savedBundles, savedMapping, sourceProvider, destinationProvider, sourceMetadata, destinationMetadata, isReverse) {
|
|
2810
|
+
|
|
2811
|
+
var SM = sourceMetadata;
|
|
2812
|
+
var DM = destinationMetadata;
|
|
2813
|
+
var SP = sourceProvider;
|
|
2814
|
+
var DP = destinationProvider;
|
|
2815
|
+
if (isReverse) {
|
|
2816
|
+
SM = destinationMetadata;
|
|
2817
|
+
DM = sourceMetadata;
|
|
2818
|
+
SP = destinationProvider;
|
|
2819
|
+
DP = sourceProvider;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
var resourceGroups = [];
|
|
2823
|
+
savedBundles.bundles.forEach(function (bundle, index) {
|
|
2824
|
+
// get bundle resource
|
|
2825
|
+
var bundleResource = DM.find(function (rsc) {
|
|
2826
|
+
return rsc.name === bundle.resourceLabel;
|
|
2827
|
+
});
|
|
2828
|
+
if (bundleResource) {
|
|
2829
|
+
(function () {
|
|
2830
|
+
|
|
2831
|
+
//get bundle destinationKeys
|
|
2832
|
+
var destinationKeys = [];
|
|
2833
|
+
bundle.destinationKeys.forEach(function (dk) {
|
|
2834
|
+
var bundleDestinationProperty = bundleResource.properties.find(function (prop) {
|
|
2835
|
+
return prop.name === dk;
|
|
2836
|
+
});
|
|
2837
|
+
if (bundleDestinationProperty) {
|
|
2838
|
+
destinationKeys.push(bundleDestinationProperty.label);
|
|
2839
|
+
} else {
|
|
2840
|
+
destinationKeys.push('Lingk External Id');
|
|
2841
|
+
}
|
|
2842
|
+
});
|
|
2843
|
+
|
|
2844
|
+
var sourceKeys = [];
|
|
2845
|
+
var sourceKeysObjects = [];
|
|
2846
|
+
var sourceKeysParents = [];
|
|
2847
|
+
bundle.sourceKeys.forEach(function (sk, i) {
|
|
2848
|
+
var sourceKeyResourceObj = bundle.resources.find(function (r) {
|
|
2849
|
+
return r.resourceName === bundle.sourceKeysObjects[i];
|
|
2850
|
+
});
|
|
2851
|
+
if (sourceKeyResourceObj) {
|
|
2852
|
+
var sourceKeyResourceProvider = sourceKeyResourceObj.provider.replace('Reader', '').toLowerCase();
|
|
2853
|
+
var primaryDataSourceMetadata = sourceKeyResourceProvider === DP.toLowerCase() ? DM : sourceKeyResourceProvider === SP.toLowerCase() ? SM : null;
|
|
2854
|
+
|
|
2855
|
+
if (primaryDataSourceMetadata) {
|
|
2856
|
+
var sourceKeyResource = primaryDataSourceMetadata.find(function (r) {
|
|
2857
|
+
return r.type === bundle.sourceKeysObjects[i];
|
|
2858
|
+
});
|
|
2859
|
+
if (sourceKeyResource) {
|
|
2860
|
+
sourceKeysObjects.push(sourceKeyResource.name);
|
|
2861
|
+
var deNestedProp = deNest(sk, bundle.sourceKeysParents && JSON.parse(bundle.sourceKeysParents[i]), sourceKeyResource);
|
|
2862
|
+
sourceKeys.push(deNestedProp.property);
|
|
2863
|
+
sourceKeysParents.push(deNestedProp.parentsArray);
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
});
|
|
2868
|
+
|
|
2869
|
+
var resources = [];
|
|
2870
|
+
bundle.resources && bundle.resources.forEach(function (rsc, rscIndex) {
|
|
2871
|
+
|
|
2872
|
+
//get resource and joinKey for bundleResource (check both metadatas)
|
|
2873
|
+
var resourceProvider = rsc.provider.replace('Reader', '').toLowerCase();
|
|
2874
|
+
var dataSourceMetadata = resourceProvider === DP.toLowerCase() ? DM : resourceProvider === SP.toLowerCase() ? SM : null;
|
|
2875
|
+
|
|
2876
|
+
var rscResource = null;
|
|
2877
|
+
var deNestedJoinKey = {};
|
|
2878
|
+
var joinKeyResourceName = null;
|
|
2879
|
+
if (dataSourceMetadata) {
|
|
2880
|
+
rscResource = dataSourceMetadata.find(function (r) {
|
|
2881
|
+
return r.name === rsc.resourceLabel;
|
|
2882
|
+
});
|
|
2883
|
+
|
|
2884
|
+
if (rsc.joinKeyName) {
|
|
2885
|
+
// joinKeyName coming from parameter from another resource
|
|
2886
|
+
deNestedJoinKey = { property: rsc.joinKeyName };
|
|
2887
|
+
joinKeyResourceName = rsc.joinKeyResource;
|
|
2888
|
+
|
|
2889
|
+
// joinKeyName coming from field on this resource
|
|
2890
|
+
if (rsc.resourceName === rsc.joinKeyResource) {
|
|
2891
|
+
var joinKeyResource = dataSourceMetadata.find(function (r) {
|
|
2892
|
+
return r.type === rsc.joinKeyResource;
|
|
2893
|
+
});
|
|
2894
|
+
if (joinKeyResource) {
|
|
2895
|
+
deNestedJoinKey = deNest(rsc.joinKeyName, rsc.joinKeyParents, joinKeyResource);
|
|
2896
|
+
joinKeyResourceName = joinKeyResource.name;
|
|
2897
|
+
}
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
} // end if dataSourceMetadata
|
|
2901
|
+
|
|
2902
|
+
//get resource and primaryKey for first resource in bundle (check both metadatas)
|
|
2903
|
+
var primaryResourceProvider = bundle.resources[0].provider.replace('Reader', '').toLowerCase();
|
|
2904
|
+
var primaryDataSourceMetadata = primaryResourceProvider === DP.toLowerCase() ? DM : primaryResourceProvider === SP.toLowerCase() ? SM : null;
|
|
2905
|
+
|
|
2906
|
+
var deNestedPrimaryKey = {};
|
|
2907
|
+
var primaryKeyResourceName = null;
|
|
2908
|
+
if (primaryDataSourceMetadata) {
|
|
2909
|
+
if (rsc.primaryKeyName) {
|
|
2910
|
+
//primaryKeyName coming from parameter (another resource)
|
|
2911
|
+
deNestedPrimaryKey = { property: rsc.primaryKeyName };
|
|
2912
|
+
primaryKeyResourceName = rsc.primaryKeyResource;
|
|
2913
|
+
|
|
2914
|
+
// primaryKeyName coming from field on this resource
|
|
2915
|
+
if (bundle.resources[0].resourceLabel === rsc.primaryKeyResource) {
|
|
2916
|
+
var rscPrimaryResource = primaryDataSourceMetadata.find(function (r) {
|
|
2917
|
+
return r.type === rsc.primaryKeyResource;
|
|
2918
|
+
});
|
|
2919
|
+
if (rscPrimaryResource) {
|
|
2920
|
+
deNestedPrimaryKey = deNest(rsc.primaryKeyName, rsc.primaryKeyParents, rscPrimaryResource);
|
|
2921
|
+
primaryKeyResourceName = rscPrimaryResource.name;
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
if (rscResource) {
|
|
2928
|
+
resources.push(Object.assign({
|
|
2929
|
+
name: rscResource.name,
|
|
2930
|
+
provider: resourceProvider
|
|
2931
|
+
}, deNestedJoinKey.property && { joinKeyName: deNestedJoinKey.property }, joinKeyResourceName && { joinKeyResource: joinKeyResourceName }, deNestedJoinKey.parentsArray && deNestedJoinKey.parentsArray.length > 0 && { joinKeyParents: deNestedJoinKey.parentsArray }, deNestedPrimaryKey.property && { primaryKeyName: deNestedPrimaryKey.property }, primaryKeyResourceName && { primaryKeyResource: primaryKeyResourceName }, deNestedPrimaryKey.parentsArray && deNestedPrimaryKey.parentsArray.length > 0 && { primaryKeyParents: deNestedPrimaryKey.parentsArray }, {
|
|
2932
|
+
joinType: rsc.joinType || 'LEFT JOIN'
|
|
2933
|
+
}, rscResource.parentRef && { parentRef: rscResource.parentRef }, rsc.parameterFilters && { parameterFilters: rsc.parameterFilters }, {
|
|
2934
|
+
level: rsc.level || (rscIndex === 0 ? 0 : 1)
|
|
2935
|
+
}, rsc.parentNameAndProvider && { parentNameAndProvider: rsc.parentNameAndProvider }));
|
|
2936
|
+
}
|
|
2937
|
+
}); // end bundle.resource.forEach
|
|
2938
|
+
|
|
2939
|
+
var mappings = [];
|
|
2940
|
+
savedMapping.mappings && savedMapping.mappings.filter(function (map) {
|
|
2941
|
+
return map.bundleIndex === index;
|
|
2942
|
+
}).forEach(function (m) {
|
|
2943
|
+
var dataSourceMetadata = m.isDestinationResource ? DM : SM;
|
|
2944
|
+
if (isReverse) {
|
|
2945
|
+
dataSourceMetadata = m.isDestinationResource ? SM : DM;
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
var resourceFromBundle = bundle.resources.find(function (br) {
|
|
2949
|
+
return br.resourceName === m.resourceFromName;
|
|
2950
|
+
});
|
|
2951
|
+
var sourceResource = resourceFromBundle && dataSourceMetadata.find(function (rsc) {
|
|
2952
|
+
return rsc.name === resourceFromBundle.resourceLabel;
|
|
2953
|
+
});
|
|
2954
|
+
var deNestedProp = deNest(m.propertyFromName, m.propertyFromParents, sourceResource);
|
|
2955
|
+
|
|
2956
|
+
var sourceProperty = null;
|
|
2957
|
+
if (sourceResource) {
|
|
2958
|
+
sourceProperty = sourceResource.properties.find(function (prop) {
|
|
2959
|
+
return prop.name === m.propertyFromName;
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
var destinationProperty = bundleResource.properties.find(function (prop) {
|
|
2964
|
+
return prop.name === m.propertyToName;
|
|
2965
|
+
});
|
|
2966
|
+
|
|
2967
|
+
var transformations = [{ type: 'none' }];
|
|
2968
|
+
if (m.transformations && m.transformations.length > 0) {
|
|
2969
|
+
var trans = m.transformations[0];
|
|
2970
|
+
if (trans.type === 'concat') {
|
|
2971
|
+
(function () {
|
|
2972
|
+
var s = trans.args[1].split('->');
|
|
2973
|
+
var transConcatResourceName = s[s.length - 2];
|
|
2974
|
+
var nestedFields = s[s.length - 1].split('.');
|
|
2975
|
+
var field = nestedFields[nestedFields.length - 1];
|
|
2976
|
+
nestedFields.pop();
|
|
2977
|
+
var concatRsc = savedBundles.bundles[m.bundleIndex].resources.find(function (r) {
|
|
2978
|
+
return r.resourceLabel === transConcatResourceName;
|
|
2979
|
+
});
|
|
2980
|
+
var concatRscProvider = concatRsc.provider.replace('Reader', '').toLowerCase();
|
|
2981
|
+
var concatRscMetadata = concatRscProvider === DP.toLowerCase() ? DM : concatRscProvider === SP.toLowerCase() ? SM : null;
|
|
2982
|
+
if (concatRscMetadata) {
|
|
2983
|
+
var transConcatResource = concatRscMetadata.find(function (r) {
|
|
2984
|
+
return r.type === concatRsc.resourceName;
|
|
2985
|
+
});
|
|
2986
|
+
var concatLabels = deNest(field, nestedFields, transConcatResource);
|
|
2987
|
+
var result = transConcatResource.name + '->';
|
|
2988
|
+
concatLabels.parentsArray.forEach(function (p) {
|
|
2989
|
+
return result += p + '.';
|
|
2990
|
+
});
|
|
2991
|
+
result += concatLabels.property;
|
|
2992
|
+
transformations = [{ type: 'concat', args: [trans.args[0], result] }];
|
|
2993
|
+
}
|
|
2994
|
+
})();
|
|
2995
|
+
} else {
|
|
2996
|
+
transformations = m.transformations;
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
if (sourceResource && sourceProperty && destinationProperty) {
|
|
3001
|
+
mappings.push(Object.assign({
|
|
3002
|
+
resourceFromName: sourceResource.name,
|
|
3003
|
+
propertyFromName: deNestedProp.property
|
|
3004
|
+
}, deNestedProp.parentsArray && deNestedProp.parentsArray.length > 0 && { propertyFromParents: deNestedProp.parentsArray }, {
|
|
3005
|
+
resourceToName: bundleResource.name,
|
|
3006
|
+
propertyToName: destinationProperty.label
|
|
3007
|
+
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }, {
|
|
3008
|
+
transformations: transformations
|
|
3009
|
+
}));
|
|
3010
|
+
}
|
|
3011
|
+
}); // end wizard.savedMappings.forEach
|
|
3012
|
+
resourceGroups.push(Object.assign({
|
|
3013
|
+
name: bundleResource.name,
|
|
3014
|
+
resources: resources, mappings: mappings,
|
|
3015
|
+
customExternalKeys: bundle.customExternalKeys || false
|
|
3016
|
+
}, bundle.customExternalKeys === true && { sourceKeys: sourceKeys, sourceKeysObjects: sourceKeysObjects, sourceKeysParents: sourceKeysParents, destinationKeys: destinationKeys }, bundle.customExternalKeys === false && { lingkSourceKey: sourceKeys[0], lingkSourceKeyObject: sourceKeysObjects[0],
|
|
3017
|
+
lingkSourceKeyParents: sourceKeysParents[0] }, {
|
|
3018
|
+
provider: bundle.provider
|
|
3019
|
+
}, bundle.recordTypeId && { recordTypeId: bundle.recordTypeId }, {
|
|
3020
|
+
deleteEnabled: bundle.deleteEnabled || false
|
|
3021
|
+
})); // end push each bundle (contains resources AND mappings)
|
|
3022
|
+
})();
|
|
3023
|
+
} // end if bundleResource
|
|
3024
|
+
}); // end forEach over bundles
|
|
3025
|
+
|
|
3026
|
+
return resourceGroups;
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
function deNest(prop, parents, rsc) {
|
|
3030
|
+
var property = '';
|
|
3031
|
+
var parentsArray = [];
|
|
3032
|
+
if (rsc) {
|
|
3033
|
+
if (parents && parents.length > 0) {
|
|
3034
|
+
(function () {
|
|
3035
|
+
var nestedRsc = rsc;
|
|
3036
|
+
var tempParentsArray = [];
|
|
3037
|
+
parents.forEach(function (ps) {
|
|
3038
|
+
var pProp = nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
3039
|
+
return p.name === ps;
|
|
3040
|
+
});
|
|
3041
|
+
tempParentsArray.push(pProp.label);
|
|
3042
|
+
nestedRsc = pProp.object;
|
|
3043
|
+
});
|
|
3044
|
+
parentsArray = tempParentsArray;
|
|
3045
|
+
var sourceKeyProperty = nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
3046
|
+
return p.name === prop;
|
|
3047
|
+
});
|
|
3048
|
+
if (sourceKeyProperty) {
|
|
3049
|
+
property = sourceKeyProperty.label;
|
|
3050
|
+
}
|
|
3051
|
+
})();
|
|
3052
|
+
} else {
|
|
3053
|
+
var sourceKeyProperty = rsc.properties && rsc.properties.find(function (p) {
|
|
3054
|
+
return p.name === prop;
|
|
3055
|
+
});
|
|
3056
|
+
if (sourceKeyProperty) {
|
|
3057
|
+
property = sourceKeyProperty.label;
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
if (prop === 'Lingk_External_Id__c') property = 'Lingk External Id';
|
|
3062
|
+
return { property: property, parentsArray: parentsArray };
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
exports.default = loadData;
|
|
3066
|
+
|
|
3067
|
+
/***/ },
|
|
3068
|
+
/* 46 */
|
|
2751
3069
|
/***/ function(module, exports, __webpack_require__) {
|
|
2752
3070
|
|
|
2753
3071
|
"use strict";
|
|
@@ -2775,7 +3093,7 @@ module.exports =
|
|
|
2775
3093
|
};
|
|
2776
3094
|
|
|
2777
3095
|
/***/ },
|
|
2778
|
-
/*
|
|
3096
|
+
/* 47 */
|
|
2779
3097
|
/***/ function(module, exports) {
|
|
2780
3098
|
|
|
2781
3099
|
module.exports = function(it){
|
|
@@ -2784,14 +3102,14 @@ module.exports =
|
|
|
2784
3102
|
};
|
|
2785
3103
|
|
|
2786
3104
|
/***/ },
|
|
2787
|
-
/*
|
|
3105
|
+
/* 48 */
|
|
2788
3106
|
/***/ function(module, exports, __webpack_require__) {
|
|
2789
3107
|
|
|
2790
3108
|
// false -> Array#indexOf
|
|
2791
3109
|
// true -> Array#includes
|
|
2792
3110
|
var toIObject = __webpack_require__(20)
|
|
2793
|
-
, toLength = __webpack_require__(
|
|
2794
|
-
, toIndex = __webpack_require__(
|
|
3111
|
+
, toLength = __webpack_require__(53)
|
|
3112
|
+
, toIndex = __webpack_require__(52);
|
|
2795
3113
|
module.exports = function(IS_INCLUDES){
|
|
2796
3114
|
return function($this, el, fromIndex){
|
|
2797
3115
|
var O = toIObject($this)
|
|
@@ -2810,11 +3128,11 @@ module.exports =
|
|
|
2810
3128
|
};
|
|
2811
3129
|
|
|
2812
3130
|
/***/ },
|
|
2813
|
-
/*
|
|
3131
|
+
/* 49 */
|
|
2814
3132
|
/***/ function(module, exports, __webpack_require__) {
|
|
2815
3133
|
|
|
2816
3134
|
// optional / simple context binding
|
|
2817
|
-
var aFunction = __webpack_require__(
|
|
3135
|
+
var aFunction = __webpack_require__(47);
|
|
2818
3136
|
module.exports = function(fn, that, length){
|
|
2819
3137
|
aFunction(fn);
|
|
2820
3138
|
if(that === undefined)return fn;
|
|
@@ -2835,20 +3153,20 @@ module.exports =
|
|
|
2835
3153
|
};
|
|
2836
3154
|
|
|
2837
3155
|
/***/ },
|
|
2838
|
-
/*
|
|
3156
|
+
/* 50 */
|
|
2839
3157
|
/***/ function(module, exports, __webpack_require__) {
|
|
2840
3158
|
|
|
2841
3159
|
module.exports = !__webpack_require__(9) && !__webpack_require__(12)(function(){
|
|
2842
|
-
return Object.defineProperty(__webpack_require__(
|
|
3160
|
+
return Object.defineProperty(__webpack_require__(30)('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
|
2843
3161
|
});
|
|
2844
3162
|
|
|
2845
3163
|
/***/ },
|
|
2846
|
-
/*
|
|
3164
|
+
/* 51 */
|
|
2847
3165
|
/***/ function(module, exports, __webpack_require__) {
|
|
2848
3166
|
|
|
2849
3167
|
var has = __webpack_require__(17)
|
|
2850
3168
|
, toIObject = __webpack_require__(20)
|
|
2851
|
-
, arrayIndexOf = __webpack_require__(
|
|
3169
|
+
, arrayIndexOf = __webpack_require__(48)(false)
|
|
2852
3170
|
, IE_PROTO = __webpack_require__(25)('IE_PROTO');
|
|
2853
3171
|
|
|
2854
3172
|
module.exports = function(object, names){
|
|
@@ -2865,7 +3183,7 @@ module.exports =
|
|
|
2865
3183
|
};
|
|
2866
3184
|
|
|
2867
3185
|
/***/ },
|
|
2868
|
-
/*
|
|
3186
|
+
/* 52 */
|
|
2869
3187
|
/***/ function(module, exports, __webpack_require__) {
|
|
2870
3188
|
|
|
2871
3189
|
var toInteger = __webpack_require__(19)
|
|
@@ -2877,7 +3195,7 @@ module.exports =
|
|
|
2877
3195
|
};
|
|
2878
3196
|
|
|
2879
3197
|
/***/ },
|
|
2880
|
-
/*
|
|
3198
|
+
/* 53 */
|
|
2881
3199
|
/***/ function(module, exports, __webpack_require__) {
|
|
2882
3200
|
|
|
2883
3201
|
// 7.1.15 ToLength
|
|
@@ -2888,7 +3206,7 @@ module.exports =
|
|
|
2888
3206
|
};
|
|
2889
3207
|
|
|
2890
3208
|
/***/ },
|
|
2891
|
-
/*
|
|
3209
|
+
/* 54 */
|
|
2892
3210
|
/***/ function(module, exports, __webpack_require__) {
|
|
2893
3211
|
|
|
2894
3212
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
@@ -2905,7 +3223,7 @@ module.exports =
|
|
|
2905
3223
|
};
|
|
2906
3224
|
|
|
2907
3225
|
/***/ },
|
|
2908
|
-
/*
|
|
3226
|
+
/* 55 */
|
|
2909
3227
|
/***/ function(module, exports, __webpack_require__) {
|
|
2910
3228
|
|
|
2911
3229
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -12570,7 +12888,7 @@ module.exports =
|
|
|
12570
12888
|
|
|
12571
12889
|
|
|
12572
12890
|
/***/ },
|
|
12573
|
-
/*
|
|
12891
|
+
/* 56 */
|
|
12574
12892
|
/***/ function(module, exports, __webpack_require__) {
|
|
12575
12893
|
|
|
12576
12894
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -12578,7 +12896,7 @@ module.exports =
|
|
|
12578
12896
|
|
|
12579
12897
|
(function(mod) {
|
|
12580
12898
|
if (true) // CommonJS
|
|
12581
|
-
mod(__webpack_require__(
|
|
12899
|
+
mod(__webpack_require__(55));
|
|
12582
12900
|
else if (typeof define == "function" && define.amd) // AMD
|
|
12583
12901
|
define(["../../lib/codemirror"], mod);
|
|
12584
12902
|
else // Plain browser env
|
|
@@ -13431,31 +13749,31 @@ module.exports =
|
|
|
13431
13749
|
|
|
13432
13750
|
|
|
13433
13751
|
/***/ },
|
|
13434
|
-
/*
|
|
13752
|
+
/* 57 */
|
|
13435
13753
|
/***/ function(module, exports) {
|
|
13436
13754
|
|
|
13437
13755
|
// removed by extract-text-webpack-plugin
|
|
13438
13756
|
|
|
13439
13757
|
/***/ },
|
|
13440
|
-
/*
|
|
13758
|
+
/* 58 */
|
|
13441
13759
|
/***/ function(module, exports) {
|
|
13442
13760
|
|
|
13443
13761
|
module.exports = require("papaparse");
|
|
13444
13762
|
|
|
13445
13763
|
/***/ },
|
|
13446
|
-
/*
|
|
13764
|
+
/* 59 */
|
|
13447
13765
|
/***/ function(module, exports) {
|
|
13448
13766
|
|
|
13449
13767
|
module.exports = require("react-codemirror2");
|
|
13450
13768
|
|
|
13451
13769
|
/***/ },
|
|
13452
|
-
/*
|
|
13770
|
+
/* 60 */
|
|
13453
13771
|
/***/ function(module, exports) {
|
|
13454
13772
|
|
|
13455
13773
|
module.exports = require("react-dropzone");
|
|
13456
13774
|
|
|
13457
13775
|
/***/ },
|
|
13458
|
-
/*
|
|
13776
|
+
/* 61 */
|
|
13459
13777
|
/***/ function(module, exports, __webpack_require__) {
|
|
13460
13778
|
|
|
13461
13779
|
'use strict';
|
|
@@ -13860,408 +14178,125 @@ module.exports =
|
|
|
13860
14178
|
'svg',
|
|
13861
14179
|
{ className: 'schema-group-arrow schema-group-arrow-back', viewBox: '0 0 24 24',
|
|
13862
14180
|
onClick: this.decrement, style: resourceGroupIndex < 1 ? { fill: '#CCCCCC', cursor: 'default' } : {} },
|
|
13863
|
-
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
13864
|
-
),
|
|
13865
|
-
_react2.default.createElement(
|
|
13866
|
-
'div',
|
|
13867
|
-
{ className: 'schema-groups' },
|
|
13868
|
-
_react2.default.createElement(
|
|
13869
|
-
'div',
|
|
13870
|
-
{ className: 'schema-groups-slider', style: {
|
|
13871
|
-
width: 600 * resourceGroups.length,
|
|
13872
|
-
transform: 'translate(-' + 600 * resourceGroupIndex + 'px)',
|
|
13873
|
-
WebkitTransform: 'translate(-' + 600 * resourceGroupIndex + 'px)'
|
|
13874
|
-
} },
|
|
13875
|
-
resourceGroups.map(function (g, i) {
|
|
13876
|
-
return _react2.default.createElement(
|
|
13877
|
-
'div',
|
|
13878
|
-
{ className: 'schema-group-name', key: i },
|
|
13879
|
-
g.name
|
|
13880
|
-
);
|
|
13881
|
-
})
|
|
13882
|
-
)
|
|
13883
|
-
),
|
|
13884
|
-
_react2.default.createElement(
|
|
13885
|
-
'svg',
|
|
13886
|
-
{ className: 'schema-group-arrow schema-group-arrow-forward', viewBox: '0 0 24 24', onClick: this.increment,
|
|
13887
|
-
style: resourceGroupIndex === resourceGroups.length - 1 ? { fill: '#CCCCCC', cursor: 'default' } : {} },
|
|
13888
|
-
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
13889
|
-
),
|
|
13890
|
-
_react2.default.createElement(
|
|
13891
|
-
'div',
|
|
13892
|
-
{ className: 'schema-group-dots' },
|
|
13893
|
-
resourceGroups.map(function (g, i) {
|
|
13894
|
-
return _react2.default.createElement('div', { className: 'schema-group-dot', key: i, style: {
|
|
13895
|
-
background: resourceGroupIndex !== i ? '#CFCFCF' : '#0070d2',
|
|
13896
|
-
marginLeft: i === firstReverseIndex ? 12 : 2
|
|
13897
|
-
}, onClick: function onClick() {
|
|
13898
|
-
return _this4.clickDot(i);
|
|
13899
|
-
} });
|
|
13900
|
-
})
|
|
13901
|
-
)
|
|
13902
|
-
)
|
|
13903
|
-
),
|
|
13904
|
-
_react2.default.Children.count(this.props.children) > 0 ? _react2.default.Children.map(this.props.children, function (child) {
|
|
13905
|
-
return _react2.default.cloneElement(child, Object.assign({}, propsForChild));
|
|
13906
|
-
}) : null
|
|
13907
|
-
);
|
|
13908
|
-
}
|
|
13909
|
-
}]);
|
|
13910
|
-
|
|
13911
|
-
return GroupNav;
|
|
13912
|
-
}(_react.Component);
|
|
13913
|
-
|
|
13914
|
-
exports.default = GroupNav;
|
|
13915
|
-
|
|
13916
|
-
/***/ },
|
|
13917
|
-
/* 60 */
|
|
13918
|
-
/***/ function(module, exports) {
|
|
13919
|
-
|
|
13920
|
-
"use strict";
|
|
13921
|
-
|
|
13922
|
-
Object.defineProperty(exports, "__esModule", {
|
|
13923
|
-
value: true
|
|
13924
|
-
});
|
|
13925
|
-
|
|
13926
|
-
var nest = {
|
|
13927
|
-
|
|
13928
|
-
expand: function expand(v, parents, expandedProp) {
|
|
13929
|
-
var expanded = Object.assign({}, expandedProp);
|
|
13930
|
-
if (parents.length === 0) {
|
|
13931
|
-
if (expanded[v]) delete expanded[v];else expanded[v] = {};
|
|
13932
|
-
} else if (parents.length === 1) {
|
|
13933
|
-
if (expanded[parents[0]][v]) delete expanded[parents[0]][v];else expanded[parents[0]][v] = {};
|
|
13934
|
-
} else if (parents.length === 2) {
|
|
13935
|
-
if (expanded[parents[0]][parents[1]][v]) delete expanded[parents[0]][parents[1]][v];else expanded[parents[0]][parents[1]][v] = {};
|
|
13936
|
-
} else if (parents.length === 3) {
|
|
13937
|
-
if (expanded[parents[0]][parents[1]][parents[2]][v]) delete expanded[parents[0]][parents[1]][parents[2]][v];else expanded[parents[0]][parents[1]][parents[2]][v] = {};
|
|
13938
|
-
} else if (parents.length === 4) {
|
|
13939
|
-
if (expanded[parents[0]][parents[1]][parents[2]][parents[3]][v]) delete expanded[parents[0]][parents[1]][parents[2]][parents[3]][v];else expanded[parents[0]][parents[1]][parents[2]][parents[3]][v] = {};
|
|
13940
|
-
}
|
|
13941
|
-
return expanded;
|
|
13942
|
-
},
|
|
13943
|
-
|
|
13944
|
-
checkIfExpanded: function checkIfExpanded(v, parents, expandedProp) {
|
|
13945
|
-
var expanded = Object.assign({}, expandedProp);
|
|
13946
|
-
if (parents.length === 0) {
|
|
13947
|
-
if (expanded[v]) return true;
|
|
13948
|
-
} else if (parents.length === 1) {
|
|
13949
|
-
if (expanded[parents[0]][v]) return true;
|
|
13950
|
-
} else if (parents.length === 2) {
|
|
13951
|
-
if (expanded[parents[0]][parents[1]][v]) return true;
|
|
13952
|
-
} else if (parents.length === 3) {
|
|
13953
|
-
if (expanded[parents[0]][parents[1]][parents[2]][v]) return true;
|
|
13954
|
-
} else if (parents.length === 4) {
|
|
13955
|
-
if (expanded[parents[0]][parents[1]][parents[2]][parents[3]][v]) return true;
|
|
13956
|
-
}
|
|
13957
|
-
return false;
|
|
13958
|
-
}
|
|
13959
|
-
|
|
13960
|
-
};
|
|
13961
|
-
|
|
13962
|
-
exports.default = nest;
|
|
13963
|
-
|
|
13964
|
-
/***/ },
|
|
13965
|
-
/* 61 */
|
|
13966
|
-
/***/ function(module, exports) {
|
|
13967
|
-
|
|
13968
|
-
'use strict';
|
|
13969
|
-
|
|
13970
|
-
Object.defineProperty(exports, "__esModule", {
|
|
13971
|
-
value: true
|
|
13972
|
-
});
|
|
13973
|
-
exports.makeContent = makeContent;
|
|
13974
|
-
var css = 'table { font-size: 12px !important; } ' + 'body { margin: 0; padding: 0; color: #16325c; font-family: Arial, sans-serif; font-size: 14px; } ' + 'tr { background: rgb(244, 246, 249); } ' + 'th { border-top: 1px solid #d8dde6; border-bottom: 1px solid #d8dde6; color: #54698d; text-transform: uppercase; letter-spacing: 0.0625rem; font-weight: bold; padding: 6px 10px; text-align: left; } ' + 'td { border-bottom: 1px solid #d8dde6; padding: 6px 10px; } ';
|
|
13975
|
-
|
|
13976
|
-
function makeContent(url, tenantId, accountId, endpoint, target, targetName, token, envName) {
|
|
13977
|
-
return '\n<div id="content" style="padding: 10px 14px;">\n <span id="loading">Loading Data</span><span id="dots">...</span>\n</div>\n<script>\n\n var _table_ = document.createElement(\'table\'),\n _tr_ = document.createElement(\'tr\'),\n _th_ = document.createElement(\'th\'),\n _td_ = document.createElement(\'td\');\n\n function buildHtmlTable(arr) {\n var table = _table_.cloneNode(false),\n columns = addAllColumnHeaders(arr, table);\n for (var i=0, maxi=arr.length; i < maxi; ++i) {\n var tr = _tr_.cloneNode(false);\n for (var j=0, maxj=columns.length; j < maxj ; ++j) {\n var td = _td_.cloneNode(false);\n cellValue = arr[i][columns[j]];\n td.appendChild(document.createTextNode(arr[i][columns[j]] || \'\'));\n tr.appendChild(td);\n }\n table.appendChild(tr);\n }\n return table;\n }\n\n function addAllColumnHeaders(arr, table){\n var columnSet = [],\n tr = _tr_.cloneNode(false);\n for (var i=0, l=arr.length; i < l; i++) {\n for (var key in arr[i]) {\n if (arr[i].hasOwnProperty(key) && columnSet.indexOf(key)===-1) {\n columnSet.push(key);\n var th = _th_.cloneNode(false);\n th.appendChild(document.createTextNode(key));\n tr.appendChild(th);\n }\n }\n }\n table.appendChild(tr);\n return columnSet;\n }\n\n fetch(\'' + url + tenantId + '/' + accountId + '/environments/' + envName + '/previewintegration?url=' + endpoint + '&target=' + target + '\', {\n headers: new Headers({\n \'Authorization\': \'Bearer \' + \'' + token + '\'\n })\n })\n .then((r) => r.json())\n .then(res=>{\n document.body.appendChild(buildHtmlTable(res.data.slice(0,99)))\n window.clearInterval(loadInterval)\n document.body.removeChild(document.getElementById(\'content\'))\n })\n\n document.getElementById(\'loading\').innerHTML = \'Loading ' + targetName + ' Data\'\n var dots = \'...\'\n var element = document.getElementById(\'dots\')\n var loadInterval = window.setInterval(function(){\n if(dots.length<12){\n dots = dots + \'.\'\n } else {\n dots = \'.\'\n }\n element.innerHTML = dots\n }, 150)\n \n\n var head = document.head || document.getElementsByTagName(\'head\')[0];\n var style = document.createElement(\'style\');\n\n style.type = \'text/css\';\n if (style.styleSheet){\n style.styleSheet.cssText = \'' + css + '\';\n } else {\n style.appendChild(document.createTextNode(\'' + css + '\'));\n }\n\n head.appendChild(style);\n\n</script>\n';
|
|
13978
|
-
}
|
|
13979
|
-
|
|
13980
|
-
/***/ },
|
|
13981
|
-
/* 62 */
|
|
13982
|
-
/***/ function(module, exports) {
|
|
13983
|
-
|
|
13984
|
-
'use strict';
|
|
13985
|
-
|
|
13986
|
-
Object.defineProperty(exports, "__esModule", {
|
|
13987
|
-
value: true
|
|
13988
|
-
});
|
|
13989
|
-
/**************************
|
|
13990
|
-
|
|
13991
|
-
Saves data from the Redux-Form and converts it to apiNames, which are used
|
|
13992
|
-
to generate the recipe and are stored in our DB.
|
|
13993
|
-
|
|
13994
|
-
Runs when user click "submit"
|
|
13995
|
-
|
|
13996
|
-
If a new dropdown with fields is added to the UI, it must be added to this function as well
|
|
13997
|
-
|
|
13998
|
-
sP = sourceProvider
|
|
13999
|
-
tM = targetMetadata
|
|
14000
|
-
**************************/
|
|
14001
|
-
|
|
14002
|
-
function saveData(resourceGroups, sP, tP, sM, tM, sourceEndpoint, isReverse) {
|
|
14003
|
-
|
|
14004
|
-
// switch providers and metadatas if the wizard is reverse
|
|
14005
|
-
var sourceProvider = sP;
|
|
14006
|
-
var targetProvider = tP;
|
|
14007
|
-
var sourceMetadata = sM;
|
|
14008
|
-
var targetMetadata = tM;
|
|
14009
|
-
if (isReverse) {
|
|
14010
|
-
sourceProvider = tP;
|
|
14011
|
-
targetProvider = sP;
|
|
14012
|
-
sourceMetadata = tM;
|
|
14013
|
-
targetMetadata = sM;
|
|
14014
|
-
}
|
|
14015
|
-
|
|
14016
|
-
var bundles = resourceGroups || [];
|
|
14017
|
-
var mappings = [];
|
|
14018
|
-
var endpoints = {};
|
|
14019
|
-
bundles && bundles.forEach(function (group, index) {
|
|
14020
|
-
// first get target resource
|
|
14021
|
-
var destinationResource = targetMetadata ? targetMetadata.find(function (rsc) {
|
|
14022
|
-
return rsc.name === group.name;
|
|
14023
|
-
}) : group;
|
|
14024
|
-
group.name = destinationResource.type;
|
|
14025
|
-
group.resourceLabel = destinationResource.name;
|
|
14026
|
-
group.provider = targetProvider.toLowerCase();
|
|
14027
|
-
if (destinationResource.recordTypeId) {
|
|
14028
|
-
group.recordTypeId = destinationResource.recordTypeId;
|
|
14029
|
-
}
|
|
14030
|
-
|
|
14031
|
-
// destination Keys (for de-duplication in the Connect modal)
|
|
14032
|
-
if (!group.customExternalKeys && group.lingkSourceKey) {
|
|
14033
|
-
group.sourceKeys = [group.lingkSourceKey];
|
|
14034
|
-
group.sourceKeysObjects = [group.lingkSourceKeyObject];
|
|
14035
|
-
group.sourceKeysParents = [group.lingkSourceKeyParents];
|
|
14036
|
-
group.destinationKeys = ['Lingk_External_Id__c'];
|
|
14037
|
-
} else {
|
|
14038
|
-
(function () {
|
|
14039
|
-
var destinationKeys = [];
|
|
14040
|
-
if (group.destinationKeys) {
|
|
14041
|
-
group.destinationKeys.forEach(function (dk) {
|
|
14042
|
-
if (destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
|
|
14043
|
-
return prop.label === dk;
|
|
14044
|
-
})) {
|
|
14045
|
-
destinationKeys.push(destinationResource.properties.find(function (prop) {
|
|
14046
|
-
return prop.label === dk;
|
|
14047
|
-
}).name);
|
|
14048
|
-
}
|
|
14049
|
-
});
|
|
14050
|
-
}
|
|
14051
|
-
group.destinationKeys = destinationKeys;
|
|
14052
|
-
})();
|
|
14053
|
-
}
|
|
14054
|
-
|
|
14055
|
-
// get resource + name of sourceKeys
|
|
14056
|
-
var sourceKeys = [];
|
|
14057
|
-
var sourceKeysObjects = [];
|
|
14058
|
-
var sourceKeysParents = [];
|
|
14059
|
-
group.sourceKeys && group.sourceKeys.forEach(function (sk, i) {
|
|
14060
|
-
var sourceKeyResourceProvider = group.resources.find(function (r) {
|
|
14061
|
-
return r.name === group.sourceKeysObjects[i];
|
|
14062
|
-
}).provider;
|
|
14063
|
-
var dataSourceMetadata = sourceKeyResourceProvider === targetProvider ? targetMetadata : sourceMetadata;
|
|
14064
|
-
var sourceResource = dataSourceMetadata.find(function (metaRsc) {
|
|
14065
|
-
return metaRsc.name === group.sourceKeysObjects[i];
|
|
14066
|
-
});
|
|
14067
|
-
|
|
14068
|
-
if (sourceResource) {
|
|
14069
|
-
|
|
14070
|
-
var nestedSourceKey = findNestedProp(sk, group.sourceKeysParents && group.sourceKeysParents[i], sourceResource);
|
|
14071
|
-
sourceKeys.push(nestedSourceKey.property);
|
|
14072
|
-
sourceKeysParents.push(JSON.stringify(nestedSourceKey.parentsArray));
|
|
14073
|
-
sourceKeysObjects.push(sourceResource.type);
|
|
14074
|
-
}
|
|
14075
|
-
});
|
|
14076
|
-
group.sourceKeys = sourceKeys;
|
|
14077
|
-
group.sourceKeysObjects = sourceKeysObjects;
|
|
14078
|
-
group.sourceKeysParents = sourceKeysParents;
|
|
14079
|
-
|
|
14080
|
-
// MAPPINGS
|
|
14081
|
-
if (group.mappings) {
|
|
14082
|
-
group.mappings.forEach(function (singleMapping) {
|
|
14083
|
-
// get mapping source resource (check both metadatas)
|
|
14084
|
-
var dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ? targetMetadata : sourceMetadata;
|
|
14085
|
-
if (isReverse) {
|
|
14086
|
-
dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ? sourceMetadata : targetMetadata;
|
|
14087
|
-
}
|
|
14088
|
-
var sourceResource = dataSourceMetadata.find(function (rsc) {
|
|
14089
|
-
return rsc.name === singleMapping.resourceFromName;
|
|
14090
|
-
});
|
|
14091
|
-
|
|
14092
|
-
// get mapping source property
|
|
14093
|
-
var nestedSourceProp = findNestedProp(singleMapping.propertyFromName, singleMapping.propertyFromParents, sourceResource);
|
|
14094
|
-
//get mapping destination property
|
|
14095
|
-
var destinationProperty = destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
|
|
14096
|
-
return prop.label === singleMapping.propertyToName;
|
|
14097
|
-
});
|
|
14098
|
-
|
|
14099
|
-
//dont save transformation that are just "none"
|
|
14100
|
-
if (singleMapping.transformations && singleMapping.transformations.length > 0) {
|
|
14101
|
-
singleMapping.transformations.forEach(function (trans, index) {
|
|
14102
|
-
if (trans.type === 'none') {
|
|
14103
|
-
singleMapping.transformations.splice(index, 1);
|
|
14104
|
-
}
|
|
14105
|
-
if (trans.type === 'concat') {
|
|
14106
|
-
var r;
|
|
14181
|
+
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
14182
|
+
),
|
|
14183
|
+
_react2.default.createElement(
|
|
14184
|
+
'div',
|
|
14185
|
+
{ className: 'schema-groups' },
|
|
14186
|
+
_react2.default.createElement(
|
|
14187
|
+
'div',
|
|
14188
|
+
{ className: 'schema-groups-slider', style: {
|
|
14189
|
+
width: 600 * resourceGroups.length,
|
|
14190
|
+
transform: 'translate(-' + 600 * resourceGroupIndex + 'px)',
|
|
14191
|
+
WebkitTransform: 'translate(-' + 600 * resourceGroupIndex + 'px)'
|
|
14192
|
+
} },
|
|
14193
|
+
resourceGroups.map(function (g, i) {
|
|
14194
|
+
return _react2.default.createElement(
|
|
14195
|
+
'div',
|
|
14196
|
+
{ className: 'schema-group-name', key: i },
|
|
14197
|
+
g.name
|
|
14198
|
+
);
|
|
14199
|
+
})
|
|
14200
|
+
)
|
|
14201
|
+
),
|
|
14202
|
+
_react2.default.createElement(
|
|
14203
|
+
'svg',
|
|
14204
|
+
{ className: 'schema-group-arrow schema-group-arrow-forward', viewBox: '0 0 24 24', onClick: this.increment,
|
|
14205
|
+
style: resourceGroupIndex === resourceGroups.length - 1 ? { fill: '#CCCCCC', cursor: 'default' } : {} },
|
|
14206
|
+
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
14207
|
+
),
|
|
14208
|
+
_react2.default.createElement(
|
|
14209
|
+
'div',
|
|
14210
|
+
{ className: 'schema-group-dots' },
|
|
14211
|
+
resourceGroups.map(function (g, i) {
|
|
14212
|
+
return _react2.default.createElement('div', { className: 'schema-group-dot', key: i, style: {
|
|
14213
|
+
background: resourceGroupIndex !== i ? '#CFCFCF' : '#0070d2',
|
|
14214
|
+
marginLeft: i === firstReverseIndex ? 12 : 2
|
|
14215
|
+
}, onClick: function onClick() {
|
|
14216
|
+
return _this4.clickDot(i);
|
|
14217
|
+
} });
|
|
14218
|
+
})
|
|
14219
|
+
)
|
|
14220
|
+
)
|
|
14221
|
+
),
|
|
14222
|
+
_react2.default.Children.count(this.props.children) > 0 ? _react2.default.Children.map(this.props.children, function (child) {
|
|
14223
|
+
return _react2.default.cloneElement(child, Object.assign({}, propsForChild));
|
|
14224
|
+
}) : null
|
|
14225
|
+
);
|
|
14226
|
+
}
|
|
14227
|
+
}]);
|
|
14107
14228
|
|
|
14108
|
-
|
|
14109
|
-
|
|
14229
|
+
return GroupNav;
|
|
14230
|
+
}(_react.Component);
|
|
14110
14231
|
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14232
|
+
exports.default = GroupNav;
|
|
14233
|
+
|
|
14234
|
+
/***/ },
|
|
14235
|
+
/* 62 */
|
|
14236
|
+
/***/ function(module, exports) {
|
|
14237
|
+
|
|
14238
|
+
"use strict";
|
|
14118
14239
|
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
var transSourceApiNames = findNestedProp(field, nestedFields, transConcatSourceResource);
|
|
14123
|
-
r = transConcatSourceResourceProvider + '->' + transConcatSourceResource.type + '->';
|
|
14240
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14241
|
+
value: true
|
|
14242
|
+
});
|
|
14124
14243
|
|
|
14125
|
-
|
|
14126
|
-
return r += p + '.';
|
|
14127
|
-
});
|
|
14128
|
-
r += transSourceApiNames.property;
|
|
14129
|
-
trans.args[1] = r;
|
|
14130
|
-
})();
|
|
14131
|
-
}
|
|
14132
|
-
});
|
|
14133
|
-
}
|
|
14244
|
+
var nest = {
|
|
14134
14245
|
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
}
|
|
14148
|
-
});
|
|
14149
|
-
delete group.mappings; // remove the mapping obj from a resourceGroup
|
|
14150
|
-
if (group.lingkSourceKey) delete group.lingkSourceKey;
|
|
14151
|
-
if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject;
|
|
14152
|
-
if (group.lingkSourceKeyParents) delete group.lingkSourceKeyParents;
|
|
14246
|
+
expand: function expand(v, parents, expandedProp) {
|
|
14247
|
+
var expanded = Object.assign({}, expandedProp);
|
|
14248
|
+
if (parents.length === 0) {
|
|
14249
|
+
if (expanded[v]) delete expanded[v];else expanded[v] = {};
|
|
14250
|
+
} else if (parents.length === 1) {
|
|
14251
|
+
if (expanded[parents[0]][v]) delete expanded[parents[0]][v];else expanded[parents[0]][v] = {};
|
|
14252
|
+
} else if (parents.length === 2) {
|
|
14253
|
+
if (expanded[parents[0]][parents[1]][v]) delete expanded[parents[0]][parents[1]][v];else expanded[parents[0]][parents[1]][v] = {};
|
|
14254
|
+
} else if (parents.length === 3) {
|
|
14255
|
+
if (expanded[parents[0]][parents[1]][parents[2]][v]) delete expanded[parents[0]][parents[1]][parents[2]][v];else expanded[parents[0]][parents[1]][parents[2]][v] = {};
|
|
14256
|
+
} else if (parents.length === 4) {
|
|
14257
|
+
if (expanded[parents[0]][parents[1]][parents[2]][parents[3]][v]) delete expanded[parents[0]][parents[1]][parents[2]][parents[3]][v];else expanded[parents[0]][parents[1]][parents[2]][parents[3]][v] = {};
|
|
14153
14258
|
}
|
|
14259
|
+
return expanded;
|
|
14260
|
+
},
|
|
14154
14261
|
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
}
|
|
14171
|
-
|
|
14172
|
-
//make endpoint
|
|
14173
|
-
var suffix = sourceResource && sourceResource.endpointSuffix;
|
|
14174
|
-
if (suffix) {
|
|
14175
|
-
endpoints['url_' + sourceResource.type + '_' + sourceProvider] = '' + sourceEndpoint + (suffix[0] === '/' ? '' : '/') + suffix;
|
|
14176
|
-
}
|
|
14177
|
-
|
|
14178
|
-
//get first resource in bundle (for primaryKeyName)
|
|
14179
|
-
var primaryDataSourceMetadata = group.resources[0].provider.toLowerCase() === targetProvider.toLowerCase() ? targetMetadata : sourceMetadata;
|
|
14180
|
-
var primarySourceResource = primaryDataSourceMetadata.find(function (metaRsc) {
|
|
14181
|
-
return metaRsc.name === group.resources[0].name;
|
|
14182
|
-
});
|
|
14262
|
+
checkIfExpanded: function checkIfExpanded(v, parents, expandedProp) {
|
|
14263
|
+
var expanded = Object.assign({}, expandedProp);
|
|
14264
|
+
if (parents.length === 0) {
|
|
14265
|
+
if (expanded[v]) return true;
|
|
14266
|
+
} else if (parents.length === 1) {
|
|
14267
|
+
if (expanded[parents[0]][v]) return true;
|
|
14268
|
+
} else if (parents.length === 2) {
|
|
14269
|
+
if (expanded[parents[0]][parents[1]][v]) return true;
|
|
14270
|
+
} else if (parents.length === 3) {
|
|
14271
|
+
if (expanded[parents[0]][parents[1]][parents[2]][v]) return true;
|
|
14272
|
+
} else if (parents.length === 4) {
|
|
14273
|
+
if (expanded[parents[0]][parents[1]][parents[2]][parents[3]][v]) return true;
|
|
14274
|
+
}
|
|
14275
|
+
return false;
|
|
14276
|
+
}
|
|
14183
14277
|
|
|
14184
|
-
|
|
14185
|
-
var nestedPrimaryKey = { property: rsc.primaryKeyName };
|
|
14186
|
-
var primaryKeyResource = rsc.primaryKeyResource;
|
|
14187
|
-
// is from a same resource (not via parameters)
|
|
14188
|
-
if (primarySourceResource && primarySourceResource.name === rsc.primaryKeyResource) {
|
|
14189
|
-
nestedPrimaryKey = findNestedProp(rsc.primaryKeyName, rsc.primaryKeyParents, primarySourceResource);
|
|
14190
|
-
primaryKeyResource = primarySourceResource.type;
|
|
14191
|
-
}
|
|
14278
|
+
};
|
|
14192
14279
|
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14280
|
+
exports.default = nest;
|
|
14281
|
+
|
|
14282
|
+
/***/ },
|
|
14283
|
+
/* 63 */
|
|
14284
|
+
/***/ function(module, exports) {
|
|
14285
|
+
|
|
14286
|
+
'use strict';
|
|
14198
14287
|
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
joinKeyName: nestedJoinKey.property,
|
|
14205
|
-
joinKeyResource: joinKeyResource
|
|
14206
|
-
}, nestedJoinKey.parentsArray && nestedJoinKey.parentsArray.length > 0 && { joinKeyParents: nestedJoinKey.parentsArray }, {
|
|
14207
|
-
primaryKeyName: nestedPrimaryKey.property,
|
|
14208
|
-
primaryKeyResource: primaryKeyResource
|
|
14209
|
-
}, nestedPrimaryKey.parentsArray && nestedPrimaryKey.parentsArray.length > 0 && { primaryKeyParents: nestedPrimaryKey.parentsArray }, {
|
|
14210
|
-
provider: rsc.provider.toLowerCase() + 'Reader',
|
|
14211
|
-
joinType: rsc.joinType
|
|
14212
|
-
}, rsc.recordTypeId && { recordTypeId: rsc.recordTypeId }, rsc.parameterFilters && { parameterFilters: rsc.parameterFilters.filter(function (pf) {
|
|
14213
|
-
return pf.val;
|
|
14214
|
-
}) }, {
|
|
14215
|
-
level: rsc.level || (rscIndex === 0 ? 0 : 1)
|
|
14216
|
-
}, primaryKeyResource && rscParentProvider && { parentNameAndProvider: primaryKeyResource + '_' + rscParentProvider.toLowerCase() });
|
|
14217
|
-
} else return null;
|
|
14218
|
-
});
|
|
14219
|
-
}
|
|
14220
|
-
}); //end for each bundle
|
|
14221
|
-
return { bundles: bundles, mappings: mappings, endpoints: endpoints };
|
|
14222
|
-
}
|
|
14288
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14289
|
+
value: true
|
|
14290
|
+
});
|
|
14291
|
+
exports.makeContent = makeContent;
|
|
14292
|
+
var css = 'table { font-size: 12px !important; } ' + 'body { margin: 0; padding: 0; color: #16325c; font-family: Arial, sans-serif; font-size: 14px; } ' + 'tr { background: rgb(244, 246, 249); } ' + 'th { border-top: 1px solid #d8dde6; border-bottom: 1px solid #d8dde6; color: #54698d; text-transform: uppercase; letter-spacing: 0.0625rem; font-weight: bold; padding: 6px 10px; text-align: left; } ' + 'td { border-bottom: 1px solid #d8dde6; padding: 6px 10px; } ';
|
|
14223
14293
|
|
|
14224
|
-
function
|
|
14225
|
-
var
|
|
14226
|
-
var parentsArray = [];
|
|
14227
|
-
if (parents && parents.length > 0) {
|
|
14228
|
-
(function () {
|
|
14229
|
-
var nestedRsc = rsc;
|
|
14230
|
-
var tempParentsArray = [];
|
|
14231
|
-
parents.forEach(function (pk) {
|
|
14232
|
-
if (nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
14233
|
-
return p.label === pk;
|
|
14234
|
-
})) {
|
|
14235
|
-
var pkProp = nestedRsc.properties.find(function (p) {
|
|
14236
|
-
return p.label === pk;
|
|
14237
|
-
});
|
|
14238
|
-
tempParentsArray.push(pkProp.name);
|
|
14239
|
-
nestedRsc = pkProp.object;
|
|
14240
|
-
}
|
|
14241
|
-
});
|
|
14242
|
-
parentsArray = tempParentsArray;
|
|
14243
|
-
if (nestedRsc.properties && nestedRsc.properties.find(function (p) {
|
|
14244
|
-
return p.label === prop;
|
|
14245
|
-
})) {
|
|
14246
|
-
property = nestedRsc.properties.find(function (p) {
|
|
14247
|
-
return p.label === prop;
|
|
14248
|
-
}).name;
|
|
14249
|
-
}
|
|
14250
|
-
})();
|
|
14251
|
-
} else {
|
|
14252
|
-
property = prop && rsc && rsc.properties && rsc.properties.find(function (p) {
|
|
14253
|
-
return p.label === prop;
|
|
14254
|
-
}) && rsc.properties.find(function (p) {
|
|
14255
|
-
return p.label === prop;
|
|
14256
|
-
}).name;
|
|
14257
|
-
}
|
|
14258
|
-
return { property: property, parentsArray: parentsArray };
|
|
14294
|
+
function makeContent(url, tenantId, accountId, endpoint, target, targetName, token, envName) {
|
|
14295
|
+
return '\n<div id="content" style="padding: 10px 14px;">\n <span id="loading">Loading Data</span><span id="dots">...</span>\n</div>\n<script>\n\n var _table_ = document.createElement(\'table\'),\n _tr_ = document.createElement(\'tr\'),\n _th_ = document.createElement(\'th\'),\n _td_ = document.createElement(\'td\');\n\n function buildHtmlTable(arr) {\n var table = _table_.cloneNode(false),\n columns = addAllColumnHeaders(arr, table);\n for (var i=0, maxi=arr.length; i < maxi; ++i) {\n var tr = _tr_.cloneNode(false);\n for (var j=0, maxj=columns.length; j < maxj ; ++j) {\n var td = _td_.cloneNode(false);\n cellValue = arr[i][columns[j]];\n td.appendChild(document.createTextNode(arr[i][columns[j]] || \'\'));\n tr.appendChild(td);\n }\n table.appendChild(tr);\n }\n return table;\n }\n\n function addAllColumnHeaders(arr, table){\n var columnSet = [],\n tr = _tr_.cloneNode(false);\n for (var i=0, l=arr.length; i < l; i++) {\n for (var key in arr[i]) {\n if (arr[i].hasOwnProperty(key) && columnSet.indexOf(key)===-1) {\n columnSet.push(key);\n var th = _th_.cloneNode(false);\n th.appendChild(document.createTextNode(key));\n tr.appendChild(th);\n }\n }\n }\n table.appendChild(tr);\n return columnSet;\n }\n\n fetch(\'' + url + tenantId + '/' + accountId + '/environments/' + envName + '/previewintegration?url=' + endpoint + '&target=' + target + '\', {\n headers: new Headers({\n \'Authorization\': \'Bearer \' + \'' + token + '\'\n })\n })\n .then((r) => r.json())\n .then(res=>{\n document.body.appendChild(buildHtmlTable(res.data.slice(0,99)))\n window.clearInterval(loadInterval)\n document.body.removeChild(document.getElementById(\'content\'))\n })\n\n document.getElementById(\'loading\').innerHTML = \'Loading ' + targetName + ' Data\'\n var dots = \'...\'\n var element = document.getElementById(\'dots\')\n var loadInterval = window.setInterval(function(){\n if(dots.length<12){\n dots = dots + \'.\'\n } else {\n dots = \'.\'\n }\n element.innerHTML = dots\n }, 150)\n \n\n var head = document.head || document.getElementsByTagName(\'head\')[0];\n var style = document.createElement(\'style\');\n\n style.type = \'text/css\';\n if (style.styleSheet){\n style.styleSheet.cssText = \'' + css + '\';\n } else {\n style.appendChild(document.createTextNode(\'' + css + '\'));\n }\n\n head.appendChild(style);\n\n</script>\n';
|
|
14259
14296
|
}
|
|
14260
|
-
|
|
14261
|
-
exports.default = saveData;
|
|
14262
14297
|
|
|
14263
14298
|
/***/ },
|
|
14264
|
-
/*
|
|
14299
|
+
/* 64 */
|
|
14265
14300
|
/***/ function(module, exports, __webpack_require__) {
|
|
14266
14301
|
|
|
14267
14302
|
"use strict";
|
|
@@ -14290,9 +14325,9 @@ module.exports =
|
|
|
14290
14325
|
};
|
|
14291
14326
|
|
|
14292
14327
|
/***/ },
|
|
14293
|
-
/* 64 */,
|
|
14294
14328
|
/* 65 */,
|
|
14295
|
-
/* 66
|
|
14329
|
+
/* 66 */,
|
|
14330
|
+
/* 67 */
|
|
14296
14331
|
/***/ function(module, exports) {
|
|
14297
14332
|
|
|
14298
14333
|
module.exports = function(arr, obj){
|
|
@@ -14304,7 +14339,7 @@ module.exports =
|
|
|
14304
14339
|
};
|
|
14305
14340
|
|
|
14306
14341
|
/***/ },
|
|
14307
|
-
/*
|
|
14342
|
+
/* 68 */
|
|
14308
14343
|
/***/ function(module, exports, __webpack_require__) {
|
|
14309
14344
|
|
|
14310
14345
|
'use strict';
|
|
@@ -14362,7 +14397,7 @@ module.exports =
|
|
|
14362
14397
|
module.exports = exports['default'];
|
|
14363
14398
|
|
|
14364
14399
|
/***/ },
|
|
14365
|
-
/*
|
|
14400
|
+
/* 69 */
|
|
14366
14401
|
/***/ function(module, exports) {
|
|
14367
14402
|
|
|
14368
14403
|
"use strict";
|
|
@@ -14394,7 +14429,7 @@ module.exports =
|
|
|
14394
14429
|
module.exports = exports['default'];
|
|
14395
14430
|
|
|
14396
14431
|
/***/ },
|
|
14397
|
-
/*
|
|
14432
|
+
/* 70 */
|
|
14398
14433
|
/***/ function(module, exports, __webpack_require__) {
|
|
14399
14434
|
|
|
14400
14435
|
'use strict';
|
|
@@ -14447,7 +14482,7 @@ module.exports =
|
|
|
14447
14482
|
module.exports = exports['default'];
|
|
14448
14483
|
|
|
14449
14484
|
/***/ },
|
|
14450
|
-
/*
|
|
14485
|
+
/* 71 */
|
|
14451
14486
|
/***/ function(module, exports, __webpack_require__) {
|
|
14452
14487
|
|
|
14453
14488
|
'use strict';
|
|
@@ -14457,7 +14492,7 @@ module.exports =
|
|
|
14457
14492
|
});
|
|
14458
14493
|
exports["default"] = addEventListenerWrap;
|
|
14459
14494
|
|
|
14460
|
-
var _addDomEventListener = __webpack_require__(
|
|
14495
|
+
var _addDomEventListener = __webpack_require__(78);
|
|
14461
14496
|
|
|
14462
14497
|
var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
|
|
14463
14498
|
|
|
@@ -14477,7 +14512,7 @@ module.exports =
|
|
|
14477
14512
|
module.exports = exports['default'];
|
|
14478
14513
|
|
|
14479
14514
|
/***/ },
|
|
14480
|
-
/*
|
|
14515
|
+
/* 72 */
|
|
14481
14516
|
/***/ function(module, exports, __webpack_require__) {
|
|
14482
14517
|
|
|
14483
14518
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -16089,7 +16124,7 @@ module.exports =
|
|
|
16089
16124
|
//# sourceMappingURL=react-draggable.js.map
|
|
16090
16125
|
|
|
16091
16126
|
/***/ },
|
|
16092
|
-
/*
|
|
16127
|
+
/* 73 */
|
|
16093
16128
|
/***/ function(module, exports) {
|
|
16094
16129
|
|
|
16095
16130
|
'use strict';
|
|
@@ -16101,7 +16136,7 @@ module.exports =
|
|
|
16101
16136
|
module.exports = exports['default'];
|
|
16102
16137
|
|
|
16103
16138
|
/***/ },
|
|
16104
|
-
/*
|
|
16139
|
+
/* 74 */
|
|
16105
16140
|
/***/ function(module, exports, __webpack_require__) {
|
|
16106
16141
|
|
|
16107
16142
|
'use strict';
|
|
@@ -16114,7 +16149,7 @@ module.exports =
|
|
|
16114
16149
|
|
|
16115
16150
|
var _react2 = _interopRequireDefault(_react);
|
|
16116
16151
|
|
|
16117
|
-
var _propTypes = __webpack_require__(
|
|
16152
|
+
var _propTypes = __webpack_require__(40);
|
|
16118
16153
|
|
|
16119
16154
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
16120
16155
|
|
|
@@ -16155,13 +16190,13 @@ module.exports =
|
|
|
16155
16190
|
})]);
|
|
16156
16191
|
|
|
16157
16192
|
/***/ },
|
|
16158
|
-
/*
|
|
16193
|
+
/* 75 */
|
|
16159
16194
|
/***/ function(module, exports) {
|
|
16160
16195
|
|
|
16161
16196
|
module.exports = require("react-redux");
|
|
16162
16197
|
|
|
16163
16198
|
/***/ },
|
|
16164
|
-
/*
|
|
16199
|
+
/* 76 */
|
|
16165
16200
|
/***/ function(module, exports) {
|
|
16166
16201
|
|
|
16167
16202
|
"use strict";
|
|
@@ -16226,7 +16261,7 @@ module.exports =
|
|
|
16226
16261
|
module.exports = exports['default'];
|
|
16227
16262
|
|
|
16228
16263
|
/***/ },
|
|
16229
|
-
/*
|
|
16264
|
+
/* 77 */
|
|
16230
16265
|
/***/ function(module, exports, __webpack_require__) {
|
|
16231
16266
|
|
|
16232
16267
|
'use strict';
|
|
@@ -16235,7 +16270,7 @@ module.exports =
|
|
|
16235
16270
|
value: true
|
|
16236
16271
|
});
|
|
16237
16272
|
|
|
16238
|
-
var _EventBaseObject = __webpack_require__(
|
|
16273
|
+
var _EventBaseObject = __webpack_require__(76);
|
|
16239
16274
|
|
|
16240
16275
|
var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
|
|
16241
16276
|
|
|
@@ -16508,7 +16543,7 @@ module.exports =
|
|
|
16508
16543
|
module.exports = exports['default'];
|
|
16509
16544
|
|
|
16510
16545
|
/***/ },
|
|
16511
|
-
/*
|
|
16546
|
+
/* 78 */
|
|
16512
16547
|
/***/ function(module, exports, __webpack_require__) {
|
|
16513
16548
|
|
|
16514
16549
|
'use strict';
|
|
@@ -16518,7 +16553,7 @@ module.exports =
|
|
|
16518
16553
|
});
|
|
16519
16554
|
exports["default"] = addEventListener;
|
|
16520
16555
|
|
|
16521
|
-
var _EventObject = __webpack_require__(
|
|
16556
|
+
var _EventObject = __webpack_require__(77);
|
|
16522
16557
|
|
|
16523
16558
|
var _EventObject2 = _interopRequireDefault(_EventObject);
|
|
16524
16559
|
|
|
@@ -16549,7 +16584,6 @@ module.exports =
|
|
|
16549
16584
|
module.exports = exports['default'];
|
|
16550
16585
|
|
|
16551
16586
|
/***/ },
|
|
16552
|
-
/* 78 */,
|
|
16553
16587
|
/* 79 */,
|
|
16554
16588
|
/* 80 */,
|
|
16555
16589
|
/* 81 */,
|
|
@@ -16580,7 +16614,8 @@ module.exports =
|
|
|
16580
16614
|
/* 106 */,
|
|
16581
16615
|
/* 107 */,
|
|
16582
16616
|
/* 108 */,
|
|
16583
|
-
/* 109
|
|
16617
|
+
/* 109 */,
|
|
16618
|
+
/* 110 */
|
|
16584
16619
|
/***/ function(module, exports, __webpack_require__) {
|
|
16585
16620
|
|
|
16586
16621
|
'use strict';
|
|
@@ -16629,7 +16664,7 @@ module.exports =
|
|
|
16629
16664
|
exports.setWizardDataLoaded = setWizardDataLoaded;
|
|
16630
16665
|
exports.clearWizardFormData = clearWizardFormData;
|
|
16631
16666
|
|
|
16632
|
-
var _types = __webpack_require__(
|
|
16667
|
+
var _types = __webpack_require__(42);
|
|
16633
16668
|
|
|
16634
16669
|
var types = _interopRequireWildcard(_types);
|
|
16635
16670
|
|
|
@@ -17458,7 +17493,7 @@ module.exports =
|
|
|
17458
17493
|
}
|
|
17459
17494
|
|
|
17460
17495
|
/***/ },
|
|
17461
|
-
/*
|
|
17496
|
+
/* 111 */
|
|
17462
17497
|
/***/ function(module, exports, __webpack_require__) {
|
|
17463
17498
|
|
|
17464
17499
|
'use strict';
|
|
@@ -17540,7 +17575,7 @@ module.exports =
|
|
|
17540
17575
|
})(AccountStep);
|
|
17541
17576
|
|
|
17542
17577
|
/***/ },
|
|
17543
|
-
/*
|
|
17578
|
+
/* 112 */
|
|
17544
17579
|
/***/ function(module, exports, __webpack_require__) {
|
|
17545
17580
|
|
|
17546
17581
|
'use strict';
|
|
@@ -17555,7 +17590,7 @@ module.exports =
|
|
|
17555
17590
|
|
|
17556
17591
|
var _react2 = _interopRequireDefault(_react);
|
|
17557
17592
|
|
|
17558
|
-
var _reactDraggable = __webpack_require__(
|
|
17593
|
+
var _reactDraggable = __webpack_require__(72);
|
|
17559
17594
|
|
|
17560
17595
|
var _reactDraggable2 = _interopRequireDefault(_reactDraggable);
|
|
17561
17596
|
|
|
@@ -17882,7 +17917,7 @@ module.exports =
|
|
|
17882
17917
|
exports.default = BundleTable;
|
|
17883
17918
|
|
|
17884
17919
|
/***/ },
|
|
17885
|
-
/*
|
|
17920
|
+
/* 113 */
|
|
17886
17921
|
/***/ function(module, exports, __webpack_require__) {
|
|
17887
17922
|
|
|
17888
17923
|
'use strict';
|
|
@@ -18315,7 +18350,7 @@ module.exports =
|
|
|
18315
18350
|
exports.default = ConnectModal;
|
|
18316
18351
|
|
|
18317
18352
|
/***/ },
|
|
18318
|
-
/*
|
|
18353
|
+
/* 114 */
|
|
18319
18354
|
/***/ function(module, exports, __webpack_require__) {
|
|
18320
18355
|
|
|
18321
18356
|
'use strict';
|
|
@@ -18769,7 +18804,7 @@ module.exports =
|
|
|
18769
18804
|
exports.default = MapAccordion;
|
|
18770
18805
|
|
|
18771
18806
|
/***/ },
|
|
18772
|
-
/*
|
|
18807
|
+
/* 115 */
|
|
18773
18808
|
/***/ function(module, exports, __webpack_require__) {
|
|
18774
18809
|
|
|
18775
18810
|
'use strict';
|
|
@@ -19027,7 +19062,7 @@ module.exports =
|
|
|
19027
19062
|
};
|
|
19028
19063
|
|
|
19029
19064
|
/***/ },
|
|
19030
|
-
/*
|
|
19065
|
+
/* 116 */
|
|
19031
19066
|
/***/ function(module, exports, __webpack_require__) {
|
|
19032
19067
|
|
|
19033
19068
|
'use strict';
|
|
@@ -19263,7 +19298,7 @@ module.exports =
|
|
|
19263
19298
|
exports.default = ParameterModal;
|
|
19264
19299
|
|
|
19265
19300
|
/***/ },
|
|
19266
|
-
/*
|
|
19301
|
+
/* 117 */
|
|
19267
19302
|
/***/ function(module, exports, __webpack_require__) {
|
|
19268
19303
|
|
|
19269
19304
|
'use strict';
|
|
@@ -19282,7 +19317,7 @@ module.exports =
|
|
|
19282
19317
|
|
|
19283
19318
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
19284
19319
|
|
|
19285
|
-
var _reactDraggable = __webpack_require__(
|
|
19320
|
+
var _reactDraggable = __webpack_require__(72);
|
|
19286
19321
|
|
|
19287
19322
|
var _reactDraggable2 = _interopRequireDefault(_reactDraggable);
|
|
19288
19323
|
|
|
@@ -19296,7 +19331,7 @@ module.exports =
|
|
|
19296
19331
|
|
|
19297
19332
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
19298
19333
|
|
|
19299
|
-
var _parameterModal = __webpack_require__(
|
|
19334
|
+
var _parameterModal = __webpack_require__(116);
|
|
19300
19335
|
|
|
19301
19336
|
var _parameterModal2 = _interopRequireDefault(_parameterModal);
|
|
19302
19337
|
|
|
@@ -20013,7 +20048,7 @@ module.exports =
|
|
|
20013
20048
|
};
|
|
20014
20049
|
|
|
20015
20050
|
/***/ },
|
|
20016
|
-
/*
|
|
20051
|
+
/* 118 */
|
|
20017
20052
|
/***/ function(module, exports, __webpack_require__) {
|
|
20018
20053
|
|
|
20019
20054
|
'use strict';
|
|
@@ -20529,209 +20564,6 @@ module.exports =
|
|
|
20529
20564
|
|
|
20530
20565
|
exports.default = TransformModal;
|
|
20531
20566
|
|
|
20532
|
-
/***/ },
|
|
20533
|
-
/* 118 */
|
|
20534
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
20535
|
-
|
|
20536
|
-
'use strict';
|
|
20537
|
-
|
|
20538
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20539
|
-
value: true
|
|
20540
|
-
});
|
|
20541
|
-
|
|
20542
|
-
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; }; }();
|
|
20543
|
-
|
|
20544
|
-
var _react = __webpack_require__(1);
|
|
20545
|
-
|
|
20546
|
-
var _react2 = _interopRequireDefault(_react);
|
|
20547
|
-
|
|
20548
|
-
var _reduxForm = __webpack_require__(2);
|
|
20549
|
-
|
|
20550
|
-
var _validate = __webpack_require__(5);
|
|
20551
|
-
|
|
20552
|
-
var _validate2 = _interopRequireDefault(_validate);
|
|
20553
|
-
|
|
20554
|
-
var _navButtons = __webpack_require__(4);
|
|
20555
|
-
|
|
20556
|
-
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
20557
|
-
|
|
20558
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20559
|
-
|
|
20560
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20561
|
-
|
|
20562
|
-
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; }
|
|
20563
|
-
|
|
20564
|
-
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; }
|
|
20565
|
-
|
|
20566
|
-
var AdapterStep = function (_Component) {
|
|
20567
|
-
_inherits(AdapterStep, _Component);
|
|
20568
|
-
|
|
20569
|
-
function AdapterStep() {
|
|
20570
|
-
_classCallCheck(this, AdapterStep);
|
|
20571
|
-
|
|
20572
|
-
var _this = _possibleConstructorReturn(this, (AdapterStep.__proto__ || Object.getPrototypeOf(AdapterStep)).call(this));
|
|
20573
|
-
|
|
20574
|
-
_this.state = {
|
|
20575
|
-
showSecret: false
|
|
20576
|
-
};
|
|
20577
|
-
return _this;
|
|
20578
|
-
}
|
|
20579
|
-
|
|
20580
|
-
_createClass(AdapterStep, [{
|
|
20581
|
-
key: 'render',
|
|
20582
|
-
value: function render() {
|
|
20583
|
-
var _this2 = this;
|
|
20584
|
-
|
|
20585
|
-
var showSecret = this.state.showSecret;
|
|
20586
|
-
var _props = this.props,
|
|
20587
|
-
inputs = _props.inputs,
|
|
20588
|
-
handleSubmit = _props.handleSubmit,
|
|
20589
|
-
nav = _props.nav,
|
|
20590
|
-
reset = _props.reset,
|
|
20591
|
-
step = _props.step;
|
|
20592
|
-
|
|
20593
|
-
var Button = inputs.Button;
|
|
20594
|
-
return _react2.default.createElement(
|
|
20595
|
-
'form',
|
|
20596
|
-
{ onKeyPress: function onKeyPress(e) {
|
|
20597
|
-
return e.charCode === 13 ? e.preventDefault() : null;
|
|
20598
|
-
} },
|
|
20599
|
-
_react2.default.createElement(
|
|
20600
|
-
'div',
|
|
20601
|
-
{ style: { fontSize: 20 } },
|
|
20602
|
-
'Data Source: Configure ',
|
|
20603
|
-
'' + step.title
|
|
20604
|
-
),
|
|
20605
|
-
_react2.default.createElement('br', null),
|
|
20606
|
-
_react2.default.createElement(
|
|
20607
|
-
'div',
|
|
20608
|
-
{ style: { marginLeft: 16 } },
|
|
20609
|
-
_react2.default.createElement(
|
|
20610
|
-
'h5',
|
|
20611
|
-
null,
|
|
20612
|
-
'This integration requires ',
|
|
20613
|
-
'' + step.title,
|
|
20614
|
-
' configuration before continuing.'
|
|
20615
|
-
),
|
|
20616
|
-
_react2.default.createElement(
|
|
20617
|
-
'ul',
|
|
20618
|
-
{ style: { listStyle: 'initial', paddingLeft: 17 } },
|
|
20619
|
-
_react2.default.createElement(
|
|
20620
|
-
'li',
|
|
20621
|
-
null,
|
|
20622
|
-
_react2.default.createElement(
|
|
20623
|
-
'h5',
|
|
20624
|
-
null,
|
|
20625
|
-
_react2.default.createElement(
|
|
20626
|
-
'a',
|
|
20627
|
-
{ href: '' },
|
|
20628
|
-
'Download the ',
|
|
20629
|
-
'' + step.title
|
|
20630
|
-
)
|
|
20631
|
-
)
|
|
20632
|
-
),
|
|
20633
|
-
_react2.default.createElement(
|
|
20634
|
-
'li',
|
|
20635
|
-
null,
|
|
20636
|
-
_react2.default.createElement(
|
|
20637
|
-
'h5',
|
|
20638
|
-
null,
|
|
20639
|
-
_react2.default.createElement(
|
|
20640
|
-
'a',
|
|
20641
|
-
{ href: '' },
|
|
20642
|
-
'Read the ',
|
|
20643
|
-
'' + step.title,
|
|
20644
|
-
' Documentation'
|
|
20645
|
-
)
|
|
20646
|
-
)
|
|
20647
|
-
)
|
|
20648
|
-
),
|
|
20649
|
-
_react2.default.createElement('br', null),
|
|
20650
|
-
_react2.default.createElement(
|
|
20651
|
-
'strong',
|
|
20652
|
-
{ htmlFor: 'link-banner', style: { marginBottom: 14 } },
|
|
20653
|
-
'Lingk ',
|
|
20654
|
-
'' + step.title,
|
|
20655
|
-
' Credentials:'
|
|
20656
|
-
),
|
|
20657
|
-
_react2.default.createElement('br', null),
|
|
20658
|
-
_react2.default.createElement('br', null),
|
|
20659
|
-
_react2.default.createElement(
|
|
20660
|
-
'div',
|
|
20661
|
-
{ style: { marginLeft: 18 } },
|
|
20662
|
-
_react2.default.createElement(
|
|
20663
|
-
'span',
|
|
20664
|
-
null,
|
|
20665
|
-
'Client ID'
|
|
20666
|
-
),
|
|
20667
|
-
_react2.default.createElement('br', null),
|
|
20668
|
-
_react2.default.createElement('input', {
|
|
20669
|
-
readOnly: true,
|
|
20670
|
-
type: 'text',
|
|
20671
|
-
placeholder: 'Client ID',
|
|
20672
|
-
size: '60',
|
|
20673
|
-
defaultValue: '55e65cc3d2f8e50001000020df27e6d908da4bf15832e459d2240dfb'
|
|
20674
|
-
}),
|
|
20675
|
-
_react2.default.createElement('br', null),
|
|
20676
|
-
_react2.default.createElement('br', null),
|
|
20677
|
-
_react2.default.createElement(
|
|
20678
|
-
'span',
|
|
20679
|
-
null,
|
|
20680
|
-
'Client Secret'
|
|
20681
|
-
),
|
|
20682
|
-
_react2.default.createElement('br', null),
|
|
20683
|
-
_react2.default.createElement('input', {
|
|
20684
|
-
readOnly: true,
|
|
20685
|
-
placeholder: 'Client Secret',
|
|
20686
|
-
size: '60',
|
|
20687
|
-
defaultValue: 'ZTFlNjg2NjQ0MWQwNDI3ODRmMGQ3YmYzOTM0OWQxNTM=',
|
|
20688
|
-
onBlur: function onBlur() {
|
|
20689
|
-
_this2.setState({ showSecret: false });
|
|
20690
|
-
},
|
|
20691
|
-
style: { display: 'inline-block' },
|
|
20692
|
-
type: showSecret ? 'text' : 'password'
|
|
20693
|
-
}),
|
|
20694
|
-
_react2.default.createElement(
|
|
20695
|
-
Button,
|
|
20696
|
-
{
|
|
20697
|
-
type: 'brand',
|
|
20698
|
-
iconAlign: 'right',
|
|
20699
|
-
onClick: function onClick() {
|
|
20700
|
-
return _this2.setState({ showSecret: !showSecret });
|
|
20701
|
-
},
|
|
20702
|
-
style: {
|
|
20703
|
-
height: 23,
|
|
20704
|
-
width: 55,
|
|
20705
|
-
paddingLeft: 11,
|
|
20706
|
-
lineHeight: '9px',
|
|
20707
|
-
fontSize: 11,
|
|
20708
|
-
marginLeft: 4,
|
|
20709
|
-
marginBottom: 3
|
|
20710
|
-
}
|
|
20711
|
-
},
|
|
20712
|
-
this.state.showSecret ? 'Hide' : 'Show'
|
|
20713
|
-
)
|
|
20714
|
-
)
|
|
20715
|
-
),
|
|
20716
|
-
_react2.default.createElement('br', null),
|
|
20717
|
-
_react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
20718
|
-
_react2.default.createElement('br', null),
|
|
20719
|
-
_react2.default.createElement('br', null)
|
|
20720
|
-
);
|
|
20721
|
-
}
|
|
20722
|
-
}]);
|
|
20723
|
-
|
|
20724
|
-
return AdapterStep;
|
|
20725
|
-
}(_react.Component);
|
|
20726
|
-
|
|
20727
|
-
exports.default = (0, _reduxForm.reduxForm)({
|
|
20728
|
-
form: 'wizard',
|
|
20729
|
-
destroyOnUnmount: false,
|
|
20730
|
-
forceUnregisterOnUnmount: true,
|
|
20731
|
-
touchOnBlur: false,
|
|
20732
|
-
validate: _validate2.default
|
|
20733
|
-
})(AdapterStep);
|
|
20734
|
-
|
|
20735
20567
|
/***/ },
|
|
20736
20568
|
/* 119 */
|
|
20737
20569
|
/***/ function(module, exports, __webpack_require__) {
|
|
@@ -20758,9 +20590,9 @@ module.exports =
|
|
|
20758
20590
|
|
|
20759
20591
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
20760
20592
|
|
|
20761
|
-
var
|
|
20593
|
+
var _initialize = __webpack_require__(11);
|
|
20762
20594
|
|
|
20763
|
-
var
|
|
20595
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
20764
20596
|
|
|
20765
20597
|
var _moment = __webpack_require__(22);
|
|
20766
20598
|
|
|
@@ -20816,7 +20648,7 @@ module.exports =
|
|
|
20816
20648
|
actions = _props.actions;
|
|
20817
20649
|
|
|
20818
20650
|
if (!wizard.dataLoaded) {
|
|
20819
|
-
(0,
|
|
20651
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
20820
20652
|
}
|
|
20821
20653
|
}
|
|
20822
20654
|
}, {
|
|
@@ -21006,11 +20838,11 @@ module.exports =
|
|
|
21006
20838
|
|
|
21007
20839
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
21008
20840
|
|
|
21009
|
-
var
|
|
20841
|
+
var _initialize = __webpack_require__(11);
|
|
21010
20842
|
|
|
21011
|
-
var
|
|
20843
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
21012
20844
|
|
|
21013
|
-
var _previewTabContent = __webpack_require__(
|
|
20845
|
+
var _previewTabContent = __webpack_require__(63);
|
|
21014
20846
|
|
|
21015
20847
|
var _CSSTransitionGroup = __webpack_require__(27);
|
|
21016
20848
|
|
|
@@ -21020,7 +20852,7 @@ module.exports =
|
|
|
21020
20852
|
|
|
21021
20853
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
21022
20854
|
|
|
21023
|
-
var _credSections = __webpack_require__(
|
|
20855
|
+
var _credSections = __webpack_require__(43);
|
|
21024
20856
|
|
|
21025
20857
|
var _credSections2 = _interopRequireDefault(_credSections);
|
|
21026
20858
|
|
|
@@ -21058,7 +20890,12 @@ module.exports =
|
|
|
21058
20890
|
});
|
|
21059
20891
|
console.log(env, config);
|
|
21060
20892
|
if (phase === 'start') {
|
|
21061
|
-
|
|
20893
|
+
var c = formValues[mode + 'Credentials'];
|
|
20894
|
+
change(mode + 'Credentials', Object.assign({}, c, {
|
|
20895
|
+
credentialsJson: Object.assign({}, c && c.credentialsJson, {
|
|
20896
|
+
userName: '_' // this is for oauth DotDot
|
|
20897
|
+
})
|
|
20898
|
+
}));
|
|
21062
20899
|
} else {
|
|
21063
20900
|
actions.tryGetCredential(tenantId, accountId, config.type, config.credentials, env.name).then(function (c) {
|
|
21064
20901
|
change(mode + 'Credentials', c);
|
|
@@ -21107,7 +20944,7 @@ module.exports =
|
|
|
21107
20944
|
actions = _props2.actions;
|
|
21108
20945
|
|
|
21109
20946
|
if (!wizard.dataLoaded) {
|
|
21110
|
-
(0,
|
|
20947
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
21111
20948
|
}
|
|
21112
20949
|
}
|
|
21113
20950
|
}, {
|
|
@@ -21141,6 +20978,7 @@ module.exports =
|
|
|
21141
20978
|
|
|
21142
20979
|
actions.callGetMetadata(tenantId, accountId, mode, step[mode + 'Provider'], config.metadataEndpoint, config.metadataApi, endpoint || '_blank', config.credentials, step.isFramework, credentials, env).then(function () {
|
|
21143
20980
|
_this2.setState(_defineProperty({}, mode + 'EnvChecking', false));
|
|
20981
|
+
change(mode + 'Credentials', credentials);
|
|
21144
20982
|
});
|
|
21145
20983
|
}
|
|
21146
20984
|
}, {
|
|
@@ -21267,21 +21105,45 @@ module.exports =
|
|
|
21267
21105
|
value: function setCsvFields(metadata, mode, providerType) {
|
|
21268
21106
|
this.props.actions.setCsvFields(metadata, mode, providerType);
|
|
21269
21107
|
}
|
|
21108
|
+
}, {
|
|
21109
|
+
key: 'createCustomSettings',
|
|
21110
|
+
value: function createCustomSettings(mode) {
|
|
21111
|
+
var _props8 = this.props,
|
|
21112
|
+
wizard = _props8.wizard,
|
|
21113
|
+
step = _props8.step,
|
|
21114
|
+
inputs = _props8.inputs,
|
|
21115
|
+
formValues = _props8.formValues;
|
|
21116
|
+
|
|
21117
|
+
var config = step[mode + 'Config'];
|
|
21118
|
+
var customSettings = null;
|
|
21119
|
+
var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
|
|
21120
|
+
return m.method === 'POST' || m.method === 'PUT';
|
|
21121
|
+
});
|
|
21122
|
+
|
|
21123
|
+
if (wizard[mode + 'Metadata'] && mode === 'source' && config.bidirectional && POSTS && POSTS.length > 0) {
|
|
21124
|
+
customSettings = _react2.default.createElement(CustomAdapterSettings, { provider: step[mode + 'Provider'],
|
|
21125
|
+
clickDirection: this.clickDirection, inputs: inputs });
|
|
21126
|
+
} else if (config.type === 'Salesforce') {
|
|
21127
|
+
customSettings = _react2.default.createElement(CustomSalesforceSettings, { inputs: inputs, formValues: formValues });
|
|
21128
|
+
}
|
|
21129
|
+
|
|
21130
|
+
return customSettings;
|
|
21131
|
+
}
|
|
21270
21132
|
}, {
|
|
21271
21133
|
key: 'render',
|
|
21272
21134
|
value: function render() {
|
|
21273
21135
|
var _this4 = this;
|
|
21274
21136
|
|
|
21275
|
-
var
|
|
21276
|
-
inputs =
|
|
21277
|
-
step =
|
|
21278
|
-
handleSubmit =
|
|
21279
|
-
nav =
|
|
21280
|
-
reset =
|
|
21281
|
-
wizard =
|
|
21282
|
-
formValues =
|
|
21283
|
-
tenantKey =
|
|
21284
|
-
accountKey =
|
|
21137
|
+
var _props9 = this.props,
|
|
21138
|
+
inputs = _props9.inputs,
|
|
21139
|
+
step = _props9.step,
|
|
21140
|
+
handleSubmit = _props9.handleSubmit,
|
|
21141
|
+
nav = _props9.nav,
|
|
21142
|
+
reset = _props9.reset,
|
|
21143
|
+
wizard = _props9.wizard,
|
|
21144
|
+
formValues = _props9.formValues,
|
|
21145
|
+
tenantKey = _props9.tenantKey,
|
|
21146
|
+
accountKey = _props9.accountKey;
|
|
21285
21147
|
|
|
21286
21148
|
var modes = ['source', 'destination'];
|
|
21287
21149
|
var selectedProvider = this.state.selectedProvider;
|
|
@@ -21338,6 +21200,7 @@ module.exports =
|
|
|
21338
21200
|
var isSelected = step[m + 'Provider'] === selectedProvider;
|
|
21339
21201
|
var checking = _this4.state[m + 'EnvChecking'];
|
|
21340
21202
|
var adapterSecret = wizard.savedCredentials && wizard.savedCredentials[m + 'AdapterSecret'] && wizard.savedCredentials[m + 'AdapterSecret'].credentials;
|
|
21203
|
+
var customSettings = _this4.createCustomSettings(m);
|
|
21341
21204
|
return _react2.default.createElement(
|
|
21342
21205
|
'div',
|
|
21343
21206
|
{ key: m, className: 'env-section' },
|
|
@@ -21379,23 +21242,26 @@ module.exports =
|
|
|
21379
21242
|
isSelected && _react2.default.createElement(
|
|
21380
21243
|
'div',
|
|
21381
21244
|
{ className: 'env-creds' },
|
|
21382
|
-
_react2.default.createElement(
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21245
|
+
_react2.default.createElement(
|
|
21246
|
+
_credSections2.default,
|
|
21247
|
+
{ config: step[m + 'Config'], checking: checking,
|
|
21248
|
+
wizard: wizard, getOauthUrl: _this4.getOauthUrl.bind(_this4),
|
|
21249
|
+
formValues: formValues, inputs: inputs,
|
|
21250
|
+
generateNewAdapterSecret: _this4.generateNewAdapterSecret.bind(_this4),
|
|
21251
|
+
seeFields: _this4.seeFields.bind(_this4),
|
|
21252
|
+
check: function check(actualCreds) {
|
|
21253
|
+
return _this4.check(m, null, actualCreds);
|
|
21254
|
+
},
|
|
21255
|
+
tenantKey: tenantKey, accountKey: accountKey,
|
|
21256
|
+
setCsvFields: _this4.setCsvFields.bind(_this4),
|
|
21257
|
+
creds: formValues[m + 'Credentials'],
|
|
21258
|
+
envCheckResult: wizard[m + 'CheckResult'],
|
|
21259
|
+
adapterSecret: adapterSecret,
|
|
21260
|
+
checkOauthCreds: function checkOauthCreds(phase) {
|
|
21261
|
+
return _this4.checkOauthCreds(phase, m);
|
|
21262
|
+
} },
|
|
21263
|
+
_react2.default.isValidElement(customSettings) ? _react2.default.cloneElement(customSettings) : null
|
|
21264
|
+
)
|
|
21399
21265
|
)
|
|
21400
21266
|
)
|
|
21401
21267
|
);
|
|
@@ -21553,6 +21419,96 @@ module.exports =
|
|
|
21553
21419
|
);
|
|
21554
21420
|
};
|
|
21555
21421
|
|
|
21422
|
+
var CustomSalesforceSettings = function (_Component2) {
|
|
21423
|
+
_inherits(CustomSalesforceSettings, _Component2);
|
|
21424
|
+
|
|
21425
|
+
function CustomSalesforceSettings() {
|
|
21426
|
+
_classCallCheck(this, CustomSalesforceSettings);
|
|
21427
|
+
|
|
21428
|
+
var _this5 = _possibleConstructorReturn(this, (CustomSalesforceSettings.__proto__ || Object.getPrototypeOf(CustomSalesforceSettings)).call(this));
|
|
21429
|
+
|
|
21430
|
+
_this5.state = {
|
|
21431
|
+
custom: false
|
|
21432
|
+
};
|
|
21433
|
+
return _this5;
|
|
21434
|
+
}
|
|
21435
|
+
|
|
21436
|
+
_createClass(CustomSalesforceSettings, [{
|
|
21437
|
+
key: 'componentWillMount',
|
|
21438
|
+
value: function componentWillMount() {
|
|
21439
|
+
var formValues = this.props.formValues;
|
|
21440
|
+
|
|
21441
|
+
if (formValues && formValues.batchSize) {
|
|
21442
|
+
this.setState({ custom: true });
|
|
21443
|
+
}
|
|
21444
|
+
}
|
|
21445
|
+
}, {
|
|
21446
|
+
key: 'render',
|
|
21447
|
+
value: function render() {
|
|
21448
|
+
var _this6 = this;
|
|
21449
|
+
|
|
21450
|
+
var inputs = this.props.inputs;
|
|
21451
|
+
var Radio = inputs.Radio;
|
|
21452
|
+
|
|
21453
|
+
|
|
21454
|
+
return _react2.default.createElement(
|
|
21455
|
+
'div',
|
|
21456
|
+
{ style: { marginTop: 23 } },
|
|
21457
|
+
_react2.default.createElement(
|
|
21458
|
+
'label',
|
|
21459
|
+
{ className: 'labelz', style: { fontWeight: 'bold' } },
|
|
21460
|
+
'Bulk Upload Batch Size:'
|
|
21461
|
+
),
|
|
21462
|
+
_react2.default.createElement('br', null),
|
|
21463
|
+
_react2.default.createElement(Radio, { onChange: function onChange() {
|
|
21464
|
+
return _this6.setState({ custom: false });
|
|
21465
|
+
},
|
|
21466
|
+
label: 'Default Batch Size (10,000)',
|
|
21467
|
+
checked: this.state.custom === false,
|
|
21468
|
+
style: { cursor: 'pointer', fontWeight: 'normal' }
|
|
21469
|
+
}),
|
|
21470
|
+
_react2.default.createElement('br', null),
|
|
21471
|
+
_react2.default.createElement(Radio, { onChange: function onChange() {
|
|
21472
|
+
return _this6.setState({ custom: true });
|
|
21473
|
+
},
|
|
21474
|
+
label: 'Custom Batch Size',
|
|
21475
|
+
checked: this.state.custom === true,
|
|
21476
|
+
style: { cursor: 'pointer', fontWeight: 'normal' }
|
|
21477
|
+
}),
|
|
21478
|
+
this.state.custom === true && _react2.default.createElement(
|
|
21479
|
+
'div',
|
|
21480
|
+
null,
|
|
21481
|
+
_react2.default.createElement('br', null),
|
|
21482
|
+
_react2.default.createElement(_reduxForm.Field, { name: 'batchSize', type: 'number', component: inputs.rfInput,
|
|
21483
|
+
label: 'Set Batch Size:', placeholder: 'Number of Records' })
|
|
21484
|
+
)
|
|
21485
|
+
);
|
|
21486
|
+
}
|
|
21487
|
+
}]);
|
|
21488
|
+
|
|
21489
|
+
return CustomSalesforceSettings;
|
|
21490
|
+
}(_react.Component);
|
|
21491
|
+
|
|
21492
|
+
var CustomAdapterSettings = function CustomAdapterSettings(_ref3) {
|
|
21493
|
+
var provider = _ref3.provider,
|
|
21494
|
+
clickDirection = _ref3.clickDirection,
|
|
21495
|
+
inputs = _ref3.inputs;
|
|
21496
|
+
|
|
21497
|
+
return _react2.default.createElement(
|
|
21498
|
+
'div',
|
|
21499
|
+
null,
|
|
21500
|
+
_react2.default.createElement('br', null),
|
|
21501
|
+
_react2.default.createElement(_reduxForm.Field, { name: 'direction', component: inputs.rfRadioGroup,
|
|
21502
|
+
label: 'Integration Direction',
|
|
21503
|
+
onClickOption: clickDirection,
|
|
21504
|
+
options: {
|
|
21505
|
+
'normal': 'Read Data from ' + provider,
|
|
21506
|
+
'reverse': 'Write Data to ' + provider
|
|
21507
|
+
}
|
|
21508
|
+
})
|
|
21509
|
+
);
|
|
21510
|
+
};
|
|
21511
|
+
|
|
21556
21512
|
exports.default = (0, _reduxForm.reduxForm)({
|
|
21557
21513
|
form: 'wizard',
|
|
21558
21514
|
destroyOnUnmount: false,
|
|
@@ -21587,11 +21543,11 @@ module.exports =
|
|
|
21587
21543
|
|
|
21588
21544
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
21589
21545
|
|
|
21590
|
-
var
|
|
21546
|
+
var _initialize = __webpack_require__(11);
|
|
21591
21547
|
|
|
21592
|
-
var
|
|
21548
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
21593
21549
|
|
|
21594
|
-
var _previewTabContent = __webpack_require__(
|
|
21550
|
+
var _previewTabContent = __webpack_require__(63);
|
|
21595
21551
|
|
|
21596
21552
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21597
21553
|
|
|
@@ -21660,7 +21616,7 @@ module.exports =
|
|
|
21660
21616
|
actions = _props2.actions;
|
|
21661
21617
|
|
|
21662
21618
|
if (!wizard.dataLoaded) {
|
|
21663
|
-
(0,
|
|
21619
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
21664
21620
|
}
|
|
21665
21621
|
}
|
|
21666
21622
|
}, {
|
|
@@ -22061,9 +22017,9 @@ module.exports =
|
|
|
22061
22017
|
|
|
22062
22018
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
22063
22019
|
|
|
22064
|
-
var
|
|
22020
|
+
var _initialize = __webpack_require__(11);
|
|
22065
22021
|
|
|
22066
|
-
var
|
|
22022
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
22067
22023
|
|
|
22068
22024
|
var _CSSTransitionGroup = __webpack_require__(27);
|
|
22069
22025
|
|
|
@@ -22114,7 +22070,7 @@ module.exports =
|
|
|
22114
22070
|
actions = _props.actions;
|
|
22115
22071
|
|
|
22116
22072
|
if (!wizard.dataLoaded) {
|
|
22117
|
-
(0,
|
|
22073
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
22118
22074
|
}
|
|
22119
22075
|
}
|
|
22120
22076
|
}, {
|
|
@@ -22286,23 +22242,23 @@ module.exports =
|
|
|
22286
22242
|
|
|
22287
22243
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
22288
22244
|
|
|
22289
|
-
var
|
|
22245
|
+
var _initialize = __webpack_require__(11);
|
|
22290
22246
|
|
|
22291
|
-
var
|
|
22247
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
22292
22248
|
|
|
22293
|
-
var _groupNav = __webpack_require__(
|
|
22249
|
+
var _groupNav = __webpack_require__(61);
|
|
22294
22250
|
|
|
22295
22251
|
var _groupNav2 = _interopRequireDefault(_groupNav);
|
|
22296
22252
|
|
|
22297
|
-
var _transformModal = __webpack_require__(
|
|
22253
|
+
var _transformModal = __webpack_require__(118);
|
|
22298
22254
|
|
|
22299
22255
|
var _transformModal2 = _interopRequireDefault(_transformModal);
|
|
22300
22256
|
|
|
22301
|
-
var _mapAccordion = __webpack_require__(
|
|
22257
|
+
var _mapAccordion = __webpack_require__(114);
|
|
22302
22258
|
|
|
22303
22259
|
var _mapAccordion2 = _interopRequireDefault(_mapAccordion);
|
|
22304
22260
|
|
|
22305
|
-
var _mapTableRows = __webpack_require__(
|
|
22261
|
+
var _mapTableRows = __webpack_require__(115);
|
|
22306
22262
|
|
|
22307
22263
|
var Rows = _interopRequireWildcard(_mapTableRows);
|
|
22308
22264
|
|
|
@@ -22354,7 +22310,7 @@ module.exports =
|
|
|
22354
22310
|
actions = _props.actions;
|
|
22355
22311
|
|
|
22356
22312
|
if (!wizard.dataLoaded) {
|
|
22357
|
-
(0,
|
|
22313
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
22358
22314
|
}
|
|
22359
22315
|
}
|
|
22360
22316
|
}, {
|
|
@@ -22573,9 +22529,9 @@ module.exports =
|
|
|
22573
22529
|
|
|
22574
22530
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
22575
22531
|
|
|
22576
|
-
var
|
|
22532
|
+
var _initialize = __webpack_require__(11);
|
|
22577
22533
|
|
|
22578
|
-
var
|
|
22534
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
22579
22535
|
|
|
22580
22536
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22581
22537
|
|
|
@@ -22605,7 +22561,7 @@ module.exports =
|
|
|
22605
22561
|
actions = _props.actions;
|
|
22606
22562
|
|
|
22607
22563
|
if (!wizard.dataLoaded) {
|
|
22608
|
-
(0,
|
|
22564
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
22609
22565
|
}
|
|
22610
22566
|
}
|
|
22611
22567
|
}, {
|
|
@@ -22910,9 +22866,9 @@ module.exports =
|
|
|
22910
22866
|
|
|
22911
22867
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
22912
22868
|
|
|
22913
|
-
var
|
|
22869
|
+
var _initialize = __webpack_require__(11);
|
|
22914
22870
|
|
|
22915
|
-
var
|
|
22871
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
22916
22872
|
|
|
22917
22873
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22918
22874
|
|
|
@@ -23003,7 +22959,7 @@ module.exports =
|
|
|
23003
22959
|
|
|
23004
22960
|
if (!wizard.dataLoaded) {
|
|
23005
22961
|
(function () {
|
|
23006
|
-
(0,
|
|
22962
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions);
|
|
23007
22963
|
var scenario = formValues['scenario'];
|
|
23008
22964
|
if (scenario && !(step.options && step.options.find(function (o) {
|
|
23009
22965
|
return o.id === scenario;
|
|
@@ -23166,23 +23122,23 @@ module.exports =
|
|
|
23166
23122
|
|
|
23167
23123
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
23168
23124
|
|
|
23169
|
-
var
|
|
23125
|
+
var _initialize = __webpack_require__(11);
|
|
23170
23126
|
|
|
23171
|
-
var
|
|
23127
|
+
var _initialize2 = _interopRequireDefault(_initialize);
|
|
23172
23128
|
|
|
23173
|
-
var _schemaAccordion = __webpack_require__(
|
|
23129
|
+
var _schemaAccordion = __webpack_require__(117);
|
|
23174
23130
|
|
|
23175
23131
|
var _schemaAccordion2 = _interopRequireDefault(_schemaAccordion);
|
|
23176
23132
|
|
|
23177
|
-
var _groupNav = __webpack_require__(
|
|
23133
|
+
var _groupNav = __webpack_require__(61);
|
|
23178
23134
|
|
|
23179
23135
|
var _groupNav2 = _interopRequireDefault(_groupNav);
|
|
23180
23136
|
|
|
23181
|
-
var _connectModal = __webpack_require__(
|
|
23137
|
+
var _connectModal = __webpack_require__(113);
|
|
23182
23138
|
|
|
23183
23139
|
var _connectModal2 = _interopRequireDefault(_connectModal);
|
|
23184
23140
|
|
|
23185
|
-
var _bundleTable = __webpack_require__(
|
|
23141
|
+
var _bundleTable = __webpack_require__(112);
|
|
23186
23142
|
|
|
23187
23143
|
var _bundleTable2 = _interopRequireDefault(_bundleTable);
|
|
23188
23144
|
|
|
@@ -23241,7 +23197,7 @@ module.exports =
|
|
|
23241
23197
|
|
|
23242
23198
|
var isReverse = formValues.direction === 'reverse';
|
|
23243
23199
|
if (!wizard.dataLoaded) {
|
|
23244
|
-
(0,
|
|
23200
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions, isReverse);
|
|
23245
23201
|
}
|
|
23246
23202
|
if (formValues['resourceGroups']) {
|
|
23247
23203
|
var resourceGroups = [].concat(_toConsumableArray(formValues['resourceGroups']));
|
|
@@ -23726,7 +23682,7 @@ module.exports =
|
|
|
23726
23682
|
|
|
23727
23683
|
var _react2 = _interopRequireDefault(_react);
|
|
23728
23684
|
|
|
23729
|
-
var _nestExpand = __webpack_require__(
|
|
23685
|
+
var _nestExpand = __webpack_require__(62);
|
|
23730
23686
|
|
|
23731
23687
|
var _nestExpand2 = _interopRequireDefault(_nestExpand);
|
|
23732
23688
|
|
|
@@ -23840,7 +23796,7 @@ module.exports =
|
|
|
23840
23796
|
|
|
23841
23797
|
var _react2 = _interopRequireDefault(_react);
|
|
23842
23798
|
|
|
23843
|
-
var _saveData2 = __webpack_require__(
|
|
23799
|
+
var _saveData2 = __webpack_require__(28);
|
|
23844
23800
|
|
|
23845
23801
|
var _saveData3 = _interopRequireDefault(_saveData2);
|
|
23846
23802
|
|
|
@@ -24274,9 +24230,9 @@ module.exports =
|
|
|
24274
24230
|
|
|
24275
24231
|
var _reduxForm = __webpack_require__(2);
|
|
24276
24232
|
|
|
24277
|
-
var _reactRedux = __webpack_require__(
|
|
24233
|
+
var _reactRedux = __webpack_require__(75);
|
|
24278
24234
|
|
|
24279
|
-
var _accountStep = __webpack_require__(
|
|
24235
|
+
var _accountStep = __webpack_require__(111);
|
|
24280
24236
|
|
|
24281
24237
|
var _accountStep2 = _interopRequireDefault(_accountStep);
|
|
24282
24238
|
|
|
@@ -24312,10 +24268,6 @@ module.exports =
|
|
|
24312
24268
|
|
|
24313
24269
|
var _nameStep2 = _interopRequireDefault(_nameStep);
|
|
24314
24270
|
|
|
24315
|
-
var _adapterStep = __webpack_require__(118);
|
|
24316
|
-
|
|
24317
|
-
var _adapterStep2 = _interopRequireDefault(_adapterStep);
|
|
24318
|
-
|
|
24319
24271
|
var _scenarioStep = __webpack_require__(127);
|
|
24320
24272
|
|
|
24321
24273
|
var _scenarioStep2 = _interopRequireDefault(_scenarioStep);
|
|
@@ -24324,7 +24276,7 @@ module.exports =
|
|
|
24324
24276
|
|
|
24325
24277
|
var _envStep2 = _interopRequireDefault(_envStep);
|
|
24326
24278
|
|
|
24327
|
-
var _saveData2 = __webpack_require__(
|
|
24279
|
+
var _saveData2 = __webpack_require__(28);
|
|
24328
24280
|
|
|
24329
24281
|
var _saveData3 = _interopRequireDefault(_saveData2);
|
|
24330
24282
|
|
|
@@ -24378,7 +24330,6 @@ module.exports =
|
|
|
24378
24330
|
map: _mapStep2.default,
|
|
24379
24331
|
preview: _previewStep2.default,
|
|
24380
24332
|
deploy: _deployStep2.default,
|
|
24381
|
-
adapter: _adapterStep2.default,
|
|
24382
24333
|
name: _nameStep2.default,
|
|
24383
24334
|
scenario: _scenarioStep2.default,
|
|
24384
24335
|
env: _envStep2.default
|
|
@@ -24620,9 +24571,9 @@ module.exports =
|
|
|
24620
24571
|
|
|
24621
24572
|
var _redux = __webpack_require__(219);
|
|
24622
24573
|
|
|
24623
|
-
var _reactRedux = __webpack_require__(
|
|
24574
|
+
var _reactRedux = __webpack_require__(75);
|
|
24624
24575
|
|
|
24625
|
-
var _wizard = __webpack_require__(
|
|
24576
|
+
var _wizard = __webpack_require__(110);
|
|
24626
24577
|
|
|
24627
24578
|
var wizardActions = _interopRequireWildcard(_wizard);
|
|
24628
24579
|
|
|
@@ -24861,11 +24812,11 @@ module.exports =
|
|
|
24861
24812
|
|
|
24862
24813
|
'use strict';
|
|
24863
24814
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
24864
|
-
var getKeys = __webpack_require__(
|
|
24815
|
+
var getKeys = __webpack_require__(34)
|
|
24865
24816
|
, gOPS = __webpack_require__(153)
|
|
24866
24817
|
, pIE = __webpack_require__(155)
|
|
24867
|
-
, toObject = __webpack_require__(
|
|
24868
|
-
, IObject = __webpack_require__(
|
|
24818
|
+
, toObject = __webpack_require__(37)
|
|
24819
|
+
, IObject = __webpack_require__(32)
|
|
24869
24820
|
, $assign = Object.assign;
|
|
24870
24821
|
|
|
24871
24822
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -24969,9 +24920,9 @@ module.exports =
|
|
|
24969
24920
|
*/
|
|
24970
24921
|
|
|
24971
24922
|
try {
|
|
24972
|
-
var index = __webpack_require__(
|
|
24923
|
+
var index = __webpack_require__(67);
|
|
24973
24924
|
} catch (err) {
|
|
24974
|
-
var index = __webpack_require__(
|
|
24925
|
+
var index = __webpack_require__(67);
|
|
24975
24926
|
}
|
|
24976
24927
|
|
|
24977
24928
|
/**
|
|
@@ -25646,7 +25597,7 @@ module.exports =
|
|
|
25646
25597
|
|
|
25647
25598
|
var _utils2 = _interopRequireDefault(_utils);
|
|
25648
25599
|
|
|
25649
|
-
var _getOffsetParent = __webpack_require__(
|
|
25600
|
+
var _getOffsetParent = __webpack_require__(68);
|
|
25650
25601
|
|
|
25651
25602
|
var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
|
|
25652
25603
|
|
|
@@ -25727,7 +25678,7 @@ module.exports =
|
|
|
25727
25678
|
|
|
25728
25679
|
var _utils2 = _interopRequireDefault(_utils);
|
|
25729
25680
|
|
|
25730
|
-
var _getOffsetParent = __webpack_require__(
|
|
25681
|
+
var _getOffsetParent = __webpack_require__(68);
|
|
25731
25682
|
|
|
25732
25683
|
var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
|
|
25733
25684
|
|
|
@@ -26061,9 +26012,9 @@ module.exports =
|
|
|
26061
26012
|
|
|
26062
26013
|
/***/ },
|
|
26063
26014
|
/* 178 */
|
|
26064
|
-
|
|
26015
|
+
57,
|
|
26065
26016
|
/* 179 */
|
|
26066
|
-
|
|
26017
|
+
57,
|
|
26067
26018
|
/* 180 */,
|
|
26068
26019
|
/* 181 */,
|
|
26069
26020
|
/* 182 */
|
|
@@ -26364,7 +26315,7 @@ module.exports =
|
|
|
26364
26315
|
|
|
26365
26316
|
var _domAlign2 = _interopRequireDefault(_domAlign);
|
|
26366
26317
|
|
|
26367
|
-
var _addEventListener = __webpack_require__(
|
|
26318
|
+
var _addEventListener = __webpack_require__(71);
|
|
26368
26319
|
|
|
26369
26320
|
var _addEventListener2 = _interopRequireDefault(_addEventListener);
|
|
26370
26321
|
|
|
@@ -26560,7 +26511,7 @@ module.exports =
|
|
|
26560
26511
|
|
|
26561
26512
|
var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
|
|
26562
26513
|
|
|
26563
|
-
var _util = __webpack_require__(
|
|
26514
|
+
var _util = __webpack_require__(69);
|
|
26564
26515
|
|
|
26565
26516
|
var _util2 = _interopRequireDefault(_util);
|
|
26566
26517
|
|
|
@@ -26898,7 +26849,7 @@ module.exports =
|
|
|
26898
26849
|
|
|
26899
26850
|
var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
|
|
26900
26851
|
|
|
26901
|
-
var _util = __webpack_require__(
|
|
26852
|
+
var _util = __webpack_require__(69);
|
|
26902
26853
|
|
|
26903
26854
|
var _util2 = _interopRequireDefault(_util);
|
|
26904
26855
|
|
|
@@ -27559,7 +27510,7 @@ module.exports =
|
|
|
27559
27510
|
value: true
|
|
27560
27511
|
});
|
|
27561
27512
|
|
|
27562
|
-
var _defineProperty2 = __webpack_require__(
|
|
27513
|
+
var _defineProperty2 = __webpack_require__(64);
|
|
27563
27514
|
|
|
27564
27515
|
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
|
|
27565
27516
|
|
|
@@ -27579,7 +27530,7 @@ module.exports =
|
|
|
27579
27530
|
|
|
27580
27531
|
var _moment2 = _interopRequireDefault(_moment);
|
|
27581
27532
|
|
|
27582
|
-
var _classnames = __webpack_require__(
|
|
27533
|
+
var _classnames = __webpack_require__(39);
|
|
27583
27534
|
|
|
27584
27535
|
var _classnames2 = _interopRequireDefault(_classnames);
|
|
27585
27536
|
|
|
@@ -27753,7 +27704,7 @@ module.exports =
|
|
|
27753
27704
|
value: true
|
|
27754
27705
|
});
|
|
27755
27706
|
|
|
27756
|
-
var _defineProperty2 = __webpack_require__(
|
|
27707
|
+
var _defineProperty2 = __webpack_require__(64);
|
|
27757
27708
|
|
|
27758
27709
|
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
|
|
27759
27710
|
|
|
@@ -27765,7 +27716,7 @@ module.exports =
|
|
|
27765
27716
|
|
|
27766
27717
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
27767
27718
|
|
|
27768
|
-
var _classnames3 = __webpack_require__(
|
|
27719
|
+
var _classnames3 = __webpack_require__(39);
|
|
27769
27720
|
|
|
27770
27721
|
var _classnames4 = _interopRequireDefault(_classnames3);
|
|
27771
27722
|
|
|
@@ -28282,7 +28233,7 @@ module.exports =
|
|
|
28282
28233
|
value: true
|
|
28283
28234
|
});
|
|
28284
28235
|
|
|
28285
|
-
var _extends2 = __webpack_require__(
|
|
28236
|
+
var _extends2 = __webpack_require__(46);
|
|
28286
28237
|
|
|
28287
28238
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
28288
28239
|
|
|
@@ -28306,7 +28257,7 @@ module.exports =
|
|
|
28306
28257
|
|
|
28307
28258
|
var _PopupInner2 = _interopRequireDefault(_PopupInner);
|
|
28308
28259
|
|
|
28309
|
-
var _LazyRenderBox = __webpack_require__(
|
|
28260
|
+
var _LazyRenderBox = __webpack_require__(70);
|
|
28310
28261
|
|
|
28311
28262
|
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
|
|
28312
28263
|
|
|
@@ -28517,7 +28468,7 @@ module.exports =
|
|
|
28517
28468
|
|
|
28518
28469
|
var _react2 = _interopRequireDefault(_react);
|
|
28519
28470
|
|
|
28520
|
-
var _LazyRenderBox = __webpack_require__(
|
|
28471
|
+
var _LazyRenderBox = __webpack_require__(70);
|
|
28521
28472
|
|
|
28522
28473
|
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
|
|
28523
28474
|
|
|
@@ -28570,7 +28521,7 @@ module.exports =
|
|
|
28570
28521
|
value: true
|
|
28571
28522
|
});
|
|
28572
28523
|
|
|
28573
|
-
var _extends2 = __webpack_require__(
|
|
28524
|
+
var _extends2 = __webpack_require__(46);
|
|
28574
28525
|
|
|
28575
28526
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
28576
28527
|
|
|
@@ -28586,7 +28537,7 @@ module.exports =
|
|
|
28586
28537
|
|
|
28587
28538
|
var _contains2 = _interopRequireDefault(_contains);
|
|
28588
28539
|
|
|
28589
|
-
var _addEventListener = __webpack_require__(
|
|
28540
|
+
var _addEventListener = __webpack_require__(71);
|
|
28590
28541
|
|
|
28591
28542
|
var _addEventListener2 = _interopRequireDefault(_addEventListener);
|
|
28592
28543
|
|
|
@@ -29077,7 +29028,7 @@ module.exports =
|
|
|
29077
29028
|
value: true
|
|
29078
29029
|
});
|
|
29079
29030
|
|
|
29080
|
-
var _extends2 = __webpack_require__(
|
|
29031
|
+
var _extends2 = __webpack_require__(46);
|
|
29081
29032
|
|
|
29082
29033
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
29083
29034
|
|
|
@@ -29264,13 +29215,13 @@ module.exports =
|
|
|
29264
29215
|
|
|
29265
29216
|
var _react2 = _interopRequireDefault(_react);
|
|
29266
29217
|
|
|
29267
|
-
var _propTypes = __webpack_require__(
|
|
29218
|
+
var _propTypes = __webpack_require__(40);
|
|
29268
29219
|
|
|
29269
29220
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
29270
29221
|
|
|
29271
29222
|
var _reactDom = __webpack_require__(10);
|
|
29272
29223
|
|
|
29273
|
-
var _PropTypes = __webpack_require__(
|
|
29224
|
+
var _PropTypes = __webpack_require__(74);
|
|
29274
29225
|
|
|
29275
29226
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29276
29227
|
|
|
@@ -29488,7 +29439,7 @@ module.exports =
|
|
|
29488
29439
|
|
|
29489
29440
|
var _react2 = _interopRequireDefault(_react);
|
|
29490
29441
|
|
|
29491
|
-
var _propTypes = __webpack_require__(
|
|
29442
|
+
var _propTypes = __webpack_require__(40);
|
|
29492
29443
|
|
|
29493
29444
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
29494
29445
|
|
|
@@ -29805,7 +29756,7 @@ module.exports =
|
|
|
29805
29756
|
});
|
|
29806
29757
|
exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;
|
|
29807
29758
|
|
|
29808
|
-
var _inDOM = __webpack_require__(
|
|
29759
|
+
var _inDOM = __webpack_require__(73);
|
|
29809
29760
|
|
|
29810
29761
|
var _inDOM2 = _interopRequireDefault(_inDOM);
|
|
29811
29762
|
|
|
@@ -29919,7 +29870,7 @@ module.exports =
|
|
|
29919
29870
|
value: true
|
|
29920
29871
|
});
|
|
29921
29872
|
|
|
29922
|
-
var _inDOM = __webpack_require__(
|
|
29873
|
+
var _inDOM = __webpack_require__(73);
|
|
29923
29874
|
|
|
29924
29875
|
var _inDOM2 = _interopRequireDefault(_inDOM);
|
|
29925
29876
|
|