@feathery/react 2.12.1 → 2.12.3-pr-1522.4bcc507.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/dist/Form/index.d.ts.map +1 -1
- package/dist/Form/tests/testMocks.d.ts.map +1 -1
- package/dist/cjs/Form/index.d.ts.map +1 -1
- package/dist/cjs/Form/tests/testMocks.d.ts.map +1 -1
- package/dist/cjs/{fthry_FormControl.D9BJvVaJ.js → fthry_FormControl.BkRkEOPV.js} +1 -1
- package/dist/cjs/{fthry_InlineTooltip.DR7bLXGa.js → fthry_InlineTooltip.CbVeAbj-.js} +2 -2
- package/dist/cjs/{fthry_Overlay.CrZjxgT8.js → fthry_Overlay.zp3MDZez.js} +1 -1
- package/dist/cjs/{fthry_PaymentMethodField.CJzF4Zxb.js → fthry_PaymentMethodField.CJ8dq0fW.js} +4 -4
- package/dist/cjs/{fthry_Placeholder.B8GeFQZR.js → fthry_Placeholder.BmZn9eqe.js} +1 -1
- package/dist/cjs/{fthry_ShowEyeIcon.CCfWazbl.js → fthry_ShowEyeIcon.Bm2XEOxd.js} +1 -1
- package/dist/cjs/{fthry_index.MtnDTtkS.js → fthry_index.B4YjC-C6.js} +3 -3
- package/dist/cjs/{fthry_index.Di6Ez6Jq.js → fthry_index.B9-9P9JF.js} +5 -5
- package/dist/cjs/{fthry_index.B9nSbifR.js → fthry_index.BGZ09_Df.js} +4 -4
- package/dist/cjs/{fthry_index.DIcOH_1A.js → fthry_index.BHZiDOJy.js} +4 -4
- package/dist/cjs/{fthry_index.BD4_rswQ.js → fthry_index.BMG2-fL2.js} +1 -1
- package/dist/cjs/{fthry_index.Clp_KtlX.js → fthry_index.BRcdDEP7.js} +5 -5
- package/dist/cjs/{fthry_index.D9L4f3Pj.js → fthry_index.BYMaOURT.js} +1 -1
- package/dist/cjs/{fthry_index.BTNifGA9.js → fthry_index.Bc1WOCpN.js} +2 -2
- package/dist/cjs/{fthry_index.DUPLrjMh.js → fthry_index.Bwkf_lk3.js} +5 -5
- package/dist/cjs/{fthry_index.gV8gGARz.js → fthry_index.CAuvgDuG.js} +2 -2
- package/dist/cjs/{fthry_index.BuLFQ_7f.js → fthry_index.CohzVLkQ.js} +4 -4
- package/dist/cjs/{fthry_index.BnZd5CLv.js → fthry_index.CtdngFQd.js} +500 -598
- package/dist/cjs/{fthry_index.xPqRnN8F.js → fthry_index.CzI9aLcM.js} +6 -6
- package/dist/cjs/{fthry_index.BJNpqcLP.js → fthry_index.D6MKhV5W.js} +1 -1
- package/dist/cjs/{fthry_index.DhdLVJxC.js → fthry_index.DHlxQYOY.js} +1 -1
- package/dist/cjs/{fthry_index.BIdvmzZQ.js → fthry_index.DI7QOcRZ.js} +3 -3
- package/dist/cjs/{fthry_index.CyEVBDDl.js → fthry_index.DNAP_k72.js} +8 -8
- package/dist/cjs/{fthry_index.CgHQcgU1.js → fthry_index.DRGdkWyD.js} +5 -5
- package/dist/cjs/{fthry_index.ErCS5xBc.js → fthry_index.DvJ038DD.js} +6 -6
- package/dist/cjs/{fthry_index.Da4jVIuq.js → fthry_index.E_PMR0Yl.js} +1 -1
- package/dist/cjs/{fthry_index.D672ZqZK.js → fthry_index.fleNYFAW.js} +1 -1
- package/dist/cjs/{fthry_index.DIDhcvDu.js → fthry_index.hn3nWnc7.js} +6 -6
- package/dist/cjs/{fthry_index.dDIBqxIW.js → fthry_index.sQV37Gt2.js} +1 -1
- package/dist/cjs/{fthry_input.B183IqBD.js → fthry_input.BhfAe7t1.js} +1 -1
- package/dist/cjs/{fthry_script.DIjMUL2c.js → fthry_script.iSzGaCwW.js} +1 -1
- package/dist/cjs/{fthry_styles.BYfcWStv.js → fthry_styles.CKZy9WDb.js} +1 -1
- package/dist/cjs/{fthry_useElementSize.C3ihe8zZ.js → fthry_useElementSize.CUMmUgEh.js} +1 -1
- package/dist/cjs/{fthry_useSalesforceSync.CQ0w7bSH.js → fthry_useSalesforceSync.DURMJ7-O.js} +1 -1
- package/dist/cjs/{fthry_webfontloader.B6879vMH.js → fthry_webfontloader.C04VodQo.js} +1 -1
- package/dist/cjs/index.d.ts +9 -2
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/error.d.ts +5 -0
- package/dist/cjs/utils/error.d.ts.map +1 -1
- package/dist/cjs/utils/featheryClient/index.d.ts +26 -12
- package/dist/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/cjs/utils/featheryClient/integrationClient.d.ts +8 -2
- package/dist/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/cjs/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/cjs/utils/formContext.d.ts +8 -2
- package/dist/cjs/utils/formContext.d.ts.map +1 -1
- package/dist/cjs/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/cjs/utils/internalState.d.ts +19 -1
- package/dist/cjs/utils/internalState.d.ts.map +1 -1
- package/dist/esm/Form/index.d.ts.map +1 -1
- package/dist/esm/Form/tests/testMocks.d.ts.map +1 -1
- package/dist/esm/{fthry_FormControl.l56aLUEi.js → fthry_FormControl.DDAZFoSo.js} +1 -1
- package/dist/esm/{fthry_InlineTooltip.DmQYRgve.js → fthry_InlineTooltip.DwsGjmPQ.js} +2 -2
- package/dist/esm/{fthry_Overlay.DM59j4f0.js → fthry_Overlay.DkCTSVzA.js} +1 -1
- package/dist/esm/{fthry_PaymentMethodField.fCt76s5z.js → fthry_PaymentMethodField.BgCHxykS.js} +4 -4
- package/dist/esm/{fthry_Placeholder.Dc-T2oBR.js → fthry_Placeholder.BZZOH4gv.js} +1 -1
- package/dist/esm/{fthry_ShowEyeIcon.DkApAiKk.js → fthry_ShowEyeIcon.FVKM_CUd.js} +1 -1
- package/dist/esm/{fthry_index.Da98jfKm.js → fthry_index.3ZKChQii.js} +6 -6
- package/dist/esm/{fthry_index.BJyM786w.js → fthry_index.3bbiVByG.js} +1 -1
- package/dist/esm/{fthry_index.CVgDbjY1.js → fthry_index.BvXP5j-k.js} +3 -3
- package/dist/esm/{fthry_index.DVILnI90.js → fthry_index.Bzcb4acF.js} +2 -2
- package/dist/esm/{fthry_index.CXD18e8a.js → fthry_index.C2vvoqul.js} +5 -5
- package/dist/esm/{fthry_index.DVtBoC8j.js → fthry_index.C5QJmvNS.js} +6 -6
- package/dist/esm/{fthry_index.BiqwOrNO.js → fthry_index.C7bZ41Dr.js} +4 -4
- package/dist/esm/{fthry_index.D9Qfe2pB.js → fthry_index.CLVY8zB_.js} +1 -1
- package/dist/esm/{fthry_index.D_yHzSrJ.js → fthry_index.CRMp7Yug.js} +1 -1
- package/dist/esm/{fthry_index.CMK9yPNK.js → fthry_index.Cfs1JnS1.js} +4 -4
- package/dist/esm/{fthry_index.DR6-xbaq.js → fthry_index.CgxfpBL9.js} +5 -5
- package/dist/esm/{fthry_index.Cfm44aIA.js → fthry_index.ChZdNtIX.js} +500 -598
- package/dist/esm/{fthry_index.BmrMDwxa.js → fthry_index.Cvc2tCaE.js} +1 -1
- package/dist/esm/{fthry_index.BI7Nq-2R.js → fthry_index.DE7Dh4ea.js} +8 -8
- package/dist/esm/{fthry_index.CHNf-Nku.js → fthry_index.DbQ9ZgfN.js} +6 -6
- package/dist/esm/{fthry_index.BnHL_KxW.js → fthry_index.DnA1YwIh.js} +5 -5
- package/dist/esm/{fthry_index.DjSo-4yX.js → fthry_index.DtApOSy5.js} +1 -1
- package/dist/esm/{fthry_index.oDok6-x4.js → fthry_index.IEBDVXp5.js} +5 -5
- package/dist/esm/{fthry_index.CtKbIaOM.js → fthry_index.JlaR97bs.js} +1 -1
- package/dist/esm/{fthry_index.PtKWUi2v.js → fthry_index.TccqLkT8.js} +4 -4
- package/dist/esm/{fthry_index.CMqIVjXZ.js → fthry_index.nBx09C9l.js} +3 -3
- package/dist/esm/{fthry_index.DXrdFckU.js → fthry_index.pBPbV9ty.js} +2 -2
- package/dist/esm/{fthry_index.Vhl0bnkZ.js → fthry_index.pN448hs2.js} +1 -1
- package/dist/esm/{fthry_input.CXHgLIf8.js → fthry_input.DgpAkI4d.js} +1 -1
- package/dist/esm/{fthry_script.DwMte9St.js → fthry_script.DNqAP9Nj.js} +1 -1
- package/dist/esm/{fthry_styles.C0QSjZiE.js → fthry_styles.BhmDd9Lo.js} +1 -1
- package/dist/esm/{fthry_useElementSize.D4IcFu8F.js → fthry_useElementSize.CuzKKLqH.js} +1 -1
- package/dist/esm/{fthry_useSalesforceSync.B85ooTBi.js → fthry_useSalesforceSync.D3lKBSsD.js} +1 -1
- package/dist/esm/{fthry_webfontloader.CYx_LPgy.js → fthry_webfontloader.Bo43XEHO.js} +1 -1
- package/dist/esm/index.d.ts +9 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/error.d.ts +5 -0
- package/dist/esm/utils/error.d.ts.map +1 -1
- package/dist/esm/utils/featheryClient/index.d.ts +26 -12
- package/dist/esm/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/esm/utils/featheryClient/integrationClient.d.ts +8 -2
- package/dist/esm/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/esm/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/esm/utils/formContext.d.ts +8 -2
- package/dist/esm/utils/formContext.d.ts.map +1 -1
- package/dist/esm/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/esm/utils/internalState.d.ts +19 -1
- package/dist/esm/utils/internalState.d.ts.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/utils/error.d.ts +5 -0
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts +26 -12
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/utils/featheryClient/integrationClient.d.ts +8 -2
- package/dist/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/utils/formContext.d.ts +8 -2
- package/dist/utils/formContext.d.ts.map +1 -1
- package/dist/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +19 -1
- package/dist/utils/internalState.d.ts.map +1 -1
- package/package.json +2 -3
- package/umd/{509.f9d0245d6c94d15722a0.js → 509.4236d4d76d2fa2ccd971.js} +2 -2
- package/umd/index.js +1 -1
- /package/umd/{509.f9d0245d6c94d15722a0.js.LICENSE.txt → 509.4236d4d76d2fa2ccd971.js.LICENSE.txt} +0 -0
|
@@ -5780,6 +5780,66 @@ function v4$1(options, buf, offset) {
|
|
|
5780
5780
|
return stringify$1(rnds);
|
|
5781
5781
|
}
|
|
5782
5782
|
|
|
5783
|
+
var SDKKeyError = /** @class */ (function (_super) {
|
|
5784
|
+
__extends(SDKKeyError, _super);
|
|
5785
|
+
function SDKKeyError(message) {
|
|
5786
|
+
if (message === void 0) { message = 'Invalid SDK Key'; }
|
|
5787
|
+
var _this = _super.call(this, message) || this;
|
|
5788
|
+
_this.name = 'SDKKeyError';
|
|
5789
|
+
return _this;
|
|
5790
|
+
}
|
|
5791
|
+
return SDKKeyError;
|
|
5792
|
+
}(Error));
|
|
5793
|
+
var UserIdError = /** @class */ (function (_super) {
|
|
5794
|
+
__extends(UserIdError, _super);
|
|
5795
|
+
function UserIdError() {
|
|
5796
|
+
var _this = _super.call(this, 'Invalid User ID') || this;
|
|
5797
|
+
_this.name = 'UserIdError';
|
|
5798
|
+
return _this;
|
|
5799
|
+
}
|
|
5800
|
+
return UserIdError;
|
|
5801
|
+
}(Error));
|
|
5802
|
+
var FetchError = /** @class */ (function (_super) {
|
|
5803
|
+
__extends(FetchError, _super);
|
|
5804
|
+
function FetchError(message, payload) {
|
|
5805
|
+
if (payload === void 0) { payload = null; }
|
|
5806
|
+
var _this = _super.call(this, message) || this;
|
|
5807
|
+
_this.name = 'FetchError';
|
|
5808
|
+
_this.payload = payload;
|
|
5809
|
+
return _this;
|
|
5810
|
+
}
|
|
5811
|
+
return FetchError;
|
|
5812
|
+
}(Error));
|
|
5813
|
+
function parseError(err) {
|
|
5814
|
+
if (Array.isArray(err) && err.length) {
|
|
5815
|
+
var payloadError = err[0];
|
|
5816
|
+
if (typeof payloadError === 'object' && 'message' in payloadError) {
|
|
5817
|
+
return payloadError.message;
|
|
5818
|
+
}
|
|
5819
|
+
else
|
|
5820
|
+
return 'Invalid';
|
|
5821
|
+
}
|
|
5822
|
+
else if (err.message || err.error)
|
|
5823
|
+
return err.message || err.error;
|
|
5824
|
+
else
|
|
5825
|
+
return err.toString();
|
|
5826
|
+
}
|
|
5827
|
+
var handleCustomScriptError = function (e) {
|
|
5828
|
+
var _a, _b;
|
|
5829
|
+
var errorReason = (_a = e.reason) !== null && _a !== void 0 ? _a : e.error;
|
|
5830
|
+
// If stack is at 'eval', it is a logic rule error.
|
|
5831
|
+
// Note this only works for unhandledrejection events, not error events.
|
|
5832
|
+
console.warn('Error caught in custom HTML. Error Message: ', (_b = errorReason.message) !== null && _b !== void 0 ? _b : '');
|
|
5833
|
+
e.stopPropagation();
|
|
5834
|
+
e.preventDefault(); // Prevent the error in the log
|
|
5835
|
+
};
|
|
5836
|
+
var setCustomErrorHandler = function () {
|
|
5837
|
+
featheryWindow().addEventListener('error', handleCustomScriptError);
|
|
5838
|
+
};
|
|
5839
|
+
var removeCustomErrorHandler = function () {
|
|
5840
|
+
featheryWindow().removeEventListener('error', handleCustomScriptError);
|
|
5841
|
+
};
|
|
5842
|
+
|
|
5783
5843
|
function encodeGetParams(params) {
|
|
5784
5844
|
return (Object.entries(params)
|
|
5785
5845
|
// @ts-expect-error TS(2345): Argument of type '(uriComponent: string | number |... Remove this comment to see the full error message
|
|
@@ -5840,507 +5900,6 @@ function numMatchingItems(arr1, arr2) {
|
|
|
5840
5900
|
return i;
|
|
5841
5901
|
}
|
|
5842
5902
|
|
|
5843
|
-
var dist$2 = {};
|
|
5844
|
-
|
|
5845
|
-
var api$1 = {};
|
|
5846
|
-
|
|
5847
|
-
var utils = {};
|
|
5848
|
-
|
|
5849
|
-
var error = {};
|
|
5850
|
-
|
|
5851
|
-
var hasRequiredError;
|
|
5852
|
-
|
|
5853
|
-
function requireError () {
|
|
5854
|
-
if (hasRequiredError) return error;
|
|
5855
|
-
hasRequiredError = 1;
|
|
5856
|
-
Object.defineProperty(error, "__esModule", { value: true });
|
|
5857
|
-
error.ValidationError = error.FetchError = void 0;
|
|
5858
|
-
error.parseAPIError = parseAPIError;
|
|
5859
|
-
class FetchError extends Error {
|
|
5860
|
-
constructor(message, payload = null) {
|
|
5861
|
-
super(message);
|
|
5862
|
-
this.name = 'FetchError';
|
|
5863
|
-
this.payload = payload;
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
|
-
error.FetchError = FetchError;
|
|
5867
|
-
class ValidationError extends Error {
|
|
5868
|
-
constructor(message) {
|
|
5869
|
-
super(message);
|
|
5870
|
-
this.name = 'ValidationError';
|
|
5871
|
-
}
|
|
5872
|
-
}
|
|
5873
|
-
error.ValidationError = ValidationError;
|
|
5874
|
-
function parseAPIError(err) {
|
|
5875
|
-
if (Array.isArray(err) && err.length) {
|
|
5876
|
-
const payloadError = err[0];
|
|
5877
|
-
if (typeof payloadError === 'object' && 'message' in payloadError) {
|
|
5878
|
-
return payloadError.message;
|
|
5879
|
-
}
|
|
5880
|
-
else
|
|
5881
|
-
return 'Invalid';
|
|
5882
|
-
}
|
|
5883
|
-
else if (err.message || err.error)
|
|
5884
|
-
return err.message || err.error;
|
|
5885
|
-
else
|
|
5886
|
-
return err.toString();
|
|
5887
|
-
}
|
|
5888
|
-
return error;
|
|
5889
|
-
}
|
|
5890
|
-
|
|
5891
|
-
var setup = {};
|
|
5892
|
-
|
|
5893
|
-
var hasRequiredSetup;
|
|
5894
|
-
|
|
5895
|
-
function requireSetup () {
|
|
5896
|
-
if (hasRequiredSetup) return setup;
|
|
5897
|
-
hasRequiredSetup = 1;
|
|
5898
|
-
Object.defineProperty(setup, "__esModule", { value: true });
|
|
5899
|
-
setup.S3_URL_OPTIONS = setup.CDN_URL_OPTIONS = setup.STATIC_URL_OPTIONS = setup.API_URL_OPTIONS = void 0;
|
|
5900
|
-
setup.getEnvironment = getEnvironment;
|
|
5901
|
-
setup.setEnvironment = setEnvironment;
|
|
5902
|
-
setup.API_URL_OPTIONS = {
|
|
5903
|
-
local: 'http://localhost:8006/api/',
|
|
5904
|
-
docker: 'http://host.docker.internal:8006/api/',
|
|
5905
|
-
staging: 'https://staging.feathery.io/api/',
|
|
5906
|
-
production: 'https://api.feathery.io/api/',
|
|
5907
|
-
productionAU: 'https://api-au.feathery.io/api/',
|
|
5908
|
-
productionEU: 'https://api-eu.feathery.io/api/',
|
|
5909
|
-
productionCA: 'https://api-ca.feathery.io/api/',
|
|
5910
|
-
};
|
|
5911
|
-
setup.STATIC_URL_OPTIONS = {
|
|
5912
|
-
local: 'http://localhost:8006/api/',
|
|
5913
|
-
docker: 'http://host.docker.internal:8006/api/',
|
|
5914
|
-
staging: 'https://staging.feathery.io/api/',
|
|
5915
|
-
production: 'https://api-static-2.feathery.io/api/',
|
|
5916
|
-
productionAU: 'https://api-au.feathery.io/api/',
|
|
5917
|
-
productionEU: 'https://api-eu.feathery.io/api/',
|
|
5918
|
-
productionCA: 'https://api-ca.feathery.io/api/',
|
|
5919
|
-
};
|
|
5920
|
-
setup.CDN_URL_OPTIONS = {
|
|
5921
|
-
local: 'http://localhost:8006/api/',
|
|
5922
|
-
docker: 'http://host.docker.internal:8006/api/',
|
|
5923
|
-
staging: 'https://staging.feathery.io/api/',
|
|
5924
|
-
production: 'https://cdn.feathery.io/api/',
|
|
5925
|
-
productionAU: 'https://cdn-au.feathery.io/api/',
|
|
5926
|
-
productionEU: 'https://cdn-eu.feathery.io/api/',
|
|
5927
|
-
productionCA: 'https://cdn-ca.feathery.io/api/',
|
|
5928
|
-
};
|
|
5929
|
-
setup.S3_URL_OPTIONS = {
|
|
5930
|
-
local: 'http://localhost:8006',
|
|
5931
|
-
docker: 'http://host.docker.internal:8006',
|
|
5932
|
-
staging: 's3.us-west-1.amazonaws.com',
|
|
5933
|
-
production: 's3.us-west-1.amazonaws.com',
|
|
5934
|
-
productionAU: 's3.ap-southeast-2.amazonaws.com',
|
|
5935
|
-
productionEU: 's3.eu-west-1.amazonaws.com',
|
|
5936
|
-
productionCA: 's3.ca-central-1.amazonaws.com',
|
|
5937
|
-
};
|
|
5938
|
-
let configuredEnvironment;
|
|
5939
|
-
let isClientSide = true;
|
|
5940
|
-
let internalSecretKey = null;
|
|
5941
|
-
function getEnvironment() {
|
|
5942
|
-
if (!configuredEnvironment)
|
|
5943
|
-
throw new Error('Environment not set');
|
|
5944
|
-
return { configuredEnvironment, isClientSide, internalSecretKey };
|
|
5945
|
-
}
|
|
5946
|
-
/**
|
|
5947
|
-
* Set the environment for the SDK.
|
|
5948
|
-
* @param environment - The environment to set (local, staging, production, etc.).
|
|
5949
|
-
* @param clientSide - Whether the SDK is running in the browser or server side.
|
|
5950
|
-
* @param secretKey - The secret key to use for the SDK.
|
|
5951
|
-
*/
|
|
5952
|
-
function setEnvironment(environment, clientSide = true, secretKey = null) {
|
|
5953
|
-
configuredEnvironment = environment;
|
|
5954
|
-
isClientSide = clientSide;
|
|
5955
|
-
internalSecretKey = secretKey;
|
|
5956
|
-
}
|
|
5957
|
-
return setup;
|
|
5958
|
-
}
|
|
5959
|
-
|
|
5960
|
-
var hasRequiredUtils;
|
|
5961
|
-
|
|
5962
|
-
function requireUtils () {
|
|
5963
|
-
if (hasRequiredUtils) return utils;
|
|
5964
|
-
hasRequiredUtils = 1;
|
|
5965
|
-
Object.defineProperty(utils, "__esModule", { value: true });
|
|
5966
|
-
utils.getApiUrl = getApiUrl;
|
|
5967
|
-
utils.getStaticUrl = getStaticUrl;
|
|
5968
|
-
utils.getCdnUrl = getCdnUrl;
|
|
5969
|
-
utils.getS3Url = getS3Url;
|
|
5970
|
-
utils.checkResponseSuccess = checkResponseSuccess;
|
|
5971
|
-
utils.apiFetch = apiFetch;
|
|
5972
|
-
utils.createHttpHelpers = createHttpHelpers;
|
|
5973
|
-
const api_1 = requireApi();
|
|
5974
|
-
const error_1 = requireError();
|
|
5975
|
-
const setup_1 = requireSetup();
|
|
5976
|
-
function getApiUrl() {
|
|
5977
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5978
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5979
|
-
return setup_1.API_URL_OPTIONS.docker;
|
|
5980
|
-
return setup_1.API_URL_OPTIONS[configuredEnvironment];
|
|
5981
|
-
}
|
|
5982
|
-
function getStaticUrl() {
|
|
5983
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5984
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5985
|
-
return setup_1.STATIC_URL_OPTIONS.docker;
|
|
5986
|
-
return setup_1.STATIC_URL_OPTIONS[configuredEnvironment];
|
|
5987
|
-
}
|
|
5988
|
-
function getCdnUrl() {
|
|
5989
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5990
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5991
|
-
return setup_1.CDN_URL_OPTIONS.docker;
|
|
5992
|
-
return setup_1.CDN_URL_OPTIONS[configuredEnvironment];
|
|
5993
|
-
}
|
|
5994
|
-
function getS3Url() {
|
|
5995
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5996
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5997
|
-
return setup_1.S3_URL_OPTIONS.docker;
|
|
5998
|
-
return setup_1.S3_URL_OPTIONS[configuredEnvironment];
|
|
5999
|
-
}
|
|
6000
|
-
async function checkResponseSuccess(response) {
|
|
6001
|
-
let payload;
|
|
6002
|
-
switch (response.status) {
|
|
6003
|
-
case 200:
|
|
6004
|
-
case 201:
|
|
6005
|
-
case 202:
|
|
6006
|
-
return;
|
|
6007
|
-
case 400:
|
|
6008
|
-
payload = JSON.stringify(await response.clone().text());
|
|
6009
|
-
throw new error_1.FetchError(payload.toString());
|
|
6010
|
-
case 404:
|
|
6011
|
-
throw new error_1.FetchError("Can't find object");
|
|
6012
|
-
case 500:
|
|
6013
|
-
throw new error_1.FetchError('Internal server error');
|
|
6014
|
-
default:
|
|
6015
|
-
throw new error_1.FetchError('Unknown error');
|
|
6016
|
-
}
|
|
6017
|
-
}
|
|
6018
|
-
async function apiFetch(sdkKey, url, options, parseResponse = true) {
|
|
6019
|
-
options = options ?? {};
|
|
6020
|
-
const { headers, ...otherOptions } = options;
|
|
6021
|
-
options = {
|
|
6022
|
-
cache: 'no-store',
|
|
6023
|
-
// write requests must succeed so data is tracked
|
|
6024
|
-
keepalive: ['POST', 'PATCH', 'PUT'].includes(options.method),
|
|
6025
|
-
headers: {
|
|
6026
|
-
Authorization: 'Token ' + sdkKey,
|
|
6027
|
-
...headers,
|
|
6028
|
-
},
|
|
6029
|
-
...otherOptions,
|
|
6030
|
-
};
|
|
6031
|
-
const { internalSecretKey } = (0, setup_1.getEnvironment)();
|
|
6032
|
-
if (internalSecretKey)
|
|
6033
|
-
options.headers['X-Lambda-Secret'] = internalSecretKey;
|
|
6034
|
-
return fetch(url, options).then(async (response) => {
|
|
6035
|
-
if (parseResponse)
|
|
6036
|
-
await checkResponseSuccess(response);
|
|
6037
|
-
return response;
|
|
6038
|
-
});
|
|
6039
|
-
}
|
|
6040
|
-
function createHttpHelpers(sdkKey, formId, userId, fieldValues, updateFieldData, offlineHandler) {
|
|
6041
|
-
const helpers = {};
|
|
6042
|
-
['get', 'patch', 'post', 'put', 'delete'].forEach((method) => (helpers[method] = async (url, data, headers) => {
|
|
6043
|
-
if (!url)
|
|
6044
|
-
return {};
|
|
6045
|
-
const response = await (0, api_1.runCustomRequest)(sdkKey, formId, { method: method.toUpperCase(), url, data, headers }, userId, fieldValues, offlineHandler);
|
|
6046
|
-
if (!response)
|
|
6047
|
-
return {};
|
|
6048
|
-
if (response.field_values && updateFieldData) {
|
|
6049
|
-
updateFieldData(response.field_values);
|
|
6050
|
-
}
|
|
6051
|
-
return {
|
|
6052
|
-
data: response.data,
|
|
6053
|
-
statusCode: response.status_code,
|
|
6054
|
-
// status_code for backwards compatibility
|
|
6055
|
-
status_code: response.statusCode,
|
|
6056
|
-
};
|
|
6057
|
-
}));
|
|
6058
|
-
helpers.connect = async (name, data, headers) => {
|
|
6059
|
-
if (!name)
|
|
6060
|
-
return {};
|
|
6061
|
-
const response = await (0, api_1.runCustomRequest)(sdkKey, formId, { name, data, headers }, userId, fieldValues, offlineHandler);
|
|
6062
|
-
if (!response)
|
|
6063
|
-
return {};
|
|
6064
|
-
if (response.field_values && updateFieldData) {
|
|
6065
|
-
updateFieldData(response.field_values);
|
|
6066
|
-
}
|
|
6067
|
-
return {
|
|
6068
|
-
data: response.data,
|
|
6069
|
-
statusCode: response.status_code,
|
|
6070
|
-
};
|
|
6071
|
-
};
|
|
6072
|
-
return helpers;
|
|
6073
|
-
}
|
|
6074
|
-
return utils;
|
|
6075
|
-
}
|
|
6076
|
-
|
|
6077
|
-
var hasRequiredApi;
|
|
6078
|
-
|
|
6079
|
-
function requireApi () {
|
|
6080
|
-
if (hasRequiredApi) return api$1;
|
|
6081
|
-
hasRequiredApi = 1;
|
|
6082
|
-
Object.defineProperty(api$1, "__esModule", { value: true });
|
|
6083
|
-
api$1.customRolloutAction = customRolloutAction;
|
|
6084
|
-
api$1.extractAIDocument = extractAIDocument;
|
|
6085
|
-
api$1.pollForCompletion = pollForCompletion;
|
|
6086
|
-
api$1.inviteFormCollaborator = inviteFormCollaborator;
|
|
6087
|
-
api$1.sendEmail = sendEmail;
|
|
6088
|
-
api$1.forwardInboxEmail = forwardInboxEmail;
|
|
6089
|
-
api$1.runCustomRequest = runCustomRequest;
|
|
6090
|
-
const utils_1 = requireUtils();
|
|
6091
|
-
const error_1 = requireError();
|
|
6092
|
-
async function customRolloutAction(sdkKey, automationIds, formId, fieldData, options, userId) {
|
|
6093
|
-
const url = `${(0, utils_1.getApiUrl)()}rollout/custom-trigger/`;
|
|
6094
|
-
if (typeof automationIds === 'string')
|
|
6095
|
-
automationIds = [automationIds];
|
|
6096
|
-
const reqOptions = {
|
|
6097
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6098
|
-
method: 'POST',
|
|
6099
|
-
body: JSON.stringify({
|
|
6100
|
-
automation_ids: automationIds,
|
|
6101
|
-
sync: options.waitForCompletion ?? true,
|
|
6102
|
-
multiple: options.multiple ?? false,
|
|
6103
|
-
payload: fieldData,
|
|
6104
|
-
form_key: formId,
|
|
6105
|
-
fuser_key: userId,
|
|
6106
|
-
}),
|
|
6107
|
-
};
|
|
6108
|
-
const res = await (0, utils_1.apiFetch)(sdkKey, url, reqOptions, false);
|
|
6109
|
-
if (res && res.status === 200)
|
|
6110
|
-
return { ok: true, payload: await res.json() };
|
|
6111
|
-
else
|
|
6112
|
-
return { ok: false, error: (await res?.text()) ?? '' };
|
|
6113
|
-
}
|
|
6114
|
-
async function extractAIDocument(sdkKey, extractionId, options, userId, pages, triggerExtractionRunId, collaboratorId, onMeetingInfo, onStatusUpdate) {
|
|
6115
|
-
let runAsync;
|
|
6116
|
-
let variantId;
|
|
6117
|
-
let meetingUrl;
|
|
6118
|
-
if (typeof options === 'object') {
|
|
6119
|
-
runAsync = !options.waitForCompletion;
|
|
6120
|
-
pages = options.pages;
|
|
6121
|
-
variantId = options.variantId;
|
|
6122
|
-
meetingUrl = options.meetingUrl;
|
|
6123
|
-
}
|
|
6124
|
-
else {
|
|
6125
|
-
// deprecated usage, options is runAsync
|
|
6126
|
-
runAsync = options;
|
|
6127
|
-
}
|
|
6128
|
-
const data = {
|
|
6129
|
-
fuser_key: userId,
|
|
6130
|
-
extraction_id: extractionId,
|
|
6131
|
-
extraction_variant_id: variantId,
|
|
6132
|
-
trigger_extraction_run_id: triggerExtractionRunId,
|
|
6133
|
-
pages,
|
|
6134
|
-
meeting_url: meetingUrl,
|
|
6135
|
-
collaborator_user: collaboratorId,
|
|
6136
|
-
};
|
|
6137
|
-
const res = await (0, utils_1.apiFetch)(sdkKey, `${(0, utils_1.getStaticUrl)()}ai/vision/`, {
|
|
6138
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6139
|
-
method: 'POST',
|
|
6140
|
-
body: JSON.stringify(data),
|
|
6141
|
-
});
|
|
6142
|
-
if (runAsync)
|
|
6143
|
-
return {};
|
|
6144
|
-
const response = await res?.json();
|
|
6145
|
-
if (response?.meeting_info) {
|
|
6146
|
-
onMeetingInfo?.();
|
|
6147
|
-
return {};
|
|
6148
|
-
}
|
|
6149
|
-
const pollUrl = `${(0, utils_1.getStaticUrl)()}ai/vision/completion/?fid=${userId}&eid=${extractionId}&evid=${variantId ?? ''}`;
|
|
6150
|
-
const CHECK_INTERVAL = 2000;
|
|
6151
|
-
const MAX_TIME = 3 * 60 * 1000;
|
|
6152
|
-
return await pollForCompletion(sdkKey, pollUrl, CHECK_INTERVAL, MAX_TIME, 'Extraction', onStatusUpdate);
|
|
6153
|
-
}
|
|
6154
|
-
async function pollForCompletion(sdkKey, pollUrl, checkInterval, maxTime, operationName = 'Operation', onStatusUpdate) {
|
|
6155
|
-
return new Promise((resolve) => {
|
|
6156
|
-
let attempts = 0;
|
|
6157
|
-
const maxAttempts = maxTime / checkInterval;
|
|
6158
|
-
const checkCompletion = async () => {
|
|
6159
|
-
const response = await (0, utils_1.apiFetch)(sdkKey, pollUrl, { method: 'GET' }, false);
|
|
6160
|
-
if (!response)
|
|
6161
|
-
return;
|
|
6162
|
-
const data = await response.json();
|
|
6163
|
-
if (onStatusUpdate) {
|
|
6164
|
-
onStatusUpdate(data);
|
|
6165
|
-
}
|
|
6166
|
-
if (response.ok) {
|
|
6167
|
-
if (data.status === 'complete') {
|
|
6168
|
-
return resolve(data);
|
|
6169
|
-
}
|
|
6170
|
-
else {
|
|
6171
|
-
attempts += 1;
|
|
6172
|
-
if (attempts < maxAttempts) {
|
|
6173
|
-
setTimeout(checkCompletion, checkInterval);
|
|
6174
|
-
}
|
|
6175
|
-
else {
|
|
6176
|
-
const message = `${operationName} took too long...`;
|
|
6177
|
-
console.error(message);
|
|
6178
|
-
return resolve({ status: 'error', message });
|
|
6179
|
-
}
|
|
6180
|
-
}
|
|
6181
|
-
}
|
|
6182
|
-
else {
|
|
6183
|
-
const message = (0, error_1.parseAPIError)(data);
|
|
6184
|
-
console.error(message);
|
|
6185
|
-
if (onStatusUpdate) {
|
|
6186
|
-
onStatusUpdate({ error: message });
|
|
6187
|
-
}
|
|
6188
|
-
return resolve({ status: 'error', message });
|
|
6189
|
-
}
|
|
6190
|
-
};
|
|
6191
|
-
// check every few seconds for a response
|
|
6192
|
-
setTimeout(checkCompletion, checkInterval);
|
|
6193
|
-
});
|
|
6194
|
-
}
|
|
6195
|
-
async function inviteFormCollaborator(sdkKey, formId, templateId, usersGroups, userId, collaboratorId) {
|
|
6196
|
-
const data = {
|
|
6197
|
-
form_key: formId,
|
|
6198
|
-
fuser_key: userId,
|
|
6199
|
-
users_groups: usersGroups,
|
|
6200
|
-
template_id: templateId,
|
|
6201
|
-
collaborator_user: collaboratorId,
|
|
6202
|
-
};
|
|
6203
|
-
return (0, utils_1.apiFetch)(sdkKey, `${(0, utils_1.getApiUrl)()}collaborator/invite/`, {
|
|
6204
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6205
|
-
method: 'POST',
|
|
6206
|
-
body: JSON.stringify(data),
|
|
6207
|
-
}, false).then(async (response) => {
|
|
6208
|
-
if (response) {
|
|
6209
|
-
if (response && response.status === 201)
|
|
6210
|
-
return { ok: true, payload: await response.json() };
|
|
6211
|
-
else
|
|
6212
|
-
return { ok: false, error: (await response?.text()) ?? '' };
|
|
6213
|
-
}
|
|
6214
|
-
});
|
|
6215
|
-
}
|
|
6216
|
-
async function sendEmail(sdkKey, userId, formId, templateId, skipPfd = false) {
|
|
6217
|
-
const url = `${(0, utils_1.getApiUrl)()}email/logic-rule/`;
|
|
6218
|
-
const options = {
|
|
6219
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6220
|
-
method: 'POST',
|
|
6221
|
-
body: JSON.stringify({
|
|
6222
|
-
template_id: templateId,
|
|
6223
|
-
form_key: formId,
|
|
6224
|
-
fuser_key: userId,
|
|
6225
|
-
skip_pfd: skipPfd,
|
|
6226
|
-
}),
|
|
6227
|
-
};
|
|
6228
|
-
return await (0, utils_1.apiFetch)(sdkKey, url, options, false);
|
|
6229
|
-
}
|
|
6230
|
-
async function forwardInboxEmail(sdkKey, userId, emailGroup, extractionRunId, emailMessageId, allGroups) {
|
|
6231
|
-
const recipients = allGroups?.find((group) => group.name === emailGroup)?.emails ?? [];
|
|
6232
|
-
const url = `${(0, utils_1.getApiUrl)()}email/forward/`;
|
|
6233
|
-
if (recipients.length === 0) {
|
|
6234
|
-
throw new error_1.ValidationError(`No recipients found for email group: ${emailGroup}`);
|
|
6235
|
-
}
|
|
6236
|
-
const options = {
|
|
6237
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6238
|
-
method: 'POST',
|
|
6239
|
-
body: JSON.stringify({
|
|
6240
|
-
email_message_id: emailMessageId,
|
|
6241
|
-
recipients,
|
|
6242
|
-
extraction_run_id: extractionRunId,
|
|
6243
|
-
user_id: userId,
|
|
6244
|
-
email_group: emailGroup,
|
|
6245
|
-
}),
|
|
6246
|
-
};
|
|
6247
|
-
await (0, utils_1.apiFetch)(sdkKey, url, options);
|
|
6248
|
-
}
|
|
6249
|
-
function runCustomRequest(sdkKey, formId, payload, userId, fieldValues, offlineHandler) {
|
|
6250
|
-
const data = {
|
|
6251
|
-
fuser_key: userId,
|
|
6252
|
-
form_key: formId,
|
|
6253
|
-
name: payload.name,
|
|
6254
|
-
method: payload.method,
|
|
6255
|
-
url: payload.url,
|
|
6256
|
-
user_data: payload.data,
|
|
6257
|
-
headers: payload.headers,
|
|
6258
|
-
field_values: fieldValues,
|
|
6259
|
-
};
|
|
6260
|
-
const url = `${(0, utils_1.getStaticUrl)()}custom_request/`;
|
|
6261
|
-
const options = {
|
|
6262
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6263
|
-
method: 'POST',
|
|
6264
|
-
body: JSON.stringify(data),
|
|
6265
|
-
keepalive: false,
|
|
6266
|
-
};
|
|
6267
|
-
const run = () => (0, utils_1.apiFetch)(sdkKey, url, options).then((response) => (response ? response.json() : Promise.resolve()));
|
|
6268
|
-
if (payload.method === 'GET' || !offlineHandler)
|
|
6269
|
-
return run();
|
|
6270
|
-
return offlineHandler(run, url, options, 'customRequest');
|
|
6271
|
-
}
|
|
6272
|
-
return api$1;
|
|
6273
|
-
}
|
|
6274
|
-
|
|
6275
|
-
var hasRequiredDist$2;
|
|
6276
|
-
|
|
6277
|
-
function requireDist$2 () {
|
|
6278
|
-
if (hasRequiredDist$2) return dist$2;
|
|
6279
|
-
hasRequiredDist$2 = 1;
|
|
6280
|
-
(function (exports$1) {
|
|
6281
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6282
|
-
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;
|
|
6283
|
-
var api_1 = requireApi();
|
|
6284
|
-
Object.defineProperty(exports$1, "customRolloutAction", { enumerable: true, get: function () { return api_1.customRolloutAction; } });
|
|
6285
|
-
Object.defineProperty(exports$1, "extractAIDocument", { enumerable: true, get: function () { return api_1.extractAIDocument; } });
|
|
6286
|
-
Object.defineProperty(exports$1, "forwardInboxEmail", { enumerable: true, get: function () { return api_1.forwardInboxEmail; } });
|
|
6287
|
-
Object.defineProperty(exports$1, "inviteFormCollaborator", { enumerable: true, get: function () { return api_1.inviteFormCollaborator; } });
|
|
6288
|
-
Object.defineProperty(exports$1, "pollForCompletion", { enumerable: true, get: function () { return api_1.pollForCompletion; } });
|
|
6289
|
-
Object.defineProperty(exports$1, "sendEmail", { enumerable: true, get: function () { return api_1.sendEmail; } });
|
|
6290
|
-
var utils_1 = requireUtils();
|
|
6291
|
-
Object.defineProperty(exports$1, "apiFetch", { enumerable: true, get: function () { return utils_1.apiFetch; } });
|
|
6292
|
-
Object.defineProperty(exports$1, "checkResponseSuccess", { enumerable: true, get: function () { return utils_1.checkResponseSuccess; } });
|
|
6293
|
-
Object.defineProperty(exports$1, "createHttpHelpers", { enumerable: true, get: function () { return utils_1.createHttpHelpers; } });
|
|
6294
|
-
Object.defineProperty(exports$1, "getApiUrl", { enumerable: true, get: function () { return utils_1.getApiUrl; } });
|
|
6295
|
-
Object.defineProperty(exports$1, "getStaticUrl", { enumerable: true, get: function () { return utils_1.getStaticUrl; } });
|
|
6296
|
-
Object.defineProperty(exports$1, "getCdnUrl", { enumerable: true, get: function () { return utils_1.getCdnUrl; } });
|
|
6297
|
-
Object.defineProperty(exports$1, "getS3Url", { enumerable: true, get: function () { return utils_1.getS3Url; } });
|
|
6298
|
-
var error_1 = requireError();
|
|
6299
|
-
Object.defineProperty(exports$1, "FetchError", { enumerable: true, get: function () { return error_1.FetchError; } });
|
|
6300
|
-
Object.defineProperty(exports$1, "parseAPIError", { enumerable: true, get: function () { return error_1.parseAPIError; } });
|
|
6301
|
-
var setup_1 = requireSetup();
|
|
6302
|
-
Object.defineProperty(exports$1, "setEnvironment", { enumerable: true, get: function () { return setup_1.setEnvironment; } });
|
|
6303
|
-
} (dist$2));
|
|
6304
|
-
return dist$2;
|
|
6305
|
-
}
|
|
6306
|
-
|
|
6307
|
-
var distExports$2 = requireDist$2();
|
|
6308
|
-
|
|
6309
|
-
var SDKKeyError = /** @class */ (function (_super) {
|
|
6310
|
-
__extends(SDKKeyError, _super);
|
|
6311
|
-
function SDKKeyError(message) {
|
|
6312
|
-
if (message === void 0) { message = 'Invalid SDK Key'; }
|
|
6313
|
-
var _this = _super.call(this, message) || this;
|
|
6314
|
-
_this.name = 'SDKKeyError';
|
|
6315
|
-
return _this;
|
|
6316
|
-
}
|
|
6317
|
-
return SDKKeyError;
|
|
6318
|
-
}(Error));
|
|
6319
|
-
var UserIdError = /** @class */ (function (_super) {
|
|
6320
|
-
__extends(UserIdError, _super);
|
|
6321
|
-
function UserIdError() {
|
|
6322
|
-
var _this = _super.call(this, 'Invalid User ID') || this;
|
|
6323
|
-
_this.name = 'UserIdError';
|
|
6324
|
-
return _this;
|
|
6325
|
-
}
|
|
6326
|
-
return UserIdError;
|
|
6327
|
-
}(Error));
|
|
6328
|
-
var handleCustomScriptError = function (e) {
|
|
6329
|
-
var _a, _b;
|
|
6330
|
-
var errorReason = (_a = e.reason) !== null && _a !== void 0 ? _a : e.error;
|
|
6331
|
-
// If stack is at 'eval', it is a logic rule error.
|
|
6332
|
-
// Note this only works for unhandledrejection events, not error events.
|
|
6333
|
-
console.warn('Error caught in custom HTML. Error Message: ', (_b = errorReason.message) !== null && _b !== void 0 ? _b : '');
|
|
6334
|
-
e.stopPropagation();
|
|
6335
|
-
e.preventDefault(); // Prevent the error in the log
|
|
6336
|
-
};
|
|
6337
|
-
var setCustomErrorHandler = function () {
|
|
6338
|
-
featheryWindow().addEventListener('error', handleCustomScriptError);
|
|
6339
|
-
};
|
|
6340
|
-
var removeCustomErrorHandler = function () {
|
|
6341
|
-
featheryWindow().removeEventListener('error', handleCustomScriptError);
|
|
6342
|
-
};
|
|
6343
|
-
|
|
6344
5903
|
var conflictAlertShown = false;
|
|
6345
5904
|
function checkResponseSuccess(response) {
|
|
6346
5905
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
@@ -6369,7 +5928,7 @@ function checkResponseSuccess(response) {
|
|
|
6369
5928
|
console.error(payload.toString());
|
|
6370
5929
|
return [2 /*return*/];
|
|
6371
5930
|
case 4: throw new SDKKeyError();
|
|
6372
|
-
case 5: throw new
|
|
5931
|
+
case 5: throw new FetchError("Can't find object");
|
|
6373
5932
|
case 6:
|
|
6374
5933
|
// prevent multiple 409s from displaying multiple alerts
|
|
6375
5934
|
if (conflictAlertShown)
|
|
@@ -6380,8 +5939,8 @@ function checkResponseSuccess(response) {
|
|
|
6380
5939
|
featheryWindow().alert('This form has been updated. Please fill it out again.');
|
|
6381
5940
|
location.reload();
|
|
6382
5941
|
return [2 /*return*/];
|
|
6383
|
-
case 7: throw new
|
|
6384
|
-
case 8: throw new
|
|
5942
|
+
case 7: throw new FetchError('Internal server error');
|
|
5943
|
+
case 8: throw new FetchError('Unknown error');
|
|
6385
5944
|
}
|
|
6386
5945
|
});
|
|
6387
5946
|
});
|
|
@@ -7332,7 +6891,26 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7332
6891
|
if (parseResponse === void 0) { parseResponse = true; }
|
|
7333
6892
|
if (propagateNetworkErrors === void 0) { propagateNetworkErrors = false; }
|
|
7334
6893
|
var sdkKey = initInfo().sdkKey;
|
|
7335
|
-
|
|
6894
|
+
options = options !== null && options !== void 0 ? options : {};
|
|
6895
|
+
var headers = options.headers, otherOptions = __rest$1(options, ["headers"]);
|
|
6896
|
+
options = exports.__assign({ cache: 'no-store',
|
|
6897
|
+
// Write requests must succeed so data is tracked
|
|
6898
|
+
keepalive: ['POST', 'PATCH', 'PUT'].includes(options.method), headers: exports.__assign({ Authorization: 'Token ' + sdkKey }, headers) }, otherOptions);
|
|
6899
|
+
return fetch(url, options)
|
|
6900
|
+
.then(function (response) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
6901
|
+
return __generator(this, function (_a) {
|
|
6902
|
+
switch (_a.label) {
|
|
6903
|
+
case 0:
|
|
6904
|
+
if (!parseResponse) return [3 /*break*/, 2];
|
|
6905
|
+
return [4 /*yield*/, checkResponseSuccess(response)];
|
|
6906
|
+
case 1:
|
|
6907
|
+
_a.sent();
|
|
6908
|
+
_a.label = 2;
|
|
6909
|
+
case 2: return [2 /*return*/, response];
|
|
6910
|
+
}
|
|
6911
|
+
});
|
|
6912
|
+
}); })
|
|
6913
|
+
.catch(function (e) {
|
|
7336
6914
|
var _a;
|
|
7337
6915
|
// Ignore TypeErrors if form has redirected because `fetch` in
|
|
7338
6916
|
// Safari will error after redirect
|
|
@@ -7363,7 +6941,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7363
6941
|
payload = _a.sent();
|
|
7364
6942
|
if ((res === null || res === void 0 ? void 0 : res.status) === 200)
|
|
7365
6943
|
return [2 /*return*/, { token: payload.link_token }];
|
|
7366
|
-
return [2 /*return*/, { err:
|
|
6944
|
+
return [2 /*return*/, { err: parseError(payload) || 'Ran into an error' }];
|
|
7367
6945
|
}
|
|
7368
6946
|
});
|
|
7369
6947
|
});
|
|
@@ -7637,7 +7215,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7637
7215
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7638
7216
|
case 2:
|
|
7639
7217
|
_a = Error;
|
|
7640
|
-
_b =
|
|
7218
|
+
_b = parseError;
|
|
7641
7219
|
return [4 /*yield*/, response.json()];
|
|
7642
7220
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7643
7221
|
case 4: return [2 /*return*/];
|
|
@@ -7676,7 +7254,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7676
7254
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7677
7255
|
case 2:
|
|
7678
7256
|
_a = Error;
|
|
7679
|
-
_b =
|
|
7257
|
+
_b = parseError;
|
|
7680
7258
|
return [4 /*yield*/, response.json()];
|
|
7681
7259
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7682
7260
|
case 4: return [2 /*return*/];
|
|
@@ -7714,7 +7292,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7714
7292
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7715
7293
|
case 2:
|
|
7716
7294
|
_a = Error;
|
|
7717
|
-
_b =
|
|
7295
|
+
_b = parseError;
|
|
7718
7296
|
return [4 /*yield*/, response.json()];
|
|
7719
7297
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7720
7298
|
case 4: return [2 /*return*/];
|
|
@@ -7724,10 +7302,66 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7724
7302
|
});
|
|
7725
7303
|
});
|
|
7726
7304
|
};
|
|
7305
|
+
IntegrationClient.prototype.pollForCompletion = function (_a) {
|
|
7306
|
+
var pollUrl = _a.pollUrl, checkInterval = _a.checkInterval, maxTime = _a.maxTime, onStatusUpdate = _a.onStatusUpdate, _b = _a.operationName, operationName = _b === void 0 ? 'Operation' : _b;
|
|
7307
|
+
return __awaiter$2(this, void 0, void 0, function () {
|
|
7308
|
+
var _this = this;
|
|
7309
|
+
return __generator(this, function (_c) {
|
|
7310
|
+
return [2 /*return*/, new Promise(function (resolve) {
|
|
7311
|
+
var attempts = 0;
|
|
7312
|
+
var maxAttempts = maxTime / checkInterval;
|
|
7313
|
+
var checkCompletion = function () { return __awaiter$2(_this, void 0, void 0, function () {
|
|
7314
|
+
var response, data, message, message;
|
|
7315
|
+
return __generator(this, function (_a) {
|
|
7316
|
+
switch (_a.label) {
|
|
7317
|
+
case 0: return [4 /*yield*/, this._fetch(pollUrl, {}, false)];
|
|
7318
|
+
case 1:
|
|
7319
|
+
response = _a.sent();
|
|
7320
|
+
if (!response)
|
|
7321
|
+
return [2 /*return*/];
|
|
7322
|
+
return [4 /*yield*/, response.json()];
|
|
7323
|
+
case 2:
|
|
7324
|
+
data = _a.sent();
|
|
7325
|
+
if (onStatusUpdate) {
|
|
7326
|
+
onStatusUpdate(data);
|
|
7327
|
+
}
|
|
7328
|
+
if (response.ok) {
|
|
7329
|
+
if (data.status === 'complete') {
|
|
7330
|
+
return [2 /*return*/, resolve(data)];
|
|
7331
|
+
}
|
|
7332
|
+
else {
|
|
7333
|
+
attempts += 1;
|
|
7334
|
+
if (attempts < maxAttempts) {
|
|
7335
|
+
setTimeout(checkCompletion, checkInterval);
|
|
7336
|
+
}
|
|
7337
|
+
else {
|
|
7338
|
+
message = "".concat(operationName, " took too long...");
|
|
7339
|
+
console.error(message);
|
|
7340
|
+
return [2 /*return*/, resolve({ status: 'error', message: message })];
|
|
7341
|
+
}
|
|
7342
|
+
}
|
|
7343
|
+
}
|
|
7344
|
+
else {
|
|
7345
|
+
message = parseError(data);
|
|
7346
|
+
console.error(message);
|
|
7347
|
+
if (onStatusUpdate) {
|
|
7348
|
+
onStatusUpdate({ error: message });
|
|
7349
|
+
}
|
|
7350
|
+
return [2 /*return*/, resolve({ status: 'error', message: message })];
|
|
7351
|
+
}
|
|
7352
|
+
return [2 /*return*/];
|
|
7353
|
+
}
|
|
7354
|
+
});
|
|
7355
|
+
}); };
|
|
7356
|
+
setTimeout(checkCompletion, checkInterval);
|
|
7357
|
+
})];
|
|
7358
|
+
});
|
|
7359
|
+
});
|
|
7360
|
+
};
|
|
7727
7361
|
IntegrationClient.prototype.generateEnvelopes = function (action) {
|
|
7728
7362
|
var _this = this;
|
|
7729
7363
|
var _a, _b, _c;
|
|
7730
|
-
var
|
|
7364
|
+
var userId = initInfo().userId;
|
|
7731
7365
|
var signer = exports.fieldValues[action.envelope_signer_field_key];
|
|
7732
7366
|
var runAsync = (_a = action.run_async) !== null && _a !== void 0 ? _a : true;
|
|
7733
7367
|
var documents = (_b = action.documents) !== null && _b !== void 0 ? _b : [];
|
|
@@ -7758,9 +7392,14 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7758
7392
|
if (!runAsync || data.files)
|
|
7759
7393
|
return [2 /*return*/, data];
|
|
7760
7394
|
pollUrl = "".concat(API_URL, "document/form/generate/poll/?fid=").concat(userId, "&dids=").concat(documents);
|
|
7761
|
-
return [4 /*yield*/,
|
|
7395
|
+
return [4 /*yield*/, this.pollForCompletion({
|
|
7396
|
+
pollUrl: pollUrl,
|
|
7397
|
+
checkInterval: this.ENVELOPE_CHECK_INTERVAL,
|
|
7398
|
+
maxTime: this.ENVELOPE_MAX_TIME,
|
|
7399
|
+
operationName: 'Envelope generation'
|
|
7400
|
+
})];
|
|
7762
7401
|
case 2: return [2 /*return*/, _a.sent()];
|
|
7763
|
-
case 3: throw Error(
|
|
7402
|
+
case 3: throw Error(parseError(data));
|
|
7764
7403
|
case 4: return [2 /*return*/];
|
|
7765
7404
|
}
|
|
7766
7405
|
});
|
|
@@ -7804,7 +7443,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7804
7443
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7805
7444
|
case 2:
|
|
7806
7445
|
_a = Error;
|
|
7807
|
-
_b =
|
|
7446
|
+
_b = parseError;
|
|
7808
7447
|
return [4 /*yield*/, response.json()];
|
|
7809
7448
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7810
7449
|
case 4: return [2 /*return*/];
|
|
@@ -7826,7 +7465,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7826
7465
|
if (!((response === null || response === void 0 ? void 0 : response.status) === 400)) return [3 /*break*/, 3];
|
|
7827
7466
|
_a = resolve;
|
|
7828
7467
|
_c = {};
|
|
7829
|
-
_b =
|
|
7468
|
+
_b = parseError;
|
|
7830
7469
|
return [4 /*yield*/, response.json()];
|
|
7831
7470
|
case 2: return [2 /*return*/, _a.apply(void 0, [(_c.error = _b.apply(void 0, [_d.sent()]), _c)])];
|
|
7832
7471
|
case 3:
|
|
@@ -7908,7 +7547,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7908
7547
|
return [4 /*yield*/, response.json()];
|
|
7909
7548
|
case 2:
|
|
7910
7549
|
errorData = _a.sent();
|
|
7911
|
-
return [2 /*return*/, resolve({ error:
|
|
7550
|
+
return [2 /*return*/, resolve({ error: parseError(errorData) })];
|
|
7912
7551
|
case 3:
|
|
7913
7552
|
if (!((response === null || response === void 0 ? void 0 : response.status) === 200)) return [3 /*break*/, 5];
|
|
7914
7553
|
return [4 /*yield*/, response.json()];
|
|
@@ -8003,7 +7642,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8003
7642
|
return [2 /*return*/, finalStatus];
|
|
8004
7643
|
case 6:
|
|
8005
7644
|
_b = Error;
|
|
8006
|
-
_c =
|
|
7645
|
+
_c = parseError;
|
|
8007
7646
|
return [4 /*yield*/, finalResponse.json()];
|
|
8008
7647
|
case 7: throw _b.apply(void 0, [_c.apply(void 0, [_d.sent()])]);
|
|
8009
7648
|
case 8: return [2 /*return*/, false];
|
|
@@ -8092,7 +7731,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8092
7731
|
return [2 /*return*/, otpStatus];
|
|
8093
7732
|
case 3:
|
|
8094
7733
|
_a = Error;
|
|
8095
|
-
_b =
|
|
7734
|
+
_b = parseError;
|
|
8096
7735
|
return [4 /*yield*/, response.json()];
|
|
8097
7736
|
case 4: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
8098
7737
|
case 5: return [2 /*return*/];
|
|
@@ -8102,14 +7741,24 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8102
7741
|
};
|
|
8103
7742
|
IntegrationClient.prototype.sendEmail = function (templateId) {
|
|
8104
7743
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
8105
|
-
var
|
|
8106
|
-
return __generator(this, function (
|
|
8107
|
-
switch (
|
|
7744
|
+
var userId, url, options;
|
|
7745
|
+
return __generator(this, function (_a) {
|
|
7746
|
+
switch (_a.label) {
|
|
8108
7747
|
case 0:
|
|
8109
|
-
|
|
8110
|
-
|
|
7748
|
+
userId = initInfo().userId;
|
|
7749
|
+
url = "".concat(API_URL, "email/logic-rule/");
|
|
7750
|
+
options = {
|
|
7751
|
+
headers: { 'Content-Type': 'application/json' },
|
|
7752
|
+
method: 'POST',
|
|
7753
|
+
body: JSON.stringify({
|
|
7754
|
+
template_id: templateId,
|
|
7755
|
+
form_key: this.formKey,
|
|
7756
|
+
fuser_key: userId
|
|
7757
|
+
})
|
|
7758
|
+
};
|
|
7759
|
+
return [4 /*yield*/, this._fetch(url, options, false)];
|
|
8111
7760
|
case 1:
|
|
8112
|
-
|
|
7761
|
+
_a.sent();
|
|
8113
7762
|
return [2 /*return*/];
|
|
8114
7763
|
}
|
|
8115
7764
|
});
|
|
@@ -8251,16 +7900,43 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8251
7900
|
});
|
|
8252
7901
|
};
|
|
8253
7902
|
IntegrationClient.prototype.customRolloutAction = function (automationIds, options) {
|
|
7903
|
+
var _a, _b, _c;
|
|
8254
7904
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
8255
|
-
var
|
|
8256
|
-
|
|
8257
|
-
|
|
7905
|
+
var userId, url, reqOptions, res;
|
|
7906
|
+
var _d, _e;
|
|
7907
|
+
return __generator(this, function (_f) {
|
|
7908
|
+
switch (_f.label) {
|
|
8258
7909
|
case 0:
|
|
8259
|
-
|
|
7910
|
+
userId = initInfo().userId;
|
|
7911
|
+
url = "".concat(API_URL, "rollout/custom-trigger/");
|
|
7912
|
+
if (typeof automationIds === 'string')
|
|
7913
|
+
automationIds = [automationIds];
|
|
7914
|
+
reqOptions = {
|
|
7915
|
+
headers: { 'Content-Type': 'application/json' },
|
|
7916
|
+
method: 'POST',
|
|
7917
|
+
body: JSON.stringify({
|
|
7918
|
+
automation_ids: automationIds,
|
|
7919
|
+
sync: (_a = options.waitForCompletion) !== null && _a !== void 0 ? _a : true,
|
|
7920
|
+
multiple: (_b = options.multiple) !== null && _b !== void 0 ? _b : false,
|
|
7921
|
+
payload: exports.fieldValues,
|
|
7922
|
+
form_key: this.formKey,
|
|
7923
|
+
fuser_key: userId
|
|
7924
|
+
})
|
|
7925
|
+
};
|
|
8260
7926
|
return [4 /*yield*/, this.submitQueue];
|
|
8261
7927
|
case 1:
|
|
8262
|
-
|
|
8263
|
-
return [
|
|
7928
|
+
_f.sent();
|
|
7929
|
+
return [4 /*yield*/, this._fetch(url, reqOptions, false)];
|
|
7930
|
+
case 2:
|
|
7931
|
+
res = _f.sent();
|
|
7932
|
+
if (!(res && res.status === 200)) return [3 /*break*/, 4];
|
|
7933
|
+
_d = { ok: true };
|
|
7934
|
+
return [4 /*yield*/, res.json()];
|
|
7935
|
+
case 3: return [2 /*return*/, (_d.payload = _f.sent(), _d)];
|
|
7936
|
+
case 4:
|
|
7937
|
+
_e = { ok: false };
|
|
7938
|
+
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.text())];
|
|
7939
|
+
case 5: return [2 /*return*/, (_e.error = (_c = (_f.sent())) !== null && _c !== void 0 ? _c : '', _e)];
|
|
8264
7940
|
}
|
|
8265
7941
|
});
|
|
8266
7942
|
});
|
|
@@ -22618,6 +22294,9 @@ var getFormContext = function (formUuid) {
|
|
|
22618
22294
|
return [2 /*return*/, formState.runAIExtraction(extractionId, options, pages)];
|
|
22619
22295
|
}); });
|
|
22620
22296
|
},
|
|
22297
|
+
forwardInboxEmail: function (options) {
|
|
22298
|
+
return formState.forwardInboxEmail(options);
|
|
22299
|
+
},
|
|
22621
22300
|
setCalendlyUrl: function (url) { return formState.setCalendlyUrl(url); },
|
|
22622
22301
|
applyAlloyJourney: function (journeyToken, entities) {
|
|
22623
22302
|
return formState.client.alloyJourneyApplication(journeyToken, entities);
|
|
@@ -37988,6 +37667,11 @@ function Form(_a) {
|
|
|
37988
37667
|
return [2 /*return*/, data];
|
|
37989
37668
|
}
|
|
37990
37669
|
});
|
|
37670
|
+
}); },
|
|
37671
|
+
forwardInboxEmail: function (options) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
37672
|
+
return __generator(this, function (_a) {
|
|
37673
|
+
return [2 /*return*/, client.forwardInboxEmail({ options: options })];
|
|
37674
|
+
});
|
|
37991
37675
|
}); }
|
|
37992
37676
|
},
|
|
37993
37677
|
// Avoid all these other obj props going through Object.assign which is not necessary.
|
|
@@ -42599,28 +42283,66 @@ function loadQRScanner() {
|
|
|
42599
42283
|
exports.qrPromise = dynamicImport(QR_SCANNER_LIB_URL);
|
|
42600
42284
|
}
|
|
42601
42285
|
|
|
42602
|
-
|
|
42286
|
+
var API_URL_OPTIONS = {
|
|
42287
|
+
local: 'http://localhost:8006/api/',
|
|
42288
|
+
staging: 'https://staging.feathery.io/api/',
|
|
42289
|
+
production: 'https://api.feathery.io/api/',
|
|
42290
|
+
productionAU: 'https://api-au.feathery.io/api/',
|
|
42291
|
+
productionEU: 'https://api-eu.feathery.io/api/',
|
|
42292
|
+
productionCA: 'https://api-ca.feathery.io/api/'
|
|
42293
|
+
};
|
|
42294
|
+
var CDN_URL_OPTIONS = {
|
|
42295
|
+
local: 'http://localhost:8006/api/',
|
|
42296
|
+
staging: 'https://staging.feathery.io/api/',
|
|
42297
|
+
production: 'https://cdn.feathery.io/api/',
|
|
42298
|
+
productionAU: 'https://cdn-au.feathery.io/api/',
|
|
42299
|
+
productionEU: 'https://cdn-eu.feathery.io/api/',
|
|
42300
|
+
productionCA: 'https://cdn-ca.feathery.io/api/'
|
|
42301
|
+
};
|
|
42302
|
+
var STATIC_URL_OPTIONS = {
|
|
42303
|
+
local: 'http://localhost:8006/api/',
|
|
42304
|
+
staging: 'https://staging.feathery.io/api/',
|
|
42305
|
+
production: 'https://api-static-2.feathery.io/api/',
|
|
42306
|
+
productionAU: 'https://api-au.feathery.io/api/',
|
|
42307
|
+
productionEU: 'https://api-eu.feathery.io/api/',
|
|
42308
|
+
productionCA: 'https://api-ca.feathery.io/api/'
|
|
42309
|
+
};
|
|
42310
|
+
var S3_URL_OPTIONS = {
|
|
42311
|
+
local: 'http://localhost:8006',
|
|
42312
|
+
staging: 's3.us-west-1.amazonaws.com',
|
|
42313
|
+
production: 's3.us-west-1.amazonaws.com',
|
|
42314
|
+
productionAU: 's3.ap-southeast-2.amazonaws.com',
|
|
42315
|
+
productionEU: 's3.eu-west-1.amazonaws.com',
|
|
42316
|
+
productionCA: 's3.ca-central-1.amazonaws.com'
|
|
42317
|
+
};
|
|
42318
|
+
var environment = 'production';
|
|
42603
42319
|
try {
|
|
42604
|
-
|
|
42320
|
+
environment = (process.env.BACKEND_ENV || 'production');
|
|
42605
42321
|
}
|
|
42606
42322
|
catch (e) { } // process.env won't exist in production build
|
|
42607
|
-
var API_URL =
|
|
42608
|
-
var CDN_URL =
|
|
42609
|
-
var STATIC_URL =
|
|
42610
|
-
var S3_URL =
|
|
42323
|
+
var API_URL = API_URL_OPTIONS[environment];
|
|
42324
|
+
var CDN_URL = CDN_URL_OPTIONS[environment];
|
|
42325
|
+
var STATIC_URL = STATIC_URL_OPTIONS[environment];
|
|
42326
|
+
var S3_URL = S3_URL_OPTIONS[environment];
|
|
42611
42327
|
var updateRegionApiUrls = function (region) {
|
|
42612
|
-
|
|
42613
|
-
|
|
42614
|
-
|
|
42615
|
-
|
|
42616
|
-
|
|
42617
|
-
|
|
42618
|
-
|
|
42619
|
-
|
|
42620
|
-
|
|
42621
|
-
|
|
42622
|
-
|
|
42623
|
-
|
|
42328
|
+
if (region === 'au') {
|
|
42329
|
+
CDN_URL = CDN_URL_OPTIONS.productionAU;
|
|
42330
|
+
API_URL = API_URL_OPTIONS.productionAU;
|
|
42331
|
+
STATIC_URL = STATIC_URL_OPTIONS.productionAU;
|
|
42332
|
+
S3_URL = S3_URL_OPTIONS.productionAU;
|
|
42333
|
+
}
|
|
42334
|
+
else if (region === 'eu') {
|
|
42335
|
+
CDN_URL = CDN_URL_OPTIONS.productionEU;
|
|
42336
|
+
API_URL = API_URL_OPTIONS.productionEU;
|
|
42337
|
+
STATIC_URL = STATIC_URL_OPTIONS.productionEU;
|
|
42338
|
+
S3_URL = S3_URL_OPTIONS.productionEU;
|
|
42339
|
+
}
|
|
42340
|
+
else if (region === 'ca') {
|
|
42341
|
+
CDN_URL = CDN_URL_OPTIONS.productionCA;
|
|
42342
|
+
API_URL = API_URL_OPTIONS.productionCA;
|
|
42343
|
+
STATIC_URL = STATIC_URL_OPTIONS.productionCA;
|
|
42344
|
+
S3_URL = S3_URL_OPTIONS.productionCA;
|
|
42345
|
+
}
|
|
42624
42346
|
};
|
|
42625
42347
|
/**
|
|
42626
42348
|
* The number of milliseconds waited until another submitCustom call
|
|
@@ -43428,6 +43150,39 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43428
43150
|
});
|
|
43429
43151
|
});
|
|
43430
43152
|
};
|
|
43153
|
+
// Logic custom APIs
|
|
43154
|
+
FeatheryClient.prototype.runCustomRequest = function (payload, fieldValues) {
|
|
43155
|
+
var _this = this;
|
|
43156
|
+
if (fieldValues === void 0) { fieldValues = null; }
|
|
43157
|
+
var userId = initInfo().userId;
|
|
43158
|
+
var data = {
|
|
43159
|
+
fuser_key: userId,
|
|
43160
|
+
form_key: this.formKey,
|
|
43161
|
+
name: payload.name,
|
|
43162
|
+
method: payload.method,
|
|
43163
|
+
url: payload.url,
|
|
43164
|
+
user_data: payload.data,
|
|
43165
|
+
headers: payload.headers
|
|
43166
|
+
};
|
|
43167
|
+
if (fieldValues) {
|
|
43168
|
+
data.field_values = fieldValues;
|
|
43169
|
+
}
|
|
43170
|
+
var url = "".concat(STATIC_URL, "custom_request/");
|
|
43171
|
+
var options = {
|
|
43172
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43173
|
+
method: 'POST',
|
|
43174
|
+
body: JSON.stringify(data),
|
|
43175
|
+
keepalive: false
|
|
43176
|
+
};
|
|
43177
|
+
var run = function () {
|
|
43178
|
+
return _this._fetch(url, options).then(function (response) {
|
|
43179
|
+
return response ? response.json() : Promise.resolve();
|
|
43180
|
+
});
|
|
43181
|
+
};
|
|
43182
|
+
if (payload.method === 'GET')
|
|
43183
|
+
return run();
|
|
43184
|
+
return this.offlineRequestHandler.runOrSaveRequest(run, url, options, 'customRequest');
|
|
43185
|
+
};
|
|
43431
43186
|
FeatheryClient.prototype.runServerSideLogicRule = function (id) {
|
|
43432
43187
|
var userId = initInfo().userId;
|
|
43433
43188
|
var data = {
|
|
@@ -43450,13 +43205,89 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43450
43205
|
FeatheryClient.prototype.runAIExtraction = function (_a) {
|
|
43451
43206
|
var extractionId = _a.extractionId, options = _a.options, pages = _a.pages, setPollFuserData = _a.setPollFuserData, onStatusUpdate = _a.onStatusUpdate;
|
|
43452
43207
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
43453
|
-
var _b, userId,
|
|
43208
|
+
var runAsync, variantId, meetingUrl, _b, userId, collaboratorId, data, res, response, pollUrl;
|
|
43454
43209
|
return __generator(this, function (_c) {
|
|
43455
43210
|
switch (_c.label) {
|
|
43456
43211
|
case 0:
|
|
43457
|
-
|
|
43458
|
-
|
|
43459
|
-
|
|
43212
|
+
if (typeof options === 'object') {
|
|
43213
|
+
runAsync = !options.waitForCompletion;
|
|
43214
|
+
pages = options.pages;
|
|
43215
|
+
variantId = options.variantId;
|
|
43216
|
+
meetingUrl = options.meetingUrl || undefined;
|
|
43217
|
+
}
|
|
43218
|
+
else {
|
|
43219
|
+
// deprecated usage, options is waitForCompletion
|
|
43220
|
+
runAsync = !options;
|
|
43221
|
+
}
|
|
43222
|
+
_b = initInfo(), userId = _b.userId, collaboratorId = _b.collaboratorId;
|
|
43223
|
+
data = {
|
|
43224
|
+
fuser_key: userId,
|
|
43225
|
+
collaborator_user: collaboratorId,
|
|
43226
|
+
extraction_id: extractionId,
|
|
43227
|
+
extraction_variant_id: variantId,
|
|
43228
|
+
pages: pages,
|
|
43229
|
+
meeting_url: meetingUrl
|
|
43230
|
+
};
|
|
43231
|
+
return [4 /*yield*/, this._fetch("".concat(STATIC_URL, "ai/vision/"), {
|
|
43232
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43233
|
+
method: 'POST',
|
|
43234
|
+
body: JSON.stringify(data)
|
|
43235
|
+
})];
|
|
43236
|
+
case 1:
|
|
43237
|
+
res = _c.sent();
|
|
43238
|
+
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.json())];
|
|
43239
|
+
case 2:
|
|
43240
|
+
response = _c.sent();
|
|
43241
|
+
if (runAsync)
|
|
43242
|
+
return [2 /*return*/, {}];
|
|
43243
|
+
if (response.meeting_info) {
|
|
43244
|
+
setPollFuserData(true);
|
|
43245
|
+
return [2 /*return*/, {}];
|
|
43246
|
+
}
|
|
43247
|
+
pollUrl = "".concat(STATIC_URL, "ai/vision/completion/?fid=").concat(userId, "&eid=").concat(extractionId, "&evid=").concat(variantId !== null && variantId !== void 0 ? variantId : '');
|
|
43248
|
+
return [4 /*yield*/, this.pollForCompletion({
|
|
43249
|
+
pollUrl: pollUrl,
|
|
43250
|
+
checkInterval: this.AI_CHECK_INTERVAL,
|
|
43251
|
+
maxTime: this.AI_MAX_TIME,
|
|
43252
|
+
onStatusUpdate: onStatusUpdate,
|
|
43253
|
+
operationName: 'Extraction'
|
|
43254
|
+
})];
|
|
43255
|
+
case 3: return [2 /*return*/, _c.sent()];
|
|
43256
|
+
}
|
|
43257
|
+
});
|
|
43258
|
+
});
|
|
43259
|
+
};
|
|
43260
|
+
FeatheryClient.prototype.forwardInboxEmail = function (_a) {
|
|
43261
|
+
var options = _a.options;
|
|
43262
|
+
return __awaiter$2(this, void 0, void 0, function () {
|
|
43263
|
+
var userId, url, data, reqOptions, res, _b, _c;
|
|
43264
|
+
return __generator(this, function (_d) {
|
|
43265
|
+
switch (_d.label) {
|
|
43266
|
+
case 0:
|
|
43267
|
+
userId = initInfo().userId;
|
|
43268
|
+
url = "".concat(API_URL, "email/forward/");
|
|
43269
|
+
data = {
|
|
43270
|
+
user_id: userId,
|
|
43271
|
+
recipients: options.emails || [],
|
|
43272
|
+
email_group: options.emailGroup || '',
|
|
43273
|
+
panel_key: this.formKey
|
|
43274
|
+
};
|
|
43275
|
+
reqOptions = {
|
|
43276
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43277
|
+
method: 'POST',
|
|
43278
|
+
body: JSON.stringify(data)
|
|
43279
|
+
};
|
|
43280
|
+
return [4 /*yield*/, this._fetch(url, reqOptions, false)];
|
|
43281
|
+
case 1:
|
|
43282
|
+
res = _d.sent();
|
|
43283
|
+
if (!(res && res.ok)) return [3 /*break*/, 3];
|
|
43284
|
+
return [4 /*yield*/, res.json()];
|
|
43285
|
+
case 2: return [2 /*return*/, _d.sent()];
|
|
43286
|
+
case 3:
|
|
43287
|
+
_b = Error.bind;
|
|
43288
|
+
_c = parseError;
|
|
43289
|
+
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.json())];
|
|
43290
|
+
case 4: throw new (_b.apply(Error, [void 0, _c.apply(void 0, [_d.sent()])]))();
|
|
43460
43291
|
}
|
|
43461
43292
|
});
|
|
43462
43293
|
});
|
|
@@ -43506,20 +43337,41 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43506
43337
|
};
|
|
43507
43338
|
FeatheryClient.prototype.inviteCollaborator = function (usersGroups, templateId) {
|
|
43508
43339
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
43509
|
-
var _a, userId, collaboratorId,
|
|
43340
|
+
var _a, userId, collaboratorId, data, url;
|
|
43341
|
+
var _this = this;
|
|
43510
43342
|
return __generator(this, function (_b) {
|
|
43511
|
-
|
|
43512
|
-
|
|
43513
|
-
|
|
43514
|
-
|
|
43515
|
-
|
|
43516
|
-
|
|
43517
|
-
|
|
43518
|
-
|
|
43519
|
-
|
|
43520
|
-
|
|
43521
|
-
|
|
43522
|
-
|
|
43343
|
+
_a = initInfo(), userId = _a.userId, collaboratorId = _a.collaboratorId;
|
|
43344
|
+
data = {
|
|
43345
|
+
form_key: this.formKey,
|
|
43346
|
+
fuser_key: userId,
|
|
43347
|
+
users_groups: usersGroups,
|
|
43348
|
+
template_id: templateId
|
|
43349
|
+
};
|
|
43350
|
+
if (collaboratorId)
|
|
43351
|
+
data.collaborator_user = collaboratorId;
|
|
43352
|
+
url = "".concat(API_URL, "collaborator/invite/");
|
|
43353
|
+
return [2 /*return*/, this._fetch(url, {
|
|
43354
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43355
|
+
method: 'POST',
|
|
43356
|
+
body: JSON.stringify(data)
|
|
43357
|
+
}, false).then(function (response) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
43358
|
+
var _a, _b;
|
|
43359
|
+
return __generator(this, function (_c) {
|
|
43360
|
+
switch (_c.label) {
|
|
43361
|
+
case 0:
|
|
43362
|
+
if (!response) return [3 /*break*/, 4];
|
|
43363
|
+
if (!response.ok) return [3 /*break*/, 2];
|
|
43364
|
+
return [4 /*yield*/, response.json()];
|
|
43365
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
43366
|
+
case 2:
|
|
43367
|
+
_a = Error;
|
|
43368
|
+
_b = parseError;
|
|
43369
|
+
return [4 /*yield*/, response.json()];
|
|
43370
|
+
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43371
|
+
case 4: return [2 /*return*/];
|
|
43372
|
+
}
|
|
43373
|
+
});
|
|
43374
|
+
}); })];
|
|
43523
43375
|
});
|
|
43524
43376
|
});
|
|
43525
43377
|
};
|
|
@@ -43553,7 +43405,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43553
43405
|
case 1: return [2 /*return*/, _c.sent()];
|
|
43554
43406
|
case 2:
|
|
43555
43407
|
_a = Error;
|
|
43556
|
-
_b =
|
|
43408
|
+
_b = parseError;
|
|
43557
43409
|
return [4 /*yield*/, response.json()];
|
|
43558
43410
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43559
43411
|
case 4: return [2 /*return*/];
|
|
@@ -43590,7 +43442,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43590
43442
|
case 1: return [2 /*return*/, _c.sent()];
|
|
43591
43443
|
case 2:
|
|
43592
43444
|
_a = Error;
|
|
43593
|
-
_b =
|
|
43445
|
+
_b = parseError;
|
|
43594
43446
|
return [4 /*yield*/, response.json()];
|
|
43595
43447
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43596
43448
|
case 4: return [2 /*return*/];
|
|
@@ -43636,7 +43488,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43636
43488
|
case 3: return [2 /*return*/, { files: files }];
|
|
43637
43489
|
case 4:
|
|
43638
43490
|
_a = Error;
|
|
43639
|
-
_b =
|
|
43491
|
+
_b = parseError;
|
|
43640
43492
|
return [4 /*yield*/, response.json()];
|
|
43641
43493
|
case 5: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43642
43494
|
case 6: return [2 /*return*/];
|
|
@@ -43752,9 +43604,9 @@ function init(sdkKey, options) {
|
|
|
43752
43604
|
if (runningInClient()) {
|
|
43753
43605
|
// Dynamically load libraries that must be client side
|
|
43754
43606
|
global.scriptjsLoadPromise = Promise.resolve().then(function () { return require(
|
|
43755
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
43607
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.iSzGaCwW.js'); }).then(function (n) { return n.script; });
|
|
43756
43608
|
global.webfontloaderPromise = Promise.resolve().then(function () { return require(
|
|
43757
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
43609
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.C04VodQo.js'); }).then(function (n) { return n.webfontloader; });
|
|
43758
43610
|
// Client-side tracking logic
|
|
43759
43611
|
if (initState.userTracking === 'cookie') {
|
|
43760
43612
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -43900,7 +43752,7 @@ function getFieldValues() {
|
|
|
43900
43752
|
return exports.__assign({}, exports.fieldValues);
|
|
43901
43753
|
}
|
|
43902
43754
|
function logFeatheryBadge() {
|
|
43903
|
-
console.log('%c Feathery %c v' + "2.12.
|
|
43755
|
+
console.log('%c Feathery %c v' + "2.12.3-pr-1522.4bcc507.0" + ' ', // replaced with real version during build
|
|
43904
43756
|
'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;');
|
|
43905
43757
|
}
|
|
43906
43758
|
|
|
@@ -44247,13 +44099,63 @@ function isElementInViewport(el) {
|
|
|
44247
44099
|
rect.right <= width);
|
|
44248
44100
|
}
|
|
44249
44101
|
function httpHelpers(client, connectorFields) {
|
|
44102
|
+
var _this = this;
|
|
44250
44103
|
if (connectorFields === void 0) { connectorFields = []; }
|
|
44251
|
-
var
|
|
44252
|
-
|
|
44253
|
-
|
|
44254
|
-
|
|
44255
|
-
|
|
44256
|
-
|
|
44104
|
+
var helpers = {};
|
|
44105
|
+
[
|
|
44106
|
+
'GET',
|
|
44107
|
+
'get',
|
|
44108
|
+
'PATCH',
|
|
44109
|
+
'patch',
|
|
44110
|
+
'POST',
|
|
44111
|
+
'post',
|
|
44112
|
+
'PUT',
|
|
44113
|
+
'put',
|
|
44114
|
+
'DELETE',
|
|
44115
|
+
'delete'
|
|
44116
|
+
].forEach(function (method) {
|
|
44117
|
+
return (helpers[method] = function (url, data, headers) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
44118
|
+
var response;
|
|
44119
|
+
return __generator(this, function (_a) {
|
|
44120
|
+
switch (_a.label) {
|
|
44121
|
+
case 0:
|
|
44122
|
+
if (!url)
|
|
44123
|
+
return [2 /*return*/, {}];
|
|
44124
|
+
return [4 /*yield*/, client.runCustomRequest({ method: method.toUpperCase(), url: url, data: data, headers: headers }, getConnectorFieldValues(connectorFields))];
|
|
44125
|
+
case 1:
|
|
44126
|
+
response = _a.sent();
|
|
44127
|
+
return [2 /*return*/, {
|
|
44128
|
+
data: response.data,
|
|
44129
|
+
statusCode: response.status_code,
|
|
44130
|
+
// status_code for backwards compatibility
|
|
44131
|
+
status_code: response.statusCode
|
|
44132
|
+
}];
|
|
44133
|
+
}
|
|
44134
|
+
});
|
|
44135
|
+
}); });
|
|
44136
|
+
});
|
|
44137
|
+
helpers.connect = function (name, data, headers) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
44138
|
+
var response;
|
|
44139
|
+
return __generator(this, function (_a) {
|
|
44140
|
+
switch (_a.label) {
|
|
44141
|
+
case 0:
|
|
44142
|
+
if (!name)
|
|
44143
|
+
return [2 /*return*/, {}];
|
|
44144
|
+
return [4 /*yield*/, client.runCustomRequest({ name: name, data: data, headers: headers }, getConnectorFieldValues(connectorFields))];
|
|
44145
|
+
case 1:
|
|
44146
|
+
response = _a.sent();
|
|
44147
|
+
if (response === null || response === void 0 ? void 0 : response.field_values)
|
|
44148
|
+
// skip server submit when setting field values here
|
|
44149
|
+
// because these values were just created on the server
|
|
44150
|
+
setFieldValues(response === null || response === void 0 ? void 0 : response.field_values, true, true);
|
|
44151
|
+
return [2 /*return*/, {
|
|
44152
|
+
data: response.data,
|
|
44153
|
+
statusCode: response.status_code
|
|
44154
|
+
}];
|
|
44155
|
+
}
|
|
44156
|
+
});
|
|
44157
|
+
}); };
|
|
44158
|
+
return helpers;
|
|
44257
44159
|
}
|
|
44258
44160
|
|
|
44259
44161
|
function runningInClient() {
|
|
@@ -45322,39 +45224,39 @@ breakpoint) {
|
|
|
45322
45224
|
return styles.getTarget('inner-container', undefined, viewport === 'mobile');
|
|
45323
45225
|
};
|
|
45324
45226
|
|
|
45325
|
-
var AddressLine1 = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
45326
|
-
var ButtonGroupField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
45327
|
-
var CheckboxField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
45227
|
+
var AddressLine1 = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "AddressField" */ './fthry_index.BRcdDEP7.js'); }); });
|
|
45228
|
+
var ButtonGroupField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.BHZiDOJy.js'); }); });
|
|
45229
|
+
var CheckboxField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxField" */ './fthry_index.BYMaOURT.js'); }); });
|
|
45328
45230
|
var CheckboxGroupField = React.lazy(function () {
|
|
45329
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
45231
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.CzI9aLcM.js'); });
|
|
45330
45232
|
});
|
|
45331
|
-
var ColorPickerField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
45332
|
-
var CustomField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
45233
|
+
var ColorPickerField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "ColorPickerField" */ './fthry_index.DHlxQYOY.js'); }); });
|
|
45234
|
+
var CustomField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "CustomField" */ './fthry_index.E_PMR0Yl.js'); }); });
|
|
45333
45235
|
var DateSelectorField = React.lazy(function () {
|
|
45334
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
45236
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DateSelectorField" */ './fthry_index.DvJ038DD.js'); });
|
|
45335
45237
|
});
|
|
45336
|
-
var DropdownField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
45238
|
+
var DropdownField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownField" */ './fthry_index.CohzVLkQ.js'); }); });
|
|
45337
45239
|
var DropdownMultiField = React.lazy(function () {
|
|
45338
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
45240
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.Bwkf_lk3.js'); });
|
|
45339
45241
|
});
|
|
45340
|
-
var FileUploadField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
45341
|
-
var MatrixField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
45342
|
-
var PasswordField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
45242
|
+
var FileUploadField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "FileUploadField" */ './fthry_index.fleNYFAW.js'); }); });
|
|
45243
|
+
var MatrixField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "MatrixField" */ './fthry_index.B4YjC-C6.js'); }); });
|
|
45244
|
+
var PasswordField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PasswordField" */ './fthry_index.B9-9P9JF.js'); }); });
|
|
45343
45245
|
var PaymentMethodField = React.lazy(function () {
|
|
45344
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
45246
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.CJ8dq0fW.js'); });
|
|
45345
45247
|
});
|
|
45346
|
-
var PhoneField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
45347
|
-
var PinInputField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
45348
|
-
var QRScanner = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
45248
|
+
var PhoneField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PhoneField" */ './fthry_index.DRGdkWyD.js'); }); });
|
|
45249
|
+
var PinInputField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PinInputField" */ './fthry_index.D6MKhV5W.js'); }); });
|
|
45250
|
+
var QRScanner = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "QRScanner" */ './fthry_index.CAuvgDuG.js'); }); });
|
|
45349
45251
|
var RadioButtonGroupField = React.lazy(function () {
|
|
45350
45252
|
return Promise.resolve().then(function () { return require(
|
|
45351
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
45253
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.hn3nWnc7.js'); });
|
|
45352
45254
|
});
|
|
45353
|
-
var RatingField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
45354
|
-
var SignatureField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
45355
|
-
var SliderField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
45356
|
-
var TextField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
45357
|
-
var TextArea = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
45255
|
+
var RatingField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "RatingField" */ './fthry_index.BMG2-fL2.js'); }); });
|
|
45256
|
+
var SignatureField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "SignatureField" */ './fthry_index.DI7QOcRZ.js'); }); });
|
|
45257
|
+
var SliderField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "SliderField" */ './fthry_index.Bc1WOCpN.js'); }); });
|
|
45258
|
+
var TextField = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextField" */ './fthry_index.DNAP_k72.js'); }); });
|
|
45259
|
+
var TextArea = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextArea" */ './fthry_index.BGZ09_Df.js'); }); });
|
|
45358
45260
|
var Fields = {
|
|
45359
45261
|
AddressLine1: AddressLine1,
|
|
45360
45262
|
ButtonGroupField: ButtonGroupField,
|