@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
|
@@ -5759,6 +5759,66 @@ function v4$1(options, buf, offset) {
|
|
|
5759
5759
|
return stringify$1(rnds);
|
|
5760
5760
|
}
|
|
5761
5761
|
|
|
5762
|
+
var SDKKeyError = /** @class */ (function (_super) {
|
|
5763
|
+
__extends(SDKKeyError, _super);
|
|
5764
|
+
function SDKKeyError(message) {
|
|
5765
|
+
if (message === void 0) { message = 'Invalid SDK Key'; }
|
|
5766
|
+
var _this = _super.call(this, message) || this;
|
|
5767
|
+
_this.name = 'SDKKeyError';
|
|
5768
|
+
return _this;
|
|
5769
|
+
}
|
|
5770
|
+
return SDKKeyError;
|
|
5771
|
+
}(Error));
|
|
5772
|
+
var UserIdError = /** @class */ (function (_super) {
|
|
5773
|
+
__extends(UserIdError, _super);
|
|
5774
|
+
function UserIdError() {
|
|
5775
|
+
var _this = _super.call(this, 'Invalid User ID') || this;
|
|
5776
|
+
_this.name = 'UserIdError';
|
|
5777
|
+
return _this;
|
|
5778
|
+
}
|
|
5779
|
+
return UserIdError;
|
|
5780
|
+
}(Error));
|
|
5781
|
+
var FetchError = /** @class */ (function (_super) {
|
|
5782
|
+
__extends(FetchError, _super);
|
|
5783
|
+
function FetchError(message, payload) {
|
|
5784
|
+
if (payload === void 0) { payload = null; }
|
|
5785
|
+
var _this = _super.call(this, message) || this;
|
|
5786
|
+
_this.name = 'FetchError';
|
|
5787
|
+
_this.payload = payload;
|
|
5788
|
+
return _this;
|
|
5789
|
+
}
|
|
5790
|
+
return FetchError;
|
|
5791
|
+
}(Error));
|
|
5792
|
+
function parseError(err) {
|
|
5793
|
+
if (Array.isArray(err) && err.length) {
|
|
5794
|
+
var payloadError = err[0];
|
|
5795
|
+
if (typeof payloadError === 'object' && 'message' in payloadError) {
|
|
5796
|
+
return payloadError.message;
|
|
5797
|
+
}
|
|
5798
|
+
else
|
|
5799
|
+
return 'Invalid';
|
|
5800
|
+
}
|
|
5801
|
+
else if (err.message || err.error)
|
|
5802
|
+
return err.message || err.error;
|
|
5803
|
+
else
|
|
5804
|
+
return err.toString();
|
|
5805
|
+
}
|
|
5806
|
+
var handleCustomScriptError = function (e) {
|
|
5807
|
+
var _a, _b;
|
|
5808
|
+
var errorReason = (_a = e.reason) !== null && _a !== void 0 ? _a : e.error;
|
|
5809
|
+
// If stack is at 'eval', it is a logic rule error.
|
|
5810
|
+
// Note this only works for unhandledrejection events, not error events.
|
|
5811
|
+
console.warn('Error caught in custom HTML. Error Message: ', (_b = errorReason.message) !== null && _b !== void 0 ? _b : '');
|
|
5812
|
+
e.stopPropagation();
|
|
5813
|
+
e.preventDefault(); // Prevent the error in the log
|
|
5814
|
+
};
|
|
5815
|
+
var setCustomErrorHandler = function () {
|
|
5816
|
+
featheryWindow().addEventListener('error', handleCustomScriptError);
|
|
5817
|
+
};
|
|
5818
|
+
var removeCustomErrorHandler = function () {
|
|
5819
|
+
featheryWindow().removeEventListener('error', handleCustomScriptError);
|
|
5820
|
+
};
|
|
5821
|
+
|
|
5762
5822
|
function encodeGetParams(params) {
|
|
5763
5823
|
return (Object.entries(params)
|
|
5764
5824
|
// @ts-expect-error TS(2345): Argument of type '(uriComponent: string | number |... Remove this comment to see the full error message
|
|
@@ -5819,507 +5879,6 @@ function numMatchingItems(arr1, arr2) {
|
|
|
5819
5879
|
return i;
|
|
5820
5880
|
}
|
|
5821
5881
|
|
|
5822
|
-
var dist$2 = {};
|
|
5823
|
-
|
|
5824
|
-
var api$1 = {};
|
|
5825
|
-
|
|
5826
|
-
var utils = {};
|
|
5827
|
-
|
|
5828
|
-
var error = {};
|
|
5829
|
-
|
|
5830
|
-
var hasRequiredError;
|
|
5831
|
-
|
|
5832
|
-
function requireError () {
|
|
5833
|
-
if (hasRequiredError) return error;
|
|
5834
|
-
hasRequiredError = 1;
|
|
5835
|
-
Object.defineProperty(error, "__esModule", { value: true });
|
|
5836
|
-
error.ValidationError = error.FetchError = void 0;
|
|
5837
|
-
error.parseAPIError = parseAPIError;
|
|
5838
|
-
class FetchError extends Error {
|
|
5839
|
-
constructor(message, payload = null) {
|
|
5840
|
-
super(message);
|
|
5841
|
-
this.name = 'FetchError';
|
|
5842
|
-
this.payload = payload;
|
|
5843
|
-
}
|
|
5844
|
-
}
|
|
5845
|
-
error.FetchError = FetchError;
|
|
5846
|
-
class ValidationError extends Error {
|
|
5847
|
-
constructor(message) {
|
|
5848
|
-
super(message);
|
|
5849
|
-
this.name = 'ValidationError';
|
|
5850
|
-
}
|
|
5851
|
-
}
|
|
5852
|
-
error.ValidationError = ValidationError;
|
|
5853
|
-
function parseAPIError(err) {
|
|
5854
|
-
if (Array.isArray(err) && err.length) {
|
|
5855
|
-
const payloadError = err[0];
|
|
5856
|
-
if (typeof payloadError === 'object' && 'message' in payloadError) {
|
|
5857
|
-
return payloadError.message;
|
|
5858
|
-
}
|
|
5859
|
-
else
|
|
5860
|
-
return 'Invalid';
|
|
5861
|
-
}
|
|
5862
|
-
else if (err.message || err.error)
|
|
5863
|
-
return err.message || err.error;
|
|
5864
|
-
else
|
|
5865
|
-
return err.toString();
|
|
5866
|
-
}
|
|
5867
|
-
return error;
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
|
-
var setup = {};
|
|
5871
|
-
|
|
5872
|
-
var hasRequiredSetup;
|
|
5873
|
-
|
|
5874
|
-
function requireSetup () {
|
|
5875
|
-
if (hasRequiredSetup) return setup;
|
|
5876
|
-
hasRequiredSetup = 1;
|
|
5877
|
-
Object.defineProperty(setup, "__esModule", { value: true });
|
|
5878
|
-
setup.S3_URL_OPTIONS = setup.CDN_URL_OPTIONS = setup.STATIC_URL_OPTIONS = setup.API_URL_OPTIONS = void 0;
|
|
5879
|
-
setup.getEnvironment = getEnvironment;
|
|
5880
|
-
setup.setEnvironment = setEnvironment;
|
|
5881
|
-
setup.API_URL_OPTIONS = {
|
|
5882
|
-
local: 'http://localhost:8006/api/',
|
|
5883
|
-
docker: 'http://host.docker.internal:8006/api/',
|
|
5884
|
-
staging: 'https://staging.feathery.io/api/',
|
|
5885
|
-
production: 'https://api.feathery.io/api/',
|
|
5886
|
-
productionAU: 'https://api-au.feathery.io/api/',
|
|
5887
|
-
productionEU: 'https://api-eu.feathery.io/api/',
|
|
5888
|
-
productionCA: 'https://api-ca.feathery.io/api/',
|
|
5889
|
-
};
|
|
5890
|
-
setup.STATIC_URL_OPTIONS = {
|
|
5891
|
-
local: 'http://localhost:8006/api/',
|
|
5892
|
-
docker: 'http://host.docker.internal:8006/api/',
|
|
5893
|
-
staging: 'https://staging.feathery.io/api/',
|
|
5894
|
-
production: 'https://api-static-2.feathery.io/api/',
|
|
5895
|
-
productionAU: 'https://api-au.feathery.io/api/',
|
|
5896
|
-
productionEU: 'https://api-eu.feathery.io/api/',
|
|
5897
|
-
productionCA: 'https://api-ca.feathery.io/api/',
|
|
5898
|
-
};
|
|
5899
|
-
setup.CDN_URL_OPTIONS = {
|
|
5900
|
-
local: 'http://localhost:8006/api/',
|
|
5901
|
-
docker: 'http://host.docker.internal:8006/api/',
|
|
5902
|
-
staging: 'https://staging.feathery.io/api/',
|
|
5903
|
-
production: 'https://cdn.feathery.io/api/',
|
|
5904
|
-
productionAU: 'https://cdn-au.feathery.io/api/',
|
|
5905
|
-
productionEU: 'https://cdn-eu.feathery.io/api/',
|
|
5906
|
-
productionCA: 'https://cdn-ca.feathery.io/api/',
|
|
5907
|
-
};
|
|
5908
|
-
setup.S3_URL_OPTIONS = {
|
|
5909
|
-
local: 'http://localhost:8006',
|
|
5910
|
-
docker: 'http://host.docker.internal:8006',
|
|
5911
|
-
staging: 's3.us-west-1.amazonaws.com',
|
|
5912
|
-
production: 's3.us-west-1.amazonaws.com',
|
|
5913
|
-
productionAU: 's3.ap-southeast-2.amazonaws.com',
|
|
5914
|
-
productionEU: 's3.eu-west-1.amazonaws.com',
|
|
5915
|
-
productionCA: 's3.ca-central-1.amazonaws.com',
|
|
5916
|
-
};
|
|
5917
|
-
let configuredEnvironment;
|
|
5918
|
-
let isClientSide = true;
|
|
5919
|
-
let internalSecretKey = null;
|
|
5920
|
-
function getEnvironment() {
|
|
5921
|
-
if (!configuredEnvironment)
|
|
5922
|
-
throw new Error('Environment not set');
|
|
5923
|
-
return { configuredEnvironment, isClientSide, internalSecretKey };
|
|
5924
|
-
}
|
|
5925
|
-
/**
|
|
5926
|
-
* Set the environment for the SDK.
|
|
5927
|
-
* @param environment - The environment to set (local, staging, production, etc.).
|
|
5928
|
-
* @param clientSide - Whether the SDK is running in the browser or server side.
|
|
5929
|
-
* @param secretKey - The secret key to use for the SDK.
|
|
5930
|
-
*/
|
|
5931
|
-
function setEnvironment(environment, clientSide = true, secretKey = null) {
|
|
5932
|
-
configuredEnvironment = environment;
|
|
5933
|
-
isClientSide = clientSide;
|
|
5934
|
-
internalSecretKey = secretKey;
|
|
5935
|
-
}
|
|
5936
|
-
return setup;
|
|
5937
|
-
}
|
|
5938
|
-
|
|
5939
|
-
var hasRequiredUtils;
|
|
5940
|
-
|
|
5941
|
-
function requireUtils () {
|
|
5942
|
-
if (hasRequiredUtils) return utils;
|
|
5943
|
-
hasRequiredUtils = 1;
|
|
5944
|
-
Object.defineProperty(utils, "__esModule", { value: true });
|
|
5945
|
-
utils.getApiUrl = getApiUrl;
|
|
5946
|
-
utils.getStaticUrl = getStaticUrl;
|
|
5947
|
-
utils.getCdnUrl = getCdnUrl;
|
|
5948
|
-
utils.getS3Url = getS3Url;
|
|
5949
|
-
utils.checkResponseSuccess = checkResponseSuccess;
|
|
5950
|
-
utils.apiFetch = apiFetch;
|
|
5951
|
-
utils.createHttpHelpers = createHttpHelpers;
|
|
5952
|
-
const api_1 = requireApi();
|
|
5953
|
-
const error_1 = requireError();
|
|
5954
|
-
const setup_1 = requireSetup();
|
|
5955
|
-
function getApiUrl() {
|
|
5956
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5957
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5958
|
-
return setup_1.API_URL_OPTIONS.docker;
|
|
5959
|
-
return setup_1.API_URL_OPTIONS[configuredEnvironment];
|
|
5960
|
-
}
|
|
5961
|
-
function getStaticUrl() {
|
|
5962
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5963
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5964
|
-
return setup_1.STATIC_URL_OPTIONS.docker;
|
|
5965
|
-
return setup_1.STATIC_URL_OPTIONS[configuredEnvironment];
|
|
5966
|
-
}
|
|
5967
|
-
function getCdnUrl() {
|
|
5968
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5969
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5970
|
-
return setup_1.CDN_URL_OPTIONS.docker;
|
|
5971
|
-
return setup_1.CDN_URL_OPTIONS[configuredEnvironment];
|
|
5972
|
-
}
|
|
5973
|
-
function getS3Url() {
|
|
5974
|
-
const { configuredEnvironment, isClientSide } = (0, setup_1.getEnvironment)();
|
|
5975
|
-
if (configuredEnvironment === 'local' && !isClientSide)
|
|
5976
|
-
return setup_1.S3_URL_OPTIONS.docker;
|
|
5977
|
-
return setup_1.S3_URL_OPTIONS[configuredEnvironment];
|
|
5978
|
-
}
|
|
5979
|
-
async function checkResponseSuccess(response) {
|
|
5980
|
-
let payload;
|
|
5981
|
-
switch (response.status) {
|
|
5982
|
-
case 200:
|
|
5983
|
-
case 201:
|
|
5984
|
-
case 202:
|
|
5985
|
-
return;
|
|
5986
|
-
case 400:
|
|
5987
|
-
payload = JSON.stringify(await response.clone().text());
|
|
5988
|
-
throw new error_1.FetchError(payload.toString());
|
|
5989
|
-
case 404:
|
|
5990
|
-
throw new error_1.FetchError("Can't find object");
|
|
5991
|
-
case 500:
|
|
5992
|
-
throw new error_1.FetchError('Internal server error');
|
|
5993
|
-
default:
|
|
5994
|
-
throw new error_1.FetchError('Unknown error');
|
|
5995
|
-
}
|
|
5996
|
-
}
|
|
5997
|
-
async function apiFetch(sdkKey, url, options, parseResponse = true) {
|
|
5998
|
-
options = options ?? {};
|
|
5999
|
-
const { headers, ...otherOptions } = options;
|
|
6000
|
-
options = {
|
|
6001
|
-
cache: 'no-store',
|
|
6002
|
-
// write requests must succeed so data is tracked
|
|
6003
|
-
keepalive: ['POST', 'PATCH', 'PUT'].includes(options.method),
|
|
6004
|
-
headers: {
|
|
6005
|
-
Authorization: 'Token ' + sdkKey,
|
|
6006
|
-
...headers,
|
|
6007
|
-
},
|
|
6008
|
-
...otherOptions,
|
|
6009
|
-
};
|
|
6010
|
-
const { internalSecretKey } = (0, setup_1.getEnvironment)();
|
|
6011
|
-
if (internalSecretKey)
|
|
6012
|
-
options.headers['X-Lambda-Secret'] = internalSecretKey;
|
|
6013
|
-
return fetch(url, options).then(async (response) => {
|
|
6014
|
-
if (parseResponse)
|
|
6015
|
-
await checkResponseSuccess(response);
|
|
6016
|
-
return response;
|
|
6017
|
-
});
|
|
6018
|
-
}
|
|
6019
|
-
function createHttpHelpers(sdkKey, formId, userId, fieldValues, updateFieldData, offlineHandler) {
|
|
6020
|
-
const helpers = {};
|
|
6021
|
-
['get', 'patch', 'post', 'put', 'delete'].forEach((method) => (helpers[method] = async (url, data, headers) => {
|
|
6022
|
-
if (!url)
|
|
6023
|
-
return {};
|
|
6024
|
-
const response = await (0, api_1.runCustomRequest)(sdkKey, formId, { method: method.toUpperCase(), url, data, headers }, userId, fieldValues, offlineHandler);
|
|
6025
|
-
if (!response)
|
|
6026
|
-
return {};
|
|
6027
|
-
if (response.field_values && updateFieldData) {
|
|
6028
|
-
updateFieldData(response.field_values);
|
|
6029
|
-
}
|
|
6030
|
-
return {
|
|
6031
|
-
data: response.data,
|
|
6032
|
-
statusCode: response.status_code,
|
|
6033
|
-
// status_code for backwards compatibility
|
|
6034
|
-
status_code: response.statusCode,
|
|
6035
|
-
};
|
|
6036
|
-
}));
|
|
6037
|
-
helpers.connect = async (name, data, headers) => {
|
|
6038
|
-
if (!name)
|
|
6039
|
-
return {};
|
|
6040
|
-
const response = await (0, api_1.runCustomRequest)(sdkKey, formId, { name, data, headers }, userId, fieldValues, offlineHandler);
|
|
6041
|
-
if (!response)
|
|
6042
|
-
return {};
|
|
6043
|
-
if (response.field_values && updateFieldData) {
|
|
6044
|
-
updateFieldData(response.field_values);
|
|
6045
|
-
}
|
|
6046
|
-
return {
|
|
6047
|
-
data: response.data,
|
|
6048
|
-
statusCode: response.status_code,
|
|
6049
|
-
};
|
|
6050
|
-
};
|
|
6051
|
-
return helpers;
|
|
6052
|
-
}
|
|
6053
|
-
return utils;
|
|
6054
|
-
}
|
|
6055
|
-
|
|
6056
|
-
var hasRequiredApi;
|
|
6057
|
-
|
|
6058
|
-
function requireApi () {
|
|
6059
|
-
if (hasRequiredApi) return api$1;
|
|
6060
|
-
hasRequiredApi = 1;
|
|
6061
|
-
Object.defineProperty(api$1, "__esModule", { value: true });
|
|
6062
|
-
api$1.customRolloutAction = customRolloutAction;
|
|
6063
|
-
api$1.extractAIDocument = extractAIDocument;
|
|
6064
|
-
api$1.pollForCompletion = pollForCompletion;
|
|
6065
|
-
api$1.inviteFormCollaborator = inviteFormCollaborator;
|
|
6066
|
-
api$1.sendEmail = sendEmail;
|
|
6067
|
-
api$1.forwardInboxEmail = forwardInboxEmail;
|
|
6068
|
-
api$1.runCustomRequest = runCustomRequest;
|
|
6069
|
-
const utils_1 = requireUtils();
|
|
6070
|
-
const error_1 = requireError();
|
|
6071
|
-
async function customRolloutAction(sdkKey, automationIds, formId, fieldData, options, userId) {
|
|
6072
|
-
const url = `${(0, utils_1.getApiUrl)()}rollout/custom-trigger/`;
|
|
6073
|
-
if (typeof automationIds === 'string')
|
|
6074
|
-
automationIds = [automationIds];
|
|
6075
|
-
const reqOptions = {
|
|
6076
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6077
|
-
method: 'POST',
|
|
6078
|
-
body: JSON.stringify({
|
|
6079
|
-
automation_ids: automationIds,
|
|
6080
|
-
sync: options.waitForCompletion ?? true,
|
|
6081
|
-
multiple: options.multiple ?? false,
|
|
6082
|
-
payload: fieldData,
|
|
6083
|
-
form_key: formId,
|
|
6084
|
-
fuser_key: userId,
|
|
6085
|
-
}),
|
|
6086
|
-
};
|
|
6087
|
-
const res = await (0, utils_1.apiFetch)(sdkKey, url, reqOptions, false);
|
|
6088
|
-
if (res && res.status === 200)
|
|
6089
|
-
return { ok: true, payload: await res.json() };
|
|
6090
|
-
else
|
|
6091
|
-
return { ok: false, error: (await res?.text()) ?? '' };
|
|
6092
|
-
}
|
|
6093
|
-
async function extractAIDocument(sdkKey, extractionId, options, userId, pages, triggerExtractionRunId, collaboratorId, onMeetingInfo, onStatusUpdate) {
|
|
6094
|
-
let runAsync;
|
|
6095
|
-
let variantId;
|
|
6096
|
-
let meetingUrl;
|
|
6097
|
-
if (typeof options === 'object') {
|
|
6098
|
-
runAsync = !options.waitForCompletion;
|
|
6099
|
-
pages = options.pages;
|
|
6100
|
-
variantId = options.variantId;
|
|
6101
|
-
meetingUrl = options.meetingUrl;
|
|
6102
|
-
}
|
|
6103
|
-
else {
|
|
6104
|
-
// deprecated usage, options is runAsync
|
|
6105
|
-
runAsync = options;
|
|
6106
|
-
}
|
|
6107
|
-
const data = {
|
|
6108
|
-
fuser_key: userId,
|
|
6109
|
-
extraction_id: extractionId,
|
|
6110
|
-
extraction_variant_id: variantId,
|
|
6111
|
-
trigger_extraction_run_id: triggerExtractionRunId,
|
|
6112
|
-
pages,
|
|
6113
|
-
meeting_url: meetingUrl,
|
|
6114
|
-
collaborator_user: collaboratorId,
|
|
6115
|
-
};
|
|
6116
|
-
const res = await (0, utils_1.apiFetch)(sdkKey, `${(0, utils_1.getStaticUrl)()}ai/vision/`, {
|
|
6117
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6118
|
-
method: 'POST',
|
|
6119
|
-
body: JSON.stringify(data),
|
|
6120
|
-
});
|
|
6121
|
-
if (runAsync)
|
|
6122
|
-
return {};
|
|
6123
|
-
const response = await res?.json();
|
|
6124
|
-
if (response?.meeting_info) {
|
|
6125
|
-
onMeetingInfo?.();
|
|
6126
|
-
return {};
|
|
6127
|
-
}
|
|
6128
|
-
const pollUrl = `${(0, utils_1.getStaticUrl)()}ai/vision/completion/?fid=${userId}&eid=${extractionId}&evid=${variantId ?? ''}`;
|
|
6129
|
-
const CHECK_INTERVAL = 2000;
|
|
6130
|
-
const MAX_TIME = 3 * 60 * 1000;
|
|
6131
|
-
return await pollForCompletion(sdkKey, pollUrl, CHECK_INTERVAL, MAX_TIME, 'Extraction', onStatusUpdate);
|
|
6132
|
-
}
|
|
6133
|
-
async function pollForCompletion(sdkKey, pollUrl, checkInterval, maxTime, operationName = 'Operation', onStatusUpdate) {
|
|
6134
|
-
return new Promise((resolve) => {
|
|
6135
|
-
let attempts = 0;
|
|
6136
|
-
const maxAttempts = maxTime / checkInterval;
|
|
6137
|
-
const checkCompletion = async () => {
|
|
6138
|
-
const response = await (0, utils_1.apiFetch)(sdkKey, pollUrl, { method: 'GET' }, false);
|
|
6139
|
-
if (!response)
|
|
6140
|
-
return;
|
|
6141
|
-
const data = await response.json();
|
|
6142
|
-
if (onStatusUpdate) {
|
|
6143
|
-
onStatusUpdate(data);
|
|
6144
|
-
}
|
|
6145
|
-
if (response.ok) {
|
|
6146
|
-
if (data.status === 'complete') {
|
|
6147
|
-
return resolve(data);
|
|
6148
|
-
}
|
|
6149
|
-
else {
|
|
6150
|
-
attempts += 1;
|
|
6151
|
-
if (attempts < maxAttempts) {
|
|
6152
|
-
setTimeout(checkCompletion, checkInterval);
|
|
6153
|
-
}
|
|
6154
|
-
else {
|
|
6155
|
-
const message = `${operationName} took too long...`;
|
|
6156
|
-
console.error(message);
|
|
6157
|
-
return resolve({ status: 'error', message });
|
|
6158
|
-
}
|
|
6159
|
-
}
|
|
6160
|
-
}
|
|
6161
|
-
else {
|
|
6162
|
-
const message = (0, error_1.parseAPIError)(data);
|
|
6163
|
-
console.error(message);
|
|
6164
|
-
if (onStatusUpdate) {
|
|
6165
|
-
onStatusUpdate({ error: message });
|
|
6166
|
-
}
|
|
6167
|
-
return resolve({ status: 'error', message });
|
|
6168
|
-
}
|
|
6169
|
-
};
|
|
6170
|
-
// check every few seconds for a response
|
|
6171
|
-
setTimeout(checkCompletion, checkInterval);
|
|
6172
|
-
});
|
|
6173
|
-
}
|
|
6174
|
-
async function inviteFormCollaborator(sdkKey, formId, templateId, usersGroups, userId, collaboratorId) {
|
|
6175
|
-
const data = {
|
|
6176
|
-
form_key: formId,
|
|
6177
|
-
fuser_key: userId,
|
|
6178
|
-
users_groups: usersGroups,
|
|
6179
|
-
template_id: templateId,
|
|
6180
|
-
collaborator_user: collaboratorId,
|
|
6181
|
-
};
|
|
6182
|
-
return (0, utils_1.apiFetch)(sdkKey, `${(0, utils_1.getApiUrl)()}collaborator/invite/`, {
|
|
6183
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6184
|
-
method: 'POST',
|
|
6185
|
-
body: JSON.stringify(data),
|
|
6186
|
-
}, false).then(async (response) => {
|
|
6187
|
-
if (response) {
|
|
6188
|
-
if (response && response.status === 201)
|
|
6189
|
-
return { ok: true, payload: await response.json() };
|
|
6190
|
-
else
|
|
6191
|
-
return { ok: false, error: (await response?.text()) ?? '' };
|
|
6192
|
-
}
|
|
6193
|
-
});
|
|
6194
|
-
}
|
|
6195
|
-
async function sendEmail(sdkKey, userId, formId, templateId, skipPfd = false) {
|
|
6196
|
-
const url = `${(0, utils_1.getApiUrl)()}email/logic-rule/`;
|
|
6197
|
-
const options = {
|
|
6198
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6199
|
-
method: 'POST',
|
|
6200
|
-
body: JSON.stringify({
|
|
6201
|
-
template_id: templateId,
|
|
6202
|
-
form_key: formId,
|
|
6203
|
-
fuser_key: userId,
|
|
6204
|
-
skip_pfd: skipPfd,
|
|
6205
|
-
}),
|
|
6206
|
-
};
|
|
6207
|
-
return await (0, utils_1.apiFetch)(sdkKey, url, options, false);
|
|
6208
|
-
}
|
|
6209
|
-
async function forwardInboxEmail(sdkKey, userId, emailGroup, extractionRunId, emailMessageId, allGroups) {
|
|
6210
|
-
const recipients = allGroups?.find((group) => group.name === emailGroup)?.emails ?? [];
|
|
6211
|
-
const url = `${(0, utils_1.getApiUrl)()}email/forward/`;
|
|
6212
|
-
if (recipients.length === 0) {
|
|
6213
|
-
throw new error_1.ValidationError(`No recipients found for email group: ${emailGroup}`);
|
|
6214
|
-
}
|
|
6215
|
-
const options = {
|
|
6216
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6217
|
-
method: 'POST',
|
|
6218
|
-
body: JSON.stringify({
|
|
6219
|
-
email_message_id: emailMessageId,
|
|
6220
|
-
recipients,
|
|
6221
|
-
extraction_run_id: extractionRunId,
|
|
6222
|
-
user_id: userId,
|
|
6223
|
-
email_group: emailGroup,
|
|
6224
|
-
}),
|
|
6225
|
-
};
|
|
6226
|
-
await (0, utils_1.apiFetch)(sdkKey, url, options);
|
|
6227
|
-
}
|
|
6228
|
-
function runCustomRequest(sdkKey, formId, payload, userId, fieldValues, offlineHandler) {
|
|
6229
|
-
const data = {
|
|
6230
|
-
fuser_key: userId,
|
|
6231
|
-
form_key: formId,
|
|
6232
|
-
name: payload.name,
|
|
6233
|
-
method: payload.method,
|
|
6234
|
-
url: payload.url,
|
|
6235
|
-
user_data: payload.data,
|
|
6236
|
-
headers: payload.headers,
|
|
6237
|
-
field_values: fieldValues,
|
|
6238
|
-
};
|
|
6239
|
-
const url = `${(0, utils_1.getStaticUrl)()}custom_request/`;
|
|
6240
|
-
const options = {
|
|
6241
|
-
headers: { 'Content-Type': 'application/json' },
|
|
6242
|
-
method: 'POST',
|
|
6243
|
-
body: JSON.stringify(data),
|
|
6244
|
-
keepalive: false,
|
|
6245
|
-
};
|
|
6246
|
-
const run = () => (0, utils_1.apiFetch)(sdkKey, url, options).then((response) => (response ? response.json() : Promise.resolve()));
|
|
6247
|
-
if (payload.method === 'GET' || !offlineHandler)
|
|
6248
|
-
return run();
|
|
6249
|
-
return offlineHandler(run, url, options, 'customRequest');
|
|
6250
|
-
}
|
|
6251
|
-
return api$1;
|
|
6252
|
-
}
|
|
6253
|
-
|
|
6254
|
-
var hasRequiredDist$2;
|
|
6255
|
-
|
|
6256
|
-
function requireDist$2 () {
|
|
6257
|
-
if (hasRequiredDist$2) return dist$2;
|
|
6258
|
-
hasRequiredDist$2 = 1;
|
|
6259
|
-
(function (exports$1) {
|
|
6260
|
-
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;
|
|
6262
|
-
var api_1 = requireApi();
|
|
6263
|
-
Object.defineProperty(exports$1, "customRolloutAction", { enumerable: true, get: function () { return api_1.customRolloutAction; } });
|
|
6264
|
-
Object.defineProperty(exports$1, "extractAIDocument", { enumerable: true, get: function () { return api_1.extractAIDocument; } });
|
|
6265
|
-
Object.defineProperty(exports$1, "forwardInboxEmail", { enumerable: true, get: function () { return api_1.forwardInboxEmail; } });
|
|
6266
|
-
Object.defineProperty(exports$1, "inviteFormCollaborator", { enumerable: true, get: function () { return api_1.inviteFormCollaborator; } });
|
|
6267
|
-
Object.defineProperty(exports$1, "pollForCompletion", { enumerable: true, get: function () { return api_1.pollForCompletion; } });
|
|
6268
|
-
Object.defineProperty(exports$1, "sendEmail", { enumerable: true, get: function () { return api_1.sendEmail; } });
|
|
6269
|
-
var utils_1 = requireUtils();
|
|
6270
|
-
Object.defineProperty(exports$1, "apiFetch", { enumerable: true, get: function () { return utils_1.apiFetch; } });
|
|
6271
|
-
Object.defineProperty(exports$1, "checkResponseSuccess", { enumerable: true, get: function () { return utils_1.checkResponseSuccess; } });
|
|
6272
|
-
Object.defineProperty(exports$1, "createHttpHelpers", { enumerable: true, get: function () { return utils_1.createHttpHelpers; } });
|
|
6273
|
-
Object.defineProperty(exports$1, "getApiUrl", { enumerable: true, get: function () { return utils_1.getApiUrl; } });
|
|
6274
|
-
Object.defineProperty(exports$1, "getStaticUrl", { enumerable: true, get: function () { return utils_1.getStaticUrl; } });
|
|
6275
|
-
Object.defineProperty(exports$1, "getCdnUrl", { enumerable: true, get: function () { return utils_1.getCdnUrl; } });
|
|
6276
|
-
Object.defineProperty(exports$1, "getS3Url", { enumerable: true, get: function () { return utils_1.getS3Url; } });
|
|
6277
|
-
var error_1 = requireError();
|
|
6278
|
-
Object.defineProperty(exports$1, "FetchError", { enumerable: true, get: function () { return error_1.FetchError; } });
|
|
6279
|
-
Object.defineProperty(exports$1, "parseAPIError", { enumerable: true, get: function () { return error_1.parseAPIError; } });
|
|
6280
|
-
var setup_1 = requireSetup();
|
|
6281
|
-
Object.defineProperty(exports$1, "setEnvironment", { enumerable: true, get: function () { return setup_1.setEnvironment; } });
|
|
6282
|
-
} (dist$2));
|
|
6283
|
-
return dist$2;
|
|
6284
|
-
}
|
|
6285
|
-
|
|
6286
|
-
var distExports$2 = requireDist$2();
|
|
6287
|
-
|
|
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
5882
|
var conflictAlertShown = false;
|
|
6324
5883
|
function checkResponseSuccess(response) {
|
|
6325
5884
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
@@ -6348,7 +5907,7 @@ function checkResponseSuccess(response) {
|
|
|
6348
5907
|
console.error(payload.toString());
|
|
6349
5908
|
return [2 /*return*/];
|
|
6350
5909
|
case 4: throw new SDKKeyError();
|
|
6351
|
-
case 5: throw new
|
|
5910
|
+
case 5: throw new FetchError("Can't find object");
|
|
6352
5911
|
case 6:
|
|
6353
5912
|
// prevent multiple 409s from displaying multiple alerts
|
|
6354
5913
|
if (conflictAlertShown)
|
|
@@ -6359,8 +5918,8 @@ function checkResponseSuccess(response) {
|
|
|
6359
5918
|
featheryWindow().alert('This form has been updated. Please fill it out again.');
|
|
6360
5919
|
location.reload();
|
|
6361
5920
|
return [2 /*return*/];
|
|
6362
|
-
case 7: throw new
|
|
6363
|
-
case 8: throw new
|
|
5921
|
+
case 7: throw new FetchError('Internal server error');
|
|
5922
|
+
case 8: throw new FetchError('Unknown error');
|
|
6364
5923
|
}
|
|
6365
5924
|
});
|
|
6366
5925
|
});
|
|
@@ -7311,7 +6870,26 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7311
6870
|
if (parseResponse === void 0) { parseResponse = true; }
|
|
7312
6871
|
if (propagateNetworkErrors === void 0) { propagateNetworkErrors = false; }
|
|
7313
6872
|
var sdkKey = initInfo().sdkKey;
|
|
7314
|
-
|
|
6873
|
+
options = options !== null && options !== void 0 ? options : {};
|
|
6874
|
+
var headers = options.headers, otherOptions = __rest$1(options, ["headers"]);
|
|
6875
|
+
options = __assign({ cache: 'no-store',
|
|
6876
|
+
// Write requests must succeed so data is tracked
|
|
6877
|
+
keepalive: ['POST', 'PATCH', 'PUT'].includes(options.method), headers: __assign({ Authorization: 'Token ' + sdkKey }, headers) }, otherOptions);
|
|
6878
|
+
return fetch(url, options)
|
|
6879
|
+
.then(function (response) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
6880
|
+
return __generator(this, function (_a) {
|
|
6881
|
+
switch (_a.label) {
|
|
6882
|
+
case 0:
|
|
6883
|
+
if (!parseResponse) return [3 /*break*/, 2];
|
|
6884
|
+
return [4 /*yield*/, checkResponseSuccess(response)];
|
|
6885
|
+
case 1:
|
|
6886
|
+
_a.sent();
|
|
6887
|
+
_a.label = 2;
|
|
6888
|
+
case 2: return [2 /*return*/, response];
|
|
6889
|
+
}
|
|
6890
|
+
});
|
|
6891
|
+
}); })
|
|
6892
|
+
.catch(function (e) {
|
|
7315
6893
|
var _a;
|
|
7316
6894
|
// Ignore TypeErrors if form has redirected because `fetch` in
|
|
7317
6895
|
// Safari will error after redirect
|
|
@@ -7342,7 +6920,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7342
6920
|
payload = _a.sent();
|
|
7343
6921
|
if ((res === null || res === void 0 ? void 0 : res.status) === 200)
|
|
7344
6922
|
return [2 /*return*/, { token: payload.link_token }];
|
|
7345
|
-
return [2 /*return*/, { err:
|
|
6923
|
+
return [2 /*return*/, { err: parseError(payload) || 'Ran into an error' }];
|
|
7346
6924
|
}
|
|
7347
6925
|
});
|
|
7348
6926
|
});
|
|
@@ -7616,7 +7194,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7616
7194
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7617
7195
|
case 2:
|
|
7618
7196
|
_a = Error;
|
|
7619
|
-
_b =
|
|
7197
|
+
_b = parseError;
|
|
7620
7198
|
return [4 /*yield*/, response.json()];
|
|
7621
7199
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7622
7200
|
case 4: return [2 /*return*/];
|
|
@@ -7655,7 +7233,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7655
7233
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7656
7234
|
case 2:
|
|
7657
7235
|
_a = Error;
|
|
7658
|
-
_b =
|
|
7236
|
+
_b = parseError;
|
|
7659
7237
|
return [4 /*yield*/, response.json()];
|
|
7660
7238
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7661
7239
|
case 4: return [2 /*return*/];
|
|
@@ -7693,7 +7271,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7693
7271
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7694
7272
|
case 2:
|
|
7695
7273
|
_a = Error;
|
|
7696
|
-
_b =
|
|
7274
|
+
_b = parseError;
|
|
7697
7275
|
return [4 /*yield*/, response.json()];
|
|
7698
7276
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7699
7277
|
case 4: return [2 /*return*/];
|
|
@@ -7703,10 +7281,66 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7703
7281
|
});
|
|
7704
7282
|
});
|
|
7705
7283
|
};
|
|
7284
|
+
IntegrationClient.prototype.pollForCompletion = function (_a) {
|
|
7285
|
+
var pollUrl = _a.pollUrl, checkInterval = _a.checkInterval, maxTime = _a.maxTime, onStatusUpdate = _a.onStatusUpdate, _b = _a.operationName, operationName = _b === void 0 ? 'Operation' : _b;
|
|
7286
|
+
return __awaiter$2(this, void 0, void 0, function () {
|
|
7287
|
+
var _this = this;
|
|
7288
|
+
return __generator(this, function (_c) {
|
|
7289
|
+
return [2 /*return*/, new Promise(function (resolve) {
|
|
7290
|
+
var attempts = 0;
|
|
7291
|
+
var maxAttempts = maxTime / checkInterval;
|
|
7292
|
+
var checkCompletion = function () { return __awaiter$2(_this, void 0, void 0, function () {
|
|
7293
|
+
var response, data, message, message;
|
|
7294
|
+
return __generator(this, function (_a) {
|
|
7295
|
+
switch (_a.label) {
|
|
7296
|
+
case 0: return [4 /*yield*/, this._fetch(pollUrl, {}, false)];
|
|
7297
|
+
case 1:
|
|
7298
|
+
response = _a.sent();
|
|
7299
|
+
if (!response)
|
|
7300
|
+
return [2 /*return*/];
|
|
7301
|
+
return [4 /*yield*/, response.json()];
|
|
7302
|
+
case 2:
|
|
7303
|
+
data = _a.sent();
|
|
7304
|
+
if (onStatusUpdate) {
|
|
7305
|
+
onStatusUpdate(data);
|
|
7306
|
+
}
|
|
7307
|
+
if (response.ok) {
|
|
7308
|
+
if (data.status === 'complete') {
|
|
7309
|
+
return [2 /*return*/, resolve(data)];
|
|
7310
|
+
}
|
|
7311
|
+
else {
|
|
7312
|
+
attempts += 1;
|
|
7313
|
+
if (attempts < maxAttempts) {
|
|
7314
|
+
setTimeout(checkCompletion, checkInterval);
|
|
7315
|
+
}
|
|
7316
|
+
else {
|
|
7317
|
+
message = "".concat(operationName, " took too long...");
|
|
7318
|
+
console.error(message);
|
|
7319
|
+
return [2 /*return*/, resolve({ status: 'error', message: message })];
|
|
7320
|
+
}
|
|
7321
|
+
}
|
|
7322
|
+
}
|
|
7323
|
+
else {
|
|
7324
|
+
message = parseError(data);
|
|
7325
|
+
console.error(message);
|
|
7326
|
+
if (onStatusUpdate) {
|
|
7327
|
+
onStatusUpdate({ error: message });
|
|
7328
|
+
}
|
|
7329
|
+
return [2 /*return*/, resolve({ status: 'error', message: message })];
|
|
7330
|
+
}
|
|
7331
|
+
return [2 /*return*/];
|
|
7332
|
+
}
|
|
7333
|
+
});
|
|
7334
|
+
}); };
|
|
7335
|
+
setTimeout(checkCompletion, checkInterval);
|
|
7336
|
+
})];
|
|
7337
|
+
});
|
|
7338
|
+
});
|
|
7339
|
+
};
|
|
7706
7340
|
IntegrationClient.prototype.generateEnvelopes = function (action) {
|
|
7707
7341
|
var _this = this;
|
|
7708
7342
|
var _a, _b, _c;
|
|
7709
|
-
var
|
|
7343
|
+
var userId = initInfo().userId;
|
|
7710
7344
|
var signer = fieldValues[action.envelope_signer_field_key];
|
|
7711
7345
|
var runAsync = (_a = action.run_async) !== null && _a !== void 0 ? _a : true;
|
|
7712
7346
|
var documents = (_b = action.documents) !== null && _b !== void 0 ? _b : [];
|
|
@@ -7737,9 +7371,14 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7737
7371
|
if (!runAsync || data.files)
|
|
7738
7372
|
return [2 /*return*/, data];
|
|
7739
7373
|
pollUrl = "".concat(API_URL, "document/form/generate/poll/?fid=").concat(userId, "&dids=").concat(documents);
|
|
7740
|
-
return [4 /*yield*/,
|
|
7374
|
+
return [4 /*yield*/, this.pollForCompletion({
|
|
7375
|
+
pollUrl: pollUrl,
|
|
7376
|
+
checkInterval: this.ENVELOPE_CHECK_INTERVAL,
|
|
7377
|
+
maxTime: this.ENVELOPE_MAX_TIME,
|
|
7378
|
+
operationName: 'Envelope generation'
|
|
7379
|
+
})];
|
|
7741
7380
|
case 2: return [2 /*return*/, _a.sent()];
|
|
7742
|
-
case 3: throw Error(
|
|
7381
|
+
case 3: throw Error(parseError(data));
|
|
7743
7382
|
case 4: return [2 /*return*/];
|
|
7744
7383
|
}
|
|
7745
7384
|
});
|
|
@@ -7783,7 +7422,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7783
7422
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7784
7423
|
case 2:
|
|
7785
7424
|
_a = Error;
|
|
7786
|
-
_b =
|
|
7425
|
+
_b = parseError;
|
|
7787
7426
|
return [4 /*yield*/, response.json()];
|
|
7788
7427
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7789
7428
|
case 4: return [2 /*return*/];
|
|
@@ -7805,7 +7444,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7805
7444
|
if (!((response === null || response === void 0 ? void 0 : response.status) === 400)) return [3 /*break*/, 3];
|
|
7806
7445
|
_a = resolve;
|
|
7807
7446
|
_c = {};
|
|
7808
|
-
_b =
|
|
7447
|
+
_b = parseError;
|
|
7809
7448
|
return [4 /*yield*/, response.json()];
|
|
7810
7449
|
case 2: return [2 /*return*/, _a.apply(void 0, [(_c.error = _b.apply(void 0, [_d.sent()]), _c)])];
|
|
7811
7450
|
case 3:
|
|
@@ -7887,7 +7526,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7887
7526
|
return [4 /*yield*/, response.json()];
|
|
7888
7527
|
case 2:
|
|
7889
7528
|
errorData = _a.sent();
|
|
7890
|
-
return [2 /*return*/, resolve({ error:
|
|
7529
|
+
return [2 /*return*/, resolve({ error: parseError(errorData) })];
|
|
7891
7530
|
case 3:
|
|
7892
7531
|
if (!((response === null || response === void 0 ? void 0 : response.status) === 200)) return [3 /*break*/, 5];
|
|
7893
7532
|
return [4 /*yield*/, response.json()];
|
|
@@ -7982,7 +7621,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7982
7621
|
return [2 /*return*/, finalStatus];
|
|
7983
7622
|
case 6:
|
|
7984
7623
|
_b = Error;
|
|
7985
|
-
_c =
|
|
7624
|
+
_c = parseError;
|
|
7986
7625
|
return [4 /*yield*/, finalResponse.json()];
|
|
7987
7626
|
case 7: throw _b.apply(void 0, [_c.apply(void 0, [_d.sent()])]);
|
|
7988
7627
|
case 8: return [2 /*return*/, false];
|
|
@@ -8071,7 +7710,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8071
7710
|
return [2 /*return*/, otpStatus];
|
|
8072
7711
|
case 3:
|
|
8073
7712
|
_a = Error;
|
|
8074
|
-
_b =
|
|
7713
|
+
_b = parseError;
|
|
8075
7714
|
return [4 /*yield*/, response.json()];
|
|
8076
7715
|
case 4: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
8077
7716
|
case 5: return [2 /*return*/];
|
|
@@ -8081,14 +7720,24 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8081
7720
|
};
|
|
8082
7721
|
IntegrationClient.prototype.sendEmail = function (templateId) {
|
|
8083
7722
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
8084
|
-
var
|
|
8085
|
-
return __generator(this, function (
|
|
8086
|
-
switch (
|
|
7723
|
+
var userId, url, options;
|
|
7724
|
+
return __generator(this, function (_a) {
|
|
7725
|
+
switch (_a.label) {
|
|
8087
7726
|
case 0:
|
|
8088
|
-
|
|
8089
|
-
|
|
7727
|
+
userId = initInfo().userId;
|
|
7728
|
+
url = "".concat(API_URL, "email/logic-rule/");
|
|
7729
|
+
options = {
|
|
7730
|
+
headers: { 'Content-Type': 'application/json' },
|
|
7731
|
+
method: 'POST',
|
|
7732
|
+
body: JSON.stringify({
|
|
7733
|
+
template_id: templateId,
|
|
7734
|
+
form_key: this.formKey,
|
|
7735
|
+
fuser_key: userId
|
|
7736
|
+
})
|
|
7737
|
+
};
|
|
7738
|
+
return [4 /*yield*/, this._fetch(url, options, false)];
|
|
8090
7739
|
case 1:
|
|
8091
|
-
|
|
7740
|
+
_a.sent();
|
|
8092
7741
|
return [2 /*return*/];
|
|
8093
7742
|
}
|
|
8094
7743
|
});
|
|
@@ -8230,16 +7879,43 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
8230
7879
|
});
|
|
8231
7880
|
};
|
|
8232
7881
|
IntegrationClient.prototype.customRolloutAction = function (automationIds, options) {
|
|
7882
|
+
var _a, _b, _c;
|
|
8233
7883
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
8234
|
-
var
|
|
8235
|
-
|
|
8236
|
-
|
|
7884
|
+
var userId, url, reqOptions, res;
|
|
7885
|
+
var _d, _e;
|
|
7886
|
+
return __generator(this, function (_f) {
|
|
7887
|
+
switch (_f.label) {
|
|
8237
7888
|
case 0:
|
|
8238
|
-
|
|
7889
|
+
userId = initInfo().userId;
|
|
7890
|
+
url = "".concat(API_URL, "rollout/custom-trigger/");
|
|
7891
|
+
if (typeof automationIds === 'string')
|
|
7892
|
+
automationIds = [automationIds];
|
|
7893
|
+
reqOptions = {
|
|
7894
|
+
headers: { 'Content-Type': 'application/json' },
|
|
7895
|
+
method: 'POST',
|
|
7896
|
+
body: JSON.stringify({
|
|
7897
|
+
automation_ids: automationIds,
|
|
7898
|
+
sync: (_a = options.waitForCompletion) !== null && _a !== void 0 ? _a : true,
|
|
7899
|
+
multiple: (_b = options.multiple) !== null && _b !== void 0 ? _b : false,
|
|
7900
|
+
payload: fieldValues,
|
|
7901
|
+
form_key: this.formKey,
|
|
7902
|
+
fuser_key: userId
|
|
7903
|
+
})
|
|
7904
|
+
};
|
|
8239
7905
|
return [4 /*yield*/, this.submitQueue];
|
|
8240
7906
|
case 1:
|
|
8241
|
-
|
|
8242
|
-
return [
|
|
7907
|
+
_f.sent();
|
|
7908
|
+
return [4 /*yield*/, this._fetch(url, reqOptions, false)];
|
|
7909
|
+
case 2:
|
|
7910
|
+
res = _f.sent();
|
|
7911
|
+
if (!(res && res.status === 200)) return [3 /*break*/, 4];
|
|
7912
|
+
_d = { ok: true };
|
|
7913
|
+
return [4 /*yield*/, res.json()];
|
|
7914
|
+
case 3: return [2 /*return*/, (_d.payload = _f.sent(), _d)];
|
|
7915
|
+
case 4:
|
|
7916
|
+
_e = { ok: false };
|
|
7917
|
+
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.text())];
|
|
7918
|
+
case 5: return [2 /*return*/, (_e.error = (_c = (_f.sent())) !== null && _c !== void 0 ? _c : '', _e)];
|
|
8243
7919
|
}
|
|
8244
7920
|
});
|
|
8245
7921
|
});
|
|
@@ -22597,6 +22273,9 @@ var getFormContext = function (formUuid) {
|
|
|
22597
22273
|
return [2 /*return*/, formState.runAIExtraction(extractionId, options, pages)];
|
|
22598
22274
|
}); });
|
|
22599
22275
|
},
|
|
22276
|
+
forwardInboxEmail: function (options) {
|
|
22277
|
+
return formState.forwardInboxEmail(options);
|
|
22278
|
+
},
|
|
22600
22279
|
setCalendlyUrl: function (url) { return formState.setCalendlyUrl(url); },
|
|
22601
22280
|
applyAlloyJourney: function (journeyToken, entities) {
|
|
22602
22281
|
return formState.client.alloyJourneyApplication(journeyToken, entities);
|
|
@@ -37967,6 +37646,11 @@ function Form(_a) {
|
|
|
37967
37646
|
return [2 /*return*/, data];
|
|
37968
37647
|
}
|
|
37969
37648
|
});
|
|
37649
|
+
}); },
|
|
37650
|
+
forwardInboxEmail: function (options) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
37651
|
+
return __generator(this, function (_a) {
|
|
37652
|
+
return [2 /*return*/, client.forwardInboxEmail({ options: options })];
|
|
37653
|
+
});
|
|
37970
37654
|
}); }
|
|
37971
37655
|
},
|
|
37972
37656
|
// Avoid all these other obj props going through Object.assign which is not necessary.
|
|
@@ -42578,28 +42262,66 @@ function loadQRScanner() {
|
|
|
42578
42262
|
qrPromise = dynamicImport(QR_SCANNER_LIB_URL);
|
|
42579
42263
|
}
|
|
42580
42264
|
|
|
42581
|
-
|
|
42265
|
+
var API_URL_OPTIONS = {
|
|
42266
|
+
local: 'http://localhost:8006/api/',
|
|
42267
|
+
staging: 'https://staging.feathery.io/api/',
|
|
42268
|
+
production: 'https://api.feathery.io/api/',
|
|
42269
|
+
productionAU: 'https://api-au.feathery.io/api/',
|
|
42270
|
+
productionEU: 'https://api-eu.feathery.io/api/',
|
|
42271
|
+
productionCA: 'https://api-ca.feathery.io/api/'
|
|
42272
|
+
};
|
|
42273
|
+
var CDN_URL_OPTIONS = {
|
|
42274
|
+
local: 'http://localhost:8006/api/',
|
|
42275
|
+
staging: 'https://staging.feathery.io/api/',
|
|
42276
|
+
production: 'https://cdn.feathery.io/api/',
|
|
42277
|
+
productionAU: 'https://cdn-au.feathery.io/api/',
|
|
42278
|
+
productionEU: 'https://cdn-eu.feathery.io/api/',
|
|
42279
|
+
productionCA: 'https://cdn-ca.feathery.io/api/'
|
|
42280
|
+
};
|
|
42281
|
+
var STATIC_URL_OPTIONS = {
|
|
42282
|
+
local: 'http://localhost:8006/api/',
|
|
42283
|
+
staging: 'https://staging.feathery.io/api/',
|
|
42284
|
+
production: 'https://api-static-2.feathery.io/api/',
|
|
42285
|
+
productionAU: 'https://api-au.feathery.io/api/',
|
|
42286
|
+
productionEU: 'https://api-eu.feathery.io/api/',
|
|
42287
|
+
productionCA: 'https://api-ca.feathery.io/api/'
|
|
42288
|
+
};
|
|
42289
|
+
var S3_URL_OPTIONS = {
|
|
42290
|
+
local: 'http://localhost:8006',
|
|
42291
|
+
staging: 's3.us-west-1.amazonaws.com',
|
|
42292
|
+
production: 's3.us-west-1.amazonaws.com',
|
|
42293
|
+
productionAU: 's3.ap-southeast-2.amazonaws.com',
|
|
42294
|
+
productionEU: 's3.eu-west-1.amazonaws.com',
|
|
42295
|
+
productionCA: 's3.ca-central-1.amazonaws.com'
|
|
42296
|
+
};
|
|
42297
|
+
var environment = 'production';
|
|
42582
42298
|
try {
|
|
42583
|
-
|
|
42299
|
+
environment = (process.env.BACKEND_ENV || 'production');
|
|
42584
42300
|
}
|
|
42585
42301
|
catch (e) { } // process.env won't exist in production build
|
|
42586
|
-
var API_URL =
|
|
42587
|
-
var CDN_URL =
|
|
42588
|
-
var STATIC_URL =
|
|
42589
|
-
var S3_URL =
|
|
42302
|
+
var API_URL = API_URL_OPTIONS[environment];
|
|
42303
|
+
var CDN_URL = CDN_URL_OPTIONS[environment];
|
|
42304
|
+
var STATIC_URL = STATIC_URL_OPTIONS[environment];
|
|
42305
|
+
var S3_URL = S3_URL_OPTIONS[environment];
|
|
42590
42306
|
var updateRegionApiUrls = function (region) {
|
|
42591
|
-
|
|
42592
|
-
|
|
42593
|
-
|
|
42594
|
-
|
|
42595
|
-
|
|
42596
|
-
|
|
42597
|
-
|
|
42598
|
-
|
|
42599
|
-
|
|
42600
|
-
|
|
42601
|
-
|
|
42602
|
-
|
|
42307
|
+
if (region === 'au') {
|
|
42308
|
+
CDN_URL = CDN_URL_OPTIONS.productionAU;
|
|
42309
|
+
API_URL = API_URL_OPTIONS.productionAU;
|
|
42310
|
+
STATIC_URL = STATIC_URL_OPTIONS.productionAU;
|
|
42311
|
+
S3_URL = S3_URL_OPTIONS.productionAU;
|
|
42312
|
+
}
|
|
42313
|
+
else if (region === 'eu') {
|
|
42314
|
+
CDN_URL = CDN_URL_OPTIONS.productionEU;
|
|
42315
|
+
API_URL = API_URL_OPTIONS.productionEU;
|
|
42316
|
+
STATIC_URL = STATIC_URL_OPTIONS.productionEU;
|
|
42317
|
+
S3_URL = S3_URL_OPTIONS.productionEU;
|
|
42318
|
+
}
|
|
42319
|
+
else if (region === 'ca') {
|
|
42320
|
+
CDN_URL = CDN_URL_OPTIONS.productionCA;
|
|
42321
|
+
API_URL = API_URL_OPTIONS.productionCA;
|
|
42322
|
+
STATIC_URL = STATIC_URL_OPTIONS.productionCA;
|
|
42323
|
+
S3_URL = S3_URL_OPTIONS.productionCA;
|
|
42324
|
+
}
|
|
42603
42325
|
};
|
|
42604
42326
|
/**
|
|
42605
42327
|
* The number of milliseconds waited until another submitCustom call
|
|
@@ -43407,6 +43129,39 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43407
43129
|
});
|
|
43408
43130
|
});
|
|
43409
43131
|
};
|
|
43132
|
+
// Logic custom APIs
|
|
43133
|
+
FeatheryClient.prototype.runCustomRequest = function (payload, fieldValues) {
|
|
43134
|
+
var _this = this;
|
|
43135
|
+
if (fieldValues === void 0) { fieldValues = null; }
|
|
43136
|
+
var userId = initInfo().userId;
|
|
43137
|
+
var data = {
|
|
43138
|
+
fuser_key: userId,
|
|
43139
|
+
form_key: this.formKey,
|
|
43140
|
+
name: payload.name,
|
|
43141
|
+
method: payload.method,
|
|
43142
|
+
url: payload.url,
|
|
43143
|
+
user_data: payload.data,
|
|
43144
|
+
headers: payload.headers
|
|
43145
|
+
};
|
|
43146
|
+
if (fieldValues) {
|
|
43147
|
+
data.field_values = fieldValues;
|
|
43148
|
+
}
|
|
43149
|
+
var url = "".concat(STATIC_URL, "custom_request/");
|
|
43150
|
+
var options = {
|
|
43151
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43152
|
+
method: 'POST',
|
|
43153
|
+
body: JSON.stringify(data),
|
|
43154
|
+
keepalive: false
|
|
43155
|
+
};
|
|
43156
|
+
var run = function () {
|
|
43157
|
+
return _this._fetch(url, options).then(function (response) {
|
|
43158
|
+
return response ? response.json() : Promise.resolve();
|
|
43159
|
+
});
|
|
43160
|
+
};
|
|
43161
|
+
if (payload.method === 'GET')
|
|
43162
|
+
return run();
|
|
43163
|
+
return this.offlineRequestHandler.runOrSaveRequest(run, url, options, 'customRequest');
|
|
43164
|
+
};
|
|
43410
43165
|
FeatheryClient.prototype.runServerSideLogicRule = function (id) {
|
|
43411
43166
|
var userId = initInfo().userId;
|
|
43412
43167
|
var data = {
|
|
@@ -43429,13 +43184,89 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43429
43184
|
FeatheryClient.prototype.runAIExtraction = function (_a) {
|
|
43430
43185
|
var extractionId = _a.extractionId, options = _a.options, pages = _a.pages, setPollFuserData = _a.setPollFuserData, onStatusUpdate = _a.onStatusUpdate;
|
|
43431
43186
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
43432
|
-
var _b, userId,
|
|
43187
|
+
var runAsync, variantId, meetingUrl, _b, userId, collaboratorId, data, res, response, pollUrl;
|
|
43433
43188
|
return __generator(this, function (_c) {
|
|
43434
43189
|
switch (_c.label) {
|
|
43435
43190
|
case 0:
|
|
43436
|
-
|
|
43437
|
-
|
|
43438
|
-
|
|
43191
|
+
if (typeof options === 'object') {
|
|
43192
|
+
runAsync = !options.waitForCompletion;
|
|
43193
|
+
pages = options.pages;
|
|
43194
|
+
variantId = options.variantId;
|
|
43195
|
+
meetingUrl = options.meetingUrl || undefined;
|
|
43196
|
+
}
|
|
43197
|
+
else {
|
|
43198
|
+
// deprecated usage, options is waitForCompletion
|
|
43199
|
+
runAsync = !options;
|
|
43200
|
+
}
|
|
43201
|
+
_b = initInfo(), userId = _b.userId, collaboratorId = _b.collaboratorId;
|
|
43202
|
+
data = {
|
|
43203
|
+
fuser_key: userId,
|
|
43204
|
+
collaborator_user: collaboratorId,
|
|
43205
|
+
extraction_id: extractionId,
|
|
43206
|
+
extraction_variant_id: variantId,
|
|
43207
|
+
pages: pages,
|
|
43208
|
+
meeting_url: meetingUrl
|
|
43209
|
+
};
|
|
43210
|
+
return [4 /*yield*/, this._fetch("".concat(STATIC_URL, "ai/vision/"), {
|
|
43211
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43212
|
+
method: 'POST',
|
|
43213
|
+
body: JSON.stringify(data)
|
|
43214
|
+
})];
|
|
43215
|
+
case 1:
|
|
43216
|
+
res = _c.sent();
|
|
43217
|
+
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.json())];
|
|
43218
|
+
case 2:
|
|
43219
|
+
response = _c.sent();
|
|
43220
|
+
if (runAsync)
|
|
43221
|
+
return [2 /*return*/, {}];
|
|
43222
|
+
if (response.meeting_info) {
|
|
43223
|
+
setPollFuserData(true);
|
|
43224
|
+
return [2 /*return*/, {}];
|
|
43225
|
+
}
|
|
43226
|
+
pollUrl = "".concat(STATIC_URL, "ai/vision/completion/?fid=").concat(userId, "&eid=").concat(extractionId, "&evid=").concat(variantId !== null && variantId !== void 0 ? variantId : '');
|
|
43227
|
+
return [4 /*yield*/, this.pollForCompletion({
|
|
43228
|
+
pollUrl: pollUrl,
|
|
43229
|
+
checkInterval: this.AI_CHECK_INTERVAL,
|
|
43230
|
+
maxTime: this.AI_MAX_TIME,
|
|
43231
|
+
onStatusUpdate: onStatusUpdate,
|
|
43232
|
+
operationName: 'Extraction'
|
|
43233
|
+
})];
|
|
43234
|
+
case 3: return [2 /*return*/, _c.sent()];
|
|
43235
|
+
}
|
|
43236
|
+
});
|
|
43237
|
+
});
|
|
43238
|
+
};
|
|
43239
|
+
FeatheryClient.prototype.forwardInboxEmail = function (_a) {
|
|
43240
|
+
var options = _a.options;
|
|
43241
|
+
return __awaiter$2(this, void 0, void 0, function () {
|
|
43242
|
+
var userId, url, data, reqOptions, res, _b, _c;
|
|
43243
|
+
return __generator(this, function (_d) {
|
|
43244
|
+
switch (_d.label) {
|
|
43245
|
+
case 0:
|
|
43246
|
+
userId = initInfo().userId;
|
|
43247
|
+
url = "".concat(API_URL, "email/forward/");
|
|
43248
|
+
data = {
|
|
43249
|
+
user_id: userId,
|
|
43250
|
+
recipients: options.emails || [],
|
|
43251
|
+
email_group: options.emailGroup || '',
|
|
43252
|
+
panel_key: this.formKey
|
|
43253
|
+
};
|
|
43254
|
+
reqOptions = {
|
|
43255
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43256
|
+
method: 'POST',
|
|
43257
|
+
body: JSON.stringify(data)
|
|
43258
|
+
};
|
|
43259
|
+
return [4 /*yield*/, this._fetch(url, reqOptions, false)];
|
|
43260
|
+
case 1:
|
|
43261
|
+
res = _d.sent();
|
|
43262
|
+
if (!(res && res.ok)) return [3 /*break*/, 3];
|
|
43263
|
+
return [4 /*yield*/, res.json()];
|
|
43264
|
+
case 2: return [2 /*return*/, _d.sent()];
|
|
43265
|
+
case 3:
|
|
43266
|
+
_b = Error.bind;
|
|
43267
|
+
_c = parseError;
|
|
43268
|
+
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.json())];
|
|
43269
|
+
case 4: throw new (_b.apply(Error, [void 0, _c.apply(void 0, [_d.sent()])]))();
|
|
43439
43270
|
}
|
|
43440
43271
|
});
|
|
43441
43272
|
});
|
|
@@ -43485,20 +43316,41 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43485
43316
|
};
|
|
43486
43317
|
FeatheryClient.prototype.inviteCollaborator = function (usersGroups, templateId) {
|
|
43487
43318
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
43488
|
-
var _a, userId, collaboratorId,
|
|
43319
|
+
var _a, userId, collaboratorId, data, url;
|
|
43320
|
+
var _this = this;
|
|
43489
43321
|
return __generator(this, function (_b) {
|
|
43490
|
-
|
|
43491
|
-
|
|
43492
|
-
|
|
43493
|
-
|
|
43494
|
-
|
|
43495
|
-
|
|
43496
|
-
|
|
43497
|
-
|
|
43498
|
-
|
|
43499
|
-
|
|
43500
|
-
|
|
43501
|
-
|
|
43322
|
+
_a = initInfo(), userId = _a.userId, collaboratorId = _a.collaboratorId;
|
|
43323
|
+
data = {
|
|
43324
|
+
form_key: this.formKey,
|
|
43325
|
+
fuser_key: userId,
|
|
43326
|
+
users_groups: usersGroups,
|
|
43327
|
+
template_id: templateId
|
|
43328
|
+
};
|
|
43329
|
+
if (collaboratorId)
|
|
43330
|
+
data.collaborator_user = collaboratorId;
|
|
43331
|
+
url = "".concat(API_URL, "collaborator/invite/");
|
|
43332
|
+
return [2 /*return*/, this._fetch(url, {
|
|
43333
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43334
|
+
method: 'POST',
|
|
43335
|
+
body: JSON.stringify(data)
|
|
43336
|
+
}, false).then(function (response) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
43337
|
+
var _a, _b;
|
|
43338
|
+
return __generator(this, function (_c) {
|
|
43339
|
+
switch (_c.label) {
|
|
43340
|
+
case 0:
|
|
43341
|
+
if (!response) return [3 /*break*/, 4];
|
|
43342
|
+
if (!response.ok) return [3 /*break*/, 2];
|
|
43343
|
+
return [4 /*yield*/, response.json()];
|
|
43344
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
43345
|
+
case 2:
|
|
43346
|
+
_a = Error;
|
|
43347
|
+
_b = parseError;
|
|
43348
|
+
return [4 /*yield*/, response.json()];
|
|
43349
|
+
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43350
|
+
case 4: return [2 /*return*/];
|
|
43351
|
+
}
|
|
43352
|
+
});
|
|
43353
|
+
}); })];
|
|
43502
43354
|
});
|
|
43503
43355
|
});
|
|
43504
43356
|
};
|
|
@@ -43532,7 +43384,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43532
43384
|
case 1: return [2 /*return*/, _c.sent()];
|
|
43533
43385
|
case 2:
|
|
43534
43386
|
_a = Error;
|
|
43535
|
-
_b =
|
|
43387
|
+
_b = parseError;
|
|
43536
43388
|
return [4 /*yield*/, response.json()];
|
|
43537
43389
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43538
43390
|
case 4: return [2 /*return*/];
|
|
@@ -43569,7 +43421,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43569
43421
|
case 1: return [2 /*return*/, _c.sent()];
|
|
43570
43422
|
case 2:
|
|
43571
43423
|
_a = Error;
|
|
43572
|
-
_b =
|
|
43424
|
+
_b = parseError;
|
|
43573
43425
|
return [4 /*yield*/, response.json()];
|
|
43574
43426
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43575
43427
|
case 4: return [2 /*return*/];
|
|
@@ -43615,7 +43467,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
43615
43467
|
case 3: return [2 /*return*/, { files: files }];
|
|
43616
43468
|
case 4:
|
|
43617
43469
|
_a = Error;
|
|
43618
|
-
_b =
|
|
43470
|
+
_b = parseError;
|
|
43619
43471
|
return [4 /*yield*/, response.json()];
|
|
43620
43472
|
case 5: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
43621
43473
|
case 6: return [2 /*return*/];
|
|
@@ -43731,9 +43583,9 @@ function init(sdkKey, options) {
|
|
|
43731
43583
|
if (runningInClient()) {
|
|
43732
43584
|
// Dynamically load libraries that must be client side
|
|
43733
43585
|
global.scriptjsLoadPromise = import(
|
|
43734
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
43586
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.DNqAP9Nj.js').then(function (n) { return n.s; });
|
|
43735
43587
|
global.webfontloaderPromise = import(
|
|
43736
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
43588
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.Bo43XEHO.js').then(function (n) { return n.w; });
|
|
43737
43589
|
// Client-side tracking logic
|
|
43738
43590
|
if (initState.userTracking === 'cookie') {
|
|
43739
43591
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -43879,7 +43731,7 @@ function getFieldValues() {
|
|
|
43879
43731
|
return __assign({}, fieldValues);
|
|
43880
43732
|
}
|
|
43881
43733
|
function logFeatheryBadge() {
|
|
43882
|
-
console.log('%c Feathery %c v' + "2.12.
|
|
43734
|
+
console.log('%c Feathery %c v' + "2.12.3-pr-1522.4bcc507.0" + ' ', // replaced with real version during build
|
|
43883
43735
|
'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;');
|
|
43884
43736
|
}
|
|
43885
43737
|
|
|
@@ -44226,13 +44078,63 @@ function isElementInViewport(el) {
|
|
|
44226
44078
|
rect.right <= width);
|
|
44227
44079
|
}
|
|
44228
44080
|
function httpHelpers(client, connectorFields) {
|
|
44081
|
+
var _this = this;
|
|
44229
44082
|
if (connectorFields === void 0) { connectorFields = []; }
|
|
44230
|
-
var
|
|
44231
|
-
|
|
44232
|
-
|
|
44233
|
-
|
|
44234
|
-
|
|
44235
|
-
|
|
44083
|
+
var helpers = {};
|
|
44084
|
+
[
|
|
44085
|
+
'GET',
|
|
44086
|
+
'get',
|
|
44087
|
+
'PATCH',
|
|
44088
|
+
'patch',
|
|
44089
|
+
'POST',
|
|
44090
|
+
'post',
|
|
44091
|
+
'PUT',
|
|
44092
|
+
'put',
|
|
44093
|
+
'DELETE',
|
|
44094
|
+
'delete'
|
|
44095
|
+
].forEach(function (method) {
|
|
44096
|
+
return (helpers[method] = function (url, data, headers) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
44097
|
+
var response;
|
|
44098
|
+
return __generator(this, function (_a) {
|
|
44099
|
+
switch (_a.label) {
|
|
44100
|
+
case 0:
|
|
44101
|
+
if (!url)
|
|
44102
|
+
return [2 /*return*/, {}];
|
|
44103
|
+
return [4 /*yield*/, client.runCustomRequest({ method: method.toUpperCase(), url: url, data: data, headers: headers }, getConnectorFieldValues(connectorFields))];
|
|
44104
|
+
case 1:
|
|
44105
|
+
response = _a.sent();
|
|
44106
|
+
return [2 /*return*/, {
|
|
44107
|
+
data: response.data,
|
|
44108
|
+
statusCode: response.status_code,
|
|
44109
|
+
// status_code for backwards compatibility
|
|
44110
|
+
status_code: response.statusCode
|
|
44111
|
+
}];
|
|
44112
|
+
}
|
|
44113
|
+
});
|
|
44114
|
+
}); });
|
|
44115
|
+
});
|
|
44116
|
+
helpers.connect = function (name, data, headers) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
44117
|
+
var response;
|
|
44118
|
+
return __generator(this, function (_a) {
|
|
44119
|
+
switch (_a.label) {
|
|
44120
|
+
case 0:
|
|
44121
|
+
if (!name)
|
|
44122
|
+
return [2 /*return*/, {}];
|
|
44123
|
+
return [4 /*yield*/, client.runCustomRequest({ name: name, data: data, headers: headers }, getConnectorFieldValues(connectorFields))];
|
|
44124
|
+
case 1:
|
|
44125
|
+
response = _a.sent();
|
|
44126
|
+
if (response === null || response === void 0 ? void 0 : response.field_values)
|
|
44127
|
+
// skip server submit when setting field values here
|
|
44128
|
+
// because these values were just created on the server
|
|
44129
|
+
setFieldValues(response === null || response === void 0 ? void 0 : response.field_values, true, true);
|
|
44130
|
+
return [2 /*return*/, {
|
|
44131
|
+
data: response.data,
|
|
44132
|
+
statusCode: response.status_code
|
|
44133
|
+
}];
|
|
44134
|
+
}
|
|
44135
|
+
});
|
|
44136
|
+
}); };
|
|
44137
|
+
return helpers;
|
|
44236
44138
|
}
|
|
44237
44139
|
|
|
44238
44140
|
function runningInClient() {
|
|
@@ -45301,39 +45203,39 @@ breakpoint) {
|
|
|
45301
45203
|
return styles.getTarget('inner-container', undefined, viewport === 'mobile');
|
|
45302
45204
|
};
|
|
45303
45205
|
|
|
45304
|
-
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
45305
|
-
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
45306
|
-
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
45206
|
+
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.IEBDVXp5.js'); });
|
|
45207
|
+
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.C7bZ41Dr.js'); });
|
|
45208
|
+
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.3bbiVByG.js'); });
|
|
45307
45209
|
var CheckboxGroupField = lazy(function () {
|
|
45308
|
-
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
45210
|
+
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.C5QJmvNS.js');
|
|
45309
45211
|
});
|
|
45310
|
-
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
45311
|
-
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
45212
|
+
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.pN448hs2.js'); });
|
|
45213
|
+
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.DtApOSy5.js'); });
|
|
45312
45214
|
var DateSelectorField = lazy(function () {
|
|
45313
|
-
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
45215
|
+
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.DbQ9ZgfN.js');
|
|
45314
45216
|
});
|
|
45315
|
-
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
45217
|
+
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.TccqLkT8.js'); });
|
|
45316
45218
|
var DropdownMultiField = lazy(function () {
|
|
45317
|
-
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
45219
|
+
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.DnA1YwIh.js');
|
|
45318
45220
|
});
|
|
45319
|
-
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
45320
|
-
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
45321
|
-
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
45221
|
+
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.JlaR97bs.js'); });
|
|
45222
|
+
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.nBx09C9l.js'); });
|
|
45223
|
+
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.C2vvoqul.js'); });
|
|
45322
45224
|
var PaymentMethodField = lazy(function () {
|
|
45323
|
-
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
45225
|
+
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.BgCHxykS.js');
|
|
45324
45226
|
});
|
|
45325
|
-
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
45326
|
-
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
45327
|
-
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
45227
|
+
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.CgxfpBL9.js'); });
|
|
45228
|
+
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.CRMp7Yug.js'); });
|
|
45229
|
+
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.pBPbV9ty.js'); });
|
|
45328
45230
|
var RadioButtonGroupField = lazy(function () {
|
|
45329
45231
|
return import(
|
|
45330
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
45232
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.3ZKChQii.js');
|
|
45331
45233
|
});
|
|
45332
|
-
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
45333
|
-
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
45334
|
-
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
45335
|
-
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
45336
|
-
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
45234
|
+
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.Cvc2tCaE.js'); });
|
|
45235
|
+
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.BvXP5j-k.js'); });
|
|
45236
|
+
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.Bzcb4acF.js'); });
|
|
45237
|
+
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.DE7Dh4ea.js'); });
|
|
45238
|
+
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.Cfs1JnS1.js'); });
|
|
45337
45239
|
var Fields = {
|
|
45338
45240
|
AddressLine1: AddressLine1,
|
|
45339
45241
|
ButtonGroupField: ButtonGroupField,
|