@zenpatient-org/healthspan-marketing-ui 0.2.21 → 0.2.23

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 (28) hide show
  1. package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +6 -6
  2. package/dist/components/Icon/Icon.d.ts +1 -1
  3. package/dist/components/RatingPreview/RatingPreview.cjs.js +1 -1
  4. package/dist/components/RatingPreview/RatingPreview.d.ts +1 -1
  5. package/dist/components/RatingPreview/RatingPreview.es.js +24 -22
  6. package/dist/components/WistiaEmbed/WistiaEmbed.cjs.js +1 -0
  7. package/dist/components/WistiaEmbed/WistiaEmbed.d.ts +5 -0
  8. package/dist/components/WistiaEmbed/WistiaEmbed.es.js +8 -0
  9. package/dist/components/WistiaEmbed/wistiaEmbed.module.css +6 -0
  10. package/dist/components/YouTubeEmbed/YouTubeEmbed.cjs.js +1 -0
  11. package/dist/components/YouTubeEmbed/YouTubeEmbed.d.ts +6 -0
  12. package/dist/components/YouTubeEmbed/YouTubeEmbed.es.js +16 -0
  13. package/dist/components/YouTubeEmbed/youtubeEmbed.module.css +15 -0
  14. package/dist/modules/ContentHighlight/ContentHighlight.cjs.js +1 -1
  15. package/dist/modules/ContentHighlight/ContentHighlight.d.ts +5 -3
  16. package/dist/modules/ContentHighlight/ContentHighlight.es.js +39 -33
  17. package/dist/modules/ContentHighlight/contentHighlight.module.css +15 -2
  18. package/dist/modules/IndividualProductCard/IndividualProductCard.cjs.js +1 -1
  19. package/dist/modules/IndividualProductCard/IndividualProductCard.es.js +36 -36
  20. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.cjs.js +1 -0
  21. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.es.js +30 -0
  22. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js +1 -0
  23. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js +64 -0
  24. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/chunk-FSLSW5KG.cjs.js +21 -0
  25. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/chunk-FSLSW5KG.es.js +59 -0
  26. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.cjs.js +52 -0
  27. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.es.js +10285 -0
  28. package/package.json +6 -5
@@ -0,0 +1,59 @@
1
+ var p = (i) => i === null, f = (i) => i === void 0, u = (i) => p(i) || f(i), e = (i) => !u(i), b = (i) => typeof i == "string", g = (i) => typeof i == "number", v = (i) => e(i) && typeof i == "function", O = (i) => e(i) && typeof i == "boolean", l = (i) => g(i) || b(i) || O(i), m = (i, t, n) => {
2
+ var r, s;
3
+ let a = n;
4
+ return typeof window == "undefined" || (e((r = window.wistiaOptions) == null ? void 0 : r._all) && e(window.wistiaOptions._all[t]) && l(window.wistiaOptions._all[t]) && (a = window.wistiaOptions._all[t]), e((s = window.wistiaOptions) == null ? void 0 : s[i]) && e(window.wistiaOptions[i]) && l(window.wistiaOptions[i][t]) && (a = window.wistiaOptions[i][t])), a;
5
+ }, c = (i) => i.replace(
6
+ /[A-Z]+(?![a-z])|[A-Z]/g,
7
+ (t, n) => (n !== 0 ? "-" : "") + t.toLowerCase()
8
+ ), $ = async (i) => {
9
+ const t = new Image();
10
+ return t.src = i, await t.decode(), t;
11
+ }, d = (i, t) => `https://${t}/embed/medias/${i}/swatch`, h = async (i, t = "fast.wistia.com") => {
12
+ const n = await $(d(i, t)), { naturalHeight: a, naturalWidth: r } = n;
13
+ return r / a;
14
+ }, y = ({
15
+ mediaId: i,
16
+ embedHost: t = "fast.wistia.com",
17
+ aspect: n = 1.7,
18
+ shouldLoadSwatch: a = !0,
19
+ roundedPlayer: r = 0
20
+ }) => {
21
+ const s = {
22
+ background: a ? `center / contain no-repeat url(${d(i, t)})` : void 0,
23
+ borderRadius: `${r}px`,
24
+ display: "block",
25
+ filter: "blur(5px)",
26
+ paddingTop: `${100 / n}%`
27
+ };
28
+ return `
29
+ wistia-player[media-id='${i}']:not(:defined) {
30
+ ${Object.entries(s).map(([o, w]) => `${c(o)}: ${w};`).join(`\r
31
+ `)}
32
+ }
33
+
34
+ wistia-player[media-id='${i}']:state(--initializing) {
35
+ ${Object.entries(s).map(([o, w]) => `${c(o)}: ${w};`).join(`\r
36
+ `)}
37
+ }
38
+ `;
39
+ };
40
+ /*! Bundled license information:
41
+
42
+ @wistia/type-guards/dist/index.mjs:
43
+ (*
44
+ * @license @wistia/type-guards v0.9.1
45
+ *
46
+ * Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
47
+ *
48
+ * This source code is unlicensed, all rights reserved.
49
+ *)
50
+ */
51
+ export {
52
+ c as camelCaseToKebabCase,
53
+ m as getMergedEmbedOption,
54
+ h as getSwatchAspectRatio,
55
+ v as isFunction,
56
+ b as isString,
57
+ l as isValidEmbedOption,
58
+ y as wistiaPlayerStyleBlock
59
+ };