@windstream/react-shared-components 0.1.72 → 0.1.73

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 (207) hide show
  1. package/README.md +635 -635
  2. package/dist/contentful/index.d.ts +2 -2
  3. package/dist/contentful/index.esm.js +2 -4
  4. package/dist/contentful/index.esm.js.map +1 -1
  5. package/dist/contentful/index.js +2 -4
  6. package/dist/contentful/index.js.map +1 -1
  7. package/dist/core.d.ts +2 -2
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.esm.js +5 -7
  10. package/dist/index.esm.js.map +1 -1
  11. package/dist/index.js +5 -7
  12. package/dist/index.js.map +1 -1
  13. package/dist/next/index.esm.js +1 -3
  14. package/dist/next/index.esm.js.map +1 -1
  15. package/dist/next/index.js +1 -3
  16. package/dist/next/index.js.map +1 -1
  17. package/dist/utils/index.d.ts +2 -3
  18. package/dist/utils/index.esm.js +1 -1
  19. package/dist/utils/index.esm.js.map +1 -1
  20. package/dist/utils/index.js +1 -1
  21. package/dist/utils/index.js.map +1 -1
  22. package/package.json +185 -185
  23. package/src/components/accordion/Accordion.stories.tsx +230 -230
  24. package/src/components/accordion/index.tsx +70 -70
  25. package/src/components/accordion/types.ts +12 -12
  26. package/src/components/alert-card/AlertCard.stories.tsx +171 -171
  27. package/src/components/alert-card/index.tsx +41 -41
  28. package/src/components/alert-card/types.ts +13 -13
  29. package/src/components/brand-button/BrandButton.stories.tsx +223 -223
  30. package/src/components/brand-button/helpers.ts +35 -35
  31. package/src/components/brand-button/index.tsx +120 -120
  32. package/src/components/brand-button/types.ts +38 -38
  33. package/src/components/button/Button.stories.tsx +108 -108
  34. package/src/components/button/index.tsx +27 -27
  35. package/src/components/button/types.ts +14 -14
  36. package/src/components/call-button/CallButton.stories.tsx +324 -324
  37. package/src/components/call-button/index.tsx +106 -106
  38. package/src/components/call-button/types.ts +16 -16
  39. package/src/components/checkbox/Checkbox.stories.tsx +247 -247
  40. package/src/components/checkbox/index.tsx +197 -197
  41. package/src/components/checkbox/types.ts +27 -27
  42. package/src/components/checklist/Checklist.stories.tsx +150 -150
  43. package/src/components/checklist/index.tsx +61 -61
  44. package/src/components/checklist/types.ts +17 -17
  45. package/src/components/collapse/Collapse.stories.tsx +255 -255
  46. package/src/components/collapse/index.tsx +46 -46
  47. package/src/components/collapse/types.ts +6 -6
  48. package/src/components/divider/Divider.stories.tsx +205 -205
  49. package/src/components/divider/index.tsx +22 -22
  50. package/src/components/divider/type.ts +3 -3
  51. package/src/components/image/Image.stories.tsx +113 -113
  52. package/src/components/image/index.tsx +25 -25
  53. package/src/components/image/types.ts +40 -40
  54. package/src/components/input/Input.stories.tsx +325 -325
  55. package/src/components/input/index.tsx +177 -177
  56. package/src/components/input/types.ts +37 -37
  57. package/src/components/link/Link.stories.tsx +163 -163
  58. package/src/components/link/index.tsx +116 -116
  59. package/src/components/link/types.ts +25 -25
  60. package/src/components/list/List.stories.tsx +272 -272
  61. package/src/components/list/index.tsx +88 -88
  62. package/src/components/list/list-item/index.tsx +38 -38
  63. package/src/components/list/list-item/types.ts +13 -13
  64. package/src/components/list/types.ts +29 -29
  65. package/src/components/material-icon/MaterialIcon.stories.tsx +322 -322
  66. package/src/components/material-icon/constants.ts +99 -99
  67. package/src/components/material-icon/index.tsx +47 -47
  68. package/src/components/material-icon/types.ts +31 -31
  69. package/src/components/modal/Modal.stories.tsx +171 -171
  70. package/src/components/modal/index.tsx +164 -164
  71. package/src/components/modal/types.ts +24 -24
  72. package/src/components/next-image/index.tsx +74 -74
  73. package/src/components/next-image/types.ts +1 -1
  74. package/src/components/pagination/index.tsx +91 -91
  75. package/src/components/pagination/types.ts +6 -6
  76. package/src/components/radio-button/RadioButton.stories.tsx +307 -307
  77. package/src/components/radio-button/index.tsx +75 -75
  78. package/src/components/radio-button/types.ts +21 -21
  79. package/src/components/see-more/SeeMore.stories.tsx +181 -181
  80. package/src/components/see-more/index.tsx +44 -44
  81. package/src/components/see-more/types.ts +4 -4
  82. package/src/components/select/Select.stories.tsx +411 -411
  83. package/src/components/select/index.tsx +155 -155
  84. package/src/components/select/types.ts +36 -36
  85. package/src/components/select-plan-button/SelectPlanButton.stories.tsx +184 -184
  86. package/src/components/select-plan-button/index.tsx +63 -63
  87. package/src/components/select-plan-button/types.ts +17 -17
  88. package/src/components/skeleton/Skeleton.stories.tsx +179 -179
  89. package/src/components/skeleton/index.tsx +61 -61
  90. package/src/components/skeleton/types.ts +4 -4
  91. package/src/components/spinner/Spinner.stories.tsx +335 -335
  92. package/src/components/spinner/index.tsx +44 -44
  93. package/src/components/spinner/types.ts +5 -5
  94. package/src/components/text/Text.stories.tsx +321 -321
  95. package/src/components/text/index.tsx +25 -25
  96. package/src/components/text/types.ts +45 -45
  97. package/src/components/tooltip/Tooltip.stories.tsx +219 -219
  98. package/src/components/tooltip/index.tsx +74 -74
  99. package/src/components/tooltip/types.ts +7 -7
  100. package/src/components/view-cart-button/ViewCartButton.stories.tsx +252 -252
  101. package/src/components/view-cart-button/index.tsx +42 -42
  102. package/src/components/view-cart-button/types.ts +5 -5
  103. package/src/contentful/blocks/accordion/Accordion.stories.mocks.tsx +128 -128
  104. package/src/contentful/blocks/accordion/Accordion.stories.tsx +98 -98
  105. package/src/contentful/blocks/accordion/index.tsx +112 -112
  106. package/src/contentful/blocks/accordion/types.ts +34 -34
  107. package/src/contentful/blocks/address-input-banner/index.tsx +52 -52
  108. package/src/contentful/blocks/address-input-banner/types.ts +14 -14
  109. package/src/contentful/blocks/anchored-bottom-banner/index.tsx +181 -181
  110. package/src/contentful/blocks/anchored-bottom-banner/types.ts +13 -13
  111. package/src/contentful/blocks/blogs-grid/index.tsx +134 -134
  112. package/src/contentful/blocks/blogs-grid/types.ts +26 -26
  113. package/src/contentful/blocks/blogs-grid-base/index.tsx +119 -119
  114. package/src/contentful/blocks/blogs-grid-base/types.ts +36 -36
  115. package/src/contentful/blocks/breadcrumbs/index.tsx +81 -81
  116. package/src/contentful/blocks/breadcrumbs/types.ts +6 -6
  117. package/src/contentful/blocks/button/Button.stories.tsx +40 -40
  118. package/src/contentful/blocks/button/index.tsx +131 -131
  119. package/src/contentful/blocks/button/types.ts +39 -39
  120. package/src/contentful/blocks/callout/Callout.stories.tsx +23 -23
  121. package/src/contentful/blocks/callout/index.tsx +252 -252
  122. package/src/contentful/blocks/callout/types.ts +68 -68
  123. package/src/contentful/blocks/cards/Cards.stories.tsx +23 -23
  124. package/src/contentful/blocks/cards/blog-card/index.tsx +129 -129
  125. package/src/contentful/blocks/cards/blog-card/types.ts +34 -34
  126. package/src/contentful/blocks/cards/floating-image-card/index.tsx +119 -119
  127. package/src/contentful/blocks/cards/floating-image-card/types.ts +30 -30
  128. package/src/contentful/blocks/cards/full-image-card/index.tsx +130 -130
  129. package/src/contentful/blocks/cards/full-image-card/types.ts +29 -29
  130. package/src/contentful/blocks/cards/index.tsx +13 -13
  131. package/src/contentful/blocks/cards/product-card/index.tsx +251 -251
  132. package/src/contentful/blocks/cards/product-card/types.ts +28 -28
  133. package/src/contentful/blocks/cards/simple-card/index.tsx +325 -325
  134. package/src/contentful/blocks/cards/simple-card/types.ts +71 -71
  135. package/src/contentful/blocks/cards/testimonial-card/index.tsx +90 -90
  136. package/src/contentful/blocks/cards/testimonial-card/types.tsx +12 -12
  137. package/src/contentful/blocks/cards/types.ts +1 -1
  138. package/src/contentful/blocks/carousel/Carousel.stories.tsx +23 -23
  139. package/src/contentful/blocks/carousel/helper.tsx +440 -440
  140. package/src/contentful/blocks/carousel/index.tsx +85 -85
  141. package/src/contentful/blocks/carousel/types.ts +144 -144
  142. package/src/contentful/blocks/cart-retention-banner/index.tsx +105 -105
  143. package/src/contentful/blocks/cart-retention-banner/types.ts +11 -11
  144. package/src/contentful/blocks/comparison-table/index.tsx +29 -29
  145. package/src/contentful/blocks/comparison-table/types.ts +6 -6
  146. package/src/contentful/blocks/cookiebanner/index.tsx +146 -146
  147. package/src/contentful/blocks/cookiebanner/type.ts +7 -7
  148. package/src/contentful/blocks/cta-callout/CtaCallout.stories.tsx +46 -46
  149. package/src/contentful/blocks/cta-callout/index.tsx +71 -71
  150. package/src/contentful/blocks/cta-callout/types.ts +26 -26
  151. package/src/contentful/blocks/dynamic-tabs/index.tsx +204 -204
  152. package/src/contentful/blocks/dynamic-tabs/types.ts +21 -21
  153. package/src/contentful/blocks/email-input-block/index.tsx +116 -116
  154. package/src/contentful/blocks/email-input-block/types.ts +16 -16
  155. package/src/contentful/blocks/find-kinetic/FindKinetic.stories.tsx +23 -23
  156. package/src/contentful/blocks/find-kinetic/index.tsx +130 -130
  157. package/src/contentful/blocks/find-kinetic/types.ts +19 -19
  158. package/src/contentful/blocks/floating-banner/FloatingBanner.stories.tsx +34 -34
  159. package/src/contentful/blocks/floating-banner/index.tsx +97 -97
  160. package/src/contentful/blocks/floating-banner/types.ts +22 -22
  161. package/src/contentful/blocks/footer/Footer.stories.tsx +317 -317
  162. package/src/contentful/blocks/footer/index.tsx +91 -91
  163. package/src/contentful/blocks/footer/types.ts +13 -13
  164. package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +23 -23
  165. package/src/contentful/blocks/image-promo-bar/helper.tsx +28 -28
  166. package/src/contentful/blocks/image-promo-bar/index.tsx +246 -246
  167. package/src/contentful/blocks/image-promo-bar/types.ts +44 -44
  168. package/src/contentful/blocks/image-promo-bar/vimeo-embed.tsx +93 -93
  169. package/src/contentful/blocks/image-promo-bar/youtube-embed.tsx +46 -46
  170. package/src/contentful/blocks/modal/constants.ts +53 -53
  171. package/src/contentful/blocks/modal/index.tsx +107 -107
  172. package/src/contentful/blocks/modal/types.ts +12 -12
  173. package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +124 -124
  174. package/src/contentful/blocks/navigation/index.tsx +462 -462
  175. package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +82 -82
  176. package/src/contentful/blocks/navigation/types.ts +64 -64
  177. package/src/contentful/blocks/primary-hero/PrimaryHero.stories.tsx +23 -23
  178. package/src/contentful/blocks/primary-hero/index.tsx +236 -236
  179. package/src/contentful/blocks/primary-hero/types.ts +37 -37
  180. package/src/contentful/blocks/search-block/index.tsx +90 -90
  181. package/src/contentful/blocks/search-block/types.ts +15 -15
  182. package/src/contentful/blocks/shape-background-wrapper/ShapeBackgroundWrapper.stories.tsx +26 -26
  183. package/src/contentful/blocks/shape-background-wrapper/index.tsx +124 -124
  184. package/src/contentful/blocks/shape-background-wrapper/types.ts +36 -36
  185. package/src/contentful/blocks/text/Text.stories.tsx +23 -23
  186. package/src/contentful/blocks/text/index.tsx +12 -12
  187. package/src/contentful/blocks/text/types.ts +1 -1
  188. package/src/contentful/index.ts +105 -105
  189. package/src/hooks/contentful/use-contentful-rich-text.tsx +309 -309
  190. package/src/hooks/contentful/use-processed-check-list.ts +63 -63
  191. package/src/hooks/use-body-scroll-lock.ts +34 -34
  192. package/src/hooks/use-carousel-swipe.ts +264 -264
  193. package/src/hooks/use-outside-click.ts +17 -17
  194. package/src/index.ts +101 -101
  195. package/src/next/index.ts +5 -5
  196. package/src/setupTests.ts +46 -46
  197. package/src/stories/DocsTemplate.tsx +24 -24
  198. package/src/styles/globals.css +343 -343
  199. package/src/types/global.d.ts +9 -9
  200. package/src/types/micro-components.ts +99 -99
  201. package/src/types/utm.ts +49 -49
  202. package/src/utils/contentful/to-document.ts +24 -24
  203. package/src/utils/cookie.ts +84 -84
  204. package/src/utils/cx.ts +49 -49
  205. package/src/utils/index.ts +41 -41
  206. package/src/utils/speed-card-bg.ts +24 -24
  207. package/src/utils/utm.ts +221 -221
