fansunited-frontend-core 0.0.39 → 0.0.40

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.
Files changed (52) hide show
  1. package/components/PrizeCard/PrizeCard.d.ts +9 -0
  2. package/components/PrizeCard/PrizeCard.d.ts.map +1 -0
  3. package/components/PrizeCard/PrizeCard.js +53 -0
  4. package/components/PrizeCard/PrizeCard.js.map +1 -0
  5. package/functions/functions.d.ts +3 -3
  6. package/functions/functions.d.ts.map +1 -1
  7. package/functions/functions.js +4 -0
  8. package/functions/functions.js.map +1 -0
  9. package/functions/helpers.d.ts +6 -6
  10. package/functions/helpers.d.ts.map +1 -1
  11. package/functions/helpers.js +129 -0
  12. package/functions/helpers.js.map +1 -0
  13. package/index.d.ts +41 -40
  14. package/index.d.ts.map +1 -1
  15. package/index.es.js +7720 -6435
  16. package/index.js +38 -0
  17. package/index.js.map +1 -0
  18. package/interfaces/interfaces.d.ts +9 -0
  19. package/interfaces/interfaces.d.ts.map +1 -1
  20. package/locales/bg.json +57 -5
  21. package/locales/bg.json.d.ts +57 -5
  22. package/locales/de.json +57 -5
  23. package/locales/de.json.d.ts +57 -5
  24. package/locales/el.json +57 -5
  25. package/locales/el.json.d.ts +57 -5
  26. package/locales/en.json +57 -5
  27. package/locales/en.json.d.ts +57 -5
  28. package/locales/es.json +57 -5
  29. package/locales/es.json.d.ts +57 -5
  30. package/locales/fr-be.json +57 -5
  31. package/locales/fr-be.json.d.ts +57 -5
  32. package/locales/fr.json +57 -5
  33. package/locales/fr.json.d.ts +57 -5
  34. package/locales/it.json +57 -5
  35. package/locales/it.json.d.ts +57 -5
  36. package/locales/pl.json +57 -5
  37. package/locales/pl.json.d.ts +57 -5
  38. package/locales/pt-br.json +57 -5
  39. package/locales/pt-br.json.d.ts +57 -5
  40. package/locales/pt.json +57 -5
  41. package/locales/pt.json.d.ts +57 -5
  42. package/locales/ro.json +57 -5
  43. package/locales/ro.json.d.ts +57 -5
  44. package/locales/sk.json +57 -5
  45. package/locales/sk.json.d.ts +57 -5
  46. package/locales/sr.json +57 -5
  47. package/locales/sr.json.d.ts +57 -5
  48. package/package.json +1 -1
  49. package/types/types.d.ts +1 -1
  50. package/types/types.d.ts.map +1 -1
  51. package/types/types.js +2 -0
  52. package/types/types.js.map +1 -0
