@saasquatch/vanilla-components 1.2.6 → 1.2.8-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/LICENSE +21 -21
- package/dist/cjs/{WidgetHost-fce29ef5.js → WidgetHost-71b013eb.js} +195 -195
- package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +154 -154
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/collection/components/copy-button/copy-button.js +22 -22
- package/dist/collection/components/copy-link-button/copy-link-button.js +15 -15
- package/dist/collection/components/global-container/global-container.js +8 -8
- package/dist/collection/components/image-component/image-component.js +10 -10
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +2 -2
- package/dist/collection/components/referral-list/referral-list.js +51 -51
- package/dist/collection/components/share-button/share-button.js +19 -19
- package/dist/collection/components/share-button-container/share-button-container.js +31 -31
- package/dist/collection/components/stat-component/stat-component.js +2 -2
- package/dist/collection/components/stats-container/stats-container.js +4 -4
- package/dist/collection/components/text-component/text-component.js +13 -13
- package/dist/collection/entrypoint.js +34 -34
- package/dist/collection/services/WidgetHost.js +195 -195
- package/dist/esm/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +195 -195
- package/dist/esm/sqh-close-button.entry.js +1 -1
- package/dist/esm/sqh-copy-button_12.entry.js +154 -154
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +1 -1
- package/dist/esm-es5/sqh-copy-button_12.entry.js +9 -9
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/types/components/share-button-container/share-button-container.d.ts +24 -24
- package/dist/types/components.d.ts +46 -46
- package/dist/types/saasquatch.d.ts +105 -105
- package/dist/widget-components/entrypoint.js +34 -34
- package/dist/widget-components/{p-50ae8f2b.entry.js → p-366f1663.entry.js} +1 -1
- package/dist/widget-components/{p-131a5c4a.entry.js → p-54ea7a00.entry.js} +1 -1
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-8baa34a0.entry.js → p-71e912a2.entry.js} +6 -6
- package/dist/widget-components/{p-b9fcb846.system.entry.js → p-b17efca4.system.entry.js} +1 -1
- package/dist/widget-components/p-c5f70ddc.system.entry.js +8 -0
- package/dist/widget-components/{p-da180bcd.system.entry.js → p-c8bc8c77.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +97 -97
- package/readme.md +52 -52
- package/dist/widget-components/p-1b8f2cfc.system.entry.js +0 -8
- /package/dist/esm-es5/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +0 -0
- /package/dist/widget-components/{p-e692beaf.system.js → p-8e232564.system.js} +0 -0
- /package/dist/widget-components/{p-ffeb02d1.js → p-edd43dbc.js} +0 -0
|
@@ -924,59 +924,59 @@ export namespace Components {
|
|
|
924
924
|
*/
|
|
925
925
|
"smstextcolor": string;
|
|
926
926
|
/**
|
|
927
|
-
* Background color of the
|
|
928
|
-
* @uiName
|
|
929
|
-
* @uiGroup
|
|
927
|
+
* Background color of the X button
|
|
928
|
+
* @uiName X Background Color
|
|
929
|
+
* @uiGroup X
|
|
930
930
|
* @uiWidget color
|
|
931
|
-
* @default #
|
|
931
|
+
* @default #000000
|
|
932
932
|
*/
|
|
933
933
|
"twitterbackgroundcolor": string;
|
|
934
934
|
/**
|
|
935
935
|
* CSS class name for additional styling.
|
|
936
|
-
* @uiName
|
|
937
|
-
* @uiGroup
|
|
936
|
+
* @uiName X Class Name
|
|
937
|
+
* @uiGroup X
|
|
938
938
|
*/
|
|
939
939
|
"twitterclassName": string;
|
|
940
940
|
/**
|
|
941
941
|
* Show and hide button depending on what type of device the user is on
|
|
942
|
-
* @uiName
|
|
943
|
-
* @uiGroup
|
|
942
|
+
* @uiName X Display Rule
|
|
943
|
+
* @uiGroup X
|
|
944
944
|
* @uiEnum ["mobile-and-desktop","mobile-only","desktop-only","hidden"]
|
|
945
945
|
* @uiEnumNames ["Mobile and Desktop","Mobile Only","Desktop Only","Hide"]
|
|
946
946
|
* @default mobile-and-desktop
|
|
947
947
|
*/
|
|
948
948
|
"twitterdisplayrule": string;
|
|
949
949
|
/**
|
|
950
|
-
* @uiName
|
|
951
|
-
* @uiGroup
|
|
950
|
+
* @uiName X Icon
|
|
951
|
+
* @uiGroup X
|
|
952
952
|
*/
|
|
953
953
|
"twittericon": string;
|
|
954
954
|
/**
|
|
955
|
-
* Number to horizontally align the
|
|
956
|
-
* @uiName
|
|
957
|
-
* @uiGroup
|
|
955
|
+
* Number to horizontally align the X button icon
|
|
956
|
+
* @uiName X Icon Horizontal
|
|
957
|
+
* @uiGroup X
|
|
958
958
|
*/
|
|
959
959
|
"twittericonhorizontal": number;
|
|
960
960
|
/**
|
|
961
|
-
* @uiName
|
|
962
|
-
* @uiGroup
|
|
961
|
+
* @uiName X Icon Size
|
|
962
|
+
* @uiGroup X
|
|
963
963
|
*/
|
|
964
964
|
"twittericonsize": number;
|
|
965
965
|
/**
|
|
966
|
-
* Number to vertically align the
|
|
967
|
-
* @uiName
|
|
968
|
-
* @uiGroup
|
|
966
|
+
* Number to vertically align the X button icon
|
|
967
|
+
* @uiName X Icon Vertical
|
|
968
|
+
* @uiGroup X
|
|
969
969
|
*/
|
|
970
970
|
"twittericonvertical": number;
|
|
971
971
|
/**
|
|
972
|
-
* @uiName
|
|
973
|
-
* @uiGroup
|
|
974
|
-
* @default
|
|
972
|
+
* @uiName X Text
|
|
973
|
+
* @uiGroup X
|
|
974
|
+
* @default X
|
|
975
975
|
*/
|
|
976
976
|
"twittertext": string;
|
|
977
977
|
/**
|
|
978
|
-
* @uiName
|
|
979
|
-
* @uiGroup
|
|
978
|
+
* @uiName X Text Color
|
|
979
|
+
* @uiGroup X
|
|
980
980
|
* @uiWidget color
|
|
981
981
|
* @default #ffffff
|
|
982
982
|
*/
|
|
@@ -2180,59 +2180,59 @@ declare namespace LocalJSX {
|
|
|
2180
2180
|
*/
|
|
2181
2181
|
"smstextcolor"?: string;
|
|
2182
2182
|
/**
|
|
2183
|
-
* Background color of the
|
|
2184
|
-
* @uiName
|
|
2185
|
-
* @uiGroup
|
|
2183
|
+
* Background color of the X button
|
|
2184
|
+
* @uiName X Background Color
|
|
2185
|
+
* @uiGroup X
|
|
2186
2186
|
* @uiWidget color
|
|
2187
|
-
* @default #
|
|
2187
|
+
* @default #000000
|
|
2188
2188
|
*/
|
|
2189
2189
|
"twitterbackgroundcolor"?: string;
|
|
2190
2190
|
/**
|
|
2191
2191
|
* CSS class name for additional styling.
|
|
2192
|
-
* @uiName
|
|
2193
|
-
* @uiGroup
|
|
2192
|
+
* @uiName X Class Name
|
|
2193
|
+
* @uiGroup X
|
|
2194
2194
|
*/
|
|
2195
2195
|
"twitterclassName"?: string;
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Show and hide button depending on what type of device the user is on
|
|
2198
|
-
* @uiName
|
|
2199
|
-
* @uiGroup
|
|
2198
|
+
* @uiName X Display Rule
|
|
2199
|
+
* @uiGroup X
|
|
2200
2200
|
* @uiEnum ["mobile-and-desktop","mobile-only","desktop-only","hidden"]
|
|
2201
2201
|
* @uiEnumNames ["Mobile and Desktop","Mobile Only","Desktop Only","Hide"]
|
|
2202
2202
|
* @default mobile-and-desktop
|
|
2203
2203
|
*/
|
|
2204
2204
|
"twitterdisplayrule"?: string;
|
|
2205
2205
|
/**
|
|
2206
|
-
* @uiName
|
|
2207
|
-
* @uiGroup
|
|
2206
|
+
* @uiName X Icon
|
|
2207
|
+
* @uiGroup X
|
|
2208
2208
|
*/
|
|
2209
2209
|
"twittericon"?: string;
|
|
2210
2210
|
/**
|
|
2211
|
-
* Number to horizontally align the
|
|
2212
|
-
* @uiName
|
|
2213
|
-
* @uiGroup
|
|
2211
|
+
* Number to horizontally align the X button icon
|
|
2212
|
+
* @uiName X Icon Horizontal
|
|
2213
|
+
* @uiGroup X
|
|
2214
2214
|
*/
|
|
2215
2215
|
"twittericonhorizontal"?: number;
|
|
2216
2216
|
/**
|
|
2217
|
-
* @uiName
|
|
2218
|
-
* @uiGroup
|
|
2217
|
+
* @uiName X Icon Size
|
|
2218
|
+
* @uiGroup X
|
|
2219
2219
|
*/
|
|
2220
2220
|
"twittericonsize"?: number;
|
|
2221
2221
|
/**
|
|
2222
|
-
* Number to vertically align the
|
|
2223
|
-
* @uiName
|
|
2224
|
-
* @uiGroup
|
|
2222
|
+
* Number to vertically align the X button icon
|
|
2223
|
+
* @uiName X Icon Vertical
|
|
2224
|
+
* @uiGroup X
|
|
2225
2225
|
*/
|
|
2226
2226
|
"twittericonvertical"?: number;
|
|
2227
2227
|
/**
|
|
2228
|
-
* @uiName
|
|
2229
|
-
* @uiGroup
|
|
2230
|
-
* @default
|
|
2228
|
+
* @uiName X Text
|
|
2229
|
+
* @uiGroup X
|
|
2230
|
+
* @default X
|
|
2231
2231
|
*/
|
|
2232
2232
|
"twittertext"?: string;
|
|
2233
2233
|
/**
|
|
2234
|
-
* @uiName
|
|
2235
|
-
* @uiGroup
|
|
2234
|
+
* @uiName X Text Color
|
|
2235
|
+
* @uiGroup X
|
|
2236
2236
|
* @uiWidget color
|
|
2237
2237
|
* @default #ffffff
|
|
2238
2238
|
*/
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
interface UserPayload {
|
|
2
|
-
data: {
|
|
3
|
-
user: {
|
|
4
|
-
referredByReferral: {
|
|
5
|
-
referrerUser: {
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
imageUrl: string;
|
|
9
|
-
};
|
|
10
|
-
dateReferralStarted: number;
|
|
11
|
-
rewards: {
|
|
12
|
-
count: number;
|
|
13
|
-
totalCount: number;
|
|
14
|
-
data: Reward[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
referrals: {
|
|
18
|
-
count: number;
|
|
19
|
-
totalCount: number;
|
|
20
|
-
data: Referral[];
|
|
21
|
-
};
|
|
22
|
-
rewards: {
|
|
23
|
-
count: number;
|
|
24
|
-
totalCount: number;
|
|
25
|
-
data: Reward[];
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface ReferredByReferral {
|
|
32
|
-
referrerUser: {
|
|
33
|
-
firstName: string;
|
|
34
|
-
lastName: string;
|
|
35
|
-
imageUrl: string;
|
|
36
|
-
};
|
|
37
|
-
dateReferralStarted: number;
|
|
38
|
-
dateConverted:number;
|
|
39
|
-
rewards: Reward[];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface Referral {
|
|
43
|
-
id: string;
|
|
44
|
-
dateReferralStarted: number;
|
|
45
|
-
dateReferralPaid: number;
|
|
46
|
-
dateReferralEnded: number;
|
|
47
|
-
dateConverted:number;
|
|
48
|
-
moderationStatus: string;
|
|
49
|
-
referredUser: {
|
|
50
|
-
firstName: string;
|
|
51
|
-
lastName: string;
|
|
52
|
-
imageUrl: string;
|
|
53
|
-
};
|
|
54
|
-
rewards: Reward[];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface Meta {
|
|
58
|
-
message: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface Reward {
|
|
62
|
-
id: string;
|
|
63
|
-
type: string;
|
|
64
|
-
value: number;
|
|
65
|
-
unit: string;
|
|
66
|
-
name: string;
|
|
67
|
-
dateGiven: number;
|
|
68
|
-
dateExpires: number;
|
|
69
|
-
dateCancelled: number;
|
|
70
|
-
fuelTankCode: string;
|
|
71
|
-
fuelTankType: string;
|
|
72
|
-
currency: string;
|
|
73
|
-
prettyValue: string;
|
|
74
|
-
statuses: string[];
|
|
75
|
-
meta: Meta;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface ReferralVariables {
|
|
79
|
-
usefirstreward: boolean;
|
|
80
|
-
referrercontent: string;
|
|
81
|
-
convertedcontent: string;
|
|
82
|
-
pendingcontent: string;
|
|
83
|
-
pendingvalue: string;
|
|
84
|
-
referrervalue: string;
|
|
85
|
-
valuecontent: string;
|
|
86
|
-
expiredvalue: string;
|
|
87
|
-
expiredcontent: string;
|
|
88
|
-
expiresvalue: string;
|
|
89
|
-
redeemedvalue: string;
|
|
90
|
-
showexpiry: boolean;
|
|
91
|
-
shownotes: boolean;
|
|
92
|
-
cancelledvalue: string;
|
|
93
|
-
cancelledcontent: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface RewardBalance {
|
|
97
|
-
type: string;
|
|
98
|
-
unit: string;
|
|
99
|
-
value: number;
|
|
100
|
-
prettyValue: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare module 'react';
|
|
104
|
-
|
|
105
|
-
declare module 'progress.js'
|
|
1
|
+
interface UserPayload {
|
|
2
|
+
data: {
|
|
3
|
+
user: {
|
|
4
|
+
referredByReferral: {
|
|
5
|
+
referrerUser: {
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
imageUrl: string;
|
|
9
|
+
};
|
|
10
|
+
dateReferralStarted: number;
|
|
11
|
+
rewards: {
|
|
12
|
+
count: number;
|
|
13
|
+
totalCount: number;
|
|
14
|
+
data: Reward[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
referrals: {
|
|
18
|
+
count: number;
|
|
19
|
+
totalCount: number;
|
|
20
|
+
data: Referral[];
|
|
21
|
+
};
|
|
22
|
+
rewards: {
|
|
23
|
+
count: number;
|
|
24
|
+
totalCount: number;
|
|
25
|
+
data: Reward[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface ReferredByReferral {
|
|
32
|
+
referrerUser: {
|
|
33
|
+
firstName: string;
|
|
34
|
+
lastName: string;
|
|
35
|
+
imageUrl: string;
|
|
36
|
+
};
|
|
37
|
+
dateReferralStarted: number;
|
|
38
|
+
dateConverted:number;
|
|
39
|
+
rewards: Reward[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface Referral {
|
|
43
|
+
id: string;
|
|
44
|
+
dateReferralStarted: number;
|
|
45
|
+
dateReferralPaid: number;
|
|
46
|
+
dateReferralEnded: number;
|
|
47
|
+
dateConverted:number;
|
|
48
|
+
moderationStatus: string;
|
|
49
|
+
referredUser: {
|
|
50
|
+
firstName: string;
|
|
51
|
+
lastName: string;
|
|
52
|
+
imageUrl: string;
|
|
53
|
+
};
|
|
54
|
+
rewards: Reward[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface Meta {
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface Reward {
|
|
62
|
+
id: string;
|
|
63
|
+
type: string;
|
|
64
|
+
value: number;
|
|
65
|
+
unit: string;
|
|
66
|
+
name: string;
|
|
67
|
+
dateGiven: number;
|
|
68
|
+
dateExpires: number;
|
|
69
|
+
dateCancelled: number;
|
|
70
|
+
fuelTankCode: string;
|
|
71
|
+
fuelTankType: string;
|
|
72
|
+
currency: string;
|
|
73
|
+
prettyValue: string;
|
|
74
|
+
statuses: string[];
|
|
75
|
+
meta: Meta;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface ReferralVariables {
|
|
79
|
+
usefirstreward: boolean;
|
|
80
|
+
referrercontent: string;
|
|
81
|
+
convertedcontent: string;
|
|
82
|
+
pendingcontent: string;
|
|
83
|
+
pendingvalue: string;
|
|
84
|
+
referrervalue: string;
|
|
85
|
+
valuecontent: string;
|
|
86
|
+
expiredvalue: string;
|
|
87
|
+
expiredcontent: string;
|
|
88
|
+
expiresvalue: string;
|
|
89
|
+
redeemedvalue: string;
|
|
90
|
+
showexpiry: boolean;
|
|
91
|
+
shownotes: boolean;
|
|
92
|
+
cancelledvalue: string;
|
|
93
|
+
cancelledcontent: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface RewardBalance {
|
|
97
|
+
type: string;
|
|
98
|
+
unit: string;
|
|
99
|
+
value: number;
|
|
100
|
+
prettyValue: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare module 'react';
|
|
104
|
+
|
|
105
|
+
declare module 'progress.js'
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
|
-
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
|
-
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
4
|
-
(function (doc) {
|
|
5
|
-
var isSafari10 =
|
|
6
|
-
window.navigator.userAgent.indexOf("Safari") > 0 &&
|
|
7
|
-
window.navigator.userAgent.indexOf("Version/10") > 0;
|
|
8
|
-
var scriptElm = Array.from(doc.scripts).find((script) =>
|
|
9
|
-
script.src.includes("widget-components")
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
var parts = scriptElm.src.split("/");
|
|
13
|
-
parts.pop();
|
|
14
|
-
var url = parts.join("/");
|
|
15
|
-
|
|
16
|
-
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
17
|
-
// without the "nomodule" attribute
|
|
18
|
-
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
19
|
-
if (!isSafari10) {
|
|
20
|
-
var scriptElm = doc.createElement("script");
|
|
21
|
-
scriptElm.setAttribute("type", "module");
|
|
22
|
-
scriptElm.src = url + "/widget-components.esm.js";
|
|
23
|
-
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
24
|
-
doc.head.appendChild(scriptElm);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var scriptElm = doc.createElement("script");
|
|
28
|
-
if (!isSafari10) {
|
|
29
|
-
scriptElm.setAttribute("nomodule", "");
|
|
30
|
-
}
|
|
31
|
-
scriptElm.src = url + "/widget-components.js";
|
|
32
|
-
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
33
|
-
doc.head.appendChild(scriptElm);
|
|
34
|
-
})(document);
|
|
1
|
+
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
|
+
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
|
+
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
4
|
+
(function (doc) {
|
|
5
|
+
var isSafari10 =
|
|
6
|
+
window.navigator.userAgent.indexOf("Safari") > 0 &&
|
|
7
|
+
window.navigator.userAgent.indexOf("Version/10") > 0;
|
|
8
|
+
var scriptElm = Array.from(doc.scripts).find((script) =>
|
|
9
|
+
script.src.includes("widget-components")
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
var parts = scriptElm.src.split("/");
|
|
13
|
+
parts.pop();
|
|
14
|
+
var url = parts.join("/");
|
|
15
|
+
|
|
16
|
+
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
17
|
+
// without the "nomodule" attribute
|
|
18
|
+
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
19
|
+
if (!isSafari10) {
|
|
20
|
+
var scriptElm = doc.createElement("script");
|
|
21
|
+
scriptElm.setAttribute("type", "module");
|
|
22
|
+
scriptElm.src = url + "/widget-components.esm.js";
|
|
23
|
+
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
24
|
+
doc.head.appendChild(scriptElm);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var scriptElm = doc.createElement("script");
|
|
28
|
+
if (!isSafari10) {
|
|
29
|
+
scriptElm.setAttribute("nomodule", "");
|
|
30
|
+
}
|
|
31
|
+
scriptElm.src = url + "/widget-components.js";
|
|
32
|
+
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
33
|
+
doc.head.appendChild(scriptElm);
|
|
34
|
+
})(document);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as e}from"./p-
|
|
1
|
+
import{r,h as o}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as e}from"./p-edd43dbc.js";const s=class{constructor(o){r(this,o)}componentWillLoad(){return e.graphql.getReferralCode().then(r=>{this.referralcode=r}).catch(r=>{this.onError(r)})}onError(r){console.log("Error loading via GraphQL.",r)}render(){return o("span",null,this.referralcode)}};s.style="sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";export{s as sqh_referral_code}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as e,g as t}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as o,w as a}from"./p-
|
|
1
|
+
import{r as s,h as e,g as t}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as o,w as a}from"./p-edd43dbc.js";const r=class{constructor(e){s(this,e),this.text="Close"}handleClick(){o.ui.close()}componentDidLoad(){const s=a();s&&"POPUP"!=s.engagementMedium&&this.closeButton.setAttribute("style","display:none")}render(){return e("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)}get closeButton(){return t(this)}};r.style="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}";export{r as sqh_close_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-e61a8100.system.js","./p-a846f503.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-
|
|
1
|
+
System.register(["./p-e61a8100.system.js","./p-a846f503.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-c8bc8c77.system",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-b17efca4.system",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-e2b4739f.system",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-c5f70ddc.system",[[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],fontweight:[1],paddingbottom:[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]}]]]],t)}))}}}));
|