@saasquatch/vanilla-components 1.2.2-3 → 1.2.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{WidgetHost-c5c3687c.js → WidgetHost-d7b870ce.js} +12 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +6 -5
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/referral-component/referral-component.js +1 -1
- package/dist/collection/components/referral-list/referral-list.js +21 -3
- package/dist/collection/services/WidgetHost.js +12 -10
- package/dist/esm/{WidgetHost-af4232dc.js → WidgetHost-a27e693d.js} +12 -10
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +1 -1
- package/dist/esm/sqh-copy-button_12.entry.js +6 -5
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/{WidgetHost-af4232dc.js → WidgetHost-a27e693d.js} +11 -8
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +1 -1
- package/dist/esm-es5/sqh-copy-button_12.entry.js +6 -5
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/referral-list/referral-list.d.ts +2 -1
- package/dist/types/components.d.ts +2 -0
- package/dist/types/saasquatch.d.ts +1 -0
- package/dist/types/services/WidgetHost.d.ts +1 -1
- package/dist/widget-components/{p-11759bc9.system.entry.js → p-45e253f6.system.entry.js} +2 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-b407755a.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/{p-f10c0566.system.entry.js → p-908068c2.system.entry.js} +1 -1
- package/dist/widget-components/{p-f043ef94.entry.js → p-93574d86.entry.js} +3 -3
- package/dist/widget-components/{p-31a4d435.js → p-9525bf4a.js} +10 -22
- package/dist/widget-components/{p-6b72d8d8.system.js → p-9adc7c50.system.js} +1 -1
- package/dist/widget-components/{p-88568329.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-d5287f56.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/package.json +1 -1
|
@@ -9253,7 +9253,7 @@ var API = {
|
|
|
9253
9253
|
};
|
|
9254
9254
|
return apolloClient()
|
|
9255
9255
|
.mutate({
|
|
9256
|
-
mutation: src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "], ["\n mutation($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "]))),
|
|
9256
|
+
mutation: src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "], ["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "]))),
|
|
9257
9257
|
variables: variables,
|
|
9258
9258
|
})
|
|
9259
9259
|
.then(function (result) {
|
|
@@ -9274,7 +9274,7 @@ var API = {
|
|
|
9274
9274
|
var variables = Object.assign(Object.assign({}, fragmentVariables), { userId: userId,
|
|
9275
9275
|
accountId: accountId });
|
|
9276
9276
|
return this.getClient().query({
|
|
9277
|
-
query: src(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ", "\n "], ["\n query($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ", "\n "])), fragment),
|
|
9277
|
+
query: src(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query ($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ", "\n "], ["\n query ($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ", "\n "])), fragment),
|
|
9278
9278
|
variables: variables,
|
|
9279
9279
|
});
|
|
9280
9280
|
},
|
|
@@ -9291,12 +9291,12 @@ var API = {
|
|
|
9291
9291
|
};
|
|
9292
9292
|
return this.getClient()
|
|
9293
9293
|
.query({
|
|
9294
|
-
query: src(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query(\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "], ["\n query(\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "]))),
|
|
9294
|
+
query: src(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "], ["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "]))),
|
|
9295
9295
|
variables: variables,
|
|
9296
9296
|
})
|
|
9297
9297
|
.then(function (res) { return res.data.user.shareLink; });
|
|
9298
9298
|
},
|
|
9299
|
-
getReferrals: function (offset, limit) {
|
|
9299
|
+
getReferrals: function (showReferrer, offset, limit) {
|
|
9300
9300
|
if (offset === void 0) { offset = 0; }
|
|
9301
9301
|
if (limit === void 0) { limit = 3; }
|
|
9302
9302
|
var widgetId = widgetIdent();
|
|
@@ -9320,7 +9320,10 @@ var API = {
|
|
|
9320
9320
|
};
|
|
9321
9321
|
return this.getClient()
|
|
9322
9322
|
.query({
|
|
9323
|
-
query: src(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query(\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n
|
|
9323
|
+
query: src(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n ", "\n }\n }\n "], ["\n query (\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n ",
|
|
9324
|
+
"\n }\n }\n "])), showReferrer
|
|
9325
|
+
? "referredByReferral(programId: $programId) {\n referrerUser {\n firstName\n lastName\n }\n dateReferralStarted\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n statuses\n }\n }"
|
|
9326
|
+
: ""),
|
|
9324
9327
|
variables: variables,
|
|
9325
9328
|
})
|
|
9326
9329
|
.then(function (res) { return res.data.user; });
|
|
@@ -9350,7 +9353,7 @@ var API = {
|
|
|
9350
9353
|
};
|
|
9351
9354
|
return this.getClient()
|
|
9352
9355
|
.query({
|
|
9353
|
-
query: src(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query(\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n "], ["\n query(\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n "]))),
|
|
9356
|
+
query: src(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n "], ["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_month\"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: \"this_week\"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n "]))),
|
|
9354
9357
|
variables: variables,
|
|
9355
9358
|
})
|
|
9356
9359
|
.then(function (res) { return res.data.user; });
|
|
@@ -9370,7 +9373,7 @@ var API = {
|
|
|
9370
9373
|
};
|
|
9371
9374
|
return [2 /*return*/, this.getClient()
|
|
9372
9375
|
.query({
|
|
9373
|
-
query: src(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "], ["\n query($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "]))),
|
|
9376
|
+
query: src(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query ($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "], ["\n query ($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "]))),
|
|
9374
9377
|
variables: variables,
|
|
9375
9378
|
})
|
|
9376
9379
|
.then(function (res) { return res.data.user.referralCode; })];
|
|
@@ -9397,7 +9400,7 @@ var API = {
|
|
|
9397
9400
|
};
|
|
9398
9401
|
return [2 /*return*/, this.getClient()
|
|
9399
9402
|
.query({
|
|
9400
|
-
query: src(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query(\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "], ["\n query(\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "]))),
|
|
9403
|
+
query: src(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "], ["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "]))),
|
|
9401
9404
|
variables: variables,
|
|
9402
9405
|
})
|
|
9403
9406
|
.then(function (res) { return res.data.user; })];
|
package/dist/esm-es5/loader.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var defineCustomElements = function (win, options) {
|
|
|
5
5
|
if (typeof window === 'undefined')
|
|
6
6
|
return Promise.resolve();
|
|
7
7
|
return patchEsm().then(function () {
|
|
8
|
-
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[0, "sqh-referral-list", { "ishidden": [4], "paginatemore": [1], "paginateless": [1], "noreferralsyet": [1], "referralnamecolor": [1], "referraltextcolor": [1], "unknownuser": [1], "showexpiry": [4], "shownotes": [4], "redeemedvalue": [1], "showreferrer": [4], "referrercontent": [1], "referrervalue": [1], "rewardcolor": [1], "customernotecolor": [1], "usefirstreward": [4], "convertedcontent": [1], "valuecontent": [1], "pendingcolor": [1], "pendingcontent": [1], "pendingvalue": [1], "expiredcolor": [1], "expiredcontent": [1], "expiredvalue": [1], "cancelledcolor": [1], "cancelledcontent": [1], "cancelledvalue": [1], "internationalization": [4], "referrals": [32], "referralsCount": [32], "referredBy": [32], "rewards": [32], "loading": [32], "offset": [32], "locale": [32] }], [0, "sqh-share-button-container", { "ishidden": [4], "emaildisplayrule": [1], "emailtext": [1], "emailbackgroundcolor": [1], "emailtextcolor": [1], "emailicon": [1], "emailclassName": [1, "emailclass-name"], "emailiconhorizontal": [2], "emailiconvertical": [2], "emailiconsize": [2], "facebookdisplayrule": [1], "facebooktext": [1], "facebookbackgroundcolor": [1], "facebooktextcolor": [1], "facebookicon": [1], "facebookclassName": [1, "facebookclass-name"], "facebookiconhorizontal": [2], "facebookiconvertical": [2], "facebookiconsize": [2], "twitterdisplayrule": [1], "twittertext": [1], "twitterbackgroundcolor": [1], "twittertextcolor": [1], "twittericon": [1], "twitterclassName": [1, "twitterclass-name"], "twittericonhorizontal": [2], "twittericonvertical": [2], "twittericonsize": [2], "smsdisplayrule": [1], "smstext": [1], "smsbackgroundcolor": [1], "smstextcolor": [1], "smsicon": [1], "smsclassName": [1, "smsclass-name"], "smsiconhorizontal": [2], "smsiconvertical": [2], "smsiconsize": [2], "whatsappdisplayrule": [1], "whatsapptext": [1], "whatsappbackgroundcolor": [1], "whatsapptextcolor": [1], "whatsappicon": [1], "whatsappclassName": [1, "whatsappclass-name"], "whatsappiconhorizontal": [2], "whatsappiconvertical": [2], "whatsappiconsize": [2], "linkedindisplayrule": [1], "linkedintext": [1], "linkedinbackgroundcolor": [1], "linkedintextcolor": [1], "linkedinicon": [1], "linkedinclassName": [1, "linkedinclass-name"], "linkediniconhorizontal": [2], "linkediniconvertical": [2], "linkediniconsize": [2], "pinterestdisplayrule": [1], "pinteresttext": [1], "pinterestbackgroundcolor": [1], "pinteresttextcolor": [1], "pinteresticon": [1], "pinterestclassName": [1, "pinterestclass-name"], "pinteresticonhorizontal": [2], "pinteresticonvertical": [2], "pinteresticonsize": [2], "messengerdisplayrule": [1], "messengertext": [1], "messengerbackgroundcolor": [1], "messengertextcolor": [1], "messengericon": [1], "messengerclassName": [1, "messengerclass-name"], "messengericonhorizontal": [2], "messengericonvertical": [2], "messengericonsize": [2], "linedisplayrule": [1], "linetext": [1], "linebackgroundcolor": [1], "linetextcolor": [1], "lineicon": [1], "lineclassName": [1, "lineclass-name"], "lineiconhorizontal": [2], "lineiconvertical": [2], "lineiconsize": [2], "emailurl": [32], "facebookurl": [32], "twitterurl": [32], "smsurl": [32], "whatsappurl": [32], "linkedinurl": [32], "pinteresturl": [32], "messengerurl": [32], "lineurl": [32] }], [0, "sqh-copy-button", { "ishidden": [4], "text": [1], "width": [2], "backgroundcolor": [1], "borderradius": [2], "textcolor": [1], "fontsize": [2], "copysuccess": [1], "copyfailure": [1], "rewardkey": [1], "codefontsize": [2], "codefontcolor": [1], "fueltankcode": [32] }], [0, "sqh-copy-link-button", { "ishidden": [4], "text": [1], "copysuccess": [1], "copyfailure": [1], "buttoncolor": [1], "textcolor": [1], "sharelink": [32] }], [4, "sqh-global-container", { "background": [1], "loadingcolor": [1], "fontfamily": [1], "maxwidth": [1], "poweredby": [4] }], [0, "sqh-image-component", { "ishidden": [4], "url": [1], "width": [2], "borderradius": [2], "alignment": [1], "css": [1] }], [0, "sqh-partner-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [0, "sqh-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [4, "sqh-stats-container", { "ishidden": [4], "paddingtop": [1], "paddingbottom": [1], "loading": [32], "stats": [32] }, [[0, "statTypeUpdated", "statTypeUpdatedHandler"], [0, "statAdded", "statAddedHandler"]]], [0, "sqh-text-component", { "ishidden": [4], "ismarkdown": [4], "text": [1], "fontfamily": [1], "color": [1], "fontsize": [1], "paddingtop": [1], "paddingbottom": [1], "padding": [1], "textalign": [1], "background": [1], "height": [1] }], [0, "sqh-referral-component", { "referral": [16], "referraltype": [1], "referralvariables": [16], "unknownuser": [16], "locale": [1] }], [0, "sqh-share-button", { "displayrule": [1], "text": [1], "backgroundcolor": [1], "textcolor": [1], "icon": [1], "buttonClassName": [1, "button-class-name"], "iconhorizontal": [2], "iconvertical": [2], "iconsize": [2], "type": [1], "url": [1] }]]]], options);
|
|
8
|
+
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[0, "sqh-referral-list", { "ishidden": [4], "paginatemore": [1], "paginateless": [1], "noreferralsyet": [1], "referralnamecolor": [1], "referraltextcolor": [1], "unknownuser": [1], "showexpiry": [4], "shownotes": [4], "redeemedvalue": [1], "showreferrer": [4], "referrercontent": [1], "referrervalue": [1], "rewardcolor": [1], "customernotecolor": [1], "usefirstreward": [4], "convertedcontent": [1], "valuecontent": [1], "pendingcolor": [1], "pendingcontent": [1], "pendingvalue": [1], "expiredcolor": [1], "expiredcontent": [1], "expiredvalue": [1], "expiresvalue": [1], "cancelledcolor": [1], "cancelledcontent": [1], "cancelledvalue": [1], "internationalization": [4], "referrals": [32], "referralsCount": [32], "referredBy": [32], "rewards": [32], "loading": [32], "offset": [32], "locale": [32] }], [0, "sqh-share-button-container", { "ishidden": [4], "emaildisplayrule": [1], "emailtext": [1], "emailbackgroundcolor": [1], "emailtextcolor": [1], "emailicon": [1], "emailclassName": [1, "emailclass-name"], "emailiconhorizontal": [2], "emailiconvertical": [2], "emailiconsize": [2], "facebookdisplayrule": [1], "facebooktext": [1], "facebookbackgroundcolor": [1], "facebooktextcolor": [1], "facebookicon": [1], "facebookclassName": [1, "facebookclass-name"], "facebookiconhorizontal": [2], "facebookiconvertical": [2], "facebookiconsize": [2], "twitterdisplayrule": [1], "twittertext": [1], "twitterbackgroundcolor": [1], "twittertextcolor": [1], "twittericon": [1], "twitterclassName": [1, "twitterclass-name"], "twittericonhorizontal": [2], "twittericonvertical": [2], "twittericonsize": [2], "smsdisplayrule": [1], "smstext": [1], "smsbackgroundcolor": [1], "smstextcolor": [1], "smsicon": [1], "smsclassName": [1, "smsclass-name"], "smsiconhorizontal": [2], "smsiconvertical": [2], "smsiconsize": [2], "whatsappdisplayrule": [1], "whatsapptext": [1], "whatsappbackgroundcolor": [1], "whatsapptextcolor": [1], "whatsappicon": [1], "whatsappclassName": [1, "whatsappclass-name"], "whatsappiconhorizontal": [2], "whatsappiconvertical": [2], "whatsappiconsize": [2], "linkedindisplayrule": [1], "linkedintext": [1], "linkedinbackgroundcolor": [1], "linkedintextcolor": [1], "linkedinicon": [1], "linkedinclassName": [1, "linkedinclass-name"], "linkediniconhorizontal": [2], "linkediniconvertical": [2], "linkediniconsize": [2], "pinterestdisplayrule": [1], "pinteresttext": [1], "pinterestbackgroundcolor": [1], "pinteresttextcolor": [1], "pinteresticon": [1], "pinterestclassName": [1, "pinterestclass-name"], "pinteresticonhorizontal": [2], "pinteresticonvertical": [2], "pinteresticonsize": [2], "messengerdisplayrule": [1], "messengertext": [1], "messengerbackgroundcolor": [1], "messengertextcolor": [1], "messengericon": [1], "messengerclassName": [1, "messengerclass-name"], "messengericonhorizontal": [2], "messengericonvertical": [2], "messengericonsize": [2], "linedisplayrule": [1], "linetext": [1], "linebackgroundcolor": [1], "linetextcolor": [1], "lineicon": [1], "lineclassName": [1, "lineclass-name"], "lineiconhorizontal": [2], "lineiconvertical": [2], "lineiconsize": [2], "emailurl": [32], "facebookurl": [32], "twitterurl": [32], "smsurl": [32], "whatsappurl": [32], "linkedinurl": [32], "pinteresturl": [32], "messengerurl": [32], "lineurl": [32] }], [0, "sqh-copy-button", { "ishidden": [4], "text": [1], "width": [2], "backgroundcolor": [1], "borderradius": [2], "textcolor": [1], "fontsize": [2], "copysuccess": [1], "copyfailure": [1], "rewardkey": [1], "codefontsize": [2], "codefontcolor": [1], "fueltankcode": [32] }], [0, "sqh-copy-link-button", { "ishidden": [4], "text": [1], "copysuccess": [1], "copyfailure": [1], "buttoncolor": [1], "textcolor": [1], "sharelink": [32] }], [4, "sqh-global-container", { "background": [1], "loadingcolor": [1], "fontfamily": [1], "maxwidth": [1], "poweredby": [4] }], [0, "sqh-image-component", { "ishidden": [4], "url": [1], "width": [2], "borderradius": [2], "alignment": [1], "css": [1] }], [0, "sqh-partner-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [0, "sqh-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [4, "sqh-stats-container", { "ishidden": [4], "paddingtop": [1], "paddingbottom": [1], "loading": [32], "stats": [32] }, [[0, "statTypeUpdated", "statTypeUpdatedHandler"], [0, "statAdded", "statAddedHandler"]]], [0, "sqh-text-component", { "ishidden": [4], "ismarkdown": [4], "text": [1], "fontfamily": [1], "color": [1], "fontsize": [1], "paddingtop": [1], "paddingbottom": [1], "padding": [1], "textalign": [1], "background": [1], "height": [1] }], [0, "sqh-referral-component", { "referral": [16], "referraltype": [1], "referralvariables": [16], "unknownuser": [16], "locale": [1] }], [0, "sqh-share-button", { "displayrule": [1], "text": [1], "backgroundcolor": [1], "textcolor": [1], "icon": [1], "buttonClassName": [1, "button-class-name"], "iconhorizontal": [2], "iconvertical": [2], "iconsize": [2], "type": [1], "url": [1] }]]]], options);
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-8ea8b6d8.js';
|
|
2
2
|
import './_commonjsHelpers-1d681858.js';
|
|
3
|
-
import { A as API, w as widgetIdent } from './WidgetHost-
|
|
3
|
+
import { A as API, w as widgetIdent } from './WidgetHost-a27e693d.js';
|
|
4
4
|
var closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
|
|
5
5
|
var TwitterShareButton = /** @class */ (function () {
|
|
6
6
|
function TwitterShareButton(hostRef) {
|
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { r as registerInstance, h, c as createEvent, g as getElement } from './index-8ea8b6d8.js';
|
|
6
6
|
import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-1d681858.js';
|
|
7
|
-
import { A as API } from './WidgetHost-
|
|
7
|
+
import { A as API } from './WidgetHost-a27e693d.js';
|
|
8
8
|
/////////////////////////////////////
|
|
9
9
|
////// ////
|
|
10
10
|
///// Color Utility Functions /////
|
|
@@ -6643,7 +6643,7 @@ var ReferralComponent = /** @class */ (function () {
|
|
|
6643
6643
|
// Expiry date only shown if there is 1 reward with dateExpires set in the referral
|
|
6644
6644
|
if (this.referralvariables.showexpiry && rewards[0].dateExpires) {
|
|
6645
6645
|
var expiryDate = FormatJS.formatRelative(rewards[0].dateExpires, this.locale);
|
|
6646
|
-
return FormatJS.format("Expires " + expiryDate, formatVariables, this.locale);
|
|
6646
|
+
return FormatJS.format(this.referralvariables.expiresvalue || "Expires " + expiryDate, Object.assign(Object.assign({}, formatVariables), { expiryDate: expiryDate }), this.locale);
|
|
6647
6647
|
}
|
|
6648
6648
|
return "";
|
|
6649
6649
|
}
|
|
@@ -6688,7 +6688,7 @@ var ReferralList = /** @class */ (function () {
|
|
|
6688
6688
|
ReferralList.prototype.componentWillLoad = function () {
|
|
6689
6689
|
var _this_1 = this;
|
|
6690
6690
|
if (!this.ishidden) {
|
|
6691
|
-
return this.getReferrals()
|
|
6691
|
+
return this.getReferrals(this.showreferrer)
|
|
6692
6692
|
.then(function (res) {
|
|
6693
6693
|
_this_1.referrals = res.referrals.data;
|
|
6694
6694
|
_this_1.referredBy = res.referredByReferral;
|
|
@@ -6701,9 +6701,9 @@ var ReferralList = /** @class */ (function () {
|
|
|
6701
6701
|
});
|
|
6702
6702
|
}
|
|
6703
6703
|
};
|
|
6704
|
-
ReferralList.prototype.getReferrals = function (offset) {
|
|
6704
|
+
ReferralList.prototype.getReferrals = function (showReferrer, offset) {
|
|
6705
6705
|
if (offset === void 0) { offset = 0; }
|
|
6706
|
-
return API.graphql.getReferrals(offset);
|
|
6706
|
+
return API.graphql.getReferrals(showReferrer, offset);
|
|
6707
6707
|
};
|
|
6708
6708
|
ReferralList.prototype.paginate = function (offset, event) {
|
|
6709
6709
|
var _this_1 = this;
|
|
@@ -6743,6 +6743,7 @@ var ReferralList = /** @class */ (function () {
|
|
|
6743
6743
|
valuecontent: this.valuecontent,
|
|
6744
6744
|
expiredcontent: this.expiredcontent,
|
|
6745
6745
|
expiredvalue: this.expiredvalue,
|
|
6746
|
+
expiresvalue: this.expiresvalue,
|
|
6746
6747
|
redeemedvalue: this.redeemedvalue,
|
|
6747
6748
|
showexpiry: this.showexpiry,
|
|
6748
6749
|
shownotes: this.shownotes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-8ea8b6d8.js';
|
|
2
2
|
import './_commonjsHelpers-1d681858.js';
|
|
3
|
-
import { A as API } from './WidgetHost-
|
|
3
|
+
import { A as API } from './WidgetHost-a27e693d.js';
|
|
4
4
|
var referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
|
|
5
5
|
var ReferralCode = /** @class */ (function () {
|
|
6
6
|
function ReferralCode(hostRef) {
|
|
@@ -2,5 +2,5 @@ import { b as bootstrapLazy } from './index-8ea8b6d8.js';
|
|
|
2
2
|
import { p as patchBrowser } from './en-be593af0.js';
|
|
3
3
|
import './_commonjsHelpers-1d681858.js';
|
|
4
4
|
patchBrowser().then(function (options) {
|
|
5
|
-
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[0, "sqh-referral-list", { "ishidden": [4], "paginatemore": [1], "paginateless": [1], "noreferralsyet": [1], "referralnamecolor": [1], "referraltextcolor": [1], "unknownuser": [1], "showexpiry": [4], "shownotes": [4], "redeemedvalue": [1], "showreferrer": [4], "referrercontent": [1], "referrervalue": [1], "rewardcolor": [1], "customernotecolor": [1], "usefirstreward": [4], "convertedcontent": [1], "valuecontent": [1], "pendingcolor": [1], "pendingcontent": [1], "pendingvalue": [1], "expiredcolor": [1], "expiredcontent": [1], "expiredvalue": [1], "cancelledcolor": [1], "cancelledcontent": [1], "cancelledvalue": [1], "internationalization": [4], "referrals": [32], "referralsCount": [32], "referredBy": [32], "rewards": [32], "loading": [32], "offset": [32], "locale": [32] }], [0, "sqh-share-button-container", { "ishidden": [4], "emaildisplayrule": [1], "emailtext": [1], "emailbackgroundcolor": [1], "emailtextcolor": [1], "emailicon": [1], "emailclassName": [1, "emailclass-name"], "emailiconhorizontal": [2], "emailiconvertical": [2], "emailiconsize": [2], "facebookdisplayrule": [1], "facebooktext": [1], "facebookbackgroundcolor": [1], "facebooktextcolor": [1], "facebookicon": [1], "facebookclassName": [1, "facebookclass-name"], "facebookiconhorizontal": [2], "facebookiconvertical": [2], "facebookiconsize": [2], "twitterdisplayrule": [1], "twittertext": [1], "twitterbackgroundcolor": [1], "twittertextcolor": [1], "twittericon": [1], "twitterclassName": [1, "twitterclass-name"], "twittericonhorizontal": [2], "twittericonvertical": [2], "twittericonsize": [2], "smsdisplayrule": [1], "smstext": [1], "smsbackgroundcolor": [1], "smstextcolor": [1], "smsicon": [1], "smsclassName": [1, "smsclass-name"], "smsiconhorizontal": [2], "smsiconvertical": [2], "smsiconsize": [2], "whatsappdisplayrule": [1], "whatsapptext": [1], "whatsappbackgroundcolor": [1], "whatsapptextcolor": [1], "whatsappicon": [1], "whatsappclassName": [1, "whatsappclass-name"], "whatsappiconhorizontal": [2], "whatsappiconvertical": [2], "whatsappiconsize": [2], "linkedindisplayrule": [1], "linkedintext": [1], "linkedinbackgroundcolor": [1], "linkedintextcolor": [1], "linkedinicon": [1], "linkedinclassName": [1, "linkedinclass-name"], "linkediniconhorizontal": [2], "linkediniconvertical": [2], "linkediniconsize": [2], "pinterestdisplayrule": [1], "pinteresttext": [1], "pinterestbackgroundcolor": [1], "pinteresttextcolor": [1], "pinteresticon": [1], "pinterestclassName": [1, "pinterestclass-name"], "pinteresticonhorizontal": [2], "pinteresticonvertical": [2], "pinteresticonsize": [2], "messengerdisplayrule": [1], "messengertext": [1], "messengerbackgroundcolor": [1], "messengertextcolor": [1], "messengericon": [1], "messengerclassName": [1, "messengerclass-name"], "messengericonhorizontal": [2], "messengericonvertical": [2], "messengericonsize": [2], "linedisplayrule": [1], "linetext": [1], "linebackgroundcolor": [1], "linetextcolor": [1], "lineicon": [1], "lineclassName": [1, "lineclass-name"], "lineiconhorizontal": [2], "lineiconvertical": [2], "lineiconsize": [2], "emailurl": [32], "facebookurl": [32], "twitterurl": [32], "smsurl": [32], "whatsappurl": [32], "linkedinurl": [32], "pinteresturl": [32], "messengerurl": [32], "lineurl": [32] }], [0, "sqh-copy-button", { "ishidden": [4], "text": [1], "width": [2], "backgroundcolor": [1], "borderradius": [2], "textcolor": [1], "fontsize": [2], "copysuccess": [1], "copyfailure": [1], "rewardkey": [1], "codefontsize": [2], "codefontcolor": [1], "fueltankcode": [32] }], [0, "sqh-copy-link-button", { "ishidden": [4], "text": [1], "copysuccess": [1], "copyfailure": [1], "buttoncolor": [1], "textcolor": [1], "sharelink": [32] }], [4, "sqh-global-container", { "background": [1], "loadingcolor": [1], "fontfamily": [1], "maxwidth": [1], "poweredby": [4] }], [0, "sqh-image-component", { "ishidden": [4], "url": [1], "width": [2], "borderradius": [2], "alignment": [1], "css": [1] }], [0, "sqh-partner-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [0, "sqh-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [4, "sqh-stats-container", { "ishidden": [4], "paddingtop": [1], "paddingbottom": [1], "loading": [32], "stats": [32] }, [[0, "statTypeUpdated", "statTypeUpdatedHandler"], [0, "statAdded", "statAddedHandler"]]], [0, "sqh-text-component", { "ishidden": [4], "ismarkdown": [4], "text": [1], "fontfamily": [1], "color": [1], "fontsize": [1], "paddingtop": [1], "paddingbottom": [1], "padding": [1], "textalign": [1], "background": [1], "height": [1] }], [0, "sqh-referral-component", { "referral": [16], "referraltype": [1], "referralvariables": [16], "unknownuser": [16], "locale": [1] }], [0, "sqh-share-button", { "displayrule": [1], "text": [1], "backgroundcolor": [1], "textcolor": [1], "icon": [1], "buttonClassName": [1, "button-class-name"], "iconhorizontal": [2], "iconvertical": [2], "iconsize": [2], "type": [1], "url": [1] }]]]], options);
|
|
5
|
+
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[0, "sqh-referral-list", { "ishidden": [4], "paginatemore": [1], "paginateless": [1], "noreferralsyet": [1], "referralnamecolor": [1], "referraltextcolor": [1], "unknownuser": [1], "showexpiry": [4], "shownotes": [4], "redeemedvalue": [1], "showreferrer": [4], "referrercontent": [1], "referrervalue": [1], "rewardcolor": [1], "customernotecolor": [1], "usefirstreward": [4], "convertedcontent": [1], "valuecontent": [1], "pendingcolor": [1], "pendingcontent": [1], "pendingvalue": [1], "expiredcolor": [1], "expiredcontent": [1], "expiredvalue": [1], "expiresvalue": [1], "cancelledcolor": [1], "cancelledcontent": [1], "cancelledvalue": [1], "internationalization": [4], "referrals": [32], "referralsCount": [32], "referredBy": [32], "rewards": [32], "loading": [32], "offset": [32], "locale": [32] }], [0, "sqh-share-button-container", { "ishidden": [4], "emaildisplayrule": [1], "emailtext": [1], "emailbackgroundcolor": [1], "emailtextcolor": [1], "emailicon": [1], "emailclassName": [1, "emailclass-name"], "emailiconhorizontal": [2], "emailiconvertical": [2], "emailiconsize": [2], "facebookdisplayrule": [1], "facebooktext": [1], "facebookbackgroundcolor": [1], "facebooktextcolor": [1], "facebookicon": [1], "facebookclassName": [1, "facebookclass-name"], "facebookiconhorizontal": [2], "facebookiconvertical": [2], "facebookiconsize": [2], "twitterdisplayrule": [1], "twittertext": [1], "twitterbackgroundcolor": [1], "twittertextcolor": [1], "twittericon": [1], "twitterclassName": [1, "twitterclass-name"], "twittericonhorizontal": [2], "twittericonvertical": [2], "twittericonsize": [2], "smsdisplayrule": [1], "smstext": [1], "smsbackgroundcolor": [1], "smstextcolor": [1], "smsicon": [1], "smsclassName": [1, "smsclass-name"], "smsiconhorizontal": [2], "smsiconvertical": [2], "smsiconsize": [2], "whatsappdisplayrule": [1], "whatsapptext": [1], "whatsappbackgroundcolor": [1], "whatsapptextcolor": [1], "whatsappicon": [1], "whatsappclassName": [1, "whatsappclass-name"], "whatsappiconhorizontal": [2], "whatsappiconvertical": [2], "whatsappiconsize": [2], "linkedindisplayrule": [1], "linkedintext": [1], "linkedinbackgroundcolor": [1], "linkedintextcolor": [1], "linkedinicon": [1], "linkedinclassName": [1, "linkedinclass-name"], "linkediniconhorizontal": [2], "linkediniconvertical": [2], "linkediniconsize": [2], "pinterestdisplayrule": [1], "pinteresttext": [1], "pinterestbackgroundcolor": [1], "pinteresttextcolor": [1], "pinteresticon": [1], "pinterestclassName": [1, "pinterestclass-name"], "pinteresticonhorizontal": [2], "pinteresticonvertical": [2], "pinteresticonsize": [2], "messengerdisplayrule": [1], "messengertext": [1], "messengerbackgroundcolor": [1], "messengertextcolor": [1], "messengericon": [1], "messengerclassName": [1, "messengerclass-name"], "messengericonhorizontal": [2], "messengericonvertical": [2], "messengericonsize": [2], "linedisplayrule": [1], "linetext": [1], "linebackgroundcolor": [1], "linetextcolor": [1], "lineicon": [1], "lineclassName": [1, "lineclass-name"], "lineiconhorizontal": [2], "lineiconvertical": [2], "lineiconsize": [2], "emailurl": [32], "facebookurl": [32], "twitterurl": [32], "smsurl": [32], "whatsappurl": [32], "linkedinurl": [32], "pinteresturl": [32], "messengerurl": [32], "lineurl": [32] }], [0, "sqh-copy-button", { "ishidden": [4], "text": [1], "width": [2], "backgroundcolor": [1], "borderradius": [2], "textcolor": [1], "fontsize": [2], "copysuccess": [1], "copyfailure": [1], "rewardkey": [1], "codefontsize": [2], "codefontcolor": [1], "fueltankcode": [32] }], [0, "sqh-copy-link-button", { "ishidden": [4], "text": [1], "copysuccess": [1], "copyfailure": [1], "buttoncolor": [1], "textcolor": [1], "sharelink": [32] }], [4, "sqh-global-container", { "background": [1], "loadingcolor": [1], "fontfamily": [1], "maxwidth": [1], "poweredby": [4] }], [0, "sqh-image-component", { "ishidden": [4], "url": [1], "width": [2], "borderradius": [2], "alignment": [1], "css": [1] }], [0, "sqh-partner-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [0, "sqh-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [4, "sqh-stats-container", { "ishidden": [4], "paddingtop": [1], "paddingbottom": [1], "loading": [32], "stats": [32] }, [[0, "statTypeUpdated", "statTypeUpdatedHandler"], [0, "statAdded", "statAddedHandler"]]], [0, "sqh-text-component", { "ishidden": [4], "ismarkdown": [4], "text": [1], "fontfamily": [1], "color": [1], "fontsize": [1], "paddingtop": [1], "paddingbottom": [1], "padding": [1], "textalign": [1], "background": [1], "height": [1] }], [0, "sqh-referral-component", { "referral": [16], "referraltype": [1], "referralvariables": [16], "unknownuser": [16], "locale": [1] }], [0, "sqh-share-button", { "displayrule": [1], "text": [1], "backgroundcolor": [1], "textcolor": [1], "icon": [1], "buttonClassName": [1, "button-class-name"], "iconhorizontal": [2], "iconvertical": [2], "iconsize": [2], "type": [1], "url": [1] }]]]], options);
|
|
6
6
|
});
|
|
@@ -23,6 +23,7 @@ export declare class ReferralList {
|
|
|
23
23
|
expiredcolor: string;
|
|
24
24
|
expiredcontent: string;
|
|
25
25
|
expiredvalue: string;
|
|
26
|
+
expiresvalue: string;
|
|
26
27
|
cancelledcolor: string;
|
|
27
28
|
cancelledcontent: string;
|
|
28
29
|
cancelledvalue: string;
|
|
@@ -36,7 +37,7 @@ export declare class ReferralList {
|
|
|
36
37
|
locale: string;
|
|
37
38
|
constructor();
|
|
38
39
|
componentWillLoad(): any;
|
|
39
|
-
getReferrals(offset?: number): any;
|
|
40
|
+
getReferrals(showReferrer: boolean, offset?: number): any;
|
|
40
41
|
paginate(offset: any, event: any): any;
|
|
41
42
|
onError(e: Error): void;
|
|
42
43
|
render(): any;
|
|
@@ -71,6 +71,7 @@ export namespace Components {
|
|
|
71
71
|
"expiredcolor": string;
|
|
72
72
|
"expiredcontent": string;
|
|
73
73
|
"expiredvalue": string;
|
|
74
|
+
"expiresvalue": string;
|
|
74
75
|
"internationalization": boolean;
|
|
75
76
|
"ishidden": boolean;
|
|
76
77
|
"noreferralsyet": string;
|
|
@@ -398,6 +399,7 @@ declare namespace LocalJSX {
|
|
|
398
399
|
"expiredcolor"?: string;
|
|
399
400
|
"expiredcontent"?: string;
|
|
400
401
|
"expiredvalue"?: string;
|
|
402
|
+
"expiresvalue"?: string;
|
|
401
403
|
"internationalization"?: boolean;
|
|
402
404
|
"ishidden"?: boolean;
|
|
403
405
|
"noreferralsyet"?: string;
|
|
@@ -28,7 +28,7 @@ declare const API: {
|
|
|
28
28
|
getClient(): ApolloClient<import("apollo-cache-inmemory").NormalizedCacheObject>;
|
|
29
29
|
getUserFragment(userFragment: any, fragmentVariables: any): any;
|
|
30
30
|
getShareLink(): any;
|
|
31
|
-
getReferrals(offset?: number, limit?: number): any;
|
|
31
|
+
getReferrals(showReferrer: boolean, offset?: number, limit?: number): any;
|
|
32
32
|
getStats(): any;
|
|
33
33
|
getReferralCode(): Promise<string>;
|
|
34
34
|
getFueltankCode(rewardKey: any): Promise<SimpleObject>;
|