@feathery/react 2.16.4 → 2.17.0
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/cjs/Form/grid/Element/index.d.ts.map +1 -1
- package/cjs/Form/index.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/Actions.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/styles.d.ts +10 -4
- package/cjs/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/cjs/{fthry_FormControl.Bgh-mIjy.js → fthry_FormControl.B7CvpOy7.js} +1 -1
- package/cjs/{fthry_InlineTooltip.auFs9a5s.js → fthry_InlineTooltip.C996PUyt.js} +2 -2
- package/cjs/{fthry_Overlay.Bkd8kkoH.js → fthry_Overlay.CgsPRT93.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.CRU8I39r.js → fthry_PaymentMethodField.CgWYhzY0.js} +4 -4
- package/cjs/{fthry_Placeholder.DEgGUrBj.js → fthry_Placeholder.DU6BBGYL.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.CtzgR1jF.js → fthry_ShowEyeIcon.CUQAbCqJ.js} +1 -1
- package/cjs/{fthry_index.CRDDr01i.js → fthry_index.-VHhhPW_.js} +8 -8
- package/cjs/{fthry_index.DrcVvx6M.js → fthry_index.B28cPa0J.js} +1 -1
- package/cjs/{fthry_index.C2faZV4U.js → fthry_index.B53nunGq.js} +5 -5
- package/cjs/{fthry_index.C4sU4QL2.js → fthry_index.BBp3NBRn.js} +6 -6
- package/cjs/{fthry_index.DE8kmziv.js → fthry_index.BC2-h9F1.js} +5 -5
- package/cjs/{fthry_index.CzboYjT9.js → fthry_index.BMR_-WAJ.js} +4 -4
- package/cjs/{fthry_index.CLXUeHKN.js → fthry_index.BbQqFT3f.js} +3 -3
- package/cjs/{fthry_index.BgTQ1FlN.js → fthry_index.Bk9wFqEq.js} +182 -139
- package/cjs/{fthry_index.BkrdVXlS.js → fthry_index.C-wfIa7q.js} +1 -1
- package/cjs/{fthry_index.oWGHOOOB.js → fthry_index.CEsr4Pvr.js} +1 -1
- package/cjs/{fthry_index.R4pSt2d2.js → fthry_index.CNxXiO1i.js} +2 -2
- package/cjs/{fthry_index.DsC9aI6w.js → fthry_index.C_bb05Fz.js} +27 -20
- package/cjs/{fthry_index.CErXN5ib.js → fthry_index.Cpx2CFYi.js} +1 -1
- package/cjs/{fthry_index.CLCxPTbZ.js → fthry_index.CqPkKG2Y.js} +5 -5
- package/cjs/{fthry_index.KP0Ca3IU.js → fthry_index.Ctz5Avdg.js} +3 -3
- package/cjs/{fthry_index.Cp_TTbT2.js → fthry_index.D0lwvVp_.js} +2 -2
- package/cjs/{fthry_index.V5EVqSky.js → fthry_index.D7rouYBR.js} +1 -1
- package/cjs/{fthry_index.DSxgvkD6.js → fthry_index.DmqW1Cwt.js} +6 -6
- package/cjs/{fthry_index.CVVkGWoS.js → fthry_index.DntXErYs.js} +1 -1
- package/cjs/{fthry_index.B2qUeiLW.js → fthry_index.DpbLLXbr.js} +1 -1
- package/cjs/{fthry_index.Lkx3mO74.js → fthry_index.DzghgV-3.js} +4 -4
- package/cjs/{fthry_index.DwLX_2Pg.js → fthry_index.KpzBj2Sl.js} +6 -6
- package/cjs/{fthry_index.D58YnjUa.js → fthry_index.cWwcHKMJ.js} +4 -4
- package/cjs/{fthry_index.Blf8s7tI.js → fthry_index.yGs0zxyx.js} +5 -5
- package/cjs/{fthry_input.BdPywaVl.js → fthry_input.Dkk-sSHq.js} +1 -1
- package/cjs/{fthry_script.BvEAOIuu.js → fthry_script.3qe3Z--U.js} +1 -1
- package/cjs/{fthry_styles.BnOkS_mr.js → fthry_styles.HNGSxnCE.js} +1 -1
- package/cjs/{fthry_useElementSize._nmMVpU4.js → fthry_useElementSize.Cout_uuP.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.lNF_A1ej.js → fthry_useSalesforceSync.CdBJ8vs3.js} +1 -1
- package/cjs/{fthry_webfontloader.BZzxrDoy.js → fthry_webfontloader.zWeOTB3n.js} +1 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/utils/error.d.ts +1 -3
- package/cjs/utils/error.d.ts.map +1 -1
- package/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/cjs/utils/featheryClient/integrationClient.d.ts +2 -1
- package/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/cjs/utils/featheryClient/utils.d.ts +1 -1
- package/cjs/utils/featheryClient/utils.d.ts.map +1 -1
- package/cjs/utils/formContext.d.ts +2 -1
- package/cjs/utils/formContext.d.ts.map +1 -1
- package/cjs/utils/internalState.d.ts +12 -0
- package/cjs/utils/internalState.d.ts.map +1 -1
- package/cjs/utils/offlineRequestHandler.d.ts.map +1 -1
- package/dist/Form/grid/Element/index.d.ts.map +1 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/Actions.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/styles.d.ts +10 -4
- package/dist/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/dist/{fthry_FormControl.Wd2VCHPt.js → fthry_FormControl.D1rdOnlu.js} +1 -1
- package/dist/{fthry_InlineTooltip.D3ylgYg6.js → fthry_InlineTooltip.gBQbIrIu.js} +2 -2
- package/dist/{fthry_Overlay.Bz5x-ENK.js → fthry_Overlay.D-1VJvqs.js} +1 -1
- package/dist/{fthry_PaymentMethodField.CvChbYRg.js → fthry_PaymentMethodField.DZY5T2Y5.js} +4 -4
- package/dist/{fthry_Placeholder.DQzBt8j6.js → fthry_Placeholder.CZlLLm3-.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.C9zNt2Rx.js → fthry_ShowEyeIcon.BaIkeyhw.js} +1 -1
- package/dist/{fthry_index.DKGOaGCM.js → fthry_index.329YUECm.js} +27 -20
- package/dist/{fthry_index.34WTfq_N.js → fthry_index.B5hSXDjp.js} +3 -3
- package/dist/{fthry_index.B8xFLcFH.js → fthry_index.BIBx3DsP.js} +5 -5
- package/dist/{fthry_index.DgDP5DJn.js → fthry_index.BhYmdJQ7.js} +4 -4
- package/dist/{fthry_index.C7pfoDYO.js → fthry_index.BlOxs2cj.js} +1 -1
- package/dist/{fthry_index.DQZRjgq7.js → fthry_index.Bs9uZhYv.js} +4 -4
- package/dist/{fthry_index.BGxTz3tO.js → fthry_index.BucXAS63.js} +5 -5
- package/dist/{fthry_index.CRS1kqR5.js → fthry_index.C2HKdNYq.js} +8 -8
- package/dist/{fthry_index.BZaD9OWc.js → fthry_index.C5ahyiuy.js} +1 -1
- package/dist/{fthry_index.DR1bFoXt.js → fthry_index.C9U8rpP7.js} +6 -6
- package/dist/{fthry_index._BRuXPK7.js → fthry_index.CFIcETd0.js} +5 -5
- package/dist/{fthry_index.DQZzSsuW.js → fthry_index.CPMVt3FZ.js} +5 -5
- package/dist/{fthry_index.BOQHIUaq.js → fthry_index.CtyR2F-d.js} +182 -139
- package/dist/{fthry_index.CMkosVsI.js → fthry_index.D-Mbjgfp.js} +1 -1
- package/dist/{fthry_index.BcDHti-e.js → fthry_index.DikvLseE.js} +1 -1
- package/dist/{fthry_index.BaEZNStt.js → fthry_index.Dm2oVBjb.js} +2 -2
- package/dist/{fthry_index.DBoil0ob.js → fthry_index.FJ8ZLm8q.js} +1 -1
- package/dist/{fthry_index.jDY08d87.js → fthry_index.HLq81_n7.js} +1 -1
- package/dist/{fthry_index.CvA-hNZz.js → fthry_index.R8cyJ1bQ.js} +4 -4
- package/dist/{fthry_index.lO5BG-D1.js → fthry_index.TML9AJKv.js} +1 -1
- package/dist/{fthry_index.BGTWrYLi.js → fthry_index.UE2wYVO4.js} +2 -2
- package/dist/{fthry_index.BqbKuP58.js → fthry_index.XXtxuOIX.js} +6 -6
- package/dist/{fthry_index.trAJzW3J.js → fthry_index._TEfINIv.js} +6 -6
- package/dist/{fthry_index.qe9ZkKtP.js → fthry_index.fmqhtoTj.js} +3 -3
- package/dist/{fthry_input.IKXOLylO.js → fthry_input.Bd9Wd79a.js} +1 -1
- package/dist/{fthry_script.Bh2Y_sWv.js → fthry_script.BCQyQsFw.js} +1 -1
- package/dist/{fthry_styles.BYvg16qE.js → fthry_styles.DfpMuxOP.js} +1 -1
- package/dist/{fthry_useElementSize.CXuTu3xM.js → fthry_useElementSize.CeCCzoZ9.js} +1 -1
- package/dist/{fthry_useSalesforceSync.B56mQC8q.js → fthry_useSalesforceSync.-EXtZJLF.js} +1 -1
- package/dist/{fthry_webfontloader.DbZ32V22.js → fthry_webfontloader.DzSMFt1i.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/error.d.ts +1 -3
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/utils/featheryClient/integrationClient.d.ts +2 -1
- package/dist/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/utils/featheryClient/utils.d.ts +1 -1
- package/dist/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/utils/formContext.d.ts +2 -1
- package/dist/utils/formContext.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +12 -0
- package/dist/utils/internalState.d.ts.map +1 -1
- package/dist/utils/offlineRequestHandler.d.ts.map +1 -1
- package/package.json +2 -2
- package/umd/TableElement.8fe7915eeb32e23ba816.js +1 -0
- package/umd/index.js +1 -1
- package/umd/TableElement.36588e76b5cd28b8115b.js +0 -1
|
@@ -5819,6 +5819,30 @@ function numMatchingItems(arr1, arr2) {
|
|
|
5819
5819
|
return i;
|
|
5820
5820
|
}
|
|
5821
5821
|
|
|
5822
|
+
/*
|
|
5823
|
+
* Global state tracking if the user has interacted with the form.
|
|
5824
|
+
* We use this to block submitting fields so as to not create unnecessary
|
|
5825
|
+
* fusers.
|
|
5826
|
+
* Interaction state is global so that current and future feathery client
|
|
5827
|
+
* instances can use it.
|
|
5828
|
+
*
|
|
5829
|
+
* A custom hook on the Form component handles setting the state after
|
|
5830
|
+
* first interaction.
|
|
5831
|
+
*/
|
|
5832
|
+
var interactionDetected = false;
|
|
5833
|
+
var isInteractionDetected = function () { return interactionDetected; };
|
|
5834
|
+
var setInteractionDetected = function () {
|
|
5835
|
+
interactionDetected = true;
|
|
5836
|
+
};
|
|
5837
|
+
var FEATHERY_INTERACTION_EVENT = 'feathery:interaction';
|
|
5838
|
+
var INTERACTION_EVENT_TYPES = [
|
|
5839
|
+
'keydown',
|
|
5840
|
+
'pointerdown',
|
|
5841
|
+
// redundant events for greater browser support
|
|
5842
|
+
'mousedown',
|
|
5843
|
+
'touchstart'
|
|
5844
|
+
];
|
|
5845
|
+
|
|
5822
5846
|
var dist$2 = {};
|
|
5823
5847
|
|
|
5824
5848
|
var api$1 = {};
|
|
@@ -5833,7 +5857,7 @@ function requireError () {
|
|
|
5833
5857
|
if (hasRequiredError) return error;
|
|
5834
5858
|
hasRequiredError = 1;
|
|
5835
5859
|
Object.defineProperty(error, "__esModule", { value: true });
|
|
5836
|
-
error.ValidationError = error.FetchError = void 0;
|
|
5860
|
+
error.ValidationError = error.SDKKeyError = error.FormConflictError = error.FetchError = void 0;
|
|
5837
5861
|
error.parseAPIError = parseAPIError;
|
|
5838
5862
|
class FetchError extends Error {
|
|
5839
5863
|
constructor(message, payload = null) {
|
|
@@ -5843,6 +5867,20 @@ function requireError () {
|
|
|
5843
5867
|
}
|
|
5844
5868
|
}
|
|
5845
5869
|
error.FetchError = FetchError;
|
|
5870
|
+
class FormConflictError extends Error {
|
|
5871
|
+
constructor(message = 'Invalid Form Version') {
|
|
5872
|
+
super(message);
|
|
5873
|
+
this.name = 'FormConflictError';
|
|
5874
|
+
}
|
|
5875
|
+
}
|
|
5876
|
+
error.FormConflictError = FormConflictError;
|
|
5877
|
+
class SDKKeyError extends Error {
|
|
5878
|
+
constructor(message = 'Invalid SDK Key') {
|
|
5879
|
+
super(message);
|
|
5880
|
+
this.name = 'SDKKeyError';
|
|
5881
|
+
}
|
|
5882
|
+
}
|
|
5883
|
+
error.SDKKeyError = SDKKeyError;
|
|
5846
5884
|
class ValidationError extends Error {
|
|
5847
5885
|
constructor(message) {
|
|
5848
5886
|
super(message);
|
|
@@ -5986,8 +6024,12 @@ function requireUtils () {
|
|
|
5986
6024
|
case 400:
|
|
5987
6025
|
payload = JSON.stringify(await response.clone().text());
|
|
5988
6026
|
throw new error_1.FetchError(payload.toString());
|
|
6027
|
+
case 401:
|
|
6028
|
+
throw new error_1.SDKKeyError();
|
|
5989
6029
|
case 404:
|
|
5990
6030
|
throw new error_1.FetchError("Can't find object");
|
|
6031
|
+
case 409:
|
|
6032
|
+
throw new error_1.FormConflictError();
|
|
5991
6033
|
case 500:
|
|
5992
6034
|
throw new error_1.FetchError('Internal server error');
|
|
5993
6035
|
default:
|
|
@@ -6258,7 +6300,7 @@ function requireDist$2 () {
|
|
|
6258
6300
|
hasRequiredDist$2 = 1;
|
|
6259
6301
|
(function (exports$1) {
|
|
6260
6302
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6261
|
-
exports$1.setEnvironment = exports$1.parseAPIError = exports$1.FetchError = exports$1.getS3Url = exports$1.getCdnUrl = exports$1.getStaticUrl = exports$1.getApiUrl = exports$1.createHttpHelpers = exports$1.checkResponseSuccess = exports$1.apiFetch = exports$1.sendEmail = exports$1.pollForCompletion = exports$1.inviteFormCollaborator = exports$1.forwardInboxEmail = exports$1.extractAIDocument = exports$1.customRolloutAction = void 0;
|
|
6303
|
+
exports$1.setEnvironment = exports$1.parseAPIError = exports$1.FormConflictError = exports$1.SDKKeyError = exports$1.FetchError = exports$1.getS3Url = exports$1.getCdnUrl = exports$1.getStaticUrl = exports$1.getApiUrl = exports$1.createHttpHelpers = exports$1.checkResponseSuccess = exports$1.apiFetch = exports$1.sendEmail = exports$1.pollForCompletion = exports$1.inviteFormCollaborator = exports$1.forwardInboxEmail = exports$1.extractAIDocument = exports$1.customRolloutAction = void 0;
|
|
6262
6304
|
var api_1 = requireApi();
|
|
6263
6305
|
Object.defineProperty(exports$1, "customRolloutAction", { enumerable: true, get: function () { return api_1.customRolloutAction; } });
|
|
6264
6306
|
Object.defineProperty(exports$1, "extractAIDocument", { enumerable: true, get: function () { return api_1.extractAIDocument; } });
|
|
@@ -6276,6 +6318,8 @@ function requireDist$2 () {
|
|
|
6276
6318
|
Object.defineProperty(exports$1, "getS3Url", { enumerable: true, get: function () { return utils_1.getS3Url; } });
|
|
6277
6319
|
var error_1 = requireError();
|
|
6278
6320
|
Object.defineProperty(exports$1, "FetchError", { enumerable: true, get: function () { return error_1.FetchError; } });
|
|
6321
|
+
Object.defineProperty(exports$1, "SDKKeyError", { enumerable: true, get: function () { return error_1.SDKKeyError; } });
|
|
6322
|
+
Object.defineProperty(exports$1, "FormConflictError", { enumerable: true, get: function () { return error_1.FormConflictError; } });
|
|
6279
6323
|
Object.defineProperty(exports$1, "parseAPIError", { enumerable: true, get: function () { return error_1.parseAPIError; } });
|
|
6280
6324
|
var setup_1 = requireSetup();
|
|
6281
6325
|
Object.defineProperty(exports$1, "setEnvironment", { enumerable: true, get: function () { return setup_1.setEnvironment; } });
|
|
@@ -6285,111 +6329,17 @@ function requireDist$2 () {
|
|
|
6285
6329
|
|
|
6286
6330
|
var distExports$2 = requireDist$2();
|
|
6287
6331
|
|
|
6288
|
-
var SDKKeyError = /** @class */ (function (_super) {
|
|
6289
|
-
__extends(SDKKeyError, _super);
|
|
6290
|
-
function SDKKeyError(message) {
|
|
6291
|
-
if (message === void 0) { message = 'Invalid SDK Key'; }
|
|
6292
|
-
var _this = _super.call(this, message) || this;
|
|
6293
|
-
_this.name = 'SDKKeyError';
|
|
6294
|
-
return _this;
|
|
6295
|
-
}
|
|
6296
|
-
return SDKKeyError;
|
|
6297
|
-
}(Error));
|
|
6298
|
-
var UserIdError = /** @class */ (function (_super) {
|
|
6299
|
-
__extends(UserIdError, _super);
|
|
6300
|
-
function UserIdError() {
|
|
6301
|
-
var _this = _super.call(this, 'Invalid User ID') || this;
|
|
6302
|
-
_this.name = 'UserIdError';
|
|
6303
|
-
return _this;
|
|
6304
|
-
}
|
|
6305
|
-
return UserIdError;
|
|
6306
|
-
}(Error));
|
|
6307
|
-
var handleCustomScriptError = function (e) {
|
|
6308
|
-
var _a, _b;
|
|
6309
|
-
var errorReason = (_a = e.reason) !== null && _a !== void 0 ? _a : e.error;
|
|
6310
|
-
// If stack is at 'eval', it is a logic rule error.
|
|
6311
|
-
// Note this only works for unhandledrejection events, not error events.
|
|
6312
|
-
console.warn('Error caught in custom HTML. Error Message: ', (_b = errorReason.message) !== null && _b !== void 0 ? _b : '');
|
|
6313
|
-
e.stopPropagation();
|
|
6314
|
-
e.preventDefault(); // Prevent the error in the log
|
|
6315
|
-
};
|
|
6316
|
-
var setCustomErrorHandler = function () {
|
|
6317
|
-
featheryWindow().addEventListener('error', handleCustomScriptError);
|
|
6318
|
-
};
|
|
6319
|
-
var removeCustomErrorHandler = function () {
|
|
6320
|
-
featheryWindow().removeEventListener('error', handleCustomScriptError);
|
|
6321
|
-
};
|
|
6322
|
-
|
|
6323
6332
|
var conflictAlertShown = false;
|
|
6324
|
-
function
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
return
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
case 200: return [3 /*break*/, 1];
|
|
6333
|
-
case 201: return [3 /*break*/, 1];
|
|
6334
|
-
case 202: return [3 /*break*/, 1];
|
|
6335
|
-
case 400: return [3 /*break*/, 2];
|
|
6336
|
-
case 401: return [3 /*break*/, 4];
|
|
6337
|
-
case 404: return [3 /*break*/, 5];
|
|
6338
|
-
case 409: return [3 /*break*/, 6];
|
|
6339
|
-
case 500: return [3 /*break*/, 7];
|
|
6340
|
-
}
|
|
6341
|
-
return [3 /*break*/, 8];
|
|
6342
|
-
case 1: return [2 /*return*/];
|
|
6343
|
-
case 2:
|
|
6344
|
-
_c = (_b = JSON).stringify;
|
|
6345
|
-
return [4 /*yield*/, response.clone().text()];
|
|
6346
|
-
case 3:
|
|
6347
|
-
payload = _c.apply(_b, [_d.sent()]);
|
|
6348
|
-
console.error(payload.toString());
|
|
6349
|
-
return [2 /*return*/];
|
|
6350
|
-
case 4: throw new SDKKeyError();
|
|
6351
|
-
case 5: throw new distExports$2.FetchError("Can't find object");
|
|
6352
|
-
case 6:
|
|
6353
|
-
// prevent multiple 409s from displaying multiple alerts
|
|
6354
|
-
if (conflictAlertShown)
|
|
6355
|
-
return [2 /*return*/];
|
|
6356
|
-
conflictAlertShown = true;
|
|
6357
|
-
// Note: remove beforeunload listeners if there is a conflict
|
|
6358
|
-
untrackUnload(true);
|
|
6359
|
-
featheryWindow().alert('This form has been updated. Please fill it out again.');
|
|
6360
|
-
location.reload();
|
|
6361
|
-
return [2 /*return*/];
|
|
6362
|
-
case 7: throw new distExports$2.FetchError('Internal server error');
|
|
6363
|
-
case 8: throw new distExports$2.FetchError('Unknown error');
|
|
6364
|
-
}
|
|
6365
|
-
});
|
|
6366
|
-
});
|
|
6333
|
+
function handleFormConflict() {
|
|
6334
|
+
// Prevent multiple 409s from displaying multiple alerts
|
|
6335
|
+
if (conflictAlertShown)
|
|
6336
|
+
return;
|
|
6337
|
+
conflictAlertShown = true;
|
|
6338
|
+
untrackUnload(true);
|
|
6339
|
+
featheryWindow().alert('This form has been updated. Please fill it out again.');
|
|
6340
|
+
location.reload();
|
|
6367
6341
|
}
|
|
6368
6342
|
|
|
6369
|
-
/*
|
|
6370
|
-
* Global state tracking if the user has interacted with the form.
|
|
6371
|
-
* We use this to block submitting fields so as to not create unnecessary
|
|
6372
|
-
* fusers.
|
|
6373
|
-
* Interaction state is global so that current and future feathery client
|
|
6374
|
-
* instances can use it.
|
|
6375
|
-
*
|
|
6376
|
-
* A custom hook on the Form component handles setting the state after
|
|
6377
|
-
* first interaction.
|
|
6378
|
-
*/
|
|
6379
|
-
var interactionDetected = false;
|
|
6380
|
-
var isInteractionDetected = function () { return interactionDetected; };
|
|
6381
|
-
var setInteractionDetected = function () {
|
|
6382
|
-
interactionDetected = true;
|
|
6383
|
-
};
|
|
6384
|
-
var FEATHERY_INTERACTION_EVENT = 'feathery:interaction';
|
|
6385
|
-
var INTERACTION_EVENT_TYPES = [
|
|
6386
|
-
'keydown',
|
|
6387
|
-
'pointerdown',
|
|
6388
|
-
// redundant events for greater browser support
|
|
6389
|
-
'mousedown',
|
|
6390
|
-
'touchstart'
|
|
6391
|
-
];
|
|
6392
|
-
|
|
6393
6343
|
// Constants for the IndexedDB database
|
|
6394
6344
|
var DB_NAME = 'requestsDB';
|
|
6395
6345
|
var STORE_NAME = 'requestsStore';
|
|
@@ -6886,7 +6836,7 @@ var OfflineRequestHandler = /** @class */ (function () {
|
|
|
6886
6836
|
keepalive: keepalive
|
|
6887
6837
|
};
|
|
6888
6838
|
var attemptRequest = function () { return __awaiter$2(_this, void 0, void 0, function () {
|
|
6889
|
-
var attempts, response, nextDelay;
|
|
6839
|
+
var attempts, response, error_2, nextDelay;
|
|
6890
6840
|
var _a, _b, _c, _d, _e;
|
|
6891
6841
|
return __generator(this, function (_f) {
|
|
6892
6842
|
switch (_f.label) {
|
|
@@ -6906,7 +6856,7 @@ var OfflineRequestHandler = /** @class */ (function () {
|
|
|
6906
6856
|
return [4 /*yield*/, fetch(url, fetchOptions)];
|
|
6907
6857
|
case 3:
|
|
6908
6858
|
response = _f.sent();
|
|
6909
|
-
return [4 /*yield*/, checkResponseSuccess(response)];
|
|
6859
|
+
return [4 /*yield*/, distExports$2.checkResponseSuccess(response)];
|
|
6910
6860
|
case 4:
|
|
6911
6861
|
_f.sent();
|
|
6912
6862
|
markFileUploadRetrySuccess((_c = request.metadata) === null || _c === void 0 ? void 0 : _c.fieldKey);
|
|
@@ -6915,7 +6865,11 @@ var OfflineRequestHandler = /** @class */ (function () {
|
|
|
6915
6865
|
_f.sent();
|
|
6916
6866
|
return [2 /*return*/];
|
|
6917
6867
|
case 6:
|
|
6918
|
-
_f.sent();
|
|
6868
|
+
error_2 = _f.sent();
|
|
6869
|
+
if (error_2 instanceof distExports$2.FormConflictError) {
|
|
6870
|
+
handleFormConflict();
|
|
6871
|
+
return [2 /*return*/];
|
|
6872
|
+
}
|
|
6919
6873
|
attempts++;
|
|
6920
6874
|
return [4 /*yield*/, this.updateRetryAttempts(key, attempts)];
|
|
6921
6875
|
case 7:
|
|
@@ -7313,6 +7267,10 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7313
7267
|
var sdkKey = initInfo().sdkKey;
|
|
7314
7268
|
return distExports$2.apiFetch(sdkKey, url, options, parseResponse).catch(function (e) {
|
|
7315
7269
|
var _a;
|
|
7270
|
+
if (e instanceof distExports$2.FormConflictError) {
|
|
7271
|
+
handleFormConflict();
|
|
7272
|
+
return;
|
|
7273
|
+
}
|
|
7316
7274
|
// Ignore TypeErrors if form has redirected because `fetch` in
|
|
7317
7275
|
// Safari will error after redirect
|
|
7318
7276
|
var ignore = ((_a = _this.ignoreNetworkErrors) === null || _a === void 0 ? void 0 : _a.current) ||
|
|
@@ -7745,6 +7703,43 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7745
7703
|
});
|
|
7746
7704
|
}); });
|
|
7747
7705
|
};
|
|
7706
|
+
IntegrationClient.prototype.sendDocusignEnvelope = function (_a) {
|
|
7707
|
+
var _this = this;
|
|
7708
|
+
var documents = _a.documents, fillData = _a.fillData, emailSubject = _a.emailSubject, emailBlurb = _a.emailBlurb, signers = _a.signers;
|
|
7709
|
+
var userId = initInfo().userId;
|
|
7710
|
+
var url = "".concat(API_URL, "docusign/envelope/");
|
|
7711
|
+
var options = {
|
|
7712
|
+
headers: { 'Content-Type': 'application/json' },
|
|
7713
|
+
method: 'POST',
|
|
7714
|
+
body: JSON.stringify({
|
|
7715
|
+
fuser_key: userId,
|
|
7716
|
+
form_key: this.formKey,
|
|
7717
|
+
documents: documents,
|
|
7718
|
+
fill_data: fillData,
|
|
7719
|
+
email_subject: emailSubject,
|
|
7720
|
+
email_blurb: emailBlurb,
|
|
7721
|
+
signers: signers
|
|
7722
|
+
})
|
|
7723
|
+
};
|
|
7724
|
+
return this._fetch(url, options, false).then(function (response) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
7725
|
+
var _a, _b;
|
|
7726
|
+
return __generator(this, function (_c) {
|
|
7727
|
+
switch (_c.label) {
|
|
7728
|
+
case 0:
|
|
7729
|
+
if (!response) return [3 /*break*/, 4];
|
|
7730
|
+
if (!response.ok) return [3 /*break*/, 2];
|
|
7731
|
+
return [4 /*yield*/, response.json()];
|
|
7732
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
7733
|
+
case 2:
|
|
7734
|
+
_a = Error;
|
|
7735
|
+
_b = distExports$2.parseAPIError;
|
|
7736
|
+
return [4 /*yield*/, response.json()];
|
|
7737
|
+
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7738
|
+
case 4: return [2 /*return*/];
|
|
7739
|
+
}
|
|
7740
|
+
});
|
|
7741
|
+
}); });
|
|
7742
|
+
};
|
|
7748
7743
|
IntegrationClient.prototype.generateQuikEnvelopes = function (action) {
|
|
7749
7744
|
var _this = this;
|
|
7750
7745
|
var userId = initInfo().userId;
|
|
@@ -20592,16 +20587,21 @@ var Element$1 = function (_a) {
|
|
|
20592
20587
|
});
|
|
20593
20588
|
var debouncedOnChange_1 = useCallback(debounce(onChange_1, 500), []);
|
|
20594
20589
|
var required = isFieldActuallyRequired(el, activeStep);
|
|
20590
|
+
// Submit steps by pressing `Enter`
|
|
20595
20591
|
var onEnter = function (e) {
|
|
20596
20592
|
e.preventDefault();
|
|
20597
20593
|
e.stopPropagation();
|
|
20598
20594
|
if (!formSettings.enterToSubmit)
|
|
20599
20595
|
return;
|
|
20600
|
-
//
|
|
20601
|
-
var
|
|
20596
|
+
// { element: Element, last: Boolean, type: 'buttons' }
|
|
20597
|
+
var visibleButtons = getVisibleElements(activeStep, visiblePositions, ['buttons'], false);
|
|
20598
|
+
var enterButton = visibleButtons.find(function (_a) {
|
|
20599
|
+
var element = _a.element;
|
|
20600
|
+
return element.properties.submit;
|
|
20601
|
+
});
|
|
20602
20602
|
if (enterButton) {
|
|
20603
20603
|
// Simulate button click if available
|
|
20604
|
-
buttonOnClick(enterButton);
|
|
20604
|
+
buttonOnClick(enterButton.element);
|
|
20605
20605
|
}
|
|
20606
20606
|
};
|
|
20607
20607
|
var fieldProps = __assign(__assign({}, basicProps), { elementProps: elementProps[servar_1.key], autoComplete: formSettings.autocomplete, rightToLeft: formSettings.rightToLeft, disabled: el.properties.disabled || readOnly, onEnter: onEnter, required: required });
|
|
@@ -21467,6 +21467,31 @@ function requireClassnames () {
|
|
|
21467
21467
|
var classnamesExports = requireClassnames();
|
|
21468
21468
|
var cls = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
21469
21469
|
|
|
21470
|
+
var UserIdError = /** @class */ (function (_super) {
|
|
21471
|
+
__extends(UserIdError, _super);
|
|
21472
|
+
function UserIdError() {
|
|
21473
|
+
var _this = _super.call(this, 'Invalid User ID') || this;
|
|
21474
|
+
_this.name = 'UserIdError';
|
|
21475
|
+
return _this;
|
|
21476
|
+
}
|
|
21477
|
+
return UserIdError;
|
|
21478
|
+
}(Error));
|
|
21479
|
+
var handleCustomScriptError = function (e) {
|
|
21480
|
+
var _a, _b;
|
|
21481
|
+
var errorReason = (_a = e.reason) !== null && _a !== void 0 ? _a : e.error;
|
|
21482
|
+
// If stack is at 'eval', it is a logic rule error.
|
|
21483
|
+
// Note this only works for unhandledrejection events, not error events.
|
|
21484
|
+
console.warn('Error caught in custom HTML. Error Message: ', (_b = errorReason.message) !== null && _b !== void 0 ? _b : '');
|
|
21485
|
+
e.stopPropagation();
|
|
21486
|
+
e.preventDefault(); // Prevent the error in the log
|
|
21487
|
+
};
|
|
21488
|
+
var setCustomErrorHandler = function () {
|
|
21489
|
+
featheryWindow().addEventListener('error', handleCustomScriptError);
|
|
21490
|
+
};
|
|
21491
|
+
var removeCustomErrorHandler = function () {
|
|
21492
|
+
featheryWindow().removeEventListener('error', handleCustomScriptError);
|
|
21493
|
+
};
|
|
21494
|
+
|
|
21470
21495
|
// Allows running scripts in dangerous HTML
|
|
21471
21496
|
function DangerouslySetHtmlContent(_a) {
|
|
21472
21497
|
var _b = _a.html, html = _b === void 0 ? '' : _b, rest = __rest$1(_a, ["html"]);
|
|
@@ -22626,6 +22651,9 @@ var getFormContext = function (formUuid) {
|
|
|
22626
22651
|
forwardInboxEmail: function (options) { return formState.forwardInboxEmail(options); },
|
|
22627
22652
|
setCalendlyUrl: function (url) { return formState.setCalendlyUrl(url); },
|
|
22628
22653
|
fillQuikForms: function (params) { return formState.fillQuikForms(params); },
|
|
22654
|
+
sendDocusignEnvelope: function (params) {
|
|
22655
|
+
return formState.sendDocusignEnvelope(params);
|
|
22656
|
+
},
|
|
22629
22657
|
applyAlloyJourney: function (journeyToken, entities) {
|
|
22630
22658
|
return formState.client.alloyJourneyApplication(journeyToken, entities);
|
|
22631
22659
|
},
|
|
@@ -39636,6 +39664,19 @@ function Form(_a) {
|
|
|
39636
39664
|
setIntegrations(function (integrations) { return (__assign(__assign({}, integrations), { calendly: __assign(__assign({}, integrations === null || integrations === void 0 ? void 0 : integrations.calendly), { metadata: __assign(__assign({}, integrations === null || integrations === void 0 ? void 0 : integrations.calendly.metadata), { api_key: url }) }) })); });
|
|
39637
39665
|
}
|
|
39638
39666
|
},
|
|
39667
|
+
sendDocusignEnvelope: function (params) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
39668
|
+
return __generator(this, function (_a) {
|
|
39669
|
+
switch (_a.label) {
|
|
39670
|
+
case 0: return [4 /*yield*/, Promise.all([
|
|
39671
|
+
client.flushCustomFields(),
|
|
39672
|
+
defaultClient.flushCustomFields()
|
|
39673
|
+
])];
|
|
39674
|
+
case 1:
|
|
39675
|
+
_a.sent();
|
|
39676
|
+
return [2 /*return*/, client.sendDocusignEnvelope(params)];
|
|
39677
|
+
}
|
|
39678
|
+
});
|
|
39679
|
+
}); },
|
|
39639
39680
|
fillQuikForms: function (_a) {
|
|
39640
39681
|
var fillType = _a.fillType, docusignConnectionId = _a.docusignConnectionId, docusignCustomId = _a.docusignCustomId, enableWetSign = _a.enableWetSign;
|
|
39641
39682
|
return __awaiter$2(_this, void 0, void 0, function () {
|
|
@@ -45345,12 +45386,14 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45345
45386
|
});
|
|
45346
45387
|
};
|
|
45347
45388
|
FeatheryClient.prototype.runServerSideLogicRule = function (id) {
|
|
45348
|
-
var
|
|
45389
|
+
var _a = initInfo(), userId = _a.userId, collaboratorId = _a.collaboratorId;
|
|
45349
45390
|
var data = {
|
|
45350
45391
|
id: id,
|
|
45351
45392
|
form_key: this.formKey,
|
|
45352
45393
|
fuser_key: userId
|
|
45353
45394
|
};
|
|
45395
|
+
if (collaboratorId)
|
|
45396
|
+
data.collaborator_id = collaboratorId;
|
|
45354
45397
|
var url = "".concat(API_URL, "panel/logic-rule/execute/");
|
|
45355
45398
|
var options = {
|
|
45356
45399
|
headers: { 'Content-Type': 'application/json' },
|
|
@@ -45665,7 +45708,7 @@ function init(sdkKey, options) {
|
|
|
45665
45708
|
var _a, _b;
|
|
45666
45709
|
if (options === void 0) { options = {}; }
|
|
45667
45710
|
if (!sdkKey || typeof sdkKey !== 'string') {
|
|
45668
|
-
throw new SDKKeyError();
|
|
45711
|
+
throw new distExports$2.SDKKeyError();
|
|
45669
45712
|
}
|
|
45670
45713
|
// If client attempts to set userId but it's not yet valid, don't initialize
|
|
45671
45714
|
// until it becomes valid
|
|
@@ -45703,9 +45746,9 @@ function init(sdkKey, options) {
|
|
|
45703
45746
|
if (runningInClient()) {
|
|
45704
45747
|
// Dynamically load libraries that must be client side
|
|
45705
45748
|
global.scriptjsLoadPromise = import(
|
|
45706
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
45749
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.BCQyQsFw.js').then(function (n) { return n.s; });
|
|
45707
45750
|
global.webfontloaderPromise = import(
|
|
45708
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
45751
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.DzSMFt1i.js').then(function (n) { return n.w; });
|
|
45709
45752
|
// Client-side tracking logic
|
|
45710
45753
|
if (initState.userTracking === 'cookie') {
|
|
45711
45754
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -45745,7 +45788,7 @@ function _fetchFormData(formIds) {
|
|
|
45745
45788
|
function initInfo() {
|
|
45746
45789
|
var sdkKey = initState.sdkKey;
|
|
45747
45790
|
if (!sdkKey)
|
|
45748
|
-
throw new SDKKeyError('SDK key has not been set');
|
|
45791
|
+
throw new distExports$2.SDKKeyError('SDK key has not been set');
|
|
45749
45792
|
return initState;
|
|
45750
45793
|
}
|
|
45751
45794
|
function handleNewUserSearchParams(newUserId) {
|
|
@@ -45851,7 +45894,7 @@ function getFieldValues() {
|
|
|
45851
45894
|
return __assign({}, fieldValues);
|
|
45852
45895
|
}
|
|
45853
45896
|
function logFeatheryBadge() {
|
|
45854
|
-
console.log('%c Feathery %c v' + "2.
|
|
45897
|
+
console.log('%c Feathery %c v' + "2.17.0" + ' ', // replaced with real version during build
|
|
45855
45898
|
'background: #e2626e; color: white; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;', 'background: #fce7e9; color: #c5495a; padding: 2px 6px; border-radius: 0 3px 3px 0;');
|
|
45856
45899
|
}
|
|
45857
45900
|
|
|
@@ -47279,39 +47322,39 @@ breakpoint) {
|
|
|
47279
47322
|
return styles.getTarget('inner-container', undefined, viewport === 'mobile');
|
|
47280
47323
|
};
|
|
47281
47324
|
|
|
47282
|
-
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
47283
|
-
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
47284
|
-
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
47325
|
+
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.CFIcETd0.js'); });
|
|
47326
|
+
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.Bs9uZhYv.js'); });
|
|
47327
|
+
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.C5ahyiuy.js'); });
|
|
47285
47328
|
var CheckboxGroupField = lazy(function () {
|
|
47286
|
-
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
47329
|
+
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index._TEfINIv.js');
|
|
47287
47330
|
});
|
|
47288
|
-
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
47289
|
-
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
47331
|
+
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.BlOxs2cj.js'); });
|
|
47332
|
+
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.DikvLseE.js'); });
|
|
47290
47333
|
var DateSelectorField = lazy(function () {
|
|
47291
|
-
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
47334
|
+
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.XXtxuOIX.js');
|
|
47292
47335
|
});
|
|
47293
|
-
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
47336
|
+
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.BhYmdJQ7.js'); });
|
|
47294
47337
|
var DropdownMultiField = lazy(function () {
|
|
47295
|
-
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
47338
|
+
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.CPMVt3FZ.js');
|
|
47296
47339
|
});
|
|
47297
|
-
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
47298
|
-
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
47299
|
-
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
47340
|
+
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.TML9AJKv.js'); });
|
|
47341
|
+
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.B5hSXDjp.js'); });
|
|
47342
|
+
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.BucXAS63.js'); });
|
|
47300
47343
|
var PaymentMethodField = lazy(function () {
|
|
47301
|
-
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
47344
|
+
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.DZY5T2Y5.js');
|
|
47302
47345
|
});
|
|
47303
|
-
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
47304
|
-
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
47305
|
-
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
47346
|
+
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.BIBx3DsP.js'); });
|
|
47347
|
+
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.FJ8ZLm8q.js'); });
|
|
47348
|
+
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.UE2wYVO4.js'); });
|
|
47306
47349
|
var RadioButtonGroupField = lazy(function () {
|
|
47307
47350
|
return import(
|
|
47308
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
47351
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.C9U8rpP7.js');
|
|
47309
47352
|
});
|
|
47310
|
-
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
47311
|
-
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
47312
|
-
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
47313
|
-
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
47314
|
-
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
47353
|
+
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.D-Mbjgfp.js'); });
|
|
47354
|
+
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.fmqhtoTj.js'); });
|
|
47355
|
+
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.Dm2oVBjb.js'); });
|
|
47356
|
+
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.C2HKdNYq.js'); });
|
|
47357
|
+
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.R8cyJ1bQ.js'); });
|
|
47315
47358
|
var Fields = {
|
|
47316
47359
|
AddressLine1: AddressLine1,
|
|
47317
47360
|
ButtonGroupField: ButtonGroupField,
|
|
@@ -48251,7 +48294,7 @@ function ElementSkeleton(_a) {
|
|
|
48251
48294
|
}
|
|
48252
48295
|
var templateObject_1;
|
|
48253
48296
|
|
|
48254
|
-
var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.
|
|
48297
|
+
var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.329YUECm.js'); });
|
|
48255
48298
|
var Basic = {
|
|
48256
48299
|
ImageElement: ImageElement,
|
|
48257
48300
|
VideoElement: VideoElement,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, a as jsxs, b as __read, k as __awaiter, l as __generator, t as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, a as jsxs, b as __read, k as __awaiter, l as __generator, t as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { useRef, useState, useEffect, memo, useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.
|
|
1
|
+
import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.DfpMuxOP.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, aj as isNum } from './fthry_index.
|
|
1
|
+
import { t as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, aj as isNum } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CZlLLm3-.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.gBQbIrIu.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.D-1VJvqs.js';
|
|
10
10
|
|
|
11
11
|
function TextArea(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, _b = _a.elementProps, elementProps = _b === void 0 ? {} : _b, _c = _a.required, required = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, editMode = _a.editMode, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, _f = _a.setRef, setRef = _f === void 0 ? function () { } : _f, _g = _a.rawValue, rawValue = _g === void 0 ? '' : _g, inlineError = _a.inlineError, _h = _a.repeatIndex, repeatIndex = _h === void 0 ? null : _h, children = _a.children;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as jsxs, _ as __assign, j as jsx, b as __read, a7 as isEmptyArray, a8 as toList, a9 as useThumbnailData, e as __spreadArray, o as imgMaxSizeStyles, k as __awaiter, l as __generator, aa as downloadFile, ab as CloseIcon, i as iosScrollOnFocus, q as FORM_Z_INDEX, ac as justRemove } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, b as __read, a7 as isEmptyArray, a8 as toList, a9 as useThumbnailData, e as __spreadArray, o as imgMaxSizeStyles, k as __awaiter, l as __generator, aa as downloadFile, ab as CloseIcon, i as iosScrollOnFocus, q as FORM_Z_INDEX, ac as justRemove } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, ak as loadQRScanner, al as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, am as qrPromise } from './fthry_index.
|
|
1
|
+
import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, ak as loadQRScanner, al as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, am as qrPromise } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.DfpMuxOP.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as jsx, G as Global, v as css, w as __makeTemplateObject, _ as __assign, b as __read, x as isMobile, t as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, y as __rest, z as formatDateString } from './fthry_index.
|
|
1
|
+
import { j as jsx, G as Global, v as css, w as __makeTemplateObject, _ as __assign, b as __read, x as isMobile, t as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, y as __rest, z as formatDateString } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useMemo, useLayoutEffect, cloneElement, createRef, Component, useRef, useCallback, useEffect, createElement, memo, useState } from 'react';
|
|
4
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
+
import { P as Placeholder } from './fthry_Placeholder.CZlLLm3-.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.gBQbIrIu.js';
|
|
6
6
|
import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
|
|
7
7
|
import * as ReactDOM from 'react-dom';
|
|
8
8
|
import ReactDOM__default from 'react-dom';
|
|
9
|
-
import { I as IMask, a as IMaskInput } from './fthry_input.
|
|
9
|
+
import { I as IMask, a as IMaskInput } from './fthry_input.Bd9Wd79a.js';
|
|
10
10
|
import 'react-dom/client';
|
|
11
11
|
import 'jszip';
|
|
12
|
-
import './fthry_Overlay.
|
|
13
|
-
import './fthry_index.
|
|
12
|
+
import './fthry_Overlay.D-1VJvqs.js';
|
|
13
|
+
import './fthry_index.HLq81_n7.js';
|
|
14
14
|
|
|
15
15
|
var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
|
|
16
16
|
var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CtyR2F-d.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.D1rdOnlu.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.C5ahyiuy.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.gBQbIrIu.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.-EXtZJLF.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.D-1VJvqs.js';
|
|
12
12
|
|
|
13
13
|
var applyCheckboxGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('checkboxGroup');
|