@feathery/react 2.15.1 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Form/index.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/Actions.d.ts +3 -1
- package/cjs/elements/basic/TableElement/Actions.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/Search.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/Sort.d.ts +5 -0
- package/cjs/elements/basic/TableElement/Sort.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/index.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/styles.d.ts +1 -1
- package/cjs/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/useTableData.d.ts +7 -0
- package/cjs/elements/basic/TableElement/useTableData.d.ts.map +1 -1
- package/cjs/{fthry_FormControl.DhxdiYw6.js → fthry_FormControl.BKhBgGR8.js} +1 -1
- package/cjs/{fthry_InlineTooltip.BgAXRUIt.js → fthry_InlineTooltip.DzUT7zk0.js} +2 -2
- package/cjs/{fthry_Overlay.D7IM1ywp.js → fthry_Overlay.BpmW4YfX.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.NEoloWMI.js → fthry_PaymentMethodField.CRiUSe8P.js} +4 -4
- package/cjs/{fthry_Placeholder.D5C0aH2S.js → fthry_Placeholder.BQbbxB6F.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.CmLMyaN5.js → fthry_ShowEyeIcon.hB_ow6JC.js} +1 -1
- package/cjs/{fthry_index.Ci8dMyBp.js → fthry_index.4N1YhCUq.js} +1 -1
- package/cjs/{fthry_index.JRP5lBfp.js → fthry_index.9iTTBFyN.js} +5 -5
- package/cjs/{fthry_index.GeYRayLh.js → fthry_index.B-CV6GlF.js} +1 -1
- package/cjs/{fthry_index.Bq3nU0FH.js → fthry_index.B9kpJ8RF.js} +6 -6
- package/cjs/{fthry_index.WDI9ExUl.js → fthry_index.BClazNwU.js} +1 -1
- package/cjs/{fthry_index.DzpGyyn4.js → fthry_index.BNmTPE57.js} +5 -5
- package/cjs/{fthry_index.BgeTdwT5.js → fthry_index.BT-MMWKW.js} +2 -2
- package/cjs/{fthry_index.By8RWuUY.js → fthry_index.BcS0pFWC.js} +6 -6
- package/cjs/{fthry_index.Bb1R5GZK.js → fthry_index.Biu3gbsh.js} +2 -2
- package/cjs/{fthry_index.CzzIM_Es.js → fthry_index.CBH-w87m.js} +602 -463
- package/cjs/{fthry_index.DDjTLR_C.js → fthry_index.CBq25pIU.js} +6 -6
- package/cjs/{fthry_index.BFpcCw2o.js → fthry_index.CbkwCml1.js} +1 -1
- package/cjs/{fthry_index.DLnigFf3.js → fthry_index.Cepb73QX.js} +4 -4
- package/cjs/{fthry_index.DXm31Dvn.js → fthry_index.CnCLJycW.js} +3 -3
- package/cjs/{fthry_index.D4rjZ-iU.js → fthry_index.CslonO6n.js} +4 -4
- package/cjs/{fthry_index.CrFjXWLg.js → fthry_index.CusiJzmn.js} +3 -3
- package/cjs/{fthry_index.CgMWWz7f.js → fthry_index.D--uB97c.js} +1 -1
- package/cjs/{fthry_index.CkmA933O.js → fthry_index.DLwBzlAm.js} +331 -59
- package/cjs/{fthry_index.BJYH_2P6.js → fthry_index.DOiXixKa.js} +1 -1
- package/cjs/{fthry_index.BK_jaGHn.js → fthry_index.DmsSGjy7.js} +5 -5
- package/cjs/{fthry_index.CbfDILWu.js → fthry_index.YRUJ420g.js} +4 -4
- package/cjs/{fthry_index.Bd1HfYvE.js → fthry_index.cplrWgvC.js} +5 -5
- package/cjs/{fthry_index.BqS0kCfh.js → fthry_index.lqNJzzej.js} +1 -1
- package/cjs/{fthry_index.E_vLB-7s.js → fthry_index.wYrRKH_Q.js} +8 -8
- package/cjs/{fthry_input.kxr0lkUP.js → fthry_input.Dt2FevPi.js} +1 -1
- package/cjs/{fthry_script.CpqGoZRW.js → fthry_script.Tl6aGziG.js} +1 -1
- package/cjs/{fthry_styles.UURZE2St.js → fthry_styles.Pvk5-k7a.js} +1 -1
- package/cjs/{fthry_useElementSize.B7mqB2ri.js → fthry_useElementSize.BFoAW8dM.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.DFHAEpBn.js → fthry_useSalesforceSync.CGHmB1Kd.js} +1 -1
- package/cjs/{fthry_webfontloader.COsYlNwD.js → fthry_webfontloader.CeAHWOr6.js} +1 -1
- package/cjs/index.d.ts +3 -2
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/utils/error.d.ts +0 -5
- package/cjs/utils/error.d.ts.map +1 -1
- package/cjs/utils/featheryClient/index.d.ts +13 -20
- package/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/cjs/utils/featheryClient/integrationClient.d.ts +2 -8
- package/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/cjs/utils/featheryClient/utils.d.ts.map +1 -1
- package/cjs/utils/formContext.d.ts +3 -1
- package/cjs/utils/formContext.d.ts.map +1 -1
- package/cjs/utils/formHelperFunctions.d.ts.map +1 -1
- package/cjs/utils/internalState.d.ts +2 -12
- package/cjs/utils/internalState.d.ts.map +1 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/Actions.d.ts +3 -1
- package/dist/elements/basic/TableElement/Actions.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/Search.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/Sort.d.ts +5 -0
- package/dist/elements/basic/TableElement/Sort.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/index.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/styles.d.ts +1 -1
- package/dist/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/useTableData.d.ts +7 -0
- package/dist/elements/basic/TableElement/useTableData.d.ts.map +1 -1
- package/dist/{fthry_FormControl.CikgGb3C.js → fthry_FormControl.XVhBC21r.js} +1 -1
- package/dist/{fthry_InlineTooltip.BpfxcSEn.js → fthry_InlineTooltip.B5HOzwap.js} +2 -2
- package/dist/{fthry_Overlay.CJVfag7c.js → fthry_Overlay.Bimyn9cP.js} +1 -1
- package/dist/{fthry_PaymentMethodField.BpA_xhqt.js → fthry_PaymentMethodField.DC42S83Q.js} +4 -4
- package/dist/{fthry_Placeholder.DwCFN6a9.js → fthry_Placeholder.BSJmJpdc.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.D6nQhesH.js → fthry_ShowEyeIcon.B9PAnnc8.js} +1 -1
- package/dist/{fthry_index.D9VjMJ_U.js → fthry_index.1C0U53je.js} +1 -1
- package/dist/{fthry_index.B84L3MVC.js → fthry_index.B0tXZhK_.js} +1 -1
- package/dist/{fthry_index.DhU16s57.js → fthry_index.BQH7UQHm.js} +5 -5
- package/dist/{fthry_index.BzrcCLzO.js → fthry_index.C2MFMacA.js} +4 -4
- package/dist/{fthry_index.BEZmvsoo.js → fthry_index.C8otB4PR.js} +5 -5
- package/dist/{fthry_index.B7VWXvgC.js → fthry_index.C9rpuLX0.js} +4 -4
- package/dist/{fthry_index.BSEfDQAc.js → fthry_index.CHndK5Ku.js} +2 -2
- package/dist/{fthry_index.DH2fsNWG.js → fthry_index.CJ2JTPaM.js} +3 -3
- package/dist/{fthry_index.NOuMR_hq.js → fthry_index.CRNNh-Vr.js} +6 -6
- package/dist/{fthry_index.OHN-Iv2R.js → fthry_index.CZMlc0Uq.js} +1 -1
- package/dist/{fthry_index.DoP7RwIP.js → fthry_index.Cqaf2wwS.js} +1 -1
- package/dist/{fthry_index.CJKGRCG-.js → fthry_index.D-Z9XSa-.js} +3 -3
- package/dist/{fthry_index.D9AKkBzu.js → fthry_index.D580ix-P.js} +1 -1
- package/dist/{fthry_index.BsNCOSBE.js → fthry_index.DOn8TnD9.js} +5 -5
- package/dist/{fthry_index.t4v0qqgv.js → fthry_index.DX3eUw60.js} +6 -6
- package/dist/{fthry_index.Fs86Fy9Y.js → fthry_index.DX823K0A.js} +5 -5
- package/dist/{fthry_index.BAhh3Pz6.js → fthry_index.DclC8fSK.js} +331 -59
- package/dist/{fthry_index.m7CZv4YY.js → fthry_index.DeVEe6wK.js} +4 -4
- package/dist/{fthry_index.Bz07r-AM.js → fthry_index.DuaCIs62.js} +1 -1
- package/dist/{fthry_index.Dgmpm9wy.js → fthry_index.DuaZsChW.js} +6 -6
- package/dist/{fthry_index.Dy4nSWZa.js → fthry_index.DucoThu1.js} +1 -1
- package/dist/{fthry_index.BsEfTy-x.js → fthry_index.Duj4YwU5.js} +8 -8
- package/dist/{fthry_index.B-oHlMGi.js → fthry_index.dbHyG7ZF.js} +2 -2
- package/dist/{fthry_index.y4j9reIZ.js → fthry_index.uXGVOaal.js} +602 -463
- package/dist/{fthry_input.Cb2u4VEf.js → fthry_input.ByujwKdQ.js} +1 -1
- package/dist/{fthry_script.C5O1ZNQQ.js → fthry_script.c1JhCd_N.js} +1 -1
- package/dist/{fthry_styles.DGB23xLr.js → fthry_styles.ChVA_k1Q.js} +1 -1
- package/dist/{fthry_useElementSize.CBdpS9aW.js → fthry_useElementSize.rXTn4Y2Q.js} +1 -1
- package/dist/{fthry_useSalesforceSync.Cae_lMG1.js → fthry_useSalesforceSync.CksS0l4W.js} +1 -1
- package/dist/{fthry_webfontloader.DAANkO2-.js → fthry_webfontloader.E26hycV1.js} +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/error.d.ts +0 -5
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts +13 -20
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/utils/featheryClient/integrationClient.d.ts +2 -8
- 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 +3 -1
- package/dist/utils/formContext.d.ts.map +1 -1
- package/dist/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +2 -12
- package/dist/utils/internalState.d.ts.map +1 -1
- package/package.json +2 -1
- package/umd/{509.341a4196aad912adb28d.js → 509.a863f8749c28540476bb.js} +2 -2
- package/umd/TableElement.8941c979f39547669b6a.js +1 -0
- package/umd/index.js +1 -1
- package/umd/TableElement.ef63774f461682dd3ac9.js +0 -1
- /package/umd/{509.341a4196aad912adb28d.js.LICENSE.txt → 509.a863f8749c28540476bb.js.LICENSE.txt} +0 -0
|
@@ -5759,66 +5759,6 @@ 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
|
-
|
|
5822
5762
|
function encodeGetParams(params) {
|
|
5823
5763
|
return (Object.entries(params)
|
|
5824
5764
|
// @ts-expect-error TS(2345): Argument of type '(uriComponent: string | number |... Remove this comment to see the full error message
|
|
@@ -5879,6 +5819,507 @@ function numMatchingItems(arr1, arr2) {
|
|
|
5879
5819
|
return i;
|
|
5880
5820
|
}
|
|
5881
5821
|
|
|
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, getFieldValues, 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, getFieldValues?.(), 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, getFieldValues?.(), 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
|
+
|
|
5882
6323
|
var conflictAlertShown = false;
|
|
5883
6324
|
function checkResponseSuccess(response) {
|
|
5884
6325
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
@@ -5907,7 +6348,7 @@ function checkResponseSuccess(response) {
|
|
|
5907
6348
|
console.error(payload.toString());
|
|
5908
6349
|
return [2 /*return*/];
|
|
5909
6350
|
case 4: throw new SDKKeyError();
|
|
5910
|
-
case 5: throw new FetchError("Can't find object");
|
|
6351
|
+
case 5: throw new distExports$2.FetchError("Can't find object");
|
|
5911
6352
|
case 6:
|
|
5912
6353
|
// prevent multiple 409s from displaying multiple alerts
|
|
5913
6354
|
if (conflictAlertShown)
|
|
@@ -5918,8 +6359,8 @@ function checkResponseSuccess(response) {
|
|
|
5918
6359
|
featheryWindow().alert('This form has been updated. Please fill it out again.');
|
|
5919
6360
|
location.reload();
|
|
5920
6361
|
return [2 /*return*/];
|
|
5921
|
-
case 7: throw new FetchError('Internal server error');
|
|
5922
|
-
case 8: throw new FetchError('Unknown error');
|
|
6362
|
+
case 7: throw new distExports$2.FetchError('Internal server error');
|
|
6363
|
+
case 8: throw new distExports$2.FetchError('Unknown error');
|
|
5923
6364
|
}
|
|
5924
6365
|
});
|
|
5925
6366
|
});
|
|
@@ -6870,26 +7311,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
6870
7311
|
if (parseResponse === void 0) { parseResponse = true; }
|
|
6871
7312
|
if (propagateNetworkErrors === void 0) { propagateNetworkErrors = false; }
|
|
6872
7313
|
var sdkKey = initInfo().sdkKey;
|
|
6873
|
-
|
|
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) {
|
|
7314
|
+
return distExports$2.apiFetch(sdkKey, url, options, parseResponse).catch(function (e) {
|
|
6893
7315
|
var _a;
|
|
6894
7316
|
// Ignore TypeErrors if form has redirected because `fetch` in
|
|
6895
7317
|
// Safari will error after redirect
|
|
@@ -6920,7 +7342,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
6920
7342
|
payload = _a.sent();
|
|
6921
7343
|
if ((res === null || res === void 0 ? void 0 : res.status) === 200)
|
|
6922
7344
|
return [2 /*return*/, { token: payload.link_token }];
|
|
6923
|
-
return [2 /*return*/, { err:
|
|
7345
|
+
return [2 /*return*/, { err: distExports$2.parseAPIError(payload) || 'Ran into an error' }];
|
|
6924
7346
|
}
|
|
6925
7347
|
});
|
|
6926
7348
|
});
|
|
@@ -7194,7 +7616,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7194
7616
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7195
7617
|
case 2:
|
|
7196
7618
|
_a = Error;
|
|
7197
|
-
_b =
|
|
7619
|
+
_b = distExports$2.parseAPIError;
|
|
7198
7620
|
return [4 /*yield*/, response.json()];
|
|
7199
7621
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7200
7622
|
case 4: return [2 /*return*/];
|
|
@@ -7233,7 +7655,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7233
7655
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7234
7656
|
case 2:
|
|
7235
7657
|
_a = Error;
|
|
7236
|
-
_b =
|
|
7658
|
+
_b = distExports$2.parseAPIError;
|
|
7237
7659
|
return [4 /*yield*/, response.json()];
|
|
7238
7660
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7239
7661
|
case 4: return [2 /*return*/];
|
|
@@ -7271,7 +7693,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7271
7693
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7272
7694
|
case 2:
|
|
7273
7695
|
_a = Error;
|
|
7274
|
-
_b =
|
|
7696
|
+
_b = distExports$2.parseAPIError;
|
|
7275
7697
|
return [4 /*yield*/, response.json()];
|
|
7276
7698
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7277
7699
|
case 4: return [2 /*return*/];
|
|
@@ -7281,66 +7703,10 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7281
7703
|
});
|
|
7282
7704
|
});
|
|
7283
7705
|
};
|
|
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
|
-
};
|
|
7340
7706
|
IntegrationClient.prototype.generateEnvelopes = function (action) {
|
|
7341
7707
|
var _this = this;
|
|
7342
7708
|
var _a, _b, _c;
|
|
7343
|
-
var
|
|
7709
|
+
var _d = initInfo(), userId = _d.userId, sdkKey = _d.sdkKey;
|
|
7344
7710
|
var signer = fieldValues[action.envelope_signer_field_key];
|
|
7345
7711
|
var runAsync = (_a = action.run_async) !== null && _a !== void 0 ? _a : true;
|
|
7346
7712
|
var documents = (_b = action.documents) !== null && _b !== void 0 ? _b : [];
|
|
@@ -7371,14 +7737,9 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7371
7737
|
if (!runAsync || data.files)
|
|
7372
7738
|
return [2 /*return*/, data];
|
|
7373
7739
|
pollUrl = "".concat(API_URL, "document/form/generate/poll/?fid=").concat(userId, "&dids=").concat(documents);
|
|
7374
|
-
return [4 /*yield*/,
|
|
7375
|
-
pollUrl: pollUrl,
|
|
7376
|
-
checkInterval: this.ENVELOPE_CHECK_INTERVAL,
|
|
7377
|
-
maxTime: this.ENVELOPE_MAX_TIME,
|
|
7378
|
-
operationName: 'Envelope generation'
|
|
7379
|
-
})];
|
|
7740
|
+
return [4 /*yield*/, distExports$2.pollForCompletion(sdkKey, pollUrl, this.ENVELOPE_CHECK_INTERVAL, this.ENVELOPE_MAX_TIME, 'Envelope generation')];
|
|
7380
7741
|
case 2: return [2 /*return*/, _a.sent()];
|
|
7381
|
-
case 3: throw Error(
|
|
7742
|
+
case 3: throw Error(distExports$2.parseAPIError(data));
|
|
7382
7743
|
case 4: return [2 /*return*/];
|
|
7383
7744
|
}
|
|
7384
7745
|
});
|
|
@@ -7422,7 +7783,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7422
7783
|
case 1: return [2 /*return*/, _c.sent()];
|
|
7423
7784
|
case 2:
|
|
7424
7785
|
_a = Error;
|
|
7425
|
-
_b =
|
|
7786
|
+
_b = distExports$2.parseAPIError;
|
|
7426
7787
|
return [4 /*yield*/, response.json()];
|
|
7427
7788
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7428
7789
|
case 4: return [2 /*return*/];
|
|
@@ -7444,7 +7805,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7444
7805
|
if (!((response === null || response === void 0 ? void 0 : response.status) === 400)) return [3 /*break*/, 3];
|
|
7445
7806
|
_a = resolve;
|
|
7446
7807
|
_c = {};
|
|
7447
|
-
_b =
|
|
7808
|
+
_b = distExports$2.parseAPIError;
|
|
7448
7809
|
return [4 /*yield*/, response.json()];
|
|
7449
7810
|
case 2: return [2 /*return*/, _a.apply(void 0, [(_c.error = _b.apply(void 0, [_d.sent()]), _c)])];
|
|
7450
7811
|
case 3:
|
|
@@ -7526,7 +7887,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7526
7887
|
return [4 /*yield*/, response.json()];
|
|
7527
7888
|
case 2:
|
|
7528
7889
|
errorData = _a.sent();
|
|
7529
|
-
return [2 /*return*/, resolve({ error:
|
|
7890
|
+
return [2 /*return*/, resolve({ error: distExports$2.parseAPIError(errorData) })];
|
|
7530
7891
|
case 3:
|
|
7531
7892
|
if (!((response === null || response === void 0 ? void 0 : response.status) === 200)) return [3 /*break*/, 5];
|
|
7532
7893
|
return [4 /*yield*/, response.json()];
|
|
@@ -7621,7 +7982,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7621
7982
|
return [2 /*return*/, finalStatus];
|
|
7622
7983
|
case 6:
|
|
7623
7984
|
_b = Error;
|
|
7624
|
-
_c =
|
|
7985
|
+
_c = distExports$2.parseAPIError;
|
|
7625
7986
|
return [4 /*yield*/, finalResponse.json()];
|
|
7626
7987
|
case 7: throw _b.apply(void 0, [_c.apply(void 0, [_d.sent()])]);
|
|
7627
7988
|
case 8: return [2 /*return*/, false];
|
|
@@ -7710,7 +8071,7 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7710
8071
|
return [2 /*return*/, otpStatus];
|
|
7711
8072
|
case 3:
|
|
7712
8073
|
_a = Error;
|
|
7713
|
-
_b =
|
|
8074
|
+
_b = distExports$2.parseAPIError;
|
|
7714
8075
|
return [4 /*yield*/, response.json()];
|
|
7715
8076
|
case 4: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
7716
8077
|
case 5: return [2 /*return*/];
|
|
@@ -7720,24 +8081,14 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7720
8081
|
};
|
|
7721
8082
|
IntegrationClient.prototype.sendEmail = function (templateId) {
|
|
7722
8083
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
7723
|
-
var
|
|
7724
|
-
return __generator(this, function (
|
|
7725
|
-
switch (
|
|
8084
|
+
var _a, userId, sdkKey;
|
|
8085
|
+
return __generator(this, function (_b) {
|
|
8086
|
+
switch (_b.label) {
|
|
7726
8087
|
case 0:
|
|
7727
|
-
|
|
7728
|
-
|
|
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)];
|
|
8088
|
+
_a = initInfo(), userId = _a.userId, sdkKey = _a.sdkKey;
|
|
8089
|
+
return [4 /*yield*/, distExports$2.sendEmail(sdkKey, userId !== null && userId !== void 0 ? userId : '', this.formKey, templateId)];
|
|
7739
8090
|
case 1:
|
|
7740
|
-
|
|
8091
|
+
_b.sent();
|
|
7741
8092
|
return [2 /*return*/];
|
|
7742
8093
|
}
|
|
7743
8094
|
});
|
|
@@ -7879,43 +8230,16 @@ var IntegrationClient = /** @class */ (function () {
|
|
|
7879
8230
|
});
|
|
7880
8231
|
};
|
|
7881
8232
|
IntegrationClient.prototype.customRolloutAction = function (automationIds, options) {
|
|
7882
|
-
var _a, _b, _c;
|
|
7883
8233
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
7884
|
-
var
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
switch (_f.label) {
|
|
8234
|
+
var _a, userId, sdkKey;
|
|
8235
|
+
return __generator(this, function (_b) {
|
|
8236
|
+
switch (_b.label) {
|
|
7888
8237
|
case 0:
|
|
7889
|
-
|
|
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
|
-
};
|
|
8238
|
+
_a = initInfo(), userId = _a.userId, sdkKey = _a.sdkKey;
|
|
7905
8239
|
return [4 /*yield*/, this.submitQueue];
|
|
7906
8240
|
case 1:
|
|
7907
|
-
|
|
7908
|
-
return [
|
|
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)];
|
|
8241
|
+
_b.sent();
|
|
8242
|
+
return [2 /*return*/, distExports$2.customRolloutAction(sdkKey, automationIds, this.formKey, fieldValues, options, userId)];
|
|
7919
8243
|
}
|
|
7920
8244
|
});
|
|
7921
8245
|
});
|
|
@@ -22281,9 +22605,7 @@ var getFormContext = function (formUuid) {
|
|
|
22281
22605
|
return [2 /*return*/, formState.runAIExtraction(extractionId, options, pages)];
|
|
22282
22606
|
}); });
|
|
22283
22607
|
},
|
|
22284
|
-
forwardInboxEmail: function (options) {
|
|
22285
|
-
return formState.forwardInboxEmail(options);
|
|
22286
|
-
},
|
|
22608
|
+
forwardInboxEmail: function (options) { return formState.forwardInboxEmail(options); },
|
|
22287
22609
|
setCalendlyUrl: function (url) { return formState.setCalendlyUrl(url); },
|
|
22288
22610
|
applyAlloyJourney: function (journeyToken, entities) {
|
|
22289
22611
|
return formState.client.alloyJourneyApplication(journeyToken, entities);
|
|
@@ -44057,66 +44379,28 @@ var EventQueue = /** @class */ (function () {
|
|
|
44057
44379
|
return EventQueue;
|
|
44058
44380
|
}());
|
|
44059
44381
|
|
|
44060
|
-
|
|
44061
|
-
local: 'http://localhost:8006/api/',
|
|
44062
|
-
staging: 'https://staging.feathery.io/api/',
|
|
44063
|
-
production: 'https://api.feathery.io/api/',
|
|
44064
|
-
productionAU: 'https://api-au.feathery.io/api/',
|
|
44065
|
-
productionEU: 'https://api-eu.feathery.io/api/',
|
|
44066
|
-
productionCA: 'https://api-ca.feathery.io/api/'
|
|
44067
|
-
};
|
|
44068
|
-
var CDN_URL_OPTIONS = {
|
|
44069
|
-
local: 'http://localhost:8006/api/',
|
|
44070
|
-
staging: 'https://staging.feathery.io/api/',
|
|
44071
|
-
production: 'https://cdn.feathery.io/api/',
|
|
44072
|
-
productionAU: 'https://cdn-au.feathery.io/api/',
|
|
44073
|
-
productionEU: 'https://cdn-eu.feathery.io/api/',
|
|
44074
|
-
productionCA: 'https://cdn-ca.feathery.io/api/'
|
|
44075
|
-
};
|
|
44076
|
-
var STATIC_URL_OPTIONS = {
|
|
44077
|
-
local: 'http://localhost:8006/api/',
|
|
44078
|
-
staging: 'https://staging.feathery.io/api/',
|
|
44079
|
-
production: 'https://api-static-2.feathery.io/api/',
|
|
44080
|
-
productionAU: 'https://api-au.feathery.io/api/',
|
|
44081
|
-
productionEU: 'https://api-eu.feathery.io/api/',
|
|
44082
|
-
productionCA: 'https://api-ca.feathery.io/api/'
|
|
44083
|
-
};
|
|
44084
|
-
var S3_URL_OPTIONS = {
|
|
44085
|
-
local: 'http://localhost:8006',
|
|
44086
|
-
staging: 's3.us-west-1.amazonaws.com',
|
|
44087
|
-
production: 's3.us-west-1.amazonaws.com',
|
|
44088
|
-
productionAU: 's3.ap-southeast-2.amazonaws.com',
|
|
44089
|
-
productionEU: 's3.eu-west-1.amazonaws.com',
|
|
44090
|
-
productionCA: 's3.ca-central-1.amazonaws.com'
|
|
44091
|
-
};
|
|
44092
|
-
var environment = 'production';
|
|
44382
|
+
distExports$2.setEnvironment('production');
|
|
44093
44383
|
try {
|
|
44094
|
-
|
|
44384
|
+
distExports$2.setEnvironment((process.env.BACKEND_ENV || 'production'));
|
|
44095
44385
|
}
|
|
44096
44386
|
catch (e) { } // process.env won't exist in production build
|
|
44097
|
-
var API_URL =
|
|
44098
|
-
var CDN_URL =
|
|
44099
|
-
var STATIC_URL =
|
|
44100
|
-
var S3_URL =
|
|
44387
|
+
var API_URL = distExports$2.getApiUrl();
|
|
44388
|
+
var CDN_URL = distExports$2.getCdnUrl();
|
|
44389
|
+
var STATIC_URL = distExports$2.getStaticUrl();
|
|
44390
|
+
var S3_URL = distExports$2.getS3Url();
|
|
44101
44391
|
var updateRegionApiUrls = function (region) {
|
|
44102
|
-
|
|
44103
|
-
|
|
44104
|
-
|
|
44105
|
-
|
|
44106
|
-
|
|
44107
|
-
|
|
44108
|
-
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
|
|
44113
|
-
|
|
44114
|
-
else if (region === 'ca') {
|
|
44115
|
-
CDN_URL = CDN_URL_OPTIONS.productionCA;
|
|
44116
|
-
API_URL = API_URL_OPTIONS.productionCA;
|
|
44117
|
-
STATIC_URL = STATIC_URL_OPTIONS.productionCA;
|
|
44118
|
-
S3_URL = S3_URL_OPTIONS.productionCA;
|
|
44119
|
-
}
|
|
44392
|
+
var environmentMap = {
|
|
44393
|
+
au: 'productionAU',
|
|
44394
|
+
ca: 'productionCA',
|
|
44395
|
+
eu: 'productionEU'
|
|
44396
|
+
};
|
|
44397
|
+
if (!environmentMap[region])
|
|
44398
|
+
return;
|
|
44399
|
+
distExports$2.setEnvironment(environmentMap[region]);
|
|
44400
|
+
API_URL = distExports$2.getApiUrl();
|
|
44401
|
+
CDN_URL = distExports$2.getCdnUrl();
|
|
44402
|
+
STATIC_URL = distExports$2.getStaticUrl();
|
|
44403
|
+
S3_URL = distExports$2.getS3Url();
|
|
44120
44404
|
};
|
|
44121
44405
|
/**
|
|
44122
44406
|
* The number of milliseconds waited until another submitCustom call
|
|
@@ -44968,39 +45252,6 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
44968
45252
|
});
|
|
44969
45253
|
});
|
|
44970
45254
|
};
|
|
44971
|
-
// Logic custom APIs
|
|
44972
|
-
FeatheryClient.prototype.runCustomRequest = function (payload, fieldValues) {
|
|
44973
|
-
var _this = this;
|
|
44974
|
-
if (fieldValues === void 0) { fieldValues = null; }
|
|
44975
|
-
var userId = initInfo().userId;
|
|
44976
|
-
var data = {
|
|
44977
|
-
fuser_key: userId,
|
|
44978
|
-
form_key: this.formKey,
|
|
44979
|
-
name: payload.name,
|
|
44980
|
-
method: payload.method,
|
|
44981
|
-
url: payload.url,
|
|
44982
|
-
user_data: payload.data,
|
|
44983
|
-
headers: payload.headers
|
|
44984
|
-
};
|
|
44985
|
-
if (fieldValues) {
|
|
44986
|
-
data.field_values = fieldValues;
|
|
44987
|
-
}
|
|
44988
|
-
var url = "".concat(STATIC_URL, "custom_request/");
|
|
44989
|
-
var options = {
|
|
44990
|
-
headers: { 'Content-Type': 'application/json' },
|
|
44991
|
-
method: 'POST',
|
|
44992
|
-
body: JSON.stringify(data),
|
|
44993
|
-
keepalive: false
|
|
44994
|
-
};
|
|
44995
|
-
var run = function () {
|
|
44996
|
-
return _this._fetch(url, options).then(function (response) {
|
|
44997
|
-
return response ? response.json() : Promise.resolve();
|
|
44998
|
-
});
|
|
44999
|
-
};
|
|
45000
|
-
if (payload.method === 'GET')
|
|
45001
|
-
return run();
|
|
45002
|
-
return this.offlineRequestHandler.runOrSaveRequest(run, url, options, 'customRequest');
|
|
45003
|
-
};
|
|
45004
45255
|
FeatheryClient.prototype.runServerSideLogicRule = function (id) {
|
|
45005
45256
|
var userId = initInfo().userId;
|
|
45006
45257
|
var data = {
|
|
@@ -45023,54 +45274,13 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45023
45274
|
FeatheryClient.prototype.runAIExtraction = function (_a) {
|
|
45024
45275
|
var extractionId = _a.extractionId, options = _a.options, pages = _a.pages, setPollFuserData = _a.setPollFuserData, onStatusUpdate = _a.onStatusUpdate;
|
|
45025
45276
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
45026
|
-
var
|
|
45277
|
+
var _b, userId, sdkKey, collaboratorId;
|
|
45027
45278
|
return __generator(this, function (_c) {
|
|
45028
45279
|
switch (_c.label) {
|
|
45029
45280
|
case 0:
|
|
45030
|
-
|
|
45031
|
-
|
|
45032
|
-
|
|
45033
|
-
variantId = options.variantId;
|
|
45034
|
-
meetingUrl = options.meetingUrl || undefined;
|
|
45035
|
-
}
|
|
45036
|
-
else {
|
|
45037
|
-
// deprecated usage, options is waitForCompletion
|
|
45038
|
-
runAsync = !options;
|
|
45039
|
-
}
|
|
45040
|
-
_b = initInfo(), userId = _b.userId, collaboratorId = _b.collaboratorId;
|
|
45041
|
-
data = {
|
|
45042
|
-
fuser_key: userId,
|
|
45043
|
-
collaborator_user: collaboratorId,
|
|
45044
|
-
extraction_id: extractionId,
|
|
45045
|
-
extraction_variant_id: variantId,
|
|
45046
|
-
pages: pages,
|
|
45047
|
-
meeting_url: meetingUrl
|
|
45048
|
-
};
|
|
45049
|
-
return [4 /*yield*/, this._fetch("".concat(STATIC_URL, "ai/vision/"), {
|
|
45050
|
-
headers: { 'Content-Type': 'application/json' },
|
|
45051
|
-
method: 'POST',
|
|
45052
|
-
body: JSON.stringify(data)
|
|
45053
|
-
})];
|
|
45054
|
-
case 1:
|
|
45055
|
-
res = _c.sent();
|
|
45056
|
-
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.json())];
|
|
45057
|
-
case 2:
|
|
45058
|
-
response = _c.sent();
|
|
45059
|
-
if (runAsync)
|
|
45060
|
-
return [2 /*return*/, {}];
|
|
45061
|
-
if (response.meeting_info) {
|
|
45062
|
-
setPollFuserData(true);
|
|
45063
|
-
return [2 /*return*/, {}];
|
|
45064
|
-
}
|
|
45065
|
-
pollUrl = "".concat(STATIC_URL, "ai/vision/completion/?fid=").concat(userId, "&eid=").concat(extractionId, "&evid=").concat(variantId !== null && variantId !== void 0 ? variantId : '');
|
|
45066
|
-
return [4 /*yield*/, this.pollForCompletion({
|
|
45067
|
-
pollUrl: pollUrl,
|
|
45068
|
-
checkInterval: this.AI_CHECK_INTERVAL,
|
|
45069
|
-
maxTime: this.AI_MAX_TIME,
|
|
45070
|
-
onStatusUpdate: onStatusUpdate,
|
|
45071
|
-
operationName: 'Extraction'
|
|
45072
|
-
})];
|
|
45073
|
-
case 3: return [2 /*return*/, _c.sent()];
|
|
45281
|
+
_b = initInfo(), userId = _b.userId, sdkKey = _b.sdkKey, collaboratorId = _b.collaboratorId;
|
|
45282
|
+
return [4 /*yield*/, distExports$2.extractAIDocument(sdkKey, extractionId, options, userId, pages, undefined, collaboratorId, function () { return setPollFuserData === null || setPollFuserData === void 0 ? void 0 : setPollFuserData(true); }, onStatusUpdate)];
|
|
45283
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
45074
45284
|
}
|
|
45075
45285
|
});
|
|
45076
45286
|
});
|
|
@@ -45085,7 +45295,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45085
45295
|
userId = initInfo().userId;
|
|
45086
45296
|
url = "".concat(API_URL, "email/forward/");
|
|
45087
45297
|
data = {
|
|
45088
|
-
user_id: userId,
|
|
45298
|
+
user_id: options.submissionId || userId,
|
|
45089
45299
|
recipients: options.emails || [],
|
|
45090
45300
|
email_group: options.emailGroup || '',
|
|
45091
45301
|
panel_key: this.formKey
|
|
@@ -45103,7 +45313,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45103
45313
|
case 2: return [2 /*return*/, _d.sent()];
|
|
45104
45314
|
case 3:
|
|
45105
45315
|
_b = Error.bind;
|
|
45106
|
-
_c =
|
|
45316
|
+
_c = distExports$2.parseAPIError;
|
|
45107
45317
|
return [4 /*yield*/, (res === null || res === void 0 ? void 0 : res.json())];
|
|
45108
45318
|
case 4: throw new (_b.apply(Error, [void 0, _c.apply(void 0, [_d.sent()])]))();
|
|
45109
45319
|
}
|
|
@@ -45155,41 +45365,20 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45155
45365
|
};
|
|
45156
45366
|
FeatheryClient.prototype.inviteCollaborator = function (usersGroups, templateId) {
|
|
45157
45367
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
45158
|
-
var _a, userId, collaboratorId,
|
|
45159
|
-
var _this = this;
|
|
45368
|
+
var _a, userId, collaboratorId, sdkKey, res;
|
|
45160
45369
|
return __generator(this, function (_b) {
|
|
45161
|
-
|
|
45162
|
-
|
|
45163
|
-
|
|
45164
|
-
|
|
45165
|
-
|
|
45166
|
-
|
|
45167
|
-
|
|
45168
|
-
|
|
45169
|
-
|
|
45170
|
-
|
|
45171
|
-
|
|
45172
|
-
|
|
45173
|
-
method: 'POST',
|
|
45174
|
-
body: JSON.stringify(data)
|
|
45175
|
-
}, false).then(function (response) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
45176
|
-
var _a, _b;
|
|
45177
|
-
return __generator(this, function (_c) {
|
|
45178
|
-
switch (_c.label) {
|
|
45179
|
-
case 0:
|
|
45180
|
-
if (!response) return [3 /*break*/, 4];
|
|
45181
|
-
if (!response.ok) return [3 /*break*/, 2];
|
|
45182
|
-
return [4 /*yield*/, response.json()];
|
|
45183
|
-
case 1: return [2 /*return*/, _c.sent()];
|
|
45184
|
-
case 2:
|
|
45185
|
-
_a = Error;
|
|
45186
|
-
_b = parseError;
|
|
45187
|
-
return [4 /*yield*/, response.json()];
|
|
45188
|
-
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
45189
|
-
case 4: return [2 /*return*/];
|
|
45190
|
-
}
|
|
45191
|
-
});
|
|
45192
|
-
}); })];
|
|
45370
|
+
switch (_b.label) {
|
|
45371
|
+
case 0:
|
|
45372
|
+
_a = initInfo(), userId = _a.userId, collaboratorId = _a.collaboratorId, sdkKey = _a.sdkKey;
|
|
45373
|
+
return [4 /*yield*/, distExports$2.inviteFormCollaborator(sdkKey, this.formKey, templateId, usersGroups, userId, collaboratorId)];
|
|
45374
|
+
case 1:
|
|
45375
|
+
res = _b.sent();
|
|
45376
|
+
if (res && res.ok) {
|
|
45377
|
+
return [2 /*return*/, res];
|
|
45378
|
+
}
|
|
45379
|
+
else
|
|
45380
|
+
throw Error(distExports$2.parseAPIError(res));
|
|
45381
|
+
}
|
|
45193
45382
|
});
|
|
45194
45383
|
});
|
|
45195
45384
|
};
|
|
@@ -45223,7 +45412,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45223
45412
|
case 1: return [2 /*return*/, _c.sent()];
|
|
45224
45413
|
case 2:
|
|
45225
45414
|
_a = Error;
|
|
45226
|
-
_b =
|
|
45415
|
+
_b = distExports$2.parseAPIError;
|
|
45227
45416
|
return [4 /*yield*/, response.json()];
|
|
45228
45417
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
45229
45418
|
case 4: return [2 /*return*/];
|
|
@@ -45260,7 +45449,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45260
45449
|
case 1: return [2 /*return*/, _c.sent()];
|
|
45261
45450
|
case 2:
|
|
45262
45451
|
_a = Error;
|
|
45263
|
-
_b =
|
|
45452
|
+
_b = distExports$2.parseAPIError;
|
|
45264
45453
|
return [4 /*yield*/, response.json()];
|
|
45265
45454
|
case 3: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
45266
45455
|
case 4: return [2 /*return*/];
|
|
@@ -45306,7 +45495,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45306
45495
|
case 3: return [2 /*return*/, { files: files }];
|
|
45307
45496
|
case 4:
|
|
45308
45497
|
_a = Error;
|
|
45309
|
-
_b =
|
|
45498
|
+
_b = distExports$2.parseAPIError;
|
|
45310
45499
|
return [4 /*yield*/, response.json()];
|
|
45311
45500
|
case 5: throw _a.apply(void 0, [_b.apply(void 0, [_c.sent()])]);
|
|
45312
45501
|
case 6: return [2 /*return*/];
|
|
@@ -45422,9 +45611,9 @@ function init(sdkKey, options) {
|
|
|
45422
45611
|
if (runningInClient()) {
|
|
45423
45612
|
// Dynamically load libraries that must be client side
|
|
45424
45613
|
global.scriptjsLoadPromise = import(
|
|
45425
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
45614
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.c1JhCd_N.js').then(function (n) { return n.s; });
|
|
45426
45615
|
global.webfontloaderPromise = import(
|
|
45427
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
45616
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.E26hycV1.js').then(function (n) { return n.w; });
|
|
45428
45617
|
// Client-side tracking logic
|
|
45429
45618
|
if (initState.userTracking === 'cookie') {
|
|
45430
45619
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -45570,7 +45759,7 @@ function getFieldValues() {
|
|
|
45570
45759
|
return __assign({}, fieldValues);
|
|
45571
45760
|
}
|
|
45572
45761
|
function logFeatheryBadge() {
|
|
45573
|
-
console.log('%c Feathery %c v' + "2.
|
|
45762
|
+
console.log('%c Feathery %c v' + "2.16.0" + ' ', // replaced with real version during build
|
|
45574
45763
|
'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;');
|
|
45575
45764
|
}
|
|
45576
45765
|
|
|
@@ -45923,63 +46112,13 @@ function isElementInViewport(el) {
|
|
|
45923
46112
|
rect.right <= width);
|
|
45924
46113
|
}
|
|
45925
46114
|
function httpHelpers(client, connectorFields) {
|
|
45926
|
-
var _this = this;
|
|
45927
46115
|
if (connectorFields === void 0) { connectorFields = []; }
|
|
45928
|
-
var
|
|
45929
|
-
|
|
45930
|
-
|
|
45931
|
-
|
|
45932
|
-
|
|
45933
|
-
|
|
45934
|
-
'POST',
|
|
45935
|
-
'post',
|
|
45936
|
-
'PUT',
|
|
45937
|
-
'put',
|
|
45938
|
-
'DELETE',
|
|
45939
|
-
'delete'
|
|
45940
|
-
].forEach(function (method) {
|
|
45941
|
-
return (helpers[method] = function (url, data, headers) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
45942
|
-
var response;
|
|
45943
|
-
return __generator(this, function (_a) {
|
|
45944
|
-
switch (_a.label) {
|
|
45945
|
-
case 0:
|
|
45946
|
-
if (!url)
|
|
45947
|
-
return [2 /*return*/, {}];
|
|
45948
|
-
return [4 /*yield*/, client.runCustomRequest({ method: method.toUpperCase(), url: url, data: data, headers: headers }, getConnectorFieldValues(connectorFields))];
|
|
45949
|
-
case 1:
|
|
45950
|
-
response = _a.sent();
|
|
45951
|
-
return [2 /*return*/, {
|
|
45952
|
-
data: response.data,
|
|
45953
|
-
statusCode: response.status_code,
|
|
45954
|
-
// status_code for backwards compatibility
|
|
45955
|
-
status_code: response.statusCode
|
|
45956
|
-
}];
|
|
45957
|
-
}
|
|
45958
|
-
});
|
|
45959
|
-
}); });
|
|
45960
|
-
});
|
|
45961
|
-
helpers.connect = function (name, data, headers) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
45962
|
-
var response;
|
|
45963
|
-
return __generator(this, function (_a) {
|
|
45964
|
-
switch (_a.label) {
|
|
45965
|
-
case 0:
|
|
45966
|
-
if (!name)
|
|
45967
|
-
return [2 /*return*/, {}];
|
|
45968
|
-
return [4 /*yield*/, client.runCustomRequest({ name: name, data: data, headers: headers }, getConnectorFieldValues(connectorFields))];
|
|
45969
|
-
case 1:
|
|
45970
|
-
response = _a.sent();
|
|
45971
|
-
if (response === null || response === void 0 ? void 0 : response.field_values)
|
|
45972
|
-
// skip server submit when setting field values here
|
|
45973
|
-
// because these values were just created on the server
|
|
45974
|
-
setFieldValues(response === null || response === void 0 ? void 0 : response.field_values, true, true);
|
|
45975
|
-
return [2 /*return*/, {
|
|
45976
|
-
data: response.data,
|
|
45977
|
-
statusCode: response.status_code
|
|
45978
|
-
}];
|
|
45979
|
-
}
|
|
45980
|
-
});
|
|
45981
|
-
}); };
|
|
45982
|
-
return helpers;
|
|
46116
|
+
var _a = initInfo(), sdkKey = _a.sdkKey, userId = _a.userId;
|
|
46117
|
+
return distExports$2.createHttpHelpers(sdkKey, client.formKey, userId, function () { return getConnectorFieldValues(connectorFields); }, function (fieldValues) {
|
|
46118
|
+
// skip server submit when setting field values here
|
|
46119
|
+
// because these values were just created on the server
|
|
46120
|
+
setFieldValues(fieldValues, true, true);
|
|
46121
|
+
}, client.offlineRequestHandler.runOrSaveRequest.bind(client.offlineRequestHandler));
|
|
45983
46122
|
}
|
|
45984
46123
|
|
|
45985
46124
|
function runningInClient() {
|
|
@@ -47048,39 +47187,39 @@ breakpoint) {
|
|
|
47048
47187
|
return styles.getTarget('inner-container', undefined, viewport === 'mobile');
|
|
47049
47188
|
};
|
|
47050
47189
|
|
|
47051
|
-
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
47052
|
-
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
47053
|
-
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
47190
|
+
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.C8otB4PR.js'); });
|
|
47191
|
+
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.DeVEe6wK.js'); });
|
|
47192
|
+
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.DucoThu1.js'); });
|
|
47054
47193
|
var CheckboxGroupField = lazy(function () {
|
|
47055
|
-
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
47194
|
+
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.DX3eUw60.js');
|
|
47056
47195
|
});
|
|
47057
|
-
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
47058
|
-
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
47196
|
+
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.1C0U53je.js'); });
|
|
47197
|
+
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.DuaCIs62.js'); });
|
|
47059
47198
|
var DateSelectorField = lazy(function () {
|
|
47060
|
-
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
47199
|
+
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.CRNNh-Vr.js');
|
|
47061
47200
|
});
|
|
47062
|
-
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
47201
|
+
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.C9rpuLX0.js'); });
|
|
47063
47202
|
var DropdownMultiField = lazy(function () {
|
|
47064
|
-
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
47203
|
+
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.BQH7UQHm.js');
|
|
47065
47204
|
});
|
|
47066
|
-
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
47067
|
-
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
47068
|
-
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
47205
|
+
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.B0tXZhK_.js'); });
|
|
47206
|
+
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.CJ2JTPaM.js'); });
|
|
47207
|
+
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.DX823K0A.js'); });
|
|
47069
47208
|
var PaymentMethodField = lazy(function () {
|
|
47070
|
-
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
47209
|
+
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.DC42S83Q.js');
|
|
47071
47210
|
});
|
|
47072
|
-
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
47073
|
-
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
47074
|
-
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
47211
|
+
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.DOn8TnD9.js'); });
|
|
47212
|
+
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.D580ix-P.js'); });
|
|
47213
|
+
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.dbHyG7ZF.js'); });
|
|
47075
47214
|
var RadioButtonGroupField = lazy(function () {
|
|
47076
47215
|
return import(
|
|
47077
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
47216
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.DuaZsChW.js');
|
|
47078
47217
|
});
|
|
47079
|
-
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
47080
|
-
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
47081
|
-
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
47082
|
-
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
47083
|
-
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
47218
|
+
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.Cqaf2wwS.js'); });
|
|
47219
|
+
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.D-Z9XSa-.js'); });
|
|
47220
|
+
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.CHndK5Ku.js'); });
|
|
47221
|
+
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.Duj4YwU5.js'); });
|
|
47222
|
+
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.C2MFMacA.js'); });
|
|
47084
47223
|
var Fields = {
|
|
47085
47224
|
AddressLine1: AddressLine1,
|
|
47086
47225
|
ButtonGroupField: ButtonGroupField,
|
|
@@ -48020,7 +48159,7 @@ function ElementSkeleton(_a) {
|
|
|
48020
48159
|
}
|
|
48021
48160
|
var templateObject_1;
|
|
48022
48161
|
|
|
48023
|
-
var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.
|
|
48162
|
+
var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.DclC8fSK.js'); });
|
|
48024
48163
|
var Basic = {
|
|
48025
48164
|
ImageElement: ImageElement,
|
|
48026
48165
|
VideoElement: VideoElement,
|