Gutenberg - Version 9.8.3

Version Description

Download this release

Release Info

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

Code changes from version 9.8.2 to 9.8.3

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-element', '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' => '0129c3bebf930ee9aff200ff3765cd49');
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-element', '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' => '209329ace210e8ba71d57a59998e9480');
build/block-library/index.js CHANGED
@@ -23,7 +23,7 @@ content:Object(we.__)("Suspendisse commodo neque lacus, a dictum orci interdum e
23
  /* translators: example text. */
24
  content:Object(we.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{
25
  /* translators: example text. */
26
- content:Object(we.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:gc,edit:function(e){var t=e.clientId,r=Object(He.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Ec:Cc;return Object(ke.createElement)(r,e)},save:function(e){var t=e.attributes.verticalAlignment,r=Se()(Object(fe.a)({},"are-vertically-aligned-".concat(t),t));return Object(ke.createElement)("div",je.useBlockProps.save({className:r}),Object(ke.createElement)(je.InnerBlocks.Content,null))},transforms:Bc},Mc=Object(ke.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Ee.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-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));function Vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rc=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:function(e){var t=e.width;return isFinite(t)},migrate:function(e){return Ic(Ic({},e),{},{width:"".concat(e.width,"%")})},save:function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=Se()(Object(fe.a)({},"is-vertically-aligned-".concat(r),r)),c={flexBasis:n+"%"};return Object(ke.createElement)("div",{className:o,style:c},Object(ke.createElement)(je.InnerBlocks.Content,null))}}],Hc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},Ac=Hc.name,Lc={title:Object(we._x)("Column","block title"),icon:Mc,description:Object(we.__)("A single column within a columns block."),edit:function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=t.templateLock,c=void 0!==o&&o,a=e.setAttributes,i=e.clientId,l=Se()("block-core-columns",Object(fe.a)({},"is-vertically-aligned-".concat(r),r)),s=Object(He.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(i).length>0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(He.useDispatch)("core/block-editor").updateBlockAttributes,d=Number.isFinite(n)?n+"%":n,p=Object(je.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=Object(je.__experimentalUseInnerBlocksProps)(p,{templateLock:c,renderAppender:u?void 0:je.InnerBlocks.ButtonBlockAppender});return Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.BlockControls,null,Object(ke.createElement)(je.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(ke.createElement)(je.InspectorControls,null,Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Column settings")},Object(ke.createElement)(Re.__experimentalUnitControl,{label:Object(we.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:wc}))),Object(ke.createElement)("div",g))},save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=Se()(Object(fe.a)({},"is-vertically-aligned-".concat(n),n));return o&&(t={flexBasis:Number.isFinite(o)?o+"%":o}),Object(ke.createElement)("div",je.useBlockProps.save({className:c,style:t}),Object(ke.createElement)(je.InnerBlocks.Content,null))},deprecated:Rc},Dc=Object(ke.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Gc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Uc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var qc="web"===ke.Platform.OS,Wc=[{value:"px",label:qc?"px":Object(we.__)("Pixels (px)"),default:"430"},{value:"em",label:qc?"em":Object(we.__)("Relative to parent font size (em)"),default:"20"},{value:"rem",label:qc?"rem":Object(we.__)("Relative to root font size (rem)"),default:"20"},{value:"vw",label:qc?"vw":Object(we.__)("Viewport width (vw)"),default:"20"},{value:"vh",label:qc?"vh":Object(we.__)("Viewport height (vh)"),default:"50"}];function Zc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Jc(e){return!e||"center center"===e||"center"===e}function $c(e){return Jc(e)?"":Gc[e]}function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yc={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},Xc=[{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t,r,n=e.attributes,o=n.backgroundType,c=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.overlayColor,d=n.url,p=n.minHeight,g=n.minHeightUnit,h=Object(je.getColorClassName)("background-color",m),O=Object(je.__experimentalGetGradientClass)(c),f=g?"".concat(p).concat(g):p,v="image"===o,j="video"===o,y=v?Uc(d):{},_={};h||(y.backgroundColor=l),i&&!d&&(y.background=i),y.minHeight=f||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),v&&!b&&(y.backgroundPosition=r),j&&(_.objectPosition=r));var w=Se()(Zc(s),h,(t={"has-background-dim":0!==s,"has-parallax":b,"has-background-gradient":c||i},Object(fe.a)(t,O,!d&&O),Object(fe.a)(t,"has-custom-content-position",!Jc(a)),t),$c(a));return Object(ke.createElement)("div",{className:w,style:y},d&&(c||i)&&0!==s&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),j&&d&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:_}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(je.getColorClassName)("background-color",s),d=Object(je.__experimentalGetGradientClass)(n),p="image"===r?Uc(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var g=Se()(Zc(a),m,Object(fe.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(ke.createElement)("div",{className:g,style:p},u&&(n||o)&&0!==a&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===r&&u&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(je.getColorClassName)("background-color",s),d=Object(je.__experimentalGetGradientClass)(n),p="image"===r?Uc(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var g=Se()(Zc(a),m,Object(fe.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(ke.createElement)("div",{className:g,style:p},u&&(n||o)&&0!==a&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===r&&u&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,r=t.backgroundType,n=t.contentAlign,o=t.customOverlayColor,c=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(je.getColorClassName)("background-color",l),m="image"===r?Uc(u):{};b||(m.backgroundColor=o),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=Se()(Zc(c),b,Object(fe.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(n,"-content"),"center"!==n));return Object(ke.createElement)("div",{className:d,style:m},"video"===r&&u&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!je.RichText.isEmpty(s)&&Object(ke.createElement)(je.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(_e.omit)(e,["title","contentAlign"]),[Object(ye.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title…")})]]}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,r=t.url,n=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(je.getColorClassName)("background-color",l),b=Uc(r);u||(b.backgroundColor=s);var m=Se()("wp-block-cover-image",Zc(c),u,Object(fe.a)({"has-background-dim":0!==c,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(ke.createElement)("div",{className:m,style:b},!je.RichText.isEmpty(n)&&Object(ke.createElement)(je.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate:function(e){return[Object(_e.omit)(e,["title","contentAlign","align"]),[Object(ye.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title…")})]]}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,r=t.url,n=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=Uc(r),l=Se()("wp-block-cover-image",Zc(c),{"has-background-dim":0!==c,"has-parallax":o},a?"align".concat(a):null);return Object(ke.createElement)("section",{className:l,style:i},Object(ke.createElement)(je.RichText.Content,{tagName:"h2",value:n}))},migrate:function(e){return[Object(_e.omit)(e,["title","contentAlign","align"]),[Object(ye.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title…")})]]}}],ea=r(254),ta=r.n(ea),ra=r(62),na=r.n(ra);function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var aa=["image","video"],ia=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(we.__)("Write title…")}]],la=Re.__experimentalBoxControl.__Visualizer;function sa(){return sa.fastAverageColor||(sa.fastAverageColor=new ta.a),sa.fastAverageColor}function ua(e){var t=e.onChange,r=e.onUnitChange,n=e.unit,o=void 0===n?"px":n,c=e.value,a=void 0===c?"":c,i=Object(ke.useState)(null),l=Object(Ie.a)(i,2),s=l[0],u=l[1],b=Object(Qe.useInstanceId)(je.__experimentalUnitControl),m="block-cover-height-input-".concat(b),d=null!==s?s:a,p="px"===o?50:0;return Object(ke.createElement)(Re.BaseControl,{label:Object(we.__)("Minimum height of cover"),id:m},Object(ke.createElement)(je.__experimentalUnitControl,{id:m,isResetValueOnUnitChange:!0,min:p,onBlur:function(){null!==s&&u(null)},onChange:function(e){var n=""!==e?parseInt(e,10):void 0;isNaN(n)&&void 0!==n?u(e):(u(null),t(n),void 0===n&&r())},onUnitChange:r,step:"1",style:{maxWidth:80},unit:o,units:Wc,value:d}))}var ba={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function ma(e){var t=e.className,r=e.onResizeStart,n=e.onResize,o=e.onResizeStop,c=Object(gr.a)(e,["className","onResizeStart","onResize","onResizeStop"]),a=Object(ke.useState)(!1),i=Object(Ie.a)(a,2),l=i[0],s=i[1];return Object(ke.createElement)(Re.ResizableBox,Object(Ve.a)({className:Se()(t,{"is-resizing":l}),enable:ba,onResizeStart:function(e,t,o){r(o.clientHeight),n(o.clientHeight)},onResize:function(e,t,r){n(r.clientHeight),l||s(!0)},onResizeStop:function(e,t,r){o(r.clientHeight),s(!1)},minHeight:50},c))}var da=Object(Qe.compose)([Object(He.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(je.withColors)({overlayColor:"background-color"}),Re.withNotices,Qe.withInstanceId])((function(e){var t,r,n,o=e.attributes,c=e.setAttributes,a=e.isSelected,i=e.noticeUI,l=e.overlayColor,s=e.setOverlayColor,u=e.toggleSelection,b=e.noticeOperations,m=o.contentPosition,d=o.id,p=o.backgroundType,g=o.dimRatio,h=o.focalPoint,O=o.hasParallax,f=o.isRepeated,v=o.minHeight,j=o.minHeightUnit,y=o.style,_=o.url,w=Object(je.__experimentalUseGradient)(),k=w.gradientClass,E=w.gradientValue,C=w.setGradient,x=function(e){return function(t){if(t&&t.url){var r;if(Object(Ke.isBlobURL)(t.url)&&(t.type=Object(Ke.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({url:t.url,id:t.id,backgroundType:r},"video"===r?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}(c),S=Object(Ke.isBlobURL)(_),P=Object(ke.useState)(v),B=Object(Ie.a)(P,2),T=B[0],z=B[1],N=Object(ke.useState)(j),M=Object(Ie.a)(N,2),V=M[0],I=M[1],R="vh"===j&&100===v,H=Object(ke.useRef)(),A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(ke.useState)(!1),c=Object(Ie.a)(o,2),a=c[0],i=c[1];return Object(ke.useEffect)((function(){e&&t<=50&&n.current&&sa().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(ke.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(na()(r).isDark())}}),[r,t>50||!e,i]),Object(ke.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(_,g,l.color,H),L="image"===p,D="video"===p,F=Object(ke.useState)(null),G=Object(Ie.a)(F,2),U=G[0],q=G[1],W=b.removeAllNotices,Z=b.createErrorNotice,J=j?"".concat(v).concat(j):v,$=ca(ca({},L&&O?Uc(_):{}),{},{backgroundColor:l.color,background:E&&!_?E:void 0,minHeight:U||J||void 0}),K={objectPosition:h&&!O?"".concat(Math.round(100*h.x),"% ").concat(Math.round(100*h.y),"%"):void 0},Q=!!(_||l.color||E),Y=D||L&&(!O||f),X=Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.BlockControls,null,Object(ke.createElement)(je.__experimentalBlockFullHeightAligmentToolbar,{isActive:R,onToggle:function(){return R?c("vh"===V&&100===T?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:T,minHeightUnit:V}):(z(v),I(j),c({minHeight:100,minHeightUnit:"vh"}))}}),Q&&Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.__experimentalBlockAlignmentMatrixToolbar,{label:Object(we.__)("Change content position"),value:m,onChange:function(e){return c({contentPosition:e})}}),Object(ke.createElement)(je.MediaReplaceFlow,{mediaId:d,mediaURL:_,allowedTypes:aa,accept:"image/*,video/*",onSelect:x}))),Object(ke.createElement)(je.InspectorControls,null,!!_&&Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Media settings")},L&&Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(Re.ToggleControl,{label:Object(we.__)("Fixed background"),checked:O,onChange:function(){c(ca({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(ke.createElement)(Re.ToggleControl,{label:Object(we.__)("Repeated background"),checked:f,onChange:function(){c({isRepeated:!f})}})),Y&&Object(ke.createElement)(Re.FocalPointPicker,{label:Object(we.__)("Focal point picker"),url:_,value:h,onChange:function(e){return c({focalPoint:e})}}),Object(ke.createElement)(Re.PanelRow,null,Object(ke.createElement)(Re.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(we.__)("Clear Media")))),Q&&Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Dimensions")},Object(ke.createElement)(ua,{value:U||v,unit:j,onChange:function(e){return c({minHeight:e})},onUnitChange:function(e){return c({minHeightUnit:e})}})),Object(ke.createElement)(je.__experimentalPanelColorGradientSettings,{title:Object(we.__)("Overlay"),initialOpen:!0,settings:[{colorValue:l.color,gradientValue:E,onColorChange:s,onGradientChange:C,label:Object(we.__)("Color")}]},!!_&&Object(ke.createElement)(Re.RangeControl,{label:Object(we.__)("Opacity"),value:g,onChange:function(e){return c({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),ee=Object(je.useBlockProps)(),te=Object(je.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ia,templateInsertUpdatesSelection:!0});if(!Q){var re=Object(ke.createElement)(je.BlockIcon,{icon:Dc}),ne=Object(we.__)("Cover");return Object(ke.createElement)(ke.Fragment,null,X,Object(ke.createElement)("div",Object(Ve.a)({},ee,{className:Se()("is-placeholder",ee.className)}),Object(ke.createElement)(je.MediaPlaceholder,{icon:re,labels:{title:ne,instructions:Object(we.__)("Upload an image or video file, or pick one from your media library.")},onSelect:x,accept:"image/*,video/*",allowedTypes:aa,notices:i,onError:function(e){W(),Z(e)}},Object(ke.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(ke.createElement)(je.ColorPalette,{disableCustomColors:!0,value:l.color,onChange:s,clearable:!1})))))}var oe=Se()(Zc(g),(t={"is-dark-theme":A,"has-background-dim":0!==g,"is-transient":S,"has-parallax":O,"is-repeated":f},Object(fe.a)(t,l.class,l.class),Object(fe.a)(t,"has-background-gradient",E),Object(fe.a)(t,k,!_&&k),Object(fe.a)(t,"has-custom-content-position",!Jc(m)),t),$c(m));return Object(ke.createElement)(ke.Fragment,null,X,Object(ke.createElement)("div",Object(Ve.a)({},ee,{className:Se()(oe,ee.className),style:ca(ca({},$),ee.style),"data-url":_}),Object(ke.createElement)(la,{values:null==y||null===(r=y.spacing)||void 0===r?void 0:r.padding,showValues:null==y||null===(n=y.visualizers)||void 0===n?void 0:n.padding}),Object(ke.createElement)(ma,{className:"block-library-cover__resize-container",onResizeStart:function(){c({minHeightUnit:"px"}),u(!1)},onResize:q,onResizeStop:function(e){u(!0),c({minHeight:e}),q(null)},showHandle:a}),_&&E&&0!==g&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",k),style:{background:E}}),L&&!O&&Object(ke.createElement)("img",{ref:H,className:"wp-block-cover__image-background",alt:"",src:_,style:K}),D&&Object(ke.createElement)("video",{ref:H,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:_,style:K}),S&&Object(ke.createElement)(Re.Spinner,null),Object(ke.createElement)("div",te)))}));function pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ha={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/cover",{url:r,align:n,id:o,anchor:c},[Object(ye.createBlock)("core/paragraph",{content:t,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/cover",{url:r,align:n,id:o,backgroundType:"video",anchor:c},[Object(ye.createBlock)("core/paragraph",{content:t,fontSize:"large"})])}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/image",{caption:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/video",{caption:t,src:r,id:o,align:n,anchor:c})}}]},Oa={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},fa=Oa.name,va={title:Object(we._x)("Cover","block title"),description:Object(we.__)("Add an image or video with a text overlay — great for headers."),icon:Dc,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(we.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:ha,save:function(e){var t,r=e.attributes,n=r.backgroundType,o=r.gradient,c=r.contentPosition,a=r.customGradient,i=r.customOverlayColor,l=r.dimRatio,s=r.focalPoint,u=r.hasParallax,b=r.isRepeated,m=r.overlayColor,d=r.url,p=r.id,g=r.minHeight,h=r.minHeightUnit,O=Object(je.getColorClassName)("background-color",m),f=Object(je.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===n,y="video"===n,_=ga(ga({},j&&u?Uc(d):{}),{},{backgroundColor:O?void 0:i,background:a&&!d?a:void 0,minHeight:v||void 0}),w=s&&!u?"".concat(Math.round(100*s.x),"% ").concat(Math.round(100*s.y),"%"):void 0,k=Se()(Zc(l),O,(t={"has-background-dim":0!==l,"has-parallax":u,"is-repeated":b,"has-background-gradient":o||a},Object(fe.a)(t,f,!d&&f),Object(fe.a)(t,"has-custom-content-position",!Jc(c)),t),$c(c));return Object(ke.createElement)("div",je.useBlockProps.save({className:k,style:_}),d&&(o||a)&&0!==l&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",f),style:a?{background:a}:void 0}),j&&d&&!u&&Object(ke.createElement)("img",{className:Se()("wp-block-cover__image-background",p?"wp-image-".concat(p):null),alt:"",src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&d&&Object(ke.createElement)("video",{className:Se()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))},edit:da,deprecated:Xc},ja=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.BlockControls,null,Object(ke.createElement)(Re.ToolbarGroup,null,r&&Object(ke.createElement)(Re.ToolbarButton,{className:"components-toolbar__control",label:Object(we.__)("Edit URL"),icon:pn.a,onClick:i}))),n&&t&&Object(ke.createElement)(je.InspectorControls,null,Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Media settings"),className:"blocks-responsive"},Object(ke.createElement)(Re.ToggleControl,{label:Object(we.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},ya=function(){return Object(ke.createElement)("div",{className:"wp-block-embed is-loading"},Object(ke.createElement)(Re.Spinner,null),Object(ke.createElement)("p",null,Object(we.__)("Embedding…")))},_a=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(ke.createElement)(Re.Placeholder,{icon:Object(ke.createElement)(je.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(we.__)("Paste a link to the content you want to display on your site.")},Object(ke.createElement)("form",{onSubmit:o},Object(ke.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(we.__)("Enter URL to embed here…"),onChange:c}),Object(ke.createElement)(Re.Button,{isPrimary:!0,type:"submit"},Object(we._x)("Embed","button label"))),Object(ke.createElement)("div",{className:"components-placeholder__learn-more"},Object(ke.createElement)(Re.ExternalLink,{href:Object(we.__)("https://wordpress.org/support/article/embeds/")},Object(we.__)("Learn more about embeds"))),a&&Object(ke.createElement)("div",{className:"components-placeholder__error"},Object(ke.createElement)("div",{className:"components-placeholder__instructions"},Object(we.__)("Sorry, this content could not be embedded.")),Object(ke.createElement)(Re.Button,{isSecondary:!0,onClick:l},Object(we._x)("Try again","button label"))," ",Object(ke.createElement)(Re.Button,{isSecondary:!0,onClick:i},Object(we._x)("Convert to link","button label"))))};function wa(e){var t=e.html,r=Object(ke.useRef)();Object(ke.useEffect)((function(){var e=r.current.ownerDocument,t=e.defaultView,n=t.FocusEvent;function o(t){var r=t.data,n=(r=void 0===r?{}:r).secret,o=r.message,c=r.value;[n,o,c].some((function(e){return!e}))||"height"!==o||e.querySelectorAll('iframe[data-secret="'.concat(n,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}function c(){var t=e.activeElement;if("IFRAME"===t.tagName&&t.parentNode===r.current){var o=new n("focus",{bubbles:!0});t.dispatchEvent(o)}}return t.addEventListener("message",o),t.addEventListener("blur",c),function(){t.removeEventListener("message",o),t.removeEventListener("blur",c)}}),[]);var n=Object(ke.useMemo)((function(){var e=(new window.DOMParser).parseFromString(t,"text/html"),r=e.querySelector("iframe");r&&r.removeAttribute("style");var n=e.querySelector("blockquote");return n&&(n.style.display="none"),e.body.innerHTML}),[t]);return Object(ke.createElement)("div",{ref:r,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:n}})}var ka=function(e){Object(sn.a)(o,e);var t,r,n=(t=o,r=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,n=Object(bn.a)(t);if(r){var o=Object(bn.a)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Object(un.a)(this,e)});function o(){var e;return Object(cn.a)(this,o),(e=n.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(ln.a)(e)),e.state={interactive:!1},e}return Object(an.a)(o,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=o.scripts,h=this.state.interactive,O="photo"===i?(t=(e=o).thumbnail_url||e.url,r=Object(ke.createElement)("p",null,Object(ke.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(ke.renderToString)(r)):o.html,f=new URL(a).host.split("."),v=f.splice(f.length-2,f.length-1).join("."),j=Object(we.sprintf)(// translators: %s: host providing embed content e.g: www.youtube.com
27
  Object(we.__)("Embedded content from %s"),v),y=ot()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(ke.createElement)(wa,{html:O}):Object(ke.createElement)("div",{className:"wp-block-embed__wrapper"},Object(ke.createElement)(Re.SandBox,{html:O,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(ke.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(ke.createElement)("figure",{className:ot()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?_:Object(ke.createElement)(Re.Placeholder,{icon:Object(ke.createElement)(je.BlockIcon,{icon:m,showColors:!0}),label:d},Object(ke.createElement)("p",{className:"components-placeholder__error"},Object(ke.createElement)("a",{href:a},a)),Object(ke.createElement)("p",{className:"components-placeholder__error"},Object(we.sprintf)(
28
  /* translators: %s: host providing embed content e.g: www.youtube.com */
29
  Object(we.__)("Embedded content from %s can't be previewed in the editor."),v))),(!je.RichText.isEmpty(l)||u)&&Object(ke.createElement)(je.RichText,{tagName:"figcaption",placeholder:Object(we.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(ye.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),o}(ke.Component);function Ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xa(e){return e?Object(we.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(we.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Sa={from:[{type:"raw",isMatch:function(e){var t,r;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(r=t.match(/https/gi))||void 0===r?void 0:r.length)},transform:function(e){return Object(ye.createBlock)("core/embed",{url:e.textContent.trim()})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.url,r=e.caption,n=Object(ke.createElement)("a",{href:t},r||t);return Object(ye.createBlock)("core/paragraph",{content:Object(ke.renderToString)(n)})}}]},Pa=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Ba=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Ta=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),za=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Na={foreground:"#1da1f2",src:Object(ke.createElement)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Ma={foreground:"#ff0000",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Va={foreground:"#3b5998",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ia=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Ra={foreground:"#0073AA",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Ha={foreground:"#1db954",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Aa=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),La={foreground:"#1ab7ea",src:Object(ke.createElement)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Da=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Fa={foreground:"#35465c",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Ga=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(ke.createElement)(Re.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(ke.createElement)(Re.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),Ua=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(ke.createElement)(Re.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(ke.createElement)(Re.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(ke.createElement)(Re.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(ke.createElement)(Re.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(ke.createElement)(Re.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),qa=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Wa=[{name:"twitter",title:"Twitter",icon:Na,keywords:["tweet",Object(we.__)("social")],description:Object(we.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Ma,keywords:[Object(we.__)("music"),Object(we.__)("video")],description:Object(we.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Va,keywords:[Object(we.__)("social")],description:Object(we.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ia,keywords:[Object(we.__)("image"),Object(we.__)("social")],description:Object(we.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Ra,keywords:[Object(we.__)("post"),Object(we.__)("blog")],description:Object(we.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Ba,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ha,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Aa,keywords:[Object(we.__)("image")],description:Object(we.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:La,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Ua,description:Object(we.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Pa,description:Object(we.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:za,description:Object(we.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Pa,keywords:["polldaddy",Object(we.__)("survey")],description:Object(we.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:qa,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Ta,description:Object(we.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Pa,description:Object(we.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Pa,description:Object(we.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Pa,description:Object(we.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Ba,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:Da,description:Object(we.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Ba,description:Object(we.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:za,description:Object(we.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Pa,description:Object(we.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Pa,description:Object(we.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Ta,description:Object(we.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Pa,description:Object(we.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:za,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:za,description:Object(we.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:Fa,keywords:[Object(we.__)("social")],description:Object(we.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:za,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:za,description:Object(we.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Ga,keywords:[Object(we.__)("ebook")],description:Object(we.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}];Wa.forEach((function(e){e.isActive||(e.isActive=function(e,t){return e.providerNameSlug===t.providerNameSlug})}));var Za=Wa,Ja=[{attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},save:function(e){var t,r=e.attributes,n=r.url,o=r.caption,c=r.type,a=r.providerNameSlug;if(!n)return null;var i=Se()("wp-block-embed",(t={},Object(fe.a)(t,"is-type-".concat(c),c),Object(fe.a)(t,"is-provider-".concat(a),a),t));return Object(ke.createElement)("figure",{className:i},"\n".concat(n,"\n"),!je.RichText.isEmpty(o)&&Object(ke.createElement)(je.RichText.Content,{tagName:"figcaption",value:o}))}}],$a={apiVersion:2,name:"core/embed",category:"embed",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ka=$a.name,Qa={title:Object(we._x)("Embed","block title"),description:Object(we.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),icon:Pa,edit:function(e){var t,r,n=e.attributes,o=n.providerNameSlug,c=n.previewable,a=n.responsive,i=n.url,l=e.attributes,s=e.isSelected,u=e.onReplace,b=e.setAttributes,m=e.insertBlocksAfter,d={title:Qa.title,icon:Qa.icon},p=(t=o,(null===(r=Object(ye.getBlockVariations)("core/embed"))||void 0===r?void 0:r.find((function(e){return e.name===t})))||d),g=p.icon,h=p.title,O=Object(ke.useState)(i),f=Object(Ie.a)(O,2),v=f[0],j=f[1],y=Object(ke.useState)(!1),_=Object(Ie.a)(y,2),w=_[0],k=_[1],E=Object(He.useDispatch)("core/data").invalidateResolution,C=Object(He.useSelect)((function(e){var t,r=e("core"),n=r.getEmbedPreview,o=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,a=r.getThemeSupports;if(!i)return{fetching:!1,cannotEmbed:!1};var l=n(i),s=o(i),u=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),b=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!u&&!b;return{preview:m?l:void 0,fetching:c(i),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!m||s}}),[i]),x=C.preview,S=C.fetching,P=C.themeSupportsResponsive,B=C.cannotEmbed,T=function(){var e=l.allowResponsive,t=l.className;return Ca(Ca({},l),pt(x,h,t,a,e))};Object(ke.useEffect)((function(){if(null!=x&&x.html&&B&&!S){var e=i.replace(/\/$/,"");j(e),k(!1),b({url:e})}}),[null==x?void 0:x.html,i]),Object(ke.useEffect)((function(){if(x&&!w&&(b(T()),u)){var t=bt(e,T());t&&u(t)}}),[x,w]);var z=Object(je.useBlockProps)();if(S)return Object(ke.createElement)("div",z,Object(ke.createElement)(ya,null));// translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists
23
  /* translators: example text. */
24
  content:Object(we.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{
25
  /* translators: example text. */
26
+ content:Object(we.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:gc,edit:function(e){var t=e.clientId,r=Object(He.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Ec:Cc;return Object(ke.createElement)(r,e)},save:function(e){var t=e.attributes.verticalAlignment,r=Se()(Object(fe.a)({},"are-vertically-aligned-".concat(t),t));return Object(ke.createElement)("div",je.useBlockProps.save({className:r}),Object(ke.createElement)(je.InnerBlocks.Content,null))},transforms:Bc},Mc=Object(ke.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Ee.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-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));function Vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rc=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:function(e){var t=e.width;return isFinite(t)},migrate:function(e){return Ic(Ic({},e),{},{width:"".concat(e.width,"%")})},save:function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=Se()(Object(fe.a)({},"is-vertically-aligned-".concat(r),r)),c={flexBasis:n+"%"};return Object(ke.createElement)("div",{className:o,style:c},Object(ke.createElement)(je.InnerBlocks.Content,null))}}],Hc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},Ac=Hc.name,Lc={title:Object(we._x)("Column","block title"),icon:Mc,description:Object(we.__)("A single column within a columns block."),edit:function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=t.templateLock,c=void 0!==o&&o,a=e.setAttributes,i=e.clientId,l=Se()("block-core-columns",Object(fe.a)({},"is-vertically-aligned-".concat(r),r)),s=Object(He.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(i).length>0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(He.useDispatch)("core/block-editor").updateBlockAttributes,d=Number.isFinite(n)?n+"%":n,p=Object(je.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=Object(je.__experimentalUseInnerBlocksProps)(p,{templateLock:c,renderAppender:u?void 0:je.InnerBlocks.ButtonBlockAppender});return Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.BlockControls,null,Object(ke.createElement)(je.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(ke.createElement)(je.InspectorControls,null,Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Column settings")},Object(ke.createElement)(Re.__experimentalUnitControl,{label:Object(we.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:wc}))),Object(ke.createElement)("div",g))},save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=Se()(Object(fe.a)({},"is-vertically-aligned-".concat(n),n));return o&&(t={flexBasis:Number.isFinite(o)?o+"%":o}),Object(ke.createElement)("div",je.useBlockProps.save({className:c,style:t}),Object(ke.createElement)(je.InnerBlocks.Content,null))},deprecated:Rc},Dc=Object(ke.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Gc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Uc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var qc="web"===ke.Platform.OS,Wc=[{value:"px",label:qc?"px":Object(we.__)("Pixels (px)"),default:"430"},{value:"em",label:qc?"em":Object(we.__)("Relative to parent font size (em)"),default:"20"},{value:"rem",label:qc?"rem":Object(we.__)("Relative to root font size (rem)"),default:"20"},{value:"vw",label:qc?"vw":Object(we.__)("Viewport width (vw)"),default:"20"},{value:"vh",label:qc?"vh":Object(we.__)("Viewport height (vh)"),default:"50"}];function Zc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Jc(e){return!e||"center center"===e||"center"===e}function $c(e){return Jc(e)?"":Gc[e]}function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yc={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},Xc=[{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t,r,n=e.attributes,o=n.backgroundType,c=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.overlayColor,d=n.url,p=n.minHeight,g=n.minHeightUnit,h=Object(je.getColorClassName)("background-color",m),O=Object(je.__experimentalGetGradientClass)(c),f=g?"".concat(p).concat(g):p,v="image"===o,j="video"===o,y=v?Uc(d):{},_={};h||(y.backgroundColor=l),i&&!d&&(y.background=i),y.minHeight=f||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),v&&!b&&(y.backgroundPosition=r),j&&(_.objectPosition=r));var w=Se()(Zc(s),h,(t={"has-background-dim":0!==s,"has-parallax":b,"has-background-gradient":c||i},Object(fe.a)(t,O,!d&&O),Object(fe.a)(t,"has-custom-content-position",!Jc(a)),t),$c(a));return Object(ke.createElement)("div",{className:w,style:y},d&&(c||i)&&0!==s&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),j&&d&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:_}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(je.getColorClassName)("background-color",s),d=Object(je.__experimentalGetGradientClass)(n),p="image"===r?Uc(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var g=Se()(Zc(a),m,Object(fe.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(ke.createElement)("div",{className:g,style:p},u&&(n||o)&&0!==a&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===r&&u&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(je.getColorClassName)("background-color",s),d=Object(je.__experimentalGetGradientClass)(n),p="image"===r?Uc(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var g=Se()(Zc(a),m,Object(fe.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(ke.createElement)("div",{className:g,style:p},u&&(n||o)&&0!==a&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===r&&u&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,r=t.backgroundType,n=t.contentAlign,o=t.customOverlayColor,c=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(je.getColorClassName)("background-color",l),m="image"===r?Uc(u):{};b||(m.backgroundColor=o),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=Se()(Zc(c),b,Object(fe.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(n,"-content"),"center"!==n));return Object(ke.createElement)("div",{className:d,style:m},"video"===r&&u&&Object(ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!je.RichText.isEmpty(s)&&Object(ke.createElement)(je.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(_e.omit)(e,["title","contentAlign"]),[Object(ye.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title…")})]]}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,r=t.url,n=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(je.getColorClassName)("background-color",l),b=Uc(r);u||(b.backgroundColor=s);var m=Se()("wp-block-cover-image",Zc(c),u,Object(fe.a)({"has-background-dim":0!==c,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(ke.createElement)("div",{className:m,style:b},!je.RichText.isEmpty(n)&&Object(ke.createElement)(je.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate:function(e){return[Object(_e.omit)(e,["title","contentAlign","align"]),[Object(ye.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title…")})]]}},{attributes:Qc(Qc({},Yc),{},{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,r=t.url,n=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=Uc(r),l=Se()("wp-block-cover-image",Zc(c),{"has-background-dim":0!==c,"has-parallax":o},a?"align".concat(a):null);return Object(ke.createElement)("section",{className:l,style:i},Object(ke.createElement)(je.RichText.Content,{tagName:"h2",value:n}))},migrate:function(e){return[Object(_e.omit)(e,["title","contentAlign","align"]),[Object(ye.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title…")})]]}}],ea=r(254),ta=r.n(ea),ra=r(62),na=r.n(ra);function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var aa=["image","video"],ia=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(we.__)("Write title…")}]],la=Re.__experimentalBoxControl.__Visualizer;function sa(){return sa.fastAverageColor||(sa.fastAverageColor=new ta.a),sa.fastAverageColor}function ua(e){var t=e.onChange,r=e.onUnitChange,n=e.unit,o=void 0===n?"px":n,c=e.value,a=void 0===c?"":c,i=Object(ke.useState)(null),l=Object(Ie.a)(i,2),s=l[0],u=l[1],b=Object(Qe.useInstanceId)(je.__experimentalUnitControl),m="block-cover-height-input-".concat(b),d=null!==s?s:a,p="px"===o?50:0;return Object(ke.createElement)(Re.BaseControl,{label:Object(we.__)("Minimum height of cover"),id:m},Object(ke.createElement)(je.__experimentalUnitControl,{id:m,isResetValueOnUnitChange:!0,min:p,onBlur:function(){null!==s&&u(null)},onChange:function(e){var n=""!==e?parseInt(e,10):void 0;isNaN(n)&&void 0!==n?u(e):(u(null),t(n),void 0===n&&r())},onUnitChange:r,step:"1",style:{maxWidth:80},unit:o,units:Wc,value:d}))}var ba={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function ma(e){var t=e.className,r=e.onResizeStart,n=e.onResize,o=e.onResizeStop,c=Object(gr.a)(e,["className","onResizeStart","onResize","onResizeStop"]),a=Object(ke.useState)(!1),i=Object(Ie.a)(a,2),l=i[0],s=i[1];return Object(ke.createElement)(Re.ResizableBox,Object(Ve.a)({className:Se()(t,{"is-resizing":l}),enable:ba,onResizeStart:function(e,t,o){r(o.clientHeight),n(o.clientHeight)},onResize:function(e,t,r){n(r.clientHeight),l||s(!0)},onResizeStop:function(e,t,r){o(r.clientHeight),s(!1)},minHeight:50},c))}var da=Object(Qe.compose)([Object(He.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(je.withColors)({overlayColor:"background-color"}),Re.withNotices,Qe.withInstanceId])((function(e){var t,r,n,o=e.attributes,c=e.setAttributes,a=e.isSelected,i=e.noticeUI,l=e.overlayColor,s=e.setOverlayColor,u=e.toggleSelection,b=e.noticeOperations,m=o.contentPosition,d=o.id,p=o.backgroundType,g=o.dimRatio,h=o.focalPoint,O=o.hasParallax,f=o.isRepeated,v=o.minHeight,j=o.minHeightUnit,y=o.style,_=o.url,w=Object(je.__experimentalUseGradient)(),k=w.gradientClass,E=w.gradientValue,C=w.setGradient,x=function(e){return function(t){if(t&&t.url){var r;if(Object(Ke.isBlobURL)(t.url)&&(t.type=Object(Ke.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({url:t.url,id:t.id,backgroundType:r},"video"===r?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}(c),S=Object(Ke.isBlobURL)(_),P=Object(ke.useState)(v),B=Object(Ie.a)(P,2),T=B[0],z=B[1],N=Object(ke.useState)(j),M=Object(Ie.a)(N,2),V=M[0],I=M[1],R="vh"===j&&100===v,H=Object(ke.useRef)(),A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(ke.useState)(!1),c=Object(Ie.a)(o,2),a=c[0],i=c[1];return Object(ke.useEffect)((function(){e&&t<=50&&n.current&&sa().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(ke.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(na()(r).isDark())}}),[r,t>50||!e,i]),Object(ke.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(_,g,l.color,H),L="image"===p,D="video"===p,F=Object(ke.useState)(null),G=Object(Ie.a)(F,2),U=G[0],q=G[1],W=b.removeAllNotices,Z=b.createErrorNotice,J=j?"".concat(v).concat(j):v,$=ca(ca({},L&&O?Uc(_):{}),{},{backgroundColor:l.color,background:E&&!_?E:void 0,minHeight:U||J||void 0}),K={objectPosition:h&&!O?"".concat(Math.round(100*h.x),"% ").concat(Math.round(100*h.y),"%"):void 0},Q=!!(_||l.color||E),Y=D||L&&(!O||f),X=Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.BlockControls,null,Object(ke.createElement)(je.__experimentalBlockFullHeightAligmentToolbar,{isActive:R,onToggle:function(){return R?c("vh"===V&&100===T?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:T,minHeightUnit:V}):(z(v),I(j),c({minHeight:100,minHeightUnit:"vh"}))}}),Q&&Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.__experimentalBlockAlignmentMatrixToolbar,{label:Object(we.__)("Change content position"),value:m,onChange:function(e){return c({contentPosition:e})}}),Object(ke.createElement)(je.MediaReplaceFlow,{mediaId:d,mediaURL:_,allowedTypes:aa,accept:"image/*,video/*",onSelect:x}))),Object(ke.createElement)(je.InspectorControls,null,!!_&&Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Media settings")},L&&Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(Re.ToggleControl,{label:Object(we.__)("Fixed background"),checked:O,onChange:function(){c(ca({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(ke.createElement)(Re.ToggleControl,{label:Object(we.__)("Repeated background"),checked:f,onChange:function(){c({isRepeated:!f})}})),Y&&Object(ke.createElement)(Re.FocalPointPicker,{label:Object(we.__)("Focal point picker"),url:_,value:h,onChange:function(e){return c({focalPoint:e})}}),Object(ke.createElement)(Re.PanelRow,null,Object(ke.createElement)(Re.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(we.__)("Clear Media")))),Q&&Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Dimensions")},Object(ke.createElement)(ua,{value:U||v,unit:j,onChange:function(e){return c({minHeight:e})},onUnitChange:function(e){return c({minHeightUnit:e})}})),Object(ke.createElement)(je.__experimentalPanelColorGradientSettings,{title:Object(we.__)("Overlay"),initialOpen:!0,settings:[{colorValue:l.color,gradientValue:E,onColorChange:s,onGradientChange:C,label:Object(we.__)("Color")}]},!!_&&Object(ke.createElement)(Re.RangeControl,{label:Object(we.__)("Opacity"),value:g,onChange:function(e){return c({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),ee=Object(je.useBlockProps)(),te=Object(je.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ia,templateInsertUpdatesSelection:!0});if(!Q){var re=Object(ke.createElement)(je.BlockIcon,{icon:Dc}),ne=Object(we.__)("Cover");return Object(ke.createElement)(ke.Fragment,null,X,Object(ke.createElement)("div",Object(Ve.a)({},ee,{className:Se()("is-placeholder",ee.className)}),Object(ke.createElement)(je.MediaPlaceholder,{icon:re,labels:{title:ne,instructions:Object(we.__)("Upload an image or video file, or pick one from your media library.")},onSelect:x,accept:"image/*,video/*",allowedTypes:aa,notices:i,onError:function(e){W(),Z(e)}},Object(ke.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(ke.createElement)(je.ColorPalette,{disableCustomColors:!0,value:l.color,onChange:s,clearable:!1})))))}var oe=Se()(Zc(g),(t={"is-dark-theme":A,"has-background-dim":0!==g,"is-transient":S,"has-parallax":O,"is-repeated":f},Object(fe.a)(t,l.class,l.class),Object(fe.a)(t,"has-background-gradient",E),Object(fe.a)(t,k,!_&&k),Object(fe.a)(t,"has-custom-content-position",!Jc(m)),t),$c(m));return Object(ke.createElement)(ke.Fragment,null,X,Object(ke.createElement)("div",Object(Ve.a)({},ee,{className:Se()(oe,ee.className),style:ca(ca({},$),ee.style),"data-url":_}),Object(ke.createElement)(la,{values:null==y||null===(r=y.spacing)||void 0===r?void 0:r.padding,showValues:null==y||null===(n=y.visualizers)||void 0===n?void 0:n.padding}),Object(ke.createElement)(ma,{className:"block-library-cover__resize-container",onResizeStart:function(){c({minHeightUnit:"px"}),u(!1)},onResize:q,onResizeStop:function(e){u(!0),c({minHeight:e}),q(null)},showHandle:a}),_&&E&&0!==g&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",k),style:{background:E}}),L&&!O&&Object(ke.createElement)("img",{ref:H,className:"wp-block-cover__image-background",alt:"",src:_,style:K}),D&&Object(ke.createElement)("video",{ref:H,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:_,style:K}),S&&Object(ke.createElement)(Re.Spinner,null),Object(ke.createElement)("div",te)))}));function pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ha={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/cover",{url:r,align:n,id:o,anchor:c},[Object(ye.createBlock)("core/paragraph",{content:t,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/cover",{url:r,align:n,id:o,backgroundType:"video",anchor:c},[Object(ye.createBlock)("core/paragraph",{content:t,fontSize:"large"})])}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/image",{caption:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(ye.createBlock)("core/video",{caption:t,src:r,id:o,align:n,anchor:c})}}]},Oa={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},fa=Oa.name,va={title:Object(we._x)("Cover","block title"),description:Object(we.__)("Add an image or video with a text overlay — great for headers."),icon:Dc,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(we.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:ha,save:function(e){var t,r=e.attributes,n=r.backgroundType,o=r.gradient,c=r.contentPosition,a=r.customGradient,i=r.customOverlayColor,l=r.dimRatio,s=r.focalPoint,u=r.hasParallax,b=r.isRepeated,m=r.overlayColor,d=r.url,p=r.id,g=r.minHeight,h=r.minHeightUnit,O=Object(je.getColorClassName)("background-color",m),f=Object(je.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===n,y="video"===n,_=ga(ga({},j&&u?Uc(d):{}),{},{backgroundColor:O?void 0:i,background:a&&!d?a:void 0,minHeight:v||void 0}),w=s&&!u?"".concat(Math.round(100*s.x),"% ").concat(Math.round(100*s.y),"%"):void 0,k=Se()(Zc(l),O,(t={"has-background-dim":0!==l,"has-parallax":u,"is-repeated":b,"has-background-gradient":o||a},Object(fe.a)(t,f,!d&&f),Object(fe.a)(t,"has-custom-content-position",!Jc(c)),t),$c(c));return Object(ke.createElement)("div",je.useBlockProps.save({className:k,style:_}),d&&(o||a)&&0!==l&&Object(ke.createElement)("span",{"aria-hidden":"true",className:Se()("wp-block-cover__gradient-background",f),style:a?{background:a}:void 0}),j&&d&&!u&&Object(ke.createElement)("img",{className:Se()("wp-block-cover__image-background",p?"wp-image-".concat(p):null),alt:"",src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&d&&Object(ke.createElement)("video",{className:Se()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),Object(ke.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ke.createElement)(je.InnerBlocks.Content,null)))},edit:da,deprecated:Xc},ja=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(ke.createElement)(ke.Fragment,null,Object(ke.createElement)(je.BlockControls,null,Object(ke.createElement)(Re.ToolbarGroup,null,r&&Object(ke.createElement)(Re.ToolbarButton,{className:"components-toolbar__control",label:Object(we.__)("Edit URL"),icon:pn.a,onClick:i}))),n&&t&&Object(ke.createElement)(je.InspectorControls,null,Object(ke.createElement)(Re.PanelBody,{title:Object(we.__)("Media settings"),className:"blocks-responsive"},Object(ke.createElement)(Re.ToggleControl,{label:Object(we.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},ya=function(){return Object(ke.createElement)("div",{className:"wp-block-embed is-loading"},Object(ke.createElement)(Re.Spinner,null),Object(ke.createElement)("p",null,Object(we.__)("Embedding…")))},_a=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(ke.createElement)(Re.Placeholder,{icon:Object(ke.createElement)(je.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(we.__)("Paste a link to the content you want to display on your site.")},Object(ke.createElement)("form",{onSubmit:o},Object(ke.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(we.__)("Enter URL to embed here…"),onChange:c}),Object(ke.createElement)(Re.Button,{isPrimary:!0,type:"submit"},Object(we._x)("Embed","button label"))),Object(ke.createElement)("div",{className:"components-placeholder__learn-more"},Object(ke.createElement)(Re.ExternalLink,{href:Object(we.__)("https://wordpress.org/support/article/embeds/")},Object(we.__)("Learn more about embeds"))),a&&Object(ke.createElement)("div",{className:"components-placeholder__error"},Object(ke.createElement)("div",{className:"components-placeholder__instructions"},Object(we.__)("Sorry, this content could not be embedded.")),Object(ke.createElement)(Re.Button,{isSecondary:!0,onClick:l},Object(we._x)("Try again","button label"))," ",Object(ke.createElement)(Re.Button,{isSecondary:!0,onClick:i},Object(we._x)("Convert to link","button label"))))};function wa(e){var t=e.html,r=Object(ke.useRef)();Object(ke.useEffect)((function(){var e=r.current.ownerDocument,t=e.defaultView,n=t.FocusEvent;function o(t){var r=t.data,n=(r=void 0===r?{}:r).secret,o=r.message,c=r.value;[n,o,c].some((function(e){return!e}))||"height"!==o||e.querySelectorAll('iframe[data-secret="'.concat(n,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}function c(){var t=e.activeElement;if("IFRAME"===t.tagName&&t.parentNode===r.current){var o=new n("focus",{bubbles:!0});t.dispatchEvent(o)}}return t.addEventListener("message",o),t.addEventListener("blur",c),function(){t.removeEventListener("message",o),t.removeEventListener("blur",c)}}),[]);var n=Object(ke.useMemo)((function(){var e=(new window.DOMParser).parseFromString(t,"text/html"),r=e.querySelector("iframe");r&&r.removeAttribute("style");var n=e.querySelector("blockquote");return n&&(n.style.display="none"),e.body.innerHTML}),[t]);return Object(ke.createElement)("div",{ref:r,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:n}})}var ka=function(e){Object(sn.a)(o,e);var t,r,n=(t=o,r=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,n=Object(bn.a)(t);if(r){var o=Object(bn.a)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Object(un.a)(this,e)});function o(){var e;return Object(cn.a)(this,o),(e=n.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(ln.a)(e)),e.state={interactive:!1},e}return Object(an.a)(o,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=o.scripts,h=this.state.interactive,O="photo"===i?(t=(e=o).thumbnail_url||e.url,r=Object(ke.createElement)("p",null,Object(ke.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(ke.renderToString)(r)):o.html,f=new URL(a).host.split("."),v=f.splice(f.length-2,f.length-1).join("."),j=Object(we.sprintf)(// translators: %s: host providing embed content e.g: www.youtube.com
27
  Object(we.__)("Embedded content from %s"),v),y=ot()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(ke.createElement)(wa,{html:O}):Object(ke.createElement)("div",{className:"wp-block-embed__wrapper"},Object(ke.createElement)(Re.SandBox,{html:O,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(ke.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(ke.createElement)("figure",{className:ot()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?_:Object(ke.createElement)(Re.Placeholder,{icon:Object(ke.createElement)(je.BlockIcon,{icon:m,showColors:!0}),label:d},Object(ke.createElement)("p",{className:"components-placeholder__error"},Object(ke.createElement)("a",{href:a},a)),Object(ke.createElement)("p",{className:"components-placeholder__error"},Object(we.sprintf)(
28
  /* translators: %s: host providing embed content e.g: www.youtube.com */
29
  Object(we.__)("Embedded content from %s can't be previewed in the editor."),v))),(!je.RichText.isEmpty(l)||u)&&Object(ke.createElement)(je.RichText,{tagName:"figcaption",placeholder:Object(we.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(ye.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),o}(ke.Component);function Ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(r),!0).forEach((function(t){Object(fe.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xa(e){return e?Object(we.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(we.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Sa={from:[{type:"raw",isMatch:function(e){var t,r;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(r=t.match(/https/gi))||void 0===r?void 0:r.length)},transform:function(e){return Object(ye.createBlock)("core/embed",{url:e.textContent.trim()})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.url,r=e.caption,n=Object(ke.createElement)("a",{href:t},r||t);return Object(ye.createBlock)("core/paragraph",{content:Object(ke.renderToString)(n)})}}]},Pa=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Ba=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Ta=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),za=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ke.createElement)(Re.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Na={foreground:"#1da1f2",src:Object(ke.createElement)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Ma={foreground:"#ff0000",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Va={foreground:"#3b5998",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ia=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Ra={foreground:"#0073AA",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Ha={foreground:"#1db954",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Aa=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),La={foreground:"#1ab7ea",src:Object(ke.createElement)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ke.createElement)(Re.G,null,Object(ke.createElement)(Re.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Da=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Fa={foreground:"#35465c",src:Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Ga=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(ke.createElement)(Re.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(ke.createElement)(Re.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),Ua=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(ke.createElement)(Re.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(ke.createElement)(Re.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(ke.createElement)(Re.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(ke.createElement)(Re.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(ke.createElement)(Re.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),qa=Object(ke.createElement)(Re.SVG,{viewBox:"0 0 24 24"},Object(ke.createElement)(Re.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Wa=[{name:"twitter",title:"Twitter",icon:Na,keywords:["tweet",Object(we.__)("social")],description:Object(we.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Ma,keywords:[Object(we.__)("music"),Object(we.__)("video")],description:Object(we.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Va,keywords:[Object(we.__)("social")],description:Object(we.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ia,keywords:[Object(we.__)("image"),Object(we.__)("social")],description:Object(we.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Ra,keywords:[Object(we.__)("post"),Object(we.__)("blog")],description:Object(we.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Ba,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ha,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Aa,keywords:[Object(we.__)("image")],description:Object(we.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:La,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Ua,description:Object(we.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Pa,description:Object(we.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:za,description:Object(we.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Pa,keywords:["polldaddy",Object(we.__)("survey")],description:Object(we.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:qa,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Ta,description:Object(we.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Pa,description:Object(we.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Pa,description:Object(we.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Pa,description:Object(we.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Ba,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:Da,description:Object(we.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Ba,description:Object(we.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:za,description:Object(we.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Pa,description:Object(we.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Pa,description:Object(we.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Ta,description:Object(we.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Pa,description:Object(we.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:za,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:za,description:Object(we.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:Fa,keywords:[Object(we.__)("social")],description:Object(we.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:za,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:za,description:Object(we.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Ga,keywords:[Object(we.__)("ebook")],description:Object(we.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}];Wa.forEach((function(e){e.isActive||(e.isActive=function(e,t){return e.providerNameSlug===t.providerNameSlug})}));var Za=Wa,Ja=[{attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},save:function(e){var t,r=e.attributes,n=r.url,o=r.caption,c=r.type,a=r.providerNameSlug;if(!n)return null;var i=Se()("wp-block-embed",(t={},Object(fe.a)(t,"is-type-".concat(c),c),Object(fe.a)(t,"is-provider-".concat(a),a),t));return Object(ke.createElement)("figure",{className:i},"\n".concat(n,"\n"),!je.RichText.isEmpty(o)&&Object(ke.createElement)(je.RichText.Content,{tagName:"figcaption",value:o}))}}],$a={apiVersion:2,name:"core/embed",category:"embed",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ka=$a.name,Qa={title:Object(we._x)("Embed","block title"),description:Object(we.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),icon:Pa,edit:function(e){var t,r,n=e.attributes,o=n.providerNameSlug,c=n.previewable,a=n.responsive,i=n.url,l=e.attributes,s=e.isSelected,u=e.onReplace,b=e.setAttributes,m=e.insertBlocksAfter,d={title:Qa.title,icon:Qa.icon},p=(t=o,(null===(r=Object(ye.getBlockVariations)("core/embed"))||void 0===r?void 0:r.find((function(e){return e.name===t})))||d),g=p.icon,h=p.title,O=Object(ke.useState)(i),f=Object(Ie.a)(O,2),v=f[0],j=f[1],y=Object(ke.useState)(!1),_=Object(Ie.a)(y,2),w=_[0],k=_[1],E=Object(He.useDispatch)("core/data").invalidateResolution,C=Object(He.useSelect)((function(e){var t,r=e("core"),n=r.getEmbedPreview,o=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,a=r.getThemeSupports;if(!i)return{fetching:!1,cannotEmbed:!1};var l=n(i),s=o(i),u=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),b=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!u&&!b;return{preview:m?l:void 0,fetching:c(i),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!m||s}}),[i]),x=C.preview,S=C.fetching,P=C.themeSupportsResponsive,B=C.cannotEmbed,T=function(){var e=l.allowResponsive,t=l.className;return Ca(Ca({},l),pt(x,h,t,a,e))};Object(ke.useEffect)((function(){if(null!=x&&x.html&&B&&!S){var e=i.replace(/\/$/,"");j(e),k(!1),b({url:e})}}),[null==x?void 0:x.html,i]),Object(ke.useEffect)((function(){if(x&&!w&&(b(T()),u)){var t=bt(e,T());t&&u(t)}}),[x,w]);var z=Object(je.useBlockProps)();if(S)return Object(ke.createElement)("div",z,Object(ke.createElement)(ya,null));// translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists
changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
3
  = 9.8.2 =
4
 
5
  ### Bug Fixes
@@ -8,7 +14,6 @@
8
  - Block Validation: Allow unitless zero CSS lengths ([28501](https://github.com/WordPress/gutenberg/pull/28501))
9
 
10
 
11
-
12
  = 9.8.1 =
13
 
14
  ### Bug Fixes
1
  == Changelog ==
2
 
3
+ = 9.8.3 =
4
+
5
+ ### Bug Fixes
6
+
7
+ - Cover Block: Add `minHeightUnit` to latest deprecation. ([28627](https://github.com/WordPress/gutenberg/pull/28627))
8
+
9
  = 9.8.2 =
10
 
11
  ### Bug Fixes
14
  - Block Validation: Allow unitless zero CSS lengths ([28501](https://github.com/WordPress/gutenberg/pull/28501))
15
 
16
 
 
17
  = 9.8.1 =
18
 
19
  ### Bug Fixes
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: 9.8.2
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
@@ -13,8 +13,8 @@
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
- define( 'GUTENBERG_VERSION', '9.8.2' );
17
- define( 'GUTENBERG_GIT_COMMIT', 'e5332c015bfe15f64dc21b49f6b2a9b140145836' );
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: 9.8.3
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '9.8.3' );
17
+ define( 'GUTENBERG_GIT_COMMIT', '21632c60be53f45ec5318ea048929b46a33d1e0f' );
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.5.0
4
  Tested up to: 5.6
5
  Requires PHP: 5.6
6
- Stable tag: 9.8.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 9.8.2, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v9.8.2">release page</a>.
3
  Requires at least: 5.5.0
4
  Tested up to: 5.6
5
  Requires PHP: 5.6
6
+ Stable tag: 9.8.2
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 9.8.3, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v9.8.3">release page</a>.