Jetpack by WordPress.com - Version 10.2.1

Version Description

Download this release

Release Info

Developer jeherve
Plugin Icon 128x128 Jetpack by WordPress.com
Version 10.2.1
Comparing to
See all releases

Code changes from version 10.2 to 10.2.1

CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
 
3
  ### This is a list detailing changes for all Jetpack releases.
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ## 10.2 - 2021-10-05
6
  ### Enhancements
7
  - Contact Form: add filter to allow customizing email headers.
2
 
3
  ### This is a list detailing changes for all Jetpack releases.
4
 
5
+ ## 10.2.1 - 2021-10-19
6
+ ### Enhancements
7
+ - VideoPress: improve the display of upload errors in the Media Library and the block editor.
8
+
9
+ ### Improved compatibility
10
+ - VideoPress: avoid video upload issues when other plugins modify WordPress' API fetching features in the block editor.
11
+
12
+ ### Bug fixes
13
+ - Dashboard: fix the connection flow for non-admin users.
14
+ - Instant Search: fix translations not available for minified Instant Search Modal assets.
15
+
16
+ ### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
17
+ - Init the identity-crisis package using the Config package
18
+ - Update Sync Unit Tests to reset settings modified during tests.
19
+
20
  ## 10.2 - 2021-10-05
21
  ### Enhancements
22
  - Contact Form: add filter to allow customizing email headers.
_inc/blocks/editor-beta.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-annotations', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => '9a25898d8aba125546f6aec6516a7a13');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-annotations', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => 'd396b503d50ccf600db25644231b3483');
_inc/blocks/editor-beta.min.css CHANGED
@@ -1 +1 @@
1
- .jetpack-gutenberg-social-icon{fill:#757575}.jetpack-gutenberg-social-icon.is-facebook{fill:#39579a}.jetpack-gutenberg-social-icon.is-twitter{fill:#55acee}.jetpack-gutenberg-social-icon.is-linkedin{fill:#0976b4}.jetpack-gutenberg-social-icon.is-tumblr{fill:#35465c}.jetpack-gutenberg-social-icon.is-google{fill:var(--color-gplus)}@keyframes jetpack-external-media-loading-fade{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.jetpack-external-media-browser--visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.modal-open .jetpack-external-media-button-menu__options{display:none}.jetpack-external-media-browser .is-error{margin-bottom:1em;margin-left:0;margin-right:0}.jetpack-external-media-browser .components-placeholder{background-color:transparent}.jetpack-external-media-browser .components-modal__content{overflow:auto;padding-bottom:0;width:100%}@media(min-width:600px){.jetpack-external-media-browser .components-modal__content{width:90vw;height:90vh}}.jetpack-external-media-browser--is-copying{pointer-events:none}.jetpack-external-media-browser{background:#fff;display:flex;flex-direction:column;align-items:flex-start}.jetpack-external-media-browser .jetpack-external-media-browser__media{width:100%}.jetpack-external-media-browser .jetpack-external-media-browser__media__item{height:0;width:50%;padding-top:50%;display:inline-flex;position:relative;border:0;background:transparent}.jetpack-external-media-browser .jetpack-external-media-browser__media__item img{display:block;position:absolute;top:8px;left:8px;width:calc(100% - 16px);height:calc(100% - 16px);-o-object-fit:contain;object-fit:contain}.jetpack-external-media-browser .jetpack-external-media-browser__media__item.is-transient img{opacity:.3}.jetpack-external-media-browser .jetpack-external-media-browser__media__copying_indicator{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;flex-direction:column;justify-content:center;align-items:center;text-align:center}.jetpack-external-media-browser .jetpack-external-media-browser__media__copying_indicator .components-spinner{margin-bottom:8px}.jetpack-external-media-browser .jetpack-external-media-browser__media__copying_indicator__label{font-size:12px}.jetpack-external-media-browser .jetpack-external-media-browser__media__folder{float:left;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;align-content:flex-start;margin-bottom:36px}.jetpack-external-media-browser .jetpack-external-media-browser__media__info{font-size:12px;font-weight:700;width:100%;display:flex;justify-content:space-between;padding:3px}.jetpack-external-media-browser .jetpack-external-media-browser__media__count{background-color:#dcdcde;padding:3px 4px;border-radius:8px;margin-bottom:auto}.jetpack-external-media-browser .jetpack-external-media-browser__media__item{border:8px solid transparent}.jetpack-external-media-browser .jetpack-external-media-browser__media__item:focus{outline:none;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color);border-radius:10px}.jetpack-external-media-browser .jetpack-external-media-browser__media__item__selected{box-shadow:inset 0 0 0 6px var(--wp-admin-theme-color);border-radius:10px}.jetpack-external-media-browser .jetpack-external-media-browser__media__item__selected:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color),inset 0 0 0 3px #fff,inset 0 0 0 6px var(--wp-admin-theme-color)}.jetpack-external-media-browser .jetpack-external-media-browser__media__placeholder{width:100px;height:100px;margin:16px;animation:jetpack-external-media-loading-fade 1.6s ease-in-out infinite;background-color:#ccc;border:0}.jetpack-external-media-browser .jetpack-external-media-browser__media__toolbar{position:fixed;position:sticky;bottom:0;left:0;width:100%;background:#fff;padding:20px 0;display:flex;justify-content:flex-end}.jetpack-external-media-browser .jetpack-external-media-browser__loadmore{clear:both;display:block;margin:24px auto 48px}@media only screen and (min-width:600px){.jetpack-external-media-browser .jetpack-external-media-browser__media__item{width:20%;padding-top:20%}}.jetpack-external-media-header__view{display:flex;align-items:flex-start;justify-content:flex-start;margin-bottom:48px;flex-direction:column}@media only screen and (min-width:600px){.jetpack-external-media-header__view{flex-direction:row;align-items:center}}.jetpack-external-media-header__view select{max-width:200px!important}.jetpack-external-media-header__view .components-base-control__field{display:flex;flex-direction:column}.jetpack-external-media-header__filter label,.jetpack-external-media-header__view label{margin-right:10px}.jetpack-external-media-header__filter .components-base-control,.jetpack-external-media-header__view .components-base-control{padding-right:8px;margin-bottom:0}.jetpack-external-media-header__filter{display:flex;flex-wrap:wrap;align-items:center;flex-grow:1;justify-content:flex-start}@media only screen and (min-width:600px){.jetpack-external-media-header__filter{border-left:1px solid #ccc;margin-left:16px;padding-left:16px}}.jetpack-external-media-header__filter .jetpack-external-media-date-filter{display:flex;flex-wrap:wrap}.jetpack-external-media-header__filter .jetpack-external-media-date-filter button{margin-top:27px;height:40px}@media only screen and (min-width:783px){.jetpack-external-media-header__filter .jetpack-external-media-date-filter button{height:30px}}.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__label{margin-bottom:3px}.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__backdrop{border-color:#e0e0e0;border-radius:3px}.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__input{height:40px;width:70px}@media only screen and (min-width:783px){.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__input{height:30px}}.jetpack-external-media-header__account{display:flex;flex-direction:column}.jetpack-external-media-header__account .jetpack-external-media-header__account-info{display:flex;margin-bottom:8px}.jetpack-external-media-header__account .jetpack-external-media-header__account-image{margin-right:8px}.jetpack-external-media-header__account .jetpack-external-media-header__account-name{height:18px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-external-media-header__account .jetpack-external-media-browser__disconnect{height:40px;margin:1px 1px 9px 0}@media only screen and (min-width:783px){.jetpack-external-media-header__account .jetpack-external-media-browser__disconnect{height:30px}}.jetpack-external-media-header__pexels{display:flex;margin-bottom:48px}.jetpack-external-media-header__pexels .components-base-control{flex:1;margin-right:12px}.jetpack-external-media-header__pexels .components-base-control__field{margin-bottom:0}.jetpack-external-media-header__pexels .components-base-control__field,.jetpack-external-media-header__pexels .components-text-control__input{height:100%}.jetpack-external-media-placeholder__open-modal{display:flex;justify-content:center;align-items:center;padding:0;position:absolute;right:0;margin-top:-48px;z-index:1}.jetpack-external-media-placeholder__open-modal .components-button{margin:0;padding:12px;background:none}.jetpack-external-media-placeholder__open-modal .components-button:before{content:none}.jetpack-external-media-placeholder__open-modal .components-button svg{display:block;fill:currentColor}.jetpack-external-media-browsing>div.components-placeholder:not(.jetpack-external-media-replacedholder){display:none}.jetpack-external-media-browser__empty{width:100%;text-align:center;padding-top:2em}.jetpack-external-media-auth{max-width:340px;margin:0 auto;text-align:center}.jetpack-external-media-auth p{margin:2em 0}.jetpack-external-media-filters{display:flex;justify-content:space-between}.components-placeholder__fieldset .components-dropdown .jetpack-external-media-button-menu,.editor-post-featured-image .components-dropdown .jetpack-external-media-button-menu{margin-right:8px;margin-bottom:1em}.editor-post-featured-image .components-dropdown{display:initial}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive>*{pointer-events:auto;-webkit-user-select:auto;user-select:auto}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive:after{content:none}.jetpack-upgrade-plan-banner.wp-block[data-align=left] .jetpack-upgrade-plan-banner__wrapper,.jetpack-upgrade-plan-banner.wp-block[data-align=right] .jetpack-upgrade-plan-banner__wrapper{max-width:580px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper{display:flex;justify-content:space-between;align-items:center;font-size:14px;height:48px;background:#000;padding:0 20px;border-radius:2px;box-shadow:inset 0 0 1px #fff}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-description,.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-title{color:#fff;margin-right:10px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__description,.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__title{margin-right:10px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button{flex-shrink:0;line-height:1;margin-left:auto;height:28px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary{background:#e34c84;color:#fff}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary:hover{background:#eb6594}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary.is-busy{background-size:100px 100%;background-image:linear-gradient(-45deg,#e34c84 28%,#ab235a 0,#ab235a 72%,#e34c84 0)}.jetpack-upgrade-plan-banner.block-editor-block-list__block{margin-top:0;margin-bottom:0}.jetpack-upgrade-plan-banner.wp-block[data-align=left],.jetpack-upgrade-plan-banner.wp-block[data-align=right]{height:48px}.jetpack-upgrade-plan-banner.wp-block[data-align=left] .jetpack-upgrade-plan-banner__wrapper,.jetpack-upgrade-plan-banner.wp-block[data-align=right] .jetpack-upgrade-plan-banner__wrapper{max-width:840px;width:100%}.jetpack-upgrade-plan__hidden{display:none}.block-editor-block-list__block.is-upgradable,.editor-styles-wrapper [data-block].is-upgradable{margin-top:0;padding-top:48px}.block-editor-block-list__layout .jetpack-upgrade-plan-banner{position:relative;top:42px;z-index:10}.block-editor-block-inspector .jetpack-upgrade-plan-banner{border-radius:0;margin:0 20px 20px}.jetpack-paid-block-symbol{display:none}.jetpack-enable-upgrade-nudge .block-editor-block-icon>svg{overflow:visible}.jetpack-enable-upgrade-nudge .jetpack-paid-block-symbol{display:block}.jetpack-enable-upgrade-nudge .components-placeholder__label .jetpack-paid-block-symbol{display:none}.paid-block-media-placeholder{width:100%}.wp-block-cover .paid-block-media-placeholder:not(:only-child){position:absolute;top:0;right:0;left:0;bottom:0}.block-editor-block-list__block.is-upgradable.is-selected.is-placeholder{padding-top:0;background-color:transparent}.block-editor-block-list__block.is-upgradable.is-selected.is-placeholder .paid-block-media-placeholder{margin-top:48px}.block-editor-block-list__layout .block-editor-block-list__block.is-upgradable:focus:after{box-shadow:none}.interface-interface-skeleton__editor{max-width:100%}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.jetpack-publicize__connections-list{list-style-type:none;margin:13px 0}.publicize-jetpack-connection-container{display:flex}.jetpack-publicize-gutenberg-social-icon{margin-right:5px}.jetpack-publicize-connection-label{flex:1;margin-right:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-publicize-connection-label .jetpack-publicize-connection-label-copy,.jetpack-publicize-connection-label .jetpack-publicize-gutenberg-social-icon{display:inline-block;vertical-align:middle}.jetpack-publicize-connection-toggle{margin-top:3px}.jetpack-publicize-notice.components-notice{margin-left:0;margin-right:0;margin-bottom:13px}.jetpack-publicize-notice .components-button{height:auto;line-height:normal;padding-top:6px;padding-bottom:6px}.jetpack-publicize-notice .components-button+.components-button{margin-top:5px}.jetpack-publicize-add-connection-wrapper{margin:15px 0}.jetpack-publicize__connections-list .components-notice{margin:5px 0 10px}h3.jetpack-publicize-twitter-options__heading{margin-top:1em}.jetpack-publicize-twitter-options__type .components-radio-control__option{display:grid;grid-template-columns:24px auto}.jetpack-publicize-twitter-options__type .components-radio-control__option input{margin-top:2px}.jetpack-publicize-twitter-options__notices .components-notice{margin-left:0;margin-right:0;padding:0 0 0 8px}.jetpack-publicize-twitter-options__notices .components-notice .components-notice__content{margin-top:8px;margin-bottom:8px}.jetpack-publicize-twitter__tweet-divider{position:absolute;width:100%;margin-top:-28px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon{margin:0 auto;display:block;background:rgba(0,0,0,.6);border-radius:12px;width:24px;height:24px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:after,.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:before{content:"";width:80px;height:1px;background:rgba(0,0,0,.6);display:block;position:absolute;margin-top:12px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:before{margin-left:-80px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:after{margin-left:24px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon>svg{fill:#fff;position:absolute;width:16px;height:16px;margin:4px}.jetpack-publicize-twitter__tweet-divider-popover{border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.6)}.jetpack-publicize-twitter__tweet-divider-popover .components-popover__content{color:rgba(0,0,0,.6);padding:8px}.modal-open .jetpack-publicize-twitter__tweet-divider-popover{display:none}.jetpack-tweetstorm .block-editor-block-list__insertion-point-inserter{justify-content:right;padding:0 8px}.annotation-text-jetpack-tweetstorm{background:rgba(0,0,0,.6);width:3px;display:inline-block;margin:1px}.annotation-text-jetpack-tweetstorm-line-break{background:rgba(0,0,0,.6);padding:0 2.5px;margin:1px}.blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before{content:"";height:calc(100% + 16px);width:4px;background:rgba(0,0,0,.6);position:absolute;left:-10px;top:-8px}.is-dark-theme .annotation-text-jetpack-tweetstorm,.is-dark-theme .blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before,.is-dark-theme .jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon,.is-dark-theme .jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:after,.is-dark-theme .jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:before{background:hsla(0,0%,100%,.6)}.annotation-text-jetpack-tweetstorm,.block-editor-block-list__block li:after,.blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before,.jetpack-publicize-twitter__tweet-divider{transition:opacity .5s;opacity:1}.jetpack-tweetstorm-is-typing .annotation-text-jetpack-tweetstorm,.jetpack-tweetstorm-is-typing .block-editor-block-list__block li:after,.jetpack-tweetstorm-is-typing .blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before,.jetpack-tweetstorm-is-typing .jetpack-publicize-twitter__tweet-divider{transition:opacity .5s;opacity:.2}.edit-post-more-menu__content .components-icon-button .jetpack-logo,.edit-post-pinned-plugins .components-icon-button .jetpack-logo{width:20px;height:20px}.edit-post-more-menu__content .components-icon-button .jetpack-logo{margin-right:4px}.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{stroke:none!important}.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle{fill:#2fb41f!important}.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{fill:#fff!important}.wp-block-jetpack-business-hours{overflow:hidden}@media(min-width:480px){.wp-block-jetpack-business-hours dd,.wp-block-jetpack-business-hours dt{display:inline-block}}.wp-block-jetpack-business-hours dt{min-width:30%;vertical-align:top}.wp-block-jetpack-business-hours dd{margin:0}@media(min-width:480px){.wp-block-jetpack-business-hours dd{max-width:calc(70% - .5em)}}.wp-block-jetpack-business-hours .components-base-control__label,.wp-block-jetpack-business-hours .components-toggle-control__label{font-size:13px}.wp-block-jetpack-business-hours .components-base-control__field{margin-bottom:0}.wp-block-jetpack-business-hours .jetpack-business-hours__item{margin-bottom:.5em}.wp-block-jetpack-business-hours .business-hours__row{display:flex;line-height:normal;margin-bottom:4px}.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add,.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__closed{margin-bottom:20px}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:44%;display:flex;align-items:start}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day .business-hours__day-name{width:60%;font-weight:700;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day .components-form-toggle{margin-right:4px;margin-top:4px}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:44%;margin:0;display:flex;align-items:center;flex-wrap:wrap}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-button{padding:0}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-base-control{display:inline-block;margin-bottom:0;width:48%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-base-control.business-hours__open{margin-right:4%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-base-control .components-base-control__label{margin-bottom:0}.wp-block-jetpack-business-hours .business-hours__remove{align-self:flex-end;margin-bottom:8px;text-align:center;width:10%}.wp-block-jetpack-business-hours .business-hours-row__add button:hover{box-shadow:none!important}.wp-block-jetpack-business-hours .business-hours__remove button{display:block;margin:0 auto}.wp-block-jetpack-business-hours .business-hours-row__add .components-button.is-default:active,.wp-block-jetpack-business-hours .business-hours-row__add .components-button.is-default:focus,.wp-block-jetpack-business-hours .business-hours-row__add .components-button.is-default:hover,.wp-block-jetpack-business-hours .business-hours__remove .components-button.is-default:active,.wp-block-jetpack-business-hours .business-hours__remove .components-button.is-default:focus,.wp-block-jetpack-business-hours .business-hours__remove .components-button.is-default:hover{background:none;box-shadow:none}@media(max-width:1080px){.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row{flex-wrap:wrap}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__day,.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__remove{display:none}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:100%}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:78%}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row .business-hours__remove{width:18%}}@media(max-width:600px){.wp-block-jetpack-business-hours .business-hours__row{flex-wrap:wrap}.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__day,.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__remove{display:none}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:100%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:78%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__remove{width:18%}}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row{flex-wrap:wrap}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__day,.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__remove{display:none}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:100%}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:78%}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row .business-hours__remove{width:18%}@media(min-width:480px){.jetpack-business-hours dd,.jetpack-business-hours dt{display:inline-block}}.jetpack-business-hours dt{font-weight:700;margin-right:.5em;min-width:30%;vertical-align:top}.jetpack-business-hours dd{margin:0}@media(min-width:480px){.jetpack-business-hours dd{max-width:calc(70% - .5em)}}.jetpack-business-hours__item{margin-bottom:.5em}.wp-block[data-type="jetpack/button"]{display:inline-block;margin:0 auto}.wp-block[data-align=center] .wp-block-jetpack-button{display:flex;justify-content:center}.wp-block[data-align=right] .wp-block-jetpack-button{display:flex;justify-content:flex-end}div[data-type="jetpack/button"]:not([data-align=left]):not([data-align=right]){width:100%}div[data-type="jetpack/button"][data-align]{z-index:1;width:100%}div[data-type="jetpack/button"][data-align] .wp-block>div{max-width:100%}.jetpack-button__width-settings{display:flex;align-items:center}.jetpack-button__width-settings .components-button-group{display:flex;margin-right:1em}.jetpack-button__width-settings:not(.is-aligned) .components-unit-control-wrapper{flex:1}.wp-block-button__link.has-custom-width,.wp-block-jetpack-button{max-width:100%}.wp-block-jetpack-calendly{position:relative}.wp-block-jetpack-calendly-overlay{position:absolute;width:100%;height:100%;z-index:10}.wp-block-jetpack-calendly-link-editable{cursor:text}.wp-block-jetpack-calendly-embed-form-sidebar{display:flex;margin-bottom:1em}.wp-block-jetpack-calendly-learn-more{margin-top:1em}.wp-block-jetpack-calendly-color-notice{margin:0}div[data-align=center]>.wp-block-jetpack-calendly{text-align:center}.wp-block-jetpack-calendly .components-placeholder__fieldset input{flex:1}.admin-bar .calendly-overlay .calendly-popup-close{top:47px}.wp-block-jetpack-calendly.calendly-style-inline{height:630px;position:relative}.wp-block-jetpack-calendly .calendly-spinner{top:50px}.wp-block-jetpack-calendly.aligncenter{text-align:center}.wp-block-jetpack-calendly .wp-block-jetpack-button{color:#fff}.jetpack-block-styles-selector .editor-styles-wrapper .block-editor-block-list__block{margin:0}.jetpack-block-styles-selector-toolbar .is-active{font-weight:700}.wp-block-jetpack-contact-form{box-sizing:border-box}.wp-block-jetpack-contact-form .block-editor-block-variation-picker__variations>li{max-width:none;width:84px;margin:0}.wp-block-jetpack-contact-form .block-editor-block-variation-picker__variations>li .block-editor-block-variation-picker__variation{padding:17px;margin-right:0}.wp-block-jetpack-contact-form .block-editor-block-variation-picker__variations>li .block-editor-block-variation-picker__variation-label{margin-right:0}.wp-block-jetpack-contact-form .block-editor-block-list__layout{display:flex;flex-wrap:wrap;justify-content:flex-start;flex-direction:row}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block{flex:0 0 100%;margin:0;border-right:15px solid transparent;border-bottom:15px solid transparent}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-25,.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-50,.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-75{box-sizing:border-box}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-25{flex:0 0 25%}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-25 .jetpack-option__input.jetpack-option__input.jetpack-option__input{width:70px}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-50{flex:0 0 50%}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-75{flex:0 0 75%}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block[data-type="jetpack/field-checkbox"],.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block[data-type="jetpack/field-consent"]{align-self:center}.wp-block-jetpack-contact-form .block-list-appender{flex:0 0 100%}.jetpack-contact-form .components-placeholder{padding:24px}.jetpack-contact-form .components-placeholder input[type=text]{width:100%;outline-width:0;outline-style:none;line-height:16px}.jetpack-contact-form .components-placeholder .components-placeholder__label svg{margin-right:1ch}.jetpack-contact-form .components-placeholder .components-placeholder__fieldset,.jetpack-contact-form .components-placeholder .help-message{text-align:left}.jetpack-contact-form .components-placeholder .help-message{width:100%;margin:0 0 1em}.jetpack-contact-form .components-placeholder .components-base-control{width:100%}.jetpack-contact-form__intro-message{margin:0 0 16px}.jetpack-contact-form__create,.jetpack-contact-form__thankyou-redirect-url input[type=text]{width:100%}.jetpack-contact-form__thankyou-redirect-url__suggestions{width:260px}.jetpack-field-label{display:flex;flex-direction:row;justify-content:flex-start;align-items:baseline}.jetpack-field-label .components-base-control{margin-top:-1px;margin-bottom:-3px}.jetpack-field-label .components-base-control.jetpack-field-label__required .components-form-toggle{margin:2px 8px 0 16px}.jetpack-field-label .components-base-control.jetpack-field-label__required .components-toggle-control__label{word-break:normal}.jetpack-field-label .rich-text.jetpack-field-label__input{cursor:text;padding-right:8px}.jetpack-field-label .required{word-break:normal;color:unset;opacity:.45;font-size:15px}.jetpack-field-label .components-toggle-control .components-base-control__field{margin-bottom:0}.jetpack-field-label__input{min-height:unset;padding:0}input.components-text-control__input{line-height:16px}.jetpack-field .components-text-control__input.components-text-control__input{width:100%}.jetpack-field input.components-text-control__input,.jetpack-field textarea.components-textarea-control__input{color:#787c82;padding:12px 8px;box-shadow:unset;width:100%}.jetpack-field textarea.components-textarea-control__input{min-height:150px}.jetpack-field-label__width .components-button-group{display:block}.jetpack-field-label__width .components-base-control__field{margin-bottom:12px}.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox{float:left;margin:3px 5px 0 0}.jetpack-field-consent__checkbox.jetpack-field-consent__checkbox.jetpack-field-consent__checkbox{float:left;margin:0 5px 0 0}.jetpack-field-multiple__list.jetpack-field-multiple__list{list-style-type:none;margin:0;padding-left:0}.jetpack-field-multiple__list.jetpack-field-multiple__list:empty{display:none}[data-type="jetpack/field-select"] .jetpack-field-multiple__list.jetpack-field-multiple__list{border:1px solid rgba(0,0,0,.4);border-radius:4px;padding:4px}.jetpack-option{display:flex;align-items:center;margin:0}.jetpack-option__type.jetpack-option__type{margin-top:0}.jetpack-option__input.jetpack-option__input.jetpack-option__input{border-color:transparent;background:transparent;border-radius:0;flex-grow:1}.jetpack-option__input.jetpack-option__input.jetpack-option__input:hover{border-color:#357cb5}.jetpack-option__input.jetpack-option__input.jetpack-option__input:focus{background:#fff;border-color:#e3e5e8;box-shadow:none}.jetpack-option__remove.jetpack-option__remove{padding:6px;vertical-align:bottom}.jetpack-field-multiple__add-option{margin-left:-6px;padding:4px 8px 4px 4px}.jetpack-field-multiple__add-option svg{margin-right:12px}.jetpack-field .components-base-control__label{display:block}.jetpack-field-checkbox .components-base-control__label,.jetpack-field-consent .components-base-control__label{display:flex;align-items:center}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label,.jetpack-field-consent .components-base-control__label .jetpack-field-label{flex-grow:1}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label__input,.jetpack-field-consent .components-base-control__label .jetpack-field-label__input{font-size:13px;font-weight:400;padding-left:10px}.block-editor-inserter__preview .jetpack-contact-form{padding:16px}.block-editor-inserter__preview .jetpack-contact-form>.block-editor-inner-blocks>.block-editor-block-list__layout{margin:0}.jetpack-contact-form__popover .components-popover__content{padding:12px;min-width:260px}.jetpack-contact-form__crm_text,.jetpack-contact-form__crm_toggle p{margin-bottom:0}.help-message{display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.help-message svg{margin-right:5px;min-width:24px}.help-message>span{margin-top:2px}.help-message.help-message-is-error{color:#d63638}.help-message.help-message-is-error svg{fill:#d63638}.jetpack-contact-info-block .block-editor-plain-text.block-editor-plain-text:focus{box-shadow:none}.jetpack-contact-info-block .block-editor-plain-text{flex-grow:1;min-height:unset;display:block;margin:.5em 0;padding:0;box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;border-radius:4px;resize:none}.block-editor-inserter__preview .jetpack-contact-info-block{padding:16px}.block-editor-inserter__preview .jetpack-contact-info-block>.block-editor-inner-blocks>.block-editor-block-list__layout{margin:0}.wp-block-jetpack-contact-info{margin-bottom:1.5em}.jetpack-block-nudge.block-editor-warning{margin-bottom:12px}.jetpack-block-nudge .block-editor-warning__message{margin:13px 0}.jetpack-block-nudge .block-editor-warning__actions{line-height:1}.jetpack-block-nudge .jetpack-block-nudge__info{font-size:13px;display:flex;flex-direction:row;line-height:1.4}.jetpack-block-nudge .jetpack-block-nudge__text-container{display:flex;flex-direction:column}.jetpack-block-nudge .jetpack-block-nudge__title{font-size:14px}.jetpack-block-nudge .jetpack-block-nudge__message{color:#646970}.jetpack-stripe-nudge__banner .block-editor-warning__contents{align-items:center}.jetpack-stripe-nudge__icon{align-self:center;background:#2271b1;border-radius:50%;box-sizing:content-box;color:#fff;fill:#fff;flex-shrink:0;margin-right:16px;padding:6px}.wp-block-jetpack-donations .donations__container{border:1px solid #ccc}.wp-block-jetpack-donations .donations__nav{display:flex;border-bottom:1px solid #ccc}.wp-block-jetpack-donations .donations__nav-item{font-weight:700;display:inline-block;flex:1;text-align:center;font-size:16px;padding:12px;border-left:1px solid #ccc;background:#fff;color:#1e1e1e;cursor:pointer}@media(min-width:600px){.wp-block-jetpack-donations .donations__nav-item{padding:16px 24px}}.wp-block-jetpack-donations .donations__nav-item:first-child{border-left:none}.wp-block-jetpack-donations .donations__nav-item.is-active{background:var(--wp-admin-theme-color);color:#fff;cursor:default}.wp-block-jetpack-donations .donations__content{padding:16px}@media(min-width:600px){.wp-block-jetpack-donations .donations__content{padding:32px}}.wp-block-jetpack-donations .donations__content h4,.wp-block-jetpack-donations .donations__content p{margin:0 0 16px}@media(min-width:600px){.wp-block-jetpack-donations .donations__content h4,.wp-block-jetpack-donations .donations__content p{margin:0 0 24px}}.wp-block-jetpack-donations .donations__amounts{margin-bottom:16px;display:flex;flex-wrap:wrap}@media(min-width:600px){.wp-block-jetpack-donations .donations__amounts{margin:0 0 24px}}.wp-block-jetpack-donations .donations__amount{display:inline-block;padding:16px 24px;background-color:#fff;color:#1e1e1e;border:1px solid #ccc;margin-right:8px;margin-bottom:8px;font-weight:600;font-size:16px;white-space:nowrap}.wp-block-jetpack-donations .donations__amount.has-error{box-shadow:0 0 0 1px #fff,0 0 0 3px #cc1818;outline:2px solid transparent;outline-offset:-2px}.wp-block-jetpack-donations .donations__custom-amount .donations__amount-value{display:inline-block;margin-left:4px;min-width:60px}.wp-block-jetpack-donations .donations__separator{margin-bottom:16px;margin-top:16px}@media(min-width:600px){.wp-block-jetpack-donations .donations__separator{margin-bottom:32px;margin-top:32px}}.wp-block-jetpack-donations .donations__donate-button,.wp-block-jetpack-donations .donations__donate-button-wrapper{margin:0}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount{cursor:text}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount.has-focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.editor-styles-wrapper .wp-block-jetpack-donations .donations__custom-amount{cursor:default}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount .block-editor-rich-text__editable{display:inline-block;text-align:left}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount .block-editor-rich-text__editable:focus{box-shadow:none;outline:none;outline-offset:0}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount [data-rich-text-placeholder]:after{color:#ccc;opacity:1}.editor-styles-wrapper .wp-block-jetpack-donations .donations__custom-amount .donations__amount-value{color:#ccc}.editor-styles-wrapper .wp-block-jetpack-donations .donations__donate-button-wrapper:not(.alignleft):not(.alignright){margin:0}.editor-styles-wrapper .wp-block-jetpack-donations .jetpack-block-nudge{max-width:none}.jetpack-donations__currency-toggle{font-weight:700;line-height:100%;width:max-content}.jetpack-donations__currency-popover .components-popover__content{min-width:130px}.wp-block-jetpack-eventbrite{position:relative}.wp-block-jetpack-eventbrite .components-placeholder__learn-more{margin-top:1em}[data-type="jetpack/eventbrite"][data-align=center]{text-align:center}.gathering-tweetstorms__embed-toolbar{justify-content:center;align-items:center}.gathering-tweetstorms__embed-toolbar .components-spinner{position:absolute;margin:0}.gathering-tweetstorms__embed-import-notice{display:flex;align-items:center}.gathering-tweetstorms__embed-import-notice .gathering-tweetstorms__embed-import-message{padding-right:20px}.gathering-tweetstorms__embed-import-notice .gathering-tweetstorms__embed-import-button{flex-shrink:0}.wp-block-jetpack-gif{clear:both;margin:0 0 20px}.wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#949494;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper iframe{border:0;left:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif figure{transition:padding-top 125ms ease-in-out}.wp-block-jetpack-gif .components-base-control__field{text-align:center}.wp-block-jetpack-gif .components-placeholder__label svg{margin-right:1ch}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover{background:none;border:none;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover:focus{outline:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;margin-bottom:10px;max-width:400px;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container{display:flex;margin:-2px 0 2px -2px;overflow-x:auto;width:calc(100% + 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container::-webkit-scrollbar{display:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container{align-items:center;background-size:cover;background-repeat:no-repeat;background-position:50% 50%;border:none;border-radius:3px;cursor:pointer;display:flex;justify-content:center;margin:2px;padding:0 0 calc(10% - 4px);width:calc(10% - 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:hover{box-shadow:0 0 0 1px #949494}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:focus{box-shadow:0 0 0 2px var(--wp-admin-theme-color);outline:0}.components-panel__body-gif-branding svg{display:block;margin:0 auto;max-width:200px}.components-panel__body-gif-branding svg path{fill:#e0e0e0}.wp-block-jetpack-google-calendar{min-width:420px}.wp-block-jetpack-google-calendar iframe{width:100%;border:none}.wp-block-jetpack-google-calendar>amp-iframe>[placeholder]{line-height:1}.wp-block-jetpack-google-calendar>amp-iframe>noscript{display:inline-block!important}.wp-block-jetpack-google-calendar>amp-iframe>noscript>iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1}.wp-block-jetpack-google-calendar-embed-form-sidebar textarea{width:100%;height:75px}.wp-block-jetpack-google-calendar-embed-form-sidebar button{margin-top:8px;display:block}.wp-block-jetpack-google-calendar-embed-form-editor{margin:0}.wp-block-jetpack-google-calendar-embed-form-editor textarea{margin-right:1px;flex:1;height:36px;padding-top:9px;font-family:inherit;font-size:inherit}.wp-block-jetpack-google-calendar-placeholder-links{margin-top:19px}.wp-block-jetpack-google-calendar ol.wp-block-jetpack-google-calendar-placeholder-instructions{font-family:inherit;list-style-position:inside;margin:0;padding:0}.wp-block-jetpack-google-calendar ol.wp-block-jetpack-google-calendar-placeholder-instructions li{margin-bottom:19px;text-align:left}.wp-block-jetpack-google-calendar .components-placeholder__label{margin-bottom:19px}.wp-block-jetpack-google-calendar .components-placeholder p{margin:0 0 19px}.wp-block-jetpack-image-compare{margin-left:0;margin-right:0}.wp-block-jetpack-image-compare img{max-width:100%}.jx-slider.jx-slider{top:1px;left:1px;width:calc(100% - 2px)}.image-compare__placeholder>.components-placeholder{flex-direction:row;align-items:center}.image-compare__placeholder>.components-placeholder>.components-placeholder__label{display:none}.image-compare__placeholder>.components-placeholder .components-placeholder{background:none}.image-compare__image-after,.image-compare__image-before{display:flex;flex-direction:column;flex:1;position:relative}.image-compare__image-after .components-placeholder.components-placeholder,.image-compare__image-before .components-placeholder.components-placeholder{box-shadow:none;padding:0;min-height:0}.image-compare__image-after .components-placeholder.components-placeholder .components-placeholder__instructions,.image-compare__image-before .components-placeholder.components-placeholder .components-placeholder__instructions{display:none}.components-placeholder.is-large .image-compare__image-before{padding-right:12px}.components-placeholder.is-large .image-compare__image-after{padding-left:12px}.components-placeholder.is-medium .image-compare__image-before{margin-bottom:24px}[data-type="jetpack/image-compare"]:not(.is-selected) .image-compare__comparison{pointer-events:none}.juxtapose .components-placeholder{border:none;padding:0;box-shadow:none}.juxtapose .components-placeholder .components-placeholder__label{display:none}.juxtapose .components-placeholder .image-compare__image-after,.juxtapose .components-placeholder .image-compare__image-before{padding:0;flex:none;width:100%}.juxtapose .components-placeholder:before{content:"";display:block;position:absolute;z-index:2;width:100%;height:4px;background:#fff}.juxtapose .components-placeholder .image-compare__image-after{position:absolute;width:100%;height:50%;overflow:hidden}.juxtapose .components-placeholder .image-compare__image-after img{width:100%;height:200%;max-width:none;display:flex;align-self:flex-end}div.juxtapose{width:100%;font-family:Helvetica,Arial,sans-serif}div.jx-slider{width:100%;height:100%;position:relative;overflow:hidden;cursor:pointer;color:#f3f3f3}div.jx-handle{position:absolute;height:100%;width:40px;cursor:col-resize;z-index:15;margin-left:-20px}.vertical div.jx-handle{height:40px;width:100%;cursor:row-resize;margin-top:-20px;margin-left:0}div.jx-control{height:100%;margin-right:auto;margin-left:auto;width:3px;background-color:currentColor}.vertical div.jx-control{height:3px;width:100%;background-color:currentColor;position:relative;top:50%;transform:translateY(-50%)}div.jx-controller{position:absolute;top:0;bottom:0;height:60px;width:9px;margin:auto auto auto -3px;background-color:currentColor}.vertical div.jx-controller{height:9px;width:100px;margin-left:auto;margin-right:auto;top:-3px;position:relative}div.jx-arrow{margin:auto;top:0;bottom:0}.vertical div.jx-arrow,div.jx-arrow{position:absolute;width:0;height:0;transition:all .2s ease}.vertical div.jx-arrow{margin:0 auto;left:0;right:0}div.jx-arrow.jx-left{left:2px;border-color:transparent currentcolor transparent transparent;border-style:solid;border-width:8px 8px 8px 0}div.jx-arrow.jx-right{right:2px;border-color:transparent transparent transparent currentcolor;border-style:solid;border-width:8px 0 8px 8px}.vertical div.jx-arrow.jx-left{left:0;top:2px;border-color:transparent transparent currentcolor;border-style:solid;border-width:0 8px 8px}.vertical div.jx-arrow.jx-right{right:0;top:auto;bottom:2px;border-color:currentcolor transparent transparent;border-style:solid;border-width:8px 8px 0}div.jx-handle:active div.jx-arrow.jx-left,div.jx-handle:hover div.jx-arrow.jx-left{left:-1px}div.jx-handle:active div.jx-arrow.jx-right,div.jx-handle:hover div.jx-arrow.jx-right{right:-1px}.vertical div.jx-handle:active div.jx-arrow.jx-left,.vertical div.jx-handle:hover div.jx-arrow.jx-left{left:0;top:0}.vertical div.jx-handle:active div.jx-arrow.jx-right,.vertical div.jx-handle:hover div.jx-arrow.jx-right{right:0;bottom:0}div.jx-image{position:absolute;height:100%;display:inline-block;top:0;overflow:hidden}.vertical div.jx-image{width:100%;left:0;top:auto}div.jx-slider div.jx-image img{height:100%!important;width:auto!important;z-index:5;position:absolute;margin-bottom:0;max-width:none!important;max-height:none!important}div.jx-slider.vertical div.jx-image img{height:auto!important;width:100%!important}div.jx-image.jx-left{left:0;background-position:0}div.jx-image.jx-left img{left:0}div.jx-image.jx-right{right:0;background-position:100%}div.jx-image.jx-right img{right:0;bottom:0}.veritcal div.jx-image.jx-left{top:0;background-position:top}.veritcal div.jx-image.jx-left img{top:0}.vertical div.jx-image.jx-right{bottom:0;background-position:bottom}.veritcal div.jx-image.jx-right img{bottom:0}div.jx-image div.jx-label{font-size:1em;padding:.25em .75em;position:relative;display:inline-block;top:0;background-color:#000;background-color:rgba(0,0,0,.7);color:#fff;z-index:10;white-space:nowrap;line-height:18px;vertical-align:middle}div.jx-image.jx-left div.jx-label{float:left;left:0}div.jx-image.jx-right div.jx-label{float:right;right:0}.vertical div.jx-image div.jx-label{display:table;position:absolute}.vertical div.jx-image.jx-right div.jx-label{left:0;bottom:0;top:auto}div.jx-image.transition{transition:width .5s ease}div.jx-handle.transition{transition:left .5s ease}.vertical div.jx-image.transition{transition:height .5s ease}.vertical div.jx-handle.transition{transition:top .5s ease}div.jx-controller:focus,div.jx-image.jx-left div.jx-label:focus,div.jx-image.jx-right div.jx-label:focus,figure.wp-block-jetpack-image-compare figcaption{text-align:center;font-size:85%}div.jx-control{color:#fff}.vertical div.jx-controller,div.jx-controller{width:48px;height:48px;border-radius:50%}div.jx-controller{margin-left:-22.5px}.vertical div.jx-controller{transform:translateY(-19.5px)}.vertical div.jx-arrow.jx-left,.vertical div.jx-arrow.jx-right,div.jx-arrow.jx-left,div.jx-arrow.jx-right{width:24px;height:24px;border:none;background-repeat:no-repeat;z-index:1;will-change:transform}div.jx-arrow.jx-left{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEzLjQgMThMOCAxMmw1LjQtNiAxLjIgMS00LjYgNSA0LjYgNXoiLz48L3N2Zz4=");left:0}div.jx-arrow.jx-right{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEwLjYgNkw5LjQgN2w0LjYgNS00LjYgNSAxLjIgMSA1LjQtNnoiLz48L3N2Zz4=");right:0}div.vertical div.jx-arrow.jx-left,div.vertical div.jx-arrow.jx-right{transform:rotate(90deg)}.wp-block-jetpack-instagram-gallery__grid{align-content:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post{box-sizing:border-box;display:block;line-height:0;position:relative}.wp-block-jetpack-instagram-gallery__grid img{height:auto;width:100%}.wp-block-jetpack-instagram-gallery__grid-columns-1 .wp-block-jetpack-instagram-gallery__grid-post{width:100%}.wp-block-jetpack-instagram-gallery__grid-columns-2 .wp-block-jetpack-instagram-gallery__grid-post{width:50%}.wp-block-jetpack-instagram-gallery__grid-columns-3 .wp-block-jetpack-instagram-gallery__grid-post{width:33.33333%}.wp-block-jetpack-instagram-gallery__grid-columns-4 .wp-block-jetpack-instagram-gallery__grid-post{width:25%}.wp-block-jetpack-instagram-gallery__grid-columns-5 .wp-block-jetpack-instagram-gallery__grid-post{width:20%}.wp-block-jetpack-instagram-gallery__grid-columns-6 .wp-block-jetpack-instagram-gallery__grid-post{width:16.66667%}@media(max-width:600px){.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile .wp-block-jetpack-instagram-gallery__grid-post{width:100%}}@supports(display:grid){.wp-block-jetpack-instagram-gallery__grid{display:grid;grid-gap:10px;grid-auto-columns:1fr}@media(max-width:600px){.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile{display:block}.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile .wp-block-jetpack-instagram-gallery__grid-post{padding:var(--latest-instagram-posts-spacing)}}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post{width:auto}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post img{height:100%;-o-object-fit:cover;object-fit:cover}.wp-block-jetpack-instagram-gallery__grid-columns-1{grid-template-columns:repeat(1,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-2{grid-template-columns:repeat(2,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-3{grid-template-columns:repeat(3,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-4{grid-template-columns:repeat(4,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-5{grid-template-columns:repeat(5,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-6{grid-template-columns:repeat(6,1fr)}}@supports((-o-object-fit:cover) or (object-fit:cover)){.wp-block-jetpack-instagram-gallery__grid-post img{height:100%;-o-object-fit:cover;object-fit:cover}}.wp-block-jetpack-instagram-gallery .components-placeholder .components-radio-control{margin-bottom:28px}.wp-block-jetpack-instagram-gallery .components-placeholder .components-radio-control label{font-weight:400}.wp-block-jetpack-instagram-gallery .components-placeholder .wp-block-jetpack-instagram-gallery__new-account-instructions{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-jetpack-instagram-gallery__count-notice .components-notice{margin:0 0 15px}.wp-block-jetpack-instagram-gallery__count-notice .components-notice__content{margin:0;line-height:inherit;padding-right:0}.wp-block-jetpack-instagram-gallery__disconnection-warning{font-style:italic;margin-bottom:0}.wp-block-jetpack-instagram-gallery__placeholder{animation-name:fadeIn,pulse;animation-duration:.3s,1.6s;animation-delay:0ms,.3s;animation-timing-function:ease-out,ease-out;animation-iteration-count:1,infinite;background-color:#a7a79f;display:flex;opacity:1}.wp-block-jetpack-instagram-gallery__placeholder.is-loaded{animation:none;height:auto}.wp-block-jetpack-instagram-gallery__placeholder img{opacity:0;transition:opacity .5s ease-in-out}.wp-block-jetpack-instagram-gallery__placeholder img.is-loaded{opacity:1}@keyframes fadeIn{0%{opacity:0}50%{opacity:.5}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}@supports((-o-object-fit:cover) or (object-fit:cover)){.wp-block-jetpack-instagram-gallery__placeholder.is-loaded{display:flex;flex-direction:column;flex-grow:1}.wp-block-jetpack-instagram-gallery__placeholder.is-loaded img{height:auto;-o-object-fit:cover;object-fit:cover;flex-grow:1}}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post{display:flex;flex-direction:column}@supports(display:grid){@media(max-width:600px){.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile .wp-block-jetpack-instagram-gallery__placeholder{margin:0!important}}}.wp-block-jetpack-mailchimp.is-processing form{display:none}.wp-block-jetpack-mailchimp .wp-block-jetpack-button,.wp-block-jetpack-mailchimp p{margin-bottom:1em}.wp-block-jetpack-mailchimp input{box-sizing:border-box;width:100%}.wp-block-jetpack-mailchimp .error,.wp-block-jetpack-mailchimp .error:focus{outline:1px;outline-offset:-2px;outline-style:auto;outline-color:#d63638}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification{display:none;margin-bottom:1.5em;padding:.75em}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.is-visible{display:block}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp_error{background-color:#d63638;color:#fff}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp_processing{background-color:rgba(0,0,0,.025)}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp_success{background-color:#008a20;color:#fff}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp__is-amp{display:block}.wp-block-jetpack-mailchimp form.amp-form-submit-error>p,.wp-block-jetpack-mailchimp form.amp-form-submit-success>p,.wp-block-jetpack-mailchimp form.amp-form-submitting>p{display:none}.wp-block-jetpack-mailchimp .components-placeholder__label svg{margin-right:1ch}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification{display:block}.wp-block-jetpack-mailchimp .editor-rich-text__inline-toolbar{pointer-events:none}.wp-block-jetpack-mailchimp .editor-rich-text__inline-toolbar .components-toolbar{pointer-events:all}.wp-block-jetpack-mailchimp-recheck{margin-top:1em}.wp-block-jetpack-mailchimp.wp-block-jetpack-mailchimp_notication-audition>:not(.wp-block-jetpack-mailchimp_notification){display:none}.wp-block-jetpack-mailchimp .jetpack-submit-button,.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_text-input{margin-bottom:1.5rem}.wp-block-jetpack-mailchimp .wp-block-button .wp-block-button__link{margin-top:0}.wp-block-jetpack-mailchimp .components-placeholder__fieldset{display:block;flex-direction:unset;flex-wrap:unset}.wp-block-jetpack-mailchimp .components-placeholder__fieldset .components-button{margin-bottom:0}.component__add-point{position:absolute;left:50%;top:50%;width:32px;height:38px;margin-top:-19px;margin-left:-16px;background-image:url(images/oval-5f1d889983a8747472c7.svg);background-repeat:no-repeat;text-indent:-9999px}.component__add-point,.component__add-point.components-button:not(:disabled):not([aria-disabled=true]):focus{box-shadow:none;background-color:transparent}.component__add-point:active,.component__add-point:focus{background-color:transparent}.component__add-point__popover .components-button:not(:disabled):not([aria-disabled=true]):focus{background-color:transparent;box-shadow:none}.component__add-point__popover .components-popover__content{padding:.1rem}.component__add-point__popover .components-location-search{margin:.5rem}.component__add-point__close{margin:.4rem 0 0;padding:0;border:none;box-shadow:none;float:right}.component__add-point__close path{color:#e0e0e0}.wp-block-jetpack-map-marker{width:32px;height:38px;opacity:.9}.edit-post-settings-sidebar__panel-block .component__locations__panel{margin-bottom:1em}.edit-post-settings-sidebar__panel-block .component__locations__panel:empty{display:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child{border-top:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:last-child{max-width:100%;margin:0}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body button{padding-right:40px}.component__locations__delete-btn{padding:0}.component__locations__delete-btn svg{margin-right:.4em}.wp-block-jetpack-map .wp-block-jetpack-map__gm-container{width:100%;overflow:hidden;background:#e0e0e0;min-height:400px;text-align:left}.wp-block-jetpack-map .mapboxgl-popup{max-width:300px}.wp-block-jetpack-map .mapboxgl-popup h3{font-size:1.3125em;font-weight:400;margin-bottom:.5rem}.wp-block-jetpack-map .mapboxgl-popup p{margin-bottom:0}.wp-block-jetpack-map .mapboxgl-ctrl-group button{border-radius:0;background-color:transparent!important}.wp-block-jetpack-map__delete-btn{padding:0}.wp-block-jetpack-map__delete-btn svg{margin-right:.4em}.wp-block[data-type="jetpack/map"] .components-placeholder__label svg{fill:currentColor;margin-right:1ch}.wp-block[data-type="jetpack/map"] .components-placeholder__instructions .components-external-link{display:inline-block;margin:1em auto}.wp-block-jetpack-map .mapboxgl-popup-close-button{font-size:21px;padding:0 10px 5px 9px}.wp-block-jetpack-map .wp-block-jetpack-map__map_wrapper{overflow:hidden;background-color:#e4e2de}.wp-block-jetpack-map__height_input{display:block}.component__add-point__popover .components-popover__content{width:250px}.component__add-point__popover .components-popover__content .component__add-point__close{margin-top:-.55em;padding:.3em}.wp-block-jetpack-markdown__placeholder{opacity:.62;pointer-events:none}.block-editor-block-list__block .wp-block-jetpack-markdown__preview{min-height:1.8em;line-height:1.8}.block-editor-block-list__block .wp-block-jetpack-markdown__preview>*{margin-top:32px;margin-bottom:32px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h1,.block-editor-block-list__block .wp-block-jetpack-markdown__preview h2,.block-editor-block-list__block .wp-block-jetpack-markdown__preview h3{line-height:1.4}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h1{font-size:2.44em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h2{font-size:1.95em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h3{font-size:1.56em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h4{font-size:1.25em;line-height:1.5}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h5{font-size:1em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h6{font-size:.8em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview hr{border:none;border-bottom:2px solid #f0f0f0;margin:2em auto;max-width:100px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview p{line-height:1.8}.block-editor-block-list__block .wp-block-jetpack-markdown__preview blockquote{border-left:4px solid #000;margin-left:0;margin-right:0;padding-left:1em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview blockquote p{line-height:1.5;margin:1em 0}.block-editor-block-list__block .wp-block-jetpack-markdown__preview ol,.block-editor-block-list__block .wp-block-jetpack-markdown__preview ul{margin-left:1.3em;padding-left:1.3em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview li p{margin:0}.block-editor-block-list__block .wp-block-jetpack-markdown__preview code,.block-editor-block-list__block .wp-block-jetpack-markdown__preview pre{color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace}.block-editor-block-list__block .wp-block-jetpack-markdown__preview code{background:#f0f0f0;border-radius:2px;font-size:inherit;padding:2px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview pre{border-radius:4px;border:1px solid #e0e0e0;font-size:15px;padding:.8em 1em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview pre code{background:transparent;padding:0}.block-editor-block-list__block .wp-block-jetpack-markdown__preview table{overflow-x:auto;border-collapse:collapse;width:100%}.block-editor-block-list__block .wp-block-jetpack-markdown__preview tbody,.block-editor-block-list__block .wp-block-jetpack-markdown__preview tfoot,.block-editor-block-list__block .wp-block-jetpack-markdown__preview thead{width:100%;min-width:240px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview td,.block-editor-block-list__block .wp-block-jetpack-markdown__preview th{padding:.5em;border:1px solid}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor{font-family:Menlo,Consolas,monaco,monospace;font-size:15px}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor:focus{border-color:transparent;box-shadow:0 0 0 transparent}.wp-block-jetpack-opentable{display:inline-block}.wp-block-jetpack-opentable.is-placeholder,.wp-block-jetpack-opentable.is-style-wide{display:block}.wp-block-jetpack-opentable .components-base-control{width:100%}.wp-block-jetpack-opentable .components-placeholder__fieldset p{font-size:13px;margin:0 0 1em}.wp-block-jetpack-opentable .components-placeholder__fieldset form{flex-direction:row}@media screen and (max-width:479px){.wp-block-jetpack-opentable .components-placeholder__fieldset form{display:block}}.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__label{display:none}.wp-block-jetpack-opentable .components-placeholder__fieldset form p{margin-top:1em}.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__input-container{width:100%}@media screen and (min-width:480px){.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__input-container input[type=text].components-form-token-field__input{min-height:32px}}.wp-block-jetpack-opentable .components-placeholder__fieldset form>.components-button{padding:0 8px;height:42px;align-items:center;line-height:normal}@media screen and (min-width:480px){.wp-block-jetpack-opentable .components-placeholder__fieldset form>.components-button{margin:0 0 0 4px;position:relative}}.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__remove-token{padding:2px 6px}.wp-block-jetpack-opentable iframe{height:100%;width:100%}.wp-block-jetpack-opentable-overlay{position:absolute;width:100%;height:100%;z-index:10}.wp-block-jetpack-opentable-restaurant-picker{margin-bottom:1em;position:relative;width:100%}.wp-block-jetpack-opentable-restaurant-picker .components-form-token-field__token-text{display:inline-flex;align-items:center}.wp-block-jetpack-opentable-placeholder-links{display:flex;flex-direction:column}@media screen and (min-width:480px){.wp-block-jetpack-opentable-placeholder-links{display:block}}.wp-block-jetpack-opentable-placeholder-links a{padding:.25em 1em .25em 0}@media screen and (min-width:480px){.wp-block-jetpack-opentable-placeholder-links a form>button{height:50px}}.wp-block-jetpack-opentable-placeholder-links a:last-child{padding-right:0;padding-left:1em}.wp-block-jetpack-opentable.is-style-button.has-no-margin iframe{margin:-14px}.editor-styles-wrapper .wp-block-jetpack-opentable .components-form-token-field__suggestions-list{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;text-align:left;padding:0;margin:0}.wp-block>.wp-block-jetpack-opentable.is-style-wide.alignright{left:auto;right:0}.wp-block[data-type="jetpack/opentable"] .components-notice__content{text-align:left}.components-toggle-control.is-opentable{padding-top:6px}.is-opentable button.is-active{font-weight:700}.wp-block-jetpack-opentable{position:relative}.wp-block-jetpack-opentable>iframe{background:transparent;margin:0}.wp-block-jetpack-opentable.aligncenter iframe{margin:0 auto}.wp-block-jetpack-opentable.is-style-standard,.wp-block-jetpack-opentable.is-style-wide.is-style-mobile{height:301px}.wp-block-jetpack-opentable.is-style-standard.is-multi,.wp-block-jetpack-opentable.is-style-wide.is-style-mobile.is-multi{height:361px}.wp-block-jetpack-opentable.is-style-standard.aligncenter iframe,.wp-block-jetpack-opentable.is-style-wide.is-style-mobile.aligncenter iframe{width:224px!important}.wp-block-jetpack-opentable.is-style-tall{height:490px}.wp-block-jetpack-opentable.is-style-tall.is-multi{height:550px}.wp-block-jetpack-opentable.is-style-tall.aligncenter iframe{width:288px!important}.wp-block-jetpack-opentable.is-style-wide{height:150px}.wp-block-jetpack-opentable.is-style-wide iframe{width:840px!important}.wp-block-jetpack-opentable.is-style-wide.alignleft{max-width:840px;right:auto;margin-left:2rem}.wp-block-jetpack-opentable.is-style-wide.alignright{max-width:840px;left:calc(100% - 840px - 2rem)}.wp-block-jetpack-opentable.is-style-button{height:113px}.wp-block-jetpack-opentable.is-style-button.aligncenter iframe{width:210px!important}.wp-block-jetpack-opentable.is-style-button.has-no-margin>div[id^=ot-widget-container]{margin:-14px}.wp-block-jetpack-opentable .ot-dtp-picker{box-sizing:content-box}.wp-block-jetpack-opentable .ot-dtp-picker .ot-title{margin:4px auto 12px}.wp-block-jetpack-opentable .ot-dtp-picker .ot-dtp-picker-selector-link{text-decoration:none}.wp-block-jetpack-opentable .ot-dtp-picker input[type=submit]{text-transform:none;padding:0}.wp-block-jetpack-opentable .ot-dtp-picker input[type=submit]:hover{text-decoration:none}.block-editor-block-contextual-toolbar[data-type="jetpack/podcast-player"] .components-toolbar__control,[data-type="jetpack/podcast-player"] .block-editor-block-contextual-toolbar .components-toolbar__control{width:auto;padding:0 1em}.jetpack-podcast-player__interactive-overlay,.jetpack-podcast-player__loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0}.jetpack-podcast-player__loading-overlay{background:hsla(0,0%,100%,.7);display:flex;align-items:center;justify-content:center}.jetpack-podcast-player__placeholder .components-base-control,.jetpack-podcast-player__placeholder .components-base-control__field{display:flex;flex-grow:1}.jetpack-podcast-player__placeholder .components-base-control__field{margin-bottom:0}.jetpack-podcast-player__placeholder .components-placeholder__learn-more{margin-top:1em}.block-editor-block-inspector .components-base-control.jetpack-podcast-player__episode-selector{margin-bottom:24px}.jetpack-audio-player-loading{height:10px;background:#ccc;background:var(--jetpack-audio-player-secondary);margin:15px 24px}.jetpack-audio-player{--jetpack-audio-player-primary:var(--jetpack-podcast-player-primary,#000);--jetpack-audio-player-secondary:var(--jetpack-podcast-player-secondary,#ccc);--jetpack-audio-player-background:var(--jetpack-podcast-player-background,#fff);height:40px}.jetpack-audio-player .mejs-container,.jetpack-audio-player .mejs-container .mejs-controls,.jetpack-audio-player .mejs-embed,.jetpack-audio-player .mejs-embed body,.jetpack-audio-player .mejs-mediaelement{background-color:transparent}.jetpack-audio-player .mejs-container:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px;box-shadow:none}.jetpack-audio-player .mejs-controls{position:static;padding:0}.jetpack-podcast-player__header .jetpack-audio-player .mejs-controls{padding-left:15px;padding-right:18px}.jetpack-audio-player .mejs-time{color:#ccc;color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-time-float{color:#fff;color:var(--jetpack-audio-player-background);background:#000;background:var(--jetpack-audio-player-primary);border-color:#000;border-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-time-float-corner{border-top-color:#000;border-top-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-total{background-color:#ccc;background-color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded{opacity:.5}.jetpack-audio-player .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-current,.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded{background-color:#000;background-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-slider:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-button>button{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23000;width:16px;height:16px}.st1{fill:none;stroke:%23000;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath class='st0' d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm47.2.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z'/%3E%3Cpath class='st1' d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8'/%3E%3Cpath class='st1' d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9'/%3E%3Cpath class='st0' d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z'/%3E%3Cpath d='M52.8 7l5.4 5.4m-5.4 0L58.2 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9' fill='none' stroke='%23000'/%3E%3Cpath class='st0' d='M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3zm22.4 1h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3Cpath d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z' fill='%23231f20'/%3E%3Cpath class='st0' d='M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z'/%3E%3Cpath d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75' fill='none' stroke='%23000' stroke-width='5'/%3E%3Cpath class='st0' d='M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z'/%3E%3Cpath d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z' fill='none' stroke='%23000' stroke-width='5'/%3E%3Ccircle class='st0' cx='201.9' cy='47.1' r='8.1'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4'/%3E%3Ccircle cx='201.9' cy='110.9' r='6' opacity='.6'/%3E%3Ccircle cx='170.1' cy='79' r='7' opacity='.8'/%3E%3Ccircle cx='178.2' cy='56.3' r='7.5' opacity='.9'/%3E%3Ccircle cx='226.3' cy='56.1' r='4.5' opacity='.3'/%3E%3Ccircle cx='225.8' cy='102.8' r='5.5' opacity='.5'/%3E%3Ccircle cx='178.2' cy='102.8' r='6.5' opacity='.7'/%3E%3Cpath class='st0' d='M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z'/%3E%3Cpath class='st0' d='M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2zm14-12.7c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z'/%3E%3C/svg%3E")}.jetpack-audio-player .mejs-button.mejs-jump-button>button{background-image:url('data:image/svg+xml;utf8,%3Csvg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60.78 35.3"%3E%3Cdefs%3E%3Cstyle%3E.cls-1{fill-rule:evenodd;}%3C/style%3E%3C/defs%3E%3Ctitle%3Etestsprite%3C/title%3E%3Cg id="layer1"%3E%3Cg id="mask0"%3E%3Cpath id="path44" class="cls-1" d="M42.49,6.27v3.87a7.72,7.72,0,1,1-7.68,7.72h1.92a5.77,5.77,0,1,0,5.76-5.79v3.86l-4.8-4.83Zm-1,10.36-.24,2.1.65.15,0,0a.46.46,0,0,1,.07-.07s0,0,.06,0l.06,0,.14-.05.19,0a.79.79,0,0,1,.29.05.48.48,0,0,1,.2.14.65.65,0,0,1,.13.23,1,1,0,0,1,0,.3h0a1,1,0,0,1,0,.3.9.9,0,0,1-.11.24.46.46,0,0,1-.17.17.5.5,0,0,1-.26.06.6.6,0,0,1-.4-.15.56.56,0,0,1-.19-.39h-.8a1.2,1.2,0,0,0,.12.51,1.12,1.12,0,0,0,.31.37,1.45,1.45,0,0,0,.44.24,2.24,2.24,0,0,0,.51.07,1.91,1.91,0,0,0,.62-.11,1.33,1.33,0,0,0,.43-.3,1.39,1.39,0,0,0,.26-.44,1.46,1.46,0,0,0,.08-.52,2.14,2.14,0,0,0-.08-.58,1.05,1.05,0,0,0-.64-.7,1.21,1.21,0,0,0-.52-.1l-.2,0-.08,0-.09,0a.38.38,0,0,0-.14.05l0,0s0,0-.06,0l.11-.89h1.63v-.69Z"/%3E%3C/g%3E%3Cg id="g34"%3E%3Cg id="g32"%3E%3Cpath id="path26" d="M23.81,17.58a6,6,0,1,1-6-6v4l5-5-5-5v4a8,8,0,1,0,8,8Z"/%3E%3Cpath id="path28" d="M15.87,20a.57.57,0,0,1-.62-.54H14.4a1.3,1.3,0,0,0,1.45,1.23c.87,0,1.51-.46,1.51-1.25a1,1,0,0,0-.71-1,1.06,1.06,0,0,0,.65-.92c0-.21-.05-1.22-1.44-1.22a1.27,1.27,0,0,0-1.4,1.16h.85a.58.58,0,0,1,1.15.06.56.56,0,0,1-.63.59h-.46v.66h.45c.65,0,.7.42.7.64A.58.58,0,0,1,15.87,20Z"/%3E%3Cpath id="path30" d="M19.66,16.26c-.14,0-1.44-.08-1.44,1.82v.74c0,1.9,1.31,1.82,1.44,1.82s1.44.09,1.44-1.82v-.74C21.11,16.17,19.8,16.26,19.66,16.26Zm.6,2.67c0,.77-.21,1-.59,1s-.6-.26-.6-1V18c0-.75.22-1,.59-1s.6.26.6,1Z"/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E');background-size:60.78px 35.296px}.jetpack-audio-player .mejs-button.mejs-jump-backward-button>button{background-position:-32px -6px}.jetpack-audio-player .mejs-button.mejs-skip-forward-button>button{background-position:-9px -6px}@supports((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.jetpack-audio-player .mejs-button>button{background-image:none}.jetpack-audio-player .mejs-button>button:before{display:block;content:"";width:100%;height:100%;background-color:var(--jetpack-audio-player-primary);background-image:none;-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23fff;width:16px;height:16px}.st1{fill:none;stroke:%23fff;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath class='st0' d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zM81 1.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z'/%3E%3Cpath class='st1' d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8'/%3E%3Cpath class='st1' d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9'/%3E%3Cpath class='st0' d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z'/%3E%3Cpath d='M52.8 7l5.4 5.4m-5.4 0L58.2 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9' fill='none' stroke='%23fff'/%3E%3Cpath class='st0' d='M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3zM143.2 3h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3Cpath d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z' fill='%23231f20'/%3E%3Cpath class='st0' d='M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z'/%3E%3Cpath d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Cpath class='st0' d='M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z'/%3E%3Cpath d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Ccircle class='st0' cx='201.9' cy='47.1' r='8.1'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4' fill='%23fff'/%3E%3Ccircle cx='201.9' cy='110.9' r='6' opacity='.6' fill='%23fff'/%3E%3Ccircle cx='170.1' cy='79' r='7' opacity='.8' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='56.3' r='7.5' opacity='.9' fill='%23fff'/%3E%3Ccircle cx='226.3' cy='56.1' r='4.5' opacity='.3' fill='%23fff'/%3E%3Ccircle cx='225.8' cy='102.8' r='5.5' opacity='.5' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='102.8' r='6.5' opacity='.7' fill='%23fff'/%3E%3Cpath class='st0' d='M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z'/%3E%3Cpath class='st0' d='M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2zM183.4 3.2c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z'/%3E%3C/svg%3E");mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23fff;width:16px;height:16px}.st1{fill:none;stroke:%23fff;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath class='st0' d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zM81 1.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z'/%3E%3Cpath class='st1' d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8'/%3E%3Cpath class='st1' d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9'/%3E%3Cpath class='st0' d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z'/%3E%3Cpath d='M52.8 7l5.4 5.4m-5.4 0L58.2 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9' fill='none' stroke='%23fff'/%3E%3Cpath class='st0' d='M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3zM143.2 3h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3Cpath d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z' fill='%23231f20'/%3E%3Cpath class='st0' d='M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z'/%3E%3Cpath d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Cpath class='st0' d='M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z'/%3E%3Cpath d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Ccircle class='st0' cx='201.9' cy='47.1' r='8.1'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4' fill='%23fff'/%3E%3Ccircle cx='201.9' cy='110.9' r='6' opacity='.6' fill='%23fff'/%3E%3Ccircle cx='170.1' cy='79' r='7' opacity='.8' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='56.3' r='7.5' opacity='.9' fill='%23fff'/%3E%3Ccircle cx='226.3' cy='56.1' r='4.5' opacity='.3' fill='%23fff'/%3E%3Ccircle cx='225.8' cy='102.8' r='5.5' opacity='.5' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='102.8' r='6.5' opacity='.7' fill='%23fff'/%3E%3Cpath class='st0' d='M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z'/%3E%3Cpath class='st0' d='M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2zM183.4 3.2c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z'/%3E%3C/svg%3E")}.jetpack-audio-player .mejs-button.mejs-jump-button>button{background-image:none}.jetpack-audio-player .mejs-button.mejs-jump-button>button:before{background-image:none;-webkit-mask:url('data:image/svg+xml;utf8,%3Csvg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60.78 35.3"%3E%3Cdefs%3E%3Cstyle%3E.cls-1{fill-rule:evenodd;}%3C/style%3E%3C/defs%3E%3Ctitle%3Etestsprite%3C/title%3E%3Cg id="layer1"%3E%3Cg id="mask0"%3E%3Cpath id="path44" class="cls-1" d="M42.49,6.27v3.87a7.72,7.72,0,1,1-7.68,7.72h1.92a5.77,5.77,0,1,0,5.76-5.79v3.86l-4.8-4.83Zm-1,10.36-.24,2.1.65.15,0,0a.46.46,0,0,1,.07-.07s0,0,.06,0l.06,0,.14-.05.19,0a.79.79,0,0,1,.29.05.48.48,0,0,1,.2.14.65.65,0,0,1,.13.23,1,1,0,0,1,0,.3h0a1,1,0,0,1,0,.3.9.9,0,0,1-.11.24.46.46,0,0,1-.17.17.5.5,0,0,1-.26.06.6.6,0,0,1-.4-.15.56.56,0,0,1-.19-.39h-.8a1.2,1.2,0,0,0,.12.51,1.12,1.12,0,0,0,.31.37,1.45,1.45,0,0,0,.44.24,2.24,2.24,0,0,0,.51.07,1.91,1.91,0,0,0,.62-.11,1.33,1.33,0,0,0,.43-.3,1.39,1.39,0,0,0,.26-.44,1.46,1.46,0,0,0,.08-.52,2.14,2.14,0,0,0-.08-.58,1.05,1.05,0,0,0-.64-.7,1.21,1.21,0,0,0-.52-.1l-.2,0-.08,0-.09,0a.38.38,0,0,0-.14.05l0,0s0,0-.06,0l.11-.89h1.63v-.69Z"/%3E%3C/g%3E%3Cg id="g34"%3E%3Cg id="g32"%3E%3Cpath id="path26" d="M23.81,17.58a6,6,0,1,1-6-6v4l5-5-5-5v4a8,8,0,1,0,8,8Z"/%3E%3Cpath id="path28" d="M15.87,20a.57.57,0,0,1-.62-.54H14.4a1.3,1.3,0,0,0,1.45,1.23c.87,0,1.51-.46,1.51-1.25a1,1,0,0,0-.71-1,1.06,1.06,0,0,0,.65-.92c0-.21-.05-1.22-1.44-1.22a1.27,1.27,0,0,0-1.4,1.16h.85a.58.58,0,0,1,1.15.06.56.56,0,0,1-.63.59h-.46v.66h.45c.65,0,.7.42.7.64A.58.58,0,0,1,15.87,20Z"/%3E%3Cpath id="path30" d="M19.66,16.26c-.14,0-1.44-.08-1.44,1.82v.74c0,1.9,1.31,1.82,1.44,1.82s1.44.09,1.44-1.82v-.74C21.11,16.17,19.8,16.26,19.66,16.26Zm.6,2.67c0,.77-.21,1-.59,1s-.6-.26-.6-1V18c0-.75.22-1,.59-1s.6.26.6,1Z"/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E') 0 0/60.78px 35.296px;mask:url('data:image/svg+xml;utf8,%3Csvg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60.78 35.3"%3E%3Cdefs%3E%3Cstyle%3E.cls-1{fill-rule:evenodd;}%3C/style%3E%3C/defs%3E%3Ctitle%3Etestsprite%3C/title%3E%3Cg id="layer1"%3E%3Cg id="mask0"%3E%3Cpath id="path44" class="cls-1" d="M42.49,6.27v3.87a7.72,7.72,0,1,1-7.68,7.72h1.92a5.77,5.77,0,1,0,5.76-5.79v3.86l-4.8-4.83Zm-1,10.36-.24,2.1.65.15,0,0a.46.46,0,0,1,.07-.07s0,0,.06,0l.06,0,.14-.05.19,0a.79.79,0,0,1,.29.05.48.48,0,0,1,.2.14.65.65,0,0,1,.13.23,1,1,0,0,1,0,.3h0a1,1,0,0,1,0,.3.9.9,0,0,1-.11.24.46.46,0,0,1-.17.17.5.5,0,0,1-.26.06.6.6,0,0,1-.4-.15.56.56,0,0,1-.19-.39h-.8a1.2,1.2,0,0,0,.12.51,1.12,1.12,0,0,0,.31.37,1.45,1.45,0,0,0,.44.24,2.24,2.24,0,0,0,.51.07,1.91,1.91,0,0,0,.62-.11,1.33,1.33,0,0,0,.43-.3,1.39,1.39,0,0,0,.26-.44,1.46,1.46,0,0,0,.08-.52,2.14,2.14,0,0,0-.08-.58,1.05,1.05,0,0,0-.64-.7,1.21,1.21,0,0,0-.52-.1l-.2,0-.08,0-.09,0a.38.38,0,0,0-.14.05l0,0s0,0-.06,0l.11-.89h1.63v-.69Z"/%3E%3C/g%3E%3Cg id="g34"%3E%3Cg id="g32"%3E%3Cpath id="path26" d="M23.81,17.58a6,6,0,1,1-6-6v4l5-5-5-5v4a8,8,0,1,0,8,8Z"/%3E%3Cpath id="path28" d="M15.87,20a.57.57,0,0,1-.62-.54H14.4a1.3,1.3,0,0,0,1.45,1.23c.87,0,1.51-.46,1.51-1.25a1,1,0,0,0-.71-1,1.06,1.06,0,0,0,.65-.92c0-.21-.05-1.22-1.44-1.22a1.27,1.27,0,0,0-1.4,1.16h.85a.58.58,0,0,1,1.15.06.56.56,0,0,1-.63.59h-.46v.66h.45c.65,0,.7.42.7.64A.58.58,0,0,1,15.87,20Z"/%3E%3Cpath id="path30" d="M19.66,16.26c-.14,0-1.44-.08-1.44,1.82v.74c0,1.9,1.31,1.82,1.44,1.82s1.44.09,1.44-1.82v-.74C21.11,16.17,19.8,16.26,19.66,16.26Zm.6,2.67c0,.77-.21,1-.59,1s-.6-.26-.6-1V18c0-.75.22-1,.59-1s.6.26.6,1Z"/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E') 0 0/60.78px 35.296px}.jetpack-audio-player .mejs-button.mejs-jump-backward-button>button:before{-webkit-mask-position:-32px -6px;mask-position:-32px -6px}.jetpack-audio-player .mejs-button.mejs-skip-forward-button>button:before{-webkit-mask-position:-9px -6px;mask-position:-9px -6px}.jetpack-audio-player .mejs-button>button:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-play>button:before{-webkit-mask-position:0 0;mask-position:0 0}.jetpack-audio-player .mejs-pause>button:before{-webkit-mask-position:-20px 0;mask-position:-20px 0}.jetpack-audio-player .mejs-replay>button:before{-webkit-mask-position:-160px 0;mask-position:-160px 0}.jetpack-audio-player .mejs-mute>button:before{-webkit-mask-position:-60px 0;mask-position:-60px 0}.jetpack-audio-player .mejs-unmute>button:before{-webkit-mask-position:-40px 0;mask-position:-40px 0}}.jetpack-podcast-player--visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.wp-block-jetpack-podcast-player{overflow:hidden}.wp-block-jetpack-podcast-player audio{display:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player{--jetpack-podcast-player-primary:#000;--jetpack-podcast-player-secondary:#ccc;--jetpack-podcast-player-background:#fff;padding-top:0;padding-bottom:0;color:var(--jetpack-podcast-player-secondary);background-color:var(--jetpack-podcast-player-background)}.wp-block-jetpack-podcast-player .jetpack-podcast-player:not(.has-secondary){color:#ccc}.wp-block-jetpack-podcast-player .jetpack-podcast-player:not(.has-background){background-color:#fff}.wp-block-jetpack-podcast-player .jetpack-podcast-player a,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:active,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:focus,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:hover,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:visited{box-shadow:none;text-decoration:none;border:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player a:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-podcast-player-secondary);outline-offset:2px}.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link,.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:active,.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:visited{color:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:focus,.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:hover{color:inherit;color:var(--jetpack-podcast-player-primary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__header{display:flex;flex-direction:column}.wp-block-jetpack-podcast-player .jetpack-podcast-player__current-track-info{display:flex;padding:24px}.wp-block-jetpack-podcast-player .jetpack-podcast-player__cover{width:80px;margin-right:24px;flex-shrink:0}.wp-block-jetpack-podcast-player .jetpack-podcast-player__cover-image{width:80px;height:80px;padding:0;border:0;max-width:100%}.wp-block-jetpack-podcast-player h2.jetpack-podcast-player__title{display:flex;flex-direction:column;width:100%;margin:0;padding:0;letter-spacing:0;color:inherit}.wp-block-jetpack-podcast-player h2.jetpack-podcast-player__title:after,.wp-block-jetpack-podcast-player h2.jetpack-podcast-player__title:before{display:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player__current-track-title{font-size:24px;margin:0 0 10px;color:var(--jetpack-podcast-player-primary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__current-track-title:not(.has-primary){color:#000}.wp-block-jetpack-podcast-player .jetpack-podcast-player__podcast-title{font-size:16px;margin:0;color:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player__tracks{list-style-type:none;display:flex;flex-direction:column;margin:24px 0 0;padding:0 0 15px}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track{margin:0;font-size:16px;line-height:1.8;color:var(--jetpack-podcast-player-secondary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track:not(.is-active):not(.has-secondary){color:#ccc}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.is-active{font-weight:700;color:var(--jetpack-podcast-player-primary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.is-active:not(.has-primary){color:#000}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-link{display:flex;flex-flow:row nowrap;justify-content:space-between;padding:10px 24px 10px 22px;transition:none}.wp-block-jetpack-podcast-player .is-error .jetpack-podcast-player__track.is-active .jetpack-podcast-player__track-link{padding-bottom:0}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon{flex:22px 0 0;fill:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon svg{display:block;width:22px;height:22px;margin-top:3.4px;fill:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--error{fill:#cc1818}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.has-primary .jetpack-podcast-player__track-status-icon--error{fill:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title{flex-grow:1;padding:0 15px}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link{display:inline-block;height:27px;margin-left:5px;vertical-align:top}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link,.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:active,.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:visited{color:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:focus,.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:hover{color:inherit;color:var(--jetpack-podcast-player-secondary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link svg{display:block;width:27px;height:27px;fill:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-duration{word-break:normal}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-description{order:99;padding:0 24px;margin:0 0 24px;font-size:16px;line-height:1.8;color:inherit;overflow:hidden;max-height:7.2em}@supports(display:-webkit-box){.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:none}}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-error{display:block;margin-left:59px;margin-bottom:10px;font-size:.8em;font-weight:400;color:#cc1818}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-error>span{color:var(--jetpack-podcast-player-secondary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-error>span:not(.has-secondary){color:#ccc}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.has-primary .jetpack-podcast-player__track-error{color:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player__error{padding:24px;margin:0;color:#cc1818;font-size:.8em;font-weight:400}@supports((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--playing{background-image:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--playing:before{display:block;content:"";width:100%;height:100%;background-color:var(--jetpack-podcast-player-primary);background-image:none;-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg width='18' height='18' viewBox='0 0 4.763 4.763' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath class='st0' d='M1.65 1.204a.793.793 0 01-.476.159H.327c-.159 0-.264.106-.264.264v1.508c0 .16.105.265.264.265h1.111c.08.053.133.106.212.159l.926.688c.106.079.212.026.212-.106V.595c0-.132-.106-.185-.212-.105z' stroke-width='.265'/%3E%3Cpath class='st1' d='M3.48.33S4.512.118 4.512 2.367 3.48 4.431 3.48 4.431' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3Cpath class='st1' d='M3.13 1.362s.688-.106.688 1.005S3.13 3.4 3.13 3.4' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3C/svg%3E");mask:url("data:image/svg+xml;charset=utf-8,%3Csvg width='18' height='18' viewBox='0 0 4.763 4.763' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath class='st0' d='M1.65 1.204a.793.793 0 01-.476.159H.327c-.159 0-.264.106-.264.264v1.508c0 .16.105.265.264.265h1.111c.08.053.133.106.212.159l.926.688c.106.079.212.026.212-.106V.595c0-.132-.106-.185-.212-.105z' stroke-width='.265'/%3E%3Cpath class='st1' d='M3.48.33S4.512.118 4.512 2.367 3.48 4.431 3.48 4.431' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3Cpath class='st1' d='M3.13 1.362s.688-.106.688 1.005S3.13 3.4 3.13 3.4' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3C/svg%3E");max-height:22px;-webkit-mask-position:0 0;mask-position:0 0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;max-width:20px;margin:4px 2px 0 0}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--playing svg{display:none}}.wp-block-jetpack-podcast-player.is-default .jetpack-podcast-player__track-title{padding-left:0}.wp-block-jetpack-podcast-player.is-default .jetpack-audio-player,.wp-block-jetpack-podcast-player.is-default .jetpack-podcast-player__track-status-icon{display:none}.jetpack-ratings-button{cursor:pointer}.jetpack-ratings-button:focus{border:none;outline:none}.wp-block-jetpack-rating-star{margin-bottom:1.5em;line-height:0;stroke-width:0}.wp-block-jetpack-rating-star .is-rating-unfilled{fill-opacity:.33}.wp-block-jetpack-rating-star .jetpack-ratings-button{display:inline-flex;border-radius:2px}.wp-block-jetpack-rating-star .jetpack-ratings-button:focus{box-shadow:0 0 0 1px currentColor;outline:2px solid transparent}.wp-block-jetpack-rating-star>p{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.wp-block-jetpack-rating-star>span{display:inline-flex!important;margin-right:.3em}.wp-block-jetpack-rating-star .jetpack-ratings-button span,.wp-block-jetpack-rating-star>span span{flex-shrink:0;width:12px;overflow:hidden;display:inline-flex}.wp-block-jetpack-rating-star .jetpack-ratings-button span svg,.wp-block-jetpack-rating-star>span span svg{flex-shrink:0}.wp-block-jetpack-rating-star .jetpack-ratings-button span:nth-child(2n),.wp-block-jetpack-rating-star>span span:nth-child(2n){justify-content:flex-end}.wp-block-jetpack-rating-star svg{display:inline-block!important;max-width:none!important}.wp-block-jetpack-rating-star.is-style-outlined{stroke-width:2px}.wp-block-jetpack-rating-star.is-style-outlined .is-rating-unfilled{fill:transparent}.wp-block-jetpack-rating-star .jetpack-ratings-button{margin-right:.3em}.jetpack-memberships-modal #TB_title{display:none}#TB_window.jetpack-memberships-modal{background-color:transparent;background-image:url(https://s0.wp.com/i/loading/dark-200.gif);background-size:50px;background-repeat:no-repeat;background-position:center 150px;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;border:none;height:100%}#TB_window.jetpack-memberships-modal,.jetpack-memberships-modal #TB_iframeContent{margin:0!important;bottom:0;left:0;position:absolute;right:0;top:0;width:100%!important}.jetpack-memberships-modal #TB_iframeContent{height:100%!important}BODY.modal-open{overflow:hidden}.wp-block-jetpack-recurring-payments.aligncenter .wp-block-jetpack-button{text-align:center}.wp-block-jetpack-recurring-payments .wp-block-jetpack-button{color:#fff}.wp-block-jetpack-recurring-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;width:100%}.wp-block-jetpack-recurring-payments .components-base-control__label{text-align:left}.wp-block-jetpack-recurring-payments .components-placeholder{min-height:150px;padding:24px}.wp-block-jetpack-recurring-payments .components-placeholder__fieldset{max-width:500px}.wp-block-jetpack-recurring-payments .components-placeholder__fieldset p{font-size:13px;margin:20px 0 10px}.wp-block-jetpack-recurring-payments .components-placeholder__fieldset p:first-child{margin-top:0}.wp-block-jetpack-recurring-payments .components-placeholder__instructions .components-select-control__input{padding:0 24px 0 8px}.wp-block-jetpack-recurring-payments .components-placeholder .components-placeholder__instructions{display:block}.wp-block-jetpack-recurring-payments .components-placeholder label{font-size:13px}.wp-block-jetpack-recurring-payments .editor-rich-text__inline-toolbar{pointer-events:none}.wp-block-jetpack-recurring-payments .editor-rich-text__inline-toolbar .components-toolbar{pointer-events:all}.wp-block-jetpack-recurring-payments .membership-button__add-amount{margin-right:4px}.wp-block-jetpack-recurring-payments .membership-button__disclaimer{color:var(--color-gray-200);flex-basis:100%;margin:0;font-style:italic}.wp-block-jetpack-recurring-payments .membership-button__disclaimer a{color:var(--color-gray-400);line-height:36px}.wp-block-jetpack-recurring-payments .membership-button__field-button{margin-right:4px}.wp-block-jetpack-recurring-payments .membership-button__field-error .components-text-control__input{border:1px solid #d63638}.wp-block-jetpack-recurring-payments .membership-button__field-price{width:65%}.wp-block-jetpack-recurring-payments .membership-button__price-container{display:flex;flex-wrap:wrap}.wp-block-jetpack-recurring-payments .membership-button__price-container .components-input-control__container{top:4px}.wp-block-jetpack-recurring-payments .membership-button__price-container div.membership-button__field-currency{border-right:10px solid transparent}.wp-block-jetpack-recurring-payments .membership-button__price-container p{margin-top:0}.wp-block-jetpack-recurring-payments.disclaimer-only{box-sizing:content-box;font-size:13px;margin:0 -14px;padding:14px;text-align:center;transform:translateY(14px);background:rgba(30,30,30,.62)}.is-dark-theme .wp-block-jetpack-recurring-payments.disclaimer-only{background:hsla(0,0%,100%,.65)}.wp-block-jetpack-recurring-payments .wp-block-jetpack-membership-button_notification{display:block}.jp-related-posts-i2__row{margin-left:-10px;margin-right:-10px;display:flex;margin-top:1.5rem}.jp-related-posts-i2__row:first-child{margin-top:0}.jp-related-posts-i2__row[data-post-count="3"] .jp-related-posts-i2__post{max-width:calc(33% - 20px)}.jp-related-posts-i2__row[data-post-count="1"] .jp-related-posts-i2__post,.jp-related-posts-i2__row[data-post-count="2"] .jp-related-posts-i2__post{max-width:calc(50% - 20px)}.jp-related-posts-i2__post{flex-grow:1;flex-basis:0;margin:0 10px;display:flex;flex-direction:column}.jp-related-posts-i2__post-context,.jp-related-posts-i2__post-date,.jp-related-posts-i2__post-heading,.jp-related-posts-i2__post-img-link{flex-direction:row}.jp-related-posts-i2__post-image-placeholder,.jp-related-posts-i2__post-img-link{order:-1}.jp-related-posts-i2__post-heading{margin:.5rem 0;font-size:1rem;line-height:1.2em}.jp-related-posts-i2__post-link{display:block;width:100%;line-height:1.2em;margin:.2em 0}.jp-related-posts-i2__post-img{width:100%}.jp-related-posts-i2__post-image-placeholder{display:block;position:relative;margin:0 auto;max-width:350px}.jp-related-posts-i2__post-image-placeholder-icon{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px)}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__row{margin:0;display:block}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__post{max-width:none;margin:1rem 0 0}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__post-image-placeholder{max-width:350px;margin:0}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__post-img-link{margin-top:1rem}.wp-block-jetpack-repeat-visitor .components-notice{margin:1em 0 0}.wp-block-jetpack-repeat-visitor .components-notice__content{color:var(--color-black)}.wp-block-jetpack-repeat-visitor .components-radio-control__option{text-align:left}.wp-block-jetpack-repeat-visitor .components-notice__content{margin:.5em 0;font-size:1em}.wp-block-jetpack-repeat-visitor .components-notice__content .components-base-control{display:inline-block;max-width:8em;vertical-align:middle}.wp-block-jetpack-repeat-visitor .components-notice__content .components-base-control .components-base-control__field{margin-bottom:0}.wp-block-jetpack-repeat-visitor-placeholder{min-height:inherit}.wp-block-jetpack-repeat-visitor-placeholder .components-placeholder__label svg{margin-right:.5ch}.wp-block-jetpack-repeat-visitor-placeholder .components-placeholder__fieldset{flex-wrap:nowrap}.wp-block-jetpack-repeat-visitor-placeholder .components-placeholder__fieldset .components-base-control{flex-basis:100%;margin-bottom:0}.wp-block-jetpack-repeat-visitor-placeholder .components-base-control__help{color:var(--muriel-hot-red-500);font-size:13px}.wp-block-jetpack-repeat-visitor--is-unselected .wp-block-jetpack-repeat-visitor-placeholder{display:none}.wp-block-jetpack-repeat-visitor-threshold{margin-right:20px}.wp-block-jetpack-repeat-visitor-threshold .components-text-control__input{margin-left:12px;text-align:center;width:5em}.block-editor-inserter__preview .wp-block-jetpack-repeat-visitor{padding:16px}.block-editor-inserter__preview .wp-block-jetpack-repeat-visitor>.block-editor-inner-blocks>.block-editor-block-list__layout{margin:0}.wp-block-jetpack-revue .components-base-control{margin-bottom:16px}.wp-block-jetpack-revue .components-base-control__label{display:block}.wp-block-jetpack-revue .components-placeholder__learn-more{margin-top:1em}.wp-block-jetpack-revue .components-text-control__input{color:#787c82}.wp-block-jetpack-revue__form{display:none}.wp-block-jetpack-revue__form.is-visible{display:block}.wp-block-jetpack-revue__form>div{margin-bottom:.75em}.wp-block-jetpack-revue .wp-block-button{margin-top:0}.wp-block-jetpack-revue input{display:block;margin-top:.25em;width:100%}@media screen and (min-width:600px){.wp-block-jetpack-revue input{max-width:300px}}.wp-block-jetpack-revue label{display:block;font-weight:700}.wp-block-jetpack-revue .required{color:#a7aaad;font-weight:400}.wp-block-jetpack-revue__message{display:none}.wp-block-jetpack-revue__message.is-visible{display:block}.wp-block-jetpack-revue__fallback{display:none}.wp-block-jetpack-send-a-message .block-editor-block-list__layout .wp-block{margin:0}.wp-block-jetpack-send-a-message .block-editor-inserter,.wp-block-jetpack-send-a-message .block-list-appender{display:none}div.wp-block-jetpack-whatsapp-button{margin-right:5px;display:flex}div.wp-block-jetpack-whatsapp-button a.whatsapp-block__button{background:#25d366;box-sizing:border-box;color:#fff;display:block;padding:8px 16px 8px 56px;border-radius:8px;text-decoration:none;white-space:nowrap;min-height:50px;line-height:36px;border:none;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:500;font-size:20px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' d='M24 11.69c0 6.458-5.274 11.692-11.782 11.692-2.066 0-4.007-.528-5.695-1.455L0 24l2.127-6.273a11.568 11.568 0 01-1.691-6.036C.436 5.234 5.711 0 12.218 0 18.726 0 24 5.234 24 11.69zM12.218 1.863c-5.462 0-9.905 4.41-9.905 9.829 0 2.15.7 4.142 1.886 5.763l-1.237 3.65 3.807-1.21a9.9 9.9 0 005.45 1.626c5.461 0 9.905-4.409 9.905-9.829 0-5.42-4.444-9.83-9.906-9.83zm5.95 12.521c-.073-.119-.265-.19-.554-.334-.289-.143-1.71-.837-1.973-.932-.265-.095-.458-.143-.65.143-.193.287-.746.932-.915 1.123-.169.192-.337.216-.626.073-.288-.143-1.219-.446-2.322-1.422-.858-.76-1.438-1.697-1.607-1.985-.168-.286-.017-.441.127-.584.13-.128.29-.335.433-.502.145-.167.193-.286.289-.478.097-.191.048-.358-.024-.502-.072-.143-.65-1.553-.89-2.127-.241-.574-.482-.478-.65-.478-.169 0-.361-.024-.554-.024-.193 0-.506.072-.77.358-.265.287-1.01.98-1.01 2.39 0 1.41 1.034 2.773 1.178 2.964.145.19 1.998 3.179 4.934 4.326 2.936 1.147 2.936.764 3.466.716.529-.047 1.708-.693 1.95-1.362.24-.67.24-1.243.168-1.363z'/%3E%3C/svg%3E");background-position:16px;background-repeat:no-repeat;background-size:32px 32px}div.wp-block-jetpack-whatsapp-button.is-color-light a.whatsapp-block__button{color:#465b64;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%2523465B64' d='M24 11.69c0 6.458-5.274 11.692-11.782 11.692-2.066 0-4.007-.528-5.695-1.455L0 24l2.127-6.273a11.568 11.568 0 01-1.691-6.036C.436 5.234 5.711 0 12.218 0 18.726 0 24 5.234 24 11.69zM12.218 1.863c-5.462 0-9.905 4.41-9.905 9.829 0 2.15.7 4.142 1.886 5.763l-1.237 3.65 3.807-1.21a9.9 9.9 0 005.45 1.626c5.461 0 9.905-4.409 9.905-9.829 0-5.42-4.444-9.83-9.906-9.83zm5.95 12.521c-.073-.119-.265-.19-.554-.334-.289-.143-1.71-.837-1.973-.932-.265-.095-.458-.143-.65.143-.193.287-.746.932-.915 1.123-.169.192-.337.216-.626.073-.288-.143-1.219-.446-2.322-1.422-.858-.76-1.438-1.697-1.607-1.985-.168-.286-.017-.441.127-.584.13-.128.29-.335.433-.502.145-.167.193-.286.289-.478.097-.191.048-.358-.024-.502-.072-.143-.65-1.553-.89-2.127-.241-.574-.482-.478-.65-.478-.169 0-.361-.024-.554-.024-.193 0-.506.072-.77.358-.265.287-1.01.98-1.01 2.39 0 1.41 1.034 2.773 1.178 2.964.145.19 1.998 3.179 4.934 4.326 2.936 1.147 2.936.764 3.466.716.529-.047 1.708-.693 1.95-1.362.24-.67.24-1.243.168-1.363z'/%3E%3C/svg%3E")}div.wp-block-jetpack-whatsapp-button.alignleft{float:none;justify-content:flex-start}div.wp-block-jetpack-whatsapp-button.aligncenter{justify-content:center}div.wp-block-jetpack-whatsapp-button.alignright{float:none;justify-content:flex-end}div.wp-block-jetpack-whatsapp-button.has-no-text a.whatsapp-block__button{padding-left:48px}div.wp-block-jetpack-whatsapp-button:hover{opacity:.9}div.wp-block-jetpack-send-a-message>div.wp-block-jetpack-whatsapp-button>a.whatsapp-block__button:focus{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' d='M24 11.69c0 6.458-5.274 11.692-11.782 11.692-2.066 0-4.007-.528-5.695-1.455L0 24l2.127-6.273a11.568 11.568 0 01-1.691-6.036C.436 5.234 5.711 0 12.218 0 18.726 0 24 5.234 24 11.69zM12.218 1.863c-5.462 0-9.905 4.41-9.905 9.829 0 2.15.7 4.142 1.886 5.763l-1.237 3.65 3.807-1.21a9.9 9.9 0 005.45 1.626c5.461 0 9.905-4.409 9.905-9.829 0-5.42-4.444-9.83-9.906-9.83zm5.95 12.521c-.073-.119-.265-.19-.554-.334-.289-.143-1.71-.837-1.973-.932-.265-.095-.458-.143-.65.143-.193.287-.746.932-.915 1.123-.169.192-.337.216-.626.073-.288-.143-1.219-.446-2.322-1.422-.858-.76-1.438-1.697-1.607-1.985-.168-.286-.017-.441.127-.584.13-.128.29-.335.433-.502.145-.167.193-.286.289-.478.097-.191.048-.358-.024-.502-.072-.143-.65-1.553-.89-2.127-.241-.574-.482-.478-.65-.478-.169 0-.361-.024-.554-.024-.193 0-.506.072-.77.358-.265.287-1.01.98-1.01 2.39 0 1.41 1.034 2.773 1.178 2.964.145.19 1.998 3.179 4.934 4.326 2.936 1.147 2.936.764 3.466.716.529-.047 1.708-.693 1.95-1.362.24-.67.24-1.243.168-1.363z'/%3E%3C/svg%3E");background-position:16px;background-repeat:no-repeat;background-size:32px 32px}.jetpack-whatsapp-button__phonenumber .components-base-control{margin-bottom:0}.jetpack-whatsapp-button__phonenumber input.components-text-control__input{margin-bottom:5px}.jetpack-whatsapp-button__phonenumber select.components-select-control__input{width:105px;min-height:30px;padding-left:10px}.jetpack-whatsapp-button__phonenumber .components-placeholder__label svg{margin-right:6px}.jetpack-whatsapp-error{display:inline-flex;margin-bottom:10px}.jetpack-whatsapp-error span,.jetpack-whatsapp-error svg{color:red;fill:red;vertical-align:middle}.jetpack-whatsapp-error svg{margin:-3px 5px 0 0}.jetpack-whatsapp-button__popover .components-popover__content{padding:12px;min-width:260px}.wp-block[data-align=center] .wp-block-jetpack-whatsapp-button{justify-content:center}.jetpack-seo-message-box{background-color:#e0e0e0;border-radius:4px}.jetpack-seo-message-box textarea{width:100%}.jetpack-seo-character-count{padding-bottom:5px;padding-left:5px}.jetpack-clipboard-input{display:flex}.jetpack-clipboard-input .components-clipboard-button,.jetpack-clipboard-input .components-text-control__input{min-height:36px}.jetpack-clipboard-input .components-clipboard-button{margin-left:6px}.simple-payments__loading{animation:simple-payments-loading 1.6s ease-in-out infinite}@keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-description{white-space:pre-wrap}.jetpack-simple-payments-product{display:flex;flex-direction:column}.jetpack-simple-payments-product-image{flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}.jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;left:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{align-items:flex-start;display:flex}.jetpack-simple-payments-items{flex:0 0 auto;margin-right:10px}input[type=number].jetpack-simple-payments-items-number{background:#fff;font-size:16px;line-height:1;max-width:60px;padding:4px 8px}@media screen and (min-width:400px){.jetpack-simple-payments-product{flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{flex-basis:70%;padding-left:1em}}.wp-block-jetpack-simple-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;display:grid;grid-template-columns:200px auto;grid-column-gap:10px}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__field{margin-bottom:1em}.wp-block-jetpack-simple-payments .simple-payments__field textarea{display:block}.wp-block-jetpack-simple-payments .simple-payments__field input,.wp-block-jetpack-simple-payments .simple-payments__field textarea{font:inherit}.wp-block-jetpack-simple-payments img{max-width:100%}.wp-block-jetpack-simple-payments .simple-payments__field.simple-payments__field-content .components-base-control__label,.wp-block-jetpack-simple-payments .simple-payments__field.simple-payments__field-email .components-base-control__label,.wp-block-jetpack-simple-payments .simple-payments__field.simple-payments__field-title .components-base-control__label{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-text-control__input,.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-textarea-control__input{border-color:#d63638}.wp-block-jetpack-simple-payments .simple-payments__price-container{display:flex;flex-wrap:wrap}.wp-block-jetpack-simple-payments .simple-payments__price-container .components-base-control__label,.wp-block-jetpack-simple-payments .simple-payments__price-container .components-input-control__label{margin:0 0 4px;font-weight:400;display:block}.wp-block-jetpack-simple-payments .simple-payments__price-container select.components-select-control__input{-webkit-appearance:none;-moz-appearance:none;max-width:none;height:auto;padding:3px 8px 1px}.wp-block-jetpack-simple-payments .simple-payments__price-container div.components-input-control__container{position:relative}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field-currency{margin-right:5px}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field-currency .components-input-control__container{width:calc(100% - 5px)}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field-price .components-base-control__field{display:flex;flex-direction:column}.wp-block-jetpack-simple-payments .simple-payments__price-container .help-message{flex:1 1 100%;margin-top:0}.wp-block-jetpack-simple-payments .simple-payments__price-container .components-input-control__suffix>div{align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;right:0}.wp-block-jetpack-simple-payments .simple-payments__field-email .components-text-control__input{max-width:400px}.wp-block-jetpack-simple-payments .simple-payments__field-multiple .components-toggle-control__label{line-height:1.4em}.wp-block-jetpack-simple-payments .simple-payments__field-content .components-textarea-control__input{min-height:32px;width:100%;padding:8px}.jetpack-simple-payments__purchase-link-text .components-base-control{margin-bottom:0}.jetpack-simple-payments__purchase-link-text input.components-text-control__input{margin-bottom:5px}.wp-block-jetpack-slideshow{margin-bottom:1.5em;position:relative}.wp-block-jetpack-slideshow [tabindex="-1"]:focus{outline:0}.wp-block-jetpack-slideshow.wp-amp-block>.wp-block-jetpack-slideshow_container{opacity:1}.wp-block-jetpack-slideshow.wp-amp-block.wp-block-jetpack-slideshow__autoplay.wp-block-jetpack-slideshow__autoplay-playing .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow.wp-amp-block.wp-block-jetpack-slideshow__autoplay .wp-block-jetpack-slideshow_button-play{display:block}.wp-block-jetpack-slideshow.wp-amp-block.wp-block-jetpack-slideshow__autoplay.wp-block-jetpack-slideshow__autoplay-playing .wp-block-jetpack-slideshow_button-play{display:none}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container{width:100%;overflow:hidden;opacity:0}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container.wp-swiper-initialized{opacity:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container .wp-block-jetpack-slideshow_slide,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container .wp-block-jetpack-slideshow_swiper-wrapper{padding:0;margin:0;line-height:normal}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container ul.wp-block-jetpack-slideshow_swiper-wrapper{display:flex}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{display:flex;height:100%;width:100%}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure{align-items:center;display:flex;height:100%;justify-content:center;margin:0;position:relative;width:100%}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure .wp-block-jetpack-slideshow_image{pointer-events:none;-webkit-user-select:none;user-select:none}.wp-block-jetpack-slideshow .swiper-container-fade .wp-block-jetpack-slideshow_slide:not(.swiper-slide-active){opacity:0!important}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_image{display:block;height:auto;max-height:100%;max-width:100%;width:auto;-o-object-fit:contain;object-fit:contain}.wp-block-jetpack-slideshow .amp-carousel-button,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{background-color:rgba(0,0,0,.5);background-position:50%;background-repeat:no-repeat;background-size:24px;border:0;border-radius:4px;box-shadow:none;height:48px;margin:-24px 0 0;padding:0;transition:background-color .25s;width:48px}.wp-block-jetpack-slideshow .amp-carousel-button:focus,.wp-block-jetpack-slideshow .amp-carousel-button:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev:hover{background-color:rgba(0,0,0,.75)}.wp-block-jetpack-slideshow .amp-carousel-button:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev:focus{outline:thin dotted #fff;outline-offset:-4px}.wp-block-jetpack-slideshow .amp-carousel-button{margin:0}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{display:none}.wp-block-jetpack-slideshow .swiper-button-next:after,.wp-block-jetpack-slideshow .swiper-button-prev:after,.wp-block-jetpack-slideshow .swiper-container-rtl .swiper-button-next:after,.wp-block-jetpack-slideshow .swiper-container-rtl .swiper-button-prev:after{content:""}.wp-block-jetpack-slideshow .amp-carousel-button-next,.wp-block-jetpack-slideshow .swiper-button-next.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .swiper-button-prev.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .wp-block-jetpack-slideshow_button-prev,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z' fill='%23fff'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E")}.wp-block-jetpack-slideshow .amp-carousel-button-prev,.wp-block-jetpack-slideshow .swiper-button-prev.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .swiper-button-next.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M18 4.12L10.12 12 18 19.88 15.88 22l-10-10 10-10z' fill='%23fff'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E")}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z' fill='%23fff'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");display:none;margin-top:0;position:absolute;right:10px;top:10px;z-index:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_autoplay-paused .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E")}.wp-block-jetpack-slideshow[data-autoplay=true] .wp-block-jetpack-slideshow_button-pause{display:block}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption{background-color:rgba(0,0,0,.5);box-sizing:border-box;bottom:0;color:#fff;cursor:text;left:0;margin:0!important;max-height:100%;opacity:1;padding:.75em;position:absolute;right:0;text-align:initial;z-index:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption a{color:inherit}.wp-block-jetpack-slideshow[data-autoplay=true] .wp-block-jetpack-slideshow_caption.gallery-caption{max-height:calc(100% - 68px)}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets{bottom:0;line-height:24px;padding:10px 0 2px;position:relative}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet{background:currentColor;color:currentColor;height:16px;opacity:.5;transform:scale(.75);transition:opacity .25s,transform .25s;vertical-align:top;width:16px}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet:hover{opacity:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet:focus{outline:thin dotted;outline-offset:0}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet-active,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet[selected]{background-color:currentColor;opacity:1;transform:scale(1)}.wp-block-jetpack-slideshow_pagination.amp-pagination{text-align:center}.wp-block-jetpack-slideshow_pagination.amp-pagination .swiper-pagination-bullet{margin:0 4px;border-radius:100%;display:inline-block;padding:0;border:0}@media(min-width:600px){.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{display:block}}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container{overflow:visible;opacity:1;width:auto;height:auto}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container ul.wp-block-jetpack-slideshow_swiper-wrapper,.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure{display:block;margin-bottom:12px}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container ul.wp-block-jetpack-slideshow_swiper-wrapper,.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{list-style:none;margin-left:auto;margin-right:auto}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{display:inline-block;width:42%;margin-left:2%!important;margin-right:2%!important;height:auto;vertical-align:top}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption{position:relative;right:auto;bottom:auto;background-color:transparent;color:inherit;padding-top:0}.wp-block-jetpack-slideshow__add-item{margin-top:4px;width:100%}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button,.wp-block-jetpack-slideshow__add-item .components-form-file-upload{width:100%}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button:focus,.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button:hover{border:1px solid #949494}.wp-block-jetpack-slideshow_slide .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-jetpack-slideshow_slide.is-transient img{opacity:.3}.search-preview__display{border:1px solid #f6f7f7;font-family:arial,sans-serif;padding:10px 20px;word-wrap:break-word}.search-preview__title{color:#1a0dab;font-size:20px;line-height:26px;max-width:616px;margin-bottom:7px}.search-preview__title:hover{cursor:pointer;text-decoration:underline}.search-preview__url{color:#3c4043;font-size:14px;line-height:18.2px;max-width:616px;margin-bottom:8px}.search-preview__description{color:#3c4043;font-size:14px;font-weight:400;line-height:22.12px;max-width:616px}.facebook-preview{border:none;display:flex;overflow-x:auto;max-width:527px;margin:20px;-webkit-overflow-scrolling:touch}.facebook-preview__content{display:flex;max-width:100%;background-color:#f2f3f5}.facebook-preview__body{display:flex;flex-direction:column;padding:10px 12px;border:1px solid #dadde1;overflow:hidden;font-family:Helvetica,Arial,sans-serif}.facebook-preview__title{color:#1d2129;font-size:16px;font-weight:600;line-height:20px;max-height:100px;transition:color .1s ease-in-out}.facebook-preview__description{color:#606770;font-size:14px;line-height:20px;overflow-y:hidden}.facebook-preview__url{color:#606770;font-size:12px;line-height:11px;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.facebook-preview__article .facebook-preview__content{flex-direction:column;min-width:100%}.facebook-preview__article .facebook-preview__image{max-height:250px;display:flex;justify-content:center;align-items:center;overflow-y:hidden}.facebook-preview__article .facebook-preview__image img{height:auto;width:100%;max-width:527px}.facebook-preview__article .facebook-preview__body{height:auto;max-height:100px}.facebook-preview__article .facebook-preview__title{margin-bottom:1px}.facebook-preview__article .facebook-preview__description{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.facebook-preview__article .facebook-preview__url{margin-bottom:5px}.facebook-preview__website{max-height:158px;overflow:hidden}.facebook-preview__website .facebook-preview__image{flex-shrink:0;height:158px;width:158px;box-sizing:border-box;border:1px solid #dadde1;border-right:0}.facebook-preview__website .facebook-preview__image img{display:block;font-size:14px;height:auto;width:100%}.facebook-preview__website .facebook-preview__image:after{content:"";display:block;height:100%;width:100%;background:#fff}.facebook-preview__website .facebook-preview__body{width:100%;height:136px;justify-content:center}.facebook-preview__website .facebook-preview__title{margin-bottom:5px;max-height:110px;overflow-wrap:break-word}.facebook-preview__website .facebook-preview__url{margin-bottom:5px}.facebook-preview__website .facebook-preview__description{max-height:80px}.twitter-preview{background-color:#fff;padding:20px;width:635px}.twitter-preview__container{display:grid;grid-template-columns:65px auto;margin-bottom:5px;margin-right:24px}.twitter-preview__container .twitter-preview__sidebar{display:grid;grid-template-rows:35px auto;justify-items:center}.twitter-preview__container .twitter-preview__sidebar .twitter-preview__profile-image img{height:30px;width:30px;border-radius:15px;-o-object-fit:cover;object-fit:cover}.twitter-preview__container .twitter-preview__sidebar .twitter-preview__connector{width:2px;background-color:#8c8f94}.twitter-preview__container .twitter-preview__name{font-weight:700;font-size:16px;line-height:19px}.twitter-preview__container .twitter-preview__date,.twitter-preview__container .twitter-preview__screen-name{color:#667886;font-size:16px;line-height:18px;letter-spacing:-.3px;margin-left:15px}.twitter-preview__container .twitter-preview__content{margin:7px 0}.twitter-preview__container .twitter-preview__content .twitter-preview__text{font-size:14px;line-height:18px;letter-spacing:-.3px;color:#787c82;white-space:pre-wrap;word-break:break-word}.twitter-preview__container .twitter-preview__content .twitter-preview__media{border-radius:15px;overflow:hidden;display:grid;grid-gap:2px;grid-template-areas:"a";height:300px;margin-top:10px}.twitter-preview__container .twitter-preview__content .twitter-preview__media img,.twitter-preview__container .twitter-preview__content .twitter-preview__media video{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:first-child,.twitter-preview__container .twitter-preview__content .twitter-preview__media video:first-child{grid-area:a}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:nth-child(2),.twitter-preview__container .twitter-preview__content .twitter-preview__media video:nth-child(2){grid-area:b}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:nth-child(3),.twitter-preview__container .twitter-preview__content .twitter-preview__media video:nth-child(3){grid-area:c}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:nth-child(4),.twitter-preview__container .twitter-preview__content .twitter-preview__media video:nth-child(4){grid-area:d}.twitter-preview__container .twitter-preview__content .twitter-preview__media.twitter-preview__media-children-2{grid-template-areas:"a b"}.twitter-preview__container .twitter-preview__content .twitter-preview__media.twitter-preview__media-children-3{grid-template-areas:"a b" "a c"}.twitter-preview__container .twitter-preview__content .twitter-preview__media.twitter-preview__media-children-4{grid-template-areas:"a b" "c d"}.twitter-preview__container .twitter-preview__content .twitter-preview__quote-tweet{margin-top:10px;min-height:200px}.twitter-preview__container .twitter-preview__content .twitter-preview__quote-tweet .twitter-preview__quote-tweet-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.twitter-preview__container .twitter-preview__content .twitter-preview__card{margin-top:10px;overflow:hidden;border:1px solid #e1e8ed;border-radius:12px}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary{display:grid}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary.twitter-preview__card-has-image{height:125px;display:grid;grid-template-columns:125px auto}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary.twitter-preview__card-has-image .twitter-preview__card-body{border-left:1px solid #e1e8ed;height:100%}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary.twitter-preview__card-has-image .twitter-preview__card-description{-webkit-line-clamp:3}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary_large_image{display:grid;grid-template-rows:254px auto}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-image{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-body{padding:.75em;text-decoration:none;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;color:#000;text-align:left;line-height:1.3em;overflow:hidden}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-title{max-height:1.3em;white-space:nowrap;font-weight:700;font-size:1em;margin:0 0 .15em;overflow:hidden;text-overflow:ellipsis}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-description{margin-top:.32333em;max-height:3.9em;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-url{text-transform:lowercase;color:#8899a6;max-height:1.3em;white-space:nowrap;overflow-inline:hidden;text-overflow:ellipsis;margin-top:.32333em}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-url svg{fill:#8899a6;height:15px;width:15px;margin:0 2px -4px 0}.twitter-preview__container .twitter-preview__footer{display:grid;grid-template-columns:repeat(4,auto)}.twitter-preview__container .twitter-preview__footer svg{fill:#787c82;height:16px;width:16px}.jetpack-social-previews__modal .components-modal__header{margin:0}.jetpack-social-previews__modal .components-modal__content{padding:0}.jetpack-social-previews__modal-previews{display:flex;flex-direction:column;height:100%}.jetpack-social-previews__modal-previews .components-tab-panel__tabs{display:flex;flex-direction:row;justify-content:center;padding:12px;max-width:none}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button{outline:0;margin:3px 0;font-size:0;white-space:nowrap}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button svg{display:block;fill:currentColor}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button.is-active,.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.jetpack-social-previews__modal-previews .components-tab-panel__tab-content{padding:10px;background-color:#fff;flex:1}.jetpack-social-previews__modal-previews .components-tab-panel__tab-content>div{display:flex;justify-content:center}.jetpack-social-previews__modal-previews .twitter-preview__summary{max-width:100%}@media(min-width:600px){.jetpack-social-previews__modal-previews{width:calc(100vw - 40px)}}@media(min-width:960px){.jetpack-social-previews__modal-previews{flex-direction:row;width:920px;min-height:500px}.jetpack-social-previews__modal-previews .components-tab-panel__tabs{flex-direction:column;justify-content:flex-start;padding:24px}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button{font-size:13px}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button>svg{margin-right:8px}.jetpack-social-previews__modal-previews .components-tab-panel__tab-content{padding:40px}}.jetpack-social-previews__modal-upgrade{padding:2em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-illustration{width:100%;max-width:351px;height:auto}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-description{margin-bottom:1em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-heading{font-size:2em;line-height:1.15}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list{list-style:none;margin-bottom:2em;padding-left:1em;font-size:1.1em;line-height:1.4}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list li{position:relative;margin-bottom:12px}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list li:before{content:"✓";position:absolute;left:-20px;color:#4ab866}@media(min-width:600px){.jetpack-social-previews__modal-upgrade{width:80vw;max-width:870px;display:grid;grid-gap:3em;grid-template-columns:1fr 1fr;padding-top:4em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-illustration{grid-column:2;grid-row:1;max-width:100%;padding-right:2em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-description{grid-column:1;grid-row:1;margin-bottom:0;padding:0 1em 1em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-heading{margin-top:0}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list{padding-left:0}}@media(min-width:782px){.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-description{padding:0 2em 2em}}.jetpack-gutenberg-social-icons{margin-bottom:1em}.jetpack-gutenberg-social-icons .jetpack-gutenberg-social-icon.jetpack-social-previews__icon{margin-right:5px;fill:currentColor}.jetpack-mdc-icon-button{display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;border:0;padding:0;fill:currentColor;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;overflow:hidden;background-color:transparent;text-decoration:none!important;color:#fff}.jetpack-mdc-icon-button.outlined{background-color:rgba(0,0,0,.5)}.jetpack-mdc-icon-button.outlined:hover{background-color:rgba(0,0,0,.3)}.jetpack-mdc-icon-button.outlined-w{background-color:hsla(0,0%,100%,.2)}.jetpack-mdc-icon-button.outlined-w:hover{background-color:hsla(0,0%,100%,.3)}.jetpack-mdc-icon-button.bordered{border:2px solid #fff}.jetpack-mdc-icon-button.circle-icon{border-radius:50%}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.wp-story-display-contents{display:contents}.wp-story-app{padding:10px}.wp-story-container{display:block;height:320px;width:180px;margin-left:auto;margin-right:auto;margin-bottom:24px;position:relative;list-style:none;padding:0;z-index:1;border-radius:15px;overflow:hidden;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 12px rgba(0,0,0,.25);transition:box-shadow .3s ease-in-out,transform .3s cubic-bezier(.18,.14,.25,1);break-inside:avoid;page-break-inside:avoid}.wp-story-container figure{transition:transform .3s cubic-bezier(.18,.14,.25,1)}.wp-story-container:hover{box-shadow:0 4px 12px rgba(0,0,0,.3);transform:scale3d(1.03,1.03,1)}.wp-story-container:hover figure{transform:scale3d(1.07,1.07,1)}.wp-story-container button{box-shadow:none;text-shadow:none;background-color:transparent;border:0;outline-width:0;cursor:pointer}.wp-story-container.wp-story-initialized{opacity:1}.wp-story-container.wp-story-clickable{cursor:pointer}.wp-story-container .wp-story-slide,.wp-story-container .wp-story-wrapper{padding:0;margin:0;line-height:normal;list-style-type:none}.wp-story-container .wp-story-wrapper{display:block;position:absolute;height:100%;bottom:0;top:0;left:0;right:0;z-index:-1;border-radius:15px;background-color:#0e1112}.wp-story-container .wp-story-slide{display:flex;height:100%;width:100%}.wp-story-container .wp-story-slide figure{align-items:center;display:flex;height:100%;width:100%;justify-content:center;margin:0;position:relative;overflow:hidden;-o-object-fit:contain;object-fit:contain}.wp-story-container .wp-story-slide.is-loading{position:absolute;z-index:1;background-color:#484542;align-items:center;justify-content:center}.wp-story-container .wp-story-slide.is-loading.semi-transparent{background-color:rgba(72,69,66,.4980392156862745)}.wp-story-container .wp-story-slide.is-loading.transparent{background-color:transparent}@keyframes rotate-spinner{to{transform:rotate(1turn)}}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner{display:flex;align-items:center}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__inner,.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__outer{margin:auto;box-sizing:border-box;border:.1em solid transparent;border-radius:50%;animation:3s linear infinite;animation-name:rotate-spinner}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__outer{width:40px;height:40px;font-size:40px;border-top-color:#fff}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__inner{width:100%;height:100%;border-top-color:#c4c4c4;border-right-color:#c4c4c4;opacity:.4}.wp-story-container .wp-story-image,.wp-story-container .wp-story-video{display:block;height:auto;width:auto;max-height:100%;max-width:100%;margin:0;border:0}.wp-story-container .wp-story-image.wp-story-crop-wide,.wp-story-container .wp-story-video.wp-story-crop-wide{max-width:revert}.wp-story-container .wp-story-image.wp-story-crop-narrow,.wp-story-container .wp-story-video.wp-story-crop-narrow{max-height:revert}.wp-story-container .wp-story-controls,.wp-story-container .wp-story-meta{display:none}.wp-story-container .wp-story-overlay{width:100%;position:absolute;display:flex;align-items:center;justify-content:center;z-index:1;top:0;bottom:0;right:0;left:0}.wp-story-container .wp-story-overlay .wp-story-button-play,.wp-story-container .wp-story-overlay .wp-story-button-replay{cursor:pointer}.wp-story-container .wp-story-overlay .wp-story-embed-icon,.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand{position:absolute;top:0;right:0;margin:15px;padding:5px 3px;display:flex;align-items:center;background-color:rgba(0,0,0,.5);border-radius:5px;color:#fff}.wp-story-container .wp-story-overlay .wp-story-embed-icon *,.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand *{margin:0 2px}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand svg,.wp-story-container .wp-story-overlay .wp-story-embed-icon svg{fill:#fff;width:20px;height:20px}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand span,.wp-story-container .wp-story-overlay .wp-story-embed-icon span{color:#fff;line-height:20px;font-size:16px;font-weight:600;font-family:sans-serif}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand{background-color:transparent}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand svg{filter:drop-shadow(0 0 2px rgba(0,0,0,.6))}.wp-story-container.wp-story-disabled .wp-story-overlay,.wp-story-container.wp-story-ended .wp-story-overlay{background-color:hsla(0,0%,100%,.4)}.wp-story-container .wp-story-next-slide,.wp-story-container .wp-story-prev-slide{display:none;position:absolute}.wp-story-container .wp-story-next-slide button,.wp-story-container .wp-story-prev-slide button{border-width:0}.wp-story-container .wp-story-next-slide button:hover,.wp-story-container .wp-story-prev-slide button:hover{border-width:2px}.wp-story-container .wp-story-prev-slide{margin:auto;left:-84px}.wp-story-container .wp-story-next-slide{margin:auto;right:-84px}.wp-story-container .wp-story-pagination{position:absolute;text-align:center;z-index:2}.wp-story-container .wp-story-pagination-bullets{display:flex;position:absolute;margin:7px 10px;top:auto;right:0;left:0;bottom:0;overflow:hidden;transition:flex-basis 1s ease-in-out}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet{flex:1;justify-content:space-between;opacity:1;margin:0 2px;padding:6px 0;vertical-align:top}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet .wp-story-pagination-bullet-bar{min-width:12px;width:100%;height:4px;background:hsla(0,0%,100%,.6)}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet .wp-story-pagination-bullet-bar-progress{width:0;opacity:1;height:4px;background-color:#fff;transition:width .1s ease}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-ellipsis{flex:0 0 4px}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-ellipsis .wp-story-pagination-bullet-bar{min-width:6px}.wp-story-container .wp-story-controls{display:none;width:64px;flex-direction:row;justify-content:space-between;margin:0 10px;position:absolute;bottom:30px;z-index:3}@media(max-width:782px){.wp-story-container .wp-story-controls{bottom:50px;margin:0 16px}}.wp-story-container.wp-story-with-controls{overflow:visible;border-radius:0;box-shadow:none!important;transition:none!important}.wp-story-container.wp-story-with-controls .wp-story-wrapper{border-radius:15px;box-shadow:0 2px 12px rgba(0,0,0,.25);overflow:hidden}.wp-story-container.wp-story-with-controls figure{transform:none!important;transition:none!important}.wp-story-container.wp-story-with-controls:hover{transform:none!important;box-shadow:none!important}.wp-story-container.wp-story-with-controls:hover figure{transform:none}.wp-story-container.wp-story-with-controls .wp-story-next-slide,.wp-story-container.wp-story-with-controls .wp-story-prev-slide{display:block}.wp-story-container.wp-story-with-controls .wp-story-prev-slide{margin:auto;left:-48px}.wp-story-container.wp-story-with-controls .wp-story-next-slide{margin:auto;right:-48px}.wp-story-container.wp-story-with-controls .wp-story-controls{display:flex}@media(max-width:782px){.wp-story-container.wp-story-with-controls .wp-story-controls{bottom:30px;margin:0 10px}}.wp-story-fullscreen.wp-story-app{position:fixed;transform:translateZ(0);top:0;bottom:0;left:0;right:0;margin:0;padding:0;z-index:9999999999;width:100%!important;max-width:100%!important;height:100%;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.wp-story-fullscreen.wp-story-container{margin:auto;height:100%;width:100%;max-width:100%;max-height:100%;border-radius:0;box-shadow:none;overflow:initial}.wp-story-fullscreen.wp-story-container,.wp-story-fullscreen.wp-story-container figure{transform:none;transition:none!important}.wp-story-fullscreen.wp-story-container:focus{outline:none}.wp-story-fullscreen.wp-story-container:before{box-shadow:none}.wp-story-fullscreen.wp-story-container:before:hover{opacity:0;transition:none!important}.wp-story-fullscreen.wp-story-container .wp-story-wrapper{height:auto;margin-top:84px;margin-bottom:84px;border-radius:0;overflow:initial}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-wrapper{margin-top:0;margin-bottom:0}}.wp-story-fullscreen.wp-story-container .wp-story-slide{height:100%;width:auto}.wp-story-fullscreen.wp-story-container .wp-story-slide.is-loading{width:100%}.wp-story-fullscreen.wp-story-container .wp-story-meta{padding:20px 0;display:flex;flex-direction:row;color:#fff;font-family:sans-serif;line-height:20px;align-items:center}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-meta{padding:16px;background:#000;background:linear-gradient(180deg,rgba(0,0,0,.63),transparent)}}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-icon{background-color:#fff;width:40px;height:40px;flex-shrink:0;margin:0 16px 0 0;border:2px solid #fff;border-radius:4px}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-icon img{text-align:center;width:100%;height:100%}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-icon{width:24px;height:24px;margin:0 12px 0 0}}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-title{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-title{font-size:12px}}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-exit-fullscreen{margin-left:auto;order:3;min-width:24px;min-height:24px}.wp-story-fullscreen.wp-story-container .wp-story-overlay{margin-top:84px;margin-bottom:84px}.wp-story-fullscreen.wp-story-container .wp-story-overlay .wp-story-embed-icon,.wp-story-fullscreen.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand{display:none}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-overlay{margin-top:0;margin-bottom:0;top:76px;bottom:76px}}@media(max-width:782px){.wp-story-fullscreen.wp-story-container.wp-story-disabled .wp-story-overlay,.wp-story-fullscreen.wp-story-container.wp-story-ended .wp-story-overlay{top:0;bottom:0}}.wp-story-fullscreen.wp-story-container .wp-story-next-slide,.wp-story-fullscreen.wp-story-container .wp-story-prev-slide{display:block}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-next-slide,.wp-story-fullscreen.wp-story-container .wp-story-prev-slide{display:block;position:absolute;top:0;bottom:0;height:100%}.wp-story-fullscreen.wp-story-container .wp-story-next-slide button,.wp-story-fullscreen.wp-story-container .wp-story-prev-slide button{display:none}}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-prev-slide{left:0;width:33.33%}}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-next-slide{right:0;width:66.66%}}.wp-story-fullscreen.wp-story-container .wp-story-controls{width:88px;display:flex;flex-direction:row;justify-content:space-between;position:absolute;bottom:20px;margin:0}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-controls{bottom:36px;margin:0 16px}}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets{display:flex;position:absolute;bottom:42px;top:auto;padding:14px 0;margin:0}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet{justify-content:space-between}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet:first-child{margin-left:0}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet:last-child{margin-right:0}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets{bottom:0;padding:10px 16px}}.wp-story-background{display:block;position:absolute;left:0;right:0;top:0;bottom:0;z-index:-2;background-color:#0e1112}.wp-story-background svg{width:0;height:0}.wp-story-background img{width:100%;height:100%}.wp-story-background .wp-story-background-dark{position:absolute;left:0;right:0;top:0;bottom:0;opacity:.12}@supports((-webkit-backdrop-filter:none) or (backdrop-filter:none)){.wp-story-background .wp-story-background-dark{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}}.wp-story-background .wp-story-background-image{width:100%;height:100%;background-repeat:no-repeat;background-position:0;background-size:100% auto;display:none}@supports not ((-webkit-backdrop-filter:none) or (backdrop-filter:none)){.wp-story-background .wp-story-background-image{filter:blur(18px);filter:url(#gaussian-blur-18);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius="18")}}.wp-story-background .wp-story-background-blur{position:absolute;left:0;right:0;top:0;bottom:0;background-color:rgba(14,17,18,.8784313725490196)}@supports((-webkit-backdrop-filter:none) or (backdrop-filter:none)){.wp-story-background .wp-story-background-blur{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}}html.wp-story-in-fullscreen{overflow:hidden;scroll-behavior:auto}body.wp-story-in-fullscreen{overflow:hidden;padding-right:15px;position:fixed;width:100%;height:100%}.wp-block-jetpack-story__add-item{margin-top:4px;width:100%}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button,.wp-block-jetpack-story__add-item .components-form-file-upload{width:100%;height:100%}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button:focus,.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button:hover{border:1px solid #949494}.wp-story-container .wp-story-next-slide button,.wp-story-container .wp-story-prev-slide button{width:36px!important;height:36px!important;color:#50575e;border:1px solid #50575e;outline:0;background-color:transparent}.wp-story-container .wp-story-next-slide button:hover,.wp-story-container .wp-story-prev-slide button:hover{border:1px solid #50575e;background-color:transparent}.wp-story-container .wp-story-next-slide button:hover i,.wp-story-container .wp-story-prev-slide button:hover i{color:#3381b8}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline{position:relative}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form{display:flex;align-items:flex-start}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form input[type=email]{line-height:normal}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form button{border-style:solid;border-color:transparent}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email{flex-grow:1;background:transparent}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email input[type=email]{width:100%;margin:0}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-submit,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-submit{margin:0}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__show-subs{padding-bottom:32px}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__show-subs .jetpack-subscribe-count p,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__show-subs .wp-block-jetpack-subscriptions__subscount{position:absolute;bottom:0;right:0;margin:0;font-size:16px}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .wp-block-jetpack-subscriptions__form,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline form{display:block}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline button{display:inline-block;max-width:100%}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .jetpack-subscribe-count p,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .wp-block-jetpack-subscriptions__subscount{left:0}.wp-block-jetpack-tiled-gallery{margin:0 auto 1.5em}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item img{border-radius:50%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row{flex-grow:1;width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-1 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-2 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc(50% - 2px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-3 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc(33.33333% - 2.66667px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-4 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc(25% - 3px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-5 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc(20% - 3.2px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-6 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc(16.66667% - 3.33333px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-7 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc(14.28571% - 3.42857px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-8 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc(12.5% - 3.5px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-9 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc(11.11111% - 3.55556px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-10 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc(10% - 3.6px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-11 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc(9.09091% - 3.63636px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-12 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc(8.33333% - 3.66667px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-13 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc(7.69231% - 3.69231px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-14 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc(7.14286% - 3.71429px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-15 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc(6.66667% - 3.73333px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-16 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc(6.25% - 3.75px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-17 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-17 .tiled-gallery__col{width:calc(5.88235% - 3.76471px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-18 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-18 .tiled-gallery__col{width:calc(5.55556% - 3.77778px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-19 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-19 .tiled-gallery__col{width:calc(5.26316% - 3.78947px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-20 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-20 .tiled-gallery__col{width:calc(5% - 3.8px)}.wp-block-jetpack-tiled-gallery.is-style-columns .tiled-gallery__item,.wp-block-jetpack-tiled-gallery.is-style-rectangular .tiled-gallery__item{display:flex}.wp-block-jetpack-tiled-gallery.has-rounded-corners-1 .tiled-gallery__item img{border-radius:1px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-2 .tiled-gallery__item img{border-radius:2px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-3 .tiled-gallery__item img{border-radius:3px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-4 .tiled-gallery__item img{border-radius:4px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-5 .tiled-gallery__item img{border-radius:5px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-6 .tiled-gallery__item img{border-radius:6px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-7 .tiled-gallery__item img{border-radius:7px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-8 .tiled-gallery__item img{border-radius:8px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-9 .tiled-gallery__item img{border-radius:9px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-10 .tiled-gallery__item img{border-radius:10px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-11 .tiled-gallery__item img{border-radius:11px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-12 .tiled-gallery__item img{border-radius:12px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-13 .tiled-gallery__item img{border-radius:13px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-14 .tiled-gallery__item img{border-radius:14px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-15 .tiled-gallery__item img{border-radius:15px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-16 .tiled-gallery__item img{border-radius:16px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-17 .tiled-gallery__item img{border-radius:17px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-18 .tiled-gallery__item img{border-radius:18px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-19 .tiled-gallery__item img{border-radius:19px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-20 .tiled-gallery__item img{border-radius:20px}.tiled-gallery__gallery{width:100%;display:flex;padding:0;flex-wrap:wrap}.tiled-gallery__row{width:100%;display:flex;flex-direction:row;justify-content:center;margin:0}.tiled-gallery__row+.tiled-gallery__row{margin-top:4px}.tiled-gallery__col{display:flex;flex-direction:column;justify-content:center;margin:0}.tiled-gallery__col+.tiled-gallery__col{margin-left:4px}.tiled-gallery__item{justify-content:center;margin:0;overflow:hidden;padding:0;position:relative;flex-grow:1}.tiled-gallery__item.filter__black-and-white{filter:grayscale(100%)}.tiled-gallery__item.filter__sepia{filter:sepia(100%)}.tiled-gallery__item.filter__1977{position:relative;filter:contrast(1.1) brightness(1.1) saturate(1.3)}.tiled-gallery__item.filter__1977 img{width:100%;z-index:1}.tiled-gallery__item.filter__1977:before{z-index:2}.tiled-gallery__item.filter__1977:after,.tiled-gallery__item.filter__1977:before{content:"";display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.tiled-gallery__item.filter__1977:after{z-index:3;background:rgba(243,106,188,.3);mix-blend-mode:screen}.tiled-gallery__item.filter__clarendon{position:relative;filter:contrast(1.2) saturate(1.35)}.tiled-gallery__item.filter__clarendon img{width:100%;z-index:1}.tiled-gallery__item.filter__clarendon:before{z-index:2}.tiled-gallery__item.filter__clarendon:after,.tiled-gallery__item.filter__clarendon:before{content:"";display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.tiled-gallery__item.filter__clarendon:after{z-index:3}.tiled-gallery__item.filter__clarendon:before{background:rgba(127,187,227,.2);mix-blend-mode:overlay}.tiled-gallery__item.filter__gingham{position:relative;filter:brightness(1.05) hue-rotate(-10deg)}.tiled-gallery__item.filter__gingham img{width:100%;z-index:1}.tiled-gallery__item.filter__gingham:before{z-index:2}.tiled-gallery__item.filter__gingham:after,.tiled-gallery__item.filter__gingham:before{content:"";display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.tiled-gallery__item.filter__gingham:after{z-index:3;background:#e6e6fa;mix-blend-mode:soft-light}.tiled-gallery__item+.tiled-gallery__item{margin-top:4px}.tiled-gallery__item>img{background-color:rgba(0,0,0,.1)}.tiled-gallery__item>a,.tiled-gallery__item>a>img,.tiled-gallery__item>img{display:block;height:auto;margin:0;max-width:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;padding:0;width:100%}.is-email .tiled-gallery__gallery{display:block}@keyframes tiled-gallery-img-placeholder{0%{background-color:#f6f7f7}50%{background-color:rgba(246,247,247,.5)}to{background-color:#f6f7f7}}.wp-block-jetpack-tiled-gallery{padding-left:4px;padding-right:4px}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item.is-transient img,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__item.is-transient img{margin-bottom:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img:focus{outline:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img{animation:tiled-gallery-img-placeholder 1.6s ease-in-out infinite}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected{outline:4px solid #0085ba;filter:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected:after,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected:before{content:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient{height:100%;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient img{background-position:50%;background-size:cover;height:100%;opacity:.3;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu{background:#fff;border:1px solid rgba(30,30,30,.62);border-radius:2px;transition:box-shadow .2s ease-out}@media(prefers-reduced-motion:reduce){.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu{transition-duration:0s;transition-delay:0s}}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu:hover,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button{color:rgba(30,30,30,.62);padding:2px;height:24px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}@media(min-width:600px){.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button,.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button{padding:0;width:inherit;height:inherit}}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button:focus{color:inherit}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item{margin-top:4px;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-form-file-upload{width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:hover{border:1px solid #949494}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu{margin:8px;display:inline-flex;z-index:20}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu .components-button{color:transparent}@media(min-width:600px){.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu,.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu{padding:2px}}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu{position:absolute;top:-2px;right:-2px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu{position:absolute;top:-2px;left:-2px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-backward,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-forward,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__remove{padding:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item .components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translate(-50%,-50%)}.block-editor-block-preview__content .wp-block-jetpack-tiled-gallery .block-editor-media-placeholder{display:none}.tiled-gallery__filter-picker-menu{padding:7px}.tiled-gallery__filter-picker-menu .components-menu-item__button+.components-menu-item__button{margin-top:2px}.tiled-gallery__filter-picker-menu .components-menu-item__button.is-active{color:#1e1e1e;box-shadow:0 0 0 2px #949494!important}.no-videopress-media-placeholder .components-placeholder__fieldset{flex-direction:row-reverse;align-items:flex-start;justify-content:flex-end}.no-videopress-media-placeholder .components-placeholder__fieldset button{display:none}.no-videopress-media-placeholder .components-placeholder__fieldset .block-editor-media-placeholder__url-input-container button,.no-videopress-media-placeholder .components-placeholder__fieldset .no-videopress-disabled-button{display:inline-flex}.no-videopress-media-placeholder .components-placeholder__fieldset .no-videopress-disabled-button:last-child{margin-right:12px}[data-type="jetpack/wordads"][data-align=center] .jetpack-wordads__ad{margin:0 auto}.jetpack-wordads__ad{display:flex;overflow:hidden;flex-direction:column;max-width:100%}.jetpack-wordads__ad .components-placeholder{flex-grow:2}.jetpack-wordads__ad .components-toggle-control__label{line-height:1.4em}.jetpack-wordads__ad .components-base-control__field,.wp-block-jetpack-wordads__format-picker{padding:7px}.wp-block-jetpack-wordads__format-picker .components-menu-item__button+.components-menu-item__button{margin-top:2px}.wp-block-jetpack-wordads__format-picker .components-menu-item__button.is-active{color:#1e1e1e;box-shadow:0 0 0 2px #949494!important}.jetpack-wordads__mobile-visibility{margin-top:20px}.anchor-post-publish-outbound-link .anchor-post-publish-outbound-link__external_icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.wp-block-premium-content-container .premium-content-tabs{align-items:center;background:#fff;color:#757575;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;margin:0 0 0 -1px;padding:8px 14px;border:1px solid #1e1e1e;border-radius:2px}.wp-block-premium-content-container--tab{display:flex;flex-direction:row;align-items:center;border:none;background:transparent;padding:5px;margin-right:5px;text-decoration:none}.premium-content-tabs>button.edit{margin-left:auto}.premium-content-wrapper{margin:0}.premium-content-block-nudge .editor-warning{margin-bottom:0}.premium-content-block-nudge .editor-warning__message{margin:13px 0}.premium-content-block-nudge .editor-warning__actions{line-height:1}.premium-content-block-nudge .premium-content-block-nudge__info{font-size:13px;display:flex;flex-direction:row;line-height:1.4}.premium-content-block-nudge .premium-content-block-nudge__text-container{display:flex;flex-direction:column;padding-left:10px}.premium-content-block-nudge .premium-content-block-nudge__title{font-size:14px}.premium-content-block-nudge__message{color:#646970}.editor-styles-wrapper a.premium-content-block-nudge__button{color:#0075af;text-decoration:none}.membership-button__disclaimer{color:var(--color-gray-200);flex-basis:100%;margin:0;font-style:italic}.membership-button__disclaimer a{color:var(--color-gray-400);line-height:36px}.wp-block-premium-content-container---settings-add_plan .components-panel__row.plan-interval .components-base-control,.wp-block-premium-content-container---settings-add_plan .components-panel__row.plan-name .components-base-control{width:100%}.wp-block-premium-content-container---settings-add_plan .components-panel__row.plan-price .components-base-control{width:45%;margin:0}.wp-block-premium-content-container---settings-add_plan .components-panel__row:last-child{margin-top:25px}.wp-block-premium-content-container---settings-add_plan .components-base-control:last-child{margin:0}.wp-block-premium-content-container---link-to-earn{margin:16px;display:block}.premium-content-toolbar-button .components-dropdown-menu__toggle:after{display:block;content:"";position:absolute;bottom:1px;right:0;border-color:transparent currentcolor currentcolor transparent;border-style:solid;border-width:4px}.connect-stripe.has-icon.has-text svg{margin-right:0}.connect-stripe.has-icon.has-text{font-weight:400}.wp-block-buttons .wp-block[data-type="jetpack/recurring-payments"]{display:inline-block;margin:0 .5em 0 0}.editor-styles-wrapper .wp-block-buttons .wp-block[data-type="jetpack/recurring-payments"] .wp-block-button:not(.alignleft):not(.alignright){margin:0}.wp-block-premium-content-container .jetpack-block-nudge{display:none}.wp-block-premium-content-login-button{display:inline-block}.wp-block[data-align=center]>.wp-block-premium-content-login-button{display:flex;align-items:center;justify-content:center}.wp-block-jetpack-conversation__participant{display:flex;height:30px;line-height:30px}.wp-block-jetpack-conversation__participant-label{flex-grow:2}.wp-block-jetpack-conversation__placeholder,.wp-block-jetpack-dialogue__timestamp-controls{display:flex}.wp-block-jetpack-dialogue__timestamp-controls .components-number-control{min-width:60px}.wp-block-jetpack-dialogue__timestamp-button{margin-left:6px}.wp-block-jetpack-dialogue__timestamp-control__hour,.wp-block-jetpack-dialogue__timestamp-control__minute{margin-right:5px}.wp-block-jetpack-dialogue__timestamp-control__play-button{align-self:flex-end;margin-left:10px}.wp-block-jetpack-dialogue__timestamp-content .wp-block-jetpack-dialogue__timestamp-container{min-width:290px}.wp-block-jetpack-dialogue__timestamp-range-control{margin-top:8px;margin-right:16px}.wp-block-jetpack-dialogue__timestamp-dropdown{min-width:90px}.wp-block-jetpack-dialogue__participant.is-participant-adding,.wp-block-jetpack-dialogue__participant.is-participant-editing{opacity:.7}.wp-block-jetpack-conversation:not(.is-style-column) .wp-block-jetpack-dialogue__meta.has-not-media-source>div{width:100%}.wp-block-jetpack-conversation:not(.is-style-column) .wp-block-jetpack-dialogue__meta .wp-block-jetpack-dialogue__participant{min-width:50px}.media-player-control__current-time{display:flex;align-items:center;padding:0 12px 0 5px;min-width:55px;font-size:14px}.media-player-control__current-time.is-disabled{color:#757575;cursor:default}.wp-block-jetpack-dialogue__timestamp-player{display:flex;margin-top:10px;justify-content:center;flex-wrap:wrap}.wp-block-jetpack-dialogue__timestamp-player button{padding:0}.media-player-control__toolbar .components-toolbar-button .dashicons{margin:0}.wp-block-jetpack-dialogue{margin-top:20px;margin-bottom:20px}.wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__meta{display:flex;flex-direction:row;align-items:center;min-height:38px}.wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__participant{font-size:inherit;padding:0;line-height:17px;line-height:var(--global--line-height-body);overflow-wrap:anywhere;color:inherit}.wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__timestamp-label{margin-right:0;padding:6px 12px;text-align:right;font-size:16px;white-space:nowrap;color:inherit;margin-left:5px}.wp-block-jetpack-dialogue__participant{padding:3px 0;height:auto;line-height:1.2}.wp-block-jetpack-dialogue__participant.has-bold-style{font-weight:700}.wp-block-jetpack-dialogue__participant.has-italic-style{font-style:italic}.wp-block-jetpack-dialogue__participant.has-uppercase-style{text-transform:uppercase}.block-editor-block-list__block .wp-block-jetpack-dialogue__content{margin:0 0 1em}@media(min-width:600px){.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue{display:flex}.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__meta{display:block;flex:0 0 25%;text-align:right}.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__participant{margin-right:12px}.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .components-dropdown,.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__timestamp-dropdown{display:block}}body.no-media-source .wp-block-jetpack-dialogue__timestamp-label{display:none}.wp-block-jetpack-amazon{font-size:14px}.wp-block-jetpack-amazon-title{font-weight:700;line-height:1.3em}.wp-block-jetpack-amazon-title a{text-decoration:none}.wp-block-jetpack-amazon-button{justify-content:center;width:100%}
1
+ .jetpack-gutenberg-social-icon{fill:#757575}.jetpack-gutenberg-social-icon.is-facebook{fill:#39579a}.jetpack-gutenberg-social-icon.is-twitter{fill:#55acee}.jetpack-gutenberg-social-icon.is-linkedin{fill:#0976b4}.jetpack-gutenberg-social-icon.is-tumblr{fill:#35465c}.jetpack-gutenberg-social-icon.is-google{fill:var(--color-gplus)}@keyframes jetpack-external-media-loading-fade{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.jetpack-external-media-browser--visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.modal-open .jetpack-external-media-button-menu__options{display:none}.jetpack-external-media-browser .is-error{margin-bottom:1em;margin-left:0;margin-right:0}.jetpack-external-media-browser .components-placeholder{background-color:transparent}.jetpack-external-media-browser .components-modal__content{overflow:auto;padding-bottom:0;width:100%}@media(min-width:600px){.jetpack-external-media-browser .components-modal__content{width:90vw;height:90vh}}.jetpack-external-media-browser--is-copying{pointer-events:none}.jetpack-external-media-browser{background:#fff;display:flex;flex-direction:column;align-items:flex-start}.jetpack-external-media-browser .jetpack-external-media-browser__media{width:100%}.jetpack-external-media-browser .jetpack-external-media-browser__media__item{height:0;width:50%;padding-top:50%;display:inline-flex;position:relative;border:0;background:transparent}.jetpack-external-media-browser .jetpack-external-media-browser__media__item img{display:block;position:absolute;top:8px;left:8px;width:calc(100% - 16px);height:calc(100% - 16px);-o-object-fit:contain;object-fit:contain}.jetpack-external-media-browser .jetpack-external-media-browser__media__item.is-transient img{opacity:.3}.jetpack-external-media-browser .jetpack-external-media-browser__media__copying_indicator{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;flex-direction:column;justify-content:center;align-items:center;text-align:center}.jetpack-external-media-browser .jetpack-external-media-browser__media__copying_indicator .components-spinner{margin-bottom:8px}.jetpack-external-media-browser .jetpack-external-media-browser__media__copying_indicator__label{font-size:12px}.jetpack-external-media-browser .jetpack-external-media-browser__media__folder{float:left;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;align-content:flex-start;margin-bottom:36px}.jetpack-external-media-browser .jetpack-external-media-browser__media__info{font-size:12px;font-weight:700;width:100%;display:flex;justify-content:space-between;padding:3px}.jetpack-external-media-browser .jetpack-external-media-browser__media__count{background-color:#dcdcde;padding:3px 4px;border-radius:8px;margin-bottom:auto}.jetpack-external-media-browser .jetpack-external-media-browser__media__item{border:8px solid transparent}.jetpack-external-media-browser .jetpack-external-media-browser__media__item:focus{outline:none;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color);border-radius:10px}.jetpack-external-media-browser .jetpack-external-media-browser__media__item__selected{box-shadow:inset 0 0 0 6px var(--wp-admin-theme-color);border-radius:10px}.jetpack-external-media-browser .jetpack-external-media-browser__media__item__selected:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color),inset 0 0 0 3px #fff,inset 0 0 0 6px var(--wp-admin-theme-color)}.jetpack-external-media-browser .jetpack-external-media-browser__media__placeholder{width:100px;height:100px;margin:16px;animation:jetpack-external-media-loading-fade 1.6s ease-in-out infinite;background-color:#ccc;border:0}.jetpack-external-media-browser .jetpack-external-media-browser__media__toolbar{position:fixed;position:sticky;bottom:0;left:0;width:100%;background:#fff;padding:20px 0;display:flex;justify-content:flex-end}.jetpack-external-media-browser .jetpack-external-media-browser__loadmore{clear:both;display:block;margin:24px auto 48px}@media only screen and (min-width:600px){.jetpack-external-media-browser .jetpack-external-media-browser__media__item{width:20%;padding-top:20%}}.jetpack-external-media-header__view{display:flex;align-items:flex-start;justify-content:flex-start;margin-bottom:48px;flex-direction:column}@media only screen and (min-width:600px){.jetpack-external-media-header__view{flex-direction:row;align-items:center}}.jetpack-external-media-header__view select{max-width:200px!important}.jetpack-external-media-header__view .components-base-control__field{display:flex;flex-direction:column}.jetpack-external-media-header__filter label,.jetpack-external-media-header__view label{margin-right:10px}.jetpack-external-media-header__filter .components-base-control,.jetpack-external-media-header__view .components-base-control{padding-right:8px;margin-bottom:0}.jetpack-external-media-header__filter{display:flex;flex-wrap:wrap;align-items:center;flex-grow:1;justify-content:flex-start}@media only screen and (min-width:600px){.jetpack-external-media-header__filter{border-left:1px solid #ccc;margin-left:16px;padding-left:16px}}.jetpack-external-media-header__filter .jetpack-external-media-date-filter{display:flex;flex-wrap:wrap}.jetpack-external-media-header__filter .jetpack-external-media-date-filter button{margin-top:27px;height:40px}@media only screen and (min-width:783px){.jetpack-external-media-header__filter .jetpack-external-media-date-filter button{height:30px}}.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__label{margin-bottom:3px}.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__backdrop{border-color:#e0e0e0;border-radius:3px}.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__input{height:40px;width:70px}@media only screen and (min-width:783px){.jetpack-external-media-header__filter .jetpack-external-media-date-filter .components-base-control .components-input-control__input{height:30px}}.jetpack-external-media-header__account{display:flex;flex-direction:column}.jetpack-external-media-header__account .jetpack-external-media-header__account-info{display:flex;margin-bottom:8px}.jetpack-external-media-header__account .jetpack-external-media-header__account-image{margin-right:8px}.jetpack-external-media-header__account .jetpack-external-media-header__account-name{height:18px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-external-media-header__account .jetpack-external-media-browser__disconnect{height:40px;margin:1px 1px 9px 0}@media only screen and (min-width:783px){.jetpack-external-media-header__account .jetpack-external-media-browser__disconnect{height:30px}}.jetpack-external-media-header__pexels{display:flex;margin-bottom:48px}.jetpack-external-media-header__pexels .components-base-control{flex:1;margin-right:12px}.jetpack-external-media-header__pexels .components-base-control__field{margin-bottom:0}.jetpack-external-media-header__pexels .components-base-control__field,.jetpack-external-media-header__pexels .components-text-control__input{height:100%}.jetpack-external-media-placeholder__open-modal{display:flex;justify-content:center;align-items:center;padding:0;position:absolute;right:0;margin-top:-48px;z-index:1}.jetpack-external-media-placeholder__open-modal .components-button{margin:0;padding:12px;background:none}.jetpack-external-media-placeholder__open-modal .components-button:before{content:none}.jetpack-external-media-placeholder__open-modal .components-button svg{display:block;fill:currentColor}.jetpack-external-media-browsing>div.components-placeholder:not(.jetpack-external-media-replacedholder){display:none}.jetpack-external-media-browser__empty{width:100%;text-align:center;padding-top:2em}.jetpack-external-media-auth{max-width:340px;margin:0 auto;text-align:center}.jetpack-external-media-auth p{margin:2em 0}.jetpack-external-media-filters{display:flex;justify-content:space-between}.components-placeholder__fieldset .components-dropdown .jetpack-external-media-button-menu,.editor-post-featured-image .components-dropdown .jetpack-external-media-button-menu{margin-right:8px;margin-bottom:1em}.editor-post-featured-image .components-dropdown{display:initial}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive>*{pointer-events:auto;-webkit-user-select:auto;user-select:auto}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive:after{content:none}.jetpack-upgrade-plan-banner.wp-block[data-align=left] .jetpack-upgrade-plan-banner__wrapper,.jetpack-upgrade-plan-banner.wp-block[data-align=right] .jetpack-upgrade-plan-banner__wrapper{max-width:580px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper{display:flex;justify-content:space-between;align-items:center;font-size:14px;height:48px;background:#000;padding:0 20px;border-radius:2px;box-shadow:inset 0 0 1px #fff}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-description,.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-title{color:#fff;margin-right:10px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__description,.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__title{margin-right:10px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button{flex-shrink:0;line-height:1;margin-left:auto;height:28px}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary{background:#e34c84;color:#fff}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary:hover{background:#eb6594}.jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary.is-busy{background-size:100px 100%;background-image:linear-gradient(-45deg,#e34c84 28%,#ab235a 0,#ab235a 72%,#e34c84 0)}.jetpack-upgrade-plan-banner.block-editor-block-list__block{margin-top:0;margin-bottom:0}.jetpack-upgrade-plan-banner.wp-block[data-align=left],.jetpack-upgrade-plan-banner.wp-block[data-align=right]{height:48px}.jetpack-upgrade-plan-banner.wp-block[data-align=left] .jetpack-upgrade-plan-banner__wrapper,.jetpack-upgrade-plan-banner.wp-block[data-align=right] .jetpack-upgrade-plan-banner__wrapper{max-width:840px;width:100%}.jetpack-upgrade-plan__hidden{display:none}.block-editor-block-list__block.is-upgradable,.editor-styles-wrapper [data-block].is-upgradable{margin-top:0;padding-top:48px}.block-editor-block-list__layout .jetpack-upgrade-plan-banner{position:relative;top:42px;z-index:10}.block-editor-block-inspector .jetpack-upgrade-plan-banner{border-radius:0;margin:0 20px 20px}.jetpack-paid-block-symbol{display:none}.jetpack-enable-upgrade-nudge .block-editor-block-icon>svg{overflow:visible}.jetpack-enable-upgrade-nudge .jetpack-paid-block-symbol{display:block}.jetpack-enable-upgrade-nudge .components-placeholder__label .jetpack-paid-block-symbol{display:none}.paid-block-media-placeholder{width:100%}.wp-block-cover .paid-block-media-placeholder:not(:only-child){position:absolute;top:0;right:0;left:0;bottom:0}.block-editor-block-list__block.is-upgradable.is-selected.is-placeholder{padding-top:0;background-color:transparent}.block-editor-block-list__block.is-upgradable.is-selected.is-placeholder .paid-block-media-placeholder{margin-top:48px}.block-editor-block-list__layout .block-editor-block-list__block.is-upgradable:focus:after{box-shadow:none}.interface-interface-skeleton__editor{max-width:100%}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.jetpack-publicize__connections-list{list-style-type:none;margin:13px 0}.publicize-jetpack-connection-container{display:flex}.jetpack-publicize-gutenberg-social-icon{margin-right:5px}.jetpack-publicize-connection-label{flex:1;margin-right:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-publicize-connection-label .jetpack-publicize-connection-label-copy,.jetpack-publicize-connection-label .jetpack-publicize-gutenberg-social-icon{display:inline-block;vertical-align:middle}.jetpack-publicize-connection-toggle{margin-top:3px}.jetpack-publicize-notice.components-notice{margin-left:0;margin-right:0;margin-bottom:13px}.jetpack-publicize-notice .components-button{height:auto;line-height:normal;padding-top:6px;padding-bottom:6px}.jetpack-publicize-notice .components-button+.components-button{margin-top:5px}.jetpack-publicize-add-connection-wrapper{margin:15px 0}.jetpack-publicize__connections-list .components-notice{margin:5px 0 10px}h3.jetpack-publicize-twitter-options__heading{margin-top:1em}.jetpack-publicize-twitter-options__type .components-radio-control__option{display:grid;grid-template-columns:24px auto}.jetpack-publicize-twitter-options__type .components-radio-control__option input{margin-top:2px}.jetpack-publicize-twitter-options__notices .components-notice{margin-left:0;margin-right:0;padding:0 0 0 8px}.jetpack-publicize-twitter-options__notices .components-notice .components-notice__content{margin-top:8px;margin-bottom:8px}.jetpack-publicize-twitter__tweet-divider{position:absolute;width:100%;margin-top:-28px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon{margin:0 auto;display:block;background:rgba(0,0,0,.6);border-radius:12px;width:24px;height:24px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:after,.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:before{content:"";width:80px;height:1px;background:rgba(0,0,0,.6);display:block;position:absolute;margin-top:12px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:before{margin-left:-80px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:after{margin-left:24px}.jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon>svg{fill:#fff;position:absolute;width:16px;height:16px;margin:4px}.jetpack-publicize-twitter__tweet-divider-popover{border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.6)}.jetpack-publicize-twitter__tweet-divider-popover .components-popover__content{color:rgba(0,0,0,.6);padding:8px}.modal-open .jetpack-publicize-twitter__tweet-divider-popover{display:none}.jetpack-tweetstorm .block-editor-block-list__insertion-point-inserter{justify-content:right;padding:0 8px}.annotation-text-jetpack-tweetstorm{background:rgba(0,0,0,.6);width:3px;display:inline-block;margin:1px}.annotation-text-jetpack-tweetstorm-line-break{background:rgba(0,0,0,.6);padding:0 2.5px;margin:1px}.blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before{content:"";height:calc(100% + 16px);width:4px;background:rgba(0,0,0,.6);position:absolute;left:-10px;top:-8px}.is-dark-theme .annotation-text-jetpack-tweetstorm,.is-dark-theme .blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before,.is-dark-theme .jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon,.is-dark-theme .jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:after,.is-dark-theme .jetpack-publicize-twitter__tweet-divider .jetpack-publicize-twitter__tweet-divider-icon:before{background:hsla(0,0%,100%,.6)}.annotation-text-jetpack-tweetstorm,.block-editor-block-list__block li:after,.blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before,.jetpack-publicize-twitter__tweet-divider{transition:opacity .5s;opacity:1}.jetpack-tweetstorm-is-typing .annotation-text-jetpack-tweetstorm,.jetpack-tweetstorm-is-typing .block-editor-block-list__block li:after,.jetpack-tweetstorm-is-typing .blocks-gallery-grid .blocks-gallery-item:nth-child(5) figure:before,.jetpack-tweetstorm-is-typing .jetpack-publicize-twitter__tweet-divider{transition:opacity .5s;opacity:.2}.edit-post-more-menu__content .components-icon-button .jetpack-logo,.edit-post-pinned-plugins .components-icon-button .jetpack-logo{width:20px;height:20px}.edit-post-more-menu__content .components-icon-button .jetpack-logo{margin-right:4px}.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{stroke:none!important}.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle{fill:#2fb41f!important}.edit-post-pinned-plugins .components-button.has-icon.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-button.has-icon:not(.is-toggled) .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{fill:#fff!important}.wp-block-jetpack-business-hours{overflow:hidden}@media(min-width:480px){.wp-block-jetpack-business-hours dd,.wp-block-jetpack-business-hours dt{display:inline-block}}.wp-block-jetpack-business-hours dt{min-width:30%;vertical-align:top}.wp-block-jetpack-business-hours dd{margin:0}@media(min-width:480px){.wp-block-jetpack-business-hours dd{max-width:calc(70% - .5em)}}.wp-block-jetpack-business-hours .components-base-control__label,.wp-block-jetpack-business-hours .components-toggle-control__label{font-size:13px}.wp-block-jetpack-business-hours .components-base-control__field{margin-bottom:0}.wp-block-jetpack-business-hours .jetpack-business-hours__item{margin-bottom:.5em}.wp-block-jetpack-business-hours .business-hours__row{display:flex;line-height:normal;margin-bottom:4px}.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add,.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__closed{margin-bottom:20px}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:44%;display:flex;align-items:start}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day .business-hours__day-name{width:60%;font-weight:700;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day .components-form-toggle{margin-right:4px;margin-top:4px}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:44%;margin:0;display:flex;align-items:center;flex-wrap:wrap}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-button{padding:0}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-base-control{display:inline-block;margin-bottom:0;width:48%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-base-control.business-hours__open{margin-right:4%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours .components-base-control .components-base-control__label{margin-bottom:0}.wp-block-jetpack-business-hours .business-hours__remove{align-self:flex-end;margin-bottom:8px;text-align:center;width:10%}.wp-block-jetpack-business-hours .business-hours-row__add button:hover{box-shadow:none!important}.wp-block-jetpack-business-hours .business-hours__remove button{display:block;margin:0 auto}.wp-block-jetpack-business-hours .business-hours-row__add .components-button.is-default:active,.wp-block-jetpack-business-hours .business-hours-row__add .components-button.is-default:focus,.wp-block-jetpack-business-hours .business-hours-row__add .components-button.is-default:hover,.wp-block-jetpack-business-hours .business-hours__remove .components-button.is-default:active,.wp-block-jetpack-business-hours .business-hours__remove .components-button.is-default:focus,.wp-block-jetpack-business-hours .business-hours__remove .components-button.is-default:hover{background:none;box-shadow:none}@media(max-width:1080px){.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row{flex-wrap:wrap}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__day,.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__remove{display:none}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:100%}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:78%}.is-sidebar-opened .wp-block-jetpack-business-hours .business-hours__row .business-hours__remove{width:18%}}@media(max-width:600px){.wp-block-jetpack-business-hours .business-hours__row{flex-wrap:wrap}.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__day,.wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__remove{display:none}.wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:100%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:78%}.wp-block-jetpack-business-hours .business-hours__row .business-hours__remove{width:18%}}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row{flex-wrap:wrap}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__day,.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row.business-hours-row__add .business-hours__remove{display:none}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row .business-hours__day{width:100%}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row .business-hours__hours{width:78%}.wp-block-columns .wp-block-jetpack-business-hours .business-hours__row .business-hours__remove{width:18%}@media(min-width:480px){.jetpack-business-hours dd,.jetpack-business-hours dt{display:inline-block}}.jetpack-business-hours dt{font-weight:700;margin-right:.5em;min-width:30%;vertical-align:top}.jetpack-business-hours dd{margin:0}@media(min-width:480px){.jetpack-business-hours dd{max-width:calc(70% - .5em)}}.jetpack-business-hours__item{margin-bottom:.5em}.wp-block[data-type="jetpack/button"]{display:inline-block;margin:0 auto}.wp-block[data-align=center] .wp-block-jetpack-button{display:flex;justify-content:center}.wp-block[data-align=right] .wp-block-jetpack-button{display:flex;justify-content:flex-end}div[data-type="jetpack/button"]:not([data-align=left]):not([data-align=right]){width:100%}div[data-type="jetpack/button"][data-align]{z-index:1;width:100%}div[data-type="jetpack/button"][data-align] .wp-block>div{max-width:100%}.jetpack-button__width-settings{display:flex;align-items:center}.jetpack-button__width-settings .components-button-group{display:flex;margin-right:1em}.jetpack-button__width-settings:not(.is-aligned) .components-unit-control-wrapper{flex:1}.wp-block-button__link.has-custom-width,.wp-block-jetpack-button{max-width:100%}.wp-block-jetpack-calendly{position:relative}.wp-block-jetpack-calendly-overlay{position:absolute;width:100%;height:100%;z-index:10}.wp-block-jetpack-calendly-link-editable{cursor:text}.wp-block-jetpack-calendly-embed-form-sidebar{display:flex;margin-bottom:1em}.wp-block-jetpack-calendly-learn-more{margin-top:1em}.wp-block-jetpack-calendly-color-notice{margin:0}div[data-align=center]>.wp-block-jetpack-calendly{text-align:center}.wp-block-jetpack-calendly .components-placeholder__fieldset input{flex:1}.admin-bar .calendly-overlay .calendly-popup-close{top:47px}.wp-block-jetpack-calendly.calendly-style-inline{height:630px;position:relative}.wp-block-jetpack-calendly .calendly-spinner{top:50px}.wp-block-jetpack-calendly.aligncenter{text-align:center}.wp-block-jetpack-calendly .wp-block-jetpack-button{color:#fff}.jetpack-block-styles-selector .editor-styles-wrapper .block-editor-block-list__block{margin:0}.jetpack-block-styles-selector-toolbar .is-active{font-weight:700}.wp-block-jetpack-contact-form{box-sizing:border-box}.wp-block-jetpack-contact-form .block-editor-block-variation-picker__variations>li{max-width:none;width:84px;margin:0}.wp-block-jetpack-contact-form .block-editor-block-variation-picker__variations>li .block-editor-block-variation-picker__variation{padding:17px;margin-right:0}.wp-block-jetpack-contact-form .block-editor-block-variation-picker__variations>li .block-editor-block-variation-picker__variation-label{margin-right:0}.wp-block-jetpack-contact-form .block-editor-block-list__layout{display:flex;flex-wrap:wrap;justify-content:flex-start;flex-direction:row}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block{flex:0 0 100%;margin:0;border-right:15px solid transparent;border-bottom:15px solid transparent}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-25,.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-50,.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-75{box-sizing:border-box}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-25{flex:0 0 25%}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-25 .jetpack-option__input.jetpack-option__input.jetpack-option__input{width:70px}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-50{flex:0 0 50%}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block.jetpack-field__width-75{flex:0 0 75%}.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block[data-type="jetpack/field-checkbox"],.wp-block-jetpack-contact-form .block-editor-block-list__layout .wp-block[data-type="jetpack/field-consent"]{align-self:center}.wp-block-jetpack-contact-form .block-list-appender{flex:0 0 100%}.jetpack-contact-form .components-placeholder{padding:24px}.jetpack-contact-form .components-placeholder input[type=text]{width:100%;outline-width:0;outline-style:none;line-height:16px}.jetpack-contact-form .components-placeholder .components-placeholder__label svg{margin-right:1ch}.jetpack-contact-form .components-placeholder .components-placeholder__fieldset,.jetpack-contact-form .components-placeholder .help-message{text-align:left}.jetpack-contact-form .components-placeholder .help-message{width:100%;margin:0 0 1em}.jetpack-contact-form .components-placeholder .components-base-control{width:100%}.jetpack-contact-form__intro-message{margin:0 0 16px}.jetpack-contact-form__create,.jetpack-contact-form__thankyou-redirect-url input[type=text]{width:100%}.jetpack-contact-form__thankyou-redirect-url__suggestions{width:260px}.jetpack-field-label{display:flex;flex-direction:row;justify-content:flex-start;align-items:baseline}.jetpack-field-label .components-base-control{margin-top:-1px;margin-bottom:-3px}.jetpack-field-label .components-base-control.jetpack-field-label__required .components-form-toggle{margin:2px 8px 0 16px}.jetpack-field-label .components-base-control.jetpack-field-label__required .components-toggle-control__label{word-break:normal}.jetpack-field-label .rich-text.jetpack-field-label__input{cursor:text;padding-right:8px}.jetpack-field-label .required{word-break:normal;color:unset;opacity:.45;font-size:15px}.jetpack-field-label .components-toggle-control .components-base-control__field{margin-bottom:0}.jetpack-field-label__input{min-height:unset;padding:0}input.components-text-control__input{line-height:16px}.jetpack-field .components-text-control__input.components-text-control__input{width:100%}.jetpack-field input.components-text-control__input,.jetpack-field textarea.components-textarea-control__input{color:#787c82;padding:12px 8px;box-shadow:unset;width:100%}.jetpack-field textarea.components-textarea-control__input{min-height:150px}.jetpack-field-label__width .components-button-group{display:block}.jetpack-field-label__width .components-base-control__field{margin-bottom:12px}.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox{float:left;margin:3px 5px 0 0}.jetpack-field-consent__checkbox.jetpack-field-consent__checkbox.jetpack-field-consent__checkbox{float:left;margin:0 5px 0 0}.jetpack-field-multiple__list.jetpack-field-multiple__list{list-style-type:none;margin:0;padding-left:0}.jetpack-field-multiple__list.jetpack-field-multiple__list:empty{display:none}[data-type="jetpack/field-select"] .jetpack-field-multiple__list.jetpack-field-multiple__list{border:1px solid rgba(0,0,0,.4);border-radius:4px;padding:4px}.jetpack-option{display:flex;align-items:center;margin:0}.jetpack-option__type.jetpack-option__type{margin-top:0}.jetpack-option__input.jetpack-option__input.jetpack-option__input{border-color:transparent;background:transparent;border-radius:0;flex-grow:1}.jetpack-option__input.jetpack-option__input.jetpack-option__input:hover{border-color:#357cb5}.jetpack-option__input.jetpack-option__input.jetpack-option__input:focus{background:#fff;border-color:#e3e5e8;box-shadow:none}.jetpack-option__remove.jetpack-option__remove{padding:6px;vertical-align:bottom}.jetpack-field-multiple__add-option{margin-left:-6px;padding:4px 8px 4px 4px}.jetpack-field-multiple__add-option svg{margin-right:12px}.jetpack-field .components-base-control__label{display:block}.jetpack-field-checkbox .components-base-control__label,.jetpack-field-consent .components-base-control__label{display:flex;align-items:center}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label,.jetpack-field-consent .components-base-control__label .jetpack-field-label{flex-grow:1}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label__input,.jetpack-field-consent .components-base-control__label .jetpack-field-label__input{font-size:13px;font-weight:400;padding-left:10px}.block-editor-inserter__preview .jetpack-contact-form{padding:16px}.block-editor-inserter__preview .jetpack-contact-form>.block-editor-inner-blocks>.block-editor-block-list__layout{margin:0}.jetpack-contact-form__popover .components-popover__content{padding:12px;min-width:260px}.jetpack-contact-form__crm_text,.jetpack-contact-form__crm_toggle p{margin-bottom:0}.help-message{display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.help-message svg{margin-right:5px;min-width:24px}.help-message>span{margin-top:2px}.help-message.help-message-is-error{color:#d63638}.help-message.help-message-is-error svg{fill:#d63638}.jetpack-contact-info-block .block-editor-plain-text.block-editor-plain-text:focus{box-shadow:none}.jetpack-contact-info-block .block-editor-plain-text{flex-grow:1;min-height:unset;display:block;margin:.5em 0;padding:0;box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;border-radius:4px;resize:none}.block-editor-inserter__preview .jetpack-contact-info-block{padding:16px}.block-editor-inserter__preview .jetpack-contact-info-block>.block-editor-inner-blocks>.block-editor-block-list__layout{margin:0}.wp-block-jetpack-contact-info{margin-bottom:1.5em}.jetpack-block-nudge.block-editor-warning{margin-bottom:12px}.jetpack-block-nudge .block-editor-warning__message{margin:13px 0}.jetpack-block-nudge .block-editor-warning__actions{line-height:1}.jetpack-block-nudge .jetpack-block-nudge__info{font-size:13px;display:flex;flex-direction:row;line-height:1.4}.jetpack-block-nudge .jetpack-block-nudge__text-container{display:flex;flex-direction:column}.jetpack-block-nudge .jetpack-block-nudge__title{font-size:14px}.jetpack-block-nudge .jetpack-block-nudge__message{color:#646970}.jetpack-stripe-nudge__banner .block-editor-warning__contents{align-items:center}.jetpack-stripe-nudge__icon{align-self:center;background:#2271b1;border-radius:50%;box-sizing:content-box;color:#fff;fill:#fff;flex-shrink:0;margin-right:16px;padding:6px}.wp-block-jetpack-donations .donations__container{border:1px solid #ccc}.wp-block-jetpack-donations .donations__nav{display:flex;border-bottom:1px solid #ccc}.wp-block-jetpack-donations .donations__nav-item{font-weight:700;display:inline-block;flex:1;text-align:center;font-size:16px;padding:12px;border-left:1px solid #ccc;background:#fff;color:#1e1e1e;cursor:pointer}@media(min-width:600px){.wp-block-jetpack-donations .donations__nav-item{padding:16px 24px}}.wp-block-jetpack-donations .donations__nav-item:first-child{border-left:none}.wp-block-jetpack-donations .donations__nav-item.is-active{background:var(--wp-admin-theme-color);color:#fff;cursor:default}.wp-block-jetpack-donations .donations__content{padding:16px}@media(min-width:600px){.wp-block-jetpack-donations .donations__content{padding:32px}}.wp-block-jetpack-donations .donations__content h4,.wp-block-jetpack-donations .donations__content p{margin:0 0 16px}@media(min-width:600px){.wp-block-jetpack-donations .donations__content h4,.wp-block-jetpack-donations .donations__content p{margin:0 0 24px}}.wp-block-jetpack-donations .donations__amounts{margin-bottom:16px;display:flex;flex-wrap:wrap}@media(min-width:600px){.wp-block-jetpack-donations .donations__amounts{margin:0 0 24px}}.wp-block-jetpack-donations .donations__amount{display:inline-block;padding:16px 24px;background-color:#fff;color:#1e1e1e;border:1px solid #ccc;margin-right:8px;margin-bottom:8px;font-weight:600;font-size:16px;white-space:nowrap}.wp-block-jetpack-donations .donations__amount.has-error{box-shadow:0 0 0 1px #fff,0 0 0 3px #cc1818;outline:2px solid transparent;outline-offset:-2px}.wp-block-jetpack-donations .donations__custom-amount .donations__amount-value{display:inline-block;margin-left:4px;min-width:60px}.wp-block-jetpack-donations .donations__separator{margin-bottom:16px;margin-top:16px}@media(min-width:600px){.wp-block-jetpack-donations .donations__separator{margin-bottom:32px;margin-top:32px}}.wp-block-jetpack-donations .donations__donate-button,.wp-block-jetpack-donations .donations__donate-button-wrapper{margin:0}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount{cursor:text}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount.has-focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.editor-styles-wrapper .wp-block-jetpack-donations .donations__custom-amount{cursor:default}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount .block-editor-rich-text__editable{display:inline-block;text-align:left}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount .block-editor-rich-text__editable:focus{box-shadow:none;outline:none;outline-offset:0}.editor-styles-wrapper .wp-block-jetpack-donations .donations__amount [data-rich-text-placeholder]:after{color:#ccc;opacity:1}.editor-styles-wrapper .wp-block-jetpack-donations .donations__custom-amount .donations__amount-value{color:#ccc}.editor-styles-wrapper .wp-block-jetpack-donations .donations__donate-button-wrapper:not(.alignleft):not(.alignright){margin:0}.editor-styles-wrapper .wp-block-jetpack-donations .jetpack-block-nudge{max-width:none}.jetpack-donations__currency-toggle{font-weight:700;line-height:100%;width:max-content}.jetpack-donations__currency-popover .components-popover__content{min-width:130px}.wp-block-jetpack-eventbrite{position:relative}.wp-block-jetpack-eventbrite .components-placeholder__learn-more{margin-top:1em}[data-type="jetpack/eventbrite"][data-align=center]{text-align:center}.gathering-tweetstorms__embed-toolbar{justify-content:center;align-items:center}.gathering-tweetstorms__embed-toolbar .components-spinner{position:absolute;margin:0}.gathering-tweetstorms__embed-import-notice{display:flex;align-items:center}.gathering-tweetstorms__embed-import-notice .gathering-tweetstorms__embed-import-message{padding-right:20px}.gathering-tweetstorms__embed-import-notice .gathering-tweetstorms__embed-import-button{flex-shrink:0}.wp-block-jetpack-gif{clear:both;margin:0 0 20px}.wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#949494;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper iframe{border:0;left:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif figure{transition:padding-top 125ms ease-in-out}.wp-block-jetpack-gif .components-base-control__field{text-align:center}.wp-block-jetpack-gif .components-placeholder__label svg{margin-right:1ch}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover{background:none;border:none;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover:focus{outline:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;margin-bottom:10px;max-width:400px;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container{display:flex;margin:-2px 0 2px -2px;overflow-x:auto;width:calc(100% + 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container::-webkit-scrollbar{display:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container{align-items:center;background-size:cover;background-repeat:no-repeat;background-position:50% 50%;border:none;border-radius:3px;cursor:pointer;display:flex;justify-content:center;margin:2px;padding:0 0 calc(10% - 4px);width:calc(10% - 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:hover{box-shadow:0 0 0 1px #949494}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:focus{box-shadow:0 0 0 2px var(--wp-admin-theme-color);outline:0}.components-panel__body-gif-branding svg{display:block;margin:0 auto;max-width:200px}.components-panel__body-gif-branding svg path{fill:#e0e0e0}.wp-block-jetpack-google-calendar{min-width:420px}.wp-block-jetpack-google-calendar iframe{width:100%;border:none}.wp-block-jetpack-google-calendar>amp-iframe>[placeholder]{line-height:1}.wp-block-jetpack-google-calendar>amp-iframe>noscript{display:inline-block!important}.wp-block-jetpack-google-calendar>amp-iframe>noscript>iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1}.wp-block-jetpack-google-calendar-embed-form-sidebar textarea{width:100%;height:75px}.wp-block-jetpack-google-calendar-embed-form-sidebar button{margin-top:8px;display:block}.wp-block-jetpack-google-calendar-embed-form-editor{margin:0}.wp-block-jetpack-google-calendar-embed-form-editor textarea{margin-right:1px;flex:1;height:36px;padding-top:9px;font-family:inherit;font-size:inherit}.wp-block-jetpack-google-calendar-placeholder-links{margin-top:19px}.wp-block-jetpack-google-calendar ol.wp-block-jetpack-google-calendar-placeholder-instructions{font-family:inherit;list-style-position:inside;margin:0;padding:0}.wp-block-jetpack-google-calendar ol.wp-block-jetpack-google-calendar-placeholder-instructions li{margin-bottom:19px;text-align:left}.wp-block-jetpack-google-calendar .components-placeholder__label{margin-bottom:19px}.wp-block-jetpack-google-calendar .components-placeholder p{margin:0 0 19px}.wp-block-jetpack-image-compare{margin-left:0;margin-right:0}.wp-block-jetpack-image-compare img{max-width:100%}.jx-slider.jx-slider{top:1px;left:1px;width:calc(100% - 2px)}.image-compare__placeholder>.components-placeholder{flex-direction:row;align-items:center}.image-compare__placeholder>.components-placeholder>.components-placeholder__label{display:none}.image-compare__placeholder>.components-placeholder .components-placeholder{background:none}.image-compare__image-after,.image-compare__image-before{display:flex;flex-direction:column;flex:1;position:relative}.image-compare__image-after .components-placeholder.components-placeholder,.image-compare__image-before .components-placeholder.components-placeholder{box-shadow:none;padding:0;min-height:0}.image-compare__image-after .components-placeholder.components-placeholder .components-placeholder__instructions,.image-compare__image-before .components-placeholder.components-placeholder .components-placeholder__instructions{display:none}.components-placeholder.is-large .image-compare__image-before{padding-right:12px}.components-placeholder.is-large .image-compare__image-after{padding-left:12px}.components-placeholder.is-medium .image-compare__image-before{margin-bottom:24px}[data-type="jetpack/image-compare"]:not(.is-selected) .image-compare__comparison{pointer-events:none}.juxtapose .components-placeholder{border:none;padding:0;box-shadow:none}.juxtapose .components-placeholder .components-placeholder__label{display:none}.juxtapose .components-placeholder .image-compare__image-after,.juxtapose .components-placeholder .image-compare__image-before{padding:0;flex:none;width:100%}.juxtapose .components-placeholder:before{content:"";display:block;position:absolute;z-index:2;width:100%;height:4px;background:#fff}.juxtapose .components-placeholder .image-compare__image-after{position:absolute;width:100%;height:50%;overflow:hidden}.juxtapose .components-placeholder .image-compare__image-after img{width:100%;height:200%;max-width:none;display:flex;align-self:flex-end}div.juxtapose{width:100%;font-family:Helvetica,Arial,sans-serif}div.jx-slider{width:100%;height:100%;position:relative;overflow:hidden;cursor:pointer;color:#f3f3f3}div.jx-handle{position:absolute;height:100%;width:40px;cursor:col-resize;z-index:15;margin-left:-20px}.vertical div.jx-handle{height:40px;width:100%;cursor:row-resize;margin-top:-20px;margin-left:0}div.jx-control{height:100%;margin-right:auto;margin-left:auto;width:3px;background-color:currentColor}.vertical div.jx-control{height:3px;width:100%;background-color:currentColor;position:relative;top:50%;transform:translateY(-50%)}div.jx-controller{position:absolute;top:0;bottom:0;height:60px;width:9px;margin:auto auto auto -3px;background-color:currentColor}.vertical div.jx-controller{height:9px;width:100px;margin-left:auto;margin-right:auto;top:-3px;position:relative}div.jx-arrow{margin:auto;top:0;bottom:0}.vertical div.jx-arrow,div.jx-arrow{position:absolute;width:0;height:0;transition:all .2s ease}.vertical div.jx-arrow{margin:0 auto;left:0;right:0}div.jx-arrow.jx-left{left:2px;border-color:transparent currentcolor transparent transparent;border-style:solid;border-width:8px 8px 8px 0}div.jx-arrow.jx-right{right:2px;border-color:transparent transparent transparent currentcolor;border-style:solid;border-width:8px 0 8px 8px}.vertical div.jx-arrow.jx-left{left:0;top:2px;border-color:transparent transparent currentcolor;border-style:solid;border-width:0 8px 8px}.vertical div.jx-arrow.jx-right{right:0;top:auto;bottom:2px;border-color:currentcolor transparent transparent;border-style:solid;border-width:8px 8px 0}div.jx-handle:active div.jx-arrow.jx-left,div.jx-handle:hover div.jx-arrow.jx-left{left:-1px}div.jx-handle:active div.jx-arrow.jx-right,div.jx-handle:hover div.jx-arrow.jx-right{right:-1px}.vertical div.jx-handle:active div.jx-arrow.jx-left,.vertical div.jx-handle:hover div.jx-arrow.jx-left{left:0;top:0}.vertical div.jx-handle:active div.jx-arrow.jx-right,.vertical div.jx-handle:hover div.jx-arrow.jx-right{right:0;bottom:0}div.jx-image{position:absolute;height:100%;display:inline-block;top:0;overflow:hidden}.vertical div.jx-image{width:100%;left:0;top:auto}div.jx-slider div.jx-image img{height:100%!important;width:auto!important;z-index:5;position:absolute;margin-bottom:0;max-width:none!important;max-height:none!important}div.jx-slider.vertical div.jx-image img{height:auto!important;width:100%!important}div.jx-image.jx-left{left:0;background-position:0}div.jx-image.jx-left img{left:0}div.jx-image.jx-right{right:0;background-position:100%}div.jx-image.jx-right img{right:0;bottom:0}.veritcal div.jx-image.jx-left{top:0;background-position:top}.veritcal div.jx-image.jx-left img{top:0}.vertical div.jx-image.jx-right{bottom:0;background-position:bottom}.veritcal div.jx-image.jx-right img{bottom:0}div.jx-image div.jx-label{font-size:1em;padding:.25em .75em;position:relative;display:inline-block;top:0;background-color:#000;background-color:rgba(0,0,0,.7);color:#fff;z-index:10;white-space:nowrap;line-height:18px;vertical-align:middle}div.jx-image.jx-left div.jx-label{float:left;left:0}div.jx-image.jx-right div.jx-label{float:right;right:0}.vertical div.jx-image div.jx-label{display:table;position:absolute}.vertical div.jx-image.jx-right div.jx-label{left:0;bottom:0;top:auto}div.jx-image.transition{transition:width .5s ease}div.jx-handle.transition{transition:left .5s ease}.vertical div.jx-image.transition{transition:height .5s ease}.vertical div.jx-handle.transition{transition:top .5s ease}div.jx-controller:focus,div.jx-image.jx-left div.jx-label:focus,div.jx-image.jx-right div.jx-label:focus,figure.wp-block-jetpack-image-compare figcaption{text-align:center;font-size:85%}div.jx-control{color:#fff}.vertical div.jx-controller,div.jx-controller{width:48px;height:48px;border-radius:50%}div.jx-controller{margin-left:-22.5px}.vertical div.jx-controller{transform:translateY(-19.5px)}.vertical div.jx-arrow.jx-left,.vertical div.jx-arrow.jx-right,div.jx-arrow.jx-left,div.jx-arrow.jx-right{width:24px;height:24px;border:none;background-repeat:no-repeat;z-index:1;will-change:transform}div.jx-arrow.jx-left{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEzLjQgMThMOCAxMmw1LjQtNiAxLjIgMS00LjYgNSA0LjYgNXoiLz48L3N2Zz4=");left:0}div.jx-arrow.jx-right{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEwLjYgNkw5LjQgN2w0LjYgNS00LjYgNSAxLjIgMSA1LjQtNnoiLz48L3N2Zz4=");right:0}div.vertical div.jx-arrow.jx-left,div.vertical div.jx-arrow.jx-right{transform:rotate(90deg)}.wp-block-jetpack-instagram-gallery__grid{align-content:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post{box-sizing:border-box;display:block;line-height:0;position:relative}.wp-block-jetpack-instagram-gallery__grid img{height:auto;width:100%}.wp-block-jetpack-instagram-gallery__grid-columns-1 .wp-block-jetpack-instagram-gallery__grid-post{width:100%}.wp-block-jetpack-instagram-gallery__grid-columns-2 .wp-block-jetpack-instagram-gallery__grid-post{width:50%}.wp-block-jetpack-instagram-gallery__grid-columns-3 .wp-block-jetpack-instagram-gallery__grid-post{width:33.33333%}.wp-block-jetpack-instagram-gallery__grid-columns-4 .wp-block-jetpack-instagram-gallery__grid-post{width:25%}.wp-block-jetpack-instagram-gallery__grid-columns-5 .wp-block-jetpack-instagram-gallery__grid-post{width:20%}.wp-block-jetpack-instagram-gallery__grid-columns-6 .wp-block-jetpack-instagram-gallery__grid-post{width:16.66667%}@media(max-width:600px){.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile .wp-block-jetpack-instagram-gallery__grid-post{width:100%}}@supports(display:grid){.wp-block-jetpack-instagram-gallery__grid{display:grid;grid-gap:10px;grid-auto-columns:1fr}@media(max-width:600px){.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile{display:block}.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile .wp-block-jetpack-instagram-gallery__grid-post{padding:var(--latest-instagram-posts-spacing)}}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post{width:auto}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post img{height:100%;-o-object-fit:cover;object-fit:cover}.wp-block-jetpack-instagram-gallery__grid-columns-1{grid-template-columns:repeat(1,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-2{grid-template-columns:repeat(2,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-3{grid-template-columns:repeat(3,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-4{grid-template-columns:repeat(4,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-5{grid-template-columns:repeat(5,1fr)}.wp-block-jetpack-instagram-gallery__grid-columns-6{grid-template-columns:repeat(6,1fr)}}@supports((-o-object-fit:cover) or (object-fit:cover)){.wp-block-jetpack-instagram-gallery__grid-post img{height:100%;-o-object-fit:cover;object-fit:cover}}.wp-block-jetpack-instagram-gallery .components-placeholder .components-radio-control{margin-bottom:28px}.wp-block-jetpack-instagram-gallery .components-placeholder .components-radio-control label{font-weight:400}.wp-block-jetpack-instagram-gallery .components-placeholder .wp-block-jetpack-instagram-gallery__new-account-instructions{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-jetpack-instagram-gallery__count-notice .components-notice{margin:0 0 15px}.wp-block-jetpack-instagram-gallery__count-notice .components-notice__content{margin:0;line-height:inherit;padding-right:0}.wp-block-jetpack-instagram-gallery__disconnection-warning{font-style:italic;margin-bottom:0}.wp-block-jetpack-instagram-gallery__placeholder{animation-name:fadeIn,pulse;animation-duration:.3s,1.6s;animation-delay:0ms,.3s;animation-timing-function:ease-out,ease-out;animation-iteration-count:1,infinite;background-color:#a7a79f;display:flex;opacity:1}.wp-block-jetpack-instagram-gallery__placeholder.is-loaded{animation:none;height:auto}.wp-block-jetpack-instagram-gallery__placeholder img{opacity:0;transition:opacity .5s ease-in-out}.wp-block-jetpack-instagram-gallery__placeholder img.is-loaded{opacity:1}@keyframes fadeIn{0%{opacity:0}50%{opacity:.5}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}@supports((-o-object-fit:cover) or (object-fit:cover)){.wp-block-jetpack-instagram-gallery__placeholder.is-loaded{display:flex;flex-direction:column;flex-grow:1}.wp-block-jetpack-instagram-gallery__placeholder.is-loaded img{height:auto;-o-object-fit:cover;object-fit:cover;flex-grow:1}}.wp-block-jetpack-instagram-gallery__grid .wp-block-jetpack-instagram-gallery__grid-post{display:flex;flex-direction:column}@supports(display:grid){@media(max-width:600px){.wp-block-jetpack-instagram-gallery__grid.is-stacked-on-mobile .wp-block-jetpack-instagram-gallery__placeholder{margin:0!important}}}.wp-block-jetpack-mailchimp.is-processing form{display:none}.wp-block-jetpack-mailchimp .wp-block-jetpack-button,.wp-block-jetpack-mailchimp p{margin-bottom:1em}.wp-block-jetpack-mailchimp input{box-sizing:border-box;width:100%}.wp-block-jetpack-mailchimp .error,.wp-block-jetpack-mailchimp .error:focus{outline:1px;outline-offset:-2px;outline-style:auto;outline-color:#d63638}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification{display:none;margin-bottom:1.5em;padding:.75em}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.is-visible{display:block}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp_error{background-color:#d63638;color:#fff}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp_processing{background-color:rgba(0,0,0,.025)}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp_success{background-color:#008a20;color:#fff}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification.wp-block-jetpack-mailchimp__is-amp{display:block}.wp-block-jetpack-mailchimp form.amp-form-submit-error>p,.wp-block-jetpack-mailchimp form.amp-form-submit-success>p,.wp-block-jetpack-mailchimp form.amp-form-submitting>p{display:none}.wp-block-jetpack-mailchimp .components-placeholder__label svg{margin-right:1ch}.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_notification{display:block}.wp-block-jetpack-mailchimp .editor-rich-text__inline-toolbar{pointer-events:none}.wp-block-jetpack-mailchimp .editor-rich-text__inline-toolbar .components-toolbar{pointer-events:all}.wp-block-jetpack-mailchimp-recheck{margin-top:1em}.wp-block-jetpack-mailchimp.wp-block-jetpack-mailchimp_notication-audition>:not(.wp-block-jetpack-mailchimp_notification){display:none}.wp-block-jetpack-mailchimp .jetpack-submit-button,.wp-block-jetpack-mailchimp .wp-block-jetpack-mailchimp_text-input{margin-bottom:1.5rem}.wp-block-jetpack-mailchimp .wp-block-button .wp-block-button__link{margin-top:0}.wp-block-jetpack-mailchimp .components-placeholder__fieldset{display:block;flex-direction:unset;flex-wrap:unset}.wp-block-jetpack-mailchimp .components-placeholder__fieldset .components-button{margin-bottom:0}.component__add-point{position:absolute;left:50%;top:50%;width:32px;height:38px;margin-top:-19px;margin-left:-16px;background-image:url(images/oval-5f1d889983a8747472c7.svg);background-repeat:no-repeat;text-indent:-9999px}.component__add-point,.component__add-point.components-button:not(:disabled):not([aria-disabled=true]):focus{box-shadow:none;background-color:transparent}.component__add-point:active,.component__add-point:focus{background-color:transparent}.component__add-point__popover .components-button:not(:disabled):not([aria-disabled=true]):focus{background-color:transparent;box-shadow:none}.component__add-point__popover .components-popover__content{padding:.1rem}.component__add-point__popover .components-location-search{margin:.5rem}.component__add-point__close{margin:.4rem 0 0;padding:0;border:none;box-shadow:none;float:right}.component__add-point__close path{color:#e0e0e0}.wp-block-jetpack-map-marker{width:32px;height:38px;opacity:.9}.edit-post-settings-sidebar__panel-block .component__locations__panel{margin-bottom:1em}.edit-post-settings-sidebar__panel-block .component__locations__panel:empty{display:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child{border-top:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:last-child{max-width:100%;margin:0}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body button{padding-right:40px}.component__locations__delete-btn{padding:0}.component__locations__delete-btn svg{margin-right:.4em}.wp-block-jetpack-map .wp-block-jetpack-map__gm-container{width:100%;overflow:hidden;background:#e0e0e0;min-height:400px;text-align:left}.wp-block-jetpack-map .mapboxgl-popup{max-width:300px}.wp-block-jetpack-map .mapboxgl-popup h3{font-size:1.3125em;font-weight:400;margin-bottom:.5rem}.wp-block-jetpack-map .mapboxgl-popup p{margin-bottom:0}.wp-block-jetpack-map .mapboxgl-ctrl-group button{border-radius:0;background-color:transparent!important}.wp-block-jetpack-map__delete-btn{padding:0}.wp-block-jetpack-map__delete-btn svg{margin-right:.4em}.wp-block[data-type="jetpack/map"] .components-placeholder__label svg{fill:currentColor;margin-right:1ch}.wp-block[data-type="jetpack/map"] .components-placeholder__instructions .components-external-link{display:inline-block;margin:1em auto}.wp-block-jetpack-map .mapboxgl-popup-close-button{font-size:21px;padding:0 10px 5px 9px}.wp-block-jetpack-map .wp-block-jetpack-map__map_wrapper{overflow:hidden;background-color:#e4e2de}.wp-block-jetpack-map__height_input{display:block}.component__add-point__popover .components-popover__content{width:250px}.component__add-point__popover .components-popover__content .component__add-point__close{margin-top:-.55em;padding:.3em}.wp-block-jetpack-markdown__placeholder{opacity:.62;pointer-events:none}.block-editor-block-list__block .wp-block-jetpack-markdown__preview{min-height:1.8em;line-height:1.8}.block-editor-block-list__block .wp-block-jetpack-markdown__preview>*{margin-top:32px;margin-bottom:32px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h1,.block-editor-block-list__block .wp-block-jetpack-markdown__preview h2,.block-editor-block-list__block .wp-block-jetpack-markdown__preview h3{line-height:1.4}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h1{font-size:2.44em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h2{font-size:1.95em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h3{font-size:1.56em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h4{font-size:1.25em;line-height:1.5}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h5{font-size:1em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview h6{font-size:.8em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview hr{border:none;border-bottom:2px solid #f0f0f0;margin:2em auto;max-width:100px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview p{line-height:1.8}.block-editor-block-list__block .wp-block-jetpack-markdown__preview blockquote{border-left:4px solid #000;margin-left:0;margin-right:0;padding-left:1em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview blockquote p{line-height:1.5;margin:1em 0}.block-editor-block-list__block .wp-block-jetpack-markdown__preview ol,.block-editor-block-list__block .wp-block-jetpack-markdown__preview ul{margin-left:1.3em;padding-left:1.3em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview li p{margin:0}.block-editor-block-list__block .wp-block-jetpack-markdown__preview code,.block-editor-block-list__block .wp-block-jetpack-markdown__preview pre{color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace}.block-editor-block-list__block .wp-block-jetpack-markdown__preview code{background:#f0f0f0;border-radius:2px;font-size:inherit;padding:2px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview pre{border-radius:4px;border:1px solid #e0e0e0;font-size:15px;padding:.8em 1em}.block-editor-block-list__block .wp-block-jetpack-markdown__preview pre code{background:transparent;padding:0}.block-editor-block-list__block .wp-block-jetpack-markdown__preview table{overflow-x:auto;border-collapse:collapse;width:100%}.block-editor-block-list__block .wp-block-jetpack-markdown__preview tbody,.block-editor-block-list__block .wp-block-jetpack-markdown__preview tfoot,.block-editor-block-list__block .wp-block-jetpack-markdown__preview thead{width:100%;min-width:240px}.block-editor-block-list__block .wp-block-jetpack-markdown__preview td,.block-editor-block-list__block .wp-block-jetpack-markdown__preview th{padding:.5em;border:1px solid}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor{font-family:Menlo,Consolas,monaco,monospace;font-size:15px}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor:focus{border-color:transparent;box-shadow:0 0 0 transparent}.wp-block-jetpack-opentable{display:inline-block}.wp-block-jetpack-opentable.is-placeholder,.wp-block-jetpack-opentable.is-style-wide{display:block}.wp-block-jetpack-opentable .components-base-control{width:100%}.wp-block-jetpack-opentable .components-placeholder__fieldset p{font-size:13px;margin:0 0 1em}.wp-block-jetpack-opentable .components-placeholder__fieldset form{flex-direction:row}@media screen and (max-width:479px){.wp-block-jetpack-opentable .components-placeholder__fieldset form{display:block}}.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__label{display:none}.wp-block-jetpack-opentable .components-placeholder__fieldset form p{margin-top:1em}.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__input-container{width:100%}@media screen and (min-width:480px){.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__input-container input[type=text].components-form-token-field__input{min-height:32px}}.wp-block-jetpack-opentable .components-placeholder__fieldset form>.components-button{padding:0 8px;height:42px;align-items:center;line-height:normal}@media screen and (min-width:480px){.wp-block-jetpack-opentable .components-placeholder__fieldset form>.components-button{margin:0 0 0 4px;position:relative}}.wp-block-jetpack-opentable .components-placeholder__fieldset form .components-form-token-field__remove-token{padding:2px 6px}.wp-block-jetpack-opentable iframe{height:100%;width:100%}.wp-block-jetpack-opentable-overlay{position:absolute;width:100%;height:100%;z-index:10}.wp-block-jetpack-opentable-restaurant-picker{margin-bottom:1em;position:relative;width:100%}.wp-block-jetpack-opentable-restaurant-picker .components-form-token-field__token-text{display:inline-flex;align-items:center}.wp-block-jetpack-opentable-placeholder-links{display:flex;flex-direction:column}@media screen and (min-width:480px){.wp-block-jetpack-opentable-placeholder-links{display:block}}.wp-block-jetpack-opentable-placeholder-links a{padding:.25em 1em .25em 0}@media screen and (min-width:480px){.wp-block-jetpack-opentable-placeholder-links a form>button{height:50px}}.wp-block-jetpack-opentable-placeholder-links a:last-child{padding-right:0;padding-left:1em}.wp-block-jetpack-opentable.is-style-button.has-no-margin iframe{margin:-14px}.editor-styles-wrapper .wp-block-jetpack-opentable .components-form-token-field__suggestions-list{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;text-align:left;padding:0;margin:0}.wp-block>.wp-block-jetpack-opentable.is-style-wide.alignright{left:auto;right:0}.wp-block[data-type="jetpack/opentable"] .components-notice__content{text-align:left}.components-toggle-control.is-opentable{padding-top:6px}.is-opentable button.is-active{font-weight:700}.wp-block-jetpack-opentable{position:relative}.wp-block-jetpack-opentable>iframe{background:transparent;margin:0}.wp-block-jetpack-opentable.aligncenter iframe{margin:0 auto}.wp-block-jetpack-opentable.is-style-standard,.wp-block-jetpack-opentable.is-style-wide.is-style-mobile{height:301px}.wp-block-jetpack-opentable.is-style-standard.is-multi,.wp-block-jetpack-opentable.is-style-wide.is-style-mobile.is-multi{height:361px}.wp-block-jetpack-opentable.is-style-standard.aligncenter iframe,.wp-block-jetpack-opentable.is-style-wide.is-style-mobile.aligncenter iframe{width:224px!important}.wp-block-jetpack-opentable.is-style-tall{height:490px}.wp-block-jetpack-opentable.is-style-tall.is-multi{height:550px}.wp-block-jetpack-opentable.is-style-tall.aligncenter iframe{width:288px!important}.wp-block-jetpack-opentable.is-style-wide{height:150px}.wp-block-jetpack-opentable.is-style-wide iframe{width:840px!important}.wp-block-jetpack-opentable.is-style-wide.alignleft{max-width:840px;right:auto;margin-left:2rem}.wp-block-jetpack-opentable.is-style-wide.alignright{max-width:840px;left:calc(100% - 840px - 2rem)}.wp-block-jetpack-opentable.is-style-button{height:113px}.wp-block-jetpack-opentable.is-style-button.aligncenter iframe{width:210px!important}.wp-block-jetpack-opentable.is-style-button.has-no-margin>div[id^=ot-widget-container]{margin:-14px}.wp-block-jetpack-opentable .ot-dtp-picker{box-sizing:content-box}.wp-block-jetpack-opentable .ot-dtp-picker .ot-title{margin:4px auto 12px}.wp-block-jetpack-opentable .ot-dtp-picker .ot-dtp-picker-selector-link{text-decoration:none}.wp-block-jetpack-opentable .ot-dtp-picker input[type=submit]{text-transform:none;padding:0}.wp-block-jetpack-opentable .ot-dtp-picker input[type=submit]:hover{text-decoration:none}.block-editor-block-contextual-toolbar[data-type="jetpack/podcast-player"] .components-toolbar__control,[data-type="jetpack/podcast-player"] .block-editor-block-contextual-toolbar .components-toolbar__control{width:auto;padding:0 1em}.jetpack-podcast-player__interactive-overlay,.jetpack-podcast-player__loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0}.jetpack-podcast-player__loading-overlay{background:hsla(0,0%,100%,.7);display:flex;align-items:center;justify-content:center}.jetpack-podcast-player__placeholder .components-base-control,.jetpack-podcast-player__placeholder .components-base-control__field{display:flex;flex-grow:1}.jetpack-podcast-player__placeholder .components-base-control__field{margin-bottom:0}.jetpack-podcast-player__placeholder .components-placeholder__learn-more{margin-top:1em}.block-editor-block-inspector .components-base-control.jetpack-podcast-player__episode-selector{margin-bottom:24px}.jetpack-audio-player-loading{height:10px;background:#ccc;background:var(--jetpack-audio-player-secondary);margin:15px 24px}.jetpack-audio-player{--jetpack-audio-player-primary:var(--jetpack-podcast-player-primary,#000);--jetpack-audio-player-secondary:var(--jetpack-podcast-player-secondary,#ccc);--jetpack-audio-player-background:var(--jetpack-podcast-player-background,#fff);height:40px}.jetpack-audio-player .mejs-container,.jetpack-audio-player .mejs-container .mejs-controls,.jetpack-audio-player .mejs-embed,.jetpack-audio-player .mejs-embed body,.jetpack-audio-player .mejs-mediaelement{background-color:transparent}.jetpack-audio-player .mejs-container:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px;box-shadow:none}.jetpack-audio-player .mejs-controls{position:static;padding:0}.jetpack-podcast-player__header .jetpack-audio-player .mejs-controls{padding-left:15px;padding-right:18px}.jetpack-audio-player .mejs-time{color:#ccc;color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-time-float{color:#fff;color:var(--jetpack-audio-player-background);background:#000;background:var(--jetpack-audio-player-primary);border-color:#000;border-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-time-float-corner{border-top-color:#000;border-top-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-total{background-color:#ccc;background-color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded{opacity:.5}.jetpack-audio-player .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-current,.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded{background-color:#000;background-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-slider:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-button>button{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23000;width:16px;height:16px}.st1{fill:none;stroke:%23000;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath class='st0' d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm47.2.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z'/%3E%3Cpath class='st1' d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8'/%3E%3Cpath class='st1' d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9'/%3E%3Cpath class='st0' d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z'/%3E%3Cpath d='M52.8 7l5.4 5.4m-5.4 0L58.2 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9' fill='none' stroke='%23000'/%3E%3Cpath class='st0' d='M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3zm22.4 1h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3Cpath d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z' fill='%23231f20'/%3E%3Cpath class='st0' d='M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z'/%3E%3Cpath d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75' fill='none' stroke='%23000' stroke-width='5'/%3E%3Cpath class='st0' d='M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z'/%3E%3Cpath d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z' fill='none' stroke='%23000' stroke-width='5'/%3E%3Ccircle class='st0' cx='201.9' cy='47.1' r='8.1'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4'/%3E%3Ccircle cx='201.9' cy='110.9' r='6' opacity='.6'/%3E%3Ccircle cx='170.1' cy='79' r='7' opacity='.8'/%3E%3Ccircle cx='178.2' cy='56.3' r='7.5' opacity='.9'/%3E%3Ccircle cx='226.3' cy='56.1' r='4.5' opacity='.3'/%3E%3Ccircle cx='225.8' cy='102.8' r='5.5' opacity='.5'/%3E%3Ccircle cx='178.2' cy='102.8' r='6.5' opacity='.7'/%3E%3Cpath class='st0' d='M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z'/%3E%3Cpath class='st0' d='M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2zm14-12.7c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z'/%3E%3C/svg%3E")}.jetpack-audio-player .mejs-button.mejs-jump-button>button{background-image:url('data:image/svg+xml;utf8,%3Csvg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60.78 35.3"%3E%3Cdefs%3E%3Cstyle%3E.cls-1{fill-rule:evenodd;}%3C/style%3E%3C/defs%3E%3Ctitle%3Etestsprite%3C/title%3E%3Cg id="layer1"%3E%3Cg id="mask0"%3E%3Cpath id="path44" class="cls-1" d="M42.49,6.27v3.87a7.72,7.72,0,1,1-7.68,7.72h1.92a5.77,5.77,0,1,0,5.76-5.79v3.86l-4.8-4.83Zm-1,10.36-.24,2.1.65.15,0,0a.46.46,0,0,1,.07-.07s0,0,.06,0l.06,0,.14-.05.19,0a.79.79,0,0,1,.29.05.48.48,0,0,1,.2.14.65.65,0,0,1,.13.23,1,1,0,0,1,0,.3h0a1,1,0,0,1,0,.3.9.9,0,0,1-.11.24.46.46,0,0,1-.17.17.5.5,0,0,1-.26.06.6.6,0,0,1-.4-.15.56.56,0,0,1-.19-.39h-.8a1.2,1.2,0,0,0,.12.51,1.12,1.12,0,0,0,.31.37,1.45,1.45,0,0,0,.44.24,2.24,2.24,0,0,0,.51.07,1.91,1.91,0,0,0,.62-.11,1.33,1.33,0,0,0,.43-.3,1.39,1.39,0,0,0,.26-.44,1.46,1.46,0,0,0,.08-.52,2.14,2.14,0,0,0-.08-.58,1.05,1.05,0,0,0-.64-.7,1.21,1.21,0,0,0-.52-.1l-.2,0-.08,0-.09,0a.38.38,0,0,0-.14.05l0,0s0,0-.06,0l.11-.89h1.63v-.69Z"/%3E%3C/g%3E%3Cg id="g34"%3E%3Cg id="g32"%3E%3Cpath id="path26" d="M23.81,17.58a6,6,0,1,1-6-6v4l5-5-5-5v4a8,8,0,1,0,8,8Z"/%3E%3Cpath id="path28" d="M15.87,20a.57.57,0,0,1-.62-.54H14.4a1.3,1.3,0,0,0,1.45,1.23c.87,0,1.51-.46,1.51-1.25a1,1,0,0,0-.71-1,1.06,1.06,0,0,0,.65-.92c0-.21-.05-1.22-1.44-1.22a1.27,1.27,0,0,0-1.4,1.16h.85a.58.58,0,0,1,1.15.06.56.56,0,0,1-.63.59h-.46v.66h.45c.65,0,.7.42.7.64A.58.58,0,0,1,15.87,20Z"/%3E%3Cpath id="path30" d="M19.66,16.26c-.14,0-1.44-.08-1.44,1.82v.74c0,1.9,1.31,1.82,1.44,1.82s1.44.09,1.44-1.82v-.74C21.11,16.17,19.8,16.26,19.66,16.26Zm.6,2.67c0,.77-.21,1-.59,1s-.6-.26-.6-1V18c0-.75.22-1,.59-1s.6.26.6,1Z"/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E');background-size:60.78px 35.296px}.jetpack-audio-player .mejs-button.mejs-jump-backward-button>button{background-position:-32px -6px}.jetpack-audio-player .mejs-button.mejs-skip-forward-button>button{background-position:-9px -6px}@supports((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.jetpack-audio-player .mejs-button>button{background-image:none}.jetpack-audio-player .mejs-button>button:before{display:block;content:"";width:100%;height:100%;background-color:var(--jetpack-audio-player-primary);background-image:none;-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23fff;width:16px;height:16px}.st1{fill:none;stroke:%23fff;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath class='st0' d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zM81 1.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z'/%3E%3Cpath class='st1' d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8'/%3E%3Cpath class='st1' d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9'/%3E%3Cpath class='st0' d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z'/%3E%3Cpath d='M52.8 7l5.4 5.4m-5.4 0L58.2 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9' fill='none' stroke='%23fff'/%3E%3Cpath class='st0' d='M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3zM143.2 3h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3Cpath d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z' fill='%23231f20'/%3E%3Cpath class='st0' d='M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z'/%3E%3Cpath d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Cpath class='st0' d='M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z'/%3E%3Cpath d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Ccircle class='st0' cx='201.9' cy='47.1' r='8.1'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4' fill='%23fff'/%3E%3Ccircle cx='201.9' cy='110.9' r='6' opacity='.6' fill='%23fff'/%3E%3Ccircle cx='170.1' cy='79' r='7' opacity='.8' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='56.3' r='7.5' opacity='.9' fill='%23fff'/%3E%3Ccircle cx='226.3' cy='56.1' r='4.5' opacity='.3' fill='%23fff'/%3E%3Ccircle cx='225.8' cy='102.8' r='5.5' opacity='.5' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='102.8' r='6.5' opacity='.7' fill='%23fff'/%3E%3Cpath class='st0' d='M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z'/%3E%3Cpath class='st0' d='M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2zM183.4 3.2c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z'/%3E%3C/svg%3E");mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23fff;width:16px;height:16px}.st1{fill:none;stroke:%23fff;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath class='st0' d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zM81 1.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z'/%3E%3Cpath class='st1' d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8'/%3E%3Cpath class='st1' d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9'/%3E%3Cpath class='st0' d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z'/%3E%3Cpath d='M52.8 7l5.4 5.4m-5.4 0L58.2 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9' fill='none' stroke='%23fff'/%3E%3Cpath class='st0' d='M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3zM143.2 3h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3Cpath d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z' fill='%23231f20'/%3E%3Cpath class='st0' d='M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z'/%3E%3Cpath d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Cpath class='st0' d='M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z'/%3E%3Cpath d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Ccircle class='st0' cx='201.9' cy='47.1' r='8.1'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4' fill='%23fff'/%3E%3Ccircle cx='201.9' cy='110.9' r='6' opacity='.6' fill='%23fff'/%3E%3Ccircle cx='170.1' cy='79' r='7' opacity='.8' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='56.3' r='7.5' opacity='.9' fill='%23fff'/%3E%3Ccircle cx='226.3' cy='56.1' r='4.5' opacity='.3' fill='%23fff'/%3E%3Ccircle cx='225.8' cy='102.8' r='5.5' opacity='.5' fill='%23fff'/%3E%3Ccircle cx='178.2' cy='102.8' r='6.5' opacity='.7' fill='%23fff'/%3E%3Cpath class='st0' d='M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z'/%3E%3Cpath class='st0' d='M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2zM183.4 3.2c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z'/%3E%3C/svg%3E")}.jetpack-audio-player .mejs-button.mejs-jump-button>button{background-image:none}.jetpack-audio-player .mejs-button.mejs-jump-button>button:before{background-image:none;-webkit-mask:url('data:image/svg+xml;utf8,%3Csvg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60.78 35.3"%3E%3Cdefs%3E%3Cstyle%3E.cls-1{fill-rule:evenodd;}%3C/style%3E%3C/defs%3E%3Ctitle%3Etestsprite%3C/title%3E%3Cg id="layer1"%3E%3Cg id="mask0"%3E%3Cpath id="path44" class="cls-1" d="M42.49,6.27v3.87a7.72,7.72,0,1,1-7.68,7.72h1.92a5.77,5.77,0,1,0,5.76-5.79v3.86l-4.8-4.83Zm-1,10.36-.24,2.1.65.15,0,0a.46.46,0,0,1,.07-.07s0,0,.06,0l.06,0,.14-.05.19,0a.79.79,0,0,1,.29.05.48.48,0,0,1,.2.14.65.65,0,0,1,.13.23,1,1,0,0,1,0,.3h0a1,1,0,0,1,0,.3.9.9,0,0,1-.11.24.46.46,0,0,1-.17.17.5.5,0,0,1-.26.06.6.6,0,0,1-.4-.15.56.56,0,0,1-.19-.39h-.8a1.2,1.2,0,0,0,.12.51,1.12,1.12,0,0,0,.31.37,1.45,1.45,0,0,0,.44.24,2.24,2.24,0,0,0,.51.07,1.91,1.91,0,0,0,.62-.11,1.33,1.33,0,0,0,.43-.3,1.39,1.39,0,0,0,.26-.44,1.46,1.46,0,0,0,.08-.52,2.14,2.14,0,0,0-.08-.58,1.05,1.05,0,0,0-.64-.7,1.21,1.21,0,0,0-.52-.1l-.2,0-.08,0-.09,0a.38.38,0,0,0-.14.05l0,0s0,0-.06,0l.11-.89h1.63v-.69Z"/%3E%3C/g%3E%3Cg id="g34"%3E%3Cg id="g32"%3E%3Cpath id="path26" d="M23.81,17.58a6,6,0,1,1-6-6v4l5-5-5-5v4a8,8,0,1,0,8,8Z"/%3E%3Cpath id="path28" d="M15.87,20a.57.57,0,0,1-.62-.54H14.4a1.3,1.3,0,0,0,1.45,1.23c.87,0,1.51-.46,1.51-1.25a1,1,0,0,0-.71-1,1.06,1.06,0,0,0,.65-.92c0-.21-.05-1.22-1.44-1.22a1.27,1.27,0,0,0-1.4,1.16h.85a.58.58,0,0,1,1.15.06.56.56,0,0,1-.63.59h-.46v.66h.45c.65,0,.7.42.7.64A.58.58,0,0,1,15.87,20Z"/%3E%3Cpath id="path30" d="M19.66,16.26c-.14,0-1.44-.08-1.44,1.82v.74c0,1.9,1.31,1.82,1.44,1.82s1.44.09,1.44-1.82v-.74C21.11,16.17,19.8,16.26,19.66,16.26Zm.6,2.67c0,.77-.21,1-.59,1s-.6-.26-.6-1V18c0-.75.22-1,.59-1s.6.26.6,1Z"/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E') 0 0/60.78px 35.296px;mask:url('data:image/svg+xml;utf8,%3Csvg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60.78 35.3"%3E%3Cdefs%3E%3Cstyle%3E.cls-1{fill-rule:evenodd;}%3C/style%3E%3C/defs%3E%3Ctitle%3Etestsprite%3C/title%3E%3Cg id="layer1"%3E%3Cg id="mask0"%3E%3Cpath id="path44" class="cls-1" d="M42.49,6.27v3.87a7.72,7.72,0,1,1-7.68,7.72h1.92a5.77,5.77,0,1,0,5.76-5.79v3.86l-4.8-4.83Zm-1,10.36-.24,2.1.65.15,0,0a.46.46,0,0,1,.07-.07s0,0,.06,0l.06,0,.14-.05.19,0a.79.79,0,0,1,.29.05.48.48,0,0,1,.2.14.65.65,0,0,1,.13.23,1,1,0,0,1,0,.3h0a1,1,0,0,1,0,.3.9.9,0,0,1-.11.24.46.46,0,0,1-.17.17.5.5,0,0,1-.26.06.6.6,0,0,1-.4-.15.56.56,0,0,1-.19-.39h-.8a1.2,1.2,0,0,0,.12.51,1.12,1.12,0,0,0,.31.37,1.45,1.45,0,0,0,.44.24,2.24,2.24,0,0,0,.51.07,1.91,1.91,0,0,0,.62-.11,1.33,1.33,0,0,0,.43-.3,1.39,1.39,0,0,0,.26-.44,1.46,1.46,0,0,0,.08-.52,2.14,2.14,0,0,0-.08-.58,1.05,1.05,0,0,0-.64-.7,1.21,1.21,0,0,0-.52-.1l-.2,0-.08,0-.09,0a.38.38,0,0,0-.14.05l0,0s0,0-.06,0l.11-.89h1.63v-.69Z"/%3E%3C/g%3E%3Cg id="g34"%3E%3Cg id="g32"%3E%3Cpath id="path26" d="M23.81,17.58a6,6,0,1,1-6-6v4l5-5-5-5v4a8,8,0,1,0,8,8Z"/%3E%3Cpath id="path28" d="M15.87,20a.57.57,0,0,1-.62-.54H14.4a1.3,1.3,0,0,0,1.45,1.23c.87,0,1.51-.46,1.51-1.25a1,1,0,0,0-.71-1,1.06,1.06,0,0,0,.65-.92c0-.21-.05-1.22-1.44-1.22a1.27,1.27,0,0,0-1.4,1.16h.85a.58.58,0,0,1,1.15.06.56.56,0,0,1-.63.59h-.46v.66h.45c.65,0,.7.42.7.64A.58.58,0,0,1,15.87,20Z"/%3E%3Cpath id="path30" d="M19.66,16.26c-.14,0-1.44-.08-1.44,1.82v.74c0,1.9,1.31,1.82,1.44,1.82s1.44.09,1.44-1.82v-.74C21.11,16.17,19.8,16.26,19.66,16.26Zm.6,2.67c0,.77-.21,1-.59,1s-.6-.26-.6-1V18c0-.75.22-1,.59-1s.6.26.6,1Z"/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E') 0 0/60.78px 35.296px}.jetpack-audio-player .mejs-button.mejs-jump-backward-button>button:before{-webkit-mask-position:-32px -6px;mask-position:-32px -6px}.jetpack-audio-player .mejs-button.mejs-skip-forward-button>button:before{-webkit-mask-position:-9px -6px;mask-position:-9px -6px}.jetpack-audio-player .mejs-button>button:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-play>button:before{-webkit-mask-position:0 0;mask-position:0 0}.jetpack-audio-player .mejs-pause>button:before{-webkit-mask-position:-20px 0;mask-position:-20px 0}.jetpack-audio-player .mejs-replay>button:before{-webkit-mask-position:-160px 0;mask-position:-160px 0}.jetpack-audio-player .mejs-mute>button:before{-webkit-mask-position:-60px 0;mask-position:-60px 0}.jetpack-audio-player .mejs-unmute>button:before{-webkit-mask-position:-40px 0;mask-position:-40px 0}}.jetpack-podcast-player--visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.wp-block-jetpack-podcast-player{overflow:hidden}.wp-block-jetpack-podcast-player audio{display:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player{--jetpack-podcast-player-primary:#000;--jetpack-podcast-player-secondary:#ccc;--jetpack-podcast-player-background:#fff;padding-top:0;padding-bottom:0;color:var(--jetpack-podcast-player-secondary);background-color:var(--jetpack-podcast-player-background)}.wp-block-jetpack-podcast-player .jetpack-podcast-player:not(.has-secondary){color:#ccc}.wp-block-jetpack-podcast-player .jetpack-podcast-player:not(.has-background){background-color:#fff}.wp-block-jetpack-podcast-player .jetpack-podcast-player a,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:active,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:focus,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:hover,.wp-block-jetpack-podcast-player .jetpack-podcast-player a:visited{box-shadow:none;text-decoration:none;border:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player a:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-podcast-player-secondary);outline-offset:2px}.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link,.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:active,.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:visited{color:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:focus,.wp-block-jetpack-podcast-player .jetpack-podcast-player a.jetpack-podcast-player__link:hover{color:inherit;color:var(--jetpack-podcast-player-primary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__header{display:flex;flex-direction:column}.wp-block-jetpack-podcast-player .jetpack-podcast-player__current-track-info{display:flex;padding:24px}.wp-block-jetpack-podcast-player .jetpack-podcast-player__cover{width:80px;margin-right:24px;flex-shrink:0}.wp-block-jetpack-podcast-player .jetpack-podcast-player__cover-image{width:80px;height:80px;padding:0;border:0;max-width:100%}.wp-block-jetpack-podcast-player h2.jetpack-podcast-player__title{display:flex;flex-direction:column;width:100%;margin:0;padding:0;letter-spacing:0;color:inherit}.wp-block-jetpack-podcast-player h2.jetpack-podcast-player__title:after,.wp-block-jetpack-podcast-player h2.jetpack-podcast-player__title:before{display:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player__current-track-title{font-size:24px;margin:0 0 10px;color:var(--jetpack-podcast-player-primary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__current-track-title:not(.has-primary){color:#000}.wp-block-jetpack-podcast-player .jetpack-podcast-player__podcast-title{font-size:16px;margin:0;color:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player__tracks{list-style-type:none;display:flex;flex-direction:column;margin:24px 0 0;padding:0 0 15px}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track{margin:0;font-size:16px;line-height:1.8;color:var(--jetpack-podcast-player-secondary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track:not(.is-active):not(.has-secondary){color:#ccc}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.is-active{font-weight:700;color:var(--jetpack-podcast-player-primary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.is-active:not(.has-primary){color:#000}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-link{display:flex;flex-flow:row nowrap;justify-content:space-between;padding:10px 24px 10px 22px;transition:none}.wp-block-jetpack-podcast-player .is-error .jetpack-podcast-player__track.is-active .jetpack-podcast-player__track-link{padding-bottom:0}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon{flex:22px 0 0;fill:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon svg{display:block;width:22px;height:22px;margin-top:3.4px;fill:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--error{fill:#cc1818}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.has-primary .jetpack-podcast-player__track-status-icon--error{fill:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title{flex-grow:1;padding:0 15px}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link{display:inline-block;height:27px;margin-left:5px;vertical-align:top}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link,.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:active,.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:visited{color:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:focus,.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link:hover{color:inherit;color:var(--jetpack-podcast-player-secondary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-title-link svg{display:block;width:27px;height:27px;fill:currentColor}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-duration{word-break:normal}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-description{order:99;padding:0 24px;margin:0 0 24px;font-size:16px;line-height:1.8;color:inherit;overflow:hidden;max-height:7.2em}@supports(display:-webkit-box){.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:none}}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-error{display:block;margin-left:59px;margin-bottom:10px;font-size:.8em;font-weight:400;color:#cc1818}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-error>span{color:var(--jetpack-podcast-player-secondary)}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-error>span:not(.has-secondary){color:#ccc}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track.has-primary .jetpack-podcast-player__track-error{color:inherit}.wp-block-jetpack-podcast-player .jetpack-podcast-player__error{padding:24px;margin:0;color:#cc1818;font-size:.8em;font-weight:400}@supports((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--playing{background-image:none}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--playing:before{display:block;content:"";width:100%;height:100%;background-color:var(--jetpack-podcast-player-primary);background-image:none;-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg width='18' height='18' viewBox='0 0 4.763 4.763' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath class='st0' d='M1.65 1.204a.793.793 0 01-.476.159H.327c-.159 0-.264.106-.264.264v1.508c0 .16.105.265.264.265h1.111c.08.053.133.106.212.159l.926.688c.106.079.212.026.212-.106V.595c0-.132-.106-.185-.212-.105z' stroke-width='.265'/%3E%3Cpath class='st1' d='M3.48.33S4.512.118 4.512 2.367 3.48 4.431 3.48 4.431' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3Cpath class='st1' d='M3.13 1.362s.688-.106.688 1.005S3.13 3.4 3.13 3.4' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3C/svg%3E");mask:url("data:image/svg+xml;charset=utf-8,%3Csvg width='18' height='18' viewBox='0 0 4.763 4.763' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath class='st0' d='M1.65 1.204a.793.793 0 01-.476.159H.327c-.159 0-.264.106-.264.264v1.508c0 .16.105.265.264.265h1.111c.08.053.133.106.212.159l.926.688c.106.079.212.026.212-.106V.595c0-.132-.106-.185-.212-.105z' stroke-width='.265'/%3E%3Cpath class='st1' d='M3.48.33S4.512.118 4.512 2.367 3.48 4.431 3.48 4.431' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3Cpath class='st1' d='M3.13 1.362s.688-.106.688 1.005S3.13 3.4 3.13 3.4' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='.397'/%3E%3C/svg%3E");max-height:22px;-webkit-mask-position:0 0;mask-position:0 0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;max-width:20px;margin:4px 2px 0 0}.wp-block-jetpack-podcast-player .jetpack-podcast-player__track-status-icon--playing svg{display:none}}.wp-block-jetpack-podcast-player.is-default .jetpack-podcast-player__track-title{padding-left:0}.wp-block-jetpack-podcast-player.is-default .jetpack-audio-player,.wp-block-jetpack-podcast-player.is-default .jetpack-podcast-player__track-status-icon{display:none}.jetpack-ratings-button{cursor:pointer}.jetpack-ratings-button:focus{border:none;outline:none}.wp-block-jetpack-rating-star{margin-bottom:1.5em;line-height:0;stroke-width:0}.wp-block-jetpack-rating-star .is-rating-unfilled{fill-opacity:.33}.wp-block-jetpack-rating-star .jetpack-ratings-button{display:inline-flex;border-radius:2px}.wp-block-jetpack-rating-star .jetpack-ratings-button:focus{box-shadow:0 0 0 1px currentColor;outline:2px solid transparent}.wp-block-jetpack-rating-star>p{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.wp-block-jetpack-rating-star>span{display:inline-flex!important;margin-right:.3em}.wp-block-jetpack-rating-star .jetpack-ratings-button span,.wp-block-jetpack-rating-star>span span{flex-shrink:0;width:12px;overflow:hidden;display:inline-flex}.wp-block-jetpack-rating-star .jetpack-ratings-button span svg,.wp-block-jetpack-rating-star>span span svg{flex-shrink:0}.wp-block-jetpack-rating-star .jetpack-ratings-button span:nth-child(2n),.wp-block-jetpack-rating-star>span span:nth-child(2n){justify-content:flex-end}.wp-block-jetpack-rating-star svg{display:inline-block!important;max-width:none!important}.wp-block-jetpack-rating-star.is-style-outlined{stroke-width:2px}.wp-block-jetpack-rating-star.is-style-outlined .is-rating-unfilled{fill:transparent}.wp-block-jetpack-rating-star .jetpack-ratings-button{margin-right:.3em}.jetpack-memberships-modal #TB_title{display:none}#TB_window.jetpack-memberships-modal{background-color:transparent;background-image:url(https://s0.wp.com/i/loading/dark-200.gif);background-size:50px;background-repeat:no-repeat;background-position:center 150px;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;border:none;height:100%}#TB_window.jetpack-memberships-modal,.jetpack-memberships-modal #TB_iframeContent{margin:0!important;bottom:0;left:0;position:absolute;right:0;top:0;width:100%!important}.jetpack-memberships-modal #TB_iframeContent{height:100%!important}BODY.modal-open{overflow:hidden}.wp-block-jetpack-recurring-payments.aligncenter .wp-block-jetpack-button{text-align:center}.wp-block-jetpack-recurring-payments .wp-block-jetpack-button{color:#fff}.wp-block-jetpack-recurring-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;width:100%}.wp-block-jetpack-recurring-payments .components-base-control__label{text-align:left}.wp-block-jetpack-recurring-payments .components-placeholder{min-height:150px;padding:24px}.wp-block-jetpack-recurring-payments .components-placeholder__fieldset{max-width:500px}.wp-block-jetpack-recurring-payments .components-placeholder__fieldset p{font-size:13px;margin:20px 0 10px}.wp-block-jetpack-recurring-payments .components-placeholder__fieldset p:first-child{margin-top:0}.wp-block-jetpack-recurring-payments .components-placeholder__instructions .components-select-control__input{padding:0 24px 0 8px}.wp-block-jetpack-recurring-payments .components-placeholder .components-placeholder__instructions{display:block}.wp-block-jetpack-recurring-payments .components-placeholder label{font-size:13px}.wp-block-jetpack-recurring-payments .editor-rich-text__inline-toolbar{pointer-events:none}.wp-block-jetpack-recurring-payments .editor-rich-text__inline-toolbar .components-toolbar{pointer-events:all}.wp-block-jetpack-recurring-payments .membership-button__add-amount{margin-right:4px}.wp-block-jetpack-recurring-payments .membership-button__disclaimer{color:var(--color-gray-200);flex-basis:100%;margin:0;font-style:italic}.wp-block-jetpack-recurring-payments .membership-button__disclaimer a{color:var(--color-gray-400);line-height:36px}.wp-block-jetpack-recurring-payments .membership-button__field-button{margin-right:4px}.wp-block-jetpack-recurring-payments .membership-button__field-error .components-text-control__input{border:1px solid #d63638}.wp-block-jetpack-recurring-payments .membership-button__field-price{width:65%}.wp-block-jetpack-recurring-payments .membership-button__price-container{display:flex;flex-wrap:wrap}.wp-block-jetpack-recurring-payments .membership-button__price-container .components-input-control__container{top:4px}.wp-block-jetpack-recurring-payments .membership-button__price-container div.membership-button__field-currency{border-right:10px solid transparent}.wp-block-jetpack-recurring-payments .membership-button__price-container p{margin-top:0}.wp-block-jetpack-recurring-payments.disclaimer-only{box-sizing:content-box;font-size:13px;margin:0 -14px;padding:14px;text-align:center;transform:translateY(14px);background:rgba(30,30,30,.62)}.is-dark-theme .wp-block-jetpack-recurring-payments.disclaimer-only{background:hsla(0,0%,100%,.65)}.wp-block-jetpack-recurring-payments .wp-block-jetpack-membership-button_notification{display:block}.jp-related-posts-i2__row{margin-left:-10px;margin-right:-10px;display:flex;margin-top:1.5rem}.jp-related-posts-i2__row:first-child{margin-top:0}.jp-related-posts-i2__row[data-post-count="3"] .jp-related-posts-i2__post{max-width:calc(33% - 20px)}.jp-related-posts-i2__row[data-post-count="1"] .jp-related-posts-i2__post,.jp-related-posts-i2__row[data-post-count="2"] .jp-related-posts-i2__post{max-width:calc(50% - 20px)}.jp-related-posts-i2__post{flex-grow:1;flex-basis:0;margin:0 10px;display:flex;flex-direction:column}.jp-related-posts-i2__post-context,.jp-related-posts-i2__post-date,.jp-related-posts-i2__post-heading,.jp-related-posts-i2__post-img-link{flex-direction:row}.jp-related-posts-i2__post-image-placeholder,.jp-related-posts-i2__post-img-link{order:-1}.jp-related-posts-i2__post-heading{margin:.5rem 0;font-size:1rem;line-height:1.2em}.jp-related-posts-i2__post-link{display:block;width:100%;line-height:1.2em;margin:.2em 0}.jp-related-posts-i2__post-img{width:100%}.jp-related-posts-i2__post-image-placeholder{display:block;position:relative;margin:0 auto;max-width:350px}.jp-related-posts-i2__post-image-placeholder-icon{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px)}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__row{margin:0;display:block}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__post{max-width:none;margin:1rem 0 0}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__post-image-placeholder{max-width:350px;margin:0}.jp-relatedposts-i2[data-layout=list] .jp-related-posts-i2__post-img-link{margin-top:1rem}.wp-block-jetpack-repeat-visitor .components-notice{margin:1em 0 0}.wp-block-jetpack-repeat-visitor .components-notice__content{color:var(--color-black)}.wp-block-jetpack-repeat-visitor .components-radio-control__option{text-align:left}.wp-block-jetpack-repeat-visitor .components-notice__content{margin:.5em 0;font-size:1em}.wp-block-jetpack-repeat-visitor .components-notice__content .components-base-control{display:inline-block;max-width:8em;vertical-align:middle}.wp-block-jetpack-repeat-visitor .components-notice__content .components-base-control .components-base-control__field{margin-bottom:0}.wp-block-jetpack-repeat-visitor-placeholder{min-height:inherit}.wp-block-jetpack-repeat-visitor-placeholder .components-placeholder__label svg{margin-right:.5ch}.wp-block-jetpack-repeat-visitor-placeholder .components-placeholder__fieldset{flex-wrap:nowrap}.wp-block-jetpack-repeat-visitor-placeholder .components-placeholder__fieldset .components-base-control{flex-basis:100%;margin-bottom:0}.wp-block-jetpack-repeat-visitor-placeholder .components-base-control__help{color:var(--muriel-hot-red-500);font-size:13px}.wp-block-jetpack-repeat-visitor--is-unselected .wp-block-jetpack-repeat-visitor-placeholder{display:none}.wp-block-jetpack-repeat-visitor-threshold{margin-right:20px}.wp-block-jetpack-repeat-visitor-threshold .components-text-control__input{margin-left:12px;text-align:center;width:5em}.block-editor-inserter__preview .wp-block-jetpack-repeat-visitor{padding:16px}.block-editor-inserter__preview .wp-block-jetpack-repeat-visitor>.block-editor-inner-blocks>.block-editor-block-list__layout{margin:0}.wp-block-jetpack-revue .components-base-control{margin-bottom:16px}.wp-block-jetpack-revue .components-base-control__label{display:block}.wp-block-jetpack-revue .components-placeholder__learn-more{margin-top:1em}.wp-block-jetpack-revue .components-text-control__input{color:#787c82}.wp-block-jetpack-revue__form{display:none}.wp-block-jetpack-revue__form.is-visible{display:block}.wp-block-jetpack-revue__form>div{margin-bottom:.75em}.wp-block-jetpack-revue .wp-block-button{margin-top:0}.wp-block-jetpack-revue input{display:block;margin-top:.25em;width:100%}@media screen and (min-width:600px){.wp-block-jetpack-revue input{max-width:300px}}.wp-block-jetpack-revue label{display:block;font-weight:700}.wp-block-jetpack-revue .required{color:#a7aaad;font-weight:400}.wp-block-jetpack-revue__message{display:none}.wp-block-jetpack-revue__message.is-visible{display:block}.wp-block-jetpack-revue__fallback{display:none}.wp-block-jetpack-send-a-message .block-editor-block-list__layout .wp-block{margin:0}.wp-block-jetpack-send-a-message .block-editor-inserter,.wp-block-jetpack-send-a-message .block-list-appender{display:none}div.wp-block-jetpack-whatsapp-button{margin-right:5px;display:flex}div.wp-block-jetpack-whatsapp-button a.whatsapp-block__button{background:#25d366;box-sizing:border-box;color:#fff;display:block;padding:8px 16px 8px 56px;border-radius:8px;text-decoration:none;white-space:nowrap;min-height:50px;line-height:36px;border:none;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:500;font-size:20px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' d='M24 11.69c0 6.458-5.274 11.692-11.782 11.692-2.066 0-4.007-.528-5.695-1.455L0 24l2.127-6.273a11.568 11.568 0 01-1.691-6.036C.436 5.234 5.711 0 12.218 0 18.726 0 24 5.234 24 11.69zM12.218 1.863c-5.462 0-9.905 4.41-9.905 9.829 0 2.15.7 4.142 1.886 5.763l-1.237 3.65 3.807-1.21a9.9 9.9 0 005.45 1.626c5.461 0 9.905-4.409 9.905-9.829 0-5.42-4.444-9.83-9.906-9.83zm5.95 12.521c-.073-.119-.265-.19-.554-.334-.289-.143-1.71-.837-1.973-.932-.265-.095-.458-.143-.65.143-.193.287-.746.932-.915 1.123-.169.192-.337.216-.626.073-.288-.143-1.219-.446-2.322-1.422-.858-.76-1.438-1.697-1.607-1.985-.168-.286-.017-.441.127-.584.13-.128.29-.335.433-.502.145-.167.193-.286.289-.478.097-.191.048-.358-.024-.502-.072-.143-.65-1.553-.89-2.127-.241-.574-.482-.478-.65-.478-.169 0-.361-.024-.554-.024-.193 0-.506.072-.77.358-.265.287-1.01.98-1.01 2.39 0 1.41 1.034 2.773 1.178 2.964.145.19 1.998 3.179 4.934 4.326 2.936 1.147 2.936.764 3.466.716.529-.047 1.708-.693 1.95-1.362.24-.67.24-1.243.168-1.363z'/%3E%3C/svg%3E");background-position:16px;background-repeat:no-repeat;background-size:32px 32px}div.wp-block-jetpack-whatsapp-button.is-color-light a.whatsapp-block__button{color:#465b64;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%2523465B64' d='M24 11.69c0 6.458-5.274 11.692-11.782 11.692-2.066 0-4.007-.528-5.695-1.455L0 24l2.127-6.273a11.568 11.568 0 01-1.691-6.036C.436 5.234 5.711 0 12.218 0 18.726 0 24 5.234 24 11.69zM12.218 1.863c-5.462 0-9.905 4.41-9.905 9.829 0 2.15.7 4.142 1.886 5.763l-1.237 3.65 3.807-1.21a9.9 9.9 0 005.45 1.626c5.461 0 9.905-4.409 9.905-9.829 0-5.42-4.444-9.83-9.906-9.83zm5.95 12.521c-.073-.119-.265-.19-.554-.334-.289-.143-1.71-.837-1.973-.932-.265-.095-.458-.143-.65.143-.193.287-.746.932-.915 1.123-.169.192-.337.216-.626.073-.288-.143-1.219-.446-2.322-1.422-.858-.76-1.438-1.697-1.607-1.985-.168-.286-.017-.441.127-.584.13-.128.29-.335.433-.502.145-.167.193-.286.289-.478.097-.191.048-.358-.024-.502-.072-.143-.65-1.553-.89-2.127-.241-.574-.482-.478-.65-.478-.169 0-.361-.024-.554-.024-.193 0-.506.072-.77.358-.265.287-1.01.98-1.01 2.39 0 1.41 1.034 2.773 1.178 2.964.145.19 1.998 3.179 4.934 4.326 2.936 1.147 2.936.764 3.466.716.529-.047 1.708-.693 1.95-1.362.24-.67.24-1.243.168-1.363z'/%3E%3C/svg%3E")}div.wp-block-jetpack-whatsapp-button.alignleft{float:none;justify-content:flex-start}div.wp-block-jetpack-whatsapp-button.aligncenter{justify-content:center}div.wp-block-jetpack-whatsapp-button.alignright{float:none;justify-content:flex-end}div.wp-block-jetpack-whatsapp-button.has-no-text a.whatsapp-block__button{padding-left:48px}div.wp-block-jetpack-whatsapp-button:hover{opacity:.9}div.wp-block-jetpack-send-a-message>div.wp-block-jetpack-whatsapp-button>a.whatsapp-block__button:focus{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' d='M24 11.69c0 6.458-5.274 11.692-11.782 11.692-2.066 0-4.007-.528-5.695-1.455L0 24l2.127-6.273a11.568 11.568 0 01-1.691-6.036C.436 5.234 5.711 0 12.218 0 18.726 0 24 5.234 24 11.69zM12.218 1.863c-5.462 0-9.905 4.41-9.905 9.829 0 2.15.7 4.142 1.886 5.763l-1.237 3.65 3.807-1.21a9.9 9.9 0 005.45 1.626c5.461 0 9.905-4.409 9.905-9.829 0-5.42-4.444-9.83-9.906-9.83zm5.95 12.521c-.073-.119-.265-.19-.554-.334-.289-.143-1.71-.837-1.973-.932-.265-.095-.458-.143-.65.143-.193.287-.746.932-.915 1.123-.169.192-.337.216-.626.073-.288-.143-1.219-.446-2.322-1.422-.858-.76-1.438-1.697-1.607-1.985-.168-.286-.017-.441.127-.584.13-.128.29-.335.433-.502.145-.167.193-.286.289-.478.097-.191.048-.358-.024-.502-.072-.143-.65-1.553-.89-2.127-.241-.574-.482-.478-.65-.478-.169 0-.361-.024-.554-.024-.193 0-.506.072-.77.358-.265.287-1.01.98-1.01 2.39 0 1.41 1.034 2.773 1.178 2.964.145.19 1.998 3.179 4.934 4.326 2.936 1.147 2.936.764 3.466.716.529-.047 1.708-.693 1.95-1.362.24-.67.24-1.243.168-1.363z'/%3E%3C/svg%3E");background-position:16px;background-repeat:no-repeat;background-size:32px 32px}.jetpack-whatsapp-button__phonenumber .components-base-control{margin-bottom:0}.jetpack-whatsapp-button__phonenumber input.components-text-control__input{margin-bottom:5px}.jetpack-whatsapp-button__phonenumber select.components-select-control__input{width:105px;min-height:30px;padding-left:10px}.jetpack-whatsapp-button__phonenumber .components-placeholder__label svg{margin-right:6px}.jetpack-whatsapp-error{display:inline-flex;margin-bottom:10px}.jetpack-whatsapp-error span,.jetpack-whatsapp-error svg{color:red;fill:red;vertical-align:middle}.jetpack-whatsapp-error svg{margin:-3px 5px 0 0}.jetpack-whatsapp-button__popover .components-popover__content{padding:12px;min-width:260px}.wp-block[data-align=center] .wp-block-jetpack-whatsapp-button{justify-content:center}.jetpack-seo-message-box{background-color:#e0e0e0;border-radius:4px}.jetpack-seo-message-box textarea{width:100%}.jetpack-seo-character-count{padding-bottom:5px;padding-left:5px}.jetpack-clipboard-input{display:flex}.jetpack-clipboard-input .components-clipboard-button,.jetpack-clipboard-input .components-text-control__input{min-height:36px}.jetpack-clipboard-input .components-clipboard-button{margin-left:6px}.simple-payments__loading{animation:simple-payments-loading 1.6s ease-in-out infinite}@keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-description{white-space:pre-wrap}.jetpack-simple-payments-product{display:flex;flex-direction:column}.jetpack-simple-payments-product-image{flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}.jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;left:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{align-items:flex-start;display:flex}.jetpack-simple-payments-items{flex:0 0 auto;margin-right:10px}input[type=number].jetpack-simple-payments-items-number{background:#fff;font-size:16px;line-height:1;max-width:60px;padding:4px 8px}@media screen and (min-width:400px){.jetpack-simple-payments-product{flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{flex-basis:70%;padding-left:1em}}.wp-block-jetpack-simple-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;display:grid;grid-template-columns:200px auto;grid-column-gap:10px}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__field{margin-bottom:1em}.wp-block-jetpack-simple-payments .simple-payments__field textarea{display:block}.wp-block-jetpack-simple-payments .simple-payments__field input,.wp-block-jetpack-simple-payments .simple-payments__field textarea{font:inherit}.wp-block-jetpack-simple-payments img{max-width:100%}.wp-block-jetpack-simple-payments .simple-payments__field.simple-payments__field-content .components-base-control__label,.wp-block-jetpack-simple-payments .simple-payments__field.simple-payments__field-email .components-base-control__label,.wp-block-jetpack-simple-payments .simple-payments__field.simple-payments__field-title .components-base-control__label{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-text-control__input,.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-textarea-control__input{border-color:#d63638}.wp-block-jetpack-simple-payments .simple-payments__price-container{display:flex;flex-wrap:wrap}.wp-block-jetpack-simple-payments .simple-payments__price-container .components-base-control__label,.wp-block-jetpack-simple-payments .simple-payments__price-container .components-input-control__label{margin:0 0 4px;font-weight:400;display:block}.wp-block-jetpack-simple-payments .simple-payments__price-container select.components-select-control__input{-webkit-appearance:none;-moz-appearance:none;max-width:none;height:auto;padding:3px 8px 1px}.wp-block-jetpack-simple-payments .simple-payments__price-container div.components-input-control__container{position:relative}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field-currency{margin-right:5px}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field-currency .components-input-control__container{width:calc(100% - 5px)}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field-price .components-base-control__field{display:flex;flex-direction:column}.wp-block-jetpack-simple-payments .simple-payments__price-container .help-message{flex:1 1 100%;margin-top:0}.wp-block-jetpack-simple-payments .simple-payments__price-container .components-input-control__suffix>div{align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;right:0}.wp-block-jetpack-simple-payments .simple-payments__field-email .components-text-control__input{max-width:400px}.wp-block-jetpack-simple-payments .simple-payments__field-multiple .components-toggle-control__label{line-height:1.4em}.wp-block-jetpack-simple-payments .simple-payments__field-content .components-textarea-control__input{min-height:32px;width:100%;padding:8px}.jetpack-simple-payments__purchase-link-text .components-base-control{margin-bottom:0}.jetpack-simple-payments__purchase-link-text input.components-text-control__input{margin-bottom:5px}.wp-block-jetpack-slideshow{margin-bottom:1.5em;position:relative}.wp-block-jetpack-slideshow [tabindex="-1"]:focus{outline:0}.wp-block-jetpack-slideshow.wp-amp-block>.wp-block-jetpack-slideshow_container{opacity:1}.wp-block-jetpack-slideshow.wp-amp-block.wp-block-jetpack-slideshow__autoplay.wp-block-jetpack-slideshow__autoplay-playing .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow.wp-amp-block.wp-block-jetpack-slideshow__autoplay .wp-block-jetpack-slideshow_button-play{display:block}.wp-block-jetpack-slideshow.wp-amp-block.wp-block-jetpack-slideshow__autoplay.wp-block-jetpack-slideshow__autoplay-playing .wp-block-jetpack-slideshow_button-play{display:none}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container{width:100%;overflow:hidden;opacity:0}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container.wp-swiper-initialized{opacity:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container .wp-block-jetpack-slideshow_slide,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container .wp-block-jetpack-slideshow_swiper-wrapper{padding:0;margin:0;line-height:normal}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container ul.wp-block-jetpack-slideshow_swiper-wrapper{display:flex}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{display:flex;height:100%;width:100%}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure{align-items:center;display:flex;height:100%;justify-content:center;margin:0;position:relative;width:100%}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure .wp-block-jetpack-slideshow_image{pointer-events:none;-webkit-user-select:none;user-select:none}.wp-block-jetpack-slideshow .swiper-container-fade .wp-block-jetpack-slideshow_slide:not(.swiper-slide-active){opacity:0!important}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_image{display:block;height:auto;max-height:100%;max-width:100%;width:auto;-o-object-fit:contain;object-fit:contain}.wp-block-jetpack-slideshow .amp-carousel-button,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{background-color:rgba(0,0,0,.5);background-position:50%;background-repeat:no-repeat;background-size:24px;border:0;border-radius:4px;box-shadow:none;height:48px;margin:-24px 0 0;padding:0;transition:background-color .25s;width:48px}.wp-block-jetpack-slideshow .amp-carousel-button:focus,.wp-block-jetpack-slideshow .amp-carousel-button:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play:hover,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev:hover{background-color:rgba(0,0,0,.75)}.wp-block-jetpack-slideshow .amp-carousel-button:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev:focus{outline:thin dotted #fff;outline-offset:-4px}.wp-block-jetpack-slideshow .amp-carousel-button{margin:0}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{display:none}.wp-block-jetpack-slideshow .swiper-button-next:after,.wp-block-jetpack-slideshow .swiper-button-prev:after,.wp-block-jetpack-slideshow .swiper-container-rtl .swiper-button-next:after,.wp-block-jetpack-slideshow .swiper-container-rtl .swiper-button-prev:after{content:""}.wp-block-jetpack-slideshow .amp-carousel-button-next,.wp-block-jetpack-slideshow .swiper-button-next.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .swiper-button-prev.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .wp-block-jetpack-slideshow_button-prev,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z' fill='%23fff'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E")}.wp-block-jetpack-slideshow .amp-carousel-button-prev,.wp-block-jetpack-slideshow .swiper-button-prev.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .swiper-button-next.swiper-button-white,.wp-block-jetpack-slideshow.swiper-container-rtl .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M18 4.12L10.12 12 18 19.88 15.88 22l-10-10 10-10z' fill='%23fff'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E")}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z' fill='%23fff'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");display:none;margin-top:0;position:absolute;right:10px;top:10px;z-index:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_autoplay-paused .wp-block-jetpack-slideshow_button-pause,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-play{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E")}.wp-block-jetpack-slideshow[data-autoplay=true] .wp-block-jetpack-slideshow_button-pause{display:block}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption{background-color:rgba(0,0,0,.5);box-sizing:border-box;bottom:0;color:#fff;cursor:text;left:0;margin:0!important;max-height:100%;opacity:1;padding:.75em;position:absolute;right:0;text-align:initial;z-index:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption a{color:inherit}.wp-block-jetpack-slideshow[data-autoplay=true] .wp-block-jetpack-slideshow_caption.gallery-caption{max-height:calc(100% - 68px)}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets{bottom:0;line-height:24px;padding:10px 0 2px;position:relative}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet{background:currentColor;color:currentColor;height:16px;opacity:.5;transform:scale(.75);transition:opacity .25s,transform .25s;vertical-align:top;width:16px}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet:focus,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet:hover{opacity:1}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet:focus{outline:thin dotted;outline-offset:0}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet-active,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet[selected]{background-color:currentColor;opacity:1;transform:scale(1)}.wp-block-jetpack-slideshow_pagination.amp-pagination{text-align:center}.wp-block-jetpack-slideshow_pagination.amp-pagination .swiper-pagination-bullet{margin:0 4px;border-radius:100%;display:inline-block;padding:0;border:0}@media(min-width:600px){.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next,.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev{display:block}}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container{overflow:visible;opacity:1;width:auto;height:auto}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container ul.wp-block-jetpack-slideshow_swiper-wrapper,.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure{display:block;margin-bottom:12px}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container ul.wp-block-jetpack-slideshow_swiper-wrapper,.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{list-style:none;margin-left:auto;margin-right:auto}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{display:inline-block;width:42%;margin-left:2%!important;margin-right:2%!important;height:auto;vertical-align:top}.is-email .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption{position:relative;right:auto;bottom:auto;background-color:transparent;color:inherit;padding-top:0}.wp-block-jetpack-slideshow__add-item{margin-top:4px;width:100%}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button,.wp-block-jetpack-slideshow__add-item .components-form-file-upload{width:100%}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button:focus,.wp-block-jetpack-slideshow__add-item .components-button.wp-block-jetpack-slideshow__add-item-button:hover{border:1px solid #949494}.wp-block-jetpack-slideshow_slide .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-jetpack-slideshow_slide.is-transient img{opacity:.3}.search-preview__display{border:1px solid #f6f7f7;font-family:arial,sans-serif;padding:10px 20px;word-wrap:break-word}.search-preview__title{color:#1a0dab;font-size:20px;line-height:26px;max-width:616px;margin-bottom:7px}.search-preview__title:hover{cursor:pointer;text-decoration:underline}.search-preview__url{color:#3c4043;font-size:14px;line-height:18.2px;max-width:616px;margin-bottom:8px}.search-preview__description{color:#3c4043;font-size:14px;font-weight:400;line-height:22.12px;max-width:616px}.facebook-preview{border:none;display:flex;overflow-x:auto;max-width:527px;margin:20px;-webkit-overflow-scrolling:touch}.facebook-preview__content{display:flex;max-width:100%;background-color:#f2f3f5}.facebook-preview__body{display:flex;flex-direction:column;padding:10px 12px;border:1px solid #dadde1;overflow:hidden;font-family:Helvetica,Arial,sans-serif}.facebook-preview__title{color:#1d2129;font-size:16px;font-weight:600;line-height:20px;max-height:100px;transition:color .1s ease-in-out}.facebook-preview__description{color:#606770;font-size:14px;line-height:20px;overflow-y:hidden}.facebook-preview__url{color:#606770;font-size:12px;line-height:11px;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.facebook-preview__article .facebook-preview__content{flex-direction:column;min-width:100%}.facebook-preview__article .facebook-preview__image{max-height:250px;display:flex;justify-content:center;align-items:center;overflow-y:hidden}.facebook-preview__article .facebook-preview__image img{height:auto;width:100%;max-width:527px}.facebook-preview__article .facebook-preview__body{height:auto;max-height:100px}.facebook-preview__article .facebook-preview__title{margin-bottom:1px}.facebook-preview__article .facebook-preview__description{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.facebook-preview__article .facebook-preview__url{margin-bottom:5px}.facebook-preview__website{max-height:158px;overflow:hidden}.facebook-preview__website .facebook-preview__image{flex-shrink:0;height:158px;width:158px;box-sizing:border-box;border:1px solid #dadde1;border-right:0}.facebook-preview__website .facebook-preview__image img{display:block;font-size:14px;height:auto;width:100%}.facebook-preview__website .facebook-preview__image:after{content:"";display:block;height:100%;width:100%;background:#fff}.facebook-preview__website .facebook-preview__body{width:100%;height:136px;justify-content:center}.facebook-preview__website .facebook-preview__title{margin-bottom:5px;max-height:110px;overflow-wrap:break-word}.facebook-preview__website .facebook-preview__url{margin-bottom:5px}.facebook-preview__website .facebook-preview__description{max-height:80px}.twitter-preview{background-color:#fff;padding:20px;width:635px}.twitter-preview__container{display:grid;grid-template-columns:65px auto;margin-bottom:5px;margin-right:24px}.twitter-preview__container .twitter-preview__sidebar{display:grid;grid-template-rows:35px auto;justify-items:center}.twitter-preview__container .twitter-preview__sidebar .twitter-preview__profile-image img{height:30px;width:30px;border-radius:15px;-o-object-fit:cover;object-fit:cover}.twitter-preview__container .twitter-preview__sidebar .twitter-preview__connector{width:2px;background-color:#8c8f94}.twitter-preview__container .twitter-preview__name{font-weight:700;font-size:16px;line-height:19px}.twitter-preview__container .twitter-preview__date,.twitter-preview__container .twitter-preview__screen-name{color:#667886;font-size:16px;line-height:18px;letter-spacing:-.3px;margin-left:15px}.twitter-preview__container .twitter-preview__content{margin:7px 0}.twitter-preview__container .twitter-preview__content .twitter-preview__text{font-size:14px;line-height:18px;letter-spacing:-.3px;color:#787c82;white-space:pre-wrap;word-break:break-word}.twitter-preview__container .twitter-preview__content .twitter-preview__media{border-radius:15px;overflow:hidden;display:grid;grid-gap:2px;grid-template-areas:"a";height:300px;margin-top:10px}.twitter-preview__container .twitter-preview__content .twitter-preview__media img,.twitter-preview__container .twitter-preview__content .twitter-preview__media video{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:first-child,.twitter-preview__container .twitter-preview__content .twitter-preview__media video:first-child{grid-area:a}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:nth-child(2),.twitter-preview__container .twitter-preview__content .twitter-preview__media video:nth-child(2){grid-area:b}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:nth-child(3),.twitter-preview__container .twitter-preview__content .twitter-preview__media video:nth-child(3){grid-area:c}.twitter-preview__container .twitter-preview__content .twitter-preview__media img:nth-child(4),.twitter-preview__container .twitter-preview__content .twitter-preview__media video:nth-child(4){grid-area:d}.twitter-preview__container .twitter-preview__content .twitter-preview__media.twitter-preview__media-children-2{grid-template-areas:"a b"}.twitter-preview__container .twitter-preview__content .twitter-preview__media.twitter-preview__media-children-3{grid-template-areas:"a b" "a c"}.twitter-preview__container .twitter-preview__content .twitter-preview__media.twitter-preview__media-children-4{grid-template-areas:"a b" "c d"}.twitter-preview__container .twitter-preview__content .twitter-preview__quote-tweet{margin-top:10px;min-height:200px}.twitter-preview__container .twitter-preview__content .twitter-preview__quote-tweet .twitter-preview__quote-tweet-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.twitter-preview__container .twitter-preview__content .twitter-preview__card{margin-top:10px;overflow:hidden;border:1px solid #e1e8ed;border-radius:12px}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary{display:grid}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary.twitter-preview__card-has-image{height:125px;display:grid;grid-template-columns:125px auto}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary.twitter-preview__card-has-image .twitter-preview__card-body{border-left:1px solid #e1e8ed;height:100%}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary.twitter-preview__card-has-image .twitter-preview__card-description{-webkit-line-clamp:3}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-summary_large_image{display:grid;grid-template-rows:254px auto}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-image{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-body{padding:.75em;text-decoration:none;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;color:#000;text-align:left;line-height:1.3em;overflow:hidden}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-title{max-height:1.3em;white-space:nowrap;font-weight:700;font-size:1em;margin:0 0 .15em;overflow:hidden;text-overflow:ellipsis}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-description{margin-top:.32333em;max-height:3.9em;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-url{text-transform:lowercase;color:#8899a6;max-height:1.3em;white-space:nowrap;overflow-inline:hidden;text-overflow:ellipsis;margin-top:.32333em}.twitter-preview__container .twitter-preview__content .twitter-preview__card .twitter-preview__card-url svg{fill:#8899a6;height:15px;width:15px;margin:0 2px -4px 0}.twitter-preview__container .twitter-preview__footer{display:grid;grid-template-columns:repeat(4,auto)}.twitter-preview__container .twitter-preview__footer svg{fill:#787c82;height:16px;width:16px}.jetpack-social-previews__modal .components-modal__header{margin:0}.jetpack-social-previews__modal .components-modal__content{padding:0}.jetpack-social-previews__modal-previews{display:flex;flex-direction:column;height:100%}.jetpack-social-previews__modal-previews .components-tab-panel__tabs{display:flex;flex-direction:row;justify-content:center;padding:12px;max-width:none}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button{outline:0;margin:3px 0;font-size:0;white-space:nowrap}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button svg{display:block;fill:currentColor}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button.is-active,.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.jetpack-social-previews__modal-previews .components-tab-panel__tab-content{padding:10px;background-color:#fff;flex:1}.jetpack-social-previews__modal-previews .components-tab-panel__tab-content>div{display:flex;justify-content:center}.jetpack-social-previews__modal-previews .twitter-preview__summary{max-width:100%}@media(min-width:600px){.jetpack-social-previews__modal-previews{width:calc(100vw - 40px)}}@media(min-width:960px){.jetpack-social-previews__modal-previews{flex-direction:row;width:920px;min-height:500px}.jetpack-social-previews__modal-previews .components-tab-panel__tabs{flex-direction:column;justify-content:flex-start;padding:24px}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button{font-size:13px}.jetpack-social-previews__modal-previews .components-tab-panel__tabs .components-button>svg{margin-right:8px}.jetpack-social-previews__modal-previews .components-tab-panel__tab-content{padding:40px}}.jetpack-social-previews__modal-upgrade{padding:2em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-illustration{width:100%;max-width:351px;height:auto}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-description{margin-bottom:1em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-heading{font-size:2em;line-height:1.15}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list{list-style:none;margin-bottom:2em;padding-left:1em;font-size:1.1em;line-height:1.4}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list li{position:relative;margin-bottom:12px}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list li:before{content:"✓";position:absolute;left:-20px;color:#4ab866}@media(min-width:600px){.jetpack-social-previews__modal-upgrade{width:80vw;max-width:870px;display:grid;grid-gap:3em;grid-template-columns:1fr 1fr;padding-top:4em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-illustration{grid-column:2;grid-row:1;max-width:100%;padding-right:2em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-description{grid-column:1;grid-row:1;margin-bottom:0;padding:0 1em 1em}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-heading{margin-top:0}.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-feature-list{padding-left:0}}@media(min-width:782px){.jetpack-social-previews__modal-upgrade .jetpack-social-previews__upgrade-description{padding:0 2em 2em}}.jetpack-gutenberg-social-icons{margin-bottom:1em}.jetpack-gutenberg-social-icons .jetpack-gutenberg-social-icon.jetpack-social-previews__icon{margin-right:5px;fill:currentColor}.jetpack-mdc-icon-button{display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;border:0;padding:0;fill:currentColor;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;overflow:hidden;background-color:transparent;text-decoration:none!important;color:#fff}.jetpack-mdc-icon-button.outlined{background-color:rgba(0,0,0,.5)}.jetpack-mdc-icon-button.outlined:hover{background-color:rgba(0,0,0,.3)}.jetpack-mdc-icon-button.outlined-w{background-color:hsla(0,0%,100%,.2)}.jetpack-mdc-icon-button.outlined-w:hover{background-color:hsla(0,0%,100%,.3)}.jetpack-mdc-icon-button.bordered{border:2px solid #fff}.jetpack-mdc-icon-button.circle-icon{border-radius:50%}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.wp-story-display-contents{display:contents}.wp-story-app{padding:10px}.wp-story-container{display:block;height:320px;width:180px;margin-left:auto;margin-right:auto;margin-bottom:24px;position:relative;list-style:none;padding:0;z-index:1;border-radius:15px;overflow:hidden;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 12px rgba(0,0,0,.25);transition:box-shadow .3s ease-in-out,transform .3s cubic-bezier(.18,.14,.25,1);break-inside:avoid;page-break-inside:avoid}.wp-story-container figure{transition:transform .3s cubic-bezier(.18,.14,.25,1)}.wp-story-container:hover{box-shadow:0 4px 12px rgba(0,0,0,.3);transform:scale3d(1.03,1.03,1)}.wp-story-container:hover figure{transform:scale3d(1.07,1.07,1)}.wp-story-container button{box-shadow:none;text-shadow:none;background-color:transparent;border:0;outline-width:0;cursor:pointer}.wp-story-container.wp-story-initialized{opacity:1}.wp-story-container.wp-story-clickable{cursor:pointer}.wp-story-container .wp-story-slide,.wp-story-container .wp-story-wrapper{padding:0;margin:0;line-height:normal;list-style-type:none}.wp-story-container .wp-story-wrapper{display:block;position:absolute;height:100%;bottom:0;top:0;left:0;right:0;z-index:-1;border-radius:15px;background-color:#0e1112}.wp-story-container .wp-story-slide{display:flex;height:100%;width:100%}.wp-story-container .wp-story-slide figure{align-items:center;display:flex;height:100%;width:100%;justify-content:center;margin:0;position:relative;overflow:hidden;-o-object-fit:contain;object-fit:contain}.wp-story-container .wp-story-slide.is-loading{position:absolute;z-index:1;background-color:#484542;align-items:center;justify-content:center}.wp-story-container .wp-story-slide.is-loading.semi-transparent{background-color:rgba(72,69,66,.4980392156862745)}.wp-story-container .wp-story-slide.is-loading.transparent{background-color:transparent}@keyframes rotate-spinner{to{transform:rotate(1turn)}}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner{display:flex;align-items:center}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__inner,.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__outer{margin:auto;box-sizing:border-box;border:.1em solid transparent;border-radius:50%;animation:3s linear infinite;animation-name:rotate-spinner}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__outer{width:40px;height:40px;font-size:40px;border-top-color:#fff}.wp-story-container .wp-story-slide.is-loading .wp-story-loading-spinner__inner{width:100%;height:100%;border-top-color:#c4c4c4;border-right-color:#c4c4c4;opacity:.4}.wp-story-container .wp-story-image,.wp-story-container .wp-story-video{display:block;height:auto;width:auto;max-height:100%;max-width:100%;margin:0;border:0}.wp-story-container .wp-story-image.wp-story-crop-wide,.wp-story-container .wp-story-video.wp-story-crop-wide{max-width:revert}.wp-story-container .wp-story-image.wp-story-crop-narrow,.wp-story-container .wp-story-video.wp-story-crop-narrow{max-height:revert}.wp-story-container .wp-story-controls,.wp-story-container .wp-story-meta{display:none}.wp-story-container .wp-story-overlay{width:100%;position:absolute;display:flex;align-items:center;justify-content:center;z-index:1;top:0;bottom:0;right:0;left:0}.wp-story-container .wp-story-overlay .wp-story-button-play,.wp-story-container .wp-story-overlay .wp-story-button-replay{cursor:pointer}.wp-story-container .wp-story-overlay .wp-story-embed-icon,.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand{position:absolute;top:0;right:0;margin:15px;padding:5px 3px;display:flex;align-items:center;background-color:rgba(0,0,0,.5);border-radius:5px;color:#fff}.wp-story-container .wp-story-overlay .wp-story-embed-icon *,.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand *{margin:0 2px}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand svg,.wp-story-container .wp-story-overlay .wp-story-embed-icon svg{fill:#fff;width:20px;height:20px}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand span,.wp-story-container .wp-story-overlay .wp-story-embed-icon span{color:#fff;line-height:20px;font-size:16px;font-weight:600;font-family:sans-serif}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand{background-color:transparent}.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand svg{filter:drop-shadow(0 0 2px rgba(0,0,0,.6))}.wp-story-container.wp-story-disabled .wp-story-overlay,.wp-story-container.wp-story-ended .wp-story-overlay{background-color:hsla(0,0%,100%,.4)}.wp-story-container .wp-story-next-slide,.wp-story-container .wp-story-prev-slide{display:none;position:absolute}.wp-story-container .wp-story-next-slide button,.wp-story-container .wp-story-prev-slide button{border-width:0}.wp-story-container .wp-story-next-slide button:hover,.wp-story-container .wp-story-prev-slide button:hover{border-width:2px}.wp-story-container .wp-story-prev-slide{margin:auto;left:-84px}.wp-story-container .wp-story-next-slide{margin:auto;right:-84px}.wp-story-container .wp-story-pagination{position:absolute;text-align:center;z-index:2}.wp-story-container .wp-story-pagination-bullets{display:flex;position:absolute;margin:7px 10px;top:auto;right:0;left:0;bottom:0;overflow:hidden;transition:flex-basis 1s ease-in-out}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet{flex:1;justify-content:space-between;opacity:1;margin:0 2px;padding:6px 0;vertical-align:top}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet .wp-story-pagination-bullet-bar{min-width:12px;width:100%;height:4px;background:hsla(0,0%,100%,.6)}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet .wp-story-pagination-bullet-bar-progress{width:0;opacity:1;height:4px;background-color:#fff;transition:width .1s ease}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-ellipsis{flex:0 0 4px}.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-ellipsis .wp-story-pagination-bullet-bar{min-width:6px}.wp-story-container .wp-story-controls{display:none;width:64px;flex-direction:row;justify-content:space-between;margin:0 10px;position:absolute;bottom:30px;z-index:3}@media(max-width:782px){.wp-story-container .wp-story-controls{bottom:50px;margin:0 16px}}.wp-story-container.wp-story-with-controls{overflow:visible;border-radius:0;box-shadow:none!important;transition:none!important}.wp-story-container.wp-story-with-controls .wp-story-wrapper{border-radius:15px;box-shadow:0 2px 12px rgba(0,0,0,.25);overflow:hidden}.wp-story-container.wp-story-with-controls figure{transform:none!important;transition:none!important}.wp-story-container.wp-story-with-controls:hover{transform:none!important;box-shadow:none!important}.wp-story-container.wp-story-with-controls:hover figure{transform:none}.wp-story-container.wp-story-with-controls .wp-story-next-slide,.wp-story-container.wp-story-with-controls .wp-story-prev-slide{display:block}.wp-story-container.wp-story-with-controls .wp-story-prev-slide{margin:auto;left:-48px}.wp-story-container.wp-story-with-controls .wp-story-next-slide{margin:auto;right:-48px}.wp-story-container.wp-story-with-controls .wp-story-controls{display:flex}@media(max-width:782px){.wp-story-container.wp-story-with-controls .wp-story-controls{bottom:30px;margin:0 10px}}.wp-story-fullscreen.wp-story-app{position:fixed;transform:translateZ(0);top:0;bottom:0;left:0;right:0;margin:0;padding:0;z-index:9999999999;width:100%!important;max-width:100%!important;height:100%;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.wp-story-fullscreen.wp-story-container{margin:auto;height:100%;width:100%;max-width:100%;max-height:100%;border-radius:0;box-shadow:none;overflow:initial}.wp-story-fullscreen.wp-story-container,.wp-story-fullscreen.wp-story-container figure{transform:none;transition:none!important}.wp-story-fullscreen.wp-story-container:focus{outline:none}.wp-story-fullscreen.wp-story-container:before{box-shadow:none}.wp-story-fullscreen.wp-story-container:before:hover{opacity:0;transition:none!important}.wp-story-fullscreen.wp-story-container .wp-story-wrapper{height:auto;margin-top:84px;margin-bottom:84px;border-radius:0;overflow:initial}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-wrapper{margin-top:0;margin-bottom:0}}.wp-story-fullscreen.wp-story-container .wp-story-slide{height:100%;width:auto}.wp-story-fullscreen.wp-story-container .wp-story-slide.is-loading{width:100%}.wp-story-fullscreen.wp-story-container .wp-story-meta{padding:20px 0;display:flex;flex-direction:row;color:#fff;font-family:sans-serif;line-height:20px;align-items:center}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-meta{padding:16px;background:#000;background:linear-gradient(180deg,rgba(0,0,0,.63),transparent)}}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-icon{background-color:#fff;width:40px;height:40px;flex-shrink:0;margin:0 16px 0 0;border:2px solid #fff;border-radius:4px}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-icon img{text-align:center;width:100%;height:100%}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-icon{width:24px;height:24px;margin:0 12px 0 0}}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-title{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-title{font-size:12px}}.wp-story-fullscreen.wp-story-container .wp-story-meta .wp-story-exit-fullscreen{margin-left:auto;order:3;min-width:24px;min-height:24px}.wp-story-fullscreen.wp-story-container .wp-story-overlay{margin-top:84px;margin-bottom:84px}.wp-story-fullscreen.wp-story-container .wp-story-overlay .wp-story-embed-icon,.wp-story-fullscreen.wp-story-container .wp-story-overlay .wp-story-embed-icon-expand{display:none}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-overlay{margin-top:0;margin-bottom:0;top:76px;bottom:76px}}@media(max-width:782px){.wp-story-fullscreen.wp-story-container.wp-story-disabled .wp-story-overlay,.wp-story-fullscreen.wp-story-container.wp-story-ended .wp-story-overlay{top:0;bottom:0}}.wp-story-fullscreen.wp-story-container .wp-story-next-slide,.wp-story-fullscreen.wp-story-container .wp-story-prev-slide{display:block}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-next-slide,.wp-story-fullscreen.wp-story-container .wp-story-prev-slide{display:block;position:absolute;top:0;bottom:0;height:100%}.wp-story-fullscreen.wp-story-container .wp-story-next-slide button,.wp-story-fullscreen.wp-story-container .wp-story-prev-slide button{display:none}}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-prev-slide{left:0;width:33.33%}}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-next-slide{right:0;width:66.66%}}.wp-story-fullscreen.wp-story-container .wp-story-controls{width:88px;display:flex;flex-direction:row;justify-content:space-between;position:absolute;bottom:20px;margin:0}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-controls{bottom:36px;margin:0 16px}}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets{display:flex;position:absolute;bottom:42px;top:auto;padding:14px 0;margin:0}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet{justify-content:space-between}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet:first-child{margin-left:0}.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets .wp-story-pagination-bullet:last-child{margin-right:0}@media(max-width:782px){.wp-story-fullscreen.wp-story-container .wp-story-pagination-bullets{bottom:0;padding:10px 16px}}.wp-story-background{display:block;position:absolute;left:0;right:0;top:0;bottom:0;z-index:-2;background-color:#0e1112}.wp-story-background svg{width:0;height:0}.wp-story-background img{width:100%;height:100%}.wp-story-background .wp-story-background-dark{position:absolute;left:0;right:0;top:0;bottom:0;opacity:.12}@supports((-webkit-backdrop-filter:none) or (backdrop-filter:none)){.wp-story-background .wp-story-background-dark{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}}.wp-story-background .wp-story-background-image{width:100%;height:100%;background-repeat:no-repeat;background-position:0;background-size:100% auto;display:none}@supports not ((-webkit-backdrop-filter:none) or (backdrop-filter:none)){.wp-story-background .wp-story-background-image{filter:blur(18px);filter:url(#gaussian-blur-18);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius="18")}}.wp-story-background .wp-story-background-blur{position:absolute;left:0;right:0;top:0;bottom:0;background-color:rgba(14,17,18,.8784313725490196)}@supports((-webkit-backdrop-filter:none) or (backdrop-filter:none)){.wp-story-background .wp-story-background-blur{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}}html.wp-story-in-fullscreen{overflow:hidden;scroll-behavior:auto}body.wp-story-in-fullscreen{overflow:hidden;padding-right:15px;position:fixed;width:100%;height:100%}.wp-block-jetpack-story__add-item{margin-top:4px;width:100%}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button,.wp-block-jetpack-story__add-item .components-form-file-upload{width:100%;height:100%}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button:focus,.wp-block-jetpack-story__add-item .components-button.wp-block-jetpack-story__add-item-button:hover{border:1px solid #949494}.wp-story-container .wp-story-next-slide button,.wp-story-container .wp-story-prev-slide button{width:36px!important;height:36px!important;color:#50575e;border:1px solid #50575e;outline:0;background-color:transparent}.wp-story-container .wp-story-next-slide button:hover,.wp-story-container .wp-story-prev-slide button:hover{border:1px solid #50575e;background-color:transparent}.wp-story-container .wp-story-next-slide button:hover i,.wp-story-container .wp-story-prev-slide button:hover i{color:#3381b8}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline{position:relative}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form{display:flex;align-items:flex-start}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form input[type=email]{line-height:normal}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form button{border-style:solid;border-color:transparent}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email{flex-grow:1;background:transparent}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__textfield input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form .wp-block-jetpack-subscriptions__textfield input[type=email],.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email .components-base-control__field,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email .components-text-control__input,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email input[type=email]{width:100%;margin:0}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-email,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline .wp-block-jetpack-subscriptions__form p#subscribe-submit,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-email,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form p#subscribe-submit{margin:0}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__show-subs{padding-bottom:32px}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__show-subs .jetpack-subscribe-count p,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__show-subs .wp-block-jetpack-subscriptions__subscount{position:absolute;bottom:0;right:0;margin:0;font-size:16px}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .wp-block-jetpack-subscriptions__form,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline form{display:block}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .wp-block-jetpack-subscriptions__button,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline button{display:inline-block;max-width:100%}.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .jetpack-subscribe-count p,.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline.wp-block-jetpack-subscriptions__use-newline .wp-block-jetpack-subscriptions__subscount{left:0}.wp-block-jetpack-tiled-gallery{margin:0 auto 1.5em}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item img{border-radius:50%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row{flex-grow:1;width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-1 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-2 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc(50% - 2px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-3 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc(33.33333% - 2.66667px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-4 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc(25% - 3px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-5 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc(20% - 3.2px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-6 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc(16.66667% - 3.33333px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-7 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc(14.28571% - 3.42857px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-8 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc(12.5% - 3.5px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-9 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc(11.11111% - 3.55556px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-10 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc(10% - 3.6px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-11 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc(9.09091% - 3.63636px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-12 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc(8.33333% - 3.66667px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-13 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc(7.69231% - 3.69231px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-14 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc(7.14286% - 3.71429px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-15 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc(6.66667% - 3.73333px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-16 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc(6.25% - 3.75px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-17 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-17 .tiled-gallery__col{width:calc(5.88235% - 3.76471px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-18 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-18 .tiled-gallery__col{width:calc(5.55556% - 3.77778px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-19 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-19 .tiled-gallery__col{width:calc(5.26316% - 3.78947px)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-20 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-20 .tiled-gallery__col{width:calc(5% - 3.8px)}.wp-block-jetpack-tiled-gallery.is-style-columns .tiled-gallery__item,.wp-block-jetpack-tiled-gallery.is-style-rectangular .tiled-gallery__item{display:flex}.wp-block-jetpack-tiled-gallery.has-rounded-corners-1 .tiled-gallery__item img{border-radius:1px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-2 .tiled-gallery__item img{border-radius:2px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-3 .tiled-gallery__item img{border-radius:3px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-4 .tiled-gallery__item img{border-radius:4px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-5 .tiled-gallery__item img{border-radius:5px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-6 .tiled-gallery__item img{border-radius:6px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-7 .tiled-gallery__item img{border-radius:7px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-8 .tiled-gallery__item img{border-radius:8px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-9 .tiled-gallery__item img{border-radius:9px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-10 .tiled-gallery__item img{border-radius:10px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-11 .tiled-gallery__item img{border-radius:11px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-12 .tiled-gallery__item img{border-radius:12px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-13 .tiled-gallery__item img{border-radius:13px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-14 .tiled-gallery__item img{border-radius:14px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-15 .tiled-gallery__item img{border-radius:15px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-16 .tiled-gallery__item img{border-radius:16px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-17 .tiled-gallery__item img{border-radius:17px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-18 .tiled-gallery__item img{border-radius:18px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-19 .tiled-gallery__item img{border-radius:19px}.wp-block-jetpack-tiled-gallery.has-rounded-corners-20 .tiled-gallery__item img{border-radius:20px}.tiled-gallery__gallery{width:100%;display:flex;padding:0;flex-wrap:wrap}.tiled-gallery__row{width:100%;display:flex;flex-direction:row;justify-content:center;margin:0}.tiled-gallery__row+.tiled-gallery__row{margin-top:4px}.tiled-gallery__col{display:flex;flex-direction:column;justify-content:center;margin:0}.tiled-gallery__col+.tiled-gallery__col{margin-left:4px}.tiled-gallery__item{justify-content:center;margin:0;overflow:hidden;padding:0;position:relative;flex-grow:1}.tiled-gallery__item.filter__black-and-white{filter:grayscale(100%)}.tiled-gallery__item.filter__sepia{filter:sepia(100%)}.tiled-gallery__item.filter__1977{position:relative;filter:contrast(1.1) brightness(1.1) saturate(1.3)}.tiled-gallery__item.filter__1977 img{width:100%;z-index:1}.tiled-gallery__item.filter__1977:before{z-index:2}.tiled-gallery__item.filter__1977:after,.tiled-gallery__item.filter__1977:before{content:"";display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.tiled-gallery__item.filter__1977:after{z-index:3;background:rgba(243,106,188,.3);mix-blend-mode:screen}.tiled-gallery__item.filter__clarendon{position:relative;filter:contrast(1.2) saturate(1.35)}.tiled-gallery__item.filter__clarendon img{width:100%;z-index:1}.tiled-gallery__item.filter__clarendon:before{z-index:2}.tiled-gallery__item.filter__clarendon:after,.tiled-gallery__item.filter__clarendon:before{content:"";display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.tiled-gallery__item.filter__clarendon:after{z-index:3}.tiled-gallery__item.filter__clarendon:before{background:rgba(127,187,227,.2);mix-blend-mode:overlay}.tiled-gallery__item.filter__gingham{position:relative;filter:brightness(1.05) hue-rotate(-10deg)}.tiled-gallery__item.filter__gingham img{width:100%;z-index:1}.tiled-gallery__item.filter__gingham:before{z-index:2}.tiled-gallery__item.filter__gingham:after,.tiled-gallery__item.filter__gingham:before{content:"";display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.tiled-gallery__item.filter__gingham:after{z-index:3;background:#e6e6fa;mix-blend-mode:soft-light}.tiled-gallery__item+.tiled-gallery__item{margin-top:4px}.tiled-gallery__item>img{background-color:rgba(0,0,0,.1)}.tiled-gallery__item>a,.tiled-gallery__item>a>img,.tiled-gallery__item>img{display:block;height:auto;margin:0;max-width:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;padding:0;width:100%}.is-email .tiled-gallery__gallery{display:block}@keyframes tiled-gallery-img-placeholder{0%{background-color:#f6f7f7}50%{background-color:rgba(246,247,247,.5)}to{background-color:#f6f7f7}}.wp-block-jetpack-tiled-gallery{padding-left:4px;padding-right:4px}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item.is-transient img,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__item.is-transient img{margin-bottom:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img:focus{outline:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img{animation:tiled-gallery-img-placeholder 1.6s ease-in-out infinite}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected{outline:4px solid #0085ba;filter:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected:after,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected:before{content:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient{height:100%;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient img{background-position:50%;background-size:cover;height:100%;opacity:.3;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu{background:#fff;border:1px solid rgba(30,30,30,.62);border-radius:2px;transition:box-shadow .2s ease-out}@media(prefers-reduced-motion:reduce){.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu{transition-duration:0s;transition-delay:0s}}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu:hover,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button{color:rgba(30,30,30,.62);padding:2px;height:24px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}@media(min-width:600px){.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button,.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button{padding:0;width:inherit;height:inherit}}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__inline-menu .components-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected .tiled-gallery__item__move-menu .components-button:focus{color:inherit}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item{margin-top:4px;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-form-file-upload{width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:hover{border:1px solid #949494}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu{margin:8px;display:inline-flex;z-index:20}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu .components-button{color:transparent}@media(min-width:600px){.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu,.columns-7 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu,.columns-8 .wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu{padding:2px}}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu{position:absolute;top:-2px;right:-2px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-menu{position:absolute;top:-2px;left:-2px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-backward,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__move-forward,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__remove{padding:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item .components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translate(-50%,-50%)}.block-editor-block-preview__content .wp-block-jetpack-tiled-gallery .block-editor-media-placeholder{display:none}.tiled-gallery__filter-picker-menu{padding:7px}.tiled-gallery__filter-picker-menu .components-menu-item__button+.components-menu-item__button{margin-top:2px}.tiled-gallery__filter-picker-menu .components-menu-item__button.is-active{color:#1e1e1e;box-shadow:0 0 0 2px #949494!important}.no-videopress-media-placeholder .components-placeholder__fieldset{flex-direction:row-reverse;align-items:flex-start;justify-content:flex-end}.no-videopress-media-placeholder .components-placeholder__fieldset button{display:none}.no-videopress-media-placeholder .components-placeholder__fieldset .block-editor-media-placeholder__url-input-container button,.no-videopress-media-placeholder .components-placeholder__fieldset .no-videopress-disabled-button{display:inline-flex}.no-videopress-media-placeholder .components-placeholder__fieldset .no-videopress-disabled-button:last-child{margin-right:12px}.videopress-block-hide{display:none}[data-type="jetpack/wordads"][data-align=center] .jetpack-wordads__ad{margin:0 auto}.jetpack-wordads__ad{display:flex;overflow:hidden;flex-direction:column;max-width:100%}.jetpack-wordads__ad .components-placeholder{flex-grow:2}.jetpack-wordads__ad .components-toggle-control__label{line-height:1.4em}.jetpack-wordads__ad .components-base-control__field,.wp-block-jetpack-wordads__format-picker{padding:7px}.wp-block-jetpack-wordads__format-picker .components-menu-item__button+.components-menu-item__button{margin-top:2px}.wp-block-jetpack-wordads__format-picker .components-menu-item__button.is-active{color:#1e1e1e;box-shadow:0 0 0 2px #949494!important}.jetpack-wordads__mobile-visibility{margin-top:20px}.anchor-post-publish-outbound-link .anchor-post-publish-outbound-link__external_icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.wp-block-premium-content-container .premium-content-tabs{align-items:center;background:#fff;color:#757575;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;margin:0 0 0 -1px;padding:8px 14px;border:1px solid #1e1e1e;border-radius:2px}.wp-block-premium-content-container--tab{display:flex;flex-direction:row;align-items:center;border:none;background:transparent;padding:5px;margin-right:5px;text-decoration:none}.premium-content-tabs>button.edit{margin-left:auto}.premium-content-wrapper{margin:0}.premium-content-block-nudge .editor-warning{margin-bottom:0}.premium-content-block-nudge .editor-warning__message{margin:13px 0}.premium-content-block-nudge .editor-warning__actions{line-height:1}.premium-content-block-nudge .premium-content-block-nudge__info{font-size:13px;display:flex;flex-direction:row;line-height:1.4}.premium-content-block-nudge .premium-content-block-nudge__text-container{display:flex;flex-direction:column;padding-left:10px}.premium-content-block-nudge .premium-content-block-nudge__title{font-size:14px}.premium-content-block-nudge__message{color:#646970}.editor-styles-wrapper a.premium-content-block-nudge__button{color:#0075af;text-decoration:none}.membership-button__disclaimer{color:var(--color-gray-200);flex-basis:100%;margin:0;font-style:italic}.membership-button__disclaimer a{color:var(--color-gray-400);line-height:36px}.wp-block-premium-content-container---settings-add_plan .components-panel__row.plan-interval .components-base-control,.wp-block-premium-content-container---settings-add_plan .components-panel__row.plan-name .components-base-control{width:100%}.wp-block-premium-content-container---settings-add_plan .components-panel__row.plan-price .components-base-control{width:45%;margin:0}.wp-block-premium-content-container---settings-add_plan .components-panel__row:last-child{margin-top:25px}.wp-block-premium-content-container---settings-add_plan .components-base-control:last-child{margin:0}.wp-block-premium-content-container---link-to-earn{margin:16px;display:block}.premium-content-toolbar-button .components-dropdown-menu__toggle:after{display:block;content:"";position:absolute;bottom:1px;right:0;border-color:transparent currentcolor currentcolor transparent;border-style:solid;border-width:4px}.connect-stripe.has-icon.has-text svg{margin-right:0}.connect-stripe.has-icon.has-text{font-weight:400}.wp-block-buttons .wp-block[data-type="jetpack/recurring-payments"]{display:inline-block;margin:0 .5em 0 0}.editor-styles-wrapper .wp-block-buttons .wp-block[data-type="jetpack/recurring-payments"] .wp-block-button:not(.alignleft):not(.alignright){margin:0}.wp-block-premium-content-container .jetpack-block-nudge{display:none}.wp-block-premium-content-login-button{display:inline-block}.wp-block[data-align=center]>.wp-block-premium-content-login-button{display:flex;align-items:center;justify-content:center}.wp-block-jetpack-conversation__participant{display:flex;height:30px;line-height:30px}.wp-block-jetpack-conversation__participant-label{flex-grow:2}.wp-block-jetpack-conversation__placeholder,.wp-block-jetpack-dialogue__timestamp-controls{display:flex}.wp-block-jetpack-dialogue__timestamp-controls .components-number-control{min-width:60px}.wp-block-jetpack-dialogue__timestamp-button{margin-left:6px}.wp-block-jetpack-dialogue__timestamp-control__hour,.wp-block-jetpack-dialogue__timestamp-control__minute{margin-right:5px}.wp-block-jetpack-dialogue__timestamp-control__play-button{align-self:flex-end;margin-left:10px}.wp-block-jetpack-dialogue__timestamp-content .wp-block-jetpack-dialogue__timestamp-container{min-width:290px}.wp-block-jetpack-dialogue__timestamp-range-control{margin-top:8px;margin-right:16px}.wp-block-jetpack-dialogue__timestamp-dropdown{min-width:90px}.wp-block-jetpack-dialogue__participant.is-participant-adding,.wp-block-jetpack-dialogue__participant.is-participant-editing{opacity:.7}.wp-block-jetpack-conversation:not(.is-style-column) .wp-block-jetpack-dialogue__meta.has-not-media-source>div{width:100%}.wp-block-jetpack-conversation:not(.is-style-column) .wp-block-jetpack-dialogue__meta .wp-block-jetpack-dialogue__participant{min-width:50px}.media-player-control__current-time{display:flex;align-items:center;padding:0 12px 0 5px;min-width:55px;font-size:14px}.media-player-control__current-time.is-disabled{color:#757575;cursor:default}.wp-block-jetpack-dialogue__timestamp-player{display:flex;margin-top:10px;justify-content:center;flex-wrap:wrap}.wp-block-jetpack-dialogue__timestamp-player button{padding:0}.media-player-control__toolbar .components-toolbar-button .dashicons{margin:0}.wp-block-jetpack-dialogue{margin-top:20px;margin-bottom:20px}.wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__meta{display:flex;flex-direction:row;align-items:center;min-height:38px}.wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__participant{font-size:inherit;padding:0;line-height:17px;line-height:var(--global--line-height-body);overflow-wrap:anywhere;color:inherit}.wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__timestamp-label{margin-right:0;padding:6px 12px;text-align:right;font-size:16px;white-space:nowrap;color:inherit;margin-left:5px}.wp-block-jetpack-dialogue__participant{padding:3px 0;height:auto;line-height:1.2}.wp-block-jetpack-dialogue__participant.has-bold-style{font-weight:700}.wp-block-jetpack-dialogue__participant.has-italic-style{font-style:italic}.wp-block-jetpack-dialogue__participant.has-uppercase-style{text-transform:uppercase}.block-editor-block-list__block .wp-block-jetpack-dialogue__content{margin:0 0 1em}@media(min-width:600px){.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue{display:flex}.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__meta{display:block;flex:0 0 25%;text-align:right}.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__participant{margin-right:12px}.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .components-dropdown,.wp-block-jetpack-conversation.is-style-column .wp-block-jetpack-dialogue .wp-block-jetpack-dialogue__timestamp-dropdown{display:block}}body.no-media-source .wp-block-jetpack-dialogue__timestamp-label{display:none}.wp-block-jetpack-amazon{font-size:14px}.wp-block-jetpack-amazon-title{font-weight:700;line-height:1.3em}.wp-block-jetpack-amazon-title a{text-decoration:none}.wp-block-jetpack-amazon-button{justify-content:center;width:100%}
_inc/blocks/editor-beta.min.js CHANGED
@@ -21,7 +21,7 @@ function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(a,o)
21
  object-assign
22
  (c) Sindre Sorhus
23
  @license MIT
24
- */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,o){for(var i,s,l=a(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))n.call(i,u)&&(l[u]=i[u]);if(t){s=t(i);for(var p=0;p<s.length;p++)r.call(i,s[p])&&(l[s[p]]=i[s[p]])}}return l}},40278:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(92213),a=n.n(r),o=n(68211),i=n.n(o),s=n(86431),l=n.n(s)()("photon"),c={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},u="__domain__.invalid",p="http://".concat(u);function d(e,t){var n;try{n=new URL(e,p)}catch(v){return null}var r,o,s,d,m,h="https:"===n.protocol,f=new URL("https://i0.wp.com");if(m=n.host,/^i[0-2]\.wp\.com$/.test(m))f.pathname=n.pathname,f.hostname=n.hostname;else{if(n.search)return null;var g=n.href.replace("".concat(n.protocol,"/"),"");"blob:"===n.protocol&&(g=n.pathname.replace("://","//")),n.hostname===u&&(g=n.pathname),f.pathname=g,f.hostname=(r=g,o=a()(r),s=i()(o),d="i"+Math.floor(3*s()),l('determined server "%s" to use with "%s"',d,r),d+".wp.com"),h&&f.searchParams.set("ssl",1)}if(t)for(var b in t)"host"!==b&&"hostname"!==b?"secure"!==b||t[b]?f.searchParams.set(c[b]||b,t[b]):f.protocol="http:":f.hostname=t[b];return l("generated Photon URL: %s",f.href),f.href}},9587:function(e,t,n){"use strict";var r=n(45843);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}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:a};return n.PropTypes=n,n}},11268:function(e,t,n){e.exports=n(9587)()},45843:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},10753:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,a){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(n);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,p,d,m,h=e[c].replace(i,"%20"),f=h.indexOf(r);f>=0?(u=h.substr(0,f),p=h.substr(f+1)):(u=h,p=""),d=decodeURIComponent(u),m=decodeURIComponent(p),t(o,d)?Array.isArray(o[d])?o[d].push(m):o[d]=[o[d],m]:o[d]=m}return o}},68527:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,a){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+r;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[a]))})).join(n):a?encodeURIComponent(t(a))+r+encodeURIComponent(t(e)):""}},76250:function(e,t,n){"use strict";t.decode=t.parse=n(10753),t.encode=t.stringify=n(68527)},67234:function(e,t,n){"use strict";var r=n(63804),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(80524),i=n(57477),s=n(70335),l="function"==typeof Symbol&&Symbol.iterator;function c(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,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===a)return n(r,e,""===t?"."+c(e,0):t),1;var p=0,d=""===t?".":t+":";if(Array.isArray(e))for(var m=0;m<e.length;m++)p+=u(o=e[m],d+c(o,m),n,r);else{var h=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,g=h.call(e),b=0;!(f=g.next()).done;)p+=u(o=f.value,d+c(o,b++),n,r)}else if("object"===s){0;var v=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return p}var p=/\/+/g;function d(e){return(""+e).replace(p,"$&/")}var m,h,f=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;i(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 k(e,t,n){var a,i,s=e.result,l=e.keyPrefix,c=e.func,u=e.context,p=c.call(u,t,e.count++);Array.isArray(p)?y(p,s,n,o.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,i=l+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(p))}function y(e,t,n,r,a){var o="";null!=n&&(o=d(n)+"/");var i=v.getPooled(t,o,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,k,i),v.release(i)}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 a=this;if(a.instancePool.length){var o=a.instancePool.pop();return a.call(o,e,t,n,r),o}return new a(e,t,n,r)},(h=v).instancePool=[],h.getPooled=m||f,h.poolSize||(h.poolSize=10),h.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(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)y(e[n],t,n,o.thatReturnsArgument);return t}},97765:function(e,t,n){"use strict";var r=n(11268),a=n.n(r),o=n(63804),i=n.n(o),s=n(63130),l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isSupported:s.Gb&&s.WD},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.state.isSupported&&(this.handleVisibilityChange=this.handleVisibilityChange.bind(this),document.addEventListener(s.WD.event,this.handleVisibilityChange))}},{key:"componentWillUnmount",value:function(){this.state.isSupported&&document.removeEventListener(s.WD.event,this.handleVisibilityChange)}},{key:"handleVisibilityChange",value:function(){var e;"function"==typeof this.props.onChange&&(e=this.props).onChange.apply(e,c((0,s.XO)()));"function"==typeof this.props.children&&this.forceUpdate()}},{key:"render",value:function(){return this.props.children?"function"==typeof this.props.children?this.state.isSupported?(e=this.props).children.apply(e,c((0,s.XO)())):this.props.children():i().Children.only(this.props.children):null;var e}}]),t}(i().Component);u.displayName="PageVisibility",u.propTypes={onChange:a().func,children:a().oneOfType([a().node,a().func])},t.Z=u},75031:function(e,t,n){"use strict";var r=n(97765);t.Z=r.Z},63130:function(e,t,n){"use strict";n.d(t,{Gb:function(){return o},WD:function(){return i},XO:function(){return s}});var r="undefined"!=typeof document,a=[{hidden:"hidden",event:"visibilitychange",state:"visibilityState"},{hidden:"webkitHidden",event:"webkitvisibilitychange",state:"webkitVisibilityState"},{hidden:"mozHidden",event:"mozvisibilitychange",state:"mozVisibilityState"},{hidden:"msHidden",event:"msvisibilitychange",state:"msVisibilityState"},{hidden:"oHidden",event:"ovisibilitychange",state:"oVisibilityState"}],o=r&&Boolean(document.addEventListener),i=function(){if(!o)return null;var e=!0,t=!1,n=void 0;try{for(var r,i=a[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var s=r.value;if(s.hidden in document)return s}}catch(l){t=!0,n=l}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}return null}(),s=function(){if(!i)return[!0,"visible"];var e=i.hidden,t=i.state;return[!document[e],document[t]]}},2601:function(e){"use strict";function t(e,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)t(e,n[r]);else for(r in n)e[r]=(e[r]||[]).concat(n[r])}e.exports=function(e){var n,r={};return t(r,e),(n=function(e){return function(t){return function(n){var a,o,i=r[n.type],s=t(n);if(i)for(a=0;a<i.length;a++)(o=i[a](n,e))&&e.dispatch(o);return s}}}).effects=r,n}},19551:function(e,t,n){"use strict";var r,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function l(e,t){var n,l;function c(){n=a?new WeakMap:i()}function u(){var n,r,a,o,i,c=arguments.length;for(o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];for(i=t.apply(null,o),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!s(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(s(r.args,o,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,o)},o[0]=null,r.args=o,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=o),l=a?function(e){var t,a,o,s,l,c=n,u=!0;for(t=0;t<e.length;t++){if(a=e[t],!(l=a)||"object"!=typeof l){u=!1;break}c.has(a)?c=c.get(a):(o=new WeakMap,c.set(a,o),c=o)}return c.has(r)||((s=i()).isUniqueByDependants=u,c.set(r,s)),c.get(r)}:function(){return n},u.getDependants=t,u.clear=c,c(),u}n.d(t,{Z:function(){return l}}),r={},a="undefined"!=typeof WeakMap},54166:function(e,t){"use strict";var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&l()}function s(){o(i)}function l(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);a=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;i.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},p=b(0,0,0,0);function d(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=u(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],o=e["padding-"+a];t[a]=d(o)}return t}(r),o=a.left+a.right,i=a.top+a.bottom,s=d(r.width),l=d(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=m(r,"left","right")+o),Math.round(l+i)!==n&&(l-=m(r,"top","bottom")+i)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+o)-t,h=Math.round(l+i)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(h)&&(l-=h)}return b(a.left,a.top,s,l)}var f="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?f(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):h(e):p}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(e,t){var n,r,a,o,i,s,l,u=(r=(n=t).x,a=n.y,o=n.width,i=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:a,width:o,height:i,top:a,right:r+o,bottom:i+a,left:r}),l);c(this,{target:e,contentRect:u})},y=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new y(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var _=void 0!==a.ResizeObserver?a.ResizeObserver:w;t.Z=_},68211:function(e){"use strict";var t=256,n=[],r=window,a=Math.pow(t,6),o=Math.pow(2,52),i=2*o,s=255,l=Math.random;function c(e){var n,r=e.length,a=this,o=0,i=a.i=a.j=0,l=a.S=[];for(r||(e=[r++]);o<t;)l[o]=o++;for(o=0;o<t;o++)l[o]=l[i=s&i+e[o%r]+(n=l[o])],l[i]=n;(a.g=function(e){for(var n,r=0,o=a.i,i=a.j,l=a.S;e--;)n=l[o=s&o+1],r=r*t+l[s&(l[o]=l[i=s&i+n])+(l[i]=n)];return a.i=o,a.j=i,r})(t)}function u(e,t){var n,r=[],a=(typeof e)[0];if(t&&"o"==a)for(n in e)try{r.push(u(e[n],t-1))}catch(o){}return r.length?r:"s"==a?e:e+"\0"}function p(e,t){for(var n,r=e+"",a=0;a<r.length;)t[s&a]=s&(n^=19*t[s&a])+r.charCodeAt(a++);return m(t)}function d(e){try{return r.crypto.getRandomValues(e=new Uint8Array(t)),m(e)}catch(a){return[+new Date,r,r.navigator&&r.navigator.plugins,r.screen,m(n)]}}function m(e){return String.fromCharCode.apply(0,e)}e.exports=function(r,s){if(s&&!0===s.global)return s.global=!1,Math.random=e.exports(r,s),s.global=!0,Math.random;var l=s&&s.entropy||!1,h=[],f=(p(u(l?[r,m(n)]:0 in arguments?r:d(),3),h),new c(h));return p(m(f.S),n),function(){for(var e=f.g(6),n=a,r=0;e<o;)e=(e+r)*t,n*=t,r=f.g(1);for(;e>=i;)e/=2,n/=2,r>>>=1;return(e+r)/n}},e.exports.resetGlobal=function(){Math.random=l},p(Math.random(),n)},45702:function(e,t,n){const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(t){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=l(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=l(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||o&&i||s||c}}e.exports=a;const o=n(75265),{re:i,t:s}=n(75698),l=n(48937),c=n(72840),u=n(88208),p=n(55062)},55062:function(e,t,n){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&f(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=a.get(t);if(n)return n;const r=this.options.loose,o=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(o,x(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],p),s("comparator trim",e,c[u.COMPARATORTRIM]),e=(e=(e=e.replace(c[u.TILDETRIM],d)).replace(c[u.CARETTRIM],m)).split(/\s+/).join(" ");const l=r?c[u.COMPARATORLOOSE]:c[u.COMPARATOR],f=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>j(e,this.options))).filter(this.options.loose?e=>!!e.match(l):()=>!0).map((e=>new i(e,this.options))),g=(f.length,new Map);for(const a of f){if(h(a))return[a];g.set(a.value,a)}g.size>1&&g.has("")&&g.delete("");const v=[...g.values()];return a.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>g(n,t)&&e.set.some((e=>g(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if(T(this.set[n],e,this.options))return!0;return!1}}e.exports=r;const a=new(n(47595))({max:1e3}),o=n(75265),i=n(45702),s=n(72840),l=n(88208),{re:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:m}=n(75698),h=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},b=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=k(e,t),s("tildes",e),e=_(e,t),s("xrange",e),e=S(e,t),s("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,k=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,((t,n,r,a,o)=>{let i;return s("tilde",e,t,n,r,a,o),v(n)?i="":v(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:v(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(s("replaceTilde pr",o),i=`>=${n}.${r}.${a}-${o} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,s("tilde return",i),i}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{s("caret",e,t);const n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,o,i)=>{let l;return s("caret",e,t,n,a,o,i),v(n)?l="":v(a)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?l="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(s("replaceCaret pr",i),l="0"===n?"0"===a?`>=${n}.${a}.${o}-${i} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o}-${i} <${+n+1}.0.0-0`):(s("no pr"),l="0"===n?"0"===a?`>=${n}.${a}.${o}${r} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o} <${+n+1}.0.0-0`),s("caret return",l),l}))},_=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,((n,r,a,o,i,l)=>{s("xRange",e,n,r,a,o,i,l);const c=v(a),u=c||v(o),p=u||v(i),d=p;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),i=0,">"===r?(r=">=",u?(a=+a+1,o=0,i=0):(o=+o+1,i=0)):"<="===r&&(r="<",u?a=+a+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+a}.${o}.${i}${l}`):u?n=`>=${a}.0.0${l} <${+a+1}.0.0-0`:p&&(n=`>=${a}.${o}.0${l} <${a}.${+o+1}.0-0`),s("xRange return",n),n}))},S=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),j=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),x=e=>(t,n,r,a,o,i,s,l,c,u,p,d,m)=>`${n=v(r)?"":v(a)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),T=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},88208:function(e,t,n){const r=n(72840),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=n(29609),{re:i,t:s}=n(75698),l=n(75265),{compareIdentifiers:c}=n(15322);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},52045:function(e,t,n){const r=n(38675);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},48937:function(e,t,n){const r=n(42969),a=n(74619),o=n(74765),i=n(71767),s=n(63590),l=n(94638);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return o(e,n,c);case">=":return i(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},12977:function(e,t,n){const r=n(88208),a=n(38675),{re:o,t:i}=n(75698);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[i.COERCERTL].lastIndex=-1}else n=e.match(o[i.COERCE]);return null===n?null:a(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},58230:function(e,t,n){const r=n(88208);e.exports=(e,t,n)=>{const a=new r(e,n),o=new r(t,n);return a.compare(o)||a.compareBuild(o)}},25112:function(e,t,n){const r=n(50192);e.exports=(e,t)=>r(e,t,!0)},50192:function(e,t,n){const r=n(88208);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},13751:function(e,t,n){const r=n(38675),a=n(42969);e.exports=(e,t)=>{if(a(e,t))return null;{const n=r(e),a=r(t),o=n.prerelease.length||a.prerelease.length,i=o?"pre":"",s=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==a[e])return i+e;return s}}},42969:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>0===r(e,t,n)},74765:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>r(e,t,n)>0},71767:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>r(e,t,n)>=0},20177:function(e,t,n){const r=n(88208);e.exports=(e,t,n,a)=>{"string"==typeof n&&(a=n,n=void 0);try{return new r(e,n).inc(t,a).version}catch(o){return null}}},63590:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>r(e,t,n)<0},94638:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>r(e,t,n)<=0},51847:function(e,t,n){const r=n(88208);e.exports=(e,t)=>new r(e,t).major},87989:function(e,t,n){const r=n(88208);e.exports=(e,t)=>new r(e,t).minor},74619:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>0!==r(e,t,n)},38675:function(e,t,n){const{MAX_LENGTH:r}=n(29609),{re:a,t:o}=n(75698),i=n(88208),s=n(75265);e.exports=(e,t)=>{if(t=s(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?a[o.LOOSE]:a[o.FULL]).test(e))return null;try{return new i(e,t)}catch(n){return null}}},8906:function(e,t,n){const r=n(88208);e.exports=(e,t)=>new r(e,t).patch},85676:function(e,t,n){const r=n(38675);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},82576:function(e,t,n){const r=n(50192);e.exports=(e,t,n)=>r(t,e,n)},25709:function(e,t,n){const r=n(58230);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},53907:function(e,t,n){const r=n(55062);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(a){return!1}return t.test(e)}},21978:function(e,t,n){const r=n(58230);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},55641:function(e,t,n){const r=n(38675);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},53377:function(e,t,n){const r=n(75698);e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n(29609).SEMVER_SPEC_VERSION,SemVer:n(88208),compareIdentifiers:n(15322).compareIdentifiers,rcompareIdentifiers:n(15322).rcompareIdentifiers,parse:n(38675),valid:n(55641),clean:n(52045),inc:n(20177),diff:n(13751),major:n(51847),minor:n(87989),patch:n(8906),prerelease:n(85676),compare:n(50192),rcompare:n(82576),compareLoose:n(25112),compareBuild:n(58230),sort:n(21978),rsort:n(25709),gt:n(74765),lt:n(63590),eq:n(42969),neq:n(74619),gte:n(71767),lte:n(94638),cmp:n(48937),coerce:n(12977),Comparator:n(45702),Range:n(55062),satisfies:n(53907),toComparators:n(76055),maxSatisfying:n(33422),minSatisfying:n(17212),minVersion:n(9077),validRange:n(53140),outside:n(44494),gtr:n(2824),ltr:n(34370),intersects:n(30723),simplifyRange:n(23589),subset:n(34992)}},29609:function(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},72840:function(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},15322:function(e){const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},75265:function(e){const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},75698:function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n(29609),a=n(72840),o=(t=e.exports={}).re=[],i=t.src=[],s=t.t={};let l=0;const c=(e,t,n)=>{const r=l++;a(r,t),s[e]=r,i[r]=t,o[r]=new RegExp(t,n?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),c("FULL",`^${i[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),c("LOOSE",`^${i[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),c("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",i[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},2824:function(e,t,n){const r=n(44494);e.exports=(e,t,n)=>r(e,t,">",n)},30723:function(e,t,n){const r=n(55062);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},34370:function(e,t,n){const r=n(44494);e.exports=(e,t,n)=>r(e,t,"<",n)},33422:function(e,t,n){const r=n(88208),a=n(55062);e.exports=(e,t,n)=>{let o=null,i=null,s=null;try{s=new a(t,n)}catch(l){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new r(o,n)))})),o}},17212:function(e,t,n){const r=n(88208),a=n(55062);e.exports=(e,t,n)=>{let o=null,i=null,s=null;try{s=new a(t,n)}catch(l){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new r(o,n)))})),o}},9077:function(e,t,n){const r=n(88208),a=n(55062),o=n(74765);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let a=0;a<e.set.length;++a){const t=e.set[a];let i=null;t.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!o(n,i)||(n=i)}return n&&e.test(n)?n:null}},44494:function(e,t,n){const r=n(88208),a=n(45702),{ANY:o}=a,i=n(55062),s=n(53907),l=n(74765),c=n(63590),u=n(94638),p=n(71767);e.exports=(e,t,n,d)=>{let m,h,f,g,b;switch(e=new r(e,d),t=new i(t,d),n){case">":m=l,h=u,f=c,g=">",b=">=";break;case"<":m=c,h=p,f=l,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,s=null;if(n.forEach((e=>{e.semver===o&&(e=new a(">=0.0.0")),i=i||e,s=s||e,m(e.semver,i.semver,d)?i=e:f(e.semver,s.semver,d)&&(s=e)})),i.operator===g||i.operator===b)return!1;if((!s.operator||s.operator===g)&&h(e,s.semver))return!1;if(s.operator===b&&f(e,s.semver))return!1}return!0}},23589:function(e,t,n){const r=n(53907),a=n(50192);e.exports=(e,t,n)=>{const o=[];let i=null,s=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const a of l){r(a,t,n)?(s=a,i||(i=a)):(s&&o.push([i,s]),s=null,i=null)}i&&o.push([i,null]);const c=[];for(const[r,a]of o)r===a?c.push(r):a||r!==l[0]?a?r===l[0]?c.push(`<=${a}`):c.push(`${r} - ${a}`):c.push(`>=${r}`):c.push("*");const u=c.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length<p.length?u:t}},34992:function(e,t,n){const r=n(55062),a=n(45702),{ANY:o}=a,i=n(53907),s=n(50192),l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?[new a(">=0.0.0-0")]:[new a(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=[new a(">=0.0.0")]}const r=new Set;let l,p,d,m,h,f,g;for(const a of e)">"===a.operator||">="===a.operator?l=c(l,a,n):"<"===a.operator||"<="===a.operator?p=u(p,a,n):r.add(a.semver);if(r.size>1)return null;if(l&&p){if(d=s(l.semver,p.semver,n),d>0)return null;if(0===d&&(">="!==l.operator||"<="!==p.operator))return null}for(const a of r){if(l&&!i(a,String(l),n))return null;if(p&&!i(a,String(p),n))return null;for(const e of t)if(!i(a,String(e),n))return!1;return!0}let b=!(!p||n.includePrerelease||!p.semver.prerelease.length)&&p.semver,v=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver;b&&1===b.prerelease.length&&"<"===p.operator&&0===b.prerelease[0]&&(b=!1);for(const a of t){if(g=g||">"===a.operator||">="===a.operator,f=f||"<"===a.operator||"<="===a.operator,l)if(v&&a.semver.prerelease&&a.semver.prerelease.length&&a.semver.major===v.major&&a.semver.minor===v.minor&&a.semver.patch===v.patch&&(v=!1),">"===a.operator||">="===a.operator){if(m=c(l,a,n),m===a&&m!==l)return!1}else if(">="===l.operator&&!i(l.semver,String(a),n))return!1;if(p)if(b&&a.semver.prerelease&&a.semver.prerelease.length&&a.semver.major===b.major&&a.semver.minor===b.minor&&a.semver.patch===b.patch&&(b=!1),"<"===a.operator||"<="===a.operator){if(h=u(p,a,n),h===a&&h!==p)return!1}else if("<="===p.operator&&!i(p.semver,String(a),n))return!1;if(!a.operator&&(p||l)&&0!==d)return!1}return!(l&&f&&!p&&0!==d)&&(!(p&&g&&!l&&0!==d)&&(!v&&!b))},c=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},76055:function(e,t,n){const r=n(55062);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},53140:function(e,t,n){const r=n(55062);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}}},88090:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7478),a={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},a)this.options[n]=void 0!==t&&n in t?t[n]:a[n]}o.prototype.getPluralForm=function(e,t){var n,a,o,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(a=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=(0,r.Z)(a)),i=this.pluralForms[e]=o),i(t)},o.prototype.dcnpgettext=function(e,t,n,r,a){var o,i,s;return o=void 0===a?0:this.getPluralForm(e,a),i=n,t&&(i=t+this.options.contextDelimiter+n),(s=this.data[e][i])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},86158:function(e,t,n){"use strict";var r=n(86431),a=n.n(r),o=n(33804);const i=a()("dops:analytics");let s,l;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){l={ID:e,username:t}},setSuperProps:function(e){s=e},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);i("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),i('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);this.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);i("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),i('Built stat "%s" in group "%s"',t,e);return n}(e,t);this.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,o,i){c.ga.recordPurchase(e,t,n,r,a,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(i("- Super Props: %o",s),t=(0,o.assign)(t,s)),i('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):i('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){i("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(l&&(e={userId:"u-"+l.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),i("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){c.ga.initialize();let a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),i(a),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){l&&window._tkq.push(["identifyUser",l.ID,l.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.Z=c},70585:function(e,t){"use strict";const n={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};t.Z=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")}},28281:function(e,t,n){"use strict";var r=n(70585),a=n(86158);a.Z.setMcAnalyticsEnabled((0,r.Z)("mc_analytics_enabled")),a.Z.setGoogleAnalyticsEnabled((0,r.Z)("google_analytics_enabled"),(0,r.Z)("google_analytics_key")),t.Z=a.Z},2131:function(e,t,n){"use strict";var r=n(37432);t.Z={backgroundColor:{type:"string",validator:r.Z},textColor:{type:"string",validator:r.Z},buttonAndLinkColor:{type:"string",validator:r.Z},style:{type:"string",default:"small",validValues:["small","large"]},asin:{type:"string"},showImage:{default:!0,type:"boolean"},showTitle:{default:!0,type:"boolean"},showSeller:{default:!1,type:"boolean"},showPrice:{default:!0,type:"boolean"},showPurchaseButton:{default:!0,type:"boolean"}}},5169:function(e,t){"use strict";t.Z={products:[{title:"New York Biology Dead Sea Mud Mask for Face and Body - All Natural - Spa Quality Pore Reducer for Acne, Blackheads and Oily Skin - Tightens Skin for A Healthier Complexion - 8.8 oz",asin:"B01NCM25K7",productGroup:"Beauty",authors:[],artists:[],actors:[],manufacturer:"New York Biology",detailPageUrl:"https://www.amazon.com/New-York-Biology-Dead-Mask/dp/B01NCM25K7?psc=1&SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B01NCM25K7",listPrice:"$14.95",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51asbRHNuVL._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:62,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51asbRHNuVL._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:133,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51asbRHNuVL.jpg",imageHeightLarge:500,imageWidthLarge:415,authorshipInfo:"New York Biology"},{title:"Face/Off",asin:"B002PT1KH6",productGroup:"Movie",authors:[],artists:[],actors:["John Travolta","Nicolas Cage","Joan Allen","Alessandro Nivola","Gina Gershon"],detailPageUrl:"https://www.amazon.com/Face-Off-John-Travolta/dp/B002PT1KH6?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002PT1KH6",listPrice:"$9.99",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51TyrHec4QL._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:50,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51TyrHec4QL._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:107,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51TyrHec4QL.jpg",imageHeightLarge:500,imageWidthLarge:333,authorshipInfo:"Starring John Travolta, Nicolas Cage, Joan Allen, Alessandro Nivola, Gina Gershon"},{title:"PIXNOR Facial Cleansing Brush [Newest 2020], Waterproof Face Spin Brush with 7 Brush Heads for Deep Cleansing, Gentle Exfoliating, Removing Blackhead, Massaging(Pink)",asin:"B077ZW5YQP",productGroup:"Beauty",authors:[],artists:[],actors:[],manufacturer:"PIXNOR",detailPageUrl:"https://www.amazon.com/PIXNOR-Cleansing-Waterproof-Exfoliating-Blackhead/dp/B077ZW5YQP?psc=1&SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B077ZW5YQP",listPrice:"$39.99",salePrice:"$22.99",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/41KQCaa1hjL._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:75,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/41KQCaa1hjL._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:160,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/41KQCaa1hjL.jpg",imageHeightLarge:500,imageWidthLarge:500,authorshipInfo:"PIXNOR"},{title:"BESTOPE Blackhead Remover Pimple Comedone Extractor Tool Best Acne Removal Kit - Treatment for Blemish, Whitehead Popping, Zit Removing for Risk Free Nose Face Skin with Metal Case",asin:"B019SVHLEY",productGroup:"Beauty",authors:[],artists:[],actors:[],manufacturer:"Doctor PimplePopper",detailPageUrl:"https://www.amazon.com/BESTOPE-Blackhead-Remover-Comedone-Extractor/dp/B019SVHLEY?psc=1&SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B019SVHLEY",listPrice:"$7.99",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51QHC5fDdfL._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:75,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51QHC5fDdfL._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:160,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51QHC5fDdfL.jpg",imageHeightLarge:500,imageWidthLarge:500,authorshipInfo:"Doctor PimplePopper"},{title:"Welcome to the Jungle",asin:"B004L3L9PM",productGroup:"TV Series Episode Video on Demand",authors:[],artists:[],actors:[],detailPageUrl:"https://www.amazon.com/Welcome-to-the-Jungle/dp/B004L3L9PM?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B004L3L9PM",listPrice:"$2.99",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51KBv1L7lJL._SL75_.jpg",imageHeightSmall:56,imageWidthSmall:75,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51KBv1L7lJL._SL160_.jpg",imageHeightMedium:120,imageWidthMedium:160,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51KBv1L7lJL.jpg",imageHeightLarge:375,imageWidthLarge:500,authorshipInfo:""},{title:"Black Charcoal Mask - Face Peel Off Mask with Organic Bamboo and Vitamin C - Deep Cleansing Pore Blackhead Removal and Purifying Black Mask for Men and Women",asin:"B07V1MPG8N",productGroup:"Beauty",authors:[],artists:[],actors:[],manufacturer:"O'linear",detailPageUrl:"https://www.amazon.com/Black-Charcoal-Mask-Cleansing-Blackhead/dp/B07V1MPG8N?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B07V1MPG8N",listPrice:"$7.49",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51QkF1BReJL._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:75,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51QkF1BReJL._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:160,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51QkF1BReJL.jpg",imageHeightLarge:500,imageWidthLarge:500,authorshipInfo:"O'linear"},{title:"Girl, Wash Your Face: Stop Believing the Lies about Who You Are So You Can Become Who You Were Meant to Be",asin:"1400201659",productGroup:"Book",authors:["Rachel Hollis"],artists:[],actors:[],manufacturer:"Thomas Nelson",detailPageUrl:"https://www.amazon.com/Girl-Wash-Your-Face-Believing/dp/1400201659?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=1400201659",listPrice:"$11.88",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51uuwa-5OgL._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:49,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51uuwa-5OgL._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:104,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51uuwa-5OgL.jpg",imageHeightLarge:500,imageWidthLarge:326,authorshipInfo:"By Rachel Hollis"},{title:"Death Dealers",asin:"B07F75BN4W",productGroup:"TV Series Episode Video on Demand",authors:[],artists:[],actors:[],detailPageUrl:"https://www.amazon.com/Death-Dealers/dp/B07F75BN4W?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B07F75BN4W",listPrice:"$1.99",authorshipInfo:""},{title:"eDiva Natural Jade Roller- Gua Sha - Lymphatic Drainage Tool for Face, Neck, Body - Anti Aging Treatment - Reduces Wrinkles and Fine Lines",asin:"B07HHF37F7",productGroup:"Beauty",authors:[],artists:[],actors:[],manufacturer:"eDiva",detailPageUrl:"https://www.amazon.com/eDiva-Natural-Jade-Roller-Gua/dp/B07HHF37F7?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B07HHF37F7",listPrice:"$49.95",salePrice:"$22.95",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/41DWi8-M92L._SL75_.jpg",imageHeightSmall:75,imageWidthSmall:75,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/41DWi8-M92L._SL160_.jpg",imageHeightMedium:160,imageWidthMedium:160,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/41DWi8-M92L.jpg",imageHeightLarge:500,imageWidthLarge:500,authorshipInfo:"eDiva"},{title:"Pack Leaders",asin:"B071GRS6R9",productGroup:"TV Series Episode Video on Demand",authors:[],artists:[],actors:["McKenzie Westmore","Ve Neill","Glenn Hetrick","Neville Page","Michael Westmore"],detailPageUrl:"https://www.amazon.com/Pack-Leaders/dp/B071GRS6R9?SubscriptionId=AKIAIA3UEVTLIG7AIKFA&tag=%5Bassociate-id-placeholder%5D&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B071GRS6R9",listPrice:"$2.99",imageUrlSmall:"https://images-na.ssl-images-amazon.com/images/I/51rP3BM0oxL._SL75_.jpg",imageHeightSmall:56,imageWidthSmall:75,imageUrlMedium:"https://images-na.ssl-images-amazon.com/images/I/51rP3BM0oxL._SL160_.jpg",imageHeightMedium:120,imageWidthMedium:160,imageUrlLarge:"https://images-na.ssl-images-amazon.com/images/I/51rP3BM0oxL.jpg",imageHeightLarge:375,imageWidthLarge:500,authorshipInfo:"Starring McKenzie Westmore, Ve Neill, Glenn Hetrick, Neville Page, Michael Westmore"}]}},82729:function(e,t,n){"use strict";var r=n(63027),a=n(55066),o=n.n(a),i=n(33163),s=n(46399),l=n(87997),c=n(9314),u=n(14877),p=n(5169);const __=i.__;t.Z=(0,l.withNotices)((function({attributes:{backgroundColor:e,textColor:t,buttonAndLinkColor:n,asin:a,showImage:i,showTitle:d,showSeller:m,showPrice:h,showPurchaseButton:f},className:g,name:b,noticeUI:v,setAttributes:k}){const y=(0,c.getBlockDefaultClassName)(b),[E,w]=(0,r.useState)([]),_=/^(\d+)$|\(ASIN:(.+)\)$/,C=(0,r.createElement)(l.Placeholder,{label:__("Amazon","jetpack"),instructions:__("Search by entering an Amazon product name or ID below.","jetpack"),icon:(0,r.createElement)(s.BlockIcon,{icon:u.Z}),notices:v},(0,r.createElement)("form",null,(0,r.createElement)(l.FormTokenField,{value:a,suggestions:E,onInputChange:()=>{w(p.Z.products.map((e=>`${e.title} (ASIN:${e.asin})`)))},maxSuggestions:10,label:__("Products","jetpack"),onChange:e=>{const t=e.map((e=>{const t=_.exec(e),n=t[1]||t[2];return p.Z.products.filter((e=>e.asin===n))}));k({asin:t[0][0].asin})}}),(0,r.createElement)(l.Button,{isSecondary:!0,isLarge:!0,type:"submit"},__("Preview","jetpack")))),S=(0,r.createElement)(s.InspectorControls,null,a&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.PanelBody,{title:__("Promotion Settings","jetpack")},(0,r.createElement)(l.ToggleControl,{label:__("Show Image","jetpack"),checked:i,onChange:()=>k({showImage:!i})}),(0,r.createElement)(l.ToggleControl,{label:__("Show Title","jetpack"),checked:d,onChange:()=>k({showTitle:!d})}),(0,r.createElement)(l.ToggleControl,{label:__("Show Author/Seller","jetpack"),checked:m,onChange:()=>k({showSeller:!m})}),(0,r.createElement)(l.ToggleControl,{label:__("Show Price","jetpack"),checked:h,onChange:()=>k({showPrice:!h})}),(0,r.createElement)(l.ToggleControl,{label:__("Show Purchase Button","jetpack"),checked:f,onChange:()=>k({showPurchaseButton:!f})})),(0,r.createElement)(s.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:e,onChange:e=>k({backgroundColor:e}),label:__("Background Color","jetpack")},{value:t,onChange:e=>k({textColor:e}),label:__("Text Color","jetpack")},{value:n,onChange:e=>k({buttonAndLinkColor:e}),label:__("Button & Link Color","jetpack")}]},(0,r.createElement)(s.ContrastChecker,{isLargeText:!1,textColor:t,backgroundColor:e}))));return(0,r.createElement)("div",{className:g},S,a?(()=>{const{title:s,detailPageUrl:c,listPrice:g,imageUrlMedium:b,imageWidthMedium:v,imageHeightMedium:k}=p.Z.products.filter((e=>e.asin===a))[0],E="TODO",w=b&&(0,r.createElement)("a",{target:"_blank",href:c,rel:"noopener noreferrer"},(0,r.createElement)("img",{alt:s,src:b,width:v,heigth:k})),_=o().mostReadable(n,["#ffffff"],{includeFallbackColors:!0,size:"small"}).toHexString();return a?(0,r.createElement)("div",{style:{backgroundColor:e,color:t,width:v}},i&&w,d&&(0,r.createElement)("div",{className:`${y}-title`},(0,r.createElement)(l.ExternalLink,{href:c,style:{color:n}},s)),m&&(0,r.createElement)("div",{className:`${y}-seller`},E),h&&(0,r.createElement)("div",{className:`${y}-list-price`},g),f&&(0,r.createElement)(l.Button,{href:c,icon:u.Z,isPrimary:!0,className:`${y}-button`,style:{color:_,backgroundColor:n,borderColor:n}},__("Shop Now","jetpack"))):null})():C)}))},14877:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{clipRule:"evenodd",d:"m13.958 10.09c0 1.232.029 2.256-.591 3.351-.502.891-1.301 1.438-2.186 1.438-1.214 0-1.922-.924-1.922-2.292 0-2.692 2.415-3.182 4.7-3.182v.685zm3.186 7.705c-.209.189-.512.201-.745.074-1.052-.872-1.238-1.276-1.814-2.106-1.734 1.767-2.962 2.297-5.209 2.297-2.66 0-4.731-1.641-4.731-4.925 0-2.565 1.391-4.309 3.37-5.164 1.715-.754 4.11-.891 5.942-1.095v-.41c0-.753.06-1.642-.383-2.294-.385-.579-1.124-.82-1.775-.82-1.205 0-2.277.618-2.54 1.897-.054.285-.261.567-.549.582l-3.061-.333c-.259-.056-.548-.266-.472-.66.704-3.716 4.06-4.838 7.066-4.838 1.537 0 3.547.41 4.758 1.574 1.538 1.436 1.392 3.352 1.392 5.438v4.923c0 1.481.616 2.13 1.192 2.929.204.287.247.63-.01.839-.647.541-1.794 1.537-2.423 2.099zm3.559 1.988c-2.748 1.472-5.735 2.181-8.453 2.181-4.027 0-7.927-1.393-11.081-3.706-.277002-.202-.481003.154-.251003.416 2.925003 3.326 6.786003 5.326 11.076003 5.326 3.061 0 6.614-1.214 9.066-3.494.406-.377.058-.945-.357-.723zm.67 2.216c-.091.227.104.32.31.147 1.339-1.12 1.685-3.466 1.411-3.804-.272-.336-2.612-.626-4.04.377-.22.154-.182.367.062.337.805-.096 2.595-.312 2.913.098.319.41-.355 2.094-.656 2.845z",fillRule:"evenodd"}))},46193:function(e,t,n){"use strict";n.d(t,{u2:function(){return l},Xd:function(){return u}});var r=n(33163),a=n(2131),o=n(82729),i=n(14877),s=n(32750);const __=r.__,l="amazon",c=__("Amazon","jetpack"),u={attributes:a.Z,title:c,description:__("Promote Amazon products and earn a commission from sales.","jetpack"),icon:{src:i.Z,foreground:(0,s.m)()},category:"earn",keywords:[__("amazon","jetpack"),__("affiliate","jetpack")],supports:{align:!0,alignWide:!1,html:!1},edit:o.Z,save:()=>null,example:{attributes:{}}}},41206:function(e,t,n){"use strict";n.d(t,{J:function(){return p},F:function(){return d}});var r=n(9314),a=n(65707),o=n(33163),i=n(32750),s=n(76672);const _x=o._x,__=o.__;function l({spotifyShowUrl:e,spotifyImageUrl:t}){return[["core/image",{url:t,linkDestination:"none",href:e,align:"center",width:165,height:40,className:"is-spotify-podcast-badge"}]]}function c({episodeTrack:e,feedUrl:t}){const{guid:n}=e;return[["jetpack/podcast-player",{customPrimaryColor:(0,i.m)(),hexPrimaryColor:(0,i.m)(),url:t,selectedEpisodes:n?[{guid:n}]:[],showCoverArt:!1,showEpisodeTitle:!1,showEpisodeDescription:!1}]]}function u({spotifyShowUrl:e,spotifyImageUrl:t,episodeTrack:n={},feedUrl:o}){const i=[...c({episodeTrack:n,feedUrl:o})];return e&&t&&i.push(...l({spotifyShowUrl:e,spotifyImageUrl:t})),i.push(...function({episodeTrack:e}){const t=[["core/heading",{level:3,content:_x("Summary","noun: summary of a podcast episode","jetpack"),placeholder:__("Podcast episode title","jetpack")}]],n=(0,r.pasteHandler)({HTML:e.description_html,mode:"BLOCKS"});return n.length?t.push(...n):t.push(["core/paragraph",{placeholder:__("Podcast episode summary","jetpack")}]),t}({episodeTrack:n})),i.push(...function(){const e="jetpack/conversation";return(0,a.select)("core/blocks").getBlockType(e)?[[e,{participants:[{slug:"participant-0",label:__("Speaker 1","jetpack")},{slug:"participant-1",label:__("Speaker 2","jetpack")},{slug:"participant-2",label:__("Speaker 3","jetpack")}]},[["core/heading",{level:3,content:__("Transcription","jetpack"),placeholder:__("Podcast episode transcription","jetpack")}],["jetpack/dialogue",{placeholder:__("Podcast episode dialogue","jetpack"),slug:"participant-0"}],["jetpack/dialogue",{placeholder:__("Podcast episode dialogue","jetpack"),slug:"participant-1"}],["jetpack/dialogue",{placeholder:__("Podcast episode dialogue","jetpack"),slug:"participant-2"}]]]]:[["core/heading",{level:3,content:__("Transcription","jetpack"),placeholder:__("Podcast episode transcription","jetpack")}],["core/paragraph",{placeholder:__("Podcast episode dialogue","jetpack")}],["core/paragraph",{placeholder:__("Podcast episode dialogue","jetpack")}],["core/paragraph",{placeholder:__("Podcast episode dialogue","jetpack")}]]}()),i}function p(e){return(0,s.Z)(u(e))}function d(e){if(e.spotifyImageUrl&&e.spotifyShowUrl)return(0,s.Z)([...l(e)])}},90731:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(33163),c=n(87997),u=n(33804);const __=l.__,p="09:00",d="17:00";class m extends o.Component{constructor(...e){super(...e),a()(this,"renderInterval",((e,t)=>{const{day:n}=this.props,{opening:r,closing:a}=e;return(0,o.createElement)(o.Fragment,{key:t},(0,o.createElement)("div",{className:"business-hours__row"},(0,o.createElement)("div",{className:s()(n.name,"business-hours__day")},0===t&&this.renderDayToggle()),(0,o.createElement)("div",{className:s()(n.name,"business-hours__hours")},(0,o.createElement)(c.TextControl,{type:"time",label:__("Opening","jetpack"),value:r,className:"business-hours__open",placeholder:p,onChange:e=>{this.setHour(e,"opening",t)}}),(0,o.createElement)(c.TextControl,{type:"time",label:__("Closing","jetpack"),value:a,className:"business-hours__close",placeholder:d,onChange:e=>{this.setHour(e,"closing",t)}})),(0,o.createElement)("div",{className:"business-hours__remove"},n.hours.length>1&&(0,o.createElement)(c.Button,{isSmall:!0,isLink:!0,icon:"trash",label:__("Remove Hours","jetpack"),onClick:()=>{this.removeInterval(t)}}))),t===n.hours.length-1&&(0,o.createElement)("div",{className:"business-hours__row business-hours-row__add"},(0,o.createElement)("div",{className:s()(n.name,"business-hours__day")}," "),(0,o.createElement)("div",{className:s()(n.name,"business-hours__hours")},(0,o.createElement)(c.Button,{isLink:!0,label:__("Add Hours","jetpack"),onClick:this.addInterval},__("Add Hours","jetpack"))),(0,o.createElement)("div",{className:"business-hours__remove"}," ")))})),a()(this,"setHour",((e,t,n)=>{const{day:r,attributes:a,setAttributes:o}=this.props,{days:i}=a;o({days:i.map((a=>a.name===r.name?{...a,hours:a.hours.map(((r,a)=>a===n?{...r,[t]:e}:r))}:a))})})),a()(this,"toggleClosed",(e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:a}=n;r({days:a.map((n=>{if(n.name===t.name){const t=e?[{opening:p,closing:d}]:[];return{...n,hours:t}}return n}))})})),a()(this,"addInterval",(()=>{const{day:e,attributes:t,setAttributes:n}=this.props,{days:r}=t;e.hours.push({opening:"",closing:""}),n({days:r.map((t=>t.name===e.name?{...t,hours:e.hours}:t))})})),a()(this,"removeInterval",(e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:a}=n;r({days:a.map((n=>t.name===n.name?{...n,hours:n.hours.filter(((t,n)=>e!==n))}:n))})}))}isClosed(){const{day:e}=this.props;return(0,u.isEmpty)(e.hours)}renderDayToggle(){const{day:e,localization:t}=this.props;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"business-hours__day-name"},t.days[e.name]),(0,o.createElement)(c.ToggleControl,{label:this.isClosed()?__("Closed","jetpack"):__("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}renderClosed(){const{day:e}=this.props;return(0,o.createElement)("div",{className:"business-hours__row business-hours-row__closed"},(0,o.createElement)("div",{className:s()(e.name,"business-hours__day")},this.renderDayToggle()),(0,o.createElement)("div",{className:s()(e.name,"closed","business-hours__hours")}," "),(0,o.createElement)("div",{className:"business-hours__remove"}," "))}render(){const{day:e}=this.props;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}t.Z=m},35411:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(77947),l=n(33804);const _x=i._x;class c extends o.Component{constructor(...e){super(...e),a()(this,"renderInterval",((e,t)=>{const{day:n}=this.props,r=n.hours;return(0,o.createElement)("span",{key:t},(0,i.sprintf)("%1$s - %2$s",this.formatTime(e.opening),this.formatTime(e.closing)),r.length>1+t&&(0,o.createElement)("span",null,", "))}))}formatTime(e){const{timeFormat:t}=this.props,[n,r]=e.split(":"),a=new Date;return!(!n||!r)&&(a.setHours(n),a.setMinutes(r),(0,s.date)(t,a))}render(){const{day:e,localization:t}=this.props,n=e.hours.filter((e=>this.formatTime(e.opening)&&this.formatTime(e.closing)));return(0,o.createElement)("div",{className:"jetpack-business-hours__item"},(0,o.createElement)("dt",{className:e.name},t.days[e.name]),(0,o.createElement)("dd",null,(0,l.isEmpty)(n)?_x("Closed","business is closed on a full day","jetpack"):n.map(this.renderInterval),(0,o.createElement)("br",null)))}}t.Z=c},45647:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(43197),i=n.n(o),s=n(63027),l=n(37606),c=n.n(l),u=n(89105),p=n.n(u),d=n(33163),m=n(77947),h=n(46399),f=n(87997),g=n(90731),b=n(35411),v=n(84118);const __=d.__,k={days:{Sun:__("Sunday","jetpack"),Mon:__("Monday","jetpack"),Tue:__("Tuesday","jetpack"),Wed:__("Wednesday","jetpack"),Thu:__("Thursday","jetpack"),Fri:__("Friday","jetpack"),Sat:__("Saturday","jetpack")},startOfWeek:0};class y extends s.Component{constructor(...e){super(...e),i()(this,"state",{localization:k,hasFetched:!1})}componentDidMount(){this.apiFetch()}apiFetch(){this.setState({data:k},(()=>{c()({path:"/wpcom/v2/business-hours/localized-week"}).then((e=>{this.setState({localization:e,hasFetched:!0})}),(()=>{this.setState({localization:k,hasFetched:!0})}))}))}render(){const{attributes:e,className:t,isSelected:n}=this.props,{days:r}=e,{localization:o,hasFetched:i}=this.state,{startOfWeek:l}=o,c=r.concat(r.slice(0,l)).slice(l);if(!i)return(0,s.createElement)(f.Placeholder,{icon:(0,s.createElement)(h.BlockIcon,{icon:v.qv}),label:__("Loading business hours","jetpack")});if(!n){const e=(0,m.__experimentalGetSettings)(),{formats:{time:n}}=e;return(0,s.createElement)("dl",{className:p()(t,"jetpack-business-hours")},c.map(((e,t)=>(0,s.createElement)(b.Z,{key:t,day:e,localization:o,timeFormat:n}))))}return(0,s.createElement)("div",{className:p()(t,"is-edit")},c.map(((e,t)=>(0,s.createElement)(g.Z,a()({key:t,day:e,localization:o},this.props)))))}}t.Z=y},84118:function(e,t,n){"use strict";n.d(t,{u2:function(){return u},qv:function(){return p},Xd:function(){return d}});var r=n(63027),a=n(33163),o=n(87997),i=n(45647),s=n(14541),l=n(32750);const __=a.__,_x=a._x,c=[{name:"Sun",hours:[]},{name:"Mon",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Tue",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Wed",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Thu",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Fri",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Sat",hours:[]}],u="business-hours",p=(0,s.Z)((0,r.createElement)(o.Path,{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),d={title:__("Business Hours","jetpack"),description:__("Display opening hours for your business.","jetpack"),icon:{src:p,foreground:(0,l.m)()},category:"grow",supports:{html:!0},keywords:[_x("opening hours","block search term","jetpack"),_x("closing time","block search term","jetpack"),_x("schedule","block search term","jetpack"),_x("working day","block search term","jetpack")],attributes:{days:{type:"array",default:c}},edit:e=>(0,r.createElement)(i.Z,e),save:()=>null,example:{attributes:{days:c}}}},65742:function(e,t,n){"use strict";var r=n(33804),a=n(87997);const o=(0,a.withFallbackStyles)(((e,t)=>{const{backgroundColor:n,textColor:a}=t,o=(0,r.get)(n,"color"),i=!(0,r.get)(a,"color")&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:a||!i?void 0:getComputedStyle(i).color}}));t.Z=o},30050:function(e,t,n){"use strict";var r=n(37432);t.Z={element:{type:"string",enum:["a","button","input"]},saveInPostContent:{type:"boolean",default:!1},uniqueId:{type:"string"},passthroughAttributes:{type:"object"},text:{type:"string"},placeholder:{type:"string"},url:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string",validator:r.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:r.Z},gradient:{type:"string"},customGradient:{type:"string"},borderRadius:{type:"number"},width:{type:"string"}}},66377:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(87997),o=n(33163),i=n(78544);const __=o.__;function s({borderRadius:e="",setAttributes:t}){const n=(0,r.useCallback)((e=>t({borderRadius:e})),[t]);return(0,r.createElement)(a.PanelBody,{title:__("Border Settings","jetpack")},(0,r.createElement)(a.RangeControl,{allowReset:!0,initialPosition:i.pg,label:__("Border radius","jetpack"),max:i.Gp,min:i.G0,onChange:n,value:e}))}},70591:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(46399),o=n(33163);const __=o.__;function i({isGradientAvailable:e,backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:o,gradientValue:i,setBackgroundColor:s,setGradient:l,setTextColor:c,textColor:u}){const p=(0,r.createElement)(a.ContrastChecker,{backgroundColor:t.color,fallbackBackgroundColor:n,fallbackTextColor:o,isLargeText:!1,textColor:u.color});return e?(0,r.createElement)(a.__experimentalPanelColorGradientSettings,{settings:[{colorValue:u.color,label:__("Text Color","jetpack"),onColorChange:c},{colorValue:t.color,gradientValue:i,label:__("Background","jetpack"),onColorChange:s,onGradientChange:l}],title:__("Background & Text Color","jetpack")},p):(0,r.createElement)(a.PanelColorSettings,{colorSettings:[{value:u.color,onChange:c,label:__("Text Color","jetpack")},{value:t.color,onChange:s,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack")},p)}},2892:function(e,t,n){"use strict";n.d(t,{Z:function(){return p},h:function(){return d}});var r=n(63027),a=n(89105),o=n.n(a),i=n(87997),s=n(33163);const __=s.__,l=[{value:"px",label:"px",default:150},{value:"%",label:"%",default:100},{value:"em",label:"em",default:10}],c=[{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],u=["25%","50%","75%","100%"];function p(e){return(0,r.createElement)(i.PanelBody,{title:__("Width settings","jetpack")},(0,r.createElement)(d,e))}function d({align:e,width:t,onChange:n}){const[a,s]=(0,r.useState)(null);(0,r.useEffect)((()=>{void 0===t&&s("px")}),[t]);const p="left"===e||"right"===e;return(0,r.createElement)(i.BaseControl,{label:__("Button width","jetpack")},(0,r.createElement)("div",{className:o()("jetpack-button__width-settings",{"is-aligned":p})},!p&&(0,r.createElement)(i.ButtonGroup,{"aria-label":__("Percentage Width","jetpack")},u.map((e=>(0,r.createElement)(i.Button,{key:e,isSmall:!0,isPrimary:e===t,onClick:()=>function(e){const r=t===e?void 0:e;s("%"),n(r)}(e)},e)))),(0,r.createElement)(i.__experimentalUnitControl,{className:"jetpack-button__custom-width",isResetValueOnUnitChange:!0,max:"%"===a||null!=t&&t.includes("%")?100:void 0,min:0,onChange:e=>n(e),onUnitChange:e=>s(e),size:"small",units:p?c:l,value:t,unit:a})))}},78544:function(e,t,n){"use strict";n.d(t,{DA:function(){return a},pg:function(){return o},Gp:function(){return i},G0:function(){return s}});var r=n(46399);const a=!!r.__experimentalUseGradient,o=5,i=50,s=0},4303:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(66377),o=n(70591),i=n(2892);function s({attributes:e,backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:s,setAttributes:l,setBackgroundColor:c,setTextColor:u,textColor:p,gradientValue:d,setGradient:m,isGradientAvailable:h}){const{align:f,borderRadius:g,width:b}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Z,{backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:s,gradientValue:d,setBackgroundColor:c,setGradient:m,setTextColor:u,textColor:p,isGradientAvailable:h}),(0,r.createElement)(a.Z,{borderRadius:g,setAttributes:l}),(0,r.createElement)(i.Z,{align:f,width:b,onChange:e=>l({width:e})}))}},84489:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(46399),c=n(51417),u=n(33163),p=n(65742),d=n(4303),m=n(78544),h=n(42147);const __=u.__;t.Z=(0,c.compose)((0,l.withColors)({backgroundColor:"background-color"},{textColor:"color"}),p.Z)((function(e){const{attributes:t,backgroundColor:n,className:r,clientId:i,setAttributes:c,textColor:u}=e,{align:p,borderRadius:f,element:g,placeholder:b,text:v,width:k}=t,y=(e=>{const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e}),[e]),t.current})(p);(0,h.Z)({attributes:t,clientId:i,setAttributes:c}),(0,o.useEffect)((()=>{y!==p&&("left"===p||"right"===p)&&null!=k&&k.includes("%")&&c({width:void 0})}),[p,y,c,k]);const{gradientClass:E,gradientValue:w,setGradient:_}=m.DA?(0,l.__experimentalUseGradient)({gradientAttribute:"gradient",customGradientAttribute:"customGradient"}):{},C=s()("wp-block-button",r),S=s()("wp-block-button__link",{"has-background":n.color||w,[n.class]:!w&&n.class,"has-text-color":u.color,[u.class]:u.class,[E]:E,"no-border-radius":0===f,"has-custom-width":!!k}),j={...!n.color&&w?{background:w}:{backgroundColor:n.color},color:u.color,borderRadius:f?f+"px":void 0,width:k};return(0,o.createElement)("div",{className:C},(0,o.createElement)(l.RichText,{allowedFormats:"input"===g?[]:void 0,className:S,disableLineBreaks:"input"===g,onChange:e=>{const t="input"===g?e.replace(/<br>/gim," "):e;c({text:t})},placeholder:b||__("Add text…","jetpack"),style:j,value:v,withoutInteractiveFormatting:!0}),(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)(d.Z,a()({gradientValue:w,setGradient:_,isGradientAvailable:m.DA},e))))}))},70825:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"}))},94872:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(33163),a=n(30050),o=n(84489),i=n(70825),s=n(81074),l=n(36012);const __=r.__,c="button",u={title:__("Button","jetpack"),icon:i.Z,category:(0,l.Z)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"]},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],attributes:a.Z,edit:o.Z,save:s.Z}},81074:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(89105),o=n.n(a),i=n(46399),s=n(78544);function l({attributes:e,blockName:t,uniqueId:n}){const{backgroundColor:a,borderRadius:l,className:c,customBackgroundColor:u,customGradient:p,customTextColor:d,gradient:m,saveInPostContent:h,text:f,textColor:g,url:b,width:v}=e;if(!h)return null;const k=(0,i.getColorClassName)("background-color",a),y=s.DA?(0,i.__experimentalGetGradientClass)(m):void 0,E=(0,i.getColorClassName)("color",g),w=o()("wp-block-button","jetpack-submit-button",c,{[`wp-block-jetpack-${t}`]:t}),_=o()("wp-block-button__link",{"has-text-color":g||d,[E]:E,"has-background":a||m||u||p,[k]:k,[y]:y,"no-border-radius":0===l,"has-custom-width":!!v}),C={background:p||void 0,backgroundColor:k||p||m?void 0:u,color:E?void 0:d,borderRadius:l?l+"px":void 0,width:v};return(0,r.createElement)("div",{className:w},(0,r.createElement)(i.RichText.Content,{className:_,"data-id-attr":n||"placeholder",href:b,id:n,rel:"noopener noreferrer",role:"button",style:C,tagName:"a",target:"_blank",value:f}))}},42147:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(33804),a=n(65707),o=n(63027);function i({attributes:e,clientId:t,setAttributes:n}){const{passthroughAttributes:i}=e,{attributesToSync:s}=(0,a.useSelect)((n=>{const{getBlockAttributes:a,getBlockRootClientId:o}=n("core/block-editor"),s=a(o(t))||{},l=(0,r.mapValues)(i,(e=>s[e]));return{attributesToSync:(0,r.pickBy)(l,((t,n)=>t!==e[n]))}}));(0,o.useEffect)((()=>{(0,r.isEmpty)(s)||n(s)}),[s,n])}},1571:function(e,t,n){"use strict";var r=n(37432);t.Z={backgroundColor:{type:"string",default:"ffffff",validator:r.Z},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:r.Z},textColor:{type:"string",default:"4D5055",validator:r.Z},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")}}},13654:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(87997),i=n(33163),s=n(39879);const __=i.__,_x=i._x,l=({onEditClick:e})=>(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{onClick:()=>e(!0)},__("Edit","jetpack"))),c=e=>{const{attributes:{hideEventTypeDetails:t,url:n},defaultClassName:a,embedCode:i,parseEmbedCode:s,setAttributes:l,setEmbedCode:c}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{PanelBody:!0,title:__("Calendar settings","jetpack"),initialOpen:!1},(0,r.createElement)("form",{onSubmit:s,className:`${a}-embed-form-sidebar`},(0,r.createElement)("input",{type:"text",id:"embedCode",onChange:e=>c(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:i||"",className:"components-placeholder__input"}),(0,r.createElement)("div",null,(0,r.createElement)(o.Button,{isSecondary:!0,type:"submit"},_x("Embed","button label","jetpack")))),(0,r.createElement)(o.ToggleControl,{label:__("Hide event type details","jetpack"),checked:t,onChange:()=>l({hideEventTypeDetails:!t})})),n&&(0,r.createElement)(o.Notice,{className:`${a}-color-notice`,isDismissible:!1},(0,r.createElement)(o.ExternalLink,{href:"https://help.calendly.com/hc/en-us/community/posts/360033166114-Embed-Widget-Color-Customization-Available-Now-"},__("Follow these instructions to change the colors in this block.","jetpack"))))};t.ZP=e=>{const{attributes:t,clientId:n,isEditingUrl:o,setAttributes:i,setIsEditingUrl:u}=e,{style:p,url:d}=t,m=[{value:"inline",label:__("Inline","jetpack")},{value:"link",label:__("Link","jetpack")}];return(0,r.createElement)(r.Fragment,null,d&&!o&&(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(l,{onEditClick:u})),d&&(0,r.createElement)(s.Z,{clientId:n,styleOptions:m,onSelectStyle:i,activeStyle:p,attributes:t,viewportWidth:500}),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(c,e)))}},86348:function(e,t,n){"use strict";var r=n(63027),a=n(9314),o=n(33163),i=n(37432);const __=o.__;t.Z={attributes:{backgroundColor:{type:"string",default:"ffffff",validator:i.Z},submitButtonText:{type:"string",default:__("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:i.Z},textColor:{type:"string",default:"4D5055",validator:i.Z},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:i.Z},customTextButtonColor:{type:"string",validator:i.Z}},migrate:e=>{const{submitButtonText:t,submitButtonTextColor:n,submitButtonBackgroundColor:r,submitButtonClasses:o,backgroundButtonColor:i,textButtonColor:s,customBackgroundButtonColor:l,customTextButtonColor:c,...u}=e,p={text:(d=e).submitButtonText||__("Schedule time with me","jetpack"),textColor:d.submitButtonTextColor||d.textButtonColor,customTextColor:d.customTextButtonColor,backgroundColor:d.submitButtonBackgroundColor||d.backgroundButtonColor,customBackgroundColor:d.customBackgroundButtonColor,url:d.url};var d;return[u,[(0,a.createBlock)("jetpack/button",{element:"a",uniqueId:"calendly-widget-id",...p})]]},save:({attributes:{url:e}})=>(0,r.createElement)("a",{href:e},e)}},20350:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=(n(86841),n(33804)),s=n(54286),l=n(46399),c=n(87997),u=n(33163),p=n(9314),d=n(65707),m=n(31945),h=n(1571),f=n(83353),g=n(52723),b=n(1395),v=n(19737),k=n(13654);const __=u.__,_x=u._x;t.Z=(0,c.withNotices)((function(e){const{attributes:t,className:n,clientId:r,name:u,noticeOperations:y,noticeUI:E,setAttributes:w}=e,_=(0,p.getBlockDefaultClassName)(u),C=(0,f.S)(h.Z,t);(0,i.isEqual)(C,t)||w(C);const{backgroundColor:S,hideEventTypeDetails:j,primaryColor:x,textColor:T,style:N,url:A}=C,[P,I]=(0,o.useState)(A),[M,B]=(0,o.useState)(!1),[R,L]=(0,o.useState)(!1),[Z,D]=(0,o.useState)({}),F=()=>{y.removeAllNotices(),y.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack"))};(0,o.useEffect)((()=>{A&&b.lR!==A&&"link"!==N&&(0,v.Z)(A,L).catch((()=>{w({url:void 0}),F()}))}),[]);const O=e=>{if(!e)return void F();e.preventDefault();const t=(0,g.CC)(P);if(t){if(t.buttonAttributes&&"link"===t.style){const e=(0,d.select)("core/editor").getBlocksByClientId(r);e.length&&e[0].innerBlocks.forEach((e=>{(0,d.dispatch)("core/editor").updateBlockAttributes(e.clientId,t.buttonAttributes)})),D(t.buttonAttributes)}(0,v.Z)(t.url,L).then((()=>{const e=(0,f.S)(h.Z,t);w(e),B(!1),y.removeAllNotices()})).catch((()=>{w({url:void 0}),F()}))}else F()},z=(0,o.createElement)("div",{className:"wp-block-embed is-loading"},(0,o.createElement)(c.Spinner,null),(0,o.createElement)("p",null,__("Embedding…","jetpack"))),U=(0,o.createElement)(c.Placeholder,{label:__("Calendly","jetpack"),instructions:__("Enter your Calendly web address or embed code below.","jetpack"),icon:(0,o.createElement)(l.BlockIcon,{icon:m.Z}),notices:E},(0,o.createElement)("form",{onSubmit:O},(0,o.createElement)("input",{type:"text",id:"embedCode",onChange:e=>I(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:P||"",className:"components-placeholder__input"}),(0,o.createElement)("div",null,(0,o.createElement)(c.Button,{isSecondary:!0,type:"submit"},_x("Embed","button label","jetpack")))),(0,o.createElement)("div",{className:`${_}-learn-more`},(0,o.createElement)(c.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview"},__("Need help finding your embed code?","jetpack")))),$=(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:`${_}-overlay`}),(0,o.createElement)("iframe",{src:(()=>{const e=s.stringify({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:j?1:0,background_color:S,primary_color:x,text_color:T});return`${A}?${e}`})(),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",title:"Calendly"})),V=(0,o.createElement)(l.InnerBlocks,{template:[[b.Ss.name,{...b.Ss.attributes,...Z,passthroughAttributes:{url:"url"}}]],templateLock:"all"});if(R)return z;let G=n;return A&&!M&&(G+=` calendly-style-${N}`),(0,o.createElement)("div",{className:G},(0,o.createElement)(k.ZP,a()({},e,{defaultClassName:_,embedCode:P,isEditingUrl:M,parseEmbedCode:O,setEmbedCode:I,setIsEditingUrl:B})),A&&!M?"inline"===N?$:V:U)}))},31945:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 23 24",width:"23",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19,1h-2.3v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H8.6v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H4C1.8,1,0,2.8,0,5 v15c0,2.2,1.8,4,4,4h15c2.2,0,4-1.8,4-4V5C23,2.8,21.2,1,19,1z M21,20c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h2.6 v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3h6.1v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3H19c1.1,0,2,0.9,2,2V20z M13.9,14.8l1.4,1.4 c-0.9,0.9-2.1,1.3-3.5,1.3c-2.4,0-4.5-2.1-4.5-4.7s2.1-4.7,4.5-4.7c1.4,0,2.5,0.4,3.4,1.1L14,10.9c-0.5-0.4-1.2-0.6-2.1-0.6 c-1.2,0-2.5,1.1-2.5,2.7c0,1.6,1.3,2.7,2.5,2.7C12.7,15.5,13.4,15.3,13.9,14.8z"}))},1395:function(e,t,n){"use strict";n.d(t,{lR:function(){return d},Ss:function(){return m},u2:function(){return h},Xd:function(){return f}});var r=n(33163),a=n(9314),o=n(1571),i=n(86348),s=n(20350),l=n(31945),c=n(49951),u=n(52723),p=n(32750);const __=r.__,_x=r._x,d="https://calendly.com/wordpresscom/jetpack-block-example",m={name:"jetpack/button",attributes:{element:"a",text:__("Schedule time with me","jetpack"),uniqueId:"calendly-widget-id",url:d}},h="calendly",f={title:__("Calendly","jetpack"),description:__("Embed a calendar for customers to schedule appointments","jetpack"),icon:{src:l.Z,foreground:(0,p.m)()},category:"grow",keywords:[_x("calendar","block search term","jetpack"),_x("schedule","block search term","jetpack"),_x("appointments","block search term","jetpack"),_x("events","block search term","jetpack"),_x("dates","block search term","jetpack")],supports:{align:!0,alignWide:!1,html:!1},edit:s.Z,save:c.Z,attributes:o.Z,example:{attributes:{hideEventTypeDetails:!1,style:"inline",url:d},innerBlocks:[m]},transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&u.mL.test(e.textContent),transform:e=>{const t=(0,u.CC)(e.textContent);return(0,a.createBlock)("jetpack/calendly",t)}}]},deprecated:[i.Z]}},49951:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o(){return(0,r.createElement)("div",null,(0,r.createElement)(a.InnerBlocks.Content,null))}},52723:function(e,t,n){"use strict";n.d(t,{mL:function(){return r},CC:function(){return a}});const r=/(^|\/\/)(calendly\.com[^"']*)/i,a=e=>{if(!e)return;const t=(e=>{const t=e.match(r);if(t)return"https://"+t[2]})(e);if(!t)return;const n=(e=>{const t={},n=new URL(e);if(t.url=n.origin+n.pathname,!n.search)return t;const r=new URLSearchParams(n.search),a=r.get("background_color"),o=r.get("primary_color"),i=r.get("text_color"),s=/^[A-Za-z0-9]{6}$/;return r.get("hide_event_type_details")&&(t.hideEventTypeDetails=r.get("hide_event_type_details")),a&&a.match(s)&&(t.backgroundColor=a),o&&o.match(s)&&(t.primaryColor=o),i&&i.match(s)&&(t.textColor=i),t})(t),a=(e=>e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0)(e);if(a&&(n.style=a),"link"===a){n.buttonAttributes={};const t=(e=>{let t=e.match(/false;">([^<]+)<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/),t?t[1]:void 0)})(e);t&&(n.buttonAttributes.text=t);const r=(e=>{const t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]})(e);r&&(n.buttonAttributes.textColor=void 0,n.buttonAttributes.customTextColor=r);const a=(e=>{const t=e.match(/color: '([^']*?)'/);if(t)return t[1]})(e);a&&(n.buttonAttributes.backgroundColor=void 0,n.buttonAttributes.customBackgroundColor=a)}return n}},43193:function(e,t,n){"use strict";var r=n(33163);const __=r.__;t.Z={subject:{type:"string"},to:{type:"string"},customThankyou:{type:"string",default:""},customThankyouHeading:{type:"string",default:__("Message Sent","jetpack")},customThankyouMessage:{type:"string",default:""},customThankyouRedirect:{type:"string",default:""},jetpackCRM:{type:"boolean",default:!0}}},85469:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(33163);const __=o.__;t.Z=({error:e})=>(0,r.createElement)(a.Notice,{isDismissible:!1,status:"error"},(0,r.createInterpolateElement)(__('The CRM Jetpack Form extension failed to activate. The error message was "<error />".',"jetpack"),{error:(0,r.createElement)("span",null,e)}))},64513:function(e,t,n){"use strict";var r=n(63027),a=n(37606),o=n.n(a),i=n(87997),s=n(33163),l=n(85469);const __=s.__,c=({isActivatingExt:e,setIsActivatingExt:t,extActivationError:n,setExtActivationError:a,crmData:s,setCRMData:c})=>{const u=((e,t,n,r)=>()=>{t(void 0),e(!0),o()({path:"/jetpack/v4/jetpack_crm",method:"POST",data:{extension:"jetpackforms"}}).then((e=>{if("success"!==e.code)throw new Error(e.code);const t=Object.assign({},n);t.jp_form_ext_enabled=!0,r(t)})).catch((e=>{t(e.message)})).finally((()=>{e(!1)}))})(t,a,s,c);return e?(0,r.createElement)(i.Spinner,null):n?(0,r.createElement)(l.Z,{error:n}):(0,r.createElement)(i.Button,{isSecondary:!0,onClick:u},__("Enable Jetpack Forms Extension","jetpack"))},u=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("A site administrator must enable the CRM Jetpack Forms extension.","jetpack")),p=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("You can integrate this contact form with Jetpack CRM by enabling Jetpack CRM's Jetpack Forms extension.","jetpack"));t.Z=({isActivatingExt:e,setIsActivatingExt:t,extActivationError:n,setExtActivationError:a,crmData:o,setCRMData:i})=>o.can_activate_extension?(0,r.createElement)("div",null,(0,r.createElement)(p,null),(0,r.createElement)("br",null),(0,r.createElement)(c,{isActivatingExt:e,setIsActivatingExt:t,extActivationError:n,setExtActivationError:a,crmData:o,setCRMData:i})):(0,r.createElement)(u,null)},40630:function(e,t,n){"use strict";var r=n(63027),a=n(53377),o=n.n(a),i=n(87997),s=n(33163),l=n(64513);const __=s.__,c=Object.freeze({ACTIVE:1,INSTALLED:2,NOT_INSTALLED:3}),u=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("The Jetpack CRM is installed but has an invalid version.","jetpack")),p=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("The Zero BS CRM plugin is now Jetpack CRM. Update to the latest version to integrate your contact form with your CRM.","jetpack")),d=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},(0,r.createInterpolateElement)(__("You can save contacts from Jetpack contact forms in Jetpack CRM. Learn more at <a>jetpackcrm.com</a>","jetpack"),{a:(0,r.createElement)(i.ExternalLink,{href:"https://jetpackcrm.com"})})),m=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("You already have the Jetpack CRM plugin installed, but it's not activated. Activate the Jetpack CRM plugin to save contacts from this contact form in your Jetpack CRM.","jetpack")),h=({crmData:e,setCRMData:t,jetpackCRM:n,setAttributes:a})=>{const[s,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1);return e.jp_form_ext_enabled?o().satisfies(o().coerce(e.crm_version),"3.0.19 - 4.0.0")?(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("Contacts from this form will be stored in Jetpack CRM.","jetpack")):(0,r.createElement)(i.ToggleControl,{className:"jetpack-contact-form__crm_toggle",label:__("Jetpack CRM","jetpack"),checked:n,onChange:e=>a({jetpackCRM:e}),help:__("Store contact form submissions in your CRM.","jetpack")}):(0,r.createElement)(l.Z,{isActivatingExt:s,setIsActivatingExt:c,extActivationError:u,setExtActivationError:p,crmData:e,setCRMData:t})};t.Z=({crmData:e,setCRMData:t,jetpackCRM:n,setAttributes:a})=>{const i=o().coerce(e.crm_version);if(e.crm_installed&&!i)return(0,r.createElement)(u,null);if(e.crm_installed&&o().lt(i,"3.0.19"))return(0,r.createElement)(p,null);let s=c.NOT_INSTALLED;return e.crm_active?s=c.ACTIVE:e.crm_installed&&(s=c.INSTALLED),(0,r.createElement)("div",{"aria-live":"polite"},c.ACTIVE===s&&(0,r.createElement)(h,{crmData:e,setCRMData:t,jetpackCRM:n,setAttributes:a}),c.INSTALLED===s&&(0,r.createElement)(m,null),c.NOT_INSTALLED===s&&(0,r.createElement)(d,null))}},81263:function(e,t,n){"use strict";var r=n(63027),a=n(37606),o=n.n(a),i=n(87997),s=n(33163),l=n(40630);const __=s.__,c=({isFetchingCRMData:e,hasCRMDataError:t,crmData:n,setCRMData:a,jetpackCRM:o,setAttributes:s})=>e?(0,r.createElement)(i.Spinner,null):t?null:(0,r.createElement)(l.Z,{crmData:n,setCRMData:a,jetpackCRM:o,setAttributes:s});t.Z=({jetpackCRM:e,setAttributes:t})=>{const[n,a]=(0,r.useState)(!0),[s,l]=(0,r.useState)(!1),[u,p]=(0,r.useState)();return(0,r.useEffect)((()=>{o()({path:"/jetpack/v4/jetpack_crm"}).then((e=>{if(e.error)throw e.message;l(!1),p(e)})).catch((()=>l(!0))).finally((()=>a(!1)))}),[]),(0,r.createElement)(i.PanelBody,{title:__("CRM Integration","jetpack"),initialOpen:!1},(0,r.createElement)(i.BaseControl,null,(0,r.createElement)(c,{isFetchingCRMData:n,hasCRMDataError:s,crmData:u,setCRMData:p,jetpackCRM:e,setAttributes:t})))}},80984:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(46399),s=n(51417),l=n(3789),c=n(17523);const __=a.__;t.Z=(0,s.withInstanceId)((function(e){const{id:t,instanceId:n,required:a,label:s,setAttributes:u,width:p,defaultValue:d}=e;return(0,r.createElement)(o.BaseControl,{id:`jetpack-field-checkbox-${n}`,className:"jetpack-field jetpack-field-checkbox",label:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:d}),(0,r.createElement)(l.Z,{required:a,label:s,setAttributes:u}),(0,r.createElement)(c.Z,{id:t,required:a,width:p,setAttributes:u}),(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Checkbox Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Checked by default","jetpack"),checked:d,onChange:e=>u({defaultValue:e?"true":""})}))))})}))},80053:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(46399),s=n(51417),l=n(3789),c=n(18187),u=n(92705);const __=a.__;t.Z=(0,s.withInstanceId)((({id:e,instanceId:t,width:n,consentType:s,implicitConsentMessage:p,explicitConsentMessage:d,setAttributes:m})=>{var h;return(0,r.createElement)(o.BaseControl,{id:`jetpack-field-consent-${t}`,className:"jetpack-field jetpack-field-consent",label:(0,r.createElement)(r.Fragment,null,"explicit"===s&&(0,r.createElement)("input",{className:"jetpack-field-consent__checkbox",type:"checkbox",disabled:!0}),(0,r.createElement)(l.Z,{required:!1,label:null!==(h={implicit:p,explicit:d}[s])&&void 0!==h?h:"",setAttributes:m,labelFieldName:`${s}ConsentMessage`,placeholder:(0,a.sprintf)(__("Add %s consent message…","jetpack"),s)}),(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Field Settings","jetpack")},(0,r.createElement)(c.Z,{setAttributes:m,width:n}))),(0,r.createElement)(i.InspectorAdvancedControls,null,(0,r.createElement)(u.Z,{setAttributes:m,id:e})),(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Consent Settings","jetpack")},(0,r.createElement)(o.BaseControl,null,(0,r.createElement)(o.SelectControl,{label:__("Permission to email","jetpack"),value:s,options:[{label:__("Mention that you can email","jetpack"),value:"implicit"},{label:__("Add a privacy checkbox","jetpack"),value:"explicit"}],onChange:e=>m({consentType:e})})))))})}))},17523:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(46399),i=n(87997),s=n(14541),l=n(18187),c=n(92705);const __=a.__;t.Z=({setAttributes:e,width:t,id:n,required:a})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(i.ToolbarGroup,null,(0,r.createElement)(i.ToolbarButton,{title:__("Required","jetpack"),icon:(0,s.Z)((0,r.createElement)(i.Path,{d:"M8.23118 8L16 16M8 16L15.7688 8 M6.5054 11.893L17.6567 11.9415M12.0585 17.6563L12 6.5",stroke:"currentColor"})),onClick:()=>{e({required:!a})},className:a?"is-pressed":void 0}))),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:__("Field Settings","jetpack")},(0,r.createElement)(i.ToggleControl,{label:__("Field is required","jetpack"),className:"jetpack-field-label__required",checked:a,onChange:t=>e({required:t}),help:__("Does this field have to be completed for the form to be submitted?","jetpack")}),(0,r.createElement)(l.Z,{setAttributes:e,width:t}))),(0,r.createElement)(o.InspectorAdvancedControls,null,(0,r.createElement)(c.Z,{setAttributes:e,id:n})))},92705:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__;function i({setAttributes:e,id:t}){return(0,r.createElement)(o.TextControl,{label:__("Unique CSS ID","jetpack"),value:t,onChange:t=>e({id:t}),help:__("A unique ID that can be used in CSS or as an anchor.","jetpack")})}},3789:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(46399);const __=a.__;t.Z=({setAttributes:e,label:t,labelFieldName:n,placeholder:a,resetFocus:i,required:s})=>(0,r.createElement)("div",{className:"jetpack-field-label"},(0,r.createElement)(o.RichText,{tagName:"label",value:t,className:"jetpack-field-label__input",onChange:t=>{i&&i(),e(n?{[n]:t}:{label:t})},placeholder:null!=a?a:__("Add label…","jetpack"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic"]}),s&&(0,r.createElement)("span",{className:"required"},__("(required)","jetpack")))},32479:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(51417),s=n(3789),l=n(90698),c=n(17523);const __=a.__;t.Z=(0,i.withInstanceId)((function(e){const{id:t,type:n,instanceId:a,required:i,label:u,setAttributes:p,isSelected:d,width:m,options:h}=e,[f,g]=(0,r.useState)(null),b=(e=null,t=null)=>{const n=h.slice(0);null===t?(n.splice(e,1),e>0&&g(e-1)):(n.splice(e,1,t),g(e)),p({options:n})},v=(e=null)=>{const t=h.slice(0);let n=0;"object"==typeof e?(t.push(""),n=t.length-1):(t.splice(e+1,0,""),n=e+1),g(n),p({options:t})};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BaseControl,{id:`jetpack-field-multiple-${a}`,className:"jetpack-field jetpack-field-multiple",label:(0,r.createElement)(s.Z,{required:i,label:u,setAttributes:p,isSelected:d,resetFocus:()=>g(null)})},(0,r.createElement)("ol",{className:"jetpack-field-multiple__list",id:`jetpack-field-multiple-${a}`},h.map(((e,t)=>(0,r.createElement)(l.Z,{type:n,key:t,option:e,index:t,onChangeOption:b,onAddOption:v,isInFocus:t===f&&d,isSelected:d})))),d&&(0,r.createElement)(o.Button,{className:"jetpack-field-multiple__add-option",icon:"insert",label:__("Insert option","jetpack"),onClick:v},__("Add option","jetpack"))),(0,r.createElement)(c.Z,{id:t,required:i,setAttributes:p,width:m}))}))},26149:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(33163),o=n(87997),i=n(3789),s=n(17523);const __=a.__;function l(e){const{id:t,required:n,label:a,setAttributes:l,placeholder:c,width:u}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"jetpack-field"},(0,r.createElement)(i.Z,{required:n,label:a,setAttributes:l}),(0,r.createElement)(o.Disabled,null,(0,r.createElement)(o.TextareaControl,{placeholder:c,value:c,onChange:e=>l({placeholder:e}),title:__("Set the placeholder text","jetpack")}))),(0,r.createElement)(s.Z,{id:t,required:n,setAttributes:l,width:u}))}},18187:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__;function i({setAttributes:e,width:t}){return(0,r.createElement)(o.BaseControl,{label:__("Field Width","jetpack"),help:__("Adjust the width of the field to include multiple fields on a single line.","jetpack"),className:"jetpack-field-label__width"},(0,r.createElement)(o.ButtonGroup,{"aria-label":__("Field Width","jetpack")},[25,50,75,100].map((n=>(0,r.createElement)(o.Button,{key:n,isSmall:!0,isPrimary:n===t,onClick:()=>e({width:n})},n,"%")))))}},74211:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(78900),a=n.n(r),o=n(63027),i=n(33163),s=n(51417),l=n(87997),c=n(65799),u=n(3789),p=n(17523);const __=i.__;function d(e){const{id:t,type:n,required:r,label:a,setAttributes:i,placeholder:s,width:c}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"jetpack-field"},(0,o.createElement)(u.Z,{required:r,label:a,setAttributes:i}),(0,o.createElement)(l.Disabled,null,(0,o.createElement)(l.TextControl,{type:n,placeholder:s,value:s,onChange:e=>i({placeholder:e}),title:__("Set the placeholder text","jetpack")}))),(0,o.createElement)(p.Z,{id:t,required:r,width:c,setAttributes:i}))}const m=(0,s.createHigherOrderComponent)((e=>t=>{if(t.name.indexOf("jetpack/field")>-1){const n=t.attributes.width?"jetpack-field__width-"+t.attributes.width:"";return(0,o.createElement)(e,a()({},t,{className:n}))}return(0,o.createElement)(e,t)}),"withCustomClassName");(0,c.addFilter)("editor.BlockListBlock","jetpack/contact-form",m)},80530:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(33163),i=n(65707),s=n(9314);const __=o.__,l=()=>{const{insertConsentBlock:e}=(()=>{const e=(0,i.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),{insertBlock:t}=(0,i.useDispatch)("core/block-editor");return{insertConsentBlock:(0,r.useCallback)((async()=>{var n;let r=(null!==(n=e.innerBlocks)&&void 0!==n?n:[]).findIndex((({name:e})=>"jetpack/button"===e));var a;-1===r&&(r=(null!==(a=e.innerBlocks)&&void 0!==a?a:[]).length);const o=await(0,s.createBlock)("jetpack/field-consent");await t(o,r,e.clientId,!1)}),[t,e.clientId,e.innerBlocks])}})();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("You’re already collecting email contacts. Why not make sure you have permission to email them too?","jetpack")),(0,r.createElement)(a.Button,{isSecondary:!0,onClick:e,style:{marginBottom:"1em"}},__("Add email permission request","jetpack")),(0,r.createElement)("br",null))};t.Z=()=>{const e=(0,i.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);return(0,r.useMemo)((()=>(e=>{const t=e.some((({name:e})=>"jetpack/field-email"===e)),n=e.some((({name:e})=>"jetpack/field-consent"===e));return!!t&&!n})(e.innerBlocks)),[e.innerBlocks])?(0,r.createElement)(l,null):null}},61249:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=(n(33163),n(33804)),i=n(6738),s=n(12883),l=n(14865);const c="creative-mail-by-constant-contact/creative-mail-plugin.php",u=({pluginState:e,setPluginState:t})=>{const[n,a]=(0,r.useState)(),[o,i]=(0,r.useState)(!1),c=((e,t,n)=>(0,r.useCallback)(((r,a)=>{e(void 0),t(!0),r(a).then((()=>{n(l.Q.ACTIVE)})).catch((t=>{e(t)})).finally((()=>t(!1)))}),[t,e,n]))(a,i,t);return n?(0,r.createElement)(s.Z,{error:n}):(0,r.createElement)(l.Z,{pluginState:e,onCreativeMailPluginClick:c,isInstalling:o})},p=({isFetchingPlugins:e,hasError:t,pluginState:n,setPluginState:o})=>e?(0,r.createElement)(a.Spinner,null):t?null:(0,r.createElement)(u,{pluginState:n,setPluginState:o});t.Z=()=>{const[e,t]=(0,r.useState)(!0),[n,a]=(0,r.useState)(!1),[s,u]=(0,r.useState)(l.Q.NOT_INSTALLED);return(0,r.useEffect)((()=>{(0,i.uM)().then((e=>{a(!1),(0,o.get)(e,c)&&((0,o.get)(e,[c,"active"])?u(l.Q.ACTIVE):u(l.Q.INSTALLED))})).catch((()=>a(!0))).finally((()=>t(!1)))}),[u,t,a]),(0,r.createElement)(p,{isFetchingPlugins:e,hasError:n,pluginState:s,setPluginState:u})}},12883:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(33163);const __=o.__;t.Z=({error:e})=>(0,r.createElement)(a.Notice,{isDismissible:!1,status:"error"},(0,r.createInterpolateElement)(__("The plugin failed to install. <b /> Please check the <a>plugin information</a> for detailed requirements.","jetpack"),{a:(0,r.createElement)(a.ExternalLink,{href:"https://wordpress.org/plugins/creative-mail-by-constant-contact"}),b:(0,r.createElement)("span",null,e)}))},14865:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(63027),a=n(87997),o=n(33163),i=n(6738),s=n(94696),l=n(33804);const __=o.__,c=Object.freeze({ACTIVE:1,INSTALLED:2,NOT_INSTALLED:3}),u=({isActivating:e})=>{const t=__(e?"Activating…":"Installing…","jetpack");return(0,r.createElement)(a.Button,{isSecondary:!0,icon:(0,r.createElement)(a.Icon,{style:{animation:"rotation 2s infinite linear"},icon:"update"}),disabled:!0,"aria-label":t},t)},p=({installAndActivateCreativeMailPlugin:e,isInstalling:t})=>(0,r.createElement)("p",null,(0,r.createElement)("em",{style:{color:"rgba(38, 46, 57, 0.7)"}},__("To start sending email campaigns, install the Creative Mail plugin for WordPress.","jetpack"),(0,r.createElement)("br",null),t&&(0,r.createElement)(u,null),!t&&(0,r.createElement)(a.Button,{isSecondary:!0,onClick:e},__("Install Creative Mail plugin","jetpack")))),d=({activateCreativeMailPlugin:e,isInstalling:t})=>(0,r.createElement)("p",null,(0,r.createElement)("em",null,__("To start sending email campaigns, activate the Creative Mail plugin for WordPress.","jetpack")),(0,r.createElement)("br",null),t&&(0,r.createElement)(u,{isActivating:!0}),!t&&(0,r.createElement)(a.Button,{isSecondary:!0,onClick:e},__("Activate Creative Mail Plugin","jetpack"))),m=()=>(0,r.createElement)("p",null,(0,r.createElement)("em",null,__("You’re all setup for email marketing with Creative Mail.","jetpack"),(0,r.createElement)("br",null),(0,r.createElement)(a.ExternalLink,{href:`${(0,l.get)((0,s.Z)(),"adminUrl",!1)}admin.php?page=creativemail`},__("Open Creative Mail settings","jetpack"))));t.Z=({pluginState:e,onCreativeMailPluginClick:t,isInstalling:n})=>(0,r.createElement)("div",{"aria-live":"polite"},c.ACTIVE===e&&(0,r.createElement)(m,null),c.INSTALLED===e&&(0,r.createElement)(d,{activateCreativeMailPlugin:()=>t(i.bu,"creative-mail-by-constant-contact/creative-mail-plugin"),isInstalling:n}),c.NOT_INSTALLED===e&&(0,r.createElement)(p,{installAndActivateCreativeMailPlugin:()=>t(i.yX,"creative-mail-by-constant-contact"),isInstalling:n}))},74910:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(33163),i=n(80530),s=n(61249);const __=o.__;t.Z=()=>(0,r.createElement)(a.PanelBody,{title:__("Newsletter Integration","jetpack"),initialOpen:!1},(0,r.createElement)(a.BaseControl,null,(0,r.createElement)(i.Z,null),(0,r.createElement)(s.Z,null)))},90698:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997);const __=a.__;class i extends r.Component{constructor(...e){super(...e),this.onChangeOption=this.onChangeOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.onDeleteOption=this.onDeleteOption.bind(this),this.textInput=(0,r.createRef)()}componentDidMount(){this.props.isInFocus&&this.textInput.current.focus()}componentDidUpdate(){this.props.isInFocus&&this.textInput.current.focus()}onChangeOption(e){this.props.onChangeOption(this.props.index,e.target.value)}onKeyPress(e){return"Enter"===e.key?(this.props.onAddOption(this.props.index),void e.preventDefault()):"Backspace"===e.key&&""===e.target.value?(this.props.onChangeOption(this.props.index),void e.preventDefault()):void 0}onDeleteOption(){this.props.onChangeOption(this.props.index)}render(){const{isSelected:e,option:t,type:n}=this.props;return(0,r.createElement)("li",{className:"jetpack-option"},n&&"select"!==n&&(0,r.createElement)("input",{className:"jetpack-option__type",type:n,disabled:!0}),(0,r.createElement)("input",{type:"text",className:"jetpack-option__input",value:t,placeholder:__("Write option…","jetpack"),onChange:this.onChangeOption,onKeyDown:this.onKeyPress,ref:this.textInput}),e&&(0,r.createElement)(o.Button,{className:"jetpack-option__remove",icon:"trash",label:__("Remove option","jetpack"),onClick:this.onDeleteOption}))}}t.Z=i},80082:function(e,t,n){"use strict";var r=n(33804),a=n(33163),o=n(46399),i=n(9314),s=n(43193);const __=a.__,l=["submit_button_text","has_form_settings_set","submitButtonText","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor","submitButtonClasses","hasFormSettingsSet"];t.Z=[{attributes:{submit_button_text:{type:"string",default:__("Submit","jetpack")},has_form_settings_set:{type:"string",default:null},submitButtonText:{type:"string",default:__("Submit","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},...s.Z},migrate:(e,t)=>{const n=(0,r.omit)(e,l),a={text:e.submitButtonText||e.submit_button_text||__("Submit","jetpack"),backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,customBackgroundColor:e.customBackgroundButtonColor,customTextColor:e.customTextButtonColor};return[n,t.concat((0,i.createBlock)("jetpack/button",{element:"button",...a}))]},isEligible:e=>!(!e.has_form_settings_set&&!e.hasFormSettingsSet),save:o.InnerBlocks.Content}]},2218:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(89105),i=n.n(o),s=n(89453),l=n(33163),c=n(51417),u=n(9314),p=n(65707),d=n(23983),m=n(46399),h=n(87997),f=n(52684),g=n(76885),b=n(81263),v=n(74910),k=n(42975);const __=l.__,y=["jetpack/markdown","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/file","core/html","core/separator","core/spacer","core/subhead","core/table","core/verse","core/video"];t.Z=(0,c.compose)([(0,p.withSelect)(((e,t)=>{const{getBlockType:n,getBlockVariations:r,getDefaultBlockVariation:o}=e("core/blocks"),{getBlocks:i}=e("core/block-editor"),{getEditedPostAttribute:s}=e("core/editor"),{getSite:l,getUser:c}=e("core"),u=i(t.clientId),p=s("author"),d=p&&c(p)&&c(p).email,m=s("title");return{blockType:n&&n(t.name),defaultVariation:o&&o(t.name,"block"),variations:r&&r(t.name,"block"),innerBlocks:u,hasInnerBlocks:u.length>0,siteTitle:(0,a.get)(l&&l(),["title"]),postTitle:m,postAuthorEmail:d}})),(0,p.withDispatch)((e=>{const{replaceInnerBlocks:t,selectBlock:n}=e("core/block-editor");return{replaceInnerBlocks:t,selectBlock:n}})),c.withInstanceId])((function({attributes:e,setAttributes:t,siteTitle:n,postTitle:o,postAuthorEmail:c,hasInnerBlocks:p,replaceInnerBlocks:E,selectBlock:w,clientId:_,instanceId:C,className:S,blockType:j,variations:x,defaultVariation:T}){const{to:N,subject:A,customThankyou:P,customThankyouHeading:I,customThankyouMessage:M,customThankyouRedirect:B,jetpackCRM:R}=e,[L,Z]=(0,r.useState)(!1),D=i()(S,"jetpack-contact-form"),F=e=>(0,a.map)(e,(([e,t,n=[]])=>(0,u.createBlock)(e,t,F(n)))),O=e=>{e.attributes&&t(e.attributes),e.innerBlocks&&E(_,F(e.innerBlocks)),w(_)};(0,r.useEffect)((()=>{p||u.registerBlockVariation||O(g.Z[0])})),(0,r.useEffect)((()=>{if(void 0===N&&c&&t({to:c}),void 0===A&&void 0!==n&&void 0!==o){t({subject:"["+n+"] "+o})}}),[N,c,A,n,o,t]);const z=e=>0!==(e=e.trim()).length&&(!s.validate(e)&&{email:e}),U=e=>{if(0===e.target.value.length)return Z(!1),void t({to:c});const n=e.target.value.split(",").map(z).filter(Boolean);n&&n.length&&Z(n)},$=e=>{Z(!1),t({to:e.trim()})},V=()=>{const e=void 0!==N?N:"",n=void 0!==A?A:"";return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.TextControl,{"aria-describedby":`contact-form-${C}-email-${L&&L.length>0?"error":"help"}`,label:__("Email address to send to","jetpack"),placeholder:__("name@example.com","jetpack"),onKeyDown:e=>{"Enter"===event.key&&(e.preventDefault(),e.stopPropagation())},value:e,onBlur:U,onChange:$,help:__("You can enter multiple email addresses separated by commas.","jetpack")}),(0,r.createElement)(f.Z,{isError:!0,id:`contact-form-${C}-email-error`},(()=>{if(L){if(1===L.length)return L[0]&&L[0].email?(0,l.sprintf)(__("%s is not a valid email address.","jetpack"),L[0].email):L[0];if(2===L.length)return(0,l.sprintf)(__("%1$s and %2$s are not a valid email address.","jetpack"),L[0].email,L[1].email);const e=L.map((e=>e.email));return(0,l.sprintf)(__("%s are not a valid email address.","jetpack"),e.join(", "))}return null})()),(0,r.createElement)(h.TextControl,{label:__("Email subject line","jetpack"),value:n,placeholder:__("Enter a subject","jetpack"),onChange:e=>t({subject:e}),help:__("Choose a subject line that you recognize as an email from your website.","jetpack")}),(0,r.createElement)(h.SelectControl,{label:__("On Submission","jetpack"),value:P,options:[{label:__("Show a summary of submitted fields","jetpack"),value:""},{label:__("Show a custom text message","jetpack"),value:"message"},{label:__("Redirect to another webpage","jetpack"),value:"redirect"}],onChange:e=>t({customThankyou:e})}),"redirect"!==P&&(0,r.createElement)(h.TextControl,{label:__("Message Heading","jetpack"),value:I,placeholder:__("Message Sent","jetpack"),onChange:e=>t({customThankyouHeading:e})}),"message"===P&&(0,r.createElement)(h.TextareaControl,{label:__("Message Text","jetpack"),value:M,placeholder:__("Thank you for your submission!","jetpack"),onChange:e=>t({customThankyouMessage:e})}),"redirect"===P&&(0,r.createElement)(h.BaseControl,{label:__("Redirect Address","jetpack"),id:`contact-form-${C}-thankyou-url`},(0,r.createElement)(m.URLInput,{id:`contact-form-${C}-thankyou-url`,value:B,className:"jetpack-contact-form__thankyou-redirect-url",onChange:e=>t({customThankyouRedirect:e})})))};return!p&&u.registerBlockVariation?(0,r.createElement)("div",{className:D},(0,r.createElement)(m.__experimentalBlockVariationPicker,{icon:(0,a.get)(j,["icon","src"]),label:(0,a.get)(j,["title"]),instructions:__("Please select which type of form you'd like to add, or create your own using the skip option.","jetpack"),variations:x,allowSkip:!0,onSelect:(e=T)=>{O(e)}})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.BlockControls,null,(0,r.createElement)(h.ToolbarGroup,null,(0,r.createElement)(h.ToolbarItem,null,(()=>(0,r.createElement)(h.Dropdown,{position:"bottom right",className:"jetpack-contact-form-settings-selector",contentClassName:"jetpack-contact-form__popover",renderToggle:({isOpen:e,onToggle:t})=>((e,t)=>(0,r.createElement)(h.Button,{className:"components-toolbar__control jetpack-contact-form__toggle",label:__("Edit Form Settings","jetpack"),onClick:t,onKeyDown:n=>{e||n.keyCode!==d.DOWN||(n.preventDefault(),n.stopPropagation(),t())},icon:(0,r.createElement)(h.Icon,{icon:"edit"})}))(e,t),renderContent:()=>V()}))))),(0,r.createElement)(m.InspectorControls,null,(0,r.createElement)(h.PanelBody,{title:__("Form Settings","jetpack")},V()),!(0,k.Wp)()&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(b.Z,{jetpackCRM:R,setAttributes:t}),(0,r.createElement)(v.Z,null))),(0,r.createElement)("div",{className:D},(0,r.createElement)(m.InnerBlocks,{allowedBlocks:y,templateInsertUpdatesSelection:!1})))}))},99228:function(e,t,n){"use strict";n.d(t,{u2:function(){return y},Xd:function(){return w},Nk:function(){return x}});var r=n(63027),a=n(33163),o=n(9314),i=n(87997),s=n(46399),l=n(2218),c=n(43193),u=n(76885),p=n(80082),d=n(87152),m=n(74211),h=n(26149),f=n(80984),g=n(32479),b=n(14541),v=n(32750),k=n(80053);const __=a.__,_x=a._x,y="contact-form",E=(0,b.Z)((0,r.createElement)(i.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),w={title:__("Form","jetpack"),description:__("A simple way to get feedback from folks visiting your site.","jetpack"),icon:{src:E,foreground:(0,v.m)()},keywords:[_x("email","block search term","jetpack"),_x("feedback","block search term","jetpack"),_x("contact form","block search term","jetpack")],supports:{html:!1},attributes:c.Z,edit:l.Z,save:s.InnerBlocks.Content,variations:u.Z,category:"grow",transforms:d.Z,deprecated:p.Z},_={category:"grow",parent:["jetpack/contact-form"],supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""},width:{type:"number",default:100}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-text",e)},{type:"block",blocks:["jetpack/field-name"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-name",e)},{type:"block",blocks:["jetpack/field-email"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-email",e)},{type:"block",blocks:["jetpack/field-url"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-url",e)},{type:"block",blocks:["jetpack/field-date"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-date",e)},{type:"block",blocks:["jetpack/field-telephone"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-telephone",e)},{type:"block",blocks:["jetpack/field-textarea"],isMatch:({options:e})=>!e.length,transform:e=>(0,o.createBlock)("jetpack/field-textarea",e)},{type:"block",blocks:["jetpack/field-checkbox-multiple"],isMatch:({options:e})=>1<=e.length,transform:e=>(0,o.createBlock)("jetpack/field-checkbox-multiple",e)},{type:"block",blocks:["jetpack/field-radio"],isMatch:({options:e})=>1<=e.length,transform:e=>(0,o.createBlock)("jetpack/field-radio",e)},{type:"block",blocks:["jetpack/field-select"],isMatch:({options:e})=>1<=e.length,transform:e=>(0,o.createBlock)("jetpack/field-select",e)},{type:"block",blocks:["jetpack/field-consent"],isMatch:({options:e})=>1<=e.length,transform:e=>(0,o.createBlock)("jetpack/field-consent",e)}]},save:()=>null,example:{}},C=({attributes:e,name:t})=>null===e.label?(0,o.getBlockType)(t).title:e.label,S=e=>t=>(0,r.createElement)(m.Z,{type:e,label:C(t),required:t.attributes.required,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id,width:t.attributes.width}),j=e=>t=>(0,r.createElement)(g.Z,{label:C(t),required:t.attributes.required,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id,width:t.attributes.width}),x=[{name:"field-text",settings:{..._,title:__("Text","jetpack"),description:__("When you need just a small amount of text, add a text input.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),edit:S("text")}},{name:"field-name",settings:{..._,title:__("Name","jetpack"),description:__("Introductions are important. Add an input for folks to add their name.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),edit:S("text")}},{name:"field-email",settings:{..._,title:__("Email","jetpack"),keywords:[__("e-mail","jetpack"),__("mail","jetpack"),"email"],description:__("Want to reply to folks? Add an email address input.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),edit:S("email")}},{name:"field-url",settings:{..._,title:__("Website","jetpack"),keywords:["url",__("internet page","jetpack"),"link"],description:__("Add an address input for a website.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})),edit:S("url")}},{name:"field-date",settings:{..._,title:__("Date Picker","jetpack"),keywords:[__("Calendar","jetpack"),_x("day month year","block search term","jetpack")],description:__("The best way to set a date. Add a date picker.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z"})),edit:S("text")}},{name:"field-telephone",settings:{..._,title:__("Phone Number","jetpack"),keywords:[__("Phone","jetpack"),__("Cellular phone","jetpack"),__("Mobile","jetpack")],description:__("Add a phone number input.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),edit:S("tel")}},{name:"field-textarea",settings:{..._,title:__("Message","jetpack"),keywords:[__("Textarea","jetpack"),"textarea",__("Multiline text","jetpack")],description:__("Let folks speak their mind. This text box is great for longer responses.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),edit:e=>(0,r.createElement)(h.Z,{label:C(e),required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width})}},{name:"field-checkbox",settings:{..._,title:__("Checkbox","jetpack"),keywords:[__("Confirm","jetpack"),__("Accept","jetpack")],description:__("Add a single checkbox.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})),edit:e=>(0,r.createElement)(f.Z,{label:e.attributes.label,required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id,width:e.attributes.width}),attributes:{..._.attributes,label:{type:"string",default:""}}}},{name:"field-consent",settings:{..._,title:__("Consent","jetpack"),keywords:[__("Consent","jetpack")],description:__("Ask for consent","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"m81 370h142v40h-142zm0-39h142v-40h-142zm0-79h245v-40h-245zm378 260h-40c0-40.253906-32.746094-73-73-73s-73 32.746094-73 73h-40c0-42.085938 23.128906-78.867188 57.34375-98.3125-11.40625-13.023438-18.34375-30.054688-18.34375-48.6875 0-40.804688 33.195312-74 74-74s74 33.195312 74 74c0 18.632812-6.9375 35.664062-18.34375 48.6875 34.214844 19.445312 57.34375 56.226562 57.34375 98.3125zm-113-113c18.746094 0 34-15.253906 34-34s-15.253906-34-34-34-34 15.253906-34 34 15.253906 34 34 34zm-286 73h138.316406c-3.460937 12.757812-5.316406 26.164062-5.316406 40h-133c-33.085938 0-60-26.914062-60-60v-392c0-33.085938 26.914062-60 60-60h203.757812l142.132813 142.855469v125.210937c-12.042969-7.476562-25.453125-12.765625-39.890625-15.324218v-81.632813h-71.109375c-33.085937 0-60-26.914063-60-60v-71.109375h-174.890625c-11.027344 0-20 8.972656-20 20v392c0 11.027344 8.972656 20 20 20zm234.890625-340.890625h42.972656l-62.972656-63.234375v43.234375c0 11.03125 8.96875 20 20 20zm0 0"}),24,25,"-26 0 512 512"),attributes:{..._.attributes,label:{type:"string",default:__("Consent","jetpack")},consentType:{type:"string",default:"implicit"},implicitConsentMessage:{type:"string",default:__("By submitting your information, you're giving us permission to email you. You may unsubscribe at any time.","jetpack")},explicitConsentMessage:{type:"string",default:__("Can we send you an email from time to time?","jetpack")}},edit:({attributes:e,isSelected:t,setAttributes:n})=>{const{id:a,width:o,consentType:i,implicitConsentMessage:s,explicitConsentMessage:l}=e;return(0,r.createElement)(k.Z,{id:a,isSelected:t,width:o,consentType:i,implicitConsentMessage:s,explicitConsentMessage:l,setAttributes:n})}}},{name:"field-checkbox-multiple",settings:{..._,title:__("Checkbox Group","jetpack"),keywords:[__("Choose Multiple","jetpack"),__("Option","jetpack")],description:__("People love options. Add several checkbox items.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"})),edit:j("checkbox"),attributes:{..._.attributes,label:{type:"string",default:"Choose several"}}}},{name:"field-radio",settings:{..._,title:__("Radio","jetpack"),keywords:[__("Choose","jetpack"),__("Select","jetpack"),__("Option","jetpack")],description:__("Inspired by radios, only one radio item can be selected at a time. Add several radio button items.","jetpack"),icon:(0,b.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}))),edit:j("radio"),attributes:{..._.attributes,label:{type:"string",default:"Choose one"}}}},{name:"field-select",settings:{..._,title:__("Select","jetpack"),keywords:[__("Choose","jetpack"),__("Dropdown","jetpack"),__("Option","jetpack")],description:__("Compact, but powerful. Add a select box with several items.","jetpack"),icon:(0,b.Z)((0,r.createElement)(i.Path,{fill:(0,v.m)(),d:"M3 17h18v2H3zm16-5v1H5v-1h14m2-2H3v5h18v-5zM3 6h18v2H3z"})),edit:j("select"),attributes:{..._.attributes,label:{type:"string",default:"Select one"}}}}]},87152:function(e,t,n){"use strict";var r=n(33804),a=n(9314),o=n(33163);const __=o.__,i=(e,t,n)=>{const r=n.match(new RegExp(`\\[${e}[^\\]]* ${t}="([^"]*)"`,"im"));if(r&&r.length)return r[1];const a=n.match(new RegExp(`\\[${e}[^\\]]* ${t}='([^']*)'`,"im"));if(a&&a.length)return a[1];const o=n.match(new RegExp(`\\[${e}[^\\]]* ${t}=([^\\s]*)\\s`,"im"));return!(!o||!o.length)&&o[1]},s={root:{},innerBlocks:[]};t.Z={from:[{type:"raw",priority:1,isMatch:e=>!("P"!==e.nodeName||!(/\[contact-form(\s.*?)?\](?:([^\[]+)?)?/g.test(e.textContent)||/\[contact-field(\s.*?)?\](?:([^\[]+)?)?/g.test(e.textContent)||/\[\/contact-form]/g.test(e.textContent))),transform:e=>{const t=e.textContent.replace("<br>","");if(t.includes("[contact-form")&&(s.root={},s.innerBlocks=[],s.root=(e=>{const t={to:i("contact-form","to",e),subject:i("contact-form","subject",e),submitButtonText:i("contact-form","submit_button_text",e)};return{blockName:"jetpack/contact-form",attrs:(0,r.pickBy)(t,r.identity)}})(t)),t.includes("[contact-field")){const e=t.match(/(\[contact-field[\s\S]*?\/?])/g);e&&e.length>0&&e.forEach((e=>{s.innerBlocks.push((e=>{const t={label:i("contact-field","label",e),placeholder:i("contact-field","placeholder",e),required:i("contact-field","required",e),options:i("contact-field","options",e)},n=(e=>{const t={text:"jetpack/field-text",url:"jetpack/field-text",textarea:"jetpack/field-textarea",radio:"jetpack/field-radio",checkbox:"jetpack/field-checkbox","checkbox-multiple":"jetpack/field-checkbox-multiple",select:"jetpack/field-select",email:"jetpack/field-email",name:"jetpack/field-name",default:"jetpack/field-text"};return t[e]?t[e]:t.default})(i("contact-field","type",e));return t.options&&(t.options=t.options.split(",")),(0,a.createBlock)(n,(0,r.pickBy)(t,r.identity))})(e))}))}if(t.includes("[/contact-form]")){s.innerBlocks.push((0,a.createBlock)("jetpack/button",{element:"button",text:s.root.attrs.submitButtonText||__("Contact Us","jetpack")}));return(0,a.createBlock)(s.root.blockName,s.root.attrs,s.innerBlocks)}return!1}}]}},76885:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(33163),i=n(87997),s=n(42975),l=n(14541),c=n(32750);const __=o.__,u=(0,a.compact)([{name:"contact-form",title:__("Contact Form","jetpack"),description:__("Add a contact form to your page.","jetpack"),icon:(0,l.Z)((0,r.createElement)(i.Path,{fill:(0,c.m)(),d:"M21.99 8c0-.72-.37-1.35-.94-1.7l-8.04-4.71c-.62-.37-1.4-.37-2.02 0L2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zm-11.05 4.34l-7.2-4.5 7.25-4.25c.62-.37 1.4-.37 2.02 0l7.25 4.25-7.2 4.5c-.65.4-1.47.4-2.12 0z"}),48,48,"-4 -4 32 32"),innerBlocks:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-textarea",{}],["jetpack/button",{text:__("Contact Us","jetpack"),element:"button"}]]},!(0,s.Wp)()&&{name:"newsletter-form",title:__("Newsletter Sign-up","jetpack"),description:__("A simple way to collect information from folks visiting your site.","jetpack"),icon:(0,l.Z)((0,r.createElement)(i.Path,{fill:(0,c.m)(),d:"M37.9999 7.59998C49.3999 7.59998 68.3999 26.6 68.3999 26.6V68.4H7.59985V26.6C7.59985 26.6 26.5999 7.59998 37.9999 7.59998ZM64.5999 63.536L50.4259 52.44L64.5999 41.8L62.9659 40.394L54.3779 45.334L55.2899 28.956L21.9639 26.98L20.2159 44.232L12.6539 40.622L11.3999 41.8L25.5739 52.44L12.5019 63.27L14.0219 64.904L37.9999 49.4L62.8139 65.17L64.5999 63.536Z"}),48,48,"-6 -6 92 92"),innerBlocks:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-consent",{}],["jetpack/button",{text:__("Subscribe","jetpack"),element:"button"}]]},{name:"rsvp-form",title:__("RSVP Form","jetpack"),description:__("Add an RSVP form to your page","jetpack"),icon:(0,l.Z)((0,r.createElement)(i.Path,{fill:(0,c.m)(),d:"M10 9V7.41c0-.89-1.08-1.34-1.71-.71L3.7 11.29c-.39.39-.39 1.02 0 1.41l4.59 4.59c.63.63 1.71.19 1.71-.7V14.9c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"}),48,48,"-4 -3 32 32"),innerBlocks:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-radio",{label:__("Attending?","jetpack"),required:!0,options:[__("Yes","jetpack"),__("No","jetpack")]}],["jetpack/field-textarea",{label:__("Other Details","jetpack")}],["jetpack/button",{text:__("Send RSVP","jetpack"),element:"button"}]],attributes:{subject:__("A new RSVP from your website","jetpack")}},{name:"registration-form",title:__("Registration Form","jetpack"),description:__("Add a Registration form to your page","jetpack"),icon:(0,l.Z)((0,r.createElement)(i.Path,{fill:(0,c.m)(),d:"M11.34 15.02c.39.39 1.02.39 1.41 0l6.36-6.36c.39-.39.39-1.02 0-1.41L14.16 2.3c-.38-.4-1.01-.4-1.4-.01L6.39 8.66c-.39.39-.39 1.02 0 1.41l4.95 4.95zm2.12-10.61L17 7.95l-4.95 4.95-3.54-3.54 4.95-4.95zm6.95 11l-2.12-2.12c-.18-.18-.44-.29-.7-.29h-.27l-2 2h1.91L19 17H5l1.78-2h2.05l-2-2h-.42c-.27 0-.52.11-.71.29l-2.12 2.12c-.37.38-.58.89-.58 1.42V20c0 1.1.9 2 2 2h14c1.1 0 2-.89 2-2v-3.17c0-.53-.21-1.04-.59-1.42z"}),48,48,"-4 -3 32 32"),innerBlocks:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-telephone",{label:__("Phone Number","jetpack")}],["jetpack/field-select",{label:__("How did you hear about us?","jetpack"),options:[__("Search Engine","jetpack"),__("Social Media","jetpack"),__("TV","jetpack"),__("Radio","jetpack"),__("Friend or Family","jetpack")]}],["jetpack/field-textarea",{label:__("Other Details","jetpack")}],["jetpack/button",{text:__("Send","jetpack"),element:"button"}]],attributes:{subject:__("A new registration from your website","jetpack")}},{name:"appointment-form",title:__("Appointment Form","jetpack"),description:__("Add an Appointment booking form to your page","jetpack"),icon:(0,l.Z)((0,r.createElement)(i.Path,{fill:(0,c.m)(),d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V8c0-.55-.45-1-1-1s-1 .45-1 1v2H2c-.55 0-1 .45-1 1s.45 1 1 1h2v2c0 .55.45 1 1 1s1-.45 1-1v-2h2c.55 0 1-.45 1-1s-.45-1-1-1H6zm9 4c-2.67 0-8 1.34-8 4v1c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-1c0-2.66-5.33-4-8-4z"}),48,48,"-4 -3 32 32"),innerBlocks:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-telephone",{required:!0}],["jetpack/field-date",{label:__("Date","jetpack"),required:!0}],["jetpack/field-radio",{label:__("Time","jetpack"),required:!0,options:[__("Morning","jetpack"),__("Afternoon","jetpack")]}],["jetpack/field-textarea",{label:__("Notes","jetpack")}],["jetpack/button",{text:__("Book Appointment","jetpack"),element:"button"}]],attributes:{subject:__("A new appointment booked from your website","jetpack")}},{name:"feedback-form",title:__("Feedback Form","jetpack"),description:__("Add a Feedback form to your page","jetpack"),icon:(0,l.Z)((0,r.createElement)(i.Path,{fill:(0,c.m)(),d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.03 0 3.8-1.11 4.75-2.75.19-.33-.05-.75-.44-.75H7.69c-.38 0-.63.42-.44.75.95 1.64 2.72 2.75 4.75 2.75z"}),48,48,"-4 -3 32 32"),innerBlocks:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-radio",{label:__("Please rate our website","jetpack"),required:!0,options:[__("1 - Very Bad","jetpack"),__("2 - Poor","jetpack"),__("3 - Average","jetpack"),__("4 - Good","jetpack"),__("5 - Excellent","jetpack")]}],["jetpack/field-textarea",{label:__("How could we improve?","jetpack")}],["jetpack/button",{text:__("Send Feedback","jetpack"),element:"button"}]],attributes:{subject:__("New feedback received from your website","jetpack")}}]);t.Z=u},72116:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33163),s=n(46399),l=n(87997),c=n(28131);const __=i.__;class u extends r.Component{constructor(...e){super(...e),this.preventEnterKey=this.preventEnterKey.bind(this)}preventEnterKey(e){"Enter"!==e.key||e.preventDefault()}render(){const{attributes:{address:e,addressLine2:t,addressLine3:n,city:a,region:i,postal:u,country:p,linkToGoogleMaps:d},isSelected:m,setAttributes:h}=this.props,f=[e,t,n,a,i,u,p].some((e=>""!==e)),g=o()({"jetpack-address-block":!0,"is-selected":m}),b=(0,r.createElement)(l.ToggleControl,{label:__("Link address to Google Maps","jetpack"),checked:d,onChange:e=>h({linkToGoogleMaps:e})});return(0,r.createElement)("div",{className:g},!m&&f&&(0,c.Z)(this.props),(m||!f)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.PlainText,{value:e,placeholder:__("Street Address","jetpack"),"aria-label":__("Street Address","jetpack"),onChange:e=>h({address:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(s.PlainText,{value:t,placeholder:__("Address Line 2","jetpack"),"aria-label":__("Address Line 2","jetpack"),onChange:e=>h({addressLine2:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(s.PlainText,{value:n,placeholder:__("Address Line 3","jetpack"),"aria-label":__("Address Line 3","jetpack"),onChange:e=>h({addressLine3:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(s.PlainText,{value:a,placeholder:__("City","jetpack"),"aria-label":__("City","jetpack"),onChange:e=>h({city:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(s.PlainText,{value:i,placeholder:__("State/Province/Region","jetpack"),"aria-label":__("State/Province/Region","jetpack"),onChange:e=>h({region:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(s.PlainText,{value:u,placeholder:__("Postal/Zip Code","jetpack"),"aria-label":__("Postal/Zip Code","jetpack"),onChange:e=>h({postal:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(s.PlainText,{value:p,placeholder:__("Country","jetpack"),"aria-label":__("Country","jetpack"),onChange:e=>h({country:e}),onKeyDown:this.preventEnterKey}),b))}}t.Z=u},85442:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(63027),a=n(33163),o=n(87997),i=n(72116),s=n(28131),l=n(14541);const __=a.__,_x=a._x,c="address",u={title:__("Address","jetpack"),description:__("Lets you add a physical address with Schema markup.","jetpack"),keywords:[_x("location","block search term","jetpack"),_x("direction","block search term","jetpack"),_x("place","block search term","jetpack")],icon:(0,l.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),(0,r.createElement)(o.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"grow",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:i.Z,save:s.Z}},28131:function(e,t,n){"use strict";var r=n(63027),a=n(33163);const __=a.__,o=({attributes:{address:e,addressLine2:t,addressLine3:n,city:a,region:o,postal:i,country:s}})=>(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},e),t&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},t),n&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},n),a&&!(o||i)&&(0,r.createElement)("div",{className:"jetpack-address__city"},a),a&&(o||i)&&(0,r.createElement)("div",null,[(0,r.createElement)("span",{className:"jetpack-address__city"},a),", ",(0,r.createElement)("span",{className:"jetpack-address__region"},o)," ",(0,r.createElement)("span",{className:"jetpack-address__postal"},i)]),!a&&(o||i)&&(0,r.createElement)("div",null,[(0,r.createElement)("span",{className:"jetpack-address__region"},o)," ",(0,r.createElement)("span",{className:"jetpack-address__postal"},i)]),s&&(0,r.createElement)("div",{className:"jetpack-address__country"},s)),i=({attributes:{address:e,addressLine2:t,addressLine3:n,city:r,region:a,postal:o,country:i}})=>{let s=a?`+${a},`:"";s=o?`${s}+${o}`:s;return`https://www.google.com/maps/search/${e?`${e},`:""}${t?`${t},`:""}${n?`${n},`:""}${r?`+${r},`:""}${s}${i?`+${i}`:""}`.replace(" ","+")};t.Z=e=>(({address:e,addressLine2:t,addressLine3:n,city:r,region:a,postal:o,country:i})=>[e,t,n,r,a,o,i].some((e=>""!==e)))(e.attributes)&&(0,r.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&(0,r.createElement)("a",{href:i(e),target:"_blank",rel:"noopener noreferrer",title:__("Open address in Google Maps","jetpack")},(0,r.createElement)(o,e)),!e.attributes.linkToGoogleMaps&&(0,r.createElement)(o,e))},74609:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(89105),i=n.n(o);const s=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],l=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]];t.Z=e=>{const{isSelected:t}=e;return(0,r.createElement)("div",{className:i()({"jetpack-contact-info-block":!0,"is-selected":t})},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:s,templateLock:!1,template:l}))}},97729:function(e,t,n){"use strict";var r=n(17214),a=n(26151),o=n(33163);const __=o.__;t.Z=e=>{const{setAttributes:t}=e;return(0,a.Z)("email",e,__("Email","jetpack"),r.Z,(e=>t({email:e})))}},30120:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(63027),a=n(33163),o=n(87997),i=n(97729),s=n(14541),l=n(17214);const __=a.__,_x=a._x,c="email",u={title:__("Email Address","jetpack"),description:__("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",_x("message","block search term","jetpack")],icon:(0,s.Z)((0,r.createElement)(o.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"grow",attributes:{email:{type:"string",default:""}},edit:i.Z,save:l.Z,parent:["jetpack/contact-info"]}},17214:function(e,t,n){"use strict";var r=n(63027),a=n(89453);t.Z=({attributes:{email:e},className:t})=>e&&(0,r.createElement)("div",{className:t},e.split(/(\s+)/).map(((e,t)=>{const n=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&a.validate(n)?e===n?(0,r.createElement)("a",{href:`mailto:${e}`,key:t},e):(0,r.createElement)(r.Fragment,{key:t},(0,r.createElement)("a",{href:`mailto:${e}`,key:t},n),(0,r.createElement)(r.Fragment,null,e.slice(-(e.length-n.length)))):(0,r.createElement)(r.Fragment,{key:t},e)})))},39297:function(e,t,n){"use strict";n.d(t,{u2:function(){return m},Xd:function(){return f},Nk:function(){return g}});var r=n(63027),a=n(33163),o=n(46399),i=n(87997),s=n(74609),l=n(14541),c=n(85442),u=n(30120),p=n(35518),d=n(32750);const __=a.__,_x=a._x,m="contact-info",h=(0,l.Z)((0,r.createElement)(i.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z"})),f={title:__("Contact Info","jetpack"),description:__("Lets you add an email address, phone number, and physical address with improved markup for better SEO results.","jetpack"),keywords:[_x("email","block search term","jetpack"),_x("phone","block search term","jetpack"),_x("address","block search term","jetpack")],icon:{src:h,foreground:(0,d.m)()},category:"grow",supports:{align:["wide","full"],html:!1},attributes:{},edit:s.Z,save:({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(o.InnerBlocks.Content,null)),example:{attributes:{},innerBlocks:[{name:"jetpack/email",attributes:{email:"hello@yourjetpack.blog"}},{name:"jetpack/phone",attributes:{phone:"123-456-7890"}},{name:"jetpack/address",attributes:{address:"987 Photon Drive",city:"Speedyville",region:"CA",postal:"12345",country:"USA"}}]}},g=[{name:c.u,settings:c.X},{name:u.u,settings:u.X},{name:p.u,settings:p.X}]},68886:function(e,t,n){"use strict";var r=n(33163),a=n(96131),o=n(26151);const __=r.__;t.Z=e=>{const{setAttributes:t}=e;return(0,o.Z)("phone",e,__("Phone number","jetpack"),a.Z,(e=>t({phone:e})))}},35518:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(63027),a=n(33163),o=n(87997),i=n(68886),s=n(14541),l=n(96131);const __=a.__,_x=a._x,c="phone",u={title:__("Phone Number","jetpack"),description:__("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[_x("mobile","block search term","jetpack"),_x("telephone","block search term","jetpack"),_x("cell","block search term","jetpack")],icon:(0,s.Z)((0,r.createElement)(o.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"grow",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:i.Z,save:l.Z}},96131:function(e,t,n){"use strict";var r=n(63027);t.Z=({attributes:{phone:e},className:t})=>e&&(0,r.createElement)("div",{className:t},function(e){const t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;const n=e.indexOf(t[0]);let a=n?e.substring(n-1):e,o=n?e.substring(0,n):"",i=a.replace(/\D/g,"");return/[0-9/+/(]/.test(a[0])?(o=o.slice(0,-1),"+"===a[0]&&(i="+"+i)):a=a.substring(1),[o.trim()?(0,r.createElement)("span",{key:"phonePrefix",className:"phone-prefix"},o):null,(0,r.createElement)("a",{key:"phoneNumber",href:`tel:${i}`},a)]}(e))},59081:function(e,t){"use strict";t.Z={participants:{type:"array"},showTimestamps:{type:"boolean",default:!1},skipUpload:{type:"boolean",default:!1}}},20715:function(e,t,n){"use strict";var r=n(63027);t.Z=(0,r.createContext)()},36760:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(63027),a=n(87997),o=n(33163),i=n(32548);const __=o.__,_x=o._x;function s({className:e,participants:t,onDelete:n}){return(0,r.createElement)("div",{className:`${e}__participant-control`},t.map((({label:t,slug:o})=>(0,r.createElement)("div",{key:`${o}-key`,className:`${e}__participant`},(0,r.createElement)("div",{className:`${e}__participant-label`},(0,i.iT)(t)),(0,r.createElement)(a.Button,{className:`${e}__remove-participant`,label:__("Remove participant","jetpack"),onClick:()=>n(o),isTertiary:!0,isSmall:!0},_x("Remove","verb: remove item from a list","jetpack"))))))}function l({participants:e,className:t,onChange:n,onDelete:a}){return(0,r.createElement)(s,{className:t,participants:e,onChange:n,onDelete:a})}},26490:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(46399),i=n(87997),s=n(65707),l=n(36760),c=n(20715),u=n(45395),p=n(76672),d=n(32548);const __=a.__,m=[["jetpack/dialogue"]];t.Z=(0,i.withNotices)((function({className:e,attributes:t,setAttributes:n,noticeUI:a,clientId:h,noticeOperations:f}){const{participants:g=[],showTimestamps:b,skipUpload:v}=t,[k,y]=(0,r.useState)(""),{insertBlocks:E}=(0,s.useDispatch)("core/block-editor"),w=(0,r.useCallback)((e=>{n({participants:g.map((t=>t.slug!==e.slug?t:{...t,...e}))})}),[n,g]),_=(0,r.useCallback)((function({label:e,slug:t}){if(!e)return;const r=e.trim();if(null==r||!r.length)return;const a=(0,d.tQ)(g,r);if(a)return a;const o={slug:t||"speaker-"+ +new Date,label:r};return n({participants:[...g,o]}),o}),[g,n]),C=(0,r.useCallback)(n,[n]),S=(0,r.useMemo)((()=>({setAttributes:C,updateParticipants:w,addNewParticipant:_,attributes:{showTimestamps:b}})),[_,C,b,w]);function j(e){f.removeAllNotices(),f.createErrorNotice(e),y(!1)}const x="wp-block-jetpack-conversation";return null!=g&&g.length||v?(0,r.createElement)(c.Z.Provider,{value:S},(0,r.createElement)("div",{className:e},(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.Panel,null,(0,r.createElement)(i.PanelBody,{title:__("Speakers","jetpack"),className:`${x}__participants`},(0,r.createElement)(l.C,{className:x,participants:g,onDelete:function(e){n({participants:g.filter((({slug:t})=>t!==e))})}})))),(0,r.createElement)(o.InnerBlocks,{template:m}))):(0,r.createElement)(i.Placeholder,{label:__("Conversation","jetpack"),instructions:(0,r.createElement)(r.Fragment,null,__("Upload a transcript file or create a conversation with blank content.","jetpack"),(0,r.createElement)("div",null,(0,r.createElement)("em",null,__("Accepted file formats:","jetpack"),(0,r.createElement)("strong",null," ",d.bZ),"."))),icon:(0,r.createElement)(o.BlockIcon,{icon:u.Xu}),notices:a},(0,r.createElement)("div",{className:`${x}__placeholder`},(0,r.createElement)(i.FormFileUpload,{multiple:!1,isLarge:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:function(e){var t,r;const a=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!a)return j(__("Transcript file not found.","jetpack"));if(null!=a&&a.size&&a.size<=0||null==a||!a.size||a.size>d.$n)return j(__("Invalid transcript file size.","jetpack"));if(null!=a&&null!==(r=a.type)&&void 0!==r&&r.length&&"text/plain"!==a.type)return j(__("Invalid transcript file type.","jetpack"));const o=(0,d.Y7)(null==a?void 0:a.name);if(!(0,d.P8)(o))return j(__("Invalid transcript file extension.","jetpack"));y(!0),(0,d.Bt)(a,(function({conversation:e,dialogues:t},r){if(r)return j(r);n({participants:e.speakers,skipUpload:!(null!=e&&e.length)});const a=t.map((e=>e.slug||e.timestamp?["jetpack/dialogue",e]:["core/paragraph",e])),o=(0,p.Z)(a);E(o,0,h),y(!1)}))},accept:d.bZ,isPrimary:!0,title:`${__("Accepted file formats:","jetpack")} ${d.bZ}`,disabled:k},__("Upload transcript","jetpack")),(0,r.createElement)(i.Button,{isTertiary:!0,disabled:k,onClick:()=>n({skipUpload:!0})},__("Skip upload","jetpack"))))}))},4016:function(e,t,n){"use strict";var r=n(33163);const __=r.__,a=[{slug:"participant-0",label:"Rosalind"},{slug:"participant-1",label:"Orlando"}],o=[{name:"core/heading",attributes:{content:__("Shakespeare text","jetpack"),level:4}},{name:"jetpack/dialogue",attributes:{...a[0],content:__("O, my dear Orlando, how it grieves me to see thee wear thy heart in a scarf!","jetpack"),timestamp:"00:10"}},{name:"jetpack/dialogue",attributes:{...a[1],content:__("It is my arm.","jetpack"),timestamp:"00:15"}},{name:"jetpack/dialogue",attributes:{...a[0],content:__("I thought thy heart had been wounded with the claws of a lion.","jetpack"),timestamp:"00:32"}},{name:"jetpack/dialogue",attributes:{...a[1],content:__("Wounded it is, but with the eyes of a lady.","jetpack"),timestamp:"00:37"}}];t.Z={attributes:{participants:a,showTimestamps:!0,className:"is-style-row"},innerBlocks:o}},67528:function(e,t,n){"use strict";n.d(t,{u2:function(){return p},Xd:function(){return d}});var r=n(33163),a=n(9314),o=n(45395),i=n(76672),s=n(59081),l=n(26490),c=n(31750),u=n(4016);const __=r.__,_x=r._x,p="conversation",d={title:__("Conversation","jetpack"),description:__("Create a transcription of a speech or conversation, with any number of participants, using dialogue blocks.","jetpack"),icon:o.Xu,category:"layout",keywords:[_x("conversation","block search term","jetpack"),_x("transcription","block search term","jetpack"),_x("dialogue","block search term","jetpack"),_x("speaker","block search term","jetpack")],supports:{align:!0},attributes:s.Z,example:u.Z,styles:[{name:"row",label:__("Row","jetpack"),isDefault:!0},{name:"column",label:__("Column","jetpack")}],edit:l.Z,save:c.Z,providesContext:{"jetpack/conversation-participants":"participants","jetpack/conversation-showTimestamps":"showTimestamps"},transforms:{from:[{type:"block",blocks:["core/paragraph"],isMultiBlock:!0,transform:e=>{const t=e.map((({content:e})=>["jetpack/dialogue",{content:e}]));return(0,a.createBlock)("jetpack/conversation",{},(0,i.Z)(t))}}]}}},31750:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(89105),o=n.n(a),i=n(46399);function s({attributes:e}){return(0,r.createElement)("div",{className:o()("wp-block-jetpack-conversation",{"show-timestamps":null==e?void 0:e.showTimestamp})},(0,r.createElement)(i.InnerBlocks.Content,null))}},32548:function(e,t,n){"use strict";n.d(t,{ly:function(){return i},tQ:function(){return s},iT:function(){return l},Y7:function(){return c},bZ:function(){return m},$n:function(){return h},P8:function(){return k},Bt:function(){return y}});var r=n(42869),a=n(67950),o=n(33163);const __=o.__;function i(e,t){const n=e.filter((({slug:e})=>e===t));return null!=n&&n.length?n[0]:null}function s(e,t){const n=e.filter((({label:e})=>(null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase())));return null!=n&&n.length?n[0]:null}function l(e,t=!1){var n;const o=null===(n=(0,r.getTextContent)((0,r.create)({html:e})))||void 0===n?void 0:n.trim();return t?(0,a.escapeHTML)(o):o}function c(e){return`.${e.substr(e.lastIndexOf(".")+1)}`}const u=".srt",p=".txt",d=[u,p,".vtt",".sbv"],m=d.join(", "),h=1e5,f=/(.*[^\s])\s{1,}(\d{1,2}(?::\d{1,2}?)+)\s+\n([\s\S]*?(?=\n{2}|$))/,g=/(?:(.*[^\s]):\s+)?(?:\[(\d+(?::\d+)*?(?:\.\d*)?)])?(?:[\s])*?([^\s].+?(?:\n+|$))/,b=[{name:"otter",re:new RegExp(f,"gm"),testRE:new RegExp(f,"g")},{name:"sonix",re:new RegExp(g,"gm"),testRE:new RegExp(g,"g")}],v=/(\d+)\n([\d:,]+)\s+-{2}>\s+([\d:,]+)\n([\s\S]*?(?=\n{2}|$))/gm;function k(e){return d.indexOf(e)>=0}function y(e,t){const n=c(null==e?void 0:e.name),r=new FileReader;r.addEventListener("load",(e=>{var r;const a=e.target.result?e.target.result.replace(/\r\n|\r|\n/g,"\n"):null;if(null==a||!a.length)return t({},__("Transcript content is empty","jetpack"));let o={};if(n&&n!==p&&n===u&&(o=function(e){const t={conversation:{speakers:[]},dialogues:[]};let n;for(;null!==(n=v.exec(e));)t.dialogues.push({timestamp:n[2],content:n[4]});return t}(a)),n===p&&(o=function(e){const t={dialogues:[],conversation:{speakers:[]}},n=b.filter((({testRE:t})=>t.test(e)));if(null==n||!n.length)return t;const r=n[0];let a;for(;null!=(a=r.re.exec(e));){var o,i,s;const e=a[(null==r||null===(o=r.indexes)||void 0===o?void 0:o.speaker)||1]||"";null!=e&&e.length&&t.conversation.speakers.indexOf(e)<0&&t.conversation.speakers.push(e);const n={content:a[(null==r||null===(i=r.indexes)||void 0===i?void 0:i.content)||3],timestamp:a[(null==r||null===(s=r.indexes)||void 0===s?void 0:s.timestamp)||2],showTimestamp:!0};null!=e&&e.length&&(n.label=e,n.slug=`speaker-${t.conversation.speakers.indexOf(e)}`),t.dialogues.push(n)}return t.conversation.speakers=t.conversation.speakers.map(((e,t)=>({label:e,slug:`speaker-${t}`}))),t}(a)),null===(r=o.dialogues)||void 0===r||!r.length)return t({},__("Transcript format not supported","jetpack"));t(o)})),r.readAsText(e)}},78186:function(e,t){"use strict";t.Z={label:{type:"string",source:"html",selector:".wp-block-jetpack-dialogue__participant"},slug:{type:"string"},timestamp:{type:"string",default:"00:00"},showTimestamp:{type:"boolean",default:!1},placeholder:{type:"string"},content:{type:"string",source:"html",selector:".wp-block-jetpack-dialogue__content"}}},53482:function(e,t,n){"use strict";n.d(t,{Ev:function(){return m},v$:function(){return g}});n(78900);var r=n(63027),a=n(89105),o=n.n(a),i=n(87997),s=n(33163),l=n(46399),c=n(32548);const __=s.__,u="is-participant-adding",p="is-participant-selecting",d="was-participant-selected";function m({participants:e,slug:t,onSelect:n}){return(0,r.createElement)(i.SelectControl,{label:__("Speaker name","jetpack"),value:t,options:e.map((({slug:e,label:t})=>({label:(0,c.iT)(t),value:e}))),onChange:t=>n((0,c.ly)(e,t))})}const h=(0,i.withFocusOutside)(class extends r.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return(0,r.createElement)("div",{className:this.props.className},this.props.children)}});function f(e){return{name:"jetpack/conversation-participants",triggerPrefix:"",options:e,getOptionLabel:({label:e})=>(0,r.createElement)("span",null,(0,c.iT)(e)),getOptionKeywords:({label:e})=>[e],getOptionCompletion:e=>({action:"replace",value:e}),popoverProps:{position:"bottom"}}}function g({className:e,label:t,participant:n,participants:a,transcriptRef:i,onParticipantChange:s,onUpdate:m=(()=>{}),onSelect:g,onAdd:b,onClean:v}){const[k,y]=(0,r.useState)("is-participant-ready");function E(){if(!t)return;const e=(0,c.tQ)(a,t);return n&&n.label!==t?e&&e.slug!==n.slug?(y(d),g(e)):(y("was-participant-edited"),m({...n,label:(0,c.iT)(t,!0)})):e?(y(d),g(e)):(b((0,c.iT)(t,!0)),y("was-participant-added"))}const w=(0,r.useMemo)((()=>k?k!==u&&k!==p?[]:[f(a)]:[]),[a,k]);return(0,r.createElement)(h,{className:o()(e,{"has-bold-style":null==t?void 0:t.length,[k]:k}),onFocusOutside:E},(0,r.createElement)(l.RichText,{tagName:"div",value:t,allowedFormats:[],withoutInteractiveFormatting:!0,onChange:function(e){if(null==e||!e.length)return y(u),v();s(e);const t=(0,c.tQ)(a,e);n?n.label===e?y(p):y("is-participant-editing"):y(t?p:u)},placeholder:__("Speaker","jetpack"),keepPlaceholderOnFocus:!0,onSplit:()=>{},onReplace:e=>{setTimeout((()=>{var e;return null==i||null===(e=i.current)||void 0===e?void 0:e.focus()}),10);const t=null==e?void 0:e[0];if(t){const{label:e}=t;return s(e),y(d),g(t)}return E()},autocompleters:w}))}},57712:function(e,t,n){"use strict";n.d(t,{dG:function(){return d},S6:function(){return f}});var r=n(63027),a=n(33804),o=n(87997),i=n(33163),s=n(43925),l=n(77694);const __=i.__,_x=i._x;const c=["hour","min","sec"];function u(e,t){var n,r,a;const o=null===(n=Object.keys(e))||void 0===n?void 0:n[0];if(!o)return t.join(":");let i=String((s=e[o],l="hour"===o?23:59,Math.max(0,Math.min(s,l))));var s,l;return 1===(null===(r=i)||void 0===r?void 0:r.length)?i=`0${i}`:0===(null===(a=i)||void 0===a?void 0:a.length)&&(i="00"),t[c.indexOf(o)]=i,3===t.length&&"00"===t[0]&&t.shift(),t.join(":")}const p=(0,a.debounce)((function(e,t){t((0,l.H)(e))}),250);function d({value:e,className:t,onChange:n,shortLabel:a=!1,isDisabled:i=!1,duration:c}){const[d,m]=(0,r.useState)((0,l.i)(e)),h=e.split(":");return h.length<=2&&h.unshift("00"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:`${t}__timestamp-controls`},(0,r.createElement)(s.Z,{className:`${t}__timestamp-control__hour`,label:_x("Hour",a?"hour (short form)":"hour (long form)","jetpack"),value:h[0],min:0,max:23,onChange:e=>!i&&n(u({hour:e},h)),disabled:i}),(0,r.createElement)(s.Z,{className:`${t}__timestamp-control__minute`,label:a?_x("Min","Short for Minute","jetpack"):__("Minute","jetpack"),value:h[1],min:0,max:59,onChange:e=>!i&&n(u({min:e},h)),disabled:i}),(0,r.createElement)(s.Z,{className:`${t}__timestamp-control__second`,label:a?_x("Sec","Short for Second","jetpack"):__("Second","jetpack"),value:h[2],min:0,max:59,onChange:e=>!i&&n(u({sec:e},h)),disabled:i})),(0,r.createElement)(o.RangeControl,{disabled:void 0===c,value:d,className:`${t}__timestamp-range-control`,min:0,max:c,onChange:e=>{m(e),p(e,n)},withInputField:!1,renderTooltipContent:e=>(0,l.H)(e)}))}function m({className:e,onPlayback:t,value:n}){return(0,r.createElement)(o.Button,{className:e,isTertiary:!0,onClick:()=>t((0,l.i)(n))},n)}function h({className:e,currentTime:t,isTimestampButtonVisible:n,children:a,onChange:i,onToggle:s}){return(0,r.createElement)(o.Button,{className:e,isSmall:!0,isTertiary:!0,onClick:()=>{s(!n),n||i((0,l.H)(t),i)}},a)}function f({className:e,isSelected:t,show:n,value:a,mediaCurrentTime:o=0,onChange:i,onToggle:s,onPlayback:l}){return t?n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m,{className:`${e}__timestamp-label`,value:a,onPlayback:l}),(0,r.createElement)(h,{className:`${e}__timestamp-button`,currentTime:o,onChange:i,onToggle:s,isTimestampButtonVisible:n},__("Remove","jetpack"))):(0,r.createElement)(h,{className:`${e}__timestamp-button`,currentTime:o,onChange:i,onToggle:s,isTimestampButtonVisible:n},__("Add timestamp","jetpack")):n?(0,r.createElement)(m,{className:`${e}__timestamp-label`,value:a,onPlayback:l}):null}},51253:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(63027),a=n(89105),o=n.n(a),i=n(33163),s=n(46399),l=n(9314),c=n(65707),u=n(87997),p=n(53482),d=n(57712),m=n(16320),h=n(20715),f=n(38788),g=n(21547),b=n(77694),v=n(32548);const __=i.__,k="core/paragraph";function y({className:e,attributes:t,setAttributes:n,context:a,onReplace:i,mergeBlocks:y,isSelected:E}){const{content:w,label:_,slug:C,placeholder:S,showTimestamp:j,timestamp:x}=t,{mediaSource:T,mediaCurrentTime:N,mediaDuration:A,mediaDomReference:P,isMultipleSelection:I}=(0,c.useSelect)((e=>{const{getDefaultMediaSource:t,getMediaSourceCurrentTime:n,getMediaSourceDuration:r,getMediaSourceDomReference:a}=e(f.tT);return{mediaSource:t(),mediaCurrentTime:n(),mediaDuration:r(),mediaDomReference:a(),isMultipleSelection:e("core/block-editor").getMultiSelectedBlocks().length>0}}),[]),{playMediaSource:M,setMediaSourceCurrentTime:B}=(0,c.useDispatch)(f.tT),R=(0,r.useRef)(),L=a["jetpack/conversation-participants"],Z=null!=L&&L.length?L:[],D=(0,v.ly)(Z,C),F=(0,r.useContext)(h.Z);function O(e){n({timestamp:e})}return(0,r.useEffect)((()=>{I||E||D&&D.slug===C&&D.label!==_&&n({label:D.label})}),[D,_,C,I,E,n]),(0,r.createElement)("div",{className:e},(0,r.createElement)(s.BlockControls,null,T&&(0,r.createElement)(g.m,{onTimestampClick:e=>{n({showTimestamp:!0}),O((0,b.H)(e))}})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(u.Panel,null,(0,r.createElement)(u.PanelBody,{title:__("Speaker","jetpack")},(0,r.createElement)(p.Ev,{className:m.P,participants:Z,slug:C||"",onSelect:n})),!(null==T||!T.title)&&(0,r.createElement)(u.PanelBody,{title:__("Podcast episode","jetpack")},(0,r.createElement)("p",null,T.title)),T&&j&&(0,r.createElement)(u.PanelBody,{title:__("Timestamp","jetpack")},(0,r.createElement)(d.dG,{className:m.P,value:x,onChange:O,mediaSource:T,duration:A})))),(0,r.createElement)("div",{className:o()(`${m.P}__meta`,{"has-not-media-source":!T})},(0,r.createElement)(p.v$,{className:`${m.P}__participant`,label:_,participant:D,participants:Z,transcriptRef:R,onParticipantChange:e=>{n({label:e})},onSelect:e=>{I||n(e)},onClean:()=>{n({slug:null,label:""})},onAdd:e=>{const t=F.addNewParticipant({label:e,slug:C});n(t)},onUpdate:e=>{F.updateParticipants(e)}}),T&&(0,r.createElement)(d.S6,{className:m.P,show:j,isSelected:E,value:x,mediaCurrentTime:N,onChange:O,onToggle:e=>n({showTimestamp:e}),onPlayback:function(e){P&&(P.currentTime=e),B(e),M()}})),(0,r.createElement)(s.RichText,{ref:R,identifier:"content",tagName:"p",className:`${m.P}__content`,value:w,onChange:e=>n({content:e}),onMerge:y,onSplit:e=>{if(null==w||!w.length)return(0,l.createBlock)(k);const n=null!=e&&e.length?t:{};return(0,l.createBlock)("jetpack/dialogue",{...n,content:e})},onReplace:(e,...t)=>{var n,r,a,o;return F?(null===(n=e[0])||void 0===n?void 0:n.name)!==k||(null===(r=e[1])||void 0===r?void 0:r.name)!==k||null!==(a=e[0])&&void 0!==a&&a.attributes.content||null!==(o=e[1])&&void 0!==o&&o.attributes.content?void i(e,...t):((0,c.dispatch)("core/block-editor").selectBlock(e[0].clientId),i([e[0]],...t)):i(e,...t)},onRemove:i?()=>i([]):void 0,placeholder:S||__("Write dialogue…","jetpack"),keepPlaceholderOnFocus:!0}))}},7825:function(e,t,n){"use strict";n.d(t,{u2:function(){return d},Xd:function(){return m}});var r=n(33163),a=n(9314),o=n(78186),i=n(51253),s=n(95750),l=n(45395),c=n(90059),u=n(67528);const __=r.__,_x=r._x,p=c.p,d="dialogue",m={title:__("Dialogue","jetpack"),description:__("Create a dialogue paragraph, setting the participant with an optional timestamp.","jetpack"),parent:[`jetpack/${u.u2}`],icon:l.VV,category:"layout",edit:i.Z,save:s.Z,attributes:o.Z,usesContext:["jetpack/conversation-participants","jetpack/conversation-showTimestamps"],keywords:[_x("dialogue","block search term","jetpack"),_x("participant","block search term","jetpack"),_x("transcription","block search term","jetpack"),_x("speaker","block search term","jetpack")],transforms:{to:[{type:"block",blocks:["core/paragraph"],isMultiBlock:!0,transform:e=>e.map((({content:e,label:t})=>(0,a.createBlock)("core/paragraph",{content:(null!=t&&t.length?`<strong>${t}</strong>: `:"")+e})))}],from:[{type:"block",blocks:["core/paragraph"],isMultiBlock:!0,transform:e=>e.map((({content:e})=>(0,a.createBlock)("jetpack/dialogue",{participant:p[0],content:e})))}]}}},95750:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(46399),o=n(16320),i=n(77694);function s({attributes:e}){const{content:t,label:n,showTimestamp:s,timestamp:l}=e;return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:`${o.P}__meta`},(0,r.createElement)(a.RichText.Content,{className:`${o.P}__participant has-bold-style`,tagName:"div",value:n}),s&&(0,r.createElement)("div",{className:`${o.P}__timestamp-label`},(0,r.createElement)("a",{className:`${o.P}__timestamp_link`,href:`#${(0,i.i)(l)}`},l))),(0,r.createElement)(a.RichText.Content,{className:`${o.P}__content`,tagName:"p",value:t}))}},16320:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});const r="wp-block-jetpack-dialogue"},85487:function(e,t,n){"use strict";var r=n(63027),a=n(85880),o=n(4481),i=n(89105),s=n.n(i),l=n(46399),c=n(27975);t.Z=({className:e=null,currency:t=null,defaultValue:n=null,disabled:i=!1,label:u="",onChange:p=null,value:d=""})=>{const[m,h]=(0,r.useState)((0,a.ZP)(d,t,{symbol:""})),[f,g]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),k=(0,r.useRef)(null),y=(0,r.useCallback)((e=>{if(h(e),!p)return;const n=(0,c.Vm)(e,t);n&&n>=(0,c.hj)(t)?(p(n),v(!1)):e&&v(!0)}),[t,p]),E=()=>{k.current&&(k.current.focus(),g(!0))};return(0,r.useEffect)((()=>{k.current&&k.current.addEventListener("blur",(()=>g(!1)))}),[k]),(0,r.useEffect)((()=>{f||m||y((0,a.ZP)(n,t,{symbol:""}))}),[t,n,m,f,y]),(0,r.useEffect)((()=>{f||b||h((0,a.ZP)(d,t,{symbol:""}))}),[t,f,b,y,d]),(0,r.createElement)("div",{className:s()("donations__amount",e,{"has-focus":f,"has-error":b}),role:"button",tabIndex:0,onClick:E,onKeyDown:E},o.M[t].symbol,i?(0,r.createElement)("div",{className:"donations__amount-value"},(0,a.ZP)(d||n,t,{symbol:""})):(0,r.createElement)(l.RichText,{allowedFormats:[],"aria-label":u,keepPlaceholderOnFocus:!0,multiline:!1,onChange:e=>y(e),placeholder:(0,a.ZP)(n,t,{symbol:""}),ref:k,value:m,withoutInteractiveFormatting:!0}))}},53182:function(e,t,n){"use strict";var r=n(63027),a=n(4481),o=n(46399),i=n(87997),s=n(33163),l=n(23983),c=n(27975),u=n(92754);const __=s.__;t.Z=e=>{const{attributes:t,setAttributes:n}=e,{currency:s,monthlyDonation:p,annualDonation:d,showCustomAmount:m}=t,h=(e,r)=>{const a={"1 month":"monthlyDonation","1 year":"annualDonation"}[e],o=t[a];n({[a]:{...o,show:r}})};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(i.ToolbarGroup,null,(0,r.createElement)(i.ToolbarItem,null,(()=>(0,r.createElement)(i.Dropdown,{contentClassName:"jetpack-donations__currency-popover",renderToggle:({onToggle:e,isOpen:t})=>(0,r.createElement)(i.Button,{className:"jetpack-donations__currency-toggle",icon:(0,r.createElement)(r.Fragment,null,a.M[s].symbol+" - "+s,(0,r.createElement)(i.Dashicon,{icon:"arrow-down"})),label:__("Change currency","jetpack"),onClick:e,onKeyDown:n=>{t||n.keyCode!==l.DOWN||(n.preventDefault(),n.stopPropagation(),e())}}),renderContent:({onClose:e})=>(0,r.createElement)(i.MenuGroup,null,Object.keys(c.ck).map((t=>(0,r.createElement)(i.MenuItem,{isSelected:t===s,onClick:()=>{n({currency:t}),e()},key:`jetpack-donations-currency-${t}`},a.M[t].symbol+" - "+t))))}))))),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(i.ToggleControl,{checked:p.show,onChange:e=>h("1 month",e),label:__("Show monthly donations","jetpack")}),(0,r.createElement)(i.ToggleControl,{checked:d.show,onChange:e=>h("1 year",e),label:__("Show annual donations","jetpack")}),(0,r.createElement)(i.ToggleControl,{checked:m,onChange:e=>n({showCustomAmount:e}),label:__("Show custom amount option","jetpack")}),(0,r.createElement)(i.ExternalLink,{href:`https://wordpress.com/earn/payments/${(0,u.Z)()}`},__("View donation earnings","jetpack")))))}},16253:function(e,t,n){"use strict";var r=n(63027),a=n(85880),o=n(4481),i=n(46399),s=n(33163),l=n(27975);const __=s.__;t.Z={attributes:{currency:{type:"string",default:"USD"},oneTimeDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a one-time donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate","jetpack")}},monthlyDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a monthly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate monthly","jetpack")}},annualDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a yearly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate yearly","jetpack")}},showCustomAmount:{type:"boolean",default:!0},chooseAmountText:{type:"string",default:__("Choose an amount","jetpack")},customAmountText:{type:"string",default:__("Or enter a custom amount","jetpack")}},supports:{html:!1},save:({attributes:e})=>{const{currency:t,oneTimeDonation:n,monthlyDonation:s,annualDonation:c,showCustomAmount:u,chooseAmountText:p,customAmountText:d}=e;if(!n||!n.show||-1===n.planId)return null;const m={"one-time":{title:__("One-Time","jetpack")},...s.show&&{"1 month":{title:__("Monthly","jetpack")}},...c.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"donations__container"},Object.keys(m).length>1&&(0,r.createElement)("div",{className:"donations__nav"},Object.entries(m).map((([e,{title:t}])=>(0,r.createElement)("div",{role:"button",tabIndex:0,className:"donations__nav-item",key:`jetpack-donations-nav-item-${e} `,"data-interval":e},t)))),(0,r.createElement)("div",{className:"donations__content"},(0,r.createElement)("div",{className:"donations__tab"},(0,r.createElement)(i.RichText.Content,{tagName:"h4",className:"donations__one-time-item",value:n.heading}),s.show&&(0,r.createElement)(i.RichText.Content,{tagName:"h4",className:"donations__monthly-item",value:s.heading}),c.show&&(0,r.createElement)(i.RichText.Content,{tagName:"h4",className:"donations__annual-item",value:c.heading}),(0,r.createElement)(i.RichText.Content,{tagName:"p",value:p}),(0,r.createElement)("div",{className:"donations__amounts donations__one-time-item"},n.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,t))))),s.show&&(0,r.createElement)("div",{className:"donations__amounts donations__monthly-item"},s.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,t))))),c.show&&(0,r.createElement)("div",{className:"donations__amounts donations__annual-item"},c.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,t))))),u&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.RichText.Content,{tagName:"p",value:d}),(0,r.createElement)("div",{className:"donations__amount donations__custom-amount"},o.M[t].symbol,(0,r.createElement)("div",{className:"donations__amount-value","data-currency":t,"data-empty-text":(0,a.ZP)(100*(0,l.hj)(t),t,{symbol:""})}))),(0,r.createElement)("div",{className:"donations__separator"},"——"),(0,r.createElement)(i.RichText.Content,{tagName:"p",className:"donations__one-time-item",value:n.extraText}),s.show&&(0,r.createElement)(i.RichText.Content,{tagName:"p",className:"donations__monthly-item",value:s.extraText}),c.show&&(0,r.createElement)(i.RichText.Content,{tagName:"p",className:"donations__annual-item",value:c.extraText}),(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__one-time-item"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__one-time-item",value:n.buttonText})),s.show&&(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__monthly-item"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__monthly-item",value:s.buttonText})),c.show&&(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__annual-item"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__annual-item",value:c.buttonText}))))))}}},72238:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(65707),s=n(33163),l=n(82003),c=n(84769),u=n(95903),p=n(84426);const __=s.__;t.Z=e=>{const{attributes:t,className:n,setAttributes:r}=e,{currency:s}=t,[d,m]=(0,o.useState)(""),[h,f]=(0,o.useState)(!1),[g,b]=(0,o.useState)(!1),[v,k]=(0,o.useState)([]),y=(0,i.useSelect)((e=>e("core/editor").getCurrentPost()),[]);(0,o.useEffect)((()=>{r({fallbackLinkUrl:y.link})}),[y.link,r]);const E=e=>{m(e)},w=e=>e.reduce(((e,{id:t,currency:n,type:r,interval:a})=>(n===s&&"donation"===r&&(e[a]=t),e)),{}),_=e=>{if(!e&&"object"!=typeof e||e.errors)return void m(__("Could not load data from WordPress.com.","jetpack"));f(e.should_upgrade_to_access_memberships),b(e.connect_url);const t=w(e.products);(e=>{const t=Object.keys(e);return t.includes("one-time")&&t.includes("1 month")&&t.includes("1 year")})(t)?k(t):e.should_upgrade_to_access_memberships||e.connect_url?k({"one-time":-1,"1 month":-1,"1 year":-1}):(0,u.Z)(s).then((e=>k(w(e))),E)};return(0,o.useEffect)((()=>{(0,p.Z)("donation").then(_,E)}),[s]),d?(0,o.createElement)(c.Z,{className:n,error:d}):(0,o.createElement)(l.Z,a()({},e,{products:v,shouldUpgrade:h,stripeConnectUrl:g}))}},95903:function(e,t,n){"use strict";var r=n(37606),a=n.n(r);t.Z=async e=>{try{return await a()({path:"/wpcom/v2/memberships/products",method:"POST",data:{type:"donation",currency:e}})}catch(t){return Promise.reject(t.message)}}},84426:function(e,t,n){"use strict";var r=n(82827),a=n(37606),o=n.n(a),i=n(791);t.Z=async(e=null)=>{const{query:t}=(0,r.Qc)(window.location.href,!0),n=(0,i.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t.origin?"gutenberg-wpcom":"gutenberg",...e&&{type:e}});try{return await o()({path:n,method:"GET"})}catch(a){return Promise.reject(a.message)}}},93626:function(e,t,n){"use strict";n.d(t,{u2:function(){return l},Xd:function(){return c}});var r=n(33163),a=n(72238),o=n(49210),i=n(16253),s=n(45395);const __=r.__,l="donations",c={title:__("Donations","jetpack"),description:__("Collect one-time, monthly, or annually recurring donations.","jetpack"),icon:s.K9,category:"earn",keywords:[__("Donations","jetpack")],supports:{html:!1},edit:a.Z,save:o.Z,example:{},deprecated:[i.Z]}},84769:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997);const __=a.__;t.Z=({className:e,error:t})=>(0,r.createElement)(o.Placeholder,{icon:"lock",label:__("Donations","jetpack"),instructions:t,className:e})},49210:function(e,t,n){"use strict";var r=n(63027),a=n(46399);t.Z=({attributes:e})=>{const{fallbackLinkUrl:t,oneTimeDonation:n,monthlyDonation:o,annualDonation:i}=e;return n&&n.show&&n.planId&&-1!==n.planId?(0,r.createElement)("div",null,(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:n.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:n.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:n.buttonText}),o.show&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:o.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:o.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:o.buttonText})),i.show&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:i.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:i.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:i.buttonText}))):null}},82968:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(65707),i=n(33163),s=n(85487),l=n(27975);const __=i.__;t.Z=({activeTab:e,attributes:t,setAttributes:n})=>{const{currency:c,oneTimeDonation:u,monthlyDonation:p,annualDonation:d,showCustomAmount:m,chooseAmountText:h,customAmountText:f}=t,g={"one-time":"oneTimeDonation","1 month":"monthlyDonation","1 year":"annualDonation"},b=n=>t[g[e]][n],v=(r,a)=>{const o=g[e],i=t[o];n({[o]:{...i,[r]:a}})},[k,y]=(0,r.useState)(c),E=(0,l.hj)(c),w=(0,r.useMemo)((()=>[10*E,30*E,200*E]),[E]);(0,r.useEffect)((()=>{k!==c&&(y(c),n({oneTimeDonation:{...u,amounts:w},monthlyDonation:{...p,amounts:w},annualDonation:{...d,amounts:w}}))}),[c,k,w,u,p,d,n]);const _=b("amounts"),C=(0,o.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]).map((e=>e.name)).filter((e=>"core/link"!==e));return(0,r.createElement)("div",{className:"donations__tab"},(0,r.createElement)(a.RichText,{tagName:"h4",placeholder:__("Write a message…","jetpack"),value:b("heading"),onChange:e=>v("heading",e)}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:h,onChange:e=>n({chooseAmountText:e})}),(0,r.createElement)("div",{className:"donations__amounts"},_.map(((e,t)=>(0,r.createElement)(s.Z,{currency:c,defaultValue:w[t],label:(0,i.sprintf)(__("Tier %d","jetpack"),t+1),key:`jetpack-donations-amount-${t}`,onChange:e=>((e,t)=>{const n=[..._];n[t]=e,v("amounts",n)})(e,t),value:e})))),m&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:f,onChange:e=>n({customAmountText:e})}),(0,r.createElement)(s.Z,{currency:c,label:__("Custom amount","jetpack"),defaultValue:100*(0,l.hj)(c),className:"donations__custom-amount",disabled:!0})),(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:b("extraText"),onChange:e=>v("extraText",e)}),(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper"},(0,r.createElement)(a.RichText,{className:"wp-block-button__link donations__donate-button",placeholder:__("Write a message…","jetpack"),value:b("buttonText"),onChange:e=>{return t=e,void n({oneTimeDonation:{...u,buttonText:t},monthlyDonation:{...p,buttonText:t},annualDonation:{...d,buttonText:t}});var t},allowedFormats:C})))}},82003:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(65707),s=n(33163),l=n(53182),c=n(82968),u=n(23172);const __=s.__;t.Z=e=>{const{attributes:t,className:n,products:a,setAttributes:s,shouldUpgrade:p,stripeConnectUrl:d}=e,{oneTimeDonation:m,monthlyDonation:h,annualDonation:f}=t,[g,b]=(0,r.useState)("one-time"),v=(0,i.useSelect)((e=>e("core/editor").getCurrentPostId()),[]),k=(0,r.useCallback)((e=>g===e),[g]),y={"one-time":{title:__("One-Time","jetpack")},...h.show&&{"1 month":{title:__("Monthly","jetpack")}},...f.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,r.useEffect)((()=>{m.planId===a["one-time"]&&h.planId===a["1 month"]&&f.planId===a["1 year"]||s({oneTimeDonation:{...m,planId:a["one-time"]},monthlyDonation:{...h,planId:a["1 month"]},annualDonation:{...f,planId:a["1 year"]}})}),[m,h,f,s,a]),(0,r.useEffect)((()=>{!h.show&&k("1 month")&&b("one-time"),!f.show&&k("1 year")&&b("one-time")}),[h,f,b,k]),(0,r.createElement)("div",{className:n},!p&&d&&(0,r.createElement)(u.Z,{blockName:"donations",postId:v,stripeConnectUrl:d}),(0,r.createElement)("div",{className:"donations__container"},Object.keys(y).length>1&&(0,r.createElement)("div",{className:"donations__nav"},Object.entries(y).map((([e,{title:t}])=>(0,r.createElement)("div",{role:"button",tabIndex:0,className:o()("donations__nav-item",{"is-active":k(e)}),onClick:()=>b(e),onKeyDown:()=>b(e),key:`jetpack-donations-nav-item-${e} `},t)))),(0,r.createElement)("div",{className:"donations__content"},(0,r.createElement)(c.Z,{activeTab:g,attributes:t,setAttributes:s}))),(0,r.createElement)(l.Z,e))}},19203:function(e,t){"use strict";t.Z={url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},style:{type:"string",default:"inline"}}},2309:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(63027),a=n(87997),o=n(33163);const __=o.__,i=({setEditingUrl:e})=>(0,r.createElement)(a.ToolbarGroup,null,(0,r.createElement)(a.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>e(!0)}))},62980:function(e,t,n){"use strict";var r=n(99673);t.Z=[r.Z]},99673:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(46399),s=n(33804),l=n(9314),c=n(33163);const _x=c._x,u=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius"];t.Z={attributes:{url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},useModal:{type:"boolean"},style:{type:"string"},text:{type:"string",default:_x("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},migrate:e=>{const{className:t,style:n}=e;let r=n;r||(r=e.useModal?"modal":"inline");const a={...(0,s.omit)(e,["useModal",...u]),className:t&&t.replace("is-style-outline",""),style:r},o=(0,s.pick)(e,u);return[a,[(0,l.createBlock)("jetpack/button",{element:"a",text:o.text||_x("Register","verb: e.g. register for an event.","jetpack"),...o,uniqueId:"eventbrite-widget-id",className:t&&-1!==t.indexOf("is-style-outline")?"is-style-outline":""})]]},save:function({attributes:e}){const{eventId:t,useModal:n,url:a,style:s}=e;if(t)return n||"modal"===s?function(e){const{backgroundColor:t,borderRadius:n,customBackgroundColor:a,customTextColor:s,eventId:l,text:c,textColor:u,url:p}=e,d=(0,i.getColorClassName)("color",u),m=(0,i.getColorClassName)("background-color",t),h=o()("wp-block-button__link",{"has-text-color":u||s,[d]:d,"has-background":t||a,[m]:m,"no-border-radius":0===n}),f={backgroundColor:m?void 0:a,color:d?void 0:s,borderRadius:n?n+"px":void 0};return(0,r.createElement)("div",{className:"wp-block-button"},(0,r.createElement)(i.RichText.Content,{className:h,href:p,id:`eventbrite-widget-${l}`,rel:"noopener noreferrer",role:"button",style:f,tagName:"a",target:"_blank",value:c}))}(e):a&&(0,r.createElement)("a",{className:"eventbrite__direct-link",href:a},a)},isEligible:(e,t)=>("modal"===e.style||e.useModal)&&((0,s.isEmpty)(t)||(0,s.some)((0,s.pick)(e,u),Boolean))}},62300:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(87997),l=n(46399),c=n(77062),u=n(19203),p=n(65927),d=n(83353),m=n(42975),h=n(8964),f=n(39879),g=n(19737),b=n(2309);const __=i.__,_x=i._x;class v extends o.Component{constructor(...e){super(...e),a()(this,"state",{editedUrl:this.props.attributes.url||"",editingUrl:!1,isResolvingUrl:!1}),a()(this,"setUrl",(e=>{const{attributes:t,noticeOperations:n,setAttributes:r}=this.props,{style:a}=t;if(!e||c.Q7===e||"modal"===a)return;const o={eventId:(0,p.Ve)(e),url:e};(0,g.Z)(o.url,this.setIsResolvingUrl).then((e=>{const t=(0,d.S)(u.Z,{...o,url:e});r(t),this.setState({editedUrl:e}),n.removeAllNotices()})).catch((()=>{r({eventId:void 0,url:void 0}),this.setErrorNotice()}))})),a()(this,"setIsResolvingUrl",(e=>this.setState({isResolvingUrl:e}))),a()(this,"setEditingUrl",(e=>this.setState({editingUrl:e}))),a()(this,"setErrorNotice",(()=>{const{noticeOperations:e,onReplace:t}=this.props,{editedUrl:n}=this.state;e.removeAllNotices(),e.createErrorNotice((0,o.createElement)(o.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,o.createElement)(s.Button,{isLink:!0,onClick:()=>(0,p.N3)(n,t)},_x("Convert block to link","button label","jetpack"))))})),a()(this,"submitForm",(e=>{e&&e.preventDefault(),this.setUrl((0,p.qq)(this.state.editedUrl)),this.setState({editingUrl:!1})})),a()(this,"cannotEmbed",(()=>{const{url:e}=this.props.attributes,{isResolvingUrl:t}=this.state;return!t&&e&&!c.Wh.test(e)}))}componentDidMount(){const{url:e}=this.props.attributes;this.setUrl(e)}renderLoading(){return(0,o.createElement)("div",{className:"wp-block-embed is-loading"},(0,o.createElement)(s.Spinner,null),(0,o.createElement)("p",null,__("Embedding…","jetpack")))}renderInspectorControls(){const{style:e}=this.props.attributes,{attributes:t,clientId:n,setAttributes:r}=this.props,a=[{value:"inline",label:__("In-page Embed","jetpack"),preview:(0,o.createElement)("div",{className:"block-editor-block-preview__container"},(0,o.createElement)("img",{src:h,alt:__("In page Eventbrite checkout example","jetpack")}))},{value:"modal",label:__("Button & Modal","jetpack")}];return(0,o.createElement)(f.Z,{title:_x("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack"),clientId:n,styleOptions:a,onSelectStyle:r,activeStyle:e,attributes:t,viewportWidth:130})}renderEditEmbed(){const{className:e,noticeUI:t}=this.props,{editedUrl:n}=this.state,r=(0,m.Wp)()||(0,m.Ug)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return(0,o.createElement)("div",{className:e},(0,o.createElement)(s.Placeholder,{label:__("Eventbrite Checkout","jetpack"),instructions:__("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:(0,o.createElement)(l.BlockIcon,{icon:c.qv}),notices:t},(0,o.createElement)("form",{onSubmit:this.submitForm},(0,o.createElement)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":__("Eventbrite URL","jetpack"),placeholder:__("Enter an event URL to embed here…","jetpack"),onChange:e=>this.setState({editedUrl:e.target.value})}),(0,o.createElement)(s.Button,{isSecondary:!0,type:"submit"},_x("Embed","submit button label","jetpack"))),(0,o.createElement)("div",{className:"components-placeholder__learn-more"},(0,o.createElement)(s.ExternalLink,{href:r},__("Learn more about Eventbrite embeds","jetpack")))))}renderInlinePreview(){const{className:e}=this.props,{eventId:t}=this.props.attributes;if(!t)return;const n=`eventbrite-widget-${t}`,r=`\n\t\t\t<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ${t},\n\t\t\t\t\tiframeContainerId: '${n}',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id="${n}"></div>\n\t\t`;return(0,o.createElement)("div",{className:e},(0,o.createElement)(s.SandBox,{html:r}),(0,o.createElement)("div",{className:"block-library-embed__interactive-overlay"}))}render(){const{attributes:e}=this.props,{url:t,style:n}=e,{editingUrl:r,isResolvingUrl:a}=this.state;return a?this.renderLoading():r||!t||this.cannotEmbed()?this.renderEditEmbed():(0,o.createElement)(o.Fragment,null,this.renderInspectorControls(),(0,o.createElement)(l.BlockControls,null,(0,o.createElement)(b.J,{setEditingUrl:this.setEditingUrl})),"modal"===n?(0,o.createElement)(l.InnerBlocks,{template:[[c.Ss.name,c.Ss.attributes]],templateLock:"all"}):this.renderInlinePreview())}}t.Z=(0,s.withNotices)(v)},77062:function(e,t,n){"use strict";n.d(t,{Ss:function(){return d},Wh:function(){return m},Q7:function(){return f},u2:function(){return g},qv:function(){return v},Xd:function(){return k}});var r=n(63027),a=n(33163),o=n(87997),i=n(9314),s=n(19203),l=n(62980),c=n(62300),u=n(82824),p=n(32750);const __=a.__,_x=a._x,d={name:"jetpack/button",attributes:{element:"a",text:_x("Register","verb: e.g. register for an event.","jetpack"),uniqueId:"eventbrite-widget-id"}},m=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^\/]*?(\d+)\/?(?:\?[^\/]*)?\s*$/i,h=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^\/]*)?\s*$/i,f="https://www.eventbrite.com/e/test-event-tickets-123456789",g="eventbrite",b=__("Eventbrite Checkout","jetpack"),v=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(o.G,{id:"eventbrite-icon"},(0,r.createElement)(o.Path,{d:"M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z"}))),k={title:b,description:__("Embed Eventbrite event details and ticket checkout.","jetpack"),icon:{src:v,foreground:(0,p.m)()},category:"embed",keywords:[_x("events","block search term","jetpack"),_x("tickets","block search term","jetpack")],supports:{html:!1,align:!0},attributes:s.Z,edit:c.Z,save:u.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&(m.test(e.textContent)||h.test(e.textContent)),transform:e=>(0,i.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}]},example:{attributes:{url:f,eventId:123456789,style:"modal"},innerBlocks:[d]},deprecated:l.Z}},82824:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o({attributes:e}){const{eventId:t,style:n,url:o}=e;if(t)return"modal"===n?(0,r.createElement)("div",null,(0,r.createElement)(a.InnerBlocks.Content,null)):o&&(0,r.createElement)("a",{className:"eventbrite__direct-link",href:o},o)}},65927:function(e,t,n){"use strict";n.d(t,{N3:function(){return o},Ve:function(){return i},qq:function(){return s}});var r=n(63027),a=n(9314);function o(e,t){const n=(0,r.createElement)("a",{href:e},e);t((0,a.createBlock)("core/paragraph",{content:(0,r.renderToString)(n)}))}function i(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^\/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function s(e=""){return e&&"string"==typeof e?e.trim():null}},62636:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(33804),a=n(37606),o=n.n(a),i=n(63027),s=n(33163),l=n(791),c=n(9314),u=n(65707);const __=s.__;function p({onReplace:e}){const[t,n]=(0,i.useState)(!1),a=(0,u.useSelect)((e=>e("core/editor").getEditedPostAttribute("jetpack_publicize_connections")));return{isGatheringStorm:t,unleashStorm:(t,i)=>{if((0,r.isEmpty)(t))return;const s=t.match(/^https?:\/\/(?:www\.)?twitter\.com\/([^/]+)\/status\/\d+/);if((0,r.isEmpty)(s))return;const p=s[1];i.removeAllNotices(),n(!0),o()({path:(0,l.addQueryArgs)("/wpcom/v2/tweetstorm/gather",{url:t})}).then((t=>{if(n(!1),!(0,r.isArray)(t))return void i.createErrorNotice(__("An error occurred. Please try again later.","jetpack"));if((0,r.isEmpty)(t))return void i.createErrorNotice(__("We were unable to get any content from this tweet.","jetpack"));e(t.map((e=>{switch(e.type){case"paragraph":return(0,c.createBlock)("core/paragraph",{content:e.content});case"gallery":return(0,c.createBlock)("core/gallery",{images:e.images});case"image":return(0,c.createBlock)("core/image",{url:e.url,alt:e.alt});case"video":return(0,c.createBlock)("core/video",{src:e.url,caption:e.alt});case"embed":return(0,c.createBlock)("core/embed",{url:e.url})}})));(0,r.some)(a,(e=>"twitter"===e.service_name&&`@${p}`===e.display_name))||(0,u.dispatch)("core/notices").createWarningNotice(__("We were unable to verify that this Twitter thread was published on a Twitter account belonging to you. Please ensure you have permission to reproduce it before publishing.","jetpack")),(0,u.dispatch)("core/notices").createSuccessNotice(__("Twitter thread successfully imported","jetpack"),{type:"snackbar"})})).catch((e=>{n(!1),i.createErrorNotice(e.message)}))}}}},65203:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997);const __=a.__;t.Z=(0,r.forwardRef)((function({onSubmit:e,onChange:t,value:n=""},a){return(0,r.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:e},(0,r.createElement)("input",{type:"text",className:"wp-block-jetpack-gif_input components-placeholder__input",placeholder:__("Enter search terms, e.g. cat…","jetpack"),value:n,onChange:t,ref:a,"aria-labelledby":"wp-block-jetpack-gif_search-button"}),(0,r.createElement)(o.Button,{id:"wp-block-jetpack-gif_search-button",isSecondary:!0,type:"submit"},__("Search","jetpack")))}))},86722:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});const r="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW"},64843:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(87997),o=n(46399);function i(){return(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(a.PanelBody,{className:"components-panel__body-gif-branding"},(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},(0,r.createElement)(a.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),(0,r.createElement)(a.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"}))))}},99236:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33163),s=n(87997),l=n(46399),c=n(76561),u=n(21718),p=n(65203),d=n(64843),m=n(85343);const __=i.__;t.Z=function({attributes:e,setAttributes:t,className:n,isSelected:a}){const{align:i,caption:h,giphyUrl:f,searchText:g,paddingTop:b}=e,v=o()(n,`align${i}`),[k,y]=(0,r.useState)(!1),E=(0,r.createRef)(),{isFetching:w,giphyData:_,fetchGiphyData:C}=(0,m.Z)(),S=()=>{E.current.focus(),y(!1)};(0,r.useEffect)((()=>{_&&_[0]&&t((0,u.ix)(_[0]))}),[_,t]);const j=t=>{t.preventDefault(),e.searchText&&!w&&C((0,u.Gr)(e.searchText))},x=e=>t({searchText:e.target.value});return(0,r.createElement)("div",{className:v},(0,r.createElement)(d.Z,null),f?(0,r.createElement)("figure",null,a&&(0,r.createElement)(p.Z,{onSubmit:j,onChange:x,value:g,ref:E}),a&&_&&_.length>1&&(0,r.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},_.map((e=>{const n={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,r.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:e.id,onClick:n=>{n.preventDefault(),(e=>{t((0,u.ix)(e))})(e)},style:n})}))),(0,r.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:b}},(0,r.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:S,onKeyDown:S,role:"button",tabIndex:"0"}),(0,r.createElement)("iframe",{src:f,title:g})),(!l.RichText.isEmpty(h)||a)&&!!f&&(0,r.createElement)(l.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:k,unstableOnFocus:()=>y(!1),onChange:e=>t({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:h})):(0,r.createElement)(s.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:c.qv,label:c.TN,instructions:__("Search for a term or paste a Giphy URL","jetpack")},(0,r.createElement)(p.Z,{onSubmit:j,onChange:x,value:g,ref:E})))}},85343:function(e,t,n){"use strict";var r=n(63027);t.Z=(e=[])=>{const[t,n]=(0,r.useState)(!1),[a,o]=(0,r.useState)(e),[i,s]=(0,r.useState)("");return(0,r.useEffect)((()=>{if(!i)return;(async()=>{n(!0);const e=await fetch(i).then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const t=await e.json(),n=void 0!==t.data.images?[t.data]:t.data;n[0].images&&o(n)}n(!1)})()}),[i]),{isFetching:t,giphyData:a,fetchGiphyData:s}}},76561:function(e,t,n){"use strict";n.d(t,{u2:function(){return l},TN:function(){return c},qv:function(){return u},Xd:function(){return p}});var r=n(63027),a=n(33163),o=n(87997),i=n(99236),s=n(32750);const __=a.__,_x=a._x,l="gif",c=__("GIF","jetpack"),u=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),p={title:c,icon:{src:u,foreground:(0,s.m)()},category:"embed",keywords:[_x("animated","block search term","jetpack"),_x("giphy","block search term","jetpack"),_x("image","block search term","jetpack")],description:__("Search for and insert an animated image.","jetpack"),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:i.Z,save:()=>null,example:{attributes:{align:"center",giphyUrl:"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc",paddingTop:"100%",searchText:"WordPress"}}}},21718:function(e,t,n){"use strict";n.d(t,{Gr:function(){return a},ix:function(){return s}});var r=n(86722);const a=(e="")=>{let t=null;const n=(e=e.trim()).match(/^https?:\/\/(media\.|i\.)?giphy\.com\/(embed|gifs|media)?\/?([-\w]*)(\/giphy)?(\.gif)?$/);return n&&n[3]&&(t=((e="",t)=>{const n=e.split(t);return n[n.length-1]})(n[3],"-")),t?`https://api.giphy.com/v1/gifs/${encodeURIComponent(t)}?api_key=${encodeURIComponent(r.U)}`:(e=>`https://api.giphy.com/v1/gifs/search?q=${encodeURIComponent(e)}&api_key=${encodeURIComponent(r.U)}&limit=10`)(e)},o=e=>`${Math.floor(e.images.original.height/e.images.original.width*100)}%`,i=e=>null==e?void 0:e.embed_url,s=e=>({giphyUrl:i(e),paddingTop:o(e)})},47129:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(33163);const __=o.__,_x=o._x;t.Z=e=>{const{className:t,embedValue:n,onChange:o,onSubmit:i}=e;return(0,r.createElement)(a.PanelBody,{title:__("Calendar settings","jetpack"),initialOpen:!1},(0,r.createElement)("form",{onSubmit:i,className:t},(0,r.createElement)("textarea",{type:"text",value:n,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:o}),(0,r.createElement)(a.Button,{isSecondary:!0,type:"submit"},_x("Embed","button label","jetpack"))))}},56735:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(51417),s=n(46399),l=n(98270),c=n(9314),u=n(47129),p=n(52236),d=n(49115),m=n(42975);const __=a.__,_x=a._x;t.Z=(0,i.compose)(o.withNotices,(0,l.withViewportMatch)({isMobile:"< small"}))((function(e){const{attributes:{url:t,height:n},className:a,isMobile:i,isSelected:l,name:h,noticeOperations:f,noticeUI:g,setAttributes:b}=e,[v,k]=(0,r.useState)(t||""),[y,E]=(0,r.useState)(!1),[w,_]=(0,r.useState)(!1);(0,r.useEffect)((()=>{!l&&w&&_(!1)}),[l,w]);const C=()=>{_(!0)},S=e=>{e&&e.preventDefault();const t=(0,d.L7)(v.trim());if(!d.Wh.test(t.url))return f.removeAllNotices(),void f.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or Embed Code. Please note, you need to use the 'Public URL' or 'Embed Code', the 'Shareable Link' will not work.","jetpack"));b(t),E(!1),f.removeAllNotices()},j=(0,c.getBlockDefaultClassName)(h),x=`<iframe src="${t}" style="border:0" scrolling="no" frameborder="0" height="${i?"300":n}"></iframe>`,T=(0,r.createElement)(o.ExternalLink,{href:"https://en.support.wordpress.com/google-calendar/"},__("Enable Permissions for the calendar you want to share","jetpack")),N=(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(u.Z,{className:`${j}-embed-form-sidebar`,embedValue:v,onChange:e=>k(e.target.value),onSubmit:S}));if(y||!t){const e=(0,m.Wp)()||(0,m.Ug)()?"https://en.support.wordpress.com/wordpress-editor/blocks/google-calendar/":"https://jetpack.com/support/jetpack-blocks/google-calendar/";return(0,r.createElement)("div",{className:a},N,(0,r.createElement)(o.Placeholder,{className:a,label:__("Google Calendar","jetpack"),icon:(0,r.createElement)(s.BlockIcon,{icon:p.Z}),instructions:(0,r.createElement)("ol",{className:`${j}-placeholder-instructions`},(0,r.createElement)("li",null,T),(0,r.createElement)("li",null,__("Paste the embed code you copied from your Google Calendar below","jetpack"))),notices:g},(A=`${j}-embed-form-editor`,(0,r.createElement)("form",{onSubmit:S,className:A},(0,r.createElement)("textarea",{type:"text",value:v,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:e=>k(e.target.value)}),(0,r.createElement)(o.Button,{isSecondary:!0,type:"submit"},_x("Embed","button label","jetpack")))),(0,r.createElement)("div",{className:`${j}-placeholder-links`},(0,r.createElement)(o.ExternalLink,{href:e},__("Learn more","jetpack")))))}var A;return(0,r.createElement)("div",{className:a},N,(0,r.createElement)("div",null,(0,r.createElement)(o.SandBox,{html:x,onFocus:C}),!w&&(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C})))}))},52236:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{height:"23",viewBox:"0 0 24 23",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19.5,23h-15c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h15c2.2,0,4,1.8,4,4v15C23.5,21.2,21.7,23,19.5,23z M4.5,2 c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H4.5z M6.9,3.9L6.9,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0C6.5,5.9,6.1,5.5,6.1,5V4.7C6.1,4.3,6.5,3.9,6.9,3.9z M17,3.9L17,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0c-0.5,0-0.9-0.4-0.9-0.9V4.7C16.2,4.3,16.5,3.9,17,3.9z M8.8,17.6c1.8,0,3.2-1,3.2-2.4 c0-1.1-0.7-1.8-1.8-1.9v-0.1c0.9-0.2,1.5-0.9,1.5-1.8c0-1.3-1.2-2.2-2.9-2.2c-1.8,0-2.9,1-3,2.5h1.6c0-0.7,0.6-1.1,1.4-1.1 c0.8,0,1.3,0.4,1.3,1.1c0,0.7-0.5,1.1-1.3,1.1h-1v1.3h1c0.9,0,1.5,0.4,1.5,1.1c0,0.7-0.6,1.2-1.4,1.2c-0.9,0-1.4-0.4-1.5-1.1H5.7 C5.8,16.6,7,17.6,8.8,17.6z M17.6,17.4V9.3h-1.7l-2.1,1.4v1.6l2-1.4h0.1v6.4H17.6z"}))},64455:function(e,t,n){"use strict";n.d(t,{u2:function(){return u},Xd:function(){return p}});var r=n(63027),a=n(33163),o=n(9314),i=n(56735),s=n(49115),l=n(52236),c=n(32750);const __=a.__,_x=a._x,u="google-calendar",p={title:__("Google Calendar","jetpack"),description:__("Embed a Google Calendar","jetpack"),keywords:[_x("events","block search term","jetpack"),_x("dates","block search term","jetpack"),_x("schedule","block search term","jetpack"),_x("appointments","block search term","jetpack")],icon:{src:l.Z,foreground:(0,c.m)()},category:"embed",supports:{align:!0,alignWide:!0,html:!1},attributes:{url:{type:"string"},height:{type:"integer",default:600}},edit:i.Z,save:({attributes:{url:e}})=>(0,r.createElement)("a",{href:e},e),transforms:{from:[{type:"shortcode",tag:"googleapps",isMatch:function(e){return"calendar"===e.named.domain},attributes:{url:{type:"string",shortcode:({named:{domain:e,dir:t,query:n}})=>`https://${e}.google.com/${t}?${n}`}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&s.Wh.test(e.textContent),transform:e=>(0,o.createBlock)("jetpack/google-calendar",{url:e.textContent.trim()})},{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&s.E6.test(e.innerHTML),transform:e=>{const{url:t,height:n}=(0,s.jj)(e.innerHTML.trim());return(0,o.createBlock)("jetpack/google-calendar",{url:t,height:n})}}]},example:{attributes:{url:"https://calendar.google.com/calendar/embed?src=jb4bu80jirp0u11a6niie21pp4%40group.calendar.google.com&ctz=America/New_York"}}}},49115:function(e,t,n){"use strict";n.d(t,{Wh:function(){return a},E6:function(){return o},jj:function(){return c},L7:function(){return u}});const r="s*https?://calendar.google.com/calendar",a=new RegExp(`^${r}`,"i"),o=new RegExp(`<iframe((?:\\s+\\w+=(['"]).*?\\2)*)\\s+src=(["'])(${r}.*?)\\3((?:\\s+\\w+=(['"]).*?\\6)*)`,"i"),i=new RegExp(`${r}\\?cid=([-A-Za-z0-9+/]+={0,3})`,"i"),s=/\s+(\w+)=(["'])(.*?)\2/gi;function l(e){const t=i.exec(e);if(t)return"https://calendar.google.com/calendar/embed?src="+encodeURIComponent(atob(t[1]))}function c(e){const t=o.exec(e);if(!t)return;const n={};return t.forEach(((e,t)=>{if(0===t)return;if(a.test(e))return void(n.url=e);let r;for(;null!==(r=s.exec(e));)n[r[1]]=r[3]})),{url:n.url,width:n.width,height:n.height}}function u(e){return o.test(e)?c(e):i.test(e)?{url:l(e)}:{url:e}}},11374:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(87997),o=n(33163);const __=o.__;function i({attributes:e,setAttributes:t}){const{orientation:n}=e;return(0,r.createElement)(a.PanelBody,{title:__("Orientation","jetpack")},(0,r.createElement)(a.RadioControl,{selected:n||"horizontal",options:[{label:__("Side by side","jetpack"),value:"horizontal"},{label:__("Above and below","jetpack"),value:"vertical"}],onChange:e=>t({orientation:e})}))}},94439:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(87997),i=n(51417),s=n(33163),l=n(64359),c=n(11374),u=n(19942),p=n(32282);n(23166);const __=s.__;t.Z=({attributes:e,className:t,clientId:n,isSelected:s,setAttributes:d})=>{const{imageBefore:m,imageAfter:h,caption:f,orientation:g}=e;let b=null,v=null;const k=(0,r.useRef)();i.useResizeObserver&&([b,v]=(0,i.useResizeObserver)(),(0,p.Z)((e=>{e>0&&"undefined"!=typeof juxtapose&&juxtapose.sliders&&juxtapose.sliders.forEach((t=>{t.wrapper.parentElement.id===n&&t.optimizeWrapper(e)}))}),200,v.width));const y=m&&m.url&&h&&h.url?"image-compare__comparison juxtapose":"image-compare__placeholder";return(0,r.useLayoutEffect)((()=>{m.url&&h.url&&"undefined"!=typeof juxtapose&&juxtapose.makeSlider(null==k?void 0:k.current)}),[m,h,g]),(0,r.createElement)("figure",{className:t,id:n},b,(0,r.createElement)(a.InspectorControls,{key:"controls"},(0,r.createElement)(c.Z,{attributes:e,setAttributes:d})),(0,r.createElement)("div",{ref:k,className:y,"data-mode":g||"horizontal"},(0,r.createElement)(o.Placeholder,{label:null},(0,r.createElement)("div",{className:"image-compare__image-before"},(0,r.createElement)(u.Z,{image:{id:m.id,url:m.url,alt:m.alt},placeHolderLabel:__("Image before","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){var t,n;const{src:r}=(0,l.z)(e),{alt:a,id:o,media_details:i}=e,s=null!==(t=null==i?void 0:i.width)&&void 0!==t?t:e.width,c=null!==(n=null==i?void 0:i.height)&&void 0!==n?n:e.height;d({imageBefore:{id:o,url:r||e.url,alt:a,width:s,height:c}})}}})),(0,r.createElement)("div",{className:"image-compare__image-after"},(0,r.createElement)(u.Z,{image:{id:h.id,url:h.url,alt:h.alt},placeHolderLabel:__("Image after","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){var t,n;const{src:r}=(0,l.z)(e),{alt:a,id:o,media_details:i}=e,s=null!==(t=null==i?void 0:i.width)&&void 0!==t?t:e.width,c=null!==(n=null==i?void 0:i.height)&&void 0!==n?n:e.height;d({imageAfter:{id:o,url:r||e.url,alt:a,width:s,height:c}})}}})))),(!a.RichText.isEmpty(f)||s&&m.url&&h.url)&&(0,r.createElement)(a.RichText,{tagName:"figcaption",placeholder:__("Write caption","jetpack"),value:f,onChange:e=>d({caption:e}),inlineToolbar:!0}))}},30876:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M21 4h-6v1.5h6c.3 0 .5.2.5.5v.4l-3.6 3.5L15 8.1v1.8l2.6 1.7c.1.1.3.1.4.1.2 0 .4-.1.5-.2l3-2.9V18c0 .3-.2.5-.5.5h-6V20h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM1 6v12c0 1.1.9 2 2 2h10.5V4H3c-1.1 0-2 .9-2 2zm11 12.5H3c-.3 0-.5-.2-.5-.5v-1.4L5 14.7l1.5-1.1.1-.1 3 1.9c.1.1.3.1.4.1.2 0 .4-.1.5-.2L12 14v4.5zm0-6.6l-2.1 2L7 12c-.1-.1-.3-.1-.4-.1h-.1c-.1 0-.3.1-.4.1l-1.1.9-2.5 1.8V6c0-.3.2-.5.5-.5h9v6.4z"}))},19942:function(e,t,n){"use strict";var r=n(63027),a=n(51417),o=n(46399),i=n(87997);t.Z=(0,a.compose)([i.withNotices])((e=>{const{image:t,noticeOperations:n,noticeUI:a,onChange:i,placeHolderLabel:s}=e,l=(0,r.createElement)("img",{id:t.id,src:t.url,alt:t.alt}),c=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.MediaPlaceholder,{labels:{title:s},accept:"image/*",allowedTypes:["image"],onSelect:i,onError:e=>n.createErrorNotice(e),notices:a}));return t&&t.url?l:c}))},24384:function(e,t,n){"use strict";n.d(t,{u:function(){return p},X:function(){return d}});var r=n(33163),a=n(94439),o=n(30876),i=n(19118),s=n(90767),l=n(58632),c=n(36012),u=n(32750);const __=r.__,_x=r._x,p="image-compare",d={title:__("Image Compare","jetpack"),description:__("Compare two images with a slider. Works best with images of the same size.","jetpack"),icon:{src:o.Z,foreground:(0,u.m)()},category:(0,c.Z)("media","layout"),keywords:[_x("juxtapose","block search term","jetpack"),_x("photos","block search term","jetpack"),_x("pictures","block search term","jetpack"),_x("side by side","block search term","jetpack"),_x("slider","block search term","jetpack")],attributes:{imageBefore:{type:"object",default:{}},imageAfter:{type:"object",default:{}},caption:{type:"string"},orientation:{type:"string",default:"horizontal"}},example:{attributes:{imageBefore:{id:1,url:l,alt:__("Before","jetpack")},imageAfter:{id:2,url:s,alt:__("After","jetpack")},caption:__("Example image","jetpack")}},edit:a.Z,save:i.Z}},19118:function(e,t,n){"use strict";var r=n(63027),a=n(46399);t.Z=({attributes:e,className:t})=>{const{imageBefore:n,imageAfter:o,caption:i,orientation:s}=e;return(0,r.createElement)("figure",{className:t},(0,r.createElement)("div",{className:"juxtapose","data-mode":s||"horizontal"},(0,r.createElement)("img",{id:n.id,src:n.url,alt:n.alt,width:n.width,height:n.height,className:"image-compare__image-before"}),(0,r.createElement)("img",{id:o.id,src:o.url,alt:o.alt,width:o.width,height:o.height,className:"image-compare__image-after"})),!a.RichText.isEmpty(i)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:i}))}},32282:function(e,t,n){"use strict";var r=n(63027);t.Z=(e,t,n)=>{(0,r.useEffect)((()=>{const r=setTimeout((()=>e(n)),t);return()=>clearTimeout(r)}),[n])}},23166:function(e,t,n){"use strict";var r=n(47531);n.n(r)()((function(){const e={sliders:[],OPTIMIZATION_ACCEPTED:1,OPTIMIZATION_WAS_CONSTRAINED:2};function t(e,t){const n=this;this.image=new Image,this.loaded=!1,this.image.onload=function(){n.loaded=!0,t._onLoaded()},this.image.src=e.src,this.image.alt=e.alt||"",this.label=e.label||!1}function n(e,t){e&&e.classList.add(t)}function r(e,t){e&&e.classList.remove(t)}function a(e){return{width:parseInt(window.getComputedStyle(e).width,10),height:parseInt(window.getComputedStyle(e).height,10)}}function o(e,t){let n;if("string"==typeof t||"number"==typeof t)n=parseInt(t,10);else{const r=e.getBoundingClientRect(),a={top:r.top+document.body.scrollTop+document.documentElement.scrollTop,left:r.left+document.body.scrollLeft+document.documentElement.scrollLeft},o=e.offsetWidth;n=(function(e){let t;return t=e.pageX?e.pageX:e.touches?e.touches[0].pageX:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t}(t)-a.left)/o*100}return n}function i(e,t,n){let r;if("string"==typeof t||"number"==typeof t)r=parseInt(t,10);else{const a=e.getBoundingClientRect(),o={top:a.top+n.body.scrollTop+n.documentElement.scrollTop,left:a.left+n.body.scrollLeft+n.documentElement.scrollLeft},i=e.offsetHeight;r=(function(e){let t;return t=e.pageY?e.pageY:e.touches?e.touches[0].pageY:e.clientY+document.body.scrollTop+document.documentElement.scrollTop,t}(t)-o.top)/i*100}return r}const s={animate:!0,showLabels:!0,makeResponsive:!0};function l(e,n,r){let a;for(a in this.element=e,this.options={animate:!0,showLabels:!0,makeResponsive:!0,startingPosition:"50%",mode:"horizontal",callback:null},this.options)a in r&&(this.options[a]=a in s?"string"!=typeof(o=r[a])?Boolean(o):!("false"===o||""===o):r[a]);var o;2===n.length&&(this.imgBefore=new t(n[0],this),this.imgAfter=new t(n[1],this))}l.prototype={updateSlider:function(e,t){let a;a="vertical"===this.options.mode?i(this.slider,e,this.sliderParentDocument):o(this.slider,e),a=a.toFixed(2)+"%";const s=parseFloat(a),l=100-s+"%";s>0&&s<100&&(r(this.handle,"transition"),r(this.rightImage,"transition"),r(this.leftImage,"transition"),this.options.animate&&t&&(n(this.handle,"transition"),n(this.leftImage,"transition"),n(this.rightImage,"transition")),"vertical"===this.options.mode?(this.handle.style.top=a,this.leftImage.style.height=a,this.rightImage.style.height=l):(this.handle.style.left=a,this.leftImage.style.width=a,this.rightImage.style.width=l),this.sliderPosition=a)},getPosition:function(){return this.sliderPosition},displayLabel:function(e,t){const n=document.createElement("div");n.className="jx-label",n.setAttribute("tabindex",0),function(e,t){document.body.textContent?e.textContent=t:e.innerText=t}(n,t),e.appendChild(n)},setStartingPosition:function(e){this.options.startingPosition=e},calculateDims:function(e,t){const n=(r=this.imgBefore.image,{width:r.naturalWidth,height:r.naturalHeight,aspect:function(){return this.width/this.height}}).aspect();var r;return e?t=e/n:t&&(e=t*n),{width:e,height:t,ratio:n}},responsivizeIframe:function(e){return e.height<window.innerHeight?e.ratio>=1&&(this.wrapper.style.paddingTop=parseInt((window.innerHeight-e.height)/2)+"px"):e.height>window.innerHeight&&(e=this.calculateDims(0,window.innerHeight),this.wrapper.style.paddingLeft=parseInt((window.innerWidth-e.width)/2)+"px"),e},setWrapperDimensions:function(){const e=a(this.wrapper.parentNode).width,t=a(this.wrapper.parentNode).height;let n=this.calculateDims(e,t);window.location===window.parent.location||this.options.makeResponsive||(n=this.responsivizeIframe(n)),this.wrapper.style.height=parseInt(n.height)+"px",this.wrapper.style.width=parseInt(n.width)+"px"},optimizeWrapper:function(t){let n=e.OPTIMIZATION_ACCEPTED;return this.imgBefore.image.naturalWidth>=t&&this.imgAfter.image.naturalWidth>=t?(this.wrapper.style.width=t+"px",n=e.OPTIMIZATION_WAS_CONSTRAINED):this.imgAfter.image.naturalWidth<t?this.wrapper.style.width=this.imgAfter.image.naturalWidth+"px":this.wrapper.style.width=this.imgBefore.image.naturalWidth+"px",this.setWrapperDimensions(),n},_onLoaded:function(){if(this.imgBefore&&!0===this.imgBefore.loaded&&this.imgAfter&&!0===this.imgAfter.loaded){var e;if(this.wrapper=this.element,!this.wrapper||this.wrapper.querySelector(".jx-slider"))return;n(this.wrapper,"juxtapose"),this.wrapper.style.width=this.imgBefore.image.naturalWidth,this.setWrapperDimensions(),this.slider=document.createElement("div"),this.slider.className="jx-slider",this.wrapper.appendChild(this.slider),this.sliderParentDocument=this.wrapper.ownerDocument,"horizontal"!==this.options.mode&&n(this.slider,this.options.mode),this.handle=document.createElement("div"),this.handle.className="jx-handle",this.rightImage=document.createElement("div"),this.rightImage.className="jx-image jx-right",this.rightImage.appendChild(this.imgAfter.image),this.leftImage=document.createElement("div"),this.leftImage.className="jx-image jx-left",this.leftImage.appendChild(this.imgBefore.image),this.slider.appendChild(this.handle),this.slider.appendChild(this.leftImage),this.slider.appendChild(this.rightImage),this.leftArrow=document.createElement("div"),this.rightArrow=document.createElement("div"),this.control=document.createElement("div"),this.controller=document.createElement("div"),this.leftArrow.className="jx-arrow jx-left",this.rightArrow.className="jx-arrow jx-right",this.control.className="jx-control",this.controller.className="jx-controller",this.controller.setAttribute("tabindex",0),this.controller.setAttribute("role","slider"),this.controller.setAttribute("aria-valuenow",50),this.controller.setAttribute("aria-valuemin",0),this.controller.setAttribute("aria-valuemax",100),this.controller.setAttribute("aria-label",(null===(e=window.imageCompareHandle)||void 0===e?void 0:e.msg)||"Slide to compare images"),this.handle.appendChild(this.leftArrow),this.handle.appendChild(this.control),this.handle.appendChild(this.rightArrow),this.control.appendChild(this.controller),this._init()}},_init:function(){this.updateSlider(this.options.startingPosition,!1),!0===this.options.showLabels&&(this.imgBefore.label&&this.displayLabel(this.leftImage,this.imgBefore.label),this.imgAfter.label&&this.displayLabel(this.rightImage,this.imgAfter.label));const t=this;window.addEventListener("resize",(function(){t.setWrapperDimensions()})),this.slider.addEventListener("mousedown",(function(e){e.preventDefault(),t.updateSlider(e,!0);let n=!0;this.addEventListener("mousemove",(function(e){e.preventDefault(),n&&t.updateSlider(e,!1)})),this.addEventListener("mouseup",(function(e){e.preventDefault(),e.stopPropagation(),n=!1}))})),this.slider.addEventListener("touchstart",(function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!0),this.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!1)}))})),this.handle.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;let r=parseFloat(this.style.left);if(37===n){r-=1;const e=parseFloat(this.style.left)-1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}if(39===n){r+=1;const e=parseFloat(this.style.left)+1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}})),this.leftImage.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("90%",!0),t.controller.setAttribute("aria-valuenow",91))})),this.rightImage.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("10%",!0),t.controller.setAttribute("aria-valuenow",10))})),e.sliders.push(this),this.options.callback&&"function"==typeof this.options.callback&&this.options.callback(this)}},e.makeSlider=function(t,r){void 0===r&&(r=e.sliders.length);const a=t,o=a.querySelectorAll("img");if(o.length<2)return;const i={};a.getAttribute("data-animate")&&(i.animate=a.getAttribute("data-animate")),a.getAttribute("data-showlabels")&&(i.showLabels=a.getAttribute("data-showlabels")),a.getAttribute("data-startingposition")&&(i.startingPosition=a.getAttribute("data-startingposition")),a.getAttribute("data-mode")&&(i.mode=a.getAttribute("data-mode")),a.getAttribute("data-makeresponsive")&&(i.mode=a.getAttribute("data-makeresponsive"));return n(t,"juxtapose-"+r),a.innerHTML?a.innerHTML="":a.innerText="",new e.JXSlider(t,[{src:o[0].src,label:o[0].getAttribute("data-label"),alt:o[0].alt},{src:o[1].src,label:o[1].getAttribute("data-label"),alt:o[1].alt}],i)},e.scanPage=function(){const t=document.querySelectorAll(".juxtapose");for(let n=0;n<t.length;n++)e.makeSlider(t[n],n)},e.JXSlider=l,window.juxtapose=e,e.scanPage()}))},85444:function(e,t){"use strict";t.Z={accessToken:{type:"string"},instagramUser:{type:"string"},columns:{type:"number",default:3,min:1,max:6},count:{type:"number",default:9,min:1,max:30},spacing:{type:"number",default:10,min:0,max:50},isStackedOnMobile:{type:"boolean",default:!0}}},65720:function(e,t,n){"use strict";n.d(t,{u:function(){return r},D:function(){return a}});const r=30,a="jetpack-new-instagram-connection"},98192:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(87997),o=n(33163),i=n(65720);const __=o.__,_n=o._n;function s({accountImageTotal:e,attributes:t,currentUserConnected:n,disconnectFromService:s,shouldRenderSidebarNotice:l,setAttributes:c}){const{accessToken:u,columns:p,count:d,instagramUser:m,isStackedOnMobile:h,spacing:f}=t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Account Settings","jetpack")},(0,r.createElement)(a.PanelRow,null,(0,r.createElement)("span",null,__("Account","jetpack")),(0,r.createElement)(a.ExternalLink,{href:`https://www.instagram.com/${m}/`},"@",m)),n&&(0,r.createElement)(a.PanelRow,null,(0,r.createElement)(a.Button,{isDestructive:!0,isLink:!0,onClick:()=>s(u)},__("Disconnect your account","jetpack")))),(0,r.createElement)(a.PanelBody,{title:__("Display Settings","jetpack")},l?(()=>{const t=e?(0,o.sprintf)(_n("There is currently only %s post in your Instagram account.","There are currently only %s posts in your Instagram account.",e,"jetpack"),e):__("There are currently no posts in your Instagram account.","jetpack");return(0,r.createElement)("div",{className:"wp-block-jetpack-instagram-gallery__count-notice"},(0,r.createElement)(a.Notice,{isDismissible:!1,status:"info"},t))})():null,(0,r.createElement)(a.RangeControl,{label:__("Number of Posts","jetpack"),value:d,onChange:e=>c({count:e}),min:1,max:i.u}),(0,r.createElement)(a.RangeControl,{label:__("Number of Columns","jetpack"),value:p,onChange:e=>c({columns:e}),min:1,max:6}),(0,r.createElement)(a.RangeControl,{label:__("Image Spacing (px)","jetpack"),value:f,onChange:e=>c({spacing:e}),min:0,max:50}),(0,r.createElement)(a.ToggleControl,{label:__("Stack on mobile","jetpack"),checked:h,onChange:()=>c({isStackedOnMobile:!h})})))}},70435:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33804),s=n(46399),l=n(87997),c=n(33163),u=n(85444),p=n(65720),d=n(83353),m=n(83037),h=n(17456),f=n(9283),g=n(42177),b=n(5874),v=n(98192);const __=c.__;t.Z=(0,l.withNotices)((e=>{const{attributes:t,className:n,isSelected:a,noticeOperations:c,noticeUI:k,setAttributes:y}=e,{accessToken:E,align:w,columns:_,count:C,isStackedOnMobile:S,spacing:j}=t;(0,r.useEffect)((()=>{const e=(0,d.S)(u.Z,t);(0,i.isEqual)(e,t)||y(e)}),[t,y]);const[x,T]=(0,r.useState)(E),{isRequestingWpcomConnectUrl:N,wpcomConnectUrl:A}=(0,h.Z)(),{images:P,isLoadingGallery:I,setImages:M}=(0,f.Z)({accessToken:E,noticeOperations:c,setAttributes:y,setSelectedAccount:T}),{connectToService:B,disconnectFromService:R,isConnecting:L,isRequestingUserConnections:Z,userConnections:D}=(0,m.Z)({accessToken:E,noticeOperations:c,selectedAccount:x,setAttributes:y,setImages:M,setSelectedAccount:T}),F=(0,b.Z)(),O=C>P.length?P.length:C,z=!I&&(!E||(0,i.isEmpty)(P)),U=!z,$=E&&I&&(0,i.isEmpty)(P),V=!z&&!$,G=o()(n,{[`align${w}`]:w}),H=o()("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${_}`,{"is-stacked-on-mobile":S}),q={gridGap:j,"--latest-instagram-posts-spacing":j?`${j}px`:void 0},W={padding:j},K=()=>{x&&p.D!==x?y({accessToken:x,instagramUser:(0,i.find)(D,{token:x}).username}):B()};return(0,r.createElement)("div",{className:G},z&&(0,r.createElement)(l.Placeholder,{icon:"instagram",instructions:F?Z||D.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:k},F?(()=>{const e=D.length>0,t=[...(0,i.map)(D,(e=>({label:`@${e.username}`,value:e.token}))),{label:__("Add a new account","jetpack"),value:p.D}],n=L||Z||e&&!x;return(0,r.createElement)("div",null,e&&(0,r.createElement)(l.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>T(e),options:t,selected:x}),p.D===x&&(0,r.createElement)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions"},__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")),(0,r.createElement)(l.Button,{disabled:n,isPrimary:!0,onClick:K},L&&__("Connecting…","jetpack"),Z&&__("Loading your connections…","jetpack"),!L&&!Z&&__("Connect to Instagram","jetpack")))})():(0,r.createElement)(l.Button,{disabled:N||!A,href:A,isSecondary:!0},__("Connect to WordPress.com","jetpack"))),$&&(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(l.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack"))),V&&(0,r.createElement)("div",{className:H,style:q},(0,i.times)(a?C:O,(e=>(0,r.createElement)("span",{className:o()("wp-block-jetpack-instagram-gallery__grid-post"),key:e,style:W},(e=>{if(P[e]){const n=P[e];return(0,r.createElement)(g.Z,{alt:n.title||n.url,src:n.url,attributes:t,spacing:j})}return(0,r.createElement)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})})(e))))),U&&(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(v.Z,{accountImageTotal:P.length,attributes:t,currentUserConnected:F,disconnectFromService:R,shouldRenderSidebarNotice:U&&!$&&P.length<C,setAttributes:y})))}))},42177:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(89105),o=n.n(a);function i({src:e,alt:t,spacing:n}){const[a,i]=(0,r.useState)(!1),[s,l]=(0,r.useState)("auto"),c=(0,r.useRef)(),u=()=>{i(!0),l("auto")};(0,r.useEffect)((()=>{const t=e;if(t){const e=new window.Image;e.src=t,e.onload=u}c.current&&l(c.current.parentNode.getBoundingClientRect().width)}),[e]);const p=-1*n,d=o()("wp-block-jetpack-instagram-gallery__placeholder",{"is-loaded":a}),m=a?{margin:p}:{margin:p,height:s},h=o()({"is-loaded":a});return(0,r.createElement)("span",{style:m,className:d},(0,r.createElement)("img",{alt:t,className:h,ref:c,src:e}))}},79171:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(63027),a=n(33163),o=n(9314),i=n(85444),s=n(70435),l=n(32750);const __=a.__,_x=a._x,c="instagram-gallery",u={title:__("Latest Instagram Posts","jetpack"),description:__("Display an automatically updating list of the latest posts from your Instagram feed.","jetpack"),icon:{src:"instagram",foreground:(0,l.m)()},category:"embed",keywords:[_x("images","block search term","jetpack"),_x("photos","block search term","jetpack"),_x("pictures","block search term","jetpack")],supports:{align:!0,html:!1},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!(null==t||!t.raw)&&"wpcom_instagram_widget"===e,transform:({instance:e})=>(0,o.createBlock)("jetpack/instagram-gallery",{columns:e.raw.columns,count:e.raw.count,accessToken:e.raw.token_id})}]},attributes:i.Z,edit:s.Z,save:({attributes:{instagramUser:e}})=>e&&(0,r.createElement)("div",null,(0,r.createElement)("a",{href:`https://www.instagram.com/${e}/`,rel:"noopener noreferrer",target:"_blank"},`https://www.instagram.com/${e}/`))}},83037:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(50285),a=n(33804),o=n(37606),i=n.n(o),s=n(63027),l=n(33163),c=n(65720),u=n(5874);const __=l.__;function p({accessToken:e,noticeOperations:t,selectedAccount:n,setAttributes:o,setImages:l,setSelectedAccount:p}){const[d,m]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),[g,b]=(0,s.useState)([]),v=(0,u.Z)();(0,s.useEffect)((()=>{!e&&v&&(f(!0),i()({path:"/wpcom/v2/instagram-gallery/connections"}).then((e=>{f(!1),b(e)})).catch((()=>{f(!1),b([])})))}),[e,v]),(0,s.useEffect)((()=>{c.D===n||(0,a.find)(g,{token:n})||p(void 0)}),[n,p,g]);return{connectToService:()=>{t.removeAllNotices(),m(!0),i()({path:"/wpcom/v2/instagram-gallery/connect-url"}).then((e=>{const t=new r.Z;t.open(e,"connect-to-instagram-popup","toolbar=0,location=0,menubar=0,"+t.getScreenCenterSpecs(700,700)),t.on("message",(({keyring_id:e})=>{if(m(!1),e){const t=e.toString();o({accessToken:t}),p(t)}})),t.on("close",(e=>{"connect-to-instagram-popup"===e&&m(!1)}))})).catch((()=>{t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),m(!1)}))},disconnectFromService:()=>{t.removeAllNotices(),o({accessToken:void 0,instagramUser:void 0}),l([])},isConnecting:d,isRequestingUserConnections:h,userConnections:g}}},17456:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(37606),a=n.n(r),o=n(65707),i=n(63027),s=n(791),l=n(5874);function c(){const{isAutoDraft:e}=(0,o.useSelect)((e=>{const{status:t}=e("core/editor").getCurrentPost();return{isAutoDraft:"auto-draft"===t}})),{savePost:t}=(0,o.useDispatch)("core/editor"),[n,r]=(0,i.useState)(),[c,u]=(0,i.useState)(!1),p=(0,l.Z)();return(0,i.useEffect)((()=>{p||n||c||(e?t():(u(!0),a()({path:(0,s.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((e=>{r(e),u(!1)}))))}),[p,e,c,t,n]),{isRequestingWpcomConnectUrl:c,wpcomConnectUrl:n}}},9283:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(33804),a=n(37606),o=n.n(a),i=n(63027),s=n(33163),l=n(791),c=n(65720);const __=s.__;function u({accessToken:e,noticeOperations:t,setAttributes:n,setSelectedAccount:a}){const[s,u]=(0,i.useState)([]),[p,d]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{e&&(t.removeAllNotices(),d(!0),o()({path:(0,l.addQueryArgs)("/wpcom/v2/instagram-gallery/gallery",{access_token:e,count:c.u})}).then((({external_name:e,images:o})=>{if(d(!1),!o||!(0,r.isArray)(o))return t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),u([]),n({accessToken:void 0,instagramUser:void 0}),void a(void 0);(0,r.isEmpty)(o)&&t.createErrorNotice(__("No images were found in your Instagram account.","jetpack")),n({instagramUser:e}),u(o)})).catch((()=>{d(!1),u([]),n({accessToken:void 0,instagramUser:void 0}),a(void 0)})))}),[e,n,a]),{images:s,isLoadingGallery:p,setImages:u}}},30265:function(e,t,n){"use strict";n.d(t,{u:function(){return a},X:function(){return o}});var r=n(71969);const a="likes",o={render:r.Z}},71969:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(51417),s=n(48885),l=n(65707),c=n(76725);const __=a.__,u=(0,l.withSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor");return{areLikesEnabled:t("jetpack_likes_enabled")}})),p=(0,l.withDispatch)((e=>{const{editPost:t}=e("core/editor");return{editPost:t}}));t.Z=(0,i.compose)([u,p])((({areLikesEnabled:e,editPost:t})=>(0,r.createElement)(s.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},(0,r.createElement)(c.Z,null,(0,r.createElement)(o.CheckboxControl,{label:__("Show likes.","jetpack"),checked:e,onChange:e=>{t({jetpack_likes_enabled:e})}})))))},8365:function(e,t,n){"use strict";n.d(t,{N3:function(){return r},sf:function(){return a},Cw:function(){return o}});const r="processing",a="success",o="error"},62458:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var r=n(63027),a=n(33163),o=n(87997),i=n(34638),s=n(8365);const __=a.__;function l({auditionNotification:e,clearAudition:t,setAttributes:n,emailPlaceholder:a,processingLabel:l,successLabel:c,errorLabel:u,interests:p,signupFieldTag:d,signupFieldValue:m,connectURL:h}){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{title:__("Text Elements","jetpack")},(0,r.createElement)(o.TextControl,{label:__("Email Placeholder","jetpack"),value:a,onChange:e=>{n({emailPlaceholder:e}),t()}})),(0,r.createElement)(o.PanelBody,{title:__("Notifications","jetpack")},(0,r.createElement)(o.TextControl,{label:__("Processing text","jetpack"),value:l,onChange:t=>{n({processingLabel:t}),e(s.N3)}}),(0,r.createElement)(o.TextControl,{label:__("Success text","jetpack"),value:c,onChange:t=>{n({successLabel:t}),e(s.sf)}}),(0,r.createElement)(o.TextControl,{label:__("Error text","jetpack"),value:u,onChange:t=>{n({errorLabel:t}),e(s.Cw)}})),(0,r.createElement)(o.PanelBody,{title:__("Mailchimp Groups","jetpack")},(0,r.createElement)(i.Z,{interests:p,onChange:(e,t)=>{const r=[...new Set([...p,e])].filter((n=>!(n===e&&!t)&&n));n({interests:r})}}),(0,r.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/send-groups-audience/"},__("Learn about groups","jetpack"))),(0,r.createElement)(o.PanelBody,{title:__("Signup Location Tracking","jetpack")},(0,r.createElement)(o.TextControl,{label:__("Signup Field Tag","jetpack"),placeholder:__("SIGNUP","jetpack"),value:d,onChange:e=>n({signupFieldTag:e})}),(0,r.createElement)(o.TextControl,{label:__("Signup Field Value","jetpack"),placeholder:__("website","jetpack"),value:m,onChange:e=>n({signupFieldValue:e})}),(0,r.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/determine-webpage-signup-location/"},__("Learn about signup location tracking","jetpack"))),(0,r.createElement)(o.PanelBody,{title:__("Mailchimp Connection","jetpack")},(0,r.createElement)(o.ExternalLink,{href:h},__("Manage Connection","jetpack"))))}},83396:function(e,t,n){"use strict";var r=n(33804),a=n(9314),o=n(33163);const __=o.__,i=["submitButtonText","backgroundButtonColor","textButtonColor","submitButtonClasses","customBackgroundButtonColor","customTextButtonColor"];t.Z={attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},submitButtonText:{type:"string",default:__("Join my email list","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},submitButtonClasses:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},migrate:e=>{const t=(0,r.omit)(e,i),n={text:(o=e).submitButtonText||__("Join my email list","jetpack"),textColor:o.textButtonColor,customTextColor:o.customTextButtonColor,backgroundColor:o.backgroundButtonColor,customBackgroundColor:o.customBackgroundButtonColor};var o;return[t,[(0,a.createBlock)("jetpack/button",{element:"button",uniqueId:"mailchimp-widget-id",...n})]]},isEligible:(e,t)=>(0,r.isEmpty)(t)||(0,r.some)((0,r.pick)(e,i),Boolean),save:()=>null}},67634:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(37606),s=n.n(i),l=n(89105),c=n.n(l),u=n(33163),p=n(791),d=n(87997),m=n(46399),h=n(41449),f=n(62458),g=n(5874),b=n(8365);const __=u.__;class v extends o.Component{constructor(){super(...arguments),a()(this,"componentDidMount",(()=>{this.apiCall()})),a()(this,"onError",(e=>{const{noticeOperations:t}=this.props;t.removeAllNotices(),t.createErrorNotice(e)})),a()(this,"apiCall",(()=>{const e=(0,g.Z)();if(e){const t={path:"/wpcom/v2/mailchimp",method:"GET"};s()(t).then((t=>{const n=t.connect_url,r="connected"===t.code?1:2;this.setState({currentUserConnected:e,connected:r,connectURL:n})}),(t=>{this.setState({currentUserConnected:e,connected:2,connectURL:null}),this.onError(t.message)}))}else s()({path:(0,p.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((t=>{const n=t;this.setState({currentUserConnected:e,connected:2,connectURL:n})}))})),a()(this,"auditionNotification",(e=>{this.setState({audition:e}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(this.clearAudition,3e3)})),a()(this,"clearAudition",(()=>{this.setState({audition:null})})),a()(this,"labelForAuditionType",(e=>{const{attributes:t}=this.props,{processingLabel:n,successLabel:r,errorLabel:a}=t;return e===b.N3?n:e===b.sf?r:e===b.Cw?a:null})),a()(this,"roleForAuditionType",(e=>e===b.Cw?"alert":"status")),a()(this,"render",(()=>{const{attributes:e,className:t,notices:n,noticeUI:r,setAttributes:a}=this.props,{audition:i,connected:s,connectURL:l,currentUserConnected:u}=this.state,{emailPlaceholder:p,consentText:g,interests:b,processingLabel:v,successLabel:k,errorLabel:y,preview:E,signupFieldTag:w,signupFieldValue:_}=e,C="wp-block-jetpack-mailchimp",S=(0,o.createElement)(d.Placeholder,{icon:h.qv,notices:n},(0,o.createElement)(d.Spinner,null)),j=(0,o.createElement)(d.Placeholder,{className:"wp-block-jetpack-mailchimp",icon:h.qv,label:__("Mailchimp","jetpack"),notices:n,instructions:__("You need to connect your Mailchimp account and choose an audience in order to start collecting Email subscribers.","jetpack")},(0,o.createElement)(d.Button,{isSecondary:!0,isLarge:!0,href:l,target:"_blank"},__("Set up Mailchimp form","jetpack")),(0,o.createElement)("div",{className:`${C}-recheck`},(0,o.createElement)(d.Button,{isLink:!0,onClick:this.apiCall},__("Re-check Connection","jetpack")))),x=(0,o.createElement)(d.Placeholder,{className:"wp-block-jetpack-mailchimp",icon:h.qv,label:__("Mailchimp","jetpack"),notices:n,instructions:__("First, you'll need to connect your WordPress.com account.","jetpack")},(0,o.createElement)(d.Button,{isSecondary:!0,isLarge:!0,href:l},__("Connect to WordPress.com","jetpack"))),T=(0,o.createElement)(m.InspectorControls,null,(0,o.createElement)(f.Q,{auditionNotification:this.auditionNotification,clearAudition:this.clearAudition,emailPlaceholder:p,processingLabel:v,successLabel:k,errorLabel:y,interests:b,setAttributes:this.props.setAttributes,signupFieldTag:w,signupFieldValue:_,connectURL:l})),N=c()(t,{[`${C}_notication-audition`]:i}),A=(0,o.createElement)("div",{className:N},(0,o.createElement)(d.TextControl,{"aria-label":p,className:"wp-block-jetpack-mailchimp_text-input",disabled:!0,onChange:()=>!1,placeholder:p,title:__("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),(0,o.createElement)(m.InnerBlocks,{template:[[h.Ss.name,h.Ss.attributes]],templateLock:"all"}),(0,o.createElement)(m.RichText,{tagName:"p",placeholder:__("Write consent text","jetpack"),value:g,onChange:e=>a({consentText:e}),inlineToolbar:!0}),i&&(0,o.createElement)("div",{className:`${C}_notification ${C}_${i}`,role:this.roleForAuditionType(i)},this.labelForAuditionType(i))),P=A;return(0,o.createElement)(o.Fragment,null,r,E&&P,!E&&0===s&&S,!E&&2===s&&u&&j,!E&&2===s&&!u&&x,!E&&1===s&&T,!E&&1===s&&A)})),this.state={audition:null,connected:0,connectURL:null,currentUserConnected:null},this.timeout=null}}t.Z=(0,d.withNotices)(v)},41449:function(e,t,n){"use strict";n.d(t,{u2:function(){return u},qv:function(){return p},Ss:function(){return d},Xd:function(){return m}});var r=n(63027),a=n(33163),o=n(46399),i=n(87997),s=n(83396),l=n(67634),c=n(32750);const __=a.__,_x=a._x,u="mailchimp",p=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(i.G,{transform:"translate(-45.478101,-100.73059)"},(0,r.createElement)(i.G,{transform:"matrix(0.26458333,0,0,0.26458333,15.6741,59.72)"},(0,r.createElement)(i.Path,{d:"m 176.433,197.529 c 0.657,-0.078 1.286,-0.082 1.865,0 0.335,-0.768 0.392,-2.091 0.091,-3.532 -0.447,-2.142 -1.053,-3.438 -2.305,-3.236 -1.252,0.202 -1.298,1.754 -0.85,3.895 0.252,1.205 0.7,2.235 1.199,2.873"}),(0,r.createElement)(i.Path,{d:"m 165.688,199.224 c 0.895,0.393 1.446,0.654 1.661,0.426 0.139,-0.142 0.097,-0.413 -0.117,-0.762 -0.442,-0.721 -1.351,-1.453 -2.316,-1.864 -1.972,-0.849 -4.325,-0.567 -6.14,0.737 -0.599,0.439 -1.167,1.047 -1.086,1.416 0.026,0.119 0.116,0.209 0.326,0.239 0.494,0.056 2.22,-0.816 4.209,-0.938 1.403,-0.086 2.566,0.353 3.462,0.746"}),(0,r.createElement)(i.Path,{d:"m 163.887,200.252 c -1.167,0.184 -1.81,0.569 -2.223,0.926 -0.352,0.308 -0.57,0.649 -0.568,0.888 0.001,0.114 0.05,0.18 0.089,0.213 0.053,0.047 0.116,0.073 0.192,0.073 0.263,0 0.854,-0.237 0.854,-0.237 1.623,-0.581 2.694,-0.51 3.755,-0.39 0.586,0.066 0.864,0.102 0.992,-0.099 0.038,-0.058 0.084,-0.183 -0.033,-0.373 -0.273,-0.443 -1.451,-1.192 -3.057,-1.001"}),(0,r.createElement)(i.Path,{d:"m 172.805,204.025 c 0.792,0.389 1.664,0.236 1.948,-0.341 0.284,-0.577 -0.128,-1.361 -0.92,-1.75 -0.792,-0.389 -1.664,-0.236 -1.948,0.341 -0.284,0.578 0.128,1.361 0.92,1.75"}),(0,r.createElement)(i.Path,{d:"m 177.896,199.576 c -0.643,-0.011 -1.177,0.695 -1.192,1.578 -0.015,0.883 0.495,1.606 1.138,1.617 0.643,0.011 1.177,-0.695 1.192,-1.578 0.015,-0.882 -0.495,-1.606 -1.138,-1.617"}),(0,r.createElement)(i.Path,{d:"m 134.683,215.485 c -0.16,-0.201 -0.423,-0.14 -0.678,-0.08 -0.178,0.042 -0.379,0.088 -0.6,0.085 -0.473,-0.009 -0.874,-0.211 -1.099,-0.557 -0.293,-0.45 -0.276,-1.121 0.047,-1.889 l 0.151,-0.344 c 0.516,-1.158 1.379,-3.095 0.41,-4.941 -0.73,-1.39 -1.92,-2.255 -3.351,-2.437 -1.374,-0.174 -2.788,0.335 -3.69,1.33 -1.423,1.57 -1.646,3.707 -1.371,4.462 0.101,0.276 0.259,0.353 0.373,0.369 0.242,0.032 0.6,-0.144 0.824,-0.747 l 0.064,-0.196 c 0.1,-0.319 0.286,-0.913 0.591,-1.389 0.368,-0.574 0.94,-0.969 1.612,-1.114 0.684,-0.147 1.384,-0.016 1.97,0.368 0.997,0.652 1.381,1.874 0.955,3.039 -0.22,0.603 -0.578,1.756 -0.499,2.703 0.16,1.917 1.339,2.687 2.398,2.769 1.03,0.039 1.75,-0.54 1.932,-0.962 0.107,-0.25 0.017,-0.402 -0.042,-0.467"}),(0,r.createElement)(i.Path,{d:"m 144.475,180.275 c 3.36,-3.882 7.495,-7.257 11.2,-9.152 0.128,-0.066 0.264,0.073 0.195,0.199 -0.294,0.533 -0.861,1.674 -1.04,2.539 -0.028,0.135 0.119,0.236 0.233,0.159 2.305,-1.571 6.314,-3.255 9.831,-3.471 0.151,-0.009 0.224,0.184 0.104,0.277 -0.535,0.41 -1.12,0.978 -1.547,1.552 -0.073,0.098 -0.004,0.238 0.118,0.239 2.469,0.018 5.95,0.882 8.219,2.155 0.153,0.086 0.044,0.383 -0.128,0.344 -3.433,-0.787 -9.052,-1.384 -14.89,0.04 -5.211,1.271 -9.189,3.234 -12.09,5.344 -0.147,0.107 -0.323,-0.087 -0.204,-0.224 z m 16.732,37.612 0.001,0.002 0.002,0.004 z m 13.854,1.635 c 0.1,-0.042 0.168,-0.155 0.157,-0.268 -0.014,-0.139 -0.138,-0.24 -0.277,-0.226 0,0 -7.169,1.061 -13.942,-1.418 0.738,-2.398 2.699,-1.532 5.664,-1.293 5.344,0.319 10.134,-0.462 13.674,-1.478 3.067,-0.88 7.096,-2.616 10.225,-5.086 1.055,2.318 1.428,4.87 1.428,4.87 0,0 0.817,-0.146 1.5,0.274 0.645,0.397 1.118,1.222 0.795,3.356 -0.658,3.986 -2.352,7.222 -5.2,10.199 -1.734,1.866 -3.838,3.488 -6.246,4.668 -1.279,0.672 -2.64,1.253 -4.079,1.722 -10.736,3.507 -21.726,-0.348 -25.268,-8.626 -0.283,-0.622 -0.522,-1.274 -0.71,-1.955 -1.509,-5.455 -0.228,-12 3.778,-16.12 v -0.002 c 0.247,-0.262 0.499,-0.571 0.499,-0.96 0,-0.325 -0.207,-0.668 -0.386,-0.912 -1.402,-2.033 -6.257,-5.497 -5.282,-12.201 0.7,-4.816 4.912,-8.208 8.839,-8.007 l 0.995,0.057 c 1.702,0.101 3.186,0.319 4.587,0.378 2.345,0.102 4.453,-0.239 6.951,-2.32 0.842,-0.702 1.518,-1.311 2.661,-1.504 0.12,-0.021 0.419,-0.128 1.016,-0.1 0.61,0.033 1.19,0.2 1.711,0.547 2.002,1.332 2.286,4.559 2.39,6.919 0.059,1.347 0.222,4.607 0.278,5.543 0.127,2.14 0.69,2.441 1.828,2.816 0.64,0.211 1.234,0.368 2.11,0.614 2.65,0.744 4.221,1.499 5.212,2.469 0.591,0.606 0.866,1.25 0.951,1.864 0.312,2.28 -1.77,5.096 -7.283,7.655 -6.026,2.797 -13.337,3.505 -18.388,2.942 l -1.77,-0.2 c -4.04,-0.544 -6.345,4.677 -3.92,8.255 1.563,2.306 5.82,3.806 10.079,3.807 9.765,0.001 17.271,-4.169 20.063,-7.77 l 0.223,-0.318 c 0.138,-0.207 0.024,-0.321 -0.147,-0.204 -2.281,1.561 -12.413,7.758 -23.251,5.893 0,0 -1.317,-0.217 -2.519,-0.684 -0.955,-0.372 -2.955,-1.292 -3.198,-3.343 8.746,2.705 14.253,0.148 14.253,0.148 z m -48.039,-20.785 c -3.042,0.591 -5.723,2.315 -7.362,4.697 -0.98,-0.817 -2.805,-2.399 -3.128,-3.016 -2.617,-4.97 2.856,-14.632 6.68,-20.089 9.45,-13.485 24.25,-23.692 31.101,-21.84 1.114,0.315 4.803,4.592 4.803,4.592 0,0 -6.849,3.8 -13.2,9.097 -8.558,6.589 -15.022,16.166 -18.895,26.559 z m 5.111,22.805 c -0.46,0.079 -0.93,0.11 -1.404,0.098 -4.577,-0.123 -9.52,-4.243 -10.011,-9.129 -0.543,-5.401 2.217,-9.557 7.103,-10.543 0.584,-0.118 1.29,-0.186 2.051,-0.146 2.738,0.15 6.772,2.252 7.693,8.216 0.816,5.282 -0.48,10.659 -5.432,11.503 z m 61.996,-9.564 c -0.039,-0.139 -0.295,-1.072 -0.646,-2.197 -0.351,-1.126 -0.714,-1.917 -0.714,-1.917 1.408,-2.107 1.433,-3.992 1.245,-5.059 -0.2,-1.323 -0.751,-2.45 -1.861,-3.616 -1.11,-1.165 -3.381,-2.359 -6.572,-3.255 l -1.674,-0.465 c -0.008,-0.069 -0.088,-3.947 -0.16,-5.612 -0.053,-1.204 -0.156,-3.083 -0.739,-4.933 -0.695,-2.505 -1.905,-4.697 -3.416,-6.099 4.17,-4.322 6.773,-9.084 6.766,-13.168 -0.012,-7.855 -9.659,-10.232 -21.548,-5.309 l -2.519,1.069 c -0.011,-0.011 -4.554,-4.468 -4.622,-4.528 -13.555,-11.823 -55.935,35.284 -42.386,46.725 l 2.961,2.509 c -0.768,1.99 -1.07,4.27 -0.823,6.721 0.316,3.149 1.94,6.167 4.573,8.499 2.499,2.214 5.785,3.616 8.973,3.613 5.273,12.151 17.321,19.605 31.447,20.025 15.153,0.45 27.873,-6.66 33.203,-19.432 0.349,-0.896 1.828,-4.935 1.828,-8.501 0,-3.583 -2.026,-5.068 -3.316,-5.068"})))),d={name:"jetpack/button",attributes:{element:"button",text:__("Join my Mailchimp audience","jetpack"),uniqueId:"mailchimp-widget-id"}},m={title:__("Mailchimp","jetpack"),icon:{src:p,foreground:(0,c.m)()},description:__("A form enabling readers to join a Mailchimp audience.","jetpack"),category:"grow",keywords:[_x("email","block search term","jetpack"),_x("subscription","block search term","jetpack"),_x("newsletter","block search term","jetpack")],attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},edit:l.Z,save:()=>(0,r.createElement)(o.InnerBlocks.Content,null),example:{attributes:{preview:!0},innerBlocks:[d]},deprecated:[s.Z]}},34638:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(37606),s=n.n(i),l=n(87997);class c extends o.Component{constructor(...e){super(...e),a()(this,"state",{interest_categories:[]}),a()(this,"retrieveGroups",(()=>{s()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then((e=>{const{interest_categories:t}=e;this.setState({interest_categories:t})}))})),a()(this,"render",(()=>{const{interest_categories:e}=this.state,{interests:t,onChange:n}=this.props;return(0,o.createElement)(o.Fragment,null,e&&(e||[]).map((e=>e.interests.map((e=>(0,o.createElement)(l.CheckboxControl,{label:e.name,value:e.id,checked:t.includes(e.id),onChange:t=>n(e.id,t),key:e.id}))))))}))}componentDidMount(){this.retrieveGroups()}}t.Z=c,c.defaultProps={interests:[],onChange:()=>null}},90999:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(82135);const __=a.__;class s extends r.Component{render(){const{onClose:e,onAddPoint:t,onError:n,apiKey:a}=this.props;return(0,r.createElement)(o.Button,{className:"component__add-point"},__("Add marker","jetpack"),(0,r.createElement)(o.Popover,{className:"component__add-point__popover",position:"bottom center"},(0,r.createElement)(o.Button,{className:"component__add-point__close",onClick:e},(0,r.createElement)(o.Dashicon,{icon:"no"})),(0,r.createElement)(i.Z,{onAddPoint:t,label:__("Add a location","jetpack"),apiKey:a,onError:n})))}}s.defaultProps={onAddPoint:()=>{},onClose:()=>{},onError:()=>{}},t.Z=s},49203:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(33804),l=n(87997),c=n(22291),u=n(74125),p=n(25170),d=n(25531),m=n(45388);const __=i.__;class h extends o.Component{constructor(){super(...arguments),a()(this,"onMarkerClick",(e=>{const{onMarkerClick:t}=this.props;this.setState({activeMarker:e}),t()})),a()(this,"onMapClick",(()=>{this.setState({activeMarker:null})})),a()(this,"clearCurrentMarker",(()=>{this.setState({activeMarker:null})})),a()(this,"updateActiveMarker",(e=>{const{points:t}=this.props,{activeMarker:n}=this.state,{index:r}=n.props,a=t.slice(0);(0,s.assign)(a[r],e),this.props.onSetPoints(a)})),a()(this,"deleteActiveMarker",(()=>{const{points:e}=this.props,{activeMarker:t}=this.state,{index:n}=t.props,r=e.slice(0);r.splice(n,1),this.props.onSetPoints(r),this.setState({activeMarker:null})})),a()(this,"sizeMap",(()=>{const{mapHeight:e}=this.props,{map:t}=this.state,n=this.mapRef.current;if(e)n.style.height=e+"px";else{const e=n.offsetWidth,t=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,r=Math.min(e*(3/4),t);n.style.height=r+"px"}t.resize(),this.setBoundsByMarkers()})),a()(this,"updateZoom",(()=>{const{zoom:e}=this.props,{map:t}=this.state;t.setZoom(e),t.updateZoom(e)})),a()(this,"setBoundsByMarkers",(()=>{const{admin:e,onSetMapCenter:t,onSetZoom:n,points:r,zoom:a}=this.props,{map:o,activeMarker:i,mapboxgl:s,zoomControl:l,boundsSetProgrammatically:c}=this.state;if(!o)return;if(r.length&&e?o.dragPan.disable():o.dragPan.enable(),!r.length)return;if(i)return;const u=new s.LngLatBounds;if(r.forEach((e=>{u.extend([e.coordinates.longitude,e.coordinates.latitude])})),t(u.getCenter()),r.length>1){o.fitBounds(u,{padding:{top:80,bottom:80,left:40,right:40}}),this.setState({boundsSetProgrammatically:!0});try{o.removeControl(l)}catch(p){}}else{if(o.setCenter(u.getCenter()),c){const e=12;o.setZoom(e),n(e)}else o.setZoom(parseInt(a,10));o.addControl(l),this.setState({boundsSetProgrammatically:!1})}})),a()(this,"scriptsLoaded",(()=>{const{mapCenter:e,points:t}=this.props;this.setState({loaded:!0}),t.length,this.initMap(e)})),a()(this,"googlePoint2Mapbox",(e=>e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")?e:{lat:e.latitude||0,lng:e.longitude||0})),this.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},this.mapRef=(0,o.createRef)(),this.debouncedSizeMap=(0,s.debounce)(this.sizeMap,250)}render(){const{points:e,admin:t,children:n,markerColor:r}=this.props,{map:a,activeMarker:i,mapboxgl:p}=this.state,{onMarkerClick:d,deleteActiveMarker:m,updateActiveMarker:h}=this,f=(0,s.get)(i,"props.point")||{},{title:g,caption:b}=f,v=o.Children.map(n,(e=>{if("AddPoint"===(0,s.get)(e,"props.tagName"))return e})),k=a&&p&&e.map(((e,t)=>(0,o.createElement)(c.Z,{mapRef:this.mapRef,key:t,point:e,index:t,map:a,mapboxgl:p,markerColor:r,onClick:d}))),y=p&&(0,o.createElement)(u.Z,{activeMarker:i,map:a,mapboxgl:p,unsetActiveMarker:()=>this.setState({activeMarker:null})},i&&t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.TextControl,{label:__("Marker Title","jetpack"),value:g,onChange:e=>h({title:e})}),(0,o.createElement)(l.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:b,rows:"2",tag:"textarea",onChange:e=>h({caption:e})}),(0,o.createElement)(l.Button,{onClick:m,className:"wp-block-jetpack-map__delete-btn"},(0,o.createElement)(l.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack"))),i&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",null,g),(0,o.createElement)("p",null,b)));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},k),y,v)}componentDidMount(){const{apiKey:e}=this.props;e&&this.loadMapLibraries()}componentWillUnmount(){this.debouncedSizeMap.cancel(),window.removeEventListener("resize",this.debouncedSizeMap)}componentDidUpdate(e){const{admin:t,apiKey:n,children:r,points:a,mapStyle:o,mapDetails:i,scrollToZoom:s,showFullscreenButton:l}=this.props,{map:c,fullscreenControl:u}=this.state;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),o===e.mapStyle&&i===e.mapDetails||c.setStyle(this.getMapStyle()),s!==e.scrollToZoom&&(s?c.scrollZoom.enable():c.scrollZoom.disable()),l!==e.showFullscreenButton&&(l?(c.addControl(u),t&&u._fullscreenButton&&(u._fullscreenButton.disabled=!0)):c.removeControl(u))}getMapStyle(){const{mapStyle:e,mapDetails:t}=this.props;return(0,p.h)(e,t)}getMapType(){const{mapStyle:e}=this.props;switch(e){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";default:return"ROADMAP"}}loadMapLibraries(){const{apiKey:e}=this.props,{currentWindow:t}=(0,d.bL)(this.mapRef.current),n={"mapbox-gl-js":()=>{(0,d.Dz)(t,"mapboxgl").then((t=>{t.accessToken=e,this.setState({mapboxgl:t},this.scriptsLoaded)}))}};(0,d.Pp)(m,n,this.mapRef.current)}initMap(e){const{mapboxgl:t}=this.state,{zoom:n,onMapLoaded:r,onError:a,scrollToZoom:o,showFullscreenButton:i,admin:s}=this.props;let l=null;try{l=new t.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(n,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(p){return void a("mapbox_error",p.message)}o||l.scrollZoom.disable();const c=new t.FullscreenControl;l.on("error",(e=>{a("mapbox_error",e.error.message)}));const u=new t.NavigationControl({showCompass:!1,showZoom:!0});l.on("zoomend",(()=>{this.props.onSetZoom(l.getZoom())})),l.on("moveend",(()=>{const{onSetMapCenter:e,points:t}=this.props;t.length<1&&e(l.getCenter())})),l.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:l,zoomControl:u,fullscreenControl:c},(()=>{this.debouncedSizeMap(),l.addControl(u),i&&(l.addControl(c),s&&c._fullscreenButton&&(c._fullscreenButton.disabled=!0)),this.mapRef.current.addEventListener("alignmentChanged",this.debouncedSizeMap),l.resize(),r(),this.setState({loaded:!0}),window.addEventListener("resize",this.debouncedSizeMap)}))}}h.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:()=>{},onSetMapCenter:()=>{},onMapLoaded:()=>{},onMarkerClick:()=>{},onError:()=>{},markerColor:"red",apiKey:null,mapCenter:{}},t.Z=h},29155:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(46399),s=n(58467),l=n(55468);const __=a.__;t.Z=({attributes:e,setAttributes:t,state:n,setState:a,context:c,mapRef:u,instanceId:p,minHeight:d,removeAPIKey:m,updateAPIKey:h,setPointVisibility:f})=>{const g=e=>{t({align:e}),setTimeout(u.current.sizeMap,0)};return"toolbar"===c?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.BlockAlignmentToolbar,{value:e.align,onChange:g,controls:["center","wide","full"]}),(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{icon:l.X.markerIcon,label:__("Add a marker","jetpack"),onClick:f}))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.PanelColorSettings,{title:__("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:e.markerColor,onChange:e=>t({markerColor:e}),label:__("Marker Color","jetpack")}]}),(0,r.createElement)(o.PanelBody,{title:__("Map Settings","jetpack")},(0,r.createElement)(o.BaseControl,{label:__("Height in pixels","jetpack"),id:`block-jetpack-map-height-input-${p}`},(0,r.createElement)("input",{type:"number",id:`block-jetpack-map-height-input-${p}`,className:"wp-block-jetpack-map__height_input",onChange:e=>{t({mapHeight:e.target.value}),e.target!==document.activeElement&&setTimeout(u.current.sizeMap,0)},onBlur:n=>{const{mapHeight:r}=e;let a=parseInt(n.target.value,10);isNaN(a)?a=null:null==r?a=u.current.mapRef.current.offsetHeight:a<d&&(a=d),t({mapHeight:a}),setTimeout(u.current.sizeMap,0)},value:e.mapHeight||"",min:d,step:"10"})),(0,r.createElement)(o.RangeControl,{label:__("Zoom level","jetpack"),help:e.points.length>1&&__("The default zoom level cannot be changed when there are two or more markers on the map.","jetpack"),disabled:e.points.length>1,value:e.zoom,onChange:e=>{t({zoom:e}),setTimeout(u.current.updateZoom,0)},min:0,max:22}),(0,r.createElement)(o.ToggleControl,{label:__("Show street names","jetpack"),checked:e.mapDetails,onChange:e=>t({mapDetails:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Scroll to zoom","jetpack"),help:__("Allow the map to capture scrolling, and zoom in or out.","jetpack"),checked:e.scrollToZoom,onChange:e=>t({scrollToZoom:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Show Fullscreen Button","jetpack"),help:__("Allow your visitors to display the map in fullscreen.","jetpack"),checked:e.showFullscreenButton,onChange:e=>t({showFullscreenButton:e})})),e.points.length?(0,r.createElement)(o.PanelBody,{title:__("Markers","jetpack"),initialOpen:!1},(0,r.createElement)(s.Z,{points:e.points,onChange:e=>{t({points:e})}})):null,(0,r.createElement)(o.PanelBody,{title:__("Mapbox Access Token","jetpack"),initialOpen:!1},(0,r.createElement)(o.TextControl,{help:"wpcom"===n.apiKeySource&&(0,r.createElement)(r.Fragment,null,__("You can optionally enter your own access token.","jetpack")," ",(0,r.createElement)(o.ExternalLink,{href:"https://account.mapbox.com/access-tokens/"},__("Find it on Mapbox","jetpack"))),label:__("Mapbox Access Token","jetpack"),value:n.apiKeyControl,onChange:e=>a({apiKeyControl:e})}),(0,r.createElement)(o.ButtonGroup,null,(0,r.createElement)(o.Button,{type:"button",onClick:h,disabled:!n.apiKeyControl||n.apiKeyControl===n.apiKey},__("Update Token","jetpack")),(0,r.createElement)(o.Button,{type:"button",onClick:m,disabled:"wpcom"===n.apiKeySource,isSecondary:!0},__("Remove Token","jetpack")))))}},55530:function(e,t,n){"use strict";var r=n(78575);t.Z={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,showFullscreenButton:!0,className:t}},save:r.Z}},78575:function(e,t,n){"use strict";var r=n(63027);class a extends r.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:a,points:o,zoom:i,mapCenter:s,markerColor:l,scrollToZoom:c,mapHeight:u}=e,p=o.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:o},e.title))})),d=t?`align${t}`:null;return(0,r.createElement)("div",{className:d,"data-map-style":n,"data-map-details":a,"data-points":JSON.stringify(o),"data-zoom":i,"data-map-center":JSON.stringify(s),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null},o.length>0&&(0,r.createElement)("ul",null,p))}}t.Z=a},18466:function(e,t,n){"use strict";var r=n(19701);t.Z={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,className:t}},save:r.Z}},19701:function(e,t,n){"use strict";var r=n(63027);class a extends r.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:a,points:o,zoom:i,mapCenter:s,markerColor:l,scrollToZoom:c,mapHeight:u,showFullscreenButton:p}=e,d=o.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:o},e.title))})),m=t?`align${t}`:null;return(0,r.createElement)("div",{className:m,"data-map-style":n,"data-map-details":a,"data-points":JSON.stringify(o),"data-zoom":i,"data-map-center":JSON.stringify(s),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null,"data-show-fullscreen-button":p||null},o.length>0&&(0,r.createElement)("ul",null,d))}}t.Z=a},47254:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(37606),s=n.n(i),l=n(33163),c=n(87997),u=n(46399),p=n(90999),d=n(49203),m=n(29155),h=n(55468),f=n(96406),g=n(51417),b=n(65707),v=n(8185);const __=l.__,k={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};class y extends o.Component{constructor(){super(...arguments),a()(this,"addPoint",(e=>{const{attributes:t,setAttributes:n}=this.props,{points:r}=t,a=r.slice(0);let o=!1;r.map((t=>{t.id===e.id&&(o=!0)})),o||(a.push(e),n({points:a}),this.setState({addPointVisibility:!1}))})),a()(this,"setPointVisibility",(()=>{this.setState({addPointVisibility:!0})})),a()(this,"updateAPIKeyControl",(e=>{this.setState({apiKeyControl:e.target.value})})),a()(this,"updateAPIKey",(()=>{const{noticeOperations:e}=this.props,{apiKeyControl:t}=this.state;e.removeAllNotices(),t&&this.apiCall(t,"POST")})),a()(this,"removeAPIKey",(()=>{this.apiCall(null,"DELETE")})),a()(this,"onError",((e,t)=>{const{noticeOperations:n}=this.props;n.removeAllNotices(),n.createErrorNotice(t)})),a()(this,"onMapResize",((e,t,n,r)=>{const{onResizeStop:a,setAttributes:o}=this.props;a();o({mapHeight:parseInt(this.mapRef.current.mapRef.current.offsetHeight+r.height,10)}),setTimeout(this.mapRef.current.sizeMap,0)})),this.state={addPointVisibility:!1,apiState:0},this.mapRef=(0,o.createRef)()}apiCall(e=null,t="GET"){const{noticeOperations:n}=this.props,r="/wpcom/v2/service-api-keys/mapbox",a=e?{path:r,method:t,data:{service_api_key:e}}:{path:r,method:t};this.setState({apiRequestOutstanding:!0},(()=>{s()(a).then((({service_api_key:e,service_api_key_source:t})=>{n.removeAllNotices();const r=e?2:1,a="wpcom"===t?"":e;this.setState({apiState:r,apiKey:e,apiKeyControl:a,apiKeySource:t,apiRequestOutstanding:!1})}),(({message:e})=>{this.onError(null,e),this.setState({apiState:1,apiRequestOutstanding:!1})}))}))}componentDidMount(){this.apiCall()}render(){const{className:e,setAttributes:t,attributes:n,noticeUI:r,notices:a,isSelected:i,instanceId:s,onResizeStart:l}=this.props,{mapDetails:g,points:b,zoom:y,mapCenter:E,markerColor:w,preview:_,mapHeight:C,showFullscreenButton:S}=n,{addPointVisibility:j,apiKey:x,apiKeyControl:T,apiState:N,apiRequestOutstanding:A}=this.state,P=(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.BlockControls,null,(0,o.createElement)(m.Z,{attributes:n,setAttributes:t,state:this.state,setPointVisibility:this.setPointVisibility,context:"toolbar",mapRef:this.mapRef})),(0,o.createElement)(u.InspectorControls,null,(0,o.createElement)(m.Z,{attributes:n,setAttributes:t,state:this.state,setState:this.setState,mapRef:this.mapRef,instanceId:s,minHeight:400,removeAPIKey:this.removeAPIKey,updateAPIKey:this.updateAPIKey}))),I=(0,o.createElement)(c.Placeholder,{icon:h.X.icon},(0,o.createElement)(c.Spinner,null)),M=(0,o.createElement)(o.Fragment,null,__("To use the map block, you need an Access Token.","jetpack"),(0,o.createElement)("br",null),(0,o.createElement)(c.ExternalLink,{href:"https://www.mapbox.com"},__("Create an account or log in to Mapbox.","jetpack")),(0,o.createElement)("br",null),__("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),B=(0,o.createElement)(c.Placeholder,{icon:h.X.icon,label:__("Map","jetpack"),notices:a,instructions:M},(0,o.createElement)(o.Fragment,null,(0,o.createElement)("form",null,(0,o.createElement)("input",{type:"text",className:"components-placeholder__input",disabled:A,placeholder:__("Paste Token Here","jetpack"),value:T,onChange:this.updateAPIKeyControl}),(0,o.createElement)(c.Button,{isSecondary:!0,disabled:A||!T||T.length<1,onClick:this.updateAPIKey},__("Set Token","jetpack"))))),R=i&&b.length<=1,L=(0,v.t)(h.X.styles,n.className),Z=(0,o.createElement)(o.Fragment,null,P,(0,o.createElement)("div",{className:e},(0,o.createElement)(c.ResizableBox,{size:{height:C||"auto",width:"100%"},grid:[10,10],showHandle:i,minHeight:400,enable:k,onResizeStart:l,onResizeStop:this.onMapResize},(0,o.createElement)("div",{className:"wp-block-jetpack-map__map_wrapper"},(0,o.createElement)(d.Z,{ref:this.mapRef,scrollToZoom:R,showFullscreenButton:S,mapStyle:L||"default",mapDetails:g,mapHeight:C,points:b,zoom:y,mapCenter:E,markerColor:w,onSetZoom:e=>{t({zoom:e})},admin:!0,apiKey:x,onSetPoints:e=>t({points:e}),onSetMapCenter:e=>t({mapCenter:e}),onMapLoaded:()=>this.setState({addPointVisibility:!b.length}),onMarkerClick:()=>this.setState({addPointVisibility:!1}),onError:this.onError},i&&j&&(0,o.createElement)(p.Z,{onAddPoint:this.addPoint,onClose:()=>this.setState({addPointVisibility:!1}),apiKey:x,onError:this.onError,tagName:"AddPoint"})))))),D=h.X.styles.find((e=>e.name===L)),F=(0,o.createElement)("div",null,(0,o.createElement)("img",{alt:__("Map Preview","jetpack"),src:D?D.preview:f}));return(0,o.createElement)(o.Fragment,null,r,_&&F,!_&&0===N&&I,!_&&1===N&&B,!_&&2===N&&Z)}}t.Z=(0,g.compose)([c.withNotices,(0,b.withDispatch)((e=>{const{toggleSelection:t}=e("core/block-editor");return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}))])(y)},56309:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(55468),a=n(47254),o=n(26099),i=n(55530),s=n(18466),l=n(32750);const{name:c}=r.X,u={title:r.X.title,icon:{src:r.X.icon,foreground:(0,l.m)()},category:r.X.category,keywords:r.X.keywords,description:r.X.description,attributes:r.X.attributes,supports:r.X.supports,styles:r.X.styles,getEditWrapperProps(e){const{align:t}=e;if(-1!==r.X.validAlignments.indexOf(t))return{"data-align":t}},edit:a.Z,save:o.Z,example:r.X.example,deprecated:[s.Z,i.Z]}},74125:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027);class i extends o.Component{constructor(...e){super(...e),a()(this,"closeClick",(()=>{this.props.unsetActiveMarker()}))}componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}}),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,o.createPortal)(this.props.children,this.el):null}openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}i.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null},t.Z=i},82135:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(87997),l=n(97983);const c=(0,i.__)("Add a marker…","jetpack");class u extends o.Component{constructor(){super(...arguments),a()(this,"getOptionCompletion",(e=>{const{value:t}=e,n={placeTitle:t.text,title:t.text,caption:t.place_name,id:t.id,coordinates:{longitude:t.geometry.coordinates[0],latitude:t.geometry.coordinates[1]}};return this.props.onAddPoint(n),t.text})),a()(this,"search",(e=>{const{apiKey:t,onError:n}=this.props,r="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(e)+".json?access_token="+t;return new Promise((function(e,t){const a=new XMLHttpRequest;a.open("GET",r),a.onload=function(){if(200===a.status){const t=JSON.parse(a.responseText);e(t.features)}else{const e=JSON.parse(a.responseText);n(e.statusText,e.responseJSON.message),t(new Error("Mapbox Places Error"))}},a.send()}))})),a()(this,"onReset",(()=>{this.textRef.current.value=null})),this.textRef=(0,o.createRef)(),this.containerRef=(0,o.createRef)(),this.state={isEmpty:!0},this.autocompleter={name:"placeSearch",options:this.search,isDebounced:!0,getOptionLabel:e=>(0,o.createElement)("span",null,e.place_name),getOptionKeywords:e=>[e.place_name],getOptionCompletion:this.getOptionCompletion}}componentDidMount(){setTimeout((()=>{this.containerRef.current.querySelector("input").focus()}),50)}render(){const{label:e}=this.props;return(0,o.createElement)("div",{ref:this.containerRef},(0,o.createElement)(s.BaseControl,{label:e,className:"components-location-search"},(0,o.createElement)(l.Z,{completer:this.autocompleter,onReset:this.onReset},(({isExpanded:e,listBoxId:t,activeId:n,onChange:r,onKeyDown:a})=>(0,o.createElement)(s.TextControl,{placeholder:c,ref:this.textRef,onChange:r,"aria-expanded":e,"aria-owns":t,"aria-activedescendant":n,onKeyDown:a})))))}}u.defaultProps={onError:()=>{}},t.Z=u},58467:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(87997);class s extends o.Component{constructor(){super(...arguments),a()(this,"onDeletePoint",(e=>{const t=parseInt(e.target.getAttribute("data-id")),{points:n,onChange:r}=this.props,a=n.slice(0);a.splice(t,1),r(a)})),this.state={selectedCell:null}}setMarkerField(e,t,n){const{points:r,onChange:a}=this.props,o=r.slice(0);o[n][e]=t,a(o)}render(){const{points:e}=this.props,t=e.map(((e,t)=>(0,o.createElement)(i.PanelBody,{title:e.placeTitle,key:e.id,initialOpen:!1},(0,o.createElement)(i.TextControl,{label:"Marker Title",value:e.title,onChange:e=>this.setMarkerField("title",e,t)}),(0,o.createElement)(i.TextareaControl,{label:"Marker Caption",value:e.caption,rows:"3",onChange:e=>this.setMarkerField("caption",e,t)}),(0,o.createElement)(i.Button,{"data-id":t,onClick:this.onDeletePoint,className:"component__locations__delete-btn"},(0,o.createElement)(i.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))));return(0,o.createElement)("div",{className:"component__locations"},(0,o.createElement)(i.Panel,{className:"component__locations__panel"},t))}}s.defaultProps={points:Object.freeze([]),onChange:()=>{}},t.Z=s},97983:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(33163),c=n(87997),u=n(33804),p=n(23983),d=n(51417);const __=l.__,_n=l._n;function m(e=[],t=10){const n=[];for(let r=0;r<e.length;r++){const a=e[r];let{keywords:o=[]}=a;if("string"==typeof a.label&&(o=[...o,a.label]),n.push(a),n.length===t)break}return n}class h extends o.Component{static getInitialState(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}constructor(){super(...arguments),a()(this,"select",(e=>{const{completer:t}=this.props;(t.getOptionCompletion||{})(e),this.reset()})),a()(this,"reset",(()=>{this.setState(this.constructor.getInitialState())})),a()(this,"onChange",(e=>{const{completer:t}=this.props,{options:n}=this.state;if(!e)return void this.reset();t&&(t.isDebounced?this.debouncedLoadOptions(t,e):this.loadOptions(t,e));const r=t?m(n):[];t&&this.setState({selectedIndex:0,filteredOptions:r,query:e})})),a()(this,"onKeyDown",(e=>{const{isOpen:t,selectedIndex:n,filteredOptions:r}=this.state;if(!t)return;let a;switch(e.keyCode){case p.UP:a=(0===n?r.length:n)-1,this.setState({selectedIndex:a});break;case p.DOWN:a=(n+1)%r.length,this.setState({selectedIndex:a});break;case p.ENTER:this.select(r[n]);break;case p.LEFT:case p.RIGHT:case p.ESCAPE:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()})),this.debouncedLoadOptions=(0,u.debounce)(this.loadOptions,250),this.state=this.constructor.getInitialState()}componentWillUnmount(){this.debouncedLoadOptions.cancel()}handleFocusOutside(){this.reset()}loadOptions(e,t){const{options:n}=e,r=this.activePromise=Promise.resolve("function"==typeof n?n(t):n).then((t=>{if(r!==this.activePromise)return;const n=t.map(((t,n)=>({key:`${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}))),a=m(n),o=a.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({options:n,filteredOptions:a,selectedIndex:o,isOpen:a.length>0}),this.announce(a)}))}announce(e){const{debouncedSpeak:t}=this.props;t&&(e.length?t((0,l.sprintf)(_n("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(__("No results.","jetpack"),"assertive"))}render(){const{onChange:e,onKeyDown:t}=this,{children:n,instanceId:r,completer:a}=this.props,{selectedIndex:i,filteredOptions:l}=this.state,{key:p=""}=l[i]||{},{className:d}=a,m=l.length>0,h=m?`components-autocomplete-listbox-${r}`:null,f=m?`components-autocomplete-item-${r}-${p}`:null;return(0,o.createElement)("div",{className:"components-autocomplete"},n({isExpanded:m,listBoxId:h,activeId:f,onChange:e,onKeyDown:t}),m&&(0,o.createElement)(c.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},(0,o.createElement)("div",{id:h,role:"listbox",className:"components-autocomplete__results"},(0,u.map)(l,((e,t)=>(0,o.createElement)(c.Button,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:s()("components-autocomplete__result",d,{"is-selected":t===i}),onClick:()=>this.select(e)},e.label))))))}}t.Z=(0,d.compose)([c.withSpokenMessages,d.withInstanceId,c.withFocusOutside])(h)},22291:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(25531);class s extends o.Component{constructor(...e){super(...e),a()(this,"handleClick",(()=>{const{onClick:e}=this.props;e(this)})),a()(this,"getPoint",(()=>{const{point:e}=this.props;return[e.coordinates.longitude,e.coordinates.latitude]}))}componentDidMount(){this.renderMarker()}componentWillUnmount(){this.marker&&this.marker.remove()}componentDidUpdate(){this.renderMarker()}renderMarker(){const{map:e,point:t,mapboxgl:n,markerColor:r,mapRef:a}=this.props,{handleClick:o}=this,s=[t.coordinates.longitude,t.coordinates.latitude],{currentDoc:l}=(0,i.bL)(a.current),c=this.marker?this.marker.getElement():l.createElement("div");this.marker?this.marker.setLngLat(s):(c.className="wp-block-jetpack-map-marker",this.marker=new n.Marker(c).setLngLat(s).setOffset([0,-19]).addTo(e),this.marker.getElement().addEventListener("click",o)),c.innerHTML='<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd"><path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="'+r+'" mask="url(#c)"/></g></svg>'}render(){return null}}s.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:()=>{}},t.Z=s},25170:function(e,t,n){"use strict";function r(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}n.d(t,{h:function(){return r}})},26099:function(e,t,n){"use strict";var r=n(63027),a=n(55468),o=n(8185);class i extends r.Component{render(){const{attributes:e}=this.props,{align:t,className:n,mapDetails:i,points:s,zoom:l,mapCenter:c,markerColor:u,scrollToZoom:p,mapHeight:d,showFullscreenButton:m}=e,h=(0,o.t)(a.X.styles,n),f=s.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:o},e.title))})),g=t?`align${t}`:null;return(0,r.createElement)("div",{className:g,"data-map-style":h,"data-map-details":i,"data-points":JSON.stringify(s),"data-zoom":l,"data-map-center":JSON.stringify(c),"data-marker-color":u,"data-scroll-to-zoom":p||null,"data-map-height":d||null,"data-show-fullscreen-button":m||null},s.length>0&&(0,r.createElement)("ul",null,f))}}t.Z=i},55468:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(63027),a=n(33163),o=n(56932),i=n(45107),s=n(65765),l=n(34140);const __=a.__,_x=a._x,c={name:"map",prefix:"jetpack",title:__("Map","jetpack"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"embed",keywords:[_x("maps","block search term","jetpack"),_x("location","block search term","jetpack"),_x("navigation","block search term","jetpack")],description:__("Add an interactive map showing one or more locations.","jetpack"),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},supports:{defaultStylePicker:!1,html:!1},styles:[{name:"default",label:__("Basic","jetpack"),preview:o,isDefault:!0},{name:"black_and_white",label:__("Black and white","jetpack"),preview:i},{name:"satellite",label:__("Satellite","jetpack"),preview:s},{name:"terrain",label:__("Terrain","jetpack"),preview:l}],validAlignments:["center","wide","full"],markerIcon:(0,r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},(0,r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),(0,r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),example:{attributes:{preview:!0}}}},75173:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(33163),c=n(46399),u=n(51417),p=n(65707),d=n(43909);const __=l.__,m="editor",h="preview";class f extends o.Component{constructor(...e){super(...e),a()(this,"input",null),a()(this,"state",{activePanel:m}),a()(this,"bindInput",(e=>{this.input=e})),a()(this,"updateSource",(e=>this.props.setAttributes({source:e}))),a()(this,"handleKeyDown",(e=>{const{attributes:t,removeBlock:n}=this.props,{source:r}=t;8===e.keyCode&&""===r&&(n(),e.preventDefault())})),a()(this,"toggleMode",(e=>()=>this.setState({activePanel:e})))}componentDidUpdate(e){e.isSelected&&!this.props.isSelected&&this.state.activePanel===h&&this.toggleMode(m)(),!e.isSelected&&this.props.isSelected&&this.state.activePanel===m&&this.input&&this.input.focus()}isEmpty(){const e=this.props.attributes.source;return!e||""===e.trim()}renderToolbarButton(e,t){const{activePanel:n}=this.state,{className:r}=this.props,a=s()(r,"components-button components-tab-button",{"is-pressed":n===e});return(0,o.createElement)("button",{className:a,onClick:this.toggleMode(e)},(0,o.createElement)("span",null,t))}render(){const{attributes:e,className:t,isSelected:n}=this.props,{source:r}=e,{activePanel:a}=this.state;return!n&&this.isEmpty()?(0,o.createElement)("p",{className:`${t}__placeholder`},__("Write your _Markdown_ **here**…","jetpack")):(0,o.createElement)("div",{className:t},(0,o.createElement)(c.BlockControls,null,(0,o.createElement)("div",{className:"components-toolbar"},this.renderToolbarButton(m,__("Markdown","jetpack")),this.renderToolbarButton(h,__("Preview","jetpack")))),a!==h&&n?(0,o.createElement)(c.PlainText,{className:`${t}__editor`,onChange:this.updateSource,onKeyDown:this.handleKeyDown,"aria-label":__("Markdown","jetpack"),innerRef:this.bindInput,value:r}):(0,o.createElement)(d.Z,{className:`${t}__preview`,source:r}))}}t.Z=(0,u.compose)([(0,p.withSelect)((e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()}))),(0,p.withDispatch)(((e,{currentBlockId:t})=>({removeBlock:()=>e("core/block-editor").removeBlocks(t)})))])(f)},47396:function(e,t,n){"use strict";n.d(t,{u:function(){return p},X:function(){return g}});var r=n(63027),a=n(33163),o=n(87997),i=n(42975),s=n(75173),l=n(12283),c=n(32750),u=n(36012);const __=a.__,_x=a._x,p="markdown",d=__("Try Markdown","jetpack"),m=__("Markdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters.","jetpack"),h=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 208 128"},(0,r.createElement)(o.Rect,{width:"198",height:"118",x:"5",y:"5",ry:"10",stroke:"currentColor",strokeWidth:"10",fill:"none"}),(0,r.createElement)(o.Path,{d:"M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z"})),f=(0,i.Wp)()||(0,i.Ug)()?"https://en.support.wordpress.com/markdown-quick-reference/":"https://jetpack.com/support/jetpack-blocks/markdown-block/",g={title:__("Markdown","jetpack"),description:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Use regular characters and punctuation to style text, links, and lists.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:f},__("Support reference","jetpack"))),icon:{src:h,foreground:(0,c.m)()},category:(0,u.Z)("text","formatting"),keywords:[_x("formatting","block search term","jetpack"),_x("syntax","block search term","jetpack"),_x("markup","block search term","jetpack")],attributes:{source:{type:"string"}},supports:{html:!1},edit:s.Z,save:l.Z,example:{attributes:{source:`## ## ${d}\n\n${m}`}}}},43909:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(69472),i=n.n(o);const __=a.__,s=new(i()),l=e=>{if("A"===e.target.nodeName){window.confirm(__("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault()}};t.Z=({className:e,source:t=""})=>(0,r.createElement)(r.RawHTML,{className:e,onClick:l},t.length?s.render(t):"")},12283:function(e,t,n){"use strict";var r=n(63027),a=n(43909);t.Z=({attributes:e,className:t})=>(0,r.createElement)(a.Z,{className:t,source:e.source})},20310:function(e,t,n){"use strict";n.d(t,{V1:function(){return i},vW:function(){return s},jn:function(){return l},Eo:function(){return c},fL:function(){return u},ez:function(){return m}});var r=n(33163),a=n(65707),o=n(33804);const __=r.__,i=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],s=i.map((e=>e.value));const l={name:"button",label:__("Button (210 x 113 pixels)","jetpack")},c=e=>(0,o.compact)([{name:"standard",label:__("Standard (224 x 301 pixels)","jetpack"),isDefault:!0},{name:"tall",label:__("Tall (288 x 490 pixels)","jetpack")},{name:"wide",label:__("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&l]),u=e=>c(e).map((e=>e.name)),{siteLocale:p}=(0,a.select)("core/block-editor").getSettings(),d=!(0,o.isEmpty)(p)&&s.includes(p)?p:"en-US",m={rid:{default:[],type:"array"},style:{default:"standard",type:"string",validValues:u()},iframe:{default:!0,type:"boolean"},domain:{default:"com",type:"string"},lang:{default:d,type:"string",validValues:s},newtab:{default:!1,type:"boolean"},negativeMargin:{default:!1,type:"boolean"}}},41797:function(e,t,n){"use strict";var r=n(63027),a=n(20310);t.Z={attributes:a.ez,supports:{align:!0,html:!1},save:({attributes:{rid:e}})=>(0,r.createElement)(r.Fragment,null,e.map((e=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}},69520:function(e,t,n){"use strict";var r=n(63027),a=n(20310);t.Z={attributes:a.ez,migrate:e=>{const{style:t,className:n}=e,r="standard"===t?"":`is-style-${t}`;return{...e,className:n?`${n} ${r}`:r}},isEligible:({style:e,className:t})=>!(!e||"standard"===e)&&(!t||-1===t.indexOf("is-style-")),save:({attributes:{rid:e}})=>(0,r.createElement)("div",null,e.map((e=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}},39347:function(e,t,n){"use strict";var r=n(63027),a=(n(86841),n(89105)),o=n.n(a),i=n(33804),s=n(46399),l=n(87997),c=n(33163),u=n(9314),p=n(20242),d=n(42975),m=n(31602),h=n(83031),f=n(20310),g=n(83353),b=n(8185),v=n(51057);const __=c.__;t.Z=(0,l.withNotices)((function({attributes:e,className:t,clientId:n,isSelected:a,name:k,noticeOperations:y,noticeUI:E,setAttributes:w}){const _=(0,u.getBlockDefaultClassName)(k),C=(0,g.S)(f.ez,e);(0,i.isEqual)(C,e)||w(C);const{align:S,rid:j,iframe:x,domain:T,lang:N,newtab:A,negativeMargin:P}=e,I=(0,i.isEmpty)(j),M=(0,b.t)((0,f.Eo)(),e.className),B=(0,b.t)((0,f.Eo)(j),e.className),R=(0,h.Z)(B),L=(0,i.isEqual)(j,["1"]);(0,r.useEffect)((()=>{if(y.removeAllNotices(),!I&&!L&&"wide"===B&&"wide"!==S&&"full"!==S){const e=(0,r.createElement)(r.Fragment,null,__('With the OpenTable block you may encounter display issues if you use its "wide" style with anything other than "wide" or "full" alignment. The wide display style may also not work well on smaller screens.',"jetpack"));y.createNotice({status:"warning",content:e})}}),[L,S,I,j,B]),(0,r.useEffect)((()=>{"button"===M&&Array.isArray(j)&&j.length>1&&w({className:"",style:""})}),[j,M,w]),(0,r.useEffect)((()=>{a&&(Array.isArray(j)&&j.length>1?(0,u.unregisterBlockStyle)("jetpack/opentable",["button"]):(0,u.registerBlockStyle)("jetpack/opentable",f.jn))}),[a,j]),(0,r.useEffect)((()=>{"wide"===R&&"wide"===S&&w({align:""}),"wide"===B&&R&&B!==R&&w({align:"wide"}),w({style:B})}),[B]);const Z=(0,f.fL)(j),D=e=>j.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e],F=e=>{Array.isArray(e)?w({rid:e,style:e.length>1&&"button"===B?"standard":B}):(e=>{const t=(0,v.CC)(e);t||(y.removeAllNotices(),y.createErrorNotice((0,r.createElement)(r.Fragment,null,(0,r.createElement)("strong",null,__("We ran into an issue","jetpack")),(0,r.createElement)("br",null),__("Please ensure this embed matches the one from your OpenTable account","jetpack"))));const n=(0,g.S)(f.ez,t);w(n),y.removeAllNotices()})(e)},O=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.InspectorAdvancedControls,null,(0,r.createElement)(l.ToggleControl,{label:__("Load the widget in an iFrame (Recommended)","jetpack"),checked:x,onChange:()=>w({iframe:!x}),className:"is-opentable"}),"button"===B&&(0,r.createElement)(l.ToggleControl,{label:__("Remove button margin","jetpack"),checked:P,onChange:()=>w({negativeMargin:!P})})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(l.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(m.Z,{rids:j,onChange:F}),(0,r.createElement)(l.SelectControl,{label:__("Language","jetpack"),value:N,onChange:e=>w({lang:e}),options:f.V1}),(0,r.createElement)(l.ToggleControl,{label:__("Open in a new window","jetpack"),checked:A,onChange:()=>w({newtab:!A})})))),z=(0,d.Wp)()||(0,d.Ug)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",U=(0,r.createElement)(l.Placeholder,{label:__("OpenTable Reservation","jetpack"),icon:(0,r.createElement)(s.BlockIcon,{icon:p.Z}),instructions:__("Enter your restaurant name, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:E},(0,r.createElement)(m.Z,{rids:j,onSubmit:F}),(0,r.createElement)("div",{className:`${_}-placeholder-links`},(0,r.createElement)(l.ExternalLink,{href:"https://restaurant.opentable.com/get-started/"},__("Sign up for OpenTable","jetpack")),(0,r.createElement)(l.ExternalLink,{href:z},__("Learn more","jetpack")))),$=o()(t,{[`is-style-${B}`]:!I&&Z.includes(B)&&-1===t.indexOf("is-style"),"is-placeholder":I,"is-multi":"multi"===D(B)[0],[`align${S}`]:S,"has-no-margin":P});return(0,r.createElement)(r.Fragment,null,E,(0,r.createElement)("div",{className:$},!I&&O,I?U:(e=>{const[t,a]=D(e||B);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:`${_}-overlay`}),(0,r.createElement)("iframe",{title:(0,c.sprintf)(__("Open Table Preview %s","jetpack"),n),scrolling:"no",src:`https://www.opentable.com/widget/reservation/canvas?rid=${(0,i.join)(j,"%2C")}&type=${t}&theme=${a}&overlay=false&domain=${T}&lang=${N&&f.vW.includes(N)?N:"en-US"}&newtab=${A}&disablega=true`}))})()))}))},20242:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 16",fill:"none",height:"16",width:"22"},(0,r.createElement)(a.Path,{d:"m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z"}))},5778:function(e,t,n){"use strict";n.d(t,{u2:function(){return m},Xd:function(){return h}});var r=n(63027),a=n(33163),o=n(9314),i=n(20310),s=n(41797),l=n(69520),c=n(39347),u=n(20242),p=n(51057),d=n(32750);n(64305);const __=a.__,_x=a._x,m="opentable",h={title:__("OpenTable","jetpack"),description:__("Allow visitors to book a reservation with OpenTable","jetpack"),icon:{src:u.Z,foreground:(0,d.m)()},category:"earn",keywords:[_x("booking","block search term","jetpack"),_x("reservation","block search term","jetpack"),_x("restaurant","block search term","jetpack")],supports:{align:!0,html:!1},edit:c.Z,save:({attributes:{rid:e}})=>(0,r.createElement)("div",null,e.map(((e,t)=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,key:`${e}-${t}`},`https://www.opentable.com/restref/client/?rid=${e}`)))),attributes:i.ez,styles:(0,i.Eo)(),example:{attributes:{rid:["1"],style:"standard",iframe:!0,domain:"com",lang:"en-US",newtab:!1,negativeMargin:!1}},transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&0===e.textContent.indexOf("http")&&(p.pU.test(e.textContent)||p.tC.test(e.textContent)),transform:e=>{const t=(0,p.CC)(e.textContent);return(0,o.createBlock)("jetpack/opentable",t)}}]},deprecated:[s.Z,l.Z]}},31602:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(78900),a=n.n(r),o=n(63027),i=n(33804),s=n(87997),l=n(33163),c=n(71572);const __=l.__,_n=l._n;function u(e){const[t,n]=(0,o.useState)(""),r=(0,c.Z)(t,20),[l,u]=(0,o.useState)(e.rids||[]),p=/^(\d+)$|\(\#(\d+)\)$/,d=r.filter((e=>l.indexOf(e.rid.toString())<0)).map((e=>e.name+` (#${e.rid})`)),m=(0,o.createElement)(s.FormTokenField,a()({value:l,suggestions:d,saveTransform:e=>c.$.test(e)?"":e.trim(),onInputChange:n,maxSuggestions:20,label:_n("Restaurant","Restaurants",l.length,"jetpack")},e,{onChange:t=>{const n=t.map((e=>{const t=p.exec(e);return t[1]||t[2]}));u(n),e.onChange&&e.onChange(n)}}));return(0,o.createElement)("div",{className:"wp-block-jetpack-opentable-restaurant-picker"},e.onSubmit?(0,o.createElement)("form",{onSubmit:n=>{n.preventDefault(),e.onSubmit((0,i.isEmpty)(l)?t:l)}},m,(0,o.createElement)(s.Button,{isSecondary:!0,type:"submit"},__("Embed","jetpack"))):m)}},83031:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}},71572:function(e,t,n){"use strict";n.d(t,{$:function(){return o},Z:function(){return i}});var r=n(33804),a=n(63027);const o=/^\s*(http[s]?:\/\/|\<script)/;function i(e,t){const[n,i]=(0,a.useState)([]),s=(0,a.useCallback)((0,r.throttle)(((e="")=>{fetch("https://www.opentable.com/widget/reservation/restaurant-search?pageSize="+t+"&query="+encodeURIComponent(e)).then((e=>e.json())).then((e=>i((0,r.unionBy)(n,e.items,"rid"))))}),500),[n]);return(0,a.useEffect)((()=>{(0,r.isEmpty)(e)||o.test(e)||s(e)}),[e]),n}},51057:function(e,t,n){"use strict";n.d(t,{tC:function(){return a},pU:function(){return o},CC:function(){return i}});const r=/<\s*script[^>]*src\s*=\s*["']?([^"']*)/i,a=/restref=([0-9]+)&/,o=/rid=([0-9]+)&/,i=e=>{if(e)return(e=>{if(!e)return;let t="";if(t=0===e.indexOf("http")?new URL(e):new URL("http:"+e),!t.host||-1===t.host.indexOf("opentable")||!t.search)return;const n=new URLSearchParams(t.search);let r=n.get("theme");"button"===n.get("type")&&(r=n.get("type"));let a=n.getAll("rid");if(a&&0!==a.length||(a=n.getAll("restref")),!a||0===a.length)return;const o={};a&&(o.rid=a);const i=n.get("domain");i&&(o.domain=i);const s=n.get("iframe");s&&(o.iframe=s);const l=n.get("lang");l&&(o.lang=l);const c=n.get("newtab");return c&&(o.newtab=c),r&&(o.style=r),o})((e=>{const t=e.match(r);return t&&t[1]?t[1]:a.test(e)||o.test(e)?e:void 0})(e))}},89683:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(33163),o=n(87997),i=n(46399),s=n(51532);const __=a.__,_x=a._x;function l({className:e,onSubmit:t,noticeUI:n,url:a,setUrl:l}){return(0,r.createElement)("div",{className:e},(0,r.createElement)(o.Placeholder,{label:__("Pinterest","jetpack"),icon:(0,r.createElement)(i.BlockIcon,{icon:s.qv}),notices:n},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),t()}},(0,r.createElement)("input",{type:"url",value:a,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>l(e.target.value)}),(0,r.createElement)(o.Button,{isSecondary:!0,type:"submit"},_x("Embed","button label","jetpack")))))}},94250:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(33163),o=n(87997),i=n(9314);const __=a.__,_x=a._x;function s({fallbackUrl:e,onClick:t}){return(0,r.createElement)(r.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,r.createElement)(o.Button,{isLink:!0,onClick:()=>{const n=(0,r.createElement)("a",{href:e},e);t((0,i.createBlock)("core/paragraph",{content:(0,r.renderToString)(n)}))}},_x("Convert block to link","button label","jetpack")))}},58038:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__;function i(){return(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(o.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack")))}},54084:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__;function i({setEditingState:e}){return(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>e(!0)}))}},92602:function(e,t,n){"use strict";var r=n(63027),a=n(80909);t.Z={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:({attributes:e,className:t})=>{const{url:n}=e;return(0,a.t)(n)?(0,r.createElement)("div",{className:t},(0,r.createElement)("a",{"data-pin-do":(0,a.t)(n),href:n})):null}}},91869:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(46399),i=n(80909),s=n(54084),l=n(58038),c=n(89683),u=n(94250),p=n(25218);t.Z=(0,a.withNotices)((function({attributes:e,isSelected:t,className:n,noticeOperations:d,noticeUI:m,setAttributes:h,onReplace:f}){const{url:g}=e,{isFetching:b,pinterestUrl:v,testUrl:k,hasTestUrlError:y}=(0,p.Z)(),[E,w]=(0,r.useState)(!1),[_,C]=(0,r.useState)(""),[S,j]=(0,r.useState)(!1),x=(0,r.useCallback)((()=>(0,r.createElement)(u.Z,{fallbackUrl:_,onClick:f})),[y]),T=()=>{b||(k(_),j(!1))},N=()=>{w(!0)};if((0,r.useEffect)((()=>{g&&k(g)}),[]),(0,r.useEffect)((()=>{!t&&E&&w(!1)}),[t,E]),(0,r.useEffect)((()=>{h({url:v}),d.removeAllNotices(),v&&C(v),y&&d.createErrorNotice(x())}),[v,y,h,x]),b)return(0,r.createElement)(l.Z,null);const A=(0,i.t)(g);if(S||!g||g&&!A)return(0,r.createElement)(c.Z,{className:n,onSubmit:T,noticeUI:m,url:_,setUrl:C});const P=`<a data-pin-do='${A}' href='${g}'></a>`;return(0,r.createElement)("div",{className:n},(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(s.C,{setEditingState:j})),(0,r.createElement)("div",null,(0,r.createElement)(a.SandBox,{html:P,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:N}),!E&&(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:N})))}))},25218:function(e,t,n){"use strict";var r=n(63027),a=n(19737),o=n(51532);t.Z=(e="")=>{const[t,n]=(0,r.useState)(!1),[i,s]=(0,r.useState)(e),[l,c]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i&&i!==o.a0&&(n(!0),(0,a.Z)(i).then((e=>{n(!1),s(e),c(!1)})).catch((()=>{n(!1),s(i||void 0),c(!0)})))}),[i]),{isFetching:t,pinterestUrl:i,hasTestUrlError:l,testUrl:s}}},51532:function(e,t,n){"use strict";n.d(t,{Wh:function(){return p},a0:function(){return d},u2:function(){return m},qv:function(){return f},Xd:function(){return g}});var r=n(63027),a=n(33163),o=n(87997),i=n(9314),s=n(91869),l=n(64534),c=n(32750),u=n(92602);const __=a.__,_x=a._x,p=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i,d="https://pinterest.com/anapinskywalker/",m="pinterest",h=__("Pinterest","jetpack"),f=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(o.G,null,(0,r.createElement)(o.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z"}))),g={title:h,description:__("Embed a Pinterest pin, board, or user.","jetpack"),icon:{src:f,foreground:(0,c.m)()},category:"embed",keywords:[_x("social","block search term","jetpack"),_x("pinboard","block search term","jetpack"),_x("pins","block search term","jetpack")],supports:{align:!1,html:!1},attributes:{url:{type:"string"}},edit:s.Z,save:l.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&p.test(e.textContent),transform:e=>(0,i.createBlock)("jetpack/pinterest",{url:e.textContent.trim()})}]},example:{attributes:{url:d}},deprecated:[u.Z]}},64534:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({attributes:e}){const{url:t}=e;return(0,r.createElement)("a",{href:t},t)}},80909:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(791),a=n(51532);function o(e){if(!a.Wh.test(e))return"";const t=(0,r.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}},33551:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(59190),a=n(37606),o=n.n(a),i=n(791);const s=async({url:e,guids:t=[],fetchEpisodeOptions:n=!1})=>{let a,s,l;try{a=await o()({path:(0,i.addQueryArgs)("/wpcom/v2/podcast-player",{url:e,guids:t,"episode-options":n})})}catch(u){s=u}if(a)return{type:r.u,data:a};try{l=await o()({path:(0,i.addQueryArgs)("/oembed/1.0/proxy",{url:e})})}catch(u){}const c='<a href="'+e+'">'+e+"</a>";if(l&&l.html!==c)return{type:r.b};throw s}},29978:function(e,t,n){"use strict";var r=n(791),a=n(37432);t.Z={url:{type:"string",validator:r.isUrl},selectedEpisodes:{type:"array",default:[]},itemsToShow:{type:"integer",default:5},showCoverArt:{type:"boolean",default:!0},showEpisodeTitle:{type:"boolean",default:!0},showEpisodeDescription:{type:"boolean",default:!0},primaryColor:{type:"string"},customPrimaryColor:{type:"string",validator:a.Z},hexPrimaryColor:{type:"string",validator:a.Z},secondaryColor:{type:"string"},customSecondaryColor:{type:"string",validator:a.Z},hexSecondaryColor:{type:"string",validator:a.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:a.Z},hexBackgroundColor:{type:"string",validator:a.Z},exampleFeedData:{type:"object"}}},81954:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(93058);const s=(0,r.memo)((({playerId:e,title:t,cover:n,link:a,track:o,children:i,showEpisodeTitle:s,showCoverArt:c,showEpisodeDescription:u,colors:p})=>c||s||u?(0,r.createElement)("div",{className:"jetpack-podcast-player__header"},(0,r.createElement)("div",{className:"jetpack-podcast-player__current-track-info"},c&&n&&(0,r.createElement)("div",{className:"jetpack-podcast-player__cover"},(0,r.createElement)("img",{className:"jetpack-podcast-player__cover-image",src:n,alt:""})),s&&!!(t||o&&o.title)&&(0,r.createElement)(l,{playerId:e,title:t,link:a,track:o,colors:p})),!!(u&&o&&o.description)&&(0,r.createElement)("p",{id:`${e}__track-description`,className:"jetpack-podcast-player__track-description"},o.description),i):i)),l=(0,r.memo)((({playerId:e,title:t,link:n,track:a,colors:s={primary:{name:null,custom:null,classes:""}}})=>(0,r.createElement)("h2",{id:`${e}__title`,className:"jetpack-podcast-player__title"},!(!a||!a.title)&&(0,r.createElement)("span",{className:o()("jetpack-podcast-player__current-track-title",s.primary.classes),style:{color:s.primary.custom}},a.title,(0,r.createElement)("a",{className:"jetpack-podcast-player__track-title-link",href:a.link||a.src,target:"_blank",rel:"noopener noreferrer nofollow"},i.Z)),!!(a&&a.title&&t)&&(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"}," - "),!!t&&(0,r.createElement)(c,{title:t,link:n,colors:s})))),c=(0,r.memo)((({title:e,link:t})=>(0,r.createElement)("span",{className:"jetpack-podcast-player__podcast-title"},t?(0,r.createElement)("a",{className:"jetpack-podcast-player__link",href:t,target:"_blank",rel:"noopener noreferrer nofollow"},e):{title:e})));t.Z=s},8469:function(e,t,n){"use strict";var r=n(63027),a=n(38788),o=n(48694);const i=(0,r.memo)((({playerId:e,tracks:t,selectTrack:n,currentTrack:i,playerState:s,colors:l})=>(0,r.createElement)("ol",{className:"jetpack-podcast-player__tracks","aria-labelledby":`jetpack-podcast-player__tracklist-title--${e}`,"aria-describedby":`jetpack-podcast-player__tracklist-description--${e}`},t.map(((e,t)=>{const c=i===t;return(0,r.createElement)(o.Z,{key:e.id,index:t,track:e,selectTrack:n,isActive:c,isPlaying:c&&s===a.Wp,isError:c&&s===a.Vy,colors:l})})))));t.Z=i},91144:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(33163),c=n(60402),u=n(51417),p=n(65707),d=n(38788),m=n(97542),h=n(8469),f=n(81954),g=n(46745),b=n(34597);const __=l.__;class v extends o.Component{constructor(...e){super(...e),a()(this,"state",{currentTrack:0,hasUserInteraction:!1}),a()(this,"recordUserInteraction",(()=>{this.state.hasUserInteraction||this.setState({hasUserInteraction:!0})})),a()(this,"selectTrack",(e=>{const{currentTrack:t}=this.state;if(t===e)return this.recordUserInteraction(),void this.props.toggleMediaSource(this.props.playerId);-1!==t&&this.props.pauseMediaSource(this.props.playerId),this.loadAndPlay(e)})),a()(this,"loadTrack",(e=>{const t=this.getTrack(e);if(!t)return!1;this.state.currentTrack!==e&&this.setState({currentTrack:e});const{title:n,link:r,description:a}=t;return this.props.updateMediaSourceData(this.props.playerId,{title:n,link:r}),(0,c.speak)(`${(0,l.sprintf)(__("Loading: %s","jetpack"),n)} ${a}`,"assertive"),!0})),a()(this,"loadAndPlay",(e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)})),a()(this,"getTrack",(e=>this.props.tracks[e])),a()(this,"handleError",(e=>{if(!this.state.hasUserInteraction){const t=window.navigator.userAgent.match(/Trident\/7\./)?"IE11: Playing sounds in webpages setting is not checked":e;this.setState((()=>{throw new Error(t)}))}this.props.errorMediaSource(this.props.playerId),(0,c.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")})),a()(this,"handlePlay",(()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})})),a()(this,"handlePause",(()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==d.Vy&&this.props.pauseMediaSource(this.props.playerId)})),a()(this,"handleTimeChange",(e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)})),a()(this,"handleJump",(()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)})),a()(this,"handleSkip",(()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)})),a()(this,"updateMediaData",(e=>{var t,n;this.props.updateMediaSourceData(this.props.playerId,{duration:null===(t=e.target)||void 0===t?void 0:t.duration,domId:null===(n=e.target)||void 0===n?void 0:n.id})}))}registerPlayer(){const e=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:d._5}),this.props.setDefaultMediaSource(t)}componentDidMount(){this.props.playerId&&this.registerPlayer()}componentWillUnmount(){this.props.playerId&&this.props.unregisterMediaSource(this.props.playerId)}componentDidUpdate(e){const t=e=>null!=e&&e.length?e.map((e=>e.guid)):[],n=t(this.props.tracks),r=new Set(t(e.tracks));n.length===r.size&&n.every((e=>r.has(e)))||this.loadTrack(0)}static getDerivedStateFromProps(e,t){return e.tracks.length<=t.currentTrack?{...t,currentTrack:0}:null}render(){const{playerId:e,title:t,link:n,cover:r,tracks:a,attributes:i,currentTime:c,playerState:u}=this.props,{itemsToShow:p,primaryColor:d,customPrimaryColor:b,hexPrimaryColor:v,secondaryColor:k,customSecondaryColor:y,hexSecondaryColor:E,backgroundColor:w,customBackgroundColor:_,hexBackgroundColor:C,showCoverArt:S,showEpisodeTitle:j,showEpisodeDescription:x}=i,{currentTrack:T}=this.state,N=a.slice(0,p),A=this.getTrack(T),P=(0,g.Aq)({primaryColor:d,customPrimaryColor:b,secondaryColor:k,customSecondaryColor:y,backgroundColor:w,customBackgroundColor:_}),I={color:y,backgroundColor:_,"--jetpack-podcast-player-primary":v,"--jetpack-podcast-player-secondary":E,"--jetpack-podcast-player-background":C},M=s()("jetpack-podcast-player",u,P.secondary.classes,P.background.classes);return(0,o.createElement)("section",{className:M,style:I,"aria-labelledby":t||A&&A.title?`${e}__title`:void 0,"aria-describedby":A&&A.description?`${e}__track-description`:void 0,"data-jetpack-iframe-ignore":!0},(0,o.createElement)(f.Z,{playerId:e,title:t,link:n,cover:r,track:this.getTrack(T),showCoverArt:S,showEpisodeTitle:j,showEpisodeDescription:x,colors:P},(0,o.createElement)(m.Z,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(T).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:u,currentTime:c,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData})),N.length>1&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden"},(0,l.sprintf)(__("Playlist: %s","jetpack"),t)),(0,o.createElement)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden"},__("Select an episode to play it in the audio player.","jetpack")),(0,o.createElement)(h.Z,{playerId:e,playerState:u,currentTrack:T,tracks:N,selectTrack:this.selectTrack,colors:P})))}}v.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]},t.Z=(0,u.compose)([b.Z,(0,p.withSelect)(((e,t)=>{const{playerId:n}=t,{getMediaSourceCurrentTime:r,getMediaPlayerState:a}=e(d.tT);return{currentTime:r(n),playerState:a(n)}})),(0,p.withDispatch)((e=>{const{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:i,toggleMediaSource:s,errorMediaSource:l,setMediaSourceCurrentTime:c}=e(d.tT);return{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:i,toggleMediaSource:s,errorMediaSource:l,setMediaSourceCurrentTime:c}}))])(v)},66413:function(e,t,n){"use strict";var r=n(63027),a=n(33163);const __=a.__,o=(0,r.memo)((({link:e,title:t,colors:n})=>(0,r.createElement)("div",{className:"jetpack-podcast-player__track-error"},__("Episode unavailable. ","jetpack"),e&&(0,r.createElement)("span",{className:n.secondary.classes,style:{color:n.secondary.custom}},(0,r.createElement)("a",{className:"jetpack-podcast-player__link",href:e,rel:"noopener noreferrer nofollow",target:"_blank"},(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"},`${(0,a.sprintf)(__("%s:","jetpack"),t)} `),__("Open in a new tab","jetpack"))))));t.Z=o},28339:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(21560);const __=a.__,i=(0,r.memo)((({isPlaying:e,isError:t,className:n})=>{let a,i;t?(i="error",a=__("Error:","jetpack")):e&&(i="playing",a=__("Playing:","jetpack"));const s=o[i];return s?(0,r.createElement)("span",{className:`${n} ${n}--${i}`},(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"},`${a} `),s):(0,r.createElement)("span",{className:n})}));t.Z=i},48694:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33163),s=n(28339),l=n(66413),c=n(46745);const __=i.__,u=(0,r.memo)((({track:e,isActive:t,isPlaying:n,isError:a,selectTrack:i,index:u,colors:p={primary:{},secondary:{}}})=>{const d=(0,c.Gd)("color",p.primary.name),m=(0,c.Gd)("color",p.secondary.name),h=o()("jetpack-podcast-player__track",{"is-active":t,"has-primary":t&&(p.primary.name||p.primary.custom),[d]:t&&!!d,"has-secondary":!t&&(p.secondary.name||p.secondary.custom),[m]:!t&&!!m}),f={};t&&p.primary.custom&&!d?f.color=p.primary.custom:t||!p.secondary.custom||m||(f.color=p.secondary.custom);const g=t?__("track","jetpack"):void 0;return(0,r.createElement)("li",{className:h,style:Object.keys(f).length?f:null},(0,r.createElement)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:e.link||e.src,role:"button","aria-current":g,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),i(u))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),i(u))}},(0,r.createElement)(s.Z,{className:"jetpack-podcast-player__track-status-icon",isPlaying:n,isError:a}),(0,r.createElement)("span",{className:"jetpack-podcast-player__track-title"},e.title),e.duration&&(0,r.createElement)("time",{className:"jetpack-podcast-player__track-duration",dateTime:e.duration},e.duration)),t&&a&&(0,r.createElement)(l.Z,{link:e.link,title:e.title,colors:p}))}));t.Z=u},34597:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(43197),a=n.n(r),o=n(63027),i=n(33163);const __=i.__;function s(e){class t extends o.Component{constructor(...e){super(...e),a()(this,"state",{didError:!1,isIE11AudioIssue:!1}),a()(this,"componentDidCatch",((e,t)=>{this.props.onError(e,t)}))}render(){const{didError:t,isIE11AudioIssue:n}=this.state;return t?(0,o.createElement)("section",{className:"jetpack-podcast-player"},(0,o.createElement)("p",{className:"jetpack-podcast-player__error"},__(n?'The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser’s "Internet options" settings. In the "Advanced" tab you will have to check the box next to "Play sounds in webpages" in the "Multimedia" section. Once you have confirmed that the box is checked, please press "Apply" and then reload this page.':"An unexpected error occured within the Podcast Player. Reloading this page might fix the problem.","jetpack"))):(0,o.createElement)(e,this.props)}}return a()(t,"getDerivedStateFromError",(e=>({didError:!0,isIE11AudioIssue:!!e.message.match(/IE11/)}))),t.defaultProps={onError:()=>{}},t}},59190:function(e,t,n){"use strict";n.d(t,{u:function(){return r},b:function(){return a}});const r="podcast-feed",a="embed-block"},7691:function(e,t,n){"use strict";var r=n(791),a=n(37432);const o={url:{type:"string",validator:r.isUrl},itemsToShow:{type:"integer",default:5},showCoverArt:{type:"boolean",default:!0},showEpisodeDescription:{type:"boolean",default:!0},primaryColor:{type:"string"},customPrimaryColor:{type:"string",validator:a.Z},hexPrimaryColor:{type:"string",validator:a.Z},secondaryColor:{type:"string"},customSecondaryColor:{type:"string",validator:a.Z},hexSecondaryColor:{type:"string",validator:a.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:a.Z},hexBackgroundColor:{type:"string",validator:a.Z},exampleFeedData:{type:"object"}};t.Z={attributes:o,supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},save:()=>null}},66046:function(e,t,n){"use strict";var r=n(63027),a=n(86431),o=n.n(a),i=n(33804),s=n(87997),l=n(51417),c=n(33163),u=n(46399),p=n(65707),d=n(9314),m=n(791),h=n(83353),f=n(40038),g=n(42975),b=n(29978),v=n(91144),k=n(46745),y=n(33551),E=n(90805),w=n(60334),_=n(59190),C=n(25531);const __=c.__,S=o()("jetpack:podcast-player:edit"),j=(0,g.Wp)()||(0,g.Ug)()?"http://en.support.wordpress.com/wordpress-editor/blocks/podcast-player-block/":"https://jetpack.com/support/jetpack-blocks/podcast-player-block/";t.Z=(0,l.compose)([(0,p.withDispatch)(((e,{clientId:t,attributes:n})=>({replaceWithEmbedBlock(){e("core/block-editor").replaceBlock(t,(0,d.createBlock)("core/embed",{url:n.url}))}}))),(0,u.withColors)("backgroundColor",{primaryColor:"color"},{secondaryColor:"color"}),s.withNotices,l.withInstanceId,w.K])((({instanceId:e,className:t,attributes:n,setAttributes:a,noticeOperations:{createErrorNotice:o,removeAllNotices:l},noticeUI:c,primaryColor:p,setPrimaryColor:d,secondaryColor:g,setSecondaryColor:w,fallbackTextColor:x,backgroundColor:T,setBackgroundColor:N,fallbackBackgroundColor:A,isSelected:P,replaceWithEmbedBlock:I})=>{var M,B;const R=(0,h.S)(b.Z,n),{url:L,selectedEpisodes:Z,itemsToShow:D,showCoverArt:F,showEpisodeTitle:O,showEpisodeDescription:z,exampleFeedData:U}=R,$=`jetpack-podcast-player-block-${e}`,[V,G]=(0,r.useState)(!1),H=(0,r.useRef)(),[{selectedGuid:q,checkUrl:W,...K},X]=(0,r.useReducer)(E.J,{editedUrl:L||"",isEditing:!L&&!U,isLoading:!1,feedData:U||{},isInteractive:!1,selectedGuid:null==Z||null===(M=Z[0])||void 0===M?void 0:M.guid,checkUrl:L||""}),J=(0,r.useMemo)((()=>(0,i.debounce)((e=>{var t;X({type:E.N.START_FETCH}),null===(t=H.current)||void 0===t||t.cancel(),H.current=(0,k.W4)((0,y.q)({...e,fetchEpisodeOptions:!0})),H.current.promise.then((t=>{if(l(),null!=t&&t.isCanceled)S("Block was unmounted during fetch",t);else switch(null==t?void 0:t.type){case _.u:return a({url:e.url,selectedEpisodes:e.guids.map((e=>({guid:e})))}),X({type:E.N.FEED_RECEIVED,payload:t.data});case _.b:return I()}}),(e=>{null!=e&&e.isCanceled?S("Block was unmounted during fetch",e):(S("feed error",e),l(),o(e.message||__("Your podcast couldn't be embedded. Please double check your URL.","jetpack")),X({type:E.N.START_EDITING}))}))}),300)),[I,a,o,l]);(0,r.useEffect)((()=>()=>{var e,t;null==H||null===(e=H.current)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e)}),[]);const Y=(0,r.useCallback)((e=>{null===e||V||((0,C.DT)(["link#mediaelement-css","link#wp-mediaelement-css"],e),G(!0))}),[V]);(0,r.useEffect)((()=>{if(""!==W)return J({url:W,guids:q?[q]:[]}),()=>{var e,t;return null==H||null===(e=H.current)||void 0===e||null===(t=e.cancel)||void 0===t?void 0:t.call(e)}}),[J,W,q]),(0,r.useEffect)((()=>{q&&1!==D&&a({itemsToShow:1})}),[q,D,a]),(0,r.useEffect)((()=>{!P&&K.isInteractive&&X({type:E.N.PREVENT_INTERACTIONS})}),[P,K.isInteractive]);const Q=e=>{if(e.preventDefault(),""===K.editedUrl)return;const t=(0,m.prependHTTP)(K.editedUrl);if((0,m.isURL)(t)){var n;if(t===W)X({type:E.N.CLEAR_FEED}),J({url:W,guids:null!==(n=Z[0])&&void 0!==n&&n.guid?[Z[0].guid]:[]});else X({type:E.N.CHECK_URL,payload:t});X({type:E.N.FINISH_EDITING,payload:t})}else o(__("Your podcast couldn't be embedded. Please double check your URL.","jetpack"))};if(K.isEditing)return(0,r.createElement)(s.Placeholder,{icon:(0,r.createElement)(u.BlockIcon,{icon:f.E}),label:__("Podcast Player","jetpack"),instructions:__("Enter your podcast RSS feed URL.","jetpack"),className:"jetpack-podcast-player__placeholder"},(0,r.createElement)("form",{onSubmit:Q},c,(0,r.createElement)(s.TextControl,{type:"text",inputMode:"url",placeholder:__("Enter URL here…","jetpack"),value:K.editedUrl,className:"components-placeholder__input",onChange:e=>X({type:E.N.EDIT_URL,payload:e})}),(0,r.createElement)(s.Button,{isPrimary:!0,type:"submit"},__("Embed","jetpack"))),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(s.ExternalLink,{href:j},__("Learn more about embeds","jetpack"))));if(null===(B=K.feedData.tracks)||void 0===B||!B.length)return(0,r.createElement)(s.Placeholder,{icon:(0,r.createElement)(u.BlockIcon,{icon:f.E}),label:__("Podcast Player","jetpack"),instructions:__("Loading podcast feed…","jetpack")},(0,r.createElement)(s.Spinner,null));const ee=(e,t)=>n=>{a({[e]:n}),t(n)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.BlockControls,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarButton,{"aria-label":__("Edit Podcast Feed URL","jetpack"),onClick:()=>X({type:E.N.START_EDITING})},__("Replace","jetpack")))),(0,r.createElement)(u.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Podcast settings","jetpack")},(s.ComboboxControl||0===Z.length)&&(0,r.createElement)(s.RangeControl,{label:__("Number of items","jetpack"),value:D,onChange:e=>a({itemsToShow:q?1:e}),min:1,max:10,required:!0,disabled:!!q}),s.ComboboxControl&&(0,r.createElement)(s.ComboboxControl,{className:"jetpack-podcast-player__episode-selector",value:q,onChange:e=>X({type:E.N.SELECT_EPISODE,payload:e}),options:K.feedData.options||[],label:__("Episode","jetpack"),onFilterValueChange:i.noop}),(0,r.createElement)(s.ToggleControl,{label:__("Show Cover Art","jetpack"),checked:F,onChange:e=>a({showCoverArt:e})}),(0,r.createElement)(s.ToggleControl,{label:__("Show Episode Title","jetpack"),checked:O,onChange:e=>a({showEpisodeTitle:e})}),(0,r.createElement)(s.ToggleControl,{label:__("Show Episode Description","jetpack"),checked:z,onChange:e=>a({showEpisodeDescription:e})})),(0,r.createElement)(u.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:p.color,onChange:ee("hexPrimaryColor",d),label:__("Primary Color","jetpack")},{value:g.color,onChange:ee("hexSecondaryColor",w),label:__("Secondary Color","jetpack")},{value:T.color,onChange:ee("hexBackgroundColor",N),label:__("Background Color","jetpack")}]},(0,r.createElement)(u.ContrastChecker,{isLargeText:!1,textColor:g.color,backgroundColor:T.color,fallbackBackgroundColor:A,fallbackTextColor:x}))),(0,r.createElement)("div",{id:$,className:t,ref:Y},(0,r.createElement)(v.Z,{playerId:$,attributes:R,tracks:K.feedData.tracks,cover:K.feedData.cover,title:K.feedData.title,link:K.feedData.link}),!K.isInteractive&&!K.isLoading&&(0,r.createElement)("div",{className:"jetpack-podcast-player__interactive-overlay",onMouseUp:()=>X({type:E.N.MAKE_INTERACTIVE})}),K.isLoading&&(0,r.createElement)("div",{className:"jetpack-podcast-player__loading-overlay"},(0,r.createElement)(s.Spinner,null))))}))},40038:function(e,t,n){"use strict";n.d(t,{E:function(){return r.Z}});var r=n(72182)},93058:function(e,t,n){"use strict";var r=n(63027),a=n(87997);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.Z=o},72182:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.G,null,(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"}),(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"}),(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"})),(0,r.createElement)(a.G,null,(0,r.createElement)(a.G,null),(0,r.createElement)(a.G,null,(0,r.createElement)(a.G,{transform:"matrix(1 0 0 1 144 120)"},(0,r.createElement)(a.Path,{d:"M-122-114h-5v8.18c-0.31-0.11-0.65-0.18-1-0.18c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3v-9h3V-114 L-122-114z M-129-114h-12v2h12V-114L-129-114z M-129-110h-12v2h12V-110L-129-110z M-133-106h-8v2h8V-106L-133-106z M-129-103 c0-0.55,0.45-1,1-1c0.55,0,1,0.45,1,1s-0.45,1-1,1C-128.55-102-129-102.45-129-103z"})))))},21560:function(e,t,n){"use strict";n.r(t),n.d(t,{playing:function(){return i},error:function(){return s}});var r=n(63027),a=n(87997);const o={height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},i=(0,r.createElement)(a.SVG,o,(0,r.createElement)(a.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)(a.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"})),s=(0,r.createElement)(a.SVG,o,(0,r.createElement)(a.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)(a.Path,{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},60996:function(e,t,n){"use strict";n.d(t,{u2:function(){return u},Xd:function(){return p}});var r=n(33163),a=n(29978),o=n(7691),i=n(66046),s=n(37126),l=n(40038),c=n(32750);const __=r.__,_x=r._x,u="podcast-player",p={title:__("Podcast Player","jetpack"),description:__("Select and play episodes from a single podcast.","jetpack"),icon:{src:l.E,foreground:(0,c.m)()},category:"embed",keywords:[_x("audio","block search term","jetpack"),_x("embed","block search term","jetpack")],supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},edit:i.Z,save:s.Z,attributes:a.Z,example:{attributes:{customPrimaryColor:(0,c.m)(),hexPrimaryColor:(0,c.m)(),exampleFeedData:{title:__("Jetpack Example Podcast","jetpack"),link:"https://jetpack.com",cover:"https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160",tracks:[{id:"3",title:__("3. Our third episode","jetpack"),duration:"14:58"},{id:"2",title:__("2. Interview with a special guest","jetpack"),duration:"19:17"},{id:"1",title:__("1. Welcome to Example Podcast","jetpack"),duration:"11:25"}]}}},deprecated:[o.Z]}},37126:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({attributes:e}){const{url:t}=e;if(t&&""!==t)return(0,r.createElement)("a",{className:"jetpack-podcast-player__direct-link",href:t},t)}},90805:function(e,t,n){"use strict";n.d(t,{N:function(){return r},J:function(){return a}});const r={EDIT_URL:"EDIT_URL",FINISH_EDITING:"FINISH_EDITING",START_EDITING:"START_EDITING",SELECT_EPISODE:"SELECT_EPISODE",FEED_RECEIVED:"FEED_RECEIVED",CLEAR_FEED:"CLEAR_FEED",MAKE_INTERACTIVE:"MAKE_INTERACTIVE",PREVENT_INTERACTIONS:"PREVENT_INTERACTIONS",START_FETCH:"START_FETCH",CHECK_URL:"CHECK_URL"},a=(e,t)=>{switch(t.type){case r.EDIT_URL:return{...e,editedUrl:t.payload};case r.START_EDITING:return{...e,isEditing:!0,isLoading:!1};case r.FINISH_EDITING:return{...e,editedUrl:t.payload,isEditing:!1};case r.FEED_RECEIVED:return{...e,isLoading:!1,feedData:t.payload};case r.CLEAR_FEED:return{...e,feedData:{}};case r.MAKE_INTERACTIVE:return{...e,isInteractive:!0};case r.PREVENT_INTERACTIONS:return{...e,isInteractive:!1};case r.START_FETCH:return{...e,isLoading:!0};case r.SELECT_EPISODE:return{...e,selectedGuid:t.payload};case r.CHECK_URL:return{...e,selectedGuid:null,feedData:{},checkUrl:t.payload};default:return{...e}}}},46745:function(e,t,n){"use strict";n.d(t,{Gd:function(){return i},W4:function(){return s},Aq:function(){return l}});var r=n(89105),a=n.n(r),o=n(33804);function i(e,t){if(e&&t)return`has-${t}-${e}`}function s(e){let t=!1;return{promise:new Promise(((n,r)=>{e.then((e=>t?r({isCanceled:!0}):n(e)),(e=>r(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}}const l=(0,o.memoize)((({primaryColor:e,customPrimaryColor:t,secondaryColor:n,customSecondaryColor:r,backgroundColor:o,customBackgroundColor:s})=>{const l=i("color",e),c=i("color",n),u=i("background-color",o);return{primary:{name:e,custom:t,classes:a()({"has-primary":l||t,[l]:l})},secondary:{name:n,custom:r,classes:a()({"has-secondary":c||r,[c]:c})},background:{name:o,custom:s,classes:a()({"has-background":u||s,[u]:u})}}}),(e=>Object.values(e).join()))},89067:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o(){return(0,r.createElement)("div",{className:"premium-content-wrapper"},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]],__experimentalCaptureToolbars:!0,templateInsertUpdatesSelection:!1}))}},82330:function(e,t,n){"use strict";var r=n(63027);const a={selectedTab:{id:"",className:"",label:(0,r.createElement)(r.Fragment,null)},stripeNudge:null},o=(0,r.createContext)(a);t.Z=o},52067:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(78900),a=n.n(r),o=n(63027),i=n(46399),s=n(87997),l=n(80808),c=n(85628),u=n(33163),p=n(38759),d=n(80619);const __=u.__;function m(e){const{selectedPlanId:t,onSelected:n,plans:r,getPlanDescription:u}=e,m=r.find((e=>e.id===t));let h=null;return m&&(h=" "+u(m)),(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(s.ToolbarGroup,null,(0,o.createElement)(s.ToolbarItem,null,(()=>(0,o.createElement)(s.DropdownMenu,{icon:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.Z,{icon:c.Z})," ",h&&(0,o.createElement)(o.Fragment,null,h)),label:__("Select a plan","jetpack"),className:"premium-content-toolbar-button"},(({onClose:t})=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p.Z,a()({},e,{onSelected:n,onClose:t,selectedPlan:m})),(0,o.createElement)(d.Z,a()({},e,{onClose:t})))))))))}},27004:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z",fill:"black"}),(0,r.createElement)(a.Circle,{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,r.createElement)(a.Path,{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"black",strokeWidth:"1.5",fill:"none"}))},47078:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(87997),o=n(46399),i=n(33163),s=n(27975);const __=i.__;function l(e){const[t,n]=(0,r.useState)(0),{attributes:i,setAttributes:l,className:c,savePlan:u,siteSlug:p}=e;return(0,r.createElement)(o.InspectorControls,null,p&&(0,r.createElement)(a.ExternalLink,{href:`https://wordpress.com/earn/payments/${p}`,className:"wp-block-premium-content-container---link-to-earn"},__("Manage your subscriptions.","jetpack")),(0,r.createElement)(a.PanelBody,{title:__("Add a new subscription","jetpack"),initialOpen:!0,className:`${c}---settings-add_plan`},1===t&&(0,r.createElement)(a.Placeholder,{icon:"lock",label:__("Premium Content","jetpack"),instructions:__("Saving plan…","jetpack")},(0,r.createElement)(a.Spinner,null)),0===t&&(0,r.createElement)("div",null,(0,r.createElement)(a.PanelRow,{className:"plan-name"},(0,r.createElement)(a.TextControl,{id:"new-plan-name",label:__("Name","jetpack"),value:i.newPlanName,onChange:e=>l({newPlanName:e})})),(0,r.createElement)(a.PanelRow,{className:"plan-price"},(0,r.createElement)(a.SelectControl,{label:__("Currency","jetpack"),onChange:e=>l({newPlanCurrency:e}),value:i.newPlanCurrency,options:s.Xy}),(0,r.createElement)(a.TextControl,{label:__("Price","jetpack"),value:i.newPlanPrice,onChange:e=>l({newPlanPrice:parseFloat(e)}),type:"number"})),(0,r.createElement)(a.PanelRow,{className:"plan-interval"},(0,r.createElement)(a.SelectControl,{label:__("Interval","jetpack"),onChange:e=>l({newPlanInterval:e}),value:i.newPlanInterval,options:[{label:__("Month","jetpack"),value:"1 month"},{label:__("Year","jetpack"),value:"1 year"}]})),(0,r.createElement)(a.PanelRow,null,(0,r.createElement)(a.Button,{isSecondary:!0,isLarge:!0,onClick:t=>{t.preventDefault(),n(1),u(e.attributes,(e=>{n(0),e&&(l({newPlanPrice:5}),l({newPlanName:""}))}))}},__("Add subscription","jetpack"))))))}},80619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(65707),o=n(87997),i=n(33163);const __=i.__;function s(e){return(0,r.createElement)(o.MenuGroup,null,(0,r.createElement)(o.MenuItem,{onClick:t=>{t.preventDefault(),(0,a.select)("core/edit-post").isEditorSidebarOpened()||(0,a.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block");const n=document.getElementById("new-plan-name");null!==n&&n.focus(),e.onClose()}},__("Add a new subscription","jetpack")))}},22058:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(87997);function o(e){const{className:t,plan:n,selectedPlan:o,onSelected:i,onClose:s,getPlanDescription:l}=e,c=o&&n.id===o.id,u=(c?["is-selected"]:[]).concat([t]).join(" "),p=c?"yes":void 0;let d=null;return n&&(d=" "+l(n)),(0,r.createElement)(a.MenuItem,{onClick:e=>{e.preventDefault(),i(n),s()},className:u,key:n.id,value:n.id,selected:c,icon:p},n.title," : ",d)}},38759:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(78900),a=n.n(r),o=n(63027),i=n(87997),s=n(22058);function l(e){const{plans:t,selectedPlan:n,onSelected:r}=e;return(0,o.createElement)(i.MenuGroup,null,t.map((t=>(0,o.createElement)(s.Z,a()({},e,{key:t.id,selectedPlan:n,onSelected:r,plan:t})))))}},39714:function(e,t,n){"use strict";n.d(t,{W:function(){return a},H:function(){return o}});var r=n(65707);const a=e=>0===e.name.indexOf("premium-content/")||e.innerBlocks.some(a),o=e=>{const{getBlocksByClientId:t,getBlockParents:n}=(0,r.select)("core/block-editor");return!!t(n(e.clientId)).find((e=>0===e.name.indexOf("premium-content/")))}},79798:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(51417),i=n(65707),s=n(33163),l=n(65799);const __=s.__,c=["core/button","jetpack/recurring-payments","premium-content/login-button"];t.Z=(0,o.compose)([(0,i.withSelect)(((e,t)=>({subscribeButton:e("core/block-editor").getBlock(t.clientId).innerBlocks.find((e=>"jetpack/recurring-payments"===e.name))}))),(0,i.withDispatch)(((e,t)=>({setSubscribeButtonPlan(n){e("core/block-editor").updateBlockAttributes(t.subscribeButton.clientId,{planId:n})}})))])((function({context:e,subscribeButton:t,setSubscribeButtonPlan:n}){const o=e?e["premium-content/planId"]:null,i=!!e&&e["premium-content/isPreview"],s=[["core/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack")}],["premium-content/login-button"]],u=[["jetpack/recurring-payments",{planId:o},[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack")}]]],["premium-content/login-button"]];(0,r.useEffect)((()=>{o&&t&&t.attributes.planId!==o&&n(o)}),[o,t,n]),(0,r.useEffect)((()=>{t&&(0,l.addFilter)("jetpack.RecurringPayments.showControls","jetpack/premium-content-hide-recurring-payments-controls",((e,n)=>n!==t.clientId&&e))}),[t]);const p=(0,a.useBlockProps)({className:"wp-block-buttons"});return(0,r.createElement)("div",p,(0,r.createElement)(a.InnerBlocks,{allowedBlocks:c,template:i?s:u,templateInsertUpdatesSelection:!1,__experimentalLayout:{type:"default",alignments:[]},__experimentalMoverDirection:"horizontal"}))}))},9104:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(63027),a=n(33163),o=n(7225),i=n(46399),s=n(79798),l=n(41623);const __=a.__,c="premium-content/buttons",u={apiVersion:2,title:__("Premium Content buttons","jetpack"),description:__("Prompt Premium Content visitors to take action with a group of button-style links.","jetpack"),category:"grow",icon:o.Z,supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},keywords:[__("link","jetpack")],edit:s.Z,save:l.Z,usesContext:["premium-content/planId","premium-content/isPreview"],deprecated:[{attributes:{},supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-buttons"},(0,r.createElement)(i.InnerBlocks.Content,null))}]}},41623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o(){const e=a.useBlockProps.save({className:"wp-block-buttons"});return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},48833:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(87997),s=n(46399),l=n(33163),c=n(51417),u=n(65707),p=n(791),d=n(85880),m=n(37606),h=n.n(m),f=n(89067),g=n(52067),b=n(47078),v=n(82330),k=n(45395),y=n(27975),E=n(23691),w=n(363);const __=l.__,_=[{id:"premium",label:(0,o.createElement)("span",null,__("Subscriber View","jetpack")),className:"wp-premium-content-subscriber-view"},{id:"wall",label:(0,o.createElement)("span",null,__("Non-subscriber View","jetpack")),className:"wp-premium-content-logged-out-view"}],C=[];function S(e){const[t,n]=(0,o.useState)(_[1]),[r,c]=(0,o.useState)(!1),[u,m]=(0,o.useState)(C),[S,x]=(0,o.useState)(null),[T,N]=(0,o.useState)(0),[A,P]=(0,o.useState)(!1),[I,M]=(0,o.useState)(""),{isPreview:B}=e.attributes;function R(t,n){if(!t.newPlanName||0===t.newPlanName.length)return j(e,__("Plan requires a name","jetpack")),void n(!1);const r=parseFloat(t.newPlanPrice),a=(0,y.hj)(t.newPlanCurrency),o=(0,l.sprintf)(__("Minimum allowed price is %s.","jetpack"),(0,d.ZP)(a,t.newPlanCurrency));if(r<a)return j(e,o),void n(!1);if(!(0,y.vs)(t.newPlanCurrency,r))return j(e,__("Plan requires a valid price","jetpack")),void n(!1);const i={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:t.newPlanCurrency,price:t.newPlanPrice,title:t.newPlanName,interval:t.newPlanInterval}};h()(i).then((t=>{const r={id:t.id,title:t.title,interval:t.interval,price:t.price,currency:t.currency};m(u.concat([r])),L(r),function(e,t){e.createSuccessNotice(t,{type:"snackbar"})}(e,__("Successfully created plan","jetpack")),n&&n(!0)}),(()=>{j(e,__("There was an error when adding the plan.","jetpack")),n&&n(!1)}))}function L(t){e.setAttributes({selectedPlanId:t.id})}const Z=(0,o.useRef)(null);!function(e,t){function n(n){e.current&&n.target&&n.target instanceof Node&&!e.current.contains(n.target)?t(!1):t(!0)}(0,o.useEffect)((()=>(document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)})))}(Z,c);const{isSelected:D,className:F}=e;(0,o.useEffect)((()=>{if(B)return;const t=(0,p.getQueryArg)(window.location.href,"origin"),n={path:(0,p.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t?"gutenberg-wpcom":"gutenberg"}),method:"GET"};h()(n).then((t=>{if(t||"object"==typeof t){if(t.errors&&Object.values(t.errors)&&Object.values(t.errors)[0][0])return N(2),void j(e,Object.values(t.errors)[0][0]);x((0,E.Z)(e.postId,t.connect_url)),P(t.should_upgrade_to_access_memberships),M(t.site_slug),t.products&&0===t.products.length&&!t.should_upgrade_to_access_memberships&&t.connected_account_id?R({newPlanCurrency:"USD",newPlanPrice:5,newPlanName:__("Monthly Subscription","jetpack"),newPlanInterval:"1 month"},(()=>{N(t.connected_account_id?1:2)})):(t.products&&t.products.length>0&&(m(t.products),e.attributes.selectedPlanId||L(t.products[0])),N(t.connected_account_id?1:2))}}),(t=>{x(null),N(2),j(e,t.message)})),setTimeout((()=>e.selectBlock()),1e3)}),[]);const{autosaveAndRedirect:O}=(0,w.Z)(S);return 0!==T||B?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.BlockControls,null,!A&&1!==T&&S&&(0,o.createElement)(i.ToolbarGroup,null,(0,o.createElement)(i.ToolbarButton,{icon:k.Pw,onClick:O,className:"connect-stripe components-tab-button"},__("Connect Stripe","jetpack"))),(0,o.createElement)(i.ToolbarGroup,null,(0,o.createElement)(i.ToolbarButton,{onClick:()=>{n(_[1])},className:"components-tab-button",isPressed:"wp-premium-content-logged-out-view"===t.className},(0,o.createElement)("span",null,__("Visitor View","jetpack"))),(0,o.createElement)(i.ToolbarButton,{onClick:()=>{n(_[0])},className:"components-tab-button",isPressed:"wp-premium-content-logged-out-view"!==t.className},(0,o.createElement)("span",null,__("Subscriber View","jetpack"))))),(0,o.createElement)("div",{className:F,ref:Z},(D||r)&&1===T&&(0,o.createElement)(g.Z,a()({},e,{plans:u,selectedPlanId:e.attributes.selectedPlanId,onSelected:L,getPlanDescription:function(e){const t=(0,d.ZP)(parseFloat(e.price),e.currency);return"1 month"===e.interval?(0,l.sprintf)(__("%s / month","jetpack"),t):"1 year"===e.interval?(0,l.sprintf)(__("%s / year","jetpack"),t):"one-time"===e.interval?t:(0,l.sprintf)(__("%1$s / %2$s","jetpack"),t,e.interval)}})),(D||r)&&1===T&&(0,o.createElement)(b.Z,a()({},e,{savePlan:R,siteSlug:I})),(0,o.createElement)(v.Z.Provider,{value:{selectedTab:t}},(0,o.createElement)(f.Z,null)))):(0,o.createElement)("div",{className:F,ref:Z},(0,o.createElement)(i.Placeholder,{icon:"lock",label:__("Premium Content","jetpack"),instructions:__("Loading data…","jetpack")},(0,o.createElement)(i.Spinner,null)))}function j(e,t){e.createErrorNotice(t,{type:"snackbar"})}t.Z=(0,c.compose)([(0,u.withSelect)((e=>{const{getCurrentPostId:t}=e("core/editor");return{postId:t()}})),(0,u.withDispatch)(((e,t)=>{const n=e("core/block-editor"),r=e("core/notices");return{selectBlock(){n.selectBlock(t.clientId)},createErrorNotice:r.createErrorNotice,createSuccessNotice:r.createSuccessNotice}}))])((function(e){return(0,o.createElement)(i.Disabled.Consumer,null,(t=>{var n;return(0,o.createElement)(S,a()({},e,{attributes:{...e.attributes,isPreview:t||(null===(n=e.attributes)||void 0===n?void 0:n.isPreview)}}))}))}))},78964:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(33163),a=n(9314),o=n(48833),i=n(32020),s=n(27004),l=n(39714);const __=r.__,_x=r._x,c="premium-content/container",u={title:__("Premium Content","jetpack"),description:__("Restrict access to your content for paying subscribers.","jetpack"),icon:s.Z,category:"grow",keywords:[_x("paywall","keyword","jetpack"),_x("paid","keyword","jetpack"),_x("subscribe","keyword","jetpack"),_x("membership","keyword","jetpack")],attributes:{newPlanName:{type:"string",default:__("Monthly Subscription","jetpack")},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0},isPreview:{type:"boolean",default:!1},isPremiumContentChild:{type:"bool",default:!0}},edit:o.Z,save:i.Z,providesContext:{"premium-content/planId":"selectedPlanId","premium-content/isPreview":"isPreview",isPremiumContentChild:"isPremiumContentChild"},supports:{html:!1},example:{attributes:{isPreview:!0}},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){if(e.some(l.W))return;if((0,l.H)(e[0]))return;const t=e.map((e=>(0,a.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,a.createBlock)("premium-content/container",{},[(0,a.createBlock)("premium-content/subscriber-view",{},t),(0,a.createBlock)("premium-content/logged-out-view")])}}]}}},53575:function(e,t,n){"use strict";var r=n(37496),a=n(23568);t.Z=[r.Z,a.Z]},37496:function(e,t,n){"use strict";var r=n(63027),a=n(9314),o=n(46399);t.Z={attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},isEligible:({buttonClasses:e})=>!!e,migrate:(e,t)=>{if(Array.isArray(t))for(let r=0;r<t.length;r++)if(t[r].name&&"premium-content/buttons"===t[r].name)return[e,[...t]];const n=(0,a.createBlock)("premium-content/buttons",{},[(0,a.createBlock)("jetpack/recurring-payments",{submitButtonText:e.subscribeButtonText,backgroundButtonColor:e.backgroundButtonColor,textButtonColor:e.textButtonColor,customBackgroundButtonColor:e.customBackgroundButtonColor,customTextButtonColor:e.customTextButtonColor}),(0,a.createBlock)("premium-content/login-button",{text:e.loginButtonText,backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,style:{color:{background:e.customBackgroundButtonColor,text:e.customTextButtonColor}}})]);return[e,[...t,n]]},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view"},(0,r.createElement)(o.InnerBlocks.Content,null))}},23568:function(e,t,n){"use strict";var r=n(63027);t.Z={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view"})}},54179:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(33163),i=n(65707),s=n(51417),l=n(82330);const __=o.__;t.Z=(0,s.compose)((0,i.withSelect)((e=>{const{getBlockParents:t,getSelectedBlockClientId:n}=e("core/block-editor"),r=t(n());return{parentClientId:r.length?r[r.length-1]:void 0}})))((function({parentClientId:e,isSelected:t}){const{selectBlock:n}=(0,i.useDispatch)("core/block-editor");return(0,r.useEffect)((()=>{t&&n(e)}),[n,t,e]),(0,r.createElement)(l.Z.Consumer,null,(({selectedTab:e,stripeNudge:t})=>(0,r.createElement)("div",{hidden:"premium"===e.id,className:e.className},t,(0,r.createElement)(a.InnerBlocks,{templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscribe to get access","jetpack"),level:3}],["core/paragraph",{content:__("Read more of this content when you subscribe today.","jetpack")}],["premium-content/buttons"]]}))))}))},72544:function(e,t,n){"use strict";n.d(t,{u:function(){return p},X:function(){return d}});var r=n(54179),a=n(15207),o=n(53575),i=n(27004),s=n(51417),l=n(65707),c=n(33163),u=n(42869);const __=c.__,p="premium-content/logged-out-view",d={title:__("Logged Out View","jetpack"),description:__("The container for all content shown to site visitors who are not subscribers.","jetpack"),icon:i.Z,category:"grow",parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:r.Z,save:a.Z,deprecated:o.Z},m=(0,l.subscribe)((()=>{const e=(0,l.select)("core/rich-text").getFormatType("core/link");if(!e)return;m(),(0,u.unregisterFormatType)("core/link");const t=(0,s.compose)((0,l.withSelect)((e=>({selectedBlock:e("core/block-editor").getSelectedBlock()}))),(0,s.ifCondition)((e=>e.selectedBlock&&e.selectedBlock.name!==p)))(e.edit);(0,u.registerFormatType)("core/link",{...e,edit:t})}))},15207:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o(){return(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view entry-content"},(0,r.createElement)(a.InnerBlocks.Content,null))}},4562:function(e,t,n){"use strict";var r=n(33163);const __=r.__;t.Z={text:{type:"string",source:"html",selector:"a",default:__("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}},93932:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(33163),i=n(65707),s=n(46399);const __=o.__,l="web"===r.Platform.OS;const c=e=>{if(!(0,a.isObject)(e))return e;const t=(0,a.pickBy)((0,a.mapValues)(e,c),a.identity);return(0,a.isEqual)(t,{})?void 0:t};function u({settings:e,clientId:t,enableContrastChecking:n=!0}){const{getComputedStyle:a,Node:o}=window,[i,c]=(0,r.useState)(),[u,p]=(0,r.useState)(),d=__(l?"Color settings":"Color Settings","jetpack");return(0,r.useEffect)((()=>{if(l&&!n)return;const e=function(e){return document.getElementById("block-"+e)}(t);if(!e)return;p(a(e).color);let r=e,i=a(r).backgroundColor;for(;"rgba(0, 0, 0, 0)"===i&&r.parentNode&&r.parentNode.nodeType===o.ELEMENT_NODE;)r=r.parentNode,i=a(r).backgroundColor;c(i)})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(s.__experimentalPanelColorGradientSettings,{title:d,initialOpen:!1,settings:e},l&&n&&(0,r.createElement)(s.ContrastChecker,{backgroundColor:i,textColor:u})))}t.Z=function(e){var t,n,a;const{attributes:o}=e,{colors:l,gradients:p}=(0,i.useSelect)((e=>e("core/block-editor").getSettings()),[]),d=(0,r.useRef)(o);(0,r.useEffect)((()=>{d.current=o}),[o]);const{style:m,textColor:h,backgroundColor:f,gradient:g}=o;let b;var v;b=g?(0,s.getGradientValueBySlug)(p,g):null==m||null===(v=m.color)||void 0===v?void 0:v.gradient;const k=t=>n=>{var r,a;const o=(0,s.getColorObjectByColorValue)(l,n),i=t+"Color",u={...d.current.style,color:{...null===(r=d.current)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.color,[t]:null!=o&&o.slug?void 0:n}},p=null!=o&&o.slug?o.slug:void 0,m={style:c(u),[i]:p};e.setAttributes(m),d.current={...d.current,...m}};return(0,r.createElement)(u,{enableContrastChecking:!(g||null!=m&&null!==(t=m.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[{label:__("Text Color","jetpack"),onColorChange:k("text"),colorValue:(0,s.getColorObjectByAttributeValues)(l,h,null==m||null===(n=m.color)||void 0===n?void 0:n.text).color},{label:__("Background Color","jetpack"),onColorChange:k("background"),colorValue:(0,s.getColorObjectByAttributeValues)(l,f,null==m||null===(a=m.color)||void 0===a?void 0:a.background).color,gradientValue:b,onGradientChange:t=>{const n=(0,s.getGradientSlugByValue)(p,t);let r;if(n){var a,o,i;const e={...null===(a=d.current)||void 0===a?void 0:a.style,color:{...null===(o=d.current)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.color,gradient:void 0}};r={style:c(e),gradient:n}}else{var l,u,m;const e={...null===(l=d.current)||void 0===l?void 0:l.style,color:{...null===(u=d.current)||void 0===u||null===(m=u.style)||void 0===m?void 0:m.color,gradient:t}};r={style:c(e),gradient:void 0}}e.setAttributes(r),d.current={...d.current,...r}}}]})}},94298:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89105),a=n.n(r),o=n(46399);function i(e){var t,n,r,i,s,l,c,u,p,d;const{backgroundColor:m,textColor:h,gradient:f,style:g}=e,b=(0,o.getColorClassName)("background-color",m),v=(0,o.__experimentalGetGradientClass)(f),k=(0,o.getColorClassName)("color",h),y=a()(k,v,{[b]:!(null!=g&&null!==(t=g.color)&&void 0!==t&&t.gradient||!b),"has-text-color":h||(null==g||null===(n=g.color)||void 0===n?void 0:n.text),"has-background":m||(null==g||null===(r=g.color)||void 0===r?void 0:r.background)||f||(null==g||null===(i=g.color)||void 0===i?void 0:i.gradient)});return{className:y||void 0,style:null!=g&&null!==(s=g.color)&&void 0!==s&&s.background||null!=g&&null!==(l=g.color)&&void 0!==l&&l.text||null!=g&&null!==(c=g.color)&&void 0!==c&&c.gradient?{background:null!=g&&null!==(u=g.color)&&void 0!==u&&u.gradient?g.color.gradient:void 0,backgroundColor:null!=g&&null!==(p=g.color)&&void 0!==p&&p.background?g.color.background:void 0,color:null!=g&&null!==(d=g.color)&&void 0!==d&&d.text?g.color.text:void 0}:{}}}},50362:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(46399),s=n(33163),l=n(94298);const __=s.__;t.Z={attributes:{text:{type:"string",source:"html",selector:"a",default:__("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},save:({attributes:e})=>{const{borderRadius:t,text:n}=e,a=(0,l.Z)(e),s=o()("wp-block-button__link",a.className,{"no-border-radius":0===t}),c={borderRadius:t?t+"px":void 0,...a.style};return(0,r.createElement)("div",{className:"wp-block-button"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:s,style:c,value:n}))}}},78145:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33163),s=n(87997),l=n(46399),c=n(93932),u=n(94298);const __=i.__;function p({borderRadius:e="",setAttributes:t}){const n=(0,r.useCallback)((e=>{t({borderRadius:e})}),[t]);return(0,r.createElement)(s.PanelBody,{title:__("Border settings","jetpack")},(0,r.createElement)(s.RangeControl,{value:e,label:__("Border radius","jetpack"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:n}))}t.Z=function(e){const{attributes:t,setAttributes:n,className:a}=e,{borderRadius:i,text:s}=t,d=(0,u.Z)(t),m=(0,l.useBlockProps)({className:"wp-block-button"});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",m,(0,r.createElement)(l.RichText,{placeholder:__("Add text…","jetpack"),value:s,onChange:e=>n({text:e}),withoutInteractiveFormatting:!0,className:o()(a,"wp-block-button__link",d.className,{"no-border-radius":0===i}),style:{borderRadius:i?i+"px":void 0,...d.style}})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(c.Z,e),(0,r.createElement)(p,{borderRadius:i,setAttributes:n})))}},43291:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(7225),a=n(33163),o=n(78145),i=n(29643),s=n(4562),l=n(50362);const __=a.__,c="premium-content/login-button",u={title:__("Premium Content login button","jetpack"),description:__("Prompt subscriber visitors to log in with a button-style link (only visible for logged out users).","jetpack"),category:"grow",attributes:s.Z,icon:r.Z,keywords:[__("link","jetpack")],supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],edit:o.Z,save:i.Z,deprecated:[l.Z]}},29643:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(89105),o=n.n(a),i=n(46399),s=n(94298);function l({attributes:e}){const{borderRadius:t,text:n,align:a}=e,l=(0,s.Z)(e),c=o()("wp-block-button","wp-block-premium-content-login-button",{alignleft:"left"===a},{aligncenter:"center"===a},{alignright:"right"===a}),u=o()("wp-block-button__link",l.className,{"no-border-radius":0===t}),p={borderRadius:t?t+"px":void 0,...l.style},d=i.useBlockProps.save({className:c});return(0,r.createElement)("div",d,(0,r.createElement)(i.RichText.Content,{tagName:"a",className:u,style:p,value:n}))}},32020:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o(){return(0,r.createElement)("div",{className:"wp-block-premium-content-container"},(0,r.createElement)(a.InnerBlocks.Content,null))}},65809:function(e,t,n){"use strict";var r=n(96138);t.Z=[r.Z]},96138:function(e,t,n){"use strict";var r=n(63027);t.Z={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-subscriber-view"})}},30376:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(33163),i=n(65707),s=n(51417),l=n(82330);const __=o.__;t.Z=(0,s.compose)([(0,i.withSelect)(((e,t)=>{const{getBlockParents:n,getSelectedBlockClientId:r}=e("core/block-editor"),a=n(r());return{parentClientId:a.length?a[a.length-1]:void 0,hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length}}))])((function({hasInnerBlocks:e,parentClientId:t,isSelected:n}){const{selectBlock:o}=(0,i.useDispatch)("core/block-editor");return(0,r.useEffect)((()=>{n&&o(t)}),[o,n,t]),(0,r.createElement)(l.Z.Consumer,null,(({selectedTab:t,stripeNudge:n})=>(0,r.createElement)("div",{hidden:"wall"===t.id,className:t.className},n,(0,r.createElement)(a.InnerBlocks,{renderAppender:!e&&a.InnerBlocks.ButtonBlockAppender,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscriber Content","jetpack"),level:3}],["core/paragraph",{content:__("Add content here that will only be visible to your subscribers.","jetpack")}]]}))))}))},71939:function(e,t,n){"use strict";n.d(t,{u:function(){return l},X:function(){return c}});var r=n(30376),a=n(32387),o=n(65809),i=n(27004),s=n(33163);const __=s.__,l="premium-content/subscriber-view",c={title:__("Subscriber View","jetpack"),description:__("The container for all content shown to subscribers.","jetpack"),icon:i.Z,category:"grow",attributes:{},edit:r.Z,save:a.Z,parent:["premium-content/container"],supports:{inserter:!1,html:!1},deprecated:o.Z}},32387:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o(){return(0,r.createElement)("div",{className:"wp-block-premium-content-subscriber-view entry-content"},(0,r.createElement)(a.InnerBlocks.Content,null))}},20828:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(33163),i=n(46399),s=n(87997),l=n(23983);const __=o.__,c=({id:e,setRating:t,children:n})=>{return(0,r.createElement)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(a=e,({keyCode:e})=>e===l.ENTER?t(a):null),onClick:(e=>()=>t(e))(e)},n);var a};t.Z=e=>function({className:t,setAttributes:n,attributes:{align:o,color:l,rating:u,maxRating:p}}){const d=e=>{e===u?Math.ceil(u)===u&&(e-=.5):.5===u&&1===e&&(e=0),n({rating:e})};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(i.AlignmentToolbar,{value:o,onChange:e=>n({align:e})})),(0,r.createElement)("div",{className:t,style:{textAlign:o}},(0,a.range)(1,p+1).map((t=>(0,r.createElement)(c,{key:t,id:t,setRating:d},(0,r.createElement)("span",null,(0,r.createElement)(e,{className:u>=t-.5?null:"is-rating-unfilled",color:l})),(0,r.createElement)("span",null,(0,r.createElement)(e,{className:u>=t?null:"is-rating-unfilled",color:l})))))),(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(s.RangeControl,{label:__("Highest rating","jetpack"),value:p,onChange:e=>n({maxRating:e}),min:2,max:10}),(0,r.createElement)(i.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!0,colorSettings:[{value:l,onChange:e=>n({color:e}),label:__("Color","jetpack")}]}))))}},66439:function(e,t,n){"use strict";n.d(t,{d:function(){return o},r:function(){return i}});var r=n(63027),a=n(87997);const o=()=>(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"})),i=e=>{const t=(e=>e&&e.color?e.color:"currentColor")(e),n=(e=>e&&e.className?e.className:"")(e);return(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t},(0,r.createElement)(a.Path,{className:n,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"}))}},66366:function(e,t,n){"use strict";n.d(t,{u:function(){return l},X:function(){return c}});var r=n(33163),a=n(20828),o=n(23812),i=n(66439),s=n(32750);const __=r.__,_x=r._x,l="rating-star",c={title:__("Star Rating","jetpack"),description:__("Rate movies, books, songs, recipes — anything you can put a number on.","jetpack"),icon:{src:i.d,foreground:(0,s.m)()},keywords:[_x("star","block search term","jetpack"),_x("rating","block search term","jetpack"),_x("review","block search term","jetpack")],category:"widgets",example:{},styles:[{name:"filled",label:_x("Filled","block style","jetpack"),isDefault:!0},{name:"outlined",label:_x("Outlined","block style","jetpack")}],attributes:{rating:{type:"number",default:1},maxRating:{type:"number",default:5},color:{type:"string"},align:{type:"string",default:"left"}},edit:(0,a.Z)(i.r),save:(0,o.Z)("★")}},23812:function(e,t,n){"use strict";var r=n(63027),a=n(33804);t.Z=e=>function({className:t,attributes:{align:n,rating:o,color:i}}){return(0,r.createElement)("figure",{className:t,style:{textAlign:n}},(0,a.range)(1,o+1).map((t=>(0,r.createElement)("span",{key:t,style:{color:i}},e))))}},62217:function(e,t,n){"use strict";n.d(t,{G:function(){return u},J:function(){return p}});var r=n(63027),a=n(33163),o=n(87997),i=n(45395),s=n(84897),l=n(92754),c=n(363);const __=a.__;function u({attributes:{planId:e},products:t,setMembershipAmount:n}){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{title:__("Payment plan","jetpack")},(0,r.createElement)(o.SelectControl,{label:__("Payment plan","jetpack"),value:e,onChange:e=>n(e),options:t.map((e=>({label:(0,s.C)(e),value:e.id,key:e.id})))})),(0,r.createElement)(o.PanelBody,{title:__("Management","jetpack")},(0,r.createElement)(o.ExternalLink,{href:`https://wordpress.com/earn/payments/${(0,l.Z)()}`},__("See your earnings, subscriber list, and payment plans.","jetpack"))))}function p({connected:e,connectURL:t,hasUpgradeNudge:n,shouldUpgrade:a}){const{autosaveAndRedirect:s}=(0,c.Z)(t);return(0,r.createElement)(r.Fragment,null,!n&&!a&&!e&&(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{icon:i.Pw,onClick:s,className:"connect-stripe components-tab-button"},__("Connect Stripe","jetpack"))))}},2379:function(e,t,n){"use strict";var r=n(33804),a=n(9314);const o=["submitButtonText","submitButtonClasses","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor"];t.Z={attributes:{planId:{type:"integer"},submitButtonText:{type:"string"},submitButtonClasses:{type:"string"},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},align:{type:"string"}},migrate:e=>{const t=(0,r.omit)(e,o),n={text:(i=e).submitButtonText,textColor:i.textButtonColor,customTextColor:i.customTextButtonColor,backgroundColor:i.backgroundButtonColor,customBackgroundColor:i.customBackgroundButtonColor};var i;return[t,[(0,a.createBlock)("jetpack/button",{element:"a",uniqueId:"recurring-payments-id",...n})]]},isEligible:(e,t)=>(0,r.isEmpty)(t)||(0,r.some)((0,r.pick)(e,o),Boolean),save:()=>null}},4309:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(37606),c=n.n(l),u=n(33163),p=n(85880),d=n(51417),m=n(65707),h=n(87997),f=n(46399),g=n(65799),b=n(36905),v=n(27975),k=n(23691),y=n(49530),E=n(62217),w=n(84897);const __=u.__;class _ extends o.Component{constructor(){super(...arguments),a()(this,"componentDidMount",(()=>{this.apiCall()})),a()(this,"onError",(e=>{const{noticeOperations:t}=this.props;t.removeAllNotices(),t.createErrorNotice(e)})),a()(this,"apiCall",(()=>{const e={path:"/wpcom/v2/memberships/status",method:"GET"};c()(e).then((e=>{if(e.errors&&Object.values(e.errors)&&Object.values(e.errors)[0][0])return this.setState({connected:null,connectURL:2}),void this.onError(Object.values(e.errors)[0][0]);const{connect_url:t,products:n,should_upgrade_to_access_memberships:r,upgrade_url:a}=e,o=e.connected_account_id?1:2;this.setState({connected:o,connectURL:t,shouldUpgrade:r,upgradeURL:a,products:(0,y.ME)(n)})}),(e=>{this.setState({connected:2,connectURL:null}),this.onError(e.message)}))})),a()(this,"handleCurrencyChange",(e=>{let t=this.state.editedProductPrice;(0,v.vs)(e,t)||(t=(0,w.w)((0,v.hj)(e),e)),this.setState({editedProductCurrency:e,editedProductPrice:t,editedProductPriceValid:!0})})),a()(this,"handleRenewIntervalChange",(e=>this.setState({editedProductRenewInterval:e}))),a()(this,"handlePriceChange",(e=>{const t=parseFloat(e),n=(0,v.vs)(this.state.editedProductCurrency,t);this.setState({editedProductPrice:t,editedProductPriceValid:n})})),a()(this,"handleTitleChange",(e=>this.setState({editedProductTitle:e,editedProductTitleValid:e.length>0}))),a()(this,"saveProduct",(()=>{if(!this.state.editedProductTitle||0===this.state.editedProductTitle.length)return void this.setState({editedProductTitleValid:!1});if(!this.state.editedProductPrice||!(0,v.vs)(this.state.editedProductCurrency,this.state.editedProductPrice))return void this.setState({editedProductPriceValid:!1});this.setState({addingMembershipAmount:2});const e={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:this.state.editedProductCurrency,price:this.state.editedProductPrice,title:this.state.editedProductTitle,interval:this.state.editedProductRenewInterval}};c()(e).then((e=>{this.setState({addingMembershipAmount:0,products:this.state.products.concat([{id:e.id,title:e.title,interval:e.interval,price:e.price,currency:e.currency}])}),this.setMembershipAmount(e.id)}),(e=>{this.setState({addingMembershipAmount:1}),this.onError(e.message)}))})),a()(this,"renderAddMembershipAmount",(e=>{if(0===this.state.addingMembershipAmount&&!e)return(0,o.createElement)(h.Button,{isPrimary:!0,isLarge:!0,onClick:()=>this.setState({addingMembershipAmount:1})},__("Add a payment plan","jetpack"));if(2===this.state.addingMembershipAmount)return;const t=(0,p.ZP)((0,v.hj)(this.state.editedProductCurrency),this.state.editedProductCurrency),n=(0,u.sprintf)(__("Minimum allowed price is %s.","jetpack"),t);return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"membership-button__price-container"},(0,o.createElement)(h.SelectControl,{className:"membership-button__field membership-button__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:v.Xy,value:this.state.editedProductCurrency}),(0,o.createElement)("div",{className:"membership-membership-button__field membership-button__field-price"},(0,o.createElement)(h.TextControl,{label:__("Price","jetpack"),className:s()({"membership-button__field-error":!this.state.editedProductPriceValid}),onChange:this.handlePriceChange,placeholder:t,required:!0,min:"0",step:"1",type:"number",value:this.state.editedProductPrice||""}),(0,o.createElement)("p",null,n))),(0,o.createElement)(h.TextControl,{className:s()({"membership-button__field":!0,"membership-button__field-error":!this.state.editedProductTitleValid}),label:__("Describe your subscription in a few words","jetpack"),onChange:this.handleTitleChange,placeholder:__("Subscription description","jetpack"),value:this.state.editedProductTitle}),(0,o.createElement)(h.SelectControl,{label:__("Renew interval","jetpack"),onChange:this.handleRenewIntervalChange,options:[{label:__("Monthly","jetpack"),value:"1 month"},{label:__("Yearly","jetpack"),value:"1 year"},{label:__("One-Time Payment","jetpack"),value:"one-time"}],value:this.state.editedProductRenewInterval}),(0,o.createElement)("div",null,(0,o.createElement)(h.Button,{isPrimary:!0,isLarge:!0,className:"membership-button__field-button membership-button__add-amount",onClick:this.saveProduct},__("Add this payment plan","jetpack")),(0,o.createElement)(h.Button,{isLarge:!0,className:"membership-button__field-button",onClick:()=>this.setState({addingMembershipAmount:0})},__("Cancel","jetpack"))))})),a()(this,"getFormattedPriceByProductId",(e=>{const t=this.state.products.filter((t=>parseInt(t.id)===parseInt(e))).pop();return(0,p.ZP)(parseFloat(t.price),t.currency)})),a()(this,"setMembershipAmount",(e=>{const{innerButtons:t,updateBlockAttributes:n,setAttributes:r}=this.props,a=this.props.attributes.planId,o=(0,u.sprintf)(__("%s contribution","jetpack"),this.getFormattedPriceByProductId(e)),i=a?(0,u.sprintf)(__("%s contribution","jetpack"),this.getFormattedPriceByProductId(a)):void 0;return t&&t.length&&t[0].innerBlocks.forEach((e=>{const t=e.attributes.text,r=t===i?o:t;n(e.clientId,{text:r})})),r({planId:parseInt(e)})})),a()(this,"renderMembershipAmounts",(()=>(0,o.createElement)("div",null,this.state.products.map((e=>(0,o.createElement)(h.Button,{className:"membership-button__field-button",isLarge:!0,isSecondary:!0,key:e.id,onClick:()=>this.setMembershipAmount(e.id)},(0,w.C)(e))))))),a()(this,"renderDisclaimer",(()=>(0,o.createElement)("div",{className:"membership-button__disclaimer"},(0,o.createElement)(h.ExternalLink,{href:"https://wordpress.com/support/wordpress-editor/blocks/payments/#related-fees"},__("Read more about Payments and related fees.","jetpack"))))),a()(this,"renderUpgradeNudges",(()=>{const{notices:e}=this.props;return(0,o.createElement)(o.Fragment,null,!this.hasUpgradeNudge&&this.state.shouldUpgrade&&(0,o.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},(0,o.createElement)(h.Placeholder,{icon:(0,o.createElement)(f.BlockIcon,{icon:y.qv}),label:__("Payments","jetpack"),notices:e,instructions:__("You'll need to upgrade your plan to use the Payments block.","jetpack")},(0,o.createElement)(h.Button,{isSecondary:!0,isLarge:!0,href:this.state.upgradeURL,target:"_blank"},__("Upgrade your plan","jetpack")),this.renderDisclaimer())))})),a()(this,"renderPlanNotices",(()=>{const{notices:e}=this.props,{connected:t,products:n}=this.state;return(0,o.createElement)(o.Fragment,null,(0===t||2===this.state.addingMembershipAmount)&&!this.props.attributes.planId&&(0,o.createElement)(h.Placeholder,{icon:(0,o.createElement)(f.BlockIcon,{icon:y.qv}),notices:e},(0,o.createElement)(h.Spinner,null)),!this.state.shouldUpgrade&&!this.props.attributes.planId&&1===t&&0===n.length&&(0,o.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},(0,o.createElement)(h.Placeholder,{icon:(0,o.createElement)(f.BlockIcon,{icon:y.qv}),label:__("Payments","jetpack"),notices:e},(0,o.createElement)("div",{className:"components-placeholder__instructions"},(0,o.createElement)("p",null,__("To use this block, first add at least one payment plan.","jetpack")),this.renderAddMembershipAmount(!0),this.renderDisclaimer()))),!this.state.shouldUpgrade&&!this.props.attributes.planId&&2!==this.state.addingMembershipAmount&&1===t&&n.length>0&&(0,o.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},(0,o.createElement)(h.Placeholder,{icon:(0,o.createElement)(f.BlockIcon,{icon:y.qv}),label:__("Payments","jetpack"),notices:e},(0,o.createElement)("div",{className:"components-placeholder__instructions"},(0,o.createElement)("p",null,__("To use this block, select a previously created payment plan.","jetpack")),this.renderMembershipAmounts(),(0,o.createElement)("p",null,__("Or a new one.","jetpack")),this.renderAddMembershipAmount(!1),this.renderDisclaimer()))))})),a()(this,"render",(()=>{const{connected:e,connectURL:t,products:n}=this.state,r=(0,g.applyFilters)("jetpack.RecurringPayments.showControls",n.length>0,this.props.clientId),a=(0,o.createElement)(f.InspectorControls,null,(0,o.createElement)(E.G,{attributes:this.props.attributes,products:n,setMembershipAmount:this.setMembershipAmount})),i=(0,o.createElement)(f.BlockControls,null,(0,o.createElement)(E.J,{connected:2!==e,connectURL:(0,k.Z)(this.props.postId,t),hasUpgradeNudge:this.hasUpgradeNudge,shouldUpgrade:this.state.shouldUpgrade}));return(0,o.createElement)(o.Fragment,null,this.props.noticeUI,!this.isPremiumContentChild&&this.renderUpgradeNudges(),!this.isPremiumContentChild&&this.renderPlanNotices(),r&&a,i,(0,o.createElement)(f.InnerBlocks,{template:[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id"}]],templateLock:"all",__experimentalCaptureToolbars:!0,templateInsertUpdatesSelection:!1}))})),this.state={connected:0,connectURL:null,addingMembershipAmount:0,shouldUpgrade:!1,upgradeURL:"",products:[],editedProductCurrency:"USD",editedProductPrice:(0,w.w)((0,v.hj)("USD"),"USD"),editedProductPriceValid:!0,editedProductTitle:"",editedProductTitleValid:!0,editedProductRenewInterval:"1 month"},this.timeout=null;const e=(0,b.Z)("recurring-payments");this.hasUpgradeNudge=!e.available&&"missing_plan"===e.unavailableReason,this.isPremiumContentChild=this.props.context.isPremiumContentChild||!1}}t.Z=(0,d.compose)([(0,m.withSelect)((e=>({postId:e("core/editor").getCurrentPostId()}))),(0,m.withDispatch)((e=>{const{updateBlockAttributes:t}=e("core/editor");return{updateBlockAttributes:t,autosaveAndRedirect:async(t,n)=>{t.preventDefault(),await e("core/editor").savePost(),window.top.location.href=n}}})),h.withNotices])(_)},49530:function(e,t,n){"use strict";n.d(t,{u2:function(){return p},qv:function(){return d},Xd:function(){return m},ME:function(){return h}});var r=n(63027),a=n(87997),o=n(46399),i=n(33163),s=n(32750),l=n(2379),c=n(4309),u=n(27975);const __=i.__,_x=i._x,p="recurring-payments",d=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,r.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(a.G,null,(0,r.createElement)(a.Path,{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"}))),m={title:__("Payments","jetpack"),icon:{src:d,foreground:(0,s.m)()},description:__("Button allowing you to sell products and subscriptions.","jetpack"),category:"earn",keywords:[_x("sell","block search term","jetpack"),_x("subscriptions","block search term","jetpack"),_x("product","block search term","jetpack"),"stripe",_x("memberships","block search term","jetpack")],usesContext:["isPremiumContentChild"],attributes:{planId:{type:"integer"},align:{type:"string"}},edit:c.Z,save:({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(o.InnerBlocks.Content,null)),supports:{html:!1,align:!0},deprecated:[l.Z]};function h(e){return e.filter((e=>(0,u.vs)(e.currency,e.price)))}},84897:function(e,t,n){"use strict";n.d(t,{w:function(){return o},C:function(){return i}});var r=n(33163),a=n(85880);const __=r.__,o=(e,t)=>(0,a.ZP)(e,t,{decimal:".",symbol:""}),i=e=>{const t=(0,a.ZP)(parseFloat(e.price),e.currency);return"1 month"===e.interval?(0,r.sprintf)(__("%s / month","jetpack"),t):"1 year"===e.interval?(0,r.sprintf)(__("%s / year","jetpack"),t):"one-time"===e.interval?t:(0,r.sprintf)(__("%1$s / %2$s","jetpack"),t,e.interval)}},92087:function(e,t,n){"use strict";n.d(t,{Hj:function(){return i},AP:function(){return s}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__;function i({attributes:e,setAttributes:t}){const{displayContext:n,displayDate:a,displayThumbnails:i,postsToShow:s}=e;return(0,r.createElement)(o.PanelBody,{title:__("Related Posts Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Display thumbnails","jetpack"),checked:i,onChange:e=>t({displayThumbnails:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Display date","jetpack"),checked:a,onChange:e=>t({displayDate:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Display context (category or tag)","jetpack"),checked:n,onChange:e=>t({displayContext:e})}),(0,r.createElement)(o.RangeControl,{label:__("Number of posts","jetpack"),value:s,onChange:e=>t({postsToShow:Math.min(e,6)}),min:1,max:6}))}function s({attributes:e,setAttributes:t}){const{postLayout:n}=e,a=[{icon:"grid-view",title:__("Grid View","jetpack"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===n},{icon:"list-view",title:__("List View","jetpack"),onClick:()=>t({postLayout:"list"}),isActive:"list"===n}];return(0,r.createElement)(o.ToolbarGroup,{controls:a})}},50549:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(46399),i=n(87997),s=n(33804),l=n(65707),c=n(51417),u=n(92087);const __=a.__;function p(e){return(0,r.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,r.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},e.isInSiteEditor?__("Preview unavailable in site editor.","jetpack"):__("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&(0,r.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":__("Placeholder image","jetpack")},(0,r.createElement)(i.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},(0,r.createElement)("title",null,__("Grey square","jetpack")),(0,r.createElement)(i.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96","fill-opacity":".1"})),(0,r.createElement)(i.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("title",null,__("Icon for image","jetpack")),(0,r.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(i.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},__("August 3, 2018","jetpack")),e.displayContext&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},__("In “Uncategorized”","jetpack")))}function d(e){return(0,r.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,r.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&(0,r.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url},(0,r.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title,rel:"nofollow noopener noreferrer",target:"_blank"})),e.displayDate&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayContext&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},e.post.context))}function m(e){const t="jp-related-posts-i2__row";let n=0;const a=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:n=2;break;default:n=3}return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:t,"data-post-count":e.posts.slice(0,n).length},e.posts.slice(0,n)),a&&(0,r.createElement)("div",{className:t,"data-post-count":e.posts.slice(n).length},e.posts.slice(n)))}class h extends r.Component{render(){const{attributes:e,className:t,posts:n,setAttributes:a,instanceId:i,isInSiteEditor:s}=this.props,{displayContext:l,displayDate:c,displayThumbnails:h,postLayout:f,postsToShow:g}=e,b="jp-relatedposts-i2",v=[];for(let o=0;o<g;o++)n[o]?v.push((0,r.createElement)(d,{id:`related-posts-${i}-post-${o}`,key:b+"-"+o,post:n[o],displayThumbnails:h,displayDate:c,displayContext:l})):v.push((0,r.createElement)(p,{id:`related-posts-${i}-post-${o}`,key:"related-post-placeholder-"+o,displayThumbnails:h,displayDate:c,displayContext:l,isInSiteEditor:s}));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(u.Hj,{attributes:e,setAttributes:a})),(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(u.AP,{attributes:e,setAttributes:a})),(0,r.createElement)("div",{className:t,id:`related-posts-${i}`},(0,r.createElement)("div",{className:b,"data-layout":f},(0,r.createElement)(m,{posts:v}))))}}t.ZP=(0,c.compose)(c.withInstanceId,(0,l.withSelect)((e=>{const{getCurrentPost:t}=e("core/editor"),n=t();return{posts:(0,s.get)(n,"jetpack-related-posts",[]),isInSiteEditor:(0,s.isEmpty)(n)}})))(h)},96015:function(e,t,n){"use strict";n.d(t,{u2:function(){return l},Xd:function(){return u}});var r=n(63027),a=n(33163),o=n(87997),i=n(50549),s=n(32750);const __=a.__,_x=a._x,l="related-posts",c=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.G,{stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"},(0,r.createElement)(o.Path,{d:"M4,4 L4,19 M4,4 L19,4 M4,9 L19,9 M4,14 L19,14 M4,19 L19,19 M9,4 L9,19 M19,4 L19,19"}))),u={title:__("Related Posts","jetpack"),icon:{src:c,foreground:(0,s.m)()},category:"embed",keywords:[_x("similar content","block search term","jetpack"),_x("linked","block search term","jetpack"),_x("connected","block search term","jetpack")],attributes:{postLayout:{type:"string",default:"grid"},displayDate:{type:"boolean",default:!0},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},postsToShow:{type:"number",default:3}},supports:{html:!1,multiple:!1,reusable:!1},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},edit:i.ZP,save:()=>null,example:{attributes:{postLayout:"grid",displayDate:!0,displayThumbnails:!0,displayContext:!1,postsToShow:2}}}},44596:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(87997),l=n(46399),c=n(65707),u=n(89105),p=n.n(u),d=n(18184),m=n(36335);const __=i.__,_n=i._n,h=[{value:d.FV,label:__("Show after threshold","jetpack")},{value:d.Am,label:__("Show before threshold","jetpack")}];class f extends o.Component{constructor(...e){super(...e),a()(this,"state",{isThresholdValid:!0}),a()(this,"setCriteria",(e=>this.props.setAttributes({criteria:e}))),a()(this,"setThreshold",(e=>{if(/^\d+$/.test(e)&&+e>0)return this.props.setAttributes({threshold:+e}),void this.setState({isThresholdValid:!0});this.setState({isThresholdValid:!1})}))}getNoticeLabel(){return this.props.attributes.criteria===d.FV?1===this.props.attributes.threshold?__("This block will only appear to people who have visited this page more than once.","jetpack"):(0,i.sprintf)(_n("This block will only appear to people who have visited this page more than %d time.","This block will only appear to people who have visited this page more than %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold):1===this.props.attributes.threshold?__("This block will only appear to people who are visiting this page for the first time.","jetpack"):(0,i.sprintf)(_n("This block will only appear to people who are visiting this page for %d time.","This block will only appear to people who have visited this page at most %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold)}render(){return(0,o.createElement)("div",{className:p()(this.props.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!this.props.isSelected})},(0,o.createElement)(s.Placeholder,{icon:m.qv,label:__("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},(0,o.createElement)(s.TextControl,{className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:this.props.attributes.threshold,help:this.state.isThresholdValid?"":__("Please enter a valid number.","jetpack"),label:__("Visit count threshold","jetpack"),min:"1",onChange:this.setThreshold,pattern:"[0-9]",type:"number"}),(0,o.createElement)(s.RadioControl,{label:__("Visibility","jetpack"),selected:this.props.attributes.criteria,options:h,onChange:this.setCriteria})),(0,o.createElement)(s.Notice,{status:"info",isDismissible:!1},this.getNoticeLabel()),(0,o.createElement)(l.InnerBlocks,null))}}t.Z=(0,c.withSelect)(((e,t)=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=e("core/block-editor");return{isSelected:n(t.clientId)||r(t.clientId)}}))(f)},46960:function(e,t,n){"use strict";var r=n(63027),a=n(46399);t.Z=({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks.Content,null))},18184:function(e,t,n){"use strict";n.d(t,{FV:function(){return r},Am:function(){return a},Kv:function(){return o}});const r="after-visits",a="before-visits",o=3},36335:function(e,t,n){"use strict";n.d(t,{u2:function(){return p},qv:function(){return d},Xd:function(){return m}});var r=n(63027),a=n(33163),o=n(87997),i=n(14541),s=n(44596),l=n(46960),c=n(18184),u=n(32750);const __=a.__,_x=a._x,p="repeat-visitor",d=(0,i.Z)((0,r.createElement)(o.Path,{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"})),m={attributes:{criteria:{type:"string",default:c.FV},threshold:{type:"number",default:c.Kv}},category:"widgets",description:__("Control block visibility based on how often a visitor has viewed the page.","jetpack"),icon:{src:d,foreground:(0,u.m)()},keywords:[_x("return","block search term","jetpack"),_x("visitors","block search term","jetpack"),_x("visibility","block search term","jetpack")],supports:{html:!1},title:__("Repeat Visitor","jetpack"),edit:s.Z,save:l.Z,example:{attributes:{criteria:c.FV,threshold:c.Kv},innerBlocks:[{name:"core/paragraph",attributes:{content:__("This block will only appear to a visitor who visited the page three or more times.","jetpack")}}]}}},89451:function(e,t,n){"use strict";var r=n(33163);const __=r.__;t.Z={revueUsername:{type:"string"},emailLabel:{type:"string",default:__("Email address","jetpack")},emailPlaceholder:{type:"string",default:__("Enter your email address","jetpack")},firstNameLabel:{type:"string",default:__("First name","jetpack")},firstNamePlaceholder:{type:"string",default:__("Enter your first name","jetpack")},firstNameShow:{type:"boolean",default:!0},lastNameLabel:{type:"string",default:__("Last name","jetpack")},lastNamePlaceholder:{type:"string",default:__("Enter your last name","jetpack")},lastNameShow:{type:"boolean",default:!0}}},39952:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(9314),i=n(33163);const _x=i._x,__=i.__,s=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius","gradient","customGradient"];t.Z={attributes:{revueUsername:{type:"string"},text:{type:"string",default:_x("Subscribe","verb: e.g. subscribe to a newsletter.","jetpack")},emailLabel:{type:"string",default:__("Email address","jetpack")},emailPlaceholder:{type:"string",default:__("Enter your email address","jetpack")},firstNameLabel:{type:"string",default:__("First name","jetpack")},firstNamePlaceholder:{type:"string",default:__("Enter your first name","jetpack")},firstNameShow:{type:"boolean",default:!0},lastNameLabel:{type:"string",default:__("Last name","jetpack")},lastNamePlaceholder:{type:"string",default:__("Enter your last name","jetpack")},lastNameShow:{type:"boolean",default:!0},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},migrate:e=>{const t=(0,a.omit)(e,s),n=(0,a.pick)(e,s);return[t,[(0,o.createBlock)("jetpack/button",{element:"button",text:n.text||"Subscribe",...n})]]},isEligible:(e,t)=>(0,a.isEmpty)(t)||(0,a.some)((0,a.pick)(e,s),Boolean),save:({attributes:{revueUsername:e}})=>{const t=`https://www.getrevue.co/profile/${e}`;return(0,r.createElement)("div",null,(0,r.createElement)("a",{href:t},t))}}},16006:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(63027),a=n(33804),o=n(46399),i=n(87997),s=n(33163),l=n(4344),c=n(89451),u=n(3789),p=n(96675),d=n(83353),m=n(42975);const __=s.__;function h({attributes:e,className:t,setAttributes:n}){(0,r.useEffect)((()=>{const t=(0,d.S)(c.Z,e);(0,a.isEqual)(t,e)||n(t)}),[e,n]);const{revueUsername:s,emailLabel:h,emailPlaceholder:f,firstNameLabel:g,firstNamePlaceholder:b,firstNameShow:v,lastNameLabel:k,lastNamePlaceholder:y,lastNameShow:E}=e,[w,_]=(0,r.useState)("");(0,r.useEffect)((()=>{!w&&s&&_(s)}),[]);const C=(0,m.Wp)()||(0,m.Ug)()?"http://support.wordpress.com/wordpress-editor/blocks/revue-block/":"https://jetpack.com/support/jetpack-blocks/revue-block/";return(0,r.createElement)("div",{className:t},!s&&(0,r.createElement)(i.Placeholder,{icon:(0,r.createElement)(o.BlockIcon,{icon:p.Z}),instructions:__("Enter your Revue username.","jetpack"),label:__("Revue","jetpack")},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),n({revueUsername:w.trim()})}},(0,r.createElement)("input",{className:"components-placeholder__input",onChange:e=>_(e.target.value.trim()),placeholder:__("Enter your Revue username here…","jetpack"),type:"text",value:w}),(0,r.createElement)("div",null,(0,r.createElement)(i.Button,{disabled:!w,isDefault:!0,isLarge:!0,isSecondary:!0,type:"submit"},__("Add Form","jetpack")))),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(i.ExternalLink,{href:C},__("Need help finding your Revue username?","jetpack")))),s&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(i.ToggleControl,{label:__("Show first name field.","jetpack"),checked:v,onChange:()=>n({firstNameShow:!v})}),(0,r.createElement)(i.ToggleControl,{label:__("Show last name field.","jetpack"),checked:E,onChange:()=>n({lastNameShow:!E})}),(0,r.createElement)(i.TextControl,{label:__("Revue Username","jetpack"),onChange:e=>{_(e.trim()),n({revueUsername:e.trim()})},value:s}))),(0,r.createElement)(i.TextControl,{label:(0,r.createElement)(u.Z,{label:h,labelFieldName:"emailLabel",required:!0,setAttributes:n}),onChange:e=>n({emailPlaceholder:e}),placeholder:f,value:f}),v&&(0,r.createElement)(i.TextControl,{label:(0,r.createElement)(u.Z,{label:g,labelFieldName:"firstNameLabel",setAttributes:n}),onChange:e=>n({firstNamePlaceholder:e}),placeholder:b,value:b}),E&&(0,r.createElement)(i.TextControl,{label:(0,r.createElement)(u.Z,{label:k,labelFieldName:"lastNameLabel",setAttributes:n}),onChange:e=>n({lastNamePlaceholder:e}),placeholder:y,value:y}),(0,r.createElement)(o.InnerBlocks,{template:[[l.Ss.name,l.Ss.attributes]],templateLock:"all"})))}},96675:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=(0,r.createElement)(a.SVG,{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.G,{fillRule:"nonzero"},(0,r.createElement)(a.Path,{d:"M16.8452322,23.2301186 C13.9471277,22.2565366 12.0226052,20.2188069 10.6188359,16.5961763 C10.2565728,15.6225943 9.87166831,14.4905223 9.80374399,14.1056178 C9.66789534,13.4037331 9.6452539,13.3810917 8.96601067,13.6075061 C7.8792215,13.9697691 7.76601429,14.1282592 7.35846835,15.758443 C6.724508,18.2490015 6.45281071,18.7244718 5.56979451,18.8829619 C5.09432424,18.9735276 4.5735711,18.9282447 4.27923236,18.7697547 C3.84904498,18.5433402 3.8037621,18.3848502 3.93961075,17.501834 C4.00753507,16.9584394 4.41508101,15.3056142 4.82262695,13.8339205 C5.8414918,10.2792143 6.11318909,8.98865211 6.29432062,7.1094125 C6.43016927,5.63771883 6.47545215,5.50187018 7.08677106,5.20753145 C7.92450438,4.79998551 8.80752058,5.09432424 9.19242508,5.88677468 C9.44148093,6.38488639 9.39619805,6.90563953 8.96601067,8.98865211 C8.67167193,10.3924215 8.51318185,11.5244935 8.62638905,11.5244935 C9.12450076,11.5244935 11.2754377,10.2565728 12.0452467,9.50940525 C13.8339205,7.83393861 14.2641079,5.77356748 13.2905259,3.82640354 C12.5886412,2.4226342 11.6150593,1.94716393 9.78110255,2.08301258 C6.97356385,2.28678555 4.43772245,4.25659092 3.01131166,7.35846835 C2.21886123,9.05657643 2.19621978,9.07921787 1.49433511,8.94336923 C-1.74339096,8.28676744 0.63396035,3.39621616 5.29809721,1.19999638 C8.39997464,-0.294338734 11.5018521,-0.362263057 14.0829764,0.950940525 C17.0716466,2.51319996 18.0225871,5.93205756 16.2791961,8.96601067 C15.5999529,10.1433656 14.2641079,11.3886449 12.9509043,12.0678881 C12.5433584,12.2716611 12.2037367,12.5207169 12.2037367,12.6339241 C12.2037367,12.9509043 13.2678845,15.9395745 13.6301475,16.6641006 C14.3093908,17.9773042 16.2339133,19.8112609 17.4565511,20.377297 C18.8829619,21.0112573 21.4640861,21.0791816 23.0263456,20.5131456 L23.9772861,20.1508826 L23.9772861,20.7169186 C23.9772861,21.5320105 23.3433258,22.3471023 22.3018195,22.8904969 C21.147106,23.4791744 18.1584357,23.6603059 16.8452322,23.2301186 Z"})))},4344:function(e,t,n){"use strict";n.d(t,{Ss:function(){return u},u2:function(){return p},Xd:function(){return d}});var r=n(33163),a=n(89451),o=n(39952),i=n(16006),s=n(96675),l=n(32750),c=n(77966);const __=r.__,_x=r._x,u={name:"jetpack/button",attributes:{element:"button",text:_x("Subscribe","verb: e.g. subscribe to a newsletter.","jetpack")}},p="revue",d={title:__("Revue","jetpack"),description:__("Add a subscription form for your Revue newsletter.","jetpack"),icon:{src:s.Z,foreground:(0,l.m)()},category:"grow",keywords:[_x("email","block search term","jetpack"),_x("subscription","block search term","jetpack"),_x("newsletter","block search term","jetpack"),_x("mailing list","block search term","jetpack")],supports:{html:!1},attributes:a.Z,edit:i.Z,save:c.Z,example:{attributes:{revueUsername:"example"},innerBlocks:[u]},deprecated:[o.Z]}},77966:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o({attributes:{revueUsername:e}}){const t=`https://www.getrevue.co/profile/${e}`;return(0,r.createElement)("div",null,(0,r.createElement)(a.InnerBlocks.Content,null),(0,r.createElement)("a",{className:"wp-block-jetpack-revue__fallback",href:t},t))}},77864:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o({className:e}){return(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks,{template:[["jetpack/whatsapp-button",{}]],allowedBlocks:["jetpack/whatsapp-button"]}))}},48747:function(e,t,n){"use strict";n.d(t,{u2:function(){return p},Xd:function(){return d}});var r=n(63027),a=n(33163),o=n(46399),i=n(87997),s=n(77864),l=n(28421),c=n(14541),u=n(32750);const __=a.__,_x=a._x,p="send-a-message",d={title:__("Send A Message","jetpack"),description:__("Let your visitors send you messages with the tap of a button.","jetpack"),icon:{src:(0,c.Z)((0,r.createElement)(i.Path,{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"})),foreground:(0,u.m)()},category:"grow",keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1},attributes:{},edit:s.Z,save:e=>(0,r.createElement)("div",{className:e.className},(0,r.createElement)(o.InnerBlocks.Content,null)),variations:l.Z,example:{}}},60436:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});const r=[{code:"US",label:"🇺🇸 +1",value:"1US"},{code:"CA",label:"🇨🇦 +1",value:"1CA"},{code:"BS",label:"🇧🇸 +1242",value:"1242BS"},{code:"BB",label:"🇧🇧 +1246",value:"1246BB"},{code:"AI",label:"🇦🇮 +1264",value:"1264AI"},{code:"AG",label:"🇦🇬 +1268",value:"1268AG"},{code:"VG",label:"🇻🇬 +1284",value:"1284VG"},{code:"VI",label:"🇻🇮 +1340",value:"1340VI"},{code:"BM",label:"🇧🇲 +1441",value:"1441BM"},{code:"GD",label:"🇬🇩 +1473",value:"1473GD"},{code:"TC",label:"🇹🇨 +1649",value:"1649TC"},{code:"MS",label:"🇲🇸 +1664",value:"1664MS"},{code:"MP",label:"🇲🇵 +1670",value:"1670MP"},{code:"GU",label:"🇬🇺 +1671",value:"1671GU"},{code:"AS",label:"🇦🇸 +1684",value:"1684AS"},{code:"LC",label:"🇱🇨 +1758",value:"1758LC"},{code:"DM",label:"🇩🇲 +1767",value:"1767DM"},{code:"VC",label:"🇻🇨 +1784",value:"1784VC"},{code:"DO",label:"🇩🇴 +1849",value:"1849DO"},{code:"TT",label:"🇹🇹 +1868",value:"1868TT"},{code:"KN",label:"🇰🇳 +1869",value:"1869KN"},{code:"JM",label:"🇯🇲 +1876",value:"1876JM"},{code:"PR",label:"🇵🇷 +1939",value:"1939PR"},{code:"EG",label:"🇪🇬 +20",value:"20EG"},{code:"MA",label:"🇲🇦 +212",value:"212MA"},{code:"DZ",label:"🇩🇿 +213",value:"213DZ"},{code:"TN",label:"🇹🇳 +216",value:"216TN"},{code:"LY",label:"🇱🇾 +218",value:"218LY"},{code:"GM",label:"🇬🇲 +220",value:"220GM"},{code:"SN",label:"🇸🇳 +221",value:"221SN"},{code:"MR",label:"🇲🇷 +222",value:"222MR"},{code:"ML",label:"🇲🇱 +223",value:"223ML"},{code:"GN",label:"🇬🇳 +224",value:"224GN"},{code:"CI",label:"🇨🇮 +225",value:"225CI"},{code:"BF",label:"🇧🇫 +226",value:"226BF"},{code:"NE",label:"🇳🇪 +227",value:"227NE"},{code:"TG",label:"🇹🇬 +228",value:"228TG"},{code:"BJ",label:"🇧🇯 +229",value:"229BJ"},{code:"MU",label:"🇲🇺 +230",value:"230MU"},{code:"LR",label:"🇱🇷 +231",value:"231LR"},{code:"SL",label:"🇸🇱 +232",value:"232SL"},{code:"GH",label:"🇬🇭 +233",value:"233GH"},{code:"NG",label:"🇳🇬 +234",value:"234NG"},{code:"TD",label:"🇹🇩 +235",value:"235TD"},{code:"CF",label:"🇨🇫 +236",value:"236CF"},{code:"CM",label:"🇨🇲 +237",value:"237CM"},{code:"CV",label:"🇨🇻 +238",value:"238CV"},{code:"ST",label:"🇸🇹 +239",value:"239ST"},{code:"GQ",label:"🇬🇶 +240",value:"240GQ"},{code:"GA",label:"🇬🇦 +241",value:"241GA"},{code:"CG",label:"🇨🇬 +242",value:"242CG"},{code:"CD",label:"🇨🇩 +243",value:"243CD"},{code:"AO",label:"🇦🇴 +244",value:"244AO"},{code:"GW",label:"🇬🇼 +245",value:"245GW"},{code:"IO",label:"🇮🇴 +246",value:"246IO"},{code:"SC",label:"🇸🇨 +248",value:"248SC"},{code:"SD",label:"🇸🇩 +249",value:"249SD"},{code:"RW",label:"🇷🇼 +250",value:"250RW"},{code:"ET",label:"🇪🇹 +251",value:"251ET"},{code:"SO",label:"🇸🇴 +252",value:"252SO"},{code:"DJ",label:"🇩🇯 +253",value:"253DJ"},{code:"KE",label:"🇰🇪 +254",value:"254KE"},{code:"TZ",label:"🇹🇿 +255",value:"255TZ"},{code:"UG",label:"🇺🇬 +256",value:"256UG"},{code:"BI",label:"🇧🇮 +257",value:"257BI"},{code:"MZ",label:"🇲🇿 +258",value:"258MZ"},{code:"ZM",label:"🇿🇲 +260",value:"260ZM"},{code:"MG",label:"🇲🇬 +261",value:"261MG"},{code:"YT",label:"🇾🇹 +262",value:"262YT"},{code:"RE",label:"🇷🇪 +262",value:"262RE"},{code:"ZW",label:"🇿🇼 +263",value:"263ZW"},{code:"NA",label:"🇳🇦 +264",value:"264NA"},{code:"MW",label:"🇲🇼 +265",value:"265MW"},{code:"LS",label:"🇱🇸 +266",value:"266LS"},{code:"BW",label:"🇧🇼 +267",value:"267BW"},{code:"SZ",label:"🇸🇿 +268",value:"268SZ"},{code:"KM",label:"🇰🇲 +269",value:"269KM"},{code:"ZA",label:"🇿🇦 +27",value:"27ZA"},{code:"SH",label:"🇸🇭 +290",value:"290SH"},{code:"ER",label:"🇪🇷 +291",value:"291ER"},{code:"AW",label:"🇦🇼 +297",value:"297AW"},{code:"FO",label:"🇫🇴 +298",value:"298FO"},{code:"GL",label:"🇬🇱 +299",value:"299GL"},{code:"GR",label:"🇬🇷 +30",value:"30GR"},{code:"NL",label:"🇳🇱 +31",value:"31NL"},{code:"BE",label:"🇧🇪 +32",value:"32BE"},{code:"FR",label:"🇫🇷 +33",value:"33FR"},{code:"ES",label:"🇪🇸 +34",value:"34ES"},{code:"KY",label:"🇰🇾 +345",value:"345KY"},{code:"GI",label:"🇬🇮 +350",value:"350GI"},{code:"PT",label:"🇵🇹 +351",value:"351PT"},{code:"LU",label:"🇱🇺 +352",value:"352LU"},{code:"IE",label:"🇮🇪 +353",value:"353IE"},{code:"IS",label:"🇮🇸 +354",value:"354IS"},{code:"AL",label:"🇦🇱 +355",value:"355AL"},{code:"MT",label:"🇲🇹 +356",value:"356MT"},{code:"FI",label:"🇫🇮 +358",value:"358FI"},{code:"BG",label:"🇧🇬 +359",value:"359BG"},{code:"HU",label:"🇭🇺 +36",value:"36HU"},{code:"LT",label:"🇱🇹 +370",value:"370LT"},{code:"LV",label:"🇱🇻 +371",value:"371LV"},{code:"EE",label:"🇪🇪 +372",value:"372EE"},{code:"MD",label:"🇲🇩 +373",value:"373MD"},{code:"AM",label:"🇦🇲 +374",value:"374AM"},{code:"BY",label:"🇧🇾 +375",value:"375BY"},{code:"AD",label:"🇦🇩 +376",value:"376AD"},{code:"MC",label:"🇲🇨 +377",value:"377MC"},{code:"SM",label:"🇸🇲 +378",value:"378SM"},{code:"VA",label:"🇻🇦 +379",value:"379VA"},{code:"UA",label:"🇺🇦 +380",value:"380UA"},{code:"RS",label:"🇷🇸 +381",value:"381RS"},{code:"ME",label:"🇲🇪 +382",value:"382ME"},{code:"XK",label:"🇽🇰 +383",value:"383XK"},{code:"HR",label:"🇭🇷 +385",value:"385HR"},{code:"SI",label:"🇸🇮 +386",value:"386SI"},{code:"BA",label:"🇧🇦 +387",value:"387BA"},{code:"MK",label:"🇲🇰 +389",value:"389MK"},{code:"IT",label:"🇮🇹 +39",value:"39IT"},{code:"RO",label:"🇷🇴 +40",value:"40RO"},{code:"CH",label:"🇨🇭 +41",value:"41CH"},{code:"CZ",label:"🇨🇿 +420",value:"420CZ"},{code:"SK",label:"🇸🇰 +421",value:"421SK"},{code:"LI",label:"🇱🇮 +423",value:"423LI"},{code:"AT",label:"🇦🇹 +43",value:"43AT"},{code:"IM",label:"🇮🇲 +44",value:"44IM"},{code:"GG",label:"🇬🇬 +44",value:"44GG"},{code:"JE",label:"🇯🇪 +44",value:"44JE"},{code:"GB",label:"🇬🇧 +44",value:"44GB"},{code:"DK",label:"🇩🇰 +45",value:"45DK"},{code:"SE",label:"🇸🇪 +46",value:"46SE"},{code:"NO",label:"🇳🇴 +47",value:"47NO"},{code:"SJ",label:"🇸🇯 +47",value:"47SJ"},{code:"PL",label:"🇵🇱 +48",value:"48PL"},{code:"DE",label:"🇩🇪 +49",value:"49DE"},{code:"FK",label:"🇫🇰 +500",value:"500FK"},{code:"GS",label:"🇬🇸 +500",value:"500GS"},{code:"BZ",label:"🇧🇿 +501",value:"501BZ"},{code:"GT",label:"🇬🇹 +502",value:"502GT"},{code:"SV",label:"🇸🇻 +503",value:"503SV"},{code:"HN",label:"🇭🇳 +504",value:"504HN"},{code:"NI",label:"🇳🇮 +505",value:"505NI"},{code:"CR",label:"🇨🇷 +506",value:"506CR"},{code:"PA",label:"🇵🇦 +507",value:"507PA"},{code:"PM",label:"🇵🇲 +508",value:"508PM"},{code:"HT",label:"🇭🇹 +509",value:"509HT"},{code:"PE",label:"🇵🇪 +51",value:"51PE"},{code:"MX",label:"🇲🇽 +52",value:"52MX"},{code:"CU",label:"🇨🇺 +53",value:"53CU"},{code:"CY",label:"🇨🇾 +537",value:"537CY"},{code:"AR",label:"🇦🇷 +54",value:"54AR"},{code:"BR",label:"🇧🇷 +55",value:"55BR"},{code:"CL",label:"🇨🇱 +56",value:"56CL"},{code:"CO",label:"🇨🇴 +57",value:"57CO"},{code:"VE",label:"🇻🇪 +58",value:"58VE"},{code:"BL",label:"🇧🇱 +590",value:"590BL"},{code:"MF",label:"🇲🇫 +590",value:"590MF"},{code:"GP",label:"🇬🇵 +590",value:"590GP"},{code:"BO",label:"🇧🇴 +591",value:"591BO"},{code:"GY",label:"🇬🇾 +592",value:"592GY"},{code:"EC",label:"🇪🇨 +593",value:"593EC"},{code:"GF",label:"🇬🇫 +594",value:"594GF"},{code:"PY",label:"🇵🇾 +595",value:"595PY"},{code:"MQ",label:"🇲🇶 +596",value:"596MQ"},{code:"SR",label:"🇸🇷 +597",value:"597SR"},{code:"UY",label:"🇺🇾 +598",value:"598UY"},{code:"MY",label:"🇲🇾 +60",value:"60MY"},{code:"CC",label:"🇨🇨 +61",value:"61CC"},{code:"AU",label:"🇦🇺 +61",value:"61AU"},{code:"CX",label:"🇨🇽 +61",value:"61CX"},{code:"ID",label:"🇮🇩 +62",value:"62ID"},{code:"PH",label:"🇵🇭 +63",value:"63PH"},{code:"NZ",label:"🇳🇿 +64",value:"64NZ"},{code:"SG",label:"🇸🇬 +65",value:"65SG"},{code:"TH",label:"🇹🇭 +66",value:"66TH"},{code:"TL",label:"🇹🇱 +670",value:"670TL"},{code:"NF",label:"🇳🇫 +672",value:"672NF"},{code:"BN",label:"🇧🇳 +673",value:"673BN"},{code:"NR",label:"🇳🇷 +674",value:"674NR"},{code:"PG",label:"🇵🇬 +675",value:"675PG"},{code:"TO",label:"🇹🇴 +676",value:"676TO"},{code:"SB",label:"🇸🇧 +677",value:"677SB"},{code:"VU",label:"🇻🇺 +678",value:"678VU"},{code:"FJ",label:"🇫🇯 +679",value:"679FJ"},{code:"PW",label:"🇵🇼 +680",value:"680PW"},{code:"WF",label:"🇼🇫 +681",value:"681WF"},{code:"CK",label:"🇨🇰 +682",value:"682CK"},{code:"NU",label:"🇳🇺 +683",value:"683NU"},{code:"WS",label:"🇼🇸 +685",value:"685WS"},{code:"KI",label:"🇰🇮 +686",value:"686KI"},{code:"NC",label:"🇳🇨 +687",value:"687NC"},{code:"TV",label:"🇹🇻 +688",value:"688TV"},{code:"PF",label:"🇵🇫 +689",value:"689PF"},{code:"TK",label:"🇹🇰 +690",value:"690TK"},{code:"FM",label:"🇫🇲 +691",value:"691FM"},{code:"MH",label:"🇲🇭 +692",value:"692MH"},{code:"RU",label:"🇷🇺 +7",value:"7RU"},{code:"KZ",label:"🇰🇿 +77",value:"77KZ"},{code:"JP",label:"🇯🇵 +81",value:"81JP"},{code:"KR",label:"🇰🇷 +82",value:"82KR"},{code:"VN",label:"🇻🇳 +84",value:"84VN"},{code:"KP",label:"🇰🇵 +850",value:"850KP"},{code:"HK",label:"🇭🇰 +852",value:"852HK"},{code:"MO",label:"🇲🇴 +853",value:"853MO"},{code:"KH",label:"🇰🇭 +855",value:"855KH"},{code:"LA",label:"🇱🇦 +856",value:"856LA"},{code:"CN",label:"🇨🇳 +86",value:"86CN"},{code:"PN",label:"🇵🇳 +872",value:"872PN"},{code:"BD",label:"🇧🇩 +880",value:"880BD"},{code:"TW",label:"🇹🇼 +886",value:"886TW"},{code:"TR",label:"🇹🇷 +90",value:"90TR"},{code:"IN",label:"🇮🇳 +91",value:"91IN"},{code:"PK",label:"🇵🇰 +92",value:"92PK"},{code:"AF",label:"🇦🇫 +93",value:"93AF"},{code:"LK",label:"🇱🇰 +94",value:"94LK"},{code:"MM",label:"🇲🇲 +95",value:"95MM"},{code:"MV",label:"🇲🇻 +960",value:"960MV"},{code:"LB",label:"🇱🇧 +961",value:"961LB"},{code:"JO",label:"🇯🇴 +962",value:"962JO"},{code:"SY",label:"🇸🇾 +963",value:"963SY"},{code:"IQ",label:"🇮🇶 +964",value:"964IQ"},{code:"KW",label:"🇰🇼 +965",value:"965KW"},{code:"SA",label:"🇸🇦 +966",value:"966SA"},{code:"YE",label:"🇾🇪 +967",value:"967YE"},{code:"OM",label:"🇴🇲 +968",value:"968OM"},{code:"PS",label:"🇵🇸 +970",value:"970PS"},{code:"AE",label:"🇦🇪 +971",value:"971AE"},{code:"IL",label:"🇮🇱 +972",value:"972IL"},{code:"BH",label:"🇧🇭 +973",value:"973BH"},{code:"QA",label:"🇶🇦 +974",value:"974QA"},{code:"BT",label:"🇧🇹 +975",value:"975BT"},{code:"MN",label:"🇲🇳 +976",value:"976MN"},{code:"NP",label:"🇳🇵 +977",value:"977NP"},{code:"IR",label:"🇮🇷 +98",value:"98IR"},{code:"TJ",label:"🇹🇯 +992",value:"992TJ"},{code:"TM",label:"🇹🇲 +993",value:"993TM"},{code:"AZ",label:"🇦🇿 +994",value:"994AZ"},{code:"GE",label:"🇬🇪 +995",value:"995GE"},{code:"KG",label:"🇰🇬 +996",value:"996KG"},{code:"UZ",label:"🇺🇿 +998",value:"998UZ"}]},28421:function(e,t,n){"use strict";var r=n(33163),a=n(48609),o=n(30503);const __=r.__,i=[{isDefault:!0,name:"whatsapp-button",title:__("WhatsApp Button","jetpack"),description:__("Let your visitors send you messages on WhatsApp with the tap of a button.","jetpack"),icon:(0,o.p)("send-a-message",a.Z),innerBlocks:[["jetpack/whatsapp-button",{}]]}];t.Z=i},69561:function(e,t,n){"use strict";var r=n(33163);const __=r.__;t.Z={countryCode:{type:"string"},phoneNumber:{type:"string"},firstMessage:{type:"string",default:__("Hi, I got your WhatsApp information from your website.","jetpack")},buttonText:{type:"array",source:"children",selector:"a.whatsapp-block__button",default:__("Chat on WhatsApp","jetpack")},backgroundColor:{type:"string",default:"#25D366"},colorClass:{type:"string",default:"dark"},openInNewTab:{type:"boolean",default:!1}}},91597:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(63027),a=n(33163),o=n(87997),i=n(46399),s=n(23983),l=n(60436),c=n(14541),u=n(52684);const __=a.__,_x=a._x,p="#25D366",d="#465B64";function m({attributes:e,setAttributes:t,context:n}){const{countryCode:a,phoneNumber:m,firstMessage:h,openInNewTab:f,backgroundColor:g}=e,[b,v]=(0,r.useState)(!0),k=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BaseControl,{label:__("Phone Number","jetpack"),help:__("Enter the phone number you use for WhatsApp and would like to be contacted on.","jetpack"),className:"jetpack-whatsapp-button__phonenumber"},(0,r.createElement)(o.SelectControl,{label:__("Country code","jetpack"),value:a,onChange:e=>t({countryCode:e}),options:l.n,hideLabelFromVision:!0}),(0,r.createElement)(o.TextControl,{placeholder:__("Your phone number…","jetpack"),onChange:e=>{t({phoneNumber:e}),0===e.length&&v(!0),e.length>2&&v((e=>{const t=RegExp(/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,"g");return!(void 0===e||e.length<1)&&t.test(a.replace(/\D/g,"")+e)})(e))},value:m}),!b&&(0,r.createElement)(u.Z,{isError:!0,className:"jetpack-whatsapp-error"},__("Please enter a valid phone number.","jetpack"))),"inspector"===n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.TextareaControl,{label:__("Default First Message","jetpack"),help:__("The default first message that will be sent by visitors when using this button.","jetpack"),value:h,onChange:e=>t({firstMessage:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Open in new tab","jetpack"),checked:f,onChange:e=>t({openInNewTab:e}),help:__("When the button is tapped, should a new tab be opened if the visitor does not have WhatsApp installed?","jetpack")})));return"toolbar"===n?(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.Dropdown,{position:"bottom right",className:"jetpack-whatsapp-button-settings-selector",contentClassName:"jetpack-whatsapp-button__popover",renderToggle:({isOpen:e,onToggle:t})=>((e,t)=>(0,r.createElement)(o.Button,{className:"components-toolbar__control jetpack-contact-form__toggle",label:__("WhatsApp Button Settings","jetpack"),onClick:t,onKeyDown:n=>{e||n.keyCode!==s.DOWN||(n.preventDefault(),n.stopPropagation(),t())},icon:(0,c.Z)((0,r.createElement)(o.Path,{d:"M10.82 12.49c.02-.16.04-.32.04-.49 0-.17-.02-.33-.04-.49l1.08-.82c.1-.07.12-.21.06-.32l-1.03-1.73c-.06-.11-.2-.15-.31-.11l-1.28.5c-.27-.2-.56-.36-.87-.49l-.2-1.33c0-.12-.11-.21-.24-.21H5.98c-.13 0-.24.09-.26.21l-.2 1.32c-.31.12-.6.3-.87.49l-1.28-.5c-.12-.05-.25 0-.31.11l-1.03 1.73c-.06.12-.03.25.07.33l1.08.82c-.02.16-.03.33-.03.49 0 .17.02.33.04.49l-1.09.83c-.1.07-.12.21-.06.32l1.03 1.73c.06.11.2.15.31.11l1.28-.5c.27.2.56.36.87.49l.2 1.32c.01.12.12.21.25.21h2.06c.13 0 .24-.09.25-.21l.2-1.32c.31-.12.6-.3.87-.49l1.28.5c.12.05.25 0 .31-.11l1.03-1.73c.06-.11.04-.24-.06-.32l-1.1-.83zM7 13.75c-.99 0-1.8-.78-1.8-1.75s.81-1.75 1.8-1.75 1.8.78 1.8 1.75S8 13.75 7 13.75zM18 1.01L8 1c-1.1 0-2 .9-2 2v3h2V5h10v14H8v-1H6v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99z"}))}))(e,t),renderContent:k})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{title:__("WhatsApp Button Settings","jetpack"),initialOpen:!0},k()),(0,r.createElement)(i.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!1,colorSettings:[{value:g,onChange:e=>(e=>{if(t({backgroundColor:e}),void 0===e||e===p||e===d)return t({colorClass:"dark"});t({colorClass:"light"})})(e),label:__("Background Color","jetpack"),disableCustomColors:!0,colors:[{name:_x("WhatsApp Green","background color name","jetpack"),slug:"whatsapp-green",color:p},{name:_x("WhatsApp Dark","background color name","jetpack"),slug:"whatsapp-dark",color:d},{name:_x("WhatsApp Light","background color name","jetpack"),slug:"whatsapp-light",color:"#F4F4F4"},{name:_x("White","background color name","jetpack"),slug:"whatsapp-white",color:"#FFFFFF"}]}]}))}},40645:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(46399),s=n(56686),l=n(69561);t.Z={attributes:l.Z,supports:{html:!1,reusable:!1},save:function({attributes:e,className:t}){const{countryCode:n,phoneNumber:a,firstMessage:l,colorClass:c,buttonText:u,backgroundColor:p,openInNewTab:d}=e,m=d?"_blank":"_self",h=n&&a?n.replace(/\D+/g,"")+a.replace(/\D+/g,""):"",f=o()(t,c?"is-color-"+c:void 0,u.length?void 0:"has-no-text");return(0,r.createElement)("div",{className:f},(0,r.createElement)("a",{className:"whatsapp-block__button",href:(()=>{let e=s.pf+h;return""!==l&&(e+="&text="+encodeURIComponent(l)),e})(),style:{backgroundColor:p},target:m,rel:"noopener noreferrer"},(0,r.createElement)(i.RichText.Content,{value:u})))}}},85578:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(63027),a=n(89105),o=n.n(a),i=n(65707),s=n(46399),l=n(60436),c=n(91597);function u({attributes:e,setAttributes:t,className:n,clientId:a}){const{countryCode:u,buttonText:p,colorClass:d,backgroundColor:m}=e,{selectBlock:h}=(0,i.useDispatch)("core/block-editor"),f=(0,r.useCallback)((async()=>{t({countryCode:"1"});const e=await fetch("https://public-api.wordpress.com/geo/").then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const n=await e.json();l.n.forEach((e=>{e.code===n.country_short&&t({countryCode:e.value})}))}}),[t]);(0,r.useEffect)((()=>{void 0===u&&(f(),h(a))}),[a,u,f,h]);return(0,r.createElement)("div",{className:o()(n,d?"is-color-"+d:void 0)},(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(c.Z,{context:"toolbar",setAttributes:t,attributes:e})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(c.Z,{context:"inspector",setAttributes:t,attributes:e})),(0,r.createElement)(s.RichText,{placeholder:p.default,value:p,onChange:e=>t({buttonText:e}),withoutInteractiveFormatting:!0,allowedFormats:[],className:"whatsapp-block__button",tagName:"a",preserveWhiteSpace:!1,style:{backgroundColor:m,color:"dark"===d?"#fff":"#465B64"}}))}},48609:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(32750);t.Z=(0,r.createElement)(a.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,r.createElement)(a.Path,{fill:(0,o.m)(),d:"M24,11.6909333 C24,18.1477333 18.7256,23.3818667 12.2181333,23.3818667 C10.1522667,23.3818667 8.21146667,22.8538667 6.52293333,21.9272 L0,24 L2.12666667,17.7274667 C1.05386667,15.9658667 0.436,13.8997333 0.436,11.6909333 C0.436,5.23413333 5.71093333,0 12.2181333,0 C18.7261333,0 24,5.23413333 24,11.6909333 Z M12.2181333,1.86186667 C6.75573333,1.86186667 2.31253333,6.2712 2.31253333,11.6909333 C2.31253333,13.8416 3.0136,15.8333333 4.19946667,17.4536 L2.96186667,21.104 L6.76853333,19.8941333 C8.33253333,20.9210667 10.2061333,21.52 12.2184,21.52 C17.68,21.52 22.124,17.1112 22.124,11.6914667 C22.124,6.27173333 17.6802667,1.86186667 12.2181333,1.86186667 Z M18.1677333,14.3834667 C18.0949333,14.2642667 17.9026667,14.1922667 17.6141333,14.0490667 C17.3250667,13.9058667 15.9048,13.2122667 15.6408,13.1170667 C15.376,13.0216 15.1829333,12.9736 14.9906667,13.2602667 C14.7984,13.5472 14.2448,14.1922667 14.076,14.3834667 C13.9074667,14.5752 13.7392,14.5992 13.4501333,14.4557333 C13.1616,14.3125333 12.2312,14.0096 11.128,13.0336 C10.2696,12.2741333 9.68986667,11.3365333 9.52133333,11.0493333 C9.35306667,10.7626667 9.50373333,10.6077333 9.648,10.4650667 C9.77813333,10.3365333 9.93706667,10.1304 10.0813333,9.9632 C10.2261333,9.79573333 10.2741333,9.67653333 10.3698667,9.48506667 C10.4666667,9.29386667 10.4184,9.12666667 10.3458667,8.98293333 C10.2738667,8.83973333 9.69573333,7.4296 9.4552,6.85573333 C9.21466667,6.2824 8.9744,6.37786667 8.8056,6.37786667 C8.63733333,6.37786667 8.44453333,6.35386667 8.252,6.35386667 C8.05946667,6.35386667 7.7464,6.4256 7.4816,6.71226667 C7.21706667,6.9992 6.4712,7.69253333 6.4712,9.1024 C6.4712,10.5125333 7.5056,11.8749333 7.6504,12.0658667 C7.79466667,12.2568 9.64773333,15.2445333 12.5837333,16.392 C15.52,17.5389333 15.52,17.1562667 16.0496,17.1082667 C16.5786667,17.0605333 17.7578667,16.4152 17.9994667,15.7464 C18.2394667,15.0765333 18.2394667,14.5029333 18.1677333,14.3834667 Z"}))},56686:function(e,t,n){"use strict";n.d(t,{u2:function(){return u},pf:function(){return d},Xd:function(){return m}});var r=n(33163),a=n(32750),o=n(69561),i=n(85578),s=n(51938),l=n(40645),c=n(48609);const __=r.__,_x=r._x,u="whatsapp-button",p=__("WhatsApp Button","jetpack"),d="https://api.whatsapp.com/send?phone=",m=(__("Chat on WhatsApp","jetpack"),__("Hi, I got your WhatsApp information from your website.","jetpack"),{title:p,description:__("Let your visitors send you a message on WhatsApp with the tap of a button.","jetpack"),icon:{src:c.Z,foreground:(0,a.m)()},category:"grow",parent:["jetpack/send-a-message"],keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1,reusable:!1,align:["left","center","right"]},attributes:o.Z,edit:i.Z,save:s.Z,example:{attributes:{countryCode:"1",phoneNumber:"555-123-4567"}},deprecated:[l.Z]})},51938:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(89105),o=n.n(a),i=n(46399),s=n(56686);function l({attributes:e,className:t}){const{countryCode:n,phoneNumber:a,firstMessage:l,buttonText:c,backgroundColor:u,colorClass:p,openInNewTab:d}=e,m=n&&a?n.replace(/\D+/g,"")+a.replace(/\D+/g,""):"",h=o()(t,p?"is-color-"+p:void 0,c.length?void 0:"has-no-text"),f=d?"_blank":"_self";return(0,r.createElement)("div",{className:h},(0,r.createElement)("a",{className:"whatsapp-block__button",href:(()=>{let e=s.pf+m;return""!==l&&(e+="&text="+encodeURIComponent(l)),e})(),style:{backgroundColor:u,color:"dark"===p?"#fff":"#465B64"},target:f,rel:"noopener noreferrer"},(0,r.createElement)(i.RichText.Content,{value:c})))}},86785:function(e,t,n){"use strict";n.d(t,{u:function(){return c},X:function(){return u}});var r=n(63027),a=n(33163),o=n(87997),i=n(47649),s=n(54849),l=n(78957);const __=a.__,c="seo",u={render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.Z,null,(0,r.createElement)(o.PanelBody,{title:__("SEO Description","jetpack")},(0,r.createElement)(l.Z,null))),(0,r.createElement)(i.PluginPrePublishPanel,{initialOpen:!0,id:"seo-title",title:(0,r.createElement)("span",{id:"seo-defaults",key:"seo-title-span"},__("SEO Description","jetpack"))},(0,r.createElement)(l.Z,null)))}},78957:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(51417),l=n(33804),c=n(65707);const __=i.__,_n=i._n;class u extends o.Component{constructor(...e){super(...e),a()(this,"onMessageChange",(e=>{this.props.updateSeoDescription(e.target.value)}))}render(){const{seoDescription:e}=this.props;return(0,o.createElement)("div",{className:"jetpack-seo-message-box"},(0,o.createElement)("textarea",{value:e,onChange:this.onMessageChange,placeholder:__("Write a description…","jetpack"),rows:4}),(0,o.createElement)("div",{className:"jetpack-seo-character-count"},(0,i.sprintf)(_n("%d character","%d characters",e.length,"jetpack"),e.length)))}}t.Z=(0,s.compose)([(0,c.withSelect)((e=>({seoDescription:(0,l.get)(e("core/editor").getEditedPostAttribute("meta"),["advanced_seo_description"],"")}))),(0,c.withDispatch)((e=>({updateSeoDescription(t){e("core/editor").editPost({meta:{advanced_seo_description:t}})}})))])(u)},48443:function(e,t,n){"use strict";n.d(t,{u:function(){return u},X:function(){return p}});var r=n(63027),a=n(33163),o=n(33804),i=n(87997),s=n(65707),l=n(13077),c=n(54849);const __=a.__,u="shortlinks",p={render:()=>(0,r.createElement)(m,null)};class d extends r.Component{render(){const{shortlink:e}=this.props;return e?(0,r.createElement)(c.Z,null,(0,r.createElement)(i.PanelBody,{title:__("Shortlink","jetpack"),className:"jetpack-shortlinks__panel"},(0,r.createElement)(l.Z,{link:e}))):null}}const m=(0,s.withSelect)((e=>{const t=e("core/editor").getCurrentPost();return{shortlink:(0,o.get)(t,"jetpack_shortlink","")}}))(d)},53089:function(e,t,n){"use strict";n.d(t,{LC:function(){return r},a7:function(){return a},Rh:function(){return o}});const r="jp_pay_product",a="USD",o=[a,"EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"]},27387:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(63027),a=n(87997),o=n(33163);const __=o.__;function i({setAttributes:e,postLinkText:t}){return(0,r.createElement)(a.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,r.createElement)(a.BaseControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text"},(0,r.createElement)(a.TextControl,{placeholder:__("Click here to purchase","jetpack"),onChange:t=>e({postLinkText:t}),value:t})))}},65982:function(e,t,n){"use strict";var r=n(63027);t.Z={attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1},save:({attributes:e})=>{const{productId:t}=e;return t?(0,r.createElement)(r.RawHTML,null,`[simple-payment id="${t}"]`):null}}},29214:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(89453),c=n(33804),u=n(4481),p=n(33163),d=n(51417),m=n(65707),h=n(87997),f=n(46399),g=n(52684),b=n(66325),v=n(11795),k=n(45357),y=n(53089);const __=p.__,_n=p._n;class E extends o.Component{constructor(...e){super(...e),a()(this,"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),a()(this,"shouldInjectPaymentAttributes",!!this.props.attributes.productId),a()(this,"validateAttributes",(()=>{const e=this.validatePrice(),t=this.validateTitle(),n=this.validateEmail(),r=this.validateCurrency();return e&&t&&n&&r})),a()(this,"validateCurrency",(()=>{const{currency:e}=this.props.attributes;return y.Rh.includes(e)})),a()(this,"validatePrice",(()=>{const{currency:e,price:t}=this.props.attributes,{precision:n}=(0,u.X)(e);return t&&0!==parseFloat(t)?Number.isNaN(parseFloat(t))?(this.setState({fieldPriceError:__("Invalid price","jetpack")}),!1):parseFloat(t)<0?(this.setState({fieldPriceError:__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):(0,k.N3)(t)>n?0===n?(this.setState({fieldPriceError:__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(this.setState({fieldPriceError:(0,p.sprintf)(_n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",n,"jetpack"),n)}),!1):(this.state.fieldPriceError&&this.setState({fieldPriceError:null}),!0):(this.setState({fieldPriceError:__("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)})),a()(this,"validateEmail",(()=>{const{email:e}=this.props.attributes;return e?l.validate(e)?(this.state.fieldEmailError&&this.setState({fieldEmailError:null}),!0):(this.setState({fieldEmailError:(0,p.sprintf)(__("%s is not a valid email address.","jetpack"),e)}),!1):(this.setState({fieldEmailError:__("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)})),a()(this,"validateTitle",(()=>{const{title:e}=this.props.attributes;return e?(this.state.fieldTitleError&&this.setState({fieldTitleError:null}),!0):(this.setState({fieldTitleError:__("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)})),a()(this,"handleEmailChange",(e=>{this.props.setAttributes({email:e}),this.setState({fieldEmailError:null})})),a()(this,"handleContentChange",(e=>{this.props.setAttributes({content:e})})),a()(this,"handlePriceChange",(e=>{e=parseFloat(e),isNaN(e)?this.props.setAttributes({price:void 0}):this.props.setAttributes({price:e}),this.setState({fieldPriceError:null})})),a()(this,"handleCurrencyChange",(e=>{this.props.setAttributes({currency:e})})),a()(this,"handleMultipleChange",(e=>{this.props.setAttributes({multiple:!!e})})),a()(this,"handleTitleChange",(e=>{this.props.setAttributes({title:e}),this.setState({fieldTitleError:null})})),a()(this,"getCurrencyList",y.Rh.map((e=>{const{symbol:t}=(0,u.X)(e);return{value:e,label:t===e?e:`${e} ${(0,c.trimEnd)(t,".")}`}}))),a()(this,"renderSettings",(()=>(0,o.createElement)(f.InspectorControls,null,(0,o.createElement)(h.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,o.createElement)(h.BaseControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text"},(0,o.createElement)(h.TextControl,{placeholder:__("Click here to purchase","jetpack"),onChange:e=>this.props.setAttributes({postLinkText:e}),value:this.props.attributes.postLinkText}))))))}componentDidMount(){this.injectPaymentAttributes();const{attributes:e,hasPublishAction:t,postLinkUrl:n,setAttributes:r}=this.props,{productId:a}=e;!a&&t&&this.saveProduct();const o=n&&n!==this.props.attributes.postLinkUrl,i=!this.props.attributes.postLinkText;(o||i)&&r({...o&&{postLinkUrl:n},...i&&{postLinkText:__("Click here to purchase.","jetpack")}})}componentDidUpdate(e){const{hasPublishAction:t,isSelected:n,postLinkUrl:r,setAttributes:a}=this.props;(0,c.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&t&&this.validateAttributes()?this.saveProduct():e.isSelected&&!n&&this.validateAttributes();const o=r&&r!==this.props.attributes.postLinkUrl,i=!this.props.attributes.postLinkText;(o||i)&&a({...o&&{postLinkUrl:r},...i&&{postLinkText:__("Click here to purchase.","jetpack")}})}injectPaymentAttributes(){const{simplePayment:e,featuredMedia:t}=this.props;if(!this.shouldInjectPaymentAttributes||(0,c.isEmpty)(e))return;const{attributes:n,setAttributes:r}=this.props,{content:a,currency:o,email:i,featuredMediaId:s,featuredMediaUrl:l,featuredMediaTitle:u,multiple:p,price:d,title:m}=n;r({content:(0,c.get)(e,["content","raw"],a),currency:(0,c.get)(e,["meta","spay_currency"],o),email:(0,c.get)(e,["meta","spay_email"],i),featuredMediaId:(0,c.get)(e,["featured_media"],s),featuredMediaUrl:(0,c.get)(t,"url",l),featuredMediaTitle:(0,c.get)(t,"title",u),multiple:Boolean((0,c.get)(e,["meta","spay_multiple"],Boolean(p))),price:(0,c.get)(e,["meta","spay_price"],d||void 0),title:(0,c.get)(e,["title","raw"],m)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}toApi(){const{attributes:e}=this.props,{content:t,currency:n,email:r,featuredMediaId:a,multiple:o,price:i,productId:s,title:l}=e;return{id:s,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:o,spay_price:i},status:s?"publish":"draft",title:l}}saveProduct(){if(this.state.isSavingProduct)return;const{attributes:e,setAttributes:t}=this.props,{email:n}=e,{saveEntityRecord:r}=(0,m.dispatch)("core");this.setState({isSavingProduct:!0},(()=>{r("postType",y.LC,this.toApi()).then((e=>(e&&t({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;this.setState({fieldEmailError:"spay_email"===t?(0,p.sprintf)(__("%s is not a valid email address.","jetpack"),n):null,fieldPriceError:"spay_price"===t?__("Invalid price.","jetpack"):null})})).finally((()=>{this.setState({isSavingProduct:!1})}))}))}render(){const{fieldEmailError:e,fieldPriceError:t,fieldTitleError:n}=this.state,{attributes:r,instanceId:a,isSelected:i,setAttributes:l,simplePayment:u}=this.props,{content:p,currency:d,email:m,featuredMediaId:f,featuredMediaUrl:y,featuredMediaTitle:E,multiple:w,price:_,productId:C,title:S}=r,j=C&&(0,c.isEmpty)(u);if(!i&&j)return(0,o.createElement)("div",{className:"simple-payments__loading"},(0,o.createElement)(b.Z,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!i&&m&&_&&S&&!e&&!t&&!n)return(0,o.createElement)(b.Z,{"aria-busy":"false",content:p,featuredMediaUrl:y,featuredMediaTitle:E,formattedPrice:(0,k.w)(_,d),multiple:w,title:S});const x=j?h.Disabled:"div";return(0,o.createElement)(x,{className:"wp-block-jetpack-simple-payments"},this.renderSettings(),(0,o.createElement)(v.Z,{featuredMediaId:f,featuredMediaUrl:y,featuredMediaTitle:E,setAttributes:l}),(0,o.createElement)("div",null,(0,o.createElement)(h.TextControl,{"aria-describedby":`${a}-title-error`,className:s()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":n}),label:__("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:S}),(0,o.createElement)(g.Z,{id:`${a}-title-error`,isError:!0},n),(0,o.createElement)(h.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:__("Describe your item in a few words","jetpack"),value:p}),(0,o.createElement)("div",{className:"simple-payments__price-container"},(0,o.createElement)(h.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:d}),(0,o.createElement)(h.TextControl,{"aria-describedby":`${a}-price-error`,className:s()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":t}),label:__("Price","jetpack"),onChange:this.handlePriceChange,placeholder:(0,k.w)(0,d,!1),required:!0,step:"1",type:"number",value:_||""}),(0,o.createElement)(g.Z,{id:`${a}-price-error`,isError:!0},t)),(0,o.createElement)("div",{className:"simple-payments__field-multiple"},(0,o.createElement)(h.ToggleControl,{checked:Boolean(w),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),(0,o.createElement)(h.TextControl,{"aria-describedby":`${a}-email-${e?"error":"help"}`,className:s()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":e}),label:__("Email","jetpack"),onChange:this.handleEmailChange,placeholder:__("Email","jetpack"),required:!0,type:"text",value:m}),(0,o.createElement)(g.Z,{id:`${a}-email-error`,isError:!0},e),(0,o.createElement)(g.Z,{id:`${a}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,o.createElement)(h.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}}const w=(0,m.withSelect)(((e,t)=>{const{getEntityRecord:n,getMedia:r}=e("core"),{isSavingPost:a,getCurrentPost:o}=e("core/editor"),{productId:i,featuredMediaId:s}=t.attributes,l=i?(0,c.pick)(n("postType",y.LC,i),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,u=o();return{hasPublishAction:!!(0,c.get)(u,["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:l,featuredMedia:s?r(s):null,postLinkUrl:u.link}}));t.Z=(0,d.compose)(w,d.withInstanceId)(E)},8911:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(53089),s=n(42975),l=n(32750),c=n(29214),u=n(82005);const __=a.__,_x=a._x,p=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),d=(0,s.Wp)()||(0,s.Ug)()?"https://wordpress.com/support/pay-with-paypal/":"https://jetpack.com/support/jetpack-blocks/pay-with-paypal/",m={title:__("Pay with PayPal","jetpack"),description:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),(0,r.createElement)("p",null,__("Good for collecting donations or payments for products and services.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:d},__("Support reference","jetpack"))),icon:{src:p,foreground:(0,l.m)()},category:"earn",keywords:[_x("buy","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),_x("simple","block search term","jetpack"),_x("payments","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:i.a7},content:{type:"string",source:"html",selector:".jetpack-simple-payments-description p",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"src",default:null},featuredMediaTitle:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"alt",default:null},multiple:{type:"boolean",default:!1},postLinkUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-purchase",attribute:"href"},postLinkText:{type:"string",source:"html",selector:".jetpack-simple-payments-purchase",default:__("Click here to purchase.","jetpack")},price:{type:"number"},productId:{type:"number"},title:{type:"string",source:"html",selector:".jetpack-simple-payments-title p",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:({named:{id:e}})=>{if(!e)return;const t=parseInt(e,10);return t||void 0}}}}]},edit:c.Z,save:u.Z,supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};t.Z=m},82005:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(45357);function o({attributes:e}){const{content:t,currency:n,featuredMediaUrl:o,featuredMediaTitle:i,postLinkUrl:s,postLinkText:l,price:c,productId:u,title:p}=e;return u?(0,r.createElement)("div",{className:`jetpack-simple-payments-wrapper jetpack-simple-payments-${u}`},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},o&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("div",{className:"jetpack-simple-payments-image"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:o,alt:i})))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,p)),(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,t)),(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,(0,a.w)(c,n))),(0,r.createElement)("a",{className:"jetpack-simple-payments-purchase",href:s,target:"_blank",rel:"noopener noreferrer"},l)))):null}},59757:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(89453),c=n(33804),u=n(4481),p=n(33163),d=n(51417),m=n(65707),h=n(87997),f=n(46399),g=n(52684),b=n(66325),v=n(11795),k=n(45357),y=n(53089),E=n(27387);const __=p.__,_n=p._n;class w extends o.Component{constructor(...e){super(...e),a()(this,"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),a()(this,"shouldInjectPaymentAttributes",!!this.props.attributes.productId),a()(this,"validateAttributes",(()=>{const e=this.validatePrice(),t=this.validateTitle(),n=this.validateEmail(),r=this.validateCurrency();return e&&t&&n&&r})),a()(this,"validateCurrency",(()=>{const{currency:e}=this.props.attributes;return y.Rh.includes(e)})),a()(this,"validatePrice",(()=>{const{currency:e,price:t}=this.props.attributes,{precision:n}=(0,u.X)(e);return t&&0!==parseFloat(t)?Number.isNaN(parseFloat(t))?(this.setState({fieldPriceError:__("Invalid price","jetpack")}),!1):parseFloat(t)<0?(this.setState({fieldPriceError:__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):(0,k.N3)(t)>n?0===n?(this.setState({fieldPriceError:__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(this.setState({fieldPriceError:(0,p.sprintf)(_n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",n,"jetpack"),n)}),!1):(this.state.fieldPriceError&&this.setState({fieldPriceError:null}),!0):(this.setState({fieldPriceError:__("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)})),a()(this,"validateEmail",(()=>{const{email:e}=this.props.attributes;return e?l.validate(e)?(this.state.fieldEmailError&&this.setState({fieldEmailError:null}),!0):(this.setState({fieldEmailError:(0,p.sprintf)(__("%s is not a valid email address.","jetpack"),e)}),!1):(this.setState({fieldEmailError:__("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)})),a()(this,"validateTitle",(()=>{const{title:e}=this.props.attributes;return e?(this.state.fieldTitleError&&this.setState({fieldTitleError:null}),!0):(this.setState({fieldTitleError:__("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)})),a()(this,"handleEmailChange",(e=>{this.props.setAttributes({email:e}),this.setState({fieldEmailError:null})})),a()(this,"handleContentChange",(e=>{this.props.setAttributes({content:e})})),a()(this,"handlePriceChange",(e=>{e=parseFloat(e),isNaN(e)?this.props.setAttributes({price:void 0}):this.props.setAttributes({price:e}),this.setState({fieldPriceError:null})})),a()(this,"handleCurrencyChange",(e=>{this.props.setAttributes({currency:e})})),a()(this,"handleMultipleChange",(e=>{this.props.setAttributes({multiple:!!e})})),a()(this,"handleTitleChange",(e=>{this.props.setAttributes({title:e}),this.setState({fieldTitleError:null})})),a()(this,"getCurrencyList",y.Rh.map((e=>{const{symbol:t}=(0,u.X)(e);return{value:e,label:t===e?e:`${e} ${(0,c.trimEnd)(t,".")}`}}))),a()(this,"renderSettings",(()=>(0,o.createElement)(f.InspectorControls,null,(0,o.createElement)(E.G,{postLinkText:this.props.attributes.postLinkText,setAttributes:this.props.setAttributes}))))}componentDidMount(){this.injectPaymentAttributes();const{attributes:e,hasPublishAction:t,postLinkUrl:n,setAttributes:r,isPostEditor:a}=this.props,{productId:o}=e;(!o&&t||!a)&&this.saveProduct();const i=n&&n!==this.props.attributes.postLinkUrl,s=!this.props.attributes.postLinkText;(i||s)&&r({...i&&{postLinkUrl:n},...s&&{postLinkText:__("Click here to purchase.","jetpack")}})}componentDidUpdate(e){const{hasPublishAction:t,isSelected:n,postLinkUrl:r,setAttributes:a}=this.props;(0,c.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&t&&this.validateAttributes()?this.saveProduct():e.isSelected&&!n&&this.validateAttributes();const o=r&&r!==this.props.attributes.postLinkUrl,i=!this.props.attributes.postLinkText;(o||i)&&a({...o&&{postLinkUrl:r},...i&&{postLinkText:__("Click here to purchase.","jetpack")}})}injectPaymentAttributes(){const{simplePayment:e,featuredMedia:t}=this.props;if(!this.shouldInjectPaymentAttributes||(0,c.isEmpty)(e))return;const{attributes:n,setAttributes:r}=this.props,{content:a,currency:o,email:i,featuredMediaId:s,featuredMediaUrl:l,featuredMediaTitle:u,multiple:p,price:d,title:m}=n;r({content:(0,c.get)(e,["content","raw"],a),currency:(0,c.get)(e,["meta","spay_currency"],o),email:(0,c.get)(e,["meta","spay_email"],i),featuredMediaId:(0,c.get)(e,["featured_media"],s),featuredMediaUrl:(0,c.get)(t,"url",l),featuredMediaTitle:(0,c.get)(t,"title",u),multiple:Boolean((0,c.get)(e,["meta","spay_multiple"],Boolean(p))),price:(0,c.get)(e,["meta","spay_price"],d||void 0),title:(0,c.get)(e,["title","raw"],m)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}toApi(){const{attributes:e}=this.props,{content:t,currency:n,email:r,featuredMediaId:a,multiple:o,price:i,productId:s,title:l}=e;return{id:s,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:o,spay_price:i},status:s?"publish":"draft",title:l}}saveProduct(){if(this.state.isSavingProduct)return;const{attributes:e,setAttributes:t}=this.props,{email:n}=e,{saveEntityRecord:r}=(0,m.dispatch)("core");this.setState({isSavingProduct:!0},(()=>{r("postType",y.LC,this.toApi()).then((e=>(e&&t({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;this.setState({fieldEmailError:"spay_email"===t?(0,p.sprintf)(__("%s is not a valid email address.","jetpack"),n):null,fieldPriceError:"spay_price"===t?__("Invalid price.","jetpack"):null})})).finally((()=>{this.setState({isSavingProduct:!1})}))}))}render(){const{fieldEmailError:e,fieldPriceError:t,fieldTitleError:n}=this.state,{attributes:r,instanceId:a,isSelected:i,setAttributes:l,simplePayment:u}=this.props,{content:p,currency:d,email:m,featuredMediaId:f,featuredMediaUrl:y,featuredMediaTitle:E,multiple:w,price:_,productId:C,title:S}=r,j=C&&(0,c.isEmpty)(u);if(!i&&j)return(0,o.createElement)("div",{className:"simple-payments__loading"},(0,o.createElement)(b.Z,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!i&&m&&_&&S&&!e&&!t&&!n)return(0,o.createElement)(b.Z,{"aria-busy":"false",content:p,featuredMediaUrl:y,featuredMediaTitle:E,formattedPrice:(0,k.T4)(_,d),multiple:w,title:S});const x=j?h.Disabled:"div";return(0,o.createElement)(x,{className:"wp-block-jetpack-simple-payments"},this.renderSettings(),(0,o.createElement)(v.Z,{featuredMediaId:f,featuredMediaUrl:y,featuredMediaTitle:E,setAttributes:l}),(0,o.createElement)("div",null,(0,o.createElement)(h.TextControl,{"aria-describedby":`${a}-title-error`,className:s()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":n}),label:__("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:S}),(0,o.createElement)(g.Z,{id:`${a}-title-error`,isError:!0},n),(0,o.createElement)(h.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:__("Describe your item in a few words","jetpack"),"aria-label":__("Describe your item in a few words","jetpack"),value:p}),(0,o.createElement)("div",{className:"simple-payments__price-container"},(0,o.createElement)(h.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:d}),(0,o.createElement)(h.TextControl,{"aria-describedby":`${a}-price-error`,className:s()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":t}),label:__("Price","jetpack"),onChange:this.handlePriceChange,placeholder:(0,k.T4)(0,d,!1),required:!0,step:"1",type:"number",value:_||""}),(0,o.createElement)(g.Z,{id:`${a}-price-error`,isError:!0},t)),(0,o.createElement)("div",{className:"simple-payments__field-multiple"},(0,o.createElement)(h.ToggleControl,{checked:Boolean(w),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),(0,o.createElement)(h.TextControl,{"aria-describedby":`${a}-email-${e?"error":"help"}`,className:s()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":e}),label:__("Email","jetpack"),onChange:this.handleEmailChange,placeholder:__("Email","jetpack"),required:!0,type:"text",value:m}),(0,o.createElement)(g.Z,{id:`${a}-email-error`,isError:!0},e),(0,o.createElement)(g.Z,{id:`${a}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,o.createElement)(h.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}}const _=(0,m.withSelect)(((e,t)=>{const{getEntityRecord:n,getMedia:r}=e("core"),{isSavingPost:a,getCurrentPost:o}=e("core/editor"),{productId:i,featuredMediaId:s}=t.attributes,l=i?(0,c.pick)(n("postType",y.LC,i),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,u=o();return{hasPublishAction:!!(0,c.get)(u,["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:l,featuredMedia:s?r(s):null,postLinkUrl:null==u?void 0:u.link,isPostEditor:Object.keys(o()).length>0}}));t.Z=(0,d.compose)(_,d.withInstanceId)(w)},11795:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(46399),i=n(33804),s=n(87997),l=n(68692);const __=a.__,c=e=>t=>e({featuredMediaId:(0,i.get)(t,"id",0),featuredMediaUrl:(0,i.get)(t,"url",null),featuredMediaTitle:(0,i.get)(t,"title",null)});t.Z=({featuredMediaId:e,featuredMediaUrl:t,featuredMediaTitle:n,setAttributes:a})=>e?(0,r.createElement)("div",null,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarItem,null,(()=>(0,r.createElement)(o.MediaUpload,{onSelect:c(a),allowedTypes:["image"],value:e,render:({open:e})=>(0,r.createElement)(l.Z,{label:__("Edit Image","jetpack"),onClick:e})}))),(0,r.createElement)(s.ToolbarButton,{icon:"trash",title:__("Remove Image","jetpack"),onClick:()=>a({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}))),(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:t,alt:n})))):(0,r.createElement)(o.MediaPlaceholder,{icon:(0,r.createElement)(o.BlockIcon,{icon:"format-image"}),labels:{title:__("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:c(a)})},12080:function(e,t,n){"use strict";n.d(t,{u2:function(){return h},Xd:function(){return b}});var r=n(63027),a=n(33163),o=n(87997),i=n(53089),s=n(42975),l=n(32750),c=n(59757),u=n(46010),p=n(65982),d=n(8911),m=n(60206);const __=a.__,_x=a._x,h="simple-payments",f=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),g=(0,s.Wp)()||(0,s.Ug)()?"https://wordpress.com/support/pay-with-paypal/":"https://jetpack.com/support/jetpack-blocks/pay-with-paypal/",b={title:__("Pay with PayPal","jetpack"),description:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),(0,r.createElement)("p",null,__("Good for collecting donations or payments for products and services.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:g},__("Support reference","jetpack"))),icon:{src:f,foreground:(0,l.m)()},category:"earn",keywords:[_x("buy","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),_x("simple","block search term","jetpack"),_x("payments","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:i.a7},content:{type:"string",source:"html",selector:".jetpack-simple-payments-description p",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"src",default:null},featuredMediaTitle:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"alt",default:null},multiple:{type:"boolean",default:!1},postLinkUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-purchase",attribute:"href"},postLinkText:{type:"string",source:"html",selector:".jetpack-simple-payments-purchase",default:__("Click here to purchase.","jetpack")},price:{type:"number"},productId:{type:"number"},title:{type:"string",source:"html",selector:".jetpack-simple-payments-title p",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:({named:{id:e}})=>{if(!e)return;const t=parseInt(e,10);return t||void 0}}}}]},edit:c.Z,save:u.Z,example:{attributes:{price:25,title:__("Jetpack t-shirt","jetpack"),content:__("Take flight in ultimate comfort with this stylish t-shirt featuring the Jetpack logo.","jetpack"),email:"jetpack@jetpack.com",featuredMediaUrl:m}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1},deprecated:[p.Z,d.Z]}},66325:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(22323),i=n(23879);const __=a.__;t.Z=({title:e="",content:t="",formattedPrice:n="",multiple:a=!1,featuredMediaUrl:s=null,featuredMediaTitle:l=null})=>(0,r.createElement)("div",{className:"jetpack-simple-payments-wrapper"},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},s&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("figure",{className:"jetpack-simple-payments-image"},(0,r.createElement)("img",{src:s,alt:l}))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},e&&(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,e)),t&&(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,t)),n&&(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,n)),(0,r.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},a&&(0,r.createElement)("div",{className:"jetpack-simple-payments-items"},(0,r.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),(0,r.createElement)("div",{className:"jetpack-simple-payments-button"},(0,r.createElement)("img",{alt:__("Pay with PayPal","jetpack"),src:o,srcSet:`${i} 2x`}))))))},46010:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(45357);function o({attributes:e}){const{content:t,currency:n,featuredMediaUrl:o,featuredMediaTitle:i,postLinkUrl:s,postLinkText:l,price:c,productId:u,title:p}=e;return u?(0,r.createElement)("div",{className:`jetpack-simple-payments-wrapper jetpack-simple-payments-${u}`},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},o&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("div",{className:"jetpack-simple-payments-image"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:o,alt:i})))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,p)),(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,t)),(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,(0,a.T4)(c,n))),(0,r.createElement)("a",{className:"jetpack-simple-payments-purchase",href:s,target:"_blank",rel:"noopener noreferrer"},l)))):null}},45357:function(e,t,n){"use strict";n.d(t,{N3:function(){return i},w:function(){return l},T4:function(){return c}});var r=n(4481),a=n(33804),o=n(65707);n(53089);const i=e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},s=(e="en-US")=>{var t,n,r,a,o,i;const s=null===(t=window)||void 0===t||null===(n=t.window)||void 0===n?void 0:n.navigator;return null!=s&&null!==(r=s.languages)&&void 0!==r&&r.length?s.languages[0]:null!==(a=null!==(o=null!==(i=null==s?void 0:s.userLanguage)&&void 0!==i?i:null==s?void 0:s.language)&&void 0!==o?o:null==s?void 0:s.browserLanguage)&&void 0!==a?a:e},l=(e=0,t,n=!0)=>{const{precision:o,symbol:i}=(0,r.X)(t),s=e.toFixed(o);return n?`${s} ${(0,a.trimEnd)(i,".")}`:s},c=(e=0,t,n=!0)=>{if(!window.Intl||"function"!=typeof Intl.NumberFormat)return l(e,t,n);const{siteLocale:r}=(0,o.select)("core/block-editor").getSettings(),a=[r,s(),"en-US"];let i,c={};for(i of(n&&(c={style:"currency",currency:t}),a))try{return Intl.NumberFormat(i,c).format(e)}catch{continue}return l(e,t,n)}},28447:function(e,t,n){"use strict";n.d(t,{G:function(){return c},J:function(){return u}});var r=n(63027),a=n(46399),o=n(87997),i=n(33163),s=n(33804),l=n(68692);const __=i.__,_x=i._x;function c({attributes:{autoplay:e,delay:t,effect:n,images:a,sizeSlug:i},imageSizeOptions:l,onChangeImageSize:c,setAttributes:u}){const p="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,d=[{label:_x("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:_x("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{title:__("Autoplay","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Autoplay","jetpack"),help:__("Autoplay between slides","jetpack"),checked:e,onChange:e=>{u({autoplay:e})}}),e&&(0,r.createElement)(o.RangeControl,{label:__("Delay between transitions (in seconds)","jetpack"),value:t,onChange:e=>{u({delay:e})},min:1,max:5}),e&&p&&(0,r.createElement)("span",null,__("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),(0,r.createElement)(o.PanelBody,{title:__("Effects","jetpack")},(0,r.createElement)(o.SelectControl,{label:__("Transition effect","jetpack"),value:n,onChange:e=>{u({effect:e})},options:d})),!(0,s.isEmpty)(a)&&!(0,s.isEmpty)(l)&&(0,r.createElement)(o.PanelBody,{title:__("Image Settings","jetpack")},(0,r.createElement)(o.SelectControl,{label:__("Image Size","jetpack"),value:i,options:l,onChange:e=>c(e)})))}function u({allowedMediaTypes:e,attributes:{images:t},onSelectImages:n}){return(0,r.createElement)(r.Fragment,null,!!t.length&&(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{onSelect:n,allowedTypes:e,multiple:!0,gallery:!0,value:t.map((e=>e.id)),render:({open:e})=>(0,r.createElement)(l.Z,{label:__("Edit Slideshow","jetpack"),onClick:e})})))))}},305:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(33804);async function a(e=".swiper-container",t={},a={}){const o={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:(0,r.mapValues)(a,(e=>function(){e(this)}))},[{default:i}]=await Promise.all([Promise.all([n.e(788),n.e(390)]).then(n.t.bind(n,82788,23)),Promise.all([n.e(788),n.e(390)]).then(n.bind(n,64363))]);return new i(e,(0,r.merge)({},o,t))}},31524:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(51417),l=n(33804),c=n(77996),u=n(65707),p=n(46399),d=n(48885),m=n(87997),h=n(26873),f=n(28447),g=n(42737);const __=i.__,b=["image"],v=(e,t)=>{const n=(0,l.pick)(e,["alt","id","link","caption"]);return n.url=(0,l.get)(e,["sizes",t,"url"])||(0,l.get)(e,["media_details","sizes",t,"source_url"])||e.url,n};class k extends o.Component{constructor(){super(...arguments),a()(this,"onSelectImages",(e=>{const{sizeSlug:t}=this.props.attributes,n=e.map((e=>v(e,t)));this.setAttributes({images:n})})),a()(this,"onRemoveImage",(e=>()=>{const t=(0,l.filter)(this.props.attributes.images,((t,n)=>e!==n));this.setState({selectedImage:null}),this.setAttributes({images:t})})),a()(this,"addFiles",(e=>{const t=this.props.attributes.images||[],n=this.props.attributes.sizeSlug,{lockPostSaving:r,unlockPostSaving:a,noticeOperations:o}=this.props,i="slideshowBlockLock";r(i),(0,d.mediaUpload)({allowedTypes:b,filesList:e,onFileChange:e=>{const r=e.map((e=>v(e,n)));this.setAttributes({images:[...t,...r]}),r.every((e=>(0,c.isBlobURL)(e.url)))||a(i)},onError:o.createErrorNotice})})),a()(this,"uploadFromFiles",(e=>this.addFiles(e.target.files))),a()(this,"updateImagesSize",(e=>{const{images:t}=this.props.attributes,{resizedImages:n}=this.props,r=t.map((t=>{const r=n.find((({id:e})=>parseInt(e,10)===parseInt(t.id,10))),a=(0,l.get)(r,["sizes",e,"source_url"]);return{...t,...a&&{url:a}}}));this.setAttributes({images:r,sizeSlug:e})})),this.state={selectedImage:null}}componentDidMount(){const{ids:e,sizeSlug:t}=this.props.attributes;t||this.setAttributes({sizeSlug:e.length?"full":"large"})}setAttributes(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e={...e,ids:e.images.map((({id:e})=>parseInt(e,10)))}),this.props.setAttributes(e)}getImageSizeOptions(){const{imageSizes:e}=this.props;return(0,l.map)(e,(({name:e,slug:t})=>({value:t,label:e})))}render(){const{attributes:e,className:t,isSelected:n,noticeOperations:r,noticeUI:a}=this.props,{align:i,autoplay:s,delay:l,effect:c,images:u}=e,d=this.getImageSizeOptions(),v=(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p.InspectorControls,null,(0,o.createElement)(f.G,{attributes:e,imageSizeOptions:d,onChangeImageSize:this.updateImagesSize,setAttributes:e=>this.setAttributes(e)})),(0,o.createElement)(p.BlockControls,null,(0,o.createElement)(f.J,{allowedMediaTypes:b,attributes:e,onSelectImages:this.onSelectImages})));return 0===u.length?(0,o.createElement)(o.Fragment,null,v,(0,o.createElement)(p.MediaPlaceholder,{icon:(0,o.createElement)(p.BlockIcon,{icon:h.qv}),className:t,labels:{title:__("Slideshow","jetpack"),instructions:__("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:b,multiple:!0,notices:a,onError:r.createErrorNotice})):(0,o.createElement)(o.Fragment,null,v,a,(0,o.createElement)(g.Z,{align:i,autoplay:s,className:t,delay:l,effect:c,images:u,onError:r.createErrorNotice}),(0,o.createElement)(m.DropZone,{onFilesDrop:this.addFiles}),n&&(0,o.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},(0,o.createElement)(m.FormFileUpload,{multiple:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},__("Upload an image","jetpack"))))}}t.ZP=(0,s.compose)((0,u.withSelect)(((e,t)=>({imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:t.attributes.ids.reduce(((t,n)=>{const r=e("core").getMedia(n);return[...t,{id:n,sizes:(0,l.get)(r,["media_details","sizes"])}]}),[])}))),(0,u.withDispatch)((e=>{const{lockPostSaving:t,unlockPostSaving:n}=e("core/editor");return{lockPostSaving:t,unlockPostSaving:n}})),m.withNotices)(k)},26873:function(e,t,n){"use strict";n.d(t,{qv:function(){return h},u2:function(){return g},Xd:function(){return b}});var r=n(63027),a=n(33163),o=n(87997),i=n(31524),s=n(12386),l=n(83994),c=n(32750),u=n(36012),p=n(65784),d=n(6425),m=n(85983);const __=a.__,_x=a._x,h=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)(o.Path,{d:"M21 8V19C21 20.1046 20.1057 21 19.0011 21C15.8975 21 9.87435 21 6 21",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)(o.Rect,{x:"3.75",y:"3.75",width:"13.5",height:"13.5",rx:"0.875",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)(o.Path,{d:"M9 14L12 11L9 8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})),f={align:"center",autoplay:!0,ids:[22,23],images:[{alt:"",caption:"",id:22,url:p},{alt:"",caption:"",id:23,url:d},{alt:"",caption:"",id:23,url:m}],effect:"slide"},g="slideshow",b={title:__("Slideshow","jetpack"),category:(0,u.Z)("media","layout"),keywords:[_x("image","block search term","jetpack"),_x("gallery","block search term","jetpack"),_x("slider","block search term","jetpack")],description:__("Add an interactive slideshow.","jetpack"),attributes:{align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}},supports:{align:["center","wide","full"],html:!1},icon:{src:h,foreground:(0,c.m)()},edit:i.ZP,save:s.Z,transforms:l.Z,example:{attributes:f}}},12386:function(e,t,n){"use strict";var r=n(63027),a=n(42737);t.Z=({attributes:{align:e,autoplay:t,delay:n,effect:o,images:i},className:s})=>(0,r.createElement)(a.Z,{align:e,autoplay:t,className:s,delay:n,effect:o,images:i})},42737:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(54166),c=n(33163),u=n(77996),p=n(33804),d=n(46399),m=n(87997),h=n(305),f=n(85180);const __=c.__;class g extends o.Component{constructor(e){super(e),a()(this,"pendingRequestAnimationFrame",null),a()(this,"resizeObserver",null),a()(this,"initializeResizeObserver",(e=>{this.clearResizeObserver(),this.resizeObserver=new l.Z((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,f.$m)(e),e.update()}))})),this.resizeObserver.observe(e.el)})),a()(this,"clearPendingRequestAnimationFrame",(()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)})),a()(this,"clearResizeObserver",(()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)})),a()(this,"prefersReducedMotion",(()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)),a()(this,"buildSwiper",((e=0)=>(0,h.Z)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"bullets"}},{init:f.UA,imagesReady:f.$m,paginationRender:f.Wj,transitionEnd:f.HV}))),this.slideshowRef=(0,o.createRef)(),this.btnNextRef=(0,o.createRef)(),this.btnPrevRef=(0,o.createRef)(),this.paginationRef=(0,o.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:a,images:o,onError:i}=this.props;if(t===e.align&&(0,p.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||n!==e.autoplay||r!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{i(__("The Swiper library could not be loaded.","jetpack"))}))}}render(){var e,t;if(null===(e=this.props)||void 0===e||null===(t=e.images)||void 0===t||!t.length)return null;const{autoplay:n,className:r,delay:a,effect:i,images:l}=this.props;return(0,o.createElement)("div",{className:r,"data-autoplay":n||null,"data-delay":n?a:null,"data-effect":i},(0,o.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,o.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},l.map((({alt:e,caption:t,id:n,url:r})=>(0,o.createElement)("li",{className:s()("wp-block-jetpack-slideshow_slide","swiper-slide",(0,u.isBlobURL)(r)&&"is-transient"),key:n||r},(0,o.createElement)("figure",null,(0,o.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,src:r}),(0,u.isBlobURL)(r)&&(0,o.createElement)(m.Spinner,null),t&&(0,o.createElement)(d.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,o.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,o.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,o.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,o.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}}a()(g,"defaultProps",{effect:"slide"}),t.Z=g},85180:function(e,t,n){"use strict";n.d(t,{HV:function(){return l},UA:function(){return i},Wj:function(){return c},$m:function(){return s}});var r=n(67950),a=n(33804);const o="wp-block-jetpack-slideshow_autoplay-paused";function i(e){s(e),l(e);document.querySelector("body").dispatchEvent(new Event("jetpack-lazy-images-load")),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(o)?(e.el.classList.remove(o),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(o),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function s(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,1.7777777777777777),1),a="undefined"!=typeof window?.8*window.innerHeight:600,o=Math.min(e.width/r,a),i=`${Math.floor(o)}px`,s=`${Math.floor(o/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=i,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=s,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=s}function l(e){(0,a.forEach)(e.slides,((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(a.alt))}(e)}function c(e){(0,a.forEach)(e.pagination.bullets,(t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},83994:function(e,t,n){"use strict";var r=n(9314),a=n(33804);function o(e){return(0,a.filter)(e,(({id:e,url:t})=>e&&t))}const i={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>o(e).length>0,transform:e=>{const t=o(e);return(0,r.createBlock)("jetpack/slideshow",{images:t.map((({alt:e,caption:t,id:n,url:r})=>({alt:e,caption:t,id:n,url:r}))),ids:t.map((({id:e})=>e))})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:({images:e})=>{const t=o(e);return t.length>0?(0,r.createBlock)("jetpack/slideshow",{images:t.map((({alt:e,caption:t,id:n,url:r})=>({alt:e,caption:t,id:n,url:r}))),ids:t.map((({id:e})=>e))}):(0,r.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t})=>(0,r.createBlock)("core/gallery",{images:e,ids:t})},{type:"block",blocks:["core/image"],transform:({images:e})=>e.length>0?e.map((({id:e,url:t,alt:n,caption:a})=>(0,r.createBlock)("core/image",{id:e,url:t,alt:n,caption:a}))):(0,r.createBlock)("core/image")}]};t.Z=i},14281:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(78900),a=n.n(r),o=n(63027),i=n(33163),s=n(46844),l=n(2688),c=n(80710);const __=i.__,u=[{title:__("Google Search","jetpack"),icon:"google",name:"google",preview:s.Z},{title:__("Facebook","jetpack"),icon:"facebook",name:"facebook",preview:e=>(0,o.createElement)(l.Z,a()({type:"article"},e))},{title:__("Twitter","jetpack"),icon:"twitter",name:"twitter",preview:e=>(0,o.createElement)(c.Z,e)}]},53314:function(e,t,n){"use strict";n.d(t,{u2:function(){return u},Xd:function(){return p},w6:function(){return d}});var r=n(63027),a=n(33163),o=n(87997),i=n(47649),s=n(54849),l=n(91485),c=n(55324);const __=a.__,u="social-previews",p={render:()=>(0,r.createElement)(d,null)},d=function({showUpgradeNudge:e}){const[t,n]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,t&&(0,r.createElement)(c.Z,{showUpgradeNudge:e,onClose:()=>n(!1)}),(0,r.createElement)(s.Z,null,(0,r.createElement)(o.PanelBody,{title:__("Social Previews","jetpack")},(0,r.createElement)(l.Z,{openModal:()=>n(!0),showUpgradeNudge:e}))),(0,r.createElement)(i.PluginPrePublishPanel,{title:__("Social Previews","jetpack")},(0,r.createElement)(l.Z,{openModal:()=>n(!0),showUpgradeNudge:e})))}},55324:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(65707),s=n(68581),l=n(14281),c=n(45395),u=n(97804);const __=a.__;t.Z=(0,i.withSelect)(((e,t)=>{var n;if(t.showUpgradeNudge)return{};const{getMedia:r,getUser:a}=e("core"),{getCurrentPost:o,getEditedPostAttribute:i}=e("core/editor"),{getTweetTemplate:s,getTweetStorm:l,getShareMessage:c,isTweetStorm:p}=e("jetpack/publicize"),d=i("featured_media"),m=i("author"),h=m&&a(m),f={post:o(),title:i("title"),description:(null===(n=i("meta"))||void 0===n?void 0:n.advanced_seo_description)||i("excerpt")||i("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack"),url:i("link"),author:null==h?void 0:h.name,image:!!d&&(0,u.i)(r(d))};let g=[];return p()?g=l():g.push({...s(),text:c(),card:{...f,type:f.image?"summary_large_image":"summary"}}),{...f,tweets:g,isTweetStorm:p()}}))((function({onClose:e,showUpgradeNudge:t,image:n,title:a,description:i,url:u,author:p,isTweetStorm:d,tweets:m}){const h=l.z.map((e=>({...e,title:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.av,{serviceName:e.icon}),e.title)})));return(0,r.createElement)(o.Modal,{onRequestClose:e,title:__("Social Previews","jetpack"),className:"jetpack-social-previews__modal"},t?(0,r.createElement)(s.Z,null):(0,r.createElement)(o.TabPanel,{className:"jetpack-social-previews__modal-previews",tabs:h,initialTabName:d?"twitter":null,orientation:"vertical"},(e=>(0,r.createElement)("div",null,(0,r.createElement)(e.preview,{title:a,description:i,url:u,author:p,image:n,isTweetStorm:d,tweets:m})))))}))},91485:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(14281),s=n(45395);const __=a.__;t.Z=function({openModal:e,showUpgradeNudge:t}){const n=__(t?"Learn more":"Preview","jetpack"),a=__(t?"Learn more about paid plans":"Open Social Previews","jetpack");return(0,r.createElement)("div",{className:"jetpack-social-previews__panel"},(0,r.createElement)("p",null,__("Preview what this will look like on social networks and Google search.","jetpack")),t&&(0,r.createElement)("p",null,__("Business or eCommerce plan required.","jetpack")),(0,r.createElement)("div",{className:"jetpack-gutenberg-social-icons"},i.z.map((e=>(0,r.createElement)(s.av,{key:e.icon,serviceName:e.icon,className:"jetpack-social-previews__icon"})))),(0,r.createElement)(o.Button,{isSecondary:!0,onClick:e,label:a},n))}},68581:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(63027),a=n(87997),o=n(33163),i=n(28281),s=n(37447),l=n(19637),c=n(36905),u=n(53314);const __=o.__;function p(){var e,t;const n=null===(e=(0,c.Z)(u.u2))||void 0===e||null===(t=e.details)||void 0===t?void 0:t.required_plan,[o,p,d]=(0,l.Z)(n,(()=>{i.Z.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:n,block:u.u2})})),m=__(d?"Redirecting…":"Upgrade","jetpack");return(0,r.createElement)("div",{className:"jetpack-social-previews__modal-upgrade"},(0,r.createElement)("img",{className:"jetpack-social-previews__upgrade-illustration",src:s,width:"351",height:"264",alt:""}),(0,r.createElement)("div",{className:"jetpack-social-previews__upgrade-description"},(0,r.createElement)("h2",{className:"jetpack-social-previews__upgrade-heading"},__("Upgrade to a Business plan to unlock the power of our SEO tools","jetpack")),(0,r.createElement)("ul",{className:"jetpack-social-previews__upgrade-feature-list"},(0,r.createElement)("li",null,__("Preview your site’s content as it will appear on Facebook, Twitter, and the WordPress.com Reader.","jetpack")),(0,r.createElement)("li",null,__("Control how page titles will appear on Google search results and social networks.","jetpack")),(0,r.createElement)("li",null,__("Customize your front page metadata to change how your site appears to search engines.","jetpack"))),(0,r.createElement)(a.Button,{href:o,isPrimary:!0,label:__("Purchase a Business plan to access social previews","jetpack"),onClick:p,target:"_top",isBusy:d},m)))}},97804:function(e,t,n){"use strict";function r(e){var t,n,r;return e?(null===(t=e.media_details)||void 0===t||null===(n=t.sizes)||void 0===n||null===(r=n.large)||void 0===r?void 0:r.source_url)||e.source_url:null}n.d(t,{i:function(){return r}})},15227:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(87997),i=n(33163),s=n(68692);const __=i.__;t.Z=({allowedMediaTypes:e,attributes:{mediaFiles:t},onSelectMedia:n})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,!!t.length&&(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{title:__("Edit Story","jetpack"),onSelect:n,allowedTypes:e,addToGallery:!0,multiple:"add",value:t.map((e=>e.id)),render:({open:e})=>(0,r.createElement)(s.Z,{label:__("Edit Story","jetpack"),onClick:e})}))))))},31678:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33804),s=n(33163),l=n(77996),c=n(65707),u=n(46399),p=n(87997),d=n(96608),m=n(15227),h=n(7393);const __=s.__,f=["image","video"],g=e=>{var t,n,r;const a=(0,i.pick)(e,["alt","title","id","link","type","mime","caption","width","height"]);return a.url=(0,i.get)(e,["media_details","original","url"])||(0,i.get)(e,["media_details","videopress","original"])||(0,i.get)(e,["media_details","sizes","large","source_url"])||(0,i.get)(e,["sizes","large","url"])||e.url,a.type=e.media_type||e.type,a.mime=e.mime_type||e.mime,a.title=(null===(t=a.title)||void 0===t?void 0:t.rendered)||a.title,a.width=a.width||(null===(n=e.media_details)||void 0===n?void 0:n.width),a.height=a.height||(null===(r=e.media_details)||void 0===r?void 0:r.height),a};t.Z=(0,p.withNotices)((function({attributes:e,className:t,isSelected:n,noticeOperations:a,noticeUI:i,setAttributes:s}){const{mediaFiles:p}=e,{lockPostSaving:b,unlockPostSaving:v}=(0,c.useDispatch)("core/editor"),k="storyBlockLock",y=e=>{const t=e.map((e=>{if(!isNaN(e)){return p.find((t=>t.id===e))||{id:e}}return e})).map(g),n=t.filter((e=>!(0,l.isBlobURL)(e.url)));t.length!==n.length?b(k):v(k),s({mediaFiles:t})},E=(0,r.createElement)(m.Z,{allowedMediaTypes:f,attributes:e,onSelectMedia:y}),w=!!p.length,_=(0,r.createElement)(u.MediaPlaceholder,{addToGallery:w,isAppender:w,className:t,disableMediaButtons:w&&!n,icon:!w&&(0,r.createElement)(u.BlockIcon,{icon:d.qv}),labels:{title:!w&&__("Story","jetpack"),instructions:!w&&__("Drag images and videos, upload new ones, or select files from your library.","jetpack")},onSelect:y,accept:f.map((e=>e+"/*")).join(","),allowedTypes:f,multiple:"add",value:p,notices:w?void 0:i,onError:a.createErrorNotice});return w?(0,r.createElement)(r.Fragment,null,E,i,(0,r.createElement)("div",{className:o()("wp-block-jetpack-story","wp-story",t)},(0,r.createElement)(h.Z,{slides:p,disabled:!n,showSlideCount:n,shadowDOM:{enabled:!1},playInFullscreen:!1,tapToPlayPause:!1,playOnNextSlide:!1})),n&&_):(0,r.createElement)(r.Fragment,null,E,_)}))},894:function(e,t,n){"use strict";var r=n(63027),a=n(87997);const o=(0,n(14541).Z)((0,r.createElement)(a.G,null,(0,r.createElement)(a.Path,{d:"M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z"}),(0,r.createElement)(a.Path,{d:"M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z"}),(0,r.createElement)(a.Path,{d:"M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"})));t.Z=o},96608:function(e,t,n){"use strict";n.d(t,{qv:function(){return i.Z},u2:function(){return p},Xd:function(){return d}});var r=n(33163),a=n(31678),o=n(3007),i=n(894),s=n(36012),l=n(32750),c=n(15915);const __=r.__,_x=r._x,u={mediaFiles:[{alt:"",caption:"",mime:"image/jpg",type:"image",id:22,url:c}]},p="story",d={title:__("Story","jetpack"),category:(0,s.Z)("media","layout"),keywords:[_x("story","block search term","jetpack"),_x("image","block search term","jetpack"),_x("video","block search term","jetpack"),_x("gallery","block search term","jetpack")],description:__("Add an interactive story.","jetpack"),attributes:{settings:{type:"object"},mediaFiles:{type:"array",default:[]}},supports:{html:!1},icon:{src:i.Z,foreground:(0,l.m)()},edit:a.Z,save:o.Z,example:{attributes:u}}},15450:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(87997);function o({currentMedia:e}){const t=e&&"image"===e.type?e.url:null;return(0,r.createElement)("div",{className:"wp-story-background"},(0,r.createElement)("div",{className:"wp-story-background-image",style:{backgroundImage:t?`url("${t}")`:"none"}}),(0,r.createElement)("div",{className:"wp-story-background-blur"}),(0,r.createElement)(a.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0"},(0,r.createElement)("filter",{id:"gaussian-blur-18"},(0,r.createElement)("feGaussianBlur",{stdDeviation:"18"}))))}},32061:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(89105),o=n.n(a),i=n(33163),s=n(87997);const __=i.__;function l({isEllipsis:e,disabled:t,index:n,isSelected:a,progress:l,onClick:c}){const u=t||e;let p=null;return e||(p=a?(0,i.sprintf)(__("Slide %d, currently selected","jetpack"),n+1):(0,i.sprintf)(__("Go to slide %d","jetpack"),n+1)),(0,r.createElement)(s.Button,{role:u?"presentation":"tab",key:n,className:o()("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":p,"aria-disabled":u||a,onClick:u||a?void 0:c,disabled:u},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar"},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${l}%`}})))}},4206:function(e,t,n){"use strict";n.d(t,{b:function(){return l},r:function(){return c}});var r=n(78900),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i);const l=({className:e,size:t,label:n,isPressed:r,...i})=>(0,o.createElement)("button",a()({type:"button","aria-label":n,"aria-pressed":r,className:s()("jetpack-mdc-icon-button","circle-icon","outlined","bordered",e),style:{width:`${t}px`,height:`${t}px`}},i)),c=({className:e,size:t=24,label:n,isPressed:r,...i})=>(0,o.createElement)("button",a()({type:"button","aria-label":n,"aria-pressed":r,className:s()("jetpack-mdc-icon-button",e),style:{width:`${t}px`,height:`${t}px`}},i))},73390:function(e,t,n){"use strict";var r=n(63027);t.Z=()=>(0,r.createElement)("div",{className:"wp-story-loading-spinner"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__outer"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__inner"})))},2276:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(33163),o=n(4206),i=n(76925);const __=a.__;function s({playing:e,muted:t,onPlayPressed:n,onMutePressed:a,showMute:s}){return(0,r.createElement)("div",{className:"wp-story-controls"},(0,r.createElement)(o.r,{isPressed:e,label:__(e?"pause":"play","jetpack"),onClick:n},e?(0,r.createElement)(i.fp,null):(0,r.createElement)(i.o1,null)),s&&(0,r.createElement)(o.r,{isPressed:t,label:__(t?"unmute":"mute","jetpack"),onClick:a},t?(0,r.createElement)(i.xb,null):(0,r.createElement)(i.MC,null)))}},12051:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(33163),o=n(4206),i=n(76925);const __=a.__;function s({fullscreen:e,onExitFullscreen:t,siteIconUrl:n,storyTitle:a}){return e?(0,r.createElement)("div",{className:"wp-story-meta"},(0,r.createElement)("div",{className:"wp-story-icon"},(0,r.createElement)("img",{alt:__("Site icon","jetpack"),src:n,width:"40",height:"40"})),(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"wp-story-title"},a)),(0,r.createElement)(o.r,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:t},(0,r.createElement)(i.Tw,null))):null}},76925:function(e,t,n){"use strict";n.d(t,{o1:function(){return s},fp:function(){return l},Tw:function(){return c},MC:function(){return u},xb:function(){return p},JM:function(){return d},Vq:function(){return m}});var r=n(63027),a=n(87997),o=n(14541);const i=({children:e,size:t})=>(0,o.Z)(e,t,t),s=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M8 5v14l11-7z"})),l=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})),c=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),u=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"})),p=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})),d=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),m=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(a.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))},83017:function(e,t,n){"use strict";n.d(t,{gT:function(){return r.Z},ZX:function(){return a.Z},h4:function(){return o.Z},aV:function(){return i.Z},Aq:function(){return s.Z},WB:function(){return l.Z},pU:function(){return c.pU}});var r=n(32061),a=n(2276),o=n(12051),i=n(86770),s=n(15450),l=n(73390),c=n(31887);n(4206)},31887:function(e,t,n){"use strict";n.d(t,{pU:function(){return u}});var r=n(78900),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i);const l=({title:e,alt:t,className:n,id:r,mediaRef:a,mime:i,sizes:l,srcset:c,url:u})=>(0,o.createElement)("img",{ref:a,"data-id":r,"data-mime":i,title:e,alt:t,src:u,className:s()("wp-story-image",`wp-image-${r}`,n),srcSet:c,sizes:l}),c=({title:e,className:t,id:n,mediaRef:r,mime:a,url:i,poster:l})=>(0,o.createElement)("video",{className:s()("wp-story-video","intrinsic-ignore",`wp-video-${n}`,t),ref:r,"data-id":n,title:e,type:a,src:i,poster:l,tabIndex:-1,preload:"auto",playsInline:!0}),u=({targetAspectRatio:e,cropUpTo:t,type:n,width:r,height:i,...s})=>{let u=null;if(r&&i){const n=r/i;if(n>=e){n>e/(1-t)||(u="wp-story-crop-wide")}else{n<e*(1-t)||(u="wp-story-crop-narrow")}}const p="video"===n||(s.mime||"").startsWith("video/");return(0,o.createElement)("figure",null,p?(0,o.createElement)(c,a()({},s,{className:u})):(0,o.createElement)(l,a()({},s,{className:u})))}},86770:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(31635),o=n.n(a),i=n(33163),s=n(4206),l=n(76925);const __=i.__;function c({ended:e,hasPrevious:t,onNextSlide:n,onPreviousSlide:a,icon:c,slideCount:u,showSlideCount:p}){const d=(0,r.useCallback)((t=>{e||(t.stopPropagation(),a())}),[a,e]),m=(0,r.useCallback)((t=>{e||(t.stopPropagation(),n())}),[n,e]);return(0,r.createElement)("div",{className:"wp-story-overlay"},p&&(0,r.createElement)("div",{className:"wp-story-embed-icon"},c,(0,r.createElement)("span",null,u)),!p&&(0,r.createElement)("div",{className:"wp-story-embed-icon-expand"},(0,r.createElement)(o(),{role:"img"})),t&&(0,r.createElement)("div",{className:"wp-story-prev-slide",onClick:d},(0,r.createElement)(s.b,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w"},(0,i.isRTL)()?(0,r.createElement)(l.Vq,{size:24}):(0,r.createElement)(l.JM,{size:24}))),(0,r.createElement)("div",{className:"wp-story-next-slide",onClick:m},(0,r.createElement)(s.b,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w"},(0,i.isRTL)()?(0,r.createElement)(l.JM,{size:24}):(0,r.createElement)(l.Vq,{size:24}))))}},9681:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(63027),a=n(89105),o=n.n(a),i=n(85672),s=n(66788),l=n(46487);const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);function u({className:e,fullscreenClassName:t,bodyFullscreenClassName:n,fullscreen:a,shadowDOM:u,onKeyDown:p,onExitFullscreen:d,playerQuerySelector:m,children:h}){const f=(0,r.useRef)(),g=(0,r.useRef)(),[b,v]=(0,r.useState)(null),k=c&&s.am(),y=a&&!k,E=a&&k;return(0,r.useLayoutEffect)((()=>{if(k)a?f.current&&s.uP(f.current,d):s.bG()&&s.JF();else if(a){if(v([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(n),document.getElementsByTagName("html")[0].classList.add(n),g.current){const e=g.current.querySelector(m);e&&e.focus()}}else if(document.body.classList.remove(n),document.getElementsByTagName("html")[0].classList.remove(n),b){window.scrollTo(...b);const e=f.current.querySelector(m);e&&e.focus()}}),[a]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Z,u,(0,r.createElement)("div",{ref:f,className:o()(e,{[t]:E}),onKeyDown:p},!y&&h)),(0,r.createElement)(l.Z,{className:o()(e,{[t]:y}),isOpened:y,onRequestClose:d,shadowDOM:u,onKeyDown:y&&p,focusOnMount:!1,modalRef:g},y&&h))}},7393:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(65707),o=n(23983),i=(n(17031),n(99869)),s=n(9681);function l({id:e,slides:t,metadata:n,disabled:l,...c}){const u=(0,r.useMemo)((()=>e||Math.random().toString(36)),[e]),{init:p,setEnded:d,setPlaying:m,setFullscreen:h,showSlide:f}=(0,a.useDispatch)("jetpack/story/player"),{playing:g,currentSlideIndex:b,fullscreen:v,isReady:k,playerSettings:y}=(0,a.useSelect)((e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:a,isPlaying:o}=e("jetpack/story/player");return a(u)?{playing:o(u),currentSlideIndex:t(u),isReady:!0,fullscreen:r(u),playerSettings:n(u)}:{isReady:!1}}),[u]);(0,r.useEffect)((()=>{k||p(u,{slideCount:t.length,...c})}),[k,u]);const E=(0,r.useCallback)((e=>{switch(e.keyCode){case o.ENTER:if(v)break;case o.SPACE:m(u,!g);break;case o.LEFT:b>0&&f(u,b-1);break;case o.RIGHT:b<t.length-1?f(u,b+1):d(u)}}),[u,b,v,g]),w=(0,r.useCallback)((()=>{h(u,!1)}),[u]);return k?(0,r.createElement)(s.Z,{shadowDOM:y.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:v,onExitFullscreen:w,onKeyDown:E},(0,r.createElement)(i.Z,{id:u,slides:t,metadata:n,disabled:l})):null}},66788:function(e,t,n){"use strict";n.d(t,{am:function(){return r},bG:function(){return a},uP:function(){return o},JF:function(){return i}});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,a=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,o=(e,t)=>{if((e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t){const e=()=>{document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())};document.addEventListener("fullscreenchange",e)}},i=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},85672:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027);const a=window&&window.Element&&window.Element.prototype.hasOwnProperty("attachShadow");function o({enabled:e,delegatesFocus:t=!1,mode:n="open",globalStyleElements:o=[],adoptedStyleSheets:s=null,mountOnElement:l=null,children:c}){const[u,p]=(0,r.useState)(null),d=l||u,[m,h]=(0,r.useState)(null),f="string"==typeof o?[...document.querySelectorAll(o)]:o,g=a&&e&&f.length>0,b=(0,r.useCallback)((e=>{null!==e&&p(e.parentNode)}),[]);if((0,r.useEffect)((()=>{if(!d)return;if(d.shadowRoot)return void h(d.shadowRoot);const e=d.attachShadow({delegatesFocus:t,mode:n});s&&(e.adoptedStyleSheets=s),h(e)}),[d]),g&&!m)return l?null:(0,r.createElement)("span",{ref:b});const v=(0,r.createElement)(r.Fragment,null,g&&(0,r.createElement)(i,{globalStyleElements:f}),c);return g?(0,r.createPortal)(v,m):v}function i({globalStyleElements:e}){return(0,r.createElement)(r.Fragment,null,e.map((({id:e,tagName:t,attributes:n,innerHTML:a},o)=>"LINK"===t?(0,r.createElement)("link",{key:e||o,id:e,rel:n.rel.value,href:n.href.value}):"STYLE"===t?(0,r.createElement)("style",{key:e||o,id:e},a):void 0)))}},9345:function(e,t,n){"use strict";var r=n(63027);t.Z=e=>{const t=(0,r.useRef)(),n=(0,r.useRef)(),a=(0,r.useRef)(e),o=(0,r.useCallback)((e=>{e.touches&&1===e.touches.length&&e.preventDefault()}),[]);return(0,r.useEffect)((()=>{a.current=e}),[e]),{onTouchStart:(0,r.useCallback)((e=>{e.target&&(e.target.addEventListener("touchend",o,{passive:!1}),n.current=e.target),t.current=setTimeout((()=>{a.current&&a.current(!0),t.current=null}),200)}),[]),onTouchEnd:(0,r.useCallback)((e=>{t.current?clearTimeout(t.current):(a.current&&a.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",o)}),[])}}},77758:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(!1),a=(0,r.useRef)(e),o=(0,r.useRef)(e);return o.current=e,(0,r.useLayoutEffect)((()=>{e.forEach(((e,r)=>{const o=a.current[r];"function"==typeof e&&e!==o&&!1===n.current&&(o(null),e(t.current))})),a.current=e}),e),(0,r.useLayoutEffect)((()=>{n.current=!1})),(0,r.useCallback)((e=>{t.current=e,n.current=!0;(e?o.current:a.current).forEach((t=>{"function"==typeof t?t(e):t&&t.hasOwnProperty("current")&&(t.current=e)}))}),[])}},58874:function(e,t,n){"use strict";async function r(e){const t=e.tagName.toLowerCase();if("img"===t){if(e.complete)return;await new Promise((t=>{e.addEventListener("load",t,{once:!0})}))}else if("video"===t||"audio"===t){if(e.HAVE_ENOUGH_DATA===e.readyState)return;await new Promise((t=>{e.addEventListener("canplaythrough",t,{once:!0}),e.addEventListener("load",t,{once:!0}),e.HAVE_NOTHING===e.readyState&&e.networkState!==e.NETWORK_LOADING&&e.load()}))}}n.d(t,{Z:function(){return r}})},83393:function(e,t,n){"use strict";n.d(t,{BM:function(){return s},i1:function(){return l}});var r=n(33804);const a=new Set(["alert","status","log","marquee","timer"]);let o=[],i=!1;function s(e){if(i)return;const t=document.body.children;(0,r.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||a.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),o.push(t))})),i=!0}function l(){i&&((0,r.forEach)(o,(e=>{e.removeAttribute("aria-hidden")})),o=[],i=!1)}},40695:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(23983),o=n(51417),i=n(77758);function s({overlayClassName:e,children:t,className:n,focusOnMount:s,shouldCloseOnEsc:l=!0,onRequestClose:c,onKeyDown:u,modalRef:p}){const d=(0,o.useFocusOnMount)(s),m=(0,o.useConstrainedTabbing)(),h=(0,o.useFocusReturn)();return(0,r.createElement)("div",{className:e,onKeyDown:function(e){l&&e.keyCode===a.ESCAPE&&(e.stopPropagation(),c&&c(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===a.SPACE||u&&u(e)}},(0,r.createElement)("div",{className:n,ref:(0,i.Z)([m,h,d,p])},t))}},46487:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(51417),s=n(85672),l=n(40695),c=n(83393);let u,p=0;const d=()=>{};class m extends o.Component{constructor(e){super(e),this.prepareDOM()}componentDidMount(){p++,1===p&&this.openFirstModal()}componentWillUnmount(){p--,0===p&&this.closeLastModal(),this.cleanDOM()}prepareDOM(){u||(u=document.createElement("div"),document.body.appendChild(u)),this.node=document.createElement("div"),u.appendChild(this.node),this.node.ontouchstart=d,this.node.ontouchend=d}cleanDOM(){u.removeChild(this.node)}openFirstModal(){c.BM(u)}closeLastModal(){c.i1()}render(){const{children:e,isOpened:t,shadowDOM:n,...r}=this.props;return(0,o.createElement)(s.Z,a()({},n,{mountOnElement:this.node}),t&&(0,o.createElement)(l.Z,r,e))}}m.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0},t.Z=(0,i.withInstanceId)(m)},99869:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(78900),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(33804),c=n(77996),u=n(51417),p=n(33163),d=n(65707),m=n(51922),h=n(894),f=n(64130),g=n(83017),b=n(9345);const __=p.__;function v({id:e,slides:t,metadata:n,disabled:r}){const{setFullscreen:i,setEnded:p,setPlaying:v,setMuted:k,showSlide:y}=(0,d.useDispatch)("jetpack/story/player"),{playing:E,muted:w,currentSlideIndex:_,currentSlideEnded:C,ended:S,fullscreen:j,settings:x}=(0,d.useSelect)((t=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:a,hasEnded:o,isFullscreen:i,isMuted:s,isPlaying:l}=t("jetpack/story/player");return{playing:l(e),muted:s(e),currentSlideIndex:n(e),currentSlideEnded:a(e),ended:o(e),fullscreen:i(e),settings:r(e)}}),[e]),T=(0,o.useRef)(),[N,A]=(0,o.useState)(null),[P,{width:I,height:M}]=(0,u.useResizeObserver)(),[B,R]=(0,o.useState)(x.defaultAspectRatio),L=(0,l.some)(t,(e=>(0,c.isBlobURL)(e.url))),Z=t=>{y(e,t)},D=(0,o.useCallback)((()=>{r||j||x.playInFullscreen&&!E&&v(e,!0)}),[E,r,j]),{onTouchStart:F,onTouchEnd:O}=(0,b.Z)((t=>{v(e,!t)}),[]),z=(0,o.useCallback)((()=>{_>0&&Z(_-1)}),[_]),U=(0,o.useCallback)((()=>{_<t.length-1?Z(_+1):p(e)}),[_,t]),$=(0,o.useCallback)((()=>{i(e,!1)}),[]);let V,G;return(0,o.useEffect)((()=>{r&&E&&v(e,!1)}),[r,E]),(0,o.useEffect)((()=>{E&&C&&U()}),[E,C]),(0,o.useLayoutEffect)((()=>{if(!T.current)return;let e=Math.round(x.defaultAspectRatio*T.current.offsetHeight);j&&(e=Math.abs(1-e/I)<x.cropUpTo?I:e),A(e)}),[I,M,j]),(0,o.useLayoutEffect)((()=>{N&&T.current&&T.current.offsetHeight>0&&R(N/T.current.offsetHeight)}),[N]),V=j?[__("You are currently playing a story.","jetpack"),__(E?"Press space to pause.":"Press space to play.","jetpack"),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),G=r?"presentation":j?"dialog":"button",(0,o.createElement)("div",{className:"wp-story-display-contents"},P,(0,o.createElement)("div",{role:G,"aria-label":V,tabIndex:j?-1:0,className:s()("wp-story-container",{"wp-story-with-controls":!r&&!j&&!x.playInFullscreen,"wp-story-fullscreen":j,"wp-story-ended":S,"wp-story-disabled":r,"wp-story-clickable":!r&&!j}),style:{maxWidth:`${N}px`},onClick:D,onTouchStart:F,onTouchEnd:O},(0,o.createElement)(g.h4,a()({},n,{fullscreen:j,onExitFullscreen:$})),(0,o.createElement)("div",{ref:T,className:"wp-story-wrapper"},t.map(((t,n)=>(0,o.createElement)(m.Z,{playerId:e,key:n,media:t,index:n,playing:!r&&E,uploading:L,settings:x,targetAspectRatio:B})))),(0,o.createElement)(g.aV,{icon:h.Z,slideCount:t.length,showSlideCount:x.showSlideCount,ended:S,hasPrevious:_>0,onPreviousSlide:z,onNextSlide:U}),x.showProgressBar&&(0,o.createElement)(f.ZP,{playerId:e,slides:t,disabled:!j,onSlideSeek:Z,maxBullets:j?x.maxBulletsFullscreen:x.maxBullets}),(0,o.createElement)(g.ZX,{playing:E,muted:w,onPlayPressed:()=>v(e,!E),onMutePressed:()=>k(e,!w),showMute:(e=>{const n=e<t.length?t[e]:null;return!!n&&("video"===n.type||(n.mime||"").startsWith("video/"))})(_)})),j&&(0,o.createElement)(g.Aq,{currentMedia:x.blurredBackground&&t.length>_&&t[_]}))}},64130:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(83017),i=n(65707);const s=({key:e,playerId:t,index:n,disabled:a,isSelected:s,onClick:l})=>{const c=(0,i.useSelect)((e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(t)),[]);return(0,r.createElement)(o.gT,{key:e,index:n,progress:c,disabled:a,isSelected:s,onClick:l})};t.ZP=({playerId:e,slides:t,disabled:n,onSlideSeek:l,maxBullets:c})=>{const{currentSlideIndex:u}=(0,i.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e)})),[]),p=Math.min(t.length,c),d=Math.floor(p/2);let m,h=0,f=t.length-1;return t.length<=c||u<d?(m=u,f=p-1):u>=t.length-d?(m=u-t.length+p,h=t.length-p):(m=d,h=u-d,f=u+d),(0,r.createElement)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist"},h>0&&(0,r.createElement)(o.gT,{key:"bullet-0",index:h-1,progress:100,isEllipsis:!0}),(0,a.range)(1,p+1).map(((t,a)=>{const i=a+h;let c=null;if(i<u)c=100;else{if(!(i>u))return(0,r.createElement)(s,{playerId:e,key:`bullet-${a}`,index:i,disabled:n,isSelected:m===a,onClick:()=>l(i)});c=0}return(0,r.createElement)(o.gT,{key:`bullet-${a}`,index:i,progress:c,disabled:n,isSelected:m===a,onClick:()=>l(i)})})),f<t.length-1&&(0,r.createElement)(o.gT,{key:`bullet-${p+1}`,index:f+1,progress:0,isEllipsis:!0}))}},51922:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(58874),s=n(89105),l=n.n(s),c=n(65707),u=n(83017);t.Z=({playerId:e,media:t,index:n,playing:r,uploading:s,settings:p,targetAspectRatio:d})=>{const{currentSlideIndex:m,buffering:h}=(0,c.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e),buffering:t("jetpack/story/player").isBuffering(e)})),[]),{slideReady:f}=(0,c.useDispatch)("jetpack/story/player"),g=n===m,b=(0,o.useRef)(null),[v,k]=(0,o.useState)(!1),[y,E]=(0,o.useState)(!0);return(0,o.useEffect)((()=>{if(g&&!y){const t=b.current&&b.current.src&&"video"===b.current.tagName.toLowerCase()?b.current:null;f(e,b.current,t?t.duration:p.imageTime)}}),[g,y]),(0,o.useEffect)((()=>{n<=m+(r?1:0)&&k(!0)}),[r,m]),(0,o.useLayoutEffect)((()=>{b.current&&(0,i.Z)(b.current).then((()=>{E(!1)}))}),[v,s]),(0,o.createElement)(o.Fragment,null,g&&(y||s||h)&&(0,o.createElement)("div",{className:l()("wp-story-slide","is-loading",{transparent:r&&h,"semi-transparent":s||!r&&h})},(0,o.createElement)(u.WB,null)),(0,o.createElement)("div",{role:"figure",className:"wp-story-slide",style:{display:g&&!y?"block":"none"},tabIndex:g?0:-1},v&&(0,o.createElement)(u.pU,a()({},t,{targetAspectRatio:d,cropUpTo:p.cropUpTo,index:n,mediaRef:b}))))}},45124:function(e,t,n){"use strict";function r(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function a(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function o(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function i(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function s(e,t){return{type:"SET_CURRENT_SLIDE_PROGRESS",value:t,playerId:e}}function l(e){return{type:"RESET_CURRENT_SLIDE_PROGRESS",playerId:e}}function c(e){return{type:"SET_CURRENT_SLIDE_ENDED",playerId:e}}function u(e,t){return{type:"SET_FULLSCREEN",playerId:e,fullscreen:t}}function p(e){return{type:"ENDED",playerId:e}}function d(e,t={}){return{type:"INIT",playerId:e,settings:t}}function m(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}n.r(t),n.d(t,{setMuted:function(){return r},setPlaying:function(){return a},showSlide:function(){return o},slideReady:function(){return i},setCurrentSlideProgress:function(){return s},resetCurrentSlideProgress:function(){return l},setCurrentSlideEnded:function(){return c},setFullscreen:function(){return u},setEnded:function(){return p},init:function(){return d},setBuffering:function(){return m}})},62447:function(e,t,n){"use strict";n.d(t,{XO:function(){return r},Qz:function(){return a},H2:function(){return o}});const r={currentTime:0,duration:null,timeout:null,lastUpdate:null},a={progress:r,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},o={slideCount:0,currentSlide:a,previousSlide:null,muted:!1,playing:!1,ended:!1,buffering:!1,fullscreen:!1,settings:{imageTime:5,startMuted:!1,playInFullscreen:!0,playOnNextSlide:!0,playOnLoad:!1,exitFullscreenOnEnd:!0,loadInFullscreen:!1,blurredBackground:!0,showSlideCount:!1,showProgressBar:!0,shadowDOM:{enabled:!0,mode:"open",globalStyleElements:'#jetpack-block-story-css, link[href*="jetpack/_inc/blocks/story/view.css"]'},defaultAspectRatio:.5625,cropUpTo:.2,volume:.8,maxBullets:7,maxBulletsFullscreen:14}}},14074:function(e,t,n){"use strict";var r=n(45124),a=n(45746);const o=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function i(e,t){const{getState:n}=t,r=e.playerId,i=(0,a.isMuted)(n(),r),s=(0,a.isPlaying)(n(),r),l=(0,a.getCurrentMediaElement)(n(),r),c=(0,a.getPreviousSlideMediaElement)(n(),r),u=(0,a.getSettings)(n(),r);o(c)&&(c.currentTime=0,c.onwaiting=null,c.onplaying=null,c.pause()),o(l)&&(i!==l.muted&&(l.muted=i,i||(l.volume=u.volume)),s?l.play():l.pause())}function s(e,t){const{getState:n,dispatch:i}=t,l=e.playerId,c=(0,a.isCurrentSlideReady)(n(),l),u=(0,a.isPlaying)(n(),l),p=(0,a.getCurrentSlideProgress)(n(),l);if(clearTimeout(p.timeout),!u||!c)return void(p.lastUpdate&&i((0,r.setCurrentSlideProgress)(l,{...p,lastUpdate:null})));const d=(0,a.getCurrentMediaElement)(n(),l),m=(0,a.getCurrentMediaDuration)(n(),l),h=p.lastUpdate?Date.now()-p.lastUpdate:100,f=o(d)?d.currentTime:p.currentTime+h/1e3;if(f>=m){i((0,r.setCurrentSlideEnded)(l));const e=(0,a.getSlideCount)(n(),l);(0,a.getCurrentSlideIndex)(n(),l)===e-1&&i((0,r.setEnded)(l))}else i((0,r.setCurrentSlideProgress)(l,{timeout:setTimeout((()=>s(e,t)),100),lastUpdate:Date.now(),duration:m,currentTime:f}))}t.Z={SET_PLAYING:[s,i],SLIDE_READY:[function(e,t){const{getState:n,dispatch:i}=t,s=e.playerId,l=(0,a.getCurrentMediaElement)(n(),s);if(!o(l))return;const c=(0,a.getCurrentSlideProgress)(n(),s);0===l.currentTime&&c.currentTime>0&&(l.currentTime=c.currentTime),l.onwaiting=()=>i((0,r.setBuffering)(s,!0)),l.onplaying=()=>i((0,r.setBuffering)(s,!1))},s,i],SET_MUTED:i,SHOW_SLIDE:i}},17031:function(e,t,n){"use strict";var r=n(65707),a=n(45124),o=n(45746),i=n(76155),s=n(26810);const l=(0,r.registerStore)("jetpack/story/player",{actions:a,reducer:s.Z,selectors:o});(0,i.Z)(l)},76155:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2601),a=n.n(r),o=n(33804),i=n(14074);function s(e){const t=[a()(i.Z)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r=[];const s={getState:e.getState,dispatch:(...e)=>n(...e)};return r=t.map((e=>e(s))),n=(0,o.flowRight)(...r)(e.dispatch),e.dispatch=n,e}},26810:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(33804),a=n(62447);function o(e=a.H2,t){switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...a.Qz,index:t.index},previousSlide:e.currentSlide,playing:n?e.settings.playOnNextSlide:e.playing}}case"SLIDE_READY":return{...e,buffering:!1,currentSlide:{...e.currentSlide,mediaElement:t.mediaElement,duration:t.duration,ready:!0},previousSlide:null};case"SET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:t.value}};case"SET_CURRENT_SLIDE_ENDED":return{...e,currentSlide:{...e.currentSlide,ended:!0}};case"RESET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:{...a.XO}}};case"SET_MUTED":return{...e,muted:t.value};case"SET_PLAYING":{const n=t.value&&e.ended;return{...e,playing:t.value,buffering:!!t.value&&e.buffering,fullscreen:!e.playing&&t.value?e.settings.playInFullscreen:e.fullscreen,ended:!n&&e.ended,currentSlide:n?{...a.Qz,index:0}:e.currentSlide,previousSlide:n?null:e.previousSlide}}case"SET_BUFFERING":return{...e,buffering:t.value};case"SET_FULLSCREEN":return{...e,fullscreen:t.fullscreen,playing:!(e.fullscreen&&!t.fullscreen&&e.settings.playInFullscreen)&&e.playing};case"INIT":{const n=(0,r.merge)({},e.settings,t.settings);return{...e,settings:n,playing:n.playOnLoad,fullscreen:n.loadInFullscreen}}case"ENDED":return{...e,currentSlide:{...a.Qz,index:e.settings.slideCount-1,progress:{...a.XO,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function i(e={},t){return t.playerId?{...e,[t.playerId]:o(e[t.playerId],t)}:e}},45746:function(e,t,n){"use strict";function r(e,t){return!!e[t]}function a(e,t){return e[t].currentSlide.index}function o(e,t){return e[t].currentSlide.progress}function i(e,t){const n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,a=Math.round(100*n/r);return a>=100?100:a}function s(e,t){return e[t].playing}function l(e,t){return e[t].muted}function c(e,t){return e[t].buffering}function u(e,t){return e[t].currentSlide.mediaElement}function p(e,t){return e[t].currentSlide.duration}function d(e,t){return e[t].currentSlide.ended}function m(e,t){return e[t].currentSlide.ready}function h(e,t){var n;return null===(n=e[t].previousSlide)||void 0===n?void 0:n.mediaElement}function f(e,t){return e[t].fullscreen}function g(e,t){return e[t].ended}function b(e,t){return e[t].settings}function v(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{isPlayerReady:function(){return r},getCurrentSlideIndex:function(){return a},getCurrentSlideProgress:function(){return o},getCurrentSlideProgressPercentage:function(){return i},isPlaying:function(){return s},isMuted:function(){return l},isBuffering:function(){return c},getCurrentMediaElement:function(){return u},getCurrentMediaDuration:function(){return p},hasCurrentSlideEnded:function(){return d},isCurrentSlideReady:function(){return m},getPreviousSlideMediaElement:function(){return h},isFullscreen:function(){return f},hasEnded:function(){return g},getSettings:function(){return b},getSlideCount:function(){return v}})},3007:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a);t.Z=({className:e})=>(0,r.createElement)("div",{className:o()("wp-story",e)})},12764:function(e,t,n){"use strict";var r=n(33163);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},79884:function(e,t,n){"use strict";n.d(t,{G0:function(){return r},Gp:function(){return a},S9:function(){return o},VF:function(){return i},K3:function(){return s},XJ:function(){return l},xV:function(){return c},bK:function(){return u},HE:function(){return p},Tr:function(){return d},pC:function(){return m},FP:function(){return h},tm:function(){return f}});const r=0,a=50,o=0,i=0,s=15,l=1,c=5,u=50,p=15,d=0,m=50,h=10,f="16px"},96680:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(33163),o=n(87997),i=n(46399),s=n(2892),l=n(79884);const __=a.__;function c({buttonBackgroundColor:e,borderColor:t,buttonGradient:n,borderRadius:a,borderWeight:c,buttonOnNewLine:u,emailFieldBackgroundColor:p,fallbackButtonBackgroundColor:d,fallbackTextColor:m,fontSize:h,isGradientAvailable:f,padding:g,setAttributes:b,setButtonBackgroundColor:v,setTextColor:k,showSubscribersTotal:y,spacing:E,subscriberCount:w,textColor:_,buttonWidth:C}){return(0,r.createElement)(r.Fragment,null,f&&(0,r.createElement)(i.__experimentalPanelColorGradientSettings,{title:__("Color Settings","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",settings:[{colorValue:e.color,onColorChange:v,gradientValue:n.gradientValue,onGradientChange:n.setGradient,label:__("Button Background Color","jetpack")},{colorValue:_.color,onColorChange:k,label:__("Button Text Color","jetpack")},{colorValue:t.color,onColorChange:e=>{b({borderColor:e,customBorderColor:e})},label:__("Border Color","jetpack")}],initialOpen:!0},(0,r.createElement)(i.ContrastChecker,{fontSize:h.size,textColor:_.color,backgroundColor:p.color,fallbackButtonBackgroundColor:d,fallbackTextColor:m})),!f&&(0,r.createElement)(i.PanelColorSettings,{title:__("Background Colors","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",colorSettings:[{value:e.color,onChange:v,label:__("Button Background Color","jetpack")},{value:_.color,onChange:k,label:__("Button Text Color","jetpack")},{value:t.color,onColorChange:e=>{b({borderColor:e,customBorderColor:e})},label:__("Border Color","jetpack")}],initialOpen:!1},(0,r.createElement)(i.ContrastChecker,{fontSize:h.size,textColor:_.color,backgroundColor:p.color,fallbackButtonBackgroundColor:d,fallbackTextColor:m})),(0,r.createElement)(o.PanelBody,{title:__("Text Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__textpanel"},(0,r.createElement)(i.FontSizePicker,{withSlider:!0,value:h.size,onChange:e=>{const t=e||l.tm;b({fontSize:t,customFontSize:t})}})),(0,r.createElement)(o.PanelBody,{title:__("Border Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__borderpanel"},(0,r.createElement)(o.RangeControl,{value:a,label:__("Border Radius","jetpack"),min:l.G0,max:l.Gp,initialPosition:l.S9,allowReset:!0,onChange:e=>b({borderRadius:e})}),(0,r.createElement)(o.RangeControl,{value:c,label:__("Border Weight","jetpack"),min:l.VF,max:l.K3,initialPosition:l.XJ,allowReset:!0,onChange:e=>b({borderWeight:e})})),(0,r.createElement)(o.PanelBody,{title:__("Spacing Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__spacingpanel"},(0,r.createElement)(o.RangeControl,{value:g,label:__("Space Inside","jetpack"),min:l.xV,max:l.bK,initialPosition:l.HE,allowReset:!0,onChange:e=>b({padding:e})}),(0,r.createElement)(o.RangeControl,{value:E,label:__("Space Between","jetpack"),min:l.Tr,max:l.pC,initialPosition:l.FP,allowReset:!0,onChange:e=>b({spacing:e})}),(0,r.createElement)(s.h,{width:C,onChange:e=>b({buttonWidth:e})})),(0,r.createElement)(o.PanelBody,{title:__("Display Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__displaypanel"},(0,r.createElement)(o.ToggleControl,{label:__("Show subscriber count","jetpack"),checked:y,onChange:()=>{b({showSubscribersTotal:!y})},help:()=>{if(!w||w<1)return __("This will remain hidden on your website until you have at least one subscriber.","jetpack")}}),(0,r.createElement)(o.ToggleControl,{label:__("Place button on new line","jetpack"),checked:u,onChange:()=>{b({buttonOnNewLine:!u})}})))}},27149:function(e,t,n){"use strict";var r=n(34409),a=n(58961),o=n(92161),i=n(64446),s=n(41919);t.Z=[s.Z,i.Z,o.Z,a.Z,r.Z]},34409:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(33804);const __=a.__;t.Z={attributes:{subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:e=>({submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal}),isEligible:e=>!(!e.hasOwnProperty("subscribeButton")||!(0,o.isEmpty)(e.subscribeButton)),save:function({attributes:e}){return(0,r.createElement)(r.RawHTML,null,`[jetpack_subscription_form show_subscribers_total="${e.showSubscribersTotal}" show_only_email_and_button="true"]`)}}},58961:function(e,t,n){"use strict";var r=n(33163),a=n(37729);const __=r.__;t.Z={attributes:{subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},migrate:e=>({subscribePlaceholder:e.subscribePlaceholder,showSubscribersTotal:e.showSubscribersTotal,buttonOnNewLine:!0,submitButtonText:e.submitButtonText,buttonBackgroundColor:e.backgroundButtonColor?e.backgroundButtonColor:"primary",customButtonBackgroundColor:e.customBackgroundButtonColor,textColor:e.textButtonColor?e.textButtonColor:"background",customTextColor:e.customTextButtonColor}),save:a.Z}},37729:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({attributes:e}){const{showSubscribersTotal:t,submitButtonClasses:n,customBackgroundButtonColor:a,customTextButtonColor:o,submitButtonText:i}=e;return(0,r.createElement)(r.RawHTML,null,`[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="${a}" custom_text_button_color="${o}" submit_button_text="${i}" submit_button_classes="${n}" show_subscribers_total="${t}" ]`)}},53921:function(e,t,n){"use strict";var r=n(33163);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Enter your email address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Sign Up","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"number"},customFontSize:{type:"number"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},83219:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(63027),a=n(46399),o=n(89105),i=n.n(o),s=n(53921);function l(e,t,n=null){const{subscribePlaceholder:o,showSubscribersTotal:l,buttonOnNewLine:c,submitButtonText:u,emailFieldBackgroundColor:p,customEmailFieldBackgroundColor:d,emailFieldGradient:m,customEmailFieldGradient:h,buttonBackgroundColor:f,customButtonBackgroundColor:g,buttonGradient:b,customButtonGradient:v,textColor:k,customTextColor:y,fontSize:E,customFontSize:w,borderRadius:_,borderWeight:C,borderColor:S,customBorderColor:j,padding:x,spacing:T}=t,N=!!a.__experimentalGetGradientClass,A=(0,a.getColorClassName)("color",k),P=(0,a.getFontSizeClass)(E),I=(0,a.getColorClassName)("border-color",S),M=(0,a.getColorClassName)("background-color",f),B=N?(0,a.__experimentalGetGradientClass)(b):void 0,R=(0,a.getColorClassName)("background-color",p),L=N?(0,a.__experimentalGetGradientClass)(m):void 0,Z=i()(0===_?"no-border-radius":void 0,P,I),D=i()(Z,k?"has-text-color":void 0,A,f||b?"has-background":void 0,M,B),F=i()(Z,R,L),O=!R&&h?h:d,z=!M&&v?v:g;let U=o,$=u;return"check-text-defaults"===n&&(U=o===s.Z.subscribePlaceholder.default?"Enter your email address":o,$=u===s.Z.submitButtonText.default?"Sign Up":u),(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",c?"wp-block-jetpack-subscriptions__use-newline":void 0,l?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(r.RawHTML,null,`\n\t\t\t[jetpack_subscription_form\n\t\t\t\tsubscribe_placeholder="${U}"\n\t\t\t\tshow_subscribers_total="${l}"\n\t\t\t\tbutton_on_newline="${c}"\n\t\t\t\tsubmit_button_text="${$}"\n\t\t\t\tcustom_background_emailfield_color="${O}"\n\t\t\t\tcustom_background_button_color="${z}"\n\t\t\t\tcustom_text_button_color="${y}"\n\t\t\t\tcustom_font_size="${w||16}"\n\t\t\t\tcustom_border_radius="${_||0}"\n\t\t\t\tcustom_border_weight="${C||1}"\n\t\t\t\tcustom_border_color="${j}"\n\t\t\t\tcustom_padding="${x||15}"\n\t\t\t\tcustom_spacing="${T||10}"\n\t\t\t\tsubmit_button_classes="${D}"\n\t\t\t\temail_field_classes="${F}"\n\t\t\t\tshow_only_email_and_button="true"\n\t\t\t]`))}},92161:function(e,t,n){"use strict";var r=n(53921),a=n(83219);t.Z={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:({className:e,attributes:t})=>(0,a.ZP)(e,t)}},64446:function(e,t,n){"use strict";var r=n(53921),a=n(83219);t.Z={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:({className:e,attributes:t})=>(0,a.ZP)(e,t,"check-text-defaults")}},41919:function(e,t,n){"use strict";var r=n(53921),a=n(18248);t.Z={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:a.ZP}},18248:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c}});var r=n(63027),a=n(46399),o=n(89105),i=n.n(o),s=n(33804),l=n(53921);function c({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:o,buttonOnNewLine:c,submitButtonText:u,emailFieldBackgroundColor:p,customEmailFieldBackgroundColor:d,emailFieldGradient:m,customEmailFieldGradient:h,buttonBackgroundColor:f,customButtonBackgroundColor:g,buttonGradient:b,customButtonGradient:v,textColor:k,customTextColor:y,fontSize:E,customFontSize:w,borderRadius:_,borderWeight:C,borderColor:S,customBorderColor:j,padding:x,spacing:T}=t,N=!!a.__experimentalGetGradientClass,A=(0,a.getColorClassName)("color",k),P=(0,a.getFontSizeClass)(E),I=(0,a.getColorClassName)("border-color",S),M=(0,a.getColorClassName)("background-color",f),B=N?(0,a.__experimentalGetGradientClass)(b):void 0,R=(0,a.getColorClassName)("background-color",p),L=N?(0,a.__experimentalGetGradientClass)(m):void 0,Z=i()(0===_?"no-border-radius":void 0,P,I),D=i()(Z,k?"has-text-color":void 0,A,f||b?"has-background":void 0,M,B),F=i()(Z,R,L),O=!R&&h?h:d,z=!M&&v?v:g,U={subscribe_placeholder:n!==l.Z.subscribePlaceholder.default?n:void 0,show_subscribers_total:o,button_on_newline:c,submit_button_text:u!==l.Z.submitButtonText.default?u:void 0,custom_background_emailfield_color:O,custom_background_button_color:z,custom_text_button_color:y,custom_font_size:w||16,custom_border_radius:_||0,custom_border_weight:C||1,custom_border_color:j,custom_padding:x||15,custom_spacing:T||10,submit_button_classes:D,email_field_classes:F,show_only_email_and_button:!0},$=(0,s.reduce)(U,((e,t,n)=>void 0===t?e:e+` ${n}="${t}"`),"");return(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",c?"wp-block-jetpack-subscriptions__use-newline":void 0,o?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(r.RawHTML,null,`[jetpack_subscription_form${$}]`))}},85614:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33804),s=n(37606),l=n.n(s),c=n(33163),u=n(87997),p=n(46399),d=n(51417),m=n(12764),h=n(83353),f=n(79884),g=n(96680);const __=c.__,_n=c._n,{getComputedStyle:b}=window,v=!!p.__experimentalUseGradient,k=(0,u.withFallbackStyles)(((e,t)=>{const{buttonBackgroundColor:n,textColor:r}=t,a=n&&n.color,o=r&&r.color,i=e.querySelector(".wp-block-jetpack-subscriptions__button");return{fallbackButtonBackgroundColor:a||!e?void 0:i&&b(i).backgroundColor,fallbackTextColor:o||!e?void 0:i&&b(i).color}}));t.Z=(0,d.compose)([(0,p.withColors)({emailFieldBackgroundColor:"backgroundColor"},{buttonBackgroundColor:"backgroundColor"},{textColor:"color"},"borderColor"),(0,p.withFontSizes)("fontSize"),k])((function(e){const{className:t,attributes:n,setAttributes:a,emailFieldBackgroundColor:s,buttonBackgroundColor:d,setButtonBackgroundColor:b,fallbackButtonBackgroundColor:k,textColor:y,fallbackTextColor:E,setTextColor:w,borderColor:_,fontSize:C}=e,S=(0,h.S)(m.Z,n);(0,i.isEqual)(S,n)||a(S);const{borderRadius:j,borderWeight:x,buttonWidth:T,padding:N,spacing:A,submitButtonText:P,subscribePlaceholder:I,showSubscribersTotal:M,buttonOnNewLine:B}=S,[R,L]=(0,r.useState)(""),[Z,D]=(0,r.useState)(""),F=v?(0,p.__experimentalUseGradient)({gradientAttribute:"emailFieldGradient",customGradientAttribute:"customEmailFieldGradient"}):{},O=v?(0,p.__experimentalUseGradient)({gradientAttribute:"buttonGradient",customGradientAttribute:"customButtonGradient"}):{},z={"no-border-radius":0===j,[C.class]:C.class,"has-text-color":y.color,[y.class]:y.class},U={...z,"has-background":s.color||F.gradientValue,[s.class]:!F.gradientValue&&s.class,[F.gradientClass]:F.gradientClass},$={...z,"has-background":d.color||O.gradientValue,[d.class]:!O.gradientValue&&d.class,[O.gradientClass]:O.gradientClass},V=e=>e||f.FP,G={color:y.color,borderColor:_.color,borderRadius:j?j+"px":f.S9+"px",borderWidth:x?x+"px":f.XJ+"px",fontSize:C.size?C.size:f.tm,padding:(e=>{const t=e||f.HE;return t+"px "+Math.round(1.5*t)+"px "+t+"px "+Math.round(1.5*t)+"px"})(N)},H={...G,...!s.color&&F.gradientValue?{background:F.gradientValue}:{backgroundColor:s.color}},q={...G,...!d.color&&O.gradientValue?{background:O.gradientValue}:{backgroundColor:d.color},...B?{marginTop:V(A)+"px"}:{marginLeft:V(A)+"px"},width:T};return(0,r.useEffect)((()=>{l()({path:"/wpcom/v2/subscribers/count"}).then((e=>{e.hasOwnProperty("count")?(L((0,c.sprintf)(_n("Join %s other subscriber","Join %s other subscribers",e.count,"jetpack"),e.count)),D(e.count)):(L(__("Subscriber count unavailable","jetpack")),D(0))}))}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.InspectorControls,null,(0,r.createElement)(g.Z,{buttonBackgroundColor:d,borderColor:_,buttonGradient:O,borderRadius:j,borderWeight:x,buttonOnNewLine:B,emailFieldBackgroundColor:s,fallbackButtonBackgroundColor:k,fallbackTextColor:E,fontSize:C,isGradientAvailable:v,padding:N,setAttributes:a,setButtonBackgroundColor:b,setTextColor:w,showSubscribersTotal:M,spacing:A,subscriberCount:Z,textColor:y,buttonWidth:T})),(0,r.createElement)("div",{className:o()(t,"wp-block-jetpack-subscriptions__supports-newline",B?"wp-block-jetpack-subscriptions__use-newline":void 0,M?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)("div",{className:"wp-block-jetpack-subscriptions__form",role:"form"},(0,r.createElement)(u.TextControl,{placeholder:I,disabled:!0,className:o()(U,"wp-block-jetpack-subscriptions__textfield"),style:H}),(0,r.createElement)(p.RichText,{className:o()($,"wp-block-jetpack-subscriptions__button","wp-block-button__link"),onChange:e=>a({submitButtonText:e}),style:q,value:P,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),M&&(0,r.createElement)("p",{className:"wp-block-jetpack-subscriptions__subscount"},R)))}))},65841:function(e,t,n){"use strict";n.d(t,{u2:function(){return p},Xd:function(){return m}});var r=n(63027),a=n(33163),o=n(87997),i=n(12764),s=n(27149),l=n(85614),c=n(32877),u=n(32750);const __=a.__,_x=a._x,p="subscriptions",d=(0,r.createElement)(o.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.Rect,{x:"4.75",y:"6.75",width:"14.5",height:"10.5",rx:"1.25",stroke:(0,u.m)(),strokeWidth:"1.5",fill:"none"}),(0,r.createElement)(o.Path,{d:"M19 7L13.3609 12.2363C12.5935 12.9489 11.4065 12.9489 10.6391 12.2363L5 7",stroke:(0,u.m)(),strokeWidth:"1.5",strokeLinejoin:"bevel",fill:"none"})),m={title:__("Subscription Form","jetpack"),description:(0,r.createElement)("p",null,__("A form enabling readers to get notifications when new posts are published from this site.","jetpack")),icon:{src:d,foreground:(0,u.m)()},category:"grow",keywords:[_x("subscribe","block search term","jetpack"),_x("join","block search term","jetpack"),_x("follow","block search term","jetpack")],attributes:i.Z,edit:l.Z,save:c.Z,example:{attributes:{}},deprecated:s.Z}},32877:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(63027),a=n(46399),o=n(89105),i=n.n(o),s=n(33804),l=n(12764),c=n(79884);function u({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:o,buttonOnNewLine:u,submitButtonText:p,emailFieldBackgroundColor:d,customEmailFieldBackgroundColor:m,emailFieldGradient:h,customEmailFieldGradient:f,buttonBackgroundColor:g,customButtonBackgroundColor:b,buttonGradient:v,customButtonGradient:k,textColor:y,customTextColor:E,fontSize:w,customFontSize:_,borderRadius:C,borderWeight:S,borderColor:j,customBorderColor:x,padding:T,spacing:N,buttonWidth:A}=t,P=!!a.__experimentalGetGradientClass,I=(0,a.getColorClassName)("color",y),M=(0,a.getFontSizeClass)(w),B=(0,a.getColorClassName)("border-color",j),R=(0,a.getColorClassName)("background-color",g),L=P?(0,a.__experimentalGetGradientClass)(v):void 0,Z=(0,a.getColorClassName)("background-color",d),D=P?(0,a.__experimentalGetGradientClass)(h):void 0,F=i()(0===C?"no-border-radius":void 0,M,B),O=i()(F,y?"has-text-color":void 0,I,g||v?"has-background":void 0,R,L),z=i()(F,Z,D),U=!Z&&f?f:m,$=!R&&k?k:b,V=A||void 0,G={subscribe_placeholder:n!==l.Z.subscribePlaceholder.default?n:void 0,show_subscribers_total:o,button_on_newline:u,submit_button_text:p!==l.Z.submitButtonText.default?p:void 0,custom_background_emailfield_color:U,custom_background_button_color:$,custom_text_button_color:E,custom_font_size:_||c.tm,custom_border_radius:C||c.S9,custom_border_weight:S||c.XJ,custom_border_color:x,custom_button_width:V,custom_padding:T||c.HE,custom_spacing:N||c.FP,submit_button_classes:O,email_field_classes:z,show_only_email_and_button:!0},H=(0,s.reduce)(G,((e,t,n)=>void 0===t?e:e+` ${n}="${t}"`),"");return(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",u?"wp-block-jetpack-subscriptions__use-newline":void 0,o?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(r.RawHTML,null,`[jetpack_subscription_form${H}]`))}},38078:function(e,t,n){"use strict";n.d(t,{RA:function(){return r},q3:function(){return a},hI:function(){return o},Z5:function(){return i},GP:function(){return s},xJ:function(){return l},sw:function(){return c},EU:function(){return u},yw:function(){return p},P0:function(){return d}});const r=["image"],a=4,o=20,i=20,s=2e3,l="circle",c="columns",u="rectangular",p="square",d=[{isDefault:!0,name:u},{name:l},{name:p},{name:c}]},90647:function(e,t,n){"use strict";var r=n(32550),a=n(34827),o=n(8835);t.Z=[o,a,r]},84742:function(e,t,n){"use strict";n.d(t,{q3:function(){return r},hI:function(){return a},GP:function(){return o},EU:function(){return i},P0:function(){return s}});const r=4,a=20,o=2e3,i="rectangular",s=[{isDefault:!0,name:i},{name:"circle"},{name:"square"},{name:"columns"}]},34364:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(77996);function o(e){const{"aria-label":t,alt:n,height:o,id:i,link:s,linkTo:l,origUrl:c,url:u,width:p}=e;if((0,a.isBlobURL)(c))return null;let d;switch(l){case"media":d=u;break;case"attachment":d=s}const m=(0,r.createElement)("img",{alt:n,"aria-label":t,"data-height":o,"data-id":i,"data-link":s,"data-url":c,"data-width":p,src:u});return(0,r.createElement)("figure",{className:"tiled-gallery__item"},d?(0,r.createElement)("a",{href:d},m):m)}},32550:function(e,t,n){"use strict";n.r(t),n.d(t,{save:function(){return r.Z},attributes:function(){return a},support:function(){return o}});var r=n(33924);const a={align:{default:"center",type:"string"},className:{default:`is-style-${n(84742).EU}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},o={align:["center","wide","full"],customClassName:!1,html:!1}},64329:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e}){return(0,r.createElement)("div",{className:"tiled-gallery__col"},e)}},62084:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},13049:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(63027),a=n(40278),o=n(33163),i=n(82827),s=n(77996),l=n(34364),c=n(12330),u=n(24766),p=n(84742);const __=o.__;class d extends r.Component{photonize({height:e,width:t,url:n}){if(!n)return;if((0,s.isBlobURL)(n)||/^https?:\/\/localhost/.test(n))return n;const r=n.split("?",1)[0],o=function(e){const{host:t}=(0,i.Qc)(e);return/\.files\.wordpress\.com$/.test(t)}(n)?h:a.Z,{layoutStyle:l}=this.props;if(m(l)&&t&&e){const n=Math.min(p.GP,t,e);return o(r,{resize:`${n},${n}`})}return o(r)}renderImage(e,t){const{images:n,linkTo:a,selectedImage:i}=this.props,s=(0,o.sprintf)(__("image %1$d of %2$d in gallery","jetpack"),t+1,n.length);return(0,r.createElement)(l.Z,{alt:e.alt,"aria-label":s,height:e.height,id:e.id,origUrl:e.url,isSelected:i===t,key:t,link:e.link,linkTo:a,url:this.photonize(e),width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:i}=this.props,s=m(i)?u.Z:c.Z,l=this.props.images.map(this.renderImage,this);return(0,r.createElement)("div",{className:n},(0,r.createElement)(s,{align:e,columns:a,images:o,layoutStyle:i,renderedImages:l}),t)}}function m(e){return["circle","square"].includes(e)}function h(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},{auth:r,hash:a,port:o,query:s,search:l,...c}=(0,i.Qc)(e);return c.query=Object.keys(t).reduce(((e,r)=>Object.assign(e,{[n.hasOwnProperty(r)?n[r]:r]:t[r]})),{}),(0,i.WU)(c)}},12330:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(43197),a=n.n(r),o=n(63027),i=n(54166),s=n(64329),l=n(62084),c=n(32518),u=n(87467),p=n(94062);class d extends o.Component{constructor(...e){super(...e),a()(this,"gallery",(0,o.createRef)()),a()(this,"pendingRaf",null),a()(this,"ro",null),a()(this,"handleGalleryResize",(e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t;(0,u.W)(n).forEach((t=>(0,u.i)(t,e)))}}))}))}componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new i.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a}=this.props,i=(0,p.h9)(n),u="columns"===r?(0,p.sv)(i,t):(0,p.T9)(i,{isWide:["full","wide"].includes(e)});let d=0;return(0,o.createElement)(l.Z,{galleryRef:this.gallery},u.map(((e,t)=>(0,o.createElement)(c.Z,{key:t},e.map(((e,t)=>{const n=a.slice(d,d+e);return d+=e,(0,o.createElement)(s.Z,{key:t},n)}))))))}}},94062:function(e,t,n){"use strict";n.d(t,{h9:function(){return a},sv:function(){return i},T9:function(){return S}});var r=n(33804);function a(e){return(0,r.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let s=0;s<t-1;s++){const e=(0,r.takeWhile)(o,(e=>{const t=i<=(s+1)*n;return t&&(i+=e),t})).length;a.push(e),o=(0,r.drop)(o,e)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([T,T,N,T,T]),c=x([T,T,T,N,T,T,T]),u=j([3,1,3],5),p=x([N,T,T,N]),d=j([1,2,1],5),m=x([N,T,T,T]),h=j([1,3],3),f=x([T,T,T,N]),g=j([3,1],3),b=x([P(1.6),(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2)),P(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&p(a)&&d(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function T(e){return e>=1&&e<2}function N(e){return e<1}function A(e){return t=>t>=e}function P(e){return t=>t<e}},87467:function(e,t,n){"use strict";n.d(t,{i:function(){return o},W:function(){return i}});var r=n(84742);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function o(e,t){!function(e,[t,n],o){const i=1/t*(o-r.q3*(e.childElementCount-1)-n);!function(e,{rawHeight:t,rowWidth:n}){const o=s(e),i=o.map((e=>(t-r.q3*(e.childElementCount-1))*c(e)[0])),p=a(i,n);o.forEach(((e,n)=>{const o=i[n],s=p[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const o=a(l(e).map((e=>r/u(e))),t);Array.from(e.children).forEach(((e,t)=>{const r=o[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)}))}(e,{colHeight:t-r.q3*(e.childElementCount-1),width:s,rawWidth:o})}))}(e,{rawHeight:i,rowWidth:o-r.q3*(e.childElementCount-1)})}(e,function(e){return s(e).map(c).reduce((([e,t],[n,r])=>[e+n,t+r]),[0,0])}(e),t)}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},32518:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(89105),o=n.n(a);function i({children:e,className:t}){return(0,r.createElement)("div",{className:o()("tiled-gallery__row",t)},e)}},24766:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(33804),o=n(32518),i=n(64329),s=n(62084),l=n(84742);function c({columns:e,renderedImages:t}){const n=Math.min(l.hI,e),c=t.length%n;return(0,r.createElement)(s.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(o.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},33924:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(13049),o=n(8185),i=n(84742);function s(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{images:t}=e;if(!t.length)return null;const{align:n,className:l,columns:c=s(e),linkTo:u}=e;return(0,r.createElement)(a.Z,{align:n,className:l,columns:c,images:t,layoutStyle:(0,o.t)(i.P0,l),linkTo:u})}},86945:function(e,t,n){"use strict";n.d(t,{hI:function(){return r},Z5:function(){return a},GP:function(){return o},xJ:function(){return i},EU:function(){return s},P0:function(){return l}});const r=20,a=20,o=2e3,i="circle",s="rectangular",l=[{isDefault:!0,name:s},{name:i},{name:"square"},{name:"columns"}]},9320:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(89105),o=n.n(a),i=n(77996);function s(e){const{alt:t,imageFilter:n,height:a,id:s,link:l,linkTo:c,origUrl:u,url:p,width:d}=e;if((0,i.isBlobURL)(u))return null;let m;switch(c){case"media":m=p;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":a,"data-id":s,"data-link":l,"data-url":u,"data-width":d,src:p});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},34827:function(e,t,n){"use strict";n.r(t),n.d(t,{save:function(){return a.Z},attributes:function(){return o},supports:function(){return i}});var r=n(86945),a=n(34960);const o={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},i={align:["center","wide","full"],customClassName:!1,html:!1}},28656:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e}){return(0,r.createElement)("div",{className:"tiled-gallery__col"},e)}},28751:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},22055:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(63027),a=n(33163),o=n(89105),i=n.n(o),s=n(9320),l=n(29962),c=n(48517),u=n(40363),p=n(86945);const __=a.__;class d extends r.Component{renderImage(e,t){const{columns:n,imageFilter:o,images:i,linkTo:l,layoutStyle:c,selectedImage:p}=this.props,d=(0,a.sprintf)(__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),{src:m,srcSet:h}=(0,u.z)(e,{layoutStyle:c});return(0,r.createElement)(s.Z,{alt:e.alt,"aria-label":d,columns:n,height:e.height,id:e.id,imageFilter:o,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:p===t,key:t,link:e.link,linkTo:l,origUrl:e.url,showMovers:i.length>1,srcSet:h,url:m,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:s,roundedCorners:d}=this.props,m=(0,u.v)(s)?c.Z:l.Z,h=this.props.images.map(this.renderImage,this),f=s!==p.xJ?Math.min(d,p.Z5):0;return(0,r.createElement)("div",{className:i()(n,{[`has-rounded-corners-${f}`]:f>0})},(0,r.createElement)(m,{align:e,columns:a,images:o,layoutStyle:s,renderedImages:h}),t)}}},29962:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43197),a=n.n(r),o=n(63027),i=n(28656),s=n(28751),l=n(86198),c=n(94654);class u extends o.Component{constructor(...e){super(...e),a()(this,"gallery",(0,o.createRef)()),a()(this,"pendingRaf",null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a}=this.props,u=(0,c.h9)(n),p="columns"===r?(0,c.sv)(u,t):(0,c.T9)(u,{isWide:["full","wide"].includes(e)});let d=0;return(0,o.createElement)(s.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,o.createElement)(l.Z,{key:t},e.map(((e,t)=>{const n=a.slice(d,d+e);return d+=e,(0,o.createElement)(i.Z,{key:t},n)}))))))}}},94654:function(e,t,n){"use strict";n.d(t,{h9:function(){return a},sv:function(){return i},T9:function(){return S}});var r=n(33804);function a(e){return(0,r.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let s=0;s<t-1;s++){const e=(0,r.takeWhile)(o,(e=>{const t=i<=(s+1)*n;return t&&(i+=e),t})).length;a.push(e),o=(0,r.drop)(o,e)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([T,T,N,T,T]),c=x([T,T,T,N,T,T,T]),u=j([3,1,3],5),p=x([N,T,T,N]),d=j([1,2,1],5),m=x([N,T,T,T]),h=j([1,3],3),f=x([T,T,T,N]),g=j([3,1],3),b=x([P(1.6),(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2)),P(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&p(a)&&d(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function T(e){return e>=1&&e<2}function N(e){return e<1}function A(e){return t=>t>=e}function P(e){return t=>t<e}},86198:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(89105),o=n.n(a);function i({children:e,className:t}){return(0,r.createElement)("div",{className:o()("tiled-gallery__row",t)},e)}},48517:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(33804),o=n(86198),i=n(28656),s=n(28751),l=n(86945);function c({columns:e,renderedImages:t}){const n=Math.min(l.hI,e),c=t.length%n;return(0,r.createElement)(s.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(o.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},34960:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(22055),o=n(8185),i=n(86945);function s(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:c,columns:u=s(e),linkTo:p,roundedCorners:d}=e;return(0,r.createElement)(a.Z,{align:l,className:c,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,o.t)(i.P0,c),linkTo:p,roundedCorners:d})}},40363:function(e,t,n){"use strict";n.d(t,{v:function(){return l},z:function(){return c}});var r=n(40278),a=n(82827),o=n(77996),i=n(33804),s=n(86945);function l(e){return["circle","square"].includes(e)}function c(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,o.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:c,width:p}=e,{layoutStyle:d}=t,m=function(e){const{host:t}=(0,a.Qc)(e);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?u:r.Z;let h;if(l(d)&&p&&c){const e=Math.min(s.GP,p,c);h=m(n,{resize:`${e},${e}`})}else h=m(n);let f;if(l(d)){const e=Math.min(600,p,c),t=Math.min(s.GP,p,c);f=(0,i.range)(e,t,300).map((e=>{const t=m(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,p),t=Math.min(s.GP,p);f=(0,i.range)(e,t,300).map((e=>{const t=m(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:h},f&&{srcSet:f})}function u(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},{auth:r,hash:o,port:i,query:s,search:l,...c}=(0,a.Qc)(e);return c.query=Object.keys(t).reduce(((e,r)=>Object.assign(e,{[n.hasOwnProperty(r)?n[r]:r]:t[r]})),{}),(0,a.WU)(c)}},50653:function(e,t,n){"use strict";n.d(t,{hI:function(){return r},Z5:function(){return a},GP:function(){return o},xJ:function(){return i},EU:function(){return s},P0:function(){return l}});const r=20,a=20,o=2e3,i="circle",s="rectangular",l=[{isDefault:!0,name:s},{name:i},{name:"square"},{name:"columns"}]},16998:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(89105),o=n.n(a),i=n(77996);function s(e){const{alt:t,imageFilter:n,height:a,id:s,link:l,linkTo:c,origUrl:u,url:p,width:d}=e;if((0,i.isBlobURL)(u))return null;let m;switch(c){case"media":m=p;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":a,"data-id":s,"data-link":l,"data-url":u,"data-width":d,src:p});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},8835:function(e,t,n){"use strict";n.r(t),n.d(t,{save:function(){return a.Z},attributes:function(){return o},supports:function(){return i},migrate:function(){return s}});var r=n(50653),a=n(79659);const o={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},i={align:["center","wide","full"],customClassName:!1,html:!1},s=e=>{const t=Math.pow(10,5);return{...e,columnWidths:e.columnWidths.map((e=>e.map((e=>Math.round(e*t)/t))))}}},42001:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e,width:t}){const n=Math.pow(10,12),a=Math.round(t*n)/n,o=t?{flexBasis:`${a}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:o},e)}},11773:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},27454:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(63027),a=n(33163),o=n(89105),i=n.n(o),s=n(16998),l=n(19275),c=n(80135),u=n(24527),p=n(50653);const __=a.__;class d extends r.Component{renderImage(e,t){const{columns:n,imageFilter:o,images:i,isSave:l,linkTo:c,layoutStyle:p,onMoveBackward:d,onMoveForward:m,onRemoveImage:h,onSelectImage:f,selectedImage:g,setImageAttributes:b}=this.props,v=(0,a.sprintf)(__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),{src:k,srcSet:y}=(0,u.z)(e,{layoutStyle:p});return(0,r.createElement)(s.Z,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:o,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:g===t,key:t,link:e.link,linkTo:c,onMoveBackward:l?void 0:d(t),onMoveForward:l?void 0:m(t),onRemove:l?void 0:h(t),onSelect:l?void 0:f(t),origUrl:e.url,setAttributes:l?void 0:b(t),showMovers:i.length>1,srcSet:y,url:k,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:s,roundedCorners:d,onResize:m,isSave:h,columnWidths:f}=this.props,g=(0,u.v)(s)?c.Z:l.Z,b=this.props.images.map(this.renderImage,this),v=s!==p.xJ?Math.min(d,p.Z5):0;return(0,r.createElement)("div",{className:i()(n,{[`has-rounded-corners-${v}`]:v>0})},(0,r.createElement)(g,{align:e,columns:a,columnWidths:h?f:void 0,images:o,layoutStyle:s,renderedImages:b,onResize:h?void 0:m}),t)}}},19275:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43197),a=n.n(r),o=n(63027),i=n(42001),s=n(11773),l=n(58791),c=n(10376);class u extends o.Component{constructor(...e){super(...e),a()(this,"gallery",(0,o.createRef)()),a()(this,"pendingRaf",null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a,columnWidths:u}=this.props,p=(0,c.h9)(n),d="columns"===r?(0,c.sv)(p,t):(0,c.T9)(p,{isWide:["full","wide"].includes(e)});let m=0;return(0,o.createElement)(s.Z,{galleryRef:this.gallery},d.map(((e,t)=>(0,o.createElement)(l.Z,{key:t},e.map(((e,n)=>{const r=a.slice(m,m+e);return m+=e,(0,o.createElement)(i.Z,{key:n,width:u?u[t][n]:void 0},r)}))))))}}},10376:function(e,t,n){"use strict";n.d(t,{h9:function(){return a},sv:function(){return i},T9:function(){return S}});var r=n(33804);function a(e){return(0,r.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let s=0;s<t-1;s++){const e=(0,r.takeWhile)(o,(e=>{const t=i<=(s+1)*n;return t&&(i+=e),t})).length;a.push(e),o=(0,r.drop)(o,e)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([T,T,N,T,T]),c=x([T,T,T,N,T,T,T]),u=j([3,1,3],5),p=x([N,T,T,N]),d=j([1,2,1],5),m=x([N,T,T,T]),h=j([1,3],3),f=x([T,T,T,N]),g=j([3,1],3),b=x([P(1.6),(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2)),P(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&p(a)&&d(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function T(e){return e>=1&&e<2}function N(e){return e<1}function A(e){return t=>t>=e}function P(e){return t=>t<e}},58791:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(89105),o=n.n(a);function i({children:e,className:t}){return(0,r.createElement)("div",{className:o()("tiled-gallery__row",t)},e)}},80135:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(33804),o=n(58791),i=n(42001),s=n(11773),l=n(50653);function c({columns:e,renderedImages:t}){const n=Math.min(l.hI,e),c=t.length%n;return(0,r.createElement)(s.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(o.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},79659:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(27454),o=n(8185),i=n(50653);function s(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:c,columns:u=s(e),linkTo:p,roundedCorners:d,columnWidths:m}=e;return(0,r.createElement)(a.Z,{align:l,className:c,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,o.t)(i.P0,c),linkTo:p,roundedCorners:d,columnWidths:m})}},24527:function(e,t,n){"use strict";n.d(t,{v:function(){return l},z:function(){return c}});var r=n(40278),a=n(82827),o=n(77996),i=n(33804),s=n(50653);function l(e){return["circle","square"].includes(e)}function c(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,o.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:c,width:p}=e,{layoutStyle:d}=t,m=function(e){const{host:t}=(0,a.Qc)(e);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?u:r.Z;let h;if(l(d)&&p&&c){const e=Math.min(s.GP,p,c);h=m(n,{resize:`${e},${e}`})}else h=m(n);let f;if(l(d)){const e=Math.min(600,p,c),t=Math.min(s.GP,p,c);f=(0,i.range)(e,t,300).map((e=>{const t=m(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,p),t=Math.min(s.GP,p);f=(0,i.range)(e,t,300).map((e=>{const t=m(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:h},f&&{srcSet:f})}function u(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},{auth:r,hash:o,port:i,query:s,search:l,...c}=(0,a.Qc)(e);return c.query=Object.keys(t).reduce(((e,r)=>Object.assign(e,{[n.hasOwnProperty(r)?n[r]:r]:t[r]})),{}),(0,a.WU)(c)}},89947:function(e,t,n){"use strict";n.d(t,{F:function(){return v}});var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(33804),l=n(46399),c=n(48885),u=n(87997),p=n(92769),d=n(98193),m=n(38078),h=n(8185),f=n(59948),g=n(68692);const __=i.__,b=[{value:"attachment",label:__("Attachment Page","jetpack")},{value:"media",label:__("Media File","jetpack")},{value:"none",label:__("None","jetpack")}];function v(e){return Math.min(3,e.images.length)}const k=e=>{const t=(0,s.pick)(e,[["alt"],["id"],["link"]]);return t.url=(0,s.get)(e,["sizes","large","url"])||(0,s.get)(e,["media_details","sizes","large","source_url"])||e.url,t};class y extends o.Component{constructor(...e){var t;super(...e),a()(this,"state",{selectedImage:null,changed:void 0===this.props.attributes.columnWidths||0===(null===(t=this.props.attributes.columnWidths)||void 0===t?void 0:t.length)}),a()(this,"addFiles",(e=>{const t=this.props.attributes.images||[],{noticeOperations:n}=this.props;(0,c.mediaUpload)({allowedTypes:m.RA,filesList:e,onFileChange:e=>{const n=e.map((e=>k(e)));this.setAttributes({images:t.concat(n)})},onError:n.createErrorNotice}),this.setState({changed:!0})})),a()(this,"onRemoveImage",(e=>()=>{const t=(0,s.filter)(this.props.attributes.images,((t,n)=>e!==n)),{columns:n}=this.props.attributes;this.setState({selectedImage:null,changed:!0}),this.setAttributes({images:t,columns:n?Math.min(t.length,n):n})})),a()(this,"onSelectImage",(e=>()=>{this.state.selectedImage!==e&&this.setState({selectedImage:e})})),a()(this,"onSelectImages",(e=>{const{columns:t}=this.props.attributes;this.setAttributes({columns:t?Math.min(e.length,t):t,images:e.map((e=>k(e)))}),this.setState({changed:!0})})),a()(this,"onMove",((e,t)=>{const n=[...this.props.attributes.images];n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t,changed:!0}),this.setAttributes({images:n})})),a()(this,"onMoveForward",(e=>()=>{e!==this.props.attributes.images.length-1&&this.onMove(e,e+1)})),a()(this,"onMoveBackward",(e=>()=>{0!==e&&this.onMove(e,e-1)})),a()(this,"onResize",(e=>{this.state.changed&&this.setAttributes({columnWidths:e})})),a()(this,"setColumnsNumber",(e=>this.setAttributes({columns:e}))),a()(this,"setRoundedCorners",(e=>this.setAttributes({roundedCorners:e}))),a()(this,"setImageAttributes",(e=>t=>{const{attributes:{images:n}}=this.props;n[e]&&this.setAttributes({images:[...n.slice(0,e),{...n[e],...t},...n.slice(e+1)]})})),a()(this,"setLinkTo",(e=>this.setAttributes({linkTo:e}))),a()(this,"uploadFromFiles",(e=>this.addFiles(e.target.files)))}static getDerivedStateFromProps(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}setAttributes(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e={...e,ids:e.images.map((({id:e})=>parseInt(e,10)))}),this.props.setAttributes(e)}render(){const{selectedImage:e}=this.state,{attributes:t,isSelected:n,className:r,noticeOperations:a,noticeUI:i,setAttributes:s}=this.props,{align:c,columns:k=v(t),imageFilter:y,images:E,linkTo:w,roundedCorners:_}=t,C=(0,o.createElement)(u.DropZone,{onFilesDrop:this.addFiles}),S=(0,o.createElement)(l.BlockControls,null,!!E.length&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.ToolbarGroup,null,(0,o.createElement)(u.ToolbarItem,null,(()=>(0,o.createElement)(l.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:m.RA,multiple:!0,gallery:!0,value:E.map((e=>e.id)),render:({open:e})=>(0,o.createElement)(g.Z,{label:__("Edit Gallery","jetpack"),onClick:e})})))),(0,o.createElement)(p.Z,{value:y,onChange:e=>{s({imageFilter:e}),this.setState({selectedImage:null})}})));if(0===E.length)return(0,o.createElement)(o.Fragment,null,S,(0,o.createElement)(l.MediaPlaceholder,{icon:(0,o.createElement)(l.BlockIcon,{icon:f.qv}),className:r,labels:{title:__("Tiled Gallery","jetpack"),name:__("images","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:m.RA,multiple:!0,notices:i,onError:a.createErrorNotice}));const j=(0,h.t)(m.P0,t.className);return(0,o.createElement)(o.Fragment,null,S,(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)(u.PanelBody,{title:__("Tiled Gallery settings","jetpack")},["columns","circle","square"].includes(j)&&E.length>1&&(0,o.createElement)(u.RangeControl,{label:__("Columns","jetpack"),value:k,onChange:this.setColumnsNumber,min:1,max:Math.min(m.hI,E.length)}),j!==m.xJ&&(0,o.createElement)(u.RangeControl,{label:__("Rounded corners","jetpack"),value:_,onChange:this.setRoundedCorners,min:0,max:m.Z5}),(0,o.createElement)(u.SelectControl,{label:__("Link To","jetpack"),value:w,onChange:this.setLinkTo,options:b}))),i,(0,o.createElement)(d.Z,{align:c,className:r,columns:k,imageFilter:y,images:E,layoutStyle:j,linkTo:w,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onResize:this.onResize,roundedCorners:_,selectedImage:n?e:null,setImageAttributes:this.setImageAttributes},C,n&&(0,o.createElement)("div",{className:"tiled-gallery__add-item"},(0,o.createElement)(u.FormFileUpload,{multiple:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},__("Upload an image","jetpack")))))}}t.ZP=(0,u.withNotices)(y)},92769:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__,_x=a._x,i=[{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)(o.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:_x("Gingham","image style","jetpack"),value:"gingham"}],s=__("Pick an image filter","jetpack");function l({value:e,onChange:t}){return(0,r.createElement)(o.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,r.createElement)(o.Toolbar,{controls:[{onClick:e,extraProps:{"aria-haspopup":"true","aria-expanded":t},title:s,tooltip:s,icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]}),renderContent:({onClose:n})=>(0,r.createElement)(o.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},i.map((({icon:a,title:i,value:s})=>{return(0,r.createElement)(o.MenuItem,{className:e===s?"is-active":void 0,icon:a,isSelected:e===s,key:s||"original",onClick:(l=s,()=>{t(e===l?void 0:l),n()}),role:"menuitemcheckbox"},i);var l})))})}},60929:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(33163),c=n(23983),u=n(87997),p=n(77996),d=n(65707),m=n(65722);const __=l.__;class h extends o.Component{constructor(...e){super(...e),a()(this,"img",(0,o.createRef)()),a()(this,"onImageClick",(()=>{this.props.isSelected||this.props.onSelect()})),a()(this,"onImageKeyDown",(e=>{this.img.current===document.activeElement&&this.props.isSelected&&[c.BACKSPACE,c.DELETE].includes(e.keyCode)&&this.props.onRemove()}))}componentDidUpdate(){const{alt:e,height:t,image:n,link:r,url:a,width:o}=this.props;if(n){const i={};!e&&n.alt_text&&(i.alt=n.alt_text),!t&&n.media_details&&n.media_details.height&&(i.height=+n.media_details.height),!r&&n.link&&(i.link=n.link),!a&&n.source_url&&(i.url=n.source_url),!o&&n.media_details&&n.media_details.width&&(i.width=+n.media_details.width),Object.keys(i).length&&this.props.setAttributes(i)}}render(){const{"aria-label":e,alt:t,columns:n,height:r,id:a,imageFilter:i,isFirstItem:l,isLastItem:c,isSelected:d,link:h,linkTo:f,onMoveBackward:g,onMoveForward:b,onRemove:v,origUrl:k,showMovers:y,srcSet:E,url:w,width:_}=this.props;let C;switch(f){case"media":C=w;break;case"attachment":C=h}const S=(0,p.isBlobURL)(k),j=(0,o.createElement)(o.Fragment,null,(0,o.createElement)("img",{alt:t,"aria-label":e,"data-height":r,"data-id":a,"data-link":h,"data-url":k,"data-width":_,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:S?void 0:w,srcSet:S?void 0:E,tabIndex:"0",style:S?{backgroundImage:`url(${k})`}:void 0}),S&&(0,o.createElement)(u.Spinner,null));return(0,o.createElement)("figure",{className:s()("tiled-gallery__item",{"is-selected":d,"is-transient":S,[`filter__${i}`]:!!i})},y&&(0,o.createElement)("div",{className:"tiled-gallery__item__move-menu"},(0,o.createElement)(u.Button,{icon:1===n?m.WO:m.KT,onClick:l?void 0:g,className:"tiled-gallery__item__move-backward",label:__("Move image backward","jetpack"),"aria-disabled":l,disabled:!d}),(0,o.createElement)(u.Button,{icon:1===n?m.xf:m.zz,onClick:c?void 0:b,className:"tiled-gallery__item__move-forward",label:__("Move image forward","jetpack"),"aria-disabled":c,disabled:!d})),(0,o.createElement)("div",{className:"tiled-gallery__item__inline-menu"},(0,o.createElement)(u.Button,{icon:m.xv,onClick:v,className:"tiled-gallery__item__remove",label:__("Remove image","jetpack"),disabled:!d})),C?(0,o.createElement)("a",null,j):j)}}t.Z=(0,d.withSelect)(((e,t)=>{const{getMedia:n}=e("core"),{id:r}=t;return{image:r?n(r):null}}))(h)},74741:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(63027),a=n(89105),o=n.n(a),i=n(77996);function s(e){const{alt:t,imageFilter:n,height:a,id:s,link:l,linkTo:c,origUrl:u,url:p,width:d}=e;if((0,i.isBlobURL)(u))return null;let m;switch(c){case"media":m=p;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":a,"data-id":s,"data-link":l,"data-url":u,"data-width":d,src:p,"data-amp-layout":"responsive"});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},65722:function(e,t,n){"use strict";n.d(t,{KT:function(){return o},zz:function(){return i},xf:function(){return s},WO:function(){return l},xv:function(){return c}});var r=n(63027),a=n(87997);const o=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),i=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})),l=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"})),c=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},59948:function(e,t,n){"use strict";n.d(t,{u2:function(){return j},qv:function(){return x},Xd:function(){return T}});var r=n(63027),a=n(33163),o=n(9314),i=n(33804),s=n(87997),l=n(89947),c=n(57620),u=n(38078),p=n(42975),d=n(32750),m=n(36012),h=n(90647),f=n(96606),g=n(85472),b=n(79009),v=n(10742),k=n(52642),y=n(41145);const __=a.__,_x=a._x,E={[u.EU]:_x("Tiled mosaic","Tiled gallery layout","jetpack"),[u.xJ]:_x("Circles","Tiled gallery layout","jetpack"),[u.sw]:_x("Tiled columns","Tiled gallery layout","jetpack"),[u.yw]:_x("Square tiles","Tiled gallery layout","jetpack")},w=u.P0.map((e=>({...e,label:E[e.name]})));function _(e){return(0,i.filter)(e,(({id:e,url:t})=>e&&t))}const C={align:{default:"center",type:"string"},className:{default:`is-style-${u.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},S={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:f,width:160,height:95},{alt:"",link:"",url:g,width:160,height:107},{alt:"",link:"",url:b,width:304,height:203},{alt:"",link:"",url:v,width:312,height:207},{alt:"",link:"",url:k,width:152,height:101},{alt:"",link:"",url:y,width:152,height:105}],linkTo:"none"},j="tiled-gallery",x=(0,r.createElement)(s.SVG,{viewBox:"0 0 24 24",width:24,height:24},(0,r.createElement)(s.Path,{fill:"currentColor",d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),T={attributes:C,category:(0,m.Z)("media","layout"),description:__("Display multiple images in an elegantly organized tiled layout.","jetpack")+((0,p.Wp)()?"":" "+__("Serves images using Jetpack's fast global network of servers.","jetpack")),icon:{src:x,foreground:(0,d.m)()},keywords:[_x("columns","block search term","jetpack"),_x("images","block search term","jetpack"),_x("photos","block search term","jetpack"),_x("pictures","block search term","jetpack"),_x("square","block search term","jetpack"),_x("circle","block search term","jetpack"),_x("mosaic","block search term","jetpack")],styles:w,supports:{align:["center","wide","full"],customClassName:!1,html:!1},title:__("Tiled Gallery","jetpack"),transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>_(e).length>0,transform:e=>{const t=_(e);return(0,o.createBlock)(`jetpack/${j}`,{images:t.map((({id:e,url:t,link:n,alt:r})=>({id:e,url:t,link:n,alt:r}))),ids:t.map((({id:e})=>e))})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:({images:e})=>{const t=_(e);return t.length>0?(0,o.createBlock)(`jetpack/${j}`,{images:t.map((({id:e,url:t,link:n,alt:r})=>({id:e,url:t,link:n,alt:r}))),ids:t.map((({id:e})=>e))}):(0,o.createBlock)(`jetpack/${j}`)}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t,columns:n,linkTo:r})=>(0,o.createBlock)("core/gallery",{images:e,ids:t,columns:n,imageCrop:!0,linkTo:r})},{type:"block",blocks:["core/image"],transform:({align:e,images:t})=>t.length>0?t.map((({id:t,url:n,alt:r})=>(0,o.createBlock)("core/image",{align:e,id:t,url:n,alt:r}))):(0,o.createBlock)("core/image")}]},edit:l.ZP,save:c.Z,deprecated:h.Z,example:{attributes:S}}},34924:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e,width:t}){const n=t?{flexBasis:`${t}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:n},e)}},91706:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(63027);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},98193:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(63027),a=n(33163),o=n(89105),i=n.n(o),s=n(60929),l=n(74741),c=n(10962),u=n(43745),p=n(64359),d=n(38078);const __=a.__;class m extends r.Component{renderImage(e,t){const{columns:n,imageFilter:o,images:i,isSave:c,linkTo:u,layoutStyle:d,onMoveBackward:m,onMoveForward:h,onRemoveImage:f,onSelectImage:g,selectedImage:b,setImageAttributes:v}=this.props,k=(0,a.sprintf)(__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),y=c?l.Z:s.Z,{src:E,srcSet:w}=(0,p.z)(e,{layoutStyle:d});return(0,r.createElement)(y,{alt:e.alt,"aria-label":k,columns:n,height:e.height,id:e.id,imageFilter:o,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:b===t,key:t,link:e.link,linkTo:u,onMoveBackward:c?void 0:m(t),onMoveForward:c?void 0:h(t),onRemove:c?void 0:f(t),onSelect:c?void 0:g(t),origUrl:e.url,setAttributes:c?void 0:v(t),showMovers:i.length>1,srcSet:w,url:E,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:s,roundedCorners:l,onResize:m,isSave:h,columnWidths:f}=this.props,g=(0,p.v)(s)?u.Z:c.Z,b=this.props.images.map(this.renderImage,this),v=s!==d.xJ?Math.min(l,d.Z5):0;return(0,r.createElement)("div",{className:i()(n,{[`has-rounded-corners-${v}`]:v>0})},(0,r.createElement)(g,{align:e,columns:a,columnWidths:h?f:void 0,images:o,layoutStyle:s,renderedImages:b,onResize:h?void 0:m}),t)}}},10962:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(43197),a=n.n(r),o=n(63027),i=n(54166),s=n(34924),l=n(91706),c=n(15055),u=n(88995),p=n(39922);class d extends o.Component{constructor(...e){super(...e),a()(this,"gallery",(0,o.createRef)()),a()(this,"pendingRaf",null),a()(this,"ro",null),a()(this,"handleGalleryResize",(e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t,r=[];(0,u.W)(n).forEach((t=>{r.push((0,u.i)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(r)}}))}))}componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new i.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a,columnWidths:i}=this.props,u=(0,p.h9)(n),d="columns"===r?(0,p.sv)(u,t):(0,p.T9)(u,{isWide:["full","wide"].includes(e)});let m=0;return(0,o.createElement)(l.Z,{galleryRef:this.gallery},d.map(((e,t)=>(0,o.createElement)(c.Z,{key:t},e.map(((e,n)=>{const r=a.slice(m,m+e);return m+=e,(0,o.createElement)(s.Z,{key:n,width:i?i[t][n]:void 0},r)}))))))}}},39922:function(e,t,n){"use strict";n.d(t,{h9:function(){return a},sv:function(){return i},T9:function(){return S}});var r=n(33804);function a(e){return(0,r.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let s=0;s<t-1;s++){const e=(0,r.takeWhile)(o,(e=>{const t=i<=(s+1)*n;return t&&(i+=e),t})).length;a.push(e),o=(0,r.drop)(o,e)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([T,T,N,T,T]),c=x([T,T,T,N,T,T,T]),u=j([3,1,3],5),p=x([N,T,T,N]),d=j([1,2,1],5),m=x([N,T,T,T]),h=j([1,3],3),f=x([T,T,T,N]),g=j([3,1],3),b=x([P(1.6),(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(A(.9),P(2)),(0,r.overEvery)(A(.9),P(2)),P(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&p(a)&&d(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function T(e){return e>=1&&e<2}function N(e){return e<1}function A(e){return t=>t>=e}function P(e){return t=>t<e}},88995:function(e,t,n){"use strict";n.d(t,{i:function(){return o},W:function(){return i}});var r=n(38078);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function o(e,t){return function(e,[t,n],o){const i=1/t*(o-r.q3*(e.childElementCount-1)-n);return function(e,{rawHeight:t,rowWidth:n}){const o=s(e),i=o.map((e=>(t-r.q3*(e.childElementCount-1))*c(e)[0])),p=a(i,n);o.forEach(((e,n)=>{const o=i[n],s=p[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const o=a(l(e).map((e=>r/u(e))),t);Array.from(e.children).forEach(((e,t)=>{const r=o[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)}))}(e,{colHeight:t-r.q3*(e.childElementCount-1),width:s,rawWidth:o})}));return p.map((e=>parseFloat(e/n*100).toFixed(5)))}(e,{rawHeight:i,rowWidth:o-r.q3*(e.childElementCount-1)})}(e,function(e){return s(e).map(c).reduce((([e,t],[n,r])=>[e+n,t+r]),[0,0])}(e),t)}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},15055:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(89105),o=n.n(a);function i({children:e,className:t}){return(0,r.createElement)("div",{className:o()("tiled-gallery__row",t)},e)}},43745:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(33804),o=n(15055),i=n(34924),s=n(91706),l=n(38078);function c({columns:e,renderedImages:t}){const n=Math.min(l.hI,e),c=t.length%n;return(0,r.createElement)(s.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(o.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},57620:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(98193),o=n(89947),i=n(8185),s=n(38078);function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:c,columns:u=(0,o.F)(e),linkTo:p,roundedCorners:d,columnWidths:m}=e;return(0,r.createElement)(a.Z,{align:l,className:c,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,i.t)(s.P0,c),linkTo:p,roundedCorners:d,columnWidths:m})}},64359:function(e,t,n){"use strict";n.d(t,{v:function(){return u},z:function(){return p}});var r=n(40278),a=n(82827),o=n(77996),i=n(33804),s=n(38078),l=n(42975),c=n(36e3);function u(e){return["circle","square"].includes(e)}function p(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,c.Z)())return{src:e.url};if((0,o.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,l.Ug)()&&(0,l.M6)())return{src:e.url};const n=e.url.split("?",1)[0],{height:p,width:m}=e,{layoutStyle:h}=t,f=function(e){const{host:t}=(0,a.Qc)(e);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?d:r.Z;let g;if(u(h)&&m&&p){const e=Math.min(s.GP,m,p);g=f(n,{resize:`${e},${e}`})}else g=f(n);let b;if(u(h)){const e=Math.min(600,m,p),t=Math.min(s.GP,m,p);b=(0,i.range)(e,t,300).map((e=>{const t=f(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,m),t=Math.min(s.GP,m);b=(0,i.range)(e,t,300).map((e=>{const t=f(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:g},b&&{srcSet:b})}function d(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},{auth:r,hash:o,port:i,query:s,search:l,...c}=(0,a.Qc)(e);return c.query=Object.keys(t).reduce(((e,r)=>Object.assign(e,{[n.hasOwnProperty(r)?n[r]:r]:t[r]})),{}),(0,a.WU)(c)}},47718:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});const r=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}]},23140:function(e,t,n){"use strict";var r=n(99832);t.Z={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:r.Z,isDeprecation:!0}},99832:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63027),a=n(46399);function o({attributes:e}){const{caption:t,guid:n}=e;if(!n)return null;const o=`https://videopress.com/v/${n}`;return(0,r.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${o}\n`),!a.RichText.isEmpty(t)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:t}))}},39678:function(e,t,n){"use strict";var r=n(99339),a=n(43179);t.Z={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"},videoPressClassNames:{type:"string"},align:{type:"wide"}},support:{reusable:!1},isEligible:({videoPressClassNames:e,guid:t})=>t&&void 0===e,migrate:e=>{const{className:t,videoPressClassNames:n}=e;return{...e,...(0,a.a)(t,n)}},save:r.Z,isDeprecation:!0}},99339:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(46399),o=n(4748);function i(e){const{attributes:{autoplay:t,caption:n,controls:i,guid:s,loop:l,muted:c,poster:u,preload:p,videoPressClassNames:d}={}}=e;if(!s)return null;const m=(0,o.p)(s,{autoplay:t,controls:i,loop:l,muted:c,poster:u,preload:p});return(0,r.createElement)("figure",{className:d},(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${m}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},4748:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(791);const a=(e,{autoplay:t,controls:n,loop:a,muted:o,poster:i,preload:s})=>{if(!e)return null;const l={...t&&{autoPlay:!0},...!n&&{controls:!1},...a&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...i&&{posterUrl:i},..."none"!==s&&{preloadContent:s}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,l)}},43179:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(81326),a=n.n(r),o=n(96586),i=n.n(o);const s=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],l=(e,t)=>{const n=s.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1}),r=a()(e,{...n,"wp-block-embed":!1,"is-type-video":!1,"is-provider-videopress":!1}),o=new(i())(r);let l=a()(e,t);return o.forEach((e=>{l=l.replace(e,"")})),{className:r,videoPressClassNames:l.trim()}}},19609:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(43197),i=n.n(o),s=n(63027),l=n(37606),c=n.n(l),u=n(77996),p=n(87997),d=n(51417),m=n(65707),h=n(46399),f=n(33163),g=n(80808),b=n(46166),v=n(89105),k=n.n(v),y=n(33804),E=n(26581),w=n(43452),_=n(13948),C=n(16763);const __=f.__,_x=f._x,S=["image"],j=e=>{const{html:t,scripts:n,interactive:r,caption:a,isSelected:o,hideOverlay:i,attributes:l,setAttributes:c}=e,{align:u,className:d,videoPressClassNames:m}=l,f=(0,h.useBlockProps)({className:k()("wp-block-video",d,m,{[`align${u}`]:u})});return(0,s.createElement)("figure",f,(0,s.createElement)("div",{className:"wp-block-embed__wrapper"},(0,s.createElement)(p.SandBox,{html:t,scripts:n,type:m})),!r&&(0,s.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:i}),(!h.RichText.isEmpty(a)||o)&&(0,s.createElement)(h.RichText,{tagName:"figcaption",placeholder:__("Write caption…","jetpack"),value:a,onChange:e=>c({caption:e}),inlineToolbar:!0}))};t.Z=(0,d.createHigherOrderComponent)((0,d.compose)([(0,m.withSelect)(((e,t)=>{const{autoplay:n,controls:r,guid:a,loop:o,muted:i,playsinline:s,poster:l,preload:c,seekbarColor:p,seekbarLoadingColor:d,seekbarPlayedColor:m,src:h}=t.attributes,{getEmbedPreview:f,isRequestingEmbedPreview:g}=e("core"),b=(0,w.p)(a,{autoplay:n,controls:r,loop:o,muted:i,playsinline:s,poster:l,preload:c,seekbarColor:p,seekbarLoadingColor:d,seekbarPlayedColor:m}),v=!!b&&f(b);return{isFetchingPreview:!!b&&g(b),isUploading:(0,u.isBlobURL)(h),preview:v,url:b}})),(0,m.withDispatch)((e=>({invalidateCachedEmbedPreview:t=>{e("core/data").invalidateResolution("core","getEmbedPreview",[t])}}))),d.withInstanceId,e=>class extends s.Component{constructor(){super(...arguments),i()(this,"hideOverlay",(()=>{this.setState({interactive:!0})})),i()(this,"setRating",(async()=>{const e=(0,y.get)(this.props,"attributes.id"),t=await this.requestMedia(e),n=(0,y.get)(t,"jetpack_videopress.rating");n&&this.setState({rating:n})})),i()(this,"fallbackToCore",(()=>{this.props.setAttributes({guid:void 0}),this.setState({fallback:!0})})),i()(this,"setGuid",(async()=>{const{attributes:e,setAttributes:t}=this.props,{id:n}=e;if(n)try{const e=await this.requestMedia(n);if(null===e)return;const r=(0,y.get)(e,"jetpack_videopress.guid");r?t({guid:r}):this.fallbackToCore()}catch(r){this.setState({isFetchingMedia:!1}),this.fallbackToCore()}else t({guid:void 0})})),i()(this,"requestMedia",(async e=>{if(!e)return null;if(null!==this.state.media&&this.state.lastRequestedMediaId===e)return this.state.media;this.setState({isFetchingMedia:!0});const t=await c()({path:`/wp/v2/media/${e}`}).catch((()=>(this.setState({fallback:!0}),null))).finally((()=>{this.setState({isFetchingMedia:!1})})),{id:n}=this.props.attributes;return e!==n?null:(this.setState({media:t,lastRequestedMediaId:e}),t)})),i()(this,"switchToEditing",(()=>{this.props.setAttributes({id:void 0,guid:void 0,src:void 0})})),i()(this,"onSelectPoster",(e=>{const{setAttributes:t}=this.props;t({poster:e.url})})),i()(this,"onRemovePoster",(()=>{const{setAttributes:e}=this.props;e({poster:""}),this.posterImageButton.current.focus()})),i()(this,"toggleAttribute",(e=>t=>{this.props.setAttributes({[e]:t})})),i()(this,"getAutoplayHelp",(e=>e?__("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null)),i()(this,"onChangeRating",(e=>{const{id:t}=this.props.attributes,n=this.state.rating;if(!t)return;if(-1===(0,y.indexOf)(["G","PG-13","R-17","X-18"],e))return;this.setState({isUpdatingRating:!0,rating:e});const r=()=>this.setState({rating:n});c()({path:"/wpcom/v2/videopress/meta",method:"POST",data:{id:t,rating:e}}).then((e=>{status in e&&200!==e.status&&r()})).catch((()=>r())).finally((()=>this.setState({isUpdatingRating:!1})))})),this.state={media:null,isFetchingMedia:!1,fallback:!1,interactive:!1,rating:null,lastRequestedMediaId:null,isUpdatingRating:!1},this.posterImageButton=(0,s.createRef)()}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}async componentDidMount(){const{guid:e}=this.props.attributes;e||await this.setGuid(),this.setRating()}async componentDidUpdate(e){const{attributes:t,invalidateCachedEmbedPreview:n,preview:r,setAttributes:a,url:o}=this.props;if(t.id!==e.attributes.id&&(await this.setGuid(),this.setRating()),o&&o!==e.url&&n(o),r){a({videoPressClassNames:(0,_.f)(r.html,k()("wp-block-embed","is-type-video","is-provider-videopress"),!1)})}}render(){const{attributes:t,instanceId:n,isFetchingPreview:r,isUploading:o,preview:i,setAttributes:l}=this.props,{fallback:c,isFetchingMedia:u,isUpdatingRating:d,interactive:m,rating:v}=this.state,{autoplay:k,caption:y,controls:w,loop:_,muted:x,playsinline:T,poster:N,preload:A}=t,P=`video-block__poster-image-description-${n}`,I=(0,s.createElement)(s.Fragment,null,(0,s.createElement)(h.BlockControls,null,(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(p.ToolbarButton,{className:"components-icon-button components-toolbar__control",label:__("Edit video","jetpack"),onClick:this.switchToEditing,icon:(0,s.createElement)(g.Z,{icon:b.Z})}))),(0,s.createElement)(h.InspectorControls,null,(0,s.createElement)(p.PanelBody,{title:__("Video Settings","jetpack")},(0,s.createElement)(p.ToggleControl,{label:__("Autoplay","jetpack"),onChange:this.toggleAttribute("autoplay"),checked:k,help:this.getAutoplayHelp}),(0,s.createElement)(p.ToggleControl,{label:__("Loop","jetpack"),onChange:this.toggleAttribute("loop"),checked:_}),(0,s.createElement)(p.ToggleControl,{label:__("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:x}),(0,s.createElement)(p.ToggleControl,{label:__("Playback Controls","jetpack"),onChange:this.toggleAttribute("controls"),checked:w}),(0,s.createElement)(p.ToggleControl,{label:__("Play Inline","jetpack"),onChange:this.toggleAttribute("playsinline"),checked:T}),(0,s.createElement)(p.SelectControl,{label:__("Preload","jetpack"),value:A,onChange:e=>l({preload:e}),options:[{value:"auto",label:_x("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:_x("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:_x("None","VideoPress preload setting","jetpack")}]}),(0,s.createElement)(h.MediaUploadCheck,null,(0,s.createElement)(p.BaseControl,{className:"editor-video-poster-control",label:__("Poster Image","jetpack")},(0,s.createElement)(h.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:S,render:({open:e})=>(0,s.createElement)(p.Button,{isDefault:!0,onClick:e,ref:this.posterImageButton,"aria-describedby":P},__(N?"Replace image":"Select Poster Image","jetpack"))}),(0,s.createElement)("p",{id:P,hidden:!0},N?(0,f.sprintf)(__("The current poster image url is %s","jetpack"),N):__("There is no poster image currently selected","jetpack")),!!N&&(0,s.createElement)(p.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},__("Remove Poster Image","jetpack"))))),(0,s.createElement)(C.Z,{attributes:t,setAttributes:l}),(0,s.createElement)(p.PanelBody,{title:__("Video File Settings","jetpack")},(0,s.createElement)(p.SelectControl,{label:_x("Rating","The age rating for this video.","jetpack"),value:v,disabled:u||d,options:[{label:_x("G",'Video rating for "General Audiences".',"jetpack"),value:"G"},{label:_x("PG-13",'Video rating for "Parental Guidance", unsuitable for children under 13.',"jetpack"),value:"PG-13"},{label:_x("R",'Video rating for "Restricted", not recommended for children under 17.',"jetpack"),value:"R-17"},{label:_x("X",'Video rating for "Explicit" content.',"jetpack"),value:"X-18"}],onChange:this.onChangeRating}))));if(o)return(0,s.createElement)(s.Fragment,null,I,(0,s.createElement)(E.Z,{text:__("Uploading…","jetpack")}));if(u||r)return(0,s.createElement)(s.Fragment,null,I,(0,s.createElement)(E.Z,{text:__("Generating preview…","jetpack")}));if(c||!i)return(0,s.createElement)(e,this.props);const{html:M,scripts:B}=i;return(0,s.createElement)(s.Fragment,null,I,(0,s.createElement)(j,a()({},this.props,{hideOverlay:this.hideOverlay,html:M,scripts:B,interactive:m,caption:y})))}}]),"withVideoPressEdit")},26581:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=({text:e})=>(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("p",null,e))},48529:function(e,t,n){"use strict";var r=n(63027),a=n(51417),o=n(46399),i=n(89105),s=n.n(i),l=n(43452);t.Z=(0,a.createHigherOrderComponent)((e=>t=>{const{attributes:{autoplay:n,caption:a,controls:i,guid:c,loop:u,muted:p,playsinline:d,poster:m,preload:h,videoPressClassNames:f,className:g,align:b,seekbarColor:v,seekbarPlayedColor:k,seekbarLoadingColor:y}={}}=t,E=o.useBlockProps.save({className:s()("wp-block-video",g,f,{[`align${b}`]:b})});if(!c)return e(t);const w=(0,l.p)(c,{autoplay:n,controls:i,loop:u,muted:p,playsinline:d,poster:m,preload:h,seekbarColor:v,seekbarPlayedColor:k,seekbarLoadingColor:y});return(0,r.createElement)("figure",E,(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${w}\n`),!o.RichText.isEmpty(a)&&(0,r.createElement)(o.RichText.Content,{tagName:"figcaption",value:a}))}),"withVideoPressSave")},16763:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=(n(63804),n(87997)),s=n(46399),l=n(33163);const __=l.__;class c extends o.Component{constructor(){super(...arguments),a()(this,"handleChangeSeekbarColor",(e=>{this.setState({seekbarColor:e})})),a()(this,"handleChangeSeekbarLoadingColor",(e=>{this.setState({seekbarLoadingColor:e})})),a()(this,"handleChangeSeekbarPlayedColor",(e=>{this.setState({seekbarPlayedColor:e})})),a()(this,"saveColors",(()=>{const{seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n}=this.state,{setAttributes:r}=this.props;r({seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n})}));const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.props.attributes;this.state={seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}}render(){const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.state;return(0,o.createElement)(s.PanelColorSettings,{title:__("Progress Colors","jetpack"),initialOpen:!1,colorSettings:[{value:e,onChange:this.handleChangeSeekbarColor,label:__("Main","jetpack")},{value:n,onChange:this.handleChangeSeekbarLoadingColor,label:__("Loaded","jetpack")},{value:t,onChange:this.handleChangeSeekbarPlayedColor,label:__("Progress","jetpack")}]},(0,o.createElement)(i.Button,{isDefault:!0,onClick:this.saveColors},__("Save colors","jetpack")))}}t.Z=c},43452:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(791);const a=(e,{autoplay:t,controls:n,loop:a,muted:o,playsinline:i,poster:s,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:p})=>{if(!e)return null;const d={resizeToParent:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...a&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...i&&{playsinline:!0},...s&&{posterUrl:s},..."none"!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==p&&{sblc:p}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,d)}},13948:function(e,t,n){"use strict";n.d(t,{f:function(){return s}});var r=n(47718),a=n(89105),o=n.n(a);const i=e=>{const t=r.s.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return o()(e,t)};function s(e,t="",n=!0){if(!n)return i(t);const a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;const s=a.body.querySelector("iframe");if(s&&s.height&&s.width){const e=(s.width/s.height).toFixed(2);for(let n=0;n<r.s.length;n++){const a=r.s[n];if(e>=a.ratio)return o()(i(t),a.className,"wp-has-aspect-ratio")}}return t}},13050:function(e,t,n){"use strict";n.d(t,{U:function(){return i},m:function(){return s}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__,i="mrec",s=[{height:250,icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})),name:__("Rectangle 300x250","jetpack"),tag:i,width:300,editorPadding:30},{height:90,icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),name:__("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})),name:__("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),(0,r.createElement)(o.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})),name:__("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}]},27025:function(e,t,n){"use strict";var r=n(63027),a=n(46399),o=n(87997),i=n(33163),s=n(11420);const __=i.__,l=({value:e,onChange:t})=>(0,r.createElement)(o.PanelBody,{title:__("Visibility","jetpack")},(0,r.createElement)(o.ToggleControl,{className:"jetpack-wordads__mobile-visibility",checked:!!e,label:__("Hide on mobile","jetpack"),help:__("Hides this block for site visitors on mobile devices.","jetpack"),onChange:t}));t.Z=({attributes:{format:e,hideMobile:t},setAttributes:n})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(s.Z,{value:e,onChange:e=>n({format:e})})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(l,{value:t,onChange:e=>n({hideMobile:!!e})})))},48338:function(e,t,n){"use strict";var r=n(63027),a=n(27025),o=n(13050),i=n(72473),s=n(52203),l=n(38511),c=n(80405);t.Z=({attributes:e,setAttributes:t})=>{const{format:n}=e,u=o.m.find((({tag:e})=>e===n));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Z,{attributes:e,setAttributes:t}),(0,r.createElement)("div",{className:`wp-block-jetpack-wordads jetpack-wordads-${n}`},(0,r.createElement)("div",{className:"jetpack-wordads__ad",style:{width:u.width,height:u.height,backgroundImage:`url( ${(e=>{switch(e){case"leaderboard":return s;case"mobile_leaderboard":return l;case"wideskyscraper":return c;default:return i}})(n)} )`,backgroundSize:"cover"}})))}},11420:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(33163),o=n(87997),i=n(13050);const s=(0,a.__)("Pick an ad format","jetpack");function l({value:e,onChange:t}){return(0,r.createElement)(o.Dropdown,{position:"bottom right",renderToggle:({onToggle:e,isOpen:t})=>(0,r.createElement)(o.ToolbarGroup,{controls:[{icon:(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})),title:s,onClick:e,extraProps:{"aria-expanded":t},className:"wp-block-jetpack-wordads__format-picker-icon"}]}),renderContent:({onClose:n})=>(0,r.createElement)(o.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker"},i.m.map((({tag:a,name:i,icon:s})=>(0,r.createElement)(o.MenuItem,{className:a===e?"is-active":void 0,icon:s,isSelected:a===e,key:a,onClick:()=>{t(a),n()},role:"menuitemcheckbox"},i))))})}},99885:function(e,t,n){"use strict";n.d(t,{u2:function(){return c},Xd:function(){return d}});var r=n(63027),a=n(33163),o=n(87997),i=n(48338),s=n(13050),l=n(32750);const __=a.__,_x=a._x,c="wordads",u=__("Ad","jetpack"),p=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{fill:"currentColor",d:"M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z"})),d={title:u,description:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Earn income by adding high quality ads to your post","jetpack")),(0,r.createElement)(o.ExternalLink,{href:"https://wordads.co/"},__("Learn all about WordAds","jetpack"))),icon:{src:p,foreground:(0,l.m)()},attributes:{align:{type:"string",default:"center"},format:{type:"string",default:s.U},hideMobile:{type:"boolean",default:!1}},example:{attributes:{}},category:"earn",keywords:[_x("ads","block search term","jetpack"),"WordAds",_x("advertisement","block search term","jetpack")],supports:{align:["left","center","right"],alignWide:!1,className:!1,customClassName:!1,html:!1,reusable:!1},edit:i.Z,save:()=>null}},72250:function(e,t,n){"use strict";var r=n(65799),a=n(33163),o=n(32750);const __=a.__,_x=a._x,i={name:"facebook",title:"Facebook",icon:{src:"facebook",foreground:(0,o.m)()},keywords:[_x("social","block search term","jetpack")],description:__("Embed a Facebook post.","jetpack"),patterns:[/^https?:\/\/www\.facebook.com\/.+/i],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}};(0,r.addFilter)("blocks.registerBlockType","reactivateFacebookEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations)return e;const n=e.variations.filter((e=>e.name!==i.name));return e.variations=[...n,i],e}))},82749:function(e,t,n){"use strict";n(72250),n(59152),n(19051),n(39705)},59152:function(e,t,n){"use strict";var r=n(65799),a=n(33163),o=n(32750),i=n(95767);const __=a.__,_x=a._x,s={name:"instagram",title:"Instagram",icon:{src:"instagram",foreground:(0,o.m)()},keywords:[_x("image","block search term","jetpack"),_x("social","block search term","jetpack")],description:__("Embed an Instagram post.","jetpack"),patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i],attributes:{providerNameSlug:"instagram",responsive:!0}};(0,r.addFilter)("blocks.registerBlockType","reactivateInstagramEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations||!(0,i.Z)())return e;const n=e.variations.filter((e=>e.name!==s.name));return e.variations=[...n,s],e}))},19051:function(e,t,n){"use strict";var r=n(9314),a=n(33163),o=n(45395);const __=a.__,i={name:"loom",title:"Loom",icon:o.zf,keywords:[__("video","jetpack")],description:__("Embed a Loom video.","jetpack"),patterns:[/^https?:\/\/(www\.)?loom\.com\/share\/.+/i],attributes:{providerNameSlug:"loom",responsive:!0}};(0,r.registerBlockVariation)("core/embed",i)},39705:function(e,t,n){"use strict";var r=n(9314),a=n(33163),o=n(45395);const __=a.__,i={name:"smartframe",title:"SmartFrame",icon:o.Ae,keywords:[__("smartframe","jetpack")],description:__("Embed a SmartFrame Image.","jetpack"),patterns:[/^https?:\/\/(.*?).smartframe.(io|net)\/.*/i],attributes:{providerNameSlug:"smartframe",responsive:!0}};(0,r.registerBlockVariation)("core/embed",i)},52524:function(e,t,n){"use strict";n.d(t,{x:function(){return a},L:function(){return o}});var r=n(63027);const a=(0,r.createContext)(),o=({onBannerVisibilityChange:e,onChildBannerVisibilityChange:t,hasParentBanner:n,children:o})=>(0,r.createElement)(a.Provider,{value:{onBannerVisibilityChange:e,onChildBannerVisibilityChange:t,hasParentBanner:n},children:o})},29158:function(e,t,n){"use strict";var r=n(33804),a=n(47531),o=n.n(a),i=n(65799),s=n(33163),l=n(28110),c=n(64925),u=n(30503),p=n(11846),d=n(43987);const __=s.__,m=[];(0,i.addFilter)("blocks.registerBlockType","jetpack/paid-block",((e,t)=>((0,c.X1)(t)&&(m.includes(t)||m.push(t),e.keywords=(0,r.uniq)([...e.keywords,"premium",__("premium","jetpack")]),(0,c.HD)(t)||(e.icon=(0,u.Z)(e.icon)),e.attributes.shouldDisplayFrontendBanner||(e.attributes.shouldDisplayFrontendBanner={type:"boolean",default:!0})),e))),(0,i.addFilter)("editor.BlockListBlock","jetpack/paid-block-with-warning",l.Z),(0,i.addFilter)("editor.MediaPlaceholder","jetpack/paid-block-media-placeholder",p.Z),(0,i.addFilter)("editor.MediaReplaceFlow","jetpack/paid-block-media-placeholder",d.Z),o()((function(){(0,c.FK)()&&document.body.classList.add("jetpack-enable-upgrade-nudge")}))},11846:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(46399),s=n(51417),l=n(29543),c=n(64925),u=n(52524);t.Z=(0,s.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,i.useBlockEditContext)(),r=(0,c.m3)(n);if(null==r||!r.mediaPlaceholder||!(0,c.X1)(n))return(0,o.createElement)(e,t);const{fileType:s}=r,{onError:p}=t,{onBannerVisibilityChange:d}=(0,o.useContext)(u.x),m=(0,o.useCallback)((e=>d((null==e?void 0:e.length)&&(0,l.Qu)(e[0],s))),[s,d]),h=(0,o.useCallback)((e=>{var t,n;const r=null==e||null===(t=e[0])||void 0===t||null===(n=t.props)||void 0===n?void 0:n.children;return(0,l.Qu)(r,s)?m([r]):p(e)}),[m,s,p]);return(0,o.createElement)("div",{className:"paid-block-media-placeholder"},(0,o.createElement)(e,a()({},t,{onFilesPreUpload:m,onError:h})))}),"withMediaPlaceholderUpgradable")},43987:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(46399),s=n(51417),l=n(29543),c=n(64925),u=n(52524);t.Z=(0,s.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,i.useBlockEditContext)(),r=(0,c.m3)(n),s=(0,o.useRef)();if(null==r||!r.mediaReplaceFlow||!(0,c.X1)(n))return(0,o.createElement)(e,t);const{fileType:p}=r,{onBannerVisibilityChange:d}=(0,o.useContext)(u.x);return(0,o.createElement)(e,a()({},t,{onFilesUpload:e=>{s.current=null!=e&&e.length?e[0]:null,d((null==e?void 0:e.length)&&(0,l.Qu)(e[0],p))},createNotice:(e,n,r)=>{if((0,l.Qu)(s.current,p))return s.current=null,null;t.createNotice(e,n,r)}}))}),"withMediaReplaceFlowUpgradable")},77005:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=({cx:e=23,cy:t=3,r:n=4,fill:o="#e34c84",stroke:i="#ffffff",strokeWidth:s="2"})=>(0,r.createElement)(a.Circle,{className:"jetpack-paid-block-symbol",cx:e,cy:t,r:n,fill:o,stroke:i,strokeWidth:s})},30503:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(63027),a=n(77005),o=n(64925);const i=e=>{var t,n,o;return null!==(t=e)&&void 0!==t&&t.src?e={...e,src:(0,r.cloneElement)(e.src,{children:[e.src.props.children,(0,r.createElement)(a.Z,{key:"paid-symbol"})]})}:null!==(n=e)&&void 0!==n&&null!==(o=n.props)&&void 0!==o&&o.children&&(e=(0,r.cloneElement)(e,{children:[e.props.children,(0,r.createElement)(a.Z,{key:"paid-symbol"})]})),e};function s(e,t){return(0,o.X1)(e)?i(t):t}t.Z=i},65120:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(19637),i=n(44822);const __=a.__,s=__("Premium Block","jetpack"),l=__("Upgrade your plan to use this premium block","jetpack"),c=__("Upgrade","jetpack");t.ZP=({onRedirect:e,align:t,className:n,title:a=s,description:u=l,buttonText:p=c,visible:d=!0,requiredPlan:m,context:h})=>{const[f,g,b]=(0,o.Z)(m,e);return(0,r.createElement)(i.p,{align:t,buttonText:p,checkoutUrl:f,className:n,context:h,description:u,goToCheckoutPage:g,isRedirecting:b,title:a,visible:d})}},2721:function(e,t,n){"use strict";n.d(t,{v:function(){return a},W:function(){return o}});var r=n(28281);const a=({plan:e,blockName:t,context:n})=>{r.Z.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:e,block:t,context:n})},o=({plan:e,blockName:t,context:n})=>{r.Z.tracks.recordEvent("jetpack_editor_block_upgrade_banner_impression",{plan:e,block:t,context:n})}},28110:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(51417),c=n(65707),u=n(64925),p=n(65120),d=n(52524),m=n(2721);t.Z=(0,l.createHigherOrderComponent)((e=>t=>{var n;const{name:r,className:i,clientId:l,isSelected:h,attributes:f,setAttributes:g}=t||{},{onChildBannerVisibilityChange:b,hasParentBanner:v}=(0,o.useContext)(d.x)||{},k=(0,u.Rl)(r);if(!k)return(0,o.createElement)(e,t);const y=(0,u.HD)(r),E=(0,u.m3)(r),[w,_]=(0,o.useState)(!y),[C,S]=(0,o.useState)(!1),[j,x]=(0,o.useState)(!1),T="editor-canvas",N=(0,c.useSelect)((e=>e("core/block-editor").hasSelectedInnerBlock(l,!0)),[]),A=(h||N)&&w&&!j,P=(0,o.useMemo)((()=>({plan:k,blockName:r,context:T})),[k,r,T]);(0,o.useEffect)((()=>{A&&S(!0)}),[A,S]),(0,o.useEffect)((()=>{!C&&A&&(0,m.W)(P)}),[C,P,A]),(0,o.useEffect)((()=>_(!y)),[f,_,y]),(0,o.useEffect)((()=>{g({shouldDisplayFrontendBanner:!v})}),[g,v]),(0,o.useEffect)((()=>{b&&b(A||j)}),[A,j,b]);const I=s()(i,{"is-upgradable":A});return(0,o.createElement)(d.L,{onBannerVisibilityChange:_,onChildBannerVisibilityChange:x,hasParentBanner:!0},(0,o.createElement)(p.ZP,{className:`is-${t.name.replace(/\//,"-")}-paid-block`,title:null,align:null==t||null===(n=t.attributes)||void 0===n?void 0:n.align,visible:A,description:null==E?void 0:E.description,requiredPlan:k,context:T,onRedirect:()=>(0,m.v)(P)}),(0,o.createElement)(e,a()({},t,{className:I})))}),"withUpgradeBanner")},77122:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(87997),l=n(51417),c=n(65707);const __=i.__;class u extends o.Component{constructor(...e){super(...e),a()(this,"refreshConnectionClick",(e=>{const{href:t,title:n}=e.target;e.preventDefault();const r=window.open(t,n,""),a=window.setInterval((()=>{!1!==r.closed&&(window.clearInterval(a),this.props.refreshConnections())}),500)}))}componentDidMount(){this.props.refreshConnections()}renderRefreshableConnections(){const{failedConnections:e}=this.props,t=e.filter((e=>e.can_refresh));return t.length?(0,o.createElement)(s.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},(0,o.createElement)("p",null,__("Before you hit Publish, please refresh the following connection(s) to make sure we can Publicize your post:","jetpack")),t.map((e=>(0,o.createElement)(s.Button,{href:e.refresh_url,isSmall:!0,key:e.id,onClick:this.refreshConnectionClick,title:e.refresh_text},e.refresh_text)))):null}renderNonRefreshableConnections(){const{failedConnections:e}=this.props,t=e.filter((e=>!e.can_refresh));return t.length?t.map((e=>(0,o.createElement)(s.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},(0,o.createElement)("p",null,e.test_message)))):null}render(){return(0,o.createElement)(o.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}t.Z=(0,l.compose)([(0,c.withSelect)((e=>({failedConnections:e("jetpack/publicize").getFailedConnections()}))),(0,c.withDispatch)((e=>({refreshConnections:e("jetpack/publicize").refreshConnectionTestResults})))])(u)},19024:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(87997),l=n(65707),c=n(33804),u=n(92754),p=n(45395);const __=i.__;class d extends o.Component{constructor(...e){super(...e),a()(this,"maybeDisplayLinkedInNotice",(()=>this.connectionNeedsReauth()&&(0,o.createElement)(s.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},(0,o.createElement)("p",null,__("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),(0,o.createElement)(s.ExternalLink,{href:`https://wordpress.com/marketing/connections/${(0,u.Z)()}`},__("Go to Sharing settings","jetpack"))))),a()(this,"connectionNeedsReauth",(()=>(0,c.includes)(this.props.mustReauthConnections,this.props.name))),a()(this,"onConnectionChange",(()=>{const{id:e}=this.props;this.props.toggleConnection(e)}))}connectionIsFailing(){const{failedConnections:e,name:t}=this.props;return e.some((e=>e.service_name===t))}render(){const{disabled:e,enabled:t,id:n,label:r,name:a}=this.props,i="connection-"+a+"-"+n,l=a.replace("_","-");let c=(0,o.createElement)(s.FormToggle,{id:i,className:"jetpack-publicize-connection-toggle",checked:t,onChange:this.onConnectionChange});return(e||this.connectionIsFailing()||this.connectionNeedsReauth())&&(c=(0,o.createElement)(s.Disabled,null,c)),(0,o.createElement)("li",null,this.maybeDisplayLinkedInNotice(),(0,o.createElement)("div",{className:"publicize-jetpack-connection-container"},(0,o.createElement)("label",{htmlFor:i,className:"jetpack-publicize-connection-label"},(0,o.createElement)(p.av,{serviceName:l,className:"jetpack-publicize-gutenberg-social-icon"}),(0,o.createElement)("span",{className:"jetpack-publicize-connection-label-copy"},r)),c))}}t.Z=(0,l.withSelect)((e=>({failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()})))(d)},88591:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(19024),o=n(31209),i=n(82751),s=n(84833),l=n(1387);function c(){const{connections:e,toggleById:t}=(0,s.Z)(),{message:n,updateMessage:c,maxLength:u}=(0,l.Z)();return(0,r.createElement)("div",{id:"publicize-form"},(0,r.createElement)("ul",{className:"jetpack-publicize__connections-list"},e.map((({display_name:e,enabled:n,id:o,service_name:i,toggleable:s})=>(0,r.createElement)(a.Z,{disabled:!s,enabled:n,key:o,id:o,label:e,name:i,toggleConnection:t})))),(0,r.createElement)(o.Z,null),e.some((e=>e.enabled))&&(0,r.createElement)(i.Z,{disabled:e.every((e=>!e.toggleable)),maxLength:u,onChange:c,message:n}))}},82751:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63027),a=n(33163),o=n(87997);const __=a.__,_n=a._n;function i({message:e="",onChange:t,disabled:n,maxLength:i}){const s=i-e.length;return(0,r.createElement)(o.TextareaControl,{value:e,onChange:t,disabled:n,maxLength:i,placeholder:__("Write a message for your audience here. If you leave this blank, we'll use an excerpt of the post content as the message.","jetpack"),rows:4,help:(0,a.sprintf)(_n("%d character remaining","%d characters remaining",s,"jetpack"),s)})}},78067:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(77122),i=n(88591),s=n(30918),l=n(84833),c=n(46355);const __=a.__;t.Z=({prePublish:e})=>{const{refresh:t,hasEnabledConnections:n}=(0,l.Z)();return(0,c.Z)((function(){n&&t()}),[n,t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Z,null),(0,r.createElement)("div",null,__("Connect and select the accounts where you'd like to share your post.","jetpack")),(0,r.createElement)(i.Z,null),(0,r.createElement)(s.Z,{prePublish:e}))}},31209:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(63027),a=n(33804),o=n(75031),i=n(33163),s=n(87997),l=n(92754),c=n(84833);const __=i.__;function u(){const{refresh:e}=(0,c.Z)(),t=(0,l.Z)(),n=(0,a.debounce)((function(t){t&&e()}),2e3),i=t?`https://wordpress.com/marketing/connections/${t}`:"options-general.php?page=sharing&publicize_popup=true";return(0,r.createElement)(o.Z,{onChange:n},(0,r.createElement)("div",{className:"jetpack-publicize-add-connection-wrapper"},(0,r.createElement)(s.ExternalLink,{href:i,target:"_blank"},__("Connect an account","jetpack"))))}},58815:function(e,t,n){"use strict";n.d(t,{nE:function(){return l},H8:function(){return c}});var r=n(63027),a=n(51417),o=n(65707),i=n(65799),s=n(57884);const l={"core/gallery":{contentAttributes:["images"]},"core/heading":{contentAttributes:["content"]},"core/image":{contentAttributes:["alt","url"]},"core/list":{contentAttributes:["values"]},"core/paragraph":{contentAttributes:["content"]},"core/quote":{contentAttributes:["value","citation"]},"core/separator":{contentAttributes:[]},"core/spacer":{contentAttributes:[]},"core/verse":{contentAttributes:["content"]},"core/video":{contentAttributes:["src"]},"core/embed":{contentAttributes:["url"]},"jetpack/gif":{contentAttributes:["giphyUrl"]}},c=["core/column","core/columns","core/group"];(0,i.addFilter)("blocks.registerBlockType","jetpack/publishing-tweetstorms",(e=>{const{edit:t}=e;return{...e,edit:e=>(0,r.createElement)(s.Z,{ChildEdit:t,childProps:e})}}));t.ZP=(0,a.compose)([(0,o.withSelect)((e=>({isTweetStorm:e("jetpack/publicize").isTweetStorm(),isTyping:e("core/block-editor").isTyping()})))])((({isTweetStorm:e,isTyping:t})=>(e?document.body.classList.add("jetpack-tweetstorm"):document.body.classList.remove("jetpack-tweetstorm"),e&&t?document.body.classList.add("jetpack-tweetstorm-is-typing"):document.body.classList.remove("jetpack-tweetstorm-is-typing"),null)))},30918:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(51417),s=n(65707);n(28030);const __=a.__;t.Z=(0,i.compose)([(0,s.withSelect)((e=>{const{isTweetStorm:t,getTweetStorm:n}=e("jetpack/publicize");return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections"),isTweetStorm:t(),tweetStormLength:n().length}})),(0,s.withDispatch)((e=>({setTweetstorm:t=>{e("core/editor").editPost({meta:{jetpack_is_tweetstorm:t}}),t?e("jetpack/publicize").refreshTweets():(e("core/annotations").__experimentalRemoveAnnotationsBySource("jetpack-tweetstorm"),e("core/annotations").__experimentalRemoveAnnotationsBySource("jetpack-tweetstorm-line-break"))}})))])((({connections:e,isTweetStorm:t,tweetStormLength:n,setTweetstorm:a,prePublish:i})=>{if(null==e||!e.some((e=>"twitter"===e.service_name&&e.enabled)))return null;const s=(e,t)=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("strong",null,e),(0,r.createElement)("br",null),t),l=[];return n>=102?l.push({id:"jetpack-publicize-twitter-tweetstorm-too-long",status:"error",content:__("Only the first 100 tweets of this post will be published in the Twitter thread.","jetpack"),isDismissible:!1}):n>=22?l.push({id:"jetpack-publicize-twitter-tweetstorm-a-bit-long",status:"warning",content:__("This post will create a Twitter thread more than 20 tweets long.","jetpack"),isDismissible:!1}):i&&n<=2&&l.push({id:"jetpack-publicize-twitter-tweetstorm-too-short",status:"warning",content:__("None of the content in this post could be transformed into tweets, it may be better to share as a single tweet.","jetpack"),isDismissible:!1}),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("h3",{className:"jetpack-publicize-twitter-options__heading"},__("Twitter settings","jetpack")),(0,r.createElement)(o.RadioControl,{className:"jetpack-publicize-twitter-options__type",selected:t?"tweetstorm":"single",options:[{label:s(__("Single Tweet","jetpack"),__("Share a link to this post to Twitter.","jetpack")),value:"single"},{label:s(__("Twitter Thread","jetpack"),__("Share the content of this post as a Twitter thread.","jetpack")),value:"tweetstorm"}],onChange:e=>{a("tweetstorm"===e)}}),t&&(0,r.createElement)(o.NoticeList,{className:"jetpack-publicize-twitter-options__notices",notices:l}))}))},57884:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(87997),i=n(51417),s=n(65707),l=(n(28030),n(45395));class c extends r.Component{componentDidMount(){const{isTweetStorm:e,updateTweets:t}=this.props;e&&t()}componentDidUpdate(e){const{boundaries:t,childProps:n,currentAnnotations:r,isTweetStorm:o,updateAnnotations:i,updateTweets:s,supportedBlockType:l,contentAttributesChanged:c}=this.props;o&&l&&(c(e.childProps,n)&&s(),r.length===t.filter((e=>["normal","line-break"].includes(e.type))).length&&(0,a.isEqual)(e.boundaries,t)||i())}render(){const{ChildEdit:e,childProps:t,isTweetStorm:n,isSelectedTweetBoundary:a,boundaryStylesSelectors:i,popoverWarnings:s}=this.props;return n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,t),a&&(0,r.createElement)("div",{className:"jetpack-publicize-twitter__tweet-divider"},(0,r.createElement)("div",{className:"jetpack-publicize-twitter__tweet-divider-icon"},(0,r.createElement)(l.av,{serviceName:"twitter"})),s.length>0&&(0,r.createElement)(o.Popover,{className:"jetpack-publicize-twitter__tweet-divider-popover",focusOnMount:!1,position:"bottom center"},(0,r.createElement)("ol",null,s.map(((e,t)=>(0,r.createElement)("li",{key:`jetpack-publicize-twitter__tweet-divider-popover-warning-${t}`},e)))))),i&&(0,r.createElement)("style",{type:"text/css"},i.map((e=>`${e}::after {\n\t\t\t\t\t\t\t\tcontent: "";\n\t\t\t\t\t\t\t\tbackground: #0009;\n\t\t\t\t\t\t\t\twidth: 3px;\n\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\tmargin: 0 1px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.is-dark-theme ${e}::after {\n\t\t\t\t\t\t\t\tbackground: #fff9;\n\t\t\t\t\t\t\t}`)))):(0,r.createElement)(e,t)}}t.Z=(0,i.compose)([(0,s.withSelect)(((e,{childProps:t})=>{const{isTweetStorm:n,getPopoverWarnings:r,getBoundariesForBlock:a,getBoundaryStyleSelectors:o,isSelectedTweetBoundary:i,getSupportedBlockType:s,contentAttributesChanged:l}=e("jetpack/publicize"),c=e("core/annotations").__experimentalGetAllAnnotationsForBlock(t.clientId);return{isTweetStorm:n(),isSelectedTweetBoundary:i(t),boundaries:a(t.clientId),boundaryStylesSelectors:o(t.clientId),popoverWarnings:r(t),currentAnnotations:c,supportedBlockType:s(t.name),contentAttributesChanged:l}})),(0,s.withDispatch)(((e,{childProps:t},{select:n})=>({updateTweets:()=>e("jetpack/publicize").refreshTweets(),updateAnnotations:()=>{const{contentAttributesChanged:r,getTweetsForBlock:a}=n("jetpack/publicize"),o=a(t.clientId);if(!o||0===o.length)return;if(r(o.reduce(((e,n)=>e||n.blocks.find((e=>e.clientId===t.clientId))),!1),t))return;n("core/annotations").__experimentalGetAllAnnotationsForBlock(t.clientId).forEach((t=>{["jetpack-tweetstorm","jetpack-tweetstorm-line-break"].includes(t.source)&&e("core/annotations").__experimentalRemoveAnnotation(t.id)}));o.filter((e=>e.boundary)).map((e=>e.boundary)).forEach((n=>{const{container:r,type:a,start:o,end:i}=n;"normal"===a?e("core/annotations").__experimentalAddAnnotation({blockClientId:t.clientId,source:"jetpack-tweetstorm",richTextIdentifier:r,range:{start:o,end:i}}):"line-break"===a&&e("core/annotations").__experimentalAddAnnotation({blockClientId:t.clientId,source:"jetpack-tweetstorm-line-break",richTextIdentifier:r,range:{start:o,end:i}})}))}})))])(c)},46355:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51417),a=n(48885),o=n(65707),i=n(63027);function s(e,t){const n=(0,o.useSelect)((e=>e(a.store).isSavingPost()),[]),s=(0,r.usePrevious)(n);(0,i.useEffect)((()=>{s&&!n&&e()}),[n,s,e,t])}},84833:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(65707);function a(){const{refreshConnectionTestResults:e,toggleConnectionById:t}=(0,r.useDispatch)("jetpack/publicize"),n=(0,r.useSelect)((e=>e("jetpack/publicize").getConnections()),[]);return{connections:n,hasEnabledConnections:n&&n.some((e=>e.enabled)),toggleById:t,refresh:e}}},1387:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(65707),a=n(48885);function o(){const{editPost:e}=(0,r.useDispatch)(a.store),{message:t,maxLength:n}=(0,r.useSelect)((e=>({message:e("jetpack/publicize").getShareMessage(),maxLength:e("jetpack/publicize").getShareMessageMaxLength()})),[]);return{message:t,maxLength:n,updateMessage:function(t,n=!0){e({meta:{jetpack_publicize_message:t,jetpack_publicize_hasEditedShareMessage:n}})}}}},54920:function(e,t,n){"use strict";n.d(t,{u:function(){return p},X:function(){return d}});var r=n(63027),a=n(33163),o=n(87997),i=n(47649),s=n(48885),l=(n(2732),n(58815)),c=n(54849),u=n(78067);const __=a.__,p="publicize",d={render:()=>(0,r.createElement)(s.PostTypeSupportCheck,{supportKeys:"publicize"},(0,r.createElement)(l.ZP,null),(0,r.createElement)(c.Z,null,(0,r.createElement)(o.PanelBody,{title:__("Share this post","jetpack")},(0,r.createElement)(u.Z,null))),(0,r.createElement)(i.PluginPrePublishPanel,{initialOpen:!0,id:"publicize-title",title:(0,r.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},__("Share this post","jetpack"))},(0,r.createElement)(u.Z,{prePublish:!0})))}},5127:function(e,t,n){"use strict";n.r(t),n.d(t,{setConnectionTestResults:function(){return o},refreshConnectionTestResults:function(){return i},toggleConnectionById:function(){return s},fetchFromAPI:function(){return l},refreshTweets:function(){return c},setTweets:function(){return u},getTwitterCards:function(){return p},setTwitterCards:function(){return d}});var r=n(65707),a=n(48885);function o(e){return{type:"SET_CONNECTION_TEST_RESULTS",connections:e}}function i(e=null){return{type:"REFRESH_CONNECTION_TEST_RESULTS",connections:e=e||((0,r.select)(a.store).getEditedPostAttribute("jetpack_publicize_connections")||[])}}function s(e){return{type:"TOGGLE_CONNECTION_BY_ID",connectionId:e}}function l(e){return{type:"FETCH_FROM_API",path:e}}function c(){return{type:"REFRESH_TWEETS"}}function u(e){return{type:"SET_TWEETS",tweets:e}}function p(e){const{twitterCardIsCached:t}=(0,r.select)("jetpack/publicize");return{type:"GET_TWITTER_CARDS",urls:e.filter((e=>!t(e)))}}function d(e){return{type:"SET_TWITTER_CARDS",cards:e}}},44692:function(e,t,n){"use strict";var r=n(37606),a=n.n(r);t.Z={FETCH_FROM_API:({path:e})=>a()({path:e})}},77684:function(e,t,n){"use strict";var r=n(33804),a=n(37606),o=n.n(a),i=n(9314),s=n(65707),l=n(48885),c=n(58815);const u=(e=[])=>{const{getSupportedBlockType:t}=(0,s.select)("jetpack/publicize");return(0,r.flatMap)(e,((e={})=>t(e.name)||e.name.startsWith("core-embed/")?e:c.H8.includes(e.name)?u(e.innerBlocks):[]))};const p=(0,r.throttle)((async function(){const e=(0,s.select)("core/editor").getBlocks(),t=u(e);try{const e=await o()({path:"/wpcom/v2/tweetstorm/parse",data:{blocks:t.map((e=>({attributes:e.attributes,block:(0,i.serialize)(e),clientId:e.clientId})))},method:"POST"}),n=(0,r.flatMap)(e,(e=>e.urls));return(0,s.dispatch)("jetpack/publicize").getTwitterCards(n),(0,s.dispatch)("jetpack/publicize").setTweets(e)}catch(n){}}),2e3,{leading:!0,trailing:!0});t.ZP={REFRESH_CONNECTION_TEST_RESULTS:async function(){try{const e=await o()({path:"/wpcom/v2/publicize/connection-test-results"}),t=(0,s.select)("jetpack/publicize").getConnections(),n=t.map((e=>e.id)),r=e,a=[];for(const o of r){let e;e=n.includes(o.id)?t.filter((e=>e.id===o.id))[0]:{display_name:o.display_name,service_name:o.service_name,id:o.id,done:!1,enabled:!0,toggleable:!0},o.profile_picture&&(e.profile_picture=o.profile_picture),a.push(e)}return(0,s.dispatch)(l.store).editPost({jetpack_publicize_connections:a}),(0,s.dispatch)("jetpack/publicize").setConnectionTestResults(a)}catch(e){}},TOGGLE_CONNECTION_BY_ID:async function(){const e=(0,s.select)("jetpack/publicize").getConnections();(0,s.dispatch)(l.store).editPost({jetpack_publicize_connections:e})},REFRESH_TWEETS:p,GET_TWITTER_CARDS:async function(e){if(0===e.urls.length)return(0,s.dispatch)("jetpack/publicize").setTwitterCards([]);try{const t=await o()({path:"/wpcom/v2/tweetstorm/generate-cards",data:{urls:e.urls},method:"POST"});return(0,s.dispatch)("jetpack/publicize").setTwitterCards(t)}catch(t){}}}},2732:function(e,t,n){"use strict";var r=n(65707),a=n(5127),o=n(6227),i=n(53349),s=n(44692),l=n(88057);const c=(0,r.registerStore)("jetpack/publicize",{actions:a,controls:s.Z,reducer:l.Z,selectors:o});(0,i.Z)(c)},53349:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2601),a=n.n(r),o=n(33804),i=n(77684);function s(e){const t=[a()(i.ZP)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r=[];const s={getState:e.getState,dispatch:(...e)=>n(...e)};return r=t.map((e=>e(s))),n=(0,o.flowRight)(...r)(e.dispatch),e.dispatch=n,e}},88057:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const r={connections:[],tweets:[],twitterCards:[]};function a(e=r,t){switch(t.type){case"SET_CONNECTION_TEST_RESULTS":{const{connections:n}=t;return{...e,connections:n}}case"REFRESH_CONNECTION_TEST_RESULTS":{const{connections:n}=t;return{...e,connections:n}}case"TOGGLE_CONNECTION_BY_ID":{const n=e.connections.map((e=>({...e,enabled:e.id===t.connectionId?!e.enabled:e.enabled})));return{...e,connections:n}}case"SET_TWEETS":return{...e,tweets:t.tweets};case"GET_TWITTER_CARDS":{const n={};return t.urls.forEach((e=>n[e]={error:"loading"})),{...e,twitterCards:{...e.twitterCards,...n}}}case"SET_TWITTER_CARDS":return{...e,twitterCards:{...e.twitterCards,...t.cards}}}return e}},6227:function(e,t,n){"use strict";n.r(t),n.d(t,{getFailedConnections:function(){return c},getMustReauthConnections:function(){return u},getTweetTemplate:function(){return p},getTweetStorm:function(){return d},getFirstTweet:function(){return m},getLastTweet:function(){return h},getSupportedBlockType:function(){return f},getTweetsForBlock:function(){return g},getTwitterCardForURLs:function(){return b},twitterCardIsCached:function(){return v},getShareMessage:function(){return k},getShareMessageMaxLength:function(){return y},isTweetStorm:function(){return E},getBoundariesForBlock:function(){return w},getBoundaryStyleSelectors:function(){return C},checkForTagsInContentAttributes:function(){return S},getPopoverWarnings:function(){return j},isSelectedTweetBoundary:function(){return x},contentAttributesChanged:function(){return T},getConnections:function(){return N}});var r=n(33804),a=n(65707),o=n(33163),i=n(19551),s=n(58815);const __=o.__,l="\n\n"+__("A thread ⬇️","jetpack");function c(e){return e.connections.filter((e=>!1===e.test_success))}function u(e){return e.connections.filter((e=>"must_reauth"===e.test_success)).map((e=>e.service_name))}function p(e){var t;const n=null===(t=e.connections)||void 0===t?void 0:t.find((e=>"twitter"===e.service_name));return{date:Date.now(),name:(null==n?void 0:n.profile_display_name)||__("Account Name","jetpack"),profileImage:(null==n?void 0:n.profile_picture)||"https://abs.twimg.com/sticky/default_profile_images/default_profile_bigger.png",screenName:(null==n?void 0:n.display_name)||""}}function d(e){const t=p(e),n=[m(e),...e.tweets.slice(0,100).map((n=>({...t,text:n.text,media:n.media,tweet:n.tweet,urls:n.urls,card:b(e,n.urls)})))];return n.length>1&&n.push(h(e)),n}function m(e){var t,n,r,o;if(!(0,a.select)("core"))return;const i=p(e),{getMedia:s}=(0,a.select)("core"),{getEditedPostAttribute:l}=(0,a.select)("core/editor"),c=l("featured_media"),u=l("link"),d=c&&s(c),m=(null==d||null===(t=d.media_details)||void 0===t||null===(n=t.sizes)||void 0===n||null===(r=n.large)||void 0===r?void 0:r.source_url)||(null==d?void 0:d.source_url);return{...i,text:k()+` ${u}`,urls:[u],card:{title:l("title"),description:(null===(o=l("meta"))||void 0===o?void 0:o.advanced_seo_description)||l("excerpt")||l("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack"),url:u,image:m,type:m?"summary_large_image":"summary"}}}function h(e){if(!(0,a.select)("core/editor"))return;const{getEditedPostAttribute:t}=(0,a.select)("core/editor"),n=t("link"),r=e.tweets.length>100?__("The rest of this thread can be read here:","jetpack"):__("This thread can be read here:","jetpack");return{...m(e),text:`${r} ${n}`}}function f(e,t){if(s.nE[t])return s.nE[t]}const g=(0,i.Z)(((e,t)=>e.tweets.filter((e=>!!e.blocks.find((e=>e.clientId===t))))),(e=>[e.tweets]));function b(e,t){if(t)return t.reduce(((t,n)=>t||(e.twitterCards[n]&&!e.twitterCards[n].error?{url:n,...e.twitterCards[n]}:void 0)),void 0)}function v(e,t){return!!e.twitterCards[t]}function k(){const{getEditedPostAttribute:e}=(0,a.select)("core/editor"),t=e("meta"),n=e("title"),o=(0,r.get)(t,["jetpack_publicize_message"],""),i=(0,r.get)(t,["jetpack_publicize_hasEditedShareMessage"],!1);return o?o.substr(0,y()):i&&""===o?"":n?n.substr(0,y())+(E()?l:""):""}function y(){return E()?255-l.length:255}function E(){var e;return!(null===(e=(0,a.select)("core/editor").getEditedPostAttribute("meta"))||void 0===e||!e.jetpack_is_tweetstorm)}const w=(0,i.Z)(((e,t)=>{if(!E())return[];const n=g(e,t);return n&&0!==n.length?n.filter((e=>e.boundary)).map((e=>e.boundary)):[]}),(e=>[e.tweets]));function _(e,t){if(`block-${t}`===e.id)return`#block-${t}`;const n=e.parentNode,r=Array.prototype.indexOf.call(n.children,e);return _(n,t)+` > :nth-child( ${r+1} )`}const C=(0,i.Z)(((e,t)=>{const n=w(e,t),r=document.getElementById(`block-${t}`);return n.filter((e=>"end-of-line"===e.type)).map((e=>{if(!r)return!1;const n=r.getElementsByTagName("li").item(e.line);return!!n&&_(n,t)})).filter((e=>!!e))}),(e=>[e.tweets]));function S(e,t,n){var r;if(0===n.length)return!1;if(null===(r=f(0,t.name))||void 0===r||!r.contentAttributes)return!1;const a=new RegExp(`<(${n.join("|")})( |>|/>)`,"gi");return f(0,t.name).contentAttributes.reduce(((e,n)=>!!e||a.test(t.attributes[n])),!1)}const j=(0,i.Z)(((e,t)=>{const{isTyping:n,isDraggingBlocks:r,isMultiSelecting:o,hasMultiSelection:i,isCaretWithinFormattedText:l}=(0,a.select)("core/block-editor");if(!E())return[];if(n()||r()||o()||i()||l())return[];const c=[];return f(0,t.name)||s.H8[t.name]?("core/gallery"===t.name&&t.attributes.images.length>4&&c.push(__("Twitter displays the first four images.","jetpack")),S(0,t,["strong","bold","em","i","sup","sub","span","s"])&&c.push(__("Twitter removes all text formatting.","jetpack")),S(0,t,["a"])&&c.push(__("Links will be posted seperately.","jetpack"))):c.push(__("This block is not exportable to Twitter","jetpack")),c}),(e=>[e.tweets]));function x(e,t){const{isBlockSelected:n}=(0,a.select)("core/block-editor");if(!E())return!1;const r=f(0,t.name),o=g(e,t.clientId);if(!o||0===o.length)return!1;const i=o[o.length-1];return n(t.clientId)&&!r||i.blocks[i.blocks.length-1].clientId===t.clientId&&o.some((e=>e.blocks.some((e=>n(e.clientId)))))}function T(e,t,n){const a=f(0,n.name);if(!a)return!1;const o=a.contentAttributes;return!(0,r.isEqual)(o.map((e=>({attribute:e,content:t.attributes[e]}))),o.map((e=>({attribute:e,content:n.attributes[e]}))))}function N(e){return e.connections}},3793:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(63027),a=n(87997),o=n(33163),i=n(48885),s=n(65707),l=n(76725);const __=o.__;function c({checked:e,onChange:t}){return(0,r.createElement)(a.CheckboxControl,{label:__("Show sharing buttons.","jetpack"),checked:e,onChange:e=>{t({jetpack_sharing_enabled:e})}})}function u(){const e=(0,s.useSelect)((e=>e(i.store).getEditedPostAttribute("jetpack_sharing_enabled")),[]),{editPost:t}=(0,s.useDispatch)(i.store);return(0,r.createElement)(i.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons"},(0,r.createElement)(l.Z,null,(0,r.createElement)(c,{checked:e,onChange:t})))}},56848:function(e,t,n){"use strict";n.d(t,{u:function(){return a},X:function(){return o}});var r=n(3793);const a="sharing",o={render:r.Z}},60334:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(87997);const a=(0,r.withFallbackStyles)(((e,t)=>{const{textColor:n,backgroundColor:r}=t,a=r&&r.color,o=n&&n.color;return{fallbackBackgroundColor:a||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:o||!e?void 0:getComputedStyle(e).color}}))},64305:function(e,t,n){"use strict";var r=n(63027),a=n(9314),o=n(33163),i=n(45395),s=n(42975);const __=o.__;(0,s.Wp)()||(0,s.Ug)()||(0,a.registerBlockCollection)("jetpack",{title:"Jetpack",icon:(0,r.createElement)(i.IM,null)}),(0,a.setCategories)([...(0,a.getCategories)().filter((({slug:e})=>"earn"!==e)),{slug:"earn",title:__("Earn","jetpack"),icon:(0,r.createElement)(i.IM,null)}]),(0,a.setCategories)([...(0,a.getCategories)().filter((({slug:e})=>"grow"!==e)),{slug:"grow",title:__("Grow","jetpack"),icon:(0,r.createElement)(i.IM,null)}])},25531:function(e,t,n){"use strict";function r(e){const t=e.ownerDocument;return{currentDoc:t,currentWindow:t.defaultView||t.parentWindow}}function a(e,t,n=!1){var a;let o=[];if(!t||!e&&!e.length||!function(e){const{currentWindow:t}=r(e);return"editor-canvas"===t.name&&t.self!==t.top}(t))return o;const{currentDoc:i,currentWindow:s}=r(t);if(!function(e){try{var t;return!(null==e||null===(t=e.parent)||void 0===t||!t.location.href)}catch(n){return!1}}(s))return o;const l=null==s||null===(a=s.parent)||void 0===a?void 0:a.document;return i&&l?(o=e.filter((e=>{const t=l.querySelector(e),r=!!i.querySelector(e);return!(!t||r)&&(i.head.appendChild(t.cloneNode()),n&&t.remove(),!0)})),o):void 0}function o(e,t,n){const a=`${window.Jetpack_Block_Assets_Base_Url.url}editor-assets`,{currentDoc:o}=r(n),i=o.getElementsByTagName("head")[0];e.forEach((e=>{const[n,r]=e.file.split("/").pop().split(".");if("css"===r){if(o.getElementById(e.id))return;const t=o.createElement("link");t.id=e.id,t.rel="stylesheet",t.href=`${a}/${n}-${e.version}.${r}`,i.appendChild(t)}if("js"===r){const s=t[e.id]?t[e.id]:null;if(o.getElementById(e.id))return s();const l=o.createElement("script");l.id=e.id,l.type="text/javascript",l.src=`${a}/${n}-${e.version}.${r}`,l.onload=s,i.appendChild(l)}}))}function i(e,t){return new Promise((n=>{const r=()=>{e[t]?n(e[t]):e.requestAnimationFrame(r)};r()}))}n.d(t,{bL:function(){return r},DT:function(){return a},Pp:function(){return o},Dz:function(){return i}})},32750:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(27655),a=n(42975);const o=r.O["Jetpack Green 40"];function i(){return(0,a.Ug)()||(0,a.Wp)()?"#1e1e1e":o}},8185:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(96586),a=n.n(r),o=n(33804);function i(e,t){const n=function(e,t){for(const n of new(a())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=(0,o.find)(e,{name:t});if(r)return r}return(0,o.find)(e,"isDefault")}(e,t);return n?n.name:null}},13077:function(e,t,n){"use strict";var r=n(43197),a=n.n(r),o=n(63027),i=n(33163),s=n(87997);const __=i.__,_x=i._x;class l extends o.Component{constructor(...e){super(...e),a()(this,"state",{hasCopied:!1}),a()(this,"onCopy",(()=>this.setState({hasCopied:!0}))),a()(this,"onFinishCopy",(()=>this.setState({hasCopied:!1}))),a()(this,"onFocus",(e=>e.target.select()))}render(){const{link:e}=this.props,{hasCopied:t}=this.state;return e?(0,o.createElement)("div",{className:"jetpack-clipboard-input"},(0,o.createElement)(s.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),(0,o.createElement)(s.ClipboardButton,{isDefault:!0,onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?__("Copied!","jetpack"):_x("Copy","verb","jetpack"))):null}}t.Z=l},37432:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const r=/^#?[A-Fa-f0-9]{6}$/;function a(e){return r.test(e)}},97542:function(e,t,n){"use strict";var r=n(63027),a=n(33804),o=n(33163),i=n(60402),s=n(38788);const __=o.__,l="undefined"!=typeof _wpmejsSettings?_wpmejsSettings:{};function c(e,t,n){const r=document.createElement("div");r.className=e;const a=document.createElement("button");return a.innerText=t,a.addEventListener("click",n),a.setAttribute("aria-label",t),a.setAttribute("title",t),r.appendChild(a),r}t.Z=function({trackSource:e,onPlay:t,onPause:n,onError:o,onTimeChange:u,onSkipForward:p,onJumpBack:d,currentTime:m,playStatus:h=s._5,onMetadataLoaded:f,loadWhenReady:g=!1,preload:b="metadata"}){const v=(0,r.useRef)(),k=()=>{v.current.play().catch((()=>{}))},y=()=>{v.current.pause(),(0,i.speak)(__("Paused","jetpack"),"assertive")};return(0,r.useEffect)((()=>{MediaElementPlayer.prototype._setResponsiveMode||(MediaElementPlayer.prototype._setResponsiveMode=MediaElementPlayer.prototype.setResponsiveMode,MediaElementPlayer.prototype.setResponsiveMode=function(){const e=this;e.getElement(e.container).parentNode&&e._setResponsiveMode()})}),[]),(0,r.useEffect)((()=>{const e=v.current;e.preload=b;const r=new MediaElementPlayer(e,{...l,success:()=>g&&(null==e?void 0:e.load())});if(d||p){const e=`${r.options.classPrefix}button ${r.options.classPrefix}jump-button`;if(d){const t=`${e} ${r.options.classPrefix}jump-backward-button`;r.addControlElement(c(t,__("Jump Back","jetpack"),d),"jumpBackwardButton")}if(p){const t=`${e} ${r.options.classPrefix}skip-forward-button`;r.addControlElement(c(t,__("Skip Forward","jetpack"),p),"skipForwardButton")}}return t&&e.addEventListener("play",t),n&&e.addEventListener("pause",n),o&&e.addEventListener("error",o),f&&e.addEventListener("loadedmetadata",f),()=>{r.remove(),t&&e.removeEventListener("play",t),n&&e.removeEventListener("pause",n),o&&e.removeEventListener("error",o),f&&e.removeEventListener("loadedmetadata",f)}}),[t,n,o,d,p,f,g,b]),(0,r.useEffect)((()=>{var e;const[t,n]=!1===(null===(e=v.current)||void 0===e?void 0:e.paused)?[s.Wp,y]:[s._5,k],r=(0,a.debounce)(n,100);return s.Vy!==h&&t!==h&&r(),()=>{r.cancel()}}),[v,h,e]),(0,r.useEffect)((()=>{if(!u)return;const e=v.current,t=(0,a.throttle)((e=>u(e)),1e3,{leading:!0,trailing:!1}),n=e=>t(e.target.currentTime);return u&&(null==e||e.addEventListener("timeupdate",n)),()=>{t.cancel(),null==e||e.removeEventListener("timeupdate",n)}}),[v,u]),(0,r.useEffect)((()=>{const e=v.current;m&&e&&Math.abs(Math.floor(m-e.currentTime))>1&&(e.currentTime=m)}),[v,m]),(0,r.createElement)("div",{className:"jetpack-audio-player"},(0,r.createElement)("audio",{src:e,ref:v}))}},11594:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(63027),a=n(89105),o=n.n(a),i=n(87997),s=n(46399),l=n(363);function c({blockName:e,buttonLabel:t,href:n,icon:a,onClick:c,subtitle:u,title:p,className:d}){const{autosaveAndRedirect:m}=(0,l.Z)(n);return(0,r.createElement)(s.Warning,{actions:n&&[(0,r.createElement)(i.Button,{href:n,onClick:t=>{t.preventDefault(),c(e),m(t)},target:"_top",isSecondary:!0,isLarge:!0},t)],className:o()(d,"jetpack-block-nudge wp-block")},(0,r.createElement)("span",{className:"jetpack-block-nudge__info"},a,(0,r.createElement)("span",{className:"jetpack-block-nudge__text-container"},(0,r.createElement)("span",{className:"jetpack-block-nudge__title"},p),u&&(0,r.createElement)("span",{className:"jetpack-block-nudge__message"},u))))}},39879:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(63027),a=n(89105),o=n.n(a),i=n(33804),s=n(9314),l=n(46399),c=n(87997),u=n(65707),p=n(23983),d=n(33163);const __=d.__,m=({attributes:e,styleOption:t,viewportWidth:n,blockName:a})=>{const o=(0,s.getBlockType)(a);return(0,r.createElement)(l.BlockPreview,{viewportWidth:n,blocks:(i=o.example?(0,s.getBlockFromExample)(a,{attributes:{...o.example.attributes,style:t.value},innerBlocks:o.example.innerBlocks}):(0,s.createBlock)(a,e),{...i,attributes:{...i.attributes,__isBlockPreview:!0}})});var i},h=r.memo?(0,r.memo)(m,((e,t)=>(0,i.isEqual)(e,t))):m;function f({attributes:e,clientId:t,styleOptions:n,onSelectStyle:a,activeStyle:i,viewportWidth:s,title:d}){let m;return u.useSelect&&(m=(0,u.useSelect)((e=>{const{getBlock:n}=e("core/block-editor");return n(t)}))),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(c.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:n.map((e=>({title:e.label,isActive:e.value===i,onClick:()=>a({style:e.value})}))),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(c.PanelBody,{title:d||__("Styles","jetpack")},(0,r.createElement)("div",{className:"block-editor-block-styles jetpack-block-styles-selector"},n.map((t=>{const n={...e,style:t.value};return(0,r.createElement)("div",{key:t.value,className:o()("block-editor-block-styles__item",{"is-active":t.value===i}),onClick:()=>{a({style:t.value})},onKeyDown:e=>{p.ENTER!==e.keyCode&&p.SPACE!==e.keyCode||(e.preventDefault(),a({style:t.value}))},role:"button",tabIndex:"0","aria-label":t.label},(0,r.createElement)("div",{className:"block-editor-block-styles__item-preview"},t.preview?t.preview:u.useSelect&&m&&(0,r.createElement)(h,{blockName:m.name,styleOption:t,attributes:n,viewportWidth:s})),(0,r.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label))}))))))}},21547:function(e,t,n){"use strict";n.d(t,{m:function(){return m}});var r=n(63027),a=n(89105),o=n.n(a),i=n(87997),s=n(65707),l=n(33163),c=n(45395),u=n(38788),p=n(77694);const __=l.__;function d({skipForwardTime:e=5,jumpBackTime:t=5,playIcon:n="controls-play",pauseIcon:a="controls-pause",jumpBackIcon:l=c.Qv,skipForwardIcon:d=c._z,currenTimeDisplay:m=!0,onTimestampClick:h}){const{playerState:f,mediaCurrentTime:g,defaultMediaSource:b,mediaDomReference:v}=(0,s.useSelect)((e=>{const{getMediaSourceCurrentTime:t,getMediaPlayerState:n,getDefaultMediaSource:r,getMediaSourceDuration:a,getMediaSourceDomReference:o}=e(u.tT);return{playerState:n(),mediaCurrentTime:t(),mediaDuration:a(),defaultMediaSource:r(),mediaDomReference:o()}}),[]),k=(0,p.H)(g),y=!b,{toggleMediaSource:E,setMediaSourceCurrentTime:w}=(0,s.useDispatch)(u.tT);function _(e){!function(e){v&&(v.currentTime=e),w(b.id,e)}(e),v&&(v.currentTime=e)}return(0,r.createElement)(r.Fragment,null,!1!==t&&(0,r.createElement)(i.ToolbarButton,{icon:l,isDisabled:y,onClick:()=>_(g-t),label:__("Jump back","jetpack")}),(0,r.createElement)(i.ToolbarButton,{icon:f===u._5?n:a,isDisabled:y,onClick:function(){E(b.id)},label:__("Play","jetpack")}),e&&(0,r.createElement)(i.ToolbarButton,{icon:d,isDisabled:y,onClick:()=>_(g+e),label:__("Skip forward","jetpack")}),m&&(0,r.createElement)(i.ToolbarButton,{className:o()("media-player-control__current-time",{"is-disabled":y}),label:__("Set timestamp","jetpack"),onClick:()=>h(g)},k))}function m(e){return(0,r.createElement)(i.ToolbarGroup,{className:"media-player-control__toolbar"},(0,r.createElement)(i.ToolbarItem,null,(()=>(0,r.createElement)(d,e))))}},77694:function(e,t,n){"use strict";n.d(t,{H:function(){return r},i:function(){return a}});const r=mejs.Utils.secondsToTimeCode,a=mejs.Utils.timeCodeToSeconds},43925:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(87997);const s=i.NumberControl||i.__experimentalNumberControl||function(e){return(0,o.createElement)(i.TextControl,a()({type:"number",inputMode:"numeric"},e))};t.Z=s},23172:function(e,t,n){"use strict";var r=n(63027),a=n(13642),o=n.n(a),i=n(33163),s=n(28281),l=n(11594),c=n(23691);const __=i.__,u=({blockName:e,url:t})=>(0,r.createElement)(l.Z,{className:"jetpack-stripe-nudge__banner",buttonLabel:__("Connect","jetpack"),icon:(0,r.createElement)(o(),{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,onClick:()=>{s.Z.tracks.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e})},title:__("Connect to Stripe to use this block on your site","jetpack"),subtitle:__("This block will be hidden from your visitors until you connect to Stripe.","jetpack")});t.Z=({blockName:e,postId:t,stripeConnectUrl:n})=>{const a=(0,c.Z)(t,n);return a?(0,r.createElement)(u,{blockName:e,url:a}):null}},44822:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(63027),a=n(89105),o=n.n(a),i=n(87997),s=n(33163);const __=s.__,l=({align:e,className:t,title:n,description:a,buttonText:s,visible:l=!0,context:c,checkoutUrl:u,goToCheckoutPage:p,isRedirecting:d=!1})=>{const m=o()(t,"jetpack-upgrade-plan-banner",{"wp-block":"editor-canvas"===c,"block-editor-block-list__block":"editor-canvas"===c,"jetpack-upgrade-plan__hidden":!l}),h=__("Redirecting…","jetpack");return(0,r.createElement)("div",{className:m,"data-align":e},(0,r.createElement)("div",{className:"jetpack-upgrade-plan-banner__wrapper"},n&&(0,r.createElement)("strong",{className:o()("banner-title",{[`${t}__title`]:t})},n),a&&(0,r.createElement)("span",{className:`${t}__description banner-description`},a),(0,r.createElement)(i.Button,{href:d?null:u,onClick:p,target:"_top",className:o()("is-primary",{"jetpack-upgrade-plan__hidden":!u}),isBusy:d},d?h:s)))}},32174:function(e,t,n){"use strict";var r=n(65707);const a={setPlans:e=>({type:"SET_PLANS",plans:e}),fetchFromAPI:e=>({type:"FETCH_FROM_API",url:e})};(0,r.registerStore)("wordpress-com/plans",{reducer:(e=[],t)=>"SET_PLANS"===t.type?t.plans:e,actions:a,selectors:{getPlan:(e,t)=>e.find((e=>e.product_slug===t))},controls:{FETCH_FROM_API:({url:e})=>fetch(e).then((e=>e.json()))},resolvers:{*getPlan(){const e=yield a.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");return a.setPlans(e)}}})},76672:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9314);function a(e=[]){return void 0!==r.createBlocksFromInnerBlocksTemplate?(0,r.createBlocksFromInnerBlocksTemplate)(e):e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[n,o,i=[]]=t;return(0,r.createBlock)(n,o,a(i))}))}},27975:function(e,t,n){"use strict";n.d(t,{ck:function(){return o},Xy:function(){return i},hj:function(){return s},vs:function(){return l},Vm:function(){return c}});var r=n(4481),a=n(33804);const o={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},i=Object.keys(o).map((e=>{const{symbol:t}=(0,r.X)(e);return{value:e,label:t===e?e:`${e} ${(0,a.trimEnd)(t,".")}`}}));function s(e){return o[e]}function l(e,t){return!isNaN(t)&&t>=s(e)}function c(e,t){return e?"number"==typeof e?e:(e=parseFloat(e.replace(new RegExp("\\"+r.M[t].grouping,"g"),"").replace(new RegExp("\\"+r.M[t].decimal,"g"),".")),isNaN(e)?null:e):null}},68692:function(e,t,n){"use strict";var r=n(63027),a=n(87997);t.Z=({label:e,onClick:t})=>(0,r.createElement)(a.Button,{className:"components-toolbar__control",label:e,icon:"edit",onClick:t})},26804:function(e,t,n){"use strict";n.d(t,{iT:function(){return i},wk:function(){return s},oI:function(){return l},Tu:function(){return c},OG:function(){return u},tY:function(){return p},h9:function(){return d},CY:function(){return m},Wm:function(){return h},Qh:function(){return f},Bb:function(){return g},En:function(){return b},yD:function(){return v},QU:function(){return k},zs:function(){return y},l5:function(){return E}});var r=n(33163),a=n(77947),o=n(33804);const __=r.__,i="google_photos",s="pexels",l="recent",c="/",u=[{value:l,label:__("Photos","jetpack")},{value:c,label:__("Albums","jetpack")}],p=[{value:"",label:__("All categories","jetpack")},{value:"animals",label:__("Animals","jetpack")},{value:"arts",label:__("Arts","jetpack")},{value:"birthdays",label:__("Birthdays","jetpack")},{value:"cityscapes",label:__("Cityscapes","jetpack")},{value:"crafts",label:__("Crafts","jetpack")},{value:"fashion",label:__("Fashion","jetpack")},{value:"food",label:__("Food","jetpack")},{value:"flowers",label:__("Flowers","jetpack")},{value:"gardens",label:__("Gardens","jetpack")},{value:"holidays",label:__("Holidays","jetpack")},{value:"houses",label:__("Houses","jetpack")},{value:"landmarks",label:__("Landmarks","jetpack")},{value:"landscapes",label:__("Landscapes","jetpack")},{value:"night",label:__("Night","jetpack")},{value:"people",label:__("People","jetpack")},{value:"pets",label:__("Pets","jetpack")},{value:"selfies",label:__("Selfies","jetpack")},{value:"sport",label:__("Sport","jetpack")},{value:"travel",label:__("Travel","jetpack")},{value:"weddings",label:__("Weddings","jetpack")}],d=["mountain","ocean","river","clouds","pattern","abstract","sky"],m="ANY",h="LAST_7_DAYS",f="LAST_30_DAYS",g="LAST_6_MONTHS",b="LAST_12_MONTHS",v="CUSTOM",k=[{value:m,label:__("Any time","jetpack")},{value:h,label:__("Last 7 days","jetpack")},{value:f,label:__("Last 30 days","jetpack")},{value:g,label:__("Last 6 months","jetpack")},{value:b,label:__("Last 12 months","jetpack")},{value:v,label:__("Specific Month/Year","jetpack")}],y=(new Date).getFullYear(),E=[{label:__("Any Month","jetpack"),value:-1},...(0,o.map)((0,o.range)(0,12),(e=>({label:(0,a.dateI18n)("F",new Date(0,e)),value:e})))]},58167:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(65799),s=n(46399),l=n(5874),c=n(6694),u=n(9632);if((0,l.Z)()&&"function"==typeof s.useBlockEditContext){const e=e=>e.unstableFeaturedImageFlow||e.modalClass&&e.modalClass.indexOf("featured-image")>-1,t=(e,t)=>["core/cover","core/image","core/gallery","core/media-text","jetpack/image-compare","jetpack/slideshow","jetpack/story","jetpack/tiled-gallery"].indexOf(e)>-1&&-1===t.toString().indexOf("coblocks");(0,i.addFilter)("editor.MediaUpload","external-media/replace-media-upload",(n=>r=>{const{name:i}=(0,s.useBlockEditContext)();let{render:l}=r;if(t(i,l)||e(r)){const{allowedTypes:e,gallery:t=!1,value:n=[]}=r;e.indexOf("image")>-1&&!(t&&n.length>0)&&(l=e=>(0,o.createElement)(c.Z,a()({},e,{mediaProps:r})))}return(0,o.createElement)(n,a()({},r,{render:l}))}),100),(0,i.addFilter)("blocks.registerBlockType","external-media/individual-blocks",(function(e,t){return"core/image"!==t?e:{...e,keywords:[...e.keywords,...u.Dv.map((e=>e.keyword))]}}))}},60743:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(33804),s=n(87997),l=n(33163),c=n(23983),u=n(13514),p=n(24985);const __=l.__,d=(0,r.memo)((()=>(0,r.createElement)("div",{className:"jetpack-external-media-browser__empty"},(0,r.createElement)("p",null,__("Sorry, but nothing matched your search criteria.","jetpack")))));t.Z=function(e){const{media:t,isCopying:n,isLoading:a,pageHandle:l,className:m,multiple:h,setPath:f,nextPage:g,onCopy:b}=e,[v,k]=(0,r.useState)([]),[y,E]=(0,r.useState)(-1),w=(0,r.useRef)(-1),_=(0,r.useRef)(null),C=(0,r.useCallback)((e=>{let t=[e];"folder"===e.type?f(e.ID):h?(t=v.slice(0,9).concat(e),v.find((t=>e.ID===t.ID))&&(t=v.filter((t=>t.ID!==e.ID)))):1===v.length&&e.ID===v[0].ID&&(t=[]),k(t)}),[v,h,f]),S=(0,r.useCallback)((()=>{b(v)}),[v,b]),j=t.filter((e=>"folder"!==e.type)).length>0,x=o()({"jetpack-external-media-browser__media":!0,"jetpack-external-media-browser__media__loading":a}),T=o()({"jetpack-external-media-browser":!0,[m]:!0}),N=()=>{let e=1;const t=_.current.children;if(t.length>0){const n=t[0].offsetTop;for(;e<t.length&&t[e].offsetTop===n;)++e}w.current=e},A=(0,i.debounce)(N,400);(0,r.useEffect)((()=>(window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)})),[]),(0,r.useEffect)((()=>{t.length&&-1===w.current&&N()}),[t]);const P=(e,{item:t})=>{C(t)},I=(e,{item:n,index:r})=>{[c.LEFT,c.RIGHT,c.UP,c.DOWN].includes(e.keyCode)?((e,n)=>{switch(e){case c.LEFT:n>=1&&E(n-1);break;case c.RIGHT:n<t.length&&E(n+1);break;case c.UP:n>=w.current&&E(n-w.current);break;case c.DOWN:n<t.length-w.current&&E(n+w.current)}})(e.keyCode,r):c.SPACE===e.keyCode?(C(n),e.preventDefault()):c.ENTER===e.keyCode&&C(n),[c.LEFT,c.RIGHT,c.UP,c.DOWN,c.SPACE,c.ENTER].includes(e.keyCode)&&e.stopPropagation()};return(0,r.createElement)("div",{className:T},(0,r.createElement)("ul",{ref:_,className:x},t.map(((e,t)=>(0,r.createElement)(p.Z,{item:e,index:t,key:e.ID,onClick:P,onKeyDown:I,focus:t===y,isSelected:v.find((t=>t.ID===e.ID)),isCopying:n}))),0===t.length&&!a&&(0,r.createElement)(d,null),a&&(0,r.createElement)(u.Z,null),l&&!a&&(0,r.createElement)(s.Button,{isSecondary:!0,className:"jetpack-external-media-browser__loadmore",disabled:a||n,onClick:()=>{t.length&&E(t.length),g()}},__("Load More","jetpack"))),j&&(0,r.createElement)((()=>{const e=0===v.length||n,t=__(n?"Inserting…":"Select","jetpack");return(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__toolbar"},(0,r.createElement)(s.Button,{isPrimary:!0,isBusy:n,disabled:e,onClick:S},t))}),null))}},24985:function(e,t,n){"use strict";var r=n(63027),a=n(89105),o=n.n(a),i=n(87997),s=n(33163);const __=s.__;t.Z=function(e){const{item:t,focus:n,isSelected:a,isCopying:s=!1}=e,{thumbnails:l,caption:c,name:u,title:p,type:d,children:m=0}=t,{medium:h=null,fmt_hd:f=null}=l,g=p||c||u,b=o()({"jetpack-external-media-browser__media__item":!0,"jetpack-external-media-browser__media__item__selected":a,"jetpack-external-media-browser__media__folder":"folder"===d,"is-transient":s}),v=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n&&v.current.focus()}),[n]),(0,r.createElement)("li",{ref:v,className:b,onClick:s?void 0:t=>{const{item:n,index:r}=e;e.onClick&&e.onClick(t,{item:n,index:r})},onKeyDown:s?void 0:t=>{const{item:n,index:r}=e;e.onKeyDown&&e.onKeyDown(t,{item:n,index:r})},role:"checkbox",tabIndex:"0","aria-checked":!!a,"aria-disabled":!!s},a&&s&&(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator"},(0,r.createElement)(i.Spinner,null),(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator__label"},__("Inserting Image…","jetpack"))),(0,r.createElement)("img",{src:h||f,alt:g}),"folder"===d&&(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__info"},(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__name"},u),(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__count"},m)))}},13514:function(e,t,n){"use strict";var r=n(63027);t.Z=(0,r.memo)((function(){const e="jetpack-external-media-browser__media__item jetpack-external-media-browser__media__placeholder";return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:e}),(0,r.createElement)("div",{className:e}),(0,r.createElement)("div",{className:e}))}))},6694:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(9632),s=n(30029);const l=e=>e.unstableFeaturedImageFlow||e.modalClass&&-1!==e.modalClass.indexOf("featured-image"),c=e=>void 0===e.multiple&&!l(e);t.Z=function(e){const{mediaProps:t}=e,[n,r]=(0,o.useState)(null),u=(0,i.ZR)(n);return(0,o.createElement)("div",{onClick:e=>e.stopPropagation()},(0,o.createElement)(s.Z,a()({},e,{setSelectedSource:r,isReplace:c(t),isFeatured:l(t),hasImage:t.value>0})),u&&(0,o.createElement)(u,a()({onClose:e=>{e&&(e.stopPropagation(),e.target.closest(".jetpack-external-media-header__dropdown"))||r(null)}},t)))}},30029:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(33163),i=n(72390),s=n(77328);const __=o.__;t.Z=function(e){const{mediaProps:t,open:n,setSelectedSource:o,isFeatured:l,isReplace:c,hasImage:u}=e,p=t.render;let d=l,m=!1,h=!l;if(c)return(0,r.createElement)(s.Z,{originalButton:p,open:n,setSource:o});let f=__("Select Image","jetpack");return t.multiple&&(f=__("Select Images","jetpack")),t.allowedTypes.length>1&&(f=__("Select Media","jetpack")),l&&(f=__("Replace Image","jetpack"),d=!1,h=!1,m=!0),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Dropdown,{position:"bottom right",contentClassName:"jetpack-external-media-button-menu__options",renderToggle:({isOpen:e,onToggle:t})=>{const n=p&&p({open:t});return l&&u||n&&"string"!=typeof n.props.children?n:(0,r.createElement)(a.Button,{isPrimary:d,isSecondary:m,isTertiary:h,className:"jetpack-external-media-button-menu","aria-haspopup":"true","aria-expanded":e,onClick:t},f)},renderContent:({onClose:e})=>(0,r.createElement)(a.NavigableMenu,{"aria-label":f},(0,r.createElement)(a.MenuGroup,null,(0,r.createElement)(a.MenuItem,{icon:i.Z,onClick:()=>{e(),n()}},__("Media Library","jetpack")),(0,r.createElement)(s.Z,{open:n,setSource:o,onClick:e})))}))}},77328:function(e,t,n){"use strict";var r=n(63027),a=n(87997),o=n(9632);t.Z=function({originalButton:e=null,onClick:t=(()=>{}),open:n,setSource:i}){return(0,r.createElement)(r.Fragment,null,e&&e({open:n}),o.Dv.map((({icon:e,id:n,label:o})=>(0,r.createElement)(a.MenuItem,{icon:e,key:n,onClick:()=>{t(),i(n)}},o))))}},51964:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(791);const a={list:"/wpcom/v2/external-media/list/",copy:(0,n(42975).Wp)()?"/rest/v1.1/external-media-upload?service=":"/wpcom/v2/external-media/copy/",connection:"/wpcom/v2/external-media/connection/"};function o(e,t,n={}){return a[e]?(0,r.addQueryArgs)(a[e]+t,n):null}},23830:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(45395);const __=a.__;t.Z=(0,r.memo)((function(){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.JO,null),(0,r.createElement)("p",null,__("To get started, connect your site to your Google Photos library.","jetpack")),(0,r.createElement)("p",null,__("You can remove the connection in either of these places:","jetpack")),(0,r.createElement)("ul",null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://myaccount.google.com/security"},__("Google Security page","jetpack"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://wordpress.com/marketing/connections/"},__("WordPress.com Connections","jetpack")))))}))},50401:function(e,t,n){"use strict";var r=n(63027),a=n(33163);const __=a.__;t.Z=(0,r.memo)((function(){return(0,r.createElement)("p",null,__("Awaiting authorization","jetpack"))}))},78935:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(26804);const __=a.__;t.Z=(0,r.memo)((function({path:e,setPath:t}){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Button,{isTertiary:!0,onClick:()=>t(i.Tu)},__("Albums","jetpack")),"→   ",e.name)}))},30281:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(33804),s=n(26804),l=n(43925);const __=a.__;function c({value:e,updateFilter:t}){return(0,r.createElement)(o.SelectControl,{label:__("Category","jetpack"),value:e,options:s.tY,onChange:t})}function u({value:e,updateFilter:t}){const n=(null==e?void 0:e.range)||s.CY,[a,i]=(0,r.useState)(-1),[c,u]=(0,r.useState)(s.zs);return(0,r.createElement)("div",{className:"jetpack-external-media-date-filter"},(0,r.createElement)(o.SelectControl,{label:__("Filter by time period","jetpack"),value:n,options:s.QU,onChange:e=>t({range:e})}),n===s.yD&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.SelectControl,{label:__("Month","jetpack"),value:a,options:s.l5,onChange:i}),(0,r.createElement)(l.Z,{className:"components-base-control",label:__("Year","jetpack"),value:c,min:1970,onChange:u}),(0,r.createElement)(o.Button,{isSecondary:!0,disabled:(null==e?void 0:e.month)===a&&(null==e?void 0:e.year)===c,onClick:()=>{t({range:n,month:a,year:c})}},__("Apply","jetpack"))))}function p(){return(0,r.createElement)("span",null,__("Favorites","jetpack"))}function d({value:e,updateFilter:t}){const n=[{label:__("All","jetpack"),value:""},{label:__("Images","jetpack"),value:"photo"},{label:__("Videos","jetpack"),value:"video"}];return(0,r.createElement)(o.SelectControl,{label:__("Type","jetpack"),value:e,options:n,onChange:t})}function m({children:e,removeFilter:t,isRemovable:n=!1}){return(0,r.createElement)("div",{className:"jetpack-external-media-googlephotos-filter"},e,!!n&&(0,r.createElement)(o.Button,{onClick:t,isSmall:!0},__("Remove Filter","jetpack")))}t.Z=function({filters:e,setFilters:t,canChangeMedia:n}){const a=Object.keys(e).filter((e=>n||"mediaType"!==e)).map((n=>{return(0,r.createElement)(m,{key:n,removeFilter:()=>t((0,i.omit)(e,n))},(a=n,o=e[n],s=r=>t(function(e,t,n){const r={...e,[t]:n};return"mediaType"===t&&"video"===n?delete r.category:"category"===t&&"video"===r.mediaType&&delete r.mediaType,r}(e,n,r)),"category"===a?(0,r.createElement)(c,{value:o,updateFilter:s}):"date"===a?(0,r.createElement)(u,{value:o,updateFilter:s}):"favorite"===a?(0,r.createElement)(p,{value:o}):"mediaType"===a?(0,r.createElement)(d,{value:o,updateFilter:s}):null));var a,o,s}));return 0===a.length?null:a}},59129:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(12470),a=n.n(r),o=n(26804);const i=a()();function s(e){const{mediaType:t,category:n,favorite:r,date:s}=e,l=[];if(t&&l.push("mediaType="+t),n&&"video"!==t&&l.push("categoryInclude="+n),void 0!==r&&l.push("feature=favorite"),s){let e=null,t=null;switch(s.range){case o.Wm:e=a()(i).subtract(7,"days"),t=i;break;case o.Qh:e=a()(i).subtract(30,"days"),t=i;break;case o.Bb:e=a()(i).subtract(6,"months"),t=i;break;case o.En:e=a()(i).subtract(1,"year"),t=i;break;case o.yD:const n=parseInt(s.month),r=parseInt(s.year);isNaN(n)||isNaN(r)||(-1===n?(e=a()([r,0]),t=a()(e).endOf("year")):(e=a()([r,n]),t=a()(e).endOf("month")))}const n=e?e.format("YYYY-MM-DD"):"0000-00-00",r=t?t.format("YYYY-MM-DD"):"0000-00-00";l.push(`dateRange=${n}:${r}`)}return l.length>0?l:null}},56143:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997);const __=a.__,i=[{label:__("Category","jetpack"),value:"category"},{label:__("Date","jetpack"),value:"date"},{label:__("Favorites","jetpack"),value:"favorite"},{label:__("Media Type","jetpack"),value:"mediaType"}];function s(e){return i.filter((t=>void 0===e[t.value]))}function l(e){const t=s(e);return t.length>0?t[0].value:""}t.Z=function(e){const[t,n]=(0,r.useState)(l([])),{isLoading:a,isCopying:i,filters:c,canChangeMedia:u}=e,p=function(e,t){return t?e:e.filter((e=>"mediaType"!==e.value))}(s(c),u);return 0===p.length?null:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.SelectControl,{label:__("Filters","jetpack"),value:t,disabled:a||i,options:p,onChange:n}),(0,r.createElement)(o.Button,{disabled:a||i,isSecondary:!0,isSmall:!0,onClick:()=>{const r=(a=c,o=t,{...a,[o]:"favorite"===o||""});var a,o;e.setFilters(r),n(l(r))}},__("Add Filter","jetpack")))}},86912:function(e,t,n){"use strict";var r=n(63027),a=n(1373);t.Z=({account:e,setAuthenticated:t})=>{const{image:n,name:o}=e||{};return(0,r.createElement)("div",{className:"jetpack-external-media-header__account"},(0,r.createElement)("div",{className:"jetpack-external-media-header__account-info"},n&&(0,r.createElement)("img",{className:"jetpack-external-media-header__account-image",src:n,alt:"",height:"18",width:"18"}),o&&(0,r.createElement)("div",{className:"jetpack-external-media-header__account-name"},o)),(0,r.createElement)(a.Z,{setAuthenticated:t}))}},10648:function(e,t,n){"use strict";var r=n(63027),a=n(27864),o=n(37606),i=n.n(o),s=n(33163),l=n(87997),c=n(26804),u=n(51964),p=n(23830),d=n(50401);const __=s.__;t.Z=function(e){const{setAuthenticated:t}=e,[n,o]=(0,r.useState)(!1),s=(0,r.useCallback)((()=>{o(!0),i()({path:(0,u.k)("connection",c.iT)}).then((e=>{if(e.error)throw e.message;(0,a.Z)(e.connect_URL,(()=>{o(!1),t(!0)}))})).catch((()=>{o(!1)}))}),[t]);return(0,r.createElement)("div",{className:"jetpack-external-media-auth"},n?(0,r.createElement)(d.Z,null):(0,r.createElement)(p.Z,null),(0,r.createElement)(l.Button,{isPrimary:!0,disabled:n,onClick:s},__("Connect to Google Photos","jetpack")))}},1373:function(e,t,n){"use strict";var r=n(63027),a=n(37606),o=n.n(a),i=n(87997),s=n(33163),l=n(51964),c=n(26804);const __=s.__;t.Z=({setAuthenticated:e})=>{const[t,n]=(0,r.useState)(!1),a=(0,r.useCallback)((()=>{n(!0),o()({method:"DELETE",path:(0,l.k)("connection",c.iT)}).then((()=>e(!1))).catch((()=>n(!1)))}),[e]);return(0,r.createElement)(i.Button,{isSecondary:!0,className:"jetpack-external-media-browser__disconnect",onClick:a,disabled:t,isBusy:t},__("Disconnect from Google Photos","jetpack"))}},80391:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(26804),s=n(60743),l=n(51964),c=n(30281),u=n(56143),p=n(86912),d=n(78935),m=n(59129);const __=a.__;t.Z=function(e){const{account:t,allowedTypes:n,copyMedia:a,getMedia:h,isCopying:f,isLoading:g,media:b,multiple:v,onChangePath:k,pageHandle:y,path:E,setAuthenticated:w,showAdditionalFilters:_=!1}=e,C=(S=n)&&1===S.length&&"image"===S[0];var S;const[j,x]=(0,r.useState)(C?{mediaType:"photo",date:{range:i.CY}}:{date:{range:i.CY}}),T=(0,r.useRef)(""),N=(0,r.useRef)(""),A=E.ID===i.oI?(0,m.Z)(j):null,P={number:20,path:E.ID};A&&(P.filter=A);const I=(0,l.k)("list",i.iT,P),M=(0,r.useCallback)(((e,t=!1)=>{h(I,t)}),[h,I]),B=(0,r.useCallback)((e=>{const t=b.find((t=>t.ID===e));N.current=E,k(t||{ID:e})}),[b,k,N,E]),R=(0,r.useCallback)((e=>{a(e,(0,l.k)("copy",i.iT),i.iT)}),[a]);return(0,r.useEffect)((()=>{T!==I&&(T.current=I,M({},E!==N.current))}),[T,I,M,E]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__google"},(0,r.createElement)("div",{className:"jetpack-external-media-header__view"},(0,r.createElement)(o.SelectControl,{className:"jetpack-external-media-header__select",label:__("View","jetpack"),value:E.ID!==i.oI?i.Tu:i.oI,disabled:g||f,options:i.OG,onChange:B}),_&&E.ID===i.oI&&(0,r.createElement)(u.Z,{filters:j,isLoading:g,setFilters:x,canChangeMedia:!C}),(0,r.createElement)("div",{className:"jetpack-external-media-header__filter"},E.ID===i.oI&&(0,r.createElement)(c.Z,{filters:j,isLoading:g,setFilters:x,canChangeMedia:!C}),E.ID!==i.oI&&E.ID!==i.Tu&&(0,r.createElement)(d.Z,{path:E,setPath:B})),(!g||b.length>0)&&(0,r.createElement)(p.Z,{account:t,setAuthenticated:w})),(0,r.createElement)(s.Z,{className:"jetpack-external-media-browser__google",key:I,media:b,isCopying:f,isLoading:g,nextPage:M,onCopy:R,pageHandle:y,multiple:v,setPath:B}))}},86082:function(e,t,n){"use strict";var r=n(63027),a=n(62358),o=n(10648),i=n(80391);t.Z=(0,a.Z)()((function(e){return e.isAuthenticated?(0,r.createElement)(i.Z,e):(0,r.createElement)(o.Z,e)}))},9632:function(e,t,n){"use strict";n.d(t,{Dv:function(){return c},ZR:function(){return u}});var r=n(63027),a=n(33163),o=n(45395),i=n(86082),s=n(26933),l=n(26804);const __=a.__,c=[{id:l.iT,label:__("Google Photos","jetpack"),icon:(0,r.createElement)(o.He,{className:"components-menu-items__item-icon"}),keyword:"google photos"},{id:l.wk,label:__("Pexels Free Photos","jetpack"),icon:(0,r.createElement)(o.yk,{className:"components-menu-items__item-icon"}),keyword:"pexels"}];function u(e){return e===l.wk?s.Z:e===l.iT?i.Z:null}},26933:function(e,t,n){"use strict";var r=n(63027),a=n(33163),o=n(87997),i=n(33804),s=n(26804),l=n(62358),c=n(60743),u=n(51964);const __=a.__;t.Z=(0,l.Z)()((function(e){const{media:t,isCopying:n,isLoading:a,pageHandle:l,multiple:p,copyMedia:d,getMedia:m}=e,[h,f]=(0,r.useState)((0,i.sample)(s.h9)),[g,b]=(0,r.useState)(""),v=(0,r.useCallback)((e=>{d(e,(0,u.k)("copy",s.wk),s.wk)}),[d]),k=(0,r.useCallback)(((e,t=!1)=>{h&&m((0,u.k)("list",s.wk,{number:20,path:"recent",search:h}),t)}),[m,h]),y=(0,r.useRef)(),E=(0,r.useCallback)((e=>{e.preventDefault(),b(h),k(e,!0),y.current=h}),[k,h]);(0,r.useEffect)(k,[k]);const w=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(!w.current)return;const e=Array.from(w.current.elements).find((e=>"search"===e.type));e&&(e.focus(),e.select())}),[]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__pexels"},(0,r.createElement)("form",{ref:w,className:"jetpack-external-media-header__pexels",onSubmit:E},(0,r.createElement)(o.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:h,onChange:f,disabled:!!n}),(0,r.createElement)(o.Button,{isPrimary:!0,onClick:E,type:"submit",disabled:!h.length||h===y.current||n},__("Search","jetpack"))),(0,r.createElement)(c.Z,{key:g,className:"jetpack-external-media-browser__pexels",media:t,isCopying:n,isLoading:a,nextPage:k,onCopy:v,pageHandle:l,multiple:p}))}))},62358:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(43197),a=n.n(r),o=n(63027),i=n(33804),s=n(89105),l=n.n(s),c=n(37606),u=n.n(c),p=n(51417),d=n(87997),m=n(33163),h=n(23983),f=n(65707),g=n(26804);const __=m.__;function b(){return(0,p.createHigherOrderComponent)((e=>{class t extends o.Component{constructor(e){super(e),a()(this,"contentRef",(e=>{e?(this.contentElement=e,this.modalElement=e.closest(".jetpack-external-media-browser"),this.modalElement&&this.modalElement.addEventListener("keydown",this.stopArrowKeysPropagation)):this.modalElement&&(this.modalElement.removeEventListener("keydown",this.stopArrowKeysPropagation),this.modalElement=null,this.contentElement=null)})),a()(this,"stopArrowKeysPropagation",(e=>{[h.UP,h.DOWN,h.LEFT,h.RIGHT].includes(e.keyCode)&&!e.target.classList.contains("jetpack-external-media-browser__media__item")&&e.stopPropagation()})),a()(this,"setAuthenticated",(e=>this.setState({isAuthenticated:e}))),a()(this,"getMedia",((e,t=!1)=>{this.state.isLoading||(t&&this.props.noticeOperations.removeAllNotices(),this.setState({account:t?this.defaultAccount:this.state.account,isLoading:!0,media:t?[]:this.state.media,nextHandle:!t&&this.state.nextHandle},(()=>this.getMediaRequest(e))))})),a()(this,"handleApiError",(e=>{var t;if("authorization_required"===e.code)return void this.setState({isAuthenticated:!1,isLoading:!1,isCopying:!1});null!==(t=e.errors)&&void 0!==t&&t.length&&(e={code:e.errors[0].error,message:e.errors[0].message});const{noticeOperations:n}=this.props;n.createErrorNotice("internal_server_error"===e.code?"Internal server error":e.message),this.setState({isLoading:!1,isCopying:!1})})),a()(this,"getMediaRequest",(e=>{const{nextHandle:t,media:n}=this.state;if(!1===t&&n.length>0)return void this.setState({isLoading:!1});const r=this.getRequestUrl(e);this.setAuthenticated(!0),u()({path:r,method:"GET",parse:void 0===window.wpcomFetch}).then((e=>{this.setState({account:e.meta.account,media:this.mergeMedia(n,e.media),nextHandle:e.meta.next_page,isLoading:!1})})).catch(this.handleApiError)})),a()(this,"copyMedia",((e,t,n)=>{var r;this.setState({isCopying:e}),this.props.noticeOperations.removeAllNotices(),this.modalElement&&this.modalElement.focus(),u()({path:t,method:"POST",data:{external_ids:e.map((e=>e.guid)),media:e.map((e=>({guid:e.guid,caption:e.caption,title:e.title}))),service:n,post_id:null!==(r=this.props.postId)&&void 0!==r?r:0}}).then((e=>{e.media&&(e=e.media.map((e=>({alt:e.alt,caption:e.caption,id:e.ID,type:"image",url:e.URL}))));const{value:t,addToGallery:n,multiple:r}=this.props,a=r?e:e[0],o=e.find((e=>e.errors));if(o){const{errors:e}=o,t=Object.keys(e)[0];this.handleApiError({code:t,message:e[t]})}else this.props.onClose(),this.props.onSelect(n?t.concat(e):a)})).catch(this.handleApiError)})),a()(this,"onChangePath",((e,t)=>{this.setState({path:e},t)})),this.defaultAccount={image:"",name:""},this.state={account:this.defaultAccount,media:[],nextHandle:!1,isLoading:!1,isCopying:null,isAuthenticated:!0,path:{ID:g.oI}}}mergeMedia(e,t){return(0,i.uniqBy)(e.concat(t),"ID")}getRequestUrl(e){const{nextHandle:t}=this.state;return t?e+"&page_handle="+encodeURIComponent(t):e}render(){const{account:t,isAuthenticated:n,isCopying:r,isLoading:a,media:i,nextHandle:s,path:c}=this.state,{allowedTypes:u,multiple:p=!1,noticeUI:m,onClose:h}=this.props,f=__(r?"Inserting media":"Select media","jetpack"),g=__(r?"When the media is finished copying and inserting, you will be returned to the editor.":"Select the media you would like to insert into the editor.","jetpack"),b="jetpack-external-media-browser__description",v=l()({"jetpack-external-media-browser":!0,"jetpack-external-media-browser--is-copying":r});return(0,o.createElement)(d.Modal,{onRequestClose:h,title:f,aria:{describedby:b},className:v},(0,o.createElement)("div",{ref:this.contentRef},m,(0,o.createElement)("p",{id:b,className:"jetpack-external-media-browser--visually-hidden"},g),(0,o.createElement)(e,{account:t,getMedia:this.getMedia,copyMedia:this.copyMedia,isCopying:r,isLoading:a,media:i,pageHandle:s,allowedTypes:u,isAuthenticated:n,setAuthenticated:this.setAuthenticated,multiple:p,path:c,onChangePath:this.onChangePath})))}}return(0,f.withSelect)((e=>({postId:e("core/editor").getCurrentPostId()})))((0,d.withNotices)(t))}))}},29543:function(e,t,n){"use strict";n.d(t,{Qu:function(){return i}});var r=n(33804),a=n(94696);function o(){return(0,r.get)((0,a.Z)(),["allowedMimeTypes"],[])}function i(e,t){if(!e||!t)return!1;if(!o())return!1;const n=(a=t)?(0,r.pickBy)(o(),(e=>(0,r.startsWith)(e,`${a}/`))):{};var a;const i=(s=n)?(0,r.flatten)((0,r.map)((0,r.keys)(s),(e=>e.split("|")))):[];var s;if("string"==typeof e){const t=e.split(".").pop();return t&&i.includes(t)}return"object"==typeof e&&(e.type&&(0,r.values)(n).includes(e.type))}},36012:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9314);function a(...e){const t=(0,r.getCategories)();for(const n of e)if(t.some((({slug:e})=>e===n)))return n;throw new Error(`Could not find a category from the provided list: ${e.join(",")}`)}},23691:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(791);function a(e,t){if(!(0,r.isURL)(t))return null;let n=t;try{const a=(0,r.getQueryArg)(t,"state"),o=JSON.parse(atob(a));if(e)o.from_editor_post_id=e;else{const e=new URLSearchParams(window.location.search);o.from_site_editor_post_id=e.get("postId"),o.from_site_editor_post_type=e.get("postType")}n=(0,r.addQueryArgs)(t,{state:btoa(JSON.stringify(o))})}catch(a){0}return n}},94696:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(33804);function a(){return(0,r.get)("object"==typeof window?window:null,["Jetpack_Editor_Initial_State"],null)}},36905:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(33804),a=n(94696);function o(e){const t=(0,a.Z)(),n=(0,r.get)(t,["available_blocks",e,"available"],!1),o=(0,r.get)(t,["available_blocks",e,"unavailable_reason"],"unknown"),i=(0,r.get)(t,["available_blocks",e,"details"],[]);return{available:n,...!n&&{details:i,unavailableReason:o}}}},92754:function(e,t,n){"use strict";function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,{Z:function(){return r}})},83353:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(33804);const a=(e,t)=>(0,r.reduce)(t,((t,n,r)=>{if(void 0===e[r])return t;const{type:a,validator:o,validValues:i,default:s}=e[r];return t[r]="boolean"===a?"false"!==n&&!!n:o?o(n)?n:s:i?i.includes(n)?n:s:n,t}),{})},52684:function(e,t,n){"use strict";var r=n(78900),a=n.n(r),o=n(63027),i=n(89105),s=n.n(i),l=n(1343),c=n.n(l);t.Z=({children:e=null,isError:t=!1,...n})=>{const r=s()("help-message",{"help-message-is-error":t});return e&&(0,o.createElement)("div",a()({className:r},n),t&&(0,o.createElement)(c(),{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),(0,o.createElement)("span",null,e))}},45395:function(e,t,n){"use strict";n.d(t,{He:function(){return d},yk:function(){return m},JO:function(){return h},IM:function(){return f},zf:function(){return E},Ae:function(){return w},K9:function(){return _},Xu:function(){return C},VV:function(){return S},_z:function(){return j},Qv:function(){return x},av:function(){return T},Pw:function(){return N}});var r=n(78900),a=n.n(r),o=n(63027),i=n(87997),s=n(89105),l=n.n(s),c=n(27655),u=n(32750);const p=c.O["Jetpack Green 40"],d=e=>(0,o.createElement)(i.SVG,a()({height:"24",width:"24",viewBox:"1.2 10.8 169.6 169.6",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)(i.Path,{d:"m43.6 49.4c23.4 0 42.4 19 42.4 42.4v3.9h-80.9c-2.1 0-3.8-1.7-3.9-3.9 0-23.4 19-42.4 42.4-42.4z",fill:"#f6bc04"}),(0,o.createElement)(i.Path,{d:"m132.2 53.2c0 23.4-19 42.4-42.4 42.4h-3.8v-80.9c0-2.1 1.7-3.9 3.8-3.9 23.5 0 42.4 19 42.4 42.4z",fill:"#ea4335"}),(0,o.createElement)(i.Path,{d:"m128.4 141.9c-23.4 0-42.4-19-42.4-42.4v-3.9h80.9c2.1 0 3.9 1.7 3.9 3.8 0 23.5-19 42.5-42.4 42.5z",fill:"#4285f4"}),(0,o.createElement)(i.Path,{d:"m39.8 138c0-23.4 19-42.4 42.4-42.4h3.8v80.9c0 2.1-1.7 3.8-3.9 3.9-23.4 0-42.3-19-42.3-42.4z",fill:"#34a853"})),m=e=>(0,o.createElement)(i.SVG,a()({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),(0,o.createElement)(i.Path,{d:"M14 7H9v10h3.9v-3.8H14c1.7 0 3.1-1.4 3.1-3.1C17.2 8.4 15.8 7 14 7z"}),(0,o.createElement)(i.Path,{d:"M20.5 2h-17C2.7 2 2 2.7 2 3.5v17c0 .8.7 1.5 1.5 1.5h17c.8 0 1.5-.7 1.5-1.5v-17c0-.8-.7-1.5-1.5-1.5zm-5.6 13.2V19H7V5h7c2.8 0 5.1 2.3 5.1 5.1.1 2.5-1.8 4.7-4.2 5.1z"})),h=()=>{const e="#757575";return(0,o.createElement)(i.SVG,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/SVG",x:"0px",y:"0px",viewBox:"0 0 1292 448",style:{enableBackground:"new 0 0 1292 448"}},(0,o.createElement)(i.G,{id:"Icon"},(0,o.createElement)(i.Path,{class:"st0",fill:"#F6B704",d:"M171.6,177.4c23.4,0,42.4,19,42.4,42.4v3.9h-80.9c-2.1,0-3.8-1.7-3.9-3.9C129.2,196.4,148.2,177.4,171.6,177.4 C171.6,177.4,171.6,177.4,171.6,177.4z"}),(0,o.createElement)(i.Path,{class:"st1",fill:"#E54335",d:"M260.2,181.2c0,23.4-19,42.4-42.4,42.4H214v-80.9c0-2.1,1.7-3.9,3.8-3.9h0 C241.3,138.8,260.2,157.8,260.2,181.2C260.2,181.2,260.2,181.2,260.2,181.2z"}),(0,o.createElement)(i.Path,{class:"st2",fill:"#4280EF",d:"M256.4,269.9c-23.4,0-42.4-19-42.4-42.4v-3.9h80.9c2.1,0,3.9,1.7,3.9,3.8v0 C298.8,250.9,279.8,269.9,256.4,269.9C256.4,269.9,256.4,269.9,256.4,269.9z"}),(0,o.createElement)(i.Path,{class:"st3",fill:"#34A353",d:"M167.8,266c0-23.4,19-42.4,42.4-42.4c0,0,0,0,0,0h3.9v80.9c0,2.1-1.7,3.8-3.9,3.9 C186.7,308.4,167.8,289.4,167.8,266z"})),(0,o.createElement)(i.G,{id:"Photos"},(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M796,272v-91.6h31.2c15.2,0,28.7,11.3,28.7,27.3s-13.4,27.3-28.7,27.3h-19.4V272H796z M827.5,223.6 c8.8,0,16-7.2,16-16s-7.2-16-16-16h-19.7v32H827.5z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M875.8,209.3l-0.5,8.7h0.5c3.3-5.8,11.3-10.8,19.8-10.8c16,0,23.9,10.9,23.9,26.4V272h-11.8v-36.6 c0-13-6.5-17.4-15.5-17.4c-10.2,0-16.5,9.7-16.5,19.3V272H864v-91.6h11.8V209.3z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M993.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4S993.8,221.6,993.8,240.6z M982,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S982,255,982,240.6L982,240.6z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M1008,252.9V220h-11v-10.7h11v-19.2h11.8v19.2h15.3V220h-15.3v32c0,7,2.9,10.2,8.4,10.2c1.8,0.1,3.7-0.3,5.4-1 l4.1,10.1c-3,1.2-6.2,1.8-9.5,1.7C1015,273,1008,265.7,1008,252.9z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M1105.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4 S1105.8,221.6,1105.8,240.6z M1094,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S1094,255,1094,240.6 L1094,240.6z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M1111,256.1l10.5-4.4c3.3,7.9,9.5,11.8,17,11.8c7.3,0,12.5-3.6,12.5-8.8c0-3.2-1.9-6.6-8.6-8.3l-12.7-3.1 c-5.8-1.4-16.8-6.4-16.8-17.4c0-11.4,11.8-18.7,24.8-18.7c10.9,0,20.3,5,24.2,14.6l-10.2,4.2c-2.4-5.9-8.2-8.3-14.3-8.3 c-6.7,0-12.4,3-12.4,8.1c0,4,3.3,6.1,8.3,7.3l12.4,2.9c12.4,2.9,17.3,10.6,17.3,18.3c0,11.1-10,19.7-24.7,19.7 C1123.2,274,1114.7,265.1,1111,256.1z"})),(0,o.createElement)(i.G,{id:"Google"},(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M348.7,221.6c0-28.9,24.3-52.5,53.2-52.5c13.5-0.2,26.4,5,36,14.5l-10.1,10.1c-6.9-6.7-16.2-10.4-25.9-10.2 c-21.1,0-37.6,17-37.6,38.2s16.5,38.1,37.6,38.1c13.7,0,21.5-5.5,26.5-10.5c4.1-4.1,6.8-10,7.8-18H402v-14.4h48.3 c0.5,3,0.8,6,0.8,9c0,10.8-2.9,24.1-12.4,33.5c-9.2,9.6-21,14.7-36.6,14.7C373,274,348.7,250.5,348.7,221.6z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M490,206.5c-18.7,0-33.9,14.2-33.9,33.8S471.3,274,490,274s33.9-14.3,33.9-33.8S508.7,206.5,490,206.5z M490,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S500.2,260.7,490,260.7z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M564,206.5c-18.7,0-33.9,14.2-33.9,33.8S545.3,274,564,274s33.9-14.3,33.9-33.8S582.7,206.5,564,206.5z M564,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S574.2,260.7,564,260.7z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M654.8,208.5v5.5h-0.5c-3.3-4-9.7-7.6-17.8-7.6c-16.9,0-32.4,14.9-32.4,33.9s15.5,33.7,32.4,33.7 c8.1,0,14.5-3.6,17.8-7.7h0.5v4.9c0,12.9-6.9,19.8-18,19.8c-9.1,0-14.7-6.5-17-12l-12.9,5.4c5,12.1,16.8,20.1,30,20 c17.4,0,32.1-10.2,32.1-35.2v-60.7H654.8z M637.8,260.7c-10.2,0-18.8-8.6-18.8-20.4s8.6-20.6,18.8-20.6s18,8.7,18,20.6 S647.9,260.7,637.8,260.7L637.8,260.7z"}),(0,o.createElement)(i.Rect,{x:"679.2",y:"172.7",class:"st4",fill:e,width:"14.8",height:"99.3"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M734.7,260.7c-7.6,0-12.9-3.5-16.4-10.2l45.2-18.7L762,228c-2.8-7.6-11.4-21.5-28.9-21.5s-31.9,13.7-31.9,33.8 c0,19,14.3,33.8,33.5,33.8c11.3,0.1,21.9-5.6,28.2-15l-11.5-7.7C747.5,257,742.3,260.7,734.7,260.7z M733.6,219.5 c5.9,0,10.9,2.9,12.5,7.2l-30.2,12.5C715.5,226.2,726,219.5,733.6,219.5L733.6,219.5z"})))},f=({size:e=24,className:t})=>(0,o.createElement)(i.SVG,{className:l()("jetpack-logo",t),width:e,height:e,viewBox:"0 0 32 32"},(0,o.createElement)(i.Path,{className:"jetpack-logo__icon-circle",fill:p,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),(0,o.createElement)(i.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),(0,o.createElement)(i.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "})),g=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M20.007 3H3.993C3.445 3 3 3.445 3 3.993v16.013c0 .55.445.994.993.994h8.62v-6.97H10.27V11.31h2.346V9.31c0-2.325 1.42-3.59 3.494-3.59.993 0 1.847.073 2.096.106v2.43h-1.438c-1.128 0-1.346.537-1.346 1.324v1.734h2.69l-.35 2.717h-2.34V21h4.587c.548 0 .993-.445.993-.993V3.993c0-.548-.445-.993-.993-.993z"}))),b=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"}))),v=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))),k=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))),y=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05h-9.36z"}))),E={foreground:(0,u.m)(),src:(0,o.createElement)(i.SVG,{viewBox:"0 0 100 100"},(0,o.createElement)(i.Path,{d:"M100,44H72.4l23.9-13.8l-6-10.4L66.4,33.6L80.2,9.7l-10.4-6L56,27.59V0H44v27.6L30.2,3.7l-10.4,6l13.8,23.9 L9.7,19.8l-6,10.4L27.6,44H0V56h27.6L3.7,69.8l6,10.4l23.9-13.8L19.8,90.3l10.4,6L44,72.4V100H56V72.41l13.8,23.9l10.4-6L66.4,66.4 l23.9,13.8l6-10.4L72.4,56H100V44z M50,65.23c-8.41,0-15.23-6.82-15.23-15.23c0-8.41,6.82-15.23,15.23-15.23S65.23,41.59,65.23,50 C65.23,58.41,58.41,65.23,50,65.23z"}))},w={foreground:(0,u.m)(),src:(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20.7 17",xmlSpace:"preserve"},(0,o.createElement)(i.Path,{d:"m20.7 12.9-.9-11c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5L1.9 0h-.1c-.2 0-.5 0-.7.1C.9.2.7.4.5.5.4.7.2.9.1 1.1c-.1.2-.1.5-.1.7v.1l.9 13.4c0 .5.2.9.5 1.3.3.2.8.4 1.3.4H3l16.1-2c.4 0 .9-.3 1.1-.6.3-.3.5-.8.5-1.2v-.3zm-3.1.8L4.2 15.3H4c-.4 0-.8-.1-1-.4-.3-.3-.4-.6-.5-1L1.7 3.2v-.1c0-.4.2-.8.5-1 .3-.3.7-.4 1-.4h.1l13.5.1c.4 0 .8.1 1 .4.3.3.4.6.5 1L19 12v.3c0 .4-.2.7-.4 1-.3.2-.6.4-1 .4z"}))},_={foreground:(0,u.m)(),src:(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})))},C=((0,u.m)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M15.9216 2H2.98533C2.43803 2 1.99023 2.45 1.99023 3V17L5.97062 13H15.9216C16.4689 13 16.9167 12.55 16.9167 12V3C16.9167 2.45 16.4689 2 15.9216 2ZM14.9265 4V11H5.14469L3.98043 12.17V4H14.9265ZM18.9069 6H20.8971C21.4444 6 21.8922 6.45 21.8922 7V22L17.9118 18H6.96572C6.41842 18 5.97062 17.55 5.97062 17V15H18.9069V6Z"}))),(0,u.m)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M3.98042 2H19.9019C20.9965 2 21.8921 2.9 21.8921 4V16C21.8921 17.1 20.9965 18 19.9019 18H5.97061L1.99023 22V4C1.99023 2.9 2.88582 2 3.98042 2ZM5.97061 16H19.9019V4H3.98042V18L5.97061 16Z"}))),{foreground:(0,u.m)(),src:(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M11.1114 8H20.0002M11.1113 15H20.0002",stroke:(0,u.m)(),strokeWidth:"1.5"}),(0,o.createElement)(i.Path,{d:"M4 10V6L8 8L4 10Z",fill:(0,u.m)()}),(0,o.createElement)(i.Path,{d:"M4 17V13L8 15L4 17Z",fill:(0,u.m)()})))}),S={foreground:(0,u.m)(),src:(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M4 12V4L11 8L4 12Z"}),(0,o.createElement)(i.Path,{d:"M4 14.5H20V16H4V14.5Z"}),(0,o.createElement)(i.Path,{d:"M4 18.5H13V20H4V18.5Z"})))},j=((0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M2.5 7.5V4.5H15.5V7.5H10.5V19.5H7.5V7.5H2.5ZM12.5 9.5H21.5V12.5H18.5V19.5H15.5V12.5H12.5V9.5Z"})),(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M12.7049 2V6C8.30658 6 4.74414 9.58 4.74414 14C4.74414 18.42 8.30658 22 12.7049 22C17.1032 22 20.6656 18.42 20.6656 14H18.6755C18.6755 17.31 15.9987 20 12.7049 20C9.41113 20 6.73433 17.31 6.73433 14C6.73433 10.69 9.41113 8 12.7049 8V12L17.6804 7L12.7049 2ZM11.6501 12.73L11.4013 14.9L12.068 15.06C12.0753 15.0526 12.0827 15.0447 12.0901 15.0366C12.1131 15.0116 12.1375 14.9851 12.1675 14.97C12.1874 14.96 12.2073 14.9475 12.2272 14.935C12.2471 14.9225 12.2671 14.91 12.287 14.9C12.3268 14.88 12.3865 14.86 12.4362 14.85C12.486 14.84 12.5556 14.83 12.6352 14.83C12.7447 14.83 12.8542 14.85 12.9338 14.88C13.0134 14.91 13.083 14.96 13.1427 15.03C13.2024 15.1 13.2422 15.17 13.2721 15.27C13.302 15.37 13.3119 15.47 13.3119 15.58V15.58C13.3119 15.69 13.3119 15.79 13.2821 15.89C13.2522 15.99 13.2124 16.07 13.1726 16.14C13.1328 16.21 13.0631 16.27 12.9935 16.31C12.9238 16.35 12.8343 16.37 12.7248 16.37C12.5556 16.37 12.4163 16.31 12.3069 16.22C12.1974 16.13 12.1377 15.99 12.1178 15.81H11.2819C11.2819 16.01 11.3317 16.19 11.4113 16.34C11.4909 16.49 11.5904 16.63 11.7297 16.73C11.869 16.83 12.0183 16.92 12.1874 16.97C12.3566 17.02 12.5357 17.05 12.7148 17.05C12.9636 17.05 13.1726 17 13.3517 16.93C13.5308 16.86 13.6801 16.75 13.7995 16.62C13.9189 16.49 14.0085 16.34 14.0682 16.17C14.1279 16 14.1577 15.82 14.1577 15.63C14.1577 15.41 14.1179 15.21 14.0682 15.03C14.0184 14.85 13.9289 14.7 13.8194 14.58C13.7099 14.46 13.5706 14.37 13.4114 14.3C13.2522 14.23 13.0731 14.2 12.8641 14.2C12.7945 14.2 12.7248 14.21 12.6651 14.22C12.6352 14.225 12.6054 14.2325 12.5755 14.24C12.5457 14.2475 12.5158 14.255 12.486 14.26C12.4263 14.27 12.3765 14.29 12.3367 14.31C12.3201 14.3183 12.3035 14.325 12.2876 14.3313C12.2654 14.3401 12.2446 14.3483 12.2272 14.36L12.3367 13.44H14.0284V12.73H11.6501Z"}))),x=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M11.9412 2V6C16.3395 6 19.902 9.58 19.902 14C19.902 18.42 16.3395 22 11.9412 22C7.54291 22 3.98047 18.42 3.98047 14H5.97066C5.97066 17.31 8.64746 20 11.9412 20C15.235 20 17.9118 17.31 17.9118 14C17.9118 10.69 15.235 8 11.9412 8V12L6.96575 7L11.9412 2ZM10.8864 12.73L10.6376 14.9L11.3044 15.06C11.3117 15.0526 11.319 15.0447 11.3264 15.0366C11.3494 15.0116 11.3738 14.9851 11.4039 14.97C11.4238 14.96 11.4437 14.9475 11.4636 14.935C11.4835 14.9225 11.5034 14.91 11.5233 14.9C11.5631 14.88 11.6228 14.86 11.6725 14.85C11.7223 14.84 11.792 14.83 11.8716 14.83C11.981 14.83 12.0905 14.85 12.1701 14.88C12.2497 14.91 12.3194 14.96 12.3791 15.03C12.4388 15.1 12.4786 15.17 12.5084 15.27C12.5383 15.37 12.5482 15.47 12.5482 15.58V15.58C12.5482 15.69 12.5482 15.79 12.5184 15.89C12.4885 15.99 12.4487 16.07 12.4089 16.14C12.3691 16.21 12.2995 16.27 12.2298 16.31C12.1601 16.35 12.0706 16.37 11.9611 16.37C11.792 16.37 11.6526 16.31 11.5432 16.22C11.4337 16.13 11.374 15.99 11.3541 15.81H10.5182C10.5182 16.01 10.568 16.19 10.6476 16.34C10.7272 16.49 10.8267 16.63 10.966 16.73C11.1053 16.83 11.2546 16.92 11.4238 16.97C11.5929 17.02 11.7721 17.05 11.9512 17.05C12.1999 17.05 12.4089 17 12.588 16.93C12.7672 16.86 12.9164 16.75 13.0358 16.62C13.1552 16.49 13.2448 16.34 13.3045 16.17C13.3642 16 13.3941 15.82 13.3941 15.63C13.3941 15.41 13.3543 15.21 13.3045 15.03C13.2547 14.85 13.1652 14.7 13.0557 14.58C12.9463 14.46 12.807 14.37 12.6477 14.3C12.4885 14.23 12.3094 14.2 12.1004 14.2C12.0308 14.2 11.9611 14.21 11.9014 14.22C11.8716 14.225 11.8417 14.2325 11.8119 14.24C11.782 14.2475 11.7522 14.255 11.7223 14.26C11.6626 14.27 11.6128 14.29 11.573 14.31C11.5564 14.3183 11.5398 14.325 11.5239 14.3313C11.5017 14.3401 11.481 14.3483 11.4636 14.36L11.573 13.44H13.2647V12.73H10.8864Z"})),T=({serviceName:e,className:t})=>{const n={className:l()("jetpack-gutenberg-social-icon",`is-${e}`,t),size:24};switch(e){case"facebook":return(0,o.createElement)(i.Icon,a()({icon:g},n));case"twitter":return(0,o.createElement)(i.Icon,a()({icon:b},n));case"linkedin":return(0,o.createElement)(i.Icon,a()({icon:v},n));case"tumblr":return(0,o.createElement)(i.Icon,a()({icon:k},n));case"google":return(0,o.createElement)(i.Icon,a()({icon:y},n))}return null},N=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,o.createElement)(i.Path,{d:"M7 2v11h3v9l7-12h-4l4-8z",fill:"currentColor"}))},95767:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(33804),a=n(94696);function o(){return(0,r.get)((0,a.Z)(),["jetpack","is_active"],!1)}},5874:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(33804),a=n(94696);function o(){return(0,r.get)((0,a.Z)(),["jetpack","is_current_user_connected"],!1)}},36e3:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(33804),a=n(94696);function o(){return(0,r.get)((0,a.Z)(),["jetpack","is_offline_mode"],!1)}},76725:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(33163),o=n(87997),i=n(51200),s=n(54849);const __=a.__,{Fill:l,Slot:c}=(0,o.createSlotFill)("JetpackLikesAndSharingPanel");(0,i.registerPlugin)("jetpack-likes-and-sharing-panel",{render:()=>(0,r.createElement)(c,null,(e=>e.length?(0,r.createElement)(s.Z,null,(0,r.createElement)(o.PanelBody,{title:__("Likes and Sharing","jetpack")},e)):null))})},54849:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63027),a=n(87997),o=n(47649),i=n(51200),s=n(45395);const{Fill:l,Slot:c}=(0,a.createSlotFill)("Jetp
21
  object-assign
22
  (c) Sindre Sorhus
23
  @license MIT