@saasquatch/vanilla-components 1.2.4-5 → 1.2.4-8
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-71b013eb.js → WidgetHost-f349e877.js} +157 -0
- package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
- package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
- package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +1172 -22
- package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/copy-button/copy-button.js +3 -3
- package/dist/collection/components/copy-link-button/copy-link-button.js +4 -1
- package/dist/collection/components/cta-component/cta-component.css +6 -0
- package/dist/collection/components/cta-component/cta-component.js +396 -0
- package/dist/collection/components/global-container/global-container.js +1 -1
- package/dist/collection/components/image-component/image-component.js +4 -1
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +4 -1
- package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +493 -0
- package/dist/collection/components/referral-list/referral-list.js +5 -2
- package/dist/collection/components/share-button-container/share-button-container.js +31 -44
- package/dist/collection/components/stat-component/stat-component.js +13 -7
- package/dist/collection/components/stats-container/stats-container.js +7 -5
- package/dist/collection/components/text-component/text-component.js +40 -16
- package/dist/collection/services/WidgetHost.js +157 -0
- package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +157 -0
- package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/sqh-close-button.entry.js +2 -2
- package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1171 -23
- package/dist/esm/sqh-referral-code.entry.js +2 -2
- package/dist/esm/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +96 -4
- package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +53 -3
- package/dist/esm-es5/loader.mjs +3 -3
- package/dist/esm-es5/sqh-close-button.entry.js +2 -2
- package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1059 -34
- package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
- package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm-es5/widget-components.mjs +3 -3
- package/dist/types/components/copy-button/copy-button.d.ts +1 -3
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +1 -2
- package/dist/types/components/cta-component/cta-component.d.ts +86 -0
- package/dist/types/components/global-container/global-container.d.ts +0 -2
- package/dist/types/components/image-component/image-component.d.ts +1 -2
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +1 -2
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +42 -0
- package/dist/types/components/referral-list/referral-list.d.ts +2 -3
- package/dist/types/components/share-button-container/share-button-container.d.ts +1 -56
- package/dist/types/components/stat-component/stat-component.d.ts +6 -10
- package/dist/types/components/stats-container/stats-container.d.ts +3 -4
- package/dist/types/components/text-component/text-component.d.ts +13 -20
- package/dist/types/components.d.ts +256 -120
- package/dist/types/saasquatch.d.ts +3 -1
- package/dist/types/services/WidgetHost.d.ts +5 -0
- package/dist/widget-components/p-0839fd2c.system.entry.js +10 -0
- package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
- package/dist/widget-components/{p-54ea7a00.entry.js → p-3ba562d0.entry.js} +1 -1
- package/dist/widget-components/{p-366f1663.entry.js → p-4293e873.entry.js} +1 -1
- package/dist/widget-components/{p-8e232564.system.js → p-54e83dfb.system.js} +2 -2
- package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
- package/dist/widget-components/{p-edd43dbc.js → p-6e753d23.js} +68 -3
- package/dist/widget-components/p-a952fcf2.entry.js +233 -0
- package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
- package/dist/widget-components/{p-b17efca4.system.entry.js → p-abf8a511.system.entry.js} +1 -1
- package/dist/widget-components/p-ad5121cf.system.js +1 -0
- package/dist/widget-components/p-d9e9c55c.system.entry.js +1 -0
- package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
- package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
- package/dist/widget-components/p-fbf0c7fe.js +1 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +4 -3
- package/dist/widget-components/p-485eaf44.js +0 -1
- package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
- package/dist/widget-components/p-d416634a.entry.js +0 -148
- package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
- package/dist/widget-components/p-e61a8100.system.js +0 -1
|
@@ -10419,6 +10419,92 @@ const API = {
|
|
|
10419
10419
|
})
|
|
10420
10420
|
.then((res) => res.data.user);
|
|
10421
10421
|
},
|
|
10422
|
+
getBalanceDetails() {
|
|
10423
|
+
const widgetId = widgetIdent();
|
|
10424
|
+
if (widgetId["env"] === "demo" || !widgetId) {
|
|
10425
|
+
const { rewardBalanceDetails } = demoUser;
|
|
10426
|
+
const user = {
|
|
10427
|
+
rewardBalanceDetails
|
|
10428
|
+
};
|
|
10429
|
+
return Promise.resolve(user);
|
|
10430
|
+
}
|
|
10431
|
+
const { userId, accountId, programId = null, locale } = widgetId;
|
|
10432
|
+
const variables = {
|
|
10433
|
+
userId,
|
|
10434
|
+
accountId,
|
|
10435
|
+
programId,
|
|
10436
|
+
locale
|
|
10437
|
+
};
|
|
10438
|
+
return this.getClient().query({
|
|
10439
|
+
query: src `
|
|
10440
|
+
query(
|
|
10441
|
+
$userId: String!,
|
|
10442
|
+
$accountId: String!,
|
|
10443
|
+
$programId: ID,
|
|
10444
|
+
$locale: String!
|
|
10445
|
+
) {
|
|
10446
|
+
user(id: $userId, accountId: $accountId) {
|
|
10447
|
+
rewardBalanceDetails(programId: $programId) {
|
|
10448
|
+
prettyAvailableValue
|
|
10449
|
+
unit
|
|
10450
|
+
... on CreditRewardBalance {
|
|
10451
|
+
prettyAssignedCredit
|
|
10452
|
+
prettyRedeemedCredit
|
|
10453
|
+
rewardUnit {
|
|
10454
|
+
currency {
|
|
10455
|
+
displayName(locale: $locale)
|
|
10456
|
+
symbol(locale: $locale)
|
|
10457
|
+
currencyCode
|
|
10458
|
+
}
|
|
10459
|
+
}
|
|
10460
|
+
}
|
|
10461
|
+
}
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
`,
|
|
10465
|
+
variables
|
|
10466
|
+
}).then(res => res.data.user);
|
|
10467
|
+
},
|
|
10468
|
+
getRewardExpiries() {
|
|
10469
|
+
const widgetId = widgetIdent();
|
|
10470
|
+
if (widgetId["env"] === "demo" || !widgetId) {
|
|
10471
|
+
const { rewardBalanceDetails } = demoUser;
|
|
10472
|
+
const user = {
|
|
10473
|
+
rewardBalanceDetails
|
|
10474
|
+
};
|
|
10475
|
+
return Promise.resolve(user);
|
|
10476
|
+
}
|
|
10477
|
+
const { userId, accountId, programId = null, locale } = widgetId;
|
|
10478
|
+
const variables = {
|
|
10479
|
+
userId,
|
|
10480
|
+
accountId,
|
|
10481
|
+
programId,
|
|
10482
|
+
locale
|
|
10483
|
+
};
|
|
10484
|
+
return this.getClient().query({
|
|
10485
|
+
query: src `
|
|
10486
|
+
query(
|
|
10487
|
+
$userId: String!,
|
|
10488
|
+
$accountId: String!,
|
|
10489
|
+
$programId: ID,
|
|
10490
|
+
$locale: String!
|
|
10491
|
+
) {
|
|
10492
|
+
user(id: $userId, accountId: $accountId) {
|
|
10493
|
+
rewards(programId_eq: $programId) {
|
|
10494
|
+
data {
|
|
10495
|
+
dateCreated
|
|
10496
|
+
dateScheduledFor
|
|
10497
|
+
dateExpires
|
|
10498
|
+
prettyValue
|
|
10499
|
+
unit
|
|
10500
|
+
}
|
|
10501
|
+
}
|
|
10502
|
+
}
|
|
10503
|
+
}
|
|
10504
|
+
`,
|
|
10505
|
+
variables
|
|
10506
|
+
}).then(res => res.data.user);
|
|
10507
|
+
},
|
|
10422
10508
|
async getReferralCode() {
|
|
10423
10509
|
const widgetId = widgetIdent();
|
|
10424
10510
|
if (widgetId["env"] === "demo" || !widgetId)
|
|
@@ -10523,6 +10609,77 @@ const API = {
|
|
|
10523
10609
|
})
|
|
10524
10610
|
.then((res) => res.data.user);
|
|
10525
10611
|
},
|
|
10612
|
+
getUserProgress() {
|
|
10613
|
+
const widgetId = widgetIdent();
|
|
10614
|
+
if (widgetId["env"] === "demo" || !widgetId) {
|
|
10615
|
+
const demoData = {
|
|
10616
|
+
customFields: { demo_totalValue: 16 },
|
|
10617
|
+
rewardBalanceDetails: [{
|
|
10618
|
+
prettyAvailableValue: "$10.00"
|
|
10619
|
+
}],
|
|
10620
|
+
rewards: { count: 1 }
|
|
10621
|
+
};
|
|
10622
|
+
return Promise.resolve(demoData);
|
|
10623
|
+
}
|
|
10624
|
+
const { userId, accountId, programId } = widgetId;
|
|
10625
|
+
const variables = {
|
|
10626
|
+
userId,
|
|
10627
|
+
accountId,
|
|
10628
|
+
programId,
|
|
10629
|
+
};
|
|
10630
|
+
return this.getClient().query({
|
|
10631
|
+
query: src `
|
|
10632
|
+
query($userId: String!, $accountId: String!, $programId: ID) {
|
|
10633
|
+
user(id: $userId, accountId: $accountId){
|
|
10634
|
+
customFields
|
|
10635
|
+
locale
|
|
10636
|
+
rewardBalanceDetails(programId: $programId) {
|
|
10637
|
+
prettyAvailableValue(formatType:UNIT_FORMATTED)
|
|
10638
|
+
}
|
|
10639
|
+
rewards(limit:1000,offset:0, filter:{programId_eq: $programId}){
|
|
10640
|
+
count
|
|
10641
|
+
}
|
|
10642
|
+
}
|
|
10643
|
+
}
|
|
10644
|
+
`,
|
|
10645
|
+
variables
|
|
10646
|
+
}).then(res => res.data.user);
|
|
10647
|
+
},
|
|
10648
|
+
getProgramRules() {
|
|
10649
|
+
const widgetId = widgetIdent();
|
|
10650
|
+
if (widgetId["env"] === "demo" || !widgetId) {
|
|
10651
|
+
const demoData = {
|
|
10652
|
+
id: "demo",
|
|
10653
|
+
name: "Demo Program",
|
|
10654
|
+
rules: {
|
|
10655
|
+
programWindow: "",
|
|
10656
|
+
rewardRules: {
|
|
10657
|
+
rewardRulesType: 1,
|
|
10658
|
+
rewardGoal: 24,
|
|
10659
|
+
isRecurring: 1,
|
|
10660
|
+
defaultCurrency: "CAD"
|
|
10661
|
+
}
|
|
10662
|
+
}
|
|
10663
|
+
};
|
|
10664
|
+
return Promise.resolve(demoData);
|
|
10665
|
+
}
|
|
10666
|
+
const { programId } = widgetId;
|
|
10667
|
+
const variables = {
|
|
10668
|
+
programId
|
|
10669
|
+
};
|
|
10670
|
+
return this.getClient().query({
|
|
10671
|
+
query: src `
|
|
10672
|
+
query($programId: ID!) {
|
|
10673
|
+
program(id:$programId){
|
|
10674
|
+
id
|
|
10675
|
+
name
|
|
10676
|
+
rules
|
|
10677
|
+
}
|
|
10678
|
+
}
|
|
10679
|
+
`,
|
|
10680
|
+
variables
|
|
10681
|
+
}).then(res => res.data.program);
|
|
10682
|
+
},
|
|
10526
10683
|
},
|
|
10527
10684
|
ui: squatchJsApi,
|
|
10528
10685
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-09a04159.js');
|
|
4
4
|
const _commonjsHelpers = require('./_commonjsHelpers-ac2d0785.js');
|
|
5
5
|
|
|
6
6
|
/*
|
|
@@ -49,7 +49,7 @@ const patchBrowser = () => {
|
|
|
49
49
|
// @ts-ignore
|
|
50
50
|
const scriptElm = Array.from(index.doc.querySelectorAll('script')).find(s => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
|
|
51
51
|
;
|
|
52
|
-
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('en-
|
|
52
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('en-3a7cb52e.js', document.baseURI).href));
|
|
53
53
|
const opts = scriptElm['data-opts'] || {} ;
|
|
54
54
|
if ( importMeta !== '') {
|
|
55
55
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
@@ -78,6 +78,7 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
78
78
|
// prettier-ignore
|
|
79
79
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
80
80
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
81
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
81
82
|
const createTime = (fnName, tagName = '') => {
|
|
82
83
|
{
|
|
83
84
|
return () => {
|
|
@@ -164,6 +165,11 @@ const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
|
|
|
164
165
|
* Don't add values to these!!
|
|
165
166
|
*/
|
|
166
167
|
const EMPTY_OBJ = {};
|
|
168
|
+
/**
|
|
169
|
+
* Namespaces
|
|
170
|
+
*/
|
|
171
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
172
|
+
const HTML_NS = 'http://www.w3.org/1999/xhtml';
|
|
167
173
|
const noop = () => {
|
|
168
174
|
/* noop*/
|
|
169
175
|
};
|
|
@@ -381,16 +387,36 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
381
387
|
}
|
|
382
388
|
catch (e) { }
|
|
383
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Need to manually update attribute if:
|
|
392
|
+
* - memberName is not an attribute
|
|
393
|
+
* - if we are rendering the host element in order to reflect attribute
|
|
394
|
+
* - if it's a SVG, since properties might not work in <svg>
|
|
395
|
+
* - if the newValue is null/undefined or 'false'.
|
|
396
|
+
*/
|
|
397
|
+
let xlink = false;
|
|
398
|
+
{
|
|
399
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
|
|
400
|
+
memberName = ln;
|
|
401
|
+
xlink = true;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
384
404
|
if (newValue == null || newValue === false) {
|
|
385
405
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
386
|
-
{
|
|
406
|
+
if ( xlink) {
|
|
407
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
387
410
|
elm.removeAttribute(memberName);
|
|
388
411
|
}
|
|
389
412
|
}
|
|
390
413
|
}
|
|
391
414
|
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
392
415
|
newValue = newValue === true ? '' : newValue;
|
|
393
|
-
{
|
|
416
|
+
if ( xlink) {
|
|
417
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
394
420
|
elm.setAttribute(memberName, newValue);
|
|
395
421
|
}
|
|
396
422
|
}
|
|
@@ -446,8 +472,15 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
446
472
|
elm = newVNode.$elm$ = doc.createTextNode('');
|
|
447
473
|
}
|
|
448
474
|
else {
|
|
475
|
+
if ( !isSvgMode) {
|
|
476
|
+
isSvgMode = newVNode.$tag$ === 'svg';
|
|
477
|
+
}
|
|
449
478
|
// create element
|
|
450
|
-
elm = newVNode.$elm$ = ( doc.
|
|
479
|
+
elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
|
|
480
|
+
);
|
|
481
|
+
if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
482
|
+
isSvgMode = false;
|
|
483
|
+
}
|
|
451
484
|
// add css classes, attrs, props, listeners, etc.
|
|
452
485
|
{
|
|
453
486
|
updateElement(null, newVNode, isSvgMode);
|
|
@@ -463,6 +496,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
463
496
|
}
|
|
464
497
|
}
|
|
465
498
|
}
|
|
499
|
+
{
|
|
500
|
+
if (newVNode.$tag$ === 'svg') {
|
|
501
|
+
// Only reset the SVG context when we're exiting <svg> element
|
|
502
|
+
isSvgMode = false;
|
|
503
|
+
}
|
|
504
|
+
else if (elm.tagName === 'foreignObject') {
|
|
505
|
+
// Reenter SVG context when we're exiting <foreignObject> element
|
|
506
|
+
isSvgMode = true;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
466
509
|
}
|
|
467
510
|
{
|
|
468
511
|
elm['s-hn'] = hostTagName;
|
|
@@ -645,6 +688,11 @@ const patch = (oldVNode, newVNode) => {
|
|
|
645
688
|
const text = newVNode.$text$;
|
|
646
689
|
let defaultHolder;
|
|
647
690
|
if ( text === null) {
|
|
691
|
+
{
|
|
692
|
+
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
693
|
+
// only add this to the when the compiler sees we're using an svg somewhere
|
|
694
|
+
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
695
|
+
}
|
|
648
696
|
// element node
|
|
649
697
|
{
|
|
650
698
|
if ( tag === 'slot')
|
|
@@ -673,6 +721,9 @@ const patch = (oldVNode, newVNode) => {
|
|
|
673
721
|
// no new child vnodes, but there are old child vnodes to remove
|
|
674
722
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
675
723
|
}
|
|
724
|
+
if ( isSvgMode && tag === 'svg') {
|
|
725
|
+
isSvgMode = false;
|
|
726
|
+
}
|
|
676
727
|
}
|
|
677
728
|
else if ( (defaultHolder = elm['s-cr'])) {
|
|
678
729
|
// this element has slotted content
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const en = require('./en-
|
|
5
|
+
const index = require('./index-09a04159.js');
|
|
6
|
+
const en = require('./en-3a7cb52e.js');
|
|
7
7
|
require('./_commonjsHelpers-ac2d0785.js');
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
11
11
|
return en.patchEsm().then(() => {
|
|
12
|
-
return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-
|
|
12
|
+
return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_14.cjs",[[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]}],[0,"sqh-cta-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"fontweight":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"buttonbackground":[1],"height":[1],"width":[1],"borderradius":[1],"url":[1]}],[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-progress-indicator",{"ishidden":[4],"textcolor":[1],"align":[1],"progresstype":[1],"earned":[1],"progress":[1],"progresswidth":[1],"percentagecolor":[1],"percentagesize":[1],"progresscolor":[1],"stats":[32],"rewardStats":[32],"progressMessage":[32],"rewardComplete":[32],"locale":[32],"loading":[32]}],[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]}]]]], options);
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-09a04159.js');
|
|
6
6
|
require('./_commonjsHelpers-ac2d0785.js');
|
|
7
|
-
const WidgetHost = require('./WidgetHost-
|
|
7
|
+
const WidgetHost = require('./WidgetHost-f349e877.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
|
|