Gutenberg - Version 10.2.1

Version Description

Download this release

Release Info

Developer gutenbergplugin
Plugin Icon 128x128 Gutenberg
Version 10.2.1
Comparing to
See all releases

Code changes from version 10.2.0 to 10.2.1

build/block-library/blocks/button/block.json CHANGED
@@ -62,7 +62,8 @@
62
  "align": true,
63
  "alignWide": false,
64
  "color": {
65
- "__experimentalSkipSerialization": true
 
66
  },
67
  "reusable": false,
68
  "__experimentalSelector": ".wp-block-button__link"
62
  "align": true,
63
  "alignWide": false,
64
  "color": {
65
+ "__experimentalSkipSerialization": true,
66
+ "gradients": true
67
  },
68
  "reusable": false,
69
  "__experimentalSelector": ".wp-block-button__link"
build/block-library/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'f61fd8d9ff2d4b751c315a43172654df');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '46baaa6f3f784fe4ecf746bbdb740050');
build/block-library/index.js CHANGED
@@ -13,7 +13,7 @@ Object(Ce.__)("Level %1$s. %2$s"),r,n)}},transforms:Ln,deprecated:zn,merge:funct
13
  Object(Ce.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object(ke.createBlock)("core/quote",Kn(Kn({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(ke.createBlock)("core/paragraph")},textAlign:s}),(!we.RichText.isEmpty(b)||r)&&Object(xe.createElement)(we.RichText,{identifier:"citation",value:b,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":Object(Ce.__)("Quote citation text"),placeholder:// translators: placeholder text used for the citation
14
  Object(Ce.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:s,__unstableOnSplitAtEnd:function(){return i(Object(ke.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=Te()(Object(ye.a)({},"has-text-align-".concat(n),n));return Object(xe.createElement)("blockquote",we.useBlockProps.save({className:c}),Object(xe.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(xe.createElement)(we.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),nr(nr({},e),{},n&&"<p></p>"!==n?{value:e.value+n,citation:r}:{citation:r})},deprecated:Jn},ar=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function ir(e){return Math.min(3,e.images.length)}var lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(Ee.pick)(e,["alt","id","link","caption"]);n.url=Object(Ee.get)(e,["sizes",t,"url"])||Object(Ee.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(Ee.get)(e,["sizes","full","url"])||Object(Ee.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var br=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:function(e){var t=e.linkTo;return!t||"attachment"===t||"media"===t},migrate:function(e){var t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",ur(ur({},e),{},{linkTo:t})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(xe.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!we.RichText.isEmpty(a)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return ur(ur({},e),{},{ids:Object(Ee.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(xe.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!we.RichText.isEmpty(a)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.linkTo;return Object(xe.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(Ee.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return ur(ur({},e),{},{ids:Object(Ee.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.linkTo;return Object(xe.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.align,a=t.imageCrop,i=t.linkTo,l=Te()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(xe.createElement)("div",{className:l},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(xe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(xe.createElement)("a",{href:t},n):n)})))}}],mr=n(90),pr=Object(xe.createElement)(we.BlockIcon,{icon:ar}),dr=n(28),gr=n(29),hr=n(19),Or=n(32),fr=n(33),vr=n(23),jr=n(279),yr=n(278),_r=n(255),wr=n(162);var kr=function(e){Object(Or.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(vr.a)(t);if(n){var o=Object(vr.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(fr.a)(this,e)});function o(){var e;return Object(dr.a)(this,o),(e=r.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(hr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(hr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(hr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(hr.a)(e)),e.onEdit=e.onEdit.bind(Object(hr.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(hr.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(hr.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(gr.a)(o,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[Nn.BACKSPACE,Nn.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;r&&!o&&(c(),this.props.setAttributes({url:r.source_url,alt:r.alt_text})),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,n=t.setAttributes,r=t.id,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=lr(e,i);(function(e,t){return!e&&Object(Ye.isBlobURL)(t)})(r,o)&&c&&(l=Object(Ee.omit)(l,["alt"])),a&&!Object(Ee.get)(l,["caption"])&&(l=Object(Ee.omit)(l,["caption"])),n(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,n=t.setAttributes;e!==t.url&&(n({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,p=t.onMoveBackward,d=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(c){case"file":e=n;break;case"post":e=a}var O=Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ye.isBlobURL)(n)&&Object(xe.createElement)(Ae.Spinner,null)),f=Te()({"is-selected":s,"is-transient":Object(Ye.isBlobURL)(n)});return Object(xe.createElement)("figure",{className:f},!h&&(e?Object(xe.createElement)("a",{href:e},O):O),h&&Object(xe.createElement)(we.MediaPlaceholder,{labels:{title:Object(Ce.__)("Edit gallery image")},icon:Je,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:n}}),Object(xe.createElement)(Ae.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(xe.createElement)(Ae.Button,{icon:jr.a,onClick:i?void 0:p,label:Object(Ce.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(xe.createElement)(Ae.Button,{icon:yr.a,onClick:l?void 0:m,label:Object(Ce.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(xe.createElement)(Ae.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(xe.createElement)(Ae.Button,{icon:_r.a,onClick:this.onEdit,label:Object(Ce.__)("Replace image"),disabled:!s}),Object(xe.createElement)(Ae.Button,{icon:wr.a,onClick:b,label:Object(Ce.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(xe.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(Ce.__)("Image caption text"),placeholder:s?Object(Ce.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return d({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),o}(xe.Component),Er=Object(et.compose)([Object(Xe.withSelect)((function(e,t){var n=e(_e.store).getMedia,r=t.id;return{image:r?n(parseInt(r,10)):null}})),Object(Xe.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e(we.store).__unstableMarkNextChangeAsNotPersistent}}))])(kr);function Cr(e){var t=e.isHidden,n=Object(kn.a)(e,["isHidden"]);return t?Object(xe.createElement)(Ae.VisuallyHidden,Object(He.a)({as:we.RichText},n)):Object(xe.createElement)(we.RichText,n)}var xr=function(e){var t,n=e.attributes,r=e.isSelected,o=e.setAttributes,c=e.selectedImage,a=e.mediaPlaceholder,i=e.onMoveBackward,l=e.onMoveForward,s=e.onRemoveImage,u=e.onSelectImage,b=e.onDeselectImage,m=e.onSetImageAttributes,p=e.onFocusGalleryCaption,d=e.insertBlocksAfter,g=e.blockProps,h=n.align,O=n.columns,f=void 0===O?ir(n):O,v=n.caption,j=n.imageCrop,y=n.images;return Object(xe.createElement)("figure",Object(He.a)({},g,{className:Te()(g.className,(t={},Object(ye.a)(t,"align".concat(h),h),Object(ye.a)(t,"columns-".concat(f),f),Object(ye.a)(t,"is-cropped",j),t))}),Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var o=Object(Ce.sprintf)(
15
  /* translators: 1: the order number of the image. 2: the total number of images. */
16
- Object(Ce.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(xe.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(xe.createElement)(Er,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:r&&c===t,onMoveBackward:i(t),onMoveForward:l(t),onRemove:s(t),onSelect:u(t),onDeselect:b(t),setAttributes:function(e){return m(t,e)},caption:e.caption,"aria-label":o,sizeSlug:n.sizeSlug}))}))),a,Object(xe.createElement)(Cr,{isHidden:!r&&we.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(Ce.__)("Gallery caption text"),placeholder:Object(Ce.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return d(Object(ke.createBlock)("core/paragraph"))}}))};function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Br=[{value:"post",label:Object(Ce.__)("Attachment Page")},{value:"file",label:Object(Ce.__)("Media File")},{value:"none",label:Object(Ce.__)("None")}],Tr=["image"],zr=xe.Platform.select({web:Object(Ce.__)("Drag images, upload new ones or select files from your library."),native:Object(Ce.__)("ADD MEDIA")}),Nr=xe.Platform.select({web:{},native:{type:"stepper"}}),Mr=Object(et.compose)([Object(Xe.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e(_e.store).getMedia,c=(0,e(we.store).getSettings)(),a=c.imageSizes,i=c.mediaUpload,l=Object(xe.useMemo)((function(){return r?Object(Ee.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(Ee.reduce)(a,(function(e,t){var r=Object(Ee.get)(n,["sizes",t.slug,"url"]),o=Object(Ee.get)(n,["media_details","sizes",t.slug,"source_url"]);return Pr(Pr({},e),{},Object(ye.a)({},t.slug,r||o))}),{});return Pr(Pr({},e),{},Object(ye.a)({},parseInt(t,10),r))}),{}):{}}),[r,n,a]);return{imageSizes:a,mediaUpload:i,resizedImages:l}})),Ae.withNotices,Object(mr.withViewportMatch)({isNarrow:"< small"})])((function(e){var t=e.attributes,n=e.isSelected,r=e.noticeUI,o=e.noticeOperations,c=e.mediaUpload,a=e.imageSizes,i=e.resizedImages,l=e.onFocus,s=t.columns,u=void 0===s?ir(t):s,b=t.imageCrop,m=t.images,p=t.linkTo,d=t.sizeSlug,g=Object(xe.useState)(),h=Object($e.a)(g,2),O=h[0],f=h[1],v=Object(xe.useState)(),j=Object($e.a)(v,2),y=j[0],_=j[1],w=Object(Xe.useDispatch)(we.store).__unstableMarkNextChangeAsNotPersistent;function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t=Pr(Pr({},t),{},{ids:Object(Ee.map)(t.images,(function(e){var t=e.id;return parseInt(t,10)}))})),e.setAttributes(t)}function E(e,t){var n=Object(je.a)(m);n.splice(t,1,m[e]),n.splice(e,1,m[t]),f(t),k({images:n})}function C(e){var t=Object(Ee.toString)(e.id),n=Object(Ee.find)(m,{id:t}),r=n?n.caption:e.caption;if(!y)return r;var o=Object(Ee.find)(y,{id:t});return o&&o.caption!==e.caption?e.caption:r}function x(e){_(e.map((function(e){return{id:Object(Ee.toString)(e.id),caption:e.caption}}))),k({images:e.map((function(e){return Pr(Pr({},lr(e,d)),{},{caption:C(e),id:Object(Ee.toString)(e.id)})})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(xe.useEffect)((function(){if("web"===xe.Platform.OS&&m&&m.length>0&&Object(Ee.every)(m,(function(e){var t=e.url;return Object(Ye.isBlobURL)(t)}))){var e=Object(Ee.map)(m,(function(e){var t=e.url;return Object(Ye.getBlobByURL)(t)}));Object(Ee.forEach)(m,(function(e){var t=e.url;return Object(Ye.revokeBlobURL)(t)})),c({filesList:e,onFileChange:x,allowedTypes:["image"]})}}),[]),Object(xe.useEffect)((function(){n||f()}),[n]),Object(xe.useEffect)((function(){var e,t,n,r,o,c;p||(w(),k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(r=n.view)||void 0===r||null===(o=r.settings)||void 0===o||null===(c=o.defaultProps)||void 0===c?void 0:c.link)||"none"}))}),[p]);var S=!!m.length,P=Object(xe.createElement)(we.MediaPlaceholder,{addToGallery:S,isAppender:S,disableMediaButtons:S&&!n,icon:!S&&pr,labels:{title:!S&&Object(Ce.__)("Gallery"),instructions:!S&&zr},onSelect:x,accept:"image/*",allowedTypes:Tr,multiple:!0,value:m,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:S?void 0:r,onFocus:l}),B=Object(we.useBlockProps)();if(!S)return Object(xe.createElement)(Se.View,B,P);var T=Object(Ee.map)(Object(Ee.filter)(a,(function(e){var t=e.slug;return Object(Ee.some)(i,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),z=S&&!Object(Ee.isEmpty)(T);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Gallery settings")},m.length>1&&Object(xe.createElement)(Ae.RangeControl,Object(He.a)({label:Object(Ce.__)("Columns"),value:u,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,m.length)},Nr,{required:!0})),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Crop images"),checked:!!b,onChange:function(){k({imageCrop:!b})},help:function(e){return e?Object(Ce.__)("Thumbnails are cropped to align."):Object(Ce.__)("Thumbnails are not cropped.")}}),Object(xe.createElement)(Ae.SelectControl,{label:Object(Ce.__)("Link to"),value:p,onChange:function(e){k({linkTo:e})},options:Br}),z&&Object(xe.createElement)(Ae.SelectControl,{label:Object(Ce.__)("Image size"),value:d,options:T,onChange:function(e){k({images:Object(Ee.map)(m,(function(t){if(!t.id)return t;var n=Object(Ee.get)(i,[parseInt(t.id,10),e]);return Pr(Pr({},t),n&&{url:n})})),sizeSlug:e})}}))),r,Object(xe.createElement)(xr,Object(He.a)({},e,{selectedImage:O,mediaPlaceholder:P,onMoveBackward:function(e){return function(){0!==e&&E(e,e-1)}},onMoveForward:function(e){return function(){e!==m.length-1&&E(e,e+1)}},onRemoveImage:function(e){return function(){var n=Object(Ee.filter)(m,(function(t,n){return e!==n}));f(),k({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){f(e)}},onDeselectImage:function(){return function(){f()}},onSetImageAttributes:function(e,t){m[e]&&k({images:[].concat(Object(je.a)(m.slice(0,e)),[Pr(Pr({},m[e]),t)],Object(je.a)(m.slice(e+1)))})},onFocusGalleryCaption:function(){f()},blockProps:B})))})),Vr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Ir={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(Ee.every)(e,["align",n])?n:void 0,r=Object(Ee.every)(e,["sizeSlug",r])?r:void 0;var o=Object(Ee.filter)(e,(function(e){return e.url}));return Object(ke.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,n=e.url,r=e.alt,o=e.caption;return{id:Object(Ee.toString)(t),url:n,alt:r,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:n,sizeSlug:r})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Vr(t).map((function(e){return{id:Object(Ee.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Vr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Ee.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(ke.createBlock)("core/gallery",{images:e.map((function(e){return lr({url:Object(Ye.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align,r=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(ke.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:n,sizeSlug:r})})):Object(ke.createBlock)("core/image",{align:n})}}]},Rr={apiVersion:2,name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},Hr=Rr.name,Ar={title:Object(Ce._x)("Gallery","block title"),description:Object(Ce.__)("Display multiple images in a rich gallery."),icon:ar,keywords:[Object(Ce.__)("images"),Object(Ce.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Ir,edit:Mr,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo,l="columns-".concat(o," ").concat(c?"is-cropped":"");return Object(xe.createElement)("figure",we.useBlockProps.save({className:l}),Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!we.RichText.isEmpty(a)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:br},Lr=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Dr=n(93),Fr=n.n(Dr),Gr={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},Ur=Gr.name,qr={title:Object(Ce._x)("Archives","block title"),description:Object(Ce.__)("Display a monthly archive of your posts."),icon:Lr,example:{},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Archives settings")},Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Display as dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Show post counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(xe.createElement)("div",Object(we.useBlockProps)(),Object(xe.createElement)(Ae.Disabled,null,Object(xe.createElement)(Fr.a,{block:"core/archives",attributes:t}))))}},Wr=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Zr=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(xe.createElement)("figure",null,Object(xe.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!we.RichText.isEmpty(r)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}}],Jr=["audio"],Qr=Object(Ae.withNotices)((function(e){var t=e.attributes,n=e.noticeOperations,r=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,p=t.src,d=Object(we.useBlockProps)(),g=Object(Xe.useSelect)((function(e){return(0,e(we.store).getSettings)().mediaUpload}),[]);function h(e){return function(t){r(Object(ye.a)({},e,t))}}function O(e){if(e!==p){var t=gt({attributes:{url:e}});if(void 0!==t)return void o(t);r({src:e,id:void 0})}}function f(e){n.removeAllNotices(),n.createErrorNotice(e)}function v(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}return Object(xe.useEffect)((function(){if(!l&&Object(Ye.isBlobURL)(p)){var e=Object(Ye.getBlobByURL)(p);e&&g({filesList:[e],onFileChange:function(e){var t=Object($e.a)(e,1)[0],n=t.id,o=t.url;r({id:n,src:o})},onError:function(e){r({src:void 0,id:void 0}),n.createErrorNotice(e)},allowedTypes:Jr})}}),[]),p?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(we.MediaReplaceFlow,{mediaId:l,mediaURL:p,allowedTypes:Jr,accept:"audio/*",onSelect:v,onSelectURL:O,onError:f})),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Audio settings")},Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Ce.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Loop"),onChange:h("loop"),checked:b}),Object(xe.createElement)(Ae.SelectControl,{label:Object(Ce.__)("Preload"),value:m||"",onChange:function(e){return r({preload:e||void 0})},options:[{value:"",label:Object(Ce.__)("Browser default")},{value:"auto",label:Object(Ce.__)("Auto")},{value:"metadata",label:Object(Ce.__)("Metadata")},{value:"none",label:Object(Ce.__)("None")}]}))),Object(xe.createElement)("figure",d,Object(xe.createElement)(Ae.Disabled,null,Object(xe.createElement)("audio",{controls:"controls",src:p})),(!we.RichText.isEmpty(u)||c)&&Object(xe.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(Ce.__)("Audio caption text"),placeholder:Object(Ce.__)("Write caption…"),value:u,onChange:function(e){return r({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(ke.createBlock)("core/paragraph"))}}))):Object(xe.createElement)("div",d,Object(xe.createElement)(we.MediaPlaceholder,{icon:Object(xe.createElement)(we.BlockIcon,{icon:Wr}),onSelect:v,onSelectURL:O,accept:"audio/*",allowedTypes:Jr,value:t,notices:a,onError:f}))})),Kr={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(ke.createBlock)("core/audio",{src:Object(Ye.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp3,o=t.m4a,c=t.ogg,a=t.wav,i=t.wma;return n||r||o||c||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},$r={apiVersion:2,name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},Yr=$r.name,Xr={title:Object(Ce._x)("Audio","block title"),description:Object(Ce.__)("Embed a simple audio player."),keywords:[Object(Ce.__)("music"),Object(Ce.__)("sound"),Object(Ce.__)("podcast"),Object(Ce.__)("recording")],icon:Wr,transforms:Kr,deprecated:Zr,edit:Qr,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(xe.createElement)("figure",we.useBlockProps.save(),Object(xe.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!we.RichText.isEmpty(r)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}},eo=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ro=[{supports:{align:["center","left","right"],anchor:!0},save:function(){return Object(xe.createElement)("div",null,Object(xe.createElement)(we.InnerBlocks.Content,null))},isEligible:function(e){var t=e.align;return t&&["center","left","right"].includes(t)},migrate:function(e){return no(no({},e),{},{align:void 0,contentJustification:e.align})}}],oo={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(ke.createBlock)("core/buttons",{},e.map((function(e){return Object(ke.createBlock)("core/button",e)})))}},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(ke.createBlock)("core/buttons",{},e.map((function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",r=t.querySelector("a"),o=null==r?void 0:r.getAttribute("href");return Object(ke.createBlock)("core/button",{text:n,url:o})})))},isMatch:function(e){return e.every((function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",r=t.querySelectorAll("a");return n.length<=30&&r.length<=1}))}}]},co=n(409);function ao(e,t){var n,r,o,c,a,i,l,s,u,b,m,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=e.backgroundColor,g=e.textColor,h=e.gradient,O=e.style,f=Object(we.getColorClassName)("background-color",d),v=Object(we.__experimentalGetGradientClass)(h),j=Object(we.getColorClassName)("color",g),y=Te()(j,v,(a={},Object(ye.a)(a,f,!(null!=O&&null!==(n=O.color)&&void 0!==n&&n.gradient||!f)),Object(ye.a)(a,"has-text-color",g||(null==O||null===(r=O.color)||void 0===r?void 0:r.text)),Object(ye.a)(a,"has-background",d||(null==O||null===(o=O.color)||void 0===o?void 0:o.background)||h||(null==O||null===(c=O.color)||void 0===c?void 0:c.gradient)),a)),_=null!=O&&null!==(i=O.color)&&void 0!==i&&i.background||null!=O&&null!==(l=O.color)&&void 0!==l&&l.text||null!=O&&null!==(s=O.color)&&void 0!==s&&s.gradient?{background:null!=O&&null!==(u=O.color)&&void 0!==u&&u.gradient?O.color.gradient:void 0,backgroundColor:null!=O&&null!==(b=O.color)&&void 0!==b&&b.background?O.color.background:void 0,color:null!=O&&null!==(m=O.color)&&void 0!==m&&m.text?O.color.text:void 0}:{};if(p){if(d){var w=Object(we.getColorObjectByAttributeValues)(t,d);_.backgroundColor=w.color}if(g){var k=Object(we.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var so=function(e){if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),lo(lo({},Object(Ee.omit)(e,["customTextColor","customBackgroundColor","customGradient"])),{},{style:t})},uo=function(e){return so(Object(Ee.omit)(lo(lo({},e),{},{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"]))},bo={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},mo=[{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:lo(lo({},bo),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}}),save:function(e){var t=e.attributes,n=e.className,r=t.borderRadius,o=t.linkTarget,c=t.rel,a=t.text,i=t.title,l=t.url,s=t.width,u=ao(t),b=Te()("wp-block-button__link",u.className,{"no-border-radius":0===r}),m=lo({borderRadius:r?r+"px":void 0},u.style),p=Te()(n,Object(ye.a)({},"has-custom-width wp-block-button__width-".concat(s),s));return Object(xe.createElement)("div",we.useBlockProps.save({className:p}),Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:b,href:l,title:i,style:m,value:a,target:o,rel:c}))}},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:lo(lo({},bo),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}),save:function(e){var t=e.attributes,n=t.borderRadius,r=t.linkTarget,o=t.rel,c=t.text,a=t.title,i=t.url,l=Te()("wp-block-button__link",{"no-border-radius":0===n}),s={borderRadius:n?n+"px":void 0};return Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:l,href:i,title:a,style:s,value:c,target:r,rel:o})}},{supports:{align:!0,alignWide:!1},attributes:lo(lo({},bo),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}}),isEligible:function(e){return!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient},migrate:so,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,c=n.customBackgroundColor,a=n.customTextColor,i=n.customGradient,l=n.linkTarget,s=n.gradient,u=n.rel,b=n.text,m=n.textColor,p=n.title,d=n.url,g=Object(we.getColorClassName)("color",m),h=!i&&Object(we.getColorClassName)("background-color",r),O=Object(we.__experimentalGetGradientClass)(s),f=Te()("wp-block-button__link",(t={"has-text-color":m||a},Object(ye.a)(t,g,g),Object(ye.a)(t,"has-background",r||c||i||s),Object(ye.a)(t,h,h),Object(ye.a)(t,"no-border-radius",0===o),Object(ye.a)(t,O,O),t)),v={background:i||void 0,backgroundColor:h||i||s?void 0:c,color:g?void 0:a,borderRadius:o?o+"px":void 0};return Object(xe.createElement)("div",null,Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:f,href:d,title:p,style:v,value:b,target:l,rel:u}))}},{attributes:lo(lo({},bo),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),so(lo(lo({},e),{},{className:t||void 0,borderRadius:0}))},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.customTextColor,a=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(we.getColorClassName)("color",s),p=Object(we.getColorClassName)("background-color",r),d=Te()("wp-block-button__link",(t={"has-text-color":s||c},Object(ye.a)(t,m,m),Object(ye.a)(t,"has-background",r||o),Object(ye.a)(t,p,p),t)),g={backgroundColor:p?void 0:o,color:m?void 0:c};return Object(xe.createElement)("div",null,Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:d,href:b,title:u,style:g,value:l,target:a,rel:i}))}},{attributes:lo(lo({},bo),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),migrate:uo,save:function(e){var t,n=e.attributes,r=n.url,o=n.text,c=n.title,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(we.getColorClassName)("color",i),b=Object(we.getColorClassName)("background-color",a),m=Te()("wp-block-button__link",(t={"has-text-color":i||s},Object(ye.a)(t,u,u),Object(ye.a)(t,"has-background",a||l),Object(ye.a)(t,b,b),t)),p={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(xe.createElement)("div",null,Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:m,href:r,title:c,style:p,value:o}))}},{attributes:lo(lo({},bo),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(xe.createElement)("div",{className:"align".concat(c)},Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:a,value:r}))},migrate:uo},{attributes:lo(lo({},bo),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a=t.color,i=t.textColor;return Object(xe.createElement)("div",{className:"align".concat(c),style:{backgroundColor:a}},Object(xe.createElement)(we.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:uo}],po=n(240),go=n(283);function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fo=[];function vo(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=n,c=Object(xe.useCallback)((function(e){r(void 0===e?{borderRadius:o}:{borderRadius:e})}),[r]);return Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Border settings")},Object(xe.createElement)(Ae.RangeControl,{value:n,label:Object(Ce.__)("Border radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:c}))}function jo(e){var t=e.selectedWidth,n=e.setAttributes;return Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Width settings")},Object(xe.createElement)(Ae.ButtonGroup,{"aria-label":Object(Ce.__)("Button width")},[25,50,75,100].map((function(e){return Object(xe.createElement)(Ae.Button,{key:e,isSmall:!0,isPrimary:e===t,onClick:function(){var r;n({width:t===(r=e)?void 0:r})}},e,"%")}))))}function yo(e){var t,n=e.isSelected,r=e.url,o=e.setAttributes,c=e.opensInNewTab,a=e.onToggleOpenInNewTab,i=e.anchorRef,l=Object(xe.useState)(!1),s=Object($e.a)(l,2),u=s[0],b=s[1],m=!!r,p=m&&n,d=function(){return b(!0),!1},g=function(){o({url:void 0,linkTarget:void 0,rel:void 0}),b(!1)},h=(u||p)&&Object(xe.createElement)(Ae.Popover,{position:"bottom center",onClose:function(){return b(!1)},anchorRef:null==i?void 0:i.current},Object(xe.createElement)(we.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:r,opensInNewTab:c},onChange:function(e){var t=e.url,n=void 0===t?"":t,r=e.opensInNewTab;o({url:n}),c!==r&&a(r)}}));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(Ae.ToolbarGroup,null,!m&&Object(xe.createElement)(Ae.ToolbarButton,{name:"link",icon:po.a,title:Object(Ce.__)("Link"),shortcut:Nn.displayShortcut.primary("k"),onClick:d}),p&&Object(xe.createElement)(Ae.ToolbarButton,{name:"link",icon:go.a,title:Object(Ce.__)("Unlink"),shortcut:Nn.displayShortcut.primaryShift("k"),onClick:g,isActive:!0}))),n&&Object(xe.createElement)(Ae.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(ye.a)(t,Nn.rawShortcut.primary("k"),d),Object(ye.a)(t,Nn.rawShortcut.primaryShift("k"),g),t)}),h)}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eo={apiVersion:2,name:"core/button",category:"design",parent:["core/buttons"],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},style:{type:"object"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},editorStyle:"wp-block-button-editor",style:"wp-block-button"},Co=Eo.name,xo={title:Object(Ce._x)("Button","block title"),description:Object(Ce.__)("Prompt visitors to take action with a button-style link."),icon:co.a,keywords:[Object(Ce.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Ce.__)("Call to Action")}},styles:[{name:"fill",label:Object(Ce.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Ce.__)("Outline")}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.isSelected,c=e.onReplace,a=e.mergeBlocks,i=t.borderRadius,l=t.linkTarget,s=t.placeholder,u=t.rel,b=t.text,m=t.url,p=t.width,d=Object(xe.useCallback)((function(e){n({rel:e})}),[n]),g=Object(we.__experimentalUseEditorFeature)("color.palette")||fo,h=Object(xe.useCallback)((function(e){var t=e?"_blank":void 0,r=u;t&&!u?r="noreferrer noopener":t||"noreferrer noopener"!==u||(r=void 0),n({linkTarget:t,rel:r})}),[u,n]),O=ao(t,g,!0),f=Object(xe.useRef)(),v=Object(we.useBlockProps)({ref:f});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("div",Object(He.a)({},v,{className:Te()(v.className,Object(ye.a)({},"has-custom-width wp-block-button__width-".concat(p),p))}),Object(xe.createElement)(we.RichText,{"aria-label":Object(Ce.__)("Button text"),placeholder:s||Object(Ce.__)("Add text…"),value:b,onChange:function(e){n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:Te()(r,"wp-block-button__link",O.className,{"no-border-radius":0===i}),style:Oo({borderRadius:i?i+"px":void 0},O.style),onSplit:function(e){return Object(ke.createBlock)("core/button",Oo(Oo({},t),{},{text:e}))},onReplace:c,onMerge:a,identifier:"text"})),Object(xe.createElement)(yo,{url:m,setAttributes:n,isSelected:o,opensInNewTab:"_blank"===l,onToggleOpenInNewTab:h,anchorRef:f}),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(vo,{borderRadius:i,setAttributes:n}),Object(xe.createElement)(jo,{selectedWidth:p,setAttributes:n})),Object(xe.createElement)(we.InspectorAdvancedControls,null,Object(xe.createElement)(Ae.TextControl,{label:Object(Ce.__)("Link rel"),value:u||"",onChange:d})))},save:function(e){var t=e.attributes,n=e.className,r=t.borderRadius,o=t.linkTarget,c=t.rel,a=t.text,i=t.title,l=t.url,s=t.width,u=ao(t),b=Te()("wp-block-button__link",u.className,{"no-border-radius":0===r}),m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({borderRadius:r?r+"px":void 0},u.style),p=Te()(n,Object(ye.a)({},"has-custom-width wp-block-button__width-".concat(s),s));return a&&Object(xe.createElement)("div",we.useBlockProps.save({className:p}),Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:b,href:l,title:i,style:m,value:a,target:o,rel:c}))},deprecated:mo,merge:function(e,t){var n=t.text,r=void 0===n?"":n;return ko(ko({},e),{},{text:(e.text||"")+r})}},So=[Co],Po=[["core/button"]],Bo=[{name:"buttons-horizontal",isDefault:!0,title:Object(Ce.__)("Horizontal"),description:Object(Ce.__)("Buttons shown in a row."),attributes:{orientation:"horizontal"},scope:["transform"]},{name:"buttons-vertical",title:Object(Ce.__)("Vertical"),description:Object(Ce.__)("Buttons shown in a column."),attributes:{orientation:"vertical"},scope:["transform"]}],To={apiVersion:2,name:"core/buttons",category:"design",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},zo=To.name,No={title:Object(Ce._x)("Buttons","block title"),description:Object(Ce.__)("Prompt visitors to take action with a group of button-style links."),icon:eo,keywords:[Object(Ce.__)("link")],example:{innerBlocks:[{name:"core/button",attributes:{text:Object(Ce.__)("Find out more")}},{name:"core/button",attributes:{text:Object(Ce.__)("Contact us")}}]},deprecated:ro,transforms:oo,edit:function(e){var t,n=e.attributes,r=n.contentJustification,o=n.orientation,c=e.setAttributes,a=Object(we.useBlockProps)({className:Te()((t={},Object(ye.a)(t,"is-content-justification-".concat(r),r),Object(ye.a)(t,"is-vertical","vertical"===o),t))}),i=Object(we.__experimentalUseInnerBlocksProps)(a,{allowedBlocks:So,template:Po,orientation:o,__experimentalLayout:{type:"default",alignments:[]},templateInsertUpdatesSelection:!0}),l="vertical"===o?["left","center","right"]:["left","center","right","space-between"];return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(we.JustifyToolbar,{allowedControls:l,value:r,onChange:function(e){return c({contentJustification:e})},popoverProps:{position:"bottom right",isAlternate:!0}})),Object(xe.createElement)("div",i))},save:function(e){var t,n=e.attributes,r=n.contentJustification,o=n.orientation;return Object(xe.createElement)("div",we.useBlockProps.save({className:Te()((t={},Object(ye.a)(t,"is-content-justification-".concat(r),r),Object(ye.a)(t,"is-vertical","vertical"===o),t))}),Object(xe.createElement)(we.InnerBlocks.Content,null))},variations:Bo},Mo=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Vo=n(58),Io=n.n(Vo),Ro=n(36);function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lo=ut()((function(e){if(!e)return{};var t=Io()(e);return{year:t.year(),month:t.month()+1}})),Do={apiVersion:2,name:"core/calendar",category:"widgets",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},Fo=Do.name,Go={title:Object(Ce._x)("Calendar","block title"),description:Object(Ce.__)("A calendar of your site’s posts."),icon:Mo,keywords:[Object(Ce.__)("posts"),Object(Ce.__)("archive")],example:{},edit:function(e){var t=e.attributes,n=Object(Xe.useSelect)((function(e){var t=e(Ro.store).getEditedPostAttribute;return"post"===t("type")?t("date"):void 0}),[]);return Object(xe.createElement)("div",Object(we.useBlockProps)(),Object(xe.createElement)(Ae.Disabled,null,Object(xe.createElement)(Fr.a,{block:"core/calendar",attributes:Ao(Ao({},t),Lo(n))})))}},Uo=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),qo=Object(xe.createElement)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(xe.createElement)(Se.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"})),Wo={apiVersion:2,name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},Zo=Wo.name,Jo={title:Object(Ce._x)("Categories","block title"),description:Object(Ce.__)("Display a list of all categories."),icon:Uo,example:{},edit:function e(t){var n,r=t.attributes,o=r.displayAsDropdown,c=r.showHierarchy,a=r.showPostCounts,i=t.setAttributes,l=Object(et.useInstanceId)(e,"blocks-category-select"),s=Object(Xe.useSelect)((function(e){var t=e(_e.store).getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}}),[]),u=s.categories,b=s.isRequesting,m=function(e){return null!=u&&u.length?null===e?u:u.filter((function(t){return t.parent===e})):[]},p=function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)},d=function(e){return function(t){return i(Object(ye.a)({},e,t))}},g=function(e){return e?Object(Ee.unescape)(e).trim():Object(Ce.__)("(Untitled)")};return Object(xe.createElement)("div",Object(we.useBlockProps)(),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Categories settings")},Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Display as dropdown"),checked:o,onChange:d("displayAsDropdown")}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Show hierarchy"),checked:c,onChange:d("showHierarchy")}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Show post counts"),checked:a,onChange:d("showPostCounts")}))),b&&Object(xe.createElement)(Ae.Placeholder,{icon:qo,label:Object(Ce.__)("Categories")},Object(xe.createElement)(Ae.Spinner,null)),!b&&0===u.length&&Object(xe.createElement)("p",null,Object(Ce.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!b&&u.length>0&&(o?(n=m(c?0:null),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Ae.VisuallyHidden,{as:"label",htmlFor:l},Object(Ce.__)("Categories")),Object(xe.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},n.map((function(e){return function e(t,n){var r=t.id,o=t.count,i=t.name,l=m(r);return[Object(xe.createElement)("option",{key:r},Object(Ee.times)(3*n,(function(){return" "})),g(i),a&&" (".concat(o,")")),c&&!!l.length&&l.map((function(t){return e(t,n+1)}))]}(e,0)}))))):function(){var e=m(c?0:null);return Object(xe.createElement)("ul",{className:p(0)},e.map((function(e){return function e(t,n){var r=m(t.id),o=t.id,i=t.link,l=t.count,s=t.name;return Object(xe.createElement)("li",{key:o},Object(xe.createElement)("a",{href:i,target:"_blank",rel:"noreferrer noopener"},g(s)),a&&Object(xe.createElement)("span",{className:"wp-block-categories__post-count"}," (".concat(l,")")),c&&!!r.length&&Object(xe.createElement)("ul",{className:p(n+1)},r.map((function(t){return e(t,n+1)}))))}(e,0)})))}()))}},Qo=n(410);function Ko(e){return e.replace(/\[/g,"&#91;")}function $o(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var Yo={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(ke.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(ke.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Xo={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,fontSize:!0},style:"wp-block-code"},ec=Xo.name,tc={title:Object(Ce._x)("Code","block title"),description:Object(Ce.__)("Display code snippets that respect your spacing and tabs."),icon:Qo.a,example:{attributes:{
17
  // translators: Preserve \n markers for line breaks
18
  content:Object(Ce.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:Yo,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.onRemove,o=Object(we.useBlockProps)();return Object(xe.createElement)("pre",o,Object(xe.createElement)(we.RichText,{tagName:"code",value:t.content,onChange:function(e){return n({content:e})},onRemove:r,placeholder:Object(Ce.__)("Write code…"),"aria-label":Object(Ce.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){var t,n=e.attributes;return Object(xe.createElement)("pre",we.useBlockProps.save(),Object(xe.createElement)(we.RichText.Content,{tagName:"code",value:(t=n.content,Object(Ee.flow)(Ko,$o)(t||""))}))}},nc=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ac(e){var t,n=ac.doc;n||(n=document.implementation.createHTMLDocument(""),ac.doc=n),n.body.innerHTML=e;var r,o=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return cc(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cc(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw c}}}}(n.body.firstChild.classList);try{for(o.s();!(r=o.n()).done;)if(t=r.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}catch(e){o.e(e)}finally{o.f()}}var ic=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:function(e){if(!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),oc(oc({},Object(Ee.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.backgroundColor,c=n.customBackgroundColor,a=n.textColor,i=n.customTextColor,l=Object(we.getColorClassName)("background-color",o),s=Object(we.getColorClassName)("color",a),u=Te()((t={"has-background":o||c,"has-text-color":a||i},Object(ye.a)(t,l,l),Object(ye.a)(t,s,s),Object(ye.a)(t,"are-vertically-aligned-".concat(r),r),t)),b={backgroundColor:l?void 0:c,color:s?void 0:i};return Object(xe.createElement)("div",{className:u||void 0,style:b},Object(xe.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==ac(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=ac(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(ke.createBlock)("core/column",{},e)}));return[Object(Ee.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(xe.createElement)("div",{className:"has-".concat(t,"-columns")},Object(xe.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(Ee.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=Te()("has-".concat(r,"-columns"),Object(ye.a)({},"are-vertically-aligned-".concat(n),n));return Object(xe.createElement)("div",{className:o},Object(xe.createElement)(we.InnerBlocks.Content,null))}}],lc=function(e){var t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function sc(e,t){var n=e.attributes.width;return lc(void 0===n?100/t:n)}function uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Ee.sumBy)(e,(function(e){return sc(e,t)}))}function bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=sc(n,t);return Object.assign(e,Object(ye.a)({},n.clientId,r))}),{})}function mc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=uc(e,n);return Object(Ee.mapValues)(bc(e,n),(function(e){return lc(t*e/r)}))}function pc(e,t){return e.map((function(e){return Object(Ee.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var dc="web"===xe.Platform.OS,gc=[{value:"%",label:dc?"%":Object(Ce.__)("Percentage (%)"),default:""},{value:"px",label:dc?"px":Object(Ce.__)("Pixels (px)"),default:""},{value:"em",label:dc?"em":Object(Ce.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:dc?"rem":Object(Ce.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:dc?"vw":Object(Ce.__)("Viewport width (vw)"),default:""}],hc=["core/column"],Oc=Object(Xe.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e(we.store).updateBlockAttributes,i=n.select(we.store).getBlockOrder;c({verticalAlignment:r}),i(o).forEach((function(e){a(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var c=t.clientId,a=e(we.store).replaceInnerBlocks,i=(0,n.select(we.store).getBlocks)(c),l=i.every((function(e){var t,n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)})),s=o>r;if(s&&l){var u=lc(100/o),b=mc(i,100-u);i=[].concat(Object(je.a)(pc(i,b)),Object(je.a)(Object(Ee.times)(o-r,(function(){return Object(ke.createBlock)("core/column",{width:u})}))))}else s?i=[].concat(Object(je.a)(i),Object(je.a)(Object(Ee.times)(o-r,(function(){return Object(ke.createBlock)("core/column")})))):(i=Object(Ee.dropRight)(i,r-o),l&&(i=pc(i,mc(i,100))));a(c,i)}}}))((function(e){var t=e.attributes,n=e.updateAlignment,r=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(Xe.useSelect)((function(e){return{count:e(we.store).getBlockCount(o)}}),[o]).count,i=Te()(Object(ye.a)({},"are-vertically-aligned-".concat(c),c)),l=Object(we.useBlockProps)({className:i}),s=Object(we.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:hc,orientation:"horizontal",renderAppender:!1});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(we.BlockVerticalAlignmentToolbar,{onChange:n,value:c})),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,null,Object(xe.createElement)(Ae.RangeControl,{label:Object(Ce.__)("Columns"),value:a,onChange:function(e){return r(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(xe.createElement)(Ae.Notice,{status:"warning",isDismissible:!1},Object(Ce.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(xe.createElement)("div",s))}));function fc(e){var t=e.clientId,n=e.name,r=e.setAttributes,o=Object(Xe.useSelect)((function(e){var t=e(ke.store),r=t.getBlockVariations,o=t.getBlockType,c=t.getDefaultBlockVariation;return{blockType:o(n),defaultVariation:c(n,"block"),variations:r(n,"block")}}),[n]),c=o.blockType,a=o.defaultVariation,i=o.variations,l=Object(Xe.useDispatch)(we.store).replaceInnerBlocks,s=Object(we.useBlockProps)();return Object(xe.createElement)("div",s,Object(xe.createElement)(we.__experimentalBlockVariationPicker,{icon:Object(Ee.get)(c,["icon","src"]),label:Object(Ee.get)(c,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&r(e.attributes),e.innerBlocks&&l(t,Object(ke.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var vc=[{name:"one-column-full",title:Object(Ce.__)("100"),description:Object(Ce.__)("One column"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Ce.__)("50 / 50"),description:Object(Ce.__)("Two columns; equal split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Ce.__)("30 / 70"),description:Object(Ce.__)("Two columns; one-third, two-thirds split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Ce.__)("70 / 30"),description:Object(Ce.__)("Two columns; two-thirds, one-third split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Ce.__)("33 / 33 / 33"),description:Object(Ce.__)("Three columns; equal split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Ce.__)("25 / 50 / 25"),description:Object(Ce.__)("Three columns; wide center column"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _c={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){var t=+(100/e.length).toFixed(2),n=e.map((function(e){var n=e.name,r=e.attributes,o=e.innerBlocks;return["core/column",{width:"".concat(t,"%")},[[n,yc({},r),o]]]}));return Object(ke.createBlock)("core/columns",{},Object(ke.createBlocksFromInnerBlocksTemplate)(n))},isMatch:function(e){var t=e.length;return t&&t<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:function(e,t){var n,r=e.align,o=e.backgroundColor,c=e.textColor,a=e.style,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaSizeSlug,b=e.mediaType,m=e.mediaUrl,p=e.mediaWidth,d=e.verticalAlignment;if("image"!==b&&b)n=["core/video",{id:l,src:m}];else{var g={id:l,alt:i,url:m,sizeSlug:u},h={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};n=["core/image",yc(yc({},g),h)]}var O=[["core/column",{width:"".concat(p,"%")},[n]],["core/column",{width:"".concat(100-p,"%")},t]];return"right"===s&&O.reverse(),Object(ke.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:c,style:a,verticalAlignment:d},Object(ke.createBlocksFromInnerBlocksTemplate)(O))}}]},wc={apiVersion:2,name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},kc=wc.name,Ec={title:Object(Ce._x)("Columns","block title"),icon:nc,description:Object(Ce.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:vc,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{
19
  /* translators: example text. */
13
  Object(Ce.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object(ke.createBlock)("core/quote",Kn(Kn({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(ke.createBlock)("core/paragraph")},textAlign:s}),(!we.RichText.isEmpty(b)||r)&&Object(xe.createElement)(we.RichText,{identifier:"citation",value:b,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":Object(Ce.__)("Quote citation text"),placeholder:// translators: placeholder text used for the citation
14
  Object(Ce.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:s,__unstableOnSplitAtEnd:function(){return i(Object(ke.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=Te()(Object(ye.a)({},"has-text-align-".concat(n),n));return Object(xe.createElement)("blockquote",we.useBlockProps.save({className:c}),Object(xe.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(xe.createElement)(we.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),nr(nr({},e),{},n&&"<p></p>"!==n?{value:e.value+n,citation:r}:{citation:r})},deprecated:Jn},ar=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function ir(e){return Math.min(3,e.images.length)}var lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(Ee.pick)(e,["alt","id","link","caption"]);n.url=Object(Ee.get)(e,["sizes",t,"url"])||Object(Ee.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(Ee.get)(e,["sizes","full","url"])||Object(Ee.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var br=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:function(e){var t=e.linkTo;return!t||"attachment"===t||"media"===t},migrate:function(e){var t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",ur(ur({},e),{},{linkTo:t})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(xe.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!we.RichText.isEmpty(a)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return ur(ur({},e),{},{ids:Object(Ee.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(xe.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!we.RichText.isEmpty(a)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.linkTo;return Object(xe.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(Ee.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return ur(ur({},e),{},{ids:Object(Ee.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.linkTo;return Object(xe.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.align,a=t.imageCrop,i=t.linkTo,l=Te()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(xe.createElement)("div",{className:l},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(xe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(xe.createElement)("a",{href:t},n):n)})))}}],mr=n(90),pr=Object(xe.createElement)(we.BlockIcon,{icon:ar}),dr=n(28),gr=n(29),hr=n(19),Or=n(32),fr=n(33),vr=n(23),jr=n(279),yr=n(278),_r=n(255),wr=n(162);var kr=function(e){Object(Or.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(vr.a)(t);if(n){var o=Object(vr.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(fr.a)(this,e)});function o(){var e;return Object(dr.a)(this,o),(e=r.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(hr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(hr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(hr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(hr.a)(e)),e.onEdit=e.onEdit.bind(Object(hr.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(hr.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(hr.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(gr.a)(o,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[Nn.BACKSPACE,Nn.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;r&&!o&&(c(),this.props.setAttributes({url:r.source_url,alt:r.alt_text})),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,n=t.setAttributes,r=t.id,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=lr(e,i);(function(e,t){return!e&&Object(Ye.isBlobURL)(t)})(r,o)&&c&&(l=Object(Ee.omit)(l,["alt"])),a&&!Object(Ee.get)(l,["caption"])&&(l=Object(Ee.omit)(l,["caption"])),n(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,n=t.setAttributes;e!==t.url&&(n({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,p=t.onMoveBackward,d=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(c){case"file":e=n;break;case"post":e=a}var O=Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ye.isBlobURL)(n)&&Object(xe.createElement)(Ae.Spinner,null)),f=Te()({"is-selected":s,"is-transient":Object(Ye.isBlobURL)(n)});return Object(xe.createElement)("figure",{className:f},!h&&(e?Object(xe.createElement)("a",{href:e},O):O),h&&Object(xe.createElement)(we.MediaPlaceholder,{labels:{title:Object(Ce.__)("Edit gallery image")},icon:Je,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:n}}),Object(xe.createElement)(Ae.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(xe.createElement)(Ae.Button,{icon:jr.a,onClick:i?void 0:p,label:Object(Ce.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(xe.createElement)(Ae.Button,{icon:yr.a,onClick:l?void 0:m,label:Object(Ce.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(xe.createElement)(Ae.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(xe.createElement)(Ae.Button,{icon:_r.a,onClick:this.onEdit,label:Object(Ce.__)("Replace image"),disabled:!s}),Object(xe.createElement)(Ae.Button,{icon:wr.a,onClick:b,label:Object(Ce.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(xe.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(Ce.__)("Image caption text"),placeholder:s?Object(Ce.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return d({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),o}(xe.Component),Er=Object(et.compose)([Object(Xe.withSelect)((function(e,t){var n=e(_e.store).getMedia,r=t.id;return{image:r?n(parseInt(r,10)):null}})),Object(Xe.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e(we.store).__unstableMarkNextChangeAsNotPersistent}}))])(kr);function Cr(e){var t=e.isHidden,n=Object(kn.a)(e,["isHidden"]);return t?Object(xe.createElement)(Ae.VisuallyHidden,Object(He.a)({as:we.RichText},n)):Object(xe.createElement)(we.RichText,n)}var xr=function(e){var t,n=e.attributes,r=e.isSelected,o=e.setAttributes,c=e.selectedImage,a=e.mediaPlaceholder,i=e.onMoveBackward,l=e.onMoveForward,s=e.onRemoveImage,u=e.onSelectImage,b=e.onDeselectImage,m=e.onSetImageAttributes,p=e.onFocusGalleryCaption,d=e.insertBlocksAfter,g=e.blockProps,h=n.align,O=n.columns,f=void 0===O?ir(n):O,v=n.caption,j=n.imageCrop,y=n.images;return Object(xe.createElement)("figure",Object(He.a)({},g,{className:Te()(g.className,(t={},Object(ye.a)(t,"align".concat(h),h),Object(ye.a)(t,"columns-".concat(f),f),Object(ye.a)(t,"is-cropped",j),t))}),Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var o=Object(Ce.sprintf)(
15
  /* translators: 1: the order number of the image. 2: the total number of images. */
16
+ Object(Ce.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(xe.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(xe.createElement)(Er,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:r&&c===t,onMoveBackward:i(t),onMoveForward:l(t),onRemove:s(t),onSelect:u(t),onDeselect:b(t),setAttributes:function(e){return m(t,e)},caption:e.caption,"aria-label":o,sizeSlug:n.sizeSlug}))}))),a,Object(xe.createElement)(Cr,{isHidden:!r&&we.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(Ce.__)("Gallery caption text"),placeholder:Object(Ce.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return d(Object(ke.createBlock)("core/paragraph"))}}))};function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Br=[{value:"post",label:Object(Ce.__)("Attachment Page")},{value:"file",label:Object(Ce.__)("Media File")},{value:"none",label:Object(Ce.__)("None")}],Tr=["image"],zr=xe.Platform.select({web:Object(Ce.__)("Drag images, upload new ones or select files from your library."),native:Object(Ce.__)("ADD MEDIA")}),Nr=xe.Platform.select({web:{},native:{type:"stepper"}}),Mr=Object(et.compose)([Object(Xe.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e(_e.store).getMedia,c=(0,e(we.store).getSettings)(),a=c.imageSizes,i=c.mediaUpload,l=Object(xe.useMemo)((function(){return r?Object(Ee.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(Ee.reduce)(a,(function(e,t){var r=Object(Ee.get)(n,["sizes",t.slug,"url"]),o=Object(Ee.get)(n,["media_details","sizes",t.slug,"source_url"]);return Pr(Pr({},e),{},Object(ye.a)({},t.slug,r||o))}),{});return Pr(Pr({},e),{},Object(ye.a)({},parseInt(t,10),r))}),{}):{}}),[r,n,a]);return{imageSizes:a,mediaUpload:i,resizedImages:l}})),Ae.withNotices,Object(mr.withViewportMatch)({isNarrow:"< small"})])((function(e){var t=e.attributes,n=e.isSelected,r=e.noticeUI,o=e.noticeOperations,c=e.mediaUpload,a=e.imageSizes,i=e.resizedImages,l=e.onFocus,s=t.columns,u=void 0===s?ir(t):s,b=t.imageCrop,m=t.images,p=t.linkTo,d=t.sizeSlug,g=Object(xe.useState)(),h=Object($e.a)(g,2),O=h[0],f=h[1],v=Object(xe.useState)(),j=Object($e.a)(v,2),y=j[0],_=j[1],w=Object(Xe.useDispatch)(we.store).__unstableMarkNextChangeAsNotPersistent;function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t=Pr(Pr({},t),{},{ids:Object(Ee.map)(t.images,(function(e){var t=e.id;return parseInt(t,10)}))})),e.setAttributes(t)}function E(e,t){var n=Object(je.a)(m);n.splice(t,1,m[e]),n.splice(e,1,m[t]),f(t),k({images:n})}function C(e){var t=Object(Ee.toString)(e.id),n=Object(Ee.find)(m,{id:t}),r=n?n.caption:e.caption;if(!y)return r;var o=Object(Ee.find)(y,{id:t});return o&&o.caption!==e.caption?e.caption:r}function x(e){_(e.map((function(e){return{id:Object(Ee.toString)(e.id),caption:e.caption}}))),k({images:e.map((function(e){return Pr(Pr({},lr(e,d)),{},{caption:C(e),id:Object(Ee.toString)(e.id)})})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(xe.useEffect)((function(){if("web"===xe.Platform.OS&&m&&m.length>0&&Object(Ee.every)(m,(function(e){var t=e.url;return Object(Ye.isBlobURL)(t)}))){var e=Object(Ee.map)(m,(function(e){var t=e.url;return Object(Ye.getBlobByURL)(t)}));Object(Ee.forEach)(m,(function(e){var t=e.url;return Object(Ye.revokeBlobURL)(t)})),c({filesList:e,onFileChange:x,allowedTypes:["image"]})}}),[]),Object(xe.useEffect)((function(){n||f()}),[n]),Object(xe.useEffect)((function(){var e,t,n,r,o,c;p||(w(),k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(r=n.view)||void 0===r||null===(o=r.settings)||void 0===o||null===(c=o.defaultProps)||void 0===c?void 0:c.link)||"none"}))}),[p]);var S=!!m.length,P=Object(xe.createElement)(we.MediaPlaceholder,{addToGallery:S,isAppender:S,disableMediaButtons:S&&!n,icon:!S&&pr,labels:{title:!S&&Object(Ce.__)("Gallery"),instructions:!S&&zr},onSelect:x,accept:"image/*",allowedTypes:Tr,multiple:!0,value:m,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:S?void 0:r,onFocus:l}),B=Object(we.useBlockProps)();if(!S)return Object(xe.createElement)(Se.View,B,P);var T=Object(Ee.map)(Object(Ee.filter)(a,(function(e){var t=e.slug;return Object(Ee.some)(i,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),z=S&&!Object(Ee.isEmpty)(T);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Gallery settings")},m.length>1&&Object(xe.createElement)(Ae.RangeControl,Object(He.a)({label:Object(Ce.__)("Columns"),value:u,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,m.length)},Nr,{required:!0})),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Crop images"),checked:!!b,onChange:function(){k({imageCrop:!b})},help:function(e){return e?Object(Ce.__)("Thumbnails are cropped to align."):Object(Ce.__)("Thumbnails are not cropped.")}}),Object(xe.createElement)(Ae.SelectControl,{label:Object(Ce.__)("Link to"),value:p,onChange:function(e){k({linkTo:e})},options:Br}),z&&Object(xe.createElement)(Ae.SelectControl,{label:Object(Ce.__)("Image size"),value:d,options:T,onChange:function(e){k({images:Object(Ee.map)(m,(function(t){if(!t.id)return t;var n=Object(Ee.get)(i,[parseInt(t.id,10),e]);return Pr(Pr({},t),n&&{url:n})})),sizeSlug:e})}}))),r,Object(xe.createElement)(xr,Object(He.a)({},e,{selectedImage:O,mediaPlaceholder:P,onMoveBackward:function(e){return function(){0!==e&&E(e,e-1)}},onMoveForward:function(e){return function(){e!==m.length-1&&E(e,e+1)}},onRemoveImage:function(e){return function(){var n=Object(Ee.filter)(m,(function(t,n){return e!==n}));f(),k({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){f(e)}},onDeselectImage:function(){return function(){f()}},onSetImageAttributes:function(e,t){m[e]&&k({images:[].concat(Object(je.a)(m.slice(0,e)),[Pr(Pr({},m[e]),t)],Object(je.a)(m.slice(e+1)))})},onFocusGalleryCaption:function(){f()},blockProps:B})))})),Vr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Ir={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(Ee.every)(e,["align",n])?n:void 0,r=Object(Ee.every)(e,["sizeSlug",r])?r:void 0;var o=Object(Ee.filter)(e,(function(e){return e.url}));return Object(ke.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,n=e.url,r=e.alt,o=e.caption;return{id:Object(Ee.toString)(t),url:n,alt:r,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:n,sizeSlug:r})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Vr(t).map((function(e){return{id:Object(Ee.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Vr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Ee.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(ke.createBlock)("core/gallery",{images:e.map((function(e){return lr({url:Object(Ye.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align,r=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(ke.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:n,sizeSlug:r})})):Object(ke.createBlock)("core/image",{align:n})}}]},Rr={apiVersion:2,name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},Hr=Rr.name,Ar={title:Object(Ce._x)("Gallery","block title"),description:Object(Ce.__)("Display multiple images in a rich gallery."),icon:ar,keywords:[Object(Ce.__)("images"),Object(Ce.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Ir,edit:Mr,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ir(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo,l="columns-".concat(o," ").concat(c?"is-cropped":"");return Object(xe.createElement)("figure",we.useBlockProps.save({className:l}),Object(xe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var n=Object(xe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(xe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(xe.createElement)("figure",null,t?Object(xe.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!we.RichText.isEmpty(a)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:br},Lr=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Dr=n(93),Fr=n.n(Dr),Gr={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},Ur=Gr.name,qr={title:Object(Ce._x)("Archives","block title"),description:Object(Ce.__)("Display a monthly archive of your posts."),icon:Lr,example:{},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Archives settings")},Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Display as dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Show post counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(xe.createElement)("div",Object(we.useBlockProps)(),Object(xe.createElement)(Ae.Disabled,null,Object(xe.createElement)(Fr.a,{block:"core/archives",attributes:t}))))}},Wr=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Zr=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(xe.createElement)("figure",null,Object(xe.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!we.RichText.isEmpty(r)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}}],Jr=["audio"],Qr=Object(Ae.withNotices)((function(e){var t=e.attributes,n=e.noticeOperations,r=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,p=t.src,d=Object(we.useBlockProps)(),g=Object(Xe.useSelect)((function(e){return(0,e(we.store).getSettings)().mediaUpload}),[]);function h(e){return function(t){r(Object(ye.a)({},e,t))}}function O(e){if(e!==p){var t=gt({attributes:{url:e}});if(void 0!==t)return void o(t);r({src:e,id:void 0})}}function f(e){n.removeAllNotices(),n.createErrorNotice(e)}function v(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}return Object(xe.useEffect)((function(){if(!l&&Object(Ye.isBlobURL)(p)){var e=Object(Ye.getBlobByURL)(p);e&&g({filesList:[e],onFileChange:function(e){var t=Object($e.a)(e,1)[0],n=t.id,o=t.url;r({id:n,src:o})},onError:function(e){r({src:void 0,id:void 0}),n.createErrorNotice(e)},allowedTypes:Jr})}}),[]),p?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(we.MediaReplaceFlow,{mediaId:l,mediaURL:p,allowedTypes:Jr,accept:"audio/*",onSelect:v,onSelectURL:O,onError:f})),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Audio settings")},Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Ce.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Loop"),onChange:h("loop"),checked:b}),Object(xe.createElement)(Ae.SelectControl,{label:Object(Ce.__)("Preload"),value:m||"",onChange:function(e){return r({preload:e||void 0})},options:[{value:"",label:Object(Ce.__)("Browser default")},{value:"auto",label:Object(Ce.__)("Auto")},{value:"metadata",label:Object(Ce.__)("Metadata")},{value:"none",label:Object(Ce.__)("None")}]}))),Object(xe.createElement)("figure",d,Object(xe.createElement)(Ae.Disabled,null,Object(xe.createElement)("audio",{controls:"controls",src:p})),(!we.RichText.isEmpty(u)||c)&&Object(xe.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(Ce.__)("Audio caption text"),placeholder:Object(Ce.__)("Write caption…"),value:u,onChange:function(e){return r({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(ke.createBlock)("core/paragraph"))}}))):Object(xe.createElement)("div",d,Object(xe.createElement)(we.MediaPlaceholder,{icon:Object(xe.createElement)(we.BlockIcon,{icon:Wr}),onSelect:v,onSelectURL:O,accept:"audio/*",allowedTypes:Jr,value:t,notices:a,onError:f}))})),Kr={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(ke.createBlock)("core/audio",{src:Object(Ye.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp3,o=t.m4a,c=t.ogg,a=t.wav,i=t.wma;return n||r||o||c||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},$r={apiVersion:2,name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},Yr=$r.name,Xr={title:Object(Ce._x)("Audio","block title"),description:Object(Ce.__)("Embed a simple audio player."),keywords:[Object(Ce.__)("music"),Object(Ce.__)("sound"),Object(Ce.__)("podcast"),Object(Ce.__)("recording")],icon:Wr,transforms:Kr,deprecated:Zr,edit:Qr,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(xe.createElement)("figure",we.useBlockProps.save(),Object(xe.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!we.RichText.isEmpty(r)&&Object(xe.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}},eo=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ro=[{supports:{align:["center","left","right"],anchor:!0},save:function(){return Object(xe.createElement)("div",null,Object(xe.createElement)(we.InnerBlocks.Content,null))},isEligible:function(e){var t=e.align;return t&&["center","left","right"].includes(t)},migrate:function(e){return no(no({},e),{},{align:void 0,contentJustification:e.align})}}],oo={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(ke.createBlock)("core/buttons",{},e.map((function(e){return Object(ke.createBlock)("core/button",e)})))}},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(ke.createBlock)("core/buttons",{},e.map((function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",r=t.querySelector("a"),o=null==r?void 0:r.getAttribute("href");return Object(ke.createBlock)("core/button",{text:n,url:o})})))},isMatch:function(e){return e.every((function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",r=t.querySelectorAll("a");return n.length<=30&&r.length<=1}))}}]},co=n(409);function ao(e,t){var n,r,o,c,a,i,l,s,u,b,m,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=e.backgroundColor,g=e.textColor,h=e.gradient,O=e.style,f=Object(we.getColorClassName)("background-color",d),v=Object(we.__experimentalGetGradientClass)(h),j=Object(we.getColorClassName)("color",g),y=Te()(j,v,(a={},Object(ye.a)(a,f,!(null!=O&&null!==(n=O.color)&&void 0!==n&&n.gradient||!f)),Object(ye.a)(a,"has-text-color",g||(null==O||null===(r=O.color)||void 0===r?void 0:r.text)),Object(ye.a)(a,"has-background",d||(null==O||null===(o=O.color)||void 0===o?void 0:o.background)||h||(null==O||null===(c=O.color)||void 0===c?void 0:c.gradient)),a)),_=null!=O&&null!==(i=O.color)&&void 0!==i&&i.background||null!=O&&null!==(l=O.color)&&void 0!==l&&l.text||null!=O&&null!==(s=O.color)&&void 0!==s&&s.gradient?{background:null!=O&&null!==(u=O.color)&&void 0!==u&&u.gradient?O.color.gradient:void 0,backgroundColor:null!=O&&null!==(b=O.color)&&void 0!==b&&b.background?O.color.background:void 0,color:null!=O&&null!==(m=O.color)&&void 0!==m&&m.text?O.color.text:void 0}:{};if(p){if(d){var w=Object(we.getColorObjectByAttributeValues)(t,d);_.backgroundColor=w.color}if(g){var k=Object(we.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var so=function(e){if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),lo(lo({},Object(Ee.omit)(e,["customTextColor","customBackgroundColor","customGradient"])),{},{style:t})},uo=function(e){return so(Object(Ee.omit)(lo(lo({},e),{},{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"]))},bo={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},mo=[{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:lo(lo({},bo),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}}),save:function(e){var t=e.attributes,n=e.className,r=t.borderRadius,o=t.linkTarget,c=t.rel,a=t.text,i=t.title,l=t.url,s=t.width,u=ao(t),b=Te()("wp-block-button__link",u.className,{"no-border-radius":0===r}),m=lo({borderRadius:r?r+"px":void 0},u.style),p=Te()(n,Object(ye.a)({},"has-custom-width wp-block-button__width-".concat(s),s));return Object(xe.createElement)("div",we.useBlockProps.save({className:p}),Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:b,href:l,title:i,style:m,value:a,target:o,rel:c}))}},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:lo(lo({},bo),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}),save:function(e){var t=e.attributes,n=t.borderRadius,r=t.linkTarget,o=t.rel,c=t.text,a=t.title,i=t.url,l=Te()("wp-block-button__link",{"no-border-radius":0===n}),s={borderRadius:n?n+"px":void 0};return Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:l,href:i,title:a,style:s,value:c,target:r,rel:o})}},{supports:{align:!0,alignWide:!1},attributes:lo(lo({},bo),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}}),isEligible:function(e){return!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient},migrate:so,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,c=n.customBackgroundColor,a=n.customTextColor,i=n.customGradient,l=n.linkTarget,s=n.gradient,u=n.rel,b=n.text,m=n.textColor,p=n.title,d=n.url,g=Object(we.getColorClassName)("color",m),h=!i&&Object(we.getColorClassName)("background-color",r),O=Object(we.__experimentalGetGradientClass)(s),f=Te()("wp-block-button__link",(t={"has-text-color":m||a},Object(ye.a)(t,g,g),Object(ye.a)(t,"has-background",r||c||i||s),Object(ye.a)(t,h,h),Object(ye.a)(t,"no-border-radius",0===o),Object(ye.a)(t,O,O),t)),v={background:i||void 0,backgroundColor:h||i||s?void 0:c,color:g?void 0:a,borderRadius:o?o+"px":void 0};return Object(xe.createElement)("div",null,Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:f,href:d,title:p,style:v,value:b,target:l,rel:u}))}},{attributes:lo(lo({},bo),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),so(lo(lo({},e),{},{className:t||void 0,borderRadius:0}))},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.customTextColor,a=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(we.getColorClassName)("color",s),p=Object(we.getColorClassName)("background-color",r),d=Te()("wp-block-button__link",(t={"has-text-color":s||c},Object(ye.a)(t,m,m),Object(ye.a)(t,"has-background",r||o),Object(ye.a)(t,p,p),t)),g={backgroundColor:p?void 0:o,color:m?void 0:c};return Object(xe.createElement)("div",null,Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:d,href:b,title:u,style:g,value:l,target:a,rel:i}))}},{attributes:lo(lo({},bo),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),migrate:uo,save:function(e){var t,n=e.attributes,r=n.url,o=n.text,c=n.title,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(we.getColorClassName)("color",i),b=Object(we.getColorClassName)("background-color",a),m=Te()("wp-block-button__link",(t={"has-text-color":i||s},Object(ye.a)(t,u,u),Object(ye.a)(t,"has-background",a||l),Object(ye.a)(t,b,b),t)),p={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(xe.createElement)("div",null,Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:m,href:r,title:c,style:p,value:o}))}},{attributes:lo(lo({},bo),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(xe.createElement)("div",{className:"align".concat(c)},Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:a,value:r}))},migrate:uo},{attributes:lo(lo({},bo),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a=t.color,i=t.textColor;return Object(xe.createElement)("div",{className:"align".concat(c),style:{backgroundColor:a}},Object(xe.createElement)(we.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:uo}],po=n(240),go=n(283);function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fo=[];function vo(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=n,c=Object(xe.useCallback)((function(e){r(void 0===e?{borderRadius:o}:{borderRadius:e})}),[r]);return Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Border settings")},Object(xe.createElement)(Ae.RangeControl,{value:n,label:Object(Ce.__)("Border radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:c}))}function jo(e){var t=e.selectedWidth,n=e.setAttributes;return Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Width settings")},Object(xe.createElement)(Ae.ButtonGroup,{"aria-label":Object(Ce.__)("Button width")},[25,50,75,100].map((function(e){return Object(xe.createElement)(Ae.Button,{key:e,isSmall:!0,isPrimary:e===t,onClick:function(){var r;n({width:t===(r=e)?void 0:r})}},e,"%")}))))}function yo(e){var t,n=e.isSelected,r=e.url,o=e.setAttributes,c=e.opensInNewTab,a=e.onToggleOpenInNewTab,i=e.anchorRef,l=Object(xe.useState)(!1),s=Object($e.a)(l,2),u=s[0],b=s[1],m=!!r,p=m&&n,d=function(){return b(!0),!1},g=function(){o({url:void 0,linkTarget:void 0,rel:void 0}),b(!1)},h=(u||p)&&Object(xe.createElement)(Ae.Popover,{position:"bottom center",onClose:function(){return b(!1)},anchorRef:null==i?void 0:i.current},Object(xe.createElement)(we.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:r,opensInNewTab:c},onChange:function(e){var t=e.url,n=void 0===t?"":t,r=e.opensInNewTab;o({url:n}),c!==r&&a(r)}}));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(Ae.ToolbarGroup,null,!m&&Object(xe.createElement)(Ae.ToolbarButton,{name:"link",icon:po.a,title:Object(Ce.__)("Link"),shortcut:Nn.displayShortcut.primary("k"),onClick:d}),p&&Object(xe.createElement)(Ae.ToolbarButton,{name:"link",icon:go.a,title:Object(Ce.__)("Unlink"),shortcut:Nn.displayShortcut.primaryShift("k"),onClick:g,isActive:!0}))),n&&Object(xe.createElement)(Ae.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(ye.a)(t,Nn.rawShortcut.primary("k"),d),Object(ye.a)(t,Nn.rawShortcut.primaryShift("k"),g),t)}),h)}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eo={apiVersion:2,name:"core/button",category:"design",parent:["core/buttons"],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},style:{type:"object"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},editorStyle:"wp-block-button-editor",style:"wp-block-button"},Co=Eo.name,xo={title:Object(Ce._x)("Button","block title"),description:Object(Ce.__)("Prompt visitors to take action with a button-style link."),icon:co.a,keywords:[Object(Ce.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Ce.__)("Call to Action")}},styles:[{name:"fill",label:Object(Ce.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Ce.__)("Outline")}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.isSelected,c=e.onReplace,a=e.mergeBlocks,i=t.borderRadius,l=t.linkTarget,s=t.placeholder,u=t.rel,b=t.text,m=t.url,p=t.width,d=Object(xe.useCallback)((function(e){n({rel:e})}),[n]),g=Object(we.__experimentalUseEditorFeature)("color.palette")||fo,h=Object(xe.useCallback)((function(e){var t=e?"_blank":void 0,r=u;t&&!u?r="noreferrer noopener":t||"noreferrer noopener"!==u||(r=void 0),n({linkTarget:t,rel:r})}),[u,n]),O=ao(t,g,!0),f=Object(xe.useRef)(),v=Object(we.useBlockProps)({ref:f});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("div",Object(He.a)({},v,{className:Te()(v.className,Object(ye.a)({},"has-custom-width wp-block-button__width-".concat(p),p))}),Object(xe.createElement)(we.RichText,{"aria-label":Object(Ce.__)("Button text"),placeholder:s||Object(Ce.__)("Add text…"),value:b,onChange:function(e){n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:Te()(r,"wp-block-button__link",O.className,{"no-border-radius":0===i}),style:Oo({borderRadius:i?i+"px":void 0},O.style),onSplit:function(e){return Object(ke.createBlock)("core/button",Oo(Oo({},t),{},{text:e}))},onReplace:c,onMerge:a,identifier:"text"})),Object(xe.createElement)(yo,{url:m,setAttributes:n,isSelected:o,opensInNewTab:"_blank"===l,onToggleOpenInNewTab:h,anchorRef:f}),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(vo,{borderRadius:i,setAttributes:n}),Object(xe.createElement)(jo,{selectedWidth:p,setAttributes:n})),Object(xe.createElement)(we.InspectorAdvancedControls,null,Object(xe.createElement)(Ae.TextControl,{label:Object(Ce.__)("Link rel"),value:u||"",onChange:d})))},save:function(e){var t=e.attributes,n=e.className,r=t.borderRadius,o=t.linkTarget,c=t.rel,a=t.text,i=t.title,l=t.url,s=t.width,u=ao(t),b=Te()("wp-block-button__link",u.className,{"no-border-radius":0===r}),m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({borderRadius:r?r+"px":void 0},u.style),p=Te()(n,Object(ye.a)({},"has-custom-width wp-block-button__width-".concat(s),s));return a&&Object(xe.createElement)("div",we.useBlockProps.save({className:p}),Object(xe.createElement)(we.RichText.Content,{tagName:"a",className:b,href:l,title:i,style:m,value:a,target:o,rel:c}))},deprecated:mo,merge:function(e,t){var n=t.text,r=void 0===n?"":n;return ko(ko({},e),{},{text:(e.text||"")+r})}},So=[Co],Po=[["core/button"]],Bo=[{name:"buttons-horizontal",isDefault:!0,title:Object(Ce.__)("Horizontal"),description:Object(Ce.__)("Buttons shown in a row."),attributes:{orientation:"horizontal"},scope:["transform"]},{name:"buttons-vertical",title:Object(Ce.__)("Vertical"),description:Object(Ce.__)("Buttons shown in a column."),attributes:{orientation:"vertical"},scope:["transform"]}],To={apiVersion:2,name:"core/buttons",category:"design",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},zo=To.name,No={title:Object(Ce._x)("Buttons","block title"),description:Object(Ce.__)("Prompt visitors to take action with a group of button-style links."),icon:eo,keywords:[Object(Ce.__)("link")],example:{innerBlocks:[{name:"core/button",attributes:{text:Object(Ce.__)("Find out more")}},{name:"core/button",attributes:{text:Object(Ce.__)("Contact us")}}]},deprecated:ro,transforms:oo,edit:function(e){var t,n=e.attributes,r=n.contentJustification,o=n.orientation,c=e.setAttributes,a=Object(we.useBlockProps)({className:Te()((t={},Object(ye.a)(t,"is-content-justification-".concat(r),r),Object(ye.a)(t,"is-vertical","vertical"===o),t))}),i=Object(we.__experimentalUseInnerBlocksProps)(a,{allowedBlocks:So,template:Po,orientation:o,__experimentalLayout:{type:"default",alignments:[]},templateInsertUpdatesSelection:!0}),l="vertical"===o?["left","center","right"]:["left","center","right","space-between"];return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(we.JustifyToolbar,{allowedControls:l,value:r,onChange:function(e){return c({contentJustification:e})},popoverProps:{position:"bottom right",isAlternate:!0}})),Object(xe.createElement)("div",i))},save:function(e){var t,n=e.attributes,r=n.contentJustification,o=n.orientation;return Object(xe.createElement)("div",we.useBlockProps.save({className:Te()((t={},Object(ye.a)(t,"is-content-justification-".concat(r),r),Object(ye.a)(t,"is-vertical","vertical"===o),t))}),Object(xe.createElement)(we.InnerBlocks.Content,null))},variations:Bo},Mo=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Vo=n(58),Io=n.n(Vo),Ro=n(36);function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lo=ut()((function(e){if(!e)return{};var t=Io()(e);return{year:t.year(),month:t.month()+1}})),Do={apiVersion:2,name:"core/calendar",category:"widgets",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},Fo=Do.name,Go={title:Object(Ce._x)("Calendar","block title"),description:Object(Ce.__)("A calendar of your site’s posts."),icon:Mo,keywords:[Object(Ce.__)("posts"),Object(Ce.__)("archive")],example:{},edit:function(e){var t=e.attributes,n=Object(Xe.useSelect)((function(e){var t=e(Ro.store).getEditedPostAttribute;return"post"===t("type")?t("date"):void 0}),[]);return Object(xe.createElement)("div",Object(we.useBlockProps)(),Object(xe.createElement)(Ae.Disabled,null,Object(xe.createElement)(Fr.a,{block:"core/calendar",attributes:Ao(Ao({},t),Lo(n))})))}},Uo=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),qo=Object(xe.createElement)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(xe.createElement)(Se.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"})),Wo={apiVersion:2,name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},Zo=Wo.name,Jo={title:Object(Ce._x)("Categories","block title"),description:Object(Ce.__)("Display a list of all categories."),icon:Uo,example:{},edit:function e(t){var n,r=t.attributes,o=r.displayAsDropdown,c=r.showHierarchy,a=r.showPostCounts,i=t.setAttributes,l=Object(et.useInstanceId)(e,"blocks-category-select"),s=Object(Xe.useSelect)((function(e){var t=e(_e.store).getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}}),[]),u=s.categories,b=s.isRequesting,m=function(e){return null!=u&&u.length?null===e?u:u.filter((function(t){return t.parent===e})):[]},p=function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)},d=function(e){return function(t){return i(Object(ye.a)({},e,t))}},g=function(e){return e?Object(Ee.unescape)(e).trim():Object(Ce.__)("(Untitled)")};return Object(xe.createElement)("div",Object(we.useBlockProps)(),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,{title:Object(Ce.__)("Categories settings")},Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Display as dropdown"),checked:o,onChange:d("displayAsDropdown")}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Show hierarchy"),checked:c,onChange:d("showHierarchy")}),Object(xe.createElement)(Ae.ToggleControl,{label:Object(Ce.__)("Show post counts"),checked:a,onChange:d("showPostCounts")}))),b&&Object(xe.createElement)(Ae.Placeholder,{icon:qo,label:Object(Ce.__)("Categories")},Object(xe.createElement)(Ae.Spinner,null)),!b&&0===u.length&&Object(xe.createElement)("p",null,Object(Ce.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!b&&u.length>0&&(o?(n=m(c?0:null),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Ae.VisuallyHidden,{as:"label",htmlFor:l},Object(Ce.__)("Categories")),Object(xe.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},n.map((function(e){return function e(t,n){var r=t.id,o=t.count,i=t.name,l=m(r);return[Object(xe.createElement)("option",{key:r},Object(Ee.times)(3*n,(function(){return" "})),g(i),a&&" (".concat(o,")")),c&&!!l.length&&l.map((function(t){return e(t,n+1)}))]}(e,0)}))))):function(){var e=m(c?0:null);return Object(xe.createElement)("ul",{className:p(0)},e.map((function(e){return function e(t,n){var r=m(t.id),o=t.id,i=t.link,l=t.count,s=t.name;return Object(xe.createElement)("li",{key:o},Object(xe.createElement)("a",{href:i,target:"_blank",rel:"noreferrer noopener"},g(s)),a&&Object(xe.createElement)("span",{className:"wp-block-categories__post-count"}," (".concat(l,")")),c&&!!r.length&&Object(xe.createElement)("ul",{className:p(n+1)},r.map((function(t){return e(t,n+1)}))))}(e,0)})))}()))}},Qo=n(410);function Ko(e){return e.replace(/\[/g,"&#91;")}function $o(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var Yo={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(ke.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(ke.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Xo={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,fontSize:!0},style:"wp-block-code"},ec=Xo.name,tc={title:Object(Ce._x)("Code","block title"),description:Object(Ce.__)("Display code snippets that respect your spacing and tabs."),icon:Qo.a,example:{attributes:{
17
  // translators: Preserve \n markers for line breaks
18
  content:Object(Ce.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:Yo,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.onRemove,o=Object(we.useBlockProps)();return Object(xe.createElement)("pre",o,Object(xe.createElement)(we.RichText,{tagName:"code",value:t.content,onChange:function(e){return n({content:e})},onRemove:r,placeholder:Object(Ce.__)("Write code…"),"aria-label":Object(Ce.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){var t,n=e.attributes;return Object(xe.createElement)("pre",we.useBlockProps.save(),Object(xe.createElement)(we.RichText.Content,{tagName:"code",value:(t=n.content,Object(Ee.flow)(Ko,$o)(t||""))}))}},nc=Object(xe.createElement)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Se.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ac(e){var t,n=ac.doc;n||(n=document.implementation.createHTMLDocument(""),ac.doc=n),n.body.innerHTML=e;var r,o=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return cc(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cc(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw c}}}}(n.body.firstChild.classList);try{for(o.s();!(r=o.n()).done;)if(t=r.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}catch(e){o.e(e)}finally{o.f()}}var ic=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:function(e){if(!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),oc(oc({},Object(Ee.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.backgroundColor,c=n.customBackgroundColor,a=n.textColor,i=n.customTextColor,l=Object(we.getColorClassName)("background-color",o),s=Object(we.getColorClassName)("color",a),u=Te()((t={"has-background":o||c,"has-text-color":a||i},Object(ye.a)(t,l,l),Object(ye.a)(t,s,s),Object(ye.a)(t,"are-vertically-aligned-".concat(r),r),t)),b={backgroundColor:l?void 0:c,color:s?void 0:i};return Object(xe.createElement)("div",{className:u||void 0,style:b},Object(xe.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==ac(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=ac(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(ke.createBlock)("core/column",{},e)}));return[Object(Ee.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(xe.createElement)("div",{className:"has-".concat(t,"-columns")},Object(xe.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(Ee.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=Te()("has-".concat(r,"-columns"),Object(ye.a)({},"are-vertically-aligned-".concat(n),n));return Object(xe.createElement)("div",{className:o},Object(xe.createElement)(we.InnerBlocks.Content,null))}}],lc=function(e){var t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function sc(e,t){var n=e.attributes.width;return lc(void 0===n?100/t:n)}function uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Ee.sumBy)(e,(function(e){return sc(e,t)}))}function bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=sc(n,t);return Object.assign(e,Object(ye.a)({},n.clientId,r))}),{})}function mc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=uc(e,n);return Object(Ee.mapValues)(bc(e,n),(function(e){return lc(t*e/r)}))}function pc(e,t){return e.map((function(e){return Object(Ee.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var dc="web"===xe.Platform.OS,gc=[{value:"%",label:dc?"%":Object(Ce.__)("Percentage (%)"),default:""},{value:"px",label:dc?"px":Object(Ce.__)("Pixels (px)"),default:""},{value:"em",label:dc?"em":Object(Ce.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:dc?"rem":Object(Ce.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:dc?"vw":Object(Ce.__)("Viewport width (vw)"),default:""}],hc=["core/column"],Oc=Object(Xe.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e(we.store).updateBlockAttributes,i=n.select(we.store).getBlockOrder;c({verticalAlignment:r}),i(o).forEach((function(e){a(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var c=t.clientId,a=e(we.store).replaceInnerBlocks,i=(0,n.select(we.store).getBlocks)(c),l=i.every((function(e){var t,n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)})),s=o>r;if(s&&l){var u=lc(100/o),b=mc(i,100-u);i=[].concat(Object(je.a)(pc(i,b)),Object(je.a)(Object(Ee.times)(o-r,(function(){return Object(ke.createBlock)("core/column",{width:u})}))))}else s?i=[].concat(Object(je.a)(i),Object(je.a)(Object(Ee.times)(o-r,(function(){return Object(ke.createBlock)("core/column")})))):(i=Object(Ee.dropRight)(i,r-o),l&&(i=pc(i,mc(i,100))));a(c,i)}}}))((function(e){var t=e.attributes,n=e.updateAlignment,r=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(Xe.useSelect)((function(e){return{count:e(we.store).getBlockCount(o)}}),[o]).count,i=Te()(Object(ye.a)({},"are-vertically-aligned-".concat(c),c)),l=Object(we.useBlockProps)({className:i}),s=Object(we.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:hc,orientation:"horizontal",renderAppender:!1});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(we.BlockControls,null,Object(xe.createElement)(we.BlockVerticalAlignmentToolbar,{onChange:n,value:c})),Object(xe.createElement)(we.InspectorControls,null,Object(xe.createElement)(Ae.PanelBody,null,Object(xe.createElement)(Ae.RangeControl,{label:Object(Ce.__)("Columns"),value:a,onChange:function(e){return r(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(xe.createElement)(Ae.Notice,{status:"warning",isDismissible:!1},Object(Ce.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(xe.createElement)("div",s))}));function fc(e){var t=e.clientId,n=e.name,r=e.setAttributes,o=Object(Xe.useSelect)((function(e){var t=e(ke.store),r=t.getBlockVariations,o=t.getBlockType,c=t.getDefaultBlockVariation;return{blockType:o(n),defaultVariation:c(n,"block"),variations:r(n,"block")}}),[n]),c=o.blockType,a=o.defaultVariation,i=o.variations,l=Object(Xe.useDispatch)(we.store).replaceInnerBlocks,s=Object(we.useBlockProps)();return Object(xe.createElement)("div",s,Object(xe.createElement)(we.__experimentalBlockVariationPicker,{icon:Object(Ee.get)(c,["icon","src"]),label:Object(Ee.get)(c,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&r(e.attributes),e.innerBlocks&&l(t,Object(ke.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var vc=[{name:"one-column-full",title:Object(Ce.__)("100"),description:Object(Ce.__)("One column"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Ce.__)("50 / 50"),description:Object(Ce.__)("Two columns; equal split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Ce.__)("30 / 70"),description:Object(Ce.__)("Two columns; one-third, two-thirds split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Ce.__)("70 / 30"),description:Object(Ce.__)("Two columns; two-thirds, one-third split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Ce.__)("33 / 33 / 33"),description:Object(Ce.__)("Three columns; equal split"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Ce.__)("25 / 50 / 25"),description:Object(Ce.__)("Three columns; wide center column"),icon:Object(xe.createElement)(Ae.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Ae.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Object(ye.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _c={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){var t=+(100/e.length).toFixed(2),n=e.map((function(e){var n=e.name,r=e.attributes,o=e.innerBlocks;return["core/column",{width:"".concat(t,"%")},[[n,yc({},r),o]]]}));return Object(ke.createBlock)("core/columns",{},Object(ke.createBlocksFromInnerBlocksTemplate)(n))},isMatch:function(e){var t=e.length;return t&&t<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:function(e,t){var n,r=e.align,o=e.backgroundColor,c=e.textColor,a=e.style,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaSizeSlug,b=e.mediaType,m=e.mediaUrl,p=e.mediaWidth,d=e.verticalAlignment;if("image"!==b&&b)n=["core/video",{id:l,src:m}];else{var g={id:l,alt:i,url:m,sizeSlug:u},h={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};n=["core/image",yc(yc({},g),h)]}var O=[["core/column",{width:"".concat(p,"%")},[n]],["core/column",{width:"".concat(100-p,"%")},t]];return"right"===s&&O.reverse(),Object(ke.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:c,style:a,verticalAlignment:d},Object(ke.createBlocksFromInnerBlocksTemplate)(O))}}]},wc={apiVersion:2,name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},kc=wc.name,Ec={title:Object(Ce._x)("Columns","block title"),icon:nc,description:Object(Ce.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:vc,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{
19
  /* translators: example text. */
changelog.txt CHANGED
@@ -1,5 +1,12 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
3
  = 10.2.0 =
4
 
5
  ### Features
1
  == Changelog ==
2
 
3
+ = 10.2.1 =
4
+
5
+ ### Bug Fixes
6
+
7
+ - Button: Restore gradients support. ([29980](https://github.com/WordPress/gutenberg/pull/29980))
8
+
9
+
10
  = 10.2.0 =
11
 
12
  ### Features
gutenberg.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.3
7
  * Requires PHP: 5.6
8
- * Version: 10.2.0
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
@@ -13,8 +13,8 @@
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
- define( 'GUTENBERG_VERSION', '10.2.0' );
17
- define( 'GUTENBERG_GIT_COMMIT', '6261f57b406da34cb5b67ad958875b5a3b670121' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.3
7
  * Requires PHP: 5.6
8
+ * Version: 10.2.1
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '10.2.1' );
17
+ define( 'GUTENBERG_GIT_COMMIT', 'e5f2b1ce883aa848d4c09239ca6d805f61da2e1e' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: matveb, joen, karmatosed
3
  Requires at least: 5.6
4
  Tested up to: 5.7
5
  Requires PHP: 5.6
6
- Stable tag: 10.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -57,4 +57,4 @@ View <a href="https://developer.wordpress.org/block-editor/principles/versions-i
57
 
58
  == Changelog ==
59
 
60
- To read the changelog for Gutenberg 10.2.0, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v10.2.0">release page</a>.
3
  Requires at least: 5.6
4
  Tested up to: 5.7
5
  Requires PHP: 5.6
6
+ Stable tag: 10.2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
57
 
58
  == Changelog ==
59
 
60
+ To read the changelog for Gutenberg 10.2.1, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v10.2.1">release page</a>.