CINXE.COM
UTA News Co-Heads Urge Media Vets to Be Multi-Platform to Survive
<!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"> <!-- This site is optimized with the Yoast SEO Premium plugin v23.3 (Yoast SEO v23.3) - https://yoast.com/wordpress/plugins/seo/ --> <meta name="description" content="Office With a View: Marc Paskin and Ryan Hayden predict more journalists will strike a balance between traditional news and indie platforms."> <link rel="canonical" href="https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/"> <meta property="og:locale" content="en_US"> <meta property="og:type" content="article"> <meta property="og:title" content="UTA News Co-Heads Urge Media Vets to Be ‘Multi-Platform' to Survive Shifting Landscape"> <meta property="og:description" content="Office With a View: Marc Paskin and Ryan Hayden predict more journalists will strike a balance between traditional news and indie platforms."> <meta property="og:url" content="https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/"> <meta property="og:site_name" content="TheWrap"> <meta property="article:publisher" content="https://www.facebook.com/thewrap"> <meta property="article:published_time" content="2024-11-12T19:30:00+00:00"> <meta property="article:modified_time" content="2024-11-13T14:54:03+00:00"> <meta property="og:image" content="https://www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.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="author" content="Lucas Manfredi"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:creator" content="@thewrap"> <meta name="twitter:site" content="@thewrap"> <script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"Article","@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#article","isPartOf":{"@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/"},"author":[{"@id":"https://the-wrap-vip.alley.test/author/lucas-manfredithewrap-com/"}],"headline":"UTA News Co-Heads Urge Media Vets to Be ‘Multi-Platform’ to Survive Shifting Landscape","datePublished":"2024-11-12T19:30:00+00:00","dateModified":"2024-11-13T14:54:03+00:00","mainEntityOfPage":{"@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/"},"wordCount":2084,"commentCount":0,"publisher":{"@id":"https://www.thewrap.com/#organization"},"image":{"@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#primaryimage"},"thumbnailUrl":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?fit=1200%2C675&ssl=1","keywords":["Marc Paskin","Office With a View","Ryan Hayden","United Talent Agency","WrapPRO"],"articleSection":["Business","News","Office With a View","WrapPRO"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#respond"]}]},{"@type":"WebPage","@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/","url":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/","name":"UTA News Co-Heads Urge Media Vets to Be Multi-Platform to Survive","isPartOf":{"@id":"https://www.thewrap.com/#website"},"primaryImageOfPage":{"@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#primaryimage"},"image":{"@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#primaryimage"},"thumbnailUrl":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?fit=1200%2C675&ssl=1","datePublished":"2024-11-12T19:30:00+00:00","dateModified":"2024-11-13T14:54:03+00:00","description":"Office With a View: Marc Paskin and Ryan Hayden predict more journalists will strike a balance between traditional news and indie platforms.","breadcrumb":{"@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#primaryimage","url":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?fit=1200%2C675&ssl=1","contentUrl":"https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?fit=1200%2C675&ssl=1","width":1200,"height":675,"caption":"Ryan Hayden and Marc Paskin (Photo courtesy of UTA)"},{"@type":"BreadcrumbList","@id":"https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.thewrap.com/"},{"@type":"ListItem","position":2,"name":"UTA News Co-Heads Urge Media Vets to Be ‘Multi-Platform’ to Survive Shifting Landscape"}]},{"@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":"required name=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"]},{"@type":"Person","@id":"https://the-wrap-vip.alley.test/author/lucas-manfredithewrap-com/","name":"Lucas Manfredi","url":"https://www.thewrap.com/author/lucas-manfredithewrap-com/","description":"Lucas Manfredi joined TheWrap in November 2022 after four years at Fox Business. He can be reached at lucas.manfredi@thewrap.com. Read Next Carnival Films CEO Gareth Neame Sold Peacock's 'Day of the Jackal' to an 'Unusually Strong' 200 Territories – Here's How"},{"@type":"Person","@id":"https://the-wrap-vip.alley.test/author/lucas-manfredithewrap-com/","name":"Lucas Manfredi","sameAs":["https://www.linkedin.com/in/lucas-manfredi-047782a3/"]}]}</script> <!-- / Yoast SEO Premium plugin. --> <title>UTA News Co-Heads Urge Media Vets to Be Multi-Platform to Survive</title> <link rel="dns-prefetch" href="//www.thewrap.com"> <link rel="dns-prefetch" href="//htlbid.com"> <link rel="dns-prefetch" href="//s.ntv.io"> <link rel="dns-prefetch" href="//use.typekit.net"> <link rel="dns-prefetch" 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:\/\/www.thewrap.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.6.2"}}; /*! 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="the-wrap-ad-style-inline-css"> .wp-block-the-wrap-ad{margin-block:rem(40)} </style> <style id="the-wrap-ad-styles-inline-css"> .wp-block-the-wrap-ad [data-google-query-id]{margin-block:2rem}.wp-block-the-wrap-ad [data-google-query-id] [style*="display: none"]{margin-block:unset}.feature-has-ad-sidebar .wp-block-the-wrap-ad [data-google-query-id]{margin-block:unset}.wp-block-the-wrap-ad [data-sticky] [data-google-query-id]{margin-block:unset}.wp-block-the-wrap-ad.yad-skin-ad-left [data-google-query-id],.wp-block-the-wrap-ad.yad-skin-ad-right [data-google-query-id]{margin-block:unset}@media(min-width: 75rem){.wp-block-the-wrap-ad.yad-skin-ad-top{min-height:9.625rem}}@media(max-width: 48.125rem){.wp-block-the-wrap-ad.yad-mob-banner-ad-b{margin-block:2rem;min-height:3.125rem}.wp-block-the-wrap-ad.yad-mob-banner-ad-b [data-google-query-id]{margin-block:unset}}.sidebar-area>.wp-block-the-wrap-ad{margin-block:unset}@media(min-width: 64rem){.sidebar-area>.wp-block-the-wrap-ad:first-child [data-google-query-id]{margin-block-start:unset}}.wp-block-the-wrap-ad.yad-wrapstyle-dsk-banner-ad-b,.wp-block-the-wrap-ad.yad-wrapstyle-dsk-banner-ad-c,.wp-block-the-wrap-ad.yad-wrapstyle-dsk-banner-ad-d,.wp-block-the-wrap-ad.yad-wrapstyle-dsk-banner-ad-e{max-width:none}.sidebar-area .wp-block-the-wrap-ad:last-child{position:sticky;top:calc(var(--adminbar-height) + 2rem)}.full-width-template .wp-block-the-wrap-ad--inline,.page-template-template-magazine .container--entry-content>.wp-block-the-wrap-ad--inline{left:50%;margin-left:-50vw !important;margin-right:-50vw !important;max-width:none;position:relative;right:50%;width:100vw} /*# sourceMappingURL=ad.min.css.map*/ </style> <link rel="stylesheet" id="wp-block-button-css" href="https://www.thewrap.com/wp-includes/blocks/button/style.min.css?ver=6.6.2" media="all"> <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 a{display:inline-block} </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="the-wrap-column-image-style-inline-css"> .wp-block-the-wrap-column-image__link{display:inline-block;text-decoration:none}.wp-block-the-wrap-column-image__link:hover{text-decoration:underline}.wp-block-the-wrap-column-image__image{margin-bottom:0}.wp-block-the-wrap-column-image__image img{max-width:150px} </style> <style id="the-wrap-column-image-styles-inline-css"> .wp-block-the-wrap-column-image{font-family:libre-franklin,Tahoma,sans-serif;font-size:1rem;font-weight:600;line-height:1.5;color:#da0a0a;letter-spacing:-0.125px;text-transform:uppercase} /*# sourceMappingURL=column-image.min.css.map*/ </style> <style id="the-wrap-subhed-style-inline-css"> </style> <style id="the-wrap-subhed-styles-inline-css"> div.wp-block-the-wrap-subhed,p.wp-block-the-wrap-subhed{font-family:ivypresto-text,serif;font-size:1.25rem;line-height:1.3;font-weight:100;letter-spacing:-0.5px}@media(min-width: 64rem){div.wp-block-the-wrap-subhed,p.wp-block-the-wrap-subhed{font-size:1.5rem;line-height:1.25}} /*# sourceMappingURL=subhed.min.css.map*/ </style> <style id="wp-block-post-author-inline-css"> .wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0} </style> <link rel="stylesheet" id="core-post-author-styles-css" href="https://www.thewrap.com/wp-content/themes/the-wrap/client/build/css/blocks/core/post-author.min.css?ver=70d2da82fa9af62dd515" media="all"> <style id="wp-block-post-date-inline-css"> .wp-block-post-date{box-sizing:border-box} </style> <style id="core-post-date-styles-inline-css"> .wp-block-post-date{font-family:libre-franklin,Tahoma,sans-serif;font-size:.75rem;line-height:1.25;letter-spacing:-0.13px}.wp-block-post-date--latest-news{color:#5a6875;font-weight:600}.wp-block-post-date--entry-header{font-size:.875rem;line-height:1.8571428571;color:#5a6875}@media(min-width: 48rem){.wp-block-post-date--entry-header{color:#20262f}} /*# sourceMappingURL=post-date.min.css.map*/ </style> <style id="the-wrap-social-link-style-inline-css"> .wp-block-the-wrap-social-link svg{max-width:30px} </style> <link rel="stylesheet" id="wp-block-post-featured-image-css" href="https://www.thewrap.com/wp-includes/blocks/post-featured-image/style.min.css?ver=6.6.2" media="all"> <style id="core-post-featured-image-styles-inline-css"> .wp-block-post-featured-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)}.wp-block-post-featured-image.alignfull{max-width:none}.wp-block-post-featured-image.alignfull figcaption{padding-inline:var(--site-edge)}.wp-block-the-wrap-article-header-full .wp-block-post-featured-image.alignfull{width:100%}.wp-block-post-featured-image--profile-header{height:6.875rem;width:6.875rem}@media(min-width: 48rem){.wp-block-post-featured-image--profile-header{height:9.5rem;width:9.5rem}}.wp-block-post-featured-image.has-pro-badge{position:relative}.wp-block-post-featured-image.has-pro-badge>figure{margin:0}.wp-block-post-featured-image.has-icon-play{align-self:start;display:grid}.wp-block-post-featured-image.has-icon-play figure,.wp-block-post-featured-image.has-icon-play .post-featured-image__play-icon{grid-column:1;grid-row:1}.wp-block-post-featured-image.has-icon-play .post-featured-image__play-icon{align-self:center;color:#fff;justify-self:center}@media(min-width: 48rem){.wp-block-post-featured-image.has-icon-play .post-featured-image__play-icon{height:auto;width:4.1875rem}}.wp-block-post-featured-image.has-icon-play figure{margin:0}.wp-block-post-featured-image--video{align-items:center;aspect-ratio:16/9;display:flex;justify-content:center;width:100%}.wp-block-post-featured-image--video iframe{aspect-ratio:16/9;height:auto;width:100%} /*# sourceMappingURL=post-featured-image.min.css.map*/ </style> <style id="wp-block-separator-inline-css"> @charset "UTF-8";.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important} </style> <style id="core-separator-styles-inline-css"> hr,.wp-block-separator{margin-inline:auto;background-color:#dcdfe4;border:0;height:1px;width:100%}hr.is-style-wide,.wp-block-separator.is-style-wide{max-width:none} /*# sourceMappingURL=separator.min.css.map*/ </style> <link rel="stylesheet" id="the-wrap-article-header-full-styles-css" href="https://www.thewrap.com/wp-content/themes/the-wrap/client/build/css/blocks/the-wrap/article-header-full.min.css?ver=11750939de25436befec" media="all"> <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="the-wrap-read-more-style-inline-css"> .the-wrap-read-more__container{align-items:center;display:flex;flex-direction:row-reverse;gap:.75rem;justify-content:space-between} </style> <style id="the-wrap-read-more-styles-inline-css"> .wp-block-the-wrap-read-more{--block-vertical-rhythm: 2rem}@media(min-width: 48rem){.wp-block-the-wrap-read-more{--block-vertical-rhythm: 3rem}}.the-wrap-read-more__container{background-color:#f7f7f7;padding:.625rem}@media(min-width: 48rem){.the-wrap-read-more__container{padding:1rem}}.the-wrap-read-more__image{flex:0 0 8.75rem}@media(min-width: 48rem){.the-wrap-read-more__image{flex-basis:10.5rem}}.the-wrap-read-more__headline{font-family:ivypresto-display,serif;font-size:1.125rem;font-weight:700;line-height:1.3333333333}@media(min-width: 48rem){.the-wrap-read-more__headline{font-size:1.5rem;line-height:1.3333333333}}.the-wrap-read-more__headline a{text-decoration:none}.the-wrap-read-more__headline strong{font-family:libre-franklin,Tahoma,sans-serif;font-size:.75rem;font-weight:600;line-height:1.1666666667;color:#c50000;text-transform:uppercase}@media(min-width: 48rem){.the-wrap-read-more__headline strong{font-size:.875rem;font-weight:600;line-height:1.1428571429}} /*# sourceMappingURL=read-more.min.css.map*/ </style> <style id="the-wrap-author-bios-style-inline-css"> .wp-block-the-wrap-author-bios__entry{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem}.wp-block-the-wrap-author-bios__entry+.wp-block-the-wrap-author-bios__entry{margin-top:2rem}.wp-block-the-wrap-author-bios__entry-excerpt{flex-basis:100%} </style> <style id="the-wrap-author-bios-styles-inline-css"> .wp-block-the-wrap-author-bios{border-top:1px solid #dcdfe4;margin-block:2rem;padding-top:2rem}.wp-block-the-wrap-author-bios__entry-avatar{display:var(--display-no-mobile, block);margin-bottom:0}.wp-block-the-wrap-author-bios__entry-avatar 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)}.wp-block-the-wrap-author-bios__entry-name{font-family:ivypresto-display,serif;font-size:2rem;font-weight:700;line-height:1.125}.wp-block-the-wrap-author-bios__entry-name a{text-decoration:none}.wp-block-the-wrap-author-bios__entry-name a:hover{text-decoration:underline}.wp-block-the-wrap-author-bios__entry-excerpt{font-size:.9375rem;line-height:1.4666666667} /*# sourceMappingURL=author-bios.min.css.map*/ </style> <style id="wp-block-post-template-inline-css"> .wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto} </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="wp-block-comment-template-inline-css"> .wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right} </style> <style id="core-comment-template-styles-inline-css"> .wp-block-comment-template{--block-vertical-rhythm: 1.25rem;list-style:none;margin-bottom:2rem}.wp-block-comment-template>.comment{background-color:#f8f9fa;margin:0;padding:1.25rem}.wp-block-comment-template>.comment:nth-child(even){background-color:#f2f5f7}.wp-block-comment-template ol{list-style:none} /*# sourceMappingURL=comment-template.min.css.map*/ </style> <style id="wp-block-comments-pagination-inline-css"> .wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center} </style> <link rel="stylesheet" id="wp-block-post-comments-form-css" href="https://www.thewrap.com/wp-includes/blocks/post-comments-form/style.min.css?ver=6.6.2" media="all"> <style id="wp-block-buttons-inline-css"> .wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter{text-align:center} </style> <style id="core-post-comments-form-styles-inline-css"> .wp-block-post-comments-form>*+*{margin-block:var(--block-vertical-rhythm, 1.25rem)}.wp-block-post-comments-form>*+*:last-child{margin-block-end:unset}.wp-block-post-comments-form.comment-respond{padding-block:1.25rem}.comment-form>*+*{margin-block:var(--block-vertical-rhythm, 1.25rem)}.comment-form>*+*:last-child{margin-block-end:unset}.logged-in-as{font-size:.9375rem}.required-field-message{display:block} /*# sourceMappingURL=post-comments-form.min.css.map*/ </style> <link rel="stylesheet" id="wp-block-comments-css" href="https://www.thewrap.com/wp-includes/blocks/comments/style.min.css?ver=6.6.2" media="all"> <style id="core-comments-styles-inline-css"> .wp-block-comments{--block-vertical-rhythm: 2rem;margin-block:2rem}.wp-block-comments>*+*{margin-block:var(--block-vertical-rhythm, 1.25rem)}.wp-block-comments>*+*:last-child{margin-block-end:unset} /*# sourceMappingURL=comments.min.css.map*/ </style> <style id="core-buttons-styles-inline-css"> .wp-block-buttons.is-layout-flex{gap:.75rem}@media(min-width: 48rem){.wp-block-buttons.display-no-medium{display:none}} /*# sourceMappingURL=buttons.min.css.map*/ </style> <style id="the-wrap-collapsed-comments-styles-inline-css"> .wp-block-the-wrap-collapsed-comments{margin-block-start:2.5rem}.wp-block-the-wrap-collapsed-comments .wp-block-comments--hidden{display:none} /*# sourceMappingURL=collapsed-comments.min.css.map*/ </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> <link rel="stylesheet" id="wp-block-library-css" href="https://www.thewrap.com/wp-includes/css/dist/block-library/common.min.css?ver=6.6.2" media="all"> <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-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;} :root :where(p){font-size: 1.125rem;line-height: 1.875rem;} :root :where(.wp-block-separator){border-top-color: #DCDFE4;border-bottom-width: 0;} </style> <style id="core-block-supports-inline-css"> .wp-container-core-buttons-is-layout-1{justify-content:center;} </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://www.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://www.thewrap.com/wp-content/themes/the-wrap/client/build/css/article.min.css?ver=5df581b785e1a525647c" media="all"> <link rel="stylesheet" id="the-wrap-lazy-render-css" href="https://www.thewrap.com/wp-content/themes/the-wrap/client/build/css/lazy-render.min.css?ver=0f5843808d1ad13c6790" media="all"> <script src="https://www.thewrap.com/wp-content/plugins/the-wrap/build/connatix/view.js?ver=6902a766fd6dad451b46" id="the-wrap-connatix-view-script-js" defer data-wp-strategy="defer"></script> <script src="https://www.thewrap.com/wp-content/plugins/the-wrap/build/collapsed-comments/view.js?ver=6e10062a3d2f2b630f2f" id="the-wrap-collapsed-comments-view-script-js" defer data-wp-strategy="defer"></script> <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> <script src="https://s.ntv.io/serve/load.js?ver=6.6.2" id="the-wrap-nativo-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/posts/7638183"><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.thewrap.com/xmlrpc.php?rsd"> <meta name="generator" content="WordPress 6.6.2"> <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({"author":"lucas-manfredi","tags":"marc-paskin office-with-a-view ryan-hayden united_talent_age","template":"Article page","dateCreated":"2024-11-12T11:30:00-08:00","dateLastModified":"2024-11-13T14:54:03Z","isGallery":"0","postId":"7638183"}); </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 --> <meta name="article-tags" content="marc-paskin, office-with-a-view, ryan-hayden, united_talent_agency, wrappro"> <meta name="article-section" content="office-with-a-view"> <meta name="article-categories" content="category-business, news, office-with-a-view, wrappro"> <script> ! function(n) { if (!window.cnx) { window.cnx = {}, window.cnx.cmd = []; var t = n.createElement("iframe"); t.src = 'javascript:false'; t.display = "none", t.onload = function() { var n = t.contentWindow.document, c = n.createElement("script"); c.src = "//cd.connatix.com/connatix.player.js?cid=8759484e-bb96-415e-9d33-167af5d155f0", c.setAttribute("async", "1"), c.setAttribute("type", "text/javascript"), n.body.appendChild(c) }, n.head.appendChild(t) } }(document); </script> <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&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&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&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&ssl=1"> <script> window.ybid = window.ybid || {}; ybid.cmd = ybid.cmd || []; ybid.cmd.push(function () { ybid.layout("universal"); ybid.setTargeting("Category", ["category-business","news","office-with-a-view","wrappro"]); ybid.setTargeting("Page-Type", "single"); ybid.setTargeting("Path", "/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/"); ybid.setTargeting("Post-Author", "Lucas Manfredi"); ybid.setTargeting("Post-Type", "post"); ybid.setTargeting("PostID", "7638183"); ybid.setTargeting("Tag", ["marc-paskin","office-with-a-view","ryan-hayden","united_talent_agency","wrappro"]); ybid.setTargeting("is_testing", "no"); ybid.setTargeting("testmode", ""); }); </script> </head> <body class="post-template post-template-single-full-width-with-ads single single-post postid-7638183 single-format-standard 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><symbol id="am-symbol-linkedin" viewbox="0 0 14 14"><g fill="currentColor"><path d="m3.33302 4.6665h-2.666678c-.184095 0-.333334.14924-.333334.33334v8.66666c0 .1841.149239.3334.333334.3334h2.666678c.18409 0 .33333-.1493.33333-.3334v-8.66666c0-.1841-.14924-.33334-.33333-.33334z"></path><path d="m1.98636 3.33329c.33019.00264.65373-.09285.92956-.27438.27583-.18152.49153-.44089.61972-.74519s.16311-.63982.10031-.964c-.06279-.32418-.22047-.622396-.45302-.85682s-.52949-.3944882-.85315-.4598852-.65945-.03317918-.96478.0925662c-.30532.125745-.566408.33935-.750141.613715-.183733.274364-.281827.597124-.281838.927324-.000877.218.041192.43403.123806.63577.082614.20173.204154.38522.357681.53999.153527.15476.336032.27777.537102.362.20107.08424.41676.12804.63475.12891z"></path><path d="m11.3334 14h2c.0884 0 .1732-.0351.2357-.0976s.0976-.1473.0976-.2357v-5.60003c0-2.51334-1.42-3.73335-3.4067-3.73335-.39339-.014-.78535.05472-1.15053.20171-.36519.14699-.69545.36899-.96946.65163-.03724.04043-.08634.06801-.14024.07879-.0539.01079-.10983.0042-.15976-.01879-.0504-.01883-.09393-.05246-.12487-.09649-.03093-.04402-.04783-.09638-.04846-.15018 0-.0884-.03512-.17319-.09763-.2357-.06252-.06251-.1473-.09763-.23571-.09763h-2.00001c-.0884 0-.17319.03512-.2357.09763s-.09763.1473-.09763.2357v8.66671c0 .0884.03512.1732.09763.2357s.1473.0976.2357.0976h2.00001c.08841 0 .17319-.0351.23571-.0976.06251-.0625.09763-.1473.09763-.2357v-5.00003c0-.44203.17559-.86595.48815-1.17851.31257-.31257.73649-.48816 1.17852-.48816s.86595.17559 1.17855.48816c.3125.31256.4881.73648.4881 1.17851v5.00003c0 .0884.0351.1732.0977.2357.0625.0625.1473.0976.2357.0976z"></path></g></symbol><symbol id="am-symbol-email" viewbox="0 0 14 10"><g fill="currentColor"><path d="m13.9358 1.401c-.0173-.01154-.0376-.0177-.0583-.0177-.0208 0-.0411.00616-.0584.0177l-5.68745 5.68748c-.14833.14885-.32475.26675-.51902.34686-.19426.08012-.40251.12084-.61264.11981-.4256-.00084-.83394-.16836-1.1375-.46667l-5.681657-5.66415c-.017267-.01154-.037567-.0177-.058333-.0177-.020767 0-.0410667.00616-.0583335.0177-.0161238.00636-.0304219.01661-.0416184.02985-.0111964.01323-.01894289.02903-.0225481.04598v6.99999c0 .30942.122916.60616.341708.82495.218792.2188.515538.34171.824952.34171h11.66664c.3094 0 .6062-.12291.825-.34171.2188-.21879.3417-.51553.3417-.82495v-6.99999c.0005-.02106-.0054-.04177-.0168-.05946-.0115-.01768-.028-.03152-.0474-.0397z"></path><path d="m6.48052 6.49348c.13827.13435.32346.2095.51625.2095.19278 0 .37798-.07515.51625-.2095l5.65248-5.652485c.038-.038261.0647-.086325.0771-.138847.0123-.052522.0099-.107442-.0071-.158652-.0642-.21-.245-.21-.4025-.21h-11.66664c-.16333 0-.33833 0-.402497.21-.016991.05121-.019444.10613-.007086.158652s.039043.100586.077086.138847z"></path></g></symbol></svg> <div class="yad-oop-ad-a wp-block-the-wrap-ad"></div> <!-- 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 class="yad-skin-ad-left wp-block-the-wrap-ad"></div> <div class="yad-skin-ad-right wp-block-the-wrap-ad"></div> </div> <div> <div class="yad-skin-ad-top wp-block-the-wrap-ad"></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="/members-hub/" aria-label="WrapPRO home" rel="bookmark" class="site-header__logo-link"> <svg aria-hidden="true" focusable="false" width="269" height="40" class="site-header__logo"><use href="#am-symbol-pro-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-7475584" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7475584 menu__submenu-item primary-menu__submenu-item"><a href="https://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-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-18" 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-19" 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-20" 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-21" 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-22" 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-23" 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-24" 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-25" 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-26" 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-27" 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-28" class="menu__submenu-link primary-menu__submenu-link">Data Insights</a></li> <li id="menu-item-7650677" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7650677 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/what-to-watch/" id="menu-link-29" 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-30" 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-31" 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 current-post-ancestor current-menu-parent current-post-parent menu-item-7552314 menu__submenu-item primary-menu__submenu-item"><a href="https://www.thewrap.com/category/wrappro/" id="menu-link-32" class="menu__submenu-link primary-menu__submenu-link">WrapPRO</a></li> </ul> </li> <li id="menu-item-7649926" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7649926 menu__item primary-menu__item"><a href="https://www.thewrap.com/what-to-watch/" id="menu-link-33" 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-34" 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-35" 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-36" 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-37" 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-38" 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-39" 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-40" 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-41" 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-42" 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-43" 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-44" 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-45" 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-46" 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-47" 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-48" 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-49" 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-50" class="screen-reader-text"> Search The Wrap </label> <input type="search" id="search-form-50" 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="Members Hub" class="site-header__trending-topics wp-block-the-wrap-nav-menu"> <h2 id="members-hub-nav-heading" class="members-hub__nav-heading"> Trending Topics: </h2> <ul aria-labelledby="members-hub-nav-heading" role="list" id="menu-wrappro-trending-bar" class="members-hub-menu"><li id="menu-item-7348482" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-7348482 menu__item members-hub-menu__item"><a href="https://www.thewrap.com/" id="menu-link-51" class="menu__link members-hub-menu__link">TheWrap</a></li> <li id="menu-item-7614674" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7614674 menu__item members-hub-menu__item"><a href="https://www.thewrap.com/category/thegrill-conference/" id="menu-link-52" class="menu__link members-hub-menu__link">TheGrill 2024</a></li> <li id="menu-item-7633062" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7633062 menu__item members-hub-menu__item"><a href="https://www.thewrap.com/thegrill-2024-panels-videos/" id="menu-link-53" class="menu__link members-hub-menu__link">TheGrill 2024 Videos</a></li> <li id="menu-item-7551704" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-7551704 menu__item members-hub-menu__item"><a href="https://www.thewrap.com/data-analysis/" id="menu-link-54" class="menu__link members-hub-menu__link">Data and Analysis</a></li> <li id="menu-item-7551702" class="menu-item menu-item-type-taxonomy menu-item-object-post_tag menu-item-7551702 menu__item members-hub-menu__item"><a href="https://www.thewrap.com/tag/earnings/" id="menu-link-55" class="menu__link members-hub-menu__link">Earnings</a></li> </ul></nav> </div> <div class="zephr_banner"></div> </header> <div id="content" class="site-content container"> <div class="yad-mob-banner-ad-b wp-block-the-wrap-ad"></div> <div class="yad-dsk-banner-ad-g wp-block-the-wrap-ad"></div> <div id="primary" class="content-area"> <main id="main" class="site-main"> <article> <header class="wp-block-the-wrap-article-header-full"> <div class="wp-block-the-wrap-article-header-full__info"> <h1 class="wp-block-post-title">UTA News Co-Heads Urge Media Vets to Be ‘Multi-Platform’ to Survive Shifting Landscape</h1> <div class="wp-block-the-wrap-column-image"> <a class="wp-block-the-wrap-column-image__link" href="https://www.thewrap.com/category/category-column/office-with-a-view/"> <div class="wp-block-the-wrap-column-image__name"> Office With a View </div> </a> </div> <p class="wp-block-the-wrap-subhed">Office With a View: Marc Paskin and Ryan Hayden predict more journalists will strike a balance between traditional news outlets and independent platforms</p> <div style="" class="wp-block-post-author--entry-header wp-block-post-author" id=""><a href="https://www.thewrap.com/author/lucas-manfredithewrap-com/" title="Posts by Lucas Manfredi" class="author url fn" rel="author">Lucas Manfredi</a></div> <div class="wp-block-post-date--entry-header wp-block-post-date"><time datetime="2024-11-12T11:30:00-08:00">November 12, 2024 @ 11:30 AM</time></div> <div class="article-header-full__social-shares wp-block-template-part"> <nav aria-label="Social Media" class="social-share"> <h2 id="social-share-nav-heading" class="screen-reader-only">Share on Social Media</h2> <ul role="list" aria-labelledby="social-share-nav-heading" class="social-share__social-accounts"> <li><a href="https://www.facebook.com/sharer.php?u%20=%20https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/" class="wp-block-the-wrap-social-link"> <svg aria-hidden="true" focusable="false" width="8.06" height="14"><use href="#am-symbol-facebook"></use></svg> <span class="screen-reader-text">Share on Facebook</span> </a> </li> <li><a href="https://twitter.com/share?url%20=%20https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/" class="wp-block-the-wrap-social-link"> <svg aria-hidden="true" focusable="false" width="14" height="11.81"><use href="#am-symbol-twitter"></use></svg> <span class="screen-reader-text">Share on X (formerly Twitter)</span> </a> </li> <li><a href="https://www.linkedin.com/shareArticle?mini%20=%20true&url%20=%20https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/" class="wp-block-the-wrap-social-link"> <svg aria-hidden="true" focusable="false" width="14" height="14"><use href="#am-symbol-linkedin"></use></svg> <span class="screen-reader-text">Share on LinkedIn</span> </a> </li> <li><a href="mailto:?body%20=%20https://www.thewrap.com/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/&subject%20=%20UTA%20News%20Co-Heads%20Urge%20Media%20Vets%20to%20Be%20‘Multi-Platform’%20to%20Survive%20Shifting%20Landscape" class="wp-block-the-wrap-social-link"> <svg aria-hidden="true" focusable="false" width="14" height="10"><use href="#am-symbol-email"></use></svg> <span class="screen-reader-text">Share on Email</span> </a> </li> </ul> </nav> </div> </div> <figure class="wp-block-post-featured-image"><img width="1200" height="675" src="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?fit=1200%2C675&ssl=1" class="attachment-the-wrap-theme-site-max size-the-wrap-theme-site-max wp-post-image" alt="" style="object-fit:cover;" decoding="async" fetchpriority="high" srcset="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?w=1200&ssl=1 1200w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=300%2C169&ssl=1 300w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=1024%2C576&ssl=1 1024w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=768%2C432&ssl=1 768w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=320%2C180&ssl=1 320w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=640%2C360&ssl=1 640w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=380%2C214&ssl=1 380w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=760%2C428&ssl=1 760w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=394%2C222&ssl=1 394w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=788%2C444&ssl=1 788w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=778%2C438&ssl=1 778w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=976%2C549&ssl=1 976w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/11/UTA-OWAV.jpg?resize=990%2C557&ssl=1 990w" sizes="(max-width: 1200px) 100vw, 1200px" data-portal-copyright="TheWrap" data-has-syndication-rights="1"><figcaption>Ryan Hayden and Marc Paskin (Photo courtesy of UTA)</figcaption></figure> <hr class="wp-block-separator"> </header> <div class="content-area"> <div style="position: relative;"> <div class="entry-content container container--entry-content entry-content--site-max container--entry-content-pro wp-block-post-content has-global-padding is-layout-constrained wp-block-post-content-is-layout-constrained"> <p>It’s no secret that the journalism industry is caught in the midst of a shifting media landscape, whether that be television audiences moving from traditional linear to streaming platforms, <a href="https://www.thewrap.com/hoda-kotb-left-today-show-nbc-salary-cut/">salary reductions</a> and <a href="https://www.thewrap.com/disney-layoffs-abc-news-owned-stations/">layoffs</a> due to belt-tightening across the major corporations or the emergence of new technologies like artificial intelligence.</p> <p>And for high-profile journalists like Norah O’Donnell, David Muir and Jake Tapper, the ones helping them navigate all of that during this period of transition is United Talent Agency’s co-heads of news Marc Paskin and Ryan Hayden. The pair, who spoke to TheWrap in their first joint interview since being appointed to their current roles in April, said the key advice they’re giving clients to weather all the changes is to make themselves indispensable by being “multi-platform.”</p></div><div style="height: 100%; max-height: 250px; position: absolute; width: 100%; bottom: 0; background-image: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);"></div> </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-cf8b5h{margin-top:1em;margin-bottom:1em}.zuora-disabled-iframe-container.svelte-cf8b5h .z_hppm_iframe{pointer-events:none;opacity:0.3} #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-1ni5n6w{display:flex;align-items:center;justify-content:center;margin:1.5em 0}.zephr-form-divider-line.svelte-1ni5n6w{height:1px;width:50%;margin:0 5px;background-color:var(--zephr-color-text-tinted)}.zephr-form-divider-line-complete.svelte-1ni5n6w{height:1px;width:100%;margin:0 5px;background-color:var(--zephr-color-text-tinted)}.zephr-form-divider-text.svelte-1ni5n6w{margin:0 12px;color:var(--zephr-color-text-main);font-size:14px;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} .subscriptions-list-container.svelte-ewgdz9{margin-top:15px} .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-1b6aeft.svelte-1b6aeft{display:grid;grid-template-columns:0.7fr 1.4fr 1fr 0.6fr}.table-head.svelte-1b6aeft.svelte-1b6aeft{display:contents}.table-row.svelte-1b6aeft.svelte-1b6aeft{display:contents}.table-head.svelte-1b6aeft>div.svelte-1b6aeft{font-size:13px;padding:13px 10px 10px;border-bottom:1px solid var(--zephr-color-background-tinted)}.table-row.svelte-1b6aeft>div.svelte-1b6aeft{font-size:14px;height:60px;padding:0 10px;border-bottom:1px solid var(--zephr-color-background-tinted);display:flex;align-items:center}.table-head.svelte-1b6aeft>div.svelte-1b6aeft:first-child,.table-row.svelte-1b6aeft>div.svelte-1b6aeft:first-child{padding-left:0}.table-head.svelte-1b6aeft>div.svelte-1b6aeft:last-child,.table-row.svelte-1b6aeft>div.svelte-1b6aeft:last-child{padding-right:0}.taxes.svelte-1b6aeft.svelte-1b6aeft{color:var(--zephr-color-background-tinted);white-space:pre;font-size:small} .zephr-form-content.svelte-1g2h5zh{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-1g2h5zh{background-color:transparent;border:none;border-radius:0}.zephr-form-max-width.svelte-1g2h5zh{max-width:var(--zf-container-maxWidth);margin:auto}.close-button-container.svelte-1g2h5zh{text-align:right;width:100%;margin-bottom:15px}.close-button.svelte-1g2h5zh{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-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)}.zephr-form.svelte-1ta1qs8{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 a(e){e.forEach(r)}function o(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 a=u(e,t,r,n);return e[0](a)}}function u(e,r,n,a){return e[1]&&a?t(n.ctx.slice(),e[1](a(r))):n.ctx}function d(e,t,r,n){if(e[2]&&n){const a=e[2](n(r));if(void 0===t.dirty)return a;if("object"==typeof a){const e=[],r=Math.max(t.dirty.length,a.length);for(let n=0;n<r;n+=1)e[n]=t.dirty[n]|a[n];return e}return t.dirty|a}return t.dirty}function p(e,t,r,n,a,o){if(a){const i=u(t,r,n,o);e.p(i,a)}}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 y(e,t){e.appendChild(t)}function g(e,t,r){e.insertBefore(t,r||null)}function h(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 A(e){return document.createElement(e)}function P(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function E(e){return document.createTextNode(e)}function C(){return E(" ")}function S(){return E("")}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 O(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const w=["width","height"];function I(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===w.indexOf(n)?e[n]=t[n]:O(e,n,t[n])}function _(e,t){t=""+t,e.data!==t&&(e.data=t)}function R(e,t){e.value=null==t?"":t}function M(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function $(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 L(e,t,r){e.classList.toggle(t,!!r)}function N(e,t){return new e(t)}let x;function F(e){x=e}function z(){if(!x)throw new Error("Function called outside component initialization");return x}function k(e){z().$$.on_mount.push(e)}function D(){const e=z();return(t,r,{cancelable:n=!1}={})=>{const a=e.$$.callbacks[t];if(a){const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}(t,r,{cancelable:n});return a.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const U=[],B=[];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=x;do{try{for(;Y<U.length;){const e=U[Y];Y++,F(e),Q(e.$$)}}catch(e){throw U.length=0,Y=0,e}for(F(null),U.length=0,Y=0;B.length;)B.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(U.length);for(;G.length;)G.pop()();q=!1,K.clear(),F(e)}function Q(e){if(null!==e.fragment){e.update(),a(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(H)}}const J=new Set;let Z;function X(){Z={r:0,c:[],p:Z}}function ee(){Z.r||a(Z.c),Z=Z.p}function te(e,t){e&&e.i&&(J.delete(e),e.i(t))}function re(e,t,r,n){if(e&&e.o){if(J.has(e))return;J.add(e),Z.c.push((()=>{J.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 ae(e,t){const r={},n={},a={$$scope:1};let o=e.length;for(;o--;){const i=e[o],s=t[o];if(s){for(const e in i)e in s||(n[e]=1);for(const e in s)a[e]||(r[e]=s[e],a[e]=1);e[o]=s}else for(const e in i)a[e]=1}for(const e in n)e in r||(r[e]=void 0);return r}function oe(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(o);e.$$.on_destroy?e.$$.on_destroy.push(...t):a(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),a(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]&&(U.push(e),q||(q=!0,j.then(W)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(t,r,o,i,s,c,l=null,u=[-1]){const d=x;F(t);const p=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||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:r.target||d.$$.root};l&&l(p.root);let m=!1;if(p.ctx=o?o(t,r.props||{},((e,r,...n)=>{const a=n.length?n[0]:r;return p.ctx&&s(p.ctx[e],p.ctx[e]=a)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](a),m&&le(t,e)),r})):[],p.update(),m=!0,a(p.before_update),p.fragment=!!i&&i(p.ctx),r.target){if(r.hydrate){const e=function(e){return Array.from(e.childNodes)}(r.target);p.fragment&&p.fragment.l(e),e.forEach(h)}else p.fragment&&p.fragment.c();r.intro&&te(t.$$.fragment),se(t,r.target,r.anchor),W()}F(d)}class de{$$=void 0;$$set=void 0;$destroy(){ce(this,1),this.$destroy=e}$on(t,r){if(!o(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 pe="700px",me="10000px",fe="0px",ye=500;function ge(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 a=t?pe:fe,o=t?fe:pe;e.animate([{maxHeight:o,overflow:"hidden"},{maxHeight:a,overflow:"hidden"}],{duration:ye,fill:"both"}).addEventListener("finish",(()=>{t&&e.animate([{maxHeight:a,overflow:"hidden"},{maxHeight:me,overflow:"hidden"}],{duration:100,fill:"both"})}))}}}const he="progress_bar",be="payment_option_selection",Ae="password",Pe="otp_code",Ee="button",Ce="payment",Se="payment-pre-loader",ve="email_address",Te="success_message",Oe="text",we="user_attribute",Ie="link",_e="resend_login_link",Re="social_sign_in",Me="payment_summary",$e="divider",Le="show_login_link",Ne="account_code",xe="mobile_payment",Fe="invitation",ze="template_component",ke="subscription_select",De="event_link",Ue="subscriptions_list",Be="billing_history",Ve="change_payment_method_button",Ge="read_only_email_address",je="read_only_password",qe="read_only_user_attribute",He="change_payment_method",Ke="devices_list",Ye="sign_out_of_devices_button";var We;!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"}(We||(We={}));const Qe={PLAN_SELECT:{type:"plan-select",order:0,completionEvent:We.PART_PLAN_SELECT_COMPLETE},ACCOUNT_VERIFICATION:{type:"account-verification",order:1,completionEvent:We.PART_ACCOUNT_VERIFICATION_COMPLETE},PAYMENT:{type:"payment",order:2,completionEvent:We.PART_PAYMENT_COMPLETE},SUCCESS:{type:"success",order:3,completionEvent:We.PART_SUCCESS_COMPLETE},CONTACT_VERIFICATION:{type:"contact-verification",order:1,completionEvent:We.PART_CONTACT_VERIFICATION_COMPLETE},PROFILE_UPDATE:{type:"profile-update",order:0,completionEvent:We.PART_PROFILE_UPDATE_COMPLETE},SELECT_SUBSCRIPTION:{type:"select-subscription",order:0,completionEvent:We.SELECT_SUBSCRIPTION_COMPLETE},EMAIL_UPDATE:{type:"email-update",order:0,completionEvent:We.PART_EMAIL_UPDATE_COMPLETE},EMAIL_UPDATE_OTP:{type:"email-update-otp",order:0,completionEvent:We.PART_EMAIL_UPDATE_OTP_COMPLETE},PASSWORD_UPDATE:{type:"password-update",order:0,completionEvent:We.PART_PASSWORD_UPDATE_COMPLETE},PASSWORD_UPDATE_OTP:{type:"password-update-otp",order:0,completionEvent:We.PART_PASSWORD_UPDATE_OTP_COMPLETE},ATTRIBUTES_UPDATE:{type:"attributes-update",order:0,completionEvent:We.PART_ATTRIBUTES_UPDATE_COMPLETE},LIST_SUBSCRIPTIONS:{type:"list-subscriptions",order:0},BILLING_HISTORY:{type:"billing-history",order:0},CHANGE_PAYMENT:{type:"change-payment",order:2,completionEvent:We.PART_CHANGE_PAYMENT_COMPLETE},DEVICES_SESSIONS:{type:"devices-sessions",order:0,completionEvent:We.LIST_DEVICES_SESSIONS}},Je=e=>Object.values(Qe).find((t=>t.type==e))||(()=>{throw`No part ${e} found`})();var Ze;!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"}(Ze||(Ze={}));const Xe={[Ze.USER_DOES_NOT_EXIST]:{languagePackKey:"forms.errors.user-not-found",fallbackMessage:"User not found.",jumpToPart:Qe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Ze.USER_ALREADY_EXISTS]:{languagePackKey:"forms.errors.email-taken",fallbackMessage:"This email address is already registered. Please log in to continue.",jumpToPart:Qe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Ze.EMAIL_VERIFICATION_REQUIRED]:{languagePackKey:"forms.errors.email-verification-required",fallbackMessage:"Email verification is required",jumpToPart:Qe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Ze.VERIFICATION_CODE_OR_PASSWORD_INCORRECT]:{languagePackKey:"forms.errors.otp-or-password-incorrect",fallbackMessage:"The password or code you entered is incorrect.",displayOnElements:[Pe,Ae]},[Ze.VERIFICATION_CODE_INCORRECT]:{languagePackKey:"forms.errors.otp-incorrect",fallbackMessage:"The code you entered is incorrect.",displayOnElements:[Pe]},[Ze.LOGIN_FAILED]:{languagePackKey:"forms.errors.login-failed",fallbackMessage:"The email address or password you entered is incorrect.",displayOnElements:[Ae,Pe]},[Ze.PASSWORD_NOT_STRONG_ENOUGH]:{languagePackKey:"n/a",fallbackMessage:"",useDymamicMessage:!0,displayOnElements:[Ae]},[Ze.UNKNOWN_LOGIN_REGISTER_ERROR]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Ae,Pe]},[Ze.NO_COOKIE_FROM_LOGIN_REGISTER_ERROR]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Ae,Pe]},[Ze.NO_ACCOUNT_ACCESS]:{languagePackKey:"forms.errors.too-many-requests",fallbackMessage:"To gain login access, please contact your administrator.",displayOnElements:[Ae]},[Ze.ACCOUNT_NOT_FOUND]:{languagePackKey:"forms.errors.company-account-not-found",fallbackMessage:"Account not found.",jumpToPart:Qe.ACCOUNT_VERIFICATION.type,displayOnElements:[Ne]},[Ze.PAYMENT_PROCESSING_ERROR]:{languagePackKey:"forms.errors.unknown-payment-error",fallbackMessage:"Something went wrong when processing your payment. Please try again later.",displayOnElements:[Ce]},[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]:{languagePackKey:"forms.errors.unknown-payment-error",fallbackMessage:"Something went wrong when processing your payment. Please try again later.",displayOnElements:[xe]},[Ze.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:[Ie]},[Ze.VERIFICATION_CODE_SEND_ERROR]:{languagePackKey:"forms.errors.otp-send-failed",fallbackMessage:"Unable to send a verification code. Please try again later",displayOnElements:[Pe]},[Ze.PASSWORD_RESET_ERROR]:{languagePackKey:"forms.errors.password-reset-failed",fallbackMessage:"Unable to reset your password. Please try again later",displayOnElements:[Ae]},[Ze.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Re]},[Ze.PROMO_CODE_EXPIRED_ERROR]:{languagePackKey:"forms.errors.promo-code-expired",fallbackMessage:"Promo code expired",displayOnElements:[Me]},[Ze.PROMO_CODE_INVALID_ERROR]:{languagePackKey:"forms.errors.promo-code-invalid",fallbackMessage:"Invalid promo code",displayOnElements:[Me]},[Ze.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:[Me]},[Ze.INVITATION_FAILED_LIMIT_REACHED]:{languagePackKey:"forms.errors.invitation-failed-limit-reached",fallbackMessage:"You have reached the sharing limit for this product",displayOnElements:[Fe]},[Ze.INVITATION_FAILED_DUPLICATE_EMAIL]:{languagePackKey:"forms.errors.invitation-failed-duplicate-email",fallbackMessage:"An invite has already been created for this email",displayOnElements:[Fe]},[Ze.INVITATION_FAILED_INVALID_EMAIL]:{languagePackKey:"forms.errors.invitation-failed-invalid-email",fallbackMessage:"Invalid email address",displayOnElements:[Fe]},[Ze.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]},[Ze.INVITATION_FAILED_UNKNOWN]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later",displayOnElements:[Fe]},[Ze.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]},[Ze.INVALID_USER_ATTRIBUTES]:{languagePackKey:"forms.errors.user-attribute-invalid",fallbackMessage:"Invalid User Attribute",displayOnElements:[we]},[Ze.CONTACT_CREATION_NOT_ENABLED]:{languagePackKey:"forms.errors.contact-creation-disabled",fallbackMessage:"This operation is not possible at the moment, please try again later.",jumpToPart:Qe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Ze.NO_AUTHENTICATED_SESSION]:{languagePackKey:"forms.errors.no-authenticated-session",fallbackMessage:"Please login to update your profile"},[Ze.BLOCKED_EMAIL_DOMAIN]:{languagePackKey:"forms.errors.email-domain-blocked",fallbackMessage:"Please use a different email address, this domain is not supported.",jumpToPart:Qe.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Ze.UNKNOWN]:{languagePackKey:"forms.errors.unknown-error",fallbackMessage:"Something went wrong. Please try again later"}},et=(e,t)=>t.serverErrors.find((t=>Xe[t].displayOnElements?.includes(e)))??void 0,tt={PLAN_SELECT:{type:"plan_select",defaultLabel:"Plan Select",fullWidth:!0},EMAIL:{type:"email",defaultLabel:"Account Verification",completionEvent:We.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:We.SECTION_FORGOT_PASSWORD_COMPLETE},PASSWORD_RESET:{type:"reset_password",defaultLabel:"",completionEvent:We.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:We.PART_CHANGE_PAYMENT_COMPLETE,defaultLabel:""},SELECT:{type:"select",defaultLabel:"",fullWidth:!0}},rt=e=>Object.values(tt).find((t=>t.type==e)),nt=(e,t)=>t.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).find((t=>t.section.type===e)),at=(e,t,r)=>{const n=nt(e,t);if(!n)throw`Cannot find section ${e}`;return pt({form:t,formActions:r,part:n.part,section:n.section}),Promise.resolve()},ot=(e,t,r)=>{if(t.environment.previewMode)return;const n=t.parts.find((t=>t.type==e));return pt({form:t,formActions:r,part:n,section:n.sections[0]}),Promise.resolve()},it=(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=Je(e.type);if(r){const n=t.parts.find((e=>Je(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)},st=e=>e?.startsWith("custom_")?"registration_custom":e,ct=(e,t,r)=>t.sectionFlow.sectionVisibilities.find((t=>t.type===st(e.type)))?.isVisible(t,r)??!0,lt=(e,t,r)=>{const n=t.sectionFlow.sectionVisibilities.find((t=>t.type===st(e.type)));return(n?.isDisplayedInProgressBar&&ct(e,t,r))??!0},ut=(e,t,r)=>{if(e.environment.previewMode)return;let n=0,a={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 ${a?.part?.type}:${a?.section?.type}\n `);const r=it(a?.section,a?.part,e);if(r?.part.type===a?.part?.type&&r?.section.type===a?.section?.type&&r?.section.order===a?.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 `);a=r}while(a&&!ct(a.section,e,t));if(!a||a.part!==t.currentPart){const n=Je(t.currentPart.type),a=n?.completionEvent&&e.sectionFlow.eventHandlers[n.completionEvent];if(a)return a(e,t,r)}if(!a)throw"No next section";return pt({form:e,formActions:r,part:a.part,section:a.section}),Promise.resolve()},dt=(e,t,r)=>{if(e.environment.previewMode)return;const n=rt(t.currentSection.type);return((n&&e.sectionFlow.eventHandlers[n.completionEvent])??ut)(e,t,r)},pt=({form:e,formActions:t,part:r,section:n})=>{t.updateFormState({currentPart:r,currentSection:n}),(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 mt(e,t,r){const n=e.slice();n[7]=t[r];const a=!n[0]&&!n[7].isDisabled&&n[7].order<n[2].order;return n[8]=a,n}function ft(e){let t,r,n,a=ne(e[3]),o=[];for(let t=0;t<a.length;t+=1)o[t]=ht(mt(e,a,t));return{c(){t=A("div");for(let e=0;e<o.length;e+=1)o[e].c();r=C(),n=A("progress"),O(t,"class","zephr-form-flex-container"),L(t,"zephr-payment-form-flex-container",e[1]),O(n,"class","zephr-form-progress-bar svelte-d78fa2"),O(n,"id","progress-bar"),O(n,"max","100"),n.value=e[4],L(n,"zephr-payment-form-progress-bar",e[1])},m(e,a){g(e,t,a);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,null);g(e,r,a),g(e,n,a)},p(e,r){if(15&r){let n;for(a=ne(e[3]),n=0;n<a.length;n+=1){const i=mt(e,a,n);o[n]?o[n].p(i,r):(o[n]=ht(i),o[n].c(),o[n].m(t,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=a.length}2&r&&L(t,"zephr-payment-form-flex-container",e[1]),16&r&&(n.value=e[4]),2&r&&L(n,"zephr-payment-form-progress-bar",e[1])},d(e){e&&(h(t),h(r),h(n)),b(o,e)}}}function yt(e){let t,r,n,a=e[7].label+"";return{c(){t=A("div"),r=E(a),n=C(),O(t,"class","zephr-progress-bar-step disabled svelte-d78fa2"),L(t,"zephr-payment-progress-bar-step",e[1])},m(e,a){g(e,t,a),y(t,r),y(t,n)},p(e,n){8&n&&a!==(a=e[7].label+"")&&_(r,a),2&n&&L(t,"zephr-payment-progress-bar-step",e[1])},d(e){e&&h(t)}}}function gt(e){let t,r,n,a,o,i=e[7].label+"";function s(){return e[6](e[7])}return{c(){t=A("button"),r=E(i),n=C(),O(t,"type","button"),O(t,"class","zephr-progress-bar-step svelte-d78fa2"),L(t,"zephr-payment-progress-bar-step",e[1])},m(e,i){g(e,t,i),y(t,r),y(t,n),a||(o=v(t,"click",T(s)),a=!0)},p(n,a){e=n,8&a&&i!==(i=e[7].label+"")&&_(r,i),2&a&&L(t,"zephr-payment-progress-bar-step",e[1])},d(e){e&&h(t),a=!1,o()}}}function ht(e){let t;function r(e,t){return e[8]?gt:yt}let n=r(e),a=n(e);return{c(){a.c(),t=S()},m(e,r){a.m(e,r),g(e,t,r)},p(e,o){n===(n=r(e))&&a?a.p(e,o):(a.d(1),a=n(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){e&&h(t),a.d(e)}}}function bt(t){let r,n=!isNaN(t[4]),a=n&&ft(t);return{c(){a&&a.c(),r=S()},m(e,t){a&&a.m(e,t),g(e,r,t)},p(e,[t]){16&t&&(n=!isNaN(e[4])),n?a?a.p(e,t):(a=ft(e),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},i:e,o:e,d(e){e&&h(r),a&&a.d(e)}}}function At(e,t,r){let n,a,o,{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,a=s.filter((e=>e.isVisible))),12&e.$$.dirty&&r(4,o=Math.floor(100/(a.length-1)*(n.isVisible?n.visibleOrder:Math.max.apply(Math,a.filter((e=>e.order<n.order)).map((e=>e.visibleOrder))))))},[i,c,n,a,o,s,e=>{e.onSelect()}]}class Pt extends de{constructor(e){super(),ue(this,e,At,bt,i,{disabled:0,items:5,isPaymentForm:1})}}var Et;!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"}(Et||(Et={}));const Ct=(e,t,r)=>{let n=0,a=0;return e.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).map((({part:o,section:i})=>({type:i.type,isVisible:lt(i,e,t),label:i.label??o.label??rt(i.type)?.defaultLabel,isCurrent:t.currentSection==i,isDisabled:t.loginRegistrationComplete&&![Qe.PLAN_SELECT.type].includes(o.type),order:n++,visibleOrder:lt(i,e,t)?a++:null,onSelect:()=>pt({form:e,formActions:r,part:o,section:i})})))},St={matches:e=>e.type===he,create:(e,t,r)=>({component:Pt,props:{disabled:t.isBusy,items:Ct(e,t,r),isPaymentForm:e.formType===Et.PAYMENT}})},vt=e=>e.typeConfiguration;function Tt(t){let r,n,a,i;return{c(){r=A("button"),n=E(t[1]),O(r,"class","zephr-form-button svelte-1eqnyqe"),O(r,"type","submit"),r.disabled=t[0],L(r,"zephr-payment-form-button",t[5]),L(r,"zephr-form-button-top-margin",!t[2]),L(r,"zephr-payment-form-button-top-margin",t[5]&&!t[2]),L(r,"inputHeight",t[3]),L(r,"aside",t[4])},m(e,s){g(e,r,s),y(r,n),a||(i=v(r,"click",T((function(){o(t[6])&&t[6].apply(this,arguments)}))),a=!0)},p(e,[a]){t=e,2&a&&_(n,t[1]),1&a&&(r.disabled=t[0]),32&a&&L(r,"zephr-payment-form-button",t[5]),4&a&&L(r,"zephr-form-button-top-margin",!t[2]),36&a&&L(r,"zephr-payment-form-button-top-margin",t[5]&&!t[2]),8&a&&L(r,"inputHeight",t[3]),16&a&&L(r,"aside",t[4])},i:e,o:e,d(e){e&&h(r),a=!1,i()}}}function Ot(e,t,r){let{disabled:n}=t,{text:a}=t,{noMargin:o=!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,a=e.text),"noMargin"in e&&r(2,o=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,a,o,i,s,c,l]}class wt extends de{constructor(e){super(),ue(this,e,Ot,Tt,i,{disabled:0,text:1,noMargin:2,inputHeight:3,aside:4,isPaymentForm:5,onClick:6})}}function It(e){let t,r,n=e[1].highlightedText+"";return{c(){t=A("div"),r=E(n),O(t,"class","box-top-text svelte-wecxzz")},m(e,n){g(e,t,n),y(t,r)},p(e,t){2&t&&n!==(n=e[1].highlightedText+"")&&_(r,n)},d(e){e&&h(t)}}}function _t(e){let t,r,n=e[1].disclaimerMessage+"";return{c(){t=A("span"),r=E(n),O(t,"class","button-sub-text svelte-wecxzz")},m(e,n){g(e,t,n),y(t,r)},p(e,t){2&t&&n!==(n=e[1].disclaimerMessage+"")&&_(r,n)},d(e){e&&h(t)}}}function Rt(e){let t,r,n,a,i,s,c,l,u,d,p,m,f,b,P,E,S,w,I,_=(e[1].description??"")+"",R=e[1].highlightedText&&It(e);f=new wt({props:{disabled:!1,text:e[1].selectButtonText??"Select Plan",onClick:e[0],isPaymentForm:!0}});let $=e[1].disclaimerMessage&&_t(e);return{c(){t=A("div"),r=A("input"),i=C(),s=A("div"),c=A("div"),R&&R.c(),l=C(),u=A("div"),d=A("div"),p=C(),m=A("div"),ie(f.$$.fragment),b=C(),$&&$.c(),O(r,"type","radio"),O(r,"name","boxSelect"),O(r,"id",n="boxSelect-"+e[1].slug+"-"+e[1].productId+"}"),r.value=a=e[1].price,O(r,"class","svelte-wecxzz"),O(c,"class","box-top svelte-wecxzz"),O(d,"class","box-content svelte-wecxzz"),L(d,"styled-box-content",e[2]),O(m,"class","box-bottom svelte-wecxzz"),O(u,"class",P="inner-box "+(e[1].highlightedText||"")+" svelte-wecxzz"),O(s,"class",E="box-container "+(e[1].highlightedText?"highlighted":"")+" svelte-wecxzz"),O(s,"aria-hidden","true"),M(s,"cursor","pointer"),O(t,"class","payment-option-wrapper svelte-wecxzz")},m(n,a){g(n,t,a),y(t,r),y(t,i),y(t,s),y(s,c),R&&R.m(c,null),y(s,l),y(s,u),y(u,d),d.innerHTML=_,y(u,p),y(u,m),se(f,m,null),y(m,b),$&&$.m(m,null),S=!0,w||(I=v(s,"click",T((function(){o(e[0])&&e[0].apply(this,arguments)}))),w=!0)},p(t,[o]){e=t,(!S||2&o&&n!==(n="boxSelect-"+e[1].slug+"-"+e[1].productId+"}"))&&O(r,"id",n),(!S||2&o&&a!==(a=e[1].price))&&(r.value=a),e[1].highlightedText?R?R.p(e,o):(R=It(e),R.c(),R.m(c,null)):R&&(R.d(1),R=null),(!S||2&o)&&_!==(_=(e[1].description??"")+"")&&(d.innerHTML=_),(!S||4&o)&&L(d,"styled-box-content",e[2]);const i={};2&o&&(i.text=e[1].selectButtonText??"Select Plan"),1&o&&(i.onClick=e[0]),f.$set(i),e[1].disclaimerMessage?$?$.p(e,o):($=_t(e),$.c(),$.m(m,null)):$&&($.d(1),$=null),(!S||2&o&&P!==(P="inner-box "+(e[1].highlightedText||"")+" svelte-wecxzz"))&&O(u,"class",P),(!S||2&o&&E!==(E="box-container "+(e[1].highlightedText?"highlighted":"")+" svelte-wecxzz"))&&O(s,"class",E)},i(e){S||(te(f.$$.fragment,e),S=!0)},o(e){re(f.$$.fragment,e),S=!1},d(e){e&&h(t),R&&R.d(),ce(f),$&&$.d(),w=!1,I()}}}function Mt(e,t,r){let{onSelect:n}=t,{paymentOption:a}=t,{styleDescription:o}=t;return e.$$set=e=>{"onSelect"in e&&r(0,n=e.onSelect),"paymentOption"in e&&r(1,a=e.paymentOption),"styleDescription"in e&&r(2,o=e.styleDescription)},[n,a,o]}class $t extends de{constructor(e){super(),ue(this,e,Mt,Rt,i,{onSelect:0,paymentOption:1,styleDescription:2})}}function Lt(e,t,r){const n=e.slice();return n[5]=t[r],n}function Nt(e){let t,r;function n(){return e[4](e[5])}return t=new $t({props:{paymentOption:e[5],styleDescription:e[0].styleDescription,onSelect:n}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,a){e=r;const o={};4&a&&(o.paymentOption=e[5]),1&a&&(o.styleDescription=e[0].styleDescription),6&a&&(o.onSelect=n),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 xt(e){let t,r,n=ne(e[2]),a=[];for(let t=0;t<n.length;t+=1)a[t]=Nt(Lt(e,n,t));const o=e=>re(a[e],1,1,(()=>{a[e]=null}));return{c(){t=A("div");for(let e=0;e<a.length;e+=1)a[e].c();O(t,"class","payment-options-container svelte-15oxdku")},m(e,n){g(e,t,n);for(let e=0;e<a.length;e+=1)a[e]&&a[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 o=Lt(e,n,i);a[i]?(a[i].p(o,r),te(a[i],1)):(a[i]=Nt(o),a[i].c(),te(a[i],1),a[i].m(t,null))}for(X(),i=n.length;i<a.length;i+=1)o(i);ee()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)te(a[e]);r=!0}},o(e){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)re(a[e]);r=!1},d(e){e&&h(t),b(a,e)}}}function Ft(e,t,r){let n,{paymentOptions:a}=t,{config:o}=t,{onSelect:i}=t;return e.$$set=e=>{"paymentOptions"in e&&r(3,a=e.paymentOptions),"config"in e&&r(0,o=e.config),"onSelect"in e&&r(1,i=e.onSelect)},e.$$.update=()=>{8&e.$$.dirty&&r(2,n=a.sort(((e,t)=>e.fieldOrder-t.fieldOrder)))},[o,i,n,a,e=>i(e)]}class zt extends de{constructor(e){super(),ue(this,e,Ft,xt,i,{paymentOptions:3,config:0,onSelect:1})}}const kt=(e,t)=>vt(e).changeSubscriptionMode?vt(e).paymentOptions.filter((e=>t.validChangeFromPlans.some((t=>t.productId===e.productId&&t.planSlug===e.slug)))):vt(e).paymentOptions,Dt={matches:e=>e.type===be,create:(e,t,r,n)=>({component:zt,props:{paymentOptions:kt(e,t),config:n||{},onSelect:e=>{r.updateFormState({paymentOption:e,serverErrors:[],billingAddress:{country:null,postalCode:null}}),r.completeSection()}}})};function Ut(t){let r,n,a;return{c(){r=A("div"),n=A("div"),a=E(t[0]),O(n,"class","zephr-form-error-message svelte-719cfr"),O(n,"aria-live","assertive"),L(n,"zephr-payment-form-error-message",!t[1]),O(r,"class","zephr-form-error-message-min-height svelte-719cfr"),L(r,"zephr-payment-form-error-message-min-height",!t[1])},m(e,t){g(e,r,t),y(r,n),y(n,a)},p(e,[t]){1&t&&_(a,e[0]),2&t&&L(n,"zephr-payment-form-error-message",!e[1]),2&t&&L(r,"zephr-payment-form-error-message-min-height",!e[1])},i:e,o:e,d(e){e&&h(r)}}}function Bt(e,t,r){let{error:n}=t,{isPaymentForm:a=!1}=t;return e.$$set=e=>{"error"in e&&r(0,n=e.error),"isPaymentForm"in e&&r(1,a=e.isPaymentForm)},[n,a]}class Vt extends de{constructor(e){super(),ue(this,e,Bt,Ut,i,{error:0,isPaymentForm:1})}}function Gt(e){let t,r,n,a,i;return{c(){t=A("button"),r=A("span"),n=E(e[16]),O(r,"class","zephr-form-input-inner-text"),L(r,"zephr-payment-form-input-inner-text",e[7]),O(t,"type","button"),O(t,"class","zephr-form-input-inner-button")},m(s,c){g(s,t,c),y(t,r),y(r,n),e[26](t),a||(i=v(t,"click",T((function(){o(e[17])&&e[17].apply(this,arguments)}))),a=!0)},p(t,a){e=t,65536&a&&_(n,e[16]),128&a&&L(r,"zephr-payment-form-input-inner-text",e[7])},d(r){r&&h(t),e[26](null),a=!1,i()}}}function jt(e){let t,r;return t=new Vt({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 qt(e){let t,r,n,o,i,s,c,u,b,P,E,T,w,I,_,R,M,$,N=e[16]&&Gt(e);const x=e[24].default,F=l(x,e,e[23],null);let z=e[6]&&jt(e);return{c(){t=A("div"),r=A("input"),T=C(),N&&N.c(),w=C(),F&&F.c(),I=C(),z&&z.c(),_=S(),O(r,"id",e[0]),O(r,"name",e[1]),r.required=e[3],r.disabled=e[4],O(r,"type",e[2]),r.value=n=e[8]||null,O(r,"autocomplete",o=e[19]||null),r.checked=i=e[10]||null,O(r,"placeholder",s=e[9]||null),O(r,"pattern",c=e[11]||null),O(r,"min",u=e[12]||null),O(r,"max",b=e[13]||null),O(r,"maxlength",e[15]),O(r,"step",P=e[14]||null),O(r,"class",E=f(`zephr-form-input ${e[2]&&`zephr-form-input-${e[2]}`} ${e[7]&&e[2]&&`zephr-payment-form-input-${e[2]}`}`)+" svelte-127vcsp"),L(r,"disabled",e[4]),L(r,"error",e[5]||e[6]),L(r,"zephr-form-input-full-width",e[18]),L(r,"zephr-payment-form-input",e[7]),L(r,"zephr-payment-form-input-full-width",e[7]&&e[18]),O(t,"class","zephr-form-input-inner-container svelte-127vcsp"),L(t,"zephr-payment-form-input-inner-container",e[7])},m(n,a){g(n,t,a),y(t,r),e[25](r),y(t,T),N&&N.m(t,null),g(n,w,a),F&&F.m(n,a),g(n,I,a),z&&z.m(n,a),g(n,_,a),R=!0,M||($=[v(r,"input",e[22]),v(r,"paste",e[22])],M=!0)},p(e,[a]){(!R||1&a)&&O(r,"id",e[0]),(!R||2&a)&&O(r,"name",e[1]),(!R||8&a)&&(r.required=e[3]),(!R||16&a)&&(r.disabled=e[4]),(!R||4&a)&&O(r,"type",e[2]),(!R||256&a&&n!==(n=e[8]||null)&&r.value!==n)&&(r.value=n),(!R||524288&a&&o!==(o=e[19]||null))&&O(r,"autocomplete",o),(!R||1024&a&&i!==(i=e[10]||null))&&(r.checked=i),(!R||512&a&&s!==(s=e[9]||null))&&O(r,"placeholder",s),(!R||2048&a&&c!==(c=e[11]||null))&&O(r,"pattern",c),(!R||4096&a&&u!==(u=e[12]||null))&&O(r,"min",u),(!R||8192&a&&b!==(b=e[13]||null))&&O(r,"max",b),(!R||32768&a)&&O(r,"maxlength",e[15]),(!R||16384&a&&P!==(P=e[14]||null))&&O(r,"step",P),(!R||132&a&&E!==(E=f(`zephr-form-input ${e[2]&&`zephr-form-input-${e[2]}`} ${e[7]&&e[2]&&`zephr-payment-form-input-${e[2]}`}`)+" svelte-127vcsp"))&&O(r,"class",E),(!R||148&a)&&L(r,"disabled",e[4]),(!R||228&a)&&L(r,"error",e[5]||e[6]),(!R||262276&a)&&L(r,"zephr-form-input-full-width",e[18]),(!R||132&a)&&L(r,"zephr-payment-form-input",e[7]),(!R||262276&a)&&L(r,"zephr-payment-form-input-full-width",e[7]&&e[18]),e[16]?N?N.p(e,a):(N=Gt(e),N.c(),N.m(t,null)):N&&(N.d(1),N=null),(!R||128&a)&&L(t,"zephr-payment-form-input-inner-container",e[7]),F&&F.p&&(!R||8388608&a)&&p(F,x,e,e[23],R?d(x,e[23],a,null):m(e[23]),null),e[6]?z?(z.p(e,a),64&a&&te(z,1)):(z=jt(e),z.c(),te(z,1),z.m(_.parentNode,_)):z&&(X(),re(z,1,1,(()=>{z=null})),ee())},i(e){R||(te(F,e),te(z),R=!0)},o(e){re(F,e),re(z),R=!1},d(r){r&&(h(t),h(w),h(I),h(_)),e[25](null),N&&N.d(),F&&F.d(r),z&&z.d(r),M=!1,a($)}}}function Ht(e,t,r){let{$$slots:n={},$$scope:a}=t;const o=D();let i,s,{id:c}=t,{name:l=c}=t,{type:u="text"}=t,{required:d=!0}=t,{disabled:p=!1}=t,{hasError:m=!1}=t,{errorMessage:f=null}=t,{isPaymentForm:y=!1}=t,{value:g=""}=t,{placeholder:h=""}=t,{checked:b=!1}=t,{pattern:A=""}=t,{min:P=0}=t,{max:E=0}=t,{step:C=0}=t,{maxlength:S=null}=t,{innerText:v=null}=t,{innerTextOnClick:T=null}=t,{fill:O=!1}=t,{autocomplete:w=""}=t;var I;return I=()=>{v&&s&&i&&r(20,i.style.paddingRight=`${s.offsetWidth+8}px`,i)},z().$$.after_update.push(I),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,d=e.required),"disabled"in e&&r(4,p=e.disabled),"hasError"in e&&r(5,m=e.hasError),"errorMessage"in e&&r(6,f=e.errorMessage),"isPaymentForm"in e&&r(7,y=e.isPaymentForm),"value"in e&&r(8,g=e.value),"placeholder"in e&&r(9,h=e.placeholder),"checked"in e&&r(10,b=e.checked),"pattern"in e&&r(11,A=e.pattern),"min"in e&&r(12,P=e.min),"max"in e&&r(13,E=e.max),"step"in e&&r(14,C=e.step),"maxlength"in e&&r(15,S=e.maxlength),"innerText"in e&&r(16,v=e.innerText),"innerTextOnClick"in e&&r(17,T=e.innerTextOnClick),"fill"in e&&r(18,O=e.fill),"autocomplete"in e&&r(19,w=e.autocomplete),"$$scope"in e&&r(23,a=e.$$scope)},[c,l,u,d,p,m,f,y,g,h,b,A,P,E,C,S,v,T,O,w,i,s,e=>{o("change","checkbox"!==u?e.target.value:e.target.checked)},a,n,function(e){B[e?"unshift":"push"]((()=>{i=e,r(20,i)}))},function(e){B[e?"unshift":"push"]((()=>{s=e,r(21,s)}))}]}class Kt extends de{constructor(e){super(),ue(this,e,Ht,qt,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})}}function Yt(e){let t,r;return{c(){t=A("span"),r=E(e[1]),O(t,"class","svelte-vnzoa4")},m(e,n){g(e,t,n),y(t,r)},p(e,t){2&t&&_(r,e[1])},d(e){e&&h(t)}}}function Wt(e){let t,r,n,a,o,i,s=e[1]&&Yt(e);const c=e[6].default,u=l(c,e,e[5],null);return{c(){t=A("label"),r=A("span"),n=E(e[2]),a=C(),s&&s.c(),o=C(),u&&u.c(),O(r,"class","svelte-vnzoa4"),O(t,"class","zephr-form-input-label svelte-vnzoa4"),O(t,"for",e[0]),O(t,"style",e[3]),L(t,"zephr-payment-form-input-label",e[4])},m(e,c){g(e,t,c),y(t,r),y(r,n),y(t,a),s&&s.m(t,null),y(t,o),u&&u.m(t,null),i=!0},p(e,[r]){(!i||4&r)&&_(n,e[2]),e[1]?s?s.p(e,r):(s=Yt(e),s.c(),s.m(t,o)):s&&(s.d(1),s=null),u&&u.p&&(!i||32&r)&&p(u,c,e,e[5],i?d(c,e[5],r,null):m(e[5]),null),(!i||1&r)&&O(t,"for",e[0]),(!i||8&r)&&O(t,"style",e[3]),(!i||16&r)&&L(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&&h(t),s&&s.d(),u&&u.d(e)}}}function Qt(e,t,r){let{$$slots:n={},$$scope:a}=t,{forInput:o}=t,{sublabel:i=""}=t,{label:s=""}=t,{style:c=""}=t,{isPaymentForm:l=!1}=t;return e.$$set=e=>{"forInput"in e&&r(0,o=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,a=e.$$scope)},[o,i,s,c,l,a,n]}class Jt extends de{constructor(e){super(),ue(this,e,Qt,Wt,i,{forInput:0,sublabel:1,label:2,style:3,isPaymentForm:4})}}function Zt(e){let t,r,n,a,o;return t=new Jt({props:{forInput:e[11],label:e[1],isPaymentForm:e[8]}}),a=new Kt({props:{disabled:e[0],required:!0,id:e[11],type:e[12],value:e[9],placeholder:e[2],errorMessage:e[5],autocomplete:e[7],isPaymentForm:e[8],innerTextOnClick:e[14],innerText:e[10]?e[4]:e[3]}}),a.$on("change",e[15]),{c(){ie(t.$$.fragment),r=C(),n=A("div"),ie(a.$$.fragment),O(n,"class","zephr-form-relative-container"),L(n,"zephr-payment-form-relative-container",e[8])},m(e,i){se(t,e,i),g(e,r,i),g(e,n,i),se(a,n,null),o=!0},p(e,[r]){const i={};2048&r&&(i.forInput=e[11]),2&r&&(i.label=e[1]),256&r&&(i.isPaymentForm=e[8]),t.$set(i);const s={};1&r&&(s.disabled=e[0]),2048&r&&(s.id=e[11]),4096&r&&(s.type=e[12]),512&r&&(s.value=e[9]),4&r&&(s.placeholder=e[2]),32&r&&(s.errorMessage=e[5]),128&r&&(s.autocomplete=e[7]),256&r&&(s.isPaymentForm=e[8]),1024&r&&(s.innerTextOnClick=e[14]),1048&r&&(s.innerText=e[10]?e[4]:e[3]),a.$set(s),(!o||256&r)&&L(n,"zephr-payment-form-relative-container",e[8])},i(e){o||(te(t.$$.fragment,e),te(a.$$.fragment,e),o=!0)},o(e){re(t.$$.fragment,e),re(a.$$.fragment,e),o=!1},d(e){e&&(h(r),h(n)),ce(t,e),ce(a)}}}function Xt(e,t,r){let n,a,{disabled:o}=t,{label:i}=t,{placeholder:s}=t,{isMainPassword:c}=t,{showLabel:l}=t,{hideLabel:u}=t,{error:d=null}=t,{onChange:p}=t,{autocomplete:m}=t,{isPaymentForm:f=!1}=t,{password:y}=t,g=!1;return e.$$set=e=>{"disabled"in e&&r(0,o=e.disabled),"label"in e&&r(1,i=e.label),"placeholder"in e&&r(2,s=e.placeholder),"isMainPassword"in e&&r(13,c=e.isMainPassword),"showLabel"in e&&r(3,l=e.showLabel),"hideLabel"in e&&r(4,u=e.hideLabel),"error"in e&&r(5,d=e.error),"onChange"in e&&r(6,p=e.onChange),"autocomplete"in e&&r(7,m=e.autocomplete),"isPaymentForm"in e&&r(8,f=e.isPaymentForm),"password"in e&&r(9,y=e.password)},e.$$.update=()=>{1024&e.$$.dirty&&r(12,n=g?"text":"password"),8192&e.$$.dirty&&r(11,a="zephr-form-"+(c?"password":"confirm-password"))},[o,i,s,l,u,d,p,m,f,y,g,a,n,c,()=>r(10,g=!g),({detail:e})=>p(e)]}class er extends de{constructor(e){super(),ue(this,e,Xt,Zt,i,{disabled:0,label:1,placeholder:2,isMainPassword:13,showLabel:3,hideLabel:4,error:5,onChange:6,autocomplete:7,isPaymentForm:8,password:9})}}function tr(e){let t,r,n,a,o,i,s;function c(e,t){return"string"==typeof e[16][4]?nr:rr}let l=c(e),u=l(e);return{c(){t=P("svg"),r=P("g"),n=P("g"),u.c(),O(n,"transform",e[15]),O(r,"transform",a="translate("+e[16][0]/2+" "+e[16][1]/2+")"),O(r,"transform-origin",o=e[16][0]/4+" 0"),O(t,"id",e[1]),O(t,"class",i="svelte-fa svelte-fa-base "+e[0]+" svelte-bvo74f"),O(t,"style",e[2]),O(t,"viewBox",s="0 0 "+e[16][0]+" "+e[16][1]),O(t,"aria-hidden","true"),O(t,"role","img"),O(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"pulse",e[8]),L(t,"svelte-fa-size-lg","lg"===e[3]),L(t,"svelte-fa-size-sm","sm"===e[3]),L(t,"svelte-fa-size-xs","xs"===e[3]),L(t,"svelte-fa-fw",e[5]),L(t,"svelte-fa-pull-left","left"===e[6]),L(t,"svelte-fa-pull-right","right"===e[6]),L(t,"spin",e[7])},m(a,o){g(a,t,o),y(t,r),y(r,n),u.m(n,null),e[23](t)},p(e,d){l===(l=c(e))&&u?u.p(e,d):(u.d(1),u=l(e),u&&(u.c(),u.m(n,null))),32768&d&&O(n,"transform",e[15]),65536&d&&a!==(a="translate("+e[16][0]/2+" "+e[16][1]/2+")")&&O(r,"transform",a),65536&d&&o!==(o=e[16][0]/4+" 0")&&O(r,"transform-origin",o),2&d&&O(t,"id",e[1]),1&d&&i!==(i="svelte-fa svelte-fa-base "+e[0]+" svelte-bvo74f")&&O(t,"class",i),4&d&&O(t,"style",e[2]),65536&d&&s!==(s="0 0 "+e[16][0]+" "+e[16][1])&&O(t,"viewBox",s),257&d&&L(t,"pulse",e[8]),9&d&&L(t,"svelte-fa-size-lg","lg"===e[3]),9&d&&L(t,"svelte-fa-size-sm","sm"===e[3]),9&d&&L(t,"svelte-fa-size-xs","xs"===e[3]),33&d&&L(t,"svelte-fa-fw",e[5]),65&d&&L(t,"svelte-fa-pull-left","left"===e[6]),65&d&&L(t,"svelte-fa-pull-right","right"===e[6]),129&d&&L(t,"spin",e[7])},d(r){r&&h(t),u.d(),e[23](null)}}}function rr(e){let t,r,n,a,o,i,s,c,l,u;return{c(){t=P("path"),i=P("path"),O(t,"d",r=e[16][4][0]),O(t,"fill",n=e[10]||e[4]||"currentColor"),O(t,"fill-opacity",a=0!=e[13]?e[11]:e[12]),O(t,"transform",o="translate("+e[16][0]/-2+" "+e[16][1]/-2+")"),O(i,"d",s=e[16][4][1]),O(i,"fill",c=e[9]||e[4]||"currentColor"),O(i,"fill-opacity",l=0!=e[13]?e[12]:e[11]),O(i,"transform",u="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")},m(e,r){g(e,t,r),g(e,i,r)},p(e,d){65536&d&&r!==(r=e[16][4][0])&&O(t,"d",r),1040&d&&n!==(n=e[10]||e[4]||"currentColor")&&O(t,"fill",n),14336&d&&a!==(a=0!=e[13]?e[11]:e[12])&&O(t,"fill-opacity",a),65536&d&&o!==(o="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")&&O(t,"transform",o),65536&d&&s!==(s=e[16][4][1])&&O(i,"d",s),528&d&&c!==(c=e[9]||e[4]||"currentColor")&&O(i,"fill",c),14336&d&&l!==(l=0!=e[13]?e[12]:e[11])&&O(i,"fill-opacity",l),65536&d&&u!==(u="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")&&O(i,"transform",u)},d(e){e&&(h(t),h(i))}}}function nr(e){let t,r,n,a;return{c(){t=P("path"),O(t,"d",r=e[16][4]),O(t,"fill",n=e[4]||e[9]||"currentColor"),O(t,"transform",a="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")},m(e,r){g(e,t,r)},p(e,o){65536&o&&r!==(r=e[16][4])&&O(t,"d",r),528&o&&n!==(n=e[4]||e[9]||"currentColor")&&O(t,"fill",n),65536&o&&a!==(a="translate("+e[16][0]/-2+" "+e[16][1]/-2+")")&&O(t,"transform",a)},d(e){e&&h(t)}}}function ar(t){let r,n=t[16][4]&&tr(t);return{c(){n&&n.c(),r=S()},m(e,t){n&&n.m(e,t),g(e,r,t)},p(e,[t]){e[16][4]?n?n.p(e,t):(n=tr(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&h(r),n&&n.d(e)}}}function or(e,t,r){let n,a,o,{class:i}=t,{id:s}=t,{style:c}=t,{icon:l}=t,{size:u}=t,{color:d}=t,{fw:p=!1}=t,{pull:m}=t,{scale:f=1}=t,{translateX:y=0}=t,{translateY:g=0}=t,{rotate:h}=t,{flip:b}=t,{spin:A=!1}=t,{pulse:P=!1}=t,{primaryColor:E=""}=t,{secondaryColor:C=""}=t,{primaryOpacity:S=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,d=e.color),"fw"in e&&r(5,p=e.fw),"pull"in e&&r(6,m=e.pull),"scale"in e&&r(18,f=e.scale),"translateX"in e&&r(19,y=e.translateX),"translateY"in e&&r(20,g=e.translateY),"rotate"in e&&r(21,h=e.rotate),"flip"in e&&r(22,b=e.flip),"spin"in e&&r(7,A=e.spin),"pulse"in e&&r(8,P=e.pulse),"primaryColor"in e&&r(9,E=e.primaryColor),"secondaryColor"in e&&r(10,C=e.secondaryColor),"primaryOpacity"in e&&r(11,S=e.primaryOpacity),"secondaryOpacity"in e&&r(12,v=e.secondaryOpacity),"swapOpacity"in e&&r(13,T=e.swapOpacity)},e.$$.update=()=>{16392&e.$$.dirty&&o&&u&&function(e,t){e.style.fontSize=t&&"lg"!==t&&"sm"!==t&&"xs"!==t?t.replace("x","em"):""}(o,u),131072&e.$$.dirty&&r(16,n=l&&l.icon||[0,0,"",[],""]),8126464&e.$$.dirty&&r(15,a=function(e,t,r,n,a,o=1,i="",s=""){let c=1,l=1;a&&("horizontal"==a?c=-1:"vertical"==a?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*o}${i},${r*o}${i}) scale(${c*e},${l*e})`;return n&&(u+=` rotate(${n}${s})`),u}(f,y,g,h,b,512))},[i,s,c,u,d,p,m,A,P,E,C,S,v,T,o,a,n,l,f,y,g,h,b,function(e){B[e?"unshift":"push"]((()=>{o=e,r(14,o)}))}]}class ir extends de{constructor(e){super(),ue(this,e,or,ar,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 sr={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"]},cr={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"]},lr={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"]},ur={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 dr(e){let t,r,n,a,o,i,s,c;return o=new ir({props:{icon:sr,color:e[0]&&e[0]===e[1]?pr:mr}}),{c(){t=A("div"),r=A("ul"),n=A("li"),a=A("div"),ie(o.$$.fragment),i=C(),s=E(e[2]),O(a,"class","zephr-form-password-requirement-icon svelte-11tz5c7"),L(a,"zephr-payment-form-password-requirement-icon",e[3]),O(n,"class","zephr-form-password-requirement svelte-11tz5c7"),L(n,"zephr-payment-form-password-requirement",e[3]),O(r,"class","svelte-11tz5c7"),O(t,"class","zephr-form-flex-container zephr-form-password-match svelte-11tz5c7"),L(t,"zephr-payment-form-flex-container",e[3]),L(t,"zephr-payment-form-password-match",e[3])},m(e,l){g(e,t,l),y(t,r),y(r,n),y(n,a),se(o,a,null),y(n,i),y(n,s),c=!0},p(e,[r]){const i={};3&r&&(i.color=e[0]&&e[0]===e[1]?pr:mr),o.$set(i),(!c||8&r)&&L(a,"zephr-payment-form-password-requirement-icon",e[3]),(!c||4&r)&&_(s,e[2]),(!c||8&r)&&L(n,"zephr-payment-form-password-requirement",e[3]),(!c||8&r)&&L(t,"zephr-payment-form-flex-container",e[3]),(!c||8&r)&&L(t,"zephr-payment-form-password-match",e[3])},i(e){c||(te(o.$$.fragment,e),c=!0)},o(e){re(o.$$.fragment,e),c=!1},d(e){e&&h(t),ce(o)}}}const pr="var(--zf-password-valid-color)",mr="var(--zf-password-invalid-color)";function fr(e,t,r){let{password:n}=t,{confirmPassword:a}=t,{passwordsMatchText:o}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"password"in e&&r(0,n=e.password),"confirmPassword"in e&&r(1,a=e.confirmPassword),"passwordsMatchText"in e&&r(2,o=e.passwordsMatchText),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i]}class yr extends de{constructor(e){super(),ue(this,e,fr,dr,i,{password:0,confirmPassword:1,passwordsMatchText:2,isPaymentForm:3})}}function gr(e,t,r){const n=e.slice();return n[12]=t[r],n[14]=r,n}function hr(e){let t;return{c(){t=A("div"),O(t,"class","zephr-form-password-bar svelte-1b6w0g8"),M(t,"background-color",e[3]>e[14]?Sr:vr),L(t,"zephr-payment-form-password-bar",e[2])},m(e,r){g(e,t,r)},p(e,r){8&r&&M(t,"background-color",e[3]>e[14]?Sr:vr),4&r&&L(t,"zephr-payment-form-password-bar",e[2])},d(e){e&&h(t)}}}function br(e){let t,r,n,a,o,i,s=e[1].minLengthValidationText+"";return n=new ir({props:{icon:sr,color:e[4]?Sr:vr}}),{c(){t=A("li"),r=A("div"),ie(n.$$.fragment),a=C(),o=E(s),O(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),L(r,"zephr-payment-form-password-requirement-icon",e[2]),O(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),L(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){g(e,t,s),y(t,r),se(n,r,null),y(t,a),y(t,o),i=!0},p(e,a){const c={};16&a&&(c.color=e[4]?Sr:vr),n.$set(c),(!i||4&a)&&L(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&a)&&s!==(s=e[1].minLengthValidationText+"")&&_(o,s),(!i||4&a)&&L(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&&h(t),ce(n)}}}function Ar(e){let t,r,n,a,o,i,s=e[1].uppercaseValidationText+"";return n=new ir({props:{icon:sr,color:e[7]?Sr:vr}}),{c(){t=A("li"),r=A("div"),ie(n.$$.fragment),a=C(),o=E(s),O(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),L(r,"zephr-payment-form-password-requirement-icon",e[2]),O(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),L(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){g(e,t,s),y(t,r),se(n,r,null),y(t,a),y(t,o),i=!0},p(e,a){const c={};128&a&&(c.color=e[7]?Sr:vr),n.$set(c),(!i||4&a)&&L(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&a)&&s!==(s=e[1].uppercaseValidationText+"")&&_(o,s),(!i||4&a)&&L(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&&h(t),ce(n)}}}function Pr(e){let t,r,n,a,o,i,s=e[1].numberValidationText+"";return n=new ir({props:{icon:sr,color:e[6]?Sr:vr}}),{c(){t=A("li"),r=A("div"),ie(n.$$.fragment),a=C(),o=E(s),O(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),L(r,"zephr-payment-form-password-requirement-icon",e[2]),O(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),L(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){g(e,t,s),y(t,r),se(n,r,null),y(t,a),y(t,o),i=!0},p(e,a){const c={};64&a&&(c.color=e[6]?Sr:vr),n.$set(c),(!i||4&a)&&L(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&a)&&s!==(s=e[1].numberValidationText+"")&&_(o,s),(!i||4&a)&&L(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&&h(t),ce(n)}}}function Er(e){let t,r,n,a,o,i,s=e[1].symbolValidationText+"";return n=new ir({props:{icon:sr,color:e[5]?Sr:vr}}),{c(){t=A("li"),r=A("div"),ie(n.$$.fragment),a=C(),o=E(s),O(r,"class","zephr-form-password-requirement-icon svelte-1b6w0g8"),L(r,"zephr-payment-form-password-requirement-icon",e[2]),O(t,"class","zephr-form-password-requirement svelte-1b6w0g8"),L(t,"zephr-payment-form-password-requirement",e[2])},m(e,s){g(e,t,s),y(t,r),se(n,r,null),y(t,a),y(t,o),i=!0},p(e,a){const c={};32&a&&(c.color=e[5]?Sr:vr),n.$set(c),(!i||4&a)&&L(r,"zephr-payment-form-password-requirement-icon",e[2]),(!i||2&a)&&s!==(s=e[1].symbolValidationText+"")&&_(o,s),(!i||4&a)&&L(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&&h(t),ce(n)}}}function Cr(e){let t,r,n,a,o,i,s,c,l=ne(Array(e[8])),u=[];for(let t=0;t<l.length;t+=1)u[t]=hr(gr(e,l,t));let d=e[0].minLength&&br(e),p=e[0].requireUppercase&&Ar(e),m=e[0].requireNumbers&&Pr(e),f=e[0].requireSpecialCharacters&&Er(e);return{c(){t=A("div");for(let e=0;e<u.length;e+=1)u[e].c();r=C(),n=A("div"),a=A("ul"),d&&d.c(),o=C(),p&&p.c(),i=C(),m&&m.c(),s=C(),f&&f.c(),O(t,"class","zephr-form-password-progress svelte-1b6w0g8"),L(t,"zephr-payment-form-password-progress",e[2]),O(a,"class","svelte-1b6w0g8"),O(n,"class","zephr-form-flex-container zephr-form-password-requirements svelte-1b6w0g8"),L(n,"zephr-payment-form-flex-container",e[2]),L(n,"zephr-payment-form-password-requirements",e[2])},m(e,l){g(e,t,l);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(t,null);g(e,r,l),g(e,n,l),y(n,a),d&&d.m(a,null),y(a,o),p&&p.m(a,null),y(a,i),m&&m.m(a,null),y(a,s),f&&f.m(a,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 a=gr(e,l,n);u[n]?u[n].p(a,r):(u[n]=hr(a),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)&&L(t,"zephr-payment-form-password-progress",e[2]),e[0].minLength?d?(d.p(e,r),1&r&&te(d,1)):(d=br(e),d.c(),te(d,1),d.m(a,o)):d&&(X(),re(d,1,1,(()=>{d=null})),ee()),e[0].requireUppercase?p?(p.p(e,r),1&r&&te(p,1)):(p=Ar(e),p.c(),te(p,1),p.m(a,i)):p&&(X(),re(p,1,1,(()=>{p=null})),ee()),e[0].requireNumbers?m?(m.p(e,r),1&r&&te(m,1)):(m=Pr(e),m.c(),te(m,1),m.m(a,s)):m&&(X(),re(m,1,1,(()=>{m=null})),ee()),e[0].requireSpecialCharacters?f?(f.p(e,r),1&r&&te(f,1)):(f=Er(e),f.c(),te(f,1),f.m(a,null)):f&&(X(),re(f,1,1,(()=>{f=null})),ee()),(!c||4&r)&&L(n,"zephr-payment-form-flex-container",e[2]),(!c||4&r)&&L(n,"zephr-payment-form-password-requirements",e[2])},i(e){c||(te(d),te(p),te(m),te(f),c=!0)},o(e){re(d),re(p),re(m),re(f),c=!1},d(e){e&&(h(t),h(r),h(n)),b(u,e),d&&d.d(),p&&p.d(),m&&m.d(),f&&f.d()}}}const Sr="var(--zf-password-valid-color)",vr="var(--zf-password-invalid-color)";function Tr(e,t,r){let n,a,o,i,{passwordRequirements:s}=t,{passwordValidationTexts:c}=t,{isPaymentForm:l=!1}=t,{onChange:u}=t,{password:d}=t,{passwordIsValid:p}=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,d=e.password),"passwordIsValid"in e&&r(11,p=e.passwordIsValid)},e.$$.update=()=>{1024&e.$$.dirty&&r(7,n=/[A-Z]+/.test(d)),1024&e.$$.dirty&&r(6,a=/[0-9]+/.test(d)),1024&e.$$.dirty&&r(5,o=/[^a-z0-9A-Z]+/.test(d)),1025&e.$$.dirty&&r(4,i=d?.length>=s.minLength),3593&e.$$.dirty&&(r(3,m=0),/[A-Z]+/.test(d)&&s.requireUppercase&&r(3,m+=1),/[0-9]+/.test(d)&&s.requireNumbers&&r(3,m+=1),/[^a-z0-9A-Z]+/.test(d)&&s.requireSpecialCharacters&&r(3,m+=1),d?.length>=s.minLength&&s.minLength&&r(3,m+=1),m>=f!==p&&u(m>=f))},[s,c,l,m,i,o,a,n,f,u,d,p]}class Or extends de{constructor(e){super(),ue(this,e,Tr,Cr,i,{passwordRequirements:0,passwordValidationTexts:1,isPaymentForm:2,onChange:9,password:10,passwordIsValid:11})}}function wr(e){let t,r;return t=new Or({props:{password:e[8],passwordIsValid:e[10],passwordRequirements:e[1],passwordValidationTexts:e[12],isPaymentForm:e[3],onChange:e[6]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.password=e[8]),1024&r&&(n.passwordIsValid=e[10]),2&r&&(n.passwordRequirements=e[1]),8&r&&(n.isPaymentForm=e[3]),64&r&&(n.onChange=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 Ir(e){let t,r;return t=new er({props:{disabled:e[7],password:e[9],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[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};128&r&&(n.disabled=e[7]),512&r&&(n.password=e[9]),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]),32&r&&(n.onChange=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 _r(e){let t,r;return t=new yr({props:{password:e[8],confirmPassword:e[9],passwordsMatchText:e[12].passwordsMatchText,isPaymentForm:e[3]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.password=e[8]),512&r&&(n.confirmPassword=e[9]),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 Rr(e){let t,r;return t=new Vt({props:{error:e[11]??"",isPaymentForm:e[3]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};2048&r&&(n.error=e[11]??""),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 Mr(e){let t,r,n,a,o,i,s;t=new er({props:{disabled:e[7],password:e[8],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]}});let c=e[0].passValidatorEnabled&&wr(e),l=!e[2]&&Ir(e),u=e[0].passwordsMatchIndicatorEnabled&&_r(e),d=e[11]&&Rr(e);return{c(){ie(t.$$.fragment),r=C(),c&&c.c(),n=C(),l&&l.c(),a=C(),u&&u.c(),o=C(),d&&d.c(),i=S()},m(e,p){se(t,e,p),g(e,r,p),c&&c.m(e,p),g(e,n,p),l&&l.m(e,p),g(e,a,p),u&&u.m(e,p),g(e,o,p),d&&d.m(e,p),g(e,i,p),s=!0},p(e,[r]){const s={};128&r&&(s.disabled=e[7]),256&r&&(s.password=e[8]),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]),t.$set(s),e[0].passValidatorEnabled?c?(c.p(e,r),1&r&&te(c,1)):(c=wr(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=Ir(e),l.c(),te(l,1),l.m(a.parentNode,a)),e[0].passwordsMatchIndicatorEnabled?u?(u.p(e,r),1&r&&te(u,1)):(u=_r(e),u.c(),te(u,1),u.m(o.parentNode,o)):u&&(X(),re(u,1,1,(()=>{u=null})),ee()),e[11]?d?(d.p(e,r),2048&r&&te(d,1)):(d=Rr(e),d.c(),te(d,1),d.m(i.parentNode,i)):d&&(X(),re(d,1,1,(()=>{d=null})),ee())},i(e){s||(te(t.$$.fragment,e),te(c),te(l),te(u),te(d),s=!0)},o(e){re(t.$$.fragment,e),re(c),re(l),re(u),re(d),s=!1},d(e){e&&(h(r),h(n),h(a),h(o),h(i)),ce(t,e),c&&c.d(e),l&&l.d(e),u&&u.d(e),d&&d.d(e)}}}function $r(e,t,r){let{config:n}=t,{passwordRequirements:a}=t,{hideConfirmPassword:o}=t,{isPaymentForm:i=!1}=t,{onPasswordChange:s}=t,{onConfirmPasswordChange:c}=t,{onPasswordIsValidChange:l}=t,{disabled:u}=t,{password:d}=t,{confirmPassword:p}=t,{passwordIsValid:m}=t,{error:f=null}=t,y={minLengthValidationText:n.minLengthValidation||`Must include at least ${a.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,a=e.passwordRequirements),"hideConfirmPassword"in e&&r(2,o=e.hideConfirmPassword),"isPaymentForm"in e&&r(3,i=e.isPaymentForm),"onPasswordChange"in e&&r(4,s=e.onPasswordChange),"onConfirmPasswordChange"in e&&r(5,c=e.onConfirmPasswordChange),"onPasswordIsValidChange"in e&&r(6,l=e.onPasswordIsValidChange),"disabled"in e&&r(7,u=e.disabled),"password"in e&&r(8,d=e.password),"confirmPassword"in e&&r(9,p=e.confirmPassword),"passwordIsValid"in e&&r(10,m=e.passwordIsValid),"error"in e&&r(11,f=e.error)},[n,a,o,i,s,c,l,u,d,p,m,f,y]}class Lr extends de{constructor(e){super(),ue(this,e,$r,Mr,i,{config:0,passwordRequirements:1,hideConfirmPassword:2,isPaymentForm:3,onPasswordChange:4,onConfirmPasswordChange:5,onPasswordIsValidChange:6,disabled:7,password:8,confirmPassword:9,passwordIsValid:10,error:11})}}const Nr={matches:e=>e.type===Ae&&null!=e.config?.confirm,create:(e,t,r,n)=>({component:Lr,props:{disabled:t.isBusy,config:n,passwordRequirements:e.organisationConfiguration.passwordStrengthRequirements,hideConfirmPassword:e.organisationConfiguration.hideConfirmPasswordOnRegForm,isPaymentForm:e.formType===Et.PAYMENT,onPasswordChange:e=>r.updateFormState({createPassword:e}),onConfirmPasswordChange:e=>r.updateFormState({confirmCreatePassword:e}),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)})},xr={matches:e=>e.type===Ae&&null==e.config?.confirm,create:(e,t,r,n)=>{const a=n.isUpdatePasswordCurrentPassword?"currentPassword":"password";return{component:er,props:{disabled:t.isBusy,label:n.password,placeholder:n.placeholder,isMainPassword:!0,showLabel:n.showLabel,hideLabel:n.hideLabel,password:t[a],autocomplete:"password",onChange:e=>r.updateFormState({[a]:e})},isValid:(o=t[a],null!=o&&o.length>2)};var o}},Fr={matches:e=>e.type===Ee&&!e.config.isLogin,create:(e,t,r,n)=>({component:wt,props:{disabled:t.isBusy||!t.canAttemptSectionCompletion,text:n.text,onClick:r.attemptCompleteSection,isPaymentForm:e.formType===Et.PAYMENT}})};function zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr={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)}(kr);const Dr=new(zr(kr.exports)),Ur=e=>!!e&&Dr.isValidAddress(e);function Br(e){let t,r,n,a,o;return t=new Jt({props:{forInput:e[9],label:e[2],isPaymentForm:e[6]}}),a=new Kt({props:{id:e[9],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]}}),a.$on("change",e[11]),{c(){ie(t.$$.fragment),r=C(),n=A("div"),ie(a.$$.fragment),O(n,"class","zephr-form-relative-container"),L(n,"zephr-payment-form-relative-container",e[6])},m(e,i){se(t,e,i),g(e,r,i),g(e,n,i),se(a,n,null),o=!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]),a.$set(s),(!o||64&r)&&L(n,"zephr-payment-form-relative-container",e[6])},i(e){o||(te(t.$$.fragment,e),te(a.$$.fragment,e),o=!0)},o(e){re(t.$$.fragment,e),re(a.$$.fragment,e),o=!1},d(e){e&&(h(r),h(n)),ce(t,e),ce(a)}}}function Vr(e,t,r){let{formKey:n}=t,{emailAddress:a}=t,{disabled:o}=t,{label:i}=t,{placeholder:s}=t,{editText:c}=t,{error:l=null}=t,{isPaymentForm:u=!1}=t,{onEdit:d}=t,{onChange:p}=t;const m=`zephr-form-identifier-${n}`;return e.$$set=e=>{"formKey"in e&&r(10,n=e.formKey),"emailAddress"in e&&r(0,a=e.emailAddress),"disabled"in e&&r(1,o=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,d=e.onEdit),"onChange"in e&&r(8,p=e.onChange)},[a,o,i,s,c,l,u,d,p,m,n,({detail:e})=>p(e)]}class Gr extends de{constructor(e){super(),ue(this,e,Vr,Br,i,{formKey:10,emailAddress:0,disabled:1,label:2,placeholder:3,editText:4,error:5,isPaymentForm:6,onEdit:7,onChange:8})}}const jr={matches:e=>e.type===ve,create:(e,t,r,n)=>{const a=n.disabled||t.isBusy;return{component:Gr,props:{formKey:e.uniqueKey,disabled:a,emailAddress:t.emailAddress,label:n.label,placeholder:n.placeholder,editText:n.editText,onChange:e=>!a&&r.updateFormState({userExists:void 0,emailIsContact:void 0,emailAddress:e,verificationCode:"",verificationCodeValid:void 0,serverErrors:[]}),onEdit:n.disabled&&(()=>{r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)}),isPaymentForm:e.formType===Et.PAYMENT},isValid:Ur(t.emailAddress)}}};function qr(t){let r,n,a,o,i,s,l,u,d,p,m,f;return{c(){r=A("script"),r.innerHTML="",a=A("script"),a.innerHTML="",i=A("script"),i.innerHTML="",l=A("script"),l.innerHTML="",d=C(),p=A("div"),m=C(),f=A("div"),f.innerHTML="",c(r.src,n="https://js.braintreegateway.com/web/3.85.3/js/google-payment.min.js")||O(r,"src","https://js.braintreegateway.com/web/3.85.3/js/google-payment.min.js"),c(a.src,o="https://pay.google.com/gp/p/js/pay.js")||O(a,"src","https://pay.google.com/gp/p/js/pay.js"),O(a,"onload","window.googlePayLoadBraintreeCallback()"),c(i.src,s="https://js.braintreegateway.com/web/3.85.3/js/client.min.js")||O(i,"src","https://js.braintreegateway.com/web/3.85.3/js/client.min.js"),O(i,"onload","window.braintreeLoadCallback()"),c(l.src,u="https://js.braintreegateway.com/web/3.85.3/js/apple-pay.min.js")||O(l,"src","https://js.braintreegateway.com/web/3.85.3/js/apple-pay.min.js"),O(l,"onload","window.applePayLoadBraintreeCallback()"),O(p,"id","google-pay-button"),O(p,"class","svelte-1acsmhs"),L(p,"zephr-form-disabled-div",t[0]),L(p,"zephr-payment-form-disabled-div",t[0]),O(f,"id","apple_pay_button")},m(e,t){y(document.head,r),y(document.head,a),y(document.head,i),y(document.head,l),g(e,d,t),g(e,p,t),g(e,m,t),g(e,f,t)},p(e,[t]){1&t&&L(p,"zephr-form-disabled-div",e[0]),1&t&&L(p,"zephr-payment-form-disabled-div",e[0])},i:e,o:e,d(e){e&&(h(d),h(p),h(m),h(f)),h(r),h(a),h(i),h(l)}}}function Hr(e,t,r){let{onMountCallback:n}=t,{isDisabled:a}=t,{disableCoreDependencyHeader:o}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(1,n=e.onMountCallback),"isDisabled"in e&&r(0,a=e.isDisabled),"disableCoreDependencyHeader"in e&&r(2,o=e.disableCoreDependencyHeader)},[a,n,o]}function Kr(e){let t,r,n,a,o,i,s;return i=new Vt({props:{error:e[0]?.message??e[2]??"",isPaymentForm:!0}}),{c(){t=A("script"),t.innerHTML="",n=C(),a=A("div"),o=C(),ie(i.$$.fragment),c(t.src,r="https://js.braintreegateway.com/web/dropin/1.33.2/js/dropin.min.js")||O(t,"src","https://js.braintreegateway.com/web/dropin/1.33.2/js/dropin.min.js"),O(t,"onload","window.braintreeLoadCallback()"),O(a,"id","braintree-dropin-container"),O(a,"class","svelte-z7jd27"),L(a,"zephr-form-disabled-div",e[1]),L(a,"zephr-payment-form-disabled-div",e[1])},m(e,r){y(document.head,t),g(e,n,r),g(e,a,r),g(e,o,r),se(i,e,r),s=!0},p(e,[t]){(!s||2&t)&&L(a,"zephr-form-disabled-div",e[1]),(!s||2&t)&&L(a,"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&&(h(n),h(a),h(o)),h(t),ce(i,e)}}}function Yr(e,t,r){let{onMountCallback:n}=t,{providerError:a}=t,{isDisabled:o}=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,a=e.providerError),"isDisabled"in e&&r(1,o=e.isDisabled),"isLoaded"in e&&r(4,i=e.isLoaded),"error"in e&&r(2,s=e.error)},[a,o,s,n,i]}function Wr(e){let t,r,n,a,o,i,s;return i=new Vt({props:{error:e[0]?.message??(e[2]?e[3]:"")??"",isPaymentForm:!0}}),{c(){t=A("script"),t.innerHTML="",n=C(),a=A("div"),o=C(),ie(i.$$.fragment),c(t.src,r="https://js.stripe.com/v3/")||O(t,"src","https://js.stripe.com/v3/"),O(t,"onload","window.stripeLoadCallback()"),O(a,"id","stripe-element"),O(a,"class","svelte-1lhuc6b"),L(a,"zephr-form-disabled-div",e[1]),L(a,"zephr-payment-form-disabled-div",e[1])},m(e,r){y(document.head,t),g(e,n,r),g(e,a,r),g(e,o,r),se(i,e,r),s=!0},p(e,[t]){(!s||2&t)&&L(a,"zephr-form-disabled-div",e[1]),(!s||2&t)&&L(a,"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&&(h(n),h(a),h(o)),h(t),ce(i,e)}}}function Qr(e,t,r){let{onMountCallback:n}=t,{providerError:a}=t,{isDisabled:o}=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,a=e.providerError),"isDisabled"in e&&r(1,o=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)},[a,o,i,c,n,s]}function Jr(e){let t,r;return{c(){t=A("script"),t.innerHTML="",c(t.src,r="https://js.stripe.com/v3/")||O(t,"src","https://js.stripe.com/v3/"),O(t,"onload","window.stripeLoadCallback()")},m(e,r){g(e,t,r)},d(e){e&&h(t)}}}function Zr(t){let r,n,a,o,i,s=!t[1]&&Jr();return{c(){r=A("script"),r.innerHTML="",s&&s.c(),a=S(),o=C(),i=A("div"),c(r.src,n="https://pay.google.com/gp/p/js/pay.js")||O(r,"src","https://pay.google.com/gp/p/js/pay.js"),O(r,"onload","window.googlePayLoadStripeCallback()"),O(i,"id","stripe-mobile-pay-button"),O(i,"class","svelte-1t95nqv"),L(i,"zephr-form-disabled-div",t[0]),L(i,"zephr-payment-form-disabled-div",t[0])},m(e,t){y(document.head,r),s&&s.m(document.head,null),y(document.head,a),g(e,o,t),g(e,i,t)},p(e,[t]){e[1]?s&&(s.d(1),s=null):s||(s=Jr(),s.c(),s.m(a.parentNode,a)),1&t&&L(i,"zephr-form-disabled-div",e[0]),1&t&&L(i,"zephr-payment-form-disabled-div",e[0])},i:e,o:e,d(e){e&&(h(o),h(i)),h(r),s&&s.d(e),h(a)}}}function Xr(e,t,r){let{onMountCallback:n}=t,{isDisabled:a}=t,{disableCoreDependencyHeader:o}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(2,n=e.onMountCallback),"isDisabled"in e&&r(0,a=e.isDisabled),"disableCoreDependencyHeader"in e&&r(1,o=e.disableCoreDependencyHeader)},[a,o,n]}function en(t){let r,n,a;return n=new ir({props:{size:"2x",icon:cr,spin:!0}}),{c(){r=A("div"),ie(n.$$.fragment),O(r,"class","spinner-container svelte-1isq5k3")},m(e,t){g(e,r,t),se(n,r,null),a=!0},p:e,i(e){a||(te(n.$$.fragment,e),a=!0)},o(e){re(n.$$.fragment,e),a=!1},d(e){e&&h(r),ce(n)}}}class tn extends de{constructor(e){super(),ue(this,e,null,en,i,{})}}function rn(e){let t,r;return t=new tn({}),{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 nn(e){let t,r,n,a,o,i,s,c,l=!e[2]&&rn();return s=new Vt({props:{error:e[1]?.message??e[3]??"",isPaymentForm:!0}}),{c(){l&&l.c(),t=C(),r=A("div"),a=C(),o=A("div"),i=C(),ie(s.$$.fragment),O(r,"id","zuora_payment"),O(r,"class",n=f(e[0]?"zuora-disabled-iframe-container":"")+" svelte-cf8b5h"),O(o,"id","core-style")},m(e,n){l&&l.m(e,n),g(e,t,n),g(e,r,n),g(e,a,n),g(e,o,n),g(e,i,n),se(s,e,n),c=!0},p(e,[a]){e[2]?l&&(X(),re(l,1,1,(()=>{l=null})),ee()):l?4&a&&te(l,1):(l=rn(),l.c(),te(l,1),l.m(t.parentNode,t)),(!c||1&a&&n!==(n=f(e[0]?"zuora-disabled-iframe-container":"")+" svelte-cf8b5h"))&&O(r,"class",n);const o={};10&a&&(o.error=e[1]?.message??e[3]??""),s.$set(o)},i(e){c||(te(l),te(s.$$.fragment,e),c=!0)},o(e){re(l),re(s.$$.fragment,e),c=!1},d(e){e&&(h(t),h(r),h(a),h(o),h(i)),l&&l.d(e),ce(s,e)}}}function an(e,t,r){let{onMountCallback:n}=t,{isDisabled:a}=t,{providerError:o}=t,{isLoaded:i}=t,{error:s=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(4,n=e.onMountCallback),"isDisabled"in e&&r(0,a=e.isDisabled),"providerError"in e&&r(1,o=e.providerError),"isLoaded"in e&&r(2,i=e.isLoaded),"error"in e&&r(3,s=e.error)},[a,o,i,s,n]}function on(t){let r,n;return{c(){r=A("script"),r.innerHTML="",O(r,"type","text/javascript"),c(r.src,n="https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js")||O(r,"src","https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js"),O(r,"onload","window.zuoraLoadCallback()")},m(e,t){y(document.head,r)},p:e,i:e,o:e,d(e){h(r)}}}function sn(e,t,r){let{onMountCallback:n}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(0,n=e.onMountCallback)},[n]}const cn="braintree",ln="stripe",un="zuora-billing",dn=new Headers;dn.append("Content-Type","application/json"),dn.append("Accept","application/json");const pn=async(e,t,r,n=null,a=!1)=>{a||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:dn,credentials:"include"})}finally{r.decrementRequestCount(n)}},mn=e=>"ONE_OFF"===e.type,fn=(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 a,o,i={};if(vt(e).changeSubscriptionMode){a=`subscriptions/${t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId)).changesFromSubscription.externalId}`,o="PATCH",i={navigated_from:`ChangeForm ${window.location.href}`}}else mn(t.paymentOption)?(a="payment/buy",o="POST"):(a="subscribe",o="POST");return{url:`zephr/${a}`,method:o,body:{product_id:t.paymentOption.productId,plan_id:t.paymentOption.slug,discount_code:t.promoCodeValid?t.promoCode:void 0,...i,vendor_fields:n??{}}}};let yn;const gn=new Promise((function(e){window.braintreeLoadCallback=e})),hn=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}),bn=(e,t)=>pn("blaize/payment/braintree/token",{method:"GET"},t,null,!0).then((e=>e.json())).then((e=>e.token));var An;!function(e){e.GOOGLE_PAY="GOOGLE_PAY",e.APPLE_PAY="APPLE_PAY"}(An||(An={}));const Pn=new Promise((function(e){window.googlePayLoadBraintreeCallback=e})),En=new Promise((function(e){window.applePayLoadBraintreeCallback=e})),Cn=(e,t,r)=>{const n=JSON.parse(e.organisationConfiguration?.braintreeMobilePaymentConfig??"{}");let a;return Pn.then((()=>{const o=document.getElementById("google-pay-button");for(;o.firstChild;)o.removeChild(o.lastChild);if(!n?.google)return o.style.display="none",void console.error("Braintree Mobile payments are not configured in the console");t=r.getFormState(),a=new window.google.payments.api.PaymentsClient({environment:e.organisationConfiguration.braintreeSandboxEnv?"TEST":"PRODUCTION"}),gn.then((()=>bn(0,r))).then((e=>{window.braintree.client.create({authorization:e},((e,i)=>{for(;o.firstChild;)o.removeChild(o.lastChild);if(e)return console.error("Error creating braintree client",e),void(o.style.display="none");window.braintree.googlePayment.create({client:i,googlePayVersion:2,googleMerchantId:n.google.googleMerchantId},((e,n)=>{if(e)return console.error("Error creating braintree client",e),void(o.style.display="none");a.isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:n.createPaymentDataRequest().allowedPaymentMethods,existingPaymentMethodRequired:!0}).then((e=>{e.result&&e.paymentMethodPresent||(o.style.display="none",console.error(e.paymentMethodPresent?"Google Pay support not found":"No payment method"),r.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]})),o.appendChild(a.createButton({buttonColor:"default",buttonType:"plain",buttonSizeMode:"fill",onClick:()=>{Sn(t,r,n,a)}}))}))}))}))}))}))},Sn=(e,t,r,n)=>{t.updateFormState({mobilePaymentService:An.GOOGLE_PAY,serverErrors:[]});const a=r.createPaymentDataRequest({transactionInfo:{currencyCode:e.paymentOption.currencyCode,totalPriceStatus:"FINAL",totalPrice:e.paymentOptionPrices.totalPrice.toFixed(2)},emailRequired:!1,shippingAddressRequired:!1});n.loadPaymentData(a).then((function(e){r.parseResponse(e,((e,r)=>{if(e||!r.nonce)return t.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),void console.error("Error requesting payment data",e,r);t.updateFormState({mobilePaymentMethodId:r.nonce}),t.completeSection()}))})).catch((function(e){console.warn("Error requesting payment data",e),t.updateFormState({mobilePaymentService:null,serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]})}))},vn=(e,t,r)=>{const n=document.getElementById("apple_pay_button");for(;n.firstChild;)n.removeChild(n.lastChild);return En.then((()=>window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments()?gn.then((()=>bn(0,r))).then((a=>{window.braintree.client.create({authorization:a},((a,o)=>{if(a)return n.style.display="none",void console.error("Error creating braintree client:",a);window.braintree.applePay.create({client:o},(function(a,o){for(;n.firstChild;)n.removeChild(n.lastChild);if(a)return n.style.display="none",void console.error("Error creating applePayInstance:",a);const i=o.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(){Tn(e,t,r,i,o)}))}))}))})):(n.style.display="none",void console.log("Cannot make payments with Apple Pay"))))},Tn=(e,t,r,n,a)=>{r.updateFormState({mobilePaymentService:An.APPLE_PAY,serverErrors:[]});const o=new ApplePaySession(3,n);o.onvalidatemerchant=function(e){a.performValidation({validationURL:e.validationURL,displayName:t.paymentOption.label},(function(e,t){if(e)return r.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),void console.log("err in onvalidatemerchant in apple pay configuration: ",e);o.completeMerchantValidation(t)}))},o.onpaymentauthorized=function(e){a.tokenize({token:e.payment.token},(function(e,t){if(e)return r.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),console.error("Error tokenizing Apple Pay:",e),void o.completePayment(ApplePaySession.STATUS_FAILURE);r.updateFormState({mobilePaymentMethodId:t.nonce}),r.completeSection(),o.completePayment(ApplePaySession.STATUS_SUCCESS)}))},o.begin()},On=1e-5,wn=(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<On?0:void 0,maximumFractionDigits:Math.abs(e)%1<On?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)},In=async(e,t,r,n=!1)=>{const a=wa(e.organisationConfiguration.paymentProvider);return a.hasProductAddons&&(t.loginRegistrationComplete||t.userSession)?pn(a.productAddonPath,{method:"POST",bodyObject:{promoCode:t.promoCodeValid?t.promoCode:null,paymentOptions:vt(e).paymentOptions}},r,null,!0).then((async e=>{if(!e.ok)return console.log("error loading product addons",e),r.updateFormState({addons:[],serverErrors:[Ze.UNKNOWN]});const n=await e.json();try{const e=n.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,n),t}})).then((async t=>(n||await _n(e,t,r),t))):Promise.resolve(t)},_n=async(e,t,r)=>{if(t.currentSection.elements.some((e=>e.type===xe&&!1!==e.config?.enabled))){r.incrementRequestCount();try{await Ia(e.organisationConfiguration.paymentProvider).loader(e,t,r)}finally{r.decrementRequestCount()}}},Rn=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:wn(r.addonPrice,e.paymentOption.currencyCode)}})).filter((e=>e)),Mn=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==Rn(t)&&t.paymentOptionPrices.billingAddress.country===t.billingAddress.country&&t.paymentOptionPrices.billingAddress.postalCode===t.billingAddress.postalCode&&0==t.paymentOptionPrices.addonPrices.length&&0==Rn(t).length)return t;r.updateFormState({paymentOptionPrices:null});const n=await wa(e.organisationConfiguration.paymentProvider).priceCalculator(e,t,r);return r.updateFormState({paymentOptionPrices:n})},$n=["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"],Ln=e=>$n.includes(e),Nn=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"}}}},xn={base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},Fn=(e,t,r)=>t.organisationConfiguration.stripeAutomaticTaxEnabled&&t.formType!==Et.LIST_SUBSCRIPTIONS||vt(t).paymentProviderFormConfig?.usePaymentElement?((e,t,r)=>{const n=r.getFormState(),a=Ln(n.paymentOption.currencyCode.toUpperCase())?1:100;return e.elements({mode:"payment",currency:n.paymentOption.currencyCode.toLowerCase(),amount:parseFloat((n.paymentOptionPrices.totalPrice*a).toFixed(2)),setup_future_usage:"off_session",appearance:Nn(t.organisationConfiguration.siteStyles),paymentMethodTypes:["card"]}).create("payment",{terms:{card:"never"},wallets:{applePay:"never",googlePay:"never"}})})(e,t,r):(e=>e.elements().create("card",{style:xn}))(e);let zn,kn,Dn;const Un=e=>zn||(zn=new Promise((function(e){window.stripeLoadCallback=e})).then((()=>(e=>pn("blaize/payment/stripe/publicKey",{method:"GET"},e,null,!0).then((e=>e.text())))(e))).then((e=>(kn=window.Stripe(e),kn)))),Bn=(e,t,r)=>{const n=t.paymentMethodId;return r.incrementRequestCount(),n?Gn(e,t,r,n):kn.createPaymentMethod("card",Dn,{}).then((async({error:n,paymentMethod:a})=>{if(n||!a)throw r.decrementRequestCount(),`Error requesting payment method ${JSON.stringify(n)}`;await Gn(e,t,r,a.id)}))},Vn=(e,t,r,n)=>pn("zephr/payment/stripe/updateSubscription",{method:"POST",bodyObject:{payment_method_id:n,subscription_id:t.selectedSubscription.externalId}},r),Gn=(e,t,r,n)=>{const{url:a,body:o,method:i}=fn(e,t,ln,{payment_method:n,billing_address_provided:!!t.billingAddress.country});return pn(a,{method:i,bodyObject:o},r).then((async e=>{if(!e?.ok)throw e;return e.json()})).then((a=>{if(!a.grant_id){if("requires_action"===a.paymentIntentStatus)return kn.confirmCardPayment(a.clientSecret??a.client_secret).then((o=>{if(o.error||!o.paymentIntent)throw`Error requesting payment method ${JSON.stringify(o)}`;if(mn(t.paymentOption)&&a.payment_intent_id){const{url:o,body:i,method:s}=fn(e,t,ln,{payment_method:n,billing_address_provided:!!t.billingAddress.country,payment_intent_id:a.payment_intent_id});return pn(o,{method:s,bodyObject:i},r).then((e=>{if(!e?.ok)throw e}))}return pn("blaize/payment/stripe/subscription/confirmation",{method:"POST",bodyObject:{subscriptionId:a.subscriptionId}},r).then((e=>{if(!e?.ok)throw e}))}));throw a}})).catch((e=>{throw console.error(e),e})).finally((()=>{r.decrementRequestCount()}))},jn=new Promise((function(e){window.googlePayLoadStripeCallback=e})),qn=async(e,t,r,n,a,o)=>{if(a.googlePay?t.updateFormState({mobilePaymentService:An.GOOGLE_PAY,serverErrors:[]}):a.applePay&&t.updateFormState({mobilePaymentService:An.APPLE_PAY,serverErrors:[]}),!n)return n.complete("fail"),void t.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]});const i=n.paymentMethod.billing_details.address;if(o.organisationConfiguration.stripeAutomaticTaxEnabled&&(e=await Mn(o,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()},Hn=(e,t,r)=>{const n=Rn(t),a=vt(e).paymentOptions.find((e=>e.productId==t.paymentOption.productId&&e.slug==t.paymentOption.slug)).price,o=t.discountedPlanPrices.find((e=>e.planSlug===t.paymentOption.slug&&e.productId===t.paymentOption.productId))?.discountPrice??a,i=a-o,s=n.reduce(((e,t)=>e+t.addonPrice),o);return Promise.resolve({slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,addonPrices:n,billingAddress:t.billingAddress,totalPrice:s,totalPriceFormattedString:wn(s,t.paymentOption.currencyCode),netPrice:a,netPriceFormattedString:wn(a,t.paymentOption.currencyCode),discountPrice:i,discountPriceFormattedPrice:wn(i,t.paymentOption.currencyCode),chargeItems:[]})},Kn=(e,t)=>vt(e).formCurrency??t.paymentOption?.currencyCode;let Yn;const Wn=()=>null!=Yn?Yn:Yn=new Promise((function(e){window.zuoraLoadCallback=e})),Qn=(e,t,r)=>!vt(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 Jn(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 Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(r),!0).forEach((function(t){Xn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xn(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 ea(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var ta,ra={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 na(e,t){var r=e.countries[t];if(!r)return null;var n=function(e){ta||(ta=function(e){return Object.keys(e.timezones).reduce((function(t,r){var n=e.timezones[r],a=n.c,o=n.a,i=e.timezones[o]||{},s=a||i.c;return s?(s.forEach((function(e){t[e]||Object.assign(t,Xn({},e,{current:[],all:[]})),void 0===n.r&&t[e].current.push(r),t[e].all.push(r)})),t):t}),{})}(e));return ta}(e)[t]||{};return{id:t,name:r,timezones:n.current||[],allTimezones:n.all||[]}}function aa(e){var t=Math.floor(Math.abs(e)/60),r=e%60;return"".concat(e<0?"-":"+").concat(oa(t),":").concat(oa(r))}function oa(e){var t=Math.abs(e);return"".concat(t<10?"0":"").concat(t)}var ia=["allTimezones"];Object.keys(ra.timezones).length;var sa={},ca={};function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sa[e]||function(e){if(!e)return;sa[e.id]=e}(na(ra,e)),function(e,t){if(!e)return null;var r=t||{},n=r.deprecated;e.allTimezones;var a=ea(e,ia),o=n?e.allTimezones:e.timezones;return Zn(Zn({},a),{},{timezones:o})}(sa[e],t)}function ua(e){return ca[e]||function(e){if(!e)return;ca[e.name]=e,Object.keys(e).length}(function(e,t){var r=e.timezones[t];if(!r)return null;var n=r.a,a=void 0===n?null:n,o=Zn(Zn({},a?e.timezones[a]:{}),e.timezones[t]),i=o.c||[],s=o.u,c=Number.isInteger(o.d)?o.d:s,l={name:t,countries:i,utcOffset:s,utcOffsetStr:aa(s),dstOffset:c,dstOffsetStr:aa(c),aliasOf:a};return r.r&&(l.deprecated=!0),l}(ra,e)),ca[e]?Zn({},ca[e]):null}const da=()=>{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return((ua(e)||{}).countries||[]).map((function(e){return la(e,t)}))}(e)[0]?.id??""},pa=e=>"unknown"===e?.toLowerCase()?"":e,ma=(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:""}}}})(vt(e).dynamicOfferPreview??{});const n={account:{city:pa(vt(e).requestCity),country:pa(vt(e).requestCountry)||da(),county:"",state:pa(vt(e).requestState),zipCode:pa(vt(e).requestZipCode)},currency:Kn(e,t),ratePlanIds:[t.paymentOption.slug],termType:"EVERGREEN",...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult),productId:t.paymentOption.productId}:{}};return pn("plugins/public/zuora-billing/preview-subscription",{method:"POST",bodyObject:n},r).then((e=>e.json()))},fa=(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"})},ya=/^<<<([a-z0-9\-.]+)\|(.*)>>>$/,ga=(e,t)=>{if(null==t)return"";const r=e.languagePack?.entries??{},n=Xe[t];return r[n.languagePackKey]??n.fallbackMessage},ha=(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}},ba=(e,t)=>{try{return null==t?t:"object"==typeof t||Array.isArray(t)?Array.isArray(t)?t.map((t=>ba(e,t))):Object.entries(t).reduce(((t,[r,n])=>({...t,[r]:ba(e,n)})),{}):"string"==typeof t||t instanceof String?((e,t)=>{if(!t)return t;try{const r=ya.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}},Aa=(e,t)=>{try{if(t.isOneOff)return"";const r=ha(e,"forms.billing.history.every","every"),n=t["transaction-history"]?.[0]??t["next-billing-time"],a=n?.["human-readable-amount"];if(!a)return"";const o=t.currency_code?.toUpperCase()??a.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?`${o} ${s}/${l.toLowerCase()}`:`${o} ${s} ${r} ${c} ${l.toLowerCase()}s`;const u=Number(a.replace(/[^\d.-]/g,"")),d=Number.isInteger(u)?u.toFixed(0):u;return 1===n.cycleCount?`${o}${d}/${n.cycle}`:`${o} ${d} ${r} ${n.cycleCount} ${n.cycle}s`}catch{return console.error("Failed to get subscription amount"),""}},Pa=(e,t,r)=>(e?"":"+")+`${(t/100).toFixed(2)} ${r}`+(e?" incl.":""),Ea=e=>{try{const t=e["default-tax-rates"],r=e["managed-by"].toLowerCase(),n="canceled"===e["subscription-state"].toLowerCase(),a=fa("stripe"===r?e.ended:e.ends);let o,i=e["transaction-history"].reduce(((e,n)=>{const a=fa(n.time,o),i=((e,t,r,n)=>{try{const a=new Date(e),o=(()=>{switch(t){case"day":return a.setDate(a.getDate()+r);case"week":return a.setDate(a.getDate()+7*r);case"month":return a.setMonth(a.getMonth()+r);case"year":return a.setFullYear(a.getFullYear()+r);default:return null}})();return`${fa(e,n)} - ${fa(o,n)}`}catch{return console.error("Failed to get subscription period"),""}})(n.time,n.cycle,n.cycleCount,o),{cents:s,currency:c,taxRate:l}=n;let u,d;if(l){const{displayName:e,taxInclusive:t,taxPercent:r}=l;({taxes:d,total:u}=((e,t,r,n)=>{try{const a=n*(e/100),o=((e+(r?0:a))/100).toFixed(2);return{taxes:`(${Pa(r,a,t)})`,total:o}}catch{return console.error("Failed to get subscription tax"),{taxes:"",total:0}}})(s,e,t,r))}else t?.length?({taxes:d,total:u}=((e,t)=>{try{const r=[];let n=e;t.forEach((t=>{const a=t.taxPercent*(e/100),o=Pa(t.taxInclusive,a,t.displayName);r.push(o),n+=t.taxInclusive?0:a}));const a=(n/100).toFixed(2);return{taxes:`(${r.join(", ")})`,total:a}}catch{return console.error("Failed to get subscription default tax"),{taxes:"",total:0}}})(s,t)):(u=(s/100).toFixed(2),d=null);return[...e,{date:a,period:i,subtotal:"stripe"===r?(n.cents/100).toFixed(2):null,currency:c,taxes:d,total:u}]}),[]);return n&&(i=[{date:a,period:"canceled"},...i]),i}catch{return console.error("Failed to get subscription billing history"),null}},Ca=(e,t,r,n)=>pn(`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:fa(t["next-billing-time"]),amount:Aa(e,t),transactionHistory:Ea(t)}))))),Sa={draft:"pending","pending activation":"pending","pending acceptance":"pending",active:"active",cancelled:"inactive",expired:"inactive",suspended:"inactive"},va=(e,t)=>pn("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())),Ta={[cn]:{loader:(e,t,r)=>{const n=vt(e).paymentProviderFormConfig?.enablePaypal;r.incrementRequestCount(),gn.then((()=>bn(0,r))).then((e=>{window.braintree.dropin.create({authorization:e,container:"#braintree-dropin-container",...n?{paypal:hn(t)}:{}},((e,t)=>{if(r.decrementRequestCount(),yn=t,r.updateFormState({paymentProviderFormLoaded:!0}),e)throw e;yn.isPaymentMethodRequestable()&&r.updateFormState({paymentFormComplete:!0}),yn.on("paymentMethodRequestable",(()=>{r.updateFormState({paymentFormComplete:!0})})),yn.on("noPaymentMethodRequestable",(()=>{r.updateFormState({paymentFormComplete:!1})}))}))})).catch((e=>{console.error(e),r.decrementRequestCount()}))},preLoader:null,completer:async(e,t,r)=>{let n,a;r.incrementRequestCount();const o=new Promise(((e,t)=>{n=e,a=t})),i=e=>{console.error(e),r.decrementRequestCount(),a()};return yn.requestPaymentMethod(((a,o)=>{!a&&o||i(`Error requesting payment method ${JSON.stringify(a)}`);const{url:s,body:c,method:l}=fn(e,t,cn,{payment_nonce:o.nonce,..."PayPalAccount"===o.type?{paypal:!0}:{}});return pn(s,{method:l,bodyObject:c},r).then((e=>{if(e?.ok)return r.decrementRequestCount(),void n();i(e)})).catch((e=>{i(e)}))})),o},changePaymentCompleter:async(e,t,r)=>{let n,a;const o=new Promise(((e,t)=>{n=e,a=t}));return yn.requestPaymentMethod(((e,o)=>(!e&&o||console.error(`Error requesting payment method ${JSON.stringify(e)}`),pn(`blaize/payment/braintree/subscriptions/${t.selectedSubscription?.externalId}`,{method:"PATCH",bodyObject:{payment_method_nonce:o?.nonce}},r).then((e=>{console.log(e),e?.ok?n():a(e)})).catch((e=>{a(e)}))))),o},component:class extends de{constructor(e){super(),ue(this,e,Yr,Kr,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:Ca,priceCalculator:Hn,hasProductAddons:!0,hasPromoCodes:()=>!0,internalSubmit:()=>!1,noPaymentForm:()=>!1,canAttemptIncompletePaymentFormSubmission:!1},[ln]:{loader:(e,t,r)=>{r.incrementRequestCount(),Un(r).then((()=>{Dn=Fn(kn,e,r),Dn.mount("#stripe-element"),Dn.addEventListener("change",(t=>{r.updateFormState({paymentProviderError:t.error,paymentFormComplete:t.complete,serverErrors:[]}),e.organisationConfiguration.stripeAutomaticTaxEnabled&&e.formType!==Et.LIST_SUBSCRIPTIONS&&((e,t,r)=>{e.complete&&(r.incrementRequestCount(),kn.createPaymentMethod("card",Dn,{}).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=>Mn(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)})),Dn.addEventListener("ready",(()=>{r.updateFormState({paymentProviderFormLoaded:!0})})),r.decrementRequestCount()})).catch((e=>{console.error(e),r.decrementRequestCount()}))},preLoader:null,completer:Bn,changePaymentCompleter:(e,t,r)=>{const n=t.paymentMethodId;return r.incrementRequestCount(),n?Vn(e,t,r,n):kn.createPaymentMethod("card",Dn,{}).then((async({error:n,paymentMethod:a})=>{if(n||!a)throw r.decrementRequestCount(),`Error requesting payment method ${JSON.stringify(n)}`;await pn("zephr/payment/stripe/setupIntentSecret",{method:"POST"},r).then((async e=>{const t=(await e.json()).clientSecret;return kn.confirmCardSetup(t,{payment_method:{card:Dn}})})).then((async n=>Vn(e,t,r,n.setupIntent.payment_method)))}))},component:class extends de{constructor(e){super(),ue(this,e,Qr,Wr,i,{onMountCallback:4,providerError:0,isDisabled:1,isComplete:2,isLoaded:5,error:3})}},preLoaderComponent:null,promoCodeCheckPath:"zephr/payment/stripe/promo-code-check",existingSubscriptionLoader:Ca,priceCalculator:(e,t,r)=>e.organisationConfiguration.stripeAutomaticTaxEnabled&&null!=t.billingAddress.country?va(t,r).then((r=>{if(!r.total)return Hn(e,t);const n=Ln(t.paymentOption.currencyCode.toUpperCase())?1:.01,a=e=>wn(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:a(r.total),netPrice:r.sub_total*n,netPriceFormattedString:a(r.sub_total),taxPrice:r.tax?r.tax*n:null,taxPriceFormattedString:r.tax?a(r.tax):null,discountPrice:r.discount?r.discount*n:null,discountPriceFormattedPrice:r.discount?a(r.discount):null,chargeItems:[]}})).catch((r=>(console.error(`Error calculating stripe tax preview ${JSON.stringify(r)}`),Hn(e,t)))):Hn(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 pn(`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=Ln(t.paymentOption.currencyCode.toUpperCase())?1:.01;return{totalPrice:e.total*r,totalPriceFormattedString:wn(e.total*r,t.paymentOption.currencyCode),subTotalPrice:e.sub_total*r,subTotalPriceFormattedString:wn(e.sub_total*r,t.paymentOption.currencyCode)}}));console.error("No valid change from subscription")},hasProductAddons:!1,hasPromoCodes:()=>!0,internalSubmit:()=>!1,noPaymentForm:()=>!1,canAttemptIncompletePaymentFormSubmission:!0},[un]:{loader:(e,t,r)=>{vt(e).changeSubscriptionMode?r.updateFormState({paymentFormComplete:!0}):Wn().then((()=>((e,t)=>pn("plugins/public/zuora-billing/payment-form-token",{method:"POST",bodyObject:{hostedPageId:vt(e).paymentProviderFormConfig.hostedPageId,hostedPageUrl:vt(e).paymentProviderFormConfig.hostedPageUrl}},t).then((e=>e.json())))(e,r))).then((n=>{if(!Kn(e,t))return r.updateFormState({serverErrors:[Ze.PAYMENT_PROCESSING_ERROR]}),void console.error("Form currency not set");const a={tenantId:n.tenantId,token:n.token,signature:n.signature,key:n.key,id:n.id,url:n.url,style:"inline",submitEnabled:!0},o={email:t.emailAddress};window.Z.setEventHandler("onloadCallback",(()=>{r.updateFormState({paymentProviderFormLoaded:!0})})),window.Z.render(a,o,(n=>{if("true"!==n.success)return console.error("Payment failed",n),void r.updateFormState({serverErrors:[Ze.PAYMENT_PROCESSING_ERROR]});r.updateFormState({paymentFormComplete:!0,paymentProviderVendorFields:{currency:Kn(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:Wn,completer:(e,t,r)=>{if(!vt(e).changeSubscriptionMode&&!t.paymentProviderVendorFields)return console.error("Flow error - no Zuora vendor fields found"),r.updateFormState({serverErrors:[Ze.PAYMENT_PROCESSING_ERROR]}),Promise.resolve();const{url:n,body:a,method:o}=fn(e,t,un,t.paymentProviderVendorFields),i=vt(e).changeSubscriptionMode?a:{...a,plan_id:`zuora-billing_product_rate_plan-${a.plan_id}-unused`};return pn(n,{method:o,bodyObject:i},r).then((e=>{if(!e?.ok)return console.error("Error when subscribing",e),Promise.reject()}))},changePaymentCompleter:(e,t,r)=>{console.log(t.paymentProviderVendorFields);const n=JSON.parse(t.paymentProviderVendorFields?.detail).refId;return pn("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 de{constructor(e){super(),ue(this,e,an,nn,i,{onMountCallback:4,isDisabled:0,providerError:1,isLoaded:2,error:3})}},preLoaderComponent:class extends de{constructor(e){super(),ue(this,e,sn,on,i,{onMountCallback:0})}},promoCodeCheckPath:"",promoCodeServiceOverride:async(e,t,r)=>(async(e,t,r)=>{if(e.environment.previewMode)return;const n=vt(e).dynamicOffer?.id;if(!n)throw Error("Missing Dynamic Offer id");let a;try{a=document.cookie.match(/blaize_session=[0-9a-z-]+/)[0].substring(15)}catch{a=null}const o=(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 pn("zephr/public/decisions/v1/promo-codes",{method:"POST",bodyObject:{promo_code:t.promoCode,session:a,selected_products:o}},r,"promo-code");if(!i.ok)return Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[Ze.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 Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[Ze.PROMO_CODE_INVALID_ERROR],discountedPlanPrices:[]}));const l=r.updateFormState({promoCodeValid:!0,serverErrors:[],discountedPlanPrices:[],originalDynamicOfferResult:t.dynamicOfferResult,dynamicOfferResult:{...t.dynamicOfferResult,...s}});await Mn(e,l,r)})(e,t,r),priceCalculator:(e,t,r)=>Wn().then((()=>ma(e,t,r))).then((r=>({slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,addonPrices:[],totalPrice:r.amount,totalPriceFormattedString:wn(r.amount,Kn(e,t)),netPrice:r.amountWithoutTax,netPriceFormattedString:wn(r.amountWithoutTax,Kn(e,t)),taxPrice:r.taxAmount||null,taxPriceFormattedString:r.taxAmount?wn(r.taxAmount,Kn(e,t)):null,discountPrice:0,discountPriceFormattedPrice:wn(0,Kn(e,t)),chargeItems:[...Object.values(r.invoiceItems)].filter((e=>e.chargeAmount)).map((r=>({label:r.chargeName,priceFormattedString:wn(r.chargeAmount,Kn(e,t))}))),billingAddress:t.billingAddress}))),existingSubscriptionLoader:(e,t,r,n)=>pn("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)],a=1===n.length?n:n.filter((e=>"Add"===e.lastChangeType));if(1!==a.length&&console.warn(`Subscription ${r.id} has ${a.length} active rate plans`,n),a[0]&&!vt(e).dynamicOffer?.id&&Kn(e,t)&&![...Object.values(a[0].ratePlanCharges??{})].every((r=>r?.currency===Kn(e,t))))return console.log(`Subscription ${r.id} is not in the form currency`),null;const o=r.contractedMrr&&r.currency&&r.currentTermPeriodType?`${r.currency} ${r.contractedMrr}`:"";return{externalId:r.id,productId:r.SubscriptionExperienceProductID__c,productLabel:a[0]?.productName,planId:a[0]?.productRatePlanId,planLabel:null,currency:a[0]?.ratePlanCharges[0]?.currency,status:Sa[r.status?.toLowerCase()]??"inactive",amount:o}})).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 pn("plugins/public/zuora-billing/subscription-change-preview",{method:"POST",bodyObject:{subscriptionId:n.externalId,newProductRatePlanId:t.paymentOption.slug,currency:Kn(e,t),...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult),productId:t.paymentOption.productId}:{}}},r).then((e=>e.json())).then((r=>({totalPrice:r.amount,totalPriceFormattedString:wn(r.amount,Kn(e,t)),subTotalPrice:r.amountWithoutTax,subTotalPriceFormattedString:wn(r.amountWithoutTax,Kn(e,t))})));console.error("No valid change from subscription")},hasProductAddons:!1,hasPromoCodes:e=>vt(e).dynamicOffer&&!vt(e).changeSubscriptionMode,internalSubmit:e=>!vt(e).changeSubscriptionMode,noPaymentForm:e=>vt(e).changeSubscriptionMode,canAttemptIncompletePaymentFormSubmission:!1}},Oa={[cn]:{loader:async(e,t,r)=>{await Cn(e,t,r),await vn(e,t,r)},completer:(e,t,r)=>{const{url:n,body:a,method:o}=fn(e,t,cn,{payment_nonce:t.mobilePaymentMethodId,vault_payment_method:!0});return pn(n,{method:o,bodyObject:a},r).then((e=>{if(!e?.ok)throw e}))},component:class extends de{constructor(e){super(),ue(this,e,Hr,qr,i,{onMountCallback:1,isDisabled:0,disableCoreDependencyHeader:2})}},previewMode:e=>e.environment.previewMode},[ln]:{loader:async(e,t,r)=>{const n=JSON.parse(e.organisationConfiguration?.stripeMobilePaymentConfig??"{}"),a=document.getElementById("stripe-mobile-pay-button");return n?.google||n?.apple?jn.then((async()=>await Un(r))).then((o=>{t=r.getFormState();const i=Ln(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=o.paymentRequest(s),l=o.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(a.style.display="none");l.mount("#stripe-mobile-pay-button"),c.on("paymentmethod",(a=>{qn(t,r,o,a,n,e)}))}))})).catch((e=>{console.error(e),r.updateFormState({serverErrors:[Ze.UNKNOWN]})})):(a.style.display="none",void console.error("Stripe Mobile payments are not configured in the console"))},completer:Bn,component:class extends de{constructor(e){super(),ue(this,e,Xr,Zr,i,{onMountCallback:2,isDisabled:0,disableCoreDependencyHeader:1})}},previewMode:e=>e.environment.previewMode}},wa=e=>{const t=Ta[e];if(!t)throw`Payment provider ${e} not configured.`;return t},Ia=e=>{const t=Oa[e];if(!t)throw`Mobile payment provider ${e} not configured.`;return t};function _a(e){let t,r;return t=new Vt({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 Ra(e,t,r){let{providerError:n}=t,{error:a=null}=t;return e.$$set=e=>{"providerError"in e&&r(0,n=e.providerError),"error"in e&&r(1,a=e.error)},[n,a]}class Ma extends de{constructor(e){super(),ue(this,e,Ra,_a,i,{providerError:0,error:1})}}const $a={matches:e=>e.type===Ce||e.type===He,create:(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider);return n.noPaymentForm(e)?{component:Ma,props:{providerError:t.paymentProviderError},isValid:!0}:{component:n.component,props:{isLoaded:t.paymentProviderFormLoaded,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}}},La=e=>e.parts.flatMap((e=>e.sections)).flatMap((e=>e.elements)).some((e=>e.type===Ce&&!1!==e.config?.enabled)),Na={matches:e=>e.type===xe,create:(e,t,r)=>{const n=Ia(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:La(e)}}}};function xa(t){let r,n,a,o,i,s;return{c(){r=A("div"),n=A("img"),o=C(),i=A("div"),s=E(t[0]),O(n,"class","check-image svelte-12ljnq4"),c(n.src,a="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=")||O(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="),O(n,"alt","Success indicator"),O(i,"class","zephr-form-success-message svelte-12ljnq4"),L(i,"zephr-payment-form-success-message",t[1])},m(e,t){g(e,r,t),y(r,n),y(r,o),y(r,i),y(i,s)},p(e,[t]){1&t&&_(s,e[0]),2&t&&L(i,"zephr-payment-form-success-message",e[1])},i:e,o:e,d(e){e&&h(r)}}}function Fa(e,t,r){let{text:n}=t,{isPaymentForm:a=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"isPaymentForm"in e&&r(1,a=e.isPaymentForm)},[n,a]}class za extends de{constructor(e){super(),ue(this,e,Fa,xa,i,{text:0,isPaymentForm:1})}}const ka={matches:e=>e.type===Te,create:(e,t,r,n)=>({component:za,props:{text:n?.text,isPaymentForm:e.formType===Et.PAYMENT}})},Da=(e,t)=>({identifiers:{email_address:t},delivery:{method:"email",destination:t,action:e,redirect:window.location.href.replace(window.location.origin,"")}}),Ua=async(e,t,r)=>{try{(await pn("blaize/token-exchange",{method:"POST",bodyObject:Da(e,t)},r)).ok||r.updateFormState({serverErrors:[Ze.UNKNOWN]})}catch(e){r.updateFormState({serverErrors:[Ze.UNKNOWN]})}},Ba=e=>e.formType===Et.REGISTRATION&&!1===vt(e).usePassword&&!0===e.organisationConfiguration.requireEmailVerfication&&!1===vt(e).useVerificationCodes,Va=async(e,t,r)=>qa(t,r).then((async n=>{if(!n.redirected){const a=200===n.status,o=e.parts.flatMap((e=>e.sections)).some((e=>e.type===tt.VERIFICATION_CODE_REGISTRATION.type)),i=!!a&&((await n.json()).contact&&o),s=a&&!i;r.updateFormState({userExists:s,emailIsContact:i});return Ba(e)?s?(Ua("login",t.emailAddress,r),at(tt.PASSWORDLESS_VIA_LOGIN_LINK.type,e,r)):ut(e,t,r):i||vt(e).useVerificationCodes||e.organisationConfiguration.twoFactorEmailAuthenticationEnabled?(ja(e,t,r),at(s?tt.VERIFICATION_CODE_LOGIN.type:tt.VERIFICATION_CODE_REGISTRATION.type,e,r)):at(s?tt.LOGIN_PASSWORD.type:tt.PASSWORD_SETUP.type,e,r)}window.location.replace(n.url)})),Ga=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,"")}}),ja=async(e,t,r)=>{r.updateFormState({verificationCode:"",verificationCodeValid:void 0});const n=await pn("blaize/two-factor-authentication",{method:"POST",bodyObject:Ga(t)},r);return n.ok||r.updateFormState({serverErrors:[Ze.VERIFICATION_CODE_SEND_ERROR]}),n.ok},qa=async(e,t)=>(t.updateFormState({password:"",verificationCode:void 0,verificationCodeValid:void 0,forgotPassword:!1}),await pn("zephr/media/user/info",{method:"POST",bodyObject:{identifiers:{email_address:e.emailAddress}}},t)),Ha=async e=>await new Promise((t=>setTimeout(t,e.environment.reduceDelays?1:1500))),Ka=async(e,t,r)=>{r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0});return(await pn(`zephr/users/reset/${t.verificationCode}`,{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress}}},r)).ok?Ha(e).then((()=>{r.decrementRequestCount(),r.jumpToSection(tt.PASSWORD_RESET.type)})):(r.updateFormState({serverErrors:[Ze.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),Promise.resolve())},Ya=async(e,t,r)=>{r.updateFormState({createPassword:"",confirmCreatePassword:"",forgotPassword:!0,verificationCode:""}),r.incrementRequestCount();return(await pn("zephr/users/reset",{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress}}},r)).ok?Ha(e).then((()=>{r.decrementRequestCount(),r.jumpToSection(tt.FORGOT_PASSWORD.type)})):(r.updateFormState({serverErrors:[Ze.PASSWORD_RESET_LINK_SEND_ERROR]}),r.decrementRequestCount(),Promise.resolve())},Wa=async(e,t,r)=>(await pn(`zephr/users/reset/${t.verificationCode}`,{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress},validators:{password:t.createPassword}}},r)).ok?(r.updateFormState({verificationCode:"",forgotPassword:!1}),r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)):(r.updateFormState({serverErrors:[Ze.PASSWORD_RESET_ERROR]}),Promise.resolve());function Qa(e){let t;function r(e,t){return e[12]&&!e[5]?Za:Ja}let n=r(e),a=n(e);return{c(){a.c(),t=S()},m(e,r){a.m(e,r),g(e,t,r)},p(e,o){n===(n=r(e))&&a?a.p(e,o):(a.d(1),a=n(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){e&&h(t),a.d(e)}}}function Ja(e){let t,r,n,a;return{c(){t=A("button"),r=E(e[3]),O(t,"class","zephr-form-verification-resend-link svelte-b6r3ph"),L(t,"zephr-payment-form-verification-resend-link",e[9])},m(o,i){g(o,t,i),y(t,r),n||(a=v(t,"click",e[13]),n=!0)},p(e,n){8&n&&_(r,e[3]),512&n&&L(t,"zephr-payment-form-verification-resend-link",e[9])},d(e){e&&h(t),n=!1,a()}}}function Za(e){let t,r;return{c(){t=A("div"),r=E(e[2]),O(t,"class","zephr-form-verification-resend-text svelte-b6r3ph"),L(t,"zephr-payment-form-verification-resend-text",e[9])},m(e,n){g(e,t,n),y(t,r)},p(e,n){4&n&&_(r,e[2]),512&n&&L(t,"zephr-payment-form-verification-resend-text",e[9])},d(e){e&&h(t)}}}function Xa(e){let t,r=e[3]&&Qa(e);return{c(){r&&r.c(),t=S()},m(e,n){r&&r.m(e,n),g(e,t,n)},p(e,n){e[3]?r?r.p(e,n):(r=Qa(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){e&&h(t),r&&r.d(e)}}}function eo(e){let t,r;return t=new ir({props:{icon:lr}}),{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 to(e){let t,r;return t=new ir({props:{icon:cr,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 ro(e){let t,r,n,a,o,i,s,c;t=new Jt({props:{forInput:"zephr-form-verification-code",label:e[0],isPaymentForm:e[9]}}),a=new Kt({props:{id:"zephr-form-verification-code",value:e[8],placeholder:e[1],maxlength:6,hasError:null!=e[5],errorMessage:e[5],isPaymentForm:e[9],$$slots:{default:[Xa]},$$scope:{ctx:e}}}),a.$on("change",e[14]);let l=e[6]&&eo(),u=e[8]&&!e[6]&&e[7]&&to();return{c(){ie(t.$$.fragment),r=C(),n=A("div"),ie(a.$$.fragment),o=C(),i=A("div"),l&&l.c(),s=C(),u&&u.c(),O(i,"class","zephr-form-input-inner-text"),L(i,"zephr-payment-form-input-inner-text",e[9]),O(n,"class","zephr-form-relative-container zephr-form-verification-resend-link-container svelte-b6r3ph"),L(n,"zephr-payment-form-relative-container",e[9]),L(n,"zephr-payment-form-verification-resend-link-container",e[9])},m(e,d){se(t,e,d),g(e,r,d),g(e,n,d),se(a,n,null),y(n,o),y(n,i),l&&l.m(i,null),y(i,s),u&&u.m(i,null),c=!0},p(e,[r]){const o={};1&r&&(o.label=e[0]),512&r&&(o.isPaymentForm=e[9]),t.$set(o);const d={};256&r&&(d.value=e[8]),2&r&&(d.placeholder=e[1]),32&r&&(d.hasError=null!=e[5]),32&r&&(d.errorMessage=e[5]),512&r&&(d.isPaymentForm=e[9]),39468&r&&(d.$$scope={dirty:r,ctx:e}),a.$set(d),e[6]?l?64&r&&te(l,1):(l=eo(),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=to(),u.c(),te(u,1),u.m(i,null)):u&&(X(),re(u,1,1,(()=>{u=null})),ee()),(!c||512&r)&&L(i,"zephr-payment-form-input-inner-text",e[9]),(!c||512&r)&&L(n,"zephr-payment-form-relative-container",e[9]),(!c||512&r)&&L(n,"zephr-payment-form-verification-resend-link-container",e[9])},i(e){c||(te(t.$$.fragment,e),te(a.$$.fragment,e),te(l),te(u),c=!0)},o(e){re(t.$$.fragment,e),re(a.$$.fragment,e),re(l),re(u),c=!1},d(e){e&&(h(r),h(n)),ce(t,e),ce(a),l&&l.d(),u&&u.d()}}}function no(e,t,r){let{label:n}=t,{placeholder:a}=t,{resendMessage:o=null}=t,{resendText:i=null}=t,{disabled:s}=t,{error:c=null}=t,{codeValid:l}=t,{formBusy:u}=t,{code:d}=t,{isPaymentForm:p=!1}=t,{onChange:m}=t,{onResendVerificationCode:f}=t,y=!1;return e.$$set=e=>{"label"in e&&r(0,n=e.label),"placeholder"in e&&r(1,a=e.placeholder),"resendMessage"in e&&r(2,o=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,d=e.code),"isPaymentForm"in e&&r(9,p=e.isPaymentForm),"onChange"in e&&r(10,m=e.onChange),"onResendVerificationCode"in e&&r(11,f=e.onResendVerificationCode)},[n,a,o,i,s,c,l,u,d,p,m,f,y,()=>{o&&(r(12,y=!0),setTimeout((()=>r(12,y=!1)),2e3)),f()},({detail:e})=>!s&&m(e)]}class ao extends de{constructor(e){super(),ue(this,e,no,ro,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})}}const oo=e=>6===e?.length,io={matches:e=>e.type===Pe,create:(e,t,r,n)=>({component:ao,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===Et.PAYMENT,onResendVerificationCode:()=>{(t.currentSection.type===tt.FORGOT_PASSWORD.type?Ya:ja)(e,t,r)},onChange:e=>{const a=r.updateFormState({verificationCodeValid:void 0,verificationCode:e,serverErrors:[]});if(oo(e)){if(n.verificationEvent)return void r.onEvent(n.verificationEvent);t.currentSection.type===tt.FORGOT_PASSWORD.type?r.completeSection():(async(e,t)=>{(await pn("zephr/media/user/otp-check",{method:"POST",bodyObject:{code:e.verificationCode,email:e.emailAddress}},t)).ok?(t.updateFormState({verificationCodeValid:!1,serverErrors:[]}),t.completeSection()):t.updateFormState({verificationCodeValid:!1,serverErrors:[Ze.VERIFICATION_CODE_INCORRECT]})})(a,r)}}},isValid:oo(t.verificationCode)})};function so(t){let r;return{c(){r=A("div"),O(r,"class","zephr-form-custom-text svelte-12fdogm"),M(r,"text-align",t[1]?"center":"initial"),L(r,"zephr-payment-form-custom-text",t[2])},m(e,n){g(e,r,n),r.innerHTML=t[0]},p(e,[t]){1&t&&(r.innerHTML=e[0]),2&t&&M(r,"text-align",e[1]?"center":"initial"),4&t&&L(r,"zephr-payment-form-custom-text",e[2])},i:e,o:e,d(e){e&&h(r)}}}function co(e,t,r){let{text:n}=t,{centerText:a=!1}=t,{isPaymentForm:o=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"centerText"in e&&r(1,a=e.centerText),"isPaymentForm"in e&&r(2,o=e.isPaymentForm)},[n,a,o]}class lo extends de{constructor(e){super(),ue(this,e,co,so,i,{text:0,centerText:1,isPaymentForm:2})}}const uo={matches:e=>e.type===Oe,create:(e,t,r,n)=>({component:lo,props:{text:n.text,centerText:n.centerText,isPaymentForm:e.formType===Et.PAYMENT}})};function po(r){let n,a,o,i,s,c,l,u,d=[{id:r[0]},{name:r[1]},{required:r[2]},{disabled:r[3]},r[8],{type:"checkbox"},{class:"zephr-form-checkbox"}],p={};for(let e=0;e<d.length;e+=1)p=t(p,d[e]);return{c(){n=A("input"),a=C(),o=A("label"),i=A("div"),s=C(),c=E(r[6]),I(n,p),L(n,"disabled",r[3]),L(n,"error",r[4]),L(n,"zephr-payment-form-checkbox",r[5]),L(n,"svelte-eyzg32",!0),O(i,"class","zephr-form-checkmark svelte-eyzg32"),L(i,"zephr-payment-form-checkmark",r[5]),L(i,"disabled",r[3]),L(i,"checked",r[7]),L(i,"error",r[4]),O(o,"for",r[0]),O(o,"class","zephr-form-checkbox-label svelte-eyzg32"),L(o,"zephr-payment-form-checkbox-label",r[5])},m(e,t){g(e,n,t),n.autofocus&&n.focus(),g(e,a,t),g(e,o,t),y(o,i),y(o,s),y(o,c),l||(u=v(n,"input",r[9]),l=!0)},p(e,[t]){I(n,p=ae(d,[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"}])),L(n,"disabled",e[3]),L(n,"error",e[4]),L(n,"zephr-payment-form-checkbox",e[5]),L(n,"svelte-eyzg32",!0),32&t&&L(i,"zephr-payment-form-checkmark",e[5]),8&t&&L(i,"disabled",e[3]),128&t&&L(i,"checked",e[7]),16&t&&L(i,"error",e[4]),64&t&&_(c,e[6]),1&t&&O(o,"for",e[0]),32&t&&L(o,"zephr-payment-form-checkbox-label",e[5])},i:e,o:e,d(e){e&&(h(n),h(a),h(o)),l=!1,u()}}}function mo(e,t,r){const n=D();let{id:a}=t,{name:o=a}=t,{required:i=!0}=t,{disabled:s=!1}=t,{hasError:c=!1}=t,{isPaymentForm:l=!1}=t,{label:u=""}=t,{value:d}=t,{placeholder:p=""}=t,{checked:m=!1}=t,{pattern:f=""}=t,y={};m&&(y.checked=m),p&&(y.placeholder=p),f&&(y.pattern=f),d&&(y.value=d);return e.$$set=e=>{"id"in e&&r(0,a=e.id),"name"in e&&r(1,o=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,d=e.value),"placeholder"in e&&r(11,p=e.placeholder),"checked"in e&&r(7,m=e.checked),"pattern"in e&&r(12,f=e.pattern)},[a,o,i,s,c,l,u,m,y,e=>{n("change",e.target.checked)},d,p,f]}class fo extends de{constructor(e){super(),ue(this,e,mo,po,i,{id:0,name:1,required:2,disabled:3,hasError:4,isPaymentForm:5,label:6,value:10,placeholder:11,checked:7,pattern:12})}}function yo(r){let n,a,o,i,s,c,l,u,d=[{id:r[0]},{name:r[1]},{required:r[2]},{disabled:r[3]},r[8],{type:"radio"},{class:"zephr-form-input-radio"}],p={};for(let e=0;e<d.length;e+=1)p=t(p,d[e]);return{c(){n=A("input"),a=C(),o=A("label"),i=A("span"),s=C(),c=E(r[6]),I(n,p),L(n,"zephr-payment-form-input-radio",r[5]),L(n,"disabled",r[3]),L(n,"error",r[4]),L(n,"svelte-17rnpjv",!0),O(i,"class","zephr-form-radio-dot svelte-17rnpjv"),L(i,"zephr-payment-form-radio-dot",r[5]),L(i,"disabled",r[3]),L(i,"checked",r[7]),L(i,"error",r[4]),O(o,"for",r[0]),O(o,"class","zephr-form-radio-label svelte-17rnpjv"),L(o,"zephr-payment-form-radio-label",r[5])},m(e,t){g(e,n,t),n.autofocus&&n.focus(),g(e,a,t),g(e,o,t),y(o,i),y(o,s),y(o,c),l||(u=v(n,"input",r[9]),l=!0)},p(e,[t]){I(n,p=ae(d,[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"}])),L(n,"zephr-payment-form-input-radio",e[5]),L(n,"disabled",e[3]),L(n,"error",e[4]),L(n,"svelte-17rnpjv",!0),32&t&&L(i,"zephr-payment-form-radio-dot",e[5]),8&t&&L(i,"disabled",e[3]),128&t&&L(i,"checked",e[7]),16&t&&L(i,"error",e[4]),64&t&&_(c,e[6]),1&t&&O(o,"for",e[0]),32&t&&L(o,"zephr-payment-form-radio-label",e[5])},i:e,o:e,d(e){e&&(h(n),h(a),h(o)),l=!1,u()}}}function go(e,t,r){const n=D();let{id:a}=t,{name:o=a}=t,{required:i=!0}=t,{disabled:s=!1}=t,{hasError:c=!1}=t,{isPaymentForm:l=!1}=t,{label:u=""}=t,{value:d}=t,{placeholder:p=""}=t,{checked:m=!1}=t,{pattern:f=""}=t,y={};m&&(y.checked=m),p&&(y.placeholder=p),f&&(y.pattern=f),d&&(y.value=d);return e.$$set=e=>{"id"in e&&r(0,a=e.id),"name"in e&&r(1,o=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,d=e.value),"placeholder"in e&&r(11,p=e.placeholder),"checked"in e&&r(7,m=e.checked),"pattern"in e&&r(12,f=e.pattern)},[a,o,i,s,c,l,u,m,y,e=>{n("change",e.target.value)},d,p,f]}class ho extends de{constructor(e){super(),ue(this,e,go,yo,i,{id:0,name:1,required:2,disabled:3,hasError:4,isPaymentForm:5,label:6,value:10,placeholder:11,checked:7,pattern:12})}}function bo(e,t,r){const n=e.slice();return n[17]=t[r],n}function Ao(e,t,r){const n=e.slice();return n[17]=t[r],n}function Po(e){let t,r;return t=new Kt({props:{id:e[8],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[6],isPaymentForm:e[3]}}),t.$on("change",e[16]),{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),64&r&&(n.hasError=e[6]),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 Eo(e){let t,r,n,a;r=new Kt({props:{id:e[8],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]}}),r.$on("change",e[15]);let o="range"===e[1]["input-type"]&&null!=e[2]&&Oo(e);return{c(){t=A("div"),ie(r.$$.fragment),n=C(),o&&o.c(),O(t,"class","zephr-form-flex-container"),L(t,"zephr-payment-form-flex-container",e[3])},m(e,i){g(e,t,i),se(r,t,null),y(t,n),o&&o.m(t,null),a=!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]),r.$set(i),"range"===e[1]["input-type"]&&null!=e[2]?o?o.p(e,n):(o=Oo(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null),(!a||8&n)&&L(t,"zephr-payment-form-flex-container",e[3])},i(e){a||(te(r.$$.fragment,e),a=!0)},o(e){re(r.$$.fragment,e),a=!1},d(e){e&&h(t),ce(r),o&&o.d()}}}function Co(t){let r,n,a,o,i;return{c(){r=A("textarea"),O(r,"id",t[8]),O(r,"class","zephr-form-input zephr-form-input-textarea svelte-1f2hwm0"),r.required=n=t[0].required||t[1]?.required,O(r,"placeholder",a=t[0].placeholder),L(r,"zephr-payment-form-input",t[3]),L(r,"zephr-payment-form-input-textarea",t[3])},m(e,n){g(e,r,n),R(r,t[5]),o||(i=v(r,"input",t[14]),o=!0)},p(e,t){3&t&&n!==(n=e[0].required||e[1]?.required)&&(r.required=n),1&t&&a!==(a=e[0].placeholder)&&O(r,"placeholder",a),32&t&&R(r,e[5]),8&t&&L(r,"zephr-payment-form-input",e[3]),8&t&&L(r,"zephr-payment-form-input-textarea",e[3])},i:e,o:e,d(e){e&&h(r),o=!1,i()}}}function So(t){let r,n,a,o,i,s,c,l,u=(t[0].placeholder??"")+"",d=ne(t[1]?.["select-options"]),p=[];for(let e=0;e<d.length;e+=1)p[e]=wo(bo(t,d,e));return{c(){r=A("select"),n=A("option"),a=E(u);for(let e=0;e<p.length;e+=1)p[e].c();n.disabled=!0,n.__value="",R(n,n.__value),O(r,"id",t[8]),O(r,"name",o=t[0].slug),O(r,"class","zephr-form-input zephr-form-input-select svelte-1f2hwm0"),r.required=i=t[0].required||t[1]?.required,L(r,"zephr-payment-form-input",t[3]),L(r,"zephr-payment-form-input-select",t[3]),L(r,"unselected",!t[2]),L(r,"error",t[6])},m(e,o){g(e,r,o),y(r,n),y(n,a);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(r,null);$(r,t[2]??""),c||(l=v(r,"change",t[13]),c=!0)},p(e,t){if(1&t&&u!==(u=(e[0].placeholder??"")+"")&&_(a,u),6&t){let n;for(d=ne(e[1]?.["select-options"]),n=0;n<d.length;n+=1){const a=bo(e,d,n);p[n]?p[n].p(a,t):(p[n]=wo(a),p[n].c(),p[n].m(r,null))}for(;n<p.length;n+=1)p[n].d(1);p.length=d.length}1&t&&o!==(o=e[0].slug)&&O(r,"name",o),3&t&&i!==(i=e[0].required||e[1]?.required)&&(r.required=i),6&t&&s!==(s=e[2]??"")&&$(r,e[2]??""),8&t&&L(r,"zephr-payment-form-input",e[3]),8&t&&L(r,"zephr-payment-form-input-select",e[3]),4&t&&L(r,"unselected",!e[2]),64&t&&L(r,"error",e[6])},i:e,o:e,d(e){e&&h(r),b(p,e),c=!1,l()}}}function vo(e){let t,r;return t=new fo({props:{id:e[8],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[6],isPaymentForm:e[3]}}),t.$on("change",e[12]),{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),64&r&&(n.hasError=e[6]),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 To(e){let t,r,n=ne(e[1]?.["select-options"]),a=[];for(let t=0;t<n.length;t+=1)a[t]=Io(Ao(e,n,t));const o=e=>re(a[e],1,1,(()=>{a[e]=null}));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();t=S()},m(e,n){for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,n);g(e,t,n),r=!0},p(e,r){if(351&r){let i;for(n=ne(e[1]?.["select-options"]),i=0;i<n.length;i+=1){const o=Ao(e,n,i);a[i]?(a[i].p(o,r),te(a[i],1)):(a[i]=Io(o),a[i].c(),te(a[i],1),a[i].m(t.parentNode,t))}for(X(),i=n.length;i<a.length;i+=1)o(i);ee()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)te(a[e]);r=!0}},o(e){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)re(a[e]);r=!1},d(e){e&&h(t),b(a,e)}}}function Oo(e){let t,r;return{c(){t=A("output"),r=E(e[2]),O(t,"class","zephr-form-input-slider-output svelte-1f2hwm0"),L(t,"zephr-payment-form-input-slider-output",e[3])},m(e,n){g(e,t,n),y(t,r)},p(e,n){4&n&&_(r,e[2]),8&n&&L(t,"zephr-payment-form-input-slider-output",e[3])},d(e){e&&h(t)}}}function wo(e){let t,r,n,a,o,i=e[17].label+"";return{c(){t=A("option"),r=E(i),n=C(),t.__value=a=e[17].value,R(t,t.__value),t.selected=o=e[2]===e[17].value},m(e,a){g(e,t,a),y(t,r),y(t,n)},p(e,n){2&n&&i!==(i=e[17].label+"")&&_(r,i),2&n&&a!==(a=e[17].value)&&(t.__value=a,R(t,t.__value)),6&n&&o!==(o=e[2]===e[17].value)&&(t.selected=o)},d(e){e&&h(t)}}}function Io(e){let t,r;return t=new ho({props:{id:e[8]+"-"+e[17].value,name:e[0].slug,label:e[17].label,required:e[0].required||e[1]?.required,value:e[17].value,checked:e[2]===e[17].value,hasError:e[6],isPaymentForm:e[3]}}),t.$on("change",e[11]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};2&r&&(n.id=e[8]+"-"+e[17].value),1&r&&(n.name=e[0].slug),2&r&&(n.label=e[17].label),3&r&&(n.required=e[0].required||e[1]?.required),2&r&&(n.value=e[17].value),6&r&&(n.checked=e[2]===e[17].value),64&r&&(n.hasError=e[6]),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 _o(e){let t,r,n,a;const o=[To,vo,So,Co,Eo,Po],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]=o[t](e),{c(){r.c(),n=S()},m(e,r){i[t].m(e,r),g(e,n,r),a=!0},p(e,a){let c=t;t=s(e),t===c?i[t].p(e,a):(X(),re(i[c],1,1,(()=>{i[c]=null})),ee(),r=i[t],r?r.p(e,a):(r=i[t]=o[t](e),r.c()),te(r,1),r.m(n.parentNode,n))},i(e){a||(te(r),a=!0)},o(e){re(r),a=!1},d(e){e&&h(n),i[t].d(e)}}}function Ro(e){let t;return{c(){t=A("div"),t.textContent="Mandatory information must be entered",O(t,"class","zephr-form-input-error-text svelte-1f2hwm0"),L(t,"zephr-payment-form-input-error-text",e[3])},m(e,r){g(e,t,r)},p(e,r){8&r&&L(t,"zephr-payment-form-input-error-text",e[3])},d(e){e&&h(t)}}}function Mo(e){let t,r,n,a;t=new Jt({props:{forInput:e[8],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:[_o]},$$scope:{ctx:e}}});let o=e[6]&&Ro(e);return{c(){ie(t.$$.fragment),r=C(),o&&o.c(),n=S()},m(e,i){se(t,e,i),g(e,r,i),o&&o.m(e,i),g(e,n,i),a=!0},p(e,[r]){const a={};2&r&&(a.sublabel=e[1]["public-description"]),3&r&&(a.label=/(hidden|checkbox)/.test(e[1]?.["input-type"]||"")?"":`${e[0].label}${e[0].required||e[1]?.required?"*":""}`),8&r&&(a.isPaymentForm=e[3]),4194431&r&&(a.$$scope={dirty:r,ctx:e}),t.$set(a),e[6]?o?o.p(e,r):(o=Ro(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i(e){a||(te(t.$$.fragment,e),a=!0)},o(e){re(t.$$.fragment,e),a=!1},d(e){e&&(h(r),h(n)),ce(t,e),o&&o.d(e)}}}function $o(e,t,r){let n,{formKey:a}=t,{config:o}=t,{attributeSchema:i}=t,{value:s}=t,{error:c}=t,{isPaymentForm:l=!1}=t,{onChange:u}=t,d=s;const p=e=>e,m=`zephr-form-${o.slug}-${a}`;return e.$$set=e=>{"formKey"in e&&r(9,a=e.formKey),"config"in e&&r(0,o=e.config),"attributeSchema"in e&&r(1,i=e.attributeSchema),"value"in e&&r(2,s=e.value),"error"in e&&r(10,c=e.error),"isPaymentForm"in e&&r(3,l=e.isPaymentForm),"onChange"in e&&r(4,u=e.onChange)},e.$$.update=()=>{1024&e.$$.dirty&&r(6,n=!!c),54&e.$$.dirty&&"textarea"===i?.["input-type"]&&d!==s&&u(d)},[o,i,s,l,u,d,n,p,m,a,c,({detail:e})=>u(e),({detail:e})=>u(e),e=>u(e.target.value),function(){d=this.value,r(5,d)},({detail:e})=>u(e),({detail:e})=>u(e)]}class Lo extends de{constructor(e){super(),ue(this,e,$o,Mo,i,{formKey:9,config:0,attributeSchema:1,value:2,error:10,isPaymentForm:3,onChange:4})}}const No=e=>null==e||""===e,xo={matches:e=>e.type===we,create:(e,t,r,n)=>{const a=e.organisationConfiguration.schemaFields.find((e=>e.slug===n.slug)),o=t.hideIfSetAttributes?.includes(n.slug);if(null==a||o)return;const i=a.required||n.required,s=t.userAttributes[n.slug]??(t.readOnlyAttributeValues??{})[n.slug];return{component:Lo,props:{formKey:e.uniqueKey,config:n,value:s,attributeSchema:a,isPaymentForm:e.formType===Et.PAYMENT,onChange:e=>{r.updateFormState({userAttributes:{...t.userAttributes,[n.slug]:e}})}},isValid:!(i&&No(s)||i&&"checkbox"===a["input-type"]&&!s||"email"===a["input-type"]&&!No(s)&&!Ur(s))}}};function Fo(t){let r,n,a,o;return{c(){r=A("button"),n=E(t[0]),O(r,"type","button"),O(r,"class","zephr-form-link svelte-1mdtotm"),L(r,"zephr-form-link-disabled",t[1]),L(r,"zephr-form-link-no-underline",t[3])},m(e,i){g(e,r,i),y(r,n),a||(o=v(r,"click",t[5]),a=!0)},p(e,[t]){1&t&&_(n,e[0]),2&t&&L(r,"zephr-form-link-disabled",e[1]),8&t&&L(r,"zephr-form-link-no-underline",e[3])},i:e,o:e,d(e){e&&h(r),a=!1,o()}}}function zo(e,t,r){let{text:n}=t,{disabled:a=!1}=t,{onClick:o=(()=>{})}=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,a=e.disabled),"onClick"in e&&r(2,o=e.onClick),"noUnderline"in e&&r(3,i=e.noUnderline)},[n,a,o,i,s,()=>{o(),s("linkClick",null)}]}class ko extends de{constructor(e){super(),ue(this,e,zo,Fo,i,{text:0,disabled:1,onClick:2,noUnderline:3})}}function Do(e){let t,r;return t=new ko({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 Uo(t){let r,n;return{c(){r=A("div"),n=E(t[1]),O(r,"class","zephr-form-link-message svelte-11qigta")},m(e,t){g(e,r,t),y(r,n)},p(e,t){2&t&&_(n,e[1])},i:e,o:e,d(e){e&&h(r)}}}function Bo(e){let t,r;return t=new Vt({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 Vo(e){let t,r,n,a,o;const i=[Uo,Do],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]&&Bo(e);return{c(){t=A("div"),n.c(),a=C(),l&&l.c(),O(t,"class","zephr-form-flex-container zephr-form-reset-link-container svelte-11qigta"),L(t,"zephr-payment-form-flex-container",e[5])},m(e,n){g(e,t,n),s[r].m(t,null),y(t,a),l&&l.m(t,null),o=!0},p(e,[u]){let d=r;r=c(e),r===d?s[r].p(e,u):(X(),re(s[d],1,1,(()=>{s[d]=null})),ee(),n=s[r],n?n.p(e,u):(n=s[r]=i[r](e),n.c()),te(n,1),n.m(t,a)),e[3]?l?(l.p(e,u),8&u&&te(l,1)):(l=Bo(e),l.c(),te(l,1),l.m(t,null)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),(!o||32&u)&&L(t,"zephr-payment-form-flex-container",e[5])},i(e){o||(te(n),te(l),o=!0)},o(e){re(n),re(l),o=!1},d(e){e&&h(t),s[r].d(),l&&l.d()}}}function Go(e,t,r){let{text:n}=t,{message:a}=t,{onClick:o}=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,a=e.message),"onClick"in e&&r(2,o=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,a,o,i,s,c,l,()=>{a&&(r(6,l=!0),setTimeout((()=>r(6,l=!1)),s))}]}class jo extends de{constructor(e){super(),ue(this,e,Go,Vo,i,{text:0,message:1,onClick:2,error:3,delayMs:4,isPaymentForm:5})}}const qo={matches:e=>e.type===Ie,create:(e,t,r,n)=>({component:jo,props:{text:n.text,message:n.message,delayMs:e.environment.reduceDelays?1:3e3,isPaymentForm:e.formType===Et.PAYMENT,onClick:()=>Ya(e,t,r)}})};function Ho(e){let t,r;return t=new ko({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 Ko(t){let r,n;return{c(){r=A("div"),n=E(t[1]),O(r,"class","zephr-form-link-message svelte-11qigta")},m(e,t){g(e,r,t),y(r,n)},p(e,t){2&t&&_(n,e[1])},i:e,o:e,d(e){e&&h(r)}}}function Yo(e){let t,r;return t=new Vt({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 Wo(e){let t,r,n,a,o;const i=[Ko,Ho],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]&&Yo(e);return{c(){t=A("div"),n.c(),a=C(),l&&l.c(),O(t,"class","zephr-form-flex-container zephr-form-reset-link-container svelte-11qigta"),L(t,"zephr-payment-form-flex-container",e[5])},m(e,n){g(e,t,n),s[r].m(t,null),y(t,a),l&&l.m(t,null),o=!0},p(e,[u]){let d=r;r=c(e),r===d?s[r].p(e,u):(X(),re(s[d],1,1,(()=>{s[d]=null})),ee(),n=s[r],n?n.p(e,u):(n=s[r]=i[r](e),n.c()),te(n,1),n.m(t,a)),e[3]?l?(l.p(e,u),8&u&&te(l,1)):(l=Yo(e),l.c(),te(l,1),l.m(t,null)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),(!o||32&u)&&L(t,"zephr-payment-form-flex-container",e[5])},i(e){o||(te(n),te(l),o=!0)},o(e){re(n),re(l),o=!1},d(e){e&&h(t),s[r].d(),l&&l.d()}}}function Qo(e,t,r){let{text:n}=t,{message:a}=t,{onClick:o}=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,a=e.message),"onClick"in e&&r(2,o=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,a,o,i,s,c,l,()=>{a&&(r(6,l=!0),setTimeout((()=>r(6,l=!1)),s))}]}class Jo extends de{constructor(e){super(),ue(this,e,Qo,Wo,i,{text:0,message:1,onClick:2,error:3,delayMs:4,isPaymentForm:5})}}const Zo={matches:e=>e.type===_e,create:(e,t,r,n)=>({component:Jo,props:{text:n.text,message:n.message,delayMs:e.environment.reduceDelays?1:3e3,isPaymentForm:e.formType===Et.PAYMENT,onClick:async()=>{await Ua("login",t.emailAddress,r)}}})},Xo=(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 ja(e,n,t);ut(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(tt.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(We.LOGIN_REGISTRATION_COMPLETE)):t.updateFormState({socialSigninError:r.data.message??"Something went wrong. Please try again later!"})};var ei={prefix:"fab",iconName:"microsoft",icon:[448,512,[],"f3ca","M0 32h214.6v214.6H0V32zm233.4 0H448v214.6H233.4V32zM0 265.4h214.6V480H0V265.4zm233.4 0H448V480H233.4V265.4z"]},ti={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"]},ri={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"]},ni={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"]},ai={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 oi(t){let r,n,a,o,i;return{c(){r=P("svg"),n=P("path"),a=P("path"),o=P("path"),i=P("path"),O(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"),O(n,"fill","#4285f4"),O(a,"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(a,"fill","#34a853"),O(o,"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"),O(o,"fill","#fbbc04"),O(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"),O(i,"fill","#ea4335"),O(r,"class","zephr-form-social-sign-in-icon zephr-form-google-icon svelte-155mfls"),O(r,"viewBox","0 0 533.5 544.3"),O(r,"xmlns","http://www.w3.org/2000/svg")},m(e,t){g(e,r,t),y(r,n),y(r,a),y(r,o),y(r,i)},p:e,i:e,o:e,d(e){e&&h(r)}}}class ii extends de{constructor(e){super(),ue(this,e,null,oi,i,{})}}function si(e,t,r){const n=e.slice();return n[8]=t[r],n}function ci(e){let t,r,n,a,o,i,s,c,l,u,d,p,m=e[8]+"";const f=[ui,li],b=[];function P(e,t){return"Google"===e[8]?0:1}function S(){return e[6](e[8])}return a=P(e),o=b[a]=f[a](e),{c(){t=A("button"),r=A("span"),n=A("span"),o.c(),i=C(),s=E(e[4]),c=C(),l=E(m),O(n,"class","zephr-form-social-sign-in-icon svelte-18a7qws"),L(n,"zephr-payment-form-social-sign-in-icon",e[3]),O(r,"class","zephr-form-flex-container zephr-form-social-sign-in svelte-18a7qws"),L(r,"zephr-payment-form-flex-container",e[3]),L(r,"zephr-payment-form-social-sign-in",e[3]),O(t,"type","button"),O(t,"class","zephr-form-button zephr-form-social-sign-in-button svelte-18a7qws"),L(t,"zephr-payment-form-button",e[3]),L(t,"zephr-payment-form-social-sign-in-button",e[3])},m(e,o){g(e,t,o),y(t,r),y(r,n),b[a].m(n,null),y(r,i),y(r,s),y(r,c),y(r,l),u=!0,d||(p=v(t,"click",T(S)),d=!0)},p(i,s){let c=a;a=P(e=i),a===c?b[a].p(e,s):(X(),re(b[c],1,1,(()=>{b[c]=null})),ee(),o=b[a],o?o.p(e,s):(o=b[a]=f[a](e),o.c()),te(o,1),o.m(n,null)),(!u||8&s)&&L(n,"zephr-payment-form-social-sign-in-icon",e[3]),(!u||1&s)&&m!==(m=e[8]+"")&&_(l,m),(!u||8&s)&&L(r,"zephr-payment-form-flex-container",e[3]),(!u||8&s)&&L(r,"zephr-payment-form-social-sign-in",e[3]),(!u||8&s)&&L(t,"zephr-payment-form-button",e[3]),(!u||8&s)&&L(t,"zephr-payment-form-social-sign-in-button",e[3])},i(e){u||(te(o),u=!0)},o(e){re(o),u=!1},d(e){e&&h(t),b[a].d(),d=!1,p()}}}function li(e){let r,n;const a=[e[5](e[8])];let o={};for(let e=0;e<a.length;e+=1)o=t(o,a[e]);return r=new ir({props:o}),{c(){ie(r.$$.fragment)},m(e,t){se(r,e,t),n=!0},p(e,t){const n=33&t?ae(a,[oe(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 ui(t){let r,n;return r=new ii({}),{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 di(e){let t,r,n=!0===e[0][e[8]]&&"labelText"!==e[8]&&"allowEmptyLabel"!==e[8]&&ci(e);return{c(){n&&n.c(),t=S()},m(e,a){n&&n.m(e,a),g(e,t,a),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=ci(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&&h(t),n&&n.d(e)}}}function pi(e){let t,r;return t=new Vt({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 mi(e){let t,r,n,a=ne(Object.keys(e[0])),o=[];for(let t=0;t<a.length;t+=1)o[t]=di(si(e,a,t));const i=e=>re(o[e],1,1,(()=>{o[e]=null}));let s=e[2]&&pi(e);return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=C(),s&&s.c(),r=S()},m(e,a){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,a);g(e,t,a),s&&s.m(e,a),g(e,r,a),n=!0},p(e,[n]){if(59&n){let r;for(a=ne(Object.keys(e[0])),r=0;r<a.length;r+=1){const i=si(e,a,r);o[r]?(o[r].p(i,n),te(o[r],1)):(o[r]=di(i),o[r].c(),te(o[r],1),o[r].m(t.parentNode,t))}for(X(),r=a.length;r<o.length;r+=1)i(r);ee()}e[2]?s?(s.p(e,n),4&n&&te(s,1)):(s=pi(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<a.length;e+=1)te(o[e]);te(s),n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)re(o[e]);re(s),n=!1},d(e){e&&(h(t),h(r)),b(o,e),s&&s.d(e)}}}function fi(e,t,r){let{config:n}=t,{onSelectProvider:a}=t,{error:o=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,a=e.onSelectProvider),"error"in e&&r(2,o=e.error),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i,c,e=>{switch(e){case"Facebook":default:return{icon:ni,color:"#1877f2",size:"lg"};case"LinkedIn":return{icon:ri,color:"#0a66c2",size:"lg"};case"Apple":return{icon:ti,color:"#000",size:"lg"};case"Microsoft":return{icon:ei,color:"#00a4ef",size:"lg"};case"Twitter":return{icon:ai,color:"#08a0e9",size:"lg"}}},e=>a(e.toLowerCase())]}class yi extends de{constructor(e){super(),ue(this,e,fi,mi,i,{config:0,onSelectProvider:1,error:2,isPaymentForm:3})}}const gi={matches:e=>e.type===Re,create:(e,t,r,n)=>{const{enabled:a,hide:o,show:i,...s}=n??{};return{component:yi,props:{config:s,isPaymentForm:e.formType===Et.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=Xo(t,r);window.zephrOAuthListener=n,window.addEventListener("message",n)})(t,e,r)}}}},hi="promo-code",bi=async(e,t,r)=>{const n=await In(e,t,r,!0),a=await Mn(e,n,r);if(t.currentSection.elements.some((e=>e.type===xe&&!1!==e.config?.enabled))){r.incrementRequestCount();try{await Ia(e.organisationConfiguration.paymentProvider).loader(e,a,r)}finally{r.decrementRequestCount()}}},Ai=async(e,t,r)=>{const n=wa(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=wa(e.organisationConfiguration.paymentProvider),a=await pn(n.promoCodeCheckPath,{method:"POST",bodyObject:{promoCode:t.promoCode,paymentOptions:vt(e).paymentOptions}},r,hi);if(!a.ok){let e;if(403===a.status){const t=await a.json();e=2===t?.code||3===t?.code?Ze.PROMO_CODE_EXPIRED_ERROR:Ze.PROMO_CODE_INVALID_ERROR}else e=Ze.PROMO_CODE_INVALID_ERROR,console.error("Unknown error evaluating promo code",a);return Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[e],discountedPlanPrices:[]}))}const o=(await a.json()).paymentOptions.map((e=>({planSlug:e.slug,productId:e.productId,discountPrice:e.discountPrice})));return o.find((e=>e.planSlug===t.paymentOption.slug&&e.productId===t.paymentOption.productId))?Promise.resolve(r.updateFormState({promoCodeValid:!0,serverErrors:[],discountedPlanPrices:o})):Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[Ze.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR],discountedPlanPrices:o}))})(e,t,r).then((t=>bi(e,t,r))):t};function Pi(e,t,r){const n=e.slice();return n[31]=t[r],n}function Ei(e,t,r){const n=e.slice();return n[34]=t[r],n}function Ci(e){let t,r,n,a,o,i,s,c=e[34].label+"",l=e[34].priceFormattedString+"";return{c(){t=A("div"),r=A("span"),n=E(c),a=C(),o=A("div"),i=A("span"),s=E(l),O(r,"class","zephr-form-summary-charge-description zephr-payment-form-summary-charge-description svelte-19l6fte"),O(o,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),O(t,"class","zephr-form-charge-line zephr-payment-form-charge-line svelte-19l6fte")},m(e,c){g(e,t,c),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(i,s)},p(e,t){524288&t[0]&&c!==(c=e[34].label+"")&&_(n,c),524288&t[0]&&l!==(l=e[34].priceFormattedString+"")&&_(s,l)},d(e){e&&h(t)}}}function Si(e){let t,r,n,a,o,i;return{c(){t=A("div"),r=A("div"),n=E(e[22]),a=C(),o=A("div"),i=E(e[21]),O(r,"class","zephr-form-summary-charge-description zephr-payment-form-summary-charge-description svelte-19l6fte"),O(o,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),O(t,"class","zephr-form-charge-line zephr-payment-form-charge-line svelte-19l6fte")},m(e,s){g(e,t,s),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i)},p(e,t){4194304&t[0]&&_(n,e[22]),2097152&t[0]&&_(i,e[21])},d(e){e&&h(t)}}}function vi(e){let t,r,n,a,o,i,s,c=e[31].label+"",l=e[31].addonPrice+"";return{c(){t=A("div"),r=A("span"),n=E(c),a=C(),o=A("div"),i=A("span"),s=E(l),O(o,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),O(t,"class","zephr-form-addon-line zephr-payment-form-addon-line svelte-19l6fte")},m(e,c){g(e,t,c),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(i,s)},p(e,t){262144&t[0]&&c!==(c=e[31].label+"")&&_(n,c),262144&t[0]&&l!==(l=e[31].addonPrice+"")&&_(s,l)},d(e){e&&h(t)}}}function Ti(e){let t,r,n,a=!e[17]&&!(e[25]||e[11])&&Oi(e),o=(e[25]||e[11])&&wi(e);return{c(){a&&a.c(),t=C(),o&&o.c(),r=S()},m(e,i){a&&a.m(e,i),g(e,t,i),o&&o.m(e,i),g(e,r,i),n=!0},p(e,n){e[17]||e[25]||e[11]?a&&(a.d(1),a=null):a?a.p(e,n):(a=Oi(e),a.c(),a.m(t.parentNode,t)),e[25]||e[11]?o?(o.p(e,n),33556480&n[0]&&te(o,1)):(o=wi(e),o.c(),te(o,1),o.m(r.parentNode,r)):o&&(X(),re(o,1,1,(()=>{o=null})),ee())},i(e){n||(te(o),n=!0)},o(e){re(o),n=!1},d(e){e&&(h(t),h(r)),a&&a.d(e),o&&o.d(e)}}}function Oi(e){let t,r,n,a,o;return{c(){t=A("button"),r=A("span"),n=E(e[4]),O(t,"type","button"),O(t,"class","zephr-form-promo-activate-line zephr-payment-form-promo-activate-line svelte-19l6fte")},m(i,s){g(i,t,s),y(t,r),y(r,n),a||(o=v(t,"click",e[29]),a=!0)},p(e,t){16&t[0]&&_(n,e[4])},d(e){e&&h(t),a=!1,o()}}}function wi(e){let t,r,n,a,o,i,s,c,l,u,d,p;const m=[_i,Ii],b=[];function P(e,t){return e[17]&&e[11]?0:e[17]?-1:1}~(n=P(e))&&(a=b[n]=m[n](e));const E=[Ni,Li],v=[];function T(e,t){return e[12]?0:e[17]?-1:1}~(s=T(e))&&(c=v[s]=E[s](e));let w=e[14]&&Fi(e);return{c(){t=A("div"),r=A("div"),a&&a.c(),o=C(),i=A("div"),c&&c.c(),u=C(),w&&w.c(),d=S(),O(r,"class","zephr-form-promo-input-container zephr-payment-form-promo-input-container svelte-19l6fte"),O(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"),O(t,"class","zephr-form-promo-line zephr-payment-form-promo-line svelte-19l6fte")},m(e,a){g(e,t,a),y(t,r),~n&&b[n].m(r,null),y(t,o),y(t,i),~s&&v[s].m(i,null),g(e,u,a),w&&w.m(e,a),g(e,d,a),p=!0},p(e,t){let o=n;n=P(e),n===o?~n&&b[n].p(e,t):(a&&(X(),re(b[o],1,1,(()=>{b[o]=null})),ee()),~n?(a=b[n],a?a.p(e,t):(a=b[n]=m[n](e),a.c()),te(a,1),a.m(r,null)):a=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]=E[s](e),c.c()),te(c,1),c.m(i,null)):c=null),(!p||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"))&&O(i,"class",l),e[14]?w?(w.p(e,t),16384&t[0]&&te(w,1)):(w=Fi(e),w.c(),te(w,1),w.m(d.parentNode,d)):w&&(X(),re(w,1,1,(()=>{w=null})),ee())},i(e){p||(te(a),te(c),te(w),p=!0)},o(e){re(a),re(c),re(w),p=!1},d(e){e&&(h(t),h(u),h(d)),~n&&b[n].d(),~s&&v[s].d(),w&&w.d(e)}}}function Ii(e){let t,r,n;return r=new Kt({props:{id:"zephr-form-promo-code",value:e[11],placeholder:e[5],maxlength:50,hasError:null!=e[14],fill:!0,isPaymentForm:!0,$$slots:{default:[$i]},$$scope:{ctx:e}}}),r.$on("change",e[30]),{c(){t=A("div"),ie(r.$$.fragment),O(t,"class","zephr-form-relative-container zephr-form-promo-input zephr-form-relative-container zephr-payment-form-promo-input")},m(e,a){g(e,t,a),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]),53248&t[0]|64&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&&h(t),ce(r)}}}function _i(t){let r,n;return{c(){r=A("span"),n=E(t[11]),O(r,"class","zephr-form-summary-promo-middle zephr-payment-form-summary-promo-middle svelte-19l6fte")},m(e,t){g(e,r,t),y(r,n)},p(e,t){2048&t[0]&&_(n,e[11])},i:e,o:e,d(e){e&&h(r)}}}function Ri(e){let t,r;return t=new ir({props:{icon:cr,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 Mi(e){let t,r;return t=new ir({props:{icon:lr}}),{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 $i(e){let t,r,n,a;const o=[Mi,Ri],i=[];function s(e,t){return e[12]?0:e[15]&&!e[14]?1:-1}return~(r=s(e))&&(n=i[r]=o[r](e)),{c(){t=A("div"),n&&n.c(),O(t,"class","zephr-form-input-inner-text zephr-payment-form-input-inner-text zephr-form-input-inner-button")},m(e,n){g(e,t,n),~r&&i[r].m(t,null),a=!0},p(e,a){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]=o[r](e),n.c()),te(n,1),n.m(t,null)):n=null)},i(e){a||(te(n),a=!0)},o(e){re(n),a=!1},d(e){e&&h(t),~r&&i[r].d()}}}function Li(e){let t,r;return t=new wt({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 Ni(t){let r,n=t[0]&&xi(t);return{c(){r=A("span"),n&&n.c(),O(r,"class","zephr-form-summary-promo-middle zephr-payment-form-summary-promo-middle svelte-19l6fte")},m(e,t){g(e,r,t),n&&n.m(r,null)},p(e,t){e[0]?n?n.p(e,t):(n=xi(e),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&h(r),n&&n.d()}}}function xi(e){let t,r;return{c(){t=E("- "),r=E(e[13])},m(e,n){g(e,t,n),g(e,r,n)},p(e,t){8192&t[0]&&_(r,e[13])},d(e){e&&(h(t),h(r))}}}function Fi(e){let t,r;return t=new Vt({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 zi(e){let t,r;return{c(){t=A("div"),r=E(e[10]),O(t,"class","zephr-form-summary-prorate-disclaimer zephr-payment-form-summary-prorate-disclaimer svelte-19l6fte")},m(e,n){g(e,t,n),y(t,r)},p(e,t){1024&t[0]&&_(r,e[10])},d(e){e&&h(t)}}}function ki(e){let t,r,n,a,o,i,s=(e[9]??"DUE TODAY")+"",c=e[20].totalPriceFormattedString+"";return{c(){t=A("div"),r=A("div"),n=E(s),a=C(),o=A("div"),i=E(c),O(r,"class","zephr-form-summary-line-total-title zephr-payment-form-summary-line-total-title"),O(o,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),O(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){g(e,t,s),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i)},p(e,t){512&t[0]&&s!==(s=(e[9]??"DUE TODAY")+"")&&_(n,s),1048576&t[0]&&c!==(c=e[20].totalPriceFormattedString+"")&&_(i,c)},d(e){e&&h(t)}}}function Di(e){let t,r,n,a,o,i,s,c,l,u,d,p,m,f,P,S,v,T,w,I,R,M,$,L,N=ne(e[19]),x=[];for(let t=0;t<N.length;t+=1)x[t]=Ci(Ei(e,N,t));let F=e[21]&&Si(e),z=ne(e[18]),k=[];for(let t=0;t<z.length;t+=1)k[t]=vi(Pi(e,z,t));let D=e[3]&&Ti(e),U=e[10]&&zi(e),B=e[20]&&ki(e);return{c(){t=A("div"),r=A("div"),n=E(e[7]),a=C(),o=A("div"),i=A("div"),s=E(e[1]),c=C(),l=A("div"),u=E(e[26]),d=C();for(let e=0;e<x.length;e+=1)x[e].c();p=C(),F&&F.c(),m=C();for(let e=0;e<k.length;e+=1)k[e].c();f=C(),D&&D.c(),P=C(),S=A("div"),v=A("div"),T=E(e[8]),w=C(),I=A("div"),R=E(e[2]),M=C(),U&&U.c(),$=C(),B&&B.c(),O(r,"class","zephr-form-summary-title zephr-payment-form-summary-title svelte-19l6fte"),O(i,"class","zephr-form-summary-line-title zephr-payment-form-summary-line-title svelte-19l6fte"),O(l,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),O(o,"class","zephr-form-summary-line zephr-payment-form-summary-line svelte-19l6fte"),O(v,"class","zephr-form-summary-line-total-title zephr-payment-form-summary-line-total-title"),O(I,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),O(S,"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"),O(t,"class","zephr-form-summary zephr-payment-form-summary svelte-19l6fte")},m(e,h){g(e,t,h),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(i,s),y(o,c),y(o,l),y(l,u),y(t,d);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(t,null);y(t,p),F&&F.m(t,null),y(t,m);for(let e=0;e<k.length;e+=1)k[e]&&k[e].m(t,null);y(t,f),D&&D.m(t,null),y(t,P),y(t,S),y(S,v),y(v,T),y(S,w),y(S,I),y(I,R),y(t,M),U&&U.m(t,null),y(t,$),B&&B.m(t,null),L=!0},p(e,r){if((!L||128&r[0])&&_(n,e[7]),(!L||2&r[0])&&_(s,e[1]),(!L||67108864&r[0])&&_(u,e[26]),524288&r[0]){let n;for(N=ne(e[19]),n=0;n<N.length;n+=1){const a=Ei(e,N,n);x[n]?x[n].p(a,r):(x[n]=Ci(a),x[n].c(),x[n].m(t,p))}for(;n<x.length;n+=1)x[n].d(1);x.length=N.length}if(e[21]?F?F.p(e,r):(F=Si(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 a=Pi(e,z,n);k[n]?k[n].p(a,r):(k[n]=vi(a),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=Ti(e),D.c(),te(D,1),D.m(t,P)):D&&(X(),re(D,1,1,(()=>{D=null})),ee()),(!L||256&r[0])&&_(T,e[8]),(!L||4&r[0])&&_(R,e[2]),e[10]?U?U.p(e,r):(U=zi(e),U.c(),U.m(t,$)):U&&(U.d(1),U=null),e[20]?B?B.p(e,r):(B=ki(e),B.c(),B.m(t,null)):B&&(B.d(1),B=null)},i(e){L||(te(D),L=!0)},o(e){re(D),L=!1},d(e){e&&h(t),b(x,e),F&&F.d(),b(k,e),D&&D.d(),U&&U.d(),B&&B.d()}}}function Ui(e,t,r){let n,{showPromoCodeDiscountAmount:a=!0}=t,{planTitle:o}=t,{price:i}=t,{totalPrice:s}=t,{allowPromoCodes:c}=t,{promoCodeLinkText:l}=t,{promoCodePlaceholder:u}=t,{promoCodeButtonText:d}=t,{title:p}=t,{totalLabel:m}=t,{prorateLabel:f}=t,{prorateDisclaimer:y}=t,{promoCode:g}=t,{promoCodeValid:h}=t,{discountAmount:b}=t,{error:A=null}=t,{busy:P}=t,{promoCodeDisabled:E}=t,{paymentProcessed:C}=t,{addons:S}=t,{chargeItems:v}=t,{changeSubscriptionProrate:T}=t,{tax:O}=t,{taxLabel:w}=t,{subTotal:I}=t,{onChangePromoCode:_}=t,{verifyPromoCode:R}=t,M=!1;return e.$$set=e=>{"showPromoCodeDiscountAmount"in e&&r(0,a=e.showPromoCodeDiscountAmount),"planTitle"in e&&r(1,o=e.planTitle),"price"in e&&r(27,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,d=e.promoCodeButtonText),"title"in e&&r(7,p=e.title),"totalLabel"in e&&r(8,m=e.totalLabel),"prorateLabel"in e&&r(9,f=e.prorateLabel),"prorateDisclaimer"in e&&r(10,y=e.prorateDisclaimer),"promoCode"in e&&r(11,g=e.promoCode),"promoCodeValid"in e&&r(12,h=e.promoCodeValid),"discountAmount"in e&&r(13,b=e.discountAmount),"error"in e&&r(14,A=e.error),"busy"in e&&r(15,P=e.busy),"promoCodeDisabled"in e&&r(16,E=e.promoCodeDisabled),"paymentProcessed"in e&&r(17,C=e.paymentProcessed),"addons"in e&&r(18,S=e.addons),"chargeItems"in e&&r(19,v=e.chargeItems),"changeSubscriptionProrate"in e&&r(20,T=e.changeSubscriptionProrate),"tax"in e&&r(21,O=e.tax),"taxLabel"in e&&r(22,w=e.taxLabel),"subTotal"in e&&r(28,I=e.subTotal),"onChangePromoCode"in e&&r(23,_=e.onChangePromoCode),"verifyPromoCode"in e&&r(24,R=e.verifyPromoCode)},e.$$.update=()=>{403177472&e.$$.dirty[0]&&r(26,n=v.length?"":I||i)},[a,o,s,c,l,u,d,p,m,f,y,g,h,b,A,P,E,C,S,v,T,O,w,_,R,M,n,i,I,()=>r(25,M=!0),({detail:e})=>_(e)]}class Bi extends de{constructor(e){super(),ue(this,e,Ui,Di,i,{showPromoCodeDiscountAmount:0,planTitle:1,price:27,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:28,onChangePromoCode:23,verifyPromoCode:24},null,[-1,-1])}}const Vi={matches:e=>e.type===Me,create:(e,t,r,n)=>{const a=wa(e.organisationConfiguration.paymentProvider);return{component:Bi,props:{showPromoCodeDiscountAmount:!vt(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:(vt(e).promoCodeConfig?.promoCodeAllowed||vt(e).dynamicOffer)&&a.hasPromoCodes(e),promoCodeLinkText:vt(e).promoCodeConfig?.promoCodeText,promoCodePlaceholder:vt(e).promoCodeConfig?.promoCodePlaceholder,promoCodeButtonText:vt(e).promoCodeConfig?.promoCodeButtonText,totalLabel:n.total,prorateLabel:n.prorateLabel,prorateDisclaimer:!vt(e).changeSubscriptionMode||a.changeSubscriptionProrateCalculator?null:n.prorateDisclaimer,title:n.title,promoCode:t.promoCode,busy:t.isBusyByKey[hi],promoCodeDisabled:t.isBusy||0===t.promoCode?.length,paymentProcessed:t.paymentProcessed,discountAmount:t.paymentOptionPrices?.discountPriceFormattedPrice??"-",addons:Rn(t).map((e=>({label:e.label,addonPrice:wn(e.addonPrice,t.paymentOption.currencyCode)}))),chargeItems:t.paymentOptionPrices?.chargeItems??[],promoCodeValid:t.promoCodeValid,changeSubscriptionProrate:t.changeSubscriptionProrate,onChangePromoCode:n=>{let a=r.updateFormState({promoCode:n,promoCodeValid:void 0,discountedPlanPrices:[]});t.promoCodeValid&&(t.originalDynamicOfferResult&&(a=r.updateFormState({dynamicOfferResult:t.originalDynamicOfferResult})),bi(e,a,r))},verifyPromoCode:()=>{Ai(e,t,r)}}}}};function Gi(e){let t,r,n,a=e[1]&&ji(e),o=e[0]&&Ki(e),i=e[1]&&e[0]&&Yi(e);return{c(){t=A("div"),a&&a.c(),r=C(),o&&o.c(),n=C(),i&&i.c(),O(t,"class","zephr-form-divider-container svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-container",e[3])},m(e,s){g(e,t,s),a&&a.m(t,null),y(t,r),o&&o.m(t,null),y(t,n),i&&i.m(t,null)},p(e,s){e[1]?a?a.p(e,s):(a=ji(e),a.c(),a.m(t,r)):a&&(a.d(1),a=null),e[0]?o?o.p(e,s):(o=Ki(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[1]&&e[0]?i?i.p(e,s):(i=Yi(e),i.c(),i.m(t,null)):i&&(i.d(1),i=null),8&s&&L(t,"zephr-payment-form-divider-container",e[3])},d(e){e&&h(t),a&&a.d(),o&&o.d(),i&&i.d()}}}function ji(e){let t;function r(e,t){return e[0]?Hi:qi}let n=r(e),a=n(e);return{c(){a.c(),t=S()},m(e,r){a.m(e,r),g(e,t,r)},p(e,o){n===(n=r(e))&&a?a.p(e,o):(a.d(1),a=n(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){e&&h(t),a.d(e)}}}function qi(t){let r;return{c(){r=A("div"),O(r,"class","zephr-form-divider-line-complete svelte-1ni5n6w")},m(e,t){g(e,r,t)},p:e,d(e){e&&h(r)}}}function Hi(e){let t;return{c(){t=A("div"),O(t,"class","zephr-form-divider-line svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-line",e[3])},m(e,r){g(e,t,r)},p(e,r){8&r&&L(t,"zephr-payment-form-divider-line",e[3])},d(e){e&&h(t)}}}function Ki(e){let t,r;return{c(){t=A("span"),r=E(e[0]),O(t,"class","zephr-form-divider-text svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-text",e[3])},m(e,n){g(e,t,n),y(t,r)},p(e,n){1&n&&_(r,e[0]),8&n&&L(t,"zephr-payment-form-divider-text",e[3])},d(e){e&&h(t)}}}function Yi(e){let t;return{c(){t=A("div"),O(t,"class","zephr-form-divider-line svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-line",e[3])},m(e,r){g(e,t,r)},p(e,r){8&r&&L(t,"zephr-payment-form-divider-line",e[3])},d(e){e&&h(t)}}}function Wi(t){let r,n=t[2]&&Gi(t);return{c(){n&&n.c(),r=S()},m(e,t){n&&n.m(e,t),g(e,r,t)},p(e,[t]){e[2]?n?n.p(e,t):(n=Gi(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&h(r),n&&n.d(e)}}}function Qi(e,t,r){let{text:n}=t,{showLine:a}=t,{show:o}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"showLine"in e&&r(1,a=e.showLine),"show"in e&&r(2,o=e.show),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i]}class Ji extends de{constructor(e){super(),ue(this,e,Qi,Wi,i,{text:0,showLine:1,show:2,isPaymentForm:3})}}const Zi={matches:e=>e.type===$e,create:(e,t,r,n)=>({component:Ji,props:{text:n.text,showLine:n.showLine,show:n.show,isPaymentForm:e.formType===Et.PAYMENT}})};function Xi(t){let r,n,a,o,i;return{c(){r=A("div"),n=E(t[0]),a=C(),o=A("a"),i=E(t[1]),O(o,"href",t[2]),O(o,"class","svelte-1bpa3mq"),O(r,"class","zephr-form-login-link svelte-1bpa3mq"),L(r,"zephr-payment-login-link",t[3])},m(e,t){g(e,r,t),y(r,n),y(r,a),y(r,o),y(o,i)},p(e,[t]){1&t&&_(n,e[0]),2&t&&_(i,e[1]),4&t&&O(o,"href",e[2]),8&t&&L(r,"zephr-payment-login-link",e[3])},i:e,o:e,d(e){e&&h(r)}}}function es(e,t,r){let{text:n}=t,{linkText:a}=t,{url:o}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"linkText"in e&&r(1,a=e.linkText),"url"in e&&r(2,o=e.url),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i]}class ts extends de{constructor(e){super(),ue(this,e,es,Xi,i,{text:0,linkText:1,url:2,isPaymentForm:3})}}const rs={matches:e=>e.type===Le,create:(e,t,r,n)=>({component:ts,props:{text:n.alreadyRegText,linkText:n.loginText,url:n.url,isPaymentForm:e.formType===Et.PAYMENT}})},ns={matches:e=>e.type===Ee&&e.config.isLogin,create:(e,t,r,n)=>({component:wt,props:{disabled:t.isBusy,text:n.text,onClick:()=>{r.updateFormState({forgotPassword:!1}),r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)},isPaymentForm:e.formType===Et.PAYMENT}})};function as(e){let t,r;return t=new ko({props:{text:e[0]}}),t.$on("linkClick",e[8]),{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 os(e){let t,r,n,a;return t=new Jt({props:{forInput:e[6],label:e[0]}}),n=new Kt({props:{id:e[6],value:e[2],errorMessage:e[3],placeholder:e[1]}}),n.$on("change",e[9]),{c(){ie(t.$$.fragment),r=C(),ie(n.$$.fragment)},m(e,o){se(t,e,o),g(e,r,o),se(n,e,o),a=!0},p(e,r){const a={};1&r&&(a.label=e[0]),t.$set(a);const o={};4&r&&(o.value=e[2]),8&r&&(o.errorMessage=e[3]),2&r&&(o.placeholder=e[1]),n.$set(o)},i(e){a||(te(t.$$.fragment,e),te(n.$$.fragment,e),a=!0)},o(e){re(t.$$.fragment,e),re(n.$$.fragment,e),a=!1},d(e){e&&h(r),ce(t,e),ce(n,e)}}}function is(e){let t,r,n,a=!e[5]&&as(e),o=(e[2]||e[5])&&os(e);return{c(){t=A("div"),a&&a.c(),r=C(),o&&o.c(),O(t,"class","zephr-form-account-code-container svelte-ctt9he")},m(e,i){g(e,t,i),a&&a.m(t,null),y(t,r),o&&o.m(t,null),n=!0},p(e,[n]){e[5]?a&&(X(),re(a,1,1,(()=>{a=null})),ee()):a?(a.p(e,n),32&n&&te(a,1)):(a=as(e),a.c(),te(a,1),a.m(t,r)),e[2]||e[5]?o?(o.p(e,n),36&n&&te(o,1)):(o=os(e),o.c(),te(o,1),o.m(t,null)):o&&(X(),re(o,1,1,(()=>{o=null})),ee())},i(e){n||(te(a),te(o),n=!0)},o(e){re(a),re(o),n=!1},d(e){e&&h(t),a&&a.d(),o&&o.d()}}}function ss(e,t,r){let{formKey:n}=t,{label:a}=t,{placeholder:o}=t,{accountMembershipCode:i}=t,{error:s=null}=t,{onChange:c}=t,l=!1;const u=`zephr-form-account-code-${n}`;return e.$$set=e=>{"formKey"in e&&r(7,n=e.formKey),"label"in e&&r(0,a=e.label),"placeholder"in e&&r(1,o=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)},[a,o,i,s,c,l,u,n,()=>r(5,l=!0),e=>c(e.detail)]}class cs extends de{constructor(e){super(),ue(this,e,ss,is,i,{formKey:7,label:0,placeholder:1,accountMembershipCode:2,error:3,onChange:4})}}const ls={matches:e=>e.type===Ne,create:(e,t,r,n)=>({component:cs,props:{formKey:e.uniqueKey,label:n.label,placeholder:n.placeholder,accountMembershipCode:t.accountMembershipCode,onChange:e=>{r.updateFormState({accountMembershipCode:e,serverErrors:[]})}}})};function us(e){let t,r,n;return r=new za({props:{text:e[4]}}),{c(){t=A("div"),ie(r.$$.fragment),O(t,"class","zephr-form-invitation-success-message svelte-yy7ok3")},m(e,a){g(e,t,a),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&&h(t),ce(r)}}}function ds(e){let t,r,n,a,o,i,s,c,l,u,d,p,m,f,b,P;c=new Jt({props:{forInput:e[12],label:e[2],isPaymentForm:e[11]}}),p=new Kt({props:{disabled:e[10],required:!0,id:e[12],value:e[7]??"",errorMessage:e[9],isPaymentForm:e[11]}}),p.$on("change",e[14]),f=new wt({props:{disabled:!Ur(e[7])||e[10],text:e[3],onClick:e[5],noMargin:!0,inputHeight:!0,aside:!0,isPaymentForm:e[11]}});let S=e[8]&&us(e);return{c(){t=A("div"),r=A("div"),n=E(e[0]),a=C(),o=A("div"),i=E(e[1]),s=C(),ie(c.$$.fragment),l=C(),u=A("div"),d=A("div"),ie(p.$$.fragment),m=C(),ie(f.$$.fragment),b=C(),S&&S.c(),O(r,"class","zephr-form-invitation-title svelte-yy7ok3"),O(o,"class","zephr-form-invitation-description"),O(d,"class","zephr-form-invitation-input-container svelte-yy7ok3"),O(u,"class","zephr-form-relative-container zephr-form-invitation-email svelte-yy7ok3"),L(u,"zephr-payment-form-relative-container",e[11]),O(t,"class","zephr-form-invitation-container svelte-yy7ok3")},m(e,h){g(e,t,h),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(t,s),se(c,t,null),y(t,l),y(t,u),y(u,d),se(p,d,null),y(u,m),se(f,u,null),y(t,b),S&&S.m(t,null),P=!0},p(e,[r]){(!P||1&r)&&_(n,e[0]),(!P||2&r)&&_(i,e[1]);const a={};4&r&&(a.label=e[2]),2048&r&&(a.isPaymentForm=e[11]),c.$set(a);const o={};1024&r&&(o.disabled=e[10]),128&r&&(o.value=e[7]??""),512&r&&(o.errorMessage=e[9]),2048&r&&(o.isPaymentForm=e[11]),p.$set(o);const s={};1152&r&&(s.disabled=!Ur(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),(!P||2048&r)&&L(u,"zephr-payment-form-relative-container",e[11]),e[8]?S?(S.p(e,r),256&r&&te(S,1)):(S=us(e),S.c(),te(S,1),S.m(t,null)):S&&(X(),re(S,1,1,(()=>{S=null})),ee())},i(e){P||(te(c.$$.fragment,e),te(p.$$.fragment,e),te(f.$$.fragment,e),te(S),P=!0)},o(e){re(c.$$.fragment,e),re(p.$$.fragment,e),re(f.$$.fragment,e),re(S),P=!1},d(e){e&&h(t),ce(c),ce(p),ce(f),S&&S.d()}}}function ps(e,t,r){let{formKey:n}=t,{title:a}=t,{description:o}=t,{label:i}=t,{btnText:s}=t,{linkSentText:c}=t,{onSendInviteClick:l}=t,{onChange:u}=t,{invitationEmail:d}=t,{invitationSent:p}=t,{error:m=null}=t,{isBusy:f}=t,{isPaymentForm:y=!1}=t;const g=`zephr-form-invitation-email-${n}`;return e.$$set=e=>{"formKey"in e&&r(13,n=e.formKey),"title"in e&&r(0,a=e.title),"description"in e&&r(1,o=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,d=e.invitationEmail),"invitationSent"in e&&r(8,p=e.invitationSent),"error"in e&&r(9,m=e.error),"isBusy"in e&&r(10,f=e.isBusy),"isPaymentForm"in e&&r(11,y=e.isPaymentForm)},[a,o,i,s,c,l,u,d,p,m,f,y,g,n,({detail:e})=>u(e)]}class ms extends de{constructor(e){super(),ue(this,e,ps,ds,i,{formKey:13,title:0,description:1,label:2,btnText:3,linkSentText:4,onSendInviteClick:5,onChange:6,invitationEmail:7,invitationSent:8,error:9,isBusy:10,isPaymentForm:11})}}const fs=async(e,t,r)=>{let n;n=t.userExists?await(e=>pn("blaize/profile",{method:"GET"},e).then((e=>e.json())))(r):t.userAttributes;const a=((e,t)=>(e??[]).reduce(((e,r)=>{const n=t[r.attrSlug];return{...e,[r.fieldName]:n}}),{}))(vt(e).invitationMetadata.mapping,n),o=await pn("zephr/public/products/v1/shares/invitations/emails",{method:"POST",bodyObject:{product_id:t.paymentOption.productId,email_address:t.invitationEmail,base_url:vt(e).invitationMetadata.url,meta_data:a}},r),i=await o.json();var s;o.ok?(r.updateFormState({invitationSent:!0,invitationEmail:""}),setTimeout((()=>{r.updateFormState({invitationSent:!1})}),3e3)):r.updateFormState({invitationSent:!1,serverErrors:[(s=i,403===s?.status&&s?.message?.includes("you do not have access to")?Ze.INVITATION_FAILED_NO_PRODUCT_ACCESS:400===s?.status&&s?.message?.includes("Invalid recipient email")?Ze.INVITATION_FAILED_INVALID_EMAIL:400===s?.status&&s?.message?.includes("reached the configured limit")?Ze.INVITATION_FAILED_LIMIT_REACHED:409===s?.status?Ze.INVITATION_FAILED_DUPLICATE_EMAIL:Ze.INVITATION_FAILED_UNKNOWN)]})},ys={matches:e=>e.type===Fe,create:(e,t,r,n)=>t.paymentOption?.product_sharing_limit>0?{component:ms,props:{formKey:e.uniqueKey,title:n.title,description:n.description,label:n.label,btnText:n.btnText,linkSentText:n.linkSentText,onSendInviteClick:()=>fs(e,t,r),onChange:e=>r.updateFormState({invitationEmail:e,serverErrors:[]}),invitationEmail:t.invitationEmail,invitationSent:t.invitationSent,isBusy:t.isBusy,isPaymentForm:e.formType===Et.PAYMENT}}:{component:null,props:{}}};class gs extends de{constructor(e){super(),ue(this,e,null,null,i,{})}}const hs={matches:e=>e.type===Se,create:(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider);return null==n.preLoaderComponent?{component:gs,props:{}}:{component:n.preLoaderComponent,props:{onMountCallback:()=>n.preLoader()}}}};function bs(t){let r;return{c(){r=A("div")},m(e,n){g(e,r,n),r.innerHTML=t[0]},p(e,[t]){1&t&&(r.innerHTML=e[0])},i:e,o:e,d(e){e&&h(r)}}}function As(e,t,r){let{html:n}=t;return e.$$set=e=>{"html"in e&&r(0,n=e.html)},[n]}class Ps extends de{constructor(e){super(),ue(this,e,As,bs,i,{html:0})}} /*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */var Es=Object.prototype.toString,Cs=Array.isArray||function(e){return"[object Array]"===Es.call(e)};function Ss(e){return"function"==typeof e}function vs(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ts(e,t){return null!=e&&"object"==typeof e&&t in e}var Os=RegExp.prototype.test;var ws=/\S/;function Is(e){return!function(e,t){return Os.call(e,t)}(ws,e)}var _s={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var Rs=/\s*/,Ms=/\s+/,$s=/\s*=/,Ls=/\s*\}/,Ns=/#|\^|\/|>|\{|&|=|!/;function xs(e){this.string=e,this.tail=e,this.pos=0}function Fs(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function zs(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}xs.prototype.eos=function(){return""===this.tail},xs.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},xs.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},Fs.prototype.push=function(e){return new Fs(e,this)},Fs.prototype.lookup=function(e){var t,r,n,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var o,i,s,c=this,l=!1;c;){if(e.indexOf(".")>0)for(o=c.view,i=e.split("."),s=0;null!=o&&s<i.length;)s===i.length-1&&(l=Ts(o,i[s])||(r=o,n=i[s],null!=r&&"object"!=typeof r&&r.hasOwnProperty&&r.hasOwnProperty(n))),o=o[i[s++]];else o=c.view[e],l=Ts(c.view,e);if(l){t=o;break}c=c.parent}a[e]=t}return Ss(t)&&(t=t.call(this.view)),t},zs.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},zs.prototype.parse=function(e,t){var r=this.templateCache,n=e+":"+(t||ks.tags).join(":"),a=void 0!==r,o=a?r.get(n):void 0;return null==o&&(o=function(e,t){if(!e)return[];var r,n,a,o=!1,i=[],s=[],c=[],l=!1,u=!1,d="",p=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(Ms,2)),!Cs(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(vs(e[0])+"\\s*"),n=new RegExp("\\s*"+vs(e[1])),a=new RegExp("\\s*"+vs("}"+e[1]))}f(t||ks.tags);for(var y,g,h,b,A,P,E=new xs(e);!E.eos();){if(y=E.pos,h=E.scanUntil(r))for(var C=0,S=h.length;C<S;++C)Is(b=h.charAt(C))?(c.push(s.length),d+=b):(u=!0,o=!0,d+=" "),s.push(["text",b,y,y+1]),y+=1,"\n"===b&&(m(),d="",p=0,o=!1);if(!E.scan(r))break;if(l=!0,g=E.scan(Ns)||"name",E.scan(Rs),"="===g?(h=E.scanUntil($s),E.scan($s),E.scanUntil(n)):"{"===g?(h=E.scanUntil(a),E.scan(Ls),E.scanUntil(n),g="&"):h=E.scanUntil(n),!E.scan(n))throw new Error("Unclosed tag at "+E.pos);if(A=">"==g?[g,h,y,E.pos,d,p,o]:[g,h,y,E.pos],p++,s.push(A),"#"===g||"^"===g)i.push(A);else if("/"===g){if(!(P=i.pop()))throw new Error('Unopened section "'+h+'" at '+y);if(P[1]!==h)throw new Error('Unclosed section "'+P[1]+'" at '+y)}else"name"===g||"{"===g||"&"===g?u=!0:"="===g&&f(h)}if(m(),P=i.pop())throw new Error('Unclosed section "'+P[1]+'" at '+E.pos);return function(e){for(var t,r=[],n=r,a=[],o=0,i=e.length;o<i;++o)switch((t=e[o])[0]){case"#":case"^":n.push(t),a.push(t),n=t[4]=[];break;case"/":a.pop()[5]=t[2],n=a.length>0?a[a.length-1][4]:r;break;default:n.push(t)}return r}(function(e){for(var t,r,n=[],a=0,o=e.length;a<o;++a)(t=e[a])&&("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),a&&r.set(n,o)),o},zs.prototype.render=function(e,t,r,n){var a=this.getConfigTags(n),o=this.parse(e,a),i=t instanceof Fs?t:new Fs(t,void 0);return this.renderTokens(o,i,r,e,n)},zs.prototype.renderTokens=function(e,t,r,n,a){for(var o,i,s,c="",l=0,u=e.length;l<u;++l)s=void 0,"#"===(i=(o=e[l])[0])?s=this.renderSection(o,t,r,n,a):"^"===i?s=this.renderInverted(o,t,r,n,a):">"===i?s=this.renderPartial(o,t,r,a):"&"===i?s=this.unescapedValue(o,t):"name"===i?s=this.escapedValue(o,t,a):"text"===i&&(s=this.rawValue(o)),void 0!==s&&(c+=s);return c},zs.prototype.renderSection=function(e,t,r,n,a){var o=this,i="",s=t.lookup(e[1]);if(s){if(Cs(s))for(var c=0,l=s.length;c<l;++c)i+=this.renderTokens(e[4],t.push(s[c]),r,n,a);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)i+=this.renderTokens(e[4],t.push(s),r,n,a);else if(Ss(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 o.render(e,t,r,a)})))&&(i+=s)}else i+=this.renderTokens(e[4],t,r,n,a);return i}},zs.prototype.renderInverted=function(e,t,r,n,a){var o=t.lookup(e[1]);if(!o||Cs(o)&&0===o.length)return this.renderTokens(e[4],t,r,n,a)},zs.prototype.indentPartial=function(e,t,r){for(var n=t.replace(/[^ \t]/g,""),a=e.split("\n"),o=0;o<a.length;o++)a[o].length&&(o>0||!r)&&(a[o]=n+a[o]);return a.join("\n")},zs.prototype.renderPartial=function(e,t,r,n){if(r){var a=this.getConfigTags(n),o=Ss(r)?r(e[1]):r[e[1]];if(null!=o){var i=e[6],s=e[5],c=e[4],l=o;0==s&&c&&(l=this.indentPartial(o,c,i));var u=this.parse(l,a);return this.renderTokens(u,t,r,l,n)}}},zs.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},zs.prototype.escapedValue=function(e,t,r){var n=this.getConfigEscape(r)||ks.escape,a=t.lookup(e[1]);if(null!=a)return"number"==typeof a&&n===ks.escape?String(a):n(a)},zs.prototype.rawValue=function(e){return e[1]},zs.prototype.getConfigTags=function(e){return Cs(e)?e:e&&"object"==typeof e?e.tags:void 0},zs.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!Cs(e)?e.escape:void 0};var ks={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){Ds.templateCache=e},get templateCache(){return Ds.templateCache}},Ds=new zs;ks.clearCache=function(){return Ds.clearCache()},ks.parse=function(e,t){return Ds.parse(e,t)},ks.render=function(e,t,r,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((Cs(a=e)?"array":typeof a)+'" was given as the first argument for mustache#render(template, view, partials)'));var a;return Ds.render(e,t,r,n)},ks.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return _s[e]}))},ks.Scanner=xs,ks.Context=Fs,ks.Writer=zs;const Us=()=>(Math.random()+1).toString(36).substring(7),Bs=Us(),Vs=e=>e.dynamicOfferResult?Object.entries({tagline:e.dynamicOfferResult.tagline,...e.dynamicOfferResult.custom??{}}).reduce(((e,[t,r])=>(t&&null!=r&&(e[t]=r),e)),{}):{},Gs=(e,t)=>(e.templateVariables??[]).reduce(((e,r)=>null==r.defaultValue||r.paymentOptionLevel!=t?e:{...e,[r.key]:r.defaultValue}),{}),js=e=>{window.Zephr||(window.Zephr={}),window.Zephr.forms||(window.Zephr.forms={}),window.Zephr.forms[e.formInstanceId]=e},qs=(e,t,r,n,a,o)=>{if(!a)return{scope:{},actions:{}};try{const i=new Function("state","form","scope",a),s=(t.customComponentState??{})[r.id??"_"];return i(t.dynamicOfferResult?{...s??{},dynamicOfferResult:Qn(t.dynamicOfferResult,e,t)}:s,n,o)}catch(e){return console.error("Error evaluating pre-render script",e),{scope:{error:e},actions:{}}}},Hs=(e,t,r)=>n=>{t.updateFormState({customComponentState:{...e.customComponentState??{},[r]:{...(e.customComponentState??{})[r]??{},...n??{}}}})},Ks=(e,t,r,n)=>(a,o)=>{let i;if(n){const e=r.dynamicOfferResult.products.find((e=>e.id===a)),t=e?.paymentPlans.find((e=>e.planId===o));i={slug:t.planId,productId:e.id,label:e.label,currencyCode:t.charges[0].prices[0].currency}}else i=vt(e).paymentOptions?.find((e=>e.productId===a&&e.slug===o));i?(t.updateFormState({paymentOption:i,serverErrors:[],billingAddress:{country:null,postalCode:null}}),t.completeSection()):console.warn(`No payment option exists for ${a} ${o}.`)},Ys=(e,t,r,n,a)=>{const o=!!vt(e).dynamicOffer?.id,i=(vt(e).paymentOptions??[]).map(((e,t)=>({slug:e.slug,productId:e.productId,label:e.label,price:e.price,currencyCode:e.currencyCode,formattedPrice:wn(e.price,e.currencyCode),index:t,...Gs(a,!0),...e.templateValues??{}})));return{formId:e.id,formInstanceId:Bs,paymentOptions:i,ref:`window.Zephr.forms['${Bs}']`,setState:Hs(t,r,n.id??"_"),getState:()=>r.getFormState(),selectPaymentOption:Ks(e,r,t,o)}},Ws={matches:e=>e.type===ze,create:(e,t,r,n)=>{const a=((e,t,r,n)=>{const a=(e.resolvedComponentTemplates??[]).find((e=>e.id===n.templateId));if(!a)return console.warn(`No component template found for id '${n.templateId}'`),"";const o=Ys(e,t,r,n,a),i={...Gs(a,!1),...n.templateValues??{},...Vs(t),zephrForm:o,zephrOutcomeId:e.outcomeId,zephrRuleId:e.ruleId},s=qs(e,t,n,o,a.preRenderScript,i),c={...i,...s.scope??{}};o.actions=s.actions??{},js(o);try{return ks.render(`\n ${a.css?`<style>${a.css}</style>`:""}\n ${a.html??""}\n `,c)}catch(e){return console.error("Error rendering mustache template",e),""}})(e,t,r,n);return{component:Ps,props:{html:a}}}};function Qs(e){let t,r,n,a=e[0].planLabel+"";return{c(){t=A("div"),r=A("h3"),n=E(a),O(t,"class","plan-label")},m(e,a){g(e,t,a),y(t,r),y(r,n)},p(e,t){1&t&&a!==(a=e[0].planLabel+"")&&_(n,a)},d(e){e&&h(t)}}}function Js(e){let t,r,n,a,o,i,s,c,l=e[0].amount+"";return{c(){t=A("hr"),r=C(),n=A("div"),a=A("div"),o=E(e[2]),i=C(),s=A("div"),c=E(l),O(t,"class","svelte-1ecrab7"),O(a,"class","info-label svelte-1ecrab7"),O(s,"class","info svelte-1ecrab7"),O(n,"class","info-row svelte-1ecrab7")},m(e,l){g(e,t,l),g(e,r,l),g(e,n,l),y(n,a),y(a,o),y(n,i),y(n,s),y(s,c)},p(e,t){4&t&&_(o,e[2]),1&t&&l!==(l=e[0].amount+"")&&_(c,l)},d(e){e&&(h(t),h(r),h(n))}}}function Zs(e){let t,r,n,a,o,i,s,c,l=e[0].nextBillingTime+"";return{c(){t=A("hr"),r=C(),n=A("div"),a=A("div"),o=E(e[3]),i=C(),s=A("div"),c=E(l),O(t,"class","svelte-1ecrab7"),O(a,"class","info-label svelte-1ecrab7"),O(s,"class","info svelte-1ecrab7"),O(n,"class","info-row svelte-1ecrab7")},m(e,l){g(e,t,l),g(e,r,l),g(e,n,l),y(n,a),y(a,o),y(n,i),y(n,s),y(s,c)},p(e,t){8&t&&_(o,e[3]),1&t&&l!==(l=e[0].nextBillingTime+"")&&_(c,l)},d(e){e&&(h(t),h(r),h(n))}}}function Xs(e){let t;return{c(){t=A("div"),O(t,"class","change-disabled-label svelte-1ecrab7")},m(r,n){g(r,t,n),t.innerHTML=e[4]},p(e,r){16&r&&(t.innerHTML=e[4])},d(e){e&&h(t)}}}function ec(e){let t,r,n,a,i,s,c,l,u,d,p,m,f,b,P,S,w=e[0].productLabel+"",I=e[0].planLabel&&Qs(e),R=e[0].amount&&e[2]&&Js(e),M=e[0].nextBillingTime&&e[3]&&Zs(e);p=new wt({props:{disabled:e[0].cannotBeChanged,text:e[1]??"Select",onClick:e[5]}});let $=e[0].cannotBeChanged&&Xs(e);return{c(){t=A("div"),r=A("div"),n=A("div"),a=A("div"),i=A("h2"),s=E(w),c=C(),I&&I.c(),l=C(),R&&R.c(),u=C(),M&&M.c(),d=C(),ie(p.$$.fragment),m=C(),$&&$.c(),O(a,"class","subscription-option-product-label"),O(n,"class","inner-box svelte-1ecrab7"),O(r,"class","subscription-option-box"),O(r,"aria-hidden","true"),O(r,"style",f=e[0].cannotBeChanged?"":"cursor: pointer;"),O(t,"class","subscription-option-wrapper svelte-1ecrab7")},m(f,h){var A;g(f,t,h),y(t,r),y(r,n),y(n,a),y(a,i),y(i,s),y(n,c),I&&I.m(n,null),y(n,l),R&&R.m(n,null),y(n,u),M&&M.m(n,null),y(n,d),se(p,n,null),y(n,m),$&&$.m(n,null),b=!0,P||(S=v(r,"click",(A=T((function(){o(e[5])&&e[5].apply(this,arguments)})),function(e){e.target===this&&A.call(this,e)})),P=!0)},p(t,[a]){e=t,(!b||1&a)&&w!==(w=e[0].productLabel+"")&&_(s,w),e[0].planLabel?I?I.p(e,a):(I=Qs(e),I.c(),I.m(n,l)):I&&(I.d(1),I=null),e[0].amount&&e[2]?R?R.p(e,a):(R=Js(e),R.c(),R.m(n,u)):R&&(R.d(1),R=null),e[0].nextBillingTime&&e[3]?M?M.p(e,a):(M=Zs(e),M.c(),M.m(n,d)):M&&(M.d(1),M=null);const o={};1&a&&(o.disabled=e[0].cannotBeChanged),2&a&&(o.text=e[1]??"Select"),32&a&&(o.onClick=e[5]),p.$set(o),e[0].cannotBeChanged?$?$.p(e,a):($=Xs(e),$.c(),$.m(n,null)):$&&($.d(1),$=null),(!b||1&a&&f!==(f=e[0].cannotBeChanged?"":"cursor: pointer;"))&&O(r,"style",f)},i(e){b||(te(p.$$.fragment,e),b=!0)},o(e){re(p.$$.fragment,e),b=!1},d(e){e&&h(t),I&&I.d(),R&&R.d(),M&&M.d(),ce(p),$&&$.d(),P=!1,S()}}}function tc(e,t,r){let{subscription:n}=t,{selectButtonText:a}=t,{amountLabel:o}=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,a=e.selectButtonText),"amountLabel"in e&&r(2,o=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,a,o,i,s,c]}class rc extends de{constructor(e){super(),ue(this,e,tc,ec,i,{subscription:0,selectButtonText:1,amountLabel:2,nextBillingDateLabel:3,noChangePlanMappingMessage:4,onSelect:5})}}function nc(e,t,r){const n=e.slice();return n[8]=t[r],n}function ac(e){let t,r;return t=new tn({}),{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 oc(e){let t;return{c(){t=A("div")},m(r,n){g(r,t,n),t.innerHTML=e[0]},p(e,r){1&r&&(t.innerHTML=e[0])},d(e){e&&h(t)}}}function ic(e){let t,r;function n(){return e[7](e[8])}return t=new rc({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,a){e=r;const o={};4&a&&(o.subscription=e[8]),32&a&&(o.selectButtonText=e[5]),2&a&&(o.noChangePlanMappingMessage=e[1]),8&a&&(o.amountLabel=e[3]),16&a&&(o.nextBillingDateLabel=e[4]),68&a&&(o.onSelect=n),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 sc(e){let t,r,n,a,o=null==e[2]&&ac(),i=null!=e[2]&&!e[2].length&&oc(e),s=ne(e[2]??[]),c=[];for(let t=0;t<s.length;t+=1)c[t]=ic(nc(e,s,t));const l=e=>re(c[e],1,1,(()=>{c[e]=null}));return{c(){t=A("div"),o&&o.c(),r=C(),i&&i.c(),n=C();for(let e=0;e<c.length;e+=1)c[e].c();O(t,"class","subscription-options-container svelte-1nzbr4y")},m(e,s){g(e,t,s),o&&o.m(t,null),y(t,r),i&&i.m(t,null),y(t,n);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);a=!0},p(e,[a]){if(null==e[2]?o?4&a&&te(o,1):(o=ac(),o.c(),te(o,1),o.m(t,r)):o&&(X(),re(o,1,1,(()=>{o=null})),ee()),null==e[2]||e[2].length?i&&(i.d(1),i=null):i?i.p(e,a):(i=oc(e),i.c(),i.m(t,n)),126&a){let r;for(s=ne(e[2]??[]),r=0;r<s.length;r+=1){const n=nc(e,s,r);c[r]?(c[r].p(n,a),te(c[r],1)):(c[r]=ic(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(!a){te(o);for(let e=0;e<s.length;e+=1)te(c[e]);a=!0}},o(e){re(o),c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)re(c[e]);a=!1},d(e){e&&h(t),o&&o.d(),i&&i.d(),b(c,e)}}}function cc(e,t,r){let{noSubscriptionsMessage:n}=t,{noChangePlanMappingMessage:a}=t,{subscriptions:o}=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,a=e.noChangePlanMappingMessage),"subscriptions"in e&&r(2,o=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,a,o,i,s,c,l,e=>l(e)]}class lc extends de{constructor(e){super(),ue(this,e,cc,sc,i,{noSubscriptionsMessage:0,noChangePlanMappingMessage:1,subscriptions:2,amountLabel:3,nextBillingDateLabel:4,selectButtonText:5,onSelect:6})}}const uc={matches:e=>e.type===ke,create:(e,t,r,n)=>({component:lc,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:e=>{r.updateFormState({selectedSubscription:e}),r.completeSection()}}})};function dc(e){let t,r,n,a,o,i,s,c=e[4]&&pc(e);return{c(){t=A("div"),r=A("div"),n=E(e[3]),a=C(),c&&c.c(),o=C(),i=A("hr"),O(r,"class","information"),O(t,"class","section"),O(i,"class","svelte-1wg9q7")},m(e,l){g(e,t,l),y(t,r),y(r,n),y(r,a),c&&c.m(r,null),g(e,o,l),g(e,i,l),s=!0},p(e,t){(!s||8&t)&&_(n,e[3]),e[4]?c?(c.p(e,t),16&t&&te(c,1)):(c=pc(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&&(h(t),h(o),h(i)),c&&c.d()}}}function pc(e){let t,r;return t=new ko({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,a,o,i,s,c,l=e[0].nextBillingTime+"";return{c(){t=A("div"),r=A("h3"),n=E(e[1]),a=C(),o=A("div"),i=E(l),s=C(),c=A("hr"),O(r,"class","svelte-1wg9q7"),O(o,"class","information"),O(t,"class","section"),O(c,"class","svelte-1wg9q7")},m(e,l){g(e,t,l),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),g(e,s,l),g(e,c,l)},p(e,t){2&t&&_(n,e[1]),1&t&&l!==(l=e[0].nextBillingTime+"")&&_(i,l)},d(e){e&&(h(t),h(s),h(c))}}}function fc(e){let t,r,n,a,o,i,s,c,l=e[0].amount+"";return{c(){t=A("div"),r=A("h3"),n=E(e[2]),a=C(),o=A("div"),i=E(l),s=C(),c=A("hr"),O(r,"class","svelte-1wg9q7"),O(o,"class","information"),O(t,"class","section"),O(c,"class","svelte-1wg9q7")},m(e,l){g(e,t,l),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),g(e,s,l),g(e,c,l)},p(e,t){4&t&&_(n,e[2]),1&t&&l!==(l=e[0].amount+"")&&_(i,l)},d(e){e&&(h(t),h(s),h(c))}}}function yc(e){let t,r,n,a,o,i,s,c,l,u,d,p,m=e[0].productLabel+"",b=e[6]&&dc(e),P="active"===e[0].status&&e[0].nextBillingTime&&mc(e),S=e[0].amount&&fc(e);return{c(){t=A("div"),r=A("div"),n=A("div"),a=A("h2"),o=E(m),s=C(),c=A("hr"),l=C(),b&&b.c(),u=C(),P&&P.c(),d=C(),S&&S.c(),O(a,"class",i=f("inactive"===e[0].status?"inactive":"")+" svelte-1wg9q7"),O(n,"class","section"),O(c,"class","svelte-1wg9q7"),O(r,"class","inner-box svelte-1wg9q7"),O(t,"class","subscription-list-item svelte-1wg9q7")},m(e,i){g(e,t,i),y(t,r),y(r,n),y(n,a),y(a,o),y(r,s),y(r,c),y(r,l),b&&b.m(r,null),y(r,u),P&&P.m(r,null),y(r,d),S&&S.m(r,null),p=!0},p(e,[t]){(!p||1&t)&&m!==(m=e[0].productLabel+"")&&_(o,m),(!p||1&t&&i!==(i=f("inactive"===e[0].status?"inactive":"")+" svelte-1wg9q7"))&&O(a,"class",i),e[6]?b?(b.p(e,t),64&t&&te(b,1)):(b=dc(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?P?P.p(e,t):(P=mc(e),P.c(),P.m(r,d)):P&&(P.d(1),P=null),e[0].amount?S?S.p(e,t):(S=fc(e),S.c(),S.m(r,null)):S&&(S.d(1),S=null)},i(e){p||(te(b),p=!0)},o(e){re(b),p=!1},d(e){e&&h(t),b&&b.d(),P&&P.d(),S&&S.d()}}}function gc(e,t,r){let{subscription:n}=t,{nextPaymentDateText:a}=t,{subscriptionRateText:o}=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,a=e.nextPaymentDateText),"subscriptionRateText"in e&&r(2,o=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,a,o,i,s,c,l,()=>c(n)]}class hc extends de{constructor(e){super(),ue(this,e,gc,yc,i,{subscription:0,nextPaymentDateText:1,subscriptionRateText:2,billingHistoryText:3,billingHistoryLink:4,onViewHistory:5,showBillingHistory:6})}}function bc(e,t,r){const n=e.slice();return n[13]=t[r],n}function Ac(e,t,r){const n=e.slice();return n[13]=t[r],n}function Pc(e){let t,r;return t=new tn({}),{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 Ec(e){let t;return{c(){t=A("div")},m(r,n){g(r,t,n),t.innerHTML=e[0]},p(e,r){1&r&&(t.innerHTML=e[0])},d(e){e&&h(t)}}}function Cc(e){let t,r;function n(){return e[12](e[13])}return t=new wt({props:{disabled:!1,text:e[8],onClick:n,noMargin:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,a){e=r;const o={};256&a&&(o.text=e[8]),1056&a&&(o.onClick=n),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 Sc(e){let t,r,n,a;t=new hc({props:{subscription:e[13],nextPaymentDateText:e[3],subscriptionRateText:e[4],billingHistoryText:e[1],billingHistoryLink:e[2],onViewHistory:e[11],showBillingHistory:"zuora-billing"!=e[7]}});let o="zuora-billing"!=e[7]&&"active"===e[13].status&&Cc(e);return{c(){ie(t.$$.fragment),r=C(),o&&o.c(),n=S()},m(e,i){se(t,e,i),g(e,r,i),o&&o.m(e,i),g(e,n,i),a=!0},p(e,r){const a={};32&r&&(a.subscription=e[13]),8&r&&(a.nextPaymentDateText=e[3]),16&r&&(a.subscriptionRateText=e[4]),2&r&&(a.billingHistoryText=e[1]),4&r&&(a.billingHistoryLink=e[2]),2048&r&&(a.onViewHistory=e[11]),128&r&&(a.showBillingHistory="zuora-billing"!=e[7]),t.$set(a),"zuora-billing"!=e[7]&&"active"===e[13].status?o?(o.p(e,r),160&r&&te(o,1)):(o=Cc(e),o.c(),te(o,1),o.m(n.parentNode,n)):o&&(X(),re(o,1,1,(()=>{o=null})),ee())},i(e){a||(te(t.$$.fragment,e),te(o),a=!0)},o(e){re(t.$$.fragment,e),re(o),a=!1},d(e){e&&(h(r),h(n)),ce(t,e),o&&o.d(e)}}}function vc(e){let t,r;return t=new hc({props:{subscription:e[13],nextPaymentDateText:e[3],subscriptionRateText:e[4],billingHistoryText:e[1],billingHistoryLink:e[2],onViewHistory:e[11],showBillingHistory:"zuora-billing"!=e[7]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};64&r&&(n.subscription=e[13]),8&r&&(n.nextPaymentDateText=e[3]),16&r&&(n.subscriptionRateText=e[4]),2&r&&(n.billingHistoryText=e[1]),4&r&&(n.billingHistoryLink=e[2]),2048&r&&(n.onViewHistory=e[11]),128&r&&(n.showBillingHistory="zuora-billing"!=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 Tc(e){let t,r,n,a,o,i=e[9]&&Pc(),s=!e[9]&&!e[5].length&&!e[6].length&&Ec(e),c=ne(e[5]),l=[];for(let t=0;t<c.length;t+=1)l[t]=Sc(Ac(e,c,t));const u=e=>re(l[e],1,1,(()=>{l[e]=null}));let d=ne(e[6]),p=[];for(let t=0;t<d.length;t+=1)p[t]=vc(bc(e,d,t));const m=e=>re(p[e],1,1,(()=>{p[e]=null}));return{c(){t=A("div"),i&&i.c(),r=C(),s&&s.c(),n=C();for(let e=0;e<l.length;e+=1)l[e].c();a=C();for(let e=0;e<p.length;e+=1)p[e].c();O(t,"class","subscriptions-list-container svelte-ewgdz9")},m(e,c){g(e,t,c),i&&i.m(t,null),y(t,r),s&&s.m(t,null),y(t,n);for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,null);y(t,a);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(t,null);o=!0},p(e,[o]){if(e[9]?i?512&o&&te(i,1):(i=Pc(),i.c(),te(i,1),i.m(t,r)):i&&(X(),re(i,1,1,(()=>{i=null})),ee()),e[9]||e[5].length||e[6].length?s&&(s.d(1),s=null):s?s.p(e,o):(s=Ec(e),s.c(),s.m(t,n)),3518&o){let r;for(c=ne(e[5]),r=0;r<c.length;r+=1){const n=Ac(e,c,r);l[r]?(l[r].p(n,o),te(l[r],1)):(l[r]=Sc(n),l[r].c(),te(l[r],1),l[r].m(t,a))}for(X(),r=c.length;r<l.length;r+=1)u(r);ee()}if(2270&o){let r;for(d=ne(e[6]),r=0;r<d.length;r+=1){const n=bc(e,d,r);p[r]?(p[r].p(n,o),te(p[r],1)):(p[r]=vc(n),p[r].c(),te(p[r],1),p[r].m(t,null))}for(X(),r=d.length;r<p.length;r+=1)m(r);ee()}},i(e){if(!o){te(i);for(let e=0;e<c.length;e+=1)te(l[e]);for(let e=0;e<d.length;e+=1)te(p[e]);o=!0}},o(e){re(i),l=l.filter(Boolean);for(let e=0;e<l.length;e+=1)re(l[e]);p=p.filter(Boolean);for(let e=0;e<p.length;e+=1)re(p[e]);o=!1},d(e){e&&h(t),i&&i.d(),s&&s.d(),b(l,e),b(p,e)}}}function Oc(e,t,r){let{noSubscriptionsMessage:n}=t,{billingHistoryText:a}=t,{billingHistoryLink:o}=t,{nextPaymentDateText:i}=t,{subscriptionRateText:s}=t,{subscriptions:c}=t,{inactiveSubscriptions:l}=t,{paymentProvider:u}=t,{changePaymentMethodText:d}=t,{loading:p}=t,{onChangePayment:m}=t,{onViewHistory:f}=t;return e.$$set=e=>{"noSubscriptionsMessage"in e&&r(0,n=e.noSubscriptionsMessage),"billingHistoryText"in e&&r(1,a=e.billingHistoryText),"billingHistoryLink"in e&&r(2,o=e.billingHistoryLink),"nextPaymentDateText"in e&&r(3,i=e.nextPaymentDateText),"subscriptionRateText"in e&&r(4,s=e.subscriptionRateText),"subscriptions"in e&&r(5,c=e.subscriptions),"inactiveSubscriptions"in e&&r(6,l=e.inactiveSubscriptions),"paymentProvider"in e&&r(7,u=e.paymentProvider),"changePaymentMethodText"in e&&r(8,d=e.changePaymentMethodText),"loading"in e&&r(9,p=e.loading),"onChangePayment"in e&&r(10,m=e.onChangePayment),"onViewHistory"in e&&r(11,f=e.onViewHistory)},[n,a,o,i,s,c,l,u,d,p,m,f,e=>m(e)]}class wc extends de{constructor(e){super(),ue(this,e,Oc,Tc,i,{noSubscriptionsMessage:0,billingHistoryText:1,billingHistoryLink:2,nextPaymentDateText:3,subscriptionRateText:4,subscriptions:5,inactiveSubscriptions:6,paymentProvider:7,changePaymentMethodText:8,loading:9,onChangePayment:10,onViewHistory:11})}}const Ic={matches:e=>e.type===Ue,create:(e,t,r,n)=>({component:wc,props:{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:e=>{r.updateFormState({selectedSubscription:e}),r.completeSection()},onViewHistory:e=>{r.updateFormState({selectedSubscription:e}),r.jumpToPartStart("billing-history")}}})};function _c(e){let t,r,n;return r=new wt({props:{disabled:!1,text:e[0],onClick:e[2]}}),{c(){t=A("div"),ie(r.$$.fragment),O(t,"class","change-payment-method-button-container")},m(e,a){g(e,t,a),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&&h(t),ce(r)}}}function Rc(e,t,r){let{text:n}=t,{onChangePayment:a}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"onChangePayment"in e&&r(1,a=e.onChangePayment)},[n,a,()=>a()]}class Mc extends de{constructor(e){super(),ue(this,e,Rc,_c,i,{text:0,onChangePayment:1})}}const $c={matches:e=>e.type===Ve,create:(e,t,r,n)=>({component:Mc,props:{text:n.text,onChangePayment:()=>r.completeSection()}})};function Lc(e){let t,r,n,a;return r=new ko({props:{text:e[0],onClick:e[2]}}),r.$on("linkClick",(function(){o(e[2])&&e[2].apply(this,arguments)})),{c(){t=A("div"),ie(r.$$.fragment),O(t,"class",n=f("event-link-wrapper "+(e[1]?"float-right":""))+" svelte-12vtv9v")},m(e,n){g(e,t,n),se(r,t,null),a=!0},p(o,[i]){e=o;const s={};1&i&&(s.text=e[0]),4&i&&(s.onClick=e[2]),r.$set(s),(!a||2&i&&n!==(n=f("event-link-wrapper "+(e[1]?"float-right":""))+" svelte-12vtv9v"))&&O(t,"class",n)},i(e){a||(te(r.$$.fragment,e),a=!0)},o(e){re(r.$$.fragment,e),a=!1},d(e){e&&h(t),ce(r)}}}function Nc(e,t,r){let{text:n}=t,{floatRight:a}=t,{onClick:o}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"floatRight"in e&&r(1,a=e.floatRight),"onClick"in e&&r(2,o=e.onClick)},[n,a,o]}class xc extends de{constructor(e){super(),ue(this,e,Nc,Lc,i,{text:0,floatRight:1,onClick:2})}}const Fc={matches:e=>e.type===De,create:(e,t,r,n)=>({component:xc,props:{text:n.text,floatRight:n.floatRight,onClick:()=>{r.onEvent(n.event)}}})};function zc(e){let t,r;return t=new ko({props:{text:e[2]}}),t.$on("linkClick",(function(){o(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 a={};4&n&&(a.text=e[2]),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 kc(e){let t,r,n,a,o,i,s;r=new Jt({props:{forInput:e[5],label:e[0]}});let c=e[3]&&zc(e);return{c(){t=A("div"),ie(r.$$.fragment),n=C(),a=A("div"),o=A("input"),i=C(),c&&c.c(),O(t,"class","bold-label svelte-121zkre"),O(o,"id",e[5]),O(o,"type","email"),O(o,"name","email"),o.value=e[1],o.readOnly=!0,O(o,"class","read-only-input svelte-121zkre"),O(a,"class","zephr-form-relative-container svelte-121zkre")},m(e,l){g(e,t,l),se(r,t,null),g(e,n,l),g(e,a,l),y(a,o),y(a,i),c&&c.m(a,null),s=!0},p(e,[t]){const n={};1&t&&(n.label=e[0]),r.$set(n),(!s||2&t&&o.value!==e[1])&&(o.value=e[1]),e[3]?c?(c.p(e,t),8&t&&te(c,1)):(c=zc(e),c.c(),te(c,1),c.m(a,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&&(h(t),h(n),h(a)),ce(r),c&&c.d()}}}function Dc(e,t,r){let{formKey:n}=t,{label:a}=t,{emailAddress:o}=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,a=e.label),"emailAddress"in e&&r(1,o=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)},[a,o,i,s,c,l,n]}class Uc extends de{constructor(e){super(),ue(this,e,Dc,kc,i,{formKey:6,label:0,emailAddress:1,updateLabel:2,updateEnabled:3,onUpdate:4})}}const Bc={matches:e=>e.type===Ge,create:(e,t,r,n)=>({component:Uc,props:{formKey:e.uniqueKey,emailAddress:t.readOnlyEmail??"",label:n.label,updateLabel:n.updateLinkLabel,updateEnabled:n.updateLinkEnabled,onUpdate:()=>r.jumpToPartStart("email-update")}})};function Vc(e){let t,r;return t=new ko({props:{text:e[1]}}),t.$on("linkClick",(function(){o(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 a={};2&n&&(a.text=e[1]),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 Gc(e){let t,r,n,a,o,i,s;r=new Jt({props:{forInput:e[4],label:e[0]}});let c=e[2]&&Vc(e);return{c(){t=A("div"),ie(r.$$.fragment),n=C(),a=A("div"),o=A("input"),i=C(),c&&c.c(),O(t,"class","bold-label svelte-121zkre"),O(o,"id",e[4]),O(o,"type","password"),o.value="••••••••••••••••",o.readOnly=!0,O(o,"class","read-only-input svelte-121zkre"),O(a,"class","zephr-form-relative-container svelte-121zkre")},m(e,l){g(e,t,l),se(r,t,null),g(e,n,l),g(e,a,l),y(a,o),y(a,i),c&&c.m(a,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=Vc(e),c.c(),te(c,1),c.m(a,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&&(h(t),h(n),h(a)),ce(r),c&&c.d()}}}function jc(e,t,r){let{formKey:n}=t,{label:a}=t,{updateLabel:o}=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,a=e.label),"updateLabel"in e&&r(1,o=e.updateLabel),"updateEnabled"in e&&r(2,i=e.updateEnabled),"onUpdate"in e&&r(3,s=e.onUpdate)},[a,o,i,s,c,n]}class qc extends de{constructor(e){super(),ue(this,e,jc,Gc,i,{formKey:5,label:0,updateLabel:1,updateEnabled:2,onUpdate:3})}}const Hc={matches:e=>e.type===je,create:(e,t,r,n)=>({component:qc,props:{formKey:e.uniqueKey,label:n.label,updateLabel:n.updateLinkLabel,updateEnabled:n.updateLinkEnabled,onUpdate:()=>r.jumpToPartStart("password-update")}})};function Kc(t){let r,n,a,o,i,s;return{c(){r=A("div"),n=A("div"),a=E(t[3]),o=C(),i=A("div"),s=E(t[2]),O(n,"class","zephr-form-ro-attribute-label"),O(i,"class","zephr-form-ro-attribute-value"),O(r,"class","zephr-form-ro-attribute")},m(e,t){g(e,r,t),y(r,n),y(n,a),y(r,o),y(r,i),y(i,s)},p(e,t){8&t&&_(a,e[3]),4&t&&_(s,e[2])},i:e,o:e,d(e){e&&h(r)}}}function Yc(e){let t,r,n;return r=new fo({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=A("div"),ie(r.$$.fragment),O(t,"class","zephr-form-ro-attribute")},m(e,a){g(e,t,a),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&&h(t),ce(r)}}}function Wc(e){let t,r,n,a;const o=[Yc,Kc],i=[];function s(e,t){return e[0]?0:1}return t=s(e),r=i[t]=o[t](e),{c(){r.c(),n=S()},m(e,r){i[t].m(e,r),g(e,n,r),a=!0},p(e,[a]){let c=t;t=s(e),t===c?i[t].p(e,a):(X(),re(i[c],1,1,(()=>{i[c]=null})),ee(),r=i[t],r?r.p(e,a):(r=i[t]=o[t](e),r.c()),te(r,1),r.m(n.parentNode,n))},i(e){a||(te(r),a=!0)},o(e){re(r),a=!1},d(e){e&&h(n),i[t].d(e)}}}function Qc(e,t,r){let{isCheckbox:n}=t,{slug:a}=t,{value:o}=t,{label:i}=t;return e.$$set=e=>{"isCheckbox"in e&&r(0,n=e.isCheckbox),"slug"in e&&r(1,a=e.slug),"value"in e&&r(2,o=e.value),"label"in e&&r(3,i=e.label)},[n,a,o,i]}class Jc extends de{constructor(e){super(),ue(this,e,Qc,Wc,i,{isCheckbox:0,slug:1,value:2,label:3})}}const Zc=["radio","select"],Xc={matches:e=>e.type===qe,create:(e,t,r,n)=>{const a=e.organisationConfiguration.schemaFields.find((e=>e.slug===n.slug));let o=(t.readOnlyAttributeValues??{})[n.slug]??"";o&&Zc.includes(a?.["input-type"])&&(o=(a?.["select-options"]??[]).find((e=>e.value===o))?.label??o);const i="checkbox"===a?.["input-type"];return{component:Jc,props:{value:o,slug:n.slug,label:n.label,isCheckbox:i}}}};function el(e){let t,r;return{c(){t=A("span"),r=E(e[2]),O(t,"class","current-device svelte-4jb3ht")},m(e,n){g(e,t,n),y(t,r)},p(e,t){4&t&&_(r,e[2])},d(e){e&&h(t)}}}function tl(e){let t,r;return t=new wt({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 rl(e){let t,r,n,a,o,i,s,c,l,u,d,p,m,f,b,P,S,v,T,w=e[0].deviceName+"",I=e[0].startDate+"",R=e[0].browser+"",M=e[0].country+"",$=e[0].requestingSession&&el(e),L=!e[0].requestingSession&&tl(e);return{c(){t=A("div"),r=A("div"),n=E(w),a=C(),$&&$.c(),o=C(),i=A("div"),s=E(e[3]),c=E(": "),l=E(I),u=C(),d=A("div"),p=E(R),m=C(),f=A("div"),b=E(M),P=C(),L&&L.c(),S=C(),v=A("hr"),O(r,"class","device-title svelte-4jb3ht"),O(i,"class","login-time svelte-4jb3ht"),O(d,"class","browser svelte-4jb3ht"),O(f,"class","country svelte-4jb3ht"),O(v,"class","svelte-4jb3ht"),O(t,"class","session-container svelte-4jb3ht")},m(e,h){g(e,t,h),y(t,r),y(r,n),y(r,a),$&&$.m(r,null),y(t,o),y(t,i),y(i,s),y(i,c),y(i,l),y(t,u),y(t,d),y(d,p),y(t,m),y(t,f),y(f,b),y(t,P),L&&L.m(t,null),y(t,S),y(t,v),T=!0},p(e,[a]){(!T||1&a)&&w!==(w=e[0].deviceName+"")&&_(n,w),e[0].requestingSession?$?$.p(e,a):($=el(e),$.c(),$.m(r,null)):$&&($.d(1),$=null),(!T||8&a)&&_(s,e[3]),(!T||1&a)&&I!==(I=e[0].startDate+"")&&_(l,I),(!T||1&a)&&R!==(R=e[0].browser+"")&&_(p,R),(!T||1&a)&&M!==(M=e[0].country+"")&&_(b,M),e[0].requestingSession?L&&(X(),re(L,1,1,(()=>{L=null})),ee()):L?(L.p(e,a),1&a&&te(L,1)):(L=tl(e),L.c(),te(L,1),L.m(t,S))},i(e){T||(te(L),T=!0)},o(e){re(L),T=!1},d(e){e&&h(t),$&&$.d(),L&&L.d()}}}function nl(e,t,r){let{deviceSession:n}=t,{onDeviceSignOut:a}=t,{currentDeviceLabel:o}=t,{loginTimeLabel:i}=t,{signOutLabel:s}=t;return e.$$set=e=>{"deviceSession"in e&&r(0,n=e.deviceSession),"onDeviceSignOut"in e&&r(1,a=e.onDeviceSignOut),"currentDeviceLabel"in e&&r(2,o=e.currentDeviceLabel),"loginTimeLabel"in e&&r(3,i=e.loginTimeLabel),"signOutLabel"in e&&r(4,s=e.signOutLabel)},[n,a,o,i,s,()=>a(n.id)]}class al extends de{constructor(e){super(),ue(this,e,nl,rl,i,{deviceSession:0,onDeviceSignOut:1,currentDeviceLabel:2,loginTimeLabel:3,signOutLabel:4})}}function ol(e,t,r){const n=e.slice();return n[7]=t[r],n}function il(e){let t,r;return t=new ir({props:{icon:cr,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 sl(e){let t;return{c(){t=A("div")},m(r,n){g(r,t,n),t.innerHTML=e[1]},p(e,r){2&r&&(t.innerHTML=e[1])},d(e){e&&h(t)}}}function cl(e){let t,r;return t=new al({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 ll(e){let t,r,n,a,o,i,s,c,l=null==e[0]&&il(),u=null!=e[0]&&!e[0].length&&sl(e),d=ne(e[0]??[]),p=[];for(let t=0;t<d.length;t+=1)p[t]=cl(ol(e,d,t));const m=e=>re(p[e],1,1,(()=>{p[e]=null}));return{c(){t=A("div"),r=A("div"),n=A("h1"),a=E(e[2]),o=C(),l&&l.c(),i=C(),u&&u.c(),s=C();for(let e=0;e<p.length;e+=1)p[e].c();O(n,"class","current-device"),O(r,"class","your-devices"),O(t,"class","devices-sessions-container")},m(e,d){g(e,t,d),y(t,r),y(r,n),y(n,a),y(t,o),l&&l.m(t,null),y(t,i),u&&u.m(t,null),y(t,s);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(t,null);c=!0},p(e,[r]){if((!c||4&r)&&_(a,e[2]),null==e[0]?l?1&r&&te(l,1):(l=il(),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=sl(e),u.c(),u.m(t,s)),121&r){let n;for(d=ne(e[0]??[]),n=0;n<d.length;n+=1){const a=ol(e,d,n);p[n]?(p[n].p(a,r),te(p[n],1)):(p[n]=cl(a),p[n].c(),te(p[n],1),p[n].m(t,null))}for(X(),n=d.length;n<p.length;n+=1)m(n);ee()}},i(e){if(!c){te(l);for(let e=0;e<d.length;e+=1)te(p[e]);c=!0}},o(e){re(l),p=p.filter(Boolean);for(let e=0;e<p.length;e+=1)re(p[e]);c=!1},d(e){e&&h(t),l&&l.d(),u&&u.d(),b(p,e)}}}function ul(e,t,r){let{devicesSessions:n}=t,{noDeviceSessionsMessage:a}=t,{yourDevicesLabel:o}=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,a=e.noDeviceSessionsMessage),"yourDevicesLabel"in e&&r(2,o=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,a,o,i,s,c,l]}class dl extends de{constructor(e){super(),ue(this,e,ul,ll,i,{devicesSessions:0,noDeviceSessionsMessage:1,yourDevicesLabel:2,currentDeviceLabel:3,loginTimeLabel:4,signOutLabel:5,onDeviceSignOut:6})}}const pl=async(e,t,r)=>{const n=await ml(e,t,r);return r.updateFormState({availableDeviceSessions:n}),n},ml=(e,t,r)=>pn("zephr/public/sessions/v1/sessions",{method:"GET"},r,null,!0).then((e=>e.ok?e.json():[])).then((e=>e.map((e=>({tenantId:e.tenantId,userId:e.userId,id:e.id,startDate:new Date(e.startDate).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),deviceName:e.deviceName,browser:e.browser,requestingSession:e.requestingSession,city:e.city??null,country:e.country??null,geoState:e.geoState??null,ipAddress:e.ipAddress??null}))))),fl=async(e,t,r,n)=>{try{return 200===(await pn(`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}},yl={matches:e=>e.type===Ke,create:(e,t,r,n)=>({component:dl,props:{yourDevicesLabel:n.yourDevicesLabel,noDeviceSessionsMessage:n.noDeviceSessionsMessage,devicesSessions:t.availableDeviceSessions,currentDeviceLabel:n.currentDeviceLabel,loginTimeLabel:n.loginTimeLabel,signOutLabel:n.signOutLabel,onDeviceSignOut:n=>{(async(e,t,r,n)=>{if(await fl(e,t,r,n))return console.log("Successfully signed out device."),pl(e,t,r);console.error("Failed to sign out device.")})(e,t,r,n)}}})};function gl(e){let t,r,n,a;return{c(){t=A("div"),r=E(e[2]),O(t,"class","sign-out-all svelte-1gdzu2p")},m(i,s){g(i,t,s),y(t,r),n||(a=v(t,"click",(function(){o(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(t,n){e=t,4&n&&_(r,e[2])},d(e){e&&h(t),n=!1,a()}}}function hl(t){let r,n=!t[1]&&gl(t);return{c(){n&&n.c(),r=S()},m(e,t){n&&n.m(e,t),g(e,r,t)},p(e,[t]){e[1]?n&&(n.d(1),n=null):n?n.p(e,t):(n=gl(e),n.c(),n.m(r.parentNode,r))},i:e,o:e,d(e){e&&h(r),n&&n.d(e)}}}function bl(e,t,r){let{onSignOutAllDevices:n}=t,{hidden:a}=t,{text:o}=t;return e.$$set=e=>{"onSignOutAllDevices"in e&&r(0,n=e.onSignOutAllDevices),"hidden"in e&&r(1,a=e.hidden),"text"in e&&r(2,o=e.text)},[n,a,o]}class Al extends de{constructor(e){super(),ue(this,e,bl,hl,i,{onSignOutAllDevices:0,hidden:1,text:2})}}const Pl=async(e,t,r)=>{try{return 200===(await pn("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}},El={matches:e=>e.type===Ye,create:(e,t,r,n)=>({component:Al,props:{hidden:t.availableDeviceSessions?.length<=1,text:n.text,onSignOutAllDevices:()=>{(async(e,t,r)=>{if(await Pl(e,t,r))return console.log("Successfully signed out of all devices."),pl(e,t,r);console.error("Failed to sign out of all devices.")})(e,t,r)}}})};function Cl(e,t,r){const n=e.slice();return n[5]=t[r],n}function Sl(e){let t,r,n,a,o,i=e[5].currency+"",s=e[5].subtotal+"",c=e[5].taxes&&vl(e);return{c(){t=E(i),r=C(),n=E(s),a=C(),c&&c.c(),o=S()},m(e,i){g(e,t,i),g(e,r,i),g(e,n,i),g(e,a,i),c&&c.m(e,i),g(e,o,i)},p(e,r){1&r&&i!==(i=e[5].currency+"")&&_(t,i),1&r&&s!==(s=e[5].subtotal+"")&&_(n,s),e[5].taxes?c?c.p(e,r):(c=vl(e),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null)},d(e){e&&(h(t),h(r),h(n),h(a),h(o)),c&&c.d(e)}}}function vl(e){let t,r,n=` ${e[5].taxes}`;return{c(){t=A("span"),r=E(n),O(t,"class","taxes svelte-1b6aeft")},m(e,n){g(e,t,n),y(t,r)},p(e,t){1&t&&n!==(n=` ${e[5].taxes}`)&&_(r,n)},d(e){e&&h(t)}}}function Tl(e){let t,r,n,a,o,i,s,c,l,u,d,p,m,f,b=e[5].date+"",P=e[5].period+"",S=e[5].currency+"",v=e[5].total+"",T=e[5].subtotal&&Sl(e);return{c(){t=A("div"),r=A("div"),n=E(b),a=C(),o=A("div"),i=E(P),s=C(),c=A("div"),T&&T.c(),l=C(),u=A("div"),d=E(S),p=C(),m=E(v),f=C(),O(r,"class","svelte-1b6aeft"),O(o,"class","svelte-1b6aeft"),O(c,"class","svelte-1b6aeft"),O(u,"class","svelte-1b6aeft"),O(t,"class","table-row svelte-1b6aeft")},m(e,h){g(e,t,h),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(t,s),y(t,c),T&&T.m(c,null),y(t,l),y(t,u),y(u,d),y(u,p),y(u,m),y(t,f)},p(e,t){1&t&&b!==(b=e[5].date+"")&&_(n,b),1&t&&P!==(P=e[5].period+"")&&_(i,P),e[5].subtotal?T?T.p(e,t):(T=Sl(e),T.c(),T.m(c,null)):T&&(T.d(1),T=null),1&t&&S!==(S=e[5].currency+"")&&_(d,S),1&t&&v!==(v=e[5].total+"")&&_(m,v)},d(e){e&&h(t),T&&T.d()}}}function Ol(t){let r,n,a,o,i,s,c,l,u,d,p,m,f,P,S,v=ne(t[0]??[]),T=[];for(let e=0;e<v.length;e+=1)T[e]=Tl(Cl(t,v,e));return{c(){r=A("div"),n=A("div"),a=A("div"),o=A("div"),i=E(t[1]),s=C(),c=A("div"),l=E(t[2]),u=C(),d=A("div"),p=E(t[3]),m=C(),f=A("div"),P=E(t[4]),S=C();for(let e=0;e<T.length;e+=1)T[e].c();O(o,"class","svelte-1b6aeft"),O(c,"class","svelte-1b6aeft"),O(d,"class","svelte-1b6aeft"),O(f,"class","svelte-1b6aeft"),O(a,"class","table-head svelte-1b6aeft"),O(n,"class","table svelte-1b6aeft"),O(r,"class","billing-history-container")},m(e,t){g(e,r,t),y(r,n),y(n,a),y(a,o),y(o,i),y(a,s),y(a,c),y(c,l),y(a,u),y(a,d),y(d,p),y(a,m),y(a,f),y(f,P),y(n,S);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(n,null)},p(e,[t]){if(2&t&&_(i,e[1]),4&t&&_(l,e[2]),8&t&&_(p,e[3]),16&t&&_(P,e[4]),1&t){let r;for(v=ne(e[0]??[]),r=0;r<v.length;r+=1){const a=Cl(e,v,r);T[r]?T[r].p(a,t):(T[r]=Tl(a),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&&h(r),b(T,e)}}}function wl(e,t,r){let{historyItems:n}=t,{dateLabel:a}=t,{periodLabel:o}=t,{subtotalLabel:i}=t,{totalLabel:s}=t;return e.$$set=e=>{"historyItems"in e&&r(0,n=e.historyItems),"dateLabel"in e&&r(1,a=e.dateLabel),"periodLabel"in e&&r(2,o=e.periodLabel),"subtotalLabel"in e&&r(3,i=e.subtotalLabel),"totalLabel"in e&&r(4,s=e.totalLabel)},[n,a,o,i,s]}class Il extends de{constructor(e){super(),ue(this,e,wl,Ol,i,{historyItems:0,dateLabel:1,periodLabel:2,subtotalLabel:3,totalLabel:4})}}const _l=[St,Dt,Nr,xr,Fr,jr,$a,Na,ka,io,uo,xo,qo,Zo,gi,Vi,Zi,rs,ns,ls,ys,hs,Ws,uc,Ic,$c,Fc,Bc,Hc,Xc,yl,El,{matches:e=>e.type===Be,create:(e,t,r)=>({component:Il,props:{historyItems:t.selectedSubscription?.transactionHistory,dateLabel:ha(e,"forms.billing.history.date","Date"),periodLabel:ha(e,"forms.billing.history.period","Period"),subtotalLabel:ha(e,"forms.billing.history.subtotal","Subtotal"),totalLabel:ha(e,"forms.billing.history.total","Total")}})}];function Rl(e){let r,n,a,o;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,ae(i,[oe(e[4](e[2].props,e[0],e[1]))]))),{props:n}}s&&(r=N(s,c(e)));let l=!1===e[2].isValid&&e[0].showFieldErrors&&Ml(e);return{c(){r&&ie(r.$$.fragment),n=C(),l&&l.c(),a=S()},m(e,t){r&&se(r,e,t),g(e,n,t),l&&l.m(e,t),g(e,a,t),o=!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=N(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?ae(i,[oe(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=Ml(e),l.c(),te(l,1),l.m(a.parentNode,a)):l&&(X(),re(l,1,1,(()=>{l=null})),ee())},i(e){o||(r&&te(r.$$.fragment,e),te(l),o=!0)},o(e){r&&re(r.$$.fragment,e),re(l),o=!1},d(e){e&&(h(n),h(a)),r&&ce(r,e),l&&l.d(e)}}}function Ml(t){let r,n;return r=new Vt({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 $l(e){let t,r,n=e[2]&&Rl(e);return{c(){n&&n.c(),t=S()},m(e,a){n&&n.m(e,a),g(e,t,a),r=!0},p(e,[r]){e[2]?n?(n.p(e,r),4&r&&te(n,1)):(n=Rl(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&&h(t),n&&n.d(e)}}}function Ll(e,t,r){let n,{form:a}=t,{formActions:o}=t,i="PAYMENT"===a.formType,{formState:s}=t,{sectionElement:c}=t;return e.$$set=e=>{"form"in e&&r(5,a=e.form),"formActions"in e&&r(6,o=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=_l.find((r=>r.matches(t,a,e.currentPart,e.currentSection)));if(!r)throw`Unknown element ${JSON.stringify(t)}`;const n=r.create(a,e,o,t.config);return((e,t,r,n)=>{if(void 0!==e?.isValid){const a={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},o=t.elementValidity.find((e=>e.partType===a.partType&&e.sectionType===a.sectionType&&e.sectionOrder===a.sectionOrder&&e.elementType===a.elementType&&e.elementOrder===a.elementOrder));o?.isValid!==a.isValid&&n.updateFormState({elementValidity:[...t.elementValidity.filter((e=>e!=o)),a]})}})(n,e,t,o),n})(s,c))},[s,c,n,i,(e,t,r)=>{const o=et(r.type,t),i=Xe[o];if(i){const e={error:Ze[o],errorMessage:ga(a,o),success:!1,formSlug:a.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:ga(a,o))}:e},a,o]}class Nl extends de{constructor(e){super(),ue(this,e,Ll,$l,i,{form:5,formActions:6,formState:0,sectionElement:1})}}const xl=e=>e.parts.flatMap((e=>e.sections)).flatMap((e=>e.elements)).filter((e=>e.type===we)).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}}),{}),Fl=()=>{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 zl(e,t,r){const n=e.slice();return n[20]=t[r],n}function kl(e){let t,r,n,a,o,i,s=ne(e[4].sectionFlow.extraElements.concat(e[0].currentSection.elements||[])),c=[];for(let t=0;t<s.length;t+=1)c[t]=Ul(zl(e,s,t));const l=e=>re(c[e],1,1,(()=>{c[e]=null}));let u=e[2]&&Bl(e);return{c(){t=A("form");for(let e=0;e<c.length;e+=1)c[e].c();r=C(),u&&u.c(),n=S(),O(t,"class","zephr-form-content svelte-1g2h5zh"),L(t,"zephr-payment-options-content",e[1])},m(e,s){g(e,t,s);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);g(e,r,s),u&&u.m(e,s),g(e,n,s),a=!0,o||(i=v(t,"submit",Gl),o=!0)},p(e,r){if(81&r){let n;for(s=ne(e[4].sectionFlow.extraElements.concat(e[0].currentSection.elements||[])),n=0;n<s.length;n+=1){const a=zl(e,s,n);c[n]?(c[n].p(a,r),te(c[n],1)):(c[n]=Ul(a),c[n].c(),te(c[n],1),c[n].m(t,null))}for(X(),n=s.length;n<c.length;n+=1)l(n);ee()}(!a||2&r)&&L(t,"zephr-payment-options-content",e[1]),e[2]?u?(u.p(e,r),4&r&&te(u,1)):(u=Bl(e),u.c(),te(u,1),u.m(n.parentNode,n)):u&&(X(),re(u,1,1,(()=>{u=null})),ee())},i(e){if(!a){for(let e=0;e<s.length;e+=1)te(c[e]);te(u),a=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)re(c[e]);re(u),a=!1},d(e){e&&(h(t),h(r),h(n)),b(c,e),u&&u.d(e),o=!1,i()}}}function Dl(t){let r;return{c(){r=A("div"),r.textContent=`${ga(t[4],Ze.UNKNOWN)}`},m(e,t){g(e,r,t)},p:e,i:e,o:e,d(e){e&&h(r)}}}function Ul(e){let t,r;return t=new Nl({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 Bl(e){let t,r;return t=new Vt({props:{error:ga(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=ga(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 Vl(t){let r,n,a,i,s,c,l,u,d=t[8]&&function(t){let r,n,a,o,i,s;return a=new ir({props:{icon:ur}}),{c(){r=A("div"),n=A("button"),ie(a.$$.fragment),O(n,"type","button"),O(n,"class","close-button svelte-1g2h5zh"),O(r,"class","close-button-container svelte-1g2h5zh")},m(e,c){g(e,r,c),y(r,n),se(a,n,null),o=!0,i||(s=v(n,"click",t[7]),i=!0)},p:e,i(e){o||(te(a.$$.fragment,e),o=!0)},o(e){re(a.$$.fragment,e),o=!1},d(e){e&&h(r),ce(a),i=!1,s()}}}(t);const p=[Dl,kl],m=[];return a=1,i=m[1]=p[1](t),{c(){r=A("div"),d&&d.c(),n=C(),i.c(),O(r,"class","svelte-1g2h5zh"),L(r,"zephr-form-max-width",!t[1]),L(r,"zephr-payment-form-max-width",!t[1])},m(a,i){var p;g(a,r,i),d&&d.m(r,null),y(r,n),m[1].m(r,null),c=!0,l||(p=s=ge.call(null,r,t[3]),u=p&&o(p.destroy)?p.destroy:e,l=!0)},p(e,[t]){e[8]&&d.p(e,t),i.p(e,t),s&&o(s.update)&&8&t&&s.update.call(null,e[3]),(!c||2&t)&&L(r,"zephr-form-max-width",!e[1]),(!c||2&t)&&L(r,"zephr-payment-form-max-width",!e[1])},i(e){c||(te(d),te(i),c=!0)},o(e){re(d),re(i),c=!1},d(e){e&&h(r),d&&d.d(),m[1].d(),l=!1,u()}}}const Gl=e=>e?.preventDefault();function jl(e,t,r){let n,a,o;k(Fl);let{formConfiguration:i}=t,s=(e=>({...e,parts:e.parts.sort(((e,t)=>Je(e.type).order-Je(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?nt(s.environment.previewInitialState,s):null;let d=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:xl(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 p=e=>(r(0,d=Object.freeze({...d,...e})),s.environment.debugLogging&&console.log(d),s.environment.onStateChanged(e,d),d),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!==d.isBusy&&p({isBusy:n});const a=l[r]>0;a!==d.isBusyByKey[r]&&p({isBusyByKey:{...d.isBusyByKey,[r]:a}})},f={updateFormState:p,attemptCompleteSection:()=>{((e,t,r)=>{if(r.getFormState().canAttemptSectionCompletion){const t=r.updateFormState({showFieldErrors:!1});return dt(e,t,r)}r.updateFormState({showFieldErrors:!0}),Promise.resolve()})(s,0,f)},completeSection:()=>{dt(s,d,f)},jumpToPartStart:e=>{ot(e,s,f)},jumpToSection:e=>{at(e,s,f)},onEvent:e=>{s.environment.previewMode||s.sectionFlow.eventHandlers[e]?.(s,d,f)},incrementRequestCount:(e=null)=>m(1,e),decrementRequestCount:(e=null)=>m(-1,e),getFormState:()=>d,apiUrlBase:s.environment.apiUrlBase};s.environment.previewMode&&s.environment.previewBundle?.setupPreviewMode(s,f),k((()=>f.onEvent(We.FORM_START)));let y=!1;const g=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,d);e!=d.canAttemptSectionCompletion&&p({canAttemptSectionCompletion:e})}1025&e.$$.dirty&&r(3,n=!y&&d.formPrerequisiteLoaded&&!d.formCannotBeActioned),1&e.$$.dirty&&r(2,a=d.serverErrors[0]&&0===(d.currentSection.elements||[]).filter((e=>et(e.type,d))).length?d.serverErrors[0]:null),1&e.$$.dirty&&r(1,o=[...Object.values(tt)].find((e=>e.type===d.currentSection.type))?.fullWidth)},[d,o,a,n,s,c,f,()=>r(10,y=!0),g,i,y]}class ql extends de{constructor(e){super(),ue(this,e,jl,Vl,i,{formConfiguration:9})}}const Hl={"--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 Kl(e){switch(e){case Et.CHANGE_SUBSCRIPTION:case Et.PAYMENT:return"zephr-payment-form";case Et.REGISTRATION:case Et.COMPLETE_REGISTRATION:return"zephr-registration-form";case Et.CONTACT:return"zephr-contact-form";case Et.DATA_CAPTURE:return"zephr-data-capture-form";default:return""}}const Yl=async e=>{if(!document.cookie?.includes("blaize_session"))return e.updateFormState({userSession:!1}),!1;let t;try{t=await pn("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},Wl=(e,t,r)=>t.parts.find((t=>t.type===e)).sections.flatMap((e=>e.elements)).filter((e=>e.type===we)).map((e=>e.config)).reduce(((e,t)=>r.userAttributes?{...e,[t.slug]:r.userAttributes[t.slug]}:{...e}),{}),Ql=(e,t,r)=>401===e?t.indexOf("verification is required")>-1?Ze.EMAIL_VERIFICATION_REQUIRED:t.indexOf("session must be authenticated")>-1?Ze.NO_AUTHENTICATED_SESSION:r.verificationCode?Ze.VERIFICATION_CODE_OR_PASSWORD_INCORRECT:Ze.LOGIN_FAILED:402===e&&t?.includes("this domain is not supported.")?Ze.BLOCKED_EMAIL_DOMAIN:409===e?Ze.USER_ALREADY_EXISTS:400===e&&t?.includes("The provided password is not strong enough")?Ze.PASSWORD_NOT_STRONG_ENOUGH:404===e&&t?.includes("account")?Ze.ACCOUNT_NOT_FOUND:404===e?Ze.USER_DOES_NOT_EXIST:429===e&&t?.includes("sessions limit reached")?Ze.TOO_MANY_SESSIONS:429===e?Ze.NO_ACCOUNT_ACCESS:r.socialSignin?Ze.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR:403===e&&t?.includes("Contact creation not enabled")?Ze.CONTACT_CREATION_NOT_ENABLED:Ze.UNKNOWN_LOGIN_REGISTER_ERROR,Jl=(e,t,r)=>{t.organisationConfiguration.ruleAnalyticsEnabled&&pn("zephr/public/rule-outcomes/v1/conversions",{method:"POST",bodyObject:{conversion:e,ruleId:t.ruleId,outcomeId:t.outcomeId}},r)},Zl="sharing_id",Xl=e=>{try{const t=new URL(e);return t.searchParams.has(Zl)?(t.searchParams.delete(Zl),t.href):e}catch{return e}},eu=(e,t)=>t,tu=(e,t)=>{const r=vt(e).autoApplyAttributes??{},n=window.Blaize?.preProcessFormData??eu,a={...Wl(Qe.ACCOUNT_VERIFICATION.type,e,t),...r},o=(()=>{try{const e=new URLSearchParams(window.location.search).get(Zl);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(a).length?a:void 0,account_membership_code:t.accountMembershipCode||void 0,...o??{}})},ru=async(e,t,r)=>{const n=tu(e,t),a=await pn("blaize/register",{method:"POST",bodyObject:n},r);return au(n,a,e,t,r)},nu=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),a=await pn("blaize/login",{method:"POST",bodyObject:n},r);return au(null,a,e,t,r)},au=async(e,t,r,n,a)=>{if(!t?.ok){n.verificationCode&&a.updateFormState({verificationCodeValid:!1});const e=(await t.json())?.message,r=Ql(t.status,e,n);return r===Ze.PASSWORD_NOT_STRONG_ENOUGH&&a.updateFormState({dynamicServerErrorMessage:e}),a.updateFormState({serverErrors:[r]}),Xe[r].jumpToPart&&a.jumpToPartStart(Xe[r].jumpToPart),Promise.resolve()}return n.userExists||((e,t)=>{Jl("REGISTERED",e,t)})(r,a),t.json().then((async t=>{const o=t.cookie?.includes("blaize_session");if(o)document.cookie=t.cookie;else if(!r.sectionFlow.canPartiallyRegister)return console.warn("No cookie returned from login/register endpoint - most likely incorrect form configuration."),a.updateFormState({serverErrors:[Ze.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===Pe))&&(a.updateFormState({verificationCodeValid:!0}),await Ha(r)),a.updateFormState({loginRegistrationComplete:!0}),a.onEvent(We.LOGIN_REGISTRATION_COMPLETE)}))},ou=async(e,t,r,n)=>{const a=Wl(e,t,r);if(0===Object.keys(a).length)return Promise.resolve();const o=await pn("blaize/profile",{method:"PATCH",bodyObject:a},n);if(!o.ok)throw n.updateFormState({serverErrors:[Ze.INVALID_USER_ATTRIBUTES]}),`Error submitting user attributes ${JSON.stringify(o)}`;return Promise.resolve()},iu=async(e,t,r)=>{if(!vt(e).changeSubscriptionMode)return;r.updateFormState({changeSubscriptionProrate:null});const n=wa(e.organisationConfiguration.paymentProvider).changeSubscriptionProrateCalculator;if(!n)return;const a=await n(e,t,r);r.updateFormState({changeSubscriptionProrate:a})},su=(e,t)=>0===e.length?[]:vt(t).paymentOptions.map((r=>{const n=(vt(t).changeSubscriptionPlanMappings??[]).find((e=>e.toPlan.planSlug===r.slug&&e.toPlan.productId===r.productId));if(!n)return;const a=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!==a.length?(a.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),cu=(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 a=n?.products?.flatMap((t=>t.paymentPlans.filter((r=>{const n=e.some((e=>e.planId===r.planId&&e.productId===t.id)),a=e.every((e=>r.charges.every((t=>t.prices?.some((t=>t.currency===e.currency))))));return!n&&a})).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===a.length,validChangeFromPlans:a,formPrerequisiteLoaded:!0})};let lu;const uu=new Promise((function(e){lu=e})),du={[We.FORM_START]:async(e,t,r)=>{const n=!!vt(e).dynamicOffer?.id||!!vt(e).dynamicOfferPreview;return n&&await(async(e,t)=>{const r=vt(e).dynamicOffer?.id,n=vt(e).dynamicOfferPreview;if(e.environment.previewMode)return void t.updateFormState({dynamicOfferResult:n});let a;try{a=document.cookie.match(/blaize_session=[0-9a-z-]+/)[0].substring(15)}catch{a=null}if(!r)throw Error("Missing Dynamic Offer id");const o=await pn("zephr/public/decisions/v2/dynamic-offers",{method:"POST",bodyObject:{dynamic_offer:{slug:r},session:a}},t),i=await o.json();t.updateFormState({dynamicOfferResult:i})})(e,r).catch((e=>{console.error("Error loading Dynamic Offer",e)})),Yl(r).then((async t=>{lu(lu),vt(e).changeSubscriptionMode&&(r.updateFormState({formCannotBeActioned:!t}),await(async(e,t,r,n)=>{const a=wa(e.organisationConfiguration.paymentProvider).existingSubscriptionLoader;if(!a)return console.error(`Existing subscription loader not configured for ${e.organisationConfiguration.paymentProvider}`),void r.updateFormState({formCannotBeActioned:!0});let o;try{o=await a(e,t,r,!0)}catch(e){return console.error("Unable to load subscriptions",e),void r.updateFormState({formCannotBeActioned:!0})}if(n)return void cu(o,t,r);const i=su(o,e),s=vt(e).subscriptionSelectionMode;0===o.length?console.warn("Not showing form as user has no active subscriptions"):0!==i.length||s||console.warn("Not showing form as no payment options can be actioned with the user's current subscriptions"),s&&(o=o.map((t=>(vt(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:o,formCannotBeActioned:0===i.length&&!s,validChangeFromPlans:i,formPrerequisiteLoaded:!0})})(e,r.getFormState(),r,n))}))},[We.LOGIN_REGISTRATION_COMPLETE]:(e,t,r)=>In(e,r.getFormState(),r).then((()=>Mn(e,r.getFormState(),r))).then((()=>r.jumpToPartStart(Qe.PAYMENT.type))),[We.SECTION_EMAIL_COMPLETE]:Va,[We.SECTION_PASSWORD_RESET_COMPLETE]:Wa,[We.SECTION_FORGOT_PASSWORD_COMPLETE]:Ka,[We.PART_PLAN_SELECT_COMPLETE]:(e,t,r)=>uu.then((async()=>{const n=r.getFormState();if(n.userSession||n.loginRegistrationComplete){const t=await In(e,n,r);Mn(e,t,r),iu(e,t,r),r.jumpToPartStart(Qe.PAYMENT.type)}else Mn(e,t,r),iu(e,t,r),r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)})),[We.PART_ACCOUNT_VERIFICATION_COMPLETE]:(e,t,r)=>(t.userExists?nu:ru)(e,t,r),[We.PART_PAYMENT_COMPLETE]:(e,t,r)=>ou(Qe.PAYMENT.type,e,t,r).then((()=>(null==t.mobilePaymentService?wa(e.organisationConfiguration.paymentProvider).completer:Ia(e.organisationConfiguration.paymentProvider).completer)(e,t,r).then((()=>{const t={error:null,errorMessage:"",success:!0,formSlug:e.id},n=JSON.stringify(t);window?.webkit?.messageHandlers?.messageHandler?.postMessage(n),window?.AndroidFormEventListener?.processFormEvent(n),((e,t)=>{Jl(vt(e).changeSubscriptionMode?vt(e).changeSubscriptionConversionName??"CHANGE_SUBSCRIPTION":"CUSTOMER",e,t)})(e,r),r.updateFormState({paymentProcessed:!0}),r.jumpToPartStart(Qe.SUCCESS.type)})).catch((e=>{console.error("Error completing payment",e),r.updateFormState({mobilePaymentService:null,serverErrors:[null==t.mobilePaymentService?Ze.PAYMENT_PROCESSING_ERROR:Ze.MOBILE_PAYMENT_PROCESSING_ERROR]})})))),[We.PART_SUCCESS_COMPLETE]:(e,t,r)=>ou(Qe.SUCCESS.type,e,t,r).then((()=>{window.location.reload()})),[We.SELECT_SUBSCRIPTION_COMPLETE]:(e,t,r)=>{const n=su([t.selectedSubscription],e);r.updateFormState({existingSubscriptions:[t.selectedSubscription],formCannotBeActioned:0===n.length,validChangeFromPlans:n,formPrerequisiteLoaded:!0}),r.jumpToPartStart(Qe.PLAN_SELECT.type)}},pu=[{type:tt.EMAIL.type,isDisplayedInProgressBar:!0,isVisible:e=>!vt(e).changeSubscriptionMode},{type:tt.LOGIN_PASSWORD.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>vt(e).usePassword&&t.userExists&&!t.socialSignin},{type:tt.PASSWORD_SETUP.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>vt(e).usePassword&&!t.userExists&&!t.socialSignin},{type:tt.SUCCESS.type,isDisplayedInProgressBar:!1,isVisible:()=>!0},{type:tt.PASSWORD_RESET.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>vt(e).usePassword&&t.forgotPassword},{type:tt.FORGOT_PASSWORD.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>vt(e).usePassword&&t.forgotPassword},{type:tt.VERIFICATION_CODE_LOGIN.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(t.userExists&&(vt(e).useVerificationCodes||t.socialSignin))??!1},{type:tt.VERIFICATION_CODE_REGISTRATION.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(!t.userExists&&(vt(e).useVerificationCodes||t.emailIsContact))??!1},{type:tt.REGISTRATION_CUSTOM.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>!t.userExists}],mu={extraElements:[{type:Se,order:-1}],sectionVisibilities:pu,eventHandlers:du,canAttemptSectionCompletion:(e,t)=>{const r=wa(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===Ce&&r.canAttemptIncompletePaymentFormSubmission&&t.paymentProviderFormLoaded))).some((e=>!e.isValid))},canDismissFormManually:e=>vt(e).changeSubscriptionMode,formRequiresPrerequisiteLoading:e=>vt(e).changeSubscriptionMode},fu={extraElements:[],eventHandlers:{[We.LOGIN_REGISTRATION_COMPLETE]:async(e,t,r)=>{const n=vt(e),a=Ba(e);return!t.userExists&&(a||e.organisationConfiguration.requireEmailVerfication&&!n.useVerificationCodes)?(await Ua("register",t.emailAddress,r),await at(tt.EMAIL_VERIFIED.type,e,r),Promise.resolve()):(n.showSuccessOnFormCompletion&&!t.userExists?await at(tt.SUCCESS.type,e,r):(window.location.href=Xl(window.location.href),window.flowpoint&&window.flowpoint.track("Registration/Login Form Submitted")),Promise.resolve())},[We.SECTION_EMAIL_COMPLETE]:Va,[We.SECTION_PASSWORD_RESET_COMPLETE]:Wa,[We.SECTION_FORGOT_PASSWORD_COMPLETE]:Ka,[We.PART_ACCOUNT_VERIFICATION_COMPLETE]:(e,t,r)=>(t.userExists?nu:ru)(e,t,r),[We.PART_SUCCESS_COMPLETE]:()=>(window.location.href=Xl(window.location.href),window.flowpoint&&window.flowpoint.track("Registration/Login Form Submitted"),Promise.resolve())},sectionVisibilities:[{type:tt.EMAIL.type,isDisplayedInProgressBar:!0,isVisible:()=>!0},{type:tt.LOGIN_PASSWORD.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>vt(e).usePassword&&t.userExists&&!t.socialSignin},{type:tt.PASSWORD_SETUP.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>vt(e).usePassword&&!t.userExists&&!t.socialSignin},{type:tt.PASSWORD_RESET.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>vt(e).usePassword&&t.forgotPassword},{type:tt.FORGOT_PASSWORD.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>vt(e).usePassword&&t.forgotPassword},{type:tt.VERIFICATION_CODE_LOGIN.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(t.userExists&&(vt(e).useVerificationCodes||t.socialSignin))??!1},{type:tt.VERIFICATION_CODE_REGISTRATION.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>(!t.userExists&&(vt(e).useVerificationCodes||t.emailIsContact))??!1},{type:tt.REGISTRATION_CUSTOM.type,isDisplayedInProgressBar:!0,isVisible:(e,t)=>!t.userExists},{type:tt.SUCCESS.type,isDisplayedInProgressBar:!1,isVisible:()=>!0},{type:tt.EMAIL_VERIFIED.type,isDisplayedInProgressBar:!1,isVisible:e=>e.organisationConfiguration.requireEmailVerfication&&!vt(e).useVerificationCodes},{type:tt.PASSWORDLESS_VIA_LOGIN_LINK.type,isDisplayedInProgressBar:!1,isVisible:(e,t)=>t.userExists&&Ba(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},yu=(e,t)=>t,gu=async(e,t,r)=>{const n=((e,t)=>{const r=vt(e).autoApplyAttributes??{},n=window.Blaize?.preProcessFormData??yu,a={...Wl(Qe.CONTACT_VERIFICATION.type,e,t),...r};return n(e.id,{identifiers:{email_address:t.emailAddress},attributes:Object.keys(a).length?a:void 0})})(e,t);return(async(e,t,r,n)=>{if(e?.ok)return Jl("CONTACT",t,n),Promise.resolve();const a=(await e.json())?.message,o=Ql(e.status,a,r);return n.updateFormState({serverErrors:[o]}),Xe[o].jumpToPart&&n.jumpToPartStart(Xe[o].jumpToPart),Promise.resolve()})(await pn("zephr/createContact",{method:"POST",bodyObject:n},r),e,t,r)},hu={extraElements:[],eventHandlers:{[We.FORM_START]:async(e,t,r)=>{await Yl(r)},[We.PART_CONTACT_VERIFICATION_COMPLETE]:async(e,t,r)=>{const n=vt(e);try{await gu(e,t,r),n.showSuccessOnFormCompletion?await ot(Qe.SUCCESS.type,e,r):window.location.reload()}catch(t){console.error(t),await at(tt.EMAIL.type,e,r)}}},sectionVisibilities:[{type:tt.EMAIL.type,isDisplayedInProgressBar:!1,isVisible:()=>!0},{type:tt.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},bu=(e,t)=>t,Au=async(e,t,r,n)=>{const a=((e,t,r)=>{const n=window.Blaize?.preProcessFormData??bu,a=Wl(r,e,t),o=vt(e).autoApplyAttributes??{};return n(e.id,{...a,...o,...t.createPassword&&{"blaize-validator":t.createPassword}})})(e,t,n);return(async(e,t,r,n)=>{if(e?.ok)return t.formType==Et.DATA_CAPTURE&&Jl("Data Captured",t,n),t.formType==Et.COMPLETE_REGISTRATION&&Jl("Completed Registration",t,n),Promise.resolve(!0);const a=(await e.json())?.message,o=Ql(e.status,a,r);return n.updateFormState({serverErrors:[o]}),Promise.resolve(!1)})(await pn("blaize/profile",{method:"PATCH",bodyObject:a},r),e,t,r)},Pu={extraElements:[],eventHandlers:{[We.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(),a=[];try{const o=await pn("blaize/profile",{method:"GET"},r);if(o?.ok){const i=await o.json();vt(e).autoApplyAttributes&&Object.keys(vt(e).autoApplyAttributes).forEach((e=>{Object.prototype.hasOwnProperty.call(i,e)&&delete i[e]})),n.forEach((e=>{Object.prototype.hasOwnProperty.call(i,e)&&a.push(e)})),a.length==Object.keys(t.userAttributes).length&&e.formType!=Et.COMPLETE_REGISTRATION?console.warn("Not showing form as user has no attributes to update"):r.updateFormState({formPrerequisiteLoaded:!0,hideIfSetAttributes:a,userAttributes:{...i}})}}catch(e){console.error(e)}},[We.PART_PROFILE_UPDATE_COMPLETE]:async(e,t,r)=>{const n=vt(e);try{await Au(e,t,r,Qe.PROFILE_UPDATE.type),n.showSuccessOnFormCompletion?await ot(Qe.SUCCESS.type,e,r):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},Eu=async(e,t,r)=>{r.incrementRequestCount();try{await Promise.all([Su(r),vu(r)])}finally{r.decrementRequestCount()}},Cu=async(e,t,r,n)=>{r.updateFormState({emailAddress:null,password:null,createPassword:null,passwordIsValid:null,verificationCode:null,currentPassword:null,serverErrors:[]}),n?await Eu(0,0,r):Eu(0,0,r),await ot(Qe.PROFILE_UPDATE.type,e,r)},Su=async e=>{try{const t=await pn("blaize/profile",{method:"GET"},e),r=await t.json();e.updateFormState({readOnlyAttributeValues:r})}catch(e){console.error("Unable to load user profile",e)}},vu=async e=>{try{const t=await pn("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)}},Tu={extraElements:[],eventHandlers:{[We.FORM_START]:Eu,[We.GO_BACK]:async(e,t,r)=>Cu(e,t,r,!1),[We.UPDATE]:async(e,t,r)=>{await ot(Qe.ATTRIBUTES_UPDATE.type,e,r)},[We.PART_EMAIL_UPDATE_COMPLETE]:async(e,t,r)=>{const n=await(async(e,t)=>{try{const r=!e.password,n={current_identifiers:{email_address:e.readOnlyEmail},new_identifiers:{email_address:e.emailAddress},...r?{}:{validators:{password:e.password}}};return!!(await pn(r?"blaize/users/update-email":"zephr/users/update-email",{method:"POST",bodyObject:n},t)).ok||(t.updateFormState({serverErrors:[Ze.UNKNOWN]}),!1)}catch(e){return t.updateFormState({serverErrors:[Ze.UNKNOWN]}),!1}})(t,r);n&&await ot(Qe.EMAIL_UPDATE_OTP.type,e,r)},[We.VERIFY_EMAIL_UPDATE_OTP]:async(e,t,r)=>{const n=await(async(e,t,r)=>(r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0}),(await pn(`zephr/users/update-email/${t.verificationCode}`,{method:"POST",bodyObject:{current_identifiers:{email_address:t.readOnlyEmail}}},r)).ok?(await Ha(e),r.decrementRequestCount(),!0):(r.updateFormState({serverErrors:[Ze.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),!1)))(e,t,r);n&&await Cu(e,t,r,!0)},[We.PART_PASSWORD_UPDATE_COMPLETE]:async(e,t,r)=>{const n=await(async(e,t)=>{try{const r={current_validators:{password:e.currentPassword},new_validators:{password:e.createPassword}};return!!(await pn("zephr/users/change-password",{method:"POST",bodyObject:r},t)).ok||(t.updateFormState({serverErrors:[Ze.UNKNOWN]}),!1)}catch(e){return t.updateFormState({serverErrors:[Ze.UNKNOWN]}),!1}})(t,r);n&&await ot(Qe.PASSWORD_UPDATE_OTP.type,e,r)},[We.VERIFY_PASSWORD_UPDATE_OTP]:async(e,t,r)=>{const n=await(async(e,t,r)=>(r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0}),(await pn(`zephr/users/change-password/${t.verificationCode}`,{method:"GET"},r)).ok?(await Ha(e),r.decrementRequestCount(),!0):(r.updateFormState({serverErrors:[Ze.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),!1)))(e,t,r);n&&await Cu(e,t,r,!0)},[We.PART_ATTRIBUTES_UPDATE_COMPLETE]:async(e,t,r)=>{await Au(e,t,r,Qe.ATTRIBUTES_UPDATE.type)&&await Cu(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},Ou=async(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider)?.existingSubscriptionLoader;n||console.error(`Existing subscription loader not configured for ${e.organisationConfiguration.paymentProvider}`);const a=n?await n(e,t,r,!1):[];return r.updateFormState({existingSubscriptions:a}),a},wu={extraElements:[],eventHandlers:{[We.FORM_START]:async(e,t,r)=>{await Ou(e,t,r)},[We.SELECT_SUBSCRIPTION_COMPLETE]:async(e,t,r)=>{try{(await pn(`zephr/subscriptions/${t.selectedSubscription.externalId}`,{method:"DELETE"},r)).ok?r.jumpToPartStart(Qe.SUCCESS.type):r.updateFormState({serverErrors:[Ze.UNKNOWN]})}catch{r.updateFormState({serverErrors:[Ze.UNKNOWN]})}},[We.GO_BACK]:async(e,t,r)=>(r.jumpToPartStart(Qe.SELECT_SUBSCRIPTION.type),Promise.resolve())},sectionVisibilities:[],canAttemptSectionCompletion:()=>!0,canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1},Iu={[We.FORM_START]:async(e,t,r)=>{await Ou(e,t,r)},[We.GO_BACK]:async(e,t,r)=>(r.jumpToPartStart(Qe.LIST_SUBSCRIPTIONS.type),Promise.resolve()),[We.PART_CHANGE_PAYMENT_COMPLETE]:async(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider).changePaymentCompleter;await n(e,t,r).then((()=>{r.jumpToPartStart(Qe.SUCCESS.type)})).catch((e=>{console.error("Error completing payment change",e),r.updateFormState({mobilePaymentService:null,serverErrors:[null==t.mobilePaymentService?Ze.PAYMENT_PROCESSING_ERROR:Ze.MOBILE_PAYMENT_PROCESSING_ERROR]})}))}},_u={extraElements:[{type:Se,order:-1}],eventHandlers:Iu,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},Ru={extraElements:[],eventHandlers:{[We.FORM_START]:async(e,t,r)=>{await pl(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},Mu={[Et.PAYMENT]:mu,[Et.CHANGE_SUBSCRIPTION]:mu,[Et.REGISTRATION]:fu,[Et.CONTACT]:hu,[Et.DATA_CAPTURE]:Pu,[Et.COMPLETE_REGISTRATION]:Pu,[Et.UPDATE_PROFILE]:Tu,[Et.CANCEL_SUBSCRIPTION]:wu,[Et.LIST_SUBSCRIPTIONS]:_u,[Et.DEVICES]:Ru,[Et.EMPTY]:{extraElements:[],sectionVisibilities:[],eventHandlers:{},canAttemptSectionCompletion:()=>!0,canDismissFormManually:()=>!1,formRequiresPrerequisiteLoading:()=>!1}},$u=Date.parse("2024-04-19T00:00:00Z"),Lu={"--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"},Nu=(e,t)=>(t||0)<$u?((e,t)=>`${e};\n${Object.entries(t).map((([e,t])=>`${e}: ${t}`)).join(";\n")}`)(e,Lu):e;function xu(e){let t,r,n,a;return r=new ql({props:{formConfiguration:e[2]}}),{c(){t=A("div"),ie(r.$$.fragment),O(t,"id",e[2].formId),O(t,"class",n=f(`zephr-form ${Kl(e[0])}`)+" svelte-1ta1qs8"),O(t,"style",e[1])},m(e,n){g(e,t,n),se(r,t,null),a=!0},p(e,[r]){(!a||1&r&&n!==(n=f(`zephr-form ${Kl(e[0])}`)+" svelte-1ta1qs8"))&&O(t,"class",n)},i(e){a||(te(r.$$.fragment,e),a=!0)},o(e){re(r.$$.fragment,e),a=!1},d(e){e&&h(t),ce(r)}}}function Fu(e,t,r){let{formType:n}=t,{formConfig:a}=t,{formTypeConfig:o}=t,{organisationConfig:i}=t,{environment:s={}}=t;const c={apiUrlBase:"",onStateChanged:()=>{},debugLogging:!1,reduceDelays:!1,previewMode:!1,...s,...a?._spikeApiUrl?{apiUrlBase:a._spikeApiUrl}:{}},l=JSON.parse(i.siteStyles??"{}"),u=Nu((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({...Hl,...t}).map((([e,t])=>`${e}: ${t}`)).join(";\n")})(l),a.timestamp),d=(e=>{const t=Mu[e];if(!t)throw`No flow for form type ${e}`;return t})(n),p=ba(a.languagePack,a),m=ba(a.languagePack,o),f=ba(a.languagePack,i),y=Us(),g=n===Et.PAYMENT,h={environment:c,formType:n,...p,organisationConfiguration:f,typeConfiguration:m,sectionFlow:d,uniqueKey:y,formId:g?"zephr-payment-form-root":`zephr-form-root-${y}`};return e.$$set=e=>{"formType"in e&&r(0,n=e.formType),"formConfig"in e&&r(3,a=e.formConfig),"formTypeConfig"in e&&r(4,o=e.formTypeConfig),"organisationConfig"in e&&r(5,i=e.organisationConfig),"environment"in e&&r(6,s=e.environment)},[n,u,h,a,o,i,s]}class zu extends de{constructor(e){super(),ue(this,e,Fu,xu,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 zu({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-5zUW2i" 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":1730567122646}), "id": "U-C45BXw", "outcomeId": "graph/1#2,graph/1#3,graph/1#5,graph/2#1,graph/2#39,graph/2#49,graph/2#30,graph/2#33,graph/2#52,graph/2#54,graph/2#56,graph/2#58,graph/2#59,transformation/14", "ruleId": "H-article-test-338", "resolvedComponentTemplates": [], "languagePack": {"entries":{"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.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.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.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.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!","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_1NZw08JfmyebVn8Bjn2hNf4x","label":"WrapPro Digital - $14.99 (USD)/Month ","description":"<h3 dir=\"ltr\"><strong>Monthly Plan</strong></h3>\n<p><strong> </strong></p>\n<h1 dir=\"ltr\">$3.75 / week</h1>\n<pre dir=\"ltr\"><br>Billed as $14.99 every 4 weeks. Cancel anytime.</pre>","selectButtonText":"Select Plan","currencyCode":"USD","price":14.99,"productId":"wrappro","fieldOrder":1,"paymentProvider":"stripe","billingFrequency":1,"billingFrequencyUnit":"MONTH","type":"REGULAR","disclaimerMessage":"","descriptionMode":"VISUAL","templateValues":{},"environment":"LIVE","virtualEnvironment":"live","product_sharing_limit":0},{"slug":"price_1No9lcJfmyebVn8BmCyIa3Qw","productId":"wrappro-digital-print","price":149,"currencyCode":"USD","type":"REGULAR","highlightedText":"Most Popular","selectButtonText":"<<<forms.payment.payment-option-select-button|Select Plan>>>","description":"<h3 dir=\"ltr\"><strong>Annual Plan</strong></h3>\n<p> </p>\n<h1 dir=\"ltr\">$3.00 / week</h1>\n<pre dir=\"ltr\"><br>Billed Annually as $149.99. Cancel anytime.</pre>\n<p> </p>","label":"WrapPro Digital + Print - $149 (USD)/Year","fieldOrder":0,"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":[{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"account_subscription","visibility":"PUBLIC","context":null,"label":"Subscription Status","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"address-1","visibility":"PUBLIC","context":null,"label":"Address 1","required":false,"internal-description":"Address 1","public-description":"Address 1","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"address-2","visibility":"PUBLIC","context":null,"label":"Address 2","required":false,"internal-description":"Address 2","public-description":"Address 2","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"awards-season","visibility":"PUBLIC","context":null,"label":"Awards Season","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"city","visibility":"PUBLIC","context":null,"label":"City","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"company","visibility":"PUBLIC","context":null,"label":"Company","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"country","visibility":"PUBLIC","context":null,"label":"Country","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"first-name","visibility":"PUBLIC","context":null,"label":"First Name","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"first-take","visibility":"PUBLIC","context":null,"label":"First Take","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"gender","visibility":"PUBLIC","context":null,"label":"Gender","required":false,"internal-description":"gender","public-description":"gender","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"geocountry","visibility":"PUBLIC","context":null,"label":"GeoCountry","required":false,"internal-description":"Used for Geo Targeting","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"geostate","visibility":"PUBLIC","context":null,"label":"GeoState","required":false,"internal-description":"Used for GeoTargeting","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"job","visibility":"PUBLIC","context":null,"label":"Job Title","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"last-name","visibility":"PUBLIC","context":null,"label":"Last Name","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"news-highlights","visibility":"PUBLIC","context":null,"label":"Breaking News","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"product","visibility":"PUBLIC","context":null,"label":"Product","required":false,"internal-description":"Product","public-description":"Product","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"province","visibility":"PUBLIC","context":null,"label":"Province","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"screenings-events","visibility":"PUBLIC","context":null,"label":"Screenings & Events","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"state","visibility":"PUBLIC","context":null,"label":"US State","required":false,"internal-description":"","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,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"the-weekender","visibility":"PUBLIC","context":null,"label":"The Weekender","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"tv-watch-list","visibility":"PUBLIC","context":null,"label":"TV Watch List","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"wrapwomen","visibility":"PUBLIC","context":null,"label":"WrapWomen","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"zipcode","visibility":"PUBLIC","context":null,"label":"Zipcode","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false}],"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}, })); </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/14', outcomeLabel: 'Group C ($2.50/wk)' }; </script> <footer class="entry-footer container container--entry-content has-global-padding"> <div class="entry-footer__inner"> <div class="wp-block-the-wrap-author-bios"> <div class="wp-block-the-wrap-author-bios__entry"><h2 class="wp-block-the-wrap-author-bios__entry-name"><a href="https://www.thewrap.com/author/lucas-manfredithewrap-com/">Lucas Manfredi</a></h2><div class="wp-block-the-wrap-author-bios__entry-excerpt">Lucas Manfredi joined TheWrap in November 2022 after four years at Fox Business. He can be reached at lucas.manfredi@thewrap.com.</div></div></div> </div> </footer> </div> <aside class="container container--site"> <div data-hx-trigger="revealed" data-hx-get="https://www.thewrap.com/dispatch/lazy-render-block/" data-hx-swap="outerHTML" data-hx-vals="{"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJibGsiOiI8IS0tIHdwOnRoZS13cmFwL3F1ZXJ5IHtcIm5hbWVcIjpcImFydGljbGUtdHJlbmRpbmdcIn0gLS0-XG5cdFx0PCEtLSB3cDp0aGUtd3JhcC9zZWN0aW9uLWhlYWRpbmcge1wiY2xhc3NOYW1lXCI6XCJpcy1zdHlsZS1taW5pbWFsLXRvLWJsb2NrXCJ9IC0tPlxuXHRcdFx0PCEtLSB3cDp0aGUtd3JhcC9xdWVyeS1oZWFkaW5nIC8tLT5cblx0XHQ8IS0tIC93cDp0aGUtd3JhcC9zZWN0aW9uLWhlYWRpbmcgLS0-XG5cblx0XHQ8IS0tIHdwOnBvc3QtdGVtcGxhdGUge1wiY2xhc3NOYW1lXCI6XCJ3cC1ibG9jay1wb3N0LXRlbXBsYXRlXFx1MDAyZFxcdTAwMmRncmlkLTQtY29sXCJ9IC0tPlxuXHRcdFx0PGRpdiBjbGFzcz1cInBvc3QtaXRlbS0tZm91ci1hY3Jvc3NcIj5cblx0XHRcdFx0PCEtLSB3cDpwb3N0LXRpdGxlIHtcImlzTGlua1wiOnRydWUsXCJsZXZlbFwiOjN9IC8tLT5cblxuXHRcdFx0XHQ8IS0tIHdwOnRlbXBsYXRlLXBhcnQge1wic2x1Z1wiOlwicG9zdC1pdGVtLW1ldGFcIixcImNsYXNzTmFtZVwiOlwicG9zdC10ZW1wbGF0ZV9fbWV0YS13cmFwcGVyXCIsXCJ0aGVtZVwiOlwidGhlLXdyYXBcIn0gLy0tPlxuXG5cdFx0XHRcdDwhLS0gd3A6dGVtcGxhdGUtcGFydCB7XCJzbHVnXCI6XCJwb3N0LWl0ZW0tZXllYnJvd1wiLFwiY2xhc3NOYW1lXCI6XCJwb3N0LWl0ZW1fX2V5ZWJyb3ctd3JhcHBlclwiLFwidGhlbWVcIjpcInRoZS13cmFwXCJ9IC8tLT5cblxuXHRcdFx0XHQ8IS0tIHdwOnBvc3QtZmVhdHVyZWQtaW1hZ2Uge1wiaXNMaW5rXCI6dHJ1ZSxcInNpemVTbHVnXCI6XCJ0aGUtd3JhcC10aGVtZS0zMjB4MTgwLWNjXCJ9IC0tPlxuXHRcdFx0XHRcdDwhLS0gd3A6dGhlLXdyYXAvcHJvLWJhZGdlIHtcImNsYXNzTmFtZVwiOlwiaGFzLWltYWdlLXBsYWNlbWVudFwifSAvLS0-XG5cdFx0XHRcdDwhLS0gL3dwOnBvc3QtZmVhdHVyZWQtaW1hZ2UgLS0-XG5cdFx0XHQ8L2Rpdj5cblx0XHQ8IS0tIC93cDpwb3N0LXRlbXBsYXRlIC0tPlxuXHQ8IS0tIC93cDp0aGUtd3JhcC9xdWVyeSAtLT4iLCJjdHgiOnsicG9zdElkIjo3NjM4MTgzfX0.Bb6vTQXmA13vw-_2Crs1rKg3Kqq0xST6mctRqDpo9R4"}" data-hx-select=".lazy-render-response" class="lazy-render-placeholder" aria-hidden="true"> <div class="lazy-render-placeholder__the-wrap-query"><div class="lazy-render-placeholder__the-wrap-section-heading"><div class="lazy-render-placeholder__the-wrap-query-heading"></div></div><div class="lazy-render-placeholder__core-post-template"><ul role="list"><li><div class="lazy-render-placeholder__core-post-title"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-post-featured-image"><div class="lazy-render-placeholder__the-wrap-pro-badge"></div></div></li><li><div class="lazy-render-placeholder__core-post-title"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-post-featured-image"><div class="lazy-render-placeholder__the-wrap-pro-badge"></div></div></li><li><div class="lazy-render-placeholder__core-post-title"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-post-featured-image"><div class="lazy-render-placeholder__the-wrap-pro-badge"></div></div></li><li><div class="lazy-render-placeholder__core-post-title"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-template-part"></div><div class="lazy-render-placeholder__core-post-featured-image"><div class="lazy-render-placeholder__the-wrap-pro-badge"></div></div></li></ul></div></div> </div> </aside> <div class="container container--content has-global-padding"> <h2 class="wp-block-heading screen-reader-text">Comments</h2> <div class="wp-block-the-wrap-collapsed-comments"> <div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-1 wp-block-buttons-is-layout-flex"> <div class="wp-block-button"> <button class="wp-block-button__link wp-element-button wp-block-the-wrap-collapsed-comments__button"> Show Comments (0) </button> </div> </div> <div class="wp-block-comments"> <div id="respond" class="comment-respond wp-block-post-comments-form"> <h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/uta-news-marc-paskin-ryan-hayden-industry-analysis-interview/#respond" style="display:none;">Cancel reply</a></small></h3><form action="https://www.thewrap.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> <span class="required-field-message">Required fields are marked <span class="required">*</span></span></p><p class="comment-form-comment"><label for="comment">Comment <span class="required">*</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required></textarea></p><p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" autocomplete="email" required></p> <p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" autocomplete="url"></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"> <label for="wp-comment-cookies-consent">Save my name, email, and website in this browser for the next time I comment.</label></p> <p class="form-submit wp-block-button"><input name="submit" type="submit" id="submit" class="wp-block-button__link wp-element-button" value="Post Comment"> <input type="hidden" name="comment_post_ID" value="7638183" id="comment_post_ID"> <input type="hidden" name="comment_parent" id="comment_parent" value="0"> </p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="17690d1c11"></p><p style="display: none !important;" class="akismet-fields-container" data-prefix="ak_"><label>Δ<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label><input type="hidden" id="ak_js_1" name="ak_js" value="2"><script>document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() );</script></p></form> </div><!-- #respond --> <p class="akismet_comment_form_privacy_notice">This site uses Akismet to reduce spam. <a href="https://akismet.com/privacy/" target="_blank" rel="nofollow noopener">Learn how your comment data is processed</a>.</p> </div> </div> </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_753840"> <img width="250" height="300" src="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?fit=250%2C300&ssl=1" class="attachment-medium size-medium" alt="Down to the Wire drama series cover Elizabeth Debicki" decoding="async" loading="lazy" srcset="https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?w=1500&ssl=1 1500w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?resize=250%2C300&ssl=1 250w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?resize=853%2C1024&ssl=1 853w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?resize=768%2C922&ssl=1 768w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?resize=1280%2C1536&ssl=1 1280w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?resize=990%2C1188&ssl=1 990w, https://i0.wp.com/www.thewrap.com/wp-content/uploads/2024/08/FC_EM_DWD_082024.jpg?resize=1200%2C1440&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-57" 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-58" 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-59" 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-60" 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-61" 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-62" 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-63" 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 menu-item-7386589 menu__item footer2-menu__item"><a href="https://www.thewrap.com/join-pro/" id="menu-link-64" 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-65" 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 title="Learn more about becoming a member" href="https://pro.thewrap.com" id="menu-link-66" 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-67" 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-68" 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-69" 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-70" 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-71" 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-72" 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-73" 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-74" 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 2024 TheWrap</div> </footer> </div><!-- #page --> <div class="yad-mob-banner-ad-a wp-block-the-wrap-ad"></div> </div> <script defer src="https://www.thewrap.com/wp-content/plugins/akismet/_inc/akismet-frontend.js?ver=1732375757" id="akismet-frontend-js"></script> <script src="https://www.thewrap.com/wp-includes/js/comment-reply.min.js?ver=6.6.2" id="comment-reply-js" async data-wp-strategy="async"></script> <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://www.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://www.thewrap.com/wp-content/themes/the-wrap/client/build/js/article.bundle.min.js?ver=abd8678a08ecee2de838" id="the-wrap-article-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},"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=4675 metric#misses=57 metric#hit-ratio=98.8 metric#bytes=9838058 metric#prefetches=338 metric#store-reads=67 metric#store-writes=17 metric#store-hits=363 metric#store-misses=49 metric#sql-queries=11 metric#ms-total=437.78 metric#ms-cache=114.16 metric#ms-cache-avg=1.3754 metric#ms-cache-ratio=26.1 -->