@@ -0,0 +1,9 @@
1
+ interface PrizeCardProps {
2
+ title: string;
3
+ description: string;
4
+ cta: string;
5
+ rules: string | TrustedHTML | null;
6
+ }
7
+ declare const PrizeCard: React.FC<PrizeCardProps>;
8
+ export default PrizeCard;
9
+ //# sourceMappingURL=PrizeCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrizeCard.d.ts","sourceRoot":"","sources":["../../../src/components/PrizeCard/PrizeCard.tsx"],"names":[],"mappings":"AAqDA,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;CACpC;AAQD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyDvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Box, Button, Card, DialogActions, DialogContent, DialogTitle, Modal, ModalClose, ModalDialog, Typography, } from "@mui/joy";
3
+ import { useTheme } from "@mui/joy/styles";
4
+ import { useMediaQuery } from "@mui/material";
5
+ import { t } from "i18next";
6
+ import { useState } from "react";
7
+ const prizeCardStyles = {
8
+ mainCard: {
9
+ my: 2,
10
+ p: 2,
11
+ textAlign: "center",
12
+ background: "linear-gradient(135deg, var(--joy-palette-primary-400), var(--joy-palette-primary-600), var(--joy-palette-primary-700))",
13
+ position: "relative",
14
+ overflow: "hidden",
15
+ borderRadius: "sm",
16
+ },
17
+ mainCardOverlay: {
18
+ position: "absolute",
19
+ top: 0,
20
+ left: 0,
21
+ right: 0,
22
+ bottom: 0,
23
+ background: "linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%)",
24
+ zIndex: 0,
25
+ },
26
+ contentWrapper: {
27
+ position: "relative",
28
+ zIndex: 1,
29
+ },
30
+ title: {
31
+ color: "white",
32
+ textShadow: "0 2px 7px rgba(0,0,0,0.2)",
33
+ mb: 1,
34
+ },
35
+ description: {
36
+ color: "white",
37
+ opacity: 0.9,
38
+ },
39
+ };
40
+ const titleLabel = t("prize.title");
41
+ const descriptionLabel = t("prize.description");
42
+ const ctaLabel = t("prize.cta");
43
+ const termsLabel = t("prize.termsAndConditions");
44
+ const closeLabel = t("eitherOr.buttons.close");
45
+ const PrizeCard = ({ title = titleLabel, description = descriptionLabel, cta = ctaLabel, rules = "", }) => {
46
+ const [open, setOpen] = useState(false);
47
+ //TODO: Use internal theme
48
+ const theme = useTheme();
49
+ const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
50
+ return (_jsxs(_Fragment, { children: [_jsxs(Card, { variant: "soft", color: "success", sx: prizeCardStyles.mainCard, children: [_jsx(Box, { style: prizeCardStyles.mainCardOverlay }), _jsxs(Box, { sx: prizeCardStyles.contentWrapper, children: [_jsx(Typography, { level: "h4", sx: prizeCardStyles.title, children: title }), _jsx(Typography, { level: "body-sm", sx: prizeCardStyles.description, children: description }), _jsx(Typography, { level: "body-xs", textColor: "white", mt: 2, sx: { cursor: "pointer" }, onClick: () => setOpen(true), children: cta })] })] }), _jsx(Modal, { open: open, onClose: () => setOpen(false), children: _jsxs(ModalDialog, { layout: isMobile ? "fullscreen" : "center", children: [_jsx(ModalClose, {}), _jsx(DialogTitle, { children: termsLabel }), _jsx(DialogContent, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: rules } }) }), _jsx(DialogActions, { children: _jsx(Button, { variant: "soft", color: "neutral", onClick: () => setOpen(false), children: closeLabel }) })] }) })] }));
51
+ };
52
+ export default PrizeCard;
53
+ //# sourceMappingURL=PrizeCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrizeCard.js","sourceRoot":"","sources":["../../../src/components/PrizeCard/PrizeCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,aAAa,EACb,aAAa,EACb,WAAW,EACX,KAAK,EACL,UAAU,EACV,WAAW,EACX,UAAU,GACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,eAAe,GAAG;IACtB,QAAQ,EAAE;QACR,EAAE,EAAE,CAAC;QACL,CAAC,EAAE,CAAC;QACJ,SAAS,EAAE,QAAQ;QACnB,UAAU,EACR,yHAAyH;QAC3H,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,IAAI;KACnB;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,UAAU,EACR,8EAA8E;QAChF,MAAM,EAAE,CAAC;KACV;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC;KACV;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,2BAA2B;QACvC,EAAE,EAAE,CAAC;KACN;IACD,WAAW,EAAE;QACX,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,GAAG;KACb;CACO,CAAC;AASX,MAAM,UAAU,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC;AACpC,MAAM,gBAAgB,G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ACT,IACD,EAEP,KAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,YAC9C,MAAC,WAAW,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,aACrD,KAAC,UAAU,KAAG,EACd,KAAC,WAAW,cAAE,UAAU,GAAe,EACvC,KAAC,aAAa,cACZ,cACE,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAoB,EAAE,GACpD,GACO,EAChB,KAAC,aAAa,cACZ,KAAC,MAAM,IACL,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,YAE5B,UAAU,GACJ,GACK,IACJ,GACR,IACP,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, useCurrentThemeMode, } from './theme';
2
- export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingModelProperties, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, getRelatedInfoPageId, } from './helpers';
3
- export { initializeI18n } from './i18n';
1
+ export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, useCurrentThemeMode, } from "./theme";
2
+ export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingModelProperties, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, getRelatedInfoPageId, isWithPrize, } from "./helpers";
3
+ export { initializeI18n } from "./i18n";
4
4
  //# sourceMappingURL=functions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/functions/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,0BAA0B,EAC1B,OAAO,EACP,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/functions/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,0BAA0B,EAC1B,OAAO,EACP,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, useCurrentThemeMode, } from "./theme";
