Version Description
- Premium Patterns: add pink dot to indicate a premium pattern in the inserter. (https://github.com/Automattic/wp-calypso/pull/47896)
- Coming Soon: add coming soon wpcom localized url filter. (https://github.com/Automattic/wp-calypso/pull/48076)
Download this release
Release Info
Developer | andrewserong |
Plugin | Full Site Editing |
Version | 2.8.14 |
Comparing to | |
See all releases |
Code changes from version 2.8.13 to 2.8.14
- block-patterns/class-block-patterns-from-api.php +36 -3
- block-patterns/class-block-patterns-modifications.php +69 -0
- block-patterns/dist/block-patterns.asset.php +1 -0
- block-patterns/dist/block-patterns.css +1 -0
- block-patterns/dist/block-patterns.js +1 -0
- block-patterns/dist/block-patterns.rtl.css +1 -0
- block-patterns/index.ts +4 -0
- block-patterns/src/premium-block-patterns.tsx +88 -0
- block-patterns/src/style.scss +19 -0
- coming-soon/coming-soon.php +1 -0
- coming-soon/fallback-coming-soon-page.php +7 -14
- editor-site-launch/dist/editor-site-launch.asset.php +1 -1
- editor-site-launch/dist/editor-site-launch.js +4 -4
- full-site-editing-plugin.php +17 -2
- readme.txt +5 -1
block-patterns/class-block-patterns-from-api.php
CHANGED
@@ -75,7 +75,7 @@ class Block_Patterns_From_API {
|
|
75 |
$pattern_categories = array();
|
76 |
$block_patterns = $this->get_patterns();
|
77 |
|
78 |
-
foreach ( (array) $
|
79 |
foreach ( (array) $pattern['categories'] as $slug => $category ) {
|
80 |
$pattern_categories[ $slug ] = $category['title'];
|
81 |
}
|
@@ -87,18 +87,21 @@ class Block_Patterns_From_API {
|
|
87 |
register_block_pattern_category( $slug, array( 'label' => $label ) );
|
88 |
}
|
89 |
|
90 |
-
foreach ( (array) $
|
91 |
if ( $this->can_register_pattern( $pattern ) ) {
|
|
|
|
|
92 |
register_block_pattern(
|
93 |
Block_Patterns_From_API::PATTERN_NAMESPACE . $pattern['name'],
|
94 |
array(
|
95 |
'title' => $pattern['title'],
|
96 |
-
'description' => $pattern['
|
97 |
'content' => $pattern['html'],
|
98 |
'viewportWidth' => 1280,
|
99 |
'categories' => array_keys(
|
100 |
$pattern['categories']
|
101 |
),
|
|
|
102 |
)
|
103 |
);
|
104 |
}
|
@@ -111,6 +114,35 @@ class Block_Patterns_From_API {
|
|
111 |
* @return array
|
112 |
*/
|
113 |
private function get_patterns() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
$block_patterns = wp_cache_get( $this->patterns_cache_key, 'ptk_patterns' );
|
115 |
|
116 |
// Load fresh data if we don't have any patterns.
|
@@ -181,3 +213,4 @@ class Block_Patterns_From_API {
|
|
181 |
return true;
|
182 |
}
|
183 |
}
|
|
75 |
$pattern_categories = array();
|
76 |
$block_patterns = $this->get_patterns();
|
77 |
|
78 |
+
foreach ( (array) $block_patterns as $pattern ) {
|
79 |
foreach ( (array) $pattern['categories'] as $slug => $category ) {
|
80 |
$pattern_categories[ $slug ] = $category['title'];
|
81 |
}
|
87 |
register_block_pattern_category( $slug, array( 'label' => $label ) );
|
88 |
}
|
89 |
|
90 |
+
foreach ( (array) $block_patterns as $pattern ) {
|
91 |
if ( $this->can_register_pattern( $pattern ) ) {
|
92 |
+
$is_premium = isset( $pattern['pattern_meta']['is_premium'] ) ? boolval( $pattern['pattern_meta']['is_premium'] ) : false;
|
93 |
+
|
94 |
register_block_pattern(
|
95 |
Block_Patterns_From_API::PATTERN_NAMESPACE . $pattern['name'],
|
96 |
array(
|
97 |
'title' => $pattern['title'],
|
98 |
+
'description' => $pattern['description'],
|
99 |
'content' => $pattern['html'],
|
100 |
'viewportWidth' => 1280,
|
101 |
'categories' => array_keys(
|
102 |
$pattern['categories']
|
103 |
),
|
104 |
+
'isPremium' => $is_premium,
|
105 |
)
|
106 |
);
|
107 |
}
|
114 |
* @return array
|
115 |
*/
|
116 |
private function get_patterns() {
|
117 |
+
$override_source_site = apply_filters( 'a8c_override_patterns_source_site', false );
|
118 |
+
if ( $override_source_site ) {
|
119 |
+
// Skip caching and request all patterns from a specified source site.
|
120 |
+
// This allows testing patterns in development with immediate feedback
|
121 |
+
// while avoiding polluting the cache. Note that this request gets
|
122 |
+
// all patterns on the source site, not just those with the 'pattern' tag.
|
123 |
+
$request_url = esc_url_raw(
|
124 |
+
add_query_arg(
|
125 |
+
array(
|
126 |
+
'site' => $override_source_site,
|
127 |
+
),
|
128 |
+
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_block_patterns_locale()
|
129 |
+
)
|
130 |
+
);
|
131 |
+
|
132 |
+
$args = array( 'timeout' => 20 );
|
133 |
+
|
134 |
+
if ( function_exists( 'wpcom_json_api_get' ) ) {
|
135 |
+
$response = wpcom_json_api_get( $request_url, $args );
|
136 |
+
} else {
|
137 |
+
$response = wp_remote_get( $request_url, $args );
|
138 |
+
}
|
139 |
+
|
140 |
+
if ( 200 !== wp_remote_retrieve_response_code( $response ) ) {
|
141 |
+
return array();
|
142 |
+
}
|
143 |
+
return json_decode( wp_remote_retrieve_body( $response ), true );
|
144 |
+
}
|
145 |
+
|
146 |
$block_patterns = wp_cache_get( $this->patterns_cache_key, 'ptk_patterns' );
|
147 |
|
148 |
// Load fresh data if we don't have any patterns.
|
213 |
return true;
|
214 |
}
|
215 |
}
|
216 |
+
|
block-patterns/class-block-patterns-modifications.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* WPCOM block patterns modifications.
|
4 |
+
*
|
5 |
+
* Enqueues JS modifications to how block patterns behave within the editor.
|
6 |
+
*
|
7 |
+
* @package A8C\FSE
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace A8C\FSE;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Class Block_Patterns_Modifications
|
14 |
+
*/
|
15 |
+
class Block_Patterns_Modifications {
|
16 |
+
/**
|
17 |
+
* Class instance.
|
18 |
+
*
|
19 |
+
* @var Block_Patterns_Modifications
|
20 |
+
*/
|
21 |
+
private static $instance = null;
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Block_Patterns_Modifications constructor.
|
25 |
+
*/
|
26 |
+
public function __construct() {
|
27 |
+
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_script_and_style' ), 100 );
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Creates instance.
|
32 |
+
*
|
33 |
+
* @return \A8C\FSE\Block_Patterns_Modifications
|
34 |
+
*/
|
35 |
+
public static function init() {
|
36 |
+
if ( is_null( self::$instance ) ) {
|
37 |
+
self::$instance = new self();
|
38 |
+
}
|
39 |
+
return self::$instance;
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Enqueue block editor assets.
|
44 |
+
*/
|
45 |
+
public function enqueue_script_and_style() {
|
46 |
+
$asset_file = include plugin_dir_path( __FILE__ ) . 'dist/block-patterns.asset.php';
|
47 |
+
$script_dependencies = $asset_file['dependencies'];
|
48 |
+
$version = $asset_file['version'];
|
49 |
+
|
50 |
+
wp_enqueue_script(
|
51 |
+
'wpcom-block-patterns-modifications',
|
52 |
+
plugins_url( 'dist/block-patterns.js', __FILE__ ),
|
53 |
+
is_array( $script_dependencies ) ? $script_dependencies : array(),
|
54 |
+
$version,
|
55 |
+
true
|
56 |
+
);
|
57 |
+
|
58 |
+
wp_set_script_translations( 'wpcom-block-patterns-modifications', 'full-site-editing' );
|
59 |
+
|
60 |
+
$style_path = 'dist/block-patterns' . ( is_rtl() ? '.rtl' : '' ) . '.css';
|
61 |
+
wp_enqueue_style(
|
62 |
+
'wpcom-block-patterns-modifications',
|
63 |
+
plugins_url( $style_path, __FILE__ ),
|
64 |
+
array(),
|
65 |
+
filemtime( plugin_dir_path( __FILE__ ) . $style_path )
|
66 |
+
);
|
67 |
+
}
|
68 |
+
}
|
69 |
+
add_action( 'init', array( __NAMESPACE__ . '\Block_Patterns_Modifications', 'init' ) );
|
block-patterns/dist/block-patterns.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '5d0926683df9bdcedd48fcfe8988d30f');
|
block-patterns/dist/block-patterns.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.pattern-title-container{position:absolute;left:0;top:0;width:100%;height:100%}.premium-pattern-title:after{content:"";background:var(--color-accent);height:6px;width:6px;border-radius:50%;display:inline-block;position:relative;vertical-align:text-top}
|
block-patterns/dist/block-patterns.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){var r=n(5);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r,i,o=n(3),c=n.n(o),u=n(0),l=(n(6),n(1)),f=n(2),a=n(4),p=(n(7),function(e){var t=e.title;return Object(u.createElement)("div",null,Object(u.createElement)("div",{className:"pattern-title-container"}),Object(u.createElement)("span",{className:"premium-pattern-title"}," ",t," "))}),s=function(){var e=Object(l.useSelect)((function(e){return e("core/block-editor").getSettings()})).__experimentalBlockPatterns,t=Object(l.useDispatch)("core/block-editor").updateSettings;if(e){var n=!1,r=[];e.forEach((function(e){var t=c()({},e);if(t.isPremium&&"string"==typeof t.title){var i=t.title;t.title=Object(u.createElement)(p,{title:i}),t.title.toString=function(){return Object(f.sprintf)(Object(f.__)("%s (Premium)","full-site-editing"),i)},n=!0}r.push(t)})),n&&t({__experimentalBlockPatterns:r})}return null};r="a8c-wpcom-premium-block-patterns",i={render:function(){return Object(u.createElement)(s,null)}},Object(a.registerPlugin)(r,i)}]));
|
block-patterns/dist/block-patterns.rtl.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.pattern-title-container{position:absolute;right:0;top:0;width:100%;height:100%}.premium-pattern-title:after{content:"";background:var(--color-accent);height:6px;width:6px;border-radius:50%;display:inline-block;position:relative;vertical-align:text-top}
|
block-patterns/index.ts
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Internal dependencies
|
3 |
+
*/
|
4 |
+
import './src/premium-block-patterns';
|
block-patterns/src/premium-block-patterns.tsx
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* External dependencies
|
3 |
+
*/
|
4 |
+
import * as React from 'react';
|
5 |
+
import { useDispatch, useSelect } from '@wordpress/data';
|
6 |
+
import { __, sprintf } from '@wordpress/i18n';
|
7 |
+
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Internal dependencies
|
11 |
+
*/
|
12 |
+
import './style.scss';
|
13 |
+
|
14 |
+
interface PatternTitleProps {
|
15 |
+
title: string;
|
16 |
+
description?: string;
|
17 |
+
}
|
18 |
+
|
19 |
+
interface ExperimentalBlockPattern {
|
20 |
+
categories: string[];
|
21 |
+
content: string;
|
22 |
+
description: string;
|
23 |
+
isPremium: boolean;
|
24 |
+
name: string;
|
25 |
+
title: string;
|
26 |
+
viewportWidth: number;
|
27 |
+
}
|
28 |
+
|
29 |
+
export const PatternTitleContainer: React.FunctionComponent< PatternTitleProps > = ( {
|
30 |
+
title,
|
31 |
+
} ) => {
|
32 |
+
return (
|
33 |
+
<div>
|
34 |
+
<div className="pattern-title-container"></div>
|
35 |
+
<span className="premium-pattern-title"> { title } </span>
|
36 |
+
</div>
|
37 |
+
);
|
38 |
+
};
|
39 |
+
|
40 |
+
export const PremiumBlockPatterns: React.FunctionComponent = () => {
|
41 |
+
const { __experimentalBlockPatterns } = useSelect( ( select ) =>
|
42 |
+
select( 'core/block-editor' ).getSettings()
|
43 |
+
);
|
44 |
+
const { updateSettings } = useDispatch( 'core/block-editor' );
|
45 |
+
|
46 |
+
if ( __experimentalBlockPatterns ) {
|
47 |
+
let shouldUpdateBlockPatterns = false;
|
48 |
+
const updatedPatterns: Array = [];
|
49 |
+
|
50 |
+
__experimentalBlockPatterns.forEach( ( originalPattern: ExperimentalBlockPattern ) => {
|
51 |
+
const pattern = { ...originalPattern };
|
52 |
+
|
53 |
+
if ( pattern.isPremium && typeof pattern.title === 'string' ) {
|
54 |
+
const originalTitle = pattern.title;
|
55 |
+
|
56 |
+
pattern.title = <PatternTitleContainer title={ originalTitle } />;
|
57 |
+
// Add simple premium badging for screen readers
|
58 |
+
pattern.title.toString = () =>
|
59 |
+
sprintf(
|
60 |
+
// translators: %s is the title of a block pattern e.g. "Two columns (Premium)". "Premium" is synonymous with "paid"
|
61 |
+
__( '%s (Premium)', 'full-site-editing' ),
|
62 |
+
originalTitle
|
63 |
+
);
|
64 |
+
|
65 |
+
shouldUpdateBlockPatterns = true;
|
66 |
+
}
|
67 |
+
updatedPatterns.push( pattern );
|
68 |
+
} );
|
69 |
+
|
70 |
+
if ( shouldUpdateBlockPatterns ) {
|
71 |
+
updateSettings( {
|
72 |
+
__experimentalBlockPatterns: updatedPatterns,
|
73 |
+
} );
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
return null;
|
78 |
+
};
|
79 |
+
|
80 |
+
const registerPlugin = ( name: string, settings: Omit< PluginSettings, 'icon' > ) =>
|
81 |
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
82 |
+
originalRegisterPlugin( name, settings as any );
|
83 |
+
|
84 |
+
registerPlugin( 'a8c-wpcom-premium-block-patterns', {
|
85 |
+
render: () => {
|
86 |
+
return <PremiumBlockPatterns />;
|
87 |
+
},
|
88 |
+
} );
|
block-patterns/src/style.scss
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.pattern-title-container {
|
2 |
+
position: absolute;
|
3 |
+
left: 0;
|
4 |
+
top: 0;
|
5 |
+
width: 100%;
|
6 |
+
height: 100%;
|
7 |
+
}
|
8 |
+
|
9 |
+
// The pink dot
|
10 |
+
.premium-pattern-title::after {
|
11 |
+
content: '';
|
12 |
+
background: var( --color-accent );
|
13 |
+
height: 6px;
|
14 |
+
width: 6px;
|
15 |
+
border-radius: 50%;
|
16 |
+
display: inline-block;
|
17 |
+
position: relative;
|
18 |
+
vertical-align: text-top;
|
19 |
+
}
|
coming-soon/coming-soon.php
CHANGED
@@ -47,6 +47,7 @@ function render_fallback_coming_soon_page() {
|
|
47 |
remove_action( 'wp_head', 'global_css', 5 );
|
48 |
remove_action( 'wp_footer', 'wpcom_subs_js' );
|
49 |
remove_action( 'wp_footer', 'stats_footer', 101 );
|
|
|
50 |
add_filter( 'jetpack_disable_eu_cookie_law_widget', '__return_true', 1 );
|
51 |
add_filter( 'jetpack_enable_opengraph', '__return_false', 1 );
|
52 |
add_filter( 'wpcom_disable_logged_out_follow', '__return_true', 10, 1 ); // Disable follow actionbar.
|
47 |
remove_action( 'wp_head', 'global_css', 5 );
|
48 |
remove_action( 'wp_footer', 'wpcom_subs_js' );
|
49 |
remove_action( 'wp_footer', 'stats_footer', 101 );
|
50 |
+
add_filter( 'infinite_scroll_archive_supported', '__return_false', 99 ); // Disable infinite scroll feature.
|
51 |
add_filter( 'jetpack_disable_eu_cookie_law_widget', '__return_true', 1 );
|
52 |
add_filter( 'jetpack_enable_opengraph', '__return_false', 1 );
|
53 |
add_filter( 'wpcom_disable_logged_out_follow', '__return_true', 10, 1 ); // Disable follow actionbar.
|
coming-soon/fallback-coming-soon-page.php
CHANGED
@@ -27,7 +27,7 @@ function get_current_locale() {
|
|
27 |
*/
|
28 |
function original_request_url() {
|
29 |
if ( empty( $_SERVER['SERVER_NAME'] ) || empty( $_SERVER['REQUEST_URI'] ) ) {
|
30 |
-
return
|
31 |
}
|
32 |
|
33 |
$origin = ( is_ssl() ? 'https://' : 'http://' ) . sanitize_text_field( wp_unslash( $_SERVER['SERVER_NAME'] ) );
|
@@ -40,7 +40,7 @@ function original_request_url() {
|
|
40 |
}
|
41 |
|
42 |
/**
|
43 |
-
* Returns
|
44 |
*
|
45 |
* @return string The redirect URL
|
46 |
*/
|
@@ -48,10 +48,10 @@ function get_wpcom_redirect_to() {
|
|
48 |
// Redirect to the current URL.
|
49 |
// If, for any reason, the superglobals aren't available, set a default redirect.
|
50 |
if ( empty( $_SERVER['HTTP_HOST'] ) || empty( $_SERVER['REQUEST_URI'] ) ) {
|
51 |
-
return
|
52 |
}
|
53 |
|
54 |
-
return
|
55 |
}
|
56 |
|
57 |
/**
|
@@ -60,12 +60,9 @@ function get_wpcom_redirect_to() {
|
|
60 |
* @return string The login URL
|
61 |
*/
|
62 |
function get_login_url() {
|
63 |
-
|
64 |
-
if ( function_exists( 'localized_wpcom_url' ) ) {
|
65 |
-
return localized_wpcom_url( '//wordpress.com/log-in?redirect_to=' . get_wpcom_redirect_to() );
|
66 |
-
}
|
67 |
|
68 |
-
return
|
69 |
}
|
70 |
|
71 |
/**
|
@@ -74,14 +71,10 @@ function get_login_url() {
|
|
74 |
* @return string The URL
|
75 |
*/
|
76 |
function get_onboarding_url() {
|
77 |
-
if ( function_exists( 'localized_wpcom_url' ) ) {
|
78 |
-
return localized_wpcom_url( 'https://wordpress.com/?ref=coming_soon' );
|
79 |
-
}
|
80 |
-
|
81 |
$locale = get_current_locale();
|
82 |
$locale_subdomain = 'en' === $locale ? '' : $locale . '.';
|
83 |
|
84 |
-
return 'https://' . $locale_subdomain . 'wordpress.com/?ref=coming_soon';
|
85 |
}
|
86 |
|
87 |
nocache_headers();
|
27 |
*/
|
28 |
function original_request_url() {
|
29 |
if ( empty( $_SERVER['SERVER_NAME'] ) || empty( $_SERVER['REQUEST_URI'] ) ) {
|
30 |
+
return get_onboarding_url();
|
31 |
}
|
32 |
|
33 |
$origin = ( is_ssl() ? 'https://' : 'http://' ) . sanitize_text_field( wp_unslash( $_SERVER['SERVER_NAME'] ) );
|
40 |
}
|
41 |
|
42 |
/**
|
43 |
+
* Returns an unencoded redirect URL for post-login flow in WordPress.com.
|
44 |
*
|
45 |
* @return string The redirect URL
|
46 |
*/
|
48 |
// Redirect to the current URL.
|
49 |
// If, for any reason, the superglobals aren't available, set a default redirect.
|
50 |
if ( empty( $_SERVER['HTTP_HOST'] ) || empty( $_SERVER['REQUEST_URI'] ) ) {
|
51 |
+
return get_onboarding_url();
|
52 |
}
|
53 |
|
54 |
+
return 'https://' . sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) . sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );
|
55 |
}
|
56 |
|
57 |
/**
|
60 |
* @return string The login URL
|
61 |
*/
|
62 |
function get_login_url() {
|
63 |
+
$default_url = site_url() . '/wp-login.php?redirect_to=' . set_url_scheme( original_request_url() );
|
|
|
|
|
|
|
64 |
|
65 |
+
return apply_filters( 'wpcom_public_coming_soon_login_url', $default_url, get_wpcom_redirect_to() );
|
66 |
}
|
67 |
|
68 |
/**
|
71 |
* @return string The URL
|
72 |
*/
|
73 |
function get_onboarding_url() {
|
|
|
|
|
|
|
|
|
74 |
$locale = get_current_locale();
|
75 |
$locale_subdomain = 'en' === $locale ? '' : $locale . '.';
|
76 |
|
77 |
+
return apply_filters( 'wpcom_public_coming_soon_onboarding_url', 'https://' . $locale_subdomain . 'wordpress.com/?ref=coming_soon' );
|
78 |
}
|
79 |
|
80 |
nocache_headers();
|
editor-site-launch/dist/editor-site-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'e911f51bf2935ae80112479537a779b5');
|
editor-site-launch/dist/editor-site-launch.js
CHANGED
@@ -3,20 +3,20 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"h",(function(){return m}));var r="free_plan",i="personal-bundle",o="value_bundle",a="business-bundle",c="ecommerce-bundle",s="automattic/onboard/plans",l=o,u=[i,o,a,c],d=["beginner","personal","premium","business","ecommerce"],f=[r,i,o,a,c],m={USD:{format:"SYMBOL_THEN_AMOUNT",symbol:"$",decimal:2},GBP:{format:"SYMBOL_THEN_AMOUNT",symbol:"£",decimal:2},JPY:{format:"SYMBOL_THEN_AMOUNT",symbol:"¥",decimal:0},BRL:{format:"SYMBOL_THEN_AMOUNT",symbol:"R$",decimal:2},EUR:{format:"SYMBOL_THEN_AMOUNT",symbol:"€",decimal:2},NZD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NZ$",decimal:2},AUD:{format:"SYMBOL_THEN_AMOUNT",symbol:"A$",decimal:2},CAD:{format:"SYMBOL_THEN_AMOUNT",symbol:"C$",decimal:2},IDR:{format:"AMOUNT_THEN_SYMBOL",symbol:"Rp",decimal:0},INR:{format:"AMOUNT_THEN_SYMBOL",symbol:"₹",decimal:0},ILS:{format:"AMOUNT_THEN_SYMBOL",symbol:"₪",decimal:2},RUB:{format:"AMOUNT_THEN_SYMBOL",symbol:"₽",decimal:2},MXN:{format:"SYMBOL_THEN_AMOUNT",symbol:"MX$",decimal:2},SEK:{format:"AMOUNT_THEN_SYMBOL",symbol:"SEK",decimal:2},HUF:{format:"AMOUNT_THEN_SYMBOL",symbol:"Ft",decimal:0},CHF:{format:"AMOUNT_THEN_SYMBOL",symbol:"CHF",decimal:2},CZK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kč",decimal:2},DKK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Dkr",decimal:2},HKD:{format:"AMOUNT_THEN_SYMBOL",symbol:"HK$",decimal:2},NOK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kr",decimal:2},PHP:{format:"AMOUNT_THEN_SYMBOL",symbol:"₱",decimal:2},PLN:{format:"AMOUNT_THEN_SYMBOL",symbol:"PLN",decimal:2},SGD:{format:"SYMBOL_THEN_AMOUNT",symbol:"S$",decimal:2},TWD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NT$",decimal:0},THB:{format:"SYMBOL_THEN_AMOUNT",symbol:"฿",decimal:2},TRY:{format:"AMOUNT_THEN_SYMBOL",symbol:"TL",decimal:2}}},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(101)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){var r=n(102),i=n(103),o=n(58),a=n(104);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return T}));var r,i=n(21),o=n.n(i),a=n(152),c=n(73),s=n.n(c),l=n(46),u=n.n(l),d=n(13),f=n.n(d)()("wpcom-proxy-request"),m="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host,h=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),b=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),g=null,v=!1,y={},O=!!window.ProgressEvent&&!!window.FormData;f('using "origin": %o',p);var _=function(e,t){var n=Object.assign({},e);f("request(%o)",n),g||x();var i=Object(a.a)();n.callback=i,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=O,n.method=String(n.method||"GET").toUpperCase(),f("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,y[i]=o,"function"==typeof t){var c=!1,s=function(e){if(!c){c=!0;var n=e.error||e.err||e;f("error: ",n),f("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!c){c=!0;var n=e.response||o.response;f("body: ",n),f("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",s),o.addEventListener("error",s)}return v?j(n):(f("buffering API request since proxying <iframe> is not yet loaded"),r.push(n)),o},E=function(e,t){return"function"==typeof t?_(e,t):new Promise((function(t,n){_(e,(function(e,r){e?n(e):t(r)}))}))};function j(e){f("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!b)return;for(var t=0;t<e.length;t++){var n=w(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),g.contentWindow.postMessage(h?JSON.stringify(e):e,m)}function S(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function w(e){return S(e)?e:"object"==typeof e&&S(e.fileContents)?e.fileContents:null}function x(){f("install()"),g&&(f("uninstall()"),window.removeEventListener("message",C),document.body.removeChild(g),v=!1,g=null),r=[],window.addEventListener("message",C),(g=document.createElement("iframe")).src=m+"/wp-admin/rest-proxy/?v=2.0#"+p,g.style.display="none",document.body.appendChild(g)}function C(e){if(f("onmessage"),e.origin===m)if(e.source===g.contentWindow){var t=e.data;if(!t)return f("no `data`, bailing");if("ready"!==t){if(h&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){f('got "progress" event: %o',e);var t=y[e.callbackId];if(t){var n=new u.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return f("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in y))return f("bailing, no matching request with callback: %o",n);var i=y[n],o=i.params,a=t[0],c=t[1],l=t[2];if(207===c||delete y[n],o.metaAPI?c="metaAPIupdated"===a?200:500:f("got %o status code for URL: %o",c,o.path),"object"==typeof l&&(l.status=c),c&&2===Math.floor(c/100))!function(e,t,n){var r=new u.a("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,a,l);else!function(e,t,n){var r=new u.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(i,s()(o,c,a),l)}else!function(){if(f('proxy <iframe> "load" event'),v=!0,r){for(var e=0;e<r.length;e++)j(r[e]);r=null}}()}else f("ignoring message... iframe elements do not match");else f("ignoring message... %o !== %o",e.origin,m)}var k,N=E,P=function(e){return{type:"WPCOM_REQUEST",request:e}},A=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},T={WPCOM_REQUEST:function(e){var t=e.request;return N(t)},FETCH_AND_PARSE:(k=o()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return k.apply(this,arguments)}),RELOAD_PROXY:function(){x()},REQUEST_ALL_BLOGS_ACCESS:function(){return E({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},function(e,t,n){"use strict";var r=n(60);n.d(t,"DomainSuggestions",(function(){return r}));var i=n(53);n.d(t,"Plans",(function(){return i}));var o=n(70);n.d(t,"Site",(function(){return o}));var a=n(71);n.d(t,"Launch",(function(){return a}));var c=n(72);n.d(t,"WPCOMFeatures",(function(){return c}))},function(e,t,n){var r=n(118);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},,function(e,t){function n(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function c(e){n(a,i,o,c,s,"next",e)}function s(e){n(a,i,o,c,s,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";n.r(t),n.d(t,"receiveCategories",(function(){return r})),n.d(t,"fetchDomainSuggestions",(function(){return i})),n.d(t,"receiveDomainAvailability",(function(){return o})),n.d(t,"receiveDomainSuggestionsSuccess",(function(){return a})),n.d(t,"receiveDomainSuggestionsError",(function(){return c}));var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},c=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},,,,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.wp.dataControls}()},,function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,c;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,c=s,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):b(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return u(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,u=b(s,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return d(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return d(this,e,t,!0)},c.prototype.once=function(e,t){return l(t),this.on(e,m(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,m(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return p(this,e,!0)},c.prototype.rawListeners=function(e){return p(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},c.prototype.listenerCount=h,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(51),i=n(64);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=s(i.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),c=0,s=t;c<a.length;c++,s+=4){var l;l="big"===i?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[c]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+o>>>0)<o?1:0,e+n+i+a+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,c){return t+r+o+c>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,c,s,l){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+c>>>0)<c?1:0,e+n+i+a+s+(u+=(d=d+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,c,s,l){return t+r+o+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(75),i=n.n(r).a},function(e,t,n){"use strict";var r=n(106),i=n(107),o=n(62);e.exports={formats:o,parse:i,stringify:r}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(112);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(113),i=n(114),o=n(115);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(69),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=m(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var c=s(t),h=s(n),b=0;b<a.length;++b){var g=a[b];if(!(o[g]||r&&r[g]||h&&h[g]||c&&c[g])){var v=f(n,g);try{l(t,g,v)}catch(y){}}}}return t}},function(e,t){var n,r=window.ProgressEvent,i=!!r;try{n=new r("loaded"),i="loaded"===n.type,n=null}catch(o){i=!1}e.exports=i?r:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},function(e,t,n){"use strict";
|
7 |
/*!
|
8 |
* cookie
|
9 |
* Copyright(c) 2012-2014 Roman Shtylman
|
10 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
11 |
* MIT Licensed
|
12 |
-
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(o),s=i.decode||r,l=0;l<a.length;l++){var u=a[l],d=u.indexOf("=");if(!(d<0)){var f=u.substr(0,d).trim(),m=u.substr(++d,u.length).trim();'"'==m[0]&&(m=m.slice(1,-1)),null==n[f]&&(n[f]=c(m,s))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var c=o(t);if(c&&!a.test(c))throw new TypeError("argument val is invalid");var s=e+"="+c;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(l)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(s+="; HttpOnly");r.secure&&(s+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function c(e,t){try{return t(e)}catch(n){return e}}},,,function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?i+=r.charAt(a):c<128?i+=o[c]:c<2048?i+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?i+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),i+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return i(t)&&!i(n)&&(c=a(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),c)}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"PLAN_FREE",(function(){return s.d})),n.d(t,"PLAN_PERSONAL",(function(){return s.e})),n.d(t,"PLAN_PREMIUM",(function(){return s.f})),n.d(t,"PLAN_BUSINESS",(function(){return s.b})),n.d(t,"PLAN_ECOMMERCE",(function(){return s.c})),n.d(t,"plansPaths",(function(){return s.j})),n.d(t,"register",(function(){return V}));var r={};n.r(r),n.d(r,"setFeatures",(function(){return m})),n.d(r,"setFeaturesByType",(function(){return p})),n.d(r,"setPlans",(function(){return h})),n.d(r,"setPrices",(function(){return b})),n.d(r,"resetPlan",(function(){return g}));var i={};n.r(i),n.d(i,"getFeatures",(function(){return v})),n.d(i,"getFeaturesByType",(function(){return y})),n.d(i,"getPlanBySlug",(function(){return O})),n.d(i,"getDefaultPaidPlan",(function(){return _})),n.d(i,"getDefaultFreePlan",(function(){return E})),n.d(i,"getSupportedPlans",(function(){return j})),n.d(i,"getPlanByPath",(function(){return S})),n.d(i,"getPlansDetails",(function(){return w})),n.d(i,"getPlansPaths",(function(){return x})),n.d(i,"getPrices",(function(){return C})),n.d(i,"isPlanEcommerce",(function(){return k})),n.d(i,"isPlanFree",(function(){return N}));var o={};n.r(o),n.d(o,"getPrices",(function(){return F})),n.d(o,"getPlansDetails",(function(){return B}));var a,c=n(3),s=n(11),l=n(10),u=n.n(l),d=(a={},u()(a,s.d,""),u()(a,s.e,""),u()(a,s.f,""),u()(a,s.b,""),u()(a,s.c,""),a),f=Object(c.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}},prices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PRICES":return t.prices;default:return e}},supportedPlanSlugs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.k,t=arguments.length>1?arguments[1]:void 0;return t.type,e}}),m=function(e){return{type:"SET_FEATURES",features:e}},p=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},h=function(e){return{type:"SET_PLANS",plans:e}},b=function(e){return{type:"SET_PRICES",prices:e}},g=function(){return{type:"RESET_PLAN"}},v=function(e){return e.features},y=function(e){return e.featuresByType},O=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:void 0},_=function(e,t){var n;return null===(n=Object(c.select)(s.g).getPlansDetails(t))||void 0===n?void 0:n.plans[s.a]},E=function(e,t){var n;return null===(n=Object(c.select)(s.g).getPlansDetails(t))||void 0===n?void 0:n.plans[s.d]},j=function(e){var t=[];return e.supportedPlanSlugs.forEach((function(n){n in e.plans&&t.push(e.plans[n])})),t},S=function(e,t){return t?j(e).find((function(e){return(null==e?void 0:e.pathSlug)===t})):void 0},w=function(e,t){return e},x=function(e){return j(e).map((function(e){return null==e?void 0:e.pathSlug}))},C=function(e,t){return e.prices},k=function(e,t){return t===s.c},N=function(e,t){return t===s.d},P=n(7),A=n.n(P),T=n(39),L=n(16),D=regeneratorRuntime.mark(F),R=regeneratorRuntime.mark(B);function I(e){var t=s.h[e.currency_code],n=e.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?"".concat(n).concat(t.symbol):"".concat(t.symbol).concat(n)}function F(){var e,t,n,r,i=arguments;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:"en",o.next=3,Object(L.c)({path:"/plans",query:Object(T.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=o.sent,n=t.filter((function(e){return-1!==s.k.indexOf(e.product_slug)})),r=n.reduce((function(e,t){return e[t.product_slug]=I(t),e}),{}),o.next=8,b(r);case 8:case"end":return o.stop()}}),D)}var M={Free:s.d,Personal:s.e,Premium:s.f,Business:s.b,eCommerce:s.c};function B(){var e,t,n,r,i,o=arguments;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:"en",a.prev=1,a.next=4,Object(L.b)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 4:return t=a.sent,n=t.body,r={},i={},n.features.forEach((function(e){var t;i[e.id]={id:e.id,name:e.name,description:e.description,type:null!==(t=e.type)&&void 0!==t?t:"checkbox"}})),n.plans.forEach((function(e){var t,n={title:e.short_name,description:e.tagline,productId:e.products[0].plan_id,storeSlug:M[e.nonlocalized_short_name],features:e.highlighted_features,pathSlug:null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase(),featuresSlugs:e.features.reduce((function(e,t){return A()(A()({},e),{},u()({},t,!0))}),{}),storage:e.storage};"Free"===e.nonlocalized_short_name&&(n.isFree=!0),"Premium"===e.nonlocalized_short_name&&(n.isPopular=!0),r[M[e.nonlocalized_short_name]]=n})),a.next=12,h(r);case 12:return a.next=14,m(i);case 14:return a.next=16,p(n.features_by_type);case 16:a.next=21;break;case 18:return a.prev=18,a.t0=a.catch(1),a.abrupt("return");case 21:case"end":return a.stop()}}),R,null,[[1,18]])}var U=!1;function V(){return U||(U=!0,Object(c.registerStore)(s.g,{resolvers:o,actions:r,controls:L.a,reducer:f,selectors:i})),s.g}},function(e,t,n){var r=n(142);e.exports=m,e.exports.parse=o,e.exports.compile=function(e,t){return c(o(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,c="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],m=n.index;if(c+=e.slice(a,m),a=m+d.length,f)c+=f[1];else{var p=e[a],h=n[2],b=n[3],g=n[4],v=n[5],y=n[6],O=n[7];c&&(r.push(c),c="");var _=null!=h&&null!=p&&p!==h,E="+"===y||"*"===y,j="?"===y||"*"===y,S=n[2]||u,w=g||v;r.push({name:b||o++,prefix:h||"",delimiter:S,optional:j,repeat:E,partial:_,asterisk:!!O,pattern:w?l(w):O?".*":"[^"+s(S)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",c=t||{},s=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,f=c[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var m=0;m<f.length;m++){if(d=s(f[m]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===m?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=s(l);else{var f=s(l.prefix),m="(?:"+l.pattern+")";t.push(l),l.repeat&&(m+="(?:"+f+m+")*"),a+=m=l.optional?l.partial?f+"("+m+")?":"(?:"+f+"("+m+"))?":f+"("+m+")"}}var p=s(n.delimiter||"/"),h=a.slice(-p.length)===p;return i||(a=(h?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&h?"":"(?="+p+"|$)",u(new RegExp("^"+a,d(n)),t)}function m(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(m(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},,,,function(e,t,n){var r=n(59);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return m}));var r=n(3),i=n(19),o=n(74),a=n(25),c=n(84),s=n(80),l=n(16),u=n(61);for(var d in u)["default","register"].indexOf(d)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(d);var f=!1;function m(e){var t=e.vendor;return f||(f=!0,Object(r.registerStore)(i.b,{actions:a,controls:l.a,reducer:o.a,resolvers:c,selectors:Object(s.a)(t)})),i.b}},function(e,t){},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(50),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(34),i=n(51);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=n(34).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(131)},function(e,t,n){"use strict";n.r(t),n.d(t,"Visibility",(function(){return j})),n.d(t,"register",(function(){return M}));var r={};n.r(r),n.d(r,"getSite",(function(){return _})),n.d(r,"getSiteDomains",(function(){return E}));var i={};n.r(i),n.d(i,"getState",(function(){return S})),n.d(i,"getNewSite",(function(){return w})),n.d(i,"getNewSiteError",(function(){return x})),n.d(i,"isFetchingSite",(function(){return C})),n.d(i,"isFetchingSiteDetails",(function(){return k})),n.d(i,"isNewSite",(function(){return N})),n.d(i,"getSite",(function(){return P})),n.d(i,"getSiteTitle",(function(){return A})),n.d(i,"isSiteLaunched",(function(){return T})),n.d(i,"isSiteLaunching",(function(){return L})),n.d(i,"getSiteDomains",(function(){return D})),n.d(i,"getPrimarySiteDomain",(function(){return R})),n.d(i,"getSiteSubdomain",(function(){return I}));var o=n(3),a="automattic/site",c=n(18),s=n.n(c),l=n(81),u=n.n(l),d=n(10),f=n.n(d),m=n(7),p=n.n(m),h=Object(o.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),b=Object(o.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:h,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return p()(p()({},e),{},f()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],s()(e,[n].map(u.a)));return p()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?p()(p()({},e),{},f()({},t.siteId,p()(p()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?p()(p()({},e),{},f()({},t.siteId,{isSiteLaunched:!1,isSiteLaunching:!0})):"LAUNCH_SITE_COMPLETE"===t.type?p()(p()({},e),{},f()({},t.siteId,{isSiteLaunched:!0,isSiteLaunching:!1})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?p()(p()({},e),{},f()({},t.siteId,t.domains)):e}}),g=n(16);function v(e){var t=regeneratorRuntime.mark(u),n=regeneratorRuntime.mark(h),r=regeneratorRuntime.mark(b),i=regeneratorRuntime.mark(v),o=regeneratorRuntime.mark(y),a=function(){return{type:"FETCH_NEW_SITE"}},c=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},l=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function u(n){var r,i,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=s()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=p()(p()(p()({},o),i),{},{validate:!1}),t.next=8,Object(g.c)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return u=t.sent,t.next=11,c(u);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,l(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var d=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},f=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},m=function(e){return{type:"LAUNCH_SITE_COMPLETE",siteId:e}};function h(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:return t.next=4,Object(g.c)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 4:return t.next=6,m(e);case 6:return t.abrupt("return",!0);case 7:case"end":return t.stop()}}),n)}function b(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(g.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function v(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(g.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function y(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(g.c)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,d(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:y,receiveSiteTitle:d,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:c,receiveNewSiteFailed:l,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:u,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:h,launchSiteStart:f,launchSiteComplete:m,getCart:b,setCart:v}}var y=regeneratorRuntime.mark(_),O=regeneratorRuntime.mark(E);function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(o.dispatch)(a).fetchSite();case 2:return n.prev=2,n.next=5,Object(g.c)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,Object(o.dispatch)(a).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,Object(o.dispatch)(a).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),y,null,[[2,10]])}function E(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(g.c)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,Object(o.dispatch)(a).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),O,null,[[0,8]])}var j,S=function(e){return e},w=function(e){return e.newSite.data},x=function(e){return e.newSite.error},C=function(e){return e.newSite.isFetching},k=function(e){return e.isFetchingSiteDetails},N=function(e){return!!e.newSite.data},P=function(e,t){return e.sites[t]},A=function(e,t){var n;return null===(n=Object(o.select)(a).getSite(t))||void 0===n?void 0:n.name},T=function(e,t){var n;return null===(n=e.launchStatus[t])||void 0===n?void 0:n.isSiteLaunched},L=function(e,t){var n;return null===(n=e.launchStatus[t])||void 0===n?void 0:n.isSiteLaunching},D=function(e,t){return e.sitesDomains[t]},R=function(e,t){var n;return null===(n=Object(o.select)(a).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},I=function(e,t){var n;return null===(n=Object(o.select)(a).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))};!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(j||(j={}));var F=!1;function M(e){return F||(F=!0,Object(o.registerStore)(a,{actions:v(e),controls:g.a,reducer:b,resolvers:r,selectors:i})),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"STORE_KEY",(function(){return c})),n.d(t,"register",(function(){return K}));var r={};n.r(r),n.d(r,"setSidebarFullscreen",(function(){return f})),n.d(r,"unsetSidebarFullscreen",(function(){return m})),n.d(r,"setStep",(function(){return p})),n.d(r,"setDomain",(function(){return h})),n.d(r,"unsetDomain",(function(){return b})),n.d(r,"confirmDomainSelection",(function(){return g})),n.d(r,"setDomainSearch",(function(){return v})),n.d(r,"setPlan",(function(){return y})),n.d(r,"unsetPlan",(function(){return O})),n.d(r,"updatePlan",(function(){return _})),n.d(r,"openSidebar",(function(){return E})),n.d(r,"closeSidebar",(function(){return j})),n.d(r,"openFocusedLaunch",(function(){return S})),n.d(r,"closeFocusedLaunch",(function(){return w})),n.d(r,"enableExperimental",(function(){return x})),n.d(r,"showSiteTitleStep",(function(){return C})),n.d(r,"setModalDismissible",(function(){return k})),n.d(r,"unsetModalDismissible",(function(){return N})),n.d(r,"showModalTitle",(function(){return P})),n.d(r,"hideModalTitle",(function(){return A})),n.d(r,"enablePersistentSuccessView",(function(){return T})),n.d(r,"disablePersistentSuccessView",(function(){return L}));var i={};n.r(i),n.d(i,"getLaunchSequence",(function(){return D})),n.d(i,"getLaunchStep",(function(){return R})),n.d(i,"getState",(function(){return I})),n.d(i,"hasPaidDomain",(function(){return F})),n.d(i,"getSelectedDomain",(function(){return M})),n.d(i,"getSelectedPlan",(function(){return B})),n.d(i,"getPaidPlan",(function(){return U})),n.d(i,"hasSelectedDomain",(function(){return V})),n.d(i,"isStepCompleted",(function(){return z})),n.d(i,"isFlowCompleted",(function(){return H})),n.d(i,"isFlowStarted",(function(){return q})),n.d(i,"getFirstIncompleteStep",(function(){return W}));var o=n(31),a=n(3),c="automattic/launch",s={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},l=[s.Name,s.Domain,s.Plan,s.Final],u=Object(a.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},plan:function(e,t){return"SET_PLAN"===t.type?t.plan:"UNSET_PLAN"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),d=regeneratorRuntime.mark(_),f=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},m=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},p=function(e){return{type:"SET_STEP",step:e}},h=function(e){return{type:"SET_DOMAIN",domain:e}},b=function(){return{type:"UNSET_DOMAIN"}},g=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},v=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},y=function(e){return{type:"SET_PLAN",plan:e}},O=function(){return{type:"UNSET_PLAN"}};function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(o.select)("automattic/onboard/plans","getPlanBySlug",e);case 2:return t=n.sent,n.next=5,y(t);case 5:case"end":return n.stop()}}),d)}var E=function(){return{type:"OPEN_SIDEBAR"}},j=function(){return{type:"CLOSE_SIDEBAR"}},S=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},w=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},x=function(){return{type:"ENABLE_EXPERIMENTAL"}},C=function(){return{type:"SHOW_SITE_TITLE_STEP"}},k=function(){return{type:"SET_MODAL_DISMISSIBLE"}},N=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},P=function(){return{type:"SHOW_MODAL_TITLE"}},A=function(){return{type:"HIDE_MODAL_TITLE"}},T=function(){return{type:"ENABLE_SUCCESS_VIEW"}},L=function(){return{type:"DISABLE_SUCCESS_VIEW"}},D=function(){return l},R=function(){return s},I=function(e){return e},F=function(e){return!!e.domain&&!e.domain.is_free},M=function(e){return e.domain},B=function(e){return e.plan},U=function(e){var t;return e.plan&&!(null===(t=e.plan)||void 0===t?void 0:t.isFree)?e.plan:void 0},V=function(e){return!!M(e)||e.confirmedDomainSelection},z=function(e,t){if(t===s.Plan)return!!B(e);if(t===s.Name){var n=Object(a.select)("core").getEntityRecord("root","site",void 0);return!!(null==n?void 0:n.title)}return t===s.Domain&&Object(a.select)(c).hasSelectedDomain()},H=function(e){return l.slice(0,l.length-1).every((function(t){return z(e,t)}))},q=function(e){return l.some((function(t){return z(e,t)}))},W=function(e){return l.find((function(t){return!z(e,t)}))},$=n(35),G=Object($.a)("WP_LAUNCH");Object(a.use)(a.plugins.persistence,G);var Y=!1;function K(){return Y||(Y=!0,Object(a.registerStore)(c,{actions:r,controls:o.controls,reducer:u,selectors:i,persist:["domain","domainSearch","plan","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]})),c}},function(e,t,n){"use strict";n.r(t),n.d(t,"featuresList",(function(){return d})),n.d(t,"register",(function(){return b}));var r={};n.r(r),n.d(r,"getAllFeatures",(function(){return m})),n.d(r,"getRecommendedPlanSlug",(function(){return p}));var i=n(31),o=n(3),a="automattic/wpcom-features",c=n(11),s=c.e,l=c.f,u=c.b,d={domain:{id:"domain",minSupportedPlan:s},store:{id:"store",minSupportedPlan:c.c},seo:{id:"seo",minSupportedPlan:u},plugins:{id:"plugins",minSupportedPlan:u},"ad-free":{id:"ad-free",minSupportedPlan:s},"image-storage":{id:"image-storage",minSupportedPlan:l},"video-storage":{id:"video-storage",minSupportedPlan:l},support:{id:"support",minSupportedPlan:u}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e},m=function(e){return e},p=function(e,t){var n=m(e);return t.length?t.reduce((function(e,t){var r=n[t].minSupportedPlan;return c.i.indexOf(r)>c.i.indexOf(e)?r:e}),n[t[0]].minSupportedPlan):""},h=!1;function b(){return h||(h=!0,Object(o.registerStore)(a,{controls:i.controls,reducer:f,selectors:r})),a}},function(e,t,n){var r=n(98),i=n(100);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(7),a=n.n(o),c=n(3),s=n(19),l=n(38),u={state:s.a.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},d=Object(c.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?a()(a()({},e),{},{state:s.a.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?a()(a()({},e),{},{state:s.a.Success,data:a()(a()({},e.data),{},i()({},Object(l.a)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?a()(a()({},e),{},{state:s.a.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?a()(a()({},e),{},i()({},t.domainName,t.availability)):e}});t.a=d},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(t)-1,s=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<s.length;n++){var l=s[n],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return o.splice(c,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=c(n(1)),o=c(n(108)),a=c(n(111));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,a,c,u,d,f,m,p,h=[],b={};for(f=0;f<e.length;f++)if("string"!==(d=e[f]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+s);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],c=f;break}h.push(t[d.value])}else h.push(d.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(c,e),m=l(e.slice(c+1,u),t),a=i.default.cloneElement(n,{},m),h.push(a),u<e.length-1&&(p=l(e.slice(u+1),t),h=h.concat(p))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,a.default)(t);try{return l(o,n)}catch(c){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},function(e,t,n){var r=n(33),i=n(64);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r=n(34),i=n(65),o=n(66),a=r.rotl32,c=r.sum32,s=r.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],f=this.h[3],m=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),h=s(a(i,5),l(p,o,u,f),m,n[r],d[p]);m=f,f=u,u=a(o,30),o=i,i=h}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],f),this.h[4]=c(this.h[4],m)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";e.exports=n(116)},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(14),a=n.n(o),c=n(3),s=n(19),l=n(38);t.a=function(e){function t(t,n){return i()(i()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(a()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),a()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return Object(c.select)(s.b).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return Object(c.select)("core/data").isResolving(s.b,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[Object(l.a)(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}}},function(e,t,n){var r=n(52),i=n(119);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)}},function(e,t,n){"use strict";var r=n(34),i=n(65),o=n(66),a=n(51),c=r.sum32,s=r.sum32_4,l=r.sum32_5,u=o.ch32,d=o.maj32,f=o.s0_256,m=o.s1_256,p=o.g0_256,h=o.g1_256,b=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(v,b),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(h(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],b=this.h[2],g=this.h[3],v=this.h[4],y=this.h[5],O=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var E=l(_,m(v),u(v,y,O),this.k[r],n[r]),j=c(f(i),d(i,o,b));_=O,O=y,y=v,v=c(g,E),g=b,b=o,o=i,i=c(E,j)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],b),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],v),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],O),this.h[7]=c(this.h[7],_)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r="__global_unique_id__";e.exports=function(){return window[r]=(window[r]||0)+1}},function(e,t,n){"use strict";n.r(t),n.d(t,"isAvailable",(function(){return ge})),n.d(t,"getCategories",(function(){return ve})),n.d(t,"__internalGetDomainSuggestions",(function(){return ye}));var r,i,o,a,c=n(39),s=n(14),l=n.n(s),u=n(10),d=n.n(u),f=n(13),m=n.n(f),p=n(76),h=n.n(p);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var b={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function g(e){var t=function(e){for(var t,n,c,s,l=[],u=[];t=e.match(a);){for(n=t[0],(c=e.substr(0,t.index).trim())&&l.push(c);s=u.pop();){if(o[n]){if(o[n][0]===s){n=o[n][1]||n;break}}else if(i.indexOf(s)>=0||r[s]<r[n]){u.push(s);break}l.push(s)}o[n]||u.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&l.push(e),l.concat(u.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],o=b[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var v={contextDelimiter:"",onMissingKey:null};function y(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},v)this.options[n]=void 0!==t&&n in t?t[n]:v[n]}y.prototype.getPluralForm=function(e,t){var n,r,i,o,a=this.pluralForms[e];return a||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=g(r),i=function(e){return+o({n:e})}),a=this.pluralForms[e]=i),a(t)},y.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var O=n(77),_=n.n(O),E=n(78),j=n.n(E),S=n(33),w=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function x(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(w,(function(){var e,r,i,o,a;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===o?a=parseFloat(a)||0:"d"===o&&(a=parseInt(a)||0),void 0!==i&&("f"===o?a=a.toFixed(i):"s"===o&&(a=a.substr(0,i))),null!=a?a:"")}))}
|
13 |
/*
|
14 |
* Exposes number format capability
|
15 |
*
|
16 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
17 |
* @license See CREDITS.md
|
18 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
19 |
-
*/function C(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var k=m()("i18n-calypso"),N="number_format_decimals",P="number_format_thousands_sep",A="messages",T=[function(e){return e}],L={};function D(){B.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function R(e){return Array.prototype.slice.call(e)}function I(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&D("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",R(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&D("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",R(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function F(e,t){return e.dcnpgettext(A,t.context,t.original,t.plural,t.count)}function M(e,t){for(var n=T.length-1;n>=0;n--){var r=T[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return F(e.state.tannin,r)}return null}function B(){if(!(this instanceof B))return new B;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:_()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new S.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}B.throwErrors=!1,B.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},B.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},B.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},B.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return C(e,n,r,i)},B.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},B.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==L[n+e])return L[n+e];var r=j()().update(e).digest("hex");return L[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)T.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));T.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),f=l;f<=u;f++)T.push(a(f))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new y(d()({},A,this.state.locale)),this.state.numberFormatSettings.decimal_point=F(this.state.tannin,I([N])),this.state.numberFormatSettings.thousands_sep=F(this.state.tannin,I([P])),this.state.numberFormatSettings.decimal_point===N&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===P&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},B.prototype.getLocale=function(){return this.state.locale},B.prototype.getLocaleSlug=function(){return this.state.localeSlug},B.prototype.getLocaleVariant=function(){return this.state.localeVariant},B.prototype.isRtl=function(){return"rtl"===this.state.textDirection},B.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},B.prototype.hasTranslation=function(){return!!M(this,I(arguments))},B.prototype.translate=function(){var e=I(arguments),t=M(this,e);if(t||(t=F(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=x.apply(void 0,l()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=h()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},B.prototype.reRenderTranslations=function(){k("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},B.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},B.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var U=B,V=n(7),z=n.n(V),H=n(40),q=n.n(H),W=n(41),$=n.n(W),G=n(30),Y=n.n(G),K=n(42),X=n.n(K),Q=n(43),J=n.n(Q),Z=n(0),ee=n(1),te=n.n(ee),ne=n(6),re=n.n(ne),ie=n(15),oe=n.n(ie),ae=n(79),ce=n(22);var se,le,ue=new U,de=(ue.numberFormat.bind(ue),ue.translate.bind(ue)),fe=(ue.configure.bind(ue),ue.setLocale.bind(ue),ue.getLocale.bind(ue),ue.getLocaleSlug.bind(ue),ue.getLocaleVariant.bind(ue),ue.isRtl.bind(ue),ue.addTranslations.bind(ue),ue.reRenderTranslations.bind(ue),ue.registerComponentUpdateHook.bind(ue),ue.registerTranslateHook.bind(ue),ue.state,ue.stateObserver,ue.on.bind(ue),ue.off.bind(ue),ue.emit.bind(ue),le={numberFormat:(se=ue).numberFormat.bind(se),translate:se.translate.bind(se)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(ue),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return Object(ae.useSubscription)(t)}var r=Object(ce.createHigherOrderComponent)((function(e){return Object(ee.forwardRef)((function(t,r){var i=n();return Object(Z.createElement)(e,oe()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(ue)),me=(fe.useRtl,fe.withRtl,n(25)),pe=n(16),he=regeneratorRuntime.mark(ve),be=regeneratorRuntime.mark(ye),ge=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,Object(pe.b)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",Object(me.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",Object(me.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function ve(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(pe.b)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",Object(me.receiveCategories)(e.body));case 4:case"end":return t.stop()}}),he)}function ye(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",Object(me.receiveDomainSuggestionsError)("Empty query"));case 2:return n.next=4,Object(me.fetchDomainSuggestions)();case 4:return n.prev=4,n.next=7,Object(pe.c)({apiVersion:"1.1",path:"/domains/suggestions",query:Object(c.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",Object(me.receiveDomainSuggestionsError)(n.t0.message||de("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",Object(me.receiveDomainSuggestionsError)(de("Invalid response from the server")));case 15:return n.abrupt("return",Object(me.receiveDomainSuggestionsSuccess)(e,t));case 16:case"end":return n.stop()}}),be,null,[[4,10]])}},,,,,,,,function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(c){r=!0,i=c}finally{try{_n||null==a.return||a.return()}finally{if(r)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(99);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){var r=n(14);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var n;function r(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=i.formatters[n];if("function"==typeof r){var o=t[l];e=r.call(a,o),t.splice(l,1),l--}return e})),i.formatArgs.call(a,t);var u=a.log||i.log;u.apply(a,t)}}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=o,r.extend=a,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function o(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function a(e,t){var n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function c(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){var e=[].concat(r(i.names.map(c)),r(i.skips.map(c).map((function(e){return"-"+e})))).join(",");return i.enable(""),e},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var o=i.instances[t];o.enabled=i.enabled(o.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(105),Object.keys(e).forEach((function(t){i[t]=e[t]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t,n){var r=n(59);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,a=7*o,c=365.25*o;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*c;case"weeks":case"week":case"w":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(50),i=n(62),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,i,o,a,s,u,d,m,p,h,b,g){var v,y=t;if("function"==typeof u?y=u(n,y):y instanceof Date?y=p(y):"comma"===i&&c(y)&&(y=r.maybeMap(y,(function(e){return e instanceof Date?p(e):e})).join(",")),null===y){if(o)return s&&!b?s(n,f.encoder,g,"key"):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(y))return s?[h(b?n:s(n,f.encoder,g,"key"))+"="+h(s(y,f.encoder,g,"value"))]:[h(n)+"="+h(String(y))];var O,_=[];if(void 0===y)return _;if(c(u))O=u;else{var E=Object.keys(y);O=d?E.sort(d):E}for(var j=0;j<O.length;++j){var S=O[j],w=y[S];if(!a||null!==w){var x=c(y)?"function"==typeof i?i(n,S):n:n+(m?"."+S:"["+S+"]");l(_,e(w,x,i,o,a,s,u,d,m,p,h,b,g))}}return _};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=f.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):c(s.filter)&&(n=s.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[u];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var b=n[h];s.skipNulls&&null===r[b]||l(d,m(r[b],b,p,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var g=d.join(s.delimiter),v=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""}},function(e,t,n){"use strict";var r=n(50),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(c=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,c=e[o];if("[]"===c&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[l]=i:a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),m=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),m=n,n=f.length);for(n=0;n<f.length;++n)if(n!==m){var h,b,g=f[n],v=g.indexOf("]="),y=-1===v?g.indexOf("="):v+1;-1===y?(h=t.decoder(g,a.decoder,p,"key"),b=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,y),a.decoder,p,"key"),b=r.maybeMap(s(g.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===p&&(b=c(b)),g.indexOf("[]=")>-1&&(b=o(b)?[b]:b),i.call(l,h)?l[h]=r.combine(l[h],b):l[h]=b}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),m=0;m<f.length;++m){var p=f[m],h=l(p,u[p],n,"string"==typeof e);d=r.merge(d,h,n)}return r.compact(d)}},function(e,t,n){"use strict";var r=n(1),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(63),a=n(109),c=n(110),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var o,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===i)return n(r,e,""===t?"."+l(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var m=0;m<e.length;m++)d+=u(o=e[m],f+l(o,m),n,r);else{var p=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(p){0;for(var h,b=p.call(e),g=0;!(h=b.next()).done;)d+=u(o=h.value,f+l(o,g++),n,r)}else if("object"===c){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var m,p,h=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var i,a,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?O(d,c,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=s+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),c.push(d))}function O(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=v.getPooled(t,o,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},m=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(p=v).instancePool=[],p.getPooled=m||h,p.poolSize||(p.poolSize=10),p.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)O(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(63);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){var r=n(52),i=n(30);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){"use strict";
|
20 |
/** @license React v1.3.0
|
21 |
* use-subscription.production.min.js
|
22 |
*
|
@@ -37,4 +37,4 @@ object-assign
|
|
37 |
*
|
38 |
* This source code is licensed under the MIT license found in the
|
39 |
* LICENSE file in the root directory of this source tree.
|
40 |
-
*/var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case s:case c:case p:return e;default:switch(e=e&&e.$$typeof){case u:case m:case g:case b:case l:return e;default:return t}}case o:return t}}}function j(e){return E(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=o,t.Profiler=s,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return j(e)||E(e)===d},t.isConcurrentMode=j,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===b},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===c},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===O||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},function(e,t,n){},function(e,t,n){"use strict";var r=n(134);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(92);var r="automattic/site",i="automattic/launch",o=n(0),a=n(1),c=n.n(a),s=n(3),l=n(36),u=n(24),d=n(7),f=n.n(d),m=n(37),p=function(e){window.location.href=e},h=a.createContext({siteId:0,redirectTo:p,openCheckout:function(e,t){p(Object(m.addQueryArgs)("/checkout/".concat(e),f()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch"}),b=n(15),g=n.n(b),v=n(22),y=Object(a.createContext)("en"),O=function(e){var t=e.children,n=e.localeSlug;return Object(o.createElement)(y.Provider,{value:n},t)};function _(){return Object(a.useContext)(y)}Object(v.createHigherOrderComponent)((function(e){return function(t){var n=_();return Object(o.createElement)(e,g()({locale:n},t))}}),"withLocale");var E=n(6),j=n.n(E),S=n(9),w=n.n(S),x=n(2),C=n(4);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function P(e,t){if(null==e)return{};var n,r,i=N(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var T=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=P(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},L=n(12),D=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(L.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),R=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),I=n(17),F=I.Site.register({client_id:"",client_secret:""}),M=I.Plans.register(),B=I.DomainSuggestions.register({vendor:"variation2_front"}),U=I.Launch.register(),V=n(21),z=n.n(V),H=Object(x.__)("Site Title","full-site-editing"),q=function(e){var t=e.currentSiteTitle;return(void 0===t?"":t)===H},W=function(e){return""!==e&&!q({currentSiteTitle:e})},$=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},G=function(e,t){return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t}}},Y=function(e){return!!e.is_domain_registration},K=function(e){return[I.Plans.PLAN_FREE,I.Plans.PLAN_PERSONAL,I.Plans.PLAN_PREMIUM,I.Plans.PLAN_BUSINESS,I.Plans.PLAN_ECOMMERCE].indexOf(e.product_slug)>-1};function X(){var e=a.useContext(h),t=e.siteId,n=e.flow,r=e.openCheckout,i=Object(s.useSelect)((function(e){return e(U).getState()})),o=i.plan,c=i.domain,l=Object(s.useSelect)((function(e){return e(M).isPlanEcommerce(null==o?void 0:o.storeSlug)})),u=Object(s.useDispatch)(F),d=u.getCart,m=u.setCart;return{goToCheckout:function(){var e=z()(regeneratorRuntime.mark((function e(){var i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o&&$(o,n),a=c&&G(c,n),e.next=4,d(t);case 4:return s=e.sent,e.next=7,m(t,f()(f()({},s),{},{products:[i,a]}));case 7:r(t,l);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}function Q(){var e,t,n=a.useContext(h).siteId,r=Object(s.useSelect)((function(e){return e(F).getSite(n)})),i=Object(s.useSelect)((function(e){return e(F).isSiteLaunched(n)})),o=Object(s.useSelect)((function(e){return e(F).isSiteLaunching(n)})),c=Object(s.useSelect)((function(e){return e(F).isFetchingSiteDetails()}));return{sitePlan:null==r?void 0:r.plan,isPaidPlan:r&&!(null===(e=r.plan)||void 0===e?void 0:e.is_free),isSiteLaunched:i,isSiteLaunching:o,selectedFeatures:null==r||null===(t=r.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!c}}var J=n(10),Z=n.n(J),ee=(n(120),function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h1":r;return a.createElement(i,{className:w()("onboarding-title",t)},n)}),te=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h2":r;return a.createElement(i,{className:w()("onboarding-subtitle",t)},n)},ne=n(18),re=n.n(ne),ie=(n(121),function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,a="";return!0===i&&(a="is-sticky"),!1===i&&(a="no-sticky"),Object(o.createElement)("div",{className:w()("action-buttons",t,a)},n)}),oe=function(e){var t=e.className,n=e.children,r=re()(e,["className","children"]);return Object(o.createElement)(C.Button,g()({className:w()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||Object(x.__)("Go back","full-site-editing"))},ae=function(e){var t=e.className,n=e.children,r=re()(e,["className","children"]);return Object(o.createElement)(C.Button,g()({className:w()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||Object(x.__)("Continue","full-site-editing"))},ce=(n(96),function(e){var t=e.children;return Object(o.createElement)(o.Fragment,null,t)});function se(){var e=Object(a.useContext)(h).siteId,t=Object(s.useSelect)((function(t){return t(F).getSiteTitle(e)})),n=Object(a.useState)(t),r=j()(n,2),i=r[0],o=r[1];Object(a.useEffect)((function(){o(t)}),[t]);var c=Object(s.useDispatch)(F).saveSiteTitle;return{title:i,updateTitle:o,saveTitle:function(){void 0!==t&&c(e,i)}}}n(97);var le=function(e){var t=e.onPrevStep,n=e.onNextStep,r=se(),i=r.title,a=r.updateTitle,c=r.saveTitle,s=function(){c(),null==n||n()};return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Name your site","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Pick a name for your site.","full-site-editing"))),Object(o.createElement)(ie,{sticky:!1},Object(o.createElement)(ae,{onClick:s,disabled:!(null==i?void 0:i.trim())}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)("form",{onSubmit:s},Object(o.createElement)(C.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:a,onBlur:c,value:i,spellCheck:!1,autoComplete:"off",placeholder:Object(x.__)("Enter site name","full-site-editing"),autoCorrect:"off"}),Object(o.createElement)("div",{className:"nux-launch-step__input-hint"},Object(o.createElement)(C.Tip,{size:18}),Object(o.createElement)("span",null,Object(x.__)("Don't worry, you can change it later.","full-site-editing"))))),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==t||t()}}),Object(o.createElement)(ae,{onClick:s,disabled:!(null==i?void 0:i.trim())}))))},ue=n(14),de=n.n(ue),fe=n(23);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var pe=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=P(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},he=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),be=n(13),ge=n.n(be),ve=ge()("calypso:analytics");n(82);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(47);var ye=n(33),Oe=ge()("lib/load-script/callback-handler"),_e=new Map;function Ee(){return _e}function je(e){return Ee().has(e)}function Se(e,t){var n=Ee();je(e)?(Oe('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(Oe('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ee(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));Oe(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function xe(){var e=this.getAttribute("src");Oe('Handling successful request for "'.concat(e,'"')),we(e),this.onload=null}function Ce(){var e=this.getAttribute("src");Oe('Handling failed request for "'.concat(e,'"')),we(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var ke=ge()("lib/load-script/dom-operations");ge()("package/load-script");function Ne(e,t){var n;if(!je(e)&&(n=function(e){ke('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=xe,t.onerror=Ce,t}(e),ke("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){Se(e,(function(e){null===e?t():n(e)}))}));Se(e,t)}var Pe,Ae=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account"];Promise.resolve();function Te(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&Ne("//stats.wp.com/w2.js?1");var Le=new ye.EventEmitter;function De(e,t){if(ve('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(fe.includes)(Ae,e)){if(Pe){var n=Pe(t);t=f()(f()({},t),n)}t=Object(fe.omitBy)(t,fe.isUndefined),ve('Recording event "%s" with actual props %o',e,t),Te(["recordEvent",e,t]),Le.emit("record-event",e,t)}else ve('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var Re=n(152);var Ie=n(19),Fe=["en","ja","es","pt","fr","pt-br"],Me={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},Be=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],Ue=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],Ve="http://__domain__.invalid",ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(Me[r]||r,".").concat(e)),n}},He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=(Me[i]||i)+r.pathname),r}},qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=(Me[r]||r)+n.pathname),n}},We={"wordpress.com/support/":qe(Be),"wordpress.com/blog/":qe(Fe,/^\/blog\/?$/),"wordpress.com/tos/":ze("wordpress.com",Ue),"jetpack.com":ze("jetpack.com",["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]),"en.support.wordpress.com":He("/support",Be),"en.blog.wordpress.com":He("/blog",Fe,/^\/$/),"en.forums.wordpress.com":ze("forums.wordpress.com",["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"]),"automattic.com/privacy/":qe(["en","fr","de"]),"automattic.com/cookies/":qe(["en","fr","de"]),"wordpress.com":ze("wordpress.com",Ue)};function $e(e,t){var n=new URL(String(e),Ve);if(n.origin===Ve)return e;if(n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/")),(!t||"en"===t)&&"en.wordpress.com"===n.host)return n.host="wordpress.com",n.href;"en.wordpress.com"===n.host&&(n.host="wordpress.com");for(var r=[n.host,n.host+n.pathname,n.host+n.pathname.substr(0,1+n.pathname.indexOf("/",1))],i=r.length-1;i>=0;i--)if(r[i]in We)return We[r[i]](n,t).href;return e}function Ge(){var e=_();return Object(a.useCallback)((function(t,n){return $e(t,n||e)}),[e])}Object(v.createHigherOrderComponent)((function(e){return function(t){var n=Ge();return Object(o.createElement)(e,g()({localizeUrl:n},t))}}),"withLocalizeUrl");var Ye=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Ke=(n(124),function(e){var t=e.children,n=e.className,r=e.id,i=e.position,c=void 0===i?"bottom center":i,s=e.noArrow,l=void 0===s||s,u=Object(a.useState)(!1),d=j()(u,2),f=d[0],m=d[1];return Object(o.createElement)(C.Button,{icon:Ye,onClick:function(){m(!f)},className:"info-tooltip","data-testid":"info-tooltip"},f&&Object(o.createElement)(C.Popover,{id:r,className:w()("info-tooltip__content",n),onClose:function(){m(!1)},position:c,noArrow:l},t))}),Xe="radio",Qe="button",Je="individual-item",Ze=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,c=e.railcarId,s=e.hstsRequired,l=void 0!==s&&s,u=e.isFree,d=void 0!==u&&u,f=e.isExistingSubdomain,m=void 0!==f&&f,p=e.isRecommended,h=void 0!==p&&p,b=e.onSelect,g=e.onRender,y=e.selected,O=e.type,_=void 0===O?Xe:O,E=Ge(),S=Object(v.useViewportMatch)("small","<"),k=n.indexOf("."),N=n.slice(0,k),P=n.slice(k),A=Object(a.useState)(),T=j()(A,2),L=T[0],D=T[1],R=Object(a.useState)(),I=j()(R,2),F=I[0],M=I[1],B=Object(Re.a)(),U=_===Je?Object(x.__)("Default","full-site-editing"):Object(x.__)("Free","full-site-editing"),V=S?Object(x.__)("Included in paid plans","full-site-editing"):Object(o.createInterpolateElement)(Object(x.__)("<strong>First year included</strong> in paid plans","full-site-editing"),{strong:Object(o.createElement)("strong",null)}),z=_===Je?V:Object(x.__)("Included in plans","full-site-editing");Object(a.useEffect)((function(){n!==L&&F!==c&&c&&(g(),D(n),M(c))}),[n,L,F,c,g]);var H=function(){var e;F&&De("calypso_traintracks_interact",{railcar:(e={action:"domain_selected",railcarId:F}).railcarId,action:e.action}),b(n)};return Object(o.createElement)("label",{className:w()("domain-picker__suggestion-item",{"is-free":d,"is-selected":y,"is-unavailable":t},"type-".concat(_))},[Xe,Je].indexOf(_)>-1&&(r?Object(o.createElement)(C.Spinner,null):Object(o.createElement)("input",{"aria-labelledby":B,className:"domain-picker__suggestion-radio-button",type:"radio",disabled:t,name:"domain-picker-suggestion-option",onChange:H,checked:y&&!t})),Object(o.createElement)("div",{className:"domain-picker__suggestion-item-name"},Object(o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},Object(o.createElement)("span",{className:w()("domain-picker__domain-wrapper",{"with-margin":!l})},Object(o.createElement)("span",{className:"domain-picker__domain-sub-domain"},N),Object(o.createElement)("span",{className:"domain-picker__domain-tld"},P)),l&&Object(o.createElement)(Ke,{position:S?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},Object(o.createInterpolateElement)(Object(x.__)("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:Object(o.createElement)("b",null,P),learn_more_link:Object(o.createElement)("a",{target:"_blank",rel:"noreferrer",href:E("https://wordpress.com/support/https-ssl")})})),h&&!t&&Object(o.createElement)("div",{className:"domain-picker__badge is-recommended"},Object(x.__)("Recommended","full-site-editing"))),m&&_!==Je&&Object(o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},Object(x.__)("You can change your free subdomain later under Domain Settings.","full-site-editing"))),Object(o.createElement)("div",{className:w()("domain-picker__price",{"is-paid":!d})},t&&Object(x.__)("Unavailable","full-site-editing"),d&&!t&&U,!d&&!t&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",z," "),Object(o.createElement)("span",{className:"domain-picker__price-cost"},Object(x.sprintf)(Object(x.__)("%s/year","full-site-editing"),i)))),_===Qe&&(r?Object(o.createElement)(C.Spinner,null):Object(o.createElement)("div",{className:"domain-picker__action"},Object(o.createElement)(C.Button,{isSecondary:!0,"aria-labelledby":B,className:w()("domain-picker__suggestion-select-button",{"is-selected":y&&!t}),disabled:t,onClick:H},y&&!t?Object(x.__)("Selected","full-site-editing"):Object(x.__)("Select","full-site-editing")))))},et=function(e){var t=e.type;return Object(o.createElement)("div",{className:w()("domain-picker__suggestion-item placeholder","type-".concat(t))},Object(o.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),Object(o.createElement)("div",{className:"domain-picker__price placeholder"}))};function tt(e,t){return e===t}function nt(e,t,n){var r=n&&n.equalityFn?n.equalityFn:tt,i=Object(a.useState)(e),o=i[0],c=i[1],s=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=Object(a.useRef)(null),o=Object(a.useRef)([]),c=n.leading,s=Object(a.useRef)(!1),l=Object(a.useRef)(null),u=Object(a.useRef)(!1),d=Object(a.useRef)(e);d.current=e;var f=Object(a.useCallback)((function(){clearTimeout(l.current),clearTimeout(i.current),i.current=null,o.current=[],l.current=null,s.current=!1}),[]);return Object(a.useEffect)((function(){return function(){u.current=!0}}),[]),[Object(a.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(l.current),!l.current&&c&&!s.current)return d.current.apply(d,e),void(s.current=!0);l.current=setTimeout((function(){f(),u.current||d.current.apply(d,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;f(),u.current||d.current.apply(null,e)}),r))}),[r,t,f,c]),f,function(){l.current&&(d.current.apply(null,o.current),f())}]}(Object(a.useCallback)((function(e){return c(e)}),[]),t,n),l=s[0],u=s[1],d=Object(a.useRef)(e);return Object(a.useEffect)((function(){r(d.current,e)||(l(e),d.current=e)}),[e,l,r]),[o,u]}var rt=I.DomainSuggestions.register({vendor:"variation2_front"}),it=["available","available_premium"];var ot=Object(o.createElement)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(L.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),at=(n(125),function(e){var t=e.onSelect,n=e.selected,r=Object(o.useState)(!1),i=j()(r,2),a=i[0],c=i[1],l=function(e){c(!1),t(e)},u=Object(s.useSelect)((function(e){return e(rt).getCategories()}));return Object(o.createElement)("div",{className:w()("domain-categories",{"is-open":a})},Object(o.createElement)(C.Button,{className:"domain-categories__dropdown-button",onClick:function(){return c(!a)}},Object(o.createElement)("span",null,n||Object(x.__)("All Categories","full-site-editing")),Object(o.createElement)(pe,{icon:ot,size:16})),Object(o.createElement)("ul",{className:"domain-categories__item-group"},Object(o.createElement)("li",{className:w()("domain-categories__item",{"is-selected":!n})},Object(o.createElement)(C.Button,{onClick:function(){return l()}},Object(x.__)("View all","full-site-editing"))),u.map((function(e){var t=e.slug,r=e.title;return Object(o.createElement)("li",{key:t,className:w()("domain-categories__item",{"is-selected":t===n})},Object(o.createElement)(C.Button,{onClick:function(){return l(t)}},r))}))))}),ct={__:x.__,_n:x._n,_nx:x._nx,_x:x._x,isRTL:x.isRTL,setLocaleData:x.setLocaleData},st=a.createContext(dt()),lt=function(){return a.useContext(st)};Object(v.createHigherOrderComponent)((function(e){return function(t){var n=lt();return Object(o.createElement)(e,g()({},n,t))}}),"withI18n");function ut(e,t,n){var r=e[t],i=n.hasFilter,o=n.applyFilters;return i("preTranslation")||i("postTranslation")?function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o("preTranslation",i,t,n);return o("postTranslation",r.apply(void 0,de()(c)),c,t,n)}:r}function dt(e,t){var n=e?Object(x.createI18n)(e):ct,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:Object(u.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:ut(n,"__",c),_n:ut(n,"_n",c),_nx:ut(n,"_nx",c),_x:ut(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}var ft=function(){var e=lt(),__=e.__,t=e.isRTL;return Object(o.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},Object(o.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),Object(o.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),Object(o.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),Object(o.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),Object(o.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},Object(o.createElement)("tspan",{fill:"#999"},Object(o.createElement)("tspan",null,"https://")),Object(o.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))},mt=(n(123),function(e){var t=e.groupItems,n=e.children;return t?Object(o.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):Object(o.createElement)(o.Fragment,null,n)}),pt=function(e){var t,n=e.header,r=e.showDomainCategories,i=e.onDomainSelect,c=e.onExistingSubdomainSelect,l=e.quantity,u=void 0===l?5:l,d=e.quantityExpanded,f=void 0===d?10:d,m=e.onDomainSearchBlur,p=void 0===m?fe.noop:m,h=e.analyticsFlowId,b=e.analyticsUiAlgo,g=e.initialDomainSearch,v=void 0===g?"":g,y=e.onSetDomainSearch,O=void 0===y?fe.noop:y,_=e.currentDomain,E=e.isCheckingDomainAvailability,S=e.existingSubdomain,w=e.segregateFreeAndPaid,k=void 0!==w&&w,N=e.showSearchField,P=void 0===N||N,A=e.itemType,T=void 0===A?Xe:A,L=e.locale,D=e.areDependenciesLoading,R=void 0!==D&&D,I=Object(x.__)("Search for a domain","full-site-editing"),F=Object(a.useState)(!1),M=j()(F,2),B=M[0],U=M[1],V=Object(a.useState)(v),z=j()(V,2),H=z[0],q=z[1],W=Object(a.useState)(),$=j()(W,2),G=$[0],Y=$[1],K=Object(a.useState)(),X=j()(K,2),Q=X[0],J=X[1],Z=Object(s.useSelect)((function(e){return e(rt).getDomainSuggestionVendor()})),ee=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",r=nt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",300),i=j()(r,1)[0],o=Object(s.useDispatch)(rt).invalidateResolutionForStoreSelector;return Object(s.useSelect)((function(r){if(i&&!(i.length<2)){var a=r(rt),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:n,category_slug:t}),state:s(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,t,e])}(H.trim(),f,G,L)||{},te=ee.allDomainSuggestions,ne=ee.errorMessage,re=ee.state,ie=ee.retryRequest,oe=null==te?void 0:te.slice(S?1:0,B?f:u),ae=S&&Array.isArray(oe)?[S].concat(de()(oe)):oe,ce=null==ae?void 0:ae.some((function(e){return(null==e?void 0:e.domain_name)===(null==Q?void 0:Q.domain_name)}));Q&&!ce&&(null==oe||oe.push(Q));var se=Object(s.useSelect)((function(e){return e(rt).getDomainAvailabilities()}),[]);Object(a.useEffect)((function(){var e=null==ae?void 0:ae.some((function(e){return e.domain_name===(null==_?void 0:_.domain_name)}));(null==ae?void 0:ae.length)&&!e&&J(_)}),[_,ae]),Object(a.useEffect)((function(){U(!1)}),[H]);var le=Object(a.useState)(),ue=j()(le,2),me=ue[0],be=ue[1];Object(a.useEffect)((function(){te&&be(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat(Object(Re.a)().replace(/-/g,""),"-").concat(e)}("suggestion"))}),[te,be]),Object(a.useEffect)((function(){P||q(v)}),[v,P]);var ge=function(e,t,n,r){var i,o="/domains/search/".concat(Z,"/").concat(h).concat(G?"/"+G:"");De("calypso_traintracks_render",{railcar:(i={uiAlgo:"/".concat(h,"/").concat(b),fetchAlgo:o,query:H,railcarId:t,result:r?e+"#recommended":e,uiPosition:n}).railcarId,ui_algo:i.uiAlgo,ui_position:i.uiPosition,fetch_algo:i.fetchAlgo,rec_result:i.result,fetch_query:i.query})},ve=re===Ie.a.Failure,ye=(null===(t=H.trim)||void 0===t?void 0:t.call(H).length)<=1,Oe=!ve&&!ye,_e=!ve&&ye,Ee=(Q?u+1:u)-(S?1:0);return Object(o.createElement)("div",{className:"domain-picker"},n&&n,P&&Object(o.createElement)("div",{className:"domain-picker__search"},Object(o.createElement)("div",{className:"domain-picker__search-icon"},Object(o.createElement)(pe,{icon:he})),Object(o.createElement)(C.TextControl,{hideLabelFromVision:!0,label:I,placeholder:I,onChange:function(e){q(e),O(e)},onBlur:function(e){p&&p(e.currentTarget.value)},value:H,dir:"ltr"})),ve&&Object(o.createElement)(C.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},Object(o.createElement)("p",{className:"domain-picker__error-message"},ne||Object(x.__)("An error has occurred, please check your connection and retry.","full-site-editing")),Object(o.createElement)(C.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ie},Object(x.__)("Retry","full-site-editing"))),(Oe||R)&&Object(o.createElement)("div",{className:"domain-picker__body"},r&&Object(o.createElement)("div",{className:"domain-picker__aside"},Object(o.createElement)(at,{selected:G,onSelect:Y})),Object(o.createElement)("div",{className:"domain-picker__suggestion-sections"},Object(o.createElement)(o.Fragment,null,k&&Object(o.createElement)("p",{className:"domain-picker__suggestion-group-label"},Object(x.__)("Keep sub-domain","full-site-editing")),Object(o.createElement)(mt,{groupItems:k},(null==S?void 0:S.domain_name)&&Object(o.createElement)(Ze,{key:null==S?void 0:S.domain_name,domain:null==S?void 0:S.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:me?"".concat(me,0):void 0,onRender:function(){return ge(null==S?void 0:S.domain_name,"".concat(me,0),0,!1)},selected:(null==_?void 0:_.domain_name)===(null==S?void 0:S.domain_name),onSelect:function(){null==c||c(null==S?void 0:S.domain_name)},type:T})),k&&Object(o.createElement)("p",{className:"domain-picker__suggestion-group-label"},Object(x.__)("Professional domains","full-site-editing")),Object(o.createElement)(mt,{groupItems:k},!R&&(null==oe?void 0:oe.map((function(e,t){var n,r=(null==S?void 0:S.domain_name)?t+1:t,a=1===r,c=null===(n=se[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,s=!c||(null==it?void 0:it.indexOf(c))>-1;return Object(o.createElement)(Ze,{key:e.domain_name,isUnavailable:!s,domain:e.domain_name,cost:e.cost,isLoading:(null==_?void 0:_.domain_name)===e.domain_name&&E,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:a,railcarId:me?"".concat(me).concat(r):void 0,onRender:function(){return ge(e.domain_name,"".concat(me).concat(r),r,a)},onSelect:function(){i(e)},selected:(null==_?void 0:_.domain_name)===e.domain_name,type:T})})))||Object(fe.times)(Ee,(function(e){return Object(o.createElement)(et,{type:T,key:e})})))),!B&&u<f&&(null==te?void 0:te.length)&&(null==te?void 0:te.length)>u&&Object(o.createElement)("div",{className:"domain-picker__show-more"},Object(o.createElement)(C.Button,{onClick:function(){return U(!0)},isLink:!0},Object(x.__)("View more results","full-site-editing"))))),_e&&!R&&Object(o.createElement)("div",{className:"domain-picker__empty-state"},Object(o.createElement)("p",{className:"domain-picker__empty-state--text"},Object(x.__)("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),Object(o.createElement)("div",null,Object(o.createElement)(ft,null))))};function ht(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:""}}function bt(){var e=a.useContext(h).siteId,t=Object(s.useSelect)((function(t){return t(F).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:Object(s.useSelect)((function(t){return t(F).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null==t?void 0:t.is_subdomain)}}function gt(){var e=function(){var e=a.useContext(h).siteId,t=Object(s.useDispatch)(F).getCart,n=a.useState(void 0),r=j()(n,2),i=r[0],o=r[1];return a.useEffect((function(){z()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return Y(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.meta;return Object(s.useSelect)((function(e){var n;return t?null===(n=e(B).getDomainSuggestions(t,{quantity:1,include_wordpressdotcom:!1,include_dotblogsubdomain:!1}))||void 0===n?void 0:n[0]:void 0}))}function vt(){var e,t=Object(s.useDispatch)(U),n=t.setDomain,r=t.unsetDomain,i=t.unsetPlan,o=t.confirmDomainSelection,a=Object(s.useSelect)((function(e){return e(U).getState()})),c=a.domain,l=a.plan,u=a.confirmedDomainSelection,d=bt().siteSubdomain;return c?e=c:u&&(e=ht(null==d?void 0:d.domain)),{onDomainSelect:function(e){o(),n(e),(null==l?void 0:l.isFree)&&i()},onExistingSubdomainSelect:function(){o(),r()},selectedDomain:c,currentDomain:e}}function yt(){var e,t,n=Object(s.useSelect)((function(e){return e(U).getState()})).domainSearch,r=se().title,i=Q().isLoadingSite,o=bt().siteSubdomain,a=Object(s.useDispatch)(U).setDomainSearch,c=n.trim()||r;c&&!q({currentSiteTitle:c})||(c=null!==(e=null==o||null===(t=o.domain)||void 0===t?void 0:t.split(".")[0])&&void 0!==e?e:"");return{domainSearch:c,isLoading:i,setDomainSearch:a}}var Ot="gutenboarding",_t=(n(122),function(e){var t=e.onPrevStep,n=e.onNextStep,r=Object(s.useSelect)((function(e){return e(i).getState()})).plan,a=vt().currentDomain,c=bt().siteSubdomain,l=yt(),u=l.domainSearch,d=l.setDomainSearch,f=Object(s.useDispatch)(i),m=f.setDomain,p=f.unsetDomain,h=f.unsetPlan,b=f.confirmDomainSelection,g=function(){null==n||n()};return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Choose a domain","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(o.createElement)(ie,{sticky:!1},Object(o.createElement)(ae,{onClick:g,disabled:!u}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(pt,{analyticsFlowId:Ot,initialDomainSearch:u,onSetDomainSearch:d,onDomainSearchBlur:function(e){De("calypso_newsite_domain_search_blur",{flow:Ot,query:e,where:"editor_domain_modal"})},currentDomain:a,existingSubdomain:ht(null==c?void 0:c.domain),onDomainSelect:function(e){b(),m(e),(null==r?void 0:r.isFree)&&h()},onExistingSubdomainSelect:function(){b(),p()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==t||t()}}),Object(o.createElement)(ae,{onClick:g,disabled:!u}))))}),Et=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),jt=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),St=(n(68),Object(o.createElement)(pe,{icon:Et,size:17})),wt=Object(o.createElement)(pe,{icon:jt,size:17}),xt=Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var Ct=function(e){var t=e.features,n=e.domain,r=e.isFree,i=void 0!==r&&r,a=e.isOpen,c=void 0!==a&&a,s=e.onPickDomain,l=e.disabledLabel,u=e.multiColumn,d=void 0!==u&&u,f=function(e,t,__){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:St,domainMessage:Object(o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",xt)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:St,domainMessage:Object(o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",xt)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:wt,domainMessage:Object(o.createElement)("span",null,Object(o.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:Object(o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plans-feature-list__domain-summary is-picked",icon:St,domainMessage:Object(o.createElement)("span",null,Object(o.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:Object(o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(i,n,x.__);return Object(o.createElement)("div",{className:"plans-feature-list",hidden:!c},Object(o.createElement)("ul",{className:w()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":d})},l?Object(o.createElement)("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},wt," ",Object(o.createElement)("span",null,l)):f&&Object(o.createElement)("li",{className:"plans-feature-list__item"},Object(o.createElement)(C.Button,{className:f.className,onClick:s,isLink:!0},f.icon,f.domainMessage)),t.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"plans-feature-list__item"},St," ",Object(o.createElement)("span",null,e))}))))},kt=Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Nt=function(e){var t=e.slug,n=e.name,r=e.tagline,i=e.price,c=e.isPopular,s=void 0!==c&&c,l=e.isFree,u=void 0!==l&&l,d=e.domain,f=e.features,m=e.onSelect,p=e.onPickDomainClick,h=e.onToggleExpandAll,b=e.allPlansExpanded,g=e.disabledLabel,y=e.CTAVariation,O=void 0===y?"NORMAL":y,_=e.popularBadgeVariation,E=void 0===_?"ON_TOP":_,S=a.useState(!1),k=j()(S,2),N=k[0],P=k[1],A=Object(v.useViewportMatch)("mobile",">=");a.useEffect((function(){P(b)}),[b]);var T=b||A||s||N;return Object(o.createElement)("div",{className:w()("plan-item",{"is-popular":s,"is-open":T,"badge-next-to-name":"NEXT_TO_NAME"===E})},s&&"ON_TOP"===E&&Object(o.createElement)("span",{className:"plan-item__badge"},Object(x.__)("Popular","full-site-editing")),Object(o.createElement)("div",{className:w()("plan-item__viewport",{"is-popular":s})},Object(o.createElement)("div",{className:"plan-item__details"},Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return P((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&P((function(e){return!e}))},className:"plan-item__summary"},Object(o.createElement)("div",{className:w()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===E})},Object(o.createElement)("div",{className:"plan-item__name"},n),s&&"NEXT_TO_NAME"===E&&Object(o.createElement)("span",{className:"plan-item__badge-next-to-name"},Object(x.__)("Popular","full-site-editing"))),r&&Object(o.createElement)("p",{className:"plan-item__tagline"},r),Object(o.createElement)("div",{className:"plan-item__price"},Object(o.createElement)("div",{className:w()("plan-item__price-amount",{"is-loading":!i})},i||" ")),!T&&Object(o.createElement)("div",{className:"plan-item__dropdown-chevron"},kt)),Object(o.createElement)("div",{hidden:!T},Object(o.createElement)("div",{className:"plan-item__price-note"},u?Object(x.__)("free forever","full-site-editing"):Object(x.__)("per month, billed yearly","full-site-editing")),Object(o.createElement)("div",{className:"plan-item__actions"},"NORMAL"===O?Object(o.createElement)(C.Button,{className:"plan-item__select-button",onClick:function(){m(t)},isPrimary:!0,disabled:!!g},Object(o.createElement)("span",null,Object(x.__)("Choose","full-site-editing"))):Object(o.createElement)(C.Button,{className:"plan-item__select-button full-width",onClick:function(){m(t)},isPrimary:s,disabled:!!g},Object(o.createElement)("span",null,Object(x.sprintf)(Object(x.__)("Select %s","full-site-editing"),n)))),Object(o.createElement)(Ct,{features:f,domain:d,isFree:u,isOpen:T,onPickDomain:p,disabledLabel:g})))),s&&!A&&Object(o.createElement)(C.Button,{onClick:h,className:"plan-item__mobile-expand-all-plans",isLink:!0},b?Object(x.__)("Collapse all plans","full-site-editing"):Object(x.__)("Expand all plans","full-site-editing")))},Pt=I.Plans.register(),At=I.WPCOMFeatures.register(),Tt=(n(129),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,c=e.disabledPlans,l=e.locale,u=e.showTaglines,d=void 0!==u&&u,f=e.CTAVariation,m=void 0===f?"NORMAL":f,p=e.popularBadgeVariation,h=void 0===p?"ON_TOP":p,b=e.customTagLines,g=Object(s.useSelect)((function(e){return e(Pt).getSupportedPlans()})),v=Object(s.useSelect)((function(e){return e(Pt).getPrices(l)})),y=Object(a.useState)(!1),O=j()(y,2),_=O[0],E=O[1];return Object(o.createElement)("div",{className:"plans-table"},g.map((function(e){var a,s;return e&&Object(o.createElement)(Nt,{popularBadgeVariation:h,allPlansExpanded:_,key:e.storeSlug,slug:e.storeSlug,domain:i,tagline:null!==(a=d&&(null==b?void 0:b[e.storeSlug]))&&void 0!==a?a:e.description,CTAVariation:m,features:null!==(s=e.features)&&void 0!==s?s:[],isPopular:e.isPopular,isFree:e.isFree,price:v[e.storeSlug],name:null==e?void 0:e.title.toString(),isSelected:e.storeSlug===t,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return E((function(e){return!e}))},disabledLabel:null==c?void 0:c[e.storeSlug]})})))}),Lt=(n(67),Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}))),Dt=function(e){var t=e.slug,n=e.name,r=e.description,i=e.price,a=e.features,c=e.domain,s=e.badge,l=e.isFree,u=void 0!==l&&l,d=e.isOpen,f=void 0!==d&&d,m=e.isPrimary,p=void 0!==m&&m,h=e.onSelect,b=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,y=function(){!v&&(null==g||g(t,!f))};return Object(o.createElement)("div",{className:w()("plans-accordion-item",{"is-open":f,"is-primary":p,"has-badge":!!s,"is-disabled":!!v})},s&&Object(o.createElement)("div",{className:"plans-accordion-item__badge"},Object(o.createElement)("span",null,s)),Object(o.createElement)("div",{className:"plans-accordion-item__viewport"},Object(o.createElement)("div",{className:"plans-accordion-item__details"},Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:y,onKeyDown:function(e){return 32===e.keyCode&&y()},className:"plans-accordion-item__header"},Object(o.createElement)("div",{className:"plans-accordion-item__heading"},Object(o.createElement)("div",{className:"plans-accordion-item__name"},n),Object(o.createElement)("div",{className:"plans-accordion-item__description"},r)),Object(o.createElement)("div",{className:"plans-accordion-item__price"},Object(o.createElement)("div",{className:w()("plans-accordion-item__price-amount",{"is-loading":!i})},i||" ",i&&Object(o.createElement)("span",null,Object(x.__)("/mo","full-site-editing"))),Object(o.createElement)("div",{className:"plans-accordion-item__price-note"},u?Object(x.__)("free forever","full-site-editing"):Object(x.__)("billed annually","full-site-editing"))),Object(o.createElement)("div",{className:"plans-accordion-item__disabled-label"},v),!f&&Object(o.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},Lt)),Object(o.createElement)("div",{className:"plans-accordion-item__actions",hidden:!f},Object(o.createElement)(ae,{onClick:function(){h(t)}},Object(x.__)("Select","full-site-editing"))),Object(o.createElement)(Ct,{features:a,domain:c,isFree:u,isOpen:f,onPickDomain:b,multiColumn:!0}))))},Rt=function(e){var t=e.isOpen,n=void 0!==t&&t,r=e.multiColumn,i=void 0!==r&&r,a=Array.from(Array(10).keys());return Object(o.createElement)("div",{className:"plans-feature-list",hidden:!n},Object(o.createElement)("ul",{className:w()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":i})},a.map((function(e){return Object(o.createElement)("li",{key:e,className:"plans-feature-list__item"},Object(o.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))},It=Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Ft=function(e){var t=e.isOpen,n=e.isPrimary;return Object(o.createElement)("div",{className:w()("plans-accordion-item",{"is-open":t,"is-primary":n})},Object(o.createElement)("div",{className:"plans-accordion-item__viewport"},Object(o.createElement)("div",{className:"plans-accordion-item__details"},Object(o.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},Object(o.createElement)("div",{className:"plans-accordion-item__heading"},Object(o.createElement)("div",{className:"plans-accordion-item__name"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),Object(o.createElement)("div",{className:"plans-accordion-item__description"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),Object(o.createElement)("div",{className:"plans-accordion-item__price"},Object(o.createElement)("div",{className:"plans-accordion-item__price-amount"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),Object(o.createElement)("div",{className:"plans-accordion-item__price-note"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),Object(o.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&Object(o.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},It)),Object(o.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},Object(o.createElement)(ae,{disabled:!0},Object(o.createElement)("span",null,""))),Object(o.createElement)(Rt,{isOpen:t,multiColumn:!0}))))},Mt=(n(128),Object(o.createElement)(C.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(C.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}))),Bt=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanSlug,c=e.onPlanSelect,l=e.onPickDomainClick,u=e.currentDomain,d=e.disabledPlans,f=e.locale,m=Object(s.useSelect)((function(e){return e(Pt).getSupportedPlans()})),p=Object(s.useSelect)((function(e){return e(Pt).getPrices(f)})),h=!(null==m?void 0:m.length),b=Object(s.useSelect)((function(e){return e(Pt).getDefaultPaidPlan(f)})),g=Object(s.useSelect)((function(e){return e(At).getRecommendedPlanSlug(r)})),v=Object(s.useSelect)((function(e){return e(Pt).getPlanBySlug(g)})),y=v||b,O=v?Object(x.__)("Recommended for you","full-site-editing"):Object(x.__)("Popular","full-site-editing"),_=m.filter((function(e){return e.storeSlug!==y.storeSlug})),E=[null==y?void 0:y.storeSlug],S=Object(a.useState)(E),w=j()(S,2),k=w[0],N=w[1],P=!h&&k.length>=m.length,A=function(e,t){N(t?[].concat(de()(k),[e]):k.filter((function(t){return t!==e})))};return Object(o.createElement)("div",{className:"plans-accordion"},Object(o.createElement)("div",{className:"plans-accordion__plan-item-group"},h?Object(o.createElement)(Ft,{isOpen:!0,isPrimary:!0}):y&&Object(o.createElement)(o.Fragment,null,v&&Object(o.createElement)("div",{className:"plans-accordion__recommend-hint"},Object(o.createElement)(pe,{icon:Mt,size:16}),Object(o.createElement)("span",null,Object(x.__)("Based on the features you selected.","full-site-editing"))),Object(o.createElement)(Dt,{key:y.storeSlug,slug:y.storeSlug,name:null==y?void 0:y.title.toString(),description:null==y?void 0:y.description.toString(),features:null!==(t=y.features)&&void 0!==t?t:[],price:p[y.storeSlug],domain:u,badge:O,isFree:y.isFree,isOpen:!0,isPrimary:!0,isSelected:y.storeSlug===i,onSelect:c,onPickDomainClick:l}))),Object(o.createElement)("div",{className:"plans-accordion__actions"},Object(o.createElement)(C.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){N(P?E:m.map((function(e){return e.storeSlug})))},isLink:!0},P?Object(x.__)("Collapse all plans","full-site-editing"):Object(x.__)("Show all plans","full-site-editing"))),Object(o.createElement)("div",{className:"plans-accordion__plan-item-group"},h?[1,2,3,4].map((function(e){return Object(o.createElement)(Ft,{key:e})})):_.map((function(e){var t;return Object(o.createElement)(Dt,{key:e.storeSlug,slug:e.storeSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],price:p[e.storeSlug],domain:u,isFree:e.isFree,isOpen:k.indexOf(e.storeSlug)>-1&&!(null==d?void 0:d[e.storeSlug]),isSelected:e.storeSlug===i,onSelect:c,onPickDomainClick:l,onToggle:A,disabledLabel:null==d?void 0:d[e.storeSlug]})}))))},Ut=(n(130),Object(o.createElement)(pe,{icon:Et,size:25})),Vt=function(e){var t=e.onSelect,n=e.locale,r=Object(s.useSelect)((function(e){return e(Pt).getPlansDetails(n)})),i=r.features,a=r.featuresByType,c=r.plans,l=Object(s.useSelect)((function(e){return e(Pt).getPrices(n)})),u=Object(s.useSelect)((function(e){return e(Pt).getSupportedPlans()})),d=!(null==u?void 0:u.length),f=[1,2,3,4,5];return Object(o.createElement)("div",{className:"plans-details"},Object(o.createElement)("table",{className:"plans-details__table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",{className:"plans-details__header-row"},Object(o.createElement)("th",null,Object(x.__)("Feature","full-site-editing")),d?f.map((function(e){return Object(o.createElement)("th",{key:e},Object(o.createElement)("span",{className:"plans-details__placeholder"},""))})):u.map((function(e){return Object(o.createElement)("th",{key:e.storeSlug},e.title)})))),d?Object(o.createElement)("tbody",null,f.map((function(e,t){return Object(o.createElement)("tr",{className:"plans-details__feature-row",key:t},Object(o.createElement)("th",{key:e},Object(o.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),f.map((function(e){return Object(o.createElement)("td",{key:e})})))}))):a.map((function(e){var t;return Object(o.createElement)("tbody",{key:e.id},e.name&&Object(o.createElement)("tr",{className:"plans-details__header-row"},Object(o.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return Object(o.createElement)("tr",{className:"plans-details__feature-row",key:t},Object(o.createElement)("th",null,i[e].name),u.map((function(t,n){var r;return"storage"===e?Object(o.createElement)("td",{key:n},c[t.storeSlug][e]):Object(o.createElement)("td",{key:n},(null===(r=c[t.storeSlug].featuresSlugs)||void 0===r?void 0:r[e])?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"hidden"},Object(x.__)("Available","full-site-editing")),Ut):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"hidden"},Object(x.__)("Unavailable","full-site-editing"))))})))})))})),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",{className:"plans-details__header-row"},Object(o.createElement)("th",{colSpan:6},Object(x.__)("Sign up","full-site-editing"))),Object(o.createElement)("tr",{className:"plans-details__feature-row",key:"price"},Object(o.createElement)("th",null,Object(x.__)("Monthly subscription (billed yearly)","full-site-editing")),d?f.map((function(e){return Object(o.createElement)("td",{key:e},Object(o.createElement)("span",{className:"plans-details__placeholder"},""))})):u.map((function(e){return Object(o.createElement)("td",{key:e.storeSlug},l[e.storeSlug])}))),Object(o.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},Object(o.createElement)("th",null),d?f.map((function(e){return Object(o.createElement)("td",{key:e},Object(o.createElement)(C.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},Object(o.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):u.map((function(e){return Object(o.createElement)("td",{key:e.storeSlug},Object(o.createElement)(C.Button,{className:"plans-details__select-button",onClick:function(){t(e.storeSlug)},isPrimary:!0},Object(o.createElement)("span",null,Object(x.__)("Select","full-site-editing"))))}))))))},zt=(n(127),ge()("plans-grid")),Ht=function(e){var t,n,r=e.header,i=e.selectedFeatures,a=e.currentPlan,c=e.currentDomain,s=e.onPlanSelect,l=e.onPickDomainClick,u=e.disabledPlans,d=e.isAccordion,f=e.locale,m=e.showPlanTaglines,p=void 0!==m&&m,h=e.CTAVariation,b=void 0===h?"NORMAL":h,g=e.popularBadgeVariation,v=void 0===g?"ON_TOP":g,y=e.customTagLines;return d&&zt("PlansGrid accordion version is active"),Object(o.createElement)("div",{className:"plans-grid"},r&&Object(o.createElement)("div",{className:"plans-grid__header"},r),Object(o.createElement)("div",{className:"plans-grid__table"},Object(o.createElement)("div",{className:"plans-grid__table-container"},d?Object(o.createElement)(Bt,{selectedFeatures:i,selectedPlanSlug:null!==(t=null==a?void 0:a.storeSlug)&&void 0!==t?t:"",onPlanSelect:s,currentDomain:c,onPickDomainClick:l,disabledPlans:u,locale:f}):Object(o.createElement)(Tt,{popularBadgeVariation:v,CTAVariation:b,selectedPlanSlug:null!==(n=null==a?void 0:a.storeSlug)&&void 0!==n?n:"",onPlanSelect:s,customTagLines:y,currentDomain:c,onPickDomainClick:l,disabledPlans:u,locale:f,showTaglines:p}))),Object(o.createElement)("div",{className:"plans-grid__details"},Object(o.createElement)("div",{className:"plans-grid__details-heading"},Object(o.createElement)(ee,{tagName:"h2"},Object(x.__)("Detailed comparison","full-site-editing"))),Object(o.createElement)("div",{className:"plans-grid__details-container"},Object(o.createElement)(Vt,{onSelect:s,locale:f}))))},qt=(n(126),function(e){var t,n=e.onPrevStep,r=e.onNextStep,a=Object(s.useSelect)((function(e){return e(i).getSelectedDomain()})),c=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),l=Object(s.useDispatch)(i),u=l.updatePlan,d=l.setStep,f=Q().selectedFeatures,m=a&&!a.is_free;return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Select a plan","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within 30 days.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Ht,{currentDomain:a,onPlanSelect:function(e){u(e),null==r||r()},onPickDomainClick:function(){d(c.Domain)},disabledPlans:m?Z()({},I.Plans.PLAN_FREE,Object(x.__)("Not available with custom domain","full-site-editing")):void 0,isAccordion:!0,selectedFeatures:f,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==n||n()}}))))});function Wt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $t=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Gt=function(e){function t(e,r,s,l,f){for(var m,p,h,b,O,E=0,j=0,S=0,w=0,x=0,T=0,D=h=m=0,I=0,F=0,M=0,B=0,U=s.length,V=U-1,z="",H="",q="",W="";I<U;){if(p=s.charCodeAt(I),I===V&&0!==j+w+S+E&&(0!==j&&(p=47===j?10:47),w=S=E=0,U++,V++),0===j+w+S+E){if(I===V&&(0<F&&(z=z.replace(d,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(I)}p=59}switch(p){case 123:for(m=(z=z.trim()).charCodeAt(0),h=1,B=++I;I<U;){switch(p=s.charCodeAt(I)){case 123:h++;break;case 125:h--;break;case 47:switch(p=s.charCodeAt(I+1)){case 42:case 47:e:{for(D=I+1;D<V;++D)switch(s.charCodeAt(D)){case 47:if(42===p&&42===s.charCodeAt(D-1)&&I+2!==D){I=D+1;break e}break;case 10:if(47===p){I=D+1;break e}}I=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;I++<V&&s.charCodeAt(I)!==p;);}if(0===h)break;I++}switch(h=s.substring(B,I),0===m&&(m=(z=z.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<F&&(z=z.replace(d,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=A}if(B=(h=t(r,F,h,p,f+1)).length,0<L&&(O=c(3,h,F=n(A,z,M),r,k,C,B,p,f,l),z=F.join(""),void 0!==O&&0===(B=(h=O.trim()).length)&&(p=0,h="")),0<B)switch(p){case 115:z=z.replace(_,a);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(g,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===l&&(H+=h,h="")}else h="";break;default:h=t(r,n(r,z,M),h,l,f+1)}q+=h,h=M=F=D=m=0,z="",p=s.charCodeAt(++I);break;case 125:case 59:if(1<(B=(z=(0<F?z.replace(d,""):z).trim()).length))switch(0===D&&(m=z.charCodeAt(0),45===m||96<m&&123>m)&&(B=(z=z.replace(" ",":")).length),0<L&&void 0!==(O=c(1,z,r,e,k,C,H.length,l,f,l))&&0===(B=(z=O.trim()).length)&&(z="\0\0"),m=z.charCodeAt(0),p=z.charCodeAt(1),m){case 0:break;case 64:if(105===p||99===p){W+=z+s.charAt(I);break}default:58!==z.charCodeAt(B-1)&&(H+=i(z,m,p,z.charCodeAt(2)))}M=F=D=m=0,z="",p=s.charCodeAt(++I)}}switch(p){case 13:case 10:47===j?j=0:0===1+m&&107!==l&&0<z.length&&(F=1,z+="\0"),0<L*R&&c(0,z,r,e,k,C,H.length,l,f,l),C=1,k++;break;case 59:case 125:if(0===j+w+S+E){C++;break}default:switch(C++,b=s.charAt(I),p){case 9:case 32:if(0===w+E+j)switch(x){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===w+j+E&&(F=M=1,b="\f"+b);break;case 108:if(0===w+j+E+N&&0<D)switch(I-D){case 2:112===x&&58===s.charCodeAt(I-3)&&(N=x);case 8:111===T&&(N=T)}break;case 58:0===w+j+E&&(D=I);break;case 44:0===j+S+w+E&&(F=1,b+="\r");break;case 34:case 39:0===j&&(w=w===p?0:0===w?p:w);break;case 91:0===w+j+S&&E++;break;case 93:0===w+j+S&&E--;break;case 41:0===w+j+E&&S--;break;case 40:if(0===w+j+E){if(0===m)switch(2*x+3*T){case 533:break;default:m=1}S++}break;case 64:0===j+S+w+E+D+h&&(h=1);break;case 42:case 47:if(!(0<w+E+S))switch(j){case 0:switch(2*p+3*s.charCodeAt(I+1)){case 235:j=47;break;case 220:B=I,j=42}break;case 42:47===p&&42===x&&B+2!==I&&(33===s.charCodeAt(B+2)&&(H+=s.substring(B,I+1)),b="",j=0)}}0===j&&(z+=b)}T=x,x=p,I++}if(0<(B=H.length)){if(F=r,0<L&&(void 0!==(O=c(2,H,F,e,k,C,B,l,f,l))&&0===(H=O).length))return W+H+q;if(H=F.join(",")+"{"+H+"}",0!=P*N){switch(2!==P||o(H,2)||(N=0),N){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}N=0}}return W+H+q}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<o;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<o;++c)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",i[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&o(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return m.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(O,"tb");break;case 232:s=a.replace(O,"tb-rl");break;case 220:s=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(j,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(j,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,i,o,a,c,s,u){for(var d,f=0,m=t;f<L;++f)switch(d=T[f].call(l,e,m,n,r,i,o,a,c,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?P=1:(P=2,D=e):P=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var i=c(-1,n,r,r,k,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(A,r,n,0,0);return 0<L&&(void 0!==(i=c(-2,o,r,r,k,C,o.length,0,0,0))&&(o=i)),"",N=0,C=k=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,m=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,j=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,C=1,k=1,N=0,P=1,A=[],T=[],L=0,D=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:L=T.length=0;break;default:if("function"==typeof t)T[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},Yt=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},Kt="/*|*/";function Xt(e){e&&Qt.current.insert(e+"}")}var Qt={current:null},Jt=function(e,t,n,r,i,o,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Qt.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+Kt;break;case 3:switch(c){case 102:case 112:return Qt.current.insert(n[0]+t),"";default:return t+(0===l?Kt:"")}case-2:t.split("/*|*/}").forEach(Xt)}},Zt=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Gt(t);var i,o={};i=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Jt),a=function(e,t,n,i){var o=t.name;Qt.current=n,r(e,t.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new $t({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return s},en=n(44),tn=n.n(en);function nn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var rn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};var on=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},an={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var cn=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},sn=/[A-Z]|^ms/g,ln=/_EMO_([^_]+?)_([^]*?)_EMO_/g,un=function(e){return 45===e.charCodeAt(1)},dn=function(e){return null!=e&&"boolean"!=typeof e},fn=cn((function(e){return un(e)?e:e.replace(sn,"-$&").toLowerCase()})),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ln,(function(e,t,n){return hn={name:t,styles:n,next:hn},t}))}return 1===an[e]||un(e)||"number"!=typeof t||0===t?t:t+"px"};function pn(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)hn={name:i.name,styles:i.styles,next:hn},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=pn(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":dn(a)&&(r+=fn(o)+":"+mn(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=pn(e,t,a,!1);switch(o){case"animation":case"animationName":r+=fn(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)dn(a[s])&&(r+=fn(o)+":"+mn(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=hn,a=n(e);return hn=o,pn(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var hn,bn=/label:\s*([^\s;\n{]+)\s*;/g;var gn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";hn=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=pn(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=pn(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);bn.lastIndex=0;for(var c,s="";null!==(c=bn.exec(i));)s+="-"+c[1];return{name:on(i)+s,styles:i,next:hn}},vn=(Object.prototype.hasOwnProperty,Object(a.createContext)("undefined"!=typeof HTMLElement?Zt():null)),yn=Object(a.createContext)({}),On=(vn.Provider,function(e){var t=function(t,n){return Object(a.createElement)(vn.Consumer,null,(function(r){return e(t,r,n)}))};return Object(a.forwardRef)(t)});var En=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gn(t)},jn=(a.Component,function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i});function Sn(e,t,n){var r=[],i=nn(e,r,n);return r.length<2?n:i+t(r)}On((function(e,t){return Object(a.createElement)(yn.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=gn(n,t.registered);return rn(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return Sn(t.registered,r,jn(n))},theme:n},o=e.children(i);return!0,o}))})),n(45);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var xn=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(n,!0).forEach((function(t){Z()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},Cn=Yt((function(e){return Yt((function(t){return xn(e,t)}))})),kn=function(e){return Object(a.createElement)(yn.Consumer,null,(function(t){return e.theme!==t&&(t=Cn(t)(e.theme)),Object(a.createElement)(yn.Provider,{value:t},e.children)}))};var Nn=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));var Pn="#F6F7F7",An="#DCDCDE",Tn="#8E9196",Ln="#646970",Dn="#2C3338",Rn="#008A20",In="#FFF",Fn="#000",Mn={colors:{background:Pn,surface:In,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#2271B1",highlightBorder:"#043959",highlightOver:"#135E96",success:Rn,discount:Rn,disabledPaymentButtons:Pn,disabledPaymentButtonsAccent:An,disabledButtons:"#A7AAAD",borderColor:"#C3C4C7",borderColorLight:An,borderColorDark:Ln,upcomingStepBackground:An,textColor:Dn,textColorLight:Ln,textColorDark:Fn,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:Fn,applePayButtonRollOverColor:Dn,noticeBackground:Dn,defaultNoticeIconBackground:Tn,textColorOnDarkBackground:In,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:Pn,placeHolderTextColor:Tn},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}},Bn=n(8),Un=n.n(Bn),Vn=n(5),zn=n.n(Vn);function Hn(e){return e.filter((function(e){return e})).join(" ")}var qn=n(40),Wn=n.n(qn),$n=n(41),Gn=n.n($n),Yn=n(30),Kn=n.n(Yn),Xn=n(42),Qn=n.n(Xn),Jn=n(43),Zn=n.n(Jn),er=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tr=cn((function(e){return er.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),nr=function(e){return"theme"!==e&&"innerRef"!==e},rr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?tr:nr};function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(n,!0).forEach((function(t){Z()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ar=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var c=t.__emotion_real===t,s=c&&t.__emotion_base||t;"function"!=typeof i&&c&&(i=t.__emotion_forwardProp);var l=i||rr(s),u=!l("as");return function(){var d=arguments,f=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var m=d.length,p=1;p<m;p++)f.push(d[p],d[0][p])}var h=On((function(e,t,n){return Object(a.createElement)(yn.Consumer,null,(function(r){var c=u&&e.as||s,d="",m=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=r}"string"==typeof e.className?d=nn(t.registered,m,e.className):null!=e.className&&(d=e.className+" ");var b=gn(f.concat(m),t.registered,p);rn(t,b,"string"==typeof c);d+=t.key+"-"+b.name,void 0!==o&&(d+=" "+o);var g=u&&void 0===i?rr(c):l,v={};for(var y in e)u&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=d,v.ref=n||e.innerRef,Object(a.createElement)(c,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=f,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0!==r?or({},n||{},{},r):n).apply(void 0,f)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){ar[e]=ar(e)}));var cr=ar;function sr(){var e=Un()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return sr=function(){return e},e}var lr=ge()("composite-checkout:checkout-error-boundary"),ur=function(e){Qn()(n,e);var t=Zn()(n);function n(e){var r;return Wn()(this,n),r=t.call(this,e),Z()(Kn()(r),"state",{hasError:!1,currentError:null}),r}return Gn()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);lr("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?Object(o.createElement)(dr,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(c.a.Component);function dr(e){var t=e.errorMessage;return Object(o.createElement)(hr,null,t)}var fr,mr,pr,hr=cr.div(sr());!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(fr||(fr={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL"}(mr||(mr={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(pr||(pr={}));var br={transactionStatus:pr.NOT_STARTED,previousTransactionStatus:pr.NOT_STARTED,transactionError:null,transactionLastResponse:null,transactionRedirectUrl:null,resetTransaction:vr,setTransactionError:vr,setTransactionComplete:vr,setTransactionPending:vr,setTransactionRedirecting:vr},gr={allPaymentMethods:[],paymentMethodId:null,setPaymentMethodId:vr,showErrorMessage:vr,showInfoMessage:vr,showSuccessMessage:vr,onEvent:vr,formStatus:fr.LOADING,setFormStatus:vr,transactionStatusManager:br,paymentProcessors:{}};function vr(){}var yr=Object(a.createContext)(gr);ge()("composite-checkout:form-status");function Or(){var e=Object(a.useContext)(yr),t=e.formStatus,n=e.setFormStatus,r=Object(a.useMemo)((function(){return{setFormLoading:function(){return n(fr.LOADING)},setFormReady:function(){return n(fr.READY)},setFormSubmitting:function(){return n(fr.SUBMITTING)},setFormValidating:function(){return n(fr.VALIDATING)},setFormComplete:function(){return n(fr.COMPLETE)}}}),[n]);return Object(a.useMemo)((function(){return f()(f()({},r),{},{formStatus:t})}),[t,r])}function _r(){var e=Un()(["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"]);return _r=function(){return e},e}function Er(){var e=Un()(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 0;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n"]);return Er=function(){return e},e}function jr(){var e=Un()(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"]);return jr=function(){return e},e}function Sr(){var e=Un()(["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"]);return Sr=function(){return e},e}function wr(){var e=Un()(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return wr=function(){return e},e}function xr(){var e=Un()(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"]);return xr=function(){return e},e}function Cr(){var e=Un()(["\n\tdisplay: none;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tdisplay: block;\n\t\tpadding: 24px;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid ",";\n\t\tmax-width: 328px;\n\t\tbackground: ",";\n\t\tmargin-left: 24px;\n\t}\n"]);return Cr=function(){return e},e}function kr(){var e=Un()(["\n\tbackground: ",";\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmax-width: 556px;\n\t\tmargin: 0 auto;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t}\n"]);return kr=function(){return e},e}function Nr(){var e=Un()(["\n\tdisplay: flex;\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t}\n"]);return Nr=function(){return e},e}cr.div(Nr(),(function(e){return e.theme.breakpoints.desktopUp})),cr.div(kr(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp})),cr.div(Cr(),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.surface})),cr.div(xr(),(function(e){return e.theme.colors.borderColorLight}));var Pr=function(){var e=En.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wr());cr.h1(Sr(),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),Pr,(function(e){return e.theme.colors.borderColorLight})),cr.p(jr(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),Pr),cr.p(Er(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),Pr),cr.div(_r(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}));pr.NOT_STARTED,pr.NOT_STARTED;var Ar=ge()("composite-checkout:payment-methods");function Tr(){var e=Object(a.useContext)(yr),t=e.paymentMethodId,n=e.setPaymentMethodId,r=Lr();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var i=r.find((function(e){return e.id===t}));return i||(Ar("No payment method found matching id '".concat(t,"' in"),r),null)}function Lr(){var e=Object(a.useContext)(yr).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}ge()("composite-checkout:checkout-submit-button");function Dr(){var e=Un()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Dr=function(){return e},e}var Rr=cr("button")(Dr(),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),Br,Mr,Vr,Fr,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),Mr,(function(e){return e.disabled?"not-allowed":"pointer"}),Fr,Vr,Mr,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),Br,Ur,Ur,Br),Ir=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,a=e.fullWidth,c=re()(e,["className","buttonType","isBusy","children","fullWidth"]),s=Hn(["checkout-button"].concat(de()(n?["is-status-"+n]:[]),de()(r?["is-busy"]:[]),de()(t?[t]:[])));return Object(o.createElement)(Rr,g()({fullWidth:a,buttonType:n,className:s},c),i)};function Fr(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Mr(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function Br(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function Ur(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Vr(e){return"text-button"===e.buttonType?"underline":"none"}function zr(){var e=Un()(["\n\tfill: #fff;\n"]);return zr=function(){return e},e}function Hr(e){var t=e.className,n=e.id;return Object(o.createElement)(qr,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},Object(o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},Object(o.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),Object(o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},Object(o.createElement)("rect",{width:"20",height:"20"})))}Hr.propTypes={className:zn.a.string,id:zn.a.string};var qr=cr.svg(zr());var Wr=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=re()(e,["value","onClick","ariaLabel"]);return Object(o.createElement)(Ir,g()({onClick:n,buttonType:"primary","aria-label":r},i),t)};function $r(){var e=Object(a.useContext)(yr).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}var Gr=Object(a.createContext)({items:[],total:{id:"title",type:"total",label:"Total",amount:{currency:"USD",value:0,displayValue:"0"}}});function Yr(){var e=Object(a.useContext)(Gr),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}function Kr(){var e=Un()(["\n\tfont-weight: ",";\n"]);return Kr=function(){return e},e}function Xr(){var e=Un()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Xr=function(){return e},e}function Qr(){var e=Un()(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"]);return Qr=function(){return e},e}function Jr(){var e=Un()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"]);return Jr=function(){return e},e}function Zr(){var e=Un()(["\n\tfont-weight: ",";\n"]);return Zr=function(){return e},e}function ei(){var e=Un()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return ei=function(){return e},e}function ti(){var e=Un()(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"]);return ti=function(){return e},e}function ni(){var e=Un()(["\n\tmargin: 0;\n\tpadding: 0;\n"]);return ni=function(){return e},e}cr.ul(ni()),cr.li(ti());cr.span(ei()),cr.span(Zr(),(function(e){return e.theme.weights.bold}));cr.div(Jr(),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),cr.div(Qr(),(function(e){return e.theme.colors.borderColorLight}));var ri=cr.div(Xr());cr(ri)(Kr(),(function(e){return e.theme.weights.bold}));function ii(){var e=Un()(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"]);return ii=function(){return e},e}function oi(){var e=Un()(["\n\tmargin-bottom: 16px;\n"]);return oi=function(){return e},e}function ai(e){var t=e.children,n=e.className;return Object(o.createElement)(ci,{className:Hn([n,"order-review-section"])},t)}ai.propTypes={className:zn.a.string};var ci=cr.div(oi());function si(e){var t=e.item,n=e.className,r="checkout-line-item-".concat(t.id);return Object(o.createElement)("div",{className:Hn([n,"checkout-line-item"])},Object(o.createElement)("span",{id:r},t.label),Object(o.createElement)("span",{"aria-labelledby":r},t.amount.displayValue))}si.propTypes={className:zn.a.string,total:zn.a.bool,isSummaryVisible:zn.a.bool,item:zn.a.shape({label:zn.a.string,amount:zn.a.shape({displayValue:zn.a.string})})};var li=cr(si)(ii(),(function(e){var t=e.theme;return e.total?t.weights.bold:t.weights.normal}),(function(e){var t=e.theme;return e.total?t.colors.textColorDark:"inherit"}),(function(e){return e.total?"1.2em":"1em"}),(function(e){var t=e.total;return e.isSummaryVisible||t?0:"24px 0"}),(function(e){var t=e.theme,n=e.total;return e.isSummaryVisible||n?0:"1px solid "+t.colors.borderColorLight}));function ui(e){var t=e.total,n=e.className;return Object(o.createElement)("div",{className:Hn([n,"order-review-total"])},Object(o.createElement)(li,{total:!0,item:t}))}function di(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return Object(o.createElement)("div",{className:Hn([n,"order-review-line-items"])},t.map((function(e){return Object(o.createElement)(li,{isSummaryVisible:r,key:e.id,item:e})})))}function fi(e){var t=e.className,n=Yr(),r=j()(n,2),i=r[0],a=r[1];return Object(o.createElement)("div",{className:Hn([t,"checkout-review-order"])},Object(o.createElement)(ai,null,Object(o.createElement)(di,{items:i})),Object(o.createElement)(ai,null,Object(o.createElement)(ui,{total:a})))}function mi(){var e=Un()(["\n\tdisplay: ",";\n"]);return mi=function(){return e},e}function pi(){var e=Un()(["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"]);return pi=function(){return e},e}function hi(){var e=Un()(["\n\tposition: absolute;\n\topacity: 0 !important;\n\n\tclear: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tline-height: 0;\n\theight: 16px;\n\tmargin: 2px 0 0;\n\tfloat: left;\n\toutline: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tvertical-align: middle;\n\twidth: 16px;\n\tmin-width: 16px;\n\tappearance: none;\n"]);return hi=function(){return e},e}function bi(){var e=Un()(["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"]);return bi=function(){return e},e}di.propTypes={className:zn.a.string,isSummaryVisible:zn.a.bool,items:zn.a.arrayOf(zn.a.shape({label:zn.a.string,amount:zn.a.shape({displayValue:zn.a.string})}))},fi.propTypes={className:zn.a.string};var gi=cr.div(bi(),(function(e){var t=e.isFocused,n=e.theme;if(t)return n.colors.outline+" solid 2px";return"0"}),(function(e){return e.checked?"3px":"1px"}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.borderColor}),(function(e){return e.theme.colors.highlight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),Ei,(function(e){return e.theme.breakpoints.smallPhoneUp}),Ei,(function(e){if(!e.disabled)return null;return"\n\t\t::before,\n\t\t:hover::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t}\n\n\t\tsvg,\n\t\t:hover svg {\n\t\t\tfilter: grayscale( 100% );\n\t\t\topacity: 50%;\n\t\t}\n\t"})),vi=cr.input(hi()),yi=cr.label(pi(),(function(e){return e.theme.colors.borderColor}),(function(e){return e.theme.colors.surface}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.surface}),(function(e){if(!e.disabled)return null;return"\n\t\tcolor: lightgray;\n\t\tfont-style: italic;\n\n\t\t:hover {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t\tbackground: lightgray;\n\t\t}\n\n\t\t::after {\n\t\t\tbackground: white;\n\t\t}\n\n\t\tspan {\n\t\t\tcolor: lightgray;\n\t\t}\n\t"})),Oi=cr.div(mi(),(function(e){return e.checked?"block":"none"}));function _i(e){var t=e.checked,n=e.name,r=e.value,i=e.onChange,c=e.children,s=e.label,l=e.disabled,u=e.id,d=e.ariaLabel,f=Object(a.useState)(!1),m=j()(f,2),p=m[0],h=m[1];return Object(o.createElement)(gi,{disabled:l,isFocused:p,checked:t},Object(o.createElement)(vi,{type:"radio",name:n,id:u,disabled:l,value:r,checked:t,onChange:i,onFocus:function(){h(!0)},onBlur:function(){h(!1)},readOnly:!i,"aria-label":d}),Object(o.createElement)(yi,{checked:t,htmlFor:u,disabled:l},s),c&&Object(o.createElement)(Oi,{checked:t},c))}function Ei(e){return e.checked?0:"100%"}function ji(){var e=Un()(["\n\tmargin-bottom: 16px;\n"]);return ji=function(){return e},e}_i.propTypes={name:zn.a.string.isRequired,id:zn.a.string.isRequired,label:zn.a.node.isRequired,disabled:zn.a.bool,checked:zn.a.bool,value:zn.a.string.isRequired,onChange:zn.a.func,ariaLabel:zn.a.string.isRequired};var Si=ge()("composite-checkout:checkout-payment-methods");function wi(e){var t=e.summary,n=e.isComplete,r=e.className,__=lt().__,i=$r(),c=Object(a.useCallback)((function(e){return i({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[i]),s=Tr(),l=function(){var e=Object(a.useContext)(yr),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}(),u=j()(l,2)[1],d=function(e){Si("setting payment method to",e),i({type:"PAYMENT_METHOD_SELECT",payload:e}),u(e)},f=Lr();return t&&n&&s?(Si("rendering selected paymentMethod",s),Object(o.createElement)("div",{className:Hn([r,"checkout-payment-methods"])},Object(o.createElement)(ur,{errorMessage:__("There was a problem with this payment method."),onError:c},Object(o.createElement)(xi,{id:s.id,label:s.label,activeContent:s.activeContent,inactiveContent:s.inactiveContent,checked:!0,summary:!0,ariaLabel:s.getAriaLabel(__)})))):t?(Si("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",s),null):(Si("rendering paymentMethods",f),Object(o.createElement)("div",{className:Hn([r,"checkout-payment-methods"])},Object(o.createElement)(Ci,null,f.map((function(e){return Object(o.createElement)(ur,{key:e.id,errorMessage:Object(x.sprintf)(__("There was a problem with the payment method: %s"),e.id),onError:c},Object(o.createElement)(xi,{id:e.id,label:e.label,activeContent:e.activeContent,inactiveContent:e.inactiveContent,checked:(null==s?void 0:s.id)===e.id,onClick:d,ariaLabel:e.getAriaLabel(__)}))})))))}function xi(e){var t=e.id,n=e.label,r=e.activeContent,i=e.inactiveContent,a=e.checked,c=e.onClick,s=e.ariaLabel,l=e.summary,u=Or().formStatus;return l?Object(o.createElement)(o.Fragment,null,i&&i):Object(o.createElement)(_i,{name:"paymentMethod",value:t,id:t,checked:a,disabled:u!==fr.READY,onChange:c?function(){return c(t)}:void 0,ariaLabel:s,label:n},r&&r)}wi.propTypes={summary:zn.a.bool,isComplete:zn.a.bool.isRequired,className:zn.a.string},xi.propTypes={id:zn.a.string.isRequired,onClick:zn.a.func,checked:zn.a.bool.isRequired,ariaLabel:zn.a.string.isRequired,activeContent:zn.a.node,label:zn.a.node,inactiveContent:zn.a.node,summary:zn.a.bool};var Ci=cr.div(ji());function ki(){var e=Un()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return ki=function(){return e},e}function Ni(){var e=Un()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return Ni=function(){return e},e}function Pi(){var e=Un()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return Pi=function(){return e},e}function Ai(){var e=Un()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return Ai=function(){return e},e}function Ti(){var e=Un()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return Ti=function(){return e},e}function Li(){var e=Un()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return Li=function(){return e},e}function Di(){var e=Un()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return Di=function(){return e},e}function Ri(){var e=Un()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return Ri=function(){return e},e}function Ii(){var e=Un()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return Ii=function(){return e},e}function Fi(){var e=Un()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return Fi=function(){return e},e}function Mi(){var e=Un()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return Mi=function(){return e},e}function Bi(){var e=Un()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return Bi=function(){return e},e}function Ui(){var e=Un()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return Ui=function(){return e},e}function Vi(){var e=Un()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return Vi=function(){return e},e}function zi(){var e=Un()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return zi=function(){return e},e}function Hi(){var e=Un()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return Hi=function(){return e},e}ge()("composite-checkout:checkout"),cr.div(Hi(),(function(e){return e.theme.colors.outline}));var qi=cr.div(zi(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Wi=cr.div(Vi(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),$i=function(e){var t=e.children,n=e.className;return Object(o.createElement)(Wi,{className:Hn([n,"checkout__summary-area"])},t)},Gi=cr.div(Ui(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var Yi=cr.div(Bi(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Ki=cr.div(Mi(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Xi=cr.div(Fi(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),Qi=cr.div(Ii(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),Ji=cr.div(Ri(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function Zi(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,a=e.validatingButtonText,c=e.nextStepButtonAriaLabel,s=e.validatingButtonAriaLabel,l=e.isStepActive,u=e.isStepComplete,d=e.className,f=e.stepNumber,m=e.stepId,p=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,O=e.onError,__=lt().__;return Object(o.createElement)(ur,{errorMessage:t||__("There was an error with this step."),onError:O},Object(o.createElement)(Xi,{className:d},Object(o.createElement)(ro,{id:m,stepNumber:f,title:p,isActive:l,isComplete:u,onEdit:v===fr.READY&&u&&h&&!l?h:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),Object(o.createElement)(Qi,{isVisible:l,className:"checkout-steps__step-content"},g,b&&l&&Object(o.createElement)(Wr,{onClick:b,value:v===fr.VALIDATING?a||__("Please wait…"):i||__("Continue"),ariaLabel:v===fr.VALIDATING?s||__("Please wait…"):c||__("Continue to next step"),buttonType:"primary",disabled:v!==fr.READY,isBusy:v===fr.VALIDATING})),u&&y?Object(o.createElement)(Ji,{isVisible:!l,className:"checkout-steps__step-complete-content"},y):null))}Zi.propTypes={errorMessage:zn.a.string,onError:zn.a.func,editButtonAriaLabel:zn.a.string,editButtonText:zn.a.string,nextStepButtonText:zn.a.string,nextStepButtonAriaLabel:zn.a.string,isStepActive:zn.a.bool.isRequired,isStepComplete:zn.a.bool.isRequired,className:zn.a.string,stepNumber:zn.a.number,stepId:zn.a.string.isRequired,titleContent:zn.a.node.isRequired,goToThisStep:zn.a.func,goToNextStep:zn.a.func,activeStepContent:zn.a.node,formStatus:zn.a.string,completeStepContent:zn.a.node,validatingButtonText:zn.a.string,validatingButtonAriaLabel:zn.a.string};var eo=cr.span(Di(),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),to=cr.h2(Li(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),no=cr(Ir)(Ti());function ro(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,a=e.isActive,c=e.isComplete,s=e.onEdit,l=e.editButtonText,u=e.editButtonAriaLabel,__=lt().__,d=!!s;return Object(o.createElement)(to,{isComplete:c,isActive:a,className:Hn([n,"checkout-step__header"])},Object(o.createElement)(so,{isComplete:c,isActive:a,id:t},r||null),Object(o.createElement)(eo,{fullWidth:!d,isActive:a},i),d&&Object(o.createElement)(no,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:s,"aria-label":u||__("Edit this step")},l||__("Edit")))}var io=cr.div(Ai()),oo=cr.div(Pi(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),ao=cr.div(Ni(),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),co=cr(ao)(ki(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function so(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,a=e.id,c=!n&&t;return Object(o.createElement)(io,{className:Hn([r,"checkout-step__stepper"])},Object(o.createElement)(oo,{isComplete:c},Object(o.createElement)(ao,{isComplete:c,isActive:n},i),Object(o.createElement)(co,null,Object(o.createElement)(Hr,{id:a}))))}ro.propTypes={id:zn.a.string,className:zn.a.string,stepNumber:zn.a.number,title:zn.a.node.isRequired,isActive:zn.a.bool,isComplete:zn.a.bool,editButtonText:zn.a.string,editButtonAriaLabel:zn.a.string,onEdit:zn.a.func},so.propTypes={id:zn.a.string,className:zn.a.string,isComplete:zn.a.bool,isActive:zn.a.bool};n(132);var lo,uo,fo=Object(o.createElement)(T,{icon:Nn,size:17}),mo=function(e){var t=e.onNextStep,n=e.onPrevStep,r=Object(s.useSelect)((function(e){return e(i).getSelectedDomain()})),a=Object(s.useSelect)((function(e){return e(i).getSelectedPlan()})),c=Object(s.useSelect)((function(e){var t;return e("automattic/onboard/plans").getPrices((null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en")})),l=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),u=Object(s.useSelect)((function(e){return e(i).isStepCompleted})),d=Object(s.useSelect)((function(e){return e(i).isFlowCompleted()})),f=se().title,m=bt().siteSubdomain,p=function(){var e,t=_(),n=yt().domainSearch;return null===(e=Object(s.useSelect)((function(e){if(n&&!(n.length<2))return e(B).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}(),h=yt().domainSearch,b=Object(s.useDispatch)(i).setStep,g=Object(o.createElement)("div",{className:"nux-launch__summary-item"},Object(o.createElement)("p",null,Object(x.__)("Site","full-site-editing"),": ",f)),v=Object(o.createElement)("div",{className:"nux-launch__summary-item"},(null==r?void 0:r.domain_name)?Object(o.createElement)("p",null,Object(x.__)("Custom domain","full-site-editing"),": ",r.domain_name):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(x.__)("Free site address","full-site-editing"),": ",null==m?void 0:m.domain),Object(o.createElement)(C.Tip,null,h?Object(o.createInterpolateElement)(Object(x.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:Object(o.createElement)("span",{className:w()("nux-launch__summary-item__domain-name",{"is-loading":!p})},(null==p?void 0:p.domain_name)||"loading-example.com"),Link:Object(o.createElement)(C.Button,{isLink:!0,onClick:function(){return b(l.Domain)}})}):Object(x.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),y=Object(o.createElement)("div",{className:"nux-launch__summary-item"},a&&!(null==a?void 0:a.isFree)?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",a.title),Object(x.__)("Plan subscription","full-site-editing"),": ",c[a.storeSlug]," ",Object(x.__)("per month, billed yearly","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(o.createElement)("p",null,Object(x.__)("Plan subscription: Free forever","full-site-editing")),Object(o.createElement)(C.Tip,null,Object(o.createInterpolateElement)(Object(x.__)("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer 30-day full-refunds, guaranteed.","full-site-editing"),{Link:Object(o.createElement)(C.Button,{isLink:!0,onClick:function(){return b(l.Plan)}})}))));return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Launch your site","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(kn,{theme:Mn},Object(o.createElement)(qi,null,u(l.Plan)&&Object(o.createElement)($i,null,Object(o.createElement)(Gi,{className:"nux-launch__feature-list"},Object(o.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(x.__)("Included in your plan","full-site-editing")),Object(o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==a?void 0:a.features.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"nux-launch__feature-item"},fo," ",e)}))),Object(o.createElement)("p",null,Object(x.__)("Questions?","full-site-editing")," ",Object(o.createElement)(C.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(x.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(o.createElement)(Yi,null,Object(o.createElement)(Zi,{isStepActive:!1,titleContent:Object(x.__)("Your site name","full-site-editing"),isStepComplete:u(l.Name),goToThisStep:function(){return b(l.Name)},completeStepContent:g,stepId:"name",formStatus:fr.READY}),Object(o.createElement)(Zi,{isStepActive:!1,titleContent:Object(x.__)("Your domain","full-site-editing"),isStepComplete:u(l.Domain),goToThisStep:function(){return b(l.Domain)},completeStepContent:v,stepId:"domain",formStatus:fr.READY}),Object(o.createElement)(Zi,{isStepActive:!1,titleContent:Object(x.__)("Your plan","full-site-editing"),isStepComplete:u(l.Plan),goToThisStep:function(){return b(l.Plan)},completeStepContent:y,stepId:"plan",formStatus:fr.READY}),Object(o.createElement)(Ki,null,Object(o.createElement)(C.Button,{isPrimary:!0,disabled:!d,onClick:t,className:"nux-launch__submit-button"},Object(x.__)("Launch your site","full-site-editing"))))))),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==n||n()}}))))},po=(n(135),function(e){var t,n=e.onSubmit,r=Object(s.useSelect)((function(e){return e(i).getState()})).step,c=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),l=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()})),u=Object(s.useSelect)((function(e){return e(i).getFirstIncompleteStep()})),d=Object(s.useDispatch)(i),f=d.setStep,m=d.setSidebarFullscreen,p=d.unsetSidebarFullscreen,h=(t={},Z()(t,c.Name,le),Z()(t,c.Domain,_t),Z()(t,c.Plan,qt),Z()(t,c.Final,mo),t),b=l.indexOf(r),g=h[r];return a.useEffect((function(){u&&u!==c.Name&&f(u)}),[]),Object(o.createElement)(g,{onPrevStep:function(){var e=b-1;e<0&&(e=0,m()),f(l[e])},onNextStep:function(){var e=b+1;e>l.length-1&&(null==n||n()),p(),f(l[e])}})}),ho=Object(o.createElement)(C.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(C.Circle,{cx:"12",cy:"12",r:"5"})),bo=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,a=e.onClick;return Object(o.createElement)(C.Button,{className:w()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:a,disabled:i,isLink:!0},Object(o.createElement)(T,{icon:n?Nn:ho,size:16}),Object(o.createElement)("span",null,t))},go=(n(136),function(e){var t,n=e.onMenuItemClick,__=lt().__,r=Object(s.useSelect)((function(e){return e(i).getState()})).step,a=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),c=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()})),l=Object(s.useSelect)((function(e){return e(i).isStepCompleted})),u=Object(s.useSelect)((function(e){return e(i).isFlowCompleted()})),d=(t={},Z()(t,a.Name,__("Name your site","full-site-editing")),Z()(t,a.Domain,__("Select a domain","full-site-editing")),Z()(t,a.Plan,__("Select a plan","full-site-editing")),Z()(t,a.Final,__("Launch your site","full-site-editing")),t),f=Object(s.useDispatch)(i).setStep;return Object(o.createElement)("div",{className:"nux-launch-menu"},Object(o.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),Object(o.createElement)("div",{className:"nux-launch-menu__item-group"},c.map((function(e){return Object(o.createElement)(bo,{key:e,title:d[e],isCompleted:l(e),isCurrent:e===r,onClick:function(){return function(e){f(e),n(e)}(e)},isDisabled:e===a.Final&&!u})}))))}),vo=(n(137),function(){var e=Object(s.useDispatch)(i),t=e.setStep,n=e.unsetSidebarFullscreen,r=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()}));return Object(o.createElement)("div",{className:"nux-launch-sidebar"},Object(o.createElement)("div",{className:"nux-launch-sidebar__header"},Object(o.createElement)(ee,null,Object(x.__)("You're almost there!","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),Object(o.createElement)("div",{className:"nux-launch-sidebar__body"},Object(o.createElement)(go,{onMenuItemClick:function(){n()}})),Object(o.createElement)("div",{className:"nux-launch-sidebar__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(ae,{onClick:function(){t(r[0]),n()}},Object(x.__)("Get Started","full-site-editing")))))}),yo=(n(138),function(){var __=lt().__,e=Object(s.useSelect)((function(e){return e(i).getState()})).step,t=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()})),n=t.indexOf(e)+1,r=t.length,a=Object(x.sprintf)(__("%1$d of %2$d","full-site-editing"),n,r);return Object(o.createElement)("div",{className:"nux-launch-progress"},a)}),Oo=(n(139),function(e){var t=e.onClose,n=a.useContext(h).siteId,c=Object(s.useSelect)((function(e){return e(i).getState()})),l=c.step,u=c.isSidebarFullscreen,d=a.useState(!1),f=j()(d,2),m=f[0],p=f[1],b=Object(s.useDispatch)(r).launchSite;return function(){var e=a.useContext(h),t=e.siteId,n=e.redirectTo,r=Object(s.useSelect)((function(e){return e(U).getState()})).plan,i=Q().isSiteLaunched,o=X().goToCheckout;a.useEffect((function(){if(i){if(r&&!(null==r?void 0:r.isFree))return void o();n("/home/".concat(t))}}),[i])}(),Object(o.createElement)(C.Modal,{open:!0,className:w()("nux-launch-modal","step-".concat(l),u?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},m?Object(o.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(x.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"nux-launch-modal-body"},Object(o.createElement)("div",{className:"nux-launch-modal-header"},Object(o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(o.createElement)(T,{icon:D,size:36})),Object(o.createElement)(yo,null)),Object(o.createElement)(po,{onSubmit:function(){b(n),p(!0)}})),Object(o.createElement)("div",{className:"nux-launch-modal-aside"},Object(o.createElement)(vo,null)),Object(o.createElement)(C.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(x.__)("Close dialog","full-site-editing"),disabled:!t},Object(o.createElement)("span",null,Object(o.createElement)(T,{icon:R,size:24})))))}),_o=function(e){var t=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat("https://wordpress.com").concat(t))},Eo=function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window)||void 0===e?void 0:e.currentSiteId,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o="a8c.wpcom-block-editor.openCheckoutModal",a=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;if(Object(u.hasAction)(o)&&a)Object(u.doAction)(o);else{var c=Object(m.addQueryArgs)("/checkout/".concat(r),f()({},!i&&{redirect_to:"/home/".concat(r)}));_o(c)}};lo="a8c-editor-site-launch",uo={render:function(){var e,t=Object(s.useSelect)((function(e){return e(i).getState()})).isSidebarOpen,n=Object(s.useDispatch)(i),r=n.closeSidebar,c=n.setSidebarFullscreen,l=n.unsetSidebarFullscreen;return a.useEffect((function(){window.innerWidth<782?c():l()}),[t,c,l]),a.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";Object(u.hasAction)(e)&&Object(u.doAction)(e,{hidden:t})}),[t]),t?Object(o.createElement)(O,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},Object(o.createElement)(h.Provider,{value:{siteId:window._currentSiteId,flow:Ot,redirectTo:_o,openCheckout:Eo}},Object(o.createElement)(Oo,{onClose:r}))):null}},Object(l.registerPlugin)(lo,uo);var jo=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(L.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));function So(){return(So=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function wo(e){return"/"===e.charAt(0)}function xo(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var Co=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&wo(e),a=t&&wo(t),c=o||a;if(e&&wo(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,u=i.length;u>=0;u--){var d=i[u];"."===d?xo(i,u):".."===d?(xo(i,u),l++):l&&(xo(i,u),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&wo(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function ko(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var No=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=ko(t),i=ko(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},Po="Invariant failed";var Ao=function(e,t){if(!e)throw new Error(Po)};function To(e){return"/"===e.charAt(0)?e:"/"+e}function Lo(e){return"/"===e.charAt(0)?e.substr(1):e}function Do(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Ro(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Io(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Fo(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=So({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Co(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Mo(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Bo=!("undefined"==typeof window||!window.document||!window.document.createElement);function Uo(e,t){t(window.confirm(e))}var Vo="popstate",zo="hashchange";function Ho(){try{return window.history.state||{}}catch(e){return{}}}function qo(e){void 0===e&&(e={}),Bo||Ao(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,s=o.getUserConfirmation,l=void 0===s?Uo:s,u=o.keyLength,d=void 0===u?6:u,f=e.basename?Ro(To(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return f&&(o=Do(o,f)),Fo(o,r,n)}function p(){return Math.random().toString(36).substr(2,d)}var h=Mo();function b(e){So(k,e),k.length=n.length,h.notifyListeners(k.location,k.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||O(m(e.state))}function v(){O(m(Ho()))}var y=!1;function O(e){if(y)y=!1,b();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?b({action:"POP",location:e}):function(e){var t=k.location,n=E.indexOf(t.key);-1===n&&(n=0);var r=E.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(y=!0,S(i))}(e)}))}}var _=m(Ho()),E=[_.key];function j(e){return f+Io(e)}function S(e){n.go(e)}var w=0;function x(e){1===(w+=e)&&1===e?(window.addEventListener(Vo,g),i&&window.addEventListener(zo,v)):0===w&&(window.removeEventListener(Vo,g),i&&window.removeEventListener(zo,v))}var C=!1;var k={length:n.length,action:"POP",location:_,createHref:j,push:function(e,t){var i="PUSH",o=Fo(e,t,p(),k.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=j(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var l=E.indexOf(k.location.key),u=E.slice(0,l+1);u.push(o.key),E=u,b({action:i,location:o})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",o=Fo(e,t,p(),k.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=j(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var l=E.indexOf(k.location.key);-1!==l&&(E[l]=o.key),b({action:i,location:o})}else window.location.replace(t)}}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return C||(x(1),C=!0),function(){return C&&(C=!1,x(-1)),t()}},listen:function(e){var t=h.appendListener(e);return x(1),function(){x(-1),t()}}};return k}var Wo="hashchange",$o={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Lo(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Lo,decodePath:To},slash:{encodePath:To,decodePath:To}};function Go(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Yo(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Ko(e){window.location.replace(Go(window.location.href)+"#"+e)}function Xo(e){void 0===e&&(e={}),Bo||Ao(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?Uo:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?Ro(To(e.basename)):"",s=$o[a],l=s.encodePath,u=s.decodePath;function d(){var e=u(Yo());return c&&(e=Do(e,c)),Fo(e)}var f=Mo();function m(e){So(w,e),w.length=t.length,f.notifyListeners(w.location,w.action)}var p=!1,h=null;function b(){var e,t,n=Yo(),r=l(n);if(n!==r)Ko(r);else{var o=d(),a=w.location;if(!p&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(h===Io(o))return;h=null,function(e){if(p)p=!1,m();else{var t="POP";f.confirmTransitionTo(e,t,i,(function(n){n?m({action:t,location:e}):function(e){var t=w.location,n=O.lastIndexOf(Io(t));-1===n&&(n=0);var r=O.lastIndexOf(Io(e));-1===r&&(r=0);var i=n-r;i&&(p=!0,_(i))}(e)}))}}(o)}}var g=Yo(),v=l(g);g!==v&&Ko(v);var y=d(),O=[Io(y)];function _(e){t.go(e)}var E=0;function j(e){1===(E+=e)&&1===e?window.addEventListener(Wo,b):0===E&&window.removeEventListener(Wo,b)}var S=!1;var w={length:t.length,action:"POP",location:y,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Go(window.location.href)),n+"#"+l(c+Io(e))},push:function(e,t){var n="PUSH",r=Fo(e,void 0,void 0,w.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=Io(r),i=l(c+t);if(Yo()!==i){h=t,function(e){window.location.hash=e}(i);var o=O.lastIndexOf(Io(w.location)),a=O.slice(0,o+1);a.push(t),O=a,m({action:n,location:r})}else m()}}))},replace:function(e,t){var n="REPLACE",r=Fo(e,void 0,void 0,w.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=Io(r),i=l(c+t);Yo()!==i&&(h=t,Ko(i));var o=O.indexOf(Io(w.location));-1!==o&&(O[o]=t),m({action:n,location:r})}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=f.setPrompt(e);return S||(j(1),S=!0),function(){return S&&(S=!1,j(-1)),t()}},listen:function(e){var t=f.appendListener(e);return j(1),function(){j(-1),t()}}};return w}function Qo(e,t,n){return Math.min(Math.max(e,t),n)}function Jo(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,s=void 0===c?6:c,l=Mo();function u(e){So(b,e),b.length=b.entries.length,l.notifyListeners(b.location,b.action)}function d(){return Math.random().toString(36).substr(2,s)}var f=Qo(a,0,i.length-1),m=i.map((function(e){return Fo(e,void 0,"string"==typeof e?d():e.key||d())})),p=Io;function h(e){var t=Qo(b.index+e,0,b.entries.length-1),r=b.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var b={length:m.length,action:"POP",location:m[f],index:f,entries:m,createHref:p,push:function(e,t){var r="PUSH",i=Fo(e,t,d(),b.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=Fo(e,t,d(),b.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,u({action:r,location:i}))}))},go:h,goBack:function(){h(-1)},goForward:function(){h(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return b}var Zo=n(83),ea=n.n(Zo),ta=1073741823;function na(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var ra=c.a.createContext||function(e,t){var n,r,i="__create-react-context-"+ea()()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=na(t.props.value),t}tn()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):ta,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(a.Component);o.childContextTypes=((n={})[i]=zn.a.object.isRequired,n);var c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}tn()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?ta:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?ta:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((r={})[i]=zn.a.object,r),{Provider:o,Consumer:c}},ia=n(54),oa=n.n(ia),aa=(n(69),function(e){var t=ra();return t.displayName=e,t}("Router")),ca=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Wt(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return c.a.createElement(aa.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(c.a.Component);var sa=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Jo(t.props),t}return Wt(t,e),t.prototype.render=function(){return c.a.createElement(ca,{history:this.history,children:this.props.children})},t}(c.a.Component);var la=function(e){function t(){return e.apply(this,arguments)||this}Wt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(c.a.Component);var ua={},da=0;function fa(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(ua[e])return ua[e];var t=oa.a.compile(e);return da<1e4&&(ua[e]=t,da++),t}(e)(t,{pretty:!0})}function ma(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return c.a.createElement(aa.Consumer,null,(function(e){e||Ao(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,s=Fo(t?"string"==typeof n?fa(n,t.params):So({},n,{pathname:fa(n.pathname,t.params)}):n);return o?(a(s),null):c.a.createElement(la,{onMount:function(){a(s)},onUpdate:function(e,t){var n,r,i=Fo(t.to);n=i,r=So({},s,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&No(n.state,r.state)||a(s)},to:n})}))}var pa={},ha=0;function ba(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=pa[n]||(pa[n]={});if(r[e])return r[e];var i=[],o={regexp:oa()(e,i,t),keys:i};return ha<1e4&&(r[e]=o,ha++),o}(n,{end:o,strict:c,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var ga=function(e){function t(){return e.apply(this,arguments)||this}return Wt(t,e),t.prototype.render=function(){var e=this;return c.a.createElement(aa.Consumer,null,(function(t){t||Ao(!1);var n=e.props.location||t.location,r=So({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?ba(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,s=i.render;return Array.isArray(o)&&0===o.length&&(o=null),c.a.createElement(aa.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?c.a.createElement(a,r):s?s(r):null:"function"==typeof o?o(r):null)}))},t}(c.a.Component);function va(e){return"/"===e.charAt(0)?e:"/"+e}function ya(e,t){if(!e)return t;var n=va(e);return 0!==t.pathname.indexOf(n)?t:So({},t,{pathname:t.pathname.substr(n.length)})}function Oa(e){return"string"==typeof e?e:Io(e)}function _a(e){return function(){Ao(!1)}}function Ea(){}c.a.Component;var ja=function(e){function t(){return e.apply(this,arguments)||this}return Wt(t,e),t.prototype.render=function(){var e=this;return c.a.createElement(aa.Consumer,null,(function(t){t||Ao(!1);var n,r,i=e.props.location||t.location;return c.a.Children.forEach(e.props.children,(function(e){if(null==r&&c.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?ba(i.pathname,So({},e.props,{path:o})):t.match}})),r?c.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(c.a.Component);var Sa,wa,xa=c.a.useContext;function Ca(){return xa(aa).history}(wa=Sa||(Sa={})).Summary="/",wa.PlanDetails="/plan-details",wa.DomainDetails="/domain-details",wa.Success="/success";c.a.Component;c.a.Component;var ka=function(e,t){return"function"==typeof e?e(t):e},Na=function(e,t){return"string"==typeof e?Fo(e,null,null,t):e},Pa=function(e){return e},Aa=c.a.forwardRef;void 0===Aa&&(Aa=Pa);var Ta=Aa((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=N(e,["innerRef","navigate","onClick"]),a=o.target,s=So({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=Pa!==Aa&&t||n,c.a.createElement("a",s)}));var La=Aa((function(e,t){var n=e.component,r=void 0===n?Ta:n,i=e.replace,o=e.to,a=e.innerRef,s=N(e,["component","replace","to","innerRef"]);return c.a.createElement(aa.Consumer,null,(function(e){e||Ao(!1);var n=e.history,l=Na(ka(o,e.location),e.location),u=l?n.createHref(l):"",d=So({},s,{href:u,navigate:function(){var t=ka(o,e.location);(i?n.replace:n.push)(t)}});return Pa!==Aa?d.ref=t||a:d.innerRef=a,c.a.createElement(r,d)}))})),Da=function(e){return e},Ra=c.a.forwardRef;void 0===Ra&&(Ra=Da);Ra((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,s=e.className,l=e.exact,u=e.isActive,d=e.location,f=e.strict,m=e.style,p=e.to,h=e.innerRef,b=N(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return c.a.createElement(aa.Consumer,null,(function(e){e||Ao(!1);var n=d||e.location,i=Na(ka(p,n),n),g=i.pathname,v=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),y=v?ba(n.pathname,{path:v,exact:l,strict:f}):null,O=!!(u?u(y,n):y),_=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(s,o):s,E=O?So({},m,{},a):m,j=So({"aria-current":O&&r||null,className:_,style:E,to:i},b);return Da!==Ra?j.ref=t||h:j.innerRef=h,c.a.createElement(La,j)}))}));function Ia(){var e=function(){var e=a.useContext(h).siteId,t=Object(s.useDispatch)(F).getCart,n=a.useState(void 0),r=j()(n,2),i=r[0],o=r[1];return a.useEffect((function(){z()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return K(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.product_slug;return Object(s.useSelect)((function(e){return t?e(M).getPlanBySlug(t):void 0}))}n(148);var Fa=function(e){var t=e.label,n=e.badgeText;return Object(o.createElement)("div",{className:"focused-launch-summary-item__leading-side"},Object(o.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},t),n?Object(o.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},n):null)},Ma=function(e){var t=e.nodeType,n=e.children;return Object(o.createElement)("div",{className:w()({"focused-launch-summary-item__warning-note":"WARNING"===t,"focused-launch-summary-item__price-cost":"PRICE"===t})},n)},Ba=function(e){var t=e.children,n=e.isSelected,r=void 0!==n&&n,i=e.readOnly,a=void 0!==i&&i,c=e.isLoading,s=re()(e,["children","isSelected","readOnly","isLoading"]);return Object(o.createElement)("button",g()({},s,{disabled:a,className:w()("focused-launch-summary__item",{"is-selected":r,"is-readonly":a,"is-loading":c})}),t[0],t[1])},Ua="focused-launch",Va=(n(147),Object(o.createElement)(C.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(C.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}))),za=Object(o.createElement)(C.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},Object(o.createElement)(C.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),Object(o.createElement)(C.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),Object(o.createElement)(C.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),Ha=function(e){var t=e.input,n=e.commentary,r=e.highlighted;return Object(o.createElement)("div",{className:w()("focused-launch-summary__step",{highlighted:r})},Object(o.createElement)("div",{className:"focused-launch-summary__data-input"},Object(o.createElement)("div",{className:"focused-launch-summary__section"},t)),Object(o.createElement)("div",{className:"focused-launch-summary__side-commentary"},n))},qa=function(e){var t=e.stepIndex,n=e.value,r=e.onChange,i=e.onBlur;return Object(o.createElement)(Ha,{highlighted:!0,input:Object(o.createElement)(C.TextControl,{className:"focused-launch-summary__input",label:Object(o.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),Object(x.__)("Name your site","full-site-editing")),value:n,onChange:r,onBlur:i,autoFocus:!0})})},Wa=function(e){var t=e.stepIndex,n=e.existingSubdomain,r=e.currentDomain,i=e.initialDomainSearch,a=e.hasPaidDomain,c=e.onDomainSelect,s=e.onExistingSubdomainSelect,l=e.isLoading,u=e.highlighted,d=_();return Object(o.createElement)(Ha,{highlighted:!!u,input:a?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},Object(x.__)("Your domain","full-site-editing"),Object(o.createElement)(C.Tooltip,{position:"top center",text:Object(x.__)("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},Object(o.createElement)("span",null,za)),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},Object(o.createElement)(pe,{icon:Va}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:Object(o.createElement)("strong",null)})))),Object(o.createElement)(Ba,{readOnly:!0},Object(o.createElement)(Fa,{label:(null==r?void 0:r.domain_name)||""}),Object(o.createElement)(Ma,{nodeType:"PRICE"},Object(o.createElement)(pe,{icon:Et,size:18})," ",Object(x.__)("Purchased","full-site-editing")))):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(pt,{header:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),Object(x.__)("Confirm your domain","full-site-editing")),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},Object(o.createElement)(pe,{icon:Va}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})))),areDependenciesLoading:l,existingSubdomain:n,currentDomain:r,onDomainSelect:c,onExistingSubdomainSelect:s,initialDomainSearch:i,showSearchField:!1,analyticsFlowId:Ua,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:"individual-item",locale:d}),Object(o.createElement)(La,{to:Sa.DomainDetails,className:"focused-launch-summary__details-link"},Object(x.__)("View all domains","full-site-editing"))),commentary:Object(o.createElement)(o.Fragment,null,a?Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:Object(o.createElement)("strong",null)})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})),Object(o.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(pe,{icon:Et}),Object(x.__)("Stand out with a unique domain","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(pe,{icon:Et}),Object(x.__)("Easy to remember and easy to share","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(pe,{icon:Et}),Object(x.__)("Builds brand recognition and trust","full-site-editing")))))})},$a=function(e){var t,n,r,i,c,l=e.stepIndex,u=e.highlighted,d=e.hasPaidPlan,f=void 0!==d&&d,m=e.hasPaidDomain,p=void 0!==m&&m,h=e.selectedPaidDomain,b=void 0!==h&&h,g=Object(s.useDispatch)(U).setPlan,v=Object(s.useSelect)((function(e){return e(U).getSelectedPlan()})),y=Object(s.useSelect)((function(e){return e(U).getPaidPlan()})),O=(c=_(),{defaultPaidPlan:Object(s.useSelect)((function(e){return e(M).getDefaultPaidPlan(c)})),defaultFreePlan:Object(s.useSelect)((function(e){return e(M).getDefaultFreePlan(c)})),planPrices:Object(s.useSelect)((function(e){return e(M).getPrices("")}))}),E=O.defaultPaidPlan,j=O.defaultFreePlan,S=O.planPrices,w=a.useRef(y),k=function(e){return e&&e.storeSlug===(null==v?void 0:v.storeSlug)},N=Q().sitePlan,P=(null==w?void 0:w.current)&&E&&(null==w||null===(t=w.current)||void 0===t?void 0:t.storeSlug)!==(null==E?void 0:E.storeSlug)?null==w?void 0:w.current:void 0;return Object(o.createElement)(Ha,{highlighted:!!u,input:f?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},Object(x.__)("Your plan","full-site-editing"),Object(o.createElement)(C.Tooltip,{position:"top center",text:Object(x.__)("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},Object(o.createElement)("span",null,za)),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},Object(o.createElement)(pe,{icon:Va}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})))),Object(o.createElement)("div",null,Object(o.createElement)(Ba,{readOnly:!0},Object(o.createElement)(Fa,{label:Object(x.sprintf)(Object(x.__)("%s Plan","full-site-editing"),null==N?void 0:N.product_name_short)}),Object(o.createElement)(Ma,{nodeType:"PRICE"},Object(o.createElement)(pe,{icon:Et,size:18})," ",Object(x.__)("Purchased","full-site-editing"))))):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},l&&"".concat(l,". "),Object(x.__)("Confirm your plan","full-site-editing")),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},Object(o.createElement)(pe,{icon:Va}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)}))),Object(o.createElement)("div",null,Object(o.createElement)(Ba,{isLoading:!j||!E,onClick:function(){return E&&g(E)},isSelected:k(E)},Object(o.createElement)(Fa,{label:Object(x.sprintf)(Object(x.__)("%s Plan","full-site-editing"),null!==(n=null==E?void 0:E.title)&&void 0!==n?n:""),badgeText:(null==E?void 0:E.isPopular)?Object(x.__)("Popular","full-site-editing"):""}),Object(o.createElement)(Ma,{nodeType:"PRICE"},Object(o.createElement)("span",null,E&&S[null==E?void 0:E.storeSlug]),Object(o.createElement)("span",null,Object(x.__)("/mo","full-site-editing")))),P&&Object(o.createElement)(Ba,{onClick:function(){return g(P)},isSelected:k(P)},Object(o.createElement)(Fa,{label:Object(x.sprintf)(Object(x.__)("%s Plan","full-site-editing"),null!==(r=P.title)&&void 0!==r?r:""),badgeText:P.isPopular?Object(x.__)("Popular","full-site-editing"):""}),Object(o.createElement)(Ma,{nodeType:"PRICE"},Object(o.createElement)("span",null,S[null==P?void 0:P.storeSlug]),Object(o.createElement)("span",null,Object(x.__)("/mo","full-site-editing")))),Object(o.createElement)(Ba,{isLoading:!j||!E,readOnly:p||b,onClick:function(){return j&&g(j)},isSelected:!(p||b)&&(null==v?void 0:v.isFree)},Object(o.createElement)(Fa,{label:Object(x.sprintf)(Object(x.__)("%s Plan","full-site-editing"),null!==(i=null==j?void 0:j.title)&&void 0!==i?i:"")}),Object(o.createElement)(Ma,{nodeType:p||b?"WARNING":"PRICE"},p||b?Object(x.__)("Not available with your domain selection","full-site-editing"):Object(x.__)("Free","full-site-editing")))),Object(o.createElement)(La,{to:Sa.PlanDetails,className:"focused-launch-summary__details-link"},Object(x.__)("View all plans","full-site-editing"))),commentary:f?Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})),Object(o.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(pe,{icon:Et}),Object(x.__)("Advanced tools and customization","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(pe,{icon:Et}),Object(x.__)("Unlimited premium themes","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(pe,{icon:Et}),Object(x.__)("Accept payments","full-site-editing"))))})},Ga=function(){var e=Object(s.useSelect)((function(e){var t=e(U).getState(),n=t.isSiteTitleStepVisible,r=t.domain,i=t.plan;return[e(U).hasSelectedDomain(),n,r,i]})),t=j()(e,4),n=t[0],r=t[1],i=t[2],c=t[3],l=Object(s.useDispatch)(F).launchSite,u=Object(s.useDispatch)(U),d=u.setModalDismissible,f=u.showModalTitle,m=u.showSiteTitleStep,p=se(),b=p.title,g=p.updateTitle,v=p.saveTitle,y=bt(),O=y.siteSubdomain,_=y.hasPaidDomain,E=vt(),S=E.onDomainSelect,w=E.onExistingSubdomainSelect,C=E.currentDomain,k=yt(),N=k.domainSearch,P=k.isLoading,A=Q().isPaidPlan,T=a.useContext(h),L=T.siteId,D=T.redirectTo,R=X().goToCheckout;a.useEffect((function(){d(),f()}),[d,f]),a.useEffect((function(){r||W(b)||m()}),[b,m,r]);var I=!!n||W(b),M=!!n||!!c,B=[],V=[];r&&V.push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return Object(o.createElement)(qa,{stepIndex:n?t:void 0,key:t,value:b||"",onChange:g,onBlur:v})})),(_?B:V).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return Object(o.createElement)(Wa,{highlighted:I,stepIndex:n?t:void 0,key:t,existingSubdomain:ht(null==O?void 0:O.domain),currentDomain:C,initialDomainSearch:N,hasPaidDomain:_,isLoading:P,onDomainSelect:S,onExistingSubdomainSelect:w})})),(A?B:V).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return Object(o.createElement)($a,{highlighted:M,hasPaidPlan:A,selectedPaidDomain:i&&!i.is_free,hasPaidDomain:_,stepIndex:n?t:void 0,key:t})}));var z=b&&(_||n)&&(A||c);return Object(o.createElement)("div",{className:"focused-launch-container"},Object(o.createElement)("div",{className:"focused-launch-summary__section"},Object(o.createElement)(ee,{tagName:"h2"},_&&A?Object(x.__)("You're ready to launch","full-site-editing"):Object(x.__)("You're almost there","full-site-editing")),Object(o.createElement)(te,{tagName:"p",className:"focused-launch-summary__caption"},_&&A?Object(x.__)("You're good to go! Launch your site and share your site address.","full-site-editing"):Object(x.__)("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing"))),B.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:!1})})),V.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:V.length>1})})),Object(o.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},Object(o.createElement)(ie,{className:"focused-launch-summary__launch-action-bar"},Object(o.createElement)(ae,{className:"focused-launch-summary__launch-button",disabled:!z,onClick:function(){l(L),(i||c&&!(null==c?void 0:c.isFree))&&R()}},Object(x.__)("Launch your site","full-site-editing"))),Object(o.createElement)("div",{className:"focused-launch-summary__ask-for-help"},Object(o.createElement)("p",null,Object(x.__)("Questions? Our experts can assist.","full-site-editing")),Object(o.createElement)("a",{href:"/help",onClick:function(e){var t=e.target.getAttribute("href");t&&(D(t),e.preventDefault())}},Object(x.__)("Ask a Happiness Engineer","full-site-editing")))))},Ya=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Ka=(n(144),function(e){var t=e.className,n=re()(e,["className"]);return Object(o.createElement)(oe,g()({},n,{className:w()("go-back-button__focused-launch",t)}),Object(o.createElement)(pe,{icon:Ya}),Object(x.__)("Go back","full-site-editing"))}),Xa=(n(143),"domain_step"),Qa=function(){var e=_(),t=bt().siteSubdomain,n=yt(),r=n.domainSearch,i=n.setDomainSearch,a=vt(),c=a.onDomainSelect,s=a.onExistingSubdomainSelect,l=a.currentDomain,u=Ca(),d=function(){u.goBack()};return Object(o.createElement)("div",{className:"focused-launch-container"},Object(o.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},Object(o.createElement)(Ka,{onClick:d})),Object(o.createElement)("div",{className:"focused-launch-details__header"},Object(o.createElement)(ee,null,Object(x.__)("Choose a domain","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(o.createElement)("div",{className:"focused-launch-details__body"},Object(o.createElement)(pt,{initialDomainSearch:r,onSetDomainSearch:i,onDomainSearchBlur:function(e){De("calypso_newsite_domain_search_blur",{flow:Ua,query:e,where:Xa})},currentDomain:l,existingSubdomain:ht(null==t?void 0:t.domain),onDomainSelect:function(e){c(e),d()},onExistingSubdomainSelect:s,analyticsFlowId:Ua,analyticsUiAlgo:Xa,segregateFreeAndPaid:!0,locale:e,itemType:Qe})))},Ja=(n(145),function(){var e=_(),t=Object(s.useSelect)((function(e){return e(U).getSelectedDomain()})),n=Object(s.useSelect)((function(e){return e(U).getSelectedPlan()})),r=Ca(),i=Object(s.useDispatch)(U).updatePlan,a=t&&!t.is_free,c=function(){r.goBack()};return Object(o.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},Object(o.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},Object(o.createElement)(Ka,{onClick:c})),Object(o.createElement)("div",{className:"focused-launch-details__header"},Object(o.createElement)(ee,{tagName:"h2"},Object(x.__)("Select a plan","full-site-editing")),Object(o.createElement)(te,{tagName:"h3"},Object(x.__)("There's no risk, you can cancel for a full refund within 30 days.","full-site-editing"))),Object(o.createElement)("div",{className:"focused-launch-details__body"},Object(o.createElement)(Ht,{currentDomain:t,onPlanSelect:function(e){i(e),c()},currentPlan:n,onPickDomainClick:c,customTagLines:{free_plan:Object(x.__)("Best for getting started","full-site-editing"),"business-bundle":Object(x.__)("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:a?Z()({},I.Plans.PLAN_FREE,Object(x.__)("Not available with custom domain","full-site-editing")):void 0,CTAVariation:"FULL_WIDTH",locale:e})))}),Za=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),ec=function(e){var t=e.className;return Object(o.createElement)(C.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:t},Object(o.createElement)(C.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),Object(o.createElement)(C.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),Object(o.createElement)(C.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),Object(o.createElement)(C.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),Object(o.createElement)(C.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),Object(o.createElement)(C.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),Object(o.createElement)(C.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),Object(o.createElement)(C.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),Object(o.createElement)(C.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),Object(o.createElement)(C.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),Object(o.createElement)(C.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),Object(o.createElement)(C.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),Object(o.createElement)(C.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),Object(o.createElement)(C.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#09A884"}),Object(o.createElement)(C.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},tc=(n(146),function(){var e=a.useContext(h),t=e.redirectTo,n=e.siteId,r=Object(s.useSelect)((function(e){return e(F).isSiteLaunching(n)})),i=Object(s.useDispatch)(U),c=i.unsetModalDismissible,l=i.hideModalTitle,u=i.closeFocusedLaunch,d=i.disablePersistentSuccessView,f=bt(),m=f.siteSubdomain,p=f.sitePrimaryDomain,b=a.useState(""),g=j()(b,2),v=g[0],y=g[1],O=a.useState(!1),_=j()(O,2),E=_[0],S=_[1];a.useEffect((function(){y("https://".concat(null==p?void 0:p.domain))}),[p]),a.useEffect((function(){c(),l()}),[c,l]);return Object(o.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},Object(o.createElement)(ec,{className:"focused-launch-success__confetti"}),Object(o.createElement)(ee,{tagName:"h2"},Object(x.__)("Hooray!","full-site-editing")),Object(o.createElement)(te,{tagName:"h3"},r?Object(x.__)("Your site will be live shortly.","__i18n_text_domain__"):Object(x.__)("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing")),!r&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"focused-launch-success__url-wrapper"},Object(o.createElement)("span",{className:"focused-launch-success__url-field"},v),Object(o.createElement)("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":Object(x.__)("Visit site","full-site-editing")},Object(o.createElement)(pe,{icon:Za,size:16})),Object(o.createElement)(C.ClipboardButton,{text:v,onCopy:function(){return S(!0)},onFinishCopy:function(){return S(!1)},className:"focused-launch-success__url-copy-button"},E?Object(x.__)("Copied!","full-site-editing"):Object(x.__)("Copy Link","full-site-editing"))),Object(o.createElement)(ae,{onClick:function(){d(),u()},className:"focused-launch-success__continue-editing-button"},Object(x.__)("Continue Editing","full-site-editing")),Object(o.createElement)(oe,{onClick:function(){d(),t("/home/".concat(null==m?void 0:m.domain))}},Object(x.__)("Back home","full-site-editing"))))}),nc=(n(141),function(){var e=Q(),t=e.isSiteLaunched,n=e.isSiteLaunching,r=Object(s.useDispatch)(U).enablePersistentSuccessView,i=Object(s.useSelect)((function(e){var t=e(U).getState(),n=t.plan,r=t.shouldDisplaySuccessView;return[e(U).hasSelectedDomain(),n,r]})),c=j()(i,3),l=c[0],u=c[1],d=c[2];a.useEffect((function(){t&&r()}),[t,r]);var f=gt(),m=Object(s.useDispatch)(U).setDomain;a.useEffect((function(){!l&&f&&m(f)}),[l,f,m]);var p=Ia(),h=Object(s.useDispatch)(U).setPlan;return a.useEffect((function(){!u&&p&&h(p)}),[u,p,h]),Object(o.createElement)(sa,{initialEntries:[Sa.Summary,Sa.Success],initialIndex:d?1:0},(t||n)&&Object(o.createElement)(ma,{to:Sa.Success}),Object(o.createElement)(ja,null,Object(o.createElement)(ga,{path:Sa.DomainDetails},Object(o.createElement)(Qa,null)),Object(o.createElement)(ga,{path:Sa.PlanDetails},Object(o.createElement)(Ja,null)),Object(o.createElement)(ga,{path:Sa.Success},Object(o.createElement)(tc,null)),Object(o.createElement)(ga,{path:Sa.Summary},Object(o.createElement)(Ga,null))))}),rc=(n(140),function(e){var t=e.locale,n=void 0===t?"en":t,r=e.siteId,i=e.openCheckout,a=e.redirectTo,c=Object(s.useSelect)((function(e){return e(U).getState()})),l=c.isModalDismissible,u=c.isModalTitleVisible,d=c.shouldDisplaySuccessView,f=Object(s.useDispatch)(U).closeFocusedLaunch;return Object(o.createElement)(O,{localeSlug:n},Object(o.createElement)(C.Modal,{open:!0,className:w()("launch__focused-modal",{"launch__focused-modal--hide-title":!u}),overlayClassName:w()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":d}),bodyOpenClassName:"has-focused-launch-modal",onRequestClose:f,title:Object(x.__)("Complete setup","full-site-editing"),icon:Object(o.createElement)(pe,{icon:jo,size:36}),isDismissible:l,shouldCloseOnEsc:l,shouldCloseOnClickOutside:l},Object(o.createElement)("div",{className:"launch__focused-modal-body"},Object(o.createElement)(h.Provider,{value:{siteId:r,redirectTo:a,openCheckout:i,flow:Ua}},Object(o.createElement)(nc,null)))))});!function(e,t){Object(l.registerPlugin)(e,t)}("a8c-editor-editor-focused-launch",{render:function(){var e,t=window._currentSiteId,n=Object(s.useSelect)((function(e){var n=e(i).getState();return[n.isFocusedLaunchOpen,n.shouldDisplaySuccessView,e(r).isSiteLaunched(t)]})),c=j()(n,3),l=c[0],u=c[1],d=c[2];return a.useEffect((function(){d&&document.body.classList.add("is-focused-launch-complete")}),[d]),l||u?Object(o.createElement)(rc,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:Eo,redirectTo:_o,siteId:t}):null}})},,,function(e,t,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var s=function(e,t){var n=t||0,r=a;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};t.a=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;a<16;++a)t[r+a]=i[a];return t||s(i)}}]));
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"h",(function(){return m}));var r="free_plan",i="personal-bundle",o="value_bundle",a="business-bundle",c="ecommerce-bundle",s="automattic/onboard/plans",l=o,u=[i,o,a,c],d=["beginner","personal","premium","business","ecommerce"],f=[r,i,o,a,c],m={USD:{format:"SYMBOL_THEN_AMOUNT",symbol:"$",decimal:2},GBP:{format:"SYMBOL_THEN_AMOUNT",symbol:"£",decimal:2},JPY:{format:"SYMBOL_THEN_AMOUNT",symbol:"¥",decimal:0},BRL:{format:"SYMBOL_THEN_AMOUNT",symbol:"R$",decimal:2},EUR:{format:"SYMBOL_THEN_AMOUNT",symbol:"€",decimal:2},NZD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NZ$",decimal:2},AUD:{format:"SYMBOL_THEN_AMOUNT",symbol:"A$",decimal:2},CAD:{format:"SYMBOL_THEN_AMOUNT",symbol:"C$",decimal:2},IDR:{format:"AMOUNT_THEN_SYMBOL",symbol:"Rp",decimal:0},INR:{format:"AMOUNT_THEN_SYMBOL",symbol:"₹",decimal:0},ILS:{format:"AMOUNT_THEN_SYMBOL",symbol:"₪",decimal:2},RUB:{format:"AMOUNT_THEN_SYMBOL",symbol:"₽",decimal:2},MXN:{format:"SYMBOL_THEN_AMOUNT",symbol:"MX$",decimal:2},SEK:{format:"AMOUNT_THEN_SYMBOL",symbol:"SEK",decimal:2},HUF:{format:"AMOUNT_THEN_SYMBOL",symbol:"Ft",decimal:0},CHF:{format:"AMOUNT_THEN_SYMBOL",symbol:"CHF",decimal:2},CZK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kč",decimal:2},DKK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Dkr",decimal:2},HKD:{format:"AMOUNT_THEN_SYMBOL",symbol:"HK$",decimal:2},NOK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kr",decimal:2},PHP:{format:"AMOUNT_THEN_SYMBOL",symbol:"₱",decimal:2},PLN:{format:"AMOUNT_THEN_SYMBOL",symbol:"PLN",decimal:2},SGD:{format:"SYMBOL_THEN_AMOUNT",symbol:"S$",decimal:2},TWD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NT$",decimal:0},THB:{format:"SYMBOL_THEN_AMOUNT",symbol:"฿",decimal:2},TRY:{format:"AMOUNT_THEN_SYMBOL",symbol:"TL",decimal:2}}},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(101)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){var r=n(102),i=n(103),o=n(58),a=n(104);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return T}));var r,i=n(21),o=n.n(i),a=n(153),c=n(73),s=n.n(c),l=n(46),u=n.n(l),d=n(13),f=n.n(d)()("wpcom-proxy-request"),m="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host,h=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),b=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),g=null,v=!1,y={},O=!!window.ProgressEvent&&!!window.FormData;f('using "origin": %o',p);var _=function(e,t){var n=Object.assign({},e);f("request(%o)",n),g||x();var i=Object(a.a)();n.callback=i,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=O,n.method=String(n.method||"GET").toUpperCase(),f("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,y[i]=o,"function"==typeof t){var c=!1,s=function(e){if(!c){c=!0;var n=e.error||e.err||e;f("error: ",n),f("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!c){c=!0;var n=e.response||o.response;f("body: ",n),f("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",s),o.addEventListener("error",s)}return v?j(n):(f("buffering API request since proxying <iframe> is not yet loaded"),r.push(n)),o},E=function(e,t){return"function"==typeof t?_(e,t):new Promise((function(t,n){_(e,(function(e,r){e?n(e):t(r)}))}))};function j(e){f("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!b)return;for(var t=0;t<e.length;t++){var n=w(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),g.contentWindow.postMessage(h?JSON.stringify(e):e,m)}function S(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function w(e){return S(e)?e:"object"==typeof e&&S(e.fileContents)?e.fileContents:null}function x(){f("install()"),g&&(f("uninstall()"),window.removeEventListener("message",C),document.body.removeChild(g),v=!1,g=null),r=[],window.addEventListener("message",C),(g=document.createElement("iframe")).src=m+"/wp-admin/rest-proxy/?v=2.0#"+p,g.style.display="none",document.body.appendChild(g)}function C(e){if(f("onmessage"),e.origin===m)if(e.source===g.contentWindow){var t=e.data;if(!t)return f("no `data`, bailing");if("ready"!==t){if(h&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){f('got "progress" event: %o',e);var t=y[e.callbackId];if(t){var n=new u.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return f("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in y))return f("bailing, no matching request with callback: %o",n);var i=y[n],o=i.params,a=t[0],c=t[1],l=t[2];if(207===c||delete y[n],o.metaAPI?c="metaAPIupdated"===a?200:500:f("got %o status code for URL: %o",c,o.path),"object"==typeof l&&(l.status=c),c&&2===Math.floor(c/100))!function(e,t,n){var r=new u.a("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,a,l);else!function(e,t,n){var r=new u.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(i,s()(o,c,a),l)}else!function(){if(f('proxy <iframe> "load" event'),v=!0,r){for(var e=0;e<r.length;e++)j(r[e]);r=null}}()}else f("ignoring message... iframe elements do not match");else f("ignoring message... %o !== %o",e.origin,m)}var k,N=E,P=function(e){return{type:"WPCOM_REQUEST",request:e}},A=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},T={WPCOM_REQUEST:function(e){var t=e.request;return N(t)},FETCH_AND_PARSE:(k=o()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return k.apply(this,arguments)}),RELOAD_PROXY:function(){x()},REQUEST_ALL_BLOGS_ACCESS:function(){return E({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},function(e,t,n){"use strict";var r=n(60);n.d(t,"DomainSuggestions",(function(){return r}));var i=n(53);n.d(t,"Plans",(function(){return i}));var o=n(70);n.d(t,"Site",(function(){return o}));var a=n(71);n.d(t,"Launch",(function(){return a}));var c=n(72);n.d(t,"WPCOMFeatures",(function(){return c}))},function(e,t,n){var r=n(118);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},function(e,t){function n(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function c(e){n(a,i,o,c,s,"next",e)}function s(e){n(a,i,o,c,s,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";n.r(t),n.d(t,"receiveCategories",(function(){return r})),n.d(t,"fetchDomainSuggestions",(function(){return i})),n.d(t,"receiveDomainAvailability",(function(){return o})),n.d(t,"receiveDomainSuggestionsSuccess",(function(){return a})),n.d(t,"receiveDomainSuggestionsError",(function(){return c}));var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},c=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},,,,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.wp.dataControls}()},,function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,c;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,c=s,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):b(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return u(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,u=b(s,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return d(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return d(this,e,t,!0)},c.prototype.once=function(e,t){return l(t),this.on(e,m(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,m(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return p(this,e,!0)},c.prototype.rawListeners=function(e){return p(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},c.prototype.listenerCount=h,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(51),i=n(64);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=s(i.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),c=0,s=t;c<a.length;c++,s+=4){var l;l="big"===i?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[c]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+o>>>0)<o?1:0,e+n+i+a+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,c){return t+r+o+c>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,c,s,l){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+c>>>0)<c?1:0,e+n+i+a+s+(u+=(d=d+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,c,s,l){return t+r+o+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(75),i=n.n(r).a},function(e,t,n){"use strict";var r=n(106),i=n(107),o=n(62);e.exports={formats:o,parse:i,stringify:r}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(112);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(113),i=n(114),o=n(115);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(69),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=m(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var c=s(t),h=s(n),b=0;b<a.length;++b){var g=a[b];if(!(o[g]||r&&r[g]||h&&h[g]||c&&c[g])){var v=f(n,g);try{l(t,g,v)}catch(y){}}}}return t}},function(e,t){var n,r=window.ProgressEvent,i=!!r;try{n=new r("loaded"),i="loaded"===n.type,n=null}catch(o){i=!1}e.exports=i?r:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},function(e,t,n){"use strict";
|
7 |
/*!
|
8 |
* cookie
|
9 |
* Copyright(c) 2012-2014 Roman Shtylman
|
10 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
11 |
* MIT Licensed
|
12 |
+
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(o),s=i.decode||r,l=0;l<a.length;l++){var u=a[l],d=u.indexOf("=");if(!(d<0)){var f=u.substr(0,d).trim(),m=u.substr(++d,u.length).trim();'"'==m[0]&&(m=m.slice(1,-1)),null==n[f]&&(n[f]=c(m,s))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var c=o(t);if(c&&!a.test(c))throw new TypeError("argument val is invalid");var s=e+"="+c;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(l)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(s+="; HttpOnly");r.secure&&(s+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function c(e,t){try{return t(e)}catch(n){return e}}},,,function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?i+=r.charAt(a):c<128?i+=o[c]:c<2048?i+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?i+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),i+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return i(t)&&!i(n)&&(c=a(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),c)}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"PLAN_FREE",(function(){return s.d})),n.d(t,"PLAN_PERSONAL",(function(){return s.e})),n.d(t,"PLAN_PREMIUM",(function(){return s.f})),n.d(t,"PLAN_BUSINESS",(function(){return s.b})),n.d(t,"PLAN_ECOMMERCE",(function(){return s.c})),n.d(t,"plansPaths",(function(){return s.j})),n.d(t,"register",(function(){return V}));var r={};n.r(r),n.d(r,"setFeatures",(function(){return m})),n.d(r,"setFeaturesByType",(function(){return p})),n.d(r,"setPlans",(function(){return h})),n.d(r,"setPrices",(function(){return b})),n.d(r,"resetPlan",(function(){return g}));var i={};n.r(i),n.d(i,"getFeatures",(function(){return v})),n.d(i,"getFeaturesByType",(function(){return y})),n.d(i,"getPlanBySlug",(function(){return O})),n.d(i,"getDefaultPaidPlan",(function(){return _})),n.d(i,"getDefaultFreePlan",(function(){return E})),n.d(i,"getSupportedPlans",(function(){return j})),n.d(i,"getPlanByPath",(function(){return S})),n.d(i,"getPlansDetails",(function(){return w})),n.d(i,"getPlansPaths",(function(){return x})),n.d(i,"getPrices",(function(){return C})),n.d(i,"isPlanEcommerce",(function(){return k})),n.d(i,"isPlanFree",(function(){return N}));var o={};n.r(o),n.d(o,"getPrices",(function(){return F})),n.d(o,"getPlansDetails",(function(){return B}));var a,c=n(3),s=n(11),l=n(10),u=n.n(l),d=(a={},u()(a,s.d,""),u()(a,s.e,""),u()(a,s.f,""),u()(a,s.b,""),u()(a,s.c,""),a),f=Object(c.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}},prices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PRICES":return t.prices;default:return e}},supportedPlanSlugs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.k,t=arguments.length>1?arguments[1]:void 0;return t.type,e}}),m=function(e){return{type:"SET_FEATURES",features:e}},p=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},h=function(e){return{type:"SET_PLANS",plans:e}},b=function(e){return{type:"SET_PRICES",prices:e}},g=function(){return{type:"RESET_PLAN"}},v=function(e){return e.features},y=function(e){return e.featuresByType},O=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:void 0},_=function(e,t){var n;return null===(n=Object(c.select)(s.g).getPlansDetails(t))||void 0===n?void 0:n.plans[s.a]},E=function(e,t){var n;return null===(n=Object(c.select)(s.g).getPlansDetails(t))||void 0===n?void 0:n.plans[s.d]},j=function(e){var t=[];return e.supportedPlanSlugs.forEach((function(n){n in e.plans&&t.push(e.plans[n])})),t},S=function(e,t){return t?j(e).find((function(e){return(null==e?void 0:e.pathSlug)===t})):void 0},w=function(e,t){return e},x=function(e){return j(e).map((function(e){return null==e?void 0:e.pathSlug}))},C=function(e,t){return e.prices},k=function(e,t){return t===s.c},N=function(e,t){return t===s.d},P=n(7),A=n.n(P),T=n(39),L=n(16),D=regeneratorRuntime.mark(F),I=regeneratorRuntime.mark(B);function R(e){var t=s.h[e.currency_code],n=e.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?"".concat(n).concat(t.symbol):"".concat(t.symbol).concat(n)}function F(){var e,t,n,r,i=arguments;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:"en",o.next=3,Object(L.c)({path:"/plans",query:Object(T.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=o.sent,n=t.filter((function(e){return-1!==s.k.indexOf(e.product_slug)})),r=n.reduce((function(e,t){return e[t.product_slug]=R(t),e}),{}),o.next=8,b(r);case 8:case"end":return o.stop()}}),D)}var M={Free:s.d,Personal:s.e,Premium:s.f,Business:s.b,eCommerce:s.c};function B(){var e,t,n,r,i,o=arguments;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:"en",a.prev=1,a.next=4,Object(L.b)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 4:return t=a.sent,n=t.body,r={},i={},n.features.forEach((function(e){var t;i[e.id]={id:e.id,name:e.name,description:e.description,type:null!==(t=e.type)&&void 0!==t?t:"checkbox"}})),n.plans.forEach((function(e){var t,n={title:e.short_name,description:e.tagline,productId:e.products[0].plan_id,storeSlug:M[e.nonlocalized_short_name],features:e.highlighted_features,pathSlug:null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase(),featuresSlugs:e.features.reduce((function(e,t){return A()(A()({},e),{},u()({},t,!0))}),{}),storage:e.storage};"Free"===e.nonlocalized_short_name&&(n.isFree=!0),"Premium"===e.nonlocalized_short_name&&(n.isPopular=!0),r[M[e.nonlocalized_short_name]]=n})),a.next=12,h(r);case 12:return a.next=14,m(i);case 14:return a.next=16,p(n.features_by_type);case 16:a.next=21;break;case 18:return a.prev=18,a.t0=a.catch(1),a.abrupt("return");case 21:case"end":return a.stop()}}),I,null,[[1,18]])}var U=!1;function V(){return U||(U=!0,Object(c.registerStore)(s.g,{resolvers:o,actions:r,controls:L.a,reducer:f,selectors:i})),s.g}},function(e,t,n){var r=n(142);e.exports=m,e.exports.parse=o,e.exports.compile=function(e,t){return c(o(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,c="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],m=n.index;if(c+=e.slice(a,m),a=m+d.length,f)c+=f[1];else{var p=e[a],h=n[2],b=n[3],g=n[4],v=n[5],y=n[6],O=n[7];c&&(r.push(c),c="");var _=null!=h&&null!=p&&p!==h,E="+"===y||"*"===y,j="?"===y||"*"===y,S=n[2]||u,w=g||v;r.push({name:b||o++,prefix:h||"",delimiter:S,optional:j,repeat:E,partial:_,asterisk:!!O,pattern:w?l(w):O?".*":"[^"+s(S)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",c=t||{},s=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,f=c[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var m=0;m<f.length;m++){if(d=s(f[m]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===m?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=s(l);else{var f=s(l.prefix),m="(?:"+l.pattern+")";t.push(l),l.repeat&&(m+="(?:"+f+m+")*"),a+=m=l.optional?l.partial?f+"("+m+")?":"(?:"+f+"("+m+"))?":f+"("+m+")"}}var p=s(n.delimiter||"/"),h=a.slice(-p.length)===p;return i||(a=(h?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&h?"":"(?="+p+"|$)",u(new RegExp("^"+a,d(n)),t)}function m(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(m(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},,,,function(e,t,n){var r=n(59);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return m}));var r=n(3),i=n(20),o=n(74),a=n(25),c=n(84),s=n(80),l=n(16),u=n(61);for(var d in u)["default","register"].indexOf(d)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(d);var f=!1;function m(e){var t=e.vendor;return f||(f=!0,Object(r.registerStore)(i.b,{actions:a,controls:l.a,reducer:o.a,resolvers:c,selectors:Object(s.a)(t)})),i.b}},function(e,t){},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(50),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(34),i=n(51);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=n(34).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(131)},function(e,t,n){"use strict";n.r(t),n.d(t,"Visibility",(function(){return j})),n.d(t,"register",(function(){return M}));var r={};n.r(r),n.d(r,"getSite",(function(){return _})),n.d(r,"getSiteDomains",(function(){return E}));var i={};n.r(i),n.d(i,"getState",(function(){return S})),n.d(i,"getNewSite",(function(){return w})),n.d(i,"getNewSiteError",(function(){return x})),n.d(i,"isFetchingSite",(function(){return C})),n.d(i,"isFetchingSiteDetails",(function(){return k})),n.d(i,"isNewSite",(function(){return N})),n.d(i,"getSite",(function(){return P})),n.d(i,"getSiteTitle",(function(){return A})),n.d(i,"isSiteLaunched",(function(){return T})),n.d(i,"isSiteLaunching",(function(){return L})),n.d(i,"getSiteDomains",(function(){return D})),n.d(i,"getPrimarySiteDomain",(function(){return I})),n.d(i,"getSiteSubdomain",(function(){return R}));var o=n(3),a="automattic/site",c=n(18),s=n.n(c),l=n(81),u=n.n(l),d=n(10),f=n.n(d),m=n(7),p=n.n(m),h=Object(o.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),b=Object(o.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:h,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return p()(p()({},e),{},f()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],s()(e,[n].map(u.a)));return p()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?p()(p()({},e),{},f()({},t.siteId,p()(p()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?p()(p()({},e),{},f()({},t.siteId,{isSiteLaunched:!1,isSiteLaunching:!0})):"LAUNCH_SITE_COMPLETE"===t.type?p()(p()({},e),{},f()({},t.siteId,{isSiteLaunched:!0,isSiteLaunching:!1})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?p()(p()({},e),{},f()({},t.siteId,t.domains)):e}}),g=n(16);function v(e){var t=regeneratorRuntime.mark(u),n=regeneratorRuntime.mark(h),r=regeneratorRuntime.mark(b),i=regeneratorRuntime.mark(v),o=regeneratorRuntime.mark(y),a=function(){return{type:"FETCH_NEW_SITE"}},c=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},l=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function u(n){var r,i,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=s()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=p()(p()(p()({},o),i),{},{validate:!1}),t.next=8,Object(g.c)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return u=t.sent,t.next=11,c(u);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,l(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var d=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},f=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},m=function(e){return{type:"LAUNCH_SITE_COMPLETE",siteId:e}};function h(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:return t.next=4,Object(g.c)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 4:return t.next=6,m(e);case 6:return t.abrupt("return",!0);case 7:case"end":return t.stop()}}),n)}function b(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(g.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function v(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(g.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function y(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(g.c)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,d(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:y,receiveSiteTitle:d,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:c,receiveNewSiteFailed:l,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:u,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:h,launchSiteStart:f,launchSiteComplete:m,getCart:b,setCart:v}}var y=regeneratorRuntime.mark(_),O=regeneratorRuntime.mark(E);function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(o.dispatch)(a).fetchSite();case 2:return n.prev=2,n.next=5,Object(g.c)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,Object(o.dispatch)(a).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,Object(o.dispatch)(a).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),y,null,[[2,10]])}function E(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(g.c)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,Object(o.dispatch)(a).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),O,null,[[0,8]])}var j,S=function(e){return e},w=function(e){return e.newSite.data},x=function(e){return e.newSite.error},C=function(e){return e.newSite.isFetching},k=function(e){return e.isFetchingSiteDetails},N=function(e){return!!e.newSite.data},P=function(e,t){return e.sites[t]},A=function(e,t){var n;return null===(n=Object(o.select)(a).getSite(t))||void 0===n?void 0:n.name},T=function(e,t){var n;return null===(n=e.launchStatus[t])||void 0===n?void 0:n.isSiteLaunched},L=function(e,t){var n;return null===(n=e.launchStatus[t])||void 0===n?void 0:n.isSiteLaunching},D=function(e,t){return e.sitesDomains[t]},I=function(e,t){var n;return null===(n=Object(o.select)(a).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},R=function(e,t){var n;return null===(n=Object(o.select)(a).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))};!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(j||(j={}));var F=!1;function M(e){return F||(F=!0,Object(o.registerStore)(a,{actions:v(e),controls:g.a,reducer:b,resolvers:r,selectors:i})),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"STORE_KEY",(function(){return c})),n.d(t,"register",(function(){return K}));var r={};n.r(r),n.d(r,"setSidebarFullscreen",(function(){return f})),n.d(r,"unsetSidebarFullscreen",(function(){return m})),n.d(r,"setStep",(function(){return p})),n.d(r,"setDomain",(function(){return h})),n.d(r,"unsetDomain",(function(){return b})),n.d(r,"confirmDomainSelection",(function(){return g})),n.d(r,"setDomainSearch",(function(){return v})),n.d(r,"setPlan",(function(){return y})),n.d(r,"unsetPlan",(function(){return O})),n.d(r,"updatePlan",(function(){return _})),n.d(r,"openSidebar",(function(){return E})),n.d(r,"closeSidebar",(function(){return j})),n.d(r,"openFocusedLaunch",(function(){return S})),n.d(r,"closeFocusedLaunch",(function(){return w})),n.d(r,"enableExperimental",(function(){return x})),n.d(r,"showSiteTitleStep",(function(){return C})),n.d(r,"setModalDismissible",(function(){return k})),n.d(r,"unsetModalDismissible",(function(){return N})),n.d(r,"showModalTitle",(function(){return P})),n.d(r,"hideModalTitle",(function(){return A})),n.d(r,"enablePersistentSuccessView",(function(){return T})),n.d(r,"disablePersistentSuccessView",(function(){return L}));var i={};n.r(i),n.d(i,"getLaunchSequence",(function(){return D})),n.d(i,"getLaunchStep",(function(){return I})),n.d(i,"getState",(function(){return R})),n.d(i,"hasPaidDomain",(function(){return F})),n.d(i,"getSelectedDomain",(function(){return M})),n.d(i,"getSelectedPlan",(function(){return B})),n.d(i,"getPaidPlan",(function(){return U})),n.d(i,"hasSelectedDomain",(function(){return V})),n.d(i,"isStepCompleted",(function(){return z})),n.d(i,"isFlowCompleted",(function(){return H})),n.d(i,"isFlowStarted",(function(){return q})),n.d(i,"getFirstIncompleteStep",(function(){return W}));var o=n(31),a=n(3),c="automattic/launch",s={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},l=[s.Name,s.Domain,s.Plan,s.Final],u=Object(a.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},plan:function(e,t){return"SET_PLAN"===t.type?t.plan:"UNSET_PLAN"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),d=regeneratorRuntime.mark(_),f=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},m=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},p=function(e){return{type:"SET_STEP",step:e}},h=function(e){return{type:"SET_DOMAIN",domain:e}},b=function(){return{type:"UNSET_DOMAIN"}},g=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},v=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},y=function(e){return{type:"SET_PLAN",plan:e}},O=function(){return{type:"UNSET_PLAN"}};function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(o.select)("automattic/onboard/plans","getPlanBySlug",e);case 2:return t=n.sent,n.next=5,y(t);case 5:case"end":return n.stop()}}),d)}var E=function(){return{type:"OPEN_SIDEBAR"}},j=function(){return{type:"CLOSE_SIDEBAR"}},S=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},w=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},x=function(){return{type:"ENABLE_EXPERIMENTAL"}},C=function(){return{type:"SHOW_SITE_TITLE_STEP"}},k=function(){return{type:"SET_MODAL_DISMISSIBLE"}},N=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},P=function(){return{type:"SHOW_MODAL_TITLE"}},A=function(){return{type:"HIDE_MODAL_TITLE"}},T=function(){return{type:"ENABLE_SUCCESS_VIEW"}},L=function(){return{type:"DISABLE_SUCCESS_VIEW"}},D=function(){return l},I=function(){return s},R=function(e){return e},F=function(e){return!!e.domain&&!e.domain.is_free},M=function(e){return e.domain},B=function(e){return e.plan},U=function(e){var t;return e.plan&&!(null===(t=e.plan)||void 0===t?void 0:t.isFree)?e.plan:void 0},V=function(e){return!!M(e)||e.confirmedDomainSelection},z=function(e,t){if(t===s.Plan)return!!B(e);if(t===s.Name){var n=Object(a.select)("core").getEntityRecord("root","site",void 0);return!!(null==n?void 0:n.title)}return t===s.Domain&&Object(a.select)(c).hasSelectedDomain()},H=function(e){return l.slice(0,l.length-1).every((function(t){return z(e,t)}))},q=function(e){return l.some((function(t){return z(e,t)}))},W=function(e){return l.find((function(t){return!z(e,t)}))},$=n(35),G=Object($.a)("WP_LAUNCH");Object(a.use)(a.plugins.persistence,G);var Y=!1;function K(){return Y||(Y=!0,Object(a.registerStore)(c,{actions:r,controls:o.controls,reducer:u,selectors:i,persist:["domain","domainSearch","plan","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]})),c}},function(e,t,n){"use strict";n.r(t),n.d(t,"featuresList",(function(){return d})),n.d(t,"register",(function(){return b}));var r={};n.r(r),n.d(r,"getAllFeatures",(function(){return m})),n.d(r,"getRecommendedPlanSlug",(function(){return p}));var i=n(31),o=n(3),a="automattic/wpcom-features",c=n(11),s=c.e,l=c.f,u=c.b,d={domain:{id:"domain",minSupportedPlan:s},store:{id:"store",minSupportedPlan:c.c},seo:{id:"seo",minSupportedPlan:u},plugins:{id:"plugins",minSupportedPlan:u},"ad-free":{id:"ad-free",minSupportedPlan:s},"image-storage":{id:"image-storage",minSupportedPlan:l},"video-storage":{id:"video-storage",minSupportedPlan:l},support:{id:"support",minSupportedPlan:u}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e},m=function(e){return e},p=function(e,t){var n=m(e);return t.length?t.reduce((function(e,t){var r=n[t].minSupportedPlan;return c.i.indexOf(r)>c.i.indexOf(e)?r:e}),n[t[0]].minSupportedPlan):""},h=!1;function b(){return h||(h=!0,Object(o.registerStore)(a,{controls:i.controls,reducer:f,selectors:r})),a}},function(e,t,n){var r=n(98),i=n(100);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(7),a=n.n(o),c=n(3),s=n(20),l=n(38),u={state:s.a.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},d=Object(c.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?a()(a()({},e),{},{state:s.a.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?a()(a()({},e),{},{state:s.a.Success,data:a()(a()({},e.data),{},i()({},Object(l.a)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?a()(a()({},e),{},{state:s.a.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?a()(a()({},e),{},i()({},t.domainName,t.availability)):e}});t.a=d},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(t)-1,s=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<s.length;n++){var l=s[n],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return o.splice(c,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=c(n(1)),o=c(n(108)),a=c(n(111));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,a,c,u,d,f,m,p,h=[],b={};for(f=0;f<e.length;f++)if("string"!==(d=e[f]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+s);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],c=f;break}h.push(t[d.value])}else h.push(d.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(c,e),m=l(e.slice(c+1,u),t),a=i.default.cloneElement(n,{},m),h.push(a),u<e.length-1&&(p=l(e.slice(u+1),t),h=h.concat(p))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,a.default)(t);try{return l(o,n)}catch(c){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},function(e,t,n){var r=n(33),i=n(64);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r=n(34),i=n(65),o=n(66),a=r.rotl32,c=r.sum32,s=r.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],f=this.h[3],m=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),h=s(a(i,5),l(p,o,u,f),m,n[r],d[p]);m=f,f=u,u=a(o,30),o=i,i=h}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],f),this.h[4]=c(this.h[4],m)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";e.exports=n(116)},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(14),a=n.n(o),c=n(3),s=n(20),l=n(38);t.a=function(e){function t(t,n){return i()(i()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(a()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),a()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return Object(c.select)(s.b).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return Object(c.select)("core/data").isResolving(s.b,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[Object(l.a)(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}}},function(e,t,n){var r=n(52),i=n(119);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)}},function(e,t,n){"use strict";var r=n(34),i=n(65),o=n(66),a=n(51),c=r.sum32,s=r.sum32_4,l=r.sum32_5,u=o.ch32,d=o.maj32,f=o.s0_256,m=o.s1_256,p=o.g0_256,h=o.g1_256,b=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(v,b),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(h(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],b=this.h[2],g=this.h[3],v=this.h[4],y=this.h[5],O=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var E=l(_,m(v),u(v,y,O),this.k[r],n[r]),j=c(f(i),d(i,o,b));_=O,O=y,y=v,v=c(g,E),g=b,b=o,o=i,i=c(E,j)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],b),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],v),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],O),this.h[7]=c(this.h[7],_)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r="__global_unique_id__";e.exports=function(){return window[r]=(window[r]||0)+1}},function(e,t,n){"use strict";n.r(t),n.d(t,"isAvailable",(function(){return ge})),n.d(t,"getCategories",(function(){return ve})),n.d(t,"__internalGetDomainSuggestions",(function(){return ye}));var r,i,o,a,c=n(39),s=n(14),l=n.n(s),u=n(10),d=n.n(u),f=n(13),m=n.n(f),p=n(76),h=n.n(p);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var b={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function g(e){var t=function(e){for(var t,n,c,s,l=[],u=[];t=e.match(a);){for(n=t[0],(c=e.substr(0,t.index).trim())&&l.push(c);s=u.pop();){if(o[n]){if(o[n][0]===s){n=o[n][1]||n;break}}else if(i.indexOf(s)>=0||r[s]<r[n]){u.push(s);break}l.push(s)}o[n]||u.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&l.push(e),l.concat(u.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],o=b[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var v={contextDelimiter:"",onMissingKey:null};function y(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},v)this.options[n]=void 0!==t&&n in t?t[n]:v[n]}y.prototype.getPluralForm=function(e,t){var n,r,i,o,a=this.pluralForms[e];return a||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=g(r),i=function(e){return+o({n:e})}),a=this.pluralForms[e]=i),a(t)},y.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var O=n(77),_=n.n(O),E=n(78),j=n.n(E),S=n(33),w=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function x(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(w,(function(){var e,r,i,o,a;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===o?a=parseFloat(a)||0:"d"===o&&(a=parseInt(a)||0),void 0!==i&&("f"===o?a=a.toFixed(i):"s"===o&&(a=a.substr(0,i))),null!=a?a:"")}))}
|
13 |
/*
|
14 |
* Exposes number format capability
|
15 |
*
|
16 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
17 |
* @license See CREDITS.md
|
18 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
19 |
+
*/function C(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var k=m()("i18n-calypso"),N="number_format_decimals",P="number_format_thousands_sep",A="messages",T=[function(e){return e}],L={};function D(){B.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function I(e){return Array.prototype.slice.call(e)}function R(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&D("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",I(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&D("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",I(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function F(e,t){return e.dcnpgettext(A,t.context,t.original,t.plural,t.count)}function M(e,t){for(var n=T.length-1;n>=0;n--){var r=T[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return F(e.state.tannin,r)}return null}function B(){if(!(this instanceof B))return new B;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:_()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new S.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}B.throwErrors=!1,B.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},B.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},B.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},B.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return C(e,n,r,i)},B.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},B.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==L[n+e])return L[n+e];var r=j()().update(e).digest("hex");return L[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)T.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));T.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),f=l;f<=u;f++)T.push(a(f))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new y(d()({},A,this.state.locale)),this.state.numberFormatSettings.decimal_point=F(this.state.tannin,R([N])),this.state.numberFormatSettings.thousands_sep=F(this.state.tannin,R([P])),this.state.numberFormatSettings.decimal_point===N&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===P&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},B.prototype.getLocale=function(){return this.state.locale},B.prototype.getLocaleSlug=function(){return this.state.localeSlug},B.prototype.getLocaleVariant=function(){return this.state.localeVariant},B.prototype.isRtl=function(){return"rtl"===this.state.textDirection},B.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},B.prototype.hasTranslation=function(){return!!M(this,R(arguments))},B.prototype.translate=function(){var e=R(arguments),t=M(this,e);if(t||(t=F(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=x.apply(void 0,l()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=h()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},B.prototype.reRenderTranslations=function(){k("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},B.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},B.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var U=B,V=n(7),z=n.n(V),H=n(40),q=n.n(H),W=n(41),$=n.n(W),G=n(30),Y=n.n(G),K=n(42),X=n.n(K),Q=n(43),J=n.n(Q),Z=n(0),ee=n(1),te=n.n(ee),ne=n(6),re=n.n(ne),ie=n(15),oe=n.n(ie),ae=n(79),ce=n(22);var se,le,ue=new U,de=(ue.numberFormat.bind(ue),ue.translate.bind(ue)),fe=(ue.configure.bind(ue),ue.setLocale.bind(ue),ue.getLocale.bind(ue),ue.getLocaleSlug.bind(ue),ue.getLocaleVariant.bind(ue),ue.isRtl.bind(ue),ue.addTranslations.bind(ue),ue.reRenderTranslations.bind(ue),ue.registerComponentUpdateHook.bind(ue),ue.registerTranslateHook.bind(ue),ue.state,ue.stateObserver,ue.on.bind(ue),ue.off.bind(ue),ue.emit.bind(ue),le={numberFormat:(se=ue).numberFormat.bind(se),translate:se.translate.bind(se)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(ue),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return Object(ae.useSubscription)(t)}var r=Object(ce.createHigherOrderComponent)((function(e){return Object(ee.forwardRef)((function(t,r){var i=n();return Object(Z.createElement)(e,oe()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(ue)),me=(fe.useRtl,fe.withRtl,n(25)),pe=n(16),he=regeneratorRuntime.mark(ve),be=regeneratorRuntime.mark(ye),ge=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,Object(pe.b)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",Object(me.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",Object(me.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function ve(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(pe.b)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",Object(me.receiveCategories)(e.body));case 4:case"end":return t.stop()}}),he)}function ye(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",Object(me.receiveDomainSuggestionsError)("Empty query"));case 2:return n.next=4,Object(me.fetchDomainSuggestions)();case 4:return n.prev=4,n.next=7,Object(pe.c)({apiVersion:"1.1",path:"/domains/suggestions",query:Object(c.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",Object(me.receiveDomainSuggestionsError)(n.t0.message||de("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",Object(me.receiveDomainSuggestionsError)(de("Invalid response from the server")));case 15:return n.abrupt("return",Object(me.receiveDomainSuggestionsSuccess)(e,t));case 16:case"end":return n.stop()}}),be,null,[[4,10]])}},,,,,,,,function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(c){r=!0,i=c}finally{try{_n||null==a.return||a.return()}finally{if(r)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(99);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){var r=n(14);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var n;function r(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=i.formatters[n];if("function"==typeof r){var o=t[l];e=r.call(a,o),t.splice(l,1),l--}return e})),i.formatArgs.call(a,t);var u=a.log||i.log;u.apply(a,t)}}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=o,r.extend=a,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function o(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function a(e,t){var n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function c(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){var e=[].concat(r(i.names.map(c)),r(i.skips.map(c).map((function(e){return"-"+e})))).join(",");return i.enable(""),e},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var o=i.instances[t];o.enabled=i.enabled(o.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(105),Object.keys(e).forEach((function(t){i[t]=e[t]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t,n){var r=n(59);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,a=7*o,c=365.25*o;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*c;case"weeks":case"week":case"w":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(50),i=n(62),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,i,o,a,s,u,d,m,p,h,b,g){var v,y=t;if("function"==typeof u?y=u(n,y):y instanceof Date?y=p(y):"comma"===i&&c(y)&&(y=r.maybeMap(y,(function(e){return e instanceof Date?p(e):e})).join(",")),null===y){if(o)return s&&!b?s(n,f.encoder,g,"key"):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(y))return s?[h(b?n:s(n,f.encoder,g,"key"))+"="+h(s(y,f.encoder,g,"value"))]:[h(n)+"="+h(String(y))];var O,_=[];if(void 0===y)return _;if(c(u))O=u;else{var E=Object.keys(y);O=d?E.sort(d):E}for(var j=0;j<O.length;++j){var S=O[j],w=y[S];if(!a||null!==w){var x=c(y)?"function"==typeof i?i(n,S):n:n+(m?"."+S:"["+S+"]");l(_,e(w,x,i,o,a,s,u,d,m,p,h,b,g))}}return _};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=f.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):c(s.filter)&&(n=s.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[u];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var b=n[h];s.skipNulls&&null===r[b]||l(d,m(r[b],b,p,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var g=d.join(s.delimiter),v=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""}},function(e,t,n){"use strict";var r=n(50),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(c=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,c=e[o];if("[]"===c&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[l]=i:a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),m=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),m=n,n=f.length);for(n=0;n<f.length;++n)if(n!==m){var h,b,g=f[n],v=g.indexOf("]="),y=-1===v?g.indexOf("="):v+1;-1===y?(h=t.decoder(g,a.decoder,p,"key"),b=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,y),a.decoder,p,"key"),b=r.maybeMap(s(g.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===p&&(b=c(b)),g.indexOf("[]=")>-1&&(b=o(b)?[b]:b),i.call(l,h)?l[h]=r.combine(l[h],b):l[h]=b}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),m=0;m<f.length;++m){var p=f[m],h=l(p,u[p],n,"string"==typeof e);d=r.merge(d,h,n)}return r.compact(d)}},function(e,t,n){"use strict";var r=n(1),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(63),a=n(109),c=n(110),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var o,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===i)return n(r,e,""===t?"."+l(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var m=0;m<e.length;m++)d+=u(o=e[m],f+l(o,m),n,r);else{var p=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(p){0;for(var h,b=p.call(e),g=0;!(h=b.next()).done;)d+=u(o=h.value,f+l(o,g++),n,r)}else if("object"===c){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var m,p,h=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var i,a,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?O(d,c,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=s+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),c.push(d))}function O(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=v.getPooled(t,o,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},m=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(p=v).instancePool=[],p.getPooled=m||h,p.poolSize||(p.poolSize=10),p.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)O(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(63);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){var r=n(52),i=n(30);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){"use strict";
|
20 |
/** @license React v1.3.0
|
21 |
* use-subscription.production.min.js
|
22 |
*
|
37 |
*
|
38 |
* This source code is licensed under the MIT license found in the
|
39 |
* LICENSE file in the root directory of this source tree.
|
40 |
+
*/var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case s:case c:case p:return e;default:switch(e=e&&e.$$typeof){case u:case m:case g:case b:case l:return e;default:return t}}case o:return t}}}function j(e){return E(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=o,t.Profiler=s,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return j(e)||E(e)===d},t.isConcurrentMode=j,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===b},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===c},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===O||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},function(e,t,n){},function(e,t,n){"use strict";var r=n(134);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(92);var r="automattic/site",i="automattic/launch",o=n(0),a=n(1),c=n.n(a),s=n(3),l=n(36),u=n(24),d=n(7),f=n.n(d),m=n(37),p=function(e){window.location.href=e},h=a.createContext({siteId:0,redirectTo:p,openCheckout:function(e,t){p(Object(m.addQueryArgs)("/checkout/".concat(e),f()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch"}),b=n(15),g=n.n(b),v=n(22),y=Object(a.createContext)("en"),O=function(e){var t=e.children,n=e.localeSlug;return Object(o.createElement)(y.Provider,{value:n},t)};function _(){return Object(a.useContext)(y)}Object(v.createHigherOrderComponent)((function(e){return function(t){var n=_();return Object(o.createElement)(e,g()({locale:n},t))}}),"withLocale");var E=n(6),j=n.n(E),S=n(9),w=n.n(S),x=n(2),C=n(4);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function P(e,t){if(null==e)return{};var n,r,i=N(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var T=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=P(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},L=n(12),D=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(L.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),I=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),R=n(17),F=R.Site.register({client_id:"",client_secret:""}),M=R.Plans.register(),B=R.DomainSuggestions.register({vendor:"variation2_front"}),U=R.Launch.register(),V=n(21),z=n.n(V),H=Object(x.__)("Site Title","full-site-editing"),q=function(e){var t=e.currentSiteTitle;return(void 0===t?"":t)===H},W=function(e){return""!==e&&!q({currentSiteTitle:e})},$=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},G=function(e,t){return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t}}},Y=function(e){return!!e.is_domain_registration},K=function(e){return[R.Plans.PLAN_FREE,R.Plans.PLAN_PERSONAL,R.Plans.PLAN_PREMIUM,R.Plans.PLAN_BUSINESS,R.Plans.PLAN_ECOMMERCE].indexOf(e.product_slug)>-1};function X(){var e=a.useContext(h),t=e.siteId,n=e.flow,r=e.openCheckout,i=Object(s.useSelect)((function(e){return e(U).getState()})),o=i.plan,c=i.domain,l=Object(s.useSelect)((function(e){return e(M).isPlanEcommerce(null==o?void 0:o.storeSlug)})),u=Object(s.useDispatch)(F),d=u.getCart,m=u.setCart;return{goToCheckout:function(){var e=z()(regeneratorRuntime.mark((function e(){var i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o&&$(o,n),a=c&&G(c,n),e.next=4,d(t);case 4:return s=e.sent,e.next=7,m(t,f()(f()({},s),{},{products:[i,a]}));case 7:r(t,l);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}function Q(){var e,t,n=a.useContext(h).siteId,r=Object(s.useSelect)((function(e){return e(F).getSite(n)})),i=Object(s.useSelect)((function(e){return e(F).isSiteLaunched(n)})),o=Object(s.useSelect)((function(e){return e(F).isSiteLaunching(n)})),c=Object(s.useSelect)((function(e){return e(F).isFetchingSiteDetails()}));return{sitePlan:null==r?void 0:r.plan,isPaidPlan:r&&!(null===(e=r.plan)||void 0===e?void 0:e.is_free),isSiteLaunched:i,isSiteLaunching:o,selectedFeatures:null==r||null===(t=r.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!c}}var J=n(10),Z=n.n(J),ee=(n(120),function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h1":r;return a.createElement(i,{className:w()("onboarding-title",t)},n)}),te=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h2":r;return a.createElement(i,{className:w()("onboarding-subtitle",t)},n)},ne=n(18),re=n.n(ne),ie=(n(121),function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,a="";return!0===i&&(a="is-sticky"),!1===i&&(a="no-sticky"),Object(o.createElement)("div",{className:w()("action-buttons",t,a)},n)}),oe=function(e){var t=e.className,n=e.children,r=re()(e,["className","children"]);return Object(o.createElement)(C.Button,g()({className:w()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||Object(x.__)("Go back","full-site-editing"))},ae=function(e){var t=e.className,n=e.children,r=re()(e,["className","children"]);return Object(o.createElement)(C.Button,g()({className:w()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||Object(x.__)("Continue","full-site-editing"))},ce=(n(96),function(e){var t=e.children;return Object(o.createElement)(o.Fragment,null,t)});function se(){var e=Object(a.useContext)(h).siteId,t=Object(s.useSelect)((function(t){return t(F).getSiteTitle(e)})),n=Object(a.useState)(t),r=j()(n,2),i=r[0],o=r[1];Object(a.useEffect)((function(){o(t)}),[t]);var c=Object(s.useDispatch)(F).saveSiteTitle;return{title:i,updateTitle:o,saveTitle:function(){void 0!==t&&c(e,i)}}}n(97);var le=function(e){var t=e.onPrevStep,n=e.onNextStep,r=se(),i=r.title,a=r.updateTitle,c=r.saveTitle,s=function(){c(),null==n||n()};return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Name your site","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Pick a name for your site.","full-site-editing"))),Object(o.createElement)(ie,{sticky:!1},Object(o.createElement)(ae,{onClick:s,disabled:!(null==i?void 0:i.trim())}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)("form",{onSubmit:s},Object(o.createElement)(C.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:a,onBlur:c,value:i,spellCheck:!1,autoComplete:"off",placeholder:Object(x.__)("Enter site name","full-site-editing"),autoCorrect:"off"}),Object(o.createElement)("div",{className:"nux-launch-step__input-hint"},Object(o.createElement)(C.Tip,{size:18}),Object(o.createElement)("span",null,Object(x.__)("Don't worry, you can change it later.","full-site-editing"))))),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==t||t()}}),Object(o.createElement)(ae,{onClick:s,disabled:!(null==i?void 0:i.trim())}))))},ue=n(23);function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fe=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=P(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},me=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),pe=n(13),he=n.n(pe),be=he()("calypso:analytics");n(82);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var ge=n(14),ve=n.n(ge),ye=(n(47),n(33)),Oe=he()("lib/load-script/callback-handler"),_e=new Map;function Ee(){return _e}function je(e){return Ee().has(e)}function Se(e,t){var n=Ee();je(e)?(Oe('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(Oe('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ee(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));Oe(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function xe(){var e=this.getAttribute("src");Oe('Handling successful request for "'.concat(e,'"')),we(e),this.onload=null}function Ce(){var e=this.getAttribute("src");Oe('Handling failed request for "'.concat(e,'"')),we(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var ke=he()("lib/load-script/dom-operations");he()("package/load-script");function Ne(e,t){var n;if(!je(e)&&(n=function(e){ke('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=xe,t.onerror=Ce,t}(e),ke("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){Se(e,(function(e){null===e?t():n(e)}))}));Se(e,t)}var Pe,Ae=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account"];Promise.resolve();function Te(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&Ne("//stats.wp.com/w2.js?1");var Le=new ye.EventEmitter;function De(e,t){if(be('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(ue.includes)(Ae,e)){if(Pe){var n=Pe(t);t=f()(f()({},t),n)}t=Object(ue.omitBy)(t,ue.isUndefined),be('Recording event "%s" with actual props %o',e,t),Te(["recordEvent",e,t]),Le.emit("record-event",e,t)}else be('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var Ie=n(153);var Re=n(20),Fe=["en","ja","es","pt","fr","pt-br"],Me={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},Be=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],Ue=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],Ve="http://__domain__.invalid",ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(Me[r]||r,".").concat(e)),n}},He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=(Me[i]||i)+r.pathname),r}},qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=(Me[r]||r)+n.pathname),n}},We={"wordpress.com/support/":qe(Be),"wordpress.com/blog/":qe(Fe,/^\/blog\/?$/),"wordpress.com/tos/":ze("wordpress.com",Ue),"jetpack.com":ze("jetpack.com",["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]),"en.support.wordpress.com":He("/support",Be),"en.blog.wordpress.com":He("/blog",Fe,/^\/$/),"en.forums.wordpress.com":ze("forums.wordpress.com",["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"]),"automattic.com/privacy/":qe(["en","fr","de"]),"automattic.com/cookies/":qe(["en","fr","de"]),"wordpress.com":ze("wordpress.com",Ue)};function $e(e,t){var n=new URL(String(e),Ve);if(n.origin===Ve)return e;if(n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/")),(!t||"en"===t)&&"en.wordpress.com"===n.host)return n.host="wordpress.com",n.href;"en.wordpress.com"===n.host&&(n.host="wordpress.com");for(var r=[n.host,n.host+n.pathname,n.host+n.pathname.substr(0,1+n.pathname.indexOf("/",1))],i=r.length-1;i>=0;i--)if(r[i]in We)return We[r[i]](n,t).href;return e}function Ge(){var e=_();return Object(a.useCallback)((function(t,n){return $e(t,n||e)}),[e])}Object(v.createHigherOrderComponent)((function(e){return function(t){var n=Ge();return Object(o.createElement)(e,g()({localizeUrl:n},t))}}),"withLocalizeUrl");var Ye=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Ke=(n(124),function(e){var t=e.children,n=e.className,r=e.id,i=e.position,c=void 0===i?"bottom center":i,s=e.noArrow,l=void 0===s||s,u=Object(a.useState)(!1),d=j()(u,2),f=d[0],m=d[1];return Object(o.createElement)(C.Button,{icon:Ye,onClick:function(){m(!f)},className:"info-tooltip","data-testid":"info-tooltip"},f&&Object(o.createElement)(C.Popover,{id:r,className:w()("info-tooltip__content",n),onClose:function(){m(!1)},position:c,noArrow:l},t))}),Xe="radio",Qe="button",Je="individual-item",Ze=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,c=e.railcarId,s=e.hstsRequired,l=void 0!==s&&s,u=e.isFree,d=void 0!==u&&u,f=e.isExistingSubdomain,m=void 0!==f&&f,p=e.isRecommended,h=void 0!==p&&p,b=e.onSelect,g=e.onRender,y=e.selected,O=e.type,_=void 0===O?Xe:O,E=Ge(),S=Object(v.useViewportMatch)("small","<"),k=n.indexOf("."),N=n.slice(0,k),P=n.slice(k),A=Object(a.useState)(),T=j()(A,2),L=T[0],D=T[1],I=Object(a.useState)(),R=j()(I,2),F=R[0],M=R[1],B=Object(Ie.a)(),U=_===Je?Object(x.__)("Default","full-site-editing"):Object(x.__)("Free","full-site-editing"),V=S?Object(x.__)("Included in paid plans","full-site-editing"):Object(o.createInterpolateElement)(Object(x.__)("<strong>First year included</strong> in paid plans","full-site-editing"),{strong:Object(o.createElement)("strong",null)}),z=_===Je?V:Object(x.__)("Included in plans","full-site-editing");Object(a.useEffect)((function(){n!==L&&F!==c&&c&&(g(),D(n),M(c))}),[n,L,F,c,g]);var H=function(){var e;F&&De("calypso_traintracks_interact",{railcar:(e={action:"domain_selected",railcarId:F}).railcarId,action:e.action}),b(n)};return Object(o.createElement)("label",{className:w()("domain-picker__suggestion-item",{"is-free":d,"is-selected":y,"is-unavailable":t},"type-".concat(_))},[Xe,Je].indexOf(_)>-1&&(r?Object(o.createElement)(C.Spinner,null):Object(o.createElement)("input",{"aria-labelledby":B,className:"domain-picker__suggestion-radio-button",type:"radio",disabled:t,name:"domain-picker-suggestion-option",onChange:H,checked:y&&!t})),Object(o.createElement)("div",{className:"domain-picker__suggestion-item-name"},Object(o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},Object(o.createElement)("span",{className:w()("domain-picker__domain-wrapper",{"with-margin":!l})},Object(o.createElement)("span",{className:"domain-picker__domain-sub-domain"},N),Object(o.createElement)("span",{className:"domain-picker__domain-tld"},P)),l&&Object(o.createElement)(Ke,{position:S?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},Object(o.createInterpolateElement)(Object(x.__)("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:Object(o.createElement)("b",null,P),learn_more_link:Object(o.createElement)("a",{target:"_blank",rel:"noreferrer",href:E("https://wordpress.com/support/https-ssl")})})),h&&!t&&Object(o.createElement)("div",{className:"domain-picker__badge is-recommended"},Object(x.__)("Recommended","full-site-editing"))),m&&_!==Je&&Object(o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},Object(x.__)("You can change your free subdomain later under Domain Settings.","full-site-editing"))),Object(o.createElement)("div",{className:w()("domain-picker__price",{"is-paid":!d})},t&&Object(x.__)("Unavailable","full-site-editing"),d&&!t&&U,!d&&!t&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",z," "),Object(o.createElement)("span",{className:"domain-picker__price-cost"},Object(x.sprintf)(Object(x.__)("%s/year","full-site-editing"),i)))),_===Qe&&(r?Object(o.createElement)(C.Spinner,null):Object(o.createElement)("div",{className:"domain-picker__action"},Object(o.createElement)(C.Button,{isSecondary:!0,"aria-labelledby":B,className:w()("domain-picker__suggestion-select-button",{"is-selected":y&&!t}),disabled:t,onClick:H},y&&!t?Object(x.__)("Selected","full-site-editing"):Object(x.__)("Select","full-site-editing")))))},et=function(e){var t=e.type;return Object(o.createElement)("div",{className:w()("domain-picker__suggestion-item placeholder","type-".concat(t))},Object(o.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),Object(o.createElement)("div",{className:"domain-picker__price placeholder"}))};function tt(e,t){return e===t}function nt(e,t,n){var r=n&&n.equalityFn?n.equalityFn:tt,i=Object(a.useState)(e),o=i[0],c=i[1],s=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=Object(a.useRef)(null),o=Object(a.useRef)([]),c=n.leading,s=Object(a.useRef)(!1),l=Object(a.useRef)(null),u=Object(a.useRef)(!1),d=Object(a.useRef)(e);d.current=e;var f=Object(a.useCallback)((function(){clearTimeout(l.current),clearTimeout(i.current),i.current=null,o.current=[],l.current=null,s.current=!1}),[]);return Object(a.useEffect)((function(){return function(){u.current=!0}}),[]),[Object(a.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(l.current),!l.current&&c&&!s.current)return d.current.apply(d,e),void(s.current=!0);l.current=setTimeout((function(){f(),u.current||d.current.apply(d,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;f(),u.current||d.current.apply(null,e)}),r))}),[r,t,f,c]),f,function(){l.current&&(d.current.apply(null,o.current),f())}]}(Object(a.useCallback)((function(e){return c(e)}),[]),t,n),l=s[0],u=s[1],d=Object(a.useRef)(e);return Object(a.useEffect)((function(){r(d.current,e)||(l(e),d.current=e)}),[e,l,r]),[o,u]}var rt=R.DomainSuggestions.register({vendor:"variation2_front"}),it=["available","available_premium"];var ot=Object(o.createElement)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(L.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),at=(n(125),function(e){var t=e.onSelect,n=e.selected,r=Object(o.useState)(!1),i=j()(r,2),a=i[0],c=i[1],l=function(e){c(!1),t(e)},u=Object(s.useSelect)((function(e){return e(rt).getCategories()}));return Object(o.createElement)("div",{className:w()("domain-categories",{"is-open":a})},Object(o.createElement)(C.Button,{className:"domain-categories__dropdown-button",onClick:function(){return c(!a)}},Object(o.createElement)("span",null,n||Object(x.__)("All Categories","full-site-editing")),Object(o.createElement)(fe,{icon:ot,size:16})),Object(o.createElement)("ul",{className:"domain-categories__item-group"},Object(o.createElement)("li",{className:w()("domain-categories__item",{"is-selected":!n})},Object(o.createElement)(C.Button,{onClick:function(){return l()}},Object(x.__)("View all","full-site-editing"))),u.map((function(e){var t=e.slug,r=e.title;return Object(o.createElement)("li",{key:t,className:w()("domain-categories__item",{"is-selected":t===n})},Object(o.createElement)(C.Button,{onClick:function(){return l(t)}},r))}))))}),ct={__:x.__,_n:x._n,_nx:x._nx,_x:x._x,isRTL:x.isRTL,setLocaleData:x.setLocaleData},st=a.createContext(dt()),lt=function(){return a.useContext(st)};Object(v.createHigherOrderComponent)((function(e){return function(t){var n=lt();return Object(o.createElement)(e,g()({},n,t))}}),"withI18n");function ut(e,t,n){var r=e[t],i=n.hasFilter,o=n.applyFilters;return i("preTranslation")||i("postTranslation")?function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o("preTranslation",i,t,n);return o("postTranslation",r.apply(void 0,ve()(c)),c,t,n)}:r}function dt(e,t){var n=e?Object(x.createI18n)(e):ct,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:Object(u.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:ut(n,"__",c),_n:ut(n,"_n",c),_nx:ut(n,"_nx",c),_x:ut(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}var ft=function(){var e=lt(),__=e.__,t=e.isRTL;return Object(o.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},Object(o.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),Object(o.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),Object(o.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),Object(o.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),Object(o.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},Object(o.createElement)("tspan",{fill:"#999"},Object(o.createElement)("tspan",null,"https://")),Object(o.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))},mt=(n(123),function(e){var t=e.groupItems,n=e.children;return t?Object(o.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):Object(o.createElement)(a.Fragment,null,n)}),pt=function(e){var t=e.children;return Object(o.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)},ht=function(e){var t,n=e.header,r=e.showDomainCategories,i=e.onDomainSelect,c=e.onExistingSubdomainSelect,l=e.quantity,u=void 0===l?5:l,d=e.quantityExpanded,f=void 0===d?10:d,m=e.onDomainSearchBlur,p=void 0===m?ue.noop:m,h=e.analyticsFlowId,b=e.analyticsUiAlgo,g=e.initialDomainSearch,v=void 0===g?"":g,y=e.onSetDomainSearch,O=void 0===y?ue.noop:y,_=e.currentDomain,E=e.isCheckingDomainAvailability,S=e.existingSubdomain,w=e.segregateFreeAndPaid,k=void 0!==w&&w,N=e.showSearchField,P=void 0===N||N,A=e.itemType,T=void 0===A?Xe:A,L=e.locale,D=e.areDependenciesLoading,I=void 0!==D&&D,R=e.orderSubDomainsLast,F=void 0!==R&&R,M=Object(x.__)("Search for a domain","full-site-editing"),B=Object(a.useState)(!1),U=j()(B,2),V=U[0],z=U[1],H=Object(a.useState)(v),q=j()(H,2),W=q[0],$=q[1],G=Object(a.useState)(),Y=j()(G,2),K=Y[0],X=Y[1],Q=Object(s.useSelect)((function(e){return e(rt).getDomainSuggestionVendor()})),J=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",r=nt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",300),i=j()(r,1)[0],o=Object(s.useDispatch)(rt).invalidateResolutionForStoreSelector;return Object(s.useSelect)((function(r){if(i&&!(i.length<2)){var a=r(rt),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:n,category_slug:t}),state:s(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,t,e])}(W.trim(),f,K,L)||{},Z=J.allDomainSuggestions,ee=J.errorMessage,te=J.state,ne=J.retryRequest,re=null==Z?void 0:Z.slice(S?1:0,V?f:u),ie=function(e,t,n){var r=a.useState(),i=j()(r,2),o=i[0],c=i[1],s=t&&Array.isArray(e)?[t].concat(ve()(e)):e;if(a.useEffect((function(){var e=null==s?void 0:s.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));(null==s?void 0:s.length)&&!e&&c(n)}),[n,s]),!(null==s?void 0:s.some((function(e){return(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)}))))return o}(re,S,_);ie&&(null==re||re.push(ie));var oe=Object(s.useSelect)((function(e){return e(rt).getDomainAvailabilities()}),[]);Object(a.useEffect)((function(){z(!1)}),[W]);var ae=Object(a.useState)(),ce=j()(ae,2),se=ce[0],le=ce[1];Object(a.useEffect)((function(){Z&&le(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat(Object(Ie.a)().replace(/-/g,""),"-").concat(e)}("suggestion"))}),[Z,le]),Object(a.useEffect)((function(){P||$(v)}),[v,P]);var de=function(e,t,n,r){var i,o="/domains/search/".concat(Q,"/").concat(h).concat(K?"/"+K:"");De("calypso_traintracks_render",{railcar:(i={uiAlgo:"/".concat(h,"/").concat(b),fetchAlgo:o,query:W,railcarId:t,result:r?e+"#recommended":e,uiPosition:n}).railcarId,ui_algo:i.uiAlgo,ui_position:i.uiPosition,fetch_algo:i.fetchAlgo,rec_result:i.result,fetch_query:i.query})},pe=te===Re.a.Failure,he=(null===(t=W.trim)||void 0===t?void 0:t.call(W).length)<=1,be=!pe&&!he,ge=!pe&&he,ye=u;ie&&(ye+=1),S&&(ye-=1);var Oe=["professional"];return S&&Oe.unshift("sub-domain"),F&&Oe.reverse(),Object(o.createElement)("div",{className:"domain-picker"},n&&n,P&&Object(o.createElement)("div",{className:"domain-picker__search"},Object(o.createElement)("div",{className:"domain-picker__search-icon"},Object(o.createElement)(fe,{icon:me})),Object(o.createElement)(C.TextControl,{hideLabelFromVision:!0,label:M,placeholder:M,onChange:function(e){$(e),O(e)},onBlur:function(e){p&&p(e.currentTarget.value)},value:W,dir:"ltr"})),pe&&Object(o.createElement)(C.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},Object(o.createElement)("p",{className:"domain-picker__error-message"},ee||Object(x.__)("An error has occurred, please check your connection and retry.","full-site-editing")),Object(o.createElement)(C.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ne},Object(x.__)("Retry","full-site-editing"))),(be||I)&&Object(o.createElement)("div",{className:"domain-picker__body"},r&&Object(o.createElement)("div",{className:"domain-picker__aside"},Object(o.createElement)(at,{selected:K,onSelect:X})),Object(o.createElement)("div",{className:"domain-picker__suggestion-sections"},Oe.map((function(e){return"sub-domain"===e?Object(o.createElement)(a.Fragment,{key:e},k&&Object(o.createElement)(pt,null,Object(x.__)("Keep sub-domain","full-site-editing")),Object(o.createElement)(mt,{groupItems:k},!I&&S&&Object(o.createElement)(Ze,{key:null==S?void 0:S.domain_name,domain:null==S?void 0:S.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:se?"".concat(se,0):void 0,onRender:function(){return de(null==S?void 0:S.domain_name,"".concat(se,0),0,!1)},selected:(null==_?void 0:_.domain_name)===(null==S?void 0:S.domain_name),onSelect:function(){null==c||c(null==S?void 0:S.domain_name)},type:T})||Object(o.createElement)(et,{type:T}))):Object(o.createElement)(a.Fragment,{key:e},k&&Object(o.createElement)(pt,null,Object(x.__)("Professional domains","full-site-editing")),Object(o.createElement)(mt,{groupItems:k},!I&&(null==re?void 0:re.map((function(e,t){var n,r=(null==S?void 0:S.domain_name)?t+1:t,a=1===r,c=null===(n=oe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,s=!c||(null==it?void 0:it.indexOf(c))>-1;return Object(o.createElement)(Ze,{key:e.domain_name,isUnavailable:!s,domain:e.domain_name,cost:e.cost,isLoading:(null==_?void 0:_.domain_name)===e.domain_name&&E,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:a,railcarId:se?"".concat(se).concat(r):void 0,onRender:function(){return de(e.domain_name,"".concat(se).concat(r),r,a)},onSelect:function(){i(e)},selected:(null==_?void 0:_.domain_name)===e.domain_name,type:T})})))||Object(ue.times)(ye,(function(e){return Object(o.createElement)(et,{type:T,key:e})}))))})),!V&&u<f&&(null==Z?void 0:Z.length)&&(null==Z?void 0:Z.length)>u&&Object(o.createElement)("div",{className:"domain-picker__show-more"},Object(o.createElement)(C.Button,{onClick:function(){return z(!0)},isLink:!0},Object(x.__)("View more results","full-site-editing"))))),ge&&!I&&Object(o.createElement)("div",{className:"domain-picker__empty-state"},Object(o.createElement)("p",{className:"domain-picker__empty-state--text"},Object(x.__)("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),Object(o.createElement)("div",null,Object(o.createElement)(ft,null))))};function bt(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:""}}function gt(){var e=a.useContext(h).siteId,t=Object(s.useSelect)((function(t){return t(F).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:Object(s.useSelect)((function(t){return t(F).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null==t?void 0:t.is_subdomain)}}function vt(){var e=function(){var e=a.useContext(h).siteId,t=Object(s.useDispatch)(F).getCart,n=a.useState(void 0),r=j()(n,2),i=r[0],o=r[1];return a.useEffect((function(){z()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return Y(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.meta;return Object(s.useSelect)((function(e){var n;return t?null===(n=e(B).getDomainSuggestions(t,{quantity:1,include_wordpressdotcom:!1,include_dotblogsubdomain:!1}))||void 0===n?void 0:n[0]:void 0}))}function yt(){var e,t=Object(s.useDispatch)(U),n=t.setDomain,r=t.unsetDomain,i=t.unsetPlan,o=t.confirmDomainSelection,a=Object(s.useSelect)((function(e){return e(U).getState()})),c=a.domain,l=a.plan,u=a.confirmedDomainSelection,d=gt().siteSubdomain;return c?e=c:u&&(e=bt(null==d?void 0:d.domain)),{onDomainSelect:function(e){o(),n(e),(null==l?void 0:l.isFree)&&i()},onExistingSubdomainSelect:function(){o(),r()},selectedDomain:c,currentDomain:e}}function Ot(){var e,t,n=Object(s.useSelect)((function(e){return e(U).getState()})).domainSearch,r=se().title,i=Q().isLoadingSite,o=gt().siteSubdomain,a=Object(s.useDispatch)(U).setDomainSearch,c=n.trim()||r;c&&!q({currentSiteTitle:c})||(c=null!==(e=null==o||null===(t=o.domain)||void 0===t?void 0:t.split(".")[0])&&void 0!==e?e:"");return{domainSearch:c,isLoading:i,setDomainSearch:a}}var _t="gutenboarding",Et=(n(122),function(e){var t=e.onPrevStep,n=e.onNextStep,r=Object(s.useSelect)((function(e){return e(i).getState()})).plan,a=yt().currentDomain,c=gt().siteSubdomain,l=Ot(),u=l.domainSearch,d=l.setDomainSearch,f=Object(s.useDispatch)(i),m=f.setDomain,p=f.unsetDomain,h=f.unsetPlan,b=f.confirmDomainSelection,g=function(){null==n||n()};return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Choose a domain","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(o.createElement)(ie,{sticky:!1},Object(o.createElement)(ae,{onClick:g,disabled:!u}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(ht,{analyticsFlowId:_t,initialDomainSearch:u,onSetDomainSearch:d,onDomainSearchBlur:function(e){De("calypso_newsite_domain_search_blur",{flow:_t,query:e,where:"editor_domain_modal"})},currentDomain:a,existingSubdomain:bt(null==c?void 0:c.domain),onDomainSelect:function(e){b(),m(e),(null==r?void 0:r.isFree)&&h()},onExistingSubdomainSelect:function(){b(),p()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==t||t()}}),Object(o.createElement)(ae,{onClick:g,disabled:!u}))))}),jt=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),St=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),wt=(n(68),Object(o.createElement)(fe,{icon:jt,size:17})),xt=Object(o.createElement)(fe,{icon:St,size:17}),Ct=Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var kt=function(e){var t=e.features,n=e.domain,r=e.isFree,i=void 0!==r&&r,a=e.isOpen,c=void 0!==a&&a,s=e.onPickDomain,l=e.disabledLabel,u=e.multiColumn,d=void 0!==u&&u,f=function(e,t,__){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:wt,domainMessage:Object(o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",Ct)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:wt,domainMessage:Object(o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",Ct)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:xt,domainMessage:Object(o.createElement)("span",null,Object(o.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:Object(o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plans-feature-list__domain-summary is-picked",icon:wt,domainMessage:Object(o.createElement)("span",null,Object(o.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:Object(o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(i,n,x.__);return Object(o.createElement)("div",{className:"plans-feature-list",hidden:!c},Object(o.createElement)("ul",{className:w()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":d})},l?Object(o.createElement)("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},xt," ",Object(o.createElement)("span",null,l)):f&&Object(o.createElement)("li",{className:"plans-feature-list__item"},Object(o.createElement)(C.Button,{className:f.className,onClick:s,isLink:!0},f.icon,f.domainMessage)),t.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"plans-feature-list__item"},wt," ",Object(o.createElement)("span",null,e))}))))},Nt=Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Pt=function(e){var t=e.slug,n=e.name,r=e.tagline,i=e.price,c=e.isPopular,s=void 0!==c&&c,l=e.isFree,u=void 0!==l&&l,d=e.domain,f=e.features,m=e.onSelect,p=e.onPickDomainClick,h=e.onToggleExpandAll,b=e.allPlansExpanded,g=e.disabledLabel,y=e.CTAVariation,O=void 0===y?"NORMAL":y,_=e.popularBadgeVariation,E=void 0===_?"ON_TOP":_,S=a.useState(!1),k=j()(S,2),N=k[0],P=k[1],A=Object(v.useViewportMatch)("mobile",">=");a.useEffect((function(){P(b)}),[b]);var T=b||A||s||N;return Object(o.createElement)("div",{className:w()("plan-item",{"is-popular":s,"is-open":T,"badge-next-to-name":"NEXT_TO_NAME"===E})},s&&"ON_TOP"===E&&Object(o.createElement)("span",{className:"plan-item__badge"},Object(x.__)("Popular","full-site-editing")),Object(o.createElement)("div",{className:w()("plan-item__viewport",{"is-popular":s})},Object(o.createElement)("div",{className:"plan-item__details"},Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return P((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&P((function(e){return!e}))},className:"plan-item__summary"},Object(o.createElement)("div",{className:w()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===E})},Object(o.createElement)("div",{className:"plan-item__name"},n),s&&"NEXT_TO_NAME"===E&&Object(o.createElement)("span",{className:"plan-item__badge-next-to-name"},Object(x.__)("Popular","full-site-editing"))),r&&Object(o.createElement)("p",{className:"plan-item__tagline"},r),Object(o.createElement)("div",{className:"plan-item__price"},Object(o.createElement)("div",{className:w()("plan-item__price-amount",{"is-loading":!i})},i||" ")),!T&&Object(o.createElement)("div",{className:"plan-item__dropdown-chevron"},Nt)),Object(o.createElement)("div",{hidden:!T},Object(o.createElement)("div",{className:"plan-item__price-note"},u?Object(x.__)("free forever","full-site-editing"):Object(x.__)("per month, billed yearly","full-site-editing")),Object(o.createElement)("div",{className:"plan-item__actions"},"NORMAL"===O?Object(o.createElement)(C.Button,{className:"plan-item__select-button",onClick:function(){m(t)},isPrimary:!0,disabled:!!g},Object(o.createElement)("span",null,Object(x.__)("Choose","full-site-editing"))):Object(o.createElement)(C.Button,{className:"plan-item__select-button full-width",onClick:function(){m(t)},isPrimary:s,disabled:!!g},Object(o.createElement)("span",null,Object(x.sprintf)(Object(x.__)("Select %s","full-site-editing"),n)))),Object(o.createElement)(kt,{features:f,domain:d,isFree:u,isOpen:T,onPickDomain:p,disabledLabel:g})))),s&&!A&&Object(o.createElement)(C.Button,{onClick:h,className:"plan-item__mobile-expand-all-plans",isLink:!0},b?Object(x.__)("Collapse all plans","full-site-editing"):Object(x.__)("Expand all plans","full-site-editing")))},At=R.Plans.register(),Tt=R.WPCOMFeatures.register(),Lt=(n(129),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,c=e.disabledPlans,l=e.locale,u=e.showTaglines,d=void 0!==u&&u,f=e.CTAVariation,m=void 0===f?"NORMAL":f,p=e.popularBadgeVariation,h=void 0===p?"ON_TOP":p,b=e.customTagLines,g=Object(s.useSelect)((function(e){return e(At).getSupportedPlans()})),v=Object(s.useSelect)((function(e){return e(At).getPrices(l)})),y=Object(a.useState)(!1),O=j()(y,2),_=O[0],E=O[1];return Object(o.createElement)("div",{className:"plans-table"},g.map((function(e){var a,s;return e&&Object(o.createElement)(Pt,{popularBadgeVariation:h,allPlansExpanded:_,key:e.storeSlug,slug:e.storeSlug,domain:i,tagline:null!==(a=d&&(null==b?void 0:b[e.storeSlug]))&&void 0!==a?a:e.description,CTAVariation:m,features:null!==(s=e.features)&&void 0!==s?s:[],isPopular:e.isPopular,isFree:e.isFree,price:v[e.storeSlug],name:null==e?void 0:e.title.toString(),isSelected:e.storeSlug===t,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return E((function(e){return!e}))},disabledLabel:null==c?void 0:c[e.storeSlug]})})))}),Dt=(n(67),Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}))),It=function(e){var t=e.slug,n=e.name,r=e.description,i=e.price,a=e.features,c=e.domain,s=e.badge,l=e.isFree,u=void 0!==l&&l,d=e.isOpen,f=void 0!==d&&d,m=e.isPrimary,p=void 0!==m&&m,h=e.onSelect,b=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,y=function(){!v&&(null==g||g(t,!f))};return Object(o.createElement)("div",{className:w()("plans-accordion-item",{"is-open":f,"is-primary":p,"has-badge":!!s,"is-disabled":!!v})},s&&Object(o.createElement)("div",{className:"plans-accordion-item__badge"},Object(o.createElement)("span",null,s)),Object(o.createElement)("div",{className:"plans-accordion-item__viewport"},Object(o.createElement)("div",{className:"plans-accordion-item__details"},Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:y,onKeyDown:function(e){return 32===e.keyCode&&y()},className:"plans-accordion-item__header"},Object(o.createElement)("div",{className:"plans-accordion-item__heading"},Object(o.createElement)("div",{className:"plans-accordion-item__name"},n),Object(o.createElement)("div",{className:"plans-accordion-item__description"},r)),Object(o.createElement)("div",{className:"plans-accordion-item__price"},Object(o.createElement)("div",{className:w()("plans-accordion-item__price-amount",{"is-loading":!i})},i||" ",i&&Object(o.createElement)("span",null,Object(x.__)("/mo","full-site-editing"))),Object(o.createElement)("div",{className:"plans-accordion-item__price-note"},u?Object(x.__)("free forever","full-site-editing"):Object(x.__)("billed annually","full-site-editing"))),Object(o.createElement)("div",{className:"plans-accordion-item__disabled-label"},v),!f&&Object(o.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},Dt)),Object(o.createElement)("div",{className:"plans-accordion-item__actions",hidden:!f},Object(o.createElement)(ae,{onClick:function(){h(t)}},Object(x.__)("Select","full-site-editing"))),Object(o.createElement)(kt,{features:a,domain:c,isFree:u,isOpen:f,onPickDomain:b,multiColumn:!0}))))},Rt=function(e){var t=e.isOpen,n=void 0!==t&&t,r=e.multiColumn,i=void 0!==r&&r,a=Array.from(Array(10).keys());return Object(o.createElement)("div",{className:"plans-feature-list",hidden:!n},Object(o.createElement)("ul",{className:w()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":i})},a.map((function(e){return Object(o.createElement)("li",{key:e,className:"plans-feature-list__item"},Object(o.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))},Ft=Object(o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},Object(o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Mt=function(e){var t=e.isOpen,n=e.isPrimary;return Object(o.createElement)("div",{className:w()("plans-accordion-item",{"is-open":t,"is-primary":n})},Object(o.createElement)("div",{className:"plans-accordion-item__viewport"},Object(o.createElement)("div",{className:"plans-accordion-item__details"},Object(o.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},Object(o.createElement)("div",{className:"plans-accordion-item__heading"},Object(o.createElement)("div",{className:"plans-accordion-item__name"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),Object(o.createElement)("div",{className:"plans-accordion-item__description"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),Object(o.createElement)("div",{className:"plans-accordion-item__price"},Object(o.createElement)("div",{className:"plans-accordion-item__price-amount"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),Object(o.createElement)("div",{className:"plans-accordion-item__price-note"},Object(o.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),Object(o.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&Object(o.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},Ft)),Object(o.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},Object(o.createElement)(ae,{disabled:!0},Object(o.createElement)("span",null,""))),Object(o.createElement)(Rt,{isOpen:t,multiColumn:!0}))))},Bt=(n(128),Object(o.createElement)(C.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(C.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}))),Ut=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanSlug,c=e.onPlanSelect,l=e.onPickDomainClick,u=e.currentDomain,d=e.disabledPlans,f=e.locale,m=Object(s.useSelect)((function(e){return e(At).getSupportedPlans()})),p=Object(s.useSelect)((function(e){return e(At).getPrices(f)})),h=!(null==m?void 0:m.length),b=Object(s.useSelect)((function(e){return e(At).getDefaultPaidPlan(f)})),g=Object(s.useSelect)((function(e){return e(Tt).getRecommendedPlanSlug(r)})),v=Object(s.useSelect)((function(e){return e(At).getPlanBySlug(g)})),y=v||b,O=v?Object(x.__)("Recommended for you","full-site-editing"):Object(x.__)("Popular","full-site-editing"),_=m.filter((function(e){return e.storeSlug!==y.storeSlug})),E=[null==y?void 0:y.storeSlug],S=Object(a.useState)(E),w=j()(S,2),k=w[0],N=w[1],P=!h&&k.length>=m.length,A=function(e,t){N(t?[].concat(ve()(k),[e]):k.filter((function(t){return t!==e})))};return Object(o.createElement)("div",{className:"plans-accordion"},Object(o.createElement)("div",{className:"plans-accordion__plan-item-group"},h?Object(o.createElement)(Mt,{isOpen:!0,isPrimary:!0}):y&&Object(o.createElement)(o.Fragment,null,v&&Object(o.createElement)("div",{className:"plans-accordion__recommend-hint"},Object(o.createElement)(fe,{icon:Bt,size:16}),Object(o.createElement)("span",null,Object(x.__)("Based on the features you selected.","full-site-editing"))),Object(o.createElement)(It,{key:y.storeSlug,slug:y.storeSlug,name:null==y?void 0:y.title.toString(),description:null==y?void 0:y.description.toString(),features:null!==(t=y.features)&&void 0!==t?t:[],price:p[y.storeSlug],domain:u,badge:O,isFree:y.isFree,isOpen:!0,isPrimary:!0,isSelected:y.storeSlug===i,onSelect:c,onPickDomainClick:l}))),Object(o.createElement)("div",{className:"plans-accordion__actions"},Object(o.createElement)(C.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){N(P?E:m.map((function(e){return e.storeSlug})))},isLink:!0},P?Object(x.__)("Collapse all plans","full-site-editing"):Object(x.__)("Show all plans","full-site-editing"))),Object(o.createElement)("div",{className:"plans-accordion__plan-item-group"},h?[1,2,3,4].map((function(e){return Object(o.createElement)(Mt,{key:e})})):_.map((function(e){var t;return Object(o.createElement)(It,{key:e.storeSlug,slug:e.storeSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],price:p[e.storeSlug],domain:u,isFree:e.isFree,isOpen:k.indexOf(e.storeSlug)>-1&&!(null==d?void 0:d[e.storeSlug]),isSelected:e.storeSlug===i,onSelect:c,onPickDomainClick:l,onToggle:A,disabledLabel:null==d?void 0:d[e.storeSlug]})}))))},Vt=(n(130),Object(o.createElement)(fe,{icon:jt,size:25})),zt=function(e){var t=e.onSelect,n=e.locale,r=Object(s.useSelect)((function(e){return e(At).getPlansDetails(n)})),i=r.features,a=r.featuresByType,c=r.plans,l=Object(s.useSelect)((function(e){return e(At).getPrices(n)})),u=Object(s.useSelect)((function(e){return e(At).getSupportedPlans()})),d=!(null==u?void 0:u.length),f=[1,2,3,4,5];return Object(o.createElement)("div",{className:"plans-details"},Object(o.createElement)("table",{className:"plans-details__table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",{className:"plans-details__header-row"},Object(o.createElement)("th",null,Object(x.__)("Feature","full-site-editing")),d?f.map((function(e){return Object(o.createElement)("th",{key:e},Object(o.createElement)("span",{className:"plans-details__placeholder"},""))})):u.map((function(e){return Object(o.createElement)("th",{key:e.storeSlug},e.title)})))),d?Object(o.createElement)("tbody",null,f.map((function(e,t){return Object(o.createElement)("tr",{className:"plans-details__feature-row",key:t},Object(o.createElement)("th",{key:e},Object(o.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),f.map((function(e){return Object(o.createElement)("td",{key:e})})))}))):a.map((function(e){var t;return Object(o.createElement)("tbody",{key:e.id},e.name&&Object(o.createElement)("tr",{className:"plans-details__header-row"},Object(o.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return Object(o.createElement)("tr",{className:"plans-details__feature-row",key:t},Object(o.createElement)("th",null,i[e].name),u.map((function(t,n){var r;return"storage"===e?Object(o.createElement)("td",{key:n},c[t.storeSlug][e]):Object(o.createElement)("td",{key:n},(null===(r=c[t.storeSlug].featuresSlugs)||void 0===r?void 0:r[e])?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"hidden"},Object(x.__)("Available","full-site-editing")),Vt):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"hidden"},Object(x.__)("Unavailable","full-site-editing"))))})))})))})),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",{className:"plans-details__header-row"},Object(o.createElement)("th",{colSpan:6},Object(x.__)("Sign up","full-site-editing"))),Object(o.createElement)("tr",{className:"plans-details__feature-row",key:"price"},Object(o.createElement)("th",null,Object(x.__)("Monthly subscription (billed yearly)","full-site-editing")),d?f.map((function(e){return Object(o.createElement)("td",{key:e},Object(o.createElement)("span",{className:"plans-details__placeholder"},""))})):u.map((function(e){return Object(o.createElement)("td",{key:e.storeSlug},l[e.storeSlug])}))),Object(o.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},Object(o.createElement)("th",null),d?f.map((function(e){return Object(o.createElement)("td",{key:e},Object(o.createElement)(C.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},Object(o.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):u.map((function(e){return Object(o.createElement)("td",{key:e.storeSlug},Object(o.createElement)(C.Button,{className:"plans-details__select-button",onClick:function(){t(e.storeSlug)},isPrimary:!0},Object(o.createElement)("span",null,Object(x.__)("Select","full-site-editing"))))}))))))},Ht=(n(127),he()("plans-grid")),qt=function(e){var t,n,r=e.header,i=e.selectedFeatures,a=e.currentPlan,c=e.currentDomain,s=e.onPlanSelect,l=e.onPickDomainClick,u=e.disabledPlans,d=e.isAccordion,f=e.locale,m=e.showPlanTaglines,p=void 0!==m&&m,h=e.CTAVariation,b=void 0===h?"NORMAL":h,g=e.popularBadgeVariation,v=void 0===g?"ON_TOP":g,y=e.customTagLines;return d&&Ht("PlansGrid accordion version is active"),Object(o.createElement)("div",{className:"plans-grid"},r&&Object(o.createElement)("div",{className:"plans-grid__header"},r),Object(o.createElement)("div",{className:"plans-grid__table"},Object(o.createElement)("div",{className:"plans-grid__table-container"},d?Object(o.createElement)(Ut,{selectedFeatures:i,selectedPlanSlug:null!==(t=null==a?void 0:a.storeSlug)&&void 0!==t?t:"",onPlanSelect:s,currentDomain:c,onPickDomainClick:l,disabledPlans:u,locale:f}):Object(o.createElement)(Lt,{popularBadgeVariation:v,CTAVariation:b,selectedPlanSlug:null!==(n=null==a?void 0:a.storeSlug)&&void 0!==n?n:"",onPlanSelect:s,customTagLines:y,currentDomain:c,onPickDomainClick:l,disabledPlans:u,locale:f,showTaglines:p}))),Object(o.createElement)("div",{className:"plans-grid__details"},Object(o.createElement)("div",{className:"plans-grid__details-heading"},Object(o.createElement)(ee,{tagName:"h2"},Object(x.__)("Detailed comparison","full-site-editing"))),Object(o.createElement)("div",{className:"plans-grid__details-container"},Object(o.createElement)(zt,{onSelect:s,locale:f}))))},Wt=(n(126),function(e){var t,n=e.onPrevStep,r=e.onNextStep,a=Object(s.useSelect)((function(e){return e(i).getSelectedDomain()})),c=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),l=Object(s.useDispatch)(i),u=l.updatePlan,d=l.setStep,f=Q().selectedFeatures,m=a&&!a.is_free;return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Select a plan","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within 30 days.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(qt,{currentDomain:a,onPlanSelect:function(e){u(e),null==r||r()},onPickDomainClick:function(){d(c.Domain)},disabledPlans:m?Z()({},R.Plans.PLAN_FREE,Object(x.__)("Not available with custom domain","full-site-editing")):void 0,isAccordion:!0,selectedFeatures:f,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==n||n()}}))))});function $t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Gt=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Yt=function(e){function t(e,r,s,l,f){for(var m,p,h,b,O,E=0,j=0,S=0,w=0,x=0,T=0,D=h=m=0,R=0,F=0,M=0,B=0,U=s.length,V=U-1,z="",H="",q="",W="";R<U;){if(p=s.charCodeAt(R),R===V&&0!==j+w+S+E&&(0!==j&&(p=47===j?10:47),w=S=E=0,U++,V++),0===j+w+S+E){if(R===V&&(0<F&&(z=z.replace(d,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(R)}p=59}switch(p){case 123:for(m=(z=z.trim()).charCodeAt(0),h=1,B=++R;R<U;){switch(p=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(p=s.charCodeAt(R+1)){case 42:case 47:e:{for(D=R+1;D<V;++D)switch(s.charCodeAt(D)){case 47:if(42===p&&42===s.charCodeAt(D-1)&&R+2!==D){R=D+1;break e}break;case 10:if(47===p){R=D+1;break e}}R=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;R++<V&&s.charCodeAt(R)!==p;);}if(0===h)break;R++}switch(h=s.substring(B,R),0===m&&(m=(z=z.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<F&&(z=z.replace(d,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=A}if(B=(h=t(r,F,h,p,f+1)).length,0<L&&(O=c(3,h,F=n(A,z,M),r,k,C,B,p,f,l),z=F.join(""),void 0!==O&&0===(B=(h=O.trim()).length)&&(p=0,h="")),0<B)switch(p){case 115:z=z.replace(_,a);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(g,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===l&&(H+=h,h="")}else h="";break;default:h=t(r,n(r,z,M),h,l,f+1)}q+=h,h=M=F=D=m=0,z="",p=s.charCodeAt(++R);break;case 125:case 59:if(1<(B=(z=(0<F?z.replace(d,""):z).trim()).length))switch(0===D&&(m=z.charCodeAt(0),45===m||96<m&&123>m)&&(B=(z=z.replace(" ",":")).length),0<L&&void 0!==(O=c(1,z,r,e,k,C,H.length,l,f,l))&&0===(B=(z=O.trim()).length)&&(z="\0\0"),m=z.charCodeAt(0),p=z.charCodeAt(1),m){case 0:break;case 64:if(105===p||99===p){W+=z+s.charAt(R);break}default:58!==z.charCodeAt(B-1)&&(H+=i(z,m,p,z.charCodeAt(2)))}M=F=D=m=0,z="",p=s.charCodeAt(++R)}}switch(p){case 13:case 10:47===j?j=0:0===1+m&&107!==l&&0<z.length&&(F=1,z+="\0"),0<L*I&&c(0,z,r,e,k,C,H.length,l,f,l),C=1,k++;break;case 59:case 125:if(0===j+w+S+E){C++;break}default:switch(C++,b=s.charAt(R),p){case 9:case 32:if(0===w+E+j)switch(x){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===w+j+E&&(F=M=1,b="\f"+b);break;case 108:if(0===w+j+E+N&&0<D)switch(R-D){case 2:112===x&&58===s.charCodeAt(R-3)&&(N=x);case 8:111===T&&(N=T)}break;case 58:0===w+j+E&&(D=R);break;case 44:0===j+S+w+E&&(F=1,b+="\r");break;case 34:case 39:0===j&&(w=w===p?0:0===w?p:w);break;case 91:0===w+j+S&&E++;break;case 93:0===w+j+S&&E--;break;case 41:0===w+j+E&&S--;break;case 40:if(0===w+j+E){if(0===m)switch(2*x+3*T){case 533:break;default:m=1}S++}break;case 64:0===j+S+w+E+D+h&&(h=1);break;case 42:case 47:if(!(0<w+E+S))switch(j){case 0:switch(2*p+3*s.charCodeAt(R+1)){case 235:j=47;break;case 220:B=R,j=42}break;case 42:47===p&&42===x&&B+2!==R&&(33===s.charCodeAt(B+2)&&(H+=s.substring(B,R+1)),b="",j=0)}}0===j&&(z+=b)}T=x,x=p,R++}if(0<(B=H.length)){if(F=r,0<L&&(void 0!==(O=c(2,H,F,e,k,C,B,l,f,l))&&0===(H=O).length))return W+H+q;if(H=F.join(",")+"{"+H+"}",0!=P*N){switch(2!==P||o(H,2)||(N=0),N){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}N=0}}return W+H+q}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<o;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<o;++c)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",i[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&o(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return m.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(O,"tb");break;case 232:s=a.replace(O,"tb-rl");break;case 220:s=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(j,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(j,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,i,o,a,c,s,u){for(var d,f=0,m=t;f<L;++f)switch(d=T[f].call(l,e,m,n,r,i,o,a,c,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?P=1:(P=2,D=e):P=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var i=c(-1,n,r,r,k,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(A,r,n,0,0);return 0<L&&(void 0!==(i=c(-2,o,r,r,k,C,o.length,0,0,0))&&(o=i)),"",N=0,C=k=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,m=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,j=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,C=1,k=1,N=0,P=1,A=[],T=[],L=0,D=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:L=T.length=0;break;default:if("function"==typeof t)T[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},Kt=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},Xt="/*|*/";function Qt(e){e&&Jt.current.insert(e+"}")}var Jt={current:null},Zt=function(e,t,n,r,i,o,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Jt.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+Xt;break;case 3:switch(c){case 102:case 112:return Jt.current.insert(n[0]+t),"";default:return t+(0===l?Xt:"")}case-2:t.split("/*|*/}").forEach(Qt)}},en=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Yt(t);var i,o={};i=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Zt),a=function(e,t,n,i){var o=t.name;Jt.current=n,r(e,t.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new Gt({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return s},tn=n(44),nn=n.n(tn);function rn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var on=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};var an=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},cn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var sn=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},ln=/[A-Z]|^ms/g,un=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dn=function(e){return 45===e.charCodeAt(1)},fn=function(e){return null!=e&&"boolean"!=typeof e},mn=sn((function(e){return dn(e)?e:e.replace(ln,"-$&").toLowerCase()})),pn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(un,(function(e,t,n){return bn={name:t,styles:n,next:bn},t}))}return 1===cn[e]||dn(e)||"number"!=typeof t||0===t?t:t+"px"};function hn(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return bn={name:n.name,styles:n.styles,next:bn},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)bn={name:i.name,styles:i.styles,next:bn},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=hn(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":fn(a)&&(r+=mn(o)+":"+pn(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=hn(e,t,a,!1);switch(o){case"animation":case"animationName":r+=mn(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)fn(a[s])&&(r+=mn(o)+":"+pn(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=bn,a=n(e);return bn=o,hn(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var bn,gn=/label:\s*([^\s;\n{]+)\s*;/g;var vn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";bn=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=hn(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=hn(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);gn.lastIndex=0;for(var c,s="";null!==(c=gn.exec(i));)s+="-"+c[1];return{name:an(i)+s,styles:i,next:bn}},yn=(Object.prototype.hasOwnProperty,Object(a.createContext)("undefined"!=typeof HTMLElement?en():null)),On=Object(a.createContext)({}),En=(yn.Provider,function(e){var t=function(t,n){return Object(a.createElement)(yn.Consumer,null,(function(r){return e(t,r,n)}))};return Object(a.forwardRef)(t)});var jn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vn(t)},Sn=(a.Component,function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i});function wn(e,t,n){var r=[],i=rn(e,r,n);return r.length<2?n:i+t(r)}En((function(e,t){return Object(a.createElement)(On.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=vn(n,t.registered);return on(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return wn(t.registered,r,Sn(n))},theme:n},o=e.children(i);return!0,o}))})),n(45);function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cn=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(n,!0).forEach((function(t){Z()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},kn=Kt((function(e){return Kt((function(t){return Cn(e,t)}))})),Nn=function(e){return Object(a.createElement)(On.Consumer,null,(function(t){return e.theme!==t&&(t=kn(t)(e.theme)),Object(a.createElement)(On.Provider,{value:t},e.children)}))};var Pn=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));var An="#F6F7F7",Tn="#DCDCDE",Ln="#8E9196",Dn="#646970",In="#2C3338",Rn="#008A20",Fn="#FFF",Mn="#000",Bn={colors:{background:An,surface:Fn,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#2271B1",highlightBorder:"#043959",highlightOver:"#135E96",success:Rn,discount:Rn,disabledPaymentButtons:An,disabledPaymentButtonsAccent:Tn,disabledButtons:"#A7AAAD",borderColor:"#C3C4C7",borderColorLight:Tn,borderColorDark:Dn,upcomingStepBackground:Tn,textColor:In,textColorLight:Dn,textColorDark:Mn,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:Mn,applePayButtonRollOverColor:In,noticeBackground:In,defaultNoticeIconBackground:Ln,textColorOnDarkBackground:Fn,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:An,placeHolderTextColor:Ln},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}},Un=n(8),Vn=n.n(Un),zn=n(5),Hn=n.n(zn);function qn(e){return e.filter((function(e){return e})).join(" ")}var Wn=n(40),$n=n.n(Wn),Gn=n(41),Yn=n.n(Gn),Kn=n(30),Xn=n.n(Kn),Qn=n(42),Jn=n.n(Qn),Zn=n(43),er=n.n(Zn),tr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nr=sn((function(e){return tr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),rr=function(e){return"theme"!==e&&"innerRef"!==e},ir=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?nr:rr};function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(n,!0).forEach((function(t){Z()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cr=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var c=t.__emotion_real===t,s=c&&t.__emotion_base||t;"function"!=typeof i&&c&&(i=t.__emotion_forwardProp);var l=i||ir(s),u=!l("as");return function(){var d=arguments,f=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var m=d.length,p=1;p<m;p++)f.push(d[p],d[0][p])}var h=En((function(e,t,n){return Object(a.createElement)(On.Consumer,null,(function(r){var c=u&&e.as||s,d="",m=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=r}"string"==typeof e.className?d=rn(t.registered,m,e.className):null!=e.className&&(d=e.className+" ");var b=vn(f.concat(m),t.registered,p);on(t,b,"string"==typeof c);d+=t.key+"-"+b.name,void 0!==o&&(d+=" "+o);var g=u&&void 0===i?ir(c):l,v={};for(var y in e)u&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=d,v.ref=n||e.innerRef,Object(a.createElement)(c,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=f,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0!==r?ar({},n||{},{},r):n).apply(void 0,f)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){cr[e]=cr(e)}));var sr=cr;function lr(){var e=Vn()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return lr=function(){return e},e}var ur=he()("composite-checkout:checkout-error-boundary"),dr=function(e){Jn()(n,e);var t=er()(n);function n(e){var r;return $n()(this,n),r=t.call(this,e),Z()(Xn()(r),"state",{hasError:!1,currentError:null}),r}return Yn()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);ur("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?Object(o.createElement)(fr,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(c.a.Component);function fr(e){var t=e.errorMessage;return Object(o.createElement)(br,null,t)}var mr,pr,hr,br=sr.div(lr());!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(mr||(mr={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL"}(pr||(pr={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(hr||(hr={}));var gr={allPaymentMethods:[],paymentMethodId:null,setPaymentMethodId:vr,showErrorMessage:vr,showInfoMessage:vr,showSuccessMessage:vr,onEvent:vr,formStatus:mr.LOADING,setFormStatus:vr,transactionStatusManager:null,paymentProcessors:{}};function vr(){}var yr=Object(a.createContext)(gr);he()("composite-checkout:form-status");function Or(){var e=Object(a.useContext)(yr),t=e.formStatus,n=e.setFormStatus,r=Object(a.useMemo)((function(){return{setFormLoading:function(){return n(mr.LOADING)},setFormReady:function(){return n(mr.READY)},setFormSubmitting:function(){return n(mr.SUBMITTING)},setFormValidating:function(){return n(mr.VALIDATING)},setFormComplete:function(){return n(mr.COMPLETE)}}}),[n]);return Object(a.useMemo)((function(){return f()(f()({},r),{},{formStatus:t})}),[t,r])}function _r(){var e=Vn()(["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"]);return _r=function(){return e},e}function Er(){var e=Vn()(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 0;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n"]);return Er=function(){return e},e}function jr(){var e=Vn()(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"]);return jr=function(){return e},e}function Sr(){var e=Vn()(["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"]);return Sr=function(){return e},e}function wr(){var e=Vn()(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return wr=function(){return e},e}function xr(){var e=Vn()(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"]);return xr=function(){return e},e}function Cr(){var e=Vn()(["\n\tdisplay: none;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tdisplay: block;\n\t\tpadding: 24px;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid ",";\n\t\tmax-width: 328px;\n\t\tbackground: ",";\n\t\tmargin-left: 24px;\n\t}\n"]);return Cr=function(){return e},e}function kr(){var e=Vn()(["\n\tbackground: ",";\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmax-width: 556px;\n\t\tmargin: 0 auto;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t}\n"]);return kr=function(){return e},e}function Nr(){var e=Vn()(["\n\tdisplay: flex;\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t}\n"]);return Nr=function(){return e},e}sr.div(Nr(),(function(e){return e.theme.breakpoints.desktopUp})),sr.div(kr(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp})),sr.div(Cr(),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.surface})),sr.div(xr(),(function(e){return e.theme.colors.borderColorLight}));var Pr=function(){var e=jn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wr());sr.h1(Sr(),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),Pr,(function(e){return e.theme.colors.borderColorLight})),sr.p(jr(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),Pr),sr.p(Er(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),Pr),sr.div(_r(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}));he()("composite-checkout:transaction-status");hr.NOT_STARTED,hr.NOT_STARTED;var Ar=he()("composite-checkout:payment-methods");function Tr(){var e=Object(a.useContext)(yr),t=e.paymentMethodId,n=e.setPaymentMethodId,r=Lr();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var i=r.find((function(e){return e.id===t}));return i||(Ar("No payment method found matching id '".concat(t,"' in"),r),null)}function Lr(){var e=Object(a.useContext)(yr).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}he()("composite-checkout:checkout-submit-button");function Dr(){var e=Vn()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Dr=function(){return e},e}var Ir=sr("button")(Dr(),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),Br,Mr,Vr,Fr,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),Mr,(function(e){return e.disabled?"not-allowed":"pointer"}),Fr,Vr,Mr,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),Br,Ur,Ur,Br),Rr=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,a=e.fullWidth,c=re()(e,["className","buttonType","isBusy","children","fullWidth"]),s=qn(["checkout-button"].concat(ve()(n?["is-status-"+n]:[]),ve()(r?["is-busy"]:[]),ve()(t?[t]:[])));return Object(o.createElement)(Ir,g()({fullWidth:a,buttonType:n,className:s},c),i)};function Fr(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Mr(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function Br(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function Ur(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Vr(e){return"text-button"===e.buttonType?"underline":"none"}function zr(){var e=Vn()(["\n\tfill: #fff;\n"]);return zr=function(){return e},e}function Hr(e){var t=e.className,n=e.id;return Object(o.createElement)(qr,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},Object(o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},Object(o.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),Object(o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},Object(o.createElement)("rect",{width:"20",height:"20"})))}Hr.propTypes={className:Hn.a.string,id:Hn.a.string};var qr=sr.svg(zr());var Wr=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=re()(e,["value","onClick","ariaLabel"]);return Object(o.createElement)(Rr,g()({onClick:n,buttonType:"primary","aria-label":r},i),t)};function $r(){var e=Object(a.useContext)(yr).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}var Gr=Object(a.createContext)({items:[],total:{id:"title",type:"total",label:"Total",amount:{currency:"USD",value:0,displayValue:"0"}}});function Yr(){var e=Object(a.useContext)(Gr),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}function Kr(){var e=Vn()(["\n\tfont-weight: ",";\n"]);return Kr=function(){return e},e}function Xr(){var e=Vn()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Xr=function(){return e},e}function Qr(){var e=Vn()(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"]);return Qr=function(){return e},e}function Jr(){var e=Vn()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"]);return Jr=function(){return e},e}function Zr(){var e=Vn()(["\n\tfont-weight: ",";\n"]);return Zr=function(){return e},e}function ei(){var e=Vn()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return ei=function(){return e},e}function ti(){var e=Vn()(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"]);return ti=function(){return e},e}function ni(){var e=Vn()(["\n\tmargin: 0;\n\tpadding: 0;\n"]);return ni=function(){return e},e}sr.ul(ni()),sr.li(ti());sr.span(ei()),sr.span(Zr(),(function(e){return e.theme.weights.bold}));sr.div(Jr(),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),sr.div(Qr(),(function(e){return e.theme.colors.borderColorLight}));var ri=sr.div(Xr());sr(ri)(Kr(),(function(e){return e.theme.weights.bold}));function ii(){var e=Vn()(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"]);return ii=function(){return e},e}function oi(){var e=Vn()(["\n\tmargin-bottom: 16px;\n"]);return oi=function(){return e},e}function ai(e){var t=e.children,n=e.className;return Object(o.createElement)(ci,{className:qn([n,"order-review-section"])},t)}ai.propTypes={className:Hn.a.string};var ci=sr.div(oi());function si(e){var t=e.item,n=e.className,r="checkout-line-item-".concat(t.id);return Object(o.createElement)("div",{className:qn([n,"checkout-line-item"])},Object(o.createElement)("span",{id:r},t.label),Object(o.createElement)("span",{"aria-labelledby":r},t.amount.displayValue))}si.propTypes={className:Hn.a.string,total:Hn.a.bool,isSummaryVisible:Hn.a.bool,item:Hn.a.shape({label:Hn.a.string,amount:Hn.a.shape({displayValue:Hn.a.string})})};var li=sr(si)(ii(),(function(e){var t=e.theme;return e.total?t.weights.bold:t.weights.normal}),(function(e){var t=e.theme;return e.total?t.colors.textColorDark:"inherit"}),(function(e){return e.total?"1.2em":"1em"}),(function(e){var t=e.total;return e.isSummaryVisible||t?0:"24px 0"}),(function(e){var t=e.theme,n=e.total;return e.isSummaryVisible||n?0:"1px solid "+t.colors.borderColorLight}));function ui(e){var t=e.total,n=e.className;return Object(o.createElement)("div",{className:qn([n,"order-review-total"])},Object(o.createElement)(li,{total:!0,item:t}))}function di(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return Object(o.createElement)("div",{className:qn([n,"order-review-line-items"])},t.map((function(e){return Object(o.createElement)(li,{isSummaryVisible:r,key:e.id,item:e})})))}function fi(e){var t=e.className,n=Yr(),r=j()(n,2),i=r[0],a=r[1];return Object(o.createElement)("div",{className:qn([t,"checkout-review-order"])},Object(o.createElement)(ai,null,Object(o.createElement)(di,{items:i})),Object(o.createElement)(ai,null,Object(o.createElement)(ui,{total:a})))}function mi(){var e=Vn()(["\n\tdisplay: ",";\n"]);return mi=function(){return e},e}function pi(){var e=Vn()(["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"]);return pi=function(){return e},e}function hi(){var e=Vn()(["\n\tposition: absolute;\n\topacity: 0 !important;\n\n\tclear: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tline-height: 0;\n\theight: 16px;\n\tmargin: 2px 0 0;\n\tfloat: left;\n\toutline: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tvertical-align: middle;\n\twidth: 16px;\n\tmin-width: 16px;\n\tappearance: none;\n"]);return hi=function(){return e},e}function bi(){var e=Vn()(["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"]);return bi=function(){return e},e}di.propTypes={className:Hn.a.string,isSummaryVisible:Hn.a.bool,items:Hn.a.arrayOf(Hn.a.shape({label:Hn.a.string,amount:Hn.a.shape({displayValue:Hn.a.string})}))},fi.propTypes={className:Hn.a.string};var gi=sr.div(bi(),(function(e){var t=e.isFocused,n=e.theme;if(t)return n.colors.outline+" solid 2px";return"0"}),(function(e){return e.checked?"3px":"1px"}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.borderColor}),(function(e){return e.theme.colors.highlight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),Ei,(function(e){return e.theme.breakpoints.smallPhoneUp}),Ei,(function(e){if(!e.disabled)return null;return"\n\t\t::before,\n\t\t:hover::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t}\n\n\t\tsvg,\n\t\t:hover svg {\n\t\t\tfilter: grayscale( 100% );\n\t\t\topacity: 50%;\n\t\t}\n\t"})),vi=sr.input(hi()),yi=sr.label(pi(),(function(e){return e.theme.colors.borderColor}),(function(e){return e.theme.colors.surface}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.surface}),(function(e){if(!e.disabled)return null;return"\n\t\tcolor: lightgray;\n\t\tfont-style: italic;\n\n\t\t:hover {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t\tbackground: lightgray;\n\t\t}\n\n\t\t::after {\n\t\t\tbackground: white;\n\t\t}\n\n\t\tspan {\n\t\t\tcolor: lightgray;\n\t\t}\n\t"})),Oi=sr.div(mi(),(function(e){return e.checked?"block":"none"}));function _i(e){var t=e.checked,n=e.name,r=e.value,i=e.onChange,c=e.children,s=e.label,l=e.disabled,u=e.id,d=e.ariaLabel,f=Object(a.useState)(!1),m=j()(f,2),p=m[0],h=m[1];return Object(o.createElement)(gi,{disabled:l,isFocused:p,checked:t},Object(o.createElement)(vi,{type:"radio",name:n,id:u,disabled:l,value:r,checked:t,onChange:i,onFocus:function(){h(!0)},onBlur:function(){h(!1)},readOnly:!i,"aria-label":d}),Object(o.createElement)(yi,{checked:t,htmlFor:u,disabled:l},s),c&&Object(o.createElement)(Oi,{checked:t},c))}function Ei(e){return e.checked?0:"100%"}function ji(){var e=Vn()(["\n\tmargin-bottom: 16px;\n"]);return ji=function(){return e},e}_i.propTypes={name:Hn.a.string.isRequired,id:Hn.a.string.isRequired,label:Hn.a.node.isRequired,disabled:Hn.a.bool,checked:Hn.a.bool,value:Hn.a.string.isRequired,onChange:Hn.a.func,ariaLabel:Hn.a.string.isRequired};var Si=he()("composite-checkout:checkout-payment-methods");function wi(e){var t=e.summary,n=e.isComplete,r=e.className,__=lt().__,i=$r(),c=Object(a.useCallback)((function(e){return i({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[i]),s=Tr(),l=function(){var e=Object(a.useContext)(yr),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}(),u=j()(l,2)[1],d=function(e){Si("setting payment method to",e),i({type:"PAYMENT_METHOD_SELECT",payload:e}),u(e)},f=Lr();return t&&n&&s?(Si("rendering selected paymentMethod",s),Object(o.createElement)("div",{className:qn([r,"checkout-payment-methods"])},Object(o.createElement)(dr,{errorMessage:__("There was a problem with this payment method."),onError:c},Object(o.createElement)(xi,{id:s.id,label:s.label,activeContent:s.activeContent,inactiveContent:s.inactiveContent,checked:!0,summary:!0,ariaLabel:s.getAriaLabel(__)})))):t?(Si("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",s),null):(Si("rendering paymentMethods",f),Object(o.createElement)("div",{className:qn([r,"checkout-payment-methods"])},Object(o.createElement)(Ci,null,f.map((function(e){return Object(o.createElement)(dr,{key:e.id,errorMessage:Object(x.sprintf)(__("There was a problem with the payment method: %s"),e.id),onError:c},Object(o.createElement)(xi,{id:e.id,label:e.label,activeContent:e.activeContent,inactiveContent:e.inactiveContent,checked:(null==s?void 0:s.id)===e.id,onClick:d,ariaLabel:e.getAriaLabel(__)}))})))))}function xi(e){var t=e.id,n=e.label,r=e.activeContent,i=e.inactiveContent,a=e.checked,c=e.onClick,s=e.ariaLabel,l=e.summary,u=Or().formStatus;return l?Object(o.createElement)(o.Fragment,null,i&&i):Object(o.createElement)(_i,{name:"paymentMethod",value:t,id:t,checked:a,disabled:u!==mr.READY,onChange:c?function(){return c(t)}:void 0,ariaLabel:s,label:n},r&&r)}wi.propTypes={summary:Hn.a.bool,isComplete:Hn.a.bool.isRequired,className:Hn.a.string},xi.propTypes={id:Hn.a.string.isRequired,onClick:Hn.a.func,checked:Hn.a.bool.isRequired,ariaLabel:Hn.a.string.isRequired,activeContent:Hn.a.node,label:Hn.a.node,inactiveContent:Hn.a.node,summary:Hn.a.bool};var Ci=sr.div(ji());function ki(){var e=Vn()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return ki=function(){return e},e}function Ni(){var e=Vn()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return Ni=function(){return e},e}function Pi(){var e=Vn()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return Pi=function(){return e},e}function Ai(){var e=Vn()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return Ai=function(){return e},e}function Ti(){var e=Vn()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return Ti=function(){return e},e}function Li(){var e=Vn()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return Li=function(){return e},e}function Di(){var e=Vn()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return Di=function(){return e},e}function Ii(){var e=Vn()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return Ii=function(){return e},e}function Ri(){var e=Vn()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return Ri=function(){return e},e}function Fi(){var e=Vn()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return Fi=function(){return e},e}function Mi(){var e=Vn()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return Mi=function(){return e},e}function Bi(){var e=Vn()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return Bi=function(){return e},e}function Ui(){var e=Vn()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return Ui=function(){return e},e}function Vi(){var e=Vn()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return Vi=function(){return e},e}function zi(){var e=Vn()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return zi=function(){return e},e}function Hi(){var e=Vn()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return Hi=function(){return e},e}he()("composite-checkout:checkout"),sr.div(Hi(),(function(e){return e.theme.colors.outline}));var qi=sr.div(zi(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Wi=sr.div(Vi(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),$i=function(e){var t=e.children,n=e.className;return Object(o.createElement)(Wi,{className:qn([n,"checkout__summary-area"])},t)},Gi=sr.div(Ui(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var Yi=sr.div(Bi(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Ki=sr.div(Mi(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Xi=sr.div(Fi(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),Qi=sr.div(Ri(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),Ji=sr.div(Ii(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function Zi(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,a=e.validatingButtonText,c=e.nextStepButtonAriaLabel,s=e.validatingButtonAriaLabel,l=e.isStepActive,u=e.isStepComplete,d=e.className,f=e.stepNumber,m=e.stepId,p=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,O=e.onError,__=lt().__;return Object(o.createElement)(dr,{errorMessage:t||__("There was an error with this step."),onError:O},Object(o.createElement)(Xi,{className:d},Object(o.createElement)(ro,{id:m,stepNumber:f,title:p,isActive:l,isComplete:u,onEdit:v===mr.READY&&u&&h&&!l?h:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),Object(o.createElement)(Qi,{isVisible:l,className:"checkout-steps__step-content"},g,b&&l&&Object(o.createElement)(Wr,{onClick:b,value:v===mr.VALIDATING?a||__("Please wait…"):i||__("Continue"),ariaLabel:v===mr.VALIDATING?s||__("Please wait…"):c||__("Continue to next step"),buttonType:"primary",disabled:v!==mr.READY,isBusy:v===mr.VALIDATING})),u&&y?Object(o.createElement)(Ji,{isVisible:!l,className:"checkout-steps__step-complete-content"},y):null))}Zi.propTypes={errorMessage:Hn.a.string,onError:Hn.a.func,editButtonAriaLabel:Hn.a.string,editButtonText:Hn.a.string,nextStepButtonText:Hn.a.string,nextStepButtonAriaLabel:Hn.a.string,isStepActive:Hn.a.bool.isRequired,isStepComplete:Hn.a.bool.isRequired,className:Hn.a.string,stepNumber:Hn.a.number,stepId:Hn.a.string.isRequired,titleContent:Hn.a.node.isRequired,goToThisStep:Hn.a.func,goToNextStep:Hn.a.func,activeStepContent:Hn.a.node,formStatus:Hn.a.string,completeStepContent:Hn.a.node,validatingButtonText:Hn.a.string,validatingButtonAriaLabel:Hn.a.string};var eo=sr.span(Di(),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),to=sr.h2(Li(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),no=sr(Rr)(Ti());function ro(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,a=e.isActive,c=e.isComplete,s=e.onEdit,l=e.editButtonText,u=e.editButtonAriaLabel,__=lt().__,d=!!s;return Object(o.createElement)(to,{isComplete:c,isActive:a,className:qn([n,"checkout-step__header"])},Object(o.createElement)(so,{isComplete:c,isActive:a,id:t},r||null),Object(o.createElement)(eo,{fullWidth:!d,isActive:a},i),d&&Object(o.createElement)(no,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:s,"aria-label":u||__("Edit this step")},l||__("Edit")))}var io=sr.div(Ai()),oo=sr.div(Pi(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),ao=sr.div(Ni(),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),co=sr(ao)(ki(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function so(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,a=e.id,c=!n&&t;return Object(o.createElement)(io,{className:qn([r,"checkout-step__stepper"])},Object(o.createElement)(oo,{isComplete:c},Object(o.createElement)(ao,{isComplete:c,isActive:n},i),Object(o.createElement)(co,null,Object(o.createElement)(Hr,{id:a}))))}ro.propTypes={id:Hn.a.string,className:Hn.a.string,stepNumber:Hn.a.number,title:Hn.a.node.isRequired,isActive:Hn.a.bool,isComplete:Hn.a.bool,editButtonText:Hn.a.string,editButtonAriaLabel:Hn.a.string,onEdit:Hn.a.func},so.propTypes={id:Hn.a.string,className:Hn.a.string,isComplete:Hn.a.bool,isActive:Hn.a.bool};n(132);var lo,uo,fo=Object(o.createElement)(T,{icon:Pn,size:17}),mo=function(e){var t=e.onNextStep,n=e.onPrevStep,r=Object(s.useSelect)((function(e){return e(i).getSelectedDomain()})),a=Object(s.useSelect)((function(e){return e(i).getSelectedPlan()})),c=Object(s.useSelect)((function(e){var t;return e("automattic/onboard/plans").getPrices((null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en")})),l=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),u=Object(s.useSelect)((function(e){return e(i).isStepCompleted})),d=Object(s.useSelect)((function(e){return e(i).isFlowCompleted()})),f=se().title,m=gt().siteSubdomain,p=function(){var e,t=_(),n=Ot().domainSearch;return null===(e=Object(s.useSelect)((function(e){if(n&&!(n.length<2))return e(B).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}(),h=Ot().domainSearch,b=Object(s.useDispatch)(i).setStep,g=Object(o.createElement)("div",{className:"nux-launch__summary-item"},Object(o.createElement)("p",null,Object(x.__)("Site","full-site-editing"),": ",f)),v=Object(o.createElement)("div",{className:"nux-launch__summary-item"},(null==r?void 0:r.domain_name)?Object(o.createElement)("p",null,Object(x.__)("Custom domain","full-site-editing"),": ",r.domain_name):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(x.__)("Free site address","full-site-editing"),": ",null==m?void 0:m.domain),Object(o.createElement)(C.Tip,null,h?Object(o.createInterpolateElement)(Object(x.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:Object(o.createElement)("span",{className:w()("nux-launch__summary-item__domain-name",{"is-loading":!p})},(null==p?void 0:p.domain_name)||"loading-example.com"),Link:Object(o.createElement)(C.Button,{isLink:!0,onClick:function(){return b(l.Domain)}})}):Object(x.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),y=Object(o.createElement)("div",{className:"nux-launch__summary-item"},a&&!(null==a?void 0:a.isFree)?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",a.title),Object(x.__)("Plan subscription","full-site-editing"),": ",c[a.storeSlug]," ",Object(x.__)("per month, billed yearly","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(o.createElement)("p",null,Object(x.__)("Plan subscription: Free forever","full-site-editing")),Object(o.createElement)(C.Tip,null,Object(o.createInterpolateElement)(Object(x.__)("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer 30-day full-refunds, guaranteed.","full-site-editing"),{Link:Object(o.createElement)(C.Button,{isLink:!0,onClick:function(){return b(l.Plan)}})}))));return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(ee,null,Object(x.__)("Launch your site","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Nn,{theme:Bn},Object(o.createElement)(qi,null,u(l.Plan)&&Object(o.createElement)($i,null,Object(o.createElement)(Gi,{className:"nux-launch__feature-list"},Object(o.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(x.__)("Included in your plan","full-site-editing")),Object(o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==a?void 0:a.features.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"nux-launch__feature-item"},fo," ",e)}))),Object(o.createElement)("p",null,Object(x.__)("Questions?","full-site-editing")," ",Object(o.createElement)(C.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(x.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(o.createElement)(Yi,null,Object(o.createElement)(Zi,{isStepActive:!1,titleContent:Object(x.__)("Your site name","full-site-editing"),isStepComplete:u(l.Name),goToThisStep:function(){return b(l.Name)},completeStepContent:g,stepId:"name",formStatus:mr.READY}),Object(o.createElement)(Zi,{isStepActive:!1,titleContent:Object(x.__)("Your domain","full-site-editing"),isStepComplete:u(l.Domain),goToThisStep:function(){return b(l.Domain)},completeStepContent:v,stepId:"domain",formStatus:mr.READY}),Object(o.createElement)(Zi,{isStepActive:!1,titleContent:Object(x.__)("Your plan","full-site-editing"),isStepComplete:u(l.Plan),goToThisStep:function(){return b(l.Plan)},completeStepContent:y,stepId:"plan",formStatus:mr.READY}),Object(o.createElement)(Ki,null,Object(o.createElement)(C.Button,{isPrimary:!0,disabled:!d,onClick:t,className:"nux-launch__submit-button"},Object(x.__)("Launch your site","full-site-editing"))))))),Object(o.createElement)("div",{className:"nux-launch-step__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(oe,{onClick:function(){null==n||n()}}))))},po=(n(135),function(e){var t,n=e.onSubmit,r=Object(s.useSelect)((function(e){return e(i).getState()})).step,c=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),l=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()})),u=Object(s.useSelect)((function(e){return e(i).getFirstIncompleteStep()})),d=Object(s.useDispatch)(i),f=d.setStep,m=d.setSidebarFullscreen,p=d.unsetSidebarFullscreen,h=(t={},Z()(t,c.Name,le),Z()(t,c.Domain,Et),Z()(t,c.Plan,Wt),Z()(t,c.Final,mo),t),b=l.indexOf(r),g=h[r];return a.useEffect((function(){u&&u!==c.Name&&f(u)}),[]),Object(o.createElement)(g,{onPrevStep:function(){var e=b-1;e<0&&(e=0,m()),f(l[e])},onNextStep:function(){var e=b+1;e>l.length-1&&(null==n||n()),p(),f(l[e])}})}),ho=Object(o.createElement)(C.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(C.Circle,{cx:"12",cy:"12",r:"5"})),bo=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,a=e.onClick;return Object(o.createElement)(C.Button,{className:w()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:a,disabled:i,isLink:!0},Object(o.createElement)(T,{icon:n?Pn:ho,size:16}),Object(o.createElement)("span",null,t))},go=(n(136),function(e){var t,n=e.onMenuItemClick,__=lt().__,r=Object(s.useSelect)((function(e){return e(i).getState()})).step,a=Object(s.useSelect)((function(e){return e(i).getLaunchStep()})),c=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()})),l=Object(s.useSelect)((function(e){return e(i).isStepCompleted})),u=Object(s.useSelect)((function(e){return e(i).isFlowCompleted()})),d=(t={},Z()(t,a.Name,__("Name your site","full-site-editing")),Z()(t,a.Domain,__("Select a domain","full-site-editing")),Z()(t,a.Plan,__("Select a plan","full-site-editing")),Z()(t,a.Final,__("Launch your site","full-site-editing")),t),f=Object(s.useDispatch)(i).setStep;return Object(o.createElement)("div",{className:"nux-launch-menu"},Object(o.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),Object(o.createElement)("div",{className:"nux-launch-menu__item-group"},c.map((function(e){return Object(o.createElement)(bo,{key:e,title:d[e],isCompleted:l(e),isCurrent:e===r,onClick:function(){return function(e){f(e),n(e)}(e)},isDisabled:e===a.Final&&!u})}))))}),vo=(n(137),function(){var e=Object(s.useDispatch)(i),t=e.setStep,n=e.unsetSidebarFullscreen,r=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()}));return Object(o.createElement)("div",{className:"nux-launch-sidebar"},Object(o.createElement)("div",{className:"nux-launch-sidebar__header"},Object(o.createElement)(ee,null,Object(x.__)("You're almost there!","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),Object(o.createElement)("div",{className:"nux-launch-sidebar__body"},Object(o.createElement)(go,{onMenuItemClick:function(){n()}})),Object(o.createElement)("div",{className:"nux-launch-sidebar__footer"},Object(o.createElement)(ie,{sticky:!0},Object(o.createElement)(ae,{onClick:function(){t(r[0]),n()}},Object(x.__)("Get Started","full-site-editing")))))}),yo=(n(138),function(){var __=lt().__,e=Object(s.useSelect)((function(e){return e(i).getState()})).step,t=Object(s.useSelect)((function(e){return e(i).getLaunchSequence()})),n=t.indexOf(e)+1,r=t.length,a=Object(x.sprintf)(__("%1$d of %2$d","full-site-editing"),n,r);return Object(o.createElement)("div",{className:"nux-launch-progress"},a)}),Oo=(n(139),function(e){var t=e.onClose,n=a.useContext(h).siteId,c=Object(s.useSelect)((function(e){return e(i).getState()})),l=c.step,u=c.isSidebarFullscreen,d=a.useState(!1),f=j()(d,2),m=f[0],p=f[1],b=Object(s.useDispatch)(r).launchSite;return function(){var e=a.useContext(h),t=e.siteId,n=e.redirectTo,r=Object(s.useSelect)((function(e){return e(U).getState()})).plan,i=Q().isSiteLaunched,o=X().goToCheckout;a.useEffect((function(){if(i){if(r&&!(null==r?void 0:r.isFree))return void o();n("/home/".concat(t))}}),[i])}(),Object(o.createElement)(C.Modal,{open:!0,className:w()("nux-launch-modal","step-".concat(l),u?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},m?Object(o.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(x.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"nux-launch-modal-body"},Object(o.createElement)("div",{className:"nux-launch-modal-header"},Object(o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(o.createElement)(T,{icon:D,size:36})),Object(o.createElement)(yo,null)),Object(o.createElement)(po,{onSubmit:function(){b(n),p(!0)}})),Object(o.createElement)("div",{className:"nux-launch-modal-aside"},Object(o.createElement)(vo,null)),Object(o.createElement)(C.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(x.__)("Close dialog","full-site-editing"),disabled:!t},Object(o.createElement)("span",null,Object(o.createElement)(T,{icon:I,size:24})))))}),_o=function(e){var t=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat("https://wordpress.com").concat(t))},Eo=function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window)||void 0===e?void 0:e.currentSiteId,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o="a8c.wpcom-block-editor.openCheckoutModal",a=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;if(Object(u.hasAction)(o)&&a)Object(u.doAction)(o);else{var c=Object(m.addQueryArgs)("/checkout/".concat(r),f()({},!i&&{redirect_to:"/home/".concat(r)}));_o(c)}};lo="a8c-editor-site-launch",uo={render:function(){var e,t=Object(s.useSelect)((function(e){return e(i).getState()})).isSidebarOpen,n=Object(s.useDispatch)(i),r=n.closeSidebar,c=n.setSidebarFullscreen,l=n.unsetSidebarFullscreen;return a.useEffect((function(){window.innerWidth<782?c():l()}),[t,c,l]),a.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";Object(u.hasAction)(e)&&Object(u.doAction)(e,{hidden:t})}),[t]),t?Object(o.createElement)(O,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},Object(o.createElement)(h.Provider,{value:{siteId:window._currentSiteId,flow:_t,redirectTo:_o,openCheckout:Eo}},Object(o.createElement)(Oo,{onClose:r}))):null}},Object(l.registerPlugin)(lo,uo);var jo=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(L.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));function So(){return(So=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function wo(e){return"/"===e.charAt(0)}function xo(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var Co=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&wo(e),a=t&&wo(t),c=o||a;if(e&&wo(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,u=i.length;u>=0;u--){var d=i[u];"."===d?xo(i,u):".."===d?(xo(i,u),l++):l&&(xo(i,u),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&wo(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function ko(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var No=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=ko(t),i=ko(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},Po="Invariant failed";var Ao=function(e,t){if(!e)throw new Error(Po)};function To(e){return"/"===e.charAt(0)?e:"/"+e}function Lo(e){return"/"===e.charAt(0)?e.substr(1):e}function Do(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Io(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Ro(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Fo(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=So({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Co(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Mo(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Bo=!("undefined"==typeof window||!window.document||!window.document.createElement);function Uo(e,t){t(window.confirm(e))}var Vo="popstate",zo="hashchange";function Ho(){try{return window.history.state||{}}catch(e){return{}}}function qo(e){void 0===e&&(e={}),Bo||Ao(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,s=o.getUserConfirmation,l=void 0===s?Uo:s,u=o.keyLength,d=void 0===u?6:u,f=e.basename?Io(To(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return f&&(o=Do(o,f)),Fo(o,r,n)}function p(){return Math.random().toString(36).substr(2,d)}var h=Mo();function b(e){So(k,e),k.length=n.length,h.notifyListeners(k.location,k.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||O(m(e.state))}function v(){O(m(Ho()))}var y=!1;function O(e){if(y)y=!1,b();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?b({action:"POP",location:e}):function(e){var t=k.location,n=E.indexOf(t.key);-1===n&&(n=0);var r=E.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(y=!0,S(i))}(e)}))}}var _=m(Ho()),E=[_.key];function j(e){return f+Ro(e)}function S(e){n.go(e)}var w=0;function x(e){1===(w+=e)&&1===e?(window.addEventListener(Vo,g),i&&window.addEventListener(zo,v)):0===w&&(window.removeEventListener(Vo,g),i&&window.removeEventListener(zo,v))}var C=!1;var k={length:n.length,action:"POP",location:_,createHref:j,push:function(e,t){var i="PUSH",o=Fo(e,t,p(),k.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=j(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var l=E.indexOf(k.location.key),u=E.slice(0,l+1);u.push(o.key),E=u,b({action:i,location:o})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",o=Fo(e,t,p(),k.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=j(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var l=E.indexOf(k.location.key);-1!==l&&(E[l]=o.key),b({action:i,location:o})}else window.location.replace(t)}}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return C||(x(1),C=!0),function(){return C&&(C=!1,x(-1)),t()}},listen:function(e){var t=h.appendListener(e);return x(1),function(){x(-1),t()}}};return k}var Wo="hashchange",$o={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Lo(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Lo,decodePath:To},slash:{encodePath:To,decodePath:To}};function Go(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Yo(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Ko(e){window.location.replace(Go(window.location.href)+"#"+e)}function Xo(e){void 0===e&&(e={}),Bo||Ao(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?Uo:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?Io(To(e.basename)):"",s=$o[a],l=s.encodePath,u=s.decodePath;function d(){var e=u(Yo());return c&&(e=Do(e,c)),Fo(e)}var f=Mo();function m(e){So(w,e),w.length=t.length,f.notifyListeners(w.location,w.action)}var p=!1,h=null;function b(){var e,t,n=Yo(),r=l(n);if(n!==r)Ko(r);else{var o=d(),a=w.location;if(!p&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(h===Ro(o))return;h=null,function(e){if(p)p=!1,m();else{var t="POP";f.confirmTransitionTo(e,t,i,(function(n){n?m({action:t,location:e}):function(e){var t=w.location,n=O.lastIndexOf(Ro(t));-1===n&&(n=0);var r=O.lastIndexOf(Ro(e));-1===r&&(r=0);var i=n-r;i&&(p=!0,_(i))}(e)}))}}(o)}}var g=Yo(),v=l(g);g!==v&&Ko(v);var y=d(),O=[Ro(y)];function _(e){t.go(e)}var E=0;function j(e){1===(E+=e)&&1===e?window.addEventListener(Wo,b):0===E&&window.removeEventListener(Wo,b)}var S=!1;var w={length:t.length,action:"POP",location:y,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Go(window.location.href)),n+"#"+l(c+Ro(e))},push:function(e,t){var n="PUSH",r=Fo(e,void 0,void 0,w.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=Ro(r),i=l(c+t);if(Yo()!==i){h=t,function(e){window.location.hash=e}(i);var o=O.lastIndexOf(Ro(w.location)),a=O.slice(0,o+1);a.push(t),O=a,m({action:n,location:r})}else m()}}))},replace:function(e,t){var n="REPLACE",r=Fo(e,void 0,void 0,w.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=Ro(r),i=l(c+t);Yo()!==i&&(h=t,Ko(i));var o=O.indexOf(Ro(w.location));-1!==o&&(O[o]=t),m({action:n,location:r})}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=f.setPrompt(e);return S||(j(1),S=!0),function(){return S&&(S=!1,j(-1)),t()}},listen:function(e){var t=f.appendListener(e);return j(1),function(){j(-1),t()}}};return w}function Qo(e,t,n){return Math.min(Math.max(e,t),n)}function Jo(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,s=void 0===c?6:c,l=Mo();function u(e){So(b,e),b.length=b.entries.length,l.notifyListeners(b.location,b.action)}function d(){return Math.random().toString(36).substr(2,s)}var f=Qo(a,0,i.length-1),m=i.map((function(e){return Fo(e,void 0,"string"==typeof e?d():e.key||d())})),p=Ro;function h(e){var t=Qo(b.index+e,0,b.entries.length-1),r=b.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var b={length:m.length,action:"POP",location:m[f],index:f,entries:m,createHref:p,push:function(e,t){var r="PUSH",i=Fo(e,t,d(),b.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=Fo(e,t,d(),b.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,u({action:r,location:i}))}))},go:h,goBack:function(){h(-1)},goForward:function(){h(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return b}var Zo=n(83),ea=n.n(Zo),ta=1073741823;function na(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var ra=c.a.createContext||function(e,t){var n,r,i="__create-react-context-"+ea()()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=na(t.props.value),t}nn()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):ta,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(a.Component);o.childContextTypes=((n={})[i]=Hn.a.object.isRequired,n);var c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}nn()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?ta:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?ta:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((r={})[i]=Hn.a.object,r),{Provider:o,Consumer:c}},ia=n(54),oa=n.n(ia),aa=(n(69),function(e){var t=ra();return t.displayName=e,t}("Router")),ca=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}$t(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return c.a.createElement(aa.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(c.a.Component);var sa=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Jo(t.props),t}return $t(t,e),t.prototype.render=function(){return c.a.createElement(ca,{history:this.history,children:this.props.children})},t}(c.a.Component);var la=function(e){function t(){return e.apply(this,arguments)||this}$t(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(c.a.Component);var ua={},da=0;function fa(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(ua[e])return ua[e];var t=oa.a.compile(e);return da<1e4&&(ua[e]=t,da++),t}(e)(t,{pretty:!0})}function ma(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return c.a.createElement(aa.Consumer,null,(function(e){e||Ao(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,s=Fo(t?"string"==typeof n?fa(n,t.params):So({},n,{pathname:fa(n.pathname,t.params)}):n);return o?(a(s),null):c.a.createElement(la,{onMount:function(){a(s)},onUpdate:function(e,t){var n,r,i=Fo(t.to);n=i,r=So({},s,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&No(n.state,r.state)||a(s)},to:n})}))}var pa={},ha=0;function ba(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=pa[n]||(pa[n]={});if(r[e])return r[e];var i=[],o={regexp:oa()(e,i,t),keys:i};return ha<1e4&&(r[e]=o,ha++),o}(n,{end:o,strict:c,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var ga=function(e){function t(){return e.apply(this,arguments)||this}return $t(t,e),t.prototype.render=function(){var e=this;return c.a.createElement(aa.Consumer,null,(function(t){t||Ao(!1);var n=e.props.location||t.location,r=So({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?ba(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,s=i.render;return Array.isArray(o)&&0===o.length&&(o=null),c.a.createElement(aa.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?c.a.createElement(a,r):s?s(r):null:"function"==typeof o?o(r):null)}))},t}(c.a.Component);function va(e){return"/"===e.charAt(0)?e:"/"+e}function ya(e,t){if(!e)return t;var n=va(e);return 0!==t.pathname.indexOf(n)?t:So({},t,{pathname:t.pathname.substr(n.length)})}function Oa(e){return"string"==typeof e?e:Ro(e)}function _a(e){return function(){Ao(!1)}}function Ea(){}c.a.Component;var ja=function(e){function t(){return e.apply(this,arguments)||this}return $t(t,e),t.prototype.render=function(){var e=this;return c.a.createElement(aa.Consumer,null,(function(t){t||Ao(!1);var n,r,i=e.props.location||t.location;return c.a.Children.forEach(e.props.children,(function(e){if(null==r&&c.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?ba(i.pathname,So({},e.props,{path:o})):t.match}})),r?c.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(c.a.Component);var Sa=c.a.useContext;function wa(){return Sa(aa).history}function xa(){return Sa(aa).location}var Ca,ka,Na=function(e){var t=e.selector,n=xa().pathname;return a.useEffect((function(){var e;t?null===(e=document.querySelector(t))||void 0===e||e.scrollTo(0,0):window.scrollTo(0,0)}),[t,n]),null};(ka=Ca||(Ca={})).Summary="/",ka.PlanDetails="/plan-details",ka.DomainDetails="/domain-details",ka.Success="/success";c.a.Component;c.a.Component;var Pa=function(e,t){return"function"==typeof e?e(t):e},Aa=function(e,t){return"string"==typeof e?Fo(e,null,null,t):e},Ta=function(e){return e},La=c.a.forwardRef;void 0===La&&(La=Ta);var Da=La((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=N(e,["innerRef","navigate","onClick"]),a=o.target,s=So({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=Ta!==La&&t||n,c.a.createElement("a",s)}));var Ia=La((function(e,t){var n=e.component,r=void 0===n?Da:n,i=e.replace,o=e.to,a=e.innerRef,s=N(e,["component","replace","to","innerRef"]);return c.a.createElement(aa.Consumer,null,(function(e){e||Ao(!1);var n=e.history,l=Aa(Pa(o,e.location),e.location),u=l?n.createHref(l):"",d=So({},s,{href:u,navigate:function(){var t=Pa(o,e.location);(i?n.replace:n.push)(t)}});return Ta!==La?d.ref=t||a:d.innerRef=a,c.a.createElement(r,d)}))})),Ra=function(e){return e},Fa=c.a.forwardRef;void 0===Fa&&(Fa=Ra);Fa((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,s=e.className,l=e.exact,u=e.isActive,d=e.location,f=e.strict,m=e.style,p=e.to,h=e.innerRef,b=N(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return c.a.createElement(aa.Consumer,null,(function(e){e||Ao(!1);var n=d||e.location,i=Aa(Pa(p,n),n),g=i.pathname,v=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),y=v?ba(n.pathname,{path:v,exact:l,strict:f}):null,O=!!(u?u(y,n):y),_=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(s,o):s,E=O?So({},m,{},a):m,j=So({"aria-current":O&&r||null,className:_,style:E,to:i},b);return Ra!==Fa?j.ref=t||h:j.innerRef=h,c.a.createElement(Ia,j)}))}));function Ma(){var e=function(){var e=a.useContext(h).siteId,t=Object(s.useDispatch)(F).getCart,n=a.useState(void 0),r=j()(n,2),i=r[0],o=r[1];return a.useEffect((function(){z()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return K(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.product_slug;return Object(s.useSelect)((function(e){return t?e(M).getPlanBySlug(t):void 0}))}n(148);var Ba=function(e){var t=e.label,n=e.badgeText;return Object(o.createElement)("div",{className:"focused-launch-summary-item__leading-side"},Object(o.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},t),n?Object(o.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},n):null)},Ua=function(e){var t=e.nodeType,n=e.children;return Object(o.createElement)("div",{className:w()({"focused-launch-summary-item__warning-note":"WARNING"===t,"focused-launch-summary-item__price-cost":"PRICE"===t})},n)},Va=function(e){var t=e.children,n=e.isSelected,r=void 0!==n&&n,i=e.readOnly,a=void 0!==i&&i,c=e.isLoading,s=re()(e,["children","isSelected","readOnly","isLoading"]);return Object(o.createElement)("button",g()({},s,{disabled:a,className:w()("focused-launch-summary__item",{"is-selected":r,"is-readonly":a,"is-loading":c})}),t[0],t[1])},za="focused-launch",Ha=(n(147),Object(o.createElement)(C.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(C.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}))),qa=Object(o.createElement)(C.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},Object(o.createElement)(C.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),Object(o.createElement)(C.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),Object(o.createElement)(C.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),Wa=function(e){var t=e.input,n=e.commentary,r=e.highlighted;return Object(o.createElement)("div",{className:w()("focused-launch-summary__step",{highlighted:r})},Object(o.createElement)("div",{className:"focused-launch-summary__data-input"},Object(o.createElement)("div",{className:"focused-launch-summary__section"},t)),Object(o.createElement)("div",{className:"focused-launch-summary__side-commentary"},n))},$a=function(e){var t=e.stepIndex,n=e.value,r=e.onChange,i=e.onBlur;return Object(o.createElement)(Wa,{highlighted:!0,input:Object(o.createElement)(C.TextControl,{className:"focused-launch-summary__input",label:Object(o.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),Object(x.__)("Name your site","full-site-editing")),value:n,onChange:r,onBlur:i,autoFocus:!0})})},Ga=function(e){var t=e.stepIndex,n=e.existingSubdomain,r=e.currentDomain,i=e.initialDomainSearch,a=e.hasPaidDomain,c=e.onDomainSelect,s=e.onExistingSubdomainSelect,l=e.isLoading,u=e.highlighted,d=_();return Object(o.createElement)(Wa,{highlighted:!!u,input:a?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},Object(x.__)("Your domain","full-site-editing"),Object(o.createElement)(C.Tooltip,{position:"top center",text:Object(x.__)("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},Object(o.createElement)("span",null,qa)),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},Object(o.createElement)(fe,{icon:Ha}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:Object(o.createElement)("strong",null)})))),Object(o.createElement)(Va,{readOnly:!0},Object(o.createElement)(Ba,{label:(null==r?void 0:r.domain_name)||""}),Object(o.createElement)(Ua,{nodeType:"PRICE"},Object(o.createElement)(fe,{icon:jt,size:18})," ",Object(x.__)("Purchased","full-site-editing")))):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ht,{header:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),Object(x.__)("Confirm your domain","full-site-editing")),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},Object(o.createElement)(fe,{icon:Ha}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})))),areDependenciesLoading:l,existingSubdomain:n,currentDomain:r,onDomainSelect:c,onExistingSubdomainSelect:s,initialDomainSearch:i,showSearchField:!1,analyticsFlowId:za,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:"individual-item",locale:d,orderSubDomainsLast:!0}),Object(o.createElement)(Ia,{to:Ca.DomainDetails,className:"focused-launch-summary__details-link"},Object(x.__)("View all domains","full-site-editing"))),commentary:Object(o.createElement)(o.Fragment,null,a?Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:Object(o.createElement)("strong",null)})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})),Object(o.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(fe,{icon:jt}),Object(x.__)("Stand out with a unique domain","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(fe,{icon:jt}),Object(x.__)("Easy to remember and easy to share","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(fe,{icon:jt}),Object(x.__)("Builds brand recognition and trust","full-site-editing")))))})},Ya=function(e){var t,n,r=e.stepIndex,i=e.highlighted,c=e.hasPaidPlan,l=void 0!==c&&c,u=e.hasPaidDomain,d=void 0!==u&&u,f=e.selectedPaidDomain,m=void 0!==f&&f,p=Object(s.useDispatch)(U).setPlan,h=Object(s.useSelect)((function(e){return e(U).getSelectedPlan()})),b=Object(s.useSelect)((function(e){return e(U).getPaidPlan()})),g=(n=_(),{defaultPaidPlan:Object(s.useSelect)((function(e){return e(M).getDefaultPaidPlan(n)})),defaultFreePlan:Object(s.useSelect)((function(e){return e(M).getDefaultFreePlan(n)})),planPrices:Object(s.useSelect)((function(e){return e(M).getPrices("")}))}),v=g.defaultPaidPlan,y=g.defaultFreePlan,O=g.planPrices,E=a.useRef(b),j=function(e){return e&&e.storeSlug===(null==h?void 0:h.storeSlug)},S=Q().sitePlan,w=(null==E?void 0:E.current)&&v&&(null==E||null===(t=E.current)||void 0===t?void 0:t.storeSlug)!==(null==v?void 0:v.storeSlug)?null==E?void 0:E.current:void 0,k=[v,w&&E.current,y];return Object(o.createElement)(Wa,{highlighted:!!i,input:l?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},Object(x.__)("Your plan","full-site-editing"),Object(o.createElement)(C.Tooltip,{position:"top center",text:Object(x.__)("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},Object(o.createElement)("span",null,qa)),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},Object(o.createElement)(fe,{icon:Ha}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})))),Object(o.createElement)("div",null,Object(o.createElement)(Va,{readOnly:!0},Object(o.createElement)(Ba,{label:Object(x.sprintf)(Object(x.__)("%s Plan","full-site-editing"),null==S?void 0:S.product_name_short)}),Object(o.createElement)(Ua,{nodeType:"PRICE"},Object(o.createElement)(fe,{icon:jt,size:18})," ",Object(x.__)("Purchased","full-site-editing"))))):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("label",{className:"focused-launch-summary__label"},r&&"".concat(r,". "),Object(x.__)("Confirm your plan","full-site-editing")),Object(o.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},Object(o.createElement)(fe,{icon:Ha}),Object(o.createElement)("span",null,Object(o.createInterpolateElement)(Object(x.__)("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)}))),Object(o.createElement)("div",null,k.map((function(e){var t;return e&&Object(o.createElement)(Va,{key:e.storeSlug,isLoading:!y||!v,onClick:function(){return p(e)},isSelected:j(e),readOnly:e.isFree&&(d||m)},Object(o.createElement)(Ba,{label:Object(x.sprintf)(Object(x.__)("%s Plan","full-site-editing"),null!==(t=e.title)&&void 0!==t?t:""),badgeText:e.isPopular?Object(x.__)("Popular","full-site-editing"):""}),e.isFree?Object(o.createElement)(Ua,{nodeType:d||m?"WARNING":"PRICE"},d||m?Object(x.__)("Not available with your domain selection","full-site-editing"):Object(x.__)("Free","full-site-editing")):Object(o.createElement)(Ua,{nodeType:"PRICE"},Object(o.createElement)("span",null,O[e.storeSlug]),Object(o.createElement)("span",null,Object(x.__)("/mo","full-site-editing"))))}))),Object(o.createElement)(Ia,{to:Ca.PlanDetails,className:"focused-launch-summary__details-link"},Object(x.__)("View all plans","full-site-editing"))),commentary:l?Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},Object(o.createInterpolateElement)(Object(x.__)("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:Object(o.createElement)("strong",null)})),Object(o.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(fe,{icon:jt}),Object(x.__)("Advanced tools and customization","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(fe,{icon:jt}),Object(x.__)("Unlimited premium themes","full-site-editing")),Object(o.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},Object(o.createElement)(fe,{icon:jt}),Object(x.__)("Accept payments","full-site-editing"))))})},Ka=function(){var e=Object(s.useSelect)((function(e){var t=e(U).getState(),n=t.isSiteTitleStepVisible,r=t.domain,i=t.plan;return[e(U).hasSelectedDomain(),n,r,i]})),t=j()(e,4),n=t[0],r=t[1],i=t[2],c=t[3],l=Object(s.useDispatch)(F).launchSite,u=Object(s.useDispatch)(U),d=u.setModalDismissible,f=u.showModalTitle,m=u.showSiteTitleStep,p=se(),b=p.title,g=p.updateTitle,v=p.saveTitle,y=gt(),O=y.siteSubdomain,_=y.hasPaidDomain,E=yt(),S=E.onDomainSelect,w=E.onExistingSubdomainSelect,C=E.currentDomain,k=Ot(),N=k.domainSearch,P=k.isLoading,A=Q().isPaidPlan,T=a.useContext(h),L=T.siteId,D=T.redirectTo,I=X().goToCheckout;a.useEffect((function(){d(),f()}),[d,f]),a.useEffect((function(){r||W(b)||m()}),[b,m,r]);var R=!!n||W(b),M=!!n||!!c,B=[],V=[];r&&V.push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return Object(o.createElement)($a,{stepIndex:n?t:void 0,key:t,value:b||"",onChange:g,onBlur:v})})),(_?B:V).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return Object(o.createElement)(Ga,{highlighted:R,stepIndex:n?t:void 0,key:t,existingSubdomain:bt(null==O?void 0:O.domain),currentDomain:C,initialDomainSearch:N,hasPaidDomain:_,isLoading:P,onDomainSelect:S,onExistingSubdomainSelect:w})})),(A?B:V).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return Object(o.createElement)(Ya,{highlighted:M,hasPaidPlan:A,selectedPaidDomain:i&&!i.is_free,hasPaidDomain:_,stepIndex:n?t:void 0,key:t})}));var z=b&&(_||n)&&(A||c);return Object(o.createElement)("div",{className:"focused-launch-container"},Object(o.createElement)("div",{className:"focused-launch-summary__section"},Object(o.createElement)(ee,{tagName:"h2"},_&&A?Object(x.__)("You're ready to launch","full-site-editing"):Object(x.__)("You're almost there","full-site-editing")),Object(o.createElement)(te,{tagName:"p",className:"focused-launch-summary__caption"},_&&A?Object(x.__)("You're good to go! Launch your site and share your site address.","full-site-editing"):Object(x.__)("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing"))),B.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:!1})})),V.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:V.length>1})})),Object(o.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},Object(o.createElement)(ie,{className:"focused-launch-summary__launch-action-bar"},Object(o.createElement)(ae,{className:"focused-launch-summary__launch-button",disabled:!z,onClick:function(){l(L),(i||c&&!(null==c?void 0:c.isFree))&&I()}},Object(x.__)("Launch your site","full-site-editing"))),Object(o.createElement)("div",{className:"focused-launch-summary__ask-for-help"},Object(o.createElement)("p",null,Object(x.__)("Questions? Our experts can assist.","full-site-editing")),Object(o.createElement)("a",{href:"/help",onClick:function(e){var t=e.target.getAttribute("href");t&&(D(t),e.preventDefault())}},Object(x.__)("Ask a Happiness Engineer","full-site-editing")))))},Xa=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Qa=(n(144),function(e){var t=e.className,n=re()(e,["className"]);return Object(o.createElement)(oe,g()({},n,{className:w()("go-back-button__focused-launch",t)}),Object(o.createElement)(fe,{icon:Xa}),Object(x.__)("Go back","full-site-editing"))}),Ja=(n(143),"domain_step"),Za=function(){var e=_(),t=gt().siteSubdomain,n=Ot(),r=n.domainSearch,i=n.setDomainSearch,a=yt(),c=a.onDomainSelect,s=a.onExistingSubdomainSelect,l=a.currentDomain,u=wa(),d=function(){u.goBack()};return Object(o.createElement)("div",{className:"focused-launch-container"},Object(o.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},Object(o.createElement)(Qa,{onClick:d})),Object(o.createElement)("div",{className:"focused-launch-details__header"},Object(o.createElement)(ee,null,Object(x.__)("Choose a domain","full-site-editing")),Object(o.createElement)(te,null,Object(x.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(o.createElement)("div",{className:"focused-launch-details__body"},Object(o.createElement)(ht,{initialDomainSearch:r,onSetDomainSearch:i,onDomainSearchBlur:function(e){De("calypso_newsite_domain_search_blur",{flow:za,query:e,where:Ja})},currentDomain:l,existingSubdomain:bt(null==t?void 0:t.domain),onDomainSelect:function(e){c(e),d()},onExistingSubdomainSelect:s,analyticsFlowId:za,analyticsUiAlgo:Ja,segregateFreeAndPaid:!0,locale:e,itemType:Qe})))},ec=(n(145),function(){var e=_(),t=Object(s.useSelect)((function(e){return e(U).getSelectedDomain()})),n=Object(s.useSelect)((function(e){return e(U).getSelectedPlan()})),r=wa(),i=Object(s.useDispatch)(U).updatePlan,a=t&&!t.is_free,c=function(){r.goBack()};return Object(o.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},Object(o.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},Object(o.createElement)(Qa,{onClick:c})),Object(o.createElement)("div",{className:"focused-launch-details__header"},Object(o.createElement)(ee,{tagName:"h2"},Object(x.__)("Select a plan","full-site-editing")),Object(o.createElement)(te,{tagName:"h3"},Object(x.__)("There's no risk, you can cancel for a full refund within 30 days.","full-site-editing"))),Object(o.createElement)("div",{className:"focused-launch-details__body"},Object(o.createElement)(qt,{currentDomain:t,onPlanSelect:function(e){i(e),c()},currentPlan:n,onPickDomainClick:c,customTagLines:{free_plan:Object(x.__)("Best for getting started","full-site-editing"),"business-bundle":Object(x.__)("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:a?Z()({},R.Plans.PLAN_FREE,Object(x.__)("Not available with custom domain","full-site-editing")):void 0,CTAVariation:"FULL_WIDTH",locale:e})))}),tc=Object(o.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(L.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),nc=function(e){var t=e.className;return Object(o.createElement)(C.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:t},Object(o.createElement)(C.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),Object(o.createElement)(C.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),Object(o.createElement)(C.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),Object(o.createElement)(C.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),Object(o.createElement)(C.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),Object(o.createElement)(C.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),Object(o.createElement)(C.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),Object(o.createElement)(C.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),Object(o.createElement)(C.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),Object(o.createElement)(C.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),Object(o.createElement)(C.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),Object(o.createElement)(C.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),Object(o.createElement)(C.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),Object(o.createElement)(C.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#09A884"}),Object(o.createElement)(C.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},rc=(n(146),function(){var e=a.useContext(h),t=e.redirectTo,n=e.siteId,r=Object(s.useSelect)((function(e){return e(F).isSiteLaunching(n)})),i=Object(s.useDispatch)(U),c=i.unsetModalDismissible,l=i.hideModalTitle,u=i.closeFocusedLaunch,d=i.disablePersistentSuccessView,f=gt(),m=f.siteSubdomain,p=f.sitePrimaryDomain,b=a.useState(""),g=j()(b,2),v=g[0],y=g[1],O=a.useState(!1),_=j()(O,2),E=_[0],S=_[1];a.useEffect((function(){y("https://".concat(null==p?void 0:p.domain))}),[p]),a.useEffect((function(){c(),l()}),[c,l]);return Object(o.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},Object(o.createElement)(nc,{className:"focused-launch-success__confetti"}),Object(o.createElement)(ee,{tagName:"h2"},Object(x.__)("Hooray!","full-site-editing")),Object(o.createElement)(te,{tagName:"h3"},r?Object(x.__)("Your site will be live shortly.","__i18n_text_domain__"):Object(x.__)("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing")),!r&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"focused-launch-success__url-wrapper"},Object(o.createElement)("span",{className:"focused-launch-success__url-field"},v),Object(o.createElement)("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":Object(x.__)("Visit site","full-site-editing")},Object(o.createElement)(fe,{icon:tc,size:16})),Object(o.createElement)(C.ClipboardButton,{text:v,onCopy:function(){return S(!0)},onFinishCopy:function(){return S(!1)},className:"focused-launch-success__url-copy-button"},E?Object(x.__)("Copied!","full-site-editing"):Object(x.__)("Copy Link","full-site-editing"))),Object(o.createElement)(ae,{onClick:function(){d(),u()},className:"focused-launch-success__continue-editing-button"},Object(x.__)("Continue Editing","full-site-editing")),Object(o.createElement)(oe,{onClick:function(){d(),t("/home/".concat(null==m?void 0:m.domain))}},Object(x.__)("Back home","full-site-editing"))))}),ic=(n(141),function(){var e=Q(),t=e.isSiteLaunched,n=e.isSiteLaunching,r=Object(s.useDispatch)(U).enablePersistentSuccessView,i=Object(s.useSelect)((function(e){var t=e(U).getState(),n=t.plan,r=t.shouldDisplaySuccessView;return[e(U).hasSelectedDomain(),n,r]})),c=j()(i,3),l=c[0],u=c[1],d=c[2];a.useEffect((function(){t&&r()}),[t,r]);var f=vt(),m=Object(s.useDispatch)(U).setDomain;a.useEffect((function(){!l&&f&&m(f)}),[l,f,m]);var p=Ma(),h=Object(s.useDispatch)(U).setPlan;return a.useEffect((function(){!u&&p&&h(p)}),[u,p,h]),Object(o.createElement)(sa,{initialEntries:[Ca.Summary,Ca.Success],initialIndex:d?1:0},Object(o.createElement)(Na,{selector:".components-modal__content"}),(t||n)&&Object(o.createElement)(ma,{to:Ca.Success}),Object(o.createElement)(ja,null,Object(o.createElement)(ga,{path:Ca.DomainDetails},Object(o.createElement)(Za,null)),Object(o.createElement)(ga,{path:Ca.PlanDetails},Object(o.createElement)(ec,null)),Object(o.createElement)(ga,{path:Ca.Success},Object(o.createElement)(rc,null)),Object(o.createElement)(ga,{path:Ca.Summary},Object(o.createElement)(Ka,null))))}),oc=(n(140),function(e){var t=e.locale,n=void 0===t?"en":t,r=e.siteId,i=e.openCheckout,a=e.redirectTo,c=Object(s.useSelect)((function(e){return e(U).getState()})),l=c.isModalDismissible,u=c.isModalTitleVisible,d=c.shouldDisplaySuccessView,f=Object(s.useDispatch)(U).closeFocusedLaunch;return Object(o.createElement)(O,{localeSlug:n},Object(o.createElement)(C.Modal,{open:!0,className:w()("launch__focused-modal",{"launch__focused-modal--hide-title":!u}),overlayClassName:w()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":d}),bodyOpenClassName:"has-focused-launch-modal",onRequestClose:f,title:Object(x.__)("Complete setup","full-site-editing"),icon:Object(o.createElement)(fe,{icon:jo,size:36}),isDismissible:l,shouldCloseOnEsc:l,shouldCloseOnClickOutside:l},Object(o.createElement)("div",{className:"launch__focused-modal-body"},Object(o.createElement)(h.Provider,{value:{siteId:r,redirectTo:a,openCheckout:i,flow:za}},Object(o.createElement)(ic,null)))))});!function(e,t){Object(l.registerPlugin)(e,t)}("a8c-editor-editor-focused-launch",{render:function(){var e,t=window._currentSiteId,n=Object(s.useSelect)((function(e){var n=e(i).getState();return[n.isFocusedLaunchOpen,n.shouldDisplaySuccessView,e(r).isSiteLaunched(t)]})),c=j()(n,3),l=c[0],u=c[1],d=c[2];return a.useEffect((function(){d&&document.body.classList.add("is-focused-launch-complete")}),[d]),l||u?Object(o.createElement)(oc,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:Eo,redirectTo:_o,siteId:t}):null}})},,,,function(e,t,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var s=function(e,t){var n=t||0,r=a;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};t.a=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;a<16;++a)t[r+a]=i[a];return t||s(i)}}]));
|
full-site-editing-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
-
* Version: 2.8.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -35,7 +35,7 @@ namespace A8C\FSE;
|
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
-
define( 'PLUGIN_VERSION', '2.8.
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
@@ -269,6 +269,21 @@ function load_block_patterns_from_api( $current_screen ) {
|
|
269 |
}
|
270 |
add_action( 'current_screen', __NAMESPACE__ . '\load_block_patterns_from_api' );
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
/**
|
273 |
* Load Premium Content Block
|
274 |
*/
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 2.8.14
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
+
define( 'PLUGIN_VERSION', '2.8.14' );
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
269 |
}
|
270 |
add_action( 'current_screen', __NAMESPACE__ . '\load_block_patterns_from_api' );
|
271 |
|
272 |
+
/**
|
273 |
+
* Load WPCOM Block Patterns Modifications
|
274 |
+
*
|
275 |
+
* This is responsible for modifying how block patterns behave in the editor,
|
276 |
+
* including adding support for premium block patterns. The patterns themselves
|
277 |
+
* are loaded via load_block_patterns_from_api.
|
278 |
+
*/
|
279 |
+
function load_wpcom_block_patterns_modifications() {
|
280 |
+
if ( apply_filters( 'a8c_enable_block_patterns_modifications', false ) ) {
|
281 |
+
require_once __DIR__ . '/block-patterns/class-block-patterns-modifications.php';
|
282 |
+
}
|
283 |
+
}
|
284 |
+
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wpcom_block_patterns_modifications' );
|
285 |
+
|
286 |
+
|
287 |
/**
|
288 |
* Load Premium Content Block
|
289 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: alexislloyd, allancole, automattic, bartkalisz, codebykat, copons,
|
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 2.8.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -40,6 +40,10 @@ This plugin is experimental, so we don't provide any support for it outside of w
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
43 |
= 2.8.13 =
|
44 |
* Removes unnecessary site editor implementation from the plugin. (https://github.com/Automattic/wp-calypso/pull/47301)
|
45 |
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 2.8.14
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 2.8.14 =
|
44 |
+
* Premium Patterns: add pink dot to indicate a premium pattern in the inserter. (https://github.com/Automattic/wp-calypso/pull/47896)
|
45 |
+
* Coming Soon: add coming soon wpcom localized url filter. (https://github.com/Automattic/wp-calypso/pull/48076)
|
46 |
+
|
47 |
= 2.8.13 =
|
48 |
* Removes unnecessary site editor implementation from the plugin. (https://github.com/Automattic/wp-calypso/pull/47301)
|
49 |
|