this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=282)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(10);function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",function(){return a})},function(e,t){!function(){e.exports=this.wp.editor}()},,function(e,t){!function(){e.exports=this.wp.url}()},,,function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},function(e,t){!function(){e.exports=this.wp.apiFetch}()},,,function(e,t){!function(){e.exports=this.wp.blob}()},,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"g",function(){return i}),n.d(t,"l",function(){return l}),n.d(t,"k",function(){return s}),n.d(t,"o",function(){return u}),n.d(t,"d",function(){return b}),n.d(t,"f",function(){return m}),n.d(t,"n",function(){return d}),n.d(t,"i",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"m",function(){return g}),n.d(t,"h",function(){return f}),n.d(t,"j",function(){return v}),n.d(t,"a",function(){return O});var r=n(0),o=n(3),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(r.createElement)(o.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),l=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),s={foreground:"#1da1f2",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"})))},u={foreground:"#ff0000",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"}))},b={foreground:"#3b5998",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"}))},m=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"}))),d={foreground:"#0073AA",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"})))},h={foreground:"#1db954",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"}))},p=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"})),g={foreground:"#1ab7ea",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"})))},f=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"})),v={foreground:"#35465c",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},O=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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(r.createElement)(o.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(r.createElement)(o.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"}))},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},,function(e,t){!function(){e.exports=this.wp.viewport}()},,function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),o=c(l,i,e),a=c(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,p;return n=M(n),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function d(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=(a+c)/2;if(a==c)r=o=0;else{var l=a-c;switch(o=i>.5?l/(2-a-c):l/(a+c),a){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(m(r));return a}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:o,v:a})),a=(a+i)%1;return c}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(P(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*A(this._r,255))+"%",g:l(100*A(this._g,255))+"%",b:l(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*A(this._r,255))+"%, "+l(100*A(this._g,255))+"%, "+l(100*A(this._b,255))+"%)":"rgba("+l(100*A(this._r,255))+"%, "+l(100*A(this._g,255))+"%, "+l(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),a=n/100;return m({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,a=m.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},m.mostReadable=function(e,t,n){var r,o,a,c,i=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,c=n.size;for(var s=0;sl&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var B=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function I(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function P(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return I(e)/255}var V,D,F,U=(D="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},,,,,,function(e,t){!function(){e.exports=this.wp.serverSideRender}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"h",function(){return l}),n.d(t,"a",function(){return s}),n.d(t,"f",function(){return b}),n.d(t,"b",function(){return m}),n.d(t,"e",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"d",function(){return p});var r=n(10),o=n(45),a=n.n(o),c=n(2),i=a()(function(e){return void 0===e?null:Object(c.times)(e,function(){return["core/column"]})}),l=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function s(e,t){var n=Object(c.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}function u(e,t){var n=e.attributes.width;return l(void 0===n?100/t:n)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(c.sumBy)(e,function(e){return u(e,t)})}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce(function(e,n){var o=u(n,t);return Object.assign(e,Object(r.a)({},n.clientId,o))},{})}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-b(e,n))/e.length;return Object(c.mapValues)(m(e,n),function(e){return l(e+r)})}function h(e){return e.some(function(e){return Number.isFinite(e.attributes.width)})}function p(e,t){return e.map(function(e){return Object(c.merge)({},e,{attributes:{width:t[e.clientId]}})})}},,,,function(e,t,n){"use strict";n.d(t,"e",function(){return f}),n.d(t,"a",function(){return v}),n.d(t,"d",function(){return O}),n.d(t,"b",function(){return j}),n.d(t,"c",function(){return y});var r=n(10),o=n(7),a=n(17),c=n(0),i=n(89),l=n(62),s=n(2),u=n(73),b=n.n(u),m=n(45),d=n.n(m),h=n(9),p=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some(function(t){return e.match(t)})},g=function(e){return Object(s.includes)(e,'class="wp-embedded-content"')},f=function(e){var t=e.thumbnail_url?e.thumbnail_url:e.url,n=Object(c.createElement)("p",null,Object(c.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(c.renderToString)(n)},v=function(e,t){var n=e.preview,r=e.name,c=e.attributes.url;if(c){var s=function(e){for(var t=0,n=[].concat(Object(a.a)(i.a),Object(a.a)(i.b));t1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var o={"wp-has-aspect-ratio":!1},a=0;a=d.ratio)return b()(t,(m={},Object(r.a)(m,d.className,n),Object(r.a)(m,"wp-has-aspect-ratio",n),m))}return t}function j(e,t){var n=Object(c.createElement)("a",{href:e},e);t(Object(h.createBlock)("core/paragraph",{content:Object(c.renderToString)(n)}))}var y=d()(function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var a={},c=e.type,i=void 0===c?"rich":c,l=e.html,u=e.provider_name,b=Object(s.kebabCase)(Object(s.toLower)(""!==u?u:t));return g(l)&&(i="wp-embed"),(l||"photo"===i)&&(a.type=i,a.providerNameSlug=b),a.className=O(l,n,r&&o),a})},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c});var r=["facebook.com","smugmug.com"],o=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a="core/embed",c="core-embed/wordpress"},,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,function(e,t){!function(){e.exports=this.wp.autop}()},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(143);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?A+="x":A+=M[R];if(!A.match(d)){var L=B.slice(0,x),z=B.slice(x+1),P=M.match(h);P&&(L.push(P[1]),z.unshift(P[2])),z.length&&(O="/"+z.join(".")+O),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!p[_])for(x=0,N=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=k.slice(-1)[0],E=(n.host||e.host||k.length>1)&&("."===w||".."===w)||""===w,x=0,S=k.length;S>=0;S--)"."===(w=k[S])?k.splice(S,1):".."===w?(k.splice(S,1),x++):x&&(k.splice(S,1),x--);if(!y&&!_)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var T,B=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=n.host=B?"":k.length?k.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&k.length)&&!B&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},,function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return i});var r=n(40),o=n(1),a=n(9),c=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:r.k,keywords:["tweet"],description:Object(o.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:r.o,keywords:[Object(o.__)("music"),Object(o.__)("video")],description:Object(o.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:r.d,description:Object(o.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:r.f,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:r.n,keywords:[Object(o.__)("post"),Object(o.__)("blog")],responsive:!1,description:Object(o.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:r.i,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:r.e,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:r.m,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],i=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:r.l,description:Object(o.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:r.c,description:Object(o.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:r.l,description:Object(o.__)("Embed CollegeHumor content.")},patterns:[/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:r.c,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(a.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(o.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:r.l,description:Object(o.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:r.l,description:Object(o.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:r.g,description:Object(o.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:r.c,description:Object(o.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:r.c,description:Object(o.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:r.c,description:Object(o.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:r.c,description:Object(o.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:r.h,description:Object(o.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:r.b,description:Object(o.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:r.l,description:Object(o.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:r.c,description:Object(o.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:r.c,description:Object(o.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:r.g,description:Object(o.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:r.b,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:r.c,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(a.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(o.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:r.l,description:Object(o.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:r.j,description:Object(o.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:r.l,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:r.l,description:Object(o.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:r.a,keywords:[Object(o.__)("ebook")],responsive:!1,description:Object(o.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}]},,,,,,,function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var l,s=[],u=!1,b=-1;function m(){u&&l&&(u=!1,l.length?s=l.concat(s):b=-1,s.length&&d())}function d(){if(!u){var e=i(m);u=!0;for(var t=s.length;t;){for(l=s,s=[];++b1)for(var n=1;n2&&void 0!==arguments[2])||arguments[2];return function(o){function a(){var e;return Object(l.a)(this,a),(e=Object(u.a)(this,Object(b.a)(a).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(m.a)(e)),e.setUrl=e.setUrl.bind(Object(m.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(m.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(m.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(m.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(m.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(m.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(d.a)(a,o),Object(s.a)(a,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=Object(h.a)(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState(function(e){return{url:e.url.replace(/\/$/,"")}},this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,o=this.props.attributes,a=o.className,c=o.allowResponsive;return Object(r.a)({},this.props.attributes,Object(h.c)(t,e,a,n,c))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(p.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(p.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:Object(h.d)(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,l=this.props,s=l.fetching,u=l.setAttributes,b=l.isSelected,m=l.preview,d=l.cannotEmbed,g=l.themeSupportsResponsive,f=l.tryAgain;if(s)return Object(i.createElement)(O,null);var y=Object(p.sprintf)(Object(p.__)("%s URL"),e);if(!m||d||c)return Object(i.createElement)(j,{icon:t,label:y,onSubmit:this.setUrl,value:a,cannotEmbed:d,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Object(h.b)(a,r.props.onReplace)},tryAgain:f});var _=this.getMergedAttributes(),k=_.caption,C=_.type,w=_.allowResponsive,E=M()(_.className,this.props.className);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v,{showEditButton:m&&!d,themeSupportsResponsive:g,blockSupportsResponsive:n,allowResponsive:w,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(i.createElement)(B,{preview:m,className:E,url:a,type:C,caption:k,onCaptionChange:function(e){return u({caption:e})},isSelected:b,icon:t,label:y}))}}]),a}(i.Component)}(t,o,T);return{title:t,description:N,icon:o,category:g,keywords:k,attributes:R,supports:Object(r.a)({align:!0},x),transforms:y,edit:Object(E.compose)(Object(A.withSelect)(function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}}),Object(A.withDispatch)(function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}}))(I),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=w()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},Object(i.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:R,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=w()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},"\n".concat(r,"\n"),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var L=n(9);n.d(t,"name",function(){return z}),n.d(t,"settings",function(){return P}),n.d(t,"common",function(){return H}),n.d(t,"others",function(){return V});var z="core/embed",P=I({title:Object(p._x)("Embed","block title"),description:Object(p.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:a.c,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(L.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),H=o.a.map(function(e){return Object(r.a)({},e,{settings:I(e.settings)})}),V=o.b.map(function(e){return Object(r.a)({},e,{settings:I(e.settings)})})},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(9),a=n(0),c=n(16),i=n.n(c),l=n(6),s=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(l.getColorClassName)("background-color",n),c=i()(o,{"has-background":n||r}),s={backgroundColor:o?void 0:r};return Object(a.createElement)("div",{className:c,style:s},Object(a.createElement)(l.InnerBlocks.Content,null))}}],u=n(4),b=n(8);var m=Object(b.compose)([Object(l.withColors)("backgroundColor"),Object(u.withSelect)(function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}})])(function(e){var t=e.className,n=e.setBackgroundColor,o=e.backgroundColor,c=e.hasInnerBlocks,s={backgroundColor:o.color},u=i()(t,o.class,{"has-background":!!o.color});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(l.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:o.color,onChange:n,label:Object(r.__)("Background Color")}]})),Object(a.createElement)("div",{className:u,style:s},Object(a.createElement)("div",{className:"wp-block-group__inner-container"},Object(a.createElement)(l.InnerBlocks,{renderAppender:!c&&l.InnerBlocks.ButtonBlockAppender}))))}),d=n(3),h=Object(a.createElement)(d.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object(a.createElement)(d.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"}));n.d(t,"metadata",function(){return p}),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var p={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},g=p.name,f={title:Object(r.__)("Group"),icon:h,description:Object(r.__)("A block that groups other blocks."),keywords:[Object(r.__)("container"),Object(r.__)("wrapper"),Object(r.__)("row"),Object(r.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(r.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(r.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(r.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(r.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(r.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(r.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce(function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e},void 0),r=e.map(function(e){return Object(o.createBlock)(e.name,e.attributes,e.innerBlocks)});return Object(o.createBlock)("core/group",{align:n},r)}}}]},edit:m,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(l.getColorClassName)("background-color",n),c=i()(o,{"has-background":n||r}),s={backgroundColor:o?void 0:r};return Object(a.createElement)("div",{className:c,style:s},Object(a.createElement)("div",{className:"wp-block-group__inner-container"},Object(a.createElement)(l.InnerBlocks.Content,null)))},deprecated:s}},,,,,,,,,,,function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=36,u=1,b=26,m=38,d=700,h=72,p=128,g="-",f=/^xn--/,v=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,k=String.fromCharCode;function C(e){throw RangeError(j[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(O,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+m))}function N(e){var t,n,r,o,a,c,i,m,d,f,v,O=[],j=e.length,y=0,k=p,w=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&C("not-basic"),O.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=j&&C("invalid-input"),((m=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||m>_((l-y)/c))&&C("overflow"),y+=m*c,!(m<(d=i<=w?u:i>=w+b?b:i-w));i+=s)c>_(l/(f=s-d))&&C("overflow"),c*=f;w=B(y-a,t=O.length+1,0==a),_(y/t)>l-k&&C("overflow"),k+=_(y/t),y%=t,O.splice(y++,0,k)}return S(O)}function M(e){var t,n,r,o,a,c,i,m,d,f,v,O,j,y,w,E=[];for(O=(e=x(e)).length,t=p,n=0,a=h,c=0;c=t&&v_((l-n)/(j=r+1))&&C("overflow"),n+=(i-t)*j,t=i,c=0;cl&&C("overflow"),v==t){for(m=n,d=s;!(m<(f=d<=a?u:d>=a+b?b:d-a));d+=s)w=m-f,y=s-f,E.push(k(T(f+w%y,0))),m=_(w/y);E.push(k(T(m,0))),a=B(n,j,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.3.2",ucs2:{decode:x,encode:S},decode:N,encode:M,toASCII:function(e){return E(e,function(e){return v.test(e)?"xn--"+M(e):e})},toUnicode:function(e){return E(e,function(e){return f.test(e)?N(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(141)(e),n(67))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(144),t.encode=t.stringify=n(145)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=p.substr(0,g),m=p.substr(g+1)):(b=p,m=""),d=decodeURIComponent(b),h=decodeURIComponent(m),r(c,d)?o(c[d])?c[d].push(h):c[d]=[c[d],h]:c[d]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[c]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===m.F10&&t.stopPropagation()}),e.addButton("kitchensink",{tooltip:Object(r._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(i,"has-advanced-toolbar",t)}}),e.on("init",function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(i,"has-advanced-toolbar")}),e.addButton("wp_add_media",{tooltip:Object(r.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())})}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(b.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(r.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(b.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(b.Component),p=n(3),g=Object(b.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(p.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(p.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(b.createElement)(p.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(b.createElement)(p.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"17",y:"8",width:"2",height:"2"}));n.d(t,"metadata",function(){return f}),n.d(t,"name",function(){return v}),n.d(t,"settings",function(){return O});var f={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},v=f.name,O={title:Object(r._x)("Classic","block title"),description:Object(r.__)("Use the classic WordPress editor."),icon:g,supports:{className:!1,customClassName:!1,reusable:!1},edit:h,save:function(e){var t=e.attributes.content;return Object(b.createElement)(b.RawHTML,null,t)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(3),c=n(9),i=n(4),l=n(6);var s=Object(i.withDispatch)(function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(c.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}})(function(e){var t,n=e.attributes,i=e.convertToHTML,s=n.originalName,u=n.originalUndelimitedContent,b=!!u,m=Object(c.getBlockType)("core/html"),d=[];return b&&m?(t=Object(r.sprintf)(Object(r.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),s),d.push(Object(o.createElement)(a.Button,{key:"convert",onClick:i,isLarge:!0,isPrimary:!0},Object(r.__)("Keep as HTML")))):t=Object(r.sprintf)(Object(r.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),s),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.Warning,{actions:d},t),Object(o.createElement)(o.RawHTML,null,u))});n.d(t,"metadata",function(){return u}),n.d(t,"name",function(){return b}),n.d(t,"settings",function(){return m});var u={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},b=u.name,m={name:b,title:Object(r.__)("Unrecognized Block"),description:Object(r.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},edit:s,save:function(e){var t=e.attributes;return Object(o.createElement)(o.RawHTML,null,t.originalContent)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){ /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ e.exports=function(){"use strict";function e(e,t){for(var n=0;nc?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=0,i=0,l=0;lr?-1:n===r?0:1}),m=t(b[0],5),d=m[0],h=m[1],p=m[2],g=m[3],f=m[4];return g?[Math.round(d/g),Math.round(h/g),Math.round(p/g),Math.round(g/f)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){var t=(299*e[0]+587*e[1]+114*e[2])/1e3;return t<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n;var r,o,a}()}()},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(16),i=n.n(c),l=n(6),s=[{supports:{className:!1,anchor:!0},attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},save:function(e){var t=e.attributes,n=t.align,r=t.level,c=t.content,s=t.textColor,u=t.customTextColor,b="h"+r,m=Object(l.getColorClassName)("color",s),d=i()(Object(o.a)({},m,m));return Object(a.createElement)(l.RichText.Content,{className:d||void 0,tagName:b,style:{textAlign:n,color:m?void 0:u},value:c})}}],u=n(7),b=n(12),m=n(11),d=n(13),h=n(14),p=n(15),g=n(2),f=n(3);function v(e){var t=e.level,n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return n.hasOwnProperty(t)?Object(a.createElement)(f.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(f.Path,{d:n[t]})):null}var O=function(e){function t(){return Object(b.a)(this,t),Object(d.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(m.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:Object(a.createElement)(v,{level:e}),title:Object(r.sprintf)(Object(r.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,c=t.maxLevel,i=t.selectedLevel,l=t.onChange;return Object(a.createElement)(f.Toolbar,{isCollapsed:r,icon:Object(a.createElement)(v,{level:i}),controls:Object(g.range)(o,c).map(function(t){return e.createLevelControl(t,i,l)})})}}]),t}(a.Component),j=n(8),y=n(9),_=Object(a.memo)(function(e){var t=e.textColorValue,n=e.setTextColor;return Object(a.createElement)(l.PanelColorSettings,{title:Object(r.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:t,onChange:n,label:Object(r.__)("Text Color")}]})});var k=Object(j.compose)([Object(l.withColors)("backgroundColor",{textColor:"color"})])(function(e){var t,n=e.attributes,c=e.setAttributes,s=e.mergeBlocks,b=e.onReplace,m=e.className,d=e.textColor,h=e.setTextColor,p=n.align,g=n.content,v=n.level,j=n.placeholder,k="h"+v;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.BlockControls,null,Object(a.createElement)(O,{minLevel:2,maxLevel:5,selectedLevel:v,onChange:function(e){return c({level:e})}}),Object(a.createElement)(l.AlignmentToolbar,{value:p,onChange:function(e){c({align:e})}})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(f.PanelBody,{title:Object(r.__)("Heading Settings")},Object(a.createElement)("p",null,Object(r.__)("Level")),Object(a.createElement)(O,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:v,onChange:function(e){return c({level:e})}})),Object(a.createElement)(_,{setTextColor:h,textColorValue:d.color})),Object(a.createElement)(l.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:k,value:g,onChange:function(e){return c({content:e})},onMerge:s,onSplit:function(e){return e?Object(y.createBlock)("core/heading",Object(u.a)({},n,{content:e})):Object(y.createBlock)("core/paragraph")},onReplace:b,onRemove:function(){return b([])},className:i()(m,(t={},Object(o.a)(t,"has-text-align-".concat(p),p),Object(o.a)(t,"has-text-color",d.color),Object(o.a)(t,d.class,d.class),t)),placeholder:j||Object(r.__)("Write heading…"),style:{color:d.color}}))});var C=n(17);var w={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(y.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(y.getPhrasingContentSchema)()},h2:{children:Object(y.getPhrasingContentSchema)()},h3:{children:Object(y.getPhrasingContentSchema)()},h4:{children:Object(y.getPhrasingContentSchema)()},h5:{children:Object(y.getPhrasingContentSchema)()},h6:{children:Object(y.getPhrasingContentSchema)()}},transform:function(e){return Object(y.createBlock)("core/heading",Object(u.a)({},Object(y.getBlockAttributes)("core/heading",e.outerHTML),{level:(t=e.nodeName,Number(t.substr(1)))}));var t}}].concat(Object(C.a)([2,3,4,5,6].map(function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(y.createBlock)("core/heading",{level:e,content:t})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(y.createBlock)("core/paragraph",{content:t})}}]};n.d(t,"metadata",function(){return E}),n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var E={name:"core/heading",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},x=E.name,S={title:Object(r.__)("Heading"),description:Object(r.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:"heading",keywords:[Object(r.__)("title"),Object(r.__)("subtitle")],supports:{className:!1,anchor:!0},example:{attributes:{content:Object(r.__)("Code is Poetry"),level:2}},transforms:w,deprecated:s,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:k,save:function(e){var t,n=e.attributes,r=n.align,c=n.content,s=n.customTextColor,u=n.level,b=n.textColor,m="h"+u,d=Object(l.getColorClassName)("color",b),h=i()((t={},Object(o.a)(t,d,d),Object(o.a)(t,"has-text-align-".concat(r),r),t));return Object(a.createElement)(l.RichText.Content,{className:h||void 0,tagName:m,style:{color:d?void 0:s},value:c})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(6);function u(e){return Math.min(3,e.images.length)}var b=function(e){var t=Object(l.pick)(e,["alt","id","link","caption"]);t.url=Object(l.get)(e,["sizes","large","url"])||Object(l.get)(e,["media_details","sizes","large","source_url"])||e.url;var n=Object(l.get)(e,["sizes","full","url"])||Object(l.get)(e,["media_details","sizes","full","source_url"]);return n&&(t.fullUrl=n),t},m=[{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.imageCrop,i=t.linkTo;return Object(a.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(a.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(a.createElement)("figure",null,t?Object(a.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(l.some)(t,function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]}))},migrate:function(e){return Object(o.a)({},e,{ids:Object(l.map)(e.images,function(e){var t=e.id;return t?parseInt(t,10):null})})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.imageCrop,i=t.linkTo;return Object(a.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(a.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(a.createElement)("figure",null,t?Object(a.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.align,l=t.imageCrop,s=t.linkTo,b=i()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":l});return Object(a.createElement)("div",{className:b},n.map(function(e){var t;switch(s){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(a.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(a.createElement)("a",{href:t},n):n)}))}}],d=n(10),h=n(17),p=n(12),g=n(11),f=n(13),v=n(14),O=n(5),j=n(15),y=n(8),_=n(3),k=n(35),C=n(4),w=n(19),E=Object(a.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(_.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(_.G,null,Object(a.createElement)(_.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),x=Object(a.createElement)(_.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(_.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),S=Object(a.createElement)(_.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(_.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),T=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(f.a)(this,Object(v.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(O.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(e)),e.bindContainer=e.bindContainer.bind(Object(O.a)(e)),e.state={captionSelected:!1},e}return Object(j.a)(t,e),Object(g.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[w.BACKSPACE,w.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,o=t.alt,c=t.id,l=t.linkTo,u=t.link,b=t.isFirstItem,m=t.isLastItem,d=t.isSelected,h=t.caption,p=t.onRemove,g=t.onMoveForward,f=t.onMoveBackward,v=t.setAttributes,O=t["aria-label"];switch(l){case"media":e=n;break;case"attachment":e=u}var j=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("img",{src:n,alt:o,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":O,ref:this.bindContainer}),Object(k.isBlobURL)(n)&&Object(a.createElement)(_.Spinner,null)),y=i()({"is-selected":d,"is-transient":Object(k.isBlobURL)(n)});return Object(a.createElement)("figure",{className:y},e?Object(a.createElement)("a",{href:e},j):j,Object(a.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(a.createElement)(_.IconButton,{icon:x,onClick:b?void 0:f,className:"blocks-gallery-item__move-backward",label:Object(r.__)("Move image backward"),"aria-disabled":b,disabled:!d}),Object(a.createElement)(_.IconButton,{icon:S,onClick:m?void 0:g,className:"blocks-gallery-item__move-forward",label:Object(r.__)("Move image forward"),"aria-disabled":m,disabled:!d})),Object(a.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(a.createElement)(_.IconButton,{icon:"no-alt",onClick:p,className:"blocks-gallery-item__remove",label:Object(r.__)("Remove image"),disabled:!d})),(d||h)&&Object(a.createElement)(s.RichText,{tagName:"figcaption",placeholder:d?Object(r.__)("Write caption…"):null,value:h,isSelected:this.state.captionSelected,onChange:function(e){return v({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(a.Component),B=Object(C.withSelect)(function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})(T),N=[{value:"attachment",label:Object(r.__)("Attachment Page")},{value:"media",label:Object(r.__)("Media File")},{value:"none",label:Object(r.__)("None")}],M=["image"],A=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(f.a)(this,Object(v.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(O.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(O.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(O.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(O.a)(e)),e.onMove=e.onMove.bind(Object(O.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(O.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(O.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(e)),e.onUploadError=e.onUploadError.bind(Object(O.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(O.a)(e)),e.setAttributes=e.setAttributes.bind(Object(O.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(O.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(j.a)(t,e),Object(g.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(o.a)({},e,{ids:Object(l.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onMove",value:function(e,t){var n=Object(h.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(l.filter)(t.props.attributes.images,function(t,n){return e!==n}),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"selectCaption",value:function(e,t,n){var r=Object(l.find)(t,{id:e.id}),o=r?r.caption:e.caption;if(!n)return o;var a=Object(l.find)(n,{id:e.id});return a&&a.caption!==e.caption?e.caption:o}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,a=n.images,c=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map(function(e){return{id:e.id,caption:e.caption}})}),this.setAttributes({images:e.map(function(e){return Object(o.a)({},b(e),{caption:t.selectCaption(e,a,c)})}),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(r.__)("Thumbnails are cropped to align."):Object(r.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:[].concat(Object(h.a)(n.slice(0,e)),[Object(o.a)({},n[e],t)],Object(h.a)(n.slice(e+1)))})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if(Object(l.every)(r,function(e){var t=e.url;return Object(k.isBlobURL)(t)})){var o=Object(l.map)(r,function(e){var t=e.url;return Object(k.getBlobByURL)(t)});Object(l.forEach)(r,function(e){var t=e.url;return Object(k.revokeBlobURL)(t)}),n({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,c=n.className,b=n.isSelected,m=n.noticeUI,h=n.setAttributes,p=o.align,g=o.columns,f=void 0===g?u(o):g,v=o.caption,O=o.imageCrop,j=o.images,y=o.linkTo,k=!!j.length,C=k&&Object(l.some)(j,function(e){return e.id}),w=Object(a.createElement)(s.MediaPlaceholder,{addToGallery:C,isAppender:k,className:c,dropZoneUIOnly:k&&!b,icon:!k&&Object(a.createElement)(s.BlockIcon,{icon:E}),labels:{title:!k&&Object(r.__)("Gallery"),instructions:!k&&Object(r.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:M,multiple:!0,value:C?j:void 0,onError:this.onUploadError,notices:k?void 0:m});if(!k)return w;var x=i()("blocks-gallery-caption",{"screen-reader-text":!b&&s.RichText.isEmpty(v)});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.InspectorControls,null,Object(a.createElement)(_.PanelBody,{title:Object(r.__)("Gallery Settings")},j.length>1&&Object(a.createElement)(_.RangeControl,{label:Object(r.__)("Columns"),value:f,onChange:this.setColumnsNumber,min:1,max:Math.min(8,j.length),required:!0}),Object(a.createElement)(_.ToggleControl,{label:Object(r.__)("Crop Images"),checked:!!O,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(a.createElement)(_.SelectControl,{label:Object(r.__)("Link To"),value:y,onChange:this.setLinkTo,options:N}))),m,Object(a.createElement)("figure",{className:i()(c,(e={},Object(d.a)(e,"align".concat(p),p),Object(d.a)(e,"columns-".concat(f),f),Object(d.a)(e,"is-cropped",O),e))},Object(a.createElement)("ul",{className:"blocks-gallery-grid"},j.map(function(e,n){var o=Object(r.sprintf)(Object(r.__)("image %1$d of %2$d in gallery"),n+1,j.length);return Object(a.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(a.createElement)(B,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===j.length,isSelected:b&&t.state.selectedImage===n,onMoveBackward:t.onMoveBackward(n),onMoveForward:t.onMoveForward(n),onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":o}))})),w,Object(a.createElement)(s.RichText,{tagName:"figcaption",className:x,placeholder:Object(r.__)("Write gallery caption…"),value:v,unstableOnFocus:this.onFocusGalleryCaption,onChange:function(e){return h({caption:e})},inlineToolbar:!0})))}}]),t}(a.Component),R=Object(y.compose)([Object(C.withSelect)(function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}}),_.withNotices])(A);var I=n(9),L=function(e){return e?e.split(",").map(function(e){return parseInt(e,10)}):[]},z={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(l.every)(e,["align",t])?t:void 0;var n=Object(l.filter)(e,function(e){return e.url});return Object(I.createBlock)("core/gallery",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return L(t).map(function(e){return{id:e}})}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return L(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(l.every)(e,function(e){return 0===e.type.indexOf("image/")})},transform:function(e){return Object(I.createBlock)("core/gallery",{images:e.map(function(e){return b({url:Object(k.createBlobURL)(e)})})})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(I.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})}):Object(I.createBlock)("core/image",{align:n})}}]};n.d(t,"metadata",function(){return P}),n.d(t,"name",function(){return H}),n.d(t,"settings",function(){return V});var P={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}}},H=P.name,V={title:Object(r.__)("Gallery"),description:Object(r.__)("Display multiple images in a rich gallery."),icon:E,keywords:[Object(r.__)("images"),Object(r.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://upload.wikimedia.org/wikipedia/commons/c/c3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://upload.wikimedia.org/wikipedia/commons/0/01/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:z,edit:R,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.imageCrop,i=t.caption,l=t.linkTo;return Object(a.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(a.createElement)("ul",{className:"blocks-gallery-grid"},n.map(function(e){var t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(a.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(a.createElement)("figure",null,t?Object(a.createElement)("a",{href:t},n):n,!s.RichText.isEmpty(e.caption)&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!s.RichText.isEmpty(i)&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:i}))},deprecated:m}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(6),u=[{attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},save:function(e){var t,n,r=e.attributes,c=r.backgroundColor,u=r.customBackgroundColor,b=r.isStackedOnMobile,m=r.mediaAlt,d=r.mediaPosition,h=r.mediaType,p=r.mediaUrl,g=r.mediaWidth,f={image:function(){return Object(a.createElement)("img",{src:p,alt:m})},video:function(){return Object(a.createElement)("video",{controls:!0,src:p})}},v=Object(s.getColorClassName)("background-color",c),O=i()((t={"has-media-on-the-right":"right"===d},Object(o.a)(t,v,v),Object(o.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===d?"auto ".concat(g,"%"):"".concat(g,"% auto"));var j={backgroundColor:v?void 0:u,gridTemplateColumns:n};return Object(a.createElement)("div",{className:O,style:j},Object(a.createElement)("figure",{className:"wp-block-media-text__media"},(f[h]||l.noop)()),Object(a.createElement)("div",{className:"wp-block-media-text__content"},Object(a.createElement)(s.InnerBlocks.Content,null)))}}],b=n(18),m=n(12),d=n(11),h=n(13),p=n(14),g=n(5),f=n(15),v=n(3),O=n(8),j=n(4),y=Object(a.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(v.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(a.createElement)(v.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(a.createElement)(v.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),_=["image","video"];function k(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var C=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(g.a)(e)),e}return Object(f.a)(t,e),Object(d.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(a.createElement)(s.BlockControls,null,Object(a.createElement)(v.Toolbar,null,Object(a.createElement)(s.MediaUpload,{onSelect:n,allowedTypes:_,value:t,render:function(e){var t=e.open;return Object(a.createElement)(v.IconButton,{className:"components-toolbar__control",label:Object(r.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,c=e.focalPoint,i=o?k(n,c):{};return Object(a.createElement)(a.Fragment,null,this.renderToolbarEditButton(),Object(a.createElement)("figure",{className:r,style:i},Object(a.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(a.createElement)(a.Fragment,null,this.renderToolbarEditButton(),Object(a.createElement)("figure",{className:n},Object(a.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className,o=e.noticeUI;return Object(a.createElement)(s.MediaPlaceholder,{icon:Object(a.createElement)(s.BlockIcon,{icon:y}),labels:{title:Object(r.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:_,notices:o,onError:this.onUploadError})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,c=e.commitWidthChange,i=e.onWidthChange,l=e.toggleSelection;if(r&&n){var s={right:"left"===t,left:"right"===t},u=null;switch(r){case"image":u=this.renderImage();break;case"video":u=this.renderVideo()}return Object(a.createElement)(v.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:s,onResizeStart:function(){l(!1)},onResize:function(e,t,n){i(parseInt(n.style.width))},onResizeStop:function(e,t,n){l(!0),c(parseInt(n.style.width))},axis:"x"},u)}return this.renderPlaceholder()}}]),t}(a.Component),w=Object(O.compose)([Object(j.withDispatch)(function(e){return{toggleSelection:e("core/block-editor").toggleSelection}}),v.withNotices])(C),E=[["core/paragraph",{fontSize:"large",placeholder:Object(r._x)("Content…","content placeholder")}]],x=function(e){return Math.max(15,Math.min(e,85))},S=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(g.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(g.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(g.a)(e)),e.state={mediaWidth:null},e}return Object(f.a)(t,e),Object(d.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(l.get)(e,["sizes","large","url"])||Object(l.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,imageFill:void 0,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:x(e)})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:x(e)}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,c=e.mediaUrl,i=e.mediaWidth,l=e.imageFill,s=e.focalPoint;return Object(a.createElement)(w,Object(b.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:c,mediaPosition:r,mediaWidth:i,imageFill:l,focalPoint:s}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,c=t.className,l=t.backgroundColor,u=t.isSelected,b=t.setAttributes,m=t.setBackgroundColor,d=n.isStackedOnMobile,h=n.mediaAlt,p=n.mediaPosition,g=n.mediaType,f=n.mediaWidth,O=n.verticalAlignment,j=n.mediaUrl,y=n.imageFill,_=n.focalPoint,k=this.state.mediaWidth,C=i()(c,(e={"has-media-on-the-right":"right"===p,"is-selected":u,"has-background":l.class||l.color},Object(o.a)(e,l.class,l.class),Object(o.a)(e,"is-stacked-on-mobile",d),Object(o.a)(e,"is-vertically-aligned-".concat(O),O),Object(o.a)(e,"is-image-fill",y),e)),w="".concat(k||f,"%"),x={gridTemplateColumns:"right"===p?"auto ".concat(w):"".concat(w," auto"),backgroundColor:l.color},S=[{value:l.color,onChange:m,label:Object(r.__)("Background Color")}],T=[{icon:"align-pull-left",title:Object(r.__)("Show media on left"),isActive:"left"===p,onClick:function(){return b({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(r.__)("Show media on right"),isActive:"right"===p,onClick:function(){return b({mediaPosition:"right"})}}],B=Object(a.createElement)(v.PanelBody,{title:Object(r.__)("Media & Text Settings")},Object(a.createElement)(v.ToggleControl,{label:Object(r.__)("Stack on mobile"),checked:d,onChange:function(){return b({isStackedOnMobile:!d})}}),"image"===g&&Object(a.createElement)(v.ToggleControl,{label:Object(r.__)("Crop image to fill entire column"),checked:y,onChange:function(){return b({imageFill:!y})}}),y&&Object(a.createElement)(v.FocalPointPicker,{label:Object(r.__)("Focal Point Picker"),url:j,value:_,onChange:function(e){return b({focalPoint:e})}}),"image"===g&&Object(a.createElement)(v.TextareaControl,{label:Object(r.__)("Alt Text (Alternative Text)"),value:h,onChange:function(e){b({mediaAlt:e})},help:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(v.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(r.__)("Describe the purpose of the image")),Object(r.__)("Leave empty if the image is purely decorative."))}));return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.InspectorControls,null,B,Object(a.createElement)(s.PanelColorSettings,{title:Object(r.__)("Color Settings"),initialOpen:!1,colorSettings:S})),Object(a.createElement)(s.BlockControls,null,Object(a.createElement)(v.Toolbar,{controls:T}),Object(a.createElement)(s.BlockVerticalAlignmentToolbar,{onChange:function(e){b({verticalAlignment:e})},value:O})),Object(a.createElement)("div",{className:C,style:x},this.renderMediaArea(),Object(a.createElement)(s.InnerBlocks,{template:E,templateInsertUpdatesSelection:!1})))}}]),t}(a.Component),T=Object(s.withColors)("backgroundColor")(S),B=Object(a.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(v.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),N=50;var M=n(9),A={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(M.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(M.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(M.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(M.createBlock)("core/video",{id:t,src:n})}}]};n.d(t,"metadata",function(){return R}),n.d(t,"name",function(){return I}),n.d(t,"settings",function(){return L});var R={name:"core/media-text",category:"layout",attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},I=R.name,L={title:Object(r.__)("Media & Text"),description:Object(r.__)("Set media and words side-by-side for a richer layout."),icon:B,keywords:[Object(r.__)("image"),Object(r.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://upload.wikimedia.org/wikipedia/commons/d/d4/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(r.__)("The wren
Earns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(r.__)("— Kobayashi Issa (一茶)")}}]},transforms:A,edit:T,save:function(e){var t,n,r=e.attributes,c=r.backgroundColor,u=r.customBackgroundColor,b=r.isStackedOnMobile,m=r.mediaAlt,d=r.mediaPosition,h=r.mediaType,p=r.mediaUrl,g=r.mediaWidth,f=r.mediaId,v=r.verticalAlignment,O=r.imageFill,j=r.focalPoint,y={image:function(){return Object(a.createElement)("img",{src:p,alt:m,className:f&&"image"===h?"wp-image-".concat(f):null})},video:function(){return Object(a.createElement)("video",{controls:!0,src:p})}},_=Object(s.getColorClassName)("background-color",c),C=i()((t={"has-media-on-the-right":"right"===d,"has-background":_||u},Object(o.a)(t,_,_),Object(o.a)(t,"is-stacked-on-mobile",b),Object(o.a)(t,"is-vertically-aligned-".concat(v),v),Object(o.a)(t,"is-image-fill",O),t)),w=O?k(p,j):{};g!==N&&(n="right"===d?"auto ".concat(g,"%"):"".concat(g,"% auto"));var E={backgroundColor:_?void 0:u,gridTemplateColumns:n};return Object(a.createElement)("div",{className:C,style:E},Object(a.createElement)("figure",{className:"wp-block-media-text__media",style:w},(y[h]||l.noop)()),Object(a.createElement)("div",{className:"wp-block-media-text__content"},Object(a.createElement)(s.InnerBlocks.Content,null)))},deprecated:u}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(18),a=n(10),c=n(0),i=n(16),l=n.n(i),s=n(6),u={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},b=[{attributes:u,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,i=n.caption,u=n.align,b=n.href,m=n.width,d=n.height,h=n.id,p=l()((t={},Object(a.a)(t,"align".concat(u),u),Object(a.a)(t,"is-resized",m||d),t)),g=Object(c.createElement)("img",{src:r,alt:o,className:h?"wp-image-".concat(h):null,width:m,height:d});return Object(c.createElement)("figure",{className:p},b?Object(c.createElement)("a",{href:b},g):g,!s.RichText.isEmpty(i)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:i}))}},{attributes:u,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,i=t.href,l=t.width,u=t.height,b=t.id,m=Object(c.createElement)("img",{src:n,alt:r,className:b?"wp-image-".concat(b):null,width:l,height:u});return Object(c.createElement)("figure",{className:a?"align".concat(a):null},i?Object(c.createElement)("a",{href:i},m):m,!s.RichText.isEmpty(o)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:u,save:function(e){var t=e.attributes,n=t.url,r=t.alt,a=t.caption,i=t.align,l=t.href,u=t.width,b=t.height,m=u||b?{width:u,height:b}:{},d=Object(c.createElement)("img",Object(o.a)({src:n,alt:r},m)),h={};return u?h={width:u}:"left"!==i&&"right"!==i||(h={maxWidth:"50%"}),Object(c.createElement)("figure",{className:i?"align".concat(i):null,style:h},l?Object(c.createElement)("a",{href:l},d):d,!s.RichText.isEmpty(a)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:a}))}}],m=n(7),d=n(12),h=n(11),p=n(13),g=n(14),f=n(5),v=n(15),O=n(23),j=n(2),y=n(35),_=n(3),k=n(8),C=n(19),w=n(4),E=n(26),x=n(43),S=n(46),T=n(61),B=Object(c.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(_.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(c.createElement)(_.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(c.createElement)(_.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var N=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(f.a)(e)),e.calculateSize=e.calculateSize.bind(Object(f.a)(e)),e}return Object(v.a)(t,e),Object(h.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=j.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),c=a.width,i=a.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(c.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(c.Component),M=Object(k.withGlobalEvents)({resize:"calculateSize"})(N),A=["image"],R=function(e,t){return!e&&Object(y.isBlobURL)(t)},I=function(e){e.stopPropagation()},L=function(e){[C.LEFT,C.DOWN,C.RIGHT,C.UP,C.BACKSPACE,C.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},z=function(e){var t=e.advancedOptions,n=e.linkDestination,o=e.mediaLinks,a=e.onChangeUrl,i=e.url,l=Object(c.useState)(!1),u=Object(O.a)(l,2),b=u[0],m=u[1],d=Object(c.useCallback)(function(){m(!0)}),h=Object(c.useState)(!1),p=Object(O.a)(h,2),g=p[0],f=p[1],v=Object(c.useState)(null),y=Object(O.a)(v,2),k=y[0],C=y[1],w=Object(c.useCallback)(function(){"media"!==n&&"attachment"!==n||C(""),f(!0)}),E=Object(c.useCallback)(function(){f(!1)}),x=Object(c.useCallback)(function(){C(null),E(),m(!1)}),S=Object(c.useRef)(null),T=Object(c.useCallback)(function(){return function(e){var t=S.current;t&&t.contains(e.target)||(m(!1),C(null),E())}}),B=Object(c.useCallback)(function(){return function(e){k&&a(k),E(),C(null),e.preventDefault()}}),N=Object(c.useCallback)(function(){x(),a("")}),M=null!==k?k:i,A=(Object(j.find)(o,["linkDestination",n])||{}).title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.IconButton,{icon:"admin-links",className:"components-toolbar__control",label:i?Object(r.__)("Edit link"):Object(r.__)("Insert link"),"aria-expanded":b,onClick:d}),b&&Object(c.createElement)(s.URLPopover,{onClickOutside:T(),onClose:x,renderSettings:function(){return t},additionalControls:!M&&Object(c.createElement)(_.NavigableMenu,null,Object(j.map)(o,function(e){return Object(c.createElement)(_.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){C(null),a(e.url),E()}},e.title)}))},(!i||g)&&Object(c.createElement)(s.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:C,onKeyDown:L,onKeyPress:I,onSubmit:B(),autocompleteRef:S}),i&&!g&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(s.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:I,url:i,onEditLinkClick:w,urlLabel:A}),Object(c.createElement)(_.IconButton,{icon:"no",label:Object(r.__)("Remove link"),onClick:N}))))},P=function(e){function t(e){var n,r=e.attributes;return Object(d.a)(this,t),(n=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(f.a)(n)),n.updateAlignment=n.updateAlignment.bind(Object(f.a)(n)),n.onFocusCaption=n.onFocusCaption.bind(Object(f.a)(n)),n.onImageClick=n.onImageClick.bind(Object(f.a)(n)),n.onSelectImage=n.onSelectImage.bind(Object(f.a)(n)),n.onSelectURL=n.onSelectURL.bind(Object(f.a)(n)),n.updateImage=n.updateImage.bind(Object(f.a)(n)),n.updateWidth=n.updateWidth.bind(Object(f.a)(n)),n.updateHeight=n.updateHeight.bind(Object(f.a)(n)),n.updateDimensions=n.updateDimensions.bind(Object(f.a)(n)),n.onSetHref=n.onSetHref.bind(Object(f.a)(n)),n.onSetLinkClass=n.onSetLinkClass.bind(Object(f.a)(n)),n.onSetLinkRel=n.onSetLinkRel.bind(Object(f.a)(n)),n.onSetNewTab=n.onSetNewTab.bind(Object(f.a)(n)),n.getFilename=n.getFilename.bind(Object(f.a)(n)),n.toggleIsEditing=n.toggleIsEditing.bind(Object(f.a)(n)),n.onUploadError=n.onUploadError.bind(Object(f.a)(n)),n.onImageError=n.onImageError.bind(Object(f.a)(n)),n.getLinkDestinations=n.getLinkDestinations.bind(Object(f.a)(n)),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(v.a)(t,e),Object(h.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(R(a,i)){var l=Object(y.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(O.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:A,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;R(n,o)&&!R(c,l)&&Object(y.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){if(e&&e.url){this.setState({isEditing:!1});var t,n,r,o=this.props.attributes,a=o.id,c=o.url,i=o.alt,l=o.caption,s=(t=e,(n=Object(j.pick)(t,["alt","id","link","caption"])).url=Object(j.get)(t,["sizes","large","url"])||Object(j.get)(t,["media_details","sizes","large","source_url"])||t.url,n);R(a,c)&&(i&&(s=Object(j.omit)(s,["alt"])),l&&(s=Object(j.omit)(s,["caption"]))),r=e.id&&e.id===a?{url:c}:{width:void 0,height:void 0,sizeSlug:"large"},this.props.setAttributes(Object(m.a)({},s,r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=Object(T.a)({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){var t,n=this.getLinkDestinations();this.props.attributes.linkDestination===(t=e?(Object(j.find)(n,function(t){return t.url===e})||{linkDestination:"custom"}).linkDestination:"none")?this.props.setAttributes({href:e}):this.props.setAttributes({linkDestination:t,href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(m.a)({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(j.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(E.getPath)(e);if(t)return Object(j.last)(t.split("/"))}},{key:"getLinkDestinations",value:function(){return[{linkDestination:"media",title:Object(r.__)("Media File"),url:this.props.image&&this.props.image.source_url||this.props.attributes.url,icon:B},{linkDestination:"attachment",title:Object(r.__)("Attachment Page"),url:this.props.image&&this.props.image.link,icon:Object(c.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(_.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(c.createElement)(_.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing}),this.state.isEditing?Object(S.speak)(Object(r.__)("You are now viewing the image in the image block.")):Object(S.speak)(Object(r.__)("You are now editing the image in the image block."))}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(j.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}},{key:"render",value:function(){var e=this,t=this.state.isEditing,n=this.props,o=n.attributes,i=n.setAttributes,u=n.isLargeViewport,b=n.isSelected,m=n.className,d=n.maxWidth,h=n.noticeUI,p=n.isRTL,g=n.onResizeStart,f=n.onResizeStop,v=o.url,O=o.alt,k=o.caption,C=o.align,w=o.id,E=o.href,x=o.rel,S=o.linkClass,T=o.linkDestination,N=o.width,R=o.height,P=o.linkTarget,H=o.sizeSlug,V=function(e,t){return t&&!e&&!Object(y.isBlobURL)(t)}(w,v),D=Object(c.createElement)(_.SVG,{width:20,height:20,viewBox:"0 0 20 20"},Object(c.createElement)(_.Rect,{x:11,y:3,width:7,height:5,rx:1}),Object(c.createElement)(_.Rect,{x:2,y:12,width:7,height:5,rx:1}),Object(c.createElement)(_.Path,{d:"M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"}),Object(c.createElement)(_.Path,{d:"M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"})),F=Object(c.createElement)(s.BlockControls,null,Object(c.createElement)(s.BlockAlignmentToolbar,{value:C,onChange:this.updateAlignment}),v&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.Toolbar,null,Object(c.createElement)(_.IconButton,{className:l()("components-icon-button components-toolbar__control",{"is-active":this.state.isEditing}),label:Object(r.__)("Edit image"),"aria-pressed":this.state.isEditing,onClick:this.toggleIsEditing,icon:D})),Object(c.createElement)(_.Toolbar,null,Object(c.createElement)(z,{url:E||"",onChangeUrl:this.onSetHref,mediaLinks:this.getLinkDestinations(),linkDestination:T,advancedOptions:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.ToggleControl,{label:Object(r.__)("Open in New Tab"),onChange:this.onSetNewTab,checked:"_blank"===P}),Object(c.createElement)(_.TextControl,{label:Object(r.__)("Link CSS Class"),value:S||"",onKeyPress:I,onKeyDown:L,onChange:this.onSetLinkClass}),Object(c.createElement)(_.TextControl,{label:Object(r.__)("Link Rel"),value:x||"",onChange:this.onSetLinkRel,onKeyPress:I,onKeyDown:L}))})))),U=V?v:void 0,q={title:v?Object(r.__)("Edit image"):Object(r.__)("Image"),instructions:Object(r.__)("Upload an image file, pick one from your media library, or add one with a URL.")},W=!!v&&Object(c.createElement)("img",{alt:Object(r.__)("Edit image"),title:Object(r.__)("Edit image"),className:"edit-image-preview",src:v}),G=Object(c.createElement)(s.MediaPlaceholder,{icon:Object(c.createElement)(s.BlockIcon,{icon:B}),className:m,labels:q,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onDoubleClick:this.toggleIsEditing,onCancel:!!v&&this.toggleIsEditing,notices:h,onError:this.onUploadError,accept:"image/*",allowedTypes:A,value:{id:w,src:U},mediaPreview:W,dropZoneUIOnly:!t&&v});if(t||!v)return Object(c.createElement)(c.Fragment,null,F,G);var Z=l()(m,Object(a.a)({"is-transient":Object(y.isBlobURL)(v),"is-resized":!!N||!!R,"is-focused":b},"size-".concat(H),H)),K=-1===["wide","full"].indexOf(C)&&u,$=this.getImageSizeOptions(),Y=function(t,n){return Object(c.createElement)(s.InspectorControls,null,Object(c.createElement)(_.PanelBody,{title:Object(r.__)("Image Settings")},Object(c.createElement)(_.TextareaControl,{label:Object(r.__)("Alt Text (Alternative Text)"),value:O,onChange:e.updateAlt,help:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(r.__)("Describe the purpose of the image")),Object(r.__)("Leave empty if the image is purely decorative."))}),!Object(j.isEmpty)($)&&Object(c.createElement)(_.SelectControl,{label:Object(r.__)("Image Size"),value:H,options:$,onChange:e.updateImage}),K&&Object(c.createElement)("div",{className:"block-library-image__dimensions"},Object(c.createElement)("p",{className:"block-library-image__dimensions__row"},Object(r.__)("Image Dimensions")),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(_.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(r.__)("Width"),value:N||t||"",min:1,onChange:e.updateWidth}),Object(c.createElement)(_.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(r.__)("Height"),value:R||n||"",min:1,onChange:e.updateHeight})),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(_.ButtonGroup,{"aria-label":Object(r.__)("Image Size")},[25,50,75,100].map(function(r){var o=Math.round(t*(r/100)),a=Math.round(n*(r/100)),i=N===o&&R===a;return Object(c.createElement)(_.Button,{key:r,isSmall:!0,isPrimary:i,"aria-pressed":i,onClick:e.updateDimensions(o,a)},r,"%")})),Object(c.createElement)(_.Button,{isSmall:!0,onClick:e.updateDimensions()},Object(r.__)("Reset"))))))};return Object(c.createElement)(c.Fragment,null,F,Object(c.createElement)("figure",{className:Z},Object(c.createElement)(M,{src:v,dirtynessTrigger:C},function(t){var n,o=t.imageWidthWithinContainer,a=t.imageHeightWithinContainer,l=t.imageWidth,s=t.imageHeight,u=e.getFilename(v);n=O||(u?Object(r.sprintf)(Object(r.__)("This image has an empty alt attribute; its file name is %s"),u):Object(r.__)("This image has an empty alt attribute"));var b=Object(c.createElement)(c.Fragment,null,Object(c.createElement)("img",{src:v,alt:n,onDoubleClick:e.toggleIsEditing,onClick:e.onImageClick,onError:function(){return e.onImageError(v)}}),Object(y.isBlobURL)(v)&&Object(c.createElement)(_.Spinner,null));if(!K||!o)return Object(c.createElement)(c.Fragment,null,Y(l,s),Object(c.createElement)("div",{style:{width:N,height:R}},b));var m=N||o,h=R||a,j=l/s,k=l a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},W=q.name,G={title:Object(r.__)("Image"),description:Object(r.__)("Insert an image to make a visual statement."),icon:B,keywords:["img",Object(r.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://upload.wikimedia.org/wikipedia/commons/1/15/MtBlanc1.JPG",caption:Object(r.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(r._x)("Default","block style"),isDefault:!0},{name:"circle-mask",label:Object(r._x)("Circle Mask","block style")}],transforms:U,getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:H,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,i=n.caption,u=n.align,b=n.href,m=n.rel,d=n.linkClass,h=n.width,p=n.height,g=n.id,f=n.linkTarget,v=n.sizeSlug,O=l()((t={},Object(a.a)(t,"align".concat(u),u),Object(a.a)(t,"size-".concat(v),v),Object(a.a)(t,"is-resized",h||p),t)),j=Object(c.createElement)("img",{src:r,alt:o,className:g?"wp-image-".concat(g):null,width:h,height:p}),y=Object(c.createElement)(c.Fragment,null,b?Object(c.createElement)("a",{className:d,href:b,target:f,rel:m},j):j,!s.RichText.isEmpty(i)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:i}));return"left"===u||"right"===u||"center"===u?Object(c.createElement)("div",null,Object(c.createElement)("figure",{className:O},y)):Object(c.createElement)("figure",{className:O},y)},deprecated:b}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(7),c=n(0),i=n(2),l=n(16),s=n.n(l),u=n(9),b=n(6),m="image",d="video",h=50;function p(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function g(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}var f={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"}},v=[{attributes:Object(a.a)({},f,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,a=t.customOverlayColor,i=t.dimRatio,l=t.focalPoint,u=t.hasParallax,h=t.overlayColor,f=t.title,v=t.url,O=Object(b.getColorClassName)("background-color",h),j=n===m?p(v):{};O||(j.backgroundColor=a),l&&!u&&(j.backgroundPosition="".concat(100*l.x,"% ").concat(100*l.y,"%"));var y=s()(g(i),O,Object(o.a)({"has-background-dim":0!==i,"has-parallax":u},"has-".concat(r,"-content"),"center"!==r));return Object(c.createElement)("div",{className:y,style:j},d===n&&v&&Object(c.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:v}),!b.RichText.isEmpty(f)&&Object(c.createElement)(b.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:f}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign"]),[Object(u.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(r.__)("Write title…")})]]}},{attributes:Object(a.a)({},f,{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,n=t.url,r=t.title,a=t.hasParallax,i=t.dimRatio,l=t.align,u=t.contentAlign,m=t.overlayColor,d=t.customOverlayColor,h=Object(b.getColorClassName)("background-color",m),f=p(n);h||(f.backgroundColor=d);var v=s()("wp-block-cover-image",g(i),h,Object(o.a)({"has-background-dim":0!==i,"has-parallax":a},"has-".concat(u,"-content"),"center"!==u),l?"align".concat(l):null);return Object(c.createElement)("div",{className:v,style:f},!b.RichText.isEmpty(r)&&Object(c.createElement)(b.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign","align"]),[Object(u.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(r.__)("Write title…")})]]}},{attributes:Object(a.a)({},f,{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,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,i=t.align,l=p(n),u=s()("wp-block-cover-image",g(a),{"has-background-dim":0!==a,"has-parallax":o},i?"align".concat(i):null);return Object(c.createElement)("section",{className:u,style:l},Object(c.createElement)(b.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign","align"]),[Object(u.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(r.__)("Write title…")})]]}}],O=n(12),j=n(11),y=n(13),_=n(14),k=n(5),C=n(15),w=n(23),E=n(229),x=n.n(E),S=n(49),T=n.n(S),B=n(3),N=n(8),M=n(4),A=Object(c.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(B.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),Object(c.createElement)(B.Path,{d:"M0 0h24v24H0z",fill:"none"})),R=["image","video"],I=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(r.__)("Write title…")}]];function L(){return L.fastAverageColor||(L.fastAverageColor=new x.a),L.fastAverageColor}var z=Object(N.withInstanceId)(function(e){var t=e.value,n=void 0===t?"":t,o=e.instanceId,a=e.onChange,i=Object(c.useState)(null),l=Object(w.a)(i,2),s=l[0],u=l[1],b=Object(c.useCallback)(function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(T()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case m:i=this.imageRef.current;break;case d:i=this.videoRef.current}i&&L().getColorAsync(i,function(e){t.changeIsDarkIfRequired(e.isDark)})}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}(c.Component),D=Object(N.compose)([Object(M.withDispatch)(function(e){return{toggleSelection:e("core/block-editor").toggleSelection}}),Object(b.withColors)({overlayColor:"background-color"}),B.withNotices,N.withInstanceId])(V);var F={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(u.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(u.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:d})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===m},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(u.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===d},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(u.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]};n.d(t,"metadata",function(){return U}),n.d(t,"name",function(){return q}),n.d(t,"settings",function(){return W});var U={name:"core/cover",category:"common",attributes:{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"},minHeight:{type:"number"}}},q=U.name,W={title:Object(r.__)("Cover"),description:Object(r.__)("Add an image or video with a text overlay — great for headers."),icon:A,supports:{align:!0},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(r.__)("Snow Patrol"),align:"center"}}]},transforms:F,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,u=t.url,h=t.minHeight,f=Object(b.getColorClassName)("background-color",l),v=n===m?p(u):{};f||(v.backgroundColor=r),a&&!i&&(v.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%")),v.minHeight=h||void 0;var O=s()(g(o),f,{"has-background-dim":0!==o,"has-parallax":i});return Object(c.createElement)("div",{className:O,style:v},d===n&&u&&Object(c.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(c.createElement)("div",{className:"wp-block-cover__inner-container"},Object(c.createElement)(b.InnerBlocks.Content,null)))},edit:D,deprecated:v}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(16),c=n.n(a),i=n(6),l=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,a=t.body,l=t.foot,s=t.backgroundColor;if(!r.length&&!a.length&&!l.length)return null;var u=Object(i.getColorClassName)("background-color",s),b=c()(u,{"has-fixed-layout":n,"has-background":!!u}),m=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(o.createElement)(r,null,n.map(function(e,t){var n=e.cells;return Object(o.createElement)("tr",{key:t},n.map(function(e,t){var n=e.content,r=e.tag,a=e.scope;return Object(o.createElement)(i.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?a:void 0})}))}))};return Object(o.createElement)("table",{className:b},Object(o.createElement)(m,{type:"head",rows:r}),Object(o.createElement)(m,{type:"body",rows:a}),Object(o.createElement)(m,{type:"foot",rows:l}))}}],s=n(10),u=n(7),b=n(12),m=n(11),d=n(13),h=n(14),p=n(5),g=n(15),f=n(3),v=n(17),O=n(2),j=["align"];function y(e,t,n){if(!t)return e;var r=Object(O.pick)(e,["head","body","foot"]),o=t.sectionName,a=t.rowIndex;return Object(O.mapValues)(r,function(e,r){return o&&o!==r?e:e.map(function(e,o){return a&&a!==o?e:{cells:e.cells.map(function(e,a){return _({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e})}})})}function _(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function k(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,a=function(e){return w(e.head)?w(e.body)?w(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===o?Object(O.get)(a,["cells","length"]):o;return c?Object(s.a)({},n,[].concat(Object(v.a)(e[n].slice(0,r)),[{cells:Object(O.times)(c,function(e){var t=Object(O.get)(a,["cells",e],{}),r=Object(O.pick)(t,j);return Object(u.a)({},r,{content:"",tag:"head"===n?"th":"td"})})}],Object(v.a)(e[n].slice(r)))):e}function C(e,t){return w(e[t])?k(e,{sectionName:t,rowIndex:0,columnCount:Object(O.get)(e,["body",0,"cells","length"],1)}):Object(s.a)({},t,[])}function w(e){return!e||!e.length||Object(O.every)(e,E)}function E(e){return!(e.cells&&e.cells.length)}var x=Object(o.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(f.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(f.G,null,Object(o.createElement)(f.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),S=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],T=[{icon:"editor-alignleft",title:Object(r.__)("Align Column Left"),align:"left"},{icon:"editor-aligncenter",title:Object(r.__)("Align Column Center"),align:"center"},{icon:"editor-alignright",title:Object(r.__)("Align Column Right"),align:"right"}],B=Object(i.createCustomColorsHOC)(S),N=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(d.a)(this,Object(h.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(p.a)(e)),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(p.a)(e)),e.onChange=e.onChange.bind(Object(p.a)(e)),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(p.a)(e)),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(p.a)(e)),e.renderSection=e.renderSection.bind(Object(p.a)(e)),e.getTableControls=e.getTableControls.bind(Object(p.a)(e)),e.onInsertRow=e.onInsertRow.bind(Object(p.a)(e)),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(p.a)(e)),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(p.a)(e)),e.onDeleteRow=e.onDeleteRow.bind(Object(p.a)(e)),e.onInsertColumn=e.onInsertColumn.bind(Object(p.a)(e)),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(p.a)(e)),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(p.a)(e)),e.onDeleteColumn=e.onDeleteColumn.bind(Object(p.a)(e)),e.onToggleHeaderSection=e.onToggleHeaderSection.bind(Object(p.a)(e)),e.onToggleFooterSection=e.onToggleFooterSection.bind(Object(p.a)(e)),e.onChangeColumnAlignment=e.onChangeColumnAlignment.bind(Object(p.a)(e)),e.getCellAlignment=e.getCellAlignment.bind(Object(p.a)(e)),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(O.times)(n,function(){return{cells:Object(O.times)(r,function(){return{content:"",tag:"td"}})}})}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(y(r,t,function(t){return Object(u.a)({},t,{content:e})}))}}},{key:"onChangeColumnAlignment",value:function(e){var t=this.state.selectedCell;if(t){var n={type:"column",columnIndex:t.columnIndex},r=this.props,o=r.attributes;(0,r.setAttributes)(y(o,n,function(t){return Object(u.a)({},t,{align:e})}))}}},{key:"getCellAlignment",value:function(){var e=this.state.selectedCell;if(e){var t,n,r,o,a,c,i=this.props.attributes;return t=i,r="align",o=(n=e).sectionName,a=n.rowIndex,c=n.columnIndex,Object(O.get)(t,[o,a,"cells",c,r])}}},{key:"onToggleHeaderSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(C(t,"head"))}},{key:"onToggleFooterSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(C(t,"foot"))}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.sectionName,c=t.rowIndex;this.setState({selectedCell:null}),o(k(r,{sectionName:a,rowIndex:c+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.sectionName,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.sectionName,r=t.rowIndex;return Object(s.a)({},n,e[n].filter(function(e,t){return t!==r}))}(n,{sectionName:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.columnIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.columnIndex,r=Object(O.pick)(e,["head","body","foot"]);return Object(O.mapValues)(r,function(e,t){return w(e)?e:e.map(function(e){return E(e)||e.cells.length=n?e.cells.filter(function(e,t){return t!==n}):e.cells}}).filter(function(e){return e.cells.length})})}(n,{sectionName:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Object(u.a)({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(r.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(r.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(r.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(r.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(r.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(r.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(w(r))return null;var a="t".concat(n),l=this.state.selectedCell;return Object(o.createElement)(a,null,r.map(function(e,r){var a=e.cells;return Object(o.createElement)("tr",{key:r},a.map(function(e,a){var u=e.content,b=e.tag,m=e.scope,d=e.align,h={sectionName:n,rowIndex:r,columnIndex:a},p=_(h,l),g=c()(Object(s.a)({"is-selected":p},"has-text-align-".concat(d),d));return Object(o.createElement)(b,{key:a,className:g,scope:"th"===b?m:void 0,onClick:function(e){var t=e&&e.target&&e.target.querySelector(".".concat("wp-block-table__cell-content"));t&&t.focus()}},Object(o.createElement)(i.RichText,{className:"wp-block-table__cell-content",value:u,onChange:t.onChange,unstableOnFocus:t.createOnFocus(h)}))}))}))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,a=t.className,l=t.backgroundColor,s=t.setBackgroundColor,u=this.state,b=u.initialRowCount,m=u.initialColumnCount,d=n.hasFixedLayout,h=n.head,p=n.body,g=n.foot,v=w(h)&&w(p)&&w(g),O=this.renderSection;if(v)return Object(o.createElement)(f.Placeholder,{label:Object(r.__)("Table"),icon:Object(o.createElement)(i.BlockIcon,{icon:x,showColors:!0}),instructions:Object(r.__)("Insert a table for sharing data."),isColumnLayout:!0},Object(o.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object(o.createElement)(f.TextControl,{type:"number",label:Object(r.__)("Column Count"),value:m,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(o.createElement)(f.TextControl,{type:"number",label:Object(r.__)("Row Count"),value:b,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(o.createElement)(f.Button,{className:"wp-block-table__placeholder-button",isDefault:!0,type:"submit"},Object(r.__)("Create Table"))));var j=c()(l.class,{"has-fixed-layout":d,"has-background":!!l.color});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.BlockControls,null,Object(o.createElement)(f.Toolbar,null,Object(o.createElement)(f.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(r.__)("Edit table"),controls:this.getTableControls()})),Object(o.createElement)(i.AlignmentToolbar,{label:Object(r.__)("Change column alignment"),alignmentControls:T,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(o.createElement)(i.InspectorControls,null,Object(o.createElement)(f.PanelBody,{title:Object(r.__)("Table Settings"),className:"blocks-table-settings"},Object(o.createElement)(f.ToggleControl,{label:Object(r.__)("Fixed width table cells"),checked:!!d,onChange:this.onChangeFixedLayout}),Object(o.createElement)(f.ToggleControl,{label:Object(r.__)("Header section"),checked:!(!h||!h.length),onChange:this.onToggleHeaderSection}),Object(o.createElement)(f.ToggleControl,{label:Object(r.__)("Footer section"),checked:!(!g||!g.length),onChange:this.onToggleFooterSection})),Object(o.createElement)(i.PanelColorSettings,{title:Object(r.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:l.color,onChange:s,label:Object(r.__)("Background Color"),disableCustomColors:!0,colors:S}]})),Object(o.createElement)("figure",{className:a},Object(o.createElement)("table",{className:j},Object(o.createElement)(O,{name:"head",rows:h}),Object(o.createElement)(O,{name:"body",rows:p}),Object(o.createElement)(O,{name:"foot",rows:g}))))}}]),t}(o.Component),M=B("backgroundColor")(N);var A=n(9),R={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(A.getPhrasingContentSchema)(),attributes:["scope"]},td:{allowEmpty:!0,children:Object(A.getPhrasingContentSchema)()}}}},I={from:[{type:"raw",selector:"table",schema:{table:{children:{thead:{allowEmpty:!0,children:R},tfoot:{allowEmpty:!0,children:R},tbody:{allowEmpty:!0,children:R}}}}}]};n.d(t,"metadata",function(){return L}),n.d(t,"name",function(){return z}),n.d(t,"settings",function(){return P});var L={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},z=L.name,P={title:Object(r.__)("Table"),description:Object(r.__)("Insert a table — perfect for sharing charts and data."),icon:x,example:{attributes:{head:[{cells:[{content:Object(r.__)("Version"),tag:"th"},{content:Object(r.__)("Jazz Musician"),tag:"th"},{content:Object(r.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(r.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(r.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(r.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(r._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(r.__)("Stripes")}],supports:{align:!0},transforms:I,edit:M,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,a=t.body,l=t.foot,u=t.backgroundColor;if(!r.length&&!a.length&&!l.length)return null;var b=Object(i.getColorClassName)("background-color",u),m=c()(b,{"has-fixed-layout":n,"has-background":!!b}),d=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(o.createElement)(r,null,n.map(function(e,t){var n=e.cells;return Object(o.createElement)("tr",{key:t},n.map(function(e,t){var n=e.content,r=e.tag,a=e.scope,l=e.align,u=c()(Object(s.a)({},"has-text-align-".concat(l),l));return Object(o.createElement)(i.RichText.Content,{className:u||void 0,"data-align":l,tagName:r,value:n,key:t,scope:"th"===r?a:void 0})}))}))};return Object(o.createElement)("figure",null,Object(o.createElement)("table",{className:m},Object(o.createElement)(d,{type:"head",rows:r}),Object(o.createElement)(d,{type:"body",rows:a}),Object(o.createElement)(d,{type:"foot",rows:l})))},deprecated:l}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(18),a=n(23),c=n(12),i=n(11),l=n(13),s=n(14),u=n(5),b=n(15),m=n(0),d=n(16),h=n.n(d),p=n(35),g=n(3),f=n(8),v=n(4),O=n(6),j=Object(m.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(m.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(m.createElement)(g.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function y(e){var t=e.hrefs,n=e.openInNewWindow,o=e.showDownloadButton,a=e.changeLinkDestinationOption,c=e.changeOpenInNewWindow,i=e.changeShowDownloadButton,l=t.href,s=t.textLinkHref,u=t.attachmentPage,b=[{value:l,label:Object(r.__)("URL")}];return u&&(b=[{value:l,label:Object(r.__)("Media File")},{value:u,label:Object(r.__)("Attachment page")}]),Object(m.createElement)(m.Fragment,null,Object(m.createElement)(O.InspectorControls,null,Object(m.createElement)(g.PanelBody,{title:Object(r.__)("Text link settings")},Object(m.createElement)(g.SelectControl,{label:Object(r.__)("Link To"),value:s,options:b,onChange:a}),Object(m.createElement)(g.ToggleControl,{label:Object(r.__)("Open in new tab"),checked:n,onChange:c})),Object(m.createElement)(g.PanelBody,{title:Object(r.__)("Download button settings")},Object(m.createElement)(g.ToggleControl,{label:Object(r.__)("Show download button"),checked:o,onChange:i}))))}var _=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(u.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(u.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(u.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(u.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(u.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(u.a)(e)),e.onUploadError=e.onUploadError.bind(Object(u.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(b.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,o=t.mediaUpload,c=t.noticeOperations,i=t.setAttributes,l=n.downloadButtonText,s=n.href;Object(p.isBlobURL)(s)&&(o({filesList:[Object(p.getBlobByURL)(s)],onFileChange:function(t){var n=Object(a.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),c.createErrorNotice(t)}}),Object(p.revokeBlobURL)(s));void 0===l&&i({downloadButtonText:Object(r._x)("Download","button label")})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,a=t.isSelected,c=t.attributes,i=t.setAttributes,l=t.noticeUI,s=t.media,u=c.fileName,b=c.href,d=c.textLinkHref,f=c.textLinkTarget,v=c.showDownloadButton,_=c.downloadButtonText,k=c.id,C=this.state,w=C.hasError,E=C.showCopyConfirmation,x=s&&s.link;if(!b||w)return Object(m.createElement)(O.MediaPlaceholder,{icon:Object(m.createElement)(O.BlockIcon,{icon:j}),labels:{title:Object(r.__)("File"),instructions:Object(r.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:l,onError:this.onUploadError,accept:"*"});var S=h()(n,{"is-transient":Object(p.isBlobURL)(b)});return Object(m.createElement)(m.Fragment,null,Object(m.createElement)(y,Object(o.a)({hrefs:{href:b,textLinkHref:d,attachmentPage:x}},{openInNewWindow:!!f,showDownloadButton:v,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(m.createElement)(O.BlockControls,null,Object(m.createElement)(O.MediaUploadCheck,null,Object(m.createElement)(g.Toolbar,null,Object(m.createElement)(O.MediaUpload,{onSelect:this.onSelectFile,value:k,render:function(e){var t=e.open;return Object(m.createElement)(g.IconButton,{className:"components-toolbar__control",label:Object(r.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(m.createElement)(g.Animate,{type:Object(p.isBlobURL)(b)?"loading":null},function(t){var n=t.className;return Object(m.createElement)("div",{className:h()(S,n)},Object(m.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(m.createElement)(O.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:u,placeholder:Object(r.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return i({fileName:e})}}),v&&Object(m.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(m.createElement)(O.RichText,{tagName:"div",className:"wp-block-file__button",value:_,withoutInteractiveFormatting:!0,placeholder:Object(r.__)("Add text…"),onChange:function(e){return i({downloadButtonText:e})}}))),a&&Object(m.createElement)(g.ClipboardButton,{isDefault:!0,text:b,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(p.isBlobURL)(b)},E?Object(r.__)("Copied!"):Object(r.__)("Copy URL")))}))}}]),t}(m.Component),k=Object(f.compose)([Object(v.withSelect)(function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().__experimentalMediaUpload,o=t.attributes.id;return{media:void 0===o?void 0:n(o),mediaUpload:r}}),g.withNotices])(_);var C=n(2),w=n(9),E={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach(function(e){var n=Object(p.createBlobURL)(e);t.push(Object(w.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(w.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(w.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(w.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(v.select)("core").getMedia)(t);return!!n&&Object(C.includes)(n.mime_type,"audio")},transform:function(e){return Object(w.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(v.select)("core").getMedia)(t);return!!n&&Object(C.includes)(n.mime_type,"video")},transform:function(e){return Object(w.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(v.select)("core").getMedia)(t);return!!n&&Object(C.includes)(n.mime_type,"image")},transform:function(e){return Object(w.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]};n.d(t,"metadata",function(){return x}),n.d(t,"name",function(){return S}),n.d(t,"settings",function(){return T});var x={name:"core/file",category:"common",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}}},S=x.name,T={title:Object(r.__)("File"),description:Object(r.__)("Add a link to a downloadable file."),icon:j,keywords:[Object(r.__)("document"),Object(r.__)("pdf")],supports:{align:!0},transforms:E,edit:k,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(m.createElement)("div",null,!O.RichText.isEmpty(r)&&Object(m.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object(m.createElement)(O.RichText.Content,{value:r})),c&&Object(m.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(m.createElement)(O.RichText.Content,{value:i})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(o.createElement)(a.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}],i=n(10),l=n(16),s=n.n(l);var u=n(3),b=Object(o.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(u.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"}));var m=n(9),d={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(m.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(m.createBlock)("core/paragraph",e)}}]};n.d(t,"metadata",function(){return h}),n.d(t,"name",function(){return p}),n.d(t,"settings",function(){return g});var h={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}}},p=h.name,g={title:Object(r.__)("Verse"),description:Object(r.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:b,example:{attributes:{content:Object(r.__)("WHAT was he doing, the great god Pan,")+"
"+Object(r.__)(" Down in the reeds by the river?")+"
"+Object(r.__)("Spreading ruin and scattering ban,")+"
"+Object(r.__)("Splashing and paddling with hoofs of a goat,")+"
"+Object(r.__)("And breaking the golden lilies afloat")+"
"+Object(r.__)(" With the dragon-fly on the river.")}},keywords:[Object(r.__)("poetry")],transforms:d,deprecated:c,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,c=e.className,l=e.mergeBlocks,u=t.textAlign,b=t.content;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(a.BlockControls,null,Object(o.createElement)(a.AlignmentToolbar,{value:u,onChange:function(e){n({textAlign:e})}})),Object(o.createElement)(a.RichText,{tagName:"pre",value:b,onChange:function(e){n({content:e})},placeholder:Object(r.__)("Write…"),wrapperClassName:c,className:s()(Object(i.a)({},"has-text-align-".concat(u),u)),onMerge:l}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,c=s()(Object(i.a)({},"has-text-align-".concat(n),n));return Object(o.createElement)(a.RichText.Content,{tagName:"pre",className:c,value:r})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(3),m=n(4),d=n(6),h=n(55),p=n.n(h),g=n(32),f=n.n(g),v=n(8),O=n(2),j=n(41),y=n.n(j),_=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).containerRef=Object(u.createRef)(),e.formRef=Object(u.createRef)(),e.widgetContentRef=Object(u.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){e.form!==this.props.form&&this.widgetContentRef.current&&(this.widgetContentRef.current.innerHTML=e.form,this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current));return!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.idBase,o=t.widgetNumber,a=t.form;return Object(u.createElement)("div",{className:"widget open",ref:this.containerRef},Object(u.createElement)("div",{className:"widget-inside"},Object(u.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&e.props.onInstanceChange(e.retrieveUpdatedInstance())}},Object(u.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:a}}),Object(u.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(u.createElement)("input",{type:"hidden",name:"id_base",className:"id_base",value:r}),Object(u.createElement)("input",{type:"hidden",name:"widget_number",className:"widget_number",value:o}),Object(u.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(u.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""}))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0,o=t;r1?a[h]=p:a[h]=p[0]}}}catch(e){s=!0,u=e}finally{try{l||null==m.return||m.return()}finally{if(s)throw u}}return a}}}]),t}(u.Component),k=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).state={form:null,idBase:null},e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(l.a)(e)),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.requestWidgetUpdater()}},{key:"componentDidUpdate",value:function(e){e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.identifier,a=this.state,c=a.id,i=a.idBase,l=a.form;return o?l?Object(u.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(u.createElement)(_,{ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,widgetNumber:-1*n,id:c,idBase:i,form:l})):null:Object(r.__)("Not a valid widget.")}},{key:"onInstanceChange",value:function(e){var t=this;this.requestWidgetUpdater(e,function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance)})}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.identifier,a=r.instanceId,c=r.instance;o&&f()({path:"/wp/v2/widgets/".concat(o,"/"),data:{identifier:o,instance:c,id_to_use:-1*a,instance_changes:e},method:"POST"}).then(function(e){n.isStillMounted&&(n.setState({form:e.form,idBase:e.id_base,id:e.id}),t&&t(e))})}}]),t}(u.Component),C=Object(v.withInstanceId)(k);function w(e){var t,n=e.availableLegacyWidgets,o=e.currentWidget,a=e.hasPermissionsToManageWidgets,c=e.onChangeWidget,i=Object(u.useMemo)(function(){return Object(O.pickBy)(n,function(e){return!e.isHidden})},[n]);return a||(t=Object(r.__)("You don't have permissions to use widgets on this site.")),Object(O.isEmpty)(i)&&(t=Object(r.__)("There are no widgets available.")),t=Object(u.createElement)(b.SelectControl,{label:Object(r.__)("Select a legacy widget to display:"),value:o||"none",onChange:c,options:[{value:"none",label:"Select widget"}].concat(Object(O.map)(i,function(e,t){return{value:t,label:e.name}}))}),Object(u.createElement)(b.Placeholder,{icon:Object(u.createElement)(d.BlockIcon,{icon:"admin-customizer"}),label:Object(r.__)("Legacy Widget")},t)}var E=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).state={isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(l.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(l.a)(e)),e.changeWidget=e.changeWidget.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,o=t.availableLegacyWidgets,a=t.hasPermissionsToManageWidgets,c=t.setAttributes,i=this.state.isPreview,l=n.identifier,s=n.isCallbackWidget,m=l&&o[l];if(!m)return Object(u.createElement)(w,{availableLegacyWidgets:o,currentWidget:l,hasPermissionsToManageWidgets:a,onChangeWidget:function(e){return c({instance:{},identifier:e,isCallbackWidget:o[e].isCallbackWidget})}});var h=Object(u.createElement)(d.InspectorControls,null,Object(u.createElement)(b.PanelBody,{title:m.name},m.description));return a?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(d.BlockControls,null,Object(u.createElement)(b.Toolbar,null,!m.isHidden&&Object(u.createElement)(b.IconButton,{onClick:this.changeWidget,label:Object(r.__)("Change widget"),icon:"update"}),!s&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(b.Button,{className:"components-tab-button ".concat(i?"":"is-active"),onClick:this.switchToEdit},Object(u.createElement)("span",null,Object(r.__)("Edit"))),Object(u.createElement)(b.Button,{className:"components-tab-button ".concat(i?"is-active":""),onClick:this.switchToPreview},Object(u.createElement)("span",null,Object(r.__)("Preview")))))),h,!s&&Object(u.createElement)(C,{isVisible:!i,identifier:n.identifier,instance:n.instance,onInstanceChange:function(t){e.props.setAttributes({instance:t})}}),(i||s)&&this.renderWidgetPreview()):Object(u.createElement)(u.Fragment,null,h,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},identifier:void 0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(u.createElement)(p.a,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(u.Component),x=Object(m.withSelect)(function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}})(E),S=Object(u.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(b.G,null,Object(u.createElement)(b.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})));n.d(t,"name",function(){return T}),n.d(t,"settings",function(){return B});var T="core/legacy-widget",B={title:Object(r.__)("Legacy Widget (Experimental)"),description:Object(r.__)("Display a legacy widget."),icon:S,category:"widgets",supports:{html:!1,customClassName:!1},edit:x}},function(e,t,n){"use strict";n.r(t);var r=n(1),o="is-style-".concat("solid-color"),a=n(7),c=n(10),i=n(0),l=n(16),s=n.n(l),u=n(2),b=n(6),m=n(4),d={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},h=[{attributes:d,save:function(e){var t,n,r=e.attributes,a=r.mainColor,l=r.customMainColor,d=r.textColor,h=r.customTextColor,p=r.value,g=r.citation,f=r.className;if(Object(u.includes)(f,o))(t=Object(b.getColorClassName)("background-color",a))||(n={backgroundColor:l});else if(l)n={borderColor:l};else if(a){var v=Object(u.get)(Object(m.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(b.getColorObjectByAttributeValues)(v,a).color}}var O=Object(b.getColorClassName)("color",d),j=d||h?s()("has-text-color",Object(c.a)({},O,O)):void 0,y=O?void 0:{color:h};return Object(i.createElement)("figure",{className:t,style:n},Object(i.createElement)("blockquote",{className:j,style:y},Object(i.createElement)(b.RichText.Content,{value:p,multiline:!0}),!b.RichText.isEmpty(g)&&Object(i.createElement)(b.RichText.Content,{tagName:"cite",value:g})))}},{attributes:Object(a.a)({},d),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(i.createElement)("blockquote",null,Object(i.createElement)(b.RichText.Content,{value:n,multiline:!0}),!b.RichText.isEmpty(r)&&Object(i.createElement)(b.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(a.a)({},d,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(i.createElement)("blockquote",{className:"align".concat(o)},Object(i.createElement)(b.RichText.Content,{value:n,multiline:!0}),!b.RichText.isEmpty(r)&&Object(i.createElement)(b.RichText.Content,{tagName:"footer",value:r}))}}],p=n(18),g=n(12),f=n(11),v=n(13),O=n(14),j=n(5),y=n(15),_=function(e){function t(e){var n;return Object(g.a)(this,t),(n=Object(v.a)(this,Object(O.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(j.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(j.a)(n)),n}return Object(y.a)(t,e),Object(f.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,a=t.setTextColor,c=t.setMainColor,i=t.className,l=Object(u.includes)(i,o),s=!r.color||this.wasTextColorAutomaticallyComputed,b=l&&s&&e;c(e),b&&(this.wasTextColorAutomaticallyComputed=!0,a(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,a=e.textColor,l=e.setAttributes,m=e.isSelected,d=e.className,h=t.value,g=t.citation,f=Object(u.includes)(d,o),v=f?{backgroundColor:n.color}:{borderColor:n.color},O=s()(d,Object(c.a)({"has-background":f&&n.color},n.class,f&&n.class)),j={color:a.color},y=a.color&&s()("has-text-color",Object(c.a)({},a.class,a.class));return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("figure",{style:v,className:O},Object(i.createElement)("blockquote",{style:j,className:y},Object(i.createElement)(b.RichText,{multiline:!0,value:h,onChange:function(e){return l({value:e})},placeholder:Object(r.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!b.RichText.isEmpty(g)||m)&&Object(i.createElement)(b.RichText,{value:g,placeholder:Object(r.__)("Write citation…"),onChange:function(e){return l({citation:e})},className:"wp-block-pullquote__citation"}))),Object(i.createElement)(b.InspectorControls,null,Object(i.createElement)(b.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(r.__)("Main Color")},{value:a.color,onChange:this.pullQuoteTextColorSetter,label:Object(r.__)("Text Color")}]},f&&Object(i.createElement)(b.ContrastChecker,Object(p.a)({textColor:a.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(i.Component),k=Object(b.withColors)({mainColor:"background-color",textColor:"color"})(_),C=n(3),w=Object(i.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(C.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(i.createElement)(C.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(i.createElement)(C.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(i.createElement)(C.Polygon,{points:"21 4 2 4 2 6 21 6"}));n.d(t,"metadata",function(){return E}),n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var E={name:"core/pullquote",category:"formatting",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},x=E.name,S={title:Object(r.__)("Pullquote"),description:Object(r.__)("Give special visual emphasis to a quote from your text."),icon:w,example:{attributes:{value:"

"+Object(r.__)("One of the hardest things to do in technology is disrupt yourself.")+"

",citation:"Matt Mullenweg"}},styles:[{name:"default",label:Object(r._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(r.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:k,save:function(e){var t,n,r=e.attributes,a=r.mainColor,l=r.customMainColor,d=r.textColor,h=r.customTextColor,p=r.value,g=r.citation,f=r.className;if(Object(u.includes)(f,o)){var v=Object(b.getColorClassName)("background-color",a);t=s()(Object(c.a)({"has-background":v||l},v,v)),n={backgroundColor:v?void 0:l}}else if(l)n={borderColor:l};else if(a){var O=Object(u.get)(Object(m.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(b.getColorObjectByAttributeValues)(O,a).color}}var j=Object(b.getColorClassName)("color",d),y=(d||h)&&s()("has-text-color",Object(c.a)({},j,j)),_=j?void 0:{color:h};return Object(i.createElement)("figure",{className:t,style:n},Object(i.createElement)("blockquote",{className:y,style:_},Object(i.createElement)(b.RichText.Content,{value:p,multiline:!0}),!b.RichText.isEmpty(g)&&Object(i.createElement)(b.RichText.Content,{tagName:"cite",value:g})))},deprecated:h}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=n(2);function i(e){return Object(c.flow)(l,u,m)(e||"")}function l(e){return e.replace(/&/g,"&")}function s(e){return e.replace(/&/g,"&")}function u(e){return e.replace(/\[/g,"[")}function b(e){return e.replace(/[/g,"[")}function m(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function d(e){return e.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m,"$1//$2")}var h=n(3),p=Object(o.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(o.createElement)(h.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"}));var g=n(9),f={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(g.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};n.d(t,"metadata",function(){return v}),n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return j});var v={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},O=v.name,j={title:Object(r.__)("Code"),description:Object(r.__)("Display code snippets that respect your spacing and tabs."),icon:p,example:{attributes:{content:Object(r.__)('// A "block" is the abstract term used')+"\n"+Object(r.__)("// to describe units of markup that,")+"\n"+Object(r.__)("// when composed together, form the")+"\n"+Object(r.__)("// content or layout of a page.")+"\n"+Object(r.__)("registerBlockType( name, settings );")}},supports:{html:!1},transforms:f,edit:function(e){var t,n=e.attributes,l=e.setAttributes,u=e.className;return Object(o.createElement)("div",{className:u},Object(o.createElement)(a.PlainText,{value:(t=n.content,Object(c.flow)(d,b,s)(t||"")),onChange:function(e){return l({content:i(e)})},placeholder:Object(r.__)("Write code…"),"aria-label":Object(r.__)("Code")}))},save:function(e){var t=e.attributes;return Object(o.createElement)("pre",null,Object(o.createElement)("code",null,t.content))}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(1),a=n(0),c=n(9),i=n(6),l=n(3),s=n(22),u=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(a.createElement)(i.InspectorControls,null,Object(a.createElement)(l.PanelBody,{title:Object(o.__)("Ordered List Settings")},Object(a.createElement)(l.TextControl,{label:Object(o.__)("Start Value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object(a.createElement)(l.ToggleControl,{label:Object(o.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};var b=Object(a.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(l.G,null,Object(a.createElement)(l.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));var m=n(17),d=Object(r.a)({},Object(c.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach(function(e){d[e].children={li:{children:d}}});var h={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(c.createBlock)("core/list",{values:Object(s.toHTMLString)({value:Object(s.join)(e.map(function(t){var n=t.content,r=Object(s.create)({html:n});return e.length>1?r:Object(s.replace)(r,/\n/g,s.__UNSTABLE_LINE_SEPARATOR)}),s.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(c.createBlock)("core/list",{values:Object(s.toHTMLString)({value:Object(s.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:d.ol,ul:d.ul},transform:function(e){return Object(c.createBlock)("core/list",Object(r.a)({},Object(c.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(m.a)(["*","-"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(c.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}})),Object(m.a)(["1.","1)"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(c.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(s.split)(Object(s.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),s.__UNSTABLE_LINE_SEPARATOR).map(function(e){return Object(c.createBlock)("core/paragraph",{content:Object(s.toHTMLString)({value:e})})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(c.createBlock)("core/quote",{value:Object(s.toHTMLString)({value:Object(s.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};n.d(t,"metadata",function(){return p}),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var p={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""},start:{type:"number"},reversed:{type:"boolean"}}},g=p.name,f={title:Object(o.__)("List"),description:Object(o.__)("Create a bulleted or numbered list."),icon:b,keywords:[Object(o.__)("bullet list"),Object(o.__)("ordered list"),Object(o.__)("numbered list")],supports:{className:!1},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:h,merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(r.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,b=e.onReplace,m=e.className,d=t.ordered,h=t.values,p=t.reversed,f=t.start,v=d?"ol":"ul";return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(i.RichText,{identifier:"values",multiline:"li",tagName:v,onChange:function(e){return n({values:e})},value:h,wrapperClassName:"block-library-list",className:m,placeholder:Object(o.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(c.createBlock)(g,{ordered:d,values:e})},__unstableOnSplitMiddle:function(){return Object(c.createBlock)("core/paragraph")},onReplace:b,onRemove:function(){return b([])},start:f,reversed:p},function(e){var t=e.value,r=e.onChange;if(void 0!==t.start)return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(i.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(s.__unstableOutdentListItems)(t))}}),Object(a.createElement)(i.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(s.__unstableIndentListItems)(t,{type:v}))}}),Object(a.createElement)(i.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(s.__unstableIndentListItems)(t,{type:v}))}}),Object(a.createElement)(i.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(s.__unstableOutdentListItems)(t))}}),Object(a.createElement)(i.BlockControls,null,Object(a.createElement)(l.Toolbar,{controls:[{icon:"editor-ul",title:Object(o.__)("Convert to unordered list"),isActive:Object(s.__unstableIsActiveListType)(t,"ul",v),onClick:function(){r(Object(s.__unstableChangeListType)(t,{type:"ul"})),Object(s.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(o.__)("Convert to ordered list"),isActive:Object(s.__unstableIsActiveListType)(t,"ol",v),onClick:function(){r(Object(s.__unstableChangeListType)(t,{type:"ol"})),Object(s.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(o.__)("Outdent list item"),shortcut:Object(o._x)("Backspace","keyboard key"),onClick:function(){r(Object(s.__unstableOutdentListItems)(t))}},{icon:"editor-indent",title:Object(o.__)("Indent list item"),shortcut:Object(o._x)("Space","keyboard key"),onClick:function(){r(Object(s.__unstableIndentListItems)(t,{type:v}))}}]})))}),d&&Object(a.createElement)(u,{setAttributes:n,ordered:d,reversed:p,start:f}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.reversed,c=t.start,l=n?"ol":"ul";return Object(a.createElement)(i.RichText.Content,{tagName:l,value:r,reversed:o,start:c,multiline:"li"})}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(1),a=n(0),c=n(2),i=n(6),l={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},s=[{attributes:l,save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(a.createElement)("blockquote",{style:{textAlign:n||null}},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(r.a)({},l,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(r.a)({},Object(c.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(a.createElement)("blockquote",{className:2===c?"is-large":"",style:{textAlign:n||null}},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(r.a)({},l,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(a.createElement)("blockquote",{className:"blocks-quote-style-".concat(c),style:{textAlign:n||null}},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"footer",value:o}))}}],u=n(10),b=n(16),m=n.n(b),d=n(3),h=n(9);var p=Object(a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(d.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"}));var g=n(21),f=n(17),v=n(22),O={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(h.createBlock)("core/quote",{value:Object(v.toHTMLString)({value:Object(v.join)(e.map(function(e){var t=e.content;return Object(v.create)({html:t})}),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(h.createBlock)("core/quote",{value:"

    ".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(h.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(h.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(h.getPhrasingContentSchema)()},cite:{children:Object(h.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

    "!==t&&r.push.apply(r,Object(f.a)(Object(v.split)(Object(v.create)({html:t,multilineTag:"p"}),"\u2028").map(function(e){return Object(h.createBlock)("core/paragraph",{content:Object(v.toHTMLString)({value:e})})}))),n&&"

    "!==n&&r.push(Object(h.createBlock)("core/paragraph",{content:n})),0===r.length?Object(h.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,o=Object(g.a)(e,["value","citation"]);if("

    "===t)return Object(h.createBlock)("core/heading",{content:n});var a=Object(v.split)(Object(v.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(h.createBlock)("core/heading",{content:Object(v.toHTMLString)({value:a[0]})});if(!n&&1===a.length)return c;var i=a.slice(1);return[c,Object(h.createBlock)("core/quote",Object(r.a)({},o,{citation:n,value:Object(v.toHTMLString)({value:i.length?Object(v.join)(a.slice(1),"\u2028"):Object(v.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(h.createBlock)("core/pullquote",{value:t,citation:n})}}]};n.d(t,"metadata",function(){return j}),n.d(t,"name",function(){return y}),n.d(t,"settings",function(){return _});var j={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},y=j.name,_={title:Object(o.__)("Quote"),description:Object(o.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:p,keywords:[Object(o.__)("blockquote"),Object(o.__)("cite")],example:{attributes:{value:"

    "+Object(o.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(o._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(o._x)("Large","block style")}],transforms:O,edit:function(e){var t=e.attributes,n=e.setAttributes,c=e.isSelected,l=e.mergeBlocks,s=e.onReplace,b=e.className,p=t.align,g=t.value,f=t.citation;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(i.BlockControls,null,Object(a.createElement)(i.AlignmentToolbar,{value:p,onChange:function(e){n({align:e})}})),Object(a.createElement)(d.BlockQuotation,{className:m()(b,Object(u.a)({},"has-text-align-".concat(p),p))},Object(a.createElement)(i.RichText,{identifier:"value",multiline:!0,value:g,onChange:function(e){return n({value:e})},onMerge:l,onRemove:function(e){var t=!f||0===f.length;!e&&t&&s([])},placeholder:Object(o.__)("Write quote…"),onReplace:s,onSplit:function(e){return Object(h.createBlock)("core/quote",Object(r.a)({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(h.createBlock)("core/paragraph")}}),(!i.RichText.isEmpty(f)||c)&&Object(a.createElement)(i.RichText,{identifier:"citation",value:f,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(o.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=m()(Object(u.a)({},"has-text-align-".concat(n),n));return Object(a.createElement)("blockquote",{className:c},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,o=t.citation;return o||(o=e.citation),n&&"

    "!==n?Object(r.a)({},e,{value:e.value+n,citation:o}):Object(r.a)({},e,{citation:o})},deprecated:s}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(6),d=n(3),h=n(4),p=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(s.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(s.a)(e)),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(o.a)(Object(m.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,o=this.state,a=o.isPreview,c=o.styles;return Object(b.createElement)("div",{className:"wp-block-html"},Object(b.createElement)(m.BlockControls,null,Object(b.createElement)("div",{className:"components-toolbar"},Object(b.createElement)("button",{className:"components-tab-button ".concat(a?"":"is-active"),onClick:this.switchToHTML},Object(b.createElement)("span",null,"HTML")),Object(b.createElement)("button",{className:"components-tab-button ".concat(a?"is-active":""),onClick:this.switchToPreview},Object(b.createElement)("span",null,Object(r.__)("Preview"))))),Object(b.createElement)(d.Disabled.Consumer,null,function(e){return a||e?Object(b.createElement)(d.SandBox,{html:t.content,styles:c}):Object(b.createElement)(m.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(r.__)("Write HTML…"),"aria-label":Object(r.__)("HTML")})}))}}]),t}(b.Component),g=Object(h.withSelect)(function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}})(p),f=Object(b.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(d.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"}));var v=n(9),O={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(v.getPhrasingContentSchema)()}}}}}]};n.d(t,"metadata",function(){return j}),n.d(t,"name",function(){return y}),n.d(t,"settings",function(){return _});var j={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},y=j.name,_={title:Object(r.__)("Custom HTML"),description:Object(r.__)("Add custom HTML code and preview it as you edit."),icon:f,keywords:[Object(r.__)("embed")],example:{attributes:{content:""+Object(r.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:O,edit:g,save:function(e){var t=e.attributes;return Object(b.createElement)(b.RawHTML,null,t.content)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(7),c=n(0),i=n(2),l=n(16),s=n.n(l),u=n(6),b=function(e){return Object(i.omit)(Object(a.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},m={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},d=[{attributes:Object(a.a)({},m,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Object(a.a)({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,a=n.customBackgroundColor,i=n.customTextColor,l=n.linkTarget,b=n.rel,m=n.text,d=n.textColor,h=n.title,p=n.url,g=Object(u.getColorClassName)("color",d),f=Object(u.getColorClassName)("background-color",r),v=s()("wp-block-button__link",(t={"has-text-color":d||i},Object(o.a)(t,g,g),Object(o.a)(t,"has-background",r||a),Object(o.a)(t,f,f),t)),O={backgroundColor:f?void 0:a,color:g?void 0:i};return Object(c.createElement)("div",null,Object(c.createElement)(u.RichText.Content,{tagName:"a",className:v,href:p,title:h,style:O,value:m,target:l,rel:b}))}},{attributes:Object(a.a)({},m,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.url,a=n.text,i=n.title,l=n.backgroundColor,b=n.textColor,m=n.customBackgroundColor,d=n.customTextColor,h=Object(u.getColorClassName)("color",b),p=Object(u.getColorClassName)("background-color",l),g=s()("wp-block-button__link",(t={"has-text-color":b||d},Object(o.a)(t,h,h),Object(o.a)(t,"has-background",l||m),Object(o.a)(t,p,p),t)),f={backgroundColor:p?void 0:m,color:h?void 0:d};return Object(c.createElement)("div",null,Object(c.createElement)(u.RichText.Content,{tagName:"a",className:g,href:r,title:i,style:f,value:a}))},migrate:b},{attributes:Object(a.a)({},m,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,i={backgroundColor:t.color,color:t.textColor};return Object(c.createElement)("div",{className:"align".concat(a)},Object(c.createElement)(u.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:i,value:r}))},migrate:b},{attributes:Object(a.a)({},m,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,i=t.color,l=t.textColor;return Object(c.createElement)("div",{className:"align".concat(a),style:{backgroundColor:i}},Object(c.createElement)(u.RichText.Content,{tagName:"a",href:n,title:o,style:{color:l},value:r}))},migrate:b}],h=n(12),p=n(11),g=n(13),f=n(14),v=n(5),O=n(15),j=n(8),y=n(3),_=window.getComputedStyle,k=Object(y.withFallbackStyles)(function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:_(e).backgroundColor,fallbackTextColor:a||!c?void 0:_(c).color}}),C=0,w=50,E=5;function x(e){var t=e.borderRadius,n=void 0===t?"":t,o=e.setAttributes,a=Object(c.useCallback)(function(e){o({borderRadius:e})},[o]);return Object(c.createElement)(y.PanelBody,{title:Object(r.__)("Border Settings")},Object(c.createElement)(y.RangeControl,{value:n,label:Object(r.__)("Border Radius"),min:C,max:w,initialPosition:E,allowReset:!0,onChange:a}))}var S=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(v.a)(e)),e.onSetLinkRel=e.onSetLinkRel.bind(Object(v.a)(e)),e.onToggleOpenInNewTab=e.onToggleOpenInNewTab.bind(Object(v.a)(e)),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onToggleOpenInNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=t.backgroundColor,i=t.textColor,l=t.setBackgroundColor,b=t.setTextColor,m=t.fallbackBackgroundColor,d=t.fallbackTextColor,h=t.setAttributes,p=t.className,g=t.instanceId,f=t.isSelected,v=n.borderRadius,O=n.linkTarget,j=n.placeholder,_=n.rel,k=n.text,C=n.title,w=n.url,E="wp-block-button__inline-link-".concat(g);return Object(c.createElement)("div",{className:p,title:C,ref:this.bindRef},Object(c.createElement)(u.RichText,{placeholder:j||Object(r.__)("Add text…"),value:k,onChange:function(e){return h({text:e})},withoutInteractiveFormatting:!0,className:s()("wp-block-button__link",(e={"has-background":a.color},Object(o.a)(e,a.class,a.class),Object(o.a)(e,"has-text-color",i.color),Object(o.a)(e,i.class,i.class),Object(o.a)(e,"no-border-radius",0===v),e)),style:{backgroundColor:a.color,color:i.color,borderRadius:v?v+"px":void 0}}),Object(c.createElement)(y.BaseControl,{label:Object(r.__)("Link"),className:"wp-block-button__inline-link",id:E},Object(c.createElement)(u.URLInput,{className:"wp-block-button__inline-link-input",value:w,autoFocus:!1,onChange:function(e){return h({url:e})},disableSuggestions:!f,id:E,isFullWidth:!0,hasBorder:!0})),Object(c.createElement)(u.InspectorControls,null,Object(c.createElement)(u.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:a.color,onChange:l,label:Object(r.__)("Background Color")},{value:i.color,onChange:b,label:Object(r.__)("Text Color")}]},Object(c.createElement)(u.ContrastChecker,{isLargeText:!1,textColor:i.color,backgroundColor:a.color,fallbackBackgroundColor:m,fallbackTextColor:d})),Object(c.createElement)(x,{borderRadius:v,setAttributes:h}),Object(c.createElement)(y.PanelBody,{title:Object(r.__)("Link settings")},Object(c.createElement)(y.ToggleControl,{label:Object(r.__)("Open in new tab"),onChange:this.onToggleOpenInNewTab,checked:"_blank"===O}),Object(c.createElement)(y.TextControl,{label:Object(r.__)("Link rel"),value:_||"",onChange:this.onSetLinkRel}))))}}]),t}(c.Component),T=Object(j.compose)([j.withInstanceId,Object(u.withColors)("backgroundColor",{textColor:"color"}),k])(S),B=Object(c.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(y.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(c.createElement)(y.G,null,Object(c.createElement)(y.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"})));n.d(t,"metadata",function(){return N}),n.d(t,"name",function(){return M}),n.d(t,"settings",function(){return A});var N={name:"core/button",category:"layout",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"}}},M=N.name,A={title:Object(r.__)("Button"),description:Object(r.__)("Prompt visitors to take action with a button-style link."),icon:B,keywords:[Object(r.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(r.__)("Call to Action")}},supports:{align:!0,alignWide:!1},styles:[{name:"fill",label:Object(r.__)("Fill"),isDefault:!0},{name:"outline",label:Object(r.__)("Outline")}],edit:T,save:function(e){var t,n=e.attributes,r=n.backgroundColor,a=n.borderRadius,i=n.customBackgroundColor,l=n.customTextColor,b=n.linkTarget,m=n.rel,d=n.text,h=n.textColor,p=n.title,g=n.url,f=Object(u.getColorClassName)("color",h),v=Object(u.getColorClassName)("background-color",r),O=s()("wp-block-button__link",(t={"has-text-color":h||l},Object(o.a)(t,f,f),Object(o.a)(t,"has-background",r||i),Object(o.a)(t,v,v),Object(o.a)(t,"no-border-radius",0===a),t)),j={backgroundColor:v?void 0:i,color:f?void 0:l,borderRadius:a?a+"px":void 0};return Object(c.createElement)("div",null,Object(c.createElement)(u.RichText.Content,{tagName:"a",className:O,href:g,title:p,style:j,value:d,target:b,rel:m}))},deprecated:d}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(3),m=n(6),d=n(19),h=n(9),p=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(l.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(l.a)(e)),e.state={defaultText:Object(r.__)("Read more")},e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===d.ENTER&&n([Object(h.createBlock)(Object(h.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(r.__)("The excerpt is hidden."):Object(r.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,o=this.props.setAttributes,a=this.state.defaultText,c=void 0!==t?t:a,i=c.length+1;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(m.InspectorControls,null,Object(u.createElement)(b.PanelBody,null,Object(u.createElement)(b.ToggleControl,{label:Object(r.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(u.createElement)("div",{className:"wp-block-more"},Object(u.createElement)("input",{type:"text",value:c,size:i,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(u.Component),g=Object(u.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(b.G,null,Object(u.createElement)(b.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),f=n(2);var v={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(h.createBlock)("core/more",o)}}]};n.d(t,"metadata",function(){return O}),n.d(t,"name",function(){return j}),n.d(t,"settings",function(){return y});var O={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},j=O.name,y={title:Object(r._x)("More","block name"),description:Object(r.__)("Content before this block will be shown in the excerpt on your archives page."),icon:g,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},transforms:v,edit:p,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",a=r?"\x3c!--noteaser--\x3e":"";return Object(u.createElement)(u.RawHTML,null,Object(f.compact)([o,a]).join("\n"))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0);var a=n(3),c=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(o.createElement)(a.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var i=n(9),l={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(i.createBlock)("core/nextpage",{})}}]};n.d(t,"metadata",function(){return s}),n.d(t,"name",function(){return u}),n.d(t,"settings",function(){return b});var s={name:"core/nextpage",category:"layout"},u=s.name,b={title:Object(r.__)("Page Break"),description:Object(r.__)("Separate your content into a multi-page experience."),icon:c,keywords:[Object(r.__)("next page"),Object(r.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:l,edit:function(){return Object(o.createElement)("div",{className:"wp-block-nextpage"},Object(o.createElement)("span",null,Object(r.__)("Page break")))},save:function(){return Object(o.createElement)(o.RawHTML,null,"\x3c!--nextpage--\x3e")}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(2),i=n(16),l=n.n(i),s=n(9),u=n(6);function b(e){var t,n=b.doc;n||(n=document.implementation.createHTMLDocument(""),b.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var m=[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some(function(e){return/layout-column-\d+/.test(e.originalContent)})&&t.some(function(e){return void 0!==b(e.originalContent)})},migrate:function(e,t){var n=t.reduce(function(e,t){var n=b(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e},[]).map(function(e){return Object(s.createBlock)("core/column",{},e)});return[Object(c.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(a.createElement)("div",{className:"has-".concat(t,"-columns")},Object(a.createElement)(u.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(c.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,c=l()("has-".concat(r,"-columns"),Object(o.a)({},"are-vertically-aligned-".concat(n),n));return Object(a.createElement)("div",{className:c},Object(a.createElement)(u.InnerBlocks.Content,null))}}],d=n(17),h=n(23),p=n(3),g=n(4),f=n(57),v=["core/column"],O=[{title:Object(r.__)("Two columns; equal split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),template:[["core/column"],["core/column"]]},{title:Object(r.__)("Two columns; one-third, two-thirds split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),template:[["core/column",{width:33.33}],["core/column",{width:66.66}]]},{title:Object(r.__)("Two columns; two-thirds, one-third split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),template:[["core/column",{width:66.66}],["core/column",{width:33.33}]]},{title:Object(r.__)("Three columns; equal split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),template:[["core/column"],["core/column"],["core/column"]]},{title:Object(r.__)("Three columns; wide center column"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),template:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]]}],j=2;var y=Object(g.withDispatch)(function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;a({verticalAlignment:r}),i(o).forEach(function(e){c(e,{verticalAlignment:r})})},updateColumns:function(r,o){var a=t.clientId,i=e("core/block-editor").replaceInnerBlocks,l=(0,n.select("core/block-editor").getBlocks)(a),u=Object(f.g)(l),b=o>r;if(b&&u){var m=Object(f.h)(100/o),h=Object(f.e)(l,100-m);l=[].concat(Object(d.a)(Object(f.d)(l,h)),Object(d.a)(Object(c.times)(o-r,function(){return Object(s.createBlock)("core/column",{width:m})})))}else if(b)l=[].concat(Object(d.a)(l),Object(d.a)(Object(c.times)(o-r,function(){return Object(s.createBlock)("core/column")})));else if(l=Object(c.dropRight)(l,r-o),u){var p=Object(f.e)(l,100);l=Object(f.d)(l,p)}i(a,l,!1)}}})(function(e){var t=e.attributes,n=e.className,c=e.updateAlignment,i=e.updateColumns,s=e.clientId,b=t.verticalAlignment,m=Object(g.useSelect)(function(e){return{count:e("core/block-editor").getBlockCount(s)}}).count,d=Object(a.useState)(Object(f.c)(m)),y=Object(h.a)(d,2),_=y[0],k=y[1],C=Object(a.useState)(!1),w=Object(h.a)(C,2),E=w[0],x=w[1];Object(a.useEffect)(function(){E&&x(!1)},[E]);var S=l()(n,Object(o.a)({},"are-vertically-aligned-".concat(b),b)),T=0===m&&!E||!_;return Object(a.createElement)(a.Fragment,null,!T&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.InspectorControls,null,Object(a.createElement)(p.PanelBody,null,Object(a.createElement)(p.RangeControl,{label:Object(r.__)("Columns"),value:m,onChange:function(e){return i(m,e)},min:2,max:6}))),Object(a.createElement)(u.BlockControls,null,Object(a.createElement)(u.BlockVerticalAlignmentToolbar,{onChange:c,value:b}))),Object(a.createElement)("div",{className:S},Object(a.createElement)(u.InnerBlocks,{__experimentalTemplateOptions:O,__experimentalOnSelectTemplateOption:function(e){void 0===e&&(e=Object(f.c)(j)),k(e),x(!0)},__experimentalAllowTemplateOptionSkip:!0,template:T?null:_,templateLock:"all",allowedBlocks:v})))}),_=Object(a.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(p.G,null,Object(a.createElement)(p.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"})));n.d(t,"metadata",function(){return k}),n.d(t,"name",function(){return C}),n.d(t,"settings",function(){return w});var k={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"}}},C=k.name,w={title:Object(r.__)("Columns"),icon:_,description:Object(r.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis pellentesque efficitur. Nam dapibus felis malesuada tincidunt rhoncus. Integer non malesuada tortor."}},{name:"core/image",attributes:{url:"https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et. Ut vel mi ut leo fringilla rutrum."}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(r.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit, eget faucibus urna pulvinar.")}},{name:"core/paragraph",attributes:{content:Object(r.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim ultricies commodo.")}}]}]},deprecated:m,edit:y,save:function(e){var t=e.attributes.verticalAlignment,n=l()(Object(o.a)({},"are-vertically-aligned-".concat(t),t));return Object(a.createElement)("div",{className:n},Object(a.createElement)(u.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6);var c=n(3),i=Object(o.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(c.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(o.createElement)(c.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(o.createElement)(c.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(o.createElement)(c.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(o.createElement)(c.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(o.createElement)(c.Rect,{x:"10",y:"10",width:"8",height:"2"}));var l=n(9),s={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(l.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(l.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(l.createBlock)("core/paragraph",e)}}]};n.d(t,"metadata",function(){return u}),n.d(t,"name",function(){return b}),n.d(t,"settings",function(){return m});var u={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}}},b=u.name,m={title:Object(r.__)("Preformatted"),description:Object(r.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:i,example:{attributes:{content:Object(r.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)")+"\n"+Object(r.__)("Window, very small in the distance, illuminated.")+"\n"+Object(r.__)("All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:s,edit:function(e){var t=e.attributes,n=e.mergeBlocks,c=e.setAttributes,i=e.className,l=t.content;return Object(o.createElement)(a.RichText,{tagName:"pre",value:l.replace(/\n/g,"
    "),onChange:function(e){c({content:e.replace(/
    /g,"\n")})},placeholder:Object(r.__)("Write preformatted text…"),wrapperClassName:i,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(o.createElement)(a.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(16),i=n.n(c),l=n(3),s=n(6);var u=Object(s.withColors)("color",{textColor:"color"})(function(e){var t=e.color,n=e.setColor,c=e.className;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.HorizontalRule,{className:i()(c,Object(o.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(a.createElement)(s.InspectorControls,null,Object(a.createElement)(s.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:t.color,onChange:n,label:Object(r.__)("Color")}]})))}),b=Object(a.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(l.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(l.Path,{d:"M19 13H5v-2h14v2z"}));var m=n(9),d={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(m.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]};n.d(t,"metadata",function(){return h}),n.d(t,"name",function(){return p}),n.d(t,"settings",function(){return g});var h={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},p=h.name,g={title:Object(r.__)("Separator"),description:Object(r.__)("Create a break between ideas or sections with a horizontal separator."),icon:b,keywords:[Object(r.__)("horizontal-line"),"hr",Object(r.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(r.__)("Default"),isDefault:!0},{name:"wide",label:Object(r.__)("Wide Line")},{name:"dots",label:Object(r.__)("Dots")}],transforms:d,edit:u,save:function(e){var t,n=e.attributes,r=n.color,c=n.customColor,l=Object(s.getColorClassName)("background-color",r),u=Object(s.getColorClassName)("color",r),b=i()((t={"has-text-color has-background":r||c},Object(o.a)(t,l,l),Object(o.a)(t,u,u),t)),m={backgroundColor:l?void 0:c,color:u?void 0:c};return Object(a.createElement)("hr",{className:b,style:m})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(23),c=n(12),i=n(11),l=n(13),s=n(14),u=n(5),b=n(15),m=n(0),d=n(35),h=n(8),p=n(3),g=n(6),f=n(4),v=Object(m.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(m.createElement)(p.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(m.createElement)(p.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),O=n(61),j=["audio"],y=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(u.a)(e)),e.onUploadError=e.onUploadError.bind(Object(u.a)(e)),e}return Object(b.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=t.setAttributes,i=n.id,l=n.src,s=void 0===l?"":l;if(!i&&Object(d.isBlobURL)(s)){var u=Object(d.getBlobByURL)(s);u&&r({filesList:[u],onFileChange:function(e){var t=Object(a.a)(e,1)[0],n=t.id,r=t.url;c({id:n,src:r})},onError:function(t){c({src:void 0,id:void 0}),e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:j})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(o.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(O.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(r.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.loop,c=t.preload,i=t.src,l=this.props,s=l.setAttributes,u=l.isSelected,b=l.className,d=l.noticeUI,h=this.state.editing,f=function(){e.setState({editing:!0})};return h?Object(m.createElement)(g.MediaPlaceholder,{icon:Object(m.createElement)(g.BlockIcon,{icon:v}),className:b,onSelect:function(t){if(!t||!t.url)return s({src:void 0,id:void 0}),void f();s({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:j,value:this.props.attributes,notices:d,onError:this.onUploadError}):Object(m.createElement)(m.Fragment,null,Object(m.createElement)(g.BlockControls,null,Object(m.createElement)(p.Toolbar,null,Object(m.createElement)(p.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(r.__)("Edit audio"),onClick:f,icon:"edit"}))),Object(m.createElement)(g.InspectorControls,null,Object(m.createElement)(p.PanelBody,{title:Object(r.__)("Audio Settings")},Object(m.createElement)(p.ToggleControl,{label:Object(r.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object(m.createElement)(p.ToggleControl,{label:Object(r.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object(m.createElement)(p.SelectControl,{label:Object(r.__)("Preload"),value:void 0!==c?c:"none",onChange:function(e){return s({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(r.__)("Auto")},{value:"metadata",label:Object(r.__)("Metadata")},{value:"none",label:Object(r.__)("None")}]}))),Object(m.createElement)("figure",{className:b},Object(m.createElement)(p.Disabled,null,Object(m.createElement)("audio",{controls:"controls",src:i})),(!g.RichText.isEmpty(o)||u)&&Object(m.createElement)(g.RichText,{tagName:"figcaption",placeholder:Object(r.__)("Write caption…"),value:o,onChange:function(e){return s({caption:e})},inlineToolbar:!0})))}}]),t}(m.Component),_=Object(h.compose)([Object(f.withSelect)(function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}}),p.withNotices])(y);var k=n(9),C={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(k.createBlock)("core/audio",{src:Object(d.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]};n.d(t,"metadata",function(){return w}),n.d(t,"name",function(){return E}),n.d(t,"settings",function(){return x});var w={name:"core/audio",category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}}},E=w.name,x={title:Object(r.__)("Audio"),description:Object(r.__)("Embed a simple audio player."),icon:v,transforms:C,supports:{align:!0},edit:_,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return Object(m.createElement)("figure",null,Object(m.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!g.RichText.isEmpty(r)&&Object(m.createElement)(g.RichText.Content,{tagName:"figcaption",value:r}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(3),c=n(6),i=n(8),l=Object(i.withInstanceId)(function(e){var t=e.attributes,n=e.setAttributes,i=e.instanceId,l="blocks-shortcode-input-".concat(i);return Object(o.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(o.createElement)("label",{htmlFor:l,className:"components-placeholder__label"},Object(o.createElement)(a.Dashicon,{icon:"shortcode"}),Object(r.__)("Shortcode")),Object(o.createElement)(c.PlainText,{className:"input-control",id:l,value:t.text,placeholder:Object(r.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))}),s=Object(o.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(a.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"}));var u=n(72),b={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(u.removep)(Object(u.autop)(n))}}},priority:20}]};n.d(t,"name",function(){return m}),n.d(t,"settings",function(){return d});var m="core/shortcode",d={title:Object(r.__)("Shortcode"),description:Object(r.__)("Insert additional custom elements with a WordPress shortcode."),icon:s,category:"widgets",transforms:b,supports:{customClassName:!1,className:!1,html:!1},edit:l,save:function(e){var t=e.attributes;return Object(o.createElement)(o.RawHTML,null,t.text)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(37),c=n.n(a),i=n(6);var l=n(3),s=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"}));var u=n(9),b={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(u.createBlock)("core/paragraph",e)}}]};n.d(t,"metadata",function(){return m}),n.d(t,"name",function(){return d}),n.d(t,"settings",function(){return h});var m={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},d=m.name,h={title:Object(r.__)("Subheading (deprecated)"),description:Object(r.__)("This block is deprecated. Please use the Paragraph block instead."),icon:s,supports:{inserter:!1,multiple:!1},transforms:b,edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=t.align,s=t.content,u=t.placeholder;return c()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.BlockControls,null,Object(o.createElement)(i.AlignmentToolbar,{value:l,onChange:function(e){n({align:e})}})),Object(o.createElement)(i.RichText,{tagName:"p",value:s,onChange:function(e){n({content:e})},style:{textAlign:l},className:a,placeholder:u||Object(r.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(o.createElement)(i.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(23),c=n(12),i=n(11),l=n(13),s=n(14),u=n(5),b=n(15),m=n(0),d=n(35),h=n(3),p=n(6),g=n(8),f=n(4),v=n(61),O=Object(m.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(m.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(m.createElement)(h.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),j=["video"],y=["image"],_=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(m.createRef)(),e.posterImageButton=Object(m.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(u.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(u.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(u.a)(e)),e.onUploadError=e.onUploadError.bind(Object(u.a)(e)),e}return Object(b.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=t.setAttributes,i=n.id,l=n.src,s=void 0===l?"":l;if(!i&&Object(d.isBlobURL)(s)){var u=Object(d.getBlobByURL)(s);u&&r({filesList:[u],onFileChange:function(e){var t=Object(a.a)(e,1)[0].url;c({src:t})},onError:function(t){e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:j})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(o.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(v.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(r.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.controls,c=t.loop,i=t.muted,l=t.playsInline,s=t.poster,u=t.preload,b=t.src,d=this.props,g=d.className,f=d.instanceId,v=d.isSelected,_=d.noticeUI,k=d.setAttributes,C=this.state.editing,w=function(){e.setState({editing:!0})};if(C)return Object(m.createElement)(p.MediaPlaceholder,{icon:Object(m.createElement)(p.BlockIcon,{icon:O}),className:g,onSelect:function(t){if(!t||!t.url)return k({src:void 0,id:void 0}),void w();k({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:j,value:this.props.attributes,notices:_,onError:this.onUploadError});var E="video-block__poster-image-description-".concat(f);return Object(m.createElement)(m.Fragment,null,Object(m.createElement)(p.BlockControls,null,Object(m.createElement)(h.Toolbar,null,Object(m.createElement)(h.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(r.__)("Edit video"),onClick:w,icon:"edit"}))),Object(m.createElement)(p.InspectorControls,null,Object(m.createElement)(h.PanelBody,{title:Object(r.__)("Video Settings")},Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:c}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:i}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:a}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Play inline"),onChange:this.toggleAttribute("playsInline"),checked:l}),Object(m.createElement)(h.SelectControl,{label:Object(r.__)("Preload"),value:u,onChange:function(e){return k({preload:e})},options:[{value:"auto",label:Object(r.__)("Auto")},{value:"metadata",label:Object(r.__)("Metadata")},{value:"none",label:Object(r.__)("None")}]}),Object(m.createElement)(p.MediaUploadCheck,null,Object(m.createElement)(h.BaseControl,{className:"editor-video-poster-control"},Object(m.createElement)(h.BaseControl.VisualLabel,null,Object(r.__)("Poster Image")),Object(m.createElement)(p.MediaUpload,{title:Object(r.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:y,render:function(t){var n=t.open;return Object(m.createElement)(h.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":E},e.props.attributes.poster?Object(r.__)("Replace image"):Object(r.__)("Select Poster Image"))}}),Object(m.createElement)("p",{id:E,hidden:!0},this.props.attributes.poster?Object(r.sprintf)(Object(r.__)("The current poster image url is %s"),this.props.attributes.poster):Object(r.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(m.createElement)(h.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(r.__)("Remove Poster Image")))))),Object(m.createElement)("figure",{className:g},Object(m.createElement)(h.Disabled,null,Object(m.createElement)("video",{controls:a,poster:s,src:b,ref:this.videoPlayer})),(!p.RichText.isEmpty(o)||v)&&Object(m.createElement)(p.RichText,{tagName:"figcaption",placeholder:Object(r.__)("Write caption…"),value:o,onChange:function(e){return k({caption:e})},inlineToolbar:!0})))}}]),t}(m.Component),k=Object(g.compose)([Object(f.withSelect)(function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}}),h.withNotices,g.withInstanceId])(_);var C=n(9),w={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(C.createBlock)("core/video",{src:Object(d.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,a=t.webm,c=t.ogv,i=t.flv;return n||r||o||a||c||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]};n.d(t,"metadata",function(){return E}),n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var E={name:"core/video",category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},x=E.name,S={title:Object(r.__)("Video"),description:Object(r.__)("Embed a video from your media library or upload a new one."),icon:O,keywords:[Object(r.__)("movie")],transforms:w,supports:{align:!0},edit:k,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(m.createElement)("figure",null,s&&Object(m.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!p.RichText.isEmpty(r)&&Object(m.createElement)(p.RichText.Content,{tagName:"figcaption",value:r}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(17),c=n(10),i=n(0),l=n(16),s=n.n(l),u=n(2),b=n(6),m=n(3),d=n(4),h=n(8),p=n(57);var g=Object(h.compose)(Object(d.withSelect)(function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}}),Object(d.withDispatch)(function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;a({verticalAlignment:r}),c(i(o),{verticalAlignment:null})},updateWidth:function(r){var i=t.clientId,l=e("core/block-editor").updateBlockAttributes,s=n.select("core/block-editor"),b=s.getBlockRootClientId,m=(0,s.getBlocks)(b(i)),d=Object(p.a)(m,i),h=r+Object(p.f)(Object(u.difference)(m,[Object(u.find)(m,{clientId:i})].concat(Object(a.a)(d)))),g=Object(o.a)({},Object(p.b)(m,m.length),Object(c.a)({},i,Object(p.h)(r)),Object(p.e)(d,100-h,m.length));Object(u.forEach)(g,function(e,t){l(t,{width:e})})}}}))(function(e){var t=e.attributes,n=e.className,o=e.updateAlignment,a=e.updateWidth,l=e.hasChildBlocks,u=t.verticalAlignment,d=t.width,h=s()(n,"block-core-columns",Object(c.a)({},"is-vertically-aligned-".concat(u),u));return Object(i.createElement)("div",{className:h},Object(i.createElement)(b.BlockControls,null,Object(i.createElement)(b.BlockVerticalAlignmentToolbar,{onChange:o,value:u})),Object(i.createElement)(b.InspectorControls,null,Object(i.createElement)(m.PanelBody,{title:Object(r.__)("Column Settings")},Object(i.createElement)(m.RangeControl,{label:Object(r.__)("Percentage width"),value:d||"",onChange:a,min:0,max:100,required:!0,allowReset:!0}))),Object(i.createElement)(b.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:function(){return Object(i.createElement)(b.InnerBlocks.ButtonBlockAppender,null)}}))}),f=Object(i.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(m.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)(m.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}));n.d(t,"metadata",function(){return v}),n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return j});var v={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},O=v.name,j={title:Object(r.__)("Column"),parent:["core/columns"],icon:f,description:Object(r.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:g,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,a=s()(Object(c.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(i.createElement)("div",{className:a,style:t},Object(i.createElement)(b.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(0),c=n(2),i=n(3),l=n(6),s=n(37),u=n.n(s);var b=n(9),m={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(b.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map(function(e){var t=e.children;return Object(b.createBlock)("core/column",{},[Object(b.createBlock)("core/paragraph",{content:t})])}))}}]};n.d(t,"metadata",function(){return d}),n.d(t,"name",function(){return h}),n.d(t,"settings",function(){return p});var d={name:"core/text-columns",icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}}},h=d.name,p={supports:{inserter:!1},title:Object(r.__)("Text Columns (deprecated)"),description:Object(r.__)("This block is deprecated. Please use the Columns block instead."),transforms:m,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,s=e.className,b=t.width,m=t.content,d=t.columns;return u()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.BlockControls,null,Object(a.createElement)(l.BlockAlignmentToolbar,{value:b,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(i.PanelBody,null,Object(a.createElement)(i.RangeControl,{label:Object(r.__)("Columns"),value:d,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(a.createElement)("div",{className:"".concat(s," align").concat(b," columns-").concat(d)},Object(c.times)(d,function(e){return Object(a.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(a.createElement)(l.RichText,{tagName:"p",value:Object(c.get)(m,[e,"children"]),onChange:function(t){n({content:[].concat(Object(o.a)(m.slice(0,e)),[{children:t}],Object(o.a)(m.slice(e+1)))})},placeholder:Object(r.__)("New Column")}))})))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(a.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(c.times)(o,function(e){return Object(a.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(a.createElement)(l.RichText.Content,{tagName:"p",value:Object(c.get)(r,[e,"children"])}))}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(23),a=n(0),c=n(16),i=n.n(c),l=n(6),s=n(3),u=n(8),b=n(4),m=Object(u.compose)([Object(b.withDispatch)(function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}}),u.withInstanceId])(function(e){var t=e.attributes,n=e.isSelected,c=e.setAttributes,u=e.instanceId,b=e.onResizeStart,m=e.onResizeStop,d=t.height,h="block-spacer-height-input-".concat(u),p=Object(a.useState)(d),g=Object(o.a)(p,2),f=g[0],v=g[1];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.ResizableBox,{className:i()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:d},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:b,onResizeStop:function(e,t,n,r){m();var o=parseInt(d+r.height,10);c({height:o}),v(o)}}),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(s.PanelBody,{title:Object(r.__)("Spacer Settings")},Object(a.createElement)(s.BaseControl,{label:Object(r.__)("Height in pixels"),id:h},Object(a.createElement)("input",{type:"number",id:h,onChange:function(e){var t=parseInt(e.target.value,10);v(t),isNaN(t)?(v(""),t=100):t<20&&(t=20),c({height:t})},value:f,min:"20",step:"10"})))))}),d=Object(a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(s.G,null,Object(a.createElement)(s.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));n.d(t,"metadata",function(){return h}),n.d(t,"name",function(){return p}),n.d(t,"settings",function(){return g});var h={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},p=h.name,g={title:Object(r.__)("Spacer"),description:Object(r.__)("Add white space between blocks and customize its height."),icon:d,edit:m,save:function(e){var t=e.attributes;return Object(a.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(2),c=n(3),i=n(6),l=n(4),s=n(8);var u=Object(s.compose)([Object(l.withDispatch)(function(e,t,n){var r=t.clientId,o=(0,n.select)("core/block-editor"),a=o.getBlockOrder,c=(0,o.getBlockRootClientId)(r),i=e("core/block-editor"),l=i.moveBlocksDown,s=i.moveBlocksUp,u=i.moveBlockToPosition,b=i.removeBlocks;return{moveToStart:function(){u(r,c,c,0)},moveRight:function(){l(r,c)},moveLeft:function(){s(r,c)},moveToEnd:function(){u(r,c,c,a(c).length-1)},remove:function(){b(r)}}})])(function(e){var t=e.destination,n=e.moveLeft,a=e.moveRight,i=e.moveToEnd,l=e.moveToStart,s=e.onEditLableClicked,u=e.remove;return Object(o.createElement)(c.NavigableMenu,null,Object(o.createElement)(c.MenuItem,{icon:"admin-links"},t),Object(o.createElement)(c.MenuItem,{onClick:s,icon:"edit"},Object(r.__)("Edit label text")),Object(o.createElement)("div",{className:"wp-block-navigation-menu-item__separator"}),Object(o.createElement)(c.MenuItem,{onClick:l,icon:"arrow-up-alt2"},Object(r.__)("Move to start")),Object(o.createElement)(c.MenuItem,{onClick:n,icon:"arrow-left-alt2"},Object(r.__)("Move left")),Object(o.createElement)(c.MenuItem,{onClick:a,icon:"arrow-right-alt2"},Object(r.__)("Move right")),Object(o.createElement)(c.MenuItem,{onClick:i,icon:"arrow-down-alt2"},Object(r.__)("Move to end")),Object(o.createElement)(c.MenuItem,{icon:"arrow-left-alt2"},Object(r.__)("Nest underneath…")),Object(o.createElement)("div",{className:"navigation-menu-item__separator"}),Object(o.createElement)(c.MenuItem,{onClick:u,icon:"trash"},Object(r.__)("Remove from menu")))}),b={noArrow:!0};var m=function(e){var t,n=e.attributes,l=e.clientId,s=e.isSelected,m=e.setAttributes,d=Object(o.useRef)(null),h=Object(o.useCallback)(function(e){return function(){e(),Object(a.invoke)(d,["current","textarea","focus"])}},[d]);return t=s?Object(o.createElement)("div",{className:"wp-block-navigation-menu-item__edit-container"},Object(o.createElement)(i.PlainText,{ref:d,className:"wp-block-navigation-menu-item__field",value:n.label,onChange:function(e){return m({label:e})},"aria-label":Object(r.__)("Navigation Label"),maxRows:1}),Object(o.createElement)(c.Dropdown,{contentClassName:"wp-block-navigation-menu-item__dropdown-content",position:"bottom left",popoverProps:b,renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(o.createElement)(c.IconButton,{icon:t?"arrow-up-alt2":"arrow-down-alt2",label:Object(r.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onClose;return Object(o.createElement)(u,{clientId:l,destination:n.destination,onEditLableClicked:h(t)})}})):n.label,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.InspectorControls,null,Object(o.createElement)(c.PanelBody,{title:Object(r.__)("Menu Settings")},Object(o.createElement)(c.ToggleControl,{checked:n.opensInNewTab,onChange:function(e){m({opensInNewTab:e})},label:Object(r.__)("Open in new tab")}),Object(o.createElement)(c.TextareaControl,{value:n.description||"",onChange:function(e){m({description:e})},label:Object(r.__)("Description")})),Object(o.createElement)(c.PanelBody,{title:Object(r.__)("SEO Settings")},Object(o.createElement)(c.TextControl,{value:n.title||"",onChange:function(e){m({title:e})},label:Object(r.__)("Title Attribute"),help:Object(r.__)("Provide more context about where the link goes.")}),Object(o.createElement)(c.ToggleControl,{checked:n.nofollow,onChange:function(e){m({nofollow:e})},label:Object(r.__)("Add nofollow to menu item"),help:Object(o.createElement)(o.Fragment,null,Object(r.__)("Don't let search engines follow this link."),Object(o.createElement)(c.ExternalLink,{className:"wp-block-navigation-menu-item__nofollow-external-link",href:Object(r.__)("https://codex.wordpress.org/Nofollow")},Object(r.__)("What's this?")))}))),Object(o.createElement)("div",{className:"wp-block-navigation-menu-item"},t,Object(o.createElement)(i.InnerBlocks,{allowedBlocks:["core/navigation-menu-item"],renderAppender:i.InnerBlocks.ButtonBlockAppender})))};n.d(t,"metadata",function(){return d}),n.d(t,"name",function(){return h}),n.d(t,"settings",function(){return p});var d={name:"core/navigation-menu-item",category:"layout",attributes:{label:{type:"string"},destination:{type:"string"},nofollow:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},opensInNewTab:{type:"boolean",default:!1}}},h=d.name,p={title:Object(r.__)("Menu Item (Experimental)"),parent:["core/navigation-menu"],icon:"admin-links",description:Object(r.__)("Add a page, link, or other item to your Navigation Menu."),edit:m,save:function(){return Object(o.createElement)(i.InnerBlocks.Content,null)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(2),m=n(3),d=n(4),h=n(6),p=n(8),g=n(9),f=n(19),v=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).titleField=Object(u.createRef)(),e.editButton=Object(u.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(l.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(l.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===f.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,o=e.isSaving,a=e.isEditDisabled,c=e.onEdit,i=e.instanceId;return Object(u.createElement)(u.Fragment,null,!t&&!o&&Object(u.createElement)("div",{className:"reusable-block-edit-panel"},Object(u.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(u.createElement)(m.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:a,onClick:c},Object(r.__)("Edit"))),(t||o)&&Object(u.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(u.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(i),className:"reusable-block-edit-panel__label"},Object(r.__)("Name:")),Object(u.createElement)("input",{ref:this.titleField,type:"text",disabled:o,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(i)}),Object(u.createElement)(m.Button,{type:"submit",isLarge:!0,isBusy:o,disabled:!n||o,className:"reusable-block-edit-panel__button"},Object(r.__)("Save"))))}}]),t}(u.Component),O=Object(p.withInstanceId)(v);var j=function(e){var t=e.title,n=Object(r.sprintf)(Object(r.__)("Reusable Block: %s"),t);return Object(u.createElement)(m.Tooltip,{text:n},Object(u.createElement)("span",{className:"reusable-block-indicator"},Object(u.createElement)(m.Dashicon,{icon:"controls-repeat"})))},y=function(e){function t(e){var n,r=e.reusableBlock;return Object(o.a)(this,t),(n=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(l.a)(n)),n.stopEditing=n.stopEditing.bind(Object(l.a)(n)),n.setBlocks=n.setBlocks.bind(Object(l.a)(n)),n.setTitle=n.setTitle.bind(Object(l.a)(n)),n.save=n.save.bind(Object(l.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(g.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(g.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(g.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,o=r.blocks;t({title:r.title,content:Object(g.serialize)(o)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,o=e.isFetching,a=e.isSaving,c=e.canUpdateBlock,i=e.settings,l=this.state,s=l.isEditing,b=l.title,d=l.blocks;if(!n&&o)return Object(u.createElement)(m.Placeholder,null,Object(u.createElement)(m.Spinner,null));if(!n)return Object(u.createElement)(m.Placeholder,null,Object(r.__)("Block has been deleted or is unavailable."));var p=Object(u.createElement)(h.BlockEditorProvider,{settings:i,value:d,onChange:this.setBlocks,onInput:this.setBlocks},Object(u.createElement)(h.WritingFlow,null,Object(u.createElement)(h.BlockList,null)));return s||(p=Object(u.createElement)(m.Disabled,null,p)),Object(u.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||s)&&Object(u.createElement)(O,{isEditing:s,title:null!==b?b:n.title,isSaving:a&&!n.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!s&&Object(u.createElement)(j,{title:n.title}),p)}}]),t}(u.Component),_=Object(p.compose)([Object(d.withSelect)(function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:o(u),isSaving:a(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}}),Object(d.withDispatch)(function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,a=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(b.partial)(r,c),onChange:Object(b.partial)(o,c),onSave:Object(b.partial)(a,c)}})])(y);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var k="core/block",C={title:Object(r.__)("Reusable Block"),category:"reusable",description:Object(r.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),supports:{customClassName:!1,html:!1,inserter:!1},edit:_}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=n(3),i=n(23),l=n(4),s=Object(o.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(o.createElement)(c.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var u=function(e){var t=e.attributes,n=e.setAttributes,u=function(e){var t=Object(o.useState)(!1),n=Object(i.a)(t,2),u=n[0],b=n[1],m=Object(l.useSelect)(function(t){var n=t("core/block-editor"),r=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(e),selectedBlockClientId:r()}},[e]),d=m.block,h=m.selectedBlockClientId,p=Object(l.useDispatch)("core/block-editor").selectBlock;return{navigatorToolbarButton:Object(o.createElement)(c.IconButton,{className:"components-toolbar__control",label:Object(r.__)("Open block navigator"),onClick:function(){return b(!0)},icon:s}),navigatorModal:u&&Object(o.createElement)(c.Modal,{title:Object(r.__)("Block Navigator"),closeLabel:Object(r.__)("Close"),onRequestClose:function(){b(!1)}},Object(o.createElement)(a.__experimentalBlockNavigationList,{blocks:[d],selectedBlockClientId:h,selectBlock:p,showNestedBlocks:!0}))}}(e.clientId),b=u.navigatorToolbarButton,m=u.navigatorModal;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(a.BlockControls,null,Object(o.createElement)(c.Toolbar,null,b)),m,Object(o.createElement)(a.InspectorControls,null,Object(o.createElement)(c.PanelBody,{title:Object(r.__)("Menu Settings")},Object(o.createElement)(c.CheckboxControl,{value:t.automaticallyAdd,onChange:function(e){n({automaticallyAdd:e})},label:Object(r.__)("Automatically add new pages"),help:Object(r.__)("Automatically add new top level pages to this menu.")}))),Object(o.createElement)("div",{className:"wp-block-navigation-menu"},Object(o.createElement)(a.InnerBlocks,{allowedBlocks:["core/navigation-menu-item"],renderAppender:a.InnerBlocks.ButtonBlockAppender})))};n.d(t,"name",function(){return b}),n.d(t,"settings",function(){return m});var b="core/navigation-menu",m={title:Object(r.__)("Navigation Menu (Experimental)"),icon:"menu",description:Object(r.__)("Add a navigation menu to your site."),keywords:[Object(r.__)("menu"),Object(r.__)("navigation"),Object(r.__)("links")],supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},edit:u,save:function(){return Object(o.createElement)(a.InnerBlocks.Content,null)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(2),m=n(3),d=n(8),h=n(4),p=n(6),g=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(l.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(l.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter(function(t){return t.parent===e}):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(b.unescape)(e.name).trim():Object(r.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(u.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map(function(t){return e.renderCategoryListItem(t,0)}))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return Object(u.createElement)("li",{key:e.id},Object(u.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),a&&Object(u.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!c.length&&Object(u.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map(function(e){return n.renderCategoryListItem(e,t+1)})))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,o=this.getCategories(n),a="blocks-category-select-".concat(t);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("label",{htmlFor:a,className:"screen-reader-text"},Object(r.__)("Categories")),Object(u.createElement)("select",{id:a,className:"wp-block-categories__dropdown"},o.map(function(t){return e.renderCategoryDropdownItem(t,0)})))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return[Object(u.createElement)("option",{key:e.id},Object(b.times)(3*t,function(){return" "}),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.map(function(e){return n.renderCategoryDropdownItem(e,t+1)})]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,o=t.displayAsDropdown,a=t.showHierarchy,c=t.showPostCounts,i=Object(u.createElement)(p.InspectorControls,null,Object(u.createElement)(m.PanelBody,{title:Object(r.__)("Categories Settings")},Object(u.createElement)(m.ToggleControl,{label:Object(r.__)("Display as Dropdown"),checked:o,onChange:this.toggleDisplayAsDropdown}),Object(u.createElement)(m.ToggleControl,{label:Object(r.__)("Show Hierarchy"),checked:a,onChange:this.toggleShowHierarchy}),Object(u.createElement)(m.ToggleControl,{label:Object(r.__)("Show Post Counts"),checked:c,onChange:this.toggleShowPostCounts})));return n?Object(u.createElement)(u.Fragment,null,i,Object(u.createElement)(m.Placeholder,{icon:"admin-post",label:Object(r.__)("Categories")},Object(u.createElement)(m.Spinner,null))):Object(u.createElement)(u.Fragment,null,i,Object(u.createElement)("div",{className:this.props.className},o?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(u.Component),f=Object(d.compose)(Object(h.withSelect)(function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}}),d.withInstanceId)(g),v=Object(u.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(m.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(u.createElement)(m.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(u.createElement)(m.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"}));n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return j});var O="core/categories",j={title:Object(r.__)("Categories"),description:Object(r.__)("Display a list of all categories."),icon:v,category:"widgets",supports:{align:!0,html:!1},edit:f}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(29),d=n.n(m),h=n(45),p=n.n(h),g=n(3),f=n(4),v=n(55),O=n.n(v),j=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).getYearMonth=p()(e.getYearMonth.bind(Object(s.a)(e)),{maxSize:1}),e.getServerSideAttributes=p()(e.getServerSideAttributes.bind(Object(s.a)(e)),{maxSize:1}),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=d()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(o.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object(b.createElement)(g.Disabled,null,Object(b.createElement)(O.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(b.Component),y=Object(f.withSelect)(function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}})(j),_=Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(b.createElement)(g.G,null,Object(b.createElement)(g.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})));n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var k="core/calendar",C={title:Object(r.__)("Calendar"),description:Object(r.__)("A calendar of your site’s posts."),icon:_,category:"widgets",keywords:[Object(r.__)("posts"),Object(r.__)("archive")],supports:{align:!0},example:{},edit:y}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(18),c=n(12),i=n(11),l=n(13),s=n(14),u=n(15),b=n(0),m=n(2),d=n(16),h=n.n(d),p=n(3),g=n(32),f=n.n(g),v=n(26),O=n(56),j=n(6),y=n(4),_={per_page:-1},k=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=f()({path:Object(v.addQueryArgs)("/wp/v2/categories",_)}).then(function(t){e.isStillMounted&&e.setState({categoriesList:t})}).catch(function(){e.isStillMounted&&e.setState({categoriesList:[]})})}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,c=e.latestPosts,i=this.state.categoriesList,l=t.displayPostContentRadio,s=t.displayPostContent,u=t.displayPostDate,m=t.postLayout,d=t.columns,g=t.order,f=t.orderBy,v=t.categories,y=t.postsToShow,_=t.excerptLength,k=Object(b.createElement)(j.InspectorControls,null,Object(b.createElement)(p.PanelBody,{title:Object(r.__)("Post Content Settings")},Object(b.createElement)(p.ToggleControl,{label:Object(r.__)("Post Content"),checked:s,onChange:function(e){return n({displayPostContent:e})}}),s&&Object(b.createElement)(p.RadioControl,{label:"Show:",selected:l,options:[{label:"Excerpt",value:"excerpt"},{label:"Full Post",value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),s&&"excerpt"===l&&Object(b.createElement)(p.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:_,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(b.createElement)(p.PanelBody,{title:Object(r.__)("Post Meta Settings")},Object(b.createElement)(p.ToggleControl,{label:Object(r.__)("Display post date"),checked:u,onChange:function(e){return n({displayPostDate:e})}})),Object(b.createElement)(p.PanelBody,{title:Object(r.__)("Sorting and Filtering")},Object(b.createElement)(p.QueryControls,Object(a.a)({order:g,orderBy:f},{numberOfItems:y,categoriesList:i,selectedCategoryId:v,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),"grid"===m&&Object(b.createElement)(p.RangeControl,{label:Object(r.__)("Columns"),value:d,onChange:function(e){return n({columns:e})},min:2,max:C?Math.min(6,c.length):6,required:!0}))),C=Array.isArray(c)&&c.length;if(!C)return Object(b.createElement)(b.Fragment,null,k,Object(b.createElement)(p.Placeholder,{icon:"admin-post",label:Object(r.__)("Latest Posts")},Array.isArray(c)?Object(r.__)("No posts found."):Object(b.createElement)(p.Spinner,null)));var w=c.length>y?c.slice(0,y):c,E=[{icon:"list-view",title:Object(r.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===m},{icon:"grid-view",title:Object(r.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===m}],x=Object(O.__experimentalGetSettings)().formats.date;return Object(b.createElement)(b.Fragment,null,k,Object(b.createElement)(j.BlockControls,null,Object(b.createElement)(p.Toolbar,{controls:E})),Object(b.createElement)("ul",{className:h()(this.props.className,Object(o.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===m,"has-dates":u},"columns-".concat(d),"grid"===m))},w.map(function(e,t){var n=e.title.rendered.trim(),o=e.excerpt.rendered;""===e.excerpt.raw&&(o=e.content.raw);var a=document.createElement("div");return a.innerHTML=o,o=a.textContent||a.innerText||"",Object(b.createElement)("li",{key:t},Object(b.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(b.createElement)(b.RawHTML,null,n):Object(r.__)("(no title)")),u&&e.date_gmt&&Object(b.createElement)("time",{dateTime:Object(O.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(O.dateI18n)(x,e.date_gmt)),s&&"excerpt"===l&&Object(b.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(b.createElement)(b.RawHTML,{key:"html"},_'+Object(r.__)("Read more")+"":o.trim().split(" ",_).join(" "))),s&&"full_post"===l&&Object(b.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(b.createElement)(b.RawHTML,{key:"html"},e.content.raw.trim())))})))}}]),t}(b.Component),C=Object(y.withSelect)(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(m.pickBy)({categories:c,order:o,orderby:a,per_page:r},function(e){return!Object(m.isUndefined)(e)}))}})(k),w=Object(b.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(p.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(p.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(b.createElement)(p.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(b.createElement)(p.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(b.createElement)(p.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(b.createElement)(p.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"}));n.d(t,"name",function(){return E}),n.d(t,"settings",function(){return x});var E="core/latest-posts",x={title:Object(r.__)("Latest Posts"),description:Object(r.__)("Display a list of your most recent posts."),icon:w,category:"widgets",keywords:[Object(r.__)("recent posts")],supports:{align:!0,html:!1},edit:C}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(6),d=n(3),h=n(55),p=n.n(h),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(s.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,o=e.displayDate,a=e.displayExcerpt;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(m.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("Latest Comments Settings")},Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display Date"),checked:o,onChange:this.toggleDisplayDate}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display Excerpt"),checked:a,onChange:this.toggleDisplayExcerpt}),Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(b.createElement)(d.Disabled,null,Object(b.createElement)(p.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(b.Component),f=Object(b.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(b.createElement)(d.G,null,Object(b.createElement)(d.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"})));n.d(t,"name",function(){return v}),n.d(t,"settings",function(){return O});var v="core/latest-comments",O={title:Object(r.__)("Latest Comments"),description:Object(r.__)("Display a list of your most recent comments."),icon:f,category:"widgets",keywords:[Object(r.__)("recent comments")],supports:{align:!0,html:!1},edit:g}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=n(80),i=Object.keys(c.a).map(function(e){return"core/social-link-"+e}),l=[["core/social-link-wordpress",{url:"https://wordpress.org"}],["core/social-link-facebook"],["core/social-link-twitter"],["core/social-link-instagram"],["core/social-link-linkedin"],["core/social-link-youtube"]],s=function(e){var t=e.className;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.InnerBlocks,{allowedBlocks:i,templateLock:!1,template:l}))};n.d(t,"metadata",function(){return u}),n.d(t,"name",function(){return b}),n.d(t,"settings",function(){return m});var u={name:"core/social-links",category:"widgets",icon:"share",attributes:{}},b=u.name,m={title:Object(r.__)("Social links"),description:Object(r.__)("Create a block of links to your social media or external sites"),supports:{align:["left","center","right"]},example:{innerBlocks:[{name:"core/social-link-wordpress",attributes:{url:"https://wordpress.org"}},{name:"core/social-link-facebook",attributes:{url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link-twitter",attributes:{url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(r.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(r.__)("Logos Only")},{name:"pill-shape",label:Object(r.__)("Pill Shape")}],edit:s,save:function(e){var t=e.className;return Object(o.createElement)("ul",{className:t},Object(o.createElement)(a.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(3),c=n(6),i=n(55),l=n.n(i);var s=Object(o.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(a.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"}));n.d(t,"name",function(){return u}),n.d(t,"settings",function(){return b});var u="core/archives",b={title:Object(r.__)("Archives"),description:Object(r.__)("Display a monthly archive of your posts."),icon:s,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,i=t.showPostCounts,s=t.displayAsDropdown;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(a.PanelBody,{title:Object(r.__)("Archives Settings")},Object(o.createElement)(a.ToggleControl,{label:Object(r.__)("Display as Dropdown"),checked:s,onChange:function(){return n({displayAsDropdown:!s})}}),Object(o.createElement)(a.ToggleControl,{label:Object(r.__)("Show Post Counts"),checked:i,onChange:function(){return n({showPostCounts:!i})}}))),Object(o.createElement)(a.Disabled,null,Object(o.createElement)(l.a,{block:"core/archives",attributes:t})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(2),d=n(3),h=n(4),p=n(6),g=n(55),f=n.n(g),v=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(s.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(s.a)(e)),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(m.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(r.__)("- Select -"),value:"",disabled:!0},n=Object(m.map)(e,function(e){return{value:e.slug,label:e.name}});return[t].concat(Object(o.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,o=this.getTaxonomyOptions(),a=Object(b.createElement)(p.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("Tag Cloud Settings")},Object(b.createElement)(d.SelectControl,{label:Object(r.__)("Taxonomy"),options:o,value:t,onChange:this.setTaxonomy}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(b.createElement)(b.Fragment,null,a,Object(b.createElement)(f.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(b.Component),O=Object(h.withSelect)(function(e){return{taxonomies:e("core").getTaxonomies()}})(v);n.d(t,"name",function(){return j}),n.d(t,"settings",function(){return y});var j="core/tag-cloud",y={title:Object(r.__)("Tag Cloud"),description:Object(r.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:O}},function(e,t,n){"use strict";var r=n(7),o=n(1),a=n(23),c=n(0),i=n(16),l=n.n(i),s=n(6),u=n(3),b=n(80),m=function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,i=t.url,m=t.site,d=Object(c.useState)(!1),h=Object(a.a)(d,2),p=h[0],g=h[1],f=l()("wp-social-link","wp-social-link-"+m,{"wp-social-link__is-incomplete":!i}),v=Object(b.b)(m);return Object(c.createElement)(u.Button,{className:f,onClick:function(){return g(!0)}},Object(c.createElement)(v,null),r&&p&&Object(c.createElement)(s.URLPopover,{onClose:function(){return g(!1)}},Object(c.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),g(!1)}},Object(c.createElement)("div",{className:"editor-url-input block-editor-url-input"},Object(c.createElement)("input",{type:"text",value:i,onChange:function(e){return n({url:e.target.value})},placeholder:Object(o.__)("Enter Address")})),Object(c.createElement)(u.IconButton,{icon:"editor-break",label:Object(o.__)("Apply"),type:"submit"}))))};n.d(t,"a",function(){return h});var d={category:"widgets",parent:["core/social-links"],supports:{reusable:!1,html:!1},edit:m},h=Object.keys(b.a).map(function(e){var t=b.a[e];return{name:"core/social-link-"+e,settings:Object(r.a)({title:t.name,icon:t.icon,description:Object(o.__)("Link to "+t.name)},d,{attributes:{url:{type:"string"},site:{type:"string",default:e}}})}})},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6);n.d(t,"name",function(){return c}),n.d(t,"settings",function(){return i});var c="core/search",i={title:Object(r.__)("Search"),description:Object(r.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(r.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,c=e.setAttributes,i=n.label,l=n.placeholder,s=n.buttonText;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(r.__)("Label text"),placeholder:Object(r.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:function(e){return c({label:e})}}),Object(o.createElement)("input",{className:"wp-block-search__input","aria-label":Object(r.__)("Optional placeholder text"),placeholder:l?void 0:Object(r.__)("Optional placeholder…"),value:l,onChange:function(e){return c({placeholder:e.target.value})}}),Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(r.__)("Button text"),placeholder:Object(r.__)("Add button text…"),withoutInteractiveFormatting:!0,value:s,onChange:function(e){return c({buttonText:e})}}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(3),d=n(6),h=n(55),p=n.n(h),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(s.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(s.a)(e)),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,o=t.columns,a=t.displayAuthor,c=t.displayExcerpt,i=t.displayDate,l=t.excerptLength,s=t.feedURL,u=t.itemsToShow,h=this.props.setAttributes;if(this.state.editing)return Object(b.createElement)(m.Placeholder,{icon:"rss",label:"RSS"},Object(b.createElement)("form",{onSubmit:this.onSubmitURL},Object(b.createElement)(m.TextControl,{placeholder:Object(r.__)("Enter URL here…"),value:s,onChange:function(e){return h({feedURL:e})},className:"components-placeholder__input"}),Object(b.createElement)(m.Button,{isLarge:!0,type:"submit"},Object(r.__)("Use URL"))));var g=[{icon:"edit",title:Object(r.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(r.__)("List view"),onClick:function(){return h({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(r.__)("Grid view"),onClick:function(){return h({blockLayout:"grid"})},isActive:"grid"===n}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(d.BlockControls,null,Object(b.createElement)(m.Toolbar,{controls:g})),Object(b.createElement)(d.InspectorControls,null,Object(b.createElement)(m.PanelBody,{title:Object(r.__)("RSS Settings")},Object(b.createElement)(m.RangeControl,{label:Object(r.__)("Number of items"),value:u,onChange:function(e){return h({itemsToShow:e})},min:1,max:10,required:!0}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Display author"),checked:a,onChange:this.toggleAttribute("displayAuthor")}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Display date"),checked:i,onChange:this.toggleAttribute("displayDate")}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(b.createElement)(m.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:l,onChange:function(e){return h({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(b.createElement)(m.RangeControl,{label:Object(r.__)("Columns"),value:o,onChange:function(e){return h({columns:e})},min:2,max:6,required:!0}))),Object(b.createElement)(m.Disabled,null,Object(b.createElement)(p.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(b.Component);n.d(t,"name",function(){return f}),n.d(t,"settings",function(){return v});var f="core/rss",v={title:Object(r.__)("RSS"),description:Object(r.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(r.__)("atom"),Object(r.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:g}},,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"registerCoreBlocks",function(){return J}),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",function(){return X});var r=n(17),o=n(10),a=(n(97),n(6),n(24),n(9)),c=n(164),i=n(243),l=n(240),s=n(252),u=n(241),b=n(275),m=n(260),d=n(254),h=n(271),p=n(270),g=n(250),f=n(257),v=n(264),O=n(244),j=n(128),y=n(246),_=n(253),k=n(242),C=n(269),w=n(267),E=n(273),x=n(272),S=n(248),T=n(251),B=n(166),N=n(255),M=n(256),A=n(258),R=n(249),I=n(268),L=n(279),z=n(278),P=n(129),H=n(259),V=n(261),D=n(266),F=n(262),U=n(245),q=n(265),W=n(247),G=n(263),Z=n(276),K=n(165),$=n(274),Y=n(277),Q=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(a.unstable__bootstrapServerSideBlockDefinitions)(Object(o.a)({},r,t)),Object(a.registerBlockType)(r,n)}},J=function(){[c,i,l,u,T,s,V,b,m,d,h,p,g,f,v,O,j].concat(Object(r.a)(j.common),Object(r.a)(j.others),[y,P,window.wp&&window.wp.oldEditor?K:null,_,k,E,x,B,N,M,A,R,L,z,H,I,D,F,U,Z,q,W,G]).forEach(Q),Object(a.setDefaultBlockName)(c.name),window.wp&&window.wp.oldEditor&&Object(a.setFreeformContentHandlerName)(K.name),Object(a.setUnregisteredTypeHandlerName)(B.name),P&&Object(a.setGroupingBlockName)(P.name)},X=2===e.env.GUTENBERG_PHASE?function(e){var t=e.__experimentalEnableLegacyWidgetBlock,n=e.__experimentalEnableMenuBlock;[t?S:null,n?C:null,n?w:null,$].concat(Object(r.a)(Y.a)).forEach(Q)}:void 0}.call(this,n(96))}]);