@saasquatch/vanilla-components 1.2.3-0 → 1.3.0-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/CHANGELOG.md +143 -0
- package/dist/cjs/{WidgetHost-18a663ee.js → WidgetHost-d7b870ce.js} +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sqh-close-button.cjs.entry.js +9 -4
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +181 -9
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/close-button/close-button.js +14 -3
- package/dist/collection/components/copy-button/copy-button.js +63 -24
- package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
- package/dist/collection/components/global-container/global-container.js +28 -10
- package/dist/collection/components/image-component/image-component.js +33 -12
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +28 -10
- package/dist/collection/components/referral-list/referral-list.js +206 -59
- package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
- package/dist/collection/components/share-button/share-button.js +58 -22
- package/dist/collection/components/share-button-container/share-button-container.js +824 -164
- package/dist/collection/components/stat-component/stat-component.js +40 -10
- package/dist/collection/components/stats-container/stats-container.js +23 -6
- package/dist/collection/components/text-component/text-component.js +58 -43
- package/dist/collection/services/WidgetHost.js +1 -0
- package/dist/esm/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +1 -0
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +9 -4
- package/dist/esm/sqh-copy-button_12.entry.js +180 -8
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +2 -2
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +15 -10
- package/dist/esm-es5/sqh-copy-button_12.entry.js +198 -26
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/close-button/close-button.d.ts +9 -1
- package/dist/types/components/copy-button/copy-button.d.ts +63 -0
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
- package/dist/types/components/global-container/global-container.d.ts +28 -0
- package/dist/types/components/image-component/image-component.d.ts +33 -0
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +28 -0
- package/dist/types/components/referral-list/referral-list.d.ts +167 -0
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
- package/dist/types/components/share-button/share-button.d.ts +58 -0
- package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
- package/dist/types/components/stat-component/stat-component.d.ts +32 -0
- package/dist/types/components/stats-container/stats-container.d.ts +18 -0
- package/dist/types/components/text-component/text-component.d.ts +58 -1
- package/dist/types/components.d.ts +1680 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-afd88281.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/p-908068c2.system.entry.js +1 -0
- package/dist/widget-components/{p-b4a53a7e.js → p-9525bf4a.js} +1 -0
- package/dist/widget-components/{p-3a627e51.system.js → p-9adc7c50.system.js} +1 -1
- package/dist/widget-components/{p-fd5e98db.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-126c2b5d.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/{p-10f0b8fc.entry.js → p-d7059393.entry.js} +3 -3
- package/dist/widget-components/{p-edc35bc4.system.entry.js → p-fba5ea7f.system.entry.js} +2 -2
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/package.json +1 -1
- package/dist/widget-components/p-023e8818.system.entry.js +0 -1
|
@@ -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-a27e693d.js';
|
|
4
4
|
|
|
5
5
|
/////////////////////////////////////
|
|
6
6
|
////// ////
|
|
@@ -2738,7 +2738,7 @@ ImageComponent.style = imageComponentCss;
|
|
|
2738
2738
|
|
|
2739
2739
|
const partnerStatComponentCss = "sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
|
|
2740
2740
|
|
|
2741
|
-
const
|
|
2741
|
+
const PartnerStatComponent = class {
|
|
2742
2742
|
constructor(hostRef) {
|
|
2743
2743
|
registerInstance(this, hostRef);
|
|
2744
2744
|
this.statTypeUpdated = createEvent(this, "statTypeUpdated", 7);
|
|
@@ -2768,7 +2768,7 @@ const StatComponent = class {
|
|
|
2768
2768
|
"stattype": ["stattypeHandler"]
|
|
2769
2769
|
}; }
|
|
2770
2770
|
};
|
|
2771
|
-
|
|
2771
|
+
PartnerStatComponent.style = partnerStatComponentCss;
|
|
2772
2772
|
|
|
2773
2773
|
var TYPE;
|
|
2774
2774
|
(function (TYPE) {
|
|
@@ -7143,7 +7143,7 @@ const ReferralList = class {
|
|
|
7143
7143
|
this.loading = true;
|
|
7144
7144
|
const { target } = event;
|
|
7145
7145
|
target.innerText = "...";
|
|
7146
|
-
this.getReferrals(offset).then((res) => {
|
|
7146
|
+
this.getReferrals(this.showreferrer, offset).then((res) => {
|
|
7147
7147
|
target.innerText =
|
|
7148
7148
|
offset > this.offset ? this.paginatemore : this.paginateless;
|
|
7149
7149
|
this.referrals = res.referrals.data;
|
|
@@ -7326,33 +7326,201 @@ const shareButtonContainerCss = "sqh-share-button-container{text-align:center;di
|
|
|
7326
7326
|
const ShareButtonContainer = class {
|
|
7327
7327
|
constructor(hostRef) {
|
|
7328
7328
|
registerInstance(this, hostRef);
|
|
7329
|
+
/**
|
|
7330
|
+
* Email button icon
|
|
7331
|
+
*
|
|
7332
|
+
* @uiName Email Icon
|
|
7333
|
+
* @uiGroup emailButton
|
|
7334
|
+
*/
|
|
7329
7335
|
this.emailicon = "mail";
|
|
7336
|
+
/**
|
|
7337
|
+
* CSS Class name used to style the Email button
|
|
7338
|
+
*
|
|
7339
|
+
* @uiName Email Class Name
|
|
7340
|
+
* @uiGroup emailButton
|
|
7341
|
+
*/
|
|
7330
7342
|
this.emailclassName = "email-share";
|
|
7343
|
+
/**
|
|
7344
|
+
* Facebook button icon
|
|
7345
|
+
*
|
|
7346
|
+
* @uiName Facebook Icon
|
|
7347
|
+
* @uiGroup facebookButton
|
|
7348
|
+
*/
|
|
7331
7349
|
this.facebookicon = "facebook";
|
|
7350
|
+
/**
|
|
7351
|
+
* Number to horizontally align the facebook button icon
|
|
7352
|
+
*
|
|
7353
|
+
* @uiName Facebook Icon Horizontal
|
|
7354
|
+
* @uiGroup facebookButton
|
|
7355
|
+
*/
|
|
7332
7356
|
this.facebookiconhorizontal = 9;
|
|
7357
|
+
/**
|
|
7358
|
+
* Size of the facebook button icon
|
|
7359
|
+
*
|
|
7360
|
+
* @uiName Facebook Icon Size
|
|
7361
|
+
* @uiGroup facebookButton
|
|
7362
|
+
*/
|
|
7333
7363
|
this.facebookiconsize = 1.2;
|
|
7364
|
+
/**
|
|
7365
|
+
* Twitter button icon
|
|
7366
|
+
*
|
|
7367
|
+
* @uiName Twitter Icon
|
|
7368
|
+
* @uiGroup twitterButton
|
|
7369
|
+
*/
|
|
7334
7370
|
this.twittericon = "twitter";
|
|
7371
|
+
/**
|
|
7372
|
+
* Number to horizontally align the twitter button icon
|
|
7373
|
+
*
|
|
7374
|
+
* @uiName Twitter Icon Horizontal
|
|
7375
|
+
* @uiGroup twitterButton
|
|
7376
|
+
*/
|
|
7335
7377
|
this.twittericonhorizontal = 9;
|
|
7378
|
+
/**
|
|
7379
|
+
* Size of the twitter button icon
|
|
7380
|
+
*
|
|
7381
|
+
* @uiName Twitter Icon Size
|
|
7382
|
+
* @uiGroup twitterButton
|
|
7383
|
+
*/
|
|
7336
7384
|
this.twittericonsize = 1.2;
|
|
7385
|
+
/**
|
|
7386
|
+
* SMS button icon
|
|
7387
|
+
*
|
|
7388
|
+
* @uiName SMS Icon
|
|
7389
|
+
* @uiGroup smsButton
|
|
7390
|
+
*/
|
|
7337
7391
|
this.smsicon = "chat";
|
|
7392
|
+
/**
|
|
7393
|
+
* Color of the text inside the WhatsApp button
|
|
7394
|
+
*
|
|
7395
|
+
* @uiName WhatsApp Text Color
|
|
7396
|
+
* @uiGroup whatsappButton
|
|
7397
|
+
*/
|
|
7338
7398
|
this.whatsapptextcolor = "#fff";
|
|
7399
|
+
/**
|
|
7400
|
+
* WhatsApp button icon
|
|
7401
|
+
*
|
|
7402
|
+
* @uiName WhatsApp Icon
|
|
7403
|
+
* @uiGroup whatsappButton
|
|
7404
|
+
*/
|
|
7339
7405
|
this.whatsappicon = "whatsapp";
|
|
7406
|
+
/**
|
|
7407
|
+
* Number to horizontally align the WhatsApp button icon
|
|
7408
|
+
*
|
|
7409
|
+
* @uiName WhatsApp Icon Horizontal
|
|
7410
|
+
* @uiGroup whatsappButton
|
|
7411
|
+
*/
|
|
7340
7412
|
this.whatsappiconhorizontal = 7;
|
|
7413
|
+
/**
|
|
7414
|
+
* Number to vertically align the WhatsApp button icon
|
|
7415
|
+
*
|
|
7416
|
+
* @uiName WhatsApp Icon Vertical
|
|
7417
|
+
* @uiGroup whatsappButton
|
|
7418
|
+
*/
|
|
7341
7419
|
this.whatsappiconvertical = 2;
|
|
7420
|
+
/**
|
|
7421
|
+
* Size of the WhatsApp button icon
|
|
7422
|
+
*
|
|
7423
|
+
* @uiName WhatsApp Icon Size
|
|
7424
|
+
* @uiGroup whatsappButton
|
|
7425
|
+
*/
|
|
7342
7426
|
this.whatsappiconsize = 1.4;
|
|
7427
|
+
/**
|
|
7428
|
+
* Linkedin button icon
|
|
7429
|
+
*
|
|
7430
|
+
* @uiName Linkedin Icon
|
|
7431
|
+
* @uiGroup linkedinButton
|
|
7432
|
+
*/
|
|
7343
7433
|
this.linkedinicon = "linkedin";
|
|
7434
|
+
/**
|
|
7435
|
+
* Size of the Linkedin button icon
|
|
7436
|
+
*
|
|
7437
|
+
* @uiName Linkedin Icon Size
|
|
7438
|
+
* @uiGroup linkedinButton
|
|
7439
|
+
*/
|
|
7344
7440
|
this.linkediniconsize = 1.2;
|
|
7441
|
+
/**
|
|
7442
|
+
* Pinterest button icon
|
|
7443
|
+
*
|
|
7444
|
+
* @uiName Pinterest Icon
|
|
7445
|
+
* @uiGroup pinterestButton
|
|
7446
|
+
*/
|
|
7345
7447
|
this.pinteresticon = "pinterest";
|
|
7448
|
+
/**
|
|
7449
|
+
* Number to horizontally align the Pinterest button icon
|
|
7450
|
+
*
|
|
7451
|
+
* @uiName Pinterest Icon Horizontal
|
|
7452
|
+
* @uiGroup pinterestButton
|
|
7453
|
+
*/
|
|
7346
7454
|
this.pinteresticonhorizontal = 9;
|
|
7455
|
+
/**
|
|
7456
|
+
* Number to vertically align the Pinterest button icon
|
|
7457
|
+
*
|
|
7458
|
+
* @uiName Pinterest Icon Vertical
|
|
7459
|
+
* @uiGroup pinterestButton
|
|
7460
|
+
*/
|
|
7347
7461
|
this.pinteresticonvertical = 4;
|
|
7462
|
+
/**
|
|
7463
|
+
* Size of the Pinterest button icon
|
|
7464
|
+
*
|
|
7465
|
+
* @uiName Pinterest Icon Size
|
|
7466
|
+
* @uiGroup pinterestButton
|
|
7467
|
+
*/
|
|
7348
7468
|
this.pinteresticonsize = 1.2;
|
|
7469
|
+
/**
|
|
7470
|
+
* Messenger button icon
|
|
7471
|
+
*
|
|
7472
|
+
* @uiName Messenger Icon
|
|
7473
|
+
* @uiGroup messengerButton
|
|
7474
|
+
*/
|
|
7349
7475
|
this.messengericon = "messenger";
|
|
7476
|
+
/**
|
|
7477
|
+
* Number to horizontally align the Messenger button icon
|
|
7478
|
+
*
|
|
7479
|
+
* @uiName Messenger Icon Horizontal
|
|
7480
|
+
* @uiGroup messengerButton
|
|
7481
|
+
*/
|
|
7350
7482
|
this.messengericonhorizontal = 7;
|
|
7483
|
+
/**
|
|
7484
|
+
* Number to vertically align the Messenger button icon
|
|
7485
|
+
*
|
|
7486
|
+
* @uiName Messenger Icon Vertical
|
|
7487
|
+
* @uiGroup messengerButton
|
|
7488
|
+
*/
|
|
7351
7489
|
this.messengericonvertical = 3;
|
|
7490
|
+
/**
|
|
7491
|
+
* Size of the Messenger button icon
|
|
7492
|
+
*
|
|
7493
|
+
* @uiName Messenger Icon Size
|
|
7494
|
+
* @uiGroup messengerButton
|
|
7495
|
+
*/
|
|
7352
7496
|
this.messengericonsize = 1.4;
|
|
7497
|
+
/**
|
|
7498
|
+
* Line button icon
|
|
7499
|
+
*
|
|
7500
|
+
* @uiName Line Icon
|
|
7501
|
+
* @uiGroup lineButton
|
|
7502
|
+
*/
|
|
7353
7503
|
this.lineicon = "line";
|
|
7504
|
+
/**
|
|
7505
|
+
* Number to horizontally align the Line button icon
|
|
7506
|
+
*
|
|
7507
|
+
* @uiName Line Icon Horizontal
|
|
7508
|
+
* @uiGroup lineButton
|
|
7509
|
+
*/
|
|
7354
7510
|
this.lineiconhorizontal = -2;
|
|
7511
|
+
/**
|
|
7512
|
+
* Number to vertically align the Line button icon
|
|
7513
|
+
*
|
|
7514
|
+
* @uiName Line Icon Vertical
|
|
7515
|
+
* @uiGroup lineButton
|
|
7516
|
+
*/
|
|
7355
7517
|
this.lineiconvertical = -5;
|
|
7518
|
+
/**
|
|
7519
|
+
* Size of the Line button icon
|
|
7520
|
+
*
|
|
7521
|
+
* @uiName Line Icon Size
|
|
7522
|
+
* @uiGroup lineButton
|
|
7523
|
+
*/
|
|
7356
7524
|
this.lineiconsize = 2.2;
|
|
7357
7525
|
}
|
|
7358
7526
|
componentWillLoad() {
|
|
@@ -7409,7 +7577,7 @@ ShareButtonContainer.style = shareButtonContainerCss;
|
|
|
7409
7577
|
|
|
7410
7578
|
const statComponentCss = "sqh-stat-component{text-align:center;width:140px;float:left}sqh-stat-component>div{padding:10px}sqh-stat-component .stat-value{white-space:nowrap;font-size:30px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-stat-component:first-child{border-radius:4px 4px 0 0}sqh-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
|
|
7411
7579
|
|
|
7412
|
-
const StatComponent
|
|
7580
|
+
const StatComponent = class {
|
|
7413
7581
|
constructor(hostRef) {
|
|
7414
7582
|
registerInstance(this, hostRef);
|
|
7415
7583
|
this.statTypeUpdated = createEvent(this, "statTypeUpdated", 7);
|
|
@@ -7439,7 +7607,7 @@ const StatComponent$1 = class {
|
|
|
7439
7607
|
"stattype": ["stattypeHandler"]
|
|
7440
7608
|
}; }
|
|
7441
7609
|
};
|
|
7442
|
-
StatComponent
|
|
7610
|
+
StatComponent.style = statComponentCss;
|
|
7443
7611
|
|
|
7444
7612
|
/**
|
|
7445
7613
|
* Tokenize input string.
|
|
@@ -7739,6 +7907,11 @@ const statsContainerCss = "sqh-stats-container{display:-ms-flexbox;display:flex;
|
|
|
7739
7907
|
const StatsContainer = class {
|
|
7740
7908
|
constructor(hostRef) {
|
|
7741
7909
|
registerInstance(this, hostRef);
|
|
7910
|
+
/**
|
|
7911
|
+
* Hide the component
|
|
7912
|
+
*
|
|
7913
|
+
* @uiName Is Hidden
|
|
7914
|
+
*/
|
|
7742
7915
|
this.ishidden = false;
|
|
7743
7916
|
this.statPaths = [
|
|
7744
7917
|
"/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
|
|
@@ -10437,7 +10610,6 @@ const textComponentCss = "sqh-text-component{display:block}sqh-text-component p{
|
|
|
10437
10610
|
const TextComponent = class {
|
|
10438
10611
|
constructor(hostRef) {
|
|
10439
10612
|
registerInstance(this, hostRef);
|
|
10440
|
-
this.padding = "10px 20px 15px";
|
|
10441
10613
|
}
|
|
10442
10614
|
render() {
|
|
10443
10615
|
const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
@@ -10468,4 +10640,4 @@ const TextComponent = class {
|
|
|
10468
10640
|
};
|
|
10469
10641
|
TextComponent.style = textComponentCss;
|
|
10470
10642
|
|
|
10471
|
-
export { CopyButton as sqh_copy_button, CopyLinkButton as sqh_copy_link_button, GlobalContainer as sqh_global_container, ImageComponent as sqh_image_component,
|
|
10643
|
+
export { CopyButton as sqh_copy_button, CopyLinkButton as sqh_copy_link_button, GlobalContainer as sqh_global_container, ImageComponent as sqh_image_component, PartnerStatComponent as sqh_partner_stat_component, ReferralComponent as sqh_referral_component, ReferralList as sqh_referral_list, ShareButton as sqh_share_button, ShareButtonContainer as sqh_share_button_container, StatComponent as sqh_stat_component, StatsContainer as sqh_stats_container, TextComponent as sqh_text_component };
|
|
@@ -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
|
|
|
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
|
|
|
@@ -5,8 +5,23 @@ const rewardsActionsCss = "sqh-rewards-actions .squatch-referrals-actions{text-a
|
|
|
5
5
|
const RewardsActions = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Text inside the previous button
|
|
10
|
+
*
|
|
11
|
+
* @uiName Previous Button Text
|
|
12
|
+
*/
|
|
8
13
|
this.previoustext = "Previous";
|
|
14
|
+
/**
|
|
15
|
+
* Text inside the hide button
|
|
16
|
+
*
|
|
17
|
+
* @uiName Hide Button Text
|
|
18
|
+
*/
|
|
9
19
|
this.hidetext = "Hide";
|
|
20
|
+
/**
|
|
21
|
+
* Text inside the next button
|
|
22
|
+
*
|
|
23
|
+
* @uiName Next Button Text
|
|
24
|
+
*/
|
|
10
25
|
this.nexttext = "Next";
|
|
11
26
|
}
|
|
12
27
|
render() {
|
|
@@ -3,5 +3,5 @@ import { p as patchBrowser } from './en-be593af0.js';
|
|
|
3
3
|
import './_commonjsHelpers-1d681858.js';
|
|
4
4
|
|
|
5
5
|
patchBrowser().then(options => {
|
|
6
|
-
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],"
|
|
6
|
+
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],"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);
|
|
7
7
|
});
|
|
@@ -9320,8 +9320,8 @@ 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 ", "\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
|
|
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
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
9326
|
: ""),
|
|
9327
9327
|
variables: variables,
|
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], "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], "
|
|
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], "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,30 +1,35 @@
|
|
|
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
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var CloseButton = /** @class */ (function () {
|
|
6
|
+
function CloseButton(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The text shown inside the close button.
|
|
10
|
+
*
|
|
11
|
+
* @uiName Button Text
|
|
12
|
+
*/
|
|
8
13
|
this.text = "Close";
|
|
9
14
|
}
|
|
10
|
-
|
|
15
|
+
CloseButton.prototype.handleClick = function () {
|
|
11
16
|
API.ui.close();
|
|
12
17
|
};
|
|
13
|
-
|
|
18
|
+
CloseButton.prototype.componentDidLoad = function () {
|
|
14
19
|
var widget = widgetIdent();
|
|
15
20
|
if (widget && widget.engagementMedium != "POPUP") {
|
|
16
21
|
this.closeButton.setAttribute("style", "display:none");
|
|
17
22
|
}
|
|
18
23
|
};
|
|
19
|
-
|
|
24
|
+
CloseButton.prototype.render = function () {
|
|
20
25
|
return (h("span", { class: "close squatch-header-close", "data-close-panel": "#squatch-panel" }, this.text));
|
|
21
26
|
};
|
|
22
|
-
Object.defineProperty(
|
|
27
|
+
Object.defineProperty(CloseButton.prototype, "closeButton", {
|
|
23
28
|
get: function () { return getElement(this); },
|
|
24
29
|
enumerable: false,
|
|
25
30
|
configurable: true
|
|
26
31
|
});
|
|
27
|
-
return
|
|
32
|
+
return CloseButton;
|
|
28
33
|
}());
|
|
29
|
-
|
|
30
|
-
export {
|
|
34
|
+
CloseButton.style = closeButtonCss;
|
|
35
|
+
export { CloseButton as sqh_close_button };
|