CINXE.COM
Subscribe to WrapPro - TheWrap
<!doctype html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"> <style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style> <!-- This site is optimized with the Yoast SEO Premium plugin v24.0 (Yoast SEO v24.0) - https://yoast.com/wordpress/plugins/seo/ --> <meta name="description" content="Essential insights for media professionals: daily newsletters, expert analysis, access to members-only events and TheWrap's premium magazine."> <link rel="canonical" href="https://www.thewrap.com/join-pro/"> <meta property="og:locale" content="en_US"> <meta property="og:type" content="article"> <meta property="og:title" content="Subscribe to WrapPro"> <meta property="og:description" content="Essential insights for media professionals: daily newsletters, expert analysis, access to members-only events and TheWrap's premium magazine."> <meta property="og:url" content="https://www.thewrap.com/join-pro/"> <meta property="og:site_name" content="TheWrap"> <meta property="article:publisher" content="https://www.facebook.com/thewrap"> <meta property="article:modified_time" content="2024-05-29T18:03:19+00:00"> <meta property="og:image" content="https://www.thewrap.com/wp-content/uploads/2024/05/wrap-pro-logo-2024.jpg"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="675"> <meta property="og:image:type" content="image/jpeg"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@thewrap"> <script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://www.thewrap.com/join-pro/","url":"https://www.thewrap.com/join-pro/","name":"Subscribe to WrapPro - TheWrap","isPartOf":{"@id":"https://www.thewrap.com/#website"},"primaryImageOfPage":{"@id":"https://www.thewrap.com/join-pro/#primaryimage"},"image":{"@id":"https://www.thewrap.com/join-pro/#primaryimage"},"thumbnailUrl":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/wrap-pro-logo-2024.jpg?fit=1200%2C675&quality=89&ssl=1","datePublished":"2023-09-25T05:53:26+00:00","dateModified":"2024-05-29T18:03:19+00:00","description":"Essential insights for media professionals: daily newsletters, expert analysis, access to members-only events and TheWrap's premium magazine.","breadcrumb":{"@id":"https://www.thewrap.com/join-pro/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://www.thewrap.com/join-pro/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.thewrap.com/join-pro/#primaryimage","url":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/wrap-pro-logo-2024.jpg?fit=1200%2C675&quality=89&ssl=1","contentUrl":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/wrap-pro-logo-2024.jpg?fit=1200%2C675&quality=89&ssl=1","width":1200,"height":675,"caption":"WrapPRO Logo"},{"@type":"BreadcrumbList","@id":"https://www.thewrap.com/join-pro/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.thewrap.com/"},{"@type":"ListItem","position":2,"name":"Subscribe to WrapPro"}]},{"@type":"WebSite","@id":"https://www.thewrap.com/#website","url":"https://www.thewrap.com/","name":"TheWrap","description":"Your trusted source for breaking entertainment news, film reviews, TV updates and Hollywood insights. Stay informed with the latest entertainment headlines and analysis from TheWrap.","publisher":{"@id":"https://www.thewrap.com/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.thewrap.com/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https://www.thewrap.com/#organization","name":"TheWrap","url":"https://www.thewrap.com/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.thewrap.com/#/schema/logo/image/","url":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/wrap_icon.png?fit=584%2C534&ssl=1","contentUrl":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/wrap_icon.png?fit=584%2C534&ssl=1","width":584,"height":534,"caption":"TheWrap"},"image":{"@id":"https://www.thewrap.com/#/schema/logo/image/"},"sameAs":["https://www.facebook.com/thewrap","https://x.com/thewrap","https://www.instagram.com/thewrap","https://www.youtube.com/thewrap"]}]}</script> <!-- / Yoast SEO Premium plugin. --> <title>Subscribe to WrapPro - TheWrap</title> <link rel="dns-prefetch" href="//htlbid.com"> <link rel="dns-prefetch" href="//www.thewrap.com"> <link rel="dns-prefetch" href="//use.typekit.net"> <link rel="preconnect" href="//i0.wp.com"> <link rel="alternate" type="application/rss+xml" title="TheWrap » Feed" href="https://www.thewrap.com/feed/"> <script> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/static.thewrap.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.7.1"}}; /*! This file is auto-generated */ !function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data));return t.every(function(e,t){return e===r[t]})}function u(e,t,n){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83d\udc26\u200d\u2b1b","\ud83d\udc26\u200b\u2b1b")}return!1}function f(e,t,n){var r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="600 32px Arial",{});return e.forEach(function(e){o[e]=t(a,e,n)}),o}function t(e){var t=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeof Promise&&(o="wpEmojiSettingsSupports",s=["flag","emoji"],n.supports={everything:!0,everythingExceptFlag:!0},e=new Promise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),new Promise(function(t){var n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"}),a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=function(e){c(n=e.data),a.terminate(),t(n)})}catch(e){}c(n=f(s,u,p))}t(n)}).then(function(e){for(var t in e)n.supports[t]=e[t],n.supports.everything=n.supports.everything&&n.supports[t],"flag"!==t&&(n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&n.supports[t]);n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&!n.supports.flag,n.DOMReady=!1,n.readyCallback=function(){n.DOMReady=!0}}).then(function(){return e}).then(function(){var e;n.supports.everything||(n.readyCallback(),(e=n.source||{}).concatemoji?t(e.concatemoji):e.wpemoji&&e.twemoji&&(t(e.twemoji),t(e.wpemoji)))}))}((window,document),window._wpemojiSettings); </script> <style id="wp-block-button-inline-css"> .wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:initial;background-image:none} </style> <style id="core-button-styles-inline-css"> .wp-block-button .wp-element-button{text-decoration:none;transition:.2s background-color ease}.wp-block-button .wp-element-button:hover{background-color:#515151}.wp-block-button.is-style-outline .wp-element-button:hover{background-color:#f7f7f7}.wp-block-button.is-style-subscribe{--pseudo-offset: 0.25rem;font-size:1.0625rem;line-height:1.4117647059;min-width:14.375rem;padding:var(--pseudo-offset);position:relative;width:-moz-max-content;width:max-content;z-index:0}.wp-block-button.is-style-subscribe::after{background-color:#da0a0a;border:1px solid #1d1d1f;bottom:0;content:"";display:block;height:calc(100% - var(--pseudo-offset)*2);position:absolute;right:0;width:calc(100% - var(--pseudo-offset)*2);z-index:-1}.wp-block-button.is-style-subscribe:hover,.wp-block-button.is-style-subscribe:focus{text-decoration:underline}.wp-block-button.is-style-subscribe .wp-block-button__link{align-items:center;background-color:#fff;border:1px solid #1d1d1f;color:#1d1d1f;display:flex;height:2.8125rem;justify-content:center;padding-block:unset;width:100%}.wp-block-button.is-style-text-with-icon{font-size:.75rem;font-weight:600;line-height:1.3333333333;width:-moz-max-content;width:max-content}.wp-block-button.is-style-text-with-icon .wp-block-button__link{align-items:center;background-color:unset;color:#1d1d1f;display:flex;gap:.625rem;letter-spacing:1px;padding:unset;text-transform:uppercase}.wp-block-button.is-style-text-with-icon .wp-block-button__link:hover{color:#515151}@media(min-width: 48rem){.wp-block-button.display-no-medium{display:none}} /*# sourceMappingURL=button.min.css.map*/ </style> <style id="wp-block-post-title-inline-css"> .wp-block-post-title{box-sizing:border-box;word-break:break-word}.wp-block-post-title :where(a){display:inline-block;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit} </style> <style id="core-post-title-styles-inline-css"> .wp-block-post-title:not(h1){font-size:1.125rem;font-weight:600;line-height:1.3333333333}@media(min-width: 64rem){.wp-block-post-title:not(h1){font-size:1.3125rem;font-weight:600;line-height:1.2380952381}.ad-skin-1000-active .wp-block-post-title:not(h1){font-size:1.125rem;font-weight:600;line-height:1.3333333333}}.wp-block-post-title:not(h1) a{text-decoration:none;color:inherit}.wp-block-post-title:not(h1) a:hover,.wp-block-post-title:not(h1) a:focus{text-decoration:underline}.wp-block-post-title--profile-header{font-family:ivypresto-display,serif;font-size:2rem;font-weight:700;line-height:1.125;letter-spacing:-0.5px}@media(min-width: 48rem){.wp-block-post-title--profile-header{font-family:ivypresto-display,serif;font-size:3rem;font-weight:700;line-height:1.0833333333}} /*# sourceMappingURL=post-title.min.css.map*/ </style> <style id="wp-block-spacer-inline-css"> .wp-block-spacer{clear:both} </style> <link rel="stylesheet" id="wp-block-image-css" href="https://static.thewrap.com/wp-includes/blocks/image/style.min.css?ver=6.7.1" media="all"> <style id="core-image-styles-inline-css"> .wp-block-image>a{display:block}.wp-block-image.is-style-rounded img{border:2px solid #f8f9fa;border-radius:9999px;box-shadow:0 3.2px 3.2px -1.6px rgba(24,39,75,.08),0 1.6px 2.4px -1.6px rgba(24,39,75,.12)}@media(min-width: 30rem){.wp-block-image.alignleft,.wp-block-image.alignright{max-width:calc(50% - var(--site-gap))}}.wp-block-image.alignfull figcaption{padding-inline:var(--site-edge)} /*# sourceMappingURL=image.min.css.map*/ </style> <style id="wp-block-heading-inline-css"> h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg} </style> <style id="core-column-styles-inline-css"> .wp-block-column>*+*{margin-block:var(--block-vertical-rhythm, 1.25rem)}.wp-block-column>*+*:last-child{margin-block-end:unset}.wp-block-column>*:last-child{margin-bottom:0}@media(min-width: 782px){.wp-block-column:has(.wp-block-the-wrap-what-to-watch)+.wp-block-column .wp-block-the-wrap-section-heading{display:flex;flex-flow:column wrap;justify-content:flex-end;min-height:4.625rem}} /*# sourceMappingURL=column.min.css.map*/ </style> <style id="wp-block-columns-inline-css"> .wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%} </style> <style id="core-columns-styles-inline-css"> .wp-block-columns{gap:var(--block-vertical-rhythm)} /*# sourceMappingURL=columns.min.css.map*/ </style> <link rel="stylesheet" id="wp-block-cover-css" href="https://static.thewrap.com/wp-includes/blocks/cover/style.min.css?ver=6.7.1" media="all"> <style id="core-cover-styles-inline-css"> .wp-block-cover p{font-family:ivypresto-text,serif;font-size:1.3125rem;font-weight:600;line-height:1.2380952381;letter-spacing:-0.5px}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,.wp-block-cover.has-background-dim:not(.has-background-gradient)::before{opacity:.45}.page-template-template-magazine .wp-block-cover,.wp-block-cover__inner-container{max-width:var(--content-max)}.page-template-template-magazine .wp-block-cover{background-repeat:no-repeat}.wp-block-cover-wtw{color:var(--wp--preset--color--white)}.wp-block-cover-wtw__heading{font-family:ivypresto-display,serif;font-size:3rem;font-weight:700;line-height:1.0833333333;font-weight:600;letter-spacing:-0.5px;margin-block-end:1.5rem;position:relative}.wp-block-cover-wtw__heading::after{background-color:#c50000;bottom:-0.625rem;content:"";height:.0625rem;left:50%;position:absolute;transform:translateX(-50%);width:6.875rem}@media(min-width: 48rem){.wp-block-cover-wtw__heading{font-size:4rem;line-height:.8125;margin-block-end:1.875rem}.wp-block-cover-wtw__heading::after{bottom:-1rem}}p.wp-block-cover-wtw__description{font-size:1.25rem;font-weight:400;line-height:1.2;margin-block-end:2.5rem}@media(min-width: 48rem){p.wp-block-cover-wtw__description{font-size:1.375rem;line-height:.7272727273;margin-block-end:1.875rem}}p.wp-block-cover-wtw__description img{display:inline;margin-block-end:-0.25rem;margin-left:.5rem}p.wp-block-cover-wtw__sponsor-text{font-family:libre-franklin,Tahoma,sans-serif;font-size:.875rem;font-weight:400;line-height:1.2142857143;margin-block-end:.625rem}@media(min-width: 48rem){p.wp-block-cover-wtw__sponsor-text{margin-block-end:unset}}.wp-block-cover-wtw__sponsor-image{max-width:7.8125rem}@media(min-width: 48rem){.wp-block-cover-wtw__sponsor-image{max-width:14.0625rem}} /*# sourceMappingURL=cover.min.css.map*/ </style> <style id="wp-block-paragraph-inline-css"> .is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg} </style> <style id="wp-block-post-content-inline-css"> .wp-block-post-content{display:flow-root} </style> <style id="the-wrap-footer-menu-styles-inline-css"> .wp-block-the-wrap-footer-menu{border:1px solid #515151}@media(min-width: 48rem){.wp-block-the-wrap-footer-menu{border:unset}}.footer-menu__heading{font-size:.875rem;font-weight:700;line-height:1.7142857143;font-family:libre-franklin,Tahoma,sans-serif;letter-spacing:.2px;text-transform:uppercase}@media(min-width: 48rem){.footer-menu__heading{margin-bottom:.375rem}}@media(max-width: 47.9375rem){.footer-menu__toggle{align-items:center;background-color:#fff;color:#1d1d1f;display:flex;justify-content:space-between;padding:1rem;width:100%}}.footer-menu__toggle-icon{color:#c50000}@media(prefers-reduced-motion: no-preference){.footer-menu__toggle-icon{transition:all 150ms ease-in-out}}[aria-expanded=true]>.footer-menu__toggle-icon{transform:rotate(180deg)}@media(min-width: 48rem){.footer-menu__toggle-icon{display:none}}.footer-menu__menu{font-size:.875rem;line-height:1.7142857143;font-family:libre-franklin,Tahoma,sans-serif}@media(max-width: 47.9375rem){.footer-menu__menu{background-color:#fff;color:#1d1d1f;padding:0 1rem 1rem}.footer-menu__menu[aria-hidden=true]{display:none}}.footer-menu__menu .menu__link{font-size:.875rem;line-height:1.7142857143;display:inline-block;padding-block:.375rem;text-decoration:none}.footer-menu__menu .menu__link:hover{text-decoration:underline} /*# sourceMappingURL=footer-menu.min.css.map*/ </style> <link rel="stylesheet" id="the-wrap-ybid-css" href="https://htlbid.com/v3/thewrap.com/ybid.css?ver=1.0.0" media="all"> <style id="wp-emoji-styles-inline-css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <style id="wp-block-library-inline-css"> :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} </style> <style id="global-styles-inline-css"> :root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #1D1D1F;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #FFFFFF;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--color--true-black: #000000;--wp--preset--color--gray: #F2F5F7;--wp--preset--color--gray-light: #BDC6CE;--wp--preset--color--gray-dark: #3D4550;--wp--preset--color--red: #DA0A0A;--wp--preset--color--ruby: #721C24;--wp--preset--color--blue: #00A8EA;--wp--preset--color--link: #C50000;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:root { --wp--style--global--content-size: 652px;--wp--style--global--wide-size: var(--tw--block-wide); }:where(body) { margin: 0; }.wp-site-blocks { padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom); }.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}.is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}.is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}.is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}.is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}.is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}.is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}.is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}body{--wp--style--root--padding-top: 0px;--wp--style--root--padding-right: var(--site-edge);--wp--style--root--padding-bottom: 0px;--wp--style--root--padding-left: var(--site-edge);}a:where(:not(.wp-element-button)){text-decoration: underline;}:root :where(.wp-element-button, .wp-block-button__link){background-color: #32373c;border-width: 0;color: #fff;font-family: inherit;font-size: inherit;line-height: inherit;padding: calc(0.667em + 2px) calc(1.333em + 2px);text-decoration: none;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-true-black-color{color: var(--wp--preset--color--true-black) !important;}.has-gray-color{color: var(--wp--preset--color--gray) !important;}.has-gray-light-color{color: var(--wp--preset--color--gray-light) !important;}.has-gray-dark-color{color: var(--wp--preset--color--gray-dark) !important;}.has-red-color{color: var(--wp--preset--color--red) !important;}.has-ruby-color{color: var(--wp--preset--color--ruby) !important;}.has-blue-color{color: var(--wp--preset--color--blue) !important;}.has-link-color{color: var(--wp--preset--color--link) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-true-black-background-color{background-color: var(--wp--preset--color--true-black) !important;}.has-gray-background-color{background-color: var(--wp--preset--color--gray) !important;}.has-gray-light-background-color{background-color: var(--wp--preset--color--gray-light) !important;}.has-gray-dark-background-color{background-color: var(--wp--preset--color--gray-dark) !important;}.has-red-background-color{background-color: var(--wp--preset--color--red) !important;}.has-ruby-background-color{background-color: var(--wp--preset--color--ruby) !important;}.has-blue-background-color{background-color: var(--wp--preset--color--blue) !important;}.has-link-background-color{background-color: var(--wp--preset--color--link) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-true-black-border-color{border-color: var(--wp--preset--color--true-black) !important;}.has-gray-border-color{border-color: var(--wp--preset--color--gray) !important;}.has-gray-light-border-color{border-color: var(--wp--preset--color--gray-light) !important;}.has-gray-dark-border-color{border-color: var(--wp--preset--color--gray-dark) !important;}.has-red-border-color{border-color: var(--wp--preset--color--red) !important;}.has-ruby-border-color{border-color: var(--wp--preset--color--ruby) !important;}.has-blue-border-color{border-color: var(--wp--preset--color--blue) !important;}.has-link-border-color{border-color: var(--wp--preset--color--link) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} :root :where(.wp-block-button .wp-block-button__link){border-radius: 0px;font-family: libre-franklin, sans-serif;font-size: 0.9375rem;letter-spacing: 0.5px;line-height: 1.6;padding-top: 10px;padding-right: 32px;padding-bottom: 10px;padding-left: 32px;text-transform: uppercase;} :where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;} :root :where(p){font-size: 1.125rem;line-height: 1.875rem;} </style> <style id="core-block-supports-inline-css"> .wp-container-core-columns-is-layout-1{flex-wrap:nowrap;}.wp-container-core-post-content-is-layout-1 > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:var(--site-max);margin-left:auto !important;margin-right:auto !important;}.wp-container-core-post-content-is-layout-1 > .alignwide{max-width:var(--site-max);}.wp-container-core-post-content-is-layout-1 .alignfull{max-width:none;} </style> <style id="wp-block-template-skip-link-inline-css"> .skip-link.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; } .skip-link.screen-reader-text:focus { background-color: #eee; clip: auto !important; clip-path: none; color: #444; display: block; font-size: 1em; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; } </style> <link rel="stylesheet" id="the-wrap-typekit-css" href="https://use.typekit.net/icl0tmu.css?ver=1.0.0" media="all"> <link rel="stylesheet" id="the-wrap-global-css" href="https://static.thewrap.com/wp-content/themes/the-wrap/client/build/css/global.min.css?ver=38e783e344151c23c74a" media="all"> <link rel="stylesheet" id="the-wrap-article-css" href="https://static.thewrap.com/wp-content/themes/the-wrap/client/build/css/article.min.css?ver=5df581b785e1a525647c" media="all"> <link rel="stylesheet" id="the-wrap-page-css" href="https://static.thewrap.com/wp-content/themes/the-wrap/client/build/css/page.min.css?ver=2c80d6dbab24430f6350" media="all"> <script src="https://htlbid.com/v3/thewrap.com/ybid.js?ver=1.0.0" id="the-wrap-ybid-js" async data-wp-strategy="async"></script> <link rel="https://api.w.org/" href="https://www.thewrap.com/wp-json/"><link rel="alternate" title="JSON" type="application/json" href="https://www.thewrap.com/wp-json/wp/v2/pages/7360596"><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.thewrap.com/xmlrpc.php?rsd"> <meta name="generator" content="WordPress 6.7.1"> <link rel="preconnect" href="https://use.typekit.net" crossorigin><link rel="preconnect" href="https://p.typekit.net" crossorigin><script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({"template":"Page","dateCreated":"2023-09-24T22:53:26-07:00","dateLastModified":"2024-05-29T18:03:19Z","isGallery":"0","postId":"7360596"}); </script> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer',"GTM-WM35TFR");</script> <!-- End Google Tag Manager --> <link rel="icon" href="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/the_wrap_symbol_black_bkg.png?fit=32%2C32&quality=80&ssl=1" sizes="32x32"> <link rel="icon" href="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/the_wrap_symbol_black_bkg.png?fit=192%2C192&quality=80&ssl=1" sizes="192x192"> <link rel="apple-touch-icon" href="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/the_wrap_symbol_black_bkg.png?fit=180%2C180&quality=80&ssl=1"> <meta name="msapplication-TileImage" content="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/the_wrap_symbol_black_bkg.png?fit=270%2C270&quality=80&ssl=1"> <script> window.ybid = window.ybid || {}; ybid.cmd = ybid.cmd || []; ybid.cmd.push(function () { ybid.layout("universal"); ybid.setTargeting("Page-Type", "archive"); ybid.setTargeting("Path", "/join-pro/"); ybid.setTargeting("Post-Type", "page"); ybid.setTargeting("PostID", "7360596"); ybid.setTargeting("is_testing", "no"); ybid.setTargeting("testmode", ""); }); </script> </head> <body class="page-template page-template-page-no-sidebar page page-id-7360596 wp-custom-logo wp-embed-responsive full-width-template"> <svg xmlns="http://www.w3.org/2000/svg" focusable="false" height="0" role="none" style="left:-9999px;overflow:hidden;position:absolute" viewbox="0 0 0 0" width="0"><symbol id="am-symbol-logo" viewbox="0 0 726 109"><path d="M725.52 81.53H699.61V108.71H725.52V81.53Z" fill="#D2232A"></path><path d="M647.95 52.46V14.85H663.91C675.6 14.85 681.29 22.12 681.29 33.34C681.29 44.56 675.92 52.46 664.38 52.46H647.95ZM622.83 108.71H647.95V66.68H668.49C691.56 66.68 705.94 54.83 705.94 32.55C705.94 10.27 691.08 0 667.54 0H622.83V108.71ZM543.04 69.53L560.89 19.6L578.11 69.53H543.03H543.04ZM511.44 108.71H529.61L539.25 83.11H581.91L591.23 108.71H616.83L578.43 0H549.99L511.44 108.7V108.71ZM438.6 50.41V14.38H456.77C469.09 14.38 474.31 20.54 474.31 32.23C474.31 43.92 468.62 50.4 455.98 50.4H438.6V50.41ZM413.95 108.71H438.6V64.79H450.92L479.2 108.71H507.01L475.73 62.42C489.48 58.15 499.27 48.2 499.27 31.93C499.27 12.5 486.16 0.01 462.46 0.01H413.95V108.71ZM280.76 108.71H312.04L329.74 31.76L347.91 108.71H379.19L407.32 0H386.78L365.61 88.01L343.8 0H320.57L299.4 88.64L279.02 0H252.79L280.76 108.7V108.71ZM179.64 108.71H247.74V104.92H189.12V53.41H242.84V49.62H189.12V3.79H245.84V0H179.64V108.71ZM160.36 108.71H169.68V0H160.36V49.45H96.84V0H87.52V108.7H96.84V53.24H160.36V108.71ZM34.44 108.71H43.92V3.79H78.36V0H0V3.79H34.44V108.71Z" fill="black"></path></symbol><symbol id="am-symbol-pro-logo" viewbox="0 0 269 40"><g clip-path="url(#wrap-pro-logo-a)"> <path d="M173.371 39.326h3.314v-17.08h9.102c7.809 0 13.033-3.145 13.033-10.955 0-7.247-5.056-10.617-12.752-10.617h-12.697v38.652Zm3.314-18.428V2.022h9.102c6.517 0 9.494 3.595 9.494 9.382 0 5.562-2.697 9.494-9.213 9.494h-9.383Zm26.124 18.428h3.371V20.955h8.371l12.247 18.37h3.989l-12.472-18.483c5.899-.618 10.057-3.764 10.057-10 0-7.416-5.001-10.168-11.63-10.168h-13.933v38.652Zm3.371-19.776V2.022h9.775c5.956 0 8.99 3.033 8.99 8.82 0 5.843-3.428 8.708-9.439 8.708h-9.326ZM249.944 40c11.405 0 18.484-8.933 18.484-20 0-11.012-7.079-20-18.484-20-11.461 0-18.483 8.988-18.483 20 0 11.067 7.022 20 18.483 20Zm0-1.349C240.45 38.651 235 30.336 235 20c0-10.338 5.506-18.652 14.944-18.652 9.382 0 14.944 8.314 14.944 18.652 0 10.337-5.506 18.651-14.944 18.651Z" fill="#000"></path> <path d="M158.877 39.325h9.213v-9.663h-9.213v9.663Z" fill="#D2232A"></path> <path d="M9.944 39.326h11.123l6.293-27.36 6.46 27.36h11.124l10-38.652h-7.303l-7.528 31.292L32.36.674h-8.259L16.573 32.19 9.326.674H0l9.944 38.652Zm47.36 0h8.764V23.707h4.382l10.056 15.619h9.888L79.27 22.864c4.888-1.516 8.371-5.055 8.371-10.842 0-6.91-4.663-11.348-13.09-11.348H57.303v38.652Zm8.764-20.731V5.785h6.46c4.383 0 6.236 2.192 6.236 6.35 0 4.1-2.022 6.46-6.516 6.46h-6.18Zm25.898 20.73h6.46l3.428-9.1h15.169l3.314 9.1h9.102L115.787.675h-10.113L91.966 39.326Zm11.236-13.932 6.349-17.753 6.123 17.753h-12.472Zm28.371 13.933h8.933V24.382h7.303c8.202 0 13.315-4.214 13.315-12.136 0-7.528-5.281-11.572-13.652-11.572h-15.899v38.652Zm8.933-20V5.953h5.674c4.157 0 6.18 2.585 6.18 6.574 0 4.045-1.911 6.797-6.012 6.797h-5.842Z" fill="#000"></path> </g><defs> <clippath id="wrap-pro-logo-a"> <path d="M0 0h268.425v40H0z" fill="#fff"></path> </clippath> </defs></symbol><symbol id="am-symbol-search" viewbox="0 0 17 17"><path d="m16.5822 14.5846-3.2867-3.2513c.8985-1.34629 1.3214-2.95425 1.2015-4.56842-.12-1.61416-.7759-3.14196-1.8635-4.34068-1.0877-1.19873-2.5447-1.999636-4.13962-2.275492-1.59493-.275855-3.23631-.010839-4.66339.752948-1.42707.763784-2.558 1.982544-3.213124 3.462654-.6551219 1.48011-.796867 3.13669-.402716 4.70659.39415 1.5699 1.30159 2.9631 2.57817 3.9582 1.27657.9951 2.84907 1.5351 4.46768 1.5342 1.4365.0015 2.8404-.4278 4.0304-1.2325l3.2938 3.2938c.2654.2638.6245.4119.9987.4119.3743 0 .7333-.1481.9988-.4119.1371-.1322.2461-.2906.3206-.4659.0745-.1752.1129-.3637.1129-.5541 0-.1905-.0384-.3789-.1129-.5542-.0745-.1752-.1835-.3337-.3206-.4658zm-9.3217-12.45961c1.01539 0 2.00799.30101 2.8524.86498.8443.56398 1.5025 1.3656 1.8914 2.30356.3889.93797.491 1.97016.2935 2.96614-.1976.99598-.686 1.91103-1.4035 2.62953s-1.63188 1.2081-2.62759 1.4071c-.99571.1989-2.02804.0982-2.96654-.2894s-1.74103-1.0447-2.30617-1.8883c-.56513-.84354-.86751-1.83572-.86891-2.85111 0-1.36265.54082-2.66959 1.5037-3.63379.96287-.96421 2.26907-1.50683 3.63171-1.50871z" fill="#1d1d1f"></path></symbol><symbol id="am-symbol-menu" viewbox="0 0 32 32"><path d="m16 .336426c-3.1645 0-6.25793.938384-8.88912 2.696484-2.63118 1.7581-4.68194 4.25696-5.89295 7.18059-1.21099742 2.9236-1.527851 6.1407-.910487 9.2444.617363 3.1037 2.141217 5.9546 4.378857 8.1922 2.23764 2.2377 5.08857 3.7615 8.1923 4.3789 3.1037.6174 6.3207.3005 9.2443-.9105 2.9237-1.211 5.4225-3.2618 7.1806-5.893 1.7581-2.6311 2.6965-5.7246 2.6965-8.8891 0-4.2434-1.6857-8.3131-4.6863-11.31368s-7.0702-4.686294-11.3137-4.686294zm-6 19.999974h12c.3536 0 .6928.1405.9428.3905.2501.2501.3905.5892.3905.9429 0 .3536-.1404.6927-.3905.9428-.25.25-.5892.3905-.9428.3905h-12c-.35361 0-.69275-.1405-.9428-.3905-.25005-.2501-.39053-.5892-.39053-.9428 0-.3537.14048-.6928.39053-.9429.25005-.25.58919-.3905.9428-.3905zm-1.33333-4c0-.3536.14048-.6927.39053-.9428.25005-.25.58919-.3905.9428-.3905h12c.3536 0 .6928.1405.9428.3905.2501.2501.3905.5892.3905.9428s-.1404.6928-.3905.9428c-.25.2501-.5892.3906-.9428.3906h-12c-.35361 0-.69275-.1405-.9428-.3906-.25005-.25-.39053-.5892-.39053-.9428zm13.33333-4h-12c-.35361 0-.69275-.1405-.9428-.3905s-.39053-.5892-.39053-.9428.14048-.6928.39053-.9428c.25005-.25006.58919-.39054.9428-.39054h12c.3536 0 .6928.14048.9428.39054.2501.25.3905.5892.3905.9428s-.1404.6928-.3905.9428c-.25.25-.5892.3905-.9428.3905z" fill="#1d1d1f"></path></symbol><symbol id="am-symbol-close" viewbox="0 0 32 32"><path d="m19.0668 16.6378c-.0319-.0299-.0573-.0661-.0747-.1062-.0173-.0401-.0263-.0834-.0263-.1271s.009-.087.0263-.1271c.0174-.0402.0428-.0763.0747-.1062l12.3467-12.36005c.187-.18478.3356-.40486.4369-.64747.1014-.24261.1536-.50293.1536-.76586s-.0522-.52325-.1536-.76586c-.1013-.24261-.2499-.46269-.4369-.647473-.3767-.371307-.8844-.579458-1.4133-.579458-.529 0-1.0367.208151-1.4134.579458l-12.3466 12.346713c-.0311.0322-.0684.0579-.1097.0754-.0412.0175-.0855.0266-.1303.0266-.0449 0-.0892-.0091-.1304-.0266-.0413-.0175-.0786-.0432-.1096-.0754l-12.34671-12.346713c-.37671-.371307-.8844-.579458-1.41334-.579458-.52893 0-1.036627.208151-1.413331.579458-.187053.184783-.335565.404863-.436926.647473-.1013616.24261-.15355511.50293-.15355511.76586s.05219351.52325.15355511.76586c.101361.24261.249873.46269.436926.64747l12.346681 12.36005c.0319.0299.0573.066.0747.1062.0173.0401.0263.0834.0263.1271s-.009.087-.0263.1271c-.0174.0401-.0428.0763-.0747.1062l-12.346681 12.3467c-.187053.1848-.335565.4048-.436926.6475-.1013616.2426-.15355511.5029-.15355511.7658 0 .263.05219351.5233.15355511.7659.101361.2426.249873.4627.436926.6475.376704.3713.884401.5794 1.413331.5794.52894 0 1.03663-.2081 1.41334-.5794l12.34671-12.3467c.031-.0323.0683-.0579.1096-.0755.0412-.0175.0855-.0265.1304-.0265.0448 0 .0891.009.1303.0265.0413.0176.0786.0432.1097.0755l12.3466 12.3467c.3767.3713.8844.5794 1.4134.5794.5289 0 1.0366-.2081 1.4133-.5794.187-.1848.3356-.4049.4369-.6475.1014-.2426.1536-.5029.1536-.7659 0-.2629-.0522-.5232-.1536-.7658-.1013-.2427-.2499-.4627-.4369-.6475z" fill="#000"></path></symbol><symbol id="am-symbol-chevron-down" viewbox="0 0 14 9"><path d="M7.02003 8.33643C6.64184 8.33643 6.31768 8.17672 6.10157 7.91055L0.752907 1.94822C0.374719 1.52234 0.428746 0.883516 0.860961 0.564105C1.29318 0.244695 1.88747 0.244695 2.26566 0.670575L6.91197 5.88761C6.966 5.94085 7.02003 5.94085 7.12808 5.88761L11.7744 0.670576C12.1526 0.244695 12.8009 0.244695 13.1791 0.617341C13.5573 0.989986 13.6113 1.57557 13.2871 2.00145L7.99251 7.96378C7.72238 8.17672 7.39822 8.33643 7.02003 8.33643Z" fill="currentColor"></path></symbol><symbol id="am-symbol-account" viewbox="0 0 20 20"><clippath id="account-a"><path d="m0 0h20v20h-20z"></path></clippath><g clip-path="url(#account-a)"><path d="m10 0c-1.97781 0-3.91121.58649-5.5557 1.6853-1.64449 1.09882-2.92621 2.6606-3.683091 4.48787-.75687614 1.82726-.95491 3.83793-.569057 5.77773.385852 1.9398 1.338258 3.7216 2.736788 5.1202 1.39852 1.3985 3.18035 2.3509 5.12016 2.7368 1.93981.3858 3.9505.1878 5.7777-.5691 1.8273-.7569 3.3891-2.0386 4.4879-3.6831s1.6853-3.5779 1.6853-5.5557c0-2.65216-1.0536-5.1957-2.9289-7.07107-1.8754-1.87536-4.4189-2.92893-7.0711-2.92893zm0 2.08333c1.503-.00081 2.9751.42669 4.2438 1.23242 1.2688.80572 2.2817 1.95632 2.92 3.31699.6384 1.36068.8758 2.87509.6844 4.36586-.1913 1.4907-.8035 2.8961-1.7649 4.0514-.0586.0695-.1381.1183-.2266.1393s-.1814.0131-.265-.0226c-.7334-.3334-1.625-.6584-2.6334-1.0334l-.625-.225c-.1083-.0416-.2083-.225-.2666-.4666-.0593-.2125-.0758-.4345-.0487-.6534.0272-.2189.0976-.4302.207-.6216.8917-.9834 1.4417-2.0334 1.4417-4.25003.0436-.50294-.0195-1.00941-.1853-1.48624s-.4304-.91326-.7766-1.28069c-.3462-.36742-.7661-.65755-1.2322-.85138-.4661-.19384-.968-.28699-1.4726-.27336-.50463-.01363-1.00645.07952-1.47258.27336-.46613.19383-.88604.48396-1.23222.85138-.34619.36743-.61083.80386-.77659 1.28069s-.22889.9833-.18527 1.48624c0 2.21663.55 3.27503 1.44166 4.25003.10944.1914.17979.4027.20697.6216s.01065.4409-.04863.6534c-.05834.2416-.15834.425-.26667.4666l-.625.2584c-1.00833.375-1.9.7-2.63333 1.0333-.08365.0357-.17656.0437-.26506.0227s-.16793-.0699-.22661-.1394c-.9716-1.1546-1.59255-2.5632-1.78954-4.0593-.197-1.49617.03818-3.01745.67778-4.38426s1.65691-2.52209 2.93183-3.32945c1.27492-.80737 2.75422-1.2331 4.26326-1.22696z" fill="#000"></path></g></symbol><symbol id="am-symbol-facebook" viewbox="0 0 19 33"><path d="m18.1865 10.02c-.0617-.07031-.1375-.12681-.2225-.16587-.085-.03905-.1773-.05978-.2708-.06084h-5.0267v-1.88c0-.37333.08-.8.68-.8h4c.088.00579.1762-.00931.2573-.04407s.1528-.08818.2094-.15593c.06-.05913.1074-.12976.1395-.20765.032-.07789.0481-.16145.0471-.24568v-5.33333c0-.176813-.0702-.346383-.1952-.471407s-.2946-.195262-.4714-.195262h-5.7734c-6.39996 0-6.8933 5.466669-6.8933 7.133329v2.2h-3.33333c-.17681 0-.34638.07024-.471404.19527-.125024.12504-.195262.29464-.195262.47144v5.3333c0 .1768.070238.3464.195262.4714s.294594.1953.471404.1953h3.33333v15.3333c0 .1768.07024.3464.19527.4714.12502.125.29459.1953.4714.1953h6.66663c.1768 0 .3464-.0703.4714-.1953.1251-.125.1953-.2946.1953-.4714v-15.3333h4.4667c.1658.0008.326-.0602.4493-.1712.1233-.1109.2008-.2638.2173-.4288l.5467-5.3334c.0121-.091.004-.1835-.0236-.2711-.0277-.0876-.0742-.168-.1364-.2355z" fill="currentColor"></path></symbol><symbol id="am-symbol-twitter" viewbox="0 0 32 27"><path d="m31.0932 6.04653c.0949-.07886.166-.1825.2055-.29938.0395-.11689.0457-.24243.0181-.36267-.0276-.12023-.0881-.23044-.1747-.31835-.0865-.08791-.1958-.15009-.3155-.1796l-1.0534-.25333c-.097-.02439-.1871-.07073-.2634-.13546s-.1367-.14611-.1766-.23787c-.0426-.08955-.0648-.18749-.0648-.28667s.0222-.19712.0648-.28667l.6-1.18666c.0571-.11618.079-.24645.0633-.37492-.0158-.12846-.0686-.24956-.152-.34852s-.1938-.17151-.3177-.20878c-.124-.03727-.2561-.03766-.3802-.00112l-2.6667.74667c-.0982.02708-.2015.03031-.3012.00944s-.193-.06525-.2721-.12944c-.9905-.74285-2.1683-1.195209-3.4013-1.306396-1.2331-.111186-2.4728.123196-3.5802.676876-1.1073.55369-2.0387 1.40481-2.6895 2.45798-.6509 1.05317-.9957 2.26679-.9957 3.50487v.48c.0006.0819-.029.16114-.0831.22262s-.1289.10089-.2102.11072c-3.7467.44-7.33338-1.46667-11.20004-5.92-.08155-.09626-.18873-.1674-.3091-.20516s-.24899-.0406-.3709-.00818c-.11614.04882-.21569.13017-.28666.23425-.07097.10409-.11033.22648-.11334.35242-.54034 2.19333-.32423 4.50485.61333 6.56.02918.05311.04448.11273.04448.17333s-.0153.12022-.04448.17334c-.03586.05301-.08679.09404-.14621.11781s-.1246.02918-.18712.01552l-1.50667-.29333c-.1066-.01447-.2151-.00392-.31693.03079-.10182.03471-.194166.09264-.269735.16921-.07271.07745-.126262.17086-.156363.27273-.030101.1019-.035913.2094-.01697.3139.115118 1.0233.458898 2.0076 1.005888 2.88.547.8724 1.2832 1.6106 2.15411 2.16.05217.0316.09468.0769.12289.131s.04105.1148.03711.1757c-.00065.0632-.02.1247-.05559.1769s-.08584.0927-.14441.1164l-.72.28c-.17051.0747-.30467.2137-.37333.3867-.03594.0843-.05447.175-.05447.2667 0 .0916.01853.1823.05447.2666.39079.8551.98314 1.6027 1.72626 2.1786s1.61484.963 2.5404 1.1281c.06581.0196.12463.0577.16952.1097.04488.0519.07397.1157.08382.1836.00659.0714-.00911.1431-.04492.2051-.03582.0621-.09.1116-.15508.1416-1.80613.7396-3.74172 1.1113-5.69334 1.0933-.17681-.0353-.360423.001-.510452.101s-.254181.2556-.289543.4324.000962.3604.100981.5104c.100019.1501.255541.2542.432354.2896 3.39484 1.6163 7.09419 2.4934 10.85334 2.5733 3.3057.0488 6.5524-.8788 9.3333-2.6667 2.2887-1.5249 4.1637-3.5932 5.4574-6.02 1.2937-2.4269 1.9657-5.1365 1.956-7.88663v-1.16c-.0001-.09697.0213-.19275.0628-.28039.0416-.08763.1021-.16493.1772-.22628z" fill="currentColor"></path></symbol><symbol id="am-symbol-instagram" viewbox="0 0 32 33"><g fill="currentColor"><path d="m24.6667.459961h-17.33337c-1.94383.003525-3.80705.777269-5.18155 2.151779-1.374507 1.3745-2.14825535 3.23772-2.15178 5.18155v17.33331c.00352465 1.9439.777273 3.8071 2.15178 5.1816 1.3745 1.3745 3.23772 2.1482 5.18155 2.1518h17.33337c1.9438-.0036 3.807-.7773 5.1815-2.1518s2.1483-3.2377 2.1518-5.1816v-17.33331c-.0035-1.94383-.7773-3.80705-2.1518-5.18155-1.3745-1.37451-3.2377-2.148254-5.1815-2.151779zm2 21.333339c0 1.4145-.5619 2.771-1.5621 3.7712s-2.3568 1.5621-3.7713 1.5621h-10.6666c-1.41452 0-2.77108-.5619-3.77127-1.5621s-1.5621-2.3567-1.5621-3.7712v-10.6667c0-1.41446.56191-2.77101 1.5621-3.77121 1.00019-1.00019 2.35675-1.5621 3.77127-1.5621h10.6666c1.4145 0 2.7711.56191 3.7713 1.5621 1.0002 1.0002 1.5621 2.35675 1.5621 3.77121z"></path><path d="m15.9998 21.7934c2.9456 0 5.3334-2.3878 5.3334-5.3334 0-2.9455-2.3878-5.3333-5.3334-5.3333-2.9455 0-5.3333 2.3878-5.3333 5.3333 0 2.9456 2.3878 5.3334 5.3333 5.3334z"></path><path d="m22.6668 11.1266c.7364 0 1.3334-.5969 1.3334-1.33331 0-.73638-.597-1.33333-1.3334-1.33333s-1.3333.59695-1.3333 1.33333c0 .73641.5969 1.33331 1.3333 1.33331z"></path></g></symbol><symbol id="am-symbol-youtube" viewbox="0 0 32 23"><path d="m26.7467.126709h-21.49337c-1.38683.020651-2.71107.580756-3.69182 1.561511-.980754.98075-1.5408589 2.30499-1.56151 3.69182v12.15996c.0206511 1.3869.580756 2.7111 1.56151 3.6919.98075.9807 2.30499 1.5408 3.69182 1.5615h21.49337c1.3868-.0207 2.711-.5808 3.6918-1.5615.9807-.9808 1.5408-2.305 1.5615-3.6919v-12.15996c-.0207-1.38683-.5808-2.71107-1.5615-3.69182-.9808-.980755-2.305-1.54086-3.6918-1.561511zm-4.6934 11.333291-9.0266 5.8134c-.1055.0731-.2317.1105-.36.1066-.1117.0006-.2218-.0269-.32-.08-.1043-.0586-.1913-.1437-.2522-.2467-.0608-.103-.0934-.2203-.0945-.3399v-11.54669c.0011-.11964.0337-.23689.0945-.33989.0609-.10301.1479-.18813.2522-.24678.1024-.06242.22-.09544.34-.09544.1199 0 .2375.03302.34.09544l9.0266 5.77336c.0936.0604.1705.1433.2238.2412.0533.0978.0812.2074.0812.3188s-.0279.221-.0812.3188-.1302.1807-.2238.2412z" fill="currentColor"></path></symbol></svg> <!-- This request was rendered through a Zephr passthrough request --> <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WM35TFR" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> <div class="wp-site-blocks"><div id="page" class="site"> <a class="skip-link" href="#content">Skip to content</a> <div> </div> <div> </div> <header id="masthead" class="site-header" data-component="siteHeader"> <div class="site-header__brand-bar container container--site"> <div class="site-header__brand-bar-inner"> <a href="/" aria-label="TheWrap home" rel="home" class="site-header__logo-link"> <svg aria-hidden="true" focusable="false" width="266.42" height="40" class="site-header__logo"><use href="#am-symbol-logo"></use></svg> </a> <div class="site-header__log-in"> <a href="/join-pro/" class="site-header__subscribe">Subscribe to PRO</a> </div><a class="site-header__zephr-login" href="/login" target="_blank"> Login </a><script type="text/javascript"> if (!window.Zephr) window.Zephr = {}; if (!window.Zephr.outcomes) window.Zephr.outcomes = {}; window.Zephr.outcomes['navigation-button'] = { featureLabel: 'Navigation Button', outcomeId: 'transformation/1', outcomeLabel: 'Login Button' }; </script> </div> </div> <div class="site-header__menu-bar container container--site"> <div class="site-header__collapsed-view"> <button aria-label="Menu" aria-controls="primary-menu-wrapper" class="site-header__menu-open" data-component="menu-button"> <svg aria-hidden="true" focusable="false" width="32" height="32"><use href="#am-symbol-menu"></use></svg> </button> <button aria-label="Close" class="site-header__menu-close"> <svg aria-hidden="true" focusable="false" width="32" height="32"><use href="#am-symbol-close"></use></svg> </button> <a href="/join-pro/" class="site-header__subscribe">Subscribe to PRO</a> </div> <div class="site-header__menu" id="primary-menu-wrapper"> <nav id="primary-navigation" aria-label="Main" class="site-header__navigation wp-block-the-wrap-nav-menu"> <h2 id="primary-nav-heading" class="screen-reader-only"> Main Navigation </h2> <ul aria-labelledby="primary-nav-heading" role="list" data-component="menu" id="menu-menu" class="primary-menu"><li id="menu-item-7298489" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-7298489 menu__item primary-menu__item menu__item--has-children primary-menu__item--has-children"><a href="https://www.thewrap.com/category/tv/" id="menu-link-1" aria-controls="primary-menu-submenu-7298489" class="menu__link primary-menu__link">TV<svg aria-hidden="true" focusable="false" width="12.44" height="8" class="menu__toggle-icon primary-menu__toggle-icon"><use href="#am-symbol-chevron-down"></use></svg></a> <ul id="primary-menu-submenu-7298489" role="list" class="sub-menu menu__submenu primary-menu__submenu"> <li id="menu-item-7312159" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7312159 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/tv/" id="menu-link-2" class="menu__submenu-link primary-menu__submenu-link">TV</a></li> <li id="menu-item-7551721" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551721 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/category-column/ratings/" id="menu-link-3" class="menu__submenu-link primary-menu__submenu-link">Ratings</a></li> <li id="menu-item-7551780" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7551780 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/tv-reviews/" id="menu-link-4" class="menu__submenu-link primary-menu__submenu-link">Reviews</a></li> </ul> </li> <li id="menu-item-7312160" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-7312160 menu__item primary-menu__item menu__item--has-children primary-menu__item--has-children"><a href="https://www.thewrap.com/category/movies/" id="menu-link-5" aria-controls="primary-menu-submenu-7312160" class="menu__link primary-menu__link">Movies<svg aria-hidden="true" focusable="false" width="12.44" height="8" class="menu__toggle-icon primary-menu__toggle-icon"><use href="#am-symbol-chevron-down"></use></svg></a> <ul id="primary-menu-submenu-7312160" role="list" class="sub-menu menu__submenu primary-menu__submenu"> <li id="menu-item-7551900" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551900 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/movies/" id="menu-link-6" class="menu__submenu-link primary-menu__submenu-link">Movies</a></li> <li id="menu-item-7551903" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551903 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/category-column/steve-pond/" id="menu-link-7" class="menu__submenu-link primary-menu__submenu-link">Steve Pond</a></li> <li id="menu-item-7551908" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551908 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/reviews/" id="menu-link-8" class="menu__submenu-link primary-menu__submenu-link">Reviews</a></li> <li id="menu-item-7551909" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551909 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/box-office-2/" id="menu-link-9" class="menu__submenu-link primary-menu__submenu-link">Box Office</a></li> <li id="menu-item-7551912" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7551912 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/sundance/" id="menu-link-10" class="menu__submenu-link primary-menu__submenu-link">Sundance</a></li> <li id="menu-item-7657867" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7657867 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/sundance-videos/" id="menu-link-11" class="menu__submenu-link primary-menu__submenu-link">Sundance Videos</a></li> <li id="menu-item-7551913" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551913 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/report-toronto/" id="menu-link-12" class="menu__submenu-link primary-menu__submenu-link">TIFF</a></li> <li id="menu-item-7612690" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7612690 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/report-toronto/" id="menu-link-13" class="menu__submenu-link primary-menu__submenu-link">Report From Toronto</a></li> <li id="menu-item-7551918" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551918 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/report-cannes/" id="menu-link-14" class="menu__submenu-link primary-menu__submenu-link">Cannes</a></li> <li id="menu-item-7551919" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7551919 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/cannes-2024/" id="menu-link-15" class="menu__submenu-link primary-menu__submenu-link">Cannes Magazine</a></li> <li id="menu-item-7551921" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551921 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/category-column/report-cinemacon/" id="menu-link-16" class="menu__submenu-link primary-menu__submenu-link">CinemaCon</a></li> </ul> </li> <li id="menu-item-7298491" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-7298491 menu__item primary-menu__item menu__item--has-children primary-menu__item--has-children"><a href="https://www.thewrap.com/category/awards/" id="menu-link-17" aria-controls="primary-menu-submenu-7298491" class="menu__link primary-menu__link">Awards<svg aria-hidden="true" focusable="false" width="12.44" height="8" class="menu__toggle-icon primary-menu__toggle-icon"><use href="#am-symbol-chevron-down"></use></svg></a> <ul id="primary-menu-submenu-7298491" role="list" class="sub-menu menu__submenu primary-menu__submenu"> <li id="menu-item-7674746" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7674746 menu__submenu-item primary-menu__submenu-item"><a href="https://thewrap.com/visionaries/" id="menu-link-18" class="menu__submenu-link primary-menu__submenu-link">Visionaries</a></li> <li id="menu-item-7312161" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7312161 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/awards/" id="menu-link-19" class="menu__submenu-link primary-menu__submenu-link">Awards</a></li> <li id="menu-item-7551785" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551785 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/emmys/" id="menu-link-20" class="menu__submenu-link primary-menu__submenu-link">Emmys</a></li> <li id="menu-item-7552305" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7552305 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/oscars/" id="menu-link-21" class="menu__submenu-link primary-menu__submenu-link">Oscars</a></li> <li id="menu-item-7552307" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7552307 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/how-i-did-it/" id="menu-link-22" class="menu__submenu-link primary-menu__submenu-link">How I Did It</a></li> </ul> </li> <li id="menu-item-7612392" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-7612392 menu__item primary-menu__item menu__item--has-children primary-menu__item--has-children"><a href="https://www.thewrap.com/the-wrapbook-tv-issue/" id="menu-link-23" aria-controls="primary-menu-submenu-7612392" class="menu__link primary-menu__link">TheWrapBook<svg aria-hidden="true" focusable="false" width="12.44" height="8" class="menu__toggle-icon primary-menu__toggle-icon"><use href="#am-symbol-chevron-down"></use></svg></a> <ul id="primary-menu-submenu-7612392" role="list" class="sub-menu menu__submenu primary-menu__submenu"> <li id="menu-item-7612390" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7612390 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/the-wrapbook-tv-issue/" id="menu-link-24" class="menu__submenu-link primary-menu__submenu-link">TheWrapBook: The Art of Television</a></li> <li id="menu-item-7551712" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7551712 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/the-wrapbook-the-art-of-cinema-2023/" id="menu-link-25" class="menu__submenu-link primary-menu__submenu-link">The WrapBook: The Art of Cinema</a></li> <li id="menu-item-7612394" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7612394 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/wrapstyle/" id="menu-link-26" class="menu__submenu-link primary-menu__submenu-link">WrapStyle</a></li> </ul> </li> <li id="menu-item-7298494" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-7298494 menu__item primary-menu__item menu__item--has-children primary-menu__item--has-children"><a href="https://www.thewrap.com/members-hub" id="menu-link-27" aria-controls="primary-menu-submenu-7298494" class="menu__link primary-menu__link">PRO<svg aria-hidden="true" focusable="false" width="12.44" height="8" class="menu__toggle-icon primary-menu__toggle-icon"><use href="#am-symbol-chevron-down"></use></svg></a> <ul id="primary-menu-submenu-7298494" role="list" class="sub-menu menu__submenu primary-menu__submenu"> <li id="menu-item-7552309" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7552309 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/members-hub/" id="menu-link-28" class="menu__submenu-link primary-menu__submenu-link">Members Hub</a></li> <li id="menu-item-7552319" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7552319 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/data-analysis/" id="menu-link-29" class="menu__submenu-link primary-menu__submenu-link">Data Insights</a></li> <li id="menu-item-7657866" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7657866 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/what-to-watch/" id="menu-link-30" class="menu__submenu-link primary-menu__submenu-link">Streaming Charts</a></li> <li id="menu-item-7592809" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7592809 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/the-grill/" id="menu-link-31" class="menu__submenu-link primary-menu__submenu-link">The Grill</a></li> <li id="menu-item-7633065" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7633065 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/thegrill-2024-panels-videos/" id="menu-link-32" class="menu__submenu-link primary-menu__submenu-link">TheGrill 2024 Videos</a></li> <li id="menu-item-7552314" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7552314 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/wrappro/" id="menu-link-33" class="menu__submenu-link primary-menu__submenu-link">WrapPRO</a></li> </ul> </li> <li id="menu-item-7657863" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7657863 menu__item primary-menu__item"><a href="https://www.thewrap.com/what-to-watch/" id="menu-link-34" class="menu__link primary-menu__link">What to Watch</a></li> <li id="menu-item-7298495" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-7298495 menu__item primary-menu__item menu__item--has-children primary-menu__item--has-children"><a href="#" id="menu-link-35" aria-controls="primary-menu-submenu-7298495" class="menu__link primary-menu__link">More<svg aria-hidden="true" focusable="false" width="12.44" height="8" class="menu__toggle-icon primary-menu__toggle-icon"><use href="#am-symbol-chevron-down"></use></svg></a> <ul id="primary-menu-submenu-7298495" role="list" class="sub-menu menu__submenu primary-menu__submenu"> <li id="menu-item-7643359" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7643359 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/power-women-summit/" id="menu-link-36" class="menu__submenu-link primary-menu__submenu-link">Power Women Summit</a></li> <li id="menu-item-7298533" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7298533 menu__submenu-item primary-menu__submenu-item"><a href="https://thewrapscreenings.splashthat.com/" id="menu-link-37" class="menu__submenu-link primary-menu__submenu-link">Screening Series RSVP</a></li> <li id="menu-item-7552945" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7552945 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/thewrap_screening_series/" id="menu-link-38" class="menu__submenu-link primary-menu__submenu-link">Screenings Archive</a></li> <li id="menu-item-7552946" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7552946 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/webinars/" id="menu-link-39" class="menu__submenu-link primary-menu__submenu-link">Webinars Archive</a></li> <li id="menu-item-7552947" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7552947 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/2023-short-list-film-festival/" id="menu-link-40" class="menu__submenu-link primary-menu__submenu-link">Shortlist Film Festival</a></li> <li id="menu-item-7552948" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7552948 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/bold-steps/" id="menu-link-41" class="menu__submenu-link primary-menu__submenu-link">Bold Steps</a></li> <li id="menu-item-7552950" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7552950 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/how-she-did-it/" id="menu-link-42" class="menu__submenu-link primary-menu__submenu-link">How She Did It</a></li> <li id="menu-item-7552953" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7552953 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/how-i-did-it/" id="menu-link-43" class="menu__submenu-link primary-menu__submenu-link">How I Did It</a></li> <li id="menu-item-7552952" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7552952 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/tag/digital-cover/" id="menu-link-44" class="menu__submenu-link primary-menu__submenu-link">Digital Covers</a></li> <li id="menu-item-7552297" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7552297 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/category-column/waxword/" id="menu-link-45" class="menu__submenu-link primary-menu__submenu-link">Waxword</a></li> <li id="menu-item-7552274" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7552274 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/newsletters/" id="menu-link-46" class="menu__submenu-link primary-menu__submenu-link">Newsletters</a></li> <li id="menu-item-7551928" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7551928 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/latino-power-list-eva-longoria-jenna-ortega/" id="menu-link-47" class="menu__submenu-link primary-menu__submenu-link">Latino Power List</a></li> <li id="menu-item-7551926" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551926 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/tech/" id="menu-link-48" class="menu__submenu-link primary-menu__submenu-link">Tech</a></li> <li id="menu-item-7551925" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551925 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/culture/" id="menu-link-49" class="menu__submenu-link primary-menu__submenu-link">Culture</a></li> <li id="menu-item-7551923" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-7551923 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/media/" id="menu-link-50" class="menu__submenu-link primary-menu__submenu-link">Media</a></li> </ul> </li> </ul></nav> <a href="https://www.thewrap.com/newsletters/" class="site-header__newsletters">Newsletters</a> <a href="/?s=" class="site-header__search-toggle" aria-label="Open search" rel="search" data-component="search-toggle"> <svg aria-hidden="true" focusable="false" width="17" height="17"><use href="#am-symbol-search"></use></svg> </a> <div class="site-header__search" id="header-search-dropdown"> <h2 class="screen-reader-text">Search</h2> <form method="GET" action="https://www.thewrap.com/" role="search" class="search-form" aria-label="Search Form"> <div class="search-form__container"> <div class="search-form__input-wrapper"> <label for="search-form-51" class="screen-reader-text"> Search The Wrap </label> <input type="search" id="search-form-51" class="search-form__input" placeholder="Search" value="" name="s"> <span class="search-form__decoration-icon"> <svg aria-hidden="true" focusable="false" width="25" height="25"><use href="#am-symbol-search"></use></svg> </span> </div> <button type="submit" class="search-form__submit"> <span class="search-form__submit-label">Search</span> <svg aria-hidden="true" focusable="false" width="17" height="17" class="search-form__submit-icon"><use href="#am-symbol-search"></use></svg> </button> </div> </form> </div> <div class="wp-block-button is-style-subscribe" id="zephr-mobile-logout"> <a href="/join-pro/" class="wp-block-button__link wp-element-button"> Subscribe </a> </div> <div class="site-header__social-profiles wp-block-template-part"><nav id="socials-navigation" aria-label="Social Media" class="social-profiles"> <h2 id="socials-nav-heading" class="social-profiles__heading">Follow Us</h2> <ul role="list" aria-labelledby="socials-nav-heading" class="social-profiles__social-accounts"> <li><a href="https://www.facebook.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on facebook</span> <svg aria-hidden="true" focusable="false" width="18.42" height="32"><use href="#am-symbol-facebook"></use></svg></a> </li> <li><a href="https://www.twitter.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on twitter</span> <svg aria-hidden="true" focusable="false" width="29.62" height="25"><use href="#am-symbol-twitter"></use></svg></a> </li> <li><a href="https://www.instagram.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on instagram</span> <svg aria-hidden="true" focusable="false" width="31.03" height="32"><use href="#am-symbol-instagram"></use></svg></a> </li> <li><a href="https://www.youtube.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on youtube</span> <svg aria-hidden="true" focusable="false" width="32" height="23"><use href="#am-symbol-youtube"></use></svg></a> </li> </ul> </nav> </div> </div> </div> <div class="container container--site site-header__nav-stripe"> <nav id="primary-navigation" aria-label="Trending Topics" class="site-header__trending-topics wp-block-the-wrap-nav-menu"> <h2 id="trending-topics-nav-heading" class="trending-topics__nav-heading"> Trending Topics: </h2> <ul aria-labelledby="trending-topics-nav-heading" role="list" id="menu-global-wrap-trending-bar" class="trending-topics-menu"><li id="menu-item-7674722" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7674722 menu__item trending-topics-menu__item"><a href="https://thewrap.com/visionaries" id="menu-link-52" class="menu__link trending-topics-menu__link">Visionaries</a></li> </ul></nav> </div> <div class="zephr_banner"></div> </header> <div id="content" class="site-content container"> <div id="primary" class="content-area"> <main id="main" class="site-main"> <article> <h1 class="screen-reader-text wp-block-post-title">Subscribe to WrapPro</h1> <div class="content-wrapper"> <div class="entry-content entry-content--site-max container wp-block-post-content has-global-padding is-layout-constrained wp-container-core-post-content-is-layout-1 wp-block-post-content-is-layout-constrained"> <div class="wp-block-cover alignfull has-parallax"><span aria-hidden="true" class="wp-block-cover__background has-true-black-background-color has-background-dim-80 has-background-dim"></span><div role="img" class="wp-block-cover__image-background wp-image-7361378 has-parallax" style="background-position:50% 50%;background-image:url(https://www.thewrap.com/wp-content/uploads/2023/09/Hollywood-Blvd-Background.jpg)"></div><div class="wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow"> <div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex"> <div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"> <div style="height:65px" aria-hidden="true" class="wp-block-spacer"></div> <figure class="wp-block-image aligncenter size-large is-resized"><a href="https://www.thewrap.com/"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/05/the_wrap_pro_logo_master_white.png?w=1200&quality=80&ssl=1" alt="" style="aspect-ratio:7.8125;object-fit:contain;width:292px;height:auto"></a></figure> <div style="height:8px" aria-hidden="true" class="wp-block-spacer"></div> <h1 class="wp-block-heading has-text-align-center" style="color: white !important;"><strong>Essential Insights & Expert Analysis for Industry Professionals.</strong></h1> <div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div> </div> </div> <div class="entry-content-joinpro"></div> <style>.zephr-form-progress-bar.svelte-d78fa2{width:100%;border:0;border-radius:20px;margin-top:10px}.zephr-form-progress-bar.svelte-d78fa2::-webkit-progress-bar{background-color:var(--zephr-color-background-tinted);border:0;border-radius:20px}.zephr-form-progress-bar.svelte-d78fa2::-webkit-progress-value{background-color:var(--zephr-color-text-tinted);border:0;border-radius:20px}.zephr-progress-bar-step.svelte-d78fa2{margin:auto;color:var(--zephr-color-text-tinted);font-size:var(--zf-subtext-fontSize);font-family:var(--zf-root-fontFamily);cursor:pointer}.zephr-progress-bar-step.svelte-d78fa2:first-child{margin-left:0}.zephr-progress-bar-step.svelte-d78fa2:last-child{margin-right:0}.zephr-progress-bar-step.disabled.svelte-d78fa2{cursor:default} .zephr-form-button-top-margin.svelte-1eqnyqe{margin-top:20px}.zephr-form-button.svelte-1eqnyqe{padding:0 20px;text-decoration:none;text-transform:capitalize;border-radius:calc(var(--zephr-button-borderRadius) * 1px);font-size:var(--zf-button-fontSize);font-weight:normal;cursor:pointer;border-style:solid;border-width:calc(var(--zephr-button-borderWidth) * 1px);border-color:var(--zephr-color-action-tinted);transition:backdrop-filter 0.2s, background-color 0.2s;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--zephr-color-action-main);color:var(--zf-button-color);position:relative;overflow:hidden;font-family:var(--zf-root-fontFamily)}.zephr-form-button.svelte-1eqnyqe:hover{background-color:var(--zephr-color-action-tinted);border-color:var(--zephr-color-action-tinted)}.zephr-form-button.svelte-1eqnyqe:disabled{background-color:var(--zephr-color-background-tinted);border-color:var(--zephr-color-background-tinted)}.zephr-form-button.svelte-1eqnyqe:disabled:hover{background-color:var(--zephr-color-background-tinted);border-color:var(--zephr-color-background-tinted)}.zephr-form-button.inputHeight.svelte-1eqnyqe{height:calc(var(--zephr-input-height) * 1px)}.zephr-form-button.svelte-1eqnyqe:not(inputHeight){height:calc(var(--zephr-button-height) * 1px)}.zephr-form-button.aside.svelte-1eqnyqe{width:auto;margin-left:10px} .payment-option-wrapper.svelte-wecxzz>input[type="radio"].svelte-wecxzz{display:none}.payment-option-wrapper.svelte-wecxzz.svelte-wecxzz{display:flex;flex:1 0 28%;width:100%}.payment-option-wrapper.svelte-wecxzz.svelte-wecxzz:only-child{max-width:325px}.box-container.svelte-wecxzz.svelte-wecxzz{display:flex;flex-direction:column;flex:1 1 0;width:0;text-align:center}.inner-box.svelte-wecxzz.svelte-wecxzz{border:var(--zf-payment-options-border);border-radius:var(--zf-payment-options-borderRadius);background-color:var(--zf-payment-options-bgColor);height:100%;display:flex;flex-direction:column}.box-container.highlighted.svelte-wecxzz .inner-box.svelte-wecxzz{border-top-left-radius:0;border-top-right-radius:0}.box-container.svelte-wecxzz .box-content.svelte-wecxzz{flex-grow:1;padding:30px 20px;margin:0 10px;overflow:hidden}.box-container.svelte-wecxzz .styled-box-content.svelte-wecxzz{color:var(--zephr-color-text-main);font-family:var(--zf-root-fontFamily)} .box-container .styled-box-content h1, .box-container .styled-box-content h2, .box-container .styled-box-content h3, .box-container .styled-box-content p, .box-container .styled-box-content span {color:var(--zephr-color-text-main);font-family:var(--zf-root-fontFamily)}.payment-options-container .box-container .styled-box-content button{color:#fff;background-color:var(--zephr-color-action-main);border-width:calc(var(--zephr-button-borderWidth) * 1px);border-color:var(--zephr-color-action-tinted);border-radius:calc(var(--zephr-button-borderRadius) * 1px);font-size:var(--zf-button-fontSize)}.payment-options-container .box-container .styled-box-content button:hover{background-color:var(--zephr-color-action-tinted);border-color:var(--zephr-color-action-tinted)}.payment-options-container .box-container .box-content img{max-width:210px;height:auto}.box-top.svelte-wecxzz.svelte-wecxzz{height:40px}.box-container.highlighted.svelte-wecxzz .box-top.svelte-wecxzz{color:var(--zf-payment-options-highlighted-color);background-color:var(--zf-payment-options-highlighted-bgColor);position:relative;border:var(--zf-payment-options-border);border-bottom-width:0;border-radius:var(--zf-payment-options-borderRadius);border-bottom-left-radius:0;border-bottom-right-radius:0;display:flex;justify-content:center;align-items:center}.box-container.highlighted.svelte-wecxzz .box-top .box-top-text.svelte-wecxzz{font-weight:bold}.box-container.svelte-wecxzz .box-bottom.svelte-wecxzz{min-height:60px;display:flex;flex-direction:column;align-items:center;padding:20px 0 30px;margin:0 30px}.button-sub-text.svelte-wecxzz.svelte-wecxzz{margin-top:10px} .payment-options-container.svelte-15oxdku{flex-wrap:wrap;font-size:var(--zf-payment-options-fontSize);width:100%;color:var(--zf-payment-options-color);line-height:18px;padding:31px 0 20px;display:grid;justify-content:space-evenly;justify-items:center;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));gap:13px}@media(max-width: 340px){.payment-options-container.svelte-15oxdku{grid-template-columns:repeat(auto-fit, minmax(280px, 1fr))}} .zephr-form-error-message-min-height.svelte-719cfr{min-height:1.1em}.zephr-form-error-message.svelte-719cfr{color:var(--zephr-color-warning-main);font-size:var(--zf-subtext-fontSize);margin-top:0.5em;position:relative;margin-left:1.2em;margin-right:1.2em} .zephr-form-input-inner-container.svelte-127vcsp{position:relative}.zephr-form-input-full-width.svelte-127vcsp{width:100%}.zephr-form-input.svelte-127vcsp{width:100%;display:block;height:calc(var(--zephr-input-height) * 1px);padding-left:8px;font-size:var(--zf-input-fontSize);border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);border-radius:calc(var(--zephr-input-borderRadius) * 1px);transition:border-color 0.25s ease, box-shadow 0.25s ease;outline:0;color:var(--zephr-color-text-main);background-color:var(--zf-input-bgColor);font-family:var(--zf-root-fontFamily)}.zephr-form-input.svelte-127vcsp::placeholder{color:var(--zephr-color-background-tinted);font-family:var(--zf-root-fontFamily)}.zephr-form-input-checkbox.svelte-127vcsp{width:auto;height:auto;margin:8px 5px 0 0;float:left}.zephr-form-input-radio.svelte-127vcsp{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.zephr-form-input-color[type="color"].svelte-127vcsp{width:50px;padding:0;border-radius:50%}.zephr-form-input-color[type="color"].svelte-127vcsp::-webkit-color-swatch{border:none;border-radius:50%;padding:0}.zephr-form-input-color[type="color"].svelte-127vcsp::-webkit-color-swatch-wrapper{border:none;border-radius:50%;padding:0}.zephr-form-input.disabled.svelte-127vcsp,.zephr-form-input.disabled.svelte-127vcsp:hover{border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);background-color:var(--zephr-color-background-tinted)}.zephr-form-input.error.svelte-127vcsp{border:1px solid var(--zephr-color-warning-main)} .zephr-form-input-label.svelte-vnzoa4.svelte-vnzoa4{margin-top:10px;display:block;line-height:30px;font-size:var(--zf-subtext-fontSize);color:var(--zephr-color-text-tinted);font-family:var(--zf-root-fontFamily)}.zephr-form-input-label.svelte-vnzoa4.svelte-vnzoa4:first-child{margin-top:0}.zephr-form-input-label.svelte-vnzoa4 span.svelte-vnzoa4{display:block} .svelte-fa-base{height:1em;overflow:visible;transform-origin:center;vertical-align:-0.125em}.svelte-fa-fw{text-align:center;width:1.25em}.svelte-fa-pull-left.svelte-bvo74f{float:left}.svelte-fa-pull-right.svelte-bvo74f{float:right}.svelte-fa-size-lg.svelte-bvo74f{font-size:1.33333em;line-height:0.75em;vertical-align:-0.225em}.svelte-fa-size-sm.svelte-bvo74f{font-size:0.875em}.svelte-fa-size-xs.svelte-bvo74f{font-size:0.75em}.spin.svelte-bvo74f{animation:svelte-bvo74f-spin 2s 0s infinite linear}.pulse.svelte-bvo74f{animation:svelte-bvo74f-spin 1s infinite steps(8)}@keyframes svelte-bvo74f-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} .svelte-fa-layers.svelte-1sinijc{display:inline-block;position:relative}.svelte-fa-layers.svelte-1sinijc .svelte-fa{position:absolute;bottom:0;left:0;right:0;top:0;margin:auto;text-align:center}.svelte-fa-layers.svelte-1sinijc .svelte-fa-layers-text{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.svelte-fa-layers.svelte-1sinijc .svelte-fa-layers-text span{display:inline-block}.svelte-fa-pull-left.svelte-1sinijc{float:left}.svelte-fa-pull-right.svelte-1sinijc{float:right}.svelte-fa-size-lg.svelte-1sinijc{font-size:1.33333em;line-height:0.75em;vertical-align:-0.225em}.svelte-fa-size-sm.svelte-1sinijc{font-size:0.875em}.svelte-fa-size-xs.svelte-1sinijc{font-size:0.75em} .container.svelte-1x0c3df{display:inline-block;height:auto}.svelte-fa-size-lg.svelte-1x0c3df{font-size:1.33333em;line-height:0.75em;vertical-align:-0.225em}.svelte-fa-size-sm.svelte-1x0c3df{font-size:0.875em}.svelte-fa-size-xs.svelte-1x0c3df{font-size:0.75em} .zephr-form-password-match.svelte-11tz5c7.svelte-11tz5c7{margin:20px 0;justify-content:center}.zephr-form-password-match.svelte-11tz5c7 ul.svelte-11tz5c7{padding-left:0;margin:0}.zephr-form-password-requirement.svelte-11tz5c7.svelte-11tz5c7{display:flex;align-items:center;color:var(--zephr-color-text-tinted);font-size:var(--zf-subtext-fontSize);min-height:20px;font-family:var(--zf-root-fontFamily)}.zephr-form-password-requirement-icon.svelte-11tz5c7.svelte-11tz5c7{margin-right:10px;font-size:15px} .zephr-form-password-progress.svelte-1b6w0g8.svelte-1b6w0g8{display:flex;margin-top:10px}.zephr-form-password-bar.svelte-1b6w0g8.svelte-1b6w0g8{width:100%;height:4px;border-radius:2px}.zephr-form-password-bar.svelte-1b6w0g8.svelte-1b6w0g8:not(:first-child){margin-left:8px}.zephr-form-password-requirements.svelte-1b6w0g8.svelte-1b6w0g8{margin:20px 0;justify-content:center}.zephr-form-password-requirements.svelte-1b6w0g8 ul.svelte-1b6w0g8{padding-left:0;margin:0}.zephr-form-password-requirement.svelte-1b6w0g8.svelte-1b6w0g8{display:flex;align-items:center;color:var(--zephr-color-text-tinted);font-size:var(--zf-subtext-fontSize);min-height:20px;font-family:var(--zf-root-fontFamily)}.zephr-form-password-requirement-icon.svelte-1b6w0g8.svelte-1b6w0g8{margin-right:10px;font-size:15px} .apple-pay-button{display:inline-block;-webkit-appearance:-apple-pay-button;-apple-pay-button-type:pay;width:440px;max-width:100%;height:45px;margin-top:20px}.apple-pay-button-black{-apple-pay-button-style:black}#google-pay-button.svelte-1acsmhs{width:440px;max-width:100%;height:45px;margin-top:20px} #braintree-dropin-container.svelte-z7jd27{margin-top:1em;margin-bottom:1em} #stripe-element.svelte-1lhuc6b{margin-top:2em;margin-bottom:1em;border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);border-radius:calc(var(--zephr-input-borderRadius) * 1px);padding:1em}#stripe-element.svelte-1lhuc6b iframe:focus{outline:none !important} #stripe-mobile-pay-button.svelte-1t95nqv{width:440px;max-width:100%;height:45px;margin-top:20px} .spinner-container.svelte-1isq5k3{text-align:center;padding:2em} #zuora_payment.svelte-1a5rslt{margin-top:1em;margin-bottom:1em}.zuora-disabled-iframe-container.svelte-1a5rslt .z_hppm_iframe{pointer-events:none;opacity:0.3}.zuora-dynamic-form-disabled.svelte-1a5rslt{pointer-events:none;opacity:0.3}.spinner-overlay.svelte-1a5rslt{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center}.form-wrapper.svelte-1a5rslt{position:relative} #payment-element.svelte-1oygrrs{margin-top:1em;margin-bottom:1em;border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);border-radius:calc(var(--zephr-input-borderRadius) * 1px);padding:1em} .check-image.svelte-12ljnq4{height:1.2em;vertical-align:middle;margin-right:0.5em}.zephr-form-success-message.svelte-12ljnq4{color:var(--zephr-color-text-main);display:inline-block} .zephr-form-verification-resend-link-container.svelte-b6r3ph{margin-bottom:2em}.zephr-form-verification-resend-link.svelte-b6r3ph,.zephr-form-verification-resend-text.svelte-b6r3ph{float:right;position:absolute;padding-right:2px;padding-top:0.5em;padding-left:0.5em;font-size:var(--zf-subtext-fontSize);right:0}.zephr-form-verification-resend-link.svelte-b6r3ph{cursor:pointer;color:var(--zf-link-color)} .zephr-form-custom-text.svelte-12fdogm{margin-top:1em;margin-bottom:1em;color:var(--zephr-color-text-main)} .zephr-form-checkbox.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.zephr-form-checkbox-label.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32{display:flex;align-items:center;font-family:var(--zf-root-fontFamily)}.zephr-form-checkmark.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32{position:relative;box-sizing:border-box;height:23px;width:23px;background-color:#fff;border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);border-radius:6px;margin-right:12px;cursor:pointer}.zephr-form-checkmark.checked.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32{border-color:var(--zephr-color-action-main)}.zephr-form-checkmark.checked.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32:after{content:"";position:absolute;width:6px;height:13px;border:solid var(--zephr-color-action-main);border-width:0 2px 2px 0;transform:rotate(45deg);top:3px;left:8px;box-sizing:border-box}.zephr-form-checkmark.disabled.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32{border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-color-background-tinted)}.zephr-form-checkmark.disabled.checked.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32:after{border:solid var(--zephr-color-background-tinted);border-width:0 2px 2px 0}.zephr-form-checkmark.error.svelte-eyzg32.svelte-eyzg32.svelte-eyzg32{border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-color-warning-main)}.zephr-form-checkbox.svelte-eyzg32:focus-visible+.zephr-form-checkbox-label.svelte-eyzg32>.zephr-form-checkmark.svelte-eyzg32{outline:2px solid var(--zephr-color-action-main);outline-color:-webkit-focus-ring-color} .zephr-form-input-radio.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.zephr-form-radio-label.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv{display:flex;align-items:center;font-family:var(--zf-root-fontFamily)}.zephr-form-radio-dot.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv{display:block;position:relative;box-sizing:border-box;height:23px;width:23px;background-color:#fff;border:1px solid #ebebeb;border-radius:50%;margin-right:12px;cursor:pointer}.checked.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv{border-color:var(--zephr-color-action-main)}.checked.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv:after{content:"";position:absolute;width:17px;height:17px;background:var(--zephr-color-action-main);border-radius:50%;top:2px;left:2px}.disabled.checked.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv:after{background:var(--zephr-color-background-tinted)}.error.svelte-17rnpjv.svelte-17rnpjv.svelte-17rnpjv{border:1px solid var(--zephr-color-warning-main)}.zephr-form-input-radio.svelte-17rnpjv:focus-visible+.zephr-form-radio-label.svelte-17rnpjv>.zephr-form-radio-dot.svelte-17rnpjv{outline:2px solid var(--zephr-color-action-main);outline-color:-webkit-focus-ring-color} .zephr-form-input-error-text.svelte-1f2hwm0{color:var(--zephr-color-warning-main);font-family:var(--zf-root-fontFamily)}.zephr-form-input-select.svelte-1f2hwm0{display:block;appearance:auto;width:100%;height:calc(var(--zephr-input-height) * 1px);font-size:var(--zf-input-fontSize);font-family:var(--zf-root-fontFamily);border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);border-radius:calc(var(--zephr-input-borderRadius) * 1px);transition:border-color 0.25s ease, box-shadow 0.25s ease;outline:0;color:var(--zephr-color-text-main);background-color:var(--zf-input-bgColor);padding:10px}.zephr-form-input-select.unselected.svelte-1f2hwm0{color:var(--zephr-color-background-tinted)}.zephr-form-input-select.error.svelte-1f2hwm0{border-color:var(--zephr-color-warning-main)}.zephr-form-input-textarea.svelte-1f2hwm0{display:block;min-height:calc(var(--zephr-input-height) * 1px);min-width:100%;max-width:100%;background-color:var(--zf-input-bgColor);border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);border-radius:calc(var(--zephr-input-borderRadius) * 1px);transition:border-color 0.25s ease, box-shadow 0.25s ease;color:var(--zephr-color-text-main);font-size:var(--zf-input-fontSize);font-weight:300;padding:16px 8px;font-family:var(--zf-root-fontFamily);outline:0}.zephr-form-input-textarea.svelte-1f2hwm0::placeholder{color:var(--zephr-color-background-tinted);font-family:var(--zf-root-fontFamily)}.zephr-form-input-slider-output.svelte-1f2hwm0{margin:13px 0 0 10px} .zephr-form-link.svelte-1mdtotm{margin:10px 0;color:var(--zf-link-color);text-decoration:underline;cursor:pointer;font-family:var(--zf-root-fontFamily)}.zephr-form-link-disabled.svelte-1mdtotm{color:var(--zephr-color-text-main);cursor:not-allowed;text-decoration:none}.zephr-form-link-no-underline.svelte-1mdtotm{text-decoration:none} .zephr-form-reset-link-container.svelte-11qigta{min-height:2.5em}.zephr-form-link-message.svelte-11qigta{margin:10px 0 10px 20px;font-family:var(--zf-root-fontFamily)} .zephr-form-reset-link-container.svelte-11qigta{min-height:2.5em}.zephr-form-link-message.svelte-11qigta{margin:10px 0 10px 20px;font-family:var(--zf-root-fontFamily)} .zephr-form-google-icon.svelte-155mfls{width:20px} .zephr-form-social-sign-in.svelte-18a7qws{align-items:center}.zephr-form-social-sign-in-button.svelte-18a7qws{width:100%;min-height:55px;padding:15px;color:#000;background-color:#fff;box-shadow:0 0 5px rgba(0, 0, 0, 0.3);border-radius:10px;font-size:17px;display:flex;align-items:center;cursor:pointer;margin-top:20px;font-family:var(--zf-root-fontFamily)}.zephr-form-social-sign-in-button.svelte-18a7qws:hover{background-color:#fafafa}.zephr-form-social-sign-in-icon.svelte-18a7qws{display:flex;justify-content:center;margin-right:30px;width:25px} .zephr-form-promo-input-container.svelte-19l6fte{flex:0.6}.zephr-form-promo-activate-line.svelte-19l6fte{display:flex;cursor:pointer;min-height:calc(var(--zephr-input-height) * 1px);margin:1em 1.2em;font-size:var(--zf-payment-summary-fontSize);line-height:calc(var(--zephr-input-height) * 1px);color:var(--zf-link-color)}.zephr-form-promo-line.svelte-19l6fte{display:flex;min-height:calc(var(--zephr-input-height) * 1px);margin:1em 1.2em}.zephr-form-addon-line.svelte-19l6fte{display:flex;padding-top:1em;padding-bottom:1em;margin-left:1.2em}.zephr-form-summary-prorate-disclaimer.svelte-19l6fte{padding-top:0.25em;padding-left:1em;color:var(--zephr-color-text-tinted)}.zephr-form-summary-charge-description.svelte-19l6fte{color:var(--zephr-color-text-tinted)}.zephr-form-charge-line.svelte-19l6fte{display:flex;padding-top:1em;margin-left:1.2em;padding-left:1em}.zephr-form-summary-line-right.svelte-19l6fte{margin-left:auto;margin-right:1.5em;text-align:right}.zephr-form-summary-line-left.svelte-19l6fte{margin-left:10px}.zephr-form-summary-promo-middle.svelte-19l6fte{position:relative;top:calc(var(--zephr-input-height) * 0.5px)}.zephr-form-summary.svelte-19l6fte{border:var(--zf-payment-summary-border);border-radius:var(--zf-payment-summary-borderRadius);padding-top:1em;padding-bottom:1em;font-size:var(--zf-payment-summary-fontSize);margin-top:1.5em;margin-bottom:1.5em;color:var(--zf-payment-summary-color);background-color:var(--zf-payment-summary-bgColor)}.zephr-form-summary.svelte-19l6fte:first-child{margin-top:0}.zephr-form-summary-title.svelte-19l6fte{margin-bottom:1em;margin-left:1.2em}.zephr-form-summary-price-line.svelte-19l6fte{font-weight:bold;padding-left:1em;padding-top:1em}.zephr-form-summary-line.svelte-19l6fte{display:flex}.zephr-form-summary-price-line-upper.svelte-19l6fte{border-top:var(--zf-payment-summary-border);margin-top:1em}.zephr-form-summary-line-title.svelte-19l6fte{flex:0 0 65%;margin-left:1.2em}.zephr-form-summary-line-price.svelte-19l6fte{flex:1;text-align:right;margin-right:1.5em} .zephr-form-divider-container.svelte-svq2r5{display:flex;align-items:center;justify-content:center;margin:1.5em 0}.zephr-form-divider-line.svelte-svq2r5{height:1px;width:50%;margin:0 5px;background-color:var(--zephr-color-text-tinted)}.zephr-form-divider-line-complete.svelte-svq2r5{height:1px;width:100%;margin:0 5px;background-color:var(--zephr-color-text-tinted)}.zephr-form-divider-text.svelte-svq2r5{margin:0 12px;color:var(--zephr-color-text-main);font-size:var(--zf-info-fontSize);font-family:var(--zf-root-fontFamily);white-space:nowrap} .zephr-form-login-link.svelte-1bpa3mq.svelte-1bpa3mq{margin-top:1em;margin-bottom:1em;text-align:center}.zephr-form-login-link.svelte-1bpa3mq>a.svelte-1bpa3mq{color:var(--zf-link-color);margin-left:0.25em} .zephr-form-account-code-container.svelte-ctt9he{margin-top:1.5em} .zephr-form-invitation-container.svelte-yy7ok3{border:1px solid;margin:1.5em 0;padding:20px;color:var(--zephr-color-text-main)}.zephr-form-invitation-title.svelte-yy7ok3{margin-bottom:20px;font-weight:bold;font-family:var(--zf-root-fontFamily)}.zephr-form-invitation-email.svelte-yy7ok3{display:flex;align-items:center}.zephr-form-invitation-input-container.svelte-yy7ok3{flex-grow:1}.zephr-form-invitation-success-message.svelte-yy7ok3{margin-top:0.5em} .subscription-option-product-label{margin-bottom:5px;margin-top:0}.subscription-option-wrapper.svelte-1ecrab7{display:flex;flex:1 0 28%;width:100%;max-width:400px}.subscription-option-wrapper.svelte-1ecrab7:only-child{max-width:325px}.subscription-option-box{display:flex;flex-direction:column;flex:1 1 0;width:0}.info-row.svelte-1ecrab7{margin-top:7px;margin-bottom:7px}.info-label.svelte-1ecrab7{display:inline;margin-right:10px}.info.svelte-1ecrab7{display:inline}hr.svelte-1ecrab7{border-width:1px 0px 0px;margin:5px 5px;border-color:var(--zephr-color-background-tinted)}.inner-box.svelte-1ecrab7{border:var(--zf-payment-options-border);border-radius:var(--zf-payment-options-borderRadius);background-color:var(--zf-payment-options-bgColor);height:100%;display:flex;flex-direction:column;flex-grow:1;padding:20px 20px;margin:0 10px;overflow:hidden}.change-disabled-label.svelte-1ecrab7{margin-top:15px} .subscription-options-container.svelte-1nzbr4y{flex-wrap:wrap;font-size:var(--zf-payment-options-fontSize);width:100%;color:var(--zf-payment-options-color);line-height:18px;padding:31px 0 20px;display:grid;justify-content:space-evenly;justify-items:center;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));gap:13px}@media(max-width: 340px){.subscription-options-container.svelte-1nzbr4y{grid-template-columns:repeat(auto-fit, minmax(280px, 1fr))}} .subscription-list-item.svelte-1wg9q7{font-family:var(--zephr-typography-body-font), var(--zephr-typography-body-fallbackFont);color:var(--zephr-color-text-main)}hr.svelte-1wg9q7{border-width:1px 0px 0px;margin:20px 0px;border-color:var(--zephr-color-background-tinted)}.inactive.svelte-1wg9q7{text-decoration:line-through}h3.svelte-1wg9q7{margin:0 0 20px}.inner-box.svelte-1wg9q7{display:flex;flex-direction:column;flex-grow:1;padding:30px 20px;margin:0 10px;overflow:hidden;min-width:300px} .zephr-form-tablink.svelte-ky9lgg{display:flex;align-items:center;cursor:pointer;justify-content:space-between;text-decoration:none;color:var(--zephr-color-text-main);font-weight:590;padding:var(--zf-list-subscriptions-section-padding);border-bottom:1px solid var(--zephr-color-background-tinted)}.zephr-form-tablink.svelte-ky9lgg:hover{text-decoration:underline}.zephr-form-tablink.svelte-ky9lgg:last-child{border-bottom:none } .zephr-subscription-list-box-item.svelte-h57nmp.svelte-h57nmp{font-family:var(--zephr-typography-body-font), var(--zephr-typography-body-fallbackFont);color:var(--zephr-color-text-main);max-width:var(--zf-list-subscriptions-container-maxWidth);border-radius:var(--zf-list-subscriptions-container-borderRadius);border:var(--zf-list-subscriptions-container-border);padding:var(--zf-list-subscriptions-container-padding)}.zephr-inner-box.svelte-h57nmp.svelte-h57nmp{display:flex;flex-direction:column;flex-grow:1}.zephr-box-item-information.svelte-h57nmp.svelte-h57nmp{font-size:var(--zf-list-subscriptions-info-fontSize);color:var(--zephr-color-text-tinted);margin-top:8px}.zephr-section.svelte-h57nmp.svelte-h57nmp{padding:var(--zf-list-subscriptions-section-padding);border-bottom:1px solid var(--zephr-color-background-tinted);gap:8px}.zephr-section.svelte-h57nmp.svelte-h57nmp:first-child{padding-top:0;border-bottom:none }.zephr-section.svelte-h57nmp.svelte-h57nmp:last-child{border-bottom:none }.zephr-section.svelte-h57nmp span.svelte-h57nmp{font-weight:590}.zephr-section.svelte-h57nmp h2.svelte-h57nmp{margin:0} .subscriptions-list-container.svelte-2hm0a{margin-top:40px;display:flex;flex-direction:column;gap:40px} .past-subscriptions-link-wrapper.svelte-1gacumx{margin:10px 0} .event-link-wrapper{margin-top:10px}.float-right.svelte-12vtv9v{float:right;margin-top:calc(var(--zephr-input-height) * -1px + 5px)} .bold-label.svelte-121zkre label{font-weight:bold}.read-only-input.svelte-121zkre{border:none;background:none;color:#333;cursor:default;outline:none;flex-grow:1;margin-right:10px;margin-top:15px}.zephr-form-relative-container.svelte-121zkre{display:flex;align-items:center;justify-content:space-between;width:100%}.update-link{white-space:nowrap;text-decoration:none;font-size:0.75em} .bold-label.svelte-121zkre label{font-weight:bold}.read-only-input.svelte-121zkre{border:none;background:none;color:#333;cursor:default;outline:none;flex-grow:1;margin-right:10px;margin-top:15px}.zephr-form-relative-container.svelte-121zkre{display:flex;align-items:center;justify-content:space-between;width:100%}.update-link{white-space:nowrap;text-decoration:none;font-size:0.75em} .zephr-form-ro-attribute{display:flex;align-items:center;height:50px;justify-content:flex-start}.zephr-form-ro-attribute-label{margin-right:10px;&:after { content: ": "; }} hr.svelte-4jb3ht{border-width:1px 0px 0px;margin:20px 0px;border-color:var(--zephr-color-background-tinted)}.session-container.svelte-4jb3ht{padding:15px;display:flex;flex-direction:column}.device-title.svelte-4jb3ht{font-weight:bold;font-size:1.2em;margin-bottom:10px}.current-device.svelte-4jb3ht{color:#777;font-size:0.9em;margin-left:10px}.login-time.svelte-4jb3ht,.browser.svelte-4jb3ht,.country.svelte-4jb3ht{margin-bottom:10px;font-size:0.9em} .sign-out-all.svelte-1gdzu2p{color:#0073e6;cursor:pointer;font-size:1em;margin:20px 0;text-align:center}.sign-out-all.svelte-1gdzu2p:hover{text-decoration:underline} .table.svelte-15e6uru.svelte-15e6uru{display:grid;grid-template-columns:0.7fr 1.4fr 1fr 0.6fr}.table-head.svelte-15e6uru.svelte-15e6uru{display:contents}.table-row.svelte-15e6uru.svelte-15e6uru{display:contents}.table-head.svelte-15e6uru>div.svelte-15e6uru{font-size:13px;padding:13px 10px 10px;border-bottom:1px solid var(--zephr-color-background-tinted)}.table-row.svelte-15e6uru>div.svelte-15e6uru{font-size:var(--zf-info-fontSize);height:60px;padding:0 10px;border-bottom:1px solid var(--zephr-color-background-tinted);display:flex;align-items:center}.table-head.svelte-15e6uru>div.svelte-15e6uru:first-child,.table-row.svelte-15e6uru>div.svelte-15e6uru:first-child{padding-left:0}.table-head.svelte-15e6uru>div.svelte-15e6uru:last-child,.table-row.svelte-15e6uru>div.svelte-15e6uru:last-child{padding-right:0}.taxes.svelte-15e6uru.svelte-15e6uru{color:var(--zephr-color-background-tinted);white-space:pre;font-size:small} .zephr-form-button-group.svelte-s116f2{display:flex;flex-direction:row;gap:12px;margin-top:20px}.zephr-form-back-button.svelte-s116f2{padding:0 20px;border-radius:calc(var(--zephr-button-borderRadius) * 1px);border-style:solid;border-width:calc(var(--zephr-button-borderWidth) * 1px);border-color:var(--zephr-color-action-main);display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--zephr-color-action-main);color:var(--zf-button-color);cursor:pointer}.zephr-form-continue-button.svelte-s116f2{padding:0 20px;border-radius:calc(var(--zephr-button-borderRadius) * 1px);border-style:solid;border-width:calc(var(--zephr-button-borderWidth) * 1px);border-color:var(--zephr-color-action-main);display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--zf-button-color);color:var(--zephr-color-action-main);cursor:pointer}.zephr-form-back-button.svelte-s116f2:hover{background-color:var(--zephr-color-action-tinted);border-color:var(--zephr-color-action-tinted)}.zephr-form-continue-button.svelte-s116f2:hover{background-color:var(--zephr-color-action-tinted);border-color:var(--zephr-color-action-tinted);color:var(--zf-button-color)}.zephr-form-back-button.svelte-s116f2:not(inputHeight){height:calc(var(--zephr-button-height) * 1px)}.zephr-form-continue-button.svelte-s116f2:not(inputHeight){height:calc(var(--zephr-button-height) * 1px)} .zephr-form-button.svelte-16hrghb{padding:0 20px;text-decoration:none;text-transform:capitalize;border-radius:calc(var(--zephr-button-borderRadius) * 1px);font-size:var(--zf-button-fontSize);font-weight:normal;cursor:pointer;border-style:solid;border-width:calc(var(--zephr-button-borderWidth) * 1px);border-color:var(--zephr-color-action-tinted);transition:backdrop-filter 0.2s, background-color 0.2s;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--zephr-color-action-main);color:var(--zf-button-color);position:relative;overflow:hidden;font-family:var(--zf-root-fontFamily);height:calc(var(--zephr-button-height) * 1px)}.zephr-form-button.svelte-16hrghb:hover{background-color:var(--zephr-color-action-tinted);border-color:var(--zephr-color-action-tinted);color:var(--zf-button-color)}.zephr-form-button-top-margin.svelte-16hrghb{margin-top:20px} .zephr-form-max-width{max-width:var(--zf-container-maxWidth);margin:auto}.zephr-form-content.svelte-1v11ws7{padding:var(--zf-container-padding);background-color:var(--zf-container-bgColor);border:var(--zf-container-border);border-radius:var(--zf-container-borderRadius)}.zephr-payment-options-content.svelte-1v11ws7{background-color:transparent;border:none;border-radius:0}.close-button-container.svelte-1v11ws7{text-align:right;width:100%;margin-bottom:15px}.close-button.svelte-1v11ws7{cursor:pointer;display:inline;padding:7px;min-width:32px;min-height:32px;border-radius:16px;margin:1px} .zephr-form{--zf-root-fontSize:16px;--zf-root-fontFamily:var(--zephr-typography-body-font), var(--zephr-typography-body-fallbackFont);--zf-container-maxWidth:440px;--zf-container-padding:20px;--zf-container-margin:20px auto;--zf-container-border:none;--zf-container-borderRadius:calc(var(--zephr-input-borderRadius) * 1px);--zf-container-color:var(--zephr-color-text-main);--zf-container-bgColor:var(--zephr-color-background-main, transparent);--zf-info-fontSize:14px;--zf-subtext-fontSize:12px;--zf-link-color:#6ba5e9;--zf-input-fontSize:var(--zf-root-fontSize);--zf-input-bgColor:var(--zephr-color-background-main, transparent);--zf-button-fontSize:calc(var(--zephr-button-fontSize, 16) * 1px);--zf-button-color:#fff;--zf-password-valid-color:#7bcb7f;--zf-password-invalid-color:#c4c4c4;--zf-payment-options-fontSize:var(--zf-subtext-fontSize);--zf-payment-options-color:var(--zephr-color-text-main);--zf-payment-options-bgColor:var(--zf-container-bgColor);--zf-payment-options-border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);--zf-payment-options-borderRadius:calc(var(--zephr-input-borderRadius) * 1px);--zf-payment-options-highlighted-color:var(--zephr-color-text-main);--zf-payment-options-highlighted-bgColor:var(--zephr-color-accent-main);--zf-payment-summary-fontSize:var(--zf-subtext-fontSize);--zf-payment-summary-color:var(--zephr-color-text-main);--zf-payment-summary-bgColor:var(--zf-input-bgColor);--zf-payment-summary-border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);--zf-payment-summary-borderRadius:calc(var(--zephr-input-borderRadius) * 1px);--zf-list-subscriptions-container-maxWidth:630px;--zf-list-subscriptions-container-padding:24px;--zf-list-subscriptions-section-padding:16px 0px;--zf-list-subscriptions-container-border:calc(var(--zephr-input-borderWidth) * 1px) solid var(--zephr-input-borderColor);--zf-list-subscriptions-container-borderRadius:calc(var(--zephr-input-borderRadius) * 1px);--zf-list-subscriptions-info-fontSize:var(--zf-info-fontSize)}.zephr-form.svelte-jjl1p8{color:var(--zf-container-color);margin:var(--zf-container-margin);font-size:var(--zf-root-fontSize);font-family:var(--zf-root-fontFamily)}.zephr-form *{box-sizing:border-box}:where(.zephr-form) button{text-transform:unset;overflow:visible;font-family:var(--zf-root-fontFamily, unset);font-size:var(--zf-root-fontSize, unset);line-height:unset;margin:unset;padding:unset;border:unset;background:unset;&:hover, &:focus-visible { border: unset; background: unset; }}.zephr-form-disabled-div{pointer-events:none;opacity:0.8}.zephr-form-relative-container{position:relative}.zephr-form-flex-container{display:flex}.zephr-form-input-inner-button{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);right:5px;padding:10px 5px}.zephr-form-input-inner-text{color:var(--zephr-color-text-main);font-size:var(--zf-subtext-fontSize);font-weight:bold;font-family:var(--zf-root-fontFamily)} </style> <script data-cmp-ab="2">!function(){"use strict";function e(){}function t(e,t){for(const r in t)e[r]=t[r];return e}function r(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(r)}function a(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function c(e,t){return e===t||(s||(s=document.createElement("a")),s.href=t,e===s.href)}function l(e,t,r,n){if(e){const o=u(e,t,r,n);return e[0](o)}}function u(e,r,n,o){return e[1]&&o?t(n.ctx.slice(),e[1](o(r))):n.ctx}function p(e,t,r,n){if(e[2]&&n){const o=e[2](n(r));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],r=Math.max(t.dirty.length,o.length);for(let n=0;n<r;n+=1)e[n]=t.dirty[n]|o[n];return e}return t.dirty|o}return t.dirty}function d(e,t,r,n,o,a){if(o){const i=u(t,r,n,a);e.p(i,o)}}function m(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let e=0;e<r;e++)t[e]=-1;return t}return-1}function f(e){return null==e?"":e}function h(e,t){e.appendChild(t)}function y(e,t,r){e.insertBefore(t,r||null)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function b(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function P(e){return document.createElement(e)}function A(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function S(e){return document.createTextNode(e)}function E(){return S(" ")}function C(){return S("")}function v(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function T(e){return function(t){return t.preventDefault(),e.call(this,t)}}function _(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const O=["width","height"];function w(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)null==t[n]?e.removeAttribute(n):"style"===n?e.style.cssText=t[n]:"__value"===n?e.value=e[n]=t[n]:r[n]&&r[n].set&&-1===O.indexOf(n)?e[n]=t[n]:_(e,n,t[n])}function I(e,t){t=""+t,e.data!==t&&(e.data=t)}function R(e,t){e.value=null==t?"":t}function $(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function M(e,t,r){for(let r=0;r<e.options.length;r+=1){const n=e.options[r];if(n.__value===t)return void(n.selected=!0)}r&&void 0===t||(e.selectedIndex=-1)}function N(e,t,r){e.classList.toggle(t,!!r)}function x(e,t){return new e(t)}let L;function F(e){L=e}function z(){if(!L)throw new Error("Function called outside component initialization");return L}function k(e){z().$$.on_mount.push(e)}function D(){const e=z();return(t,r,{cancelable:n=!1}={})=>{const o=e.$$.callbacks[t];if(o){const a=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}(t,r,{cancelable:n});return o.slice().forEach((t=>{t.call(e,a)})),!a.defaultPrevented}return!0}}const B=[],U=[];let V=[];const G=[],j=Promise.resolve();let q=!1;function H(e){V.push(e)}const K=new Set;let Y=0;function W(){if(0!==Y)return;const e=L;do{try{for(;Y<B.length;){const e=B[Y];Y++,F(e),J(e.$$)}}catch(e){throw B.length=0,Y=0,e}for(F(null),B.length=0,Y=0;U.length;)U.pop()();for(let e=0;e<V.length;e+=1){const t=V[e];K.has(t)||(K.add(t),t())}V.length=0}while(B.length);for(;G.length;)G.pop()();q=!1,K.clear(),F(e)}function J(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(H)}}const Q=new Set;let Z;function X(){Z={r:0,c:[],p:Z}}function ee(){Z.r||o(Z.c),Z=Z.p}function te(e,t){e&&e.i&&(Q.delete(e),e.i(t))}function re(e,t,r,n){if(e&&e.o){if(Q.has(e))return;Q.add(e),Z.c.push((()=>{Q.delete(e),n&&(r&&e.d(1),n())})),e.o(t)}else n&&n()}function ne(e){return void 0!==e?.length?e:Array.from(e)}function oe(e,t){const r={},n={},o={$$scope:1};let a=e.length;for(;a--;){const i=e[a],s=t[a];if(s){for(const e in i)e in s||(n[e]=1);for(const e in s)o[e]||(r[e]=s[e],o[e]=1);e[a]=s}else for(const e in i)o[e]=1}for(const e in n)e in r||(r[e]=void 0);return r}function ae(e){return"object"==typeof e&&null!==e?e:{}}function ie(e){e&&e.c()}function se(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),H((()=>{const t=e.$$.on_mount.map(r).filter(a);e.$$.on_destroy?e.$$.on_destroy.push(...t):o(t),e.$$.on_mount=[]})),s.forEach(H)}function ce(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];V.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),V=t}(r.after_update),o(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function le(e,t){-1===e.$$.dirty[0]&&(B.push(e),q||(q=!0,j.then(W)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(t,r,a,i,s,c,l=null,u=[-1]){const p=L;F(t);const d=t.$$={fragment:null,ctx:[],props:c,update:e,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(p?p.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:r.target||p.$$.root};l&&l(d.root);let m=!1;if(d.ctx=a?a(t,r.props||{},((e,r,...n)=>{const o=n.length?n[0]:r;return d.ctx&&s(d.ctx[e],d.ctx[e]=o)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](o),m&&le(t,e)),r})):[],d.update(),m=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),r.target){if(r.hydrate){const e=function(e){return Array.from(e.childNodes)}(r.target);d.fragment&&d.fragment.l(e),e.forEach(g)}else d.fragment&&d.fragment.c();r.intro&&te(t.$$.fragment),se(t,r.target,r.anchor),W()}F(p)}class pe{$$=void 0;$$set=void 0;$destroy(){ce(this,1),this.$destroy=e}$on(t,r){if(!a(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const de="700px",me="10000px",fe="0px",he=500;function ye(e,t){let r=t;e.style.maxHeight=t?me:fe,e.style.overflow=t?"unset":"hidden";const n=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return n&&(e.style.display=t?"unset":"none"),{update(t){if(n)return void(e.style.display=t?"unset":"none");if(t===r)return;r=t;const o=t?de:fe,a=t?fe:de;e.animate([{maxHeight:a,overflow:"hidden"},{maxHeight:o,overflow:"hidden"}],{duration:he,fill:"both"}).addEventListener("finish",(()=>{t&&e.animate([{maxHeight:o,overflow:"hidden"},{maxHeight:me,overflow:"hidden"}],{duration:100,fill:"both"})}))}}}const ge="progress_bar",be="payment_option_selection",Pe="password",Ae="otp_code",Se="button",Ee="payment",Ce="payment-pre-loader",ve="email_address",Te="success_message",_e="text",Oe="user_attribute",we="link",Ie="resend_login_link",Re="social_sign_in",$e="payment_summary",Me="divider",Ne="show_login_link",xe="account_code",Le="mobile_payment",Fe="invitation",ze="template_component",ke="subscription_select",De="event_link",Be="subscriptions_list",Ue="past_subscriptions_link",Ve="billing_history",Ge="change_payment_method_button",je="read_only_email_address",qe="read_only_password",He="read_only_user_attribute",Ke="change_payment_method",Ye="devices_list",We="sign_out_of_devices_button",Je="button_group",Qe="link_button";var Ze;!function(e){e.FORM_START="FORM_START",e.LOGIN_REGISTRATION_COMPLETE="LOGIN_REGISTRATION_COMPLETE",e.SECTION_EMAIL_COMPLETE="SECTION_EMAIL_COMPLETE",e.SECTION_PASSWORD_RESET_COMPLETE="SECTION_PASSWORD_RESET_COMPLETE",e.SECTION_FORGOT_PASSWORD_COMPLETE="SECTION_FORGOT_PASSWORD_COMPLETE",e.PART_PLAN_SELECT_COMPLETE="PART_PLAN_SELECT_COMPLETE",e.PART_ACCOUNT_VERIFICATION_COMPLETE="PART_ACCOUNT_VERIFICATION_COMPLETE",e.PART_PAYMENT_COMPLETE="PART_PAYMENT_COMPLETE",e.PART_SUCCESS_COMPLETE="PART_SUCCESS_COMPLETE",e.PART_CONTACT_VERIFICATION_COMPLETE="PART_CONTACT_VERIFICATION_COMPLETE",e.PART_PROFILE_UPDATE_COMPLETE="PART_PROFILE_UPDATE_COMPLETE",e.PART_EMAIL_UPDATE_COMPLETE="PART_EMAIL_UPDATE_COMPLETE",e.PART_EMAIL_UPDATE_OTP_COMPLETE="PART_EMAIL_UPDATE_OTP_COMPLETE",e.PART_PASSWORD_UPDATE_COMPLETE="PART_PASSWORD_UPDATE_COMPLETE",e.PART_PASSWORD_UPDATE_OTP_COMPLETE="PART_PASSWORD_UPDATE_OTP_COMPLETE",e.PART_ATTRIBUTES_UPDATE_COMPLETE="PART_ATTRIBUTES_UPDATE_COMPLETE",e.REGISTRATION_CUSTOM_COMPLETE="REGISTRATION_CUSTOM_COMPLETE",e.SELECT_SUBSCRIPTION_COMPLETE="SELECT_SUBSCRIPTION_COMPLETE",e.UPDATE="UPDATE",e.GO_BACK="GO_BACK",e.VERIFY_EMAIL_UPDATE_OTP="VERIFY_EMAIL_UPDATE_OTP",e.VERIFY_PASSWORD_UPDATE_OTP="VERIFY_PASSWORD_UPDATE_OTP",e.PART_CHANGE_PAYMENT_COMPLETE="PART_CHANGE_PAYMENT_COMPLETE",e.LIST_DEVICES_SESSIONS="LIST_DEVICES_SESSIONS",e.SIGN_OUT_ALL_DEVICES="SIGN_OUT_ALL_DEVICES",e.SIGN_OUT_SINGLE_DEVICE="SIGN_OUT_SINGLE_DEVICE"}(Ze||(Ze={}));const Xe={PLAN_SELECT:{type:"plan-select",order:0,completionEvent:Ze.PART_PLAN_SELECT_COMPLETE},ACCOUNT_VERIFICATION:{type:"account-verification",order:1,completionEvent:Ze.PART_ACCOUNT_VERIFICATION_COMPLETE},PAYMENT:{type:"payment",order:2,completionEvent:Ze.PART_PAYMENT_COMPLETE},SUCCESS:{type:"success",order:3,completionEvent:Ze.PART_SUCCESS_COMPLETE},CONTACT_VERIFICATION:{type:"contact-verification",order:1,completionEvent:Ze.PART_CONTACT_VERIFICATION_COMPLETE},PROFILE_UPDATE:{type:"profile-update",order:0,completionEvent:Ze.PART_PROFILE_UPDATE_COMPLETE},SELECT_SUBSCRIPTION:{type:"select-subscription",order:0,completionEvent:Ze.SELECT_SUBSCRIPTION_COMPLETE},EMAIL_UPDATE:{type:"email-update",order:0,completionEvent:Ze.PART_EMAIL_UPDATE_COMPLETE},EMAIL_UPDATE_OTP:{type:"email-update-otp",order:0,completionEvent:Ze.PART_EMAIL_UPDATE_OTP_COMPLETE},PASSWORD_UPDATE:{type:"password-update",order:0,completionEvent:Ze.PART_PASSWORD_UPDATE_COMPLETE},PASSWORD_UPDATE_OTP:{type:"password-update-otp",order:0,completionEvent:Ze.PART_PASSWORD_UPDATE_OTP_COMPLETE},ATTRIBUTES_UPDATE:{type:"attributes-update",order:0,completionEvent:Ze.PART_ATTRIBUTES_UPDATE_COMPLETE},LIST_SUBSCRIPTIONS:{type:"list-subscriptions",order:0},BILLING_HISTORY:{type:"billing-history",order:0},PAST_SUBSCRIPTIONS:{type:"past-subscriptions",order:0},CHANGE_PAYMENT:{type:"change-payment",order:2,completionEvent:Ze.PART_CHANGE_PAYMENT_COMPLETE},DEVICES_SESSIONS:{type:"devices-sessions",order:0,completionEvent:Ze.LIST_DEVICES_SESSIONS},CANCEL_SUCCESS:{type:"cancel-success",order:3}},et=e=>Object.values(Xe).find((t=>t.type==e))||(()=>{throw`No part ${e} found`})();var tt;!function(e){e[e.USER_DOES_NOT_EXIST=0]="USER_DOES_NOT_EXIST",e[e.USER_ALREADY_EXISTS=1]="USER_ALREADY_EXISTS",e[e.PASSWORD_NOT_STRONG_ENOUGH=2]="PASSWORD_NOT_STRONG_ENOUGH",e[e.EMAIL_VERIFICATION_REQUIRED=3]="EMAIL_VERIFICATION_REQUIRED",e[e.VERIFICATION_CODE_OR_PASSWORD_INCORRECT=4]="VERIFICATION_CODE_OR_PASSWORD_INCORRECT",e[e.VERIFICATION_CODE_INCORRECT=5]="VERIFICATION_CODE_INCORRECT",e[e.LOGIN_FAILED=6]="LOGIN_FAILED",e[e.UNKNOWN_LOGIN_REGISTER_ERROR=7]="UNKNOWN_LOGIN_REGISTER_ERROR",e[e.NO_COOKIE_FROM_LOGIN_REGISTER_ERROR=8]="NO_COOKIE_FROM_LOGIN_REGISTER_ERROR",e[e.NO_ACCOUNT_ACCESS=9]="NO_ACCOUNT_ACCESS",e[e.ACCOUNT_NOT_FOUND=10]="ACCOUNT_NOT_FOUND",e[e.PAYMENT_PROCESSING_ERROR=11]="PAYMENT_PROCESSING_ERROR",e[e.MOBILE_PAYMENT_PROCESSING_ERROR=12]="MOBILE_PAYMENT_PROCESSING_ERROR",e[e.PASSWORD_RESET_LINK_SEND_ERROR=13]="PASSWORD_RESET_LINK_SEND_ERROR",e[e.PASSWORD_RESET_ERROR=14]="PASSWORD_RESET_ERROR",e[e.VERIFICATION_CODE_SEND_ERROR=15]="VERIFICATION_CODE_SEND_ERROR",e[e.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR=16]="SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR",e[e.PROMO_CODE_EXPIRED_ERROR=17]="PROMO_CODE_EXPIRED_ERROR",e[e.PROMO_CODE_INVALID_ERROR=18]="PROMO_CODE_INVALID_ERROR",e[e.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR=19]="PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR",e[e.INVITATION_FAILED_LIMIT_REACHED=20]="INVITATION_FAILED_LIMIT_REACHED",e[e.INVITATION_FAILED_DUPLICATE_EMAIL=21]="INVITATION_FAILED_DUPLICATE_EMAIL",e[e.INVITATION_FAILED_INVALID_EMAIL=22]="INVITATION_FAILED_INVALID_EMAIL",e[e.INVITATION_FAILED_NO_PRODUCT_ACCESS=23]="INVITATION_FAILED_NO_PRODUCT_ACCESS",e[e.INVITATION_FAILED_UNKNOWN=24]="INVITATION_FAILED_UNKNOWN",e[e.TOO_MANY_SESSIONS=25]="TOO_MANY_SESSIONS",e[e.INVALID_USER_ATTRIBUTES=26]="INVALID_USER_ATTRIBUTES",e[e.CONTACT_CREATION_NOT_ENABLED=27]="CONTACT_CREATION_NOT_ENABLED",e[e.NO_AUTHENTICATED_SESSION=28]="NO_AUTHENTICATED_SESSION",e[e.BLOCKED_EMAIL_DOMAIN=29]="BLOCKED_EMAIL_DOMAIN",e[e.UNKNOWN=30]="UNKNOWN"}(tt||(tt={}));const rt={[tt.USER_DOES_NOT_EXIST]:{languagePackKey:"forms.errors.user-not-found",fallbackMessage:"User not found.",jumpToPart:Xe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[tt.USER_ALREADY_EXISTS]:{languagePackKey:"forms.errors.email-taken",fallbackMessage:"This email address is already registered. Please log in to continue.",jumpToPart:Xe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[tt.EMAIL_VERIFICATION_REQUIRED]:{languagePackKey:"forms.errors.email-verification-required",fallbackMessage:"Email verification is required",jumpToPart:Xe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[tt.VERIFICATION_CODE_OR_PASSWORD_INCORRECT]:{languagePackKey:"forms.errors.otp-or-password-incorrect",fallbackMessage:"The password or code you entered is incorrect.",displayOnElements:[Ae,Pe]},[tt.VERIFICATION_CODE_INCORRECT]:{languagePackKey:"forms.errors.otp-incorrect",fallbackMessage:"The code you entered is incorrect.",displayOnElements:[Ae]},[tt.LOGIN_FAILED]:{languagePackKey:"forms.errors.login-failed",fallbackMessage:"The email address or password you entered is incorrect.",displayOnElements:[Pe,Ae]},[tt.PASSWORD_NOT_STRONG_ENOUGH]:{languagePackKey:"n/a",fallbackMessage:"",useDymamicMessage:!0,displayOnElements:[Pe]},[tt.UNKNOWN_LOGIN_REGISTER_ERROR]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Pe,Ae]},[tt.NO_COOKIE_FROM_LOGIN_REGISTER_ERROR]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Pe,Ae]},[tt.NO_ACCOUNT_ACCESS]:{languagePackKey:"forms.errors.too-many-requests",fallbackMessage:"To gain login access, please contact your administrator.",displayOnElements:[Pe]},[tt.ACCOUNT_NOT_FOUND]:{languagePackKey:"forms.errors.company-account-not-found",fallbackMessage:"Account not found.",jumpToPart:Xe.ACCOUNT_VERIFICATION.type,displayOnElements:[xe]},[tt.PAYMENT_PROCESSING_ERROR]:{languagePackKey:"forms.errors.unknown-payment-error",fallbackMessage:"Something went wrong when processing your payment. Please try again later.",displayOnElements:[Ee]},[tt.MOBILE_PAYMENT_PROCESSING_ERROR]:{languagePackKey:"forms.errors.unknown-payment-error",fallbackMessage:"Something went wrong when processing your payment. Please try again later.",displayOnElements:[Le]},[tt.PASSWORD_RESET_LINK_SEND_ERROR]:{languagePackKey:"forms.errors.password-reset-link-send-failed",fallbackMessage:"Unable to send a password reset link. Please try again later",displayOnElements:[we]},[tt.VERIFICATION_CODE_SEND_ERROR]:{languagePackKey:"forms.errors.otp-send-failed",fallbackMessage:"Unable to send a verification code. Please try again later",displayOnElements:[Ae]},[tt.PASSWORD_RESET_ERROR]:{languagePackKey:"forms.errors.password-reset-failed",fallbackMessage:"Unable to reset your password. Please try again later",displayOnElements:[Pe]},[tt.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Re]},[tt.PROMO_CODE_EXPIRED_ERROR]:{languagePackKey:"forms.errors.promo-code-expired",fallbackMessage:"Promo code expired",displayOnElements:[$e]},[tt.PROMO_CODE_INVALID_ERROR]:{languagePackKey:"forms.errors.promo-code-invalid",fallbackMessage:"Invalid promo code",displayOnElements:[$e]},[tt.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR]:{languagePackKey:"forms.errors.promo-code-invalid-for-payment-option",fallbackMessage:"Promo code cannot be applied to selected option",displayOnElements:[$e]},[tt.INVITATION_FAILED_LIMIT_REACHED]:{languagePackKey:"forms.errors.invitation-failed-limit-reached",fallbackMessage:"You have reached the sharing limit for this product",displayOnElements:[Fe]},[tt.INVITATION_FAILED_DUPLICATE_EMAIL]:{languagePackKey:"forms.errors.invitation-failed-duplicate-email",fallbackMessage:"An invite has already been created for this email",displayOnElements:[Fe]},[tt.INVITATION_FAILED_INVALID_EMAIL]:{languagePackKey:"forms.errors.invitation-failed-invalid-email",fallbackMessage:"Invalid email address",displayOnElements:[Fe]},[tt.INVITATION_FAILED_NO_PRODUCT_ACCESS]:{languagePackKey:"forms.errors.invitation-failed-no-product-access",fallbackMessage:"You do not currently have access to this product",displayOnElements:[Fe]},[tt.INVITATION_FAILED_UNKNOWN]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Fe]},[tt.TOO_MANY_SESSIONS]:{languagePackKey:"forms.errors.session-limit-reached",fallbackMessage:"You have reached the session limit. Please log out from another device to access this content.",displayOnElements:[ve]},[tt.INVALID_USER_ATTRIBUTES]:{languagePackKey:"forms.errors.user-attribute-invalid",fallbackMessage:"Invalid User Attribute",displayOnElements:[Oe]},[tt.CONTACT_CREATION_NOT_ENABLED]:{languagePackKey:"forms.errors.contact-creation-disabled",fallbackMessage:"This operation is not possible at the moment, please try again later.",jumpToPart:Xe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[tt.NO_AUTHENTICATED_SESSION]:{languagePackKey:"forms.errors.no-authenticated-session",fallbackMessage:"Please login to update your profile"},[tt.BLOCKED_EMAIL_DOMAIN]:{languagePackKey:"forms.errors.email-domain-blocked",fallbackMessage:"Please use a different email address, this domain is not supported.",jumpToPart:Xe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[tt.UNKNOWN]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later"}},nt=(e,t)=>t.serverErrors.find((t=>rt[t].displayOnElements?.includes(e)))??void 0,ot={PLAN_SELECT:{type:"plan_select",defaultLabel:"Plan Select",fullWidth:!0},EMAIL:{type:"email",defaultLabel:"Account Verification",completionEvent:Ze.SECTION_EMAIL_COMPLETE},PASSWORD_SETUP:{type:"password_setup",defaultLabel:"Password Setup"},PASSWORDLESS_VIA_LOGIN_LINK:{type:"passwordless_login_via_link",defaultLabel:"Passwordless Login via Login Link"},VERIFICATION_CODE_LOGIN:{type:"verification_code_login",defaultLabel:""},VERIFICATION_CODE_REGISTRATION:{type:"verification_code_registration",defaultLabel:""},LOGIN_PASSWORD:{type:"login_password",defaultLabel:"Login"},REGISTRATION_CUSTOM:{type:"registration_custom",defaultLabel:""},FORGOT_PASSWORD:{type:"forgot_password",defaultLabel:"",completionEvent:Ze.SECTION_FORGOT_PASSWORD_COMPLETE},PASSWORD_RESET:{type:"reset_password",defaultLabel:"",completionEvent:Ze.SECTION_PASSWORD_RESET_COMPLETE},SUCCESS:{type:"success",defaultLabel:""},EMAIL_VERIFIED:{type:"email_verified",defaultLabel:""},READ_ONLY_PROFILE:{type:"read_only_profile",defaultLabel:"Read Only Profile"},UPDATE_EMAIL:{type:"update_email",defaultLabel:"Update Email"},UPDATE_PASSWORD:{type:"update_password",defaultLabel:"Update Password"},UPDATE_ATTRIBUTES:{type:"update_attributes",defaultLabel:"Update Attributes"},CHANGE_PAYMENT:{type:"change-payment",completionEvent:Ze.PART_CHANGE_PAYMENT_COMPLETE,defaultLabel:""},SELECT:{type:"select",defaultLabel:"",fullWidth:!0},LIST:{type:"list",defaultLabel:"",fullWidth:!0},PAST_SUBSCRIPTIONS:{type:"past-subscriptions",defaultLabel:"",fullWidth:!0}},at=e=>Object.values(ot).find((t=>t.type==e));function it(e,t,r){const n={event:t,formType:e.formType,formId:e.formId,ruleId:e.ruleId,outcomeId:e.outcomeId,...r};if(window.postMessage({"zephr-form-datalayer-event":n},window.origin),!e.organisationConfiguration.trackFormDataLayerEvents)return;const o=e.organisationConfiguration.dataLayerName||"dataLayer";window[o]=window[o]||[],window[o].push(n)}const st=(e,t,r)=>{const n=((e,t)=>t.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).find((t=>t.section.type===e)))(e,t);if(!n)throw`Cannot find section ${e}`;const o=r.getFormState();return ht({form:t,formActions:r,part:n.part,section:n.section,previousPart:o.currentPart,previousSection:o.currentSection}),Promise.resolve()},ct=(e,t,r)=>{if(t.environment.previewMode)return;const n=t.parts.find((t=>t.type==e)),o=r.getFormState();return ht({form:t,formActions:r,part:n,section:n.sections[0],previousPart:o.currentPart,previousSection:o.currentSection}),Promise.resolve()},lt=(e,t,r)=>{const n=t.sections.findIndex((t=>t.order==e.order));return t.sections.length>n+1?{section:t.sections[n+1],part:t}:((e,t)=>{const r=et(e.type);if(r){const n=t.parts.find((e=>et(e.type).order===r.order+1))??t.parts[t.parts.indexOf(e)+1];if(n)return{section:n.sections[0],part:n}}return null})(t,r)},ut=e=>e?.startsWith("custom_")?"registration_custom":e,pt=(e,t,r)=>t.sectionFlow.sectionVisibilities.find((t=>t.type===ut(e.type)))?.isVisible(t,r)??!0,dt=(e,t,r)=>{const n=t.sectionFlow.sectionVisibilities.find((t=>t.type===ut(e.type)));return(n?.isDisplayedInProgressBar&&pt(e,t,r))??!0},mt=(e,t,r)=>{if(e.environment.previewMode)return;let n=0,o={part:t.currentPart,section:t.currentSection};do{if(n++,n>50)throw new Error(`Cannot move from ${t.currentPart.type}:${t.currentSection.type}. \n Exceeded max loop size after ${o?.part?.type}:${o?.section?.type}\n `);const r=lt(o?.section,o?.part,e);if(r?.part.type===o?.part?.type&&r?.section.type===o?.section?.type&&r?.section.order===o?.section?.order)throw new Error(`Cannot move from ${t.currentPart.type}:${t.currentSection.type}. \n Infinte loop found at next section ${r?.part?.type}:${r?.section?.type}\n `);o=r}while(o&&!pt(o.section,e,t));if(!o||o.part!==t.currentPart){const n=et(t.currentPart.type),o=n?.completionEvent&&e.sectionFlow.eventHandlers[n.completionEvent];if(o)return o(e,t,r)}if(!o)throw"No next section";return ht({form:e,formActions:r,part:o.part,section:o.section,previousPart:t.currentPart,previousSection:t.currentSection}),Promise.resolve()},ft=(e,t,r)=>{if(e.environment.previewMode)return;const n=at(t.currentSection.type);return((n&&e.sectionFlow.eventHandlers[n.completionEvent])??mt)(e,t,r)},ht=({form:e,formActions:t,part:r,section:n,previousSection:o,previousPart:a})=>{t.updateFormState({currentPart:r,currentSection:n}),it(e,"zephr_form_section_change",{sectionId:n.type,previousSectionId:o.type,partId:r.type,previousPartId:a.type}),(e=>{try{const t=document.getElementById(e);if(!t)return;const{top:r}=t.getBoundingClientRect();r<0&&t.scrollIntoView({block:"start",inline:"nearest"})}catch(e){console.error(e)}})(e.formId)};function yt(e,t,r){const n=e.slice();n[7]=t[r];const o=!n[0]&&!n[7].isDisabled&&n[7].order<n[2].order;return n[8]=o,n}function gt(e){let t,r,n,o=ne(e[3]),a=[];for(let t=0;t<o.length;t+=1)a[t]=At(yt(e,o,t));return{c(){t=P("div");for(let e=0;e<a.length;e+=1)a[e].c();r=E(),n=P("progress"),_(t,"class","zephr-form-flex-container"),N(t,"zephr-payment-form-flex-container",e[1]),_(n,"class","zephr-form-progress-bar svelte-d78fa2"),_(n,"id","progress-bar"),_(n,"max","100"),n.value=e[4],N(n,"zephr-payment-form-progress-bar",e[1])},m(e,o){y(e,t,o);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,null);y(e,r,o),y(e,n,o)},p(e,r){if(15&r){let n;for(o=ne(e[3]),n=0;n<o.length;n+=1){const i=yt(e,o,n);a[n]?a[n].p(i,r):(a[n]=At(i),a[n].c(),a[n].m(t,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}2&r&&N(t,"zephr-payment-form-flex-container",e[1]),16&r&&(n.value=e[4]),2&r&&N(n,"zephr-payment-form-progress-bar",e[1])},d(e){e&&(g(t),g(r),g(n)),b(a,e)}}}function bt(e){let t,r,n,o=e[7].label+"";return{c(){t=P("div"),r=S(o),n=E(),_(t,"class","zephr-progress-bar-step disabled svelte-d78fa2"),N(t,"zephr-payment-progress-bar-step",e[1])},m(e,o){y(e,t,o),h(t,r),h(t,n)},p(e,n){8&n&&o!==(o=e[7].label+"")&&I(r,o),2&n&&N(t,"zephr-payment-progress-bar-step",e[1])},d(e){e&&g(t)}}}function Pt(e){let t,r,n,o,a,i=e[7].label+"";function s(){return e[6](e[7])}return{c(){t=P("button"),r=S(i),n=E(),_(t,"type","button"),_(t,"class","zephr-progress-bar-step svelte-d78fa2"),N(t,"zephr-payment-progress-bar-step",e[1])},m(e,i){y(e,t,i),h(t,r),h(t,n),o||(a=v(t,"click",T(s)),o=!0)},p(n,o){e=n,8&o&&i!==(i=e[7].label+"")&&I(r,i),2&o&&N(t,"zephr-payment-progress-bar-step",e[1])},d(e){e&&g(t),o=!1,a()}}}function At(e){let t;function r(e,t){return e[8]?Pt:bt}let n=r(e),o=n(e);return{c(){o.c(),t=C()},m(e,r){o.m(e,r),y(e,t,r)},p(e,a){n===(n=r(e))&&o?o.p(e,a):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){e&&g(t),o.d(e)}}}function St(t){let r,n=!isNaN(t[4]),o=n&>(t);return{c(){o&&o.c(),r=C()},m(e,t){o&&o.m(e,t),y(e,r,t)},p(e,[t]){16&t&&(n=!isNaN(e[4])),n?o?o.p(e,t):(o=gt(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&g(r),o&&o.d(e)}}}function Et(e,t,r){let n,o,a,{disabled:i}=t,{items:s}=t,{isPaymentForm:c=!1}=t;return e.$$set=e=>{"disabled"in e&&r(0,i=e.disabled),"items"in e&&r(5,s=e.items),"isPaymentForm"in e&&r(1,c=e.isPaymentForm)},e.$$.update=()=>{32&e.$$.dirty&&r(2,n=s.find((e=>e.isCurrent))),32&e.$$.dirty&&r(3,o=s.filter((e=>e.isVisible))),12&e.$$.dirty&&r(4,a=Math.floor(100/(o.length-1)*(n.isVisible?n.visibleOrder:Math.max.apply(Math,o.filter((e=>e.order<n.order)).map((e=>e.visibleOrder))))))},[i,c,n,o,a,s,e=>{e.onSelect()}]}class Ct extends pe{constructor(e){super(),ue(this,e,Et,St,i,{disabled:0,items:5,isPaymentForm:1})}}var vt;!function(e){e.EMPTY="EMPTY",e.PAYMENT="PAYMENT",e.CHANGE_SUBSCRIPTION="CHANGE_SUBSCRIPTION",e.REGISTRATION="REGISTRATION",e.CONTACT="CONTACT",e.DATA_CAPTURE="DATA_CAPTURE",e.COMPLETE_REGISTRATION="COMPLETE_REGISTRATION",e.UPDATE_PROFILE="UPDATE_PROFILE",e.CANCEL_SUBSCRIPTION="CANCEL_SUBSCRIPTION",e.LIST_SUBSCRIPTIONS="LIST_SUBSCRIPTIONS",e.DEVICES="DEVICES"}(vt||(vt={}));const Tt=(e,t,r)=>{let n=0,o=0;return e.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).map((({part:a,section:i})=>({type:i.type,isVisible:dt(i,e,t),label:i.label??a.label??at(i.type)?.defaultLabel,isCurrent:t.currentSection==i,isDisabled:t.loginRegistrationComplete&&![Xe.PLAN_SELECT.type].includes(a.type),order:n++,visibleOrder:dt(i,e,t)?o++:null,onSelect:()=>ht({form:e,formActions:r,part:a,section:i,previousSection:t.currentSection,previousPart:t.currentPart})})))},_t={matches:e=>e.type===ge,create:(e,t,r)=>({component:Ct,props:{disabled:t.isBusy,items:Tt(e,t,r),isPaymentForm:e.formType===vt.PAYMENT}})},Ot=e=>e.typeConfiguration;function wt(t){let r,n,o,i;return{c(){r=P("button"),n=S(t[1]),_(r,"class","zephr-form-button svelte-1eqnyqe"),_(r,"type","submit"),r.disabled=t[0],N(r,"zephr-payment-form-button",t[5]),N(r,"zephr-form-button-top-margin",!t[2]),N(r,"zephr-payment-form-button-top-margin",t[5]&&!t[2]),N(r,"inputHeight",t[3]),N(r,"aside",t[4])},m(e,s){y(e,r,s),h(r,n),o||(i=v(r,"click",T((function(){a(t[6])&&t[6].apply(this,arguments)}))),o=!0)},p(e,[o]){t=e,2&o&&I(n,t[1]),1&o&&(r.disabled=t[0]),32&o&&N(r,"zephr-payment-form-button",t[5]),4&o&&N(r,"zephr-form-button-top-margin",!t[2]),36&o&&N(r,"zephr-payment-form-button-top-margin",t[5]&&!t[2]),8&o&&N(r,"inputHeight",t[3]),16&o&&N(r,"aside",t[4])},i:e,o:e,d(e){e&&g(r),o=!1,i()}}}function It(e,t,r){let{disabled:n}=t,{text:o}=t,{noMargin:a=!1}=t,{inputHeight:i=!1}=t,{aside:s=!1}=t,{isPaymentForm:c=!1}=t,{onClick:l}=t;return e.$$set=e=>{"disabled"in e&&r(0,n=e.disabled),"text"in e&&r(1,o=e.text),"noMargin"in e&&r(2,a=e.noMargin),"inputHeight"in e&&r(3,i=e.inputHeight),"aside"in e&&r(4,s=e.aside),"isPaymentForm"in e&&r(5,c=e.isPaymentForm),"onClick"in e&&r(6,l=e.onClick)},[n,o,a,i,s,c,l]}class Rt extends pe{constructor(e){super(),ue(this,e,It,wt,i,{disabled:0,text:1,noMargin:2,inputHeight:3,aside:4,isPaymentForm:5,onClick:6})}}function $t(e){let t,r,n=e[1].highlightedText+"";return{c(){t=P("div"),r=S(n),_(t,"class","box-top-text svelte-wecxzz")},m(e,n){y(e,t,n),h(t,r)},p(e,t){2&t&&n!==(n=e[1].highlightedText+"")&&I(r,n)},d(e){e&&g(t)}}}function Mt(e){let t,r,n=e[1].disclaimerMessage+"";return{c(){t=P("span"),r=S(n),_(t,"class","button-sub-text svelte-wecxzz")},m(e,n){y(e,t,n),h(t,r)},p(e,t){2&t&&n!==(n=e[1].disclaimerMessage+"")&&I(r,n)},d(e){e&&g(t)}}}function Nt(e){let t,r,n,o,i,s,c,l,u,p,d,m,f,b,A,S,C,O,w,I=(e[1].description??"")+"",R=e[1].highlightedText&&$t(e);f=new Rt({props:{disabled:!1,text:e[1].selectButtonText??"Select Plan",onClick:e[0],isPaymentForm:!0}});let M=e[1].disclaimerMessage&&Mt(e);return{c(){t=P("div"),r=P("input"),i=E(),s=P("div"),c=P("div"),R&&R.c(),l=E(),u=P("div"),p=P("div"),d=E(),m=P("div"),ie(f.$$.fragment),b=E(),M&&M.c(),_(r,"type","radio"),_(r,"name","boxSelect"),_(r,"id",n="boxSelect-"+e[1].slug+"-"+e[1].productId+"}"),r.value=o=e[1].price,_(r,"class","svelte-wecxzz"),_(c,"class","box-top svelte-wecxzz"),_(p,"class","box-content svelte-wecxzz"),N(p,"styled-box-content",e[2]),_(m,"class","box-bottom svelte-wecxzz"),_(u,"class",A="inner-box "+(e[1].highlightedText||"")+" svelte-wecxzz"),_(s,"class",S="box-container "+(e[1].highlightedText?"highlighted":"")+" svelte-wecxzz"),_(s,"aria-hidden","true"),$(s,"cursor","pointer"),_(t,"class","payment-option-wrapper svelte-wecxzz")},m(n,o){y(n,t,o),h(t,r),h(t,i),h(t,s),h(s,c),R&&R.m(c,null),h(s,l),h(s,u),h(u,p),p.innerHTML=I,h(u,d),h(u,m),se(f,m,null),h(m,b),M&&M.m(m,null),C=!0,O||(w=v(s,"click",T((function(){a(e[0])&&e[0].apply(this,arguments)}))),O=!0)},p(t,[a]){e=t,(!C||2&a&&n!==(n="boxSelect-"+e[1].slug+"-"+e[1].productId+"}"))&&_(r,"id",n),(!C||2&a&&o!==(o=e[1].price))&&(r.value=o),e[1].highlightedText?R?R.p(e,a):(R=$t(e),R.c(),R.m(c,null)):R&&(R.d(1),R=null),(!C||2&a)&&I!==(I=(e[1].description??"")+"")&&(p.innerHTML=I),(!C||4&a)&&N(p,"styled-box-content",e[2]);const i={};2&a&&(i.text=e[1].selectButtonText??"Select Plan"),1&a&&(i.onClick=e[0]),f.$set(i),e[1].disclaimerMessage?M?M.p(e,a):(M=Mt(e),M.c(),M.m(m,null)):M&&(M.d(1),M=null),(!C||2&a&&A!==(A="inner-box "+(e[1].highlightedText||"")+" svelte-wecxzz"))&&_(u,"class",A),(!C||2&a&&S!==(S="box-container "+(e[1].highlightedText?"highlighted":"")+" svelte-wecxzz"))&&_(s,"class",S)},i(e){C||(te(f.$$.fragment,e),C=!0)},o(e){re(f.$$.fragment,e),C=!1},d(e){e&&g(t),R&&R.d(),ce(f),M&&M.d(),O=!1,w()}}}function xt(e,t,r){let{onSelect:n}=t,{paymentOption:o}=t,{styleDescription:a}=t;return e.$$set=e=>{"onSelect"in e&&r(0,n=e.onSelect),"paymentOption"in e&&r(1,o=e.paymentOption),"styleDescription"in e&&r(2,a=e.styleDescription)},[n,o,a]}class Lt extends pe{constructor(e){super(),ue(this,e,xt,Nt,i,{onSelect:0,paymentOption:1,styleDescription:2})}}function Ft(e,t,r){const n=e.slice();return n[6]=t[r],n}function zt(e){let t,r;function n(){return e[5](e[6])}return t=new Lt({props:{paymentOption:e[6],styleDescription:e[0].styleDescription,onSelect:n}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,o){e=r;const a={};4&o&&(a.paymentOption=e[6]),1&o&&(a.styleDescription=e[0].styleDescription),6&o&&(a.onSelect=n),t.$set(a)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function kt(e){let t,r,n=ne(e[2]),o=[];for(let t=0;t<n.length;t+=1)o[t]=zt(Ft(e,n,t));const a=e=>re(o[e],1,1,(()=>{o[e]=null}));return{c(){t=P("div");for(let e=0;e<o.length;e+=1)o[e].c();_(t,"class","payment-options-container svelte-15oxdku")},m(e,n){y(e,t,n);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,null);r=!0},p(e,[r]){if(7&r){let i;for(n=ne(e[2]),i=0;i<n.length;i+=1){const a=Ft(e,n,i);o[i]?(o[i].p(a,r),te(o[i],1)):(o[i]=zt(a),o[i].c(),te(o[i],1),o[i].m(t,null))}for(X(),i=n.length;i<o.length;i+=1)a(i);ee()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)te(o[e]);r=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)re(o[e]);r=!1},d(e){e&&g(t),b(o,e)}}}function Dt(e,t,r){let n,{paymentOptions:o}=t,{config:a}=t,{onSelect:i}=t,{logView:s}=t;s();return e.$$set=e=>{"paymentOptions"in e&&r(3,o=e.paymentOptions),"config"in e&&r(0,a=e.config),"onSelect"in e&&r(1,i=e.onSelect),"logView"in e&&r(4,s=e.logView)},e.$$.update=()=>{8&e.$$.dirty&&r(2,n=o.sort(((e,t)=>e.fieldOrder-t.fieldOrder)))},[a,i,n,o,s,e=>i(e)]}class Bt extends pe{constructor(e){super(),ue(this,e,Dt,kt,i,{paymentOptions:3,config:0,onSelect:1,logView:4})}}const Ut=(e,t)=>Ot(e).changeSubscriptionMode?Ot(e).paymentOptions.filter((e=>t.validChangeFromPlans.some((t=>t.productId===e.productId&&t.planSlug===e.slug)))):Ot(e).paymentOptions,Vt={matches:e=>e.type===be,create:(e,t,r,n)=>({component:Bt,props:{paymentOptions:Ut(e,t),config:n||{},onSelect:n=>{r.updateFormState({paymentOption:n,serverErrors:[],billingAddress:{country:null,postalCode:null}}),it(e,"zephr_form_payment_option_selected",{productId:n.productId,planId:n.slug,price:n.price}),it(e,"select_item",{ecommerce:{items:[{item_id:n.slug,item_name:n.productId,price:n.price,quantity:1}]}}),it(e,"add_to_cart",{ecommerce:{currency:Ot(e).formCurrency??n?.currencyCode,value:n.price,items:[{item_id:n.slug,item_name:n.productId,price:n.price,quantity:1}]}}),it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.completeSection()},logView:()=>{Ut(e,t).forEach((t=>it(e,"view_item",{ecommerce:{currency:Ot(e).formCurrency??t?.currencyCode,value:t.price,items:[{item_id:t.slug,item_name:t.productId,price:t.price,quantity:1}]}})))}}})};function Gt(t){let r,n,o;return{c(){r=P("div"),n=P("div"),o=S(t[0]),_(n,"class","zephr-form-error-message svelte-719cfr"),_(n,"aria-live","assertive"),N(n,"zephr-payment-form-error-message",!t[1]),_(r,"class","zephr-form-error-message-min-height svelte-719cfr"),N(r,"zephr-payment-form-error-message-min-height",!t[1])},m(e,t){y(e,r,t),h(r,n),h(n,o)},p(e,[t]){1&t&&I(o,e[0]),2&t&&N(n,"zephr-payment-form-error-message",!e[1]),2&t&&N(r,"zephr-payment-form-error-message-min-height",!e[1])},i:e,o:e,d(e){e&&g(r)}}}function jt(e,t,r){let{error:n}=t,{isPaymentForm:o=!1}=t;return e.$$set=e=>{"error"in e&&r(0,n=e.error),"isPaymentForm"in e&&r(1,o=e.isPaymentForm)},[n,o]}class qt extends pe{constructor(e){super(),ue(this,e,jt,Gt,i,{error:0,isPaymentForm:1})}}function Ht(e){let t,r,n,o,i;return{c(){t=P("button"),r=P("span"),n=S(e[16]),_(r,"class","zephr-form-input-inner-text"),N(r,"zephr-payment-form-input-inner-text",e[7]),_(t,"type","button"),_(t,"class","zephr-form-input-inner-button")},m(s,c){y(s,t,c),h(t,r),h(r,n),e[28](t),o||(i=v(t,"click",T((function(){a(e[17])&&e[17].apply(this,arguments)}))),o=!0)},p(t,o){e=t,65536&o&&I(n,e[16]),128&o&&N(r,"zephr-payment-form-input-inner-text",e[7])},d(r){r&&g(t),e[28](null),o=!1,i()}}}function Kt(e){let t,r;return t=new qt({props:{error:e[6],isPaymentForm:e[7]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};64&r&&(n.error=e[6]),128&r&&(n.isPaymentForm=e[7]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Yt(e){let t,r,n,i,s,c,u,b,A,S,T,O,w,I,R,$,M,x,L=e[16]&&Ht(e);const F=e[26].default,z=l(F,e,e[25],null);let k=e[6]&&Kt(e);return{c(){t=P("div"),r=P("input"),O=E(),L&&L.c(),w=E(),z&&z.c(),I=E(),k&&k.c(),R=C(),_(r,"id",e[0]),_(r,"name",e[1]),r.required=e[3],r.disabled=e[4],_(r,"type",e[2]),r.value=n=e[8]||null,_(r,"autocomplete",i=e[19]||null),r.checked=s=e[10]||null,_(r,"placeholder",c=e[9]||null),_(r,"pattern",u=e[11]||null),_(r,"min",b=e[12]||null),_(r,"max",A=e[13]||null),_(r,"maxlength",e[15]),_(r,"step",S=e[14]||null),_(r,"class",T=f(`zephr-form-input ${e[2]&&`zephr-form-input-${e[2]}`} ${e[7]&&e[2]&&`zephr-payment-form-input-${e[2]}`}`)+" svelte-127vcsp"),N(r,"disabled",e[4]),N(r,"error",e[5]||e[6]),N(r,"zephr-form-input-full-width",e[18]),N(r,"zephr-payment-form-input",e[7]),N(r,"zephr-payment-form-input-full-width",e[7]&&e[18]),_(t,"class","zephr-form-input-inner-container svelte-127vcsp"),N(t,"zephr-payment-form-input-inner-container",e[7])},m(n,o){y(n,t,o),h(t,r),e[27](r),h(t,O),L&&L.m(t,null),y(n,w,o),z&&z.m(n,o),y(n,I,o),k&&k.m(n,o),y(n,R,o),$=!0,M||(x=[v(r,"focus",(function(){a(e[20])&&e[20].apply(this,arguments)})),v(r,"blur",(function(){a(e[21])&&e[21].apply(this,arguments)})),v(r,"input",e[24]),v(r,"paste",e[24])],M=!0)},p(o,[a]){e=o,(!$||1&a)&&_(r,"id",e[0]),(!$||2&a)&&_(r,"name",e[1]),(!$||8&a)&&(r.required=e[3]),(!$||16&a)&&(r.disabled=e[4]),(!$||4&a)&&_(r,"type",e[2]),(!$||256&a&&n!==(n=e[8]||null)&&r.value!==n)&&(r.value=n),(!$||524288&a&&i!==(i=e[19]||null))&&_(r,"autocomplete",i),(!$||1024&a&&s!==(s=e[10]||null))&&(r.checked=s),(!$||512&a&&c!==(c=e[9]||null))&&_(r,"placeholder",c),(!$||2048&a&&u!==(u=e[11]||null))&&_(r,"pattern",u),(!$||4096&a&&b!==(b=e[12]||null))&&_(r,"min",b),(!$||8192&a&&A!==(A=e[13]||null))&&_(r,"max",A),(!$||32768&a)&&_(r,"maxlength",e[15]),(!$||16384&a&&S!==(S=e[14]||null))&&_(r,"step",S),(!$||132&a&&T!==(T=f(`zephr-form-input ${e[2]&&`zephr-form-input-${e[2]}`} ${e[7]&&e[2]&&`zephr-payment-form-input-${e[2]}`}`)+" svelte-127vcsp"))&&_(r,"class",T),(!$||148&a)&&N(r,"disabled",e[4]),(!$||228&a)&&N(r,"error",e[5]||e[6]),(!$||262276&a)&&N(r,"zephr-form-input-full-width",e[18]),(!$||132&a)&&N(r,"zephr-payment-form-input",e[7]),(!$||262276&a)&&N(r,"zephr-payment-form-input-full-width",e[7]&&e[18]),e[16]?L?L.p(e,a):(L=Ht(e),L.c(),L.m(t,null)):L&&(L.d(1),L=null),(!$||128&a)&&N(t,"zephr-payment-form-input-inner-container",e[7]),z&&z.p&&(!$||33554432&a)&&d(z,F,e,e[25],$?p(F,e[25],a,null):m(e[25]),null),e[6]?k?(k.p(e,a),64&a&&te(k,1)):(k=Kt(e),k.c(),te(k,1),k.m(R.parentNode,R)):k&&(X(),re(k,1,1,(()=>{k=null})),ee())},i(e){$||(te(z,e),te(k),$=!0)},o(e){re(z,e),re(k),$=!1},d(r){r&&(g(t),g(w),g(I),g(R)),e[27](null),L&&L.d(),z&&z.d(r),k&&k.d(r),M=!1,o(x)}}}function Wt(e,t,r){let{$$slots:n={},$$scope:o}=t;const a=D();let i,s,{id:c}=t,{name:l=c}=t,{type:u="text"}=t,{required:p=!0}=t,{disabled:d=!1}=t,{hasError:m=!1}=t,{errorMessage:f=null}=t,{isPaymentForm:h=!1}=t,{value:y=""}=t,{placeholder:g=""}=t,{checked:b=!1}=t,{pattern:P=""}=t,{min:A=0}=t,{max:S=0}=t,{step:E=0}=t,{maxlength:C=null}=t,{innerText:v=null}=t,{innerTextOnClick:T=null}=t,{fill:_=!1}=t,{autocomplete:O=""}=t,{onFocus:w}=t,{onBlur:I}=t;var R;return R=()=>{v&&s&&i&&r(22,i.style.paddingRight=`${s.offsetWidth+8}px`,i)},z().$$.after_update.push(R),e.$$set=e=>{"id"in e&&r(0,c=e.id),"name"in e&&r(1,l=e.name),"type"in e&&r(2,u=e.type),"required"in e&&r(3,p=e.required),"disabled"in e&&r(4,d=e.disabled),"hasError"in e&&r(5,m=e.hasError),"errorMessage"in e&&r(6,f=e.errorMessage),"isPaymentForm"in e&&r(7,h=e.isPaymentForm),"value"in e&&r(8,y=e.value),"placeholder"in e&&r(9,g=e.placeholder),"checked"in e&&r(10,b=e.checked),"pattern"in e&&r(11,P=e.pattern),"min"in e&&r(12,A=e.min),"max"in e&&r(13,S=e.max),"step"in e&&r(14,E=e.step),"maxlength"in e&&r(15,C=e.maxlength),"innerText"in e&&r(16,v=e.innerText),"innerTextOnClick"in e&&r(17,T=e.innerTextOnClick),"fill"in e&&r(18,_=e.fill),"autocomplete"in e&&r(19,O=e.autocomplete),"onFocus"in e&&r(20,w=e.onFocus),"onBlur"in e&&r(21,I=e.onBlur),"$$scope"in e&&r(25,o=e.$$scope)},[c,l,u,p,d,m,f,h,y,g,b,P,A,S,E,C,v,T,_,O,w,I,i,s,e=>{a("change","checkbox"!==u?e.target.value:e.target.checked)},o,n,function(e){U[e?"unshift":"push"]((()=>{i=e,r(22,i)}))},function(e){U[e?"unshift":"push"]((()=>{s=e,r(23,s)}))}]}class Jt extends pe{constructor(e){super(),ue(this,e,Wt,Yt,i,{id:0,name:1,type:2,required:3,disabled:4,hasError:5,errorMessage:6,isPaymentForm:7,value:8,placeholder:9,checked:10,pattern:11,min:12,max:13,step:14,maxlength:15,innerText:16,innerTextOnClick:17,fill:18,autocomplete:19,onFocus:20,onBlur:21})}}function Qt(e){let t,r;return{c(){t=P("span"),r=S(e[1]),_(t,"class","svelte-vnzoa4")},m(e,n){y(e,t,n),h(t,r)},p(e,t){2&t&&I(r,e[1])},d(e){e&&g(t)}}}function Zt(e){let t,r,n,o,a,i,s=e[1]&&Qt(e);const c=e[6].default,u=l(c,e,e[5],null);return{c(){t=P("label"),r=P("span"),n=S(e[2]),o=E(),s&&s.c(),a=E(),u&&u.c(),_(r,"class","svelte-vnzoa4"),_(t,"class","zephr-form-input-label svelte-vnzoa4"),_(t,"for",e[0]),_(t,"style",e[3]),N(t,"zephr-payment-form-input-label",e[4])},m(e,c){y(e,t,c),h(t,r),h(r,n),h(t,o),s&&s.m(t,null),h(t,a),u&&u.m(t,null),i=!0},p(e,[r]){(!i||4&r)&&I(n,e[2]),e[1]?s?s.p(e,r):(s=Qt(e),s.c(),s.m(t,a)):s&&(s.d(1),s=null),u&&u.p&&(!i||32&r)&&d(u,c,e,e[5],i?p(c,e[5],r,null):m(e[5]),null),(!i||1&r)&&_(t,"for",e[0]),(!i||8&r)&&_(t,"style",e[3]),(!i||16&r)&&N(t,"zephr-payment-form-input-label",e[4])},i(e){i||(te(u,e),i=!0)},o(e){re(u,e),i=!1},d(e){e&&g(t),s&&s.d(),u&&u.d(e)}}}function Xt(e,t,r){let{$$slots:n={},$$scope:o}=t,{forInput:a}=t,{sublabel:i=""}=t,{label:s=""}=t,{style:c=""}=t,{isPaymentForm:l=!1}=t;return e.$$set=e=>{"forInput"in e&&r(0,a=e.forInput),"sublabel"in e&&r(1,i=e.sublabel),"label"in e&&r(2,s=e.label),"style"in e&&r(3,c=e.style),"isPaymentForm"in e&&r(4,l=e.isPaymentForm),"$$scope"in e&&r(5,o=e.$$scope)},[a,i,s,c,l,o,n]}class er extends pe{constructor(e){super(),ue(this,e,Xt,Zt,i,{forInput:0,sublabel:1,label:2,style:3,isPaymentForm:4})}}function tr(e){let t,r,n,o,a;return t=new er({props:{forInput:e[13],label:e[1],isPaymentForm:e[8]}}),o=new Jt({props:{disabled:e[0],required:!0,id:e[13],type:e[14],value:e[11],placeholder:e[2],errorMessage:e[5],autocomplete:e[7],isPaymentForm:e[8],innerTextOnClick:e[16],innerText:e[12]?e[4]:e[3],onFocus:e[9],onBlur:e[10]}}),o.$on("change",e[17]),{c(){ie(t.$$.fragment),r=E(),n=P("div"),ie(o.$$.fragment),_(n,"class","zephr-form-relative-container"),N(n,"zephr-payment-form-relative-container",e[8])},m(e,i){se(t,e,i),y(e,r,i),y(e,n,i),se(o,n,null),a=!0},p(e,[r]){const i={};8192&r&&(i.forInput=e[13]),2&r&&(i.label=e[1]),256&r&&(i.isPaymentForm=e[8]),t.$set(i);const s={};1&r&&(s.disabled=e[0]),8192&r&&(s.id=e[13]),16384&r&&(s.type=e[14]),2048&r&&(s.value=e[11]),4&r&&(s.placeholder=e[2]),32&r&&(s.errorMessage=e[5]),128&r&&(s.autocomplete=e[7]),256&r&&(s.isPaymentForm=e[8]),4096&r&&(s.innerTextOnClick=e[16]),4120&r&&(s.innerText=e[12]?e[4]:e[3]),512&r&&(s.onFocus=e[9]),1024&r&&(s.onBlur=e[10]),o.$set(s),(!a||256&r)&&N(n,"zephr-payment-form-relative-container",e[8])},i(e){a||(te(t.$$.fragment,e),te(o.$$.fragment,e),a=!0)},o(e){re(t.$$.fragment,e),re(o.$$.fragment,e),a=!1},d(e){e&&(g(r),g(n)),ce(t,e),ce(o)}}}function rr(e,t,r){let n,o,{disabled:a}=t,{label:i}=t,{placeholder:s}=t,{isMainPassword:c}=t,{showLabel:l}=t,{hideLabel:u}=t,{error:p=null}=t,{onChange:d}=t,{autocomplete:m}=t,{isPaymentForm:f=!1}=t,{onFocus:h}=t,{onBlur:y}=t,{password:g}=t,b=!1;return e.$$set=e=>{"disabled"in e&&r(0,a=e.disabled),"label"in e&&r(1,i=e.label),"placeholder"in e&&r(2,s=e.placeholder),"isMainPassword"in e&&r(15,c=e.isMainPassword),"showLabel"in e&&r(3,l=e.showLabel),"hideLabel"in e&&r(4,u=e.hideLabel),"error"in e&&r(5,p=e.error),"onChange"in e&&r(6,d=e.onChange),"autocomplete"in e&&r(7,m=e.autocomplete),"isPaymentForm"in e&&r(8,f=e.isPaymentForm),"onFocus"in e&&r(9,h=e.onFocus),"onBlur"in e&&r(10,y=e.onBlur),"password"in e&&r(11,g=e.password)},e.$$.update=()=>{4096&e.$$.dirty&&r(14,n=b?"text":"password"),32768&e.$$.dirty&&r(13,o="zephr-form-"+(c?"password":"confirm-password"))},[a,i,s,l,u,p,d,m,f,h,y,g,b,o,n,c,()=>r(12,b=!b),({detail:e})=>d(e)]}class nr extends pe{constructor(e){super(),ue(this,e,rr,tr,i,{disabled:0,label:1,placeholder:2,isMainPassword:15,showLabel:3,hideLabel:4,error:5,onChange:6,autocomplete:7,isPaymentForm:8,onFocus:9,onBlur:10,password:11})}}function or(e){let t,r,n,o,a,i,s;function c(e,t){return"string"==typeof e[16][4]?ir:ar}let l=c(e),u=l(e);return{c(){t=A("svg"),r=A("g"),n=A("g"),u.c(),_(n,"transform",e[15]),_(r,"transform",o="translate("+e[16][0]/2+" "+e[16][1]/2+")"),_(r,"transform-origin",a=e[16][0]/4+" 0"),_(t,"id",e[1]),_(t,"class",i="svelte-fa svelte-fa-base "+e[0]+" svelte-bvo74f"),_(t,"style",e[2]),_(t,"viewBox",s="0 0 "+e[16][0]+" "+e[16][1]),_(t,"aria-hidden","true"),_(t,"role","img"),_(t,"xmlns","http://www.w3.org/2000/svg"),N(t,"pulse",e[8]),N(t,"svelte-fa-size-lg","lg"===e[3]),N(t,"svelte-fa-size-sm","sm"===e[3]),N(t,"svelte-fa-size-xs","xs"===e[3]),N(t,"svelte-fa-fw",e[5]),N(t,"svelte-fa-pull-left","left"===e[6]),N(t,"svelte-fa-pull-right","right"===e[6]),N(t,"spin",e[7])},m(o,a){y(o,t,a),h(t,r),h(r,n),u.m(n,null),e[23](t)},p(e,p){l===(l=c(e))&&u?u.p(e,p):(u.d(1),u=l(e),u&&(u.c(),u.m(n,null))),32768&p&&_(n,"transform",e[15]),65536&p&&o!==(o="translate("+e[16][0]/2+" "+e[16][1]/2+")")&&_(r,"transform",o),65536&p&&a!==(a=e[16][0]/4+" 0")&&_(r,"transform-origin",a),2&p&&_(t,"id",e[1]),1&p&&i!==(i="svelte-fa svelte-fa-base "+e[0]+" svelte-bvo74f")&&_(t,"class",i),4&p&&_(t,"style",e[2]),65536&p&&s!==(s="0 0 "+e[16][0]+" "+e[16][1])&&_(t,"viewBox",s),257&p&&N(t,"pulse",e[8]),9&p&&N(t,"svelte-fa-size-lg","lg"===e[3]),9&p&&N(t,"svelte-fa-size-sm","sm"===e[3]),9&p&&N(t,"svelte-fa-size-xs","xs"===e[3]),33&p&&N(t,"svelte-fa-fw",e[5]),65&p&&N(t,"svelte-fa-pull-left","left"===e[6]),65&p&&N(t,"svelte-fa-pull-right","right"===e[6]),129&p&&N(t,"spin",e[7])},d(r){r&&g(t),u.d(),e[23](null)}}}function ar(e){let t,r,n,o,a,i,s,c,l,u;return{c(){t=A("path"),i=A("path"),_(t,"d",r=e[16][4][0]),_(t,"fill",n=e[10]||e[4]||"currentColor"),_(t,"fill-opacity",o=0!=e[13]?e[11]:e[12]),_(t,"transform",a="translate("+e[16][0]/-2+" "+e[16][1]/-2+")"),_(i,"d",s=e[16][4][1]),_(i,"fill",c=e[9]||e[4]||"currentColor"),_(i,"fill-opacity",l=0!=e[13]?e[12]:e[11]),_(i,"transform",u="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")},m(e,r){y(e,t,r),y(e,i,r)},p(e,p){65536&p&&r!==(r=e[16][4][0])&&_(t,"d",r),1040&p&&n!==(n=e[10]||e[4]||"currentColor")&&_(t,"fill",n),14336&p&&o!==(o=0!=e[13]?e[11]:e[12])&&_(t,"fill-opacity",o),65536&p&&a!==(a="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")&&_(t,"transform",a),65536&p&&s!==(s=e[16][4][1])&&_(i,"d",s),528&p&&c!==(c=e[9]||e[4]||"currentColor")&&_(i,"fill",c),14336&p&&l!==(l=0!=e[13]?e[12]:e[11])&&_(i,"fill-opacity",l),65536&p&&u!==(u="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")&&_(i,"transform",u)},d(e){e&&(g(t),g(i))}}}function ir(e){let t,r,n,o;return{c(){t=A("path"),_(t,"d",r=e[16][4]),_(t,"fill",n=e[4]||e[9]||"currentColor"),_(t,"transform",o="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")},m(e,r){y(e,t,r)},p(e,a){65536&a&&r!==(r=e[16][4])&&_(t,"d",r),528&a&&n!==(n=e[4]||e[9]||"currentColor")&&_(t,"fill",n),65536&a&&o!==(o="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")&&_(t,"transform",o)},d(e){e&&g(t)}}}function sr(t){let r,n=t[16][4]&&or(t);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),y(e,r,t)},p(e,[t]){e[16][4]?n?n.p(e,t):(n=or(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&g(r),n&&n.d(e)}}}function cr(e,t,r){let n,o,a,{class:i}=t,{id:s}=t,{style:c}=t,{icon:l}=t,{size:u}=t,{color:p}=t,{fw:d=!1}=t,{pull:m}=t,{scale:f=1}=t,{translateX:h=0}=t,{translateY:y=0}=t,{rotate:g}=t,{flip:b}=t,{spin:P=!1}=t,{pulse:A=!1}=t,{primaryColor:S=""}=t,{secondaryColor:E=""}=t,{primaryOpacity:C=1}=t,{secondaryOpacity:v=.4}=t,{swapOpacity:T=!1}=t;return e.$$set=e=>{"class"in e&&r(0,i=e.class),"id"in e&&r(1,s=e.id),"style"in e&&r(2,c=e.style),"icon"in e&&r(17,l=e.icon),"size"in e&&r(3,u=e.size),"color"in e&&r(4,p=e.color),"fw"in e&&r(5,d=e.fw),"pull"in e&&r(6,m=e.pull),"scale"in e&&r(18,f=e.scale),"translateX"in e&&r(19,h=e.translateX),"translateY"in e&&r(20,y=e.translateY),"rotate"in e&&r(21,g=e.rotate),"flip"in e&&r(22,b=e.flip),"spin"in e&&r(7,P=e.spin),"pulse"in e&&r(8,A=e.pulse),"primaryColor"in e&&r(9,S=e.primaryColor),"secondaryColor"in e&&r(10,E=e.secondaryColor),"primaryOpacity"in e&&r(11,C=e.primaryOpacity),"secondaryOpacity"in e&&r(12,v=e.secondaryOpacity),"swapOpacity"in e&&r(13,T=e.swapOpacity)},e.$$.update=()=>{16392&e.$$.dirty&&a&&u&&function(e,t){e.style.fontSize=t&&"lg"!==t&&"sm"!==t&&"xs"!==t?t.replace("x","em"):""}(a,u),131072&e.$$.dirty&&r(16,n=l&&l.icon||[0,0,"",[],""]),8126464&e.$$.dirty&&r(15,o=function(e,t,r,n,o,a=1,i="",s=""){let c=1,l=1;o&&("horizontal"==o?c=-1:"vertical"==o?l=-1:c=l=-1),"string"==typeof e&&(e=parseFloat(e)),"string"==typeof t&&(t=parseFloat(t)),"string"==typeof r&&(r=parseFloat(r));let u=`translate(${t*a}${i},${r*a}${i}) scale(${c*e},${l*e})`;return n&&(u+=` rotate(${n}${s})`),u}(f,h,y,g,b,512))},[i,s,c,u,p,d,m,P,A,S,E,C,v,T,a,o,n,l,f,h,y,g,b,function(e){U[e?"unshift":"push"]((()=>{a=e,r(14,a)}))}]}class lr extends pe{constructor(e){super(),ue(this,e,cr,sr,i,{class:0,id:1,style:2,icon:17,size:3,color:4,fw:5,pull:6,scale:18,translateX:19,translateY:20,rotate:21,flip:22,spin:7,pulse:8,primaryColor:9,secondaryColor:10,primaryOpacity:11,secondaryOpacity:12,swapOpacity:13})}}var ur={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},pr={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},dr={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},mr={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]};function fr(e){let t,r,n,o,a,i,s,c;return a=new lr({props:{icon:ur,color:e[0]&&e[0]===e[1]?hr:yr}}),{c(){t=P("div"),r=P("ul"),n=P("li"),o=P("div"),ie(a.$$.fragment),i=E(),s=S(e[2]),_(o,"class","zephr-form-password-requirement-icon svelte-11tz5c7"),N(o,"zephr-payment-form-password-requirement-icon",e[3]),_(n,"class","zephr-form-password-requirement svelte-11tz5c7"),N(n,"zephr-payment-form-password-requirement",e[3]),_(r,"class","svelte-11tz5c7"),_(t,"class","zephr-form-flex-container zephr-form-password-match svelte-11tz5c7"),N(t,"zephr-payment-form-flex-container",e[3]),N(t,"zephr-payment-form-password-match",e[3])},m(e,l){y(e,t,l),h(t,r),h(r,n),h(n,o),se(a,o,null),h(n,i),h(n,s),c=!0},p(e,[r]){const i={};3&r&&(i.color=e[0]&&e[0]===e[1]?hr:yr),a.$set(i),(!c||8&r)&&N(o,"zephr-payment-form-password-requirement-icon",e[3]),(!c||4&r)&&I(s,e[2]),(!c||8&r)&&N(n,"zephr-payment-form-password-requirement",e[3]),(!c||8&r)&&N(t,"zephr-payment-form-flex-container",e[3]),(!c||8&r)&&N(t,"zephr-payment-form-password-match",e[3])},i(e){c||(te(a.$$.fragment,e),c=!0)},o(e){re(a.$$.fragment,e),c=!1},d(e){e&&g(t),ce(a)}}}const hr="var(--zf-password-valid-color)",yr="var(--zf-password-invalid-color)";function gr(e,t,r){let{password:n}=t,{confirmPassword:o}=t,{passwordsMatchText:a}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"password"in e&&r(0,n=e.password),"confirmPassword"in e&&r(1,o=e.confirmPassword),"passwordsMatchText"in e&&r(2,a=e.passwordsMatchText),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,o,a,i]}class br extends pe{constructor(e){super(),ue(this,e,gr,fr,i,{password:0,confirmPassword:1,passwordsMatchText:2,isPaymentForm:3})}}function Pr(e,t,r){const n=e.slice();return n[12]=t[r],n[14]=r,n}function Ar(e){let t;return{c(){t=P("div"),_(t,"class","zephr-form-password-bar svelte-1b6w0g8"),$(t,"background-color",e[3]>e[14]?_r:Or),N(t,"zephr-payment-form-password-bar",e[2])},m(e,r){y(e,t,r)},p(e,r){8&r&&$(t,"background-color",e[3]>e[14]?_r:Or),4&r&&N(t,"zephr-payment-form-password-bar",e[2])},d(e){e&&g(t)}}}function Sr(e){let t,r,n,o,a,i,s=e[1].minLengthValidationText+"";return n=new lr({props:{icon:ur,color:e[4]?_r:Or}}),{c(){t=P("li"),r=P("div"),ie(n.$$.fragment),o=E(),a=S(s),_(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),N(r,"zephr-payment-form-password-requirement-icon",e[2]),_(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),N(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){y(e,t,s),h(t,r),se(n,r,null),h(t,o),h(t,a),i=!0},p(e,o){const c={};16&o&&(c.color=e[4]?_r:Or),n.$set(c),(!i||4&o)&&N(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&o)&&s!==(s=e[1].minLengthValidationText+"")&&I(a,s),(!i||4&o)&&N(t,"zephr-payment-form-password-requirement",e[2])},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&g(t),ce(n)}}}function Er(e){let t,r,n,o,a,i,s=e[1].uppercaseValidationText+"";return n=new lr({props:{icon:ur,color:e[7]?_r:Or}}),{c(){t=P("li"),r=P("div"),ie(n.$$.fragment),o=E(),a=S(s),_(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),N(r,"zephr-payment-form-password-requirement-icon",e[2]),_(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),N(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){y(e,t,s),h(t,r),se(n,r,null),h(t,o),h(t,a),i=!0},p(e,o){const c={};128&o&&(c.color=e[7]?_r:Or),n.$set(c),(!i||4&o)&&N(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&o)&&s!==(s=e[1].uppercaseValidationText+"")&&I(a,s),(!i||4&o)&&N(t,"zephr-payment-form-password-requirement",e[2])},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&g(t),ce(n)}}}function Cr(e){let t,r,n,o,a,i,s=e[1].numberValidationText+"";return n=new lr({props:{icon:ur,color:e[6]?_r:Or}}),{c(){t=P("li"),r=P("div"),ie(n.$$.fragment),o=E(),a=S(s),_(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),N(r,"zephr-payment-form-password-requirement-icon",e[2]),_(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),N(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){y(e,t,s),h(t,r),se(n,r,null),h(t,o),h(t,a),i=!0},p(e,o){const c={};64&o&&(c.color=e[6]?_r:Or),n.$set(c),(!i||4&o)&&N(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&o)&&s!==(s=e[1].numberValidationText+"")&&I(a,s),(!i||4&o)&&N(t,"zephr-payment-form-password-requirement",e[2])},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&g(t),ce(n)}}}function vr(e){let t,r,n,o,a,i,s=e[1].symbolValidationText+"";return n=new lr({props:{icon:ur,color:e[5]?_r:Or}}),{c(){t=P("li"),r=P("div"),ie(n.$$.fragment),o=E(),a=S(s),_(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),N(r,"zephr-payment-form-password-requirement-icon",e[2]),_(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),N(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){y(e,t,s),h(t,r),se(n,r,null),h(t,o),h(t,a),i=!0},p(e,o){const c={};32&o&&(c.color=e[5]?_r:Or),n.$set(c),(!i||4&o)&&N(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&o)&&s!==(s=e[1].symbolValidationText+"")&&I(a,s),(!i||4&o)&&N(t,"zephr-payment-form-password-requirement",e[2])},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&g(t),ce(n)}}}function Tr(e){let t,r,n,o,a,i,s,c,l=ne(Array(e[8])),u=[];for(let t=0;t<l.length;t+=1)u[t]=Ar(Pr(e,l,t));let p=e[0].minLength&&Sr(e),d=e[0].requireUppercase&&Er(e),m=e[0].requireNumbers&&Cr(e),f=e[0].requireSpecialCharacters&&vr(e);return{c(){t=P("div");for(let e=0;e<u.length;e+=1)u[e].c();r=E(),n=P("div"),o=P("ul"),p&&p.c(),a=E(),d&&d.c(),i=E(),m&&m.c(),s=E(),f&&f.c(),_(t,"class","zephr-form-password-progress svelte-1b6w0g8"),N(t,"zephr-payment-form-password-progress",e[2]),_(o,"class","svelte-1b6w0g8"),_(n,"class","zephr-form-flex-container zephr-form-password-requirements svelte-1b6w0g8"),N(n,"zephr-payment-form-flex-container",e[2]),N(n,"zephr-payment-form-password-requirements",e[2])},m(e,l){y(e,t,l);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(t,null);y(e,r,l),y(e,n,l),h(n,o),p&&p.m(o,null),h(o,a),d&&d.m(o,null),h(o,i),m&&m.m(o,null),h(o,s),f&&f.m(o,null),c=!0},p(e,[r]){if(12&r){let n;for(l=ne(Array(e[8])),n=0;n<l.length;n+=1){const o=Pr(e,l,n);u[n]?u[n].p(o,r):(u[n]=Ar(o),u[n].c(),u[n].m(t,null))}for(;n<u.length;n+=1)u[n].d(1);u.length=l.length}(!c||4&r)&&N(t,"zephr-payment-form-password-progress",e[2]),e[0].minLength?p?(p.p(e,r),1&r&&te(p,1)):(p=Sr(e),p.c(),te(p,1),p.m(o,a)):p&&(X(),re(p,1,1,(()=>{p=null})),ee()),e[0].requireUppercase?d?(d.p(e,r),1&r&&te(d,1)):(d=Er(e),d.c(),te(d,1),d.m(o,i)):d&&(X(),re(d,1,1,(()=>{d=null})),ee()),e[0].requireNumbers?m?(m.p(e,r),1&r&&te(m,1)):(m=Cr(e),m.c(),te(m,1),m.m(o,s)):m&&(X(),re(m,1,1,(()=>{m=null})),ee()),e[0].requireSpecialCharacters?f?(f.p(e,r),1&r&&te(f,1)):(f=vr(e),f.c(),te(f,1),f.m(o,null)):f&&(X(),re(f,1,1,(()=>{f=null})),ee()),(!c||4&r)&&N(n,"zephr-payment-form-flex-container",e[2]),(!c||4&r)&&N(n,"zephr-payment-form-password-requirements",e[2])},i(e){c||(te(p),te(d),te(m),te(f),c=!0)},o(e){re(p),re(d),re(m),re(f),c=!1},d(e){e&&(g(t),g(r),g(n)),b(u,e),p&&p.d(),d&&d.d(),m&&m.d(),f&&f.d()}}}const _r="var(--zf-password-valid-color)",Or="var(--zf-password-invalid-color)";function wr(e,t,r){let n,o,a,i,{passwordRequirements:s}=t,{passwordValidationTexts:c}=t,{isPaymentForm:l=!1}=t,{onChange:u}=t,{password:p}=t,{passwordIsValid:d}=t,m=0,f=Object.values(s).reduce(((e,t)=>e+(t?1:0)),0);return e.$$set=e=>{"passwordRequirements"in e&&r(0,s=e.passwordRequirements),"passwordValidationTexts"in e&&r(1,c=e.passwordValidationTexts),"isPaymentForm"in e&&r(2,l=e.isPaymentForm),"onChange"in e&&r(9,u=e.onChange),"password"in e&&r(10,p=e.password),"passwordIsValid"in e&&r(11,d=e.passwordIsValid)},e.$$.update=()=>{1024&e.$$.dirty&&r(7,n=/[A-Z]+/.test(p)),1024&e.$$.dirty&&r(6,o=/[0-9]+/.test(p)),1024&e.$$.dirty&&r(5,a=/[^a-z0-9A-Z]+/.test(p)),1025&e.$$.dirty&&r(4,i=p?.length>=s.minLength),3593&e.$$.dirty&&(r(3,m=0),/[A-Z]+/.test(p)&&s.requireUppercase&&r(3,m+=1),/[0-9]+/.test(p)&&s.requireNumbers&&r(3,m+=1),/[^a-z0-9A-Z]+/.test(p)&&s.requireSpecialCharacters&&r(3,m+=1),p?.length>=s.minLength&&s.minLength&&r(3,m+=1),m>=f!==d&&u(m>=f))},[s,c,l,m,i,a,o,n,f,u,p,d]}class Ir extends pe{constructor(e){super(),ue(this,e,wr,Tr,i,{passwordRequirements:0,passwordValidationTexts:1,isPaymentForm:2,onChange:9,password:10,passwordIsValid:11})}}function Rr(e){let t,r;return t=new Ir({props:{password:e[12],passwordIsValid:e[14],passwordRequirements:e[1],passwordValidationTexts:e[16],isPaymentForm:e[3],onChange:e[10]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};4096&r&&(n.password=e[12]),16384&r&&(n.passwordIsValid=e[14]),2&r&&(n.passwordRequirements=e[1]),8&r&&(n.isPaymentForm=e[3]),1024&r&&(n.onChange=e[10]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function $r(e){let t,r;return t=new nr({props:{disabled:e[11],password:e[13],isMainPassword:!1,label:e[0].confirm,hideLabel:e[0].hide,showLabel:e[0].show,placeholder:e[0].confirmPlaceholder,isPaymentForm:e[3],autocomplete:"new-password",onChange:e[7],onFocus:e[8],onBlur:e[9]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};2048&r&&(n.disabled=e[11]),8192&r&&(n.password=e[13]),1&r&&(n.label=e[0].confirm),1&r&&(n.hideLabel=e[0].hide),1&r&&(n.showLabel=e[0].show),1&r&&(n.placeholder=e[0].confirmPlaceholder),8&r&&(n.isPaymentForm=e[3]),128&r&&(n.onChange=e[7]),256&r&&(n.onFocus=e[8]),512&r&&(n.onBlur=e[9]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Mr(e){let t,r;return t=new br({props:{password:e[12],confirmPassword:e[13],passwordsMatchText:e[16].passwordsMatchText,isPaymentForm:e[3]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};4096&r&&(n.password=e[12]),8192&r&&(n.confirmPassword=e[13]),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Nr(e){let t,r;return t=new qt({props:{error:e[15]??"",isPaymentForm:e[3]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};32768&r&&(n.error=e[15]??""),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function xr(e){let t,r,n,o,a,i,s;t=new nr({props:{disabled:e[11],password:e[12],isMainPassword:!0,label:e[0].password,hideLabel:e[0].hide,showLabel:e[0].show,placeholder:e[0].placeholder,isPaymentForm:e[3],autocomplete:e[2]?"current-password":"new-password",onChange:e[4],onFocus:e[5],onBlur:e[6]}});let c=e[0].passValidatorEnabled&&Rr(e),l=!e[2]&&$r(e),u=e[0].passwordsMatchIndicatorEnabled&&Mr(e),p=e[15]&&Nr(e);return{c(){ie(t.$$.fragment),r=E(),c&&c.c(),n=E(),l&&l.c(),o=E(),u&&u.c(),a=E(),p&&p.c(),i=C()},m(e,d){se(t,e,d),y(e,r,d),c&&c.m(e,d),y(e,n,d),l&&l.m(e,d),y(e,o,d),u&&u.m(e,d),y(e,a,d),p&&p.m(e,d),y(e,i,d),s=!0},p(e,[r]){const s={};2048&r&&(s.disabled=e[11]),4096&r&&(s.password=e[12]),1&r&&(s.label=e[0].password),1&r&&(s.hideLabel=e[0].hide),1&r&&(s.showLabel=e[0].show),1&r&&(s.placeholder=e[0].placeholder),8&r&&(s.isPaymentForm=e[3]),4&r&&(s.autocomplete=e[2]?"current-password":"new-password"),16&r&&(s.onChange=e[4]),32&r&&(s.onFocus=e[5]),64&r&&(s.onBlur=e[6]),t.$set(s),e[0].passValidatorEnabled?c?(c.p(e,r),1&r&&te(c,1)):(c=Rr(e),c.c(),te(c,1),c.m(n.parentNode,n)):c&&(X(),re(c,1,1,(()=>{c=null})),ee()),e[2]?l&&(X(),re(l,1,1,(()=>{l=null})),ee()):l?(l.p(e,r),4&r&&te(l,1)):(l=$r(e),l.c(),te(l,1),l.m(o.parentNode,o)),e[0].passwordsMatchIndicatorEnabled?u?(u.p(e,r),1&r&&te(u,1)):(u=Mr(e),u.c(),te(u,1),u.m(a.parentNode,a)):u&&(X(),re(u,1,1,(()=>{u=null})),ee()),e[15]?p?(p.p(e,r),32768&r&&te(p,1)):(p=Nr(e),p.c(),te(p,1),p.m(i.parentNode,i)):p&&(X(),re(p,1,1,(()=>{p=null})),ee())},i(e){s||(te(t.$$.fragment,e),te(c),te(l),te(u),te(p),s=!0)},o(e){re(t.$$.fragment,e),re(c),re(l),re(u),re(p),s=!1},d(e){e&&(g(r),g(n),g(o),g(a),g(i)),ce(t,e),c&&c.d(e),l&&l.d(e),u&&u.d(e),p&&p.d(e)}}}function Lr(e,t,r){let{config:n}=t,{passwordRequirements:o}=t,{hideConfirmPassword:a}=t,{isPaymentForm:i=!1}=t,{onPasswordChange:s}=t,{onPasswordFocus:c}=t,{onPasswordBlur:l}=t,{onConfirmPasswordChange:u}=t,{onConfirmPasswordFocus:p}=t,{onConfirmPasswordBlur:d}=t,{onPasswordIsValidChange:m}=t,{disabled:f}=t,{password:h}=t,{confirmPassword:y}=t,{passwordIsValid:g}=t,{error:b=null}=t,P={minLengthValidationText:n.minLengthValidation||`Must include at least ${o.minLength} characters`,uppercaseValidationText:n.uppercaseValidation||"Must include an uppercase letter",numberValidationText:n.numberValidation||"Must include a number character",symbolValidationText:n.symbolValidation||"Must include a supported symbol",passwordsMatchText:n.passwordsMatchText||"Passwords match"};return e.$$set=e=>{"config"in e&&r(0,n=e.config),"passwordRequirements"in e&&r(1,o=e.passwordRequirements),"hideConfirmPassword"in e&&r(2,a=e.hideConfirmPassword),"isPaymentForm"in e&&r(3,i=e.isPaymentForm),"onPasswordChange"in e&&r(4,s=e.onPasswordChange),"onPasswordFocus"in e&&r(5,c=e.onPasswordFocus),"onPasswordBlur"in e&&r(6,l=e.onPasswordBlur),"onConfirmPasswordChange"in e&&r(7,u=e.onConfirmPasswordChange),"onConfirmPasswordFocus"in e&&r(8,p=e.onConfirmPasswordFocus),"onConfirmPasswordBlur"in e&&r(9,d=e.onConfirmPasswordBlur),"onPasswordIsValidChange"in e&&r(10,m=e.onPasswordIsValidChange),"disabled"in e&&r(11,f=e.disabled),"password"in e&&r(12,h=e.password),"confirmPassword"in e&&r(13,y=e.confirmPassword),"passwordIsValid"in e&&r(14,g=e.passwordIsValid),"error"in e&&r(15,b=e.error)},[n,o,a,i,s,c,l,u,p,d,m,f,h,y,g,b,P]}class Fr extends pe{constructor(e){super(),ue(this,e,Lr,xr,i,{config:0,passwordRequirements:1,hideConfirmPassword:2,isPaymentForm:3,onPasswordChange:4,onPasswordFocus:5,onPasswordBlur:6,onConfirmPasswordChange:7,onConfirmPasswordFocus:8,onConfirmPasswordBlur:9,onPasswordIsValidChange:10,disabled:11,password:12,confirmPassword:13,passwordIsValid:14,error:15})}}const zr={matches:e=>e.type===Pe&&null!=e.config?.confirm,create:(e,t,r,n)=>({component:Fr,props:{disabled:t.isBusy,config:n,passwordRequirements:e.organisationConfiguration.passwordStrengthRequirements,hideConfirmPassword:e.organisationConfiguration.hideConfirmPasswordOnRegForm,isPaymentForm:e.formType===vt.PAYMENT,onPasswordChange:n=>{r.updateFormState({createPassword:n}),it(e,"zephr_form_input_change",{inputName:"zephr-form-password",sectionId:t.currentSection.type,field:"create-password"})},onPasswordFocus:()=>it(e,"zephr_form_input_focus",{inputName:"zephr-form-password",sectionId:t.currentSection.type,field:"create-password"}),onPasswordBlur:()=>it(e,"zephr_form_input_blur",{inputName:"zephr-form-password",sectionId:t.currentSection.type,field:"create-password"}),onConfirmPasswordChange:n=>{r.updateFormState({confirmCreatePassword:n}),it(e,"zephr_form_input_change",{inputName:"zephr-form-confirm-password",sectionId:t.currentSection.type,field:"confirm-password"})},onConfirmPasswordFocus:()=>it(e,"zephr_form_input_focus",{inputName:"zephr-form-confirm-password",sectionId:t.currentSection.type,field:"confirm-password"}),onConfirmPasswordBlur:()=>it(e,"zephr_form_input_blur",{inputName:"zephr-form-confirm-password",sectionId:t.currentSection.type,field:"confirm-password"}),onPasswordIsValidChange:e=>r.updateFormState({passwordIsValid:e}),password:t.createPassword,confirmPassword:t.confirmCreatePassword,passwordIsValid:t.passwordIsValid},isValid:null!=t.password&&(!n.passValidatorEnabled||t.passwordIsValid)&&(e.organisationConfiguration.hideConfirmPasswordOnRegForm||t.createPassword===t.confirmCreatePassword)})},kr={matches:e=>e.type===Pe&&null==e.config?.confirm,create:(e,t,r,n)=>{const o=n.isUpdatePasswordCurrentPassword?"currentPassword":"password";return{component:nr,props:{disabled:t.isBusy,label:n.password,placeholder:n.placeholder,isMainPassword:!0,showLabel:n.showLabel,hideLabel:n.hideLabel,password:t[o],autocomplete:"password",onChange:n=>{r.updateFormState({[o]:n}),it(e,"zephr_form_input_change",{inputName:"zephr-form-password",sectionId:t.currentSection.type,field:"password"})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:"zephr-form-password",sectionId:t.currentSection.type,field:"password"}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:"zephr-form-password",sectionId:t.currentSection.type,field:"password"})},isValid:(a=t[o],null!=a&&a.length>2)};var a}},Dr={matches:e=>e.type===Se&&!e.config.isLogin&&!e.config.isCancel,create:(e,t,r,n)=>({component:Rt,props:{disabled:t.isBusy||!t.canAttemptSectionCompletion,text:n.text,onClick:()=>{it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.attemptCompleteSection()},isPaymentForm:e.formType===vt.PAYMENT}})};function Br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ur={exports:{}};!function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(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)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(); /** * @author Leandro Silva * @copyright 2012, 2017 Leandro Silva (http://grafluxe.com) * @license MIT * * @classdesc * Validate email address patterns that others don't. This project aims to support all common addresses along * with many rare ones that are considered valid under RFC standards. It can be used in both client and server * side environments. * * <p> * <b>Valid email addresses that are supported:</b> * <ul> * <li>niceandsimple@example.com</li> * <li>very.common@example.com</li> * <li>a.little.lengthy.but.fine@dept.example.com</li> * <li>disposable.style.email.with+symbol@example.com</li> * <li>other.email-with-dash@example.com</li> * <li>"much.more unusual"@example.com</li> * <li>"very.unusual.@.unusual.com"@example.com</li> * <li>#!$%&\'*+-/=?^_\`{}|~@example.org</li> * <li>" "@example.org</li> * <li>üñîçøðé@üñîçøðé.com</li> * <li>admin@mailserver1</li> * <li>user@tt</li> * <li>"hi"@example.com</li> * <li>jsmith@[192.168.2.1]</li> * <li>jsmith@[IPv6:2001:db8::1]</li> * <li>email@123.123.123.123</li> * <li>"()<>[]:,;@\\\"!#$%&\'*+-/=?^_\`{}| ~.a"@example.org</li> * <li>abc."defghi".xyz@example.com</li> * <li>_______@example.com</li> * <li>very.unusual."@".unusual.com@example.com</li> * <li>john.smith(comment)@example.com</li> * <li>(comment)john.smith@example.com</li> * <li>"()<>[]:,;@\\\"!#$%&\'*+-/=?^_\`{}| ~.a"(comment)@example.org</li> * </ul> * * <b>Valid (but rare) email addresses that are not supported:</b> * <ul> * <li>"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com</li> * <li>"()<>[]:,;@\"!#$%&\'*+-/=?^_\`{}| ~.a"@example.org</li> * <li>abc."d\"efghi".xyz@example.com</li> * <li>much."more\ unusual"@example.com</li> * </ul> * </p> */ var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"isValidAddress",value:function(e){return this._whitelist(e)&&!this._blacklist(e)&&!this._tooLong(e)}},{key:"getParts",value:function(e){var t=e.match(/[^@]*$/);return{local:e.substr(0,t.index-1)||"",domain:t[0]||""}}},{key:"_whitelist",value:function(e){return/^(?=\s)|^(?:(?!.+\.{2,})(?!\.)(?:[\w.!#$%&'*+\-\/=?\^`{|} ~]|[^\x00-\x7F])+[^\."]@|^"(?:[\w.!#$%&'*+\-\/=?\^`{|} ~(),:;<>@\[\]]|[^\x00-\x7F])+"@|(?:[\w.!#$%&'*+\-\/=?\^`{|} ~]|[^\x00-\x7F])+\."(?:[\w.!#$%&'*+\-\/=?\^`{|} ~"(),:;<>\\@\[\]]|[^\x00-\x7F])+"\.(?:[\w.!#$%&'*+\-\/=?\^`{|} ~]|[^\x00-\x7F])+@)(?!-)(?!.*-\.)(?:[a-zA-Z0-9-.]|[^\x00-\x7F])+$|^".+"@.+|.+@\[(?:\w+\.|\w+:){3}.+\]|^\(.+\)|\(.+\)@/.test(e)}},{key:"_blacklist",value:function(e){return/^@|^\s|@\[?(?=\d).*\d{4,}|"(?!.+\\").+".+"|.\(.+\)@(?=.+@)/.test(e)}},{key:"_tooLong",value:function(e){var t=this.getParts(e);return t.domain.length>=253||t.local.length>=64||e.length>=254}}]),e}();"object"===t(e)&&e.exports&&(e.exports=n)}(Ur);const Vr=new(Br(Ur.exports)),Gr=e=>!!e&&Vr.isValidAddress(e);function jr(e){let t,r,n,o,a;return t=new er({props:{forInput:e[11],label:e[2],isPaymentForm:e[6]}}),o=new Jt({props:{id:e[11],autocomplete:"email",type:"email",name:"email",disabled:e[1],value:e[0],placeholder:e[3],errorMessage:e[5],innerTextOnClick:e[7],innerText:e[7]&&(e[4]||"Edit"),isPaymentForm:e[6],onFocus:e[9],onBlur:e[10]}}),o.$on("change",e[13]),{c(){ie(t.$$.fragment),r=E(),n=P("div"),ie(o.$$.fragment),_(n,"class","zephr-form-relative-container"),N(n,"zephr-payment-form-relative-container",e[6])},m(e,i){se(t,e,i),y(e,r,i),y(e,n,i),se(o,n,null),a=!0},p(e,[r]){const i={};4&r&&(i.label=e[2]),64&r&&(i.isPaymentForm=e[6]),t.$set(i);const s={};2&r&&(s.disabled=e[1]),1&r&&(s.value=e[0]),8&r&&(s.placeholder=e[3]),32&r&&(s.errorMessage=e[5]),128&r&&(s.innerTextOnClick=e[7]),144&r&&(s.innerText=e[7]&&(e[4]||"Edit")),64&r&&(s.isPaymentForm=e[6]),512&r&&(s.onFocus=e[9]),1024&r&&(s.onBlur=e[10]),o.$set(s),(!a||64&r)&&N(n,"zephr-payment-form-relative-container",e[6])},i(e){a||(te(t.$$.fragment,e),te(o.$$.fragment,e),a=!0)},o(e){re(t.$$.fragment,e),re(o.$$.fragment,e),a=!1},d(e){e&&(g(r),g(n)),ce(t,e),ce(o)}}}function qr(e,t,r){let{formKey:n}=t,{emailAddress:o}=t,{disabled:a}=t,{label:i}=t,{placeholder:s}=t,{editText:c}=t,{error:l=null}=t,{isPaymentForm:u=!1}=t,{onEdit:p}=t,{onChange:d}=t,{onFocus:m}=t,{onBlur:f}=t;const h=`zephr-form-identifier-${n}`;return e.$$set=e=>{"formKey"in e&&r(12,n=e.formKey),"emailAddress"in e&&r(0,o=e.emailAddress),"disabled"in e&&r(1,a=e.disabled),"label"in e&&r(2,i=e.label),"placeholder"in e&&r(3,s=e.placeholder),"editText"in e&&r(4,c=e.editText),"error"in e&&r(5,l=e.error),"isPaymentForm"in e&&r(6,u=e.isPaymentForm),"onEdit"in e&&r(7,p=e.onEdit),"onChange"in e&&r(8,d=e.onChange),"onFocus"in e&&r(9,m=e.onFocus),"onBlur"in e&&r(10,f=e.onBlur)},[o,a,i,s,c,l,u,p,d,m,f,h,n,({detail:e})=>d(e)]}class Hr extends pe{constructor(e){super(),ue(this,e,qr,jr,i,{formKey:12,emailAddress:0,disabled:1,label:2,placeholder:3,editText:4,error:5,isPaymentForm:6,onEdit:7,onChange:8,onFocus:9,onBlur:10})}}const Kr={matches:e=>e.type===ve,create:(e,t,r,n)=>{const o=n.disabled||t.isBusy;return{component:Hr,props:{formKey:e.uniqueKey,disabled:o,emailAddress:t.emailAddress,label:n.label,placeholder:n.placeholder,editText:n.editText,onChange:n=>{!o&&r.updateFormState({userExists:void 0,emailIsContact:void 0,emailAddress:n,verificationCode:"",verificationCodeValid:void 0,serverErrors:[]}),it(e,"zephr_form_input_change",{inputName:`zephr-form-identifier-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"email"})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:`zephr-form-identifier-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"email"}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:`zephr-form-identifier-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"email"}),onEdit:n.disabled&&(()=>{r.jumpToPartStart(Xe.ACCOUNT_VERIFICATION.type)}),isPaymentForm:e.formType===vt.PAYMENT},isValid:Gr(t.emailAddress)}}};function Yr(t){let r,n,o,a,i,s,l,u,p,d,m,f;return{c(){r=P("script"),r.innerHTML="",o=P("script"),o.innerHTML="",i=P("script"),i.innerHTML="",l=P("script"),l.innerHTML="",p=E(),d=P("div"),m=E(),f=P("div"),f.innerHTML="",c(r.src,n="https://js.braintreegateway.com/web/3.85.3/js/google-payment.min.js")||_(r,"src","https://js.braintreegateway.com/web/3.85.3/js/google-payment.min.js"),c(o.src,a="https://pay.google.com/gp/p/js/pay.js")||_(o,"src","https://pay.google.com/gp/p/js/pay.js"),_(o,"onload","window.googlePayLoadBraintreeCallback()"),c(i.src,s="https://js.braintreegateway.com/web/3.85.3/js/client.min.js")||_(i,"src","https://js.braintreegateway.com/web/3.85.3/js/client.min.js"),_(i,"onload","window.braintreeLoadCallback()"),c(l.src,u="https://js.braintreegateway.com/web/3.85.3/js/apple-pay.min.js")||_(l,"src","https://js.braintreegateway.com/web/3.85.3/js/apple-pay.min.js"),_(l,"onload","window.applePayLoadBraintreeCallback()"),_(d,"id","google-pay-button"),_(d,"class","svelte-1acsmhs"),N(d,"zephr-form-disabled-div",t[0]),N(d,"zephr-payment-form-disabled-div",t[0]),_(f,"id","apple_pay_button")},m(e,t){h(document.head,r),h(document.head,o),h(document.head,i),h(document.head,l),y(e,p,t),y(e,d,t),y(e,m,t),y(e,f,t)},p(e,[t]){1&t&&N(d,"zephr-form-disabled-div",e[0]),1&t&&N(d,"zephr-payment-form-disabled-div",e[0])},i:e,o:e,d(e){e&&(g(p),g(d),g(m),g(f)),g(r),g(o),g(i),g(l)}}}function Wr(e,t,r){let{onMountCallback:n}=t,{isDisabled:o}=t,{disableCoreDependencyHeader:a}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(1,n=e.onMountCallback),"isDisabled"in e&&r(0,o=e.isDisabled),"disableCoreDependencyHeader"in e&&r(2,a=e.disableCoreDependencyHeader)},[o,n,a]}function Jr(e){let t,r,n,o,a,i,s;return i=new qt({props:{error:e[0]?.message??e[2]??"",isPaymentForm:!0}}),{c(){t=P("script"),t.innerHTML="",n=E(),o=P("div"),a=E(),ie(i.$$.fragment),c(t.src,r="https://js.braintreegateway.com/web/dropin/1.33.2/js/dropin.min.js")||_(t,"src","https://js.braintreegateway.com/web/dropin/1.33.2/js/dropin.min.js"),_(t,"onload","window.braintreeLoadCallback()"),_(o,"id","braintree-dropin-container"),_(o,"class","svelte-z7jd27"),N(o,"zephr-form-disabled-div",e[1]),N(o,"zephr-payment-form-disabled-div",e[1])},m(e,r){h(document.head,t),y(e,n,r),y(e,o,r),y(e,a,r),se(i,e,r),s=!0},p(e,[t]){(!s||2&t)&&N(o,"zephr-form-disabled-div",e[1]),(!s||2&t)&&N(o,"zephr-payment-form-disabled-div",e[1]);const r={};5&t&&(r.error=e[0]?.message??e[2]??""),i.$set(r)},i(e){s||(te(i.$$.fragment,e),s=!0)},o(e){re(i.$$.fragment,e),s=!1},d(e){e&&(g(n),g(o),g(a)),g(t),ce(i,e)}}}function Qr(e,t,r){let{onMountCallback:n}=t,{providerError:o}=t,{isDisabled:a}=t,{isLoaded:i}=t,{error:s=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(3,n=e.onMountCallback),"providerError"in e&&r(0,o=e.providerError),"isDisabled"in e&&r(1,a=e.isDisabled),"isLoaded"in e&&r(4,i=e.isLoaded),"error"in e&&r(2,s=e.error)},[o,a,s,n,i]}function Zr(e){let t,r,n,o,a,i,s;return i=new qt({props:{error:e[0]?.message??(e[2]?e[3]:"")??"",isPaymentForm:!0}}),{c(){t=P("script"),t.innerHTML="",n=E(),o=P("div"),a=E(),ie(i.$$.fragment),c(t.src,r="https://js.stripe.com/v3/")||_(t,"src","https://js.stripe.com/v3/"),_(t,"onload","window.stripeLoadCallback()"),_(o,"id","stripe-element"),_(o,"class","svelte-1lhuc6b"),N(o,"zephr-form-disabled-div",e[1]),N(o,"zephr-payment-form-disabled-div",e[1])},m(e,r){h(document.head,t),y(e,n,r),y(e,o,r),y(e,a,r),se(i,e,r),s=!0},p(e,[t]){(!s||2&t)&&N(o,"zephr-form-disabled-div",e[1]),(!s||2&t)&&N(o,"zephr-payment-form-disabled-div",e[1]);const r={};13&t&&(r.error=e[0]?.message??(e[2]?e[3]:"")??""),i.$set(r)},i(e){s||(te(i.$$.fragment,e),s=!0)},o(e){re(i.$$.fragment,e),s=!1},d(e){e&&(g(n),g(o),g(a)),g(t),ce(i,e)}}}function Xr(e,t,r){let{onMountCallback:n}=t,{providerError:o}=t,{isDisabled:a}=t,{isComplete:i}=t,{isLoaded:s}=t,{error:c=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(4,n=e.onMountCallback),"providerError"in e&&r(0,o=e.providerError),"isDisabled"in e&&r(1,a=e.isDisabled),"isComplete"in e&&r(2,i=e.isComplete),"isLoaded"in e&&r(5,s=e.isLoaded),"error"in e&&r(3,c=e.error)},[o,a,i,c,n,s]}function en(e){let t,r;return{c(){t=P("script"),t.innerHTML="",c(t.src,r="https://js.stripe.com/v3/")||_(t,"src","https://js.stripe.com/v3/"),_(t,"onload","window.stripeLoadCallback()")},m(e,r){y(e,t,r)},d(e){e&&g(t)}}}function tn(t){let r,n,o,a,i,s=!t[1]&&en();return{c(){r=P("script"),r.innerHTML="",s&&s.c(),o=C(),a=E(),i=P("div"),c(r.src,n="https://pay.google.com/gp/p/js/pay.js")||_(r,"src","https://pay.google.com/gp/p/js/pay.js"),_(r,"onload","window.googlePayLoadStripeCallback()"),_(i,"id","stripe-mobile-pay-button"),_(i,"class","svelte-1t95nqv"),N(i,"zephr-form-disabled-div",t[0]),N(i,"zephr-payment-form-disabled-div",t[0])},m(e,t){h(document.head,r),s&&s.m(document.head,null),h(document.head,o),y(e,a,t),y(e,i,t)},p(e,[t]){e[1]?s&&(s.d(1),s=null):s||(s=en(),s.c(),s.m(o.parentNode,o)),1&t&&N(i,"zephr-form-disabled-div",e[0]),1&t&&N(i,"zephr-payment-form-disabled-div",e[0])},i:e,o:e,d(e){e&&(g(a),g(i)),g(r),s&&s.d(e),g(o)}}}function rn(e,t,r){let{onMountCallback:n}=t,{isDisabled:o}=t,{disableCoreDependencyHeader:a}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(2,n=e.onMountCallback),"isDisabled"in e&&r(0,o=e.isDisabled),"disableCoreDependencyHeader"in e&&r(1,a=e.disableCoreDependencyHeader)},[o,a,n]}function nn(t){let r,n,o;return n=new lr({props:{size:"2x",icon:pr,spin:!0}}),{c(){r=P("div"),ie(n.$$.fragment),_(r,"class","spinner-container svelte-1isq5k3")},m(e,t){y(e,r,t),se(n,r,null),o=!0},p:e,i(e){o||(te(n.$$.fragment,e),o=!0)},o(e){re(n.$$.fragment,e),o=!1},d(e){e&&g(r),ce(n)}}}class on extends pe{constructor(e){super(),ue(this,e,null,nn,i,{})}}function an(e){let t,r;return t=new on({}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function sn(e){let t,r,n;return r=new on({}),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class","spinner-overlay svelte-1a5rslt")},m(e,o){y(e,t,o),se(r,t,null),n=!0},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&g(t),ce(r)}}}function cn(e){let t,r,n,o,a,i,s,c,l,u,p,d=!e[2]&&an(),m=e[3]&&sn();return u=new qt({props:{error:e[1]?.message??e[4]??"",isPaymentForm:!0}}),{c(){d&&d.c(),t=E(),r=P("div"),m&&m.c(),n=E(),o=P("div"),s=E(),c=P("div"),l=E(),ie(u.$$.fragment),_(o,"id","zuora_payment"),_(o,"class",a=f(e[0]?"zuora-disabled-iframe-container zuora-dynamic-form-disabled":"")+" svelte-1a5rslt"),_(r,"class",i=f(e[3]?"zuora-dynamic-form-disabled form-wrapper":"form-wrapper")+" svelte-1a5rslt"),_(c,"id","core-style")},m(e,a){d&&d.m(e,a),y(e,t,a),y(e,r,a),m&&m.m(r,null),h(r,n),h(r,o),y(e,s,a),y(e,c,a),y(e,l,a),se(u,e,a),p=!0},p(e,[s]){e[2]?d&&(X(),re(d,1,1,(()=>{d=null})),ee()):d?4&s&&te(d,1):(d=an(),d.c(),te(d,1),d.m(t.parentNode,t)),e[3]?m?8&s&&te(m,1):(m=sn(),m.c(),te(m,1),m.m(r,n)):m&&(X(),re(m,1,1,(()=>{m=null})),ee()),(!p||1&s&&a!==(a=f(e[0]?"zuora-disabled-iframe-container zuora-dynamic-form-disabled":"")+" svelte-1a5rslt"))&&_(o,"class",a),(!p||8&s&&i!==(i=f(e[3]?"zuora-dynamic-form-disabled form-wrapper":"form-wrapper")+" svelte-1a5rslt"))&&_(r,"class",i);const c={};18&s&&(c.error=e[1]?.message??e[4]??""),u.$set(c)},i(e){p||(te(d),te(m),te(u.$$.fragment,e),p=!0)},o(e){re(d),re(m),re(u.$$.fragment,e),p=!1},d(e){e&&(g(t),g(r),g(s),g(c),g(l)),d&&d.d(e),m&&m.d(),ce(u,e)}}}function ln(e,t,r){let{onMountCallback:n}=t,{isDisabled:o}=t,{providerError:a}=t,{isLoaded:i}=t,{isBusy:s}=t,{error:c=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(5,n=e.onMountCallback),"isDisabled"in e&&r(0,o=e.isDisabled),"providerError"in e&&r(1,a=e.providerError),"isLoaded"in e&&r(2,i=e.isLoaded),"isBusy"in e&&r(3,s=e.isBusy),"error"in e&&r(4,c=e.error)},[o,a,i,s,c,n]}function un(t){let r,n;return{c(){r=P("script"),r.innerHTML="",_(r,"type","text/javascript"),c(r.src,n="https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js")||_(r,"src","https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js"),_(r,"onload","window.zuoraLoadCallback()")},m(e,t){h(document.head,r)},p:e,i:e,o:e,d(e){g(r)}}}function pn(e,t,r){let{onMountCallback:n}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(0,n=e.onMountCallback)},[n]}class dn extends pe{constructor(e){super(),ue(this,e,pn,un,i,{onMountCallback:0})}}const mn="braintree",fn="stripe",hn="zuora-billing",yn=new Headers;yn.append("Content-Type","application/json"),yn.append("Accept","application/json");const gn=async(e,t,r,n=null,o=!1)=>{o||r.updateFormState({serverErrors:[]}),r.incrementRequestCount(n);try{return await fetch(`${r.apiUrlBase}/${e}`,{method:t.method,body:null==t.bodyObject?void 0:JSON.stringify(t.bodyObject),headers:yn,credentials:"include"})}finally{r.decrementRequestCount(n)}},bn=e=>"ONE_OFF"===e.type,Pn=(e,t,r,n)=>{if(t.paymentOption.pricePointId)return{url:`blaize/payment/${r}/buy`,body:{product_id:t.paymentOption.productId,price_point_id:t.paymentOption.slug,discount_code:t.promoCodeValid?t.promoCode:void 0,...n}};let o,a,i={};if(Ot(e).changeSubscriptionMode){o=`subscriptions/${t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId)).changesFromSubscription.externalId}`,a="PATCH",i={navigated_from:`ChangeForm ${window.location.href}`}}else bn(t.paymentOption)?(o="payment/buy",a="POST"):(o="subscribe",a="POST");return{url:`zephr/${o}`,method:a,body:{product_id:t.paymentOption.productId,plan_id:t.paymentOption.slug,discount_code:t.promoCodeValid?t.promoCode:void 0,...i,vendor_fields:n??{}}}};let An;const Sn=new Promise((function(e){window.braintreeLoadCallback=e})),En=e=>({flow:"ONE_OFF"===e.paymentOption.type?"checkout":"vault",singleUse:!0,buttonStyle:{shape:"rect",size:"medium"},commit:!1,currency:e.paymentOption.currencyCode.toLowerCase(),amount:e.paymentOptionPrices.totalPrice}),Cn=(e,t)=>gn("blaize/payment/braintree/token",{method:"GET"},t,null,!0).then((e=>e.json())).then((e=>e.token));var vn;!function(e){e.GOOGLE_PAY="GOOGLE_PAY",e.APPLE_PAY="APPLE_PAY"}(vn||(vn={}));const Tn=new Promise((function(e){window.googlePayLoadBraintreeCallback=e})),_n=new Promise((function(e){window.applePayLoadBraintreeCallback=e})),On=(e,t,r)=>{const n=JSON.parse(e.organisationConfiguration?.braintreeMobilePaymentConfig??"{}");let o;return Tn.then((()=>{const a=document.getElementById("google-pay-button");for(;a.firstChild;)a.removeChild(a.lastChild);if(!n?.google)return a.style.display="none",void console.error("Braintree Mobile payments are not configured in the console");t=r.getFormState(),o=new window.google.payments.api.PaymentsClient({environment:e.organisationConfiguration.braintreeSandboxEnv?"TEST":"PRODUCTION"}),Sn.then((()=>Cn(0,r))).then((i=>{window.braintree.client.create({authorization:i},((i,s)=>{for(;a.firstChild;)a.removeChild(a.lastChild);if(i)return console.error("Error creating braintree client",i),void(a.style.display="none");window.braintree.googlePayment.create({client:s,googlePayVersion:2,googleMerchantId:n.google.googleMerchantId},((n,i)=>{if(n)return console.error("Error creating braintree client",n),void(a.style.display="none");o.isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:i.createPaymentDataRequest().allowedPaymentMethods,existingPaymentMethodRequired:!0}).then((n=>{n.result&&n.paymentMethodPresent||(a.style.display="none",console.error(n.paymentMethodPresent?"Google Pay support not found":"No payment method"),r.updateFormState({serverErrors:[tt.MOBILE_PAYMENT_PROCESSING_ERROR]}),it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]})),a.appendChild(o.createButton({buttonColor:"default",buttonType:"plain",buttonSizeMode:"fill",onClick:()=>{wn(e,t,r,i,o)}}))}))}))}))}))}))},wn=(e,t,r,n,o)=>{r.updateFormState({mobilePaymentService:vn.GOOGLE_PAY,serverErrors:[]});const a=n.createPaymentDataRequest({transactionInfo:{currencyCode:t.paymentOption.currencyCode,totalPriceStatus:"FINAL",totalPrice:t.paymentOptionPrices.totalPrice.toFixed(2)},emailRequired:!1,shippingAddressRequired:!1});o.loadPaymentData(a).then((function(t){n.parseResponse(t,((t,n)=>{if(t||!n.nonce)return r.updateFormState({serverErrors:[tt.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),console.error("Error requesting payment data",t,n),void it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]});r.updateFormState({mobilePaymentMethodId:n.nonce}),r.completeSection()}))})).catch((function(t){console.warn("Error requesting payment data",t),r.updateFormState({mobilePaymentService:null,serverErrors:[tt.MOBILE_PAYMENT_PROCESSING_ERROR]}),it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]})}))},In=(e,t,r)=>{const n=document.getElementById("apple_pay_button");for(;n.firstChild;)n.removeChild(n.lastChild);return _n.then((()=>window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments()?Sn.then((()=>Cn(0,r))).then((o=>{window.braintree.client.create({authorization:o},((o,a)=>{if(o)return n.style.display="none",void console.error("Error creating braintree client:",o);window.braintree.applePay.create({client:a},(function(o,a){for(;n.firstChild;)n.removeChild(n.lastChild);if(o)return n.style.display="none",void console.error("Error creating applePayInstance:",o);const i=a.createPaymentRequest({total:{label:t.paymentOption.label,amount:t.paymentOptionPrices.totalPrice.toFixed(2)}}),s=document.createElement("div");s.classList.add("apple-pay-button"),s.classList.add("apple-pay-button-black"),n.appendChild(s),s.addEventListener("click",(function(){Rn(e,t,r,i,a)}))}))}))})):(n.style.display="none",void console.log("Cannot make payments with Apple Pay"))))},Rn=(e,t,r,n,o)=>{r.updateFormState({mobilePaymentService:vn.APPLE_PAY,serverErrors:[]});const a=new ApplePaySession(3,n);a.onvalidatemerchant=function(n){o.performValidation({validationURL:n.validationURL,displayName:t.paymentOption.label},(function(t,n){if(t)return r.updateFormState({serverErrors:[tt.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),console.log("err in onvalidatemerchant in apple pay configuration: ",t),void it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]});a.completeMerchantValidation(n)}))},a.onpaymentauthorized=function(t){o.tokenize({token:t.payment.token},(function(t,n){if(t)return r.updateFormState({serverErrors:[tt.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),console.error("Error tokenizing Apple Pay:",t),it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]}),void a.completePayment(ApplePaySession.STATUS_FAILURE);r.updateFormState({mobilePaymentMethodId:n.nonce}),r.completeSection(),a.completePayment(ApplePaySession.STATUS_SUCCESS)}))},a.begin()},$n=1e-5,Mn=(e,t)=>{try{if(3===t?.length){const r=((e,t)=>new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:Math.abs(e)%1<$n?0:void 0,maximumFractionDigits:Math.abs(e)%1<$n?0:2}).format(e))(e,t);if(!r.includes("¤"))return r}}catch(e){console.warn(`Error formatting currency for symbol ${t}`,e)}return((e,t)=>1===t?.length?`${t}${e}`:`${e} ${t}`.trim())(e,t)},Nn=async(e,t,r,n=!1)=>{const o=pa(e.organisationConfiguration.paymentProvider);return o.hasProductAddons&&(t.loginRegistrationComplete||t.userSession)?gn(o.productAddonPath,{method:"POST",bodyObject:{promoCode:t.promoCodeValid?t.promoCode:null,paymentOptions:Ot(e).paymentOptions}},r,null,!0).then((async n=>{if(!n.ok)return console.log("error loading product addons",n),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]}),r.updateFormState({addons:[],serverErrors:[tt.UNKNOWN]});const o=await n.json();try{const e=o.map((e=>({id:e.id,label:e.label,planPrices:e.paymentOptions.map((e=>({planSlug:e.slug,productId:e.productId,addonPrice:e.addonPrice})))})));return r.updateFormState({addons:e})}catch(e){return console.error("Error parsing product addons response",e,o),t}})).then((async t=>(n||await xn(e,t,r),t))):Promise.resolve(t)},xn=async(e,t,r)=>{if(t.currentSection.elements.some((e=>e.type===Le&&!1!==e.config?.enabled))){r.incrementRequestCount();try{await da(e.organisationConfiguration.paymentProvider).loader(e,t,r)}finally{r.decrementRequestCount()}}},Ln=e=>e.addons.map((t=>{const r=t.planPrices.find((t=>t.planSlug===e.paymentOption.slug&&t.productId===e.paymentOption.productId));return r&&{label:t.label,addonPrice:r.addonPrice,addonPriceFormattedString:Mn(r.addonPrice,e.paymentOption.currencyCode)}})).filter((e=>e)),Fn=async(e,t,r)=>{if(null!=t.paymentOptionPrices&&t.paymentOptionPrices.productId===t.paymentOption.productId&&t.paymentOptionPrices.slug===t.paymentOption.slug&&t.paymentOptionPrices.promoCode===t.promoCode&&t.paymentOptionPrices.addonPrices==Ln(t)&&t.paymentOptionPrices.billingAddress.country===t.billingAddress.country&&t.paymentOptionPrices.billingAddress.postalCode===t.billingAddress.postalCode&&0==t.paymentOptionPrices.addonPrices.length&&0==Ln(t).length)return t;r.updateFormState({paymentOptionPrices:null});const n=await pa(e.organisationConfiguration.paymentProvider).priceCalculator(e,t,r);return r.updateFormState({paymentOptionPrices:n})},zn=["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"],kn=e=>zn.includes(e),Dn=e=>{const t=JSON.parse(e??"{}");return{variables:{color:t?.color?.text?.main??"#32325d",fontFamily:`${t?.typography?.body?.font}, ${t?.typography?.body?.fallbackFont}, "Helvetica Neue", Helvetica, sans-serif`,fontSmooth:"always",fontSizeBase:"16px",colorWarningText:t?.color?.warning?.main??"#fa755a",colorIconCardError:t?.color?.warning?.main??"#fa755a",borderRadius:`${t?.input?.borderRadius??"4"}px`},rules:{".Input::placeholder":{color:"#aab7c4"}}}},Bn={base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},Un=(e,t,r)=>t.organisationConfiguration.stripeAutomaticTaxEnabled&&t.formType!==vt.LIST_SUBSCRIPTIONS||Ot(t).paymentProviderFormConfig?.usePaymentElement?((e,t,r)=>{const n=r.getFormState(),o=kn(n.paymentOption.currencyCode.toUpperCase())?1:100;return e.elements({mode:"payment",currency:n.paymentOption.currencyCode.toLowerCase(),amount:parseFloat((n.paymentOptionPrices.totalPrice*o).toFixed(2)),setup_future_usage:"off_session",appearance:Dn(t.organisationConfiguration.siteStyles),paymentMethodTypes:["card"]}).create("payment",{terms:{card:"never"},wallets:{applePay:"never",googlePay:"never"}})})(e,t,r):(e=>e.elements().create("card",{style:Bn}))(e); /*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ var Vn=Object.prototype.toString,Gn=Array.isArray||function(e){return"[object Array]"===Vn.call(e)};function jn(e){return"function"==typeof e}function qn(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Hn(e,t){return null!=e&&"object"==typeof e&&t in e}var Kn=RegExp.prototype.test;var Yn=/\S/;function Wn(e){return!function(e,t){return Kn.call(e,t)}(Yn,e)}var Jn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var Qn=/\s*/,Zn=/\s+/,Xn=/\s*=/,eo=/\s*\}/,to=/#|\^|\/|>|\{|&|=|!/;function ro(e){this.string=e,this.tail=e,this.pos=0}function no(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function oo(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}ro.prototype.eos=function(){return""===this.tail},ro.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},ro.prototype.scanUntil=function(e){var t,r=this.tail.search(e);switch(r){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=t.length,t},no.prototype.push=function(e){return new no(e,this)},no.prototype.lookup=function(e){var t,r,n,o=this.cache;if(o.hasOwnProperty(e))t=o[e];else{for(var a,i,s,c=this,l=!1;c;){if(e.indexOf(".")>0)for(a=c.view,i=e.split("."),s=0;null!=a&&s<i.length;)s===i.length-1&&(l=Hn(a,i[s])||(r=a,n=i[s],null!=r&&"object"!=typeof r&&r.hasOwnProperty&&r.hasOwnProperty(n))),a=a[i[s++]];else a=c.view[e],l=Hn(c.view,e);if(l){t=a;break}c=c.parent}o[e]=t}return jn(t)&&(t=t.call(this.view)),t},oo.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},oo.prototype.parse=function(e,t){var r=this.templateCache,n=e+":"+(t||ao.tags).join(":"),o=void 0!==r,a=o?r.get(n):void 0;return null==a&&(a=function(e,t){if(!e)return[];var r,n,o,a=!1,i=[],s=[],c=[],l=!1,u=!1,p="",d=0;function m(){if(l&&!u)for(;c.length;)delete s[c.pop()];else c=[];l=!1,u=!1}function f(e){if("string"==typeof e&&(e=e.split(Zn,2)),!Gn(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(qn(e[0])+"\\s*"),n=new RegExp("\\s*"+qn(e[1])),o=new RegExp("\\s*"+qn("}"+e[1]))}f(t||ao.tags);for(var h,y,g,b,P,A,S=new ro(e);!S.eos();){if(h=S.pos,g=S.scanUntil(r))for(var E=0,C=g.length;E<C;++E)Wn(b=g.charAt(E))?(c.push(s.length),p+=b):(u=!0,a=!0,p+=" "),s.push(["text",b,h,h+1]),h+=1,"\n"===b&&(m(),p="",d=0,a=!1);if(!S.scan(r))break;if(l=!0,y=S.scan(to)||"name",S.scan(Qn),"="===y?(g=S.scanUntil(Xn),S.scan(Xn),S.scanUntil(n)):"{"===y?(g=S.scanUntil(o),S.scan(eo),S.scanUntil(n),y="&"):g=S.scanUntil(n),!S.scan(n))throw new Error("Unclosed tag at "+S.pos);if(P=">"==y?[y,g,h,S.pos,p,d,a]:[y,g,h,S.pos],d++,s.push(P),"#"===y||"^"===y)i.push(P);else if("/"===y){if(!(A=i.pop()))throw new Error('Unopened section "'+g+'" at '+h);if(A[1]!==g)throw new Error('Unclosed section "'+A[1]+'" at '+h)}else"name"===y||"{"===y||"&"===y?u=!0:"="===y&&f(g)}if(m(),A=i.pop())throw new Error('Unclosed section "'+A[1]+'" at '+S.pos);return function(e){for(var t,r=[],n=r,o=[],a=0,i=e.length;a<i;++a)switch((t=e[a])[0]){case"#":case"^":n.push(t),o.push(t),n=t[4]=[];break;case"/":o.pop()[5]=t[2],n=o.length>0?o[o.length-1][4]:r;break;default:n.push(t)}return r}(function(e){for(var t,r,n=[],o=0,a=e.length;o<a;++o)(t=e[o])&&("text"===t[0]&&r&&"text"===r[0]?(r[1]+=t[1],r[3]=t[3]):(n.push(t),r=t));return n}(s))}(e,t),o&&r.set(n,a)),a},oo.prototype.render=function(e,t,r,n){var o=this.getConfigTags(n),a=this.parse(e,o),i=t instanceof no?t:new no(t,void 0);return this.renderTokens(a,i,r,e,n)},oo.prototype.renderTokens=function(e,t,r,n,o){for(var a,i,s,c="",l=0,u=e.length;l<u;++l)s=void 0,"#"===(i=(a=e[l])[0])?s=this.renderSection(a,t,r,n,o):"^"===i?s=this.renderInverted(a,t,r,n,o):">"===i?s=this.renderPartial(a,t,r,o):"&"===i?s=this.unescapedValue(a,t):"name"===i?s=this.escapedValue(a,t,o):"text"===i&&(s=this.rawValue(a)),void 0!==s&&(c+=s);return c},oo.prototype.renderSection=function(e,t,r,n,o){var a=this,i="",s=t.lookup(e[1]);if(s){if(Gn(s))for(var c=0,l=s.length;c<l;++c)i+=this.renderTokens(e[4],t.push(s[c]),r,n,o);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)i+=this.renderTokens(e[4],t.push(s),r,n,o);else if(jn(s)){if("string"!=typeof n)throw new Error("Cannot use higher-order sections without the original template");null!=(s=s.call(t.view,n.slice(e[3],e[5]),(function(e){return a.render(e,t,r,o)})))&&(i+=s)}else i+=this.renderTokens(e[4],t,r,n,o);return i}},oo.prototype.renderInverted=function(e,t,r,n,o){var a=t.lookup(e[1]);if(!a||Gn(a)&&0===a.length)return this.renderTokens(e[4],t,r,n,o)},oo.prototype.indentPartial=function(e,t,r){for(var n=t.replace(/[^ \t]/g,""),o=e.split("\n"),a=0;a<o.length;a++)o[a].length&&(a>0||!r)&&(o[a]=n+o[a]);return o.join("\n")},oo.prototype.renderPartial=function(e,t,r,n){if(r){var o=this.getConfigTags(n),a=jn(r)?r(e[1]):r[e[1]];if(null!=a){var i=e[6],s=e[5],c=e[4],l=a;0==s&&c&&(l=this.indentPartial(a,c,i));var u=this.parse(l,o);return this.renderTokens(u,t,r,l,n)}}},oo.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},oo.prototype.escapedValue=function(e,t,r){var n=this.getConfigEscape(r)||ao.escape,o=t.lookup(e[1]);if(null!=o)return"number"==typeof o&&n===ao.escape?String(o):n(o)},oo.prototype.rawValue=function(e){return e[1]},oo.prototype.getConfigTags=function(e){return Gn(e)?e:e&&"object"==typeof e?e.tags:void 0},oo.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!Gn(e)?e.escape:void 0};var ao={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){io.templateCache=e},get templateCache(){return io.templateCache}},io=new oo;ao.clearCache=function(){return io.clearCache()},ao.parse=function(e,t){return io.parse(e,t)},ao.render=function(e,t,r,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((Gn(o=e)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return io.render(e,t,r,n)},ao.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return Jn[e]}))},ao.Scanner=ro,ao.Context=no,ao.Writer=oo;const so=(e,t)=>ao.render(e,t),co=async e=>{try{return await gn("blaize/profile",{method:"GET"},e).then((e=>e.json()))}catch(e){return console.error("Failed to fetch user attributes:",e),{}}},lo=async e=>{try{const t=await gn("zephr/public/sessions/v1/sessions",{method:"GET"},e,null,!0);return await t.json()}catch(e){return console.error("Failed to fetch sessions:",e),[]}},uo=()=>{const e=new URLSearchParams(window.location.search);return{source:e.get("utm_source"),medium:e.get("utm_medium"),campaign:e.get("utm_campaign"),term:e.get("utm_term"),content:e.get("utm_content")}},po=async(e,t)=>{try{const[r,n]=await Promise.all([lo(t),co(t)]),o=r.find((e=>e.requestingSession))||null;return{page:{url:window.location.href,path:window.location.pathname,searchParameters:Object.fromEntries(new URLSearchParams(window.location.search)),utmParameters:uo(),referrer:document.referrer||null},user:{attributes:n,session:o?{id:o.id,tenantId:o.tenantId,userId:o.userId,deviceName:o.deviceName,browser:o.browser,startDate:o.startDate,ipAddress:o.ipAddress??null,requestingSession:o.requestingSession}:null,geoLocation:{city:o?.city??"unknown",country:o?.country??"unknown",state:o?.geoState??"unknown",ipAddress:o?.ipAddress??null}},form:{id:e.id,outcomeId:e.outcomeId,ruleId:e.ruleId}}}catch(e){throw console.error("Failed to initialize subscription scope:",e),e}};let mo,fo,ho;const yo=e=>mo||(mo=new Promise((function(e){window.stripeLoadCallback=e})).then((()=>(e=>gn("blaize/payment/stripe/publicKey",{method:"GET"},e,null,!0).then((e=>e.text())))(e))).then((e=>(fo=window.Stripe(e),fo)))),go=(e,t,r)=>{const n=t.paymentMethodId;return r.incrementRequestCount(),n?Po(e,t,r,n):fo.createPaymentMethod("card",ho,{}).then((async({error:n,paymentMethod:o})=>{if(n||!o)throw r.decrementRequestCount(),`Error requesting payment method ${JSON.stringify(n)}`;await Po(e,t,r,o.id)}))},bo=(e,t,r,n)=>gn("zephr/payment/stripe/updateSubscription",{method:"POST",bodyObject:{payment_method_id:n,subscription_id:t.selectedSubscription.externalId}},r),Po=async(e,t,r,n)=>{const o=Ot(e).paymentProviderFormConfig?.subscriptionMetadata||{},a={};if(o){const t=await po(e,r);for(const[e,r]of Object.entries(o))a[e]=so(r,t)||""}const i=!!Object.keys(a).length,{url:s,body:c,method:l}=Pn(e,t,fn,{payment_method:n,billing_address_provided:!!t.billingAddress.country,...i?{subscription_metadata:JSON.stringify(a)}:{}});return gn(s,{method:l,bodyObject:c},r).then((async e=>{if(!e?.ok)throw e;return e.json()})).then((o=>{if(!o.grant_id){if("requires_action"===o.paymentIntentStatus)return fo.confirmCardPayment(o.clientSecret??o.client_secret).then((s=>{if(s.error||!s.paymentIntent)throw`Error requesting payment method ${JSON.stringify(s)}`;if(bn(t.paymentOption)&&o.payment_intent_id){const{url:s,body:c,method:l}=Pn(e,t,fn,{payment_method:n,billing_address_provided:!!t.billingAddress.country,payment_intent_id:o.payment_intent_id,...i?{subscription_metadata:JSON.stringify(a)}:{}});return gn(s,{method:l,bodyObject:c},r).then((e=>{if(!e?.ok)throw e}))}return gn("blaize/payment/stripe/subscription/confirmation",{method:"POST",bodyObject:{subscriptionId:o.subscriptionId}},r).then((e=>{if(!e?.ok)throw e}))}));throw o}})).catch((e=>{throw console.error(e),e})).finally((()=>{r.decrementRequestCount()}))},Ao=new Promise((function(e){window.googlePayLoadStripeCallback=e})),So=async(e,t,r,n,o,a)=>{if(o.googlePay?t.updateFormState({mobilePaymentService:vn.GOOGLE_PAY,serverErrors:[]}):o.applePay&&t.updateFormState({mobilePaymentService:vn.APPLE_PAY,serverErrors:[]}),!n)return n.complete("fail"),t.updateFormState({serverErrors:[tt.MOBILE_PAYMENT_PROCESSING_ERROR]}),void it(a,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]});const i=n.paymentMethod.billing_details.address;if(a.organisationConfiguration.stripeAutomaticTaxEnabled&&(e=await Fn(a,t.updateFormState({billingAddress:{country:i.country,postalCode:i.postal_code}}),t)),e=t.updateFormState({paymentMethodId:n.paymentMethod.id}),n.complete("success"),e.paymentOptionPrices.taxPrice||!e.canAttemptSectionCompletion){const t=e.elementValidity.find((e=>!e.isValid&&"payment"!=e.elementType))?.elementId,r=t?document.getElementById(`zephr-form-${t}`):document.getElementsByClassName("zephr-form-button")[0];r?.scrollIntoView({block:"center"})}else t.completeSection()},Eo=(e,t,r)=>{const n=Ln(t),o=Ot(e).paymentOptions.find((e=>e.productId==t.paymentOption.productId&&e.slug==t.paymentOption.slug)).price,a=t.discountedPlanPrices.find((e=>e.planSlug===t.paymentOption.slug&&e.productId===t.paymentOption.productId))?.discountPrice??o,i=o-a,s=n.reduce(((e,t)=>e+t.addonPrice),a);return Promise.resolve({slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,addonPrices:n,billingAddress:t.billingAddress,totalPrice:s,totalPriceFormattedString:Mn(s,t.paymentOption.currencyCode),netPrice:o,netPriceFormattedString:Mn(o,t.paymentOption.currencyCode),discountPrice:i,discountPriceFormattedPrice:Mn(i,t.paymentOption.currencyCode),chargeItems:[]})},Co=(e,t)=>Ot(e).formCurrency??t.paymentOption?.currencyCode,vo=async(e,t,r,n)=>{const o=t.paymentOption&&await Fn(e,t,r),[a,i]=(navigator.language??"").split("-"),s={locale:a||"en",region:Ot(e).requestCountry||i||"US",currency:Co(e,t),amount:`${o?.paymentOptionPrices?.totalPrice??"0.00"}`,profile:Ot(e).paymentProviderFormConfig?.paymentFormNumber??void 0,createPaymentSession:()=>(async(e,t)=>{if(t.getFormState().isBusy)console.warn("Form is busy - ignoring payment request");else{t.updateFormState({serverErrors:[],paymentProviderFormBusy:!0}),t.incrementRequestCount();try{const r=await gn("zephr/public/payment/v1/billing/payment-sessions",{method:"POST",bodyObject:{currency:Co(e,t.getFormState()),amount:t.getFormState().paymentOptionPrices?.totalPrice??.01}},t);if(r.ok)return(await r.json())?.token;console.error("Error occurred while creating payment session.",r),t.updateFormState({serverErrors:[tt.PAYMENT_PROCESSING_ERROR],paymentProviderFormBusy:!1}),it(e,"zephr_form_error",{error:tt[tt.PAYMENT_PROCESSING_ERROR]})}catch(r){console.error("Error occurred while creating payment session.",r),t.updateFormState({serverErrors:[tt.PAYMENT_PROCESSING_ERROR],paymentProviderFormBusy:!1}),it(e,"zephr_form_error",{error:tt[tt.PAYMENT_PROCESSING_ERROR]})}}})(e,r),onComplete:t=>((e,t,r)=>{if(!r?.success||!r.paymentMethodId)return t.decrementRequestCount(),console.warn("Non-success payment result",r),t.updateFormState({serverErrors:[tt.PAYMENT_PROCESSING_ERROR],paymentProviderFormBusy:!1}),void it(e,"zephr_form_error",{error:tt[tt.PAYMENT_PROCESSING_ERROR]});const n=t.getFormState();t.updateFormState({paymentFormComplete:!0,paymentProviderVendorFields:{currency:Co(e,n),detail:JSON.stringify({refId:r.paymentMethodId,email:n.emailAddress}),...n.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(n.dynamicOfferResult)}:{}}}),t.decrementRequestCount(),t.completeSection()})(e,r,t)},c=window.Zuora(n);(await c.createPaymentForm(s)).mount("#zuora_payment"),r.updateFormState({paymentProviderFormLoaded:!0})};let To;const _o=()=>null!=To?To:To=new Promise((function(e){window.zuoraLoadCallback=e})),Oo=e=>Ot(e).paymentProviderFormConfig?.useDynamicForm,wo=(e,t)=>Oo(e)?(async(e,t)=>{const r=await gn("zephr/public/payment/v1/billing/publishable-key",{method:"GET"},t);return(await r.json())?.message})(0,t):gn("plugins/public/zuora-billing/payment-form-token",{method:"POST",bodyObject:{hostedPageId:Ot(e).paymentProviderFormConfig.hostedPageId,hostedPageUrl:Ot(e).paymentProviderFormConfig.hostedPageUrl}},t).then((e=>e.json())),Io=(e,t)=>{const r=e.trim();try{switch(t.toUpperCase()){case"INTEGER":{const e=parseInt(r,10);if(isNaN(e))throw new Error;return e}case"NUMBER":{const e=parseFloat(r);if(isNaN(e))throw new Error;return e}case"BOOLEAN":return"true"===r.toLowerCase();default:return r.toString()}}catch(e){return console.warn(`Error casting custom field value "${r}" to type ${t}`),null}},Ro=(e,t,r)=>!Ot(t).changeSubscriptionMode||t.environment.previewMode?e:{...e,products:e.products.map((e=>({...e,paymentPlans:e.paymentPlans.filter((t=>r.validChangeFromPlans.some((r=>r.planSlug===t.planId&&r.productId===e.id))))})))};function $o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(r),!0).forEach((function(t){No(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function No(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xo(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Lo,Fo={countries:{AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cabo Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena, Ascension and Tristan da Cunha",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States of America",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands (UK)",VI:"Virgin Islands (US)",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},timezones:{"Africa/Abidjan":{u:0,c:["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{a:"Africa/Abidjan",c:["GH"],r:1},"Africa/Addis_Ababa":{a:"Africa/Nairobi",c:["ET"],r:1},"Africa/Algiers":{u:60,c:["DZ"]},"Africa/Asmara":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Asmera":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Bamako":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Bangui":{a:"Africa/Lagos",c:["CF"],r:1},"Africa/Banjul":{a:"Africa/Abidjan",c:["GM"],r:1},"Africa/Bissau":{u:0,c:["GW"]},"Africa/Blantyre":{a:"Africa/Maputo",c:["MW"],r:1},"Africa/Brazzaville":{a:"Africa/Lagos",c:["CG"],r:1},"Africa/Bujumbura":{a:"Africa/Maputo",c:["BI"],r:1},"Africa/Cairo":{u:120,d:180,c:["EG"]},"Africa/Casablanca":{u:60,d:0,c:["MA"]},"Africa/Ceuta":{u:60,d:120,c:["ES"]},"Africa/Conakry":{a:"Africa/Abidjan",c:["GN"],r:1},"Africa/Dakar":{a:"Africa/Abidjan",c:["SN"],r:1},"Africa/Dar_es_Salaam":{a:"Africa/Nairobi",c:["TZ"],r:1},"Africa/Djibouti":{a:"Africa/Nairobi",c:["DJ"],r:1},"Africa/Douala":{a:"Africa/Lagos",c:["CM"],r:1},"Africa/El_Aaiun":{u:60,d:0,c:["EH"]},"Africa/Freetown":{a:"Africa/Abidjan",c:["SL"],r:1},"Africa/Gaborone":{a:"Africa/Maputo",c:["BW"],r:1},"Africa/Harare":{a:"Africa/Maputo",c:["ZW"],r:1},"Africa/Johannesburg":{u:120,c:["ZA","LS","SZ"]},"Africa/Juba":{u:120,c:["SS"]},"Africa/Kampala":{a:"Africa/Nairobi",c:["UG"],r:1},"Africa/Khartoum":{u:120,c:["SD"]},"Africa/Kigali":{a:"Africa/Maputo",c:["RW"],r:1},"Africa/Kinshasa":{a:"Africa/Lagos",c:["CD"],r:1},"Africa/Lagos":{u:60,c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{a:"Africa/Lagos",c:["GA"],r:1},"Africa/Lome":{a:"Africa/Abidjan",c:["TG"],r:1},"Africa/Luanda":{a:"Africa/Lagos",c:["AO"],r:1},"Africa/Lubumbashi":{a:"Africa/Maputo",c:["CD"],r:1},"Africa/Lusaka":{a:"Africa/Maputo",c:["ZM"],r:1},"Africa/Malabo":{a:"Africa/Lagos",c:["GQ"],r:1},"Africa/Maputo":{u:120,c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{a:"Africa/Johannesburg",c:["LS"],r:1},"Africa/Mbabane":{a:"Africa/Johannesburg",c:["SZ"],r:1},"Africa/Mogadishu":{a:"Africa/Nairobi",c:["SO"],r:1},"Africa/Monrovia":{u:0,c:["LR"]},"Africa/Nairobi":{u:180,c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{u:60,c:["TD"]},"Africa/Niamey":{a:"Africa/Lagos",c:["NE"],r:1},"Africa/Nouakchott":{a:"Africa/Abidjan",c:["MR"],r:1},"Africa/Ouagadougou":{a:"Africa/Abidjan",c:["BF"],r:1},"Africa/Porto-Novo":{a:"Africa/Lagos",c:["BJ"],r:1},"Africa/Sao_Tome":{u:0,c:["ST"]},"Africa/Timbuktu":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Tripoli":{u:120,c:["LY"]},"Africa/Tunis":{u:60,c:["TN"]},"Africa/Windhoek":{u:120,c:["NA"]},"America/Adak":{u:-600,d:-540,c:["US"]},"America/Anchorage":{u:-540,d:-480,c:["US"]},"America/Anguilla":{a:"America/Puerto_Rico",c:["AI"],r:1},"America/Antigua":{a:"America/Puerto_Rico",c:["AG"],r:1},"America/Araguaina":{u:-180,c:["BR"]},"America/Argentina/Buenos_Aires":{u:-180,c:["AR"]},"America/Argentina/Catamarca":{u:-180,c:["AR"]},"America/Argentina/ComodRivadavia":{a:"America/Argentina/Catamarca",r:1},"America/Argentina/Cordoba":{u:-180,c:["AR"]},"America/Argentina/Jujuy":{u:-180,c:["AR"]},"America/Argentina/La_Rioja":{u:-180,c:["AR"]},"America/Argentina/Mendoza":{u:-180,c:["AR"]},"America/Argentina/Rio_Gallegos":{u:-180,c:["AR"]},"America/Argentina/Salta":{u:-180,c:["AR"]},"America/Argentina/San_Juan":{u:-180,c:["AR"]},"America/Argentina/San_Luis":{u:-180,c:["AR"]},"America/Argentina/Tucuman":{u:-180,c:["AR"]},"America/Argentina/Ushuaia":{u:-180,c:["AR"]},"America/Aruba":{a:"America/Puerto_Rico",c:["AW"],r:1},"America/Asuncion":{u:-240,d:-180,c:["PY"]},"America/Atikokan":{a:"America/Panama",c:["CA"],r:1},"America/Atka":{a:"America/Adak",r:1},"America/Bahia":{u:-180,c:["BR"]},"America/Bahia_Banderas":{u:-360,c:["MX"]},"America/Barbados":{u:-240,c:["BB"]},"America/Belem":{u:-180,c:["BR"]},"America/Belize":{u:-360,c:["BZ"]},"America/Blanc-Sablon":{a:"America/Puerto_Rico",c:["CA"],r:1},"America/Boa_Vista":{u:-240,c:["BR"]},"America/Bogota":{u:-300,c:["CO"]},"America/Boise":{u:-420,d:-360,c:["US"]},"America/Buenos_Aires":{a:"America/Argentina/Buenos_Aires",r:1},"America/Cambridge_Bay":{u:-420,d:-360,c:["CA"]},"America/Campo_Grande":{u:-240,c:["BR"]},"America/Cancun":{u:-300,c:["MX"]},"America/Caracas":{u:-240,c:["VE"]},"America/Catamarca":{a:"America/Argentina/Catamarca",r:1},"America/Cayenne":{u:-180,c:["GF"]},"America/Cayman":{a:"America/Panama",c:["KY"],r:1},"America/Chicago":{u:-360,d:-300,c:["US"]},"America/Chihuahua":{u:-360,c:["MX"]},"America/Ciudad_Juarez":{u:-420,d:-360,c:["MX"]},"America/Coral_Harbour":{a:"America/Panama",c:["CA"],r:1},"America/Cordoba":{a:"America/Argentina/Cordoba",r:1},"America/Costa_Rica":{u:-360,c:["CR"]},"America/Creston":{a:"America/Phoenix",c:["CA"],r:1},"America/Cuiaba":{u:-240,c:["BR"]},"America/Curacao":{a:"America/Puerto_Rico",c:["CW"],r:1},"America/Danmarkshavn":{u:0,c:["GL"]},"America/Dawson":{u:-420,c:["CA"]},"America/Dawson_Creek":{u:-420,c:["CA"]},"America/Denver":{u:-420,d:-360,c:["US"]},"America/Detroit":{u:-300,d:-240,c:["US"]},"America/Dominica":{a:"America/Puerto_Rico",c:["DM"],r:1},"America/Edmonton":{u:-420,d:-360,c:["CA"]},"America/Eirunepe":{u:-300,c:["BR"]},"America/El_Salvador":{u:-360,c:["SV"]},"America/Ensenada":{a:"America/Tijuana",r:1},"America/Fort_Nelson":{u:-420,c:["CA"]},"America/Fort_Wayne":{a:"America/Indiana/Indianapolis",r:1},"America/Fortaleza":{u:-180,c:["BR"]},"America/Glace_Bay":{u:-240,d:-180,c:["CA"]},"America/Godthab":{a:"America/Nuuk",r:1},"America/Goose_Bay":{u:-240,d:-180,c:["CA"]},"America/Grand_Turk":{u:-300,d:-240,c:["TC"]},"America/Grenada":{a:"America/Puerto_Rico",c:["GD"],r:1},"America/Guadeloupe":{a:"America/Puerto_Rico",c:["GP"],r:1},"America/Guatemala":{u:-360,c:["GT"]},"America/Guayaquil":{u:-300,c:["EC"]},"America/Guyana":{u:-240,c:["GY"]},"America/Halifax":{u:-240,d:-180,c:["CA"]},"America/Havana":{u:-300,d:-240,c:["CU"]},"America/Hermosillo":{u:-420,c:["MX"]},"America/Indiana/Indianapolis":{u:-300,d:-240,c:["US"]},"America/Indiana/Knox":{u:-360,d:-300,c:["US"]},"America/Indiana/Marengo":{u:-300,d:-240,c:["US"]},"America/Indiana/Petersburg":{u:-300,d:-240,c:["US"]},"America/Indiana/Tell_City":{u:-360,d:-300,c:["US"]},"America/Indiana/Vevay":{u:-300,d:-240,c:["US"]},"America/Indiana/Vincennes":{u:-300,d:-240,c:["US"]},"America/Indiana/Winamac":{u:-300,d:-240,c:["US"]},"America/Indianapolis":{a:"America/Indiana/Indianapolis",r:1},"America/Inuvik":{u:-420,d:-360,c:["CA"]},"America/Iqaluit":{u:-300,d:-240,c:["CA"]},"America/Jamaica":{u:-300,c:["JM"]},"America/Jujuy":{a:"America/Argentina/Jujuy",r:1},"America/Juneau":{u:-540,d:-480,c:["US"]},"America/Kentucky/Louisville":{u:-300,d:-240,c:["US"]},"America/Kentucky/Monticello":{u:-300,d:-240,c:["US"]},"America/Knox_IN":{a:"America/Indiana/Knox",r:1},"America/Kralendijk":{a:"America/Puerto_Rico",c:["BQ"],r:1},"America/La_Paz":{u:-240,c:["BO"]},"America/Lima":{u:-300,c:["PE"]},"America/Los_Angeles":{u:-480,d:-420,c:["US"]},"America/Louisville":{a:"America/Kentucky/Louisville",r:1},"America/Lower_Princes":{a:"America/Puerto_Rico",c:["SX"],r:1},"America/Maceio":{u:-180,c:["BR"]},"America/Managua":{u:-360,c:["NI"]},"America/Manaus":{u:-240,c:["BR"]},"America/Marigot":{a:"America/Puerto_Rico",c:["MF"],r:1},"America/Martinique":{u:-240,c:["MQ"]},"America/Matamoros":{u:-360,d:-300,c:["MX"]},"America/Mazatlan":{u:-420,c:["MX"]},"America/Mendoza":{a:"America/Argentina/Mendoza",r:1},"America/Menominee":{u:-360,d:-300,c:["US"]},"America/Merida":{u:-360,c:["MX"]},"America/Metlakatla":{u:-540,d:-480,c:["US"]},"America/Mexico_City":{u:-360,c:["MX"]},"America/Miquelon":{u:-180,d:-120,c:["PM"]},"America/Moncton":{u:-240,d:-180,c:["CA"]},"America/Monterrey":{u:-360,c:["MX"]},"America/Montevideo":{u:-180,c:["UY"]},"America/Montreal":{a:"America/Toronto",c:["CA"],r:1},"America/Montserrat":{a:"America/Puerto_Rico",c:["MS"],r:1},"America/Nassau":{a:"America/Toronto",c:["BS"],r:1},"America/New_York":{u:-300,d:-240,c:["US"]},"America/Nipigon":{a:"America/Toronto",c:["CA"],r:1},"America/Nome":{u:-540,d:-480,c:["US"]},"America/Noronha":{u:-120,c:["BR"]},"America/North_Dakota/Beulah":{u:-360,d:-300,c:["US"]},"America/North_Dakota/Center":{u:-360,d:-300,c:["US"]},"America/North_Dakota/New_Salem":{u:-360,d:-300,c:["US"]},"America/Nuuk":{u:-120,d:-60,c:["GL"]},"America/Ojinaga":{u:-360,d:-300,c:["MX"]},"America/Panama":{u:-300,c:["PA","CA","KY"]},"America/Pangnirtung":{a:"America/Iqaluit",r:1},"America/Paramaribo":{u:-180,c:["SR"]},"America/Phoenix":{u:-420,c:["US","CA"]},"America/Port-au-Prince":{u:-300,d:-240,c:["HT"]},"America/Port_of_Spain":{a:"America/Puerto_Rico",c:["TT"],r:1},"America/Porto_Acre":{a:"America/Rio_Branco",r:1},"America/Porto_Velho":{u:-240,c:["BR"]},"America/Puerto_Rico":{u:-240,c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{u:-180,c:["CL"]},"America/Rainy_River":{a:"America/Winnipeg",r:1},"America/Rankin_Inlet":{u:-360,d:-300,c:["CA"]},"America/Recife":{u:-180,c:["BR"]},"America/Regina":{u:-360,c:["CA"]},"America/Resolute":{u:-360,d:-300,c:["CA"]},"America/Rio_Branco":{u:-300,c:["BR"]},"America/Rosario":{a:"America/Argentina/Cordoba",r:1},"America/Santa_Isabel":{a:"America/Tijuana",r:1},"America/Santarem":{u:-180,c:["BR"]},"America/Santiago":{u:-240,d:-180,c:["CL"]},"America/Santo_Domingo":{u:-240,c:["DO"]},"America/Sao_Paulo":{u:-180,c:["BR"]},"America/Scoresbysund":{u:-60,d:0,c:["GL"]},"America/Shiprock":{a:"America/Denver",r:1},"America/Sitka":{u:-540,d:-480,c:["US"]},"America/St_Barthelemy":{a:"America/Puerto_Rico",c:["BL"],r:1},"America/St_Johns":{u:-210,d:-150,c:["CA"]},"America/St_Kitts":{a:"America/Puerto_Rico",c:["KN"],r:1},"America/St_Lucia":{a:"America/Puerto_Rico",c:["LC"],r:1},"America/St_Thomas":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/St_Vincent":{a:"America/Puerto_Rico",c:["VC"],r:1},"America/Swift_Current":{u:-360,c:["CA"]},"America/Tegucigalpa":{u:-360,c:["HN"]},"America/Thule":{u:-240,d:-180,c:["GL"]},"America/Thunder_Bay":{a:"America/Toronto",c:["CA"],r:1},"America/Tijuana":{u:-480,d:-420,c:["MX"]},"America/Toronto":{u:-300,d:-240,c:["CA","BS"]},"America/Tortola":{a:"America/Puerto_Rico",c:["VG"],r:1},"America/Vancouver":{u:-480,d:-420,c:["CA"]},"America/Virgin":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/Whitehorse":{u:-420,c:["CA"]},"America/Winnipeg":{u:-360,d:-300,c:["CA"]},"America/Yakutat":{u:-540,d:-480,c:["US"]},"America/Yellowknife":{a:"America/Edmonton",r:1},"Antarctica/Casey":{u:660,c:["AQ"]},"Antarctica/Davis":{u:420,c:["AQ"]},"Antarctica/DumontDUrville":{a:"Pacific/Port_Moresby",c:["AQ"],r:1},"Antarctica/Macquarie":{u:600,d:660,c:["AU"]},"Antarctica/Mawson":{u:300,c:["AQ"]},"Antarctica/McMurdo":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Palmer":{u:-180,c:["AQ"]},"Antarctica/Rothera":{u:-180,c:["AQ"]},"Antarctica/South_Pole":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Syowa":{a:"Asia/Riyadh",c:["AQ"],r:1},"Antarctica/Troll":{u:0,d:120,c:["AQ"]},"Antarctica/Vostok":{a:"Asia/Urumqi",c:["AQ"],r:1},"Arctic/Longyearbyen":{a:"Europe/Berlin",c:["SJ"],r:1},"Asia/Aden":{a:"Asia/Riyadh",c:["YE"],r:1},"Asia/Almaty":{u:360,c:["KZ"]},"Asia/Amman":{u:180,c:["JO"]},"Asia/Anadyr":{u:720,c:["RU"]},"Asia/Aqtau":{u:300,c:["KZ"]},"Asia/Aqtobe":{u:300,c:["KZ"]},"Asia/Ashgabat":{u:300,c:["TM"]},"Asia/Ashkhabad":{a:"Asia/Ashgabat",r:1},"Asia/Atyrau":{u:300,c:["KZ"]},"Asia/Baghdad":{u:180,c:["IQ"]},"Asia/Bahrain":{a:"Asia/Qatar",c:["BH"],r:1},"Asia/Baku":{u:240,c:["AZ"]},"Asia/Bangkok":{u:420,c:["TH","CX","KH","LA","VN"]},"Asia/Barnaul":{u:420,c:["RU"]},"Asia/Beirut":{u:120,d:180,c:["LB"]},"Asia/Bishkek":{u:360,c:["KG"]},"Asia/Brunei":{a:"Asia/Kuching",c:["BN"],r:1},"Asia/Calcutta":{a:"Asia/Kolkata",r:1},"Asia/Chita":{u:540,c:["RU"]},"Asia/Choibalsan":{u:480,c:["MN"]},"Asia/Chongqing":{a:"Asia/Shanghai",r:1},"Asia/Chungking":{a:"Asia/Shanghai",r:1},"Asia/Colombo":{u:330,c:["LK"]},"Asia/Dacca":{a:"Asia/Dhaka",r:1},"Asia/Damascus":{u:180,c:["SY"]},"Asia/Dhaka":{u:360,c:["BD"]},"Asia/Dili":{u:540,c:["TL"]},"Asia/Dubai":{u:240,c:["AE","OM","RE","SC","TF"]},"Asia/Dushanbe":{u:300,c:["TJ"]},"Asia/Famagusta":{u:120,d:180,c:["CY"]},"Asia/Gaza":{u:120,d:180,c:["PS"]},"Asia/Harbin":{a:"Asia/Shanghai",r:1},"Asia/Hebron":{u:120,d:180,c:["PS"]},"Asia/Ho_Chi_Minh":{u:420,c:["VN"]},"Asia/Hong_Kong":{u:480,c:["HK"]},"Asia/Hovd":{u:420,c:["MN"]},"Asia/Irkutsk":{u:480,c:["RU"]},"Asia/Istanbul":{a:"Europe/Istanbul",r:1},"Asia/Jakarta":{u:420,c:["ID"]},"Asia/Jayapura":{u:540,c:["ID"]},"Asia/Jerusalem":{u:120,d:180,c:["IL"]},"Asia/Kabul":{u:270,c:["AF"]},"Asia/Kamchatka":{u:720,c:["RU"]},"Asia/Karachi":{u:300,c:["PK"]},"Asia/Kashgar":{a:"Asia/Urumqi",c:["CN"],r:1},"Asia/Kathmandu":{u:345,c:["NP"]},"Asia/Katmandu":{a:"Asia/Kathmandu",r:1},"Asia/Khandyga":{u:540,c:["RU"]},"Asia/Kolkata":{u:330,c:["IN"]},"Asia/Krasnoyarsk":{u:420,c:["RU"]},"Asia/Kuala_Lumpur":{a:"Asia/Singapore",c:["MY"],r:1},"Asia/Kuching":{u:480,c:["MY","BN"]},"Asia/Kuwait":{a:"Asia/Riyadh",c:["KW"],r:1},"Asia/Macao":{a:"Asia/Macau",r:1},"Asia/Macau":{u:480,c:["MO"]},"Asia/Magadan":{u:660,c:["RU"]},"Asia/Makassar":{u:480,c:["ID"]},"Asia/Manila":{u:480,c:["PH"]},"Asia/Muscat":{a:"Asia/Dubai",c:["OM"],r:1},"Asia/Nicosia":{u:120,d:180,c:["CY"]},"Asia/Novokuznetsk":{u:420,c:["RU"]},"Asia/Novosibirsk":{u:420,c:["RU"]},"Asia/Omsk":{u:360,c:["RU"]},"Asia/Oral":{u:300,c:["KZ"]},"Asia/Phnom_Penh":{a:"Asia/Bangkok",c:["KH"],r:1},"Asia/Pontianak":{u:420,c:["ID"]},"Asia/Pyongyang":{u:540,c:["KP"]},"Asia/Qatar":{u:180,c:["QA","BH"]},"Asia/Qostanay":{u:360,c:["KZ"]},"Asia/Qyzylorda":{u:300,c:["KZ"]},"Asia/Rangoon":{a:"Asia/Yangon",c:["MM"],r:1},"Asia/Riyadh":{u:180,c:["SA","AQ","KW","YE"]},"Asia/Saigon":{a:"Asia/Ho_Chi_Minh",r:1},"Asia/Sakhalin":{u:660,c:["RU"]},"Asia/Samarkand":{u:300,c:["UZ"]},"Asia/Seoul":{u:540,c:["KR"]},"Asia/Shanghai":{u:480,c:["CN"]},"Asia/Singapore":{u:480,c:["SG","MY"]},"Asia/Srednekolymsk":{u:660,c:["RU"]},"Asia/Taipei":{u:480,c:["TW"]},"Asia/Tashkent":{u:300,c:["UZ"]},"Asia/Tbilisi":{u:240,c:["GE"]},"Asia/Tehran":{u:210,c:["IR"]},"Asia/Tel_Aviv":{a:"Asia/Jerusalem",r:1},"Asia/Thimbu":{a:"Asia/Thimphu",r:1},"Asia/Thimphu":{u:360,c:["BT"]},"Asia/Tokyo":{u:540,c:["JP"]},"Asia/Tomsk":{u:420,c:["RU"]},"Asia/Ujung_Pandang":{a:"Asia/Makassar",r:1},"Asia/Ulaanbaatar":{u:480,c:["MN"]},"Asia/Ulan_Bator":{a:"Asia/Ulaanbaatar",r:1},"Asia/Urumqi":{u:360,c:["CN","AQ"]},"Asia/Ust-Nera":{u:600,c:["RU"]},"Asia/Vientiane":{a:"Asia/Bangkok",c:["LA"],r:1},"Asia/Vladivostok":{u:600,c:["RU"]},"Asia/Yakutsk":{u:540,c:["RU"]},"Asia/Yangon":{u:390,c:["MM","CC"]},"Asia/Yekaterinburg":{u:300,c:["RU"]},"Asia/Yerevan":{u:240,c:["AM"]},"Atlantic/Azores":{u:-60,d:0,c:["PT"]},"Atlantic/Bermuda":{u:-240,d:-180,c:["BM"]},"Atlantic/Canary":{u:0,d:60,c:["ES"]},"Atlantic/Cape_Verde":{u:-60,c:["CV"]},"Atlantic/Faeroe":{a:"Atlantic/Faroe",r:1},"Atlantic/Faroe":{u:0,d:60,c:["FO"]},"Atlantic/Jan_Mayen":{a:"Europe/Berlin",c:["SJ"],r:1},"Atlantic/Madeira":{u:0,d:60,c:["PT"]},"Atlantic/Reykjavik":{a:"Africa/Abidjan",c:["IS"],r:1},"Atlantic/South_Georgia":{u:-120,c:["GS"]},"Atlantic/St_Helena":{a:"Africa/Abidjan",c:["SH"],r:1},"Atlantic/Stanley":{u:-180,c:["FK"]},"Australia/ACT":{a:"Australia/Sydney",r:1},"Australia/Adelaide":{u:570,d:630,c:["AU"]},"Australia/Brisbane":{u:600,c:["AU"]},"Australia/Broken_Hill":{u:570,d:630,c:["AU"]},"Australia/Canberra":{a:"Australia/Sydney",r:1},"Australia/Currie":{a:"Australia/Hobart",r:1},"Australia/Darwin":{u:570,c:["AU"]},"Australia/Eucla":{u:525,c:["AU"]},"Australia/Hobart":{u:600,d:660,c:["AU"]},"Australia/LHI":{a:"Australia/Lord_Howe",r:1},"Australia/Lindeman":{u:600,c:["AU"]},"Australia/Lord_Howe":{u:630,d:660,c:["AU"]},"Australia/Melbourne":{u:600,d:660,c:["AU"]},"Australia/NSW":{a:"Australia/Sydney",r:1},"Australia/North":{a:"Australia/Darwin",r:1},"Australia/Perth":{u:480,c:["AU"]},"Australia/Queensland":{a:"Australia/Brisbane",r:1},"Australia/South":{a:"Australia/Adelaide",r:1},"Australia/Sydney":{u:600,d:660,c:["AU"]},"Australia/Tasmania":{a:"Australia/Hobart",r:1},"Australia/Victoria":{a:"Australia/Melbourne",r:1},"Australia/West":{a:"Australia/Perth",r:1},"Australia/Yancowinna":{a:"Australia/Broken_Hill",r:1},"Brazil/Acre":{a:"America/Rio_Branco",r:1},"Brazil/DeNoronha":{a:"America/Noronha",r:1},"Brazil/East":{a:"America/Sao_Paulo",r:1},"Brazil/West":{a:"America/Manaus",r:1},CET:{u:60,d:120},CST6CDT:{u:-360,d:-300},"Canada/Atlantic":{a:"America/Halifax",r:1},"Canada/Central":{a:"America/Winnipeg",r:1},"Canada/Eastern":{a:"America/Toronto",c:["CA"],r:1},"Canada/Mountain":{a:"America/Edmonton",r:1},"Canada/Newfoundland":{a:"America/St_Johns",r:1},"Canada/Pacific":{a:"America/Vancouver",r:1},"Canada/Saskatchewan":{a:"America/Regina",r:1},"Canada/Yukon":{a:"America/Whitehorse",r:1},"Chile/Continental":{a:"America/Santiago",r:1},"Chile/EasterIsland":{a:"Pacific/Easter",r:1},Cuba:{a:"America/Havana",r:1},EET:{u:120,d:180},EST:{u:-300},EST5EDT:{u:-300,d:-240},Egypt:{a:"Africa/Cairo",r:1},Eire:{a:"Europe/Dublin",r:1},"Etc/GMT":{u:0},"Etc/GMT+0":{a:"Etc/GMT",r:1},"Etc/GMT+1":{u:-60},"Etc/GMT+10":{u:-600},"Etc/GMT+11":{u:-660},"Etc/GMT+12":{u:-720},"Etc/GMT+2":{u:-120},"Etc/GMT+3":{u:-180},"Etc/GMT+4":{u:-240},"Etc/GMT+5":{u:-300},"Etc/GMT+6":{u:-360},"Etc/GMT+7":{u:-420},"Etc/GMT+8":{u:-480},"Etc/GMT+9":{u:-540},"Etc/GMT-0":{a:"Etc/GMT",r:1},"Etc/GMT-1":{u:60},"Etc/GMT-10":{u:600},"Etc/GMT-11":{u:660},"Etc/GMT-12":{u:720},"Etc/GMT-13":{u:780},"Etc/GMT-14":{u:840},"Etc/GMT-2":{u:120},"Etc/GMT-3":{u:180},"Etc/GMT-4":{u:240},"Etc/GMT-5":{u:300},"Etc/GMT-6":{u:360},"Etc/GMT-7":{u:420},"Etc/GMT-8":{u:480},"Etc/GMT-9":{u:540},"Etc/GMT0":{a:"Etc/GMT",r:1},"Etc/Greenwich":{a:"Etc/GMT",r:1},"Etc/UCT":{a:"Etc/UTC",r:1},"Etc/UTC":{u:0},"Etc/Universal":{a:"Etc/UTC",r:1},"Etc/Zulu":{a:"Etc/UTC",r:1},"Europe/Amsterdam":{a:"Europe/Brussels",c:["NL"],r:1},"Europe/Andorra":{u:60,d:120,c:["AD"]},"Europe/Astrakhan":{u:240,c:["RU"]},"Europe/Athens":{u:120,d:180,c:["GR"]},"Europe/Belfast":{a:"Europe/London",c:["GB"],r:1},"Europe/Belgrade":{u:60,d:120,c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{u:60,d:120,c:["DE","DK","NO","SE","SJ"]},"Europe/Bratislava":{a:"Europe/Prague",c:["SK"],r:1},"Europe/Brussels":{u:60,d:120,c:["BE","LU","NL"]},"Europe/Bucharest":{u:120,d:180,c:["RO"]},"Europe/Budapest":{u:60,d:120,c:["HU"]},"Europe/Busingen":{a:"Europe/Zurich",c:["DE"],r:1},"Europe/Chisinau":{u:120,d:180,c:["MD"]},"Europe/Copenhagen":{a:"Europe/Berlin",c:["DK"],r:1},"Europe/Dublin":{u:60,d:0,c:["IE"]},"Europe/Gibraltar":{u:60,d:120,c:["GI"]},"Europe/Guernsey":{a:"Europe/London",c:["GG"],r:1},"Europe/Helsinki":{u:120,d:180,c:["FI","AX"]},"Europe/Isle_of_Man":{a:"Europe/London",c:["IM"],r:1},"Europe/Istanbul":{u:180,c:["TR"]},"Europe/Jersey":{a:"Europe/London",c:["JE"],r:1},"Europe/Kaliningrad":{u:120,c:["RU"]},"Europe/Kiev":{a:"Europe/Kyiv",r:1},"Europe/Kirov":{u:180,c:["RU"]},"Europe/Kyiv":{u:120,d:180,c:["UA"]},"Europe/Lisbon":{u:0,d:60,c:["PT"]},"Europe/Ljubljana":{a:"Europe/Belgrade",c:["SI"],r:1},"Europe/London":{u:0,d:60,c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{a:"Europe/Brussels",c:["LU"],r:1},"Europe/Madrid":{u:60,d:120,c:["ES"]},"Europe/Malta":{u:60,d:120,c:["MT"]},"Europe/Mariehamn":{a:"Europe/Helsinki",c:["AX"],r:1},"Europe/Minsk":{u:180,c:["BY"]},"Europe/Monaco":{a:"Europe/Paris",c:["MC"],r:1},"Europe/Moscow":{u:180,c:["RU"]},"Europe/Nicosia":{a:"Asia/Nicosia",r:1},"Europe/Oslo":{a:"Europe/Berlin",c:["NO"],r:1},"Europe/Paris":{u:60,d:120,c:["FR","MC"]},"Europe/Podgorica":{a:"Europe/Belgrade",c:["ME"],r:1},"Europe/Prague":{u:60,d:120,c:["CZ","SK"]},"Europe/Riga":{u:120,d:180,c:["LV"]},"Europe/Rome":{u:60,d:120,c:["IT","SM","VA"]},"Europe/Samara":{u:240,c:["RU"]},"Europe/San_Marino":{a:"Europe/Rome",c:["SM"],r:1},"Europe/Sarajevo":{a:"Europe/Belgrade",c:["BA"],r:1},"Europe/Saratov":{u:240,c:["RU"]},"Europe/Simferopol":{u:180,c:["RU","UA"]},"Europe/Skopje":{a:"Europe/Belgrade",c:["MK"],r:1},"Europe/Sofia":{u:120,d:180,c:["BG"]},"Europe/Stockholm":{a:"Europe/Berlin",c:["SE"],r:1},"Europe/Tallinn":{u:120,d:180,c:["EE"]},"Europe/Tirane":{u:60,d:120,c:["AL"]},"Europe/Tiraspol":{a:"Europe/Chisinau",r:1},"Europe/Ulyanovsk":{u:240,c:["RU"]},"Europe/Uzhgorod":{a:"Europe/Kyiv",r:1},"Europe/Vaduz":{a:"Europe/Zurich",c:["LI"],r:1},"Europe/Vatican":{a:"Europe/Rome",c:["VA"],r:1},"Europe/Vienna":{u:60,d:120,c:["AT"]},"Europe/Vilnius":{u:120,d:180,c:["LT"]},"Europe/Volgograd":{u:180,c:["RU"]},"Europe/Warsaw":{u:60,d:120,c:["PL"]},"Europe/Zagreb":{a:"Europe/Belgrade",c:["HR"],r:1},"Europe/Zaporozhye":{a:"Europe/Kyiv",r:1},"Europe/Zurich":{u:60,d:120,c:["CH","DE","LI"]},Factory:{u:0},GB:{a:"Europe/London",c:["GB"],r:1},"GB-Eire":{a:"Europe/London",c:["GB"],r:1},GMT:{a:"Etc/GMT",r:1},"GMT+0":{a:"Etc/GMT",r:1},"GMT-0":{a:"Etc/GMT",r:1},GMT0:{a:"Etc/GMT",r:1},Greenwich:{a:"Etc/GMT",r:1},HST:{u:-600},Hongkong:{a:"Asia/Hong_Kong",r:1},Iceland:{a:"Africa/Abidjan",c:["IS"],r:1},"Indian/Antananarivo":{a:"Africa/Nairobi",c:["MG"],r:1},"Indian/Chagos":{u:360,c:["IO"]},"Indian/Christmas":{a:"Asia/Bangkok",c:["CX"],r:1},"Indian/Cocos":{a:"Asia/Yangon",c:["CC"],r:1},"Indian/Comoro":{a:"Africa/Nairobi",c:["KM"],r:1},"Indian/Kerguelen":{a:"Indian/Maldives",c:["TF"],r:1},"Indian/Mahe":{a:"Asia/Dubai",c:["SC"],r:1},"Indian/Maldives":{u:300,c:["MV","TF"]},"Indian/Mauritius":{u:240,c:["MU"]},"Indian/Mayotte":{a:"Africa/Nairobi",c:["YT"],r:1},"Indian/Reunion":{a:"Asia/Dubai",c:["RE"],r:1},Iran:{a:"Asia/Tehran",r:1},Israel:{a:"Asia/Jerusalem",r:1},Jamaica:{a:"America/Jamaica",r:1},Japan:{a:"Asia/Tokyo",r:1},Kwajalein:{a:"Pacific/Kwajalein",r:1},Libya:{a:"Africa/Tripoli",r:1},MET:{u:60,d:120},MST:{u:-420},MST7MDT:{u:-420,d:-360},"Mexico/BajaNorte":{a:"America/Tijuana",r:1},"Mexico/BajaSur":{a:"America/Mazatlan",r:1},"Mexico/General":{a:"America/Mexico_City",r:1},NZ:{a:"Pacific/Auckland",c:["NZ"],r:1},"NZ-CHAT":{a:"Pacific/Chatham",r:1},Navajo:{a:"America/Denver",r:1},PRC:{a:"Asia/Shanghai",r:1},PST8PDT:{u:-480,d:-420},"Pacific/Apia":{u:780,c:["WS"]},"Pacific/Auckland":{u:720,d:780,c:["NZ","AQ"]},"Pacific/Bougainville":{u:660,c:["PG"]},"Pacific/Chatham":{u:765,d:825,c:["NZ"]},"Pacific/Chuuk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Easter":{u:-360,d:-300,c:["CL"]},"Pacific/Efate":{u:660,c:["VU"]},"Pacific/Enderbury":{a:"Pacific/Kanton",r:1},"Pacific/Fakaofo":{u:780,c:["TK"]},"Pacific/Fiji":{u:720,c:["FJ"]},"Pacific/Funafuti":{a:"Pacific/Tarawa",c:["TV"],r:1},"Pacific/Galapagos":{u:-360,c:["EC"]},"Pacific/Gambier":{u:-540,c:["PF"]},"Pacific/Guadalcanal":{u:660,c:["SB","FM"]},"Pacific/Guam":{u:600,c:["GU","MP"]},"Pacific/Honolulu":{u:-600,c:["US"]},"Pacific/Johnston":{a:"Pacific/Honolulu",r:1},"Pacific/Kanton":{u:780,c:["KI"]},"Pacific/Kiritimati":{u:840,c:["KI"]},"Pacific/Kosrae":{u:660,c:["FM"]},"Pacific/Kwajalein":{u:720,c:["MH"]},"Pacific/Majuro":{a:"Pacific/Tarawa",c:["MH"],r:1},"Pacific/Marquesas":{u:-570,c:["PF"]},"Pacific/Midway":{a:"Pacific/Pago_Pago",c:["UM"],r:1},"Pacific/Nauru":{u:720,c:["NR"]},"Pacific/Niue":{u:-660,c:["NU"]},"Pacific/Norfolk":{u:660,d:720,c:["NF"]},"Pacific/Noumea":{u:660,c:["NC"]},"Pacific/Pago_Pago":{u:-660,c:["AS","UM"]},"Pacific/Palau":{u:540,c:["PW"]},"Pacific/Pitcairn":{u:-480,c:["PN"]},"Pacific/Pohnpei":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Ponape":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Port_Moresby":{u:600,c:["PG","AQ","FM"]},"Pacific/Rarotonga":{u:-600,c:["CK"]},"Pacific/Saipan":{a:"Pacific/Guam",c:["MP"],r:1},"Pacific/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},"Pacific/Tahiti":{u:-600,c:["PF"]},"Pacific/Tarawa":{u:720,c:["KI","MH","TV","UM","WF"]},"Pacific/Tongatapu":{u:780,c:["TO"]},"Pacific/Truk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Wake":{a:"Pacific/Tarawa",c:["UM"],r:1},"Pacific/Wallis":{a:"Pacific/Tarawa",c:["WF"],r:1},"Pacific/Yap":{a:"Pacific/Port_Moresby",c:["FM"],r:1},Poland:{a:"Europe/Warsaw",r:1},Portugal:{a:"Europe/Lisbon",r:1},ROC:{a:"Asia/Taipei",r:1},ROK:{a:"Asia/Seoul",r:1},Singapore:{a:"Asia/Singapore",c:["SG"],r:1},Turkey:{a:"Europe/Istanbul",r:1},UCT:{a:"Etc/UTC",r:1},"US/Alaska":{a:"America/Anchorage",r:1},"US/Aleutian":{a:"America/Adak",r:1},"US/Arizona":{a:"America/Phoenix",c:["US"],r:1},"US/Central":{a:"America/Chicago",r:1},"US/East-Indiana":{a:"America/Indiana/Indianapolis",r:1},"US/Eastern":{a:"America/New_York",r:1},"US/Hawaii":{a:"Pacific/Honolulu",r:1},"US/Indiana-Starke":{a:"America/Indiana/Knox",r:1},"US/Michigan":{a:"America/Detroit",r:1},"US/Mountain":{a:"America/Denver",r:1},"US/Pacific":{a:"America/Los_Angeles",r:1},"US/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},UTC:{a:"Etc/UTC",r:1},Universal:{a:"Etc/UTC",r:1},"W-SU":{a:"Europe/Moscow",r:1},WET:{u:0,d:60},Zulu:{a:"Etc/UTC",r:1}}};function zo(e,t){var r=e.countries[t];if(!r)return null;var n=function(e){Lo||(Lo=function(e){return Object.keys(e.timezones).reduce((function(t,r){var n=e.timezones[r],o=n.c,a=n.a,i=e.timezones[a]||{},s=o||i.c;return s?(s.forEach((function(e){t[e]||Object.assign(t,No({},e,{current:[],all:[]})),void 0===n.r&&t[e].current.push(r),t[e].all.push(r)})),t):t}),{})}(e));return Lo}(e)[t]||{};return{id:t,name:r,timezones:n.current||[],allTimezones:n.all||[]}}function ko(e){var t=Math.floor(Math.abs(e)/60),r=e%60;return"".concat(e<0?"-":"+").concat(Do(t),":").concat(Do(r))}function Do(e){var t=Math.abs(e);return"".concat(t<10?"0":"").concat(t)}var Bo=["allTimezones"];Object.keys(Fo.timezones).length;var Uo={},Vo={};function Go(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Uo[e]||function(e){if(!e)return;Uo[e.id]=e}(zo(Fo,e)),function(e,t){if(!e)return null;var r=t||{},n=r.deprecated;e.allTimezones;var o=xo(e,Bo),a=n?e.allTimezones:e.timezones;return Mo(Mo({},o),{},{timezones:a})}(Uo[e],t)}function jo(e){return Vo[e]||function(e){if(!e)return;Vo[e.name]=e,Object.keys(e).length}(function(e,t){var r=e.timezones[t];if(!r)return null;var n=r.a,o=void 0===n?null:n,a=Mo(Mo({},o?e.timezones[o]:{}),e.timezones[t]),i=a.c||[],s=a.u,c=Number.isInteger(a.d)?a.d:s,l={name:t,countries:i,utcOffset:s,utcOffsetStr:ko(s),dstOffset:c,dstOffsetStr:ko(c),aliasOf:o};return r.r&&(l.deprecated=!0),l}(Fo,e)),Vo[e]?Mo({},Vo[e]):null}const qo=()=>{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return((jo(e)||{}).countries||[]).map((function(e){return Go(e,t)}))}(e)[0]?.id??""},Ho=e=>"unknown"===e?.toLowerCase()?"":e,Ko=(e,t,r)=>{if(e.environment.previewMode)return(e=>{const t=e?.products?e.products[0].paymentPlans[0].charges[0]:{prices:[{price:25}],chargeData:{name:"Monthly Fee"}},r=t.prices[0]?.price,n=t.chargeData?.name;return{success:!0,contractedMrr:r,totalContractedValue:null,amount:r+3,amountWithoutTax:r,taxAmount:3,invoiceTargetDate:"2024-05-20",documentDate:"2024-05-20",invoiceItems:{0:{serviceStartDate:"2024-05-20",serviceEndDate:"2024-06-19",chargeAmount:r,taxAmount:3,chargeDescription:"",chargeName:n,productName:"Product",productRatePlanChargeId:"8ad097b48f533234018f57a8982a5a45",quantity:1,unitOfMeasure:""}}}})(Ot(e).dynamicOfferPreview??{});const n={account:{city:Ho(Ot(e).requestCity),country:Ho(Ot(e).requestCountry)||qo(),county:"",state:Ho(Ot(e).requestState),zipCode:Ho(Ot(e).requestZipCode)},currency:Co(e,t),ratePlanIds:[t.paymentOption.slug],termType:"EVERGREEN",...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult),productId:t.paymentOption.productId}:{}};return gn("plugins/public/zuora-billing/preview-subscription",{method:"POST",bodyObject:n},r).then((e=>e.json()))},Yo=(e,t="en-UK")=>{if(!e)return"";const r=new Date(e);return Number.isNaN(r.getDate())?"Unknown":r.toLocaleDateString(t,{day:"numeric",month:"short",year:"numeric"})},Wo=/^<<<([a-z0-9\-.]+)\|(.*)>>>$/,Jo=(e,t)=>{if(null==t)return"";const r=e.languagePack?.entries??{},n=rt[t];return r[n.languagePackKey]??n.fallbackMessage},Qo=(e,t,r)=>{try{return(e.languagePack?.entries??{})[t]??r}catch(e){return console.warn(`error resolving language pack key in string ${t}`,e),r}},Zo=e=>Qo(e,"pages.common.date-time-format-locale","en-US"),Xo=(e,t)=>{try{return null==t?t:"object"==typeof t||Array.isArray(t)?Array.isArray(t)?t.map((t=>Xo(e,t))):Object.entries(t).reduce(((t,[r,n])=>({...t,[r]:Xo(e,n)})),{}):"string"==typeof t||t instanceof String?((e,t)=>{if(!t)return t;try{const r=Wo.exec(t);return r&&r[1]?(e?.entries??{})[r[1]]??r[2]:t}catch(e){return console.warn(`error resolving language pack key in string ${t}`,e),t}})(e,t):t}catch(e){return console.warn("error resolving language pack entries",e),t}},ea=(e,t)=>{try{if(t.isOneOff)return"";const r=Qo(e,"forms.billing.history.every","every"),n=t["transaction-history"]?.[0]??t["next-billing-time"],o=n?.["human-readable-amount"];if(!o)return"";const a=t.currency_code?.toUpperCase()??o.replace(/[0-9,.]/g,""),{discounts_applied:i,pre_discount_price:s,billing_frequency:c,billing_frequency_unit:l}=t??{};if(!i&&s&&c&&l)return 1===c?`${a} ${s}/${l.toLowerCase()}`:`${a} ${s} ${r} ${c} ${l.toLowerCase()}s`;const u=Number(o.replace(/[^\d.-]/g,"")),p=Number.isInteger(u)?u.toFixed(0):u;return 1===n.cycleCount?`${a}${p}/${n.cycle}`:`${a} ${p} ${r} ${n.cycleCount} ${n.cycle}s`}catch{return console.error("Failed to get subscription amount"),""}},ta=(e,t,r)=>(e?"":"+")+`${(t/100).toFixed(2)} ${r}`+(e?" incl.":""),ra=(e,t)=>{try{const r=t["default-tax-rates"],n=t["managed-by"].toLowerCase(),o="canceled"===t["subscription-state"].toLowerCase(),a=Yo("stripe"===n?t.ended:t.ends),i=Zo(e);let s=t["transaction-history"].reduce(((e,t)=>{const o=Yo(t.time,i),a=((e,t,r,n)=>{try{const o=new Date(e),a=(()=>{switch(t){case"day":return o.setDate(o.getDate()+r);case"week":return o.setDate(o.getDate()+7*r);case"month":return o.setMonth(o.getMonth()+r);case"year":return o.setFullYear(o.getFullYear()+r);default:return null}})();return`${Yo(e,n)} - ${Yo(a,n)}`}catch{return console.error("Failed to get subscription period"),""}})(t.time,t.cycle,t.cycleCount,i),{cents:s,currency:c,taxRate:l}=t;let u,p;if(l){const{displayName:e,taxInclusive:t,taxPercent:r}=l;({taxes:p,total:u}=((e,t,r,n)=>{try{const o=n*(e/100),a=((e+(r?0:o))/100).toFixed(2);return{taxes:`(${ta(r,o,t)})`,total:a}}catch{return console.error("Failed to get subscription tax"),{taxes:"",total:0}}})(s,e,t,r))}else r?.length?({taxes:p,total:u}=((e,t)=>{try{const r=[];let n=e;t.forEach((t=>{const o=t.taxPercent*(e/100),a=ta(t.taxInclusive,o,t.displayName);r.push(a),n+=t.taxInclusive?0:o}));const o=(n/100).toFixed(2);return{taxes:`(${r.join(", ")})`,total:o}}catch{return console.error("Failed to get subscription default tax"),{taxes:"",total:0}}})(s,r)):(u=(s/100).toFixed(2),p=null);return[...e,{date:o,period:a,subtotal:"stripe"===n?(t.cents/100).toFixed(2):null,currency:c,taxes:p,total:u}]}),[]);return o&&(s=[{date:a,period:"canceled"},...s]),s}catch{return console.error("Failed to get subscription billing history"),null}},na=(e,t,r,n)=>gn(`blaize/payment/${e.organisationConfiguration.paymentProvider}/subscriptions`,{method:"GET"},r,null,!0).then((e=>e.ok?e.json():[])).then((t=>t.filter((e=>!n||"active"===e["subscription-state"]?.toLowerCase())).map((t=>({externalId:t["external-id"],productId:t["blaize-product"].id,productLabel:t["blaize-product"].label??t["blaize-product"].id,planId:t.plan_id,planLabel:t.plan_name,currency:t.currency_code,status:"active"===t["subscription-state"]?.toLowerCase()?"active":"inactive",nextBillingTime:Yo(t["next-billing-time"]),amount:ea(e,t),transactionHistory:ra(e,t)}))))),oa={draft:"pending","pending activation":"pending","pending acceptance":"pending",active:"active",cancelled:"inactive",expired:"inactive",suspended:"inactive"},aa=(e,t)=>gn("zephr/payment/stripe/create-subscription-previews",{method:"POST",bodyObject:{product_id:e.paymentOption.productId,plan_id:e.paymentOption.slug,billing_country:e.billingAddress.country,billing_post_code:e.billingAddress.postalCode,promo_code:e.promoCodeValid?e.promoCode:void 0}},t,null,!0).then((e=>e.json()));function ia(t){let r,n;return{c(){r=P("script"),r.innerHTML="",_(r,"type","text/javascript"),c(r.src,n="https://js.zuora.com/payment/v3/zuora.js")||_(r,"src","https://js.zuora.com/payment/v3/zuora.js"),_(r,"onload","window.zuoraLoadCallback()")},m(e,t){h(document.head,r)},p:e,i:e,o:e,d(e){g(r)}}}function sa(e,t,r){let{onMountCallback:n}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(0,n=e.onMountCallback)},[n]}class ca extends pe{constructor(e){super(),ue(this,e,sa,ia,i,{onMountCallback:0})}}const la={[mn]:{loader:(e,t,r)=>{const n=Ot(e).paymentProviderFormConfig?.enablePaypal;r.incrementRequestCount(),Sn.then((()=>Cn(0,r))).then((e=>{window.braintree.dropin.create({authorization:e,container:"#braintree-dropin-container",...n?{paypal:En(t)}:{}},((e,t)=>{if(r.decrementRequestCount(),An=t,r.updateFormState({paymentProviderFormLoaded:!0}),e)throw e;An.isPaymentMethodRequestable()&&r.updateFormState({paymentFormComplete:!0}),An.on("paymentMethodRequestable",(()=>{r.updateFormState({paymentFormComplete:!0})})),An.on("noPaymentMethodRequestable",(()=>{r.updateFormState({paymentFormComplete:!1})}))}))})).catch((e=>{console.error(e),r.decrementRequestCount()}))},preLoader:null,completer:async(e,t,r)=>{let n,o;r.incrementRequestCount();const a=new Promise(((e,t)=>{n=e,o=t})),i=e=>{console.error(e),r.decrementRequestCount(),o()};return An.requestPaymentMethod(((o,a)=>{!o&&a||i(`Error requesting payment method ${JSON.stringify(o)}`);const{url:s,body:c,method:l}=Pn(e,t,mn,{payment_nonce:a.nonce,..."PayPalAccount"===a.type?{paypal:!0}:{}});return gn(s,{method:l,bodyObject:c},r).then((e=>{if(e?.ok)return r.decrementRequestCount(),void n();i(e)})).catch((e=>{i(e)}))})),a},changePaymentCompleter:async(e,t,r)=>{let n,o;const a=new Promise(((e,t)=>{n=e,o=t}));return An.requestPaymentMethod(((e,a)=>(!e&&a||console.error(`Error requesting payment method ${JSON.stringify(e)}`),gn(`blaize/payment/braintree/subscriptions/${t.selectedSubscription?.externalId}`,{method:"PATCH",bodyObject:{payment_method_nonce:a?.nonce}},r).then((e=>{console.log(e),e?.ok?n():o(e)})).catch((e=>{o(e)}))))),a},component:class extends pe{constructor(e){super(),ue(this,e,Qr,Jr,i,{onMountCallback:3,providerError:0,isDisabled:1,isLoaded:4,error:2})}},preLoaderComponent:null,promoCodeCheckPath:"blaize/payment/braintree/promo-code-check",productAddonPath:"blaize/payment/braintree/addons-check",existingSubscriptionLoader:na,priceCalculator:Eo,hasProductAddons:!0,hasPromoCodes:()=>!0,internalSubmit:()=>!1,noPaymentForm:()=>!1,canAttemptIncompletePaymentFormSubmission:!1},[fn]:{loader:(e,t,r)=>{r.incrementRequestCount(),yo(r).then((()=>{ho=Un(fo,e,r),ho.mount("#stripe-element"),ho.addEventListener("change",(t=>{r.updateFormState({paymentProviderError:t.error,paymentFormComplete:t.complete,serverErrors:[]}),e.organisationConfiguration.stripeAutomaticTaxEnabled&&e.formType!==vt.LIST_SUBSCRIPTIONS&&((e,t,r)=>{e.complete&&(r.incrementRequestCount(),fo.createPaymentMethod("card",ho,{}).then((({error:e,paymentMethod:t})=>e||!t?(console.error(`Error requesting payment method ${JSON.stringify(e)}`),null):(r.updateFormState({paymentMethodId:t.id}),t?.billing_details?.address))).catch((e=>(console.error(`Error requesting payment method ${JSON.stringify(e)}`),null))).then((e=>Fn(t,r.updateFormState({billingAddress:{country:e?.country,postalCode:e?.postal_code}}),r))).catch((e=>{console.error(`Error requesting payment method ${JSON.stringify(e)}`)})).finally((()=>{r.decrementRequestCount()})))})(t,e,r)})),ho.addEventListener("ready",(()=>{r.updateFormState({paymentProviderFormLoaded:!0})})),r.decrementRequestCount()})).catch((e=>{console.error(e),r.decrementRequestCount()}))},preLoader:null,completer:go,changePaymentCompleter:(e,t,r)=>{const n=t.paymentMethodId;return r.incrementRequestCount(),n?bo(e,t,r,n):fo.createPaymentMethod("card",ho,{}).then((async({error:n,paymentMethod:o})=>{if(n||!o)throw r.decrementRequestCount(),`Error requesting payment method ${JSON.stringify(n)}`;await gn("zephr/payment/stripe/setupIntentSecret",{method:"POST"},r).then((async e=>{const t=(await e.json()).clientSecret;return fo.confirmCardSetup(t,{payment_method:{card:ho}})})).then((async n=>bo(e,t,r,n.setupIntent.payment_method)))}))},component:class extends pe{constructor(e){super(),ue(this,e,Xr,Zr,i,{onMountCallback:4,providerError:0,isDisabled:1,isComplete:2,isLoaded:5,error:3})}},preLoaderComponent:null,promoCodeCheckPath:"zephr/payment/stripe/promo-code-check",existingSubscriptionLoader:na,priceCalculator:(e,t,r)=>e.organisationConfiguration.stripeAutomaticTaxEnabled&&null!=t.billingAddress.country?aa(t,r).then((r=>{if(!r.total)return Eo(e,t);const n=kn(t.paymentOption.currencyCode.toUpperCase())?1:.01,o=e=>Mn(e*n,t.paymentOption.currencyCode);return{slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,billingAddress:t.billingAddress,addonPrices:[],totalPrice:r.total*n,totalPriceFormattedString:o(r.total),netPrice:r.sub_total*n,netPriceFormattedString:o(r.sub_total),taxPrice:r.tax?r.tax*n:null,taxPriceFormattedString:r.tax?o(r.tax):null,discountPrice:r.discount?r.discount*n:null,discountPriceFormattedPrice:r.discount?o(r.discount):null,chargeItems:[]}})).catch((r=>(console.error(`Error calculating stripe tax preview ${JSON.stringify(r)}`),Eo(e,t)))):Eo(e,t),changeSubscriptionProrateCalculator:(e,t,r)=>{const n=t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId))?.changesFromSubscription;if(n)return gn(`zephr/payment/stripe/subscriptions/${n.externalId}/change-previews`,{method:"POST",bodyObject:{plan_id:t.paymentOption.slug}},r).then((e=>e.json())).then((e=>{const r=kn(t.paymentOption.currencyCode.toUpperCase())?1:.01;return{totalPrice:e.total*r,totalPriceFormattedString:Mn(e.total*r,t.paymentOption.currencyCode),subTotalPrice:e.sub_total*r,subTotalPriceFormattedString:Mn(e.sub_total*r,t.paymentOption.currencyCode)}}));console.error("No valid change from subscription")},hasProductAddons:!1,hasPromoCodes:()=>!0,internalSubmit:()=>!1,noPaymentForm:()=>!1,canAttemptIncompletePaymentFormSubmission:!0},[hn]:{loader:(e,t,r)=>{Ot(e).changeSubscriptionMode?r.updateFormState({paymentFormComplete:!0}):_o().then((()=>wo(e,r))).then((n=>{if(!Co(e,t))return r.updateFormState({serverErrors:[tt.PAYMENT_PROCESSING_ERROR]}),console.error("Form currency not set"),void it(e,"zephr_form_error",{error:tt[tt.PAYMENT_PROCESSING_ERROR]});if(Oo(e))return vo(e,t,r,n);const o={tenantId:n.tenantId,token:n.token,signature:n.signature,key:n.key,id:n.id,url:n.url,style:"inline",submitEnabled:!0},a={email:t.emailAddress};window.Z.setEventHandler("onloadCallback",(()=>{r.updateFormState({paymentProviderFormLoaded:!0})})),window.Z.render(o,a,(n=>{if("true"!==n.success)return console.error("Payment failed",n),r.updateFormState({serverErrors:[tt.PAYMENT_PROCESSING_ERROR]}),void it(e,"zephr_form_error",{error:tt[tt.PAYMENT_PROCESSING_ERROR]});r.updateFormState({paymentFormComplete:!0,paymentProviderVendorFields:{currency:Co(e,t),detail:JSON.stringify({creditCardCountry:n.creditCardCountry,creditCardState:n.creditCardState,refId:n.refId,email:n.email}),...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult)}:{}}}),r.completeSection()}))}))},preLoader:_o,completer:async(e,t,r)=>{r.incrementRequestCount();try{if(!Ot(e).changeSubscriptionMode&&!t.paymentProviderVendorFields)return console.error("Flow error - no Zuora vendor fields found"),r.updateFormState({serverErrors:[tt.PAYMENT_PROCESSING_ERROR]}),it(e,"zephr_form_error",{error:tt[tt.PAYMENT_PROCESSING_ERROR]}),Promise.resolve();const n=Ot(e).paymentProviderFormConfig?.subscriptionCustomFields||[],o={};if(n?.length){const t=await po(e,r);for(const e of n){const r=so(e.value,t)||"";o[e.name]=Io(r,e.type)}}const a=!!Object.keys(o).length,i={...t.paymentProviderVendorFields,...a?{subscriptionCustomFields:JSON.stringify(o)}:{}},{url:s,body:c,method:l}=Pn(e,t,hn,i),u=Ot(e).changeSubscriptionMode?c:{...c,plan_id:`zuora-billing_product_rate_plan-${c.plan_id}-unused`};return await gn(s,{method:l,bodyObject:u},r).then((e=>{if(!e?.ok)return console.error("Error when subscribing",e),Promise.reject()}))}finally{r.decrementRequestCount(),r.updateFormState({paymentProviderFormBusy:!1})}},changePaymentCompleter:(e,t,r)=>{console.log(t.paymentProviderVendorFields);const n=JSON.parse(t.paymentProviderVendorFields?.detail).refId;return gn("plugins/public/zuora-billing/update-account",{method:"POST",bodyObject:{paymentMethodId:n}},r).then((e=>{if(!e?.ok)return console.error("Error when changing default payment method",e),Promise.reject()}))},component:class extends pe{constructor(e){super(),ue(this,e,ln,cn,i,{onMountCallback:5,isDisabled:0,providerError:1,isLoaded:2,isBusy:3,error:4})}},preLoaderComponent:e=>e?.useDynamicForm?ca:dn,promoCodeCheckPath:"",promoCodeServiceOverride:async(e,t,r)=>(async(e,t,r)=>{if(e.environment.previewMode)return;const n=Ot(e).dynamicOffer?.id;if(!n)throw Error("Missing Dynamic Offer id");let o;try{o=document.cookie.match(/blaize_session=[0-9a-z-]+/)[0].substring(15)}catch{o=null}const a=(t?.dynamicOfferResult?.products??[]).flatMap((e=>e.paymentPlans.map((t=>({id:e.id,payment_plan:{provider:"zuora-billing",plan_id:t.planId,charges:t.charges.map((e=>({charge_definition_id:e.chargeDefinitionData.productChargeDefinitionId,currency:e.prices[0]?.currency,price:e.prices[0].price})))}}))))),i=await gn("zephr/public/decisions/v1/promo-codes",{method:"POST",bodyObject:{promo_code:t.promoCode,session:o,selected_products:a}},r,"promo-code");if(!i.ok)return it(e,"zephr_form_error",{error:tt[tt.PROMO_CODE_INVALID_ERROR]}),Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[tt.PROMO_CODE_INVALID_ERROR],discountedPlanPrices:[]}));const s=await i.json(),c=s?.products?.find((e=>e.id===t.paymentOption.productId&&e.paymentPlans.some((e=>e.planId===t.paymentOption.slug))));if(!c)return it(e,"zephr_form_error",{error:tt[tt.PROMO_CODE_INVALID_ERROR]}),Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[tt.PROMO_CODE_INVALID_ERROR],discountedPlanPrices:[]}));const l=r.updateFormState({promoCodeValid:!0,serverErrors:[],discountedPlanPrices:[],originalDynamicOfferResult:t.dynamicOfferResult,dynamicOfferResult:{...t.dynamicOfferResult,...s}});await Fn(e,l,r)})(e,t,r),priceCalculator:(e,t,r)=>_o().then((()=>Ko(e,t,r))).then((r=>({slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,addonPrices:[],totalPrice:r.amount,totalPriceFormattedString:Mn(r.amount,Co(e,t)),netPrice:r.amountWithoutTax,netPriceFormattedString:Mn(r.amountWithoutTax,Co(e,t)),taxPrice:r.taxAmount||null,taxPriceFormattedString:r.taxAmount?Mn(r.taxAmount,Co(e,t)):null,discountPrice:0,discountPriceFormattedPrice:Mn(0,Co(e,t)),chargeItems:[...Object.values(r.invoiceItems)].filter((e=>e.chargeAmount)).map((r=>({label:r.chargeName,priceFormattedString:Mn(r.chargeAmount,Co(e,t))}))),billingAddress:t.billingAddress}))),existingSubscriptionLoader:(e,t,r,n)=>gn("plugins/public/zuora-billing/subscriptions",{method:"GET"},r,null,!0).then((e=>e.json())).then((e=>[...Object.values(e.subscriptions)])).then((r=>r.filter((e=>!n||"active"===e.status?.toLowerCase())).map((r=>{const n=[...Object.values(r.ratePlans)],o=1===n.length?n:n.filter((e=>"Add"===e.lastChangeType));if(1!==o.length&&console.warn(`Subscription ${r.id} has ${o.length} active rate plans`,n),o[0]&&!Ot(e).dynamicOffer?.id&&Co(e,t)&&![...Object.values(o[0].ratePlanCharges??{})].every((r=>r?.currency===Co(e,t))))return console.log(`Subscription ${r.id} is not in the form currency`),null;const a=r.contractedMrr&&r.currency&&r.currentTermPeriodType?`${r.currency} ${r.contractedMrr}`:"";return{externalId:r.id,productId:r.SubscriptionExperienceProductID__c,productLabel:o[0]?.productName,planId:o[0]?.productRatePlanId,planLabel:null,currency:o[0]?.ratePlanCharges[0]?.currency,status:oa[r.status?.toLowerCase()]??"inactive",amount:a}})).filter((e=>e&&null!=e.planId&&null!=e.productId)))),changeSubscriptionProrateCalculator:(e,t,r)=>{const n=t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId))?.changesFromSubscription;if(n)return gn("plugins/public/zuora-billing/subscription-change-preview",{method:"POST",bodyObject:{subscriptionId:n.externalId,newProductRatePlanId:t.paymentOption.slug,currency:Co(e,t),...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult),productId:t.paymentOption.productId}:{}}},r).then((e=>e.json())).then((r=>({totalPrice:r.amount,totalPriceFormattedString:Mn(r.amount,Co(e,t)),subTotalPrice:r.amountWithoutTax,subTotalPriceFormattedString:Mn(r.amountWithoutTax,Co(e,t))})));console.error("No valid change from subscription")},hasProductAddons:!1,hasPromoCodes:e=>Ot(e).dynamicOffer&&!Ot(e).changeSubscriptionMode,internalSubmit:e=>!Ot(e).changeSubscriptionMode,noPaymentForm:e=>Ot(e).changeSubscriptionMode,canAttemptIncompletePaymentFormSubmission:!1}},ua={[mn]:{loader:async(e,t,r)=>{await On(e,t,r),await In(e,t,r)},completer:(e,t,r)=>{const{url:n,body:o,method:a}=Pn(e,t,mn,{payment_nonce:t.mobilePaymentMethodId,vault_payment_method:!0});return gn(n,{method:a,bodyObject:o},r).then((e=>{if(!e?.ok)throw e}))},component:class extends pe{constructor(e){super(),ue(this,e,Wr,Yr,i,{onMountCallback:1,isDisabled:0,disableCoreDependencyHeader:2})}},previewMode:e=>e.environment.previewMode},[fn]:{loader:async(e,t,r)=>{const n=JSON.parse(e.organisationConfiguration?.stripeMobilePaymentConfig??"{}"),o=document.getElementById("stripe-mobile-pay-button");return n?.google||n?.apple?Ao.then((async()=>await yo(r))).then((a=>{t=r.getFormState();const i=kn(t.paymentOption.currencyCode.toUpperCase())?1:100,s={country:n.google?.countryCode??n.apple?.countryCode,currency:t.paymentOption.currencyCode.toLowerCase(),total:{label:t.paymentOption.label,amount:parseFloat((t.paymentOptionPrices.totalPrice*i).toFixed(2))},requestPayerName:!0},c=a.paymentRequest(s),l=a.elements().create("paymentRequestButton",{paymentRequest:c});c.canMakePayment().then((n=>{if(!n||!n.googlePay&&!n.applePay)return console.warn("Cannot make mobile payments on this browser",n),void(o.style.display="none");l.mount("#stripe-mobile-pay-button"),c.on("paymentmethod",(o=>{So(t,r,a,o,n,e)}))}))})).catch((t=>{console.error(t),r.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]})})):(o.style.display="none",void console.error("Stripe Mobile payments are not configured in the console"))},completer:go,component:class extends pe{constructor(e){super(),ue(this,e,rn,tn,i,{onMountCallback:2,isDisabled:0,disableCoreDependencyHeader:1})}},previewMode:e=>e.environment.previewMode}},pa=e=>{const t=la[e];if(!t)throw`Payment provider ${e} not configured.`;return t},da=e=>{const t=ua[e];if(!t)throw`Mobile payment provider ${e} not configured.`;return t};function ma(e){let t,r;return t=new qt({props:{error:e[0]?.message??e[1]??"",isPaymentForm:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,[r]){const n={};3&r&&(n.error=e[0]?.message??e[1]??""),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function fa(e,t,r){let{providerError:n}=t,{error:o=null}=t;return e.$$set=e=>{"providerError"in e&&r(0,n=e.providerError),"error"in e&&r(1,o=e.error)},[n,o]}class ha extends pe{constructor(e){super(),ue(this,e,fa,ma,i,{providerError:0,error:1})}}const ya={matches:e=>e.type===Ee||e.type===Ke,create:(e,t,r)=>{const n=pa(e.organisationConfiguration.paymentProvider);return n.noPaymentForm(e)?{component:ha,props:{providerError:t.paymentProviderError},isValid:!0}:{component:n.component,props:{isLoaded:t.paymentProviderFormLoaded,isBusy:t.paymentProviderFormBusy,providerError:t.paymentProviderError,isComplete:t.paymentFormComplete,isDisabled:n.internalSubmit(e)?!t.canAttemptSectionCompletion:t.isBusy||null!=t.mobilePaymentService,onMountCallback:()=>{r.updateFormState({paymentProviderFormLoaded:!1}),n.loader(e,t,r)}},isValid:n.internalSubmit(e)?void 0:t.paymentFormComplete&&!t.paymentProviderError}}},ga=e=>e.parts.flatMap((e=>e.sections)).flatMap((e=>e.elements)).some((e=>e.type===Ee&&!1!==e.config?.enabled)),ba={matches:e=>e.type===Le,create:(e,t,r)=>{const n=da(e.organisationConfiguration.paymentProvider);return e.environment.previewMode?null:{component:n.component,props:{isDisabled:t.isBusy||null!=t.mobilePaymentService,onMountCallback:()=>n.loader(e,t,r),disableCoreDependencyHeader:ga(e)}}}};function Pa(t){let r,n,o,a,i,s;return{c(){r=P("div"),n=P("img"),a=E(),i=P("div"),s=S(t[0]),_(n,"class","check-image svelte-12ljnq4"),c(n.src,o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABiCAYAAABAkr0NAAAJa0lEQVR4Xu2dT28TRxTA39oGUsHBiC/giKT/LiRHpBYIUPWQEmfVD9BwrQoJpZW4JbkhtRUO9E74AO3GQTkVCLSVOGIurVRCky/QkgNIodjezoxjsrZ3Zt7Mzu7OOraEkOLZ9Zv3m3lv/rx540BWPtc2S1Cvl6DplJjITb/1f/CTc7bAgW1w/G0oFLbg+vBWFqrnWCfkwmYRXtbH4HVuDPJwwp24MBNFRu9BtUbAERjOIzjUrMH3ow+jvC+OZ+2AQFv5q+Y0gF92z0+diaOiwXd691YJCKcKh3MrNvSW9CDQFv9Pk7TyZBTPA8t6iuMswVD+YVpAkofwzbMzUPdn3InpL+Ju8arv99bvLsNQbjFpGMlBoMp/7cwnYW5Uld9dnpmrQ/5iUv4jfgjfbo7BTuOGKeUzBeWpow35NPwi+WsRcn7RPVseiwwjoZ4RHwRq87fr8+5EeU5HGS1lw1PIE1t9AGpaJoI2gCaUoEFGWw3ntG5D8NarFRgqLGnJgKh8PBCI6XE/Lq8jfr+jiLe+ugQFfwWOFGqwMLyt+jyqfASfROS7CJWRZdTvKBQyC0Gj9Sdtfzt0c3VzGhpvplUGCaxXFAuLJhuJOQhkrO+enNzENgBSmUVSmYrJymB/u6fctT9LsJNfUILxeG3YlHkyA+HqxrR7asrDKMEq5XcLrAjD+3XVhR9GVjD1FpWJDuHy83n33IUFmSDM7Bx+cxGufxA+spG9IMnvFWB49+8uwM3ji1HEiwYBC8BQi4lSUa1nv96YcU9P3ZY9GxWEPgQEANb6j+VdK+y+TJO875G9IgoIPQgoAHevwK3jFd26W/fc3DPiuMvzIrl0QahDwAD4rTqR1JQ/UViI+Y8OCDUIlzdn3XOTwtbtPf6JDN0y4Hx16RHz5J78XDgU9+79TKzA+2grgIdAlgDcjyafCLtjvwNoVx4D4ve1cfhuuIZhjYOAmIj1fQ8ImVNIewRyQoeDcGljXbT4te8AIHsEGx3eGpmQ9QY5BIkj9hS6nUyYTH4vMdMY/yCGIDFD3r0+G4bqtgLJpM6TmCUxhNlnT3ibI2wNqDIqXa7QrVfmnpt7XiGRIbNhcsvMEh+CjG75D7kpy5wmIwhMl/Ff1Nf5jZa/F8FVpFv90OeJtG8dsYyRzD88WTsatoQTDkHgjAdmSEJCsLzB010vBJkzHpghMQViltzxyRdcKxLSG3ohCHxBXHussl6eue/Jtql7ajJ0kyusN/RAEPqCQS/AtwfBBNfr0mMnhEEvwCtZVlKw4ur9QrZFf9zbFu2EoEBPJsPge6IBjj675w17EAQOeeALNJvUpedz7vkLN0IncAEHvQdB9MB+8AU0PH+IHDAxGXQmGCkFHfQehNm/yRLFZz3xmyxSuXL8omZbsP+xrgmWzs6YsJKc5YygSWpBEJmift2qpPXmzHCNml+Rg941SS0IolFRv5oiwRKDd9+rws33yMkhMx/esL8NuwVh7q/lsBDAvjVFsjUewxBk+m1B4PqDeKKQzbQvzbdg9spNb1RJLI0DIg/ebxv3GADrayT8fXhZE3H4Y4LAAI/4BQdEjqOf/EFaAHaxcP0CGfg4wJkfyHaDjLaUuF+WMgBWvcsbK+65qXJ3VekWsQO8cSw9NVMZ0TrqFLdOld5vAwA2+Anf/qSnkxwRoczHktoCgELgWRwyEiPmKDymyMv6JM0mABTCV2SP4ZPePQbvwUrNETmMzAb12gaAQviShJF+Gh5GyocQ1/A0EFTMUhq8U3BNnf1ivsJGAFQuwTA1WQicSYssOArtiG0FYBUEzjCNyhgZhM0AsgIhEgjbAVgFAXPSBRlO/tZEZQGAVRDYpAVx9gsLIisAtCGYXkkMelcTILIEgNZdYAUc7jJ2V1gGeoSCLRgFRNYACCDQNbp0ly10QGQRgHTZIu0FPBUQWQUgXcATLCyZ3GcVWikMCJKaQZbExItjQwZrXmXluIFgdCnblk0dBAhRPa0GQAQXb+rYtL2pCcJ2AMKQIra9KaIUU7qxqKYp+Lz1AKiwvDUzsowNS++O2xnyguwRmQDAnLI4pMje4C8JiMwAQFiaFgSRX0hzh40DIksAhAOf3T2bQFQ2Z5sz7Q3/LhCZAiAyRbv+gBbZgyA6dcg5+ikbGhv7np4R3iGZf02HrhsTkP8i7tA0kA1hD4LIJA3SJ+jhEoU/BraPUcel+ioQTE+dWk/xe0Fn9pdOCJywDCpB5kNgtNQY4SGFQ5joI7SD3qAGROUocu9hcpGDzmp+UzX9RS+t0As6R0ftn9ZICxBd6v56g2pylvAEIxpJMvpLjRFqo5GcJRyCrDfEuf8cof6pP6qZnEUr6RQLXzxamDB65jd1DUYXQGiGBCvS4uxdojQL9DKHyuiV6KL3yRtEZog22qXRcV5NxRAkSVi9+6szcHPkTp+oUb8akszJskxpYghULEG6BTaJ2+/+QXYcF5GwUQ6BgZAlpzV3tYl+c0zhSZkjNpacltYNkxsaG7qYgq5i+UmDqatxPYHWAhPzs19AYAAomGk8BIR/YD6i30FgACgu/atBoFpGbML37YorJrQf4Yi7zaM6BCwIA7cuxWLLdV+KucBDAwAVRw8CFkRCF4jq6hX1HLs3uuHJ7u2MkrRXHwISBPMTaQSRoTQsKYS8xC8KgGg9oS0/wke0QKRz4bQWC3ZdfeO2rPW36hU9e360ntCuoSAjbrcSrIZBTc+/TXJ5k/wGRQbA0CaXGQhUIsSELgjEKhiKym8Nxc3domUOApWMXQXcJJfChV/mEGYaGIy8XzVxkaiy6dG4sp7dGV3ML5hcxjcLoa0F5J2Voaaq0LwTW04N2kheklvK6w65g3kq9NYPEci45j/xQNg1T7BzcE6lV3SYK3Y9vP8I8k4Ncvkt7J1lHUqkDvZNg1wND2fIvxMYRxveW823/uDvxAeh/SvIC0QxpoTt6DUdem38NoETfn18wy/pKrunZ9KGMJS/otUAMBXaLRM/hLYwGvZXoR5GiyZ9ZX1yEGLoGUY1T0c8dJAQp0/iCJw8hCCM/w4QW+3P8m5kMq3kUHtPTQ44VTiWWzY54lGRPT0IQSmp33h1kKRF9sum7LlwlNNW/OHcitGEVyqaD5S1A0K38Mx/5EgGe/805IijPVvuyWavUl9mZhrwFA41a3CkUEurxfNkthNCmLR0uFmvl8AvFMFvFKHpl3qK5Zwt9recvwWFwpYNrRzTWP4HK7laSxb9gaIAAAAASUVORK5CYII=")||_(n,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABiCAYAAABAkr0NAAAJa0lEQVR4Xu2dT28TRxTA39oGUsHBiC/giKT/LiRHpBYIUPWQEmfVD9BwrQoJpZW4JbkhtRUO9E74AO3GQTkVCLSVOGIurVRCky/QkgNIodjezoxjsrZ3Zt7Mzu7OOraEkOLZ9Zv3m3lv/rx540BWPtc2S1Cvl6DplJjITb/1f/CTc7bAgW1w/G0oFLbg+vBWFqrnWCfkwmYRXtbH4HVuDPJwwp24MBNFRu9BtUbAERjOIzjUrMH3ow+jvC+OZ+2AQFv5q+Y0gF92z0+diaOiwXd691YJCKcKh3MrNvSW9CDQFv9Pk7TyZBTPA8t6iuMswVD+YVpAkofwzbMzUPdn3InpL+Ju8arv99bvLsNQbjFpGMlBoMp/7cwnYW5Uld9dnpmrQ/5iUv4jfgjfbo7BTuOGKeUzBeWpow35NPwi+WsRcn7RPVseiwwjoZ4RHwRq87fr8+5EeU5HGS1lw1PIE1t9AGpaJoI2gCaUoEFGWw3ntG5D8NarFRgqLGnJgKh8PBCI6XE/Lq8jfr+jiLe+ugQFfwWOFGqwMLyt+jyqfASfROS7CJWRZdTvKBQyC0Gj9Sdtfzt0c3VzGhpvplUGCaxXFAuLJhuJOQhkrO+enNzENgBSmUVSmYrJymB/u6fctT9LsJNfUILxeG3YlHkyA+HqxrR7asrDKMEq5XcLrAjD+3XVhR9GVjD1FpWJDuHy83n33IUFmSDM7Bx+cxGufxA+spG9IMnvFWB49+8uwM3ji1HEiwYBC8BQi4lSUa1nv96YcU9P3ZY9GxWEPgQEANb6j+VdK+y+TJO875G9IgoIPQgoAHevwK3jFd26W/fc3DPiuMvzIrl0QahDwAD4rTqR1JQ/UViI+Y8OCDUIlzdn3XOTwtbtPf6JDN0y4Hx16RHz5J78XDgU9+79TKzA+2grgIdAlgDcjyafCLtjvwNoVx4D4ve1cfhuuIZhjYOAmIj1fQ8ImVNIewRyQoeDcGljXbT4te8AIHsEGx3eGpmQ9QY5BIkj9hS6nUyYTH4vMdMY/yCGIDFD3r0+G4bqtgLJpM6TmCUxhNlnT3ibI2wNqDIqXa7QrVfmnpt7XiGRIbNhcsvMEh+CjG75D7kpy5wmIwhMl/Ff1Nf5jZa/F8FVpFv90OeJtG8dsYyRzD88WTsatoQTDkHgjAdmSEJCsLzB010vBJkzHpghMQViltzxyRdcKxLSG3ohCHxBXHussl6eue/Jtql7ajJ0kyusN/RAEPqCQS/AtwfBBNfr0mMnhEEvwCtZVlKw4ur9QrZFf9zbFu2EoEBPJsPge6IBjj675w17EAQOeeALNJvUpedz7vkLN0IncAEHvQdB9MB+8AU0PH+IHDAxGXQmGCkFHfQehNm/yRLFZz3xmyxSuXL8omZbsP+xrgmWzs6YsJKc5YygSWpBEJmift2qpPXmzHCNml+Rg941SS0IolFRv5oiwRKDd9+rws33yMkhMx/esL8NuwVh7q/lsBDAvjVFsjUewxBk+m1B4PqDeKKQzbQvzbdg9spNb1RJLI0DIg/ebxv3GADrayT8fXhZE3H4Y4LAAI/4BQdEjqOf/EFaAHaxcP0CGfg4wJkfyHaDjLaUuF+WMgBWvcsbK+65qXJ3VekWsQO8cSw9NVMZ0TrqFLdOld5vAwA2+Anf/qSnkxwRoczHktoCgELgWRwyEiPmKDymyMv6JM0mABTCV2SP4ZPePQbvwUrNETmMzAb12gaAQviShJF+Gh5GyocQ1/A0EFTMUhq8U3BNnf1ivsJGAFQuwTA1WQicSYssOArtiG0FYBUEzjCNyhgZhM0AsgIhEgjbAVgFAXPSBRlO/tZEZQGAVRDYpAVx9gsLIisAtCGYXkkMelcTILIEgNZdYAUc7jJ2V1gGeoSCLRgFRNYACCDQNbp0ly10QGQRgHTZIu0FPBUQWQUgXcATLCyZ3GcVWikMCJKaQZbExItjQwZrXmXluIFgdCnblk0dBAhRPa0GQAQXb+rYtL2pCcJ2AMKQIra9KaIUU7qxqKYp+Lz1AKiwvDUzsowNS++O2xnyguwRmQDAnLI4pMje4C8JiMwAQFiaFgSRX0hzh40DIksAhAOf3T2bQFQ2Z5sz7Q3/LhCZAiAyRbv+gBbZgyA6dcg5+ikbGhv7np4R3iGZf02HrhsTkP8i7tA0kA1hD4LIJA3SJ+jhEoU/BraPUcel+ioQTE+dWk/xe0Fn9pdOCJywDCpB5kNgtNQY4SGFQ5joI7SD3qAGROUocu9hcpGDzmp+UzX9RS+t0As6R0ftn9ZICxBd6v56g2pylvAEIxpJMvpLjRFqo5GcJRyCrDfEuf8cof6pP6qZnEUr6RQLXzxamDB65jd1DUYXQGiGBCvS4uxdojQL9DKHyuiV6KL3yRtEZog22qXRcV5NxRAkSVi9+6szcHPkTp+oUb8akszJskxpYghULEG6BTaJ2+/+QXYcF5GwUQ6BgZAlpzV3tYl+c0zhSZkjNpacltYNkxsaG7qYgq5i+UmDqatxPYHWAhPzs19AYAAomGk8BIR/YD6i30FgACgu/atBoFpGbML37YorJrQf4Yi7zaM6BCwIA7cuxWLLdV+KucBDAwAVRw8CFkRCF4jq6hX1HLs3uuHJ7u2MkrRXHwISBPMTaQSRoTQsKYS8xC8KgGg9oS0/wke0QKRz4bQWC3ZdfeO2rPW36hU9e360ntCuoSAjbrcSrIZBTc+/TXJ5k/wGRQbA0CaXGQhUIsSELgjEKhiKym8Nxc3domUOApWMXQXcJJfChV/mEGYaGIy8XzVxkaiy6dG4sp7dGV3ML5hcxjcLoa0F5J2Voaaq0LwTW04N2kheklvK6w65g3kq9NYPEci45j/xQNg1T7BzcE6lV3SYK3Y9vP8I8k4Ncvkt7J1lHUqkDvZNg1wND2fIvxMYRxveW823/uDvxAeh/SvIC0QxpoTt6DUdem38NoETfn18wy/pKrunZ9KGMJS/otUAMBXaLRM/hLYwGvZXoR5GiyZ9ZX1yEGLoGUY1T0c8dJAQp0/iCJw8hCCM/w4QW+3P8m5kMq3kUHtPTQ44VTiWWzY54lGRPT0IQSmp33h1kKRF9sum7LlwlNNW/OHcitGEVyqaD5S1A0K38Mx/5EgGe/805IijPVvuyWavUl9mZhrwFA41a3CkUEurxfNkthNCmLR0uFmvl8AvFMFvFKHpl3qK5Zwt9recvwWFwpYNrRzTWP4HK7laSxb9gaIAAAAASUVORK5CYII="),_(n,"alt","Success indicator"),_(i,"class","zephr-form-success-message svelte-12ljnq4"),N(i,"zephr-payment-form-success-message",t[1])},m(e,t){y(e,r,t),h(r,n),h(r,a),h(r,i),h(i,s)},p(e,[t]){1&t&&I(s,e[0]),2&t&&N(i,"zephr-payment-form-success-message",e[1])},i:e,o:e,d(e){e&&g(r)}}}function Aa(e,t,r){let{text:n}=t,{isPaymentForm:o=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"isPaymentForm"in e&&r(1,o=e.isPaymentForm)},[n,o]}class Sa extends pe{constructor(e){super(),ue(this,e,Aa,Pa,i,{text:0,isPaymentForm:1})}}const Ea={matches:e=>e.type===Te,create:(e,t,r,n)=>({component:Sa,props:{text:n?.text,isPaymentForm:e.formType===vt.PAYMENT}})},Ca=(e,t)=>({identifiers:{email_address:t},delivery:{method:"email",destination:t,action:e,redirect:window.location.href.replace(window.location.origin,"")}}),va=async(e,t,r,n)=>{try{(await gn("blaize/token-exchange",{method:"POST",bodyObject:Ca(t,r)},n)).ok||(n.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]}))}catch(t){n.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]})}},Ta=e=>e.formType===vt.REGISTRATION&&!1===Ot(e).usePassword&&!0===e.organisationConfiguration.requireEmailVerfication&&!1===Ot(e).useVerificationCodes,_a=async(e,t,r)=>Ia(t,r).then((async n=>{if(!n.redirected){const o=200===n.status,a=e.parts.flatMap((e=>e.sections)).some((e=>e.type===ot.VERIFICATION_CODE_REGISTRATION.type)),i=!!o&&((await n.json()).contact&&a),s=o&&!i;r.updateFormState({userExists:s,emailIsContact:i});return Ta(e)?s?(va(e,"login",t.emailAddress,r),st(ot.PASSWORDLESS_VIA_LOGIN_LINK.type,e,r)):mt(e,t,r):i||Ot(e).useVerificationCodes||e.organisationConfiguration.twoFactorEmailAuthenticationEnabled?(wa(e,t,r),st(s?ot.VERIFICATION_CODE_LOGIN.type:ot.VERIFICATION_CODE_REGISTRATION.type,e,r)):st(s?ot.LOGIN_PASSWORD.type:ot.PASSWORD_SETUP.type,e,r)}window.location.replace(n.url)})),Oa=e=>({identifiers:{email_address:e.emailAddress},delivery:{method:"email",destination:e.emailAddress,action:e.userExists?"login":"register",redirect:window.location.href.replace(window.location.origin,"")}}),wa=async(e,t,r)=>{r.updateFormState({verificationCode:"",verificationCodeValid:void 0});const n=await gn("blaize/two-factor-authentication",{method:"POST",bodyObject:Oa(t)},r);return n.ok||(r.updateFormState({serverErrors:[tt.VERIFICATION_CODE_SEND_ERROR]}),it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]})),n.ok},Ia=async(e,t)=>(t.updateFormState({password:"",verificationCode:void 0,verificationCodeValid:void 0,forgotPassword:!1}),await gn("zephr/media/user/info",{method:"POST",bodyObject:{identifiers:{email_address:e.emailAddress}}},t)),Ra=async e=>await new Promise((t=>setTimeout(t,e.environment.reduceDelays?1:1500))),$a=async(e,t,r)=>{r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0});const n=await gn(`zephr/users/reset/${t.verificationCode}`,{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress}}},r);return it(e,"zephr_form_password_reset_code_validate",{success:n?.ok}),n.ok?Ra(e).then((()=>{r.decrementRequestCount(),r.jumpToSection(ot.PASSWORD_RESET.type)})):(r.updateFormState({serverErrors:[tt.VERIFICATION_CODE_INCORRECT]}),it(e,"zephr_form_error",{error:tt[tt.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),Promise.resolve())},Ma=async(e,t,r)=>{r.updateFormState({createPassword:"",confirmCreatePassword:"",forgotPassword:!0,verificationCode:""}),r.incrementRequestCount();const n=await gn("zephr/users/reset",{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress}}},r);return it(e,"zephr_form_password_reset_code_sent",{success:n?.ok}),n.ok?Ra(e).then((()=>{r.decrementRequestCount(),r.jumpToSection(ot.FORGOT_PASSWORD.type)})):(r.updateFormState({serverErrors:[tt.PASSWORD_RESET_LINK_SEND_ERROR]}),r.decrementRequestCount(),it(e,"zephr_form_error",{error:tt[tt.PASSWORD_RESET_LINK_SEND_ERROR]}),Promise.resolve())},Na=async(e,t,r)=>{const n=await gn(`zephr/users/reset/${t.verificationCode}`,{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress},validators:{password:t.createPassword}}},r);return it(e,"zephr_form_password_reset",{success:n?.ok}),n.ok?(r.updateFormState({verificationCode:"",forgotPassword:!1}),r.jumpToPartStart(Xe.ACCOUNT_VERIFICATION.type)):(r.updateFormState({serverErrors:[tt.PASSWORD_RESET_ERROR]}),it(e,"zephr_form_error",{error:tt[tt.MOBILE_PAYMENT_PROCESSING_ERROR]}),Promise.resolve())};function xa(e){let t;function r(e,t){return e[14]&&!e[5]?Fa:La}let n=r(e),o=n(e);return{c(){o.c(),t=C()},m(e,r){o.m(e,r),y(e,t,r)},p(e,a){n===(n=r(e))&&o?o.p(e,a):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){e&&g(t),o.d(e)}}}function La(e){let t,r,n,o;return{c(){t=P("button"),r=S(e[3]),_(t,"class","zephr-form-verification-resend-link svelte-b6r3ph"),N(t,"zephr-payment-form-verification-resend-link",e[9])},m(a,i){y(a,t,i),h(t,r),n||(o=v(t,"click",e[15]),n=!0)},p(e,n){8&n&&I(r,e[3]),512&n&&N(t,"zephr-payment-form-verification-resend-link",e[9])},d(e){e&&g(t),n=!1,o()}}}function Fa(e){let t,r;return{c(){t=P("div"),r=S(e[2]),_(t,"class","zephr-form-verification-resend-text svelte-b6r3ph"),N(t,"zephr-payment-form-verification-resend-text",e[9])},m(e,n){y(e,t,n),h(t,r)},p(e,n){4&n&&I(r,e[2]),512&n&&N(t,"zephr-payment-form-verification-resend-text",e[9])},d(e){e&&g(t)}}}function za(e){let t,r=e[3]&&xa(e);return{c(){r&&r.c(),t=C()},m(e,n){r&&r.m(e,n),y(e,t,n)},p(e,n){e[3]?r?r.p(e,n):(r=xa(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){e&&g(t),r&&r.d(e)}}}function ka(e){let t,r;return t=new lr({props:{icon:dr}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Da(e){let t,r;return t=new lr({props:{icon:pr,spin:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ba(e){let t,r,n,o,a,i,s,c;t=new er({props:{forInput:"zephr-form-verification-code",label:e[0],isPaymentForm:e[9]}}),o=new Jt({props:{id:"zephr-form-verification-code",value:e[8],placeholder:e[1],maxlength:6,hasError:null!=e[5],errorMessage:e[5],isPaymentForm:e[9],onFocus:e[12],onBlur:e[13],$$slots:{default:[za]},$$scope:{ctx:e}}}),o.$on("change",e[16]);let l=e[6]&&ka(),u=e[8]&&!e[6]&&e[7]&&Da();return{c(){ie(t.$$.fragment),r=E(),n=P("div"),ie(o.$$.fragment),a=E(),i=P("div"),l&&l.c(),s=E(),u&&u.c(),_(i,"class","zephr-form-input-inner-text"),N(i,"zephr-payment-form-input-inner-text",e[9]),_(n,"class","zephr-form-relative-container zephr-form-verification-resend-link-container svelte-b6r3ph"),N(n,"zephr-payment-form-relative-container",e[9]),N(n,"zephr-payment-form-verification-resend-link-container",e[9])},m(e,p){se(t,e,p),y(e,r,p),y(e,n,p),se(o,n,null),h(n,a),h(n,i),l&&l.m(i,null),h(i,s),u&&u.m(i,null),c=!0},p(e,[r]){const a={};1&r&&(a.label=e[0]),512&r&&(a.isPaymentForm=e[9]),t.$set(a);const p={};256&r&&(p.value=e[8]),2&r&&(p.placeholder=e[1]),32&r&&(p.hasError=null!=e[5]),32&r&&(p.errorMessage=e[5]),512&r&&(p.isPaymentForm=e[9]),4096&r&&(p.onFocus=e[12]),8192&r&&(p.onBlur=e[13]),150060&r&&(p.$$scope={dirty:r,ctx:e}),o.$set(p),e[6]?l?64&r&&te(l,1):(l=ka(),l.c(),te(l,1),l.m(i,s)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),e[8]&&!e[6]&&e[7]?u?448&r&&te(u,1):(u=Da(),u.c(),te(u,1),u.m(i,null)):u&&(X(),re(u,1,1,(()=>{u=null})),ee()),(!c||512&r)&&N(i,"zephr-payment-form-input-inner-text",e[9]),(!c||512&r)&&N(n,"zephr-payment-form-relative-container",e[9]),(!c||512&r)&&N(n,"zephr-payment-form-verification-resend-link-container",e[9])},i(e){c||(te(t.$$.fragment,e),te(o.$$.fragment,e),te(l),te(u),c=!0)},o(e){re(t.$$.fragment,e),re(o.$$.fragment,e),re(l),re(u),c=!1},d(e){e&&(g(r),g(n)),ce(t,e),ce(o),l&&l.d(),u&&u.d()}}}function Ua(e,t,r){let{label:n}=t,{placeholder:o}=t,{resendMessage:a=null}=t,{resendText:i=null}=t,{disabled:s}=t,{error:c=null}=t,{codeValid:l}=t,{formBusy:u}=t,{code:p}=t,{isPaymentForm:d=!1}=t,{onChange:m}=t,{onResendVerificationCode:f}=t,{onFocus:h}=t,{onBlur:y}=t,g=!1;return e.$$set=e=>{"label"in e&&r(0,n=e.label),"placeholder"in e&&r(1,o=e.placeholder),"resendMessage"in e&&r(2,a=e.resendMessage),"resendText"in e&&r(3,i=e.resendText),"disabled"in e&&r(4,s=e.disabled),"error"in e&&r(5,c=e.error),"codeValid"in e&&r(6,l=e.codeValid),"formBusy"in e&&r(7,u=e.formBusy),"code"in e&&r(8,p=e.code),"isPaymentForm"in e&&r(9,d=e.isPaymentForm),"onChange"in e&&r(10,m=e.onChange),"onResendVerificationCode"in e&&r(11,f=e.onResendVerificationCode),"onFocus"in e&&r(12,h=e.onFocus),"onBlur"in e&&r(13,y=e.onBlur)},[n,o,a,i,s,c,l,u,p,d,m,f,h,y,g,()=>{a&&(r(14,g=!0),setTimeout((()=>r(14,g=!1)),2e3)),f()},({detail:e})=>!s&&m(e)]}class Va extends pe{constructor(e){super(),ue(this,e,Ua,Ba,i,{label:0,placeholder:1,resendMessage:2,resendText:3,disabled:4,error:5,codeValid:6,formBusy:7,code:8,isPaymentForm:9,onChange:10,onResendVerificationCode:11,onFocus:12,onBlur:13})}}const Ga=e=>6===e?.length,ja={matches:e=>e.type===Ae,create:(e,t,r,n)=>({component:Va,props:{code:t.verificationCode,label:n.label,placeholder:n.placeholder,resendMessage:n.message,resendText:n.resendText,disabled:t.isBusy||t.verificationCodeValid,codeValid:t.verificationCodeValid,formBusy:t.isBusy,isPaymentForm:e.formType===vt.PAYMENT,onResendVerificationCode:()=>{(t.currentSection.type===ot.FORGOT_PASSWORD.type?Ma:wa)(e,t,r)},onChange:o=>{const a=r.updateFormState({verificationCodeValid:void 0,verificationCode:o,serverErrors:[]}),i=(e=>!e.elementValidity.filter((t=>t.partType===e.currentPart.type&&t.sectionType===e.currentSection.type&&t.sectionOrder===e.currentSection.order&&"user_attribute"===t.elementType)).some((e=>!e.isValid)))(t);if(r.updateFormState({showFieldErrors:!i}),Ga(o)){if(n.verificationEvent)return void r.onEvent(n.verificationEvent);t.currentSection.type===ot.FORGOT_PASSWORD.type?r.completeSection():i&&(async(e,t,r)=>{if(!(await gn("zephr/media/user/otp-check",{method:"POST",bodyObject:{code:t.verificationCode,email:t.emailAddress}},r)).ok)return r.updateFormState({verificationCodeValid:!1,serverErrors:[tt.VERIFICATION_CODE_INCORRECT]}),void it(e,"zephr_form_error",{error:tt[tt.VERIFICATION_CODE_INCORRECT]});r.updateFormState({verificationCodeValid:!1,serverErrors:[]}),r.completeSection()})(e,a,r)}it(e,"zephr_form_input_change",{inputName:"zephr-form-verification-code",sectionId:t.currentSection.type,field:"verification-code"})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:"zephr-form-verification-code",sectionId:t.currentSection.type,field:"verification-code"}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:"zephr-form-verification-code",sectionId:t.currentSection.type,field:"verification-code"})},isValid:Ga(t.verificationCode)})};function qa(t){let r;return{c(){r=P("div"),_(r,"class","zephr-form-custom-text svelte-12fdogm"),$(r,"text-align",t[1]?"center":"initial"),N(r,"zephr-payment-form-custom-text",t[2])},m(e,n){y(e,r,n),r.innerHTML=t[0]},p(e,[t]){1&t&&(r.innerHTML=e[0]),2&t&&$(r,"text-align",e[1]?"center":"initial"),4&t&&N(r,"zephr-payment-form-custom-text",e[2])},i:e,o:e,d(e){e&&g(r)}}}function Ha(e,t,r){let{text:n}=t,{centerText:o=!1}=t,{isPaymentForm:a=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"centerText"in e&&r(1,o=e.centerText),"isPaymentForm"in e&&r(2,a=e.isPaymentForm)},[n,o,a]}class Ka extends pe{constructor(e){super(),ue(this,e,Ha,qa,i,{text:0,centerText:1,isPaymentForm:2})}}const Ya={matches:e=>e.type===_e,create:(e,t,r,n)=>({component:Ka,props:{text:n.text,centerText:n.centerText,isPaymentForm:e.formType===vt.PAYMENT}})};function Wa(r){let n,o,a,i,s,c,l,u,p=[{id:r[0]},{name:r[1]},{required:r[2]},{disabled:r[3]},r[8],{type:"checkbox"},{class:"zephr-form-checkbox"}],d={};for(let e=0;e<p.length;e+=1)d=t(d,p[e]);return{c(){n=P("input"),o=E(),a=P("label"),i=P("div"),s=E(),c=S(r[6]),w(n,d),N(n,"disabled",r[3]),N(n,"error",r[4]),N(n,"zephr-payment-form-checkbox",r[5]),N(n,"svelte-eyzg32",!0),_(i,"class","zephr-form-checkmark svelte-eyzg32"),N(i,"zephr-payment-form-checkmark",r[5]),N(i,"disabled",r[3]),N(i,"checked",r[7]),N(i,"error",r[4]),_(a,"for",r[0]),_(a,"class","zephr-form-checkbox-label svelte-eyzg32"),N(a,"zephr-payment-form-checkbox-label",r[5])},m(e,t){y(e,n,t),n.autofocus&&n.focus(),y(e,o,t),y(e,a,t),h(a,i),h(a,s),h(a,c),l||(u=v(n,"input",r[9]),l=!0)},p(e,[t]){w(n,d=oe(p,[1&t&&{id:e[0]},2&t&&{name:e[1]},4&t&&{required:e[2]},8&t&&{disabled:e[3]},256&t&&e[8],{type:"checkbox"},{class:"zephr-form-checkbox"}])),N(n,"disabled",e[3]),N(n,"error",e[4]),N(n,"zephr-payment-form-checkbox",e[5]),N(n,"svelte-eyzg32",!0),32&t&&N(i,"zephr-payment-form-checkmark",e[5]),8&t&&N(i,"disabled",e[3]),128&t&&N(i,"checked",e[7]),16&t&&N(i,"error",e[4]),64&t&&I(c,e[6]),1&t&&_(a,"for",e[0]),32&t&&N(a,"zephr-payment-form-checkbox-label",e[5])},i:e,o:e,d(e){e&&(g(n),g(o),g(a)),l=!1,u()}}}function Ja(e,t,r){const n=D();let{id:o}=t,{name:a=o}=t,{required:i=!0}=t,{disabled:s=!1}=t,{hasError:c=!1}=t,{isPaymentForm:l=!1}=t,{label:u=""}=t,{value:p}=t,{placeholder:d=""}=t,{checked:m=!1}=t,{pattern:f=""}=t,h={};m&&(h.checked=m),d&&(h.placeholder=d),f&&(h.pattern=f),p&&(h.value=p);return e.$$set=e=>{"id"in e&&r(0,o=e.id),"name"in e&&r(1,a=e.name),"required"in e&&r(2,i=e.required),"disabled"in e&&r(3,s=e.disabled),"hasError"in e&&r(4,c=e.hasError),"isPaymentForm"in e&&r(5,l=e.isPaymentForm),"label"in e&&r(6,u=e.label),"value"in e&&r(10,p=e.value),"placeholder"in e&&r(11,d=e.placeholder),"checked"in e&&r(7,m=e.checked),"pattern"in e&&r(12,f=e.pattern)},[o,a,i,s,c,l,u,m,h,e=>{n("change",e.target.checked)},p,d,f]}class Qa extends pe{constructor(e){super(),ue(this,e,Ja,Wa,i,{id:0,name:1,required:2,disabled:3,hasError:4,isPaymentForm:5,label:6,value:10,placeholder:11,checked:7,pattern:12})}}function Za(r){let n,o,a,i,s,c,l,u,p=[{id:r[0]},{name:r[1]},{required:r[2]},{disabled:r[3]},r[8],{type:"radio"},{class:"zephr-form-input-radio"}],d={};for(let e=0;e<p.length;e+=1)d=t(d,p[e]);return{c(){n=P("input"),o=E(),a=P("label"),i=P("span"),s=E(),c=S(r[6]),w(n,d),N(n,"zephr-payment-form-input-radio",r[5]),N(n,"disabled",r[3]),N(n,"error",r[4]),N(n,"svelte-17rnpjv",!0),_(i,"class","zephr-form-radio-dot svelte-17rnpjv"),N(i,"zephr-payment-form-radio-dot",r[5]),N(i,"disabled",r[3]),N(i,"checked",r[7]),N(i,"error",r[4]),_(a,"for",r[0]),_(a,"class","zephr-form-radio-label svelte-17rnpjv"),N(a,"zephr-payment-form-radio-label",r[5])},m(e,t){y(e,n,t),n.autofocus&&n.focus(),y(e,o,t),y(e,a,t),h(a,i),h(a,s),h(a,c),l||(u=v(n,"input",r[9]),l=!0)},p(e,[t]){w(n,d=oe(p,[1&t&&{id:e[0]},2&t&&{name:e[1]},4&t&&{required:e[2]},8&t&&{disabled:e[3]},256&t&&e[8],{type:"radio"},{class:"zephr-form-input-radio"}])),N(n,"zephr-payment-form-input-radio",e[5]),N(n,"disabled",e[3]),N(n,"error",e[4]),N(n,"svelte-17rnpjv",!0),32&t&&N(i,"zephr-payment-form-radio-dot",e[5]),8&t&&N(i,"disabled",e[3]),128&t&&N(i,"checked",e[7]),16&t&&N(i,"error",e[4]),64&t&&I(c,e[6]),1&t&&_(a,"for",e[0]),32&t&&N(a,"zephr-payment-form-radio-label",e[5])},i:e,o:e,d(e){e&&(g(n),g(o),g(a)),l=!1,u()}}}function Xa(e,t,r){const n=D();let{id:o}=t,{name:a=o}=t,{required:i=!0}=t,{disabled:s=!1}=t,{hasError:c=!1}=t,{isPaymentForm:l=!1}=t,{label:u=""}=t,{value:p}=t,{placeholder:d=""}=t,{checked:m=!1}=t,{pattern:f=""}=t,h={};m&&(h.checked=m),d&&(h.placeholder=d),f&&(h.pattern=f),p&&(h.value=p);return e.$$set=e=>{"id"in e&&r(0,o=e.id),"name"in e&&r(1,a=e.name),"required"in e&&r(2,i=e.required),"disabled"in e&&r(3,s=e.disabled),"hasError"in e&&r(4,c=e.hasError),"isPaymentForm"in e&&r(5,l=e.isPaymentForm),"label"in e&&r(6,u=e.label),"value"in e&&r(10,p=e.value),"placeholder"in e&&r(11,d=e.placeholder),"checked"in e&&r(7,m=e.checked),"pattern"in e&&r(12,f=e.pattern)},[o,a,i,s,c,l,u,m,h,e=>{n("change",e.target.value)},p,d,f]}class ei extends pe{constructor(e){super(),ue(this,e,Xa,Za,i,{id:0,name:1,required:2,disabled:3,hasError:4,isPaymentForm:5,label:6,value:10,placeholder:11,checked:7,pattern:12})}}function ti(e,t,r){const n=e.slice();return n[19]=t[r],n}function ri(e,t,r){const n=e.slice();return n[19]=t[r],n}function ni(e){let t,r;return t=new Jt({props:{id:e[10],name:e[0].slug,required:e[0].required||e[1]?.required,type:e[1]?.["input-type"],value:e[2],checked:"checkbox"===e[1]?.["input-type"]&&e[2],pattern:e[1]?.["validation-expression"],placeholder:e[0].placeholder,hasError:e[8],isPaymentForm:e[3],onFocus:e[5],onBlur:e[6]}}),t.$on("change",e[18]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.name=e[0].slug),3&r&&(n.required=e[0].required||e[1]?.required),2&r&&(n.type=e[1]?.["input-type"]),4&r&&(n.value=e[2]),6&r&&(n.checked="checkbox"===e[1]?.["input-type"]&&e[2]),2&r&&(n.pattern=e[1]?.["validation-expression"]),1&r&&(n.placeholder=e[0].placeholder),256&r&&(n.hasError=e[8]),8&r&&(n.isPaymentForm=e[3]),32&r&&(n.onFocus=e[5]),64&r&&(n.onBlur=e[6]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function oi(e){let t,r,n,o;r=new Jt({props:{id:e[10],required:e[0].required||e[1]?.required,type:e[1]["input-type"],value:e[2],min:e[1]["range-start"],max:e[1]["range-end"],step:e[1]["range-start"],isPaymentForm:e[3],onFocus:e[5],onBlur:e[6]}}),r.$on("change",e[17]);let a="range"===e[1]["input-type"]&&null!=e[2]&&li(e);return{c(){t=P("div"),ie(r.$$.fragment),n=E(),a&&a.c(),_(t,"class","zephr-form-flex-container"),N(t,"zephr-payment-form-flex-container",e[3])},m(e,i){y(e,t,i),se(r,t,null),h(t,n),a&&a.m(t,null),o=!0},p(e,n){const i={};3&n&&(i.required=e[0].required||e[1]?.required),2&n&&(i.type=e[1]["input-type"]),4&n&&(i.value=e[2]),2&n&&(i.min=e[1]["range-start"]),2&n&&(i.max=e[1]["range-end"]),2&n&&(i.step=e[1]["range-start"]),8&n&&(i.isPaymentForm=e[3]),32&n&&(i.onFocus=e[5]),64&n&&(i.onBlur=e[6]),r.$set(i),"range"===e[1]["input-type"]&&null!=e[2]?a?a.p(e,n):(a=li(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),(!o||8&n)&&N(t,"zephr-payment-form-flex-container",e[3])},i(e){o||(te(r.$$.fragment,e),o=!0)},o(e){re(r.$$.fragment,e),o=!1},d(e){e&&g(t),ce(r),a&&a.d()}}}function ai(t){let r,n,o,a,i;return{c(){r=P("textarea"),_(r,"id",t[10]),_(r,"class","zephr-form-input zephr-form-input-textarea svelte-1f2hwm0"),r.required=n=t[0].required||t[1]?.required,_(r,"placeholder",o=t[0].placeholder),N(r,"zephr-payment-form-input",t[3]),N(r,"zephr-payment-form-input-textarea",t[3])},m(e,n){y(e,r,n),R(r,t[7]),a||(i=v(r,"input",t[16]),a=!0)},p(e,t){3&t&&n!==(n=e[0].required||e[1]?.required)&&(r.required=n),1&t&&o!==(o=e[0].placeholder)&&_(r,"placeholder",o),128&t&&R(r,e[7]),8&t&&N(r,"zephr-payment-form-input",e[3]),8&t&&N(r,"zephr-payment-form-input-textarea",e[3])},i:e,o:e,d(e){e&&g(r),a=!1,i()}}}function ii(t){let r,n,o,a,i,s,c,l,u=(t[0].placeholder??"")+"",p=ne(t[1]?.["select-options"]),d=[];for(let e=0;e<p.length;e+=1)d[e]=ui(ti(t,p,e));return{c(){r=P("select"),n=P("option"),o=S(u);for(let e=0;e<d.length;e+=1)d[e].c();n.disabled=!0,n.__value="",R(n,n.__value),_(r,"id",t[10]),_(r,"name",a=t[0].slug),_(r,"class","zephr-form-input zephr-form-input-select svelte-1f2hwm0"),r.required=i=t[0].required||t[1]?.required,N(r,"zephr-payment-form-input",t[3]),N(r,"zephr-payment-form-input-select",t[3]),N(r,"unselected",!t[2]),N(r,"error",t[8])},m(e,a){y(e,r,a),h(r,n),h(n,o);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);M(r,t[2]??""),c||(l=v(r,"change",t[15]),c=!0)},p(e,t){if(1&t&&u!==(u=(e[0].placeholder??"")+"")&&I(o,u),6&t){let n;for(p=ne(e[1]?.["select-options"]),n=0;n<p.length;n+=1){const o=ti(e,p,n);d[n]?d[n].p(o,t):(d[n]=ui(o),d[n].c(),d[n].m(r,null))}for(;n<d.length;n+=1)d[n].d(1);d.length=p.length}1&t&&a!==(a=e[0].slug)&&_(r,"name",a),3&t&&i!==(i=e[0].required||e[1]?.required)&&(r.required=i),6&t&&s!==(s=e[2]??"")&&M(r,e[2]??""),8&t&&N(r,"zephr-payment-form-input",e[3]),8&t&&N(r,"zephr-payment-form-input-select",e[3]),4&t&&N(r,"unselected",!e[2]),256&t&&N(r,"error",e[8])},i:e,o:e,d(e){e&&g(r),b(d,e),c=!1,l()}}}function si(e){let t,r;return t=new Qa({props:{id:e[10],name:e[0].slug,label:`${e[0].label}${e[0].required||e[1]?.required?"*":""}`,required:e[0].required||e[1]?.required,value:e[2],checked:e[2],pattern:e[1]?.["validation-expression"],placeholder:e[0].placeholder,hasError:e[8],isPaymentForm:e[3]}}),t.$on("change",e[14]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.name=e[0].slug),3&r&&(n.label=`${e[0].label}${e[0].required||e[1]?.required?"*":""}`),3&r&&(n.required=e[0].required||e[1]?.required),4&r&&(n.value=e[2]),4&r&&(n.checked=e[2]),2&r&&(n.pattern=e[1]?.["validation-expression"]),1&r&&(n.placeholder=e[0].placeholder),256&r&&(n.hasError=e[8]),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function ci(e){let t,r,n=ne(e[1]?.["select-options"]),o=[];for(let t=0;t<n.length;t+=1)o[t]=pi(ri(e,n,t));const a=e=>re(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=C()},m(e,n){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,n);y(e,t,n),r=!0},p(e,r){if(1311&r){let i;for(n=ne(e[1]?.["select-options"]),i=0;i<n.length;i+=1){const a=ri(e,n,i);o[i]?(o[i].p(a,r),te(o[i],1)):(o[i]=pi(a),o[i].c(),te(o[i],1),o[i].m(t.parentNode,t))}for(X(),i=n.length;i<o.length;i+=1)a(i);ee()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)te(o[e]);r=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)re(o[e]);r=!1},d(e){e&&g(t),b(o,e)}}}function li(e){let t,r;return{c(){t=P("output"),r=S(e[2]),_(t,"class","zephr-form-input-slider-output svelte-1f2hwm0"),N(t,"zephr-payment-form-input-slider-output",e[3])},m(e,n){y(e,t,n),h(t,r)},p(e,n){4&n&&I(r,e[2]),8&n&&N(t,"zephr-payment-form-input-slider-output",e[3])},d(e){e&&g(t)}}}function ui(e){let t,r,n,o,a,i=e[19].label+"";return{c(){t=P("option"),r=S(i),n=E(),t.__value=o=e[19].value,R(t,t.__value),t.selected=a=e[2]===e[19].value},m(e,o){y(e,t,o),h(t,r),h(t,n)},p(e,n){2&n&&i!==(i=e[19].label+"")&&I(r,i),2&n&&o!==(o=e[19].value)&&(t.__value=o,R(t,t.__value)),6&n&&a!==(a=e[2]===e[19].value)&&(t.selected=a)},d(e){e&&g(t)}}}function pi(e){let t,r;return t=new ei({props:{id:e[10]+"-"+e[19].value,name:e[0].slug,label:e[19].label,required:e[0].required||e[1]?.required,value:e[19].value,checked:e[2]===e[19].value,hasError:e[8],isPaymentForm:e[3]}}),t.$on("change",e[13]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};2&r&&(n.id=e[10]+"-"+e[19].value),1&r&&(n.name=e[0].slug),2&r&&(n.label=e[19].label),3&r&&(n.required=e[0].required||e[1]?.required),2&r&&(n.value=e[19].value),6&r&&(n.checked=e[2]===e[19].value),256&r&&(n.hasError=e[8]),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function di(e){let t,r,n,o;const a=[ci,si,ii,ai,oi,ni],i=[];function s(e,t){return"radio"===e[1]?.["input-type"]?0:"checkbox"===e[1]?.["input-type"]?1:"select"===e[1]?.["input-type"]?2:"textarea"===e[1]?.["input-type"]?3:"range"===e[1]?.["input-type"]?4:5}return t=s(e),r=i[t]=a[t](e),{c(){r.c(),n=C()},m(e,r){i[t].m(e,r),y(e,n,r),o=!0},p(e,o){let c=t;t=s(e),t===c?i[t].p(e,o):(X(),re(i[c],1,1,(()=>{i[c]=null})),ee(),r=i[t],r?r.p(e,o):(r=i[t]=a[t](e),r.c()),te(r,1),r.m(n.parentNode,n))},i(e){o||(te(r),o=!0)},o(e){re(r),o=!1},d(e){e&&g(n),i[t].d(e)}}}function mi(e){let t;return{c(){t=P("div"),t.textContent="Mandatory information must be entered",_(t,"class","zephr-form-input-error-text svelte-1f2hwm0"),N(t,"zephr-payment-form-input-error-text",e[3])},m(e,r){y(e,t,r)},p(e,r){8&r&&N(t,"zephr-payment-form-input-error-text",e[3])},d(e){e&&g(t)}}}function fi(e){let t,r,n,o;t=new er({props:{forInput:e[10],sublabel:e[1]["public-description"],label:/(hidden|checkbox)/.test(e[1]?.["input-type"]||"")?"":`${e[0].label}${e[0].required||e[1]?.required?"*":""}`,isPaymentForm:e[3],$$slots:{default:[di]},$$scope:{ctx:e}}});let a=e[8]&&mi(e);return{c(){ie(t.$$.fragment),r=E(),a&&a.c(),n=C()},m(e,i){se(t,e,i),y(e,r,i),a&&a.m(e,i),y(e,n,i),o=!0},p(e,[r]){const o={};2&r&&(o.sublabel=e[1]["public-description"]),3&r&&(o.label=/(hidden|checkbox)/.test(e[1]?.["input-type"]||"")?"":`${e[0].label}${e[0].required||e[1]?.required?"*":""}`),8&r&&(o.isPaymentForm=e[3]),16777727&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o),e[8]?a?a.p(e,r):(a=mi(e),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},i(e){o||(te(t.$$.fragment,e),o=!0)},o(e){re(t.$$.fragment,e),o=!1},d(e){e&&(g(r),g(n)),ce(t,e),a&&a.d(e)}}}function hi(e,t,r){let n,{formKey:o}=t,{config:a}=t,{attributeSchema:i}=t,{value:s}=t,{error:c}=t,{isPaymentForm:l=!1}=t,{onChange:u}=t,{onFocus:p}=t,{onBlur:d}=t,m=s;const f=e=>e,h=`zephr-form-${a.slug}-${o}`;return e.$$set=e=>{"formKey"in e&&r(11,o=e.formKey),"config"in e&&r(0,a=e.config),"attributeSchema"in e&&r(1,i=e.attributeSchema),"value"in e&&r(2,s=e.value),"error"in e&&r(12,c=e.error),"isPaymentForm"in e&&r(3,l=e.isPaymentForm),"onChange"in e&&r(4,u=e.onChange),"onFocus"in e&&r(5,p=e.onFocus),"onBlur"in e&&r(6,d=e.onBlur)},e.$$.update=()=>{4096&e.$$.dirty&&r(8,n=!!c),150&e.$$.dirty&&"textarea"===i?.["input-type"]&&m!==s&&u(m)},[a,i,s,l,u,p,d,m,n,f,h,o,c,({detail:e})=>u(e),({detail:e})=>u(e),e=>u(e.target.value),function(){m=this.value,r(7,m)},({detail:e})=>u(e),({detail:e})=>u(e)]}class yi extends pe{constructor(e){super(),ue(this,e,hi,fi,i,{formKey:11,config:0,attributeSchema:1,value:2,error:12,isPaymentForm:3,onChange:4,onFocus:5,onBlur:6})}}const gi=e=>null==e||""===e,bi={matches:e=>e.type===Oe,create:(e,t,r,n)=>{const o=e.organisationConfiguration.schemaFields.find((e=>e.slug===n.slug)),a=t.hideIfSetAttributes?.includes(n.slug);if(null==o||a)return;const i=o.required||n.required,s=t.userAttributes[n.slug]??(t.readOnlyAttributeValues??{})[n.slug];return{component:yi,props:{formKey:e.uniqueKey,config:n,value:s,attributeSchema:o,isPaymentForm:e.formType===vt.PAYMENT,onChange:o=>{r.updateFormState({userAttributes:{...t.userAttributes,[n.slug]:o}}),it(e,"zephr_form_input_change",{inputName:`zephr-form-${n.slug}-${e.uniqueKey}`,sectionId:t.currentSection.type,field:n.slug})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:`zephr-form-${n.slug}-${e.uniqueKey}`,sectionId:t.currentSection.type,field:n.slug}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:`zephr-form-${n.slug}-${e.uniqueKey}`,sectionId:t.currentSection.type,field:n.slug})},isValid:!(i&&gi(s)||i&&"checkbox"===o["input-type"]&&!s||"email"===o["input-type"]&&!gi(s)&&!Gr(s))}}};function Pi(t){let r,n,o,a;return{c(){r=P("button"),n=S(t[0]),_(r,"type","button"),_(r,"class","zephr-form-link svelte-1mdtotm"),N(r,"zephr-form-link-disabled",t[1]),N(r,"zephr-form-link-no-underline",t[3])},m(e,i){y(e,r,i),h(r,n),o||(a=v(r,"click",t[5]),o=!0)},p(e,[t]){1&t&&I(n,e[0]),2&t&&N(r,"zephr-form-link-disabled",e[1]),8&t&&N(r,"zephr-form-link-no-underline",e[3])},i:e,o:e,d(e){e&&g(r),o=!1,a()}}}function Ai(e,t,r){let{text:n}=t,{disabled:o=!1}=t,{onClick:a=(()=>{})}=t,{noUnderline:i=!1}=t;const s=D();return e.$$set=e=>{"text"in e&&r(0,n=e.text),"disabled"in e&&r(1,o=e.disabled),"onClick"in e&&r(2,a=e.onClick),"noUnderline"in e&&r(3,i=e.noUnderline)},[n,o,a,i,s,()=>{a(),s("linkClick",null)}]}class Si extends pe{constructor(e){super(),ue(this,e,Ai,Pi,i,{text:0,disabled:1,onClick:2,noUnderline:3})}}function Ei(e){let t,r;return t=new Si({props:{text:e[0],onClick:e[2]}}),t.$on("linkClick",e[7]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.text=e[0]),4&r&&(n.onClick=e[2]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ci(t){let r,n;return{c(){r=P("div"),n=S(t[1]),_(r,"class","zephr-form-link-message svelte-11qigta")},m(e,t){y(e,r,t),h(r,n)},p(e,t){2&t&&I(n,e[1])},i:e,o:e,d(e){e&&g(r)}}}function vi(e){let t,r;return t=new qt({props:{error:e[3],isPaymentForm:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};8&r&&(n.error=e[3]),32&r&&(n.isPaymentForm=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ti(e){let t,r,n,o,a;const i=[Ci,Ei],s=[];function c(e,t){return e[6]&&!e[3]?0:1}r=c(e),n=s[r]=i[r](e);let l=e[3]&&vi(e);return{c(){t=P("div"),n.c(),o=E(),l&&l.c(),_(t,"class","zephr-form-flex-container zephr-form-reset-link-container svelte-11qigta"),N(t,"zephr-payment-form-flex-container",e[5])},m(e,n){y(e,t,n),s[r].m(t,null),h(t,o),l&&l.m(t,null),a=!0},p(e,[u]){let p=r;r=c(e),r===p?s[r].p(e,u):(X(),re(s[p],1,1,(()=>{s[p]=null})),ee(),n=s[r],n?n.p(e,u):(n=s[r]=i[r](e),n.c()),te(n,1),n.m(t,o)),e[3]?l?(l.p(e,u),8&u&&te(l,1)):(l=vi(e),l.c(),te(l,1),l.m(t,null)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),(!a||32&u)&&N(t,"zephr-payment-form-flex-container",e[5])},i(e){a||(te(n),te(l),a=!0)},o(e){re(n),re(l),a=!1},d(e){e&&g(t),s[r].d(),l&&l.d()}}}function _i(e,t,r){let{text:n}=t,{message:o}=t,{onClick:a}=t,{error:i=null}=t,{delayMs:s}=t,{isPaymentForm:c=!1}=t,l=!1;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"message"in e&&r(1,o=e.message),"onClick"in e&&r(2,a=e.onClick),"error"in e&&r(3,i=e.error),"delayMs"in e&&r(4,s=e.delayMs),"isPaymentForm"in e&&r(5,c=e.isPaymentForm)},[n,o,a,i,s,c,l,()=>{o&&(r(6,l=!0),setTimeout((()=>r(6,l=!1)),s))}]}class Oi extends pe{constructor(e){super(),ue(this,e,_i,Ti,i,{text:0,message:1,onClick:2,error:3,delayMs:4,isPaymentForm:5})}}const wi={matches:e=>e.type===we,create:(e,t,r,n)=>({component:Oi,props:{text:n.text,message:n.message,delayMs:e.environment.reduceDelays?1:3e3,isPaymentForm:e.formType===vt.PAYMENT,onClick:()=>Ma(e,t,r)}})};function Ii(e){let t,r;return t=new Si({props:{text:e[0],onClick:e[2]}}),t.$on("linkClick",e[7]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.text=e[0]),4&r&&(n.onClick=e[2]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ri(t){let r,n;return{c(){r=P("div"),n=S(t[1]),_(r,"class","zephr-form-link-message svelte-11qigta")},m(e,t){y(e,r,t),h(r,n)},p(e,t){2&t&&I(n,e[1])},i:e,o:e,d(e){e&&g(r)}}}function $i(e){let t,r;return t=new qt({props:{error:e[3],isPaymentForm:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};8&r&&(n.error=e[3]),32&r&&(n.isPaymentForm=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Mi(e){let t,r,n,o,a;const i=[Ri,Ii],s=[];function c(e,t){return e[6]&&!e[3]?0:1}r=c(e),n=s[r]=i[r](e);let l=e[3]&&$i(e);return{c(){t=P("div"),n.c(),o=E(),l&&l.c(),_(t,"class","zephr-form-flex-container zephr-form-reset-link-container svelte-11qigta"),N(t,"zephr-payment-form-flex-container",e[5])},m(e,n){y(e,t,n),s[r].m(t,null),h(t,o),l&&l.m(t,null),a=!0},p(e,[u]){let p=r;r=c(e),r===p?s[r].p(e,u):(X(),re(s[p],1,1,(()=>{s[p]=null})),ee(),n=s[r],n?n.p(e,u):(n=s[r]=i[r](e),n.c()),te(n,1),n.m(t,o)),e[3]?l?(l.p(e,u),8&u&&te(l,1)):(l=$i(e),l.c(),te(l,1),l.m(t,null)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),(!a||32&u)&&N(t,"zephr-payment-form-flex-container",e[5])},i(e){a||(te(n),te(l),a=!0)},o(e){re(n),re(l),a=!1},d(e){e&&g(t),s[r].d(),l&&l.d()}}}function Ni(e,t,r){let{text:n}=t,{message:o}=t,{onClick:a}=t,{error:i=null}=t,{delayMs:s}=t,{isPaymentForm:c=!1}=t,l=!1;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"message"in e&&r(1,o=e.message),"onClick"in e&&r(2,a=e.onClick),"error"in e&&r(3,i=e.error),"delayMs"in e&&r(4,s=e.delayMs),"isPaymentForm"in e&&r(5,c=e.isPaymentForm)},[n,o,a,i,s,c,l,()=>{o&&(r(6,l=!0),setTimeout((()=>r(6,l=!1)),s))}]}class xi extends pe{constructor(e){super(),ue(this,e,Ni,Mi,i,{text:0,message:1,onClick:2,error:3,delayMs:4,isPaymentForm:5})}}const Li={matches:e=>e.type===Ie,create:(e,t,r,n)=>({component:xi,props:{text:n.text,message:n.message,delayMs:e.environment.reduceDelays?1:3e3,isPaymentForm:e.formType===vt.PAYMENT,onClick:async()=>{await va(e,"login",t.emailAddress,r)}}})},Fi=(e,t)=>r=>{if(r?.data?.fromZephr)if(window.removeEventListener("message",window.zephrOAuthListener),e.environment.debugLogging&&console.log("Social signin message:",r),"register"===r.data.action){const n=t.updateFormState({emailAddress:r.data.identifier,socialSigninToken:r.data.stateKey,userAttributes:r.data.userAttributes??{},socialSignin:!0,userExists:!1,emailIsContact:void 0});if(e.organisationConfiguration.requireEmailVerfication)return void wa(e,n,t);mt(e,n,t)}else"otp"==r.data.action?(t.updateFormState({emailAddress:r.data.identifier,socialSigninToken:r.data.stateKey,userAttributes:r.data.userAttributes??{},socialSignin:!0,userExists:!0,emailIsContact:!1}),t.jumpToSection(ot.VERIFICATION_CODE_LOGIN.type)):"login"===r.data.action?(document.cookie=r.data.cookie,t.updateFormState({socialSignin:!0,userExists:!0,loginRegistrationComplete:!0,emailIsContact:!1}),t.onEvent(Ze.LOGIN_REGISTRATION_COMPLETE)):t.updateFormState({socialSigninError:r.data.message??"Something went wrong. Please try again later!"})};var zi={prefix:"fab",iconName:"microsoft",icon:[448,512,[],"f3ca","M0 32h214.6v214.6H0V32zm233.4 0H448v214.6H233.4V32zM0 265.4h214.6V480H0V265.4zm233.4 0H448V480H233.4V265.4z"]},ki={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Di={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Bi={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},Ui={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function Vi(t){let r,n,o,a,i;return{c(){r=A("svg"),n=A("path"),o=A("path"),a=A("path"),i=A("path"),_(n,"d","M533.5 278.4c0-18.5-1.5-37.1-4.7-55.3H272.1v104.8h147c-6.1 33.8-25.7 63.7-54.4 82.7v68h87.7c51.5-47.4 81.1-117.4 81.1-200.2z"),_(n,"fill","#4285f4"),_(o,"d","M272.1 544.3c73.4 0 135.3-24.1 180.4-65.7l-87.7-68c-24.4 16.6-55.9 26-92.6 26-71 0-131.2-47.9-152.8-112.3H28.9v70.1c46.2 91.9 140.3 149.9 243.2 149.9z"),_(o,"fill","#34a853"),_(a,"d","M119.3 324.3c-11.4-33.8-11.4-70.4 0-104.2V150H28.9c-38.6 76.9-38.6 167.5 0 244.4l90.4-70.1z"),_(a,"fill","#fbbc04"),_(i,"d","M272.1 107.7c38.8-.6 76.3 14 104.4 40.8l77.7-77.7C405 24.6 339.7-.8 272.1 0 169.2 0 75.1 58 28.9 150l90.4 70.1c21.5-64.5 81.8-112.4 152.8-112.4z"),_(i,"fill","#ea4335"),_(r,"class","zephr-form-social-sign-in-icon zephr-form-google-icon svelte-155mfls"),_(r,"viewBox","0 0 533.5 544.3"),_(r,"xmlns","http://www.w3.org/2000/svg")},m(e,t){y(e,r,t),h(r,n),h(r,o),h(r,a),h(r,i)},p:e,i:e,o:e,d(e){e&&g(r)}}}class Gi extends pe{constructor(e){super(),ue(this,e,null,Vi,i,{})}}function ji(e,t,r){const n=e.slice();return n[8]=t[r],n}function qi(e){let t,r,n,o,a,i,s,c,l,u,p,d,m=e[8]+"";const f=[Ki,Hi],b=[];function A(e,t){return"Google"===e[8]?0:1}function C(){return e[6](e[8])}return o=A(e),a=b[o]=f[o](e),{c(){t=P("button"),r=P("span"),n=P("span"),a.c(),i=E(),s=S(e[4]),c=E(),l=S(m),_(n,"class","zephr-form-social-sign-in-icon svelte-18a7qws"),N(n,"zephr-payment-form-social-sign-in-icon",e[3]),_(r,"class","zephr-form-flex-container zephr-form-social-sign-in svelte-18a7qws"),N(r,"zephr-payment-form-flex-container",e[3]),N(r,"zephr-payment-form-social-sign-in",e[3]),_(t,"type","button"),_(t,"class","zephr-form-button zephr-form-social-sign-in-button svelte-18a7qws"),N(t,"zephr-payment-form-button",e[3]),N(t,"zephr-payment-form-social-sign-in-button",e[3])},m(e,a){y(e,t,a),h(t,r),h(r,n),b[o].m(n,null),h(r,i),h(r,s),h(r,c),h(r,l),u=!0,p||(d=v(t,"click",T(C)),p=!0)},p(i,s){let c=o;o=A(e=i),o===c?b[o].p(e,s):(X(),re(b[c],1,1,(()=>{b[c]=null})),ee(),a=b[o],a?a.p(e,s):(a=b[o]=f[o](e),a.c()),te(a,1),a.m(n,null)),(!u||8&s)&&N(n,"zephr-payment-form-social-sign-in-icon",e[3]),(!u||1&s)&&m!==(m=e[8]+"")&&I(l,m),(!u||8&s)&&N(r,"zephr-payment-form-flex-container",e[3]),(!u||8&s)&&N(r,"zephr-payment-form-social-sign-in",e[3]),(!u||8&s)&&N(t,"zephr-payment-form-button",e[3]),(!u||8&s)&&N(t,"zephr-payment-form-social-sign-in-button",e[3])},i(e){u||(te(a),u=!0)},o(e){re(a),u=!1},d(e){e&&g(t),b[o].d(),p=!1,d()}}}function Hi(e){let r,n;const o=[e[5](e[8])];let a={};for(let e=0;e<o.length;e+=1)a=t(a,o[e]);return r=new lr({props:a}),{c(){ie(r.$$.fragment)},m(e,t){se(r,e,t),n=!0},p(e,t){const n=33&t?oe(o,[ae(e[5](e[8]))]):{};r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){ce(r,e)}}}function Ki(t){let r,n;return r=new Gi({}),{c(){ie(r.$$.fragment)},m(e,t){se(r,e,t),n=!0},p:e,i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){ce(r,e)}}}function Yi(e){let t,r,n=!0===e[0][e[8]]&&"labelText"!==e[8]&&"allowEmptyLabel"!==e[8]&&qi(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,r){!0===e[0][e[8]]&&"labelText"!==e[8]&&"allowEmptyLabel"!==e[8]?n?(n.p(e,r),1&r&&te(n,1)):(n=qi(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Wi(e){let t,r;return t=new qt({props:{error:e[2],isPaymentForm:e[3]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};4&r&&(n.error=e[2]),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ji(e){let t,r,n,o=ne(Object.keys(e[0])),a=[];for(let t=0;t<o.length;t+=1)a[t]=Yi(ji(e,o,t));const i=e=>re(a[e],1,1,(()=>{a[e]=null}));let s=e[2]&&Wi(e);return{c(){for(let e=0;e<a.length;e+=1)a[e].c();t=E(),s&&s.c(),r=C()},m(e,o){for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,o);y(e,t,o),s&&s.m(e,o),y(e,r,o),n=!0},p(e,[n]){if(59&n){let r;for(o=ne(Object.keys(e[0])),r=0;r<o.length;r+=1){const i=ji(e,o,r);a[r]?(a[r].p(i,n),te(a[r],1)):(a[r]=Yi(i),a[r].c(),te(a[r],1),a[r].m(t.parentNode,t))}for(X(),r=o.length;r<a.length;r+=1)i(r);ee()}e[2]?s?(s.p(e,n),4&n&&te(s,1)):(s=Wi(e),s.c(),te(s,1),s.m(r.parentNode,r)):s&&(X(),re(s,1,1,(()=>{s=null})),ee())},i(e){if(!n){for(let e=0;e<o.length;e+=1)te(a[e]);te(s),n=!0}},o(e){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)re(a[e]);re(s),n=!1},d(e){e&&(g(t),g(r)),b(a,e),s&&s.d(e)}}}function Qi(e,t,r){let{config:n}=t,{onSelectProvider:o}=t,{error:a=null}=t,{isPaymentForm:i=!1}=t;const s=n.allowEmptyLabel?"":"Continue with",c=n.labelText?n.labelText:s;return e.$$set=e=>{"config"in e&&r(0,n=e.config),"onSelectProvider"in e&&r(1,o=e.onSelectProvider),"error"in e&&r(2,a=e.error),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,o,a,i,c,e=>{switch(e){case"Facebook":default:return{icon:Bi,color:"#1877f2",size:"lg"};case"LinkedIn":return{icon:Di,color:"#0a66c2",size:"lg"};case"Apple":return{icon:ki,color:"#000",size:"lg"};case"Microsoft":return{icon:zi,color:"#00a4ef",size:"lg"};case"Twitter":return{icon:Ui,color:"#08a0e9",size:"lg"}}},e=>o(e.toLowerCase())]}class Zi extends pe{constructor(e){super(),ue(this,e,Qi,Ji,i,{config:0,onSelectProvider:1,error:2,isPaymentForm:3})}}const Xi={matches:e=>e.type===Re,create:(e,t,r,n)=>{const{enabled:o,hide:a,show:i,...s}=n??{};return{component:Zi,props:{config:s,isPaymentForm:e.formType===vt.PAYMENT,onSelectProvider:t=>((e,t,r)=>{r.updateFormState({socialSigninError:void 0}),window.open(`${t.environment.apiUrlBase??""}/blaize/oauth/${e}`,e+" sign-in","menubar=no,location=yes,resizable=no,scrollbars=no,status=no,width=500,height=600");const n=Fi(t,r);window.zephrOAuthListener=n,window.addEventListener("message",n)})(t,e,r)}}}},es="promo-code",ts=async(e,t,r)=>{const n=await Nn(e,t,r,!0),o=await Fn(e,n,r);if(t.currentSection.elements.some((e=>e.type===Le&&!1!==e.config?.enabled))){r.incrementRequestCount();try{await da(e.organisationConfiguration.paymentProvider).loader(e,o,r)}finally{r.decrementRequestCount()}}},rs=async(e,t,r)=>{const n=pa(e.organisationConfiguration.paymentProvider);return n.hasPromoCodes(e)?n?.promoCodeServiceOverride?n.promoCodeServiceOverride(e,t,r):(async(e,t,r)=>{r.updateFormState({promoCodeValid:void 0,serverErrors:[],discountedPlanPrices:[]});const n=pa(e.organisationConfiguration.paymentProvider),o=await gn(n.promoCodeCheckPath,{method:"POST",bodyObject:{promoCode:t.promoCode,paymentOptions:Ot(e).paymentOptions}},r,es);if(!o.ok){let t;if(403===o.status){const e=await o.json();t=2===e?.code||3===e?.code?tt.PROMO_CODE_EXPIRED_ERROR:tt.PROMO_CODE_INVALID_ERROR}else t=tt.PROMO_CODE_INVALID_ERROR,console.error("Unknown error evaluating promo code",o);return it(e,"zephr_form_error",{error:tt[t]}),Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[t],discountedPlanPrices:[]}))}const a=(await o.json()).paymentOptions.map((e=>({planSlug:e.slug,productId:e.productId,discountPrice:e.discountPrice})));return a.find((e=>e.planSlug===t.paymentOption.slug&&e.productId===t.paymentOption.productId))?Promise.resolve(r.updateFormState({promoCodeValid:!0,serverErrors:[],discountedPlanPrices:a})):(it(e,"zephr_form_error",{error:tt[tt.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR]}),Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[tt.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR],discountedPlanPrices:a})))})(e,t,r).then((t=>ts(e,t,r))):t};function ns(e,t,r){const n=e.slice();return n[34]=t[r],n}function os(e,t,r){const n=e.slice();return n[37]=t[r],n}function as(e){let t,r,n,o,a,i,s,c=e[37].label+"",l=e[37].priceFormattedString+"";return{c(){t=P("div"),r=P("span"),n=S(c),o=E(),a=P("div"),i=P("span"),s=S(l),_(r,"class","zephr-form-summary-charge-description zephr-payment-form-summary-charge-description svelte-19l6fte"),_(a,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),_(t,"class","zephr-form-charge-line zephr-payment-form-charge-line svelte-19l6fte")},m(e,c){y(e,t,c),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),h(i,s)},p(e,t){524288&t[0]&&c!==(c=e[37].label+"")&&I(n,c),524288&t[0]&&l!==(l=e[37].priceFormattedString+"")&&I(s,l)},d(e){e&&g(t)}}}function is(e){let t,r,n,o,a,i;return{c(){t=P("div"),r=P("div"),n=S(e[22]),o=E(),a=P("div"),i=S(e[21]),_(r,"class","zephr-form-summary-charge-description zephr-payment-form-summary-charge-description svelte-19l6fte"),_(a,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),_(t,"class","zephr-form-charge-line zephr-payment-form-charge-line svelte-19l6fte")},m(e,s){y(e,t,s),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i)},p(e,t){4194304&t[0]&&I(n,e[22]),2097152&t[0]&&I(i,e[21])},d(e){e&&g(t)}}}function ss(e){let t,r,n,o,a,i,s,c=e[34].label+"",l=e[34].addonPrice+"";return{c(){t=P("div"),r=P("span"),n=S(c),o=E(),a=P("div"),i=P("span"),s=S(l),_(a,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),_(t,"class","zephr-form-addon-line zephr-payment-form-addon-line svelte-19l6fte")},m(e,c){y(e,t,c),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),h(i,s)},p(e,t){262144&t[0]&&c!==(c=e[34].label+"")&&I(n,c),262144&t[0]&&l!==(l=e[34].addonPrice+"")&&I(s,l)},d(e){e&&g(t)}}}function cs(e){let t,r,n,o=!e[17]&&!(e[27]||e[11])&&ls(e),a=(e[27]||e[11])&&us(e);return{c(){o&&o.c(),t=E(),a&&a.c(),r=C()},m(e,i){o&&o.m(e,i),y(e,t,i),a&&a.m(e,i),y(e,r,i),n=!0},p(e,n){e[17]||e[27]||e[11]?o&&(o.d(1),o=null):o?o.p(e,n):(o=ls(e),o.c(),o.m(t.parentNode,t)),e[27]||e[11]?a?(a.p(e,n),134219776&n[0]&&te(a,1)):(a=us(e),a.c(),te(a,1),a.m(r.parentNode,r)):a&&(X(),re(a,1,1,(()=>{a=null})),ee())},i(e){n||(te(a),n=!0)},o(e){re(a),n=!1},d(e){e&&(g(t),g(r)),o&&o.d(e),a&&a.d(e)}}}function ls(e){let t,r,n,o,a;return{c(){t=P("button"),r=P("span"),n=S(e[4]),_(t,"type","button"),_(t,"class","zephr-form-promo-activate-line zephr-payment-form-promo-activate-line svelte-19l6fte")},m(i,s){y(i,t,s),h(t,r),h(r,n),o||(a=v(t,"click",e[32]),o=!0)},p(e,t){16&t[0]&&I(n,e[4])},d(e){e&&g(t),o=!1,a()}}}function us(e){let t,r,n,o,a,i,s,c,l,u,p,d;const m=[ds,ps],b=[];function A(e,t){return e[17]&&e[11]?0:e[17]?-1:1}~(n=A(e))&&(o=b[n]=m[n](e));const S=[gs,ys],v=[];function T(e,t){return e[12]?0:e[17]?-1:1}~(s=T(e))&&(c=v[s]=S[s](e));let O=e[14]&&Ps(e);return{c(){t=P("div"),r=P("div"),o&&o.c(),a=E(),i=P("div"),c&&c.c(),u=E(),O&&O.c(),p=C(),_(r,"class","zephr-form-promo-input-container zephr-payment-form-promo-input-container svelte-19l6fte"),_(i,"class",l=f(e[12]?"zephr-form-summary-line-right zephr-payment-form-summary-line-right":"zephr-form-summary-line-left zephr-payment-form-summary-line-left")+" svelte-19l6fte"),_(t,"class","zephr-form-promo-line zephr-payment-form-promo-line svelte-19l6fte")},m(e,o){y(e,t,o),h(t,r),~n&&b[n].m(r,null),h(t,a),h(t,i),~s&&v[s].m(i,null),y(e,u,o),O&&O.m(e,o),y(e,p,o),d=!0},p(e,t){let a=n;n=A(e),n===a?~n&&b[n].p(e,t):(o&&(X(),re(b[a],1,1,(()=>{b[a]=null})),ee()),~n?(o=b[n],o?o.p(e,t):(o=b[n]=m[n](e),o.c()),te(o,1),o.m(r,null)):o=null);let u=s;s=T(e),s===u?~s&&v[s].p(e,t):(c&&(X(),re(v[u],1,1,(()=>{v[u]=null})),ee()),~s?(c=v[s],c?c.p(e,t):(c=v[s]=S[s](e),c.c()),te(c,1),c.m(i,null)):c=null),(!d||4096&t[0]&&l!==(l=f(e[12]?"zephr-form-summary-line-right zephr-payment-form-summary-line-right":"zephr-form-summary-line-left zephr-payment-form-summary-line-left")+" svelte-19l6fte"))&&_(i,"class",l),e[14]?O?(O.p(e,t),16384&t[0]&&te(O,1)):(O=Ps(e),O.c(),te(O,1),O.m(p.parentNode,p)):O&&(X(),re(O,1,1,(()=>{O=null})),ee())},i(e){d||(te(o),te(c),te(O),d=!0)},o(e){re(o),re(c),re(O),d=!1},d(e){e&&(g(t),g(u),g(p)),~n&&b[n].d(),~s&&v[s].d(),O&&O.d(e)}}}function ps(e){let t,r,n;return r=new Jt({props:{id:"zephr-form-promo-code",value:e[11],placeholder:e[5],maxlength:50,hasError:null!=e[14],fill:!0,isPaymentForm:!0,onFocus:e[25],onBlur:e[26],$$slots:{default:[hs]},$$scope:{ctx:e}}}),r.$on("change",e[33]),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class","zephr-form-relative-container zephr-form-promo-input zephr-form-relative-container zephr-payment-form-promo-input")},m(e,o){y(e,t,o),se(r,t,null),n=!0},p(e,t){const n={};2048&t[0]&&(n.value=e[11]),32&t[0]&&(n.placeholder=e[5]),16384&t[0]&&(n.hasError=null!=e[14]),33554432&t[0]&&(n.onFocus=e[25]),67108864&t[0]&&(n.onBlur=e[26]),53248&t[0]|512&t[1]&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&g(t),ce(r)}}}function ds(t){let r,n;return{c(){r=P("span"),n=S(t[11]),_(r,"class","zephr-form-summary-promo-middle zephr-payment-form-summary-promo-middle svelte-19l6fte")},m(e,t){y(e,r,t),h(r,n)},p(e,t){2048&t[0]&&I(n,e[11])},i:e,o:e,d(e){e&&g(r)}}}function ms(e){let t,r;return t=new lr({props:{icon:pr,spin:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function fs(e){let t,r;return t=new lr({props:{icon:dr}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function hs(e){let t,r,n,o;const a=[fs,ms],i=[];function s(e,t){return e[12]?0:e[15]&&!e[14]?1:-1}return~(r=s(e))&&(n=i[r]=a[r](e)),{c(){t=P("div"),n&&n.c(),_(t,"class","zephr-form-input-inner-text zephr-payment-form-input-inner-text zephr-form-input-inner-button")},m(e,n){y(e,t,n),~r&&i[r].m(t,null),o=!0},p(e,o){let c=r;r=s(e),r!==c&&(n&&(X(),re(i[c],1,1,(()=>{i[c]=null})),ee()),~r?(n=i[r],n||(n=i[r]=a[r](e),n.c()),te(n,1),n.m(t,null)):n=null)},i(e){o||(te(n),o=!0)},o(e){re(n),o=!1},d(e){e&&g(t),~r&&i[r].d()}}}function ys(e){let t,r;return t=new Rt({props:{disabled:e[16],text:e[6],onClick:e[24],noMargin:!0,inputHeight:!0,isPaymentForm:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};65536&r[0]&&(n.disabled=e[16]),64&r[0]&&(n.text=e[6]),16777216&r[0]&&(n.onClick=e[24]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function gs(t){let r,n=t[0]&&bs(t);return{c(){r=P("span"),n&&n.c(),_(r,"class","zephr-form-summary-promo-middle zephr-payment-form-summary-promo-middle svelte-19l6fte")},m(e,t){y(e,r,t),n&&n.m(r,null)},p(e,t){e[0]?n?n.p(e,t):(n=bs(e),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&g(r),n&&n.d()}}}function bs(e){let t,r;return{c(){t=S("- "),r=S(e[13])},m(e,n){y(e,t,n),y(e,r,n)},p(e,t){8192&t[0]&&I(r,e[13])},d(e){e&&(g(t),g(r))}}}function Ps(e){let t,r;return t=new qt({props:{error:e[14],isPaymentForm:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};16384&r[0]&&(n.error=e[14]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function As(e){let t,r;return{c(){t=P("div"),r=S(e[10]),_(t,"class","zephr-form-summary-prorate-disclaimer zephr-payment-form-summary-prorate-disclaimer svelte-19l6fte")},m(e,n){y(e,t,n),h(t,r)},p(e,t){1024&t[0]&&I(r,e[10])},d(e){e&&g(t)}}}function Ss(e){let t,r,n,o,a,i,s=(e[9]??"DUE TODAY")+"",c=e[20].totalPriceFormattedString+"";return{c(){t=P("div"),r=P("div"),n=S(s),o=E(),a=P("div"),i=S(c),_(r,"class","zephr-form-summary-line-total-title zephr-payment-form-summary-line-total-title"),_(a,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),_(t,"class","zephr-form-summary-line zephr-form-summary-price-line zephr-payment-form-summary-line zephr-payment-form-summary-price-line svelte-19l6fte")},m(e,s){y(e,t,s),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i)},p(e,t){512&t[0]&&s!==(s=(e[9]??"DUE TODAY")+"")&&I(n,s),1048576&t[0]&&c!==(c=e[20].totalPriceFormattedString+"")&&I(i,c)},d(e){e&&g(t)}}}function Es(e){let t,r,n,o,a,i,s,c,l,u,p,d,m,f,A,C,v,T,O,w,R,$,M,N,x=ne(e[19]),L=[];for(let t=0;t<x.length;t+=1)L[t]=as(os(e,x,t));let F=e[21]&&is(e),z=ne(e[18]),k=[];for(let t=0;t<z.length;t+=1)k[t]=ss(ns(e,z,t));let D=e[3]&&cs(e),B=e[10]&&As(e),U=e[20]&&Ss(e);return{c(){t=P("div"),r=P("div"),n=S(e[7]),o=E(),a=P("div"),i=P("div"),s=S(e[1]),c=E(),l=P("div"),u=S(e[28]),p=E();for(let e=0;e<L.length;e+=1)L[e].c();d=E(),F&&F.c(),m=E();for(let e=0;e<k.length;e+=1)k[e].c();f=E(),D&&D.c(),A=E(),C=P("div"),v=P("div"),T=S(e[8]),O=E(),w=P("div"),R=S(e[2]),$=E(),B&&B.c(),M=E(),U&&U.c(),_(r,"class","zephr-form-summary-title zephr-payment-form-summary-title svelte-19l6fte"),_(i,"class","zephr-form-summary-line-title zephr-payment-form-summary-line-title svelte-19l6fte"),_(l,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),_(a,"class","zephr-form-summary-line zephr-payment-form-summary-line svelte-19l6fte"),_(v,"class","zephr-form-summary-line-total-title zephr-payment-form-summary-line-total-title"),_(w,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),_(C,"class","zephr-form-summary-line zephr-form-summary-price-line zephr-form-summary-price-line-upper zephr-payment-form-summary-line zephr-payment-form-summary-price-line zephr-payment-form-summary-price-line-upper svelte-19l6fte"),_(t,"class","zephr-form-summary zephr-payment-form-summary svelte-19l6fte")},m(e,g){y(e,t,g),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),h(i,s),h(a,c),h(a,l),h(l,u),h(t,p);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(t,null);h(t,d),F&&F.m(t,null),h(t,m);for(let e=0;e<k.length;e+=1)k[e]&&k[e].m(t,null);h(t,f),D&&D.m(t,null),h(t,A),h(t,C),h(C,v),h(v,T),h(C,O),h(C,w),h(w,R),h(t,$),B&&B.m(t,null),h(t,M),U&&U.m(t,null),N=!0},p(e,r){if((!N||128&r[0])&&I(n,e[7]),(!N||2&r[0])&&I(s,e[1]),(!N||268435456&r[0])&&I(u,e[28]),524288&r[0]){let n;for(x=ne(e[19]),n=0;n<x.length;n+=1){const o=os(e,x,n);L[n]?L[n].p(o,r):(L[n]=as(o),L[n].c(),L[n].m(t,d))}for(;n<L.length;n+=1)L[n].d(1);L.length=x.length}if(e[21]?F?F.p(e,r):(F=is(e),F.c(),F.m(t,m)):F&&(F.d(1),F=null),262144&r[0]){let n;for(z=ne(e[18]),n=0;n<z.length;n+=1){const o=ns(e,z,n);k[n]?k[n].p(o,r):(k[n]=ss(o),k[n].c(),k[n].m(t,f))}for(;n<k.length;n+=1)k[n].d(1);k.length=z.length}e[3]?D?(D.p(e,r),8&r[0]&&te(D,1)):(D=cs(e),D.c(),te(D,1),D.m(t,A)):D&&(X(),re(D,1,1,(()=>{D=null})),ee()),(!N||256&r[0])&&I(T,e[8]),(!N||4&r[0])&&I(R,e[2]),e[10]?B?B.p(e,r):(B=As(e),B.c(),B.m(t,M)):B&&(B.d(1),B=null),e[20]?U?U.p(e,r):(U=Ss(e),U.c(),U.m(t,null)):U&&(U.d(1),U=null)},i(e){N||(te(D),N=!0)},o(e){re(D),N=!1},d(e){e&&g(t),b(L,e),F&&F.d(),b(k,e),D&&D.d(),B&&B.d(),U&&U.d()}}}function Cs(e,t,r){let n,{showPromoCodeDiscountAmount:o=!0}=t,{planTitle:a}=t,{price:i}=t,{totalPrice:s}=t,{allowPromoCodes:c}=t,{promoCodeLinkText:l}=t,{promoCodePlaceholder:u}=t,{promoCodeButtonText:p}=t,{title:d}=t,{totalLabel:m}=t,{prorateLabel:f}=t,{prorateDisclaimer:h}=t,{promoCode:y}=t,{promoCodeValid:g}=t,{discountAmount:b}=t,{error:P=null}=t,{busy:A}=t,{promoCodeDisabled:S}=t,{paymentProcessed:E}=t,{addons:C}=t,{chargeItems:v}=t,{changeSubscriptionProrate:T}=t,{tax:_}=t,{taxLabel:O}=t,{subTotal:w}=t,{onChangePromoCode:I}=t,{verifyPromoCode:R}=t,{onFocus:$}=t,{onBlur:M}=t,{logBeginCheckout:N}=t,x=!1;N();return e.$$set=e=>{"showPromoCodeDiscountAmount"in e&&r(0,o=e.showPromoCodeDiscountAmount),"planTitle"in e&&r(1,a=e.planTitle),"price"in e&&r(29,i=e.price),"totalPrice"in e&&r(2,s=e.totalPrice),"allowPromoCodes"in e&&r(3,c=e.allowPromoCodes),"promoCodeLinkText"in e&&r(4,l=e.promoCodeLinkText),"promoCodePlaceholder"in e&&r(5,u=e.promoCodePlaceholder),"promoCodeButtonText"in e&&r(6,p=e.promoCodeButtonText),"title"in e&&r(7,d=e.title),"totalLabel"in e&&r(8,m=e.totalLabel),"prorateLabel"in e&&r(9,f=e.prorateLabel),"prorateDisclaimer"in e&&r(10,h=e.prorateDisclaimer),"promoCode"in e&&r(11,y=e.promoCode),"promoCodeValid"in e&&r(12,g=e.promoCodeValid),"discountAmount"in e&&r(13,b=e.discountAmount),"error"in e&&r(14,P=e.error),"busy"in e&&r(15,A=e.busy),"promoCodeDisabled"in e&&r(16,S=e.promoCodeDisabled),"paymentProcessed"in e&&r(17,E=e.paymentProcessed),"addons"in e&&r(18,C=e.addons),"chargeItems"in e&&r(19,v=e.chargeItems),"changeSubscriptionProrate"in e&&r(20,T=e.changeSubscriptionProrate),"tax"in e&&r(21,_=e.tax),"taxLabel"in e&&r(22,O=e.taxLabel),"subTotal"in e&&r(30,w=e.subTotal),"onChangePromoCode"in e&&r(23,I=e.onChangePromoCode),"verifyPromoCode"in e&&r(24,R=e.verifyPromoCode),"onFocus"in e&&r(25,$=e.onFocus),"onBlur"in e&&r(26,M=e.onBlur),"logBeginCheckout"in e&&r(31,N=e.logBeginCheckout)},e.$$.update=()=>{1611137024&e.$$.dirty[0]&&r(28,n=v.length?"":w||i)},[o,a,s,c,l,u,p,d,m,f,h,y,g,b,P,A,S,E,C,v,T,_,O,I,R,$,M,x,n,i,w,N,()=>r(27,x=!0),({detail:e})=>I(e)]}class vs extends pe{constructor(e){super(),ue(this,e,Cs,Es,i,{showPromoCodeDiscountAmount:0,planTitle:1,price:29,totalPrice:2,allowPromoCodes:3,promoCodeLinkText:4,promoCodePlaceholder:5,promoCodeButtonText:6,title:7,totalLabel:8,prorateLabel:9,prorateDisclaimer:10,promoCode:11,promoCodeValid:12,discountAmount:13,error:14,busy:15,promoCodeDisabled:16,paymentProcessed:17,addons:18,chargeItems:19,changeSubscriptionProrate:20,tax:21,taxLabel:22,subTotal:30,onChangePromoCode:23,verifyPromoCode:24,onFocus:25,onBlur:26,logBeginCheckout:31},null,[-1,-1])}}const Ts={matches:e=>e.type===$e,create:(e,t,r,n)=>{const o=pa(e.organisationConfiguration.paymentProvider);return{component:vs,props:{showPromoCodeDiscountAmount:!Ot(e).dynamicOffer,price:t.paymentOptionPrices?.netPriceFormattedString??"-",totalPrice:t.paymentOptionPrices?.totalPriceFormattedString??"-",tax:t.paymentOptionPrices?.taxPriceFormattedString,taxLabel:n.taxLabel??"Tax",subTotal:t.paymentOptionPrices?.netPriceFormattedString,planTitle:t.paymentOption.label,allowPromoCodes:(Ot(e).promoCodeConfig?.promoCodeAllowed||Ot(e).dynamicOffer)&&o.hasPromoCodes(e),promoCodeLinkText:Ot(e).promoCodeConfig?.promoCodeText,promoCodePlaceholder:Ot(e).promoCodeConfig?.promoCodePlaceholder,promoCodeButtonText:Ot(e).promoCodeConfig?.promoCodeButtonText,totalLabel:n.total,prorateLabel:n.prorateLabel,prorateDisclaimer:!Ot(e).changeSubscriptionMode||o.changeSubscriptionProrateCalculator?null:n.prorateDisclaimer,title:n.title,promoCode:t.promoCode,busy:t.isBusyByKey[es],promoCodeDisabled:t.isBusy||0===t.promoCode?.length,paymentProcessed:t.paymentProcessed,discountAmount:t.paymentOptionPrices?.discountPriceFormattedPrice??"-",addons:Ln(t).map((e=>({label:e.label,addonPrice:Mn(e.addonPrice,t.paymentOption.currencyCode)}))),chargeItems:t.paymentOptionPrices?.chargeItems??[],promoCodeValid:t.promoCodeValid,changeSubscriptionProrate:t.changeSubscriptionProrate,onChangePromoCode:n=>{let o=r.updateFormState({promoCode:n,promoCodeValid:void 0,discountedPlanPrices:[]});t.promoCodeValid&&(t.originalDynamicOfferResult&&(o=r.updateFormState({dynamicOfferResult:t.originalDynamicOfferResult})),ts(e,o,r)),it(e,"zephr_form_input_change",{inputName:"zephr-form-promo-code",sectionId:t.currentSection.type,field:"promo-code"})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:"zephr-form-promo-code",sectionId:t.currentSection.type,field:"promo-code"}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:"zephr-form-promo-code",sectionId:t.currentSection.type,field:"promo-code"}),verifyPromoCode:()=>{rs(e,t,r)},logBeginCheckout:()=>{t.userExists&&it(e,"begin_checkout",{ecommerce:{currency:Co(e,t),value:t.paymentOptionPrices?.netPrice,items:[{item_id:t.paymentOption.slug,item_name:t.paymentOption.productId,price:t.paymentOptionPrices?.netPrice,quantity:1}]}})}}}}};function _s(e){let t,r,n,o=e[1]&&Os(e),a=e[0]&&Rs(e),i=e[1]&&e[0]&&$s(e);return{c(){t=P("div"),o&&o.c(),r=E(),a&&a.c(),n=E(),i&&i.c(),_(t,"class","zephr-form-divider-container svelte-svq2r5"),N(t,"zephr-payment-form-divider-container",e[3])},m(e,s){y(e,t,s),o&&o.m(t,null),h(t,r),a&&a.m(t,null),h(t,n),i&&i.m(t,null)},p(e,s){e[1]?o?o.p(e,s):(o=Os(e),o.c(),o.m(t,r)):o&&(o.d(1),o=null),e[0]?a?a.p(e,s):(a=Rs(e),a.c(),a.m(t,n)):a&&(a.d(1),a=null),e[1]&&e[0]?i?i.p(e,s):(i=$s(e),i.c(),i.m(t,null)):i&&(i.d(1),i=null),8&s&&N(t,"zephr-payment-form-divider-container",e[3])},d(e){e&&g(t),o&&o.d(),a&&a.d(),i&&i.d()}}}function Os(e){let t;function r(e,t){return e[0]?Is:ws}let n=r(e),o=n(e);return{c(){o.c(),t=C()},m(e,r){o.m(e,r),y(e,t,r)},p(e,a){n===(n=r(e))&&o?o.p(e,a):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){e&&g(t),o.d(e)}}}function ws(t){let r;return{c(){r=P("div"),_(r,"class","zephr-form-divider-line-complete svelte-svq2r5")},m(e,t){y(e,r,t)},p:e,d(e){e&&g(r)}}}function Is(e){let t;return{c(){t=P("div"),_(t,"class","zephr-form-divider-line svelte-svq2r5"),N(t,"zephr-payment-form-divider-line",e[3])},m(e,r){y(e,t,r)},p(e,r){8&r&&N(t,"zephr-payment-form-divider-line",e[3])},d(e){e&&g(t)}}}function Rs(e){let t,r;return{c(){t=P("span"),r=S(e[0]),_(t,"class","zephr-form-divider-text svelte-svq2r5"),N(t,"zephr-payment-form-divider-text",e[3])},m(e,n){y(e,t,n),h(t,r)},p(e,n){1&n&&I(r,e[0]),8&n&&N(t,"zephr-payment-form-divider-text",e[3])},d(e){e&&g(t)}}}function $s(e){let t;return{c(){t=P("div"),_(t,"class","zephr-form-divider-line svelte-svq2r5"),N(t,"zephr-payment-form-divider-line",e[3])},m(e,r){y(e,t,r)},p(e,r){8&r&&N(t,"zephr-payment-form-divider-line",e[3])},d(e){e&&g(t)}}}function Ms(t){let r,n=t[2]&&_s(t);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),y(e,r,t)},p(e,[t]){e[2]?n?n.p(e,t):(n=_s(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&g(r),n&&n.d(e)}}}function Ns(e,t,r){let{text:n}=t,{showLine:o}=t,{show:a}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"showLine"in e&&r(1,o=e.showLine),"show"in e&&r(2,a=e.show),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,o,a,i]}class xs extends pe{constructor(e){super(),ue(this,e,Ns,Ms,i,{text:0,showLine:1,show:2,isPaymentForm:3})}}const Ls={matches:e=>e.type===Me,create:(e,t,r,n)=>({component:xs,props:{text:n.text,showLine:n.showLine,show:n.show,isPaymentForm:e.formType===vt.PAYMENT}})};function Fs(t){let r,n,o,a,i;return{c(){r=P("div"),n=S(t[0]),o=E(),a=P("a"),i=S(t[1]),_(a,"href",t[2]),_(a,"class","svelte-1bpa3mq"),_(r,"class","zephr-form-login-link svelte-1bpa3mq"),N(r,"zephr-payment-login-link",t[3])},m(e,t){y(e,r,t),h(r,n),h(r,o),h(r,a),h(a,i)},p(e,[t]){1&t&&I(n,e[0]),2&t&&I(i,e[1]),4&t&&_(a,"href",e[2]),8&t&&N(r,"zephr-payment-login-link",e[3])},i:e,o:e,d(e){e&&g(r)}}}function zs(e,t,r){let{text:n}=t,{linkText:o}=t,{url:a}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"linkText"in e&&r(1,o=e.linkText),"url"in e&&r(2,a=e.url),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,o,a,i]}class ks extends pe{constructor(e){super(),ue(this,e,zs,Fs,i,{text:0,linkText:1,url:2,isPaymentForm:3})}}const Ds={matches:e=>e.type===Ne,create:(e,t,r,n)=>({component:ks,props:{text:n.alreadyRegText,linkText:n.loginText,url:n.url,isPaymentForm:e.formType===vt.PAYMENT}})},Bs={matches:e=>e.type===Se&&e.config.isLogin,create:(e,t,r,n)=>({component:Rt,props:{disabled:t.isBusy,text:n.text,onClick:()=>{it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.updateFormState({forgotPassword:!1}),r.jumpToPartStart(Xe.ACCOUNT_VERIFICATION.type)},isPaymentForm:e.formType===vt.PAYMENT}})},Us={matches:e=>e.type===Se&&e.config.isCancel,create:(e,t,r,n)=>({component:Rt,props:{text:n.text,onClick:()=>{it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.updateFormState({confirmCancel:!0}),r.completeSection()}}})};function Vs(e){let t,r;return t=new Si({props:{text:e[0]}}),t.$on("linkClick",e[10]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.text=e[0]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Gs(e){let t,r,n,o;return t=new er({props:{forInput:e[8],label:e[0]}}),n=new Jt({props:{id:e[8],value:e[2],errorMessage:e[3],placeholder:e[1],onFocus:e[5],onBlur:e[6]}}),n.$on("change",e[11]),{c(){ie(t.$$.fragment),r=E(),ie(n.$$.fragment)},m(e,a){se(t,e,a),y(e,r,a),se(n,e,a),o=!0},p(e,r){const o={};1&r&&(o.label=e[0]),t.$set(o);const a={};4&r&&(a.value=e[2]),8&r&&(a.errorMessage=e[3]),2&r&&(a.placeholder=e[1]),32&r&&(a.onFocus=e[5]),64&r&&(a.onBlur=e[6]),n.$set(a)},i(e){o||(te(t.$$.fragment,e),te(n.$$.fragment,e),o=!0)},o(e){re(t.$$.fragment,e),re(n.$$.fragment,e),o=!1},d(e){e&&g(r),ce(t,e),ce(n,e)}}}function js(e){let t,r,n,o=!e[7]&&Vs(e),a=(e[2]||e[7])&&Gs(e);return{c(){t=P("div"),o&&o.c(),r=E(),a&&a.c(),_(t,"class","zephr-form-account-code-container svelte-ctt9he")},m(e,i){y(e,t,i),o&&o.m(t,null),h(t,r),a&&a.m(t,null),n=!0},p(e,[n]){e[7]?o&&(X(),re(o,1,1,(()=>{o=null})),ee()):o?(o.p(e,n),128&n&&te(o,1)):(o=Vs(e),o.c(),te(o,1),o.m(t,r)),e[2]||e[7]?a?(a.p(e,n),132&n&&te(a,1)):(a=Gs(e),a.c(),te(a,1),a.m(t,null)):a&&(X(),re(a,1,1,(()=>{a=null})),ee())},i(e){n||(te(o),te(a),n=!0)},o(e){re(o),re(a),n=!1},d(e){e&&g(t),o&&o.d(),a&&a.d()}}}function qs(e,t,r){let{formKey:n}=t,{label:o}=t,{placeholder:a}=t,{accountMembershipCode:i}=t,{error:s=null}=t,{onChange:c}=t,{onFocus:l}=t,{onBlur:u}=t,p=!1;const d=`zephr-form-account-code-${n}`;return e.$$set=e=>{"formKey"in e&&r(9,n=e.formKey),"label"in e&&r(0,o=e.label),"placeholder"in e&&r(1,a=e.placeholder),"accountMembershipCode"in e&&r(2,i=e.accountMembershipCode),"error"in e&&r(3,s=e.error),"onChange"in e&&r(4,c=e.onChange),"onFocus"in e&&r(5,l=e.onFocus),"onBlur"in e&&r(6,u=e.onBlur)},[o,a,i,s,c,l,u,p,d,n,()=>r(7,p=!0),e=>c(e.detail)]}class Hs extends pe{constructor(e){super(),ue(this,e,qs,js,i,{formKey:9,label:0,placeholder:1,accountMembershipCode:2,error:3,onChange:4,onFocus:5,onBlur:6})}}const Ks={matches:e=>e.type===xe,create:(e,t,r,n)=>({component:Hs,props:{formKey:e.uniqueKey,label:n.label,placeholder:n.placeholder,accountMembershipCode:t.accountMembershipCode,onChange:n=>{r.updateFormState({accountMembershipCode:n,serverErrors:[]}),it(e,"zephr_form_input_change",{inputName:`zephr-form-account-code-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"account-code"})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:`zephr-form-account-code-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"account-code"}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:`zephr-form-account-code-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"account-code"})}})};function Ys(e){let t,r,n;return r=new Sa({props:{text:e[4]}}),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class","zephr-form-invitation-success-message svelte-yy7ok3")},m(e,o){y(e,t,o),se(r,t,null),n=!0},p(e,t){const n={};16&t&&(n.text=e[4]),r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&g(t),ce(r)}}}function Ws(e){let t,r,n,o,a,i,s,c,l,u,p,d,m,f,b,A;c=new er({props:{forInput:e[14],label:e[2],isPaymentForm:e[11]}}),d=new Jt({props:{disabled:e[10],required:!0,id:e[14],value:e[7]??"",errorMessage:e[9],isPaymentForm:e[11],onFocus:e[12],onBlur:e[13]}}),d.$on("change",e[16]),f=new Rt({props:{disabled:!Gr(e[7])||e[10],text:e[3],onClick:e[5],noMargin:!0,inputHeight:!0,aside:!0,isPaymentForm:e[11]}});let C=e[8]&&Ys(e);return{c(){t=P("div"),r=P("div"),n=S(e[0]),o=E(),a=P("div"),i=S(e[1]),s=E(),ie(c.$$.fragment),l=E(),u=P("div"),p=P("div"),ie(d.$$.fragment),m=E(),ie(f.$$.fragment),b=E(),C&&C.c(),_(r,"class","zephr-form-invitation-title svelte-yy7ok3"),_(a,"class","zephr-form-invitation-description"),_(p,"class","zephr-form-invitation-input-container svelte-yy7ok3"),_(u,"class","zephr-form-relative-container zephr-form-invitation-email svelte-yy7ok3"),N(u,"zephr-payment-form-relative-container",e[11]),_(t,"class","zephr-form-invitation-container svelte-yy7ok3")},m(e,g){y(e,t,g),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),h(t,s),se(c,t,null),h(t,l),h(t,u),h(u,p),se(d,p,null),h(u,m),se(f,u,null),h(t,b),C&&C.m(t,null),A=!0},p(e,[r]){(!A||1&r)&&I(n,e[0]),(!A||2&r)&&I(i,e[1]);const o={};4&r&&(o.label=e[2]),2048&r&&(o.isPaymentForm=e[11]),c.$set(o);const a={};1024&r&&(a.disabled=e[10]),128&r&&(a.value=e[7]??""),512&r&&(a.errorMessage=e[9]),2048&r&&(a.isPaymentForm=e[11]),4096&r&&(a.onFocus=e[12]),8192&r&&(a.onBlur=e[13]),d.$set(a);const s={};1152&r&&(s.disabled=!Gr(e[7])||e[10]),8&r&&(s.text=e[3]),32&r&&(s.onClick=e[5]),2048&r&&(s.isPaymentForm=e[11]),f.$set(s),(!A||2048&r)&&N(u,"zephr-payment-form-relative-container",e[11]),e[8]?C?(C.p(e,r),256&r&&te(C,1)):(C=Ys(e),C.c(),te(C,1),C.m(t,null)):C&&(X(),re(C,1,1,(()=>{C=null})),ee())},i(e){A||(te(c.$$.fragment,e),te(d.$$.fragment,e),te(f.$$.fragment,e),te(C),A=!0)},o(e){re(c.$$.fragment,e),re(d.$$.fragment,e),re(f.$$.fragment,e),re(C),A=!1},d(e){e&&g(t),ce(c),ce(d),ce(f),C&&C.d()}}}function Js(e,t,r){let{formKey:n}=t,{title:o}=t,{description:a}=t,{label:i}=t,{btnText:s}=t,{linkSentText:c}=t,{onSendInviteClick:l}=t,{onChange:u}=t,{invitationEmail:p}=t,{invitationSent:d}=t,{error:m=null}=t,{isBusy:f}=t,{isPaymentForm:h=!1}=t,{onFocus:y}=t,{onBlur:g}=t;const b=`zephr-form-invitation-email-${n}`;return e.$$set=e=>{"formKey"in e&&r(15,n=e.formKey),"title"in e&&r(0,o=e.title),"description"in e&&r(1,a=e.description),"label"in e&&r(2,i=e.label),"btnText"in e&&r(3,s=e.btnText),"linkSentText"in e&&r(4,c=e.linkSentText),"onSendInviteClick"in e&&r(5,l=e.onSendInviteClick),"onChange"in e&&r(6,u=e.onChange),"invitationEmail"in e&&r(7,p=e.invitationEmail),"invitationSent"in e&&r(8,d=e.invitationSent),"error"in e&&r(9,m=e.error),"isBusy"in e&&r(10,f=e.isBusy),"isPaymentForm"in e&&r(11,h=e.isPaymentForm),"onFocus"in e&&r(12,y=e.onFocus),"onBlur"in e&&r(13,g=e.onBlur)},[o,a,i,s,c,l,u,p,d,m,f,h,y,g,b,n,({detail:e})=>u(e)]}class Qs extends pe{constructor(e){super(),ue(this,e,Js,Ws,i,{formKey:15,title:0,description:1,label:2,btnText:3,linkSentText:4,onSendInviteClick:5,onChange:6,invitationEmail:7,invitationSent:8,error:9,isBusy:10,isPaymentForm:11,onFocus:12,onBlur:13})}}const Zs=async(e,t,r)=>{let n;n=t.userExists?await(e=>gn("blaize/profile",{method:"GET"},e).then((e=>e.json())))(r):t.userAttributes;const o=((e,t)=>(e??[]).reduce(((e,r)=>{const n=t[r.attrSlug];return{...e,[r.fieldName]:n}}),{}))(Ot(e).invitationMetadata.mapping,n),a=await gn("zephr/public/products/v1/shares/invitations/emails",{method:"POST",bodyObject:{product_id:t.paymentOption.productId,email_address:t.invitationEmail,base_url:Ot(e).invitationMetadata.url,meta_data:o}},r),i=await a.json();if(a.ok)r.updateFormState({invitationSent:!0,invitationEmail:""}),setTimeout((()=>{r.updateFormState({invitationSent:!1})}),3e3);else{const t=(s=i,403===s?.status&&s?.message?.includes("you do not have access to")?tt.INVITATION_FAILED_NO_PRODUCT_ACCESS:400===s?.status&&s?.message?.includes("Invalid recipient email")?tt.INVITATION_FAILED_INVALID_EMAIL:400===s?.status&&s?.message?.includes("reached the configured limit")?tt.INVITATION_FAILED_LIMIT_REACHED:409===s?.status?tt.INVITATION_FAILED_DUPLICATE_EMAIL:tt.INVITATION_FAILED_UNKNOWN);it(e,"zephr_form_error",{error:tt[t]}),r.updateFormState({invitationSent:!1,serverErrors:[t]})}var s},Xs={matches:e=>e.type===Fe,create:(e,t,r,n)=>t.paymentOption?.product_sharing_limit>0?{component:Qs,props:{formKey:e.uniqueKey,title:n.title,description:n.description,label:n.label,btnText:n.btnText,linkSentText:n.linkSentText,onSendInviteClick:()=>{it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),Zs(e,t,r)},onChange:n=>{r.updateFormState({invitationEmail:n,serverErrors:[]}),it(e,"zephr_form_input_change",{inputName:`zephr-form-invitation-email-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"invitation-email"})},onFocus:()=>it(e,"zephr_form_input_focus",{inputName:`zephr-form-invitation-email-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"invitation-email"}),onBlur:()=>it(e,"zephr_form_input_blur",{inputName:`zephr-form-invitation-email-${e.uniqueKey}`,sectionId:t.currentSection.type,field:"invitation-email"}),invitationEmail:t.invitationEmail,invitationSent:t.invitationSent,isBusy:t.isBusy,isPaymentForm:e.formType===vt.PAYMENT}}:{component:null,props:{}}};class ec extends pe{constructor(e){super(),ue(this,e,null,null,i,{})}}const tc={matches:e=>e.type===Ce,create:(e,t,r)=>{const n=pa(e.organisationConfiguration.paymentProvider);if(null==n.preLoaderComponent)return{component:ec,props:{}};return{component:n.preLoaderComponent(Ot(e).paymentProviderFormConfig),props:{onMountCallback:()=>n.preLoader()}}}};function rc(t){let r;return{c(){r=P("div")},m(e,n){y(e,r,n),r.innerHTML=t[0]},p(e,[t]){1&t&&(r.innerHTML=e[0])},i:e,o:e,d(e){e&&g(r)}}}function nc(e,t,r){let{html:n}=t;return e.$$set=e=>{"html"in e&&r(0,n=e.html)},[n]}class oc extends pe{constructor(e){super(),ue(this,e,nc,rc,i,{html:0})}}const ac=()=>(Math.random()+1).toString(36).substring(7),ic=ac(),sc=e=>e.dynamicOfferResult?Object.entries({tagline:e.dynamicOfferResult.tagline,...e.dynamicOfferResult.custom??{}}).reduce(((e,[t,r])=>(t&&null!=r&&(e[t]=r),e)),{}):{},cc=(e,t)=>(e.templateVariables??[]).reduce(((e,r)=>null==r.defaultValue||r.paymentOptionLevel!=t?e:{...e,[r.key]:r.defaultValue}),{}),lc=e=>{window.Zephr||(window.Zephr={}),window.Zephr.forms||(window.Zephr.forms={}),window.Zephr.forms[e.formInstanceId]=e},uc=(e,t,r,n,o,a)=>{if(!o)return{scope:{},actions:{}};try{const i=new Function("state","form","scope",o),s=(t.customComponentState??{})[r.id??"_"];return i(t.dynamicOfferResult?{...s??{},dynamicOfferResult:Ro(t.dynamicOfferResult,e,t)}:s,n,a)}catch(e){return console.error("Error evaluating pre-render script",e),{scope:{error:e},actions:{}}}},pc=(e,t,r)=>n=>{t.updateFormState({customComponentState:{...e.customComponentState??{},[r]:{...(e.customComponentState??{})[r]??{},...n??{}}}})},dc=(e,t,r,n)=>(o,a)=>{let i;if(n){const e=r.dynamicOfferResult.products.find((e=>e.id===o)),t=e?.paymentPlans.find((e=>e.planId===a));i={slug:t.planId,productId:e.id,label:e.label,currencyCode:t.charges[0].prices[0].currency}}else i=Ot(e).paymentOptions?.find((e=>e.productId===o&&e.slug===a));i?(t.updateFormState({paymentOption:i,serverErrors:[],billingAddress:{country:null,postalCode:null}}),t.completeSection()):console.warn(`No payment option exists for ${o} ${a}.`)},mc=(e,t,r,n,o)=>{const a=!!Ot(e).dynamicOffer?.id,i=(Ot(e).paymentOptions??[]).map(((e,t)=>({slug:e.slug,productId:e.productId,label:e.label,price:e.price,currencyCode:e.currencyCode,formattedPrice:Mn(e.price,e.currencyCode),index:t,...cc(o,!0),...e.templateValues??{}})));return{formId:e.id,formInstanceId:ic,paymentOptions:i,ref:`window.Zephr.forms['${ic}']`,setState:pc(t,r,n.id??"_"),getState:()=>r.getFormState(),selectPaymentOption:dc(e,r,t,a)}},fc={matches:e=>e.type===ze,create:(e,t,r,n)=>{const o=((e,t,r,n)=>{const o=(e.resolvedComponentTemplates??[]).find((e=>e.id===n.templateId));if(!o)return console.warn(`No component template found for id '${n.templateId}'`),"";const a=mc(e,t,r,n,o),i={...cc(o,!1),...n.templateValues??{},...sc(t),zephrForm:a,zephrOutcomeId:e.outcomeId,zephrRuleId:e.ruleId},s=uc(e,t,n,a,o.preRenderScript,i),c={...i,...s.scope??{}};a.actions=s.actions??{},lc(a);try{return ao.render(`\n ${o.css?`<style>${o.css}</style>`:""}\n ${o.html??""}\n `,c)}catch(e){return console.error("Error rendering mustache template",e),""}})(e,t,r,n);return{component:oc,props:{html:o}}}};function hc(e){let t,r,n,o=e[0].planLabel+"";return{c(){t=P("div"),r=P("h3"),n=S(o),_(t,"class","plan-label")},m(e,o){y(e,t,o),h(t,r),h(r,n)},p(e,t){1&t&&o!==(o=e[0].planLabel+"")&&I(n,o)},d(e){e&&g(t)}}}function yc(e){let t,r,n,o,a,i,s,c,l=e[0].amount+"";return{c(){t=P("hr"),r=E(),n=P("div"),o=P("div"),a=S(e[2]),i=E(),s=P("div"),c=S(l),_(t,"class","svelte-1ecrab7"),_(o,"class","info-label svelte-1ecrab7"),_(s,"class","info svelte-1ecrab7"),_(n,"class","info-row svelte-1ecrab7")},m(e,l){y(e,t,l),y(e,r,l),y(e,n,l),h(n,o),h(o,a),h(n,i),h(n,s),h(s,c)},p(e,t){4&t&&I(a,e[2]),1&t&&l!==(l=e[0].amount+"")&&I(c,l)},d(e){e&&(g(t),g(r),g(n))}}}function gc(e){let t,r,n,o,a,i,s,c,l=e[0].nextBillingTime+"";return{c(){t=P("hr"),r=E(),n=P("div"),o=P("div"),a=S(e[3]),i=E(),s=P("div"),c=S(l),_(t,"class","svelte-1ecrab7"),_(o,"class","info-label svelte-1ecrab7"),_(s,"class","info svelte-1ecrab7"),_(n,"class","info-row svelte-1ecrab7")},m(e,l){y(e,t,l),y(e,r,l),y(e,n,l),h(n,o),h(o,a),h(n,i),h(n,s),h(s,c)},p(e,t){8&t&&I(a,e[3]),1&t&&l!==(l=e[0].nextBillingTime+"")&&I(c,l)},d(e){e&&(g(t),g(r),g(n))}}}function bc(e){let t;return{c(){t=P("div"),_(t,"class","change-disabled-label svelte-1ecrab7")},m(r,n){y(r,t,n),t.innerHTML=e[4]},p(e,r){16&r&&(t.innerHTML=e[4])},d(e){e&&g(t)}}}function Pc(e){let t,r,n,o,i,s,c,l,u,p,d,m,f,b,A,C,O=e[0].productLabel+"",w=e[0].planLabel&&hc(e),R=e[0].amount&&e[2]&&yc(e),$=e[0].nextBillingTime&&e[3]&&gc(e);d=new Rt({props:{disabled:e[0].cannotBeChanged,text:e[1]??"Select",onClick:e[5]}});let M=e[0].cannotBeChanged&&bc(e);return{c(){t=P("div"),r=P("div"),n=P("div"),o=P("div"),i=P("h2"),s=S(O),c=E(),w&&w.c(),l=E(),R&&R.c(),u=E(),$&&$.c(),p=E(),ie(d.$$.fragment),m=E(),M&&M.c(),_(o,"class","subscription-option-product-label"),_(n,"class","inner-box svelte-1ecrab7"),_(r,"class","subscription-option-box"),_(r,"aria-hidden","true"),_(r,"style",f=e[0].cannotBeChanged?"":"cursor: pointer;"),_(t,"class","subscription-option-wrapper svelte-1ecrab7")},m(f,g){var P;y(f,t,g),h(t,r),h(r,n),h(n,o),h(o,i),h(i,s),h(n,c),w&&w.m(n,null),h(n,l),R&&R.m(n,null),h(n,u),$&&$.m(n,null),h(n,p),se(d,n,null),h(n,m),M&&M.m(n,null),b=!0,A||(C=v(r,"click",(P=T((function(){a(e[5])&&e[5].apply(this,arguments)})),function(e){e.target===this&&P.call(this,e)})),A=!0)},p(t,[o]){e=t,(!b||1&o)&&O!==(O=e[0].productLabel+"")&&I(s,O),e[0].planLabel?w?w.p(e,o):(w=hc(e),w.c(),w.m(n,l)):w&&(w.d(1),w=null),e[0].amount&&e[2]?R?R.p(e,o):(R=yc(e),R.c(),R.m(n,u)):R&&(R.d(1),R=null),e[0].nextBillingTime&&e[3]?$?$.p(e,o):($=gc(e),$.c(),$.m(n,p)):$&&($.d(1),$=null);const a={};1&o&&(a.disabled=e[0].cannotBeChanged),2&o&&(a.text=e[1]??"Select"),32&o&&(a.onClick=e[5]),d.$set(a),e[0].cannotBeChanged?M?M.p(e,o):(M=bc(e),M.c(),M.m(n,null)):M&&(M.d(1),M=null),(!b||1&o&&f!==(f=e[0].cannotBeChanged?"":"cursor: pointer;"))&&_(r,"style",f)},i(e){b||(te(d.$$.fragment,e),b=!0)},o(e){re(d.$$.fragment,e),b=!1},d(e){e&&g(t),w&&w.d(),R&&R.d(),$&&$.d(),ce(d),M&&M.d(),A=!1,C()}}}function Ac(e,t,r){let{subscription:n}=t,{selectButtonText:o}=t,{amountLabel:a}=t,{nextBillingDateLabel:i}=t,{noChangePlanMappingMessage:s}=t,{onSelect:c}=t;return e.$$set=e=>{"subscription"in e&&r(0,n=e.subscription),"selectButtonText"in e&&r(1,o=e.selectButtonText),"amountLabel"in e&&r(2,a=e.amountLabel),"nextBillingDateLabel"in e&&r(3,i=e.nextBillingDateLabel),"noChangePlanMappingMessage"in e&&r(4,s=e.noChangePlanMappingMessage),"onSelect"in e&&r(5,c=e.onSelect)},[n,o,a,i,s,c]}class Sc extends pe{constructor(e){super(),ue(this,e,Ac,Pc,i,{subscription:0,selectButtonText:1,amountLabel:2,nextBillingDateLabel:3,noChangePlanMappingMessage:4,onSelect:5})}}function Ec(e,t,r){const n=e.slice();return n[8]=t[r],n}function Cc(e){let t,r;return t=new on({}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function vc(e){let t;return{c(){t=P("div")},m(r,n){y(r,t,n),t.innerHTML=e[0]},p(e,r){1&r&&(t.innerHTML=e[0])},d(e){e&&g(t)}}}function Tc(e){let t,r;function n(){return e[7](e[8])}return t=new Sc({props:{subscription:e[8],selectButtonText:e[5],noChangePlanMappingMessage:e[1],amountLabel:e[3],nextBillingDateLabel:e[4],onSelect:n}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,o){e=r;const a={};4&o&&(a.subscription=e[8]),32&o&&(a.selectButtonText=e[5]),2&o&&(a.noChangePlanMappingMessage=e[1]),8&o&&(a.amountLabel=e[3]),16&o&&(a.nextBillingDateLabel=e[4]),68&o&&(a.onSelect=n),t.$set(a)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function _c(e){let t,r,n,o,a=null==e[2]&&Cc(),i=null!=e[2]&&!e[2].length&&vc(e),s=ne(e[2]??[]),c=[];for(let t=0;t<s.length;t+=1)c[t]=Tc(Ec(e,s,t));const l=e=>re(c[e],1,1,(()=>{c[e]=null}));return{c(){t=P("div"),a&&a.c(),r=E(),i&&i.c(),n=E();for(let e=0;e<c.length;e+=1)c[e].c();_(t,"class","subscription-options-container svelte-1nzbr4y")},m(e,s){y(e,t,s),a&&a.m(t,null),h(t,r),i&&i.m(t,null),h(t,n);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);o=!0},p(e,[o]){if(null==e[2]?a?4&o&&te(a,1):(a=Cc(),a.c(),te(a,1),a.m(t,r)):a&&(X(),re(a,1,1,(()=>{a=null})),ee()),null==e[2]||e[2].length?i&&(i.d(1),i=null):i?i.p(e,o):(i=vc(e),i.c(),i.m(t,n)),126&o){let r;for(s=ne(e[2]??[]),r=0;r<s.length;r+=1){const n=Ec(e,s,r);c[r]?(c[r].p(n,o),te(c[r],1)):(c[r]=Tc(n),c[r].c(),te(c[r],1),c[r].m(t,null))}for(X(),r=s.length;r<c.length;r+=1)l(r);ee()}},i(e){if(!o){te(a);for(let e=0;e<s.length;e+=1)te(c[e]);o=!0}},o(e){re(a),c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)re(c[e]);o=!1},d(e){e&&g(t),a&&a.d(),i&&i.d(),b(c,e)}}}function Oc(e,t,r){let{noSubscriptionsMessage:n}=t,{noChangePlanMappingMessage:o}=t,{subscriptions:a}=t,{amountLabel:i}=t,{nextBillingDateLabel:s}=t,{selectButtonText:c}=t,{onSelect:l}=t;return e.$$set=e=>{"noSubscriptionsMessage"in e&&r(0,n=e.noSubscriptionsMessage),"noChangePlanMappingMessage"in e&&r(1,o=e.noChangePlanMappingMessage),"subscriptions"in e&&r(2,a=e.subscriptions),"amountLabel"in e&&r(3,i=e.amountLabel),"nextBillingDateLabel"in e&&r(4,s=e.nextBillingDateLabel),"selectButtonText"in e&&r(5,c=e.selectButtonText),"onSelect"in e&&r(6,l=e.onSelect)},[n,o,a,i,s,c,l,e=>l(e)]}class wc extends pe{constructor(e){super(),ue(this,e,Oc,_c,i,{noSubscriptionsMessage:0,noChangePlanMappingMessage:1,subscriptions:2,amountLabel:3,nextBillingDateLabel:4,selectButtonText:5,onSelect:6})}}const Ic={matches:e=>e.type===ke,create:(e,t,r,n)=>({component:wc,props:{noSubscriptionsMessage:n.noSubscriptionsMessage,selectButtonText:n.selectButtonText,noChangePlanMappingMessage:n.noChangePlanMappingMessage,amountLabel:n.amountLabel,nextBillingDateLabel:n.nextBillingDateLabel,subscriptions:t.existingSubscriptions?t.existingSubscriptions.filter((e=>"inactive"!==e.status)):null,onSelect:n=>{r.updateFormState({selectedSubscription:n}),it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.completeSection()}}})};function Rc(e){let t,r,n,o,a,i,s,c=e[4]&&$c(e);return{c(){t=P("div"),r=P("div"),n=S(e[3]),o=E(),c&&c.c(),a=E(),i=P("hr"),_(r,"class","information"),_(t,"class","section"),_(i,"class","svelte-1wg9q7")},m(e,l){y(e,t,l),h(t,r),h(r,n),h(r,o),c&&c.m(r,null),y(e,a,l),y(e,i,l),s=!0},p(e,t){(!s||8&t)&&I(n,e[3]),e[4]?c?(c.p(e,t),16&t&&te(c,1)):(c=$c(e),c.c(),te(c,1),c.m(r,null)):c&&(X(),re(c,1,1,(()=>{c=null})),ee())},i(e){s||(te(c),s=!0)},o(e){re(c),s=!1},d(e){e&&(g(t),g(a),g(i)),c&&c.d()}}}function $c(e){let t,r;return t=new Si({props:{text:e[4]}}),t.$on("linkClick",e[7]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};16&r&&(n.text=e[4]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Mc(e){let t,r,n,o,a,i,s,c,l=e[0].nextBillingTime+"";return{c(){t=P("div"),r=P("h3"),n=S(e[1]),o=E(),a=P("div"),i=S(l),s=E(),c=P("hr"),_(r,"class","svelte-1wg9q7"),_(a,"class","information"),_(t,"class","section"),_(c,"class","svelte-1wg9q7")},m(e,l){y(e,t,l),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),y(e,s,l),y(e,c,l)},p(e,t){2&t&&I(n,e[1]),1&t&&l!==(l=e[0].nextBillingTime+"")&&I(i,l)},d(e){e&&(g(t),g(s),g(c))}}}function Nc(e){let t,r,n,o,a,i,s,c,l=e[0].amount+"";return{c(){t=P("div"),r=P("h3"),n=S(e[2]),o=E(),a=P("div"),i=S(l),s=E(),c=P("hr"),_(r,"class","svelte-1wg9q7"),_(a,"class","information"),_(t,"class","section"),_(c,"class","svelte-1wg9q7")},m(e,l){y(e,t,l),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),y(e,s,l),y(e,c,l)},p(e,t){4&t&&I(n,e[2]),1&t&&l!==(l=e[0].amount+"")&&I(i,l)},d(e){e&&(g(t),g(s),g(c))}}}function xc(e){let t,r,n,o,a,i,s,c,l,u,p,d,m=e[0].productLabel+"",b=e[6]&&Rc(e),A="active"===e[0].status&&e[0].nextBillingTime&&Mc(e),C=e[0].amount&&Nc(e);return{c(){t=P("div"),r=P("div"),n=P("div"),o=P("h2"),a=S(m),s=E(),c=P("hr"),l=E(),b&&b.c(),u=E(),A&&A.c(),p=E(),C&&C.c(),_(o,"class",i=f("inactive"===e[0].status?"inactive":"")+" svelte-1wg9q7"),_(n,"class","section"),_(c,"class","svelte-1wg9q7"),_(r,"class","inner-box svelte-1wg9q7"),_(t,"class","subscription-list-item svelte-1wg9q7")},m(e,i){y(e,t,i),h(t,r),h(r,n),h(n,o),h(o,a),h(r,s),h(r,c),h(r,l),b&&b.m(r,null),h(r,u),A&&A.m(r,null),h(r,p),C&&C.m(r,null),d=!0},p(e,[t]){(!d||1&t)&&m!==(m=e[0].productLabel+"")&&I(a,m),(!d||1&t&&i!==(i=f("inactive"===e[0].status?"inactive":"")+" svelte-1wg9q7"))&&_(o,"class",i),e[6]?b?(b.p(e,t),64&t&&te(b,1)):(b=Rc(e),b.c(),te(b,1),b.m(r,u)):b&&(X(),re(b,1,1,(()=>{b=null})),ee()),"active"===e[0].status&&e[0].nextBillingTime?A?A.p(e,t):(A=Mc(e),A.c(),A.m(r,p)):A&&(A.d(1),A=null),e[0].amount?C?C.p(e,t):(C=Nc(e),C.c(),C.m(r,null)):C&&(C.d(1),C=null)},i(e){d||(te(b),d=!0)},o(e){re(b),d=!1},d(e){e&&g(t),b&&b.d(),A&&A.d(),C&&C.d()}}}function Lc(e,t,r){let{subscription:n}=t,{nextPaymentDateText:o}=t,{subscriptionRateText:a}=t,{billingHistoryText:i}=t,{billingHistoryLink:s}=t,{onViewHistory:c}=t,{showBillingHistory:l}=t;return e.$$set=e=>{"subscription"in e&&r(0,n=e.subscription),"nextPaymentDateText"in e&&r(1,o=e.nextPaymentDateText),"subscriptionRateText"in e&&r(2,a=e.subscriptionRateText),"billingHistoryText"in e&&r(3,i=e.billingHistoryText),"billingHistoryLink"in e&&r(4,s=e.billingHistoryLink),"onViewHistory"in e&&r(5,c=e.onViewHistory),"showBillingHistory"in e&&r(6,l=e.showBillingHistory)},[n,o,a,i,s,c,l,()=>c(n)]}class Fc extends pe{constructor(e){super(),ue(this,e,Lc,xc,i,{subscription:0,nextPaymentDateText:1,subscriptionRateText:2,billingHistoryText:3,billingHistoryLink:4,onViewHistory:5,showBillingHistory:6})}}function zc(t){let r,n,o,a,i,s,c,l,u;return{c(){r=P("a"),n=P("span"),o=S(t[0]),a=E(),i=A("svg"),s=A("path"),_(s,"fill","currentColor"),_(s,"d","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"),_(i,"aria-hidden","true"),_(i,"focusable","false"),_(i,"data-prefix","far"),_(i,"data-icon","chevron-right"),_(i,"class","svg-inline--fa fa-chevron-right sc-egTsrv kzAurc"),_(i,"role","img"),_(i,"xmlns","http://www.w3.org/2000/svg"),_(i,"viewBox","0 0 320 512"),_(i,"width","16"),_(i,"height","16"),_(r,"class","zephr-form-tablink svelte-ky9lgg"),_(r,"href",c=!t[1]||window.Zephr&&window.Zephr.isCustomPage&&t[1].startsWith(window.Zephr.customPagePath)?"javascript: void(0)":t[1])},m(e,c){y(e,r,c),h(r,n),h(n,o),h(r,a),h(r,i),h(i,s),l||(u=v(r,"click",t[4]),l=!0)},p(e,[t]){1&t&&I(o,e[0]),2&t&&c!==(c=!e[1]||window.Zephr&&window.Zephr.isCustomPage&&e[1].startsWith(window.Zephr.customPagePath)?"javascript: void(0)":e[1])&&_(r,"href",c)},i:e,o:e,d(e){e&&g(r),l=!1,u()}}}function kc(e,t,r){let{text:n}=t,{path:o=""}=t,{onClick:a=(()=>{})}=t,{logDlEvent:i=(()=>{})}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"path"in e&&r(1,o=e.path),"onClick"in e&&r(2,a=e.onClick),"logDlEvent"in e&&r(3,i=e.logDlEvent)},[n,o,a,i,()=>{i?.(),window.Zephr&&window.Zephr.isCustomPage&&o.startsWith(window.Zephr.customPagePath)?window.history.pushState({},"",o):a()}]}class Dc extends pe{constructor(e){super(),ue(this,e,kc,zc,i,{text:0,path:1,onClick:2,logDlEvent:3})}}function Bc(e,t,r){const n=e.slice();return n[20]=t[r],n[22]=r,n}function Uc(e){let t,r,n=ne(e[13]),o=[];for(let t=0;t<n.length;t+=1)o[t]=el(Bc(e,n,t));const a=e=>re(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=C()},m(e,n){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,n);y(e,t,n),r=!0},p(e,r){if(32767&r){let i;for(n=ne(e[13]),i=0;i<n.length;i+=1){const a=Bc(e,n,i);o[i]?(o[i].p(a,r),te(o[i],1)):(o[i]=el(a),o[i].c(),te(o[i],1),o[i].m(t.parentNode,t))}for(X(),i=n.length;i<o.length;i+=1)a(i);ee()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)te(o[e]);r=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)re(o[e]);r=!1},d(e){e&&g(t),b(o,e)}}}function Vc(t){let r,n=t[0].amount&&tl(t);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),y(e,r,t)},p(e,t){e[0].amount?n?n.p(e,t):(n=tl(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&g(r),n&&n.d(e)}}}function Gc(e){let t,r,n=e[0].amount&&jc(e),o="active"===e[0].status&&e[0].nextBillingTime&&qc(e);return{c(){n&&n.c(),t=E(),o&&o.c(),r=C()},m(e,a){n&&n.m(e,a),y(e,t,a),o&&o.m(e,a),y(e,r,a)},p(e,a){e[0].amount?n?n.p(e,a):(n=jc(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),"active"===e[0].status&&e[0].nextBillingTime?o?o.p(e,a):(o=qc(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){e&&(g(t),g(r)),n&&n.d(e),o&&o.d(e)}}}function jc(e){let t,r,n,o,a,i,s=e[0].amount+"";return{c(){t=P("div"),r=P("span"),n=S(e[2]),o=E(),a=P("div"),i=S(s),_(r,"class","svelte-h57nmp"),_(a,"class","zephr-box-item-information svelte-h57nmp"),_(t,"class","zephr-section svelte-h57nmp")},m(e,s){y(e,t,s),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i)},p(e,t){4&t&&I(n,e[2]),1&t&&s!==(s=e[0].amount+"")&&I(i,s)},d(e){e&&g(t)}}}function qc(e){let t,r,n,o,a,i,s=e[0].nextBillingTime+"";return{c(){t=P("div"),r=P("span"),n=S(e[1]),o=E(),a=P("div"),i=S(s),_(r,"class","svelte-h57nmp"),_(a,"class","zephr-box-item-information svelte-h57nmp"),_(t,"class","zephr-section svelte-h57nmp")},m(e,s){y(e,t,s),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i)},p(e,t){2&t&&I(n,e[1]),1&t&&s!==(s=e[0].nextBillingTime+"")&&I(i,s)},d(e){e&&g(t)}}}function Hc(e){let t,r,n=e[3]&&Kc(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,r){e[3]?n?(n.p(e,r),8&r&&te(n,1)):(n=Kc(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Kc(e){let t,r;return t=new Dc({props:{text:e[3],onClick:e[16]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};8&r&&(n.text=e[3]),17&r&&(n.onClick=e[16]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Yc(e){let t,r,n=e[8]&&Wc(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,r){e[8]?n?(n.p(e,r),256&r&&te(n,1)):(n=Wc(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Wc(e){let t,r;return t=new Dc({props:{text:e[8],onClick:e[17]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.text=e[8]),33&r&&(n.onClick=e[17]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Jc(e){let t,r,n=e[9]&&Qc(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,r){e[9]?n?(n.p(e,r),512&r&&te(n,1)):(n=Qc(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Qc(e){let t,r;return t=new Dc({props:{text:e[9],path:`${e[11]}?subscription=${e[0].externalId}`,logDlEvent:e[18]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};512&r&&(n.text=e[9]),2049&r&&(n.path=`${e[11]}?subscription=${e[0].externalId}`),65&r&&(n.logDlEvent=e[18]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Zc(e){let t,r,n=e[10]&&Xc(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,r){e[10]?n?(n.p(e,r),1024&r&&te(n,1)):(n=Xc(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Xc(e){let t,r;return t=new Dc({props:{text:e[10],path:`${e[12]}?subscription=${e[0].externalId}`,logDlEvent:e[19]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1024&r&&(n.text=e[10]),4097&r&&(n.path=`${e[12]}?subscription=${e[0].externalId}`),129&r&&(n.logDlEvent=e[19]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function el(e){let t,r,n,o,a,i,s="subscription_information"===e[20]&&!e[14].subscriptionInformation&&Gc(e),c="billing_history"===e[20]&&!e[14].billingHistory&&Hc(e),l="change_payment"===e[20]&&!e[14].changePayment&&Yc(e),u="change_subscription"===e[20]&&!e[14].changeSubscription&&Jc(e),p="cancel_subscription"===e[20]&&!e[14].cancelSubscription&&Zc(e);return{c(){s&&s.c(),t=E(),c&&c.c(),r=E(),l&&l.c(),n=E(),u&&u.c(),o=E(),p&&p.c(),a=C()},m(e,d){s&&s.m(e,d),y(e,t,d),c&&c.m(e,d),y(e,r,d),l&&l.m(e,d),y(e,n,d),u&&u.m(e,d),y(e,o,d),p&&p.m(e,d),y(e,a,d),i=!0},p(e,i){"subscription_information"!==e[20]||e[14].subscriptionInformation?s&&(s.d(1),s=null):s?s.p(e,i):(s=Gc(e),s.c(),s.m(t.parentNode,t)),"billing_history"!==e[20]||e[14].billingHistory?c&&(X(),re(c,1,1,(()=>{c=null})),ee()):c?(c.p(e,i),24576&i&&te(c,1)):(c=Hc(e),c.c(),te(c,1),c.m(r.parentNode,r)),"change_payment"!==e[20]||e[14].changePayment?l&&(X(),re(l,1,1,(()=>{l=null})),ee()):l?(l.p(e,i),24576&i&&te(l,1)):(l=Yc(e),l.c(),te(l,1),l.m(n.parentNode,n)),"change_subscription"!==e[20]||e[14].changeSubscription?u&&(X(),re(u,1,1,(()=>{u=null})),ee()):u?(u.p(e,i),24576&i&&te(u,1)):(u=Jc(e),u.c(),te(u,1),u.m(o.parentNode,o)),"cancel_subscription"!==e[20]||e[14].cancelSubscription?p&&(X(),re(p,1,1,(()=>{p=null})),ee()):p?(p.p(e,i),24576&i&&te(p,1)):(p=Zc(e),p.c(),te(p,1),p.m(a.parentNode,a))},i(e){i||(te(c),te(l),te(u),te(p),i=!0)},o(e){re(c),re(l),re(u),re(p),i=!1},d(e){e&&(g(t),g(r),g(n),g(o),g(a)),s&&s.d(e),c&&c.d(e),l&&l.d(e),u&&u.d(e),p&&p.d(e)}}}function tl(e){let t,r,n,o,a,i,s=e[0].amount+"";return{c(){t=P("div"),r=P("span"),n=S(e[2]),o=E(),a=P("div"),i=S(s),_(r,"class","svelte-h57nmp"),_(a,"class","zephr-box-item-information svelte-h57nmp"),_(t,"class","zephr-section svelte-h57nmp")},m(e,s){y(e,t,s),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i)},p(e,t){4&t&&I(n,e[2]),1&t&&s!==(s=e[0].amount+"")&&I(i,s)},d(e){e&&g(t)}}}function rl(e){let t,r,n,o,a,i,s,c,l,u=e[0].productLabel+"";const p=[Vc,Uc],d=[];function m(e,t){return e[15]?0:1}return s=m(e),c=d[s]=p[s](e),{c(){t=P("div"),r=P("div"),n=P("div"),o=P("h2"),a=S(u),i=E(),c.c(),_(o,"class","svelte-h57nmp"),_(n,"class","zephr-section svelte-h57nmp"),_(r,"class","zephr-inner-box svelte-h57nmp"),_(t,"class","zephr-subscription-list-box-item svelte-h57nmp")},m(e,c){y(e,t,c),h(t,r),h(r,n),h(n,o),h(o,a),h(r,i),d[s].m(r,null),l=!0},p(e,[t]){(!l||1&t)&&u!==(u=e[0].productLabel+"")&&I(a,u);let n=s;s=m(e),s===n?d[s].p(e,t):(X(),re(d[n],1,1,(()=>{d[n]=null})),ee(),c=d[s],c?c.p(e,t):(c=d[s]=p[s](e),c.c()),te(c,1),c.m(r,null))},i(e){l||(te(c),l=!0)},o(e){re(c),l=!1},d(e){e&&g(t),d[s].d()}}}function nl(e,t,r){let{subscription:n}=t,{nextPaymentDateText:o}=t,{subscriptionRateText:a}=t,{billingHistoryLink:i}=t,{onViewHistory:s}=t,{onChangePayment:c}=t,{logChangeSubscription:l}=t,{logCancelSubscription:u}=t,{changePaymentMethodText:p}=t,{changeSubscriptionText:d}=t,{cancelSubscriptionText:m}=t,{changeSubscriptionPath:f}=t,{cancelSubscriptionPath:h}=t,{elementsOrder:y}=t,{elementsHide:g}=t,{isInactive:b=!1}=t;return e.$$set=e=>{"subscription"in e&&r(0,n=e.subscription),"nextPaymentDateText"in e&&r(1,o=e.nextPaymentDateText),"subscriptionRateText"in e&&r(2,a=e.subscriptionRateText),"billingHistoryLink"in e&&r(3,i=e.billingHistoryLink),"onViewHistory"in e&&r(4,s=e.onViewHistory),"onChangePayment"in e&&r(5,c=e.onChangePayment),"logChangeSubscription"in e&&r(6,l=e.logChangeSubscription),"logCancelSubscription"in e&&r(7,u=e.logCancelSubscription),"changePaymentMethodText"in e&&r(8,p=e.changePaymentMethodText),"changeSubscriptionText"in e&&r(9,d=e.changeSubscriptionText),"cancelSubscriptionText"in e&&r(10,m=e.cancelSubscriptionText),"changeSubscriptionPath"in e&&r(11,f=e.changeSubscriptionPath),"cancelSubscriptionPath"in e&&r(12,h=e.cancelSubscriptionPath),"elementsOrder"in e&&r(13,y=e.elementsOrder),"elementsHide"in e&&r(14,g=e.elementsHide),"isInactive"in e&&r(15,b=e.isInactive)},[n,o,a,i,s,c,l,u,p,d,m,f,h,y,g,b,()=>s(n),()=>c(n),()=>l(n),()=>u(n)]}class ol extends pe{constructor(e){super(),ue(this,e,nl,rl,i,{subscription:0,nextPaymentDateText:1,subscriptionRateText:2,billingHistoryLink:3,onViewHistory:4,onChangePayment:5,logChangeSubscription:6,logCancelSubscription:7,changePaymentMethodText:8,changeSubscriptionText:9,cancelSubscriptionText:10,changeSubscriptionPath:11,cancelSubscriptionPath:12,elementsOrder:13,elementsHide:14,isInactive:15})}}function al(e,t,r){const n=e.slice();return n[22]=t[r],n}function il(e,t,r){const n=e.slice();return n[22]=t[r],n}function sl(e){let t,r;return t=new on({}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function cl(e){let t,r,n,o=!e[10]&&!e[6].length&&ll(e),a=ne(e[6]),i=[];for(let t=0;t<a.length;t+=1)i[t]=ml(il(e,a,t));const s=e=>re(i[e],1,1,(()=>{i[e]=null}));return{c(){o&&o.c(),t=E();for(let e=0;e<i.length;e+=1)i[e].c();r=C()},m(e,a){o&&o.m(e,a),y(e,t,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,a);y(e,r,a),n=!0},p(e,n){if(e[10]||e[6].length?o&&(o.d(1),o=null):o?o.p(e,n):(o=ll(e),o.c(),o.m(t.parentNode,t)),2095996&n){let t;for(a=ne(e[6]),t=0;t<a.length;t+=1){const o=il(e,a,t);i[t]?(i[t].p(o,n),te(i[t],1)):(i[t]=ml(o),i[t].c(),te(i[t],1),i[t].m(r.parentNode,r))}for(X(),t=a.length;t<i.length;t+=1)s(t);ee()}},i(e){if(!n){for(let e=0;e<a.length;e+=1)te(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)re(i[e]);n=!1},d(e){e&&(g(t),g(r)),o&&o.d(e),b(i,e)}}}function ll(e){let t;return{c(){t=P("div")},m(r,n){y(r,t,n),t.innerHTML=e[1]},p(e,r){2&r&&(t.innerHTML=e[1])},d(e){e&&g(t)}}}function ul(e){let t,r,n,o;t=new Fc({props:{subscription:e[22],nextPaymentDateText:e[4],subscriptionRateText:e[5],billingHistoryText:e[2],billingHistoryLink:e[3],onViewHistory:e[14],showBillingHistory:"zuora-billing"!==e[8]}});let a="zuora-billing"!==e[8]&&"active"===e[22].status&&dl(e);return{c(){ie(t.$$.fragment),r=E(),a&&a.c(),n=C()},m(e,i){se(t,e,i),y(e,r,i),a&&a.m(e,i),y(e,n,i),o=!0},p(e,r){const o={};64&r&&(o.subscription=e[22]),16&r&&(o.nextPaymentDateText=e[4]),32&r&&(o.subscriptionRateText=e[5]),4&r&&(o.billingHistoryText=e[2]),8&r&&(o.billingHistoryLink=e[3]),16384&r&&(o.onViewHistory=e[14]),256&r&&(o.showBillingHistory="zuora-billing"!==e[8]),t.$set(o),"zuora-billing"!==e[8]&&"active"===e[22].status?a?(a.p(e,r),320&r&&te(a,1)):(a=dl(e),a.c(),te(a,1),a.m(n.parentNode,n)):a&&(X(),re(a,1,1,(()=>{a=null})),ee())},i(e){o||(te(t.$$.fragment,e),te(a),o=!0)},o(e){re(t.$$.fragment,e),re(a),o=!1},d(e){e&&(g(r),g(n)),ce(t,e),a&&a.d(e)}}}function pl(e){let t,r;return t=new ol({props:{subscription:e[22],nextPaymentDateText:e[4],subscriptionRateText:e[5],billingHistoryLink:e[3],onViewHistory:e[14],onChangePayment:e[11],logChangeSubscription:e[12],logCancelSubscription:e[13],changePaymentMethodText:e[9],changeSubscriptionText:e[15],cancelSubscriptionText:e[16],changeSubscriptionPath:e[17],cancelSubscriptionPath:e[18],elementsOrder:e[19],elementsHide:e[20]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};64&r&&(n.subscription=e[22]),16&r&&(n.nextPaymentDateText=e[4]),32&r&&(n.subscriptionRateText=e[5]),8&r&&(n.billingHistoryLink=e[3]),16384&r&&(n.onViewHistory=e[14]),2048&r&&(n.onChangePayment=e[11]),4096&r&&(n.logChangeSubscription=e[12]),8192&r&&(n.logCancelSubscription=e[13]),512&r&&(n.changePaymentMethodText=e[9]),32768&r&&(n.changeSubscriptionText=e[15]),65536&r&&(n.cancelSubscriptionText=e[16]),131072&r&&(n.changeSubscriptionPath=e[17]),262144&r&&(n.cancelSubscriptionPath=e[18]),524288&r&&(n.elementsOrder=e[19]),1048576&r&&(n.elementsHide=e[20]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function dl(e){let t,r;function n(){return e[21](e[22])}return t=new Rt({props:{disabled:!1,text:e[9],onClick:n,noMargin:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,o){e=r;const a={};512&o&&(a.text=e[9]),2112&o&&(a.onClick=n),t.$set(a)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function ml(e){let t,r,n,o;const a=[pl,ul],i=[];function s(e,t){return e[19]?0:1}return t=s(e),r=i[t]=a[t](e),{c(){r.c(),n=C()},m(e,r){i[t].m(e,r),y(e,n,r),o=!0},p(e,o){let c=t;t=s(e),t===c?i[t].p(e,o):(X(),re(i[c],1,1,(()=>{i[c]=null})),ee(),r=i[t],r?r.p(e,o):(r=i[t]=a[t](e),r.c()),te(r,1),r.m(n.parentNode,n))},i(e){o||(te(r),o=!0)},o(e){re(r),o=!1},d(e){e&&g(n),i[t].d(e)}}}function fl(e){let t,r,n,o=!e[10]&&!e[7].length&&hl(e),a=ne(e[7]),i=[];for(let t=0;t<a.length;t+=1)i[t]=yl(al(e,a,t));const s=e=>re(i[e],1,1,(()=>{i[e]=null}));return{c(){o&&o.c(),t=E();for(let e=0;e<i.length;e+=1)i[e].c();r=C()},m(e,a){o&&o.m(e,a),y(e,t,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,a);y(e,r,a),n=!0},p(e,n){if(e[10]||e[7].length?o&&(o.d(1),o=null):o?o.p(e,n):(o=hl(e),o.c(),o.m(t.parentNode,t)),160&n){let t;for(a=ne(e[7]),t=0;t<a.length;t+=1){const o=al(e,a,t);i[t]?(i[t].p(o,n),te(i[t],1)):(i[t]=yl(o),i[t].c(),te(i[t],1),i[t].m(r.parentNode,r))}for(X(),t=a.length;t<i.length;t+=1)s(t);ee()}},i(e){if(!n){for(let e=0;e<a.length;e+=1)te(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)re(i[e]);n=!1},d(e){e&&(g(t),g(r)),o&&o.d(e),b(i,e)}}}function hl(e){let t;return{c(){t=P("div")},m(r,n){y(r,t,n),t.innerHTML=e[1]},p(e,r){2&r&&(t.innerHTML=e[1])},d(e){e&&g(t)}}}function yl(e){let t,r;return t=new ol({props:{subscription:e[22],isInactive:!0,subscriptionRateText:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};128&r&&(n.subscription=e[22]),32&r&&(n.subscriptionRateText=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function gl(e){let t,r,n,o,a=e[10]&&sl(),i=!e[0]&&cl(e),s=e[0]&&fl(e);return{c(){t=P("div"),a&&a.c(),r=E(),i&&i.c(),n=E(),s&&s.c(),_(t,"class","subscriptions-list-container svelte-2hm0a")},m(e,c){y(e,t,c),a&&a.m(t,null),h(t,r),i&&i.m(t,null),h(t,n),s&&s.m(t,null),o=!0},p(e,[o]){e[10]?a?1024&o&&te(a,1):(a=sl(),a.c(),te(a,1),a.m(t,r)):a&&(X(),re(a,1,1,(()=>{a=null})),ee()),e[0]?i&&(X(),re(i,1,1,(()=>{i=null})),ee()):i?(i.p(e,o),1&o&&te(i,1)):(i=cl(e),i.c(),te(i,1),i.m(t,n)),e[0]?s?(s.p(e,o),1&o&&te(s,1)):(s=fl(e),s.c(),te(s,1),s.m(t,null)):s&&(X(),re(s,1,1,(()=>{s=null})),ee())},i(e){o||(te(a),te(i),te(s),o=!0)},o(e){re(a),re(i),re(s),o=!1},d(e){e&&g(t),a&&a.d(),i&&i.d(),s&&s.d()}}}function bl(e,t,r){let{isPastSubscriptions:n}=t,{noSubscriptionsMessage:o}=t,{billingHistoryText:a}=t,{billingHistoryLink:i}=t,{nextPaymentDateText:s}=t,{subscriptionRateText:c}=t,{subscriptions:l}=t,{inactiveSubscriptions:u}=t,{paymentProvider:p}=t,{changePaymentMethodText:d}=t,{loading:m}=t,{onChangePayment:f}=t,{logChangeSubscription:h}=t,{logCancelSubscription:y}=t,{onViewHistory:g}=t,{changeSubscriptionText:b}=t,{cancelSubscriptionText:P}=t,{changeSubscriptionPath:A}=t,{cancelSubscriptionPath:S}=t,{elementsOrder:E}=t,{elementsHide:C}=t;return e.$$set=e=>{"isPastSubscriptions"in e&&r(0,n=e.isPastSubscriptions),"noSubscriptionsMessage"in e&&r(1,o=e.noSubscriptionsMessage),"billingHistoryText"in e&&r(2,a=e.billingHistoryText),"billingHistoryLink"in e&&r(3,i=e.billingHistoryLink),"nextPaymentDateText"in e&&r(4,s=e.nextPaymentDateText),"subscriptionRateText"in e&&r(5,c=e.subscriptionRateText),"subscriptions"in e&&r(6,l=e.subscriptions),"inactiveSubscriptions"in e&&r(7,u=e.inactiveSubscriptions),"paymentProvider"in e&&r(8,p=e.paymentProvider),"changePaymentMethodText"in e&&r(9,d=e.changePaymentMethodText),"loading"in e&&r(10,m=e.loading),"onChangePayment"in e&&r(11,f=e.onChangePayment),"logChangeSubscription"in e&&r(12,h=e.logChangeSubscription),"logCancelSubscription"in e&&r(13,y=e.logCancelSubscription),"onViewHistory"in e&&r(14,g=e.onViewHistory),"changeSubscriptionText"in e&&r(15,b=e.changeSubscriptionText),"cancelSubscriptionText"in e&&r(16,P=e.cancelSubscriptionText),"changeSubscriptionPath"in e&&r(17,A=e.changeSubscriptionPath),"cancelSubscriptionPath"in e&&r(18,S=e.cancelSubscriptionPath),"elementsOrder"in e&&r(19,E=e.elementsOrder),"elementsHide"in e&&r(20,C=e.elementsHide)},[n,o,a,i,s,c,l,u,p,d,m,f,h,y,g,b,P,A,S,E,C,e=>f(e)]}class Pl extends pe{constructor(e){super(),ue(this,e,bl,gl,i,{isPastSubscriptions:0,noSubscriptionsMessage:1,billingHistoryText:2,billingHistoryLink:3,nextPaymentDateText:4,subscriptionRateText:5,subscriptions:6,inactiveSubscriptions:7,paymentProvider:8,changePaymentMethodText:9,loading:10,onChangePayment:11,logChangeSubscription:12,logCancelSubscription:13,onViewHistory:14,changeSubscriptionText:15,cancelSubscriptionText:16,changeSubscriptionPath:17,cancelSubscriptionPath:18,elementsOrder:19,elementsHide:20})}}const Al={matches:e=>e.type===Be,create:(e,t,r,n)=>({component:Pl,props:{isPastSubscriptions:n.isPastSubscriptions,subscriptionTitle:n.subscriptionTitle,billingHistoryText:n.billingHistoryText,billingHistoryLink:n.billingHistoryLink,noSubscriptionsMessage:n.noSubscriptionsMessage,nextPaymentDateText:n.nextPaymentDateText,subscriptionRateText:n.subscriptionRateText,loading:!t.existingSubscriptions,subscriptions:t.existingSubscriptions?t.existingSubscriptions.filter((e=>"active"===e.status)):[],inactiveSubscriptions:t.existingSubscriptions?t.existingSubscriptions.filter((e=>"active"!==e.status)):[],paymentProvider:e.organisationConfiguration.paymentProvider,changePaymentMethodText:n.changePaymentMethodText,onChangePayment:n=>{r.updateFormState({selectedSubscription:n}),it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.completeSection()},onViewHistory:t=>{r.updateFormState({selectedSubscription:t}),r.jumpToPartStart("billing-history"),it(e,"zephr_form_billing_history_view",null)},logChangeSubscription:t=>{it(e,"zephr_form_subscription_change_clicked",{productId:t.productId,planId:t.externalId})},logCancelSubscription:t=>{it(e,"zephr_form_cancel_subscription_clicked",{productId:t.productId,planId:t.externalId})},changeSubscriptionText:n.changeSubscriptionText,cancelSubscriptionText:n.cancelSubscriptionText,changeSubscriptionPath:n.changeSubscriptionPath,cancelSubscriptionPath:n.cancelSubscriptionPath,elementsOrder:n.elementsOrder,elementsHide:{subscriptionInformation:n?.hideSubscriptionInformation,changePayment:n?.hideChangePayment,changeSubscription:n?.hideChangeSubscription,cancelSubscription:n?.hideCancelSubscription,billingHistory:n?.hideBillingHistory}}})};function Sl(e){let t,r,n;return r=new Si({props:{text:e[2]}}),r.$on("linkClick",(function(){a(e[3])&&e[3].apply(this,arguments)})),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class","past-subscriptions-link-wrapper svelte-1gacumx")},m(e,o){y(e,t,o),se(r,t,null),n=!0},p(t,n){e=t;const o={};4&n&&(o.text=e[2]),r.$set(o)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&g(t),ce(r)}}}function El(e){let t,r,n=e[1]&&!e[0]&&Sl(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,[r]){e[1]&&!e[0]?n?(n.p(e,r),3&r&&te(n,1)):(n=Sl(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Cl(e,t,r){let{loading:n}=t,{show:o}=t,{linkText:a}=t,{onClick:i}=t;return e.$$set=e=>{"loading"in e&&r(0,n=e.loading),"show"in e&&r(1,o=e.show),"linkText"in e&&r(2,a=e.linkText),"onClick"in e&&r(3,i=e.onClick)},[n,o,a,i]}class vl extends pe{constructor(e){super(),ue(this,e,Cl,El,i,{loading:0,show:1,linkText:2,onClick:3})}}const Tl={matches:e=>e.type===Ue,create:(e,t,r,n)=>({component:vl,props:{loading:!t.existingSubscriptions,show:n.show,linkText:n.linkText,onClick:()=>{r.jumpToPartStart("past-subscriptions")}}})};function _l(e){let t,r,n;return r=new Rt({props:{disabled:!1,text:e[0],onClick:e[2]}}),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class","change-payment-method-button-container")},m(e,o){y(e,t,o),se(r,t,null),n=!0},p(e,[t]){const n={};1&t&&(n.text=e[0]),2&t&&(n.onClick=e[2]),r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&g(t),ce(r)}}}function Ol(e,t,r){let{text:n}=t,{onChangePayment:o}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"onChangePayment"in e&&r(1,o=e.onChangePayment)},[n,o,()=>o()]}class wl extends pe{constructor(e){super(),ue(this,e,Ol,_l,i,{text:0,onChangePayment:1})}}const Il={matches:e=>e.type===Ge,create:(e,t,r,n)=>({component:wl,props:{text:n.text,onChangePayment:()=>{it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),r.completeSection()}}})};function Rl(e){let t,r,n,o;return r=new Si({props:{text:e[0],onClick:e[2]}}),r.$on("linkClick",(function(){a(e[2])&&e[2].apply(this,arguments)})),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class",n=f("event-link-wrapper "+(e[1]?"float-right":""))+" svelte-12vtv9v")},m(e,n){y(e,t,n),se(r,t,null),o=!0},p(a,[i]){e=a;const s={};1&i&&(s.text=e[0]),4&i&&(s.onClick=e[2]),r.$set(s),(!o||2&i&&n!==(n=f("event-link-wrapper "+(e[1]?"float-right":""))+" svelte-12vtv9v"))&&_(t,"class",n)},i(e){o||(te(r.$$.fragment,e),o=!0)},o(e){re(r.$$.fragment,e),o=!1},d(e){e&&g(t),ce(r)}}}function $l(e,t,r){let{text:n}=t,{floatRight:o}=t,{onClick:a}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"floatRight"in e&&r(1,o=e.floatRight),"onClick"in e&&r(2,a=e.onClick)},[n,o,a]}class Ml extends pe{constructor(e){super(),ue(this,e,$l,Rl,i,{text:0,floatRight:1,onClick:2})}}const Nl={matches:e=>e.type===De,create:(e,t,r,n)=>({component:Ml,props:{text:n.text,floatRight:n.floatRight,onClick:()=>{r.onEvent(n.event)}}})};function xl(e){let t,r;return t=new Si({props:{text:e[2]}}),t.$on("linkClick",(function(){a(e[4])&&e[4].apply(this,arguments)})),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,n){e=r;const o={};4&n&&(o.text=e[2]),t.$set(o)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ll(e){let t,r,n,o,a,i,s;r=new er({props:{forInput:e[5],label:e[0]}});let c=e[3]&&xl(e);return{c(){t=P("div"),ie(r.$$.fragment),n=E(),o=P("div"),a=P("input"),i=E(),c&&c.c(),_(t,"class","bold-label svelte-121zkre"),_(a,"id",e[5]),_(a,"type","email"),_(a,"name","email"),a.value=e[1],a.readOnly=!0,_(a,"class","read-only-input svelte-121zkre"),_(o,"class","zephr-form-relative-container svelte-121zkre")},m(e,l){y(e,t,l),se(r,t,null),y(e,n,l),y(e,o,l),h(o,a),h(o,i),c&&c.m(o,null),s=!0},p(e,[t]){const n={};1&t&&(n.label=e[0]),r.$set(n),(!s||2&t&&a.value!==e[1])&&(a.value=e[1]),e[3]?c?(c.p(e,t),8&t&&te(c,1)):(c=xl(e),c.c(),te(c,1),c.m(o,null)):c&&(X(),re(c,1,1,(()=>{c=null})),ee())},i(e){s||(te(r.$$.fragment,e),te(c),s=!0)},o(e){re(r.$$.fragment,e),re(c),s=!1},d(e){e&&(g(t),g(n),g(o)),ce(r),c&&c.d()}}}function Fl(e,t,r){let{formKey:n}=t,{label:o}=t,{emailAddress:a}=t,{updateLabel:i}=t,{updateEnabled:s}=t,{onUpdate:c}=t;const l=`zephr-form-read-only-email-address-${n}`;return e.$$set=e=>{"formKey"in e&&r(6,n=e.formKey),"label"in e&&r(0,o=e.label),"emailAddress"in e&&r(1,a=e.emailAddress),"updateLabel"in e&&r(2,i=e.updateLabel),"updateEnabled"in e&&r(3,s=e.updateEnabled),"onUpdate"in e&&r(4,c=e.onUpdate)},[o,a,i,s,c,l,n]}class zl extends pe{constructor(e){super(),ue(this,e,Fl,Ll,i,{formKey:6,label:0,emailAddress:1,updateLabel:2,updateEnabled:3,onUpdate:4})}}const kl={matches:e=>e.type===je,create:(e,t,r,n)=>({component:zl,props:{formKey:e.uniqueKey,emailAddress:t.readOnlyEmail??"",label:n.label,updateLabel:n.updateLinkLabel,updateEnabled:n.updateLinkEnabled,onUpdate:()=>r.jumpToPartStart("email-update")}})};function Dl(e){let t,r;return t=new Si({props:{text:e[1]}}),t.$on("linkClick",(function(){a(e[3])&&e[3].apply(this,arguments)})),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,n){e=r;const o={};2&n&&(o.text=e[1]),t.$set(o)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Bl(e){let t,r,n,o,a,i,s;r=new er({props:{forInput:e[4],label:e[0]}});let c=e[2]&&Dl(e);return{c(){t=P("div"),ie(r.$$.fragment),n=E(),o=P("div"),a=P("input"),i=E(),c&&c.c(),_(t,"class","bold-label svelte-121zkre"),_(a,"id",e[4]),_(a,"type","password"),a.value="••••••••••••••••",a.readOnly=!0,_(a,"class","read-only-input svelte-121zkre"),_(o,"class","zephr-form-relative-container svelte-121zkre")},m(e,l){y(e,t,l),se(r,t,null),y(e,n,l),y(e,o,l),h(o,a),h(o,i),c&&c.m(o,null),s=!0},p(e,[t]){const n={};1&t&&(n.label=e[0]),r.$set(n),e[2]?c?(c.p(e,t),4&t&&te(c,1)):(c=Dl(e),c.c(),te(c,1),c.m(o,null)):c&&(X(),re(c,1,1,(()=>{c=null})),ee())},i(e){s||(te(r.$$.fragment,e),te(c),s=!0)},o(e){re(r.$$.fragment,e),re(c),s=!1},d(e){e&&(g(t),g(n),g(o)),ce(r),c&&c.d()}}}function Ul(e,t,r){let{formKey:n}=t,{label:o}=t,{updateLabel:a}=t,{updateEnabled:i}=t,{onUpdate:s}=t;const c=`zephr-form-read-only-password-${n}`;return e.$$set=e=>{"formKey"in e&&r(5,n=e.formKey),"label"in e&&r(0,o=e.label),"updateLabel"in e&&r(1,a=e.updateLabel),"updateEnabled"in e&&r(2,i=e.updateEnabled),"onUpdate"in e&&r(3,s=e.onUpdate)},[o,a,i,s,c,n]}class Vl extends pe{constructor(e){super(),ue(this,e,Ul,Bl,i,{formKey:5,label:0,updateLabel:1,updateEnabled:2,onUpdate:3})}}const Gl={matches:e=>e.type===qe,create:(e,t,r,n)=>({component:Vl,props:{formKey:e.uniqueKey,label:n.label,updateLabel:n.updateLinkLabel,updateEnabled:n.updateLinkEnabled,onUpdate:()=>r.jumpToPartStart("password-update")}})};function jl(t){let r,n,o,a,i,s;return{c(){r=P("div"),n=P("div"),o=S(t[3]),a=E(),i=P("div"),s=S(t[2]),_(n,"class","zephr-form-ro-attribute-label"),_(i,"class","zephr-form-ro-attribute-value"),_(r,"class","zephr-form-ro-attribute")},m(e,t){y(e,r,t),h(r,n),h(n,o),h(r,a),h(r,i),h(i,s)},p(e,t){8&t&&I(o,e[3]),4&t&&I(s,e[2])},i:e,o:e,d(e){e&&g(r)}}}function ql(e){let t,r,n;return r=new Qa({props:{id:`zephr-form-ro-checkbox-${e[1]}`,name:e[1],label:e[3],required:!1,value:e[2],checked:e[2],disabled:!0}}),{c(){t=P("div"),ie(r.$$.fragment),_(t,"class","zephr-form-ro-attribute")},m(e,o){y(e,t,o),se(r,t,null),n=!0},p(e,t){const n={};2&t&&(n.id=`zephr-form-ro-checkbox-${e[1]}`),2&t&&(n.name=e[1]),8&t&&(n.label=e[3]),4&t&&(n.value=e[2]),4&t&&(n.checked=e[2]),r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&g(t),ce(r)}}}function Hl(e){let t,r,n,o;const a=[ql,jl],i=[];function s(e,t){return e[0]?0:1}return t=s(e),r=i[t]=a[t](e),{c(){r.c(),n=C()},m(e,r){i[t].m(e,r),y(e,n,r),o=!0},p(e,[o]){let c=t;t=s(e),t===c?i[t].p(e,o):(X(),re(i[c],1,1,(()=>{i[c]=null})),ee(),r=i[t],r?r.p(e,o):(r=i[t]=a[t](e),r.c()),te(r,1),r.m(n.parentNode,n))},i(e){o||(te(r),o=!0)},o(e){re(r),o=!1},d(e){e&&g(n),i[t].d(e)}}}function Kl(e,t,r){let{isCheckbox:n}=t,{slug:o}=t,{value:a}=t,{label:i}=t;return e.$$set=e=>{"isCheckbox"in e&&r(0,n=e.isCheckbox),"slug"in e&&r(1,o=e.slug),"value"in e&&r(2,a=e.value),"label"in e&&r(3,i=e.label)},[n,o,a,i]}class Yl extends pe{constructor(e){super(),ue(this,e,Kl,Hl,i,{isCheckbox:0,slug:1,value:2,label:3})}}const Wl=["radio","select"],Jl={matches:e=>e.type===He,create:(e,t,r,n)=>{const o=e.organisationConfiguration.schemaFields.find((e=>e.slug===n.slug));let a=(t.readOnlyAttributeValues??{})[n.slug]??"";a&&Wl.includes(o?.["input-type"])&&(a=(o?.["select-options"]??[]).find((e=>e.value===a))?.label??a);const i="checkbox"===o?.["input-type"];return{component:Yl,props:{value:a,slug:n.slug,label:n.label,isCheckbox:i}}}};function Ql(e){let t,r;return{c(){t=P("span"),r=S(e[2]),_(t,"class","current-device svelte-4jb3ht")},m(e,n){y(e,t,n),h(t,r)},p(e,t){4&t&&I(r,e[2])},d(e){e&&g(t)}}}function Zl(e){let t,r;return t=new Rt({props:{disabled:!1,text:e[4],onClick:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};16&r&&(n.text=e[4]),3&r&&(n.onClick=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Xl(e){let t,r,n,o,a,i,s,c,l,u,p,d,m,f,b,A,C,v,T,O=e[0].deviceName+"",w=e[0].startDate+"",R=e[0].browser+"",$=e[0].country+"",M=e[0].requestingSession&&Ql(e),N=!e[0].requestingSession&&Zl(e);return{c(){t=P("div"),r=P("div"),n=S(O),o=E(),M&&M.c(),a=E(),i=P("div"),s=S(e[3]),c=S(": "),l=S(w),u=E(),p=P("div"),d=S(R),m=E(),f=P("div"),b=S($),A=E(),N&&N.c(),C=E(),v=P("hr"),_(r,"class","device-title svelte-4jb3ht"),_(i,"class","login-time svelte-4jb3ht"),_(p,"class","browser svelte-4jb3ht"),_(f,"class","country svelte-4jb3ht"),_(v,"class","svelte-4jb3ht"),_(t,"class","session-container svelte-4jb3ht")},m(e,g){y(e,t,g),h(t,r),h(r,n),h(r,o),M&&M.m(r,null),h(t,a),h(t,i),h(i,s),h(i,c),h(i,l),h(t,u),h(t,p),h(p,d),h(t,m),h(t,f),h(f,b),h(t,A),N&&N.m(t,null),h(t,C),h(t,v),T=!0},p(e,[o]){(!T||1&o)&&O!==(O=e[0].deviceName+"")&&I(n,O),e[0].requestingSession?M?M.p(e,o):(M=Ql(e),M.c(),M.m(r,null)):M&&(M.d(1),M=null),(!T||8&o)&&I(s,e[3]),(!T||1&o)&&w!==(w=e[0].startDate+"")&&I(l,w),(!T||1&o)&&R!==(R=e[0].browser+"")&&I(d,R),(!T||1&o)&&$!==($=e[0].country+"")&&I(b,$),e[0].requestingSession?N&&(X(),re(N,1,1,(()=>{N=null})),ee()):N?(N.p(e,o),1&o&&te(N,1)):(N=Zl(e),N.c(),te(N,1),N.m(t,C))},i(e){T||(te(N),T=!0)},o(e){re(N),T=!1},d(e){e&&g(t),M&&M.d(),N&&N.d()}}}function eu(e,t,r){let{deviceSession:n}=t,{onDeviceSignOut:o}=t,{currentDeviceLabel:a}=t,{loginTimeLabel:i}=t,{signOutLabel:s}=t;return e.$$set=e=>{"deviceSession"in e&&r(0,n=e.deviceSession),"onDeviceSignOut"in e&&r(1,o=e.onDeviceSignOut),"currentDeviceLabel"in e&&r(2,a=e.currentDeviceLabel),"loginTimeLabel"in e&&r(3,i=e.loginTimeLabel),"signOutLabel"in e&&r(4,s=e.signOutLabel)},[n,o,a,i,s,()=>o(n.id)]}class tu extends pe{constructor(e){super(),ue(this,e,eu,Xl,i,{deviceSession:0,onDeviceSignOut:1,currentDeviceLabel:2,loginTimeLabel:3,signOutLabel:4})}}function ru(e,t,r){const n=e.slice();return n[7]=t[r],n}function nu(e){let t,r;return t=new lr({props:{icon:pr,spin:!0,size:"lg"}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function ou(e){let t;return{c(){t=P("div")},m(r,n){y(r,t,n),t.innerHTML=e[1]},p(e,r){2&r&&(t.innerHTML=e[1])},d(e){e&&g(t)}}}function au(e){let t,r;return t=new tu({props:{deviceSession:e[7],currentDeviceLabel:e[3],loginTimeLabel:e[4],signOutLabel:e[5],onDeviceSignOut:e[6]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.deviceSession=e[7]),8&r&&(n.currentDeviceLabel=e[3]),16&r&&(n.loginTimeLabel=e[4]),32&r&&(n.signOutLabel=e[5]),64&r&&(n.onDeviceSignOut=e[6]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function iu(e){let t,r,n,o,a,i,s,c,l=null==e[0]&&nu(),u=null!=e[0]&&!e[0].length&&ou(e),p=ne(e[0]??[]),d=[];for(let t=0;t<p.length;t+=1)d[t]=au(ru(e,p,t));const m=e=>re(d[e],1,1,(()=>{d[e]=null}));return{c(){t=P("div"),r=P("div"),n=P("h1"),o=S(e[2]),a=E(),l&&l.c(),i=E(),u&&u.c(),s=E();for(let e=0;e<d.length;e+=1)d[e].c();_(n,"class","current-device"),_(r,"class","your-devices"),_(t,"class","devices-sessions-container")},m(e,p){y(e,t,p),h(t,r),h(r,n),h(n,o),h(t,a),l&&l.m(t,null),h(t,i),u&&u.m(t,null),h(t,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(t,null);c=!0},p(e,[r]){if((!c||4&r)&&I(o,e[2]),null==e[0]?l?1&r&&te(l,1):(l=nu(),l.c(),te(l,1),l.m(t,i)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),null==e[0]||e[0].length?u&&(u.d(1),u=null):u?u.p(e,r):(u=ou(e),u.c(),u.m(t,s)),121&r){let n;for(p=ne(e[0]??[]),n=0;n<p.length;n+=1){const o=ru(e,p,n);d[n]?(d[n].p(o,r),te(d[n],1)):(d[n]=au(o),d[n].c(),te(d[n],1),d[n].m(t,null))}for(X(),n=p.length;n<d.length;n+=1)m(n);ee()}},i(e){if(!c){te(l);for(let e=0;e<p.length;e+=1)te(d[e]);c=!0}},o(e){re(l),d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)re(d[e]);c=!1},d(e){e&&g(t),l&&l.d(),u&&u.d(),b(d,e)}}}function su(e,t,r){let{devicesSessions:n}=t,{noDeviceSessionsMessage:o}=t,{yourDevicesLabel:a}=t,{currentDeviceLabel:i}=t,{loginTimeLabel:s}=t,{signOutLabel:c}=t,{onDeviceSignOut:l}=t;return e.$$set=e=>{"devicesSessions"in e&&r(0,n=e.devicesSessions),"noDeviceSessionsMessage"in e&&r(1,o=e.noDeviceSessionsMessage),"yourDevicesLabel"in e&&r(2,a=e.yourDevicesLabel),"currentDeviceLabel"in e&&r(3,i=e.currentDeviceLabel),"loginTimeLabel"in e&&r(4,s=e.loginTimeLabel),"signOutLabel"in e&&r(5,c=e.signOutLabel),"onDeviceSignOut"in e&&r(6,l=e.onDeviceSignOut)},[n,o,a,i,s,c,l]}class cu extends pe{constructor(e){super(),ue(this,e,su,iu,i,{devicesSessions:0,noDeviceSessionsMessage:1,yourDevicesLabel:2,currentDeviceLabel:3,loginTimeLabel:4,signOutLabel:5,onDeviceSignOut:6})}}const lu=async(e,t,r)=>{const n=await uu(e,t,r);return r.updateFormState({availableDeviceSessions:n}),n},uu=(e,t,r)=>gn("zephr/public/sessions/v1/sessions",{method:"GET"},r,null,!0).then((e=>e.ok?e.json():[])).then((t=>t.map((t=>({tenantId:t.tenantId,userId:t.userId,id:t.id,startDate:new Date(t.startDate).toLocaleString(Zo(e),{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),deviceName:t.deviceName,browser:t.browser,requestingSession:t.requestingSession,city:t.city??null,country:t.country??null,geoState:t.geoState??null,ipAddress:t.ipAddress??null}))))),pu=async(e,t,r,n)=>{try{return 200===(await gn(`zephr/public/sessions/v1/sessions/${n}`,{method:"DELETE"},r,null,!0)).status}catch(e){return console.error("Error occurred while signing out device:",e),!1}},du={matches:e=>e.type===Ye,create:(e,t,r,n)=>({component:cu,props:{yourDevicesLabel:n.yourDevicesLabel,noDeviceSessionsMessage:n.noDeviceSessionsMessage,devicesSessions:t.availableDeviceSessions,currentDeviceLabel:n.currentDeviceLabel,loginTimeLabel:n.loginTimeLabel,signOutLabel:n.signOutLabel,onDeviceSignOut:n=>{it(e,"zephr_form_button_press",{sectionId:t.currentSection.type,buttonType:"SUBMIT"}),it(e,"zephr_form_device_logout",{deviceId:n}),(async(e,t,r,n)=>{if(await pu(e,t,r,n))return console.log("Successfully signed out device."),lu(e,t,r);console.error("Failed to sign out device.")})(e,t,r,n)}}})};function mu(e){let t,r,n,o;return{c(){t=P("div"),r=S(e[2]),_(t,"class","sign-out-all svelte-1gdzu2p")},m(i,s){y(i,t,s),h(t,r),n||(o=v(t,"click",(function(){a(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(t,n){e=t,4&n&&I(r,e[2])},d(e){e&&g(t),n=!1,o()}}}function fu(t){let r,n=!t[1]&&mu(t);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),y(e,r,t)},p(e,[t]){e[1]?n&&(n.d(1),n=null):n?n.p(e,t):(n=mu(e),n.c(),n.m(r.parentNode,r))},i:e,o:e,d(e){e&&g(r),n&&n.d(e)}}}function hu(e,t,r){let{onSignOutAllDevices:n}=t,{hidden:o}=t,{text:a}=t;return e.$$set=e=>{"onSignOutAllDevices"in e&&r(0,n=e.onSignOutAllDevices),"hidden"in e&&r(1,o=e.hidden),"text"in e&&r(2,a=e.text)},[n,o,a]}class yu extends pe{constructor(e){super(),ue(this,e,hu,fu,i,{onSignOutAllDevices:0,hidden:1,text:2})}}const gu=async(e,t,r)=>{try{return 200===(await gn("zephr/public/sessions/v1/sessions?except-current",{method:"DELETE"},r,null,!0)).status}catch(e){return console.error("Error occurred while signing out devices:",e),!1}},bu={matches:e=>e.type===We,create:(e,t,r,n)=>({component:yu,props:{hidden:t.availableDeviceSessions?.length<=1,text:n.text,onSignOutAllDevices:()=>{it(e,"zephr_form_sign_out_all_devices",null),(async(e,t,r)=>{if(await gu(e,t,r))return console.log("Successfully signed out of all devices."),lu(e,t,r);console.error("Failed to sign out of all devices.")})(e,t,r)}}})};function Pu(e,t,r){const n=e.slice();return n[5]=t[r],n}function Au(e){let t,r,n,o,a,i=e[5].currency+"",s=e[5].subtotal+"",c=e[5].taxes&&Su(e);return{c(){t=S(i),r=E(),n=S(s),o=E(),c&&c.c(),a=C()},m(e,i){y(e,t,i),y(e,r,i),y(e,n,i),y(e,o,i),c&&c.m(e,i),y(e,a,i)},p(e,r){1&r&&i!==(i=e[5].currency+"")&&I(t,i),1&r&&s!==(s=e[5].subtotal+"")&&I(n,s),e[5].taxes?c?c.p(e,r):(c=Su(e),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},d(e){e&&(g(t),g(r),g(n),g(o),g(a)),c&&c.d(e)}}}function Su(e){let t,r,n=` ${e[5].taxes}`;return{c(){t=P("span"),r=S(n),_(t,"class","taxes svelte-15e6uru")},m(e,n){y(e,t,n),h(t,r)},p(e,t){1&t&&n!==(n=` ${e[5].taxes}`)&&I(r,n)},d(e){e&&g(t)}}}function Eu(e){let t,r,n,o=e[5].currency+"",a=e[5].total+"";return{c(){t=S(o),r=E(),n=S(a)},m(e,o){y(e,t,o),y(e,r,o),y(e,n,o)},p(e,r){1&r&&o!==(o=e[5].currency+"")&&I(t,o),1&r&&a!==(a=e[5].total+"")&&I(n,a)},d(e){e&&(g(t),g(r),g(n))}}}function Cu(e){let t,r,n,o,a,i,s,c,l,u,p,d=e[5].date+"",m=e[5].period+"",f=e[5].subtotal&&Au(e),b=e[5].total&&Eu(e);return{c(){t=P("div"),r=P("div"),n=S(d),o=E(),a=P("div"),i=S(m),s=E(),c=P("div"),f&&f.c(),l=E(),u=P("div"),b&&b.c(),p=E(),_(r,"class","svelte-15e6uru"),_(a,"class","svelte-15e6uru"),_(c,"class","svelte-15e6uru"),_(u,"class","svelte-15e6uru"),_(t,"class","table-row svelte-15e6uru")},m(e,d){y(e,t,d),h(t,r),h(r,n),h(t,o),h(t,a),h(a,i),h(t,s),h(t,c),f&&f.m(c,null),h(t,l),h(t,u),b&&b.m(u,null),h(t,p)},p(e,t){1&t&&d!==(d=e[5].date+"")&&I(n,d),1&t&&m!==(m=e[5].period+"")&&I(i,m),e[5].subtotal?f?f.p(e,t):(f=Au(e),f.c(),f.m(c,null)):f&&(f.d(1),f=null),e[5].total?b?b.p(e,t):(b=Eu(e),b.c(),b.m(u,null)):b&&(b.d(1),b=null)},d(e){e&&g(t),f&&f.d(),b&&b.d()}}}function vu(t){let r,n,o,a,i,s,c,l,u,p,d,m,f,A,C,v=ne(t[0]??[]),T=[];for(let e=0;e<v.length;e+=1)T[e]=Cu(Pu(t,v,e));return{c(){r=P("div"),n=P("div"),o=P("div"),a=P("div"),i=S(t[1]),s=E(),c=P("div"),l=S(t[2]),u=E(),p=P("div"),d=S(t[3]),m=E(),f=P("div"),A=S(t[4]),C=E();for(let e=0;e<T.length;e+=1)T[e].c();_(a,"class","svelte-15e6uru"),_(c,"class","svelte-15e6uru"),_(p,"class","svelte-15e6uru"),_(f,"class","svelte-15e6uru"),_(o,"class","table-head svelte-15e6uru"),_(n,"class","table svelte-15e6uru"),_(r,"class","billing-history-container")},m(e,t){y(e,r,t),h(r,n),h(n,o),h(o,a),h(a,i),h(o,s),h(o,c),h(c,l),h(o,u),h(o,p),h(p,d),h(o,m),h(o,f),h(f,A),h(n,C);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(n,null)},p(e,[t]){if(2&t&&I(i,e[1]),4&t&&I(l,e[2]),8&t&&I(d,e[3]),16&t&&I(A,e[4]),1&t){let r;for(v=ne(e[0]??[]),r=0;r<v.length;r+=1){const o=Pu(e,v,r);T[r]?T[r].p(o,t):(T[r]=Cu(o),T[r].c(),T[r].m(n,null))}for(;r<T.length;r+=1)T[r].d(1);T.length=v.length}},i:e,o:e,d(e){e&&g(r),b(T,e)}}}function Tu(e,t,r){let{historyItems:n}=t,{dateLabel:o}=t,{periodLabel:a}=t,{subtotalLabel:i}=t,{totalLabel:s}=t;return e.$$set=e=>{"historyItems"in e&&r(0,n=e.historyItems),"dateLabel"in e&&r(1,o=e.dateLabel),"periodLabel"in e&&r(2,a=e.periodLabel),"subtotalLabel"in e&&r(3,i=e.subtotalLabel),"totalLabel"in e&&r(4,s=e.totalLabel)},[n,o,a,i,s]}class _u extends pe{constructor(e){super(),ue(this,e,Tu,vu,i,{historyItems:0,dateLabel:1,periodLabel:2,subtotalLabel:3,totalLabel:4})}}const Ou={matches:e=>e.type===Ve,create:(e,t,r)=>({component:_u,props:{historyItems:t.selectedSubscription?.transactionHistory,dateLabel:Qo(e,"forms.billing.history.date","Date"),periodLabel:Qo(e,"forms.billing.history.period","Period"),subtotalLabel:Qo(e,"forms.billing.history.subtotal","Subtotal"),totalLabel:Qo(e,"forms.billing.history.total","Total")}})};function wu(e){let t,r,n,o;return{c(){t=P("button"),r=S(e[1]),_(t,"class","zephr-form-back-button svelte-s116f2"),_(t,"type","submit")},m(i,s){y(i,t,s),h(t,r),n||(o=v(t,"click",T((function(){a(e[3])&&e[3].apply(this,arguments)}))),n=!0)},p(t,n){e=t,2&n&&I(r,e[1])},d(e){e&&g(t),n=!1,o()}}}function Iu(t){let r,n,o,i,s,c,l=t[2]&&wu(t);return{c(){r=P("div"),l&&l.c(),n=E(),o=P("button"),i=S(t[0]),_(o,"class","zephr-form-continue-button svelte-s116f2"),_(o,"type","submit"),_(r,"class","zephr-form-button-group zephr-form-max-width svelte-s116f2")},m(e,u){y(e,r,u),l&&l.m(r,null),h(r,n),h(r,o),h(o,i),s||(c=v(o,"click",T((function(){a(t[4])&&t[4].apply(this,arguments)}))),s=!0)},p(e,[o]){(t=e)[2]?l?l.p(t,o):(l=wu(t),l.c(),l.m(r,n)):l&&(l.d(1),l=null),1&o&&I(i,t[0])},i:e,o:e,d(e){e&&g(r),l&&l.d(),s=!1,c()}}}function Ru(e,t,r){let{continueText:n}=t,{backText:o}=t,{backEnabled:a}=t,{onBack:i}=t,{onClick:s}=t;return e.$$set=e=>{"continueText"in e&&r(0,n=e.continueText),"backText"in e&&r(1,o=e.backText),"backEnabled"in e&&r(2,a=e.backEnabled),"onBack"in e&&r(3,i=e.onBack),"onClick"in e&&r(4,s=e.onClick)},[n,o,a,i,s]}class $u extends pe{constructor(e){super(),ue(this,e,Ru,Iu,i,{continueText:0,backText:1,backEnabled:2,onBack:3,onClick:4})}}const Mu={matches:e=>e.type===Je,create:(e,t,r,n)=>({component:$u,props:{continueText:n.continueText,backText:n.backText,backEnabled:n.backEnabled&&(n.backToURL||!t.disableBackButton),onClick:()=>{n.isCancel&&r.updateFormState({confirmCancel:!0}),r.attemptCompleteSection()},onBack:()=>{n.backToURL?window.location.pathname=n.backURL:r.onEvent(n.event)}}})};function Nu(t){let r,n;return{c(){r=P("a"),n=S(t[0]),_(r,"class","zephr-form-button zephr-form-button-top-margin svelte-16hrghb"),_(r,"href",t[1])},m(e,t){y(e,r,t),h(r,n)},p(e,[t]){1&t&&I(n,e[0]),2&t&&_(r,"href",e[1])},i:e,o:e,d(e){e&&g(r)}}}function xu(e,t,r){let{text:n}=t,{href:o}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"href"in e&&r(1,o=e.href)},[n,o]}class Lu extends pe{constructor(e){super(),ue(this,e,xu,Nu,i,{text:0,href:1})}}const Fu=[_t,Vt,zr,kr,Dr,Kr,ya,ba,Ea,ja,Ya,bi,wi,Li,Xi,Ts,Ls,Ds,Bs,Us,Ks,Xs,tc,fc,Ic,Al,Tl,Il,Nl,kl,Gl,Jl,du,bu,Ou,Mu,{matches:e=>e.type===Qe,create:(e,t,r,n)=>({component:Lu,props:{text:n.text,href:n.href}})}];function zu(e){let r,n,o,a;const i=[e[4](e[2].props,e[0],e[1])];var s=e[2].component;function c(e,r){let n={};for(let e=0;e<i.length;e+=1)n=t(n,i[e]);return void 0!==r&&23&r&&(n=t(n,oe(i,[ae(e[4](e[2].props,e[0],e[1]))]))),{props:n}}s&&(r=x(s,c(e)));let l=!1===e[2].isValid&&e[0].showFieldErrors&&ku(e);return{c(){r&&ie(r.$$.fragment),n=E(),l&&l.c(),o=C()},m(e,t){r&&se(r,e,t),y(e,n,t),l&&l.m(e,t),y(e,o,t),a=!0},p(e,t){if(4&t&&s!==(s=e[2].component)){if(r){X();const e=r;re(e.$$.fragment,1,0,(()=>{ce(e,1)})),ee()}s?(r=x(s,c(e,t)),ie(r.$$.fragment),te(r.$$.fragment,1),se(r,n.parentNode,n)):r=null}else if(s){const n=23&t?oe(i,[ae(e[4](e[2].props,e[0],e[1]))]):{};r.$set(n)}!1===e[2].isValid&&e[0].showFieldErrors?l?(l.p(e,t),5&t&&te(l,1)):(l=ku(e),l.c(),te(l,1),l.m(o.parentNode,o)):l&&(X(),re(l,1,1,(()=>{l=null})),ee())},i(e){a||(r&&te(r.$$.fragment,e),te(l),a=!0)},o(e){r&&re(r.$$.fragment,e),re(l),a=!1},d(e){e&&(g(n),g(o)),r&&ce(r,e),l&&l.d(e)}}}function ku(t){let r,n;return r=new qt({props:{error:"Field is invalid",isPaymentForm:t[3]}}),{c(){ie(r.$$.fragment)},m(e,t){se(r,e,t),n=!0},p:e,i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){ce(r,e)}}}function Du(e){let t,r,n=e[2]&&zu(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),y(e,t,o),r=!0},p(e,[r]){e[2]?n?(n.p(e,r),4&r&&te(n,1)):(n=zu(e),n.c(),te(n,1),n.m(t.parentNode,t)):n&&(X(),re(n,1,1,(()=>{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&g(t),n&&n.d(e)}}}function Bu(e,t,r){let n,{form:o}=t,{formActions:a}=t,i="PAYMENT"===o.formType,{formState:s}=t,{sectionElement:c}=t;return e.$$set=e=>{"form"in e&&r(5,o=e.form),"formActions"in e&&r(6,a=e.formActions),"formState"in e&&r(0,s=e.formState),"sectionElement"in e&&r(1,c=e.sectionElement)},e.$$.update=()=>{3&e.$$.dirty&&r(2,n=((e,t)=>{if(!1===t.config?.enabled||!0===t.hidden)return null;const r=Fu.find((r=>r.matches(t,o,e.currentPart,e.currentSection)));if(!r)throw`Unknown element ${JSON.stringify(t)}`;const n=r.create(o,e,a,t.config);return((e,t,r,n)=>{if(void 0!==e?.isValid){const o={partType:t.currentPart.type,sectionType:t.currentSection.type,sectionOrder:t.currentSection.order,elementType:r.type,elementOrder:r.order,isValid:e.isValid,elementId:r.config?.slug},a=t.elementValidity.find((e=>e.partType===o.partType&&e.sectionType===o.sectionType&&e.sectionOrder===o.sectionOrder&&e.elementType===o.elementType&&e.elementOrder===o.elementOrder));a?.isValid!==o.isValid&&n.updateFormState({elementValidity:[...t.elementValidity.filter((e=>e!=a)),o]})}})(n,e,t,a),n})(s,c))},[s,c,n,i,(e,t,r)=>{const a=nt(r.type,t),i=rt[a];if(i){const e={error:tt[a],errorMessage:Jo(o,a),success:!1,formSlug:o.id},t=JSON.stringify(e);window?.webkit?.messageHandlers?.messageHandler?.postMessage(t),window?.AndroidFormEventListener?.processFormEvent(t)}return i?{...n.props,error:n.props.error??(i.useDymamicMessage?t.dynamicServerErrorMessage:Jo(o,a))}:e},o,a]}class Uu extends pe{constructor(e){super(),ue(this,e,Bu,Du,i,{form:5,formActions:6,formState:0,sectionElement:1})}}const Vu=e=>e.parts.flatMap((e=>e.sections)).flatMap((e=>e.elements)).filter((e=>e.type===Oe)).map((e=>e.config)).reduce(((t,r)=>{const n=e.organisationConfiguration.schemaFields.find((e=>e.slug===r.slug));return n?{...t,[r.slug]:(r.defaultValue||n["select-options"]?.find((e=>e.default))?.value)??void 0}:{...t}}),{}),Gu=()=>{window.Blaize||(window.Blaize={formPreProcessors:{},formPostProcessors:{},registerFormPreProcessor:function(e,t){window.Blaize.formPreProcessors[e]||(window.Blaize.formPreProcessors[e]=[]),"function"==typeof t&&window.Blaize.formPreProcessors[e].push(t)},registerFormPostProcessor:function(e,t){window.Blaize.formPostProcessors[e]||(window.Blaize.formPostProcessors[e]=[]),"function"==typeof t&&window.Blaize.formPostProcessors[e].push(t)},preProcessFormData:function(e,t){if(window.Blaize.formPreProcessors[e]||window.Blaize.formPreProcessors["*"]){const r=[];window.Blaize.formPreProcessors["*"]&&window.Blaize.formPreProcessors["*"].forEach((function(e){r.push(e)})),window.Blaize.formPreProcessors[e]&&window.Blaize.formPreProcessors[e].forEach((function(e){r.push(e)})),r.forEach((function(e){const r=e(t);null!=r&&(t=r)}))}return t},postProcessFormData:function(e,t,r){if(window.Blaize.formPostProcessors[e]||window.Blaize.formPostProcessors["*"]){const n=[];window.Blaize.formPostProcessors["*"]&&window.Blaize.formPostProcessors["*"].forEach((function(e){n.push(e)})),window.Blaize.formPostProcessors[e]&&window.Blaize.formPostProcessors[e].forEach((function(e){n.push(e)})),n.forEach((function(e){e(t,r)}))}}})};function ju(e){let t,r;const n=e[3].default,o=l(n,e,e[2],null);return{c(){t=P("div"),o&&o.c()},m(n,a){y(n,t,a),o&&o.m(t,null),e[4](t),r=!0},p(e,[t]){o&&o.p&&(!r||4&t)&&d(o,n,e,e[2],r?p(n,e[2],t,null):m(e[2]),null)},i(e){r||(te(o,e),r=!0)},o(e){re(o,e),r=!1},d(r){r&&g(t),o&&o.d(r),e[4](null)}}}function qu(e,t,r){let n,o,{$$slots:a={},$$scope:i}=t,{form:s}=t,c=!1;const l=D();return k((()=>("undefined"!=typeof IntersectionObserver&&(o=new IntersectionObserver((e=>{const t=e[0];c=t?.isIntersecting,l("observe",t),c&&s&&(it(s,"zephr_form_view",null),o.unobserve(n))}),{threshold:.75}),n&&o.observe(n)),()=>{o&&o.disconnect()}))),e.$$set=e=>{"form"in e&&r(1,s=e.form),"$$scope"in e&&r(2,i=e.$$scope)},[n,s,i,a,function(e){U[e?"unshift":"push"]((()=>{n=e,r(0,n)}))}]}class Hu extends pe{constructor(e){super(),ue(this,e,qu,ju,i,{form:1})}}function Ku(e,t,r){const n=e.slice();return n[20]=t[r],n}function Yu(e){let t,r,n,o;t=new Hu({props:{form:e[4],$$slots:{default:[Qu]},$$scope:{ctx:e}}});let a=e[2]&&Zu(e);return{c(){ie(t.$$.fragment),r=E(),a&&a.c(),n=C()},m(e,i){se(t,e,i),y(e,r,i),a&&a.m(e,i),y(e,n,i),o=!0},p(e,r){const o={};8388611&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o),e[2]?a?(a.p(e,r),4&r&&te(a,1)):(a=Zu(e),a.c(),te(a,1),a.m(n.parentNode,n)):a&&(X(),re(a,1,1,(()=>{a=null})),ee())},i(e){o||(te(t.$$.fragment,e),te(a),o=!0)},o(e){re(t.$$.fragment,e),re(a),o=!1},d(e){e&&(g(r),g(n)),ce(t,e),a&&a.d(e)}}}function Wu(t){let r;return{c(){r=P("div"),r.textContent=`${Jo(t[4],tt.UNKNOWN)}`},m(e,t){y(e,r,t)},p:e,i:e,o:e,d(e){e&&g(r)}}}function Ju(e){let t,r;return t=new Uu({props:{form:e[4],formState:e[0],formActions:e[6],sectionElement:e[20]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.formState=e[0]),1&r&&(n.sectionElement=e[20]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Qu(e){let t,r,n,o,a=ne(e[4].sectionFlow.extraElements.concat(e[0].currentSection.elements||[])),i=[];for(let t=0;t<a.length;t+=1)i[t]=Ju(Ku(e,a,t));const s=e=>re(i[e],1,1,(()=>{i[e]=null}));return{c(){t=P("form");for(let e=0;e<i.length;e+=1)i[e].c();_(t,"class","zephr-form-content svelte-1v11ws7"),N(t,"zephr-payment-options-content",e[1])},m(e,a){y(e,t,a);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,null);r=!0,n||(o=v(t,"submit",ep),n=!0)},p(e,n){if(81&n){let r;for(a=ne(e[4].sectionFlow.extraElements.concat(e[0].currentSection.elements||[])),r=0;r<a.length;r+=1){const o=Ku(e,a,r);i[r]?(i[r].p(o,n),te(i[r],1)):(i[r]=Ju(o),i[r].c(),te(i[r],1),i[r].m(t,null))}for(X(),r=a.length;r<i.length;r+=1)s(r);ee()}(!r||2&n)&&N(t,"zephr-payment-options-content",e[1])},i(e){if(!r){for(let e=0;e<a.length;e+=1)te(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)re(i[e]);r=!1},d(e){e&&g(t),b(i,e),n=!1,o()}}}function Zu(e){let t,r;return t=new qt({props:{error:Jo(e[4],e[2]),isPaymentForm:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};4&r&&(n.error=Jo(e[4],e[2])),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Xu(t){let r,n,o,i,s,c,l,u,p=t[8]&&function(t){let r,n,o,a,i,s;return o=new lr({props:{icon:mr}}),{c(){r=P("div"),n=P("button"),ie(o.$$.fragment),_(n,"type","button"),_(n,"class","close-button svelte-1v11ws7"),_(r,"class","close-button-container svelte-1v11ws7")},m(e,c){y(e,r,c),h(r,n),se(o,n,null),a=!0,i||(s=v(n,"click",t[7]),i=!0)},p:e,i(e){a||(te(o.$$.fragment,e),a=!0)},o(e){re(o.$$.fragment,e),a=!1},d(e){e&&g(r),ce(o),i=!1,s()}}}(t);const d=[Wu,Yu],m=[];return o=1,i=m[1]=d[1](t),{c(){r=P("div"),p&&p.c(),n=E(),i.c(),N(r,"zephr-form-max-width",!t[1]),N(r,"zephr-payment-form-max-width",!t[1])},m(o,i){var d;y(o,r,i),p&&p.m(r,null),h(r,n),m[1].m(r,null),c=!0,l||(d=s=ye.call(null,r,t[3]),u=d&&a(d.destroy)?d.destroy:e,l=!0)},p(e,[t]){e[8]&&p.p(e,t),i.p(e,t),s&&a(s.update)&&8&t&&s.update.call(null,e[3]),(!c||2&t)&&N(r,"zephr-form-max-width",!e[1]),(!c||2&t)&&N(r,"zephr-payment-form-max-width",!e[1])},i(e){c||(te(p),te(i),c=!0)},o(e){re(p),re(i),c=!1},d(e){e&&g(r),p&&p.d(),m[1].d(),l=!1,u()}}}const ep=e=>e?.preventDefault();function tp(e,t,r){let n,o,a;k(Gu);let{formConfiguration:i}=t,s=(e=>({...e,parts:e.parts.sort(((e,t)=>et(e.type).order-et(t.type).order)).map((e=>({...e,sections:e.sections.sort(((e,t)=>e.order-t.order)).map((e=>({...e,elements:e.elements.sort(((e,t)=>e.order-t.order))})))})))}))(i);s.environment.debugLogging&&console.log(s);let c="PAYMENT"===s.formType,l={};const u=s.environment.previewMode&&s.environment.previewInitialState?((e,t)=>{const[r,n]=e.includes(":")?e.split(":"):[null,e];return t.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).find((e=>e.section.type===n&&(!r||e.part.type===r)))})(s.environment.previewInitialState,s):null;let p=Object.freeze({currentPart:u?.part??s.parts[0],currentSection:u?.section??s.parts[0].sections[0],paymentOption:null,paymentOptionPrices:null,emailAddress:"",createPassword:"",password:"",confirmCreatePassword:"",accountMembershipCode:"",passwordIsValid:!1,elementValidity:[],canAttemptSectionCompletion:!0,showFieldErrors:!1,loginRegistrationComplete:!1,serverErrors:[],isBusy:!1,isBusyByKey:[],formCannotBeActioned:!1,forgotPassword:!1,promoCode:"",addons:[],discountedPlanPrices:[],paymentProviderFormLoaded:!1,paymentProviderError:null,paymentFormComplete:!1,paymentProviderVendorFields:null,verificationCode:"",userAttributes:Vu(s),socialSignin:!1,paymentProcessed:!1,invitationEmail:"",invitationSent:!1,validChangeFromPlans:[],taxCalculations:{},billingAddress:{country:null,postalCode:null},formPrerequisiteLoaded:!s.sectionFlow.formRequiresPrerequisiteLoading(s),dynamicOfferResult:null,originalDynamicOfferResult:null});const d=e=>(r(0,p=Object.freeze({...p,...e})),s.environment.debugLogging&&console.log(p),s.environment.onStateChanged(e,p),p),m=(e,t)=>{const r=t??"default";if(void 0===l[r]&&(l[r]=0),l[r]+=e,l[r]<0)throw"Negative request count";const n=Object.values(l).some((e=>e>0));n!==p.isBusy&&d({isBusy:n});const o=l[r]>0;o!==p.isBusyByKey[r]&&d({isBusyByKey:{...p.isBusyByKey,[r]:o}})},f={updateFormState:d,attemptCompleteSection:()=>{((e,t,r)=>{if(r.getFormState().canAttemptSectionCompletion){const t=r.updateFormState({showFieldErrors:!1});return ft(e,t,r)}r.updateFormState({showFieldErrors:!0}),Promise.resolve()})(s,0,f)},completeSection:()=>{ft(s,p,f)},jumpToPartStart:e=>{ct(e,s,f)},jumpToSection:e=>{st(e,s,f)},onEvent:e=>{s.environment.previewMode||s.sectionFlow.eventHandlers[e]?.(s,p,f)},incrementRequestCount:(e=null)=>m(1,e),decrementRequestCount:(e=null)=>m(-1,e),getFormState:()=>p,apiUrlBase:s.environment.apiUrlBase};s.environment.previewMode&&s.environment.previewBundle?.setupPreviewMode(s,f),k((()=>{f.onEvent(Ze.FORM_START),it(s,"zephr_form_render",null)}));let h=!1;const y=s.sectionFlow.canDismissFormManually(s);return e.$$set=e=>{"formConfiguration"in e&&r(9,i=e.formConfiguration)},e.$$.update=()=>{if(1&e.$$.dirty){const e=s.sectionFlow.canAttemptSectionCompletion(s,p);e!=p.canAttemptSectionCompletion&&d({canAttemptSectionCompletion:e})}1025&e.$$.dirty&&r(3,n=!h&&p.formPrerequisiteLoaded&&!p.formCannotBeActioned),1&e.$$.dirty&&r(2,o=p.serverErrors[0]&&0===(p.currentSection.elements||[]).filter((e=>nt(e.type,p))).length?p.serverErrors[0]:null),1&e.$$.dirty&&r(1,a=[...Object.values(ot)].find((e=>e.type===p.currentSection.type))?.fullWidth)},[p,a,o,n,s,c,f,()=>r(10,h=!0),y,i,h]}class rp extends pe{constructor(e){super(),ue(this,e,tp,Xu,i,{formConfiguration:9})}}const np={"--zephr-button-borderRadius":"9","--zephr-button-borderWidth":"0","--zephr-button-fontSize":"16","--zephr-button-fontWeight":"normal","--zephr-button-height":"50","--zephr-color-accent-main":"#dcf1fb","--zephr-color-accent-tinted":"#81cdf1","--zephr-color-action-main":"#006edb","--zephr-color-action-tinted":"#0f87ff","--zephr-color-background-main":"#fff","--zephr-color-background-tinted":"#ccc","--zephr-color-text-main":"#000","--zephr-color-text-tinted":"#333","--zephr-color-warning-main":"#d90b00","--zephr-color-warning-tinted":"#ff190d","--zephr-input-borderColor":"#333","--zephr-input-borderRadius":"5","--zephr-input-borderWidth":"1","--zephr-input-height":"50","--zephr-typography-title-fallbackFont":"sans-serif","--zephr-typography-title-font":"Roboto","--zephr-typography-body-fallbackFont":"sans-serif","--zephr-typography-body-font":"Roboto"};function op(e){switch(e){case vt.CHANGE_SUBSCRIPTION:case vt.PAYMENT:return"zephr-payment-form";case vt.REGISTRATION:case vt.COMPLETE_REGISTRATION:return"zephr-registration-form";case vt.CONTACT:return"zephr-contact-form";case vt.DATA_CAPTURE:return"zephr-data-capture-form";default:return""}}const ap=async e=>{if(!document.cookie?.includes("blaize_session"))return e.updateFormState({userSession:!1}),!1;let t;try{t=await gn("blaize/account",{method:"GET"},e)}catch(e){console.error(e)}if(t?.ok){const r=await t.json();e.updateFormState({userExists:!0,emailIsContact:!1,emailAddress:r.identifiers?.email_address,userSession:!0,loginRegistrationComplete:!0})}else e.updateFormState({userSession:!1});return t?.ok},ip=(e,t,r)=>t.parts.find((t=>t.type===e)).sections.flatMap((e=>e.elements)).filter((e=>e.type===Oe)).map((e=>e.config)).reduce(((e,t)=>r.userAttributes?{...e,[t.slug]:r.userAttributes[t.slug]}:{...e}),{}),sp=(e,t,r)=>401===e?t.indexOf("verification is required")>-1?tt.EMAIL_VERIFICATION_REQUIRED:t.indexOf("session must be authenticated")>-1?tt.NO_AUTHENTICATED_SESSION:r.verificationCode?tt.VERIFICATION_CODE_OR_PASSWORD_INCORRECT:tt.LOGIN_FAILED:402===e&&t?.includes("this domain is not supported.")?tt.BLOCKED_EMAIL_DOMAIN:409===e?tt.USER_ALREADY_EXISTS:400===e&&t?.includes("The provided password is not strong enough")?tt.PASSWORD_NOT_STRONG_ENOUGH:404===e&&t?.includes("account")?tt.ACCOUNT_NOT_FOUND:404===e?tt.USER_DOES_NOT_EXIST:429===e&&t?.includes("sessions limit reached")?tt.TOO_MANY_SESSIONS:429===e?tt.NO_ACCOUNT_ACCESS:r.socialSignin?tt.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR:403===e&&t?.includes("Contact creation not enabled")?tt.CONTACT_CREATION_NOT_ENABLED:tt.UNKNOWN_LOGIN_REGISTER_ERROR,cp=(e,t,r)=>{t.organisationConfiguration.ruleAnalyticsEnabled&&gn("zephr/public/rule-outcomes/v1/conversions",{method:"POST",bodyObject:{conversion:e,ruleId:t.ruleId,outcomeId:t.outcomeId}},r)},lp="sharing_id",up=e=>{try{const t=new URL(e);return t.searchParams.has(lp)?(t.searchParams.delete(lp),t.href):e}catch{return e}},pp=(e,t)=>t,dp=(e,t)=>{const r=Ot(e).autoApplyAttributes??{},n=window.Blaize?.preProcessFormData??pp,o={...ip(Xe.ACCOUNT_VERIFICATION.type,e,t),...r},a=(()=>{try{const e=new URLSearchParams(window.location.search).get(lp);return e?{product_sharing_id:e}:null}catch{return null}})();return n(e.id,{identifiers:{email_address:t.emailAddress},validators:{password:t.createPassword||void 0,email_otp:t.verificationCode||void 0,token_exchange:t.socialSigninToken||void 0},attributes:Object.keys(o).length?o:void 0,account_membership_code:t.accountMembershipCode||void 0,...a??{}})},mp=async(e,t,r)=>{const n=dp(e,t),o=await gn("blaize/register",{method:"POST",bodyObject:n},r);return hp(n,o,e,t,r)},fp=async(e,t,r)=>{const n=(e=>({identifiers:{email_address:e.emailAddress},validators:{password:e.password||void 0,email_otp:e.verificationCode||void 0,token_exchange:e.socialSigninToken||void 0}}))(t),o=await gn("blaize/login",{method:"POST",bodyObject:n},r);return hp(null,o,e,t,r)},hp=async(e,t,r,n,o)=>{if(it(r,e?"zephr_form_register":"zephr_form_login",{success:t?.ok}),!t?.ok){n.verificationCode&&o.updateFormState({verificationCodeValid:!1});const e=(await t.json())?.message,a=sp(t.status,e,n);return it(r,"zephr_form_error",{error:tt[a]}),a===tt.PASSWORD_NOT_STRONG_ENOUGH&&o.updateFormState({dynamicServerErrorMessage:e}),o.updateFormState({serverErrors:[a]}),rt[a].jumpToPart&&o.jumpToPartStart(rt[a].jumpToPart),Promise.resolve()}return n.userExists||((e,t)=>{cp("REGISTERED",e,t)})(r,o),t.json().then((async t=>{const a=t.cookie?.includes("blaize_session");if(a)document.cookie=t.cookie;else if(!r.sectionFlow.canPartiallyRegister)return console.warn("No cookie returned from login/register endpoint - most likely incorrect form configuration."),o.updateFormState({serverErrors:[tt.NO_COOKIE_FROM_LOGIN_REGISTER_ERROR]}),Promise.resolve();return e&&window.Blaize?.postProcessFormData&&window.Blaize.postProcessFormData(r.id,e,t),n.verificationCode&&n.currentSection.elements.some((e=>e.type===Ae))&&(o.updateFormState({verificationCodeValid:!0}),await Ra(r)),o.updateFormState({loginRegistrationComplete:!0}),o.onEvent(Ze.LOGIN_REGISTRATION_COMPLETE)}))},yp=async(e,t,r,n)=>{const o=ip(e,t,r);if(0===Object.keys(o).length)return Promise.resolve();const a=await gn("blaize/profile",{method:"PATCH",bodyObject:o},n);if(!a.ok)throw n.updateFormState({serverErrors:[tt.INVALID_USER_ATTRIBUTES]}),it(t,"zephr_form_error",{error:tt[tt.INVALID_USER_ATTRIBUTES]}),`Error submitting user attributes ${JSON.stringify(a)}`;return Promise.resolve()};let gp;const bp=new Uint8Array(16);function Pp(){if(!gp&&(gp="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gp(bp)}const Ap=[];for(let e=0;e<256;++e)Ap.push((e+256).toString(16).slice(1));var Sp={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ep(e,t,r){if(Sp.randomUUID&&!t&&!e)return Sp.randomUUID();const n=(e=e||{}).random||(e.rng||Pp)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return Ap[e[t+0]]+Ap[e[t+1]]+Ap[e[t+2]]+Ap[e[t+3]]+"-"+Ap[e[t+4]]+Ap[e[t+5]]+"-"+Ap[e[t+6]]+Ap[e[t+7]]+"-"+Ap[e[t+8]]+Ap[e[t+9]]+"-"+Ap[e[t+10]]+Ap[e[t+11]]+Ap[e[t+12]]+Ap[e[t+13]]+Ap[e[t+14]]+Ap[e[t+15]]}(n)}const Cp=(e,t,r)=>yp(Xe.PAYMENT.type,e,t,r).then((()=>(null==t.mobilePaymentService?pa(e.organisationConfiguration.paymentProvider).completer:da(e.organisationConfiguration.paymentProvider).completer)(e,t,r).then((()=>{const n={error:null,errorMessage:"",success:!0,formSlug:e.id},o=JSON.stringify(n);if(window?.webkit?.messageHandlers?.messageHandler?.postMessage(o),window?.AndroidFormEventListener?.processFormEvent(o),((e,t)=>{cp(Ot(e).changeSubscriptionMode?Ot(e).changeSubscriptionConversionName??"CHANGE_SUBSCRIPTION":"CUSTOMER",e,t)})(e,r),r.updateFormState({paymentProcessed:!0}),it(e,"zephr_form_purchase",{productId:t.paymentOption.productId,planId:t.paymentOption.slug,price:t.paymentOptionPrices?.totalPrice}),it(e,"purchase",{ecommerce:{transaction_id:Ep(),value:t.paymentOptionPrices?.totalPrice,tax:t.paymentOptionPrices?.taxPrice,currency:Co(e,t),coupon:t.promoCode,items:[{item_id:t.paymentOption.slug,item_name:t.paymentOption.productId,price:t.paymentOptionPrices?.totalPrice,quantity:1}]}}),t.convertCancelSubscriptionToAcceptOffer&&it(e,"zephr_form_subscription_cancel_accept_offer",{canceledProductId:t.selectedSubscription.productId,acceptedProductId:t.paymentOption.productId,productLabel:t.paymentOption.label,currency:t.paymentOption.currencyCode,amount:t.paymentOptionPrices?.totalPrice}),r.jumpToPartStart(Xe.SUCCESS.type),Ot(e).changeSubscriptionMode){const r=t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId)).changesFromSubscription;it(e,"zephr_form_subscription_change",{fromProductId:r.productId,fromProductAmount:r.amount,toProductId:t.paymentOption.productId,toProductAmount:t.paymentOptionPrices.netPriceFormattedString})}})).catch((n=>{const o=null==t.mobilePaymentService?tt.PAYMENT_PROCESSING_ERROR:tt.MOBILE_PAYMENT_PROCESSING_ERROR;console.error("Error completing payment",n),it(e,"zephr_form_payment_failure",{reason:n}),r.updateFormState({mobilePaymentService:null,serverErrors:[o]}),it(e,"zephr_form_error",{error:tt[o]})})))),vp=async(e,t,r)=>{if(!Ot(e).changeSubscriptionMode)return;r.updateFormState({changeSubscriptionProrate:null});const n=pa(e.organisationConfiguration.paymentProvider).changeSubscriptionProrateCalculator;if(!n)return;const o=await n(e,t,r);r.updateFormState({changeSubscriptionProrate:o})},Tp=e=>new URL(e).searchParams.get("subscription"),_p=(e,t)=>0===e.length?[]:Ot(t).paymentOptions.map((r=>{const n=(Ot(t).changeSubscriptionPlanMappings??[]).find((e=>e.toPlan.planSlug===r.slug&&e.toPlan.productId===r.productId));if(!n)return;const o=e.filter((e=>!(e.planId===r.slug&&e.productId===r.productId)&&(n.fromAnyPlan||n.fromPlans.some((t=>t.planSlug===e.planId&&t.productId===e.productId)))));return 0!==o.length?(o.length>1&&console.log("Found multiple valid subscriptions to move to payment option, selecting the first",r),{planSlug:r.slug,productId:r.productId,changesFromSubscription:e[0]}):void 0})).filter(Boolean),Op=async(e,t,r,n,o)=>{const a=pa(e.organisationConfiguration.paymentProvider).existingSubscriptionLoader;if(!a)return console.error(`Existing subscription loader not configured for ${e.organisationConfiguration.paymentProvider}`),void r.updateFormState({formCannotBeActioned:!0});let i;try{i=await a(e,t,r,!0)}catch(e){return console.error("Unable to load subscriptions",e),void r.updateFormState({formCannotBeActioned:!0})}const s=Tp(window.location.href);if(s){const t=i.filter((e=>e.externalId===s));t.length&&_p(t,e).length&&(i=t)}if(n)return void wp(i,t,r);const c=_p(i,e),l=Ot(e).subscriptionSelectionMode;return 0===i.length?console.warn("Not showing form as user has no active subscriptions"):0===c.length&&!l&&o&&console.warn("Not showing form as no payment options can be actioned with the user's current subscriptions"),l&&(i=i.map((t=>(Ot(e).changeSubscriptionPlanMappings.some((e=>e.fromAnyPlan||e.fromPlans.some((e=>e.planSlug===t.planId&&e.productId===t.productId))))?t.cannotBeChanged=!1:t.cannotBeChanged=!0,t)))),r.updateFormState({existingSubscriptions:i,formCannotBeActioned:0===c.length&&!l&&o,validChangeFromPlans:c,formPrerequisiteLoaded:!0}),i},wp=(e,t,r)=>{if(0===e.length)return console.log("No subscriptions available."),void r.updateFormState({existingSubscriptions:[],formCannotBeActioned:!0,validChangeFromPlans:[],formPrerequisiteLoaded:!0});const n=t.dynamicOfferResult;n||console.log("No dynamic offer result available.");const o=n?.products?.flatMap((t=>t.paymentPlans.filter((r=>{const n=e.some((e=>e.planId===r.planId&&e.productId===t.id)),o=e.every((e=>r.charges.every((t=>t.prices?.some((t=>t.currency===e.currency))))));return!n&&o})).map((r=>({planSlug:r.planId,productId:t.id,changesFromSubscription:e.find((e=>r.charges.every((t=>t.prices?.some((t=>t.currency===e.currency))))))}))).filter((e=>!!e.changesFromSubscription))))??[];r.updateFormState({existingSubscriptions:e,formCannotBeActioned:0===o.length,validChangeFromPlans:o,formPrerequisiteLoaded:!0})};let Ip;const Rp=new Promise((function(e){Ip=e})),$p={[Ze.FORM_START]:async(e,t,r)=>{const n=!!Ot(e).dynamicOffer?.id||!!Ot(e).dynamicOfferPreview;return n&&await(async(e,t)=>{const r=Ot(e).dynamicOffer?.id,n=Ot(e).dynamicOfferPreview;if(e.environment.previewMode)return void t.updateFormState({dynamicOfferResult:n});let o;try{o=document.cookie.match(/blaize_session=[0-9a-z-]+/)[0].substring(15)}catch{o=null}if(!r)throw Error("Missing Dynamic Offer id");const a=await gn("zephr/public/decisions/v2/dynamic-offers",{method:"POST",bodyObject:{dynamic_offer:{slug:r},session:o}},t),i=await a.json();t.updateFormState({dynamicOfferResult:i})})(e,r).catch((e=>{console.error("Error loading Dynamic Offer",e)})),ap(r).then((async t=>{if(Ip(Ip),Ot(e).changeSubscriptionMode){r.updateFormState({formCannotBeActioned:!t}),await Op(e,r.getFormState(),r,n,!0);Tp(window.location.href)&&1===r.getFormState().existingSubscriptions.length&&r.jumpToPartStart(Xe.PLAN_SELECT.type)}}))},[Ze.LOGIN_REGISTRATION_COMPLETE]:(e,t,r)=>Nn(e,r.getFormState(),r).then((()=>Fn(e,r.getFormState(),r))).then((()=>r.jumpToPartStart(Xe.PAYMENT.type))),[Ze.SECTION_EMAIL_COMPLETE]:_a,[Ze.SECTION_PASSWORD_RESET_COMPLETE]:Na,[Ze.SECTION_FORGOT_PASSWORD_COMPLETE]:$a,[Ze.PART_PLAN_SELECT_COMPLETE]:(e,t,r)=>Rp.then((async()=>{const n=r.getFormState();if(n.userSession||n.loginRegistrationComplete){const t=await Nn(e,n,r);Fn(e,t,r),vp(e,t,r),r.jumpToPartStart(Xe.PAYMENT.type)}else Fn(e,t,r),vp(e,t,r),r.jumpToPartStart(Xe.ACCOUNT_VERIFICATION.type)})),[Ze.PART_ACCOUNT_VERIFICATION_COMPLETE]:(e,t,r)=>(t.userExists?fp:mp)(e,t,r),[Ze.PART_PAYMENT_COMPLETE]:Cp,[Ze.PART_SUCCESS_COMPLETE]:(e,t,r)=>yp(Xe.SUCCESS.type,e,t,r).then((()=>{window.location.reload()})),[Ze.SELECT_SUBSCRIPTION_COMPLETE]:(e,t,r)=>{const n=_p([t.selectedSubscription],e);r.updateFormState({existingSubscriptions:[t.selectedSubscription],formCannotBeActioned:0===n.length,validChangeFromPlans:n,formPrerequisiteLoaded:!0}),r.jumpToPartStart(Xe.PLAN_SELECT.type)}},Mp=[{type:ot.EMAIL.type,isDisplayedInProgressBar:!0,isVisible:e=>!Ot(e).changeSubscriptionMode},{type:ot.LOGIN_PASSWORD.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>Ot(e).usePassword&&t.userExists&&!t.socialSignin},{type:ot.PASSWORD_SETUP.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>Ot(e).usePassword&&!t.userExists&&!t.socialSignin},{type:ot.SUCCESS.type,isDisplayedInProgressBar:!1,isVisible:()=>!0},{type:ot.PASSWORD_RESET.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>Ot(e).usePassword&&t.forgotPassword},{type:ot.FORGOT_PASSWORD.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>Ot(e).usePassword&&t.forgotPassword},{type:ot.VERIFICATION_CODE_LOGIN.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(t.userExists&&(Ot(e).useVerificationCodes||t.socialSignin))??!1},{type:ot.VERIFICATION_CODE_REGISTRATION.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(!t.userExists&&(Ot(e).useVerificationCodes||t.emailIsContact))??!1},{type:ot.REGISTRATION_CUSTOM.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>!t.userExists}],Np={extraElements:[{type:Ce,order:-1}],sectionVisibilities:Mp,eventHandlers:$p,canAttemptSectionCompletion:(e,t)=>{const r=pa(e.organisationConfiguration.paymentProvider);return!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).filter((e=>!(e.elementType===Ee&&r.canAttemptIncompletePaymentFormSubmission&&t.paymentProviderFormLoaded))).some((e=>!e.isValid))},canDismissFormManually:e=>Ot(e).changeSubscriptionMode,formRequiresPrerequisiteLoading:e=>Ot(e).changeSubscriptionMode},xp={extraElements:[],eventHandlers:{[Ze.LOGIN_REGISTRATION_COMPLETE]:async(e,t,r)=>{const n=Ot(e),o=Ta(e);return!t.userExists&&(o||e.organisationConfiguration.requireEmailVerfication&&!n.useVerificationCodes)?(await va(e,"register",t.emailAddress,r),await st(ot.EMAIL_VERIFIED.type,e,r),Promise.resolve()):(n.showSuccessOnFormCompletion&&!t.userExists?await st(ot.SUCCESS.type,e,r):(window.location.href=up(window.location.href),window.flowpoint&&window.flowpoint.track("Registration/Login Form Submitted")),Promise.resolve())},[Ze.SECTION_EMAIL_COMPLETE]:_a,[Ze.SECTION_PASSWORD_RESET_COMPLETE]:Na,[Ze.SECTION_FORGOT_PASSWORD_COMPLETE]:$a,[Ze.PART_ACCOUNT_VERIFICATION_COMPLETE]:(e,t,r)=>(t.userExists?fp:mp)(e,t,r),[Ze.PART_SUCCESS_COMPLETE]:()=>(window.location.href=up(window.location.href),window.flowpoint&&window.flowpoint.track("Registration/Login Form Submitted"),Promise.resolve())},sectionVisibilities:[{type:ot.EMAIL.type,isDisplayedInProgressBar:!0,isVisible:()=>!0},{type:ot.LOGIN_PASSWORD.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>Ot(e).usePassword&&t.userExists&&!t.socialSignin},{type:ot.PASSWORD_SETUP.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>Ot(e).usePassword&&!t.userExists&&!t.socialSignin},{type:ot.PASSWORD_RESET.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>Ot(e).usePassword&&t.forgotPassword},{type:ot.FORGOT_PASSWORD.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>Ot(e).usePassword&&t.forgotPassword},{type:ot.VERIFICATION_CODE_LOGIN.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(t.userExists&&(Ot(e).useVerificationCodes||t.socialSignin))??!1},{type:ot.VERIFICATION_CODE_REGISTRATION.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(!t.userExists&&(Ot(e).useVerificationCodes||t.emailIsContact))??!1},{type:ot.REGISTRATION_CUSTOM.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>!t.userExists},{type:ot.SUCCESS.type,isDisplayedInProgressBar:!1,isVisible:()=>!0},{type:ot.EMAIL_VERIFIED.type,isDisplayedInProgressBar:!1,isVisible:e=>e.organisationConfiguration.requireEmailVerfication&&!Ot(e).useVerificationCodes},{type:ot.PASSWORDLESS_VIA_LOGIN_LINK.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>t.userExists&&Ta(e)}],canAttemptSectionCompletion:(e,t)=>!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).some((e=>!e.isValid)),canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1,canPartiallyRegister:!0},Lp=(e,t)=>t,Fp=async(e,t,r)=>{const n=((e,t)=>{const r=Ot(e).autoApplyAttributes??{},n=window.Blaize?.preProcessFormData??Lp,o={...ip(Xe.CONTACT_VERIFICATION.type,e,t),...r};return n(e.id,{identifiers:{email_address:t.emailAddress},attributes:Object.keys(o).length?o:void 0})})(e,t);return(async(e,t,r,n,o)=>{const a=await t.json();if(t?.ok)return cp("CONTACT",r,o),window.Blaize?.postProcessFormData&&window.Blaize.postProcessFormData(r.id,e,a),Promise.resolve(!0);const i=sp(t.status,a?.message,n);return o.updateFormState({serverErrors:[i]}),it(r,"zephr_form_error",{error:tt[i]}),rt[i].jumpToPart&&o.jumpToPartStart(rt[i].jumpToPart),Promise.resolve(!1)})(n,await gn("zephr/createContact",{method:"POST",bodyObject:n},r),e,t,r)},zp={extraElements:[],eventHandlers:{[Ze.FORM_START]:async(e,t,r)=>{await ap(r)},[Ze.PART_CONTACT_VERIFICATION_COMPLETE]:async(e,t,r)=>{const n=Ot(e);try{await Fp(e,t,r),n.showSuccessOnFormCompletion?await ct(Xe.SUCCESS.type,e,r):window.location.reload()}catch(t){console.error(t),await st(ot.EMAIL.type,e,r)}}},sectionVisibilities:[{type:ot.EMAIL.type,isDisplayedInProgressBar:!1,isVisible:()=>!0},{type:ot.REGISTRATION_CUSTOM.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>!t.userExists}],canAttemptSectionCompletion:(e,t)=>!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).some((e=>!e.isValid)),canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1},kp=(e,t)=>t,Dp=async(e,t,r,n)=>{const o=((e,t,r)=>{const n=window.Blaize?.preProcessFormData??kp,o=ip(r,e,t),a=Ot(e).autoApplyAttributes??{};return n(e.id,{...o,...a,...t.createPassword&&{"blaize-validator":t.createPassword}})})(e,t,n);t.fireCancelationReasonEvent&&r.updateFormState({cancelationReasonAttributes:o});return(async(e,t,r,n,o,a)=>{if(t?.ok){n.formType==vt.UPDATE_PROFILE&&it(n,"zephr_form_profile_update",{success:t?.ok,...Object.entries(r).reduce(((e,[t,r])=>({...e,[`attr_${t}`]:r})),{})}),n.formType==vt.DATA_CAPTURE&&(cp("Data Captured",n,a),it(n,"zephr_form_data_capture",{success:t?.ok,...Object.entries(r).reduce(((e,[t,r])=>({...e,[`attr_${t}`]:r})),{})})),n.formType==vt.COMPLETE_REGISTRATION&&(cp("Completed Registration",n,a),it(n,"zephr_form_complete_registration",{success:t?.ok,...Object.entries(r).reduce(((e,[t,r])=>({...e,[`attr_${t}`]:r})),{})}));const o=await t.json();return e&&window.Blaize?.postProcessFormData&&window.Blaize.postProcessFormData(n.id,e,o),Promise.resolve(!0)}const i=(await t.json())?.message,s=sp(t.status,i,o);return a.updateFormState({serverErrors:[s]}),it(n,"zephr_form_error",{error:tt[s]}),Promise.resolve(!1)})(o,await gn("blaize/profile",{method:"PATCH",bodyObject:o},r),ip(n,e,t),e,t,r)},Bp={extraElements:[],eventHandlers:{[Ze.FORM_START]:async(e,t,r)=>{const n=e.parts.map((e=>e.sections)).reduce(((e,t)=>{const r=t.map((e=>e.elements.filter((e=>"user_attribute"==e.type&&e.config.hideIfSet)).map((e=>e.config.slug))));return e.concat(r)}),[]).flat(),o=[];try{const a=await gn("blaize/profile",{method:"GET"},r);if(a?.ok){const i=await a.json();Ot(e).autoApplyAttributes&&Object.keys(Ot(e).autoApplyAttributes).forEach((e=>{Object.prototype.hasOwnProperty.call(i,e)&&delete i[e]})),n.forEach((e=>{Object.prototype.hasOwnProperty.call(i,e)&&o.push(e)})),o.length==Object.keys(t.userAttributes).length&&e.formType!=vt.COMPLETE_REGISTRATION?console.warn("Not showing form as user has no attributes to update"):r.updateFormState({formPrerequisiteLoaded:!0,hideIfSetAttributes:o,userAttributes:{...i}})}}catch(e){console.error(e)}},[Ze.PART_PROFILE_UPDATE_COMPLETE]:async(e,t,r)=>{const n=Ot(e);try{await Dp(e,t,r,Xe.PROFILE_UPDATE.type).then((async t=>{t&&n.showSuccessOnFormCompletion?await ct(Xe.SUCCESS.type,e,r):t&&window.location.reload()}))}catch(e){console.error(e)}}},sectionVisibilities:[],canAttemptSectionCompletion:(e,t)=>!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).some((e=>!e.isValid)),canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!0},Up=async(e,t,r)=>{r.incrementRequestCount();try{await Promise.all([Gp(r),jp(r)])}finally{r.decrementRequestCount()}},Vp=async(e,t,r,n)=>{r.updateFormState({emailAddress:null,password:null,createPassword:null,passwordIsValid:null,verificationCode:null,currentPassword:null,serverErrors:[]}),n?await Up(0,0,r):Up(0,0,r),await ct(Xe.PROFILE_UPDATE.type,e,r)},Gp=async e=>{try{const t=await gn("blaize/profile",{method:"GET"},e),r=await t.json();e.updateFormState({readOnlyAttributeValues:r})}catch(e){console.error("Unable to load user profile",e)}},jp=async e=>{try{const t=await gn("blaize/account",{method:"GET"},e),r=(await t.json())?.identifiers.email_address;e.updateFormState({readOnlyEmail:r})}catch(e){console.error("Unable to load user email",e)}},qp={extraElements:[],eventHandlers:{[Ze.FORM_START]:Up,[Ze.GO_BACK]:async(e,t,r)=>Vp(e,t,r,!1),[Ze.UPDATE]:async(e,t,r)=>{await ct(Xe.ATTRIBUTES_UPDATE.type,e,r)},[Ze.PART_EMAIL_UPDATE_COMPLETE]:async(e,t,r)=>{const n=await(async(e,t,r)=>{try{const n=!t.password,o={current_identifiers:{email_address:t.readOnlyEmail},new_identifiers:{email_address:t.emailAddress},...n?{}:{validators:{password:t.password}}},a=await gn(n?"blaize/users/update-email":"zephr/users/update-email",{method:"POST",bodyObject:o},r);return it(e,"zephr_form_email_update_code_sent",{success:a?.ok}),!!a.ok||(r.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]}),!1)}catch(t){return r.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]}),!1}})(e,t,r);n&&await ct(Xe.EMAIL_UPDATE_OTP.type,e,r)},[Ze.VERIFY_EMAIL_UPDATE_OTP]:async(e,t,r)=>{const n=await(async(e,t,r)=>{r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0});const n=await gn(`zephr/users/update-email/${t.verificationCode}`,{method:"POST",bodyObject:{current_identifiers:{email_address:t.readOnlyEmail}}},r);return it(e,"zephr_form_password_reset_code_validate",{success:n?.ok}),n.ok?(await Ra(e),r.decrementRequestCount(),!0):(r.updateFormState({serverErrors:[tt.VERIFICATION_CODE_INCORRECT]}),it(e,"zephr_form_error",{error:tt[tt.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),!1)})(e,t,r);n&&await Vp(e,t,r,!0)},[Ze.PART_PASSWORD_UPDATE_COMPLETE]:async(e,t,r)=>{const n=await(async(e,t,r)=>{try{const n={current_validators:{password:t.currentPassword},new_validators:{password:t.createPassword}},o=await gn("zephr/users/change-password",{method:"POST",bodyObject:n},r);return it(e,"zephr_form_password_update_code_sent",{success:o?.ok}),!!o.ok||(r.updateFormState({serverErrors:[tt.UNKNOWN]}),!1)}catch(e){return r.updateFormState({serverErrors:[tt.UNKNOWN]}),!1}})(e,t,r);n&&await ct(Xe.PASSWORD_UPDATE_OTP.type,e,r)},[Ze.VERIFY_PASSWORD_UPDATE_OTP]:async(e,t,r)=>{const n=await(async(e,t,r)=>{r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0});const n=await gn(`zephr/users/change-password/${t.verificationCode}`,{method:"GET"},r);return it(e,"zephr_form_password_update_code_validate",{success:n?.ok}),n.ok?(await Ra(e),r.decrementRequestCount(),!0):(r.updateFormState({serverErrors:[tt.VERIFICATION_CODE_INCORRECT]}),it(e,"zephr_form_error",{error:tt[tt.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),!1)})(e,t,r);n&&await Vp(e,t,r,!0)},[Ze.PART_ATTRIBUTES_UPDATE_COMPLETE]:async(e,t,r)=>{await Dp(e,t,r,Xe.ATTRIBUTES_UPDATE.type)&&await Vp(e,t,r,!0)}},sectionVisibilities:[],canAttemptSectionCompletion:(e,t)=>!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).some((e=>!e.isValid)),canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1},Hp=async(e,t,r)=>{const n=pa(e.organisationConfiguration.paymentProvider)?.existingSubscriptionLoader;n||console.error(`Existing subscription loader not configured for ${e.organisationConfiguration.paymentProvider}`);const o=n?await n(e,t,r,!1):[];return r.updateFormState({existingSubscriptions:o}),o},Kp=async(e,t,r)=>{try{(await gn(`zephr/subscriptions/${t.selectedSubscription.externalId}`,{method:"DELETE"},r)).ok?(t.fireCancelationReasonEvent&&it(e,"zephr_form_subscription_cancel_reason",{productId:t.selectedSubscription.productId,...Object.entries(t.cancelationReasonAttributes).reduce(((e,[t,r])=>({...e,[`attr_${t}`]:r})),{})}),it(e,"zephr_form_subscription_cancel",{productId:t.selectedSubscription.productId,productLabel:t.selectedSubscription.productLabel,currency:t.selectedSubscription.currency,amount:t.selectedSubscription.amount}),e.parts.some((e=>e.type==Xe.CANCEL_SUCCESS.type))?r.jumpToPartStart(Xe.CANCEL_SUCCESS.type):r.jumpToPartStart(Xe.SUCCESS.type)):(r.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]}))}catch{r.updateFormState({serverErrors:[tt.UNKNOWN]}),it(e,"zephr_form_error",{error:tt[tt.UNKNOWN]})}},Yp={extraElements:[],eventHandlers:{[Ze.FORM_START]:async(e,t,r)=>{const n=Ot(e).hasSaveOffer?await Op(e,t,r,!1,!1):await Hp(e,t,r),o=Tp(window.location.href);if(!o)return;const a=n.find((e=>e.externalId===o));a&&(r.updateFormState({selectedSubscription:a,disableBackButton:!0}),r.completeSection())},[Ze.SELECT_SUBSCRIPTION_COMPLETE]:async(e,t,r)=>{Ot(e).hasCancelReason?(r.updateFormState({fireCancelationReasonEvent:!0,cancelFlowSubscriptionSelectedId:t.selectedSubscription.externalId}),r.jumpToPartStart(Xe.ATTRIBUTES_UPDATE.type)):0===t.validChangeFromPlans.length?await Kp(e,t,r):Ot(e).hasSaveOffer?(r.updateFormState({cancelFlowSubscriptionSelectedId:t.selectedSubscription.externalId}),r.jumpToPartStart(Xe.PLAN_SELECT.type)):await Kp(e,t,r)},[Ze.GO_BACK]:async(e,t,r)=>(r.jumpToPartStart(Xe.SELECT_SUBSCRIPTION.type),Promise.resolve()),[Ze.PART_PLAN_SELECT_COMPLETE]:async(e,t,r)=>{if(t.confirmCancel)await Kp(e,t,r);else{const t=r.getFormState(),n=await Nn(e,t,r);Fn(e,n,r),vp(e,n,r),r.updateFormState({convertCancelSubscriptionToAcceptOffer:!0}),r.jumpToPartStart(Xe.PAYMENT.type)}},[Ze.PART_PAYMENT_COMPLETE]:Cp,[Ze.PART_ATTRIBUTES_UPDATE_COMPLETE]:async(e,t,r)=>{await Dp(e,t,r,Xe.ATTRIBUTES_UPDATE.type)&&(0===t.validChangeFromPlans.length?await Kp(e,t,r):Ot(e).hasSaveOffer?r.jumpToPartStart(Xe.PLAN_SELECT.type):await Kp(e,t,r))}},sectionVisibilities:[],canAttemptSectionCompletion:()=>!0,canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1},Wp={[Ze.FORM_START]:async(e,t,r)=>{await Hp(e,t,r)},[Ze.GO_BACK]:async(e,t,r)=>(r.jumpToPartStart(Xe.LIST_SUBSCRIPTIONS.type),Promise.resolve()),[Ze.PART_CHANGE_PAYMENT_COMPLETE]:async(e,t,r)=>{const n=pa(e.organisationConfiguration.paymentProvider).changePaymentCompleter;await n(e,t,r).then((()=>{r.updateFormState({paymentProviderFormBusy:!1}),r.jumpToPartStart(Xe.SUCCESS.type),it(e,"zephr_form_payment_method_changed",null)})).catch((n=>{const o=null==t.mobilePaymentService?tt.PAYMENT_PROCESSING_ERROR:tt.MOBILE_PAYMENT_PROCESSING_ERROR;console.error("Error completing payment change",n),r.updateFormState({mobilePaymentService:null,paymentProviderFormBusy:!1,serverErrors:[o]}),it(e,"zephr_form_error",{error:tt[o]})}))}},Jp={extraElements:[{type:Ce,order:-1}],eventHandlers:Wp,sectionVisibilities:[],canAttemptSectionCompletion:(e,t)=>!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).some((e=>!e.isValid)),canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1},Qp={extraElements:[],eventHandlers:{[Ze.FORM_START]:async(e,t,r)=>{await lu(e,t,r)}},sectionVisibilities:[],canAttemptSectionCompletion:(e,t)=>!t.elementValidity.filter((e=>e.partType===t.currentPart.type&&e.sectionType===t.currentSection.type&&e.sectionOrder===t.currentSection.order)).some((e=>!e.isValid)),canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1},Zp={[vt.PAYMENT]:Np,[vt.CHANGE_SUBSCRIPTION]:Np,[vt.REGISTRATION]:xp,[vt.CONTACT]:zp,[vt.DATA_CAPTURE]:Bp,[vt.COMPLETE_REGISTRATION]:Bp,[vt.UPDATE_PROFILE]:qp,[vt.CANCEL_SUBSCRIPTION]:Yp,[vt.LIST_SUBSCRIPTIONS]:Jp,[vt.DEVICES]:Qp,[vt.EMPTY]:{extraElements:[],sectionVisibilities:[],eventHandlers:{},canAttemptSectionCompletion:()=>!0,canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1}},Xp=Date.parse("2024-04-19T00:00:00Z"),ed={"--zf-container-color":"unset","--zf-container-bgColor":"#fff","--zf-container-borderRadius":"0","--zf-input-bgColor":"#fff","--zf-payment-options-border":"1px solid #000","--zf-payment-options-color":"#000","--zf-payment-options-bgColor":"#fff","--zf-payment-summary-border":"1px solid #000","--zf-payment-summary-borderRadius":"0","--zf-payment-summary-color":"unset","--zf-payment-summary-bgColor":"transparent"},td=(e,t)=>(t||0)<Xp?((e,t)=>`${e};\n${Object.entries(t).map((([e,t])=>`${e}: ${t}`)).join(";\n")}`)(e,ed):e;function rd(e){let t,r,n,o;return r=new rp({props:{formConfiguration:e[2]}}),{c(){t=P("div"),ie(r.$$.fragment),_(t,"id",e[2].formId),_(t,"class",n=f(`zephr-form ${op(e[0])}`)+" svelte-jjl1p8"),_(t,"style",e[1])},m(e,n){y(e,t,n),se(r,t,null),o=!0},p(e,[r]){(!o||1&r&&n!==(n=f(`zephr-form ${op(e[0])}`)+" svelte-jjl1p8"))&&_(t,"class",n)},i(e){o||(te(r.$$.fragment,e),o=!0)},o(e){re(r.$$.fragment,e),o=!1},d(e){e&&g(t),ce(r)}}}function nd(e,t,r){let{formType:n}=t,{formConfig:o}=t,{formTypeConfig:a}=t,{organisationConfig:i}=t,{environment:s={}}=t;const c={apiUrlBase:"",onStateChanged:()=>{},debugLogging:!1,reduceDelays:!1,previewMode:!1,...s,...o?._spikeApiUrl?{apiUrlBase:o._spikeApiUrl}:{}},l=JSON.parse(i.siteStyles??"{}"),u=td((e=>{const t={},r=(e,n)=>{null!==e&&"object"==typeof e?Object.entries(e).forEach((([e,t])=>{r(t,n.concat(`${n?"-":""}${e}`))})):t[`--zephr-${n}`]=e};return r(e,""),Object.entries({...np,...t}).map((([e,t])=>`${e}: ${t}`)).join(";\n")})(l),o.timestamp),p=(e=>{const t=Zp[e];if(!t)throw`No flow for form type ${e}`;return t})(n),d=Xo(o.languagePack,o),m=Xo(o.languagePack,a),f=Xo(o.languagePack,i),h=ac(),y=n===vt.PAYMENT,g={environment:c,formType:n,...d,organisationConfiguration:f,typeConfiguration:m,sectionFlow:p,uniqueKey:h,formId:y?"zephr-payment-form-root":`zephr-form-root-${h}`};return e.$$set=e=>{"formType"in e&&r(0,n=e.formType),"formConfig"in e&&r(3,o=e.formConfig),"formTypeConfig"in e&&r(4,a=e.formTypeConfig),"organisationConfig"in e&&r(5,i=e.organisationConfig),"environment"in e&&r(6,s=e.environment)},[n,u,g,o,a,i,s]}class od extends pe{constructor(e){super(),ue(this,e,nd,rd,i,{formType:0,formConfig:3,formTypeConfig:4,organisationConfig:5,environment:6})}}null==window.Zephr&&(window.Zephr={}),window.Zephr.renderForm=(e,t)=>{const r="string"==typeof e||e instanceof String?document.getElementById(e):e;return new od({target:r,props:t})},window.Zephr.translateFormProps=(e,t)=>{if("main:1"===e)return t;throw`Unknown props version ${e}`}}(); </script> <style> .zephr-payment-form { max-width: calc(var(--content-max) + 40px); } .zephr-payment-form .box-top, .zephr-payment-form .inner-box { border-color: #DCDFE4 !important; } .zephr-payment-form .box-top-text { letter-spacing: 0.5px; text-transform: uppercase; } .zephr-payment-form .box-content h2 { --heading-font-family: ivypresto-display, serif; --heading-font-weight: 600; font-size: 36px; letter-spacing: -0.5px; line-height: 1.2; } .zephr-payment-form .box-content h5 { --heading-font-family: libre-franklin, sans-serif; --heading-font-weight: 400; font-size: 1rem; line-height: 1.4; } .zephr-payment-form .zephr-payment-form-button { letter-spacing: 0.5px; text-transform: uppercase; transition: 0.2s background-color ease; } .zephr-payment-login-link>a, .zephr-form-link, .zephr-payment-form-verification-resend-link { color: #DA0A0A !important; } .zephr-payment-form .zephr-payment-form-summary { font-size: 1rem; line-height: 1.4; } .zephr-payment-form .zephr-payment-form-max-width { border: 1px solid #1D1D1F; padding: 20px; max-width: 40.75rem; } .zephr-payment-form-summary, .zephr-payment-form-summary-line { border-color: #DCDFE4; } /* WRAP CUSTOM CSS */ .box-container ul { list-style: none; padding: 0px; } .box-container ul li { font-size: 12pt; margin: 5pt 0; } .box-container ul li:before { content: '\2713'; margin: 0 1em; } .highlighted .box-top{ background-color: #f52222 !important; color:#FFFFFF !important; } .box-content{ margin-bottom: 0px !important; padding-bottom: 0px !important; } .zephr-payment-form-button{ margin-top: 0px !important; padding-top: 0px !important; } .zephr-payment-login-link{ color: #000 !importanti; } </style> <div id="zephr-form-INQnHK" class="zephr-form-container"> </div> <script data-cmp-ab="2"> var element = document.currentScript; while(!(element.classList && element.classList.contains('zephr-form-container'))){ element = element.previousSibling; } window.Zephr.renderForm(element, window.Zephr.translateFormProps("main:1", {"formType":"PAYMENT","formConfig":{"parts":[{"type":"plan-select","label":"Plan Select","sections":[{"type":"plan_select","label":"Plan Select","order":0,"tab":"plans","elements":[{"type":"payment_option_selection","config":{},"order":0,"id":"2a3b0b6e-8e67-4c05-b6f8-9f7339bd8998"},{"type":"show_login_link","config":{"enabled":true,"alreadyRegText":"Already a registered user?","loginText":"Login","url":"/login"},"order":1,"id":"5ace9df6-de0e-416c-8031-e7b7c6e4616d"}]}]},{"type":"account-verification","label":"Account Verification","sections":[{"type":"email","order":1,"label":"Account Verification","elements":[{"type":"payment_summary","order":1,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"1b761c3b-60bf-457e-aeb4-90a86c2980b8"},{"type":"email_address","order":2,"config":{"label":"Email","placeholder":"name@provider.com","disabled":false},"id":"a8a328f9-4fc2-4dd6-a26b-7307ed65318e"},{"type":"button","order":3,"config":{"text":"Continue"},"id":"a214da55-ec4e-4e6c-bd07-9db09cfa87f4"},{"type":"divider","order":4,"config":{"text":"OR USE","showLine":true,"show":false},"id":"79de35d6-1b89-497c-bb68-1c252197a9ad"},{"type":"social_sign_in","order":5,"config":{"Google":false,"Facebook":true,"labelText":"Continue with"},"id":"d2cabb57-f2f4-4299-8a09-78933ccfa158"},{"type":"text","order":6,"config":{"text":"<pre>This offer is not extendable to renewals or to any subsequent subscription years. These Terms of Service (these “Terms”) are entered into between TheWrap (“WrapPRO”, “us” or “we”), and you (“you” or “User”) and constitute a legally binding agreement between you and us. These Terms govern all use of thewrap.com website and any other website owned or operated by TheWrap (collectively, the “Website”), and all content, services and products purchased or accessed through the Website (collectively, the “Services”). You accept these Terms by using the Website or the Services. If you do not agree to these Terms, then you may not access or use the Website or the Services. Your use of the Website and the Services is also governed by TheWrap’s Privacy Policy, currently accessible at www.thewrap.com/members/privacy-policy. The Services are available only to individuals who are at least 13 years old.</pre>"},"id":"fcf80c0e-79cc-4398-a0eb-30efb9e29a9a"}],"tab":"email"},{"type":"verification_code_registration","order":2,"label":"Registration via Verification Code","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"id":"4737007b-d28c-4cde-8719-52052498c682"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"4298d8c1-41fe-4e65-a634-97c12e348cac"},{"type":"text","order":3,"config":{"text":"A message with a code has been sent to"},"id":"20ec4532-9851-471c-8980-f6eddef16ed3"},{"type":"email_address","order":4,"config":{"label":"Email","placeholder":"name@provider.com","disabled":true},"id":"eacecc40-8587-4de0-b461-a842a3432cd0"},{"type":"text","order":5,"config":{"text":"Enter the code in the box below."},"id":"ddff5055-f428-458a-8496-eb2cf0de95bf"},{"type":"otp_code","order":6,"config":{"label":"Code","placeholder":"e.g. 350271","resendText":"Didn't get a code?","message":"Resent!"},"id":"0820e4fc-f755-4af6-8036-9a1ab4ff1030"}],"tab":"reg"},{"type":"password_setup","order":3,"label":"Password Setup","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"id":"8f5f56c8-116a-43f3-99dd-13fb82c5b8ab"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"32d43a98-2d80-495b-aad0-b38ccbce0434"},{"type":"text","order":3,"config":{"text":"Create an account"},"id":"f90e32c7-5e7c-4243-a158-f90d8e2751e3"},{"type":"email_address","order":4,"config":{"label":"Email","placeholder":"name@provider.com","disabled":true},"id":"6c2f679e-dc67-4b80-a2b4-6c2e87f5374c"},{"type":"password","order":5,"config":{"password":"Password","placeholder":"","show":"Show","hide":"Hide","passValidatorEnabled":true,"confirm":"Confirm Password","confirmPlaceholder":""},"id":"fb2f321d-b780-4eaf-b00c-5b1ec9800abf"},{"type":"button","order":6,"config":{"isSubmit":false,"text":"Continue"},"id":"688f9d94-d9cb-4e53-9234-690cd6843348"},{"type":"text","order":7,"config":{"text":"<pre>The 'Cyber Week' promotional discount is exclusively available to individuals who are subscribing for the first time and is applicable solely for the initial year of their subscription. This offer is not extendable to renewals or to any subsequent subscription years. These Terms of Service (these “Terms”) are entered into between TheWrap (“WrapPRO”, “us” or “we”), and you (“you” or “User”) and constitute a legally binding agreement between you and us. These Terms govern all use of thewrap.com website and any other website owned or operated by TheWrap (collectively, the “Website”), and all content, services and products purchased or accessed through the Website (collectively, the “Services”). You accept these Terms by using the Website or the Services. If you do not agree to these Terms, then you may not access or use the Website or the Services. Your use of the Website and the Services is also governed by TheWrap’s Privacy Policy, currently accessible at www.thewrap.com/members/privacy-policy. The Services are available only to individuals who are at least 13 years old.</pre>\n<p> </p>"},"id":"2f8d9329-12f9-4407-9c8a-049fe4284ebf"}],"tab":"reg"},{"type":"verification_code_login","order":4,"label":"Passwordless Login via Login Code","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"id":"4db862c8-6135-4f79-be52-f9c48ab32480"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"13544490-36ed-4e34-9b02-e44c8b6d216f"},{"type":"text","order":3,"config":{"text":"A message with a code has been sent to"},"id":"94945519-a0b1-482c-9e4b-043dd935f3d1"},{"type":"email_address","order":4,"config":{"label":"Email","placeholder":"name@provider.com","disabled":true},"id":"72e7a041-1b11-480f-bf6e-b8694beb2fde"},{"type":"text","order":5,"config":{"text":"Enter the code in the box below."},"id":"92c2466c-01e5-464e-9232-79749b961cf2"},{"type":"otp_code","order":6,"config":{"label":"Code","placeholder":"e.g. 350271","resendText":"Didn't get a code?","message":"Resent!"},"id":"43278308-b87f-4a9f-8158-528d0b92b590"}],"tab":"login"},{"type":"login_password","order":5,"label":"Login with Password","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"id":"9cce4b11-7e9a-46f7-b862-dc8e4f94e5e2"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"f11ff659-bee7-45ef-838c-6095efbc2e63"},{"type":"email_address","order":3,"config":{"label":"Email","placeholder":"name@provider.com","disabled":true},"id":"4c38a54d-2f5b-472a-b199-633a20ffdc5b"},{"type":"password","order":4,"config":{"isLogin":true,"password":"Password","placeholder":"","show":"Show","hide":"Hide"},"id":"ac1ccebe-73ad-4a70-b507-27b2fddaa362"},{"type":"link","order":5,"config":{"label":"Reset Password Link","text":"Forgot Password?"},"id":"818a632a-10c6-4ad8-b47d-ad0c8cd3a8a3"},{"type":"button","order":6,"config":{"isSubmit":true,"text":"Submit"},"id":"f65620f3-4d00-4abd-b52e-ffc480642e3f"}],"tab":"login"},{"type":"forgot_password","order":6,"label":"Forgot Password","elements":[{"type":"text","order":1,"config":{"text":"Reset your password"},"id":"e8d4dba2-8341-4a15-abf2-cb2639266db9"},{"type":"text","order":2,"config":{"text":"A message with the code was sent to..."},"id":"7cd92ca5-9dd1-4ce8-b1c9-09565e3b8a93"},{"type":"email_address","order":3,"config":{"label":"Email","placeholder":"name@provider.com","disabled":true},"id":"a47dc890-2d3b-4ff7-a1d8-b87ab458225f"},{"type":"text","order":4,"config":{"text":"Enter the code in the box below."},"id":"67ca0066-6cb9-44e6-85d5-944cd3c6dbc8"},{"type":"otp_code","order":5,"config":{"label":"Code","placeholder":"e.g. 350271","resendText":"Didn't get a code?","message":"Resent!"},"id":"3c3c2d14-6deb-4a29-aff8-1882832fb619"},{"type":"divider","order":6,"config":{"text":"OR USE","showLine":true,"show":true},"id":"f14a6e57-2b27-4b4c-bb7b-8987b1fc9392"},{"type":"button","order":7,"config":{"isSubmit":false,"isLogin":true,"text":"Login"},"id":"3e674246-b1a7-4e9b-8dd9-b354314e8954"}],"tab":"login"},{"type":"reset_password","order":7,"label":"Reset Password","elements":[{"type":"text","order":1,"config":{"text":"Reset your password"},"id":"a39ea0f1-ea8d-4e52-8b60-3a1178eca2ea"},{"type":"email_address","order":2,"config":{"label":"Email","disabled":true},"id":"945bf54f-27b6-4dc6-ab8f-bb71b6ce72f2"},{"type":"password","order":3,"config":{"password":"Password","placeholder":"","show":"Show","hide":"Hide","passValidatorEnabled":true,"confirm":"Confirm Password","confirmPlaceholder":""},"id":"bce27689-1a46-48bb-ae8d-1f91ade56f9f"},{"type":"button","order":4,"config":{"isSubmit":true,"text":"Submit"},"id":"df228f20-3552-42f3-86e6-79ced270b243"}],"tab":"login"}]},{"type":"payment","sections":[{"type":"payment_details","order":1,"label":"Payment Details","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"hidden":false,"id":"14b97e3f-dd31-4997-995b-dabefd738bf0"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"hidden":false,"id":"d0ffb2f4-7ca6-4290-b36c-ffe3cc2ae85a"},{"type":"user_attribute","order":3,"config":{"slug":"first-name","label":"First Name","inputType":"TEXT","required":true},"hidden":false,"id":"7de35c08-d812-454d-88b1-999b44faa452"},{"type":"user_attribute","order":4,"config":{"slug":"last-name","label":"Last Name","inputType":"TEXT","required":true},"hidden":false,"id":"624e0ba2-515e-429e-9213-123d00d964c0"},{"type":"payment","order":5,"config":{},"hidden":false,"id":"55eea59f-ee64-4a63-9034-c095fd8daa11"},{"type":"mobile_payment","order":6,"config":{"enabled":true,"showActivateTip":false},"hidden":false,"id":"f03d5faa-97c8-4175-9708-400166a3bc5e"},{"type":"button","order":7,"config":{"text":"Confirm and process payment"},"hidden":false,"id":"60d445b8-c1c3-489f-84d5-312cdb83a17c"}],"tab":"pay"}]},{"type":"success","sections":[{"type":"success","order":1,"label":"Successful Payment","elements":[{"type":"text","order":1,"config":{"text":"<h2>Payment processed successfully!</h2>\n<p>Welcome to WrapPRO! Please check your email for confirmation details.</p>"},"id":"ab2ceeb2-d491-4789-914f-d14725100840"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"f799fc08-40c9-40d5-9b57-ec8271184fd0"},{"type":"button","order":3,"config":{"text":"Continue reading"},"id":"9a337f43-a0bd-42e5-aee8-eba604577cce"}],"tab":"pay"}]}],"timestamp":1737134134756,"id":"U-icI4YI","outcomeId":"graph/1#2,graph/1#3,graph/1#5,graph/2#1,graph/2#2,graph/2#27,graph/2#35,graph/2#40,graph/2#43,graph/2#29,graph/2#31,graph/2#38,transformation/9","ruleId":"H-pro-landing-page-94","resolvedComponentTemplates":[],"languagePack":{"entries":{"forms.billing.history.date":"Date","forms.billing.history.every":"every","forms.billing.history.period":"Period","forms.billing.history.subtotal":"Subtotal","forms.billing.history.total":"Total","forms.buttons.back-button":"Back","forms.common.account-code.label":"Have an account registration code? Enter it here","forms.common.account-code.placeholder":"e.g. ACCOUNT001","forms.common.additional-section":"Additional Section","forms.common.continue":"Continue","forms.common.current-password":"Current Password","forms.common.divider-text":"or use","forms.common.email":"Email","forms.common.email-edit":"Edit","forms.common.email-placeholder":"Your email address","forms.common.otp.code-sent-to":"A message with a code has been sent to","forms.common.otp.enter-code":"Enter the code in the box below.","forms.common.otp.forgot-password":"Forgot Password?","forms.common.otp.forgot-password-code-sent":"Code sent!","forms.common.otp.label":"Code","forms.common.otp.placeholder":"e.g. 350271","forms.common.otp.resend":"Didn't get a code?","forms.common.otp.resent":"Resent!","forms.common.password":"Password","forms.common.password-confirm":"Confirm Password","forms.common.password-confirm-placeholder":"confirm password...","forms.common.password-hide":"Hide","forms.common.password-placeholder":"password...","forms.common.password-show":"Show","forms.common.password-validator.length":"Must include at least 8 characters","forms.common.password-validator.match":"Passwords match","forms.common.password-validator.number":"Must include a number character","forms.common.password-validator.symbol":"Must include a supported symbol","forms.common.password-validator.uppercase":"Must include an uppercase letter","forms.common.social-sign-in-label":"Continue with","forms.common.submit":"Submit","forms.common.update":"Update","forms.complete-registration-form.default-intro-text":"Set up your password","forms.complete-registration-form.default-success-message":"Thank you for updating your profile.","forms.contact-form.default-intro-text-1":"Stay in touch","forms.contact-form.default-intro-text-2":"Subscribe to our newsletter today","forms.contact-form.default-success-message":"Thank you for submitting your contact information.","forms.data-capture-form.default-intro-text":"Tell us more about you!","forms.data-capture-form.default-success-message":"Thank you for updating your profile.","forms.devices.current-device-label":"Current Device","forms.devices.login-time-label":"Login Time","forms.devices.no-session-message":"No Device sessions recorded","forms.devices.sign-out-button":"Sign Out","forms.devices.sign-out-of-other-devices-button":"Sign Out of Other Devices","forms.devices.your-devices-label":"Your Devices","forms.errors.company-account-not-found":"Account not found","forms.errors.contact-creation-disabled":"This operation is not possible at the moment, please try again later","forms.errors.email-domain-blocked":"Please use a different email address, this domain is not supported","forms.errors.email-taken":"This email address is already registered. Please log in to continue","forms.errors.email-verification-required":"Email verification is required","forms.errors.invitation-failed-duplicate-email":"An invite has already been created for this email","forms.errors.invitation-failed-invalid-email":"Invalid email address","forms.errors.invitation-failed-limit-reached":"You have reached the sharing limit for this product","forms.errors.invitation-failed-no-product-access":"You do not currently have access to this product","forms.errors.login-failed":"The email address or password you entered is incorrect","forms.errors.no-authenticated-session":"Please login to update your profile","forms.errors.otp-incorrect":"The code you entered is incorrect","forms.errors.otp-or-password-incorrect":"The password or code you entered is incorrect","forms.errors.otp-send-failed":"Unable to send a verification code. Please try again later","forms.errors.password-reset-failed":"Unable to reset your password. Please try again later","forms.errors.password-reset-link-send-failed":"Unable to send a password reset link. Please try again later","forms.errors.promo-code-expired":"Promo code expired","forms.errors.promo-code-invalid":"Invalid promo code","forms.errors.promo-code-invalid-for-payment-option":"Promo code cannot be applied to selected option","forms.errors.session-limit-reached":"You have reached the session limit. Please log out from another device to access this content","forms.errors.too-many-requests":"To gain login access, please contact your administrator","forms.errors.unknown-error":"Something went wrong. Please try again later","forms.errors.unknown-payment-error":"Something went wrong when processing your payment. Please try again later","forms.errors.user-attribute-invalid":"Invalid user attribute","forms.errors.user-not-found":"User not found","forms.list-subscriptions.billing-history-link":"Billing history","forms.list-subscriptions.billing-history-text":"To see previous invoices visit","forms.list-subscriptions.cancel-subscription-text":"Cancel subscription","forms.list-subscriptions.change-default-payment-method-button":"Change Default Payment Method","forms.list-subscriptions.change-payment-method-button":"Change Payment Method","forms.list-subscriptions.change-payment-success-text":"Payment successfully changed","forms.list-subscriptions.change-subscription-text":"Change subscription","forms.list-subscriptions.next-payment-date":"Next payment date","forms.list-subscriptions.no-subscriptions-message":"You don't have any subscriptions","forms.list-subscriptions.subscription-rate-label":"Subscription rate","forms.payment.account-verification-section":"Account Verification","forms.payment.invitation-button":"Send Invite","forms.payment.invitation-description":"You can invite people by entering their email","forms.payment.invitation-label":"Email Address","forms.payment.invitation-link-sent":"Invite sent!","forms.payment.invitation-title":"Invite people to your sharable plan","forms.payment.login":"Login","forms.payment.login-link":"Login","forms.payment.login-link-message":"Already a registered user?","forms.payment.password-setup-text":"Create an account","forms.payment.payment-button":"Confirm and process payment","forms.payment.payment-option-select-button":"Select Plan","forms.payment.payment-section":"Payment Details","forms.payment.payment-summary-disclaimer":"Today's payment may vary","forms.payment.payment-summary-prorate":"DUE TODAY","forms.payment.payment-summary-tax":"Tax","forms.payment.payment-summary-title":"Subscription","forms.payment.payment-summary-total":"TOTAL","forms.payment.plan-select-section":"Plan Select","forms.payment.promo-code-button":"Verify","forms.payment.promo-code-placeholder":"Promo code","forms.payment.promo-code-text":"Have a promo code?","forms.payment.reset-password-text":"Reset your password","forms.payment.success-button":"Continue Reading","forms.payment.success-message":"Payment processed successfully","forms.registration.account-verification-section":"Account Verification","forms.registration.default-intro-text":"You've reached the limit of free articles","forms.registration.email-verification-required-message":"A link has been sent to you. Please check your Email.","forms.registration.login":"Login","forms.registration.login-link-text":"A login link has been sent to","forms.registration.password-setup-section":"Password Setup","forms.registration.password-setup-text":"Create an account","forms.registration.resend-login-link":"Didn't get a link?","forms.registration.resend-login-link-resent":"Resent!","forms.registration.reset":"Reset!","forms.registration.reset-password-text":"Reset your password","forms.registration.success-button":"Continue Reading","forms.registration.success-message":"You have signed up successfully!","forms.subscription-cancel.back-button":"Back","forms.subscription-cancel.cancel-button":"Cancel Subscription","forms.subscription-cancel.confirm-text":"Are you sure you want to cancel?","forms.subscription-cancel.intro-text":"Select a subscription to cancel","forms.subscription-cancel.offer-text":"<h2>We are sorry to see you go</h2>Here is a special offer just for you.","forms.subscription-cancel.payment-option-select-button":"Accept Offer","forms.subscription-cancel.reason-text":"<h2>We would like to hear your feedback</h2>We'd appreciate it if you could to take a moment to let us know why you are cancelling.","forms.subscription-cancel.success-text":"Your subscription has been cancelled","forms.subscription-select.amount-label":"Amount:","forms.subscription-select.intro-text":"Select a subscription to upgrade","forms.subscription-select.next-billing-date-label":"Next billing date:","forms.subscription-select.no-change-plan-mapping-message":"No upgrade options are available for this subscription","forms.subscription-select.no-subscriptions-message":"No subscriptions available","forms.subscription-select.select-button":"Select","forms.update-profile.update-email-title":"<h2>Update Email Address</h2>","forms.update-profile.update-password-title":"<h2>Update Password</h2>","forms.update-profile.your-profile":"Your Profile","forms.update-profile.your-profile-title":"<h2>Your Profile</h2>","hidden.example-key":"Hello world","hidden.form-preview.locale":"en-US","hidden.forms-preview.example-payment-option-description":"Example Payment Option","hidden.forms-preview.example-payment-option-label":"Example Offer","interstitial-page.password-reset.new-password":"New password:","interstitial-page.password-reset.password-mismatch-error":"You did not enter the same password twice","interstitial-page.password-reset.repeat-password":"Repeat password:","interstitial-page.password-reset.reset-button":"Reset","interstitial-page.password-reset.return-home-link":"Go back to the site","interstitial-page.password-reset.success-message":"Your password has been reset successfully!","interstitial-page.password-reset.title":"Change your password","interstitial-page.password-reset.unknown-error":"Something went wrong! Please try again later.","interstitial-page.passwordless-login.title":"Welcome","interstitial-page.update-email.enter-password":"Please enter your current password to complete the email update request.","interstitial-page.update-email.incorrect-password-error":"Incorrect password.","interstitial-page.update-email.password":"Password:","interstitial-page.update-email.return-home-link":"Go back to the site","interstitial-page.update-email.submit-button":"Update","interstitial-page.update-email.title":"Changing your email","interstitial-page.update-email.unknown-error":"Something went wrong! Please try again later.","interstitial-page.update-email-passwordless.message":"Please check the inbox of your new email for further instructions.","interstitial-page.update-email-passwordless.title":"Changing your email","interstitial-page.update-email-passwordless-success.message":"You have successfully changed your email address.","interstitial-page.update-email-passwordless-success.title":"Changing your email","interstitial-page.update-email-success.message":"Your email has been updated successfully!","pages.account-management.account-select-dropdown":"Select account","pages.account-management.delete-link":"Delete","pages.account-management.delete-modal-body":"Are you sure you want to delete this user?","pages.account-management.delete-modal-button":"Yes Delete","pages.account-management.delete-modal-title":"You are about to delete user","pages.account-management.delete-success-modal-body":"has been successfully deleted.","pages.account-management.delete-success-modal-title":"User Deleted","pages.account-management.errors.already-exists":"already exists","pages.account-management.errors.delete-fail":"Failed to delete","pages.account-management.errors.invite-fail":"Could not invite user","pages.account-management.invite-button-text":"Invite a User","pages.account-management.invite-modal-cancel-button":"Cancel","pages.account-management.invite-modal-confirm-button":"Invite User","pages.account-management.invite-modal-email-label":"Email Address","pages.account-management.invite-modal-email-placeholder":"Enter Email Address","pages.account-management.invite-modal-title":"Invite User","pages.account-management.invite-success-modal-body":"An invite has been sent to","pages.account-management.no-users":"No users found","pages.account-management.owner":"Owner","pages.account-management.search-button-text":"Search","pages.account-management.search-placeholder-text":"Search for a user","pages.account-management.success-modal-button":"Close","pages.account-management.title":"Manage Your Users","pages.cancel.back-to-subscriptions":"Back to Subscriptions","pages.cancel.cancel-subscription":"Cancel Subscription","pages.cancel.cancelled":"Cancelled","pages.cancel.continue-subscription":"Continue Subscription","pages.cancel.days-left":"DAYS LEFT:","pages.cancel.plan-frequency":"Frequency","pages.cancel.plan-name":"Name","pages.cancel.plan-next-billing":"Next Billing","pages.cancel.plan-period":"Period","pages.cancel.plan-price":"Price","pages.cancel.plan-type":"Type","pages.cancel.select-plans":"Select the plans you wish to cancel","pages.cancel.status-active":"Active","pages.cancel.status-cancelled":"Cancelled","pages.cancel.status-draft":"Draft","pages.cancel.status-expired":"Expired","pages.cancel.status-pending-acceptance":"Pending Acceptance","pages.cancel.status-pending-activation":"Pending Activation","pages.cancel.status-suspended":"Suspended","pages.cancel.status-unknown":"Unknown","pages.cancel.subscription-ends-on":"Subscription ends on","pages.cancel.subscription-will-end-on":"Your subscription will end on","pages.cancel.success":"You've cancelled your subscription","pages.cancel.until-cancelled":"Until Cancelled","pages.common.collapsible-content-text":"See details","pages.common.confirmation-modal-cancel-button":"Cancel","pages.common.confirmation-modal-confirm-button":"Confirm","pages.common.confirmation-primary-error-message":"Something went wrong!","pages.common.confirmation-secondary-error-message":"Try again later.","pages.common.date-time-format-locale":"en-US","pages.common.input-errors-invalid-email":"Please enter a valid email","pages.common.input-errors-invalid-url":"Please enter a valid URL","pages.common.input-errors-missing-value":"Please enter a value","pages.common.loading":"Loading...","pages.common.no-access-back-link":"Go Back","pages.common.no-access-body":"Sorry, you are not allowed to access this page. Click the button to go back.","pages.common.no-access-title":"No access.","pages.common.password-hide":"Hide","pages.common.password-show":"Show","pages.login-reg.already-registered-sign-in":"Already registered? Sign in","pages.login-reg.cancel":"Cancel","pages.login-reg.complete-registration-button":"Complete Registration","pages.login-reg.continue-with-apple":"Continue with Apple","pages.login-reg.continue-with-facebook":"Continue with Facebook","pages.login-reg.continue-with-google":"Continue with Google","pages.login-reg.continue-with-linkedin":"Continue with Linkedin","pages.login-reg.continue-with-microsoft":"Continue with Microsoft","pages.login-reg.continue-with-open-id-connect":"Continue with Open ID Connect","pages.login-reg.continue-with-twitter":"Continue with X","pages.login-reg.create-account":"Create an account","pages.login-reg.email-me-login-link":"Email me login link","pages.login-reg.email-me-reset-code":"Email me reset code","pages.login-reg.email-placeholder":"Email Address","pages.login-reg.enter-account-reg-code-here":"Enter an account registration code here","pages.login-reg.errors.contact-admin":"Please contact the administrator","pages.login-reg.errors.email-already-taken":"Email already taken","pages.login-reg.errors.email-verification-required":"Email verification is required","pages.login-reg.errors.password-incorrect":"The password you entered is incorrect","pages.login-reg.errors.password-not-strong-enough":"Password is not strong enough","pages.login-reg.errors.seat-capacity":"Your registration request couldn't be completed due to account seat capacity issue.","pages.login-reg.errors.something-went-wrong":"Something went wrong!","pages.login-reg.errors.to-gain-access-contact-admin":"To gain login access, please contact your administrator","pages.login-reg.errors.try-again-later":"Please try again later.","pages.login-reg.errors.user-not-found":"User not found","pages.login-reg.errors.username-already-taken":"Username already taken","pages.login-reg.forgotten-password":"Forgotten Password?","pages.login-reg.logging-in":"Logging in...","pages.login-reg.login-button":"Login","pages.login-reg.login-to-account":"Login to your account","pages.login-reg.or":"Or","pages.login-reg.password-placeholder":"Password","pages.login-reg.password-requirement":"Password must be a minimum of 8 characters and contain uppercase and lowercase, numbers and at least 1 special character.","pages.login-reg.register-button":"Register","pages.login-reg.register-for-account":"Register for an account","pages.login-reg.reset-your-password":"Reset your password","pages.login-reg.wait":"Please wait...","pages.pref-center.devices.current-device":"Current Device","pages.pref-center.devices.error-loading":"There was an error getting the device list","pages.pref-center.devices.sign-in-time":"Login date and time:","pages.pref-center.devices.sign-out":"Sign out","pages.pref-center.devices.sign-out-all":"Sign out of all other devices","pages.pref-center.devices.sign-out-all-success":"All other devices are now signed out","pages.pref-center.devices.sign-out-fail":"Signing out failed","pages.pref-center.devices.sign-out-success":"is now signed out.","pages.pref-center.devices.title":"Your Devices","pages.pref-center.devices.unknown-device":"Unknown","pages.pref-center.email-update-passwordless-message":"A link has been sent to your current email. Please check your inbox.","pages.pref-center.email-update-passwordless-title":"Check Your Inbox","pages.pref-center.general-error":"Something went wrong - please try again later","pages.pref-center.profile.attributes-select-list-placeholder":"Select One","pages.pref-center.profile.attributes-update-save":"Save","pages.pref-center.profile.attributes-update-title":"Your profile","pages.pref-center.profile.email":"Email Address","pages.pref-center.profile.email-update-email-label":"New Email","pages.pref-center.profile.email-update-email-placeholder":"Enter Email","pages.pref-center.profile.email-update-password-label":"Your Password","pages.pref-center.profile.email-update-password-placeholder":"Enter password","pages.pref-center.profile.email-update-save":"Save","pages.pref-center.profile.email-update-step-2-title":"Update Email Address","pages.pref-center.profile.email-update-title":"Update Email Address","pages.pref-center.profile.errors.change-email-error":"Sorry but your email address has not been changed. Please try again.","pages.pref-center.profile.errors.change-password-error":"Sorry but we were unable to reset your password. Please try again.","pages.pref-center.profile.errors.email-already-taken-error":"This email address is already taken.","pages.pref-center.profile.errors.incorrect-code":"Entered code is incorrect","pages.pref-center.profile.errors.incorrect-password":"The password you entered is incorrect","pages.pref-center.profile.errors.password-validation-error":"Password is not strong enough","pages.pref-center.profile.errors.unsuccessful":"Unsuccessful","pages.pref-center.profile.errors.update-profile-error":"Sorry but we were unable to update your profile. Please try again.","pages.pref-center.profile.password":"Password","pages.pref-center.profile.password-update-current-password-label":"Current Password","pages.pref-center.profile.password-update-current-password-placeholder":"Enter your password","pages.pref-center.profile.password-update-new-password-label":"New Password","pages.pref-center.profile.password-update-new-password-placeholder":"Enter a password","pages.pref-center.profile.password-update-save":"Continue","pages.pref-center.profile.password-update-step-2-title":"Reset your password","pages.pref-center.profile.password-update-title":"Update Password","pages.pref-center.profile.title":"Your Profile","pages.pref-center.profile.update":"Update","pages.pref-center.profile.update-email-successful":"Your email address has been changed.","pages.pref-center.profile.update-password-successful":"Your password has been reset.","pages.pref-center.profile.update-profile-successful":"Your profile has been updated.","pages.pref-center.profile.update-return-text":"Return to Personal Information","pages.pref-center.profile.update-step-2-code-label":"Code","pages.pref-center.profile.update-step-2-code-placeholder":"e.g. 350271","pages.pref-center.profile.update-step-2-enter-code":"Enter the code in the box below.","pages.pref-center.profile.update-step-2-message-sent":"A message with a code has been sent to email address:","pages.pref-center.profile.update-step-2-new-code-modal-body":"Would you like to send a new verification code to","pages.pref-center.profile.update-step-2-new-code-modal-button":"Resend Code","pages.pref-center.profile.update-step-2-new-code-modal-title":"Get a new verification code","pages.pref-center.profile.update-step-2-resend-code-link-text":"Didn't get a code?","pages.pref-center.profile.update-step-2-save":"Submit","pages.pref-center.profile.update-successful":"Success","pages.pref-center.share-product.modal-body":"You can invite people by entering their email. Available seats:","pages.pref-center.share-product.modal-email-label":"Email Address","pages.pref-center.share-product.modal-email-placeholder":"Enter Email Address","pages.pref-center.share-product.modal-send-button-text":"Send Invite","pages.pref-center.share-product.modal-title":"Invite people to your sharable subscription","pages.pref-center.shared-members.done-button":"Done","pages.pref-center.shared-members.invite-button-text":"Invite new members","pages.pref-center.shared-members.manage-shared-members-title":"Manage shared members","pages.pref-center.shared-members.no-members":"This product is not currently shared with anyone.","pages.pref-center.shared-members.seats-used":"seats used","pages.pref-center.shared-members.status-active":"Active","pages.pref-center.shared-members.status-inactive":"Inactive","pages.pref-center.shared-members.status-pending":"Pending","pages.pref-center.shared-members.table-header-date":"Date Shared","pages.pref-center.shared-members.table-header-email":"Email Address","pages.pref-center.shared-members.table-header-status":"Status","pages.pref-center.shared-members.table-remove-member":"Remove member","pages.pref-center.shared-members.title":"Shared Members","pages.pref-center.shared-products.errors.existing-invite-error":"An invite has already been created for this email","pages.pref-center.shared-products.errors.invalid-email-error":"Invalid email address","pages.pref-center.shared-products.errors.limit-reached-error":"You have reached the sharing limit for this product","pages.pref-center.shared-products.errors.no-access-error":"You do not currently have access to this product","pages.pref-center.shared-products.leave-product-body":"Are you sure you want to leave this shared product?","pages.pref-center.shared-products.leave-product-title":"Leave Product","pages.pref-center.shared-products.no-subscriptions":"You do not currently have any products shared with you.","pages.pref-center.shared-products.remove-invite-body":"Are you sure you want to remove this pending invite from your subscription?","pages.pref-center.shared-products.remove-invite-title":"Remove Invite","pages.pref-center.shared-products.remove-member-body":"Are you sure you want to remove this user from your subscription?","pages.pref-center.shared-products.remove-member-title":"Remove Member","pages.pref-center.shared-products.remove-subscription":"Leave shared subscription","pages.pref-center.shared-products.shared-by":"Shared by","pages.pref-center.subscriptions.billing-history-link":"Billing History.","pages.pref-center.subscriptions.billing-history-table-canceled":"Subscription canceled","pages.pref-center.subscriptions.billing-history-table-header-date":"Date","pages.pref-center.subscriptions.billing-history-table-header-period":"Subscription Period","pages.pref-center.subscriptions.billing-history-table-header-subtotal":"Subtotal","pages.pref-center.subscriptions.billing-history-table-header-total":"Total","pages.pref-center.subscriptions.billing-history-title":"Billing History","pages.pref-center.subscriptions.cancel-subscription-confirm-modal-body":"Your subscription has been canceled.","pages.pref-center.subscriptions.cancel-subscription-confirm-modal-button":"Close","pages.pref-center.subscriptions.cancel-subscription-confirm-modal-title":"Subscription canceled","pages.pref-center.subscriptions.cancel-subscription-modal-body":"Are you sure you want to cancel the subscription","pages.pref-center.subscriptions.cancel-subscription-modal-button":"Cancel Subscription","pages.pref-center.subscriptions.cancel-subscription-modal-title":"Cancel your subscription","pages.pref-center.subscriptions.cancel-subscription-title":"Cancel your subscription","pages.pref-center.subscriptions.canceled-date":"Canceled on","pages.pref-center.subscriptions.change-multi-subscription-screen-active-subscription":"active","pages.pref-center.subscriptions.change-multi-subscription-screen-best-value":"best value","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-confirm-modal-body":"Your subscriptions have been canceled.","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-confirm-modal-title":"Subscriptions canceled","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-modal-title":"Cancel your subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-text":"Cancel Subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-current-subscription":"current subscription","pages.pref-center.subscriptions.change-multi-subscription-screen-current-subscriptions-title":"Current Subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-edit-subscription-text":"Edit","pages.pref-center.subscriptions.change-multi-subscription-screen-new-subscriptions-title":"New Subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-review-button":"Review Changes","pages.pref-center.subscriptions.change-multi-subscription-screen-title":"Manage Subscriptions","pages.pref-center.subscriptions.change-payment-method-description":"Adjust how you pay for the product.","pages.pref-center.subscriptions.change-payment-method-screen-description":"This credit card will be used as the payment method for the following subscription:","pages.pref-center.subscriptions.change-payment-method-screen-save-button":"Save","pages.pref-center.subscriptions.change-payment-method-screen-title":"Enter Payment Detail","pages.pref-center.subscriptions.change-payment-method-title":"Change payment method","pages.pref-center.subscriptions.change-single-subscription-screen-add-new":"Add a new card","pages.pref-center.subscriptions.change-single-subscription-screen-best-value":"Best Value","pages.pref-center.subscriptions.change-single-subscription-screen-confirm-button":"CONFIRM & PROCESS PAYMENT","pages.pref-center.subscriptions.change-single-subscription-screen-current-subscription-title":"Current Subscription","pages.pref-center.subscriptions.change-single-subscription-screen-existing-payment":"Use existing payment method","pages.pref-center.subscriptions.change-single-subscription-screen-new-subscription-description":"Change your current subscription for another.","pages.pref-center.subscriptions.change-single-subscription-screen-new-subscription-title":"Change Subscription","pages.pref-center.subscriptions.change-single-subscription-screen-payment-method-selection":"Payment Method","pages.pref-center.subscriptions.change-single-subscription-screen-review-button":"Review Changes","pages.pref-center.subscriptions.change-single-subscription-screen-select-plan":"Select Plan","pages.pref-center.subscriptions.change-single-subscription-screen-selected-plan":"Selected Plan","pages.pref-center.subscriptions.change-single-subscription-screen-title":"Manage Subscription","pages.pref-center.subscriptions.change-single-subscription-title":"Change your subscription","pages.pref-center.subscriptions.change-subscription-description":"Adjust what products you have access to.","pages.pref-center.subscriptions.change-subscriptions-title":"Change your subscriptions","pages.pref-center.subscriptions.invoices-text":"To see previous invoices visit","pages.pref-center.subscriptions.manage-single-subscription-title":"Manage Subscription","pages.pref-center.subscriptions.manage-subscriptions-title":"Manage Subscriptions","pages.pref-center.subscriptions.next-payment-title":"Next payment date","pages.pref-center.subscriptions.no-subscriptions":"You don't have any subscriptions.","pages.pref-center.subscriptions.one-off-expiry-date":"Expiry Date","pages.pref-center.subscriptions.one-off-price-title":"Price","pages.pref-center.subscriptions.payment-information-title":"Payment Information","pages.pref-center.subscriptions.payment-processing-text":"(payment processing)","pages.pref-center.subscriptions.product-canceled":"Product canceled","pages.pref-center.subscriptions.return-to-subscription-text":"Return to Subscription","pages.pref-center.subscriptions.return-to-subscriptions-text":"Return to Subscriptions","pages.pref-center.subscriptions.subscription-rate-title":"Subscription rate","pages.pref-center.subscriptions.update-success":"Update success"}}},"formTypeConfig":{"paymentOptions":[{"slug":"price_1Qi0k4JfmyebVn8B1GFtaPkJ","productId":"wrappro-digital-print","price":199,"currencyCode":"USD","type":"REGULAR","highlightedText":"Most Popular","selectButtonText":"<<<forms.payment.payment-option-select-button|Select Plan>>>","description":"<div id=\"zephr-payment-option-description\">\n<h3 dir=\"ltr\"><strong>Annual Plan</strong></h3>\n<p> </p>\n<h1 dir=\"ltr\">$4.00 / week</h1>\n<pre dir=\"ltr\"><br>Billed Annually as $199.99. Cancel anytime.</pre>\n<p> </p>\n</div>","label":"WrapPro Digital + Print - $199 (USD)/Year","fieldOrder":2,"disclaimerMessage":"","templateValues":{},"descriptionMode":"VISUAL","paymentProvider":"stripe","virtualEnvironment":"live","product_sharing_limit":0},{"slug":"price_1QhwLgJfmyebVn8BkVJBTAf3","productId":"wrappro-digital-monthly","price":19.99,"currencyCode":"USD","type":"REGULAR","highlightedText":"","selectButtonText":"<<<forms.payment.payment-option-select-button|Select Plan>>>","description":"<div id=\"zephr-payment-option-description\">\n<h3 dir=\"ltr\"><strong>Monthly Plan</strong></h3>\n<p><strong> </strong></p>\n<h1 dir=\"ltr\">$5.00 / week</h1>\n<pre dir=\"ltr\"><br>Billed as $19.99 every 4 weeks. Cancel anytime.</pre>\n</div>","label":"WrapPro Digital - $19.99 (USD)/Month","fieldOrder":3,"disclaimerMessage":"","templateValues":{},"descriptionMode":"VISUAL","paymentProvider":"stripe","virtualEnvironment":"live","product_sharing_limit":0}],"loginLinkConfig":{"enabled":true,"alreadyRegText":"Already a registered user?","loginText":"Login","url":"/login"},"allowAccountRegistration":false,"formCurrency":"","paymentProviderFormConfig":{"usePaymentElement":false},"stagingPaymentProviderFormConfig":{},"hideConfirmPasswordOnRegForm":false,"changeSubscriptionPlanMappings":[],"changeSubscriptionMode":false,"promoCodeConfig":{"promoCodeAllowed":true,"promoCodeText":"Have a promo code?","promoCodeButtonText":"Verify","promoCodePlaceholder":"Use CYBER for 50% off"},"usePassword":true,"useVerificationCodes":false,"invitationEnabled":false,"invitationMetadata":{"url":"","mapping":[]},"autoApplyAttributes":{},"requestCountry":"SG","requestState":"unknown","requestCity":"unknown","requestZipCode":"unknown"},"organisationConfig":{"schemaFields":[{"slug":"account_subscription","visibility":"PUBLIC","label":"Subscription Status","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5},{"slug":"address-1","visibility":"PUBLIC","label":"Address 1","required":false,"public-description":"Address 1","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"address-2","visibility":"PUBLIC","label":"Address 2","required":false,"public-description":"Address 2","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"awards-season","visibility":"PUBLIC","label":"Awards Season","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"city","visibility":"PUBLIC","label":"City","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"company","visibility":"PUBLIC","label":"Company","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"country","visibility":"PUBLIC","label":"Country","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5},{"slug":"first-name","visibility":"PUBLIC","label":"First Name","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"first-take","visibility":"PUBLIC","label":"First Take","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":0,"range-end":100,"range-step":5},{"slug":"gender","visibility":"PUBLIC","label":"Gender","required":false,"public-description":"gender","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5},{"slug":"geocountry","visibility":"PUBLIC","label":"GeoCountry","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"geostate","visibility":"PUBLIC","label":"GeoState","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"job","visibility":"PUBLIC","label":"Job Title","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5},{"slug":"last-name","visibility":"PUBLIC","label":"Last Name","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"news-highlights","visibility":"PUBLIC","label":"Breaking News","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":0,"range-end":100,"range-step":5},{"slug":"product","visibility":"PUBLIC","label":"Product","required":false,"public-description":"Product","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"province","visibility":"PUBLIC","label":"Province","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"screenings-events","visibility":"PUBLIC","label":"Screenings & Events","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"state","visibility":"PUBLIC","label":"US State","required":false,"public-description":"","validation-expression":null,"input-type":"select","select-options":[{"label":"AL","value":"AL","default":false},{"label":"AK","value":"AK","default":false},{"label":"AZ","value":"AZ","default":false},{"label":"AR","value":"AR","default":false},{"label":"CA","value":"CA","default":false},{"label":"CO","value":"CO","default":false},{"label":"CT","value":"CT","default":false},{"label":"DE","value":"DE","default":false},{"label":"DC","value":"DC","default":false},{"label":"FL","value":"FL","default":false},{"label":"GA","value":"GA","default":false},{"label":"HI","value":"HI","default":false},{"label":"ID","value":"ID","default":false},{"label":"IL","value":"IL","default":false},{"label":"IN","value":"IN","default":false},{"label":"IA","value":"IA","default":false},{"label":"KS","value":"KS","default":false},{"label":"KY","value":"KY","default":false},{"label":"LA","value":"LA","default":false},{"label":"ME","value":"ME","default":false},{"label":"MD","value":"MD","default":false},{"label":"MA","value":"MA","default":false},{"label":"MI","value":"MI","default":false},{"label":"MN","value":"MN","default":false},{"label":"MS","value":"MS","default":false},{"label":"MO","value":"MO","default":false},{"label":"MT","value":"MT","default":false},{"label":"NE","value":"NE","default":false},{"label":"NV","value":"NV","default":false},{"label":"NH","value":"NH","default":false},{"label":"NJ","value":"NJ","default":false},{"label":"NM","value":"NM","default":false},{"label":"NY","value":"NY","default":false},{"label":"NC","value":"NC","default":false},{"label":"ND","value":"ND","default":false},{"label":"OH","value":"OH","default":false},{"label":"OK","value":"OK","default":false},{"label":"OR","value":"OR","default":false},{"label":"PA","value":"PA","default":false},{"label":"PR","value":"PR","default":false},{"label":"RI","value":"RI","default":false},{"label":"SC","value":"SC","default":false},{"label":"SD","value":"SD","default":false},{"label":"TN","value":"TN","default":false},{"label":"TX","value":"TX","default":false},{"label":"UT","value":"UT","default":false},{"label":"VT","value":"VT","default":false},{"label":"VI","value":"VI","default":false},{"label":"VA","value":"VA","default":false},{"label":"WA","value":"WA","default":false},{"label":"WV","value":"WV","default":false},{"label":"WI","value":"WI","default":false},{"label":"WY","value":"WY","default":false}],"range-start":0,"range-end":100,"range-step":5},{"slug":"the-weekender","visibility":"PUBLIC","label":"The Weekender","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"tv-watch-list","visibility":"PUBLIC","label":"TV Watch List","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"wrapwomen","visibility":"PUBLIC","label":"WrapWomen","required":false,"public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null},{"slug":"zipcode","visibility":"PUBLIC","label":"Zipcode","required":false,"public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null}],"siteStyles":"{\"color\":{\"text\":{\"main\":\"#000000\",\"tinted\":\"#333333\"},\"background\":{\"main\":\"#FFFFFF\",\"tinted\":\"#b3b3b3\"},\"accent\":{\"main\":\"#dcdfe4\",\"tinted\":\"#bfc4ce\"},\"action\":{\"main\":\"#da0a0a\",\"tinted\":\"#f52222\"},\"warning\":{\"main\":\"#D90B00\",\"tinted\":\"#ff190d\"}},\"typography\":{\"title\":{\"font\":\"IvyPresto Text\",\"fallbackFont\":\"serif\"},\"body\":{\"font\":\"Libre Franklin\",\"fallbackFont\":\"sans-serif\"}},\"button\":{\"fontWeight\":\"normal\",\"fontSize\":\"16\",\"borderWidth\":\"0\",\"borderRadius\":\"0\",\"height\":\"50\"},\"input\":{\"borderColor\":\"#333333\",\"borderWidth\":\"1\",\"borderRadius\":\"0\",\"height\":\"50\"}}","twoFactorEmailAuthenticationEnabled":false,"requireEmailVerfication":false,"hideConfirmPasswordOnRegForm":false,"passwordStrengthRequirements":{"minLength":8,"requireUppercase":true,"requireNumbers":true,"requireSpecialCharacters":false},"ruleAnalyticsEnabled":true,"paymentProvider":"stripe","braintreeSandboxEnv":true,"braintreeMobilePaymentConfig":null,"stripeMobilePaymentConfig":"{\"apple\":{\"countryCode\":\"US\"},\"google\":{\"countryCode\":\"US\"}}","stripeAutomaticTaxEnabled":false,"dataLayerName":"dataLayer","trackFormDataLayerEvents":false}})); </script><script type="text/javascript"> if (!window.Zephr) window.Zephr = {}; if (!window.Zephr.outcomes) window.Zephr.outcomes = {}; window.Zephr.outcomes['pro-landing-page'] = { featureLabel: 'Pro Landing Page', outcomeId: 'transformation/9', outcomeLabel: 'PRO Landing Page' }; </script> <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> <div style="height:90px" aria-hidden="true" class="wp-block-spacer"></div> </div></div> <p></p> </div><script type="text/javascript"> if (!window.Zephr) window.Zephr = {}; if (!window.Zephr.outcomes) window.Zephr.outcomes = {}; window.Zephr.outcomes['the-grill'] = { featureLabel: 'The Grill', outcomeId: 'graph/2#3', outcomeLabel: 'Show The Grill' }; </script> <script type="text/javascript"> if (!window.Zephr) window.Zephr = {}; if (!window.Zephr.outcomes) window.Zephr.outcomes = {}; window.Zephr.outcomes['article-test'] = { featureLabel: 'WrapPro Article', outcomeId: 'transformation/6', outcomeLabel: 'Show WrapPro Article' }; </script> </div> </article> </main> </div><!-- #primary --> </div><!-- #content --> <footer id="colophon" class="site-footer container container--site" data-component="site-footer"> <div class="site-footer__inner"> <div class="site-footer__cover wp-block-the-wrap-footer-image"> <h2 class="screen-reader-only">Latest Magazine Issue</h2> <a href="https://view.flipdocs.com/?ID=10004691_702232"> <img width="250" height="300" src="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?fit=250%2C300&quality=89&ssl=1" class="attachment-medium size-medium" alt="" decoding="async" fetchpriority="high" srcset="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?w=1500&quality=89&ssl=1 1500w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?resize=250%2C300&quality=89&ssl=1 250w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?resize=853%2C1024&quality=89&ssl=1 853w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?resize=768%2C922&quality=89&ssl=1 768w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?resize=1280%2C1536&quality=89&ssl=1 1280w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?resize=990%2C1188&quality=89&ssl=1 990w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2025/02/OW_DTTL_021225_COVER_IR4-copy.jpg?resize=1200%2C1440&quality=89&ssl=1 1200w" sizes="(max-width: 250px) 100vw, 250px" data-portal-copyright="TheWrap" data-has-syndication-rights="1"> </a> </div> <div class="site-footer__menus"> <nav aria-label="TheWrap" class="site-footer__navigation wp-block-the-wrap-footer-menu"> <h2 id="footer1-nav-heading" class="footer-menu__heading"> <button id="footer1-nav-toggle" aria-expanded="false" aria-controls="footer1-nav-container" class="footer-menu__toggle"> TheWrap <span class="footer-menu__toggle-icon"> <svg aria-hidden="true" focusable="false" width="14" height="9"><use href="#am-symbol-chevron-down"></use></svg> </span> </button> </h2> <div id="footer1-nav-container" aria-labelledby="footer1-nav-heading" role="region" class="footer-menu__menu"> <ul role="list" id="menu-thewrap" class="footer1-menu"><li id="menu-item-5725563" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725563 menu__item footer1-menu__item"><a href="https://www.thewrap.com/about-us/" id="menu-link-53" class="menu__link footer1-menu__link">About Us</a></li> <li id="menu-item-5725564" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725564 menu__item footer1-menu__item"><a href="https://www.thewrap.com/advertise-us/" id="menu-link-54" class="menu__link footer1-menu__link">Advertise</a></li> <li id="menu-item-5725565" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725565 menu__item footer1-menu__item"><a href="https://www.thewrap.com/contact/" id="menu-link-55" class="menu__link footer1-menu__link">Contact</a></li> <li id="menu-item-5725566" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725566 menu__item footer1-menu__item"><a href="https://www.thewrap.com/jobs/" id="menu-link-56" class="menu__link footer1-menu__link">Careers</a></li> <li id="menu-item-5725567" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725567 menu__item footer1-menu__item"><a href="https://www.thewrap.com/masthead/" id="menu-link-57" class="menu__link footer1-menu__link">Masthead</a></li> <li id="menu-item-5786172" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5786172 menu__item footer1-menu__item"><a href="https://www.thewrap.com/newsletters/" id="menu-link-58" class="menu__link footer1-menu__link">Newsletters</a></li> <li id="menu-item-7551824" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7551824 menu__item footer1-menu__item"><a href="https://www.thewrap.com/the-wrapbook-the-art-of-cinema-2023/" id="menu-link-59" class="menu__link footer1-menu__link">WrapBook</a></li> </ul> </div> </nav> <nav aria-label="Wrap Pro" class="site-footer__navigation wp-block-the-wrap-footer-menu"> <h2 id="footer2-nav-heading" class="footer-menu__heading"> <button id="footer2-nav-toggle" aria-expanded="false" aria-controls="footer2-nav-container" class="footer-menu__toggle"> Wrap Pro <span class="footer-menu__toggle-icon"> <svg aria-hidden="true" focusable="false" width="14" height="9"><use href="#am-symbol-chevron-down"></use></svg> </span> </button> </h2> <div id="footer2-nav-container" aria-labelledby="footer2-nav-heading" role="region" class="footer-menu__menu"> <ul role="list" id="menu-wrap-pro" class="footer2-menu"><li id="menu-item-7386589" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-7360596 current_page_item menu-item-7386589 menu__item footer2-menu__item"><a href="https://www.thewrap.com/join-pro/" aria-current="page" id="menu-link-60" class="menu__link footer2-menu__link">Subscribe</a></li> <li id="menu-item-5725572" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5725572 menu__item footer2-menu__item"><a href="https://pro.thewrap.com" id="menu-link-61" class="menu__link footer2-menu__link">Team Plan</a></li> <li id="menu-item-5725573" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5725573 menu__item footer2-menu__item"><a href="https://pro.thewrap.com" title="Learn more about becoming a member" id="menu-link-62" class="menu__link footer2-menu__link">Learn More</a></li> </ul> </div> </nav> <nav aria-label="Legal" class="site-footer__navigation wp-block-the-wrap-footer-menu"> <h2 id="footer3-nav-heading" class="footer-menu__heading"> <button id="footer3-nav-toggle" aria-expanded="false" aria-controls="footer3-nav-container" class="footer-menu__toggle"> Legal <span class="footer-menu__toggle-icon"> <svg aria-hidden="true" focusable="false" width="14" height="9"><use href="#am-symbol-chevron-down"></use></svg> </span> </button> </h2> <div id="footer3-nav-container" aria-labelledby="footer3-nav-heading" role="region" class="footer-menu__menu"> <ul role="list" id="menu-legal" class="footer3-menu"><li id="menu-item-5725577" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725577 menu__item footer3-menu__item"><a href="https://www.thewrap.com/terms-of-service-wrappro/" id="menu-link-63" class="menu__link footer3-menu__link">Terms of Service</a></li> <li id="menu-item-5725578" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-5725578 menu__item footer3-menu__item"><a href="https://www.thewrap.com/privacy-policy/" id="menu-link-64" class="menu__link footer3-menu__link">Privacy Policy</a></li> <li id="menu-item-5725579" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5725579 menu__item footer3-menu__item"><a href="https://youradchoices.com/" id="menu-link-65" class="menu__link footer3-menu__link">AdChoices</a></li> </ul> </div> </nav> <nav aria-label="Wrap Magazine" class="site-footer__navigation wp-block-the-wrap-footer-menu"> <h2 id="footer4-nav-heading" class="footer-menu__heading"> <button id="footer4-nav-toggle" aria-expanded="false" aria-controls="footer4-nav-container" class="footer-menu__toggle"> Wrap Magazine <span class="footer-menu__toggle-icon"> <svg aria-hidden="true" focusable="false" width="14" height="9"><use href="#am-symbol-chevron-down"></use></svg> </span> </button> </h2> <div id="footer4-nav-container" aria-labelledby="footer4-nav-heading" role="region" class="footer-menu__menu"> <ul role="list" id="menu-wrap-magazine" class="footer4-menu"><li id="menu-item-5778611" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5778611 menu__item footer4-menu__item"><a href="https://www.thewrap.com/canneswrap-magazines/" id="menu-link-66" class="menu__link footer4-menu__link">Cannes</a></li> <li id="menu-item-5778612" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5778612 menu__item footer4-menu__item"><a href="https://www.thewrap.com/collegewrap-magazines/" id="menu-link-67" class="menu__link footer4-menu__link">College</a></li> <li id="menu-item-5778613" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5778613 menu__item footer4-menu__item"><a href="https://www.thewrap.com/emmywrap-magazines/" id="menu-link-68" class="menu__link footer4-menu__link">Emmys</a></li> <li id="menu-item-5778614" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5778614 menu__item footer4-menu__item"><a href="https://www.thewrap.com/oscarwrap/" id="menu-link-69" class="menu__link footer4-menu__link">Oscars</a></li> <li id="menu-item-5725575" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5725575 menu__item footer4-menu__item"><a href="https://www.thewrap.com/advertise-us/" id="menu-link-70" class="menu__link footer4-menu__link">Advertise With Us</a></li> </ul> </div> </nav> </div> <div class="site-footer__social-profiles wp-block-template-part"><nav id="socials-navigation" aria-label="Social Media" class="social-profiles"> <h2 id="socials-nav-heading" class="social-profiles__heading">Follow Us</h2> <ul role="list" aria-labelledby="socials-nav-heading" class="social-profiles__social-accounts"> <li><a href="https://www.facebook.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on facebook</span> <svg aria-hidden="true" focusable="false" width="18.42" height="32"><use href="#am-symbol-facebook"></use></svg></a> </li> <li><a href="https://www.twitter.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on twitter</span> <svg aria-hidden="true" focusable="false" width="29.62" height="25"><use href="#am-symbol-twitter"></use></svg></a> </li> <li><a href="https://www.instagram.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on instagram</span> <svg aria-hidden="true" focusable="false" width="31.03" height="32"><use href="#am-symbol-instagram"></use></svg></a> </li> <li><a href="https://www.youtube.com/thewrap" class="wp-block-the-wrap-social-profile"> <span class="screen-reader-text">Visit The Wrap on youtube</span> <svg aria-hidden="true" focusable="false" width="32" height="23"><use href="#am-symbol-youtube"></use></svg></a> </li> </ul> </nav> </div> </div> <div class="site-footer__copyright wp-block-the-wrap-copyright"> © Copyright 2025 TheWrap</div> </footer> </div><!-- #page --> </div> <script id="wp-block-template-skip-link-js-after"> ( function() { var skipLinkTarget = document.querySelector( 'main' ), sibling, skipLinkTargetID, skipLink; // Early exit if a skip-link target can't be located. if ( ! skipLinkTarget ) { return; } /* * Get the site wrapper. * The skip-link will be injected in the beginning of it. */ sibling = document.querySelector( '.wp-site-blocks' ); // Early exit if the root element was not found. if ( ! sibling ) { return; } // Get the skip-link target's ID, and generate one if it doesn't exist. skipLinkTargetID = skipLinkTarget.id; if ( ! skipLinkTargetID ) { skipLinkTargetID = 'wp--skip-link--target'; skipLinkTarget.id = skipLinkTargetID; } // Create the skip link. skipLink = document.createElement( 'a' ); skipLink.classList.add( 'skip-link', 'screen-reader-text' ); skipLink.href = '#' + skipLinkTargetID; skipLink.innerHTML = 'Skip to content'; // Inject the skip link. sibling.parentElement.insertBefore( skipLink, sibling ); }() ); </script> <script src="https://static.thewrap.com/wp-content/themes/the-wrap/client/build/js/global.bundle.min.js?ver=f15a5f6babfca31b43f1" id="the-wrap-global-js"></script> <script src="https://static.thewrap.com/wp-content/themes/the-wrap/client/build/js/article.bundle.min.js?ver=abd8678a08ecee2de838" id="the-wrap-article-js"></script> <script src="https://static.thewrap.com/wp-content/themes/the-wrap/client/build/js/page.bundle.min.js?ver=77ee535e5054914c2b08" id="the-wrap-page-js"></script> <script type="text/javascript"> window.Zephr = window.Zephr || {}; window.Zephr.includeOutcomes = true; window.Zephr.outcomesAsEvents = true; window.Zephr.groupFields = false; (function() { var xhr = new(XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0'); xhr.open('GET', '/blaize/datalayer', true); xhr.onreadystatechange = function() { if (xhr.readyState === 4) { var response; try { response = JSON.parse(xhr.response); } catch (e) { response = xhr.response; } if (xhr.status === 200) { for (var dataLayerFieldName in response) { if (!(dataLayerFieldName in window)) window[dataLayerFieldName] = []; var pageView = response[dataLayerFieldName]; var events = []; if (window.Zephr && window.Zephr.includeOutcomes && window.Zephr.outcomes) { pageView.zephrOutcomes = window.Zephr.outcomes; if (window.Zephr.outcomesAsEvents) { Object.keys(window.Zephr.outcomes || []).forEach(function(outcomeKey) { var outcomeEvent = { event: "zephr-outcome-" + outcomeKey, featureId: outcomeKey, featureLabel: window.Zephr.outcomes[outcomeKey].featureLabel, outcomeId: window.Zephr.outcomes[outcomeKey].outcomeId, outcomeLabel: window.Zephr.outcomes[outcomeKey].outcomeLabel, }; events.push(outcomeEvent); }); } } if (window.Zephr && window.Zephr.accessDetails) { Object.keys((window.Zephr.accessDetails.trials || {})).forEach(function(trialId){ var trial = window.Zephr.accessDetails.trials[trialId] if(trial.reportInDataLayer){ var usedCredits = trial.totalCredits - trial.remainingCredits if (window.Zephr.groupFields && !pageView.zephrTrials) pageView.zephrTrials = {}; var target = window.Zephr.groupFields ? pageView.zephrTrials : pageView if (trial.dataLayerCreditsUsedKey) { target[trial.dataLayerCreditsUsedKey] = usedCredits; } if (trial.dataLayerCreditsRemainingKey) { target[trial.dataLayerCreditsRemainingKey] = trial.remainingCredits; } } }); (window.Zephr.accessDetails.trialTrackingDetails || []).forEach(function(details) { var type = details.entitlementType === 'credits' ? 'credits' : 'meters'; var trial = (window.Zephr.accessDetails[type] || {})[details.entitlementId]; if (!trial) return; if (window.Zephr.groupFields && !pageView.zephrTrials) pageView.zephrTrials = {}; if (details.creditsRemainingKey) { if (window.Zephr.groupFields) { pageView.zephrTrials[details.creditsRemainingKey] = trial.remainingCredits; } else { pageView[details.creditsRemainingKey] = trial.remainingCredits; } } if (details.creditsUsedKey) { if (window.Zephr.groupFields) { pageView.zephrTrials[details.creditsUsedKey] = trial.totalCredits - trial.remainingCredits; } else { pageView[details.creditsUsedKey] = trial.totalCredits - trial.remainingCredits; } } }); try { (Object.keys(window.Zephr.accessDetails.timeTrials || {})).forEach(function(timeTrialId) { var timeTrial = window.Zephr.accessDetails.timeTrials[timeTrialId] if(timeTrial.reportInDataLayer){ if (window.Zephr.groupFields && !pageView.zephrTrials) pageView.zephrTrials = {}; var target = window.Zephr.groupFields ? pageView.zephrTrials : pageView if (timeTrial.dataLayerTrialDurationKey) { target[timeTrial.dataLayerTrialDurationKey] = timeTrial.trialDuration; } if (timeTrial.dataLayerTrialDurationUnitsKey) { target[timeTrial.dataLayerTrialDurationUnitsKey] = timeTrial.trialDurationUnits; } if (timeTrial.dataLayerTrackerEntryTimeKey) { target[timeTrial.dataLayerTrackerEntryTimeKey] = timeTrial.entryTime; } if (timeTrial.dataLayerTrackerHitsKey) { target[timeTrial.dataLayerTrackerHitsKey] = timeTrial.trackerHits; } if (timeTrial.dataLayerTrialTimeRemainingKey) { target[timeTrial.dataLayerTrialTimeRemainingKey] = timeTrial.timeRemainingInTrial; } } }); } catch (err) { console.error("Error aggregating Zephr time trials", err); } } if (Object.keys(pageView).length) { pageView.event = "zephr-pageview"; events.unshift(pageView); } if (!events.length) continue; events.forEach(function(event) { window[dataLayerFieldName].push(event); }); } var readyEvent = document.createEvent('Event'); readyEvent.initEvent('zephr.dataLayerReady', true, true); document.dispatchEvent(readyEvent); } } } xhr.send({}); })(); </script> <script type="text/javascript"> if (!window.Zephr) window.Zephr = {}; window.Zephr.accessDetails = {"isAuthenticated":false,"accessDecisions":{},"entitlements":{},"credits":{},"meters":{},"trials":{"NFxiwC":{"isUsedInDecision":false},"aq10s3":{"isUsedInDecision":false},"afnsA3":{"isUsedInDecision":false}},"timeTrials":{},"trialTrackingDetails":[],"testGroups":{"26a9271c-e24f-43aa-9837-7b578ee53b78":"B","5b0f4d91-c9fe-423c-bc3b-e6482f2db5b4":"C","e858d186-9317-435c-8d5d-a0712d119ad9":"B"},"activeProducts":[]}; </script> </body> </html> <!-- plugin=object-cache-pro client=phpredis metric#hits=3752 metric#misses=126 metric#hit-ratio=96.8 metric#bytes=9456945 metric#prefetches=269 metric#store-reads=124 metric#store-writes=7 metric#store-hits=281 metric#store-misses=119 metric#sql-queries=7 metric#ms-total=443.78 metric#ms-cache=124.02 metric#ms-cache-avg=0.9540 metric#ms-cache-ratio=28.0 -->