芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/jetpack/_inc/blocks/editor-experimental.js
/*! For license information please see editor-experimental.js.LICENSE.txt */ (()=>{var e={61:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(56427),s=r(29491),o=r(86087),a=r(27723),i=r(51113),l=r(62510),c=r(31249),u=r(95789),d=r(51609),p=r(63098),h=r(70629),m=r(10790);const __=a.__;function g({className:e,disabled:t=!1,value:r="",placeholder:a="",showButtonLabels:d=!0,isTransparent:g=!1,state:f="init",showGuideLine:b=!1,error:v,requestsRemaining:k,showUpgradeMessage:y=!1,showFairUsageMessage:x=!1,upgradeUrl:j,wrapperRef:w,onChange:_,onSend:C,onStop:A,onClose:S,onUndo:E,onUpgrade:N,onTryAgain:T,lastAction:B,blockType:P},I){const M="requesting"===f||"suggesting"===f,[L,R]=(0,o.useState)(!1),[D,F]=(0,o.useState)(r||null),O=(0,o.useRef)(null),z=r?.length<=0&&"done"===f;(0,o.useImperativeHandle)(I,()=>O.current),(0,o.useEffect)(()=>{L&&O?.current?.focus()},[L]);const U=(0,o.useCallback)(()=>{F(r),R(!1),C?.(r)},[C,r]),H=(0,o.useCallback)(e=>{_?.(e),"init"!==f&&R(D?e!==D:e.length>0)},[_,D,f]),q=(0,o.useCallback)(()=>{A?.()},[A]),V=(0,o.useCallback)(()=>{S?.()},[S]),G=(0,o.useCallback)(()=>{E?.()},[E]),$=(0,o.useCallback)(e=>{N?.(e)},[N]),W=(0,o.useCallback)(()=>{T?.()},[T]);(0,s.useKeyboardShortcut)("enter",e=>{e.preventDefault(),U()},{target:O});const Z=(0,m.jsx)(m.Fragment,{children:M?(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:q,variant:"secondary",label:__("Stop request","jetpack"),children:d?__("Stop","jetpack"):(0,m.jsx)(i.A,{icon:c.A})}):(0,m.jsxs)(m.Fragment,{children:[r?.length>0&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:U,variant:"primary",disabled:!r?.length||t,label:__("Send request","jetpack"),children:d?__("Generate","jetpack"):(0,m.jsx)(i.A,{icon:l.A})})}),z&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsxs)(n.Flex,{gap:1,role:"group",className:"jetpack-components-ai-control__button-group",children:[(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Undo","jetpack"),onClick:G,tooltipPosition:"top",children:(0,m.jsx)(i.A,{icon:u.A})}),(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Close","jetpack"),onClick:V,variant:"tertiary",children:__("Close","jetpack")})]})})]})});let J=null;return v?.message?J=(0,m.jsx)(p.Kw,{error:v.message,code:v.code,onTryAgainClick:W,onUpgradeClick:$,upgradeUrl:j}):x?J=(0,m.jsx)(p.k9,{}):y?J=(0,m.jsx)(p.AK,{requestsRemaining:k,onUpgradeClick:$,upgradeUrl:j}):b&&(J=z?(0,m.jsx)(p.Yj,{aiFeedbackThumbsOptions:{showAIFeedbackThumbs:!0,ratedItem:"ai-assistant",prompt:B,block:P}}):(0,m.jsx)(p.Yj,{})),(0,m.jsx)(h.A,{className:e,disabled:t||M,value:r,placeholder:a,isTransparent:g,state:f,onChange:H,actions:Z,message:J,promptUserInputRef:O,wrapperRef:w})}const f=(0,d.forwardRef)(g)},125:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(96865),s=r(74997),o=r(52998);const a=new n.OO({fixes:["paragraph"]});class i extends o.mt{constructor(e){super(e,["paragraph"])}getContent(){const e=this.getBlock();return t=(0,s.getBlockContent)(e),a.render({content:t});var t}}},241:(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(33170),p=r(30889),h=r(34308),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",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,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!1,initialSlide:e,followFinger:!1,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},254:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(27723),s=r(6133);const __=n.__,o={attributes:{subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},migrate:e=>({subscribePlaceholder:e.subscribePlaceholder,showSubscribersTotal:e.showSubscribersTotal,buttonOnNewLine:!0,submitButtonText:e.submitButtonText,buttonBackgroundColor:e.backgroundButtonColor?e.backgroundButtonColor:"primary",customButtonBackgroundColor:e.customBackgroundButtonColor,textColor:e.textButtonColor?e.textButtonColor:"background",customTextColor:e.customTextButtonColor}),save:s.A}},324:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(88015),s=r(65275);const o={attributes:n.A,migrate:e=>({includeSocialFollowers:!0,...e}),save:s.A}},333:(e,t,r)=>{"use strict";r.d(t,{wc:()=>a});var n=r(85985),s=r(66087);function o(){return(0,n.$i)()?.allowedMimeTypes??[]}function a(e,t){if(!e||!t)return!1;if(!o())return!1;const r=(n=t)?(0,s.pickBy)(o(),e=>e.startsWith(`${n}/`)):{};var n;const a=(i=r)?Object.keys(i).map(e=>e.split("|")).flat():[];var i;if("string"==typeof e){const t=e.split(".").pop();return t&&a.includes(t)}return"object"==typeof e&&(e.type&&Object.values(r).includes(e.type))}},434:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(97999),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(78218),c=r(63757),u=r(94530),d=r(86239),p=r(71969),h=r(10790);const __=i.__;const m=function({attributes:e,setAttributes:t}){const r=(0,s.useBlockProps)(),m=(0,l.y)(p.attributes,e),{showReblogButton:g,showAvatars:f}=m,b=!(0,n.isWpcomPlatformSite)(),v=[c,u,d],k=e=>e.preventDefault();return(0,h.jsxs)("div",{...r,children:[(0,h.jsxs)(s.InspectorControls,{children:[b&&(0,h.jsx)("div",{className:"wp-block-jetpack-like__learn-more",children:(0,h.jsx)(o.ExternalLink,{href:"https://jetpack.com/support/likes/",children:__("Learn more","jetpack")})}),(0,h.jsxs)(o.PanelBody,{title:__("Settings","jetpack"),children:[(0,n.isSimpleSite)()&&(0,h.jsx)(o.ToggleControl,{label:__("Show reblog button","jetpack"),checked:g,onChange:()=>t({showReblogButton:!g}),__nextHasNoMarginBottom:!0}),(0,h.jsx)(o.ToggleControl,{label:__("Show avatars","jetpack"),checked:f,onChange:()=>t({showAvatars:!f}),__nextHasNoMarginBottom:!0})]})]},"like-inspector"),(0,h.jsxs)("div",{className:"wpl-likebox",children:[(0,n.isSimpleSite)()&&g&&(0,h.jsx)("div",{className:"wpl-button reblog",children:(0,h.jsx)("a",{href:"#",title:__("Reblog this post on your main site.","jetpack"),className:"reblog sd-button",rel:"nofollow",children:(0,h.jsx)("span",{children:__("Reblog","jetpack")})})}),(0,h.jsx)("div",{className:"wpl-button like",children:(0,h.jsx)("a",{href:"#",className:"sd-button like",rel:"nofollow",onClick:k,children:(0,h.jsx)("span",{children:__("Like","jetpack")})})}),f&&(0,h.jsx)("ul",{className:"wpl-avatars",children:v.map((e,t)=>(0,h.jsx)("li",{className:"wp-liker-me",children:(0,h.jsx)("a",{className:"wpl-liker",href:"#",rel:"nofollow",onClick:k,children:(0,h.jsx)("img",{src:e,className:"avatar avatar-30",width:30,height:30,alt:""})})},`liker-${t}`))}),(0,h.jsx)("div",{className:"wpl-count",children:(0,h.jsx)("span",{className:"wpl-count-text",children:(0,h.jsx)("a",{href:"#",onClick:k,children:(0,a.createInterpolateElement)((0,i.sprintf)( // translators: %1$d: Number of likes __("
%1$d
likes","jetpack"),v.length),{span:(0,h.jsx)("span",{className:"wpl-count-number"})})})})})]})]})}},692:e=>{"use strict";e.exports=window.wp.notices},1063:(e,t,r)=>{"use strict";var n=r(94715),s=r(94375),o=r(88795),a=r(49108),i=r(89218),l=r(10790);(0,s.M)(o,{edit:i.A,save:()=>{const e=n.useBlockProps.save();return(0,l.jsx)("div",{...e,children:(0,l.jsx)(n.InnerBlocks.Content,{})})},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},deprecated:a.A})},1149:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(86087);const s=(e,t,r)=>{(0,n.useEffect)(()=>{const n=setTimeout(()=>e(r),t);return()=>clearTimeout(n)},[r,e,t])}},1176:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(96865),s=r(56427),o=r(27723),a=r(51609),i=r(2162),l=r(62402),c=r(10790);const __=o.__;function u({minWords:e=10,maxWords:t=100,disabled:r,words:o,onWordsNumberChange:u,language:d,onLanguageChange:p,tone:h,onToneChange:m}){const[g,f]=(0,a.useState)(!1);const b=d?.split(" ")[0],v=n.so[b]?.label||__("Language","jetpack"),k=n.oZ[h]?.label||__("Tone","jetpack");return(0,c.jsxs)("div",{className:"jetpack-ai-generate-excerpt-control",children:[(0,c.jsxs)(s.BaseControl,{className:"jetpack-ai-generate-excerpt-control__header",__nextHasNoMarginBottom:!0,children:[(0,c.jsx)(s.BaseControl.VisualLabel,{children:__("Settings","jetpack")}),(0,c.jsx)(s.Button,{label:__("Advanced AI options","jetpack"),icon:n.cj,onClick:function(){f(e=>!e)},"aria-pressed":g,isSmall:!0})]}),g&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.HU,{disabled:r,onChange:p,value:d,label:v}),(0,c.jsx)(l.hN,{disabled:r,label:k,value:h,onChange:m})]}),(0,c.jsx)(s.RangeControl,{label:__("Desired length","jetpack"),value:o,onChange:u,min:e,max:t,help:__("Sets the desired length in words for the auto-generated excerpt. The final count may vary due to how AI works.","jetpack"),showTooltip:!1,disabled:r,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})]})}},1455:e=>{"use strict";e.exports=window.wp.apiFetch},1456:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(86087),s=r(27723),o=r(13022),a=r(35463),i=r(31238),l=r(56366),c=r(90256),u=r(88139),d=r(10790);const __=s.__;class p extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:a,linkTo:i,layoutStyle:l,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("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]})}}},1624:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/podcast-player","title":"Podcast Player","description":"Select and play episodes from a single podcast.","keywords":["audio","embed"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"
","supports":{"align":["wide","full"],"spacing":{"padding":true,"margin":true},"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true},"attributes":{"url":{"type":"string"},"selectedEpisodes":{"type":"array","default":[]},"itemsToShow":{"type":"integer","default":5},"showCoverArt":{"type":"boolean","default":true},"showEpisodeTitle":{"type":"boolean","default":true},"showEpisodeDescription":{"type":"boolean","default":true},"primaryColor":{"type":"string"},"customPrimaryColor":{"type":"string"},"hexPrimaryColor":{"type":"string"},"secondaryColor":{"type":"string"},"customSecondaryColor":{"type":"string"},"hexSecondaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"hexBackgroundColor":{"type":"string"},"exampleFeedData":{"type":"object"}},"example":{"attributes":{"customPrimaryColor":"GREEN","hexPrimaryColor":"GREEN","exampleFeedData":{"title":"Jetpack Example Podcast","link":"https://jetpack.com","cover":"https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160","tracks":[{"id":"3","title":"3. Our third episode","duration":"14:58"},{"id":"2","title":"2. Interview with a special guest","duration":"19:17"},{"id":"1","title":"1. Welcome to Example Podcast","duration":"11:25"}]}}}}')},1629:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-chat","title":"Jetpack AI Search","description":"Provide a summarized answer to questions, trained on the sites content. Powered by AI.","keywords":["AI","GPT","Chat","Search"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"
","supports":{"align":true,"alignWide":true,"customClassName":true,"className":true,"html":false,"multiple":false,"reusable":false},"attributes":{"askButtonLabel":{"type":"string"},"placeholder":{"type":"string"},"showCopy":{"type":"boolean","default":true},"showFeedback":{"type":"boolean","default":true},"showSources":{"type":"boolean","default":true}}}')},1661:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n="jetpack-ai-breve"},1729:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);const o=({attributes:e})=>{const t=n.useBlockProps.save(),{imageBefore:r,imageAfter:o,caption:a,orientation:i}=e;return(0,s.jsxs)("figure",{...t,children:[(0,s.jsxs)("div",{className:"juxtapose","data-mode":i||"horizontal",children:[(0,s.jsx)("img",{id:r.id,src:r.url,alt:r.alt,width:r.width,height:r.height,className:"image-compare__image-before"}),(0,s.jsx)("img",{id:o.id,src:o.url,alt:o.alt,width:o.width,height:o.height,className:"image-compare__image-after"})]}),!n.RichText.isEmpty(a)&&(0,s.jsx)(n.RichText.Content,{tagName:"figcaption",value:a})]})}},1807:(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"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:r,...n}=e;return{...n,showFullscreenButton:!0,className:t}},save:r(66730).A}},1811:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(47143);const s=async()=>{const{clearSelectedBlock:e}=(0,n.dispatch)("core/block-editor"),{enableComplementaryArea:t}=(0,n.dispatch)("core/interface");e(),await t("core/edit-post","jetpack-sidebar/jetpack");const r=document.querySelector(".jetpack-ai-assistant-panel"),s=r?.classList.contains("is-opened"),o=r?.querySelector("h2 button");s&&o?.click(),setTimeout(()=>{o?.click()},50)}},1990:(e,t,r)=>{"use strict";r.d(t,{G:()=>l,W:()=>a});var n=r(27723),s=r(29726);const __=n.__,o={"add a new product":{[s._$]:__("Add a new payment plan","jetpack"),[s.h5]:__("Add a new subscription","jetpack")},"product not found":{[s._$]:__("Payment plan not found","jetpack"),[s.h5]:__("Subscription not found","jetpack")},"select a product":{[s._$]:__("Select a payment plan","jetpack"),[s.h5]:__("Select a subscription","jetpack")},"default new product title":{[s._$]:__("Monthly Subscription","jetpack"),[s.h5]:__("Monthly Subscription","jetpack")},"manage your products":{[s._$]:__("Manage your payment plans.","jetpack"),[s.h5]:__("Manage your subscriptions.","jetpack")},"saving product":{[s._$]:__("Saving payment plan…","jetpack"),[s.h5]:__("Saving subscription…","jetpack")},"add product":{[s._$]:__("Add payment plan","jetpack"),[s.h5]:__("Add subscription","jetpack")},"product requires a name":{[s._$]:__("Payment plan requires a name","jetpack"),[s.h5]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[s._$]:__("Payment plan requires a valid price","jetpack"),[s.h5]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[s._$]:__("Successfully created payment plan","jetpack"),[s.h5]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[s._$]:__("There was an error when adding the payment plan.","jetpack"),[s.h5]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[s._$]:__("Invalid payment plan configured for this block.","jetpack"),[s.h5]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[s._$]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[s.h5]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[s._$]:__("Mark this payment plan as a donation","jetpack"),[s.h5]:__("Mark this subscription as a donation","jetpack")}};function a(e,t=s._$){return o?.[e]?.[t]||null}const i={"1 month":__("Monthly Subscription","jetpack"),"1 year":__("Yearly Subscription","jetpack"),"one-time":__("Subscription","jetpack")};function l(e){return i[[e]]??""}},2162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,HU:()=>f});var n=r(96865),s=r(85985),o=r(56427),a=r(27723),i=r(51113),l=r(29115),c=r(84066),u=r(10790);const __=a.__,d=["en","es","fr","de","it","pt","ru","zh","ja","ar","hi","ko"],p=window?.Jetpack_Editor_Initial_State?.siteLocale||navigator?.language,h=p?.split("-")[0]||"en",m=(p?.split("-"),({value:e,onChange:t})=>{const r=[...d.filter(e=>e!==h)];return d.includes(h)&&r.unshift(h),(0,u.jsx)(o.MenuGroup,{label:__("Select language","jetpack"),children:r.map(r=>(0,u.jsx)(o.MenuItem,{onClick:()=>t(r+" ("+n.so[r].label+")"),isSelected:e===r,children:n.so[r].label},`key-${r}`))})});function g({value:e=h,label:t=n.u0,onChange:r,disabled:a=!1}){const{tracks:l}=(0,s.st)();return a?(0,u.jsx)(o.Tooltip,{text:t,children:(0,u.jsx)(o.Button,{disabled:!0,children:(0,u.jsx)(i.A,{icon:c.A})})}):(0,u.jsx)(o.ToolbarDropdownMenu,{icon:c.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&l.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"i18n"})},children:()=>(0,u.jsx)(m,{value:e,onChange:r})})}function f({value:e=h,label:t=n.u0,onChange:r,disabled:s=!1}){return(0,u.jsx)(o.DropdownMenu,{className:"ai-assistant__i18n-dropdown",icon:c.A,label:t,toggleProps:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"ai-assistant__i18n-dropdown__toggle-label",children:t}),(0,u.jsx)(i.A,{icon:l.A})]}),disabled:s},children:({onClose:t})=>(0,u.jsx)(m,{onChange:(...e)=>{r(...e),t()},value:e})})}},2164:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94715),s=r(56427),o=r(27723),a=r(10790);const __=o.__,_x=o._x,i=[{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})]}),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:"1977",value:"1977"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,a.jsx)(s.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:_x("Gingham","image style","jetpack"),value:"gingham"}],l=__("Pick an image filter","jetpack"),c=(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"})]});function u({value:e,onChange:t}){return(0,a.jsx)(s.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,a.jsx)(n.BlockControls,{children:(0,a.jsx)(s.Toolbar,{label:l,children:(0,a.jsx)(s.ToolbarButton,{onClick:e,"aria-expanded":t,"aria-haspopup":"true",label:l,showTooltip:!0,icon:c})})}),renderContent:({onClose:r})=>(0,a.jsx)(s.NavigableMenu,{className:"tiled-gallery__filter-picker-menu",children:i.map(({icon:n,title:o,value:i})=>{return(0,a.jsx)(s.MenuItem,{className:e===i?"is-active":void 0,icon:n,isSelected:e===i,onClick:(l=i,()=>{t(e===l?void 0:l),r()}),role:"menuitemcheckbox",children:o},i||"original");var l})})})}},2166:(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})},2194:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94715),s=r(13022),o=r(90907),a=r(62393),i=r(10790);const l=({attributes:e})=>{const{align:t,mapDetails:r,points:l,zoom:c,mapCenter:u,markerColor:d,scrollToZoom:p,mapHeight:h,showFullscreenButton:m}=e,g=n.useBlockProps.save(),{className:f}=g,b=(0,o.D)(a.A,f),v=l.map((e,t)=>{const{longitude:r,latitude:n}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+n+","+r;return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:s,children:e.title})},t)});return(0,i.jsx)("div",{...g,className:(0,s.A)(f,t?`align${t}`:null),"data-map-style":b,"data-map-details":r,"data-points":JSON.stringify(l),"data-zoom":c,"data-map-center":JSON.stringify(u),"data-marker-color":d,"data-scroll-to-zoom":p||null,"data-map-height":h||null,"data-show-fullscreen-button":m||null,children:l.length>0&&(0,i.jsx)("ul",{children:v})})}},2230:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o({attributes:e}){const t=n.useBlockProps.save(),{url:r}=e;return(0,s.jsx)("a",{...t,href:r,children:r})}},2274:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(39384),s=r(85985),o=r(82201),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})})})]})}},2369:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-2-78fc061b3eff2af1311b.jpg"},2467:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){function s(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,s,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var s,o,a,c;if(i(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(s=l(e))>0&&a.length>s&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=u.bind(n);return s.listener=r,n.wrapFn=s,s}function p(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r
0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=m(l,c);for(r=0;r
=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,s=o;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1
=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2500:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},2632:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(10402),s=r(54711);function o(e){const t=e?.innerText,r=(0,s.D)(e),o=r?.innerText,a=(0,n.u)(r,e),i=new RegExp(t,"gi"),l=Array.from(o.matchAll(i)).map(e=>e.index);return{target:t,parent:r,text:o,occurrence:Math.max(1,l.indexOf(a)+1)}}},2668:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o(){const e=n.useBlockProps.save();return(0,s.jsx)("div",{...e,children:(0,s.jsx)(n.InnerBlocks.Content,{})})}},2699:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=/\r\n?|\n/g,s=/\0/g;function o(e){let t;t=e.src.replace(n,"\n"),t=t.replace(s,"�"),e.src=t}},2761:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(47143),s=r(38062),o=r(12365),a=r(10179),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})}})]})}},2905:(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})},3120:(e,t,r)=>{"use strict";r.d(t,{e:()=>h});var n=r(85985),s=r(94715),o=r(29491),a=r(47143),i=r(86087),l=r(95104),c=r(26845),u=r(23887),d=r(10790);const p=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r,clientId:o,isSelected:p,attributes:h,setAttributes:m}=t||{},g=(0,n.tu)(r);if(!g)return(0,d.jsx)(e,{...t});const f=(0,n.sH)(r),b=(0,n.GT)(r),[v,k]=(0,i.useState)(!f),[y,x]=(0,i.useState)(!1),j="editor-canvas",w=(0,a.useSelect)(e=>e("core/block-editor").hasSelectedInnerBlock(o,!0),[o]),{hasParentBanner:_}=(0,i.useContext)(l.j)||{},C=(p||w)&&v&&!_,{tracks:A}=(0,n.st)(),S=(0,i.useMemo)(()=>({plan:g,blockName:r,context:j,tracks:A}),[g,r,A]);(0,i.useEffect)(()=>{C&&x(!0)},[C,x]),(0,i.useEffect)(()=>{!y&&C&&(0,u.r)(S)},[y,S,C]),(0,i.useEffect)(()=>k(!f),[h,k,f]),(0,i.useEffect)(()=>{m({shouldDisplayFrontendBanner:!_})},[m,_]);const E=(0,s.useBlockProps)();return(0,d.jsx)(l.b,{onBannerVisibilityChange:k,hasParentBanner:C,children:(0,d.jsxs)("div",{ref:E.ref,style:{maxWidth:"unset"},children:[(0,d.jsx)(c.Ay,{className:`is-${r.replace(/\//,"-")}-paid-block`,title:null,align:h?.align,visible:C,description:b?.description,requiredPlan:g,context:j,onRedirect:()=>(0,u.W)(S)}),(0,d.jsx)(e,{...t})]})})},"withUpgradeBanner");function h(e,t){return(0,n.tu)(t)?{...e,edit:p(e.edit)}:e}},3161:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(94715),s=r(86087),o=r(13022),a=r(53889),i=r(10790);const l=0,c=1,u=15,d=10,p="16px";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,buttonWidth:M}=t,L=!!n.__experimentalGetGradientClass,R=(0,n.getColorClassName)("color",_),D=(0,n.getFontSizeClass)(A),F=(0,n.getColorClassName)("border-color",T),O=(0,n.getColorClassName)("background-color",y),z=L?(0,n.__experimentalGetGradientClass)(j):void 0,U=(0,n.getColorClassName)("background-color",f),H=L?(0,n.__experimentalGetGradientClass)(v):void 0,q=(0,o.A)(0===E?"no-border-radius":void 0,D,F),V=(0,o.A)(q,_?"has-text-color":void 0,R,y||j?"has-background":void 0,O,z),G=(0,o.A)(q,U,H),$=!U&&k?k:b,W=!O&&w?w:x,Z=M||void 0,J={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:$,custom_background_button_color:W,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_button_width:Z,custom_padding:P||u,custom_spacing:I||d,submit_button_classes:V,email_field_classes:G,show_only_email_and_button:!0},K=Object.entries(J).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${K}]`})})}},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
>14;for(;t
>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.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===c.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function m(e){let t="";const r=new h(e,e=>t+=(0,a.MK)(e));return function(e,n){let s=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(s,o),r.startEntity(n);const a=r.write(e,o+1);if(a<0){s=o+r.end();break}s=o+a,o=0===a?s+1:s}const a=t+e.slice(s);return t="",a}}function g(e,t,r,n){const s=(t&i.BRANCH_LENGTH)>>7,o=t&i.JUMP_TABLE;if(0===s)return 0!==o&&n===o?r:-1;if(o){const t=n-o;return t<0||t>=s?-1:e[r+t]-1}let a=r,l=a+s-1;for(;a<=l;){const t=a+l>>>1,r=e[t];if(r
n))return e[t+s];l=t-1}}return-1}const f=m(s.A);m(o.A);function b(e,t=c.Legacy){return f(e,t)}},3328:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});var n=r(32448),s=r.n(n),o=r(63673);const a=s()("number-formatters:get-cached-formatter"),i=new Map;function l({locale:e,fallbackLocale:t=o.M,options:r,retries:n=1}){const s=JSON.stringify([e,r]);try{return i.get(s)??i.set(s,new Intl.NumberFormat(e,r)).get(s)}catch(s){if(a(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),n)return l({locale:t,options:r,retries:n-1});throw s}}},3348:(e,t,r)=>{"use strict";var n=r(94715),s=r(74997),o=r(29491),a=r(47143),i=r(52619),l=r(27723),c=r(74628),u=r(17900),d=r(47960),p=r(10790);const __=l.__,h=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r,attributes:o,isSelected:i}=t;if("core/embed"!==r)return(0,p.jsx)(e,{...t});if(!(o?.url?.match(/^https?:\/\/(?:video\.wordpress\.com\/[ve]\/|videopress\.com\/[ve]\/)[a-zA-Z\d]{8}/)||"videopress"===o?.providerNameSlug))return(0,p.jsx)(e,{...t});const{replaceBlock:l}=(0,a.dispatch)("core/block-editor");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e,{...t}),i&&(0,p.jsx)(n.InspectorControls,{children:(0,p.jsxs)("div",{className:"wp-block-videopress-video-transform",style:{padding:"16px"},children:[(0,p.jsx)("div",{className:"components-notice is-info",children:(0,p.jsx)("div",{className:"components-notice__content",children:__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features.","jetpack")})}),(0,p.jsx)("div",{style:{marginTop:"8px"},children:(0,p.jsx)("button",{className:"components-button is-primary",onClick:()=>{const e=o.url,r=o.guid||(0,d.QW)(e),n=(0,s.createBlock)("videopress/video",{src:e,id:o.id||null,guid:r,title:o.title||"",caption:o.caption||"",isVideoPressExample:!1,autoplay:!1,controls:!0,muted:!1,playsinline:!0,preload:"metadata",useAverageColor:!0,poster:o.poster||"",loop:!1,videoPressTracks:[],className:o.className||"",align:o.align||"",rating:"",allowDownload:!1,privacySetting:c.NF.SITE_DEFAULT,url:(0,u.e)(r,{autoplay:!1,controls:!0,loop:!1,muted:!1,playsinline:!0,poster:o.poster||"",preload:"metadata",useAverageColor:!0})});l(t.clientId,n)},children:__("Transform to VideoPress block","jetpack")})})]})})]})},"withVideoPressSettings");(0,i.addFilter)("editor.BlockEdit","jetpack/videopress-embed-settings",h)},3361:(e,t,r)=>{"use strict";var n=r(74997),s=r(94375),o=r(17195),a=r(14164),i=r(12953),l=r(52755);(0,s.M)(o,{edit:a.A,save:i.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&l.QL.test(e.textContent),transform:e=>{const t=(0,l.Dl)(e.textContent);return(0,n.createBlock)("jetpack/nextdoor",{url:t})}}]}})},3506:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},3582:e=>{"use strict";e.exports=window.wp.coreData},3586:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(96865),s=r(85985),o=r(94715),a=r(74997),i=r(56427),l=r(29491),c=r(47143),u=r(86087),d=r(27723),p=r(13022),h=r(27970),m=r(56199),g=r(2274),f=r(32249),b=r(51698),v=r(4393),k=r(44732),y=r(76695),x=r(10790);const __=d.__,j="post"===window?.Jetpack_Editor_Initial_State?.screenBase;function w({attributes:e,setAttributes:t,clientId:r,isSelected:d}){const[w,_]=(0,u.useState)(null),{tracks:C}=(0,s.st)(),{getBlock:A}=(0,c.useSelect)("core/block-editor"),S=(0,u.useRef)(null),E=(0,u.useRef)(null),{replaceBlocks:N,removeBlock:T}=(0,c.useDispatch)("core/block-editor"),{editPost:B}=(0,c.useDispatch)("core/editor"),[P,I]=(0,u.useState)((0,n.MB)(e.preTransformAction)),{isOverLimit:M,requireUpgrade:L,increaseRequestsCount:R,requestsCount:D,requestsLimit:F,currentTier:O,loading:z,tierPlansEnabled:U}=(0,n.yM)(),H=Math.max(F-D,0),{autosaveAndRedirect:q}=(0,n.ON)(),V=(0,s.Bd)(O),G=()=>{setTimeout(()=>{S.current?.focus?.()},100)},$=()=>{setTimeout(()=>{E.current?.focus?.()},100)},W=(0,l.useViewportMatch)("medium","<"),Z=(0,u.useRef)(null),{getSuggestionFromOpenAI:J,stopSuggestion:K,showRetry:Y,contentBefore:Q,postTitle:X,retryRequest:ee,wholeContent:te,requestingState:re,error:ne}=(0,v.A)({onSuggestionDone:(0,u.useCallback)(e=>{G(),e||R()},[R]),onUnclearPrompt:(0,u.useCallback)(()=>{$(),R()},[R]),onModeration:G,attributes:e,clientId:r,content:e.content,tracks:C,userPrompt:e.userPrompt,requireUpgrade:L,initialRequestingState:e.requestingState,contentRef:Z,blockRef:E}),se="requesting"===re,oe=["requesting","suggesting"].includes(re),ae=(0,s.xI)(),{productPageUrl:ie}=(0,k.A)(),le=(0,y.y)(r);(0,u.useEffect)(()=>{if(!le)return;const e=JSON.parse(localStorage.getItem(le));if(!e)return;const{type:t,options:r}=e;localStorage.removeItem(le),J(t,r)},[le,J]),(0,u.useEffect)(()=>{ne&&_(!1)},[ne]),(0,u.useEffect)(()=>{["init","done"].includes(re)&&t({requestingState:re})},[re,t]);const ce=!!e.content,ue=e.promptType===n.vE,de=__("Accept","jetpack"),pe=__("Accept title","jetpack"),he=ue?pe:de,me=async()=>{let t=[],s=(0,n._E)({content:e.content||""});if(s?.split("\n").length>1&&s?.split("\n")?.[0]?.match(/^
.*<\/h1>$/)&&!X){const e=s.split("\n"),t=e.shift();s=e.join("\n"),B({title:t.replace(/<[^>]*>/g,"")})}t=(0,a.rawHandler)({HTML:s}),await N(r,t);const o=(e=>{let t=null;return e.forEach(e=>{const r=document.querySelector(`.wp-block[data-block="${e.clientId}"]`);if(!r)return;"true"===r.contentEditable&&(t=r);const n=r.querySelectorAll("[contenteditable=true]");t=n.length?n[n.length-1]:t}),t})(t);o&&(e=>{const t=e.ownerDocument.getSelection();t.selectAllChildren(e),t.collapseToEnd(),e.focus()})(o)},ge=()=>{me(),C.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})},fe=()=>{j?(B({title:e.content?e.content.trim():""}),T(r),C.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})):ge()},be=()=>{K(),G(),C.recordEvent("jetpack_ai_assistant_block_stop",{feature:"ai-assistant"})},ve=(0,o.useBlockProps)({ref:E,className:(0,p.A)({"is-waiting-response":se})}),ke=__("Ask Jetpack AI…","jetpack"),ye=__("Write about… Make a table for…","jetpack"),xe=(0,x.jsxs)(x.Fragment,{children:[M&&d&&(0,x.jsx)(n.Hb,{placement:"ai-assistant-block"}),!ae&&(0,x.jsx)(g.A,{block:"AI Assistant"})]}),je=(0,x.jsx)(x.Fragment,{children:ne?.message&&!w&&"error_quota_exceeded"!==ne?.code&&(0,x.jsx)(i.Notice,{status:ne.status,isDismissible:!1,className:"jetpack-ai-assistant__error",children:ne.message})}),we=M&&V===s.Ti?(0,x.jsx)(n.QA,{variant:"muted"}):null,_e=(0,u.useCallback)(e=>{e.preventDefault(),C.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:O?.slug,requests_count:D,placement:"jetpack_ai_assistant_block"}),q(e)},[C,O,D,q]);return(0,x.jsx)(i.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{esc:()=>{["requesting","suggesting"].includes(re)&&be()}},children:(0,x.jsxs)("div",{...ve,children:[ce&&(0,x.jsx)("div",{ref:Z,className:"jetpack-ai-assistant__content",children:(0,x.jsx)(u.RawHTML,{children:(0,n._E)({content:e.content||""})})}),(0,x.jsxs)(o.InspectorControls,{children:[we&&(0,x.jsxs)("div",{className:"block-editor-block-card",style:{paddingTop:0},children:[(0,x.jsx)("span",{className:"block-editor-block-icon"}),we]}),(0,x.jsxs)("div",{className:"block-editor-block-card",style:{paddingTop:0},children:[(0,x.jsx)("span",{className:"block-editor-block-icon"}),(0,x.jsx)(i.ExternalLink,{href:ie,children:__("Discover all features","jetpack")})]}),(V===s._X||U&&V!==s.Ti)&&(0,x.jsx)(i.PanelBody,{initialOpen:!0,children:(0,x.jsx)(i.PanelRow,{children:(0,x.jsx)(h.A,{placement:m.k})})}),(0,x.jsx)(i.PanelBody,{initialOpen:!0,children:(0,x.jsx)(i.PanelRow,{children:(0,x.jsx)(f.A,{})})})]}),!oe&&ae&&!L&&(0,x.jsx)(b.A,{isWaitingState:oe,contentIsLoaded:ce,getSuggestionFromOpenAI:(e,t)=>{const r=(0,n.MB)(e,t);I(r),J(e,t)},retryRequest:ee,handleAcceptContent:ge,handleAcceptTitle:fe,handleTryAgain:null,showRetry:Y,contentBefore:Q,hasPostTitle:!!X?.length,wholeContent:te,promptType:e.promptType,setUserPrompt:e=>{if(!S?.current)return;S.current.focus(),t({userPrompt:e})},recordEvent:C.recordEvent,isGeneratingTitle:ue}),(0,x.jsx)(n.N0,{ref:S,disabled:L||!ae,value:e.userPrompt,placeholder:e?.content?ke:ye,onChange:e=>{_(!0),t({userPrompt:e})},onSend:()=>{I(e.userPrompt),((...e)=>{J(...e),$()})("userPrompt"),C.recordEvent("jetpack_ai_assistant_block_generate",{feature:"ai-assistant"})},onStop:be,onAccept:()=>{ue?fe():ge()},onDiscard:()=>{const n=e?.content===A(r).attributes?.content;t({content:e?.originalContent,promptType:void 0,messages:e?.originalMessages}),me(),n?C.recordEvent("jetpack_ai_assistant_block_dismiss"):C.recordEvent("jetpack_ai_assistant_block_discard",{feature:"ai-assistant"})},state:re,isTransparent:L||!ae,showButtonLabels:!W,showAccept:"init"!==re&&ce&&!oe,acceptLabel:he,showGuideLine:ce,showRemove:e?.content?.length>0,banner:xe,error:je,customFooter:H%5!=0&&1!==D||z||V!==s._X?null:(0,x.jsx)(n.AK,{requestsRemaining:H,onUpgradeClick:_e}),lastAction:P})]})})}},3601:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56427),s=r(10790);const o="undefined"!=typeof window?window.wp?.blocks?.getBlockType:null;function a({variations:e,onSelect:t,label:r}){return(0,s.jsx)("ul",{"aria-label":r,className:"wp-block-jetpack-payments-intro__variation-picker",children:e.map(e=>(0,s.jsxs)("li",{children:[(0,s.jsx)(n.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>t(e),className:"wp-block-jetpack-payments-intro__variation-picker__variation",label:e.description||e.title}),(0,s.jsx)("span",{className:"wp-block-jetpack-payments-intro__variation-picker__variation-label",role:"presentation",children:o?.(e.name)?.title||e.title})]},e.name))})}},3620:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(47143),s=r(86087),o=r(27723),a=r(93832),i=r(31439),l=r(72448),c=r(62614),u=r(62038),d=r(75988);const __=o.__;function p({feature:e,type:t,cost:r,autoStart:o=!0,previousMediaId:p}){const{generateImageWithParameters:h}=(0,c.Ay)(),{increaseRequestsCount:m,featuresControl:g}=(0,l.A)(),{saveToMediaLibrary:f}=(0,u.A)(),{createNotice:b}=(0,n.useDispatch)("core/notices"),v=(0,s.useRef)(0),[k,y]=(0,s.useState)(0),[x,j]=(0,s.useState)([{generating:o}]),w=e===d.oW?"featured-image":"image",_=g?.[w],C=_?.styles,A=(0,s.useCallback)((e,t)=>{j(r=>{const n=[...r];return n[t]={...n[t],...e},n})},[]),S=(0,n.useSelect)(e=>e("core")?.getEntityRecord?.("postType","attachment",p),[p]);(0,s.useEffect)(()=>{S&&A({image:S.source_url,libraryId:S.id,libraryUrl:S.source_url,generating:!1},v.current)},[S,A]);const E=(0,s.useCallback)(e=>{b("success",e,{type:"snackbar",isDismissible:!0})},[b]),N=(0,s.useCallback)(()=>{m(r)},[m,r]),T=(0,s.useCallback)(e=>{if(!e)return"image.png";const t=e.split(" ").slice(0,10).join(" ");return(0,a.cleanForSlug)(t)+".png"},[]),B=(0,s.useCallback)(({userPrompt:r,postContent:n,notEnoughRequests:s,style:o=null})=>new Promise((a,i)=>{if(p&&0===v.current&&v.current++,A({generating:!0,error:null},v.current),s)return A({generating:!1,error:new Error(__("You don't have enough requests to generate another image.","jetpack"))},v.current),void a({});const l=h({feature:e,size:"1792x1024",responseFormat:"b64_json",messages:[{role:"jetpack-ai",context:{type:t,request:r||null,content:n,style:o}}],style:o||""}),c=T(r);l.then(e=>{if(e.data.length>0){const t="data:image/png;base64,"+e.data[0].b64_json,n=r||null,s=e.data[0].revised_prompt||null;A({image:t,prompt:n,revisedPrompt:s},v.current),N(),f(t,c).then(e=>{E(__("Image saved to media library.","jetpack")),A({libraryId:e?.id,libraryUrl:e?.url,generating:!1},v.current),v.current+=1,a({image:t,libraryId:e?.id,libraryUrl:e?.url,revisedPrompt:s})}).catch(()=>{A({generating:!1},v.current),v.current+=1,a({image:t})})}}).catch(e=>{A({generating:!1,error:e},v.current),i(e)})}),[A,h,e,t,N,f,E,T,p]),P=(0,s.useCallback)(()=>{y(Math.max(k-1,0))},[k]),I=(0,s.useCallback)(()=>{y(Math.min(k+1,x.length-1))},[k,x.length]),M=(0,s.useCallback)(async function(e,t="",r=""){if(!C||!C.length)return null;const n=[{role:"jetpack-ai",context:{type:t||"general-image-guess-style",request:e,content:r}}];try{const e=await(0,i.A)(n,{feature:"jetpack-ai-image-generator"});if(!e)return null;const t=C.find(({value:t})=>t===e);return t?t.value:null}catch(e){Promise.reject(e)}},[C]);return{current:k,setCurrent:y,processImageGeneration:B,handlePreviousImage:P,handleNextImage:I,currentImage:x[k],currentPointer:x[v.current],images:x,pointer:v,imageStyles:C,guessStyle:M}}},3686:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(56427),s=r(10790);const o=(0,s.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(n.Path,{d:"M12 12.75H21V11.25H12V12.75Z"}),(0,s.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12ZM3.77743 10.8857C4.08602 10.2714 4.64181 9.80266 5.31427 9.61008C5.15499 9.79493 5.01798 10.0132 4.90612 10.2532C4.81521 10.4483 4.73949 10.6605 4.68112 10.8857H3.77743ZM3.58718 11.4C3.53956 11.5922 3.51429 11.7931 3.51429 12C3.51429 12.2069 3.53956 12.4078 3.58718 12.6H4.58166C4.55616 12.4057 4.54286 12.205 4.54286 12C4.54286 11.7949 4.55616 11.5942 4.58166 11.4H3.58718ZM5.10094 11.4C5.0724 11.5917 5.05714 11.7926 5.05714 12C5.05714 12.2074 5.0724 12.4083 5.10094 12.6H6.89907C6.92761 12.4083 6.94286 12.2074 6.94286 12C6.94286 11.7926 6.92761 11.5917 6.89906 11.4H5.10094ZM7.41834 11.4C7.44384 11.5942 7.45714 11.7949 7.45714 12C7.45714 12.2051 7.44384 12.4058 7.41835 12.6H8.41282C8.46044 12.4078 8.48571 12.2069 8.48571 12C8.48571 11.7931 8.46044 11.5922 8.41282 11.4H7.41834ZM8.22257 10.8857H7.31888C7.26051 10.6605 7.18479 10.4483 7.09388 10.2532C6.98202 10.0132 6.845 9.79493 6.68571 9.61007C7.35817 9.80265 7.91398 10.2714 8.22257 10.8857ZM6.78494 10.8857H5.21506C5.25946 10.7382 5.31227 10.5992 5.37226 10.4705C5.5421 10.1061 5.76275 9.83732 5.99999 9.67974C6.23724 9.83732 6.45789 10.1061 6.62775 10.4705C6.68773 10.5992 6.74054 10.7382 6.78494 10.8857ZM3.77743 13.1143H4.68112C4.74269 13.3519 4.82356 13.5749 4.92121 13.7787C5.0301 14.0059 5.16199 14.2132 5.31431 14.3899C4.64184 14.1974 4.08603 13.7286 3.77743 13.1143ZM6.78495 13.1143H5.21506C5.26258 13.2722 5.31973 13.4203 5.38498 13.5564C5.5534 13.9078 5.76894 14.1668 6.00003 14.3203C6.23726 14.1627 6.45791 13.8939 6.62775 13.5295C6.68773 13.4008 6.74054 13.2618 6.78495 13.1143ZM7.09388 13.7468C7.18479 13.5517 7.26052 13.3395 7.31889 13.1143H8.22257C7.91398 13.7286 7.35819 14.1973 6.68574 14.3899C6.84501 14.2051 6.98203 13.9868 7.09388 13.7468Z",strokeWidth:"0.1"})]})},3696:(e,t,r)=>{"use strict";r.d(t,{EF:()=>n,JA:()=>o,an:()=>s,gI:()=>a,ky:()=>i});const n="jetpack/membership-products",s=0,o=1,a=2,i="tier"},3722:(e,t,r)=>{"use strict";r.d(t,{T:()=>_,X:()=>N});var n=r(3924),s=r(60442),o=r(85985),a=r(1455),i=r.n(a),l=r(56427),c=r(47143),u=r(43656),d=r(86087),p=r(27723),h=r(23751),m=r(83883),g=r(24995),f=r(93115),b=r(82065),v=r(15788),k=r(21955),y=r(37906),x=r(42167),j=r(62521),w=r(10790);const __=p.__;function _({isOpen:e,onClose:t}){const[r,n]=(0,d.useState)(!1),[s,a]=(0,d.useState)(!1),[p,h]=(0,d.useState)(!1),g=(0,c.useSelect)(e=>e("core/editor").getCurrentPostId()),{__unstableSaveForPreview:f}=(0,c.useDispatch)(u.store),{tracks:b}=(0,o.st)();return e?(0,w.jsx)(l.Modal,{onRequestClose:()=>{t(),n(!1)},title:__("Send a test email","jetpack"),size:"medium",children:(0,w.jsxs)(l.__experimentalVStack,{children:[p&&(0,w.jsxs)("p",{children:[p," "]}),r?(0,w.jsxs)(l.__experimentalHStack,{alignment:"left",className:"jetpack-newsletter-test-email-modal__email-sent",children:[(0,w.jsx)(l.Icon,{icon:m.A,size:28}),(0,w.jsx)("p",{children:__("Email sent successfully","jetpack")})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{children:__("This will send you an email, allowing you to see exactly what your subscribers receive in their inboxes.","jetpack")}),(0,w.jsxs)(l.__experimentalGrid,{alignment:"bottom",columns:2,gap:2,templateColumns:"2fr auto;",children:[(0,w.jsx)(l.__experimentalInputControl,{value:window?.Jetpack_Editor_Initial_State?.tracksUserData?.email,disabled:!0,__next40pxDefaultSize:!0}),(0,w.jsxs)(l.Button,{variant:"primary",onClick:async()=>{b.recordEvent("jetpack_newsletter_test_email_send",{post_id:g}),a(!0),await f(),i()({path:"/wpcom/v2/send-email-preview/",method:"POST",data:{id:g}}).then(()=>{a(!1),n(!0)}).catch(e=>{a(!1),h(e.message||__("Whoops, we have encountered an error. Please try again later.","jetpack"))})},isBusy:s,__next40pxDefaultSize:!0,children:[__("Send","jetpack"),(0,w.jsx)(l.Icon,{icon:j.q})]})]})]})]})}):null}const C=[{name:"desktop",icon:f.A,label:__("Desktop","jetpack"),width:"100%",size:"lg"},{name:"tablet",icon:k.A,label:__("Tablet","jetpack"),width:"768px",size:"md"},{name:"mobile",icon:b.A,label:__("Mobile","jetpack"),width:"360px",size:"sm"}],A=({selectedDevice:e,setSelectedDevice:t})=>{const[r]=(0,s.A)("md"),[n]=(0,s.A)("sm"),{tracks:a}=(0,o.st)();if(n)return null;return(0,w.jsx)(l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,onChange:e=>{a.recordEvent("jetpack_newsletter_preview_device_change",{device:e}),t(e)},value:e,isBlock:!0,__next40pxDefaultSize:!0,children:(r?C.filter(e=>"lg"!==e.size):C).map(e=>(0,w.jsx)(l.__experimentalToggleGroupControlOptionIcon,{icon:e.icon,value:e.name,label:e.label},e.name))})},S=({selectedAccess:e,setSelectedAccess:t})=>{const[r]=(0,s.A)("sm"),n=(0,c.useSelect)(e=>e(u.store).getCurrentPostType(),[]),a=(0,x.I)(n),{tracks:i}=(0,o.st)();if(!(a===y.P2.paid_subscribers.key))return null;const d=[{label:y.P2.subscribers.label,value:y.P2.subscribers.key,icon:v.A},{label:y.P2.paid_subscribers.label,value:y.P2.paid_subscribers.key,icon:g.A}];return(0,w.jsx)(l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,onChange:e=>{i.recordEvent("jetpack_newsletter_preview_access_change",{access:e}),t(e)},value:e,isBlock:!0,isAdaptiveWidth:!0,__next40pxDefaultSize:!0,children:d.map(e=>r?(0,w.jsx)(l.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value):(0,w.jsx)(l.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value))})},E=({selectedAccess:e,setSelectedAccess:t,selectedDevice:r,setSelectedDevice:n})=>{const[o]=(0,s.A)("sm");return(0,w.jsxs)(l.__experimentalHStack,{alignment:"center",spacing:o?1:6,children:[(0,w.jsx)(A,{selectedDevice:r,setSelectedDevice:n}),(0,w.jsx)(S,{selectedAccess:e,setSelectedAccess:t})]})};function N({isOpen:e,onClose:t,postId:r}){const[s,a]=(0,d.useState)(!0),[c,u]=(0,d.useState)(!1),[p,m]=(0,d.useState)(!1),[g,f]=(0,d.useState)({}),[b,v]=(0,d.useState)(y.P2.subscribers.key),[k,x]=(0,d.useState)("desktop"),{tracks:j}=(0,o.st)(),_=(0,d.useCallback)(async e=>{if(r){a(!0),u(!1);try{const t=await i()({path:`/wpcom/v2/email-preview/?post_id=${r}&access=${e}`,method:"GET"});if(!t||!t.html)throw new Error("Invalid response format");f(r=>({...r,[e]:t.html}))}catch{j.recordEvent("jetpack_newsletter_preview_modal_error"),u(!0)}finally{a(!1)}}},[r,j]);(0,d.useEffect)(()=>{e&&!Object.hasOwn(g,b)?_(b):e&&a(!1)},[e,b,_,g]),(0,d.useEffect)(()=>{e&&j.recordEvent("jetpack_newsletter_preview_modal_open",{post_id:r})},[e,r,j]);const A=C.find(e=>e.name===k).width;return e&&(0,w.jsx)(l.Modal,{isFullScreen:!0,title:__("Preview email","jetpack"),onRequestClose:()=>{j.recordEvent("jetpack_newsletter_preview_modal_close",{post_id:r}),t(),f({})},headerActions:(0,w.jsx)(E,{selectedAccess:b,setSelectedAccess:v,selectedDevice:k,setSelectedDevice:x}),className:"jetpack-newsletter-preview-modal",children:(0,w.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 190px)",backgroundColor:c?"#fff":"#ddd",paddingTop:"desktop"!==k?"36px":"0",transition:"padding 0.3s ease-in-out"},children:[s&&(0,w.jsx)(l.Spinner,{}),c&&(0,w.jsxs)(l.__experimentalVStack,{alignment:"center","aria-live":"polite",role:"alert",style:{textAlign:"center"},children:[(0,w.jsx)(l.Icon,{icon:h.A}),(0,w.jsx)("h3",{children:__("Oops, something went wrong showing the preview…","jetpack")}),(0,w.jsx)(l.Button,{onClick:()=>{m(!0),_(b)},variant:"primary",children:__("Try again","jetpack")}),p&&(0,w.jsx)("p",{children:(0,d.createInterpolateElement)(__("If the issue persists, please
contact support
.","jetpack"),{supportLink:(0,w.jsx)(l.ExternalLink,{href:(0,n.A)("jetpack-support")})})})]}),!s&&!c&&(0,w.jsx)("iframe",{srcDoc:g?.[b],style:{width:A,maxWidth:"100%",height:"100%",border:"none",transition:"width 0.3s ease-in-out"},title:__("Email Preview","jetpack")})]})})}},3750:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86087),s=r(23117),o=r(91677),a=r(10790);const i=(0,n.memo)(({playerId:e,tracks:t,selectTrack:r,currentTrack:n,playerState:i,colors:l})=>(0,a.jsx)("ol",{className:"jetpack-podcast-player__tracks","aria-labelledby":`jetpack-podcast-player__tracklist-title--${e}`,"aria-describedby":`jetpack-podcast-player__tracklist-description--${e}`,children:t.map((e,t)=>{const c=n===t;return(0,a.jsx)(o.A,{index:t,track:e,selectTrack:r,isActive:c,isPlaying:c&&i===s.v8,isError:c&&i===s.pF,colors:l},e.id)})}))},3924:(e,t,r)=>{"use strict";function n(e,t={}){const r={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,r.url=encodeURIComponent(e)}else r.source=encodeURIComponent(e);for(const e in t)r[e]=encodeURIComponent(t[e]);!Object.keys(r).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(r.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),n&&(r.calypso_env=n);return"https://jetpack.com/redirect/?"+Object.keys(r).map(e=>e+"="+r[e]).join("&")}r.d(t,{A:()=>n})},3975:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,y:()=>n});const n={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function s(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},4167:(e,t,r)=>{"use strict";r.d(t,{G:()=>s,z:()=>o});var n=r(27723);const __=n.__,s=["seo-title","seo-meta-description","images-alt-text"],o={"seo-title":__("SEO title","jetpack"),"seo-meta-description":__("SEO description","jetpack"),"images-alt-text":__("Image alt text","jetpack")}},4187:(e,t,r)=>{"use strict";r.d(t,{Ck:()=>a,wf:()=>o});var n=r(43172);let s=null;const o=async()=>{let e=0;return s=new Promise(t=>{const r=()=>{const s=(0,n.qg)(document.cookie).tk_ai||null;"string"!=typeof s||""===s?99<=e?t(null):(e+=1,setTimeout(r,50)):t(s)};r()}),s},a=async()=>await s},4393:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(96865),s=r(47143),o=r(86087),a=r(10067),i=r.n(a),l=r(62402),c=r(64425),u=r(16597),d=r(32735);const p=i()("jetpack-ai-assistant:error"),h=({attributes:e,clientId:t,content:r,tracks:a,userPrompt:i,onSuggestionDone:h,onUnclearPrompt:m,onModeration:g,requireUpgrade:f,initialRequestingState:b,contentRef:v,blockRef:k})=>{const[y,x]=(0,o.useState)(!1),[j,w]=(0,o.useState)(""),{updateBlockAttributes:_}=(0,s.useDispatch)("core/block-editor"),{dequeueAiAssistantFeatureAsyncRequest:C,setAiAssistantFeatureRequireUpgrade:A}=(0,s.useDispatch)("wordpress-com/plans"),{snapToBottom:S,enableAutoScroll:E,disableAutoScroll:N}=(0,d.A)(k,v),T=(0,s.useSelect)(e=>e("core/editor").getEditedPostAttribute("title")),B=(0,s.useSelect)(e=>e("core/editor").getCurrentPostId()),P=(0,o.useRef)([]),I=(0,o.useRef)(void 0),{request:M,stopSuggestion:L,handleErrorQuotaExceededError:R,requestingState:D,error:F}=(0,n.o2)({onSuggestion:e=>{_(t,{content:e?.replaceAll(c.uV,"")}),S()},onDone:(e,r)=>{const n=e.replaceAll(c.uV,""),s={role:"assistant",content:n};P.current.push(I.current,s),P.current.length>20&&P.current.splice(0,P.current.length-20),_(t,{content:n,messages:P.current}),S(),N(),h?.(r)},onStop:()=>{S(),N(),h?.()},onError:e=>{switch(e?.code){case n.cT:x(!1);break;case n.ud:x(!1),g?.();break;case n.mA:case n.AZ:x(!0);break;case n.Or:x(!1),A(!0);break;case n.L9:m?.()}},onAllErrors:e=>{p(e)},initialRequestingState:b,askQuestionOptions:{postId:B,feature:"ai-assistant",functions:{}}}),O=["requesting","suggesting"].includes(D),z=async(s,o={})=>{if(C(),f)return R(),void x(!1);if(o={retryRequest:!1,tone:l.US,...o},O)return;x(!1);let d=j;if(a.recordEvent("jetpack_ai_chat_completion",{post_id:B}),P.current=[...e.messages],I.current={},o.retryRequest)I.current=d[d.length-1];else{const a=e?.isLayoutBuldingModeEnable?(0,u.rJ)(t):(0,u.aB)();d=(0,c.jf)({generatedContent:r,allPostContent:a,postContentAbove:(0,u.b$)(t),currentPostTitle:T,options:o,userPrompt:o?.userPrompt||i,type:s,isGeneratingTitle:e.promptType===n.vE}),I.current=d.pop(),d=[...d,...P.current],d.push(I.current),w(d),e.promptType!==n.vE&&_(t,{promptType:s})}try{E(),await M(d)}catch(e){p(e),x(!0),N()}};return{setShowRetry:x,showRetry:y,postTitle:T,contentBefore:(0,u.b$)(t),wholeContent:(0,u.aB)(),requestingState:D,error:F,getSuggestionFromOpenAI:z,stopSuggestion:L,retryRequest:()=>z("",{retryRequest:!0})}}},4416:(e,t,r)=>{"use strict";var n=r(56427),s=r(10790);n.SVG,n.Path,n.Rect},4567:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(3975),s=r(18360);function o(e,t,r={}){const o=(0,n.i)(t);if(!o||isNaN(e))return null;const{decimal:a,grouping:i,precision:l,symbol:c}={...o,...r},u=e<0?"-":"";let d=(0,s.A)(Math.abs(e),l,a,i);return r.stripZeros&&(d=function(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}(d,a)),`${u}${c}${d}`}},4595:(e,t,r)=>{"use strict";var n=r(94375),s=r(86525),o=r(40118),a=r(10790);(0,n.M)(s,{edit:o.A,save:()=>(0,a.jsx)("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"})})},4647:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(96865);const s=e=>{const t=(0,n._G)().filter(e=>"core/image"===e.name);let r=0;return e=(e=e.replace(/
]*>.*?<\/figcaption>/g,"")).replace(//gs,()=>{const e=t[r];return r++,e?`
`:""})}},4718:(e,t,r)=>{"use strict";r.d(t,{U:()=>c,W:()=>u});var n=r(94715),s=r(27723),o=r(27375),a=r(93368),i=r(35013),l=r(10790);const __=s.__,c="premium-content/buttons",u={apiVersion:3,title:__("Premium Content buttons","jetpack"),description:__("Prompt Premium Content visitors to take action with a group of button-style links.","jetpack"),category:"grow",icon:o.A,supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},keywords:[__("link","jetpack")],edit:a.A,save:i.A,usesContext:["premium-content/planIds","premium-content/isPreview"],deprecated:[{attributes:{},supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},save:()=>(0,l.jsx)("div",{className:"wp-block-buttons",children:(0,l.jsx)(n.InnerBlocks.Content,{})})}]}},4867:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(10067),s=r.n(n),o=r(43984),a=r(74977),i=r(38344);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
.75){r.sourceLanguage=e.detectedLanguage;break}l("languageOpts",r);const s=await self.Translator.availability(r);if(l("translationAvailability",s),"unavailable"===s)return l("Translator is unavailable"),!1;return new i.A({content:t.content,promptType:o.Gm,options:r})}if(r.startsWith("ai-content-lens")){if(!("Summarizer"in self))return l("Summarizer is not available"),!1;if(t.language&&"en (English)"!==t.language)return l("Summary is not English"),!1;l("awaiting detector detect");const e=await u.detect(t.content);for(const t of e)if(t.confidence>.75&&"en"!==t.detectedLanguage)return l("Confidence for non-English content"),!1;const r={tone:n,wordCount:s};l("summaryOpts",r);const a={content:t.content,promptType:o.UA,options:r};return l("chromeAiEventSourceOpts",a),new i.A(a)}return!1}},5146:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(56427),s=r(27723),o=r(67858),a=r(84605),i=r(10790);const __=s.__,l="videopress/video-chapters",c=!!window?.Jetpack_Editor_Initial_State?.available_blocks[l],u=31;function d({isRequestingVideoItem:e}){const{attributes:t,setAttributes:r}=(0,a.A)();if(!c)return null;const{title:s,description:d}=t,p=(0,o.m)(l),h=d?.length?d.split("\n").map(e=>Math.ceil(e.length/u)||1).reduce((e,t)=>e+t,0):4,m=Math.min(12,Math.max(h,4));return(0,i.jsxs)(n.PanelBody,{title:__("Details","jetpack"),className:p?"is-beta":"",children:[(0,i.jsx)(n.TextControl,{label:__("Title","jetpack"),value:s,placeholder:__("Video title","jetpack"),onChange:e=>{r({title:e})},disabled:e,__next40pxDefaultSize:!0}),(0,i.jsx)(n.TextareaControl,{label:__("Description","jetpack"),value:d,placeholder:__("Video description","jetpack"),onChange:e=>{r({description:e})},disabled:e,rows:m})]})}},5163:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(57462),s=r(10790);const o={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:({attributes:e,className:t})=>{const{url:r}=e;return(0,n.C)(r)?(0,s.jsx)("div",{className:t,children:(0,s.jsx)("a",{"data-pin-do":(0,n.C)(r),href:r})}):null}}},5236:(e,t,r)=>{"use strict";r.d(t,{S:()=>a,r:()=>o});var n=r(70263);function s(e,t){const r=(t-e.reduce((e,t)=>e+t,0))/e.length;return e.map(e=>e+r)}function o(e,t){!function(e,[t,r],o){const a=1/t*(o-n.hE*(e.childElementCount-1)-r);!function(e,{rawHeight:t,rowWidth:r}){const o=i(e),a=o.map(e=>(t-n.hE*(e.childElementCount-1))*c(e)[0]),d=s(a,r);o.forEach((e,r)=>{const o=a[r],i=d[r];!function(e,{colHeight:t,width:r,rawWidth:n}){const o=l(e).map(e=>n/u(e)),a=s(o,t);Array.from(e.children).forEach((e,t)=>{const n=a[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)})}(e,{colHeight:t-n.hE*(e.childElementCount-1),width:i,rawWidth:o})})}(e,{rawHeight:a,rowWidth:o-n.hE*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce(([e,t],[r,n])=>[e+r,t+n],[0,0]);return t}(e),t)}function a(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),r=t.length,n=1/t.map(u).reduce((e,t)=>e+1/t,0);return[n,n*r||1]}function u(e){const t=parseInt(e.dataset.width,10),r=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&r&&!Number.isNaN(r)?t/r:1}},5380:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});const n=({width:e})=>{const t={width:e};return e?.includes("%")&&(t.width=`calc(${e} - var(--jetpack-payment-buttons-gap, 0) * ${(100-e.replace("%",""))/100})`),t}},5383:(e,t,r)=>{"use strict";r.d(t,{U:()=>c,W:()=>u});var n=r(27723),s=r(97969),o=r(28310),a=r(55903),i=r(36270),l=r(85154);const __=n.__,c="button",u={apiVersion:3,title:__("Button","jetpack"),icon:i.A,category:(0,s.A)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"],typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}}},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],selectors:{border:".wp-block-jetpack-button .wp-block-button__link"},attributes:o.A,edit:a.A,save:l.A,usesContext:["jetpack/parentBlockWidth"]}},5389:(e,t,r)=>{"use strict";r.d(t,{$H:()=>b,FN:()=>m,I3:()=>h,LR:()=>f,PC:()=>p,ST:()=>d,bY:()=>v,mA:()=>y,wB:()=>k,y7:()=>g});var n=r(39384),s=r(47143),o=r(86087),a=r(27723),i=r(66087),l=r(34377),c=r(42470),u=r(27534);const __=a.__,d=()=>(0,o.useContext)(u.C),p=e=>{const[t,r]=(0,o.useState)(!1),[a,i]=(0,o.useState)(!1),[u,d]=(0,o.useState)(null),[p,h]=(0,o.useState)(null),[m,g]=(0,o.useState)(null);return(0,o.useEffect)(()=>{const t=(0,s.select)(n.CONNECTION_STORE_ID).getBlogId(),{currentDoc:o,currentWindow:a}=(0,l.sG)(e.current);if(e.current){h(a),g(o);const e=__("Failed to retrieve a Mapkit API token. Please try refreshing.","jetpack");a.mapkit?(d(a.mapkit),(0,c.IR)(a.mapkit,t,a).then(()=>{r(!0)},()=>{i(e)})):(0,c.Yc)(o,a).then(n=>{d(n),(0,c.IR)(n,t,a).then(()=>{r(!0)},()=>{i(e)})})}},[e]),{loaded:t,error:a,mapkit:u,currentDoc:m,currentWindow:p}},h=(e,t,r)=>{const[n,s]=(0,o.useState)(null);return(0,o.useEffect)(()=>{e&&t&&s(new e.Map(r.current,{showsMapTypeControl:!1}))},[e,t,r]),{map:n}},m=(e,t)=>{const{mapkit:r,map:n}=d(),s=(0,o.useRef)(e),a=(0,o.useRef)(t);(0,o.useEffect)(()=>{if(!r||!n||!s.current)return;const e=s.current?.lat??s.current?.latitude,t=s.current?.lng??s.current?.longitude;"number"==typeof e&&"number"==typeof t&&(n.center=new r.Coordinate(e,t))},[r,n,s]),(0,o.useEffect)(()=>{if(!r||!n)return;const e=()=>{if(n.center){const{latitude:e,longitude:t}=n.center;a.current({lat:e,lng:t})}};return n.addEventListener("region-change-end",(0,i.debounce)(e,1e3)),()=>{n.removeEventListener("region-change-end",e)}},[r,n,a])},g=e=>{const{mapkit:t,map:r}=d();(0,o.useEffect)(()=>{t&&r&&(r.mapType=(()=>{switch(e){case"satellite":return t.Map.MapTypes.Satellite;case"black_and_white":return t.Map.MapTypes.MutedStandard;case"hybrid":return t.Map.MapTypes.Hybrid;default:return t.Map.MapTypes.Standard}})())},[t,r,e])},f=(e,t)=>{const{mapkit:r,map:n,points:s}=d();(0,o.useEffect)(()=>{if(r&&n)if(s&&s.length<=1){const t=(0,c.c6)(13,n.center.latitude);if(e){const t=(0,c.c6)(e,n.center.latitude);t!==n.cameraDistance&&(n.cameraDistance=t)}else t!==n.cameraDistance&&(n.cameraDistance=t);n.isZoomEnabled=!0,n.isScrollEnabled=!0}else n.region=(0,c.nQ)(r,s),n.isZoomEnabled=!1,n.isScrollEnabled=!1},[r,n,e,s]),(0,o.useEffect)(()=>{const e=()=>{t((0,c.Sm)(n.cameraDistance,n.center.latitude))};return n.addEventListener("zoom-end",e),()=>{n.removeEventListener("zoom-end",e)}},[r,n,t])},b=(e,t,r=null,n=null)=>{const{mapkit:s,map:a,loaded:i,currentWindow:l}=d(),c=(0,o.useRef)(r),u=(0,o.useRef)(n);(0,o.useEffect)(()=>{if(i){a.annotations.filter(t=>!e.find(e=>e.id===t.data.id)).forEach(e=>a.removeAnnotation(e));const r=e.map(e=>{const r=a.annotations.find(t=>t.data.id===e.id);if(r)return r.title=e.title,r.color=t,r;const n=new s.MarkerAnnotation(new s.Coordinate(e.coordinates.latitude,e.coordinates.longitude),{color:t,data:{id:e.id}});return n.calloutEnabled=!0,n.title=e.title,c.current&&(n.callout={calloutElementForAnnotation:c.current}),u.current&&n.addEventListener("select",()=>u.current(e,a)),n});a.annotations.length!==r.length&&a.showItems(new l.Array(...r))}},[e,i,a,s,t,c,u,l])},v=e=>{const{map:t,loaded:r}=d(),n=(0,o.useRef)(e);(0,o.useEffect)(()=>{r&&n.current(t)},[r,t,n])},k=e=>{const{map:t,previousCenter:r,loaded:n}=d(),s=(0,o.useRef)(e);(0,o.useEffect)(()=>{n&&t.addEventListener("single-tap",()=>{s.current(r)})},[n,t,r,s])},y=(e,t)=>{const{mapkit:r,map:n}=d();(0,o.useEffect)(()=>{if(r&&n&&e?.length){(new r.Geocoder).lookup(e,(e,r)=>{if(r?.results?.length){const e=r.results[0],n=e.formattedAddress,s={placeTitle:n,title:n,caption:n,coordinates:{longitude:e.coordinate.longitude,latitude:e.coordinate.latitude},id:`${n} ${Number(e.coordinate.latitude).toFixed(2)} ${Number(e.coordinate.longitude).toFixed(2)}`};t.current([s])}})}},[r,n,e,t])}},5525:(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(70263),l=r(69291),c=r(58070),u=r(45726),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()}},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":"
","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","giphyUrl":"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc","paddingTop":"100%","searchText":"WordPress"}}}')},5573:e=>{"use strict";e.exports=window.wp.primitives},5664:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(56427),s=r(27723),o=r(53189),a=r(10790);const __=s.__,i=(0,o.m)("jetpack_seo_noindex")(({metaValue:e,updateMetaValue:t})=>(0,a.jsx)(n.ToggleControl,{label:__("Hide page from search engines","jetpack"),help:__("If selected, a 'noindex' tag will help instruct search engines to not include this page in search results. This page will also be removed from the Jetpack sitemap.","jetpack"),checked:!!e,onChange:e=>{t(e)},__nextHasNoMarginBottom:!0}))},5765:(e,t,r)=>{"use strict";r(98490)},5840:(e,t,r)=>{"use strict";function n(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}r.d(t,{A:()=>n})},5873:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(94715),s=r(74997),o=r(56427),a=r(47143),i=r(86087),l=r(27723),c=r(48558),u=r(13022),d=r(66087),p=r(10790);const __=l.__,h=({attributes:e,styleOption:t,viewportWidth:r,blockName:o})=>{const a=(0,s.getBlockType)(o);return(0,p.jsx)(n.BlockPreview,{viewportWidth:r,blocks:(i=a.example?(0,s.getBlockFromExample)(o,{attributes:{...a.example.attributes,style:t.value},innerBlocks:a.example.innerBlocks}):(0,s.createBlock)(o,e),{...i,attributes:{...i.attributes,__isBlockPreview:!0}})});var i},m=i.memo?(0,i.memo)(h,(e,t)=>(0,d.isEqual)(e,t)):h;function g({attributes:e,clientId:t,styleOptions:r,onSelectStyle:s,activeStyle:i,viewportWidth:l,title:d}){const h=(0,a.useSelect)(e=>{const{getBlock:r}=e("core/block-editor");return r(t)});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n.BlockControls,{children:(0,p.jsx)(o.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:r.map(e=>({title:e.label,isActive:e.value===i,onClick:()=>s({style:e.value})})),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})}),(0,p.jsx)(n.InspectorControls,{children:(0,p.jsx)(o.PanelBody,{title:d||__("Styles","jetpack"),children:(0,p.jsx)("div",{className:"block-editor-block-styles jetpack-block-styles-selector",children:r.map(t=>{const r={...e,style:t.value};return(0,p.jsxs)("div",{className:(0,u.A)("block-editor-block-styles__item",{"is-active":t.value===i}),onClick:()=>{s({style:t.value})},onKeyDown:e=>{c.ENTER!==e.keyCode&&c.SPACE!==e.keyCode||(e.preventDefault(),s({style:t.value}))},role:"button",tabIndex:"0","aria-label":t.label,children:[(0,p.jsx)("div",{className:"block-editor-block-styles__item-preview",children:t.preview?t.preview:h&&(0,p.jsx)(m,{blockName:h.name,styleOption:t,attributes:r,viewportWidth:l})}),(0,p.jsx)("div",{className:"block-editor-block-styles__item-label",children:t.label})]},t.value)})})})})]})}},6019:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(56427),s=r(78867),o=r(10790);const a=({variant:e="error"})=>{const t=(0,s.A)();return"muted"===e?(0,o.jsx)("span",{className:"jetpack-ai-fair-usage-notice-muted-variant",children:t}):"error"===e?(0,o.jsx)(n.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice",children:t}):null}},6133:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(86087),s=r(10790);function o({attributes:e}){const{showSubscribersTotal:t,submitButtonClasses:r,customBackgroundButtonColor:o,customTextButtonColor:a,submitButtonText:i}=e;return(0,s.jsx)(n.RawHTML,{children:`[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="${o}" custom_text_button_color="${a}" submit_button_text="${i}" submit_button_classes="${r}" show_subscribers_total="${t}" ]`})}},6149:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(85985),s=r(56427),o=r(27723),a=r(73800),i=r(10790);const __=o.__,_x=o._x,l=(0,n.sh)(a);function c({className:e,onSubmit:t,noticeUI:r,url:n,setUrl:o}){return(0,i.jsx)("div",{className:e,children:(0,i.jsx)(s.Placeholder,{label:__("Pinterest","jetpack"),icon:l,notices:r,children:(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),t()},children:[(0,i.jsx)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>o(e.target.value)}),(0,i.jsx)(s.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})]})})})}},6199:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86087),s=r(57500),o=r(14561),a=r(10790);const i=(0,n.forwardRef)((e,t)=>{if("mapkit"===e.mapProvider){const r={...e,ref:null};return(0,a.jsx)(o.A,{...r,ref:t})}return(0,a.jsx)(s.A,{...e,ref:t})})},6363:(e,t,r)=>{"use strict";function n(e){return{type:"SET_BUSY",isBusy:e}}function s(e){return{type:"SET_TITLE_BUSY",isBusy:e}}function o(e){return{type:"SET_DESCRIPTION_BUSY",isBusy:e}}function a(e){return{type:"SET_IS_TOGGLING_AUTO_ENHANCE",isToggling:e}}function i(e){return{type:"SET_IS_AUTO_ENHANCE_ENABLED",isEnabled:e}}function l(e,t){return{type:"SET_IMAGE_BUSY",clientId:e,isBusy:t}}function c(e,t){return{type:"SET_IMAGE_FAILED",clientId:e,failed:t}}function u(e,t){return{type:"SET_FEATURE_ENABLED",feature:e,enabled:t}}r.r(t),r.d(t,{setBusy:()=>n,setDescriptionBusy:()=>o,setFeatureEnabled:()=>u,setImageBusy:()=>l,setImageFailed:()=>c,setIsAutoEnhanceEnabled:()=>i,setIsTogglingAutoEnhance:()=>a,setTitleBusy:()=>s})},6454:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(86087),s=r(27723),o=r(13022),a=r(41314),i=r(7957),l=r(52537),c=r(62579),u=r(58711),d=r(10790);const __=s.__;class p extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:a,linkTo:c,layoutStyle:u,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,s.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,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]})}}},6526:(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})})},6650:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(85985),s=r(94715),o=r(29491),a=r(86087),i=r(333),l=r(95104),c=r(10790);const u=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r}=(0,s.useBlockEditContext)(),o=(0,n.GT)(r);if(!o?.mediaPlaceholder||!(0,n.W4)(r))return(0,c.jsx)(e,{...t});const{fileType:u}=o,{onError:d}=t,{onBannerVisibilityChange:p}=(0,a.useContext)(l.j),h=(0,a.useCallback)(e=>p(e?.length&&(0,i.wc)(e[0],u)),[u,p]),m=(0,a.useCallback)(e=>{const t=e?.[0]?.props?.children;return(0,i.wc)(t,u)?h([t]):d(e)},[h,u,d]);return(0,c.jsx)("div",{className:"paid-block-media-placeholder",children:(0,c.jsx)(e,{...t,onFilesPreUpload:h,onError:m})})},"withMediaPlaceholderUpgradable")},6754:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56427),s=r(13022),o=r(10790);function a({state:e}){return(0,o.jsx)("div",{className:(0,s.A)("jetpack-ai-status-indicator__icon-wrapper",{[`is-${e}`]:!0}),children:(0,o.jsx)(n.Spinner,{})})}},6852:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/map","title":"Map","description":"Add an interactive map showing one or more locations.","keywords":["maps","location","navigation"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"
","supports":{"defaultStylePicker":false,"html":false},"attributes":{"align":{"type":"string"},"points":{"type":"array","default":[]},"address":{"type":"string","default":""},"mapDetails":{"type":"boolean","default":true},"zoom":{"type":"integer","default":13},"mapCenter":{"type":"object","default":{"longitude":-122.41941550000001,"latitude":37.7749295}},"markerColor":{"type":"string","default":"red"},"scrollToZoom":{"type":"boolean","default":false},"mapHeight":{"type":"integer"},"showFullscreenButton":{"type":"boolean","default":true}},"example":{}}')},7103:(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-logged-out-view entry-content"});return(0,s.jsx)("div",{...e,children:(0,s.jsx)(n.InnerBlocks.Content,{})})}},7105:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(58105);function s(e,t){if(!e.md.options.html)return!1;const r=e.posMax,s=e.pos;if(60!==e.src.charCodeAt(s)||s+2>=r)return!1;const o=e.src.charCodeAt(s+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const a=e.src.slice(s).match(n.l);if(!a)return!1;if(!t){const t=e.push("html_inline","",0);t.content=a[0],i=t.content,/^
\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=a[0].length,!0}},7237:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(30724);function s(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function o(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===o(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const l={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const c={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(e){const t=e.re=(0,n.A)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");const l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const r=e.__schemas__[t];if(null===r)return;const n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?a(r.validate)?n.validate=r.validate:c(t,r):n.validate=function(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(a(r.normalize)?n.normalize=r.normalize:r.normalize?c(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?c(t,r):l.push(t)}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const u=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){const r=e.__index__,n=e.__last_index__,s=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=s,this.text=s,this.url=s}function h(e,t){const r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function m(e,t){if(!(this instanceof m))return new m(e,t);var r;t||(r=e,Object.keys(r||{}).reduce(function(e,t){return e||l.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=s({},l,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=s({},c,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},d(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},m.prototype.set=function(e){return this.__opts__=s(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,r,n,s,o,a,i,l,c;if(this.re.schema_test.test(e))for(i=this.re.schema_search,i.lastIndex=0;null!==(t=i.exec(e));)if(s=this.testSchemaAt(e,t[2],i.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l
=0&&null!==(n=e.match(this.re.email_fuzzy))&&(o=n.index+n[1].length,a=n.index+n[0].length,(this.__index__<0||o
this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},m.prototype.match=function(e){const t=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(h(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)t.push(h(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},m.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,h(this,0)):null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){};const g=m},7326:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const 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:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})})},7345:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,j:()=>s});var n=r(83112);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)}}},7528:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(29491),s=r(86087);function o(){const[e,t]=(0,s.useState)(),r=(0,n.useRefEffect)(r=>{const n=()=>{const n=getComputedStyle(r),s=n.backgroundColor,o=n.color;s===e?.fallbackBackgroundColor&&o===e?.fallbackTextColor||t({fallbackBackgroundColor:s,fallbackTextColor:o})},s=new MutationObserver(n);return s.observe(r,{attributeFilter:["style","class"]}),n(),()=>{s.disconnect()}},[]);return[e,r]}},7598:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const 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"})})},7651:(e,t,r)=>{"use strict";r.d(t,{UU:()=>u,W0:()=>h,gp:()=>p});var n=r(85985),s=r(27723),o=r(43450),a=r(13091),i=r(67571),l=r(61642),c=r(33582);const __=s.__,_x=s._x,u="whatsapp-button",d=__("WhatsApp Button","jetpack"),p="https://api.whatsapp.com/send?phone=",h=(__("Chat on WhatsApp","jetpack"),__("Hi, I got your WhatsApp information from your website.","jetpack"),{apiVersion:3,title:d,description:__("Let your visitors send you a message on WhatsApp with the tap of a button.","jetpack"),icon:{src:l.A,foreground:(0,n.VA)()},category:"grow",parent:["jetpack/send-a-message"],keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1,reusable:!1,align:["left","center","right"]},attributes:o.A,edit:i.A,save:c.A,example:{attributes:{countryCode:"1",phoneNumber:"555-123-4567"}},deprecated:[a.A]})},7675:(e,t,r)=>{"use strict";r.d(t,{y:()=>l});var n=r(76416),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s
{const b=Object.assign({},l);let v;function k(){v.abort(),document.hidden||C()}b.accept||(b.accept=o),m||document.addEventListener("visibilitychange",k);let y=a,x=0;function j(){document.removeEventListener("visibilitychange",k),window.clearTimeout(x),v.abort()}null==r||r.addEventListener("abort",()=>{j(),t()});const w=null!=g?g:window.fetch,_=null!=u?u:c;async function C(){var r;v=new AbortController;try{const r=await w(e,Object.assign(Object.assign({},f),{headers:b,signal:v.signal}));await _(r),await(0,n.q5)(r.body,(0,n.iv)((0,n.VL)(e=>{e?b[i]=e:delete b[i]},e=>{y=e},d))),null==p||p(),j(),t()}catch(e){if(!v.signal.aborted)try{const t=null!==(r=null==h?void 0:h(e))&&void 0!==r?r:y;window.clearTimeout(x),x=window.setTimeout(C,t)}catch(e){j(),s(e)}}}C()})}function c(e){const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(o)))throw new Error(`Expected content-type to be ${o}, Actual: ${t}`)}},7804:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(86087),s=r(27723),o=r(10067),a=r.n(o),i=r(57745);const __=s.__,l=a()("jetpack-ai-client:use-audio-transcription"),c=e=>{if("string"==typeof e)return e;if("code"in e)switch(e.code){case"error_quota_exceeded":return __("You exceeded your current quota, please check your plan details.","jetpack");case"jetpack_ai_missing_audio_param":return __("The audio_file is required to perform a transcription.","jetpack");case"jetpack_ai_service_unavailable":return __("The Jetpack AI service is temporarily unavailable.","jetpack");case"file_size_not_supported":return __("The provided audio file is too big.","jetpack");case"file_type_not_supported":return __("The provided audio file type is not supported.","jetpack");case"jetpack_ai_error":return __("There was an error processing the transcription request.","jetpack");default:return e.message}return"message"in e?e.message:__("There was an error processing the transcription request.","jetpack")};function u({feature:e,onReady:t,onError:r}){const[s,o]=(0,n.useState)(""),[a,u]=(0,n.useState)(""),[d,p]=(0,n.useState)(!1),h=(0,n.useRef)(null);return{transcriptionResult:s,isTranscribingAudio:d,transcriptionError:a,transcribeAudio:(0,n.useCallback)(n=>{l("Transcribing audio"),o(""),u(""),p(!0);const s=new AbortController;h.current=s,(0,i.A)(n,e,s.signal).then(e=>{o(e),t?.(e)}).catch(e=>{s.signal.aborted||(u(e.message),r?.(c(e)))}).finally(()=>p(!1))},[i.A,o,u,p]),cancelTranscription:(0,n.useCallback)(()=>{h.current?.abort(),o(""),u(""),p(!1)},[h,o,u,p])}}},7957:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(63162),s=r(13022),o=r(10790);function a(e){const{alt:t,imageFilter:r,height:a,id:i,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,n.isBlobURL)(u))return null;let h;switch(c){case"media":h=u;break;case"attachment":h=l}const m=(0,o.jsx)("img",{alt:t,"data-height":a,"data-id":i,"data-link":l,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,o.jsx)("figure",{className:(0,s.A)("tiled-gallery__item",{[`filter__${r}`]:!!r}),children:h?(0,o.jsx)("a",{href:h,children:m}):m})}},8031:(e,t,r)=>{"use strict";r.d(t,{k:()=>c});var n=r(97999),s=r(85985),o=r(56427),a=r(27723),i=r(35075),l=r(10790);const __=a.__,c=({className:e,isLoading:t,changeStatus:r})=>{const a=(0,n.isWoASite)()?"https://wordpress.com/support/stats/":"https://jetpack.com/support/jetpack-stats/";return(0,l.jsx)("div",{className:e,children:(0,l.jsxs)(o.Placeholder,{icon:(0,s.sh)(i),instructions:__("You'll need to activate the Stats module to use this block.","jetpack"),label:i.title,children:[(0,l.jsx)(o.Button,{disabled:t,isBusy:t,onClick:()=>r(!0),variant:"secondary",children:t?__("Activating Stats","jetpack"):__("Activate Stats","jetpack",0)}),(0,l.jsx)("div",{className:"components-placeholder__learn-more",children:(0,l.jsx)(o.ExternalLink,{href:a,children:__("Learn more about the Stats module.","jetpack")})})]})})}},8079:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},8100:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(79018),s=r(10790);const o={attributes:n.attributes,migrate:e=>{const{style:t,className:r}=e,n="standard"===t?"":`is-style-${t}`;return{...e,className:r?`${r} ${n}`:n}},isEligible:({style:e,className:t})=>!(!e||"standard"===e)&&(!t||-1===t.indexOf("is-style-")),save:({attributes:{rid:e}})=>(0,s.jsx)("div",{children:e.map(e=>(0,s.jsx)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,children:`https://www.opentable.com/restref/client/?rid=${e}`},e))})}},8206:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/rating-star","title":"Star Rating","description":"Rate movies, books, songs, recipes — anything you can put a number on.","keywords":["star","rating","review"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"
","supports":{"html":false},"styles":[{"name":"filled","label":"Filled","isDefault":true},{"name":"outlined","label":"Outlined"}],"attributes":{"rating":{"type":"number","default":1},"maxRating":{"type":"number","default":5},"color":{"type":"string"},"ratingStyle":{"type":"string","default":"star"},"className":{"type":"string"},"align":{"type":"string","default":"left"}},"example":{}}')},8393:(e,t,r)=>{"use strict";var n=r(94375),s=r(1629),o=r(32908),a=r(41825);(0,n.M)(s,{edit:o.A,save:a.A})},8543:(e,t,r)=>{"use strict";r.d(t,{U:()=>p,W:()=>h});var n=r(82201),s=r(56427),o=r(3582),a=r(47143),i=r(43656),l=r(27723),c=r(90062),u=r(95668),d=r(10790);const __=l.__,p="post-publish-qr-post-panel",h={render:function(){const e={name:"post-publish-qr-post-panel",title:__("QR Code","jetpack"),className:"post-publish-qr-post-panel",initialOpen:!1},{isViewable:t,isPostPublished:r}=(0,a.useSelect)(e=>{const t=e(i.store).getCurrentPostType(),r=e(o.store).getPostType(t);return{isViewable:r?.viewable,isPostPublished:e(i.store).isCurrentPostPublished()}},[]);if(!t)return null;function l(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.PanelRow,{children:(0,d.jsx)("p",{children:__("Take advantage of the QR code to open the post from different devices.","jetpack")})}),(0,d.jsx)(u.A,{})]})}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.PluginPostPublishPanel,{...e,icon:(0,d.jsx)(n.jt,{}),children:(0,d.jsx)(l,{})}),r&&(0,d.jsx)(c.A,{children:(0,d.jsx)(s.PanelBody,{...e,children:(0,d.jsx)(l,{})})})]})}}},8589:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>b,S$:()=>g,aj:()=>f,rp:()=>p});var n=r(47143),s=r(27723),o=r(10067),a=r.n(o),i=r(16073),l=r.n(i),c=r(28074),u=r(59096);const __=s.__,d=a()("jetpack-ai-breve:spelling-mistakes"),p={name:"spelling-mistakes",title:__("Spelling mistakes","jetpack"),tagName:"span",className:"jetpack-ai-breve__has-proofread-highlight--spelling-mistakes",defaultEnabled:!0},h={},m=({language:e="en"}={})=>{if(h[e])return h[e];const t=(0,c.A)({feature:p.name,language:e});if(!t)return null;const{affix:r,dictionary:n}=t,s=l()(r,n);return Array.from(new Set(JSON.parse(localStorage.getItem(`jetpack-ai-breve-spelling-exceptions-${e}`))||[])).forEach(e=>s.add(e)),s.personal(u.A),h[e]=s,h[e]},g=(e,{language:t="en"}={})=>{const r=m({language:t}),{reloadDictionary:s}=(0,n.dispatch)("jetpack/ai-breve");if(r){try{const r=new Set(JSON.parse(localStorage.getItem(`jetpack-ai-breve-spelling-exceptions-${t}`))||[]);r.add(e),localStorage.setItem(`jetpack-ai-breve-spelling-exceptions-${t}`,JSON.stringify(Array.from(r)))}catch(e){return void d("Failed to add text to the dictionary",e)}delete h[t],s(),d("Added text to the dictionary",e)}},f=(e,{language:t="en"}={})=>{const r=m({language:t});if(!r||!e)return[];if("wordpress"===e.toLocaleLowerCase())return["WordPress"];return r.suggest(e)};function b(e){const t=[],r=m();if(!r)return t;const n=new RegExp(/[@#+$/]{0,1}[\p{L}\p{M}\p{N}'’-]+(?:\/[\p{L}\p{M}\p{N}'’-]+)*/gu);return Array.from(e.matchAll(n)).forEach(e=>{const n=e[0],s=e.index;if(-1!==["@","#","+","$","/"].indexOf(n[0]))return;if(!isNaN(Number(n)))return;n.split(/[-/]/).forEach(e=>{if(e=e.replace(/^'+|['’]+$/g,""),!r.correct(e)){const r=s+n.indexOf(e);t.push({text:e,startIndex:r,endIndex:r+e.length})}})}),t}},8663:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(47143),s=r(52998);class o extends s.mt{jetpackFormBlockName="jetpack/contact-form";constructor(e){super(e,[]),this.behavior=this.handleBehavior,this.isChildBlock=!0,this.hideOnBlockFocus=!1}handleBehavior=({context:e})=>{const t=(0,n.dispatch)("core/block-editor"),{getBlockParentsByBlockName:r}=(0,n.select)("core/block-editor"),s=r(this.clientId,this.jetpackFormBlockName)?.[0];t.selectBlock(s),e?.[this.jetpackFormBlockName]?.handleAskAiAssistant?.()}}},8743:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const o=(0,s.jsxs)(n.SVG,{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)(n.G,{children:[(0,s.jsx)(n.Rect,{fill:"none",height:"24",width:"24"}),(0,s.jsx)(n.Rect,{fill:"none",height:"24",width:"24"}),(0,s.jsx)(n.Rect,{fill:"none",height:"24",width:"24"})]}),(0,s.jsxs)(n.G,{children:[(0,s.jsx)(n.G,{}),(0,s.jsx)(n.G,{children:(0,s.jsx)(n.G,{transform:"matrix(1 0 0 1 144 120)",children:(0,s.jsx)(n.Path,{d:"M-122-114h-5v8.18c-0.31-0.11-0.65-0.18-1-0.18c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3v-9h3V-114 L-122-114z M-129-114h-12v2h12V-114L-129-114z M-129-110h-12v2h12V-110L-129-110z M-133-106h-8v2h8V-106L-133-106z M-129-103 c0-0.55,0.45-1,1-1c0.55,0,1,0.45,1,1s-0.45,1-1,1C-128.55-102-129-102.45-129-103z"})})})]})]})},8746:(e,t,r)=>{"use strict";r.d(t,{Bs:()=>a,Uc:()=>s,hc:()=>o,rG:()=>i});var n=r(94715);const s=!!n.__experimentalUseGradient,o=5,a=50,i=0},8859:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function s(e,t,r,s){let o,a=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(s)i.str=s.str,i.marker=s.marker;else{if(a>=r)return i;let n=e.charCodeAt(a);if(34!==n&&39!==n&&40!==n)return i;t++,a++,40===n&&(n=41),i.marker=n}for(;a
{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/business-hours","title":"Business Hours","description":"Display opening hours for your business.","keywords":["opening hours","closing time","schedule","working day"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"
","supports":{"html":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"days":{"type":"array","default":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}},"example":{"attributes":{"days":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}}}')},9061:(e,t,r)=>{"use strict";r.d(t,{C:()=>n.C,x:()=>n.x});var n=r(9520)},9075:(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])}},9190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>s,save:()=>n.A,support:()=>o});var n=r(39805);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r(70263).T$}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},o={align:["center","wide","full"],customClassName:!1,html:!1}},9208:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(27723);const __=n.__,s={subscribePlaceholder:{type:"string",default:__("Enter your email address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Sign Up","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"number"},customFontSize:{type:"number"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},9216:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86087),s=r(16815);class o extends n.Component{componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=(0,s.BY)(e),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,n.createPortal)(this.props.children,this.el):null}closeClick=()=>{this.props.unsetActiveMarker()};openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}o.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null};const a=o},9276:(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})}},9354:(e,t,r)=>{"use strict";r.d(t,{U:()=>d,W:()=>p});var n=r(3924),s=r(85985),o=r(56427),a=r(47143),i=r(43656),l=r(27723),c=r(24995),u=r(10790);const __=l.__,d="payments",p={render:()=>{const{tracks:e}=(0,s.st)();if("page"!==(0,a.useSelect)(e=>e(i.store).getCurrentPostType(),[]))return null;const t=(0,n.A)("wpcom-payments-donations");return(0,u.jsxs)(i.PluginPostPublishPanel,{className:"jetpack-payments-post-publish-panel",title:__("Start accepting payments","jetpack"),initialOpen:!0,icon:c.A,children:[(0,u.jsx)("p",{children:__("Insert the Payment Button or the Donations Form — no plugin required.","jetpack")}),(0,u.jsx)("p",{children:(0,u.jsx)(o.ExternalLink,{href:t,onClick:()=>{e.recordEvent("jetpack_editor_payments_post_publish_click")},children:__("Learn more about these blocks","jetpack")})})]})}}},9405:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>o.Gz});var n,s,o=r(3175);r(97187),r(26834);!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(n||(n={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(s||(s={}))},9411:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(47143);const s=async()=>{const{clearSelectedBlock:e}=(0,n.dispatch)("core/block-editor"),{enableComplementaryArea:t}=(0,n.dispatch)("core/interface");e(),await t("core/edit-post","jetpack-sidebar/jetpack");const r=document.querySelector(".jetpack-seo-panel"),s=r?.classList.contains("is-opened"),o=r?.querySelector("h2 button");s&&o?.click(),setTimeout(()=>{o?.click()},50)}},9455:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>a.A,save:()=>l,supports:()=>i.A});var n=r(94715),s=r(71071),o=r(10790),a=r(77294),i=r(82233);const l=({attributes:{align:e,autoplay:t,delay:r,effect:a,images:i},className:l})=>{const c=n.useBlockProps.save({className:l});return(0,o.jsx)(s.A,{align:e,autoplay:t,className:c.className,delay:r,effect:a,images:i})}},9520:(e,t,r)=>{"use strict";r.d(t,{C:()=>d,x:()=>u});var n=r(97999),s=r(10067),o=r.n(s);const a=window?.JP_CONNECTION_INITIAL_STATE,i=o()("shared-extension-utils:connection");let l=!1;const c=e=>{l||(i(e),l=!0)};function u(){return(0,n.isSimpleSite)()?(c("Simple site connected ✅"),!0):(0,n.isWoASite)()?(c("Atomic site connected ✅"),!0):a?.connectionStatus?.isUserConnected?(c("Jetpack user is connected ✅"),!0):(c("User is not connected ❌"),!1)}function d(){if((0,n.isSimpleSite)())return!0;return!1==!(a?.userConnectionData?.currentUser?.permissions??{}).manage_options}},9522:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(50723),s=r(11876),o=r(56427),a=r(10790);const i=()=>(0,a.jsx)(n.Ay,{children:(0,a.jsxs)(o.Placeholder,{children:[(0,a.jsxs)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,a.jsx)(o.FlexItem,{children:(0,a.jsx)(s.A,{width:"100%",height:30})}),(0,a.jsx)(o.FlexItem,{children:(0,a.jsx)(s.A,{width:"100%",height:90})})]}),(0,a.jsxs)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,a.jsx)(o.FlexItem,{children:(0,a.jsx)(s.A,{width:"100%",height:30})}),(0,a.jsx)(o.FlexItem,{children:(0,a.jsx)(s.A,{width:"100%",height:90})})]}),(0,a.jsxs)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,a.jsx)(o.FlexItem,{children:(0,a.jsx)(s.A,{width:"100%",height:30})}),(0,a.jsx)(o.FlexItem,{children:(0,a.jsx)(s.A,{width:"100%",height:90})})]})]})})},9624:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(19362),s=r(22746),o=r(9938);const a={storeAiAssistantFeature:e=>({type:o.UU,feature:e}),fetchAiAssistantFeature:()=>async({dispatch:e})=>{e({type:o.ql});try{const t=await(0,s.A)({path:"/wpcom/v2/jetpack-ai/ai-assistant-feature",query:"force=wpcom"});if(t.data)throw new Error("Failed to fetch");e(a.storeAiAssistantFeature(function(e){return{hasFeature:!!e["has-feature"],isOverLimit:!!e["is-over-limit"],requestsCount:e["requests-count"],requestsLimit:e["requests-limit"],requireUpgrade:!!e["site-require-upgrade"],errorMessage:e["error-message"],errorCode:e["error-code"],upgradeType:e["upgrade-type"],usagePeriod:{currentStart:e["usage-period"]?.["current-start"],nextStart:e["usage-period"]?.["next-start"],requestsCount:e["usage-period"]?.["requests-count"]||0},currentTier:e["current-tier"],nextTier:e["next-tier"],tierPlansEnabled:!!e["tier-plans-enabled"],costs:e.costs,featuresControl:e["features-control"]}}(t)))}catch(t){e({type:o.Rx,error:t})}},increaseAiAssistantRequestsCount:(e=1)=>({dispatch:t})=>{t({type:o.Lg,count:e})},setAiAssistantFeatureRequireUpgrade:(e=!0)=>({type:o.Kt,requireUpgrade:e}),setTierPlansEnabled:(e=!0)=>({type:o.c1,tierPlansEnabled:e}),setSiteDetails:e=>({type:o.Bz,siteDetails:e}),setSelectedLogoIndex:e=>({type:o.BG,selectedLogoIndex:e}),addLogoToHistory:e=>({type:o.sG,logo:e}),setIsSavingLogoToLibrary:e=>({type:o.E6,isSavingLogoToLibrary:e}),setIsApplyingLogo:e=>({type:o.Ep,isApplyingLogo:e}),updateSelectedLogo:(e,t)=>({type:o.r_,mediaId:e,url:t}),setIsRequestingImage:e=>({type:o.vk,isRequestingImage:e}),setIsEnhancingPrompt:e=>({type:o.O5,isEnhancingPrompt:e}),loadLogoHistory(e){const t=(0,n.$t)(e);return{type:o.ZI,history:t}},setFeatureFetchError:e=>({type:o.Rx,error:e}),setFirstLogoPromptFetchError:e=>({type:o.MQ,error:e}),setEnhancePromptFetchError:e=>({type:o.gG,error:e}),setLogoFetchError:e=>({type:o.q_,error:e}),setSaveToLibraryError:e=>({type:o.x0,error:e}),setLogoUpdateError:e=>({type:o.FN,error:e}),setContext:e=>({type:o.kZ,context:e}),setIsLoadingHistory:e=>({type:o.hY,isLoadingHistory:e})},i=a},9695:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(85985),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(13022),c=r(5564),u=r(26053),d=r(86121),p=r(65465),h=r(38770),m=r(10790);const __=i.__,g=(0,n.sh)(c);const f=function({attributes:e,setAttributes:t,isSelected:r}){const{align:n,caption:i,giphyUrl:f,searchText:b,paddingTop:v}=e,[k,y]=(0,a.useState)(!1),x=(0,a.createRef)(),{isFetching:j,giphyData:w,fetchGiphyData:_}=(0,p.A)(),C=(0,s.useBlockProps)(),A=()=>{x.current.focus(),y(!1)};(0,a.useEffect)(()=>{w&&w[0]&&t((0,h.Er)(w[0]))},[w,t]);const S=async t=>{if(t.preventDefault(),!e.searchText||j)return;const r=await(0,h.ID)(e.searchText);r&&_(r)},E=e=>t({searchText:e.target.value});return(0,m.jsxs)("div",{...C,className:(0,l.A)(C.className,`align${n}`),children:[(0,m.jsx)(d.A,{}),f?(0,m.jsxs)("figure",{children:[r&&(0,m.jsx)(u.A,{onSubmit:S,onChange:E,value:b,ref:x}),r&&w&&w.length>1&&(0,m.jsx)("div",{className:"wp-block-jetpack-gif_thumbnails-container",children:w.map(e=>{const r={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,m.jsx)("button",{className:"wp-block-jetpack-gif_thumbnail-container",onClick:r=>{r.preventDefault(),(e=>{t((0,h.Er)(e))})(e)},style:r},e.id)})}),(0,m.jsxs)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:v},children:[(0,m.jsx)("div",{className:"wp-block-jetpack-gif_cover",onClick:A,onKeyDown:A,role:"button",tabIndex:"0"}),(0,m.jsx)("iframe",{src:f,title:b})]}),(!s.RichText.isEmpty(i)||r)&&!!f&&(0,m.jsx)(s.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:k,onFocus:()=>y(!1),onChange:e=>t({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:i})]}):(0,m.jsx)(o.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:g,label:c.title,instructions:__("Search for a term or paste a Giphy URL","jetpack"),children:(0,m.jsx)(u.A,{onSubmit:S,onChange:E,value:b,ref:x})})]})}},9731:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96865),s=r(85985),o=r(56427),a=r(86087),i=r(27723),l=r(17913),c=r(52259),u=r(10067),d=r.n(u),p=r(31124),h=r(89872),m=r(10790);const __=i.__,g=d()("jetpack-ai:image-extension-toolbar-dropdown"),f=(0,a.forwardRef)(({onClose:e,onRequestAltText:t,onRequestCaption:r,loadingAltText:s,loadingCaption:i},u)=>{const{requireUpgrade:d}=(0,n.yM)(),p=(0,a.useCallback)(async n=>{try{n===h.X?await(t?.()):await(r?.()),e?.()}catch(e){g("Error generating %s",n,e)}},[t,r,e]);return(0,m.jsx)("div",{className:"jetpack-ai-assistant-image-toolbar-dropdown-wrapper",tabIndex:-1,ref:u,children:(0,m.jsxs)(o.MenuGroup,{children:[(0,m.jsx)(o.MenuItem,{icon:s?(0,m.jsx)(o.Spinner,{}):c.A,iconPosition:"left",onClick:()=>{p(h.X)},disabled:!!s||d,children:__("Generate alt text","jetpack")},"key-ai-assistant-alt-text"),(0,m.jsx)(o.MenuItem,{icon:i?(0,m.jsx)(o.Spinner,{}):l.A,iconPosition:"left",onClick:()=>{p(h.Q)},disabled:!!i||d,children:__("Generate caption","jetpack")},"key-ai-assistant-caption")]})})});function b({label:e=__("AI Assistant","jetpack"),onRequestAltText:t,onRequestCaption:r,loadingAltText:o=!1,loadingCaption:i=!1,disabled:l=!1,wrapperRef:c}){const{requireUpgrade:u}=(0,n.yM)(),{tracks:d}=(0,s.st)(),h=(0,a.useCallback)(e=>{e&&(d.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:"core/image"}),u&&(0,n.Fs)())},[u,d]),g=(0,a.useCallback)(()=>(d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:"alt-text",block_type:"core/image"}),t?.()),[t,d]),b=(0,a.useCallback)(()=>(d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:"caption",block_type:"core/image"}),r?.()),[r,d]);return(0,m.jsx)(p.A,{label:e,behavior:"dropdown",onDropdownToggle:h,disabled:l,renderContent:({onClose:e})=>(0,m.jsx)(f,{ref:c,onClose:e,onRequestAltText:g,onRequestCaption:b,loadingAltText:o,loadingCaption:i})})}},9847:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});var n=r(93832);const s=(e,{autoplay:t,controls:r,loop:s,muted:o,playsinline:a,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:d})=>{if(!e)return null;const p={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!r&&{controls:!1},...s&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...a&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==d&&{sblc:d}};return(0,n.addQueryArgs)(`https://videopress.com/v/${e}`,p)}},9888:(e,t,r)=>{"use strict";function n(e){return["columns","circle","square"].includes(e)}r.d(t,{o:()=>n})},9938:(e,t,r)=>{"use strict";r.d(t,{BG:()=>h,Bz:()=>l,E6:()=>g,Ep:()=>f,FN:()=>S,GB:()=>c,Kt:()=>a,Lg:()=>o,MQ:()=>w,O5:()=>k,Rx:()=>j,UU:()=>n,ZI:()=>y,c1:()=>i,gG:()=>_,hY:()=>x,kZ:()=>p,mx:()=>d,nb:()=>u,q_:()=>C,ql:()=>s,r_:()=>b,sG:()=>m,vk:()=>v,x0:()=>A});const n="STORE_AI_ASSISTANT_FEATURE",s="REQUEST_AI_ASSISTANT_FEATURE",o="INCREASE_AI_ASSISTANT_REQUESTS_COUNT",a="SET_AI_ASSISTANT_FEATURE_REQUIRE_UPGRADE",i="SET_TIER_PLANS_ENABLED",l="SET_SITE_DETAILS",c=20,u=3e3,d=3,p="SET_CONTEXT",h="SET_SELECTED_LOGO_INDEX",m="ADD_LOGO_TO_HISTORY",g="SET_IS_SAVING_LOGO_TO_LIBRARY",f="SET_IS_APPLYING_LOGO",b="SAVE_SELECTED_LOGO",v="SET_IS_REQUESTING_IMAGE",k="SET_IS_ENHANCING_PROMPT",y="SET_SITE_HISTORY",x="SET_IS_LOADING_HISTORY",j="SET_FEATURE_FETCH_ERROR",w="SET_FIRST_LOGO_PROMPT_FETCH_ERROR",_="SET_ENHANCE_PROMPT_FETCH_ERROR",C="SET_LOGO_FETCH_ERROR",A="SET_SAVE_TO_LIBRARY_ERROR",S="SET_LOGO_UPDATE_ERROR"},10067:(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(78926)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},10179:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94715),s=r(27723),o=r(10790);const __=s.__;function a({isGradientAvailable:e,backgroundColor:t,fallbackBackgroundColor:r,fallbackTextColor:s,gradientValue:a,setBackgroundColor:i,setGradient:l,setTextColor:c,textColor:u}){const d=(0,o.jsx)(n.ContrastChecker,{backgroundColor:t.color,fallbackBackgroundColor:r,fallbackTextColor:s,isLargeText:!1,textColor:u.color});return e?(0,o.jsx)(n.__experimentalPanelColorGradientSettings,{settings:[{colorValue:u.color,label:__("Text Color","jetpack"),onColorChange:c},{colorValue:t.color,gradientValue:a,label:__("Background","jetpack"),onColorChange:i,onGradientChange:l}],title:__("Background & Text Color","jetpack"),children:d}):(0,o.jsx)(n.PanelColorSettings,{colorSettings:[{value:u.color,onChange:c,label:__("Text Color","jetpack")},{value:t.color,onChange:i,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack"),children:d})}},10248:(e,t,r)=>{"use strict";function n(e){return e.popover?.isHighlightHover}function s(e){return e.popover?.isPopoverHover}function o(e){return e?.popover?.anchor??null}function a(e){return e.popover?.level}function i(e){return e.configuration?.enabled}function l(e,t){return!e.configuration?.disabled?.includes(t)}function c(e,t){return e.configuration?.loading?.includes(t)}function u(e){return e.configuration?.disabled}function d(e){return e.configuration?.reload}function p(e,t){return e.suggestions?.[t]?.md5??""}function h(e,{feature:t,id:r,blockId:n}){return e.suggestions?.[n]?.[t]?.[r]?.loading}function m(e,{feature:t,id:r,blockId:n}){return e.suggestions?.[n]?.[t]?.[r]?.suggestions}function g(e,{blockId:t}){return e.suggestions?.[t]?.ignored}r.r(t),r.d(t,{getBlockMd5:()=>p,getDisabledFeatures:()=>u,getIgnoredSuggestions:()=>g,getPopoverAnchor:()=>o,getPopoverLevel:()=>a,getReloadFlag:()=>d,getSuggestions:()=>m,getSuggestionsLoading:()=>h,isFeatureDictionaryLoading:()=>c,isFeatureEnabled:()=>l,isHighlightHover:()=>n,isPopoverHover:()=>s,isProofreadEnabled:()=>i})},10309:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(86087),s=r(27723),o=r(13022),a=r(35463),i=r(26539),l=r(60918),c=r(90256),u=r(31238),d=r(56366),p=r(10790);const __=s.__;class h extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:a,linkTo:u,layoutStyle:d,onMoveBackward:h,onMoveForward:m,onRemoveImage:g,onSelectImage:f,selectedImage:b,setImageAttributes:v}=this.props,k=(0,s.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,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]})}}},10402:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});const n=(e,t)=>{const r=Array.from(e.childNodes),n=r.indexOf(t),s=r.slice(0,n),o=document.createElement("div");return s.forEach(e=>o.appendChild(e.cloneNode(!0))),o.innerText.length}},10602:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(9190),s=r(72203),o=r(52516),a=r(24753),i=r(62554),l=r(59679),c=r(75e3);const u=[r(20837),c,l,i,a,o,s,n]},10676:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}function s(e){return"string"==typeof e&&""!==e&&/^[a-z0-9_]*$/.test(e)}function o(e){if(!function(e){return n(e)&&s(e.experimentName)&&(s(e.variationName)||null===e.variationName)&&"number"==typeof e.retrievedTimestamp&&"number"==typeof e.ttl&&0!==e.ttl}(e))throw new Error("Invalid ExperimentAssignment");return e}r.d(t,{Eo:()=>s,Gv:()=>n,zV:()=>o})},10748:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const 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 4a8 8 0 1 1 .001 16.001A8 8 0 0 1 12 4Zm0 1.5a6.5 6.5 0 1 0-.001 13.001A6.5 6.5 0 0 0 12 5.5Zm.75 11h-1.5V15h1.5v1.5Zm-.445-9.234a3 3 0 0 1 .445 5.89V14h-1.5v-1.25c0-.57.452-.958.917-1.01A1.5 1.5 0 0 0 12 8.75a1.5 1.5 0 0 0-1.5 1.5H9a3 3 0 0 1 3.305-2.984Z"})})},10781:(e,t,r)=>{"use strict";r.d(t,{_O:()=>y});var n=r(52494),s=r(82701),o=r(91016),a=r(33765),i=r(45369),l=r(10851);function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r
0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[e,r=f(f({},k),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&&m(e,t)}(t,e),r=t,o=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=f(f({},k),t),s.A.terminate(e,t)}}],(n=null)&&u(r.prototype,n),o&&u(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(s.A);"function"==typeof XMLHttpRequest&&"function"==typeof Blob&&Blob.prototype.slice},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},10821:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>i});var n=r(85985),s=r(74997),o=r(47143);const a=(0,r(48499).C)("ai-assistant-support");function i(){if(!(0,s.getBlockType)("jetpack/ai-assistant"))return!1;if(!a)return!1;if(!(0,n.xI)())return!1;const{getHiddenBlockTypes:e}=(0,o.select)("core/edit-post")||{};return!(e?.()||[]).includes("jetpack/ai-assistant")}},10851:(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
u,o:()=>c});var a=!1;try{a="localStorage"in window;var i="tusSupport",l=localStorage.getItem(i);localStorage.setItem(i,l),null===l&&localStorage.removeItem(i)}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;a=!1}var c=a,u=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r
{"use strict";r.d(t,{ND:()=>s,NS:()=>a,Sn:()=>n,ql:()=>o});const n=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,s=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,o=(e,t)=>{if((e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t){const e=()=>{document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())};document.addEventListener("fullscreenchange",e)}},a=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},10961:(e,t,r)=>{"use strict";var n=r(77598);e.exports=function(e,t,r,a){var i,l,c,u,d,p,h,m=-1;(!("NEEDAFFIX"in a.flags)||r.indexOf(a.flags.NEEDAFFIX)<0)&&function(e,t,r){var n=e[t];t in e?n===o?e[t]=r.concat():s.apply(n,r):e[t]=r.concat()}(e,t,r);for(;++m
{"use strict";r.d(t,{A:()=>o});const n={};function s(e,t,r){"string"!=typeof t&&(r=t,t=s.defaultChars),void 0===r&&(r=!0);const o=function(e){let t=n[e];if(t)return t;t=n[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r
=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1
=56320&&r<=57343){a+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}a+="%EF%BF%BD"}else a+=encodeURIComponent(e[t])}return a}s.defaultChars=";/?:@&=+$,-_.!~*'()#",s.componentChars="-_.!~*'()";const o=s},10991:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const 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:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},11114:(e,t,r)=>{"use strict";r.d(t,{K:()=>x,X:()=>j});var n=r(85985),s=r(56427),o=r(27723),a=r(51113),i=r(19783),l=r(10067),c=r.n(l),u=r(51609),d=r(66223),p=r(21902),h=r(61356),m=r(60674),g=r(88725),f=r(44461),b=r(6019),v=r(64024),k=r(10790);const __=o.__,y=c()("jetpack-ai-calypso:prompt-box"),x=({prompt:e="",setPrompt:t=()=>{},disabled:r=!1,actionDisabled:n=!1,generateHandler:o=()=>{},placeholder:a="",buttonLabel:i=""})=>{const l=(0,u.useRef)(null);(0,u.useEffect)(()=>{l.current&&l.current.textContent!==e&&(l.current.textContent=e)},[e]);return(0,k.jsxs)("div",{className:"jetpack-ai-image-generator__prompt-query",children:[(0,k.jsx)("div",{role:"textbox",tabIndex:0,ref:l,contentEditable:!r,suppressContentEditableWarning:!0,className:"prompt-query__input",onInput:e=>{t(e.target.textContent||"")},onPaste:e=>{e.preventDefault();const r=e.currentTarget.ownerDocument.getSelection();if(!r||!r.rangeCount)return;const n=e.clipboardData.getData("text/plain");r.deleteFromDocument();r.getRangeAt(0).insertNode(document.createTextNode(n)),r.collapseToEnd(),t(l.current?.textContent||"")},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),o()),e.stopPropagation()},onKeyUp:()=>{""===l.current?.textContent&&(l.current.innerHTML="")},"data-placeholder":a}),(0,k.jsx)(s.Button,{variant:"primary",className:"jetpack-ai-image-generator__prompt-submit",onClick:o,disabled:n,children:i||__("Generate","jetpack")})]})},j=({initialPrompt:e=""})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,[l,c]=(0,u.useState)(e),[j,w]=(0,u.useState)(0),{enhancePromptFetchError:_,logoFetchError:C}=(0,f.A)(),{nextTierCheckoutURL:A,hasNextTier:S}=(0,m.Q)(),E=l?.length>=h.N3,[N,T]=(0,u.useState)(!1),[B,P]=(0,u.useState)(null),[I,M]=(0,u.useState)([]),{generateLogo:L,enhancePrompt:R,setIsEnhancingPrompt:D,isBusy:F,isEnhancingPrompt:O,site:z,getAiAssistantFeature:U,requireUpgrade:H,context:q,tierPlansEnabled:V,imageStyles:G,guessStyle:$}=(0,g.A)(),W=__("Enhancing…","jetpack"),Z=__("Enhance prompt","jetpack"),J=O?W:Z,K=(0,u.useRef)(null),Y=(0,u.useCallback)(async()=>{y("Enhancing prompt",l),D(!0),r(h.vm,{context:q,tool:"enhance-prompt"});try{const e=await R({prompt:l});c(e),D(!1)}catch(e){y("Error enhancing prompt",e),D(!1)}},[q,R,l,D]),Q=U(String(z?.id||"")),X=Q?.currentTier?.value||0,ee=Q?.usagePeriod?.requestsCount||0,te=1===X;(0,u.useEffect)(()=>{w(X-ee<=0?0:X-ee)},[X,ee]),(0,u.useEffect)(()=>{K.current&&K.current.textContent!==l&&(K.current.textContent=l)},[l]),(0,u.useEffect)(()=>{G&&G.length>0?(M([G.find(({value:e})=>e===d.Hu),G.find(({value:e})=>e===d.Wp),...G.filter(({value:e})=>![d.Hu,d.Wp].includes(e))].filter(e=>e)),T(!0),P(d.Hu)):(M([]),T(!1),P(null))},[G]);const re=(0,u.useCallback)(async()=>{if(y(q),B===d.Wp){D(!0),r(h.Tk,{context:q,tool:"image"});const e=await $(l)||d.Hu;P(e),r(h.vm,{context:q,tool:"image",style:e}),D(!1),L({prompt:l,style:e})}else r(h.vm,{context:q,tool:"image",style:B}),L({prompt:l,style:B})},[q,L,l,B]),ne=(0,u.useCallback)(e=>{y("change style",e),P(e),r(h.UO,{context:q,style:e})},[q,P,r]);return(0,k.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt",children:[(0,k.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-header",children:[(0,k.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-label",children:__("Describe your site:","jetpack")}),(0,k.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-actions",children:(0,k.jsxs)(s.Button,{variant:"link",disabled:F||H||!E,onClick:Y,children:[(0,k.jsx)(p.A,{}),J]})}),N&&(0,k.jsx)(s.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:B,options:I,onChange:ne,disabled:F||H})]}),(0,k.jsx)(x,{prompt:l,setPrompt:c,generateHandler:re,disabled:F||H,actionDisabled:F||H||!E,placeholder:__("Describe your site or simply ask for a logo specifying some details about it","jetpack")}),(0,k.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-footer",children:[!te&&!H&&(0,k.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-requests",children:[(0,k.jsx)("div",{children:(0,o.sprintf)( // 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")})]})]})}},11148:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(85985),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(13022),c=r(66087),u=r(78218),d=r(89525),p=r(80427),h=r(57926),m=r(86975),g=r(49783),f=r(53495),b=r(80619),v=r(10790);const __=i.__,k=(0,o.withNotices)(e=>{const t=(0,s.useBlockProps)(),{attributes:r,isSelected:i,noticeOperations:k,noticeUI:y,setAttributes:x}=e,{accessToken:j,align:w,columns:_,count:C,isStackedOnMobile:A,spacing:S}=r;(0,a.useEffect)(()=>{const e=(0,u.y)(d.attributes,r);(0,c.isEqual)(e,r)||x(e)},[r,x]);const[E,N]=(0,a.useState)(j),{isRequestingWpcomConnectUrl:T,wpcomConnectUrl:B}=(0,f.A)(),{images:P,isLoadingGallery:I,setImages:M}=(0,b.A)({accessToken:j,noticeOperations:k,setAttributes:x,setSelectedAccount:N}),{connectToService:L,disconnectFromService:R,isConnecting:D,isRequestingUserConnections:F,userConnections:O}=(0,g.A)({accessToken:j,noticeOperations:k,selectedAccount:E,setAttributes:x,setImages:M,setSelectedAccount:N}),z=(0,n.gB)(),U=C>P.length?P.length:C,H=!I&&(!j||(0,c.isEmpty)(P)),q=!H,V=j&&I&&(0,c.isEmpty)(P),G=!H&&!V,$=(0,l.A)(t.className,{[`align${w}`]:w}),W=(0,l.A)("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${_}`,{"is-stacked-on-mobile":A}),Z={gridGap:S,"--latest-instagram-posts-spacing":S?`${S}px`:void 0},J={padding:S},K=e=>{if(P[e]){const t=P[e];return(0,v.jsx)(m.A,{alt:t.title||t.url,src:t.url,attributes:r,spacing:S})}return(0,v.jsx)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})},Y=()=>{E&&p.B!==E?x({accessToken:E,instagramUser:O.find(e=>e.token===E).username}):L()};return(0,v.jsxs)("div",{...t,className:$,children:[H&&(0,v.jsx)(o.Placeholder,{icon:"instagram",instructions:z?F||O.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:y,children:z?(()=>{const e=O.length>0,t=[...O.map(e=>({label:`@${e.username}`,value:e.token})),{label:__("Add a new account","jetpack"),value:p.B}],r=D||F||e&&!E;return(0,v.jsxs)("div",{children:[e&&(0,v.jsx)(o.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>N(e),options:t,selected:E}),p.B===E&&(0,v.jsx)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions",children:__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")}),(0,v.jsxs)(o.Button,{disabled:r,variant:"primary",onClick:Y,children:[D&&__("Connecting…","jetpack"),F&&__("Loading your connections…","jetpack"),!D&&!F&&__("Connect to Instagram","jetpack")]})]})})():(0,v.jsx)(o.Button,{disabled:T||!B,href:B,variant:"secondary",children:__("Connect to WordPress.com","jetpack")})}),V&&(0,v.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,v.jsx)(o.Spinner,{}),(0,v.jsx)("p",{children:__("Embedding…","jetpack")})]}),G&&(0,v.jsx)("div",{className:W,style:Z,children:Array.from(Array(i?C:U),(e,t)=>(0,v.jsx)("span",{className:(0,l.A)("wp-block-jetpack-instagram-gallery__grid-post"),style:J,children:K(t)},t))}),q&&(0,v.jsx)(s.InspectorControls,{children:(0,v.jsx)(h.A,{accountImageTotal:P.length,attributes:r,currentUserConnected:z,disconnectFromService:R,shouldRenderSidebarNotice:q&&!V&&P.length
{"use strict";function n(e){let t,r;const n=e.tokens,s=n.length;for(let e=0;e
n})},11264:e=>{"use strict";var t=256,r=[],n=window,s=Math.pow(t,6),o=Math.pow(2,52),a=2*o,i=255,l=Math.random;function c(e){var r,n=e.length,s=this,o=0,a=s.i=s.j=0,l=s.S=[];for(n||(e=[n++]);o
=a;)e/=2,r/=2,n>>>=1;return(e+n)/r}},e.exports.resetGlobal=function(){Math.random=l},d(Math.random(),r)},11267:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(23117);const s={sources:{},default:null},o={registerMediaSource:(e,t)=>({type:"REGISTER_MEDIA_SOURCE",id:e,mediaSourceState:t}),updateMediaSourceData:(e,t)=>({type:"UPDATE_MEDIA_SOURCE_DATA",id:e,data:t}),unregisterMediaSource:e=>({type:"UNREGISTER_MEDIA_SOURCE",id:e}),setDefaultMediaSource:e=>({type:"SET_DEFAULT_MEDIA_SOURCE",id:e}),playMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.v8}),toggleMediaSource:e=>({type:"TOGGLE_MEDIA_PLAYER_STATE",id:e}),pauseMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.vh}),errorMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.pF}),setMediaSourceCurrentTime:(e,t)=>({type:"SET_MEDIA_PLAYER_CURRENT_TIME",id:e,currentTime:t})},a={getDefaultMediaSource(e){let t=null;const r=Object.keys(e.sources);if(e.default?t=e.default:r?.length&&(t=e.sources[r[0]].id),t)return e.sources[t]},getMediaPlayerState(e,t){const r=t?e.sources?.[t]:a.getDefaultMediaSource(e);return r?.state},getMediaSourceCurrentTime(e,t){const r=t?e.sources?.[t]:a.getDefaultMediaSource(e);return r?.currentTime},getMediaSourceDuration(e,t){if(!t){const t=a.getDefaultMediaSource(e);return t?.duration}return e.sources?.[t]?.duration},getMediaSourceDomReference(e,t){const r=t?e.sources?.[t]:a.getDefaultMediaSource(e);if(!r)return;const n=r?.domId;return n?document.getElementById(n):void 0}},i={reducer(e=s,t){const r=t.id||e.default||Object.keys(e.sources)?.[0];switch(t.type){case"REGISTER_MEDIA_SOURCE":return{...e,sources:{...e.sources,[t.id]:{id:t.id,...t.mediaSourceState}}};case"UPDATE_MEDIA_SOURCE_DATA":return{...e,sources:{...e.sources,[t.id]:{...e.sources[t.id],...t.data}}};case"UNREGISTER_MEDIA_SOURCE":{const r=Object.assign({},e);return r.sources[t.id]&&delete r.sources[t.id],t.id===e.default&&(r.default=Object.keys(e.sources)?.[0]),r}case"SET_DEFAULT_MEDIA_SOURCE":return{...e,default:t.id};case"SET_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[r]:{...e.sources[r],state:t.state}}};case"TOGGLE_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[r]:{...e.sources[r],state:e.sources[r].state===n.v8?n.vh:n.v8}}};case"SET_MEDIA_PLAYER_CURRENT_TIME":return{...e,sources:{...e.sources,[r]:{...e.sources[r],currentTime:t.currentTime}}}}return e},actions:o,selectors:a}},11269:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const 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:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})})},11354:(e,t,r)=>{"use strict";r.d(t,{EX:()=>w,GG:()=>_,Yc:()=>y,iF:()=>x,ix:()=>C});var n=r(85985),s=r(54268),o=r(56427),a=r(29491),i=r(3582),l=r(47143),c=r(43656),u=r(86087),d=r(27723),p=r(51113),h=r(64524),m=r(16521),g=r(49452),f=r(37906),b=r(64234),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_subscribers.key!==e||!r&&t?b(e):h(!0)},options:[...a?[]:[{label:f.P2.everybody.label,value:f.P2.everybody.key}],{label:`${f.P2.subscribers.label} (${(0,s.qe)(k)})`,value:f.P2.subscribers.key},{label:`${f.P2.paid_subscribers.label} (${(0,s.qe)(w)})`,value:f.P2.paid_subscribers.key}],selected:e}),e===f.P2.paid_subscribers.key&&i&&t&&(0,v.jsx)(j,{}),n&&(0,v.jsx)(g.A,{closeDialog:()=>h(!1),showDialog:p})]})}function _({accessLevel:e}){const{hasTierPlans:t,stripeConnectUrl:r,isLoading:n,foundPaywallBlock:s}=(0,l.useSelect)(e=>{const{getNewsletterTierProducts:t,getConnectUrl:r,isApiStateLoading:n}=e("jetpack/membership-products"),{getBlocks:s}=e("core/block-editor");return{isLoading:n(),stripeConnectUrl:r(),hasTierPlans:0!==t()?.length,foundPaywallBlock:s().find(e=>e.name===h.name)}}),i=(0,l.useSelect)(e=>e(c.store).getEditedPostVisibility()),{selectBlock:u}=(0,l.useDispatch)("core/block-editor"),{closeGeneralSidebar:d}=(0,l.useDispatch)("core/edit-post"),m=(0,a.useViewportMatch)("medium","<");if(n)return(0,v.jsx)(o.Flex,{direction:"column",align:"center",children:(0,v.jsx)(o.Spinner,{})});const g=e??f.P2.everybody.key,y=f.P2[g]?.label,x=(0,b.fI)(i,e);return(0,v.jsx)(c.PostVisibilityCheck,{render:({canEdit:e})=>(0,v.jsxs)(v.Fragment,{children:[s&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:"block-editor-block-card",children:[(0,v.jsx)("span",{className:"block-editor-block-icon has-colors",children:(0,v.jsx)(p.A,{icon:k})}),(0,v.jsxs)("div",{className:"block-editor-block-card__content",children:[(0,v.jsx)("h2",{className:"block-editor-block-card__title",children:__("Paywall","jetpack")}),(0,v.jsxs)("span",{className:"block-editor-block-card__description",children:[__("The content below the paywall block is exclusive to the selected audience.","jetpack")," ",(0,v.jsx)(o.Button,{className:"edit-post-paywall-toolbar-button",onClick:()=>{u(s.clientId),m&&d()},variant:"link",children:__("Edit the block.","jetpack")})]})]})]})}),(0,v.jsxs)(o.Flex,{direction:"column",children:[x&&(0,v.jsx)(b.mf,{}),(0,v.jsxs)(o.FlexBlock,{direction:"row",justify:"flex-start",children:[e&&(0,v.jsx)(w,{isEditorPanel:!0,accessLevel:g,stripeConnectUrl:r,hasTierPlans:t,postHasPaywallBlock:s}),!e&&(0,v.jsx)("span",{children:y})]})]})]})})}function C(){const e=(0,l.useSelect)(e=>e(c.store).isCurrentPostPublished(),[]),t=(0,l.useSelect)(e=>e(c.store).getCurrentPostType(),[]),{saveEditedEntityRecord:r}=(0,l.useDispatch)(i.store),[n,s]=(0,i.useEntityProp)("postType",t,"meta"),a=(0,i.useEntityId)("postType",t),u=e=>{const o={...n,[f.KG]:"post-only"===e};s(o),r("postType",t,a)},d=(0,l.useSelect)(e=>{const t=e(c.store).getEditedPostAttribute("meta");return t?.[f.KG]?"post-only":"post-and-email"});return(0,v.jsx)(c.PostVisibilityCheck,{render:({canEdit:t})=>(0,v.jsxs)(o.__experimentalToggleGroupControl,{value:d,disabled:e||!t,onChange:u,isBlock:!0,label:__("Send as email to subscribers?","jetpack"),hideLabelFromVision:!0,className:"jetpack-subscribe-email-document-setting",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,v.jsx)(o.__experimentalToggleGroupControlOption,{label:__("Post & email","jetpack"),value:"post-and-email"}),(0,v.jsx)(o.__experimentalToggleGroupControlOption,{label:__("Post only","jetpack"),value:"post-only"})]})})}},11380:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/subscriber-login","title":"Subscriber Login","description":"Show links for subscribers to login, logout, or manage their subscription.","keywords":["login","logout","subscription","member","account","user"],"version":"0.0.1","textdomain":"jetpack","category":"grow","icon":"
","supports":{"align":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"color":{"text":false,"link":true,"gradients":true}},"attributes":{"redirectToCurrent":{"type":"boolean","default":true},"logInLabel":{"type":"string"},"logOutLabel":{"type":"string"},"showManageSubscriptionsLink":{"type":"boolean","default":true},"manageSubscriptionsLabel":{"type":"string"}}}')},11452:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(38443),s=r(63673),o=r(49980),a=r(91167);const i=function(){let e,t;const r=()=>{const{l10n:{locale:t}}=(0,n.getSettings)();return(e??(t||window?.window?.navigator?.language)??s.M).split("_")[0]};return{setLocale:t=>{e=t},setGeoLocation:e=>{t=e},formatNumber:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:s={}}={})=>{try{return(0,a.j)({browserSafeLocale:r(),decimals:t,forceLatin:n,numberFormatOptions:s}).format(e)}catch{return String(e)}},formatNumberCompact:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:s={}}={})=>{try{return(0,a.c)({browserSafeLocale:r(),decimals:t,forceLatin:n,numberFormatOptions:s}).format(e)}catch{return String(e)}},formatCurrency:(e,n,{stripZeros:s=!1,isSmallestUnit:a=!1,signForPositive:i=!1,forceLatin:l=!0}={})=>(0,o.u)({number:e,currency:n,browserSafeLocale:r(),stripZeros:s,isSmallestUnit:a,signForPositive:i,geoLocation:t,forceLatin:l}),getCurrencyObject:(e,n,{stripZeros:s=!1,isSmallestUnit:a=!1,signForPositive:i=!1,forceLatin:l=!0}={})=>(0,o.v)({number:e,currency:n,browserSafeLocale:r(),stripZeros:s,isSmallestUnit:a,signForPositive:i,geoLocation:t,forceLatin:l})}}},11497:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(85985),s=r(56427),o=r(86087),a=r(27723),i=r(50347),l=r(7598),c=r(13022),u=r(10790);const __=a.__;function d({disabled:e=!1,iconSize:t=24,ratedItem:r="",feature:a="",savedRatings:d={},options:p={},onRate:h}){if(!function(e){return!0===(0,n.FB)(e).available}("ai-response-feedback"))return null;const[m,g]=(0,o.useState)({}),{tracks:f}=(0,n.st)();(0,o.useEffect)(()=>{const e={...d,...m};JSON.stringify(e)!==JSON.stringify(m)&&g(e)},[d]);const b=e=>!!m[r]&&m[r]===e,v=e=>{const t=e?"thumbs-up":"thumbs-down";b(t)||(g({...m,[r]:t}),h?.(t),f.recordEvent("jetpack_ai_feedback",{type:a,rating:t,media_library_id:p.mediaLibraryId||null,prompt:p.prompt||null,revised_prompt:p.revisedPrompt||null,block:p.block||null}))};return(0,u.jsxs)("div",{className:"ai-assistant-feedback__selection",children:[(0,u.jsx)(s.Tooltip,{text:__("I like this","jetpack"),children:(0,u.jsx)(s.Button,{disabled:e,icon:l.A,onClick:()=>v(!0),iconSize:t,showTooltip:!1,className:(0,c.A)({"ai-assistant-feedback__thumb-selected":b("thumbs-up")})})}),(0,u.jsx)(s.Tooltip,{text:__("I don't find this useful","jetpack"),children:(0,u.jsx)(s.Button,{disabled:e,icon:i.A,onClick:()=>v(!1),iconSize:t,showTooltip:!1,className:(0,c.A)({"ai-assistant-feedback__thumb-selected":b("thumbs-down")})})})]})}},11574:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(10790);const s=()=>(0,n.jsx)("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",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9291 7.96836L10.7308 17.6492L6.2145 14.2911L7.10952 13.0873L10.4221 15.5504L16.7253 7.07333L17.9291 7.96836Z"})})},11876:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(13022),s=r(13372),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})},11906:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(94715),s=r(56427),o=r(27723),a=r(83883),i=r(10790);const __=o.__,l=[{name:__("Small","jetpack"),value:"has-small-icon-size"},{name:__("Normal","jetpack"),value:"has-normal-icon-size"},{name:__("Large","jetpack"),value:"has-large-icon-size"},{name:__("Huge","jetpack"),value:"has-huge-icon-size"}],c=e=>{const{attributes:t,setAttributes:r}=e,{size:o}=t,c=e=>o===e||!o&&"has-normal-icon-size"===e;return(0,i.jsx)(n.BlockControls,{group:"other",children:(0,i.jsx)(s.ToolbarDropdownMenu,{label:__("Size","jetpack"),text:__("Size","jetpack"),icon:null,popoverProps:{position:"bottom right"},children:()=>(0,i.jsx)(s.MenuGroup,{children:l.map(({name:e,value:t})=>(0,i.jsx)(s.MenuItem,{icon:c(t)&&a.A,isSelected:c(t),role:"menuitemradio",onClick:()=>{r({size:t})},children:e},t))})})})}},11998:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(85985),s=r(94715),o=r(56427),a=r(27723),i=r(13022),l=r(10790);const __=a.__;function c({blockName:e,buttonLabel:t,className:r,href:a,icon:c,onClick:u,readMoreUrl:d,subtitle:p,title:h}){const{autosaveAndRedirect:m}=(0,n.ZR)(a);return(0,l.jsx)(s.Warning,{actions:a&&[(0,l.jsx)(o.Button,{href:a,onClick:t=>{t.preventDefault(),u(e),m(t)},target:"_top",variant:"secondary",className:"jetpack-stripe-nudge__link",children:t},"nudge")],className:(0,i.A)(r,"jetpack-block-nudge wp-block"),children:(0,l.jsxs)("span",{className:"jetpack-block-nudge__info",children:[c,(0,l.jsxs)("span",{className:"jetpack-block-nudge__text-container",children:[(0,l.jsx)("span",{className:"jetpack-block-nudge__title",children:h}),p&&(0,l.jsxs)("span",{className:"jetpack-block-nudge__message",children:[p,d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("br",{}),(0,l.jsx)(o.ExternalLink,{href:d,children:__("Learn more about the block and fees","jetpack")})]})]})]})]})})}},12045:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(97999),s=r(85985),o=r(56427),a=r(47143),i=r(43656),l=r(86087),c=r(27723),u=r(64524),d=r(37906),p=r(11354),h=r(16521),m=r(10790);const __=c.__,_n=c._n,g=({futureTense:e,newsletterCategories:t,postCategories:r,reachCount:n})=>{const s=((e,t)=>{const r=e.length?e:[1],n=r.some(e=>!t.some(t=>t.id===e)),s=t.filter(e=>r.includes(e.id)).map(e=>e.name);n&&s.push(__("All content","jetpack"));const o=s.map(e=>`
${e}
`);let a="";if(1===o.length)a=o[0];else if(2===o.length) // translators: %1$s: first category name, %2$s: second category name 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)( // translators: %1$s: a comma-separated list of category names except for the last one, %2$s: the name of the last category __("%1$s, and %2$s","jetpack"),e,t)}return a})(r,t),o=void 0===n?"0":n.toLocaleString();return e?(0,c.sprintf)( // translators: %1s is the list of categories, %2d is subscriptions count _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)( // translators: %1s is the list of categories, %2d is subscriptions count _n("This post was sent to everyone subscribed to %1$s (
%2$s subscriber).","This post was sent to everyone subscribed to %1$s (
%2$s subscribers).",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
{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 */ _n("This post will be sent to
%s paid subscriber
.","This post will be sent to
%s paid subscribers
.",n,"jetpack"),s):(0,c.sprintf)(/* translators: %s is the number of subscribers */ _n("This post will be sent to
%s subscriber
.","This post will be sent to
%s subscribers
.",n,"jetpack"),s):t&&!r?(0,c.sprintf)(/* translators: %s is the number of subscribers */ _n("This post was sent to
%s paid subscriber.","This post was sent to
%s paid subscribers.",n,"jetpack"),s):(0,c.sprintf)(/* translators: %s is the number of subscribers */ _n("This post was sent to
%s subscriber.","This post was sent to
%s subscribers.",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)})})})}},12074:(e,t,r)=>{"use strict";r.d(t,{HE:()=>i,pG:()=>a,pJ:()=>l});var n=r(74997),s=r(86087),o=r(10790);function a(e,t){const r=(0,o.jsx)("a",{href:e,children:e});t((0,n.createBlock)("core/paragraph",{content:(0,s.renderToString)(r)}))}function i(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function l(e=""){return e&&"string"==typeof e?e.trim():null}},12088:(e,t,r)=>{"use strict";var n=r(47143),s=r(23117),o=r(11267);if(void 0!==n.createReduxStore){const e=(0,n.createReduxStore)(s.ax,o.A);(0,n.register)(e)}else(0,n.registerStore)(s.ax,o.A)},12169:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(1455),s=r.n(n),o=r(94715),a=r(56427),i=r(47143),l=r(86087),c=r(27723),u=r(93832),d=r(13022),p=r(54919),h=r(9075),m=r(10790);const __=c.__,_x=c._x;const g=(0,a.withNotices)(function({attributes:e,noticeOperations:t,noticeUI:r,setAttributes:n}){const g=(0,l.useRef)(!1),{answersLink:f,answersLinkText:b,gravatars:v,promptFetched:k,promptId:y,promptLabel:x,promptText:j,showLabel:w,showResponses:_,tagsAdded:C,isBloganuary:A}=e,S=(0,o.useBlockProps)({className:"jetpack-blogging-prompt"});(0,h.J)(y,C,e=>n({tagsAdded:e}));const E=(0,i.useSelect)(e=>{const{getEntityRecord:t,hasFinishedResolution:r}=e("core"),n=t("root","site")?.language||"en_US";return r("getEntityRecord",["root","site"])?n:null},[]);(0,l.useEffect)(()=>{if(!E||g.current||k)return;const e=()=>{n({promptFetched:!1,promptId:null,tagsAdded:!1}),g.current=!1,t.removeAllNotices()};let r="/wpcom/v3/blogging-prompts";if(y)r+="/"+encodeURIComponent(y);else{const e=new Date;r+=`?after=--${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}&order=desc`}r=(0,u.addQueryArgs)(r,{_locale:E,force_year:(new Date)?.getFullYear()}),g.current=!0,s()({path:r}).then(e=>{const t=y?e:e[0],r=(0,p.i)(E);n({answersLink:t.answered_link+`?locale=${r}`,answersLinkText:t.answered_link_text,gravatars:t.answered_users_sample.map(({avatar:e})=>({url:e})),promptFetched:!0,promptLabel:t.label,promptText:t.text,promptId:t.id,isBloganuary:!!t.bloganuary_id})}).catch(r=>{n({promptFetched:!0});const s="rest_post_invalid_id"===r.code&&y?(o=y,(0,m.jsxs)(m.Fragment,{children:[(0,c.sprintf)(/* translators: %d is the prompt id. */ __("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,{})})]})})},12365:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(56427),s=r(86087),o=r(27723),a=r(8746),i=r(10790);const __=o.__;function l({borderRadius:e="",setAttributes:t}){const r=(0,s.useCallback)(e=>t({borderRadius:e}),[t]);return(0,i.jsx)(n.PanelBody,{title:__("Border Settings","jetpack"),children:(0,i.jsx)(n.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,allowReset:!0,initialPosition:a.hc,label:__("Border radius","jetpack"),max:a.Bs,min:a.rG,onChange:r,value:e})})}},12380:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=!1;function s(e){n&&console.log(e)}},12430:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(96865),s=r(56427),o=r(47143),a=r(43656),i=r(86087),l=r(27723),c=r(51113),u=r(83883),d=r(4167),p=r(16204),h=r(10790);const __=l.__;function m({onEdit:e}){const{title:t,description:r}=(0,o.useSelect)(e=>{const t=e(a.store).getEditedPostAttribute("meta");return{title:t?.jetpack_seo_html_title??"",description:t?.advanced_seo_description??""}},[]),{titleBusy:m,descriptionBusy:g,imageBusy:f}=(0,o.useSelect)(e=>{const{isTitleBusy:t,isDescriptionBusy:r,isAnyImageBusy:n}=e(p.M);return{titleBusy:t(),descriptionBusy:r(),imageBusy:n()}},[]),[b,v]=(0,i.useState)(null),k=(0,i.useMemo)(()=>t||"",[t]),y=(0,i.useMemo)(()=>r||"",[r]);(0,i.useEffect)(()=>{const e=(0,n._G)().filter(e=>"core/image"===e.name&&e.attributes.url);if(0===e.length)return void v("");const t=e.filter(e=>!!e.attributes.alt);0!==t.length?t.length!==e.length?t.length
({"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")})]})})}},12580:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(94715),s=r(29491),o=r(47143),a=r(86087),i=r(27723),l=r(79534),c=r(78715),u=r(10790);const __=i.__,d="editor",p="preview",h=(0,s.compose)([(0,o.withSelect)(e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()})),(0,o.withDispatch)((e,{currentBlockId:t})=>({removeBlock:()=>e("core/block-editor").removeBlocks(t)}))])(({attributes:e,setAttributes:t,isSelected:r,removeBlock:s})=>{const{source:o}=e,i=!o||""===o.trim(),h=(0,n.useBlockProps)(),{className:m}=h,[g,f]=(0,a.useState)(d),b=(0,a.useRef)(null),v=e=>t({source:e}),k=e=>{8===e.keyCode&&""===o&&(s(),e.preventDefault())};let y;return(0,a.useEffect)(()=>{r?g===d&&b?.current.focus():g===p&&f(d)},[r,g,f]),y=!r&&i?(0,u.jsx)("p",{className:`${m}__placeholder`,children:__("Write your _Markdown_ **here**…","jetpack")}):(0,u.jsxs)("div",{className:m,children:[(0,u.jsx)(n.BlockControls,{children:(0,u.jsxs)("div",{className:"components-toolbar",children:[(0,u.jsx)(l.A,{className:m,label:__("Markdown","jetpack"),isPressed:g===d,onClick:()=>f(d)}),(0,u.jsx)(l.A,{className:m,label:__("Preview","jetpack"),isPressed:g===p,onClick:()=>f(p)})]})}),g!==p&&r?(0,u.jsx)(n.PlainText,{className:`${m}__editor`,onChange:v,onKeyDown:k,"aria-label":__("Markdown","jetpack"),ref:b,value:o}):(0,u.jsx)(c.A,{className:`${m}__preview`,source:o})]}),(0,u.jsx)("div",{...h,children:y})})},12742:(e,t,r)=>{"use strict";var n=r(94375),s=r(6852),o=r(1807),a=r(43402),i=r(61647),l=r(2194),c=r(62393);(0,n.M)(s,{edit:i.A,save:l.A,styles:c.A,deprecated:[a.A,o.A]})},12788:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(54268),s=r(94715),o=r(56427),a=r(47143),i=r(27723),l=r(23751),c=r(83883),u=r(83822),d=r(16521),p=r(59340),h=r(37072),m=r(21212),g=r(1990),f=r(10790);const __=i.__;function b(e){const{currency:t,interval:r,price:s}=e,o=(0,n.vv)(parseFloat(s),t);switch(r){case"1 month":return(0,i.sprintf)( // 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})})]})})})}},12804:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o({attributes:e}){const{caption:t,guid:r}=e;if(!r)return null;const o=`https://videopress.com/v/${r}`;return(0,s.jsxs)("figure",{className:"wp-block-embed is-type-video is-provider-videopress",children:[(0,s.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${o}\n`}),!n.RichText.isEmpty(t)&&(0,s.jsx)(n.RichText.Content,{tagName:"figcaption",value:t})]})}},12885:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94715),s=r(56427),o=r(29491),a=r(27723),i=r(78218),l=r(11380),c=r(10790);const __=a.__;const u=function({attributes:e,setAttributes:t}){const r=(0,o.useInstanceId)(s.TextControl,"inspector-text-control"),a=(0,o.useInstanceId)(s.TextControl,"inspector-text-control"),u=(0,o.useInstanceId)(s.TextControl,"inspector-text-control"),d=(0,n.useBlockProps)(),p=(0,i.y)(l.attributes,e),{redirectToCurrent:h,logInLabel:m,logOutLabel:g,showManageSubscriptionsLink:f,manageSubscriptionsLabel:b}=p;return(0,c.jsxs)("div",{...d,children:[(0,c.jsx)(n.InspectorControls,{children:(0,c.jsxs)(s.PanelBody,{title:__("Settings","jetpack"),children:[(0,c.jsx)(s.ToggleControl,{label:__("Redirect to current URL","jetpack"),checked:h,onChange:()=>t({redirectToCurrent:!h}),__nextHasNoMarginBottom:!0}),(0,c.jsx)(s.BaseControl,{label:__("Log in label","jetpack"),id:r,__nextHasNoMarginBottom:!0,children:(0,c.jsx)(s.TextControl,{placeholder:__("Log in","jetpack"),onChange:e=>t({logInLabel:e}),value:m,id:r,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,c.jsx)(s.BaseControl,{label:__("Log out label","jetpack"),id:a,__nextHasNoMarginBottom:!0,children:(0,c.jsx)(s.TextControl,{placeholder:__("Log out","jetpack"),onChange:e=>t({logOutLabel:e}),value:g,id:a,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,c.jsx)(s.ToggleControl,{label:__('Show "Manage subscription" link',"jetpack"),checked:f,onChange:()=>t({showManageSubscriptionsLink:!f}),__nextHasNoMarginBottom:!0}),f&&(0,c.jsx)(s.BaseControl,{label:__("Manage subscription label","jetpack"),id:u,__nextHasNoMarginBottom:!0,children:(0,c.jsx)(s.TextControl,{placeholder:__("Manage subscription","jetpack"),onChange:e=>t({manageSubscriptionsLabel:e}),value:b,id:u,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})}),(0,c.jsx)("a",{href:"#logout-pseudo-link",children:g||__("Log out","jetpack")})]})}},12953:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o(){const e=n.useBlockProps.save();return(0,s.jsx)("div",{...e,children:(0,s.jsx)(n.InnerBlocks.Content,{})})}},13014:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,s:()=>a});var n=r(63162),s=r(14936),o=r(60041);function a(e){return["circle","square"].includes(e)}function i(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,n.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const r=e.url.split("?",1)[0],{height:i,width:c}=e,{layoutStyle:u}=t,d=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?l:s.A;let p;if(a(u)&&c&&i){const e=Math.min(o.rK,c,i);p=d(r,{resize:`${e},${e}`})}else p=d(r);let h=[];if(a(u)){const e=Math.min(600,c,i),t=Math.min(o.rK,c,i);for(let n=e;n
{"use strict";function n(e){var t,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t
s});const s=function(){for(var e,t,r=0,s="",o=arguments.length;r
{"use strict";r.d(t,{A:()=>s});var n=r(85985);function s(){return(0,n.$i)()?.jetpack?.is_offline_mode??!1}},13091:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94715),s=r(13022),o=r(43450),a=r(7651),i=r(10790);const l={attributes:o.A,supports:{html:!1,reusable:!1},save:function({attributes:e,className:t}){const{countryCode:r,phoneNumber:o,firstMessage:l,colorClass:c,buttonText:u,backgroundColor:d,openInNewTab:p}=e,h=p?"_blank":"_self",m=r&&o?r.replace(/\D+/g,"")+o.replace(/\D+/g,""):"",g=(0,s.A)(t,c?"is-color-"+c:void 0,u.length?void 0:"has-no-text");return(0,i.jsx)("div",{className:g,children:(0,i.jsx)("a",{className:"whatsapp-block__button",href:(()=>{let e=a.gp+m;return""!==l&&(e+="&text="+encodeURIComponent(l)),e})(),style:{backgroundColor:d},target:h,rel:"noopener noreferrer",children:(0,i.jsx)(n.RichText.Content,{value:u})})})}}},13248:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/calendly","title":"Calendly","description":"Embed a calendar for customers to schedule appointments.","keywords":["calendar","schedule","appointments","events","dates"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"
","supports":{"align":true,"alignWide":false,"html":false},"attributes":{"backgroundColor":{"type":"string","default":"ffffff"},"hideEventTypeDetails":{"type":"boolean","default":false},"primaryColor":{"type":"string","default":"00A2FF"},"textColor":{"type":"string","default":"4D5055"},"style":{"type":"string","default":"inline","enum":["inline","link"]},"url":{"type":"string"}},"example":{"attributes":{"hideEventTypeDetails":false,"style":"inline","url":"https://calendly.com/wpcom/jetpack-block-example"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Schedule time with me","uniqueId":"calendly-widget-id","url":"https://calendly.com/wpcom/jetpack-block-example"}}]}}')},13318:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function s(e,t,r,s){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(35!==i||o>=a)return!1;let l=1;for(i=e.src.charCodeAt(++o);35===i&&o
6||o
o&&(0,n.isSpace)(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;const u=e.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(o,a).trim(),d.map=[t,e.line],d.children=[];return e.push("heading_close","h"+String(l),-1).markup="########".slice(0,l),!0}},13372:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},13554:(e,t,r)=>{"use strict";var n=r(85985),s=r(74997),o=r(47143),a=r(43656),i=r(86087),l=r(52619),c=r(27723),u=r(62599),d=r(67709),p=r(94375),h=r(99876),m=r(63200),g=r(39025),f=r(38387),b=r(3722),v=r(74500),k=r(48313),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)},13766:e=>{"use strict";e.exports=function(){return this.flags.WORDCHARS||null}},13802:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,rr:()=>l,y7:()=>a});var n=r(96865),s=r(74997),o=r(54681);const a=["core/heading","core/paragraph","core/list"],i=[];function l(e,t){const{content:r,...a}=t;let i=r;"core/heading"===e&&t?.level&&(i=i.replace(/<(\/?)h\d([^>]*)>/g,`<$1h${t.level}$2>`));const l=(0,n.rh)({content:i}),c=[];return c.push({role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:l}}),(0,s.createBlock)(o.name,{...a,content:l,originalContent:l,messages:c,originalMessages:c})}for(const e of a)i.push({type:"block",blocks:[e],isMatch:()=>a.includes(e),transform:(t,r)=>{const n=(0,s.getSaveContent)(e,t,r);return l(e,{...t,content:n})}});const c={from:i}},13818:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(86087),s=r(85101);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}}},13858:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(48931);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}}},13896:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0,inserter:!1}},13913:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(63162),s=r(13022),o=r(10790);function a(e){const{alt:t,imageFilter:r,height:a,id:i,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,n.isBlobURL)(u))return null;let h;switch(c){case"media":h=d;break;case"attachment":h=l}const m=(0,o.jsx)("img",{alt:t,"data-height":a,"data-id":i,"data-link":l,"data-url":u,"data-width":p,src:d});return(0,o.jsx)("figure",{className:(0,s.A)("tiled-gallery__item",{[`filter__${r}`]:!!r}),children:h?(0,o.jsx)("a",{href:h,children:m}):m})}},13965:(e,t,r)=>{"use strict";r.d(t,{Rb:()=>n.R});var n=r(2166);r(59886),r(53471)},14016:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(56427),s=r(27723),o=r(10991),a=r(6754),i=r(10790);const __=s.__,l=({requestingState:e,onClose:t,title:r})=>(0,i.jsxs)("div",{className:"ai-assistant-modal__header",children:[(0,i.jsxs)("div",{className:"ai-assistant-modal__title-wrapper",children:[(0,i.jsx)(a.A,{state:e}),(0,i.jsx)("h1",{className:"ai-assistant-modal__title",children:r})]}),(0,i.jsx)(n.Button,{icon:o.A,label:__("Close","jetpack"),onClick:t})]});function c({children:e,handleClose:t,hideHeader:r=!0,requestingState:s="init",title:o=__("AI Assistant","jetpack"),maxWidth:a=720}){return(0,i.jsx)(n.Modal,{__experimentalHideHeader:r,className:"ai-assistant-modal",shouldCloseOnClickOutside:!1,onRequestClose:t,children:(0,i.jsxs)("div",{className:"ai-assistant-modal__content",style:{maxWidth:a},children:[(0,i.jsx)(l,{requestingState:s,onClose:t,title:o}),(0,i.jsx)("hr",{className:"ai-assistant-modal__divider"}),e]})})}},14164:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(85985),s=r(94715),o=r(74997),a=r(56427),i=r(86087),l=r(27723),c=r(66087),u=r(78218),d=r(17195),p=r(6526),h=r(52755),m=r(10790);const __=l.__,_x=l._x,g=(0,n.sh)(d);const f=({defaultClassName:e,iframeUrl:t,clientId:r})=>{const n=`\n\t\t