@saasquatch/mint-components 1.5.0-21 → 1.5.0-22
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/sqm-brand_39.cjs.entry.js +4 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +6 -4
- package/dist/esm/sqm-brand_39.entry.js +4 -2
- package/dist/esm-es5/sqm-brand_39.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-a9b9cdb5.system.entry.js → p-82d532c7.system.entry.js} +1 -1
- package/dist/mint-components/p-ba0e812a.system.js +1 -1
- package/dist/mint-components/{p-1f9153bc.entry.js → p-f4fe2243.entry.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-015b683f.system.js","./p-795acde7.system.js","./p-1e182e88.system.js","./p-40e83a85.system.js"],(function(e,t){"use strict";var r,a,o;return{setters:[function(e){r=e.p;a=e.H;o=e.b},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){{s(a.prototype)}var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return r(o)};var s=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var r=t.call(this,false);var a=this.childNodes;if(e){for(var o=0;o<a.length;o++){if(a[o].nodeType!==2){r.appendChild(a[o].cloneNode(true))}}}return r}};e().then((function(e){return o(JSON.parse('[["p-8c3d0392.system",[[1,"sqm-portal-reset-password",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"confirmPassword":[4,"confirm-password"],"resetPasswordHeader":[1,"reset-password-header"],"passwordResetHeader":[1,"password-reset-header"],"resetPasswordButtonText":[1,"reset-password-button-text"],"continueButtonText":[1,"continue-button-text"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"passwordFieldLabel":[1,"password-field-label"],"demoData":[16],"ignored":[32]}]]],["p-9f14da02.system",[[1,"sqm-portal-email-verification",{"redirectPath":[1,"redirect-path"],"emailVerificationHeader":[1,"email-verification-header"],"resendEmailButtonText":[1,"resend-email-button-text"],"verifyMessage":[1,"verify-message"],"demoData":[16],"ignored":[32]}]]],["p-b0d598db.system",[[1,"sqm-portal-forgot-password",{"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"submitLabel":[1,"submit-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}]]],["p-2765e302.system",[[1,"sqm-portal-profile",{"firstnametext":[1],"lastnametext":[1],"emailtext":[1],"countrytext":[1],"editProfileHeader":[1,"edit-profile-header"],"editProfileSubHeader":[1,"edit-profile-sub-header"],"submitChangeButtonText":[1,"submit-change-button-text"],"showCountry":[4,"show-country"],"demoData":[16],"ignored":[32]}]]],["p-b11625ed.system",[[1,"sqm-portal-verify-email",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"demoData":[16],"ignored":[32]}]]],["p-d4a1bce9.system",[[1,"sqm-referral-table-column",{"columnTitle":[1,"column-title"],"renderCell":[64],"renderLabel":[64]}]]],["p-e7cb4274.system",[[1,"sqm-referral-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}]]],["p-a0a26fc5.system",[[1,"sqm-referral-table-rewards-column",{"columnTitle":[1,"column-title"],"hideDetails":[4,"hide-details"],"renderCell":[64],"renderLabel":[64]}]]],["p-7ff22998.system",[[1,"sqm-referral-table-status-column",{"columnTitle":[1,"column-title"],"convertedStatusText":[1,"converted-status-text"],"inProgressStatusText":[1,"in-progress-status-text"],"renderCell":[64],"renderLabel":[64]}]]],["p-88fdfd94.system",[[1,"sqm-referral-table-user-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"renderCell":[64],"renderLabel":[64]}]]],["p-a355eeaf.system",[[1,"sqm-asset-card",{"titleText":[1,"title-text"],"imgUrl":[1,"img-url"],"demoData":[16],"ignored":[32]}]]],["p-bffad7b3.system",[[1,"sqm-big-stat",{"statType":[1,"stat-type"],"flexReverse":[4,"flex-reverse"],"alignment":[1],"programId":[1,"program-id"],"demoData":[16],"ignored":[32]}]]],["p-63d1efcd.system",[[1,"sqm-card-feed",{"width":[2],"gap":[2],"ignored":[32]}]]],["p-24fa8920.system",[[4,"sqm-graphql-client-provider",{"domain":[1],"ignored":[32]}]]],["p-e14c15ca.system",[[1,"sqm-hero",{"columns":[2],"background":[1],"paddingSize":[1,"padding-size"],"secondaryBackground":[1,"secondary-background"],"wrapDirection":[1,"wrap-direction"]}]]],["p-97b946c2.system",[[1,"sqm-leaderboard",{"usersheading":[1],"statsheading":[1],"rankheading":[1],"showRank":[4,"show-rank"],"rankType":[1,"rank-type"],"leaderboardType":[1,"leaderboard-type"],"interval":[1],"demoData":[16],"ignored":[32]}]]],["p-ff747334.system",[[1,"sqm-leaderboard-rank",{"rankType":[1,"rank-type"],"rankText":[1,"rank-text"],"leaderboardType":[1,"leaderboard-type"],"unrankedText":[1,"unranked-text"],"interval":[1],"demoData":[16]}]]],["p-fd281e6b.system",[[0,"sqm-name-fields",{"firstNameLabel":[1,"first-name-label"],"lastNameLabel":[1,"last-name-label"],"demoData":[16],"ignored":[32]}]]],["p-fee468b7.system",[[1,"sqm-navigation-sidebar",{"ignored":[32]}]]],["p-f20d9204.system",[[1,"sqm-navigation-sidebar-item",{"path":[1],"icon":[1],"label":[1],"demoData":[16]}]]],["p-46493de5.system",[[4,"sqm-popup-container",{"poweredBy":[4,"powered-by"],"closeButton":[4,"close-button"],"closeButtonText":[1,"close-button-text"],"embedPadding":[1,"embed-padding"],"popupPadding":[1,"popup-padding"]}]]],["p-7a26fed1.system",[[1,"sqm-portal-footer",{"supportEmail":[1,"support-email"],"supportText":[1,"support-text"],"termsLink":[1,"terms-link"],"termsText":[1,"terms-text"],"faqLink":[1,"faq-link"],"faqText":[1,"faq-text"],"showPoweredBy":[4,"show-powered-by"],"poweredByLink":[1,"powered-by-link"],"paddingTop":[1,"padding-top"],"paddingRight":[1,"padding-right"],"paddingBottom":[1,"padding-bottom"],"paddingLeft":[1,"padding-left"],"ignored":[32]}]]],["p-aee83885.system",[[1,"sqm-portal-logout",{"nextPage":[1,"next-page"],"ignored":[32]}]]],["p-0d8b2757.system",[[1,"sqm-portal-protected-route",{"redirectTo":[1,"redirect-to"],"requireEmailVerification":[4,"require-email-verification"],"redirectToUnverified":[1,"redirect-to-unverified"],"ignored":[32]}]]],["p-8f58ce03.system",[[1,"sqm-program-explainer",{"header":[1],"headerColor":[1,"header-color"],"headerBackground":[1,"header-background"],"cardTitle":[1,"card-title"],"cardDescription":[1,"card-description"],"cardColor":[1,"card-color"],"cardBackground":[1,"card-background"],"ignored":[32]}]]],["p-6caa44e1.system",[[1,"sqm-program-explainer-step",{"cardTitle":[1,"card-title"],"description":[1],"color":[1],"background":[1],"icon":[1]}]]],["p-c1a47137.system",[[1,"sqm-route",{"path":[1],"ignored":[32]}]]],["p-29ee7d11.system",[[1,"sqm-share-code",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"demoData":[16]}]]],["p-0a39b23c.system",[[1,"sqm-stat-container",{"space":[1],"ignored":[32]}]]],["p-6d27cd05.system",[[0,"sqm-text-span",{"text":[1],"type":[1],"ignored":[32]}]]],["p-f85f36c6.system",[[1,"sqm-titled-section",{"label":[1],"labelMargin":[1,"label-margin"],"padding":[1]}]]],["p-a9b9cdb5.system",[[4,"sqm-stencilbook",{"ignored":[32]}],[1,"sqm-referral-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"showLabels":[4,"show-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"showReferrer":[4,"show-referrer"],"demoData":[16]}],[1,"sqm-rewards-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"showLabels":[4,"show-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"demoData":[16]}],[1,"sqm-portal-change-password",{"modalChangePasswordHeader":[1,"modal-change-password-header"],"cancelText":[1,"cancel-text"],"changePasswordButtonText":[1,"change-password-button-text"],"passwordFieldLabel":[1,"password-field-label"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"successMessage":[1,"success-message"],"portalChangePasswordHeader":[1,"portal-change-password-header"],"portalChangePasswordButtonText":[1,"portal-change-password-button-text"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-register",{"nextPage":[1,"next-page"],"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"loginLabel":[1,"login-label"],"confirmPasswordLabel":[1,"confirm-password-label"],"confirmPassword":[4,"confirm-password"],"enablePasswordValidation":[4,"enable-password-validation"],"hideInputs":[4,"hide-inputs"],"pageLabel":[1,"page-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-edit-profile",{"editprofileheader":[1],"editprofiletext":[1],"canceltext":[1],"updatetext":[1],"firstnametext":[1],"lastnametext":[1],"currentregiontext":[1],"showregion":[4],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-login",{"nextPage":[1,"next-page"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"forgotPasswordLabel":[1,"forgot-password-label"],"registerLabel":[1,"register-label"],"pageLabel":[1,"page-label"],"registerPath":[1,"register-path"],"forgotPasswordPath":[1,"forgot-password-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-rewards-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-reward-column",{"columnTitle":[1,"column-title"],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-source-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-status-column",{"columnTitle":[1,"column-title"],"statusText":[1,"status-text"],"expiryText":[1,"expiry-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-brand",{"brandColor":[1,"brand-color"],"brandFont":[1,"brand-font"]}],[1,"sqm-divided-layout",{"direction":[1],"dividerStyle":[1,"divider-style"]}],[0,"sqm-hook-story-container",{"hookStory":[16],"ignored":[32]}],[1,"sqm-navigation-menu",{"includeDropdown":[4,"include-dropdown"],"menuLabel":[1,"menu-label"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-container",{"direction":[1],"padding":[1],"gap":[1],"minWidth":[1,"min-width"],"maxWidth":[1,"max-width"],"ignored":[32]}],[1,"sqm-portal-frame",{"demoData":[16],"ignored":[32]}],[4,"sqm-program-menu",{"ignored":[32]}],[0,"sqm-referral-iframe",{"iframeSrc":[1,"iframe-src"],"iframeHeight":[1,"iframe-height"],"iframeWidth":[1,"iframe-width"],"demoData":[16],"ignored":[32]}],[1,"sqm-reward-exchange-list",{"buttonText":[1,"button-text"],"notAvailableError":[1,"not-available-error"],"chooseRewardTitle":[1,"choose-reward-title"],"chooseAmountTitle":[1,"choose-amount-title"],"confirmationTitle":[1,"confirmation-title"],"rewardTitle":[1,"reward-title"],"cancelText":[1,"cancel-text"],"backText":[1,"back-text"],"continueText":[1,"continue-text"],"continueToConfirmationText":[1,"continue-to-confirmation-text"],"redeemText":[1,"redeem-text"],"redeemTitle":[1,"redeem-title"],"redemptionSuccessText":[1,"redemption-success-text"],"sourceAmountMessage":[1,"source-amount-message"],"tooltiptext":[1],"doneText":[1,"done-text"],"selectText":[1,"select-text"],"queryError":[1,"query-error"],"redemptionError":[1,"redemption-error"],"notEnoughError":[1,"not-enough-error"],"skeletonCardNum":[2,"skeleton-card-num"],"demoData":[16],"ignored":[32]}],[4,"sqm-router",{"ignored":[32]}],[1,"sqm-share-button",{"medium":[1],"programId":[1,"program-id"],"borderradius":[2],"backgroundcolor":[1],"textcolor":[1],"pill":[4],"disabled":[4],"type":[1],"size":[1],"iconslot":[1],"icon":[1],"hideicon":[4],"hidetext":[4],"sharetitle":[1],"sharetext":[1],"demoData":[16]}],[1,"sqm-share-link",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"demoData":[16]}],[1,"sqm-task-card",{"rewardAmount":[1,"reward-amount"],"rewardUnit":[1,"reward-unit"],"cardTitle":[1,"card-title"],"description":[1],"repeatable":[4],"finite":[2],"showProgressBar":[4,"show-progress-bar"],"goal":[2],"steps":[4],"progressBarUnit":[1,"progress-bar-unit"],"showExpiry":[4,"show-expiry"],"expiryMessage":[1,"expiry-message"],"rewardDuration":[1,"reward-duration"],"startsOnMessage":[1,"starts-on-message"],"endedMessage":[1,"ended-message"],"completedText":[1,"completed-text"],"buttonText":[1,"button-text"],"buttonLink":[1,"button-link"],"openNewTab":[4,"open-new-tab"],"statType":[1,"stat-type"],"ignored":[32]}],[1,"sqm-user-name",{"fallback":[1],"loadingText":[1,"loading-text"],"demoData":[16],"_ignored":[32]}],[1,"sqm-referral-table-cell",{"innerTemplate":[1,"inner-template"],"ignored":[32]}],[1,"sqm-referral-table-date-cell",{"date":[2],"ignored":[32]}],[1,"sqm-referral-table-rewards-cell",{"rewards":[16],"hideDetails":[4,"hide-details"]}],[1,"sqm-referral-table-status-cell",{"statusText":[1,"status-text"],"converted":[4]}],[1,"sqm-referral-table-user-cell",{"name":[1]}],[1,"sqm-rewards-table-date-cell",{"date":[2],"ignored":[32]}],[1,"sqm-rewards-table-rewards-cell",{"reward":[16],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"]}],[1,"sqm-rewards-table-source-cell",{"reward":[16],"deletedUserText":[1,"deleted-user-text"],"anonymousUserText":[1,"anonymous-user-text"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"]}],[1,"sqm-rewards-table-status-cell",{"statusText":[1,"status-text"],"reward":[16],"expiryText":[1,"expiry-text"]}],[1,"sqm-table-cell",{"colspan":[2],"padding":[1]}],[1,"sqm-table-row",{"border":[1]}],[4,"sqm-text",{"ignored":[32]}],[0,"sqm-password-field",{"fieldLabel":[1,"field-label"],"enableValidation":[4,"enable-validation"],"demoData":[16],"ignored":[32]}],[1,"sqm-form-message",{"type":[1],"icon":[1],"ignored":[32]}]]]]'),e)}))}}}));
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-015b683f.system.js","./p-795acde7.system.js","./p-1e182e88.system.js","./p-40e83a85.system.js"],(function(e,t){"use strict";var r,a,o;return{setters:[function(e){r=e.p;a=e.H;o=e.b},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){{s(a.prototype)}var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return r(o)};var s=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var r=t.call(this,false);var a=this.childNodes;if(e){for(var o=0;o<a.length;o++){if(a[o].nodeType!==2){r.appendChild(a[o].cloneNode(true))}}}return r}};e().then((function(e){return o(JSON.parse('[["p-8c3d0392.system",[[1,"sqm-portal-reset-password",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"confirmPassword":[4,"confirm-password"],"resetPasswordHeader":[1,"reset-password-header"],"passwordResetHeader":[1,"password-reset-header"],"resetPasswordButtonText":[1,"reset-password-button-text"],"continueButtonText":[1,"continue-button-text"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"passwordFieldLabel":[1,"password-field-label"],"demoData":[16],"ignored":[32]}]]],["p-9f14da02.system",[[1,"sqm-portal-email-verification",{"redirectPath":[1,"redirect-path"],"emailVerificationHeader":[1,"email-verification-header"],"resendEmailButtonText":[1,"resend-email-button-text"],"verifyMessage":[1,"verify-message"],"demoData":[16],"ignored":[32]}]]],["p-b0d598db.system",[[1,"sqm-portal-forgot-password",{"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"submitLabel":[1,"submit-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}]]],["p-2765e302.system",[[1,"sqm-portal-profile",{"firstnametext":[1],"lastnametext":[1],"emailtext":[1],"countrytext":[1],"editProfileHeader":[1,"edit-profile-header"],"editProfileSubHeader":[1,"edit-profile-sub-header"],"submitChangeButtonText":[1,"submit-change-button-text"],"showCountry":[4,"show-country"],"demoData":[16],"ignored":[32]}]]],["p-b11625ed.system",[[1,"sqm-portal-verify-email",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"demoData":[16],"ignored":[32]}]]],["p-d4a1bce9.system",[[1,"sqm-referral-table-column",{"columnTitle":[1,"column-title"],"renderCell":[64],"renderLabel":[64]}]]],["p-e7cb4274.system",[[1,"sqm-referral-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}]]],["p-a0a26fc5.system",[[1,"sqm-referral-table-rewards-column",{"columnTitle":[1,"column-title"],"hideDetails":[4,"hide-details"],"renderCell":[64],"renderLabel":[64]}]]],["p-7ff22998.system",[[1,"sqm-referral-table-status-column",{"columnTitle":[1,"column-title"],"convertedStatusText":[1,"converted-status-text"],"inProgressStatusText":[1,"in-progress-status-text"],"renderCell":[64],"renderLabel":[64]}]]],["p-88fdfd94.system",[[1,"sqm-referral-table-user-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"renderCell":[64],"renderLabel":[64]}]]],["p-a355eeaf.system",[[1,"sqm-asset-card",{"titleText":[1,"title-text"],"imgUrl":[1,"img-url"],"demoData":[16],"ignored":[32]}]]],["p-bffad7b3.system",[[1,"sqm-big-stat",{"statType":[1,"stat-type"],"flexReverse":[4,"flex-reverse"],"alignment":[1],"programId":[1,"program-id"],"demoData":[16],"ignored":[32]}]]],["p-63d1efcd.system",[[1,"sqm-card-feed",{"width":[2],"gap":[2],"ignored":[32]}]]],["p-24fa8920.system",[[4,"sqm-graphql-client-provider",{"domain":[1],"ignored":[32]}]]],["p-e14c15ca.system",[[1,"sqm-hero",{"columns":[2],"background":[1],"paddingSize":[1,"padding-size"],"secondaryBackground":[1,"secondary-background"],"wrapDirection":[1,"wrap-direction"]}]]],["p-97b946c2.system",[[1,"sqm-leaderboard",{"usersheading":[1],"statsheading":[1],"rankheading":[1],"showRank":[4,"show-rank"],"rankType":[1,"rank-type"],"leaderboardType":[1,"leaderboard-type"],"interval":[1],"demoData":[16],"ignored":[32]}]]],["p-ff747334.system",[[1,"sqm-leaderboard-rank",{"rankType":[1,"rank-type"],"rankText":[1,"rank-text"],"leaderboardType":[1,"leaderboard-type"],"unrankedText":[1,"unranked-text"],"interval":[1],"demoData":[16]}]]],["p-fd281e6b.system",[[0,"sqm-name-fields",{"firstNameLabel":[1,"first-name-label"],"lastNameLabel":[1,"last-name-label"],"demoData":[16],"ignored":[32]}]]],["p-fee468b7.system",[[1,"sqm-navigation-sidebar",{"ignored":[32]}]]],["p-f20d9204.system",[[1,"sqm-navigation-sidebar-item",{"path":[1],"icon":[1],"label":[1],"demoData":[16]}]]],["p-46493de5.system",[[4,"sqm-popup-container",{"poweredBy":[4,"powered-by"],"closeButton":[4,"close-button"],"closeButtonText":[1,"close-button-text"],"embedPadding":[1,"embed-padding"],"popupPadding":[1,"popup-padding"]}]]],["p-7a26fed1.system",[[1,"sqm-portal-footer",{"supportEmail":[1,"support-email"],"supportText":[1,"support-text"],"termsLink":[1,"terms-link"],"termsText":[1,"terms-text"],"faqLink":[1,"faq-link"],"faqText":[1,"faq-text"],"showPoweredBy":[4,"show-powered-by"],"poweredByLink":[1,"powered-by-link"],"paddingTop":[1,"padding-top"],"paddingRight":[1,"padding-right"],"paddingBottom":[1,"padding-bottom"],"paddingLeft":[1,"padding-left"],"ignored":[32]}]]],["p-aee83885.system",[[1,"sqm-portal-logout",{"nextPage":[1,"next-page"],"ignored":[32]}]]],["p-0d8b2757.system",[[1,"sqm-portal-protected-route",{"redirectTo":[1,"redirect-to"],"requireEmailVerification":[4,"require-email-verification"],"redirectToUnverified":[1,"redirect-to-unverified"],"ignored":[32]}]]],["p-8f58ce03.system",[[1,"sqm-program-explainer",{"header":[1],"headerColor":[1,"header-color"],"headerBackground":[1,"header-background"],"cardTitle":[1,"card-title"],"cardDescription":[1,"card-description"],"cardColor":[1,"card-color"],"cardBackground":[1,"card-background"],"ignored":[32]}]]],["p-6caa44e1.system",[[1,"sqm-program-explainer-step",{"cardTitle":[1,"card-title"],"description":[1],"color":[1],"background":[1],"icon":[1]}]]],["p-c1a47137.system",[[1,"sqm-route",{"path":[1],"ignored":[32]}]]],["p-29ee7d11.system",[[1,"sqm-share-code",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"demoData":[16]}]]],["p-0a39b23c.system",[[1,"sqm-stat-container",{"space":[1],"ignored":[32]}]]],["p-6d27cd05.system",[[0,"sqm-text-span",{"text":[1],"type":[1],"ignored":[32]}]]],["p-f85f36c6.system",[[1,"sqm-titled-section",{"label":[1],"labelMargin":[1,"label-margin"],"padding":[1]}]]],["p-82d532c7.system",[[4,"sqm-stencilbook",{"ignored":[32]}],[1,"sqm-referral-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"showLabels":[4,"show-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"showReferrer":[4,"show-referrer"],"demoData":[16]}],[1,"sqm-rewards-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"showLabels":[4,"show-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"demoData":[16]}],[1,"sqm-portal-change-password",{"modalChangePasswordHeader":[1,"modal-change-password-header"],"cancelText":[1,"cancel-text"],"changePasswordButtonText":[1,"change-password-button-text"],"passwordFieldLabel":[1,"password-field-label"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"successMessage":[1,"success-message"],"portalChangePasswordHeader":[1,"portal-change-password-header"],"portalChangePasswordButtonText":[1,"portal-change-password-button-text"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-register",{"nextPage":[1,"next-page"],"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"loginLabel":[1,"login-label"],"confirmPasswordLabel":[1,"confirm-password-label"],"confirmPassword":[4,"confirm-password"],"enablePasswordValidation":[4,"enable-password-validation"],"hideInputs":[4,"hide-inputs"],"pageLabel":[1,"page-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-edit-profile",{"editprofileheader":[1],"editprofiletext":[1],"canceltext":[1],"updatetext":[1],"firstnametext":[1],"lastnametext":[1],"currentregiontext":[1],"showregion":[4],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-login",{"nextPage":[1,"next-page"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"forgotPasswordLabel":[1,"forgot-password-label"],"registerLabel":[1,"register-label"],"pageLabel":[1,"page-label"],"registerPath":[1,"register-path"],"forgotPasswordPath":[1,"forgot-password-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-rewards-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-reward-column",{"columnTitle":[1,"column-title"],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-source-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-status-column",{"columnTitle":[1,"column-title"],"statusText":[1,"status-text"],"expiryText":[1,"expiry-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-brand",{"brandColor":[1,"brand-color"],"brandFont":[1,"brand-font"]}],[1,"sqm-divided-layout",{"direction":[1],"dividerStyle":[1,"divider-style"]}],[0,"sqm-hook-story-container",{"hookStory":[16],"ignored":[32]}],[1,"sqm-navigation-menu",{"includeDropdown":[4,"include-dropdown"],"menuLabel":[1,"menu-label"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-container",{"direction":[1],"padding":[1],"gap":[1],"minWidth":[1,"min-width"],"maxWidth":[1,"max-width"],"ignored":[32]}],[1,"sqm-portal-frame",{"demoData":[16],"ignored":[32]}],[4,"sqm-program-menu",{"ignored":[32]}],[0,"sqm-referral-iframe",{"iframeSrc":[1,"iframe-src"],"iframeHeight":[1,"iframe-height"],"iframeWidth":[1,"iframe-width"],"demoData":[16],"ignored":[32]}],[1,"sqm-reward-exchange-list",{"buttonText":[1,"button-text"],"notAvailableError":[1,"not-available-error"],"chooseRewardTitle":[1,"choose-reward-title"],"chooseAmountTitle":[1,"choose-amount-title"],"confirmationTitle":[1,"confirmation-title"],"rewardTitle":[1,"reward-title"],"cancelText":[1,"cancel-text"],"backText":[1,"back-text"],"continueText":[1,"continue-text"],"continueToConfirmationText":[1,"continue-to-confirmation-text"],"redeemText":[1,"redeem-text"],"redeemTitle":[1,"redeem-title"],"redemptionSuccessText":[1,"redemption-success-text"],"sourceAmountMessage":[1,"source-amount-message"],"tooltiptext":[1],"doneText":[1,"done-text"],"selectText":[1,"select-text"],"queryError":[1,"query-error"],"redemptionError":[1,"redemption-error"],"notEnoughError":[1,"not-enough-error"],"skeletonCardNum":[2,"skeleton-card-num"],"demoData":[16],"ignored":[32]}],[4,"sqm-router",{"ignored":[32]}],[1,"sqm-share-button",{"medium":[1],"programId":[1,"program-id"],"borderradius":[2],"backgroundcolor":[1],"textcolor":[1],"pill":[4],"disabled":[4],"type":[1],"size":[1],"iconslot":[1],"icon":[1],"hideicon":[4],"hidetext":[4],"sharetitle":[1],"sharetext":[1],"demoData":[16]}],[1,"sqm-share-link",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"demoData":[16]}],[1,"sqm-task-card",{"rewardAmount":[1,"reward-amount"],"rewardUnit":[1,"reward-unit"],"cardTitle":[1,"card-title"],"description":[1],"repeatable":[4],"finite":[2],"showProgressBar":[4,"show-progress-bar"],"goal":[2],"steps":[4],"progressBarUnit":[1,"progress-bar-unit"],"showExpiry":[4,"show-expiry"],"expiryMessage":[1,"expiry-message"],"rewardDuration":[1,"reward-duration"],"startsOnMessage":[1,"starts-on-message"],"endedMessage":[1,"ended-message"],"completedText":[1,"completed-text"],"buttonText":[1,"button-text"],"buttonLink":[1,"button-link"],"openNewTab":[4,"open-new-tab"],"statType":[1,"stat-type"],"ignored":[32]}],[1,"sqm-user-name",{"fallback":[1],"loadingText":[1,"loading-text"],"demoData":[16],"_ignored":[32]}],[1,"sqm-referral-table-cell",{"innerTemplate":[1,"inner-template"],"ignored":[32]}],[1,"sqm-referral-table-date-cell",{"date":[2],"ignored":[32]}],[1,"sqm-referral-table-rewards-cell",{"rewards":[16],"hideDetails":[4,"hide-details"]}],[1,"sqm-referral-table-status-cell",{"statusText":[1,"status-text"],"converted":[4]}],[1,"sqm-referral-table-user-cell",{"name":[1]}],[1,"sqm-rewards-table-date-cell",{"date":[2],"ignored":[32]}],[1,"sqm-rewards-table-rewards-cell",{"reward":[16],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"]}],[1,"sqm-rewards-table-source-cell",{"reward":[16],"deletedUserText":[1,"deleted-user-text"],"anonymousUserText":[1,"anonymous-user-text"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"]}],[1,"sqm-rewards-table-status-cell",{"statusText":[1,"status-text"],"reward":[16],"expiryText":[1,"expiry-text"]}],[1,"sqm-table-cell",{"colspan":[2],"padding":[1]}],[1,"sqm-table-row",{"border":[1]}],[4,"sqm-text",{"ignored":[32]}],[0,"sqm-password-field",{"fieldLabel":[1,"field-label"],"enableValidation":[4,"enable-validation"],"demoData":[16],"ignored":[32]}],[1,"sqm-form-message",{"type":[1],"icon":[1],"ignored":[32]}]]]]'),e)}))}}}));
|
|
@@ -323,7 +323,7 @@ import{r as e,h as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,e as i,j
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
`;async function ea(e,r){const n=e.tagName.toLowerCase();let a;await customElements.whenDefined(n);try{a=r()}catch(e){return console.error("label promise failed",e),t("span",null)}try{return await a}catch(e){console.error("Error rendering label",e);const r=function(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}(e);return t("details",null,t("summary",null,"Error"),r)}}const ta=class{constructor(t){e(this,t),this.perPage=3,this.showLabels=!0,this.prevLabel="Prev",this.moreLabel="Next",a(this)}disconnectedCallback(){}render(){const e=t(Un,{label:"No Rewards Yet"}),r=t(zn,null),{states:n,data:a,callbacks:s,elements:o}=x()?function(e){return V({states:{hasPrev:!1,hasNext:!1,loading:!1,namespace:"sqm-rewards-table"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[]},elements:{emptyElement:t(Zn,{label:"No Rewards Yet"}),loadingElement:t(Wn,null),columns:[t("div",null,"Name"),t("div",null,"Email"),t("div",null,"DOB")],rows:[]}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e,t,r){var n,a;const s=y(),o=T(),l=null!==(n=e.programId)&&void 0!==n?n:o,d={userId_eq:null==s?void 0:s.id,accountId_eq:null==s?void 0:s.accountId,...l?"classic"===l?{programId_exists:!1}:{programId_eq:l}:{}},[u,m]=c(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:p,states:h,callbacks:f}=S(Qn,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:d},!(null==s?void 0:s.jwt)),g=te(),b=bn(),v=null==p?void 0:p.data;i((()=>{m({loading:!0}),p&&async function(e){const t=e.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),r=null==t?void 0:t.map((async e=>ea(e,(()=>e.renderLabel())))),n=null==v?void 0:v.map((async e=>{const r=null==t?void 0:t.map((async t=>ea(t,(()=>t.renderCell([e],t)))));return await Promise.all(r)})),a=n&&(await Promise.all(n)).filter((e=>e));m({rows:a});const i=r&&await Promise.all(r);m({columns:i,loading:!1,page:h.currentPage})}(b)}),[p,b,g]);const w=!(null===(a=null==u?void 0:u.rows)||void 0===a?void 0:a.length)&&!(null==v?void 0:v.length);return{states:{hasNext:h.currentPage<h.pageCount-1,hasPrev:h.currentPage>0,show:h.loading||u.loading?"loading":w?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel}},elements:{columns:u.columns,rows:u.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:()=>{f.setCurrentPage(h.currentPage+1)},prevPage:()=>{f.setCurrentPage(h.currentPage-1)}}}}(this,e,r);return t(Kn,{states:n,data:a,callbacks:s,elements:o})}},ra=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}render(){var e;const r=this.date?null===(e=En.DateTime.fromMillis(this.date))||void 0===e?void 0:e.toLocaleString(En.DateTime.DATE_MED):"-";return t(K,{type:"p"},r)}},na=class{constructor(t){e(this,t),this.columnTitle="Date received",this.dateShown="dateGiven",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-date-cell",{date:(null==e?void 0:e[0])[this.dateShown]})}async renderLabel(){return this.columnTitle}render(){return re([this.dateShown,this.columnTitle]),t(r,{style:{display:"none"}})}},aa=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} available",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-rewards-cell",{reward:null==e?void 0:e[0],redeemedText:this.redeemedText,availableText:this.availableText})}async renderLabel(){return this.columnTitle}render(){return re([this.columnTitle]),t(r,{style:{display:"none"}})}},ia=class{constructor(t){e(this,t)}render(){O.setup(L());const e=O.createStyleSheet({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"}}),r=e.toString();return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},r),t(K,{type:"p"},t("span",{class:e.classes.BoldText},t((function({reward:e}){var r;const n="CENTS"===e.unit?e.prettyValue.replace(/USD/gi,"$"):null!==(r=e.prettyValue)&&void 0!==r?r:"-";if("CREDIT"===e.type){const r=Math.round((parseFloat(e.prettyValueNumber)-parseFloat(e.prettyRedeemedNumber))/parseFloat(e.prettyValueNumber)*100),a=e.statuses.includes("EXPIRED")||e.statuses.includes("CANCELLED")?t("div",null,f.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:e.prettyRedeemedCredit})):t("div",null,f.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:e.prettyAvailableValue})),i={Progress:{background:"#e0e0e0",borderRadius:"4px",height:"3px",width:"80px",marginTop:"6px",marginBottom:"6px","&:after":{content:'""',display:"block",background:"#222222",borderRadius:"4px",width:`${r}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",maxWidth:"100%",maxHeight:"60px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}};O.setup(L());const s=O.createStyleSheet(i),o=s.toString();return t("div",null,t("style",{type:"text/css"},o),t("div",{class:s.classes.Container},t("span",{style:{color:"#232323"}},n)," ",t("br",null)," ",t("div",{class:s.classes.Progress}),a))}return t("span",{style:{color:"#232323"}},n)}),{reward:this.reward}))))}},sa=class{constructor(t){e(this,t)}render(){function e({reward:e}){return t("span",null,f.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:e.rewardSource}))}function r({reward:e}){var r;const n=t("div",null,this.rewardExchangeText,t("br",null),null===(r=e.exchangedRewardRedemptionTransaction)||void 0===r?void 0:r.prettyRedeemedCredit," → ",e.prettyValue);return e.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+e.prettyValue.length<21?n:t("div",{style:{display:"inline-block",verticalAlign:"top",maxWidth:"155px"}},n)}return t(K,{type:"p"},(()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?t("div",null,f.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource}),t("br",null),t("b",null,function(e){return e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText}(this.reward.referral.referredUser))):t(this.reward.exchangedRewardRedemptionTransaction?r:e,{reward:this.reward}))())}},oa=class{constructor(t){e(this,t),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {Automated}}",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-source-cell",{reward:null==e?void 0:e[0],anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText})}async renderLabel(){return this.columnTitle}render(){return re([this.deletedUser,this.anonymousUser,this.columnTitle]),t(r,{style:{display:"none"}})}},la=class{constructor(t){e(this,t)}rewardStatus(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if("CREDIT"===e.type)return e.statuses.includes("REDEEMED")?"REDEEMED":"AVAILABLE";if("PCT_DISCOUNT"===e.type&&e.statuses.includes("AVAILABLE"))return"AVAILABLE";if("INTEGRATION"===e.type||"FUELTANK"===e.type){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""}render(){var e;const r=this.rewardStatus(this.reward),n=f.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:r}),a="AVAILABLE"===r?"success":"REDEEMED"===r?"primary":"PENDING"===r?"warning":"error",i=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",s=i&&`${this.reward.dateExpires?this.expiryText:""}${null===(e=En.DateTime.fromMillis(i))||void 0===e?void 0:e.toLocaleString(En.DateTime.DATE_MED)}`;return t("div",{style:{display:"contents"}},t("sl-badge",{type:a,pill:!0},n),t("p",{style:{fontSize:"90%",marginTop:"0"}},s))}},da=class{constructor(t){e(this,t),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.expiryText="Expires on ",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:null==e?void 0:e[0],expiryText:this.expiryText})}async renderLabel(){return this.columnTitle}render(){return re([this.columnTitle]),t(r,{style:{display:"none"}})}},ua=u("sq:useRouter");function ca(e,t){if(e)return ae(e).exec(t)}const ma=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{callbacks:e}=function(){const e=F(),t=k(),[r,n]=s(void 0),[a,o]=s(void 0),l=e.pathname;return i((()=>{const e=t.querySelectorAll("sqm-route");Array.from(e).forEach((e=>{const t=document.createElement("template");t.setAttribute("path",e.path),t.innerHTML=e.innerHTML,e.parentNode.appendChild(t),e.parentNode.removeChild(e)}))}),[]),i((()=>{var e,t;if(!a||!r)return void ua("DOM not ready for navigation rendering on:",l);const n=r.querySelectorAll("template"),i=Array.from(n).find((e=>{var t,r,n;if(null===(n=ca(null===(r=null===(t=e.attributes)||void 0===t?void 0:t.path)||void 0===r?void 0:r.nodeValue,l))||void 0===n?void 0:n.length)return e})),s=null===(t=null===(e=null==i?void 0:i.attributes)||void 0===e?void 0:e.path)||void 0===t?void 0:t.nodeValue;if(ua({containerDatasetPage:a.dataset.page,templatePath:s,page:l}),!i)return ua("No matching page found for ",l,", so render nothing"),a.innerHTML="",void(a.dataset.page=l);ua("Page updated to ",l,i),ca(s,a.dataset.page)?ua("don't rerender"):i&&(a.innerHTML=i.innerHTML,a.dataset.page=l)}),[r,a,l]),{callbacks:{setSlot:n,setContainer:o}}}();return t(r,null,t("div",{ref:e.setSlot,style:{display:"none"}},t("slot",null)),t("div",{style:{display:"contents"},ref:e.setContainer}))}};function pa(e,n){const a=`\n *::part(base) {\n background: ${e.backgroundcolor?e.backgroundcolor:""};\n color: ${e.textcolor?e.textcolor:""};\n border-radius: ${e.borderradius?e.borderradius+"px":""};\n }\n `,i={HostBlock:z,buttonStyle:{display:"block"}};O.setup(L());const s=O.createStyleSheet(i),o=s.toString();return e.hide?t(r,{style:{display:"none"}}):t("div",null,t("style",{type:"text/css"},o),t("style",{type:"text/css"},a),t("sl-button",{class:s.classes.buttonStyle,loading:e.loading,disabled:e.disabled,pill:e.pill,size:e.size,type:e.type,onClick:e.onClick,exportparts:`base: ${e.type}sharebutton-base`},!e.hideicon&&t("sl-icon",{slot:e.iconslot,name:e.icon?e.icon:e.medium,exportparts:"icon"}),!e.hidetext&&n))}ma.style="sqm-router{display:contents}";const ha=Q`
|
|
326
|
+
`;async function ea(e,r){const n=e.tagName.toLowerCase();let a;await customElements.whenDefined(n);try{a=r()}catch(e){return console.error("label promise failed",e),t("span",null)}try{return await a}catch(e){console.error("Error rendering label",e);const r=function(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}(e);return t("details",null,t("summary",null,"Error"),r)}}const ta=class{constructor(t){e(this,t),this.perPage=3,this.showLabels=!0,this.prevLabel="Prev",this.moreLabel="Next",a(this)}disconnectedCallback(){}render(){const e=t(Un,{label:"No Rewards Yet"}),r=t(zn,null),{states:n,data:a,callbacks:s,elements:o}=x()?function(e){return V({states:{hasPrev:!1,hasNext:!1,loading:!1,namespace:"sqm-rewards-table"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[]},elements:{emptyElement:t(Zn,{label:"No Rewards Yet"}),loadingElement:t(Wn,null),columns:[t("div",null,"Name"),t("div",null,"Email"),t("div",null,"DOB")],rows:[]}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e,t,r){var n,a;const s=y(),o=T(),l=null!==(n=e.programId)&&void 0!==n?n:o,d={userId_eq:null==s?void 0:s.id,accountId_eq:null==s?void 0:s.accountId,...l?"classic"===l?{programId_exists:!1}:{programId_eq:l}:{}},[u,m]=c(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:p,states:h,callbacks:f}=S(Qn,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:d},!(null==s?void 0:s.jwt)),g=te(),b=bn(),v=null==p?void 0:p.data;i((()=>{m({loading:!0}),p&&async function(e){const t=e.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),r=null==t?void 0:t.map((async e=>ea(e,(()=>e.renderLabel())))),n=null==v?void 0:v.map((async e=>{const r=null==t?void 0:t.map((async t=>ea(t,(()=>t.renderCell([e],t)))));return await Promise.all(r)})),a=n&&(await Promise.all(n)).filter((e=>e));m({rows:a});const i=r&&await Promise.all(r);m({columns:i,loading:!1,page:h.currentPage})}(b)}),[p,b,g]);const w=!(null===(a=null==u?void 0:u.rows)||void 0===a?void 0:a.length)&&!(null==v?void 0:v.length);return{states:{hasNext:h.currentPage<h.pageCount-1,hasPrev:h.currentPage>0,show:h.loading||u.loading?"loading":w?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel}},elements:{columns:u.columns,rows:u.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:()=>{f.setCurrentPage(h.currentPage+1)},prevPage:()=>{f.setCurrentPage(h.currentPage-1)}}}}(this,e,r);return t(Kn,{states:n,data:a,callbacks:s,elements:o})}},ra=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}render(){var e;const r=this.date?null===(e=En.DateTime.fromMillis(this.date))||void 0===e?void 0:e.toLocaleString(En.DateTime.DATE_MED):"-";return t(K,{type:"p"},r)}},na=class{constructor(t){e(this,t),this.columnTitle="Date received",this.dateShown="dateGiven",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-date-cell",{date:(null==e?void 0:e[0])[this.dateShown]})}async renderLabel(){return this.columnTitle}render(){return re([this.dateShown,this.columnTitle]),t(r,{style:{display:"none"}})}},aa=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} available",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-rewards-cell",{reward:null==e?void 0:e[0],redeemedText:this.redeemedText,availableText:this.availableText})}async renderLabel(){return this.columnTitle}render(){return re([this.columnTitle]),t(r,{style:{display:"none"}})}},ia=class{constructor(t){e(this,t)}render(){O.setup(L());const e=O.createStyleSheet({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"}}),r=e.toString();return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},r),t(K,{type:"p"},t("span",{class:e.classes.BoldText},t((function({reward:e}){var r;const n="CENTS"===e.unit?e.prettyValue.replace(/USD/gi,"$"):null!==(r=e.prettyValue)&&void 0!==r?r:"-";if("CREDIT"===e.type){const r=Math.round((parseFloat(e.prettyValueNumber)-parseFloat(e.prettyRedeemedNumber))/parseFloat(e.prettyValueNumber)*100),a=e.statuses.includes("EXPIRED")||e.statuses.includes("CANCELLED")?t("div",null,f.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:e.prettyRedeemedCredit})):t("div",null,f.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:e.prettyAvailableValue})),i={Progress:{background:"#e0e0e0",borderRadius:"4px",height:"3px",width:"80px",marginTop:"6px",marginBottom:"6px","&:after":{content:'""',display:"block",background:"#222222",borderRadius:"4px",width:`${r}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",maxWidth:"100%",maxHeight:"60px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}};O.setup(L());const s=O.createStyleSheet(i),o=s.toString();return t("div",null,t("style",{type:"text/css"},o),t("div",{class:s.classes.Container},t("span",{style:{color:"#232323"}},n)," ",t("br",null)," ",t("div",{class:s.classes.Progress}),a))}return t("span",{style:{color:"#232323"}},n)}),{reward:this.reward}))))}},sa=class{constructor(t){e(this,t)}render(){function e({reward:e}){return t("span",null,f.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:e.rewardSource}))}function r({reward:e}){var r;const n=t("div",null,this.rewardExchangeText,t("br",null),null===(r=e.exchangedRewardRedemptionTransaction)||void 0===r?void 0:r.prettyRedeemedCredit," → ",e.prettyValue);return e.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+e.prettyValue.length<21?n:t("div",{style:{display:"inline-block",verticalAlign:"top",maxWidth:"155px"}},n)}return t(K,{type:"p"},(()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?t("div",null,f.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource}),t("br",null),t("b",null,function(e){return e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText}(this.reward.referral.referredUser))):t(this.reward.exchangedRewardRedemptionTransaction?r:e,{reward:this.reward}))())}},oa=class{constructor(t){e(this,t),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {Automated} other {}}",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-source-cell",{reward:null==e?void 0:e[0],anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText})}async renderLabel(){return this.columnTitle}render(){return re([this.deletedUser,this.anonymousUser,this.rewardExchangeText,this.rewardSourceText,this.columnTitle]),t(r,{style:{display:"none"}})}},la=class{constructor(t){e(this,t)}rewardStatus(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if("CREDIT"===e.type)return e.statuses.includes("REDEEMED")?"REDEEMED":"AVAILABLE";if("PCT_DISCOUNT"===e.type&&e.statuses.includes("AVAILABLE"))return"AVAILABLE";if("INTEGRATION"===e.type||"FUELTANK"===e.type){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""}render(){var e;const r=this.rewardStatus(this.reward),n=f.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:r}),a="AVAILABLE"===r?"success":"REDEEMED"===r?"primary":"PENDING"===r?"warning":"error",i=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",s=i&&`${this.reward.dateExpires?this.expiryText:""}${null===(e=En.DateTime.fromMillis(i))||void 0===e?void 0:e.toLocaleString(En.DateTime.DATE_MED)}`;return t("div",{style:{display:"contents"}},t("sl-badge",{type:a,pill:!0},n),t("p",{style:{fontSize:"90%",marginTop:"0"}},s))}},da=class{constructor(t){e(this,t),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.expiryText="Expires on ",a(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:null==e?void 0:e[0],expiryText:this.expiryText})}async renderLabel(){return this.columnTitle}render(){return re([this.columnTitle]),t(r,{style:{display:"none"}})}},ua=u("sq:useRouter");function ca(e,t){if(e)return ae(e).exec(t)}const ma=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{callbacks:e}=function(){const e=F(),t=k(),[r,n]=s(void 0),[a,o]=s(void 0),l=e.pathname;return i((()=>{const e=t.querySelectorAll("sqm-route");Array.from(e).forEach((e=>{const t=document.createElement("template");t.setAttribute("path",e.path),t.innerHTML=e.innerHTML,e.parentNode.appendChild(t),e.parentNode.removeChild(e)}))}),[]),i((()=>{var e,t;if(!a||!r)return void ua("DOM not ready for navigation rendering on:",l);const n=r.querySelectorAll("template"),i=Array.from(n).find((e=>{var t,r,n;if(null===(n=ca(null===(r=null===(t=e.attributes)||void 0===t?void 0:t.path)||void 0===r?void 0:r.nodeValue,l))||void 0===n?void 0:n.length)return e})),s=null===(t=null===(e=null==i?void 0:i.attributes)||void 0===e?void 0:e.path)||void 0===t?void 0:t.nodeValue;if(ua({containerDatasetPage:a.dataset.page,templatePath:s,page:l}),!i)return ua("No matching page found for ",l,", so render nothing"),a.innerHTML="",void(a.dataset.page=l);ua("Page updated to ",l,i),ca(s,a.dataset.page)?ua("don't rerender"):i&&(a.innerHTML=i.innerHTML,a.dataset.page=l)}),[r,a,l]),{callbacks:{setSlot:n,setContainer:o}}}();return t(r,null,t("div",{ref:e.setSlot,style:{display:"none"}},t("slot",null)),t("div",{style:{display:"contents"},ref:e.setContainer}))}};function pa(e,n){const a=`\n *::part(base) {\n background: ${e.backgroundcolor?e.backgroundcolor:""};\n color: ${e.textcolor?e.textcolor:""};\n border-radius: ${e.borderradius?e.borderradius+"px":""};\n }\n `,i={HostBlock:z,buttonStyle:{display:"block"}};O.setup(L());const s=O.createStyleSheet(i),o=s.toString();return e.hide?t(r,{style:{display:"none"}}):t("div",null,t("style",{type:"text/css"},o),t("style",{type:"text/css"},a),t("sl-button",{class:s.classes.buttonStyle,loading:e.loading,disabled:e.disabled,pill:e.pill,size:e.size,type:e.type,onClick:e.onClick,exportparts:`base: ${e.type}sharebutton-base`},!e.hideicon&&t("sl-icon",{slot:e.iconslot,name:e.icon?e.icon:e.medium,exportparts:"icon"}),!e.hidetext&&n))}ma.style="sqm-router{display:contents}";const ha=Q`
|
|
327
327
|
query (
|
|
328
328
|
$programId: ID
|
|
329
329
|
$engagementMedium: UserEngagementMedium!
|