@@ -1,6 +1,5 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  export { ClassValue, clsx } from 'clsx';
3
- import Cookies from 'js-cookie';
4
3
  import { Document } from '@contentful/rich-text-types';
5
4
  import * as react from 'react';
6
5
  import { ReactNode } from 'react';
@@ -140,11 +139,11 @@ declare const toDocument: (v: unknown | null | undefined) => Document | null;
140
139
  */
141
140
  declare function renderContentfulRichText(doc: Document | null | undefined, target?: boolean, className?: string, linkClassName?: string, options?: Options): ReactNode | null;
142
141
  declare function useContentfulRichText(doc: Document | null | undefined, options?: Options): ReactNode | null;
143
- declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any): ReactNode;
142
+ declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any): any;
144
143
 
145
144
  declare const label1BoldOptions: {
146
145
  renderMark: {
147
- bold: (text: ReactNode) => react.DetailedReactHTMLElement<{
146
+ [x: number]: (text: ReactNode) => react.DetailedReactHTMLElement<{
148
147
  className: string;
149
148
  }, HTMLElement>;
150
149
  };
@@ -1,2 +1,2 @@
1
- import{clsx as e}from"clsx";export{clsx}from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";import{Base64 as r}from"js-base64";import n from"js-cookie";import{jsxs as o,jsx as i,Fragment as a}from"react/jsx-runtime";import u,{useMemo as l,createElement as c}from"react";import{Checklist as s}from"@windstream/react-shared-components";import{Link as d}from"@windstream/react-shared-components";import{MaterialIcon as f}from"@windstream/react-shared-components";import{Text as E}from"@windstream/react-shared-components";const p=t({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),y=(...t)=>p(e(...t)),m=(e="#24A76A")=>`<svg xmlns="http://www.w3.org/2000/svg" width="684" height="107" viewBox="0 0 684 107" fill="none">\n <g clip-path="url(#clip0_12352_9042)">\n <path d="M154.09 -70.5605C173.769 -7.58032 204.79 24.8889 328.202 55.2823C444.619 83.9133 629.479 141.332 667.653 80.7015C691.679 45.2165 678.322 -5.62201 670.537 -46.3554C664.452 -73.1846 658.327 -97.1939 652.913 -123.475C651.135 -132.091 638.766 -131.974 637.067 -123.318C628.136 -77.6888 612.526 -44.9062 577.593 -22.4637C517.962 20.1889 377.954 -6.48361 303.148 -38.287C223.245 -70.7171 200.918 -132.366 195.425 -199.341C193.37 -235.257 198.467 -269.841 208.07 -299.569C210.915 -308.303 199.218 -314.178 193.844 -306.697C151.324 -247.751 137.69 -140.395 154.129 -70.5213" fill="${e}" />\n <path d="M167.605 -417.382C104.062 -397.877 71.302 -367.131 40.6368 -244.813C11.7499 -129.428 -46.182 53.7941 14.9903 91.6292C50.7927 115.443 102.086 102.204 143.183 94.4883C170.253 88.4567 194.476 82.3858 220.992 77.02C229.686 75.2574 229.568 62.9983 220.834 61.3141C174.797 52.4624 141.721 36.9915 119.078 2.36813C76.0441 -56.7345 102.955 -195.502 135.043 -269.645C167.763 -348.84 229.963 -370.969 297.537 -376.414C333.774 -378.45 368.667 -373.398 398.661 -363.88C407.473 -361.06 413.401 -372.654 405.853 -377.98C346.38 -420.124 238.064 -433.636 167.565 -417.343" fill="${e}" />\n </g>\n <defs>\n <clipPath id="clip0_12352_9042">\n <rect width="684" height="107" fill="white" />\n </clipPath>\n </defs>\n </svg>`,h="utm_parameters",v=".gokinetic.com";function b(){if("undefined"==typeof window)return null;const e=n.get(h);if(!e)return null;try{const t=r.decode(e);return JSON.parse(t)}catch(e){return null}}function L(e,t=v){if("undefined"==typeof window)return;const o=JSON.stringify(e),i=r.encode(o);n.set(h,i,{domain:t,path:"/",sameSite:"Lax"})}function A(e=v){n.remove(h,{domain:e,path:"/"})}function _(e){if("undefined"==typeof window)return"";const t=n.get(e);return t?r.decode(t):null}const O=e=>{try{return JSON.parse(_(e)||"")}catch(e){return null}},S=(e,t,o)=>{if("undefined"==typeof window)return;const i=JSON.stringify(t),a=r.encode(i);n.set(e,a,o)},T=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];function g(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search),t={};let r=!1;for(const n of T){const o=e.get(n);o&&(t[n]=o,r=!0)}return r?t:null}function D(e,t){if(!t)return e||{};if(!e)return t;if(["utm_campaign","utm_medium","utm_source","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"].every(r=>(e[r]||"")===(t[r]||"")))return{...t,utm_content:e.utm_content||t.utm_content,utm_term:e.utm_term||t.utm_term};const r=!!t.utm_content,n=!!t.utm_term;return{...t,...!r&&e.utm_content&&{utm_content:e.utm_content},...!n&&e.utm_term&&{utm_term:e.utm_term}}}function I(){if("undefined"==typeof document)return null;const e=document.referrer;if(!e)return{utm_medium:"direct",utm_source:"direct"};let t;try{t=new URL(e).hostname.toLowerCase()}catch(e){return{utm_medium:"direct",utm_source:"direct"}}return t.includes("windstream.com")||t.includes("gokinetic.com")?null:t.includes("google.")?{utm_medium:"organic",utm_source:"google"}:t.includes("bing.")?{utm_medium:"organic",utm_source:"bing"}:{utm_medium:"referral",utm_source:t}}function N(e){if(!e)return null;const t={};return e.utm_campaign&&(t.name=e.utm_campaign),e.utm_source&&(t.source=e.utm_source),e.utm_medium&&(t.medium=e.utm_medium),e.utm_term&&(t.term=e.utm_term),e.utm_content&&(t.content=e.utm_content),e.utm_campaign_id&&(t.campaign_id=e.utm_campaign_id),e.utm_adgroup_id&&(t.adgroup_id=e.utm_adgroup_id),e.gclid&&(t.gclid=e.gclid),e.fbclid&&(t.fbclid=e.fbclid),e.msclkid&&(t.msclkid=e.msclkid),Object.keys(t).length>0?t:null}function C(e,t){if(!t)return e;const r=new URLSearchParams(t),n=new Set(T),o=new Set([...n,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,r]=e.split("?");i=t,a=new URLSearchParams(r||"")}}catch(t){return e}const u=new URLSearchParams(a);r.forEach((e,t)=>{o.has(t.toLowerCase())||u.has(t)||u.set(t,e)});const l=u.toString();return l?`${i}?${l}`:i}const R=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,B=e=>{if(!e)return null;if(R(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return R(t)?t:null}return null};function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w,j={},K={},H={};function M(){return w||(w=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(H)),H}var k,G={};function U(){return k||(k=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(G)),G}var x,Y={};function W(){return x||(x=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(Y)),Y}var $,z={};function Q(){return $||($=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get CONTAINERS(){return f},get HEADINGS(){return E},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return s},get TEXT_CONTAINERS(){return p},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return m},get V1_NODE_TYPES(){return y},get VOID_BLOCKS(){return d}});var t=M(),r=U(),n=W();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,u,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],s=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],f=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,c),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),E=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],p=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(u=E)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,r.INLINES.HYPERLINK,r.INLINES.ENTRY_HYPERLINK,r.INLINES.ASSET_HYPERLINK,r.INLINES.EMBEDDED_ENTRY,"text"],m=[n.MARKS.BOLD,n.MARKS.CODE,n.MARKS.ITALIC,n.MARKS.UNDERLINE]}(z)),z}var V,q={};var J,F={};var X,Z={};var ee,te={};function re(){return ee||(ee=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get isBlock(){return u},get isEmptyParagraph(){return c},get isInline(){return a},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return f}});var t=M(),r=U();function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function i(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){if(t===e[i.value])return!0}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return!1}function a(e){return i(r.INLINES,e.nodeType)}function u(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function c(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var r=e.content[0];return"text"===r.nodeType&&""===r.value}function s(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function f(e){return!s(e)||e.content.length<d?e:c(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(te)),te}var ne,oe,ie={},ae={};function ue(){return oe?ne:(oe=1,ne=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var le,ce,se={};function de(){return le||(le=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return n},get unknownPropertyError(){return u}});var n=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}},o=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},i=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},a=function(e){var t=e.expected,n=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:r(t).sort(),path:o.toArray(),value:n}},u=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},l=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}}(se)),se}function fe(){return ce||(ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(ue()),r=de();function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){function e(n,o){var a=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=n,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=l._errors).push.apply(n,u(t))},this.exists=function(e){return e in a.obj||(a.catch((0,r.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var n=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(n))return!0;var o,i=e?a.path.of(e):a.path,u=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,r.typeMismatchError)({typeName:"Object",property:u,path:i,value:n})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,r.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var n=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(a.catch((0,r.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:n})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,r.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=a.obj[e];return!("string"!=typeof n||!t.includes(n))||(a.catch((0,r.enumError)({expected:t,value:n,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,r.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var n=a.obj[e];return n.length>=t||(a.catch((0,r.minSizeError)({min:t,value:n,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,r.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var r=a.obj[e],n=!1;r.forEach(function(r,o){if(!n){var i=t(r,a.path.of(e).of(o));i.length>0&&(n=!0),a.catch.apply(a,u(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}()}(ae)),ae}var Ee,pe={};function ye(){return Ee||(Ee=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get EntityLinkAssertion(){return y},get HyperLinkAssertion(){return m},get NodeAssertion(){return p},get VOID_CONTENT(){return E},get assert(){return h},get assertLink(){return v}});var t=fe();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t=l(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return n(e)}(e,f()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function d(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var E=[],p=function(){function e(t,r){i(this,e),u(this,"contentRule",void 0),u(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return a(e,[{key:"assert",value:function(e,r){var n=new t.ObjectAssertion(e,r);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,r),i=o.nodeTypes,a=o.min,u=void 0===a?0:a;if(0===i.length&&u>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(u," with no nodeTypes"));if(n.minLength("content",u),0===i.length?n.empty("content"):n.each("content",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.enum("nodeType",i),n.errors):n.errors}),n.object("data")){var l,c,s,f=null!==(s=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,r.of("data")))&&void 0!==s?s:[];(l=n).catch.apply(l,d(f))}return n.errors}}]),e}(),y=function(e){function r(e,a){var l;return i(this,r),l=o(this,r,[a,function(e,t){return n(l).assertLink(e,t)}]),u(l,"linkType",void 0),u(l,"type",void 0),u(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,r){var n=new t.ObjectAssertion(e,r);if(n.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,r.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,d(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return c(r,e),r}(p),m=function(e){function r(){var e;return i(this,r),e=o(this,r,[["text"],function(t,r){return n(e).assertLink(t,r)}]),u(e,"assertLink",function(e,r){var n=new t.ObjectAssertion(e,r);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return c(r,e),r}(p),h=function(e,t){return new p(e,t)},v=function(e,t){return new y(e,t)}}(pe)),pe}var me,he={};function ve(){return me||(me=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"path",void 0),r(this,"of",void 0),r(this,"isRoot",void 0),r(this,"last",void 0),r(this,"toArray",void 0),this.path=o,this.of=function(r){return new e(n(t.path).concat([r]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(he)),he}var be,Le,Ae,_e,Oe={};function Se(){return Le||(Le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=M(),r=U(),n=Q(),o=fe(),i=ye(),a=ve(),u=(be||(be=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return r}});var t=fe();function r(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.noAdditionalProperties(["nodeType","data","value","marks"]),n.object("data"),n.each("marks",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.string("type"),n.errors):n.errors}),n.string("value"),n.errors):n.errors}}(Oe)),Oe);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d,f=(0,i.assert)(s(Object.values(r.INLINES)).concat(["text"]).sort()),E=(0,i.assert)([t.BLOCKS.LIST_ITEM]),p=(0,i.assertLink)("Entry",i.VOID_CONTENT),y=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var r=new o.ObjectAssertion(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),m=(c(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(n.TOP_LEVEL_BLOCKS)),c(d,t.BLOCKS.PARAGRAPH,f),c(d,t.BLOCKS.HEADING_1,f),c(d,t.BLOCKS.HEADING_2,f),c(d,t.BLOCKS.HEADING_3,f),c(d,t.BLOCKS.HEADING_4,f),c(d,t.BLOCKS.HEADING_5,f),c(d,t.BLOCKS.HEADING_6,f),c(d,t.BLOCKS.QUOTE,(0,i.assert)(n.CONTAINERS[t.BLOCKS.QUOTE])),c(d,t.BLOCKS.EMBEDDED_ENTRY,p),c(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),c(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),c(d,t.BLOCKS.OL_LIST,E),c(d,t.BLOCKS.UL_LIST,E),c(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(s(n.LIST_ITEM_BLOCKS).sort())),c(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),c(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),c(d,t.BLOCKS.TABLE_CELL,y),c(d,t.BLOCKS.TABLE_HEADER_CELL,y),c(d,r.INLINES.HYPERLINK,new i.HyperLinkAssertion),c(d,r.INLINES.EMBEDDED_ENTRY,p),c(d,r.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,r.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),c(d,r.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),c(d,r.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function h(e,t){if("text"===e.nodeType)return(0,u.assertText)(e,t);var r=m[e.nodeType].assert(e,t);if(r.length>0)return r;var n=new o.ObjectAssertion(e,t);return n.each("content",function(e,t){return h(e,t)}),n.errors}var v=function(e){var r=new a.Path,n=new o.ObjectAssertion(e,r);return n.object()&&n.enum("nodeType",[t.BLOCKS.DOCUMENT]),n.errors.length>0?n.errors:h(e,r)}}(ie)),ie}function Te(){return Ae||(Ae=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return r.INLINES},get MARKS(){return n.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=M(),r=U(),n=W();u(Q(),e),u((V||(V=1,Object.defineProperty(q,"__esModule",{value:!0})),q),e),u((J||(J=1,Object.defineProperty(F,"__esModule",{value:!0})),F),e);var o=(X||(X=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return r}});var t=M(),r={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(Z)),Z),i=c(re()),a=Se();function u(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}}(K)),K}var ge=function(){if(_e)return j;_e=1;var e=u,t=Te();function r(t,r){return t.map((t,o)=>{return i=n(t,r),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function n(n,o){const{renderNode:i,renderMark:a,renderText:u,preserveWhitespace:l}=o;if(t.helpers.isText(n)){let t=u?u(n.value):n.value;if(l&&!u){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const r=t.split("\n"),n=[];r.forEach((t,o)=>{n.push(t),o!==r.length-1&&n.push(e.createElement("br",null))}),t=n}return n.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=r(n.content,o);return n.nodeType&&i[n.nodeType]?i[n.nodeType](n,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,r)=>e.createElement("p",null,r),[t.BLOCKS.HEADING_1]:(t,r)=>e.createElement("h1",null,r),[t.BLOCKS.HEADING_2]:(t,r)=>e.createElement("h2",null,r),[t.BLOCKS.HEADING_3]:(t,r)=>e.createElement("h3",null,r),[t.BLOCKS.HEADING_4]:(t,r)=>e.createElement("h4",null,r),[t.BLOCKS.HEADING_5]:(t,r)=>e.createElement("h5",null,r),[t.BLOCKS.HEADING_6]:(t,r)=>e.createElement("h6",null,r),[t.BLOCKS.EMBEDDED_ENTRY]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.UL_LIST]:(t,r)=>e.createElement("ul",null,r),[t.BLOCKS.OL_LIST]:(t,r)=>e.createElement("ol",null,r),[t.BLOCKS.LIST_ITEM]:(t,r)=>e.createElement("li",null,r),[t.BLOCKS.QUOTE]:(t,r)=>e.createElement("blockquote",null,r),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,r)=>e.createElement("table",null,e.createElement("tbody",null,r)),[t.BLOCKS.TABLE_ROW]:(t,r)=>e.createElement("tr",null,r),[t.BLOCKS.TABLE_HEADER_CELL]:(t,r)=>e.createElement("th",null,r),[t.BLOCKS.TABLE_CELL]:(t,r)=>e.createElement("td",null,r),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>l(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,r)=>l(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,r)=>e.createElement("a",{href:t.data.uri},r)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,r){return e.createElement("span",{key:r.data.target.sys.id},"type: ",r.nodeType," id: ",r.data.target.sys.id)}function l(t,r){return e.createElement("span",{key:r.data.target.sys.urn},"type: ",r.nodeType," urn: ",r.data.target.sys.urn)}return j.documentToReactComponents=function(e,r={}){if(!e)return null;let a=e;return r.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),n(a,{renderNode:{...o,...r.renderNode},renderMark:{...i,...r.renderMark},renderText:r.renderText,preserveWhitespace:r.preserveWhitespace})},j}(),De=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),Ie=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),Ne=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Be,Pe=[De.PARAGRAPH,De.HEADING_1,De.HEADING_2,De.HEADING_3,De.HEADING_4,De.HEADING_5,De.HEADING_6,De.OL_LIST,De.UL_LIST,De.HR,De.QUOTE,De.EMBEDDED_ENTRY,De.EMBEDDED_ASSET,De.EMBEDDED_RESOURCE,De.TABLE],we=[De.PARAGRAPH,De.HEADING_1,De.HEADING_2,De.HEADING_3,De.HEADING_4,De.HEADING_5,De.HEADING_6,De.OL_LIST,De.UL_LIST,De.HR,De.QUOTE,De.EMBEDDED_ENTRY,De.EMBEDDED_ASSET,De.EMBEDDED_RESOURCE];De.TABLE,De.TABLE_ROW,De.TABLE_CELL,De.TABLE_HEADER_CELL,De.HR,De.EMBEDDED_ENTRY,De.EMBEDDED_ASSET,De.EMBEDDED_RESOURCE;var je,Ke=(Re(Be={},De.OL_LIST,[De.LIST_ITEM]),Re(Be,De.UL_LIST,[De.LIST_ITEM]),Re(Be,De.LIST_ITEM,we),Re(Be,De.QUOTE,[De.PARAGRAPH]),Re(Be,De.TABLE,[De.TABLE_ROW]),Re(Be,De.TABLE_ROW,[De.TABLE_CELL,De.TABLE_HEADER_CELL]),Re(Be,De.TABLE_CELL,[De.PARAGRAPH,De.UL_LIST,De.OL_LIST]),Re(Be,De.TABLE_HEADER_CELL,[De.PARAGRAPH]),Be),He=[De.HEADING_1,De.HEADING_2,De.HEADING_3,De.HEADING_4,De.HEADING_5,De.HEADING_6];[De.PARAGRAPH].concat(function(e){if(Array.isArray(e))return Ce(e)}(je=He)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(je)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ce(e,t):void 0}}(je)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),De.DOCUMENT,De.PARAGRAPH,De.HEADING_1,De.HEADING_2,De.HEADING_3,De.HEADING_4,De.HEADING_5,De.HEADING_6,De.OL_LIST,De.UL_LIST,De.LIST_ITEM,De.HR,De.QUOTE,De.EMBEDDED_ENTRY,De.EMBEDDED_ASSET,Ie.HYPERLINK,Ie.ENTRY_HYPERLINK,Ie.ASSET_HYPERLINK,Ie.EMBEDDED_ENTRY,De.DOCUMENT,De.PARAGRAPH;var Me=P(ue());function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ge(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ke(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ue=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}};function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ye(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $e(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ze=function(){function e(t,r){var n=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),We(this,"obj",void 0),We(this,"path",void 0),We(this,"_errors",void 0),We(this,"catch",void 0),We(this,"exists",void 0),We(this,"object",void 0),We(this,"string",void 0),We(this,"number",void 0),We(this,"array",void 0),We(this,"enum",void 0),We(this,"empty",void 0),We(this,"minLength",void 0),We(this,"noAdditionalProperties",void 0),We(this,"each",void 0),this.obj=t,this.path=r,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=o._errors).push.apply(n,$e(t))},this.exists=function(e){return e in n.obj||(n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(Me(t))return!0;var r,o=e?n.path.of(e):n.path,i=null!==(r=null!=e?e:n.path.last())&&void 0!==r?r:"value";return n.catch(Ue({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&("string"==typeof t||(n.catch(Ue({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!(!t||e in n.obj)||!!n.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(n.catch(Ue({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&(!!Array.isArray(t)||(n.catch(Ue({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!("string"!=typeof r||!t.includes(r))||(n.catch(function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:Ge(t).sort(),path:n.toArray(),value:r}}({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}}({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}}({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}}({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],o=!1;r.forEach(function(r,i){if(!o){var a=t(r,n.path.of(e).of(i));a.length>0&&(o=!0),n.catch.apply(n,$e(a))}})}}}return Ye(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}();function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(e,t,r){return t=Ze(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return Ve(e)}(e,nt()?Reflect.construct(t,r||[],Ze(e).constructor):t.apply(e,r))}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}function et(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tt(e,t)}function tt(e,t){return tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tt(e,t)}function rt(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nt=function(){return!!e})()}var ot=[],it=function(){function e(t,r){Je(this,e),Xe(this,"contentRule",void 0),Xe(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return Fe(e,[{key:"assert",value:function(e,t){var r=new ze(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=n.nodeTypes,i=n.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===o.length?r.empty("content"):r.each("content",function(e,t){var r=new ze(e,t);return r.object()?(r.enum("nodeType",o),r.errors):r.errors}),r.object("data")){var u,l,c,s=null!==(c=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==c?c:[];(u=r).catch.apply(u,rt(s))}return r.errors}}]),e}(),at=function(e){function t(e,r){var n;return Je(this,t),n=qe(this,t,[r,function(e,t){return Ve(n).assertLink(e,t)}]),Xe(n,"linkType",void 0),Xe(n,"type",void 0),Xe(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new ze(e,t);if(r.object("target")){var o,i=new ze(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,rt(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return et(t,e),t}(it),ut=function(e){function t(){var e;return Je(this,t),e=qe(this,t,[["text"],function(t,r){return Ve(e).assertLink(t,r)}]),Xe(e,"assertLink",function(e,t){var r=new ze(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return et(t,e),t}(it),lt=function(e,t){return new it(e,t)},ct=function(e,t){return new at(e,t)};function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e){return function(e){if(Array.isArray(e))return st(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Et,pt=lt(ft(Object.values(Ie)).concat(["text"]).sort()),yt=lt([De.LIST_ITEM]),mt=ct("Entry",ot),ht=lt(function(){return{nodeTypes:[De.PARAGRAPH],min:1}},function(e,t){var r=new ze(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors});dt(Et={},De.DOCUMENT,lt(Pe)),dt(Et,De.PARAGRAPH,pt),dt(Et,De.HEADING_1,pt),dt(Et,De.HEADING_2,pt),dt(Et,De.HEADING_3,pt),dt(Et,De.HEADING_4,pt),dt(Et,De.HEADING_5,pt),dt(Et,De.HEADING_6,pt),dt(Et,De.QUOTE,lt(Ke[De.QUOTE])),dt(Et,De.EMBEDDED_ENTRY,mt),dt(Et,De.EMBEDDED_ASSET,ct("Asset",ot)),dt(Et,De.EMBEDDED_RESOURCE,ct("Contentful:Entry",ot)),dt(Et,De.HR,lt(ot)),dt(Et,De.OL_LIST,yt),dt(Et,De.UL_LIST,yt),dt(Et,De.LIST_ITEM,lt(ft(we).sort())),dt(Et,De.TABLE,lt(function(){return{nodeTypes:[De.TABLE_ROW],min:1}})),dt(Et,De.TABLE_ROW,lt(function(){return{nodeTypes:[De.TABLE_CELL,De.TABLE_HEADER_CELL],min:1}})),dt(Et,De.TABLE_CELL,ht),dt(Et,De.TABLE_HEADER_CELL,ht),dt(Et,Ie.HYPERLINK,new ut),dt(Et,Ie.EMBEDDED_ENTRY,mt),dt(Et,Ie.EMBEDDED_RESOURCE,ct("Contentful:Entry",ot)),dt(Et,Ie.ENTRY_HYPERLINK,ct("Entry",["text"])),dt(Et,Ie.ASSET_HYPERLINK,ct("Asset",["text"])),dt(Et,Ie.RESOURCE_HYPERLINK,ct("Contentful:Entry",["text"]));const vt={renderMark:{[Ne.BOLD]:e=>i("strong",{className:"label3",children:e}),[Ne.ITALIC]:e=>i("em",{children:e}),[Ne.UNDERLINE]:e=>i("u",{children:e}),[Ne.CODE]:e=>i("code",{children:e})},renderNode:{[De.PARAGRAPH]:(e,t)=>i("div",{className:"body3 mb-4",children:t}),[De.HEADING_1]:(e,t)=>i(E,{as:"h1",className:"heading2 md:heading1",children:t}),[De.HEADING_2]:(e,t)=>i(E,{as:"h2",className:"heading6 md:heading5",children:t}),[De.HEADING_3]:(e,t)=>i(E,{as:"h3",className:"heading6 md:heading5",children:t}),[De.HEADING_4]:(e,t)=>i(E,{as:"h3",className:"headingClass",children:t}),[De.HEADING_5]:(e,t)=>i(E,{as:"h3",className:"heading6 md:heading5",children:t}),[De.HEADING_6]:(e,t)=>i(E,{as:"h3",className:"heading6",children:t}),[De.QUOTE]:(e,t)=>i("blockquote",{children:t}),[De.UL_LIST]:(e,t)=>i("ul",{children:t}),[De.OL_LIST]:(e,t)=>i("ol",{children:t}),[De.LIST_ITEM]:(e,t)=>i("li",{children:t}),[Ie.HYPERLINK]:(e,t)=>{var r;const n=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.uri,o=/^https?:\/\//.test(n);return i("a",{href:n,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,children:t})},[De.EMBEDDED_ASSET]:e=>{var t,r;const n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target,o=null==n?void 0:n.fields,a=(null==n?void 0:n.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),u=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!a)return null;const l=a.startsWith("//")?`https:${a}`:a;return i("img",{src:l,alt:u,style:{maxWidth:"100%"}})},[De.EMBEDDED_ENTRY]:e=>{var t,r,n,a;const u=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target;return"callout"===(null===(a=null===(n=null===(r=null==u?void 0:u.sys)||void 0===r?void 0:r.contentType)||void 0===n?void 0:n.sys)||void 0===a?void 0:a.id)?o("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[i("strong",{children:u.fields.title}),i("div",{children:u.fields.body})]}):null},[Ie.EMBEDDED_ENTRY]:e=>{var t,r,n,a,u,l;const c=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target;return"componentCheckList"===(null===(a=null===(n=null===(r=null==c?void 0:c.sys)||void 0===r?void 0:r.contentType)||void 0===n?void 0:n.sys)||void 0===a?void 0:a.id)?o("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",c.fields.title]}):i("span",{children:null!==(l=null===(u=null==c?void 0:c.fields)||void 0===u?void 0:u.title)&&void 0!==l?l:""})}}};function bt(e,t,r="body1",n="body1 font-bold",o){if(!e||!Array.isArray(e.content))return null;const a={...vt,...o,renderNode:{...vt.renderNode,...null==o?void 0:o.renderNode,[De.PARAGRAPH]:(e,t)=>i("div",{className:r,children:t}),[Ie.HYPERLINK]:(e,r)=>{var o;const a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.uri,u=/^https?:\/\//.test(a),l=null!=t?t:u;return i(d,{href:a,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,variant:"default",className:n,children:r})}}};return ge.documentToReactComponents(e,a)}function Lt(e,t){return l(()=>{if(!e||!Array.isArray(e.content))return null;const r={...vt,renderMark:{...vt.renderMark,...null==t?void 0:t.renderMark},renderNode:{...vt.renderNode,...null==t?void 0:t.renderNode}};return ge.documentToReactComponents(e,r)},[e,t])}function At(e,t){if(!e||!Array.isArray(e.content))return null;const r={...vt,renderMark:{...vt.renderMark,[Ne.BOLD]:e=>i("strong",{className:"label4 md:label2",children:e})},renderNode:{...vt.renderNode,[De.PARAGRAPH]:(e,t)=>i(a,{children:t}),[De.TABLE]:(e,t)=>{var r,n;return i("div",{className:"comparison-table-wrapper w-full overflow-x-auto border-none md:overflow-hidden",children:i("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(n=null===(r=e.content[0])||void 0===r?void 0:r.content)||void 0===n?void 0:n.length)>2?"min-w-[100.1%]":"min-w-full"),children:i("tbody",{children:t})})})},[De.TABLE_ROW]:(e,t)=>i("tr",{className:"border-b border-gray-200 last:border-0",children:t}),[De.TABLE_HEADER_CELL]:(e,t)=>{var r;const n=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2;return i("th",{className:`label4 break-words py-4 text-center md:label2 ${n?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:t})},[De.TABLE_CELL]:(e,t)=>{var r,n,u,l;const c=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2,s=null===(l=null===(u=null===(n=e.content[0])||void 0===n?void 0:n.content[0])||void 0===u?void 0:u.value)||void 0===l?void 0:l.toLowerCase().trim();return i("td",{className:`rt-table-cell footnote break-words bg-white py-2 text-center align-top leading-5 text-text md:body2 first:text-left md:leading-7 ${c?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:o(a,{children:[" ","yes"===s?i(f,{name:"check_circle",color:"#24A76A",fill:1}):"no"===s?i(f,{name:"cancel",color:"#CECECE",fill:1}):t]})})},[Ie.EMBEDDED_ENTRY]:e=>{var r,n,o,a;const u=e.data.target.sys.id,l=null===(n=null===(r=null==t?void 0:t.entries)||void 0===r?void 0:r.inline)||void 0===n?void 0:n.find(e=>e.sys.id===u);if(!l)return null;if("ComponentCheckList"===l.__typename){const e=(null===(a=null===(o=l.list)||void 0===o?void 0:o.items)||void 0===a?void 0:a.map(e=>{var t;return bt(B(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"")}))||[];return i(s,{items:e,listIconName:"disc",listItemClassName:"items-baseline footnote md:body2 leading-5 md:leading-7 text-text"})}return i("span",{children:l.title||""})}}};return ge.documentToReactComponents(e,r)}const _t={renderMark:{[Ne.BOLD]:e=>c("span",{className:"label1"},e)}};function Ot(e,t,r,n){return l(()=>{var o,i;const a=null!==(i=null===(o=null==e?void 0:e.list)||void 0===o?void 0:o.items)&&void 0!==i?i:[];return t?a.map(e=>{var t,o;return null!==(o=bt(B(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:""}):a.map(e=>{var t,o,i,a,u;return{title:null!==(o=bt(B(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:"",iconUrl:null!==(a=null===(i=null==e?void 0:e.icon)||void 0===i?void 0:i.url)&&void 0!==a?a:void 0,anchorId:null!==(u=null==e?void 0:e.anchorId)&&void 0!==u?u:void 0}})},[e,t,r,n])}export{m as SpeedCardBg,T as UTM_PARAM_NAMES,C as buildPreservedQueryHref,D as combineExistingAndNewUTMs,y as cx,N as getCampaignProperties,_ as getCookie,I as getOrganicTrafficUtmParameters,O as getParsedCookie,b as getUTMs,g as getUtmParametersFromURL,_t as label1BoldOptions,A as removeUTMs,bt as renderContentfulRichText,At as renderContentfulRichTextTable,S as setCookie,L as setUTMs,B as toDocument,Lt as useContentfulRichText,Ot as useProcessedChecklist};
1
+ import{clsx as e}from"clsx";export{clsx}from"clsx";import{extendTailwindMerge as n}from"tailwind-merge";import{Base64 as t}from"js-base64";import r from"js-cookie";import{jsx as i,jsxs as l,Fragment as o}from"react/jsx-runtime";import{useMemo as d,createElement as a}from"react";import{documentToReactComponents as u}from"@contentful/rich-text-react-renderer";import{INLINES as c,BLOCKS as s,MARKS as m}from"@contentful/rich-text-types";import{Checklist as f}from"@windstream/react-shared-components";import{Link as v}from"@windstream/react-shared-components";import{MaterialIcon as h}from"@windstream/react-shared-components";import{Text as p}from"@windstream/react-shared-components";const g=n({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),_=(...n)=>g(e(...n)),b=(e="#24A76A")=>`<svg xmlns="http://www.w3.org/2000/svg" width="684" height="107" viewBox="0 0 684 107" fill="none">\n <g clip-path="url(#clip0_12352_9042)">\n <path d="M154.09 -70.5605C173.769 -7.58032 204.79 24.8889 328.202 55.2823C444.619 83.9133 629.479 141.332 667.653 80.7015C691.679 45.2165 678.322 -5.62201 670.537 -46.3554C664.452 -73.1846 658.327 -97.1939 652.913 -123.475C651.135 -132.091 638.766 -131.974 637.067 -123.318C628.136 -77.6888 612.526 -44.9062 577.593 -22.4637C517.962 20.1889 377.954 -6.48361 303.148 -38.287C223.245 -70.7171 200.918 -132.366 195.425 -199.341C193.37 -235.257 198.467 -269.841 208.07 -299.569C210.915 -308.303 199.218 -314.178 193.844 -306.697C151.324 -247.751 137.69 -140.395 154.129 -70.5213" fill="${e}" />\n <path d="M167.605 -417.382C104.062 -397.877 71.302 -367.131 40.6368 -244.813C11.7499 -129.428 -46.182 53.7941 14.9903 91.6292C50.7927 115.443 102.086 102.204 143.183 94.4883C170.253 88.4567 194.476 82.3858 220.992 77.02C229.686 75.2574 229.568 62.9983 220.834 61.3141C174.797 52.4624 141.721 36.9915 119.078 2.36813C76.0441 -56.7345 102.955 -195.502 135.043 -269.645C167.763 -348.84 229.963 -370.969 297.537 -376.414C333.774 -378.45 368.667 -373.398 398.661 -363.88C407.473 -361.06 413.401 -372.654 405.853 -377.98C346.38 -420.124 238.064 -433.636 167.565 -417.343" fill="${e}" />\n </g>\n <defs>\n <clipPath id="clip0_12352_9042">\n <rect width="684" height="107" fill="white" />\n </clipPath>\n </defs>\n </svg>`,w="utm_parameters",y=".gokinetic.com";function N(){if("undefined"==typeof window)return null;const e=r.get(w);if(!e)return null;try{const n=t.decode(e);return JSON.parse(n)}catch(e){return null}}function E(e,n=y){if("undefined"==typeof window)return;const i=JSON.stringify(e),l=t.encode(i);r.set(w,l,{domain:n,path:"/",sameSite:"Lax"})}function C(e=y){r.remove(w,{domain:e,path:"/"})}function L(e){if("undefined"==typeof window)return"";const n=r.get(e);return n?t.decode(n):null}const A=e=>{try{return JSON.parse(L(e)||"")}catch(e){return null}},x=(e,n,i)=>{if("undefined"==typeof window)return;const l=JSON.stringify(n),o=t.encode(l);r.set(e,o,i)},k=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];function D(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search),n={};let t=!1;for(const r of k){const i=e.get(r);i&&(n[r]=i,t=!0)}return t?n:null}function R(e,n){if(!n)return e||{};if(!e)return n;if(["utm_campaign","utm_medium","utm_source","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"].every(t=>(e[t]||"")===(n[t]||"")))return{...n,utm_content:e.utm_content||n.utm_content,utm_term:e.utm_term||n.utm_term};const t=!!n.utm_content,r=!!n.utm_term;return{...n,...!t&&e.utm_content&&{utm_content:e.utm_content},...!r&&e.utm_term&&{utm_term:e.utm_term}}}function I(){if("undefined"==typeof document)return null;const e=document.referrer;if(!e)return{utm_medium:"direct",utm_source:"direct"};let n;try{n=new URL(e).hostname.toLowerCase()}catch(e){return{utm_medium:"direct",utm_source:"direct"}}return n.includes("windstream.com")||n.includes("gokinetic.com")?null:n.includes("google.")?{utm_medium:"organic",utm_source:"google"}:n.includes("bing.")?{utm_medium:"organic",utm_source:"bing"}:{utm_medium:"referral",utm_source:n}}function T(e){if(!e)return null;const n={};return e.utm_campaign&&(n.name=e.utm_campaign),e.utm_source&&(n.source=e.utm_source),e.utm_medium&&(n.medium=e.utm_medium),e.utm_term&&(n.term=e.utm_term),e.utm_content&&(n.content=e.utm_content),e.utm_campaign_id&&(n.campaign_id=e.utm_campaign_id),e.utm_adgroup_id&&(n.adgroup_id=e.utm_adgroup_id),e.gclid&&(n.gclid=e.gclid),e.fbclid&&(n.fbclid=e.fbclid),e.msclkid&&(n.msclkid=e.msclkid),Object.keys(n).length>0?n:null}function S(e,n){if(!n)return e;const t=new URLSearchParams(n),r=new Set(k),i=new Set([...r,"searchtext","page"]);let l,o;try{if(e.startsWith("http://")||e.startsWith("https://")){const n=new URL(e);l=n.origin+n.pathname,o=n.searchParams}else{const[n,t]=e.split("?");l=n,o=new URLSearchParams(t||"")}}catch(n){return e}const d=new URLSearchParams(o);t.forEach((e,n)=>{i.has(n.toLowerCase())||d.has(n)||d.set(n,e)});const a=d.toString();return a?`${l}?${a}`:l}const P=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,M=e=>{if(!e)return null;if(P(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const n=e.json;return P(n)?n:null}return null},B={renderMark:{[m.BOLD]:e=>i("strong",{className:"label3",children:e}),[m.ITALIC]:e=>i("em",{children:e}),[m.UNDERLINE]:e=>i("u",{children:e}),[m.CODE]:e=>i("code",{children:e})},renderNode:{[s.PARAGRAPH]:(e,n)=>i("div",{className:"body3 mb-4",children:n}),[s.HEADING_1]:(e,n)=>i(p,{as:"h1",className:"heading2 md:heading1",children:n}),[s.HEADING_2]:(e,n)=>i(p,{as:"h2",className:"heading6 md:heading5",children:n}),[s.HEADING_3]:(e,n)=>i(p,{as:"h3",className:"heading6 md:heading5",children:n}),[s.HEADING_4]:(e,n)=>i(p,{as:"h3",className:"headingClass",children:n}),[s.HEADING_5]:(e,n)=>i(p,{as:"h3",className:"heading6 md:heading5",children:n}),[s.HEADING_6]:(e,n)=>i(p,{as:"h3",className:"heading6",children:n}),[s.QUOTE]:(e,n)=>i("blockquote",{children:n}),[s.UL_LIST]:(e,n)=>i("ul",{children:n}),[s.OL_LIST]:(e,n)=>i("ol",{children:n}),[s.LIST_ITEM]:(e,n)=>i("li",{children:n}),[c.HYPERLINK]:(e,n)=>{var t;const r=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.uri,l=/^https?:\/\//.test(r);return i("a",{href:r,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,children:n})},[s.EMBEDDED_ASSET]:e=>{var n,t;const r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target,l=null==r?void 0:r.fields,o=(null==r?void 0:r.url)||(null===(t=null==l?void 0:l.file)||void 0===t?void 0:t.url),d=(null==l?void 0:l.title)||(null==l?void 0:l.description)||"Embedded asset";if(!o)return null;const a=o.startsWith("//")?`https:${o}`:o;return i("img",{src:a,alt:d,style:{maxWidth:"100%"}})},[s.EMBEDDED_ENTRY]:e=>{var n,t,r,o;const d=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target;return"callout"===(null===(o=null===(r=null===(t=null==d?void 0:d.sys)||void 0===t?void 0:t.contentType)||void 0===r?void 0:r.sys)||void 0===o?void 0:o.id)?l("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[i("strong",{children:d.fields.title}),i("div",{children:d.fields.body})]}):null},[c.EMBEDDED_ENTRY]:e=>{var n,t,r,o,d,a;const u=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target;return"componentCheckList"===(null===(o=null===(r=null===(t=null==u?void 0:u.sys)||void 0===t?void 0:t.contentType)||void 0===r?void 0:r.sys)||void 0===o?void 0:o.id)?l("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",u.fields.title]}):i("span",{children:null!==(a=null===(d=null==u?void 0:u.fields)||void 0===d?void 0:d.title)&&void 0!==a?a:""})}}};function H(e,n,t="body1",r="body1 font-bold",l){if(!e||!Array.isArray(e.content))return null;const o={...B,...l,renderNode:{...B.renderNode,...null==l?void 0:l.renderNode,[s.PARAGRAPH]:(e,n)=>i("div",{className:t,children:n}),[c.HYPERLINK]:(e,t)=>{var l;const o=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.uri,d=/^https?:\/\//.test(o),a=null!=n?n:d;return i(v,{href:o,target:a?"_blank":"_self",rel:a?"noopener noreferrer":void 0,variant:"default",className:r,children:t})}}};return u(e,o)}function O(e,n){return d(()=>{if(!e||!Array.isArray(e.content))return null;const t={...B,renderMark:{...B.renderMark,...null==n?void 0:n.renderMark},renderNode:{...B.renderNode,...null==n?void 0:n.renderNode}};return u(e,t)},[e,n])}function G(e,n){if(!e||!Array.isArray(e.content))return null;const t={...B,renderMark:{...B.renderMark,[m.BOLD]:e=>i("strong",{className:"label4 md:label2",children:e})},renderNode:{...B.renderNode,[s.PARAGRAPH]:(e,n)=>i(o,{children:n}),[s.TABLE]:(e,n)=>{var t,r;return i("div",{className:"comparison-table-wrapper w-full overflow-x-auto border-none md:overflow-hidden",children:i("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(r=null===(t=e.content[0])||void 0===t?void 0:t.content)||void 0===r?void 0:r.length)>2?"min-w-[100.1%]":"min-w-full"),children:i("tbody",{children:n})})})},[s.TABLE_ROW]:(e,n)=>i("tr",{className:"border-b border-gray-200 last:border-0",children:n}),[s.TABLE_HEADER_CELL]:(e,n)=>{var t;const r=(null===(t=e.parent)||void 0===t?void 0:t.content.length)>2;return i("th",{className:`label4 break-words py-4 text-center md:label2 ${r?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:n})},[s.TABLE_CELL]:(e,n)=>{var t,r,d,a;const u=(null===(t=e.parent)||void 0===t?void 0:t.content.length)>2,c=null===(a=null===(d=null===(r=e.content[0])||void 0===r?void 0:r.content[0])||void 0===d?void 0:d.value)||void 0===a?void 0:a.toLowerCase().trim();return i("td",{className:`rt-table-cell footnote break-words bg-white py-2 md:py-4 text-center align-top leading-5 text-text md:body2 first:text-left md:leading-7 ${u?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:l(o,{children:[" ","yes"===c?i(h,{name:"check_circle",color:"#24A76A",fill:1}):"no"===c?i(h,{name:"cancel",color:"#CECECE",fill:1}):n]})})},[c.EMBEDDED_ENTRY]:e=>{var t,r,l,o;const d=e.data.target.sys.id,a=null===(r=null===(t=null==n?void 0:n.entries)||void 0===t?void 0:t.inline)||void 0===r?void 0:r.find(e=>e.sys.id===d);if(!a)return null;if("ComponentCheckList"===a.__typename){const e=(null===(o=null===(l=a.list)||void 0===l?void 0:l.items)||void 0===o?void 0:o.map(e=>{var n;return H(M(null!==(n=null==e?void 0:e.checkListTitle)&&void 0!==n?n:""),!0,"")}))||[];return i(f,{items:e,listIconName:"disc",listItemClassName:"items-baseline footnote md:body2 leading-5 md:leading-7 text-text"})}return i("span",{children:a.title||""})}}};return u(e,t)}const U={renderMark:{[m.BOLD]:e=>a("span",{className:"label1"},e)}};function j(e,n,t,r){return d(()=>{var i,l;const o=null!==(l=null===(i=null==e?void 0:e.list)||void 0===i?void 0:i.items)&&void 0!==l?l:[];return n?o.map(e=>{var n,i;return null!==(i=H(M(null!==(n=null==e?void 0:e.checkListTitle)&&void 0!==n?n:""),void 0,r,void 0,t))&&void 0!==i?i:""}):o.map(e=>{var n,i,l,o,d;return{title:null!==(i=H(M(null!==(n=null==e?void 0:e.checkListTitle)&&void 0!==n?n:""),void 0,r,void 0,t))&&void 0!==i?i:"",iconUrl:null!==(o=null===(l=null==e?void 0:e.icon)||void 0===l?void 0:l.url)&&void 0!==o?o:void 0,anchorId:null!==(d=null==e?void 0:e.anchorId)&&void 0!==d?d:void 0}})},[e,n,t,r])}export{b as SpeedCardBg,k as UTM_PARAM_NAMES,S as buildPreservedQueryHref,R as combineExistingAndNewUTMs,_ as cx,T as getCampaignProperties,L as getCookie,I as getOrganicTrafficUtmParameters,A as getParsedCookie,N as getUTMs,D as getUtmParametersFromURL,U as label1BoldOptions,C as removeUTMs,H as renderContentfulRichText,G as renderContentfulRichTextTable,x as setCookie,E as setUTMs,M as toDocument,O as useContentfulRichText,j as useProcessedChecklist};
2
2
  //# sourceMappingURL=index.esm.js.map