2
+ export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingModelProperties, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, getRelatedInfoPageId, isWithPrize, } from "./helpers";
3
+ export { initializeI18n } from "./i18n";
4
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/functions/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,0BAA0B,EAC1B,OAAO,EACP,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,12 +1,11 @@
1
- import { BrandingColorsModel, BrandingModel, ConsentEntityType, RelatedEntityRelationship } from 'fansunited-sdk-esm';
2
- import { Branding, BrandingColors } from '../interfaces/interfaces';
3
-
1
+ import { BrandingColorsModel, BrandingModel, ConsentEntityType, RelatedEntityRelationship } from "fansunited-sdk-esm";
2
+ import { Branding, BrandingColors } from "../interfaces/interfaces";
4
3
  export declare const stripHtmlTags: (html: string | null) => string;
5
4
  export declare const hexToRgb: (hex: string) => string;
6
5
  export declare const isAndroid: () => boolean;
7
- export declare const getDefaultCountryByCode: (phoneCountryCode: string | null) => import('..').CountryType | null;
8
- export declare const getDefaultCountryByLanguage: (language: string | null) => import('..').CountryType | null;
9
- export declare const getCountryByCode: (code: string) => import('..').CountryType | null;
6
+ export declare const getDefaultCountryByCode: (phoneCountryCode: string | null) => import("..").CountryType | null;
7
+ export declare const getDefaultCountryByLanguage: (language: string | null) => import("..").CountryType | null;
8
+ export declare const getCountryByCode: (code: string) => import("..").CountryType | null;
10
9
  export declare const extractBrandingModelProperties: (branding: BrandingModel | null) => {
11
10
  brandingImage: string | null;
12
11
  brandingColors: BrandingColorsModel | null;
@@ -32,4 +31,5 @@ export declare const mapContentTypeToConsentEntityType: (type: string | undefine
32
31
  */
33
32
  export declare const getBrandingClickUrl: (primaryUrl: string | null | undefined, secondaryUrl: string | null | undefined, target: "image" | "logo") => string | null;
34
33
  export declare const getRelatedInfoPageId: (related: RelatedEntityRelationship[] | undefined | null) => string | null;
34
+ export declare const isWithPrize: (flags: string[]) => boolean;
35
35
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEpE,eAAO,MAAM,aAAa,SAAU,MAAM,GAAG,IAAI,KAAG,MAKnD,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,MAAM,KAAG,MAUtC,CAAC;AAGF,eAAO,MAAM,SAAS,QAAO,OAE5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qBAAsB,MAAM,GAAG,IAAI,oCAItE,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAAc,MAAM,GAAG,IAAI,oCAIlE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,MAAM,oCAE5C,CAAC;AAEF,eAAO,MAAM,8BAA8B,aAC/B,aAAa,GAAG,IAAI;;;;CAoB/B,CAAC;AAEF,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AAM,qBAAqB,QAAS,MAAM,WAMhD,CAAC;AAEF,eAAO,MAAM,iCAAiC,SACtC,MAAM,GAAG,SAAS,GAAG,IAAI,KAC9B,iBAAiB,GAAG,SAsBtB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,eAClB,MAAM,GAAG,IAAI,GAAG,SAAS,gBACvB,MAAM,GAAG,IAAI,GAAG,SAAS,UAC/B,OAAO,GAAG,MAAM,KACvB,MAAM,GAAG,IAUX,CAAC;AAEF,eAAO,MAAM,oBAAoB,YACtB,yBAAyB,EAAE,GAAG,SAAS,GAAG,IAAI,KACtD,MAAM,GAAG,IAQX,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,EAAE,KAAG,OAI7C,CAAC"}
@@ -0,0 +1,129 @@
1
+ import { countries, languageToCountryCode } from "../constants/constants";
2
+ import { isMobile } from "./theme";
3
+ export const stripHtmlTags = (html) => {
4
+ const tmp = document.createElement("div");
5
+ tmp.innerHTML = html || "";
6
+ return tmp.textContent || tmp.innerText || "";
7
+ };
8
+ export const hexToRgb = (hex) => {
9
+ // Remove the hash if present
10
+ hex = hex.replace(/^#/, "");
11
+ // Parse the hex values
12
+ const r = parseInt(hex.substring(0, 2), 16);
13
+ const g = parseInt(hex.substring(2, 4), 16);
14
+ const b = parseInt(hex.substring(4, 6), 16);
15
+ return `${r}, ${g}, ${b}`;
16
+ };
17
+ // Helper function to check if running on Android
18
+ export const isAndroid = () => {
19
+ return /Android/i.test(navigator.userAgent);
20
+ };
21
+ export const getDefaultCountryByCode = (phoneCountryCode) => {
22
+ const code = phoneCountryCode || "44";
23
+ return countries.find((country) => country.phone === code) || null;
24
+ };
25
+ export const getDefaultCountryByLanguage = (language) => {
26
+ const code = language ? languageToCountryCode[language] : "GB";
27
+ return countries.find((country) => country.code === code) || null;
28
+ };
29
+ export const getCountryByCode = (code) => {
30
+ return countries.find((country) => country.code === code) || null;
31
+ };
32
+ export const extractBrandingModelProperties = (branding) => {
33
+ const mobile = isMobile();
34
+ let brandingImage = branding?.images?.backgroundImage || null;
35
+ let brandingLogo = branding?.images?.mainLogo || null;
36
+ let brandingColors = null;
37
+ if (mobile && branding?.images) {
38
+ brandingImage =
39
+ branding.images.mobileBackgroundImage ||
40
+ branding.images.backgroundImage ||
41
+ null;
42
+ brandingLogo = branding.images.mobileLogo || branding.images.mainLogo;
43
+ }
44
+ if (branding?.colors) {
45
+ brandingColors = branding.colors;
46
+ }
47
+ return { brandingImage, brandingColors, brandingLogo };
48
+ };
49
+ export const extractBrandingProperties = (branding) => {
50
+ const mobile = isMobile();
51
+ let brandingImage = branding?.images?.background_image || null;
52
+ let brandingLogo = branding?.images?.main_logo || null;
53
+ let brandingColors = null;
54
+ if (mobile && branding?.images) {
55
+ brandingImage =
56
+ branding.images.mobile_background_image ||
57
+ branding.images.background_image ||
58
+ null;
59
+ brandingLogo = branding.images.mobile_logo || branding.images.main_logo;
60
+ }
61
+ if (branding?.colors) {
62
+ brandingColors = branding.colors;
63
+ }
64
+ return { brandingImage, brandingColors, brandingLogo };
65
+ };
66
+ export const sanitizeBackgroundUrl = (url) => {
67
+ try {
68
+ return `url("${url}")`;
69
+ }
70
+ catch {
71
+ return "none";
72
+ }
73
+ };
74
+ export const mapContentTypeToConsentEntityType = (type) => {
75
+ if (!type)
76
+ return undefined;
77
+ // Backward compatibility: map generic "quiz" to "classic_quiz"
78
+ if (type === "quiz")
79
+ return "classic_quiz";
80
+ // If already valid, pass through
81
+ const valid = [
82
+ "template",
83
+ "classic_quiz",
84
+ "personality_quiz",
85
+ "either_or",
86
+ "match_quiz",
87
+ "top_x",
88
+ "bracket",
89
+ "standing",
90
+ "poll",
91
+ ];
92
+ if (valid.includes(type))
93
+ return type;
94
+ // Fallback: don't set entityType if unknown
95
+ console.warn(`[CollectLead] Unknown content type "${type}" for consents; omitting entityType.`);
96
+ return undefined;
97
+ };
98
+ /**
99
+ * Get the appropriate URL for branding elements based on primaryUrl and secondaryUrl
100
+ * @param primaryUrl - Primary URL from branding.urls.primaryUrl
101
+ * @param secondaryUrl - Secondary URL from branding.urls.secondaryUrl
102
+ * @param target - Target element type: 'image' or 'logo'
103
+ * @returns The appropriate URL or null
104
+ *
105
+ * Logic:
106
+ * - For images: use primaryUrl if available, otherwise null
107
+ * - For logos: use secondaryUrl if available, otherwise primaryUrl if available, otherwise null
108
+ */
109
+ export const getBrandingClickUrl = (primaryUrl, secondaryUrl, target) => {
110
+ const primary = primaryUrl?.trim() || null;
111
+ const secondary = secondaryUrl?.trim() || null;
112
+ if (target === "image") {
113
+ return primary;
114
+ }
115
+ // For logo: secondary takes priority, fallback to primary
116
+ return secondary || primary;
117
+ };
118
+ export const getRelatedInfoPageId = (related) => {
119
+ if (!related?.length)
120
+ return null;
121
+ const match = related.find((r) => r.entityType === "info_page" && r.entityRelationship === "relatedTo");
122
+ return match?.entityId ?? null;
123
+ };
124
+ export const isWithPrize = (flags) => {
125
+ if (!flags)
126
+ return false;
127
+ return flags.some((flag) => flag.toLowerCase() === "prize");
128
+ };
129
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAmB,EAAU,EAAE;IAC3D,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,GAAG,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAE3B,OAAO,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAU,EAAE;IAC9C,6BAA6B;IAC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ACjC,UAAqC,EACrC,YAAuC,EACvC,MAAwB,EACT,EAAE;IACjB,MAAM,OAAO,GAAG,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC;IAC3C,MAAM,SAAS,GAAG,YAAY,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC;IAE/C,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,0DAA0D;IAC1D,OAAO,SAAS,IAAI,OAAO,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAuD,EACxC,EAAE;IACjB,IAAI,CAAC,OAAO,EAAE,MAAM;QAAE,OAAO,IAAI,CAAC;IAElC,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CACxB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,WAAW,IAAI,CAAC,CAAC,kBAAkB,KAAK,WAAW,CAC5E,CAAC;IAEF,OAAO,KAAK,EAAE,QAAQ,IAAI,IAAI,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAe,EAAW,EAAE;IACtD,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IAEzB,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC"}
package/index.d.ts CHANGED
@@ -1,41 +1,42 @@
1
- export * from './constants/constants';
2
- export * from './functions/functions';
3
- export * from './interfaces/interfaces';
4
- export * from './types/types';
5
- export * from './enums/enums';
6
- export { default as Spinner } from './components/Spinner';
7
- export { default as ThemeProvider } from './providers/ThemeProvider';
8
- export { default as AdditionalCTA } from './components/AdditionalCTA';
9
- export { default as Rules } from './components/Rules';
10
- export { default as CollectLeadForm } from './components/Leads/CollectLeadForm';
11
- export { default as StandardSkeleton } from './components/Skeletons/Standard/StandardSkeleton';
12
- export { default as SplitSkeleton } from './components/Skeletons/Split/SplitSkeleton';
13
- export { default as OverlaySkeleton } from './components/Skeletons/Overlay/OverlaySkeleton';
14
- export { default as StandardScoreStateSkeleton } from './components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton';
15
- export { default as StandardContentSkeleton } from './components/Skeletons/Standard/ScoreState/StandardContentSkeleton';
16
- export { default as StandardSignInSkeleton } from './components/Skeletons/Standard/SignIn/StandardSignInSkeleton';
17
- export { default as SplitScoreStateSkeleton } from './components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton';
18
- export { default as SplitSignInSkeleton } from './components/Skeletons/Split/SignIn/SplitSignInSkeleton';
19
- export { default as OverlaySignInSkeleton } from './components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton';
20
- export { default as OverlayScoreStateSkeleton } from './components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton';
21
- export { default as OverlayScoreStateWrapperSkeleton } from './components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton';
22
- export { default as StandardApiErrorSkeleton } from './components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton';
23
- export { default as SplitApiErrorSkeleton } from './components/Skeletons/Split/ApiError/SplitApiErrorSkeleton';
24
- export { default as OverlayApiErrorSkeleton } from './components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton';
25
- export { default as NotFoundSkeleton } from './components/Skeletons/NotFoundSkeleton';
26
- export { default as StandardLeadAfterCollection } from './components/LeadCollection/StandardLeadAfterCollection';
27
- export type { StandardLeadAfterCollectionProps } from './components/LeadCollection/StandardLeadAfterCollection';
28
- export { default as SplitLeadAfterCollection } from './components/LeadCollection/SplitLeadAfterCollection';
29
- export type { SplitLeadAfterCollectionProps } from './components/LeadCollection/SplitLeadAfterCollection';
30
- export { default as OverlayLeadAfterCollection } from './components/LeadCollection/OverlayLeadAfterCollection';
31
- export type { OverlayLeadAfterCollectionProps } from './components/LeadCollection/OverlayLeadAfterCollection';
32
- export { default as InfoPageCollectLeadWrapper } from './components/Leads/InfoPageCollectLeadWrapper';
33
- export type { InfoPageCollectLeadWrapperProps } from './components/Leads/InfoPageCollectLeadWrapper';
34
- export { default as Portal } from './components/Portal/Portal';
35
- export { default as ChanceGameEmbed } from './components/ChanceGameEmbed';
36
- export { default as Notification } from './components/Notification';
37
- export * from './hooks/hooks';
38
- export * from './providers/providers';
39
- export { default as defaultBg } from './assets/default-quiz-bg.png';
40
- export { default as defaultBgVertical } from './assets/default-quiz-bg-vertical.jpg';
1
+ export * from "./constants/constants";
2
+ export * from "./functions/functions";
3
+ export * from "./interfaces/interfaces";
4
+ export * from "./types/types";
5
+ export * from "./enums/enums";
6
+ export { default as Spinner } from "./components/Spinner";
7
+ export { default as ThemeProvider } from "./providers/ThemeProvider";
8
+ export { default as AdditionalCTA } from "./components/AdditionalCTA";
9
+ export { default as Rules } from "./components/Rules";
10
+ export { default as CollectLeadForm } from "./components/Leads/CollectLeadForm";
11
+ export { default as StandardSkeleton } from "./components/Skeletons/Standard/StandardSkeleton";
12
+ export { default as SplitSkeleton } from "./components/Skeletons/Split/SplitSkeleton";
13
+ export { default as OverlaySkeleton } from "./components/Skeletons/Overlay/OverlaySkeleton";
14
+ export { default as StandardScoreStateSkeleton } from "./components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton";
15
+ export { default as StandardContentSkeleton } from "./components/Skeletons/Standard/ScoreState/StandardContentSkeleton";
16
+ export { default as StandardSignInSkeleton } from "./components/Skeletons/Standard/SignIn/StandardSignInSkeleton";
17
+ export { default as SplitScoreStateSkeleton } from "./components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton";
18
+ export { default as SplitSignInSkeleton } from "./components/Skeletons/Split/SignIn/SplitSignInSkeleton";
19
+ export { default as OverlaySignInSkeleton } from "./components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton";
20
+ export { default as OverlayScoreStateSkeleton } from "./components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton";
21
+ export { default as OverlayScoreStateWrapperSkeleton } from "./components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton";
22
+ export { default as StandardApiErrorSkeleton } from "./components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton";
23
+ export { default as SplitApiErrorSkeleton } from "./components/Skeletons/Split/ApiError/SplitApiErrorSkeleton";
24
+ export { default as OverlayApiErrorSkeleton } from "./components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton";
25
+ export { default as NotFoundSkeleton } from "./components/Skeletons/NotFoundSkeleton";
26
+ export { default as StandardLeadAfterCollection } from "./components/LeadCollection/StandardLeadAfterCollection";
27
+ export type { StandardLeadAfterCollectionProps } from "./components/LeadCollection/StandardLeadAfterCollection";
28
+ export { default as SplitLeadAfterCollection } from "./components/LeadCollection/SplitLeadAfterCollection";
29
+ export type { SplitLeadAfterCollectionProps } from "./components/LeadCollection/SplitLeadAfterCollection";
30
+ export { default as OverlayLeadAfterCollection } from "./components/LeadCollection/OverlayLeadAfterCollection";
31
+ export type { OverlayLeadAfterCollectionProps } from "./components/LeadCollection/OverlayLeadAfterCollection";
32
+ export { default as InfoPageCollectLeadWrapper } from "./components/Leads/InfoPageCollectLeadWrapper";
33
+ export type { InfoPageCollectLeadWrapperProps } from "./components/Leads/InfoPageCollectLeadWrapper";
34
+ export { default as Portal } from "./components/Portal/Portal";
35
+ export { default as ChanceGameEmbed } from "./components/ChanceGameEmbed";
36
+ export { default as Notification } from "./components/Notification";
37
+ export { default as PrizeCard } from "./components/PrizeCard/PrizeCard";
38
+ export * from "./hooks/hooks";
39
+ export * from "./providers/providers";
40
+ export { default as defaultBg } from "./assets/default-quiz-bg.png";
41
+ export { default as defaultBgVertical } from "./assets/default-quiz-bg-vertical.jpg";
41
42
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc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