kollapsminoriteten/wp-content/plugins/jetpack/_inc/blocks/editor.js

128 lines
1.4 MiB
JavaScript
Raw Normal View History

2022-04-02 10:26:41 +02:00
/*! For license information please see editor.js.LICENSE.txt */
2025-12-12 13:13:07 +01:00
(()=>{var e={9:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(91793),s=r(86087);const o=window?.Jetpack_Editor_Initial_State?.tracksUserData||null,a=parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId)||0,i=()=>((0,s.useEffect)(()=>{o&&n.A.initialize(o?.userid,o?.username,a?{blog_id:a}:{})},[]),n.A)},25:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(94715),s=r(56427),o=r(86087),a=r(27723),i=r(88948),l=r(48558),c=r(10790);const __=a.__,u=({tockUrl:e,setEditedUrl:t,setUrl:r,cancel:n})=>{const a=(0,o.useRef)(!0),u=(0,o.useRef)(!1),d=e=>{r(),u.current=!0,e()};return(0,c.jsx)(s.ToolbarGroup,{children:(0,c.jsx)(s.Dropdown,{popoverProps:{variant:"toolbar"},onClose:()=>u.current?u.current=!1:n(),placement:"bottom-start",renderToggle:({isOpen:t,onToggle:r})=>(!a.current||t||e||(a.current=!1,r()),(0,c.jsx)(s.ToolbarButton,{className:"components-toolbar__control",label:__("Edit Tock business name","jetpack"),onClick:()=>{r(),t&&n()},children:__("Edit","jetpack")})),renderContent:({onClose:r})=>(0,c.jsx)(s.BaseControl,{className:"jetpack-tock-url-settings",help:(0,o.createInterpolateElement)(__("The Tock business can be found in the URL of your public Tock page. For example: www.exploretock.com/<b>myname</b>","jetpack"),{b:(0,c.jsx)("strong",{})}),__nextHasNoMarginBottom:!0,children:(0,c.jsxs)("div",{className:"jetpack-tock-url-input-wrapper",children:[(0,c.jsx)(s.TextControl,{placeholder:__("Add Tock business name","jetpack"),onChange:t,value:e,onKeyDownCapture:t=>((t,r)=>{const{keyCode:s}=t;s===l.ENTER&&""!==e&&(t.preventDefault(),d(r)),s===l.ESCAPE&&(t.preventDefault(),n(),r())})(t,r),className:"jetpack-tock-url-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,c.jsx)("div",{className:"jetpack-tock-url-input-action",children:(0,c.jsx)(s.Button,{type:"submit",label:__("Submit","jetpack"),icon:i.A,className:"jetpack-tock-url-input-submit",onClick:()=>d(r)})})]})})})})},d=({url:e,popoverAnchor:t})=>{const r=`\n\t\t<div id="Tock_widget_container" data-tock-display-mode="Button" data-tock-color-mode="Blue" data-tock-locale="en-us" data-tock-timezone="America/New_York" style="display:inline-block;"></div>\n\t\t<script src="https://www.exploretock.com/tock.js" async><\/script>\n\t\t<script>\n\t\t\t!function(t,o){if(!t.tock){var e=t.tock=function(){e.callMethod?\n\t\t\t e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e),\n\t\t\t e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];}}(window,document);\n\t\t\ttock('init', '${e}');\n\t\t<\/script>\n\t`;return(0,c.jsxs)("div",{ref:t,children:[(0,c.jsx)(s.SandBox,{html:r},`tock-${e}`),(0,c.jsx)("div",{className:"block-library-embed__interactive-overlay"})]})};function p({attributes:e,setAttributes:t,isSelected:r}){const s=e.url??"",[a,i]=(0,o.useState)(s),l=(0,o.useCallback)(()=>{i(s)},[s]);return(0,o.useEffect)(()=>{r||l()},[r,l]),(0,c.jsxs)("div",{...(0,n.useBlockProps)(),children:[(0,c.jsx)(n.BlockControls,{children:(0,c.jsx)(u,{tockUrl:a,setEditedUrl:i,setUrl:()=>{const e=a.replace(/.*exploretock.com\//,"");i(e),t({url:e})},cancel:l})}),(0,c.jsx)(d,{url:s})]})}},230:(e,t,r)=>{"use strict";r.d(t,{g:()=>b});var n=r(89742),s=r(97999),o=r(70728),a=r(84690),i=r(56427),l=r(47143),c=r(43656),u=r(86087),d=r(27723),p=r(69446),h=r(33017),m=r(13431),g=r(10790);const __=d.__,_n=d._n;function f(){const e=(0,u.useRef)(null),{excerpt:t,postId:r}=(0,l.useSelect)(e=>{const{getEditedPostAttribute:t,getCurrentPostId:r}=e(c.store);return{excerpt:t("excerpt")??"",postId:r()??0}},[]),{tracks:h}=(0,o.st)(),{editPost:f}=(0,l.useDispatch)("core/editor"),{dequeueAiAssistantFeatureAsyncRequest:b,increaseAiAssistantRequestsCount:v}=(0,l.useDispatch)("wordpress-com/plans"),[k,y]=(0,u.useState)(50),[x,j]=(0,u.useState)(!1),[w,_]=(0,u.useState)(),[C,A]=(0,u.useState)(),{request:S,stopSuggestion:E,suggestion:N,requestingState:T,error:B,reset:P,model:I}=(0,n.o2)({onDone:(0,u.useCallback)((t,r,n)=>{r||v(),h.recordEvent("jetpack_ai_assistant_block_generate",{feature:"jetpack-ai-content-lens",model:n,generation_time:null!==e.current?window?.performance?.now?.()-e.current:null
// Translators: %1$d is the number of words in the excerpt.
_n("%1$d word","%1$d words",R,"jetpack"),R),F="requesting"===T||"suggesting"===T||"done"===T&&!x,O="requesting"===T||"suggesting"===T,z=O||"done"===T;const{requireUpgrade:U,isOverLimit:H}=(0,n.yM)();return(0,g.jsxs)("div",{className:"jetpack-ai-post-excerpt",children:[(0,g.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,label:__("Write an excerpt (optional)","jetpack"),onChange:e=>f({excerpt:e}),help:R?D:null,value:L,disabled:z}),(0,s.isWpcomPlatformSite)()?(0,g.jsx)(a.k4,{supportLink:__("https://wordpress.com/support/excerpts/","jetpack"),supportPostId:1569,children:__("Learn more about manual excerpts","jetpack")}):(0,g.jsx)(i.ExternalLink,{href:__("https://jetpack.com/support/create-better-post-excerpts-with-ai/","jetpack"),children:__("Learn more about manual excerpts","jetpack")}),(0,g.jsxs)("div",{className:"jetpack-generated-excerpt__ai-container",children:[B?.code&&"error_quota_exceeded"!==B.code&&(0,g.jsx)(i.Notice,{status:B.severity,isDismissible:!1,className:"jetpack-ai-assistant__error",children:B.message}),H&&(0,g.jsx)(n.Hb,{placement:"excerpt-panel"}),(0,g.jsx)(m.N,{words:k,onWordsNumberChange:e=>{y(e),j(!0)},language:w,onLanguageChange:e=>{_(e),j(!0)},tone:C,onToneChange:e=>{A(e),j(!0)},disabled:O||U}),(0,g.jsx)(i.BaseControl,{help:M?.length?null:__("Add content to generate an excerpt.","jetpack"),__nextHasNoMarginBottom:!0,children:(0,g.jsxs)("div",{className:"jetpack-generated-excerpt__generate-buttons-container",children:[(0,g.jsx)(i.Button,{onClick:function(){f({excerpt:t}),h.recordEvent("jetpack_ai_assistant_block_discard",{feature:"jetpack-ai-content-lens",model:I}),P()},variant:"secondary",isDestructive:!0,disabled:"done"!==T||U,children:__("Discard","jetpack")}),(0,g.jsx)(i.Button,{onClick:function(){f({excerpt:N}),h.recordEvent("jetpack_ai_assistant_block_accept",{feature:"jetpack-ai-content-lens",model:I}),P()},variant:"secondary",disabled:"done"!==T||U,children:__("Accept","jetpack")}),(0,g.jsx)(i.Button,{onClick:function(){j(!1),P();const t=[{role:"jetpack-ai",context:{type:"ai-content-lens",contentType:"post-excerpt",postId:Number(r),words:k,language:w,tone:C,content:`Post content:\n${M}\n`}}];b(),h.recordEvent("jetpack_ai_assistant_block_request",{feature:"jetpack-ai-content-lens",model:I}),e.current=window?.performance?.now?.()||null,S(t,{feature:"jetpack-ai-content-lens",model:I})},variant:"secondary",isBusy:O,disabled:F||U||!M,children:__("Generate","jetpack")})]})})]})]})}const b=()=>{if((0,l.useSelect)(e=>{const{getCurrentPostType:t}=e(c.store),r=t();return"wp_template"===r||"wp_template_part"===r||"wp_block"===r},[]))return null;const e=e=>{const t=c.PluginDocumentSettingPanel;return(0,g.jsx)(t,{...e})};return(0,g.jsx)(c.PostTypeSupportCheck,{supportKeys:"excerpt",children:(0,g.jsx)(e,{className:(0,h.m)("ai-content-lens")?"is-beta-extension inset-shadow":"",name:"ai-content-lens-plugin",title:__("Excerpt","jetpack"),children:(0,g.jsx)(f,{})})})}},298:(e,t,r)=>{"use strict";function n(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then(e=>e.json())}r.d(t,{I:()=>n})},323:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(33946),s=r(79630);const o={attributes:n.A,migrate:e=>({includeSocialFollowers:!0,...e}),save:s.A}},481:(e,t,r)=>{"use strict";function n(e){return["columns","circle","square"].includes(e)}r.d(t,{o:()=>n})},507:(e,t,r)=>{"use strict";r.d(t,{A:()=>P});var n=r(89742),s=r(70728),o=r(84690),a=r(56427),i=r(3582),l=r(47143),c=r(43656),u=r(27723),d=r(68902),p=r.n(d),h=r(50729),m=r(94100),g=r(48399),f=r(25575),b=r(26157),v=r(2040),k=r(80225),y=r(53467),x=r(16656),j=r(87763),w=r(10790);const __=u.__,_=c.PluginPrePublishPanel,C=c.PluginDocumentSettingPanel,A=p()("jetpack-ai-assistant-plugin:sidebar"),S=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-assistant-usage-panel"]?.available||!1,E=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-featured-image-generator"]?.available||!1,N=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-title-optimization"]?.avai
// translators: %1$d: Number of likes
__("<span>%1$d</span> likes","jetpack"),v.length),{span:(0,h.jsx)("span",{className:"wpl-count-number"})})})})})]})]})}},3175:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>b});var n,s=r(25006),o=r(82826),a=r(72485);!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(n||(n={}));var i,l,c;function u(e){return e>=n.ZERO&&e<=n.NINE}function d(e){return e>=n.UPPER_A&&e<=n.UPPER_F||e>=n.LOWER_A&&e<=n.LOWER_F}function p(e){return e===n.EQUALS||function(e){return e>=n.UPPER_A&&e<=n.UPPER_Z||e>=n.LOWER_A&&e<=n.LOWER_Z||u(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(c||(c={}));class h{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l.EntityStart:return e.charCodeAt(t)===n.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=l.NamedEntity,this.stateNamedEntity(e,t));case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===n.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const s=r-t;this.result=this.result*Math.pow(n,s)+parseInt(e.substr(t,s),n),this.consumed+=s}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!u(n)&&!d(n))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!u(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===n.SEMI)this.consumed+=1;else if(this.decodeMode===c.Strict)return 0;return this.emitCodePoint((0,a.y6)(this.result),this.consumed),this.errors&&(e!==n.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let s=r[this.treeIndex],o=(s&i.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=g(r,s,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===c.Attribute&&(0===o||p(a))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],o=(s&i.VALUE_LENGTH)>>14,0!==o){if(a===n.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==c.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~i.VALUE_LENGTH:n[e+1],r),3===t&&this.emi
__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:k,srcSet:y}=(0,l.A)(e,{layoutStyle:u});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:c,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:o.length>1,srcSet:y,url:k,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:i,roundedCorners:p,onResize:h,isSave:m,columnWidths:g}=this.props,f=(0,l.s)(i)?u.A:c.A,b=this.props.images.map(this.renderImage,this),v=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{className:(0,o.A)(r,{[`has-rounded-corners-${v}`]:v>0}),children:[(0,d.jsx)(f,{align:e,columns:n,columnWidths:m?g:void 0,images:s,layoutStyle:i,renderedImages:b,onResize:m?void 0:h}),t]})}}},5269:(e,t,r)=>{"use strict";r.d(t,{WF:()=>u,bz:()=>c,n7:()=>d,rQ:()=>l});var n=r(89877);const s=16/9,o=.8,a=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){e.slides.length>1&&(e.loopDestroy(),e.params.loop=!0,e.loopCreate(),e.update()),c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))})}function c(e){if(!e||!e.el)return;const t=e.params.loop?e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img'):e.el.querySelector(".swiper-slide img");if(!t)return;const r=t.naturalWidth/t.naturalHeight,n=Math.max(Math.min(r,s),1),i="undefined"!=typeof window?window.innerHeight*o:a,l=Math.min(e.width/n,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach((t,r)=>{t.setAttribute("aria-hidden",r===e.activeIndex?"false":"true"),r===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}),function(e){const t=e.slides[e.activeIndex];if(!t)return;const r=t.getElementsByTagName("FIGCAPTION")[0],s=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=r?r.innerHTML:(0,n.escapeHTML)(s.alt))}(e)}function d(e){(e.pagination.bullets||[]).forEach(t=>{t.addEventListener("click",()=>{const t=e.slides[e.realIndex];setTimeout(()=>{t.focus()},500)})})}},5489:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94715),s=r(53291),o=r(10790);const a={attributes:{criteria:{type:"string",default:s.DF},threshold:{type:"number",default:s.aV}},supports:{html:!1},save:({className:e})=>(0,o.jsx)("div",{className:e,children:(0,o.jsx)(n.InnerBlocks.Content,{})})}},5564:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/gif","title":"GIF","description":"Search for and insert an animated image.","keywords":["animated","giphy","image"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\'/><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\'/></svg>","supports":{"html":false,"align":true},"attributes":{"align":{"type":"string","default":"center"},"caption":{"type":"string"},"giphyUrl":{"type":"string"},"searchText":{"type":"string"},"paddingTop":{"type":"string","default":"56.2%"}},"example":{"attributes":{"align":"center
// translators: %s: amount
__("%s / month","jetpack"),o);case"1 year":return(0,i.sprintf)(
// translators: %s: amount
__("%s / year","jetpack"),o);case"one-time":return o}return(0,i.sprintf)(
// translators: %1$s: formatted price, %2$s: plan interval
__("%1$s / %2$s","jetpack"),o,r)}function v({onClose:e,product:t}){const{selectedProductIds:r,setSelectedProductIds:n}=(0,h.B)(),{id:s,title:a}=t,i=r&&r.includes(s),l=i?c.A:void 0,u=t?" "+b(t):null;return(0,f.jsxs)(o.MenuItem,{icon:l,onClick:t=>{t.preventDefault();const o=i?r.filter(e=>e!==s):[...r,s];n(o),e()},selected:i,value:s,children:[a," : ",u]})}function k({onClose:e}){const{clientId:t,productType:r}=(0,h.B)(),n=(0,a.useSelect)(e=>e(d.M).getSiteSlug()),s=(0,m.A)(t);if(p.Wd===(0,p.AU)())return(0,f.jsx)(o.MenuItem,{children:n&&(0,f.jsx)(o.ExternalLink,{href:`https://wordpress.com/earn/payments/${n}#add-new-payment-plan`,children:(0,g.W)("add a new product",r)})});return(0,f.jsx)(o.MenuItem,{onClick:t=>{t.preventDefault(),s(),setTimeout(()=>{const e=document.getElementById("new-product-title");null!==e&&e.focus()},100),e()},children:(0,g.W)("add a new product",r)})}function y(){const{products:e,productType:t,selectedProductIds:r}=(0,h.B)(),n=(0,a.useSelect)(e=>e(d.M).getSelectedProducts(r),[r]);let i=null,c=u.A;return n.length>1?i=__("Multiple products selected","jetpack"):1===n.length&&(i=b(n[0])),n.length!=n.length&&(i=(0,g.W)("product not found",t),c=l.A),(0,f.jsx)(s.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block",children:(0,f.jsx)(o.ToolbarDropdownMenu,{className:"product-management-control-toolbar__dropdown-button",icon:c,label:(0,g.W)("select a product",t),text:i,children:({onClose:t})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(o.MenuGroup,{children:e.map(e=>(0,f.jsx)(v,{onClose:t,product:e},e.id))}),(0,f.jsx)(o.MenuGroup,{children:(0,f.jsx)(k,{onClose:t})})]})})})}},11540:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(21147);const s={paragraph:e=>e.replaceAll("\n","<br />")},o={emDelimiter:"_",headingStyle:"atx"},a={strikethrough:{filter:["del","s"],replacement:function(e){return"~~"+e+"~~"}}};class i{constructor({options:e={},rules:t={},keep:r=[],remove:s=[],fixes:i=[]}={}){this.fixes=i,this.turndownService=new n.A({...o,...e}),this.turndownService.keep(r),this.turndownService.remove(s);const l={...a,...t};for(const e in l)this.turndownService.addRule(e,l[e])}render({content:e}){const t=this.turndownService.turndown(e);return this.fixes.reduce((e,t)=>s[t](e),t)}}},11568:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(86087),s=r(27723),o=r(66087),a=r(10790);const _x=s._x,i="undefined"!=typeof window&&window.navigator?.language||"en",l=Intl?.DateTimeFormat?new Intl.DateTimeFormat(i,{hour:"numeric",minute:"numeric",hour12:!0}):null;class c extends n.Component{formatTime(e){const[t,r]=e.split(":");if(!t||!r)return!1;const n=new Date;return n.setHours(t),n.setMinutes(r),l?l.format(n):e}renderInterval=(e,t)=>{const{day:r}=this.props,n=r.hours;return(0,a.jsxs)("span",{children:[(0,s.sprintf)("%1$s - %2$s",this.formatTime(e.opening),this.formatTime(e.closing)),n.length>1+t&&(0,a.jsx)("span",{children:", "})]},t)};render(){const{day:e,localization:t}=this.props,r=e.hours.filter(e=>this.formatTime(e.opening)&&this.formatTime(e.closing));return(0,a.jsxs)("div",{className:"jetpack-business-hours__item",children:[(0,a.jsx)("dt",{className:e.name,children:t.days[e.name]}),(0,a.jsxs)("dd",{children:[(0,o.isEmpty)(r)?_x("Closed","business is closed on a full day","jetpack"):r.map(this.renderInterval),(0,a.jsx)("br",{})]})]})}}const u=c},11868:(e,t,r)=>{"use strict";var n=r(44034),s=r(1629),o=r(26717),a=r(6944);(0,n.M)(s,{edit:o.A,save:a.A})},11882:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56427),s=r(27723),o=r(10790);const __=s.__,a=({error:e})=>(0,o.jsx)(n.Placeholder,{icon:"lock",label:__("Donations","jetpack"),instructions:e})},11909:(e,t,r)=>{"use strict";var n=r(74997),s=r(44034),o=r(82306),a=r(84887),i=r(25018),l=r(79200),c=r(63101);(0,s.M)(o,{edit:l.A,save:c.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&(a._t.test(e.textContent)||a.GY.test(e.textContent)),transform:e=>(0,n.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}]},deprecated:i.A})},11967:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(83549),s=r(25019);const o={attributes:n.A,migrate:e=>{const{fontSize
__("Congratulations! Your site is now on the %s plan.","jetpack"),e):__("Congratulations! Your site is now on a paid plan.","jetpack"),{isDismissible:!0,...t&&{actions:[{url:c(),label:__("View my plan","jetpack")}]}})}}}})()},13982:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(70728),s=r(86087),o=r(27723),a=r(61996),i=r(93140),l=r(10790);const __=o.__,c=!0===(0,n.FB)("ai-seo-enhancer")?.available;class u extends s.Component{onMessageChange=e=>{this.props.updateMetaValue(e)};render(){const{metaValue:e}=this.props,t=__("Write a description…","jetpack"),r=__("Add a compelling, keyword-rich summary that appears in search results (ideally under 156 characters)","jetpack");return(0,l.jsx)(a.P,{value:e,onChange:this.onMessageChange,label:__("SEO Description","jetpack"),placeholder:c?r:t,suggestedLimit:156,rows:4})}}const d=(0,i.m)("advanced_seo_description")(u)},14127:(e,t,r)=>{"use strict";var n=r(74997),s=r(44034),o=r(24360),a=r(41242),i=r(591);(0,s.M)(o,{edit:a.A,save:i.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"wpcom-goodreads"===e,transform:({instance:e})=>(0,n.createBlock)("jetpack/goodreads",{customTitle:e.raw.title,goodreadsId:parseInt(e.raw.user_id),shelfOption:e.raw.shelf,showRating:!1,widgetId:Math.floor(9999999*Math.random())})}]}})},14140:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(20195),s=r(86087),o=r(27723),a=r(86954),i=r.n(a),l=r(15330),c=r(10790);const __=o.__,u="undefined"!=typeof _wpmejsSettings?_wpmejsSettings:{};function d(e,t,r){const n=document.createElement("div");n.className=e;const s=document.createElement("button");return s.innerText=t,s.addEventListener("click",r),s.setAttribute("aria-label",t),s.setAttribute("title",t),n.appendChild(s),n}const p=function({trackSource:e,onPlay:t,onPause:r,onError:o,onTimeChange:a,onSkipForward:p,onJumpBack:h,currentTime:m,playStatus:g=l.vh,onMetadataLoaded:f,loadWhenReady:b=!1,preload:v="metadata"}){const k=(0,s.useRef)(void 0),y=()=>{k.current.play().catch(()=>{})},x=()=>{k.current.pause(),(0,n.speak)(__("Paused","jetpack"),"assertive")};return(0,s.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,s.useEffect)(()=>{const e=k.current;e.preload=v;const n=new MediaElementPlayer(e,{...u,success:()=>b&&e?.load()});if(h||p){const e=`${n.options.classPrefix}button ${n.options.classPrefix}jump-button`;if(h){const t=`${e} ${n.options.classPrefix}jump-backward-button`;n.addControlElement(d(t,__("Jump Back","jetpack"),h),"jumpBackwardButton")}if(p){const t=`${e} ${n.options.classPrefix}skip-forward-button`;n.addControlElement(d(t,__("Skip Forward","jetpack"),p),"skipForwardButton")}}return t&&e.addEventListener("play",t),r&&e.addEventListener("pause",r),o&&e.addEventListener("error",o),f&&e.addEventListener("loadedmetadata",f),()=>{n.remove(),t&&e.removeEventListener("play",t),r&&e.removeEventListener("pause",r),o&&e.removeEventListener("error",o),f&&e.removeEventListener("loadedmetadata",f)}},[t,r,o,h,p,f,b,v]),(0,s.useEffect)(()=>{const[e,t]=!1===k.current?.paused?[l.v8,x]:[l.vh,y],r=i()(t,100);return l.pF!==g&&e!==g&&r(),()=>{r.clear()}},[k,g,e]),(0,s.useEffect)(()=>{if(!a)return;const e=k.current;let t=0;const r=e=>(e=>{const r=Date.now();r-t>=1e3&&(a(e),t=r)})(e.target.currentTime);return a&&e?.addEventListener("timeupdate",r),()=>{t=0,e?.removeEventListener("timeupdate",r)}},[k,a]),(0,s.useEffect)(()=>{const e=k.current;m&&e&&Math.abs(Math.floor(m-e.currentTime))>1&&(e.currentTime=m)},[k,m]),(0,c.jsx)("div",{className:"jetpack-audio-player",children:(0,c.jsx)("audio",{src:e,ref:k})})}},14153:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c});var n=r(47143),s=r(86787);const o=window.localStorage.getItem("jetpack-ai-breve-enabled"),a=window.localStorage.getItem("jetpack-ai-breve-disabled-features"),i={enabled:"true"===o,disabled:null!==a?JSON.parse(a):s.A.filte
/* translators: This needs to be a single word with no spaces. It describes
the current item in the group. A screen reader will announce it as "[title],
current track". */
f=t?__("track","jetpack"):void 0;return(0,c.jsxs)("li",{className:m,style:Object.keys(g).length?g:null,children:[(0,c.jsxs)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:e.link||e.src,role:"button","aria-current":f,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),s(u))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),s(u))},children:[(0,c.jsx)(l.A,{className:"jetpack-podcast-player__track-status-icon",isPlaying:r,isError:n}),(0,c.jsx)("span",{className:"jetpack-podcast-player__track-title",children:e.title}),e.duration&&(0,c.jsx)("time",{className:"jetpack-podcast-player__track-duration",dateTime:e.duration,children:e.duration})]}),t&&n&&(0,c.jsx)(i.A,{link:e.link,title:e.title,colors:d})]})})},14935:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},14936:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(87399),s=r.n(n),o=r(46521),a=r.n(o),i=r(11264),l=r.n(i);const c=a()("photon"),u={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},d="__domain__.invalid",p=`https://${d}`,h="https://i0.wp.com";function m(e,t){let r;try{r=new URL(e,p)}catch{return null}const n="https:"===r.protocol,o=new URL(h);if(a=r.host,/^i[0-2]\.wp\.com$/.test(a))o.pathname=r.pathname,o.hostname=n?"i0.wp.com":r.hostname;else{if(r.search)return null;let e=r.href.replace(`${r.protocol}/`,"");"blob:"===r.protocol&&(e=r.pathname.replace("://","//")),r.hostname===d&&(e=r.pathname),o.pathname=e,o.hostname=function(e,t){if(t)return"i0.wp.com";const r=s()(e),n=l()(r),o="i"+Math.floor(3*n());return c('determined server "%s" to use with "%s"',o,e),o+".wp.com"}(e,"https:"===o.protocol),n&&o.searchParams.set("ssl","1")}var a;if(t)for(const[e,r]of Object.entries(t))"host"!==e&&"hostname"!==e?"secure"!==e||r?o.searchParams.set(u[e]??e,r.toString()):o.protocol="http:":o.hostname=r;return c("generated Photon URL: %s",o.href),o.href}},15210:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/voice-to-content","title":"Voice to content","description":"Transform your spoken words into a post ready to publish with AI.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 20 20\' width=\'20\' height=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"}}}')},15330:(e,t,r)=>{"use strict";r.d(t,{ax:()=>n,pF:()=>o,v8:()=>s,vh:()=>a});const n="jetpack/media-source",s="is-playing",o="is-error",a="is-paused"},15458:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>m,GT:()=>f,Q4:()=>c,W4:()=>u,aq:()=>d,sH:()=>g,tu:()=>p});var n=r(97999),s=r(27723),o=r(93832),a=r(29467),i=r(3388),l=r(76406);const __=s.__;function c({planSlug:e,plan:t,postId:r,postType:s}){const a=e.startsWith("jetpack_")?e:t?.path_slug,i=(void 0===s?()=>{const e=new URLSearchParams(window.location.search);return(0,o.addQueryArgs)(window.location.protocol+`//${(0,l.A)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(s)?"":"edit";return(0,n.isSimpleSite)()?(0,o.addQueryArgs)("/"+[e,s,(0,l.A)(),r].filter(Boolean).join("/"),{plan_upgraded:1}):(0,o.addQueryArgs)(window.location.protocol+`//${(0,l.A)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:r,plan_upgraded:1})})();return(0,n.isWoASite)()?(0,o.addQueryArgs)(`https://wordpress.com/plans/${(
__("Open image %1$d of %2$d in full-screen","jetpack"),t+1,o.length),k=u.A,{src:y,srcSet:x}=(0,c.A)(e,{layoutStyle:l});return(0,d.jsx)(k,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:i,customLink:e.customLink,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:o.length>1,srcSet:x,url:y,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:u,roundedCorners:p,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,c.s)(u)?l.A:i.A,v=this.props.images.map(this.renderImage,this),k=u!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{style:m,className:(0,o.A)(r,{[`has-rounded-corners-${k}`]:k>0}),children:[(0,d.jsx)(b,{align:e,columns:n,columnWidths:g?f:void 0,images:s,layoutStyle:u,renderedImages:v,onResize:g?void 0:h}),t]})}}},16059:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(70728),s=r(94715),o=r(56427),a=r(47143),i=r(86087),l=r(27723),c=r(13022),u=r(20242),d=r(53291),p=r(10790);const __=l.__,_n=l._n,h=[{value:d.DF,label:__("Show after threshold","jetpack")},{value:d.et,label:__("Show before threshold","jetpack")}],m=(0,n.sh)(u),g=(0,a.withSelect)((e,t)=>{const{isBlockSelected:r,hasSelectedInnerBlock:n}=e("core/block-editor");return{isSelected:r(t.clientId)||n(t.clientId)}})(({isSelected:e,attributes:t,setAttributes:r})=>{const{criteria:n,threshold:a}=t,u=(0,s.useBlockProps)(),[g,f]=(0,i.useState)(!0);return(0,p.jsxs)("div",{...u,className:(0,c.A)(u.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!e}),children:[(0,p.jsxs)(o.Placeholder,{icon:m,label:__("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder",children:[(0,p.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:a,help:g?"":__("Please enter a valid number.","jetpack"),label:__("Visit count threshold","jetpack"),min:"1",onChange:e=>{/^\d+$/.test(e)&&+e>0?(r({threshold:+e}),f(!0)):f(!1)},pattern:"[0-9]",type:"number"}),(0,p.jsx)(o.RadioControl,{label:__("Visibility","jetpack"),selected:n,options:h,onChange:e=>r({criteria:e})})]}),(0,p.jsx)(o.Notice,{status:"info",isDismissible:!1,children:n===d.DF?1===a?__("This block will only appear to people who have visited this page more than once.","jetpack"):(0,l.sprintf)(/* translators: %d: the number of people. */
_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.",+a,"jetpack"),a):1===a?__("This block will only appear to people who are visiting this page for the first time.","jetpack"):(0,l.sprintf)(/* translators: %d: the number of people. */
_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.",+a,"jetpack"),a)}),(0,p.jsx)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container",children:(0,p.jsx)(s.InnerBlocks,{})})]})})},16073:(e,t,r)=>{"use strict";var n=r(58314),s=r(58496);e.exports=a;var o=a.prototype;function a(e,t){var r,o=-1;if(!(this instanceof a))return new a(e,t);if("string"==typeof e||n(e)?("string"==typeof t||n(t))&&(r=[{dic:t}]):e&&("length"in e?(r=e,e=e[0]&&e[0].aff):(e.dic&&(r=[e]),e=e.aff)),!e)throw new Error("Missing `aff` in dictionary");if(e=s(e),this.data=Object.create(null),this.compoundRuleCodes=e.compoundRuleCodes,this.replacementTable=e.replacementTable,this.conversion=e.conversion,this.compoundRules=e.compoundRules,this.rules=e.rules,this.flags=e.flags,r)for(;++o<r.length;)r[o].dic&&this.dictionary(r[o].dic)}o.correct=r(35479),o.suggest=r(98559),o.spell=r(92347),o.add=r(68530),o.remove=r(51809),o.wordCharacters=r(13766),o.dictionary=r(49897),o.personal=r(51165)},16117:(e,t,r)=>{"use strict";r.d(t,{$i:()=>c,AN:()=>u,Cn:()=>h,N3:()=>f,Nt:()=>l,Tk:()=>p,Tz:()=>m,UO:()=>d,Zb:()=>i,_S:()=>b,h4:()=>a,iz:()=>n,tF:()=>g,ub:()=>s,vm:()=>o});const n="jetpack_ai_logo_generator_modal_open",s="jetpack_ai_logo_generator_modal_close",o="jetpack_ai_logo_generator_generate",a="jetpack_ai_logo_generator_save",i="jetpack_ai_logo_generator_use",l="jetpack_ai_logo_generator_navigate",c="jetpack_ai_logo_generator_feedback",u="jetpack_ai_upgrade_button",d="jetpack_ai_logo_generator_switch_style",p="jetpack_ai_logo_generator_guess_style",h="input_footer",m="free_user_screen",g="upgrade_prompt",f=3,b=10},16174:(e,t,r)=>{"use strict";r.d(t,{d:()=>m});var n=r(58691),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(17414),c=r(13022),u=r(10790);const __=i.__,d=["image"],p=e=>{const{videoPosterImageUrl:t}=e;return(0,u.jsx)("div",{className:"resumable-upload__editor-thumb-placeholder",children:t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("img",{src:t,alt:"Poster"}),(0,u.jsx)(l.A,{className:"uploading-editor__play-icon",icon:n.ud})]}):(0,u.jsx)("span",{children:"No Poster Selected"})})},h=e=>{const{onSelectPoster:t,onRemovePoster:r}=e;return(0,u.jsxs)(o.BaseControl,{className:(0,c.A)(e.className,"editor-video-poster-control"),children:[(0,u.jsx)(p,{...e}),(0,u.jsx)(s.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:t,allowedTypes:d,render:({open:e})=>(0,u.jsxs)("div",{className:"poster-selector__buttons",children:[(0,u.jsx)(o.Button,{onClick:r,variant:"link",isDestructive:!0,children:__("Remove Poster Image","jetpack")}),(0,u.jsx)(o.Button,{variant:"secondary",onClick:e,children:__("Select Poster Image","jetpack")})]})})]})},m=e=>{const{file:t,onSelectPoster:r,onRemovePoster:i,videoPosterImageData:c,title:p,onChangeTitle:m,onVideoFrameSelected:g}=e,[f,b]=(0,a.useState)(0),[v,k]=(0,a.useState)(!0),y=(0,a.useRef)(null),x=(0,a.useRef)(null),j=()=>{k(!1)};(0,a.useEffect)(()=>{null!==t&&y&&(y.current.src=URL.createObjectURL(t))},[t,y]);const w={};return c&&(w.display="none"),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("div",{className:"uploading-editor",children:[(0,u.jsx)("div",{className:"uploading-editor__summary"}),(0,u.jsxs)("div",{className:"uploading-editor__fields",children:[(0,u.jsx)(o.TextControl,{label:__("Video title","jetpack"),className:"uploading-editor__title",onChange:m,value:p,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,u.jsx)("div",{className:"uploading-editor__content",children:(0,u.jsxs)(o.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,u.jsx)(o.BaseControl.VisualLabel,{children:__("Video poster (optional)","jetpack")}),v?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"uploading-editor__video-container",children:[(0,u.jsxs)("div",{className:"uploading-editor__video-poster-wrapper",children:[c&&(0,u.jsx)(h,{onSelectPoster:r,onRemovePoster:i,videoPosterImageUrl:c.url}),(0,u.jsx)("video",{ref:y,muted:!0,className:"uploading-editor__video",onDurationChange:e=>{const t=e.target.duration
// translators: %s: Price
__("Minimum allowed price is %s.","jetpack"),(0,n.vv)(k,b)),m),void s(!1);if(!(0,c.kF)(b,v))return(0,d.S)((0,l.W)("product requires a valid price",t),m),void s(!1);try{const n=await o()({path:"/wpcom/v2/memberships/product",method:"POST",data:e}),a={id:n.id,title:n.title,interval:n.interval,price:n.price,currency:n.currency},c=m.select(u.EF).getProducts();i(p(c.concat([a]))),r([a.id]),h&&(0,d.L)((0,l.W)("successfully created product",t),m),s(!0)}catch{(0,d.S)((0,l.W)("there was an error when adding the product",t),m),s(!1)}},v=e=>({type:"SET_SUBSCRIBER_COUNTS",subscriberCounts:e}),k=e=>({type:"SET_TOTAL_EMAILS_SENT_COUNT",totalEmailsSentCount:e}),y=e=>({type:"SET_NEWSLETTER_CATEGORIES",newsletterCategories:e}),x=e=>({type:"SET_NEWSLETTER_CATEGORIES_SUBSCRIPTIONS_COUNT",newsletterCategoriesSubscriptionsCount:e})},20514:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={id:{type:"string"},name:{type:"string"},icon:{type:"string",default:r(84954)},is_non_wpcom_site:{type:"boolean",default:!1},url:{type:"string"},description:{type:"string"}}},20577:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},20594:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M10.7 9.6c.3-.2.8-.4 1.3-.4s1 .2 1.3.4c.3.2.4.5.4.6 0 .4.3.8.8.8s.8-.3.8-.8c0-.8-.5-1.4-1.1-1.9-.4-.3-.9-.5-1.4-.6v-.3c0-.4-.3-.8-.8-.8s-.8.3-.8.8v.3c-.5 0-1 .3-1.4.6-.6.4-1.1 1.1-1.1 1.9s.5 1.4 1.1 1.9c.6.4 1.4.6 2.2.6h.2c.5 0 .9.2 1.1.4.3.2.4.5.4.6s0 .4-.4.6c-.3.2-.8.4-1.3.4s-1-.2-1.3-.4c-.3-.2-.4-.5-.4-.6 0-.4-.3-.8-.8-.8s-.8.3-.8.8c0 .8.5 1.4 1.1 1.9.4.3.9.5 1.4.6v.3c0 .4.3.8.8.8s.8-.3.8-.8v-.3c.5 0 1-.3 1.4-.6.6-.4 1.1-1.1 1.1-1.9s-.5-1.4-1.1-1.9c-.5-.4-1.2-.6-1.9-.6H12c-.6 0-1-.2-1.3-.4-.3-.2-.4-.5-.4-.6s0-.4.4-.6ZM12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5Z"})})},20645:(e,t,r)=>{"use strict";var n=r(70728),s=r(39270);(0,n.vp)(s.U,s.W)},20712:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(54439);const s=65536;function o(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function a(e){const t=[],r=e.length;let n=0,s=e.charCodeAt(n),o=!1,a=0,i="";for(;n<r;)124===s&&(o?(i+=e.substring(a,n-1),a=n):(t.push(i+e.substring(a,n)),i="",a=n+1)),o=92===s,n++,s=e.charCodeAt(n);return t.push(i+e.substring(a)),t}function i(e,t,r,i){if(t+2>r)return!1;let l=t+1;if(e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;let c=e.bMarks[l]+e.tShift[l];if(c>=e.eMarks[l])return!1;const u=e.src.charCodeAt(c++);if(124!==u&&45!==u&&58!==u)return!1;if(c>=e.eMarks[l])return!1;const d=e.src.charCodeAt(c++);if(124!==d&&45!==d&&58!==d&&!(0,n.isSpace)(d))return!1;if(45===u&&(0,n.isSpace)(d))return!1;for(;c<e.eMarks[l];){const t=e.src.charCodeAt(c);if(124!==t&&45!==t&&58!==t&&!(0,n.isSpace)(t))return!1;c++}let p=o(e,t+1),h=p.split("|");const m=[];for(let e=0;e<h.length;e++){const t=h[e].trim();if(!t){if(0===e||e===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?m.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?m.push("left"):m.push("")}if(p=o(e,t).trim(),-1===p.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;h=a(p),h.length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop();const g=h.length;if(0===g||g!==m.length)return!1;if(i)return!0;const f=e.parentType;e.parentType="table";const b=e.md.block.ruler.getRules("blockquote"),v=[t,0];e.push("table_open","table",1).map=v;e.push("thead_open","thead",1).map=[t,t+1];e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<h.length;t++){const r=e.push("th_open","th",1);m[t]&&(r.attrs=[["style","text-align:"+m[t]]]);const n=e.push("inline","",0);n.content
2022-04-02 10:26:41 +02:00
/* translators: This is text to describe the current state. This will go
before the track title, such as "Error: [The title of the track]". */
2025-07-27 19:58:08 +02:00
n=__("Error:","jetpack")):e&&(s="playing",
2022-04-02 10:26:41 +02:00
/* translators: Text to describe the current state. This will go before the
track title, such as "Playing: [The title of the track]". */
2025-12-12 13:13:07 +01:00
n=__("Playing:","jetpack"));const i=o[s];return i?(0,a.jsxs)("span",{className:`${r} ${r}--${s}`,children:[(0,a.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:`${n} `}),i]}):(0,a.jsx)("span",{className:r})})},21932:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={html:!1,align:["center","wide","full"]}},22024:(e,t,r)=>{"use strict";r.d(t,{FL:()=>a,VU:()=>C,mJ:()=>s});var n=r(66087);function s(e){return e.map(o)}function o({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,s=[];let o=e,a=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,t=>{const n=a<=(e+1)*r;return n&&(a+=t),n}).length;s.push(t),o=o.slice(t)}return s.push(o.length),[s]}const i=A([2,1,2],5),l=S([E,E,N,E,E]),c=S([E,E,E,N,E,E,E]),u=A([3,1,3],5),d=S([N,E,E,N]),p=A([1,2,1],5),h=S([N,E,E,E]),m=A([1,3],3),g=S([E,E,E,N]),f=A([3,1],3),b=S([B(1.6),(0,n.overEvery)(T(.9),B(2)),(0,n.overEvery)(T(.9),B(2))]),v=A([1,2],3),k=A([1,1,1,1,1],1),y=A([1,1,1,1],1),x=A([1,1,1],3),j=S([(0,n.overEvery)(T(.9),B(2)),(0,n.overEvery)(T(.9),B(2)),B(1.6)]),w=A([2,1],3),_=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const r=(e,s)=>{if(!s.length)return e;let o;o=s.length>15&&l(s)&&i(e)?[2,1,2]:s.length>15&&c(s)&&u(e)?[3,1,3]:5!==s.length&&d(s)&&p(e)?[1,2,1]:h(s)&&m(e)?[1,3]:g(s)&&f(e)?[3,1]:b(s)&&v(e)?[1,2]:t&&(5===s.length||10!==s.length&&s.length>6)&&k(e)&&(0,n.sum)(s.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)(t.slice(0,4));return y(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,s)?[1,1,1,1]:function(e,t,r){const s=(0,n.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&x(e)&&(s<2.5||s<5&&t.length>=3&&t[0]===t[2]||r)}(e,s,t)?[1,1,1]:j(s)&&w(e)?[2,1]:_(s)?[1]:s.length>3?[1,1]:Array(s.length).fill(1);const a=e.concat([o]),C=(0,n.sum)(o),A=s.slice(C);return r(a,A)};return r([],e)}function A(e,t){return r=>!r.slice(-t).some(t=>(0,n.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,n.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function N(e){return e<1}function T(e){return t=>t>=e}function B(e){return t=>t<e}},22071:(e,t,r)=>{"use strict";r.d(t,{AZ:()=>s,L9:()=>c,Np:()=>d,Or:()=>o,cT:()=>i,mA:()=>l,sD:()=>p,uH:()=>n.u,ud:()=>a,zn:()=>u});var n=r(99423);const s="error_service_unavailable",o="error_quota_exceeded",a="error_moderation",i="error_context_too_large",l="error_network",c="error_unclear_prompt",u="error_response",d="default",p="gemini-nano"},22086:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(84690),s=r(94715),o=r(56427),a=r(47143),i=r(43656),l=r(86087),c=r(27723),u=r(17414),d=r(36872),p=r(28982),h=r(17127),m=r(54227),g=r(75753),f=r(41985),b=r(1798),v=r(32243),k=r(95072),y=r(10790);const __=c.__;const x=function(){const e=(0,s.useBlockProps)(),t=(0,a.useSelect)(e=>e(i.store).getCurrentPostType(),[]),r=(0,b.I)(t),c=(0,k.A)(),x=(0,v.iF)();(0,l.useEffect)(()=>()=>{x(f.P2.everybody.key)},[]);const{stripeConnectUrl:j,hasTierPlans:w}=(0,a.useSelect)(e=>{const{getNewsletterTierProducts:t,getConnectUrl:r}=e("jetpack/membership-products");return{stripeConnectUrl:r(),hasTierPlans:0!==t()?.length}}),[_,C]=(0,l.useState)(!1);function A(e){f.P2.paid_subscribers.key!==e||!j&&w?x(e):C(!0)}if((0,l.useEffect)(()=>{r&&r!==f.P2.everybody.key||x(f.P2.subscribers.key)},[r,x]),!c)return(0,y.jsx)("div",{...e,children:(0,y.jsx)(m.A,{block:"Paywall",explanation:__("Connect your WordPress.com account to enable a paywall for your site.","jetpack")})});const S=e=>e===f.P2.paid_subscribers.key?f.P2.paid_subscribers.label:f.P2.subscribers.label,E=(e=>{switch(e){case f.P2.subscribers.key:return __("Subscriber-only content below","jetpack");case f.P2.paid_subscribers.key:return __("Paid content below this line","jetpack");default:return __("Paywall","jetpack")}})(r);let N=r??f.P2.subscribers.key;return N===f.P2.everybody.key&&(N=f.P2.subscribers.key),(0,y.jsxs)("div",{...e,children:[(0,y.jsx)("div",{className:"wp-block-jetpack-paywall-block",children:(0,y.jsxs)("span",{children:[E,(0,y.jsx)(u.A,{icon:d.A,size:16})]
2025-02-28 08:42:11 +01:00
// translators: option to print the content - a verb.
label:__("Print","jetpack")},
// translators: option to print the content - a verb labelling a button.
2025-07-27 19:58:08 +02:00
title:__("Print","jetpack"),icon:(0,o.jsx)(s.d6,{icon:"print",size:24})},{name:"facebook",attributes:{service:"facebook",label:"Facebook"},title:"Facebook",icon:(0,o.jsx)(s.d6,{icon:"facebook",size:24})},{name:"linkedin",attributes:{service:"linkedin",label:"LinkedIn"},title:"LinkedIn",isDefault:!0,icon:(0,o.jsx)(s.d6,{icon:"linkedin",size:24})},{name:"mail",attributes:{service:"mail",
2025-02-28 08:42:11 +01:00
// translators: option to share the content by email - a verb.
label:__("Mail","jetpack")},
// translators: option to share the content by email - a verb labelling a button.
2025-07-27 19:58:08 +02:00
title:__("Mail","jetpack"),keywords:["email","e-mail"],icon:(0,o.jsx)(s.d6,{icon:"mail",size:24})},{name:"mastodon",attributes:{service:"mastodon",label:"Mastodon"},title:"Mastodon",icon:(0,o.jsx)(s.d6,{icon:"mastodon",size:24})},{name:"pinterest",attributes:{service:"pinterest",label:"Pinterest"},title:"Pinterest",icon:(0,o.jsx)(s.d6,{icon:"pinterest",size:24})},{name:"pocket",attributes:{service:"pocket",label:"Pocket"},title:"Pocket",icon:(0,o.jsx)(s.d6,{icon:"pocket",size:24})},{name:"reddit",attributes:{service:"reddit",label:"Reddit"},title:"Reddit",icon:(0,o.jsx)(s.d6,{icon:"reddit",size:24})},{name:"telegram",attributes:{service:"telegram",label:"Telegram"},title:"Telegram",icon:(0,o.jsx)(s.d6,{icon:"telegram",size:24})},{name:"threads",attributes:{service:"threads",label:"Threads"},title:"Threads",icon:(0,o.jsx)(s.d6,{icon:"threads",size:24})},{name:"tumblr",attributes:{service:"tumblr",label:"Tumblr"},title:"Tumblr",icon:(0,o.jsx)(s.d6,{icon:"tumblr",size:24})},{name:"whatsapp",attributes:{service:"whatsapp",label:"WhatsApp"},title:"WhatsApp",icon:(0,o.jsx)(s.d6,{icon:"whatsapp",size:24})},{name:"x",attributes:{service:"x",label:"X"},keywords:["twitter","x"],title:"X",icon:(0,o.jsx)(s.d6,{icon:"x",size:24})},{name:"nextdoor",attributes:{service:"nextdoor",label:"Nextdoor"},title:"Nextdoor",icon:(0,o.jsx)(s.d6,{icon:"nextdoor",size:24})},{name:"native-share",attributes:{service:"share",
2025-02-28 08:42:11 +01:00
// translators: option to share the content - a verb.
label:__("Share","jetpack")},
// translators: option to share the content - a verb labelling a button.
2025-12-12 13:13:07 +01:00
title:__("Native Share","jetpack"),icon:(0,o.jsx)(s.d6,{icon:"share",size:24}),description:__("Share the post using your phones built-in sharing menu, or copy the link to the clipboard on desktop.","jetpack")}];a.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)});const i=a},24748:(e,t,r)=>{"use strict";r.d(t,{U:()=>l,W:()=>c});var n=r(27723),s=r(45226),o=r(66384),a=r(2678),i=r(78691);const __=n.__,l="premium-content/subscriber-view",c={apiVersion:3,title:__("Subscriber View","jetpack"),description:__("The container for all content shown to subscribers.","jetpack"),icon:s.A,category:"grow",attributes:{},edit:a.A,save:i.A,parent:["premium-content/container"],supports:{inserter:!1,html:!1},deprecated:o.A}},24815:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(10790);const s=()=>(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon",children:[(0,n.jsx)("path",{d:"M7 6.49011L11 8.99011L7 11.4901V6.49011Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2.99011C3.89543 2.99011 3 3.88554 3 4.99011V18.9901C3 20.0947 3.89543 20.9901 5 20.9901H19C20.1046 20.9901 21 20.0947 21 18.9901V4.99011C21 3.88554 20.1046 2.99011 19 2.99011H5ZM19 4.49011H5C4.72386 4.49011 4.5 4.71397 4.5 4.99011V15.6973L8.12953 13.0508C8.38061 12.8677 8.71858 12.8584 8.97934 13.0274L11.906 14.9243L15.4772 11.4524C15.7683 11.1694 16.2317 11.1694 16.5228 11.4524L19.5 14.3469V4.99011C19.5 4.71397 19.2761 4.49011 19 4.49011ZM4.5 18.9901V17.5537L8.59643 14.5667L11.5921 16.5084C11.8857 16.6987 12.2719 16.6607 12.5228 16.4167L16 13.0361L19.4772 16.4167L19.5 16.3933V18.9901C19.5 19.2663 19.2761 19.4901 19 19.4901H5C4.72386 19.4901 4.5 19.2663 4.5 18.9901Z"})]})},25006:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=new Uint16Array('<Õıʊҝջאٵ۞ޢߖࠏઑඡረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒ㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgor
// Translators: %d is the cost of generating a featured image.
__("Featured image generation costs %d requests per image. You don't have enough requests to generate another image.","jetpack"),$):null,_e=(0,k.jsx)(s.Button,{onClick:fe,variant:"primary",disabled:!ne?.image||ne?.generating||ne?.libraryId===A,children:__("Set as featured image","jetpack")});return(0,k.jsxs)(k.Fragment,{children:[(r===d.s6||r===d.wb)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("p",{className:"jetpack-ai-assistant__help-text",children:__("Based on your post content.","jetpack")}),(0,k.jsx)(s.Button,{onClick:ce,isBusy:e,disabled:t||J,variant:"secondary",__next40pxDefaultSize:!0,children:__("Generate image","jetpack")})]}),(0,k.jsx)(g.A,{autoStart:ke&&!A,autoStartAction:pe,images:oe,currentIndex:Q,title:__("Generate a featured image with AI","jetpack"),cost:$,open:u,placement:r,onClose:le,onTryAgain:me,onGenerate:Y?.current>0||A?he:de,generating:se?.generating,notEnoughRequests:J,requireUpgrade:z,upgradeDescription:we,currentLimit:H,currentUsage:U,isUnlimited:Z,hasError:Boolean(se?.error),handlePreviousImage:te,handleNextImage:re,acceptButton:_e,generateButtonLabel:Y?.current>0?be:ve,instructionsPlaceholder:__("Describe the featured image you'd like to create and select a style.","jetpack"),imageStyles:ae,onGuessStyle:ue,prompt:I,setPrompt:M,initialStyle:B,inputDisabled:xe,actionDisabled:je})]})}},32047:e=>{"use strict";function t(e,r){var n;if(Array.isArray(r))for(n=0;n<r.length;n++)t(e,r[n]);else for(n in r)e[n]=(e[n]||[]).concat(r[n])}e.exports=function(e){var r,n={};return t(n,e),(r=function(e){return function(t){return function(r){var s,o,a=n[r.type],i=t(r);if(a)for(s=0;s<a.length;s++)(o=a[s](r,e))&&e.dispatch(o);return i}}}).effects=n,r}},32156:(e,t,r)=>{"use strict";r.d(t,{c:()=>o,j:()=>s});var n=r(52169);const s=({browserSafeLocale:e,decimals:t=0,forceLatin:r=!0,numberFormatOptions:s={}})=>{const o=`${e}${r?"-u-nu-latn":""}`,a={minimumFractionDigits:t,maximumFractionDigits:t,...s};return(0,n.J)({locale:o,options:a})},o=({numberFormatOptions:e={},...t})=>s({...t,numberFormatOptions:{notation:"compact",maximumFractionDigits:1,...e}})},32243:(e,t,r)=>{"use strict";r.d(t,{EX:()=>w,GG:()=>_,Yc:()=>y,iF:()=>x,ix:()=>C});var n=r(70728),s=r(66143),o=r(56427),a=r(29491),i=r(3582),l=r(47143),c=r(43656),u=r(86087),d=r(27723),p=r(17414),h=r(64524),m=r(66108),g=r(75753),f=r(41985),b=r(62837),v=r(10790);const __=d.__,k=(0,n.sh)(h);function y({accessLevel:e,subscribers:t,paidSubscribers:r,postHasPaywallBlock:n=!1}){switch(t=t??0,r=r??0,f.P2[e]?.key){case f.P2.everybody.key:case f.P2.subscribers.key:return t;case f.P2.paid_subscribers.key:return n?t:r;default:return 0}}function x(){const e=(0,l.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[t,r]=(0,i.useEntityProp)("postType",e,"meta");return e=>{delete t[f.a7],r({...t,[f.jr]:e})}}function j(){const e=(0,l.useSelect)(e=>e(m.M).getNewsletterTierProducts()).filter(e=>"1 month"===e.interval).sort((e,t)=>Number(t.price)-Number(e.price)),t=(0,l.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[{[f.a7]:r}]=(0,i.useEntityProp)("postType",t,"meta"),n=function(){const e=(0,l.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[t,r]=(0,i.useEntityProp)("postType",e,"meta");return e=>{r({...t,[f.a7]:e})}}();if(!(e.length<2))return(0,v.jsx)("div",{className:"jetpack-editor-post-tiers",children:(0,v.jsx)(o.RadioControl,{label:__("Choose Newsletter Tier","jetpack"),hideLabelFromVision:!0,selected:Number(r),options:e.map(e=>({label:e.title,value:Number(e.id)})),onChange:n})})}function w({accessLevel:e,hasTierPlans:t,stripeConnectUrl:r,isEditorPanel:n=!1,postHasPaywallBlock:a=!1}){const i=null===r,{totalSubscribers:c,paidSubscribers:d}=(0,l.useSelect)(e=>e(m.M).getSubscriberCounts()),[p,h]=(0,u.useState)(!1),b=x(),k=y({accessLevel:f.P2.subscribers.key,subscribers:c,paidSubscribers:d}),w=y({accessLevel:f.P2.paid_subscribers.key,subscribers:c,paidSubscribers:d});return(0,v.jsxs)("fieldset",{className:"jetpack-newsletter-access-radio-buttons",children:[(0,v.jsxs)(o.VisuallyHidden,{as:"legend",children:[__("Access","jetpack")," "]}),(0,v.jsx)(o.RadioControl,{onChange:e=>{f.P2.paid
__("To use the SEO feature you need to upgrade to the %s plan","jetpack"),h)}),(0,c.jsx)("div",{className:"components-seo-upsell__learn-more",children:(0,c.jsx)(s.k4,{supportLink:"https://wordpress.com/support/seo-tools/",supportPostId:120916,children:g})}),(0,c.jsx)(o.Button,{href:u?null:t,onClick:e=>{e.preventDefault(),p.recordEvent("jetpack_seo_tools_upsell_click"),r(e)},target:"_top",icon:i.A,className:(0,l.A)("components-seo-upsell__button is-primary",{"jetpack-upgrade-plan__hidden":!t}),isBusy:u,children:u?__("Redirecting…","jetpack"):m})]})}},32936:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1455),s=r.n(n);const o="default"in s()?s().default:s()},33004:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=u(t),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var s=new(e.bind.apply(e,n));return r&&c(s,r.prototype),s}(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},i(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}r.d(t,{A:()=>d});const d=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=a(this,t,[e])).originalRequest=s,r.originalResponse=o,r.causingError=n,null!=n&&(e+=", caused by ".concat(n.toString())),null!=s){var i=s.getHeader("X-Request-ID")||"n/a",l=s.getMethod(),c=s.getURL(),u=o?o.getStatus():"n/a",d=o?o.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(i,")")}return r.message=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(i(Error))},33
// Translators: %1$d is the number of images with alt text, %2$d is the total number of images.
__("Alt text added to %1$d of %2$d images","jetpack"),t.length,e.length)):v(__("Alt text added to all images","jetpack")):v("")},[]);const x=(0,i.useMemo)(()=>({"seo-title":m?null:k,"seo-meta-description":g?null:y,"images-alt-text":f?null:b}),[g,b,f,y,k,m]),j=(0,i.useMemo)(()=>Object.values(x).every(e=>!e),[x]),w=__("Want to fine-tune this metadata further?","jetpack"),_=__("No metadata found. Add it to improve search engine visibility.","jetpack");return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)(s.PanelRow,{className:"jetpack-seo-sidebar__feature-section jetpack-seo-sidebar__feature-section--toggle",children:[(0,h.jsx)(s.BaseControl,{__nextHasNoMarginBottom:!0,className:"ai-seo-enhancer-toggle",help:j?_:w,label:__("Metadata","jetpack"),id:"jetpack-seo-enhancer-generated-metadata",children:!j&&d.G.map(e=>x[e]?(0,h.jsxs)("div",{className:"jetpack-seo-enhancer-summary-feature",children:[(0,h.jsx)("div",{className:"jetpack-seo-enhancer-summary-feature__icon-container",children:(0,h.jsx)(c.A,{className:"jetpack-seo-enhancer-summary-feature__icon",icon:u.A})}),(0,h.jsx)(s.BaseControl,{className:"jetpack-seo-enhancer-summary-feature__control",label:d.z[e],id:e,help:x[e],__nextHasNoMarginBottom:!0,children:null},e)]},e):null)}),(0,h.jsx)(s.Button,{variant:"secondary",__next40pxDefaultSize:!0,className:"jetpack-seo-enhancer-summary__edit-button",onClick:e,children:__("Edit SEO metadata","jetpack")})]})})}},33569:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(73716),s=r(79427);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size},(t=[{key:"slice",value:function(e,t){if((0,n.A)())return(0,s.A)(this._file.slice(e,t));var r=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:r,done:o})}},{key:"close",value:function(){}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},33587:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"m3 12 1 8h1.5l-1-8H3Zm15.8-2h-4.4l.8-3.6c.3-1.3-.7-2.4-1.9-2.4h-.2c-.6 0-1.2.3-1.6.8l-5 6.6c-.3.4-.4.8-.4 1.2v.2l.7 5.4v.2c.2.9 1 1.5 1.9 1.5h8.2c.9 0 1.7-.6 1.9-1.4l1.8-6c.4-1.3-.6-2.6-1.9-2.6Zm.5 2.1-1.8 6c0 .2-.3.4-.5.4H8.8c-.3 0-.5-.2-.5-.4l-.7-5.4v-.4l5-6.6c0-.1.2-.2.4-.2h.2c.3 0 .6.3.5.6l-.8 3.6c-.1.4 0 .9.3 1.3s.7.6 1.2.6h4.4c.3 0 .6.3.5.6Z"})})},33623:(e,t,r)=>{"use strict";r.d(t,{Gy:()=>a,Lo:()=>l,Nd:()=>o,VN:()=>c,W4:()=>i});var n=r(56427),s=r(10790);const o=(0,s.jsx)(n.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})}),a=(0,s.jsx)(n.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})}),i=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})}),l=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"})}),c=(0,s.jsx)(n.SVG,{width:"18",height:"18",viewBox:
// translators: %d is the number of requests
__("%d requests remaining.","jetpack"),j)}),S&&(0,k.jsxs)(k.Fragment,{children:[" ",(0,k.jsx)(s.Button,{variant:"link",href:A,target:"_blank",onClick:()=>{r(h.AN,{context:q,placement:h.Cn})},children:(0,k.jsx)("span",{children:__("Upgrade","jetpack")})})]})," ",(0,k.jsx)(s.Tooltip,{text:__("Logo generation costs 10 requests; prompt enhancement costs 1 request each","jetpack"),placement:"bottom",children:(0,k.jsx)(a.A,{className:"prompt-footer__icon",icon:i.A})})]}),H&&V&&(0,k.jsx)(v.G,{}),H&&!V&&(0,k.jsx)(b.Q,{}),_&&(0,k.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error enhancing prompt. Please try again.","jetpack")}),C&&(0,k.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error generating logo. Please try again.","jetpack")})]})]})}},35075:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/top-posts","title":"Top Posts & Pages","description":"Display your most popular content.","keywords":["ranking","views","trending","popular"],"version":"1.0","textdomain":"jetpack","category":"embed","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' height=\'24px\' viewBox=\'0 0 24 24\' width=\'24px\'><rect fill=\'none\' height=\'24\' width=\'24\'/><path d=\'M19,5h-2V3H7v2H5C3.9,5,3,5.9,3,7v1c0,2.55,1.92,4.63,4.39,4.94c0.63,1.5,1.98,2.63,3.61,2.96V19H7v2h10v-2h-4v-3.1 c1.63-0.33,2.98-1.46,3.61-2.96C19.08,12.63,21,10.55,21,8V7C21,5.9,20.1,5,19,5z M5,8V7h2v3.82C5.84,10.4,5,9.3,5,8z M19,8 c0,1.3-0.84,2.4-2,2.82V7h2V8z\'/></svg>","supports":{"align":["wide","full"],"html":false,"multiple":true,"reusable":true,"color":{"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true,"lineHeight":true}},"attributes":{"layout":{"type":"string","default":"grid"},"displayAuthor":{"type":"boolean","default":true},"displayDate":{"type":"boolean","default":true},"displayThumbnail":{"type":"boolean","default":true},"displayContext":{"type":"boolean","default":false},"period":{"type":"string","default":"7"},"postsToShow":{"type":"number","default":3},"postTypes":{"type":"object","default":{"post":true,"page":true}}}}')},35116:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blog-stats","title":"Blog Stats","description":"Show a stats counter for your blog.","keywords":["views","hits","analytics","counter","visitors"],"version":"1.0","textdomain":"jetpack","category":"grow","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' height=\'24\' viewBox=\'0 -960 960 960\' width=\'24\'><path d=\'M160-200h160v-320H160v320Zm240 0h160v-560H400v560Zm240 0h160v-240H640v240ZM80-120v-480h240v-240h320v320h240v400H80Z\'/></svg>","supports":{"align":true,"alignWide":true,"html":false,"multiple":true,"reusable":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true}},"attributes":{"label":{"type":"string"},"statsData":{"type":"string","default":"views"},"statsOption":{"type":"string","default":"site"}}}')},35149:(e,t,r)=>{"use strict";r.d(t,{_:()=>s,e:()=>n});const n="https://pinterest.com/anapinskywalker/",s=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i},35211:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(20195),s=r(29491),o=r(47143),a=r(86087),i=r(27723),l=r(13022),c=r(14140),u=r(15330),d=r(3769),p=r(16544),h=r(19691),m=r(90209),g=r(10790);const __=i.__;class f extends a.Component{state={currentTrack:0,hasUserInteraction:!1};recordUserInteraction=()=>{this.state.hasUserInteraction||this.setState({hasUserInteraction:!0})};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)};loadTrack=e=>{const t=this.getTrack(e);if(!t)return!1;this.state.currentTrack!==e&&this.setState({currentTrack:e});const{titl
`${(0,i.sprintf)(__("Loading: %s","jetpack"),r)} ${o}`,"assertive"),!0};loadAndPlay=e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)};getTrack=e=>this.props.tracks[e];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,n.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")};handlePlay=()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})};handlePause=()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==u.pF&&this.props.pauseMediaSource(this.props.playerId)};handleTimeChange=e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)};handleJump=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)};handleSkip=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)};updateMediaData=e=>{this.props.updateMediaSourceData(this.props.playerId,{duration:e.target?.duration,domId:e.target?.id})};registerPlayer(){const e=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:u.vh}),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=>e?.length?e.map(e=>e.guid):[],r=t(this.props.tracks),n=new Set(t(e.tracks));r.length===n.size&&r.every(e=>n.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:r,cover:n,tracks:s,attributes:o,currentTime:a,playerState:u}=this.props,{itemsToShow:m,primaryColor:f,customPrimaryColor:b,hexPrimaryColor:v,secondaryColor:k,customSecondaryColor:y,hexSecondaryColor:x,backgroundColor:j,customBackgroundColor:w,hexBackgroundColor:_,showCoverArt:C,showEpisodeTitle:A,showEpisodeDescription:S}=o,{currentTrack:E}=this.state,N=s.slice(0,m),T=this.getTrack(E),B=(0,d.GU)({primaryColor:f,customPrimaryColor:b,secondaryColor:k,customSecondaryColor:y,backgroundColor:j,customBackgroundColor:w}),P={color:y,backgroundColor:w,"--jetpack-podcast-player-primary":v,"--jetpack-podcast-player-secondary":x,"--jetpack-podcast-player-background":_},I=(0,l.A)("jetpack-podcast-player",u,B.secondary.classes,B.background.classes);return(0,g.jsxs)("section",{className:I,style:P,"aria-labelledby":t||T&&T.title?`${e}__title`:void 0,"aria-describedby":T&&T.description?`${e}__track-description`:void 0,"data-jetpack-iframe-ignore":!0,children:[(0,g.jsx)(p.A,{playerId:e,title:t,link:r,cover:n,track:this.getTrack(E),showCoverArt:C,showEpisodeTitle:A,showEpisodeDescription:S,colors:B,children:(0,g.jsx)(c.A,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(E).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:u,currentTime:a,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData})}),N.length>1&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden",children:(0,i.sprintf)(
// translators: %s is the track title.
__("Playlist: %s","jetpack"),t)}),(0,g.jsx)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden",children:__("Select an episode to play it in the audio player.","jetpack")}),(0,g.jsx)(h.A,{playerId:e,playerState:u,currentTrack:E,tracks:N,selectTrack:this.selectTrack,colors:B})]})]})}}f.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]};const b=(0,s.compose)([m.A,(0,o.withSelect)((e,t)=>{const{playerId:r}=t,{getMediaSourceCurrentTime:n,getMediaPlayerState:s}=e(u.ax);return{currentTime:n(r),playerState:s(r)}}),(0,o.withDispatch)(e=>{const{registerMediaSource:t,updateMediaSourceData:r,unregisterMediaSource:n,setDefaultMediaSource:s,playMediaSource:o,pauseMediaSource:a,toggleMediaSource:i,errorMediaSource:l,setMediaSourceCurrentTime:c}=e(u.ax);return{registerMediaSource:t,updateMediaSourceData:r,unregisterMediaSource:n,setDefaultMediaSource:s,playMediaSource:o,pauseMediaSource:a,toggleMediaSource:i,errorMediaSource:l,setMediaSourceCurrentTime:c}})])(f)},35213:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n="iPhone\niPad\nMacBook\nMacintosh\n"},35358:(e,t,r)=>{"use strict";r.d(t,{BY:()=>i,ES:()=>s,_t:()=>o,iU:()=>a,jF:()=>n});const n=e=>Object.hasOwn(e,"lat")&&Object.hasOwn(e,"lng")?e:{lat:e.latitude||0,lng:e.longitude||0};function s(e,t){const r=new e.LngLatBounds;return t.forEach(e=>{r.extend([e.coordinates.longitude,e.coordinates.latitude])}),r}function o(e,t){e.fitBounds(t,{padding:{top:80,bottom:80,left:40,right:40}})}function a(e,t){e.innerHTML=`\n\t\t<?xml version="1.0" encoding="UTF-8"?>\n\t\t<svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t\t<g fill-rule="evenodd">\n\t\t\t\t<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="${t}"/>\n\t\t\t</g>\n\t\t</svg>\n\t`}function i(e){return new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},35479:(e,t,r)=>{"use strict";var n=r(75466);e.exports=function(e){return Boolean(n(this,e))}},35566:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});const n=[{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"
_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,a.jsx)("div",{className:"wp-block-jetpack-instagram-gallery__count-notice",children:(0,a.jsx)(n.Notice,{isDismissible:!1,status:"info",children:t})})})():null,(0,a.jsx)(n.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of Posts","jetpack"),value:p,onChange:e=>c({count:e}),min:1,max:o.V}),(0,a.jsx)(n.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of Columns","jetpack"),value:d,onChange:e=>c({columns:e}),min:1,max:6}),(0,a.jsx)(n.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Image Spacing (px)","jetpack"),value:g,onChange:e=>c({spacing:e}),min:0,max:50}),(0,a.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Stack on mobile","jetpack"),checked:m,onChange:()=>c({isStackedOnMobile:!m})})]})]})}},36425:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(13022),s=r(63147),o=r(10790);const a=({children:e=null,width:t=null,height:r=null,className:a=""})=>(0,o.jsx)("div",{className:(0,n.A)(s.A.placeholder,a),style:{width:t,height:r},children:e})},36433:(e,t,r)=>{"use strict";r.d(t,{s:()=>N});var n=r(70728),s=r(56427),o=r(47143),a=r(27723),i=r(68902),l=r.n(i),c=r(84566),u=r(83323),d=r(91690),p=r(24815),h=r(16117),m=r(85214),g=r(74814),f=r(16437),b=r(8878),v=r(92830),k=r(10790);const __=a.__,y=l()("jetpack-ai-calypso:logo-presenter"),x=({siteId:e})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,{saveLogo:a,selectedLogo:i,isSavingLogoToLibrary:l,logos:c,selectedLogoIndex:d,context:g}=(0,m.A)(),v=!!i?.mediaId,{loadLogoHistory:x}=(0,o.useDispatch)(b.E),j=__("Saving…","jetpack"),w=__("Saved","jetpack");return l||v?(0,k.jsxs)(s.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",children:[(0,k.jsx)(s.Icon,{icon:l?(0,k.jsx)(p.A,{}):(0,k.jsx)(u.A,{})}),(0,k.jsx)("span",{className:"action-text",children:l?j:w})]}):(0,k.jsxs)(s.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",onClick:async()=>{if(!v&&!l){r(h.h4,{context:g,logos_count:c.length,selected_logo:d?d+1:0});try{const t=await a(i);(0,f.H)({siteId:e,url:i.url,newUrl:t.mediaURL,mediaId:t.mediaId}),x(e)}catch(e){y("Error saving logo",e)}}},children:[(0,k.jsx)(s.Icon,{icon:(0,k.jsx)(p.A,{})}),(0,k.jsx)("span",{className:"action-text",children:__("Save in Library","jetpack")})]})},j=({onApplyLogo:e})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,{isSavingLogoToLibrary:o,selectedLogo:a,logos:i,selectedLogoIndex:l,context:c}=(0,m.A)();return(0,k.jsxs)(s.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",onClick:async()=>{o||(r(h.Zb,{context:c,logos_count:i.length,selected_logo:null!=l?l+1:0}),e?.(a?.mediaId))},disabled:o||!a?.mediaId,variant:"secondary",children:[(0,k.jsx)(s.Icon,{icon:(0,k.jsx)(d.A,{})}),(0,k.jsx)("span",{className:"action-text",children:__("Use on block","jetpack")})]})},w=()=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(v.$,{className:"jetpack-ai-logo-generator-modal-presenter__logo"}),(0,k.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text",children:__("Generating new logo…","jetpack")})]}),_=()=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(v.$,{className:"jetpack-ai-logo-generator-modal-presenter__logo"}),(0,k.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text",children:__("Fetching previous logos…","jetpack")})]}),C=()=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{style:{width:0,height:"229px"}}),(0,k.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text",children:__("Once you generate a logo, it will show up here","jetpack")})]}),A=({disabled:e,ratedItem:t,onRate:r})=>{const{logos:n,selectedLogo:s}=(0,m.A)(),o=n.filter(e=>e.rating).reduce((e,t)=>(e[t.url]=t.rating,e),{});return(0,k.jsx)(c.A,{disabled:e,ratedItem:t,feature:"logo-generator",savedRatings:o,options:{mediaLibraryId:s.mediaId,prompt:
__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:h,srcSet:m}=(0,l.A)(e,{layoutStyle:c});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":p,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:u===t,link:e.link,linkTo:a,origUrl:e.url,showMovers:o.length>1,srcSet:m,url:h,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:i,roundedCorners:p}=this.props,h=(0,l.s)(i)?u.A:c.A,m=this.props.images.map(this.renderImage,this),g=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{className:(0,o.A)(r,{[`has-rounded-corners-${g}`]:g>0}),children:[(0,d.jsx)(h,{align:e,columns:n,images:s,layoutStyle:i,renderedImages:m}),t]})}}},36791:(e,t,r)=>{"use strict";e.exports=r.p+"images/jetpack-logo-0869ca6c8490d0aaecca.svg"},36855:(e,t,r)=>{"use strict";var n=r(70728),s=r(74997),o=r(47143),a=r(43656),i=r(86087),l=r(52619),c=r(27723),u=r(61942),d=r(81982),p=r(44034),h=r(99876),m=r(23719),g=r(34020),f=r(78386),b=r(28413),v=r(16253),k=r(3398),y=r(10790);const __=c.__,x=h.name.replace("jetpack/","");(0,p.M)(h,{edit:f.h,transforms:{from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"blog_subscription"===e,transform:({instance:e})=>(0,s.createBlock)("jetpack/subscriptions",{showSubscribersTotal:e.raw.show_subscribers_total,submitButtonText:e.raw.subscribe_button,subscribePlaceholder:e.raw.subscribe_placeholder,successMessage:e.raw.success_message})},{type:"block",isMultiBlock:!1,blocks:["core/buttons"],transform:(e,t)=>{if(!t?.length)return(0,s.createBlock)("jetpack/subscriptions");const r=[];return t.forEach(e=>{const t=e?.attributes?.text;r.push((0,s.createBlock)("jetpack/subscriptions",{...t?{submitButtonText:t}:{}}))}),r}}]},deprecated:g.A});const j=()=>"post"===(0,o.select)("core/editor").getCurrentPostType(),w=()=>{const{isPreviewModalOpen:e,openPreviewModal:t,closePreviewModal:r,postId:s}=(()=>{const[e,t]=(0,i.useState)(!1),r=(0,o.select)("core/editor").getCurrentPostId(),{tracks:s}=(0,n.st)();return{isPreviewModalOpen:e,openPreviewModal:(0,i.useCallback)(e=>{t(!0),s.recordEvent("jetpack_newsletter_preview_opened",{source:e})},[s]),closePreviewModal:(0,i.useCallback)(()=>{t(!1)},[]),postId:r}})();return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(k.A,{}),j()&&(0,y.jsxs)(y.Fragment,{children:[a.PluginPreviewMenuItem?(0,y.jsx)(a.PluginPreviewMenuItem,{onClick:()=>t("preview_menu"),icon:d.A,children:__("Email preview","jetpack")}):null,(0,y.jsx)(b.X,{isOpen:e,onClose:r,postId:s}),(0,y.jsx)(v.A,{openPreviewModal:()=>t("newsletter_menu")})]}),(0,y.jsx)(m.A,{})]})};(0,n.vp)(x,{render:()=>(0,y.jsx)(w,{}),icon:j()?u.A:void 0}),(0,l.addFilter)("blocks.registerBlockType","jetpack-subscriptions-nav-item",(e,t)=>"core/navigation"===t?{...e,allowedBlocks:[...e.allowedBlocks??[],"jetpack/subscriptions"]}:e)},36872:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})})},37028:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(27723),s=r(44778),o=r(97517);const __=n.__,a=[{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,s.K)("send-a-message",o.A),innerBlocks:[["jetpack/whatsapp-button",{}]]}]},37120:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/mailchimp","title":"Mailchimp","description":"Allow readers to join a Mailchimp audience.","keywords":["email","subscription","newsletter"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m16.88,11.25c.17-.02.34-.02.49,0,.09-.2.1-.55.02-.93-.12-.57-.28-.91-.61-.86-.33.05-.34.46-.22,1.03.07.32.19.59.32.76\'/><path d=\'m14.03,11.7c.24.1.38.17.44.11.04-.04.03-.
__("No sites found for %s.","jetpack"),r)})]}),e.length>0&&(0,o.jsx)("ul",{"aria-live":"polite",children:e.map((e,r)=>{const n=i?.some?.(t=>t?.id===e?.blog_id)||!1;return(0,o.jsx)("li",{className:"jetpack-blogroll__appender-result-container",children:(0,o.jsxs)("button",{className:"jetpack-blogroll__appender-result-title",disabled:n,onClick:()=>t(e),children:[(0,o.jsx)("div",{className:"jetpack-blogroll__appender-result-image",children:e.site_icon&&(0,o.jsx)("img",{src:e.site_icon,alt:e.name,onError:e=>{e.target.parentNode.classList.add("empty-site-icon")}})}),(0,o.jsxs)("div",{className:"jetpack-blogroll__appender-result-text",children:[(0,o.jsx)("span",{className:"jetpack-blogroll__appender-result-title",children:e.name}),(0,o.jsx)("span",{className:"jetpack-blogroll__appender-result-description",children:e.description})]})]})},`${e.blog_id}-${r}`)})})]})}},37569:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(57997);function s(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}s.prototype.Token=n.A;const o=s},37578:(e,t,r)=>{"use strict";r.d(t,{O:()=>A});const n="array",s="bit",o="bits",a="byte",i="bytes",l="",c="exponent",u="function",d="iec",p="Invalid number",h="Invalid rounding method",m="jedec",g="object",f=".",b="round",v="s",k="si",y="kbit",x="kB",j=" ",w="string",_="0",C={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function A(e,{bits:t=!1,pad:r=!1,base:A=-1,round:S=2,locale:E=l,localeOptions:N={},separator:T=l,spacer:B=j,symbols:P={},standard:I=l,output:M=w,fullform:L=!1,fullforms:R=[],exponent:D=-1,roundingMethod:F=b,precision:O=0}={}){let z=D,U=Number(e),H=[],q=0,V=l;I===k?(A=10,I=m):I===d||I===m?A=2:2===A?I=d:(A=10,I=m);const G=10===A?1e3:1024,$=!0===L,W=U<0,Z=Math[F];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(p);if(typeof Z!==u)throw new TypeError(h);if(W&&(U=-U),(-1===z||isNaN(z))&&(z=Math.floor(Math.log(U)/Math.log(G)),z<0&&(z=0)),z>8&&(O>0&&(O+=8-z),z=8),M===c)return z;if(0===U)H[0]=0,V=H[1]=C.symbol[I][t?o:i][z];else{q=U/(2===A?Math.pow(2,10*z):Math.pow(1e3,z)),t&&(q*=8,q>=G&&z<8&&(q/=G,z++));const e=Math.pow(10,z>0?S:0);H[0]=Z(q*e)/e,H[0]===G&&z<8&&-1===D&&(H[0]=1,z++),V=H[1]=10===A&&1===z?t?y:x:C.symbol[I][t?o:i][z]}if(W&&(H[0]=-H[0]),O>0&&(H[0]=H[0].toPrecision(O)),H[1]=P[H[1]]||H[1],!0===E?H[0]=H[0].toLocaleString():E.length>0?H[0]=H[0].toLocaleString(E,N):T.length>0&&(H[0]=H[0].toString().replace(f,T)),r&&S>0){const e=H[0].toString(),t=T||(e.match(/(\D)/g)||[]).pop()||f,r=e.toString().split(t),n=r[1]||l,s=n.length,o=S-s;H[0]=`${r[0]}${t}${n.padEnd(s+o,_)}`}return $&&(H[1]=R[z]?R[z]:C.fullform[I][z]+(t?s:a)+(1===H[0]?l:v)),M===n?H:M===g?{value:H[0],symbol:H[1],exponent:z,unit:V}:H.join(B)}},37596:(e,t,r)=>{"use strict";var n=r(44034),s=r(71969),o=r(3133);(0,n.M)(s,{edit:o.A,save:()=>null})},37694:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})})},37822:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(27723),s=r(79544),o=r(83600),a=r(10790);const _x=n._x;function i({playing:e,muted:t,onPlayPressed:r,onMutePressed:n,showMute:i}){return(0,a.jsxs)("div",{className:"wp-story-controls",children:[(0,a.jsx)(s.d,{isPressed:e,label:e?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:r,children:e?(0,a.jsx)(o.E$,{}):(0,a.jsx)(o.ud,{})}),i&&(0,a.jsx)(s.d,{isPressed:t,label:t?_x("unmute","Button tooltip
2025-08-27 08:44:30 +02:00
__("Start playing the video as soon as the page loads","jetpack")),onChange:this.toggleAttribute("autoplay"),checked:L,help:this.getAutoplayHelp,__nextHasNoMarginBottom:!0}),(0,C.jsx)(l.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Loop","jetpack"),/* translators: Tooltip describing the "loop" option for the VideoPress player */
__("Restarts the video when it reaches the end","jetpack")),onChange:this.toggleAttribute("loop"),checked:O,__nextHasNoMarginBottom:!0}),(0,C.jsx)(l.ToggleControl,{label:__("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:z,__nextHasNoMarginBottom:!0}),(0,C.jsx)(l.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Playback Controls","jetpack"),/* translators: Tooltip describing the "controls" option for the VideoPress player */
__("Display the video playback controls","jetpack")),onChange:this.toggleAttribute("controls"),checked:D,__nextHasNoMarginBottom:!0}),(0,C.jsx)(l.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Play Inline","jetpack"),/* translators: Tooltip describing the "playsinline" option for the VideoPress player */
__("Play the video inline instead of full-screen on mobile devices","jetpack")),onChange:this.toggleAttribute("playsinline"),checked:U,__nextHasNoMarginBottom:!0}),(0,C.jsx)(l.SelectControl,{label:this.renderControlLabelWithTooltip(__("Preload","jetpack"),/* translators: Tooltip describing the "preload" option for the VideoPress player */
2025-12-12 13:13:07 +01:00
__("Content to dowload before the video is played","jetpack")),value:q??"",onChange:e=>u({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")}],help:this.getPreloadHelp(),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,C.jsx)(i.MediaUploadCheck,{children:(0,C.jsxs)(l.BaseControl,{className:"editor-video-poster-control",children:[(0,C.jsx)(l.BaseControl.VisualLabel,{children:__("Poster Image","jetpack")}),(0,C.jsx)(i.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:A,render:({open:e})=>(0,C.jsx)(l.Button,{variant:"secondary",onClick:e,ref:this.posterImageButton,"aria-describedby":Z,children:J?__("Replace image","jetpack",0):__("Select Poster Image","jetpack")})}),(0,C.jsx)("p",{id:Z,hidden:!0,children:J?(0,h.sprintf)(/* translators: %s: an image URL. */
__("The current poster image url is %s","jetpack"),H??M):__("There is no poster image currently selected","jetpack")}),J&&(0,C.jsx)(l.Button,{onClick:this.onRemovePoster,variant:"link",isDestructive:!0,children:__("Remove Poster Image","jetpack")})]})}),(0,d.createInterpolateElement)(__("Send us your <a>VideoPress feedback</a>","jetpack"),{a:(0,C.jsx)(l.ExternalLink,{href:"https://automattic.survey.fm/videopress-feedback"})})]}),(0,C.jsx)(y.A,{attributes:t,setAttributes:u,useAverageColor:V,toggleAttribute:this.toggleAttribute}),(0,C.jsxs)(l.PanelBody,{title:__("Video File Settings","jetpack"),children:[(0,C.jsx)(l.SelectControl,{label:_x("Rating","The age rating for this video.","jetpack"),value:N??"",disabled:k||j,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"}],onChange:this.onChangeRating,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,C.jsx)(l.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Allow download","jetpack"),/* translators: Tooltip describing the "allow download" option for the VideoPress player */
__("Display download option and allow viewers to download this video","jetpack")),onChange:this.onChangeAllowDownload,checked:T,disabled:k||P,__nextHasNoMarginBottom:!0}),(0,C.jsx)(l.SelectControl,{label:__("Video Privacy","jetpack"),help:this.getPrivacySettingHelp(B),onChange:this.onChangePrivacySetting,value:B??"",options:[{value:b.NF.SITE_DEFAULT,label:_x("Site Default","VideoPress privacy setting","jetpack")},{value:b.NF.PUBLIC,label:_x("Public","VideoPress privacy setting","jetpack")},{value:b.NF.PRIVATE,label:_x("Private","VideoPress privacy setting","jetpack")}],disabled:k||I,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})]})]}),Y=e=>{this.setState({fileForUpload:e[0]})},Q=e=>{e&&e.url?(this.props.setAttributes({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0}),e.videopress_guid&&this.props.setAttributes({guid:e.videopress_guid})):u({src:void 0,id:void 0,poster:void 0})},X=()=>"videoPressUploadPoster"in window,ee=(0,p.escapeHTML)(g?(0,_.T3)(g.name):""),te=({mediaId:e,guid:t,src:r})=>{this.setState({title:this.state.title??ee,fileForUpload:null,isUploadComplete:!!e,isEditingWhileUploading:!!e&&this.state.isEditingWhileUploading,pendingVideoAttributes:e&&t&&r?{id:e,guid:t,src:r}:null})},re=e=>{this.setState({title:e})},ne=e=>{this.setState({videoFrameSelectedInMillis:e,videoPosterImageData:null})},se=()=>{const e=this.state.title;this.updateMetaApiCall({title:e},()=>this.setState({isUpdatingTitle:!0,title:e}),()=>this.setState({title:e}),()=>this.setState({isUpdatingTitle:!1}))},oe=()=>ue({at_time:this.state.videoFrameSelectedInMillis,is_millisec:!0}),ae=()=>ue({poster_attachment_id:this.state.videoPosterImageData.id}),ie=e=>{e.generating?le():ce(e.poster)},le=()=>{setTimeout(()=>{(X()?window.videoPressGetPoster(F):o()({path:`/videos/${F}/poster`,apiNamespace:"rest/v1.1",global:!0,method:"GET"})).then(e=>ie(e))},2e3)},ce=e=>{e&&u({poster:e})},ue=e=>{if(X())return window.videoPressUploadPoster(F,e).then(e=>ie(e));o()({path:`/videos/${F}/poster`,apiNamespace:"rest/v1.1",method:"POST",global:!0,data:e}).catch(e=>e)},de=()=>{const{title:e,videoFrameSelectedInMillis:t}=this.state;e&&se(),M?ae():null!=t&&oe()},pe=()=>{this.state.pendingVideoAttributes&&u(this.state.pendingVideoAttributes),this.setState({isEditingWhileUploading:!1,pendingVideoAttributes:null}),de()};if(null!=g&&g.name||this.state.isEditingWhileUploading){const e=this.state.title??ee;return(0,C.jsx)(S,{fileForUpload:g,filename:ee,uploadFinished:te,blockSettings:K,onDismissEditor:pe,isUploadComplete:this.state.isUploadComplete,onSelectPoster:this.onSelectPoster,onRemovePoster:this.onRemovePoster,onChangeTitle:re,title:e,videoPosterImageData:this.state.videoPosterImageData,onVideoFrameSelected:ne,onSave:de})}const he=k||n,me=m||s||!F,ge=me&&!s&&!he,fe=(0,C.jsxs)(d.Fragment,{children:[(0,C.jsx)("div",{className:s||he?"":"videopress-block-hide",children:(0,C.jsx)(v.A,{text:s?__("Uploading…","jetpack"):__("Generating preview…","jetpack",0)})}),(0,C.jsx)("div",{className:ge?"":"videopress-block-hide",children:(0,C.jsx)(e,{...this.props})})]});if(me)return c?(0,C.jsx)(f.f,{onFilesSelected:Y,onMediaItemSelected:Q,children:fe}):(0,C.jsx)(d.Fragment,{children:fe});const{html:be,scripts:ve}=a||{html:null,scripts:null},ke=he||!a;return(0,C.jsxs)(d.Fragment,{children:[K,(0,C.jsx)(E,{...this.props,hideOverlay:this.hideOverlay,html:be,scripts:ve,interactive:w,caption:R,shouldRenderLoadingBlock:ke})]})}}]),"withVideoPressEdit")},38217:(e,t,r)=>{"use strict";r.d(t,{AK:()=>j,Kw:()=>w,Yj:()=>y,k9:()=>x});var n=r(56427),s=r(86087),o=r(27723),a=r(17414),i=r(28982),l=r(13022),c=r(22467),u=r(22071),d=r(84566),p=r(10790);const __=o.__,h="warning",m="error",g="success",f="info",b={[f]:null,[h]:null,[m]:c.A,[g]:i.A};function v({severity:e=f,icon:t=null,aiFeedbackThumbsOptions:r={showAIFeedbackThumbs:!1,ratedItem:"",prompt:"",block:null,onRate:()=>{}},children:n}){return(0,p.jsxs)("div",{className:(0,l.A)("jetpack-ai-assistant__message",`jetpack-ai-assistant__message-severity-${e}`),children:[(b[e]||t)&&(0,p.jsx)(a.A,{icon:b[e]||t}),(0,p.jsx)("div",{c
// translators: %1$d: number of requests remaining
__("You have %1$d requests remaining.","jetpack"),e)}),(0,p.jsx)(n.Button,{variant:"link",onClick:r,href:s,target:s?"_blank":null,children:(0,p.jsx)("span",{children:__("Upgrade now","jetpack")})})]})}function w({error:e,code:t,onTryAgainClick:r,onUpgradeClick:s,upgradeUrl:a}){const i=e||__("Something went wrong","jetpack");return(0,p.jsxs)(v,{severity:m,children:[(0,p.jsx)("span",{children:(0,o.sprintf)(
// translators: %1$d: A dynamic error message
__("Error: %1$s","jetpack"),i)}),t===u.Or?(0,p.jsx)(n.Button,{variant:"link",onClick:s,href:a,target:a?"_blank":null,children:(0,p.jsx)("span",{children:__("Upgrade now","jetpack")})}):(0,p.jsx)(n.Button,{variant:"link",onClick:r,children:(0,p.jsx)("span",{children:__("Try again","jetpack")})})]})}},38377:e=>{"use strict";e.exports=JSON.parse('{"T":{"White":"#fff","Black":"#000","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Gray":"#646970","Blue 0":"#fbfcfe","Blue 5":"#f7f8fe","Blue 10":"#d6ddf9","Blue 20":"#adbaf3","Blue 30":"#7b90ff","Blue 40":"#546ff3","Blue 50":"#3858e9","Blue 60":"#2a46ce","Blue 70":"#1d35b4","Blue 80":"#1f3286","Blue 90":"#14215a","Blue 100":"#0a112d","Blue":"#3858e9","WordPress Blue 0":"#fbfcfe","WordPress Blue 5":"#f7f8fe","WordPress Blue 10":"#d6ddf9","WordPress Blue 20":"#adbaf3","WordPress Blue 30":"#7b90ff","WordPress Blue 40":"#546ff3","WordPress Blue 50":"#3858e9","WordPress Blue 60":"#2a46ce","WordPress Blue 70":"#1d35b4","WordPress Blue 80":"#1f3286","WordPress Blue 90":"#14215a","WordPress Blue 100":"#0a112d","WordPress Blue":"#3858e9","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Purple":"#984a9c","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Pink":"#c9356e","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Red":"#d63638","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Orange":"#b26200","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Yellow":"#9d6e00","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Green":"#008a20","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","Celadon":"#008763","Automattic Blue 0":"#ebf4fa","Automattic Blue 5":"#c4e2f5","Automattic Blue 10":"#88ccf2","Automattic Blue 20":"#5ab7e8","Automattic Blue 30":"#24a3e0","Automattic Blue 40":"#1490c7","Automattic Blue 50":"#0277a8","Automattic Blue 60":"#036085","Automattic Blue 70":"#02506e","Automattic Blue 80":"#02384d","Automattic Blue 90":"#022836","Automattic Blue 100":"#021b24","Automattic Blue":"#24a3e0","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","Simplenote Blue":"#3361cc","WooCommerce Purple 0":"#f2edff","WooCommerce Purple 5":"#e1d7ff","WooCommerce Purple 10":"#d1c1ff","WooCommerc
c=__("Upgrade to %s to use this premium block","jetpack"),u=(__("Upgrade your plan to use this premium block","jetpack"),_x("Upgrade","Call to action to buy a new plan","jetpack")),d=({onRedirect:e,align:t,className:r,title:d=l,description:p=null,buttonText:h=u,visible:m=!0,requiredPlan:g,context:f})=>{const[b,v,k]=(0,n._6)(g,e),y=(0,o.useSelect)(e=>{if(p)return p;const t=e("wordpress-com/plans"),r=t&&t.getPlan(g);return r?(0,a.sprintf)(c,r.product_name_short):null},[p,g]);return y&&(0,i.jsx)(s.cb,{align:t,buttonText:h,checkoutUrl:b,className:r,context:f,description:y,goToCheckoutPage:v,isRedirecting:k,title:d,visible:m})}},39615:(e,t,r)=>{"use strict";var n=r(89742),s=r(94715),o=r(74997),a=r(29491),i=r(47143),l=r(86087),c=r(52619),u=r(94100),d=r(46803),p=r(5756),h=r(10790);const m=(0,a.createHigherOrderComponent)(e=>t=>{const[r,o]=(0,l.useState)(!1),{setLogo:a}=(()=>{const e=(0,i.useDispatch)("core").editEntityRecord,t=(0,l.useCallback)(t=>{e("root","site",void 0,{site_logo:t})},[e]),r=(0,l.useCallback)(t=>{e("root","site",void 0,{site_icon:t})},[e]);return{setLogo:(0,l.useCallback)((e,n)=>{t(e),n&&r(e)},[t,r])}})(),c=t?.attributes?.shouldSyncIcon||!1,u=(0,l.useCallback)(()=>{o(!0)},[]),m=(0,l.useCallback)(()=>{o(!1)},[]),g=(0,l.useCallback)(e=>{e&&a(e,c)},[a,c]);(0,l.useEffect)(()=>()=>{m()},[m]);const f=(()=>{const e=(0,i.useSelect)(e=>e("core").getEntityRecord("root","site"),[]);return{ID:parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId),URL:e?.url,domain:window?.Jetpack_Editor_Initial_State?.siteFragment,name:e?.title,description:e?.description,siteLogo:e?.site_logo||0}})();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(e,{...t}),(0,h.jsx)(s.BlockControls,{group:"block",children:(0,h.jsx)(d.A,{showButtonText:!f?.siteLogo,clickHandler:u})}),(0,h.jsx)(n.Tg,{isOpen:r,onClose:m,onApplyLogo:g,context:p.Mb,placement:p.tF,siteDetails:f})]})},"SiteLogoEditWithAiComponents");function g(e){if("core/site-logo"!==e)return!1;if(!(0,o.getBlockType)("jetpack/ai-assistant"))return!1;if(!(0,u.C)(p.TC))return!1;const{getHiddenBlockTypes:t}=(0,i.select)("core/edit-post")||{};return!(t?.()||[]).includes("jetpack/ai-assistant")}(0,c.addFilter)("blocks.registerBlockType","jetpack/site-logo-with-ai-support",function(e,t){return g(t)?{...e,edit:m(e.edit)}:e},100)},39829:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3711),s=r(89850);const o=[n.A,s.A]},39877:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(94715),s=r(86087),o=r(27723),a=r(10790);const __=o.__,i=({attributes:{address:e,addressLine2:t,addressLine3:r,city:n,region:o,postal:i,country:l}})=>(0,a.jsxs)(s.Fragment,{children:[e&&(0,a.jsx)("div",{className:"jetpack-address__address jetpack-address__address1",children:e}),t&&(0,a.jsx)("div",{className:"jetpack-address__address jetpack-address__address2",children:t}),r&&(0,a.jsx)("div",{className:"jetpack-address__address jetpack-address__address3",children:r}),n&&!(o||i)&&(0,a.jsx)("div",{className:"jetpack-address__city",children:n}),n&&(o||i)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"jetpack-address__city",children:n}),", ",(0,a.jsx)("span",{className:"jetpack-address__region",children:o})," ",(0,a.jsx)("span",{className:"jetpack-address__postal",children:i})]}),!n&&(o||i)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"jetpack-address__region",children:o})," ",(0,a.jsx)("span",{className:"jetpack-address__postal",children:i})]}),l&&(0,a.jsx)("div",{className:"jetpack-address__country",children:l})]}),l=({attributes:{address:e,addressLine2:t,addressLine3:r,city:n,region:s,postal:o,country:a}})=>{let i=s?`+${s},`:"";i=o?`${i}+${o}`:i;return`https://www.google.com/maps/search/${e?`${e},`:""}${t?`${t},`:""}${r?`${r},`:""}${n?`+${n},`:""}${i}${a?`+${a}`:""}`.replace(" ","+")},c=e=>{if(!(({address:e,addressLine2:t,addressLine3:r,city:n,region:s,postal:o,country:a})=>[e,t,r,n,s,o,a].some(e=>""!==e))(e.attributes))return null;const t=n.useBlockProps.save();return(0,a.jsxs)("div",{...t,children:[e.attributes.linkToGoogleMaps&&(0,a.jsx)("a",{href:l(e),target:"_blank",rel:"noopener noreferrer",title:__(
_n("<span>%s reader</span> is subscribed.","<span>%s readers</span> are subscribed.",M,"jetpack"),(0,o.qe)(M,{numberFormatOptions:{maximumFractionDigits:1}})),{span:(0,h.jsx)("span",{style:{fontWeight:"bold"}})})}),_&&(0,h.jsx)(a.__experimentalPanelColorGradientSettings,{title:__("Color","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",settings:[{colorValue:r.color,onColorChange:T,gradientValue:g.gradientValue,onGradientChange:g.setGradient,label:__("Button Background","jetpack")},{colorValue:L.color,onColorChange:B,label:__("Button Text","jetpack")},{colorValue:m.color,onColorChange:N,label:__("Border","jetpack")}],initialOpen:!0,children:(0,h.jsx)(a.ContrastChecker,{fontSize:j.size,textColor:L.color,backgroundColor:k.color,fallbackButtonBackgroundColor:y,fallbackTextColor:x})}),!_&&(0,h.jsx)(a.PanelColorSettings,{title:__("Background Colors","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",colorSettings:[{value:r.color,onChange:T,label:__("Button Background Color","jetpack")},{value:L.color,onChange:B,label:__("Button Text Color","jetpack")},{value:m.color,onColorChange:N,label:__("Border Color","jetpack")}],initialOpen:!1,children:(0,h.jsx)(a.ContrastChecker,{fontSize:j.size,textColor:L.color,backgroundColor:k.color,fallbackButtonBackgroundColor:y,fallbackTextColor:x})}),(0,h.jsx)(i.PanelBody,{title:__("Typography","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__textpanel",children:(0,h.jsx)(a.FontSizePicker,{withSlider:!0,value:j.size,onChange:e=>{const t=e||p.Fm;E({fontSize:t,customFontSize:t})},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,h.jsxs)(i.PanelBody,{title:__("Border","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__borderpanel",children:[(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:f,label:__("Border Radius","jetpack"),min:p.rG,max:p.Bs,initialPosition:p.Kn,allowReset:!0,onChange:e=>E({borderRadius:e})}),(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:b,label:__("Border Weight","jetpack"),min:p.ZS,max:p.JD,initialPosition:p.aS,allowReset:!0,onChange:e=>E({borderWeight:e})})]}),(0,h.jsxs)(i.PanelBody,{title:__("Spacing","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__spacingpanel",children:[(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:C,label:__("Space Inside","jetpack"),min:p.rE,max:p.Vy,initialPosition:p.oi,allowReset:!0,onChange:e=>E({padding:e})}),(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:I,label:__("Space Between","jetpack"),min:p.Hq,max:p.Zi,initialPosition:p.E,allowReset:!0,onChange:e=>E({spacing:e})}),(0,h.jsx)(d.s,{width:R,onChange:e=>{E({buttonWidth:e,buttonOnNewLine:v||"100%"===e})}})]}),(0,h.jsxs)(i.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__displaypanel",children:[(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show subscriber count","jetpack"),checked:P,onChange:()=>{E({showSubscribersTotal:!P,includeSocialFollowers:void 0!==w&&w})},help:()=>{if(!M||M<1)return __("This will remain hidden until there is at least one subscriber.","jetpack")}}),O&&(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!P,label:__("Include social followers in count","jetpack"),checked:void 0===w||w,onChange:()=>{E({includeSocialFollowers:void 0!==w&&!w})}}),(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Place button on new line","jetpack"),checked:v,onChange:()=>{E({buttonOnNewLine:!v})}}),(0,h.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,value:D,label:__("Input placeholder text","jetpack"),help:__("Edit the placeholder text of the email address input.","jetpack"),onChange:e=>E({subscribePlaceholder:e})}),!(0,n.isSimpleSite)()&&(0,h.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,value:F,label:__("Success message","jetpack"),help:__("Edit the message displayed when a user subscribes.","jetpack"),onChange:e=>E({successMessage:e})}),t&&
__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:k,srcSet:y}=(0,l.A)(e,{layoutStyle:u});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:c,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:o.length>1,srcSet:y,url:k,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:i,roundedCorners:p,onResize:h,isSave:m,columnWidths:g}=this.props,f=(0,l.s)(i)?u.A:c.A,b=this.props.images.map(this.renderImage,this),v=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{className:(0,o.A)(r,{[`has-rounded-corners-${v}`]:v>0}),children:[(0,d.jsx)(f,{align:e,columns:n,columnWidths:m?g:void 0,images:s,layoutStyle:i,renderedImages:b,onResize:m?void 0:h}),t]})}}},48160:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(27723),s=r(13022),o=r(10790);const __=n.__;function a({isEllipsis:e,disabled:t,index:r,isSelected:a,progress:i,onClick:l}){const c=t||e;let u=null;return e||(u=a?(0,n.sprintf)(/* translators: %d: Slide number. */
__("Slide %d, currently selected","jetpack"),r+1):(0,n.sprintf)(/* translators: %d: Slide number. */
__("Go to slide %d","jetpack"),r+1)),(0,o.jsx)("button",{role:c?"presentation":"tab",className:(0,s.A)("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":u,"aria-disabled":c||a,onClick:c||a?void 0:l,disabled:c,children:(0,o.jsx)("div",{className:"wp-story-pagination-bullet-bar",children:(0,o.jsx)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${i}%`}})})},r)}},48320:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var n=r(1455),s=r.n(n),o=r(47143),a=r(86087),i=r(89877);function l(e){const t=(0,i.escapeHTML)(e);return s()({path:"/wp/v2/tags",method:"POST",data:{name:t}}).catch(t=>"term_exists"!==t.code?Promise.reject(t):Promise.resolve({id:t.data.term_id,name:e}))}function c(e,t,r){const{editPost:n}=(0,o.useDispatch)("core/editor"),s=(0,a.useRef)("not-started"),{getEditedPostAttribute:i}=(0,o.useSelect)(e=>e("core/editor"),[]),c=(0,o.useSelect)(e=>e("core/editor").getEditedPostAttribute("type"),[]),u=(0,o.useSelect)(e=>e("core/editor").getEditedPostAttribute("tags")||[],[]),d=(0,o.useSelect)(e=>e("core").getPostType("post")?.taxonomies?.includes("post_tag"),[]),p=(0,a.useMemo)(()=>0===u.length?null:{_fields:"id,name",context:"view",include:u.join(","),per_page:-1},[u]),h=(0,o.useSelect)(e=>0===u.length?[]:e("core").getEntityRecords("taxonomy","post_tag",p)||[],[p,u.length]),m=(0,o.useSelect)(e=>0===u.length||e("core").hasFinishedResolution("getEntityRecords",["taxonomy","post_tag",p]),[p,u.length]);(0,a.useEffect)(()=>{"post"===c&&d&&!t&&m&&e&&Array.isArray(h)&&("not-started"===s.current&&(h.some(e=>e.name&&"dailyprompt"===e.name)&&h.some(t=>t.name&&t.name===`dailyprompt-${e}`)?s.current="fulfilled":(s.current="pending",Promise.all([l("dailyprompt"),l(`dailyprompt-${e}`)]).then(e=>{const t=e.map(e=>e.id),r=i("tags")||[];n({tags:[...r,...t]}),s.current="fulfilled"}).catch(e=>{console.error(e),s.current="rejected"}))),"fulfilled"===s.current&&r(!0))},[n,d,c,e,s,r,h,u,t,m,i])}},48399:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(58691),s=r(56427),o=r(43656),a=r(86087),i=r(92279),l=r(10790);const{Fill:c,Slot:u}=(0,s.createSlotFill)("JetpackPluginSidebar");(0,i.registerPlugin)("jetpack-sidebar",{render:()=>(0,l.jsx)(u,{children:e=>e.length?(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(o.PluginSidebarMoreMenuItem,{target:"jetpack",icon:(0,l.jsx)(n.ux,{}),children:"Jetpack"}),(0,l.jsx)(o.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:(0,l.jsx)(n.ux,{}),children:e})]}):null})})},48409:(e,t,r)=>{"use strict";r.d(t,{FL:()=>a,VU:()=>C,mJ:()=>s});var n=r(66087);function s(e){return e.map(o)}function o({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,s=[];let o=e,a=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,t=>{const n=a<=(e+1)*r;return n&&(a+=t),n}).length;s.push(t),o=o.slice(t)}return s.push(o.length),[s]}const i=A([2,1,2],5),l=S([E,E,N,E,E]),c=S([E,E,E,N,E,E,E]),u=A([3,1,3],5),d=S([N,E,E,N]),p=A([1,2,1],5),h=S([N,E,E,E]),m=A([1,3],3),g=S([E,E,E,N]),f=A([3,1],3),b=S([B(1.6),(0,n.overEvery)(T(.9),B(2)),(0,n.overEvery)(T(.9),B(2))]),v=A([1,2],3),k=A([1,1,1,1,1],1),y=A([1,1,1,1],1),x=A([1,1,1],3),j=S([(0,n.overEvery)(T(.9),B(2)),(0,n.overEvery)(T(.9),B(2)),B(1.6)]),w=A([2,1],3),_=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const r=(e,s)=>{if(!s.length)return e;let o;o=s.length>15&&l(s)&&i(e)?[2,1,2]:s.length>15&&c(s)&&u(e)?[3,1,3]:5!==s.length&&d(s)&&p(e)?[1,2,1]:h(s)&&m(e)?[1,3]:g(s)&&f(e)?[3,1]:b(s)&&v(e)?[1,2]:t&&(5===s.length||10!==s.length&&s.length>6)&&k(e)&&(0,n.sum)(s.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)(t.slice(0,4));return y(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,s)?[1,1,1,1]:function(e,t,r){const s=(0,n.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&x(e)&&(s<2.5||s<5&&t.length>=3&&t[0]===t[2]||r)}(e,s,t)?[1,1,1]:j(s)&&w(e)?[2,1]:_(s)?[1]:s.length>3?[1,1]:Array(s.length).fill(1);const a=e.concat([o]),C=(0,n.sum)(o),A=s.slice(C);return r(a,A)};return r([],e)}function A(e,t){return r=>!r.slice(-t).some(t=>(0,n.isEqual)(t,e))}function S(e){r
__("Delete %s","jetpack"),o.label),disabled:n===i,children:n===i?__("Deleting","jetpack"):__("Delete","jetpack",0)})})]},i)),(0,d.jsx)(a.MenuGroup,{label:__("Text tracks","jetpack"),className:"videopress-block-tracks-editor__track-list",children:o})}function y({track:e,guid:t,onChange:r,onClose:n,onCancel:s,trackExists:u}){const[g,f]=(0,l.useState)(),[v=!1,k]=(0,l.useState)(),{label:y="",srcLang:x="",kind:j=p}=e,w=e.tmpFile?e.tmpFile.name:"";if(!(0,i.useSelect)(e=>e(o.store).getSettings().mediaUpload,[]))return null;return(0,d.jsx)(a.NavigableMenu,{children:(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor",children:[(0,d.jsx)("span",{className:"videopress-block-tracks-editor__single-track-editor-label",children:__("Edit track","jetpack")}),(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file",children:[(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label",children:[(0,d.jsxs)("span",{children:[__("File","jetpack"),":"]}),""!==w&&(0,d.jsx)("span",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label-name",children:(0,d.jsx)("strong",{children:w})}),(0,d.jsx)(o.MediaUploadCheck,{children:(0,d.jsx)(a.FormFileUpload,{onChange:t=>{const n=t.target.files;!n.length>0||(e.tmpFile=n[0],r(e))},accept:h,render:({openFileDialog:e})=>(0,d.jsx)(a.Button,{variant:"link",onClick:()=>{e()},children:""===w?__("Select track","jetpack"):__("Change track","jetpack",0)}),disabled:v})})]}),(0,d.jsx)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-help",children:/* translators: %s: The allowed file types to be uploaded as a video text track." */ /* translators: %s: The allowed file types to be uploaded as a video text track." */
2025-07-27 19:58:08 +02:00
(0,c.sprintf)(__("Allowed formats: %s","jetpack"),h)})]}),(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-label-language",children:[(0,d.jsx)(a.TextControl,{onChange:t=>r({...e,label:t}),label:__("Label","jetpack"),value:y,help:__("Title of track","jetpack"),disabled:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,d.jsx)(a.TextControl,{onChange:t=>r({...e,srcLang:t}),label:__("Source language","jetpack"),value:x,help:__("Language tag (en, fr, etc.)","jetpack"),disabled:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]}),(0,d.jsx)(a.SelectControl,{className:"videopress-block-tracks-editor__single-track-editor-kind-select",options:m,value:j,label:/* translators: %s: The kind of video text track e.g: "Subtitles, Captions" */
2025-12-12 13:13:07 +01:00
__("Kind","jetpack"),onChange:t=>{r({...e,kind:t})},disabled:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-buttons-container",children:[v?(0,d.jsx)(a.Spinner,{}):(0,d.jsx)(a.Button,{variant:"secondary",disabled:!e.tmpFile,onClick:()=>{f(null),""===y&&(e.label=__("English","jetpack")),""===x&&(e.srcLang="en"),void 0===e.kind&&(e.kind=p),u(e)?f(__("A track already exists for that language and kind.","jetpack")):(k(!0),b(e,t).then(()=>{r(e),f(null),n()}).catch(e=>{e.message&&f(e.message)}).finally(()=>{k(!1)}))},children:__("Save","jetpack")}),(0,d.jsx)(a.Button,{variant:"link",onClick:s,children:__("Close","jetpack")})]}),g&&(0,d.jsx)("div",{className:"videopress-block-tracks-editor__single-track-editor-error",children:/* translators: %s: An error message returned after a failed video track file upload." */ /* translators: %s: An error message returned after a failed video track file upload." */
(0,c.sprintf)(__("Error: %s","jetpack"),g)})]})})}function x({tracks:e=[],onChange:t,guid:r}){const[n,s]=(0,l.useState)(null);return(0,d.jsx)(a.Dropdown,{contentClassName:"videopress-block-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,d.jsx)(a.ToolbarButton,{label:__("Text tracks","jetpack"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,icon:g}),renderContent:()=>null!==n?(0,d.jsx)(y,{track:e[n],guid:r,onChange:r=>{const s=[...e];s[n]=r,t(s)},onClose:()=>s(null),onCancel:()=>{t(e.filter((e,t)=>t!==n)),s(null)},trackExists:t=>-1!==e.filter((e,t)=>t!==n).findIndex(e=>e.kind===t.kind&&e.srcLang===t.srcLang),__next40pxDefaultSize:!0}):(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(a.NavigableMenu,{children:[(0,d.jsx)(k,{tracks:e,onChange:t,guid:r}),(0,d.jsx)(a.MenuGroup,{className:"videopress-block-tracks-editor__add-tracks-container",label:__("Add tracks","jetpack"),children:(0,d.jsx)(a.MenuItem,{icon:u.A,onClick:()=>{(()=>{const r=e.length,n=[...e];n[r]||(n[r]={}),n[r]={...e[r]},t(n),s(r)})()},children:__("Upload track","jetpack")})})]})})})}},49263:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-4-cce21819e376a0c6a174.jpg"},49323:(e,t,r)=>{"use strict";r.d(t,{d:()=>l});var n=r(28120),s=r.n(n),o=r(51609),a=r(25082),i=r(10790);class l extends o.PureComponent{static defaultProps={size:24};static propTypes={icon:s().string.isRequired,size:s().number,onClick:s().func,className:s().string};render(){const{size:e,onClick:t,icon:r,className:n,...s}=this.props,l=["social-logo","social-logo-"+r,n].filter(Boolean).join(" "),c=a.$.find(e=>e.name===r);if(!c)return(0,i.jsx)("svg",{height:e,width:e,...s});return(0,o.cloneElement)(c.svg,{className:l,height:e,width:e,onClick:t,...s})}}},49364:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_black_and_white_mapkit-50e9383d59f6ad6a44ed.jpg"},49378:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})})},49549:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(32936);async function s({mediaId:e}){const t=Number(e);if(Number.isNaN(t))return!1;try{return await(0,n.A)({path:`/wp/v2/media/${Number(e)}`,method:"GET"}),!0}catch(e){const t=e?.data?.status;if(404===t)return!1;throw e}}},49676:(e,t,r)=>{"use strict";r.d(t,{G:()=>o,W:()=>s});var n=r(27723);const __=n.__,s=__("Ask","jetpack"),o=__("Ask a question about this site","jetpack")},49677:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})})},49767:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(86087),s=r(70972);function o(e,t=!0){const[r,o]=(0,n.useState)(null),[a,i]=(0,n.useState)(null),[l,c]=(0,n.useState)(!1),u=function(e,t=100){const[r,s]=(0,n.useState)(e);return(0,n.useEffect)(()=>{const r=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}((0,s.l$)(e),500);return(0,n.useEffect)(()=>{if(c(Boolean(t&&u)),t&&u){const e=new AbortController;return fetch(`https://public-api.wordpress.com/rest/v1.1/sites/${encodeURIComponent(u)}?force=wpcom`,{cache:"force-cache",signal:e.signal}).then(e=>{if(200===e.status)return e.json();e.status}).then(e=>{o(e),c(!1)}).catch(e=>{"AbortError"!==e.name&&i(e)}),()=>e.abort()}},[u,t]),{response:r,error:a,isLoading:l}}},49788:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)"}},49897:(e,t,r)=>{"use strict";var n=r(74424);e.exports=function(e){var t,r,s,o,a=this,i=-1;n(e,a,a.data);for(;++i<a.compoundRules.length;){for(t=a.compoundRules[i],r="",o=-1;++o<t.length;)s=t.charAt(o),r+=a.compoundRuleCodes[s].length?"(?:"+a.compoundRuleCodes[s].join("|")+")":s;a.compoundRules[i]=new RegExp(r,"i")}return a}},50233:e=>{"use strict";e.exports
__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),y=a?l.A:i.A,{src:x,srcSet:j}=(0,c.A)(e,{layoutStyle:d});return(0,p.jsx)(y,{alt:e.alt,"aria-label":k,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:b===t,link:e.link,linkTo:u,customLink:e.customLink,onMoveBackward:a?void 0:h(t),onMoveForward:a?void 0:m(t),onRemove:a?void 0:g(t),onSelect:a?void 0:f(t),origUrl:e.url,setAttributes:a?void 0:v(t),showMovers:o.length>1,srcSet:j,url:x,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:i,roundedCorners:l,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,c.s)(i)?d.A:u.A,v=this.props.images.map(this.renderImage,this),k=i!==a.aQ?Math.min(l,a.WN):0;return(0,p.jsxs)("div",{style:m,className:(0,o.A)(r,{[`has-rounded-corners-${k}`]:k>0}),children:[(0,p.jsx)(b,{align:e,columns:n,columnWidths:g?f:void 0,images:s,layoutStyle:i,renderedImages:v,onResize:g?void 0:h}),t]})}}},50438:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(47143),s=r(74269),o=r(85804),a=r(13158),i=r(10790);function l({attributes:e,backgroundColor:t,clientId:r,context:l,fallbackBackgroundColor:c,fallbackTextColor:u,setAttributes:d,setBackgroundColor:p,setTextColor:h,textColor:m,gradientValue:g,setGradient:f,isGradientAvailable:b}){const{align:v,borderRadius:k}=e,y="jetpack/parentBlockWidth"in l,x=y?l["jetpack/parentBlockWidth"]:e.width,j=(0,n.useSelect)(e=>{const{getBlock:t,getBlockRootClientId:n}=e("core/block-editor");return t(n(r))}),{updateBlockAttributes:w}=(0,n.useDispatch)("core/block-editor");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.A,{backgroundColor:t,fallbackBackgroundColor:c,fallbackTextColor:u,gradientValue:g,setBackgroundColor:p,setGradient:f,setTextColor:h,textColor:m,isGradientAvailable:b}),(0,i.jsx)(o.A,{borderRadius:k,setAttributes:d}),(0,i.jsx)(s.D,{align:v,width:x,onChange:e=>{y?w(j.clientId,{width:e}):d({width:e})}})]})}},50621:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(89742),s=r(56427),o=r(27723),a=r(10790);const __=o.__;function i({state:e,onUpload:t,onCancel:r,onRecord:o,onPause:i,onResume:l,onDone:c}){return(0,a.jsxs)("div",{className:"jetpack-ai-voice-to-content__action-buttons",children:[["inactive","error","validating"].includes(e)&&(0,a.jsx)(s.Button,{className:"jetpack-ai-voice-to-content__button",icon:n.Vo,variant:"secondary",onClick:o,children:__("Begin recording","jetpack")}),["recording"].includes(e)&&(0,a.jsx)(s.Button,{className:"jetpack-ai-voice-to-content__button",icon:n.ni,variant:"secondary",onClick:i,children:__("Pause recording","jetpack")}),["paused"].includes(e)&&(0,a.jsx)(s.Button,{className:"jetpack-ai-voice-to-content__button",icon:n.Vo,variant:"secondary",onClick:l,children:__("Resume recording","jetpack")}),["inactive","error","validating"].includes(e)&&(0,a.jsx)(s.FormFileUpload,{accept:".mp3,.mpeg,.mpga,.ogg,.flac,.m4a,.mp4,.wav,.wave,.webm",onChange:t,variant:"secondary",className:"jetpack-ai-voice-to-content__button",__next40pxDefaultSize:!0,children:__("Upload audio","jetpack")}),["recording","paused"].includes(e)&&(0,a.jsx)(s.Button,{className:"jetpack-ai-voice-to-content__button",variant:"primary",onClick:c,children:__("Done","jetpack")}),["recording","paused","processing"].includes(e)&&(0,a.jsx)(s.Button,{className:"jetpack-ai-voice-to-content__button",variant:"secondary",onClick:r,children:__("Cancel","jetpack")})]})}},50685:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(7675),s=r(68902),o=r.n(s),a=r(41678),i=r(77748),l=r(22071);const c=o()("jetpack-ai-client:suggestions-event-source");class u extends EventTarget{constructor(e){super(),this.fullMessage="",this.fullFunctionCall={name:"",arguments:""},this.isPromptClear=!1,this.controller=new AbortController,this.initEventSource(e)}async initEventSource({url:e,question:t,token:r,options:s={}}){if(!r)try{c("Token was not provided, requesting one..."),r=(await(0,i.A)()).token}catch(e){return void this.processErrorEvent(e)}const o={};if(Number.isInteger(parseInt(s.postId))&&(o.post_id=+s.postId),!e){const t=new URL("https://public-api
2023-12-07 09:44:11 +01:00
// translators: %1$d: an integer, the number of requests to upgrade to on the next tier
2025-12-12 13:13:07 +01:00
__("Get %1$d requests","jetpack"),t):__("Get more requests","jetpack"),f=()=>{const e=(0,s.A)("jetpack-ai-tiers-more-requests-contact"),{autosaveAndRedirect:t,isRedirecting:r}=(0,a.ZR)(e);return{contactUsURL:e,autosaveAndRedirectContactUs:t,isRedirectingContactUs:r}};function b({isOverLimit:e,requestsCount:t,requestsLimit:r,nextStart:n,planType:s,loading:o,canUpgrade:l,showContactUsCallToAction:c,nextLimit:u,contactUsURL:d,handleContactUsClick:f,checkoutUrl:b,handleUpgradeClick:v}){const k=g(s,u),y=m(n);return(0,h.jsx)("div",{className:"jetpack-ai-usage-panel",children:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p.A,{isOverLimit:e,requestsCount:t,requestsLimit:r,nextResetDate:y,planType:s,loading:o}),!o&&(s===a._X||s===a.ds)&&l&&(0,h.jsxs)("div",{className:"jetpack-ai-usage-panel-upgrade-button",children:[c&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{children:__("Need more requests?","jetpack")}),(0,h.jsx)(i.Button,{target:"_blank",variant:"primary",label:__("Contact us for more requests","jetpack"),href:d,onClick:f,children:(0,h.jsx)("span",{children:__("Contact Us","jetpack")})})]}),!c&&(0,h.jsx)(i.Button,{target:"_blank",variant:"primary",label:__("Upgrade your Jetpack AI plan","jetpack"),href:b,onClick:v,children:(0,h.jsx)("span",{children:k})})]})]})})}function v({placement:e=null}){const{checkoutUrl:t}=(0,n.ON)(),{contactUsURL:r}=f(),{tracks:s}=(0,d.A)(),i=(0,a.CP)(),{requestsCount:l,requestsLimit:u,isOverLimit:p,usagePeriod:m,currentTier:g,nextTier:v,loading:k}=(0,n.yM)(),y=(0,a.Bd)(g),x=(0,c.useCallback)(()=>{s.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:g?.slug,requests_count:l,...e?{placement:e}:{}})},[s,g,l,e]),j=(0,c.useCallback)(()=>{s.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:g?.slug,requests_count:l,...e?{placement:e}:{}})},[s,g,l,e]),w=(0,o.isWpcomPlatformSite)()&&y===a.ds&&!v;return(0,h.jsx)(b,{isOverLimit:p,requestsCount:l,requestsLimit:u,nextStart:m?.nextStart,nextLimit:v?.limit,planType:y,loading:k,canUpgrade:i,showContactUsCallToAction:w,contactUsURL:r,handleContactUsClick:j,checkoutUrl:t,handleUpgradeClick:x})}},53495:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63162),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(13022),c=r(66087),u=r(94107),d=r(22697),p=r(53916),h=r(20045),m=r(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.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:r,delay:n,effect:s,images:o,onError:a}=this.props;if(t===e.align&&(0,c.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||r!==e.autoplay||n!==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(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,delay:t,effect:r,images:a}=this.props;return(0,m.jsx
__("Go to slide %s","jetpack"),e)+'"></button>'}else s+=`<div class="swiper-pagination-simple">${t} / ${r}</div>`;return s}},53961:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(12961),s=r(97999),o=r(70728),a=r(9361);const i=()=>{const e=new URLSearchParams(window.location.search),t=(0,o.GE)();return(0,s.isSimpleSite)()&&e.has("post")?`https://wordpress.com/post/${t}/${e.get("post")}`:`https://wordpress.com/home/${t}`};function l(){const{nextTier:e,tierPlansEnabled:t}=(0,a.A)(),r=i(),l=(0,n.A)("jetpack-ai-yearly-tier-upgrade-nudge",{site:(0,o.GE)(),path:t?`jetpack_ai_yearly:-q-${e?.limit}`:"jetpack_ai_yearly",query:`redirect_to=${encodeURIComponent(r)}`}),c=(0,n.A)("jetpack-ai-upgrade-url-for-jetpack-sites",{site:(0,o.GE)(),path:"jetpack_ai_yearly"}),u=(0,s.isWpcomPlatformSite)()?l:c,{autosaveAndRedirect:d,isRedirecting:p}=(0,o.ZR)(u);return{checkoutUrl:u,autosaveAndRedirect:d,isRedirecting:p}}},54206:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(47143),s=r(86087);const o=()=>{};function a(e=null,t=o){const[r,a]=(0,s.useState)(!1),{isAutosaveablePost:i,isDirtyPost:l,currentPost:c}=(0,n.useSelect)(e=>{const t=e("core/editor");return{isAutosaveablePost:t.isEditedPostAutosaveable(),isDirtyPost:t.isEditedPostDirty(),currentPost:t.getCurrentPost()}},[]),u=Object.keys(c).length>0,d=(0,n.useSelect)(e=>!!window.wp?.customize||!!e("core/edit-widgets")),p=(0,n.dispatch)("core/editor").savePost,h=(0,n.useSelect)(e=>e("core").__experimentalGetDirtyEntityRecords()),m=async e=>{e.preventDefault(),u?l&&i&&await p(e):await(async()=>{for(let e=0;e<h.length;e++)await(0,n.dispatch)("core").saveEditedEntityRecord(h[e].kind,h[e].name,h[e].key)})()};return{autosave:m,autosaveAndRedirect:async n=>{n.preventDefault(),r||(a(!0),m(n).then(()=>{e&&function(e,t,r=!1){t&&t(e),r?window.open(e,"_blank"):window.top.location.href=e}(e,t,d)}))},isRedirecting:r}}},54227:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(39384),s=r(70728),o=r(84690),a=r(27723),i=r(51609),l=r(10790);const __=a.__,c=()=>{const e=window?.location?.pathname.replace(/.*?wp-admin\//,""),t=window?.location?.search;return`${e}${t}`},u=({block:e,explanation:t=null})=>{const[r,a]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),{handleConnectUser:p}=(0,n.useConnection)({from:"editor",redirectUri:c(),autoTrigger:!1,skipPricingPage:!0}),{autosave:h}=(0,s.ZR)(),{tracks:m}=(0,s.st)();return(0,i.useEffect)(()=>{r&&p()},[r,p]),(0,l.jsxs)("div",{children:[(0,l.jsx)(o.cb,{buttonText:__("Connect Jetpack","jetpack"),className:"jetpack-connect-banner-nudge",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:t=>{d(!0),h(t).then(()=>{m.recordEvent("jetpack_editor_connect_banner_click",{block:e}),a(!0),d(!1)})},checkoutUrl:"#",isRedirecting:r||u}),(0,l.jsx)("div",{className:"jetpack-connect-banner",children:t&&(0,l.jsx)("div",{className:"jetpack-connect-banner__explanation",children:(0,l.jsx)("p",{children:t})})})]})}},54237:(e,t,r)=>{"use strict";r.d(t,{V:()=>p});var n=r(12961),s=r(97999),o=r(70728),a=r(47143),i=r(27723),l=r(74671),c=r(66108),u=r(17733),d=r(10790);const __=i.__,p=({blockName:e})=>{const t=(0,a.select)(c.M).getConnectUrl(),{tracks:r}=(0,o.st)();if(!t)return null;let i;const p=(0,s.isWpcomPlatformSite)();switch(e){case"payment-buttons":i=p?(0,n.A)("wpcom-support-wordpress-editor-blocks-payments-block"):(0,n.A)("jetpack-support-jetpack-blocks-payments-block");break;case"donations":i=p?(0,n.A)("wpcom-support-wordpress-editor-blocks-donations-block"):(0,n.A)("jetpack-support-jetpack-blocks-donations-block");break;case"premium-content":i=p?(0,n.A)("wpcom-support-wordpress-editor-blocks-premium-content-block"):(0,n.A)("jetpack-support-jetpack-blocks-premium-content-block");break;default:i=p?(0,n.A)("wpcom-support-payments-button-block"):(0,n.A)("jetpack-support-jetpack-blocks-payments-block")}return(0,d.jsx)(u.A,{className:"jetpack-stripe-nudge__banner",buttonLabel:__("Connect","jetpack"),icon:(0,d.jsx)(l.A,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,readMoreUrl:i,onClick:()=>r.
__("Prompt with id %d not found.","jetpack"),o)," ",(0,m.jsx)(a.Button,{variant:"link",onClick:e,children:__("Reset prompt","jetpack")})]})):(t=>(0,m.jsxs)(m.Fragment,{children:[(0,c.sprintf)(/* translators: %s is the error message. */
__("Error while fetching prompt: %s","jetpack"),t)," ",(0,m.jsx)(a.Button,{variant:"link",onClick:e,children:__("Retry","jetpack")})]}))(r.message);var o;t.removeAllNotices(),t.createErrorNotice(s)})},[g,t,k,y,n,E]);const N=e=>{n({showLabel:e})},T=e=>{n({showResponses:e})},B=(0,d.A)(["jetpack-blogging-prompt__label"],{"is-bloganuary-icon":A});return(0,m.jsxs)("div",{...S,children:[r,(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(o.InspectorControls,{children:(0,m.jsxs)(a.PanelBody,{title:_x("Settings","title of block settings sidebar section","jetpack"),children:[(0,m.jsx)(a.ToggleControl,{label:__("Show prompt label","jetpack"),checked:w,onChange:N,__nextHasNoMarginBottom:!0}),(0,m.jsx)(a.ToggleControl,{label:__("Show other responses","jetpack"),checked:_,onChange:T,__nextHasNoMarginBottom:!0})]})})}),k?(0,m.jsxs)(m.Fragment,{children:[w&&(0,m.jsx)("div",{className:B,children:x}),(0,m.jsx)("div",{className:"jetpack-blogging-prompt__text",children:j}),_&&y&&(0,m.jsxs)("div",{className:"jetpack-blogging-prompt__answers",children:[v&&v.slice(0,3).map(({url:e})=>e&&(0,m.jsx)("img",{className:"jetpack-blogging-prompt__answers-gravatar",src:e},e)),(0,m.jsx)("a",{className:"jetpack-blogging-prompt__answers-link",href:f,target:"_blank",rel:"external noreferrer noopener",children:b})]})]}):(0,m.jsx)("div",{className:"jetpack-blogging-prompt__spinner",children:(0,m.jsx)(a.Spinner,{})})]})})},55024:(e,t,r)=>{"use strict";var n=r(74997),s=r(44034),o=r(55918),a=r(75173),i=r(75593),l=r(38970),c=r(23062),u=r(54724);(0,s.M)(a,{edit:i.A,save:u.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"widget_contact_info"===e,transform:({instance:e})=>{let t=[(0,n.createBlock)("core/heading",{content:e.raw.title}),(0,n.createBlock)("jetpack/email",{email:e.raw.email}),(0,n.createBlock)("jetpack/phone",{phone:e.raw.phone}),(0,n.createBlock)("jetpack/address",{address:e.raw.address})];return e.raw.hours&&(t=[...t,(0,n.createBlock)("core/paragraph",{content:e.raw.hours})]),e.raw.showmap&&e.raw.address&&(t=[...t,(0,n.createBlock)("jetpack/map",{address:e.raw.address})]),(0,n.createBlock)("jetpack/contact-info",{},t)}}]}},[{name:o.U,settings:o.W},{name:l.U,settings:l.W},{name:c.U,settings:c.W}])},55032:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94715),s=r(56427),o=r(86087),a=r(27723),i=r(13022),l=r(39877),c=r(10790);const __=a.__,u=e=>{const{attributes:{address:t,addressLine2:r,addressLine3:a,city:u,region:d,postal:p,country:h,linkToGoogleMaps:m},isSelected:g,setAttributes:f}=e,b=[t,r,a,u,d,p,h].some(e=>""!==e),v=(0,i.A)({"jetpack-address-block":!0,"is-selected":g}),k=(0,o.useCallback)(e=>{"Enter"===e.key&&e.preventDefault()},[]),y=(0,n.useBlockProps)({className:v}),x=(0,c.jsx)(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Link address to Google Maps","jetpack"),checked:m,onChange:e=>f({linkToGoogleMaps:e})});return(0,c.jsxs)("div",{...y,children:[!g&&b&&(0,l.A)(e),(g||!b)&&(0,c.jsxs)(o.Fragment,{children:[(0,c.jsx)(n.PlainText,{value:t,placeholder:__("Street Address","jetpack"),"aria-label":__("Street Address","jetpack"),onChange:e=>f({address:e}),onKeyDown:k}),(0,c.jsx)(n.PlainText,{value:r,placeholder:__("Address Line 2","jetpack"),"aria-label":__("Address Line 2","jetpack"),onChange:e=>f({addressLine2:e}),onKeyDown:k}),(0,c.jsx)(n.PlainText,{value:a,placeholder:__("Address Line 3","jetpack"),"aria-label":__("Address Line 3","jetpack"),onChange:e=>f({addressLine3:e}),onKeyDown:k}),(0,c.jsx)(n.PlainText,{value:u,placeholder:__("City","jetpack"),"aria-label":__("City","jetpack"),onChange:e=>f({city:e}),onKeyDown:k}),(0,c.jsx)(n.PlainText,{value:d,placeholder:__("State/Province/Region","jetpack"),"aria-label":__("State/Province/Region","jetpack"),onChange:e=>f({region:e}),onKeyDown:k}),(0,c.jsx)(n.PlainText,{value:p,placeholder:__("Postal/Zip Code","jetpack"),"aria-label":__("Postal/Zip Code","jetpack"),onChange:e=>f({postal:e}),onKeyDown:k}),(0,c.jsx)(n.PlainText,{value:h,placeholder:__("Country","jetpack"),"aria-label":__("Country","jetpack"),onChange:e=>f({country:e}),onKeyDown:k}),
__("Open Table Preview %s","jetpack"),t),scrolling:"no",src:`https://www.opentable.com/widget/reservation/canvas?rid=${Array.isArray(N)?N.join("%2C"):""}&type=${r}&theme=${n}&overlay=false&domain=${B}&lang=${P&&g.L.includes(P)?P:"en-US"}&newtab=${I}&disablega=true`})]})})()]})]})})},56781:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(94715),s=r(56427),o=r(86087),a=r(27723),i=r(10790);const __=a.__;class l extends o.Component{constructor(){super(...arguments);const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:r}=this.props.attributes;this.state={seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:r}}handleChangeSeekbarColor=e=>{this.setState({seekbarColor:e})};handleChangeSeekbarLoadingColor=e=>{this.setState({seekbarLoadingColor:e})};handleChangeSeekbarPlayedColor=e=>{this.setState({seekbarPlayedColor:e})};saveColors=()=>{const{seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:r}=this.state,{setAttributes:n}=this.props;n({seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:r})};render(){const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:r}=this.state,{toggleAttribute:o,useAverageColor:a}=this.props,l=!0;return(0,i.jsxs)(s.PanelBody,{className:"seekbar-color-settings__panel",title:__("Progress Bar Colors","jetpack"),initialOpen:!1,children:[(0,i.jsx)(s.ToggleControl,{label:__("Match video","jetpack"),help:__("Colors adapt to the video as it plays","jetpack"),onChange:o("useAverageColor"),checked:a,__nextHasNoMarginBottom:!0}),(0,i.jsx)(n.PanelColorSettings,{opened:!a,showTitle:!1,colorSettings:[{value:e,onChange:this.handleChangeSeekbarColor,label:__("Main","jetpack"),showTitle:l},{value:r,onChange:this.handleChangeSeekbarLoadingColor,label:__("Loaded","jetpack"),showTitle:l},{value:t,onChange:this.handleChangeSeekbarPlayedColor,label:__("Progress","jetpack"),showTitle:l}],children:(0,i.jsx)(s.Button,{variant:"secondary",onClick:this.saveColors,children:__("Save colors","jetpack")})})]})}}const c=l},56838:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(54439),s=r(80016),o=r(71455),a=r(55439),i=r(60737),l=r(42813),c=r(7237),u=r(25315),d=r(87072),p=r(69404),h=r(8079),m=r(26881);const g={default:p.A,zero:h.A,commonmark:m.A},f=/^(vbscript|javascript|file|data):/,b=/^data:image\/(gif|png|jpeg|webp);/;function v(e){const t=e.trim().toLowerCase();return!f.test(t)||b.test(t)}const k=["http:","https:","mailto:"];function y(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||k.indexOf(t.protocol)>=0))try{t.hostname=d.Ay.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function x(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||k.indexOf(t.protocol)>=0))try{t.hostname=d.Ay.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function j(e,t){if(!(this instanceof j))return new j(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new l.A,this.block=new i.A,this.core=new a.A,this.renderer=new o.A,this.linkify=new c.A,this.validateLink=v,this.normalizeLink=y,this.normalizeLinkText=x,this.utils=n,this.helpers=n.assign({},s),this.options={},this.configure(e),t&&this.set(t)}j.prototype.set=function(e){return n.assign(this.options,e),this},j.prototype.configure=function(e){const t=this;if(n.isString(e)){const t=e;if(!(e=g[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},j.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(e){return r.indexOf(e)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},j.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(func
// Translators: %s is the date when the requests will reset.
const r=__("Requests will reset on %s.","jetpack");return`${t} ${(0,l.sprintf)(r,e)}`})((e=>{if(!e?.nextStart)return null;const t=new Date(e.nextStart);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()})(e));return(0,i.createInterpolateElement)(t,{link:(0,m.jsx)("a",{href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy",target:"_blank",rel:"noreferrer"}),span:(0,m.jsx)("span",{})})})();return"muted"===e?(0,m.jsx)("span",{className:"jetpack-ai-fair-usage-notice-muted-variant",children:t}):"error"===e?(0,m.jsx)(a.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice",children:t}):null},b=e=>{const{upgradeType:t,currentTier:r}=(0,p.A)();return 1===r?.value?(0,m.jsx)(f,{}):"vip"===t?(({description:e=null,useLightNudge:t=!1})=>{const r=t?h.U:o.cb,n=(0,i.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,m.jsx)("strong",{})});return(0,m.jsx)(r,{buttonText:null,checkoutUrl:null,className:"jetpack-ai-upgrade-banner",description:e||n,goToCheckoutPage:null,isRedirecting:null,visible:!0,align:null,title:null,context:null})})({description:e.description,useLightNudge:e?.useLightNudge}):(({placement:e=null,description:t=null,useLightNudge:r=!1})=>{const a=r?h.U:o.cb,{checkoutUrl:c}=(0,d.A)(),u=(0,s.CP)(),{nextTier:f,tierPlansEnabled:b,currentTier:v,requestsCount:k}=(0,p.A)(),{tracks:y}=(0,s.st)(),x=(0,i.useCallback)(()=>{g("upgrade",e),y.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:v?.slug,requests_count:k,placement:e})},[v,k,y,e]),j=(0,i.useCallback)(()=>{g("contact us",e),y.recordEvent("jetpack_ai_upgrade_contact_us",{placement:e})},[y,e]);if(!u){const e=(0,i.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Reach out to the site administrator to upgrade and keep using Jetpack AI.</strong>","jetpack"),{strong:(0,m.jsx)("strong",{})});return(0,m.jsx)(a,{showButton:!1,className:"jetpack-ai-upgrade-banner",description:t||e,visible:!0,align:null,title:null,context:null})}if(b){if(!f){const e=(0,n.A)("jetpack-ai-tiers-more-requests-contact"),r=__("You have reached the request limit for your current plan.","jetpack");return(0,m.jsx)(a,{buttonText:__("Contact Us","jetpack"),description:t||r,className:"jetpack-ai-upgrade-banner",checkoutUrl:e,visible:!0,align:null,title:null,context:null,goToCheckoutPage:j,target:"_blank"})}const e=(0,i.createInterpolateElement)((0,l.sprintf)(/* Translators: %d: the number of requests allowed */
__("You have reached the requests limit for your current plan. <strong>Upgrade now to increase your requests limit to %d.</strong>","jetpack"),f.limit),{strong:(0,m.jsx)("strong",{})});return(0,m.jsx)(a,{buttonText:(0,l.sprintf)(/* Translators: %d: the number of requests */
__("Upgrade to %d requests","jetpack"),f.limit),checkoutUrl:c,className:"jetpack-ai-upgrade-banner",description:t||e,goToCheckoutPage:x,visible:!0,align:"center",title:null,context:null,target:"_blank"})}return(0,m.jsx)(a,{buttonText:__("Upgrade","jetpack"),checkoutUrl:c,className:"jetpack-ai-upgrade-banner",description:(0,i.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Upgrade now to keep using it.</strong>","jetpack"),{strong:(0,m.jsx)("strong",{})}),goToCheckoutPage:x,visible:!0,align:null,title:null,context:null,target:"_blank"})})(e)}},58496:(e,t,r)=>{"use strict";var n=r(73509);e.exports=function(e){var t,r,u,d,p,h,m,g,f,b,v,k,y=Object.create(null),x=Object.create(null),j=Object.create(null),w=[],_={in:[],out:[]},C=[],A=e.toString("utf8"),S=[],E=0,N=A.indexOf("\n");j.KEY=[];for(;N>-1;)T(A.slice(E,N)),E=N+1,N=A.indexOf("\n",E);T(A.slice(E)),N=-1;for(;++N<S.length;)if("REP"===(r=(t=S[N].split(a))[0])){for(u=N+parseInt(t[1],10);++N<=u;)t=S[N].split(a),w.push([t[1],t[2]]);N--}else if("ICONV"===r||"OCONV"===r){for(u=N+parseInt(t[1],10),m=_["ICONV"===r?"in":"out"];++N<=u;)t=S[N].split(a),m.push([new RegExp(t[1],"g"),t[2]]);N--}else if("COMPOUNDRULE"===r){for(u=N+parseInt(t[1],10);++N<=u;)for(f=S[N].split(a)[1],g=-1,C.push(f);++g<f.length;)x[f.charAt(g)]=[];N--}else if("PFX"===r||"SFX"===r){for(u=N+parseInt(t[3],10),f={type:r,combineable:"Y"===t[2],entries:[]},y[t[1]]=f;++N<=u;){d=(t=S[N].split(a))[2],p=t[3].split("/"),h=t[4],m={add:"",remove:"",match:"",continuation:n(j,p[1])},p&&"0"!==p[0]&&(m.add=p[0]);try{"0"!==d&&(m.remove="SFX"===r?l(d):d),h&&"."!==h&&(m.match="SFX"===r?l(h):c(h))}catch(e){m=null}m&&f.entries.push(m)}N--}else if("TRY"===r){for(h=t[1],v=-1,b=[];++v<h.length;)(k=h.charAt(v)).toLowerCase()===k&&b.push(k);for(v=-1;++v<o.length;)h.indexOf(o[v])<0&&b.push(o[v]);j[r]=b}else"KEY"===r?s.apply(j[r],t[1].split("|")):"COMPOUNDMIN"===r?j[r]=Number(t[1]):"ONLYINCOMPOUND"===r?(j[r]=t[1],x[t[1]]=[]):j[r]=t[1];isNaN(j.COMPOUNDMIN)&&(j.COMPOUNDMIN=3);j.KEY.length||(j.KEY=i);j.TRY||(j.TRY=o.concat());j.KEEPCASE||(j.KEEPCASE=!1);return{compoundRuleCodes:x,replacementTable:w,conversion:_,compoundRules:C,rules:y,flags:j};function T(e){(e=e.trim())&&35!==e.charCodeAt(0)&&S.push(e)}};var s=[].push,o="etaoinshrdlcumwfgypbvkjxqz".split(""),a=/\s+/,i=["qwertzuop","yxcvbnm","qaw","say","wse","dsx","sy","edr","fdc","dx","rft","gfv","fc","tgz","hgb","gv","zhu","jhn","hb","uji","kjm","jn","iko","lkm"];function l(e){return new RegExp(e+"$")}function c(e){return new RegExp("^"+e)}},58630:(e,t,r)=>{"use strict";r.d(t,{$U:()=>i});var n=r(13022),s=r(10790);const o=({title:e,alt:t,className:r,id:o,mediaRef:a,mime:i,sizes:l,srcset:c,url:u})=>(0,s.jsx)("img",{ref:a,"data-id":o,"data-mime":i,title:e,alt:t,src:u,className:(0,n.A)("wp-story-image",`wp-image-${o}`,r),srcSet:c,sizes:l}),a=({title:e,className:t,id:r,mediaRef:o,mime:a,url:i,poster:l})=>(0,s.jsx)("video",{className:(0,n.A)("wp-story-video","intrinsic-ignore",`wp-video-${r}`,t),ref:o,"data-id":r,title:e,type:a,src:i,poster:l,tabIndex:-1,preload:"auto",playsInline:!0}),i=({targetAspectRatio:e,cropUpTo:t,type:r,width:n,height:i,...l})=>{let c=null;if(n&&i){const r=n/i;if(r>=e){r>e/(1-t)||(c="wp-story-crop-wide")}else{r<e*(1-t)||(c="wp-story-crop-narrow")}}const u="video"===r||(l.mime||"").startsWith("video/");return(0,s.jsx)("figure",{children:u?(0,s.jsx)(a,{...l,className:c}):(0,s.jsx)(o,{...l,className:c})})}},58691:(e,t,r)=>{"use strict";r.d(t,{KZ:()=>h,M4:()=>u,QB:()=>d,T3:()=>c,ik:()=>g,k7:()=>p,oW:()=>f,ud:()=>m,ux:()=>l});var n=r(38377),s=r(56427),o=r(13022),a=r(10790);const i=n.T["Jetpack Green 40"],l=({size:e=24,border:t=0,className:r,color:n=i})=>{const l=t?-t/e*32:0;return(0,a.jsxs)(s.SVG,{className:(0,o.A)("jetpack-logo",r),width:e,height:e,viewBox:`${l} ${l} ${32-2*l} ${32-2*l}`,children:[(0,a.jsx)(s.Path,{className:"jetpack-logo__icon-circle",fill:n,stroke:t?"#fff":"transparent",strokeWidth:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),(0,a.jsx)(s.Polygon,{className:"jetpack
// translators: %1$d: number of days until the next usage count reset, %2$s: date of next reset
__("Requests will reset to <strong>%1$d</strong> on %2$s.","jetpack"),l,d),{strong:(0,c.jsx)("strong",{})}));const b=r/l,v=(0,c.jsxs)(c.Fragment,{children:[t===s.Ti&&(0,c.jsx)("p",{children:__("Unlimited requests.","jetpack")}),(t===s._X||t===s.ds)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"jetpack-ai-usage-panel__available-requests",children:f}),(0,c.jsx)(u,{usage:b})]})]}),k=(0,c.jsx)(n.A,{height:100,className:"jetpack-ai-usage-panel__loading-placeholder"}),y=(0,c.jsxs)(c.Fragment,{children:[!p&&g.length?g.join(" ").concat(" "):null,!p&&m]});return(0,c.jsxs)(o.BaseControl,{__nextHasNoMarginBottom:!0,help:y,children:[(0,c.jsx)(o.BaseControl.VisualLabel,{children:__("Available Requests","jetpack")}),!p&&v,p&&k]})}},61356:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(56427);const s=(0,n.withFallbackStyles)((e,t)=>{const{textColor:r,backgroundColor:n}=t,s=n&&n.color,o=r&&r.color;return{fallbackBackgroundColor:s||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:o||!e?void 0:getComputedStyle(e).color}})},61428:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(86221),s=r(10790);const o=({value:e="https://jetpack.com",size:t=248,bgColor:r,fgColor:o,level:a,includeMargin:i,imageSettings:l,renderAs:c="canvas"})=>{const u={value:e,size:t,bgColor:r,fgColor:o,level:a,includeMargin:i,imageSettings:l};return"svg"===c?(0,s.jsx)(n.h,{...u}):(0,s.jsx)(n.X,{...u})}},61498:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let n={_data:{},setItem:function(e,t){this._data[e]=t},getItem:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null},removeItem:function(e){delete this._data[e]},clear:function(){this._data={}},get length(){return Object.keys(this._data).length},key:function(e){const t=Object.keys(this._data);return e in t?t[e]:null}};try{window.localStorage&&(n=window.localStorage)}catch(e){}const s=n},61571:(e,t,r)=>{"use strict";var n=r(74997),s=r(47143),o=r(43656),a=r(44034),i=r(64524),l=r(22086),c=r(31843);const u=(0,s.subscribe)(()=>{const e=(0,s.select)(o.store).getCurrentPostType();null!==e&&(u(),e&&"post"!==e&&void 0!==(0,n.getBlockType)(i.name)&&(0,n.unregisterBlockType)(i.name))});(0,a.M)(i,{edit:l.A,save:()=>null,transforms:c.A})},61585:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(1455),s=r.n(n),o=r(86087),a=r(27723),i=r(93832),l=r(70972);const __=a.__;function c({ignore_user_blogs:e}){const[t,r]=(0,o.useState)(!1),[n,a]=(0,o.useState)(null),[c,u]=(0,o.useState)([]),d=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{r(!0),a(null),d.current&&d.current.abort(),d.current="undefined"==typeof AbortController?void 0:new AbortController,s()({path:(0,i.addQueryArgs)("/wpcom/v2/following/mine",{ignore_user_blogs:e}),global:!0,method:"GET",signal:d.current?.signal}).then(e=>{e.length||a(__("No subscriptions found. You need to follow some sites in order to see results.","jetpack")),e=e.map(e=>(e.site_icon=(0,l.ZE)(e.site_icon),e)),u(e)}).catch(e=>{"AbortError"!==e.name&&(e.message?a(e.message):a(__("Whoops, we have encountered an error. Please try again later.","jetpack")))}).finally(()=>{d.current=null,r(!1)})},[e]),{isLoading:t,errorMessage:n,subscriptions:c}}},61592:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(56427),s=r(47143),o=r(86087),a=r(27723),i=r(56356),l=r(45980),c=r(70972),u=r(37475),d=r(2019),p=r(10790);const __=a.__;function h({isLoading:e,subscriptions:t,clientId:r}){const[a,h]=(0,o.useState)(!1),[m,g]=(0,o.useState)(),[f,b]=(0,o.useState)(""),{insertBlock:v}=(0,s.dispatch)("core/block-editor"),{siteDetails:k,isLoading:y}=(0,l.A)({siteURL:f,subscriptions:t,enabled:f});return e?(0,p.jsx)(n.Spinner,{className:"jetpack-blogroll__appender-spinner"}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n.Button,{className:"block-editor-button-blogroll-block-appender",ref:g,icon:i.A,label:__("Add Blogroll Item","jetpack"),onClick:()=>{h(e=>!e)}}),a&&(0,p.jsxs)(n.Popover,{anchor:m,className:"jetpack-blogroll__appender",children:[(0,p.jsx)(d.A,{value:f,onChange:b}),(0,p.jsx)(u.A,{results:k,onSelect:e=>{v((0,c.FN)(e),void 0,r),h(!1)},searchInput:f,isLoading:y})]})]})}},61610:(e,t,r)=>{"use strict";v
_n("%d character","%d characters",t.length,"jetpack"),t.length):(0,s.sprintf)(/* translators: %1$d: suggested character limit, %2$d: number of characters in a sentence. */
__("It is recommended to use less than %1$d characters in this field. (%2$d/%1$d)","jetpack"),e,t.length);return(0,o.jsx)("div",{className:"jetpack-seo-message-box",children:(0,o.jsx)(n.TextareaControl,{__nextHasNoMarginBottom:!0,label:r,help:i,value:t,...a})})}},61999:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(86087);const s=e=>{const t=(0,n.useRef)(void 0),r=(0,n.useRef)(void 0),s=(0,n.useRef)(e),o=(0,n.useCallback)(e=>{e.touches&&1===e.touches.length&&e.preventDefault()},[]);return(0,n.useEffect)(()=>{s.current=e},[e]),{onTouchStart:(0,n.useCallback)(e=>{e.target&&(e.target.addEventListener("touchend",o,{passive:!1}),r.current=e.target),t.current=setTimeout(()=>{s.current&&s.current(!0),t.current=null},200)},[]),onTouchEnd:(0,n.useCallback)(e=>{t.current?clearTimeout(t.current):(s.current&&s.current(!1),e.stopPropagation()),r.current&&r.current.removeEventListener("touchend",o)},[])}}},62174:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>o.A,save:()=>i,supports:()=>a.A});var n=r(94715),s=r(10790),o=r(78373),a=r(71152);const i=()=>(0,s.jsx)(n.InnerBlocks.Content,{})},62206:(e,t,r)=>{"use strict";function n(e,t){for(let r=t.length-1;r>=0;r--){const n=t[r];if(95!==n.marker&&42!==n.marker)continue;if(-1===n.end)continue;const s=t[n.end],o=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===s.token+1,a=String.fromCharCode(n.marker),i=e.tokens[n.token];i.type=o?"strong_open":"em_open",i.tag=o?"strong":"em",i.nesting=1,i.markup=o?a+a:a,i.content="";const l=e.tokens[s.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--)}}r.d(t,{A:()=>s});const s={tokenize:function(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t)return!1;if(95!==n&&42!==n)return!1;const s=e.scanDelims(e.pos,42===n);for(let t=0;t<s.length;t++){e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close})}return e.pos+=s.length,!0},postProcess:function(e){const t=e.tokens_meta,r=e.tokens_meta.length;n(e,e.delimiters);for(let s=0;s<r;s++)t[s]&&t[s].delimiters&&n(e,t[s].delimiters)}}},62227:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94715),s=r(13022),o=r(10790);const a=(e,t,r,a,i,l={})=>{const{isSelected:c}=t,u=t.attributes[e];return l.className=(0,s.A)(l.className,`jetpack-${e}-block`,{"is-selected":c}),(0,o.jsxs)("div",{...l,children:[!c&&""!==u&&a(t),(c||""===u)&&(0,o.jsx)(n.PlainText,{value:u,placeholder:r,"aria-label":r,onChange:i})]})}},62299:(e,t,r)=>{"use strict";r.d(t,{R:()=>a});var n=r(51609),s=r(10790);const o=(0,n.createContext)({}),a=({value:e,children:t})=>(0,s.jsx)(o.Provider,{value:e,children:t})},62397:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(94715),s=r(29491),o=r(47143),a=r(86087),i=r(52619),l=r(27723),c=r(10790);const __=l.__,u=["core/button","jetpack/recurring-payments","premium-content/login-button"];const d=(0,s.compose)([(0,o.withSelect)((e,t)=>({subscribeButton:e("core/block-editor").getBlock(t.clientId).innerBlocks.find(e=>"jetpack/recurring-payments"===e.name)})),(0,o.withDispatch)((e,t)=>({setSubscribeButtonPlan(r){e("core/block-editor").updateBlockAttributes(t.subscribeButton.clientId,{planIds:r})}}))])(function({context:e,subscribeButton:t,setSubscribeButtonPlan:r}){const s=(0,a.useMemo)(()=>e["premium-content/planIds"]||[],[e]),o=!!e&&e["premium-content/isPreview"],l=[["core/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack")}],["premium-content/login-button"]],d=[["jetpack/recurring-payments",{planIds:s},[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack"),passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]]],["premium-content/login-button"]];(0,a.useEffect)(()=>{if(!s||0===s.length||!t)return;const e=t.attributes.planIds||[];e.length===s.length&&e.every(e=>s.includes(e))||r(s)},[s,t,r]),(0,a.useEffect)(()=>{t&&(0,i.addFilter)("jetpack.recurringPayments.edito
// translators: %d: Tier level e.g: "1", "2", "3"
__("Tier %d","jetpack"),t+1),onChange:e=>((e,t)=>{const r=[...x];r[t]=e,k("amounts",r)})(e,t),value:e},`jetpack-donations-amount-${t}`))}),m&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:f,onChange:e=>r({customAmountText:e})}),(0,c.jsx)(i.A,{currency:l,label:__("Custom amount","jetpack"),defaultValue:100*(0,a.dv)(l),className:"donations__custom-amount",disabled:!0})]}),(0,c.jsx)("hr",{className:"donations__separator"}),(0,c.jsx)(n.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:v("extraText")??u.extraText,onChange:e=>k("extraText",e)}),(0,c.jsx)("div",{className:"wp-block-button donations__donate-button-wrapper",children:(0,c.jsx)(n.RichText,{className:"wp-block-button__link donations__donate-button",placeholder:__("Write a message…","jetpack"),value:v("buttonText")||u[b]?.buttonText,onChange:e=>{return t=e,void r({oneTimeDonation:{...d,buttonText:t},monthlyDonation:{...p,buttonText:t},annualDonation:{...h,buttonText:t}});var t},allowedFormats:j})})]})}},64560:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(89742),s=r(70728),o=r(74997),a=r(56427),i=r(47143),l=r(86087),c=r(27723),u=r(38073),d=r(13022),p=r(61154),h=r(86787),m=r(63893),g=r(92440),f=r(44435),b=r(51796),v=r(51071),k=r(10790);const __=c.__;function y(){const{setPopoverHover:e,setSuggestions:t,invalidateSuggestions:r,ignoreSuggestion:c,invalidateSingleSuggestion:y}=(0,i.useDispatch)("jetpack/ai-breve"),{tracks:x}=(0,s.st)(),{updateBlockAttributes:j}=(0,i.useDispatch)("core/block-editor"),{getBlock:w}=(0,i.useSelect)(e=>({getBlock:e("core/block-editor").getBlock}),[]),[_,C]=(0,l.useState)([]),{anchor:A,virtual:S,popoverOpen:E,id:N,feature:T,blockId:B,title:P,loading:I,suggestions:M,description:L}=(0,i.useSelect)(e=>{const t=e("jetpack/ai-breve"),r=t.isPopoverHover(),n=t.isHighlightHover(),{target:s,virtual:o}=t.getPopoverAnchor()??{target:null,virtual:null},a=s?.getAttribute?.("data-breve-type"),i=s?.getAttribute?.("data-id"),l=s?.getAttribute?.("data-block"),c=h.A?.find?.(e=>e.config.name===a),u=c?.config??{name:"",title:""},d=c?.description??"",p=u?.title??"",m=t.getSuggestionsLoading({feature:a,id:i,blockId:l}),g=t.getSuggestions({feature:a,id:i,blockId:l});return{title:p,description:d,anchor:s,virtual:o,feature:a,id:i,blockId:l,popoverOpen:n||r,loading:m,suggestions:g}},[]),R=E&&S,D=Boolean(M?.suggestion)||_.length>0,F=()=>{const r=w(B);if(!r)return void e(!1);x.recordEvent("jetpack_ai_breve_ask",{feature:p.S,block:r.name,type:T});const{target:n,text:s,occurrence:o}=(0,f.A)(A),a=(0,b.s)(o);t({anchor:A,id:N,target:n,feature:T,text:s,blockId:B,occurrence:a})};return(0,l.useEffect)(()=>{if(T===g.rp.name&&R){const e=A?.innerText;if(!e)return;C((0,g.aj)(e))}else C([])},[T,R,A]),(0,k.jsx)(k.Fragment,{children:R&&A?.parentElement&&(0,k.jsx)(a.Popover,{anchor:S,placement:T===m.S.name?"bottom":"bottom-start",className:"jetpack-ai-breve__highlight-popover",variant:"tooltip",animate:!1,focusOnMount:!1,onMouseEnter:()=>{e(!0)},onMouseLeave:t=>{t.stopPropagation(),e(!1)},children:(0,k.jsxs)("div",{className:(0,d.A)("jetpack-ai-breve__highlight-content",{"jetpack-ai-breve__has-suggestions":D}),children:[(0,k.jsxs)("div",{className:"jetpack-ai-breve__header-container",children:[(0,k.jsxs)("div",{className:"jetpack-ai-breve__title",children:[(0,k.jsx)("div",{className:"jetpack-ai-breve__color","data-breve-type":T}),(0,k.jsx)("div",{children:P})]}),T!==g.rp.name&&(0,k.jsx)("div",{className:"jetpack-ai-breve__action",children:D?(0,k.jsx)(a.Button,{showTooltip:!0,size:"small",iconSize:20,icon:u.A,label:__("Retry","jetpack"),onClick:()=>{y(T,B,N),F(),x.recordEvent("jetpack_ai_breve_retry",{feature:p.S,type:T})}}):(0,k.jsx)(k.Fragment,{children:I?(0,k.jsx)("div",{className:"jetpack-ai-breve__loading",children:(0,k.jsx)(a.Spinner,{})}):(0,k.jsx)(a.Button,{className:"jetpack-ai-breve__suggest",icon:n.RD,iconSize:18,onClick:F,children:__("Suggest","jetpack")})})})]}),(0,k.jsxs)("div",{className:"jetpack-ai-breve__suggestions-container",children:[T!==g.rp.name&&D&&(0,k.jsx)(a.But
__("Paused (%s%%)","jetpack"),x):(0,o.sprintf)(/* translators: %s: an upload progress percentage number, from 0-100. */
__("Uploading (%s%%)","jetpack"),x)}),(0,c.jsx)("div",{className:"resumable-upload__file-size",children:w})]}),(0,c.jsx)("div",{className:"resumable-upload__actions",children:(0,c.jsx)(n.Button,{variant:"link",onClick:()=>{p&&(u?p.start():p.abort(),d(!u))},children:u?"Resume":"Pause"})})]})})}},66800:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63162),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(13022),c=r(66087),u=r(94107),d=r(53916),p=r(11071),h=r(51971),m=r(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.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:r,delay:n,effect:s,images:o,onError:a}=this.props;if(t===e.align&&(0,c.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||r!==e.autoplay||n!==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(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:r,effect:a,images:i}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?r:null,"data-effect":a,style:{"--aspect-ratio":i[0]?.aspectRatio?`calc(${i[0].aspectRatio})`:void 0},children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:i.map(({alt:e,caption:t,id:r,url:a,aspectRatio:i},c)=>(0,m.jsx)("li",{className:(0,l.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,n.isBlobURL)(a)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,"data-aspect-ratio":i,src:a}),(0,n.isBlobURL)(a)&&(0,m.jsx)(o.Spinner,{}),t&&(0,m.jsx)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},r?`${r}-${c}`:`${a}-${c}`))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,p.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,followF
// Translators: %s is the date when the requests will reset.
const r=__("Requests will reset on %s.","jetpack");return`${t} ${(0,a.sprintf)(r,e)}`})((e=>{if(!e?.nextStart)return null;const t=new Date(e.nextStart);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()})(e)),r=(0,n.A)("ai-logo-generator-fair-usage-policy",{anchor:"jetpack-ai-usage-limit"});return(0,o.createInterpolateElement)(t,{link:(0,l.jsx)("a",{href:r,target:"_blank",rel:"noreferrer"}),span:(0,l.jsx)("span",{})})}},68064:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(13022),s=r(10790);function o({children:e,className:t}){return(0,s.jsx)("div",{className:(0,n.A)("tiled-gallery__row",t),children:e})}},68167:(e,t,r)=>{"use strict";r.d(t,{A4:()=>l,DD:()=>j,DT:()=>B,Gm:()=>g,HM:()=>w,JR:()=>_,K2:()=>A,Rq:()=>T,UA:()=>m,UD:()=>C,br:()=>d,d5:()=>v,eJ:()=>h,fD:()=>p,fv:()=>k,im:()=>a,mI:()=>S,mT:()=>N,oZ:()=>o,pE:()=>f,s6:()=>P,sn:()=>i,so:()=>s,u0:()=>y,uQ:()=>x,vE:()=>u,wb:()=>I,yQ:()=>E,yy:()=>c,z5:()=>b});var n=r(27723);const __=n.__,s={en:{label:__("English","jetpack")},es:{label:__("Spanish","jetpack")},fr:{label:__("French","jetpack")},de:{label:__("German","jetpack")},it:{label:__("Italian","jetpack")},pt:{label:__("Portuguese","jetpack")},ru:{label:__("Russian","jetpack")},zh:{label:__("Chinese","jetpack")},ja:{label:__("Japanese","jetpack")},ar:{label:__("Arabic","jetpack")},hi:{label:__("Hindi","jetpack")},ko:{label:__("Korean","jetpack")}},o={formal:{label:__("Formal","jetpack"),emoji:"🎩"},informal:{label:__("Informal","jetpack"),emoji:"😊"},optimistic:{label:__("Optimistic","jetpack"),emoji:"😃"},humorous:{label:__("Humorous","jetpack"),emoji:"😂"},serious:{label:__("Serious","jetpack"),emoji:"😐"},skeptical:{label:__("Skeptical","jetpack"),emoji:"🤨"},empathetic:{label:__("Empathetic","jetpack"),emoji:"💗"},confident:{label:__("Confident","jetpack"),emoji:"😎"},passionate:{label:__("Passionate","jetpack"),emoji:"❤️"},provocative:{label:__("Provocative","jetpack"),emoji:"🔥"}},a="titleSummary",i="continue",l="simplify",c="correctSpelling",u="generateTitle",d="makeLonger",p="makeShorter",h="changeTone",m="summarize",g="changeLanguage",f="userPrompt",b="jetpackFormCustomPrompt",v="transformListToTable",k="writePostFromList",y=__("Translate","jetpack"),x=__("Change tone","jetpack"),j=__("Correct spelling and grammar","jetpack"),w=__("Simplify","jetpack"),_=__("Summarize","jetpack"),C=__("Make shorter","jetpack"),A=__("Expand","jetpack"),S=__("Turn list into a table","jetpack"),E=__("Write a post from this list","jetpack"),N=__("Generate a post title","jetpack"),T=__("Summary based on title","jetpack"),B=__("Continue writing","jetpack"),P="jetpack-sidebar",I="document-settings"},68282:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});var n=r(27723);const __=n.__,s=(0,n.sprintf)(
// translators: %s is a link to the cookie policy.
__("Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: %s.","jetpack"),`<a href="https://automattic.com/cookies/">${__("Cookie Policy","jetpack")}</a>`)},68331:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/story","title":"Story","description":"Add an interactive story.","keywords":["story","image","video","gallery"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><g><path d=\'M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z\' /><path d=\'M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z\' /><path d=\'M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\' /></g></svg>","supports":{"html":false},"attributes":{"settings":{"type":"object"},"mediaFiles":{"type":"array","default":[]}},"example":{"attributes":{"mediaFiles":[{"alt":"","caption":"","mime":"image/jpg","type":"image","id":22,"url":"./storyExample1.png"}]}}}')},68364:(e,t,r)=>{"use strict";e.exports=r.p+"images/example_320x50-34c171b9cf96506c8fc4.png"},68407:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Any:()=>n.A,Cc:()=>s.A,Cf:()=>o.A,P:()=>a.A,S:()=>i.A,Z:()=>l.A});var n=r(60905),s=r(80786),o=r(14935),a=r(60804),i=r(47795),l=r(3506)},68530:(e,t,r)=>{"use strict";var n=r(10961);e.exports=function(e,t){var r=this;return n(r.data,e,r.data[t]||s,r),r};var s=[]},68597:(e,t,r)=>{"use strict";function n(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function s(e,t){let r=e.pos;for(;r<e.posMax&&!n(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}r.d(t,{A:()=>s})},68771:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56427),s=r(27723),o=r(10790);const __=s.__,a=()=>(0,o.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,o.jsx)(n.Spinner,{}),(0,o.jsx)("p",{children:__("Embedding…","jetpack")})]})},68799:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(70728),s=r(56427),o=r(86087),a=r(27723),i=r(68902),l=r.n(i),c=r(11992),u=r(99224),d=r(72750),p=r(44519),h=r(58328),m=r(8165),g=r(76239),f=r(10790);const __=a.__,b="ai-image-generator",v=l()("jetpack-ai-client:ai-image-modal");function k({title:e,cost:t,open:r,images:a,currentIndex:i=0,onClose:l=null,onTryAgain:k=null,onGenerate:y=null,generating:x=!1,notEnoughRequests:j=!1,requireUpgrade:w=!1,currentLimit:_=null,currentUsage:C=null,isUnlimited:A=!1,upgradeDescription:S=null,hasError:E=!1,handlePreviousImage:N=()=>{},handleNextImage:T=()=>{},acceptButton:B=null,autoStart:P=!1,autoStartAction:I=null,instructionsPlaceholder:M=null,imageStyles:L=[],onGuessStyle:R=null,prompt:D="",setPrompt:F=()=>{},initialStyle:O=null,inputDisabled:z=!1,actionDisabled:U=!1}){const{tracks:H}=(0,n.st)(),{recordEvent:q}=H,V=(0,o.useRef)(!1),[G,$]=(0,o.useState)(!1),[W,Z]=(0,o.useState)(null),[J,K]=(0,o.useState)(L||[]),Y=(0,o.useCallback)(()=>{k?.({userPrompt:D,style:W})},[k,D,W]),Q=(0,o.useCallback)(async()=>{if(W===c.Wp&&R){q("jetpack_ai_general_image_guess_style",{context:"block-editor",tool:"image"});const e=await R(D)||c.Hu;Z(e),v("guessed style",e),y?.({userPrompt:D,style:e})}else y?.({userPrompt:D,style:W})},[y,D,W,R,q]),X=(0,o.useCallback)(e=>{v("change style",e),Z(e),q("jetpack_ai_image_generator_switch_style",{context:"block-editor",style:e})},[Z,q]),ee=(w||j)&&!x,te=Boolean(!A&&t&&_),re=__("Generate","jetpack"),ne=__("Try again","jetpack");return(0,o.useEffect)(()=>{P&&r&&(V.current||(V.current=!0,I?.({})))},[P,I,r]),(0,o.useEffect)(()=>{L&&L.length>0&&(K([L.find(({value:e})=>e===c.Hu),L.find(({value:e})=>e===c.Wp),...L.filter(({value:e})=>![c.Hu,c.Wp].includes(e))].filter(e=>e)),$(!0),Z(O||c.Hu))},[L,O]),(0,f.jsx)(f.Fragment,{children:r&&(0,f.jsxs)(p.A,{handleClose:l,title:e,children:[(0,f.jsxs)("di
__("Display %s","jetpack"),e.label.toLowerCase()),checked:i[e.id]||!1,onChange:(r=e.id,e=>{const n={...i,[r]:e};if(Object.values(n).every(e=>!1===e))return f(!0);l(n),t({postTypes:n}),f(!1)})},e.id);var r}),g&&(0,a.jsx)(n.Notice,{className:"jetpack-top-posts__error",status:"error",isDismissible:!1,children:__("At least one item must be selected.","jetpack")})]}),(0,a.jsxs)(n.PanelBody,{title:__("Metadata settings","jetpack"),children:[(0,a.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display date","jetpack"),checked:d,onChange:e=>t({displayDate:e})}),(0,a.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display author","jetpack"),checked:c,onChange:e=>t({displayAuthor:e})}),(0,a.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display context","jetpack"),checked:u,onChange:e=>t({displayContext:e})}),(0,a.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display thumbnail","jetpack"),checked:p,onChange:e=>t({displayThumbnail:e})})]})]})}function l({attributes:e,setAttributes:t}){const{layout:r}=e,s=[{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({layout:"grid"}),isActive:"grid"===r},{icon:"list-view",title:__("List view","jetpack"),onClick:()=>t({layout:"list"}),isActive:"list"===r}];return(0,a.jsx)(n.ToolbarGroup,{controls:s})}},68856:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(10790);function s({children:e,galleryRef:t}){return(0,n.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},68858:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86087),s=r(13750),o=r(35358);class a extends n.Component{componentDidMount(){this.renderMarker()}componentWillUnmount(){this.marker&&(this.marker.remove(),this.marker=null)}componentDidUpdate(){this.renderMarker()}handleClick=()=>{const{onClick:e}=this.props;e(this)};getPoint=()=>{const{point:e}=this.props;return[e.coordinates.longitude,e.coordinates.latitude]};renderMarker(){const{map:e,point:t,mapboxgl:r,markerColor:n,mapRef:a}=this.props,{handleClick:i}=this,l=[t.coordinates.longitude,t.coordinates.latitude],{currentDoc:c}=(0,s.sG)(a.current),u=this.marker?this.marker.getElement():c.createElement("div");this.marker?this.marker.setLngLat(l):(u.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(u).setLngLat(l).setOffset([0,-19]).addTo(e),this.marker.getElement().addEventListener("click",i)),(0,o.iU)(u,n)}render(){return null}}a.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:()=>{}};const i=a},68884:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(63162),s=r(86087),o=r(27723),a=r(14936),i=r(39024),l=r(29820),c=r(15685),u=r(9253),d=r(10790);const __=o.__;class p extends s.Component{photonize({height:e,width:t,url:r}){if(!r)return;if((0,n.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;const s=r.split("?",1)[0],o=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)?m:a.A,{layoutStyle:l}=this.props;if(h(l)&&t&&e){const r=Math.min(i.rK,t,e);return o(s,{resize:`${r},${r}`})}return o(s)}renderImage(e,t){const{images:r,linkTo:n,selectedImage:s}=this.props,a=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("image %1$d of %2$d in gallery","jetpack"),t+1,r.length);return(0,d.jsx)(l.A,{alt:e.alt,"aria-label":a,height:e.height,id:e.id,origUrl:e.url,isSelected:s===t,link:e.link,linkTo:n,url:this.photonize(e),width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:o}=this.props,a=h(o)?u.A:c.A,i=this.props.images.map(this.renderImage,this);return(0,d.jsxs)("div",{className:r,children:[(0,d.jsx)(a,{align:e,columns:n,images:s,layoutStyle:o,renderedImages:i}),t]})}}function h(e){return["circle","square"].includes(e)}function m(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,s]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,s);return n.toString()}},68902:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(56697)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},69226:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86087),s=r(68902);const o=r.n(s)()("jetpack-ai-assistant:use-auto-scroll"),a=(e,t,r=!1)=>{const s=(0,n.useRef)(null),a=(0,n.useRef)(null),i=(0,n.useRef)(!1),l=(0,n.useRef)(!1),c=(0,n.useRef)(!1),u=(0,n.useRef)(!1),d=(0,n.useRef)({scrollPadding:"",scrollMargin:""}),p=(0,n.useCallback)(()=>{o("enabling ignore scroll"),l.current=!0},[]),h=(0,n.useCallback)(()=>{i.current&&c.current&&!l.current&&p()},[p]),m=(0,n.useCallback)(()=>{i.current=!0,l.current=!1,c.current=!1,u.current=!1,s.current?.addEventListener("scroll",h),o("enabling auto s
__("%s:","jetpack"),t)} `}),__("Open in a new tab","jetpack")]})})]}))},70653:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={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"},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:r,...n}=e;return{...n,className:t}},save:r(30472).A}},70681:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,j:()=>s});var n=r(27689);const s=!!window?.Jetpack_Editor_Initial_State?.available_blocks["videopress/video-chapters"];function o(e,t){if(!s)return e;if("core/video"!==t)return e;const r={...e.attributes,title:{type:"string"},description:{type:"string"}};return{...e,attributes:r,edit:(0,n.A)(e.edit)}}},70728:(e,t,r)=>{"use strict";r.d(t,{$i:()=>n.A,BT:()=>l.A,Bd:()=>h.Bd,CP:()=>b.C,Cq:()=>g.C,Dk:()=>c.Dk,FB:()=>a.A,Ft:()=>f.F,GE:()=>s.A,GT:()=>c.GT,Ti:()=>h.Ti,W4:()=>c.W4,ZR:()=>p.A,_6:()=>v.A,_X:()=>h._X,aq:()=>c.aq,ds:()=>h.ds,gB:()=>u.A,lk:()=>o.l,pP:()=>o.p,q7:()=>m.A,sH:()=>c.sH,sh:()=>g.s,st:()=>d.A,tu:()=>c.tu,vp:()=>i.A,xI:()=>b.x});var n=r(29467),s=r(76406),o=(r(87036),r(79219)),a=r(3388),i=r(86327),l=r(77560),c=r(15458),u=r(42651),d=r(86484),p=r(54206),h=r(60643),m=(r(44393),r(82754)),g=r(17e3),f=r(63559),b=r(51426),v=r(5738);r(73030)},70903:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(99858),s=r(45829),o=r(36771),a=r(10790);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:d,roundedCorners:p}=e;return(0,a.jsx)(o.A,{align:l,className:c,columns:u,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,n.D)(s.kc,c),linkTo:d,roundedCorners:p})}},70913:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94715),s=r(56427),o=r(27723),a=r(10790);const __=o.__,_x=o._x,i=e=>{const{defaultClassName:t,nextdoorShareUrl:r,onFormSubmit:n,setNextdoorShareUrl:o}=e;return(0,a.jsx)(s.PanelBody,{title:__("Embed URL","jetpack"),initialOpen:!0,children:(0,a.jsxs)("form",{onSubmit:n,className:`${t}-embed-form-sidebar`,children:[(0,a.jsx)("input",{type:"text",id:"nextdoorShareUrl",onChange:e=>o(e.target.value),placeholder:__("Nextdoor post URL","jetpack"),value:r||"",className:"components-placeholder__input"}),(0,a.jsx)("div",{children:(0,a.jsx)(s.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})})]})})},l=e=>(0,a.jsx)(n.InspectorControls,{children:(0,a.jsx)(i,{...e})})},70927:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(10790);function s({children:e,galleryRef:t}){return(0,n.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},70958:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ignoreSuggestion:()=>g,invalidateSingleSuggestion:()=>f,invalidateSuggestions:()=>m,reloadDictionary:()=>b,setBlockMd5:()=>h,setDictionaryLoading:()=>p,setHighlightHover:()=>i,setPopoverAnchor:()=>c,setPopoverHover:()=>l,setSuggestions:()=>v,toggleFeature:()=>d,toggleProofread:()=>u});var n=r(89742),s=r(47143),o=r(61154),a=r(67658);function i(e){return{type:"SET_HIGHLIGHT_HOVER",isHover:e}}function l(e){return{type:"SET_POPOVER_HOVER",isHover:e}}function c(e){return{type:"SET_POPOVER_ANCHOR",anchor:e}}function u(e){const t=(0,s.select)("jetpack/ai-breve").isProofreadEnabled();return{type:"SET_PROOFREAD_ENABLED",enabled:void 0===e?!t:e}}function d(e,t){const r=(0,s.select)("jetpack/ai-breve").isFeatureEnabled(e);return{type:(void 0===t?!r:t)?"ENABLE_FEATURE":"DISABLE_FEATURE",feature:e}}function p(e,t){return{type:"SET_DICTIONARY_LOADING",feature:e,loading:t}}function h(e,t){return{type:"SET_BLOCK_MD5",blockId:e,md5:t}}function m(e){return{type:"INVALIDATE_SUGGESTIONS",blockId:e}}function g(e,t){return{type:"IGNORE_SUGGES
2023-12-07 09:44:11 +01:00
// translators: %1$s: first category name, %2$s: second category name
2025-07-27 19:58:08 +02:00
a=(0,c.sprintf)(__("%1$s and %2$s","jetpack"),...o);else{const e=o.slice(0,-1).join(`${__(",","jetpack")} `),t=o[o.length-1];a=(0,c.sprintf)(
2023-12-07 09:44:11 +01:00
// translators: %1$s: a comma-separated list of category names except for the last one, %2$s: the name of the last category
2025-07-27 19:58:08 +02:00
__("%1$s, and %2$s","jetpack"),e,t)}return a})(r,t),o=void 0===n?"0":n.toLocaleString();return e?(0,c.sprintf)(
2024-02-16 11:03:01 +01:00
// translators: %1s is the list of categories, %2d is subscriptions count
2025-07-27 19:58:08 +02:00
_n("This post will be sent to everyone subscribed to %1$s (%2$s subscriber).","This post will be sent to everyone subscribed to %1$s (%2$s subscribers).",n??0,"jetpack"),s,o):(0,c.sprintf)(
2024-02-16 11:03:01 +01:00
// translators: %1s is the list of categories, %2d is subscriptions count
2025-12-12 13:13:07 +01:00
_n("This post was sent to everyone subscribed to %1$s (<link>%2$s subscriber</link>).","This post was sent to everyone subscribed to %1$s (<link>%2$s subscribers</link>).",n??0,"jetpack"),s,o)};function f(e,t){return(0,n.getAdminUrl)(`admin.php?page=stats#!/stats/email/opens/day/${t}/${e}`)}const b=function({accessLevel:e,prePublish:t=!1}){const r=(0,a.useSelect)(e=>e("core/block-editor").getBlocks().some(e=>e.name===u.name)),{isScheduledPost:n,isPostOlderThanADay:b,postCategories:v,postId:k,postMeta:y}=(0,a.useSelect)(e=>{const{isCurrentPostScheduled:t,getEditedPostAttribute:r,getCurrentPost:n}=e(i.store),s=n()?.status,o=new Date(n()?.date),a=new Date(Date.now()-864e5);return{isScheduledPost:t(),isPostOlderThanADay:"publish"===s&&o<a,postCategories:r("categories"),postId:n()?.id,postMeta:r("meta")}}),x=window.Jetpack_Editor_Initial_State?.wpcomBlogId,{emailSubscribersCount:j,hasFinishedLoading:w,newsletterCategories:_,newsletterCategoriesEnabled:C,newsletterCategorySubscriberCount:A,paidSubscribersCount:S,totalEmailsSentCount:E}=(0,a.useSelect)(e=>{const{getNewsletterCategories:t,getNewsletterCategoriesEnabled:r,getNewsletterCategoriesSubscriptionsCount:n,getSubscriberCounts:s,getTotalEmailsSentCount:o,hasFinishedResolution:a}=e(h.M),{emailSubscribers:i,paidSubscribers:l}=s();return{hasFinishedLoading:[a("getSubscriberCounts"),a("getNewsletterCategories"),a("getNewsletterCategoriesSubscriptionsCount")].every(Boolean),emailSubscribersCount:i,newsletterCategories:t(),newsletterCategoriesEnabled:r(),newsletterCategorySubscriberCount:n(),paidSubscribersCount:l,totalEmailsSentCount:b?o(x,k):null}});if(!w)return(0,m.jsx)(o.Animate,{type:"loading",children:({className:e})=>(0,m.jsx)("p",{className:`jetpack-subscribe-affirmation-loading ${e}`,children:__("Loading…","jetpack")})});const N=e===d.P2.paid_subscribers.key,T=t||n,B=(0,p.Yc)({accessLevel:e,subscribers:b?E:j,paidSubscribers:S,postHasPaywallBlock:r});let P;return P=y?.[d.KG]?__("Not sent via email.","jetpack"):(0,s.lk)()?__("Your site is in Coming Soon mode. Emails are sent only when your site is public.","jetpack"):C&&_.length>0&&!N?g({futureTense:T,isPaidPost:N,newsletterCategories:_,postCategories:v,reachCount:b?E:A}):(({futureTense:e,isPaidPost:t,postHasPaywallBlock:r,reachCount:n})=>{const s=n.toLocaleString();return e?t&&!r?(0,c.sprintf)(/* translators: %s is the number of subscribers */
2025-07-27 19:58:08 +02:00
_n("This post will be sent to <strong>%s paid subscriber</strong>.","This post will be sent to <strong>%s paid subscribers</strong>.",n,"jetpack"),s):(0,c.sprintf)(/* translators: %s is the number of subscribers */
_n("This post will be sent to <strong>%s subscriber</strong>.","This post will be sent to <strong>%s subscribers</strong>.",n,"jetpack"),s):t&&!r?(0,c.sprintf)(/* translators: %s is the number of subscribers */
_n("This post was sent to <link>%s paid subscriber</link>.","This post was sent to <link>%s paid subscribers</link>.",n,"jetpack"),s):(0,c.sprintf)(/* translators: %s is the number of subscribers */
2025-12-12 13:13:07 +01:00
_n("This post was sent to <link>%s subscriber</link>.","This post was sent to <link>%s subscribers</link>.",n,"jetpack"),s)})({futureTense:T,isPaidPost:N,postHasPaywallBlock:r,reachCount:B}),(0,m.jsx)("p",{children:(0,l.createInterpolateElement)(P,{strong:(0,m.jsx)("strong",{}),link:(0,m.jsx)("a",{href:f(x,k)})})})}},70972:(e,t,r)=>{"use strict";r.d(t,{FN:()=>a,ZE:()=>l,dy:()=>o,l$:()=>i});var n=r(74997),s=r(84954);function o(e){let t;try{t=new URL(e?.url)?.host.replace(/^www\./,"")}catch{t=e?.URL}return(0,n.createBlock)("jetpack/blogroll-item",{...e,...!e.name&&{name:t}})}function a(e){const{blog_id:t,site_icon:r,URL:n,name:s,description:a,is_non_wpcom_site:i}=e;return o({id:t,icon:r,url:n,name:s,description:a,is_non_wpcom_site:i})}function i(e){if(!e)return null;const t=new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])?)\\.)+[a-z]{2,})","i");try{return new URL(e)?.host}catch{return e.match(t)?.[2]??null}}function l(e){return e||s}},70994:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=e=>{const t=(e=>e.split(/\s+/).filter(e=>e.length>0).length)(e),r=(e=>e.split(/[.!?]+/).filter(e=>e.length>0).length)(e),n=(e=>e.split(/\s+/).reduce((e,t)=>e+(e=>{if(e.length<=3)return 1;const t=(e=e.toLowerCase().replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,"").replace(/^y/,"")).match(/[aeiouy]{1,2}/g);return t?t.length:1})(t),0))(e),s=((e,t,r)=>0===e||0===t?null:e/t*.39+r/e*11.8-15.59)(t,r,n);return s}},71080:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790),o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})})},71152:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={alignWide:!1,className:!0,customClassName:!1,html:!1,reusable:!1}},71163:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c});var n=r(1455),s=r.n(n),o=r(29491),a=r(47143),i=r(43656),l=r(86087);const c=e=>{const t=(0,o.usePrevious)(e),[r,n]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),{currentPostId:d,currentPostRelatedPosts:p}=(0,a.useSelect)(e=>{const t=e(i.store).getCurrentPost();return{currentPostId:t.id,currentPostRelatedPosts:t?.["jetpack-related-posts"]??[]}}),h=0===p.length&&!t&&e;return(0,l.useEffect)(()=>{h&&(n(!0),async function(e){try{return await s()({path:`/wpcom/v2/related-posts/${e}`})}catch{return[]}}(d).then(e=>{u(e)}).catch(()=>{}).then(()=>{n(!1)}))},[h,d]),(0,l.useMemo)(()=>({posts:c??p,isLoading:r}),[r,c,p])}},71455:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);const s={};function o(){this.rules=(0,n.assign)({},s)}s.code_inline=function(e,t,r,s,o){const a=e[t];return"<code"+o.renderAttrs(a)+">"+(0,n.escapeHtml)(a.content)+"</code>"},s.code_block=function(e,t,r,s,o){const a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+(0,n.escapeHtml)(e[t].content)+"</code></pre>\n"},s.fence=function(e,t,r,s,o){const a=e[t],i=a.info?(0,n.unescapeAll)(a.info).trim():"";let l,c="",u="";if(i){const e=i.split(/(\s+)/g);c=e[0],u=e.slice(2).join("")}if(l=r.highlight&&r.highlight(a.content,c,u)||(0,n.escapeHtml)(a.content),0===l.indexOf("<pre"))return l+"\n";if(i){const e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];e<0?t.push(["class",r.langPrefix+c]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+c);const n={attrs:t};return`<pre><code${o.renderAttrs(n)}>${l}</code></pre>\n`}return`<pre><code${o.renderAttrs(a)}>${l}</code></pre>\n`},s.image=function(e,t,r,n,s){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=s.renderInlineAsText(o.children,r,n),s.renderToken(e,t,r)},s.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(e,t){return(0,n.escapeHtml)(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},o.prototype.renderAttrs=function(e){let t,r,s;if(!e.attrs)return"";for(s="",t=0,r=e.attrs.length;t<r;t++)s+=" "+(0,n.escapeHtml)(e.attrs[t][0])+'="'+(0,n.escap
__("(opens in a new tab)","jetpack")})]}),C=b?"_blank":void 0,A=r?.[0]&&null!==r[0]&&"components-tooltip"!==r?.[0]?.props?.className;return(0,u.jsxs)(n.Button,{target:C,variant:s,className:(0,i.A)(j,{"has-text":!!p&&A}),icon:b?void 0:p,iconSize:h,disabled:m,"aria-disabled":m,isDestructive:g,text:k,...x,children:[f&&(0,u.jsx)(n.Spinner,{}),(0,u.jsx)("span",{children:r}),_]})});d.displayName="Button";const p=d},75300:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(27723);const __=n.__;function s(e,t,r){let s="";if(r<=5)for(let e=1;e<=r;e++){s+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,n.sprintf)(/* translators: %s: the slide number to navigate to */
__("Go to slide %s","jetpack"),e)+'"></button>'}else s+=`<div class="swiper-pagination-simple">${t} / ${r}</div>`;return s}},75466:(e,t,r)=>{"use strict";var n=r(92545),s=r(81277),o=r(91534);function a(e,t,r){return o(e,"KEEPCASE",t)||r||o(e,"FORBIDDENWORD",t)}e.exports=function(e,t,r){var i,l=t.trim();if(!l)return null;if(l=n(l,e.conversion.in),s(e,l))return!r&&o(e.flags,"FORBIDDENWORD",e.data[l])?null:l;if(l.toUpperCase()===l){if(i=l.charAt(0)+l.slice(1).toLowerCase(),a(e.flags,e.data[i],r))return null;if(s(e,i))return i}if((i=l.toLowerCase())!==l){if(a(e.flags,e.data[i],r))return null;if(s(e,i))return i}return null}},75576:(e,t,r)=>{"use strict";r.d(t,{B:()=>s,V:()=>n});const n=30,s="jetpack-new-instagram-connection"},75578:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(70728),s=r(94715),o=r(74997),a=r(56427),i=r(47143),l=r(86087),c=r(27723),u=r(13022),d=r(66087),p=r(55795),h=r(23364),m=r(13248),g=r(32413),f=r(60932),b=r(2417),v=r(10790);const __=c.__,_x=c._x,k="jetpack/button",y={element:"a",text:__("Schedule time with me","jetpack"),uniqueId:"calendly-widget-id",url:g.a},x=(0,n.sh)(m);const j=(0,a.withNotices)(function(e){const{attributes:t,clientId:r,name:n,noticeOperations:c,noticeUI:j,setAttributes:w}=e,_=(0,o.getBlockDefaultClassName)(n),C=(0,p.y)(m.attributes,t);(0,d.isEqual)(C,t)||w(C);const{backgroundColor:A,hideEventTypeDetails:S,primaryColor:E,textColor:N,style:T,url:B}=C,[P,I]=(0,l.useState)(B),[M,L]=(0,l.useState)(!1),[R,D]=(0,l.useState)(!1),[F,O]=(0,l.useState)({}),z=(0,s.useBlockProps)(),U=()=>{c.removeAllNotices(),c.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack"))};(0,l.useEffect)(()=>{B&&g.a!==B&&"link"!==T&&(0,h.A)(B,D).catch(()=>{w({url:void 0}),U()})},[]);const H=e=>{if(!e)return void U();e.preventDefault();const t=(0,b.a9)(P);if(t){if(t.buttonAttributes&&"link"===t.style){const e=(0,i.select)("core/editor").getBlocksByClientId(r);e.length&&e[0].innerBlocks.forEach(e=>{(0,i.dispatch)("core/editor").updateBlockAttributes(e.clientId,t.buttonAttributes)}),O(t.buttonAttributes)}(0,h.A)(t.url,D).then(()=>{const e=(0,p.y)(m.attributes,t);w(e),L(!1),c.removeAllNotices()}).catch(()=>{w({url:void 0}),U()})}else U()},q=(0,v.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,v.jsx)(a.Spinner,{}),(0,v.jsx)("p",{children:__("Embedding…","jetpack")})]}),V=(0,v.jsxs)(a.Placeholder,{label:__("Calendly","jetpack"),instructions:__("Enter your Calendly web address or embed code below.","jetpack"),icon:x,notices:j,children:[(0,v.jsxs)("form",{onSubmit:H,children:[(0,v.jsx)("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,v.jsx)("div",{children:(0,v.jsx)(a.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})})]}),(0,v.jsx)("div",{className:`${_}-learn-more`,children:(0,v.jsx)(a.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview",children:__("Need help finding your embed code?","jetpack")})})]}),G=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:`${_}-overlay`}),(0,v.jsx)("iframe",{src:(()=>{const e=new URLSearchParams({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:S?1:0,background_color:A,primary_color:E,text_color:N});return`${B}?${e}`})(),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",title:"Calendly"})]}),$=(0,v.jsx)(s.InnerBlocks,{template:[[k,{...y,...F,passthroughAttributes:{url:"url"}}]],templateLock:"all"});return R?q:(0,v.jsxs)("div",{...z,className:(0,u.A)(z.className,{[`calendly-style-${T}`]:B&&!M}),children:[(0,v.jsx)(f.Ay,{...e,defaultClassName:_,embedCode:P,isEditingUrl:M,parseEmbedCode:H,setEmbedCode:I,setIsEditingUrl:L}),B&&!M?(W=T,"inline"===W?G:$):V]});var W})},75593:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94715),s=r(13022),o=r(10790);const a=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","je
// Translators: %d is the cost of one image.
// Translators: %d is the cost of one image.
(0,s.sprintf)(__("Requests needed: <counter>%d</counter>","jetpack"),r),{counter:(0,o.jsx)("span",{})}),l=(0,n.createInterpolateElement)((0,s.sprintf)(
// Translators: %d is the current requests balance.
__("Requests available: <counter>%d</counter>","jetpack"),a),{counter:a<r?(0,o.jsx)("span",{className:"ai-assistant-featured-image__usage-counter-no-limit"}):(0,o.jsx)("strong",{})});return(0,o.jsxs)("div",{className:"ai-assistant-featured-image__usage-counter",children:[(0,o.jsx)("span",{children:i}),(0,o.jsx)("span",{children:l})]})}},76252:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94715),s=r(13022),o=r(10790);const a=function({attributes:{show_avatar:e,show_description:t},className:r}){const a=n.useBlockProps.save({className:(0,s.A)(r,{"hide-avatar":!e,"hide-description":!t})});return(0,o.jsx)("div",{...a,children:(0,o.jsx)(n.InnerBlocks.Content,{})})}},76406:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(97999);function s(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:(0,n.getScriptData)()?.site?.suffix??null}},76416:(e,t,r)=>{"use strict";async function n(e,t){const r=e.getReader();let n;for(;!(n=await r.read()).done;)t(n.value)}function s(e){let t,r,n,s=!1;return function(o){void 0===t?(t=o,r=0,n=-1):t=function(e,t){const r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}(t,o);const a=t.length;let i=0;for(;r<a;){s&&(10===t[r]&&(i=++r),s=!1);let o=-1;for(;r<a&&-1===o;++r)switch(t[r]){case 58:-1===n&&(n=r-i);break;case 13:s=!0;case 10:o=r}if(-1===o)break;e(t.subarray(i,o),n),i=r,n=-1}i===a?t=void 0:0!==i&&(t=t.subarray(i),r-=i)}}function o(e,t,r){let n=a();const s=new TextDecoder;return function(o,i){if(0===o.length)null==r||r(n),n=a();else if(i>0){const r=s.decode(o.subarray(0,i)),a=i+(32===o[i+1]?2:1),l=s.decode(o.subarray(a));switch(r){case"data":n.data=n.data?n.data+"\n"+l:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":const r=parseInt(l,10);isNaN(r)||t(n.retry=r)}}}}function a(){return{data:"",event:"",id:"",retry:void 0}}r.d(t,{VL:()=>o,iv:()=>s,q5:()=>n})},76490:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(70728),s=r(66143),o=r(1455),a=r.n(o),i=r(94715),l=r(47143),c=r(86087),u=r(27723),d=r(18612),p=r(65771),h=r(10790);const __=u.__,_n=u._n;const m=function({attributes:e,className:t,setAttributes:r}){const{isLoadingModules:o,isChangingStatus:u,isModuleActive:m,changeStatus:g}=(0,n.q7)("stats"),{label:f,statsData:b,statsOption:v}=e,[k,y]=(0,c.useState)(null),[x,j]=(0,c.useState)(),[w,_]=(0,c.useState)(),C=(0,i.useBlockProps)(),A="post"===v?w:"views"===b?k:x,S=(0,l.useSelect)(e=>e("core/editor").getCurrentPostId(),[]);if((0,c.useEffect)(()=>{m&&a()({path:Number.isInteger(S)?`/wpcom/v2/blog-stats?post_id=${S}`:"/wpcom/v2/blog-stats"}).then(e=>{y(e["blog-views"]),j(e["blog-visitors"]),_(Number.isInteger(S)?e["post-views"]:"12345")})},[S,m]),(0,c.useEffect)(()=>{"visitors"===b&&r({statsOption:"site"})},[b,r]),!m&&!o)return(0,h.jsx)(p.k,{className:t,changeStatus:g,isLoading:u});const E=/* Translators: Number of visitors */
_n("visitor","visitors",parseInt(A),"jetpack",0),N=/* Translators: Number of views */
_n("hit","hits",parseInt(A),"jetpack",0);return(0,h.jsxs)("div",{...C,children:[(0,h.jsx)(i.InspectorControls,{children:(0,h.jsx)(d.z,{attributes:e,setAttributes:r})}),(0,h.jsx)("div",{className:t,children:o||null===k?(0,h.jsx)("p",{className:"jetpack-blog-stats__loading",children:__("Loading stats…","jetpack")}):(0,h.jsxs)("p",{children:[(0,h.jsxs)("span",{children:[(0,s.ZV)(A)," "]}),(0,h.jsx)(i.RichText,{tagName:"span",placeholder:"visitors"===b?E:N,value:f,allowedFormats:["core/bold","core/italic","core/link"],onChange:e=>r({label:e})})]})})]})}},76551:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(56427),s=r(29491),o=r(86087),a=r(27723),i=r(48558),l=r(13022),c=r(66087),u=r(10790);const __=a.__,_n=a._n;function d(e=[],t=10){const r=[];for(let n=0;n<e.length;n++){const s=e[n];let{keywords:o=[]}=s;if("string"==typeof s.label&&(o=[...o,s.label]),r.push(s),r.length===t)break}return r}class p extends o.Component{static getInitialState(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}constructor(){super(...arguments),this.debouncedLoadOptions=(0,c.debounce)(this.loadOptions,250),this.state=this.constructor.getInitialState()}componentWillUnmount(){this.debouncedLoadOptions.cancel()}select=e=>{const{completer:t}=this.props;(t.getOptionCompletion||{})(e),this.reset()};reset=()=>{this.setState(this.constructor.getInitialState())};handleFocusOutside(){this.reset()}loadOptions(e,t){const{options:r}=e,n=this.activePromise=Promise.resolve("function"==typeof r?r(t):r).then(t=>{if(n!==this.activePromise)return;const r=t.map((t,r)=>({key:`${r}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]})),s=d(r),o=s.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({options:r,filteredOptions:s,selectedIndex:o,isOpen:s.length>0}),this.announce(s)})}onChange=e=>{const{completer:t}=this.props,{options:r}=this.state;if(!e)return void this.reset();t&&(t.isDebounced?this.debouncedLoadOptions(t,e):this.loadOptions(t,e));const n=t?d(r):[];t&&this.setState({selectedIndex:0,filteredOptions:n,query:e})};onKeyDown=e=>{const{isOpen:t,selectedIndex:r,filteredOptions:n}=this.state;if(!t)return;let s;switch(e.keyCode){case i.UP:s=(0===r?n.length:r)-1,this.setState({selectedIndex:s});break;case i.DOWN:s=(r+1)%n.length,this.setState({selectedIndex:s});break;case i.ENTER:this.select(n[r]);break;case i.LEFT:case i.RIGHT:case i.ESCAPE:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()};announce(e){const{debouncedSpeak:t}=this.props;t&&(e.length?t((0,a.sprintf)(/* translators: %d: the number of results. */
_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:r,instanceId:s,completer:o}=this.props,{selectedIndex:a,filteredOptions:i}=this.state,{key:c=""}=i[a]||{},{className:d}=o,p=i.length>0,h=p?`components-autocomplete-listbox-${s}`:null,m=p?`components-autocomplete-item-${s}-${c}`:null;return(0,u.jsxs)("div",{className:"components-autocomplete",children:[r({isExpanded:p,listBoxId:h,activeId:m,onChange:e,onKeyDown:t}),p&&(0,u.jsx)(n.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0,children:(0,u.jsx)("div",{id:h,role:"listbox",className:"components-autocomplete__results",children:i.map((e,t)=>(0,u.jsx)(n.Button,{id:`components-autocomplete-item-${s}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:(0,l.A)("components-autocomplete__result",d,{"is-selected":t===a}),onClick:()=>this.select(e),children:e.label},e.key))})})]})}}const h=(0,s.compose)([n.withSpokenMessages,s.withInstanceId,n.withFocusOutside])(p)},76580:(e,t,r)=>{"use strict";var n=r(96811),s=r(24588),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var p=[["#","hash"],["?","query"],function(e,t){return g(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function m(e){var t,r=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},n={},s=typeof(e=e||r);if("blob:"===e.protocol)n=new b(unescape(e.pathname),{});else if("string"===s)for(t in n=new b(e,{}),h)delete n[t];else if("object"===s){for(t in e)t in h||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=i.test(e.href))}return n}function g(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function f(e,t){e=(e=d(e)).replace(a,""),t=t||{};var r,n=c.exec(e),s=n[1]?n[1].toLowerCase():"",o=!!n[2],i=!!n[3],l=0;return o?i?(r=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(r=n[2]+n[4],l=n[2].length):i?(r=n[3]+n[4],l=n[3].length):r=n[4],"file:"===s?l>=2&&(r=r.slice(2)):g(s)?r=n[4]:s?o&&(r=r.slice(2)):l>=2&&g(t.protocol)&&(r=n[4]),{protocol:s,slashes:o||g(s),slashesCount:l,rest:r}}function b(e,t,r){if(e=(e=d(e)).replace(a,""),!(this instanceof b))return new b(e,t,r);var o,i,l,c,h,v,k=p.slice(),y=typeof t,x=this,j=0;for("object"!==y&&"string"!==y&&(r=t,t=null),r&&"function"!=typeof r&&(r=s.parse),o=!(i=f(e||"",t=m(t))).protocol&&!i.slashes,x.slashes=i.slashes||o&&t.slashes,x.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!g(x.protocol)))&&(k[3]=[/(.*)/,"pathname"]);j<k.length;j++)"function"!=typeof(c=k[j])?(l=c[0],v=c[1],l!=l?x[v]=e:"string"==typeof l?~(h="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof c[2]?(x[v]=e.slice(0,h),e=e.slice(h+c[2])):(x[v]=e.slice(h),e=e.slice(0,h))):(h=l.exec(e))&&(x[v]=h[1],e=e.slice(0,h.index)),x[v]=x[v]||o&&c[3]&&t[v]||"",c[4]&&(x[v]=x[v].toLowerCase())):e=c(e,x);r&&(x.query=r(x.query)),o&&t.slashes&&"/"!==x.pathname.charAt(0)&&(""!==x.pathname||""!==t.pathname)&&(x.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,s=r[n-1],o=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(o=!0),r.splice(n,1),a--);return o&&r.unshift(""),"."!==s&&".."!==s||r.push(""),r.join("/")}(x.pathname,t.pathname)),"/"!==x.pathname.charAt(0)&&g(x.protocol)&&(x.pathname="/"+x.pathname),n(x.port,x.protocol)||(x.host=x.hostname,x.port=""),x.username=x.password="",x.auth&&(~(h=x.auth.indexOf(":"))?(x.username=x.a
_n("Join %s other subscriber","Join %s other subscribers",n,"jetpack"),(0,s.qe)(n,{numberFormatOptions:{maximumFractionDigits:1}}))}}),{availableNewsletterCategories:Q,areNewsletterCategoriesEnabled:X}=(0,l.useSelect)(e=>{const t=e(f.M);return{availableNewsletterCategories:t.getNewsletterCategories(),areNewsletterCategoriesEnabled:t.getNewsletterCategoriesEnabled()}}),ee=w({gradientAttribute:"emailFieldGradient",customGradientAttribute:"customEmailFieldGradient"}),te=w({gradientAttribute:"buttonGradient",customGradientAttribute:"customButtonGradient"}),re={"no-border-radius":0===L,[B.class]:B.class,"has-text-color":A.color,[A.class]:A.class},ne={...re,"has-background":n.color||ee.gradientValue,[n.class]:!ee.gradientValue&&n.class,[ee.gradientClass]:ee.gradientClass},se={...re,"has-background":x.color||te.gradientValue,[x.class]:!te.gradientValue&&x.class,[te.gradientClass]:te.gradientClass},oe=e=>e||v.E,ae={color:A.color,borderColor:N.color,borderRadius:L?L+"px":v.Kn+"px",borderWidth:R?R+"px":v.aS+"px",fontSize:B.size?B.size:v.Fm,padding:(e=>{const t=e||v.oi;return t+"px "+Math.round(1.5*t)+"px "+t+"px "+Math.round(1.5*t)+"px"})(z)},ie={"--subscribe-block-border-radius":L?L+"px":v.Kn+"px"},le={...ae,...!n.color&&ee.gradientValue?{background:ee.gradientValue}:{backgroundColor:n.color}},ce={...ae,...!x.color&&te.gradientValue?{background:te.gradientValue}:{backgroundColor:x.color},width:D?.length?D:"auto"};"button"!==J&&(W?ce.marginTop=oe(q)+"px":ce.marginLeft=oe(q)+"px");const ue=(0,i.usePrevious)(x);return(0,c.useEffect)(()=>{ue?.color===N?.color&&N?.color!==x?.color&&T(x.color)},[x,ue,N,T]),(0,y.jsxs)("div",{...I,className:(0,d.A)(I.className,"wp-block-jetpack-subscriptions__container","wp-block-jetpack-subscriptions__supports-newline",W?"wp-block-jetpack-subscriptions__use-newline":void 0,$?"wp-block-jetpack-subscriptions__show-subs":void 0),children:[(0,y.jsx)(o.InspectorControls,{children:(0,y.jsx)(k.A,{areNewsletterCategoriesEnabled:X,availableNewsletterCategories:Q,buttonBackgroundColor:x,borderColor:N,buttonGradient:te,borderRadius:L,borderWeight:R,buttonOnNewLine:W,emailFieldBackgroundColor:n,fallbackButtonBackgroundColor:C,fallbackTextColor:S,fontSize:B,includeSocialFollowers:O,isGradientAvailable:j,padding:z,preselectNewsletterCategories:U,setAttributes:r,setBorderColor:T,setButtonBackgroundColor:_,setTextColor:E,showSubscribersTotal:$,spacing:q,subscriberCount:K,textColor:A,buttonWidth:D,selectedNewsletterCategoryIds:H,subscribePlaceholder:G,submitButtonText:V,successMessage:Z})}),(0,y.jsx)(o.BlockControls,{children:(0,y.jsx)(a.ToolbarGroup,{children:(0,y.jsx)(a.ToolbarButton,{href:(0,g.Qu)(P),target:"_blank",children:P?_x("Manage plans","unused context to distinguish translations","jetpack"):__("Set up a paid plan","jetpack")})})}),(0,y.jsxs)("div",{style:ie,children:[(0,y.jsx)("div",{className:"wp-block-jetpack-subscriptions__container is-not-subscriber",children:(0,y.jsx)("div",{className:"wp-block-jetpack-subscriptions__form",role:"form",children:(0,y.jsxs)("div",{className:"wp-block-jetpack-subscriptions__form-elements",children:["button"!==J&&(0,y.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,placeholder:G,disabled:!0,className:(0,d.A)(ne,"wp-block-jetpack-subscriptions__textfield"),style:le}),(0,y.jsx)(o.RichText,{className:(0,d.A)(se,"wp-block-jetpack-subscriptions__button","wp-block-button__link"),onChange:e=>r({submitButtonText:e}),style:ce,value:V,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})]})})}),$&&(0,y.jsx)("div",{className:"wp-block-jetpack-subscriptions__subscount",children:Y})]})]})})},78559:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(59954);const s="undefined"==typeof window?n.pg:n.kU},78691:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o(){const e=n.useBlockProps.save({className:"wp-block-premium-content-subscriber-view entry-content"});return(0,s.jsx)("div",{...e,children:(0,s.jsx)(n.InnerBlocks.Content,{})})}},78745:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(66087),s=r(812
__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:k,srcSet:y}=(0,l.A)(e,{layoutStyle:u});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:c,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:o.length>1,srcSet:y,url:k,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:i,roundedCorners:p,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,l.s)(i)?u.A:c.A,v=this.props.images.map(this.renderImage,this),k=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{style:m,className:(0,o.A)(r,{[`has-rounded-corners-${k}`]:k>0}),children:[(0,d.jsx)(b,{align:e,columns:n,columnWidths:g?f:void 0,images:s,layoutStyle:i,renderedImages:v,onResize:g?void 0:h}),t]})}}},86787:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(27723),s=r(56904),o=r(63893),a=r(92440),i=r(8329);const __=n.__,l=[{config:a.rp,highlight:a.Ay,description:__("Fix spelling mistakes.","jetpack")},{config:s.jp,highlight:s.Ay,dictionary:s.zz,description:__("Use simple, direct words.","jetpack")},{config:o.S,highlight:o.A,description:__("Long sentences are hard to read.","jetpack")},{config:i.E,highlight:i.A,description:__("Remove weasel words.","jetpack")}]},86806:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(70728),s=r(56427),o=r(29491),a=r(47143),i=r(43656),l=r(27723),c=r(15923),u=r(70270),d=r(46482),p=r(10790);const __=l.__,h=(0,a.withSelect)(e=>{const{getEditedPostAttribute:t}=e("core/editor");return{areLikesEnabled:t("jetpack_likes_enabled")}}),m=(0,a.withDispatch)(e=>{const{editPost:t}=e("core/editor");return{editPost:t}}),g=(0,o.compose)([h,m])(({areLikesEnabled:e,editPost:t})=>{const{isLoadingModules:r,isChangingStatus:o,isModuleActive:a,changeStatus:l}=(0,n.q7)("likes");return a?(0,p.jsx)(i.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes",children:(0,p.jsx)(c.A,{children:(0,p.jsx)(s.ToggleControl,{label:__("Show likes","jetpack"),checked:e,onChange:e=>{t({jetpack_likes_enabled:e})},__nextHasNoMarginBottom:!0})})}):(0,p.jsx)(i.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes",children:(0,p.jsx)(c.A,{children:r?(0,p.jsx)(d.L,{}):(0,p.jsx)(u.m,{changeStatus:l,isModuleActive:a,isLoading:o})})})})},86821:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(94715),s=r(47143),o=r(43656),a=r(86087),i=r(52619),l=r(10242),c=r(54237),u=r(51015),d=r(4032),p=r(74269),h=r(3527),m=r(10790);const g="recurring-payments";function f({attributes:e,clientId:t,setAttributes:r}){const{align:f,planId:b,planIds:v,width:k}=e,y=(0,a.useMemo)(()=>v||(b?[b]:[]),[b,v]),x=(0,u.AU)(),j=(0,s.useSelect)(e=>e(o.store)?.getCurrentPost()?.link,[]),w=(0,a.useCallback)(e=>{if(!Array.isArray(e)||0===e.length)return;const t=e.map(e=>parseInt(e,10)).filter(e=>!isNaN(e));if(Array.isArray(y)&&t.length===y.length&&t.every(e=>y.includes(e)))return;const n=t.join("+");r({planId:null,planIds:t,url:(e=>{if(u.vf!==x||!j)return"#";const t=new URL(j);return t.searchParams.set("recurring_payments",e),t.toString()})(n),uniqueId:`recurring-payments-${n}`})},[x,y,j,r]);(0,a.useEffect)(()=>{w(y)},[y,w]);const{showProductManagementControls:_,showStripeNudge:C}=(0,i.applyFilters)("jetpack.recurringPayments.editorSettings",{showProductManagementControls:!0,showStripeNudge:!0},t);(0,d.A)({attributes:e,setAttributes:r});const A=(0,n.useBlockProps)({style:(0,h.a)({width:k})}),S=(0,n.useInnerBlocksProps)({},{template:[["jetpack/button",{element:"a",passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]],templateLock:"all",templateInsertUpdatesSelection:!0});return(0,m.jsxs)("div",{...A,children:[_&&(0,m.jsx)(l.A,{blockName:g,clientId:t,selectedProductIds:y,setSelectedProductIds:w}),(0,m.jsx)(n.InspectorControls,{children:(0,m.jsx)(p.D,{align:f,width:k,onChange:e=>r({width:e})})}),C&&(0,m.jsx)(c.V,{blockName:g}),(0,m.jsx)("div",{...S})]})}},86898:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(99858),s=r(32250),o=r(47870),a=r(107
__("You have reached the limit of <strong>%d requests</strong>. <button><span>Upgrade to continue generating feedback.</span></button>","jetpack"),p),g=(0,o.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,i.jsx)("strong",{})}),f=(0,o.createInterpolateElement)(20===p?h:m,{strong:(0,i.jsx)("strong",{}),button:(0,i.jsx)(s.Button,{variant:"link",onClick:d,href:c,target:"_blank"}),span:(0,i.jsx)("span",{})});return(0,i.jsx)("p",{children:"vip"===t?g:f})}},87775:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h});var n=r(94715),s=r(86087),o=r(13022),a=r(83549),i=r(10790);const l=0,c=1,u=15,d=10,p=16;function h({className:e,attributes:t}){const{subscribePlaceholder:r,showSubscribersTotal:h,buttonOnNewLine:m,submitButtonText:g,emailFieldBackgroundColor:f,customEmailFieldBackgroundColor:b,emailFieldGradient:v,customEmailFieldGradient:k,buttonBackgroundColor:y,customButtonBackgroundColor:x,buttonGradient:j,customButtonGradient:w,textColor:_,customTextColor:C,fontSize:A,customFontSize:S,borderRadius:E,borderWeight:N,borderColor:T,customBorderColor:B,padding:P,spacing:I}=t,M=!!n.__experimentalGetGradientClass,L=(0,n.getColorClassName)("color",_),R=(0,n.getFontSizeClass)(A),D=(0,n.getColorClassName)("border-color",T),F=(0,n.getColorClassName)("background-color",y),O=M?(0,n.__experimentalGetGradientClass)(j):void 0,z=(0,n.getColorClassName)("background-color",f),U=M?(0,n.__experimentalGetGradientClass)(v):void 0,H=(0,o.A)(0===E?"no-border-radius":void 0,R,D),q=(0,o.A)(H,_?"has-text-color":void 0,L,y||j?"has-background":void 0,F,O),V=(0,o.A)(H,z,U),G=!z&&k?k:b,$=!F&&w?w:x,W={subscribe_placeholder:r!==a.A.subscribePlaceholder.default?r:void 0,show_subscribers_total:h,button_on_newline:m,submit_button_text:g!==a.A.submitButtonText.default?g:void 0,custom_background_emailfield_color:G,custom_background_button_color:$,custom_text_button_color:C,custom_font_size:S||p,custom_border_radius:E||l,custom_border_weight:N||c,custom_border_color:B,custom_padding:P||u,custom_spacing:I||d,submit_button_classes:q,email_field_classes:V,show_only_email_and_button:!0},Z=Object.entries(W).reduce((e,[t,r])=>void 0===r?e:e+` ${t}="${r}"`,"");return(0,i.jsx)("div",{className:(0,o.A)(e,"wp-block-jetpack-subscriptions__supports-newline",m?"wp-block-jetpack-subscriptions__use-newline":void 0,h?"wp-block-jetpack-subscriptions__show-subs":void 0),children:(0,i.jsx)(s.RawHTML,{children:`[jetpack_subscription_form${Z}]`})})}},87912:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(68902),s=r.n(n),o=r(68167),a=r(21580),i=r(30007);const l=s()("ai-client:chrome-ai-factory");async function c(e){if(!await(0,a.O)())return l("Chrome AI is not available"),!1;const t={content:"",language:""};let r="",n=null,s=null;if(l("promptArg",e),Array.isArray(e))for(let o=0;o<e.length;o++){const a=e[o];if(a.content&&(t.content=a.content),!("context"in a))continue;const i=a.context;i.type&&(r=i.type),i.language&&(t.language=i.language),i.content&&(t.content=i.content),i.tone&&(n=i.tone),i.words&&(s=i.words)}if(l("promptType",r),!r.startsWith("ai-assistant-change-language")&&!r.startsWith("ai-content-lens"))return l("promptType is not supported"),!1;if(!("LanguageDetector"in self)||!self.LanguageDetector.create||!self.LanguageDetector.availability)return l("LanguageDetector is not available"),!1;const c=await self.LanguageDetector.availability();if("unavailable"===c)return l("LanguageDetector is unavailable"),!1;const u=await self.LanguageDetector.create();if("available"!==c&&(l("awaiting detector ready"),await u.ready),r.startsWith("ai-assistant-change-language")){const[e]=t.language.split(" ");if(!("Translator"in self)||!self.Translator.create||!self.Translator.availability)return l("Translator is not available"),!1;const r={sourceLanguage:"en",targetLanguage:e},n=await u.detect(t.content);for(const e of n)if(e.confidence>.75){r.sourceLanguage=e.detectedLanguage;break}l("languageOpts",r);const s=await self.Translator.availability(r);if(l("translationAvailability",s),"unavailable"===s)return l
{value:"icon-text",label:__("Icon & Text","jetpack")},/* translators: Sharing: Sharing button option label. */
{value:"icon",label:__("Icon Only","jetpack")},/* translators: Sharing: Sharing button option label. */
{value:"text",label:__("Text Only","jetpack")}],value:h,onSelect:e=>l({styleType:e})})})}),(0,a.jsxs)(n.InspectorControls,{group:"color",children:[g.map(({onChange:e,label:r,value:s,resetAllFilter:o})=>(0,a.jsx)(n.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:s,label:r,onColorChange:e,isShownByDefault:!0,resetAllFilter:o,enableAlpha:!0,clearable:!0}],panelId:t,gradients:"",...m},`social-links-color-${r}`)),(0,a.jsx)(n.ContrastChecker,{textColor:p,backgroundColor:d,isLargeText:!1})]})]})})},94044:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(27723);const __=n.__,s={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"}}},94076:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function s(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;const s=e.pending.length-1,o=e.posMax;if(!t)if(s>=0&&32===e.pending.charCodeAt(s))if(s>=1&&32===e.pending.charCodeAt(s-1)){let t=s-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<o&&(0,n.isSpace)(e.src.charCodeAt(r));)r++;return e.pos=r,!0}},94100:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(70728);function s(e){return!0===(0,n.FB)(e).available}},94107:(e,t,r)=>{"use strict";r.d(t,{A:()=>_});var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}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 r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,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 r=0,n=this.__entries__;r<n.length;r++){var s=n[r];e.call(t,s[1],s[0])}},t}()}(),s="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=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 r=!1,n=!1,s=0;function o(){r&&(r=!1,e()),n&&l()}function i(){a(o)}function l(){var e=Date.now();if(r){if(e-s<2)return;n=!0}else r=!0,n=!1,setTimeout(i,t);s=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||