@saasquatch/mint-components 2.1.8-7 → 2.1.8-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.
@@ -4485,7 +4485,7 @@ function parsePathSuffix(url) {
4485
4485
  }
4486
4486
  }
4487
4487
  function useShareLink(props) {
4488
- var _a, _b, _c, _d, _e, _f, _g;
4488
+ var _a, _b, _d, _e, _f, _g;
4489
4489
  const { programId = index_module.H() } = props;
4490
4490
  const user = index_module.J();
4491
4491
  const engagementMedium = index_module.B();
@@ -4508,8 +4508,9 @@ function useShareLink(props) {
4508
4508
  const [showSuccess, setShowSuccess] = domContextHooks_module.useState(false);
4509
4509
  const debounceTimerRef = domContextHooks_module.useRef(undefined);
4510
4510
  const domainPrefix = parseDomainPrefix(copyString);
4511
- const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
4512
- const customizeDisabled = !hasPrimaryLinkDomain;
4511
+ // TODO: change this back
4512
+ // const customizeDisabled = !hasPrimaryLinkDomain;
4513
+ const customizeDisabled = false;
4513
4514
  const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
4514
4515
  const editCount = vanityCount;
4515
4516
  const editsRemaining = Math.max(0, MAX_EDITS - editCount);
@@ -4646,8 +4647,7 @@ function useShareLink(props) {
4646
4647
  editLimitText: props.editLimitText,
4647
4648
  editLimitReachedText: props.editLimitReachedText,
4648
4649
  supportLinkText: props.supportLinkText,
4649
- // customizeDisabled,
4650
- customizeDisabled: false,
4650
+ customizeDisabled,
4651
4651
  customizeDisabledTooltip: props.customizeDisabledTooltip,
4652
4652
  onCustomizeClick,
4653
4653
  onEditValueChange,
@@ -27,7 +27,7 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-239
27
27
  const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
28
28
  const utilities = require('./utilities-fcdb9504.js');
29
29
  const ErrorView = require('./ErrorView-ee7b0f36.js');
30
- const ShadowViewAddon = require('./ShadowViewAddon-75404e1f.js');
30
+ const ShadowViewAddon = require('./ShadowViewAddon-032ec191.js');
31
31
  require('./sqm-portal-container-view-70a47420.js');
32
32
  const data = require('./data-8c8a08f6.js');
33
33
  const extractProps = require('./extractProps-e9c55ba8.js');
@@ -33,7 +33,7 @@ require('./utilities-fcdb9504.js');
33
33
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-6b1acd90.js');
34
34
  require('./ErrorView-ee7b0f36.js');
35
35
  const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
36
- const ShadowViewAddon = require('./ShadowViewAddon-75404e1f.js');
36
+ const ShadowViewAddon = require('./ShadowViewAddon-032ec191.js');
37
37
  const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js');
38
38
  const sqmUserInfoFormView = require('./sqm-user-info-form-view-53306f6e.js');
39
39
  const data = require('./data-8c8a08f6.js');
@@ -112,7 +112,9 @@ export function useShareLink(props) {
112
112
  const debounceTimerRef = useRef(undefined);
113
113
  const domainPrefix = parseDomainPrefix(copyString);
114
114
  const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
115
- const customizeDisabled = !hasPrimaryLinkDomain;
115
+ // TODO: change this back
116
+ // const customizeDisabled = !hasPrimaryLinkDomain;
117
+ const customizeDisabled = false;
116
118
  const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
117
119
  const editCount = vanityCount;
118
120
  const editsRemaining = Math.max(0, MAX_EDITS - editCount);
@@ -249,8 +251,7 @@ export function useShareLink(props) {
249
251
  editLimitText: props.editLimitText,
250
252
  editLimitReachedText: props.editLimitReachedText,
251
253
  supportLinkText: props.supportLinkText,
252
- // customizeDisabled,
253
- customizeDisabled: false,
254
+ customizeDisabled,
254
255
  customizeDisabledTooltip: props.customizeDisabledTooltip,
255
256
  onCustomizeClick,
256
257
  onEditValueChange,
@@ -4483,7 +4483,7 @@ function parsePathSuffix(url) {
4483
4483
  }
4484
4484
  }
4485
4485
  function useShareLink(props) {
4486
- var _a, _b, _c, _d, _e, _f, _g;
4486
+ var _a, _b, _d, _e, _f, _g;
4487
4487
  const { programId = H() } = props;
4488
4488
  const user = J();
4489
4489
  const engagementMedium = B();
@@ -4506,8 +4506,9 @@ function useShareLink(props) {
4506
4506
  const [showSuccess, setShowSuccess] = useState(false);
4507
4507
  const debounceTimerRef = useRef(undefined);
4508
4508
  const domainPrefix = parseDomainPrefix(copyString);
4509
- const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
4510
- const customizeDisabled = !hasPrimaryLinkDomain;
4509
+ // TODO: change this back
4510
+ // const customizeDisabled = !hasPrimaryLinkDomain;
4511
+ const customizeDisabled = false;
4511
4512
  const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
4512
4513
  const editCount = vanityCount;
4513
4514
  const editsRemaining = Math.max(0, MAX_EDITS - editCount);
@@ -4644,8 +4645,7 @@ function useShareLink(props) {
4644
4645
  editLimitText: props.editLimitText,
4645
4646
  editLimitReachedText: props.editLimitReachedText,
4646
4647
  supportLinkText: props.supportLinkText,
4647
- // customizeDisabled,
4648
- customizeDisabled: false,
4648
+ customizeDisabled,
4649
4649
  customizeDisabledTooltip: props.customizeDisabledTooltip,
4650
4650
  onCustomizeClick,
4651
4651
  onEditValueChange,
@@ -23,7 +23,7 @@ import { u as useInstantAccessRegistration } from './useInstantAccessRegistratio
23
23
  import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-dd4e8b08.js';
24
24
  import { i as isEmpty } from './utilities-77b1e0cc.js';
25
25
  import { E as ErrorView } from './ErrorView-74cb3af8.js';
26
- import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-2e9a1655.js';
26
+ import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-c416da17.js';
27
27
  import './sqm-portal-container-view-a8c708cd.js';
28
28
  import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, g as getCountryObj, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, i as GET_FINANCE_NETWORK_SETTINGS, j as CURRENCIES_QUERY_NAMESPACE, k as GET_CURRENCIES, L as LoadingView } from './data-12e6aae1.js';
29
29
  import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
@@ -29,7 +29,7 @@ import './utilities-77b1e0cc.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-cfbc0eb0.js';
30
30
  import './ErrorView-74cb3af8.js';
31
31
  import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
32
- import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-2e9a1655.js';
32
+ import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-c416da17.js';
33
33
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-a8c708cd.js';
34
34
  import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-19d81a2b.js';
35
35
  import { t as taxTypeToName, L as LoadingView } from './data-12e6aae1.js';