mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 18:48:57 +01:00
9f33966e4e
Includes miscellaneous bug fixes and enhancements to the Library task (#58579). Props andrewserong, ramonopoly. Fixes #58745. Built from https://develop.svn.wordpress.org/trunk@56205 git-svn-id: http://core.svn.wordpress.org/trunk@55717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
776 KiB
JavaScript
14 lines
776 KiB
JavaScript
/*! This file is auto-generated */
|
||
!function(){var e={7078:function(e){e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},3827:function(e,t){var n;
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var n=t.length,o=0;o<n;++o)a(e,t[o])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var o=/\s+/;function a(e,a){if(a){var r=typeof a;"string"===r?function(e,t){for(var n=t.split(o),a=n.length,r=0;r<a;++r)e[n[r]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===r?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var o in t)n.call(t,o)&&(e[o]=!!t[o]);else e[t.toString()]=!0}(e,a):"number"===r&&function(e,t){e[t]=!0}(e,a)}}return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var r=new e;t(r,o);var l=[];for(var i in r)r[i]&&l.push(i);return l.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4403:function(e,t){var n;
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)o.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},5619:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,a,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],n.get(a[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(t[a]!==n[a])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=o;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,r[a]))return!1;for(a=o;0!=a--;){var l=r[a];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),a=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(o,r)};e.exports=l,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=l}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{__experimentalGetCoreBlocks:function(){return HE},__experimentalRegisterExperimentalCoreBlocks:function(){return AE},registerCoreBlocks:function(){return LE}});var e={};n.r(e),n.d(e,{init:function(){return at},metadata:function(){return tt},name:function(){return nt},settings:function(){return ot}});var t={};n.r(t),n.d(t,{init:function(){return xt},metadata:function(){return vt},name:function(){return yt},settings:function(){return kt}});var a={};n.r(a),n.d(a,{init:function(){return Zt},metadata:function(){return jt},name:function(){return qt},settings:function(){return Wt}});var r={};n.r(r),n.d(r,{init:function(){return vn},metadata:function(){return _n},name:function(){return bn},settings:function(){return fn}});var l={};n.r(l),n.d(l,{init:function(){return Rn},metadata:function(){return In},name:function(){return Mn},settings:function(){return zn}});var i={};n.r(i),n.d(i,{init:function(){return $n},metadata:function(){return Vn},name:function(){return Dn},settings:function(){return Fn}});var s={};n.r(s),n.d(s,{init:function(){return Zn},metadata:function(){return jn},name:function(){return qn},settings:function(){return Wn}});var c={};n.r(c),n.d(c,{init:function(){return ao},metadata:function(){return to},name:function(){return no},settings:function(){return oo}});var u={};n.r(u),n.d(u,{init:function(){return po},metadata:function(){return co},name:function(){return uo},settings:function(){return mo}});var m={};n.r(m),n.d(m,{init:function(){return ko},metadata:function(){return fo},name:function(){return vo},settings:function(){return yo}});var p={};n.r(p),n.d(p,{init:function(){return Do},metadata:function(){return Lo},name:function(){return Ao},settings:function(){return Vo}});var d={};n.r(d),n.d(d,{init:function(){return Jo},metadata:function(){return Zo},name:function(){return Qo},settings:function(){return Ko}});var g={};n.r(g),n.d(g,{init:function(){return ta},metadata:function(){return Yo},name:function(){return Xo},settings:function(){return ea}});var h={};n.r(h),n.d(h,{init:function(){return sa},metadata:function(){return ra},name:function(){return la},settings:function(){return ia}});var _={};n.r(_),n.d(_,{init:function(){return da},metadata:function(){return ua},name:function(){return ma},settings:function(){return pa}});var b={};n.r(b),n.d(b,{init:function(){return ka},metadata:function(){return fa},name:function(){return va},settings:function(){return ya}});var f={};n.r(f),n.d(f,{init:function(){return Sa},metadata:function(){return wa},name:function(){return Ca},settings:function(){return Ea}});var v={};n.r(v),n.d(v,{init:function(){return Ma},metadata:function(){return Na},name:function(){return Pa},settings:function(){return Ia}});var y={};n.r(y),n.d(y,{init:function(){return Ua},metadata:function(){return $a},name:function(){return Ga},settings:function(){return Oa}});var k={};n.r(k),n.d(k,{init:function(){return Ka},metadata:function(){return Wa},name:function(){return Za},settings:function(){return Qa}});var x={};n.r(x),n.d(x,{init:function(){return ar},metadata:function(){return tr},name:function(){return nr},settings:function(){return or}});var w={};n.r(w),n.d(w,{init:function(){return ur},metadata:function(){return ir},name:function(){return sr},settings:function(){return cr}});var C={};n.r(C),n.d(C,{init:function(){return _r},metadata:function(){return dr},name:function(){return gr},settings:function(){return hr}});var E={};n.r(E),n.d(E,{init:function(){return Cr},metadata:function(){return kr},name:function(){return xr},settings:function(){return wr}});var S={};n.r(S),n.d(S,{init:function(){return mi},metadata:function(){return si},name:function(){return ci},settings:function(){return ui}});var B={};n.r(B),n.d(B,{init:function(){return fi},metadata:function(){return hi},name:function(){return _i},settings:function(){return bi}});var T={};n.r(T),n.d(T,{init:function(){return is},metadata:function(){return as},name:function(){return rs},settings:function(){return ls}});var N={};n.r(N),n.d(N,{init:function(){return Es},metadata:function(){return xs},name:function(){return ws},settings:function(){return Cs}});var P={};n.r(P),n.d(P,{init:function(){return Dc},metadata:function(){return Lc},name:function(){return Ac},settings:function(){return Vc}});var I={};n.r(I),n.d(I,{init:function(){return ou},metadata:function(){return eu},name:function(){return tu},settings:function(){return nu}});var M={};n.r(M),n.d(M,{init:function(){return Nu},metadata:function(){return Su},name:function(){return Bu},settings:function(){return Tu}});var z={};n.r(z),n.d(z,{init:function(){return Hu},metadata:function(){return Mu},name:function(){return zu},settings:function(){return Ru}});var R={};n.r(R),n.d(R,{init:function(){return Ou},metadata:function(){return Fu},name:function(){return $u},settings:function(){return Gu}});var H={};n.r(H),n.d(H,{init:function(){return hm},metadata:function(){return pm},name:function(){return dm},settings:function(){return gm}});var L={};n.r(L),n.d(L,{init:function(){return ym},metadata:function(){return bm},name:function(){return fm},settings:function(){return vm}});var A={};n.r(A),n.d(A,{init:function(){return Pm},metadata:function(){return Bm},name:function(){return Tm},settings:function(){return Nm}});var V={};n.r(V),n.d(V,{init:function(){return ep},metadata:function(){return Jm},name:function(){return Ym},settings:function(){return Xm}});var D={};n.r(D),n.d(D,{init:function(){return yp},metadata:function(){return bp},name:function(){return fp},settings:function(){return vp}});var F={};n.r(F),n.d(F,{init:function(){return Ep},metadata:function(){return xp},name:function(){return wp},settings:function(){return Cp}});var $={};n.r($),n.d($,{init:function(){return pd},metadata:function(){return cd},name:function(){return ud},settings:function(){return md}});var G={};n.r(G),n.d(G,{init:function(){return vd},metadata:function(){return _d},name:function(){return bd},settings:function(){return fd}});var O={};n.r(O),n.d(O,{init:function(){return Sd},metadata:function(){return wd},name:function(){return Cd},settings:function(){return Ed}});var U={};n.r(U),n.d(U,{init:function(){return Yg},metadata:function(){return Qg},name:function(){return Kg},settings:function(){return Jg}});var j={};n.r(j),n.d(j,{init:function(){return mh},metadata:function(){return sh},name:function(){return ch},settings:function(){return uh}});var q={};n.r(q),n.d(q,{init:function(){return xh},metadata:function(){return vh},name:function(){return yh},settings:function(){return kh}});var W={};n.r(W),n.d(W,{init:function(){return Th},metadata:function(){return Eh},name:function(){return Sh},settings:function(){return Bh}});var Z={};n.r(Z),n.d(Z,{init:function(){return zh},metadata:function(){return Ph},name:function(){return Ih},settings:function(){return Mh}});var Q={};n.r(Q),n.d(Q,{init:function(){return jh},metadata:function(){return Gh},name:function(){return Oh},settings:function(){return Uh}});var K={};n.r(K),n.d(K,{init:function(){return Kh},metadata:function(){return Wh},name:function(){return Zh},settings:function(){return Qh}});var J={};n.r(J),n.d(J,{init:function(){return __},metadata:function(){return d_},name:function(){return g_},settings:function(){return h_}});var Y={};n.r(Y),n.d(Y,{init:function(){return w_},metadata:function(){return y_},name:function(){return k_},settings:function(){return x_}});var X={};n.r(X),n.d(X,{init:function(){return N_},metadata:function(){return S_},name:function(){return B_},settings:function(){return T_}});var ee={};n.r(ee),n.d(ee,{init:function(){return R_},metadata:function(){return I_},name:function(){return M_},settings:function(){return z_}});var te={};n.r(te),n.d(te,{init:function(){return $_},metadata:function(){return V_},name:function(){return D_},settings:function(){return F_}});var ne={};n.r(ne),n.d(ne,{init:function(){return q_},metadata:function(){return O_},name:function(){return U_},settings:function(){return j_}});var oe={};n.r(oe),n.d(oe,{init:function(){return J_},metadata:function(){return Z_},name:function(){return Q_},settings:function(){return K_}});var ae={};n.r(ae),n.d(ae,{init:function(){return nb},metadata:function(){return X_},name:function(){return eb},settings:function(){return tb}});var re={};n.r(re),n.d(re,{init:function(){return db},metadata:function(){return ub},name:function(){return mb},settings:function(){return pb}});var le={};n.r(le),n.d(le,{init:function(){return xb},metadata:function(){return vb},name:function(){return yb},settings:function(){return kb}});var ie={};n.r(ie),n.d(ie,{init:function(){return Tb},metadata:function(){return Eb},name:function(){return Sb},settings:function(){return Bb}});var se={};n.r(se),n.d(se,{init:function(){return Db},metadata:function(){return Lb},name:function(){return Ab},settings:function(){return Vb}});var ce={};n.r(ce),n.d(ce,{init:function(){return Wb},metadata:function(){return Ub},name:function(){return jb},settings:function(){return qb}});var ue={};n.r(ue),n.d(ue,{init:function(){return ef},metadata:function(){return Jb},name:function(){return Yb},settings:function(){return Xb}});var me={};n.r(me),n.d(me,{init:function(){return uf},metadata:function(){return lf},name:function(){return sf},settings:function(){return cf}});var pe={};n.r(pe),n.d(pe,{init:function(){return bf},metadata:function(){return gf},name:function(){return hf},settings:function(){return _f}});var de={};n.r(de),n.d(de,{init:function(){return Cf},metadata:function(){return kf},name:function(){return xf},settings:function(){return wf}});var ge={};n.r(ge),n.d(ge,{init:function(){return If},metadata:function(){return Tf},name:function(){return Nf},settings:function(){return Pf}});var he={};n.r(he),n.d(he,{init:function(){return Jf},metadata:function(){return Zf},name:function(){return Qf},settings:function(){return Kf}});var _e={};n.r(_e),n.d(_e,{init:function(){return ay},metadata:function(){return ty},name:function(){return ny},settings:function(){return oy}});var be={};n.r(be),n.d(be,{init:function(){return cy},metadata:function(){return ly},name:function(){return iy},settings:function(){return sy}});var fe={};n.r(fe),n.d(fe,{init:function(){return fy},metadata:function(){return hy},name:function(){return _y},settings:function(){return by}});var ve={};n.r(ve),n.d(ve,{init:function(){return wy},metadata:function(){return yy},name:function(){return ky},settings:function(){return xy}});var ye={};n.r(ye),n.d(ye,{init:function(){return Ty},metadata:function(){return Ey},name:function(){return Sy},settings:function(){return By}});var ke={};n.r(ke),n.d(ke,{init:function(){return zy},metadata:function(){return Py},name:function(){return Iy},settings:function(){return My}});var xe={};n.r(xe),n.d(xe,{init:function(){return Gy},metadata:function(){return Dy},name:function(){return Fy},settings:function(){return $y}});var we={};n.r(we),n.d(we,{init:function(){return ok},metadata:function(){return ek},name:function(){return tk},settings:function(){return nk}});var Ce={};n.r(Ce),n.d(Ce,{init:function(){return uk},metadata:function(){return ik},name:function(){return sk},settings:function(){return ck}});var Ee={};n.r(Ee),n.d(Ee,{init:function(){return gk},metadata:function(){return mk},name:function(){return pk},settings:function(){return dk}});var Se={};n.r(Se),n.d(Se,{init:function(){return vk},metadata:function(){return _k},name:function(){return bk},settings:function(){return fk}});var Be={};n.r(Be),n.d(Be,{init:function(){return Mk},metadata:function(){return Nk},name:function(){return Pk},settings:function(){return Ik}});var Te={};n.r(Te),n.d(Te,{init:function(){return Fk},metadata:function(){return Ak},name:function(){return Vk},settings:function(){return Dk}});var Ne={};n.r(Ne),n.d(Ne,{init:function(){return Wk},metadata:function(){return Uk},name:function(){return jk},settings:function(){return qk}});var Pe={};n.r(Pe),n.d(Pe,{init:function(){return ax},metadata:function(){return tx},name:function(){return nx},settings:function(){return ox}});var Ie={};n.r(Ie),n.d(Ie,{init:function(){return mx},metadata:function(){return sx},name:function(){return cx},settings:function(){return ux}});var Me={};n.r(Me),n.d(Me,{init:function(){return yx},metadata:function(){return bx},name:function(){return fx},settings:function(){return vx}});var ze={};n.r(ze),n.d(ze,{init:function(){return Ix},metadata:function(){return Tx},name:function(){return Nx},settings:function(){return Px}});var Re={};n.r(Re),n.d(Re,{init:function(){return $x},metadata:function(){return Vx},name:function(){return Dx},settings:function(){return Fx}});var He={};n.r(He),n.d(He,{init:function(){return Xx},metadata:function(){return Kx},name:function(){return Jx},settings:function(){return Yx}});var Le={};n.r(Le),n.d(Le,{init:function(){return Rw},metadata:function(){return Iw},name:function(){return Mw},settings:function(){return zw}});var Ae={};n.r(Ae),n.d(Ae,{init:function(){return Uw},metadata:function(){return $w},name:function(){return Gw},settings:function(){return Ow}});var Ve={};n.r(Ve),n.d(Ve,{init:function(){return Kw},metadata:function(){return Ww},name:function(){return Zw},settings:function(){return Qw}});var De={};n.r(De),n.d(De,{init:function(){return SC},metadata:function(){return wC},name:function(){return CC},settings:function(){return EC}});var Fe={};n.r(Fe),n.d(Fe,{init:function(){return IC},metadata:function(){return TC},name:function(){return NC},settings:function(){return PC}});var $e={};n.r($e),n.d($e,{init:function(){return AC},metadata:function(){return RC},name:function(){return HC},settings:function(){return LC}});var Ge={};n.r(Ge),n.d(Ge,{init:function(){return WC},metadata:function(){return UC},name:function(){return jC},settings:function(){return qC}});var Oe={};n.r(Oe),n.d(Oe,{init:function(){return _E},metadata:function(){return dE},name:function(){return gE},settings:function(){return hE}});var Ue={};n.r(Ue),n.d(Ue,{init:function(){return ME},metadata:function(){return NE},name:function(){return PE},settings:function(){return IE}});var je=window.wp.blocks,qe=window.wp.element,We=window.wp.primitives;var Ze=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));function Qe(e){if(!e)return;const{metadata:t,settings:n,name:o}=e;return(0,je.registerBlockType)({name:o,...t},n)}var Ke=window.wp.components,Je=window.wp.i18n,Ye=window.wp.blockEditor,Xe=window.wp.serverSideRender,et=n.n(Xe);const tt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-archives-editor"},{name:nt}=tt,ot={icon:Ze,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:o,displayAsDropdown:a,type:r}=e;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:a,onChange:()=>t({displayAsDropdown:!a})}),a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Group by:"),options:[{label:(0,Je.__)("Year"),value:"yearly"},{label:(0,Je.__)("Month"),value:"monthly"},{label:(0,Je.__)("Week"),value:"weekly"},{label:(0,Je.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},at=()=>Qe({name:nt,metadata:tt,settings:ot});var rt=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),lt=n(4403),it=n.n(lt),st=window.wp.url,ct=window.wp.coreData,ut=window.wp.data;function mt(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function pt(){const{avatarURL:e}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const dt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var gt=function({value:e,onChange:t}){const[n,o]=(0,qe.useState)(),a=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(dt)}),[]);if(!a)return null;const r=a.map((e=>({label:e.name,value:e.id})));return(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("User"),help:(0,Je.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>o(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const ht=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),o&&(0,qe.createElement)(gt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),_t=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:a})=>{const r=(0,Ye.__experimentalUseBorderProps)(t),l=(0,st.addQueryArgs)((0,st.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(n,o,a,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,qe.createElement)("img",{src:l,alt:n.alt,className:it()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},bt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:a}=t,r=(0,Ye.useBlockProps)(),l=function({commentId:e}){const[t]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,ct.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:r,maxSize:l}=mt(a),i=pt();return{src:o?o[o.length-1]:i,minSize:r,maxSize:l,alt:n?(0,Je.sprintf)((0,Je.__)("%s Avatar"),n):(0,Je.__)("Default Avatar")}}({commentId:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n}))},ft=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:a,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:o}=(0,ut.useSelect)((o=>{const{getEditedEntityRecord:a,getUser:r}=o(ct.store);if(e)return{authorDetails:r(e)};const l=a("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,r=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:i}=mt(r),s=pt();return{src:a?a[a.length-1]:s,minSize:l,maxSize:i,alt:o?(0,Je.sprintf)((0,Je.__)("%s Avatar"),o?.name):(0,Je.__)("Default Avatar")}}({userId:e?.userId,postId:a,postType:r}),i=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),(0,qe.createElement)("div",null,e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})))};const vt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:yt}=vt,kt={icon:rt,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,qe.createElement)(bt,{...e}):(0,qe.createElement)(ft,{...e})}},xt=()=>Qe({name:yt,metadata:vt,settings:kt});var wt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Ct=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return(0,qe.createElement)("figure",null,(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}}],Et=window.wp.blob;var St=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),Bt=window.wp.notices,Tt=window.wp.compose;const Nt=[{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"}],Pt="wp-embed";var It=window.lodash,Mt=n(3827),zt=n.n(Mt);function Rt(e,t){var n,o,a=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return i={args:r,val:e.apply(null,r)},n?(n.prev=i,i.next=n):o=i,a===t.maxSize?(o=o.prev).next=null:a++,n=i,i.val}return t=t||{},r.clear=function(){n=null,o=null,a=0},r}const{name:Ht}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Lt=e=>e&&e.includes('class="wp-embedded-content"'),At=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:a,providerNameSlug:r,type:l,...i}=o;if(!a||!(0,je.getBlockType)(Ht))return;const s=(e=>(0,je.getBlockVariations)(Ht)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(a),c="wordpress"===r||l===Pt;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,je.createBlock)(Ht,{url:a,...i,...s.attributes});const u=(0,je.getBlockVariations)(Ht)?.find((({name:e})=>"wordpress"===e));return u&&n&&Lt(n.html)&&!c?(0,je.createBlock)(Ht,{url:a,...u.attributes,...t}):void 0},Vt=e=>{if(!e)return e;const t=Nt.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Dt(e,t,n=!0){if(!n)return Vt(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const a=o.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let n=0;n<Nt.length;n++){const o=Nt[n];if(e>=o.ratio){return e-o.ratio>.1?Vt(t):zt()(Vt(t),o.className,"wp-has-aspect-ratio")}}}return t}const Ft=Rt(((e,t,n,o,a=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,It.kebabCase)((s||t).toLowerCase());return Lt(i)&&(l=Pt),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=c),(u=n)&&Nt.some((({className:e})=>u.includes(e)))||(r.className=Dt(i,n,o&&a)),r;var u})),$t=["audio"];var Gt=function({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:a,insertBlocksAfter:r}){const{id:l,autoplay:i,caption:s,loop:c,preload:u,src:m}=e,p=(0,Tt.usePrevious)(s),[d,g]=(0,qe.useState)(!!s),h=!l&&(0,Et.isBlobURL)(m),_=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().mediaUpload}),[]);(0,qe.useEffect)((()=>{if(!l&&(0,Et.isBlobURL)(m)){const e=(0,Et.getBlobByURL)(m);e&&_({filesList:[e],onFileChange:([e])=>x(e),onError:e=>k(e),allowedTypes:$t})}}),[]),(0,qe.useEffect)((()=>{s&&!p&&g(!0)}),[s,p]);const b=(0,qe.useCallback)((e=>{e&&!s&&e.focus()}),[s]);function f(e){return t=>{n({[e]:t})}}function v(e){if(e!==m){const t=At({attributes:{url:e}});if(void 0!==t&&o)return void o(t);n({src:e,id:void 0})}}(0,qe.useEffect)((()=>{a||s||g(!1)}),[a,s]);const{createErrorNotice:y}=(0,ut.useDispatch)(Bt.store);function k(e){y(e,{type:"snackbar"})}function x(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const w=it()(t,{"is-transient":h}),C=(0,Ye.useBlockProps)({className:w});return m?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{g(!d),d&&s&&n({caption:void 0})},icon:St,isPressed:d,label:d?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:$t,accept:"audio/*",onSelect:x,onSelectURL:v,onError:k})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:f("autoplay"),checked:i,help:function(e){return e?(0,Je.__)("Autoplay may cause usability issues for some users."):null}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:f("loop"),checked:c}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,Je.__)("Browser default")},{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}]}))),(0,qe.createElement)("figure",{...C},(0,qe.createElement)(Ke.Disabled,{isDisabled:!a},(0,qe.createElement)("audio",{controls:"controls",src:m})),h&&(0,qe.createElement)(Ke.Spinner,null),d&&(!Ye.RichText.isEmpty(s)||a)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:b,"aria-label":(0,Je.__)("Audio caption text"),placeholder:(0,Je.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))}))):(0,qe.createElement)("div",{...C},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:wt}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:$t,value:e,onError:k}))};const Ot={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform(e){const t=e[0];return(0,je.createBlock)("core/audio",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:a,wma:r}})=>e||t||n||o||a||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var Ut=Ot;const jt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:qt}=jt,Wt={icon:wt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ut,deprecated:Ct,edit:Gt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return r&&(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n,className:(0,Ye.__experimentalGetElementClassName)("caption")}))}},Zt=()=>Qe({name:qt,metadata:jt,settings:Wt});var Qt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),Kt=window.wp.privateApis;const{lock:Jt,unlock:Yt}=(0,Kt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-library"),{cleanEmptyObject:Xt}=Yt(Ye.privateApis);function en(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:Xt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const tn=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};const nn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:a,...r}=e;return{...r,style:t}},on=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return nn(o)},an={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"}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))}},ln={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},sn=[rn,ln,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return"number"==typeof e?.border?.radius},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=r?.border?.radius,m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=it()("wp-block-button__link",m.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:u||void 0,...m.style},g=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:g})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:a,title:r,url:l}=e,i=it()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:a,target:n,rel:o})},migrate:tn},{supports:{align:!0,alignWide:!1},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,Tt.compose)(tn,nn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:it()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:a,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:u,title:m,url:p}=e,d=(0,Ye.getColorClassName)("color",u),g=!r&&(0,Ye.getColorClassName)("background-color",t),h=(0,Ye.__experimentalGetGradientClass)(i),_=it()("wp-block-button__link",{"has-text-color":u||a,[d]:d,"has-background":t||o||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),b={background:r||void 0,backgroundColor:g||r||i?void 0:o,color:d?void 0:a,borderRadius:n?n+"px":void 0};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:_,href:p,title:m,style:b,value:c,target:l,rel:s}))}},{attributes:{...an,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(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),tn(nn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:a,rel:r,text:l,textColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("color",i),m=(0,Ye.getColorClassName)("background-color",t),p=it()("wp-block-button__link",{"has-text-color":i||o,[u]:u,"has-background":t||n,[m]:m}),d={backgroundColor:m?void 0:n,color:u?void 0:o};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:a,rel:r}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:on,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,Ye.getColorClassName)("color",r),c=(0,Ye.getColorClassName)("background-color",a),u=it()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":a||l,[c]:c}),m={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:m,value:n}))}},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,qe.createElement)("div",{className:`align${a}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:i,value:n}))},migrate:on},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e;return(0,qe.createElement)("div",{className:`align${a}`,style:{backgroundColor:r}},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:n}))},migrate:on}];var cn=sn,un=window.wp.keycodes;var mn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var pn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const dn="noreferrer noopener";function gn({selectedWidth:e,setAttributes:t}){return(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Width settings")},(0,qe.createElement)(Ke.ButtonGroup,{"aria-label":(0,Je.__)("Button width")},[25,50,75,100].map((n=>(0,qe.createElement)(Ke.Button,{key:n,isSmall:!0,variant:n===e?"primary":void 0,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%")))))}var hn=function(e){const{attributes:t,setAttributes:n,className:o,isSelected:a,onReplace:r,mergeBlocks:l}=e,{textAlign:i,linkTarget:s,placeholder:c,rel:u,style:m,text:p,url:d,width:g}=t,[h,_]=(0,qe.useState)(null),b=(0,Ye.__experimentalUseBorderProps)(t),f=(0,Ye.__experimentalUseColorProps)(t),v=(0,Ye.__experimentalGetSpacingClassesAndStyles)(t),y=(0,qe.useRef)(),k=(0,qe.useRef)(),x=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([_,y]),onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")?B(e):un.isKeyboardEvent.primaryShift(e,"k")&&(T(),k.current?.focus())}}),[w,C]=(0,qe.useState)(!1),E=!!d,S="_blank"===s;function B(e){e.preventDefault(),C(!0)}function T(){n({url:void 0,linkTarget:void 0,rel:void 0}),C(!1)}return(0,qe.useEffect)((()=>{a||C(!1)}),[a]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...x,className:it()(x.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":x.style.fontSize})},(0,qe.createElement)(Ye.RichText,{ref:k,"aria-label":(0,Je.__)("Button text"),placeholder:c||(0,Je.__)("Add text…"),value:p,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:it()(o,"wp-block-button__link",f.className,b.className,{[`has-text-align-${i}`]:i,"no-border-radius":0===m?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),style:{...b.style,...f.style,...v.style},onSplit:e=>(0,je.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),!E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:B}),E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:pn,title:(0,Je.__)("Unlink"),shortcut:un.displayShortcut.primaryShift("k"),onClick:T,isActive:!0})),a&&(w||E)&&(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:()=>{C(!1),k.current?.focus()},anchor:h,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:d,opensInNewTab:S},onChange:({url:e="",opensInNewTab:t})=>{n({url:(0,st.prependHTTP)(e)}),S!==t&&function(e){const t=e?"_blank":void 0;let o=u;t&&!u?o=dn:t||u!==dn||(o=void 0),n({linkTarget:t,rel:o})}(t)},onRemove:()=>{T(),k.current?.focus()},forceIsEditingLink:w})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(gn,{selectedWidth:g,setAttributes:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:u||"",onChange:e=>n({rel:e})})))};const _n={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a",attribute:"title",__experimentalRole:"content"},text:{type:"string",source:"html",selector:"a",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:!0,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:bn}=_n,fn={icon:Qt,example:{attributes:{className:"is-style-fill",text:(0,Je.__)("Call to Action")}},edit:hn,save:function({attributes:e,className:t}){const{textAlign:n,fontSize:o,linkTarget:a,rel:r,style:l,text:i,title:s,url:c,width:u}=e;if(!i)return null;const m=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ye.__experimentalGetColorClassesAndStyles)(e),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=it()("wp-block-button__link",p.className,m.className,{[`has-text-align-${n}`]:n,"no-border-radius":0===l?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),h={...m.style,...p.style,...d.style},_=it()(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||l?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:_})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:g,href:c,title:s,style:h,value:i,target:a,rel:r}))},deprecated:cn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},vn=()=>Qe({name:bn,metadata:_n,settings:fn});var yn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"}));const kn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},xn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:kn,save({attributes:{contentJustification:e,orientation:t}}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:it()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.InnerBlocks.Content,null))},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return kn({...e,align:void 0,contentJustification:e.align})}}];var wn=xn,Cn=window.wp.richText;const{name:En}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},Sn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>(0,je.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),a=o?.getAttribute("href");return(0,je.createBlock)("core/button",{text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var Bn=Sn;const Tn=[bn],Nn={name:bn,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Pn=function({attributes:e,className:t}){var n;const{fontSize:o,layout:a,style:r}=e,l=(0,Ye.useBlockProps)({className:it()(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[bn]}),[]),s=(0,Ye.useInnerBlocksProps)(l,{allowedBlocks:Tn,__experimentalDefaultBlock:Nn,__experimentalDirectInsert:!0,template:[[bn,{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=a?.orientation)&&void 0!==n?n:"horizontal"});return(0,qe.createElement)("div",{...s})};const In={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Mn}=In,zn={icon:yn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,Je.__)("Find out more")}},{name:"core/button",attributes:{text:(0,Je.__)("Contact us")}}]},deprecated:wn,transforms:Bn,edit:Pn,save:function({attributes:e,className:t}){const{fontSize:n,style:o}=e,a=Ye.useBlockProps.save({className:it()(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})}},Rn=()=>Qe({name:Mn,metadata:In,settings:zn});var Hn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const Ln=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var An={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/archives")}]};const Vn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-calendar"},{name:Dn}=Vn,Fn={icon:Hn,example:{},edit:function({attributes:e}){const t=(0,Ye.useBlockProps)(),{date:n,hasPosts:o,hasPostsResolved:a}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(ct.store),o={status:"publish",per_page:1},a=t("postType","post",o),r=n("getEntityRecords",["postType","post",o]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===a?.length}}),[]);return o?(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/calendar",attributes:{...e,...Ln(n)}}))):(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Placeholder,{icon:Hn,label:(0,Je.__)("Calendar")},a?(0,Je.__)("No published posts found."):(0,qe.createElement)(Ke.Spinner,null)))},transforms:An},$n=()=>Qe({name:Dn,metadata:Vn,settings:Fn});var Gn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),On=window.wp.htmlEntities;var Un=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:qn}=jn,Wn={icon:Gn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o,showOnlyTopLevel:a,showEmpty:r},setAttributes:l,className:i}){const s=(0,Tt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};a&&(c.parent=0);const{records:u,isResolving:m}=(0,ct.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,On.decodeEntities)(e).trim():(0,Je.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:a,link:r,count:l,name:i}=e;return(0,qe.createElement)("li",{key:a,className:`cat-item cat-item-${a}`},(0,qe.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),o&&` (${l})`,n&&!!t.length&&(0,qe.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},_=(e,t)=>{const{id:a,count:r,name:l}=e,i=p(a);return[(0,qe.createElement)("option",{key:a,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),o&&` (${r})`),n&&!!i.length&&i.map((e=>_(e,t+1)))]},b=!u?.length||t||m?"div":"ul",f=it()(i,{"wp-block-categories-list":!!u?.length&&!t&&!m,"wp-block-categories-dropdown":!!u?.length&&t&&!m}),v=(0,Ye.useBlockProps)({className:f});return(0,qe.createElement)(b,{...v},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),m&&(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Categories")},(0,qe.createElement)(Ke.Spinner,null)),!m&&0===u?.length&&(0,qe.createElement)("p",null,(0,Je.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!m&&u?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.VisuallyHidden,{as:"label",htmlFor:s},(0,Je.__)("Categories")),(0,qe.createElement)("select",{id:s},(0,qe.createElement)("option",null,(0,Je.__)("Select Category")),e.map((e=>_(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},Zn=()=>Qe({name:qn,metadata:jn,settings:Wn});var Qn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));var Kn=({clientId:e})=>{const{replaceBlocks:t}=(0,ut.useDispatch)(Ye.store),n=(0,ut.useSelect)((t=>t(Ye.store).getBlock(e)),[e]);return(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>t(n.clientId,(0,je.rawHandler)({HTML:(0,je.serialize)(n)}))},(0,Je.__)("Convert to blocks"))};function Jn(e){const t=(0,ut.useSelect)((e=>e(Ye.store).getSettings().styles));return(0,qe.useEffect)((()=>{const{baseURL:n,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,qe.createElement)("textarea",{...e})}function Yn(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:a}=e,[r,l]=(0,qe.useState)(!1),i=`editor-${t}`,s=()=>n?l(!1):a([]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>l(!0)},(0,Je.__)("Edit")))),n&&(0,qe.createElement)(qe.RawHTML,null,n),(r||!n)&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.__)("Classic Editor"),onRequestClose:s,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal"},(0,qe.createElement)(Jn,{id:i,defaultValue:n}),(0,qe.createElement)(Ke.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:s},(0,Je.__)("Cancel"))),(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(i)}),l(!1)}},(0,Je.__)("Save"))))))}const{wp:Xn}=window;function eo({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:a}=(0,ut.useSelect)(Ye.store),r=(0,qe.useRef)(!1);return(0,qe.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),o=n?.getContent();o!==t&&n.setContent(t||"")}),[t]),(0,qe.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),o=t.scrollTop;return a()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==o&&(t.scrollTop=o))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,Tt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{un.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==un.BACKSPACE&&t.keyCode!==un.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(o([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===un.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;Xn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Xn.oldEditor.remove(`editor-${e}`)}}),[]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,Je.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,qe.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:no}=to,oo={icon:Qn,edit:function(e){const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).canRemoveBlock(t)),[t]),[o,a]=(0,qe.useState)(!1),r=(0,Tt.useRefEffect)((e=>{a(e.ownerDocument!==document)}),[]);return(0,qe.createElement)(qe.Fragment,null,n&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Kn,{clientId:t}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({ref:r})},o?(0,qe.createElement)(Yn,{...e}):(0,qe.createElement)(eo,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)(qe.RawHTML,null,t)}},ao=()=>Qe({name:no,metadata:to,settings:oo});var ro=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));function lo(e){return e.replace(/\[/g,"[")}function io(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var so={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,je.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/paragraph",{content:e.replace(/\n/g,"<br>")})}]};const co={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-code"},{name:uo}=co,mo={icon:ro,example:{attributes:{content:(0,Je.__)("// A “block” is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},transforms:so,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=(0,Ye.useBlockProps)();return(0,qe.createElement)("pre",{...o},(0,qe.createElement)(Ye.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:(0,Je.__)("Write code…"),"aria-label":(0,Je.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{tagName:"code",value:(t=e.content,(0,Tt.pipe)(lo,io)(t||""))}));var t}},po=()=>Qe({name:uo,metadata:co,settings:mo});var go=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));const ho=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:n+"%"};return(0,qe.createElement)("div",{className:o,style:a},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var _o=ho;var bo=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:o},setAttributes:a,clientId:r}){const l=it()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,ut.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Ye.store),o=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:o,columnsIds:t(o)}}),[r]),{updateBlockAttributes:m}=(0,ut.useDispatch)(Ye.store),p=Number.isFinite(t)?t+"%":t,d=(0,Ye.useBlockProps)({className:l,style:p?{flexBasis:p}:void 0}),g=s.length,h=s.indexOf(r)+1,_=(0,Je.sprintf)((0,Je.__)("%1$s (%2$d of %3$d)"),d["aria-label"],h,g),b=(0,Ye.useInnerBlocksProps)({...d,"aria-label":_},{templateLock:n,allowedBlocks:o,renderAppender:c?void 0:Ye.InnerBlocks.ButtonBlockAppender});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),m(u,{verticalAlignment:null})},value:e})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Column settings")},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),(0,qe.createElement)("div",{...b}))};const fo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0}},{name:vo}=fo,yo={icon:go,edit:bo,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t});let a;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}a={flexBasis:e}}const r=Ye.useBlockProps.save({className:o,style:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("div",{...l})},deprecated:_o},ko=()=>Qe({name:vo,metadata:fo,settings:yo});var xo=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function wo(e){let t,{doc:n}=wo;n||(n=document.implementation.createHTMLDocument(""),wo.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Co=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:a,customTextColor:r}=e,l=(0,Ye.getColorClassName)("background-color",n),i=(0,Ye.getColorClassName)("color",a),s=it()({"has-background":n||o,"has-text-color":a||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:o,color:i?void 0:r};return(0,qe.createElement)("div",{className:s||void 0,style:c},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==wo(e.originalContent)))},migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=wo(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,je.createBlock)("core/column",{},e))),{columns:o,...a}=e;return[{...a,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,qe.createElement)("div",{className:`has-${t}-columns`},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...o}=e;return[e={...o,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=it()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,qe.createElement)("div",{className:o},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const Eo=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function So(e,t){const{width:n=100/t}=e.attributes;return Eo(n)}function Bo(e,t,n=e.length){const o=function(e,t=e.length){return e.reduce(((e,n)=>e+So(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const o=So(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}(e,n)).map((([e,n])=>[e,Eo(t*n/o)])))}function To(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const No=["core/column"];const Po=(0,ut.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:a,setAttributes:r}=t,{updateBlockAttributes:l}=e(Ye.store),{getBlockOrder:i}=n.select(Ye.store);r({verticalAlignment:o});i(a).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,a){const{clientId:r}=t,{replaceInnerBlocks:l}=e(Ye.store),{getBlocks:i}=n.select(Ye.store);let s=i(r);const c=s.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const u=a>o;if(u&&c){const e=Eo(100/a);s=[...To(s,Bo(s,100-e)),...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column")))];else if(a<o&&(s=s.slice(0,-(o-a)),c)){s=To(s,Bo(s,100))}l(r,s)}})))((function({attributes:e,setAttributes:t,updateAlignment:n,updateColumns:o,clientId:a}){const{isStackedOnMobile:r,verticalAlignment:l,templateLock:i}=e,{count:s,canInsertColumnBlock:c,minCount:u}=(0,ut.useSelect)((e=>{const{canInsertBlockType:t,canRemoveBlock:n,getBlocks:o,getBlockCount:r}=e(Ye.store),l=o(a).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:r(a),canInsertColumnBlock:t("core/column",a),minCount:Math.max(...l)+1}}),[a]),m=it()({[`are-vertically-aligned-${l}`]:l,"is-not-stacked-on-mobile":!r}),p=(0,Ye.useBlockProps)({className:m}),d=(0,Ye.useInnerBlocksProps)(p,{allowedBlocks:No,orientation:"horizontal",renderAppender:!1,templateLock:i});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:n,value:l})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,c&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s,onChange:e=>o(s,Math.max(u,e)),min:Math.max(1,u),max:Math.max(6,s)}),s>6&&(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})}))),(0,qe.createElement)("div",{...d}))}));function Io({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:a,variations:r}=(0,ut.useSelect)((e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=e(je.store);return{blockType:o(t),defaultVariation:a(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:r,onSelect:(t=a)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var Mo=e=>{const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).getBlocks(t).length>0),[t])?Po:Io;return(0,qe.createElement)(n,{...e})};var zo=[{name:"one-column-full",title:(0,Je.__)("100"),description:(0,Je.__)("One column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,Je.__)("50 / 50"),description:(0,Je.__)("Two columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,Je.__)("33 / 66"),description:(0,Je.__)("Two columns; one-third, two-thirds split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,Je.__)("66 / 33"),description:(0,Je.__)("Two columns; two-thirds, one-third split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,Je.__)("33 / 33 / 33"),description:(0,Je.__)("Three columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,Je.__)("25 / 50 / 25"),description:(0,Je.__)("Three columns; wide center column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Ro={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:`${t}%`},[[e,{...n},o]]]));return(0,je.createBlock)("core/columns",{},(0,je.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:a,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,je.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:a,style:r,verticalAlignment:d},(0,je.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var Ho=Ro;const Lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Ao}=Lo,Vo={icon:xo,variations:zo,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Co,edit:Mo,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=it()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),a=Ye.useBlockProps.save({className:o}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})},transforms:Ho},Do=()=>Qe({name:Ao,metadata:Lo,settings:Vo});var Fo=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));var $o=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=Ye.useBlockProps.save(),{className:n}=t,o=n?.split(" ")||[],a=o?.filter((e=>"wp-block-comments"!==e)),r={...t,className:a.join(" ")};return(0,qe.createElement)(e,{...r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];function Go({attributes:{tagName:e},setAttributes:t}){const n={section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:e,onChange:e=>t({tagName:e}),help:n[e]})))}const Oo=()=>{const e=(0,Tt.useInstanceId)(Oo);return(0,qe.createElement)("div",{className:"comment-respond"},(0,qe.createElement)("h3",{className:"comment-reply-title"},(0,Je.__)("Leave a Reply")),(0,qe.createElement)("form",{noValidate:!0,className:"comment-form",inert:"true"},(0,qe.createElement)("p",null,(0,qe.createElement)("label",{htmlFor:`comment-${e}`},(0,Je.__)("Comment")),(0,qe.createElement)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8"})),(0,qe.createElement)("p",{className:"form-submit wp-block-button"},(0,qe.createElement)("input",{name:"submit",type:"submit",className:it()("wp-block-button__link",(0,Ye.__experimentalGetElementClassName)("button")),label:(0,Je.__)("Post Comment"),value:(0,Je.__)("Post Comment")}))))};var Uo=({postId:e,postType:t})=>{const[n,o]=(0,ct.useEntityProp)("postType",t,"comment_status",e),a=void 0===t||void 0===e,{defaultCommentStatus:r}=(0,ut.useSelect)((e=>e(Ye.store).getSettings().__experimentalDiscussionSettings)),l=(0,ut.useSelect)((e=>!!t&&!!e(ct.store).getPostType(t)?.supports.comments));if(!a&&"open"!==n){if("closed"===n){const e=[(0,qe.createElement)(Ke.Button,{key:"enableComments",onClick:()=>o("open"),variant:"primary"},(0,Je._x)("Enable comments","action that affects the current post"))];return(0,qe.createElement)(Ye.Warning,{actions:e},(0,Je.__)("Post Comments Form block: Comments are not enabled for this item."))}if(!l)return(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t));if("open"!==r)return(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Form block: Comments are not enabled."))}return(0,qe.createElement)(Oo,null)};function jo({postType:e,postId:t}){let[n]=(0,ct.useEntityProp)("postType",e,"title",t);n=n||(0,Je.__)("Post Title");const{avatarURL:o}=(0,ut.useSelect)((e=>e(Ye.store).getSettings().__experimentalDiscussionSettings));return(0,qe.createElement)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true"},(0,qe.createElement)("h3",null,(0,Je.sprintf)((0,Je.__)("One response to %s"),n)),(0,qe.createElement)("div",{className:"navigation"},(0,qe.createElement)("div",{className:"alignleft"},(0,qe.createElement)("a",{href:"#top"},"« ",(0,Je.__)("Older Comments"))),(0,qe.createElement)("div",{className:"alignright"},(0,qe.createElement)("a",{href:"#top"},(0,Je.__)("Newer Comments")," »"))),(0,qe.createElement)("ol",{className:"commentlist"},(0,qe.createElement)("li",{className:"comment even thread-even depth-1"},(0,qe.createElement)("article",{className:"comment-body"},(0,qe.createElement)("footer",{className:"comment-meta"},(0,qe.createElement)("div",{className:"comment-author vcard"},(0,qe.createElement)("img",{alt:(0,Je.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,qe.createElement)("b",{className:"fn"},(0,qe.createElement)("a",{href:"#top",className:"url"},(0,Je.__)("A WordPress Commenter")))," ",(0,qe.createElement)("span",{className:"says"},(0,Je.__)("says"),":")),(0,qe.createElement)("div",{className:"comment-metadata"},(0,qe.createElement)("a",{href:"#top"},(0,qe.createElement)("time",{dateTime:"2000-01-01T00:00:00+00:00"},(0,Je.__)("January 1, 2000 at 00:00 am")))," ",(0,qe.createElement)("span",{className:"edit-link"},(0,qe.createElement)("a",{className:"comment-edit-link",href:"#top"},(0,Je.__)("Edit"))))),(0,qe.createElement)("div",{className:"comment-content"},(0,qe.createElement)("p",null,(0,Je.__)("Hi, this is a comment."),(0,qe.createElement)("br",null),(0,Je.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,qe.createElement)("br",null),(0,qe.createInterpolateElement)((0,Je.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,qe.createElement)("a",{href:"https://gravatar.com/"})}))),(0,qe.createElement)("div",{className:"reply"},(0,qe.createElement)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,Je.__)("Reply to A WordPress Commenter")},(0,Je.__)("Reply")))))),(0,qe.createElement)("div",{className:"navigation"},(0,qe.createElement)("div",{className:"alignleft"},(0,qe.createElement)("a",{href:"#top"},"« ",(0,Je.__)("Older Comments"))),(0,qe.createElement)("div",{className:"alignright"},(0,qe.createElement)("a",{href:"#top"},(0,Je.__)("Newer Comments")," »"))),(0,qe.createElement)(Uo,{postId:t,postType:e}))}function qo({attributes:e,setAttributes:t,context:{postType:n,postId:o}}){const{textAlign:a}=e,r=[(0,qe.createElement)(Ke.Button,{key:"convert",onClick:()=>{t({legacy:!1})},variant:"primary"},(0,Je.__)("Switch to editable mode"))],l=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...l},(0,qe.createElement)(Ye.Warning,{actions:r},(0,Je.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")),(0,qe.createElement)(jo,{postId:o,postType:n})))}var Wo=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const Zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]},{name:Qo}=Zo,Ko={icon:Fo,edit:function(e){const{attributes:t,setAttributes:n}=e,{tagName:o,legacy:a}=t,r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:Wo});return a?(0,qe.createElement)(qo,{...e}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Go,{attributes:t,setAttributes:n}),(0,qe.createElement)(o,{...l}))},save:function({attributes:{tagName:e,legacy:t}}){const n=Ye.useBlockProps.save(),o=Ye.useInnerBlocksProps.save(n);return t?null:(0,qe.createElement)(e,{...o})},deprecated:$o},Jo=()=>Qe({name:Qo,metadata:Zo,settings:Ko});const Yo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0}}},{name:Xo}=Yo,ea={icon:rt,edit:function({attributes:e,context:{commentId:t},setAttributes:n,isSelected:o}){const{height:a,width:r}=e,[l]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",t),[i]=(0,ct.useEntityProp)("root","comment","author_name",t),s=l?Object.values(l):null,c=l?Object.keys(l):null,u=c?c[0]:24,m=c?c[c.length-1]:96,p=(0,Ye.useBlockProps)(),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*m),{avatarURL:h}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n})),_=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Avatar Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:e=>n({width:e,height:e}),min:u,max:g,initialPosition:r,value:r}))),b=(0,qe.createElement)(Ke.ResizableBox,{size:{width:r,height:a},showHandle:o,onResizeStop:(e,t,o,l)=>{n({height:parseInt(a+l.height,10),width:parseInt(r+l.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:u,maxWidth:g},(0,qe.createElement)("img",{src:s?s[s.length-1]:h,alt:`${i} ${(0,Je.__)("Avatar")}`,...p}));return(0,qe.createElement)(qe.Fragment,null,_,(0,qe.createElement)("div",{...d},b))}},ta=()=>Qe({name:Xo,metadata:Yo,settings:ea});var na=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));const oa={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var aa=[oa];const ra={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:la}=ra,ia={icon:na,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:n},context:{commentId:o},setAttributes:a}){const r=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})});let l=(0,ut.useSelect)((e=>{const{getEntityRecord:t}=e(ct.store),n=t("root","comment",o),a=n?.author_name;if(n&&!a){var r;const e=t("root","user",n.author);return null!==(r=e?.name)&&void 0!==r?r:(0,Je.__)("Anonymous")}return null!=a?a:""}),[o]);const i=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>a({textAlign:e})})),s=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to authors URL"),onChange:()=>a({isLink:!e}),checked:e}),e&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));o&&l||(l=(0,Je._x)("Comment Author","block title"));const c=e?(0,qe.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},l):l;return(0,qe.createElement)(qe.Fragment,null,s,i,(0,qe.createElement)("div",{...r},c))},deprecated:aa},sa=()=>Qe({name:la,metadata:ra,settings:ia});var ca=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const ua={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:ma}=ua,pa={icon:ca,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:n}}){const o=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),[a]=(0,ct.useEntityProp)("root","comment","content",n),r=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return n&&a?(0,qe.createElement)(qe.Fragment,null,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(qe.RawHTML,{key:"html"},a.rendered)))):(0,qe.createElement)(qe.Fragment,null,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)("p",null,(0,Je._x)("Comment Content","block title"))))}},da=()=>Qe({name:ma,metadata:ua,settings:pa});var ga=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,qe.createElement)(We.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),ha=window.wp.date;const _a={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var ba=[_a];const fa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:va}=fa,ya={icon:ga,edit:function({attributes:{format:e,isLink:t},context:{commentId:n},setAttributes:o}){const a=(0,Ye.useBlockProps)();let[r]=(0,ct.useEntityProp)("root","comment","date",n);const[l=(0,ha.getSettings)().formats.date]=(0,ct.useEntityProp)("root","site","date_format"),i=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ye.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:e=>o({format:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})));n&&r||(r=(0,Je._x)("Comment Date","block title"));let s=r instanceof Date?(0,qe.createElement)("time",{dateTime:(0,ha.dateI18n)("c",r)},(0,ha.dateI18n)(e||l,r)):(0,qe.createElement)("time",null,r);return t&&(s=(0,qe.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},s)),(0,qe.createElement)(qe.Fragment,null,i,(0,qe.createElement)("div",{...a},s))},deprecated:ba},ka=()=>Qe({name:va,metadata:fa,settings:ya});var xa=(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const wa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Ca}=wa,Ea={icon:xa,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:n}){const o=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),a=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:e=>n({textAlign:e})})),r=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})));return(0,qe.createElement)(qe.Fragment,null,a,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("Edit"))))}},Sa=()=>Qe({name:Ca,metadata:wa,settings:Ea});var Ba=(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));var Ta=function({setAttributes:e,attributes:{textAlign:t}}){const n=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),o=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return(0,qe.createElement)(qe.Fragment,null,o,(0,qe.createElement)("div",{...n},(0,qe.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("Reply"))))};const Na={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},html:!1}},{name:Pa}=Na,Ia={edit:Ta,icon:Ba},Ma=()=>Qe({name:Pa,metadata:Na,settings:Ia});var za=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Ra=window.wp.apiFetch,Ha=n.n(Ra);const La=({defaultPage:e,postId:t,perPage:n,queryArgs:o})=>{const[a,r]=(0,qe.useState)({}),l=`${t}_${n}`,i=a[l]||0;return(0,qe.useEffect)((()=>{i||"newest"!==e||Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{...o,post:t,per_page:n,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));r({...a,[l]:t<=1?1:t})}))}),[e,t,n,r]),"newest"===e?i:1},Aa=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Va({comment:e,activeCommentId:t,setActiveCommentId:n,firstCommentId:o,blocks:a}){const{children:r,...l}=(0,Ye.useInnerBlocksProps)({},{template:Aa});return(0,qe.createElement)("li",{...l},e.commentId===(t||o)?r:null,(0,qe.createElement)(Da,{blocks:a,commentId:e.commentId,setActiveCommentId:n,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,qe.createElement)(Fa,{comments:e.children,activeCommentId:t,setActiveCommentId:n,blocks:a,firstCommentId:o}):null)}const Da=(0,qe.memo)((({blocks:e,commentId:t,setActiveCommentId:n,isHidden:o})=>{const a=(0,Ye.__experimentalUseBlockPreview)({blocks:e}),r=()=>{n(t)},l={display:o?"none":void 0};return(0,qe.createElement)("div",{...a,tabIndex:0,role:"button",style:l,onClick:r,onKeyPress:r})})),Fa=({comments:e,blockProps:t,activeCommentId:n,setActiveCommentId:o,blocks:a,firstCommentId:r})=>(0,qe.createElement)("ol",{...t},e&&e.map((({commentId:e,...t},l)=>(0,qe.createElement)(Ye.BlockContextProvider,{key:t.commentId||l,value:{commentId:e<0?null:e}},(0,qe.createElement)(Va,{comment:{commentId:e,...t},activeCommentId:n,setActiveCommentId:o,blocks:a,firstCommentId:r})))));const $a={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-comment-template"},{name:Ga}=$a,Oa={icon:za,edit:function({clientId:e,context:{postId:t}}){const n=(0,Ye.useBlockProps)(),[o,a]=(0,qe.useState)(),{commentOrder:r,threadCommentsDepth:l,threadComments:i,commentsPerPage:s,pageComments:c}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:n,commentsPerPage:o,defaultCommentsPage:a}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n})),r=n?Math.min(o,100):100,l=La({defaultPage:a,postId:e,perPage:r,queryArgs:t});return(0,qe.useMemo)((()=>l?{...t,post:e,per_page:r,page:l}:null),[e,r,l])})({postId:t}),{topLevelComments:m,blocks:p}=(0,ut.useSelect)((t=>{const{getEntityRecords:n}=t(ct.store),{getBlocks:o}=t(Ye.store);return{topLevelComments:u?n("root","comment",u):null,blocks:o(e)}}),[e,u]);let d=(e=>(0,qe.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[n]=t?.children||[[]];return{commentId:e,children:n.map((e=>({commentId:e.id})))}}))),[e]))("desc"===r&&m?[...m].reverse():m);return m?(t||(d=(({perPage:e,pageComments:t,threadComments:n,threadCommentsDepth:o})=>{const a=n?Math.min(o,3):1,r=e=>e<a?[{commentId:-(e+3),children:r(e+1)}]:[],l=[{commentId:-1,children:r(1)}];return(!t||e>=2)&&a<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&a<2&&l.push({commentId:-3,children:[]}),l})({perPage:s,pageComments:c,threadComments:i,threadCommentsDepth:l})),d.length?(0,qe.createElement)(Fa,{comments:d,blockProps:n,blocks:p,activeCommentId:o,setActiveCommentId:a,firstCommentId:d[0]?.commentId}):(0,qe.createElement)("p",{...n},(0,Je.__)("No results found."))):(0,qe.createElement)("p",{...n},(0,qe.createElement)(Ke.Spinner,null))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Ua=()=>Qe({name:Ga,metadata:$a,settings:Oa});var ja=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"}));const qa={none:"",arrow:"←",chevron:"«"};const Wa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Za}=Wa,Qa={icon:ja,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const o=qa[n];return(0,qe.createElement)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},o&&(0,qe.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${n}`},o),(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Older comments page link"),placeholder:(0,Je.__)("Older Comments"),value:e,onChange:e=>t({label:e})}))}},Ka=()=>Qe({name:Za,metadata:Wa,settings:Qa});var Ja=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"}));function Ya({value:e,onChange:t}){return(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:e,onChange:t,help:(0,Je.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")}))}const Xa=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]],er=["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"];const tr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:nr}=tr,or={icon:Ja,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:n}){const o=(0,ut.useSelect)((e=>{const{getBlocks:t}=e(Ye.store),o=t(n);return o?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),a=(0,Ye.useBlockProps)(),r=(0,Ye.useInnerBlocksProps)(a,{template:Xa,allowedBlocks:er});return(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n?.pageComments}),[])?(0,qe.createElement)(qe.Fragment,null,o&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ya,{value:e,onChange:e=>{t({paginationArrow:e})}}))),(0,qe.createElement)("div",{...r})):(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings"))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},ar=()=>Qe({name:nr,metadata:tr,settings:or});var rr=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"}));const lr={none:"",arrow:"→",chevron:"»"};const ir={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:sr}=ir,cr={icon:rr,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const o=lr[n];return(0,qe.createElement)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Newer comments page link"),placeholder:(0,Je.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),o&&(0,qe.createElement)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${n}`},o))}},ur=()=>Qe({name:sr,metadata:ir,settings:cr});var mr=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"}));const pr=({content:e,tag:t="a",extraClass:n=""})=>"a"===t?(0,qe.createElement)(t,{className:`page-numbers ${n}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault()},e):(0,qe.createElement)(t,{className:`page-numbers ${n}`},e);const dr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:gr}=dr,hr={icon:mr,edit:function(){return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(pr,{content:"1"}),(0,qe.createElement)(pr,{content:"2"}),(0,qe.createElement)(pr,{content:"3",tag:"span",extraClass:"current"}),(0,qe.createElement)(pr,{content:"4"}),(0,qe.createElement)(pr,{content:"5"}),(0,qe.createElement)(pr,{content:"...",tag:"span",extraClass:"dots"}),(0,qe.createElement)(pr,{content:"8"}))}},_r=()=>Qe({name:gr,metadata:dr,settings:hr});var br=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"}));const{attributes:fr,supports:vr}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}}}};var yr=[{attributes:{...fr,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:vr,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:n,...o}=e;return o},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];const kr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}}}},{name:xr}=kr,wr={icon:br,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:n,level:o},setAttributes:a,context:{postType:r,postId:l}}){const i="h"+o,[s,c]=(0,qe.useState)(),[u]=(0,ct.useEntityProp)("postType",r,"title",l),m=void 0===l,p=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:d,threadComments:g,commentsPerPage:h,pageComments:_}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().__experimentalDiscussionSettings}));(0,qe.useEffect)((()=>{if(m){const e=g?Math.min(d,3)-1:0,t=_?h:3,n=parseInt(e)+parseInt(t);return void c(Math.min(n,3))}const e=l;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:l,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===l&&c(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{c(0)}))}),[l]);const b=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:e,onChange:e=>a({textAlign:e})}),(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:o,onChange:e=>a({level:e})})),f=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post title"),checked:t,onChange:e=>a({showPostTitle:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show comments count"),checked:n,onChange:e=>a({showCommentsCount:e})}))),v=m?(0,Je.__)("“Post Title”"):`"${u}"`;let y;return y=n&&void 0!==s?t?1===s?(0,Je.sprintf)((0,Je.__)("One response to %s"),v):(0,Je.sprintf)((0,Je._n)("%1$s response to %2$s","%1$s responses to %2$s",s),s,v):1===s?(0,Je.__)("One response"):(0,Je.sprintf)((0,Je._n)("%s response","%s responses",s),s):t?1===s?(0,Je.sprintf)((0,Je.__)("Response to %s"),v):(0,Je.sprintf)((0,Je.__)("Responses to %s"),v):1===s?(0,Je.__)("Response"):(0,Je.__)("Responses"),(0,qe.createElement)(qe.Fragment,null,b,f,(0,qe.createElement)(i,{...p},y))},deprecated:yr},Cr=()=>Qe({name:xr,metadata:kr,settings:wr});var Er=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const Sr={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Br="image",Tr="video",Nr=50,Pr={x:.5,y:.5},Ir=["image","video"];function Mr({x:e,y:t}=Pr){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function zr(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function Rr(e){return!e||"center center"===e||"center"===e}function Hr(e){return Rr(e)?"":Sr[e]}function Lr(e){return e?{backgroundImage:`url(${e})`}:{}}function Ar(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Vr(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Dr(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Fr={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"}},$r={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},Gr={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},Or={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b}=e,f=(0,Ye.getColorClassName)("background-color",p),v=(0,Ye.__experimentalGetGradientClass)(n),y=Br===t,k=Tr===t,x=!(c||m),w={minHeight:(_&&b?`${_}${b}`:_)||void 0},C={backgroundColor:f?void 0:r,background:a||void 0},E=i&&x?Mr(i):void 0,S=d?`url(${d})`:void 0,B=Mr(i),T=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),N=it()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":m}),P=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:T,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",f,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[v]:v}),style:C}),!s&&y&&d&&(x?(0,qe.createElement)("img",{className:N,alt:g,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,qe.createElement)("div",{role:"img",className:N,style:{backgroundPosition:B,backgroundImage:S}})),k&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))}},Ur={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b}=e,f=(0,Ye.getColorClassName)("background-color",p),v=(0,Ye.__experimentalGetGradientClass)(n),y=_&&b?`${_}${b}`:_,k=Br===t,x=Tr===t,w=!(c||m),C={...!k||w||s?{}:Lr(d),minHeight:y||void 0},E={backgroundColor:f?void 0:r,background:a||void 0},S=i&&w?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,B=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),T=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:B,style:C})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",f,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&T&&0!==l,"has-background-gradient":T,[v]:v}),style:E}),!s&&k&&w&&d&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),x&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))}},jr={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:g,minHeight:h,minHeightUnit:_}=e,b=(0,Ye.getColorClassName)("background-color",m),f=(0,Ye.__experimentalGetGradientClass)(n),v=_?`${h}${_}`:h,y=Br===t,k=Tr===t,x=!(s||u),w={...y&&!x?Lr(p):{},minHeight:v||void 0},C={backgroundColor:b?void 0:r,background:a||void 0},E=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=it()({"is-light":!c,"has-parallax":s,"is-repeated":u,"has-custom-content-position":!Rr(o)},Hr(o)),B=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:S,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",b,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":p&&B&&0!==l,"has-background-gradient":B,[f]:f}),style:C}),y&&x&&p&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},qr={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:g,minHeight:h,minHeightUnit:_}=e,b=(0,Ye.getColorClassName)("background-color",m),f=(0,Ye.__experimentalGetGradientClass)(n),v=_?`${h}${_}`:h,y=Br===t,k=Tr===t,x=!(s||u),w={...y&&!x?Lr(p):{},minHeight:v||void 0},C={backgroundColor:b?void 0:r,background:a||void 0},E=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=it()({"is-light":!c,"has-parallax":s,"is-repeated":u,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:S,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()(b,zr(l),"wp-block-cover__gradient-background",f,{"has-background-dim":void 0!==l,"has-background-gradient":n||a,[f]:!p&&f}),style:C}),y&&x&&p&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},Wr={attributes:{...Fr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:u,url:m,alt:p,id:d,minHeight:g,minHeightUnit:h}=e,_=(0,Ye.getColorClassName)("background-color",u),b=(0,Ye.__experimentalGetGradientClass)(n),f=h?`${g}${h}`:g,v=Br===t,y=Tr===t,k=!(s||c),x={...v&&!k?Lr(m):{},backgroundColor:_?void 0:r,background:a&&!m?a:void 0,minHeight:f||void 0},w=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,C=it()(Ar(l),_,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||a,[b]:!m&&b,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:C,style:x})},m&&(n||a)&&0!==l&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",b),style:a?{background:a}:void 0}),v&&k&&m&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",d?`wp-image-${d}`:null),alt:p,src:m,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&m&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Zr={attributes:{...Fr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:u,url:m,minHeight:p,minHeightUnit:d}=e,g=(0,Ye.getColorClassName)("background-color",u),h=(0,Ye.__experimentalGetGradientClass)(n),_=d?`${p}${d}`:p,b=Br===t,f=Tr===t,v=b?Lr(m):{},y={};let k;g||(v.backgroundColor=r),a&&!m&&(v.background=a),v.minHeight=_||void 0,i&&(k=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,b&&!s&&(v.backgroundPosition=k),f&&(y.objectPosition=k));const x=it()(Ar(l),g,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||a,[h]:!m&&h,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:x,style:v})},m&&(n||a)&&0!==l&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",h),style:a?{background:a}:void 0}),f&&m&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:y}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Qr={attributes:{...Fr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:a,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:u}=e,m=(0,Ye.getColorClassName)("background-color",s),p=(0,Ye.__experimentalGetGradientClass)(n),d=t===Br?Lr(c):{};m||(d.backgroundColor=a),l&&!i&&(d.backgroundPosition=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`),o&&!c&&(d.background=o),d.minHeight=u||void 0;const g=it()(Ar(r),m,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":o,[p]:!c&&p});return(0,qe.createElement)("div",{className:g,style:d},c&&(n||o)&&0!==r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",p),style:o?{background:o}:void 0}),Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Kr={attributes:{...Fr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:a,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:u}=e,m=(0,Ye.getColorClassName)("background-color",s),p=(0,Ye.__experimentalGetGradientClass)(n),d=t===Br?Lr(c):{};m||(d.backgroundColor=a),l&&!i&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`),o&&!c&&(d.background=o),d.minHeight=u||void 0;const g=it()(Ar(r),m,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":o,[p]:!c&&p});return(0,qe.createElement)("div",{className:g,style:d},c&&(n||o)&&0!==r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",p),style:o?{background:o}:void 0}),Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Jr={attributes:{...Fr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:o,dimRatio:a,focalPoint:r,hasParallax:l,overlayColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("background-color",i),m=t===Br?Lr(c):{};u||(m.backgroundColor=o),r&&!l&&(m.backgroundPosition=`${100*r.x}% ${100*r.y}%`);const p=it()(Ar(a),u,{"has-background-dim":0!==a,"has-parallax":l,[`has-${n}-content`]:"center"!==n});return(0,qe.createElement)("div",{className:p,style:m},Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!Ye.RichText.isEmpty(s)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,...a}=t;return[a,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}},Yr={attributes:{...Fr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:a,align:r,contentAlign:l,overlayColor:i,customOverlayColor:s}=e,c=(0,Ye.getColorClassName)("background-color",i),u=Lr(t);c||(u.backgroundColor=s);const m=it()("wp-block-cover-image",Ar(a),c,{"has-background-dim":0!==a,"has-parallax":o,[`has-${l}-content`]:"center"!==l},r?`align${r}`:null);return(0,qe.createElement)("div",{className:m,style:u},!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,align:a,...r}=t;return[r,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}},Xr={attributes:{...Fr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:a,align:r}=e,l=Lr(t),i=it()("wp-block-cover-image",Ar(a),{"has-background-dim":0!==a,"has-parallax":o},r?`align${r}`:null);return(0,qe.createElement)("section",{className:i,style:l},(0,qe.createElement)(Ye.RichText.Content,{tagName:"h2",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,align:a,...r}=t;return[r,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}};var el=[Or,Ur,jr,qr,Wr,Zr,Qr,Kr,Jr,Yr,Xr],tl={grad:.9,turn:360,rad:360/(2*Math.PI)},nl=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ol=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},al=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},rl=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ll=function(e){return{r:al(e.r,0,255),g:al(e.g,0,255),b:al(e.b,0,255),a:al(e.a)}},il=function(e){return{r:ol(e.r),g:ol(e.g),b:ol(e.b),a:ol(e.a,3)}},sl=/^#([0-9a-f]{3,8})$/i,cl=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ul=function(e){var t=e.r,n=e.g,o=e.b,a=e.a,r=Math.max(t,n,o),l=r-Math.min(t,n,o),i=l?r===t?(n-o)/l:r===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:r?l/r*100:0,v:r/255*100,a:a}},ml=function(e){var t=e.h,n=e.s,o=e.v,a=e.a;t=t/360*6,n/=100,o/=100;var r=Math.floor(t),l=o*(1-n),i=o*(1-(t-r)*n),s=o*(1-(1-t+r)*n),c=r%6;return{r:255*[o,i,l,l,s,o][c],g:255*[s,o,o,i,l,l][c],b:255*[l,l,s,o,o,i][c],a:a}},pl=function(e){return{h:rl(e.h),s:al(e.s,0,100),l:al(e.l,0,100),a:al(e.a)}},dl=function(e){return{h:ol(e.h),s:ol(e.s),l:ol(e.l),a:ol(e.a,3)}},gl=function(e){return ml((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},hl=function(e){return{h:(t=ul(e)).h,s:(a=(200-(n=t.s))*(o=t.v)/100)>0&&a<200?n*o/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,o,a},_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yl={string:[[function(e){var t=sl.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ol(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?ol(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=fl.exec(e)||vl.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ll({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=_l.exec(e)||bl.exec(e);if(!t)return null;var n,o,a=pl({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(tl[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return gl(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,a=e.a,r=void 0===a?1:a;return nl(t)&&nl(n)&&nl(o)?ll({r:Number(t),g:Number(n),b:Number(o),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,a=e.a,r=void 0===a?1:a;if(!nl(t)||!nl(n)||!nl(o))return null;var l=pl({h:Number(t),s:Number(n),l:Number(o),a:Number(r)});return gl(l)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,a=e.a,r=void 0===a?1:a;if(!nl(t)||!nl(n)||!nl(o))return null;var l=function(e){return{h:rl(e.h),s:al(e.s,0,100),v:al(e.v,0,100),a:al(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(r)});return ml(l)},"hsv"]]},kl=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},xl=function(e){return"string"==typeof e?kl(e.trim(),yl.string):"object"==typeof e&&null!==e?kl(e,yl.object):[null,void 0]},wl=function(e,t){var n=hl(e);return{h:n.h,s:al(n.s+100*t,0,100),l:n.l,a:n.a}},Cl=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},El=function(e,t){var n=hl(e);return{h:n.h,s:n.s,l:al(n.l+100*t,0,100),a:n.a}},Sl=function(){function e(e){this.parsed=xl(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return ol(Cl(this.rgba),2)},e.prototype.isDark=function(){return Cl(this.rgba)<.5},e.prototype.isLight=function(){return Cl(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=il(this.rgba)).r,n=e.g,o=e.b,r=(a=e.a)<1?cl(ol(255*a)):"","#"+cl(t)+cl(n)+cl(o)+r;var e,t,n,o,a,r},e.prototype.toRgb=function(){return il(this.rgba)},e.prototype.toRgbString=function(){return t=(e=il(this.rgba)).r,n=e.g,o=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+o+", "+a+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,a},e.prototype.toHsl=function(){return dl(hl(this.rgba))},e.prototype.toHslString=function(){return t=(e=dl(hl(this.rgba))).h,n=e.s,o=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+a+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,a},e.prototype.toHsv=function(){return e=ul(this.rgba),{h:ol(e.h),s:ol(e.s),v:ol(e.v),a:ol(e.a,3)};var e},e.prototype.invert=function(){return Bl({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Bl(wl(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Bl(wl(this.rgba,-e))},e.prototype.grayscale=function(){return Bl(wl(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Bl(El(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Bl(El(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Bl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ol(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=hl(this.rgba);return"number"==typeof e?Bl({h:e,s:t.s,l:t.l,a:t.a}):ol(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Bl(e).toHex()},e}(),Bl=function(e){return e instanceof Sl?e:new Sl(e)},Tl=[];
|
||
/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
|
||
function Nl(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Pl(e){return"#"+e.map(Nl).join("")}function Il(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function Ml(e,t,n){for(var o=0;o<n.length;o++)if(zl(e,t,n[o]))return!0;return!1}function zl(e,t,n){switch(n.length){case 3:if(function(e,t,n){if(255!==e[t+3])return!0;if(e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2])return!0;return!1}(e,t,n))return!0;break;case 4:if(function(e,t,n){if(e[t+3]&&n[3])return e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2]&&e[t+3]===n[3];return e[t+3]===n[3]}(e,t,n))return!0;break;case 5:if(function(e,t,n){var o=n[0],a=n[1],r=n[2],l=n[3],i=n[4],s=e[t+3],c=Rl(s,l,i);if(!l)return c;if(!s&&c)return!0;if(Rl(e[t],o,i)&&Rl(e[t+1],a,i)&&Rl(e[t+2],r,i)&&c)return!0;return!1}(e,t,n))return!0;break;default:return!1}}function Rl(e,t,n){return e>=t-n&&e<=t+n}function Hl(e,t,n){for(var o={},a=n.ignoredColor,r=n.step,l=[0,0,0,0,0],i=0;i<t;i+=r){var s=e[i],c=e[i+1],u=e[i+2],m=e[i+3];if(!a||!Ml(e,i,a)){var p=Math.round(s/24)+","+Math.round(c/24)+","+Math.round(u/24);o[p]?o[p]=[o[p][0]+s*m,o[p][1]+c*m,o[p][2]+u*m,o[p][3]+m,o[p][4]+1]:o[p]=[s*m,c*m,u*m,m,1],l[4]<o[p][4]&&(l=o[p])}}var d=l[0],g=l[1],h=l[2],_=l[3],b=l[4];return _?[Math.round(d/_),Math.round(g/_),Math.round(h/_),Math.round(_/b)]:n.defaultColor}function Ll(e,t,n){for(var o=0,a=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,u=0;u<t;u+=c){var m=e[u+3],p=e[u]*m,d=e[u+1]*m,g=e[u+2]*m;s&&Ml(e,u,s)||(o+=p,a+=d,r+=g,l+=m,i++)}return l?[Math.round(o/l),Math.round(a/l),Math.round(r/l),Math.round(l/i)]:n.defaultColor}function Al(e,t,n){for(var o=0,a=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,u=0;u<t;u+=c){var m=e[u],p=e[u+1],d=e[u+2],g=e[u+3];s&&Ml(e,u,s)||(o+=m*m*g,a+=p*p*g,r+=d*d*g,l+=g,i++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(r/l)),Math.round(l/i)]:n.defaultColor}function Vl(e){return Dl(e,"defaultColor",[0,0,0,0])}function Dl(e,t,n){return void 0===e[t]?n:e[t]}function Fl(e){if(Gl(e)){var t=e.naturalWidth,n=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=n=100),{width:t,height:n}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function $l(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return Ol&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function Gl(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var Ol="undefined"!=typeof OffscreenCanvas;var Ul="undefined"==typeof window;function jl(e){return Error("FastAverageColor: "+e)}function ql(e,t){t||console.error(e)}var Wl=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(jl("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(jl("resource as string is not supported in this environment"));var n=new Image;return n.crossOrigin=t&&t.crossOrigin||"",n.src=e,this.bindImageEvents(n,t)}if(Gl(e)&&!e.complete)return this.bindImageEvents(e,t);var o=this.getColor(e,t);return o.error?Promise.reject(o.error):Promise.resolve(o)},e.prototype.getColor=function(e,t){var n=Vl(t=t||{});if(!e)return ql(r=jl("call .getColor(null) without resource"),t.silent),this.prepareResult(n,r);var o=function(e,t){var n,o=Dl(t,"left",0),a=Dl(t,"top",0),r=Dl(t,"width",e.width),l=Dl(t,"height",e.height),i=r,s=l;return"precision"===t.mode||(r>l?(n=r/l,i=100,s=Math.round(i/n)):(n=l/r,s=100,i=Math.round(s/n)),(i>r||s>l||i<10||s<10)&&(i=r,s=l)),{srcLeft:o,srcTop:a,srcWidth:r,srcHeight:l,destWidth:i,destHeight:s}}(Fl(e),t);if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return ql(r=jl('incorrect sizes for resource "'.concat($l(e),'"')),t.silent),this.prepareResult(n,r);if(!this.canvas&&(this.canvas=Ul?Ol?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return ql(r=jl("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(n,r);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return ql(r=jl("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(n);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=o.destWidth,this.canvas.height=o.destHeight;try{this.ctx.clearRect(0,0,o.destWidth,o.destHeight),this.ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var a=this.ctx.getImageData(0,0,o.destWidth,o.destHeight).data;return this.prepareResult(this.getColorFromArray4(a,t))}catch(o){var r;return ql(r=jl("security error (CORS) for resource ".concat($l(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(o),this.prepareResult(n,r)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var n=e.length,o=Vl(t);if(n<4)return o;var a,r=n-n%4,l=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":a=Ll;break;case"sqrt":a=Al;break;case"dominant":a=Hl;break;default:throw jl("".concat(t.algorithm," is unknown algorithm"))}return a(e,r,{defaultColor:o,ignoredColor:Il(t.ignoredColor),step:l})},e.prototype.prepareResult=function(e,t){var n,o=e.slice(0,3),a=[e[0],e[1],e[2],e[3]/255],r=(299*(n=e)[0]+587*n[1]+114*n[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+o.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:Pl(o),hexa:Pl(e),isDark:r,isLight:!r,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var n=this;return new Promise((function(o,a){var r=function(){s();var r=n.getColor(e,t);r.error?a(r.error):o(r)},l=function(){s(),a(jl('Error loading image "'.concat(e.src,'".')))},i=function(){s(),a(jl('Image "'.concat(e.src,'" loading aborted')))},s=function(){e.removeEventListener("load",r),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",r),e.addEventListener("error",l),e.addEventListener("abort",i)}))},e}(),Zl=window.wp.hooks;function Ql(){return Ql.fastAverageColor||(Ql.fastAverageColor=new Wl),Ql.fastAverageColor}function Kl({onChange:e,onUnitChange:t,unit:n="px",value:o=""}){const a=`block-cover-height-input-${(0,Tt.useInstanceId)(Ke.__experimentalUnitControl)}`,r="px"===n,l=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),i=(0,qe.useMemo)((()=>{const[e]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(o);return[e,n].join("")}),[n,o]),s=r?Nr:0;return(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Minimum height of cover"),id:a,isResetValueOnUnitChange:!0,min:s,onChange:t=>{const n=""!==t?parseFloat(t):void 0;isNaN(n)&&void 0!==n||e(n)},onUnitChange:t,__unstableInputWidth:"80px",units:l,value:i})}function Jl({attributes:e,setAttributes:t,clientId:n,setOverlayColor:o,coverRef:a,currentSettings:r}){const{useFeaturedImage:l,dimRatio:i,focalPoint:s,hasParallax:c,isRepeated:u,minHeight:m,minHeightUnit:p,alt:d,tagName:g}=e,{isVideoBackground:h,isImageBackground:_,mediaElement:b,url:f,isImgElement:v,overlayColor:y}=r,{gradientValue:k,setGradient:x}=(0,Ye.__experimentalUseGradient)(),w=h||_&&(!c||u),C=e=>{const[t,n]=b.current?[b.current.style,"objectPosition"]:[a.current.style,"backgroundPosition"];t[n]=Mr(e)},E=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),S={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,!!f&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media settings")},_&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Fixed background"),checked:c,onChange:()=>{t({hasParallax:!c,...c?{}:{focalPoint:void 0}})}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Repeated background"),checked:u,onChange:()=>{t({isRepeated:!u})}})),w&&(0,qe.createElement)(Ke.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Focal point picker"),url:f,value:s,onDragStart:C,onDrag:C,onChange:e=>t({focalPoint:e})}),!l&&f&&_&&v&&(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Alternative text"),value:d,onChange:e=>t({alt:e}),help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative."))}),(0,qe.createElement)(Ke.PanelRow,null,(0,qe.createElement)(Ke.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>t({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:!1})},(0,Je.__)("Clear Media"))))),E.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:y.color,gradientValue:k,label:(0,Je.__)("Overlay"),onColorChange:o,onGradientChange:x,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:n,...E}),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>void 0!==i&&i!==(f?50:100),label:(0,Je.__)("Overlay opacity"),onDeselect:()=>t({dimRatio:f?50:100}),resetAllFilter:()=>({dimRatio:f?50:100}),isShownByDefault:!0,panelId:n},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Overlay opacity"),value:i,onChange:e=>t({dimRatio:e}),min:0,max:100,step:10,required:!0}))),(0,qe.createElement)(Ye.InspectorControls,{group:"dimensions"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Je.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:n},(0,qe.createElement)(Kl,{value:m,unit:p,onChange:e=>t({minHeight:e}),onUnitChange:e=>t({minHeightUnit:e})}))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:g,onChange:e=>t({tagName:e}),help:S[g]})))}function Yl({attributes:e,setAttributes:t,onSelectMedia:n,currentSettings:o,toggleUseFeaturedImage:a}){const{contentPosition:r,id:l,useFeaturedImage:i,minHeight:s,minHeightUnit:c}=e,{hasInnerBlocks:u,url:m}=o,[p,d]=(0,qe.useState)(s),[g,h]=(0,qe.useState)(c),_="vh"===c&&100===s;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.__experimentalBlockAlignmentMatrixControl,{label:(0,Je.__)("Change content position"),value:r,onChange:e=>t({contentPosition:e}),isDisabled:!u}),(0,qe.createElement)(Ye.__experimentalBlockFullHeightAligmentControl,{isActive:_,onToggle:()=>_?t("vh"===g&&100===p?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:p,minHeightUnit:g}):(d(s),h(c),t({minHeight:100,minHeightUnit:"vh"})),isDisabled:!u})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Ir,accept:"image/*,video/*",onSelect:n,onToggleFeaturedImage:a,useFeaturedImage:i,name:m?(0,Je.__)("Replace"):(0,Je.__)("Add Media")})))}function Xl({disableMediaButtons:e=!1,children:t,onSelectMedia:n,onError:o,style:a,toggleUseFeaturedImage:r}){return(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Er}),labels:{title:(0,Je.__)("Cover"),instructions:(0,Je.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:n,accept:"image/*,video/*",allowedTypes:Ir,disableMediaButtons:e,onToggleFeaturedImage:r,onError:o,style:a},t)}const ei={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:ti}=Yt(Ye.privateApis);function ni({className:e,height:t,minHeight:n,onResize:o,onResizeStart:a,onResizeStop:r,showHandle:l,size:i,width:s,...c}){const[u,m]=(0,qe.useState)(!1),p=(0,qe.useMemo)((()=>({height:t,minHeight:n,width:s})),[n,t,s]),d={className:it()(e,{"is-resizing":u}),enable:ei,onResizeStart:(e,t,n)=>{a(n.clientHeight),o(n.clientHeight)},onResize:(e,t,n)=>{o(n.clientHeight),u||m(!0)},onResizeStop:(e,t,n)=>{r(n.clientHeight),m(!1)},showHandle:l,size:i,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,qe.createElement)(ti,{className:"block-library-cover__resizable-box-popover",__unstableRefreshSize:p,resizableBoxProps:d,...c})}!function(e){e.forEach((function(e){Tl.indexOf(e)<0&&(e(Sl,yl),Tl.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var a in n)o[n[a]]=a;var r={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,i=o[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!r.length)for(var m in n)r[m]=new e(n[m]).toRgb();for(var p in n){var d=(a=s,l=r[p],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));d<c&&(c=d,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),a="transparent"===o?"#0000":n[o];return a?new e(a).toRgb():null},"name"])}]);var oi=(0,Tt.compose)([(0,Ye.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:n,overlayColor:o,setAttributes:a,setOverlayColor:r,toggleSelection:l,context:{postId:i,postType:s}}){const{contentPosition:c,id:u,useFeaturedImage:m,dimRatio:p,focalPoint:d,hasParallax:g,isDark:h,isRepeated:_,minHeight:b,minHeightUnit:f,alt:v,allowedBlocks:y,templateLock:k,tagName:x="div"}=e,[w]=(0,ct.useEntityProp)("postType",s,"featured_media",i),C=(0,ut.useSelect)((e=>w&&e(ct.store).getMedia(w,{context:"view"})),[w]),E=C?.source_url,S=m?E:e.url?.replaceAll("&","&"),B=m?Br:e.backgroundType,{__unstableMarkNextChangeAsNotPersistent:T}=(0,ut.useDispatch)(Ye.store),{createErrorNotice:N}=(0,ut.useDispatch)(Bt.store),{gradientClass:P,gradientValue:I}=(0,Ye.__experimentalUseGradient)(),M=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let o;if((0,Et.isBlobURL)(n.url)&&(n.type=(0,Et.getBlobTypeByURL)(n.url)),n.media_type)o=n.media_type===Br?Br:Tr;else{if(n.type!==Br&&n.type!==Tr)return;o=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:n?.alt,backgroundType:o,focalPoint:void 0,...o===Tr?{hasParallax:void 0}:{}})}}(a,p),z=((e,t)=>!e&&(0,Et.isBlobURL)(t))(u,S),R=e=>{N(e,{type:"snackbar"})},H=function(e,t=50,n){const[o,a]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{if(e&&t<=50){const t=(0,Zl.applyFilters)("media.crossOrigin",void 0,e);Ql().getColorAsync(e,{defaultColor:[255,255,255,255],silent:!0,crossOrigin:t}).then((e=>a(e.isDark)))}}),[e,e&&t<=50,a]),(0,qe.useEffect)((()=>{if(t>50||!e){if(!n)return void a(!0);a(Bl(n).isDark())}}),[n,t>50||!e,a]),(0,qe.useEffect)((()=>{e||n||a(!1)}),[!e&&!n,a]),o}(S,p,o.color);(0,qe.useEffect)((()=>{T(),a({isDark:H})}),[H]);const L=Br===B,A=Tr===B,[V,{height:D,width:F}]=(0,Tt.useResizeObserver)(),$=(0,qe.useMemo)((()=>({height:"px"===f?b:"auto",width:"auto"})),[b,f]),G=b&&f?`${b}${f}`:b,O=!(g||_),U={minHeight:G||void 0},j=S?`url(${S})`:void 0,q=Mr(d),W={backgroundColor:o.color},Z={objectPosition:d&&O?Mr(d):void 0},Q=!!(S||o.color||I),K=(0,ut.useSelect)((e=>e(Ye.store).getBlock(t).innerBlocks.length>0),[t]),J=(0,qe.useRef)(),Y=(0,Ye.useBlockProps)({ref:J}),X=function(e){return[["core/paragraph",{align:"center",placeholder:(0,Je.__)("Write title…"),...e}]]}({fontSize:!!(0,Ye.useSetting)("typography.fontSizes")?.length?"large":void 0}),ee=(0,Ye.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:K?void 0:X,templateInsertUpdatesSelection:!0,allowedBlocks:y,templateLock:k}),te=(0,qe.useRef)(),ne={isVideoBackground:A,isImageBackground:L,mediaElement:te,hasInnerBlocks:K,url:S,isImgElement:O,overlayColor:o},oe=()=>{a({id:void 0,url:void 0,useFeaturedImage:!m,dimRatio:100===p?50:p,backgroundType:m?Br:void 0})},ae=(0,qe.createElement)(Yl,{attributes:e,setAttributes:a,onSelectMedia:M,currentSettings:ne,toggleUseFeaturedImage:oe}),re=(0,qe.createElement)(Jl,{attributes:e,setAttributes:a,clientId:t,setOverlayColor:r,coverRef:J,currentSettings:ne,toggleUseFeaturedImage:oe}),le={className:"block-library-cover__resize-container",clientId:t,height:D,minHeight:G,onResizeStart:()=>{a({minHeightUnit:"px"}),l(!1)},onResize:e=>{a({minHeight:e})},onResizeStop:e=>{l(!0),a({minHeight:e})},showHandle:!0,size:$,width:F};if(!m&&!K&&!Q)return(0,qe.createElement)(qe.Fragment,null,ae,re,n&&(0,qe.createElement)(ni,{...le}),(0,qe.createElement)(x,{...Y,className:it()("is-placeholder",Y.className),style:{...Y.style,minHeight:G||void 0}},V,(0,qe.createElement)(Xl,{onSelectMedia:M,onError:R,toggleUseFeaturedImage:oe},(0,qe.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},(0,qe.createElement)(Ye.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:r,clearable:!1})))));const ie=it()({"is-dark-theme":h,"is-light":!h,"is-transient":z,"has-parallax":g,"is-repeated":_,"has-custom-content-position":!Rr(c)},Hr(c));return(0,qe.createElement)(qe.Fragment,null,ae,re,(0,qe.createElement)(x,{...Y,className:it()(ie,Y.className),style:{...U,...Y.style},"data-url":S},V,(!m||S)&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",zr(p),{[o.class]:o.class,"has-background-dim":void 0!==p,"wp-block-cover__gradient-background":S&&I&&0!==p,"has-background-gradient":I,[P]:P}),style:{backgroundImage:I,...W}}),!S&&m&&(0,qe.createElement)(Ke.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),S&&L&&(O?(0,qe.createElement)("img",{ref:te,className:"wp-block-cover__image-background",alt:v,src:S,style:Z}):(0,qe.createElement)("div",{ref:te,role:"img",className:it()(ie,"wp-block-cover__image-background"),style:{backgroundImage:j,backgroundPosition:q}})),S&&A&&(0,qe.createElement)("video",{ref:te,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:S,style:Z}),z&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(Xl,{disableMediaButtons:!0,onSelectMedia:M,onError:R,toggleUseFeaturedImage:oe}),(0,qe.createElement)("div",{...ee})),n&&(0,qe.createElement)(ni,{...le}))}));const{cleanEmptyObject:ai}=Yt(Ye.privateApis),ri={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:n,align:o,id:a,anchor:r,style:l})=>(0,je.createBlock)("core/cover",{dimRatio:50,url:t,alt:n,align:o,id:a,anchor:r,style:{color:{duotone:l?.color?.duotone}}},[(0,je.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:o,anchor:a})=>(0,je.createBlock)("core/cover",{dimRatio:50,url:t,align:n,id:o,backgroundType:Tr,anchor:a},[(0,je.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:n,anchor:o,backgroundColor:a,gradient:r,style:l}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,je.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const i={align:n,anchor:o,dimRatio:a||r||l?.color?.background||l?.color?.gradient?void 0:50,overlayColor:a,customOverlayColor:l?.color?.background,gradient:r,customGradient:l?.color?.gradient},s={...e,backgroundColor:void 0,gradient:void 0,style:ai({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,je.createBlock)("core/cover",i,[(0,je.createBlock)("core/group",s,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:a,customGradient:r})=>t?e===Br:!(n||o||a||r),transform:({title:e,url:t,alt:n,align:o,id:a,anchor:r,style:l})=>(0,je.createBlock)("core/image",{caption:e,url:t,alt:n,align:o,id:a,anchor:r,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:a,customGradient:r})=>t?e===Tr:!(n||o||a||r),transform:({title:e,url:t,align:n,id:o,anchor:a})=>(0,je.createBlock)("core/video",{caption:e,src:t,id:o,align:n,anchor:a})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const n={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:ai({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=ai(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,je.createBlock)("core/group",e,t[0]?.innerBlocks):(0,je.createBlock)("core/group",{...n,...e,style:ai({...e?.style,color:n?.style?.color||e?.style?.color?{...n?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,je.createBlock)("core/group",{...e,...n},t)}}]};var li=ri;var ii=[{name:"cover",title:(0,Je.__)("Cover"),description:(0,Je.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Er}];const si={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!0,background:!1,__experimentalSkipSerialization:["gradients"]},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:ci}=si,ui={icon:Er,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("<strong>Snow Patrol</strong>"),align:"center",style:{typography:{fontSize:48},color:{text:"white"}}}}]},transforms:li,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b,tagName:f}=e,v=(0,Ye.getColorClassName)("background-color",p),y=(0,Ye.__experimentalGetGradientClass)(n),k=Br===t,x=Tr===t,w=!(c||m),C={minHeight:(_&&b?`${_}${b}`:_)||void 0},E={backgroundColor:v?void 0:r,background:a||void 0},S=i&&w?Mr(i):void 0,B=d?`url(${d})`:void 0,T=Mr(i),N=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),P=it()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":m}),I=n||a;return(0,qe.createElement)(f,{...Ye.useBlockProps.save({className:N,style:C})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",v,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&I&&0!==l,"has-background-gradient":I,[y]:y}),style:E}),!s&&k&&d&&(w?(0,qe.createElement)("img",{className:P,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,qe.createElement)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),x&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},edit:oi,deprecated:el,variations:ii},mi=()=>Qe({name:ci,metadata:si,settings:ui});var pi=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"}));const di=[["core/paragraph",{placeholder:(0,Je.__)("Type / to add a hidden block")}]];var gi=function({attributes:e,setAttributes:t,clientId:n}){const{showContent:o,summary:a}=e,r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:di,__experimentalCaptureToolbars:!0}),i=(0,ut.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:o}=e(Ye.store);return o(n,!0)||t(n)}),[n]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open by default"),checked:o,onChange:()=>t({showContent:!o})}))),(0,qe.createElement)("details",{...l,open:i||o},(0,qe.createElement)("summary",{onClick:e=>e.preventDefault()},(0,qe.createElement)(Ye.RichText,{"aria-label":(0,Je.__)("Write summary"),placeholder:(0,Je.__)("Write summary…"),allowedFormats:[],withoutInteractiveFormatting:!0,value:a,onChange:e=>t({summary:e}),multiline:!1})),l.children))};const hi={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["disclosure","summary","hide"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"string"}},supports:{align:["wide","full"],color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-details-editor",style:"wp-block-details"},{name:_i}=hi,bi={icon:pi,example:{attributes:{summary:"La Mancha",showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},save:function({attributes:e}){const{showContent:t}=e,n=e.summary?e.summary:"Details",o=Ye.useBlockProps.save();return(0,qe.createElement)("details",{...o,open:t},(0,qe.createElement)("summary",null,(0,qe.createElement)(Ye.RichText.Content,{value:n})),(0,qe.createElement)(Ye.InnerBlocks.Content,null))},edit:gi},fi=()=>Qe({name:_i,metadata:hi,settings:bi});var vi=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));function yi(e){return e?(0,Je.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Je.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ki=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:r})=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,t&&(0,qe.createElement)(Ke.ToolbarButton,{className:"components-toolbar__control",label:(0,Je.__)("Edit URL"),icon:vi,onClick:r}))),n&&e&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media settings"),className:"blocks-responsive"},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resize for smaller devices"),checked:o,help:yi,onChange:a}))));const xi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),wi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Ci=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Ei=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Si={foreground:"#1da1f2",src:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.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"})))},Bi={foreground:"#ff0000",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.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"}))},Ti={foreground:"#3b5998",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.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"}))},Ni=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.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"}))),Pi={foreground:"#0073AA",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.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"})))},Ii={foreground:"#1db954",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.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"}))},Mi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.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"})),zi={foreground:"#1ab7ea",src:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.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"})))},Ri=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})),Hi={foreground:"#35465c",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Li=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.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"}),(0,qe.createElement)(Ke.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"}),(0,qe.createElement)(Ke.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"})),Ai=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,qe.createElement)(Ke.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,qe.createElement)(Ke.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Vi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Di=(0,qe.createElement)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(Ke.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),Fi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 44 44"},(0,qe.createElement)(Ke.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})),$i={foreground:"#f43e37",src:(0,qe.createElement)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"}))};var Gi=()=>(0,qe.createElement)("div",{className:"wp-block-embed is-loading"},(0,qe.createElement)(Ke.Spinner,null));var Oi=({icon:e,label:t,value:n,onSubmit:o,onChange:a,cannotEmbed:r,fallback:l,tryAgain:i})=>(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Je.__)("Paste a link to the content you want to display on your site.")},(0,qe.createElement)("form",{onSubmit:o},(0,qe.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:(0,Je.__)("Enter URL to embed here…"),onChange:a}),(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit"},(0,Je._x)("Embed","button label"))),(0,qe.createElement)("div",{className:"components-placeholder__learn-more"},(0,qe.createElement)(Ke.ExternalLink,{href:(0,Je.__)("https://wordpress.org/documentation/article/embeds/")},(0,Je.__)("Learn more about embeds"))),r&&(0,qe.createElement)("div",{className:"components-placeholder__error"},(0,qe.createElement)("div",{className:"components-placeholder__instructions"},(0,Je.__)("Sorry, this content could not be embedded.")),(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:i},(0,Je._x)("Try again","button label"))," ",(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:l},(0,Je._x)("Convert to link","button label"))));const Ui={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ji({html:e}){const t=(0,qe.useRef)(),n=(0,qe.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),n={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(n[Ui[e]||e]=t)})),n):n}),[e]);return(0,qe.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:o}=e;function a({data:{secret:e,message:o,value:a}={}}){"height"===o&&e===n["data-secret"]&&(t.current.height=a)}return o.addEventListener("message",a),()=>{o.removeEventListener("message",a)}}),[]),(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},(0,qe.createElement)("iframe",{ref:(0,Tt.useMergeRefs)([t,(0,Tt.useFocusableIframe)()]),title:n.title,...n}))}class qi extends qe.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:o,caption:a,onCaptionChange:r,isSelected:l,className:i,icon:s,label:c,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:p}=this.state,d="photo"===o?(e=>{const t=e.url||e.thumbnail_url,n=(0,qe.createElement)("p",null,(0,qe.createElement)("img",{src:t,alt:e.title,width:"100%"}));return(0,qe.renderToString)(n)})(e):e.html,g=new URL(n).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),_=(0,Je.sprintf)((0,Je.__)("Embedded content from %s"),h),b=zt()(o,i,"wp-block-embed__wrapper"),f="wp-embed"===o?(0,qe.createElement)(ji,{html:d}):(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},(0,qe.createElement)(Ke.SandBox,{html:d,scripts:m,title:_,type:b,onFocus:this.hideOverlay}),!p&&(0,qe.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return(0,qe.createElement)("figure",{className:zt()(i,"wp-block-embed",{"is-type-video":"video"===o})},t?f:(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:s,showColors:!0}),label:c},(0,qe.createElement)("p",{className:"components-placeholder__error"},(0,qe.createElement)("a",{href:n},n)),(0,qe.createElement)("p",{className:"components-placeholder__error"},(0,Je.sprintf)((0,Je.__)("Embedded content from %s can't be previewed in the editor."),h))),(!Ye.RichText.isEmpty(a)||l)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),placeholder:(0,Je.__)("Add caption"),value:a,onChange:r,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}}var Wi=qi;var Zi=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:o,url:a},attributes:r,isSelected:l,onReplace:i,setAttributes:s,insertBlocksAfter:c,onFocus:u}=e,m={title:(0,Je._x)("Embed","block title"),icon:xi},{icon:p,title:d}=(g=t,(0,je.getBlockVariations)(Ht)?.find((({name:e})=>e===g))||m);var g;const[h,_]=(0,qe.useState)(a),[b,f]=(0,qe.useState)(!1),{invalidateResolution:v}=(0,ut.useDispatch)(ct.store),{preview:y,fetching:k,themeSupportsResponsive:x,cannotEmbed:w}=(0,ut.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:n,isRequestingEmbedPreview:o,getThemeSupports:r}=e(ct.store);if(!a)return{fetching:!1,cannotEmbed:!1};const l=t(a),i=n(a),s=!!l&&!(!1===l?.html&&void 0===l?.type)&&!(404===l?.data?.status);return{preview:s?l:void 0,fetching:o(a),themeSupportsResponsive:r()["responsive-embeds"],cannotEmbed:!s||i}}),[a]),C=()=>((e,t,n,o)=>{const{allowResponsive:a,className:r}=e;return{...e,...Ft(t,n,r,o,a)}})(r,y,d,o);(0,qe.useEffect)((()=>{if(!y?.html||!w||k)return;const e=a.replace(/\/$/,"");_(e),f(!1),s({url:e})}),[y?.html,a,w,k]),(0,qe.useEffect)((()=>{if(y&&!b){const t=C();if(s(t),i){const n=At(e,t);n&&i(n)}}}),[y,b]);const E=(0,Ye.useBlockProps)();if(k)return(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Gi,null));const S=(0,Je.sprintf)((0,Je.__)("%s URL"),d);if(!y||w||b)return(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Oi,{icon:p,label:S,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=Vt(r.className);f(!1),s({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>_(e.target.value),fallback:()=>function(e,t){const n=(0,qe.createElement)("a",{href:e},e);t((0,je.createBlock)("core/paragraph",{content:(0,qe.renderToString)(n)}))}(h,i),tryAgain:()=>{v("getEmbedPreview",[h])}}));const{caption:B,type:T,allowResponsive:N,className:P}=C(),I=it()(P,e.className);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ki,{showEditButton:y&&!w,themeSupportsResponsive:x,blockSupportsResponsive:o,allowResponsive:N,toggleResponsive:()=>{const{allowResponsive:e,className:t}=r,{html:n}=y,a=!e;s({allowResponsive:a,className:Dt(n,t,o&&a)})},switchBackToURLInput:()=>f(!0)}),(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Wi,{preview:y,previewable:n,className:I,url:h,type:T,caption:B,onCaptionChange:e=>s({caption:e}),isSelected:l,icon:p,label:S,insertBlocksAfter:c})))};const{name:Qi}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ki={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,je.createBlock)(Qi,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,je.createBlock)("core/paragraph",{content:n})}}]};var Ji=Ki;const Yi=[{name:"twitter",title:"Twitter",icon:Si,keywords:["tweet",(0,Je.__)("social")],description:(0,Je.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Bi,keywords:[(0,Je.__)("music"),(0,Je.__)("video")],description:(0,Je.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Ti,keywords:[(0,Je.__)("social")],description:(0,Je.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ni,keywords:[(0,Je.__)("image"),(0,Je.__)("social")],description:(0,Je.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Pi,keywords:[(0,Je.__)("post"),(0,Je.__)("blog")],description:(0,Je.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:wi,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ii,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Mi,keywords:[(0,Je.__)("image")],description:(0,Je.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:zi,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Ai,description:(0,Je.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:xi,description:(0,Je.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:Ei,description:(0,Je.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:xi,keywords:["polldaddy",(0,Je.__)("survey")],description:(0,Je.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:Vi,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Ci,description:(0,Je.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:xi,description:(0,Je.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:xi,description:(0,Je.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:wi,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:"Pocket Casts",icon:$i,keywords:[(0,Je.__)("podcast"),(0,Je.__)("audio")],description:(0,Je.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:"Reddit",icon:Ri,description:(0,Je.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:wi,description:(0,Je.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:Ei,description:(0,Je.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:xi,description:(0,Je.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:xi,description:(0,Je.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Ci,description:(0,Je.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:xi,description:(0,Je.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:Ei,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:Ei,description:(0,Je.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:Hi,keywords:[(0,Je.__)("social")],description:(0,Je.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:Ei,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:Ei,description:(0,Je.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Li,keywords:[(0,Je.__)("ebook")],description:(0,Je.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:Di,keywords:[(0,Je.__)("social"),(0,Je.__)("bookmark")],description:(0,Je.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:Fi,description:(0,Je.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];Yi.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var Xi=Yi;const{attributes:es}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},ts={attributes:es,save({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:a}=e;if(!t)return null;const r=it()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}},ns={attributes:es,save({attributes:{url:e,caption:t,type:n,providerNameSlug:o}}){if(!e)return null;const a=it()("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${o}`]:o});return(0,qe.createElement)("figure",{className:a},`\n${e}\n`,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:t}))}};var os=[ts,ns];const as={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:rs}=as,ls={icon:xi,edit:Zi,save:function({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:a}=e;if(!t)return null;const r=zt()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))},transforms:Ji,variations:Xi,deprecated:os},is=()=>Qe({name:rs,metadata:as,settings:ls});var ss=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));const cs={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),o),m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},us={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),o),m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},ms={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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:n,textLinkHref:o,textLinkTarget:a,showDownloadButton:r,downloadButtonText:l,displayPreview:i,previewHeight:s}=e,c=Ye.RichText.isEmpty(n)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),n);return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},i&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${s}px`},"aria-label":c})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:n})),r&&(0,qe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},(0,qe.createElement)(Ye.RichText.Content,{value:l})))}};var ps=[cs,us,ms];function ds({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:r,displayPreview:l,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:c}){const{href:u,textLinkHref:m,attachmentPage:p}=e;let d=[{value:u,label:(0,Je.__)("URL")}];return p&&(d=[{value:u,label:(0,Je.__)("Media file")},{value:p,label:(0,Je.__)("Attachment page")}]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,u.endsWith(".pdf")&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("PDF settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show inline embed"),help:l?(0,Je.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:i}),l&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Height in pixels"),min:_s,max:Math.max(bs,s),value:s,onChange:c})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:m,options:d,onChange:o}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),checked:t,onChange:a}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show download button"),checked:n,onChange:r}))))}const gs=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!hs("AcroPDF.PDF")&&!hs("PDF.PdfCtrl")))),hs=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},_s=200,bs=2e3;function fs({text:e,disabled:t}){const{createNotice:n}=(0,ut.useDispatch)(Bt.store),o=(0,Tt.useCopyToClipboard)(e,(()=>{n("info",(0,Je.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,qe.createElement)(Ke.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t},(0,Je.__)("Copy URL"))}var vs=function({attributes:e,isSelected:t,setAttributes:n,clientId:o}){const{id:a,fileId:r,fileName:l,href:i,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,{media:g,mediaUpload:h}=(0,ut.useSelect)((e=>({media:void 0===a?void 0:e(ct.store).getMedia(a),mediaUpload:e(Ye.store).getSettings().mediaUpload})),[a]),{createErrorNotice:_}=(0,ut.useDispatch)(Bt.store),{toggleSelection:b,__unstableMarkNextChangeAsNotPersistent:f}=(0,ut.useDispatch)(Ye.store);function v(e){if(e&&e.url){const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function y(e){n({href:void 0}),_(e,{type:"snackbar"})}function k(e){n({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}(0,qe.useEffect)((()=>{if((0,Et.isBlobURL)(i)){const e=(0,Et.getBlobByURL)(i);h({filesList:[e],onFileChange:([e])=>v(e),onError:y}),(0,Et.revokeBlobURL)(i)}void 0===m&&k((0,Je._x)("Download","button label"))}),[]),(0,qe.useEffect)((()=>{!r&&i&&(f(),n({fileId:`wp-block-file--media-${o}`}))}),[i,r,o]);const x=g&&g.link,w=(0,Ye.useBlockProps)({className:it()((0,Et.isBlobURL)(i)&&(0,Ke.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,Et.isBlobURL)(i)})}),C=gs()&&p;return i?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ds,{hrefs:{href:i,textLinkHref:s,attachmentPage:x},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:p,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:d,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),_s);n({previewHeight:t})}}),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:a,mediaURL:i,accept:"*",onSelect:v,onError:y}),(0,qe.createElement)(fs,{text:i,disabled:(0,Et.isBlobURL)(i)})),(0,qe.createElement)("div",{...w},C&&(0,qe.createElement)(Ke.ResizableBox,{size:{height:d},minHeight:_s,maxHeight:bs,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:function(e,t,o,a){b(!0);const r=parseInt(d+a.height,10);n({previewHeight:r})},showHandle:t},(0,qe.createElement)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,Je.__)("Embed of the selected PDF file.")}),!t&&(0,qe.createElement)("div",{className:"wp-block-file__preview-overlay"})),(0,qe.createElement)("div",{className:"wp-block-file__content-wrapper"},(0,qe.createElement)(Ye.RichText,{tagName:"a",value:l,placeholder:(0,Je.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:e}),href:s}),u&&(0,qe.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},(0,qe.createElement)(Ye.RichText,{tagName:"div","aria-label":(0,Je.__)("Download button text"),className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Je.__)("Add text…"),onChange:e=>k(e)}))))):(0,qe.createElement)("div",{...w},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ss}),labels:{title:(0,Je.__)("File"),instructions:(0,Je.__)("Upload a file or pick one from your media library.")},onSelect:v,onError:y,accept:"*"}))};const ys={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{const t=[];return e.forEach((e=>{const n=(0,Et.createBlobURL)(e);t.push((0,je.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,je.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,st.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("audio")},transform:e=>(0,je.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("video")},transform:e=>(0,je.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("image")},transform:e=>(0,je.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var ks=ys;const xs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:ws}=xs,Cs={icon:ss,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,Je._x)("Armstrong_Small_Step","Name of the file")}},transforms:ks,deprecated:ps,edit:vs,save:function({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?"PDF embed":o,m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},Es=()=>Qe({name:ws,metadata:xs,settings:Cs});var Ss=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"}));const Bs="none",Ts="media",Ns="attachment",Ps="file",Is="post";const Ms=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(n.fullUrl=o),n};function zs(){return!qe.Platform.isNative||function(){if(!window.wp||"boolean"!=typeof window.wp.galleryBlockV2Enabled)throw"window.wp.galleryBlockV2Enabled is not defined";return window.wp.galleryBlockV2Enabled}()}const Rs="file",Hs="post";function Ls(e){return Math.min(3,e?.images?.length)}function As(e,t){switch(t){case Rs:return{href:e?.source_url||e?.url,linkDestination:Ts};case Hs:return{href:e?.link,linkDestination:Ns};case Ts:return{href:e?.source_url||e?.url,linkDestination:Ts};case Ns:return{href:e?.link,linkDestination:Ns};case Bs:return{href:void 0,linkDestination:Bs}}return{}}function Vs(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const n=e.images.map((n=>function(e,t,n){return(0,je.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...As(e,n)})}(n,e.sizeSlug,t))),{images:o,ids:a,...r}=e;return[{...r,linkTo:t,allowResize:!1},n]}const Ds={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){const{caption:t,columns:n,imageCrop:o}=e,a=it()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":o}),r=Ye.useBlockProps.save({className:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("figure",{...l},l.children,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t}))}},Fs={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e,l=`columns-${n} ${o?"is-cropped":""}`;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:l})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Rs:t=e.fullUrl||e.url;break;case Hs:t=e.link}const n=(0,qe.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-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},migrate(e){return zs()?Vs(e):e}},$s={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||"attachment"===e||"media"===e},migrate(e){if(zs())return Vs(e);let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e;return(0,qe.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.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-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Gs={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some((e=>"string"==typeof e))},migrate(e){var t;return zs()?Vs(e):{...e,ids:(null!==(t=e.ids)&&void 0!==t?t:[]).map((e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null}))}},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e;return(0,qe.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.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-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Os={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:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,linkTo:a}=e;return(0,qe.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.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-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},migrate(e){return zs()?Vs(e):e}},Us={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:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n])))},migrate(e){var t;return zs()?Vs(e):{...e,ids:(null!==(t=e.images)&&void 0!==t?t:[]).map((({id:e})=>e?parseInt(e,10):null))}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,linkTo:a}=e;return(0,qe.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},js={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),align:o,imageCrop:a,linkTo:r}=e,l=it()(`columns-${n}`,{alignnone:"none"===o,"is-cropped":a});return(0,qe.createElement)("div",{className:l},t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,qe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?(0,qe.createElement)("a",{href:t},n):n)})))},migrate(e){return zs()?Vs(e):e}};var qs=[Ds,Fs,$s,Gs,Os,Us,js],Ws=window.wp.viewport;const Zs=(0,qe.createElement)(Ye.BlockIcon,{icon:Ss}),Qs=20,Ks="none",Js="media",Ys="attachment",Xs="custom",ec=["noreferrer","noopener"],tc=["image"];function nc(e,t,n){switch(n||t){case Ps:case Ts:return{href:e?.source_url||e?.url,linkDestination:Js};case Is:case Ns:return{href:e?.link,linkDestination:Ys};case Bs:return{href:void 0,linkDestination:Ks}}return{}}function oc(e,{rel:t}){const n=e?"_blank":void 0;let o;return o=n||t?function(e){let t=e;return void 0!==e&&t&&(ec.forEach((e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:n,rel:o}}var ac=(0,qe.forwardRef)(((e,t)=>{const{attributes:n,isSelected:o,setAttributes:a,mediaPlaceholder:r,insertBlocksAfter:l,blockProps:i,__unstableLayoutClassNames:s,showCaption:c}=e,{align:u,columns:m,caption:p,imageCrop:d}=n;return(0,qe.createElement)("figure",{...i,className:it()(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${m}`]:void 0!==m,"columns-default":void 0===m,"is-cropped":d})},i.children,o&&!i.children&&(0,qe.createElement)(We.View,{className:"blocks-gallery-media-placeholder-wrapper"},r),c&&(!Ye.RichText.isEmpty(p)||o)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption","aria-label":(0,Je.__)("Gallery caption text"),placeholder:(0,Je.__)("Write gallery caption…"),value:p,className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),ref:t,tagName:"figcaption",onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>l((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}));function rc(e,t,n){return(0,qe.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:o}=n();let a={};t&&(a=e.reduce(((e,t)=>{if(!t.id)return e;const n=o.reduce(((e,n)=>{const o=t.sizes?.[n.slug]?.url,a=t.media_details?.sizes?.[n.slug]?.source_url;return{...e,[n.slug]:o||a}}),{});return{...e,[parseInt(t.id,10)]:n}}),{}));const r=Object.values(a);return o.filter((({slug:e})=>r.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function lc(e,t){const[n,o]=(0,qe.useState)([]);return(0,qe.useMemo)((()=>function(){let a=!1;const r=n.filter((t=>e.find((e=>t.clientId===e.clientId))));r.length<n.length&&(a=!0);e.forEach((e=>{e.fromSavedContent&&!r.find((t=>t.id===e.id))&&(a=!0,r.push(e))}));const l=e.filter((e=>!r.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedConent));(a||l?.length>0)&&o([...r,...l]);return l.length>0?l:null}()),[e,t])}const ic=[];function sc({blockGap:e,clientId:t}){const n=(0,qe.useContext)(Ye.BlockList.__unstableElementContext),o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let a,r=o,l=o;e&&(a="string"==typeof e?(0,Ye.__experimentalGetGapCSSValue)(e):(0,Ye.__experimentalGetGapCSSValue)(e?.top)||o,l="string"==typeof e?(0,Ye.__experimentalGetGapCSSValue)(e):(0,Ye.__experimentalGetGapCSSValue)(e?.left)||o,r=a===l?a:`${a} ${l}`);const i=`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===l?"0px":l};\n\t\tgap: ${r}\n\t}`;return i&&n?(0,qe.createPortal)((0,qe.createElement)((()=>(0,qe.createElement)("style",null,i)),null),n):null}const cc=[{value:Ns,label:(0,Je.__)("Attachment Page")},{value:Ts,label:(0,Je.__)("Media File")},{value:Bs,label:(0,Je._x)("None","Media item link option")}],uc=["image"],mc=["core/image"],pc=qe.Platform.isNative?(0,Je.__)("ADD MEDIA"):(0,Je.__)("Drag images, upload new ones or select files from your library."),dc=qe.Platform.isNative?{type:"stepper"}:{};var gc=(0,Tt.compose)([(0,Ws.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:o,clientId:a,isSelected:r,insertBlocksAfter:l,isContentLocked:i}=e,{columns:s,imageCrop:c,linkTarget:u,linkTo:m,sizeSlug:p,caption:d}=n,[g,h]=(0,qe.useState)(!!d),_=(0,Tt.usePrevious)(d);(0,qe.useEffect)((()=>{d&&!_&&h(!0)}),[d,_]),(0,qe.useEffect)((()=>{r||d||h(!1)}),[r,d]);const b=(0,qe.useCallback)((e=>{e&&!d&&e.focus()}),[d]),{__unstableMarkNextChangeAsNotPersistent:f,replaceInnerBlocks:v,updateBlockAttributes:y,selectBlock:k}=(0,ut.useDispatch)(Ye.store),{createSuccessNotice:x,createErrorNotice:w}=(0,ut.useDispatch)(Bt.store),{getBlock:C,getSettings:E,preferredStyle:S}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(Ye.store).getBlock,getSettings:e(Ye.store).getSettings,preferredStyle:t?.value?.["core/image"]}}),[]),B=(0,ut.useSelect)((e=>{var t;return null!==(t=e(Ye.store).getBlock(a)?.innerBlocks)&&void 0!==t?t:[]}),[a]),T=(0,ut.useSelect)((e=>e(Ye.store).wasBlockJustInserted(a,"inserter_menu")),[a]),N=(0,qe.useMemo)((()=>B?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[B]),P=function(e){return(0,ut.useSelect)((t=>{var n;const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?ic:null!==(n=t(ct.store).getMediaItems({include:o.join(","),per_page:-1,orderby:"include"}))&&void 0!==n?n:ic}),[e])}(B),I=lc(N,P);(0,qe.useEffect)((()=>{I?.forEach((e=>{f(),y(e.clientId,{...z(e.attributes),id:e.id,align:void 0})}))}),[I]);const M=rc(P,r,E);function z(e){const t=e.id?P.find((({id:t})=>t===e.id)):null;let o,a;return o=e.className&&""!==e.className?e.className:S?`is-style-${S}`:void 0,a=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:oc(u,n),{...Ms(t,p),...nc(t,m,e?.linkDestination),...a,className:o,sizeSlug:p,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text}}function R(e){const t=qe.Platform.isNative&&e.id?P.find((({id:t})=>t===e.id)):null,n=t?t?.media_type:e.type;return uc.some((e=>0===n?.indexOf(e)))||0===e.url?.indexOf("blob:")}function H(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map((e=>e.url?e:Ms({url:(0,Et.createBlobURL)(e)}))):e;n.every(R)||w((0,Je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const o=n.filter((e=>e.url||R(e))).map((e=>e.url?e:Ms({url:(0,Et.createBlobURL)(e)}))),r=o.reduce(((e,t,n)=>(e[t.id]=n,e)),{}),l=t?B:B.filter((e=>o.find((t=>t.id===e.attributes.id)))),i=o.filter((e=>!l.find((t=>e.id===t.attributes.id)))).map((e=>(0,je.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));v(a,l.concat(i).sort(((e,t)=>r[e.attributes.id]-r[t.attributes.id]))),i?.length>0&&k(i[0].clientId)}(0,qe.useEffect)((()=>{m||(f(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Bs}))}),[m]);const L=!!N.length,A=L&&N.some((e=>!!e.id)),V=N.some((e=>qe.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),D=qe.Platform.select({web:{addToGallery:!1,disableMediaButtons:V,value:{}},native:{addToGallery:A,isAppender:L,disableMediaButtons:L&&!r||V,value:A?N:{},autoOpenMediaUpload:!L&&r&&T}}),F=(0,qe.createElement)(Ye.MediaPlaceholder,{handleUpload:!1,icon:Zs,labels:{title:(0,Je.__)("Gallery"),instructions:pc},onSelect:H,accept:"image/*",allowedTypes:uc,multiple:!0,onError:function(e){w(e,{type:"snackbar"})},...D}),$=(0,Ye.useBlockProps)({className:it()(o,"has-nested-images")}),G=qe.Platform.isNative&&{marginHorizontal:0,marginVertical:0},O=(0,Ye.useInnerBlocksProps)($,{allowedBlocks:mc,orientation:"horizontal",renderAppender:!1,...G});if(!L)return(0,qe.createElement)(We.View,{...O},O.children,F);const U=m&&"none"!==m;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},N.length>1&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s||(j=N.length,j?Math.min(3,j):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,N.length),...dc,required:!0,size:"__unstable-large"}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop images"),checked:!!c,onChange:function(){t({imageCrop:!c})},help:function(e){return e?(0,Je.__)("Thumbnails are cropped to align."):(0,Je.__)("Thumbnails are not cropped.")}}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:m,onChange:function(e){t({linkTo:e});const n={},o=[];C(a).innerBlocks.forEach((t=>{o.push(t.clientId);const a=t.attributes.id?P.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=nc(a,e)})),y(o,n,!0);const r=[...cc].find((t=>t.value===e));x((0,Je.sprintf)((0,Je.__)("All gallery image links updated to: %s"),r.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:cc,hideCancelButton:!0,size:"__unstable-large"}),U&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),checked:"_blank"===u,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const o={},r=[];C(a).innerBlocks.forEach((e=>{r.push(e.clientId),o[e.clientId]=oc(n,e.attributes)})),y(r,o,!0);const l=e?(0,Je.__)("All gallery images updated to open in new tab"):(0,Je.__)("All gallery images updated to not open in new tab");x(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),M?.length>0&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resolution"),help:(0,Je.__)("Select the size of the source images."),value:p,options:M,onChange:function(e){t({sizeSlug:e});const n={},o=[];C(a).innerBlocks.forEach((t=>{o.push(t.clientId);const a=t.attributes.id?P.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=function(e,t){const n=e?.media_details?.sizes?.[t]?.source_url;return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(a,e)})),y(o,n,!0);const r=M.find((t=>t.value===e));x((0,Je.sprintf)((0,Je.__)("All gallery image sizes updated to: %s"),r.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0,size:"__unstable-large"}),qe.Platform.isWeb&&!M&&A&&(0,qe.createElement)(Ke.BaseControl,{className:"gallery-image-sizes"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Resolution")),(0,qe.createElement)(We.View,{className:"gallery-image-sizes__loading"},(0,qe.createElement)(Ke.Spinner,null),(0,Je.__)("Loading options…"))))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},!i&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{h(!g),g&&d&&t({caption:void 0})},icon:St,isPressed:g,label:g?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{allowedTypes:uc,accept:"image/*",handleUpload:!1,onSelect:H,name:(0,Je.__)("Add"),multiple:!0,mediaIds:N.filter((e=>e.id)).map((e=>e.id)),addToGallery:A})),qe.Platform.isWeb&&(0,qe.createElement)(sc,{blockGap:n.style?.spacing?.blockGap,clientId:a}),(0,qe.createElement)(ac,{...e,showCaption:g,ref:qe.Platform.isWeb?b:void 0,images:N,mediaPlaceholder:!L||qe.Platform.isNative?F:void 0,blockProps:O,insertBlocksAfter:l}));var j}));const hc=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url;const o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(n.fullUrl=o),n};var _c=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));var bc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var fc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var vc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const yc="none",kc="file",xc="post";class wc extends qe.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[un.BACKSPACE,un.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:o,alt:a,caption:r,sizeSlug:l}=this.props;if(!e||!e.url)return;let i=hc(e,l);if(((e,t)=>!e&&(0,Et.isBlobURL)(t))(n,o)&&a){const{alt:e,...t}=i;i=t}if(r&&!i.caption){const{caption:e,...t}=i;i=t}t(i),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:o,link:a,isFirstItem:r,isLastItem:l,isSelected:i,caption:s,onRemove:c,onMoveForward:u,onMoveBackward:m,setAttributes:p,"aria-label":d}=this.props,{isEditing:g}=this.state;let h;switch(o){case kc:h=e;break;case xc:h=a}const _=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":d,ref:this.bindContainer}),(0,Et.isBlobURL)(e)&&(0,qe.createElement)(Ke.Spinner,null)),b=it()({"is-selected":i,"is-transient":(0,Et.isBlobURL)(e)});return(0,qe.createElement)("figure",{className:b,onClick:this.onSelectImage,onFocus:this.onSelectImage},!g&&(h?(0,qe.createElement)("a",{href:h},_):_),g&&(0,qe.createElement)(Ye.MediaPlaceholder,{labels:{title:(0,Je.__)("Edit gallery image")},icon:_c,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),(0,qe.createElement)(Ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},(0,qe.createElement)(Ke.Button,{icon:bc,onClick:r?void 0:m,label:(0,Je.__)("Move image backward"),"aria-disabled":r,disabled:!i}),(0,qe.createElement)(Ke.Button,{icon:fc,onClick:l?void 0:u,label:(0,Je.__)("Move image forward"),"aria-disabled":l,disabled:!i})),(0,qe.createElement)(Ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},(0,qe.createElement)(Ke.Button,{icon:vi,onClick:this.onEdit,label:(0,Je.__)("Replace image"),disabled:!i}),(0,qe.createElement)(Ke.Button,{icon:vc,onClick:c,label:(0,Je.__)("Remove image"),disabled:!i})),!g&&(i||s)&&(0,qe.createElement)(Ye.RichText,{tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Image caption text"),placeholder:i?(0,Je.__)("Add caption"):null,value:s,onChange:e=>p({caption:e}),inlineToolbar:!0}))}}var Cc=(0,Tt.compose)([(0,ut.withSelect)(((e,t)=>{const{getMedia:n}=e(ct.store),{id:o}=t;return{image:o?n(parseInt(o,10)):null}})),(0,ut.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(Ye.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(wc);function Ec({isHidden:e,...t}){return e?(0,qe.createElement)(Ke.VisuallyHidden,{as:Ye.RichText,...t}):(0,qe.createElement)(Ye.RichText,{...t})}var Sc=e=>{const{attributes:t,isSelected:n,setAttributes:o,selectedImage:a,mediaPlaceholder:r,onMoveBackward:l,onMoveForward:i,onRemoveImage:s,onSelectImage:c,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:p,blockProps:d}=e,{align:g,columns:h=Ls(t),caption:_,imageCrop:b,images:f}=t;return(0,qe.createElement)("figure",{...d,className:it()(d.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":b})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},f.map(((e,o)=>{const r=(0,Je.sprintf)((0,Je.__)("image %1$d of %2$d in gallery"),o+1,f.length);return(0,qe.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${o}`:e.url},(0,qe.createElement)(Cc,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===o,isLastItem:o+1===f.length,isSelected:n&&a===o,onMoveBackward:l(o),onMoveForward:i(o),onRemove:s(o),onSelect:c(o),onDeselect:u(o),setAttributes:e=>m(o,e),caption:e.caption,"aria-label":r,sizeSlug:t.sizeSlug}))}))),r,(0,qe.createElement)(Ec,{isHidden:!n&&Ye.RichText.isEmpty(_),tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),"aria-label":(0,Je.__)("Gallery caption text"),placeholder:(0,Je.__)("Write gallery caption…"),value:_,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>p((0,je.createBlock)((0,je.getDefaultBlockName)()))}))};const Bc=[{value:xc,label:(0,Je.__)("Attachment Page")},{value:kc,label:(0,Je.__)("Media File")},{value:yc,label:(0,Je.__)("None")}],Tc=["image"],Nc=qe.Platform.select({web:(0,Je.__)("Drag images, upload new ones or select files from your library."),native:(0,Je.__)("ADD MEDIA")}),Pc=qe.Platform.select({web:{},native:{type:"stepper"}});var Ic=(0,Tt.compose)([Ke.withNotices,(0,Ws.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:o,noticeUI:a,noticeOperations:r,onFocus:l}=e,{columns:i=Ls(t),imageCrop:s,images:c,linkTo:u,sizeSlug:m}=t,[p,d]=(0,qe.useState)(),[g,h]=(0,qe.useState)(),{__unstableMarkNextChangeAsNotPersistent:_}=(0,ut.useDispatch)(Ye.store),{imageSizes:b,mediaUpload:f,getMedia:v,wasBlockJustInserted:y}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(ct.store).getMedia,wasBlockJustInserted:e(Ye.store).wasBlockJustInserted(n,"inserter_menu")}})),k=(0,qe.useMemo)((()=>{var e;return o?(null!==(e=t.ids)&&void 0!==e?e:[]).reduce(((e,t)=>{if(!t)return e;const n=v(t),o=b.reduce(((e,t)=>{const o=n?.sizes?.[t.slug]?.url,a=n?.media_details?.sizes?.[t.slug]?.source_url;return{...e,[t.slug]:o||a}}),{});return{...e,[parseInt(t,10)]:o}}),{}):{}}),[o,t.ids,b]);function x(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:t.images.map((({id:e})=>parseInt(e,10)))}),e.setAttributes(t)}function w(e,t){const n=[...c];n.splice(t,1,c[e]),n.splice(e,1,c[t]),d(t),x({images:n})}function C(e){const t=e.id.toString(),n=c.find((({id:e})=>e===t)),o=n?n.caption:e.caption;if(!g)return o;const a=g.find((({id:e})=>e===t));return a&&a.caption!==e.caption?e.caption:o}function E(e){h(e.map((e=>({id:e.id.toString(),caption:e.caption})))),x({images:e.map((e=>({...hc(e,m),caption:C(e),id:e.id.toString()}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,qe.useEffect)((()=>{if("web"===qe.Platform.OS&&c&&c.length>0&&c.every((({url:e})=>(0,Et.isBlobURL)(e)))){const e=c.map((({url:e})=>(0,Et.getBlobByURL)(e)));c.forEach((({url:e})=>(0,Et.revokeBlobURL)(e))),f({filesList:e,onFileChange:E,allowedTypes:["image"]})}}),[]),(0,qe.useEffect)((()=>{o||d()}),[o]),(0,qe.useEffect)((()=>{u||(_(),x({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||yc}))}),[u]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),T=(0,qe.createElement)(Ye.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!o,icon:!S&&Zs,labels:{title:!S&&(0,Je.__)("Gallery"),instructions:!S&&Nc},onSelect:E,accept:"image/*",allowedTypes:Tc,multiple:!0,value:B?c:{},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)},notices:S?void 0:a,onFocus:l,autoOpenMediaUpload:!S&&o&&y}),N=(0,Ye.useBlockProps)();if(!S)return(0,qe.createElement)(We.View,{...N},T);const P=function(){const e=Object.values(k);return b.filter((({slug:t})=>e.some((e=>e[t])))).map((({name:e,slug:t})=>({value:t,label:e})))}(),I=S&&P.length>0;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},c.length>1&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:i,onChange:function(e){x({columns:e})},min:1,max:Math.min(8,c.length),...Pc,required:!0}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop images"),checked:!!s,onChange:function(){x({imageCrop:!s})},help:function(e){return e?(0,Je.__)("Thumbnails are cropped to align."):(0,Je.__)("Thumbnails are not cropped.")}}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:u,onChange:function(e){x({linkTo:e})},options:Bc,hideCancelButton:!0}),I&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),value:m,options:P,onChange:function(e){x({images:(null!=c?c:[]).map((t=>{if(!t.id)return t;const n=k[parseInt(t.id,10)]?.[e];return{...t,...n&&{url:n}}})),sizeSlug:e})},hideCancelButton:!0}))),a,(0,qe.createElement)(Sc,{...e,selectedImage:p,mediaPlaceholder:T,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=c.filter(((t,n)=>e!==n));d(),x({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{d(e)}},onDeselectImage:function(){return()=>{d()}},onSetImageAttributes:function(e,t){c[e]&&x({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:N,onFocusGalleryCaption:function(){d()}}))}));var Mc=(0,Tt.compose)([Ke.withNotices])((function(e){return zs()?(0,qe.createElement)(gc,{...e}):(0,qe.createElement)(Ic,{...e})}));const zc=e=>e?e.split(",").map((e=>parseInt(e,10))):[];(0,Zl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if(zs()&&"core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:n,alt:o})=>(0,je.createBlock)("core/image",{url:t,id:n?parseInt(n,10):null,alt:o,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,Zl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(n){const e=n.innerBlocks.map((({attributes:{url:e,id:t,alt:n}})=>({url:e,id:t?parseInt(t,10):null,alt:n}))),t=e.map((({id:e})=>e));n.attributes.images=e,n.attributes.ids=t}return e}));const Rc={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=e.every((e=>e.align===t))?t:void 0,n=e.every((e=>e.sizeSlug===n))?n:void 0;const o=e.filter((({url:e})=>e));if(zs()){const e=o.map((e=>(e.width=void 0,e.height=void 0,(0,je.createBlock)("core/image",e))));return(0,je.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return(0,je.createBlock)("core/gallery",{images:o.map((({id:e,url:t,alt:n,caption:o})=>({id:e.toString(),url:t,alt:n,caption:o}))),ids:o.map((({id:e})=>parseInt(e,10))),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>{if(!zs())return zc(e).map((e=>({id:e.toString()})))}},ids:{type:"array",shortcode:({named:{ids:e}})=>{if(!zs())return zc(e)}},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e}})=>{if(!zs())switch(e){case"post":default:return xc;case"file":return kc}switch(e){case"post":return Ns;case"file":return Ts;default:return Bs}}}},transform({named:{ids:e,columns:t=3,link:n}}){const o=zc(e).map((e=>parseInt(e,10)));let a=Bs;"post"===n?a=Ns:"file"===n&&(a=Ts);return(0,je.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a},o.map((e=>(0,je.createBlock)("core/image",{id:e}))))},isMatch({named:e}){return void 0!==e.ids}},{type:"files",priority:1,isMatch(e){return 1!==e.length&&e.every((e=>0===e.type.indexOf("image/")))},transform(e){if(zs()){const t=e.map((e=>(0,je.createBlock)("core/image",{url:(0,Et.createBlobURL)(e)})));return(0,je.createBlock)("core/gallery",{},t)}const t=(0,je.createBlock)("core/gallery",{images:e.map((e=>Ms({url:(0,Et.createBlobURL)(e)})))});return t}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:n,sizeSlug:o},a)=>zs()?a.length>0?a.map((({attributes:{url:t,alt:n,caption:o,title:a,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:u,linkTarget:m,anchor:p,className:d}})=>(0,je.createBlock)("core/image",{align:e,url:t,alt:n,caption:o,title:a,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:u,linkTarget:m,anchor:p,className:d}))):(0,je.createBlock)("core/image",{align:e}):t.length>0?t.map((({url:t,alt:a,caption:r},l)=>(0,je.createBlock)("core/image",{id:n[l],url:t,alt:a,caption:r,align:e,sizeSlug:o}))):(0,je.createBlock)("core/image",{align:e})}]};var Hc=Rc;const Lc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Ac}=Lc,Vc={icon:Ss,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Hc,edit:Mc,save:function({attributes:e}){if(!zs())return function({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e,l=`columns-${n} ${o?"is-cropped":""}`;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:l})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case kc:t=e.fullUrl||e.url;break;case xc:t=e.link}const n=(0,qe.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-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-item__caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:a}))}({attributes:e});const{caption:t,columns:n,imageCrop:o}=e,a=it()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":o}),r=Ye.useBlockProps.save({className:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("figure",{...l},l.children,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:t}))},deprecated:qs},Dc=()=>Qe({name:Ac,metadata:Lc,settings:Vc});var Fc=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));const $c=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t}},Gc=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,qe.createElement)(e,{...Ye.useInnerBlocksProps.save(Ye.useBlockProps.save())})},isEligible:({layout:e})=>!e||e.inherit||e.contentSize&&"constrained"!==e.type,migrate:e=>{const{layout:t=null}=e;return t?t.inherit||t.contentSize?{...e,layout:{...t,type:"constrained"}}:void 0:e}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,qe.createElement)(t,{...Ye.useBlockProps.save()},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:$c,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:a}=e,r=(0,Ye.getColorClassName)("background-color",t),l=(0,Ye.getColorClassName)("color",o),i=it()(r,l,{"has-text-color":o||a,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:a};return(0,qe.createElement)("div",{className:i,style:s},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:$c,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:a}=e,r=(0,Ye.getColorClassName)("background-color",t),l=(0,Ye.getColorClassName)("color",o),i=it()(r,{"has-text-color":o||a,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:a};return(0,qe.createElement)("div",{className:i,style:s},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:$c,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,o=(0,Ye.getColorClassName)("background-color",t),a=it()(o,{"has-background":t||n}),r={backgroundColor:o?void 0:n};return(0,qe.createElement)("div",{className:a,style:r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var Oc=Gc;const Uc=(e="group")=>{const t={group:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"})),"group-row":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H23.5c-.6 0-1 .4-1 1v30c0 .6.4 1 1 1H42c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM20.5 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h18.5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})),"group-stack":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H2C.9 0 0 .9 0 2v12.5c0 .6.4 1 1 1h42c.6 0 1-.4 1-1V2c0-1.1-.9-2-2-2zm1 16.5H1c-.6 0-1 .4-1 1V30c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V17.5c0-.6-.4-1-1-1z"})),"group-grid":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"m20.30137,-0.00025l-18.9728,0c-0.86524,0.07234 -1.41711,0.79149 -1.41711,1.89149l0,12.64468c0,0.6 0.73401,0.96383 1.0304,0.96383l19.67469,0.03617c0.29639,0 1.0304,-0.4 1.0304,-1l-0.03576,-12.7532c0,-1.1 -0.76644,-1.78297 -1.30983,-1.78297zm0.52975,16.60851l-19.99654,-0.03617c-0.29639,0 -0.92312,0.36383 -0.92312,0.96383l-0.03576,12.68085c0,1.1 0.8022,1.81915 1.34559,1.81915l19.00857,0c0.54339,0 1.45287,-0.71915 1.45287,-1.81915l0,-12.53617c0,-0.6 -0.5552,-1.07234 -0.8516,-1.07234z"}),(0,qe.createElement)(Ke.Path,{d:"m42.73056,-0.03617l-18.59217,0c-0.84788,0.07234 -1.38868,0.79149 -1.38868,1.89149l0,12.64468c0,0.6 0.71928,0.96383 1.00973,0.96383l19.27997,0.03617c0.29045,0 1.00973,-0.4 1.00973,-1l-0.03504,-12.7532c0,-1.1 -0.75106,-1.78297 -1.28355,-1.78297zm0.51912,16.60851l-19.59537,-0.03617c-0.29045,0 -0.9046,0.36383 -0.9046,0.96383l-0.03504,12.68085c0,1.1 0.78611,1.81915 1.31859,1.81915l18.62721,0c0.53249,0 1.42372,-0.71915 1.42372,-1.81915l0,-12.53617c0,-0.6 -0.54407,-1.07234 -0.83451,-1.07234z"}))};return t?.[e]};var jc=function({name:e,onSelect:t}){const n=(0,ut.useSelect)((t=>t(je.store).getBlockVariations(e,"block")),[e]),o=(0,Ye.useBlockProps)({className:"wp-block-group__placeholder"});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.Placeholder,{instructions:(0,Je.__)("Group blocks together. Select a layout:")},(0,qe.createElement)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,Je.__)("Block variations")},n.map((e=>(0,qe.createElement)("li",{key:e.name},(0,qe.createElement)(Ke.Button,{variant:"tertiary",icon:Uc(e.name),iconSize:44,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})))))))};function qc({tagName:e,onSelectTagName:t}){const n={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:e,onChange:t,help:n[e]}))}var Wc=function({attributes:e,name:t,setAttributes:n,clientId:o,__unstableLayoutClassNames:a}){const{hasInnerBlocks:r,themeSupportsLayout:l}=(0,ut.useSelect)((e=>{const{getBlock:t,getSettings:n}=e(Ye.store),a=t(o);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:n()?.supportsLayout}}),[o]),{tagName:i="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,m=(0,Ye.useSetting)("layout")||{},p=u?.type?{...m,...u}:{...m,...u,type:"default"},{type:d="default"}=p,g=l||"flex"===d||"grid"===d,h=(0,Ye.useBlockProps)({className:g?null:a}),[_,b]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:n=!1}){const{style:o,backgroundColor:a,textColor:r,fontSize:l}=e,[i,s]=(0,qe.useState)(!(n||a||l||r||o||"flex"===t||"grid"===t));return(0,qe.useEffect)((()=>{(n||a||l||r||o||"flex"===t)&&s(!1)}),[a,l,r,o,t,n]),[i,s]}({attributes:e,usedLayoutType:p?.type,hasInnerBlocks:r});let f;_?f=!1:r||(f=Ye.InnerBlocks.ButtonBlockAppender);const v=(0,Ye.useInnerBlocksProps)(g?h:{className:"wp-block-group__inner-container"},{templateLock:s,allowedBlocks:c,renderAppender:f,__unstableDisableLayoutClassNames:!g}),{selectBlock:y}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(qc,{tagName:i,onSelectTagName:e=>n({tagName:e})}),_&&(0,qe.createElement)(We.View,null,v.children,(0,qe.createElement)(jc,{clientId:o,name:t,onSelect:e=>{n(e.attributes),y(o,-1),b(!1)}})),g&&!_&&(0,qe.createElement)(i,{...v}),!g&&!_&&(0,qe.createElement)(i,{...h},(0,qe.createElement)("div",{...v})))};var Zc={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],n=e.reduce(((e,n)=>{const{align:o}=n.attributes;return t.indexOf(o)>t.indexOf(e)?o:e}),void 0),o=e.map((e=>(0,je.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,je.createBlock)("core/group",{align:n,layout:{type:"constrained"}},o)}}]};var Qc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"}));var Kc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"}));var Jc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"}));const Yc=[{name:"group",title:(0,Je.__)("Group"),description:(0,Je.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],isActive:e=>!e.layout||!e.layout?.type||"default"===e.layout?.type||"constrained"===e.layout?.type,icon:Fc},{name:"group-row",title:(0,Je._x)("Row","single horizontal line"),description:(0,Je.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&(!e.layout?.orientation||"horizontal"===e.layout?.orientation),icon:Qc},{name:"group-stack",title:(0,Je.__)("Stack"),description:(0,Je.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&"vertical"===e.layout?.orientation,icon:Kc}];window?.__experimentalEnableGroupGridVariation&&Yc.push({name:"group-grid",title:(0,Je.__)("Grid"),description:(0,Je.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:e=>"grid"===e.layout?.type,icon:Jc});var Xc=Yc;const eu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},allowedBlocks:{type:"array"}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0}},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:tu}=eu,nu={icon:Fc,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,Je.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,Je.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,Je.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,Je.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,Je.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,Je.__)("Six.")}}]},transforms:Zc,edit:Wc,save:function({attributes:{tagName:e}}){return(0,qe.createElement)(e,{...Ye.useInnerBlocksProps.save(Ye.useBlockProps.save())})},deprecated:Oc,variations:Xc},ou=()=>Qe({name:tu,metadata:eu,settings:nu});var au=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"}));const ru={className:!1,anchor:!0},lu={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},iu=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:n,...o}=e;return{...o,style:t}},su=["left","right","center"],cu=e=>{const{align:t,...n}=e;return su.includes(t)?{...n,textAlign:t}:e},uu={supports:ru,attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,level:n,content:o,textColor:a,customTextColor:r}=e,l="h"+n,i=(0,Ye.getColorClassName)("color",a),s=it()({[i]:i});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{textAlign:t,color:i?void 0:r},value:o})}},mu={attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:a,textColor:r}=e,l="h"+a,i=(0,Ye.getColorClassName)("color",r),s=it()({[i]:i,[`has-text-align-${t}`]:t});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:o},value:n})},supports:ru},pu={supports:ru,attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:a,textColor:r}=e,l="h"+a,i=(0,Ye.getColorClassName)("color",r),s=it()({[i]:i,"has-text-color":r||o,[`has-text-align-${t}`]:t});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:o},value:n})}},du={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:lu,isEligible:({align:e})=>su.includes(e),migrate:cu,save({attributes:e}){const{align:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},gu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}};var hu=[gu,du,pu,mu,uu],_u=n(4793),bu=n.n(_u);const fu={},vu=e=>bu()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),yu=(e,t)=>{const n=vu(t);if(""===n)return null;delete fu[e];let o=n,a=0;for(;Object.values(fu).includes(o);)a+=1,o=n+"-"+a;return o},ku=(e,t)=>{fu[e]=t};var xu=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o,style:a,clientId:r}){const{textAlign:l,content:i,level:s,placeholder:c,anchor:u}=e,m="h"+s,p=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${l}`]:l}),style:a}),{canGenerateAnchors:d}=(0,ut.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:n}=e(Ye.store);return{canGenerateAnchors:!!n().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,ut.useDispatch)(Ye.store);return(0,qe.useEffect)((()=>{if(d)return!u&&i&&(g(),t({anchor:yu(r,i)})),ku(r,u),()=>ku(r,null)}),[u,i,r,d]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:s,onChange:e=>t({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.RichText,{identifier:"content",tagName:m,value:i,onChange:e=>{const n={content:e};!d||u&&e&&yu(r,i)!==u||(n.anchor=yu(r,e)),t(n)},onMerge:n,onSplit:(t,n)=>{let o;var a;n||t?o=(0,je.createBlock)("core/heading",{...e,content:t}):o=(0,je.createBlock)(null!==(a=(0,je.getDefaultBlockName)())&&void 0!==a?a:"core/heading");return n&&(o.clientId=r),o},onReplace:o,onRemove:()=>o([]),"aria-label":(0,Je.__)("Heading text"),placeholder:c||(0,Je.__)("Heading"),textAlign:l,...qe.Platform.isNative&&{deleteEnter:!0},...p}))};const{name:wu}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},Cu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,anchor:t,align:n})=>(0,je.createBlock)(wu,{content:e,anchor:t,textAlign:n})))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=(0,je.getBlockAttributes)(wu,e.outerHTML),{textAlign:n}=e.style||{};var o;return t.level=(o=e.nodeName,Number(o.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,je.createBlock)(wu,t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,je.createBlock)(wu,{level:e,content:t})}}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform(t){return(0,je.createBlock)(wu,{level:e,content:t})}})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,textAlign:t})=>(0,je.createBlock)("core/paragraph",{content:e,align:t})))}]};var Eu=Cu;const Su={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Bu}=Su,Tu={icon:au,example:{attributes:{content:(0,Je.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){const{content:n,level:o}=e;return"list-view"===t&&n?n:"accessibility"===t?n&&0!==n.length?(0,Je.sprintf)((0,Je.__)("Level %1$s. %2$s"),o,n):(0,Je.sprintf)((0,Je.__)("Level %s. Empty."),o):void 0},transforms:Eu,deprecated:hu,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:xu,save:function({attributes:e}){const{textAlign:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},Nu=()=>Qe({name:Bu,metadata:Su,settings:Tu});var Pu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));const Iu=e=>e.preventDefault();const Mu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:zu}=Mu,Ru={icon:Pu,edit:function({attributes:e,setAttributes:t,context:n}){const{homeUrl:o}=(0,ut.useSelect)((e=>{const{getUnstableBase:t}=e(ct.store);return{homeUrl:t()?.home}}),[]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,ut.useDispatch)(Ye.store),{textColor:r,backgroundColor:l,style:i}=n,s=(0,Ye.useBlockProps)({className:it()("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!l||!!i?.color?.background,[`has-${l}-background-color`]:!!l}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}}),{label:c}=e;return(0,qe.useEffect)((()=>{void 0===c&&(a(),t({label:(0,Je.__)("Home")}))}),[c]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...s},(0,qe.createElement)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:Iu},(0,qe.createElement)(Ye.RichText,{identifier:"label",className:"wp-block-home-link__label",value:c,onChange:e=>{t({label:e})},"aria-label":(0,Je.__)("Home link text"),placeholder:(0,Je.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},example:{attributes:{label:(0,Je._x)("Home Link","block example")}}},Hu=()=>Qe({name:zu,metadata:Mu,settings:Ru});var Lu=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));const Au="\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n";function Vu({content:e,isSelected:t}){const n=(0,ut.useSelect)((e=>e(Ye.store).getSettings()?.styles),[]),o=(0,qe.useMemo)((()=>[Au,...(0,Ye.transformStyles)(n)]),[n]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.SandBox,{html:e,styles:o}),!t&&(0,qe.createElement)("div",{className:"block-library-html__preview-overlay"}))}var Du={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,je.createBlock)("core/html",{content:e})}]};const Fu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:$u}=Fu,Gu={icon:Lu,example:{attributes:{content:"<marquee>"+(0,Je.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function({attributes:e,setAttributes:t,isSelected:n}){const[o,a]=(0,qe.useState)(),r=(0,qe.useContext)(Ke.Disabled.Context);return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"block-library-html__edit"})},(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){a(!1)}},"HTML"),(0,qe.createElement)(Ke.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){a(!0)}},(0,Je.__)("Preview")))),o||r?(0,qe.createElement)(Vu,{content:e.content,isSelected:n}):(0,qe.createElement)(Ye.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:(0,Je.__)("Write HTML…"),"aria-label":(0,Je.__)("HTML")}))},save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.content)},transforms:Du},Ou=()=>Qe({name:$u,metadata:Fu,settings:Gu}),Uu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i}=e,s=l||i?{width:l,height:i}:{},c=(0,qe.createElement)("img",{src:t,alt:n,...s});let u={};return l?u={width:l}:"left"!==a&&"right"!==a||(u={maxWidth:"50%"}),(0,qe.createElement)("figure",{className:a?`align${a}`:null,style:u},r?(0,qe.createElement)("a",{href:r},c):c,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},ju={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i,id:s}=e,c=(0,qe.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,qe.createElement)("figure",{className:a?`align${a}`:null},r?(0,qe.createElement)("a",{href:r},c):c,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},qu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i,id:s}=e,c=it()({[`align${a}`]:a,"is-resized":l||i}),u=(0,qe.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,qe.createElement)("figure",{className:c},r?(0,qe.createElement)("a",{href:r},u):u,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},Wu={attributes:{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"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,id:u,linkTarget:m,sizeSlug:p,title:d}=e,g=l||void 0,h=it()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":s||c}),_=(0,qe.createElement)("img",{src:t,alt:n,className:u?`wp-image-${u}`:null,width:s,height:c,title:d}),b=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:m,rel:g},_):_,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?(0,qe.createElement)("div",{...Ye.useBlockProps.save()},(0,qe.createElement)("figure",{className:h},b)):(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:h})},b)}},Zu={attributes:{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"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,id:u,linkTarget:m,sizeSlug:p,title:d}=e,g=l||void 0,h=it()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":s||c}),_=(0,qe.createElement)("img",{src:t,alt:n,className:u?`wp-image-${u}`:null,width:s,height:c,title:d}),b=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:m,rel:g},_):_,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:h})},b)}},Qu={save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetElementClassName)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=it()(b.className,{[`wp-image-${p}`]:!!p}),y=(0,qe.createElement)("img",{src:t,alt:n,className:v||void 0,style:{...b.style,aspectRatio:u,objectFit:m},width:s,height:c,title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},y):y,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)}};var Ku=[Qu,Zu,Wu,qu,ju,Uu];var Ju=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"}));var Yu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));var Xu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));function em(e,t){const[n,o]=(0,qe.useState)();function a(){o(e.current?.clientWidth)}return(0,qe.useEffect)(a,t),(0,qe.useEffect)((()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",a),()=>{t.removeEventListener("resize",a)}}),[]),n}const{DimensionsTool:tm,ResolutionTool:nm}=Yt(Ye.privateApis),om=[{value:"cover",label:(0,Je._x)("Cover","Scale option for dimensions control"),help:(0,Je.__)("Image covers the space evenly.")},{value:"contain",label:(0,Je._x)("Contain","Scale option for dimensions control"),help:(0,Je.__)("Image is contained without distortion.")}];function am({temporaryURL:e,attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,onReplace:r,onSelectImage:l,onSelectURL:i,onUploadError:s,containerRef:c,context:u,clientId:m,blockEditingMode:p}){const{url:d="",alt:g,caption:h,align:_,id:b,href:f,rel:v,linkClass:y,linkDestination:k,title:x,width:w,height:C,aspectRatio:E,scale:S,linkTarget:B,sizeSlug:T}=t,N=(0,qe.useRef)(),P=(0,Tt.usePrevious)(h),[I,M]=(0,qe.useState)(!!h),{allowResize:z=!0}=u,{getBlock:R}=(0,ut.useSelect)(Ye.store),{image:H,multiImageSelection:L}=(0,ut.useSelect)((e=>{const{getMedia:t}=e(ct.store),{getMultiSelectedBlockClientIds:n,getBlockName:a}=e(Ye.store),r=n();return{image:b&&o?t(b,{context:"view"}):null,multiImageSelection:r.length&&r.every((e=>"core/image"===a(e)))}}),[b,o]),{canInsertCover:A,imageEditing:V,imageSizes:D,maxWidth:F,mediaUpload:$}=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:o}=e(Ye.store),a=t(m),r=n();return{imageEditing:r.imageEditing,imageSizes:r.imageSizes,maxWidth:r.maxWidth,mediaUpload:r.mediaUpload,canInsertCover:o("core/cover",a)}}),[m]),{replaceBlocks:G,toggleSelection:O}=(0,ut.useDispatch)(Ye.store),{createErrorNotice:U,createSuccessNotice:j}=(0,ut.useDispatch)(Bt.store),q=(0,Tt.useViewportMatch)("medium"),W=["wide","full"].includes(_),[{loadedNaturalWidth:Z,loadedNaturalHeight:Q},K]=(0,qe.useState)({}),[J,Y]=(0,qe.useState)(!1),[X,ee]=(0,qe.useState)(),te=em(c,[_]),ne="default"===p,oe=z&&ne&&!(W&&q),ae=D.filter((({slug:e})=>H?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),re=!!$;(0,qe.useEffect)((()=>{lm(b,d)&&o&&re?X||window.fetch(d.includes("?")?d:d+"?").then((e=>e.blob())).then((e=>ee(e))).catch((()=>{})):ee()}),[b,d,o,X,re]),(0,qe.useEffect)((()=>{h&&!P&&M(!0)}),[h,P]);const le=(0,qe.useCallback)((e=>{e&&!h&&e.focus()}),[h]),{naturalWidth:ie,naturalHeight:se}=(0,qe.useMemo)((()=>({naturalWidth:N.current?.naturalWidth||Z||void 0,naturalHeight:N.current?.naturalHeight||Q||void 0})),[Z,Q,N.current?.complete]);(0,qe.useEffect)((()=>{o||(Y(!1),h||M(!1))}),[o,h]);const ce=b&&ie&&se&&V,ue=!L&&ce&&!J;const me=(0,Ke.__experimentalUseCustomUnits)({availableUnits:["px"]}),pe=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},ne&&(0,qe.createElement)(Ye.BlockAlignmentControl,{value:_,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}}),ne&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{M(!I),I&&h&&n({caption:void 0})},icon:St,isPressed:I,label:I?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")}),!L&&!J&&(0,qe.createElement)(Ye.__experimentalImageURLInputUI,{url:f||"",onChangeUrl:function(e){n(e)},linkDestination:k,mediaUrl:H&&H.source_url||d,mediaLink:H&&H.link,linkTarget:B,linkClass:y,rel:v}),ue&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>Y(!0),icon:Ju,label:(0,Je.__)("Crop")}),!L&&A&&(0,qe.createElement)(Ke.ToolbarButton,{icon:Yu,label:(0,Je.__)("Add text over image"),onClick:function(){G(m,(0,je.switchToBlockType)(R(m),"core/cover"))}})),!L&&!J&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:b,mediaURL:d,allowedTypes:tc,accept:"image/*",onSelect:l,onSelectURL:i,onError:s})),!L&&X&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:function(){$({filesList:[X],onFileChange([e]){l(e),(0,Et.isBlobURL)(e.url)||(ee(),j((0,Je.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:tc,onError(e){U(e,{type:"snackbar"})}})},icon:Xu,label:(0,Je.__)("Upload external image")}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.__experimentalToolsPanel,{label:(0,Je.__)("Settings"),resetAll:()=>n({width:void 0,height:void 0,scale:void 0,aspectRatio:void 0})},!L&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{label:(0,Je.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>""!==g,onDeselect:()=>n({alt:void 0})},(0,qe.createElement)(Ke.TextareaControl,{label:(0,Je.__)("Alternative text"),value:g,onChange:function(e){n({alt:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})),(0,qe.createElement)(tm,{value:{width:w&&`${w}px`,height:C&&`${C}px`,scale:S,aspectRatio:E},onChange:e=>{n({width:e.width&&parseInt(e.width,10),height:e.height&&parseInt(e.height,10),scale:e.scale,aspectRatio:e.aspectRatio})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:om,unitsOptions:me}),(0,qe.createElement)(nm,{value:T,onChange:function(e){const t=H?.media_details?.sizes?.[e]?.source_url;if(!t)return null;n({url:t,sizeSlug:e})},options:ae}))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Title attribute"),value:x||"",onChange:function(e){n({title:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,Je.__)("Describe the role of this image on the page."),(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,Je.__)("(Note: many devices and browsers do not display this text.)")))}))),de=(0,st.getFilename)(d);let ge;ge=g||(de?(0,Je.sprintf)((0,Je.__)("This image has an empty alt attribute; its file name is %s"),de):(0,Je.__)("This image has an empty alt attribute"));const he=(0,Ye.__experimentalUseBorderProps)(t),_e=t.className?.includes("is-style-rounded");let be=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("img",{src:e||d,alt:ge,onError:()=>function(){const e=At({attributes:{url:d}});void 0!==e&&r(e)}(),onLoad:e=>{K({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:N,className:he.className,style:{width:w&&C||E?"100%":"inherit",height:w&&C||E?"100%":"inherit",objectFit:S,...he.style}}),e&&(0,qe.createElement)(Ke.Spinner,null));const fe=N.current?.width||te;if(ce&&J)be=(0,qe.createElement)(Ye.__experimentalImageEditor,{id:b,url:d,width:w,height:C,clientWidth:fe,naturalHeight:se,naturalWidth:ie,onSaveImage:e=>n(e),onFinishEditing:()=>{Y(!1)},borderProps:_e?void 0:he});else if(oe){const e=E&&function(e){const[t,n=1]=e.split("/").map(Number),o=t/n;return o===1/0||0===o?NaN:o}(E)||w&&C&&w/C||ie/se||1,t=!w&&C?C*e:w,a=!C&&w?w/e:C,r=ie<se?Qs:Qs*e,l=se<ie?Qs:Qs/e,i=2.5*F;let s=!1,c=!1;"center"===_?(s=!0,c=!0):(0,Je.isRTL)()?"left"===_?s=!0:c=!0:"right"===_?c=!0:s=!0,be=(0,qe.createElement)(Ke.ResizableBox,{style:{display:"block",objectFit:S,aspectRatio:w||C||!E?void 0:E},size:{width:null!=t?t:"auto",height:null!=a?a:"auto"},showHandle:o,minWidth:r,maxWidth:i,minHeight:l,maxHeight:i/e,lockAspectRatio:e,enable:{top:!1,right:s,bottom:!0,left:c},onResizeStart:function(){O(!1)},onResizeStop:(e,t,o)=>{O(!0),n({width:o.offsetWidth,height:o.offsetHeight,aspectRatio:void 0})},resizeRatio:"center"===_?2:1},be)}else be=(0,qe.createElement)("div",{style:{width:w,height:C,aspectRatio:E}},be);return(0,qe.createElement)(qe.Fragment,null,!e&&pe,be,I&&(!Ye.RichText.isEmpty(h)||o)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:le,tagName:"figcaption","aria-label":(0,Je.__)("Image caption text"),placeholder:(0,Je.__)("Add caption"),value:h,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}const{useBlockEditingMode:rm}=Yt(Ye.privateApis),lm=(e,t)=>t&&!e&&!(0,Et.isBlobURL)(t);var im=function({attributes:e,setAttributes:t,isSelected:n,className:o,insertBlocksAfter:a,onReplace:r,context:l,clientId:i}){const{url:s="",alt:c,caption:u,align:m,id:p,width:d,height:g,sizeSlug:h}=e,[_,b]=(0,qe.useState)(),f=(0,qe.useRef)();(0,qe.useEffect)((()=>{f.current=c}),[c]);const v=(0,qe.useRef)();(0,qe.useEffect)((()=>{v.current=u}),[u]);const y=(0,qe.useRef)(),{imageDefaultSize:k,mediaUpload:x}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),n=t();return{imageDefaultSize:n.imageDefaultSize,mediaUpload:n.mediaUpload}}),[]),w=rm(),{createErrorNotice:C}=(0,ut.useDispatch)(Bt.store);function E(e){C(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0}),b(void 0)}function S(n){if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,Et.isBlobURL)(n.url))return void b(n.url);b();let o,a=((e,t)=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,n})(n,k);if(v.current&&!a.caption){const{caption:e,...t}=a;a=t}var r,l,i,c;o=n.id&&n.id===p?{url:s}:{sizeSlug:(r=n,l=k,"url"in(null!==(i=r?.sizes?.[l])&&void 0!==i?i:{})||"source_url"in(null!==(c=r?.media_details?.sizes?.[l])&&void 0!==c?c:{})?k:"full")};let u,m=e.linkDestination;if(!m)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Ks){case"file":case Js:m=Js;break;case"post":case Ys:m=Ys;break;case Xs:m=Xs;break;case Ks:m=Ks}switch(m){case Js:u=n.url;break;case Ys:u=n.link}a.href=u,t({...a,...o,linkDestination:m})}function B(e){e!==s&&t({url:e,id:void 0,sizeSlug:k})}let T=((e,t)=>!e&&(0,Et.isBlobURL)(t))(p,s);(0,qe.useEffect)((()=>{if(!T)return;const e=(0,Et.getBlobByURL)(s);e&&x({filesList:[e],onFileChange:([e])=>{S(e)},allowedTypes:tc,onError:e=>{T=!1,E(e)}})}),[]),(0,qe.useEffect)((()=>{T?b(s):(0,Et.revokeBlobURL)(_)}),[T,s]);const N=lm(p,s)?s:void 0,P=!!s&&(0,qe.createElement)("img",{alt:(0,Je.__)("Edit image"),title:(0,Je.__)("Edit image"),className:"edit-image-preview",src:s}),I=(0,Ye.__experimentalUseBorderProps)(e),M=it()(o,{"is-transient":_,"is-resized":!!d||!!g,[`size-${h}`]:h,"has-custom-border":!!I.className||I.style&&Object.keys(I.style).length>0}),z=(0,Ye.useBlockProps)({ref:y,className:M});return(0,qe.createElement)("figure",{...z},(_||s)&&(0,qe.createElement)(am,{temporaryURL:_,attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a,onReplace:r,onSelectImage:S,onSelectURL:B,onUploadError:E,containerRef:y,context:l,clientId:i,blockEditingMode:w}),!s&&"default"===w&&(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.BlockAlignmentControl,{value:m,onChange:function(e){const n=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...n,align:e})}})),(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:_c}),onSelect:S,onSelectURL:B,onError:E,placeholder:e=>(0,qe.createElement)(Ke.Placeholder,{className:it()("block-editor-media-placeholder",{[I.className]:!!I.className&&!n}),withIllustration:!0,icon:_c,label:(0,Je.__)("Image"),instructions:(0,Je.__)("Upload an image file, pick one from your media library, or add one with a URL."),style:n?void 0:I.style},e),accept:"image/*",allowedTypes:tc,value:{id:p,src:N},mediaPreview:P,disableMediaButtons:_||s}))};function sm(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:o}=n;if(o&&"A"===o.nodeName)return o.getAttribute(t)||void 0}const cm={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},um={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...cm,a:{attributes:["href","rel","target"],children:cm},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),o=""===e.id?void 0:e.id,a=n?n[1]:void 0,r=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=r?Number(r[1]):void 0,i=e.querySelector("a"),s=i&&i.href?"custom":void 0,c=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,m=i&&i.className?i.className:void 0,p=(0,je.getBlockAttributes)("core/image",e.outerHTML,{align:a,id:l,linkDestination:s,href:c,rel:u,linkClass:m,anchor:o});return(0,je.createBlock)("core/image",p)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,ut.dispatch)(Bt.store);e((0,Je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file",type:"snackbar"})}return e.every((e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,je.createBlock)("core/image",{url:(0,Et.createBlobURL)(e)})));return t}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let o=n.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==n;)o=o.parentNode;return o&&o.parentNode.removeChild(o),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>sm(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>sm(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>sm(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};var mm=um;const pm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,behaviors:{lightbox:!0},color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:dm}=pm,gm={icon:_c,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Je.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:n,url:o}=e;return o?n?n+(t?". "+t:""):t||"":(0,Je.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:mm,edit:im,save:function({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=it()(b.className,{[`wp-image-${p}`]:!!p}),y=(0,qe.createElement)("img",{src:t,alt:n,className:v||void 0,style:{...b.style,aspectRatio:u,objectFit:m,width:s,height:c},width:s,height:c,title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},y):y,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)},deprecated:Ku},hm=()=>Qe({name:dm,metadata:pm,settings:gm});var _m=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const bm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:fm}=bm,vm={icon:_m,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:o,displayDate:a,displayExcerpt:r}=e,l={...e,style:{...e?.style,spacing:void 0}};return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display avatar"),checked:o,onChange:()=>t({displayAvatar:!o})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display date"),checked:a,onChange:()=>t({displayDate:!a})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display excerpt"),checked:r,onChange:()=>t({displayExcerpt:!r})}),(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})))}},ym=()=>Qe({name:fm,metadata:bm,settings:vm});var km=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:xm}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var wm=[{attributes:{...xm,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}];var Cm=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));const Em={per_page:-1,context:"view"},Sm={per_page:-1,has_published_posts:["post"],context:"view"};const Bm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Tm}=Bm,Nm={icon:km,example:{},edit:function e({attributes:t,setAttributes:n}){var o;const a=(0,Tt.useInstanceId)(e),{postsToShow:r,order:l,orderBy:i,categories:s,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:m,displayPostContent:p,displayPostDate:d,displayAuthor:g,postLayout:h,columns:_,excerptLength:b,featuredImageAlign:f,featuredImageSizeSlug:v,featuredImageSizeWidth:y,featuredImageSizeHeight:k,addLinkToFeaturedImage:x}=t,{imageSizes:w,latestPosts:C,defaultImageWidth:E,defaultImageHeight:S,categoriesList:B,authorList:T}=(0,ut.useSelect)((e=>{var t,n;const{getEntityRecords:o,getUsers:a}=e(ct.store),u=e(Ye.store).getSettings(),m=s&&s.length>0?s.map((e=>e.id)):[],p=Object.fromEntries(Object.entries({categories:m,author:c,order:l,orderby:i,per_page:r,_embed:"wp:featuredmedia"}).filter((([,e])=>void 0!==e)));return{defaultImageWidth:null!==(t=u.imageDimensions?.[v]?.width)&&void 0!==t?t:0,defaultImageHeight:null!==(n=u.imageDimensions?.[v]?.height)&&void 0!==n?n:0,imageSizes:u.imageSizes,latestPosts:o("postType","post",p),categoriesList:o("taxonomy","category",Em),authorList:a(Sm)}}),[v,r,l,i,s,c]),{createWarningNotice:N,removeNotice:P}=(0,ut.useDispatch)(Bt.store);let I;const M=e=>{e.preventDefault(),P(I),I=`block-library/core/latest-posts/redirection-prevented/${a}`,N((0,Je.__)("Links are disabled in the editor."),{id:I,type:"snackbar"})},z=w.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),R=null!==(o=B?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==o?o:{},H=!!C?.length,L=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Post content")},(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Post content"),checked:p,onChange:e=>n({displayPostContent:e})}),p&&(0,qe.createElement)(Ke.RadioControl,{label:(0,Je.__)("Show:"),selected:m,options:[{label:(0,Je.__)("Excerpt"),value:"excerpt"},{label:(0,Je.__)("Full post"),value:"full_post"}],onChange:e=>n({displayPostContentRadio:e})}),p&&"excerpt"===m&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Max number of words"),value:b,onChange:e=>n({excerptLength:e}),min:10,max:100})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Post meta")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display author name"),checked:g,onChange:e=>n({displayAuthor:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display post date"),checked:d,onChange:e=>n({displayPostDate:e})})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Featured image")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display featured image"),checked:u,onChange:e=>n({displayFeaturedImage:e})}),u&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:v,width:y,height:k,imageWidth:E,imageHeight:S,imageSizeOptions:z,imageSizeHelp:(0,Je.__)("Select the size of the source image."),onChangeImage:e=>n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,qe.createElement)(Ke.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Image alignment")),(0,qe.createElement)(Ye.BlockAlignmentToolbar,{value:f,onChange:e=>n({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Add link to featured image"),checked:x,onChange:e=>n({addLinkToFeaturedImage:e})}))),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Sorting and filtering")},(0,qe.createElement)(Ke.QueryControls,{order:l,orderBy:i,numberOfItems:r,onOrderChange:e=>n({order:e}),onOrderByChange:e=>n({orderBy:e}),onNumberOfItemsChange:e=>n({postsToShow:e}),categorySuggestions:R,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!R[e])))return;const t=e.map((e=>"string"==typeof e?R[e]:e));if(t.includes(null))return!1;n({categories:t})},selectedCategories:s,onAuthorChange:e=>n({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=T?T:[],selectedAuthorId:c}),"grid"===h&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:_,onChange:e=>n({columns:e}),min:2,max:H?Math.min(6,C.length):6,required:!0}))),A=(0,Ye.useBlockProps)({className:it()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":g,[`columns-${_}`]:"grid"===h})});if(!H)return(0,qe.createElement)("div",{...A},L,(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Latest Posts")},Array.isArray(C)?(0,Je.__)("No posts found."):(0,qe.createElement)(Ke.Spinner,null)));const V=C.length>r?C.slice(0,r):C,D=[{icon:Cm,title:(0,Je.__)("List view"),onClick:()=>n({postLayout:"list"}),isActive:"list"===h},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===h}],F=(0,ha.getSettings)().formats.date;return(0,qe.createElement)("div",null,L,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:D})),(0,qe.createElement)("ul",{...A},V.map((e=>{const t=e.title.rendered.trim();let n=e.excerpt.rendered;const o=T?.find((t=>t.id===e.author)),a=document.createElement("div");a.innerHTML=n,n=a.textContent||a.innerText||"";const{url:r,alt:l}=function(e,t){var n;const o=e._embedded?.["wp:featuredmedia"]?.[0];return{url:null!==(n=o?.media_details?.sizes?.[t]?.source_url)&&void 0!==n?n:o?.source_url,alt:o?.alt_text}}(e,v),i=it()({"wp-block-latest-posts__featured-image":!0,[`align${f}`]:!!f}),s=u&&r,c=s&&(0,qe.createElement)("img",{src:r,alt:l,style:{maxWidth:y,maxHeight:k}}),h=b<n.trim().split(" ").length&&""===e.excerpt.raw?(0,qe.createElement)(qe.Fragment,null,n.trim().split(" ",b).join(" "),(0,qe.createInterpolateElement)((0,Je.__)(" … <a>Read more</a>"),{a:(0,qe.createElement)("a",{href:e.link,rel:"noopener noreferrer",onClick:M})})):n;return(0,qe.createElement)("li",{key:e.id},s&&(0,qe.createElement)("div",{className:i},x?(0,qe.createElement)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener",onClick:M},c):c),(0,qe.createElement)("a",{href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:M},t?null:(0,Je.__)("(no title)")),g&&o&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-author"},(0,Je.sprintf)((0,Je.__)("by %s"),o.name)),d&&e.date_gmt&&(0,qe.createElement)("time",{dateTime:(0,ha.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},(0,ha.dateI18n)(F,e.date_gmt)),p&&"excerpt"===m&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},h),p&&"full_post"===m&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}}))}))))},deprecated:wm},Pm=()=>Qe({name:Tm,metadata:Bm,settings:Nm});function Im(e){const{values:t,start:n,reversed:o,ordered:a,type:r,...l}=e,i=document.createElement(a?"ol":"ul");i.innerHTML=t,n&&i.setAttribute("start",n),o&&i.setAttribute("reversed",!0),r&&i.setAttribute("type",r);const[s]=(0,je.rawHandler)({HTML:i.outerHTML});return[{...l,...s.attributes},s.innerBlocks]}const Mm={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:a,start:r}=e,l=t?"ol":"ul";return(0,qe.createElement)(l,{...Ye.useBlockProps.save({type:o,reversed:a,start:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n,multiline:"li"}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},zm={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:a,start:r}=e,l=t?"ol":"ul";return(0,qe.createElement)(l,{...Ye.useBlockProps.save({type:o,reversed:a,start:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n,multiline:"li"}))},migrate:Im};var Rm=[zm,Mm];var Hm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var Lm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var Am=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var Vm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var Dm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var Fm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),$m=window.wp.deprecated,Gm=n.n($m);var Om=({setAttributes:e,reversed:t,start:n,type:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Ordered list settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Numbering style"),options:[{value:"1",label:(0,Je.__)("Numbers")},{value:"A",label:(0,Je.__)("Uppercase letters")},{value:"a",label:(0,Je.__)("Lowercase letters")},{value:"I",label:(0,Je.__)("Uppercase Roman numerals")},{value:"i",label:(0,Je.__)("Lowercase Roman numerals")}],value:o,onChange:t=>e({type:t})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));var Um=(0,qe.forwardRef)((function(e,t){const{ordered:n,...o}=e,a=n?"ol":"ul";return(0,qe.createElement)(a,{ref:t,...o})}));const jm=[["core/list-item"]];function qm({clientId:e}){const[t,n]=function(e){const{canOutdent:t}=(0,ut.useSelect)((t=>{const{getBlockRootClientId:n,getBlock:o}=t(Ye.store),a=n(e);return{canOutdent:!!a&&"core/list-item"===o(a).name}}),[e]),{replaceBlocks:n,selectionChange:o}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:a,getBlockAttributes:r,getBlock:l}=(0,ut.useSelect)(Ye.store);return[t,(0,qe.useCallback)((()=>{const t=a(e),i=r(t),s=(0,je.createBlock)("core/list-item",i),{innerBlocks:c}=l(e);n([t],[s,...c]),o(c[c.length-1].clientId)}),[e])]}(e);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Hm:Lm,title:(0,Je.__)("Outdent"),describedBy:(0,Je.__)("Outdent list item"),disabled:!t,onClick:n}))}function Wm({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function Zm(e){return e.flatMap((({name:e,attributes:t,innerBlocks:n=[]})=>"core/list-item"===e?[t.content,...Zm(n)]:Zm(n)))}const Qm={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,je.createBlock)("core/list-item",{content:e})));else if(1===e.length){const n=(0,Cn.create)({html:e[0].content});t=(0,Cn.split)(n,"\n").map((e=>(0,je.createBlock)("core/list-item",{content:(0,Cn.toHTMLString)({value:e})})))}return(0,je.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:Wm(e).ol,ul:Wm(e).ul}),transform:function e(t){var n;const o={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:null!==(n=t.getAttribute("type"))&&void 0!==n?n:void 0},a=Array.from(t.children).map((t=>{const n=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));n.reverse();const[o,...a]=n;if(!("UL"===o?.tagName||"OL"===o?.tagName))return(0,je.createBlock)("core/list-item",{content:t.innerHTML});const r=a.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));r.reverse();const l={content:r.join("").trim()},i=[e(o)];return(0,je.createBlock)("core/list-item",l,i)}));return(0,je.createBlock)("core/list",o,a)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform(e){return(0,je.createBlock)("core/list",{},[(0,je.createBlock)("core/list-item",{content:e})])}}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform(e){return(0,je.createBlock)("core/list",{ordered:!0},[(0,je.createBlock)("core/list-item",{content:e})])}})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>Zm(n).map((t=>(0,je.createBlock)(e,{content:t})))})))]};var Km=Qm;const Jm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:Ym}=Jm,Xm={icon:Cm,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Je.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Queen of Hearts.")}}]},transforms:Km,edit:function({attributes:e,setAttributes:t,clientId:n,style:o}){const a=(0,Ye.useBlockProps)({...qe.Platform.isNative&&{style:o}}),r=(0,Ye.useInnerBlocksProps)(a,{allowedBlocks:["core/list-item"],template:jm,templateLock:!1,templateInsertUpdatesSelection:!0,...qe.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1}});!function(e,t){const n=(0,ut.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{if(!e.values)return;const[r,l]=Im(e);Gm()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,r),a(t,l)}))}),[e.values])}(e,n);const{ordered:l,type:i,reversed:s,start:c}=e,u=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Am:Vm,title:(0,Je.__)("Unordered"),describedBy:(0,Je.__)("Convert to unordered list"),isActive:!1===l,onClick:()=>{t({ordered:!1})}}),(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Dm:Fm,title:(0,Je.__)("Ordered"),describedBy:(0,Je.__)("Convert to ordered list"),isActive:!0===l,onClick:()=>{t({ordered:!0})}}),(0,qe.createElement)(qm,{clientId:n}));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Um,{ordered:l,reversed:s,start:c,type:i,...r}),u,l&&(0,qe.createElement)(Om,{setAttributes:t,reversed:s,start:c,type:i}))},save:function({attributes:e}){const{ordered:t,type:n,reversed:o,start:a}=e,r=t?"ol":"ul";return(0,qe.createElement)(r,{...Ye.useBlockProps.save({type:n,reversed:o,start:a})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))},deprecated:Rm},ep=()=>Qe({name:Ym,metadata:Jm,settings:Xm});var tp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var np=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var op=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));function ap(e){const t=(0,ut.useSelect)((t=>t(Ye.store).getBlockIndex(e)>0),[e]),{replaceBlocks:n,selectionChange:o,multiSelect:a}=(0,ut.useDispatch)(Ye.store),{getBlock:r,getPreviousBlockClientId:l,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,ut.useSelect)(Ye.store);return[t,(0,qe.useCallback)((()=>{const t=c(),m=t?u():[e],p=m.map((e=>(0,je.cloneBlock)(r(e)))),d=l(e),g=(0,je.cloneBlock)(r(d));g.innerBlocks?.length||(g.innerBlocks=[(0,je.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),_=s();n([d,...m],[g]),t?a(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,_.attributeKey,_.clientId===h.clientId?h.offset:_.offset,_.offset)}),[e])]}const{name:rp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}};function lp(e){const t=(0,ut.useRegistry)(),{canOutdent:n}=(0,ut.useSelect)((t=>{const{getBlockRootClientId:n,getBlockName:o}=t(Ye.store);return{canOutdent:o(n(n(e)))===rp}}),[e]),{moveBlocksToPosition:o,removeBlock:a,insertBlock:r,updateBlockListSettings:l}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:i,getBlockName:s,getBlockOrder:c,getBlockIndex:u,getSelectedBlockClientIds:m,getBlock:p,getBlockListSettings:d}=(0,ut.useSelect)(Ye.store);return[n,(0,qe.useCallback)(((e=m())=>{if(Array.isArray(e)||(e=[e]),!e.length)return;const n=e[0];if(s(n)!==rp)return;const g=function(e){const t=i(e),n=i(t);if(n&&s(n)===rp)return n}(n);if(!g)return;const h=i(n),_=e[e.length-1],b=c(h).slice(u(_)+1);t.batch((()=>{if(b.length){let e=c(n)[0];if(!e){const t=(0,je.cloneBlock)(p(h),{},[]);e=t.clientId,r(t,0,n,!1),l(e,d(h))}o(b,h,e)}if(o(e,h,i(g),u(g)+1),!c(h).length){a(h,!1)}}))}),[])]}function ip(e){const{getBlockRootClientId:t,getBlockName:n,getBlockAttributes:o}=(0,ut.useSelect)(Ye.store);return(0,Tt.useRefEffect)((a=>{function r(a){if(a.clipboardData.getData("__unstableWrapperBlockName"))return;const r=t(e);a.clipboardData.setData("__unstableWrapperBlockName",n(r)),a.clipboardData.setData("__unstableWrapperBlockAttributes",JSON.stringify(o(r)))}return a.addEventListener("copy",r),a.addEventListener("cut",r),()=>{a.removeEventListener("copy",r),a.removeEventListener("cut",r)}}),[])}const{name:sp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}};function cp(e,t){const n=(0,ut.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:a,getBlockOrder:r,getBlockRootClientId:l,getBlockName:i}=(0,ut.useSelect)(Ye.store),{mergeBlocks:s,moveBlocksToPosition:c}=(0,ut.useDispatch)(Ye.store),[,u]=lp(e);function m(e){const t=r(e);return t.length?m(t[t.length-1]):e}function p(e){const t=l(e),n=l(t);if(n&&i(n)===sp)return n}function d(e){const t=a(e);if(t)return t;const n=p(e);return n?d(n):void 0}function g(e){const t=r(e);return t.length?r(t[0])[0]:d(e)}return a=>{if(a){const l=g(e);if(!l)return void t(a);p(l)?u(l):n.batch((()=>{c(r(l),l,o(l)),s(e,l)}))}else{const l=o(e);if(p(e))u(e);else if(l){const t=m(l);n.batch((()=>{c(r(e),e,l),s(t,e)}))}else t(a)}}}const{name:up}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:mp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:pp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};function dp(e){const t=(0,je.switchToBlockType)(e,mp);if(t)return t;const n=(0,je.switchToBlockType)(e,pp);return n?(0,je.switchToBlockType)(n,mp):null}function gp({clientId:e}){const[t,n]=ap(e),[o,a]=lp(e);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Hm:Lm,title:(0,Je.__)("Outdent"),describedBy:(0,Je.__)("Outdent list item"),disabled:!o,onClick:()=>a()}),(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?np:op,title:(0,Je.__)("Indent"),describedBy:(0,Je.__)("Indent list item"),isDisabled:!t,onClick:()=>n()}))}const hp={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,je.createBlock)("core/paragraph",e),...t.map((e=>(0,je.cloneBlock)(e)))]}]};var _p=hp;const bp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:fp}=bp,vp={icon:tp,edit:function({attributes:e,setAttributes:t,onReplace:n,clientId:o,mergeBlocks:a}){const{placeholder:r,content:l}=e,i=(0,Ye.useBlockProps)({ref:ip(o)}),s=(0,Ye.useInnerBlocksProps)(i,{allowedBlocks:["core/list"],renderAppender:!1,__unstableDisableDropZone:!0}),c=function(e){const{replaceBlocks:t,selectionChange:n}=(0,ut.useDispatch)(Ye.store),{getBlock:o,getBlockRootClientId:a,getBlockIndex:r}=(0,ut.useSelect)(Ye.store),l=(0,qe.useRef)(e);l.current=e;const[i,s]=lp(l.current.clientId);return(0,Tt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==un.ENTER)return;const{content:c,clientId:u}=l.current;if(c.length)return;if(e.preventDefault(),i)return void s();const m=o(a(u)),p=r(u),d=(0,je.cloneBlock)({...m,innerBlocks:m.innerBlocks.slice(0,p)}),g=(0,je.createBlock)((0,je.getDefaultBlockName)()),h=[...m.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...m.innerBlocks.slice(p+1)],_=h.length?[(0,je.cloneBlock)({...m,innerBlocks:h})]:[];t(m.clientId,[d,g,..._],1),n(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[i])}({content:l,clientId:o}),u=function(e){const{getSelectionStart:t,getSelectionEnd:n}=(0,ut.useSelect)(Ye.store),[o,a]=ap(e);return(0,Tt.useRefEffect)((e=>{function r(e){const{keyCode:r,shiftKey:l,altKey:i,metaKey:s,ctrlKey:c}=e;if(e.defaultPrevented||!o||r!==un.SPACE||l||i||s||c)return;const u=t(),m=n();0===u.offset&&0===m.offset&&(e.preventDefault(),a())}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[o,a])}(o),m=function(e){const t=(0,qe.useRef)(!1),{getBlock:n}=(0,ut.useSelect)(Ye.store);return(0,qe.useCallback)((o=>{const a=n(e);return t.current?(0,je.cloneBlock)(a,{content:o}):(t.current=!0,(0,je.createBlock)(a.name,{...a.attributes,content:o}))}),[e,n])}(o),p=cp(o,a);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("li",{...s},(0,qe.createElement)(Ye.RichText,{ref:(0,Tt.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:l,"aria-label":(0,Je.__)("List text"),placeholder:r||(0,Je.__)("List"),onSplit:m,onMerge:p,onReplace:n?(e,...t)=>{n(function(e){const t=[];for(let n of e)if(n.name===up)t.push(n);else if(n.name===mp)t.push(...n.innerBlocks);else if(n=dp(n))for(const{innerBlocks:e}of n)t.push(...e);return t}(e),...t)}:void 0}),s.children),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(gp,{clientId:o})))},save:function({attributes:e}){return(0,qe.createElement)("li",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{value:e.content}),(0,qe.createElement)(Ye.InnerBlocks.Content,null))},merge(e,t){return{...e,content:e.content+t.content}},transforms:_p},yp=()=>Qe({name:fp,metadata:bp,settings:vp});var kp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const xp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:wp}=xp,Cp={icon:kp,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:o}=e;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"logged-in"})},(0,qe.createElement)("a",{href:"#login-pseudo-link"},(0,Je.__)("Log out"))))}},Ep=()=>Qe({name:wp,metadata:xp,settings:Cp});var Sp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"}));const Bp="full",Tp="media",Np="attachment",Pp=[["core/paragraph",{placeholder:(0,Je._x)("Content…","content placeholder")}]],Ip=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Mp=50,zp=()=>{},Rp=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:n,...o}=e;return{...o,style:t}},Hp=e=>e.align?e:{...e,align:"wide"},Lp={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}},Ap={...Lp,mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},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"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Vp={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Dp={attributes:{...Ap,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},mediaType:{type:"string",__experimentalRole:"content"}},supports:{...Vp,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?((e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{})(r,u):{};let x;l!==Mp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hp,isEligible(e,t,{block:n}){const{attributes:o}=n;return void 0===e.align&&!!o.className?.includes("alignwide")}},Fp={attributes:Ap,supports:Vp,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Ip(r,u):{};let x;l!==Mp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hp},$p={attributes:Ap,supports:Vp,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Ip(r,u):{};let x;l!==Mp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hp},Gp={attributes:{...Lp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},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"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Tt.compose)(Rp,Hp),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:u,imageFill:m,focalPoint:p,linkClass:d,href:g,linkTarget:h,rel:_}=e,b=_||void 0;let f=(0,qe.createElement)("img",{src:i,alt:a,className:c&&"image"===l?`wp-image-${c}`:null});g&&(f=(0,qe.createElement)("a",{className:d,href:g,target:h,rel:b},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},y=(0,Ye.getColorClassName)("background-color",t),k=it()({"has-media-on-the-right":"right"===r,"has-background":y||n,[y]:y,"is-stacked-on-mobile":o,[`is-vertically-aligned-${u}`]:u,"is-image-fill":m}),x=m?Ip(i,p):{};let w;s!==Mp&&(w="right"===r?`auto ${s}%`:`${s}% auto`);const C={backgroundColor:y?void 0:n,gridTemplateColumns:w};return(0,qe.createElement)("div",{className:k,style:C},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:x},(v[l]||zp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},Op={attributes:{...Lp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Tt.compose)(Rp,Hp),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:u,imageFill:m,focalPoint:p}=e,d={image:()=>(0,qe.createElement)("img",{src:i,alt:a,className:c&&"image"===l?`wp-image-${c}`:null}),video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},g=(0,Ye.getColorClassName)("background-color",t),h=it()({"has-media-on-the-right":"right"===r,[g]:g,"is-stacked-on-mobile":o,[`is-vertically-aligned-${u}`]:u,"is-image-fill":m}),_=m?Ip(i,p):{};let b;s!==Mp&&(b="right"===r?`auto ${s}%`:`${s}% auto`);const f={backgroundColor:g?void 0:n,gridTemplateColumns:b};return(0,qe.createElement)("div",{className:h,style:f},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:_},(d[l]||zp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},Up={attributes:{...Lp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Hp,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s}=e,c={image:()=>(0,qe.createElement)("img",{src:i,alt:a}),video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},u=(0,Ye.getColorClassName)("background-color",t),m=it()({"has-media-on-the-right":"right"===r,[u]:u,"is-stacked-on-mobile":o});let p;s!==Mp&&(p="right"===r?`auto ${s}%`:`${s}% auto`);const d={backgroundColor:u?void 0:n,gridTemplateColumns:p};return(0,qe.createElement)("div",{className:m,style:d},(0,qe.createElement)("figure",{className:"wp-block-media-text__media"},(c[l]||zp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}};var jp=[Dp,Fp,$p,Gp,Op,Up];var qp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var Wp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));var Zp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));const Qp=["image","video"],Kp=()=>{};function Jp(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const Yp=(0,qe.forwardRef)((({isSelected:e,isStackedOnMobile:t,...n},o)=>{const a=(0,Tt.useViewportMatch)("small","<");return(0,qe.createElement)(Ke.ResizableBox,{ref:o,showHandle:e&&(!a||!t),...n})}));function Xp({mediaId:e,mediaUrl:t,onSelectMedia:n}){return(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Qp,accept:"image/*,video/*",onSelect:n}))}function ed({className:e,mediaUrl:t,onSelectMedia:n}){const{createErrorNotice:o}=(0,ut.useDispatch)(Bt.store);return(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Zp}),labels:{title:(0,Je.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",allowedTypes:Qp,onError:e=>{o(e,{type:"snackbar"})},disableMediaButtons:t})}var td=(0,qe.forwardRef)((function(e,t){const{className:n,commitWidthChange:o,focalPoint:a,imageFill:r,isSelected:l,isStackedOnMobile:i,mediaAlt:s,mediaId:c,mediaPosition:u,mediaType:m,mediaUrl:p,mediaWidth:d,onSelectMedia:g,onWidthChange:h,enableResize:_}=e,b=!c&&(0,Et.isBlobURL)(p),{toggleSelection:f}=(0,ut.useDispatch)(Ye.store);if(p){const v=()=>{f(!1)},y=(e,t,n)=>{h(parseInt(n.style.width))},k=(e,t,n)=>{f(!0),o(parseInt(n.style.width))},x={right:_&&"left"===u,left:_&&"right"===u},w="image"===m&&r?Jp(p,a):{},C={image:()=>(0,qe.createElement)("img",{src:p,alt:s}),video:()=>(0,qe.createElement)("video",{controls:!0,src:p})};return(0,qe.createElement)(Yp,{as:"figure",className:it()(n,"editor-media-container__resizer",{"is-transient":b}),style:w,size:{width:d+"%"},minWidth:"10%",maxWidth:"100%",enable:x,onResizeStart:v,onResize:y,onResizeStop:k,axis:"x",isSelected:l,isStackedOnMobile:i,ref:t},(0,qe.createElement)(Xp,{onSelectMedia:g,mediaUrl:p,mediaId:c}),(C[m]||Kp)(),b&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(ed,{...e}))}return(0,qe.createElement)(ed,{...e})}));const{useBlockEditingMode:nd}=Yt(Ye.privateApis),od=e=>Math.max(15,Math.min(e,85));function ad(e,t){return e?.media_details?.sizes?.[t]?.source_url}var rd=function({attributes:e,isSelected:t,setAttributes:n}){const{focalPoint:o,href:a,imageFill:r,isStackedOnMobile:l,linkClass:i,linkDestination:s,linkTarget:c,mediaAlt:u,mediaId:m,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h,rel:_,verticalAlignment:b,allowedBlocks:f}=e,v=e.mediaSizeSlug||Bp,{imageSizes:y,image:k}=(0,ut.useSelect)((e=>{const{getSettings:n}=e(Ye.store);return{image:m&&t?e(ct.store).getMedia(m,{context:"view"}):null,imageSizes:n()?.imageSizes}}),[t,m]),x=(0,qe.useRef)(),w=e=>{const{style:t}=x.current.resizable,{x:n,y:o}=e;t.backgroundPosition=`${100*n}% ${100*o}%`},[C,E]=(0,qe.useState)(null),S=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return o=>{if(!o||!o.url)return void n({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let a,r;(0,Et.isBlobURL)(o.url)&&(o.type=(0,Et.getBlobTypeByURL)(o.url)),a=o.media_type?"image"===o.media_type?"image":"video":o.type,"image"===a&&(r=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=t;e===Tp&&(l=o.url),e===Np&&(l=o.link),n({mediaAlt:o.alt,mediaId:o.id,mediaType:a,mediaUrl:r||o.url,mediaLink:o.link||void 0,href:l,focalPoint:void 0})}}({attributes:e,setAttributes:n}),B=e=>{n({mediaWidth:od(e)}),E(null)},T=it()({"has-media-on-the-right":"right"===p,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${b}`]:b,"is-image-fill":r}),N=`${C||h}%`,P="right"===p?`1fr ${N}`:`${N} 1fr`,I={gridTemplateColumns:P,msGridColumns:P},M=y.filter((({slug:e})=>ad(k,e))).map((({name:e,slug:t})=>({value:t,label:e}))),z=(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}),"image"===d&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop image to fill entire column"),checked:r,onChange:()=>n({imageFill:!r})}),r&&g&&"image"===d&&(0,qe.createElement)(Ke.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Focal point picker"),url:g,value:o,onChange:e=>n({focalPoint:e}),onDragStart:w,onDrag:w}),"image"===d&&(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Alternative text"),value:u,onChange:e=>{n({mediaAlt:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative."))}),"image"===d&&(0,qe.createElement)(Ye.__experimentalImageSizeControl,{onChangeImage:e=>{const t=ad(k,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:v,imageSizeOptions:M,isResizable:!1,imageSizeHelp:(0,Je.__)("Select the size of the source image.")}),g&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Media width"),value:C||h,onChange:B,min:15,max:85})),R=(0,Ye.useBlockProps)({className:T,style:I}),H=(0,Ye.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Pp,allowedBlocks:f}),L=nd();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,z),(0,qe.createElement)(Ye.BlockControls,{group:"block"},"default"===L&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:b}),(0,qe.createElement)(Ke.ToolbarButton,{icon:qp,title:(0,Je.__)("Show media on left"),isActive:"left"===p,onClick:()=>n({mediaPosition:"left"})}),(0,qe.createElement)(Ke.ToolbarButton,{icon:Wp,title:(0,Je.__)("Show media on right"),isActive:"right"===p,onClick:()=>n({mediaPosition:"right"})})),"image"===d&&(0,qe.createElement)(Ye.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:e=>{n(e)},linkDestination:s,mediaType:d,mediaUrl:k&&k.source_url,mediaLink:k&&k.link,linkTarget:c,linkClass:i,rel:_})),(0,qe.createElement)("div",{...R},"right"===p&&(0,qe.createElement)("div",{...H}),(0,qe.createElement)(td,{className:"wp-block-media-text__media",onSelectMedia:S,onWidthChange:e=>{E(od(e))},commitWidthChange:B,ref:x,enableResize:"default"===L,focalPoint:o,imageFill:r,isSelected:t,isStackedOnMobile:l,mediaAlt:u,mediaId:m,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h}),"right"!==p&&(0,qe.createElement)("div",{...H})))};const ld=()=>{};const id={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:o})=>(0,je.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>(0,je.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:n,backgroundType:o,customGradient:a,customOverlayColor:r,gradient:l,id:i,overlayColor:s,style:c,textColor:u,url:m},p)=>{let d={};return a?d={style:{color:{gradient:a}}}:r&&(d={style:{color:{background:r}}}),c?.color?.text&&(d.style={color:{...d.style?.color,text:c.color.text}}),(0,je.createBlock)("core/media-text",{align:e,anchor:n,backgroundColor:s,gradient:l,mediaAlt:t,mediaId:i,mediaType:o,mediaUrl:m,textColor:u,...d},p)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:o})=>(0,je.createBlock)("core/image",{alt:e,id:t,url:n,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>(0,je.createBlock)("core/video",{id:e,src:t,anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:n,focalPoint:o,gradient:a,mediaAlt:r,mediaId:l,mediaType:i,mediaUrl:s,style:c,textColor:u},m)=>{const p={};c?.color?.gradient?p.customGradient=c.color.gradient:c?.color?.background&&(p.customOverlayColor=c.color.background),c?.color?.text&&(p.style={color:{text:c.color.text}});const d={align:e,alt:r,anchor:t,backgroundType:i,dimRatio:s?50:100,focalPoint:o,gradient:a,id:l,overlayColor:n,textColor:u,url:s,...p};return(0,je.createBlock)("core/cover",d,m)}}]};var sd=id;const cd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",__experimentalRole:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},allowedBlocks:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:ud}=cd,md={icon:Sp,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("— Kobayashi Issa (一茶)")}}]},transforms:sd,edit:rd,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Jp(r,u):{};let x;50!==l&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||ld)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||ld)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},deprecated:jp},pd=()=>Qe({name:ud,metadata:cd,settings:md});var dd=window.wp.dom;const gd=(0,ut.withDispatch)(((e,{clientId:t,attributes:n})=>{const{replaceBlock:o}=e(Ye.store);return{convertToHTML(){o(t,(0,je.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function({attributes:e,convertToHTML:t,clientId:n}){const{originalName:o,originalUndelimitedContent:a}=e,r=!!a,l=(0,ut.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:o}=e(Ye.store);return t("core/html",o(n))}),[n]),i=[];let s;return r&&l?(s=(0,Je.sprintf)((0,Je.__)('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.'),o),i.push((0,qe.createElement)(Ke.Button,{key:"convert",onClick:t,variant:"primary"},(0,Je.__)("Keep as HTML")))):s=(0,Je.sprintf)((0,Je.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"has-warning"})},(0,qe.createElement)(Ye.Warning,{actions:i},s),(0,qe.createElement)(qe.RawHTML,null,(0,dd.safeHTML)(a)))}));var hd=gd;const _d={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:bd}=_d,fd={name:bd,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?(0,je.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:hd,save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.originalContent)}},vd=()=>Qe({name:bd,metadata:_d,settings:fd});var yd=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const kd=(0,Je.__)("Read more");var xd={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,o={};return t&&(o.customText=t),""===n&&(o.noTeaser=!0),(0,je.createBlock)("core/more",o)}}]};const wd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Cd}=wd,Ed={icon:yd,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:xd,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:o}){const a={width:`${(e||kd).length+1.2}em`};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:e=>e?(0,Je.__)("The excerpt is hidden."):(0,Je.__)("The excerpt is visible.")}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)("input",{"aria-label":(0,Je.__)("“Read more” link text"),type:"text",value:e,placeholder:kd,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===un.ENTER&&n([(0,je.createBlock)((0,je.getDefaultBlockName)())])},style:a})))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",o=t?"\x3c!--noteaser--\x3e":"";return(0,qe.createElement)(qe.RawHTML,null,[n,o].filter(Boolean).join("\n"))}},Sd=()=>Qe({name:Cd,metadata:wd,settings:Ed});var Bd=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Td=window.wp.a11y;var Nd=function({icon:e,size:t=24,...n}){return(0,qe.cloneElement)(e,{width:t,height:t,...n})};var Pd=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));const Id={name:"core/navigation-link"},Md=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout"],zd=["core/navigation-link/page","core/navigation-link"],Rd=["postType","wp_navigation",{per_page:100,status:["publish","draft"],order:"desc",orderby:"date"}];function Hd(e){const t=(0,ct.useResourcePermissions)("navigation",e);return(0,ut.useSelect)((n=>{const{canCreate:o,canUpdate:a,canDelete:r,isResolving:l,hasResolved:i}=t,{navigationMenus:s,isResolvingNavigationMenus:c,hasResolvedNavigationMenus:u}=function(e){const{getEntityRecords:t,hasFinishedResolution:n,isResolving:o}=e(ct.store);return{navigationMenus:t(...Rd),isResolvingNavigationMenus:o("getEntityRecords",Rd),hasResolvedNavigationMenus:n("getEntityRecords",Rd)}}(n),{navigationMenu:m,isNavigationMenuResolved:p,isNavigationMenuMissing:d}=function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:n,getEditedEntityRecord:o,hasFinishedResolution:a}=e(ct.store),r=["postType","wp_navigation",t],l=n(...r),i=o(...r),s=a("getEditedEntityRecord",r),c="publish"===i.status||"draft"===i.status;return{isNavigationMenuResolved:s,isNavigationMenuMissing:s&&(!l||!c),navigationMenu:c?i:null}}(n,e);return{navigationMenus:s,isResolvingNavigationMenus:c,hasResolvedNavigationMenus:u,navigationMenu:m,isNavigationMenuResolved:p,isNavigationMenuMissing:d,canSwitchNavigationMenu:e?s?.length>1:s?.length>0,canUserCreateNavigationMenu:o,isResolvingCanUserCreateNavigationMenu:l,hasResolvedCanUserCreateNavigationMenu:i,canUserUpdateNavigationMenu:a,hasResolvedCanUserUpdateNavigationMenu:e?i:void 0,canUserDeleteNavigationMenu:r,hasResolvedCanUserDeleteNavigationMenu:e?i:void 0}}),[e,t])}function Ld(e){const{records:t,isResolving:n,hasResolved:o}=(0,ct.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:a,isResolving:r,hasResolved:l}=(0,ct.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:i,hasResolved:s}=(0,ct.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:a,isResolvingPages:r,hasResolvedPages:l,hasPages:!(!l||!a?.length),menus:t,isResolvingMenus:n,hasResolvedMenus:o,hasMenus:!(!o||!t?.length),menuItems:i,hasResolvedMenuItems:s}}var Ad=({isVisible:e=!0})=>(0,qe.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,qe.createElement)(Nd,{icon:Bd}),(0,Je.__)("Navigation")));var Vd=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var Dd=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:n,onCreateNew:o,actionLabel:a,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:l}){const i=(0,Je.__)("Create from '%s'"),[s,c]=(0,qe.useState)(!1);a=a||i;const{menus:u}=Ld(),{navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canUserCreateNavigationMenu:g,canSwitchNavigationMenu:h}=Hd(),[_]=(0,ct.useEntityProp)("postType","wp_navigation","title"),b=(0,qe.useMemo)((()=>m?.map((({id:e,title:t,status:n},o)=>{const r=function(e,t,n){return e?.rendered?"publish"===n?(0,On.decodeEntities)(e?.rendered):(0,Je.sprintf)((0,Je.__)("%1$s (%2$s)"),(0,On.decodeEntities)(e?.rendered),n):(0,Je.sprintf)((0,Je.__)("(no title %s)"),t)}(t,o+1,n);return{value:e,label:r,ariaLabel:(0,Je.sprintf)(a,r)}}))||[]),[m,a]),f=!!m?.length,v=!!u?.length,y=!!h,k=!!g,x=f&&!e,w=!f&&d,C=d&&null===e;let E="";E=s||p?(0,Je.__)("Loading …"):x||w||C?(0,Je.__)("Choose or create a Navigation menu"):_,(0,qe.useEffect)((()=>{s&&(r||l)&&c(!1)}),[d,r,g,l,s,C,w,x]);const S=(0,qe.createElement)(Ke.DropdownMenu,{label:E,icon:Vd,toggleProps:{isSmall:!0}},(({onClose:a})=>(0,qe.createElement)(qe.Fragment,null,y&&f&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Menus")},(0,qe.createElement)(Ke.MenuItemsChoice,{value:e,onSelect:e=>{c(!0),t(e),a()},choices:b,disabled:s})),k&&v&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Import Classic Menus")},u?.map((e=>{const t=(0,On.decodeEntities)(e.name);return(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{c(!0),n(e),a()},key:e.id,"aria-label":(0,Je.sprintf)(i,t),disabled:s},t)}))),g&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Tools")},(0,qe.createElement)(Ke.MenuItem,{disabled:s,onClick:()=>{a(),o(),c(!0)}},(0,Je.__)("Create new menu"))))));return S};function Fd({isSelected:e,currentMenuId:t,clientId:n,canUserCreateNavigationMenu:o=!1,isResolvingCanUserCreateNavigationMenu:a,onSelectNavigationMenu:r,onSelectClassicMenu:l,onCreateEmpty:i}){const{isResolvingMenus:s,hasResolvedMenus:c}=Ld();(0,qe.useEffect)((()=>{e&&(s&&(0,Td.speak)((0,Je.__)("Loading Navigation block setup options.")),c&&(0,Td.speak)((0,Je.__)("Navigation block setup options ready.")))}),[c,s,e]);const u=s&&a;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Placeholder,{className:"wp-block-navigation-placeholder"},(0,qe.createElement)(Ad,{isVisible:!e}),(0,qe.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,qe.createElement)(Nd,{icon:Bd})," ",(0,Je.__)("Navigation")),(0,qe.createElement)("hr",null),u&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(Dd,{currentMenuId:t,clientId:n,onSelectNavigationMenu:r,onSelectClassicMenu:l}),(0,qe.createElement)("hr",null),o&&(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:i},(0,Je.__)("Start empty"))))))}var $d=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function Gd({icon:e}){return"menu"===e?(0,qe.createElement)(Nd,{icon:$d}):(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,qe.createElement)(We.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,qe.createElement)(We.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))}function Od({children:e,id:t,isOpen:n,isResponsive:o,onToggle:a,isHiddenByDefault:r,overlayBackgroundColor:l,overlayTextColor:i,hasIcon:s,icon:c}){if(!o)return e;const u=it()("wp-block-navigation__responsive-container",{"has-text-color":!!i.color||!!i?.class,[(0,Ye.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!l.color||l?.class,[(0,Ye.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":n,"hidden-by-default":r}),m={color:!i?.slug&&i?.color,backgroundColor:!l?.slug&&l?.color&&l.color},p=it()("wp-block-navigation__responsive-container-open",{"always-shown":r}),d=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...n&&{role:"dialog","aria-modal":!0,"aria-label":(0,Je.__)("Menu")}};return(0,qe.createElement)(qe.Fragment,null,!n&&(0,qe.createElement)(Ke.Button,{"aria-haspopup":"true","aria-label":s&&(0,Je.__)("Open menu"),className:p,onClick:()=>a(!0)},s&&(0,qe.createElement)(Gd,{icon:c}),!s&&(0,Je.__)("Menu")),(0,qe.createElement)("div",{className:u,style:m,id:d},(0,qe.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ke.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":s&&(0,Je.__)("Close menu"),onClick:()=>a(!1)},s&&(0,qe.createElement)(Nd,{icon:Pd}),!s&&(0,Je.__)("Close")),(0,qe.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:`${d}-content`},e)))))}function Ud({clientId:e,hasCustomPlaceholder:t,orientation:n,templateLock:o}){const{isImmediateParentOfSelectedBlock:a,selectedBlockHasChildren:r,isSelected:l}=(0,ut.useSelect)((t=>{const{getBlockCount:n,hasSelectedInnerBlock:o,getSelectedBlockClientId:a}=t(Ye.store),r=a();return{isImmediateParentOfSelectedBlock:o(e,!1),selectedBlockHasChildren:!!n(r),isSelected:r===e}}),[e]),[i,s,c]=(0,ct.useEntityBlockEditor)("postType","wp_navigation"),u=(0,qe.useMemo)((()=>i.every((({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e||"core/page-list"===e))),[i]),m=l||a&&!r,p=(0,qe.useMemo)((()=>(0,qe.createElement)(Ad,null)),[]),d=!t&&!!!i?.length&&!l,g=(0,Ye.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:c,allowedBlocks:Md,prioritizedInserterBlocks:zd,__experimentalDefaultBlock:Id,__experimentalDirectInsert:u,orientation:n,templateLock:o,renderAppender:!!(l||a&&!r||m)&&Ye.InnerBlocks.ButtonBlockAppender,placeholder:d?p:void 0});return(0,qe.createElement)("div",{...g})}function jd(){const[e,t]=(0,ct.useEntityProp)("postType","wp_navigation","title");return(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Menu name"),value:e,onChange:t})}const qd=(e,t,n)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e){if(!t.hasOwnProperty(o))return!1;if(n&&n(o,e))return!0;if(!qd(e[o],t[o],n))return!1}return!0}return!1},Wd={};function Zd({blocks:e,createNavigationMenu:t,hasSelection:n}){const o=(0,qe.useRef)();(0,qe.useEffect)((()=>{o?.current||(o.current=e)}),[e]);const a=function(e,t){return!qd(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(o?.current,e),r=(0,qe.useMemo)((()=>e.every((({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e||"core/page-list"===e))),[e]),l=(0,qe.useContext)(Ke.Disabled.Context),i=(0,Ye.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!n&&void 0,allowedBlocks:Md,__experimentalDefaultBlock:Id,__experimentalDirectInsert:r}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,ut.useSelect)((e=>{if(l)return Wd;const{hasFinishedResolution:t,isSavingEntityRecord:n}=e(ct.store);return{isSaving:n("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Rd)}}),[l]);(0,qe.useEffect)((()=>{!l&&!s&&c&&n&&a&&t(null,e)}),[e,t,l,s,c,a,n]);const u=s?Ke.Disabled:"div";return(0,qe.createElement)(u,{...i})}function Qd({onDelete:e}){const[t,n]=(0,qe.useState)(!1),o=(0,ct.useEntityId)("postType","wp_navigation"),[a]=(0,ct.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:r}=(0,ut.useDispatch)(ct.store);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{n(!0)}},(0,Je.__)("Delete menu")),t&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.sprintf)((0,Je.__)("Delete %s"),a),onRequestClose:()=>n(!1)},(0,qe.createElement)("p",null,(0,Je.__)("Are you sure you want to delete this navigation menu?")),(0,qe.createElement)(Ke.__experimentalHStack,{justify:"right"},(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:()=>{n(!1)}},(0,Je.__)("Cancel")),(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{r("postType","wp_navigation",o,{force:!0}),e(a)}},(0,Je.__)("Confirm")))))}var Kd=function({name:e,message:t=""}={}){const n=(0,qe.useRef)(),{createWarningNotice:o,removeNotice:a}=(0,ut.useDispatch)(Bt.store);return[(0,qe.useCallback)((a=>{n.current||(n.current=e,o(a||t,{id:n.current,type:"snackbar"}))}),[n,o,t,e]),(0,qe.useCallback)((()=>{n.current&&(a(n.current),n.current=null)}),[n,a])]};function Jd({setAttributes:e,hasIcon:t,icon:n}){return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show icon button"),help:(0,Je.__)("Configure the visual appearance of the button opening the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t}),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Icon"),value:n,onChange:t=>e({icon:t}),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Je.__)("handle"),label:(0,qe.createElement)(Gd,{icon:"handle"})}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Je.__)("menu"),label:(0,qe.createElement)(Gd,{icon:"menu"})})))}function Yd(e,t){return e&&t?e+"//"+t:null}const Xd=["postType","wp_navigation",{status:"draft",per_page:-1}],eg=["postType","wp_navigation",{per_page:-1,status:"publish"}];function tg(e){const t=(0,qe.useContext)(Ke.Disabled.Context),n=function(e){return(0,ut.useSelect)((t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:o}=t(Ye.store),a=o(e,"core/template-part",!0);if(!a?.length)return;const r=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(ct.store);for(const e of a){const t=n(e),{theme:o,slug:a}=t.attributes,i=l("postType","wp_template_part",Yd(o,a));if(i?.area)return r.find((e=>"uncategorized"!==e.area&&e.area===i.area))?.label}}),[e])}(t?void 0:e),o=(0,ut.useRegistry)();return(0,qe.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=o.resolveSelect(ct.store),[a,r]=await Promise.all([e(...Xd),e(...eg)]),l=n?(0,Je.sprintf)((0,Je.__)("%s navigation"),n):(0,Je.__)("Navigation"),i=[...a,...r].reduce(((e,t)=>t?.title?.raw?.startsWith(l)?e+1:e),0);return(i>0?`${l} ${i+1}`:l)||""}),[t,n,o])}const ng="success",og="error",ag="pending",rg="idle";function lg(e){const[t,n]=(0,qe.useState)(rg),[o,a]=(0,qe.useState)(null),[r,l]=(0,qe.useState)(null),{saveEntityRecord:i,editEntityRecord:s}=(0,ut.useDispatch)(ct.store),c=tg(e),u=(0,qe.useCallback)((async(e=null,t=[],o)=>{if(e&&"string"!=typeof e)throw l("Invalid title supplied when creating Navigation Menu."),n(og),new Error("Value of supplied title argument was not a string.");n(ag),a(null),l(null),e||(e=await c().catch((e=>{throw l(e?.message),n(og),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const r={title:e,content:(0,je.serialize)(t),status:o};return i("postType","wp_navigation",r).then((e=>(a(e),n(ng),"publish"!==o&&s("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw l(e?.message),n(og),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[i,s,c]);return{create:u,status:t,value:o,error:r,isIdle:t===rg,isPending:t===ag,isSuccess:t===ng,isError:t===og}}function ig(e){if(!e)return null;const t=sg(function(e,t="id",n="parent"){const o=Object.create(null),a=[];for(const r of e)o[r[t]]={...r,children:[]},r[n]?(o[r[n]]=o[r[n]]||{},o[r[n]].children=o[r[n]].children||[],o[r[n]].children.push(o[r[t]])):a.push(o[r[t]]);return a}(e));return(0,Zl.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function sg(e,t=0){let n={};const o=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),a=o.map((e=>{if("block"===e.type){const[t]=(0,je.parse)(e.content.raw);return t||(0,je.createBlock)("core/freeform",{content:e.content})}const o=e.children?.length?"core/navigation-submenu":"core/navigation-link",a=function({title:e,xfn:t,classes:n,attr_title:o,object:a,object_id:r,description:l,url:i,type:s,target:c},u,m){a&&"post_tag"===a&&(a="tag");return{label:e?.rendered||"",...a?.length&&{type:a},kind:s?.replace("_","-")||"custom",url:i||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...n?.length&&n.join(" ").trim()&&{className:n.join(" ").trim()},...o?.length&&{title:o},...r&&"custom"!==a&&{id:r},...l?.length&&{description:l},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===m},..."core/navigation-link"===u&&{isTopLevelLink:0===m}}}(e,o,t),{innerBlocks:r=[],mapping:l={}}=e.children?.length?sg(e.children,t+1):{};n={...n,...l};const i=(0,je.createBlock)(o,a,r);return n[e.id]=i.clientId,i}));return{innerBlocks:a,mapping:n}}const cg="success",ug="error",mg="pending";let pg=null;var dg=function(e){const{create:t}=lg(e),n=(0,ut.useRegistry)(),{editEntityRecord:o}=(0,ut.useDispatch)(ct.store),[a,r]=(0,qe.useState)("idle"),[l,i]=(0,qe.useState)(null),s=(0,qe.useCallback)((async(e,a,r="publish")=>{let l,i;try{i=await n.resolveSelect(ct.store).getMenuItems({menus:e,per_page:-1,context:"view"})}catch(e){throw new Error((0,Je.sprintf)((0,Je.__)('Unable to fetch classic menu "%s" from API.'),a),{cause:e})}if(null===i)throw new Error((0,Je.sprintf)((0,Je.__)('Unable to fetch classic menu "%s" from API.'),a));const{innerBlocks:s}=ig(i);try{l=await t(a,s,r),await o("postType","wp_navigation",l.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,Je.sprintf)((0,Je.__)('Unable to create Navigation Menu "%s".'),a),{cause:e})}return l}),[t,o,n]);return{convert:(0,qe.useCallback)((async(e,t,n)=>{if(pg!==e)return pg=e,e&&t?(r(mg),i(null),await s(e,t,n).then((e=>(r(cg),pg=null,e))).catch((e=>{throw i(e?.message),r(ug),pg=null,new Error((0,Je.sprintf)((0,Je.__)('Unable to create Navigation Menu "%s".'),t),{cause:e})}))):(i("Unable to convert menu. Missing menu details."),void r(ug))}),[s]),status:a,error:l}};const gg=[];function hg(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function _g(e,t,n){if(!e)return;t(hg(e).color);let o=e,a=hg(o).backgroundColor;for(;"rgba(0, 0, 0, 0)"===a&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,a=hg(o).backgroundColor;n(a)}function bg(e,t){const{textColor:n,customTextColor:o,backgroundColor:a,customBackgroundColor:r,overlayTextColor:l,customOverlayTextColor:i,overlayBackgroundColor:s,customOverlayBackgroundColor:c,style:u}=e,m={};return t&&i?m.customTextColor=i:t&&l?m.textColor=l:o?m.customTextColor=o:n?m.textColor=n:u?.color?.text&&(m.customTextColor=u.color.text),t&&c?m.customBackgroundColor=c:t&&s?m.backgroundColor=s:r?m.customBackgroundColor=r:a?m.backgroundColor=a:u?.color?.background&&(m.customTextColor=u.color.background),m}function fg(e){return{className:it()("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var vg=({className:e="",disabled:t,isMenuItem:n=!1})=>{let o=Ke.Button;return n&&(o=Ke.MenuItem),(0,qe.createElement)(o,{variant:"link",disabled:t,className:e,href:(0,st.addQueryArgs)("edit.php",{post_type:"wp_navigation"})},(0,Je.__)("Manage menus"))};var yg=function({onCreateNew:e}){return(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Navigation menu has been deleted or is unavailable. "),(0,qe.createElement)(Ke.Button,{onClick:e,variant:"link"},(0,Je.__)("Create a new menu?")))};var kg=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}));var xg=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var wg=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Cg={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Eg=["core/navigation-link","core/navigation-submenu"];function Sg({block:e,onClose:t,expandedState:n,expand:o,setInsertedBlock:a}){const{insertBlock:r,replaceBlock:l,replaceInnerBlocks:i}=(0,ut.useDispatch)(Ye.store),s=e.clientId,c=!Eg.includes(e.name);return(0,qe.createElement)(Ke.MenuItem,{icon:kg,disabled:c,onClick:()=>{const c=(0,je.createBlock)("core/navigation-link");if("core/navigation-submenu"===e.name)r(c,e.innerBlocks.length,s,false);else{const t=(0,je.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(s,t),i(t.clientId,[c],false)}a(c),n[e.clientId]||o(e.clientId),t()}},(0,Je.__)("Add submenu link"))}function Bg(e){const{block:t}=e,{clientId:n}=t,{moveBlocksDown:o,moveBlocksUp:a,removeBlocks:r}=(0,ut.useDispatch)(Ye.store),l=(0,Je.sprintf)((0,Je.__)("Remove %s"),(0,Ye.BlockTitle)({clientId:n,maximumLength:25})),i=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t}=e(Ye.store);return t(n)}),[n]);return(0,qe.createElement)(Ke.DropdownMenu,{icon:Vd,label:(0,Je.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Cg,noIcons:!0,...e},(({onClose:s})=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.MenuGroup,null,(0,qe.createElement)(Ke.MenuItem,{icon:xg,onClick:()=>{a([n],i),s()}},(0,Je.__)("Move up")),(0,qe.createElement)(Ke.MenuItem,{icon:wg,onClick:()=>{o([n],i),s()}},(0,Je.__)("Move down")),(0,qe.createElement)(Sg,{block:t,onClose:s,expanded:!0,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})),(0,qe.createElement)(Ke.MenuGroup,null,(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{r([n],!1),s()}},l)))))}var Tg=window.wp.escapeHtml;const Ng=(e={},t,n={})=>{const{label:o="",kind:a="",type:r=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:u=a,type:m=r}=e,p=l.replace(/http(s?):\/\//gi,""),d=i.replace(/http(s?):\/\//gi,""),g=l&&l!==o&&p!==d?(0,Tg.escapeHTML)(l):o||(0,Tg.escapeHTML)(d),h="post_tag"===m?"tag":m.replace("-","_"),_=["post","page","tag","category"].indexOf(h)>-1,b=!u&&!_||"custom"===u?"custom":u;t({...i&&{url:encodeURI((0,st.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},...b&&{kind:b},...h&&"URL"!==h&&{type:h}})};function Pg(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function Ig({clientId:e}){const{getBlock:t,blockTransforms:n}=(0,ut.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:o,getBlockTransformItems:a}=t(Ye.store);return{getBlock:n,blockTransforms:a(n(e),o(e))}}),[e]),{replaceBlock:o}=(0,ut.useDispatch)(Ye.store),a=["core/page-list","core/site-logo","core/social-links","core/search"],r=n.filter((e=>a.includes(e.name)));return r?.length&&e?(0,qe.createElement)("div",{className:"link-control-transform"},(0,qe.createElement)("h3",{className:"link-control-transform__subheading"},(0,Je.__)("Transform")),(0,qe.createElement)("div",{className:"link-control-transform__items"},r.map(((n,a)=>(0,qe.createElement)(Ke.Button,{key:`transform-${a}`,onClick:()=>o(e,(0,je.switchToBlockType)(t(e),n.name)),className:"link-control-transform__item"},(0,qe.createElement)(Ye.BlockIcon,{icon:n.icon}),n.title))))):null}function Mg(e){const{saveEntityRecord:t}=(0,ut.useDispatch)(ct.store),n=(0,ct.useResourcePermissions)("pages"),o=(0,ct.useResourcePermissions)("posts");const{label:a,url:r,opensInNewTab:l,type:i,kind:s}=e.link;let c=!1;i&&"page"!==i?"post"===i&&(c=o.canCreate):c=n.canCreate;const u=(0,qe.useMemo)((()=>({url:r,opensInNewTab:l,title:a&&(0,dd.__unstableStripHTML)(a)})),[a,l,r]);return(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,className:e.className,value:u,showInitialSuggestions:!0,withCreateSuggestion:c,createSuggestion:async function(n){const o=e.link.type||"page",a=await t("postType",o,{title:n,status:"draft"});return{id:a.id,type:o,title:(0,On.decodeEntities)(a.title.rendered),url:a.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===i?(0,Je.__)("Create draft post: <mark>%s</mark>"):(0,Je.__)("Create draft page: <mark>%s</mark>"),(0,qe.createInterpolateElement)((0,Je.sprintf)(t,e),{mark:(0,qe.createElement)("mark",null)})},noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:Pg(i,s),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,renderControlBottom:r?null:()=>(0,qe.createElement)(Ig,{clientId:e.clientId})}))}const zg=(0,Je.__)("Switch to '%s'"),Rg=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Hg}=Yt(Ye.privateApis);function Lg({block:e,insertedBlock:t,setInsertedBlock:n}){const{updateBlockAttributes:o}=(0,ut.useDispatch)(Ye.store),a=Rg?.includes(t?.name),r=t?.clientId===e.clientId;if(!(a&&r))return null;return(0,qe.createElement)(Mg,{clientId:t?.clientId,link:t?.attributes,onClose:()=>{n(null)},onChange:e=>{var a;Ng(e,(a=t?.clientId,e=>{a&&o(a,e)}),t?.attributes),n(null)},onCancel:()=>{n(null)}})}const Ag=({clientId:e,currentMenuId:t,isLoading:n,isNavigationMenuMissing:o,onCreateNew:a})=>{const r=(0,ut.useSelect)((t=>!!t(Ye.store).getBlockCount(e)),[e]),{navigationMenu:l}=Hd(t);if(t&&o)return(0,qe.createElement)(yg,{onCreateNew:a});if(n)return(0,qe.createElement)(Ke.Spinner,null);const i=l?(0,Je.sprintf)((0,Je.__)("Structure for navigation menu: %s"),l?.title?.rendered||(0,Je.__)("Untitled menu")):(0,Je.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,qe.createElement)("div",{className:"wp-block-navigation__menu-inspector-controls"},!r&&(0,qe.createElement)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message"},(0,Je.__)("This navigation menu is empty.")),(0,qe.createElement)(Hg,{rootClientId:e,isExpanded:!0,description:i,showAppender:!0,blockSettingsMenu:Bg,additionalBlockContent:Lg}))};var Vg=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,currentMenuId:o=null,onCreateNew:a,onSelectClassicMenu:r,onSelectNavigationMenu:l,isManageMenusButtonDisabled:i,blockEditingMode:s}=e;return(0,qe.createElement)(Ye.InspectorControls,{group:"list"},(0,qe.createElement)(Ke.PanelBody,{title:null},(0,qe.createElement)(Ke.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header"},(0,qe.createElement)(Ke.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2},(0,Je.__)("Menu")),"default"===s&&(0,qe.createElement)(Dd,{currentMenuId:o,onSelectClassicMenu:r,onSelectNavigationMenu:l,onCreateNew:a,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,actionLabel:zg,isManageMenusButtonDisabled:i})),(0,qe.createElement)(Ag,{...e})))};const{useBlockEditingMode:Dg}=Yt(Ye.privateApis);var Fg=(0,Ye.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:n,isSelected:o,className:a,backgroundColor:r,setBackgroundColor:l,textColor:i,setTextColor:s,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:m,setOverlayTextColor:p,hasSubmenuIndicatorSetting:d=!0,customPlaceholder:g=null}){const{openSubmenusOnClick:h,overlayMenu:_,showSubmenuIcon:b,templateLock:f,layout:{justifyContent:v,orientation:y="horizontal",flexWrap:k="wrap"}={},hasIcon:x,icon:w="handle"}=e,C=e.ref,E=(0,qe.useCallback)((e=>{t({ref:e})}),[t]),S=`navigationMenu/${C}`,B=(0,Ye.__experimentalUseHasRecursion)(S),T=Dg(),{menus:N}=Ld(),[P,I]=Kd({name:"block-library/core/navigation/status"}),[M,z]=Kd({name:"block-library/core/navigation/classic-menu-conversion"}),[R,H]=Kd({name:"block-library/core/navigation/permissions/update"}),{create:L,status:A,error:V,value:D,isPending:F,isSuccess:$,isError:G}=lg(n),O=()=>{L("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:j,isInnerBlockSelected:q,innerBlocks:W}=function(e){return(0,ut.useSelect)((t=>{const{getBlock:n,getBlocks:o,hasSelectedInnerBlock:a}=t(Ye.store),r=n(e).innerBlocks,l=!!r?.length,i=l?gg:o(e);return{innerBlocks:l?r:i,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:r,controlledInnerBlocks:i,isInnerBlockSelected:a(e,!0)}}),[e])}(n),Z=!!W.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:Q,selectBlock:K,__unstableMarkNextChangeAsNotPersistent:J}=(0,ut.useDispatch)(Ye.store),[Y,X]=(0,qe.useState)(!1),[ee,te]=(0,qe.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:oe,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:re,hasResolvedCanUserUpdateNavigationMenu:le,canUserDeleteNavigationMenu:ie,hasResolvedCanUserDeleteNavigationMenu:se,canUserCreateNavigationMenu:ce,isResolvingCanUserCreateNavigationMenu:ue,hasResolvedCanUserCreateNavigationMenu:me}=Hd(C),pe=ne&&ae,{convert:de,status:ge,error:he}=dg(n),_e=ge===mg,be=(0,qe.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:o}=t;E(e),o&&K(n)}),[K,n,E]),fe=!ae&&oe,ve=U&&!fe,{getNavigationFallbackId:ye}=Yt((0,ut.useSelect)(ct.store)),ke=C||ve?null:ye();(0,qe.useEffect)((()=>{C||ve||!ke||(J(),E(ke))}),[C,E,ve,ke,J]);const xe=(0,qe.useRef)(),we="nav",Ce=!C&&!F&&!_e&&ne&&0===N?.length&&!U,Ee=!ne||F||_e||!(!C||fe||_e),Se=e.style?.typography?.textDecoration,Be=(0,Ye.__experimentalUseBlockOverlayActive)(n),Te="never"!==_,Ne=(0,Ye.useBlockProps)({ref:xe,className:it()(a,{"items-justified-right":"right"===v,"items-justified-space-between":"space-between"===v,"items-justified-left":"left"===v,"items-justified-center":"center"===v,"is-vertical":"vertical"===y,"no-wrap":"nowrap"===k,"is-responsive":Te,"has-text-color":!!i.color||!!i?.class,[(0,Ye.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!r.color||r.class,[(0,Ye.getColorClassName)("background-color",r?.slug)]:!!r?.slug,[`has-text-decoration-${Se}`]:Se,"block-editor-block-content-overlay":Be}),style:{color:!i?.slug&&i?.color,backgroundColor:!r?.slug&&r?.color}}),Pe="web"===qe.Platform.OS,[Ie,Me]=(0,qe.useState)(),[ze,Re]=(0,qe.useState)(),[He,Le]=(0,qe.useState)(),[Ae,Ve]=(0,qe.useState)(),De=async e=>{const t=await de(e.id,e.name,"draft");t&&be(t.id,{focusNavigationBlock:!0})},Fe=e=>{be(e)};(0,qe.useEffect)((()=>{I(),F&&(0,Td.speak)((0,Je.__)("Creating Navigation Menu.")),$&&(be(D?.id,{focusNavigationBlock:!0}),P((0,Je.__)("Navigation Menu successfully created."))),G&&P((0,Je.__)("Failed to create Navigation Menu."))}),[A,V,D?.id,G,$,F,be,I,P]),(0,qe.useEffect)((()=>{z(),ge===mg&&(0,Td.speak)((0,Je.__)("Classic menu importing.")),ge===cg&&M((0,Je.__)("Classic menu imported successfully.")),ge===ug&&M((0,Je.__)("Classic menu import failed."))}),[ge,he,z,M]),(0,qe.useEffect)((()=>{if(!Pe)return;_g(xe.current,Re,Me);const e=xe.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(m.color||c.color)&&_g(e,Ve,Le)}),[Pe,m.color,c.color]),(0,qe.useEffect)((()=>{o||q||H(),(o||q)&&(C&&!pe&&le&&!re&&R((0,Je.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),C||!me||ce||R((0,Je.__)("You do not have permission to create Navigation Menus.")))}),[o,q,re,le,ce,me,C,H,R,pe]);const $e=ce||re,Ge=it()("wp-block-navigation__overlay-menu-preview",{open:ee}),Oe=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),Ue=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,d&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Display")},Te&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Button,{className:Ge,onClick:()=>{te(!ee)}},x&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Gd,{icon:w}),(0,qe.createElement)(Nd,{icon:Pd})),!x&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",null,(0,Je.__)("Menu")),(0,qe.createElement)("span",null,(0,Je.__)("Close")))),ee&&(0,qe.createElement)(Jd,{setAttributes:t,hasIcon:x,icon:w})),(0,qe.createElement)("h3",null,(0,Je.__)("Overlay Menu")),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Configure overlay menu"),value:_,help:(0,Je.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"never",label:(0,Je.__)("Off")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Je.__)("Mobile")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"always",label:(0,Je.__)("Always")})),Z&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("h3",null,(0,Je.__)("Submenus")),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,Je.__)("Open on click")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,Je.__)("Show arrow")})))),Oe.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:i.color,label:(0,Je.__)("Text"),onColorChange:s,resetAllFilter:()=>s()},{colorValue:r.color,label:(0,Je.__)("Background"),onColorChange:l,resetAllFilter:()=>l()},{colorValue:m.color,label:(0,Je.__)("Submenu & overlay text"),onColorChange:p,resetAllFilter:()=>p()},{colorValue:c.color,label:(0,Je.__)("Submenu & overlay background"),onColorChange:u,resetAllFilter:()=>u()}],panelId:n,...Oe,gradients:[],disableCustomGradients:!0}),Pe&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.ContrastChecker,{backgroundColor:Ie,textColor:ze}),(0,qe.createElement)(Ye.ContrastChecker,{backgroundColor:He,textColor:Ae})))),je=!$e||!ne;if(ve&&!F)return(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Vg,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:je,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),"default"===T&&Ue,(0,qe.createElement)(Od,{id:n,onToggle:X,isOpen:Y,hasIcon:x,icon:w,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:m},(0,qe.createElement)(Zd,{createNavigationMenu:L,blocks:j,hasSelection:o||q})));if(C&&ae)return(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Vg,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:je,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),(0,qe.createElement)(yg,{onCreateNew:O}));if(fe&&B)return(0,qe.createElement)("div",{...Ne},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself.")));const We=g||Fd;return Ce&&g?(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(We,{isSelected:o,currentMenuId:C,clientId:n,canUserCreateNavigationMenu:ce,isResolvingCanUserCreateNavigationMenu:ue,onSelectNavigationMenu:Fe,onSelectClassicMenu:De,onCreateEmpty:O})):(0,qe.createElement)(ct.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:S},(0,qe.createElement)(Vg,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:je,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),"default"===T&&Ue,"default"===T&&fe&&(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},le&&re&&(0,qe.createElement)(jd,null),se&&ie&&(0,qe.createElement)(Qd,{onDelete:(e="")=>{Q(n,[]),P((0,Je.sprintf)((0,Je.__)("Navigation menu %s successfully deleted."),e))}}),(0,qe.createElement)(vg,{disabled:je,className:"wp-block-navigation-manage-menus-button"})),Ee&&(0,qe.createElement)(we,{...Ne},(0,qe.createElement)("div",{className:"wp-block-navigation__loading-indicator-container"},(0,qe.createElement)(Ke.Spinner,{className:"wp-block-navigation__loading-indicator"}))),!Ee&&(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Od,{id:n,onToggle:X,label:(0,Je.__)("Menu"),hasIcon:x,icon:w,isOpen:Y,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:m},fe&&(0,qe.createElement)(Ud,{clientId:n,hasCustomPlaceholder:!!g,templateLock:f,orientation:y})))))}));const $g={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Gg=({navigationMenuId:e,...t})=>({...t,ref:e}),Og=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},Ug={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible:({navigationMenuId:e})=>!!e,migrate:Gg},jg={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,Tt.compose)(Gg,Og)},qg={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},migrate:(0,Tt.compose)(Gg,Og,en),isEligible({style:e}){return e?.typography?.fontFamily}},Wg=[Ug,jg,qg,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,Tt.compose)(Gg,Og,en,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in $g){const n=e.style.typography[t];if(n&&n.startsWith($g[t]))return!0}return!1},migrate:(0,Tt.compose)(Gg,Og,en,(function(e){var t;return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(null!==(t=e.style.typography)&&void 0!==t?t:{}).map((([e,t])=>{const n=$g[e];if(n&&t.startsWith(n)){const o=t.slice(n.length);return"textDecoration"===e&&"strikethrough"===o?[e,"line-through"]:[e,o]}return[e,t]})))}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,Tt.compose)(Gg,(e=>{const{rgbTextColor:t,rgbBackgroundColor:n,...o}=e;return{...o,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}}];var Zg=Wg;const Qg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},__experimentalStyle:{elements:{link:{color:{text:"inherit"}}}}},viewScript:["file:./view.min.js","file:./view-modal.min.js"],editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:Kg}=Qg,Jg={icon:Bd,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,Je.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Je.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Je.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Fg,save:function({attributes:e}){if(!e.ref)return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},deprecated:Zg},Yg=()=>Qe({name:Kg,metadata:Qg,settings:Jg});var Xg=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));const{name:eh}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var th=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var nh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var oh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));function ah(e){switch(e){case"post":return km;case"page":return th;case"tag":return nh;case"category":return Gn;default:return oh}}function rh(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map((e=>({...e,...!e.icon&&{icon:ah(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:n}}return e}const lh={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,je.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,je.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,je.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,je.createBlock)("core/page-list")}]};var ih=lh;const sh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:ch}=sh,uh={icon:Xg,__experimentalLabel:({label:e})=>e,merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:function({attributes:e,isSelected:t,setAttributes:n,insertBlocksAfter:o,mergeBlocks:a,onReplace:r,context:l,clientId:i}){const{id:s,label:c,type:u,url:m,description:p,rel:d,title:g,kind:h}=e,[_,b]=((e,t,n)=>{const o="post-type"===e||"post"===t||"page"===t,a=Number.isInteger(n),r=(0,ut.useSelect)((e=>{if(!o)return null;const{getEntityRecord:a}=e(ct.store);return a("postType",t,n)?.status}),[o,t,n]);return[o&&a&&r&&"trash"===r,"draft"===r]})(h,u,s),{maxNestingLevel:f}=l,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:y}=(0,ut.useDispatch)(Ye.store),[k,x]=(0,qe.useState)(!1),[w,C]=(0,qe.useState)(null),E=(0,qe.useRef)(null),S=(e=>{const[t,n]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){r(e)}function a(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",a),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",r)}}),[]),t})(E),B=(0,Je.__)("Add label…"),T=(0,qe.useRef)(),[N,P]=(0,qe.useState)(!1),{innerBlocks:I,isAtMaxNesting:M,isTopLevelLink:z,isParentOfSelectedBlock:R,hasChildren:H}=(0,ut.useSelect)((e=>{const{getBlocks:t,getBlockCount:n,getBlockName:o,getBlockRootClientId:a,hasSelectedInnerBlock:r,getBlockParentsByBlockName:l}=e(Ye.store);return{innerBlocks:t(i),isAtMaxNesting:l(i,[eh,"core/navigation-submenu"]).length>=f,isTopLevelLink:"core/navigation"===o(a(i)),isParentOfSelectedBlock:r(i,!0),hasChildren:!!n(i)}}),[i]);function L(){const t=(0,je.createBlock)("core/navigation-submenu",e,I.length>0?I:[(0,je.createBlock)("core/navigation-link")]);v(i,t)}(0,qe.useEffect)((()=>{m||x(!0)}),[m]),(0,qe.useEffect)((()=>{H&&(y(),L())}),[H]),(0,qe.useEffect)((()=>{t||x(!1)}),[t]),(0,qe.useEffect)((()=>{k&&m&&((0,st.isURL)((0,st.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)?function(){T.current.focus();const{ownerDocument:e}=T.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(T.current),n.removeAllRanges(),n.addRange(o)}():(0,dd.placeCaretAtHorizontalEdge)(T.current,!0))}),[m]);const{textColor:A,customTextColor:V,backgroundColor:D,customBackgroundColor:F}=bg(l,!z),$=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([C,E]),className:it()("wp-block-navigation-item",{"is-editing":t||R,"is-dragging-within":S,"has-link":!!m,"has-child":H,"has-text-color":!!A||!!V,[(0,Ye.getColorClassName)("color",A)]:!!A,"has-background":!!D||F,[(0,Ye.getColorClassName)("background-color",D)]:!!D}),style:{color:!A&&V,backgroundColor:!D&&F},onKeyDown:function(e){(un.isKeyboardEvent.primary(e,"k")||(!m||b||_)&&e.keyCode===un.ENTER)&&x(!0)}}),G=(0,Ye.useInnerBlocksProps)({...$,className:"remove-outline"},{allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],__experimentalDefaultBlock:{name:"core/navigation-link"},__experimentalDirectInsert:!0,renderAppender:!1});(!m||_||b)&&($.onClick=()=>x(!0));const O=it()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!m||_||b}),U=function(e){let t="";switch(e){case"post":t=(0,Je.__)("Select post");break;case"page":t=(0,Je.__)("Select page");break;case"category":t=(0,Je.__)("Select category");break;case"tag":t=(0,Je.__)("Select tag");break;default:t=(0,Je.__)("Add link")}return t}(u),j=`(${_?(0,Je.__)("Invalid"):(0,Je.__)("Draft")})`,q=_||b?(0,Je.__)("This item has been deleted, or is a draft"):(0,Je.__)("This item is missing a link");return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:()=>x(!0)}),!M&&(0,qe.createElement)(Ke.ToolbarButton,{name:"submenu",icon:kg,title:(0,Je.__)("Add submenu"),onClick:L}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:c?(0,dd.__unstableStripHTML)(c):"",onChange:e=>{n({label:e})},label:(0,Je.__)("Label"),autoComplete:"off",onFocus:()=>P(!0),onBlur:()=>P(!1)}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:t=>{Ng({url:t},n,e)},label:(0,Je.__)("URL"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({description:e})},label:(0,Je.__)("Description"),help:(0,Je.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:g||"",onChange:e=>{n({title:e})},label:(0,Je.__)("Title attribute"),autoComplete:"off",help:(0,Je.__)("Additional information to help clarify the purpose of the link.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:d||"",onChange:e=>{n({rel:e})},label:(0,Je.__)("Rel attribute"),autoComplete:"off",help:(0,Je.__)("The relationship of the linked URL as space-separated link types.")}))),(0,qe.createElement)("div",{...$},(0,qe.createElement)("a",{className:O},m?(0,qe.createElement)(qe.Fragment,null,!_&&!b&&!N&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.RichText,{ref:T,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>n({label:e}),onMerge:a,onReplace:r,__unstableOnSplitAtEnd:()=>o((0,je.createBlock)("core/navigation-link")),"aria-label":(0,Je.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{m||x(!0)}}),p&&(0,qe.createElement)("span",{className:"wp-block-navigation-item__description"},p)),(_||b||N)&&(0,qe.createElement)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"},(0,qe.createElement)(Ke.Tooltip,{position:"top center",text:q},(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",{"aria-label":(0,Je.__)("Navigation link text")},`${(0,On.decodeEntities)(c)} ${_||b?j:""}`.trim()),(0,qe.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},q))))):(0,qe.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},(0,qe.createElement)(Ke.Tooltip,{position:"top center",text:q},(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",null,U),(0,qe.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},q)))),k&&(0,qe.createElement)(Mg,{className:"wp-block-navigation-link__inline-link-input",clientId:i,link:e,onClose:()=>x(!1),anchor:w,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)},onChange:t=>{Ng(t,n,e)}})),(0,qe.createElement)("div",{...G})))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},example:{attributes:{label:(0,Je._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}}],transforms:ih},mh=()=>((0,Zl.addFilter)("blocks.registerBlockType","core/navigation-link",rh),Qe({name:ch,metadata:sh,settings:uh}));var ph=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"}));const dh=()=>(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,qe.createElement)(Ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:gh}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},hh=["core/navigation-link","core/navigation-submenu","core/page-list"],_h={name:"core/navigation-link"};const bh={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,je.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/search")}]};var fh=bh;const vh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:yh}=vh,kh={icon:({context:e})=>"list-view"===e?th:kg,__experimentalLabel:({label:e})=>e,edit:function({attributes:e,isSelected:t,setAttributes:n,mergeBlocks:o,onReplace:a,context:r,clientId:l}){const{label:i,type:s,url:c,description:u,rel:m,title:p}=e,{showSubmenuIcon:d,maxNestingLevel:g,openSubmenusOnClick:h}=r,{__unstableMarkNextChangeAsNotPersistent:_,replaceBlock:b}=(0,ut.useDispatch)(Ye.store),[f,v]=(0,qe.useState)(!1),[y,k]=(0,qe.useState)(null),x=(0,qe.useRef)(null),w=(e=>{const[t,n]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){r(e)}function a(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",a),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",r)}}),[]),t})(x),C=(0,Je.__)("Add text…"),E=(0,qe.useRef)(),S=(0,ct.useResourcePermissions)("pages"),B=(0,ct.useResourcePermissions)("posts"),{isAtMaxNesting:T,isTopLevelItem:N,isParentOfSelectedBlock:P,isImmediateParentOfSelectedBlock:I,hasChildren:M,selectedBlockHasChildren:z,onlyDescendantIsEmptyLink:R}=(0,ut.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:n,getBlockParentsByBlockName:o,getBlock:a,getBlockCount:r,getBlockOrder:i}=e(Ye.store);let s;const c=i(n());if(1===c?.length){const e=a(c[0]);s="core/navigation-link"===e?.name&&!e?.attributes?.label}return{isAtMaxNesting:o(l,gh).length>=g,isTopLevelItem:0===o(l,gh).length,isParentOfSelectedBlock:t(l,!0),isImmediateParentOfSelectedBlock:t(l,!1),hasChildren:!!r(l),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:s}}),[l]),H=(0,Tt.usePrevious)(M);(0,qe.useEffect)((()=>{h||c||v(!0)}),[]),(0,qe.useEffect)((()=>{t||v(!1)}),[t]),(0,qe.useEffect)((()=>{f&&c&&((0,st.isURL)((0,st.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){E.current.focus();const{ownerDocument:e}=E.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(E.current),n.removeAllRanges(),n.addRange(o)}():(0,dd.placeCaretAtHorizontalEdge)(E.current,!0))}),[c]);let L=!1;s&&"page"!==s?"post"===s&&(L=B.canCreate):L=S.canCreate;const{textColor:A,customTextColor:V,backgroundColor:D,customBackgroundColor:F}=bg(r,!N),$=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([k,x]),className:it()("wp-block-navigation-item",{"is-editing":t||P,"is-dragging-within":w,"has-link":!!c,"has-child":M,"has-text-color":!!A||!!V,[(0,Ye.getColorClassName)("color",A)]:!!A,"has-background":!!D||F,[(0,Ye.getColorClassName)("background-color",D)]:!!D,"open-on-click":h}),style:{color:!A&&V,backgroundColor:!D&&F},onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")&&v(!0)}}),G=bg(r,!0),O=T?hh.filter((e=>"core/navigation-submenu"!==e)):hh,U=fg(G),j=(0,Ye.useInnerBlocksProps)(U,{allowedBlocks:O,__experimentalDefaultBlock:_h,__experimentalDirectInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||I&&!z||M)&&Ye.InnerBlocks.ButtonBlockAppender}),q=h?"button":"a";function W(){const t=(0,je.createBlock)("core/navigation-link",e);b(l,t)}(0,qe.useEffect)((()=>{!M&&H&&(_(),W())}),[M,H]);const Z=!z||R;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,!h&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:()=>v(!0)}),(0,qe.createElement)(Ke.ToolbarButton,{name:"revert",icon:ph,title:(0,Je.__)("Convert to Link"),onClick:W,className:"wp-block-navigation__submenu__revert",isDisabled:!Z}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:i||"",onChange:e=>{n({label:e})},label:(0,Je.__)("Label"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:c||"",onChange:e=>{n({url:e})},label:(0,Je.__)("URL"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,value:u||"",onChange:e=>{n({description:e})},label:(0,Je.__)("Description"),help:(0,Je.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({title:e})},label:(0,Je.__)("Title attribute"),autoComplete:"off",help:(0,Je.__)("Additional information to help clarify the purpose of the link.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:e=>{n({rel:e})},label:(0,Je.__)("Rel attribute"),autoComplete:"off",help:(0,Je.__)("The relationship of the linked URL as space-separated link types.")}))),(0,qe.createElement)("div",{...$},(0,qe.createElement)(q,{className:"wp-block-navigation-item__content"},(0,qe.createElement)(Ye.RichText,{ref:E,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>n({label:e}),onMerge:o,onReplace:a,"aria-label":(0,Je.__)("Navigation link text"),placeholder:C,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{h||c||v(!0)}}),!h&&f&&(0,qe.createElement)(Mg,{className:"wp-block-navigation-link__inline-link-input",clientId:l,link:e,onClose:()=>v(!1),anchor:y,hasCreateSuggestion:L,onRemove:()=>{n({url:""}),(0,Td.speak)((0,Je.__)("Link removed."),"assertive")},onChange:t=>{Ng(t,n,e)}})),(d||h)&&(0,qe.createElement)("span",{className:"wp-block-navigation__submenu-icon"},(0,qe.createElement)(dh,null)),(0,qe.createElement)("div",{...j})))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},transforms:fh},xh=()=>Qe({name:yh,metadata:vh,settings:kh});var wh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"}));var Ch={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform(){return(0,je.createBlock)("core/nextpage",{})}}]};const Eh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:Sh}=Eh,Bh={icon:wh,example:{},transforms:Ch,edit:function(){return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)("span",null,(0,Je.__)("Page break")))},save:function(){return(0,qe.createElement)(qe.RawHTML,null,"\x3c!--nextpage--\x3e")}},Th=()=>Qe({name:Sh,metadata:Eh,settings:Bh});var Nh=({attributes:e,clientId:t})=>{const n=(0,ut.useSelect)((t=>t(Ye.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),{replaceBlocks:o,__unstableMarkNextChangeAsNotPersistent:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{n?.blocks&&window.queueMicrotask((()=>{const e=n.blocks.map((e=>(0,je.cloneBlock)(e)));a(),o(t,e)}))}),[t,n?.blocks,a,o]);const r=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...r})};const Ph={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Ih}=Ph,Mh={edit:Nh},zh=()=>Qe({name:Ih,metadata:Ph,settings:Mh});var Rh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));function Hh(e,t){for(const n of e){if(n.attributes.id===t)return n;if(n.innerBlocks&&n.innerBlocks.length){const e=Hh(n.innerBlocks,t);if(e)return e}}return null}function Lh(e=[],t=null){let n=function(e=[]){const t={},n=[];return e.forEach((({id:e,title:o,link:a,type:r,parent:l})=>{var i;const s=null!==(i=t[e]?.innerBlocks)&&void 0!==i?i:[];t[e]=(0,je.createBlock)("core/navigation-link",{id:e,label:o.rendered,url:a,type:r,kind:"post-type"},s),l?(t[l]||(t[l]={innerBlocks:[]}),t[l].innerBlocks.push(t[e])):n.push(t[e])})),n}(e);if(t){const e=Hh(n,t);e&&e.innerBlocks&&(n=e.innerBlocks)}const o=e=>{e.forEach(((e,t,n)=>{const{attributes:a,innerBlocks:r}=e;if(0!==r.length){o(r);const e=(0,je.createBlock)("core/navigation-submenu",a,r);n[t]=e}}))};return o(n),n}function Ah({clientId:e,pages:t,parentPageID:n}){const{replaceBlock:o,selectBlock:a}=(0,ut.useDispatch)(Ye.store),{parentNavBlockClientId:r}=(0,ut.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Ye.store);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[e]);return()=>{const l=Lh(t,n);o(e,l),a(r)}}const Vh=(0,Je.__)('This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking "Edit" below.');function Dh({onClick:e,onClose:t,disabled:n}){return(0,qe.createElement)(Ke.Modal,{onRequestClose:t,title:(0,Je.__)("Edit this menu"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},(0,qe.createElement)("p",{id:"wp-block-page-list-modal__description"},Vh),(0,qe.createElement)("div",{className:"wp-block-page-list-modal-buttons"},(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:t},(0,Je.__)("Cancel")),(0,qe.createElement)(Ke.Button,{variant:"primary",disabled:n,onClick:e},(0,Je.__)("Edit"))))}const Fh=()=>{};function $h({blockProps:e,innerBlocksProps:t,hasResolvedPages:n,blockList:o,pages:a,parentPageID:r}){if(!n)return(0,qe.createElement)("div",{...e},(0,qe.createElement)("div",{className:"wp-block-page-list__loading-indicator-container"},(0,qe.createElement)(Ke.Spinner,{className:"wp-block-page-list__loading-indicator"})));if(null===a)return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")));if(0===a.length)return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"info",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")));if(0===o.length){const t=a.find((e=>e.id===r));return t?.title?.rendered?(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)('Page List: "%s" page has no children.'),t.title.rendered))):(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")))}return a.length>0?(0,qe.createElement)("ul",{...t}):void 0}const Gh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Oh}=Gh,Uh={icon:Rh,example:{},edit:function({context:e,clientId:t,attributes:n,setAttributes:o}){const{parentPageID:a}=n,[r,l]=(0,qe.useState)(!1),i=(0,qe.useCallback)((()=>l(!0)),[]),{records:s,hasResolved:c}=(0,ct.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),u="showSubmenuIcon"in e&&s?.length>0&&s?.length<=100,m=(0,qe.useMemo)((()=>{if(null===s)return new Map;const e=s.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map)}),[s]),p=Ah({clientId:t,pages:s,parentPageID:a}),d=(0,Ye.useBlockProps)({className:it()("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Ye.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Ye.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),g=(e=a)=>{const t=m.get(e);return t?.length?t.reduce(((e,t)=>{const n=m.has(t.id),o={id:t.id,label:""!==t.title?.rendered?.trim()?t.title?.rendered:(0,Je.__)("(no title)"),title:t.title?.rendered,link:t.url,hasChildren:n};let a=null;const r=g(t.id);return a=(0,je.createBlock)("core/page-list-item",o,r),e.push(a),e}),[]):[]},h=(e=0,t=0)=>{const n=m.get(e);return n?.length?n.reduce(((e,n)=>{const o=m.has(n.id),a={value:n.id,label:"— ".repeat(t)+n.title.rendered,rawName:n.title.rendered};return e.push(a),o&&e.push(...h(n.id,t+1)),e}),[]):[]},_=(0,qe.useMemo)(h,[m]),b=(0,qe.useMemo)(g,[m,a]),{isNested:f,hasSelectedChild:v,parentBlock:y,hasDraggedChild:k,isChildOfNavigation:x}=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:n,hasSelectedInnerBlock:o,getBlockRootClientId:a,hasDraggedInnerBlock:r}=e(Ye.store),l=n(t,"core/navigation-submenu",!0),i=n(t,"core/navigation",!0);return{isNested:l.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:o(t,!0),hasDraggedChild:r(t,!0),parentBlock:a(t)}}),[t]),w=(0,Ye.useInnerBlocksProps)(d,{allowedBlocks:["core/page-list-item"],renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!x&&"all",onInput:Fh,onChange:Fh,value:b}),{selectBlock:C}=(0,ut.useDispatch)(Ye.store);return(0,qe.useEffect)((()=>{(v||k)&&(i(),C(y))}),[v,k,y,C,i]),(0,qe.useEffect)((()=>{o({isNested:f})}),[f,o]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,_.length>0&&(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Je.__)("Parent page"),value:a,options:_,onChange:e=>o({parentPageID:null!=e?e:0}),help:(0,Je.__)("Choose a page to show only its subpages.")})),u&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Edit this menu")},(0,qe.createElement)("p",null,Vh),(0,qe.createElement)(Ke.Button,{variant:"primary",disabled:!c,onClick:p},(0,Je.__)("Edit")))),u&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Edit"),onClick:i},(0,Je.__)("Edit"))),r&&(0,qe.createElement)(Dh,{onClick:p,onClose:()=>l(!1),disabled:!c})),(0,qe.createElement)($h,{blockProps:d,innerBlocksProps:w,hasResolvedPages:c,blockList:b,pages:s,parentPageID:a}))}},jh=()=>Qe({name:Oh,metadata:Gh,settings:Uh}),qh=()=>(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,qe.createElement)(Ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const Wh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Zh}=Wh,Qh={__experimentalLabel:({label:e})=>e,icon:th,example:{},edit:function({context:e,attributes:t}){const{id:n,label:o,link:a,hasChildren:r,title:l}=t,i="showSubmenuIcon"in e,s=(0,ut.useSelect)((e=>{if(!e(ct.store).canUser("read","settings"))return;const t=e(ct.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=fg(bg(e,!0)),u=(0,Ye.useBlockProps)(c,{className:"wp-block-pages-list__item"}),m=(0,Ye.useInnerBlocksProps)(u);return(0,qe.createElement)("li",{key:n,className:it()("wp-block-pages-list__item",{"has-child":r,"wp-block-navigation-item":i,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":n===s})},r&&e.openSubmenusOnClick?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},(0,On.decodeEntities)(o)),(0,qe.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},(0,qe.createElement)(qh,null))):(0,qe.createElement)("a",{className:it()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:a},(0,On.decodeEntities)(l)),r&&(0,qe.createElement)(qe.Fragment,null,!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,qe.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false"},(0,qe.createElement)(qh,null)),(0,qe.createElement)("ul",{...m})))}},Kh=()=>Qe({name:Zh,metadata:Wh,settings:Qh});var Jh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"}));const Yh={className:!1},Xh={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},e_=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:n,customBackgroundColor:o,customFontSize:a,...r}=e;return{...r,style:t}},{style:t_,...n_}=Xh,o_=[{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:n,dropCap:o,direction:a}=e,r=it()({"has-drop-cap":t!==((0,Je.isRTL)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,qe.createElement)("p",{...Ye.useBlockProps.save({className:r,dir:a})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:e_,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:u}=e,m=(0,Ye.getColorClassName)("color",r),p=(0,Ye.getColorClassName)("background-color",a),d=(0,Ye.getFontSizeClass)(s),g=it()({"has-text-color":r||i,"has-background":a||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:l,color:m?void 0:i,fontSize:d?void 0:c};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:u})}},{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:e_,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:u}=e,m=(0,Ye.getColorClassName)("color",r),p=(0,Ye.getColorClassName)("background-color",a),d=(0,Ye.getFontSizeClass)(s),g=it()({"has-text-color":r||i,"has-background":a||l,"has-drop-cap":o,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:l,color:m?void 0:i,fontSize:d?void 0:c,textAlign:t};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:u})}},{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:e_,save({attributes:e}){const{width:t,align:n,content:o,dropCap:a,backgroundColor:r,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:u}=e,m=(0,Ye.getColorClassName)("color",l),p=(0,Ye.getColorClassName)("background-color",r),d=c&&`is-${c}-text`,g=it()({[`align${t}`]:t,"has-background":r||i,"has-drop-cap":a,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:i,color:m?void 0:s,fontSize:d?void 0:u,textAlign:n};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:Yh,attributes:{...n_,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:n,content:o,dropCap:a,backgroundColor:r,textColor:l,fontSize:i}=e,s=it()({[`align${t}`]:t,"has-background":r,"has-drop-cap":a}),c={backgroundColor:r,color:l,fontSize:i,textAlign:n};return(0,qe.createElement)("p",{style:c,className:s||void 0},o)},migrate(e){return e_({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0})}},{supports:Yh,attributes:{...Xh,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.content)},migrate(e){return e}}];var a_=o_;var r_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function l_(e){const{batch:t}=(0,ut.useRegistry)(),{moveBlocksToPosition:n,replaceInnerBlocks:o,duplicateBlocks:a,insertBlock:r}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:s,getBlockName:c,getBlock:u,getNextBlockClientId:m}=(0,ut.useSelect)(Ye.store),p=(0,qe.useRef)(e);return p.current=e,(0,Tt.useRefEffect)((e=>{function d(e){if(e.defaultPrevented)return;if(e.keyCode!==un.ENTER)return;const{content:d,clientId:g}=p.current;if(d.length)return;const h=l(g);if(!(0,je.hasBlockSupport)(c(h),"__experimentalOnEnter",!1))return;const _=s(h);e.preventDefault();const b=_.indexOf(g);if(b===_.length-1)return void n([g],h,l(h),i(h)+1);const f=u(h);t((()=>{a([h]);const e=i(h);o(h,f.innerBlocks.slice(0,b)),o(m(h),f.innerBlocks.slice(b+1)),r((0,je.createBlock)("core/paragraph"),e+1,l(h),!0)}))}return e.addEventListener("keydown",d),()=>{e.removeEventListener("keydown",d)}}),[])}function i_({direction:e,setDirection:t}){return(0,Je.isRTL)()&&(0,qe.createElement)(Ke.ToolbarButton,{icon:r_,title:(0,Je._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function s_(e){return e===((0,Je.isRTL)()?"left":"right")||"center"===e}var c_=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:o,setAttributes:a,clientId:r}){const{align:l,content:i,direction:s,dropCap:c,placeholder:u}=e,m=(0,Ye.useSetting)("typography.dropCap"),p=(0,Ye.useBlockProps)({ref:l_({clientId:r,content:i}),className:it()({"has-drop-cap":!s_(l)&&c,[`has-text-align-${l}`]:l}),style:{direction:s}});let d;return d=s_(l)?(0,Je.__)("Not available for aligned text."):c?(0,Je.__)("Showing large initial letter."):(0,Je.__)("Toggle to show a large initial letter."),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>a({align:e,dropCap:!s_(e)&&c})}),(0,qe.createElement)(i_,{direction:s,setDirection:e=>a({direction:e})})),m&&(0,qe.createElement)(Ye.InspectorControls,{group:"typography"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Je.__)("Drop cap"),onDeselect:()=>a({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:r},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Drop cap"),checked:!!c,onChange:()=>a({dropCap:!c}),help:d,disabled:!!s_(l)}))),(0,qe.createElement)(Ye.RichText,{identifier:"content",tagName:"p",...p,value:i,onChange:e=>a({content:e}),onSplit:(t,n)=>{let o;(n||t)&&(o={...e,content:t});const a=(0,je.createBlock)("core/paragraph",o);return n&&(a.clientId=r),a},onMerge:t,onReplace:n,onRemove:o,"aria-label":i?(0,Je.__)("Paragraph block"):(0,Je.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!i,placeholder:u||(0,Je.__)("Type / to choose a block"),"data-custom-placeholder":!!u||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))};const{name:u_}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},m_={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,je.getBlockAttributes)(u_,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,je.createBlock)(u_,t)}}]};var p_=m_;const d_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:g_}=d_,h_={icon:Jh,example:{attributes:{content:(0,Je.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t}=e;return t&&0!==t.length?t:(0,Je.__)("Empty")}},transforms:p_,deprecated:a_,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:c_,save:function({attributes:e}){const{align:t,content:n,dropCap:o,direction:a}=e,r=it()({"has-drop-cap":t!==((0,Je.isRTL)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,qe.createElement)("p",{...Ye.useBlockProps.save({className:r,dir:a})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},__=()=>Qe({name:g_,metadata:d_,settings:h_});var b_=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const f_={who:"authors",per_page:100};var v_=function({isSelected:e,context:{postType:t,postId:n,queryId:o},attributes:a,setAttributes:r}){const l=Number.isFinite(o),{authorId:i,authorDetails:s,authors:c}=(0,ut.useSelect)((e=>{const{getEditedEntityRecord:o,getUser:a,getUsers:r}=e(ct.store),l=o("postType",t,n)?.author;return{authorId:l,authorDetails:l?a(l):null,authors:r(f_)}}),[t,n]),{editEntityRecord:u}=(0,ut.useDispatch)(ct.store),{textAlign:m,showAvatar:p,showBio:d,byline:g,isLink:h,linkTarget:_}=a,b=[],f=s?.name||(0,Je.__)("Post Author");s?.avatar_urls&&Object.keys(s.avatar_urls).forEach((e=>{b.push({value:e,label:`${e} x ${e}`})}));const v=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${m}`]:m})}),y=c?.length?c.map((({id:e,name:t})=>({value:e,label:t}))):[],k=e=>{u("postType",t,n,{author:e})},x=y.length>=25,w=!!n&&!l&&y.length>0;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},w&&(x&&(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Author"),options:y,value:i,onChange:k,allowReset:!1})||(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Author"),value:i,options:y,onChange:k})),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show avatar"),checked:p,onChange:()=>r({showAvatar:!p})}),p&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Avatar size"),value:a.avatarSize,options:b,onChange:e=>{r({avatarSize:Number(e)})}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show bio"),checked:d,onChange:()=>r({showBio:!d})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link author name to author page"),checked:h,onChange:()=>r({isLink:!h})}),h&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===_}))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:m,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)("div",{...v},p&&s?.avatar_urls&&(0,qe.createElement)("div",{className:"wp-block-post-author__avatar"},(0,qe.createElement)("img",{width:a.avatarSize,src:s.avatar_urls[a.avatarSize],alt:s.name})),(0,qe.createElement)("div",{className:"wp-block-post-author__content"},(!Ye.RichText.isEmpty(g)||e)&&(0,qe.createElement)(Ye.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":(0,Je.__)("Post author byline text"),placeholder:(0,Je.__)("Write byline…"),value:g,onChange:e=>r({byline:e})}),(0,qe.createElement)("p",{className:"wp-block-post-author__name"},h?(0,qe.createElement)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault()},f):f),d&&(0,qe.createElement)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:s?.description}}))))};const y_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Post Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-post-author"},{name:k_}=y_,x_={icon:b_,edit:v_},w_=()=>Qe({name:k_,metadata:y_,settings:x_});var C_=function({context:{postType:e,postId:t},attributes:{textAlign:n,isLink:o,linkTarget:a},setAttributes:r}){const{authorName:l}=(0,ut.useSelect)((n=>{const{getEditedEntityRecord:o,getUser:a}=n(ct.store),r=o("postType",e,t)?.author;return{authorName:r?a(r):null}}),[e,t]),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})}),s=l?.name||(0,Je.__)("Author Name"),c=o?(0,qe.createElement)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link"},s):s;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to author archive"),onChange:()=>r({isLink:!o}),checked:o}),o&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}))),(0,qe.createElement)("div",{...i}," ",c," "))};var E_={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,je.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,je.createBlock)("core/post-author",{textAlign:e})}]};const S_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Post Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:B_}=S_,T_={icon:b_,transforms:E_,edit:C_},N_=()=>Qe({name:B_,metadata:S_,settings:T_});var P_=function({context:{postType:e,postId:t},attributes:{textAlign:n},setAttributes:o}){const{authorDetails:a}=(0,ut.useSelect)((n=>{const{getEditedEntityRecord:o,getUser:a}=n(ct.store),r=o("postType",e,t)?.author;return{authorDetails:r?a(r):null}}),[e,t]),r=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})}),l=a?.description||(0,Je.__)("Author Biography");return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})),(0,qe.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:l}}))};const I_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Post Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:M_}=I_,z_={icon:b_,edit:P_},R_=()=>Qe({name:M_,metadata:I_,settings:z_});var H_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));const L_=["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],A_=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const V_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Post Comment (deprecated)",category:"theme",description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1}},{name:D_}=V_,F_={icon:_m,edit:function({attributes:{commentId:e},setAttributes:t}){const[n,o]=(0,qe.useState)(e),a=(0,Ye.useBlockProps)(),r=(0,Ye.useInnerBlocksProps)(a,{template:A_,allowedBlocks:L_});return e?(0,qe.createElement)("div",{...r}):(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ke.Placeholder,{icon:H_,label:(0,Je._x)("Post Comment","block title"),instructions:(0,Je.__)("To show a comment, input the comment ID.")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>o(parseInt(e))}),(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{t({commentId:n})}},(0,Je.__)("Save"))))},save:function(){const e=Ye.useBlockProps.save(),t=Ye.useInnerBlocksProps.save(e);return(0,qe.createElement)("div",{...t})}},$_=()=>Qe({name:D_,metadata:V_,settings:F_});var G_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"}));const O_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-count",title:"Post Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:U_}=O_,j_={icon:G_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:o}=e,{postId:a}=t,[r,l]=(0,qe.useState)(),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});(0,qe.useEffect)((()=>{if(!a)return;const e=a;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&l(t.headers.get("X-WP-Total"))}))}),[a]);const s=a&&void 0!==r,c={...i.style,textDecoration:s?i.style?.textDecoration:void 0};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...i,style:c},s?r:(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Count block: post not found."))))}},q_=()=>Qe({name:U_,metadata:O_,settings:j_});var W_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"}));const Z_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Post Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"]},{name:Q_}=Z_,K_={icon:W_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:o}=e,{postId:a,postType:r}=t,l=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...l},(0,qe.createElement)(Uo,{postId:a,postType:r})))}},J_=()=>Qe({name:Q_,metadata:Z_,settings:K_});var Y_=function({context:e,attributes:t,setAttributes:n}){const{textAlign:o}=t,{postType:a,postId:r}=e,[l,i]=(0,qe.useState)(),s=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});(0,qe.useEffect)((()=>{if(!r)return;const e=r;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const c=(0,ut.useSelect)((e=>e(ct.store).getEditedEntityRecord("postType",a,r)),[a,r]);if(!c)return null;const{link:u}=c;let m;if(void 0!==l){const e=parseInt(l);m=0===e?(0,Je.__)("No comments"):(0,Je.sprintf)((0,Je._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...s},u&&void 0!==m?(0,qe.createElement)("a",{href:u+"#comments",onClick:e=>e.preventDefault()},m):(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Link block: post not found."))))};const X_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-link",title:"Post Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:eb}=X_,tb={edit:Y_,icon:G_},nb=()=>Qe({name:eb,metadata:X_,settings:tb});var ob=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"}));function ab(e,t,n){return(0,ut.useSelect)((o=>o(ct.store).canUserEditEntityRecord(e,t,n)),[e,t,n])}function rb({userCanEdit:e,postType:t,postId:n}){const[,,o]=(0,ct.useEntityProp)("postType",t,"content",n),a=(0,Ye.useBlockProps)();return o?.protected&&!e?(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("This content is password protected."))):(0,qe.createElement)("div",{...a,dangerouslySetInnerHTML:{__html:o?.rendered}})}function lb({context:e={}}){const{postType:t,postId:n}=e,[o,a,r]=(0,ct.useEntityBlockEditor)("postType",t,{id:n}),l=(0,ut.useSelect)((e=>e(ct.store).getEntityRecord("postType",t,n)),[t,n]),i=!!l?.content?.raw||o?.length,s=(0,Ye.useInnerBlocksProps)((0,Ye.useBlockProps)({className:"entry-content"}),{value:o,onInput:a,onChange:r,template:i?void 0:[["core/paragraph"]]});return(0,qe.createElement)("div",{...s})}function ib(e){const{context:{queryId:t,postType:n,postId:o}={}}=e,a=ab("postType",n,o);if(void 0===a)return null;const r=Number.isFinite(t);return a&&!r?(0,qe.createElement)(lb,{...e}):(0,qe.createElement)(rb,{userCanEdit:a,postType:n,postId:o})}function sb({layoutClassNames:e}){const t=(0,Ye.useBlockProps)({className:e});return(0,qe.createElement)("div",{...t},(0,qe.createElement)("p",null,(0,Je.__)("This is the Post Content block, it will display all the blocks in any single post or page.")),(0,qe.createElement)("p",null,(0,Je.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")),(0,qe.createElement)("p",null,(0,Je.__)("If there are any Custom Post Types registered at your site, the Post Content block can display the contents of those entries as well.")))}function cb(){const e=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself.")))}const ub={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,layout:!0,dimensions:{minHeight:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-content-editor"},{name:mb}=ub,pb={icon:ob,edit:function({context:e,attributes:t,__unstableLayoutClassNames:n}){const{postId:o,postType:a}=e,{layout:r={}}=t,l=(0,Ye.__experimentalUseHasRecursion)(o);return o&&a&&l?(0,qe.createElement)(cb,null):(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:o},o&&a?(0,qe.createElement)(ib,{context:e,layout:r}):(0,qe.createElement)(sb,{layoutClassNames:n}))}},db=()=>Qe({name:mb,metadata:ub,settings:pb});function gb(e){return/(?:^|[^\\])[aAgh]/.test(e)}const hb={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var _b=[hb];const bb=[{name:"post-date-modified",title:(0,Je.__)("Post Modified Date"),description:(0,Je.__)("Display a post's last updated date."),attributes:{displayType:"modified"},scope:["block","inserter"],isActive:e=>"modified"===e.displayType,icon:ga}];var fb=bb;const vb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1},displayType:{type:"string",default:"date"}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:yb}=vb,kb={icon:ga,edit:function({attributes:{textAlign:e,format:t,isLink:n,displayType:o},context:{postId:a,postType:r,queryId:l},setAttributes:i}){const s=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e,"wp-block-post-date__modified-date":"modified"===o})}),[c,u]=(0,qe.useState)(null),m=(0,qe.useMemo)((()=>({anchor:c})),[c]),p=Number.isFinite(l),d=(0,ha.getSettings)(),[g=d.formats.date]=(0,ct.useEntityProp)("root","site","date_format"),[h=d.formats.time]=(0,ct.useEntityProp)("root","site","time_format"),[_,b]=(0,ct.useEntityProp)("postType",r,o,a),f=(0,ut.useSelect)((e=>r?e(ct.store).getPostType(r):null),[r]),v="date"===o?(0,Je.__)("Post Date"):(0,Je.__)("Post Modified Date");let y=_?(0,qe.createElement)("time",{dateTime:(0,ha.dateI18n)("c",_),ref:u},(0,ha.dateI18n)(t||g,_)):v;return n&&_&&(y=(0,qe.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},y)),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:e,onChange:e=>{i({textAlign:e})}}),_&&!p&&(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.Dropdown,{popoverProps:m,renderContent:({onClose:e})=>(0,qe.createElement)(Ye.__experimentalPublishDateTimePicker,{currentDate:_,onChange:b,is12Hour:gb(h),onClose:e}),renderToggle:({isOpen:e,onToggle:t})=>(0,qe.createElement)(Ke.ToolbarButton,{"aria-expanded":e,icon:vi,title:(0,Je.__)("Change Date"),onClick:t,onKeyDown:n=>{e||n.keyCode!==un.DOWN||(n.preventDefault(),t())}})}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ye.__experimentalDateFormatPicker,{format:t,defaultFormat:g,onChange:e=>i({format:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:f?.labels.singular_name?(0,Je.sprintf)((0,Je.__)("Link to %s"),f.labels.singular_name.toLowerCase()):(0,Je.__)("Link to post"),onChange:()=>i({isLink:!n}),checked:n}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display last modified date"),onChange:e=>i({displayType:e?"modified":"date"}),checked:"modified"===o,help:(0,Je.__)("Only shows if the post has been modified")}))),(0,qe.createElement)("div",{...s},y))},deprecated:_b,variations:fb},xb=()=>Qe({name:yb,metadata:vb,settings:kb});var wb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));var Cb={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,je.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,je.createBlock)("core/post-content")}]};const Eb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:Sb}=Eb,Bb={icon:wb,transforms:Cb,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:n,excerptLength:o},setAttributes:a,isSelected:r,context:{postId:l,postType:i,queryId:s}}){const c=Number.isFinite(s),u=ab("postType",i,l),[m,p,{rendered:d,protected:g}={}]=(0,ct.useEntityProp)("postType",i,"excerpt",l),h=(0,ut.useSelect)((e=>"page"===i||!!e(ct.store).getPostType(i)?.supports?.excerpt),[i]),_=u&&!c&&h,b=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e})}),f=(0,Je._x)("words","Word count type. Do not translate!"),v=(0,qe.useMemo)((()=>{if(!d)return"";const e=(new window.DOMParser).parseFromString(d,"text/html");return e.body.textContent||e.body.innerText||""}),[d]);if(!i||!l)return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:e,onChange:e=>a({textAlign:e})})),(0,qe.createElement)("div",{...b},(0,qe.createElement)("p",null,(0,Je.__)("This block will display the excerpt."))));if(g&&!u)return(0,qe.createElement)("div",{...b},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("The content is currently protected and does not have the available excerpt.")));const y=(0,qe.createElement)(Ye.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Je.__)("“Read more” link text"),placeholder:(0,Je.__)('Add "read more" link text'),value:t,onChange:e=>a({moreText:e}),withoutInteractiveFormatting:!0}),k=it()("wp-block-post-excerpt__excerpt",{"is-inline":!n}),x=(m||v).trim();let w="";if("words"===f)w=x.split(" ",o).join(" ");else if("characters_excluding_spaces"===f){const e=x.split("",o).join(""),t=e.length-e.replaceAll(" ","").length;w=x.split("",o+t).join("")}else"characters_including_spaces"===f&&(w=x.split("",o).join(""));const C=w!==x,E=_?(0,qe.createElement)(Ye.RichText,{className:k,"aria-label":(0,Je.__)("Excerpt text"),value:r?x:(C?w+"…":x)||(0,Je.__)("No excerpt found"),onChange:p,tagName:"p"}):(0,qe.createElement)("p",{className:k},C?w+"…":x||(0,Je.__)("No excerpt found"));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:e,onChange:e=>a({textAlign:e})})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show link on new line"),checked:n,onChange:e=>a({showMoreOnNewLine:e})}),(0,qe.createElement)(Ke.RangeControl,{label:(0,Je.__)("Max number of words"),value:o,onChange:e=>{a({excerptLength:e})},min:"10",max:"100"}))),(0,qe.createElement)("div",{...b},E,!n&&" ",n?(0,qe.createElement)("p",{className:"wp-block-post-excerpt__more-text"},y):y))}},Tb=()=>Qe({name:Sb,metadata:Eb,settings:Bb});var Nb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const Pb=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Je._x)("Cover","Scale option for Image dimension control")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Je._x)("Contain","Scale option for Image dimension control")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"fill",label:(0,Je._x)("Fill","Scale option for Image dimension control")})),Ib="cover",Mb={cover:(0,Je.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,Je.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,Je.__)("Image will be stretched and distorted to completely fill the space.")};var zb=({clientId:e,attributes:{aspectRatio:t,width:n,height:o,scale:a,sizeSlug:r},setAttributes:l,imageSizeOptions:i=[]})=>{const s=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),c=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||l({[e]:n<0?"0":t})},u=(0,Je._x)("Scale","Image scaling options"),m=o||t&&"auto"!==t;return(0,qe.createElement)(Ye.InspectorControls,{group:"dimensions"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Je.__)("Aspect ratio"),onDeselect:()=>l({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Aspect ratio"),value:t,options:[{label:(0,Je.__)("Original"),value:"auto"},{label:(0,Je.__)("Square"),value:"1"},{label:(0,Je.__)("16:9"),value:"16/9"},{label:(0,Je.__)("4:3"),value:"4/3"},{label:(0,Je.__)("3:2"),value:"3/2"},{label:(0,Je.__)("9:16"),value:"9/16"},{label:(0,Je.__)("3:4"),value:"3/4"},{label:(0,Je.__)("2:3"),value:"2/3"}],onChange:e=>l({aspectRatio:e})})),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,Je.__)("Height"),onDeselect:()=>l({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Height"),labelPosition:"top",value:o||"",min:0,onChange:e=>c("height",e),units:s})),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,Je.__)("Width"),onDeselect:()=>l({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"top",value:n||"",min:0,onChange:e=>c("width",e),units:s})),m&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!a&&a!==Ib,label:u,onDeselect:()=>l({scale:Ib}),resetAllFilter:()=>({scale:Ib}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:u,value:a,help:Mb[a],onChange:e=>l({scale:e}),isBlock:!0},Pb)),!!i.length&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Je.__)("Resolution"),onDeselect:()=>l({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:e},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resolution"),value:r||"full",options:i,onChange:e=>l({sizeSlug:e}),help:(0,Je.__)("Select the size of the source image.")})))};var Rb=(0,Tt.compose)([(0,Ye.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:n,overlayColor:o,setOverlayColor:a})=>{const{dimRatio:r}=t,{gradientClass:l,gradientValue:i,setGradient:s}=(0,Ye.__experimentalUseGradient)(),c=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),u=(0,Ye.__experimentalUseBorderProps)(t),m={backgroundColor:o.color,backgroundImage:i,...u.style};return c.hasColorsOrGradients?(0,qe.createElement)(qe.Fragment,null,!!r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-post-featured-image__overlay",(p=r,void 0===p?null:"has-background-dim-"+10*Math.round(p/10)),{[o.class]:o.class,"has-background-dim":void 0!==r,"has-background-gradient":i,[l]:l},u.className),style:m}),(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:i,label:(0,Je.__)("Overlay"),onColorChange:a,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:e,...c}),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>void 0!==r,label:(0,Je.__)("Overlay opacity"),onDeselect:()=>n({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Overlay opacity"),value:r,onChange:e=>n({dimRatio:e}),min:0,max:100,step:10,required:!0})))):null;var p}));const Hb=["image"];const Lb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSelector:"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:Ab}=Lb,Vb={icon:Nb,edit:function({clientId:e,attributes:t,setAttributes:n,context:{postId:o,postType:a,queryId:r}}){const l=Number.isFinite(r),{isLink:i,aspectRatio:s,height:c,width:u,scale:m,sizeSlug:p,rel:d,linkTarget:g}=t,[h,_]=(0,ct.useEntityProp)("postType",a,"featured_media",o),{media:b,postType:f}=(0,ut.useSelect)((e=>{const{getMedia:t,getPostType:n}=e(ct.store);return{media:h&&t(h,{context:"view"}),postType:a&&n(a)}}),[h,a]),v=function(e,t){return e?.media_details?.sizes?.[t]?.source_url||e?.source_url}(b,p),y=(0,ut.useSelect)((e=>e(Ye.store).getSettings().imageSizes),[]).filter((({slug:e})=>b?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),k=(0,Ye.useBlockProps)({style:{width:u,height:c,aspectRatio:s}}),x=(0,Ye.__experimentalUseBorderProps)(t),w=e=>(0,qe.createElement)(Ke.Placeholder,{className:it()("block-editor-media-placeholder",x.className),withIllustration:!0,style:{height:!!s&&"100%",width:!!s&&"100%",...x.style}},e),C=e=>{e?.id&&_(e.id)},{createErrorNotice:E}=(0,ut.useDispatch)(Bt.store),S=e=>{E(e,{type:"snackbar"})},B=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(zb,{clientId:e,attributes:t,setAttributes:n,imageSizeOptions:y}),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:f?.labels.singular_name?(0,Je.sprintf)((0,Je.__)("Link to %s"),f.labels.singular_name):(0,Je.__)("Link to post"),onChange:()=>n({isLink:!i}),checked:i}),i&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:d,onChange:e=>n({rel:e})})))));let T;if(!h&&(l||!o))return(0,qe.createElement)(qe.Fragment,null,B,(0,qe.createElement)("div",{...k},w(),(0,qe.createElement)(Rb,{attributes:t,setAttributes:n,clientId:e})));const N=(0,Je.__)("Add a featured image"),P={...x.style,height:s?"100%":c,width:!!s&&"100%",objectFit:!(!c&&!s)&&m};return T=h?b?(0,qe.createElement)("img",{className:x.className,src:v,alt:b.alt_text?(0,Je.sprintf)((0,Je.__)("Featured image: %s"),b.alt_text):(0,Je.__)("Featured image"),style:P}):w():(0,qe.createElement)(Ye.MediaPlaceholder,{onSelect:C,accept:"image/*",allowedTypes:Hb,onError:S,placeholder:w,mediaLibraryButton:({open:e})=>(0,qe.createElement)(Ke.Button,{icon:Xu,variant:"primary",label:N,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,qe.createElement)(qe.Fragment,null,B,!!b&&!l&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:h,mediaURL:v,allowedTypes:Hb,accept:"image/*",onSelect:C,onError:S},(0,qe.createElement)(Ke.MenuItem,{onClick:()=>_(0)},(0,Je.__)("Reset")))),(0,qe.createElement)("figure",{...k},T,(0,qe.createElement)(Rb,{attributes:t,setAttributes:n,clientId:e})))}},Db=()=>Qe({name:Ab,metadata:Lb,settings:Vb});var Fb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var $b=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const Gb=[{isDefault:!0,name:"post-next",title:(0,Je.__)("Next post"),description:(0,Je.__)("Displays the post link that follows the current post."),icon:Fb,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,Je.__)("Previous post"),description:(0,Je.__)("Displays the post link that precedes the current post."),icon:$b,attributes:{type:"previous"},scope:["inserter","transform"]}];Gb.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Ob=Gb;const Ub={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"}},supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-navigation-link"},{name:jb}=Ub,qb={edit:function({attributes:{type:e,label:t,showTitle:n,textAlign:o,linkLabel:a,arrow:r},setAttributes:l}){const i="next"===e;let s=i?(0,Je.__)("Next"):(0,Je.__)("Previous");const c={none:"",arrow:i?"→":"←",chevron:i?"»":"«"}[r];n&&(s=i?(0,Je.__)("Next: "):(0,Je.__)("Previous: "));const u=i?(0,Je.__)("Next post"):(0,Je.__)("Previous post"),m=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display the title as a link"),help:(0,Je.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})}),n&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:r,onChange:e=>{l({arrow:e})},help:(0,Je.__)("A decorative arrow for the next and previous link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Next/Previous link")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Next/Previous link")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Next/Previous link")})))),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:o,onChange:e=>{l({textAlign:e})}})),(0,qe.createElement)("div",{...m},!i&&c&&(0,qe.createElement)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${r}`},c),(0,qe.createElement)(Ye.RichText,{tagName:"a","aria-label":u,placeholder:s,value:t,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),n&&(0,qe.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("An example title")),i&&c&&(0,qe.createElement)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${r}`,"aria-hidden":!0},c)))},variations:Ob},Wb=()=>Qe({name:jb,metadata:Ub,settings:qb}),Zb=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function Qb(){const e=(0,Ye.useInnerBlocksProps)({className:"wp-block-post"},{template:Zb,__unstableDisableLayoutClassNames:!0});return(0,qe.createElement)("li",{...e})}const Kb=(0,qe.memo)((function({blocks:e,blockContextId:t,isHidden:n,setActiveBlockContextId:o}){const a=(0,Ye.__experimentalUseBlockPreview)({blocks:e,props:{className:"wp-block-post"}}),r=()=>{o(t)},l={display:n?"none":void 0};return(0,qe.createElement)("li",{...a,tabIndex:0,role:"button",onClick:r,onKeyPress:r,style:l})}));const Jb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug","previewPostType"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Yb}=Jb,Xb={icon:za,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:n,offset:o=0,postType:a,order:r,orderBy:l,author:i,search:s,exclude:c,sticky:u,inherit:m,taxQuery:p,parents:d,pages:g,...h}={},queryContext:_=[{page:1}],templateSlug:b,previewPostType:f},attributes:{layout:v},__unstableLayoutClassNames:y}){const{type:k,columnCount:x=3}=v||{},[{page:w}]=_,[C,E]=(0,qe.useState)(),{posts:S,blocks:B}=(0,ut.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:_}=e(ct.store),{getBlocks:v}=e(Ye.store),y=_({type:a,per_page:-1,context:"view"}),k=m&&b?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:b.replace("category-","")}),x={offset:n?n*(w-1)+o:0,order:r,orderby:l};if(p&&!m){const e=Object.entries(p).reduce(((e,[t,n])=>{const o=y?.find((({slug:e})=>e===t));return o?.rest_base&&(e[o?.rest_base]=n),e}),{});Object.keys(e).length&&Object.assign(x,e)}n&&(x.per_page=n),i&&(x.author=i),s&&(x.search=s),c?.length&&(x.exclude=c),d?.length&&(x.parent=d),u&&(x.sticky="only"===u),m&&(b?.startsWith("archive-")?(x.postType=b.replace("archive-",""),a=x.postType):k&&(x.categories=k[0]?.id));return{posts:g("postType",f||a,{...x,...h}),blocks:v(t)}}),[n,w,o,r,l,t,i,s,a,c,u,m,b,p,d,h,f]),T=(0,qe.useMemo)((()=>S?.map((e=>({postType:e.type,postId:e.id})))),[S]),N=(0,Ye.useBlockProps)({className:it()(y,{[`columns-${x}`]:"grid"===k&&x})});if(!S)return(0,qe.createElement)("p",{...N},(0,qe.createElement)(Ke.Spinner,null));if(!S.length)return(0,qe.createElement)("p",{...N}," ",(0,Je.__)("No results found."));const P=t=>e({layout:{...v,...t}}),I=[{icon:Cm,title:(0,Je.__)("List view"),onClick:()=>P({type:"default"}),isActive:"default"===k||"constrained"===k},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>P({type:"grid",columnCount:x}),isActive:"grid"===k}];return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:I})),(0,qe.createElement)("ul",{...N},T&&T.map((e=>(0,qe.createElement)(Ye.BlockContextProvider,{key:e.postId,value:e},e.postId===(C||T[0]?.postId)?(0,qe.createElement)(Qb,null):null,(0,qe.createElement)(Kb,{blocks:B,blockContextId:e.postId,setActiveBlockContextId:E,isHidden:e.postId===(C||T[0]?.postId)}))))))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},ef=()=>Qe({name:Yb,metadata:Jb,settings:Xb});var tf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));const nf=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];const of=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const af={category:tf,post_tag:of};function rf(e,t){if("core/post-terms"!==t)return e;const n=e.variations.map((e=>{var t;return{...e,icon:null!==(t=af[e.name])&&void 0!==t?t:tf}}));return{...e,variations:n}}const lf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:""},suffix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:sf}=lf,cf={icon:tf,edit:function({attributes:e,clientId:t,context:n,isSelected:o,setAttributes:a,insertBlocksAfter:r}){const{term:l,textAlign:i,separator:s,prefix:c,suffix:u}=e,{postId:m,postType:p}=n,d=(0,ut.useSelect)((e=>{if(!l)return{};const{getTaxonomy:t}=e(ct.store),n=t(l);return n?.visibility?.publicly_queryable?n:{}}),[l]),{postTerms:g,hasPostTerms:h,isLoading:_}=function({postId:e,term:t}){const{slug:n}=t;return(0,ut.useSelect)((o=>{const a=t?.visibility?.publicly_queryable;if(!a)return{postTerms:[],_isLoading:!1,hasPostTerms:!1};const{getEntityRecords:r,isResolving:l}=o(ct.store),i=["taxonomy",n,{post:e,per_page:-1,context:"view"}],s=r(...i);return{postTerms:s,isLoading:l("getEntityRecords",i),hasPostTerms:!!s?.length}}),[e,t?.visibility?.publicly_queryable,n])}({postId:m,term:d}),b=m&&p,f=(0,Ye.useBlockDisplayInformation)(t),v=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${i}`]:i,[`taxonomy-${l}`]:l})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:i,onChange:e=>{a({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,Je.__)("Separator"),value:s||"",onChange:e=>{a({separator:e})},help:(0,Je.__)("Enter character(s) used to separate terms.")})),(0,qe.createElement)("div",{...v},_&&b&&(0,qe.createElement)(Ke.Spinner,null),!_&&h&&(o||c)&&(0,qe.createElement)(Ye.RichText,{allowedFormats:nf,className:"wp-block-post-terms__prefix",multiline:!1,"aria-label":(0,Je.__)("Prefix"),placeholder:(0,Je.__)("Prefix")+" ",value:c,onChange:e=>a({prefix:e}),tagName:"span"}),(!b||!l)&&(0,qe.createElement)("span",null,f.title),b&&!_&&h&&g.map((e=>(0,qe.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},(0,On.decodeEntities)(e.name)))).reduce(((e,t)=>(0,qe.createElement)(qe.Fragment,null,e,(0,qe.createElement)("span",{className:"wp-block-post-terms__separator"},s||" "),t))),b&&!_&&!h&&(d?.labels?.no_terms||(0,Je.__)("Term items not found.")),!_&&h&&(o||u)&&(0,qe.createElement)(Ye.RichText,{allowedFormats:nf,className:"wp-block-post-terms__suffix",multiline:!1,"aria-label":(0,Je.__)("Suffix"),placeholder:" "+(0,Je.__)("Suffix"),value:u,onChange:e=>a({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))})))}},uf=()=>((0,Zl.addFilter)("blocks.registerBlockType","core/template-part",rf),Qe({name:sf,metadata:lf,settings:cf}));var mf=window.wp.wordcount;var pf=function({attributes:e,setAttributes:t,context:n}){const{textAlign:o}=e,{postId:a,postType:r}=n,[l]=(0,ct.useEntityProp)("postType",r,"content",a),[i]=(0,ct.useEntityBlockEditor)("postType",r,{id:a}),s=(0,qe.useMemo)((()=>{let e;e=l instanceof Function?l({blocks:i}):i?(0,je.__unstableSerializeAndClean)(i):l;const t=(0,Je._x)("words","Word count type. Do not translate!"),n=Math.max(1,Math.round((0,mf.count)(e,t)/189));return(0,Je.sprintf)((0,Je._n)("%d minute","%d minutes",n),n)}),[l,i]),c=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...c},s))},df=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"}));const gf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/post-time-to-read",title:"Time To Read",category:"theme",description:"Show minutes required to finish reading the post.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:hf}=gf,_f={icon:df,edit:pf},bf=()=>Qe({name:hf,metadata:gf,settings:_f}),{useBlockEditingMode:ff}=Yt(Ye.privateApis);const vf={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var yf=[vf];const kf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:xf}=kf,wf={icon:br,edit:function({attributes:{level:e,textAlign:t,isLink:n,rel:o,linkTarget:a},setAttributes:r,context:{postType:l,postId:i,queryId:s},insertBlocksAfter:c}){const u="h"+e,m=ab("postType",!Number.isFinite(s)&&l,i),[p="",d,g]=(0,ct.useEntityProp)("postType",l,"title",i),[h]=(0,ct.useEntityProp)("postType",l,"link",i),_=()=>{c((0,je.createBlock)((0,je.getDefaultBlockName)()))},b=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),f=ff();let v=(0,qe.createElement)(u,{...b},(0,Je.__)("Title"));return l&&i&&(v=m?(0,qe.createElement)(Ye.PlainText,{tagName:u,placeholder:(0,Je.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...b}):(0,qe.createElement)(u,{...b,dangerouslySetInnerHTML:{__html:g?.rendered}})),n&&l&&i&&(v=m?(0,qe.createElement)(u,{...b},(0,qe.createElement)(Ye.PlainText,{tagName:"a",href:h,target:a,rel:o,placeholder:p.length?null:(0,Je.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:_})):(0,qe.createElement)(u,{...b},(0,qe.createElement)("a",{href:h,target:a,rel:o,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:g?.rendered}}))),(0,qe.createElement)(qe.Fragment,null,"default"===f&&(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:e,onChange:e=>r({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Make title a link"),onChange:()=>r({isLink:!n}),checked:n}),n&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:o,onChange:e=>r({rel:e})})))),v)},deprecated:yf},Cf=()=>Qe({name:xf,metadata:kf,settings:wf});var Ef=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));const Sf={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>(0,je.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/paragraph",{...e,content:e.content.replace(/\n/g,"<br>")})},{type:"block",blocks:["core/code"],transform:e=>(0,je.createBlock)("core/code",e)}]};var Bf=Sf;const Tf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:Nf}=Tf,Pf={icon:Ef,example:{attributes:{content:(0,Je.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll 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:Bf,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:o,style:a}){const{content:r}=e,l=(0,Ye.useBlockProps)({style:a});return(0,qe.createElement)(Ye.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:r,onChange:e=>{n({content:e})},onRemove:o,"aria-label":(0,Je.__)("Preformatted text"),placeholder:(0,Je.__)("Write preformatted text…"),onMerge:t,...l,__unstablePastePlainText:!0})},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{value:t}))},merge(e,t){return{content:e.content+t.content}}},If=()=>Qe({name:Nf,metadata:Tf,settings:Pf});var Mf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const zf="is-style-solid-color",Rf={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"}};function Hf(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Lf(e){return(0,Cn.toHTMLString)({value:(0,Cn.replace)((0,Cn.create)({html:e,multilineTag:"p"}),new RegExp(Cn.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")})}const Af={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:n,value:o}=e,a=!Ye.RichText.isEmpty(n);return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:it()({[`has-text-align-${t}`]:t})})},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{value:o,multiline:!0}),a&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n})))},migrate({value:e,...t}){return{value:Lf(e),...t}}},Vf={attributes:{...Rf},save({attributes:e}){const{mainColor:t,customMainColor:n,customTextColor:o,textColor:a,value:r,citation:l,className:i}=e,s=i?.includes(zf);let c,u;if(s){const e=(0,Ye.getColorClassName)("background-color",t);c=it()({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else n&&(u={borderColor:n});const m=(0,Ye.getColorClassName)("color",a),p=it()({"has-text-color":a||o,[m]:m}),d=m?void 0:{color:o};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:c,style:u})},(0,qe.createElement)("blockquote",{className:p,style:d},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:o,customTextColor:a,...r}){const l=t?.includes(zf);let i;return o&&(i=l?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),{value:Lf(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},Df={attributes:{...Rf,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:a,value:r,citation:l,className:i,figureStyle:s}=e,c=i?.includes(zf);let u,m;if(c){const e=(0,Ye.getColorClassName)("background-color",t);u=it()({"has-background":e||n,[e]:e}),m={backgroundColor:e?void 0:n}}else if(n)m={borderColor:n};else if(t){m={borderColor:Hf(s)}}const p=(0,Ye.getColorClassName)("color",o),d=(o||a)&&it()("has-text-color",{[p]:p}),g=p?void 0:{color:a};return(0,qe.createElement)("figure",{className:u,style:m},(0,qe.createElement)("blockquote",{className:d,style:g},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,figureStyle:n,mainColor:o,customMainColor:a,customTextColor:r,...l}){const i=t?.includes(zf);let s;if(a&&(s=i?{color:{background:a}}:{border:{color:a}}),r&&s&&(s.color={...s.color,text:r}),!i&&o&&n){const o=Hf(n);if(o)return{value:Lf(e),...l,className:t,style:{border:{color:o}}}}return{value:Lf(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...l}}},Ff={attributes:Rf,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:a,value:r,citation:l,className:i}=e,s=i?.includes(zf);let c,u;if(s)c=(0,Ye.getColorClassName)("background-color",t),c||(u={backgroundColor:n});else if(n)u={borderColor:n};else if(t){var m;const e=null!==(m=(0,ut.select)(Ye.store).getSettings().colors)&&void 0!==m?m:[];u={borderColor:(0,Ye.getColorObjectByAttributeValues)(e,t).color}}const p=(0,Ye.getColorClassName)("color",o),d=o||a?it()("has-text-color",{[p]:p}):void 0,g=p?void 0:{color:a};return(0,qe.createElement)("figure",{className:c,style:u},(0,qe.createElement)("blockquote",{className:d,style:g},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:o,customTextColor:a,...r}){const l=t?.includes(zf);let i={};return o&&(i=l?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),{value:Lf(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},$f={attributes:{...Rf},save({attributes:e}){const{value:t,citation:n}=e;return(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{value:t,multiline:!0}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n}))},migrate({value:e,...t}){return{value:Lf(e),...t}}},Gf={attributes:{...Rf,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:o}=e;return(0,qe.createElement)("blockquote",{className:`align${o}`},(0,qe.createElement)(Ye.RichText.Content,{value:t,multiline:!0}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"footer",value:n}))},migrate({value:e,...t}){return{value:Lf(e),...t}}};var Of=[Af,Vf,Df,Ff,$f,Gf];const Uf="web"===qe.Platform.OS;var jf=function({attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o}){const{textAlign:a,citation:r,value:l}=e,i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a})}),s=!Ye.RichText.isEmpty(r)||n;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("figure",{...i},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText,{identifier:"value",tagName:"p",value:l,onChange:e=>t({value:e}),"aria-label":(0,Je.__)("Pullquote text"),placeholder:(0,Je.__)("Add quote"),textAlign:"center"}),s&&(0,qe.createElement)(Ye.RichText,{identifier:"citation",tagName:Uf?"cite":void 0,style:{display:"block"},value:r,"aria-label":(0,Je.__)("Pullquote citation text"),placeholder:(0,Je.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o((0,je.createBlock)((0,je.getDefaultBlockName)()))}))))};const qf={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/pullquote",{value:(0,Cn.toHTMLString)({value:(0,Cn.join)(e.map((({content:e})=>(0,Cn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,je.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&n.push((0,je.createBlock)("core/paragraph",{content:e})),t&&n.push((0,je.createBlock)("core/paragraph",{content:t})),0===n.length?(0,je.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,je.createBlock)("core/heading",{content:t});const n=(0,je.createBlock)("core/heading",{content:e});return t?[n,(0,je.createBlock)("core/heading",{content:t})]:n}}]};var Wf=qf;const Zf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:Qf}=Zf,Kf={icon:Mf,example:{attributes:{value:(0,Je.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Je.__)("Matt Mullenweg")}},transforms:Wf,edit:jf,save:function({attributes:e}){const{textAlign:t,citation:n,value:o}=e,a=!Ye.RichText.isEmpty(n);return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:it()({[`has-text-align-${t}`]:t})})},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",value:o}),a&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n})))},deprecated:Of},Jf=()=>Qe({name:Qf,metadata:Zf,settings:Kf});var Yf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"}));var Xf=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const{name:ev}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,layout:!0},editorStyle:"wp-block-query-editor"},tv=e=>{const t=e?.reduce(((e,t)=>{const{mapById:n,mapByName:o,names:a}=e;return n[t.id]=t,o[t.name]=t,a.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},nv=(e,t)=>{const n=t.split(".");let o=e;return n.forEach((e=>{o=o?.[e]})),o},ov=(e,t)=>(e||[]).map((e=>({...e,name:(0,On.decodeEntities)(nv(e,t))}))),av=()=>{const e=(0,ut.useSelect)((e=>{const{getPostTypes:t}=e(ct.store),n=["attachment"],o=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!n.includes(t)));return o}),[]);return{postTypesTaxonomiesMap:(0,qe.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,qe.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e])}},rv=e=>(0,ut.useSelect)((t=>{const{getTaxonomies:n}=t(ct.store);return n({type:e,per_page:-1,context:"view"})}),[e]);function lv(e,t){return!e||e.includes(t)}function iv(e,t){const n=(0,ut.useSelect)((e=>e(je.store).getActiveBlockVariation(ev,t)?.name),[t]),o=`${ev}/${n}`,a=(0,ut.useSelect)((t=>{if(!n)return;const{getBlockRootClientId:a,getPatternsByBlockTypes:r}=t(Ye.store),l=a(e);return r(o,l)}),[e,n]);return a?.length?o:ev}const sv=(e,t)=>(0,ut.useSelect)((n=>{const{getBlockRootClientId:o,getPatternsByBlockTypes:a}=n(Ye.store),r=o(e);return a(t,r)}),[t,e]);function cv({attributes:{query:e},setQuery:t,openPatternSelectionModal:n,name:o,clientId:a}){const r=!!sv(a,o).length,l=(0,Tt.useInstanceId)(cv,"blocks-query-pagination-max-page-input");return(0,qe.createElement)(qe.Fragment,null,!e.inherit&&(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>(0,qe.createElement)(Ke.ToolbarButton,{icon:Xf,label:(0,Je.__)("Display settings"),onClick:e}),renderContent:()=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.BaseControl,null,(0,qe.createElement)(Ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,Je.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||t({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})),(0,qe.createElement)(Ke.BaseControl,null,(0,qe.createElement)(Ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,Je.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})),(0,qe.createElement)(Ke.BaseControl,{id:l,help:(0,Je.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},(0,qe.createElement)(Ke.__experimentalNumberControl,{id:l,__unstableInputWidth:"60px",label:(0,Je.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})))})),r&&(0,qe.createElement)(Ke.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:n},(0,Je.__)("Replace"))))}const uv=[{label:(0,Je.__)("Newest to oldest"),value:"date/desc"},{label:(0,Je.__)("Oldest to newest"),value:"date/asc"},{label:(0,Je.__)("A → Z"),value:"title/asc"},{label:(0,Je.__)("Z → A"),value:"title/desc"}];var mv=function({order:e,orderBy:t,onChange:n}){return(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Order by"),value:`${t}/${e}`,options:uv,onChange:e=>{const[t,o]=e.split("/");n({order:o,orderBy:t})}})};const pv={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var dv=function({value:e,onChange:t}){const n=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(pv)}),[]);if(!n)return null;const o=tv(n),a=(e?e.toString().split(","):[]).reduce(((e,t)=>{const n=o.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]);return(0,qe.createElement)(Ke.FormTokenField,{label:(0,Je.__)("Authors"),value:a,suggestions:o.names,onChange:e=>{const n=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e[t]?.id;if(n)return n})(o.mapByName,t);return n&&e.add(n),e}),new Set));t({author:n.join(",")})},__experimentalShowHowTo:!1})};const gv=[],hv={order:"asc",_fields:"id,title",context:"view"};var _v=function({parents:e,postType:t,onChange:n}){const[o,a]=(0,qe.useState)(""),[r,l]=(0,qe.useState)(gv),[i,s]=(0,qe.useState)(gv),c=(0,Tt.useDebounce)(a,250),{searchResults:u,searchHasResolved:m}=(0,ut.useSelect)((n=>{if(!o)return{searchResults:gv,searchHasResolved:!0};const{getEntityRecords:a,hasFinishedResolution:r}=n(ct.store),l=["postType",t,{...hv,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:a(...l),searchHasResolved:r("getEntityRecords",l)}}),[o,e]),p=(0,ut.useSelect)((n=>{if(!e?.length)return gv;const{getEntityRecords:o}=n(ct.store);return o("postType",t,{...hv,include:e,per_page:e.length})}),[e]);(0,qe.useEffect)((()=>{if(e?.length||l(gv),!p?.length)return;const t=tv(ov(p,"title.rendered")),n=e.reduce(((e,n)=>{const o=t.mapById[n];return o&&e.push({id:n,value:o.name}),e}),[]);l(n)}),[e,p]);const d=(0,qe.useMemo)((()=>u?.length?tv(ov(u,"title.rendered")):gv),[u]);return(0,qe.useEffect)((()=>{m&&s(d.names)}),[d.names,m]),(0,qe.createElement)(Ke.FormTokenField,{label:(0,Je.__)("Parents"),value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e?.[t]?.id;if(n)return n})(d.mapByName,t);return n&&e.add(n),e}),new Set));s(gv),n({parents:t})},__experimentalShowHowTo:!1})};const bv=[],fv={order:"asc",_fields:"id,name",context:"view"},vv=(e,t)=>{const n=t?.id||e?.find((e=>e.name===t))?.id;if(n)return n;const o=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===o))?.id};function yv({onChange:e,query:t}){const{postType:n,taxQuery:o}=t,a=rv(n);return a&&0!==a.length?(0,qe.createElement)(qe.Fragment,null,a.map((t=>{const n=o?.[t.slug]||[];return(0,qe.createElement)(kv,{key:t.slug,taxonomy:t,termIds:n,onChange:n=>e({taxQuery:{...o,[t.slug]:n}})})}))):null}function kv({taxonomy:e,termIds:t,onChange:n}){const[o,a]=(0,qe.useState)(""),[r,l]=(0,qe.useState)(bv),[i,s]=(0,qe.useState)(bv),c=(0,Tt.useDebounce)(a,250),{searchResults:u,searchHasResolved:m}=(0,ut.useSelect)((n=>{if(!o)return{searchResults:bv,searchHasResolved:!0};const{getEntityRecords:a,hasFinishedResolution:r}=n(ct.store),l=["taxonomy",e.slug,{...fv,search:o,orderby:"name",exclude:t,per_page:20}];return{searchResults:a(...l),searchHasResolved:r("getEntityRecords",l)}}),[o,t]),p=(0,ut.useSelect)((n=>{if(!t?.length)return bv;const{getEntityRecords:o}=n(ct.store);return o("taxonomy",e.slug,{...fv,include:t,per_page:t.length})}),[t]);(0,qe.useEffect)((()=>{if(t?.length||l(bv),!p?.length)return;const e=t.reduce(((e,t)=>{const n=p.find((e=>e.id===t));return n&&e.push({id:t,value:n.name}),e}),[]);l(e)}),[t,p]),(0,qe.useEffect)((()=>{m&&s(u.map((e=>e.name)))}),[u,m]);return(0,qe.createElement)("div",{className:"block-library-query-inspector__taxonomy-control"},(0,qe.createElement)(Ke.FormTokenField,{label:e.name,value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=new Set;for(const n of e){const e=vv(u,n);e&&t.add(e)}s(bv),n(Array.from(t))},__experimentalShowHowTo:!1}))}const xv=[{label:(0,Je.__)("Include"),value:""},{label:(0,Je.__)("Exclude"),value:"exclude"},{label:(0,Je.__)("Only"),value:"only"}];function wv({value:e,onChange:t}){return(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Sticky posts"),options:xv,value:e,onChange:t,help:(0,Je.__)("Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.")})}var Cv=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=(0,st.addQueryArgs)("post-new.php",{post_type:e});return(0,qe.createElement)("div",{className:"wp-block-query__create-new-link"},(0,qe.createInterpolateElement)((0,Je.__)("<a>Add new post</a>"),{a:(0,qe.createElement)("a",{href:t})}))};const{BlockInfo:Ev}=Yt(Ye.privateApis);function Sv(e){const{attributes:t,setQuery:n,setDisplayLayout:o}=e,{query:a,displayLayout:r}=t,{order:l,orderBy:i,author:s,postType:c,sticky:u,inherit:m,taxQuery:p,parents:d}=a,g=function(e){return(0,ut.useSelect)((t=>t(je.store).getActiveBlockVariation(ev,e)?.allowedControls),[e])}(t),[h,_]=(0,qe.useState)("post"===c),{postTypesTaxonomiesMap:b,postTypesSelectOptions:f}=av(),v=rv(c),y=function(e){return(0,ut.useSelect)((t=>{const n=t(ct.store).getPostType(e);return n?.viewable&&n?.hierarchical}),[e])}(c);(0,qe.useEffect)((()=>{_("post"===c)}),[c]);const[k,x]=(0,qe.useState)(a.search),w=(0,qe.useCallback)((0,Tt.debounce)((()=>{a.search!==k&&n({search:k})}),250),[k,a.search]);(0,qe.useEffect)((()=>(w(),w.cancel)),[k,w]);const C=lv(g,"inherit"),E=!m&&lv(g,"postType"),S=!m&&lv(g,"order"),B=!m&&h&&lv(g,"sticky"),T=C||E||S||B,N=!!v?.length&&lv(g,"taxQuery"),P=lv(g,"author"),I=lv(g,"search"),M=lv(g,"parents")&&y,z=N||P||I||M;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ev,null,(0,qe.createElement)(Cv,{...e})),T&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},C&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Inherit query from template"),help:(0,Je.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!m,onChange:e=>n({inherit:!!e})}),E&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,options:f,value:c,label:(0,Je.__)("Post type"),onChange:e=>{const t={postType:e},o=b[e],a=Object.entries(p||{}).reduce(((e,[t,n])=>(o.includes(t)&&(e[t]=n),e)),{});t.taxQuery=Object.keys(a).length?a:void 0,"post"!==e&&(t.sticky=""),t.parents=[],n(t)},help:(0,Je.__)("WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.")}),false,S&&(0,qe.createElement)(mv,{order:l,orderBy:i,onChange:n}),B&&(0,qe.createElement)(wv,{value:u,onChange:e=>n({sticky:e})}))),!m&&z&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,Je.__)("Filters"),resetAll:()=>{n({author:"",parents:[],search:"",taxQuery:null}),x("")}},N&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{label:(0,Je.__)("Taxonomies"),hasValue:()=>Object.values(p||{}).some((e=>!!e.length)),onDeselect:()=>n({taxQuery:null})},(0,qe.createElement)(yv,{onChange:n,query:a})),P&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Je.__)("Authors"),onDeselect:()=>n({author:""})},(0,qe.createElement)(dv,{value:s,onChange:n})),I&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,Je.__)("Keyword"),onDeselect:()=>x("")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Keyword"),value:k,onChange:x})),M&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!d?.length,label:(0,Je.__)("Parents"),onDeselect:()=>n({parents:[]})},(0,qe.createElement)(_v,{parents:d,postType:c,onChange:n})))))}const Bv=[["core/post-template"]];function Tv({attributes:e,setAttributes:t,openPatternSelectionModal:n,name:o,clientId:a}){const{queryId:r,query:l,displayLayout:i,tagName:s="div",query:{inherit:c}={}}=e,{__unstableMarkNextChangeAsNotPersistent:u}=(0,ut.useDispatch)(Ye.store),m=(0,Tt.useInstanceId)(Tv),p=(0,Ye.useBlockProps)(),d=(0,Ye.useInnerBlocksProps)(p,{template:Bv}),{postsPerPage:g}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{getEntityRecord:n,canUser:o}=e(ct.store);return{postsPerPage:(o("read","settings")?+n("root","site")?.posts_per_page:+t().postsPerPage)||3}}),[]);(0,qe.useEffect)((()=>{const e={};(c&&l.perPage!==g||!l.perPage&&g)&&(e.perPage=g),Object.keys(e).length&&(u(),h(e))}),[l.perPage,g,c]),(0,qe.useEffect)((()=>{Number.isFinite(r)||(u(),t({queryId:m}))}),[r,m]);const h=e=>t({query:{...l,...e}}),_={main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Sv,{attributes:e,setQuery:h,setDisplayLayout:e=>t({displayLayout:{...i,...e}})}),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(cv,{name:o,clientId:a,attributes:e,setQuery:h,openPatternSelectionModal:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:s,onChange:e=>t({tagName:e}),help:_[s]})),(0,qe.createElement)(s,{...d}))}function Nv({attributes:e,clientId:t,name:n,openPatternSelectionModal:o,setAttributes:a}){const[r,l]=(0,qe.useState)(!1),i=(0,Ye.useBlockProps)(),s=iv(t,e),{blockType:c,allVariations:u,hasPatterns:m}=(0,ut.useSelect)((e=>{const{getBlockVariations:o,getBlockType:a}=e(je.store),{getBlockRootClientId:r,getPatternsByBlockTypes:l}=e(Ye.store),i=r(t);return{blockType:a(n),allVariations:o(n),hasPatterns:!!l(s,i).length}}),[n,s,t]),p=(0,Ye.__experimentalGetMatchingVariation)(e,u),d=p?.icon?.src||p?.icon||c?.icon?.src,g=p?.title||c?.title;return r?(0,qe.createElement)(Pv,{clientId:t,attributes:e,setAttributes:a,icon:d,label:g}):(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ke.Placeholder,{icon:d,label:g,instructions:(0,Je.__)("Choose a pattern for the query loop or start blank.")},!!m&&(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:o},(0,Je.__)("Choose")),(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{l(!0)}},(0,Je.__)("Start blank"))))}function Pv({clientId:e,attributes:t,setAttributes:n,icon:o,label:a}){const r=function(e){const{activeVariationName:t,blockVariations:n}=(0,ut.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(je.store);return{activeVariationName:n(ev,e)?.name,blockVariations:o(ev,"block")}}),[e]);return(0,qe.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return n.filter(e);const o=n.filter((e=>e.attributes?.namespace?.includes(t)));return o.length?o:n.filter(e)}),[t,n])}(t),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o,label:a,variations:r,onSelect:o=>{o.attributes&&n({...o.attributes,query:{...o.attributes.query,postType:t.query.postType||o.attributes.query.postType},namespace:t.namespace}),o.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),!1)}}))}function Iv(e=""){return e=(e=bu()(e)).trim().toLowerCase()}function Mv(e,t){const n=Iv(t),o=Iv(e.title);let a=0;if(n===o)a+=30;else if(o.startsWith(n))a+=20;else{n.split(" ").every((e=>o.includes(e)))&&(a+=10)}return a}function zv(e=[],t=""){if(!t)return e;const n=e.map((e=>[e,Mv(e,t)])).filter((([,e])=>e>0));return n.sort((([,e],[,t])=>t-e)),n.map((([e])=>e))}function Rv({clientId:e,attributes:t,setIsPatternSelectionModalOpen:n}){const[o,a]=(0,qe.useState)(""),{replaceBlock:r,selectBlock:l}=(0,ut.useDispatch)(Ye.store),i=(0,qe.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),s=iv(e,t),c=sv(e,s),u=(0,qe.useMemo)((()=>zv(c,o)),[c,o]),m=(0,Tt.useAsyncList)(u);return(0,qe.createElement)(Ke.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,Je.__)("Choose a pattern"),onRequestClose:()=>n(!1),isFullScreen:!0},(0,qe.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,qe.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,qe.createElement)(Ke.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:o,label:(0,Je.__)("Search for patterns"),placeholder:(0,Je.__)("Search")})),(0,qe.createElement)(Ye.BlockContextProvider,{value:i},(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:u,shownPatterns:m,onClickPattern:(n,o)=>{const{newBlocks:a,queryClientIds:i}=((e,t)=>{const{query:{postType:n,inherit:o}}=t,a=e.map((e=>(0,je.cloneBlock)(e))),r=[],l=[...a];for(;l.length>0;){const e=l.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:n,inherit:o},r.push(e.clientId)),e.innerBlocks?.forEach((e=>{l.push(e)}))}return{newBlocks:a,queryClientIds:r}})(o,t);r(e,a),i[0]&&l(i[0])}}))))}var Hv=e=>{const{clientId:t,attributes:n}=e,[o,a]=(0,qe.useState)(!1),r=(0,ut.useSelect)((e=>!!e(Ye.store).getBlocks(t).length),[t])?Tv:Nv;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(r,{...e,openPatternSelectionModal:()=>a(!0)}),o&&(0,qe.createElement)(Rv,{clientId:t,attributes:n,setIsPatternSelectionModalOpen:a}))};const Lv=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Av=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Vv=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Dv=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Fv={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var $v=[{name:"posts-list",title:(0,Je.__)("Posts List"),description:(0,Je.__)("Display a list of your most recent posts, excluding sticky posts."),icon:km,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:(0,Je.__)("Title & Date"),icon:Lv,attributes:{...Fv},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Je.__)("Title & Excerpt"),icon:Av,attributes:{...Fv},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,Je.__)("Title, Date, & Excerpt"),icon:Vv,attributes:{...Fv},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Je.__)("Image, Date, & Title"),icon:Dv,attributes:{...Fv},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const{cleanEmptyObject:Gv}=Yt(Ye.privateApis),Ov=e=>{const{query:t}=e,{categoryIds:n,tagIds:o,...a}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(a.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:a}},Uv=(e,t)=>{const{style:n,backgroundColor:o,gradient:a,textColor:r,...l}=e;if(!(o||a||r||n?.color||n?.elements?.link))return[e,t];if(n&&(l.style=Gv({...n,color:void 0,elements:{...n.elements,link:void 0}})),jv(t)){const e=t[0],i=n?.color||n?.elements?.link||e.attributes.style?Gv({...e.attributes.style,color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0}):void 0;return[l,[(0,je.createBlock)("core/group",{...e.attributes,backgroundColor:o,gradient:a,textColor:r,style:i},e.innerBlocks)]]}return[l,[(0,je.createBlock)("core/group",{backgroundColor:o,gradient:a,textColor:r,style:Gv({color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0})},t)]]},jv=(e=[])=>1===e.length&&"core/group"===e[0].name,qv=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:n=null,contentSize:o=null,...a}=t;return n||o?{...e,layout:{...a,contentSize:o,type:"constrained"}}:e},Wv=(e=[])=>{let t=null;for(const n of e){if("core/post-template"===n.name){t=n;break}n.innerBlocks.length&&(t=Wv(n.innerBlocks))}return t},Zv=(e=[],t)=>(e.forEach(((n,o)=>{"core/post-template"===n.name?e.splice(o,1,t):n.innerBlocks.length&&(n.innerBlocks=Zv(n.innerBlocks,t))})),e),Qv=(e,t)=>{const{displayLayout:n=null,...o}=e;if(!n)return[e,t];const a=Wv(t);if(!a)return[e,t];const{type:r,columns:l}=n,i="flex"===r?"grid":"default",s=(0,je.createBlock)("core/post-template",{...a.attributes,layout:{type:i,...l&&{columnCount:l}}},a.innerBlocks);return[o,Zv(t,s)]},Kv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){const n=Ov(e),{layout:o,...a}=n,r={...a,displayLayout:n.layout};return Qv(r,t)},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Jv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const n=Ov(e),[o,a]=Uv(n,t),r=qv(o);return Qv(r,a)},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})}},Yv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:n,gradient:o,textColor:a}=e;return n||o||a||t?.color||t?.elements?.link},migrate(e,t){const[n,o]=Uv(e,t),a=qv(n);return Qv(a,o)},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})}},Xv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const n=qv(e);return Qv(n,t)}};var ey=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},isEligible:({displayLayout:e})=>!!e,migrate:Qv},Xv,Yv,Jv,Kv];const ty={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,layout:!0},editorStyle:"wp-block-query-editor"},{name:ny}=ty,oy={icon:Yf,edit:Hv,save:function({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},variations:$v,deprecated:ey},ay=()=>Qe({name:ny,metadata:ty,settings:oy}),ry=[["core/paragraph",{placeholder:(0,Je.__)("Add text or blocks that will display when a query returns no results.")}]];const ly={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:iy}=ly,sy={icon:Yf,edit:function(){const e=(0,Ye.useBlockProps)(),t=(0,Ye.useInnerBlocksProps)(e,{template:ry});return(0,qe.createElement)("div",{...t})},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},cy=()=>Qe({name:iy,metadata:ly,settings:sy});function uy({value:e,onChange:t}){return(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:e,onChange:t,help:(0,Je.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}function my({value:e,onChange:t}){return(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label text"),help:(0,Je.__)('Toggle off to hide the label text, e.g. "Next Page".'),onChange:t,checked:!0===e})}const py=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]],dy=["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"];var gy=[{save(){return(0,qe.createElement)("div",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const hy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:_y}=hy,by={icon:Ja,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:n,clientId:o}){const a=(0,ut.useSelect)((e=>{const{getBlocks:t}=e(Ye.store),n=t(o);return n?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[]),r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:py,allowedBlocks:dy});return(0,qe.useEffect)((()=>{"none"!==e||t||n({showLabel:!0})}),[e,n,t]),(0,qe.createElement)(qe.Fragment,null,a&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(uy,{value:e,onChange:e=>{n({paginationArrow:e})}}),"none"!==e&&(0,qe.createElement)(my,{value:t,onChange:e=>{n({showLabel:e})}}))),(0,qe.createElement)("nav",{...l}))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},deprecated:gy},fy=()=>Qe({name:_y,metadata:hy,settings:by}),vy={none:"",arrow:"→",chevron:"»"};const yy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:ky}=yy,xy={icon:rr,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:o}}){const a=vy[n];return(0,qe.createElement)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},o&&(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Next page link"),placeholder:(0,Je.__)("Next Page"),value:e,onChange:e=>t({label:e})}),a&&(0,qe.createElement)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${n}`,"aria-hidden":!0},a))}},wy=()=>Qe({name:ky,metadata:yy,settings:xy}),Cy=(e,t="a",n="")=>(0,qe.createElement)(t,{className:`page-numbers ${n}`},e);const Ey={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-query-pagination-numbers-editor"},{name:Sy}=Ey,By={icon:mr,edit:function(){const e=(0,qe.createElement)(qe.Fragment,null,Cy(1),Cy(2),Cy(3,"span","current"),Cy(4),Cy(5),Cy("...","span","dots"),Cy(8));return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},e)}},Ty=()=>Qe({name:Sy,metadata:Ey,settings:By}),Ny={none:"",arrow:"←",chevron:"«"};const Py={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Iy}=Py,My={icon:ja,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:o}}){const a=Ny[n];return(0,qe.createElement)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},a&&(0,qe.createElement)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${n}`,"aria-hidden":!0},a),o&&(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Previous page link"),placeholder:(0,Je.__)("Previous Page"),value:e,onChange:e=>t({label:e})}))}},zy=()=>Qe({name:Iy,metadata:Py,settings:My}),Ry=["archive","search"];const Hy=[{isDefault:!0,name:"archive-title",title:(0,Je.__)("Archive Title"),description:(0,Je.__)("Display the archive title based on the queried object."),icon:br,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Je.__)("Search Results Title"),description:(0,Je.__)("Display the search results title based on the queried object."),icon:br,attributes:{type:"search"},scope:["inserter"]}];Hy.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Ly=Hy;const Ay={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var Vy=[Ay];const Dy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-query-title"},{name:Fy}=Dy,$y={icon:br,edit:function({attributes:{type:e,level:t,textAlign:n,showPrefix:o,showSearchTerm:a},setAttributes:r}){const l=`h${t}`,i=(0,Ye.useBlockProps)({className:it()("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!Ry.includes(e))return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Provided type is not supported.")));let s;return"archive"===e&&(s=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show archive type in title"),onChange:()=>r({showPrefix:!o}),checked:o}))),(0,qe.createElement)(l,{...i},o?(0,Je.__)("Archive type: Name"):(0,Je.__)("Archive title")))),"search"===e&&(s=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show search term in title"),onChange:()=>r({showSearchTerm:!a}),checked:a}))),(0,qe.createElement)(l,{...i},a?(0,Je.__)("Search results for: “search term”"):(0,Je.__)("Search results")))),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:t,onChange:e=>r({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),s)},variations:Ly,deprecated:Vy},Gy=()=>Qe({name:Fy,metadata:Dy,settings:$y});var Oy=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const Uy=e=>{const{value:t,...n}=e;return[{...n},t?(0,je.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,je.createBlock)("core/paragraph",{content:e}))):(0,je.createBlock)("core/paragraph")]},jy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:n,citation:o}=e,a=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("blockquote",{...Ye.useBlockProps.save({className:a})},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))},migrate:Uy},qy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:Uy,save({attributes:e}){const{align:t,value:n,citation:o}=e;return(0,qe.createElement)("blockquote",{style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))}},Wy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...n}=e;return Uy({...n,className:e.className?e.className+" is-style-large":"is-style-large"})}return Uy(e)},save({attributes:e}){const{align:t,value:n,citation:o,style:a}=e;return(0,qe.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))}},Zy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...n}=e;return Uy({...n})}return Uy(e)},save({attributes:e}){const{align:t,value:n,citation:o,style:a}=e;return(0,qe.createElement)("blockquote",{className:`blocks-quote-style-${a}`,style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"footer",value:o}))}};var Qy=[jy,qy,Wy,Zy];const Ky="web"===qe.Platform.OS,Jy=[["core/paragraph",{}]];const Yy={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n,fontSize:o,style:a})=>(0,je.createBlock)("core/quote",{citation:t,anchor:n,fontSize:o,style:a},[(0,je.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,je.createBlock)("core/quote",{},[(0,je.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,je.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,je.createBlock)("core/quote",{},e.map((e=>(0,je.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({citation:e,anchor:t,fontSize:n,style:o},a)=>{const r=a.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,je.createBlock)("core/pullquote",{value:r,citation:e,anchor:t,fontSize:n,style:o})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>e?[...t,(0,je.createBlock)("core/paragraph",{content:e})]:t},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},n)=>(0,je.createBlock)("core/group",{anchor:t},e?[...n,(0,je.createBlock)("core/paragraph",{content:e})]:n)}],ungroup:({citation:e},t)=>e?[...t,(0,je.createBlock)("core/paragraph",{content:e})]:t};var Xy=Yy;const ek={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:tk}=ek,nk={icon:Oy,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("In quoting others, we cite ourselves.")}}]},transforms:Xy,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n,clientId:o,className:a,style:r}){const{align:l,citation:i}=e;((e,t)=>{const n=(0,ut.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{if(!e.value)return;const[r,l]=Uy(e);Gm()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,r),a(t,l)}))}),[e.value])})(e,o);const s=(0,ut.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:n}=e(Ye.store);return n(o)||t(o)}),[]),c=(0,Ye.useBlockProps)({className:it()(a,{[`has-text-align-${l}`]:l}),...!Ky&&{style:r}}),u=(0,Ye.useInnerBlocksProps)(c,{template:Jy,templateInsertUpdatesSelection:!0});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>{t({align:e})}})),(0,qe.createElement)(Ke.BlockQuotation,{...u},u.children,(!Ye.RichText.isEmpty(i)||s)&&(0,qe.createElement)(Ye.RichText,{identifier:"citation",tagName:Ky?"cite":void 0,style:{display:"block"},value:i,onChange:e=>{t({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":(0,Je.__)("Quote citation"),placeholder:(0,Je.__)("Add citation"),className:"wp-block-quote__citation",__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)())),...Ky?{}:{textAlign:l}})))},save:function({attributes:e}){const{align:t,citation:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("blockquote",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.InnerBlocks.Content,null),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n}))},deprecated:Qy},ok=()=>Qe({name:tk,metadata:ek,settings:nk});var ak=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),rk=window.wp.reusableBlocks;var lk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const ik={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},{name:sk}=ik,ck={edit:function({attributes:{ref:e},clientId:t}){const n=(0,Ye.__experimentalUseHasRecursion)(e),{record:o,hasResolved:a}=(0,ct.useEntityRecord)("postType","wp_block",e),r=a&&!o,{canRemove:l,innerBlockCount:i}=(0,ut.useSelect)((e=>{const{canRemoveBlock:n,getBlockCount:o}=e(Ye.store);return{canRemove:n(t),innerBlockCount:o(t)}}),[t]),{__experimentalConvertBlockToStatic:s}=(0,ut.useDispatch)(rk.store),[c,u,m]=(0,ct.useEntityBlockEditor)("postType","wp_block",{id:e}),[p,d]=(0,ct.useEntityProp)("postType","wp_block","title",e),g=(0,Ye.useBlockProps)({className:"block-library-block__reusable-block-container"}),h=(0,Ye.useInnerBlocksProps)(g,{value:c,onInput:u,onChange:m,renderAppender:c?.length?void 0:Ye.InnerBlocks.ButtonBlockAppender});return n?(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself."))):r?(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block has been deleted or is unavailable."))):a?(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:e},l&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>s(t),label:i>1?(0,Je.__)("Detach patterns"):(0,Je.__)("Detach pattern"),icon:lk,showTooltip:!0}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Name"),value:p,onChange:d}))),(0,qe.createElement)("div",{...h})):(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ke.Placeholder,null,(0,qe.createElement)(Ke.Spinner,null)))},icon:ak},uk=()=>Qe({name:sk,metadata:ik,settings:ck});const mk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}}},style:"wp-block-read-more"},{name:pk}=mk,dk={icon:mn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:n,insertBlocksAfter:o}){const a=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t}))),(0,qe.createElement)(Ye.RichText,{tagName:"a","aria-label":(0,Je.__)("“Read more” link text"),placeholder:(0,Je.__)("Read more"),value:e,onChange:e=>n({content:e}),__unstableOnSplitAtEnd:()=>o((0,je.createBlock)((0,je.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...a}))}},gk=()=>Qe({name:pk,metadata:mk,settings:dk});var hk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const _k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:bk}=_k,fk={icon:hk,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,o]=(0,qe.useState)(!e.feedURL),{blockLayout:a,columns:r,displayAuthor:l,displayDate:i,displayExcerpt:s,excerptLength:c,feedURL:u,itemsToShow:m}=e;function p(n){return()=>{const o=e[n];t({[n]:!o})}}const d=(0,Ye.useBlockProps)();if(n)return(0,qe.createElement)("div",{...d},(0,qe.createElement)(Ke.Placeholder,{icon:hk,label:"RSS"},(0,qe.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,st.prependHTTP)(u)}),o(!1))},className:"wp-block-rss__placeholder-form"},(0,qe.createElement)(Ke.__experimentalHStack,{wrap:!0},(0,qe.createElement)(Ke.__experimentalInputControl,{__next36pxDefaultSize:!0,placeholder:(0,Je.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit"},(0,Je.__)("Use URL"))))));const g=[{icon:vi,title:(0,Je.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:Cm,title:(0,Je.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===a},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===a}];return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:g})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of items"),value:m,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display author"),checked:l,onChange:p("displayAuthor")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display date"),checked:i,onChange:p("displayDate")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display excerpt"),checked:s,onChange:p("displayExcerpt")}),s&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===a&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),(0,qe.createElement)("div",{...d},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/rss",attributes:e}))))}},vk=()=>Qe({name:bk,metadata:_k,settings:fk});var yk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const kk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),xk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,qe.createElement)(Ke.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),wk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,qe.createElement)(Ke.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ck=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Ek=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,qe.createElement)(Ke.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Sk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,qe.createElement)(Ke.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));const Bk="expand-searchfield";var Tk=[{name:"default",isDefault:!0,attributes:{buttonText:(0,Je.__)("Search"),label:(0,Je.__)("Search")}}];const Nk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},buttonBehavior:{type:"string",default:"expand-searchfield"},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Pk}=Nk,Ik={icon:yk,example:{attributes:{buttonText:(0,Je.__)("Search"),label:(0,Je.__)("Search")},viewportWidth:400},variations:Tk,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:o,isSelected:a,clientId:r}){const{label:l,showLabel:i,placeholder:s,width:c,widthUnit:u,align:m,buttonText:p,buttonPosition:d,buttonUseIcon:g,buttonBehavior:h,isSearchFieldHidden:_,style:b}=t,f=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:n}=e(Ye.store);return!!t(r,"core/navigation")?.length&&n(r)}),[r]),{__unstableMarkNextChangeAsNotPersistent:v}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{f&&(v(),n({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[f]);const y=b?.border?.radius,k=(0,Ye.__experimentalUseBorderProps)(t);"number"==typeof y&&(k.style.borderRadius=`${y}px`);const x=(0,Ye.__experimentalUseColorProps)(t),w=(0,Ye.useSetting)("typography.fluid"),C=(0,Ye.useSetting)("layout"),E=(0,Ye.getTypographyClassesAndStyles)(t,{typography:{fluid:w},layout:{wideSize:C?.wideSize}}),S=`wp-block-search__width-${(0,Tt.useInstanceId)(Ke.__experimentalUnitControl)}`,B="button-inside"===d,T="button-outside"===d,N="no-button"===d,P="button-only"===d,I=(0,qe.useRef)(),M=(0,qe.useRef)(),z=(0,Ke.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,qe.useEffect)((()=>{P&&!a&&n({isSearchFieldHidden:!0})}),[P,a,n]),(0,qe.useEffect)((()=>{P&&a&&n({isSearchFieldHidden:!1})}),[P,a,n,c]);const R=[{role:"menuitemradio",title:(0,Je.__)("Button outside"),isActive:"button-outside"===d,icon:xk,onClick:()=>{n({buttonPosition:"button-outside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("Button inside"),isActive:"button-inside"===d,icon:wk,onClick:()=>{n({buttonPosition:"button-inside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("No button"),isActive:"no-button"===d,icon:Ck,onClick:()=>{n({buttonPosition:"no-button",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("Button only"),isActive:"button-only"===d,icon:kk,onClick:()=>{n({buttonPosition:"button-only",isSearchFieldHidden:!0})}}],H=()=>{const e=it()("wp-block-search__input",B?void 0:k.className,E.className),t={...B?{borderRadius:y}:k.style,...E.style,textDecoration:void 0};return(0,qe.createElement)("input",{type:"search",className:e,style:t,"aria-label":(0,Je.__)("Optional placeholder text"),placeholder:s?void 0:(0,Je.__)("Optional placeholder…"),value:s,onChange:e=>n({placeholder:e.target.value}),ref:I})},L=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Toggle search label"),icon:Sk,onClick:()=>{n({showLabel:!i})},className:i?"is-pressed":void 0}),(0,qe.createElement)(Ke.ToolbarDropdownMenu,{icon:(()=>{switch(d){case"button-inside":return wk;case"button-outside":return xk;case"no-button":return Ck;case"button-only":return kk}})(),label:(0,Je.__)("Change button position"),controls:R}),!N&&(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Use button with icon"),icon:Ek,onClick:()=>{n({buttonUseIcon:!g})},className:g?"is-pressed":void 0}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Display Settings")},(0,qe.createElement)(Ke.BaseControl,{label:(0,Je.__)("Width"),id:S},(0,qe.createElement)(Ke.__experimentalUnitControl,{id:S,min:"220px",onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:z}),(0,qe.createElement)(Ke.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,Je.__)("Percentage Width")},[25,50,75,100].map((e=>(0,qe.createElement)(Ke.Button,{key:e,isSmall:!0,variant:e===c&&"%"===u?"primary":void 0,onClick:()=>n({width:e,widthUnit:"%"})},e,"%")))))))),A=e=>e?`calc(${e} + 4px)`:void 0,V=(0,Ye.useBlockProps)({className:it()(e,B?"wp-block-search__button-inside":void 0,T?"wp-block-search__button-outside":void 0,N?"wp-block-search__no-button":void 0,P?"wp-block-search__button-only":void 0,g||N?void 0:"wp-block-search__text-button",g&&!N?"wp-block-search__icon-button":void 0,P&&Bk===h?"wp-block-search__button-behavior-expand":void 0,P&&_?"wp-block-search__searchfield-hidden":void 0),style:{...E.style,textDecoration:void 0}}),D=it()("wp-block-search__label",E.className);return(0,qe.createElement)("div",{...V},L,i&&(0,qe.createElement)(Ye.RichText,{className:D,"aria-label":(0,Je.__)("Label text"),placeholder:(0,Je.__)("Add label…"),withoutInteractiveFormatting:!0,value:l,onChange:e=>n({label:e}),style:E.style}),(0,qe.createElement)(Ke.ResizableBox,{size:{width:`${c}${u}`},className:it()("wp-block-search__inside-wrapper",B?k.className:void 0),style:(()=>{const e=B?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius},t=void 0!==y&&0!==parseInt(y,10);if(B&&t){if("object"==typeof y){const{topLeft:t,topRight:n,bottomLeft:o,bottomRight:a}=y;return{...e,borderTopLeftRadius:A(t),borderTopRightRadius:A(n),borderBottomLeftRadius:A(o),borderBottomRightRadius:A(a)}}const t=Number.isInteger(y)?`${y}px`:y;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:P?{}:{right:"right"!==m,left:"right"===m},onResizeStart:(e,t,a)=>{n({width:parseInt(a.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(e,t,a,r)=>{n({width:parseInt(c+r.width,10)}),o(!0)},showHandle:a},(B||T||P)&&(0,qe.createElement)(qe.Fragment,null,H(),(()=>{const e=it()("wp-block-search__button",x.className,E.className,B?void 0:k.className,g?"has-icon":void 0,(0,Ye.__experimentalGetElementClassName)("button")),t={...x.style,...E.style,...B?{borderRadius:y}:k.style},o=()=>{P&&Bk===h&&n({isSearchFieldHidden:!_})};return(0,qe.createElement)(qe.Fragment,null,g&&(0,qe.createElement)("button",{type:"button",className:e,style:t,"aria-label":p?(0,dd.__unstableStripHTML)(p):(0,Je.__)("Search"),onClick:o,ref:M},(0,qe.createElement)(Nd,{icon:yk})),!g&&(0,qe.createElement)(Ye.RichText,{className:e,style:t,"aria-label":(0,Je.__)("Button text"),placeholder:(0,Je.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>n({buttonText:e}),onClick:o}))})()),N&&H()))}},Mk=()=>Qe({name:Pk,metadata:Nk,settings:Ik});var zk=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"}));var Rk={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,je.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const Hk={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:n}=e,o=(0,Ye.getColorClassName)("background-color",t),a=(0,Ye.getColorClassName)("color",t),r=it()({"has-text-color has-background":t||n,[o]:o,[a]:a}),l={backgroundColor:o?void 0:n,color:a?void 0:n};return(0,qe.createElement)("hr",{...Ye.useBlockProps.save({className:r,style:l})})},migrate(e){const{color:t,customColor:n,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:n?{color:{background:n}}:void 0}}};var Lk=[Hk];const Ak={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Vk}=Ak,Dk={icon:zk,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Rk,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:n,opacity:o,style:a}=e,r=(0,Ye.__experimentalUseColorProps)(e),l=r?.style?.backgroundColor,i=!!a?.color?.background;!function(e,t,n){const[o,a]=(0,qe.useState)(!1),r=(0,Tt.usePrevious)(t);(0,qe.useEffect)((()=>{"css"!==e||t||r||a(!0)}),[t,r,e]),(0,qe.useEffect)((()=>{"css"===e&&(o&&t||r&&t!==r)&&(n({opacity:"alpha-channel"}),a(!1))}),[o,t,r])}(o,l,t);const s=(0,Ye.getColorClassName)("color",n),c=it()({"has-text-color":n||l,[s]:s,"has-css-opacity":"css"===o,"has-alpha-channel-opacity":"alpha-channel"===o},r.className),u={color:l,backgroundColor:l};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.HorizontalRule,{...(0,Ye.useBlockProps)({className:c,style:i?u:void 0})}))},save:function({attributes:e}){const{backgroundColor:t,style:n,opacity:o}=e,a=n?.color?.background,r=(0,Ye.__experimentalGetColorClassesAndStyles)(e),l=(0,Ye.getColorClassName)("color",t),i=it()({"has-text-color":t||a,[l]:l,"has-css-opacity":"css"===o,"has-alpha-channel-opacity":"alpha-channel"===o},r.className),s={backgroundColor:r?.style?.backgroundColor,color:l?void 0:a};return(0,qe.createElement)("hr",{...Ye.useBlockProps.save({className:i,style:s})})},deprecated:Lk},Fk=()=>Qe({name:Vk,metadata:Ak,settings:Dk});var $k=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));var Gk=window.wp.autop;var Ok={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,Gk.removep)((0,Gk.autop)(t))}},priority:20}]};const Uk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:jk}=Uk,qk={icon:$k,transforms:Ok,edit:function e({attributes:t,setAttributes:n}){const o=`blocks-shortcode-input-${(0,Tt.useInstanceId)(e)}`;return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"components-placeholder"})},(0,qe.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},(0,qe.createElement)(Nd,{icon:$k}),(0,Je.__)("Shortcode")),(0,qe.createElement)(Ye.PlainText,{className:"blocks-shortcode__textarea",id:o,value:t.text,"aria-label":(0,Je.__)("Shortcode text"),placeholder:(0,Je.__)("Write shortcode here…"),onChange:e=>n({text:e})}))},save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.text)}},Wk=()=>Qe({name:jk,metadata:Uk,settings:qk});var Zk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const Qk=["image"],Kk="image/*",Jk=({alt:e,attributes:{align:t,width:n,height:o,isLink:a,linkTarget:r,shouldSyncIcon:l},containerRef:i,isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:g,setIcon:h,canUserEdit:_})=>{const b=em(i,[t]),f=(0,Tt.useViewportMatch)("medium"),v=!["wide","full"].includes(t)&&f,[{naturalWidth:y,naturalHeight:k},x]=(0,qe.useState)({}),[w,C]=(0,qe.useState)(!1),{toggleSelection:E}=(0,ut.useDispatch)(Ye.store),S=it()("custom-logo-link",{"is-transient":(0,Et.isBlobURL)(m)}),{imageEditing:B,maxWidth:T,title:N}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings(),n=e(ct.store).getEntityRecord("root","__unstableBase");return{title:n?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,qe.useEffect)((()=>{l&&d!==g&&c({shouldSyncIcon:!1})}),[]),(0,qe.useEffect)((()=>{s||C(!1)}),[s]);const P=(0,qe.createElement)("img",{className:"custom-logo",src:m,alt:e,onLoad:e=>{x({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}});let I,M=P;if(a&&(M=(0,qe.createElement)("a",{href:p,className:S,rel:"home",title:N,onClick:e=>e.preventDefault()},P)),b&&y&&k){I=y>b?b:y}if(!v||!I)return(0,qe.createElement)("div",{style:{width:n,height:o}},M);const z=n||120,R=y/k,H=z/R,L=y<k?Qs:Math.ceil(Qs*R),A=k<y?Qs:Math.ceil(Qs/R),V=2.5*T;let D=!1,F=!1;"center"===t?(D=!0,F=!0):(0,Je.isRTL)()?"left"===t?D=!0:F=!0:"right"===t?F=!0:D=!0;const $=d&&y&&k&&B,G=$&&w?(0,qe.createElement)(Ye.__experimentalImageEditor,{id:d,url:m,width:z,height:H,clientWidth:b,naturalHeight:k,naturalWidth:y,onSaveImage:e=>{u(e.id)},onFinishEditing:()=>{C(!1)}}):(0,qe.createElement)(Ke.ResizableBox,{size:{width:z,height:H},showHandle:s,minWidth:L,maxWidth:V,minHeight:A,maxHeight:V/R,lockAspectRatio:!0,enable:{top:!1,right:D,bottom:!0,left:F},onResizeStart:function(){E(!1)},onResizeStop:(e,t,n,o)=>{E(!0),c({width:parseInt(z+o.width,10),height:parseInt(H+o.height,10)})}},M),O=(0,qe.createInterpolateElement)((0,Je.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,qe.createElement)("a",{href:p+"/wp-admin/customize.php?autofocus[section]=title_tagline",target:"_blank",rel:"noopener noreferrer"})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image width"),onChange:e=>c({width:e}),min:L,max:V,initialPosition:Math.min(120,V),value:n||"",disabled:!v}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link image to home"),onChange:()=>c({isLink:!a}),checked:a}),a&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>c({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})),_&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Use as site icon"),onChange:e=>{c({shouldSyncIcon:e}),h(e?d:void 0)},checked:!!l,help:O})))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},$&&!w&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>C(!0),icon:Ju,label:(0,Je.__)("Crop")})),G)};function Yk({onRemoveLogo:e,...t}){return(0,qe.createElement)(Ye.MediaReplaceFlow,{...t,allowedTypes:Qk,accept:Kk},(0,qe.createElement)(Ke.MenuItem,{onClick:e},(0,Je.__)("Reset")))}const Xk=({mediaItemData:e={},itemGroupProps:t})=>{const{alt_text:n,source_url:o,slug:a,media_details:r}=e,l=r?.sizes?.full?.file||a;return(0,qe.createElement)(Ke.__experimentalItemGroup,{...t,as:"span"},(0,qe.createElement)(Ke.__experimentalHStack,{justify:"flex-start",as:"span"},(0,qe.createElement)("img",{src:o,alt:n}),(0,qe.createElement)(Ke.FlexItem,{as:"span"},(0,qe.createElement)(Ke.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title"},l))))};var ex={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,je.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]};const tx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:nx}=tx,ox={icon:Zk,example:{},edit:function({attributes:e,className:t,setAttributes:n,isSelected:o}){const{width:a,shouldSyncIcon:r}=e,l=(0,qe.useRef)(),{siteLogoId:i,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p,mediaUpload:d}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):void 0,l=n("root","__unstableBase"),i=a?r?.site_logo:l?.site_logo,s=r?.site_icon,c=i&&e(ct.store).getMedia(i,{context:"view"}),u=i&&!e(ct.store).hasFinishedResolution("getMedia",[i,{context:"view"}]);return{siteLogoId:i,canUserEdit:a,url:l?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:s,mediaUpload:e(Ye.store).getSettings().mediaUpload}}),[]),{editEntityRecord:g}=(0,ut.useDispatch)(ct.store),h=(e,t=!1)=>{(r||t)&&_(e),g("root","site",void 0,{site_logo:e})},_=e=>g("root","site",void 0,{site_icon:null!=e?e:null}),{alt_text:b,source_url:f}=null!=m?m:{},v=e=>{if(void 0===r){const t=!u;return n({shouldSyncIcon:t}),void y(e,t)}y(e)},y=(e,t=!1)=>{e&&(e.id||!e.url?h(e.id,t):h(void 0))},{createErrorNotice:k}=(0,ut.useDispatch)(Bt.store),x=e=>{k(e,{type:"snackbar"})},w=e=>{d({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Et.isBlobURL)(e?.url)||v(e)},onError:x})},C={mediaURL:f,onSelect:y,onError:x,onRemoveLogo:()=>{h(null),n({width:void 0})}},E=s&&f&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Yk,{...C}));let S;const B=void 0===i||p;B&&(S=(0,qe.createElement)(Ke.Spinner,null)),f&&(S=(0,qe.createElement)(Jk,{alt:b,attributes:e,className:t,containerRef:l,isSelected:o,setAttributes:n,logoUrl:f,setLogo:h,logoId:m?.id||i,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}));const T=it()(t,{"is-default-size":!a}),N=(0,Ye.useBlockProps)({ref:l,className:T}),P=(0,Je.__)("Add a site logo"),I=(s||f)&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media")},(0,qe.createElement)("div",{className:"block-library-site-logo__inspector-media-replace-container"},!s&&!!f&&(0,qe.createElement)(Xk,{mediaItemData:m,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}}),s&&!!f&&(0,qe.createElement)(Yk,{...C,name:(0,qe.createElement)(Xk,{mediaItemData:m}),popoverProps:{}}),s&&!f&&(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ye.MediaUpload,{onSelect:v,allowedTypes:Qk,render:({open:e})=>(0,qe.createElement)("div",{className:"block-library-site-logo__inspector-upload-container"},(0,qe.createElement)(Ke.Button,{onClick:e,variant:"secondary"},B?(0,qe.createElement)(Ke.Spinner,null):(0,Je.__)("Add media")),(0,qe.createElement)(Ke.DropZone,{onFilesDrop:w}))})))));return(0,qe.createElement)("div",{...N},E,I,!!f&&S,!f&&!s&&(0,qe.createElement)(Ke.Placeholder,{className:"site-logo_placeholder"},!!B&&(0,qe.createElement)("span",{className:"components-placeholder__preview"},(0,qe.createElement)(Ke.Spinner,null))),!f&&s&&(0,qe.createElement)(Ye.MediaPlaceholder,{onSelect:v,accept:Kk,allowedTypes:Qk,onError:x,placeholder:e=>{const n=it()("block-editor-media-placeholder",t);return(0,qe.createElement)(Ke.Placeholder,{className:n,preview:S,withIllustration:!0,style:{width:a}},e)},mediaLibraryButton:({open:e})=>(0,qe.createElement)(Ke.Button,{icon:Xu,variant:"primary",label:P,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}))},transforms:ex},ax=()=>Qe({name:nx,metadata:tx,settings:ox});var rx=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,qe.createElement)(Ke.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"}));const lx={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var ix=[lx];const sx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it’s not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},example:{},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:cx}=sx,ux={icon:rx,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{textAlign:o}=e,{canUserEdit:a,tagline:r}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:t("update","settings"),tagline:a?r?.description:l?.description}}),[]),{editEntityRecord:l}=(0,ut.useDispatch)(ct.store),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o,"wp-block-site-tagline__placeholder":!a&&!r})}),s=a?(0,qe.createElement)(Ye.RichText,{allowedFormats:[],onChange:function(e){l("root","site",void 0,{description:e})},"aria-label":(0,Je.__)("Site tagline text"),placeholder:(0,Je.__)("Write site tagline…"),tagName:"p",value:r,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)())),...i}):(0,qe.createElement)("p",{...i},r||(0,Je.__)("Site Tagline placeholder"));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{onChange:e=>t({textAlign:e}),value:o})),s)},deprecated:ix},mx=()=>Qe({name:cx,metadata:sx,settings:ux});var px=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"}));const dx=[0,1,2,3,4,5,6];const gx={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var hx=[gx];var _x={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,je.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]};const bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"},{name:fx}=bx,vx={icon:px,example:{},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{level:o,textAlign:a,isLink:r,linkTarget:l}=e,{canUserEdit:i,title:s}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:a,title:a?r?.title:l?.name}}),[]),{editEntityRecord:c}=(0,ut.useDispatch)(ct.store),u=0===o?"p":`h${o}`,m=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!i&&!s})}),p=i?(0,qe.createElement)(u,{...m},(0,qe.createElement)(Ye.RichText,{tagName:r?"a":"span",href:r?"#site-title-pseudo-link":void 0,"aria-label":(0,Je.__)("Site title text"),placeholder:(0,Je.__)("Write site title…"),value:s,onChange:function(e){c("root","site",void 0,{title:e})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)()))})):(0,qe.createElement)(u,{...m},r?(0,qe.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},(0,On.decodeEntities)(s)||(0,Je.__)("Site Title placeholder")):(0,qe.createElement)("span",null,(0,On.decodeEntities)(s)||(0,Je.__)("Site Title placeholder")));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{options:dx,value:o,onChange:e=>t({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Make title link to home"),onChange:()=>t({isLink:!r}),checked:r}),r&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l}))),p)},transforms:_x,deprecated:hx},yx=()=>Qe({name:fx,metadata:bx,settings:vx});var kx=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"}));var xx=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));const wx=()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),Cx=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:wx},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},(0,qe.createElement)(We.Circle,{cx:"363",cy:"205",r:"205"}),(0,qe.createElement)(We.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"whatsapp",attributes:{service:"whatsapp"},title:"WhatsApp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];Cx.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var Ex=Cx;const Sx=({url:e,setAttributes:t,setPopover:n,popoverAnchor:o,clientId:a})=>{const{removeBlock:r}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(Ye.URLPopover,{anchor:o,onClose:()=>n(!1)},(0,qe.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),n(!1)}},(0,qe.createElement)("div",{className:"block-editor-url-input"},(0,qe.createElement)(Ye.URLInput,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>t({url:e}),placeholder:(0,Je.__)("Enter address"),disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![un.BACKSPACE,un.DELETE].includes(t.keyCode)||r(a)}})),(0,qe.createElement)(Ke.Button,{icon:xx,label:(0,Je.__)("Apply"),type:"submit"})))};var Bx=({attributes:e,context:t,isSelected:n,setAttributes:o,clientId:a})=>{const{url:r,service:l,label:i,rel:s}=e,{showLabels:c,iconColor:u,iconColorValue:m,iconBackgroundColor:p,iconBackgroundColorValue:d}=t,[g,h]=(0,qe.useState)(!1),_=it()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!r,[`has-${u}-color`]:u,[`has-${p}-background-color`]:p}),[b,f]=(0,qe.useState)(null),v=(e=>{const t=Ex.find((t=>t.name===e));return t?t.icon:wx})(l),y=(e=>{const t=Ex.find((t=>t.name===e));return t?t.title:(0,Je.__)("Social Icon")})(l),k=null!=i?i:y,x=(0,Ye.useBlockProps)({className:_,style:{color:m,backgroundColor:d}});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.sprintf)((0,Je.__)("%s label"),y),initialOpen:!1},(0,qe.createElement)(Ke.PanelRow,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link label"),help:(0,Je.__)("Briefly describe the link to help screen reader users."),value:i||"",onChange:e=>o({label:e})})))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:s||"",onChange:e=>o({rel:e})})),(0,qe.createElement)("li",{...x},(0,qe.createElement)(Ke.Button,{className:"wp-block-social-link-anchor",ref:f,onClick:()=>h(!0)},(0,qe.createElement)(v,null),(0,qe.createElement)("span",{className:it()("wp-block-social-link-label",{"screen-reader-text":!c})},k),n&&g&&(0,qe.createElement)(Sx,{url:r,setAttributes:o,setPopover:h,popoverAnchor:b,clientId:a}))))};const Tx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:Nx}=Tx,Px={icon:kx,edit:Bx,variations:Ex},Ix=()=>Qe({name:Nx,metadata:Tx,settings:Px}),Mx=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{if(e.layout)return e;const{className:t}=e,n="items-justified-",o=new RegExp(`\\b${n}[^ ]*[ ]?\\b`,"g"),a={...e,className:t?.replace(o,"").trim()},r=t?.match(o)?.[0]?.trim();return r&&Object.assign(a,{layout:{type:"flex",justifyContent:r.slice(16)}}),a},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:o,size:a}}=e,r=it()(a,{"has-icon-color":n,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return(0,qe.createElement)("ul",{...Ye.useBlockProps.save({className:r,style:l})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var zx=Mx;var Rx=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const Hx=["core/social-link"],Lx=[{name:(0,Je.__)("Small"),value:"has-small-icon-size"},{name:(0,Je.__)("Normal"),value:"has-normal-icon-size"},{name:(0,Je.__)("Large"),value:"has-large-icon-size"},{name:(0,Je.__)("Huge"),value:"has-huge-icon-size"}];var Ax=(0,Ye.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{clientId:n,attributes:o,iconBackgroundColor:a,iconColor:r,isSelected:l,setAttributes:i,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,customIconBackgroundColor:m,iconColorValue:p,openInNewTab:d,showLabels:g,size:h}=o,_=o.className?.includes("is-style-logos-only"),b=(0,qe.useRef)({});(0,qe.useEffect)((()=>{_?(b.current={iconBackgroundColor:a,iconBackgroundColorValue:u,customIconBackgroundColor:m},i({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):i({...b.current})}),[_]);const f=(0,qe.createElement)("li",{className:"wp-block-social-links__social-placeholder"},(0,qe.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),v=(0,qe.createElement)("li",{className:"wp-block-social-links__social-prompt"},(0,Je.__)("Click plus to add")),y=it()(h,{"has-visible-labels":g,"has-icon-color":r.color||p,"has-icon-background-color":a.color||u}),k=(0,Ye.useBlockProps)({className:y}),x=(0,Ye.useInnerBlocksProps)(k,{allowedBlocks:Hx,placeholder:l?v:f,templateLock:!1,orientation:null!==(t=o.layout?.orientation)&&void 0!==t?t:"horizontal",__experimentalAppenderTagName:"li"}),w=[{value:r.color||p,onChange:e=>{c(e),i({iconColorValue:e})},label:(0,Je.__)("Icon color"),resetAllFilter:()=>{c(void 0),i({iconColorValue:void 0})}}];_||w.push({value:a.color||u,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,Je.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const C=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarDropdownMenu,{label:(0,Je.__)("Size"),text:(0,Je.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},(({onClose:e})=>(0,qe.createElement)(Ke.MenuGroup,null,Lx.map((t=>(0,qe.createElement)(Ke.MenuItem,{icon:(h===t.value||!h&&"has-normal-icon-size"===t.value)&&Rx,isSelected:h===t.value,key:t.value,onClick:()=>{i({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show labels"),checked:g,onChange:()=>i({showLabels:!g})}))),C.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},w.map((({onChange:e,label:t,value:o,resetAllFilter:a})=>(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{key:`social-links-color-${t}`,__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o,label:t,onColorChange:e,isShownByDefault:!0,resetAllFilter:a,enableAlpha:!0}],panelId:n,...C}))),!_&&(0,qe.createElement)(Ye.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})),(0,qe.createElement)("ul",{...x}))}));const Vx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Dx}=Vx,Fx={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:kx,edit:Ax,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,showLabels:o,size:a}}=e,r=it()(a,{"has-visible-labels":o,"has-icon-color":n,"has-icon-background-color":t}),l=Ye.useBlockProps.save({className:r}),i=Ye.useInnerBlocksProps.save(l);return(0,qe.createElement)("ul",{...i})},deprecated:zx},$x=()=>Qe({name:Dx,metadata:Vx,settings:Fx});var Gx=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"}));const Ox=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:n}=e;return{...e,width:void 0!==n?`${n}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save({attributes:e}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}];var Ux=Ox;const jx=0;function qx({label:e,onChange:t,isResizing:n,value:o=""}){const a=(0,Tt.useInstanceId)(Ke.__experimentalUnitControl,"block-spacer-height-input"),r=(0,Ye.useSetting)("spacing.spacingSizes"),l=((0,Ye.useSetting)("spacing.units")||void 0)?.filter((e=>"%"!==e)),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),s=e=>{t(e.all)},[c,u]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(o),m=(0,Ye.isValueSpacingPreset)(o)?o:[c,n?"px":u].join("");return(0,qe.createElement)(qe.Fragment,null,(!r||0===r?.length)&&(0,qe.createElement)(Ke.BaseControl,{label:e,id:a},(0,qe.createElement)(Ke.__experimentalUnitControl,{id:a,isResetValueOnUnitChange:!0,min:jx,onChange:s,style:{maxWidth:80},value:m,units:i})),r?.length>0&&(0,qe.createElement)(We.View,{className:"tools-panel-item-spacing"},(0,qe.createElement)(Ye.__experimentalSpacingSizesControl,{values:{all:m},onChange:s,label:e,sides:["all"],units:i,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})))}function Wx({setAttributes:e,orientation:t,height:n,width:o,isResizing:a}){return(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},"horizontal"===t&&(0,qe.createElement)(qx,{label:(0,Je.__)("Width"),value:o,onChange:t=>e({width:t}),isResizing:a}),"horizontal"!==t&&(0,qe.createElement)(qx,{label:(0,Je.__)("Height"),value:n,onChange:t=>e({height:t}),isResizing:a})))}const Zx=({orientation:e,onResizeStart:t,onResize:n,onResizeStop:o,isSelected:a,isResizing:r,setIsResizing:l,...i})=>{const s=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${s(e)}px`;return(0,qe.createElement)(Ke.ResizableBox,{className:it()("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":r,"is-selected":a}),onResizeStart:(e,o,a)=>{const r=c(a);t(r),n(r)},onResize:(e,t,o)=>{n(c(o)),r||l(!0)},onResizeStop:(e,t,n)=>{const a=s(n);o(`${a}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:r},showHandle:a,...i})};var Qx=({attributes:e,isSelected:t,setAttributes:n,toggleSelection:o,context:a,__unstableParentLayout:r,className:l})=>{const i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:s}=a,{orientation:c,type:u}=r||{},m="flex"===u,p=!c&&m?"horizontal":c||s,{height:d,width:g,style:h={}}=e,{layout:_={}}=h,{selfStretch:b,flexSize:f}=_,v=(0,Ye.useSetting)("spacing.spacingSizes"),[y,k]=(0,qe.useState)(!1),[x,w]=(0,qe.useState)(null),[C,E]=(0,qe.useState)(null),S=()=>o(!1),B=()=>o(!0),T=e=>{B(),m&&n({style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({height:e}),w(null)},N=e=>{B(),m&&n({style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({width:e}),E(null)},P="horizontal"===p?C||f:x||f,I={height:"horizontal"===p?24:(()=>{if(!m)return x||(0,Ye.getSpacingPresetCssVar)(d)||void 0})(),width:"horizontal"===p?(()=>{if(!m)return C||(0,Ye.getSpacingPresetCssVar)(g)||void 0})():void 0,minWidth:"vertical"===p&&m?48:void 0,flexBasis:m?P:void 0,flexGrow:m&&y?0:void 0};return(0,qe.useEffect)((()=>{if(m&&"fill"!==b&&"fit"!==b&&!f)if("horizontal"===p){const e=(0,Ye.getCustomValueFromPreset)(g,v)||(0,Ye.getCustomValueFromPreset)(d,v)||"100px";n({width:"0px",style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else{const e=(0,Ye.getCustomValueFromPreset)(d,v)||(0,Ye.getCustomValueFromPreset)(g,v)||"100px";n({height:"0px",style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else!m||"fill"!==b&&"fit"!==b?m||!b&&!f||(n("horizontal"===p?{width:f}:{height:f}),n({style:{...h,layout:{..._,flexSize:void 0,selfStretch:void 0}}})):n("horizontal"===p?{width:void 0}:{height:void 0})}),[h,f,d,p,m,_,b,n,v,g]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(We.View,{...(0,Ye.useBlockProps)({style:I,className:it()(l,{"custom-sizes-disabled":i})})},"horizontal"===(M=p)?(0,qe.createElement)(Zx,{minWidth:jx,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:M,onResizeStart:S,onResize:E,onResizeStop:N,isSelected:t,isResizing:y,setIsResizing:k}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Zx,{minHeight:jx,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:M,onResizeStart:S,onResize:w,onResizeStop:T,isSelected:t,isResizing:y,setIsResizing:k}))),!m&&(0,qe.createElement)(Wx,{setAttributes:n,height:x||d,width:C||g,orientation:p,isResizing:y}));var M};const Kx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:Jx}=Kx,Yx={icon:Gx,edit:Qx,save:function({attributes:e}){const{height:t,width:n,style:o}=e,{layout:{selfStretch:a}={}}=o||{},r="fill"===a||"fit"===a?void 0:t;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({style:{height:(0,Ye.getSpacingPresetCssVar)(r),width:(0,Ye.getSpacingPresetCssVar)(n)},"aria-hidden":!0})})},deprecated:Ux},Xx=()=>Qe({name:Jx,metadata:Kx,settings:Yx});var ew=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));const tw={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},nw={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},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:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,caption:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.__experimentalGetColorClassesAndStyles)(e),i=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),s=it()(l.className,i.className,{"has-fixed-layout":t}),c=!Ye.RichText.isEmpty(r),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o},a)=>{const r=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:r||void 0,"data-align":o,tagName:t,value:e,key:a,scope:"th"===t?n:void 0})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:r}))}},ow={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},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:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:n,body:o,foot:a,backgroundColor:r,caption:l}=e;if(!n.length&&!o.length&&!a.length)return null;const i=(0,Ye.getColorClassName)("background-color",r),s=it()(i,{"has-fixed-layout":t,"has-background":!!i}),c=!Ye.RichText.isEmpty(l),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o},a)=>{const r=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:r||void 0,"data-align":o,tagName:t,value:e,key:a,scope:"th"===t?n:void 0})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:l}))},isEligible:e=>e.backgroundColor&&e.backgroundColor in tw&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:tw[e.backgroundColor]}}})},aw={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"}}}}},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"}}}}},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"}}}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,backgroundColor:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.getColorClassName)("background-color",r),i=it()(l,{"has-fixed-layout":t,"has-background":!!l}),s=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n},o)=>(0,qe.createElement)(Ye.RichText.Content,{tagName:t,value:e,key:o,scope:"th"===t?n:void 0})))))))};return(0,qe.createElement)("table",{className:i},(0,qe.createElement)(s,{type:"head",rows:n}),(0,qe.createElement)(s,{type:"body",rows:o}),(0,qe.createElement)(s,{type:"foot",rows:a}))}};var rw=[nw,ow,aw];var lw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"}));var iw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"}));var sw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"}));var cw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));var uw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));var mw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));var pw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));var dw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));var gw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));var hw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const _w=["align"];function bw(e,t,n){if(!t)return e;const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:a,rowIndex:r}=t;return Object.fromEntries(Object.entries(o).map((([e,o])=>a&&a!==e?[e,o]:[e,o.map(((o,a)=>r&&r!==a?o:{cells:o.cells.map(((o,r)=>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}}({sectionName:e,columnIndex:r,rowIndex:a},t)?n(o):o))}))])))}function fw(e,{sectionName:t,rowIndex:n,columnCount:o}){const a=function(e){return yw(e.head)?yw(e.body)?yw(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),r=void 0===o?a?.cells?.length:o;return r?{[t]:[...e[t].slice(0,n),{cells:Array.from({length:r}).map(((e,n)=>{var o;const r=null!==(o=a?.cells?.[n])&&void 0!==o?o:{};return{...Object.fromEntries(Object.entries(r).filter((([e])=>_w.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(n)]}:e}function vw(e,t){var n;if(!yw(e[t]))return{[t]:[]};return fw(e,{sectionName:t,rowIndex:0,columnCount:null!==(n=e.body?.[0]?.cells?.length)&&void 0!==n?n:1})}function yw(e){return!e||!e.length||e.every(kw)}function kw(e){return!(e.cells&&e.cells.length)}const xw=[{icon:lw,title:(0,Je.__)("Align column left"),align:"left"},{icon:iw,title:(0,Je.__)("Align column center"),align:"center"},{icon:sw,title:(0,Je.__)("Align column right"),align:"right"}],ww={head:(0,Je.__)("Header cell text"),body:(0,Je.__)("Body cell text"),foot:(0,Je.__)("Footer cell text")},Cw={head:(0,Je.__)("Header label"),foot:(0,Je.__)("Footer label")};function Ew({name:e,...t}){const n=`t${e}`;return(0,qe.createElement)(n,{...t})}var Sw=function({attributes:e,setAttributes:t,insertBlocksAfter:n,isSelected:o}){const{hasFixedLayout:a,caption:r,head:l,foot:i}=e,[s,c]=(0,qe.useState)(2),[u,m]=(0,qe.useState)(2),[p,d]=(0,qe.useState)(),g=(0,Ye.__experimentalUseColorProps)(e),h=(0,Ye.__experimentalUseBorderProps)(e),_=(0,qe.useRef)(),[b,f]=(0,qe.useState)(!1);function v(n){p&&t(bw(e,p,(e=>({...e,content:n}))))}function y(n){if(!p)return;const{sectionName:o,rowIndex:a}=p,r=a+n;t(fw(e,{sectionName:o,rowIndex:r})),d({sectionName:o,rowIndex:r,columnIndex:0,type:"cell"})}function k(n=0){if(!p)return;const{columnIndex:o}=p,a=o+n;t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>yw(n)?[e,n]:[e,n.map((n=>kw(n)||n.cells.length<t?n:{cells:[...n.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...n.cells.slice(t)]}))])))}(e,{columnIndex:a})),d({rowIndex:0,columnIndex:a,type:"cell"})}(0,qe.useEffect)((()=>{o||d()}),[o]),(0,qe.useEffect)((()=>{b&&(_?.current?.querySelector('td[contentEditable="true"]')?.focus(),f(!1))}),[b]);const x=["head","body","foot"].filter((t=>!yw(e[t]))),w=[{icon:cw,title:(0,Je.__)("Insert row before"),isDisabled:!p,onClick:function(){y(0)}},{icon:uw,title:(0,Je.__)("Insert row after"),isDisabled:!p,onClick:function(){y(1)}},{icon:mw,title:(0,Je.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,rowIndex:o}=p;d(),t(function(e,{sectionName:t,rowIndex:n}){return{[t]:e[t].filter(((e,t)=>t!==n))}}(e,{sectionName:n,rowIndex:o}))}},{icon:pw,title:(0,Je.__)("Insert column before"),isDisabled:!p,onClick:function(){k(0)}},{icon:dw,title:(0,Je.__)("Insert column after"),isDisabled:!p,onClick:function(){k(1)}},{icon:gw,title:(0,Je.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,columnIndex:o}=p;d(),t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>yw(n)?[e,n]:[e,n.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,n)=>n!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:n,columnIndex:o}))}}],C=x.map((t=>(0,qe.createElement)(Ew,{name:t,key:t},e[t].map((({cells:e},n)=>(0,qe.createElement)("tr",{key:n},e.map((({content:e,tag:o,scope:a,align:r,colspan:l,rowspan:i},s)=>(0,qe.createElement)(Ye.RichText,{tagName:o,key:s,className:it()({[`has-text-align-${r}`]:r},"wp-block-table__cell-content"),scope:"th"===o?a:void 0,colSpan:l,rowSpan:i,value:e,onChange:v,onFocus:()=>{d({sectionName:t,rowIndex:n,columnIndex:s,type:"cell"})},"aria-label":ww[t],placeholder:Cw[t]}))))))))),E=!x.length;return(0,qe.createElement)("figure",{...(0,Ye.useBlockProps)({ref:_})},!E&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{label:(0,Je.__)("Change column alignment"),alignmentControls:xw,value:function(){if(p)return function(e,t,n){const{sectionName:o,rowIndex:a,columnIndex:r}=t;return e[o]?.[a]?.cells?.[r]?.[n]}(e,p,"align")}(),onChange:n=>function(n){if(!p)return;const o={type:"column",columnIndex:p.columnIndex},a=bw(e,o,(e=>({...e,align:n})));t(a)}(n)})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:hw,label:(0,Je.__)("Edit table"),controls:w}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings"),className:"blocks-table-settings"},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Fixed width table cells"),checked:!!a,onChange:function(){t({hasFixedLayout:!a})}}),!E&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Header section"),checked:!(!l||!l.length),onChange:function(){t(vw(e,"head"))}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(vw(e,"foot"))}})))),!E&&(0,qe.createElement)("table",{className:it()(g.className,h.className,{"has-fixed-layout":a,"has-individual-borders":(0,Ke.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...g.style,...h.style}},C),!E&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Table caption text"),placeholder:(0,Je.__)("Add caption"),value:r,onChange:e=>t({caption:e}),onFocus:()=>d(),__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)()))}),E&&(0,qe.createElement)(Ke.Placeholder,{label:(0,Je.__)("Table"),icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ew,showColors:!0}),instructions:(0,Je.__)("Insert a table for sharing data.")},(0,qe.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),f(!0)}},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,type:"number",label:(0,Je.__)("Column count"),value:u,onChange:function(e){m(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,type:"number",label:(0,Je.__)("Row count"),value:s,onChange:function(e){c(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,qe.createElement)(Ke.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},(0,Je.__)("Create Table")))))};function Bw(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const Tw=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan"]}}}}),Nw={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:Tw(e)},tfoot:{allowEmpty:!0,children:Tw(e)},tbody:{allowEmpty:!0,children:Tw(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=t.nodeName.toLowerCase().slice(1),o=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=Array.from(t.children).reduce(((e,t)=>{const n=Bw(t.getAttribute("rowspan")),o=Bw(t.getAttribute("colspan"));return e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:n,colspan:o}),e}),[]);return e.push({cells:n}),e}),[]);return e[n]=o,e}),{});return(0,je.createBlock)("core/table",t)}}]};var Pw=Nw;const Iw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},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"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},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"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},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"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:Mw}=Iw,zw={icon:ew,example:{attributes:{head:[{cells:[{content:(0,Je.__)("Version"),tag:"th"},{content:(0,Je.__)("Jazz Musician"),tag:"th"},{content:(0,Je.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,Je.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,Je.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,Je.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Pw,edit:Sw,save:function({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,caption:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.__experimentalGetColorClassesAndStyles)(e),i=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),s=it()(l.className,i.className,{"has-fixed-layout":t}),c=!Ye.RichText.isEmpty(r),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o,colspan:a,rowspan:r},l)=>{const i=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:i||void 0,"data-align":o,tagName:t,value:e,key:l,scope:"th"===t?n:void 0,colSpan:a,rowSpan:r})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:r,className:(0,Ye.__experimentalGetElementClassName)("caption")}))},deprecated:rw},Rw=()=>Qe({name:Mw,metadata:Iw,settings:zw});var Hw=n(5619),Lw=n.n(Hw),Aw=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M15.1 15.8H20v-1.5h-4.9v1.5zm-4-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 3c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm5-3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#1e1e1e"}));const Vw="wp-block-table-of-contents__entry";function Dw({nestedHeadingList:e}){return(0,qe.createElement)(qe.Fragment,null,e.map(((e,t)=>{const{content:n,link:o}=e.heading,a=o?(0,qe.createElement)("a",{className:Vw,href:o},n):(0,qe.createElement)("span",{className:Vw},n);return(0,qe.createElement)("li",{key:t},a,e.children?(0,qe.createElement)("ol",null,(0,qe.createElement)(Dw,{nestedHeadingList:e.children})):null)})))}function Fw(e){const t=[];return e.forEach(((n,o)=>{if(""!==n.content&&n.level===e[0].level)if(e[o+1]?.level>n.level){let a=e.length;for(let t=o+1;t<e.length;t++)if(e[t].level===n.level){a=t;break}t.push({heading:n,children:Fw(e.slice(o+1,a))})}else t.push({heading:n,children:null})})),t}const $w={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"layout",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"}},onlyIncludeCurrentPage:{type:"boolean",default:!1}},supports:{html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{}},{name:Gw}=$w,Ow={icon:Aw,edit:function({attributes:{headings:e=[],onlyIncludeCurrentPage:t},clientId:n,setAttributes:o}){const a=(0,Ye.useBlockProps)(),r=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(Ye.store);return o("core/list",t(n))}),[n]),{__unstableMarkNextChangeAsNotPersistent:l,replaceBlocks:i}=(0,ut.useDispatch)(Ye.store),s=(0,ut.useSelect)((o=>{var a;const{getBlockAttributes:r,getBlockName:l,getClientIdsWithDescendants:i,__experimentalGetGlobalBlocksByName:s}=o(Ye.store),c=o("core/editor"),u=0!==s("core/nextpage").length,m=i();let p=1;if(u&&t){const e=m.indexOf(n);for(const[t,n]of m.entries()){if(t>=e)break;"core/nextpage"===l(n)&&p++}}const d=[];let g=1;const h=null!==(a=c?.getPermalink())&&void 0!==a?a:null;let _=null;"string"==typeof h&&(_=u?(0,st.addQueryArgs)(h,{page:g}):h);for(const e of m){const n=l(e);if("core/nextpage"===n){if(g++,t&&g>p)break;"string"==typeof h&&(_=(0,st.addQueryArgs)((0,st.removeQueryArgs)(h,["page"]),{page:g}))}else if((!t||g===p)&&"core/heading"===n){const t=r(e),n="string"==typeof _&&"string"==typeof t.anchor&&""!==t.anchor;d.push({content:(0,dd.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${_}#${t.anchor}`:null})}}return Lw()(e,d)?null:d}),[n,t,e]);(0,qe.useEffect)((()=>{null!==s&&(l(),o({headings:s}))}),[s]);const c=Fw(e),u=r&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>i(n,(0,je.createBlock)("core/list",{ordered:!0,values:(0,qe.renderToString)((0,qe.createElement)(Dw,{nestedHeadingList:c}))}))},(0,Je.__)("Convert to static list")))),m=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Only include current page"),checked:t,onChange:e=>o({onlyIncludeCurrentPage:e}),help:t?(0,Je.__)("Only including headings from the current page (if the post is paginated)."):(0,Je.__)("Toggle to only include headings from the current page (if the post is paginated).")})));return 0===e.length?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Aw}),label:(0,Je.__)("Table of Contents"),instructions:(0,Je.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})),m):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("nav",{...a},(0,qe.createElement)("ol",{inert:"true"},(0,qe.createElement)(Dw,{nestedHeadingList:c}))),u,m)},save:function({attributes:{headings:e=[]}}){return 0===e.length?null:(0,qe.createElement)("nav",{...Ye.useBlockProps.save()},(0,qe.createElement)("ol",null,(0,qe.createElement)(Dw,{nestedHeadingList:Fw(e)})))}},Uw=()=>Qe({name:Gw,metadata:$w,settings:Ow});var jw={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,je.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,je.createBlock)("core/categories")}]};var qw=(0,ut.withSelect)((e=>({taxonomies:e(ct.store).getTaxonomies({per_page:-1})})))((function({attributes:e,setAttributes:t,taxonomies:n}){const{taxonomy:o,showTagCounts:a,numberOfTags:r,smallestFontSize:l,largestFontSize:i}=e,s=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem"]}),c=(e,n)=>{const[o,a]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(n);if(!Number.isFinite(o))return;const r={[e]:n};Object.entries({smallestFontSize:l,largestFontSize:i}).forEach((([t,n])=>{const[o,l]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(n);t!==e&&l!==a&&(r[t]=`${o}${a}`)})),t(r)},u=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Taxonomy"),options:[{label:(0,Je.__)("- Select -"),value:"",disabled:!0},...(null!=n?n:[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:a,onChange:()=>t({showTagCounts:!a})}),(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0}),(0,qe.createElement)(Ke.Flex,null,(0,qe.createElement)(Ke.FlexItem,{isBlock:!0},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Smallest size"),value:l,onChange:e=>{c("smallestFontSize",e)},units:s,min:.1,max:100})),(0,qe.createElement)(Ke.FlexItem,{isBlock:!0},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Largest size"),value:i,onChange:e=>{c("largestFontSize",e)},units:s,min:.1,max:100})))));return(0,qe.createElement)(qe.Fragment,null,u,(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:e}))))}));const Ww={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},editorStyle:"wp-block-tag-cloud-editor"},{name:Zw}=Ww,Qw={icon:nh,example:{},edit:qw,transforms:jw},Kw=()=>Qe({name:Zw,metadata:Ww,settings:Qw});var Jw=function(){return Jw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Jw.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Yw(e){return e.toLowerCase()}var Xw=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],eC=/[^A-Z0-9]+/gi;function tC(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?Xw:n,a=t.stripRegexp,r=void 0===a?eC:a,l=t.transform,i=void 0===l?Yw:l,s=t.delimiter,c=void 0===s?" ":s,u=nC(nC(e,o,"$1\0$2"),r,"\0"),m=0,p=u.length;"\0"===u.charAt(m);)m++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(m,p).split("\0").map(i).join(c)}function nC(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function oC(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}var aC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function rC(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),tC(e,Jw({delimiter:"."},t))}(e,Jw({delimiter:"-"},t))}function lC(e,t){const{templateParts:n,isResolving:o}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,isResolving:n}=e(ct.store),o={per_page:-1};return{templateParts:t("postType","wp_template_part",o),isResolving:n("getEntityRecords",["postType","wp_template_part",o])}}),[]);return{templateParts:(0,qe.useMemo)((()=>n&&n.filter((n=>Yd(n.theme,n.slug)!==t&&(!e||"uncategorized"===e||n.area===e)))||[]),[n,e,t]),isResolving:o}}function iC(e,t){return(0,ut.useSelect)((n=>{const o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:a,getPatternsByBlockTypes:r}=n(Ye.store);return r(o,a(t))}),[e,t])}function sC(e,t){const{saveEntityRecord:n}=(0,ut.useDispatch)(ct.store);return async(o=[],a=(0,Je.__)("Untitled Template Part"))=>{const r={title:a,slug:rC(a).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,je.serialize)(o),area:e},l=await n("postType","wp_template_part",r);t({slug:l.slug,theme:l.theme,area:void 0})}}function cC(e){return(0,ut.useSelect)((t=>{var n;const o=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),a=o.find((t=>t.area===e)),r=o.find((e=>"uncategorized"===e.area));return{icon:a?.icon||r?.icon,label:a?.label||(0,Je.__)("Template Part"),tagName:null!==(n=a?.area_tag)&&void 0!==n?n:"div"}}),[e])}function uC({areaLabel:e,onClose:t,onSubmit:n}){const[o,a]=(0,qe.useState)((0,Je.__)("Untitled Template Part"));return(0,qe.createElement)(Ke.Modal,{title:(0,Je.sprintf)((0,Je.__)("Name and create your new %s"),e.toLowerCase()),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:t},(0,qe.createElement)("form",{onSubmit:e=>{e.preventDefault(),n(o)}},(0,qe.createElement)(Ke.__experimentalVStack,{spacing:"5"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Name"),value:o,onChange:a}),(0,qe.createElement)(Ke.__experimentalHStack,{justify:"right"},(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit",disabled:!o.length,"aria-disabled":!o.length},(0,Je.__)("Create"))))))}function mC({area:e,clientId:t,templatePartId:n,onOpenSelectionModal:o,setAttributes:a}){const{templateParts:r,isResolving:l}=lC(e,n),i=iC(e,t),[s,c]=(0,qe.useState)(!1),u=cC(e),m=sC(e,a);return(0,qe.createElement)(Ke.Placeholder,{icon:u.icon,label:u.label,instructions:(0,Je.sprintf)((0,Je.__)("Choose an existing %s or create a new one."),u.label.toLowerCase())},l&&(0,qe.createElement)(Ke.Spinner,null),!l&&!(!r.length&&!i.length)&&(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:o},(0,Je.__)("Choose")),!l&&(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{c(!0)}},(0,Je.__)("Start blank")),s&&(0,qe.createElement)(uC,{areaLabel:u.label,onClose:()=>c(!1),onSubmit:e=>{m([],e)}}))}function pC({setAttributes:e,onClose:t,templatePartId:n=null,area:o,clientId:a}){const[r,l]=(0,qe.useState)(""),{templateParts:i}=lC(o,n),s=(0,qe.useMemo)((()=>zv(i.map((e=>({name:Yd(e.theme,e.slug),title:e.title.rendered,blocks:(0,je.parse)(e.content.raw),templatePart:e}))),r)),[i,r]),c=(0,Tt.useAsyncList)(s),u=iC(o,a),m=(0,qe.useMemo)((()=>zv(u,r)),[u,r]),p=(0,Tt.useAsyncList)(m),{createSuccessNotice:d}=(0,ut.useDispatch)(Bt.store),g=sC(o,e),h=!!s.length,_=!!m.length;return(0,qe.createElement)("div",{className:"block-library-template-part__selection-content"},(0,qe.createElement)("div",{className:"block-library-template-part__selection-search"},(0,qe.createElement)(Ke.SearchControl,{__nextHasNoMarginBottom:!0,onChange:l,value:r,label:(0,Je.__)("Search for replacements"),placeholder:(0,Je.__)("Search")})),h&&(0,qe.createElement)("div",null,(0,qe.createElement)("h2",null,(0,Je.__)("Existing template parts")),(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:s,shownPatterns:c,onClickPattern:n=>{var o;o=n.templatePart,e({slug:o.slug,theme:o.theme,area:void 0}),d((0,Je.sprintf)((0,Je.__)('Template Part "%s" inserted.'),o.title?.rendered||o.slug),{type:"snackbar"}),t()}})),_&&(0,qe.createElement)("div",null,(0,qe.createElement)("h2",null,(0,Je.__)("Patterns")),(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:m,shownPatterns:p,onClickPattern:(e,n)=>{g(n,e.title),t()}})),!h&&!_&&(0,qe.createElement)(Ke.__experimentalHStack,{alignment:"center"},(0,qe.createElement)("p",null,(0,Je.__)("No results found."))))}function dC(e){const t=(0,je.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),n=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!n}));if(t.length)return(0,je.switchToBlockType)(e,t[0].name)}function gC(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?dC(e):(0,je.createBlock)(e.name,e.attributes,gC(e.innerBlocks)))).filter((e=>!!e))}const hC={per_page:-1,_fields:"id,name,description,status,widgets"};function _C({area:e,setAttributes:t}){const[n,o]=(0,qe.useState)(""),[a,r]=(0,qe.useState)(!1),l=(0,ut.useRegistry)(),{sidebars:i,hasResolved:s}=(0,ut.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:n}=e(ct.store);return{sidebars:t(hC),hasResolved:n("getSidebars",[hC])}}),[]),{createErrorNotice:c}=(0,ut.useDispatch)(Bt.store),u=sC(e,t),m=(0,qe.useMemo)((()=>{const e=(null!=i?i:[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,Je.__)("Select widget area")},...e]:[]}),[i]);if(!s)return(0,qe.createElement)(Ke.__experimentalSpacer,{marginBottom:"0"});if(s&&!m.length)return null;return(0,qe.createElement)(Ke.__experimentalSpacer,{marginBottom:"4"},(0,qe.createElement)(Ke.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),a||!n)return;r(!0);const t=m.find((({value:e})=>e===n)),{getWidgets:o}=l.resolveSelect(ct.store),i=await o({sidebar:t.value,_embed:"about"}),s=new Set,p=i.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},dC((0,je.createBlock)("core/legacy-widget",t))}const t=(0,je.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const n=t[0];return"core/widget-group"===n.name?(0,je.createBlock)((0,je.getGroupingBlockName)(),void 0,gC(n.innerBlocks)):n.innerBlocks.length>0?(0,je.cloneBlock)(n,void 0,gC(n.innerBlocks)):n}(e);return t||(s.add(e.id_base),[])}));await u(p,(0,Je.sprintf)((0,Je.__)("Widget area: %s"),t.label)),s.size&&c((0,Je.sprintf)((0,Je.__)("Unable to import the following widgets: %s."),Array.from(s).join(", ")),{type:"snackbar"}),r(!1)}},(0,qe.createElement)(Ke.FlexBlock,null,(0,qe.createElement)(Ke.SelectControl,{label:(0,Je.__)("Import widget area"),value:n,options:m,onChange:e=>o(e),disabled:!m.length,__next36pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),(0,qe.createElement)(Ke.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"}},(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit",isBusy:a,"aria-disabled":a||!n},(0,Je.__)("Import")))))}function bC({tagName:e,setAttributes:t,isEntityAvailable:n,templatePartId:o,defaultWrapper:a,hasInnerBlocks:r}){const[l,i]=(0,ct.useEntityProp)("postType","wp_template_part","area",o),[s,c]=(0,ct.useEntityProp)("postType","wp_template_part","title",o),{areaOptions:u}=(0,ut.useSelect)((e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map((({label:e,area:t})=>({label:e,value:t})))})),[]),m={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},n&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Title"),value:s,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Area"),labelPosition:"top",options:u,value:l,onChange:i})),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.sprintf)((0,Je.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e}),help:m[e]}),!r&&(0,qe.createElement)(_C,{area:l,setAttributes:t}))}function fC({postId:e,hasInnerBlocks:t,layout:n,tagName:o,blockProps:a}){const r=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t()?.supportsLayout}),[]),l=(0,Ye.useSetting)("layout")||{},i=n&&n.inherit?l:n,[s,c,u]=(0,ct.useEntityBlockEditor)("postType","wp_template_part",{id:e}),m=(0,Ye.useInnerBlocksProps)(a,{value:s,onInput:c,onChange:u,renderAppender:t?void 0:Ye.InnerBlocks.ButtonBlockAppender,layout:r?i:void 0});return(0,qe.createElement)(o,{...m})}var vC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var yC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var kC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function xC(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:n,theme:o,slug:a}=e;if(n)return n===t.area;if(!a)return!1;const r=(0,ut.select)(ct.store).getEntityRecord("postType","wp_template_part",`${o}//${a}`);return r?.slug?r.slug===t.slug:r?.area===t.area},n=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?vC:"footer"===n?yC:"sidebar"===n?kC:aC)}};var n}));return{...e,variations:n}}return e}const wC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1},editorStyle:"wp-block-template-part-editor"},{name:CC}=wC,EC={icon:aC,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const n=(0,ut.select)(ct.store).getEntityRecord("postType","wp_template_part",t+"//"+e);return n?(0,On.decodeEntities)(n.title?.rendered)||function(e,t){return void 0===t&&(t={}),tC(e,Jw({delimiter:" ",transform:oC},t))}(n.slug):void 0},edit:function({attributes:e,setAttributes:t,clientId:n,isSelected:o}){const{slug:a,theme:r,tagName:l,layout:i={}}=e,s=Yd(r,a),c=(0,Ye.__experimentalUseHasRecursion)(s),[u,m]=(0,qe.useState)(!1),{isResolved:p,innerBlocks:d,isMissing:g,area:h}=(0,ut.useSelect)((t=>{const{getEditedEntityRecord:o,hasFinishedResolution:a}=t(ct.store),{getBlocks:r}=t(Ye.store),l=["postType","wp_template_part",s],i=s?o(...l):null,c=i?.area||e.area,u=!!s&&a("getEditedEntityRecord",l);return{innerBlocks:r(n),isResolved:u,isMissing:u&&(!i||0===Object.keys(i).length),area:c}}),[s,n]),{templateParts:_}=lC(h,s),b=iC(h,n),f=!!_.length||!!b.length,v=cC(h),y=(0,Ye.useBlockProps)(),k=!a,x=!k&&!g&&p,w=l||v.tagName,C=o&&x&&f&&("header"===h||"footer"===h);return 0===d.length&&(a&&!r||a&&g)?(0,qe.createElement)(w,{...y},(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)("Template part has been deleted or is unavailable: %s"),a))):x&&c?(0,qe.createElement)(w,{...y},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself."))):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:s},(0,qe.createElement)(bC,{tagName:l,setAttributes:t,isEntityAvailable:x,templatePartId:s,defaultWrapper:v.tagName,hasInnerBlocks:d.length>0}),k&&(0,qe.createElement)(w,{...y},(0,qe.createElement)(mC,{area:e.area,templatePartId:s,clientId:n,setAttributes:t,onOpenSelectionModal:()=>m(!0)})),C&&(0,qe.createElement)(Ye.BlockSettingsMenuControls,null,(()=>(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{m(!0)}},(0,qe.createInterpolateElement)((0,Je.__)("Replace <BlockTitle />"),{BlockTitle:(0,qe.createElement)(Ye.BlockTitle,{clientId:n,maximumLength:25})})))),x&&(0,qe.createElement)(fC,{tagName:w,blockProps:y,postId:s,hasInnerBlocks:d.length>0,layout:i}),!k&&!p&&(0,qe.createElement)(w,{...y},(0,qe.createElement)(Ke.Spinner,null))),u&&(0,qe.createElement)(Ke.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Je.sprintf)((0,Je.__)("Choose a %s"),v.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0},(0,qe.createElement)(pC,{templatePartId:s,clientId:n,area:h,setAttributes:t,onClose:()=>m(!1)})))}},SC=()=>{(0,Zl.addFilter)("blocks.registerBlockType","core/template-part",xC);const e=["core/post-template","core/post-content"];return(0,Zl.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromPostTemplates",((t,n,o,{getBlock:a,getBlockParentsByBlockName:r})=>{if("core/template-part"!==n.name)return t;for(const t of e){if(a(o)?.name===t||r(o,t).length)return!1}return!0})),Qe({name:CC,metadata:wC,settings:EC})};var BC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}));const TC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:NC}=TC,PC={icon:BC,edit:function({attributes:e,setAttributes:t,mergedStyle:n}){const{textAlign:o}=e,a=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o}),style:n});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...a},(0,qe.createElement)("div",{className:"wp-block-term-description__placeholder"},(0,qe.createElement)("span",null,(0,Je.__)("Term Description")))))}},IC=()=>Qe({name:NC,metadata:TC,settings:PC});const MC={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:n,width:o})=>(0,je.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:e,columns:t},n.map((({children:e})=>(0,je.createBlock)("core/column",{},[(0,je.createBlock)("core/paragraph",{content:e})]))))}]};var zC=MC;const RC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:HC}=RC,LC={transforms:zC,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:n,content:o,columns:a}=e;return Gm()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockAlignmentToolbar,{value:n,onChange:e=>t({width:e}),controls:["center","wide","full"]})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:`align${n} columns-${a}`})},Array.from({length:a}).map(((e,n)=>(0,qe.createElement)("div",{className:"wp-block-column",key:`column-${n}`},(0,qe.createElement)(Ye.RichText,{tagName:"p",value:o?.[n]?.children,onChange:e=>{t({content:[...o.slice(0,n),{children:e},...o.slice(n+1)]})},"aria-label":(0,Je.sprintf)((0,Je.__)("Column %d text"),n+1),placeholder:(0,Je.__)("New Column")}))))))},save:function({attributes:e}){const{width:t,content:n,columns:o}=e;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:`align${t} columns-${o}`})},Array.from({length:o}).map(((e,t)=>(0,qe.createElement)("div",{className:"wp-block-column",key:`column-${t}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",value:n?.[t]?.children})))))}},AC=()=>Qe({name:HC,metadata:RC,settings:LC});var VC=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));const DC={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n}=e;return(0,qe.createElement)(Ye.RichText.Content,{tagName:"pre",style:{textAlign:t},value:n})}},FC={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("pre",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var $C=[FC,DC];const GC={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/paragraph",e)}]};var OC=GC;const UC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:jC}=UC,qC={icon:VC,example:{attributes:{content:(0,Je.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:OC,deprecated:$C,merge(e,t){return{content:e.content+t.content}},edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onRemove:o,style:a}){const{textAlign:r,content:l}=e,i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${r}`]:r}),style:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:r,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{t({content:e})},"aria-label":(0,Je.__)("Verse text"),placeholder:(0,Je.__)("Write verse…"),onRemove:o,onMerge:n,textAlign:r,...i,__unstablePastePlainText:!0}))},save:function({attributes:e}){const{textAlign:t,content:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("pre",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},WC=()=>Qe({name:jC,metadata:UC,settings:qC});var ZC=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));function QC({tracks:e=[]}){return e.map((e=>(0,qe.createElement)("track",{key:e.src,...e})))}const{attributes:KC}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},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",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},JC={attributes:KC,save({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:a,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:u}=e;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)("video",{autoPlay:t,controls:o,loop:a,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,qe.createElement)(QC,{tracks:u})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}};var YC=[JC];const XC=[{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}];var eE=({setAttributes:e,attributes:t})=>{const{autoplay:n,controls:o,loop:a,muted:r,playsInline:l,preload:i}=t,s=(0,Je.__)("Autoplay may cause usability issues for some users."),c=qe.Platform.select({web:(0,qe.useCallback)((e=>e?s:null),[]),native:s}),u=(0,qe.useMemo)((()=>{const t=t=>n=>{e({[t]:n})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),m=(0,qe.useCallback)((t=>{e({preload:t})}),[]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:u.autoplay,checked:!!n,help:c}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:u.loop,checked:!!a}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Muted"),onChange:u.muted,checked:!!r}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Playback controls"),onChange:u.controls,checked:!!o}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Play inline"),onChange:u.playsInline,checked:!!l}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Preload"),value:i,onChange:m,options:XC,hideCancelButton:!0}))};const tE=["text/vtt"],nE="subtitles",oE=[{label:(0,Je.__)("Subtitles"),value:"subtitles"},{label:(0,Je.__)("Captions"),value:"captions"},{label:(0,Je.__)("Descriptions"),value:"descriptions"},{label:(0,Je.__)("Chapters"),value:"chapters"},{label:(0,Je.__)("Metadata"),value:"metadata"}];function aE({tracks:e,onEditPress:t}){let n;return n=0===e.length?(0,qe.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},(0,Je.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map(((e,n)=>(0,qe.createElement)(Ke.__experimentalHStack,{key:n,className:"block-library-video-tracks-editor__track-list-track"},(0,qe.createElement)("span",null,e.label," "),(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Je.sprintf)((0,Je.__)("Edit %s"),e.label)},(0,Je.__)("Edit"))))),(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},n)}function rE({track:e,onChange:t,onClose:n,onRemove:o}){const{src:a="",label:r="",srcLang:l="",kind:i=nE}=e,s=a.startsWith("blob:")?"":(0,st.getFilename)(a)||"";return(0,qe.createElement)(Ke.NavigableMenu,null,(0,qe.createElement)(Ke.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4"},(0,qe.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},(0,Je.__)("Edit track")),(0,qe.createElement)("span",null,(0,Je.__)("File"),": ",(0,qe.createElement)("b",null,s)),(0,qe.createElement)(Ke.__experimentalGrid,{columns:2,gap:4},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,autoFocus:!0,onChange:n=>t({...e,label:n}),label:(0,Je.__)("Label"),value:r,help:(0,Je.__)("Title of track")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,onChange:n=>t({...e,srcLang:n}),label:(0,Je.__)("Source language"),value:l,help:(0,Je.__)("Language tag (en, fr, etc.)")})),(0,qe.createElement)(Ke.__experimentalVStack,{spacing:"8"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:oE,value:i,label:(0,Je.__)("Kind"),onChange:n=>{t({...e,kind:n})}}),(0,qe.createElement)(Ke.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{const o={};let a=!1;""===r&&(o.label=(0,Je.__)("English"),a=!0),""===l&&(o.srcLang="en",a=!0),void 0===e.kind&&(o.kind=nE,a=!0),a&&t({...e,...o}),n()}},(0,Je.__)("Close")),(0,qe.createElement)(Ke.Button,{isDestructive:!0,variant:"link",onClick:o},(0,Je.__)("Remove track"))))))}function lE({tracks:e=[],onChange:t}){const n=(0,ut.useSelect)((e=>e(Ye.store).getSettings().mediaUpload),[]),[o,a]=(0,qe.useState)(null);return n?(0,qe.createElement)(Ke.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{label:(0,Je.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t},(0,Je.__)("Text tracks"))),renderContent:()=>null!==o?(0,qe.createElement)(rE,{track:e[o],onChange:n=>{const a=[...e];a[o]=n,t(a)},onClose:()=>a(null),onRemove:()=>{t(e.filter(((e,t)=>t!==o))),a(null)}}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.NavigableMenu,null,(0,qe.createElement)(aE,{tracks:e,onEditPress:a}),(0,qe.createElement)(Ke.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Je.__)("Add tracks")},(0,qe.createElement)(Ye.MediaUpload,{onSelect:({url:n})=>{const o=e.length;t([...e,{src:n}]),a(o)},allowedTypes:tE,render:({open:e})=>(0,qe.createElement)(Ke.MenuItem,{icon:Zp,onClick:e},(0,Je.__)("Open Media Library"))}),(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ke.FormFileUpload,{onChange:o=>{const r=o.target.files,l=e.length;n({allowedTypes:tE,filesList:r,onFileChange:([{url:n}])=>{const o=[...e];o[l]||(o[l]={}),o[l]={...e[l],src:n},t(o),a(l)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>(0,qe.createElement)(Ke.MenuItem,{icon:Xu,onClick:()=>{e()}},(0,Je.__)("Upload"))})))))}):null}const iE=e=>(0,qe.createElement)(Ke.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!0,icon:ZC,label:(0,Je.__)("Video"),instructions:(0,Je.__)("Upload a video file, pick one from your media library, or add one with a URL.")},e),sE=["video"],cE=["image"];var uE=function e({isSelected:t,attributes:n,className:o,setAttributes:a,insertBlocksAfter:r,onReplace:l}){const i=(0,Tt.useInstanceId)(e),s=(0,qe.useRef)(),c=(0,qe.useRef)(),{id:u,caption:m,controls:p,poster:d,src:g,tracks:h}=n,_=(0,Tt.usePrevious)(m),[b,f]=(0,qe.useState)(!!m),v=!u&&(0,Et.isBlobURL)(g),y=(0,ut.useSelect)((e=>e(Ye.store).getSettings().mediaUpload),[]);(0,qe.useEffect)((()=>{if(!u&&(0,Et.isBlobURL)(g)){const e=(0,Et.getBlobByURL)(g);e&&y({filesList:[e],onFileChange:([e])=>x(e),onError:E,allowedTypes:sE})}}),[]),(0,qe.useEffect)((()=>{s.current&&s.current.load()}),[d]),(0,qe.useEffect)((()=>{m&&!_&&f(!0)}),[m,_]);const k=(0,qe.useCallback)((e=>{e&&!m&&e.focus()}),[m]);function x(e){e&&e.url?a({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}):a({src:void 0,id:void 0,poster:void 0,caption:void 0})}function w(e){if(e!==g){const t=At({attributes:{url:e}});if(void 0!==t&&l)return void l(t);a({src:e,id:void 0,poster:void 0})}}(0,qe.useEffect)((()=>{t||m||f(!1)}),[t,m]);const{createErrorNotice:C}=(0,ut.useDispatch)(Bt.store);function E(e){C(e,{type:"snackbar"})}const S=it()(o,{"is-transient":v}),B=(0,Ye.useBlockProps)({className:S});if(!g)return(0,qe.createElement)("div",{...B},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ZC}),onSelect:x,onSelectURL:w,accept:"video/*",allowedTypes:sE,value:n,onError:E,placeholder:iE}));const T=`video-block__poster-image-description-${i}`;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{f(!b),b&&m&&a({caption:void 0})},icon:St,isPressed:b,label:b?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(lE,{tracks:h,onChange:e=>{a({tracks:e})}})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:sE,accept:"video/*",onSelect:x,onSelectURL:w,onError:E})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(eE,{setAttributes:a,attributes:n}),(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ke.BaseControl,{className:"editor-video-poster-control"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Poster image")),(0,qe.createElement)(Ye.MediaUpload,{title:(0,Je.__)("Select poster image"),onSelect:function(e){a({poster:e.url})},allowedTypes:cE,render:({open:e})=>(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:e,ref:c,"aria-describedby":T},d?(0,Je.__)("Replace"):(0,Je.__)("Select"))}),(0,qe.createElement)("p",{id:T,hidden:!0},d?(0,Je.sprintf)((0,Je.__)("The current poster image url is %s"),d):(0,Je.__)("There is no poster image currently selected")),!!d&&(0,qe.createElement)(Ke.Button,{onClick:function(){a({poster:void 0}),c.current.focus()},variant:"tertiary"},(0,Je.__)("Remove")))))),(0,qe.createElement)("figure",{...B},(0,qe.createElement)(Ke.Disabled,{isDisabled:!t},(0,qe.createElement)("video",{controls:p,poster:d,src:g,ref:s},(0,qe.createElement)(QC,{tracks:h}))),v&&(0,qe.createElement)(Ke.Spinner,null),b&&(!Ye.RichText.isEmpty(m)||t)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Video caption text"),ref:k,placeholder:(0,Je.__)("Add caption"),value:m,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))})))};const mE={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform(e){const t=e[0];return(0,je.createBlock)("core/video",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:n,webm:o,ogv:a,flv:r}})=>e||t||n||o||a||r},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var pE=mE;const dE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},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",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:gE}=dE,hE={icon:ZC,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,Je.__)("Wood thrush singing in Central Park, NYC.")}},transforms:pE,deprecated:YC,edit:uE,save:function({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:a,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:u}=e;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)("video",{autoPlay:t,controls:o,loop:a,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,qe.createElement)(QC,{tracks:u})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))}},_E=()=>Qe({name:gE,metadata:dE,settings:hE});var bE,fE=new Uint8Array(16);function vE(){if(!bE&&!(bE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bE(fE)}var yE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var kE=function(e){return"string"==typeof e&&yE.test(e)},xE=[],wE=0;wE<256;++wE)xE.push((wE+256).toString(16).substr(1));var CE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xE[e[t+0]]+xE[e[t+1]]+xE[e[t+2]]+xE[e[t+3]]+"-"+xE[e[t+4]]+xE[e[t+5]]+"-"+xE[e[t+6]]+xE[e[t+7]]+"-"+xE[e[t+8]]+xE[e[t+9]]+"-"+xE[e[t+10]]+xE[e[t+11]]+xE[e[t+12]]+xE[e[t+13]]+xE[e[t+14]]+xE[e[t+15]]).toLowerCase();if(!kE(n))throw TypeError("Stringified UUID is invalid");return n};var EE=function(e,t,n){var o=(e=e||{}).random||(e.rng||vE)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return CE(o)};const{name:SE}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{html:!1,multiple:!1,reusable:!1},style:"wp-block-footnotes"},BE="core/footnote",TE={title:(0,Je.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},contentEditable:!1,edit:function({value:e,onChange:t,isObjectActive:n}){const o=(0,ut.useRegistry)(),{getSelectedBlockClientId:a,getBlockRootClientId:r,getBlockName:l,getBlocks:i}=(0,ut.useSelect)(Ye.store),{selectionChange:s,insertBlock:c}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(Ye.RichTextToolbarButton,{icon:Fm,title:(0,Je.__)("Footnote"),onClick:function(){o.batch((()=>{const n=EE(),o=(0,Cn.insertObject)(e,{type:BE,attributes:{"data-fn":n},innerHTML:`<a href="#${n}" id="${n}-link">*</a>`},e.end,e.end);o.start=o.end-1,t(o);let u=null;{const e=[...i()];for(;e.length;){const t=e.shift();if(t.name===SE){u=t;break}e.push(...t.innerBlocks)}}if(!u){const e=a();let t=r(e);for(;t&&"core/post-content"!==l(t);)t=r(t);u=(0,je.createBlock)(SE),c(u,void 0,t)}s(u.clientId,n,0,0)}))},isActive:n})}},NE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{html:!1,multiple:!1,reusable:!1},style:"wp-block-footnotes"},{name:PE}=NE,IE={icon:Fm,edit:function({context:{postType:e,postId:t}}){const[n,o]=(0,ct.useEntityProp)("postType",e,"meta",t),a=n?.footnotes?JSON.parse(n.footnotes):[],r=(0,Ye.useBlockProps)();return a.length?(0,qe.createElement)("ol",{...r},a.map((({id:e,content:t})=>(0,qe.createElement)("li",{key:e},(0,qe.createElement)(Ye.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{o({...n,footnotes:JSON.stringify(a.map((n=>n.id===e?{content:t,id:e}:n)))})}})," ",(0,qe.createElement)("a",{href:`#${e}-link`},"↩︎"))))):(0,qe.createElement)("div",{...r},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Fm}),label:(0,Je.__)("Footnotes"),instructions:(0,Je.__)("Footnotes found in blocks within this document will be displayed here.")}))}};(0,Cn.registerFormatType)(BE,TE);const ME=()=>{Qe({name:PE,metadata:NE,settings:IE})};var zE=n(7078),RE=n.n(zE);const HE=()=>[J,H,M,P,V,D,we,e,a,r,l,i,s,...window.wp&&window.wp.oldEditor?[c]:[],u,m,p,g,S,B,T,N,I,R,L,A,$,G,O,W,Q,K,Z,ge,he,Ce,Se,Be,Te,Ne,ze,Re,He,Le,Ve,$e,Ge,Oe,Ue,U,j,q,Pe,Me,Ie,_e,De,t,de,ie,se,re,Y,X,te,ne,ae,le,me,ce,ue,pe,fe,ve,ye,ke,be,Ee,d,h,_,b,f,v,y,E,x,w,C,k,oe,Ae,z,F,Fe,xe,ee].filter(Boolean).filter((({metadata:e})=>!RE()(e))),LE=(e=HE())=>{e.forEach((({init:e})=>e())),(0,je.setDefaultBlockName)(g_),window.wp&&window.wp.oldEditor&&(0,je.setFreeformContentHandlerName)(no),(0,je.setUnregisteredTypeHandlerName)(bd),(0,je.setGroupingBlockName)(tu)},AE=void 0}(),(window.wp=window.wp||{}).blockLibrary=o}(); |