@feedmepos/mf-connect 0.1.115-dev → 0.1.115-prod
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/README.md +1 -66
- package/dist/{App-43mZfFAr.js → App-CvtSY8ZO.js} +618 -652
- package/dist/{Bin-CA7v180Y.js → Bin-B3gS9QVZ.js} +8 -8
- package/dist/{Broadcast-qmdifF2Y.js → Broadcast-DAeb-HaN.js} +21 -22
- package/dist/{CampaignAnalytic-xnrDxqaH.js → CampaignAnalytic-BfTaHVem.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js} +9 -9
- package/dist/{Card-D8icsk7L.js → Card-JFeVIwFs.js} +24 -25
- package/dist/{Collections--THcD-E_.js → Collections-xcDpEhIm.js} +185 -197
- package/dist/{Credit-JrbtVMBp.js → Credit-C9HJZjDS.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +3494 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js → EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js} +32 -32
- package/dist/{Experience-CFeRqBoj.js → Experience-DszS8gto.js} +31 -32
- package/dist/{FileSaver.min-CCXIBm58.js → FileSaver.min-CFVQKaC-.js} +1 -1
- package/dist/{Game-CPxq6Ex3.js → Game-DhgeN7E2.js} +18 -19
- package/dist/{GiftCardSetup-D0esVZDp.js → GiftCardSetup-CWm6IhrS.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js} +7 -7
- package/dist/{Goals-DaKI6uXt.js → Goals-DtRVierH.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js → ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js} +1 -1
- package/dist/{Index-2kENoaZm.js → Index-DFRcu_qE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js → LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js} +1 -1
- package/dist/{LoyaltyDashboard-CB93Fz8u.js → LoyaltyDashboard-BWHKDPzk.js} +15 -15
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js → MainLayout-BmpNNAiE.js} +4 -5
- package/dist/Marketing-BKK45Eve.js +236 -0
- package/dist/{remy-icon-BhUGu2NI.js → MarketingMaterialEdit-x3c_N7Gs.js} +1031 -2
- package/dist/{Member-B--nYyr0.js → Member-xEzrBW_p.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js} +50 -43
- package/dist/{MemberImportHistory-D52Y4RTC.js → MemberImportHistory-CEQpBBF8.js} +7 -7
- package/dist/{MemberList-13Owa1fj.js → MemberList-CCvzkHv8.js} +105 -103
- package/dist/{MemberTransactions-CpXEWNbq.js → MemberTransactions-Bmh39J2W.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js → MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js} +14 -14
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js} +1 -1
- package/dist/{Mission-Ci-UzXSu.js → Mission-CpUo2Bgw.js} +21 -22
- package/dist/{Overview-CKxSfAGF.js → Overview-CwQqQ1Tn.js} +144 -145
- package/dist/{Overview-CXen9Ram.js → Overview-DcDZmDXA.js} +22 -23
- package/dist/{Point-CR3YOaag.js → Point-CUNQsQIx.js} +21 -22
- package/dist/{Promotion-tw3J4ul-.js → Promotion-Cqdim7aW.js} +131 -137
- package/dist/{Queue-BZGA5ZXt.js → Queue-CNBVh1UG.js} +45 -46
- package/dist/{Record-BTevVXnT.js → Record-BYwz4l4o.js} +9 -9
- package/dist/{Review-BU7c8ZF0.js → Review-CqLcZFj8.js} +2 -2
- package/dist/ReviewFacebookCallback-DbSCILNN.js +238 -0
- package/dist/{ReviewGoogleCallback-xpdPHSdg.js → ReviewGoogleCallback-Dg8R7QlO.js} +5 -5
- package/dist/{Reward-jlA_7cxz.js → Reward-M8GZ8eHq.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js → RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js} +15 -16
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js +1883 -0
- package/dist/{Segment-C1Bwm--Q.js → Segment-CrMi6xrp.js} +305 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js} +30 -31
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js} +4 -4
- package/dist/Setting-BnFRI0Se.js +2037 -0
- package/dist/{SettingAdvertisements-4XEAJzlL.js → SettingAdvertisements-Dh7v4c1D.js} +12 -12
- package/dist/Settings-BvT8_tkQ.js +179 -0
- package/dist/{Store-C56dXtc4.js → Store-CV-BmK5b.js} +30 -31
- package/dist/{StoreRewards-DQ1Q6WS6.js → StoreRewards-DPhSLvSZ.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js +1264 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js +142 -0
- package/dist/{Tier-D4CPZqw7.js → Tier-ChvYps23.js} +687 -2576
- package/dist/{Title-DCbwhUic.js → Title-v-Ivswr1.js} +92 -94
- package/dist/{Transaction-C5LrasXr.js → Transaction-CRqE1Ix0.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js} +26 -26
- package/dist/{Voucher-rrVbNZKR.js → Voucher-Bg8FOuzD.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js} +16 -16
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js} +2 -2
- package/dist/{app-CgimGODl.js → app-DdNKsn2Q.js} +7107 -8874
- package/dist/app.js +3 -4
- package/dist/{base.export-D2P6HFvo.js → base.export-R97FrSQL.js} +2 -2
- package/dist/{business-Bu5TqSA0.js → business-Ce8vq3wQ.js} +1 -1
- package/dist/{campaign-zJxttSIk.js → campaign-BTllt2LH.js} +25 -31
- package/dist/{campaign-BFIXSgdJ.js → campaign-C19If7bW.js} +94 -121
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-9CCbalR4.js} +2 -3
- package/dist/{campaign.fn-gvjlcEfe.js → campaign.fn-B4g03h0A.js} +78 -78
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-MvqF7mSg.js} +1 -1
- package/dist/{collection.fn-DOm0HsSh.js → collection.fn-CR0bD33S.js} +2 -2
- package/dist/{currency-BpbQvbm8.js → currency-DmlguGIM.js} +1 -1
- package/dist/{effect-D-GtNB3n.js → effect-Dx3zfl28.js} +1 -1
- package/dist/{email-addresses-BKMoAtMi.js → email-addresses-De5PGOY4.js} +2 -2
- package/dist/{feature-flag-BJ_eyKsq.js → feature-flag-CD9V1V0h.js} +74 -74
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-CkfjBgMM.js → helper-CEiv7SaO.js} +1 -1
- package/dist/{index-zTvr2GR4.js → index-649OZ_e1.js} +2 -2
- package/dist/{index-feCrYhi6.js → index-B8meeQoD.js} +1 -1
- package/dist/{index-CIej31pF.js → index-B8yWVB8P.js} +3 -4
- package/dist/{index-BKsxIwbi.js → index-BAXKd9Gg.js} +198 -198
- package/dist/{index-BAtUrtqM.js → index-BDPnyro2.js} +6 -19
- package/dist/{index-DUAZOMVJ.js → index-BR9h5DTI.js} +1 -1
- package/dist/{index-DwU3fsLW.js → index-BVdYxi3l.js} +15 -29
- package/dist/{index-D0JK99Ko.js → index-BW6eb3n6.js} +252 -611
- package/dist/{index-LygS9WsG.js → index-BYI9ttxy.js} +10767 -8028
- package/dist/{index-BdEXUNoG.js → index-BquSqx6K.js} +4 -4
- package/dist/{index-BpTIulTX.js → index-CBJy9bxB.js} +1 -1
- package/dist/{index-B6kU3PkV.js → index-CPODug8b.js} +2613 -2700
- package/dist/{index-CfQuYqXn.js → index-CWUrODxL.js} +1 -1
- package/dist/{index-DKxN1mMS.js → index-CqOCJTeR.js} +232 -390
- package/dist/{index-CuREApMc.js → index-D4d3l0gw.js} +7 -8
- package/dist/{index-Bhl5IRXy.js → index-DT3S00_Y.js} +10 -11
- package/dist/{index-DqGs6RJG.js → index-IZRfmmde.js} +581 -683
- package/dist/{index-CQ8XFbBk.js → index-__UT3_Ey.js} +2 -2
- package/dist/{index-CCEXSPxk.js → index-xct3mnu8.js} +7 -7
- package/dist/{index.esm2017-DZi9IQPS.js → index.esm2017-AVbZ9btd.js} +177 -177
- package/dist/{loading-Brid2wnu.js → loading-BvHm1m3K.js} +1 -1
- package/dist/{lodash-C1epw3Kv.js → lodash-Dvrceo7x.js} +1 -1
- package/dist/{member-import-DAIxTIiu.js → member-import-c9avpiSS.js} +5 -6
- package/dist/{membership-BZmljFhF.js → membership-D-pZS634.js} +3 -3
- package/dist/{money-cLcyGcSZ.js → money-D4skwMkD.js} +1 -1
- package/dist/{number-C2jPLJr2.js → number-DJ6ncfT6.js} +1 -1
- package/dist/objectid-DEMM_jdR.js +145 -0
- package/dist/{onboarding-oRfy_g05.js → onboarding-t7R1d3h-.js} +25 -25
- package/dist/{onboardingSetup-BLD6m8HY.js → onboardingSetup-lTaJc0oT.js} +2 -2
- package/dist/{plugins-CUsr9vB0.js → plugins-DQNOWwRC.js} +3 -3
- package/dist/{reward-UOT03odb.js → reward-BK150pjm.js} +1 -1
- package/dist/{rule-BgJnPjkI.js → rule-COcdAnUu.js} +492 -572
- package/dist/rule-builder-Deufb6h_.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DeebIqJ_.js +236 -0
- package/dist/{timezone-BXA4wq7Y.js → timezone-BP6UC4KL.js} +1 -1
- package/dist/{transaction.fn-CQ4fpRt3.js → transaction.fn-BY0hzon0.js} +2 -2
- package/dist/{trigger-DXJCGT0q.js → trigger-DVBjVPbN.js} +8 -8
- package/dist/useMarketingMaterialActions-DpQCQHFI.js +96 -0
- package/dist/{usePagination-Pp4okWr8.js → usePagination-QT552XyF.js} +1 -1
- package/dist/{user-B3gXcAIy.js → user-CmAxNc7T.js} +1 -1
- package/dist/vue-i18n-Cze706-f.js +2365 -0
- package/dist/{xlsx-CCaDUTgW.js → xlsx-DAczoc8y.js} +224 -224
- package/dist/{zod-CPwjOxvW.js → zod-Aj-GuVQL.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-BPpdm96t.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +0 -4442
- package/dist/Grab-BWzdN_cd.js +0 -301
- package/dist/MainLayout-DwnjGXh6.js +0 -4
- package/dist/Marketing-DCco__2F.js +0 -273
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +0 -1037
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +0 -1923
- package/dist/Setting-CDM4RhLW.js +0 -574
- package/dist/Settings-D-0tvZRr.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +0 -7007
- package/dist/WhatsappAccount-oJDo5zTr.js +0 -159
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +0 -39
- package/dist/WhatsappBot-Cl64wG_F.js +0 -876
- package/dist/WhatsappBotLogs-D3uT4EiB.js +0 -372
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +0 -705
- package/dist/WhatsappLayout-C639d2HP.js +0 -21
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +0 -253
- package/dist/browser-BSAOEeIM.js +0 -1478
- package/dist/duplicateCampaign-CvsvjRE9.js +0 -51
- package/dist/feature-flag-Bo-k5sIG.js +0 -50
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/index-C-iwb2Ln.js +0 -109
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/index-DQ8JJhxs.js +0 -74
- package/dist/objectid-C-wocWKI.js +0 -145
- package/dist/template-BZyFhr73.js +0 -188
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +0 -125
- package/dist/vue-i18n-DWGiC_vs.js +0 -2365
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var le = Object.defineProperty;
|
|
2
2
|
var ue = (m, u, d) => u in m ? le(m, u, { enumerable: !0, configurable: !0, writable: !0, value: d }) : m[u] = d;
|
|
3
3
|
var ot = (m, u, d) => ue(m, typeof u != "symbol" ? u + "" : u, d);
|
|
4
|
-
import { ref as ut, readonly as
|
|
5
|
-
import { c as st } from "./app-
|
|
4
|
+
import { ref as ut, readonly as Pt } from "vue";
|
|
5
|
+
import { c as st } from "./app-DdNKsn2Q.js";
|
|
6
6
|
import { useCoreStore as ce } from "@feedmepos/mf-common";
|
|
7
|
-
var
|
|
7
|
+
var Ut = { exports: {} };
|
|
8
8
|
(function(m, u) {
|
|
9
9
|
(function(d, v) {
|
|
10
10
|
v(u);
|
|
@@ -64,7 +64,7 @@ var Rt = { exports: {} };
|
|
|
64
64
|
h((i = i.apply(a, [])).next());
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function z(a, e) {
|
|
68
68
|
var t, i, n, r, o = { label: 0, sent: function() {
|
|
69
69
|
if (1 & n[0]) throw n[1];
|
|
70
70
|
return n[1];
|
|
@@ -179,7 +179,7 @@ var Rt = { exports: {} };
|
|
|
179
179
|
(function(a) {
|
|
180
180
|
a.NONE = "NONE", a.DEFAULT_FLAGS = "DEFAULT_FLAGS", a.CACHE = "CACHE", a.SERVER = "SERVER";
|
|
181
181
|
})(g || (g = {}));
|
|
182
|
-
var ht, O = null, ie = "FLAGSMITH_EVENT", at = ie, Dt = "https://edge.api.flagsmith.com/api/v1/", Gt = "flagsmith_value_", Jt = "flagsmith_enabled_",
|
|
182
|
+
var ht, O = null, ie = "FLAGSMITH_EVENT", at = ie, Dt = "https://edge.api.flagsmith.com/api/v1/", Gt = "flagsmith_value_", Jt = "flagsmith_enabled_", Ht = "flagsmith_trait_", ae = function() {
|
|
183
183
|
function a(e) {
|
|
184
184
|
var t = this;
|
|
185
185
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
@@ -188,20 +188,20 @@ var Rt = { exports: {} };
|
|
|
188
188
|
var o = "".concat(t.getContext().identity), c = function(h) {
|
|
189
189
|
var f, l, p, F;
|
|
190
190
|
if (h && o === "".concat(t.getContext().identity)) {
|
|
191
|
-
var
|
|
191
|
+
var k = h.flags, w = h.traits, j = h.identifier;
|
|
192
192
|
t.isLoading = !1;
|
|
193
193
|
var I = {}, A = {};
|
|
194
|
-
w = w || [], (
|
|
194
|
+
w = w || [], (k = k || []).forEach(function(y) {
|
|
195
195
|
I[y.feature.name.toLowerCase().replace(/ /g, "_")] = { id: y.feature.id, enabled: y.enabled, value: y.feature_state_value };
|
|
196
196
|
}), w.forEach(function(y) {
|
|
197
197
|
A[y.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: y.transient, value: y.trait_value };
|
|
198
198
|
}), t.oldFlags = s({}, t.flags);
|
|
199
|
-
var
|
|
200
|
-
if ((j || Object.keys(A).length) && (t.evaluationContext.identity = s(s({}, t.evaluationContext.identity), { traits: A }), j && (t.evaluationContext.identity.identifier = j)), t.flags = I, t.updateStorage(), t._onChange(t.oldFlags, { isFromServer: !0, flagsChanged:
|
|
199
|
+
var P = _(t.oldFlags, I), Z = _((f = t.evaluationContext.identity) === null || f === void 0 ? void 0 : f.traits, A);
|
|
200
|
+
if ((j || Object.keys(A).length) && (t.evaluationContext.identity = s(s({}, t.evaluationContext.identity), { traits: A }), j && (t.evaluationContext.identity.identifier = j)), t.flags = I, t.updateStorage(), t._onChange(t.oldFlags, { isFromServer: !0, flagsChanged: P, traitsChanged: Z }, t._loadedState(null, g.SERVER)), t.datadogRum) try {
|
|
201
201
|
if (t.datadogRum.trackTraits) {
|
|
202
202
|
var Q = {};
|
|
203
203
|
Object.keys(((l = t.evaluationContext.identity) === null || l === void 0 ? void 0 : l.traits) || {}).map(function(y) {
|
|
204
|
-
Q[
|
|
204
|
+
Q[Ht + y] = t.getTrait(y);
|
|
205
205
|
});
|
|
206
206
|
var M = s(s(s({}, t.datadogRum.client.getUser()), { id: t.datadogRum.client.getUser().id || ((p = t.evaluationContext.identity) === null || p === void 0 ? void 0 : p.identifier) }), Q);
|
|
207
207
|
t.log("Setting Datadog user", M), t.datadogRum.client.setUser(M);
|
|
@@ -214,7 +214,7 @@ var Rt = { exports: {} };
|
|
|
214
214
|
Object.keys(t.flags).map(function(y) {
|
|
215
215
|
b(E, Gt + y, t.getValue(y, { skipAnalytics: !0 })), b(E, Jt + y, t.hasFeature(y, { skipAnalytics: !0 }));
|
|
216
216
|
}), Object.keys(((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.traits) || {}).map(function(y) {
|
|
217
|
-
b(E,
|
|
217
|
+
b(E, Ht + y, t.getTrait(y));
|
|
218
218
|
}), t.log("Sending javaLongOrObject traits to dynatrace", E.javaLongOrObject), t.log("Sending date traits to dynatrace", E.date), t.log("Sending shortString traits to dynatrace", E.shortString), t.log("Sending javaDouble to dynatrace", E.javaDouble), t.dtrum.sendSessionProperties(E.javaLongOrObject, E.date, E.shortString, E.javaDouble);
|
|
219
219
|
} catch (y) {
|
|
220
220
|
console.error(y);
|
|
@@ -292,9 +292,9 @@ var Rt = { exports: {} };
|
|
|
292
292
|
t.evaluationContext.environment && (f.headers["X-Environment-Key"] = t.evaluationContext.environment.apiKey), n && n !== "GET" && (f.headers["Content-Type"] = "application/json; charset=utf-8"), h && Object.assign(f.headers, h), C || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
293
293
|
var l = "".concat((o = t.evaluationContext.identity) === null || o === void 0 ? void 0 : o.identifier);
|
|
294
294
|
return C(i, f).then(function(p) {
|
|
295
|
-
var F,
|
|
295
|
+
var F, k, w = "".concat((F = t.evaluationContext.identity) === null || F === void 0 ? void 0 : F.identifier);
|
|
296
296
|
if (l === w) {
|
|
297
|
-
var j = (
|
|
297
|
+
var j = (k = p.headers) === null || k === void 0 ? void 0 : k.get("x-flagsmith-document-updated-at");
|
|
298
298
|
if (j) try {
|
|
299
299
|
var I = parseFloat(j);
|
|
300
300
|
if (isNaN(I)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
@@ -303,12 +303,12 @@ var Rt = { exports: {} };
|
|
|
303
303
|
t.log(A, "Failed to parse x-flagsmith-document-updated-at", j);
|
|
304
304
|
}
|
|
305
305
|
return t.log("Fetch response: " + p.status + " " + (n || "GET") + 0 + i), p.text().then(function(A) {
|
|
306
|
-
var
|
|
306
|
+
var P = A;
|
|
307
307
|
try {
|
|
308
|
-
|
|
308
|
+
P = JSON.parse(A);
|
|
309
309
|
} catch {
|
|
310
310
|
}
|
|
311
|
-
return !
|
|
311
|
+
return !P && p.status && (P = "API Response: ".concat(p.status)), p.status && p.status >= 200 && p.status < 300 ? P : Promise.reject(new Error(P));
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
t.log("Received response with identity mismatch, ignoring response. Requested: ".concat(l, ", Current: ").concat(w));
|
|
@@ -327,31 +327,31 @@ var Rt = { exports: {} };
|
|
|
327
327
|
return a.prototype.init = function(e) {
|
|
328
328
|
var t, i, n;
|
|
329
329
|
return T(this, void 0, void 0, function() {
|
|
330
|
-
var r, o, c, h, f, l, p, F,
|
|
331
|
-
return
|
|
330
|
+
var r, o, c, h, f, l, p, F, k, w, j, I, A, P, Z, Q, M, E, y, vt, W, qt, $, gt, Yt, Zt, ft, Qt, pt, tt, X, Wt, x = this;
|
|
331
|
+
return z(this, function(N) {
|
|
332
332
|
switch (N.label) {
|
|
333
333
|
case 0:
|
|
334
334
|
r = ct(e.evaluationContext || this.evaluationContext), N.label = 1;
|
|
335
335
|
case 1:
|
|
336
|
-
if (N.trys.push([1, 13, , 14]), o = e.environmentID, c = e.api, h = c === void 0 ? Dt : c, f = e.headers, l = e.onChange, p = e.cacheFlags, F = e.datadogRum,
|
|
336
|
+
if (N.trys.push([1, 13, , 14]), o = e.environmentID, c = e.api, h = c === void 0 ? Dt : c, f = e.headers, l = e.onChange, p = e.cacheFlags, F = e.datadogRum, k = e.onError, w = e.defaultFlags, j = e.fetch, I = e.preventFetch, A = e.enableLogs, P = e.enableDynatrace, Z = e.enableAnalytics, Q = e.realtime, M = e.eventSourceUrl, E = M === void 0 ? "https://realtime.flagsmith.com/" : M, y = e.AsyncStorage, vt = e.identity, W = e.traits, qt = e.state, $ = e.cacheOptions, gt = e.angularHttpClient, Yt = e._trigger, Zt = e._triggerLoadingState, r.environment = o ? { apiKey: o } : r.environment, !r.environment || !r.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
337
337
|
if (r.identity = vt || W ? { identifier: vt, traits: W ? Object.fromEntries(Object.entries(W).map(function(L) {
|
|
338
338
|
return [L[0], { value: L[1] }];
|
|
339
|
-
})) : {} } : r.identity, this.evaluationContext = r, this.api = h, this.headers = f, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = l, ft = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger =
|
|
340
|
-
x.setLoadingState(s(s({}, x.loadingState), { isFetching: !1, isLoading: !1, error: L })),
|
|
341
|
-
}, this.enableLogs = A || !1, this.cacheOptions = $ ? { skipAPI: !!$.skipAPI, ttl: $.ttl || 0, storageKey: $.storageKey, loadStale: !!$.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), j && (C = j), this.enableAnalytics =
|
|
342
|
-
return function(
|
|
343
|
-
var
|
|
339
|
+
})) : {} } : r.identity, this.evaluationContext = r, this.api = h, this.headers = f, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = l, ft = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Yt || this._trigger, this._triggerLoadingState = Zt || this._triggerLoadingState, this.onError = function(L) {
|
|
340
|
+
x.setLoadingState(s(s({}, x.loadingState), { isFetching: !1, isLoading: !1, error: L })), k == null || k(L);
|
|
341
|
+
}, this.enableLogs = A || !1, this.cacheOptions = $ ? { skipAPI: !!$.skipAPI, ttl: $.ttl || 0, storageKey: $.storageKey, loadStale: !!$.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), j && (C = j), this.enableAnalytics = Z || !1, this.flags = Object.assign({}, w) || {}, this.datadogRum = F || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = O !== void 0 && !!p, at = "FLAGSMITH_EVENT_" + r.environment.apiKey, y && (O = y), Q && typeof window < "u" && this.setupRealtime(E, r.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: g.DEFAULT_FLAGS })), this.setState(qt), this.log("Initialising with properties", e, this), P && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), gt && (C = /* @__PURE__ */ function(L) {
|
|
342
|
+
return function(R, U) {
|
|
343
|
+
var H = U.headers, S = U.method, q = U.body;
|
|
344
344
|
return new Promise(function(B) {
|
|
345
345
|
switch (S) {
|
|
346
346
|
case "GET":
|
|
347
|
-
return L.get(
|
|
347
|
+
return L.get(R, { headers: H }).subscribe(function(J) {
|
|
348
348
|
B({ ok: !0, text: function() {
|
|
349
349
|
return Promise.resolve(J);
|
|
350
350
|
} });
|
|
351
351
|
});
|
|
352
352
|
case "POST":
|
|
353
353
|
case "PUT":
|
|
354
|
-
return L.post(
|
|
354
|
+
return L.post(R, q, { headers: H }).subscribe(function(J) {
|
|
355
355
|
B({ ok: !0, text: function() {
|
|
356
356
|
return Promise.resolve(J);
|
|
357
357
|
} });
|
|
@@ -366,50 +366,50 @@ var Rt = { exports: {} };
|
|
|
366
366
|
x.evaluationEvent = {};
|
|
367
367
|
}
|
|
368
368
|
x.analyticsInterval = setInterval(x.analyticsFlags, x.ticks);
|
|
369
|
-
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), O && this.canUseStorage && O.getItem(at, function(L,
|
|
370
|
-
if (
|
|
371
|
-
var
|
|
372
|
-
if (
|
|
373
|
-
var
|
|
374
|
-
x.log("Retrieved events from cache",
|
|
369
|
+
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), O && this.canUseStorage && O.getItem(at, function(L, R) {
|
|
370
|
+
if (R && x.evaluationContext.environment) {
|
|
371
|
+
var U = JSON.parse(R);
|
|
372
|
+
if (U[x.evaluationContext.environment.apiKey]) {
|
|
373
|
+
var H = x.getState();
|
|
374
|
+
x.log("Retrieved events from cache", R), x.setState(s(s({}, H), { evaluationEvent: U[x.evaluationContext.environment.apiKey] }));
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
})), !p) return [3, 9];
|
|
378
378
|
if (!O || !this.canUseStorage) return [3, 8];
|
|
379
|
-
Qt = function(L,
|
|
379
|
+
Qt = function(L, R) {
|
|
380
380
|
return T(x, void 0, void 0, function() {
|
|
381
|
-
var
|
|
382
|
-
return
|
|
383
|
-
switch (
|
|
381
|
+
var U, H, S, q, B, J, yt, te, mt, St, Ct, bt, _t, Ft, Et, xt, Ot, wt, It, At, Lt, jt, Nt, Tt, ee = this;
|
|
382
|
+
return z(this, function(V) {
|
|
383
|
+
switch (V.label) {
|
|
384
384
|
case 0:
|
|
385
|
-
if (!
|
|
386
|
-
|
|
385
|
+
if (!R) return [3, 7];
|
|
386
|
+
U = null, H = null, V.label = 1;
|
|
387
387
|
case 1:
|
|
388
|
-
return
|
|
389
|
-
var
|
|
390
|
-
(
|
|
388
|
+
return V.trys.push([1, 5, , 6]), S = JSON.parse(R), q = !1, B = !1, S && S.api === this.api && ((St = (mt = S.evaluationContext) === null || mt === void 0 ? void 0 : mt.environment) === null || St === void 0 ? void 0 : St.apiKey) === ((Ct = this.evaluationContext.environment) === null || Ct === void 0 ? void 0 : Ct.apiKey) && (J = !0, this.evaluationContext.identity && ((_t = (bt = S.evaluationContext) === null || bt === void 0 ? void 0 : bt.identity) === null || _t === void 0 ? void 0 : _t.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Et = (Ft = S.evaluationContext) === null || Ft === void 0 ? void 0 : Ft.identity) === null || Et === void 0 ? void 0 : Et.identifier) + " to " + this.evaluationContext.identity.identifier), J = !1), this.cacheOptions.ttl && (!S.ts || (/* @__PURE__ */ new Date()).valueOf() - S.ts > this.cacheOptions.ttl) && (S.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + S.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - S.ts) + "ms"), J = !1) : S.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + S.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - S.ts) + "ms"), B = !0, J = !0)), J && (q = !0, H = _((xt = this.evaluationContext.identity) === null || xt === void 0 ? void 0 : xt.traits, (wt = (Ot = S.evaluationContext) === null || Ot === void 0 ? void 0 : Ot.identity) === null || wt === void 0 ? void 0 : wt.traits), U = _(this.flags, S.flags), this.setState(s(s({}, S), { evaluationContext: ct(s(s({}, S.evaluationContext), { identity: !((It = S.evaluationContext) === null || It === void 0) && It.identity ? s(s({}, (At = S.evaluationContext) === null || At === void 0 ? void 0 : At.identity), { traits: s(s({}, ((jt = (Lt = S.evaluationContext) === null || Lt === void 0 ? void 0 : Lt.identity) === null || jt === void 0 ? void 0 : jt.traits) || {}), W || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", S))), q ? (yt = !I && (!this.cacheOptions.skipAPI || B), this._onChange(null, { isFromServer: !1, flagsChanged: U, traitsChanged: H }, this._loadedState(null, g.CACHE, yt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && q && !B && this.log("Skipping API, using cache"), yt && this.getFlags().catch(function(se) {
|
|
389
|
+
var kt;
|
|
390
|
+
(kt = ee.onError) === null || kt === void 0 || kt.call(ee, se);
|
|
391
391
|
}), [3, 4]) : [3, 2];
|
|
392
392
|
case 2:
|
|
393
393
|
return I ? [3, 4] : [4, this.getFlags()];
|
|
394
394
|
case 3:
|
|
395
|
-
|
|
395
|
+
V.sent(), V.label = 4;
|
|
396
396
|
case 4:
|
|
397
397
|
return [3, 6];
|
|
398
398
|
case 5:
|
|
399
|
-
return te =
|
|
399
|
+
return te = V.sent(), this.log("Exception fetching cached logs", te), [3, 6];
|
|
400
400
|
case 6:
|
|
401
401
|
return [3, 10];
|
|
402
402
|
case 7:
|
|
403
403
|
return I ? [3, 9] : [4, this.getFlags()];
|
|
404
404
|
case 8:
|
|
405
|
-
return
|
|
405
|
+
return V.sent(), [3, 10];
|
|
406
406
|
case 9:
|
|
407
407
|
if (w) this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (Nt = this.evaluationContext.identity) === null || Nt === void 0 ? void 0 : Nt.traits) }, this._loadedState(null, g.DEFAULT_FLAGS));
|
|
408
408
|
else {
|
|
409
409
|
if (!this.flags) throw new Error(ft);
|
|
410
410
|
this._onChange(null, { isFromServer: !1, flagsChanged: _({}, this.flags), traitsChanged: _({}, (Tt = this.evaluationContext.identity) === null || Tt === void 0 ? void 0 : Tt.traits) }, this._loadedState(null, g.DEFAULT_FLAGS));
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
V.label = 10;
|
|
413
413
|
case 10:
|
|
414
414
|
return [2];
|
|
415
415
|
}
|
|
@@ -440,7 +440,7 @@ var Rt = { exports: {} };
|
|
|
440
440
|
case 12:
|
|
441
441
|
return [3, 14];
|
|
442
442
|
case 13:
|
|
443
|
-
throw
|
|
443
|
+
throw X = N.sent(), this.log("Error during initialisation ", X), Wt = X instanceof Error ? X : new Error("".concat(X)), (n = this.onError) === null || n === void 0 || n.call(this, Wt), X;
|
|
444
444
|
case 14:
|
|
445
445
|
return [2];
|
|
446
446
|
}
|
|
@@ -497,7 +497,7 @@ var Rt = { exports: {} };
|
|
|
497
497
|
})) : this.log("Error, EventSource is undefined");
|
|
498
498
|
}, a;
|
|
499
499
|
}();
|
|
500
|
-
function
|
|
500
|
+
function Vt(a) {
|
|
501
501
|
var e = a.fetch, t = a.AsyncStorage, i = a.eventSource;
|
|
502
502
|
return new ae({ fetch: e, AsyncStorage: t, eventSource: i });
|
|
503
503
|
}
|
|
@@ -513,7 +513,7 @@ var Rt = { exports: {} };
|
|
|
513
513
|
this.constructor = a;
|
|
514
514
|
}
|
|
515
515
|
rt(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
516
|
-
}),
|
|
516
|
+
}), zt = function(a) {
|
|
517
517
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && a[e], i = 0;
|
|
518
518
|
if (t) return t.call(a);
|
|
519
519
|
if (a && typeof a.length == "number") return { next: function() {
|
|
@@ -565,7 +565,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
565
565
|
i.onmessage(h);
|
|
566
566
|
};
|
|
567
567
|
try {
|
|
568
|
-
for (var r =
|
|
568
|
+
for (var r = zt(Object.keys(this._listeners)), o = r.next(); !o.done; o = r.next()) {
|
|
569
569
|
var c = o.value;
|
|
570
570
|
this._eventSource.addEventListener(c, this._onevent_wrapped);
|
|
571
571
|
}
|
|
@@ -594,7 +594,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
594
594
|
e && e.lastEventId && (this._lastEventId = e.lastEventId);
|
|
595
595
|
var n = this._listeners[e.type];
|
|
596
596
|
if (n != null) try {
|
|
597
|
-
for (var r =
|
|
597
|
+
for (var r = zt(dt([], Bt(n), !1)), o = r.next(); !o.done; o = r.next())
|
|
598
598
|
o.value.call(this, e);
|
|
599
599
|
} catch (c) {
|
|
600
600
|
t = { error: c };
|
|
@@ -649,13 +649,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
649
649
|
}, n.onerror = i, n.withCredentials = e.credentials == "include", e.headers) n.setRequestHeader(f, e.headers[f]);
|
|
650
650
|
n.send(e.body || null);
|
|
651
651
|
});
|
|
652
|
-
},
|
|
653
|
-
typeof window < "u" && (window.flagsmith =
|
|
654
|
-
return
|
|
655
|
-
}, d.default =
|
|
652
|
+
}, Xt = Vt({ AsyncStorage: v, fetch: $t, eventSource: Mt });
|
|
653
|
+
typeof window < "u" && (window.flagsmith = Xt), d.createFlagsmithInstance = function() {
|
|
654
|
+
return Vt({ AsyncStorage: v, fetch: $t, eventSource: Mt });
|
|
655
|
+
}, d.default = Xt, Object.defineProperty(d, "__esModule", { value: !0 });
|
|
656
656
|
});
|
|
657
|
-
})(
|
|
658
|
-
var he =
|
|
657
|
+
})(Ut, Ut.exports);
|
|
658
|
+
var he = Ut.exports, de = {
|
|
659
659
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first.",
|
|
660
660
|
INVALID_CONFIG: "Invalid Flagsmith configuration",
|
|
661
661
|
FETCH_FAILED: "Failed to fetch Flagsmith configuration",
|
|
@@ -746,7 +746,7 @@ var he = Rt.exports, de = {
|
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
async getUserFlagValue(u, d, v = null, s) {
|
|
749
|
-
var
|
|
749
|
+
var z;
|
|
750
750
|
const T = this.userContext;
|
|
751
751
|
try {
|
|
752
752
|
return await this.setUser(u), this.getFlagValue(d, s) ?? v;
|
|
@@ -754,7 +754,7 @@ var he = Rt.exports, de = {
|
|
|
754
754
|
return console.error(`Error getting user flag value for ${d}:`, D), v;
|
|
755
755
|
} finally {
|
|
756
756
|
try {
|
|
757
|
-
await ((
|
|
757
|
+
await ((z = this.flagsmithClient) == null ? void 0 : z.logout()), this.userContext = null, T && await this.setUser(T.identifier);
|
|
758
758
|
} catch (D) {
|
|
759
759
|
console.error("Error during cleanup:", D);
|
|
760
760
|
}
|
|
@@ -763,7 +763,7 @@ var he = Rt.exports, de = {
|
|
|
763
763
|
reset() {
|
|
764
764
|
this.flagsmithClient = null, this.userContext = null;
|
|
765
765
|
}
|
|
766
|
-
}, ot(K, "instance"), K), ge = ve.getInstance(), et = ut(!1), lt = ut([]),
|
|
766
|
+
}, ot(K, "instance"), K), ge = ve.getInstance(), et = ut(!1), lt = ut([]), Y = ut(null);
|
|
767
767
|
function fe(m = ge) {
|
|
768
768
|
const u = () => et.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), d = async (g, C = []) => {
|
|
769
769
|
if (et.value) {
|
|
@@ -771,16 +771,16 @@ function fe(m = ge) {
|
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
773
|
try {
|
|
774
|
-
await m.init(g, C), lt.value = await m.getFlags(), et.value = !0,
|
|
774
|
+
await m.init(g, C), lt.value = await m.getFlags(), et.value = !0, Y.value = null;
|
|
775
775
|
} catch (b) {
|
|
776
|
-
console.error("Failed to initialize feature flags:", b),
|
|
776
|
+
console.error("Failed to initialize feature flags:", b), Y.value = b;
|
|
777
777
|
}
|
|
778
778
|
}, v = async (g) => {
|
|
779
779
|
if (u())
|
|
780
780
|
try {
|
|
781
|
-
await m.setUser(g), lt.value = await m.getFlags(),
|
|
781
|
+
await m.setUser(g), lt.value = await m.getFlags(), Y.value = null;
|
|
782
782
|
} catch (C) {
|
|
783
|
-
console.error("Failed to set user:", C),
|
|
783
|
+
console.error("Failed to set user:", C), Y.value = C;
|
|
784
784
|
}
|
|
785
785
|
}, s = async (g) => v(`${ne}-${g}`), T = (g, C, b = null) => {
|
|
786
786
|
if (!u()) return b;
|
|
@@ -789,7 +789,7 @@ function fe(m = ge) {
|
|
|
789
789
|
} catch (G) {
|
|
790
790
|
return console.error(`Error getting flag value for ${g}:`, G), b;
|
|
791
791
|
}
|
|
792
|
-
},
|
|
792
|
+
}, z = (g, C) => {
|
|
793
793
|
if (!u()) return C ?? null;
|
|
794
794
|
try {
|
|
795
795
|
return m.getFlag(g) ?? C ?? null;
|
|
@@ -809,18 +809,18 @@ function fe(m = ge) {
|
|
|
809
809
|
} catch (g) {
|
|
810
810
|
console.error("Error resetting feature flags:", g);
|
|
811
811
|
} finally {
|
|
812
|
-
lt.value = [], et.value = !1,
|
|
812
|
+
lt.value = [], et.value = !1, Y.value = null;
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
815
|
return {
|
|
816
|
-
flags:
|
|
817
|
-
isInitialized:
|
|
818
|
-
error:
|
|
816
|
+
flags: Pt(lt),
|
|
817
|
+
isInitialized: Pt(et),
|
|
818
|
+
error: Pt(Y),
|
|
819
819
|
init: d,
|
|
820
820
|
setUser: v,
|
|
821
821
|
setBusiness: s,
|
|
822
822
|
getFlagValue: T,
|
|
823
|
-
getFlag:
|
|
823
|
+
getFlag: z,
|
|
824
824
|
getUserFlagValue: D,
|
|
825
825
|
getBusinessFlagValue: nt,
|
|
826
826
|
reset: _
|
|
@@ -832,15 +832,15 @@ function ye(m, u) {
|
|
|
832
832
|
const d = (m.value ?? "").split(",").map((v) => v.trim().toUpperCase()).filter(Boolean);
|
|
833
833
|
return !d.length || d.includes("*") ? !0 : !!u && d.includes(u.toUpperCase());
|
|
834
834
|
}
|
|
835
|
-
var me = { firebase: { apiKey: "
|
|
836
|
-
const
|
|
835
|
+
var me = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" };
|
|
836
|
+
const Rt = {
|
|
837
837
|
broadcastAppInbox: "connect_broadcast_app_inbox_countries",
|
|
838
838
|
broadcastPush: "connect_broadcast_push_countries",
|
|
839
839
|
broadcastWhatsapp: "connect_broadcast_whatsapp_countries"
|
|
840
840
|
}, Se = {
|
|
841
|
-
APP_INBOX:
|
|
842
|
-
PUSH:
|
|
843
|
-
WHATSAPP:
|
|
841
|
+
APP_INBOX: Rt.broadcastAppInbox,
|
|
842
|
+
PUSH: Rt.broadcastPush,
|
|
843
|
+
WHATSAPP: Rt.broadcastWhatsapp
|
|
844
844
|
}, { init: Ce, isInitialized: be, setBusiness: _e, flags: Fe } = pe(), Kt = ut(!1);
|
|
845
845
|
async function Ie(m) {
|
|
846
846
|
Kt.value = !1;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const l = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%3e%3cpath%20fill='%23EA4335'%20d='M24%209.5c3.14%200%205.95%201.08%208.17%202.86l6.08-6.08C34.46%203.1%2029.5%201%2024%201%2014.82%201%206.96%206.48%203.22%2014.44l7.08%205.5C12.08%2013.66%2017.58%209.5%2024%209.5z'/%3e%3cpath%20fill='%234285F4'%20d='M46.52%2024.5c0-1.64-.15-3.22-.42-4.74H24v8.98h12.7c-.55%202.96-2.2%205.46-4.68%207.14l7.18%205.58C43.18%2037.36%2046.52%2031.38%2046.52%2024.5z'/%3e%3cpath%20fill='%23FBBC05'%20d='M10.3%2028.56A14.56%2014.56%200%200%201%209.5%2024c0-1.58.27-3.1.76-4.52l-7.08-5.5A23.94%2023.94%200%200%200%200%2024c0%203.86.92%207.5%202.56%2010.72l7.74-6.16z'/%3e%3cpath%20fill='%2334A853'%20d='M24%2047c5.5%200%2010.12-1.82%2013.48-4.94l-7.18-5.58c-1.82%201.22-4.14%201.94-6.3%201.94-6.42%200-11.92-4.16-13.7-9.86l-7.74%206.16C6.96%2041.52%2014.82%2047%2024%2047z'/%3e%3cpath%20fill='none'%20d='M0%200h48v48H0z'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
l as g
|
|
4
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as n, a as o } from "./index-
|
|
2
|
-
import { g as e, S as c, b as i } from "./index-
|
|
1
|
+
import { F as n, a as o } from "./index-BAXKd9Gg.js";
|
|
2
|
+
import { g as e, S as c, b as i } from "./index-xct3mnu8.js";
|
|
3
3
|
const t = () => {
|
|
4
4
|
const a = c.getBusinessId();
|
|
5
5
|
if (!a) throw new Error("Invalid business ID");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { z as e } from "./index-
|
|
2
|
-
import { m as E, F as T } from "./index-LygS9WsG.js";
|
|
1
|
+
import { z as e, m as E, F as T } from "./index-BYI9ttxy.js";
|
|
3
2
|
e.enum([
|
|
4
3
|
"en-US",
|
|
5
4
|
"zh-CN",
|
|
@@ -149,7 +148,7 @@ const C = N.omit({ text: !0 }).extend(
|
|
|
149
148
|
// The generic list: 'active' when the business had no setup at first read (set once,
|
|
150
149
|
// server-side), 'closed' once the merchant dismisses or moves past it.
|
|
151
150
|
generic: e.enum(["active", "closed"]).optional()
|
|
152
|
-
}).describe(E.describe(j)), y = D.omit({ _id: !0 }),
|
|
151
|
+
}).describe(E.describe(j)), y = D.omit({ _id: !0 }), B = e.object({
|
|
153
152
|
catalog: _.nullable(),
|
|
154
153
|
state: y
|
|
155
154
|
}), d = e.record(e.string().min(1).max(64), e.boolean()).refine((t) => Object.keys(t).length <= 100, "Too many ids");
|
|
@@ -166,7 +165,7 @@ e.object({
|
|
|
166
165
|
generic: e.literal("closed")
|
|
167
166
|
}).partial().strict().refine((t) => Object.keys(t).length > 0, "Empty patch");
|
|
168
167
|
export {
|
|
169
|
-
|
|
168
|
+
B as F,
|
|
170
169
|
y as a,
|
|
171
170
|
u as b
|
|
172
171
|
};
|