@saasquatch/vanilla-components 1.2.2 → 1.2.3-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{WidgetHost-c5c3687c.js → WidgetHost-18a663ee.js} +12 -11
- package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +4 -4
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/collection/components/referral-list/referral-list.js +3 -3
- package/dist/collection/services/WidgetHost.js +12 -11
- package/dist/esm/{WidgetHost-af4232dc.js → WidgetHost-d643a9de.js} +12 -11
- package/dist/esm/sqh-close-button.entry.js +1 -1
- package/dist/esm/sqh-copy-button_12.entry.js +4 -4
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/{WidgetHost-af4232dc.js → WidgetHost-d643a9de.js} +11 -8
- package/dist/esm-es5/sqh-close-button.entry.js +1 -1
- package/dist/esm-es5/sqh-copy-button_12.entry.js +4 -4
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/types/components/referral-list/referral-list.d.ts +1 -1
- package/dist/types/services/WidgetHost.d.ts +1 -1
- package/dist/widget-components/p-023e8818.system.entry.js +1 -0
- package/dist/widget-components/{p-42bd54ba.entry.js → p-10f0b8fc.entry.js} +2 -2
- package/dist/widget-components/{p-d5287f56.entry.js → p-126c2b5d.entry.js} +1 -1
- package/dist/widget-components/{p-6b72d8d8.system.js → p-3a627e51.system.js} +1 -1
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-b407755a.entry.js → p-afd88281.entry.js} +1 -1
- package/dist/widget-components/{p-31a4d435.js → p-b4a53a7e.js} +10 -23
- package/dist/widget-components/{p-11fe33bc.system.entry.js → p-edc35bc4.system.entry.js} +2 -2
- package/dist/widget-components/{p-88568329.system.entry.js → p-fd5e98db.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/widget-components/p-f10c0566.system.entry.js +0 -1
|
@@ -10170,7 +10170,7 @@ const API = {
|
|
|
10170
10170
|
return apolloClient()
|
|
10171
10171
|
.mutate({
|
|
10172
10172
|
mutation: src `
|
|
10173
|
-
mutation($eventMeta: UserAnalyticsEvent!) {
|
|
10173
|
+
mutation ($eventMeta: UserAnalyticsEvent!) {
|
|
10174
10174
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
10175
10175
|
}
|
|
10176
10176
|
`,
|
|
@@ -10198,7 +10198,7 @@ const API = {
|
|
|
10198
10198
|
accountId });
|
|
10199
10199
|
return this.getClient().query({
|
|
10200
10200
|
query: src `
|
|
10201
|
-
query($userId: String!, $accountId: String!, $offset: Int) {
|
|
10201
|
+
query ($userId: String!, $accountId: String!, $offset: Int) {
|
|
10202
10202
|
user(id: $userId, accountId: $accountId) {
|
|
10203
10203
|
...UserFragment
|
|
10204
10204
|
}
|
|
@@ -10222,7 +10222,7 @@ const API = {
|
|
|
10222
10222
|
return this.getClient()
|
|
10223
10223
|
.query({
|
|
10224
10224
|
query: src `
|
|
10225
|
-
query(
|
|
10225
|
+
query (
|
|
10226
10226
|
$userId: String!
|
|
10227
10227
|
$accountId: String!
|
|
10228
10228
|
$programId: ID
|
|
@@ -10242,7 +10242,7 @@ const API = {
|
|
|
10242
10242
|
})
|
|
10243
10243
|
.then((res) => res.data.user.shareLink);
|
|
10244
10244
|
},
|
|
10245
|
-
getReferrals(offset = 0, limit = 3) {
|
|
10245
|
+
getReferrals(showReferrer, offset = 0, limit = 3) {
|
|
10246
10246
|
const widgetId = widgetIdent();
|
|
10247
10247
|
if (widgetId["env"] === "demo" || !widgetId) {
|
|
10248
10248
|
const { referrals: refs, referredByReferral, locale } = demoUser;
|
|
@@ -10265,7 +10265,7 @@ const API = {
|
|
|
10265
10265
|
return this.getClient()
|
|
10266
10266
|
.query({
|
|
10267
10267
|
query: src `
|
|
10268
|
-
query(
|
|
10268
|
+
query (
|
|
10269
10269
|
$userId: String!
|
|
10270
10270
|
$accountId: String!
|
|
10271
10271
|
$offset: Int!
|
|
@@ -10303,7 +10303,8 @@ const API = {
|
|
|
10303
10303
|
}
|
|
10304
10304
|
}
|
|
10305
10305
|
}
|
|
10306
|
-
|
|
10306
|
+
${showReferrer
|
|
10307
|
+
? `referredByReferral(programId: $programId) {
|
|
10307
10308
|
referrerUser {
|
|
10308
10309
|
firstName
|
|
10309
10310
|
lastName
|
|
@@ -10315,8 +10316,8 @@ const API = {
|
|
|
10315
10316
|
prettyValue
|
|
10316
10317
|
statuses
|
|
10317
10318
|
}
|
|
10318
|
-
}
|
|
10319
|
-
|
|
10319
|
+
}`
|
|
10320
|
+
: ""}
|
|
10320
10321
|
}
|
|
10321
10322
|
`,
|
|
10322
10323
|
variables,
|
|
@@ -10349,7 +10350,7 @@ const API = {
|
|
|
10349
10350
|
return this.getClient()
|
|
10350
10351
|
.query({
|
|
10351
10352
|
query: src `
|
|
10352
|
-
query(
|
|
10353
|
+
query (
|
|
10353
10354
|
$userId: String!
|
|
10354
10355
|
$accountId: String!
|
|
10355
10356
|
$programId: ID
|
|
@@ -10430,7 +10431,7 @@ const API = {
|
|
|
10430
10431
|
return this.getClient()
|
|
10431
10432
|
.query({
|
|
10432
10433
|
query: src `
|
|
10433
|
-
query($userId: String!, $accountId: String!, $programId: ID!) {
|
|
10434
|
+
query ($userId: String!, $accountId: String!, $programId: ID!) {
|
|
10434
10435
|
user(id: $userId, accountId: $accountId) {
|
|
10435
10436
|
referralCode(programId: $programId)
|
|
10436
10437
|
}
|
|
@@ -10458,7 +10459,7 @@ const API = {
|
|
|
10458
10459
|
return this.getClient()
|
|
10459
10460
|
.query({
|
|
10460
10461
|
query: src `
|
|
10461
|
-
query(
|
|
10462
|
+
query (
|
|
10462
10463
|
$userId: String!
|
|
10463
10464
|
$accountId: String!
|
|
10464
10465
|
$programId: ID!
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-deb40352.js');
|
|
6
6
|
require('./_commonjsHelpers-ac2d0785.js');
|
|
7
|
-
const WidgetHost = require('./WidgetHost-
|
|
7
|
+
const WidgetHost = require('./WidgetHost-18a663ee.js');
|
|
8
8
|
|
|
9
9
|
const 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}";
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-deb40352.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-ac2d0785.js');
|
|
7
|
-
const WidgetHost = require('./WidgetHost-
|
|
7
|
+
const WidgetHost = require('./WidgetHost-18a663ee.js');
|
|
8
8
|
|
|
9
9
|
/////////////////////////////////////
|
|
10
10
|
////// ////
|
|
@@ -7120,7 +7120,7 @@ const ReferralList = class {
|
|
|
7120
7120
|
}
|
|
7121
7121
|
componentWillLoad() {
|
|
7122
7122
|
if (!this.ishidden) {
|
|
7123
|
-
return this.getReferrals()
|
|
7123
|
+
return this.getReferrals(this.showreferrer)
|
|
7124
7124
|
.then((res) => {
|
|
7125
7125
|
this.referrals = res.referrals.data;
|
|
7126
7126
|
this.referredBy = res.referredByReferral;
|
|
@@ -7133,8 +7133,8 @@ const ReferralList = class {
|
|
|
7133
7133
|
});
|
|
7134
7134
|
}
|
|
7135
7135
|
}
|
|
7136
|
-
getReferrals(offset = 0) {
|
|
7137
|
-
return WidgetHost.API.graphql.getReferrals(offset);
|
|
7136
|
+
getReferrals(showReferrer, offset = 0) {
|
|
7137
|
+
return WidgetHost.API.graphql.getReferrals(showReferrer, offset);
|
|
7138
7138
|
}
|
|
7139
7139
|
paginate(offset, event) {
|
|
7140
7140
|
if (this.loading)
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-deb40352.js');
|
|
6
6
|
require('./_commonjsHelpers-ac2d0785.js');
|
|
7
|
-
const WidgetHost = require('./WidgetHost-
|
|
7
|
+
const WidgetHost = require('./WidgetHost-18a663ee.js');
|
|
8
8
|
|
|
9
9
|
const referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
|
|
10
10
|
|
|
@@ -9,7 +9,7 @@ export class ReferralList {
|
|
|
9
9
|
}
|
|
10
10
|
componentWillLoad() {
|
|
11
11
|
if (!this.ishidden) {
|
|
12
|
-
return this.getReferrals()
|
|
12
|
+
return this.getReferrals(this.showreferrer)
|
|
13
13
|
.then((res) => {
|
|
14
14
|
this.referrals = res.referrals.data;
|
|
15
15
|
this.referredBy = res.referredByReferral;
|
|
@@ -22,8 +22,8 @@ export class ReferralList {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
getReferrals(offset = 0) {
|
|
26
|
-
return API.graphql.getReferrals(offset);
|
|
25
|
+
getReferrals(showReferrer, offset = 0) {
|
|
26
|
+
return API.graphql.getReferrals(showReferrer, offset);
|
|
27
27
|
}
|
|
28
28
|
paginate(offset, event) {
|
|
29
29
|
if (this.loading)
|
|
@@ -262,7 +262,7 @@ const API = {
|
|
|
262
262
|
return apolloClient()
|
|
263
263
|
.mutate({
|
|
264
264
|
mutation: gql `
|
|
265
|
-
mutation($eventMeta: UserAnalyticsEvent!) {
|
|
265
|
+
mutation ($eventMeta: UserAnalyticsEvent!) {
|
|
266
266
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
267
267
|
}
|
|
268
268
|
`,
|
|
@@ -290,7 +290,7 @@ const API = {
|
|
|
290
290
|
accountId });
|
|
291
291
|
return this.getClient().query({
|
|
292
292
|
query: gql `
|
|
293
|
-
query($userId: String!, $accountId: String!, $offset: Int) {
|
|
293
|
+
query ($userId: String!, $accountId: String!, $offset: Int) {
|
|
294
294
|
user(id: $userId, accountId: $accountId) {
|
|
295
295
|
...UserFragment
|
|
296
296
|
}
|
|
@@ -314,7 +314,7 @@ const API = {
|
|
|
314
314
|
return this.getClient()
|
|
315
315
|
.query({
|
|
316
316
|
query: gql `
|
|
317
|
-
query(
|
|
317
|
+
query (
|
|
318
318
|
$userId: String!
|
|
319
319
|
$accountId: String!
|
|
320
320
|
$programId: ID
|
|
@@ -334,7 +334,7 @@ const API = {
|
|
|
334
334
|
})
|
|
335
335
|
.then((res) => res.data.user.shareLink);
|
|
336
336
|
},
|
|
337
|
-
getReferrals(offset = 0, limit = 3) {
|
|
337
|
+
getReferrals(showReferrer, offset = 0, limit = 3) {
|
|
338
338
|
const widgetId = widgetIdent();
|
|
339
339
|
if (widgetId["env"] === "demo" || !widgetId) {
|
|
340
340
|
const { referrals: refs, referredByReferral, locale } = demoUser;
|
|
@@ -357,7 +357,7 @@ const API = {
|
|
|
357
357
|
return this.getClient()
|
|
358
358
|
.query({
|
|
359
359
|
query: gql `
|
|
360
|
-
query(
|
|
360
|
+
query (
|
|
361
361
|
$userId: String!
|
|
362
362
|
$accountId: String!
|
|
363
363
|
$offset: Int!
|
|
@@ -395,7 +395,8 @@ const API = {
|
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
${showReferrer
|
|
399
|
+
? `referredByReferral(programId: $programId) {
|
|
399
400
|
referrerUser {
|
|
400
401
|
firstName
|
|
401
402
|
lastName
|
|
@@ -407,8 +408,8 @@ const API = {
|
|
|
407
408
|
prettyValue
|
|
408
409
|
statuses
|
|
409
410
|
}
|
|
410
|
-
}
|
|
411
|
-
|
|
411
|
+
}`
|
|
412
|
+
: ""}
|
|
412
413
|
}
|
|
413
414
|
`,
|
|
414
415
|
variables,
|
|
@@ -441,7 +442,7 @@ const API = {
|
|
|
441
442
|
return this.getClient()
|
|
442
443
|
.query({
|
|
443
444
|
query: gql `
|
|
444
|
-
query(
|
|
445
|
+
query (
|
|
445
446
|
$userId: String!
|
|
446
447
|
$accountId: String!
|
|
447
448
|
$programId: ID
|
|
@@ -522,7 +523,7 @@ const API = {
|
|
|
522
523
|
return this.getClient()
|
|
523
524
|
.query({
|
|
524
525
|
query: gql `
|
|
525
|
-
query($userId: String!, $accountId: String!, $programId: ID!) {
|
|
526
|
+
query ($userId: String!, $accountId: String!, $programId: ID!) {
|
|
526
527
|
user(id: $userId, accountId: $accountId) {
|
|
527
528
|
referralCode(programId: $programId)
|
|
528
529
|
}
|
|
@@ -550,7 +551,7 @@ const API = {
|
|
|
550
551
|
return this.getClient()
|
|
551
552
|
.query({
|
|
552
553
|
query: gql `
|
|
553
|
-
query(
|
|
554
|
+
query (
|
|
554
555
|
$userId: String!
|
|
555
556
|
$accountId: String!
|
|
556
557
|
$programId: ID!
|
|
@@ -10168,7 +10168,7 @@ const API = {
|
|
|
10168
10168
|
return apolloClient()
|
|
10169
10169
|
.mutate({
|
|
10170
10170
|
mutation: src `
|
|
10171
|
-
mutation($eventMeta: UserAnalyticsEvent!) {
|
|
10171
|
+
mutation ($eventMeta: UserAnalyticsEvent!) {
|
|
10172
10172
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
10173
10173
|
}
|
|
10174
10174
|
`,
|
|
@@ -10196,7 +10196,7 @@ const API = {
|
|
|
10196
10196
|
accountId });
|
|
10197
10197
|
return this.getClient().query({
|
|
10198
10198
|
query: src `
|
|
10199
|
-
query($userId: String!, $accountId: String!, $offset: Int) {
|
|
10199
|
+
query ($userId: String!, $accountId: String!, $offset: Int) {
|
|
10200
10200
|
user(id: $userId, accountId: $accountId) {
|
|
10201
10201
|
...UserFragment
|
|
10202
10202
|
}
|
|
@@ -10220,7 +10220,7 @@ const API = {
|
|
|
10220
10220
|
return this.getClient()
|
|
10221
10221
|
.query({
|
|
10222
10222
|
query: src `
|
|
10223
|
-
query(
|
|
10223
|
+
query (
|
|
10224
10224
|
$userId: String!
|
|
10225
10225
|
$accountId: String!
|
|
10226
10226
|
$programId: ID
|
|
@@ -10240,7 +10240,7 @@ const API = {
|
|
|
10240
10240
|
})
|
|
10241
10241
|
.then((res) => res.data.user.shareLink);
|
|
10242
10242
|
},
|
|
10243
|
-
getReferrals(offset = 0, limit = 3) {
|
|
10243
|
+
getReferrals(showReferrer, offset = 0, limit = 3) {
|
|
10244
10244
|
const widgetId = widgetIdent();
|
|
10245
10245
|
if (widgetId["env"] === "demo" || !widgetId) {
|
|
10246
10246
|
const { referrals: refs, referredByReferral, locale } = demoUser;
|
|
@@ -10263,7 +10263,7 @@ const API = {
|
|
|
10263
10263
|
return this.getClient()
|
|
10264
10264
|
.query({
|
|
10265
10265
|
query: src `
|
|
10266
|
-
query(
|
|
10266
|
+
query (
|
|
10267
10267
|
$userId: String!
|
|
10268
10268
|
$accountId: String!
|
|
10269
10269
|
$offset: Int!
|
|
@@ -10301,7 +10301,8 @@ const API = {
|
|
|
10301
10301
|
}
|
|
10302
10302
|
}
|
|
10303
10303
|
}
|
|
10304
|
-
|
|
10304
|
+
${showReferrer
|
|
10305
|
+
? `referredByReferral(programId: $programId) {
|
|
10305
10306
|
referrerUser {
|
|
10306
10307
|
firstName
|
|
10307
10308
|
lastName
|
|
@@ -10313,8 +10314,8 @@ const API = {
|
|
|
10313
10314
|
prettyValue
|
|
10314
10315
|
statuses
|
|
10315
10316
|
}
|
|
10316
|
-
}
|
|
10317
|
-
|
|
10317
|
+
}`
|
|
10318
|
+
: ""}
|
|
10318
10319
|
}
|
|
10319
10320
|
`,
|
|
10320
10321
|
variables,
|
|
@@ -10347,7 +10348,7 @@ const API = {
|
|
|
10347
10348
|
return this.getClient()
|
|
10348
10349
|
.query({
|
|
10349
10350
|
query: src `
|
|
10350
|
-
query(
|
|
10351
|
+
query (
|
|
10351
10352
|
$userId: String!
|
|
10352
10353
|
$accountId: String!
|
|
10353
10354
|
$programId: ID
|
|
@@ -10428,7 +10429,7 @@ const API = {
|
|
|
10428
10429
|
return this.getClient()
|
|
10429
10430
|
.query({
|
|
10430
10431
|
query: src `
|
|
10431
|
-
query($userId: String!, $accountId: String!, $programId: ID!) {
|
|
10432
|
+
query ($userId: String!, $accountId: String!, $programId: ID!) {
|
|
10432
10433
|
user(id: $userId, accountId: $accountId) {
|
|
10433
10434
|
referralCode(programId: $programId)
|
|
10434
10435
|
}
|
|
@@ -10456,7 +10457,7 @@ const API = {
|
|
|
10456
10457
|
return this.getClient()
|
|
10457
10458
|
.query({
|
|
10458
10459
|
query: src `
|
|
10459
|
-
query(
|
|
10460
|
+
query (
|
|
10460
10461
|
$userId: String!
|
|
10461
10462
|
$accountId: String!
|
|
10462
10463
|
$programId: ID!
|
|
@@ -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-d643a9de.js';
|
|
4
4
|
|
|
5
5
|
const 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}";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, c as createEvent, g as getElement } from './index-8ea8b6d8.js';
|
|
2
2
|
import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-1d681858.js';
|
|
3
|
-
import { A as API } from './WidgetHost-
|
|
3
|
+
import { A as API } from './WidgetHost-d643a9de.js';
|
|
4
4
|
|
|
5
5
|
/////////////////////////////////////
|
|
6
6
|
////// ////
|
|
@@ -7116,7 +7116,7 @@ const ReferralList = class {
|
|
|
7116
7116
|
}
|
|
7117
7117
|
componentWillLoad() {
|
|
7118
7118
|
if (!this.ishidden) {
|
|
7119
|
-
return this.getReferrals()
|
|
7119
|
+
return this.getReferrals(this.showreferrer)
|
|
7120
7120
|
.then((res) => {
|
|
7121
7121
|
this.referrals = res.referrals.data;
|
|
7122
7122
|
this.referredBy = res.referredByReferral;
|
|
@@ -7129,8 +7129,8 @@ const ReferralList = class {
|
|
|
7129
7129
|
});
|
|
7130
7130
|
}
|
|
7131
7131
|
}
|
|
7132
|
-
getReferrals(offset = 0) {
|
|
7133
|
-
return API.graphql.getReferrals(offset);
|
|
7132
|
+
getReferrals(showReferrer, offset = 0) {
|
|
7133
|
+
return API.graphql.getReferrals(showReferrer, offset);
|
|
7134
7134
|
}
|
|
7135
7135
|
paginate(offset, event) {
|
|
7136
7136
|
if (this.loading)
|
|
@@ -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-d643a9de.js';
|
|
4
4
|
|
|
5
5
|
const referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
|
|
6
6
|
|
|
@@ -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 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 "])), 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; })];
|
|
@@ -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-d643a9de.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-d643a9de.js';
|
|
8
8
|
/////////////////////////////////////
|
|
9
9
|
////// ////
|
|
10
10
|
///// Color Utility Functions /////
|
|
@@ -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;
|
|
@@ -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-d643a9de.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) {
|
|
@@ -37,7 +37,7 @@ export declare class ReferralList {
|
|
|
37
37
|
locale: string;
|
|
38
38
|
constructor();
|
|
39
39
|
componentWillLoad(): any;
|
|
40
|
-
getReferrals(offset?: number): any;
|
|
40
|
+
getReferrals(showReferrer: boolean, offset?: number): any;
|
|
41
41
|
paginate(offset: any, event: any): any;
|
|
42
42
|
onError(e: Error): void;
|
|
43
43
|
render(): any;
|
|
@@ -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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-e61a8100.system.js","./p-22e300c7.system.js","./p-3a627e51.system.js"],(function(e){"use strict";var t,o,n,s,r;return{setters:[function(e){t=e.r;o=e.h;n=e.g},function(){},function(e){s=e.A;r=e.w}],execute:function(){var c="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}";var u=e("sqh_close_button",function(){function e(e){t(this,e);this.text="Close"}e.prototype.handleClick=function(){s.ui.close()};e.prototype.componentDidLoad=function(){var e=r();if(e&&e.engagementMedium!="POPUP"){this.closeButton.setAttribute("style","display:none")}};e.prototype.render=function(){return o("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)};Object.defineProperty(e.prototype,"closeButton",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());u.style=c}}}));
|